Files
agent/main.93f613895be1c30ea16b.js
László Monda fa96861f3c Updates
2019-08-24 16:20:35 +02:00

1 line
1.3 MiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+bod":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("rBfm");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Middle=2]="Middle"}(t.MouseButtons||(t.MouseButtons={}));class l extends o.MacroAction{constructor(e){super(),e&&(this.action=e.action,this.mouseButtonsMask=e.mouseButtonsMask)}fromJsonObject(e){return this.assertMacroActionType(e),this.action=o.MacroMouseSubAction[e.action],this.mouseButtonsMask=e.mouseButtonsMask,this}fromBinary(e){const t=this.readAndAssertMacroActionId(e);return this.action=t-o.MacroActionId.MouseButtonMacroAction,this.mouseButtonsMask=e.readUInt8(),this}toJsonObject(){return{macroActionType:o.macroActionType.MouseButtonMacroAction,action:o.MacroMouseSubAction[this.action],mouseButtonsMask:this.mouseButtonsMask}}toBinary(e){e.writeUInt8(o.MacroActionId.MouseButtonMacroAction+this.action),e.writeUInt8(this.mouseButtonsMask)}setMouseButtons(e){let t=0;for(let n=0;n<e.length;n++)t|=Number(e[n])<<n;this.mouseButtonsMask=t}getMouseButtons(){const e=[];for(let t=this.mouseButtonsMask;t;t>>>=1)e.push(Boolean(1&t));return e}toString(){return`<MouseButtonMacroAction mouseButtonsMask="${this.mouseButtonsMask}">`}hasButtons(){return 0!==this.mouseButtonsMask}isOnlyClickAction(){return this.action===o.MacroMouseSubAction.click}isOnlyHoldAction(){return this.action===o.MacroMouseSubAction.hold}isOnlyReleaseAction(){return this.action===o.MacroMouseSubAction.release}getName(){return"MouseButtonMacroAction"}}r.__decorate([i.assertEnum(o.MacroMouseSubAction),r.__metadata("design:type",Number)],l.prototype,"action",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],l.prototype,"mouseButtonsMask",void 0),t.MouseButtonMacroAction=l},"+tJ4":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}}},"+umK":function(e,t,n){"use strict";function r(){}n.d(t,"a",function(){return r})},"/FnF":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/");class o{fromJsonObject(e){return this.signature=e.signature,this.majorVersion=e.majorVersion,this.minorVersion=e.minorVersion,this.patchVersion=e.patchVersion,this.brandId=e.brandId,this.deviceId=e.deviceId,this.uniqueId=e.uniqueId,this.isVendorModeOn=e.isVendorModeOn,this.isIso=e.isIso,this}fromBinary(e){try{return this.signature=e.readString(),this.majorVersion=e.readUInt8(),this.minorVersion=e.readUInt8(),this.patchVersion=e.readUInt8(),this.brandId=e.readUInt8(),this.deviceId=e.readUInt8(),this.uniqueId=e.readUInt32(),this.isVendorModeOn=e.readBoolean(),this.isIso=e.readBoolean(),this}catch(t){throw new Error("Please power cycle your keyboard (Invalid hardware configuration: Index out of bounds)")}}toJsonObject(){return{signature:this.signature,majorVersion:this.majorVersion,minorVersion:this.minorVersion,patchVersion:this.patchVersion,brandId:this.brandId,deviceId:this.deviceId,uniqueId:this.uniqueId,isVendorModeOn:this.isVendorModeOn,isIso:this.isIso}}toBinary(e){e.writeString(this.signature),e.writeUInt8(this.majorVersion),e.writeUInt8(this.minorVersion),e.writeUInt8(this.patchVersion),e.writeUInt8(this.brandId),e.writeUInt8(this.deviceId),e.writeUInt32(this.uniqueId),e.writeBoolean(this.isVendorModeOn),e.writeBoolean(this.isIso)}toString(){return`<HardwareConfiguration signature="${this.signature}">`}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"majorVersion",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"minorVersion",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"patchVersion",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"brandId",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"deviceId",void 0),r.__decorate([i.assertUInt32,r.__metadata("design:type",Number)],o.prototype,"uniqueId",void 0),t.HardwareConfiguration=o},"/PH2":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mrSG"),i=n("MGBS"),o=n("zotm");function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new u(e,n))}}var u=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.observables,this.project))},e}(),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.observables=n,i.project=r,i.toRespond=[];var l=n.length;i.values=new Array(l);for(var u=0;u<l;u++)i.toRespond.push(u);for(u=0;u<l;u++){var a=n[u];i.add(Object(o.a)(i,a,a,u))}return i}return r.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t;var o=this.toRespond;if(o.length>0){var l=o.indexOf(n);-1!==l&&o.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(n){return void this.destination.error(n)}this.destination.next(t)},t}(i.a)},"/WYv":function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return r})},0:function(e,t,n){e.exports=n("lLol")},"0/uQ":function(e,t,n){"use strict";var r=n("6blF"),i=n("Fxb1"),o=n("pugT"),l=n("xTla"),u=n("JF+6"),a=n("En8+"),s=n("/WYv"),c=n("2ePl");function p(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[l.a]}(e))return function(e,t){return new r.a(function(n){var r=new o.a;return r.add(t.schedule(function(){var i=e[l.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Object(s.a)(e))return function(e,t){return new r.a(function(n){var r=new o.a;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}(e,t);if(Object(c.a)(e))return Object(u.a)(e,t);if(function(e){return e&&"function"==typeof e[a.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(function(n){var r,i=new o.a;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[a.a](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}n.d(t,"a",function(){return p})},"0mNj":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e){return function(t){return t.lift(new l(e))}}var l=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.total))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.c(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(i.a)},"0zd0":function(e,t,n){"use strict";var r=n("T1DM");function i(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}i.prototype=Object.create(Error.prototype);var o=i,l=n("mrSG"),u=n("MGBS"),a=n("zotm"),s=function(){function e(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),c=function(e){function t(t,n,r,i,o){var l=e.call(this,t)||this;return l.absoluteTimeout=n,l.waitFor=r,l.withObservable=i,l.scheduler=o,l.action=null,l.scheduleTimeout(),l}return l.c(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(a.a)(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(u.a),p=n("XlPw");function f(e,t){return void 0===t&&(t=r.a),function(e,t,n){return void 0===n&&(n=r.a),function(r){var i,o=(i=e)instanceof Date&&!isNaN(+i),l=o?+e-n.now():Math.abs(e);return r.lift(new s(l,o,t,n))}}(e,Object(p.a)(new o),t)}n.d(t,"a",function(){return f})},"15JJ":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("mrSG"),i=n("MGBS"),o=n("rPjj"),l=n("zotm"),u=n("67Y/"),a=n("0/uQ");function s(e,t){return"function"==typeof t?function(n){return n.pipe(s(function(n,r){return Object(a.a)(e(n,r)).pipe(Object(u.a)(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new c(e))}}var c=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.project))},e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.c(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,void 0,void 0);this.destination.add(i),this.innerSubscription=Object(l.a)(this,e,t,n,i)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t}(i.a)},"1nxd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{}r.appStarted="app-started",r.getAppStartInfo="app-get-start-info",r.getAppStartInfoReply="app-get-start-info-reply",r.exit="app-exit",r.openUrl="open-url",t.App=r;class i{}i.checkingForUpdate="checking-for-update",i.updateAvailable="update-available",i.updateNotAvailable="update-not-available",i.autoUpdateError="auto-update-error",i.autoUpdateDownloaded="update-downloaded",i.autoUpdateDownloadProgress="auto-update-download-progress",i.updateAndRestart="update-and-restart",i.checkForUpdate="check-for-update",i.checkForUpdateNotAvailable="check-for-update-not-available",t.AutoUpdate=i;class o{}o.setPrivilegeOnLinux="set-privilege-on-linux",o.setPrivilegeOnLinuxReply="set-privilege-on-linux-reply",o.deviceConnectionStateChanged="device-connection-state-changed",o.saveUserConfiguration="device-save-user-configuration",o.saveUserConfigurationReply="device-save-user-configuration-reply",o.loadConfigurations="device-load-configuration",o.loadConfigurationReply="device-load-configuration-reply",o.updateFirmware="device-update-firmware",o.updateFirmwareReply="device-update-firmware-reply",o.startConnectionPoller="device-start-connection-poller",o.recoveryDevice="device-recovery",o.enableUsbStackTest="enable-usb-stack-test",t.Device=o;class l{}l.app=r,l.autoUpdater=i,l.device=o,t.IpcEvents=l},"26FU":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mrSG"),i=n("K9Ia"),o=n("8g8A"),l=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.c(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 o.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.a)},"2Bdj":function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",function(){return r})},"2QPq":function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return l}),n.d(t,"__decorate",function(){return u}),n.d(t,"__param",function(){return a}),n.d(t,"__metadata",function(){return s}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return p}),n.d(t,"__exportStar",function(){return f}),n.d(t,"__values",function(){return d}),n.d(t,"__read",function(){return h}),n.d(t,"__spread",function(){return y}),n.d(t,"__spreadArrays",function(){return b}),n.d(t,"__await",function(){return m}),n.d(t,"__asyncGenerator",function(){return g}),n.d(t,"__asyncDelegator",function(){return v}),n.d(t,"__asyncValues",function(){return k}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return O});var r=function(e,t){return(r=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])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function u(e,t,n,r){var i,o=arguments.length,l=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(l=(o<3?i(l):o>3?i(t,n,l):i(t,n))||l);return o>3&&l&&Object.defineProperty(t,n,l),l}function a(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))(function(i,o){function l(e){try{a(r.next(e))}catch(t){o(t)}}function u(e){try{a(r.throw(e))}catch(t){o(t)}}function a(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(l,u)}a((r=r.apply(e,t||[])).next())})}function p(e,t){var n,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,r=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){l=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){l.label=o[1];break}if(6===o[0]&&l.label<i[1]){l.label=i[1],i=o;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(o);break}i[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function f(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)l.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return l}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],l=0,u=o.length;l<u;l++,i++)r[i]=o[l];return r}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},l("next"),l("throw"),l("return"),r[Symbol.asyncIterator]=function(){return this},r;function l(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{(n=i[e](t)).value instanceof m?Promise.resolve(n.value.v).then(a,s):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function a(e){u("next",e)}function s(e){u("throw",e)}function c(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}}function v(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function k(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=d(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(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}function O(e){return e&&e.__esModule?e:{default:e}}},"2a1v":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:"18.116484",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-2",x:"84.457497",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-3",x:"150.79849",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-4",x:"217.14047",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-5",x:"283.48148",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-6",x:"349.82248",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-7",x:"416.16348",y:"678.38116",ry:"3.5107117",width:"96.728996",height:"63.014999",style:"fill:#333"}},{$:{id:"key-8",x:"51.829502",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-9",x:"118.17051",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-10",x:"184.51248",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-11",x:"250.85349",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-12",x:"317.19449",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-13",x:"383.53549",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-14",x:"449.87747",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-15",x:"-14.511499",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-16",x:"67.828499",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-17",x:"133.81949",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-18",x:"199.81052",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-19",x:"265.80252",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-20",x:"331.79349",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-21",x:"397.78452",y:"811.41412",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-22",x:"1.8374995",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-23",x:"34.921108",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-24",x:"101.15734",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-25",x:"167.39355",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-26",x:"233.62976",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-27",x:"299.86551",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-28",x:"366.20651",y:"877.93018",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}},{$:{id:"key-30",x:"1.2074946",y:"944.44714",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-31",x:"1.2074946",y:"1011.1872",ry:"3.6962967",width:"115.108",height:"41.174999",style:"fill:#333"}},{$:{id:"key-32",x:"118.76652",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-33",x:"201.24649",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-34",x:"283.72647",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-35",x:"366.20651",y:"944.44714",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}}],path:[{$:{d:"M 516.38706,680.32407 C 516.38706,677.38911 514.00888,675.01093 511.07392,675.01093 L 19.888327,675.01093 C 18.909867,675.01093 18.116667,674.21746 18.116667,673.23866 L 18.116667,651.55868 18.116667,651.55194 C 18.116667,650.57349 18.909867,649.78029 19.888327,649.78029 L 125.68888,649.78029 C 127.81809,649.73639 128.89871,648.55406 129.17114,646.84101 132.26186,628.99452 135.45421,611.20795 138.49949,593.93731 139.53551,589.17354 143.88942,585.96932 148.65533,586.72553 281.11656,609.26905 403.66743,628.75963 532.4454,649.98632 536.92364,650.86249 539.55062,654.40739 539.84604,658.70669 L 539.84604,1043.5236 C 539.65045,1048.4273 535.86191,1052.3324 531.008,1052.3616 L 120.53833,1052.3616 C 119.55987,1052.3616 118.76667,1051.5684 118.76667,1050.5899 L 118.76667,1050.5832 118.76667,1012.9583 C 118.76667,1011.9795 119.55987,1011.1861 120.53833,1011.1861 L 511.07392,1011.1861 C 514.00888,1011.1861 516.38706,1008.8079 516.38706,1005.8729 Z",style:"fill:#333"}}]}}},"2ePl":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},"5F+I":function(e){e.exports=JSON.parse('{"isDefault":false,"abbreviation":"VIM","name":"VIM","description":"Phasellus egestas ac tellus id tincidunt. Ut non nisl turpis. Morbi molestie diam elit, et cursus nibh tempus vel. Vestibulum mattis arcu nec nisi dictum, quis facilisis augue rutrum. Fusce vel tristique metus. Nullam pretium elit et enim maximus ornare. Praesent ultrices ligula ut mi convallis, quis ultrices enim venenatis. Aenean interdum odio aliquam quam vestibulum, vel bibendum elit ornare. Morbi leo enim, ullamcorper a bibendum sit amet, ultrices vitae ligula. Etiam consectetur et massa a convallis. Nullam non nisi aliquet, suscipit nulla a, tempor odio. Praesent eu turpis euismod, pellentesque mauris ut, imperdiet felis. Pellentesque vehicula luctus purus, et mattis ante volutpat eu. Quisque venenatis porta odio.","layers":[{"modules":[{"id":0,"pointerRole":"move","keyActions":[{"keyActionType":"mouse","mouseAction":"scrollDown"},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":"scroll","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]},{"id":2,"pointerRole":"move","keyActions":[{"keyActionType":"keystroke","scancode":111,"type":"basic"}]}]},{"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]}]}]}')},"60iU":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("G5J1"),i=n("F/XL"),o=n("XlPw"),l=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},"67Y/":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new l(e,t))}}var l=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.thisArg))},e}(),u=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.c(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(i.a)},"6ahw":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("iLxQ"),i=n("DKTb"),o={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},"6blF":function(e,t,n){"use strict";var r=n("FFOo"),i=n("L/V9"),o=n("6ahw"),l=n("xTla"),u=n("y3By"),a=n("iLxQ");n.d(t,"a",function(){return s});var s=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var l=this.operator,u=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new r.a(e,t,n):new r.a(o.a)}(e,t,n);if(u.add(l?l.call(u,this.source):this.source||a.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),a.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){a.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof r.a?t:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=c(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[l.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:Object(u.b)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=c(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function c(e){if(e||(e=a.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},"6foH":function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";var e="14.0.2";function t(e){e.parentElement.removeChild(e)}function n(e){return null!=e}function r(e){e.preventDefault()}function i(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function o(e,t,n){n>0&&(s(e,t),setTimeout(function(){c(e,t)},n))}function l(e){return Math.max(Math.min(e,100),0)}function u(e){return Array.isArray(e)?e:[e]}function a(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function s(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function c(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function p(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 f(e,t){return 100/(t-e)}function d(e,t){return 100*t/(e[1]-e[0])}function h(e,t){for(var n=1;e>=t[n];)n+=1;return n}function y(t,n,r){var o;if("number"==typeof n&&(n=[n]),!Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' contains invalid value.");if(!i(o="min"===t?0:"max"===t?100:parseFloat(t))||!i(n[0]))throw new Error("noUiSlider ("+e+"): 'range' value isn't numeric.");r.xPct.push(o),r.xVal.push(n[0]),o?r.xSteps.push(!isNaN(n[1])&&n[1]):isNaN(n[1])||(r.xSteps[0]=n[1]),r.xHighestCompleteStep.push(0)}function b(e,t,n){if(t)if(n.xVal[e]!==n.xVal[e+1]){n.xSteps[e]=d([n.xVal[e],n.xVal[e+1]],t)/f(n.xPct[e],n.xPct[e+1]);var r=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]*r}else n.xSteps[e]=n.xHighestCompleteStep[e]=n.xVal[e]}function m(e,t,n){var r;this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t;var i=[];for(r in e)e.hasOwnProperty(r)&&i.push([e[r],r]);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]}),r=0;r<i.length;r++)y(i[r][1],i[r][0],this);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)b(r,this.xNumSteps[r],this)}m.prototype.getMargin=function(t){var n=this.xNumSteps[0];if(n&&t/n%1!=0)throw new Error("noUiSlider ("+e+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&d(this.xVal,t)},m.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var r=h(n,e),i=t[r-1],o=t[r];return i+function(e,t){return d(e,e[0]<0?t+Math.abs(e[0]):t-e[0])}([e[r-1],e[r]],n)/f(i,o)}(this.xVal,this.xPct,e)},m.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var r=h(n,t),i=t[r-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([e[r-1],e[r]],(n-i)*f(i,t[r]))}(this.xVal,this.xPct,e)},m.prototype.getStep=function(e){return function(e,t,n,r){if(100===r)return r;var i=h(r,e),o=e[i-1],l=e[i];return n?r-o>(l-o)/2?l:o:t[i-1]?e[i-1]+function(e,t){return Math.round(e/t)*t}(r-e[i-1],t[i-1]):r}(this.xPct,this.xSteps,this.snap,e)},m.prototype.getDefaultStep=function(e,t,n){var r=h(e,this.xPct);return(100===e||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/n},m.prototype.getNearbySteps=function(e){var t=h(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],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},m.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(a);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 k(t,n){if(!i(n))throw new Error("noUiSlider ("+e+"): 'step' is not numeric.");t.singleStep=n}function _(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 w(t,n){if(n=u(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider ("+e+"): 'start' option is incorrect.");t.handles=n.length,t.start=n}function O(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 C(t,n){if(t.animationDuration=n,"number"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animationDuration' option must be a number.")}function T(t,n){var r,i=[!1];if("lower"===n?n=[!0,!1]:"upper"===n&&(n=[!1,!0]),!0===n||!1===n){for(r=1;r<t.handles;r++)i.push(n);i.push(!1)}else{if(!Array.isArray(n)||!n.length||n.length!==t.handles+1)throw new Error("noUiSlider ("+e+"): 'connect' option doesn't match handle count.");i=n}t.connect=i}function x(t,n){switch(n){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider ("+e+"): 'orientation' option is invalid.")}}function S(t,n){if(!i(n))throw new Error("noUiSlider ("+e+"): 'margin' option must be numeric.");if(0!==n&&(t.margin=t.spectrum.getMargin(n),!t.margin))throw new Error("noUiSlider ("+e+"): 'margin' option is only supported on linear sliders.")}function M(t,n){if(!i(n))throw new Error("noUiSlider ("+e+"): 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(n),!t.limit||t.handles<2)throw new Error("noUiSlider ("+e+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function E(t,n){if(!i(n)&&!Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(n)&&2!==n.length&&!i(n[0])&&!i(n[1]))throw new Error("noUiSlider ("+e+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==n){if(Array.isArray(n)||(n=[n,n]),t.padding=[t.spectrum.getMargin(n[0]),t.spectrum.getMargin(n[1])],!1===t.padding[0]||!1===t.padding[1])throw new Error("noUiSlider ("+e+"): 'padding' option is only supported on linear sliders.");if(t.padding[0]<0||t.padding[1]<0)throw new Error("noUiSlider ("+e+"): 'padding' option must be a positive number(s).");if(t.padding[0]+t.padding[1]>100)throw new Error("noUiSlider ("+e+"): 'padding' option must not exceed 100% of the range.")}}function P(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 I(t,n){if("string"!=typeof n)throw new Error("noUiSlider ("+e+"): 'behaviour' must be a string containing options.");var r=n.indexOf("tap")>=0,i=n.indexOf("drag")>=0,o=n.indexOf("fixed")>=0,l=n.indexOf("snap")>=0,u=n.indexOf("hover")>=0,a=n.indexOf("unconstrained")>=0;if(o){if(2!==t.handles)throw new Error("noUiSlider ("+e+"): 'fixed' behaviour must be used with 2 handles");S(t,t.start[1]-t.start[0])}if(a&&(t.margin||t.limit))throw new Error("noUiSlider ("+e+"): 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:r||l,drag:i,fixed:o,snap:l,hover:u,unconstrained:a}}function j(t,n){if(!1!==n)if(!0===n){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(!0)}else{if(t.tooltips=u(n),t.tooltips.length!==t.handles)throw new Error("noUiSlider ("+e+"): must pass a formatter for all handles.");t.tooltips.forEach(function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider ("+e+"): 'tooltips' must be passed a formatter or 'false'.")})}}function R(e,t){e.ariaFormat=t,v(t)}function L(e,t){e.format=t,v(t)}function N(t,n){if(t.keyboardSupport=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'keyboardSupport' option must be a boolean.")}function D(e,t){e.documentElement=t}function U(t,n){if("string"!=typeof n&&!1!==n)throw new Error("noUiSlider ("+e+"): 'cssPrefix' must be a string or `false`.");t.cssPrefix=n}function F(t,n){if("object"!=typeof n)throw new Error("noUiSlider ("+e+"): 'cssClasses' must be an object.");if("string"==typeof t.cssPrefix)for(var r in t.cssClasses={},n)n.hasOwnProperty(r)&&(t.cssClasses[r]=t.cssPrefix+n[r]);else t.cssClasses=n}function K(t){var r={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:g,format:g},i={step:{r:!1,t:k},start:{r:!0,t:w},connect:{r:!0,t:T},direction:{r:!0,t:P},snap:{r:!1,t:O},animate:{r:!1,t:A},animationDuration:{r:!1,t:C},range:{r:!0,t:_},orientation:{r:!1,t:x},margin:{r:!1,t:S},limit:{r:!1,t:M},padding:{r:!1,t:E},behaviour:{r:!0,t:I},ariaFormat:{r:!1,t:R},format:{r:!1,t:L},tooltips:{r:!1,t:j},keyboardSupport:{r:!0,t:N},documentElement:{r:!1,t:D},cssPrefix:{r:!0,t:U},cssClasses:{r:!0,t:F}},o={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"}};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(i).forEach(function(l){if(!n(t[l])&&void 0===o[l]){if(i[l].r)throw new Error("noUiSlider ("+e+"): '"+l+"' is required.");return!0}i[l].t(r,n(t[l])?t[l]:o[l])}),r.pips=t.pips;var l=document.createElement("div");return r.transformRule=void 0!==l.style.transform?"transform":void 0!==l.style.msTransform?"msTransform":"webkitTransform",r.style=[["left","top"],["right","bottom"]][r.dir][r.ort],r}return{__spectrum:m,version:e,create:function(n,i){if(!n||!n.nodeName)throw new Error("noUiSlider ("+e+"): create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider ("+e+"): Slider was already initialized.");var a=function(n,i,a){var f,d,h,y,b,m,g,v,k=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},_=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(n){}return e}(),w=n,O=i.spectrum,A=[],C=[],T=[],x=0,S={},M=n.ownerDocument,E=i.documentElement||M.documentElement,P=M.body,I=-1,j=0,R=1,L=2,N="rtl"===M.dir||1===i.ort?0:100;function D(e,t){var n=M.createElement("div");return t&&s(n,t),e.appendChild(n),n}function U(e,t){var n=D(e,i.cssClasses.origin),r=D(n,i.cssClasses.handle);return D(r,i.cssClasses.touchArea),r.setAttribute("data-handle",t),i.keyboardSupport&&(r.setAttribute("tabindex","0"),r.addEventListener("keydown",function(e){return function(e,t){if(V()||G(t))return!1;var n=["Left","Right"],r=["Down","Up"];i.dir&&!i.ort?n.reverse():i.ort&&!i.dir&&r.reverse();var o=e.key.replace("Arrow",""),l=o===r[0]||o===n[0];if(!l&&o!==r[1]&&o!==n[1])return!0;e.preventDefault();var u=l?0:1,a=he(t)[u];return null!==a&&(!1===a&&(a=O.getDefaultStep(C[t],l,10)),a=Math.max(a,1e-7),se(t,O.toStepping(A[t]+(a*=l?-1:1)),!0,!0),re("slide",t),re("update",t),re("change",t),re("set",t),!1)}(e,t)})),r.setAttribute("role","slider"),r.setAttribute("aria-orientation",i.ort?"vertical":"horizontal"),0===t?s(r,i.cssClasses.handleLower):t===i.handles-1&&s(r,i.cssClasses.handleUpper),n}function F(e,t){return!!t&&D(e,i.cssClasses.connect)}function B(e,t){return!!i.tooltips[t]&&D(e.firstChild,i.cssClasses.tooltip)}function V(){return w.hasAttribute("disabled")}function G(e){return d[e].hasAttribute("disabled")}function H(){b&&(ne("update.tooltips"),b.forEach(function(e){e&&t(e)}),b=null)}function $(){H(),b=d.map(B),te("update.tooltips",function(e,t,n){if(b[t]){var r=e[t];!0!==i.tooltips[t]&&(r=i.tooltips[t].to(n[t])),b[t].innerHTML=r}})}function z(){y&&(t(y),y=null)}function Q(t){z();var n=t.mode,r=t.density||1,o=t.filter||!1,l=function(t,n,r){if("range"===t||"steps"===t)return O.xVal;if("count"===t){if(n<2)throw new Error("noUiSlider ("+e+"): 'values' (>= 2) required for mode 'count'.");var i=n-1,o=100/i;for(n=[];i--;)n[i]=i*o;n.push(100),t="positions"}return"positions"===t?n.map(function(e){return O.fromStepping(r?O.getStep(e):e)}):"values"===t?r?n.map(function(e){return O.fromStepping(O.getStep(O.toStepping(e)))}):n:void 0}(n,t.values||!1,t.stepped||!1),u=function(e,t,n){var r,i={},o=O.xVal[0],l=O.xVal[O.xVal.length-1],u=!1,a=!1,s=0;return r=n.slice().sort(function(e,t){return e-t}),(n=r.filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==o&&(n.unshift(o),u=!0),n[n.length-1]!==l&&(n.push(l),a=!0),n.forEach(function(r,o){var l,c,p,f,d,h,y,b,m,g=r,v=n[o+1],k="steps"===t;if(k&&(l=O.xNumSteps[o]),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=(d=(f=O.toStepping(c))-s)/(b=Math.round(d/e)),p=1;p<=b;p+=1)i[(h=s+p*m).toFixed(5)]=[O.fromStepping(h),0];y=n.indexOf(c)>-1?R:k?L:j,!o&&u&&(y=0),c===v&&a||(i[f.toFixed(5)]=[c,y]),s=f}}),i}(r,n,l),a=t.format||{to:Math.round};return y=w.appendChild(function(e,t,n){var r=M.createElement("div"),o=[];o[j]=i.cssClasses.valueNormal,o[R]=i.cssClasses.valueLarge,o[L]=i.cssClasses.valueSub;var l=[];l[j]=i.cssClasses.markerNormal,l[R]=i.cssClasses.markerLarge,l[L]=i.cssClasses.markerSub;var u=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],a=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];function c(e,t){var n=t===i.cssClasses.value;return t+" "+(n?u:a)[i.ort]+" "+(n?o:l)[e]}return s(r,i.cssClasses.pips),s(r,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(e).forEach(function(o){!function(e,o,l){if((l=t?t(o,l):l)!==I){var u=D(r,!1);u.className=c(l,i.cssClasses.marker),u.style[i.style]=e+"%",l>j&&((u=D(r,!1)).className=c(l,i.cssClasses.value),u.setAttribute("data-value",o),u.style[i.style]=e+"%",u.innerHTML=n.to(o))}}(o,e[o][0],e[o][1])}),r}(u,o,a))}function W(){var e=f.getBoundingClientRect(),t="offset"+["Width","Height"][i.ort];return 0===i.ort?e.width||f[t]:e.height||f[t]}function q(e,t,n,r){var o=function(o){return!!(o=function(e,t,n){var r,i,o=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),o){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;r=s[0].pageX,i=s[0].pageY}else{var c=Array.prototype.find.call(e.changedTouches,a);if(!c)return!1;r=c.pageX,i=c.pageY}}return t=t||p(M),(l||u)&&(r=e.clientX+t.x,i=e.clientY+t.y),e.pageOffset=t,e.points=[r,i],e.cursor=l||u,e}(o,r.pageOffset,r.target||t))&&!(V()&&!r.doNotReject)&&(u=i.cssClasses.tap,!(((l=w).classList?l.classList.contains(u):new RegExp("\\b"+u+"\\b").test(l.className))&&!r.doNotReject)&&!(e===k.start&&void 0!==o.buttons&&o.buttons>1)&&(!r.hover||!o.buttons)&&(_||o.preventDefault(),o.calcPoint=o.points[i.ort],void n(o,r)));var l,u},l=[];return e.split(" ").forEach(function(e){t.addEventListener(e,o,!!_&&{passive:!0}),l.push([e,o])}),l}function J(e){var t,n,r,o,u,a,s=100*(e-(n=i.ort,r=(t=f).getBoundingClientRect(),u=(o=t.ownerDocument).documentElement,a=p(o),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?r.top+a.y-u.clientTop:r.left+a.x-u.clientLeft))/W();return s=l(s),i.dir?100-s:s}function Y(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&X(e,t)}function Z(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return X(e,t);var n=(i.dir?-1:1)*(e.calcPoint-t.startCalcPoint);le(n>0,100*n/t.baseSize,t.locations,t.handleNumbers)}function X(e,t){t.handle&&(c(t.handle,i.cssClasses.active),x-=1),t.listeners.forEach(function(e){E.removeEventListener(e[0],e[1])}),0===x&&(c(w,i.cssClasses.drag),ae(),e.cursor&&(P.style.cursor="",P.removeEventListener("selectstart",r))),t.handleNumbers.forEach(function(e){re("change",e),re("set",e),re("end",e)})}function ee(e,t){if(t.handleNumbers.some(G))return!1;var n;1===t.handleNumbers.length&&(x+=1,s(n=d[t.handleNumbers[0]].children[0],i.cssClasses.active)),e.stopPropagation();var o=[],l=q(k.move,E,Z,{target:e.target,handle:n,listeners:o,startCalcPoint:e.calcPoint,baseSize:W(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:C.slice()}),u=q(k.end,E,X,{target:e.target,handle:n,listeners:o,doNotReject:!0,handleNumbers:t.handleNumbers}),a=q("mouseout",E,Y,{target:e.target,handle:n,listeners:o,doNotReject:!0,handleNumbers:t.handleNumbers});o.push.apply(o,l.concat(u,a)),e.cursor&&(P.style.cursor=getComputedStyle(e.target).cursor,d.length>1&&s(w,i.cssClasses.drag),P.addEventListener("selectstart",r,!1)),t.handleNumbers.forEach(function(e){re("start",e)})}function te(e,t){S[e]=S[e]||[],S[e].push(t),"update"===e.split(".")[0]&&d.forEach(function(e,t){re("update",t)})}function ne(e){var t=e&&e.split(".")[0],n=t&&e.substring(t.length);Object.keys(S).forEach(function(e){var r=e.split(".")[0],i=e.substring(r.length);t&&t!==r||n&&n!==i||delete S[e]})}function re(e,t,n){Object.keys(S).forEach(function(r){var o=r.split(".")[0];e===o&&S[r].forEach(function(e){e.call(m,A.map(i.format.to),t,A.slice(),n||!1,C.slice())})})}function ie(e,t,n,r,o,u){return d.length>1&&!i.events.unconstrained&&(r&&t>0&&(n=Math.max(n,e[t-1]+i.margin)),o&&t<d.length-1&&(n=Math.min(n,e[t+1]-i.margin))),d.length>1&&i.limit&&(r&&t>0&&(n=Math.min(n,e[t-1]+i.limit)),o&&t<d.length-1&&(n=Math.max(n,e[t+1]-i.limit))),i.padding&&(0===t&&(n=Math.max(n,i.padding[0])),t===d.length-1&&(n=Math.min(n,100-i.padding[1]))),!((n=l(n=O.getStep(n)))===e[t]&&!u)&&n}function oe(e,t){var n=i.ort;return(n?t:e)+", "+(n?e:t)}function le(e,t,n,r){var i=n.slice(),o=[!e,e],l=[e,!e];r=r.slice(),e&&r.reverse(),r.length>1?r.forEach(function(e,n){var r=ie(i,e,i[e]+t,o[n],l[n],!1);!1===r?t=0:(t=r-i[e],i[e]=r)}):o=l=[!0];var u=!1;r.forEach(function(e,r){u=se(e,n[e]+t,o[r],l[r])||u}),u&&r.forEach(function(e){re("update",e),re("slide",e)})}function ue(e,t){return i.dir?100-e-t:e}function ae(){T.forEach(function(e){d[e].style.zIndex=3+(d.length+(C[e]>50?-1:1)*e)})}function se(e,t,n,r){return!1!==(t=ie(C,e,t,n,r,!1))&&(function(e,t){C[e]=t,A[e]=O.fromStepping(t);var n="translate("+oe(10*(ue(t,0)-N)+"%","0")+")";d[e].style[i.transformRule]=n,ce(e),ce(e+1)}(e,t),!0)}function ce(e){if(h[e]){var t=0,n=100;0!==e&&(t=C[e-1]),e!==h.length-1&&(n=C[e]);var r=n-t,o="translate("+oe(ue(t,r)+"%","0")+")",l="scale("+oe(r/100,"1")+")";h[e].style[i.transformRule]=o+" "+l}}function pe(e,t){return null===e||!1===e||void 0===e?C[t]:("number"==typeof e&&(e=String(e)),e=i.format.from(e),!1===(e=O.toStepping(e))||isNaN(e)?C[t]:e)}function fe(e,t){var n=u(e);t=void 0===t||!!t,i.animate&&!(void 0===C[0])&&o(w,i.cssClasses.tap,i.animationDuration),T.forEach(function(e){se(e,pe(n[e],e),!0,!1)}),T.forEach(function(e){se(e,C[e],!0,!0)}),ae(),T.forEach(function(e){re("update",e),null!==n[e]&&t&&re("set",e)})}function de(){var e=A.map(i.format.to);return 1===e.length?e[0]:e}function he(e){var t=C[e],n=O.getNearbySteps(t),r=A[e],o=n.thisStep.step,l=null;if(i.snap)return[r-n.stepBefore.startValue||null,n.stepAfter.startValue-r||null];!1!==o&&r+o>n.stepAfter.startValue&&(o=n.stepAfter.startValue-r),l=r>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&r-n.stepBefore.highestStep,100===t?o=null:0===t&&(l=null);var u=O.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(u))),null!==l&&!1!==l&&(l=Number(l.toFixed(u))),[l,o]}return s(g=w,i.cssClasses.target),s(g,0===i.dir?i.cssClasses.ltr:i.cssClasses.rtl),s(g,0===i.ort?i.cssClasses.horizontal:i.cssClasses.vertical),f=D(g,i.cssClasses.base),function(e,t){var n=D(t,i.cssClasses.connects);d=[],(h=[]).push(F(n,e[0]));for(var r=0;r<i.handles;r++)d.push(U(t,r)),T[r]=r,h.push(F(n,e[r+1]))}(i.connect,f),(v=i.events).fixed||d.forEach(function(e,t){q(k.start,e.children[0],ee,{handleNumbers:[t]})}),v.tap&&q(k.start,f,function(e){e.stopPropagation();var t=J(e.calcPoint),n=function(e){var t=100,n=!1;return d.forEach(function(r,i){if(!G(i)){var o=C[i],l=Math.abs(o-e);(l<t||l<=t&&e>o||100===l&&100===t)&&(n=i,t=l)}}),n}(t);if(!1===n)return!1;i.events.snap||o(w,i.cssClasses.tap,i.animationDuration),se(n,t,!0,!0),ae(),re("slide",n,!0),re("update",n,!0),re("change",n,!0),re("set",n,!0),i.events.snap&&ee(e,{handleNumbers:[n]})},{}),v.hover&&q(k.move,f,function(e){var t=J(e.calcPoint),n=O.getStep(t),r=O.fromStepping(n);Object.keys(S).forEach(function(e){"hover"===e.split(".")[0]&&S[e].forEach(function(e){e.call(m,r)})})},{hover:!0}),v.drag&&h.forEach(function(e,t){if(!1!==e&&0!==t&&t!==h.length-1){var n=d[t-1],r=d[t],o=[e];s(e,i.cssClasses.draggable),v.fixed&&(o.push(n.children[0]),o.push(r.children[0])),o.forEach(function(e){q(k.start,e,ee,{handles:[n,r],handleNumbers:[t-1,t]})})}}),fe(i.start),i.pips&&Q(i.pips),i.tooltips&&$(),te("update",function(e,t,n,r,o){T.forEach(function(e){var t=d[e],r=ie(C,e,0,!0,!0,!0),l=ie(C,e,100,!0,!0,!0),u=o[e],a=i.ariaFormat.to(n[e]);r=O.fromStepping(r).toFixed(1),l=O.fromStepping(l).toFixed(1),u=O.fromStepping(u).toFixed(1),t.children[0].setAttribute("aria-valuemin",r),t.children[0].setAttribute("aria-valuemax",l),t.children[0].setAttribute("aria-valuenow",u),t.children[0].setAttribute("aria-valuetext",a)})}),m={destroy:function(){for(var e in i.cssClasses)i.cssClasses.hasOwnProperty(e)&&c(w,i.cssClasses[e]);for(;w.firstChild;)w.removeChild(w.firstChild);delete w.noUiSlider},steps:function(){return T.map(he)},on:te,off:ne,get:de,set:fe,setHandle:function(t,n,r){if(!((t=Number(t))>=0&&t<T.length))throw new Error("noUiSlider ("+e+"): invalid handle number, got: "+t);se(t,pe(n,t),!0,!0),re("update",t),r&&re("set",t)},reset:function(e){fe(i.start,e)},__moveHandles:function(e,t,n){le(e,t,C,n)},options:a,updateOptions:function(e,t){var n=de(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];r.forEach(function(t){void 0!==e[t]&&(a[t]=e[t])});var o=K(a);r.forEach(function(t){void 0!==e[t]&&(i[t]=o[t])}),O=o.spectrum,i.margin=o.margin,i.limit=o.limit,i.padding=o.padding,i.pips?Q(i.pips):z(),i.tooltips?$():H(),C=[],fe(e.start||n,t)},target:w,removePips:z,removeTooltips:H,pips:Q}}(n,K(i),i);return n.noUiSlider=a,a}}})?r.apply(t,[]):r)||(e.exports=i)},"6vzy":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={}))},"8/JR":function(e,t,n){"use strict";var r=n("8T9/"),i=n("Ibf7");e.exports=function(e,t){var n=t||{},o={};return void 0===e&&(e={}),e.on=function(t,n){return o[t]?o[t].push(n):o[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var r=arguments.length;if(1===r)delete o[t];else if(0===r)o={};else{var i=o[t];if(!i)return e;i.splice(i.indexOf(n),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var l=(o[t]||[]).slice(0);return function(){var o=r(arguments),u=this||e;if("error"===t&&!1!==n.throws&&!l.length)throw 1===o.length?o[0]:o;return l.forEach(function(r){n.async?i(r,o,u):r.apply(u,o),r._once&&e.off(t,r)}),e}},e}},"88NP":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("RGrK");t.NoneAction=class extends r.KeyAction{fromJsonObject(e){return this.assertKeyActionType(e),this}fromBinary(e){return this.readAndAssertKeyActionId(e),this}toJsonObject(){return{keyActionType:r.keyActionType.NoneAction}}toBinary(e){e.writeUInt8(r.KeyActionId.NoneAction)}toString(){return"<NoneAction>"}getName(){return"NoneAction"}}},"8T9/":function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},"8g8A":function(e,t,n){"use strict";function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},"90N0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("SACm"),l=n("s9zn"),u=n("myTe"),a=n("p2JS"),s=n("i/vr"),c=n("TEuf"),p=n("UEaM"),f=n("DFZA");class d{constructor(){this.moduleConfigurations=[],this.keymaps=[],this.macros=[],this.setDefaultDeviceName()}fromJsonObject(e){return this.userConfigMajorVersion=e.userConfigMajorVersion,this.userConfigMinorVersion=e.userConfigMinorVersion,this.userConfigPatchVersion=e.userConfigPatchVersion,this.deviceName=e.deviceName,this.setDefaultDeviceName(),this.doubleTapSwitchLayerTimeout=e.doubleTapSwitchLayerTimeout,this.iconsAndLayerTextsBrightness=e.iconsAndLayerTextsBrightness,this.alphanumericSegmentsBrightness=e.alphanumericSegmentsBrightness,this.keyBacklightBrightness=e.keyBacklightBrightness,this.mouseMoveInitialSpeed=e.mouseMoveInitialSpeed,this.mouseMoveAcceleration=e.mouseMoveAcceleration,this.mouseMoveDeceleratedSpeed=e.mouseMoveDeceleratedSpeed,this.mouseMoveBaseSpeed=e.mouseMoveBaseSpeed,this.mouseMoveAcceleratedSpeed=e.mouseMoveAcceleratedSpeed,this.mouseScrollInitialSpeed=e.mouseScrollInitialSpeed,this.mouseScrollAcceleration=e.mouseScrollAcceleration,this.mouseScrollDeceleratedSpeed=e.mouseScrollDeceleratedSpeed,this.mouseScrollBaseSpeed=e.mouseScrollBaseSpeed,this.mouseScrollAcceleratedSpeed=e.mouseScrollAcceleratedSpeed,this.moduleConfigurations=e.moduleConfigurations.map(e=>(new a.ModuleConfiguration).fromJsonObject(e)),this.macros=e.macros.map((e,t)=>{const n=(new u.Macro).fromJsonObject(e);return n.id=t,n}),this.keymaps=e.keymaps.map(e=>(new l.Keymap).fromJsonObject(e,this.macros)),this.clean(),this.recalculateConfigurationLength(),this}fromBinary(e){return this.userConfigMajorVersion=e.readUInt16(),this.userConfigMinorVersion=e.readUInt16(),this.userConfigPatchVersion=e.readUInt16(),this.userConfigurationLength=e.readUInt16(),this.deviceName=e.readString(),this.setDefaultDeviceName(),this.doubleTapSwitchLayerTimeout=e.readUInt16(),this.iconsAndLayerTextsBrightness=e.readUInt8(),this.alphanumericSegmentsBrightness=e.readUInt8(),this.keyBacklightBrightness=e.readUInt8(),this.mouseMoveInitialSpeed=e.readUInt8(),this.mouseMoveAcceleration=e.readUInt8(),this.mouseMoveDeceleratedSpeed=e.readUInt8(),this.mouseMoveBaseSpeed=e.readUInt8(),this.mouseMoveAcceleratedSpeed=e.readUInt8(),this.mouseScrollInitialSpeed=e.readUInt8(),this.mouseScrollAcceleration=e.readUInt8(),this.mouseScrollDeceleratedSpeed=e.readUInt8(),this.mouseScrollBaseSpeed=e.readUInt8(),this.mouseScrollAcceleratedSpeed=e.readUInt8(),this.moduleConfigurations=e.readArray(e=>(new a.ModuleConfiguration).fromBinary(e)),this.macros=e.readArray((e,t)=>{const n=(new u.Macro).fromBinary(e);return n.id=t,n}),this.keymaps=e.readArray(e=>(new l.Keymap).fromBinary(e,this.macros)),s.ConfigSerializer.resolveSwitchKeymapActions(this.keymaps),this.clean(),0===this.userConfigurationLength&&this.recalculateConfigurationLength(),this}toJsonObject(){return{userConfigMajorVersion:this.userConfigMajorVersion,userConfigMinorVersion:this.userConfigMinorVersion,userConfigPatchVersion:this.userConfigPatchVersion,deviceName:this.deviceName,doubleTapSwitchLayerTimeout:this.doubleTapSwitchLayerTimeout,iconsAndLayerTextsBrightness:this.iconsAndLayerTextsBrightness,alphanumericSegmentsBrightness:this.alphanumericSegmentsBrightness,keyBacklightBrightness:this.keyBacklightBrightness,mouseMoveInitialSpeed:this.mouseMoveInitialSpeed,mouseMoveAcceleration:this.mouseMoveAcceleration,mouseMoveDeceleratedSpeed:this.mouseMoveDeceleratedSpeed,mouseMoveBaseSpeed:this.mouseMoveBaseSpeed,mouseMoveAcceleratedSpeed:this.mouseMoveAcceleratedSpeed,mouseScrollInitialSpeed:this.mouseScrollInitialSpeed,mouseScrollAcceleration:this.mouseScrollAcceleration,mouseScrollDeceleratedSpeed:this.mouseScrollDeceleratedSpeed,mouseScrollBaseSpeed:this.mouseScrollBaseSpeed,mouseScrollAcceleratedSpeed:this.mouseScrollAcceleratedSpeed,moduleConfigurations:this.moduleConfigurations.map(e=>e.toJsonObject()),keymaps:this.keymaps.map(e=>e.toJsonObject(this.macros)),macros:this.macros.map(e=>e.toJsonObject())}}toBinary(e){e.writeUInt16(this.userConfigMajorVersion),e.writeUInt16(this.userConfigMinorVersion),e.writeUInt16(this.userConfigPatchVersion),e.writeUInt16(this.userConfigurationLength),e.writeString(this.deviceName),e.writeUInt16(this.doubleTapSwitchLayerTimeout),e.writeUInt8(this.iconsAndLayerTextsBrightness),e.writeUInt8(this.alphanumericSegmentsBrightness),e.writeUInt8(this.keyBacklightBrightness),e.writeUInt8(this.mouseMoveInitialSpeed),e.writeUInt8(this.mouseMoveAcceleration),e.writeUInt8(this.mouseMoveDeceleratedSpeed),e.writeUInt8(this.mouseMoveBaseSpeed),e.writeUInt8(this.mouseMoveAcceleratedSpeed),e.writeUInt8(this.mouseScrollInitialSpeed),e.writeUInt8(this.mouseScrollAcceleration),e.writeUInt8(this.mouseScrollDeceleratedSpeed),e.writeUInt8(this.mouseScrollBaseSpeed),e.writeUInt8(this.mouseScrollAcceleratedSpeed),e.writeArray(this.moduleConfigurations),e.writeArray(this.macros),e.writeArray(this.keymaps,(e,t)=>{t.toBinary(e,this)})}toString(){return`<UserConfiguration userConfigVersion="${this.userConfigMajorVersion}. ${this.userConfigMinorVersion}.${this.userConfigPatchVersion}">`}getKeymap(e){return this.keymaps.find(t=>e===t.abbreviation)}getMacro(e){return this.macros.find(t=>e===t.id)}recalculateConfigurationLength(){const e=new o.UhkBuffer;this.toBinary(e),this.userConfigurationLength=e.offset}setDefaultDeviceName(){this.deviceName&&0!==this.deviceName.trim().length||(this.deviceName="My UHK")}clean(){for(const e of this.keymaps)for(let t=1;t<e.layers.length;t++){const n=e.layers[t];for(const e of n.modules)for(let t=0;t<e.keyActions.length;t++){const n=e.keyActions[t];n&&n instanceof c.KeystrokeAction&&(n.secondaryRoleAction!==p.SecondaryRoleAction.fn&&n.secondaryRoleAction!==p.SecondaryRoleAction.mod&&n.secondaryRoleAction!==p.SecondaryRoleAction.mouse||(n._secondaryRoleAction=void 0),n.hasScancode()&&!f.isScancodeExists(n.scancode)&&(e.keyActions[t]=new c.NoneAction))}}}}r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],d.prototype,"userConfigMajorVersion",void 0),r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],d.prototype,"userConfigMinorVersion",void 0),r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],d.prototype,"userConfigPatchVersion",void 0),r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],d.prototype,"userConfigurationLength",void 0),r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],d.prototype,"doubleTapSwitchLayerTimeout",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"iconsAndLayerTextsBrightness",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"alphanumericSegmentsBrightness",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"keyBacklightBrightness",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"mouseMoveInitialSpeed",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"mouseMoveAcceleration",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"mouseMoveDeceleratedSpeed",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"mouseMoveBaseSpeed",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"mouseMoveAcceleratedSpeed",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"mouseScrollInitialSpeed",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"mouseScrollAcceleration",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"mouseScrollDeceleratedSpeed",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"mouseScrollBaseSpeed",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],d.prototype,"mouseScrollAcceleratedSpeed",void 0),t.UserConfiguration=d},"9RND":function(e){e.exports=JSON.parse('{"name":"uhk-agent","private":true,"author":"Ultimate Gadget Laboratories","main":"electron/dist/electron-main.js","version":"1.2.13","firmwareVersion":"8.5.4","deviceProtocolVersion":"4.4.0","userConfigVersion":"4.0.1","hardwareConfigVersion":"1.0.0","description":"Agent is the configuration application of the Ultimate Hacking Keyboard.","repository":{"type":"git","url":"git@github.com:UltimateHackingKeyboard/agent.git"},"license":"GPL-3.0","engines":{"node":">=12.0.0 <13.0.0","npm":">=6.9.0 <7.0.0"},"devDependencies":{"@types/decompress":"4.2.3","@types/electron-devtools-installer":"2.0.2","@types/electron-settings":"3.0.0","@types/file-saver":"0.0.1","@types/fs-extra":"8.0.0","@types/jasmine":"3.3.12","@types/jasminewd2":"2.0.3","@types/jquery":"3.3.29","@types/jsonfile":"4.0.1","@types/lodash":"4.14.136","@types/node":"8.0.53","@types/node-hid":"0.7.0","@types/request":"2.0.8","@types/semver":"5.5.0","@types/tmp":"0.0.33","autoprefixer":"6.5.3","buffer":"5.0.6","check-node-version":"^3.2.0","copy-webpack-plugin":"5.0.0","copyfiles":"2.1.1","core-js":"2.4.1","cross-env":"5.0.5","decompress":"4.2.0","decompress-tarbz2":"4.1.1","devtron":"1.4.0","electron":"5.0.9","electron-builder":"20.34.0","electron-debug":"1.5.0","electron-devtools-installer":"2.2.3","electron-log":"2.2.16","electron-rebuild":"1.8.6","electron-settings":"3.1.4","electron-updater":"2.21.4","exports-loader":"0.6.3","file-loader":"0.10.0","fs-extra":"8.1.0","gh-pages":"2.0.1","html-webpack-plugin":"3.2.0","jasmine":"3.4.0","jasmine-core":"3.4.0","jasmine-node":"3.0.0","jasmine-ts":"0.3.0","jsonfile":"4.0.0","lerna":"3.16.4","lodash":"4.17.15","node-hid":"0.7.9","npm-run-all":"4.0.2","nrf-intel-hex":"1.3.0","postcss-url":"8.0.0","pre-commit":"1.2.2","request":"2.88.0","rimraf":"2.6.1","source-map-support":"0.5.9","stylelint":"10.0.0","svg-sprite":"1.5.0","ts-loader":"5.3.3","ts-node":"8.3.0","tslint":"5.18.0","typescript":"3.5.3","webpack":"4.29.5","webpack-cli":"3.2.3"},"pre-commit":["precommit-msg"],"scripts":{"postinstall":"lerna bootstrap","precommit-msg":"Git precommit hook is running... & exit 0","test":"lerna run test","lint":"lerna run lint","e2e":"lerna run e2e --scope uhk-web","prebuild":"check-node-version --package","build":"lerna 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","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 ./tmp","predeploy-gh-pages":"lerna run build:web --scope=uhk-web","deploy-gh-pages":"gh-pages -d packages/uhk-web/dist","convert-user-config-to-bin":"node -r ts-node/register ./packages/usb/user-config-json-to-bin.ts"}}')},"9Z1F":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("mrSG"),i=n("MGBS"),o=n("rPjj"),l=n("zotm");function u(e){return function(t){var n=new a(e),r=t.lift(n);return n.caught=r}}var a=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,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return r.c(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(i){return void e.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var r=new o.a(this,void 0,void 0);this.add(r),Object(l.a)(this,n,void 0,void 0,r)}},t}(i.a)},"9ixT":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("RGrK");var l;!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",e[e.button4=13]="button4",e[e.button5=14]="button5",e[e.button6=15]="button6",e[e.button7=16]="button7",e[e.button8=17]="button8"}(l=t.MouseActionParam||(t.MouseActionParam={}));class u extends o.KeyAction{constructor(e){super(),e&&(this.mouseAction=e.mouseAction)}fromJsonObject(e){return this.assertKeyActionType(e),this.mouseAction=l[e.mouseAction],this}fromBinary(e){return this.readAndAssertKeyActionId(e),this.mouseAction=e.readUInt8(),this}toJsonObject(){return{keyActionType:o.keyActionType.MouseAction,mouseAction:l[this.mouseAction]}}toBinary(e){e.writeUInt8(o.KeyActionId.MouseAction),e.writeUInt8(this.mouseAction)}toString(){return`<MouseAction mouseAction="${this.mouseAction}">`}getName(){return"MouseAction"}}r.__decorate([i.assertEnum(l),r.__metadata("design:type",Number)],u.prototype,"mouseAction",void 0),t.MouseAction=u},"9j6c":function(e){e.exports=JSON.parse('[{"id":"-1","text":"None"},{"text":"Layer switcher","children":[{"id":"8","text":"Mod"},{"id":"9","text":"Fn"},{"id":"10","text":"Mouse"}]},{"text":"Modifier","children":[{"id":"0","text":"LShift"},{"id":"1","text":"LCtrl"},{"id":"2","text":"LSuper"},{"id":"3","text":"LAlt"},{"id":"4","text":"RShift"},{"id":"5","text":"RCtrl"},{"id":"6","text":"RSuper"},{"id":"7","text":"RAlt"}]}]')},A5yv:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"h",function(){return INITIAL_OPTIONS}),__webpack_require__.d(__webpack_exports__,"g",function(){return STORE_DEVTOOLS_CONFIG}),__webpack_require__.d(__webpack_exports__,"i",function(){return createConfig}),__webpack_require__.d(__webpack_exports__,"l",function(){return DevtoolsDispatcher}),__webpack_require__.d(__webpack_exports__,"k",function(){return DevtoolsExtension}),__webpack_require__.d(__webpack_exports__,"j",function(){return REDUX_DEVTOOLS_EXTENSION}),__webpack_require__.d(__webpack_exports__,"c",function(){return IS_EXTENSION_OR_MONITOR_PRESENT}),__webpack_require__.d(__webpack_exports__,"d",function(){return createIsExtensionOrMonitorPresent}),__webpack_require__.d(__webpack_exports__,"e",function(){return createReduxDevtoolsExtension}),__webpack_require__.d(__webpack_exports__,"f",function(){return createStateObservable}),__webpack_require__.d(__webpack_exports__,"b",function(){return StoreDevtoolsModule}),__webpack_require__.d(__webpack_exports__,"a",function(){return StoreDevtools});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("mrSG"),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("CcnG"),_ngrx_store__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("yGQT"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("G5J1"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("6blF"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("F/XL"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("p0ib"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("zo3G"),rxjs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("S5bw"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("S1nX"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("VnD/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("67Y/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("Phjn"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("0zd0"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("Gi3i"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("9Z1F"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("t9fZ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("ny24"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("15JJ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("0mNj"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("mZXl"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("/PH2"),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("dC0D"),StoreDevtoolsConfig=function(){return function(){}}(),STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("@ngrx/devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("@ngrx/devtools Initial Config");function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(e){var t={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},n="function"==typeof e?e():e,r=Object.assign({},t,{features:n.features||!!n.logOnly&&{pause:!0,export:!0,test:!0}||t.features},n);if(r.maxAge&&r.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+r.maxAge);return r}var PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING",PerformAction=function(){return function(e,t){if(this.action=e,this.timestamp=t,this.type=PERFORM_ACTION,void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}(),Refresh=function(){return function(){this.type=REFRESH}}(),Reset=function(){return function(e){this.timestamp=e,this.type=RESET}}(),Rollback=function(){return function(e){this.timestamp=e,this.type=ROLLBACK}}(),Commit=function(){return function(e){this.timestamp=e,this.type=COMMIT}}(),Sweep=function(){return function(){this.type=SWEEP}}(),ToggleAction=function(){return function(e){this.id=e,this.type=TOGGLE_ACTION}}(),JumpToState=function(){return function(e){this.index=e,this.type=JUMP_TO_STATE}}(),JumpToAction=function(){return function(e){this.actionId=e,this.type=JUMP_TO_ACTION}}(),ImportState=function(){return function(e){this.nextLiftedState=e,this.type=IMPORT_STATE}}(),LockChanges=function(){return function(e){this.status=e,this.type=LOCK_CHANGES}}(),PauseRecording=function(){return function(e){this.status=e,this.type=PAUSE_RECORDING}}();function difference(e,t){return e.filter(function(e){return t.indexOf(e)<0})}function unliftState(e){var t=e.computedStates,n=e.currentStateIndex;return n>=t.length?t[t.length-1].state:t[n].state}function liftAction(e){return new PerformAction(e,+Date.now())}function sanitizeActions(e,t){return Object.keys(t).reduce(function(n,r){var i=Number(r);return n[i]=sanitizeAction(e,t[i],i),n},{})}function sanitizeAction(e,t,n){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},t,{action:e(t.action,n)})}function sanitizeStates(e,t){return t.map(function(t,n){return{state:sanitizeState(e,t.state,n),error:t.error}})}function sanitizeState(e,t,n){return e(t,n)}function shouldFilterActions(e){return e.predicate||e.actionsSafelist||e.actionsBlocklist}function filterLiftedState(e,t,n,r){var i=[],o={},l=[];return e.stagedActionIds.forEach(function(u,a){var s=e.actionsById[u];s&&(a&&isActionFiltered(e.computedStates[a],s,t,n,r)||(o[u]=s,i.push(u),l.push(e.computedStates[a])))}),Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e,{stagedActionIds:i,actionsById:o,computedStates:l})}function isActionFiltered(e,t,n,r,i){var o=n&&!n(e,t.action),l=r&&!t.action.type.match(r.join("|")),u=i&&t.action.type.match(i.join("|"));return o||l||u}var DevtoolsDispatcher=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.c)(t,e),t}(_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.a),ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("Redux Devtools Extension"),DevtoolsExtension=function(){function DevtoolsExtension(e,t,n){this.config=t,this.dispatcher=n,this.devtoolsExtension=e,this.createActionStreams()}return DevtoolsExtension.prototype.notify=function(e,t){var n=this;if(this.devtoolsExtension)if(e.type===PERFORM_ACTION){if(t.isLocked||t.isPaused)return;var r=unliftState(t);if(shouldFilterActions(this.config)&&isActionFiltered(r,e,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;var i=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,r,t.currentStateIndex):r,o=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,e,t.nextActionId):e;this.sendToReduxDevtools(function(){return n.extensionConnection.send(o,i)})}else{var l=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},t,{stagedActionIds:t.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,t.actionsById):t.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,t.computedStates):t.computedStates});this.sendToReduxDevtools(function(){return n.devtoolsExtension.send(null,l,n.getExtensionConfig(n.config))})}},DevtoolsExtension.prototype.createChangesObservable=function(){var e=this;return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_4__.a(function(t){var n=e.devtoolsExtension.connect(e.getExtensionConfig(e.config));return e.extensionConnection=n,n.init(),n.subscribe(function(e){return t.next(e)}),n.unsubscribe}):Object(rxjs__WEBPACK_IMPORTED_MODULE_3__.b)()},DevtoolsExtension.prototype.createActionStreams=function(){var e=this,t=this.createChangesObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)()),n=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(e){return e.type===ExtensionActionTypes.START})),r=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(e){return e.type===ExtensionActionTypes.STOP})),i=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(e){return e.type===ExtensionActionTypes.DISPATCH}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(t){return e.unwrapAction(t.payload)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(function(t){return t.type===IMPORT_STATE?e.dispatcher.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(e){return e.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.p}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(){return t}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(function(){return Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(t)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(1)):Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(t)})),o=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(function(e){return e.type===ExtensionActionTypes.ACTION}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(t){return e.unwrapAction(t.payload)})).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(r)),l=i.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(r));this.start$=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(r)),this.actions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(function(){return o})),this.liftedActions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(function(){return l}))},DevtoolsExtension.prototype.unwrapAction=function(action){return"string"==typeof action?eval("("+action+")"):action},DevtoolsExtension.prototype.getExtensionConfig=function(e){var t={name:e.name,features:e.features,serialize:e.serialize};return!1!==e.maxAge&&(t.maxAge=e.maxAge),t},DevtoolsExtension.prototype.sendToReduxDevtools=function(e){try{e()}catch(t){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",t)}},DevtoolsExtension}(),INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.b},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(e,t,n,r,i){if(r)return{state:n,error:"Interrupted by an error up the chain"};var o,l=n;try{l=e(n,t)}catch(u){o=u.toString(),i.handleError(u.stack||u)}return{state:l,error:o}}function recomputeStates(e,t,n,r,i,o,l,u,a){if(t>=e.length&&e.length===o.length)return e;for(var s=e.slice(0,t),c=o.length-(a?1:0),p=t;p<c;p++){var f=o[p],d=i[f].action,h=s[p-1],y=h?h.state:r,b=h?h.error:void 0,m=l.indexOf(f)>-1?h:computeNextEntry(n,d,y,b,u);s.push(m)}return a&&s.push(e[e.length-1]),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:[],isLocked:!1,isPaused:!1}}function liftReducerWith(e,t,n,r,i){return void 0===i&&(i={}),function(o){return function(l,u){var a,s=l||t,c=s.monitorState,p=s.actionsById,f=s.nextActionId,d=s.stagedActionIds,h=s.skippedActionIds,y=s.committedState,b=s.currentStateIndex,m=s.computedStates,g=s.isLocked,v=s.isPaused;function k(e){for(var t=e,n=d.slice(1,t+1),r=0;r<n.length;r++){if(m[r+1].error){n=d.slice(1,(t=r)+1);break}delete p[n[r]]}h=h.filter(function(e){return-1===n.indexOf(e)}),d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)([0],d.slice(t+1)),y=m[t].state,m=m.slice(t),b=b>t?b-t:0}function _(){p={0:liftAction(INIT_ACTION)},f=1,d=[0],h=[],y=m[b].state,b=0,m=[]}l||(p=Object.create(p));var w=0;switch(u.type){case LOCK_CHANGES:g=u.status,w=1/0;break;case PAUSE_RECORDING:(v=u.status)?(d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(d,[f]),p[f]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),f++,w=d.length-1,m=m.concat(m[m.length-1]),b===d.length-2&&b++,w=1/0):_();break;case RESET:p={0:liftAction(INIT_ACTION)},f=1,d=[0],h=[],y=e,b=0,m=[];break;case COMMIT:_();break;case ROLLBACK:p={0:liftAction(INIT_ACTION)},f=1,d=[0],h=[],b=0,m=[];break;case TOGGLE_ACTION:var O=u.id,A=h.indexOf(O);h=-1===A?Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)([O],h):h.filter(function(e){return e!==O}),w=d.indexOf(O);break;case SET_ACTIONS_ACTIVE:for(var C=u.start,T=u.end,x=u.active,S=[],M=C;M<T;M++)S.push(M);h=x?difference(h,S):Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(h,S),w=d.indexOf(C);break;case JUMP_TO_STATE:b=u.index,w=1/0;break;case JUMP_TO_ACTION:-1!==(A=d.indexOf(u.actionId))&&(b=A),w=1/0;break;case SWEEP:d=difference(d,h),h=[],b=Math.min(b,d.length-1);break;case PERFORM_ACTION:if(g)return l||t;if(v||l&&isActionFiltered(l.computedStates[b],u,i.predicate,i.actionsSafelist,i.actionsBlocklist)){var E=m[m.length-1];m=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(m.slice(0,-1),[computeNextEntry(o,u.action,E.state,E.error,n)]),w=1/0;break}i.maxAge&&d.length===i.maxAge&&k(1),b===d.length-1&&b++;var P=f++;p[P]=u,w=(d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(d,[P])).length-1;break;case IMPORT_STATE:c=(a=u.nextLiftedState).monitorState,p=a.actionsById,f=a.nextActionId,d=a.stagedActionIds,h=a.skippedActionIds,y=a.committedState,b=a.currentStateIndex,m=a.computedStates,g=a.isLocked,v=a.isPaused;break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_2__.b:w=0,i.maxAge&&d.length>i.maxAge&&(m=recomputeStates(m,w,o,y,p,d,h,n,v),k(d.length-i.maxAge),w=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_2__.p:m.filter(function(e){return e.error}).length>0?(w=0,i.maxAge&&d.length>i.maxAge&&(m=recomputeStates(m,w,o,y,p,d,h,n,v),k(d.length-i.maxAge),w=1/0)):(v||g||(b===d.length-1&&b++,P=f++,p[P]=new PerformAction(u,+Date.now()),d=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.g)(d,[P]),m=recomputeStates(m,w=d.length-1,o,y,p,d,h,n,v)),m=m.map(function(e){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},e,{state:o(e.state,RECOMPUTE_ACTION)})}),b=d.length-1,i.maxAge&&d.length>i.maxAge&&k(d.length-i.maxAge),w=1/0);break;default:w=1/0}return m=recomputeStates(m,w,o,y,p,d,h,n,v),{monitorState:c=r(c,u),actionsById:p,nextActionId:f,stagedActionIds:d,skippedActionIds:h,committedState:y,currentStateIndex:b,computedStates:m,isLocked:g,isPaused:v}}}}var StoreDevtools=function(){function e(e,t,n,r,i,o,l,u){var a=this,s=liftInitialState(l,u.monitor),c=liftReducerWith(l,s,o,u.monitor,u),p=Object(rxjs__WEBPACK_IMPORTED_MODULE_6__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_6__.a)(t.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.a)(1)),r.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(liftAction)),e,r.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.b)(rxjs__WEBPACK_IMPORTED_MODULE_7__.a)),f=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(c)),d=new rxjs__WEBPACK_IMPORTED_MODULE_8__.a(1),h=p.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(f),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.a)(function(e,t){var n=e.state,i=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.f)(t,2),o=i[0],l=(0,i[1])(n,o);return o.type!==PERFORM_ACTION&&shouldFilterActions(u)&&(l=filterLiftedState(l,u.predicate,u.actionsSafelist,u.actionsBlocklist)),r.notify(o,l),{state:l,action:o}},{state:s,action:null})).subscribe(function(e){var t=e.action;d.next(e.state),t.type===PERFORM_ACTION&&i.next(t.action)}),y=r.start$.subscribe(function(){a.refresh()}),b=d.asObservable(),m=b.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(unliftState));this.extensionStartSubscription=y,this.stateSubscription=h,this.dispatcher=e,this.liftedState=b,this.state=m}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,+Date.now()))},e.prototype.refresh=function(){this.dispatch(new Refresh)},e.prototype.reset=function(){this.dispatch(new Reset(+Date.now()))},e.prototype.rollback=function(){this.dispatch(new Rollback(+Date.now()))},e.prototype.commit=function(){this.dispatch(new Commit(+Date.now()))},e.prototype.sweep=function(){this.dispatch(new Sweep)},e.prototype.toggleAction=function(e){this.dispatch(new ToggleAction(e))},e.prototype.jumpToAction=function(e){this.dispatch(new JumpToAction(e))},e.prototype.jumpToState=function(e){this.dispatch(new JumpToState(e))},e.prototype.importState=function(e){this.dispatch(new ImportState(e))},e.prototype.lockChanges=function(e){this.dispatch(new LockChanges(e))},e.prototype.pauseRecording=function(e){this.dispatch(new PauseRecording(e))},e}(),IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.q("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(e){return e.state}var StoreDevtoolsModule=function(){function e(){}var t;return t=e,e.instrument=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:e},{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:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.l,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_2__.h,useExisting:DevtoolsDispatcher}]}},e}()},APMd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("qaQF");class i{constructor(e){e&&(this.modules=e.modules.map(e=>new r.Module(e)))}fromJsonObject(e,t){return this.modules=e.modules.map(e=>(new r.Module).fromJsonObject(e,t)),this}fromBinary(e,t){return this.modules=e.readArray(e=>(new r.Module).fromBinary(e,t)),this}toJsonObject(e){return{modules:this.modules.map(t=>t.toJsonObject(e))}}toBinary(e,t){e.writeArray(this.modules,(e,n)=>{n.toBinary(e,t)})}toString(){return"<Layer>"}renameKeymap(e,t){let n,r=!1;if(this.modules.forEach((i,o)=>{const l=i.renameKeymap(e,t);l!==i&&(r||(n=this.modules.slice(),r=!0),n[o]=l)}),r){const e=Object.assign(new i,this);return e.modules=n,e}return this}}t.Layer=i},B9Yq:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},CMKj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("SACm"),i=n("rBfm"),o=n("h1Ia"),l=n("+bod"),u=n("Vib2"),a=n("kIap"),s=n("dk4d"),c=n("G8Wf");class p{static createMacroAction(e){return e instanceof i.MacroAction?p.fromMacroAction(e):e instanceof r.UhkBuffer?p.fromUhkBuffer(e):p.fromJSONObject(e)}static fromUhkBuffer(e){const t=e.readUInt8();if(e.backtrack(),t>=i.MacroActionId.KeyMacroAction&&t<=i.MacroActionId.LastKeyMacroAction)return(new o.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 u.MoveMouseMacroAction).fromBinary(e);case i.MacroActionId.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromBinary(e);case i.MacroActionId.DelayMacroAction:return(new s.DelayMacroAction).fromBinary(e);case i.MacroActionId.TextMacroAction:return(new c.TextMacroAction).fromBinary(e);default:throw`Invalid MacroAction first byte: ${t}`}}static fromMacroAction(e){let t;return e instanceof o.KeyMacroAction?t=new o.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}static fromJSONObject(e){switch(e.macroActionType){case i.macroActionType.KeyMacroAction:return(new o.KeyMacroAction).fromJsonObject(e);case i.macroActionType.MouseButtonMacroAction:return(new l.MouseButtonMacroAction).fromJsonObject(e);case i.macroActionType.MoveMouseMacroAction:return(new u.MoveMouseMacroAction).fromJsonObject(e);case i.macroActionType.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromJsonObject(e);case i.macroActionType.DelayMacroAction:return(new s.DelayMacroAction).fromJsonObject(e);case i.macroActionType.TextMacroAction:return(new c.TextMacroAction).fromJsonObject(e);default:throw`Invalid MacroAction.macroActionType: "${e.macroActionType}"`}}}t.Helper=p},CS9Q:function(e,t,n){"use strict";var r=n("mrSG"),i=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}();n.d(t,"a",function(){return o});var o=function(e){function t(n,r){void 0===r&&(r=i.now);var o=e.call(this,n,function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.c(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i)},CcnG:function(e,t,n){"use strict";n.d(t,"mb",function(){return zl}),n.d(t,"nb",function(){return Ql}),n.d(t,"ob",function(){return Wl}),n.d(t,"pb",function(){return ql}),n.d(t,"lb",function(){return Vo}),n.d(t,"kb",function(){return Ao}),n.d(t,"g",function(){return El}),n.d(t,"S",function(){return Tl}),n.d(t,"z",function(){return Cl}),n.d(t,"U",function(){return mt}),n.d(t,"Y",function(){return bt}),n.d(t,"c",function(){return Bo}),n.d(t,"D",function(){return Ho}),n.d(t,"C",function(){return $o}),n.d(t,"b",function(){return zo}),n.d(t,"d",function(){return Fo}),n.d(t,"e",function(){return Ko}),n.d(t,"W",function(){return Gl}),n.d(t,"N",function(){return vl}),n.d(t,"ab",function(){return _l}),n.d(t,"v",function(){return Wo}),n.d(t,"f",function(){return Jl}),n.d(t,"m",function(){return jo}),n.d(t,"l",function(){return dt}),n.d(t,"H",function(){return Bt}),n.d(t,"I",function(){return Kt}),n.d(t,"a",function(){return Tn}),n.d(t,"n",function(){return Do}),n.d(t,"o",function(){return Uo}),n.d(t,"s",function(){return No}),n.d(t,"Q",function(){return Z}),n.d(t,"O",function(){return pr}),n.d(t,"Ub",function(){return k}),n.d(t,"T",function(){return _}),n.d(t,"V",function(){return T}),n.d(t,"r",function(){return gn}),n.d(t,"Vb",function(){return G}),n.d(t,"X",function(){return H}),n.d(t,"q",function(){return R}),n.d(t,"p",function(){return h}),n.d(t,"B",function(){return y}),n.d(t,"J",function(){return m}),n.d(t,"A",function(){return fl}),n.d(t,"E",function(){return sr}),n.d(t,"F",function(){return ur}),n.d(t,"G",function(){return ar}),n.d(t,"i",function(){return rl}),n.d(t,"j",function(){return er}),n.d(t,"k",function(){return ir}),n.d(t,"w",function(){return W}),n.d(t,"y",function(){return Q}),n.d(t,"x",function(){return Il}),n.d(t,"K",function(){return Ll}),n.d(t,"L",function(){return jl}),n.d(t,"M",function(){return Sr}),n.d(t,"P",function(){return Er}),n.d(t,"h",function(){return hn}),n.d(t,"t",function(){return Or}),n.d(t,"u",function(){return Ar}),n.d(t,"R",function(){return In}),n.d(t,"Z",function(){return $l}),n.d(t,"zb",function(){return jn}),n.d(t,"db",function(){return Qo}),n.d(t,"bb",function(){return bn}),n.d(t,"cb",function(){return tr}),n.d(t,"gb",function(){return Ut}),n.d(t,"hb",function(){return Ht}),n.d(t,"ib",function(){return _t}),n.d(t,"xb",function(){return j}),n.d(t,"Cb",function(){return En}),n.d(t,"Nb",function(){return A}),n.d(t,"Ab",function(){return Qn}),n.d(t,"Bb",function(){return zn}),n.d(t,"wb",function(){return Mo}),n.d(t,"vb",function(){return Eo}),n.d(t,"eb",function(){return Co}),n.d(t,"fb",function(){return To}),n.d(t,"Tb",function(){return ae}),n.d(t,"Rb",function(){return xn}),n.d(t,"Xb",function(){return Ln}),n.d(t,"Wb",function(){return Nn}),n.d(t,"Sb",function(){return Dn}),n.d(t,"Yb",function(){return Kn}),n.d(t,"jb",function(){return Yl}),n.d(t,"qb",function(){return Ni}),n.d(t,"rb",function(){return Oa}),n.d(t,"sb",function(){return qr}),n.d(t,"tb",function(){return lo}),n.d(t,"ub",function(){return Zl}),n.d(t,"yb",function(){return wi}),n.d(t,"Db",function(){return Mi}),n.d(t,"Eb",function(){return Si}),n.d(t,"Fb",function(){return au}),n.d(t,"Gb",function(){return Qi}),n.d(t,"Ib",function(){return uo}),n.d(t,"Lb",function(){return ao}),n.d(t,"Hb",function(){return pu}),n.d(t,"Jb",function(){return fu}),n.d(t,"Kb",function(){return cu}),n.d(t,"Mb",function(){return ru}),n.d(t,"Ob",function(){return hu}),n.d(t,"Pb",function(){return zr}),n.d(t,"Qb",function(){return mu});var r=n("mrSG"),i=n("pugT"),o=n("K9Ia"),l=n("6blF"),u=n("p0ib"),a=n("S1nX"),s="__parameters__",c="__prop__metadata__";function p(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var i=e.apply(void 0,Object(r.g)(t));for(var o in i)this[o]=i[o]}}}function f(e,t,n){var i=p(t);function o(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof o)return i.apply(this,t),this;var l=new((e=o).bind.apply(e,Object(r.g)([void 0],t)));return u.annotation=l,u;function u(e,t,n){for(var r=e.hasOwnProperty(s)?e[s]:Object.defineProperty(e,s,{value:[]})[s];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(l),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}function d(e,t,n,i){var o=p(t);function l(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof l)return o.apply(this,t),this;var u=new((e=l).bind.apply(e,Object(r.g)([void 0],t)));return function(e,n){var o=e.constructor,l=o.hasOwnProperty(c)?o[c]:Object.defineProperty(o,c,{value:{}})[c];l[n]=l.hasOwnProperty(n)&&l[n]||[],l[n].unshift(u),i&&i.apply(void 0,Object(r.g)([e,n],t))}}return n&&(l.prototype=Object.create(n.prototype)),l.prototype.ngMetadataName=e,l.annotationCls=l,l}var h=f("Inject",function(e){return{token:e}}),y=f("Optional"),b=f("Self"),m=f("SkipSelf"),g=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function v(e){for(var t in e)if(e[t]===v)return t;throw Error("Could not find renamed property on target object.")}function k(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var _=k;function w(e){var t=e[O];return t&&t.token===e?t:null}var O=v({ngInjectableDef:v});function A(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(A).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}var C=v({__forward_ref__:v});function T(e){return e.__forward_ref__=T,e.toString=function(){return A(this())},e}function x(e){var t=e;return"function"==typeof t&&t.hasOwnProperty(C)&&t.__forward_ref__===T?t():e}var S,M="undefined"!=typeof globalThis&&globalThis,E="undefined"!=typeof window&&window,P="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,I="undefined"!=typeof global&&global,j=M||I||E||P,R=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=k({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),L=new R("INJECTOR",-1),N=new Object,D=/\n/gm,U="\u0275",F="__source",K=v({provide:String,useValue:v}),B=void 0;function V(e){var t=B;return B=e,t}function G(e,t){return void 0===t&&(t=g.Default),(S||function(e,t){if(void 0===t&&(t=g.Default),void 0===B)throw new Error("inject() must be called from an injection context");return null===B?function(e,t,n){var r=w(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&g.Optional)return null;throw new Error("Injector: NOT_FOUND ["+A(e)+"]")}(e,0,t):B.get(e,t&g.Optional?null:void 0,t)})(e,t)}var H=G,$=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=N),t===N){var n=new Error("NullInjectorError: No provider for "+A(e)+"!");throw n.name="NullInjectorError",n}return t},e}();function z(e,t,n,r){void 0===r&&(r=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==U?e.substr(2):e;var i=A(t);if(t instanceof Array)i=t.map(A).join(" -> ");else if("object"==typeof t){var o=[];for(var l in t)if(t.hasOwnProperty(l)){var u=t[l];o.push(l+":"+("string"==typeof u?JSON.stringify(u):A(u)))}i="{"+o.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+i+"]: "+e.replace(D,"\n ")}var Q=function(){return function(){}}(),W=function(){return function(){}}();function q(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function J(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Y=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Z=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),X={},ee=[],te=v({ngComponentDef:v}),ne=v({ngDirectiveDef:v}),re=v({ngPipeDef:v}),ie=0;function oe(e){return function(e){return e[te]||null}(e)||function(e){return e[ne]||null}(e)}function le(e){return function(e){return e[re]||null}(e)}function ue(e,t){if(null==e)return X;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var ae=function(e){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===Y.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Z.Emulated,id:"c",styles:e.styles||ee,_:null,setInput:null,schemas:e.schemas||null,tView:null};return i._=""+{toString:function(){var n=e.directives,o=e.features,l=e.pipes;i.id+=ie++,i.inputs=ue(e.inputs,r),i.outputs=ue(e.outputs),o&&o.forEach(function(e){return e(i)}),i.directiveDefs=n?function(){return("function"==typeof n?n():n).map(oe)}:null,i.pipeDefs=l?function(){return("function"==typeof l?l():l).map(le)}:null,t.hasOwnProperty(O)||(t[O]=k({token:t,factory:e.factory}))}},i},se=0,ce=1,pe=7,fe=12,de=19,he=null,ye=new Map,be=null,me=1,ge=0;function ve(e,t){return be&&e===be||(be=e,t&&(he=ye.get(e)||null),he=he||{classesBitMask:ge,classesIndex:me,stylesBitMask:ge,stylesIndex:me}),he}function ke(e,t){return function(e){for(;Array.isArray(e);)e=e[se];return e}(t[e.index])}function _e(e,t){return t[ce].data[e+de]}var we=null;function Oe(){return Ce}var Ae,Ce,Te,xe=1,Se=0,Me=0,Ee=-1;function Pe(){return Ee}function Ie(){return Te}var je=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(j)}(),Re="--MAP--",Le=0;function Ne(e,t){t===Le?e[2]>Le&&function(e){Ue(e,2|De(e))}(e):e[2]=t}function De(e){return e[1]}function Ue(e,t){e[1]=t}function Fe(e,t){return e[t+2]}function Ke(e,t){return 1&e[t+0]}function Be(e,t){return(1&Ke(e,t))>0}function Ve(e,t){return e[t+0]>>1}function Ge(e,t,n){var r=Ke(e,t);e[t+0]=r|n<<1}function He(e,t){return e[t+1]}function $e(e,t,n){return e[t+3+n]}function ze(e,t){return!(!e||t!==e[2])}function Qe(e){return(1&De(e))>0}function We(e){return(2&De(e))>0}function qe(e){return 6+e[4]}function Je(e,t){var n=Array.isArray(e)?e[0]:e,r=Array.isArray(t)?t[0]:t;return n instanceof String&&(n=n.toString()),r instanceof String&&(r=r.toString()),!(n!=n&&r!=r)&&n!==r}function Ye(e){return null!=e&&""!==e}function Ze(e,t,n){return void 0===n&&(n=" "),e+(t.length&&e.length?n:"")+t}function Xe(e){return e.replace(/[a-z][A-Z]/g,function(e){return e.charAt(0)+"-"+e.charAt(1)}).toLowerCase()}function et(e){return tt(e)?e[0]:e}function tt(e){return Array.isArray(e)&&e.length>=6&&"string"!=typeof e[1]}function nt(e,t){return e[t+0]}function rt(e,t,n){e[t+1]=n}function it(e,t){return e[t+1]}var ot=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function lt(e){return!!e.listen}var ut="ngDebugContext",at="ngOriginalError",st="ngErrorLogger";function ct(e){return e[ut]}function pt(e){return e[at]}function ft(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,Object(r.g)(t))}var dt=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[st]||ft}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?ct(e)?ct(e):this._findContext(pt(e)):null},e.prototype._findOriginalError=function(e){for(var t=pt(e);t&&pt(t);)t=pt(t);return t},e}(),ht=!0,yt=!1;function bt(){return yt=!0,ht}function mt(){if(yt)throw new Error("Cannot enable prod mode after platform setup.");ht=!1}var gt=function(){function e(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',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="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var i=e.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling},e}(),vt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,kt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function _t(e){return(e=String(e)).match(vt)||e.match(kt)?e:(bt()&&console.warn("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function wt(e){var t,n,i={};try{for(var o=Object(r.h)(e.split(",")),l=o.next();!l.done;l=o.next())i[l.value]=!0}catch(u){t={error:u}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}function Ot(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o={};try{for(var l=Object(r.h)(n),u=l.next();!u.done;u=l.next()){var a=u.value;for(var s in a)a.hasOwnProperty(s)&&(o[s]=!0)}}catch(c){e={error:c}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return o}var At,Ct=wt("area,br,col,hr,img,wbr"),Tt=wt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),xt=wt("rp,rt"),St=Ot(xt,Tt),Mt=Ot(Ct,Ot(Tt,wt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ot(xt,wt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),St),Et=wt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pt=wt("srcset"),It=Ot(Et,Pt,wt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),wt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),jt=wt("script,style,template"),Rt=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")},e.prototype.startElement=function(e){var t,n=e.nodeName.toLowerCase();if(!Mt.hasOwnProperty(n))return this.sanitizedSomething=!0,!jt.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var r=e.attributes,i=0;i<r.length;i++){var o=r.item(i),l=o.name,u=l.toLowerCase();if(It.hasOwnProperty(u)){var a=o.value;Et[u]&&(a=_t(a)),Pt[u]&&(t=a,a=(t=String(t)).split(",").map(function(e){return _t(e.trim())}).join(", ")),this.buf.push(" ",l,'="',Dt(a),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();Mt.hasOwnProperty(t)&&!Ct.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(Dt(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Lt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nt=/([^\#-~ |!])/g;function Dt(e){return e.replace(/&/g,"&amp;").replace(Lt,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Nt,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ut(e,t){var n=null;try{At=At||new gt(e);var r=t?String(t):"";n=At.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=At.getInertBodyElement(r)}while(r!==o);var l=new Rt,u=l.sanitizeChildren(Ft(n)||n);return bt()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n)for(var a=Ft(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Ft(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Kt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),Bt=function(){return function(){}}(),Vt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Gt=/^url\(([^)]+)\)$/;function Ht(e){if(!(e=String(e).trim()))return"";var t=e.match(Gt);return t&&_t(t[1])===t[1]||e.match(Vt)&&function(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}(e)?e:(bt()&&console.warn("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}var $t=/([A-Z])/g;function zt(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}var Qt=1,Wt=0,qt=null,Jt=1,Yt=[];function Zt(e,t,n,r,i,o,l,u,a){Qe(e)||(l?function(e,t,n,r,i){Yt.unshift(e,t,n,r,i)}(e,n,r,i,a):(Yt.length&&Xt(),en(e,n,r,i,a)));var s=u||Je(t[i],o);return s&&(t[i]=o),s}function Xt(){for(var e=0;e<Yt.length;)en(Yt[e++],Yt[e++],Yt[e++],Yt[e++],Yt[e++]);Yt.length=0}function en(e,t,n,r,i){var o=!1;if(n){for(var l=!1,u=qe(e);u<e.length;){var a=He(e,u),s=Fe(e,u);if(l=n<=s){n<s&&tn(e,u,n,i),nn(e,!1,u,r,t);break}u+=3+a}l||(tn(e,e.length,n,i),nn(e,!1,u,r,t),o=!0)}else nn(e,!0,3,r,t),o=!0;return o}function tn(e,t,n,r){e.splice(t,0,r?1:0,Jt,n,qt),Ge(e,t,Qt)}function nn(e,t,n,r,i){var o=n+3,l=o+He(e,n);if(t||l--,"number"==typeof r){for(var u=o;u<=l;u++)if(e[u]===r)return;e.splice(l,0,r),e[n+1]++,Ge(e,n,Ve(e,n)|1<<i)}else null!==r&&null==e[l]&&(e[l]=r)}function rn(e,t,n,r,i,o,l,u){return i&&r&&(function(e){if(!Qe(e)){var t=et(e);t&&function(e,t){for(var n=1;n<t.length;n+=2){var r=it(t,n);r&&en(e,-1,nt(t,n),r,!1)}}(e,t),function(e){Ue(e,1|De(e))}(e)}}(r),function(e,t){return e&&t>ge}(r,o))?(function(e,t,n,r,i,o,l){for(var u=!0===i?-1:!1===i?0:i,a=on,s=(u&Ve(e,3))>0?1:0,c=qe(e);c<e.length;){var p=He(e,c);if(u&Ve(e,c)){for(var f=!1,d=Fe(e,c),h=p-1,y=$e(e,c,h),b=0;b<h;b++){var m=$e(e,c,b),g=r[m];if(Ye(g)){o(t,n,d,l&&Be(e,c)?l(d,g,2):g,m),f=!0;break}}if(a){var v=a(e,t,n,r,o,l,s|(f?4:2),d,y);f=f||v}f||o(t,n,d,y)}c+=3+p}a&&a(e,t,n,r,o,l,s)}(r,e,t,n,o,l,u),!0):i}var on=null,ln=function(e,t,n,r){var i=t.style;r?(r=r.toString(),e&&lt(e)?e.setStyle(t,n,r,ot.DashCase):i&&i.setProperty(n,r)):e&&lt(e)?e.removeStyle(t,n,ot.DashCase):i&&i.removeProperty(n)},un=function(e,t,n,r){if(""!==n){var i=t.classList;r?e&&lt(e)?e.addClass(t,n):i&&i.add(n):e&&lt(e)?e.removeClass(t,n):i&&i.remove(n)}},an={},sn=function(e,t,n,r,i,o,l,u,a){var s=!1;if(He(e,3)){var c=!0,p=!u;p&&-2&l&&(c=!1,s=!0),c&&(s=function e(t,n,r,i,o,l,u,a,s,c){var p=!1;if(s<He(t,3)){for(var f=$e(t,3,s),d=i[f],h=function(e){return e>=fn.length&&fn.push(1),fn[e]}(s);h<d.length;){var y=nt(d,h),b=a&&y>a,m=!b&&y===a,g=it(d,h),v=Ye(g),k=e(t,n,r,i,o,l,b?u:cn(u,v,m),b?a:y,s+1,c);if(b){p||(p=k);break}if(!k&&pn(u,m)){var _=m&&!v,w=_?c:g,O=_?f:null;o(n,r,y,l?l(y,w,3):w,O),k=!0}p=k&&m,h+=2}if(fn[s]=h,1===d.length||!a)return e(t,n,r,i,o,l,u,a,s+1,c)}return p}(e,t,n,r,i,o,l,u||null,0,a||null)),p&&function(){for(var e=0;e<fn.length;e++)fn[e]=1}()}return s};function cn(e,t,n){var r=e;return t||4&e||!(n||1&e)?(r|=4,r&=-3):(r|=2,r&=-5),r}function pn(e,t){var n=(1&e)>0;return n?4&e&&t&&(n=!1):2&e&&(n=t),n}var fn=[];function dn(e,t,n,r){for(var i=1;i<e.length;i+=2){var o=nt(e,i);if(t<=o){var l=!1;return o===t?!r&&Ye(e[i])||(l=!0,rt(e,i,n)):(l=!0,e.splice(i,0,t,n)),l}}return e.push(t,n),!0}var hn=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return yn()},e}(),yn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},bn=new R("The presence of this token marks an injector as being the root injector."),mn=function(e,t,n){return new On(e,t,n)},gn=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?mn(e,t,""):mn(e.providers,e.parent,e.name||"")},e.THROW_IF_NOT_FOUND=N,e.NULL=new $,e.ngInjectableDef=k({token:e,providedIn:"any",factory:function(){return G(L)}}),e.__NG_ELEMENT_ID__=-1,e}(),vn=function(e){return e},kn=[],_n=vn,wn=function(){return Array.prototype.slice.call(arguments)},On=function(){function e(e,t,n){void 0===t&&(t=gn.NULL),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(gn,{token:gn,fn:vn,deps:kn,value:this,useNew:!1}),r.set(L,{token:L,fn:vn,deps:kn,value:this,useNew:!1}),function e(t,n){if(n)if((n=x(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw Cn("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Cn("Unexpected provider",n);var i=x(n.provide),o=function(e){var t=function(e){var t=kn,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var i=6;if((a=x(n[r]))instanceof Array)for(var o=0,l=a;o<l.length;o++){var u=l[o];u instanceof y||u==y?i|=1:u instanceof m||u==m?i&=-3:u instanceof b||u==b?i&=-5:a=u instanceof h?u.token:x(u)}t.push({token:a,options:i})}}else if(e.useExisting){var a=x(e.useExisting);t=[{token:a,options:6}]}else if(!(n||K in e))throw Cn("'deps' required",e);return t}(e),n=vn,r=kn,i=!1,o=x(e.provide);if(K in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=x(e.useClass);else{if("function"!=typeof o)throw Cn("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=o}return{deps:t,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var l=t.get(i);if(l){if(l.fn!==wn)throw An(i)}else t.set(i,l={token:n.provide,deps:[],useNew:!1,fn:wn,value:kn});l.deps.push({token:i=n,options:6})}var u=t.get(i);if(u&&u.fn==wn)throw An(i);t.set(i,o)}}(r,e)}return e.prototype.get=function(e,t,n){void 0===n&&(n=g.Default);var i=this._records.get(e);try{return function e(t,n,i,o,l,u){try{return function(t,n,i,o,l,u){var a,s;if(!n||u&g.SkipSelf)u&g.Self||(s=o.get(t,l,g.Default));else{if((s=n.value)==_n)throw Error("\u0275Circular dependency");if(s===kn){n.value=_n;var c=n.useNew,p=n.fn,f=n.deps,d=kn;if(f.length){d=[];for(var h=0;h<f.length;h++){var y=f[h],b=y.options,m=2&b?i.get(y.token):void 0;d.push(e(y.token,m,i,m||4&b?o:gn.NULL,1&b?null:gn.THROW_IF_NOT_FOUND,g.Default))}}n.value=s=c?new((a=p).bind.apply(a,Object(r.g)([void 0],d))):p.apply(void 0,d)}}return s}(t,n,i,o,l,u)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(t),n&&n.value==_n&&(n.value=kn),a}}(e,i,this._records,this.parent,t,n)}catch(o){return function(e,t,n,r){var i=e.ngTempTokenPath;throw t[F]&&i.unshift(t[F]),e.message=z("\n"+e.message,i,"StaticInjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(o,e,0,this.source)}},e.prototype.toString=function(){var e=[];return this._records.forEach(function(t,n){return e.push(A(n))}),"StaticInjector["+e.join(", ")+"]"},e}();function An(e){return Cn("Cannot mix multi providers and regular providers",e)}function Cn(e,t){return new Error(z(e,t,"StaticInjectorError"))}var Tn=new R("AnalyzeForEntryComponents");function xn(e){var t=Oe(),n=t[ce];n.firstTemplatePass&&(function(e,t,n){var r=e.expandoInstructions,i=r.length;i>=2&&r[i-2]===t.hostBindings?r[i-1]=r[i-1]+n:r.push(t.hostBindings,n)}(n,we,e),function(e,t,n){for(var r=0;r<n;r++)t.push(an),e.blueprint.push(an),e.data.push(null)}(n,t,e))}var Sn=null;function Mn(){if(!Sn){var e=j.Symbol;if(e&&e.iterator)Sn=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Sn=r)}}return Sn}function En(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Pn(e,t){var n=jn(e),r=jn(t);return n&&r?function(e,t,n){for(var r=e[Mn()](),i=t[Mn()]();;){var o=r.next(),l=i.next();if(o.done&&l.done)return!0;if(o.done||l.done)return!1;if(!n(o.value,l.value))return!1}}(e,t,Pn):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||En(e,t)}var In=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}();function jn(e){return!!Rn(e)&&(Array.isArray(e)||!(e instanceof Map)&&Mn()in e)}function Rn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ln(){var e,t;Oe()[ce].firstTemplatePass&&(e=Ae,t=Bn(),Ne(Gn(e),t),Ne(Vn(e),t))}function Nn(e){var t=Pe(),n=Oe(),r=_e(t,n),i=Vn(r),o=Bn(),l=n[pe]++;!o&&function(e){return 0!=(16&e.flags)}(r)&&e!==an&&(Fn(i,n,r,l,e,!1),e=an),Un(t,i,l,e,!1,$n())}function Dn(e){!function(e,t){var n=Oe(),r=_e(e,n),i=Gn(r),o=Bn(),l=n[pe]++;!o&&function(e){return 0!=(8&e.flags)}(r)&&t!==an&&(Fn(i,n,r,l,t,!0),t=an),Un(e,i,l,t,!0,$n())}(Pe(),e)}function Un(e,t,n,r,i,o){on=sn;var l=Oe(),u=!1;if(r!==an){var a=ke(_e(e,l),l),s=l[n];u=Je(s,r);var c=function(e,t,n){var r=Array.isArray(e)?e:[null];r[0]=t||null;for(var i=1;i<r.length;i+=2)rt(r,i,null);var o,l=null,u=!1;if("string"==typeof t?t.length&&(l=t.split(/\s+/),u=!0):(l=t?Object.keys(t):null,o=t),l)for(var a=0;a<l.length;a++){var s=l[a];dn(r,n?Xe(s):s,!!u||o[s],!0)}return r}(s,r,!i);i?function(e,t,n,r,i,o,l,u){var s=ve(a,We(e)),c=Wt;!Zt(e,t,c,null,i,o,l,u,!1)&&!u||(s.classesBitMask|=1<<c)}(t,l,0,0,n,c,o,u):function(e,t,n,r,i,o,l,u,a){var s=ve(n,We(e)),c=Wt;!Zt(e,t,c,null,i,o,u,a,!0)&&!a||(s.stylesBitMask|=1<<c)}(t,l,a,0,n,c,Ie(),o,u)}return u}function Fn(e,t,n,r,i,o){t[r]!==i&&((i||Qe(e))&&function(e,t,n){for(var r=e[ce],i=0;i<t.length;){var o=t[i++],l=t[i++],u=t[i++],a=e[o],s=r.data[o];s.setInput?s.setInput(a,n,l,u):a[u]=n}}(t,n.inputs[o?"class":"style"],function(e,t,n){var r,i=t;return e.length>0&&(i=n?Ze(e,((r=t)&&"string"!=typeof r&&(r=Object.keys(r).join(" ")),r||"")):Ze(e,function(e){var t="";if(e)for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];t=Ze(t,i+":"+e[i],";")}return t}(t),";")),i}(function(e){var t=et(e);return t&&t[0]||""}(e),i,o)),t[r]=i)}function Kn(){var e=Pe(),t=Oe(),n=_e(e,t),r=function(e,t){return 3===e.type?t[fe]:null}(n,t),i=ke(n,t),o=Bn(),l=Ie();(function(e,t,n,r,i,o,l){var u=n?We(n):!!r&&We(r),a=ze(n,o),s=ze(r,o);Yt.length&&(a||s)&&Xt();var c=ve(i,u),p=rn(e,i,t,n,a,c.classesBitMask,un,null),f=rn(e,i,t,r,s,c.stylesBitMask,ln,l);p&&f?(he=null,be=null,u&&function(e){ye.delete(e)}(i)):u&&function(e,t){ye.set(e,t)}(i,c)})(r,t,Gn(n),Vn(n),i,o,l),Te=null}function Bn(){return xe+Se}function Vn(e){return Hn(e,!1)}function Gn(e){return Hn(e,!0)}function Hn(e,t){var n=t?e.classes:e.styles;return tt(n)||(n=[n||[""],0,Le,1,0,Re],t?e.classes=n:e.styles=n),n}function $n(){return Me>0}function zn(e){return!!e&&"function"==typeof e.then}function Qn(e){return!!e&&"function"==typeof e.subscribe}var Wn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),qn=function(){return function(){}}(),Jn=function(){return function(){}}();function Yn(e){var t=Error("No component factory found for "+A(e)+". Did you add it to @NgModule.entryComponents?");return t[Zn]=e,t}var Zn="ngComponent",Xn=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw Yn(e)},e}(),er=function(){function e(){}return e.NULL=new Xn,e}(),tr=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r<e.length;r++){var i=e[r];this._factories.set(i.componentType,i)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Yn(e);return new nr(t,this._ngModule)},e}(),nr=function(e){function t(t,n){var r=e.call(this)||this;return r.factory=t,r.ngModule=n,r.selector=t.selector,r.componentType=t.componentType,r.ngContentSelectors=t.ngContentSelectors,r.inputs=t.inputs,r.outputs=t.outputs,r}return Object(r.c)(t,e),t.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},t}(Jn);function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}var ir=function(){function e(e){this.nativeElement=e}return e.__NG_ELEMENT_ID__=function(){return or(e)},e}(),or=rr,lr=function(){return function(){}}(),ur=function(){return function(){}}(),ar=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),sr=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return cr()},e}(),cr=rr,pr=function(){return function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}(),fr=new pr("8.2.2"),dr=function(){function e(){}return e.prototype.supports=function(e){return jn(e)},e.prototype.create=function(e){return new yr(e)},e}(),hr=function(e,t){return t},yr=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||hr}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,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<vr(n,r,i)?t:n,l=vr(o,r,i),u=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var a=l-r,s=u-r;if(a!=s){for(var c=0;c<a;c++){var p=c<i.length?i[c]:i[c]=0,f=p+c;s<=f&&f<a&&(i[c]=p+1)}i[o.previousIndex]=s-a}}l!==u&&e(o,l,u)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!jn(e))throw new Error("Error trying to diff '"+A(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,i,o=this._itHead,l=!1;if(Array.isArray(e)){this.length=e.length;for(var u=0;u<this.length;u++)i=this._trackByFn(u,r=e[u]),null!==o&&En(o.trackById,i)?(l&&(o=this._verifyReinsertion(o,r,i,u)),En(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,u),l=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[Mn()](),i=void 0;!(i=r.next()).done;)t(i.value)}(e,function(e){i=t._trackByFn(n,e),null!==o&&En(o.trackById,i)?(l&&(o=t._verifyReinsertion(o,e,i,n)),En(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),l=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(En(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(En(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new br(t,n),i,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new gr),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new gr),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e},e}(),br=function(){return function(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),mr=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&En(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),gr=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new mr,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=this.map.get(e);return n?n.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function vr(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var kr=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||Rn(e)},e.prototype.create=function(){return new _r},e}(),_r=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||Rn(e)))throw new Error("Error trying to diff '"+A(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new wr(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){En(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),wr=function(){return function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),Or=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new m,new y]]}},e.prototype.find=function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'")},e.ngInjectableDef=k({token:e,providedIn:"root",factory:function(){return new e([new dr])}}),e}(),Ar=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new m,new y]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e.ngInjectableDef=k({token:e,providedIn:"root",factory:function(){return new e([new kr])}}),e}(),Cr=[new kr],Tr=new Or([new dr]),xr=new Ar(Cr),Sr=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Mr(e,ir)},e}(),Mr=rr,Er=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Pr(e,ir)},e}(),Pr=rr;function Ir(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return jr(n,t),n}(i,e)}function jr(e,t){e[ut]=t,e[st]=t.logError.bind(t)}function Rr(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}function Lr(e,t,n){var r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function Nr(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Dr(e,t){return e.nodes[t]}function Ur(e,t){return e.nodes[t]}function Fr(e,t){return e.nodes[t]}function Kr(e,t){return e.nodes[t]}function Br(e,t){return e.nodes[t]}var Vr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Gr=function(){},Hr=new Map;function $r(e){var t=Hr.get(e);return t||(t=A(e)+"_"+Hr.size,Hr.set(e,t)),t}function zr(e,t,n,r){if(In.isWrapped(r)){r=In.unwrap(r);var i=e.def.nodes[t].bindingIndex+n,o=In.unwrap(e.oldValues[i]);e.oldValues[i]=new In(o)}return r}var Qr="$$undefined",Wr="$$empty";function qr(e){return{id:Qr,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Jr=0;function Yr(e,t,n,r){return!(!(2&e.state)&&En(e.oldValues[t.bindingIndex+n],r))}function Zr(e,t,n,r){return!!Yr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Xr(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Pn(i,r)){var o=t.bindings[n].name;throw Ir(Vr.createDebugContext(e,t.nodeIndex),o+": "+i,o+": "+r,0!=(1&e.state))}}function ei(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ti(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ni(e,t,n,r){try{return ei(33554432&e.def.nodes[t].flags?Ur(e,t).componentView:e),Vr.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function ri(e){return e.parent?Ur(e.parent,e.parentNodeDef.nodeIndex):null}function ii(e){return e.parent?e.parentNodeDef.parent:null}function oi(e,t){switch(201347067&t.flags){case 1:return Ur(e,t.nodeIndex).renderElement;case 2:return Dr(e,t.nodeIndex).renderText}}function li(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function ui(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function ai(e){return 1<<e%32}function si(e){var t={},n=0,i={};return e&&e.forEach(function(e){var o=Object(r.f)(e,2),l=o[0],u=o[1];"number"==typeof l?(t[l]=u,n|=ai(l)):i[l]=u}),{matchedQueries:t,references:i,matchedQueryIds:n}}function ci(e,t){return e.map(function(e){var n,i,o;return Array.isArray(e)?(o=(n=Object(r.f)(e,2))[0],i=n[1]):(o=0,i=e),i&&("function"==typeof i||"object"==typeof i)&&t&&Object.defineProperty(i,F,{value:t,configurable:!0}),{flags:o,token:i,tokenKey:$r(i)}})}function pi(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Z.Native?Ur(e,n.renderParent.nodeIndex).renderElement:void 0:t}var fi=new WeakMap;function di(e){var t=fi.get(e);return t||((t=e(function(){return Gr})).factory=e,fi.set(e,t)),t}function hi(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(oi(e,e.def.lastRenderRootNode))),yi(e,t,0,e.def.nodes.length-1,n,r,i)}function yi(e,t,n,r,i,o,l){for(var u=n;u<=r;u++){var a=e.def.nodes[u];11&a.flags&&mi(e,a,t,i,o,l),u+=a.childCount}}function bi(e,t,n,r,i,o){for(var l=e;l&&!li(l);)l=l.parent;for(var u=l.parent,a=ii(l),s=a.nodeIndex+a.childCount,c=a.nodeIndex+1;c<=s;c++){var p=u.def.nodes[c];p.ngContentIndex===t&&mi(u,p,n,r,i,o),c+=p.childCount}if(!u.parent){var f=e.root.projectableNodes[t];if(f)for(c=0;c<f.length;c++)gi(e,f[c],n,r,i,o)}}function mi(e,t,n,r,i,o){if(8&t.flags)bi(e,t.ngContent.index,n,r,i,o);else{var l=oi(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&gi(e,l,n,r,i,o),32&t.bindingFlags&&gi(Ur(e,t.nodeIndex).componentView,l,n,r,i,o)):gi(e,l,n,r,i,o),16777216&t.flags)for(var u=Ur(e,t.nodeIndex).viewContainer._embeddedViews,a=0;a<u.length;a++)hi(u[a],n,r,i,o);1&t.flags&&!t.element.name&&yi(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,o)}}function gi(e,t,n,r,i,o){var l=e.renderer;switch(n){case 1:l.appendChild(r,t);break;case 2:l.insertBefore(r,t,i);break;case 3:l.removeChild(r,t);break;case 0:o.push(t)}}var vi=/^:([^:]+):(.+)$/;function ki(e){if(":"===e[0]){var t=e.match(vi);return[t[1],t[2]]}return["",e]}function _i(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function wi(e,t,n,r,i,o,l,u,a,s,c,p,f,d,h,y,b,m,g,v){switch(e){case 1:return t+Oi(n)+r;case 2:return t+Oi(n)+r+Oi(i)+o;case 3:return t+Oi(n)+r+Oi(i)+o+Oi(l)+u;case 4:return t+Oi(n)+r+Oi(i)+o+Oi(l)+u+Oi(a)+s;case 5:return t+Oi(n)+r+Oi(i)+o+Oi(l)+u+Oi(a)+s+Oi(c)+p;case 6:return t+Oi(n)+r+Oi(i)+o+Oi(l)+u+Oi(a)+s+Oi(c)+p+Oi(f)+d;case 7:return t+Oi(n)+r+Oi(i)+o+Oi(l)+u+Oi(a)+s+Oi(c)+p+Oi(f)+d+Oi(h)+y;case 8:return t+Oi(n)+r+Oi(i)+o+Oi(l)+u+Oi(a)+s+Oi(c)+p+Oi(f)+d+Oi(h)+y+Oi(b)+m;case 9:return t+Oi(n)+r+Oi(i)+o+Oi(l)+u+Oi(a)+s+Oi(c)+p+Oi(f)+d+Oi(h)+y+Oi(b)+m+Oi(g)+v;default:throw new Error("Does not support more than 9 expressions")}}function Oi(e){return null!=e?e.toString():""}var Ai=new Object,Ci=$r(gn),Ti=$r(L),xi=$r(Q);function Si(e,t,n,r){return n=x(n),{index:-1,deps:ci(r,A(t)),flags:e,token:t,value:n}}function Mi(e){for(var t={},n=[],r=!1,i=0;i<e.length;i++){var o=e[i];o.token===bn&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=i,t[$r(o.token)]=o}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}function Ei(e,t,n){void 0===n&&(n=gn.THROW_IF_NOT_FOUND);var r,i,o=V(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var l=t.tokenKey;switch(l){case Ci:case Ti:case xi:return e}var u,a=e._def.providersByKey[l];if(a){var s=e._providers[a.index];return void 0===s&&(s=e._providers[a.index]=Pi(e,a)),s===Ai?void 0:s}if((u=w(t.token))&&(r=e,null!=(i=u).providedIn&&(function(e,t){return e._def.modules.indexOf(i.providedIn)>-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:c,token:t.token},e._providers[c]=Ai,e._providers[c]=Pi(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{V(o)}}function Pi(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var i=n.length;switch(i){case 0:return new t;case 1:return new t(Ei(e,n[0]));case 2:return new t(Ei(e,n[0]),Ei(e,n[1]));case 3:return new t(Ei(e,n[0]),Ei(e,n[1]),Ei(e,n[2]));default:for(var o=new Array(i),l=0;l<i;l++)o[l]=Ei(e,n[l]);return new(t.bind.apply(t,Object(r.g)([void 0],o)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var i=n.length;switch(i){case 0:return t();case 1:return t(Ei(e,n[0]));case 2:return t(Ei(e,n[0]),Ei(e,n[1]));case 3:return t(Ei(e,n[0]),Ei(e,n[1]),Ei(e,n[2]));default:for(var o=Array(i),l=0;l<i;l++)o[l]=Ei(e,n[l]);return t.apply(void 0,Object(r.g)(o))}}(e,t.value,t.deps);break;case 2048:n=Ei(e,t.deps[0]);break;case 256:n=t.value}return n===Ai||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Ai:n}function Ii(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,J(n,t),Vr.dirtyParentQueries(r),Ri(r),r}function ji(e,t,n){var r=t?oi(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);hi(n,2,i,o,void 0)}function Ri(e){hi(e,3,null,null,void 0)}var Li=new Object;function Ni(e,t,n,r,i,o){return new Di(e,t,n,r,i,o)}var Di=function(e){function t(t,n,r,i,o,l){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=i,u._outputs=o,u.ngContentSelectors=l,u.viewDefFactory=r,u}return Object(r.c)(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,r){if(!r)throw new Error("ngModule should be provided");var i=di(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,l=Vr.createRootView(e,t||[],n,i,r,Li),u=Fr(l,o).instance;return n&&l.renderer.setAttribute(Ur(l,0).renderElement,"ng-version",fr.full),new Ui(l,new Vi(l),u)},t}(Jn),Ui=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new ir(Ur(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new zi(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}(qn);function Fi(e,t,n){return new Ki(e,t,n)}var Ki=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 ir(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new zi(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=ii(e),e=e.parent;return e?new zi(e,t):new zi(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Ii(this._data,e);Vr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Vi(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 r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof nr||(i=o.get(Q));var l=e.create(o,r,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,r,i,o,l=e;return o=(n=this._data).viewContainer._embeddedViews,null==(r=t)&&(r=o.length),(i=l._view).viewContainerParent=this._view,q(o,r,i),function(e,t){var n=ri(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,i),Vr.dirtyParentQueries(i),ji(n,r>0?o[r-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,r,i,o,l,u=this._embeddedViews.indexOf(e._view);return i=t,l=(o=(n=this._data).viewContainer._embeddedViews)[r=u],J(o,r),null==i&&(i=o.length),q(o,i,l),Vr.dirtyParentQueries(l),Ri(l),ji(n,i>0?o[i-1]:null,l),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Ii(this._data,e);t&&Vr.destroyView(t)},e.prototype.detach=function(e){var t=Ii(this._data,e);return t?new Vi(t):null},e}();function Bi(e){return new Vi(e)}var Vi=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return hi(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(){ei(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{Vr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Vr.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)),Vr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Ri(this._view),Vr.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 Gi(e,t){return new Hi(e,t)}var Hi=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.c)(t,e),t.prototype.createEmbeddedView=function(e){return new Vi(Vr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new ir(Ur(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Sr);function $i(e,t){return new zi(e,t)}var zi=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=gn.THROW_IF_NOT_FOUND),Vr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:$r(e)},t)},e}();function Qi(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Ur(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Dr(e,n.nodeIndex).renderText;if(20240&n.flags)return Fr(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Wi(e){return new qi(e.renderer)}var qi=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=Object(r.f)(ki(t),2),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;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var i=Object(r.f)(ki(t),2),o=i[0],l=i[1];null!=n?this.delegate.setAttribute(e,l,n,o):this.delegate.removeAttribute(e,l,o)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function Ji(e,t,n,r){return new Yi(e,t,n,r)}var Yi=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Pi(e,i))}}(this)}return e.prototype.get=function(e,t,n){void 0===t&&(t=gn.THROW_IF_NOT_FOUND),void 0===n&&(n=g.Default);var r=0;return n&g.SkipSelf?r|=1:n&g.Self&&(r|=4),Ei(this,{token:e,tokenKey:$r(e),flags:r},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(er)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+A(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var o=e._providers[i];if(o&&o!==Ai){var l=o.ngOnDestroy;"function"!=typeof l||r.has(o)||(l.apply(o),r.add(o))}}}(this),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),Zi=$r(lr),Xi=$r(sr),eo=$r(ir),to=$r(Er),no=$r(Sr),ro=$r(hn),io=$r(gn),oo=$r(L);function lo(e,t,n,i,o,l,u,a){var s=[];if(u)for(var c in u){var p=Object(r.f)(u[c],2);s[p[0]]={flags:8,name:c,nonMinifiedName:p[1],ns:null,securityContext:null,suffix:null}}var f=[];if(a)for(var d in a)f.push({type:1,propName:d,target:null,eventName:a[d]});return so(e,t|=16384,n,i,o,o,l,s,f)}function uo(e,t,n){return so(-1,e|=16,null,0,t,t,n)}function ao(e,t,n,r,i){return so(-1,e,t,0,n,r,i)}function so(e,t,n,r,i,o,l,u,a){var s=si(n),c=s.matchedQueries,p=s.references,f=s.matchedQueryIds;a||(a=[]),u||(u=[]),o=x(o);var d=ci(l,A(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:f,references:p,ngContentIndex:-1,childCount:r,bindings:u,bindingFlags:_i(u),outputs:a,element:null,provider:{token:i,value:o,deps:d},text:null,query:null,ngContent:null}}function co(e,t){return yo(e,t)}function po(e,t){for(var n=e;n.parent&&!li(n);)n=n.parent;return bo(n.parent,ii(n),!0,t.provider.value,t.provider.deps)}function fo(e,t){var n=bo(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r<t.outputs.length;r++){var i=t.outputs[r],o=n[i.propName];if(!Qn(o))throw new Error("@Output "+i.propName+" not initialized in '"+n.constructor.name+"'.");var l=o.subscribe(ho(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+r]=l.unsubscribe.bind(l)}return n}function ho(e,t,n){return function(r){return ni(e,t,n,r)}}function yo(e,t){var n=(8192&t.flags)>0,i=t.provider;switch(201347067&t.flags){case 512:return bo(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,o){var l=o.length;switch(l){case 0:return i();case 1:return i(go(e,t,n,o[0]));case 2:return i(go(e,t,n,o[0]),go(e,t,n,o[1]));case 3:return i(go(e,t,n,o[0]),go(e,t,n,o[1]),go(e,t,n,o[2]));default:for(var u=Array(l),a=0;a<l;a++)u[a]=go(e,t,n,o[a]);return i.apply(void 0,Object(r.g)(u))}}(e,t.parent,n,i.value,i.deps);case 2048:return go(e,t.parent,n,i.deps[0]);case 256:return i.value}}function bo(e,t,n,i,o){var l=o.length;switch(l){case 0:return new i;case 1:return new i(go(e,t,n,o[0]));case 2:return new i(go(e,t,n,o[0]),go(e,t,n,o[1]));case 3:return new i(go(e,t,n,o[0]),go(e,t,n,o[1]),go(e,t,n,o[2]));default:for(var u=new Array(l),a=0;a<l;a++)u[a]=go(e,t,n,o[a]);return new(i.bind.apply(i,Object(r.g)([void 0],u)))}}var mo={};function go(e,t,n,r,i){if(void 0===i&&(i=gn.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var l=r.tokenKey;l===ro&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var u=e;u;){if(t)switch(l){case Zi:return Wi(vo(u,t,n));case Xi:return vo(u,t,n).renderer;case eo:return new ir(Ur(u,t.nodeIndex).renderElement);case to:return Ur(u,t.nodeIndex).viewContainer;case no:if(t.element.template)return Ur(u,t.nodeIndex).template;break;case ro:return Bi(vo(u,t,n));case io:case oo:return $i(u,t);default:var a=(n?t.element.allProviders:t.element.publicProviders)[l];if(a){var s=Fr(u,a.nodeIndex);return s||(s={instance:yo(u,a)},u.nodes[a.nodeIndex]=s),s.instance}}n=li(u),t=ii(u),u=u.parent,4&r.flags&&(u=null)}var c=o.root.injector.get(r.token,mo);return c!==mo||i===mo?c:o.root.ngModule.injector.get(r.token,i)}function vo(e,t,n){var r;if(n)r=Ur(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!li(r);)r=r.parent;return r}function ko(e,t,n,r,i,o){if(32768&n.flags){var l=Ur(e,n.parent.nodeIndex).componentView;2&l.def.flags&&(l.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var u=In.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Wn(u,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function _o(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],l=o.parent;for(!l&&o.flags&t&&Oo(e,i,o.flags&t,r++),0==(o.childFlags&t)&&(i+=o.childCount);l&&1&l.flags&&i===l.nodeIndex+l.childCount;)l.directChildFlags&t&&(r=wo(e,l,t,r)),l=l.parent}}function wo(e,t,n,r){for(var i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){var o=e.def.nodes[i];o.flags&n&&Oo(e,i,o.flags&n,r++),i+=o.childCount}return r}function Oo(e,t,n,r){var i=Fr(e,t);if(i){var o=i.instance;o&&(Vr.setCurrentNode(e,t),1048576&n&&Nr(e,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Nr(e,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}var Ao=new R("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return je}}),Co={},To=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencySymbol=15]="CurrencySymbol",e[e.CurrencyName=16]="CurrencyName",e[e.Currencies=17]="Currencies",e[e.PluralCase=18]="PluralCase",e[e.ExtraData=19]="ExtraData",e}({}),xo=void 0,So=["en",[["a","p"],["AM","PM"],xo],[["AM","PM"],xo,xo],[["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"]],xo,[["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"]],xo,[["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}",xo,"{1} 'at' {0}",xo],[".",",",";","%","+","-","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}];function Mo(e){return Eo(e)[To.PluralCase]}function Eo(e){var t=e.toLowerCase().replace(/_/g,"-"),n=Co[t];if(n)return n;var r=t.split("-")[0];if(n=Co[r])return n;if("en"===r)return So;throw new Error('Missing locale data for the locale "'+e+'".')}var Po="en-US";function Io(e){var t;t="Expected localeId to be defined",null==e&&function(e){throw new Error("ASSERTION ERROR: "+e)}(t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var jo=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return Object(r.c)(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var o,l=function(e){return null},u=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(l=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(u=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(l=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(u=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=e.prototype.subscribe.call(this,o,l,u);return t instanceof i.a&&t.add(a),a},t}(o.a);function Ro(){return this._results[Mn()]()}var Lo=function(){function e(){this.dirty=!0,this._results=[],this.changes=new jo,this.length=0;var t=Mn(),n=e.prototype;n[t]||(n[t]=Ro)}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.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?(n===t&&(n=t.slice(0,r)),e(i,n)):n!==t&&n.push(i)}return n}(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}(),No=d("Input",function(e){return{bindingPropertyName:e}}),Do=d("HostBinding",function(e){return{hostPropertyName:e}}),Uo=d("HostListener",function(e,t){return{eventName:e,args:t}}),Fo=new R("Application Initializer"),Ko=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();zn(i)&&t.push(i)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}},e}(),Bo=new R("AppId");function Vo(){return""+Go()+Go()+Go()}function Go(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Ho=new R("Platform Initializer"),$o=new R("Platform ID"),zo=new R("appBootstrapListener"),Qo=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e}(),Wo=new R("LocaleId"),qo=!1;function Jo(){throw new Error("Runtime compiler is not loaded")}var Yo,Zo,Xo=Jo,el=Jo,tl=Jo,nl=Jo,rl=function(){function e(){this.compileModuleSync=Xo,this.compileModuleAsync=el,this.compileModuleAndAllComponentsSync=tl,this.compileModuleAndAllComponentsAsync=nl}return e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e.prototype.getModuleId=function(e){},e}(),il=function(){return function(){}}();function ol(){var e=j.wtf;return!(!e||!(Yo=e.trace)||(Zo=Yo.events,0))}var ll=ol();function ul(e,t){return null}var al=ll?function(e,t){return void 0===t&&(t=null),Zo.createScope(e,t)}:function(e,t){return ul},sl=ll?function(e,t){return Yo.leaveScope(e,t),t}:function(e,t){return t},cl=function(){return Promise.resolve(0)}();function pl(e){"undefined"==typeof Zone?cl.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var fl=function(){function e(e){var t,n=e.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jo(!1),this.onMicrotaskEmpty=new jo(!1),this.onStable=new jo(!1),this.onError=new jo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,l){try{return bl(t),e.invokeTask(r,i,o,l)}finally{ml(t)}},onInvoke:function(e,n,r,i,o,l,u){try{return bl(t),e.invoke(r,i,o,l,u)}finally{ml(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,yl(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,hl,dl,dl);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function dl(){}var hl={};function yl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function bl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ml(e){e._nesting--,yl(e)}var gl=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jo,this.onMicrotaskEmpty=new jo,this.onStable=new jo,this.onError=new jo}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),vl=function(){function e(e){var t=this;this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(function(){t.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){fl.assertNotInAngularZone(),pl(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;if(this.isStable())pl(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}},e.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]},e.prototype.addCallback=function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),kl=function(){function e(){this._applications=new Map,Ol.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),Ol.findTestabilityInTree(this,e,t)},Object(r.b)([Object(r.d)("design:paramtypes",[])],e)}();function _l(e){Ol=e}var wl,Ol=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Al=new R("AllowMultipleToken"),Cl=function(){return function(e,t){this.name=e,this.token=t}}();function Tl(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new R(r);return function(t){void 0===t&&(t=[]);var o=xl();if(!o||o.injector.get(Al,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var l=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(wl&&!wl.destroyed&&!wl.injector.get(Al,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");wl=e.get(Sl);var t=e.get(Ho,null);t&&t.forEach(function(e){return e()})}(gn.create({providers:l,name:r}))}return function(e){var t=xl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function xl(){return wl&&!wl.destroyed?wl:null}var Sl=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,i="noop"===(n=t?t.ngZone:void 0)?new gl:("zone.js"===n?void 0:n)||new fl({enableLongStackTrace:bt()}),o=[{provide:fl,useValue:i}];return i.run(function(){var t=gn.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),l=n.injector.get(dt,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return qo&&Io(n.injector.get(Wo,Po)||Po),n.onDestroy(function(){return Pl(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(e){l.handleError(e)}})}),function(e,t,i){try{var o=((l=n.injector.get(Ko)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return zn(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(u){throw t.runOutsideAngular(function(){return e.handleError(u)}),u}var l}(l,i)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=Ml({},t);return function(e,t,n){return e.get(il).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(El);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+A(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 Ml(e,t){return Array.isArray(t)?t.reduce(Ml,e):Object(r.a)({},e,t)}var El=function(){function e(e,t,n,r,i,o){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=bt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var c=new l.a(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),p=new l.a(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){fl.assertNotInAngularZone(),pl(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){fl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(u.a)(c,p.pipe(Object(a.a)()))}var t;return t=e,e.prototype.bootstrap=function(e,t){var n,r=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 Jn?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof nr?null:this._injector.get(Q),o=n.create(gn.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var l=o.injector.get(vl,null);return l&&o.injector.get(kl).registerApplication(o.location.nativeElement,l),this._loadComponent(o),bt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype.tick=function(){var e,n,i,o,l=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var u=t._tickScope();try{this._runningTick=!0;try{for(var a=Object(r.h)(this._views),s=a.next();!s.done;s=a.next())s.value.detectChanges()}catch(f){e={error:f}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}if(this._enforceNoNewChanges)try{for(var c=Object(r.h)(this._views),p=c.next();!p.done;p=c.next())p.value.checkNoChanges()}catch(d){i={error:d}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}}catch(h){this._zone.runOutsideAngular(function(){return l._exceptionHandler.handleError(h)})}finally{this._runningTick=!1,sl(u)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;Pl(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(zo,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),Pl(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=al("ApplicationRef#tick()"),e}();function Pl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Il=function(){return function(){}}(),jl=function(){return function(){}}(),Rl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ll=function(){function e(e,t){this._compiler=e,this._config=t||Rl}return e.prototype.load=function(e){return!qo&&this._compiler instanceof rl?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,i=Object(r.f)(e.split("#"),2),o=i[0],l=i[1];return void 0===l&&(l="default"),n("crnd")(o).then(function(e){return e[l]}).then(function(e){return Nl(e,o,l)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=Object(r.f)(e.split("#"),2),i=t[0],o=t[1],l="NgFactory";return void 0===o&&(o="default",l=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[o+l]}).then(function(e){return Nl(e,i,o)})},e}();function Nl(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Dl=function(){return function(e,t){this.name=e,this.callback=t}}(),Ul=function(){function e(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Fl&&t.addChild(this)}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}(),Fl=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return Object(r.c)(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,Object(r.g)([o+1,0],t)),t.forEach(function(t){t.parent&&t.parent.removeChild(t),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 Kl(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return Bl(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}(Ul);function Kl(e,t,n){e.childNodes.forEach(function(e){e instanceof Fl&&(t(e)&&n.push(e),Kl(e,t,n))})}function Bl(e,t,n){e instanceof Fl&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Fl&&Bl(e,t,n)})}var Vl=new Map,Gl=function(e){return Vl.get(e)||null};function Hl(e){Vl.set(e.nativeNode,e)}var $l=Tl(null,"core",[{provide:$o,useValue:"unknown"},{provide:Sl,deps:[gn]},{provide:kl,deps:[]},{provide:Qo,deps:[]}]);function zl(){return Tr}function Ql(){return xr}function Wl(e){return e?(qo&&Io(e),e):Po}function ql(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}var Jl=function(){return function(e){}}();function Yl(e,t,n,r,i,o){e|=1;var l=si(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l.matchedQueries,matchedQueryIds:l.matchedQueryIds,references:l.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?di(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Gr},provider:null,text:null,query:null,ngContent:null}}function Zl(e,t,n,i,o,l,u,a,s,c,p,f){var d;void 0===u&&(u=[]),c||(c=Gr);var h=si(n),y=h.matchedQueries,b=h.references,m=h.matchedQueryIds,g=null,v=null;l&&(g=(d=Object(r.f)(ki(l),2))[0],v=d[1]),a=a||[];for(var k=new Array(a.length),_=0;_<a.length;_++){var w=Object(r.f)(a[_],3),O=w[0],A=w[1],C=w[2],T=Object(r.f)(ki(A),2),x=T[0],S=T[1],M=void 0,E=void 0;switch(15&O){case 4:E=C;break;case 1:case 8:M=C}k[_]={flags:O,ns:x,name:S,nonMinifiedName:S,securityContext:M,suffix:E}}s=s||[];var P=new Array(s.length);for(_=0;_<s.length;_++){var I=Object(r.f)(s[_],2);P[_]={type:0,target:I[0],eventName:I[1],propName:null}}var j=(u=u||[]).map(function(e){var t=Object(r.f)(e,2),n=t[0],i=t[1],o=Object(r.f)(ki(n),2);return[o[0],o[1],i]});return f=function(e){if(e&&e.id===Qr){var t=null!=e.encapsulation&&e.encapsulation!==Z.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Jr++:Wr}return e&&e.id===Wr&&(e=null),e||null}(f),p&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:y,matchedQueryIds:m,references:b,ngContentIndex:i,childCount:o,bindings:k,bindingFlags:_i(k),outputs:P,element:{ns:g,name:v,attrs:j,template:null,componentProvider:null,componentView:p||null,componentRendererType:f,publicProviders:null,allProviders:null,handleEvent:c||Gr},provider:null,text:null,query:null,ngContent:null}}function Xl(e,t,n){var i,o=n.element,l=e.root.selectorOrNode,u=e.renderer;if(e.parent||!l){i=o.name?u.createElement(o.name,o.ns):u.createComment("");var a=pi(e,t,n);a&&u.appendChild(a,i)}else i=u.selectRootElement(l,!!o.componentRendererType&&o.componentRendererType.encapsulation===Z.ShadowDom);if(o.attrs)for(var s=0;s<o.attrs.length;s++){var c=Object(r.f)(o.attrs[s],3);u.setAttribute(i,c[1],c[2],c[0])}return i}function eu(e,t,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],l=tu(e,n.nodeIndex,(p=o.eventName,(c=o.target)?c+":"+p:p)),u=o.target,a=e;"component"===o.target&&(u=null,a=t);var s=a.renderer.listen(u||r,o.eventName,l);e.disposables[n.outputIndex+i]=s}var c,p}function tu(e,t,n){return function(r){return ni(e,t,n,r)}}function nu(e,t,n,r){if(!Zr(e,t,n,r))return!1;var i=t.bindings[n],o=Ur(e,t.nodeIndex),l=o.renderElement,u=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,o){var l=t.securityContext,u=l?e.root.sanitizer.sanitize(l,o):o;u=null!=u?u.toString():null;var a=e.renderer;null!=o?a.setAttribute(n,i,u,r):a.removeAttribute(n,i,r)}(e,i,l,i.ns,u,r);break;case 2:!function(e,t,n,r){var i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,l,u,r);break;case 4:!function(e,t,n,r,i){var o=e.root.sanitizer.sanitize(Kt.STYLE,i);if(null!=o){o=o.toString();var l=t.suffix;null!=l&&(o+=l)}else o=null;var u=e.renderer;null!=o?u.setStyle(n,r,o):u.removeStyle(n,r)}(e,i,l,u,r);break;case 8:!function(e,t,n,r,i){var o=t.securityContext,l=o?e.root.sanitizer.sanitize(o,i):i;e.renderer.setProperty(n,r,l)}(33554432&t.flags&&32&i.flags?o.componentView:e,i,l,u,r)}return!0}function ru(e,t,n){var r=[];for(var i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:ai(t),bindings:r},ngContent:null}}function iu(e){for(var t=e.def.nodeMatchedQueries;e.parent&&ui(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=e.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&t)===o.query.filterId&&Br(e,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&e.def.nodeFlags)for(i=0;i<e.def.nodes.length;i++){var o;134217728&(o=e.def.nodes[i]).flags&&536870912&o.flags&&Br(e,i).setDirty(),i+=o.childCount}}function ou(e,t){var n=Br(e,t.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&t.flags){var o=t.parent.parent;i=lu(e,o.nodeIndex,o.nodeIndex+o.childCount,t.query,[]),r=Fr(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=lu(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);for(var l=t.query.bindings,u=!1,a=0;a<l.length;a++){var s=l[a],c=void 0;switch(s.bindingType){case 0:c=n.first;break;case 1:c=n,u=!0}r[s.propName]=c}u&&n.notifyOnChanges()}}function lu(e,t,n,r,i){for(var o=t;o<=n;o++){var l=e.def.nodes[o],u=l.matchedQueries[r.id];if(null!=u&&i.push(uu(e,l,u)),1&l.flags&&l.element.template&&(l.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var a=Ur(e,o);if((l.childMatchedQueries&r.filterId)===r.filterId&&(lu(e,o+1,o+l.childCount,r,i),o+=l.childCount),16777216&l.flags)for(var s=a.viewContainer._embeddedViews,c=0;c<s.length;c++){var p=s[c],f=ri(p);f&&f===a&&lu(p,0,p.def.nodes.length-1,r,i)}var d=a.template._projectedViews;if(d)for(c=0;c<d.length;c++){var h=d[c];lu(h,0,h.def.nodes.length-1,r,i)}}(l.childMatchedQueries&r.filterId)!==r.filterId&&(o+=l.childCount)}return i}function uu(e,t,n){if(null!=n)switch(n){case 1:return Ur(e,t.nodeIndex).renderElement;case 0:return new ir(Ur(e,t.nodeIndex).renderElement);case 2:return Ur(e,t.nodeIndex).template;case 3:return Ur(e,t.nodeIndex).viewContainer;case 4:return Fr(e,t.nodeIndex).instance}}function au(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function su(e,t,n){var r=pi(e,t,n);r&&bi(e,n.ngContent.index,1,r,null,void 0)}function cu(e,t){return du(128,e,new Array(t+1))}function pu(e,t){return du(32,e,new Array(t))}function fu(e,t){for(var n=Object.keys(t),r=n.length,i=new Array(r),o=0;o<r;o++){var l=n[o];i[t[l]]=l}return du(64,e,i)}function du(e,t,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:_i(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function hu(e,t,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function yu(e,t,n){var r,i=e.renderer;r=i.createText(n.text.prefix);var o=pi(e,t,n);return o&&i.appendChild(o,r),{renderText:r}}function bu(e,t){return(null!=e?e.toString():"")+t.suffix}function mu(e,t,n,r){for(var i=0,o=0,l=0,u=0,a=0,s=null,c=null,p=!1,f=!1,d=null,h=0;h<t.length;h++){var y=t[h];if(y.nodeIndex=h,y.parent=s,y.bindingIndex=i,y.outputIndex=o,y.renderParent=c,l|=y.flags,a|=y.matchedQueryIds,y.element){var b=y.element;b.publicProviders=s?s.element.publicProviders:Object.create(null),b.allProviders=b.publicProviders,p=!1,f=!1,y.element.template&&(a|=y.element.template.nodeMatchedQueries)}if(vu(s,y,t.length),i+=y.bindings.length,o+=y.outputs.length,!c&&3&y.flags&&(d=y),20224&y.flags){p||(p=!0,s.element.publicProviders=Object.create(s.element.publicProviders),s.element.allProviders=s.element.publicProviders);var m=0!=(32768&y.flags);0==(8192&y.flags)||m?s.element.publicProviders[$r(y.provider.token)]=y:(f||(f=!0,s.element.allProviders=Object.create(s.element.publicProviders)),s.element.allProviders[$r(y.provider.token)]=y),m&&(s.element.componentProvider=y)}if(s?(s.childFlags|=y.flags,s.directChildFlags|=y.flags,s.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(s.childMatchedQueries|=y.element.template.nodeMatchedQueries)):u|=y.flags,y.childCount>0)s=y,gu(y)||(c=y);else for(;s&&h===s.nodeIndex+s.childCount;){var g=s.parent;g&&(g.childFlags|=s.childFlags,g.childMatchedQueries|=s.childMatchedQueries),c=(s=g)&&gu(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Gr,updateRenderer:r||Gr,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function gu(e){return 0!=(1&e.flags)&&null===e.element.name}function vu(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.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 ku(e,t,n,r){var i=Ou(e.root,e.renderer,e,t,n);return Au(i,e.component,r),Cu(i),i}function _u(e,t,n){var r=Ou(e,e.renderer,null,null,t);return Au(r,n,n),Cu(r),r}function wu(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,Ou(e.root,i,e,t.element.componentProvider,n)}function Ou(e,t,n,r,i){var o=new Array(i.nodes.length),l=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:l,initIndex:-1}}function Au(e,t,n){e.component=t,e.context=n}function Cu(e){var t;li(e)&&(t=Ur(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];Vr.setCurrentNode(e,i);var l=void 0;switch(201347067&o.flags){case 1:var u=Xl(e,t,o),a=void 0;if(33554432&o.flags){var s=di(o.element.componentView);a=Vr.createComponentView(e,o,s,u)}eu(e,a,o,u),l={renderElement:u,componentView:a,viewContainer:null,template:o.element.template?Gi(e,o):void 0},16777216&o.flags&&(l.viewContainer=Fi(e,o,l));break;case 2:l=yu(e,t,o);break;case 512:case 1024:case 2048:case 256:(l=r[i])||4096&o.flags||(l={instance:co(e,o)});break;case 16:l={instance:po(e,o)};break;case 16384:(l=r[i])||(l={instance:fo(e,o)}),32768&o.flags&&Au(Ur(e,o.parent.nodeIndex).componentView,l.instance,l.instance);break;case 32:case 64:case 128:l={value:void 0};break;case 67108864:case 134217728:l=new Lo;break;case 8:su(e,t,o),l=void 0}r[i]=l}Ru(e,ju.CreateViewNodes),Uu(e,201326592,268435456,0)}function Tu(e){Mu(e),Vr.updateDirectives(e,1),Lu(e,ju.CheckNoChanges),Vr.updateRenderer(e,1),Ru(e,ju.CheckNoChanges),e.state&=-97}function xu(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Lr(e,0,256),Mu(e),Vr.updateDirectives(e,0),Lu(e,ju.CheckAndUpdate),Uu(e,67108864,536870912,0);var t=Lr(e,256,512);_o(e,2097152|(t?1048576:0)),Vr.updateRenderer(e,0),Ru(e,ju.CheckAndUpdate),Uu(e,134217728,536870912,0),_o(e,8388608|((t=Lr(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Lr(e,768,1024)}function Su(e,t,n,i,o,l,u,a,s,c,p,f,d){return 0===n?function(e,t,n,r,i,o,l,u,a,s,c,p){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,o,l,u,a,s,c,p){var f=t.bindings.length,d=!1;return f>0&&nu(e,t,0,n)&&(d=!0),f>1&&nu(e,t,1,r)&&(d=!0),f>2&&nu(e,t,2,i)&&(d=!0),f>3&&nu(e,t,3,o)&&(d=!0),f>4&&nu(e,t,4,l)&&(d=!0),f>5&&nu(e,t,5,u)&&(d=!0),f>6&&nu(e,t,6,a)&&(d=!0),f>7&&nu(e,t,7,s)&&(d=!0),f>8&&nu(e,t,8,c)&&(d=!0),f>9&&nu(e,t,9,p)&&(d=!0),d}(e,t,n,r,i,o,l,u,a,s,c,p);case 2:return function(e,t,n,r,i,o,l,u,a,s,c,p){var f=!1,d=t.bindings,h=d.length;if(h>0&&Zr(e,t,0,n)&&(f=!0),h>1&&Zr(e,t,1,r)&&(f=!0),h>2&&Zr(e,t,2,i)&&(f=!0),h>3&&Zr(e,t,3,o)&&(f=!0),h>4&&Zr(e,t,4,l)&&(f=!0),h>5&&Zr(e,t,5,u)&&(f=!0),h>6&&Zr(e,t,6,a)&&(f=!0),h>7&&Zr(e,t,7,s)&&(f=!0),h>8&&Zr(e,t,8,c)&&(f=!0),h>9&&Zr(e,t,9,p)&&(f=!0),f){var y=t.text.prefix;h>0&&(y+=bu(n,d[0])),h>1&&(y+=bu(r,d[1])),h>2&&(y+=bu(i,d[2])),h>3&&(y+=bu(o,d[3])),h>4&&(y+=bu(l,d[4])),h>5&&(y+=bu(u,d[5])),h>6&&(y+=bu(a,d[6])),h>7&&(y+=bu(s,d[7])),h>8&&(y+=bu(c,d[8])),h>9&&(y+=bu(p,d[9]));var b=Dr(e,t.nodeIndex).renderText;e.renderer.setValue(b,y)}return f}(e,t,n,r,i,o,l,u,a,s,c,p);case 16384:return function(e,t,n,r,i,o,l,u,a,s,c,p){var f=Fr(e,t.nodeIndex),d=f.instance,h=!1,y=void 0,b=t.bindings.length;return b>0&&Yr(e,t,0,n)&&(h=!0,y=ko(e,f,t,0,n,y)),b>1&&Yr(e,t,1,r)&&(h=!0,y=ko(e,f,t,1,r,y)),b>2&&Yr(e,t,2,i)&&(h=!0,y=ko(e,f,t,2,i,y)),b>3&&Yr(e,t,3,o)&&(h=!0,y=ko(e,f,t,3,o,y)),b>4&&Yr(e,t,4,l)&&(h=!0,y=ko(e,f,t,4,l,y)),b>5&&Yr(e,t,5,u)&&(h=!0,y=ko(e,f,t,5,u,y)),b>6&&Yr(e,t,6,a)&&(h=!0,y=ko(e,f,t,6,a,y)),b>7&&Yr(e,t,7,s)&&(h=!0,y=ko(e,f,t,7,s,y)),b>8&&Yr(e,t,8,c)&&(h=!0,y=ko(e,f,t,8,c,y)),b>9&&Yr(e,t,9,p)&&(h=!0,y=ko(e,f,t,9,p,y)),y&&d.ngOnChanges(y),65536&t.flags&&Nr(e,256,t.nodeIndex)&&d.ngOnInit(),262144&t.flags&&d.ngDoCheck(),h}(e,t,n,r,i,o,l,u,a,s,c,p);case 32:case 64:case 128:return function(e,t,n,r,i,o,l,u,a,s,c,p){var f=t.bindings,d=!1,h=f.length;if(h>0&&Zr(e,t,0,n)&&(d=!0),h>1&&Zr(e,t,1,r)&&(d=!0),h>2&&Zr(e,t,2,i)&&(d=!0),h>3&&Zr(e,t,3,o)&&(d=!0),h>4&&Zr(e,t,4,l)&&(d=!0),h>5&&Zr(e,t,5,u)&&(d=!0),h>6&&Zr(e,t,6,a)&&(d=!0),h>7&&Zr(e,t,7,s)&&(d=!0),h>8&&Zr(e,t,8,c)&&(d=!0),h>9&&Zr(e,t,9,p)&&(d=!0),d){var y=Kr(e,t.nodeIndex),b=void 0;switch(201347067&t.flags){case 32:b=new Array(f.length),h>0&&(b[0]=n),h>1&&(b[1]=r),h>2&&(b[2]=i),h>3&&(b[3]=o),h>4&&(b[4]=l),h>5&&(b[5]=u),h>6&&(b[6]=a),h>7&&(b[7]=s),h>8&&(b[8]=c),h>9&&(b[9]=p);break;case 64:b={},h>0&&(b[f[0].name]=n),h>1&&(b[f[1].name]=r),h>2&&(b[f[2].name]=i),h>3&&(b[f[3].name]=o),h>4&&(b[f[4].name]=l),h>5&&(b[f[5].name]=u),h>6&&(b[f[6].name]=a),h>7&&(b[f[7].name]=s),h>8&&(b[f[8].name]=c),h>9&&(b[f[9].name]=p);break;case 128:var m=n;switch(h){case 1:b=m.transform(n);break;case 2:b=m.transform(r);break;case 3:b=m.transform(r,i);break;case 4:b=m.transform(r,i,o);break;case 5:b=m.transform(r,i,o,l);break;case 6:b=m.transform(r,i,o,l,u);break;case 7:b=m.transform(r,i,o,l,u,a);break;case 8:b=m.transform(r,i,o,l,u,a,s);break;case 9:b=m.transform(r,i,o,l,u,a,s,c);break;case 10:b=m.transform(r,i,o,l,u,a,s,c,p)}}y.value=b}return d}(e,t,n,r,i,o,l,u,a,s,c,p);default:throw"unreachable"}}(e,t,i,o,l,u,a,s,c,p,f,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i<n.length;i++)nu(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)Zr(e,t,o,n[o])&&(i=!0);if(i){var l="";for(o=0;o<n.length;o++)l+=bu(n[o],r[o]);l=t.text.prefix+l;var u=Dr(e,t.nodeIndex).renderText;e.renderer.setValue(u,l)}return i}(e,t,n);case 16384:return function(e,t,n){for(var r=Fr(e,t.nodeIndex),i=r.instance,o=!1,l=void 0,u=0;u<n.length;u++)Yr(e,t,u,n[u])&&(o=!0,l=ko(e,r,t,u,n[u],l));return l&&i.ngOnChanges(l),65536&t.flags&&Nr(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),o}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var i=t.bindings,o=!1,l=0;l<n.length;l++)Zr(e,t,l,n[l])&&(o=!0);if(o){var u=Kr(e,t.nodeIndex),a=void 0;switch(201347067&t.flags){case 32:a=n;break;case 64:for(a={},l=0;l<n.length;l++)a[i[l].name]=n[l];break;case 128:var s=n[0],c=n.slice(1);a=s.transform.apply(s,Object(r.g)(c))}u.value=a}return o}(e,t,n);default:throw"unreachable"}}(e,t,i)}function Mu(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var i=Ur(e,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var l=i[o];l.state|=32,ti(l,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Eu(e,t,n,r,i,o,l,u,a,s,c,p,f){return 0===n?function(e,t,n,r,i,o,l,u,a,s,c,p){var f=t.bindings.length;f>0&&Xr(e,t,0,n),f>1&&Xr(e,t,1,r),f>2&&Xr(e,t,2,i),f>3&&Xr(e,t,3,o),f>4&&Xr(e,t,4,l),f>5&&Xr(e,t,5,u),f>6&&Xr(e,t,6,a),f>7&&Xr(e,t,7,s),f>8&&Xr(e,t,8,c),f>9&&Xr(e,t,9,p)}(e,t,r,i,o,l,u,a,s,c,p,f):function(e,t,n){for(var r=0;r<n.length;r++)Xr(e,t,r,n[r])}(e,t,r),!1}function Pu(e,t){if(Br(e,t.nodeIndex).dirty)throw Ir(Vr.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function Iu(e){if(!(128&e.state)){if(Lu(e,ju.Destroy),Ru(e,ju.Destroy),_o(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=ri(e);if(t){var n=t.template._projectedViews;n&&(J(n,n.indexOf(e)),Vr.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(Ur(e,n).renderElement):2&r.flags?e.renderer.destroyNode(Dr(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&Br(e,n).destroy()}}(e),li(e)&&e.renderer.destroy(),e.state|=128}}var ju=function(e){return e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy",e}({});function Ru(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?Nu(Ur(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Lu(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Ur(e,r).viewContainer._embeddedViews,l=0;l<o.length;l++)Nu(o[l],t);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Nu(e,t){var n=e.state;switch(t){case ju.CheckNoChanges:0==(128&n)&&(12==(12&n)?Tu(e):64&n&&Du(e,ju.CheckNoChangesProjectedViews));break;case ju.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Tu(e):64&n&&Du(e,t));break;case ju.CheckAndUpdate:0==(128&n)&&(12==(12&n)?xu(e):64&n&&Du(e,ju.CheckAndUpdateProjectedViews));break;case ju.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?xu(e):64&n&&Du(e,t));break;case ju.Destroy:Iu(e);break;case ju.CreateViewNodes:Cu(e)}}function Du(e,t){Lu(e,t),Ru(e,t)}function Uu(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var i=e.def.nodes.length,o=0;o<i;o++){var l=e.def.nodes[o];if(l.flags&t&&l.flags&n)switch(Vr.setCurrentNode(e,l.nodeIndex),r){case 0:ou(e,l);break;case 1:Pu(e,l)}l.childFlags&t&&l.childFlags&n||(o+=l.childCount)}}var Fu=!1;function Ku(e,t,n,r,i,o){var l=i.injector.get(ur);return _u(Vu(e,i,l,t,n),r,o)}function Bu(e,t,n,r,i,o){var l=i.injector.get(ur),u=Vu(e,i,new _a(l),t,n),a=Zu(r);return va(ua.create,_u,null,[u,a,o])}function Vu(e,t,n,r,i){var o=t.injector.get(Bt),l=t.injector.get(dt),u=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:u,errorHandler:l}}function Gu(e,t,n,r){var i=Zu(n);return va(ua.create,ku,null,[e,t,i,r])}function Hu(e,t,n,r){return n=Wu.get(t.element.componentProvider.provider.token)||Zu(n),va(ua.create,wu,null,[e,t,n,r])}function $u(e,t,n,r){return Ji(e,t,n,function(e){var t=function(e){var t=!1,n=!1;return 0===zu.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(function(e){var r=zu.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(function(e){Qu.forEach(function(r,i){w(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e),n=t.hasDeprecatedOverrides;return t.hasOverrides?(function(e){for(var t=0;t<e.providers.length;t++){var r=e.providers[t];n&&(r.flags|=4096);var i=zu.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=ci(i.deps),r.value=i.value)}if(Qu.size>0){var o=new Set(e.modules);Qu.forEach(function(t,r){if(o.has(w(r).providedIn)){var i={token:r,flags:t.flags|(n?4096:0),deps:ci(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[$r(r)]=i}})}}(e=e.factory(function(){return Gr})),e):e}(r))}var zu=new Map,Qu=new Map,Wu=new Map;function qu(e){var t;zu.set(e.token,e),"function"==typeof e.token&&(t=w(e.token))&&"function"==typeof t.providedIn&&Qu.set(e.token,e)}function Ju(e,t){var n=di(t.viewDefFactory),r=di(n.nodes[0].element.componentView);Wu.set(e,r)}function Yu(){zu.clear(),Qu.clear(),Wu.clear()}function Zu(e){if(0===zu.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&zu.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return Gr});for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=zu.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=ci(o.deps),i.value=o.value)}}}}function Xu(e,t,n,r,i,o,l,u,a,s,c,p,f){var d=e.def.nodes[t];return Su(e,d,n,r,i,o,l,u,a,s,c,p,f),224&d.flags?Kr(e,t).value:void 0}function ea(e,t,n,r,i,o,l,u,a,s,c,p,f){var d=e.def.nodes[t];return Eu(e,d,n,r,i,o,l,u,a,s,c,p,f),224&d.flags?Kr(e,t).value:void 0}function ta(e){return va(ua.detectChanges,xu,null,[e])}function na(e){return va(ua.checkNoChanges,Tu,null,[e])}function ra(e){return va(ua.destroy,Iu,null,[e])}var ia,oa,la,ua=function(e){return e[e.create=0]="create",e[e.detectChanges=1]="detectChanges",e[e.checkNoChanges=2]="checkNoChanges",e[e.destroy=3]="destroy",e[e.handleEvent=4]="handleEvent",e}({});function aa(e,t){oa=e,la=t}function sa(e,t,n,r){return aa(e,t),va(ua.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function ca(e,t){if(128&e.state)throw Rr(ua[ia]);return aa(e,ha(e,0)),e.def.updateDirectives(function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var l=e.def.nodes[n];return 0===t?fa(e,l,r,i):da(e,l,r,i),16384&l.flags&&aa(e,ha(e,n)),224&l.flags?Kr(e,l.nodeIndex).value:void 0},e)}function pa(e,t){if(128&e.state)throw Rr(ua[ia]);return aa(e,ya(e,0)),e.def.updateRenderer(function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var l=e.def.nodes[n];return 0===t?fa(e,l,r,i):da(e,l,r,i),3&l.flags&&aa(e,ya(e,n)),224&l.flags?Kr(e,l.nodeIndex).value:void 0},e)}function fa(e,t,n,i){if(Su.apply(void 0,Object(r.g)([e,t,n],i))){var o=1===n?i[0]:i;if(16384&t.flags){for(var l={},u=0;u<t.bindings.length;u++){var a=t.bindings[u],s=o[u];8&a.flags&&(l[(d=a.nonMinifiedName,"ng-reflect-"+d.replace(/[$@]/g,"_").replace($t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()}))]=zt(s))}var c=t.parent,p=Ur(e,c.nodeIndex).renderElement;if(c.element.name)for(var f in l)null!=(s=l[f])?e.renderer.setAttribute(p,f,s):e.renderer.removeAttribute(p,f);else e.renderer.setValue(p,"bindings="+JSON.stringify(l,null,2))}}var d}function da(e,t,n,i){Eu.apply(void 0,Object(r.g)([e,t,n],i))}function ha(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function ya(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var ba=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=ii(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return Ur(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return $i(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){ga(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&ga(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!li(e);)e=e.parent;return e.parent?Ur(e.parent,ii(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?oi(this.view,this.nodeDef):oi(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];2&this.nodeDef.flags?(t=this.view.def,n=this.nodeDef.nodeIndex):(t=this.elView.def,n=this.elDef.nodeIndex);var l=ma(t,n),u=-1,a=function(){var t;return++u===l?(t=e.error).bind.apply(t,Object(r.g)([e],i)):Gr};t.factory(a),u<l&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,Object(r.g)(i)))},e}();function ma(e,t){for(var n=-1,r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}function ga(e,t,n){for(var r in t.references)n[r]=uu(e,t,t.references[r])}function va(e,t,n,r){var i=ia,o=oa,l=la;try{ia=e;var u=t.apply(n,r);return oa=o,la=l,ia=i,u}catch(a){if(ct(a)||!oa)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),jr(e,t),e}(a,ka())}}function ka(){return oa?new ba(oa,la):null}var _a=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new wa(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),wa=function(){function e(e){this.delegate=e,this.debugContextFactory=ka,this.data=this.delegate.data}return e.prototype.createDebugContext=function(e){return this.debugContextFactory(e)},e.prototype.destroyNode=function(e){var t=Gl(e);Vl.delete(t.nativeNode),t instanceof Ul&&(t.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){var i=new Fl(n,null,r);i.name=e,Hl(i)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&Hl(new Ul(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&Hl(new Ul(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=Gl(e),r=Gl(t);n&&r&&n instanceof Fl&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=Gl(e),i=Gl(t),o=Gl(n);r&&i&&r instanceof Fl&&r.insertBefore(o,i),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=Gl(e),r=Gl(t);n&&r&&n instanceof Fl&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e,t){var n=this.delegate.selectRootElement(e,t),r=ka();return r&&Hl(new Fl(n,null,r)),n},e.prototype.setAttribute=function(e,t,n,r){var i=Gl(e);i&&i instanceof Fl&&(i.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=Gl(e);r&&r instanceof Fl&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=Gl(e);n&&n instanceof Fl&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=Gl(e);n&&n instanceof Fl&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var i=Gl(e);i&&i instanceof Fl&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=Gl(e);r&&r instanceof Fl&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=Gl(e);r&&r instanceof Fl&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=Gl(e);r&&r.listeners.push(new Dl(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();function Oa(e,t,n){return new Aa(e,t,n)}var Aa=function(e){function t(t,n,r){var i=e.call(this)||this;return i.moduleType=t,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return Object(r.c)(t,e),t.prototype.create=function(e){!function(){if(!Fu){Fu=!0;var e=bt()?{setCurrentNode:aa,createRootView:Bu,createEmbeddedView:Gu,createComponentView:Hu,createNgModuleRef:$u,overrideProvider:qu,overrideComponentView:Ju,clearOverrides:Yu,checkAndUpdateView:ta,checkNoChangesView:na,destroyView:ra,createDebugContext:function(e,t){return new ba(e,t)},handleEvent:sa,updateDirectives:ca,updateRenderer:pa}:{setCurrentNode:function(){},createRootView:Ku,createEmbeddedView:ku,createComponentView:wu,createNgModuleRef:Ji,overrideProvider:Gr,overrideComponentView:Gr,clearOverrides:Gr,checkAndUpdateView:xu,checkNoChangesView:Tu,destroyView:Iu,createDebugContext:function(e,t){return new ba(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?Xu:ea,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?Xu:ea,e)}};Vr.setCurrentNode=e.setCurrentNode,Vr.createRootView=e.createRootView,Vr.createEmbeddedView=e.createEmbeddedView,Vr.createComponentView=e.createComponentView,Vr.createNgModuleRef=e.createNgModuleRef,Vr.overrideProvider=e.overrideProvider,Vr.overrideComponentView=e.overrideComponentView,Vr.clearOverrides=e.clearOverrides,Vr.checkAndUpdateView=e.checkAndUpdateView,Vr.checkNoChangesView=e.checkNoChangesView,Vr.destroyView=e.destroyView,Vr.resolveDep=go,Vr.createDebugContext=e.createDebugContext,Vr.handleEvent=e.handleEvent,Vr.updateDirectives=e.updateDirectives,Vr.updateRenderer=e.updateRenderer,Vr.dirtyParentQueries=iu}}();var t=function(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(di(this._ngModuleDefFactory));return Vr.createNgModuleRef(this.moduleType,e||gn.NULL,this._bootstrapComponents,t)},t}(W)},DFZA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("GOc1");let i;t.isScancodeExists=function(e){return i||function(){i=new Map;for(const e of r.SCANCODES)for(const t of e.children)i.set(t.additional&&t.additional.scancode?t.additional.scancode:Number.parseInt(t.id),t)}(),i.has(e)}},DKTb:function(e,t,n){"use strict";function r(e){setTimeout(function(){throw e},0)}n.d(t,"a",function(){return r})},E2UR: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:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-23",x:"-362.60098",y:"877.92914",ry:"3.5107117",width:"63.014999",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"}}]}}},En2k:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("nsO7");t.isEqualArray=(e,t)=>{if(e.length!==t.length)return!1;for(const n of e)if(!t.some(e=>r.isEqual(n,e)))return!1;return!0}},"En8+":function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});var i=r()},"F/XL":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("nkY7"),i=n("IUTb"),o=n("JF+6");function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return Object(r.a)(n)?(e.pop(),Object(o.a)(e,n)):Object(i.a)(e)}},FFOo:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("mrSG"),i=n("2Bdj"),o=n("6ahw"),l=n("pugT"),u=n("L/V9"),a=n("iLxQ"),s=n("DKTb"),c=function(e){function t(n,r,i){var l=e.call(this)||this;switch(l.syncErrorValue=null,l.syncErrorThrown=!1,l.syncErrorThrowable=!1,l.isStopped=!1,arguments.length){case 0:l.destination=o.a;break;case 1:if(!n){l.destination=o.a;break}if("object"==typeof n){n instanceof t?(l.syncErrorThrowable=n.syncErrorThrowable,l.destination=n,n.add(l)):(l.syncErrorThrowable=!0,l.destination=new p(l,n));break}default:l.syncErrorThrowable=!0,l.destination=new p(l,n,r,i)}return l}return r.c(t,e),t.prototype[u.a]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);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._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(l.a),p=function(e){function t(t,n,r,l){var u,a=e.call(this)||this;a._parentSubscriber=t;var s=a;return Object(i.a)(n)?u=n:n&&(u=n.next,r=n.error,l=n.complete,n!==o.a&&(s=Object.create(n),Object(i.a)(s.unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=u,a._error=r,a._complete=l,a}return r.c(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;a.a.useDeprecatedSynchronousErrorHandling&&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,n=a.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(s.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(s.a)(e)}}},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)};a.a.useDeprecatedSynchronousErrorHandling&&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(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(s.a)(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(s.a)(r),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(c)},FREM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.basic=0]="basic",e[e.shortMedia=1]="shortMedia",e[e.longMedia=2]="longMedia",e[e.system=3]="system"}(t.KeystrokeType||(t.KeystrokeType={}))},FYXD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("67Y/");function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return Object(r.a)(function(e,t){return function(n){for(var r=n,i=0;i<t;i++){var o=r[e[i]];if(void 0===o)return;r=o}return r}}(e,n))(t)}}},Fxb1:function(e,t,n){"use strict";var r=n("+tJ4"),i=n("DKTb"),o=n("En8+"),l=n("xTla"),u=n("2ePl"),a=n("/WYv"),s=n("McSo");n.d(t,"a",function(){return c});var c=function(e){if(e&&"function"==typeof e[l.a])return c=e,function(e){var t=c[l.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(u.a)(e))return Object(r.a)(e);if(Object(a.a)(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,i.a),e};if(e&&"function"==typeof e[o.a])return t=e,function(e){for(var n=t[o.a]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,c,p=Object(s.a)(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+p+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},G5J1:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n("6blF"),i=new r.a(function(e){return e.complete()});function o(e){return e?function(e){return new r.a(function(t){return e.schedule(function(){return t.complete()})})}(e):i}},G8Wf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("rBfm");t.TextMacroAction=class extends r.MacroAction{constructor(e){super(),e&&(this.text=e.text)}fromJsonObject(e){return this.assertMacroActionType(e),this.text=e.text,this}fromBinary(e){return this.readAndAssertMacroActionId(e),this.text=e.readString(),this}toJsonObject(){return{macroActionType:r.macroActionType.TextMacroAction,text:this.text}}toBinary(e){e.writeUInt8(r.MacroActionId.TextMacroAction),e.writeString(this.text)}toString(){return`<TextMacroAction text="${this.text}">`}getName(){return"TextMacroAction"}}},GOc1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("TEuf"),t),r.__exportStar(n("diPy"),t),r.__exportStar(n("/FnF"),t),r.__exportStar(n("QGe5"),t),r.__exportStar(n("s9zn"),t),r.__exportStar(n("APMd"),t),r.__exportStar(n("UEaM"),t),r.__exportStar(n("myTe"),t),r.__exportStar(n("qaQF"),t),r.__exportStar(n("p2JS"),t),r.__exportStar(n("90N0"),t),t.SCANCODES=n("UBVW"),t.SECONDARY_ROLES=n("9j6c")},Gi3i:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mrSG"),i=n("FFOo"),o=n("T1DM");function l(e,t){return void 0===t&&(t=o.a),function(n){return n.lift(new u(e,t))}}var u=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.dueTime,this.scheduler))},e}(),a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.c(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(s,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(i.a);function s(e){e.debouncedNext()}},Gjsa:function(e,t){var n="function"==typeof setImmediate;e.exports=n?function(e){setImmediate(e)}:function(e){setTimeout(e,0)}},GyMh:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.PauseBreak=19]="PauseBreak",e[e.CapsLock=20]="CapsLock",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Zero=48]="Zero",e[e.ClosedParen=48]="ClosedParen",e[e.One=49]="One",e[e.ExclamationMark=49]="ExclamationMark",e[e.Two=50]="Two",e[e.AtSign=50]="AtSign",e[e.Three=51]="Three",e[e.PoundSign=51]="PoundSign",e[e.Hash=51]="Hash",e[e.Four=52]="Four",e[e.DollarSign=52]="DollarSign",e[e.Five=53]="Five",e[e.PercentSign=53]="PercentSign",e[e.Six=54]="Six",e[e.Caret=54]="Caret",e[e.Hat=54]="Hat",e[e.Seven=55]="Seven",e[e.Ampersand=55]="Ampersand",e[e.Eight=56]="Eight",e[e.Star=56]="Star",e[e.Asterik=56]="Asterik",e[e.Nine=57]="Nine",e[e.OpenParen=57]="OpenParen",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.LeftWindowKey=91]="LeftWindowKey",e[e.RightWindowKey=92]="RightWindowKey",e[e.SelectKey=93]="SelectKey",e[e.Numpad0=96]="Numpad0",e[e.Numpad1=97]="Numpad1",e[e.Numpad2=98]="Numpad2",e[e.Numpad3=99]="Numpad3",e[e.Numpad4=100]="Numpad4",e[e.Numpad5=101]="Numpad5",e[e.Numpad6=102]="Numpad6",e[e.Numpad7=103]="Numpad7",e[e.Numpad8=104]="Numpad8",e[e.Numpad9=105]="Numpad9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.DecimalPoint=110]="DecimalPoint",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.SemiColon=186]="SemiColon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.UnderScore=189]="UnderScore",e[e.PlusSign=187]="PlusSign",e[e.ForwardSlash=191]="ForwardSlash",e[e.Tilde=192]="Tilde",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.ClosedBracket=221]="ClosedBracket",e[e.Quote=222]="Quote"}(t.Key||(t.Key={}))},IUTb:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("6blF"),i=n("+tJ4"),o=n("JF+6");function l(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},Ibf7:function(e,t,n){"use strict";var r=n("Gjsa");e.exports=function(e,t,n){e&&r(function(){e.apply(n||null,t||[])})}},JEAp:function(e,t,n){var r,i=i||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=function(){return e.URL||e.webkitURL||e},n=e.document.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in n,i=/constructor/i.test(e.HTMLElement)||e.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent),l=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},u=function(e){setTimeout(function(){"string"==typeof e?t().revokeObjectURL(e):e.remove()},4e4)},a=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},s=function(s,c,p){p||(s=a(s));var f,d=this,h="application/octet-stream"===s.type,y=function(){!function(e,t,n){for(var r=(t=[].concat(t)).length;r--;){var i=e["on"+t[r]];if("function"==typeof i)try{i.call(e,e)}catch(o){l(o)}}}(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,r)return f=t().createObjectURL(s),void setTimeout(function(){var e,t;n.href=f,n.download=c,e=n,t=new MouseEvent("click"),e.dispatchEvent(t),y(),u(f),d.readyState=d.DONE});!function(){if((o||h&&i)&&e.FileReader){var n=new FileReader;return n.onloadend=function(){var t=o?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,d.readyState=d.DONE,y()},n.readAsDataURL(s),void(d.readyState=d.INIT)}f||(f=t().createObjectURL(s)),h?e.location.href=f:e.open(f,"_blank")||(e.location.href=f),d.readyState=d.DONE,y(),u(f)}()},c=s.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=a(e)),navigator.msSaveOrOpenBlob(e,t)}:(c.abort=function(){},c.readyState=c.INIT=0,c.WRITING=1,c.DONE=2,c.error=c.onwritestart=c.onprogress=c.onwrite=c.onabort=c.onerror=c.onwriteend=null,function(e,t,n){return new s(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);e.exports?e.exports.saveAs=i:null!==n("B9Yq")&&null!==n("PDX0")&&(void 0===(r=(function(){return i}).call(t,n,t,e))||(e.exports=r))},"JF+6":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6blF"),i=n("pugT");function o(e,t){return new r.a(function(n){var r=new i.a,o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},Ji2o:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("GOc1"),t),r.__exportStar(n("Mfn/"),t),r.__exportStar(n("i/vr"),t),r.__exportStar(n("SACm"),t)},K9Ia:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return p});var r=n("mrSG"),i=n("6blF"),o=n("FFOo"),l=n("pugT"),u=n("8g8A"),a=n("uMaO"),s=n("L/V9"),c=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.c(t,e),t}(o.a),p=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.c(t,e),t.prototype[s.a]=function(){return new c(this)},t.prototype.lift=function(e){var t=new f(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new u.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new u.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new u.a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new u.a;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new u.a;return this.hasError?(e.error(this.thrownError),l.a.EMPTY):this.isStopped?(e.complete(),l.a.EMPTY):(this.observers.push(e),new a.a(this,e))},t.prototype.asObservable=function(){var e=new i.a;return e.source=this,e},t.create=function(e,t){return new f(e,t)},t}(i.a),f=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r.c(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):l.a.EMPTY},t}(p)},KQti:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("s9zn"),l=n("RGrK");class u extends l.KeyAction{constructor(e){super(),e&&(this.keymapAbbreviation=e instanceof u?e.keymapAbbreviation:e instanceof o.Keymap?e.abbreviation:e)}fromJsonObject(e){return this.assertKeyActionType(e),this.keymapAbbreviation=e.keymapAbbreviation,this}toJsonObject(){return{keyActionType:l.keyActionType.SwitchKeymapAction,keymapAbbreviation:this.keymapAbbreviation}}toBinary(e,t){const n=t.keymaps.findIndex(e=>e.abbreviation===this.keymapAbbreviation);e.writeUInt8(l.KeyActionId.SwitchKeymapAction),e.writeUInt8(n)}toString(){return`<SwitchKeymapAction keymapAbbreviation="${this.keymapAbbreviation}">`}renameKeymap(e,t){return this.keymapAbbreviation!==e?this:new u(t)}getName(){return"SwitchKeymapAction"}}t.SwitchKeymapAction=u;class a extends l.KeyAction{constructor(e){super(),this.keymapIndex=e}fromBinary(e){return e.readUInt8(),this.keymapIndex=e.readUInt8(),this}toBinary(e){e.writeUInt8(l.KeyActionId.SwitchKeymapAction),e.writeUInt8(this.keymapIndex)}toJsonObject(){throw new Error("UnresolvedSwitchKeymapAction cannot be serialized directly. Convert it to SwitchKeymapAction first.")}resolve(e){return new u(e[this.keymapIndex])}getName(){return"UnresolvedSwitchKeymapAction"}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],a.prototype,"keymapIndex",void 0),t.UnresolvedSwitchKeymapAction=a},"L/V9":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},LvDl:function(e,t,n){(function(e){var r;(function(){var i,o=200,l="Expected a function",u="__lodash_placeholder__",a=1,s=2,c=4,p=1,f=2,d=1,h=2,y=4,b=8,m=16,g=32,v=64,k=128,_=256,w=512,O=800,A=16,C=1/0,T=9007199254740991,x=17976931348623157e292,S=NaN,M=4294967295,E=M-1,P=M>>>1,I=[["ary",k],["bind",d],["bindKey",h],["curry",b],["curryRight",m],["flip",w],["partial",g],["partialRight",v],["rearg",_]],j="[object Arguments]",R="[object Array]",L="[object AsyncFunction]",N="[object Boolean]",D="[object Date]",U="[object DOMException]",F="[object Error]",K="[object Function]",B="[object GeneratorFunction]",V="[object Map]",G="[object Number]",H="[object Null]",$="[object Object]",z="[object Proxy]",Q="[object RegExp]",W="[object Set]",q="[object String]",J="[object Symbol]",Y="[object Undefined]",Z="[object WeakMap]",X="[object ArrayBuffer]",ee="[object DataView]",te="[object Float32Array]",ne="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",oe="[object Int32Array]",le="[object Uint8Array]",ue="[object Uint8ClampedArray]",ae="[object Uint16Array]",se="[object Uint32Array]",ce=/\b__p \+= '';/g,pe=/\b(__p \+=) '' \+/g,fe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,de=/&(?:amp|lt|gt|quot|#39);/g,he=/[&<>"']/g,ye=RegExp(de.source),be=RegExp(he.source),me=/<%-([\s\S]+?)%>/g,ge=/<%([\s\S]+?)%>/g,ve=/<%=([\s\S]+?)%>/g,ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_e=/^\w*$/,we=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(Oe.source),Ce=/^\s+|\s+$/g,Te=/^\s+/,xe=/\s+$/,Se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Me=/\{\n\/\* \[wrapped with (.+)\] \*/,Ee=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ie=/\\(\\)?/g,je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Re=/\w*$/,Le=/^[-+]0x[0-9a-f]+$/i,Ne=/^0b[01]+$/i,De=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Be=/($^)/,Ve=/['\n\r\u2028\u2029\\]/g,Ge="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",He="\\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="["+He+"]",ze="["+Ge+"]",Qe="\\d+",We="[a-z\\xdf-\\xf6\\xf8-\\xff]",qe="[^\\ud800-\\udfff"+He+Qe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Je="\\ud83c[\\udffb-\\udfff]",Ye="[^\\ud800-\\udfff]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Xe="[\\ud800-\\udbff][\\udc00-\\udfff]",et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",tt="(?:"+We+"|"+qe+")",nt="(?:"+et+"|"+qe+")",rt="(?:"+ze+"|"+Je+")?",it="[\\ufe0e\\ufe0f]?"+rt+"(?:\\u200d(?:"+[Ye,Ze,Xe].join("|")+")[\\ufe0e\\ufe0f]?"+rt+")*",ot="(?:"+["[\\u2700-\\u27bf]",Ze,Xe].join("|")+")"+it,lt="(?:"+[Ye+ze+"?",ze,Ze,Xe,"[\\ud800-\\udfff]"].join("|")+")",ut=RegExp("['\u2019]","g"),at=RegExp(ze,"g"),st=RegExp(Je+"(?="+Je+")|"+lt+it,"g"),ct=RegExp([et+"?"+We+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[$e,et,"$"].join("|")+")",nt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[$e,et+tt,"$"].join("|")+")",et+"?"+tt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",et+"+(?:['\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_])",Qe,ot].join("|"),"g"),pt=RegExp("[\\u200d\\ud800-\\udfff"+Ge+"\\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 ]/,dt=["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"],ht=-1,yt={};yt[te]=yt[ne]=yt[re]=yt[ie]=yt[oe]=yt[le]=yt[ue]=yt[ae]=yt[se]=!0,yt[j]=yt[R]=yt[X]=yt[N]=yt[ee]=yt[D]=yt[F]=yt[K]=yt[V]=yt[G]=yt[$]=yt[Q]=yt[W]=yt[q]=yt[Z]=!1;var bt={};bt[j]=bt[R]=bt[X]=bt[ee]=bt[N]=bt[D]=bt[te]=bt[ne]=bt[re]=bt[ie]=bt[oe]=bt[V]=bt[G]=bt[$]=bt[Q]=bt[W]=bt[q]=bt[J]=bt[le]=bt[ue]=bt[ae]=bt[se]=!0,bt[F]=bt[K]=bt[Z]=!1;var mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gt=parseFloat,vt=parseInt,kt="object"==typeof global&&global&&global.Object===Object&&global,_t="object"==typeof self&&self&&self.Object===Object&&self,wt=kt||_t||Function("return this")(),Ot=t&&!t.nodeType&&t,At=Ot&&"object"==typeof e&&e&&!e.nodeType&&e,Ct=At&&At.exports===Ot,Tt=Ct&&kt.process,xt=function(){try{return At&&At.require&&At.require("util").types||Tt&&Tt.binding&&Tt.binding("util")}catch(e){}}(),St=xt&&xt.isArrayBuffer,Mt=xt&&xt.isDate,Et=xt&&xt.isMap,Pt=xt&&xt.isRegExp,It=xt&&xt.isSet,jt=xt&&xt.isTypedArray;function Rt(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 Lt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var l=e[i];t(r,l,n(l),e)}return r}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var l=e[n];t(l,n,e)&&(o[i++]=l)}return o}function Ft(e,t){return!(null==e||!e.length)&&qt(e,t,0)>-1}function Kt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Bt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Vt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Gt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Ht(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Xt("length");function Qt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Wt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function qt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Wt(e,Yt,n)}function Jt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Yt(e){return e!=e}function Zt(e,t){var n=null==e?0:e.length;return n?nn(e,t)/n:S}function Xt(e){return function(t){return null==t?i:t[e]}}function en(e){return function(t){return null==e?i:e[t]}}function tn(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function nn(e,t){for(var n,r=-1,o=e.length;++r<o;){var l=t(e[r]);l!==i&&(n=n===i?l:n+l)}return n}function rn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function on(e){return function(t){return e(t)}}function ln(e,t){return Bt(t,function(t){return e[t]})}function un(e,t){return e.has(t)}function an(e,t){for(var n=-1,r=e.length;++n<r&&qt(t,e[n],0)>-1;);return n}function sn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}var cn=en({"\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=en({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function fn(e){return"\\"+mt[e]}function dn(e){return pt.test(e)}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function yn(e,t){return function(n){return e(t(n))}}function bn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var l=e[n];l!==t&&l!==u||(e[n]=u,o[i++]=n)}return o}function mn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function gn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function vn(e){return dn(e)?function(e){for(var t=st.lastIndex=0;st.test(e);)++t;return t}(e):zt(e)}function kn(e){return dn(e)?function(e){return e.match(st)||[]}(e):function(e){return e.split("")}(e)}var _n=en({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),wn=function e(t){var n,r=(t=null==t?wt:wn.defaults(wt.Object(),t,wn.pick(wt,dt))).Array,Ge=t.Date,He=t.Error,$e=t.Function,ze=t.Math,Qe=t.Object,We=t.RegExp,qe=t.String,Je=t.TypeError,Ye=r.prototype,Ze=Qe.prototype,Xe=t["__core-js_shared__"],et=$e.prototype.toString,tt=Ze.hasOwnProperty,nt=0,rt=(n=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",it=Ze.toString,ot=et.call(Qe),lt=wt._,st=We("^"+et.call(tt).replace(Oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pt=Ct?t.Buffer:i,mt=t.Symbol,kt=t.Uint8Array,_t=pt?pt.allocUnsafe:i,Ot=yn(Qe.getPrototypeOf,Qe),At=Qe.create,Tt=Ze.propertyIsEnumerable,xt=Ye.splice,zt=mt?mt.isConcatSpreadable:i,en=mt?mt.iterator:i,On=mt?mt.toStringTag:i,An=function(){try{var e=Oo(Qe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Cn=t.clearTimeout!==wt.clearTimeout&&t.clearTimeout,Tn=Ge&&Ge.now!==wt.Date.now&&Ge.now,xn=t.setTimeout!==wt.setTimeout&&t.setTimeout,Sn=ze.ceil,Mn=ze.floor,En=Qe.getOwnPropertySymbols,Pn=pt?pt.isBuffer:i,In=t.isFinite,jn=Ye.join,Rn=yn(Qe.keys,Qe),Ln=ze.max,Nn=ze.min,Dn=Ge.now,Un=t.parseInt,Fn=ze.random,Kn=Ye.reverse,Bn=Oo(t,"DataView"),Vn=Oo(t,"Map"),Gn=Oo(t,"Promise"),Hn=Oo(t,"Set"),$n=Oo(t,"WeakMap"),zn=Oo(Qe,"create"),Qn=$n&&new $n,Wn={},qn=qo(Bn),Jn=qo(Vn),Yn=qo(Gn),Zn=qo(Hn),Xn=qo($n),er=mt?mt.prototype:i,tr=er?er.valueOf:i,nr=er?er.toString:i;function rr(e){if(fu(e)&&!tu(e)&&!(e instanceof ur)){if(e instanceof lr)return e;if(tt.call(e,"__wrapped__"))return Jo(e)}return new lr(e)}var ir=function(){function e(){}return function(t){if(!pu(t))return{};if(At)return At(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function or(){}function lr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function ur(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=M,this.__views__=[]}function ar(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function sr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function cr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new cr;++t<n;)this.add(e[t])}function fr(e){var t=this.__data__=new sr(e);this.size=t.size}function dr(e,t){var n=tu(e),r=!n&&eu(e),i=!n&&!r&&ou(e),o=!n&&!r&&!i&&ku(e),l=n||r||i||o,u=l?rn(e.length,qe):[],a=u.length;for(var s in e)!t&&!tt.call(e,s)||l&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Eo(s,a))||u.push(s);return u}function hr(e){var t=e.length;return t?e[ai(0,t-1)]:i}function yr(e,t,n){(n===i||Yl(e[t],n))&&(n!==i||t in e)||kr(e,t,n)}function br(e,t,n){var r=e[t];tt.call(e,t)&&Yl(r,n)&&(n!==i||t in e)||kr(e,t,n)}function mr(e,t){for(var n=e.length;n--;)if(Yl(e[n][0],t))return n;return-1}function gr(e,t,n,r){return xr(e,function(e,i,o){t(r,e,n(e),o)}),r}function vr(e,t){return e&&Bi(t,Vu(t),e)}function kr(e,t,n){"__proto__"==t&&An?An(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function _r(e,t){for(var n=-1,o=t.length,l=r(o),u=null==e;++n<o;)l[n]=u?i:Du(e,t[n]);return l}function wr(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Or(e,t,n,r,o,l){var u,p=t&a,f=t&s,d=t&c;if(n&&(u=o?n(e,r,o,l):n(e)),u!==i)return u;if(!pu(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),!p)return Ki(e,u)}else{var y=To(e),b=y==K||y==B;if(ou(e))return Ri(e,p);if(y==$||y==j||b&&!o){if(u=f||b?{}:So(e),!p)return f?function(e,t){return Bi(e,Co(e),t)}(e,function(t,n){return t&&Bi(e,Gu(e),t)}(u)):function(e,t){return Bi(e,Ao(e),t)}(e,vr(u,e))}else{if(!bt[y])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case X:return Li(e);case N:case D:return new r(+e);case ee:return function(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case te:case ne:case re:case ie:case oe:case le:case ue:case ae:case se:return Ni(e,n);case V:return new r;case G:case q:return new r(e);case Q:return function(e){var t=new e.constructor(e.source,Re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case W:return new r;case J:return tr?Qe(tr.call(e)):{}}}(e,y,p)}}l||(l=new fr);var m=l.get(e);if(m)return m;if(l.set(e,u),mu(e))return e.forEach(function(r){u.add(Or(r,t,n,r,e,l))}),u;if(du(e))return e.forEach(function(r,i){u.set(i,Or(r,t,n,i,e,l))}),u;var g=h?i:(d?f?bo:yo:f?Gu:Vu)(e);return Nt(g||e,function(r,i){g&&(r=e[i=r]),br(u,i,Or(r,t,n,i,e,l))}),u}function Ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Qe(e);r--;){var o=n[r],l=e[o];if(l===i&&!(o in e)||!(0,t[o])(l))return!1}return!0}function Cr(e,t,n){if("function"!=typeof e)throw new Je(l);return Vo(function(){e.apply(i,n)},t)}function Tr(e,t,n,r){var i=-1,l=Ft,u=!0,a=e.length,s=[],c=t.length;if(!a)return s;n&&(t=Bt(t,on(n))),r?(l=Kt,u=!1):t.length>=o&&(l=un,u=!1,t=new pr(t));e:for(;++i<a;){var p=e[i],f=null==n?p:n(p);if(p=r||0!==p?p:0,u&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;s.push(p)}else l(t,f,r)||s.push(p)}return s}rr.templateSettings={escape:me,evaluate:ge,interpolate:ve,variable:"",imports:{_:rr}},(rr.prototype=or.prototype).constructor=rr,(lr.prototype=ir(or.prototype)).constructor=lr,(ur.prototype=ir(or.prototype)).constructor=ur,ar.prototype.clear=function(){this.__data__=zn?zn(null):{},this.size=0},ar.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ar.prototype.get=function(e){var t=this.__data__;if(zn){var n=t[e];return"__lodash_hash_undefined__"===n?i:n}return tt.call(t,e)?t[e]:i},ar.prototype.has=function(e){var t=this.__data__;return zn?t[e]!==i:tt.call(t,e)},ar.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=zn&&t===i?"__lodash_hash_undefined__":t,this},sr.prototype.clear=function(){this.__data__=[],this.size=0},sr.prototype.delete=function(e){var t=this.__data__,n=mr(t,e);return!(n<0||(n==t.length-1?t.pop():xt.call(t,n,1),--this.size,0))},sr.prototype.get=function(e){var t=this.__data__,n=mr(t,e);return n<0?i:t[n][1]},sr.prototype.has=function(e){return mr(this.__data__,e)>-1},sr.prototype.set=function(e,t){var n=this.__data__,r=mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},cr.prototype.clear=function(){this.size=0,this.__data__={hash:new ar,map:new(Vn||sr),string:new ar}},cr.prototype.delete=function(e){var t=_o(this,e).delete(e);return this.size-=t?1:0,t},cr.prototype.get=function(e){return _o(this,e).get(e)},cr.prototype.has=function(e){return _o(this,e).has(e)},cr.prototype.set=function(e,t){var n=_o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},pr.prototype.add=pr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},pr.prototype.has=function(e){return this.__data__.has(e)},fr.prototype.clear=function(){this.__data__=new sr,this.size=0},fr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},fr.prototype.get=function(e){return this.__data__.get(e)},fr.prototype.has=function(e){return this.__data__.has(e)},fr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof sr){var r=n.__data__;if(!Vn||r.length<o-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new cr(r)}return n.set(e,t),this.size=n.size,this};var xr=Hi(Lr),Sr=Hi(Nr,!0);function Mr(e,t){var n=!0;return xr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Er(e,t,n){for(var r=-1,o=e.length;++r<o;){var l=e[r],u=t(l);if(null!=u&&(a===i?u==u&&!vu(u):n(u,a)))var a=u,s=l}return s}function Pr(e,t){var n=[];return xr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ir(e,t,n,r,i){var o=-1,l=e.length;for(n||(n=Mo),i||(i=[]);++o<l;){var u=e[o];t>0&&n(u)?t>1?Ir(u,t-1,n,r,i):Vt(i,u):r||(i[i.length]=u)}return i}var jr=$i(),Rr=$i(!0);function Lr(e,t){return e&&jr(e,t,Vu)}function Nr(e,t){return e&&Rr(e,t,Vu)}function Dr(e,t){return Ut(t,function(t){return au(e[t])})}function Ur(e,t){for(var n=0,r=(t=Ei(t,e)).length;null!=e&&n<r;)e=e[Wo(t[n++])];return n&&n==r?e:i}function Fr(e,t,n){var r=t(e);return tu(e)?r:Vt(r,n(e))}function Kr(e){return null==e?e===i?Y:H:On&&On in Qe(e)?function(e){var t=tt.call(e,On),n=e[On];try{e[On]=i;var r=!0}catch(l){}var o=it.call(e);return r&&(t?e[On]=n:delete e[On]),o}(e):function(e){return it.call(e)}(e)}function Br(e,t){return e>t}function Vr(e,t){return null!=e&&tt.call(e,t)}function Gr(e,t){return null!=e&&t in Qe(e)}function Hr(e,t,n){for(var o=n?Kt:Ft,l=e[0].length,u=e.length,a=u,s=r(u),c=1/0,p=[];a--;){var f=e[a];a&&t&&(f=Bt(f,on(t))),c=Nn(f.length,c),s[a]=!n&&(t||l>=120&&f.length>=120)?new pr(a&&f):i}f=e[0];var d=-1,h=s[0];e:for(;++d<l&&p.length<c;){var y=f[d],b=t?t(y):y;if(y=n||0!==y?y:0,!(h?un(h,b):o(p,b,n))){for(a=u;--a;){var m=s[a];if(!(m?un(m,b):o(e[a],b,n)))continue e}h&&h.push(b),p.push(y)}}return p}function $r(e,t,n){var r=null==(e=Fo(e,t=Ei(t,e)))?e:e[Wo(ul(t))];return null==r?i:Rt(r,e,n)}function zr(e){return fu(e)&&Kr(e)==j}function Qr(e,t,n,r,o){return e===t||(null==e||null==t||!fu(e)&&!fu(t)?e!=e&&t!=t:function(e,t,n,r,o,l){var u=tu(e),a=tu(t),s=u?R:To(e),c=a?R:To(t),d=(s=s==j?$:s)==$,h=(c=c==j?$:c)==$,y=s==c;if(y&&ou(e)){if(!ou(t))return!1;u=!0,d=!1}if(y&&!d)return l||(l=new fr),u||ku(e)?fo(e,t,n,r,o,l):function(e,t,n,r,i,o,l){switch(s){case ee:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case X:return!(e.byteLength!=t.byteLength||!o(new kt(e),new kt(t)));case N:case D:case G:return Yl(+e,+t);case F:return e.name==t.name&&e.message==t.message;case Q:case q:return e==t+"";case V:var u=hn;case W:if(u||(u=mn),e.size!=t.size&&!(r&p))return!1;var a=l.get(e);if(a)return a==t;r|=f,l.set(e,t);var c=fo(u(e),u(t),r,i,o,l);return l.delete(e),c;case J:if(tr)return tr.call(e)==tr.call(t)}return!1}(e,t,0,n,r,o,l);if(!(n&p)){var b=d&&tt.call(e,"__wrapped__"),m=h&&tt.call(t,"__wrapped__");if(b||m){var g=b?e.value():e,v=m?t.value():t;return l||(l=new fr),o(g,v,n,r,l)}}return!!y&&(l||(l=new fr),function(e,t,n,r,o,l){var u=n&p,a=yo(e),s=a.length;if(s!=yo(t).length&&!u)return!1;for(var c=s;c--;){var f=a[c];if(!(u?f in t:tt.call(t,f)))return!1}var d=l.get(e);if(d&&l.get(t))return d==t;var h=!0;l.set(e,t),l.set(t,e);for(var y=u;++c<s;){var b=e[f=a[c]],m=t[f];if(r)var g=u?r(m,b,f,t,e,l):r(b,m,f,e,t,l);if(!(g===i?b===m||o(b,m,n,r,l):g)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var v=e.constructor,k=t.constructor;v!=k&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof k&&k instanceof k)&&(h=!1)}return l.delete(e),l.delete(t),h}(e,t,n,r,o,l))}(e,t,n,r,Qr,o))}function Wr(e,t,n,r){var o=n.length,l=o,u=!r;if(null==e)return!l;for(e=Qe(e);o--;){var a=n[o];if(u&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<l;){var s=(a=n[o])[0],c=e[s],d=a[1];if(u&&a[2]){if(c===i&&!(s in e))return!1}else{var h=new fr;if(r)var y=r(c,d,s,e,t,h);if(!(y===i?Qr(d,c,p|f,r,h):y))return!1}}return!0}function qr(e){return!(!pu(e)||(t=e,rt&&rt in t))&&(au(e)?st:De).test(qo(e));var t}function Jr(e){return"function"==typeof e?e:null==e?ha:"object"==typeof e?tu(e)?ti(e[0],e[1]):ei(e):Oa(e)}function Yr(e){if(!Lo(e))return Rn(e);var t=[];for(var n in Qe(e))tt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Zr(e,t){return e<t}function Xr(e,t){var n=-1,i=ru(e)?r(e.length):[];return xr(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function ei(e){var t=wo(e);return 1==t.length&&t[0][2]?Do(t[0][0],t[0][1]):function(n){return n===e||Wr(n,e,t)}}function ti(e,t){return Io(e)&&No(t)?Do(Wo(e),t):function(n){var r=Du(n,e);return r===i&&r===t?Uu(n,e):Qr(t,r,p|f)}}function ni(e,t,n,r,o){e!==t&&jr(t,function(l,u){if(pu(l))o||(o=new fr),function(e,t,n,r,o,l,u){var a=Ko(e,n),s=Ko(t,n),c=u.get(s);if(c)yr(e,n,c);else{var p=l?l(a,s,n+"",e,t,u):i,f=p===i;if(f){var d=tu(s),h=!d&&ou(s),y=!d&&!h&&ku(s);p=s,d||h||y?tu(a)?p=a:iu(a)?p=Ki(a):h?(f=!1,p=Ri(s,!0)):y?(f=!1,p=Ni(s,!0)):p=[]:yu(s)||eu(s)?(p=a,eu(a)?p=Su(a):pu(a)&&!au(a)||(p=So(s))):f=!1}f&&(u.set(s,p),o(p,s,r,l,u),u.delete(s)),yr(e,n,p)}}(e,t,u,n,ni,r,o);else{var a=r?r(Ko(e,u),l,u+"",e,t,o):i;a===i&&(a=l),yr(e,u,a)}},Gu)}function ri(e,t){var n=e.length;if(n)return Eo(t+=t<0?n:0,n)?e[t]:i}function ii(e,t,n){var r=-1;return t=Bt(t.length?t:[ha],on(ko())),function(e,t){var r=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,l=i.length,u=n.length;++r<l;){var a=Di(i[r],o[r]);if(a)return r>=u?a:a*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(Xr(e,function(e,n,i){return{criteria:Bt(t,function(t){return t(e)}),index:++r,value:e}}))}function oi(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var l=t[r],u=Ur(e,l);n(u,l)&&pi(o,Ei(l,e),u)}return o}function li(e,t,n,r){var i=r?Jt:qt,o=-1,l=t.length,u=e;for(e===t&&(t=Ki(t)),n&&(u=Bt(e,on(n)));++o<l;)for(var a=0,s=t[o],c=n?n(s):s;(a=i(u,c,a,r))>-1;)u!==e&&xt.call(u,a,1),xt.call(e,a,1);return e}function ui(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Eo(i)?xt.call(e,i,1):wi(e,i)}}return e}function ai(e,t){return e+Mn(Fn()*(t-e+1))}function si(e,t){var n="";if(!e||t<1||t>T)return n;do{t%2&&(n+=e),(t=Mn(t/2))&&(e+=e)}while(t);return n}function ci(e,t){return Go(Uo(e,t,ha),e+"")}function pi(e,t,n,r){if(!pu(e))return e;for(var o=-1,l=(t=Ei(t,e)).length,u=l-1,a=e;null!=a&&++o<l;){var s=Wo(t[o]),c=n;if(o!=u){var p=a[s];(c=r?r(p,s,a):i)===i&&(c=pu(p)?p:Eo(t[o+1])?[]:{})}br(a,s,c),a=a[s]}return e}var fi=Qn?function(e,t){return Qn.set(e,t),e}:ha,di=An?function(e,t){return An(e,"toString",{configurable:!0,enumerable:!1,value:pa(t),writable:!0})}:ha;function hi(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=r(o);++i<o;)l[i]=e[i+t];return l}function yi(e,t){var n;return xr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function bi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=P){for(;r<i;){var o=r+i>>>1,l=e[o];null!==l&&!vu(l)&&(n?l<=t:l<t)?r=o+1:i=o}return i}return mi(e,t,ha,n)}function mi(e,t,n,r){t=n(t);for(var o=0,l=null==e?0:e.length,u=t!=t,a=null===t,s=vu(t),c=t===i;o<l;){var p=Mn((o+l)/2),f=n(e[p]),d=f!==i,h=null===f,y=f==f,b=vu(f);if(u)var m=r||y;else m=c?y&&(r||d):a?y&&d&&(r||!h):s?y&&d&&!h&&(r||!b):!h&&!b&&(r?f<=t:f<t);m?o=p+1:l=p}return Nn(l,E)}function gi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var l=e[n],u=t?t(l):l;if(!n||!Yl(u,a)){var a=u;o[i++]=0===l?0:l}}return o}function vi(e){return"number"==typeof e?e:vu(e)?S:+e}function ki(e){if("string"==typeof e)return e;if(tu(e))return Bt(e,ki)+"";if(vu(e))return nr?nr.call(e):"";var t=e+"";return"0"==t&&1/e==-C?"-0":t}function _i(e,t,n){var r=-1,i=Ft,l=e.length,u=!0,a=[],s=a;if(n)u=!1,i=Kt;else if(l>=o){var c=t?null:lo(e);if(c)return mn(c);u=!1,i=un,s=new pr}else s=t?[]:a;e:for(;++r<l;){var p=e[r],f=t?t(p):p;if(p=n||0!==p?p:0,u&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),a.push(p)}else i(s,f,n)||(s!==a&&s.push(f),a.push(p))}return a}function wi(e,t){return null==(e=Fo(e,t=Ei(t,e)))||delete e[Wo(ul(t))]}function Oi(e,t,n,r){return pi(e,t,n(Ur(e,t)),r)}function Ai(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?hi(e,r?0:o,r?o+1:i):hi(e,r?o+1:0,r?i:o)}function Ci(e,t){var n=e;return n instanceof ur&&(n=n.value()),Gt(t,function(e,t){return t.func.apply(t.thisArg,Vt([e],t.args))},n)}function Ti(e,t,n){var i=e.length;if(i<2)return i?_i(e[0]):[];for(var o=-1,l=r(i);++o<i;)for(var u=e[o],a=-1;++a<i;)a!=o&&(l[o]=Tr(l[o]||u,e[a],t,n));return _i(Ir(l,1),t,n)}function xi(e,t,n){for(var r=-1,o=e.length,l=t.length,u={};++r<o;)n(u,e[r],r<l?t[r]:i);return u}function Si(e){return iu(e)?e:[]}function Mi(e){return"function"==typeof e?e:ha}function Ei(e,t){return tu(e)?e:Io(e,t)?[e]:Qo(Mu(e))}var Pi=ci;function Ii(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:hi(e,t,n)}var ji=Cn||function(e){return wt.clearTimeout(e)};function Ri(e,t){if(t)return e.slice();var n=e.length,r=_t?_t(n):new e.constructor(n);return e.copy(r),r}function Li(e){var t=new e.constructor(e.byteLength);return new kt(t).set(new kt(e)),t}function Ni(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Di(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,l=vu(e),u=t!==i,a=null===t,s=t==t,c=vu(t);if(!a&&!c&&!l&&e>t||l&&u&&s&&!a&&!c||r&&u&&s||!n&&s||!o)return 1;if(!r&&!l&&!c&&e<t||c&&n&&o&&!r&&!l||a&&n&&o||!u&&o||!s)return-1}return 0}function Ui(e,t,n,i){for(var o=-1,l=e.length,u=n.length,a=-1,s=t.length,c=Ln(l-u,0),p=r(s+c),f=!i;++a<s;)p[a]=t[a];for(;++o<u;)(f||o<l)&&(p[n[o]]=e[o]);for(;c--;)p[a++]=e[o++];return p}function Fi(e,t,n,i){for(var o=-1,l=e.length,u=-1,a=n.length,s=-1,c=t.length,p=Ln(l-a,0),f=r(p+c),d=!i;++o<p;)f[o]=e[o];for(var h=o;++s<c;)f[h+s]=t[s];for(;++u<a;)(d||o<l)&&(f[h+n[u]]=e[o++]);return f}function Ki(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Bi(e,t,n,r){var o=!n;n||(n={});for(var l=-1,u=t.length;++l<u;){var a=t[l],s=r?r(n[a],e[a],a,n,e):i;s===i&&(s=e[a]),o?kr(n,a,s):br(n,a,s)}return n}function Vi(e,t){return function(n,r){var i=tu(n)?Lt:gr,o=t?t():{};return i(n,e,ko(r,2),o)}}function Gi(e){return ci(function(t,n){var r=-1,o=n.length,l=o>1?n[o-1]:i,u=o>2?n[2]:i;for(l=e.length>3&&"function"==typeof l?(o--,l):i,u&&Po(n[0],n[1],u)&&(l=o<3?i:l,o=1),t=Qe(t);++r<o;){var a=n[r];a&&e(t,a,r,l)}return t})}function Hi(e,t){return function(n,r){if(null==n)return n;if(!ru(n))return e(n,r);for(var i=n.length,o=t?i:-1,l=Qe(n);(t?o--:++o<i)&&!1!==r(l[o],o,l););return n}}function $i(e){return function(t,n,r){for(var i=-1,o=Qe(t),l=r(t),u=l.length;u--;){var a=l[e?u:++i];if(!1===n(o[a],a,o))break}return t}}function zi(e){return function(t){var n=dn(t=Mu(t))?kn(t):i,r=n?n[0]:t.charAt(0),o=n?Ii(n,1).join(""):t.slice(1);return r[e]()+o}}function Qi(e){return function(t){return Gt(aa(ea(t).replace(ut,"")),e,"")}}function Wi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ir(e.prototype),r=e.apply(n,t);return pu(r)?r:n}}function qi(e){return function(t,n,r){var o=Qe(t);if(!ru(t)){var l=ko(n,3);t=Vu(t),n=function(e){return l(o[e],e,o)}}var u=e(t,n,r);return u>-1?o[l?t[u]:u]:i}}function Ji(e){return ho(function(t){var n=t.length,r=n,o=lr.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Je(l);if(o&&!a&&"wrapper"==go(u))var a=new lr([],!0)}for(r=a?r:n;++r<n;){var s=go(u=t[r]),c="wrapper"==s?mo(u):i;a=c&&jo(c[0])&&c[1]==(k|b|g|_)&&!c[4].length&&1==c[9]?a[go(c[0])].apply(a,c[3]):1==u.length&&jo(u)?a[s]():a.thru(u)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&tu(r))return a.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function Yi(e,t,n,o,l,u,a,s,c,p){var f=t&k,y=t&d,g=t&h,v=t&(b|m),_=t&w,O=g?i:Wi(e);return function d(){for(var h=arguments.length,b=r(h),m=h;m--;)b[m]=arguments[m];if(v)var k=vo(d),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,k);if(o&&(b=Ui(b,o,l,v)),u&&(b=Fi(b,u,a,v)),h-=w,v&&h<p){var A=bn(b,k);return io(e,t,Yi,d.placeholder,n,b,A,s,c,p-h)}var C=y?n:this,T=g?C[e]:e;return h=b.length,s?b=function(e,t){for(var n=e.length,r=Nn(t.length,n),o=Ki(e);r--;){var l=t[r];e[r]=Eo(l,n)?o[l]:i}return e}(b,s):_&&h>1&&b.reverse(),f&&c<h&&(b.length=c),this&&this!==wt&&this instanceof d&&(T=O||Wi(T)),T.apply(C,b)}}function Zi(e,t){return function(n,r){return function(e,t,n,r){return Lr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function Xi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ki(n),r=ki(r)):(n=vi(n),r=vi(r)),o=e(n,r)}return o}}function eo(e){return ho(function(t){return t=Bt(t,on(ko())),ci(function(n){var r=this;return e(t,function(e){return Rt(e,r,n)})})})}function to(e,t){var n=(t=t===i?" ":ki(t)).length;if(n<2)return n?si(t,e):t;var r=si(t,Sn(e/vn(t)));return dn(t)?Ii(kn(r),0,e).join(""):r.slice(0,e)}function no(e){return function(t,n,o){return o&&"number"!=typeof o&&Po(t,n,o)&&(n=o=i),t=Au(t),n===i?(n=t,t=0):n=Au(n),function(e,t,n,i){for(var o=-1,l=Ln(Sn((t-e)/(n||1)),0),u=r(l);l--;)u[i?l:++o]=e,e+=n;return u}(t,n,o=o===i?t<n?1:-1:Au(o),e)}}function ro(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=xu(t),n=xu(n)),e(t,n)}}function io(e,t,n,r,o,l,u,a,s,c){var p=t&b;t|=p?g:v,(t&=~(p?v:g))&y||(t&=~(d|h));var f=[e,t,o,p?l:i,p?u:i,p?i:l,p?i:u,a,s,c],m=n.apply(i,f);return jo(e)&&Bo(m,f),m.placeholder=r,Ho(m,e,t)}function oo(e){var t=ze[e];return function(e,n){if(e=xu(e),n=null==n?0:Nn(Cu(n),292)){var r=(Mu(e)+"e").split("e");return+((r=(Mu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var lo=Hn&&1/mn(new Hn([,-0]))[1]==C?function(e){return new Hn(e)}:va;function uo(e){return function(t){var n=To(t);return n==V?hn(t):n==W?gn(t):function(e,t){return Bt(t,function(t){return[t,e[t]]})}(t,e(t))}}function ao(e,t,n,o,a,s,c,p){var f=t&h;if(!f&&"function"!=typeof e)throw new Je(l);var w=o?o.length:0;if(w||(t&=~(g|v),o=a=i),c=c===i?c:Ln(Cu(c),0),p=p===i?p:Cu(p),w-=a?a.length:0,t&v){var O=o,A=a;o=a=i}var C=f?i:mo(e),T=[e,t,n,o,a,O,A,s,c,p];if(C&&function(e,t){var n=e[1],r=t[1],i=n|r;if(!(i<(d|h|k)||r==k&&n==b||r==k&&n==_&&e[7].length<=t[8]||r==(k|_)&&t[7].length<=t[8]&&n==b))return e;r&d&&(e[2]=t[2],i|=n&d?0:y);var o=t[3];if(o){var l=e[3];e[3]=l?Ui(l,o,t[4]):o,e[4]=l?bn(e[3],u):t[4]}(o=t[5])&&(e[5]=(l=e[5])?Fi(l,o,t[6]):o,e[6]=l?bn(e[5],u):t[6]),(o=t[7])&&(e[7]=o),r&k&&(e[8]=null==e[8]?t[8]:Nn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(T,C),e=T[0],t=T[1],n=T[2],o=T[3],a=T[4],!(p=T[9]=T[9]===i?f?0:e.length:Ln(T[9]-w,0))&&t&(b|m)&&(t&=~(b|m)),t&&t!=d)x=t==b||t==m?function(e,t,n){var o=Wi(e);return function l(){for(var u=arguments.length,a=r(u),s=u,c=vo(l);s--;)a[s]=arguments[s];var p=u<3&&a[0]!==c&&a[u-1]!==c?[]:bn(a,c);return(u-=p.length)<n?io(e,t,Yi,l.placeholder,i,a,p,i,i,n-u):Rt(this&&this!==wt&&this instanceof l?o:e,this,a)}}(e,t,p):t!=g&&t!=(d|g)||a.length?Yi.apply(i,T):function(e,t,n,i){var o=t&d,l=Wi(e);return function t(){for(var u=-1,a=arguments.length,s=-1,c=i.length,p=r(c+a),f=this&&this!==wt&&this instanceof t?l:e;++s<c;)p[s]=i[s];for(;a--;)p[s++]=arguments[++u];return Rt(f,o?n:this,p)}}(e,t,n,o);else var x=function(e,t,n){var r=t&d,i=Wi(e);return function t(){return(this&&this!==wt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ho((C?fi:Bo)(x,T),e,t)}function so(e,t,n,r){return e===i||Yl(e,Ze[n])&&!tt.call(r,n)?t:e}function co(e,t,n,r,o,l){return pu(e)&&pu(t)&&(l.set(t,e),ni(e,t,i,co,l),l.delete(t)),e}function po(e){return yu(e)?i:e}function fo(e,t,n,r,o,l){var u=n&p,a=e.length,s=t.length;if(a!=s&&!(u&&s>a))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var d=-1,h=!0,y=n&f?new pr:i;for(l.set(e,t),l.set(t,e);++d<a;){var b=e[d],m=t[d];if(r)var g=u?r(m,b,d,t,e,l):r(b,m,d,e,t,l);if(g!==i){if(g)continue;h=!1;break}if(y){if(!$t(t,function(e,t){if(!un(y,t)&&(b===e||o(b,e,n,r,l)))return y.push(t)})){h=!1;break}}else if(b!==m&&!o(b,m,n,r,l)){h=!1;break}}return l.delete(e),l.delete(t),h}function ho(e){return Go(Uo(e,i,nl),e+"")}function yo(e){return Fr(e,Vu,Ao)}function bo(e){return Fr(e,Gu,Co)}var mo=Qn?function(e){return Qn.get(e)}:va;function go(e){for(var t=e.name+"",n=Wn[t],r=tt.call(Wn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function vo(e){return(tt.call(rr,"placeholder")?rr:e).placeholder}function ko(){var e=rr.iteratee||ya;return e=e===ya?Jr:e,arguments.length?e(arguments[0],arguments[1]):e}function _o(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function wo(e){for(var t=Vu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,No(i)]}return t}function Oo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return qr(n)?n:i}var Ao=En?function(e){return null==e?[]:(e=Qe(e),Ut(En(e),function(t){return Tt.call(e,t)}))}:Ta,Co=En?function(e){for(var t=[];e;)Vt(t,Ao(e)),e=Ot(e);return t}:Ta,To=Kr;function xo(e,t,n){for(var r=-1,i=(t=Ei(t,e)).length,o=!1;++r<i;){var l=Wo(t[r]);if(!(o=null!=e&&n(e,l)))break;e=e[l]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&cu(i)&&Eo(l,i)&&(tu(e)||eu(e))}function So(e){return"function"!=typeof e.constructor||Lo(e)?{}:ir(Ot(e))}function Mo(e){return tu(e)||eu(e)||!!(zt&&e&&e[zt])}function Eo(e,t){var n=typeof e;return!!(t=null==t?T:t)&&("number"==n||"symbol"!=n&&Fe.test(e))&&e>-1&&e%1==0&&e<t}function Po(e,t,n){if(!pu(n))return!1;var r=typeof t;return!!("number"==r?ru(n)&&Eo(t,n.length):"string"==r&&t in n)&&Yl(n[t],e)}function Io(e,t){if(tu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!vu(e))||_e.test(e)||!ke.test(e)||null!=t&&e in Qe(t)}function jo(e){var t=go(e),n=rr[t];if("function"!=typeof n||!(t in ur.prototype))return!1;if(e===n)return!0;var r=mo(n);return!!r&&e===r[0]}(Bn&&To(new Bn(new ArrayBuffer(1)))!=ee||Vn&&To(new Vn)!=V||Gn&&"[object Promise]"!=To(Gn.resolve())||Hn&&To(new Hn)!=W||$n&&To(new $n)!=Z)&&(To=function(e){var t=Kr(e),n=t==$?e.constructor:i,r=n?qo(n):"";if(r)switch(r){case qn:return ee;case Jn:return V;case Yn:return"[object Promise]";case Zn:return W;case Xn:return Z}return t});var Ro=Xe?au:xa;function Lo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ze)}function No(e){return e==e&&!pu(e)}function Do(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Qe(n))}}function Uo(e,t,n){return t=Ln(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,l=Ln(i.length-t,0),u=r(l);++o<l;)u[o]=i[t+o];o=-1;for(var a=r(t+1);++o<t;)a[o]=i[o];return a[t]=n(u),Rt(e,this,a)}}function Fo(e,t){return t.length<2?e:Ur(e,hi(t,0,-1))}function Ko(e,t){if("__proto__"!=t)return e[t]}var Bo=$o(fi),Vo=xn||function(e,t){return wt.setTimeout(e,t)},Go=$o(di);function Ho(e,t,n){var r=t+"";return Go(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Nt(I,function(n){var r="_."+n[0];t&n[1]&&!Ft(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Me);return t?t[1].split(Ee):[]}(r),n)))}function $o(e){var t=0,n=0;return function(){var r=Dn(),o=A-(r-n);if(n=r,o>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(i,arguments)}}function zo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var l=ai(n,o),u=e[l];e[l]=e[n],e[n]=u}return e.length=t,e}var Qo=function(e){var t=$l(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(we,function(e,n,r,i){t.push(r?i.replace(Ie,"$1"):n||e)}),t},function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}();function Wo(e){if("string"==typeof e||vu(e))return e;var t=e+"";return"0"==t&&1/e==-C?"-0":t}function qo(e){if(null!=e){try{return et.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Jo(e){if(e instanceof ur)return e.clone();var t=new lr(e.__wrapped__,e.__chain__);return t.__actions__=Ki(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Yo=ci(function(e,t){return iu(e)?Tr(e,Ir(t,1,iu,!0)):[]}),Zo=ci(function(e,t){var n=ul(t);return iu(n)&&(n=i),iu(e)?Tr(e,Ir(t,1,iu,!0),ko(n,2)):[]}),Xo=ci(function(e,t){var n=ul(t);return iu(n)&&(n=i),iu(e)?Tr(e,Ir(t,1,iu,!0),i,n):[]});function el(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Cu(n);return i<0&&(i=Ln(r+i,0)),Wt(e,ko(t,3),i)}function tl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Cu(n),o=n<0?Ln(r+o,0):Nn(o,r-1)),Wt(e,ko(t,3),o,!0)}function nl(e){return null!=e&&e.length?Ir(e,1):[]}function rl(e){return e&&e.length?e[0]:i}var il=ci(function(e){var t=Bt(e,Si);return t.length&&t[0]===e[0]?Hr(t):[]}),ol=ci(function(e){var t=ul(e),n=Bt(e,Si);return t===ul(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Hr(n,ko(t,2)):[]}),ll=ci(function(e){var t=ul(e),n=Bt(e,Si);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Hr(n,i,t):[]});function ul(e){var t=null==e?0:e.length;return t?e[t-1]:i}var al=ci(sl);function sl(e,t){return e&&e.length&&t&&t.length?li(e,t):e}var cl=ho(function(e,t){var n=null==e?0:e.length,r=_r(e,t);return ui(e,Bt(t,function(e){return Eo(e,n)?+e:e}).sort(Di)),r});function pl(e){return null==e?e:Kn.call(e)}var fl=ci(function(e){return _i(Ir(e,1,iu,!0))}),dl=ci(function(e){var t=ul(e);return iu(t)&&(t=i),_i(Ir(e,1,iu,!0),ko(t,2))}),hl=ci(function(e){var t=ul(e);return t="function"==typeof t?t:i,_i(Ir(e,1,iu,!0),i,t)});function yl(e){if(!e||!e.length)return[];var t=0;return e=Ut(e,function(e){if(iu(e))return t=Ln(e.length,t),!0}),rn(t,function(t){return Bt(e,Xt(t))})}function bl(e,t){if(!e||!e.length)return[];var n=yl(e);return null==t?n:Bt(n,function(e){return Rt(t,i,e)})}var ml=ci(function(e,t){return iu(e)?Tr(e,t):[]}),gl=ci(function(e){return Ti(Ut(e,iu))}),vl=ci(function(e){var t=ul(e);return iu(t)&&(t=i),Ti(Ut(e,iu),ko(t,2))}),kl=ci(function(e){var t=ul(e);return t="function"==typeof t?t:i,Ti(Ut(e,iu),i,t)}),_l=ci(yl),wl=ci(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,bl(e,n)});function Ol(e){var t=rr(e);return t.__chain__=!0,t}function Al(e,t){return t(e)}var Cl=ho(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return _r(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ur&&Eo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Al,args:[o],thisArg:i}),new lr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),Tl=Vi(function(e,t,n){tt.call(e,n)?++e[n]:kr(e,n,1)}),xl=qi(el),Sl=qi(tl);function Ml(e,t){return(tu(e)?Nt:xr)(e,ko(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}:Sr)(e,ko(t,3))}var Pl=Vi(function(e,t,n){tt.call(e,n)?e[n].push(t):kr(e,n,[t])}),Il=ci(function(e,t,n){var i=-1,o="function"==typeof t,l=ru(e)?r(e.length):[];return xr(e,function(e){l[++i]=o?Rt(t,e,n):$r(e,t,n)}),l}),jl=Vi(function(e,t,n){kr(e,n,t)});function Rl(e,t){return(tu(e)?Bt:Xr)(e,ko(t,3))}var Ll=Vi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Nl=ci(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Po(e,t[0],t[1])?t=[]:n>2&&Po(t[0],t[1],t[2])&&(t=[t[0]]),ii(e,Ir(t,1),[])}),Dl=Tn||function(){return wt.Date.now()};function Ul(e,t,n){return t=n?i:t,ao(e,k,i,i,i,i,t=e&&null==t?e.length:t)}function Fl(e,t){var n;if("function"!=typeof t)throw new Je(l);return e=Cu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Kl=ci(function(e,t,n){var r=d;if(n.length){var i=bn(n,vo(Kl));r|=g}return ao(e,r,t,n,i)}),Bl=ci(function(e,t,n){var r=d|h;if(n.length){var i=bn(n,vo(Bl));r|=g}return ao(t,r,e,n,i)});function Vl(e,t,n){var r,o,u,a,s,c,p=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new Je(l);function y(t){var n=r,l=o;return r=o=i,p=t,a=e.apply(l,n)}function b(e){var n=e-c;return c===i||n>=t||n<0||d&&e-p>=u}function m(){var e=Dl();if(b(e))return g(e);s=Vo(m,function(e){var n=t-(e-c);return d?Nn(n,u-(e-p)):n}(e))}function g(e){return s=i,h&&r?y(e):(r=o=i,a)}function v(){var e=Dl(),n=b(e);if(r=arguments,o=this,c=e,n){if(s===i)return function(e){return p=e,s=Vo(m,t),f?y(e):a}(c);if(d)return s=Vo(m,t),y(c)}return s===i&&(s=Vo(m,t)),a}return t=xu(t)||0,pu(n)&&(f=!!n.leading,u=(d="maxWait"in n)?Ln(xu(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),v.cancel=function(){s!==i&&ji(s),p=0,r=c=o=s=i},v.flush=function(){return s===i?a:g(Dl())},v}var Gl=ci(function(e,t){return Cr(e,1,t)}),Hl=ci(function(e,t,n){return Cr(e,xu(t)||0,n)});function $l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Je(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var l=e.apply(this,r);return n.cache=o.set(i,l)||o,l};return n.cache=new($l.Cache||cr),n}function zl(e){if("function"!=typeof e)throw new Je(l);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)}}$l.Cache=cr;var Ql=Pi(function(e,t){var n=(t=1==t.length&&tu(t[0])?Bt(t[0],on(ko())):Bt(Ir(t,1),on(ko()))).length;return ci(function(r){for(var i=-1,o=Nn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Rt(e,this,r)})}),Wl=ci(function(e,t){var n=bn(t,vo(Wl));return ao(e,g,i,t,n)}),ql=ci(function(e,t){var n=bn(t,vo(ql));return ao(e,v,i,t,n)}),Jl=ho(function(e,t){return ao(e,_,i,i,i,t)});function Yl(e,t){return e===t||e!=e&&t!=t}var Zl=ro(Br),Xl=ro(function(e,t){return e>=t}),eu=zr(function(){return arguments}())?zr:function(e){return fu(e)&&tt.call(e,"callee")&&!Tt.call(e,"callee")},tu=r.isArray,nu=St?on(St):function(e){return fu(e)&&Kr(e)==X};function ru(e){return null!=e&&cu(e.length)&&!au(e)}function iu(e){return fu(e)&&ru(e)}var ou=Pn||xa,lu=Mt?on(Mt):function(e){return fu(e)&&Kr(e)==D};function uu(e){if(!fu(e))return!1;var t=Kr(e);return t==F||t==U||"string"==typeof e.message&&"string"==typeof e.name&&!yu(e)}function au(e){if(!pu(e))return!1;var t=Kr(e);return t==K||t==B||t==L||t==z}function su(e){return"number"==typeof e&&e==Cu(e)}function cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=T}function pu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function fu(e){return null!=e&&"object"==typeof e}var du=Et?on(Et):function(e){return fu(e)&&To(e)==V};function hu(e){return"number"==typeof e||fu(e)&&Kr(e)==G}function yu(e){if(!fu(e)||Kr(e)!=$)return!1;var t=Ot(e);if(null===t)return!0;var n=tt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&et.call(n)==ot}var bu=Pt?on(Pt):function(e){return fu(e)&&Kr(e)==Q},mu=It?on(It):function(e){return fu(e)&&To(e)==W};function gu(e){return"string"==typeof e||!tu(e)&&fu(e)&&Kr(e)==q}function vu(e){return"symbol"==typeof e||fu(e)&&Kr(e)==J}var ku=jt?on(jt):function(e){return fu(e)&&cu(e.length)&&!!yt[Kr(e)]},_u=ro(Zr),wu=ro(function(e,t){return e<=t});function Ou(e){if(!e)return[];if(ru(e))return gu(e)?kn(e):Ki(e);if(en&&e[en])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[en]());var t=To(e);return(t==V?hn:t==W?mn:Yu)(e)}function Au(e){return e?(e=xu(e))===C||e===-C?(e<0?-1:1)*x:e==e?e:0:0===e?e:0}function Cu(e){var t=Au(e),n=t%1;return t==t?n?t-n:t:0}function Tu(e){return e?wr(Cu(e),0,M):0}function xu(e){if("number"==typeof e)return e;if(vu(e))return S;if(pu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var n=Ne.test(e);return n||Ue.test(e)?vt(e.slice(2),n?2:8):Le.test(e)?S:+e}function Su(e){return Bi(e,Gu(e))}function Mu(e){return null==e?"":ki(e)}var Eu=Gi(function(e,t){if(Lo(t)||ru(t))Bi(t,Vu(t),e);else for(var n in t)tt.call(t,n)&&br(e,n,t[n])}),Pu=Gi(function(e,t){Bi(t,Gu(t),e)}),Iu=Gi(function(e,t,n,r){Bi(t,Gu(t),e,r)}),ju=Gi(function(e,t,n,r){Bi(t,Vu(t),e,r)}),Ru=ho(_r),Lu=ci(function(e,t){e=Qe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Po(t[0],t[1],o)&&(r=1);++n<r;)for(var l=t[n],u=Gu(l),a=-1,s=u.length;++a<s;){var c=u[a],p=e[c];(p===i||Yl(p,Ze[c])&&!tt.call(e,c))&&(e[c]=l[c])}return e}),Nu=ci(function(e){return e.push(i,co),Rt($u,i,e)});function Du(e,t,n){var r=null==e?i:Ur(e,t);return r===i?n:r}function Uu(e,t){return null!=e&&xo(e,t,Gr)}var Fu=Zi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=it.call(t)),e[t]=n},pa(ha)),Ku=Zi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=it.call(t)),tt.call(e,t)?e[t].push(n):e[t]=[n]},ko),Bu=ci($r);function Vu(e){return ru(e)?dr(e):Yr(e)}function Gu(e){return ru(e)?dr(e,!0):function(e){if(!pu(e))return function(e){var t=[];if(null!=e)for(var n in Qe(e))t.push(n);return t}(e);var t=Lo(e),n=[];for(var r in e)("constructor"!=r||!t&&tt.call(e,r))&&n.push(r);return n}(e)}var Hu=Gi(function(e,t,n){ni(e,t,n)}),$u=Gi(function(e,t,n,r){ni(e,t,n,r)}),zu=ho(function(e,t){var n={};if(null==e)return n;var r=!1;t=Bt(t,function(t){return t=Ei(t,e),r||(r=t.length>1),t}),Bi(e,bo(e),n),r&&(n=Or(n,a|s|c,po));for(var i=t.length;i--;)wi(n,t[i]);return n}),Qu=ho(function(e,t){return null==e?{}:function(e,t){return oi(e,t,function(t,n){return Uu(e,n)})}(e,t)});function Wu(e,t){if(null==e)return{};var n=Bt(bo(e),function(e){return[e]});return t=ko(t),oi(e,n,function(e,n){return t(e,n[0])})}var qu=uo(Vu),Ju=uo(Gu);function Yu(e){return null==e?[]:ln(e,Vu(e))}var Zu=Qi(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,cn).replace(at,"")}var ta=Qi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),na=Qi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ra=zi("toLowerCase"),ia=Qi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),oa=Qi(function(e,t,n){return e+(n?" ":"")+ua(t)}),la=Qi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ua=zi("toUpperCase");function aa(e,t,n){return e=Mu(e),(t=n?i:t)===i?function(e){return ft.test(e)}(e)?function(e){return e.match(ct)||[]}(e):function(e){return e.match(Pe)||[]}(e):e.match(t)||[]}var sa=ci(function(e,t){try{return Rt(e,i,t)}catch(n){return uu(n)?n:new He(n)}}),ca=ho(function(e,t){return Nt(t,function(t){t=Wo(t),kr(e,t,Kl(e[t],e))}),e});function pa(e){return function(){return e}}var fa=Ji(),da=Ji(!0);function ha(e){return e}function ya(e){return Jr("function"==typeof e?e:Or(e,a))}var ba=ci(function(e,t){return function(n){return $r(n,e,t)}}),ma=ci(function(e,t){return function(n){return $r(e,n,t)}});function ga(e,t,n){var r=Vu(t),i=Dr(t,r);null!=n||pu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Dr(t,Vu(t)));var o=!(pu(n)&&"chain"in n&&!n.chain),l=au(e);return Nt(i,function(n){var r=t[n];e[n]=r,l&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Ki(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Vt([this.value()],arguments))})}),e}function va(){}var ka=eo(Bt),_a=eo(Dt),wa=eo($t);function Oa(e){return Io(e)?Xt(Wo(e)):function(e){return function(t){return Ur(t,e)}}(e)}var Aa=no(),Ca=no(!0);function Ta(){return[]}function xa(){return!1}var Sa,Ma=Xi(function(e,t){return e+t},0),Ea=oo("ceil"),Pa=Xi(function(e,t){return e/t},1),Ia=oo("floor"),ja=Xi(function(e,t){return e*t},1),Ra=oo("round"),La=Xi(function(e,t){return e-t},0);return rr.after=function(e,t){if("function"!=typeof t)throw new Je(l);return e=Cu(e),function(){if(--e<1)return t.apply(this,arguments)}},rr.ary=Ul,rr.assign=Eu,rr.assignIn=Pu,rr.assignInWith=Iu,rr.assignWith=ju,rr.at=Ru,rr.before=Fl,rr.bind=Kl,rr.bindAll=ca,rr.bindKey=Bl,rr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return tu(e)?e:[e]},rr.chain=Ol,rr.chunk=function(e,t,n){t=(n?Po(e,t,n):t===i)?1:Ln(Cu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var l=0,u=0,a=r(Sn(o/t));l<o;)a[u++]=hi(e,l,l+=t);return a},rr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},rr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Vt(tu(n)?Ki(n):[n],Ir(t,1))},rr.cond=function(e){var t=null==e?0:e.length,n=ko();return e=t?Bt(e,function(e){if("function"!=typeof e[1])throw new Je(l);return[n(e[0]),e[1]]}):[],ci(function(n){for(var r=-1;++r<t;){var i=e[r];if(Rt(i[0],this,n))return Rt(i[1],this,n)}})},rr.conforms=function(e){return function(e){var t=Vu(e);return function(n){return Ar(n,e,t)}}(Or(e,a))},rr.constant=pa,rr.countBy=Tl,rr.create=function(e,t){var n=ir(e);return null==t?n:vr(n,t)},rr.curry=function e(t,n,r){var o=ao(t,b,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},rr.curryRight=function e(t,n,r){var o=ao(t,m,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},rr.debounce=Vl,rr.defaults=Lu,rr.defaultsDeep=Nu,rr.defer=Gl,rr.delay=Hl,rr.difference=Yo,rr.differenceBy=Zo,rr.differenceWith=Xo,rr.drop=function(e,t,n){var r=null==e?0:e.length;return r?hi(e,(t=n||t===i?1:Cu(t))<0?0:t,r):[]},rr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?hi(e,0,(t=r-(t=n||t===i?1:Cu(t)))<0?0:t):[]},rr.dropRightWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3),!0,!0):[]},rr.dropWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3),!0):[]},rr.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Po(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Cu(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:Cu(r))<0&&(r+=o),r=n>r?0:Tu(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},rr.filter=function(e,t){return(tu(e)?Ut:Pr)(e,ko(t,3))},rr.flatMap=function(e,t){return Ir(Rl(e,t),1)},rr.flatMapDeep=function(e,t){return Ir(Rl(e,t),C)},rr.flatMapDepth=function(e,t,n){return n=n===i?1:Cu(n),Ir(Rl(e,t),n)},rr.flatten=nl,rr.flattenDeep=function(e){return null!=e&&e.length?Ir(e,C):[]},rr.flattenDepth=function(e,t){return null!=e&&e.length?Ir(e,t=t===i?1:Cu(t)):[]},rr.flip=function(e){return ao(e,w)},rr.flow=fa,rr.flowRight=da,rr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},rr.functions=function(e){return null==e?[]:Dr(e,Vu(e))},rr.functionsIn=function(e){return null==e?[]:Dr(e,Gu(e))},rr.groupBy=Pl,rr.initial=function(e){return null!=e&&e.length?hi(e,0,-1):[]},rr.intersection=il,rr.intersectionBy=ol,rr.intersectionWith=ll,rr.invert=Fu,rr.invertBy=Ku,rr.invokeMap=Il,rr.iteratee=ya,rr.keyBy=jl,rr.keys=Vu,rr.keysIn=Gu,rr.map=Rl,rr.mapKeys=function(e,t){var n={};return t=ko(t,3),Lr(e,function(e,r,i){kr(n,t(e,r,i),e)}),n},rr.mapValues=function(e,t){var n={};return t=ko(t,3),Lr(e,function(e,r,i){kr(n,r,t(e,r,i))}),n},rr.matches=function(e){return ei(Or(e,a))},rr.matchesProperty=function(e,t){return ti(e,Or(t,a))},rr.memoize=$l,rr.merge=Hu,rr.mergeWith=$u,rr.method=ba,rr.methodOf=ma,rr.mixin=ga,rr.negate=zl,rr.nthArg=function(e){return e=Cu(e),ci(function(t){return ri(t,e)})},rr.omit=zu,rr.omitBy=function(e,t){return Wu(e,zl(ko(t)))},rr.once=function(e){return Fl(2,e)},rr.orderBy=function(e,t,n,r){return null==e?[]:(tu(t)||(t=null==t?[]:[t]),tu(n=r?i:n)||(n=null==n?[]:[n]),ii(e,t,n))},rr.over=ka,rr.overArgs=Ql,rr.overEvery=_a,rr.overSome=wa,rr.partial=Wl,rr.partialRight=ql,rr.partition=Ll,rr.pick=Qu,rr.pickBy=Wu,rr.property=Oa,rr.propertyOf=function(e){return function(t){return null==e?i:Ur(e,t)}},rr.pull=al,rr.pullAll=sl,rr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?li(e,t,ko(n,2)):e},rr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?li(e,t,i,n):e},rr.pullAt=cl,rr.range=Aa,rr.rangeRight=Ca,rr.rearg=Jl,rr.reject=function(e,t){return(tu(e)?Ut:Pr)(e,zl(ko(t,3)))},rr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ko(t,3);++r<o;){var l=e[r];t(l,r,e)&&(n.push(l),i.push(r))}return ui(e,i),n},rr.rest=function(e,t){if("function"!=typeof e)throw new Je(l);return ci(e,t=t===i?t:Cu(t))},rr.reverse=pl,rr.sampleSize=function(e,t,n){return t=(n?Po(e,t,n):t===i)?1:Cu(t),(tu(e)?function(e,t){return zo(Ki(e),wr(t,0,e.length))}:function(e,t){var n=Yu(e);return zo(n,wr(t,0,n.length))})(e,t)},rr.set=function(e,t,n){return null==e?e:pi(e,t,n)},rr.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:pi(e,t,n,r)},rr.shuffle=function(e){return(tu(e)?function(e){return zo(Ki(e))}:function(e){return zo(Yu(e))})(e)},rr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Po(e,t,n)?(t=0,n=r):(t=null==t?0:Cu(t),n=n===i?r:Cu(n)),hi(e,t,n)):[]},rr.sortBy=Nl,rr.sortedUniq=function(e){return e&&e.length?gi(e):[]},rr.sortedUniqBy=function(e,t){return e&&e.length?gi(e,ko(t,2)):[]},rr.split=function(e,t,n){return n&&"number"!=typeof n&&Po(e,t,n)&&(t=n=i),(n=n===i?M:n>>>0)?(e=Mu(e))&&("string"==typeof t||null!=t&&!bu(t))&&!(t=ki(t))&&dn(e)?Ii(kn(e),0,n):e.split(t,n):[]},rr.spread=function(e,t){if("function"!=typeof e)throw new Je(l);return t=null==t?0:Ln(Cu(t),0),ci(function(n){var r=n[t],i=Ii(n,0,t);return r&&Vt(i,r),Rt(e,this,i)})},rr.tail=function(e){var t=null==e?0:e.length;return t?hi(e,1,t):[]},rr.take=function(e,t,n){return e&&e.length?hi(e,0,(t=n||t===i?1:Cu(t))<0?0:t):[]},rr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?hi(e,(t=r-(t=n||t===i?1:Cu(t)))<0?0:t,r):[]},rr.takeRightWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3),!1,!0):[]},rr.takeWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3)):[]},rr.tap=function(e,t){return t(e),e},rr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Je(l);return pu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vl(e,t,{leading:r,maxWait:t,trailing:i})},rr.thru=Al,rr.toArray=Ou,rr.toPairs=qu,rr.toPairsIn=Ju,rr.toPath=function(e){return tu(e)?Bt(e,Wo):vu(e)?[e]:Ki(Qo(Mu(e)))},rr.toPlainObject=Su,rr.transform=function(e,t,n){var r=tu(e),i=r||ou(e)||ku(e);if(t=ko(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:pu(e)&&au(o)?ir(Ot(e)):{}}return(i?Nt:Lr)(e,function(e,r,i){return t(n,e,r,i)}),n},rr.unary=function(e){return Ul(e,1)},rr.union=fl,rr.unionBy=dl,rr.unionWith=hl,rr.uniq=function(e){return e&&e.length?_i(e):[]},rr.uniqBy=function(e,t){return e&&e.length?_i(e,ko(t,2)):[]},rr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?_i(e,i,t):[]},rr.unset=function(e,t){return null==e||wi(e,t)},rr.unzip=yl,rr.unzipWith=bl,rr.update=function(e,t,n){return null==e?e:Oi(e,t,Mi(n))},rr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Oi(e,t,Mi(n),r)},rr.values=Yu,rr.valuesIn=function(e){return null==e?[]:ln(e,Gu(e))},rr.without=ml,rr.words=aa,rr.wrap=function(e,t){return Wl(Mi(t),e)},rr.xor=gl,rr.xorBy=vl,rr.xorWith=kl,rr.zip=_l,rr.zipObject=function(e,t){return xi(e||[],t||[],br)},rr.zipObjectDeep=function(e,t){return xi(e||[],t||[],pi)},rr.zipWith=wl,rr.entries=qu,rr.entriesIn=Ju,rr.extend=Pu,rr.extendWith=Iu,ga(rr,rr),rr.add=Ma,rr.attempt=sa,rr.camelCase=Zu,rr.capitalize=Xu,rr.ceil=Ea,rr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=xu(n))==n?n:0),t!==i&&(t=(t=xu(t))==t?t:0),wr(xu(e),t,n)},rr.clone=function(e){return Or(e,c)},rr.cloneDeep=function(e){return Or(e,a|c)},rr.cloneDeepWith=function(e,t){return Or(e,a|c,t="function"==typeof t?t:i)},rr.cloneWith=function(e,t){return Or(e,c,t="function"==typeof t?t:i)},rr.conformsTo=function(e,t){return null==t||Ar(e,t,Vu(t))},rr.deburr=ea,rr.defaultTo=function(e,t){return null==e||e!=e?t:e},rr.divide=Pa,rr.endsWith=function(e,t,n){e=Mu(e),t=ki(t);var r=e.length,o=n=n===i?r:wr(Cu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},rr.eq=Yl,rr.escape=function(e){return(e=Mu(e))&&be.test(e)?e.replace(he,pn):e},rr.escapeRegExp=function(e){return(e=Mu(e))&&Ae.test(e)?e.replace(Oe,"\\$&"):e},rr.every=function(e,t,n){var r=tu(e)?Dt:Mr;return n&&Po(e,t,n)&&(t=i),r(e,ko(t,3))},rr.find=xl,rr.findIndex=el,rr.findKey=function(e,t){return Qt(e,ko(t,3),Lr)},rr.findLast=Sl,rr.findLastIndex=tl,rr.findLastKey=function(e,t){return Qt(e,ko(t,3),Nr)},rr.floor=Ia,rr.forEach=Ml,rr.forEachRight=El,rr.forIn=function(e,t){return null==e?e:jr(e,ko(t,3),Gu)},rr.forInRight=function(e,t){return null==e?e:Rr(e,ko(t,3),Gu)},rr.forOwn=function(e,t){return e&&Lr(e,ko(t,3))},rr.forOwnRight=function(e,t){return e&&Nr(e,ko(t,3))},rr.get=Du,rr.gt=Zl,rr.gte=Xl,rr.has=function(e,t){return null!=e&&xo(e,t,Vr)},rr.hasIn=Uu,rr.head=rl,rr.identity=ha,rr.includes=function(e,t,n,r){e=ru(e)?e:Yu(e),n=n&&!r?Cu(n):0;var i=e.length;return n<0&&(n=Ln(i+n,0)),gu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&qt(e,t,n)>-1},rr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Cu(n);return i<0&&(i=Ln(r+i,0)),qt(e,t,i)},rr.inRange=function(e,t,n){return t=Au(t),n===i?(n=t,t=0):n=Au(n),function(e,t,n){return e>=Nn(t,n)&&e<Ln(t,n)}(e=xu(e),t,n)},rr.invoke=Bu,rr.isArguments=eu,rr.isArray=tu,rr.isArrayBuffer=nu,rr.isArrayLike=ru,rr.isArrayLikeObject=iu,rr.isBoolean=function(e){return!0===e||!1===e||fu(e)&&Kr(e)==N},rr.isBuffer=ou,rr.isDate=lu,rr.isElement=function(e){return fu(e)&&1===e.nodeType&&!yu(e)},rr.isEmpty=function(e){if(null==e)return!0;if(ru(e)&&(tu(e)||"string"==typeof e||"function"==typeof e.splice||ou(e)||ku(e)||eu(e)))return!e.length;var t=To(e);if(t==V||t==W)return!e.size;if(Lo(e))return!Yr(e).length;for(var n in e)if(tt.call(e,n))return!1;return!0},rr.isEqual=function(e,t){return Qr(e,t)},rr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Qr(e,t,i,n):!!r},rr.isError=uu,rr.isFinite=function(e){return"number"==typeof e&&In(e)},rr.isFunction=au,rr.isInteger=su,rr.isLength=cu,rr.isMap=du,rr.isMatch=function(e,t){return e===t||Wr(e,t,wo(t))},rr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Wr(e,t,wo(t),n)},rr.isNaN=function(e){return hu(e)&&e!=+e},rr.isNative=function(e){if(Ro(e))throw new He("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return qr(e)},rr.isNil=function(e){return null==e},rr.isNull=function(e){return null===e},rr.isNumber=hu,rr.isObject=pu,rr.isObjectLike=fu,rr.isPlainObject=yu,rr.isRegExp=bu,rr.isSafeInteger=function(e){return su(e)&&e>=-T&&e<=T},rr.isSet=mu,rr.isString=gu,rr.isSymbol=vu,rr.isTypedArray=ku,rr.isUndefined=function(e){return e===i},rr.isWeakMap=function(e){return fu(e)&&To(e)==Z},rr.isWeakSet=function(e){return fu(e)&&"[object WeakSet]"==Kr(e)},rr.join=function(e,t){return null==e?"":jn.call(e,t)},rr.kebabCase=ta,rr.last=ul,rr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Cu(n))<0?Ln(r+o,0):Nn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Wt(e,Yt,o,!0)},rr.lowerCase=na,rr.lowerFirst=ra,rr.lt=_u,rr.lte=wu,rr.max=function(e){return e&&e.length?Er(e,ha,Br):i},rr.maxBy=function(e,t){return e&&e.length?Er(e,ko(t,2),Br):i},rr.mean=function(e){return Zt(e,ha)},rr.meanBy=function(e,t){return Zt(e,ko(t,2))},rr.min=function(e){return e&&e.length?Er(e,ha,Zr):i},rr.minBy=function(e,t){return e&&e.length?Er(e,ko(t,2),Zr):i},rr.stubArray=Ta,rr.stubFalse=xa,rr.stubObject=function(){return{}},rr.stubString=function(){return""},rr.stubTrue=function(){return!0},rr.multiply=ja,rr.nth=function(e,t){return e&&e.length?ri(e,Cu(t)):i},rr.noConflict=function(){return wt._===this&&(wt._=lt),this},rr.noop=va,rr.now=Dl,rr.pad=function(e,t,n){e=Mu(e);var r=(t=Cu(t))?vn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return to(Mn(i),n)+e+to(Sn(i),n)},rr.padEnd=function(e,t,n){e=Mu(e);var r=(t=Cu(t))?vn(e):0;return t&&r<t?e+to(t-r,n):e},rr.padStart=function(e,t,n){e=Mu(e);var r=(t=Cu(t))?vn(e):0;return t&&r<t?to(t-r,n)+e:e},rr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Un(Mu(e).replace(Te,""),t||0)},rr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Po(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Au(e),t===i?(t=e,e=0):t=Au(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Fn();return Nn(e+o*(t-e+gt("1e-"+((o+"").length-1))),t)}return ai(e,t)},rr.reduce=function(e,t,n){var r=tu(e)?Gt:tn,i=arguments.length<3;return r(e,ko(t,4),n,i,xr)},rr.reduceRight=function(e,t,n){var r=tu(e)?Ht:tn,i=arguments.length<3;return r(e,ko(t,4),n,i,Sr)},rr.repeat=function(e,t,n){return t=(n?Po(e,t,n):t===i)?1:Cu(t),si(Mu(e),t)},rr.replace=function(){var e=arguments,t=Mu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rr.result=function(e,t,n){var r=-1,o=(t=Ei(t,e)).length;for(o||(o=1,e=i);++r<o;){var l=null==e?i:e[Wo(t[r])];l===i&&(r=o,l=n),e=au(l)?l.call(e):l}return e},rr.round=Ra,rr.runInContext=e,rr.sample=function(e){return(tu(e)?hr:function(e){return hr(Yu(e))})(e)},rr.size=function(e){if(null==e)return 0;if(ru(e))return gu(e)?vn(e):e.length;var t=To(e);return t==V||t==W?e.size:Yr(e).length},rr.snakeCase=ia,rr.some=function(e,t,n){var r=tu(e)?$t:yi;return n&&Po(e,t,n)&&(t=i),r(e,ko(t,3))},rr.sortedIndex=function(e,t){return bi(e,t)},rr.sortedIndexBy=function(e,t,n){return mi(e,t,ko(n,2))},rr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=bi(e,t);if(r<n&&Yl(e[r],t))return r}return-1},rr.sortedLastIndex=function(e,t){return bi(e,t,!0)},rr.sortedLastIndexBy=function(e,t,n){return mi(e,t,ko(n,2),!0)},rr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=bi(e,t,!0)-1;if(Yl(e[n],t))return n}return-1},rr.startCase=oa,rr.startsWith=function(e,t,n){return e=Mu(e),n=null==n?0:wr(Cu(n),0,e.length),t=ki(t),e.slice(n,n+t.length)==t},rr.subtract=La,rr.sum=function(e){return e&&e.length?nn(e,ha):0},rr.sumBy=function(e,t){return e&&e.length?nn(e,ko(t,2)):0},rr.template=function(e,t,n){var r=rr.templateSettings;n&&Po(e,t,n)&&(t=i),e=Mu(e),t=Iu({},t,r,so);var o,l,u=Iu({},t.imports,r.imports,so),a=Vu(u),s=ln(u,a),c=0,p=t.interpolate||Be,f="__p += '",d=We((t.escape||Be).source+"|"+p.source+"|"+(p===ve?je:Be).source+"|"+(t.evaluate||Be).source+"|$","g"),h="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++ht+"]")+"\n";e.replace(d,function(t,n,r,i,u,a){return r||(r=i),f+=e.slice(c,a).replace(Ve,fn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(l=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+t.length,t}),f+="';\n";var y=t.variable;y||(f="with (obj) {\n"+f+"\n}\n"),f=(l?f.replace(ce,""):f).replace(pe,"$1").replace(fe,"$1;"),f="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var b=sa(function(){return $e(a,h+"return "+f).apply(i,s)});if(b.source=f,uu(b))throw b;return b},rr.times=function(e,t){if((e=Cu(e))<1||e>T)return[];var n=M,r=Nn(e,M);t=ko(t),e-=M;for(var i=rn(r,t);++n<e;)t(n);return i},rr.toFinite=Au,rr.toInteger=Cu,rr.toLength=Tu,rr.toLower=function(e){return Mu(e).toLowerCase()},rr.toNumber=xu,rr.toSafeInteger=function(e){return e?wr(Cu(e),-T,T):0===e?e:0},rr.toString=Mu,rr.toUpper=function(e){return Mu(e).toUpperCase()},rr.trim=function(e,t,n){if((e=Mu(e))&&(n||t===i))return e.replace(Ce,"");if(!e||!(t=ki(t)))return e;var r=kn(e),o=kn(t);return Ii(r,an(r,o),sn(r,o)+1).join("")},rr.trimEnd=function(e,t,n){if((e=Mu(e))&&(n||t===i))return e.replace(xe,"");if(!e||!(t=ki(t)))return e;var r=kn(e);return Ii(r,0,sn(r,kn(t))+1).join("")},rr.trimStart=function(e,t,n){if((e=Mu(e))&&(n||t===i))return e.replace(Te,"");if(!e||!(t=ki(t)))return e;var r=kn(e);return Ii(r,an(r,kn(t))).join("")},rr.truncate=function(e,t){var n=30,r="...";if(pu(t)){var o="separator"in t?t.separator:o;n="length"in t?Cu(t.length):n,r="omission"in t?ki(t.omission):r}var l=(e=Mu(e)).length;if(dn(e)){var u=kn(e);l=u.length}if(n>=l)return e;var a=n-vn(r);if(a<1)return r;var s=u?Ii(u,0,a).join(""):e.slice(0,a);if(o===i)return s+r;if(u&&(a+=s.length-a),bu(o)){if(e.slice(a).search(o)){var c,p=s;for(o.global||(o=We(o.source,Mu(Re.exec(o))+"g")),o.lastIndex=0;c=o.exec(p);)var f=c.index;s=s.slice(0,f===i?a:f)}}else if(e.indexOf(ki(o),a)!=a){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},rr.unescape=function(e){return(e=Mu(e))&&ye.test(e)?e.replace(de,_n):e},rr.uniqueId=function(e){var t=++nt;return Mu(e)+t},rr.upperCase=la,rr.upperFirst=ua,rr.each=Ml,rr.eachRight=El,rr.first=rl,ga(rr,(Sa={},Lr(rr,function(e,t){tt.call(rr.prototype,t)||(Sa[t]=e)}),Sa),{chain:!1}),rr.VERSION="4.17.11",Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rr[e].placeholder=rr}),Nt(["drop","take"],function(e,t){ur.prototype[e]=function(n){n=n===i?1:Ln(Cu(n),0);var r=this.__filtered__&&!t?new ur(this):this.clone();return r.__filtered__?r.__takeCount__=Nn(n,r.__takeCount__):r.__views__.push({size:Nn(n,M),type:e+(r.__dir__<0?"Right":"")}),r},ur.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Nt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ur.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ko(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Nt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ur.prototype[e]=function(){return this[n](1).value()[0]}}),Nt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ur.prototype[e]=function(){return this.__filtered__?new ur(this):this[n](1)}}),ur.prototype.compact=function(){return this.filter(ha)},ur.prototype.find=function(e){return this.filter(e).head()},ur.prototype.findLast=function(e){return this.reverse().find(e)},ur.prototype.invokeMap=ci(function(e,t){return"function"==typeof e?new ur(this):this.map(function(n){return $r(n,e,t)})}),ur.prototype.reject=function(e){return this.filter(zl(ko(e)))},ur.prototype.slice=function(e,t){e=Cu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ur(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Cu(t))<0?n.dropRight(-t):n.take(t-e)),n)},ur.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ur.prototype.toArray=function(){return this.take(M)},Lr(ur.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=rr[r?"take"+("last"==t?"Right":""):t],l=r||/^find/.test(t);o&&(rr.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,a=t instanceof ur,s=u[0],c=a||tu(t),p=function(e){var t=o.apply(rr,Vt([e],u));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var f=this.__chain__,d=!!this.__actions__.length,h=l&&!f,y=a&&!d;if(!l&&c){t=y?t:new ur(this);var b=e.apply(t,u);return b.__actions__.push({func:Al,args:[p],thisArg:i}),new lr(b,f)}return h&&y?e.apply(this,u):(b=this.thru(p),h?r?b.value()[0]:b.value():b)})}),Nt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);rr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(tu(i)?i:[],e)}return this[n](function(n){return t.apply(tu(n)?n:[],e)})}}),Lr(ur.prototype,function(e,t){var n=rr[t];if(n){var r=n.name+"";(Wn[r]||(Wn[r]=[])).push({name:t,func:n})}}),Wn[Yi(i,h).name]=[{name:"wrapper",func:i}],ur.prototype.clone=function(){var e=new ur(this.__wrapped__);return e.__actions__=Ki(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ki(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ki(this.__views__),e},ur.prototype.reverse=function(){if(this.__filtered__){var e=new ur(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ur.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=tu(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],l=o.size;switch(o.type){case"drop":e+=l;break;case"dropRight":t-=l;break;case"take":t=Nn(t,e+l);break;case"takeRight":e=Ln(e,t-l)}}return{start:e,end:t}}(0,i,this.__views__),l=o.start,u=o.end,a=u-l,s=r?u:l-1,c=this.__iteratees__,p=c.length,f=0,d=Nn(a,this.__takeCount__);if(!n||!r&&i==a&&d==a)return Ci(e,this.__actions__);var h=[];e:for(;a--&&f<d;){for(var y=-1,b=e[s+=t];++y<p;){var m=c[y],g=m.type,v=(0,m.iteratee)(b);if(2==g)b=v;else if(!v){if(1==g)continue e;break e}}h[f++]=b}return h},rr.prototype.at=Cl,rr.prototype.chain=function(){return Ol(this)},rr.prototype.commit=function(){return new lr(this.value(),this.__chain__)},rr.prototype.next=function(){this.__values__===i&&(this.__values__=Ou(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},rr.prototype.plant=function(e){for(var t,n=this;n instanceof or;){var r=Jo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},rr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ur){var t=e;return this.__actions__.length&&(t=new ur(this)),(t=t.reverse()).__actions__.push({func:Al,args:[pl],thisArg:i}),new lr(t,this.__chain__)}return this.thru(pl)},rr.prototype.toJSON=rr.prototype.valueOf=rr.prototype.value=function(){return Ci(this.__wrapped__,this.__actions__)},rr.prototype.first=rr.prototype.head,en&&(rr.prototype[en]=function(){return this}),rr}();wt._=wn,(r=(function(){return wn}).call(t,n,t,e))===i||(e.exports=r)}).call(this)}).call(this,n("YuTi")(e))},M3cR:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");var i=n("1nxd");t.IpcEvents=i.IpcEvents,r.__exportStar(n("6vzy"),t),r.__exportStar(n("RPol"),t),r.__exportStar(n("reFP"),t),r.__exportStar(n("En2k"),t),t.camelCaseToSentence=function(e){return e.replace(/^[a-z]|[A-Z]/g,function(e,t){return 0===t?e.toUpperCase():" "+e.toLowerCase()})},t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.runInElectron=function(){return window&&window.process&&window.process.type}},MGBS:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("mrSG"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("FFOo").a)},McSo:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return r})},"Mfn/":function(e,t,n){"use strict";function r(e,t){return i(e,t,0,65535)}function i(e,t,n,r){const i="_"+t;Object.defineProperty(e,t,{get:function(){return this[i]},set:function(o){if(this[i]!==o){if(o<n||o>r)throw`${e.constructor.name}.${t}: `+`Integer ${o} is outside the valid [${n}, ${r}] interval`;this[i]=o}},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=r,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 r(e,t)},t.assertEnum=function(e){return function(t,n){const r="_"+n;Object.defineProperty(t,n,{get:function(){return this[r]},set:function(i){if(this[r]!==i){if(void 0===e[i])throw`${t.constructor.name}.${n}: ${i} is not enum`;this[r]=i}},enumerable:!0,configurable:!0})}}},NS47:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("RGrK");var l,u;!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=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=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`)}};class a extends o.KeyAction{constructor(e){super(),e&&(this.switchLayerMode=e.switchLayerMode,this.layer=e.layer)}fromJsonObject(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}fromBinary(e){return this.readAndAssertKeyActionId(e),this.layer=e.readUInt8(),this.switchLayerMode=t.mapNumberToSwitchLayerMode(e.readUInt8()),this}toJsonObject(){return{keyActionType:o.keyActionType.SwitchLayerAction,layer:l[this.layer],switchLayerMode:this.switchLayerMode}}toBinary(e){e.writeUInt8(o.KeyActionId.SwitchLayerAction),e.writeUInt8(this.layer),e.writeUInt8(t.mapSwitchLayerModeToNumber(this.switchLayerMode))}toString(){return`<SwitchLayerAction layer="${this.layer}" switchLayerMode="${this.switchLayerMode}">`}getName(){return"SwitchLayerAction"}}r.__decorate([i.assertEnum(u),r.__metadata("design:type",String)],a.prototype,"switchLayerMode",void 0),r.__decorate([i.assertEnum(l),r.__metadata("design:type",Number)],a.prototype,"layer",void 0),t.SwitchLayerAction=a},NmBN:function(e){e.exports=JSON.parse('{"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":10,"mouseScrollBaseSpeed":20,"mouseScrollAcceleratedSpeed":50,"moduleConfigurations":[],"keymaps":[{"isDefault":false,"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},{"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":false,"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},{"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":false,"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},{"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":false,"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},{"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":false,"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},{"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":true,"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},{"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":false,"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},{"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":true,"isPrivate":true,"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":false,"isPrivate":true,"name":"God mode in Doom","macroActions":[{"macroActionType":"text","text":"iddqd"}]},{"isLooped":false,"isPrivate":true,"name":"Type Silent Bob\'s address","macroActions":[{"macroActionType":"text","text":"Silent Bob\\n711-2880 Nulla St.\\nMankato Mississippi 96522\\n(257) 563-7401"}]}]}')},PDX0:function(e,t){(function(t){e.exports=t}).call(this,{})},PP4X:function(e,t,n){var r={"./DVR.json":"x7X3","./EMY.json":"ZEkC","./QTY.json":"wCQ+","./VIM.json":"5F+I"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id="PP4X"},Phjn:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("psW0");function i(e,t){return Object(r.a)(e,t,1)}},PzH3:function(e,t,n){"use strict";var r=n("bBst"),i=n("Ys8N"),o=global.document,l=function(e,t,n,r){return e.addEventListener(t,n,r)},u=function(e,t,n,r){return e.removeEventListener(t,n,r)},a=[];function s(e,t,n){var r=function(e,t,n){var r,i;for(r=0;r<a.length;r++)if((i=a[r]).element===e&&i.type===t&&i.fn===n)return r}(e,t,n);if(r){var i=a[r].wrapper;return a.splice(r,1),i}}global.addEventListener||(l=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var r=s(e,t,n)||function(e,t,n){return function(t){var r=t||global.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,n.call(e,r)}}(e,0,n);return a.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},u=function(e,t,n){var r=s(e,t,n);if(r)return e.detachEvent("on"+t,r)}),e.exports={add:l,remove:u,fabricate:function(e,t,n){var l=-1===i.indexOf(t)?new r(t,{detail:n}):function(){var e;return o.createEvent?(e=o.createEvent("Event")).initEvent(t,!0,!0):o.createEventObject&&(e=o.createEventObject()),e}();e.dispatchEvent?e.dispatchEvent(l):e.fireEvent("on"+t,l)}}},QGe5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.leftCtrl=1]="leftCtrl",e[e.leftShift=2]="leftShift",e[e.leftAlt=4]="leftAlt",e[e.leftGui=8]="leftGui",e[e.rightCtrl=16]="rightCtrl",e[e.rightShift=32]="rightShift",e[e.rightAlt=64]="rightAlt",e[e.rightGui=128]="rightGui"}(t.KeyModifiers||(t.KeyModifiers={}))},RGrK:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.NoneAction=0]="NoneAction",e[e.KeystrokeAction=1]="KeystrokeAction",e[e.LastKeystrokeAction=31]="LastKeystrokeAction",e[e.SwitchLayerAction=32]="SwitchLayerAction",e[e.SwitchKeymapAction=33]="SwitchKeymapAction",e[e.MouseAction=34]="MouseAction",e[e.PlayMacroAction=35]="PlayMacroAction"}(r=t.KeyActionId||(t.KeyActionId={})),t.keyActionType={NoneAction:"none",KeystrokeAction:"keystroke",SwitchLayerAction:"switchLayer",SwitchKeymapAction:"switchKeymap",MouseAction:"mouse",PlayMacroAction:"playMacro"},t.KeyAction=class{assertKeyActionType(e){const n=this.getName();if(e.keyActionType!==t.keyActionType[n])throw`Invalid ${n}.keyActionType: ${e.keyActionType}`}readAndAssertKeyActionId(e){const t=this.getName(),n=e.readUInt8(),i=r[t];if(i===r.KeystrokeAction){if(n<r.KeystrokeAction||n>r.LastKeystrokeAction)throw`Invalid ${t} first byte: ${n}`}else if(n!==i)throw`Invalid ${t} first byte: ${n}`;return n}renameKeymap(e,t){return this}}},RPol:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AGENT_GITHUB_URL="https://github.com/UltimateHackingKeyboard/agent",e.AGENT_CONTRIBUTORS_GITHUB_PAGE_URL="https://github.com/UltimateHackingKeyboard/agent/graphs/contributors",e.AGENT_CONTRIBUTORS_GITHUB_API_URL="https://api.github.com/repos/UltimateHackingKeyboard/agent/contributors",e.FIRMWARE_GITHUB_ISSUE_URL="https://github.com/UltimateHackingKeyboard/agent/issues/new"}(t.Constants||(t.Constants={}))},S1nX:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("xlPZ"),i=n("yGWI"),o=n("K9Ia");function l(){return new o.a}function u(){return function(e){return Object(i.a)()(Object(r.a)(l)(e))}}},S3Q5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=class{error(...e){console.error(e)}debug(...e){console.log(e)}silly(...e){console.log(e)}info(...e){console.info(e)}}},S5bw:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("mrSG"),i=n("K9Ia"),o=n("zo3G"),l=n("pugT"),u=n("mZXl"),a=n("8g8A"),s=n("uMaO"),c=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.c(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new p(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?t=l.a.EMPTY:(this.observers.push(e),t=new s.a(this,e)),i&&e.add(e=new u.a(e,i)),n)for(var c=0;c<o&&!e.closed;c++)e.next(r[c]);else for(c=0;c<o&&!e.closed;c++)e.next(r[c].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||o.a).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(i.a),p=function(){return function(e,t){this.time=e,this.value=t}}()},SACm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("u32M");class i{constructor(){this._enableDump=!1,this.offset=0,this.bytesToBacktrack=0,this.buffer=r.Buffer.alloc(i.eepromSize),this.buffer.fill(0)}static simpleElementWriter(e,t){t.toBinary(e)}static fromArray(e){if(e.length<1)return null;const t=new i;let n=!1;for(const r of e)r>0&&(n=!0),t.writeUInt8(r);return t.offset=0,t}readInt8(){const e=this.buffer.readInt8(this.offset);return this.dump(`i8(${e})`),this.bytesToBacktrack=1,this.offset+=this.bytesToBacktrack,e}writeInt8(e){this.dump(`i8(${e})`),this.buffer.writeInt8(e,this.offset),this.offset+=1}readUInt8(){const e=this.buffer.readUInt8(this.offset);return this.dump(`u8(${e})`),this.bytesToBacktrack=1,this.offset+=this.bytesToBacktrack,e}writeUInt8(e){this.dump(`u8(${e})`),this.buffer.writeUInt8(e,this.offset),this.offset+=1}readInt16(){const e=this.buffer.readInt16LE(this.offset);return this.dump(`i16(${e})`),this.bytesToBacktrack=2,this.offset+=this.bytesToBacktrack,e}writeInt16(e){this.dump(`i16(${e})`),this.buffer.writeInt16LE(e,this.offset),this.offset+=2}readUInt16(){const e=this.buffer.readUInt16LE(this.offset);return this.dump(`u16(${e})`),this.bytesToBacktrack=2,this.offset+=this.bytesToBacktrack,e}writeUInt16(e){this.dump(`u16(${e})`),this.buffer.writeUInt16LE(e,this.offset),this.offset+=2}readInt32(){const e=this.buffer.readInt32LE(this.offset);return this.dump(`i32(${e})`),this.bytesToBacktrack=4,this.offset+=this.bytesToBacktrack,e}writeInt32(e){this.dump(`i32(${e})`),this.buffer.writeInt32LE(e,this.offset),this.offset+=4}readUInt32(){const e=this.buffer.readUInt32LE(this.offset);return this.dump(`u32(${e})`),this.bytesToBacktrack=4,this.offset+=this.bytesToBacktrack,e}writeUInt32(e){this.dump(`u32(${e})`),this.buffer.writeUInt32LE(e,this.offset),this.offset+=4}readCompactLength(){let e=this.readUInt8();return e===i.longCompactLengthPrefix&&(e=this.readUInt16()),e}writeCompactLength(e){e>=i.longCompactLengthPrefix?(this.writeUInt8(i.longCompactLengthPrefix),this.writeUInt16(e)):this.writeUInt8(e)}readString(){const e=this.readCompactLength(),t=this.buffer.toString(i.stringEncoding,this.offset,this.offset+e);return this.dump(`${i.stringEncoding}(${t})`),this.bytesToBacktrack=e,this.offset+=e,t}writeString(e){const t=r.Buffer.byteLength(e,i.stringEncoding);if(t>i.maxCompactLength)throw`Cannot serialize string: ${t} bytes is larger\n than the maximum allowed length of ${i.maxCompactLength} bytes`;this.writeCompactLength(t),this.dump(`${i.stringEncoding}(${e})`),this.buffer.write(e,this.offset,t,i.stringEncoding),this.offset+=t}readBoolean(){return 0!==this.readUInt8()}writeBoolean(e){this.writeUInt8(e?1:0)}readArray(e){const t=[],n=this.readCompactLength();for(let r=0;r<n;++r)t.push(e(this,r));return t}writeArray(e,t=i.simpleElementWriter){const n=e.length;this.writeCompactLength(n);for(let r=0;r<n;++r)t(this,e[r],r)}backtrack(){this.offset-=this.bytesToBacktrack,this.bytesToBacktrack=0}getBufferContent(){return this.buffer.slice(0,this.offset)}get enableDump(){return this._enableDump}set enableDump(e){e&&(i.isFirstElementToDump=!0),this._enableDump=e}dump(e){this.enableDump&&(i.isFirstElementToDump||process.stdout.write(", "),process.stdout.write(e),i.isFirstElementToDump&&(i.isFirstElementToDump=!1))}}i.eepromSize=32768,i.maxCompactLength=65535,i.longCompactLengthPrefix=255,i.stringEncoding="utf8",i.isFirstElementToDump=!1,t.UhkBuffer=i},T1DM:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("h9Dq"),i=new(n("CS9Q").a)(r.a)},TEuf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("RGrK"),t),r.__exportStar(n("anzk"),t),r.__exportStar(n("FREM"),t),r.__exportStar(n("9ixT"),t),r.__exportStar(n("88NP"),t),r.__exportStar(n("hT0y"),t),r.__exportStar(n("KQti"),t),r.__exportStar(n("NS47"),t);var i=n("ySaW");t.KeyActionHelper=i.Helper},UBVW:function(e){e.exports=JSON.parse('[{"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 SysRq"},{"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":"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":"145","text":"History Back","additional":{"type":"media","scancode":548}},{"id":"146","text":"History Forward","additional":{"type":"media","scancode":549}}]},{"text":"Launch application","children":[{"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":"."}]},{"text":"International","children":[{"id":"235","text":"International 1","additional":{"type":"basic","scancode":135}},{"id":"236","text":"International 2","additional":{"type":"basic","scancode":136}},{"id":"237","text":"International 3","additional":{"type":"basic","scancode":137}},{"id":"244","text":"Language 1","additional":{"type":"basic","scancode":144}},{"id":"245","text":"Language 2","additional":{"type":"basic","scancode":145}}]}]')},UEaM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.leftCtrl=0]="leftCtrl",e[e.leftShift=1]="leftShift",e[e.leftAlt=2]="leftAlt",e[e.leftSuper=3]="leftSuper",e[e.rightCtrl=4]="rightCtrl",e[e.rightShift=5]="rightShift",e[e.rightAlt=6]="rightAlt",e[e.rightSuper=7]="rightSuper",e[e.mod=8]="mod",e[e.fn=9]="fn",e[e.mouse=10]="mouse"}(t.SecondaryRoleAction||(t.SecondaryRoleAction={}))},Vib2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("rBfm");class l extends o.MacroAction{constructor(e){super(),e&&(this.x=e.x,this.y=e.y)}fromJsonObject(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this}fromBinary(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this}toJsonObject(){return{macroActionType:o.macroActionType.MoveMouseMacroAction,x:this.x,y:this.y}}toBinary(e){e.writeUInt8(o.MacroActionId.MoveMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)}toString(){return`<MoveMouseMacroAction pos="(${this.x},${this.y})">`}getName(){return"MoveMouseMacroAction"}}r.__decorate([i.assertInt16,r.__metadata("design:type",Number)],l.prototype,"x",void 0),r.__decorate([i.assertInt16,r.__metadata("design:type",Number)],l.prototype,"y",void 0),t.MoveMouseMacroAction=l},"VnD/":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e,t){return function(n){return n.lift(new l(e,t))}}var l=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.thisArg))},e}(),u=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.c(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)},t}(i.a)},WM0l:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("2QPq").__exportStar(n("S3Q5"),t)},XlPw:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("6blF");function i(e,t){return new r.a(t?function(n){return t.schedule(o,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function o(e){e.subscriber.error(e.error)}},YS7c:function(e,t,n){"use strict";var r=n("8/JR"),i=n("PzH3"),o=n("n6yW"),l=document,u=l.documentElement;function a(e,t,n,r){global.navigator.pointerEnabled?i[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],r):global.navigator.msPointerEnabled?i[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],r):(i[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],r),i[t](e,n,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,t){return void 0!==global[t]?global[t]:u.clientHeight?u[e]:l.body[e]}function p(e,t,n){var r,i=e||{},o=i.className;return i.className+=" gu-hide",r=l.elementFromPoint(t,n),i.className=o,r}function f(){return!1}function d(){return!0}function h(e){return e.width||e.right-e.left}function y(e){return e.height||e.bottom-e.top}function b(e){return e.parentNode===l?null:e.parentNode}function m(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(b(t)))}(e)}function g(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function v(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),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in n)&&r[e]in n&&(e=r[e]),n[e]}e.exports=function(e,t){var n,k,_,w,O,A,C,T,x,S,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var E,P=null,I=t||{};void 0===I.moves&&(I.moves=d),void 0===I.accepts&&(I.accepts=d),void 0===I.invalid&&(I.invalid=function(){return!1}),void 0===I.containers&&(I.containers=e||[]),void 0===I.isContainer&&(I.isContainer=f),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 j=r({containers:I.containers,start:function(e){var t=B(e);t&&V(t)},end:G,cancel:W,remove:Q,destroy:function(){L(!0),$({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===I.removeOnSpill&&j.on("over",function(e){o.rm(e,"gu-hide")}).on("out",function(e){j.dragging&&o.add(e,"gu-hide")}),L(),j;function R(e){return-1!==j.containers.indexOf(e)||I.isContainer(e)}function L(e){var t=e?"remove":"add";a(u,t,"mousedown",F),a(u,t,"mouseup",$)}function N(e){a(u,e?"remove":"add","mousemove",K)}function D(e){var t=e?"remove":"add";i[t](u,"selectstart",U),i[t](u,"click",U)}function U(e){E&&e.preventDefault()}function F(e){if(A=e.clientX,C=e.clientY,1===s(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,n=B(t);n&&(E=n,N(),"mousedown"===e.type&&(m(t)?t.focus():e.preventDefault()))}}function K(e){if(E)if(0!==s(e)){if(void 0===e.clientX||e.clientX!==A||void 0===e.clientY||e.clientY!==C){if(I.ignoreInputTextSelection){var t=v("clientX",e),r=v("clientY",e);if(m(l.elementFromPoint(t,r)))return}var i=E;N(!0),D(),G(),V(i);var p,f={left:(p=_.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:p.top+c("scrollTop","pageYOffset")};w=v("pageX",e)-f.left,O=v("pageY",e)-f.top,o.add(S||_,"gu-transit"),function(){if(!n){var e=_.getBoundingClientRect();(n=_.cloneNode(!0)).style.width=h(e)+"px",n.style.height=y(e)+"px",o.rm(n,"gu-transit"),o.add(n,"gu-mirror"),I.mirrorContainer.appendChild(n),a(u,"add","mousemove",Z),o.add(I.mirrorContainer,"gu-unselectable"),j.emit("cloned",n,_,"mirror")}}(),Z(e)}}else $({})}function B(e){if(!(j.dragging&&n||R(e))){for(var t=e;b(e)&&!1===R(b(e));){if(I.invalid(e,t))return;if(!(e=b(e)))return}var r=b(e);if(r&&!I.invalid(e,t)&&I.moves(e,r,t,g(e)))return{item:e,source:r}}}function V(e){("boolean"==typeof I.copy?I.copy:I.copy(e.item,e.source))&&(S=e.item.cloneNode(!0),j.emit("cloned",S,e.item,"copy")),k=e.source,_=e.item,T=x=g(e.item),j.dragging=!0,j.emit("drag",_,k)}function G(){if(j.dragging){var e=S||_;z(e,b(e))}}function H(){E=!1,N(!0),D(!0)}function $(e){if(H(),j.dragging){var t=S||_,r=v("clientX",e),i=v("clientY",e),o=Y(p(n,r,i),r,i);o&&(S&&I.copySortSource||!S||o!==k)?z(t,o):I.removeOnSpill?Q():W()}}function z(e,t){var n=b(e);S&&I.copySortSource&&t===k&&n.removeChild(_),J(t)?j.emit("cancel",e,k,k):j.emit("drop",e,t,k,x),q()}function Q(){if(j.dragging){var e=S||_,t=b(e);t&&t.removeChild(e),j.emit(S?"cancel":"remove",e,t,k),q()}}function W(e){if(j.dragging){var t=arguments.length>0?e:I.revertOnSpill,n=S||_,r=b(n),i=J(r);!1===i&&t&&(S?r&&r.removeChild(S):k.insertBefore(n,T)),i||t?j.emit("cancel",n,k,k):j.emit("drop",n,r,k,x),q()}}function q(){var e=S||_;H(),n&&(o.rm(I.mirrorContainer,"gu-unselectable"),a(u,"remove","mousemove",Z),b(n).removeChild(n),n=null),e&&o.rm(e,"gu-transit"),M&&clearTimeout(M),j.dragging=!1,P&&j.emit("out",e,P,k),j.emit("dragend",e),k=_=S=T=x=M=P=null}function J(e,t){var r;return r=void 0!==t?t:n?x:g(S||_),e===k&&r===T}function Y(e,t,n){for(var r=e;r&&!i();)r=b(r);return r;function i(){if(!1===R(r))return!1;var i=X(r,e),o=ee(r,i,t,n);return!!J(r,o)||I.accepts(_,r,k,o)}}function Z(e){if(n){e.preventDefault();var t=v("clientX",e),r=v("clientY",e),i=r-O;n.style.left=t-w+"px",n.style.top=i+"px";var o=S||_,l=p(n,t,r),u=Y(l,t,r),a=null!==u&&u!==P;(a||null===u)&&(P&&d("out"),P=u,a&&d("over"));var s=b(o);if(u!==k||!S||I.copySortSource){var c,f=X(u,l);if(null!==f)c=ee(u,f,t,r);else{if(!0!==I.revertOnSpill||S)return void(S&&s&&s.removeChild(o));c=T,u=k}(null===c&&a||c!==o&&c!==g(o))&&(x=c,u.insertBefore(o,c),j.emit("shadow",o,u,k))}else s&&s.removeChild(o)}function d(e){j.emit(e,o,P,k)}}function X(e,t){for(var n=t;n!==e&&b(n)!==e;)n=b(n);return n===u?null:n}function ee(e,t,n,r){var i,o="horizontal"===I.direction;return t!==e?(i=t.getBoundingClientRect(),(o?n>i.left+h(i)/2:r>i.top+y(i)/2)?g(t):t):function(){var t,i,l,u=e.children.length;for(t=0;t<u;t++){if(l=(i=e.children[t]).getBoundingClientRect(),o&&l.left+l.width/2>n)return i;if(!o&&l.top+l.height/2>r)return i}return null}()}}},Ys8N:function(e,t,n){"use strict";var r=[],i="",o=/^on/;for(i in global)o.test(i)&&r.push(i.slice(2));e.exports=r},YuTi: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}},ZEkC:function(e){e.exports=JSON.parse('{"isDefault":false,"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]}]}]}')},Zn8D:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("psW0"),i=n("mChF");function o(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(r.a)(i.a,e)}},ad02:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e,t){return function(n){return n.lift(new l(e,t))}}var l=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.compare,this.keySelector))},e}(),u=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.c(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(i.a)},anzk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("UEaM"),l=n("RGrK"),u=n("FREM");var a;!function(e){e[e.scancode=1]="scancode",e[e.modifierMask=2]="modifierMask",e[e.secondaryRoleAction=4]="secondaryRoleAction"}(a=t.KeystrokeActionFlag||(t.KeystrokeActionFlag={}));const s=3,c=["LCtrl","LShift","LAlt","LSuper","RCtrl","RShift","RAlt","RSuper"];class p extends l.KeyAction{constructor(e){super(),e&&(this.type=e.type,this._scancode=e._scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=e.secondaryRoleAction)}set scancode(e){this._scancode=e,this.type!==u.KeystrokeType.shortMedia&&this.type!==u.KeystrokeType.longMedia||(this.type=e<256?u.KeystrokeType.shortMedia:u.KeystrokeType.longMedia)}get scancode(){return this._scancode}set type(e){e!==u.KeystrokeType.shortMedia&&e!==u.KeystrokeType.longMedia||(e=this.scancode<256?u.KeystrokeType.shortMedia:u.KeystrokeType.longMedia),this._type=e}get type(){return this._type}fromJsonObject(e){return this.assertKeyActionType(e),this.type="media"===e.type?e.scancode<256?u.KeystrokeType.shortMedia:u.KeystrokeType.longMedia:u.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=o.SecondaryRoleAction[e.secondaryRoleAction],this}fromBinary(e){const t=this.readAndAssertKeyActionId(e)-l.KeyActionId.NoneAction;return this.type=t>>3&3,t&a.scancode&&(this._scancode=this.type===u.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),t&a.modifierMask&&(this.modifierMask=e.readUInt8()),t&a.secondaryRoleAction&&(this.secondaryRoleAction=e.readUInt8()),this}toJsonObject(){const e={keyActionType:l.keyActionType.KeystrokeAction};return e.type=this.type===u.KeystrokeType.shortMedia||this.type===u.KeystrokeType.longMedia?"media":u.KeystrokeType[this.type],this.hasScancode()&&(e.scancode=this._scancode),this.hasActiveModifier()&&(e.modifierMask=this.modifierMask),this.hasSecondaryRoleAction()&&(e.secondaryRoleAction=o.SecondaryRoleAction[this.secondaryRoleAction]),e}toBinary(e){let t=0;const n=[];this.hasScancode()&&(t|=a.scancode,n.push({data:this._scancode,long:this.type===u.KeystrokeType.longMedia})),this.hasActiveModifier()&&(t|=a.modifierMask,n.push({data:this.modifierMask,long:!1})),this.hasSecondaryRoleAction()&&(t|=a.secondaryRoleAction,n.push({data:this.secondaryRoleAction,long:!1})),e.writeUInt8(l.KeyActionId.NoneAction+(t+(this.type<<s)));for(let r=0;r<n.length;++r)n[r].long?e.writeUInt16(n[r].data):e.writeUInt8(n[r].data)}toString(){const e=[];return e.push(`type="${u.KeystrokeType[this.type]}"`),this.hasScancode()&&e.push(`scancode="${this._scancode}"`),this.hasActiveModifier()&&e.push(`modifierMask="${this.modifierMask}"`),this.hasSecondaryRoleAction()&&e.push(`secondaryRoleAction="${this.secondaryRoleAction}"`),`<KeystrokeAction ${e.join(" ")}>`}isActive(e){return(this.modifierMask&e)>0}hasActiveModifier(){return this.modifierMask>0}hasSecondaryRoleAction(){return null!=this.secondaryRoleAction}hasScancode(){return!!this._scancode}hasOnlyOneActiveModifier(){return 0!==this.modifierMask&&!(this.modifierMask&this.modifierMask-1)}getModifierList(){const e=[];let t=this.modifierMask;for(let n=0;0!==t;++n,t>>=1)1&t&&e.push(c[n]);return e}getName(){return"KeystrokeAction"}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],p.prototype,"modifierMask",void 0),r.__decorate([i.assertEnum(o.SecondaryRoleAction),r.__metadata("design:type",Number)],p.prototype,"secondaryRoleAction",void 0),r.__decorate([i.assertEnum(u.KeystrokeType),r.__metadata("design:type",Number)],p.prototype,"_type",void 0),t.KeystrokeAction=p},b7mW:function(e,t,n){"use strict";function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}n.d(t,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},bBst:function(e,t){var n=global.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(t){}return!1}()?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},dC0D:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new l(e,t,n))}}var l=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 u(e,this.accumulator,this.seed,this.hasSeed))},e}(),u=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.c(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(r){this.destination.error(r)}this.seed=t,this.destination.next(t)},t}(i.a)},diPy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("dk4d"),t),r.__exportStar(n("h1Ia"),t),r.__exportStar(n("rBfm"),t),r.__exportStar(n("Vib2"),t),r.__exportStar(n("+bod"),t),r.__exportStar(n("kIap"),t),r.__exportStar(n("G8Wf"),t);var i=n("CMKj");t.MacroActionHelper=i.Helper},dk4d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("rBfm");class l extends o.MacroAction{constructor(e){super(),e&&(this.delay=e.delay)}fromJsonObject(e){return this.assertMacroActionType(e),this.delay=e.delay,this}fromBinary(e){return this.readAndAssertMacroActionId(e),this.delay=e.readUInt16(),this}toJsonObject(){return{macroActionType:o.macroActionType.DelayMacroAction,delay:this.delay}}toBinary(e){e.writeUInt8(o.MacroActionId.DelayMacroAction),e.writeUInt16(this.delay)}toString(){return`<DelayMacroAction delay="${this.delay}">`}getName(){return"DelayMacroAction"}}r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],l.prototype,"delay",void 0),t.DelayMacroAction=l},h1Ia:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("rBfm"),l=n("TEuf");class u extends o.MacroAction{constructor(e){super(),e&&(this.action=e.action,this.type=e.type,this._scancode=e._scancode,this.modifierMask=e.modifierMask)}set scancode(e){this._scancode=e,this.type!==l.KeystrokeType.shortMedia&&this.type!==l.KeystrokeType.longMedia||(this.type=e<256?l.KeystrokeType.shortMedia:l.KeystrokeType.longMedia)}get scancode(){return this._scancode}fromJsonObject(e){return this.assertMacroActionType(e),this.action=o.MacroKeySubAction[e.action],this.type="media"===e.type?e.scancode<256?l.KeystrokeType.shortMedia:l.KeystrokeType.longMedia:l.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this}fromBinary(e){let t=this.readAndAssertMacroActionId(e)-o.MacroActionId.KeyMacroAction;return this.action=3&t,this.type=3&(t>>=2),2&(t>>=2)&&(this._scancode=this.type===l.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),1&t&&(this.modifierMask=e.readUInt8()),this}toJsonObject(){const e={macroActionType:o.macroActionType.KeyMacroAction,action:o.MacroKeySubAction[this.action]};return this.hasScancode()&&(e.type=this.type===l.KeystrokeType.shortMedia||this.type===l.KeystrokeType.longMedia?"media":l.KeystrokeType[this.type],e.scancode=this._scancode),this.hasModifiers()&&(e.modifierMask=this.modifierMask),e}toBinary(e){let t=0;t|=this.action,t|=this.type<<2,t|=(this.hasScancode()?2:0)+(this.hasModifiers()?1:0)<<4,e.writeUInt8(o.MacroActionId.KeyMacroAction+t),this.hasScancode()&&(this.type===l.KeystrokeType.longMedia?e.writeUInt16(this.scancode):e.writeUInt8(this.scancode)),this.hasModifiers()&&e.writeUInt8(this.modifierMask)}toString(){return`<KeyMacroAction action="${this.action}" scancode="${this._scancode}" modifierMask="${this.modifierMask}">`}isModifierActive(e){return(this.modifierMask&e)>0}hasScancode(){return!!this._scancode}hasModifiers(){return!!this.modifierMask}isPressAction(){return this.action===o.MacroKeySubAction.press}isTapAction(){return this.action===o.MacroKeySubAction.tap}isReleaseAction(){return this.action===o.MacroKeySubAction.release}getName(){return"KeyMacroAction"}}r.__decorate([i.assertEnum(o.MacroKeySubAction),r.__metadata("design:type",Number)],u.prototype,"action",void 0),r.__decorate([i.assertEnum(l.KeystrokeType),r.__metadata("design:type",Number)],u.prototype,"type",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],u.prototype,"modifierMask",void 0),r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],u.prototype,"_scancode",void 0),t.KeyMacroAction=u},h9Dq:function(e,t,n){"use strict";var r=n("mrSG"),i=function(e){function t(t,n){return e.call(this)||this}return r.c(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n("pugT").a);n.d(t,"a",function(){return o});var o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.c(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(i)},hRLZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Unknown="Unknown",e.Ok="Ok",e.NeedToSetup="NeedToSetup",e.Different="Different"}(t.UdevRulesInfo||(t.UdevRulesInfo={}))},hT0y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("RGrK");class l extends o.KeyAction{constructor(e){super(),e&&(this.macroId=e instanceof l?e.macroId:e.id)}fromJsonObject(e,t){return this.assertKeyActionType(e),this.macroId=t[e.macroIndex].id,this}fromBinary(e,t){this.readAndAssertKeyActionId(e);const n=e.readUInt8();return this.macroId=t[n].id,this}toJsonObject(e){return{keyActionType:o.keyActionType.PlayMacroAction,macroIndex:e.findIndex(e=>e.id===this.macroId)}}toBinary(e,t){e.writeUInt8(o.KeyActionId.PlayMacroAction),e.writeUInt8(t.macros.findIndex(e=>e.id===this.macroId))}toString(){return`<PlayMacroAction macroId="${this.macroId}">`}getName(){return"PlayMacroAction"}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],l.prototype,"macroId",void 0),t.PlayMacroAction=l},"i/vr":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("TEuf");(t.ConfigSerializer||(t.ConfigSerializer={})).resolveSwitchKeymapActions=function(e){for(const t of e)for(const n of t.layers)for(const t of n.modules)for(let n=0;n<t.keyActions.length;++n){const i=t.keyActions[n];i instanceof r.UnresolvedSwitchKeymapAction&&(t.keyActions[n]=i.resolve(e))}}},iLxQ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},isby:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},jMwT:function(e,t){t.read=function(e,t,n,r,i){var o,l,u=8*i-r-1,a=(1<<u)-1,s=a>>1,c=-7,p=n?i-1:0,f=n?-1:1,d=e[t+p];for(p+=f,o=d&(1<<-c)-1,d>>=-c,c+=u;c>0;o=256*o+e[t+p],p+=f,c-=8);for(l=o&(1<<-c)-1,o>>=-c,c+=r;c>0;l=256*l+e[t+p],p+=f,c-=8);if(0===o)o=1-s;else{if(o===a)return l?NaN:1/0*(d?-1:1);l+=Math.pow(2,r),o-=s}return(d?-1:1)*l*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var l,u,a,s=8*o-i-1,c=(1<<s)-1,p=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?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+p>=1?f/a:f*Math.pow(2,1-p))*a>=2&&(l++,a/=2),l+p>=c?(u=0,l=c):l+p>=1?(u=(t*a-1)*Math.pow(2,i),l+=p):(u=t*Math.pow(2,p-1)*Math.pow(2,i),l=0));i>=8;e[n+d]=255&u,d+=h,u/=256,i-=8);for(l=l<<i|u,s+=i;s>0;e[n+d]=255&l,d+=h,l/=256,s-=8);e[n+d-h]|=128*y}},jWEn:function(e,t){var n;t=e.exports=Q,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],l=t.src=[],u=0,a=u++;l[a]="0|[1-9]\\d*";var s=u++;l[s]="[0-9]+";var c=u++;l[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=u++;l[p]="("+l[a]+")\\.("+l[a]+")\\.("+l[a]+")";var f=u++;l[f]="("+l[s]+")\\.("+l[s]+")\\.("+l[s]+")";var d=u++;l[d]="(?:"+l[a]+"|"+l[c]+")";var h=u++;l[h]="(?:"+l[s]+"|"+l[c]+")";var y=u++;l[y]="(?:-("+l[d]+"(?:\\."+l[d]+")*))";var b=u++;l[b]="(?:-?("+l[h]+"(?:\\."+l[h]+")*))";var m=u++;l[m]="[0-9A-Za-z-]+";var g=u++;l[g]="(?:\\+("+l[m]+"(?:\\."+l[m]+")*))";var v=u++,k="v?"+l[p]+l[y]+"?"+l[g]+"?";l[v]="^"+k+"$";var _="[v=\\s]*"+l[f]+l[b]+"?"+l[g]+"?",w=u++;l[w]="^"+_+"$";var O=u++;l[O]="((?:<|>)?=?)";var A=u++;l[A]=l[s]+"|x|X|\\*";var C=u++;l[C]=l[a]+"|x|X|\\*";var T=u++;l[T]="[v=\\s]*("+l[C]+")(?:\\.("+l[C]+")(?:\\.("+l[C]+")(?:"+l[y]+")?"+l[g]+"?)?)?";var x=u++;l[x]="[v=\\s]*("+l[A]+")(?:\\.("+l[A]+")(?:\\.("+l[A]+")(?:"+l[b]+")?"+l[g]+"?)?)?";var S=u++;l[S]="^"+l[O]+"\\s*"+l[T]+"$";var M=u++;l[M]="^"+l[O]+"\\s*"+l[x]+"$";var E=u++;l[E]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var P=u++;l[P]="(?:~>?)";var I=u++;l[I]="(\\s*)"+l[P]+"\\s+",o[I]=new RegExp(l[I],"g");var j=u++;l[j]="^"+l[P]+l[T]+"$";var R=u++;l[R]="^"+l[P]+l[x]+"$";var L=u++;l[L]="(?:\\^)";var N=u++;l[N]="(\\s*)"+l[L]+"\\s+",o[N]=new RegExp(l[N],"g");var D=u++;l[D]="^"+l[L]+l[T]+"$";var U=u++;l[U]="^"+l[L]+l[x]+"$";var F=u++;l[F]="^"+l[O]+"\\s*("+_+")$|^$";var K=u++;l[K]="^"+l[O]+"\\s*("+k+")$|^$";var B=u++;l[B]="(\\s*)"+l[O]+"\\s*("+_+"|"+l[T]+")",o[B]=new RegExp(l[B],"g");var V=u++;l[V]="^\\s*("+l[T]+")\\s+-\\s+("+l[T]+")\\s*$";var G=u++;l[G]="^\\s*("+l[x]+")\\s+-\\s+("+l[x]+")\\s*$";var H=u++;l[H]="(<|>)?=?\\s*\\*";for(var $=0;$<35;$++)n($,l[$]),o[$]||(o[$]=new RegExp(l[$]));function z(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Q)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[w]:o[v]).test(e))return null;try{return new Q(e,t)}catch(n){return null}}function Q(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Q){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof Q))return new Q(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var l=e.trim().match(t.loose?o[w]:o[v]);if(!l)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=l[4]?l[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e}):[],this.build=l[5]?l[5].split("."):[],this.format()}t.parse=z,t.valid=function(e,t){var n=z(e,t);return n?n.version:null},t.clean=function(e,t){var n=z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=Q,Q.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Q.prototype.toString=function(){return this.version},Q.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof Q||(e=new Q(e,this.options)),this.compareMain(e)||this.comparePre(e)},Q.prototype.compareMain=function(e){return e instanceof Q||(e=new Q(e,this.options)),q(this.major,e.major)||q(this.minor,e.minor)||q(this.patch,e.patch)},Q.prototype.comparePre=function(e){if(e instanceof Q||(e=new Q(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return q(r,i)}while(++t)},Q.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new Q(e,n).inc(t,r).version}catch(i){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=z(e),r=z(t);if(n.prerelease.length||r.prerelease.length){for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return"pre"+i;return"prerelease"}for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return i},t.compareIdentifiers=q;var W=/^[0-9]+$/;function q(e,t){var n=W.test(e),r=W.test(t);return n&&r&&(e=+e,t=+t),n&&!r?-1:r&&!n?1:e<t?-1:e>t?1:0}function J(e,t,n){return new Q(e,n).compare(new Q(t,n))}function Y(e,t,n){return J(e,t,n)>0}function Z(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function ee(e,t,n){return 0!==J(e,t,n)}function te(e,t,n){return J(e,t,n)>=0}function ne(e,t,n){return J(e,t,n)<=0}function re(e,t,n,r){var i;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e===n;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e!==n;break;case"":case"=":case"==":i=X(e,n,r);break;case"!=":i=ee(e,n,r);break;case">":i=Y(e,n,r);break;case">=":i=te(e,n,r);break;case"<":i=Z(e,n,r);break;case"<=":i=ne(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return i}function ie(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===oe?"":this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return q(t,e)},t.major=function(e,t){return new Q(e,t).major},t.minor=function(e,t){return new Q(e,t).minor},t.patch=function(e,t){return new Q(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})},t.rsort=function(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})},t.gt=Y,t.lt=Z,t.eq=X,t.neq=ee,t.gte=te,t.lte=ne,t.cmp=re,t.Comparator=ie;var oe={};function le(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof le)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new le(e.raw,t);if(e instanceof ie)return new le(e.value,t);if(!(this instanceof le))return new le(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ue(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,l,u,a,s,c,p,f){return((t=ue(n)?"":ue(r)?">="+n+".0.0":ue(i)?">="+n+"."+r+".0":">="+t)+" "+(u=ue(a)?"":ue(s)?"<"+(+a+1)+".0.0":ue(c)?"<"+a+"."+(+s+1)+".0":p?"<="+a+"."+s+"."+c+"-"+p:"<="+u)).trim()}function se(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(r||(r={}),t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==oe&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new le(t,n)}catch(r){return!1}return t.test(e)}function pe(e,t,n,r){var i,o,l,u,a;switch(e=new Q(e,r),t=new le(t,r),n){case">":i=Y,o=ne,l=Z,u=">",a=">=";break;case"<":i=Z,o=te,l=Y,u="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var s=0;s<t.set.length;++s){var c=null,p=null;if(t.set[s].forEach(function(e){e.semver===oe&&(e=new ie(">=0.0.0")),p=p||e,i(e.semver,(c=c||e).semver,r)?c=e:l(e.semver,p.semver,r)&&(p=e)}),c.operator===u||c.operator===a)return!1;if((!p.operator||p.operator===u)&&o(e,p.semver))return!1;if(p.operator===a&&l(e,p.semver))return!1}return!0}ie.prototype.parse=function(e){var t=e.match(this.options.loose?o[F]:o[K]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=t[1],"="===this.operator&&(this.operator=""),this.semver=t[2]?new Q(t[2],this.options.loose):oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new Q(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new le(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new le(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,l=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),u=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),a=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&l||u||a},t.Range=le,le.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},le.prototype.toString=function(){return this.range},le.prototype.parseRange=function(e){var t=this.options.loose;e=(e=e.trim()).replace(t?o[G]:o[V],ae),n("hyphen replace",e),e=e.replace(o[B],"$1$2$3"),n("comparator trim",e,o[B]),e=(e=(e=e.replace(o[I],"$1~")).replace(o[N],"$1^")).split(/\s+/).join(" ");var r=t?o[F]:o[K],i=e.split(" ").map(function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){return n("caret",e,t),t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e.replace(t.loose?o[U]:o[D],function(t,r,i,o,l){var u;return n("caret",e,t,r,i,o,l),ue(r)?u="":ue(i)?u=">="+r+".0.0 <"+(+r+1)+".0.0":ue(o)?u="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":l?(n("replaceCaret pr",l),"-"!==l.charAt(0)&&(l="-"+l),u="0"===r?"0"===i?">="+r+"."+i+"."+o+l+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+l+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+l+" <"+(+r+1)+".0.0"):(n("no pr"),u="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",u),u})}(e,t)}).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){return t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e.replace(t.loose?o[R]:o[j],function(t,r,i,o,l){var u;return n("tilde",e,t,r,i,o,l),ue(r)?u="":ue(i)?u=">="+r+".0.0 <"+(+r+1)+".0.0":ue(o)?u=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":l?(n("replaceTilde pr",l),"-"!==l.charAt(0)&&(l="-"+l),u=">="+r+"."+i+"."+o+l+" <"+r+"."+(+i+1)+".0"):u=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",u),u})}(e,t)}).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){return t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),(e=e.trim()).replace(t.loose?o[M]:o[S],function(t,r,i,o,l,u){n("xRange",e,t,r,i,o,l,u);var a=ue(i),s=a||ue(o),c=s||ue(l);return"="===r&&c&&(r=""),a?t=">"===r||"<"===r?"<0.0.0":"*":r&&c?(s&&(o=0),c&&(l=0),">"===r?(r=">=",s?(i=+i+1,o=0,l=0):c&&(o=+o+1,l=0)):"<="===r&&(r="<",s?i=+i+1:o=+o+1),t=r+i+"."+o+"."+l):s?t=">="+i+".0.0 <"+(+i+1)+".0.0":c&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t})}(e,t)}).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[H],"")}(e,t),n("stars",e),e}(e,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(r)})),i.map(function(e){return new ie(e,this.options)},this)},le.prototype.intersects=function(e,t){if(!(e instanceof le))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=function(e,t){return new le(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},le.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new Q(e,this.options));for(var t=0;t<this.set.length;t++)if(se(this.set[t],e,this.options))return!0;return!1},t.satisfies=ce,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new le(t,n)}catch(l){return null}return e.forEach(function(e){o.test(e)&&(r&&-1!==i.compare(e)||(i=new Q(r=e,n)))}),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new le(t,n)}catch(l){return null}return e.forEach(function(e){o.test(e)&&(r&&1!==i.compare(e)||(i=new Q(r=e,n)))}),r},t.validRange=function(e,t){try{return new le(e,t).range||"*"}catch(n){return null}},t.ltr=function(e,t,n){return pe(e,t,"<",n)},t.gtr=function(e,t,n){return pe(e,t,">",n)},t.outside=pe,t.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new le(e,n),t=new le(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof Q)return e;if("string"!=typeof e)return null;var t=e.match(o[E]);return null==t?null:z((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}},kIap:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("rBfm");class l extends o.MacroAction{constructor(e){super(),e&&(this.x=e.x,this.y=e.y)}fromJsonObject(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this}fromBinary(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this}toJsonObject(){return{macroActionType:o.macroActionType.ScrollMouseMacroAction,x:this.x,y:this.y}}toBinary(e){e.writeUInt8(o.MacroActionId.ScrollMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)}toString(){return`<ScrollMouseMacroAction pos="(${this.x},${this.y})">`}getName(){return"ScrollMouseMacroAction"}}r.__decorate([i.assertInt16,r.__metadata("design:type",Number)],l.prototype,"x",void 0),r.__decorate([i.assertInt16,r.__metadata("design:type",Number)],l.prototype,"y",void 0),t.ScrollMouseMacroAction=l},kS0V:function(e,t,n){"use strict";t.byteLength=function(e){var t=s(e),n=t[1];return 3*(t[0]+n)/4-n},t.toByteArray=function(e){for(var t,n=s(e),r=n[0],l=n[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,r,l)),a=0,c=l>0?r-4:r,p=0;p<c;p+=4)t=i[e.charCodeAt(p)]<<18|i[e.charCodeAt(p+1)]<<12|i[e.charCodeAt(p+2)]<<6|i[e.charCodeAt(p+3)],u[a++]=t>>16&255,u[a++]=t>>8&255,u[a++]=255&t;return 2===l&&(t=i[e.charCodeAt(p)]<<2|i[e.charCodeAt(p+1)]>>4,u[a++]=255&t),1===l&&(t=i[e.charCodeAt(p)]<<10|i[e.charCodeAt(p+1)]<<4|i[e.charCodeAt(p+2)]>>2,u[a++]=t>>8&255,u[a++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],l=0,u=n-i;l<u;l+=16383)o.push(c(e,l,l+16383>u?u:l+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=l.length;u<a;++u)r[u]=l[u],i[l.charCodeAt(u)]=u;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o=[],l=t;l<n;l+=3)o.push(r[(i=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},lLol:function(e,t,n){"use strict";n.r(t);var r=n("CcnG"),i=function(){return function(){}}(),o=function(e){return e.UpdateAvailable="[app-update] update available",e.UpdateApp="[app-update] update app",e.DoNotUpdateApp="[app-update] do not update app",e.UpdateDownloaded="[app-update] update downloaded",e.Updating="[app-update] updating",e.UpdateError="[app-update] error",e}({}),l=function(){return function(){this.type=o.UpdateApp}}(),u=function(){return function(){this.type=o.DoNotUpdateApp}}(),a=function(){return function(e){this.payload=e,this.type=o.UpdateDownloaded}}(),s=function(){return function(e){this.payload=e,this.type=o.UpdateError}}(),c=function(e){return e.SetPrivilegeOnLinux="[device] set privilege on linux",e.SetPrivilegeOnLinuxReply="[device] set privilege on linux reply",e.ConnectionStateChanged="[device] connection state changed",e.SaveConfiguration="[device] save configuration",e.SaveConfigurationReply="[device] save configuration reply",e.SavingConfiguration="[device] saving configuration",e.ShowSaveToKeyboardButton="[device] show save to keyboard button",e.SaveToKeyboardSuccess="[device] save to keyboard success",e.SaveToKeyboardFailed="[device] save to keyboard failed",e.HideSaveToKeyboardButton="[device] hide save to keyboard button",e.ResetUserConfiguration="[device] reset user configuration",e.ResetPcMouseSpeedSettings="[device] reset PC mouse speed settings",e.ResetMacMouseSpeedSettings="[device] reset Mac mouse speed settings",e.UpdateFirmware="[device] update firmware",e.UpdateFirmwareWith="[device] update firmware with",e.UpdateFirmwareReply="[device] update firmware reply",e.UpdateFirmwareSuccess="[device] update firmware success",e.UpdateFirmwareFailed="[device] update firmware failed",e.ModulesInfoLoaded="[device] module info loaded",e.HasBackupUserConfiguration="[device] Store backup user configuration",e.RestoreConfigurationFromBackup="[device] Restore configuration from backup",e.RestoreConfigurationFromBackupSuccess="[device] Restore configuration from backup success",e.RecoveryDevice="[device] Recovery device",e.EnableUsbStackTest="[device] USB stack test",e.StartConnectionPoller="[device] Start connection poller",e}({}),p=function(){return function(){this.type=c.SetPrivilegeOnLinux}}(),f=function(){return function(e){this.payload=e,this.type=c.SetPrivilegeOnLinuxReply}}(),d=function(){return function(e){this.payload=e,this.type=c.ConnectionStateChanged}}(),h=function(){return function(){this.type=c.SaveConfiguration}}(),y=function(){return function(e){this.payload=e,this.type=c.SaveConfigurationReply}}(),b=function(){return function(){this.type=c.ShowSaveToKeyboardButton}}(),m=function(){return function(){this.type=c.SaveToKeyboardSuccess}}(),g=function(){return function(){this.type=c.SaveToKeyboardFailed}}(),v=function(){return function(){this.type=c.HideSaveToKeyboardButton}}(),k=function(){return function(){this.type=c.ResetUserConfiguration}}(),_=function(){return function(){this.type=c.UpdateFirmware}}(),w=function(){return function(e){this.payload=e,this.type=c.UpdateFirmwareWith}}(),O=function(){return function(e){this.payload=e,this.type=c.UpdateFirmwareReply}}(),A=function(){return function(e){this.payload=e,this.type=c.UpdateFirmwareSuccess}}(),C=function(){return function(e){this.payload=e,this.type=c.UpdateFirmwareFailed}}(),T=function(){return function(){this.type=c.ResetPcMouseSpeedSettings}}(),x=function(){return function(){this.type=c.ResetMacMouseSpeedSettings}}(),S=function(){return function(e){this.payload=e,this.type=c.ModulesInfoLoaded}}(),M=function(){return function(){this.type=c.RestoreConfigurationFromBackup}}(),E=function(){return function(e){this.payload=e,this.type=c.HasBackupUserConfiguration}}(),P=function(){return function(){this.type=c.RestoreConfigurationFromBackupSuccess}}(),I=function(){return function(){this.type=c.RecoveryDevice}}(),j=function(){return function(){this.type=c.EnableUsbStackTest}}(),R=function(){return function(){this.type=c.StartConnectionPoller}}(),L=n("yGQT"),N=n("mrSG"),D=function(){return function(){}}(),U=new r.q("Location Initialized"),F=function(){return function(){}}(),K=new r.q("appBaseHref"),B=function(){function e(e,n){var i=this;this._subject=new r.m,this._urlChangeListeners=[],this._platformStrategy=e;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=t.stripTrailingSlash(V(o)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}var t;return t=e,e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.getState=function(){return this._platformLocation.getState()},e.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},e.prototype.normalize=function(e){return t.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,V(e)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,n,r){void 0===n&&(n=""),void 0===r&&(r=null),this._platformStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+t.normalizeQueryParams(n)),r)},e.prototype.replaceState=function(e,n,r){void 0===n&&(n=""),void 0===r&&(r=null),this._platformStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+t.normalizeQueryParams(n)),r)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.onUrlChange=function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)})},e.prototype._notifyUrlChangeListeners=function(e,t){void 0===e&&(e=""),this._urlChangeListeners.forEach(function(n){return n(e,t)})},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 V(e){return e.replace(/\/index.html$/,"")}var G=function(e){function t(t,n){var r=e.call(this)||this;return r._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(N.c)(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=B.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+B.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+B.normalizeQueryParams(r));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}(F),H=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._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 r._baseHref=n,r}return Object(N.c)(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 B.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+B.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+B.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+B.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(F),z=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Q=r.wb,W=new r.q("UseV4Plurals"),q=function(){return function(){}}(),J=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(N.c)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):Q(t||this.locale)(e)){case z.Zero:return"zero";case z.One:return"one";case z.Two:return"two";case z.Few:return"few";case z.Many:return"many";default:return"other"}},t}(q);function Y(e,t){var n,r;t=encodeURIComponent(t);try{for(var i=Object(N.h)(e.split(";")),o=i.next();!o.done;o=i.next()){var l=o.value,u=l.indexOf("="),a=Object(N.f)(-1==u?[l,""]:[l.slice(0,u),l.slice(u+1)],2),s=a[1];if(a[0].trim()===t)return decodeURIComponent(s)}}catch(c){n={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}var Z=function(){return function(){}}(),X=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return e.prototype.getValue=function(){return null},e.prototype.setClass=function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},e.prototype.setNgClass=function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.zb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},e.prototype.applyChanges=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.Nb)(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),ee=function(e){function t(t){return e.call(this,t)||this}return Object(N.c)(t,e),Object.defineProperty(t.prototype,"klass",{set:function(e){this._delegate.setClass(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(e){this._delegate.setNgClass(e)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){this._delegate.applyChanges()},t}(function(){function e(e){this._delegate=e}return e.prototype.getValue=function(){return this._delegate.getValue()},e.ngDirectiveDef=void 0,e}()),te=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),ne=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(r.Y)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new te(null,t._ngForOf,-1,-1),null===i?void 0:i),l=new re(e,o);n.push(l)}else null==i?t._viewContainer.remove(null===r?void 0:r):null!==r&&(o=t._viewContainer.get(r),t._viewContainer.move(o,i),l=new re(e,o),n.push(l))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e.ngTemplateContextGuard=function(e,t){return!0},e}(),re=function(){return function(e,t){this.record=e,this.view=t}}(),ie=function(){function e(e,t){this._viewContainer=e,this._context=new oe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){le("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){le("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},e}(),oe=function(){return function(){this.$implicit=null,this.ngIf=null}}();function le(e,t){if(t&&!t.createEmbeddedView)throw new Error(e+" must be a TemplateRef, but received '"+Object(r.Nb)(t)+"'.")}var ue=function(){function e(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}return e.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},e.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},e.prototype.enforceState=function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()},e}(),ae=function(){function e(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(e.prototype,"ngSwitch",{set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),e.prototype._addCase=function(){return this._caseCount++},e.prototype._addDefault=function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)},e.prototype._matchCase=function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t},e.prototype._updateDefaultCases=function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}},e}(),se=function(){function e(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new ue(e,t)}return e.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},e}(),ce=function(){return function(e,t,n){n._addDefault(new ue(e,t))}}(),pe=function(){function e(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return e.prototype.ngOnChanges=function(e){this._shouldRecreateView(e)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},e.prototype._shouldRecreateView=function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)},e.prototype._hasContextShapeChanged=function(e){var t,n,r=Object.keys(e.previousValue||{}),i=Object.keys(e.currentValue||{});if(r.length===i.length){try{for(var o=Object(N.h)(i),l=o.next();!l.done;l=o.next())if(-1===r.indexOf(l.value))return!0}catch(u){t={error:u}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!1}return!0},e.prototype._updateExistingContext=function(e){var t,n;try{for(var r=Object(N.h)(Object.keys(e)),i=r.next();!i.done;i=r.next()){var o=i.value;this._viewRef.context[o]=this.ngTemplateOutletContext[o]}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e}(),fe=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},e.prototype.dispose=function(e){e.unsubscribe()},e.prototype.onDestroy=function(e){e.unsubscribe()},e}(),de=new(function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}()),he=new fe,ye=function(){function e(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}var t;return t=e,e.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},e.prototype.transform=function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):Object(r.Cb)(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.R.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)},e.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})},e.prototype._selectStrategy=function(e){if(Object(r.Bb)(e))return de;if(Object(r.Ab)(e))return he;throw n=t,Error("InvalidPipeArgument: '"+e+"' for pipe '"+Object(r.Nb)(n)+"'");var n},e.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},e.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},e}(),be=function(){return function(){}}(),me=new r.q("DocumentToken"),ge="server",ve=function(){function e(){}return e.ngInjectableDef=Object(r.Ub)({token:e,providedIn:"root",factory:function(){return new ke(Object(r.Vb)(me),window,Object(r.Vb)(r.l))}}),e}(),ke=function(){function e(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=function(){return[0,0]}}return e.prototype.setOffset=function(e){this.offset=Array.isArray(e)?function(){return e}:e},e.prototype.getScrollPosition=function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]},e.prototype.scrollToPosition=function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])},e.prototype.scrollToAnchor=function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#"+e);if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='"+e+"']");if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}},e.prototype.setHistoryScrollRestoration=function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}},e.prototype.scrollToElement=function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])},e.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}},e}(),_e=n("F/XL"),we=n("0/uQ"),Oe=n("26FU"),Ae=n("6blF");function Ce(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ce.prototype=Object.create(Error.prototype);var Te=Ce,xe=n("nkY7"),Se=n("isby"),Me=n("MGBS"),Ee=n("zotm"),Pe=n("IUTb"),Ie={};function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null,r=null;return Object(xe.a)(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&Object(Se.a)(e[0])&&(e=e[0]),Object(Pe.a)(e,r).lift(new Re(n))}var Re=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Le(e,this.resultSelector))},e}(),Le=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return N.c(t,e),t.prototype._next=function(e){this.values.push(Ie),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(Object(Ee.a)(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.values,l=this.toRespond?o[n]===Ie?--this.toRespond:this.toRespond:0;o[n]=t,0===l&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(Me.a),Ne=n("G5J1");function De(e){return new Ae.a(function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(we.a)(n):Object(Ne.b)()).subscribe(t)})}var Ue=n("K9Ia"),Fe=n("67Y/"),Ke=n("Zn8D");function Be(){return Object(Ke.a)(1)}var Ve=n("VnD/"),Ge=n("FFOo"),He=n("b7mW");function $e(e){return function(t){return 0===e?Object(Ne.b)():t.lift(new ze(e))}}var ze=function(){function e(e){if(this.total=e,this.total<0)throw new He.a}return e.prototype.call=function(e,t){return t.subscribe(new Qe(e,this.total))},e}(),Qe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return N.c(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()},t}(Ge.a);function We(e){return void 0===e&&(e=Ye),function(t){return t.lift(new qe(e))}}var qe=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new Je(e,this.errorFactory))},e}(),Je=function(e){function t(t,n){var r=e.call(this,t)||this;return r.errorFactory=n,r.hasValue=!1,r}return N.c(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(Ge.a);function Ye(){return new Te}function Ze(e){return void 0===e&&(e=null),function(t){return t.lift(new Xe(e))}}var Xe=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new et(e,this.defaultValue))},e}(),et=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return N.c(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}(Ge.a),tt=n("mChF");function nt(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(Ve.a)(function(t,n){return e(t,n,r)}):tt.a,$e(1),n?Ze(t):We(function(){return new Te}))}}var rt=n("9Z1F"),it=n("t9fZ");function ot(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(Ve.a)(function(t,n){return e(t,n,r)}):tt.a,Object(it.a)(1),n?Ze(t):We(function(){return new Te}))}}var lt=n("psW0"),ut=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new at(e,this.predicate,this.thisArg,this.source))},e}(),at=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return N.c(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(Ge.a),st=n("15JJ");function ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Be()(_e.a.apply(void 0,e))}function pt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return Object(xe.a)(n)?(e.pop(),function(t){return ct(e,t,n)}):function(t){return ct(e,t)}}var ft=n("dC0D"),dt=n("Phjn"),ht=n("y3By");function yt(e,t){return arguments.length>=2?function(n){return Object(ht.a)(Object(ft.a)(e,t),$e(1),Ze(t))(n)}:function(t){return Object(ht.a)(Object(ft.a)(function(t,n,r){return e(t,n,r+1)}),$e(1))(t)}}var bt=n("+umK"),mt=n("2Bdj");function gt(e,t,n){return function(r){return r.lift(new vt(e,t,n))}}var vt=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 kt(e,this.nextOrObserver,this.error,this.complete))},e}(),kt=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._tapNext=bt.a,o._tapError=bt.a,o._tapComplete=bt.a,o._tapError=r||bt.a,o._tapComplete=i||bt.a,Object(mt.a)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||bt.a,o._tapError=n.error||bt.a,o._tapComplete=n.complete||bt.a),o}return N.c(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(Ge.a),_t=n("pugT"),wt=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new Ot(e,this.callback))},e}(),Ot=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new _t.a(n)),r}return N.c(t,e),t}(Ge.a),At=null;function Ct(){return At}var Tt,xt=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=t.getStyle(n,r[i]+"AnimationName")){t._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=o[e])})}catch(l){t._animationPrefix=null,t._transitionEnd=null}return t}return Object(N.c)(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}()),St={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Mt={"\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"},Et={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"},Pt=function(){if(r.xb.Node)return r.xb.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}}(),It=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,At||(At=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 r;(r=e)[t].apply(r,Object(N.g)(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 St},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return Pt.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),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var i=n.item(r);t.set(i.name,i.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Et.hasOwnProperty(t)&&(t=Et[t]))}return Mt[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t,n=jt||(jt=document.querySelector("base"))?jt.getAttribute("href"):null;return null==n?null:(t=n,Tt||(Tt=document.createElement("a")),Tt.setAttribute("href",t),"/"===Tt.pathname.charAt(0)?Tt.pathname:"/"+Tt.pathname)},t.prototype.resetBaseElement=function(){jt=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return Y(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(xt),jt=null;function Rt(){return!!window.history.pushState}var Lt=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}return Object(N.c)(t,e),t.prototype._init=function(){this.location=Ct().getLocation(),this._history=Ct().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return Ct().getBaseHref(this._doc)},t.prototype.onPopState=function(e){Ct().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){Ct().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){Rt()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){Rt()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t.prototype.getState=function(){return this._history.state},Object(N.b)([Object(N.e)(0,Object(r.p)(me)),Object(N.d)("design:paramtypes",[Object])],t)}(D),Nt=new r.q("TRANSITION_ID"),Dt=[{provide:r.d,useFactory:function(e,t,n){return function(){n.get(r.e).donePromise.then(function(){var n=Ct();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Nt,me,r.r],multi:!0}],Ut=function(){function e(){}return e.init=function(){Object(r.ab)(new e)},e.prototype.addToWindow=function(e){r.xb.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},r.xb.getAllAngularTestabilities=function(){return e.getAllTestabilities()},r.xb.getAllAngularRootElements=function(){return e.getAllRootElements()},r.xb.frameworkStabilizers||(r.xb.frameworkStabilizers=[]),r.xb.frameworkStabilizers.push(function(e){var t=r.xb.getAllAngularTestabilities(),n=t.length,i=!1,o=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(o)})})},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Ct().isShadowRoot(t)?this.findTestabilityInTree(e,Ct().getHost(t),!0):this.findTestabilityInTree(e,Ct().parentElement(t),!0):null},e}();function Ft(e,t){"undefined"!=typeof COMPILED&&COMPILED||((r.xb.ng=r.xb.ng||{})[e]=t)}var Kt=function(){return{ApplicationRef:r.g,NgZone:r.A}}();function Bt(e){return Object(r.W)(e)}var Vt=new r.q("EventManagerPlugins"),Gt=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)},e}(),Ht=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var r=Ct().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)},e}(),$t=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}(),zt=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return Object(N.c)(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return Ct().remove(e)})},t}($t),Qt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Wt=/%COMP%/g,qt="_nghost-%COMP%",Jt="_ngcontent-%COMP%";function Yt(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?Yt(e,i,n):(i=i.replace(Wt,e),n.push(i))}return n}function Zt(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Xt=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new en(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case r.Q.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new rn(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case r.Q.Native:case r.Q.ShadowDom:return new on(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=Yt(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}(),en=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(Qt[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var i=Qt[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=Qt[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,i){i&r.G.DashCase?e.style.setProperty(t,n,i&r.G.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&r.G.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){nn(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return nn(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Zt(n)):this.eventManager.addEventListener(e,t,Zt(n))},e}(),tn=function(){return"@".charCodeAt(0)}();function nn(e,t){if(e.charCodeAt(0)===tn)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var rn=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;o.component=r;var l=Yt(i+"-"+r.id,r.styles,[]);return n.addStyles(l),o.contentAttr=Jt.replace(Wt,i+"-"+r.id),o.hostAttr=qt.replace(Wt,i+"-"+r.id),o}return Object(N.c)(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(en),on=function(e){function t(t,n,i,o){var l=e.call(this,t)||this;l.sharedStylesHost=n,l.hostEl=i,l.component=o,l.shadowRoot=o.encapsulation===r.Q.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),l.sharedStylesHost.addHost(l.shadowRoot);for(var u=Yt(o.id,o.styles,[]),a=0;a<u.length;a++){var s=document.createElement("style");s.textContent=u[a],l.shadowRoot.appendChild(s)}return l}return Object(N.c)(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(en),ln=function(){return"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e}}(),un=ln("addEventListener"),an=ln("removeEventListener"),sn={},cn="__zone_symbol__propagationStopped",pn=function(){var e="undefined"!=typeof Zone&&Zone[ln("BLACK_LISTED_EVENTS")];if(e){var t={};return e.forEach(function(e){t[e]=e}),t}}(),fn=function(e){return!!pn&&pn.hasOwnProperty(e)},dn=function(e){var t=sn[e.type];if(t){var n=this[t];if(n){var r=[e];if(1===n.length)return(l=n[0]).zone!==Zone.current?l.zone.run(l.handler,this,r):l.handler.apply(this,r);for(var i=n.slice(),o=0;o<i.length&&!0!==e[cn];o++){var l;(l=i[o]).zone!==Zone.current?l.zone.run(l.handler,this,r):l.handler.apply(this,r)}}}},hn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.ngZone=n,r&&function(e){return e===ge}(r)||i.patchEvent(),i}return Object(N.c)(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[cn]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var i=this,o=n;if(!e[un]||r.A.isInAngularZone()&&!fn(t))e.addEventListener(t,o,!1);else{var l=sn[t];l||(l=sn[t]=ln("ANGULAR"+t+"FALSE"));var u=e[l],a=u&&u.length>0;u||(u=e[l]=[]);var s=fn(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:s,handler:o});else{for(var c=!1,p=0;p<u.length;p++)if(u[p].handler===o){c=!0;break}c||u.push({zone:s,handler:o})}a||e[un](t,dn,!1)}return function(){return i.removeEventListener(e,t,o)}},t.prototype.removeEventListener=function(e,t,n){var r=e[an];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);var i=sn[t],o=i&&e[i];if(!o)return e.removeEventListener.apply(e,[t,n,!1]);for(var l=!1,u=0;u<o.length;u++)if(o[u].handler===n){l=!0,o.splice(u,1);break}l?0===o.length&&r.apply(e,[t,dn,!1]):e.removeEventListener.apply(e,[t,n,!1])},t}(Ht),yn={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},bn=new r.q("HammerGestureConfig"),mn=new r.q("HammerLoader"),gn=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e}(),vn=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._config=n,o.console=r,o.loader=i,o}return Object(N.c)(t,e),t.prototype.supports=function(e){return!(!yn.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},t.prototype.addEventListener=function(e,t,n){var r=this,i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var o=!1,l=function(){o=!0};return this.loader().then(function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(l=function(){});o||(l=r.addEventListener(e,t,n))}).catch(function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),l=function(){}}),function(){l()}}return i.runOutsideAngular(function(){var o=r._config.buildHammer(e),l=function(e){i.runGuarded(function(){n(e)})};return o.on(t,l),function(){o.off(t,l),"function"==typeof o.destroy&&o.destroy()}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t}(Ht),kn=["alt","control","meta","shift"],_n={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},wn=function(e){function t(t){return e.call(this,t)||this}var n;return Object(N.c)(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var i=n.parseEventName(t),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Ct().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),o="";if(kn.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var l={};return l.domEventName=r,l.fullKey=o,l},t.getEventFullKey=function(e){var t="",n=Ct().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),kn.forEach(function(r){r!=n&&(0,_n[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(Ht),On=function(){return function(){}}(),An=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(N.c)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case r.I.NONE:return t;case r.I.HTML:return t instanceof Tn?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(r.gb)(this._doc,String(t)));case r.I.STYLE:return t instanceof xn?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(r.hb)(t));case r.I.SCRIPT:if(t instanceof Sn)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case r.I.URL:return t instanceof En||t instanceof Mn?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(r.ib)(String(t)));case r.I.RESOURCE_URL:if(t instanceof En)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof Cn)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new Tn(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new xn(e)},t.prototype.bypassSecurityTrustScript=function(e){return new Sn(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new Mn(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new En(e)},t}(On),Cn=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),Tn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(Cn),xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(Cn),Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(Cn),Mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(Cn),En=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(Cn),Pn=[{provide:r.C,useValue:"browser"},{provide:r.D,useValue:function(){It.makeCurrent(),Ut.init()},multi:!0},{provide:D,useClass:Lt,deps:[me]},{provide:me,useFactory:function(){return document},deps:[]}],In=Object(r.S)(r.Z,"browser",Pn);function jn(){return new r.l}var Rn=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var t;return t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:r.c,useValue:e.appId},{provide:Nt,useExisting:r.c},Dt]}},e}();"undefined"!=typeof window&&window;var Ln=function(){return function(e,t){this.id=e,this.url=t}}(),Nn=function(e){function t(t,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=e.call(this,t,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}return Object(N.c)(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(Ln),Dn=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.urlAfterRedirects=r,i}return Object(N.c)(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(Ln),Un=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.reason=r,i}return Object(N.c)(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(Ln),Fn=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.error=r,i}return Object(N.c)(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(Ln),Kn=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(N.c)(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Ln),Bn=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(N.c)(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Ln),Vn=function(e){function t(t,n,r,i,o){var l=e.call(this,t,n)||this;return l.urlAfterRedirects=r,l.state=i,l.shouldActivate=o,l}return Object(N.c)(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(Ln),Gn=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(N.c)(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Ln),Hn=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(N.c)(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Ln),$n=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),zn=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),Qn=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Wn=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),qn=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Jn=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),Yn=function(){function e(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}return e.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},e}(),Zn=function(){return function(){}}(),Xn="primary",er=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 tr(e){return new er(e)}var nr="ngNavigationCancelingError";function rr(e){var t=Error("NavigationCancelingError: "+e);return t[nr]=!0,t}function ir(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;for(var i={},o=0;o<r.length;o++){var l=r[o],u=e[o];if(l.startsWith(":"))i[l.substring(1)]=u;else if(l!==u.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}var or=function(){return function(e,t){this.routes=e,this.module=t}}();function lr(e,t){void 0===t&&(t="");for(var n=0;n<e.length;n++){var r=e[n];ur(r,ar(t,r))}}function ur(e,t){if(!e)throw new Error("\n Invalid configuration of route '"+t+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(e))throw new Error("Invalid configuration of route '"+t+"': Array cannot be specified");if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==Xn)throw new Error("Invalid configuration of route '"+t+"': a componentless route without children or loadChildren cannot have a named outlet set");if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '"+t+"': redirectTo and children cannot be used together");if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': redirectTo and loadChildren cannot be used together");if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': children and loadChildren cannot be used together");if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '"+t+"': redirectTo and component cannot be used together");if(e.path&&e.matcher)throw new Error("Invalid configuration of route '"+t+"': path and matcher cannot be used together");if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '"+t+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '"+t+"': routes must have either a path or a matcher specified");if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '"+t+"': path cannot start with a slash");if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \""+t+'", redirectTo: "'+e.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '"+t+"': pathMatch can only be set to 'prefix' or 'full'");e.children&&lr(e.children,t)}function ar(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:e+"/"+t.path:"":e}function sr(e){var t=e.children&&e.children.map(sr),n=t?Object(N.a)({},e,{children:t}):Object(N.a)({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==Xn&&(n.component=Zn),n}function cr(e,t){var n,r=Object.keys(e),i=Object.keys(t);if(!r||!i||r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(e[n=r[o]]!==t[n])return!1;return!0}function pr(e){return Array.prototype.concat.apply([],e)}function fr(e){return e.length>0?e[e.length-1]:null}function dr(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function hr(e){return Object(r.Ab)(e)?e:Object(r.Bb)(e)?Object(we.a)(Promise.resolve(e)):Object(_e.a)(e)}function yr(e,t,n){return n?function(e,t){return cr(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!vr(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))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,r,i){if(n.segments.length>i.length)return!!vr(l=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!vr(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var l=i.slice(0,n.segments.length),u=i.slice(n.segments.length);return!!vr(n.segments,l)&&!!n.children[Xn]&&t(n.children[Xn],r,u)}(t,n,n.segments)}(e.root,t.root)}var br=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=tr(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Or.serialize(this)},e}(),mr=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,dr(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 Ar(this)},e}(),gr=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=tr(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Er(this)},e}();function vr(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function kr(e,t){var n=[];return dr(e.children,function(e,r){r===Xn&&(n=n.concat(t(e,r)))}),dr(e.children,function(e,r){r!==Xn&&(n=n.concat(t(e,r)))}),n}var _r=function(){return function(){}}(),wr=function(){function e(){}return e.prototype.parse=function(e){var t=new Lr(e);return new br(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return Ar(t);if(n){var r=t.children[Xn]?e(t.children[Xn],!1):"",i=[];return dr(t.children,function(t,n){n!==Xn&&i.push(n+":"+e(t,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=kr(t,function(n,r){return r===Xn?[e(t.children[Xn],!1)]:[r+":"+e(n,!1)]});return Ar(t)+"/("+o.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 Tr(e)+"="+Tr(t)}).join("&"):Tr(e)+"="+Tr(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),Or=new wr;function Ar(e){return e.segments.map(function(e){return Er(e)}).join("/")}function Cr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Tr(e){return Cr(e).replace(/%3B/gi,";")}function xr(e){return Cr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Sr(e){return decodeURIComponent(e)}function Mr(e){return Sr(e.replace(/\+/g,"%20"))}function Er(e){return""+xr(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+xr(e)+"="+xr(t[e])}).join(""));var t}var Pr=/^[^\/()?;=#]+/;function Ir(e){var t=e.match(Pr);return t?t[0]:""}var jr=/^[^=?&#]+/,Rr=/^[^?&#]+/,Lr=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 mr([],{}):new mr([],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[Xn]=new mr(e,t)),n},e.prototype.parseSegment=function(){var e=Ir(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new gr(Sr(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=Ir(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Ir(this.remaining);r&&this.capture(n=r)}e[Sr(t)]=Sr(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(jr))?t[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Rr);return t?t[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Mr(n),l=Mr(r);if(e.hasOwnProperty(o)){var u=e[o];Array.isArray(u)||(e[o]=u=[u]),u.push(l)}else e[o]=l}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ir(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)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=Xn);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[Xn]:new mr([],o),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}(),Nr=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=Dr(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Dr(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Ur(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 Ur(e,this._root).map(function(e){return e.value})},e}();function Dr(e,t){var n,r;if(e===t.value)return t;try{for(var i=Object(N.h)(t.children),o=i.next();!o.done;o=i.next()){var l=Dr(e,o.value);if(l)return l}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}function Ur(e,t){var n,r;if(e===t.value)return[t];try{for(var i=Object(N.h)(t.children),o=i.next();!o.done;o=i.next()){var l=Ur(e,o.value);if(l.length)return l.unshift(t),l}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return[]}var Fr=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function Kr(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Br=function(e){function t(t,n){var r=e.call(this,t)||this;return r.snapshot=n,Qr(r,t),r}return Object(N.c)(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(Nr);function Vr(e,t){var n=function(e,t){var n=new $r([],{},{},"",{},Xn,t,null,e.root,-1,{});return new zr("",new Fr(n,[]))}(e,t),r=new Oe.a([new gr("",{})]),i=new Oe.a({}),o=new Oe.a({}),l=new Oe.a({}),u=new Oe.a(""),a=new Gr(r,i,l,u,o,Xn,t,n.root);return a.snapshot=n.root,new Br(new Fr(a,[]),n)}var Gr=function(){function e(e,t,n,r,i,o,l,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=l,this._futureSnapshot=u}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),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=this.params.pipe(Object(Fe.a)(function(e){return tr(e)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(Fe.a)(function(e){return tr(e)}))),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function Hr(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object(N.a)({},e.params,t.params),data:Object(N.a)({},e.data,t.data),resolve:Object(N.a)({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var $r=function(){function e(e,t,n,r,i,o,l,u,a,s,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,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=tr(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=tr(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}(),zr=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,Qr(r,n),r}return Object(N.c)(t,e),t.prototype.toString=function(){return Wr(this._root)},t}(Nr);function Qr(e,t){t.value._routerState=e,t.children.forEach(function(t){return Qr(e,t)})}function Wr(e){var t=e.children.length>0?" { "+e.children.map(Wr).join(", ")+" } ":"";return""+e.value+t}function qr(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,cr(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),cr(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!cr(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),cr(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Jr(e,t){var n,r;return cr(e.params,t.params)&&vr(n=e.url,r=t.url)&&n.every(function(e,t){return cr(e.parameters,r[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||Jr(e.parent,t.parent))}function Yr(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Zr(e,t,n,r,i){var o={};return r&&dr(r,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),new br(n.root===e?t:function e(t,n,r){var i={};return dr(t.children,function(t,o){i[o]=t===n?r:e(t,n,r)}),new mr(t.segments,i)}(n.root,e,t),o,i)}var Xr=function(){function e(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Yr(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==fr(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}(),ei=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}();function ti(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Xn]:""+e}function ni(e,t,n){if(e||(e=new mr([],{})),0===e.segments.length&&e.hasChildren())return ri(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i<e.segments.length;){if(r>=n.length)return o;var l=e.segments[i],u=ti(n[r]),a=r<n.length-1?n[r+1]:null;if(i>0&&void 0===u)break;if(u&&a&&"object"==typeof a&&void 0===a.outlets){if(!ui(u,a,l))return o;r+=2}else{if(!ui(u,{},l))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var o=new mr(e.segments.slice(0,r.pathIndex),{});return o.children[Xn]=new mr(e.segments.slice(r.pathIndex),e.children),ri(o,0,i)}return r.match&&0===i.length?new mr(e.segments,{}):r.match&&!e.hasChildren()?ii(e,t,n):r.match?ri(e,0,i):ii(e,t,n)}function ri(e,t,n){if(0===n.length)return new mr(e.segments,{});var r=function(e){var t,n;return"object"!=typeof e[0]?((t={})[Xn]=e,t):void 0===e[0].outlets?((n={})[Xn]=e,n):e[0].outlets}(n),i={};return dr(r,function(n,r){null!==n&&(i[r]=ni(e.children[r],t,n))}),dr(e.children,function(e,t){void 0===r[t]&&(i[t]=e)}),new mr(e.segments,i)}function ii(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=oi(n[i].outlets);return new mr(r,o)}if(0===i&&Yr(n[0]))r.push(new gr(e.segments[t].path,n[0])),i++;else{var l=ti(n[i]),u=i<n.length-1?n[i+1]:null;l&&u&&Yr(u)?(r.push(new gr(l,li(u))),i+=2):(r.push(new gr(l,{})),i++)}}return new mr(r,{})}function oi(e){var t={};return dr(e,function(e,n){null!==e&&(t[n]=ii(new mr([],{}),0,e))}),t}function li(e){var t={};return dr(e,function(e,n){return t[n]=""+e}),t}function ui(e,t,n){return e==n.path&&cr(t,n.parameters)}var ai=function(){function e(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}return e.prototype.activate=function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),qr(this.futureState.root),this.activateChildRoutes(t,n,e)},e.prototype.deactivateChildRoutes=function(e,t,n){var r=this,i=Kr(t);e.children.forEach(function(e){var t=e.value.outlet;r.deactivateRoutes(e,i[t],n),delete i[t]}),dr(i,function(e,t){r.deactivateRouteAndItsChildren(e,n)})},e.prototype.deactivateRoutes=function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)},e.prototype.deactivateRouteAndItsChildren=function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)},e.prototype.detachAndStoreRouteSubtree=function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:i})}},e.prototype.deactivateRouteAndOutlet=function(e,t){var n=this,r=t.getContext(e.value.outlet);if(r){var i=Kr(e),o=e.value.component?r.children:t;dr(i,function(e,t){return n.deactivateRouteAndItsChildren(e,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},e.prototype.activateChildRoutes=function(e,t,n){var r=this,i=Kr(t);e.children.forEach(function(e){r.activateRoutes(e,i[e.value.outlet],n),r.forwardEvent(new Jn(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Wn(e.value.snapshot))},e.prototype.activateRoutes=function(e,t,n){var r=e.value,i=t?t.value:null;if(qr(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(r.component)if(o=n.getOrCreateContext(r.outlet),this.routeReuseStrategy.shouldAttach(r.snapshot)){var l=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(l.contexts),o.attachRef=l.componentRef,o.route=l.route.value,o.outlet&&o.outlet.attach(l.componentRef,l.route.value),si(l.route)}else{var u=function(e){for(var t=r.snapshot.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(),a=u?u.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=a,o.outlet&&o.outlet.activateWith(r,a),this.activateChildRoutes(e,null,o.children)}else this.activateChildRoutes(e,null,n)},e}();function si(e){qr(e.value),e.children.forEach(si)}function ci(e){return"function"==typeof e}function pi(e){return e instanceof br}var fi=function(){return function(e){this.segmentGroup=e||null}}(),di=function(){return function(e){this.urlTree=e}}();function hi(e){return new Ae.a(function(t){return t.error(new fi(e))})}function yi(e){return new Ae.a(function(t){return t.error(new di(e))})}function bi(e){return new Ae.a(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}var mi=function(){function e(e,t,n,i,o){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(r.y)}return e.prototype.apply=function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Xn).pipe(Object(Fe.a)(function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Object(rt.a)(function(t){if(t instanceof di)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof fi)throw e.noMatchError(t);throw t}))},e.prototype.match=function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,Xn).pipe(Object(Fe.a)(function(n){return t.createUrlTree(n,e.queryParams,e.fragment)})).pipe(Object(rt.a)(function(e){if(e instanceof fi)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 r,i=e.segments.length>0?new mr([],((r={})[Xn]=e,r)):e;return new br(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(Fe.a)(function(e){return new mr([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(_e.a)({});var o=[],l=[],u={};return dr(n,function(n,i){var a,s,c=(a=i,s=n,r.expandSegmentGroup(e,t,s,a)).pipe(Object(Fe.a)(function(e){return u[i]=e}));i===Xn?o.push(c):l.push(c)}),_e.a.apply(null,o.concat(l)).pipe(Be(),nt(),Object(Fe.a)(function(){return u}))}(n.children)},e.prototype.expandSegment=function(e,t,n,r,i,o){var l=this;return _e.a.apply(void 0,Object(N.g)(n)).pipe(Object(Fe.a)(function(u){return l.expandSegmentAgainstRoute(e,t,n,u,r,i,o).pipe(Object(rt.a)(function(e){if(e instanceof fi)return Object(_e.a)(null);throw e}))}),Be(),ot(function(e){return!!e}),Object(rt.a)(function(e,n){if(e instanceof Te||"EmptyError"===e.name){if(l.noLeftoversInUrl(t,r,i))return Object(_e.a)(new mr([],{}));throw new fi(t)}throw e}))},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,l){return _i(r)!==o?hi(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):hi(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?yi(o):this.lineralizeSegments(n,o).pipe(Object(lt.a)(function(n){var o=new mr(n,{});return i.expandSegment(e,o,t,n,r,!1)}))},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var l=this,u=gi(t,r,i),a=u.consumedSegments,s=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return hi(t);var p=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?yi(p):this.lineralizeSegments(r,p).pipe(Object(lt.a)(function(r){return l.expandSegment(e,t,n,r.concat(i.slice(s)),o,!1)}))},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(Fe.a)(function(e){return n._loadedConfig=e,new mr(r,{})})):Object(_e.a)(new mr(r,{}));var o=gi(t,n,r),l=o.consumedSegments,u=o.lastChild;if(!o.matched)return hi(t);var a=r.slice(u);return this.getChildConfig(e,n,r).pipe(Object(lt.a)(function(e){var n=e.module,r=e.routes,o=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(function(n){return ki(e,t,n)&&_i(n)!==Xn})}(e,n)?{segmentGroup:vi(new mr(t,function(e,t){var n,r,i={};i[Xn]=t;try{for(var o=Object(N.h)(e),l=o.next();!l.done;l=o.next()){var u=l.value;""===u.path&&_i(u)!==Xn&&(i[_i(u)]=new mr([],{}))}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new mr(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(function(n){return ki(e,t,n)})}(e,n)?{segmentGroup:vi(new mr(e.segments,function(e,t,n,r){var i,o,l={};try{for(var u=Object(N.h)(n),a=u.next();!a.done;a=u.next()){var s=a.value;ki(e,t,s)&&!r[_i(s)]&&(l[_i(s)]=new mr([],{}))}}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return Object(N.a)({},r,l)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,l,a,r),u=o.segmentGroup,s=o.slicedSegments;return 0===s.length&&u.hasChildren()?i.expandChildren(n,r,u).pipe(Object(Fe.a)(function(e){return new mr(l,e)})):0===r.length&&0===s.length?Object(_e.a)(new mr(l,{})):i.expandSegment(n,u,r,s,Xn,!0).pipe(Object(Fe.a)(function(e){return new mr(l.concat(e.segments),e.children)}))}))},e.prototype.getChildConfig=function(e,t,n){var r=this;return t.children?Object(_e.a)(new or(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(_e.a)(t._loadedConfig):function(e,t,n){var r,i=t.canLoad;return i&&0!==i.length?Object(we.a)(i).pipe(Object(Fe.a)(function(r){var i,o=e.get(r);if(function(e){return e&&ci(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!ci(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return hr(i)})).pipe(Be(),(r=function(e){return!0===e},function(e){return e.lift(new ut(r,void 0,e))})):Object(_e.a)(!0)}(e.injector,t,n).pipe(Object(lt.a)(function(n){return n?r.configLoader.load(e.injector,t).pipe(Object(Fe.a)(function(e){return t._loadedConfig=e,e})):function(e){return new Ae.a(function(t){return t.error(rr("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}(t)})):Object(_e.a)(new or([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(_e.a)(n);if(r.numberOfChildren>1||!r.children[Xn])return bi(e.redirectTo);r=r.children[Xn]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new br(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return dr(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),l={};return dr(t.children,function(t,o){l[o]=i.createSegmentGroup(e,t,n,r)}),new mr(o,l)},e.prototype.createSegments=function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){var n,r,i=0;try{for(var o=Object(N.h)(t),l=o.next();!l.done;l=o.next()){var u=l.value;if(u.path===e.path)return t.splice(i),u;i++}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e},e}();function gi(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||ir)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function vi(e){if(1===e.numberOfChildren&&e.children[Xn]){var t=e.children[Xn];return new mr(e.segments.concat(t.segments),t.children)}return e}function ki(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function _i(e){return e.outlet||Xn}var wi=function(){return function(e){this.path=e,this.route=this.path[this.path.length-1]}}(),Oi=function(){return function(e,t){this.component=e,this.route=t}}();function Ai(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Ci(e,t,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=Kr(t);return e.children.forEach(function(e){!function(e,t,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=e.value,l=t?t.value:null,u=n?n.getContext(e.value.outlet):null;if(l&&o.routeConfig===l.routeConfig){var a=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!vr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!vr(e.url,t.url)||!cr(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jr(e,t)||!cr(e.queryParams,t.queryParams);case"paramsChange":default:return!Jr(e,t)}}(l,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new wi(r)):(o.data=l.data,o._resolvedData=l._resolvedData),Ci(e,t,o.component?u?u.children:null:n,r,i),a&&i.canDeactivateChecks.push(new Oi(u&&u.outlet&&u.outlet.component||null,l))}else l&&Ti(t,u,i),i.canActivateChecks.push(new wi(r)),Ci(e,null,o.component?u?u.children:null:n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),dr(o,function(e,t){return Ti(e,n.getContext(t),i)}),i}function Ti(e,t,n){var r=Kr(e),i=e.value;dr(r,function(e,r){Ti(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Oi(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var xi=Symbol("INITIAL_VALUE");function Si(){return Object(st.a)(function(e){return je.apply(void 0,Object(N.g)(e.map(function(e){return e.pipe(Object(it.a)(1),pt(xi))}))).pipe(Object(ft.a)(function(e,t){var n=!1;return t.reduce(function(e,r,i){if(e!==xi)return e;if(r===xi&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||pi(r))return r}return e},e)},xi),Object(Ve.a)(function(e){return e!==xi}),Object(Fe.a)(function(e){return pi(e)?e:!0===e}),Object(it.a)(1))})}function Mi(e,t){return null!==e&&t&&t(new qn(e)),Object(_e.a)(!0)}function Ei(e,t){return null!==e&&t&&t(new Qn(e)),Object(_e.a)(!0)}function Pi(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(_e.a)(!0);var i=r.map(function(r){return De(function(){var i,o=Ai(r,t,n);if(function(e){return e&&ci(e.canActivate)}(o))i=hr(o.canActivate(t,e));else{if(!ci(o))throw new Error("Invalid CanActivate guard");i=hr(o(t,e))}return i.pipe(ot())})});return Object(_e.a)(i).pipe(Si())}function Ii(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return De(function(){var i=t.guards.map(function(i){var o,l=Ai(i,t.node,n);if(function(e){return e&&ci(e.canActivateChild)}(l))o=hr(l.canActivateChild(r,e));else{if(!ci(l))throw new Error("Invalid CanActivateChild guard");o=hr(l(r,e))}return o.pipe(ot())});return Object(_e.a)(i).pipe(Si())})});return Object(_e.a)(i).pipe(Si())}var ji=function(){return function(){}}(),Ri=function(){function e(e,t,n,r,i,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return e.prototype.recognize=function(){try{var e=Di(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Xn),n=new $r([],Object.freeze({}),Object.freeze(Object(N.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},Xn,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Fr(n,t),i=new zr(this.url,r);return this.inheritParamsAndData(i._root),Object(_e.a)(i)}catch(o){return new Ae.a(function(e){return e.error(o)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,r=Hr(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,r=this,i=kr(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},i.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[e.value.outlet]=e.value}),i.sort(function(e,t){return e.value.outlet===Xn?-1:t.value.outlet===Xn?1:e.value.outlet.localeCompare(t.value.outlet)}),i},e.prototype.processSegment=function(e,t,n,r){var i,o;try{for(var l=Object(N.h)(e),u=l.next();!u.done;u=l.next()){var a=u.value;try{return this.processSegmentAgainstRoute(a,t,n,r)}catch(s){if(!(s instanceof ji))throw s}}}catch(c){i={error:c}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(t,n,r))return[];throw new ji},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,r){if(e.redirectTo)throw new ji;if((e.outlet||Xn)!==r)throw new ji;var i,o=[],l=[];if("**"===e.path){var u=n.length>0?fr(n).parameters:{};i=new $r(n,u,Object.freeze(Object(N.a)({},this.urlTree.queryParams)),this.urlTree.fragment,Ki(e),r,e.component,e,Li(t),Ni(t)+n.length,Bi(e))}else{var a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new ji;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||ir)(n,e,t);if(!r)throw new ji;var i={};dr(r.posParams,function(e,t){i[t]=e.path});var o=r.consumed.length>0?Object(N.a)({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=a.consumedSegments,l=n.slice(a.lastChild),i=new $r(o,a.parameters,Object.freeze(Object(N.a)({},this.urlTree.queryParams)),this.urlTree.fragment,Ki(e),r,e.component,e,Li(t),Ni(t)+o.length,Bi(e))}var s=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Di(t,o,l,s,this.relativeLinkResolution),p=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&p.hasChildren()){var d=this.processChildren(s,p);return[new Fr(i,d)]}if(0===s.length&&0===f.length)return[new Fr(i,[])];var h=this.processSegment(s,p,f,Xn);return[new Fr(i,h)]},e}();function Li(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Ni(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 Di(e,t,n,r,i){if(n.length>0&&function(e,t,n){return r.some(function(n){return Ui(e,t,n)&&Fi(n)!==Xn})}(e,n)){var o=new mr(t,function(e,t,n,r){var i,o,l={};l[Xn]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;try{for(var u=Object(N.h)(n),a=u.next();!a.done;a=u.next()){var s=a.value;if(""===s.path&&Fi(s)!==Xn){var c=new mr([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,l[Fi(s)]=c}}}catch(p){i={error:p}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return l}(e,t,r,new mr(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(function(n){return Ui(e,t,n)})}(e,n)){var l=new mr(e.segments,function(e,t,n,r,i,o){var l,u,a={};try{for(var s=Object(N.h)(r),c=s.next();!c.done;c=s.next()){var p=c.value;if(Ui(e,n,p)&&!i[Fi(p)]){var f=new mr([],{});f._sourceSegment=e,f._segmentIndexShift="legacy"===o?e.segments.length:t.length,a[Fi(p)]=f}}}catch(d){l={error:d}}finally{try{c&&!c.done&&(u=s.return)&&u.call(s)}finally{if(l)throw l.error}}return Object(N.a)({},i,a)}(e,t,n,r,e.children,i));return l._sourceSegment=e,l._segmentIndexShift=t.length,{segmentGroup:l,slicedSegments:n}}var u=new mr(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function Ui(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Fi(e){return e.outlet||Xn}function Ki(e){return e.data||{}}function Bi(e){return e.resolve||{}}function Vi(e,t,n,r){var i=Ai(e,t,r);return hr(i.resolve?i.resolve(t,n):i(t,n))}function Gi(e){return function(t){return t.pipe(Object(st.a)(function(t){var n=e(t);return n?Object(we.a)(n).pipe(Object(Fe.a)(function(){return t})):Object(we.a)([t])}))}}var Hi=function(){return function(){}}(),$i=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}(),zi=new r.q("ROUTES"),Qi=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(Fe.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new or(pr(i.injector.get(zi)).map(sr),i)}))},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(we.a)(this.loader.load(e)):hr(e()).pipe(Object(lt.a)(function(e){return e instanceof r.w?Object(_e.a)(e):Object(we.a)(t.compiler.compileModuleAsync(e))}))},e}(),Wi=function(){return function(){}}(),qi=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 Ji(e){throw e}function Yi(e,t,n){return t.parse("/")}function Zi(e,t){return Object(_e.a)(null)}var Xi=function(){function e(e,t,n,i,o,l,u,a){var s=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Ue.a,this.errorHandler=Ji,this.malformedUriErrorHandler=Yi,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Zi,afterPreactivation:Zi},this.urlHandlingStrategy=new qi,this.routeReuseStrategy=new $i,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(r.y),this.console=o.get(r.db);var c=o.get(r.A);this.isNgZoneEnabled=c instanceof r.A,this.resetConfig(a),this.currentUrlTree=new br(new mr([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Qi(l,u,function(e){return s.triggerEvent(new $n(e))},function(e){return s.triggerEvent(new zn(e))}),this.routerState=Vr(this.currentUrlTree,this.rootComponentType),this.transitions=new Oe.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return e.prototype.setupNavigations=function(e){var t=this,n=this.events;return e.pipe(Object(Ve.a)(function(e){return 0!==e.id}),Object(Fe.a)(function(e){return Object(N.a)({},e,{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Object(st.a)(function(e){var r,i,o,l,u=!1,a=!1;return Object(_e.a)(e).pipe(gt(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object(N.a)({},t.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Object(st.a)(function(e){var r,i,o,l,u=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||u)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(_e.a)(e).pipe(Object(st.a)(function(e){var r=t.transitions.getValue();return n.next(new Nn(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?Ne.a:[e]}),Object(st.a)(function(e){return Promise.resolve(e)}),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,l=t.config,function(e){return e.pipe(Object(st.a)(function(e){return function(t,n,r,i,o){return new mi(t,n,r,e.extractedUrl,o).apply()}(r,i,o,0,l).pipe(Object(Fe.a)(function(t){return Object(N.a)({},e,{urlAfterRedirects:t})}))}))}),gt(function(e){t.currentNavigation=Object(N.a)({},t.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,n,r,i,o){return function(r){return r.pipe(Object(lt.a)(function(r){return function(e,t,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new Ri(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(l=r.urlAfterRedirects,t.serializeUrl(l)),i,o).pipe(Object(Fe.a)(function(e){return Object(N.a)({},r,{targetSnapshot:e})}));var l}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),gt(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),gt(function(e){var r=new Kn(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(u&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.extractedUrl,s=e.source,c=e.restoredState,p=e.extras,f=new Nn(e.id,t.serializeUrl(a),s,c);n.next(f);var d=Vr(a,t.rootComponentType).snapshot;return Object(_e.a)(Object(N.a)({},e,{targetSnapshot:d,urlAfterRedirects:a,extras:Object(N.a)({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Ne.a}),Gi(function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),gt(function(e){var n=new Bn(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(Fe.a)(function(e){return Object(N.a)({},e,{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,o=n._root,Ci(o,r?r._root:null,i,[o.value]))});var n,r,i,o}),function(e,t){return function(n){return n.pipe(Object(lt.a)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,l=o.canActivateChecks,u=o.canDeactivateChecks;return 0===u.length&&0===l.length?Object(_e.a)(Object(N.a)({},n,{guardsResult:!0})):function(e,t,n,r){return Object(we.a)(e).pipe(Object(lt.a)(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(_e.a)(!0);var l=o.map(function(o){var l,u=Ai(o,t,i);if(function(e){return e&&ci(e.canDeactivate)}(u))l=hr(u.canDeactivate(e,t,n,r));else{if(!ci(u))throw new Error("Invalid CanDeactivate guard");l=hr(u(e,t,n,r))}return l.pipe(ot())});return Object(_e.a)(l).pipe(Si())}(e.component,e.route,n,t,r)}),ot(function(e){return!0!==e},!0))}(u,r,i,e).pipe(Object(lt.a)(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Object(we.a)(t).pipe(Object(dt.a)(function(t){return Object(we.a)([Ei(t.route.parent,r),Mi(t.route,r),Ii(e,t.path,n),Pi(e,t.route,n)]).pipe(Be(),ot(function(e){return!0!==e},!0))}),ot(function(e){return!0!==e},!0))}(r,l,e,t):Object(_e.a)(n)}),Object(Fe.a)(function(e){return Object(N.a)({},n,{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),gt(function(e){if(pi(e.guardsResult)){var n=rr('Redirecting to "'+t.serializeUrl(e.guardsResult)+'"');throw n.url=e.guardsResult,n}}),gt(function(e){var n=new Vn(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),Object(Ve.a)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Un(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),Gi(function(e){if(e.guards.canActivateChecks.length)return Object(_e.a)(e).pipe(gt(function(e){var n=new Gn(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(n=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(Object(lt.a)(function(e){var t=e.targetSnapshot,i=e.guards.canActivateChecks;return i.length?Object(we.a)(i).pipe(Object(dt.a)(function(e){return function(e,n,r,i){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Object(_e.a)({});if(1===i.length){var o=i[0];return Vi(e[o],t,n,r).pipe(Object(Fe.a)(function(e){var t;return(t={})[o]=e,t}))}var l={};return Object(we.a)(i).pipe(Object(lt.a)(function(i){return Vi(e[i],t,n,r).pipe(Object(Fe.a)(function(e){return l[i]=e,e}))})).pipe(nt(),Object(Fe.a)(function(){return l}))}(e._resolve,e,t,i).pipe(Object(Fe.a)(function(t){return e._resolvedData=t,e.data=Object(N.a)({},e.data,Hr(e,r).resolve),null}))}(e.route,0,n,r)}),yt(function(e,t){return e}),Object(Fe.a)(function(t){return e})):Object(_e.a)(e)}))}),gt(function(e){var n=new Hn(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}));var n,r}),Gi(function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Object(Fe.a)(function(e){var n,r,i,o=(i=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){(a=r.value)._futureSnapshot=n.value;var i=function(t,n,r){return n.children.map(function(n){var i,o;try{for(var l=Object(N.h)(r.children),u=l.next();!u.done;u=l.next()){var a=u.value;if(t.shouldReuseRoute(a.value.snapshot,n.value))return e(t,n,a)}}catch(s){i={error:s}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return e(t,n)})}(t,n,r);return new Fr(a,i)}var o=t.retrieve(n.value);if(o){var l=o.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,l),l}var u,a=new Gr(new Oe.a((u=n.value).url),new Oe.a(u.params),new Oe.a(u.queryParams),new Oe.a(u.fragment),new Oe.a(u.data),u.outlet,u.component,u);return i=n.children.map(function(n){return e(t,n)}),new Fr(a,i)}(t.routeReuseStrategy,(n=e.targetSnapshot)._root,(r=e.currentRouterState)?r._root:void 0),new Br(i,n));return Object(N.a)({},e,{targetRouterState:o})}),gt(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(r=t.rootContexts,i=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Object(Fe.a)(function(e){return new ai(i,e.targetRouterState,e.currentRouterState,o).activate(r),e})),gt({next:function(){u=!0},complete:function(){u=!0}}),(l=function(){if(!u&&!a){t.resetUrlToCurrentUrlTree();var r=new Un(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID "+e.id+" is not equal to the current navigation id "+t.navigationId);n.next(r),e.resolve(!1)}t.currentNavigation=null},function(e){return e.lift(new wt(l))}),Object(rt.a)(function(r){if(a=!0,(u=r)&&u[nr]){var i=pi(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new Un(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(o),e.resolve(!1),i&&t.navigateByUrl(r.url)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var l=new Fn(e.id,t.serializeUrl(e.extractedUrl),r);n.next(l);try{e.resolve(t.errorHandler(r))}catch(s){e.reject(s)}}var u;return Ne.a}))}))},e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.getTransition=function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e},e.prototype.setTransition=function(e){this.transitions.next(Object(N.a)({},this.getTransition(),e))},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.parseUrl(t.url),r="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout(function(){e.scheduleNavigation(n,r,i,{replaceUrl:!0})},0)}))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.getCurrentNavigation=function(){return this.currentNavigation},e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){lr(e),this.config=e.map(sr),this.navigated=!1,this.lastSuccessfulId=-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,o=t.fragment,l=t.preserveQueryParams,u=t.queryParamsHandling,a=t.preserveFragment;Object(r.Y)()&&l&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var s=n||this.routerState.root,c=a?this.currentUrlTree.fragment:o,p=null;if(u)switch(u){case"merge":p=Object(N.a)({},this.currentUrlTree.queryParams,i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=l?this.currentUrlTree.queryParams:i||null;return null!==p&&(p=this.removeEmptyProps(p)),function(e,t,n,r,i){if(0===n.length)return Zr(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Xr(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return dr(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),Object(N.g)(e,[{outlets:o}])}if(r.segmentPath)return Object(N.g)(e,[r.segmentPath])}return"string"!=typeof r?Object(N.g)(e,[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):Object(N.g)(e,[r])},[]);return new Xr(n,t,r)}(n);if(o.toRoot())return Zr(t.root,new mr([],{}),t,r,i);var l=function(e,n,r){if(e.isAbsolute)return new ei(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new ei(r.snapshot._urlSegment,!0,0);var i=Yr(e.commands[0])?0:1;return function(t,n,o){for(var l=r.snapshot._urlSegment,u=r.snapshot._lastPathIndex+i,a=e.numberOfDoubleDots;a>u;){if(a-=u,!(l=l.parent))throw new Error("Invalid number of '../'");u=l.segments.length}return new ei(l,!1,u-a)}()}(o,0,e),u=l.processChildren?ri(l.segmentGroup,l.index,o.commands):ni(l.segmentGroup,l.index,o.commands);return Zr(l.segmentGroup,u,t,r,i)}(s,this.currentUrlTree,e,p,c)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1}),Object(r.Y)()&&this.isNgZoneEnabled&&!r.A.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=pi(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+t)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)},e.prototype.serializeUrl=function(e){return this.urlSerializer.serialize(e)},e.prototype.parseUrl=function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t},e.prototype.isActive=function(e,t){if(pi(e))return yr(this.currentUrlTree,e,t);var n=this.parseUrl(e);return yr(this.currentUrlTree,n,t)},e.prototype.removeEmptyProps=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&(t[n]=r),t},{})},e.prototype.processNavigations=function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new Dn(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})},e.prototype.scheduleNavigation=function(e,t,n,r){var i=this.getTransition();if(i&&"imperative"!==t&&"imperative"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"hashchange"==t&&"popstate"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"popstate"==t&&"hashchange"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);var o=null,l=null,u=new Promise(function(e,t){o=e,l=t}),a=++this.navigationId;return this.setTransition({id:a,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:o,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(function(e){return Promise.reject(e)})},e.prototype.setBrowserUrl=function(e,t,n,r){var i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object(N.a)({},r,{navigationId:n})):this.location.go(i,"",Object(N.a)({},r,{navigationId:n}))},e.prototype.resetStateAndUrl=function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},e.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},e}(),eo=function(){function e(e,t,n,r,i){this.router=e,this.route=t,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){Object(r.Y)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){var e={skipLocationChange:no(this.skipLocationChange),replaceUrl:no(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:no(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:no(this.preserveFragment)})},enumerable:!0,configurable:!0}),e}(),to=function(){function e(e,t,n){var r=this;this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof Dn&&r.updateTargetUrlAndHref()})}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){Object(r.Y)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.updateTargetUrlAndHref()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onClick=function(e,t,n,r){if(0!==e||t||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:no(this.skipLocationChange),replaceUrl:no(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1},e.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:no(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:no(this.preserveFragment)})},enumerable:!0,configurable:!0}),Object(N.b)([Object(r.n)("attr.target"),Object(r.s)(),Object(N.d)("design:type",String)],e.prototype,"target",void 0),e}();function no(e){return""===e||!!e}var ro=function(){function e(e,t,n,r,i){var o=this;this.router=e,this.element=t,this.renderer=n,this.link=r,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(function(e){e instanceof Dn&&o.update()})}return e.prototype.ngAfterContentInit=function(){var e=this;this.links.changes.subscribe(function(t){return e.update()}),this.linksWithHrefs.changes.subscribe(function(t){return e.update()}),this.update()},Object.defineProperty(e.prototype,"routerLinkActive",{set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(function(e){return!!e})},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.update()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.update=function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.classes.forEach(function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)}))})},e.prototype.isLinkActive=function(e){var t=this;return function(n){return e.isActive(n.urlTree,t.routerLinkActiveOptions.exact)}},e.prototype.hasActiveLinks=function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)},e}(),io=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new oo,this.attachRef=null}}(),oo=function(){function e(){this.contexts=new Map}return e.prototype.onChildOutletCreated=function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)},e.prototype.onChildOutletDestroyed=function(e){var t=this.getContext(e);t&&(t.outlet=null)},e.prototype.onOutletDeactivated=function(){var e=this.contexts;return this.contexts=new Map,e},e.prototype.onOutletReAttached=function(e){this.contexts=e},e.prototype.getOrCreateContext=function(e){var t=this.getContext(e);return t||(t=new io,this.contexts.set(e,t)),t},e.prototype.getContext=function(e){return this.contexts.get(e)||null},e}(),lo=function(){function e(e,t,n,i,o){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.m,this.deactivateEvents=new r.m,this.name=i||Xn,e.onChildOutletCreated(this.name,this)}return e.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},e.prototype.ngOnInit=function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}},Object.defineProperty(e.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),e.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e},e.prototype.attach=function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)},e.prototype.deactivate=function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}},e.prototype.activateWith=function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new uo(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},e}(),uo=function(){function e(e,t,n){this.route=e,this.childContexts=t,this.parent=n}return e.prototype.get=function(e,t){return e===Gr?this.route:e===oo?this.childContexts:this.parent.get(e,t)},e}(),ao=function(){return function(){}}(),so=function(){function e(){}return e.prototype.preload=function(e,t){return t().pipe(Object(rt.a)(function(){return Object(_e.a)(null)}))},e}(),co=function(){function e(){}return e.prototype.preload=function(e,t){return Object(_e.a)(null)},e}(),po=function(){function e(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new Qi(t,n,function(t){return e.triggerEvent(new $n(t))},function(t){return e.triggerEvent(new zn(t))})}return e.prototype.setUpPreloading=function(){var e=this;this.subscription=this.router.events.pipe(Object(Ve.a)(function(e){return e instanceof Dn}),Object(dt.a)(function(){return e.preload()})).subscribe(function(){})},e.prototype.preload=function(){var e=this.injector.get(r.y);return this.processRoutes(e,this.router.config)},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.processRoutes=function(e,t){var n,r,i=[];try{for(var o=Object(N.h)(t),l=o.next();!l.done;l=o.next()){var u=l.value;if(u.loadChildren&&!u.canLoad&&u._loadedConfig){var a=u._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else u.loadChildren&&!u.canLoad?i.push(this.preloadConfig(e,u)):u.children&&i.push(this.processRoutes(e,u.children))}}catch(s){n={error:s}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return Object(we.a)(i).pipe(Object(Ke.a)(),Object(Fe.a)(function(e){}))},e.prototype.preloadConfig=function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return n.loader.load(e.injector,t).pipe(Object(lt.a)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})},e}(),fo=function(){function e(e,t,n){void 0===n&&(n={}),this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return e.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},e.prototype.createScrollEvents=function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Nn?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Dn&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})},e.prototype.consumeScrollEvents=function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Yn&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})},e.prototype.scheduleScrollEvent=function(e,t){this.router.triggerEvent(new Yn(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},e}(),ho=new r.q("ROUTER_CONFIGURATION"),yo=new r.q("ROUTER_FORROOT_GUARD"),bo=[B,{provide:_r,useClass:wr},{provide:Xi,useFactory:Oo,deps:[r.g,_r,oo,B,r.r,r.x,r.i,zi,ho,[Wi,new r.B],[Hi,new r.B]]},oo,{provide:Gr,useFactory:Ao,deps:[Xi]},{provide:r.x,useClass:r.K},po,co,so,{provide:ho,useValue:{enableTracing:!1}}];function mo(){return new r.z("Router",Xi)}var go=function(){function e(e,t){}var t;return t=e,e.forRoot=function(e,n){return{ngModule:t,providers:[bo,wo(e),{provide:yo,useFactory:_o,deps:[[Xi,new r.B,new r.J]]},{provide:ho,useValue:n||{}},{provide:F,useFactory:ko,deps:[D,[new r.p(K),new r.B],ho]},{provide:fo,useFactory:vo,deps:[Xi,ve,ho]},{provide:ao,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:co},{provide:r.z,multi:!0,useFactory:mo},[Co,{provide:r.d,multi:!0,useFactory:To,deps:[Co]},{provide:So,useFactory:xo,deps:[Co]},{provide:r.b,multi:!0,useExisting:So}]]}},e.forChild=function(e){return{ngModule:t,providers:[wo(e)]}},e}();function vo(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new fo(e,t,n)}function ko(e,t,n){return void 0===n&&(n={}),n.useHash?new G(e,t):new H(e,t)}function _o(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function wo(e){return[{provide:r.a,multi:!0,useValue:e},{provide:zi,multi:!0,useValue:e}]}function Oo(e,t,n,r,i,o,l,u,a,s,c){void 0===a&&(a={});var p=new Xi(null,t,n,r,i,o,l,pr(u));if(s&&(p.urlHandlingStrategy=s),c&&(p.routeReuseStrategy=c),a.errorHandler&&(p.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(p.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){var f=Ct();p.events.subscribe(function(e){f.logGroup("Router Event: "+e.constructor.name),f.log(e.toString()),f.log(e),f.logGroupEnd()})}return a.onSameUrlNavigation&&(p.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(p.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(p.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(p.relativeLinkResolution=a.relativeLinkResolution),p}function Ao(e){return e.routerState.root}var Co=function(){function e(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new Ue.a}return e.prototype.appInitializer=function(){var e=this;return this.injector.get(U,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(Xi),i=e.injector.get(ho);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return e.initNavigation?Object(_e.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n})},e.prototype.bootstrapListener=function(e){var t=this.injector.get(ho),n=this.injector.get(po),i=this.injector.get(fo),o=this.injector.get(Xi),l=this.injector.get(r.g);e===l.components[0]&&(this.isLegacyEnabled(t)?o.initialNavigation():this.isLegacyDisabled(t)&&o.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),o.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},e.prototype.isLegacyEnabled=function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation},e.prototype.isLegacyDisabled=function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation},e}();function To(e){return e.appInitializer.bind(e)}function xo(e){return e.bootstrapListener.bind(e)}var So=new r.q("Router Initializer"),Mo=n("/PH2"),Eo="@ngrx/router-store/navigation",Po="@ngrx/router-store/cancel",Io="@ngrx/router-store/error";function jo(e,t){var n=t;switch(n.type){case Eo:case Io:case Po:return{state:n.payload.routerState,navigationId:n.payload.event.id};default:return e}}var Ro=function(){return function(){}}(),Lo=function(){function e(){}return e.prototype.serialize=function(e){return{root:this.serializeRoute(e.root),url:e.url}},e.prototype.serializeRoute=function(e){var t=this,n=e.children.map(function(e){return t.serializeRoute(e)});return{params:e.params,paramMap:e.paramMap,data:e.data,url:e.url,outlet:e.outlet,routeConfig:e.routeConfig?{component:e.routeConfig.component,path:e.routeConfig.path,pathMatch:e.routeConfig.pathMatch,redirectTo:e.routeConfig.redirectTo,outlet:e.routeConfig.outlet}:null,queryParams:e.queryParams,queryParamMap:e.queryParamMap,fragment:e.fragment,component:e.routeConfig?e.routeConfig.component:void 0,root:void 0,parent:void 0,firstChild:n[0],pathFromRoot:void 0,children:n}},e}(),No=function(){function e(){}return e.prototype.serialize=function(e){return{root:this.serializeRoute(e.root),url:e.url}},e.prototype.serializeRoute=function(e){var t=this,n=e.children.map(function(e){return t.serializeRoute(e)});return{params:e.params,data:e.data,url:e.url,outlet:e.outlet,routeConfig:e.routeConfig?{path:e.routeConfig.path,pathMatch:e.routeConfig.pathMatch,redirectTo:e.routeConfig.redirectTo,outlet:e.routeConfig.outlet}:null,queryParams:e.queryParams,fragment:e.fragment,firstChild:n[0],children:n}},e}(),Do=function(e){return e[e.PreActivation=1]="PreActivation",e[e.PostActivation=2]="PostActivation",e}({}),Uo=new r.q("@ngrx/router-store Internal Configuration"),Fo=new r.q("@ngrx/router-store Configuration"),Ko="router";function Bo(e){return Object(N.a)({stateKey:Ko,serializer:Lo,navigationActionTiming:Do.PreActivation},e)}var Vo=function(e){return e[e.NONE=1]="NONE",e[e.ROUTER=2]="ROUTER",e[e.STORE=3]="STORE",e}({}),Go=function(){function e(e,t,n,r,i){this.store=e,this.router=t,this.serializer=n,this.errorHandler=r,this.config=i,this.lastEvent=null,this.trigger=Vo.NONE,this.stateKey=this.config.stateKey,this.setUpStoreStateListener(),this.setUpRouterEventsListener()}var t;return t=e,e.forRoot=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[{provide:Uo,useValue:e},{provide:Fo,useFactory:Bo,deps:[Uo]},{provide:Ro,useClass:e.serializer?e.serializer:1===e.routerState?No:Lo}]}},e.prototype.setUpStoreStateListener=function(){var e=this;this.store.pipe(Object(L.w)(this.stateKey),Object(Mo.a)(this.store)).subscribe(function(t){var n=Object(N.f)(t,2);e.navigateIfNeeded(n[0],n[1])})},e.prototype.navigateIfNeeded=function(e,t){var n=this;if(e&&e.state&&this.trigger!==Vo.ROUTER&&!(this.lastEvent instanceof Nn)){var r=e.state.url;this.router.url!==r&&(this.storeState=t,this.trigger=Vo.STORE,this.router.navigateByUrl(r).catch(function(e){n.errorHandler.handleError(e)}))}},e.prototype.setUpRouterEventsListener=function(){var e,t=this,n=this.config.navigationActionTiming===Do.PostActivation;this.router.events.pipe(Object(Mo.a)(this.store)).subscribe(function(r){var i=Object(N.f)(r,2),o=i[0],l=i[1];t.lastEvent=o,o instanceof Nn?(t.routerState=t.serializer.serialize(t.router.routerState.snapshot),t.trigger!==Vo.STORE&&(t.storeState=l,t.dispatchRouterRequest(o))):o instanceof Kn?(e=o,n||t.trigger===Vo.STORE||t.dispatchRouterNavigation(o)):o instanceof Un?(t.dispatchRouterCancel(o),t.reset()):o instanceof Fn?(t.dispatchRouterError(o),t.reset()):o instanceof Dn&&(t.trigger!==Vo.STORE&&(n&&t.dispatchRouterNavigation(e),t.dispatchRouterNavigated(o)),t.reset())})},e.prototype.dispatchRouterRequest=function(e){this.dispatchRouterAction("@ngrx/router-store/request",{event:e})},e.prototype.dispatchRouterNavigation=function(e){var t=this.serializer.serialize(e.state);this.dispatchRouterAction(Eo,{routerState:t,event:new Kn(e.id,e.url,e.urlAfterRedirects,t)})},e.prototype.dispatchRouterCancel=function(e){this.dispatchRouterAction(Po,{storeState:this.storeState,event:e})},e.prototype.dispatchRouterError=function(e){this.dispatchRouterAction(Io,{storeState:this.storeState,event:new Fn(e.id,e.url,""+e)})},e.prototype.dispatchRouterNavigated=function(e){var t=this.serializer.serialize(this.router.routerState.snapshot);this.dispatchRouterAction("@ngrx/router-store/navigated",{event:e,routerState:t})},e.prototype.dispatchRouterAction=function(e,t){this.trigger=Vo.ROUTER;try{this.store.dispatch({type:e,payload:Object(N.a)({routerState:this.routerState},t,{event:1===this.config.routerState?{id:t.event.id,url:t.event.url}:t.event})})}finally{this.trigger=Vo.NONE}},e.prototype.reset=function(){this.trigger=Vo.NONE,this.storeState=null,this.routerState=null},e}();n("xpud");var Ho,$o=n("ucu2"),zo=function(e){return e.Add="[Keymap] Add keymap",e.Duplicate="[Keymap] Duplicate keymap",e.EditAbbr="[Keymap] Edit keymap abbreviation",e.EditName="[Keymap] Edit keymap title",e.SaveKey="[Keymap] Save key action",e.SetDefault="[Keymap] Set default option",e.Remove="[Keymap] Remove keymap",e.CheckMacro="[Keymap] Check deleted macro",e.LoadKeymaps="[Keymap] Load keymaps",e.LoadKeymapsSuccess="[Keymap] Load keymaps success",e.EditDescription="[Keymap] Edit description",e.UndoLastAction="[Keymap] Undo last action",e.Select="[Keymap] Select keymap action",e}({}),Qo=function(){return function(e){this.payload=e,this.type=zo.Add}}(),Wo=function(){return function(e){this.payload=e,this.type=zo.Duplicate}}(),qo=function(){return function(e){this.payload=e,this.type=zo.EditAbbr}}(),Jo=function(){return function(e){this.payload=e,this.type=zo.EditName}}(),Yo=function(){return function(e){this.payload=e,this.type=zo.SaveKey}}(),Zo=function(){return function(e){this.payload=e,this.type=zo.SetDefault}}(),Xo=function(){return function(e){this.payload=e,this.type=zo.Remove}}(),el=function(){return function(e){this.payload=e,this.type=zo.CheckMacro}}(),tl=function(){return function(){this.type=zo.LoadKeymaps}}(),nl=function(){return function(e){this.payload=e,this.type=zo.LoadKeymapsSuccess}}(),rl=function(){return function(e){this.payload=e,this.type=zo.EditDescription}}(),il=function(){return function(e){this.payload=e,this.type=zo.Select}}(),ol=function(e){return e.Duplicate="[Macro] Duplicate macro",e.EditName="[Macro] Edit macro title",e.Remove="[Macro] Remove macro",e.Add="[Macro] Add macro",e.Select="[Macro] Select macro",e.AddAction="[Macro] Add macro action",e.SaveAction="[Macro] Save macro action",e.DeleteAction="[Macro] Delete macro action",e.ReorderAction="[Macro] Reorder macro action",e}({}),ll=function(){return function(e){this.payload=e,this.type=ol.Duplicate}}(),ul=function(){return function(){this.type=ol.Add}}(),al=function(){return function(e){this.payload=e,this.type=ol.Remove}}(),sl=function(){return function(e){this.payload=e,this.type=ol.EditName}}(),cl=function(){return function(e){this.payload=e,this.type=ol.Select}}(),pl=function(){return function(e){this.payload=e,this.type=ol.AddAction}}(),fl=function(){return function(e){this.payload=e,this.type=ol.SaveAction}}(),dl=function(){return function(e){this.payload=e,this.type=ol.DeleteAction}}(),hl=function(){return function(e){this.payload=e,this.type=ol.ReorderAction}}(),yl=function(e){return e.LoadUserConfig="[user-config] Load User Config",e.LoadConfigFromDevice="[user-config] Load User Config from Device",e.LoadConfigFromDeviceReply="[user-config] Load User Config from Device reply",e.LoadUserConfigSuccess="[user-config] Load User Config Success",e.SaveUserConfigSuccess="[user-config] Save User Config Success",e.SaveUserConfigInJsonFile="[user-config] Save User Config in JSON file",e.SaveUserConfigInBinFile="[user-config] Save User Config in binary file",e.LoadResetUserConfiguration="[user-config] Load reset user configuration",e.RenameUserConfiguration="[user-config] Rename user configuration",e.SetUserConfigurationValue="[user-config] Set user configuration value",e.LoadUserConfigurationFromFile="[user-config] Load user configuration from file",e.ApplyUserConfigurationFromFile="[user-config] Apply user configuration from file",e}({}),bl=function(){return function(){this.type=yl.LoadConfigFromDevice}}(),ml=function(){return function(e){this.payload=e,this.type=yl.LoadConfigFromDeviceReply}}(),gl=function(){return function(e){this.payload=e,this.type=yl.LoadUserConfigSuccess}}(),vl=function(){return function(e){this.payload=e,this.type=yl.SaveUserConfigSuccess}}(),kl=function(){return function(){this.type=yl.SaveUserConfigInJsonFile}}(),_l=function(){return function(){this.type=yl.SaveUserConfigInBinFile}}(),wl=function(){return function(e){this.payload=e,this.type=yl.LoadResetUserConfiguration}}(),Ol=function(){return function(e){this.payload=e,this.type=yl.RenameUserConfiguration}}(),Al=function(){return function(e){this.payload=e,this.type=yl.SetUserConfigurationValue}}(),Cl=function(){return function(e){this.payload=e,this.type=yl.LoadUserConfigurationFromFile}}(),Tl=function(){return function(e){this.payload=e,this.type=yl.ApplyUserConfigurationFromFile}}();function xl(e,t){for(var n=0;n<e.length;++n)if(e[n]!==t[n])return t[n];return t[t.length-1]}function Sl(e,t){if(!t)return 0;Ho||(Ho=document.createElement("canvas"));var n=Ho.getContext("2d");return n.font=e.font,n.measureText(t).width}var Ml=function(e,t){for(var n=0,r=0,i=e.concat(t);r<i.length;r++){var o=i[r];o.checked&&(n|=o.value)}return n};function El(e){return e&&e.trim().length>0}var Pl,Il=n("jWEn"),jl=function(){return Pl||(e=n("9RND"),Pl={version:e.version,firmwareVersion:e.firmwareVersion,deviceProtocolVersion:e.deviceProtocolVersion,moduleProtocolVersion:e.moduleProtocolVersion,userConfigVersion:e.userConfigVersion,hardwareConfigVersion:e.hardwareConfigVersion}),Pl;var e},Rl=function(e,t){return!!e&&Il.gte(e,t)},Ll=function(){return{moduleId:-1,key:""}},Nl={userConfiguration:new $o.UserConfiguration,lastEditedKey:Ll()};function Dl(e,t){switch(void 0===e&&(e=Nl),t.type){case yl.ApplyUserConfigurationFromFile:case yl.LoadResetUserConfiguration:case yl.LoadUserConfigSuccess:var n=t.payload,r=Object.assign(new $o.UserConfiguration,N.a({},e.userConfiguration,n,{keymaps:n.keymaps.sort(function(e,t){return e.name.localeCompare(t.name)}),macros:n.macros.sort(function(e,t){return e.name.localeCompare(t.name)})}));return N.a({},e,{userConfiguration:r});case c.ResetPcMouseSpeedSettings:return N.a({},e,{userConfiguration:Object.assign(new $o.UserConfiguration,N.a({},e.userConfiguration,{mouseMoveInitialSpeed:4,mouseMoveAcceleration:68,mouseMoveDeceleratedSpeed:8,mouseMoveBaseSpeed:32,mouseMoveAcceleratedSpeed:64,mouseScrollInitialSpeed:20,mouseScrollAcceleration:20,mouseScrollDeceleratedSpeed:10,mouseScrollBaseSpeed:20,mouseScrollAcceleratedSpeed:50}))});case c.ResetMacMouseSpeedSettings:return N.a({},e,{userConfiguration:Object.assign(new $o.UserConfiguration,N.a({},e.userConfiguration,{mouseMoveInitialSpeed:8,mouseMoveAcceleration:180,mouseMoveDeceleratedSpeed:80,mouseMoveBaseSpeed:112,mouseMoveAcceleratedSpeed:160,mouseScrollInitialSpeed:10,mouseScrollAcceleration:10,mouseScrollDeceleratedSpeed:7,mouseScrollBaseSpeed:10,mouseScrollAcceleratedSpeed:12}))});case zo.Add:case zo.Duplicate:var i=new $o.Keymap(t.payload);return i.abbreviation=function(e,t){for(var n="23456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),r=0;e.some(function(e){return e.abbreviation===t});)if(t=t.substring(0,t.length-1)+n[r],++r>n.length){r=0;var i=n.indexOf(t.substr(0,1)),o=n.indexOf(t.substr(1,1));++o>n.length&&(o=0,i++),t=n[i]+n[o]+n[r]}return t}(e.userConfiguration.keymaps,i.abbreviation),i.name=Kl(e.userConfiguration.keymaps,i.name),i.isDefault=0===e.userConfiguration.keymaps.length,(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=Vl(e.userConfiguration.keymaps,i),N.a({},e,{userConfiguration:r});case zo.EditName:var o=t.payload;if(!El(o.name))break;var l=o.name.trim(),u=null;if(e.userConfiguration.keymaps.some(function(e){return e.abbreviation===o.abbr&&(u=e),e.name===l&&e.abbreviation!==o.abbr}))break;var a=Object.assign(new $o.Keymap,u,{name:l});return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=Vl(e.userConfiguration.keymaps,a,function(e){return e.abbreviation!==a.abbreviation}),N.a({},e,{userConfiguration:r});case zo.EditAbbr:var s=t.payload,p=s.newAbbr.toUpperCase(),f=e.userConfiguration.keymaps.some(function(e){return e.name!==s.name&&e.abbreviation===p});return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=e.userConfiguration.keymaps.map(function(e){return e=Object.assign(new $o.Keymap,e),f||e.abbreviation!==s.abbr?e=e.renameKeymap(s.abbr,s.newAbbr):e.abbreviation=p,e}),N.a({},e,{userConfiguration:r});case zo.SetDefault:var d=t.payload;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=e.userConfiguration.keymaps.map(function(e){return(e.abbreviation===d||e.isDefault)&&((e=Object.assign(new $o.Keymap,e)).isDefault=e.abbreviation===d),e}),N.a({},e,{userConfiguration:r});case zo.Remove:var h,y=t.payload,b=e.userConfiguration.keymaps.filter(function(e){return e.abbreviation!==y||(h=e.isDefault,!1)});return h&&b.length>0&&(b[0]=Object.assign(new $o.Keymap,b[0],{isDefault:!0})),(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=b.map(function(e){return(e=Object.assign(new $o.Keymap,e)).layers=Gl(e.layers,"keymapAbbreviation",y),e}),N.a({},e,{userConfiguration:r});case zo.SaveKey:var m=(q=t.payload).key,g=q.layer,v=q.module,k=q.keyAction,_=k.action,w=q.keymap,O=_ instanceof $o.SwitchLayerAction,A=_ instanceof $o.SwitchKeymapAction,C=w.layers[g].modules[v].keyActions[m],T=C instanceof $o.SwitchLayerAction;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=e.userConfiguration.keymaps.map(function(e){return A&&e.abbreviation===_.keymapAbbreviation?e:((k.remapOnAllKeymap||e.abbreviation===w.abbreviation)&&(e.layers=e.layers.map(function(e,t){if(k.remapOnAllLayer||t===g||O){var n=$o.KeyActionHelper.createKeyAction(_);if(O)if(0===t||t-1===_.layer)Hl(e,v,m,n);else{var r=e.modules[v].keyActions[m];r&&r instanceof $o.SwitchLayerAction&&Hl(e,v,m,null)}else Hl(e,v,m,n)}else T&&t-1===C.layer&&Hl(e,v,m,null);return e})),e)}),N.a({},e,{userConfiguration:r,lastEditedKey:{key:"key-"+(m+1),moduleId:v}});case zo.CheckMacro:var x=t.payload;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=e.userConfiguration.keymaps.map(function(e){return(e=Object.assign(new $o.Keymap,e)).layers=Gl(e.layers,"_macroId",x),e}),N.a({},e,{userConfiguration:r});case ol.Add:return(S=new $o.Macro).id=Bl(e.userConfiguration.macros),S.name=Kl(e.userConfiguration.macros,"New macro"),S.isLooped=!1,S.isPrivate=!0,S.macroActions=[],(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=Vl(e.userConfiguration.macros,S),N.a({},e,{userConfiguration:r});case ol.Duplicate:var S;return(S=new $o.Macro(q=t.payload)).name=Kl(e.userConfiguration.macros,S.name),S.id=Bl(e.userConfiguration.macros),(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=Vl(e.userConfiguration.macros,S),N.a({},e,{userConfiguration:r});case ol.EditName:var M=t.payload;if(!El(M.name))break;var E=M.name.trim(),P=null;if(e.userConfiguration.macros.some(function(e){return e.id===M.id&&(P=e),e.id!==M.id&&e.name===E}))break;var I=Object.assign(new $o.Macro,P,{name:E});return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=Vl(e.userConfiguration.macros,I,function(e){return e.id!==I.id}),N.a({},e,{userConfiguration:r});case ol.Remove:var j=t.payload;(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=e.userConfiguration.macros.filter(function(e){return e.id!==j});for(var R=0;R<r.keymaps.length;R++){for(var L=r.keymaps[R],D=!1,U=0,F=L.layers;U<F.length;U++)for(var K=0,B=F[U].modules;K<B.length;K++)for(var V=B[K],G=0;G<V.keyActions.length;G++){var H=V.keyActions[G];H instanceof $o.PlayMacroAction&&H.macroId===j&&(D=!0,V.keyActions[G]=new $o.NoneAction)}D&&(r.keymaps[R]=new $o.Keymap(L))}return N.a({},e,{userConfiguration:r});case ol.AddAction:var $=t.payload;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=e.userConfiguration.macros.map(function(e){return e.id===$.id&&(e=new $o.Macro(e)).macroActions.push($.action),e}),N.a({},e,{userConfiguration:r});case ol.SaveAction:var z=t.payload;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=e.userConfiguration.macros.map(function(e){return e.id===z.id&&((e=new $o.Macro(e)).macroActions[z.index]=z.action),e}),N.a({},e,{userConfiguration:r});case ol.DeleteAction:var Q=t.payload;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=e.userConfiguration.macros.map(function(e){return e.id===Q.id&&(e=new $o.Macro(e)).macroActions.splice(Q.index,1),e}),N.a({},e,{userConfiguration:r});case ol.ReorderAction:var W=t.payload;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).macros=e.userConfiguration.macros.map(function(e){return e.id===W.id&&(e=new $o.Macro(e)).macroActions.splice(W.newIndex,0,e.macroActions.splice(W.oldIndex,1)[0]),e}),N.a({},e,{userConfiguration:r});case yl.RenameUserConfiguration:return El(q=t.payload)?((r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).deviceName=q.trim(),N.a({},e,{userConfiguration:r})):e;case yl.SetUserConfigurationValue:var q=t.payload;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration))[q.propertyName]=q.value,N.a({},e,{userConfiguration:r});case zo.EditDescription:var J=t.payload;return(r=Object.assign(new $o.UserConfiguration,e.userConfiguration)).keymaps=e.userConfiguration.keymaps.map(function(e){return e.abbreviation===J.abbr&&(e.description=J.description),e}),N.a({},e,{userConfiguration:r});case zo.Select:return N.a({},e,{selectedKeymapAbbr:t.payload,lastEditedKey:Ll()});case ol.Select:return N.a({},e,{selectedMacroId:t.payload});default:return e}}var Ul=function(e){return e.userConfiguration.keymaps.find(function(e){return e.isDefault})},Fl=function(e,t){return e.set(t.id,t)};function Kl(e,t){var n=1,r=/ \(\d+\)$/g,i=t.replace(r,"");return e.forEach(function(e){e.name.replace(r,"")===i&&n++}),i+" ("+n+")"}function Bl(e){var t=0;return e.forEach(function(e){e.id>t&&(t=e.id)}),t+1}function Vl(e,t,n){void 0===n&&(n=function(){return!0});for(var r=[],i=!1,o=0,l=e;o<l.length;o++){var u=l[o];!i&&u.name.localeCompare(t.name)>0&&(r.push(t),i=!0),n(u)&&r.push(u)}return i||r.push(t),r}function Gl(e,t,n){for(var r=[],i=0;i<e.length;++i)for(var o=e[i].modules,l=0;l<o.length;++l)for(var u=o[l].keyActions,a=0;a<u.length;++a){var s=u[a];s&&s.hasOwnProperty(t)&&s[t]===n&&r.push({layerIdx:i,moduleIdx:l,keyActionIdx:a})}if(0===r.length)return e;for(var c=e.slice(),p=0,f=r;p<f.length;p++){var d=f[p];c[d.layerIdx]===e[d.layerIdx]&&(c[d.layerIdx]=Object.assign(new $o.Layer,c[d.layerIdx]),c[d.layerIdx].modules=c[d.layerIdx].modules.slice());var h=c[d.layerIdx].modules;h[d.moduleIdx]===e[d.layerIdx].modules[d.moduleIdx]&&(h[d.moduleIdx]=Object.assign(new $o.Module,h[d.moduleIdx]),h[d.moduleIdx].keyActions=h[d.moduleIdx].keyActions.slice()),h[d.moduleIdx].keyActions[d.keyActionIdx]=void 0}return c}function Hl(e,t,n,r){var i=Object.assign(new $o.Module,e.modules[t]);e.modules=e.modules.slice(),e.modules[t]=i,i.keyActions=i.keyActions.slice(),i.keyActions[n]=r}var $l=[];function zl(e,t){switch(void 0===e&&(e=$l),t.type){case zo.LoadKeymapsSuccess:return t.payload;default:return e}}var Ql={updateAvailable:!1,updateDownloaded:!1,doNotUpdateApp:!1,updateInfo:{isPrerelease:!1,version:""}};function Wl(e,t){switch(void 0===e&&(e=Ql),t.type){case o.UpdateAvailable:return N.a({},e,{updateAvailable:!0});case o.UpdateDownloaded:return N.a({},e,{updateDownloaded:!0,updateInfo:t.payload});case o.DoNotUpdateApp:return N.a({},e,{doNotUpdateApp:!0});default:return e}}var ql=function(e){return e.GetAgentContributors="[contributors] Get",e.FetchAgentContributors="[contributors] Fetch",e.AgentContributorsAvailable="[contributors] Available",e.AgentContributorsNotAvailable="[contributors] Not available",e}({}),Jl=function(){return function(){this.type=ql.GetAgentContributors}}(),Yl=function(){return function(){this.type=ql.FetchAgentContributors}}(),Zl=function(){return function(e){this.payload=e,this.type=ql.AgentContributorsAvailable}}(),Xl=function(){return function(e){this.payload=e,this.type=ql.AgentContributorsNotAvailable,console.error(e)}}(),eu={isLoading:!1,contributors:[],error:null};function tu(e,t){switch(void 0===e&&(e=eu),t.type){case ql.GetAgentContributors:return N.a({},e);case ql.FetchAgentContributors:return N.a({},e,{isLoading:!0});case ql.AgentContributorsAvailable:return N.a({},e,{contributors:t.payload,isLoading:!1});case ql.AgentContributorsNotAvailable:return N.a({},e,{error:t.payload,isLoading:!1});default:return e}}var nu=function(e){return e.ToggleCheckForUpdateOnStartup="[app-update-config] Check for update on startup",e.CheckForUpdateNow="[app-update-config] Check for update now",e.CheckForUpdateSuccess="[app-update-config] Check for update success",e.CheckForUpdateFailed="[app-update-config] Check for update failed",e.TogglePreReleaseFlag="[app-update-config] Toggle pre release update flag",e.LoadAutoUpdateSettings="[app-update-config] Load auto update settings",e.LoadAutoUpdateSettingSuccess="[app-update-config] Load auto update settings success",e.SaveAutoUpdateSettingSuccess="[app-update-config] Save auto update settings success",e}({}),ru=function(){return function(e){this.payload=e,this.type=nu.ToggleCheckForUpdateOnStartup}}(),iu=function(){return function(e){this.payload=e,this.type=nu.CheckForUpdateNow}}(),ou=function(){return function(e){this.payload=e,this.type=nu.CheckForUpdateSuccess}}(),lu=function(){return function(e){this.payload=e,this.type=nu.CheckForUpdateFailed}}(),uu=function(){return function(){this.type=nu.LoadAutoUpdateSettingSuccess}}(),au=function(){return function(e){this.payload=e,this.type=nu.LoadAutoUpdateSettingSuccess}}(),su=function(){return function(){this.type=nu.SaveAutoUpdateSettingSuccess}}(),cu={checkForUpdateOnStartUp:!1,usePreReleaseUpdate:!1,checkingForUpdate:!1};function pu(e,t){switch(void 0===e&&(e=cu),t.type){case nu.ToggleCheckForUpdateOnStartup:return N.a({},e,{checkForUpdateOnStartUp:t.payload});case nu.TogglePreReleaseFlag:return N.a({},e,{usePreReleaseUpdate:t.payload});case nu.LoadAutoUpdateSettingSuccess:return N.a({},e,t.payload);case nu.CheckForUpdateNow:return N.a({},e,{checkingForUpdate:!0});case o.UpdateError:case nu.CheckForUpdateSuccess:case nu.CheckForUpdateFailed:return N.a({},e,{checkingForUpdate:!1});default:return e}}var fu=function(e){return e.AppBootstrapped="[app] bootstrapped",e.AppStarted="[app] started",e.AppShowNotification="[app] show notification",e.ApplyAppStartInfo="[app] apply command line args",e.AppProcessStartInfo="[app] process start info",e.UndoLast="[app] undo last action",e.UndoLastSuccess="[app] undo last action success",e.DismissUndoNotification="[app] dismiss notification action",e.LoadHardwareConfigurationSuccess="[app] load hardware configuration success",e.ElectronMainLogReceived="[app] Electron main log received",e.OpenUrlInNewWindow="[app] Open URL in new Window",e.PrivilegeWhatWillThisDo="[app] What will this do clicked",e.SetupPermissionError="[app] Setup permission error",e.LoadAppStartInfo="[app] Load app start info",e.StartKeypressCapturing="[app] Start keypress capturing",e.StopKeypressCapturing="[app] Stop keypress capturing",e}({}),du=function(){return function(){this.type=fu.AppStarted}}(),hu=function(){return function(e){this.payload=e,this.type=fu.AppShowNotification}}(),yu=function(){return function(e){this.payload=e,this.type=fu.ApplyAppStartInfo}}(),bu=function(){return function(e){this.payload=e,this.type=fu.AppProcessStartInfo}}(),mu=function(){return function(e){this.payload=e,this.type=fu.UndoLast}}(),gu=function(){return function(){this.type=fu.DismissUndoNotification}}(),vu=function(){return function(e){this.payload=e,this.type=fu.LoadHardwareConfigurationSuccess}}(),ku=function(){return function(e){this.payload=e,this.type=fu.ElectronMainLogReceived}}(),_u=function(){return function(e){this.payload=e,this.type=fu.OpenUrlInNewWindow}}(),wu=function(){return function(){this.type=fu.PrivilegeWhatWillThisDo}}(),Ou=function(){return function(e){this.payload=e,this.type=fu.SetupPermissionError}}(),Au=function(){return function(){this.type=fu.LoadAppStartInfo}}(),Cu=function(){return function(){this.type=fu.StartKeypressCapturing}}(),Tu=function(){return function(){this.type=fu.StopKeypressCapturing}}(),xu=function(e){return e[e.ANSI=0]="ANSI",e[e.ISO=1]="ISO",e}({}),Su={started:!1,commandLineArgs:{},navigationCountAfterNotification:0,runningInElectron:Object($o.runInElectron)(),configLoading:!0,agentVersionInfo:jl(),privilegeWhatWillThisDoClicked:!1,keypressCapturing:!1};function Mu(e,t){switch(void 0===e&&(e=Su),t.type){case fu.AppStarted:return N.a({},e,{started:!0});case fu.ApplyAppStartInfo:var n=t.payload;return N.a({},e,{commandLineArgs:n.commandLineArgs,platform:n.platform,osVersion:n.osVersion});case fu.AppShowNotification:return t.payload.type!==$o.NotificationType.Undoable?e:N.a({},e,{undoableNotification:t.payload,navigationCountAfterNotification:0});case Eo:var r=N.a({},e);return r.navigationCountAfterNotification++,r.navigationCountAfterNotification>1&&(r.undoableNotification=null),r;case fu.UndoLastSuccess:case fu.DismissUndoNotification:return N.a({},e,{undoableNotification:null});case yl.LoadUserConfigSuccess:case yl.SaveUserConfigSuccess:return N.a({},e,{prevUserConfig:t.payload,configLoading:!1});case yl.LoadConfigFromDevice:case yl.LoadUserConfig:return N.a({},e,{configLoading:!0});case fu.LoadHardwareConfigurationSuccess:return N.a({},e,{hardwareConfig:t.payload});case c.ConnectionStateChanged:var i=t.payload;return i&&!0===i.connected?e:N.a({},e,{hardwareConfig:null});case fu.PrivilegeWhatWillThisDo:return N.a({},e,{privilegeWhatWillThisDoClicked:!0});case fu.SetupPermissionError:return N.a({},e,{permissionError:t.payload});case c.SetPrivilegeOnLinux:return N.a({},e,{permissionError:null});case fu.StartKeypressCapturing:return N.a({},e,{keypressCapturing:!0});case fu.StopKeypressCapturing:return N.a({},e,{keypressCapturing:!1});default:return e}}var Eu={showButton:!1,text:null,showProgress:!1},Pu=function(e){return e.standard="xterm-standard",e.error="xterm-error",e}({}),Iu={connected:!0,hasPermission:!0,bootloaderActive:!1,zeroInterfaceAvailable:!0,udevRuleInfo:$o.UdevRulesInfo.Unknown,saveToKeyboard:Eu,savingToKeyboard:!1,updatingFirmware:!1,firmwareUpdateFinished:!1,modules:{leftModuleInfo:{firmwareVersion:"",moduleProtocolVersion:""},rightModuleInfo:{firmwareVersion:""}},log:[{message:"",cssClass:Pu.standard}],restoringUserConfiguration:!1,hasBackupUserConfiguration:!1,halvesInfo:{isLeftHalfConnected:!0,areHalvesMerged:!1}};function ju(e,t){switch(void 0===e&&(e=Iu),t.type){case c.ConnectionStateChanged:return N.a({},e,{connected:(n=t.payload).connected,hasPermission:n.hasPermission,zeroInterfaceAvailable:n.zeroInterfaceAvailable,bootloaderActive:n.bootloaderActive,udevRuleInfo:n.udevRulesInfo,halvesInfo:n.halvesInfo});case c.SavingConfiguration:return N.a({},e,{savingToKeyboard:!0});case c.ShowSaveToKeyboardButton:return N.a({},e,{saveToKeyboard:{showButton:!0,text:"Save to keyboard",action:new h}});case c.SaveConfiguration:return N.a({},e,{saveToKeyboard:{showButton:!0,text:"Saving",showProgress:!0}});case c.SaveToKeyboardSuccess:return N.a({},e,{saveToKeyboard:{showButton:!0,text:"Saved!",action:null},restoringUserConfiguration:!1});case c.SaveToKeyboardFailed:return N.a({},e,{saveToKeyboard:{showButton:!0,text:"Save to keyboard",action:new h}});case c.HideSaveToKeyboardButton:return N.a({},e,{saveToKeyboard:Eu});case c.UpdateFirmwareWith:case c.UpdateFirmware:return N.a({},e,{updatingFirmware:!0,firmwareUpdateFinished:!1,firmwareUpdateFailed:!1,firmwareUpdateSuccess:!1,log:[{message:"Start flashing firmware",cssClass:Pu.standard}]});case c.UpdateFirmwareSuccess:return N.a({},e,{updatingFirmware:!1,firmwareUpdateFinished:!0,firmwareUpdateSuccess:!0,modules:t.payload});case c.UpdateFirmwareFailed:var n;return N.a({},e,{updatingFirmware:!1,firmwareUpdateFinished:!0,firmwareUpdateFailed:!0,modules:(n=t.payload).modules,log:e.log.concat([{message:n.error.message,cssClass:Pu.error}])});case fu.ElectronMainLogReceived:if(!e.updatingFirmware)return e;var r=t.payload;return r.message.indexOf("UHK Device not found:")>-1?e:N.a({},e,{log:e.log.concat([{message:r.message,cssClass:"error"===r.level?Pu.error:Pu.standard}])});case c.ModulesInfoLoaded:return N.a({},e,{modules:t.payload});case c.ResetUserConfiguration:case c.RestoreConfigurationFromBackup:return N.a({},e,{restoringUserConfiguration:!0});case c.HasBackupUserConfiguration:return N.a({},e,{hasBackupUserConfiguration:t.payload});case c.RestoreConfigurationFromBackupSuccess:return N.a({},e,{hasBackupUserConfiguration:!1});case c.RecoveryDevice:return N.a({},e,{updatingFirmware:!0,log:[{message:"",cssClass:Pu.standard}]});default:return e}}var Ru=function(e){return e[e.Linux=0]="Linux",e[e.Mac=1]="Mac",e[e.Windows=2]="Windows",e}({}),Lu=function(e){return e.userConfiguration},Nu=Object(L.v)(Lu,function(e){return e.userConfiguration}),Du=Object(L.v)(Lu,function(e){return e.userConfiguration.keymaps}),Uu=Object(L.v)(Lu,Ul),Fu=Object(L.v)(Lu,function(e){return void 0===e.selectedKeymapAbbr?Ul(e):e.userConfiguration.keymaps.find(function(t){return t.abbreviation===e.selectedKeymapAbbr})}),Ku=Object(L.v)(Lu,function(e){return e.userConfiguration.macros}),Bu=Object(L.v)(Lu,function(e){if(!isNaN(e.selectedMacroId))return e.userConfiguration.macros.find(function(t){return t.id===e.selectedMacroId})}),Vu=Object(L.v)(Lu,function(e){return e.userConfiguration.keymaps.length>1}),Gu=(Object(L.v)(Lu,function(e){return e.userConfiguration.macros.length>0}),Object(L.v)(Lu,function(e){return e.userConfiguration.macros.reduce(Fl,new Map)})),Hu=Object(L.v)(Lu,function(e){return e.lastEditedKey}),$u=function(e){return e.app},zu=Object(L.v)($u,function(e){return e.commandLineArgs.addons}),Qu=Object(L.v)($u,function(e){return e.undoableNotification}),Wu=Object(L.v)($u,function(e){return e.prevUserConfig}),qu=Object(L.v)($u,function(e){return e.runningInElectron}),Ju=Object(L.v)($u,function(e){return e.hardwareConfig&&e.hardwareConfig.isIso?xu.ISO:xu.ANSI}),Yu=Object(L.v)($u,function(e){return!e.runningInElectron||!!e.hardwareConfig}),Zu=Object(L.v)($u,function(e){return e.agentVersionInfo||{}}),Xu=Object(L.v)($u,function(e){if(e.runningInElectron)switch(e.platform){case"darwin":return Ru.Mac;case"win32":return Ru.Windows;default:return Ru.Linux}var t=navigator.platform.toLowerCase();return t.indexOf("mac")>-1?Ru.Mac:t.indexOf("win")>-1?Ru.Windows:Ru.Linux}),ea=Object(L.v)($u,function(e){return e.keypressCapturing}),ta=Object(L.v)($u,function(e){if(!e.osVersion||"win32"!==e.platform)return!1;var t=e.osVersion.split("."),n=+t[0];return n<6||6===n&&+t[1]<2}),na=function(e){return e.contributors},ra=Object(L.v)(ta,function(e){return!e}),ia=function(e){return e.appUpdate},oa=Object(L.v)(ia,function(e){return e.updateDownloaded&&!e.doNotUpdateApp}),la=Object(L.v)(ia,function(e){return e.updateInfo}),ua=function(e){return e.autoUpdateSettings},aa=Object(L.v)(ua,function(e){return{checkForUpdateOnStartUp:e.checkForUpdateOnStartUp,usePreReleaseUpdate:e.usePreReleaseUpdate}}),sa=Object(L.v)(ua,function(e){return e.checkingForUpdate}),ca=function(e){return e.device},pa=Object(L.v)(qu,ca,$u,function(e,t,n){return!e||("linux"===n.platform?t.connected&&(t.zeroInterfaceAvailable||t.updatingFirmware):t.connected)}),fa=Object(L.v)(ca,function(e){return e.udevRuleInfo===$o.UdevRulesInfo.Ok}),da=Object(L.v)(ca,function(e){return e.connected&&!e.zeroInterfaceAvailable?{header:"Cannot find your UHK",subtitle:"Please reconnect it!"}:{header:"Cannot find your UHK",subtitle:"Please plug it in!"}}),ha=Object(L.v)(ca,function(e){return e.saveToKeyboard}),ya=Object(L.v)(qu,ha,function(e,t){return e?t:Eu}),ba=Object(L.v)(ca,function(e){return e.updatingFirmware}),ma=Object(L.v)(ca,function(e){return e.log}),ga=Object(L.v)(qu,ca,function(e,t){return!e||t.updatingFirmware}),va=Object(L.v)(ca,function(e){return e.modules}),ka=Object(L.v)(ca,function(e){return{restoringUserConfiguration:e.restoringUserConfiguration,hasBackupUserConfiguration:e.hasBackupUserConfiguration}}),_a=Object(L.v)(ca,function(e){return e.hasBackupUserConfiguration}),wa=Object(L.v)(ca,function(e){return e.bootloaderActive}),Oa=Object(L.v)(ca,function(e){return e.firmwareUpdateFailed}),Aa=Object(L.v)(ca,function(e){return e.firmwareUpdateSuccess}),Ca=Object(L.v)(ca,function(e){return e.udevRuleInfo===$o.UdevRulesInfo.Different}),Ta=Object(L.v)(ca,function(e){return e.halvesInfo}),xa=Object(L.v)($u,Ca,function(e,t){var n=!!e.permissionError;return{permissionSetupFailed:n,updateUdevRules:t,showWhatWillThisDo:!e.privilegeWhatWillThisDoClicked&&!n,showWhatWillThisDoContent:e.privilegeWhatWillThisDoClicked||n}}),Sa=Object(L.v)(zu,qu,ba,Nu,_a,function(e,t,n,r,i){return{showAddonMenu:e,runInElectron:t,updatingFirmware:n,deviceName:r.deviceName,keymaps:r.keymaps,macros:r.macros,restoreUserConfiguration:i}}),Ma=function(e){return e.router},Ea=Object(L.v)(va,function(e){return Rl(e.rightModuleInfo.firmwareVersion,"8.4.3")}),Pa=Object(L.v)(va,function(e){return Rl(e.rightModuleInfo.firmwareVersion,"8.4.3")}),Ia=Object(L.v)(va,function(e){return Rl(e.rightModuleInfo.userConfigVersion,"4.1.1")}),ja=function(){function e(e){var t=this;this.store=e,this.showUpdateAvailableSubscription=e.select(oa).subscribe(function(e){return t.showUpdateAvailable=e}),this.updateInfo$=e.select(la),this.deviceConfigurationLoaded$=e.select(Yu),this.runningInElectron$=e.select(qu),this.saveToKeyboardStateSubscription=e.select(ya).subscribe(function(e){return t.saveToKeyboardState=e}),this.keypressCapturingSubscription=e.select(ea).subscribe(function(e){return t.keypressCapturing=e})}return e.prototype.ngOnDestroy=function(){this.saveToKeyboardStateSubscription.unsubscribe(),this.keypressCapturingSubscription.unsubscribe(),this.showUpdateAvailableSubscription.unsubscribe()},e.prototype.onKeyDown=function(e){this.saveToKeyboardState.showButton&&e.ctrlKey&&"s"===e.key&&!e.defaultPrevented&&!this.keypressCapturing&&(this.clickedOnProgressButton(this.saveToKeyboardState.action),e.preventDefault()),e.shiftKey&&e.ctrlKey&&e.metaKey&&"|"===e.key&&!e.defaultPrevented&&(this.enableUsbStackTest(),e.preventDefault())},e.prototype.updateApp=function(){this.store.dispatch(new l)},e.prototype.doNotUpdateApp=function(){this.store.dispatch(new u)},e.prototype.clickedOnProgressButton=function(e){return this.store.dispatch(e)},e.prototype.enableUsbStackTest=function(){this.store.dispatch(new j)},e}(),Ra=r.sb({encapsulation:2,styles:[],data:{}});function La(e){return r.Qb(0,[(e()(),r.ub(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.tb(1,212992,null,0,lo,[oo,r.P,r.j,[8,null],r.h],null,null)],function(e,t){e(t,1,0)},null)}function Na(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"ng-component",[],null,null,null,La,Ra)),r.tb(1,49152,null,0,Zn,[],null,null)],null,null)}var Da=r.qb("ng-component",Zn,Na,{},{},[]),Ua=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 r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n={top:(n=e.getBoundingClientRect()).top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{var i=this.offsetParent(e);n=this.offset(e,!1),i!==document.documentElement&&(r=this.offset(i,!1)),r.top+=i.clientTop,r.left+=i.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.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(),r=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft,o={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+i,right:n.right+i};return t&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o},e.prototype.positionElements=function(e,t,n,r){var i=n.split("-"),o=i[0],l=void 0===o?"top":o,u=i[1],a=void 0===u?"center":u,s=r?this.offset(e,!1):this.position(e,!1),c=this.getAllStyles(t),p=parseFloat(c.marginTop),f=parseFloat(c.marginBottom),d=parseFloat(c.marginLeft),h=parseFloat(c.marginRight),y=0,b=0;switch(l){case"top":y=s.top-(t.offsetHeight+p+f);break;case"bottom":y=s.top+s.height;break;case"left":b=s.left-(t.offsetWidth+d+h);break;case"right":b=s.left+s.width}switch(a){case"top":y=s.top;break;case"bottom":y=s.top+s.height-t.offsetHeight;break;case"left":b=s.left;break;case"right":b=s.left+s.width-t.offsetWidth;break;case"center":"top"===l||"bottom"===l?b=s.left+s.width/2-t.offsetWidth/2:y=s.top+s.height/2-t.offsetHeight/2}t.style.transform="translate("+Math.round(b)+"px, "+Math.round(y)+"px)";var m=t.getBoundingClientRect(),g=document.documentElement,v=window.innerHeight||g.clientHeight,k=window.innerWidth||g.clientWidth;return m.left>=0&&m.top>=0&&m.right<=k&&m.bottom<=v},e}();new Ua;var Fa=function(){return function(){this.confirmText="Confirm",this.cancelText="Cancel",this.confirmButtonType="success",this.cancelButtonType="default",this.placement="top",this.hideConfirmButton=!1,this.hideCancelButton=!1,this.popoverClass="",this.appendToBody=!1,this.reverseButtonOrder=!1,this.closeOnOutsideClick=!0}}(),Ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t}(Fa),Ba=function(){function e(e){this.options=e}return e.prototype.ngAfterViewInit=function(){this.options.onAfterViewInit()},e}(),Va=function(){function e(e,t,n,i,o,l){this.viewContainerRef=e,this.elm=t,this.defaultOptions=n,this.cfr=i,this.position=o,this.renderer=l,this.isDisabled=!1,this.isOpen=!1,this.isOpenChange=new r.m(!0),this.confirm=new r.m,this.cancel=new r.m,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){var t=void 0!==this.closeOnOutsideClick?this.closeOnOutsideClick:this.defaultOptions.closeOnOutsideClick;this.popover&&!this.elm.nativeElement.contains(e.target)&&!this.popover.location.nativeElement.contains(e.target)&&t&&this.hidePopover()},e.prototype.showPopover=function(){var e=this;if(!this.popover&&!this.isDisabled){setTimeout(function(){e.eventListeners=[e.renderer.listen("document","click",function(t){return e.onDocumentClick(t)}),e.renderer.listen("document","touchend",function(t){return e.onDocumentClick(t)}),e.renderer.listen("window","resize",function(){return e.positionPopover()})]});var t=new Ka;Object.assign(t,this.defaultOptions,{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","reverseButtonOrder","popoverTitle","popoverMessage"].forEach(function(n){void 0!==e[n]&&(t[n]=e[n])});var n=this.cfr.resolveComponentFactory(Ba),i=r.r.create([{provide:Ka,useValue:t}],this.viewContainerRef.parentInjector);this.popover=this.viewContainerRef.createComponent(n,this.viewContainerRef.length,i),t.appendToBody&&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(),delete this.popover,this.isOpenChange.emit(!1),this.eventListeners.forEach(function(e){return e()}),this.eventListeners=[])},e}(),Ga=function(){function e(e){this.elm=e}return e.prototype.ngOnChanges=function(e){e.mwlFocus&&!0===this.mwlFocus&&this.elm.nativeElement.focus()},e}(),Ha=new r.q("confirmation popover user options");function $a(e){var t=new Fa;return Object.assign(t,e),t}var za=function(){function e(){}return e.forRoot=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:Ha,useValue:t},{provide:Fa,useFactory:$a,deps:[Ha]},Ua]}},e}(),Qa=r.sb({encapsulation:0,styles:[".popover[_ngcontent-%COMP%] {\n display: block;\n }\n .bs-popover-top[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%], .bs-popover-bottom[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%] {\n left: 50%;\n }\n .bs-popover-left[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%], .bs-popover-right[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%] {\n top: 50%;\n }\n .btn[_ngcontent-%COMP%] {\n transition: none;\n }\n .confirm-btns[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-around;\n }\n .confirm-btn-container[_ngcontent-%COMP%] {\n flex-basis: 50%;\n }\n .confirm-btn-container[_ngcontent-%COMP%]:not(:first-child) {\n margin-left: 4px;\n }\n .confirm-btn-container[_ngcontent-%COMP%]:not(:last-child) {\n margin-right: 4px;\n }\n .confirm-btns-reversed[_ngcontent-%COMP%] {\n flex-direction: row-reverse;\n }\n .confirm-btns-reversed[_ngcontent-%COMP%] .confirm-btn-container[_ngcontent-%COMP%]:not(:first-child) {\n margin-right: 4px;\n margin-left: 0;\n }\n .confirm-btns-reversed[_ngcontent-%COMP%] .confirm-btn-container[_ngcontent-%COMP%]:not(:last-child) {\n margin-right: 0;\n margin-left: 4px;\n }"],data:{}});function Wa(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"div",[["class","confirm-btn-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,2,"button",[["type","button"]],[[8,"className",0],[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.parent.context.options.onCancel({clickEvent:n})&&r),r},null,null)),r.tb(3,540672,null,0,Ga,[r.k],{mwlFocus:[0,"mwlFocus"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,3,0,"cancel"===t.parent.context.options.focusButton)},function(e,t){e(t,2,0,"btn btn-block btn-"+t.parent.context.options.cancelButtonType,t.parent.context.options.cancelText)})}function qa(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"div",[["class","confirm-btn-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,2,"button",[["type","button"]],[[8,"className",0],[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.parent.context.options.onConfirm({clickEvent:n})&&r),r},null,null)),r.tb(3,540672,null,0,Ga,[r.k],{mwlFocus:[0,"mwlFocus"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,3,0,"confirm"===t.parent.context.options.focusButton)},function(e,t){e(t,2,0,"btn btn-block btn-"+t.parent.context.options.confirmButtonType,t.parent.context.options.confirmText)})}function Ja(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,22,"div",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(3,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Hb(4,5),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,0,"div",[["class","popover-arrow arrow"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,0,"h3",[["class","popover-title popover-header"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,12,"div",[["class","popover-content popover-body"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,0,"p",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,7,"div",[["class","confirm-btns"]],[[2,"confirm-btns-reversed",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Wa)),r.tb(17,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,qa)),r.tb(20,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,4,0,"popover",t.context.options.placement,"popover-"+t.context.options.placement,"bs-popover-"+t.context.options.placement,t.context.options.popoverClass);e(t,3,0,n),e(t,17,0,!t.context.options.hideCancelButton),e(t,20,0,!t.context.options.hideConfirmButton)},function(e,t){e(t,8,0,t.context.options.popoverTitle),e(t,12,0,t.context.options.popoverMessage),e(t,14,0,t.context.options.reverseButtonOrder)})}function Ya(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "]))],null,null)}function Za(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(0,[["defaultTemplate",2]],null,0,null,Ja)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,2,null,Ya)),r.tb(4,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(5,{options:0}),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component,i=e(t,5,0,n.options);e(t,4,0,i,n.options.customTemplate||r.Gb(t,1))},null)}function Xa(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"mwl-confirmation-popover-window",[],null,null,null,Za,Qa)),r.tb(1,4243456,null,0,Ba,[Ka],null,null)],null,null)}var es=r.qb("mwl-confirmation-popover-window",Ba,Xa,{},{},[]),ts=function(){return function(){this.rotateLogo=!1}}(),ns=r.sb({encapsulation:0,styles:[[".uhk-message-wrapper[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center}.agent-logo[_ngcontent-%COMP%]{padding:2em}.message[_ngcontent-%COMP%]{display:flex;flex-direction:column}.message[_ngcontent-%COMP%] > 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%{transform:rotate(0)}100%,50%{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}100%,50%{transform:rotate(360deg)}}"]],data:{}});function rs(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,15,"span",[["class","uhk-message-wrapper"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,3,"img",[["class","agent-logo spin-logo"],["src","assets/images/agent-icon.png"]],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(4,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(5,{"spin-logo":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,7,"div",[["class","messages"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),r.Ob(10,null,[" "," "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),r.Ob(13,null,[" "," "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=e(t,5,0,t.component.rotateLogo);e(t,4,0,"agent-logo spin-logo",n)},function(e,t){var n=t.component;e(t,10,0,n.header),e(t,13,0,n.subtitle)})}var is=function(){function e(e){var t=this;this.store=e,this.stateSubscription=this.store.select(da).subscribe(function(e){return t.state=e})}return e.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe()},e}(),os=r.sb({encapsulation:2,styles:[],data:{}});function ls(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"uhk-message",[],null,null,null,rs,ns)),r.tb(1,49152,null,0,ts,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.state.header,n.state.subtitle)},null)}function us(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"missing-device",[],null,null,null,ls,os)),r.tb(1,180224,null,0,is,[L.m],null,null)],null,null)}var as=r.qb("missing-device",is,us,{},{},[]),ss=new r.q("WindowToken","undefined"!=typeof window&&window.document?{providedIn:"root",factory:function(){return window}}:void 0),cs=function(){function e(e,t){this.document=e,this.window=t,this.config={},this.copySubject=new Ue.a,this.copyResponse$=this.copySubject.asObservable()}return e.prototype.configure=function(e){this.config=e},Object.defineProperty(e.prototype,"isSupported",{get:function(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window},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&&this.isCopySuccessInIE11()}catch(n){return!1}},e.prototype.isCopySuccessInIE11=function(){var e=this.window.clipboardData;return!(e&&e.getData&&!e.getData("Text"))},e.prototype.copyFromContent=function(e,t){if(void 0===t&&(t=this.window.document.body),this.tempTextArea&&!t.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{t.appendChild(this.tempTextArea)}catch(r){throw new Error("Container should be a Dom element")}}this.tempTextArea.value=e;var n=this.copyFromInputElement(this.tempTextArea);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement),n},e.prototype.destroy=function(e){void 0===e&&(e=this.window.document.body),this.tempTextArea&&(e.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.focus(),t.getSelection().removeAllRanges()},e.prototype.createTempTextArea=function(e,t){var n,r="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[r?"right":"left"]="-9999px",n.style.top=(t.pageYOffset||e.documentElement.scrollTop)+"px",n.setAttribute("readonly",""),n},e.prototype.pushCopyReponse=function(e){this.copySubject.next(e)},e.ngInjectableDef=Object(r.T)({factory:function(){return new e(Object(r.X)(me),Object(r.X)(ss,8))},token:e,providedIn:"root"}),e}(),ps=function(){function e(e){this.clipboardSrv=e,this.cbOnSuccess=new r.m,this.cbOnError=new r.m}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.clipboardSrv.destroy(this.container)},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,e):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent,this.container),this.cbContent,e):this.handleResult(!1,void 0,e)},e.prototype.handleResult=function(e,t,n){var r={isSuccess:e,event:n};e?(r=Object.assign(r,{content:t,successMessage:this.cbSuccessMsg}),this.cbOnSuccess.emit(r)):this.cbOnError.emit(r),this.clipboardSrv.pushCopyReponse(r)},e}(),fs=function(){return function(){}}(),ds=$.fn.tooltip.Constructor.DEFAULTS.whiteList;ds.div.push("style");var hs=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,whiteList:ds}),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;"'),'<div class="tooltip" '+e+'>\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" '+t+"></div>\n </div>"},e}(),ys=function(){return function(){this.command='cat <<EOF >/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.\nSUBSYSTEM=="input", GROUP="input", MODE="0666"\nSUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", TAG+="uaccess"\nKERNEL=="hidraw*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", TAG+="uaccess"\nEOF\nudevadm trigger\nudevadm settle'}}(),bs=r.sb({encapsulation:2,styles:[],data:{}});function ms(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,13,"ol",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Open a terminal."])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Run "])),(e()(),r.ub(7,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["su"])),(e()(),r.Ob(-1,null,[" to become root."])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Paste the following script:"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(15,0,null,null,9,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,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!==r.Gb(e,18).onClick(n.target)&&i),i},null,null)),r.tb(18,212992,null,0,ps,[cs],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),r.tb(19,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(21,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),r.ub(22,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),r.Ob(23,null,["",""])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,18,0,"",t.component.command),e(t,19,0,"Copy to clipboard")},function(e,t){var n=t.component;e(t,17,0,r.Gb(t,19).placement),e(t,23,0,n.command)})}var gs=function(){function e(e,t){this.store=e,this.cdRef=t}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(xa).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 p)},e.prototype.whatWillThisDo=function(){this.store.dispatch(new wu)},e.prototype.retry=function(){this.store.dispatch(new Au)},e}(),vs=r.sb({encapsulation:0,styles:[[".privilege-checker-wrapper[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;align-items: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 ks(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n You seem to have an old udev rule file installed. New Agent versions require and updated udev rule file to find your UHK.\n "]))],null,null)}function _s(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Set up permissions"]))],null,null)}function ws(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Update udev rule file"]))],null,null)}function Os(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.whatWillThisDo()&&r),r},null,null)),(e()(),r.Ob(-1,null,["What will this do?\n "]))],null,null)}function As(e){return r.Qb(0,[(e()(),r.ub(0,0,[["privilegeError",1]],null,4,"p",[["class","privilege-error"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Agent wasn't able to set up permissions via PolicyKit. This is most likely because the\n "])),(e()(),r.ub(2,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["polkit"])),(e()(),r.Ob(-1,null,[" package is not installed on your system.\n "]))],null,null)}function Cs(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n If you want to set up permissions manually:\n "])),(e()(),r.ub(2,0,null,null,1,"udev-rules",[],null,null,null,ms,bs)),r.tb(3,49152,null,0,ys,[],null,null),(e()(),r.Ob(-1,null,["\n "]))],null,null)}function Ts(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,31,"div",[["class","privilege-checker-wrapper"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,rs,ns)),r.tb(3,49152,null,0,ts,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,ks)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(8,0,null,null,7,"button",[["class","btn btn-default btn-lg btn-primary mt-10"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.setUpPermissions()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,_s)),r.tb(11,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ws)),r.tb(14,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(17,0,null,null,13,"div",[["class","mt-10"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Os)),r.tb(20,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(22,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,As)),r.tb(25,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,Cs)),r.tb(28,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-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,6,0,n.state.updateUdevRules),e(t,11,0,!n.state.updateUdevRules),e(t,14,0,n.state.updateUdevRules),e(t,20,0,n.state.showWhatWillThisDo),e(t,25,0,n.state.permissionSetupFailed),e(t,28,0,n.state.showWhatWillThisDoContent)},null)}function xs(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"privilege-checker",[],null,null,null,Ts,vs)),r.tb(1,245760,null,0,gs,[L.m,r.h],null,null)],function(e,t){e(t,1,0)},null)}var Ss=r.qb("privilege-checker",gs,xs,{},{},[]),Ms=function(){return function(){}}(),Es=r.sb({encapsulation:2,styles:[],data:{}});function Ps(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"uhk-message",[["header","Loading keyboard configuration..."],["subtitle","Hang tight!"]],null,null,null,rs,ns)),r.tb(2,49152,null,0,ts,[],{header:[0,"header"],subtitle:[1,"subtitle"],rotateLogo:[2,"rotateLogo"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,2,0,"Loading keyboard configuration...","Hang tight!",!0)},null)}function Is(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"loading-device",[],null,null,null,Ps,Es)),r.tb(1,49152,null,0,Ms,[],null,null)],null,null)}var js=r.qb("loading-device",Ms,Is,{},{},[]),Rs=function(){function e(){this.logs=[]}return e.prototype.ngOnChanges=function(e){e.logs&&this.scrollToTheEnd()},e.prototype.getClipboardContent=function(){return this.logs.reduce(function(e,t){return e+t.message+"\n"},"")},e.prototype.scrollToTheEnd=function(){var e=this;setTimeout(function(){e.divElement&&e.divElement.nativeElement&&(e.divElement.nativeElement.scrollTop=e.divElement.nativeElement.scrollHeight)})},e}(),Ls=r.sb({encapsulation:0,styles:[['[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:stretch;width:100%;height:100%}.x-term-container[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;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 Ns(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"li",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),(e()(),r.ub(3,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(4,null,["",""]))],function(e,t){e(t,2,0,t.context.$implicit.cssClass)},function(e,t){e(t,4,0,t.context.$implicit.message)})}function Ds(e){return r.Qb(2,[r.Mb(671088640,1,{divElement:0}),(e()(),r.ub(1,0,null,null,20,"div",[["class","x-term-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,[[1,0],["scrollMe",1]],null,7,"div",[["class","x-term-wrapper"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,4,"ul",[["class","list-unstyled"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ns)),r.tb(8,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,8,"div",[["class","copy-container-wrapper"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,5,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,17).onClick(n.target)&&i),i},null,null)),r.tb(17,212992,null,0,ps,[cs],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),r.tb(18,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-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,r.Gb(t,18).placement)})}var Us=function(){function e(e){this.store=e}return e.prototype.ngOnInit=function(){this.flashFirmwareButtonDisbabled$=this.store.select(ga),this.updatingFirmware$=this.store.select(ba),this.xtermLog$=this.store.select(ma)},e.prototype.onRecoveryDevice=function(){this.store.dispatch(new I)},e.prototype.onClose=function(){this.store.dispatch(new R)},e}(),Fs=r.sb({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 Ks(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,39,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,36,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,23,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(6,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,0,"i",[["class","fa fa-wrench"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Fix device"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Your device seems to be broken. No worries, Agent can fix it.\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,2,"button",[["class","btn btn-primary"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onRecoveryDevice()&&r),r},null,null)),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["Fix device\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,2,"button",[["class","btn btn-default"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onClose()&&r),r},null,null)),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["Close\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(29,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(31,0,null,null,2,"xterm",[],null,null,null,Ds,Ls)),r.tb(32,573440,null,0,Rs,[],{logs:[0,"logs"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(36,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,32,0,r.Pb(t,32,0,r.Gb(t,33).transform(n.xtermLog$)))},function(e,t){var n=t.component;e(t,19,0,r.Pb(t,19,0,r.Gb(t,20).transform(n.flashFirmwareButtonDisbabled$))),e(t,23,0,r.Pb(t,23,0,r.Gb(t,24).transform(n.updatingFirmware$)))})}function Bs(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"device-recovery-mode",[["class","container-fluid"]],null,null,null,Ks,Fs)),r.tb(1,114688,null,0,Us,[L.m],null,null)],function(e,t){e(t,1,0)},null)}var Vs=r.qb("device-recovery-mode",Us,Bs,{},{},[]),Gs=function(){function e(){}return e.prototype.onActivate=function(e,t){t.scrollIntoView()},e}(),Hs=r.sb({encapsulation:0,styles:["[_nghost-%COMP%]{height:100%; width:100%}"],data:{}});function $s(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"div",[["class","split split-horizontal main-page-content"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,r.Gb(e,2))&&i),i},null,null)),r.tb(3,212992,null,0,lo,[oo,r.P,r.j,[8,null],r.h],null,{activateEvents:"activate"}),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,3,0)},null)}function zs(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"main-page",[],null,null,null,$s,Hs)),r.tb(1,49152,null,0,Gs,[],null,null)],null,null)}var Qs=r.qb("main-page",Gs,zs,{},{},[]),Ws=function(){function e(){this.label="Select file",this.fileChanged=new r.m}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}(),qs=r.sb({encapsulation:2,styles:[],data:{}});function Js(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,3,"label",[["class","btn btn-primary btn-file"]],[[2,"disabled",null]],null,null,null,null)),(e()(),r.Ob(1,null,["\n ","\n "])),(e()(),r.ub(2,0,[["inputControl",1]],null,0,"input",[["type","file"]],[[8,"accept",0],[8,"disabled",0]],[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.changeFile(n)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-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 Ys=function(){function e(e){this.store=e}return e.prototype.resetUserConfiguration=function(){this.store.dispatch(new k)},e.prototype.saveConfigurationInJSONFormat=function(){this.store.dispatch(new kl)},e.prototype.saveConfigurationInBINFormat=function(){this.store.dispatch(new _l)},e.prototype.exportUserConfiguration=function(e){e.shiftKey?this.saveConfigurationInBINFormat():this.saveConfigurationInJSONFormat()},e.prototype.changeFile=function(e){this.store.dispatch(new Cl(e))},e}(),Zs=r.sb({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 Xs(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Device configuration"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n The device configuration contains all the keymaps, macros, and settings that are stored on the device.\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(11,0,null,null,21,"ul",[["class","list-unstyled btn-list"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.exportUserConfiguration(n)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Export device configuration\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(21,0,null,null,2,"file-upload",[["label","Import device configuration"]],null,[[null,"fileChanged"]],function(e,t,n){var r=!0;return"fileChanged"===t&&(r=!1!==e.component.changeFile(n)&&r),r},Js,qs)),r.tb(22,49152,null,0,Ws,[],{label:[0,"label"]},{fileChanged:"fileChanged"}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["popoverTitle","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r.Gb(e,29).togglePopover()&&i),"confirm"===t&&(i=!1!==o.resetUserConfiguration()&&i),i},null,null)),r.tb(29,737280,null,0,Va,[r.P,r.k,Fa,r.j,Ua,r.E],{popoverTitle:[0,"popoverTitle"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),r.Ob(-1,null,["Reset device configuration\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,22,0,"Import device configuration"),e(t,29,0,"Are you sure?","Yes","No","bottom")},null)}function ec(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"device-settings",[["class","container-fluid"]],null,null,null,Xs,Zs)),r.tb(1,49152,null,0,Ys,[L.m],null,null)],null,null)}var tc=r.qb("device-settings",Ys,ec,{},{},[]),nc=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),rc=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;align-items:center}.action--edit[_ngcontent-%COMP%]:hover{color:#337ab7;cursor:pointer}.action--trash[_ngcontent-%COMP%]:hover{color:#d9534f;cursor:pointer}"]],data:{}});function ic(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical"]],null,null,null,null,null))],null,null)}function oc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null))],null,null)}function lc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null))],null,null)}function uc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null))],null,null)}function ac(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null))],null,null)}function sc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null))],null,null)}function cc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null))],null,null)}function pc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null))],null,null)}function fc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","glyphicon glyphicon-trash action--trash"]],null,null,null,null,null))],null,null)}function dc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","glyphicon glyphicon-pencil action--edit"]],null,null,null,null,null))],null,null)}function hc(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null))],null,null)}function yc(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,35,"div",[],null,null,null,null,null)),r.tb(1,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ic)),r.tb(4,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,oc)),r.tb(7,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,lc)),r.tb(10,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,uc)),r.tb(13,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ac)),r.tb(16,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,sc)),r.tb(19,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,cc)),r.tb(22,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,pc)),r.tb(25,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,fc)),r.tb(28,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,dc)),r.tb(31,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,hc)),r.tb(34,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-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 bc=n("6foH"),mc=function(){function e(){}return e.prototype.to=function(e){return String(parseFloat(parseFloat(String(e)).toFixed(2)))},e.prototype.from=function(e){return parseFloat(e)},e}(),gc=function(){function e(e,t){var n=this;this.el=e,this.renderer=t,this.config={},this.change=new r.m(!0),this.update=new r.m(!0),this.slide=new r.m(!0),this.set=new r.m(!0),this.start=new r.m(!0),this.end=new r.m(!0),this.onChange=Function.prototype,this.onTouched=Function.prototype,this.eventHandler=function(e,t,r,i){var o=n.toValues(t),l=!1;void 0!==n.value?(Array.isArray(o)&&n.value[r]!=o[r]&&(l=!0),Array.isArray(o)||n.value==o||(l=!0),l&&(e.emit(o),n.onChange(o)),Array.isArray(o)?n.value[r]=o[r]:n.value=o):n.value=o},this.defaultKeyHandler=function(e){var t,r,i=n.slider.steps(),o=parseInt(e.target.getAttribute("data-handle")),l=1,u=1,a=0;switch(e.which){case 34:u=n.config.pageSteps;case 40:case 37:l=-1,a=i[o][0],e.preventDefault();break;case 33:u=n.config.pageSteps;case 38:case 39:a=i[o][1],e.preventDefault()}t=l*u*a,Array.isArray(n.value)?(r=[].concat(n.value))[o]=r[o]+t:r=n.value+t,n.slider.set(r)}}return e.prototype.ngOnInit=function(){var e=this,t=JSON.parse(JSON.stringify({behaviour:this.behaviour,connect:this.connect,limit:this.limit,start:void 0!==this.formControl?this.formControl.value:this.ngModel,step:this.step,pageSteps:this.pageSteps,keyboard:this.keyboard,onKeydown:this.onKeydown,range:this.range||this.config.range||{min:this.min,max:this.max},tooltips:this.tooltips,snap:this.snap,animate:this.animate}));if(t.tooltips=this.tooltips||this.config.tooltips,t.format=this.format||this.config.format||new mc,this.slider=Object(bc.create)(this.el.nativeElement.querySelector("div"),Object.assign(this.config,t)),this.handles=[].slice.call(this.el.nativeElement.querySelectorAll(".noUi-handle")),this.config.keyboard){void 0===this.config.pageSteps&&(this.config.pageSteps=10);for(var n=function(e){e.setAttribute("tabindex",0),e.addEventListener("click",function(){e.focus()}),e.addEventListener("keydown",void 0===r.config.onKeydown?r.defaultKeyHandler:r.config.onKeydown)},r=this,i=0,o=this.handles;i<o.length;i++)n(o[i])}this.slider.on("set",function(t,n,r){e.eventHandler(e.set,t,n,r)}),this.slider.on("update",function(t,n,r){e.update.emit(e.toValues(t))}),this.slider.on("change",function(t,n,r){e.change.emit(e.toValues(t))}),this.slider.on("slide",function(t,n,r){e.eventHandler(e.slide,t,n,r)}),this.slider.on("start",function(t,n,r){e.start.emit(e.toValues(t))}),this.slider.on("end",function(t,n,r){e.end.emit(e.toValues(t))})},e.prototype.ngOnChanges=function(e){var t=this;this.slider&&(e.min||e.max||e.step||e.range)&&setTimeout(function(){t.slider.updateOptions({range:Object.assign({},{min:t.min,max:t.max},t.range||{}),step:t.step})})},e.prototype.toValues=function(e){var t=e.map(this.config.format.from);return 1==t.length?t[0]:t},e.prototype.writeValue=function(e){var t=this;this.slider&&setTimeout(function(){t.slider.set(e)})},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){e?this.renderer.setAttribute(this.el.nativeElement.childNodes[0],"disabled","true"):this.renderer.removeAttribute(this.el.nativeElement.childNodes[0],"disabled")},e}(),vc=function(){return function(){}}(),kc=n("McSo");function _c(e,t){return new Ae.a(function(n){var r=e.length;if(0!==r)for(var i=new Array(r),o=0,l=0,u=function(u){var a=Object(we.a)(e[u]),s=!1;n.add(a.subscribe({next:function(e){s||(s=!0,l++),i[u]=e},error:function(e){return n.error(e)},complete:function(){++o!==r&&s||(l===r&&n.next(t?t.reduce(function(e,t,n){return e[t]=i[n],e},{}):i),n.complete())}}))},a=0;a<r;a++)u(a);else n.complete()})}var wc=new r.q("NgValueAccessor"),Oc=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}(),Ac=new r.q("CompositionEventMode"),Cc=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Ct()?Ct().getUserAgent():"",!/android (\d+)/.test(r.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}(),Tc=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}(),xc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(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}(Tc);function Sc(){throw new Error("unimplemented")}var Mc=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(N.c)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return Sc()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Sc()},enumerable:!0,configurable:!0}),t}(Tc),Ec=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}(),Pc=function(e){function t(t){return e.call(this,t)||this}return Object(N.c)(t,e),t}(Ec),Ic=function(e){function t(t){return e.call(this,t)||this}return Object(N.c)(t,e),t}(Ec);function jc(e){return null==e||0===e.length}var Rc=new r.q("NgValidators"),Lc=/^(?=.{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])?)*$/,Nc=function(){function e(){}return e.min=function(e){return function(t){if(jc(t.value)||jc(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(jc(t.value)||jc(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return jc(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return jc(e.value)?null:Lc.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(jc(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(jc(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Dc);return 0==t.length?null:function(e){return Fc(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Dc);return 0==t.length?null:function(e){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=e[0];if(Object(Se.a)(n))return _c(n,null);if(Object(kc.a)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return _c(r.map(function(e){return n[e]}),r)}}if("function"==typeof e[e.length-1]){var i=e.pop();return _c(e=1===e.length&&Object(Se.a)(e[0])?e[0]:e,null).pipe(Object(Fe.a)(function(e){return i.apply(void 0,e)}))}return _c(e,null)}(function(e,n){return t.map(function(t){return t(e)})}(e).map(Uc)).pipe(Object(Fe.a)(Fc))}},e}();function Dc(e){return null!=e}function Uc(e){var t=Object(r.Bb)(e)?Object(we.a)(e):e;if(!Object(r.Ab)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Fc(e){var t=e.reduce(function(e,t){return null!=t?Object(N.a)({},e,t):e},{});return 0===Object.keys(t).length?null:t}function Kc(e){return e.validate?function(t){return e.validate(t)}:e}function Bc(e){return e.validate?function(t){return e.validate(t)}:e}var Vc=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}(),Gc=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}(),Hc=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Mc),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: <input type="radio" formControlName="food" name="food">\n ')},e}(),$c=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}(),zc='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Qc='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>';function Wc(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var qc=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=r.Cb}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=Wc(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){var t,n;try{for(var r=Object(N.h)(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o),e))return o}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}(),Jc=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Wc(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}();function Yc(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var Zc=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=r.Cb}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){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-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 r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var l=i.item(o),u=t._getOptionValue(l.value);r.push(u)}else for(i=n.options,o=0;o<i.length;o++)(l=i.item(o)).selected&&(u=t._getOptionValue(l.value),r.push(u));t.value=r,e(r)}},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(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){var t,n;try{for(var r=Object(N.h)(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o)._value,e))return o}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},e}(),Xc=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(Yc(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(Yc(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}();function ep(e,t){return Object(N.g)(t.path,[e])}function tp(e,t){e||rp(t,"Cannot find control with"),t.valueAccessor||rp(t,"No value accessor for form control with"),e.validator=Nc.compose([e.validator,t.validator]),e.asyncValidator=Nc.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&np(e,t)})}(e,t),function(e,t){e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&np(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function np(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function rp(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function ip(e){return null!=e?Nc.compose(e.map(Kc)):null}function op(e){return null!=e?Nc.composeAsync(e.map(Bc)):null}var lp=[Oc,$c,Vc,qc,Zc,Hc];function up(e){var t=sp(e)?e.validators:e;return Array.isArray(t)?ip(t):t||null}function ap(e,t){var n=sp(t)?t.asyncValidators:e;return Array.isArray(n)?op(n):n||null}function sp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var cp=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=up(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=ap(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.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})},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",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(N.a)({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object(N.a)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object(N.a)({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object(N.a)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||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=Uc(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 fp?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof dp&&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 r.m,this.statusChanges=new r.m},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){sp(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e.prototype._parentMarkedDirty=function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},e}(),pp=function(e){function t(t,n,r){void 0===t&&(t=null);var i=e.call(this,up(n),ap(r,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(N.c)(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}(cp),fp=function(e){function t(t,n,r){var i=e.call(this,up(n),ap(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(N.c)(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(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{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(r){n.controls[r]&&n.controls[r].patchValue(e[r],{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,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof pp?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(r,i){n=n||t.contains(i)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(N.h)(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(i){e={error:i}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||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}(cp),dp=function(e){function t(t,n,r){var i=e.call(this,up(n),ap(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(N.c)(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,r){n._throwIfControlMissing(r),n.at(r).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,r){n.at(r)&&n.at(r).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,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pp?e.value:e.getRawValue()})},t.prototype.clear=function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())},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(){var e,t;try{for(var n=Object(N.h)(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(i){e={error:i}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(cp),hp=function(){return Promise.resolve(null)}(),yp=function(e){function t(t,n){var i=e.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new r.m,i.form=new fp({},ip(t),op(n)),i}return Object(N.c)(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;hp.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),tp(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;hp.then(function(){var n,r,i=t._findContainer(e.path);i&&i.removeControl(e.name),(r=(n=t._directives).indexOf(e))>-1&&n.splice(r,1)})},t.prototype.addFormGroup=function(e){var t=this;hp.then(function(){var n=t._findContainer(e.path),r=new fp({});(function(e,t){null==e&&rp(t,"Cannot find control with"),e.validator=Nc.compose([e.validator,t.validator]),e.asyncValidator=Nc.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;hp.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;hp.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,t=this._directives,this.form._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t},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}(xc),bp=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 \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\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 <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\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 "+zc+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Qc)},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: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},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 "+zc+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Qc)},e.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")},e}(),mp=new r.q("NgFormSelectorWarning"),gp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(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 ep(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 ip(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return op(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(xc),vp=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}var n;return Object(N.c)(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof yp||bp.modelGroupParentException()},t}(gp),kp=function(){return Promise.resolve(null)}(),_p=function(e){function t(t,n,i,o){var l=e.call(this)||this;return l.control=new pp,l._registered=!1,l.update=new r.m,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=i||[],l.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||rp(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach(function(t){var o;t.constructor===Cc?n=t:(o=t,lp.some(function(e){return o.constructor===e})?(r&&rp(e,"More than one built-in value accessor matches form control with"),r=t):(i&&rp(e,"More than one custom value accessor matches form control with"),i=t))}),i||r||n||(rp(e,"No valid value accessor for form control with"),null)}(l,o),l}return Object(N.c)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(r.Cb)(t,n.currentValue)}(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?ep(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 ip(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return op(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(){tp(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 vp)&&this._parent instanceof gp?bp.formGroupNameException():this._parent instanceof vp||this._parent instanceof yp||bp.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||bp.missingNameException()},t.prototype._updateValue=function(e){var t=this;kp.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;kp.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(Mc),wp=function(){return function(){}}(),Op=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=Nc.maxLength(parseInt(this.maxlength,10))},e}(),Ap=function(){return function(){}}(),Cp=function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:mp,useValue:e.warnOnDeprecatedNgFormSelector}]}},e}(),Tp=r.sb({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }"],data:{}});function xp(e){return r.Qb(0,[(e()(),r.ub(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 Sp=n("Gi3i"),Mp=n("ad02"),Ep=function(){function e(){this.onChange=new r.m,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):Ae.a.create(function(e){t.changeObserver$=e}).pipe(Object(Sp.a)(this.changeDebounceTime),Object(Mp.a)()).subscribe(this.propagateChange)},e}(),Pp=r.sb({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:flex;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 Ip(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["name","question-circle"]],[[1,"data-placement",0]],null,null,yc,rc)),r.tb(1,114688,null,0,nc,[],{name:[0,"name"]},null),r.tb(2,1589248,null,0,hs,[r.k,On],{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,r.Gb(t,2).placement)})}function jp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"label",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ip)),r.tb(5,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.tooltip)},function(e,t){e(t,2,0,t.component.label)})}function Rp(e){return r.Qb(0,[r.Mb(671088640,1,{slider:0}),(e()(),r.jb(16777216,null,null,1,null,jp)),r.tb(2,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(4,0,null,null,17,"div",[["class","slider-wrapper"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,8,"div",[["class","slider-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(i.value=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSliderChange(n)&&r),r},xp,Tp)),r.tb(9,638976,[[1,4]],0,gc,[r.k,r.E],{min:[0,"min"],max:[1,"max"],step:[2,"step"],ngModel:[3,"ngModel"],keyboard:[4,"keyboard"],tooltips:[5,"tooltips"]},null),r.Lb(1024,null,wc,function(e){return[e]},[gc]),r.tb(11,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(13,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(16,0,null,null,4,"div",[["class","slider-value"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(18,0,null,null,1,"div",[["class","value-indicator"]],null,null,null,null,null)),(e()(),r.Ob(19,null,[""," ",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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,r.Gb(t,13).ngClassUntouched,r.Gb(t,13).ngClassTouched,r.Gb(t,13).ngClassPristine,r.Gb(t,13).ngClassDirty,r.Gb(t,13).ngClassValid,r.Gb(t,13).ngClassInvalid,r.Gb(t,13).ngClassPending),e(t,19,0,n.value,n.valueUnit)})}var Lp=25,Np=function(){function e(e){this.store=e,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 <i>decelerate key</i> pressed.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while moving with the <i>accelerate key</i> 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 <i>decelerate key</i> pressed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while scrolling with the <i>accelerate key</i> pressed.",valueUnit:"pulse/s",value:0}],this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0},this.moveSettings={min:Lp,max:6375,step:Lp},this.scrollSettings={min:1,max:255,step:1}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(Nu),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.moveProps.forEach(function(e){e.value=t[e.prop]*Lp||0}),e.scrollProps.forEach(function(e){e.value=t[e.prop]||0})})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription&&this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new Al({propertyName:e,value:-1!==e.indexOf("mouseMove")?t/Lp:t}))},e.prototype.resetToPcDefault=function(){this.store.dispatch(new T)},e.prototype.resetToMacDefault=function(){this.store.dispatch(new x)},e}(),Dp=r.sb({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%]{margin-bottom:2rem;margin-right:1em}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%]{margin-bottom:6rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%] + h3[_ngcontent-%COMP%]{margin-top:2rem}[_nghost-%COMP%] .placeholder[_ngcontent-%COMP%]{height:3rem}"]],data:{}});function Up(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(e.context.$implicit.value=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSetPropertyValue(e.context.$implicit.prop,n)&&r),r},Rp,Pp)),r.tb(5,4374528,null,0,Ep,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),r.Lb(1024,null,wc,function(e){return[e]},[Ep]),r.tb(7,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(9,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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,r.Gb(t,9).ngClassUntouched,r.Gb(t,9).ngClassTouched,r.Gb(t,9).ngClassPristine,r.Gb(t,9).ngClassDirty,r.Gb(t,9).ngClassValid,r.Gb(t,9).ngClassInvalid,r.Gb(t,9).ngClassPending)})}function Fp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(e.context.$implicit.value=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSetPropertyValue(e.context.$implicit.prop,n)&&r),r},Rp,Pp)),r.tb(5,4374528,null,0,Ep,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),r.Lb(1024,null,wc,function(e){return[e]},[Ep]),r.tb(7,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(9,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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,r.Gb(t,9).ngClassUntouched,r.Gb(t,9).ngClassTouched,r.Gb(t,9).ngClassPristine,r.Gb(t,9).ngClassDirty,r.Gb(t,9).ngClassValid,r.Gb(t,9).ngClassInvalid,r.Gb(t,9).ngClassPending)})}function Kp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Mouse speed"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(8,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger mouse-speed-reset-button"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["popoverTitle","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r.Gb(e,9).togglePopover()&&i),"confirm"===t&&(i=!1!==o.resetToPcDefault()&&i),i},null,null)),r.tb(9,737280,null,0,Va,[r.P,r.k,Fa,r.j,Ua,r.E],{popoverTitle:[0,"popoverTitle"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),r.Ob(-1,null,["Reset PC default speeds\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(12,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger mouse-speed-reset-button"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["popoverTitle","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r.Gb(e,13).togglePopover()&&i),"confirm"===t&&(i=!1!==o.resetToMacDefault()&&i),i},null,null)),r.tb(13,737280,null,0,Va,[r.P,r.k,Fa,r.j,Ua,r.E],{popoverTitle:[0,"popoverTitle"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),r.Ob(-1,null,["Reset Mac default speeds\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(16,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Mouse pointer speed"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Up)),r.tb(20,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(22,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Mouse scroll speed"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Fp)),r.tb(26,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(29,0,null,null,0,"div",[["class","placeholder"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,9,0,"Are you sure?","Yes","No","bottom"),e(t,13,0,"Are you sure?","Yes","No","bottom"),e(t,20,0,n.moveProps),e(t,26,0,n.scrollProps)},null)}function Bp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"device-mouse-speed",[["class","container-fluid"]],null,null,null,Kp,Dp)),r.tb(1,245760,null,0,Np,[L.m],null,null)],function(e,t){e(t,1,0)},null)}var Vp=r.qb("device-mouse-speed",Np,Bp,{},{},[]),Gp=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(Nu),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 Al({propertyName:e,value:t}))},e}(),Hp=r.sb({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 $p(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["LED brightness"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(8,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(i.iconsAndLayerTextsBrightness=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSetPropertyValue("iconsAndLayerTextsBrightness",n)&&r),r},Rp,Pp)),r.tb(13,4374528,null,0,Ep,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),r.Lb(1024,null,wc,function(e){return[e]},[Ep]),r.tb(15,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(17,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(21,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(i.alphanumericSegmentsBrightness=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSetPropertyValue("alphanumericSegmentsBrightness",n)&&r),r},Rp,Pp)),r.tb(26,4374528,null,0,Ep,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),r.Lb(1024,null,wc,function(e){return[e]},[Ep]),r.tb(28,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(30,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(34,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(36,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(38,0,null,null,5,"slider-wrapper",[["label","Key backlight brightness <span class='text-muted pl-1'>Please note that current UHK versions are not backlit.</span>"]],[[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 r=!0,i=e.component;return"ngModelChange"===t&&(r=!1!==(i.keyBacklightBrightness=n)&&r),"ngModelChange"===t&&(r=!1!==i.onSetPropertyValue("keyBacklightBrightness",n)&&r),r},Rp,Pp)),r.tb(39,4374528,null,0,Ep,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),r.Lb(1024,null,wc,function(e){return[e]},[Ep]),r.tb(41,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(43,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-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 <span class='text-muted pl-1'>Please note that current UHK versions are not backlit.</span>",0,255,1,n.sliderPips),e(t,41,0,n.keyBacklightBrightness)},function(e,t){e(t,12,0,r.Gb(t,17).ngClassUntouched,r.Gb(t,17).ngClassTouched,r.Gb(t,17).ngClassPristine,r.Gb(t,17).ngClassDirty,r.Gb(t,17).ngClassValid,r.Gb(t,17).ngClassInvalid,r.Gb(t,17).ngClassPending),e(t,25,0,r.Gb(t,30).ngClassUntouched,r.Gb(t,30).ngClassTouched,r.Gb(t,30).ngClassPristine,r.Gb(t,30).ngClassDirty,r.Gb(t,30).ngClassValid,r.Gb(t,30).ngClassInvalid,r.Gb(t,30).ngClassPending),e(t,38,0,r.Gb(t,43).ngClassUntouched,r.Gb(t,43).ngClassTouched,r.Gb(t,43).ngClassPristine,r.Gb(t,43).ngClassDirty,r.Gb(t,43).ngClassValid,r.Gb(t,43).ngClassInvalid,r.Gb(t,43).ngClassPending)})}function zp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"device-led-brightness",[["class","container-fluid"]],null,null,null,$p,Hp)),r.tb(1,245760,null,0,Gp,[L.m],null,null)],function(e,t){e(t,1,0)},null)}var Qp=r.qb("device-led-brightness",Gp,zp,{},{},[]),Wp=function(){function e(e,t){this.el=e,this.store=t}return e.prototype.onClick=function(e){this.openUrl(e)},e.prototype.onAuxClick=function(e){this.openUrl(e)},e.prototype.openUrl=function(e){e.preventDefault(),e.stopPropagation();var t=this.el.nativeElement;t.href&&this.store.dispatch(new _u(t.href))},e}(),qp=function(){function e(e){var t=this;this.store=e,this.subscription=new _t.a,this.flashFirmwareButtonDisbabled$=e.select(ga),this.xtermLog$=e.select(ma),this.getAgentVersionInfo$=e.select(Zu),this.subscription.add(e.select(va).subscribe(function(e){t.hardwareModules=e})),this.runningOnNotSupportedWindows$=e.select(ta),this.firmwareUpgradeAllowed$=e.select(ra),this.subscription.add(e.select(Oa).subscribe(function(e){t.firmwareUpgradeFailed=e,t.scrollToTheEndOfTheLogs()})),this.subscription.add(e.select(Aa).subscribe(function(e){t.firmwareUpgradeSuccess=e,t.scrollToTheEndOfTheLogs()})),this.firmwareGithubIssueUrl=$o.Constants.FIRMWARE_GITHUB_ISSUE_URL}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onUpdateFirmware=function(){this.store.dispatch(new _)},e.prototype.changeFile=function(e){this.store.dispatch(new w(e.data))},e.prototype.scrollToTheEndOfTheLogs=function(){this.xtermRef&&this.xtermRef.scrollToTheEnd()},e}(),Jp=r.sb({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 Yp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-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 Zp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,10,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,3,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onUpdateFirmware()&&r),r},null,null)),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(4,null,["\n Flash firmware "," (bundled with Agent)\n "])),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0;return"fileChanged"===t&&(r=!1!==e.component.changeFile(n)&&r),r},Js,qs)),r.tb(8,49152,null,0,Ws,[],{label:[0,"label"],disabled:[1,"disabled"],accept:[2,"accept"]},{fileChanged:"fileChanged"}),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,8,0,"Choose firmware file and flash it",r.Pb(t,8,1,r.Gb(t,9).transform(n.flashFirmwareButtonDisbabled$)),".tar.bz2")},function(e,t){var n=t.component;e(t,2,0,r.Pb(t,2,0,r.Gb(t,3).transform(n.flashFirmwareButtonDisbabled$))),e(t,4,0,r.Pb(t,4,0,r.Gb(t,5).transform(n.getAgentVersionInfo$)).firmwareVersion)})}function Xp(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"div",[["class","alert alert-danger"],["role","alert"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-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()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(5,0,null,null,5,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["If you've tried the above and the update still keeps failing, please "])),(e()(),r.ub(7,0,null,null,2,"a",[["class","link-github"],["externalUrl",""]],[[8,"href",4]],[[null,"click"],[null,"auxclick"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,8).onClick(n)&&i),"auxclick"===t&&(i=!1!==r.Gb(e,8).onAuxClick(n)&&i),i},null,null)),r.tb(8,16384,null,0,Wp,[r.k,L.m],null,null),(e()(),r.Ob(-1,null,["create a GitHub issue"])),(e()(),r.Ob(-1,null,[", and attach the update log."])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,7,0,t.component.firmwareGithubIssueUrl)})}function ef(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"div",[["class","alert alert-success"],["role","alert"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Firmware update succeeded."])),(e()(),r.Ob(-1,null,["\n "]))],null,null)}function tf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,2,"xterm",[],null,null,null,Ds,Ls)),r.tb(3,573440,[[1,4]],0,Rs,[],{logs:[0,"logs"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,r.Pb(t,3,0,r.Gb(t,4).transform(n.xtermLog$)))},null)}function nf(e){return r.Qb(0,[r.Mb(671088640,1,{xtermRef:0}),(e()(),r.ub(1,0,null,null,41,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,38,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,28,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(7,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Firmware"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(15,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),r.Ob(16,null,["\n Firmware "," is running on the left keyboard half."])),(e()(),r.ub(17,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),r.Ob(18,null,["\n Firmware "," is running on the right keyboard half.\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,2,null,Yp)),r.tb(21,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,2,null,Zp)),r.tb(25,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,Xp)),r.tb(29,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,ef)),r.tb(32,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,2,null,tf)),r.tb(36,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(39,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,21,0,r.Pb(t,21,0,r.Gb(t,22).transform(n.runningOnNotSupportedWindows$))),e(t,25,0,r.Pb(t,25,0,r.Gb(t,26).transform(n.firmwareUpgradeAllowed$))),e(t,29,0,n.firmwareUpgradeFailed),e(t,32,0,n.firmwareUpgradeSuccess),e(t,36,0,r.Pb(t,36,0,r.Gb(t,37).transform(n.firmwareUpgradeAllowed$)))},function(e,t){var n=t.component;e(t,16,0,n.hardwareModules.leftModuleInfo.firmwareVersion),e(t,18,0,n.hardwareModules.rightModuleInfo.firmwareVersion)})}function rf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"device-firmware",[["class","container-fluid"]],null,null,null,nf,Jp)),r.tb(1,180224,null,0,qp,[L.m],null,null)],null,null)}var of=r.qb("device-firmware",qp,rf,{},{},[]),lf=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(ka).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.resetUserConfiguration=function(){this.store.dispatch(new k)},e.prototype.restoreUserConfiguration=function(){this.store.dispatch(new M)},e}(),uf=r.sb({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 af(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.restoreUserConfiguration()&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Restore the last valid device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function sf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-danger"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.resetUserConfiguration()&&r),r},null,null)),(e()(),r.Ob(-1,null,["Reset device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function cf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"i",[["class","fa fa-exclamation-circle"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Fix configuration"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Your on-board device configuration is invalid.\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,af)),r.tb(12,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,sf)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-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)}function pf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"restore-configuration",[["class","container-fluid"]],null,null,null,cf,uf)),r.tb(1,245760,null,0,lf,[L.m,r.h],null,null)],function(e,t){e(t,1,0)},null)}var ff=r.qb("restore-configuration",lf,pf,{},{},[]),df=function(){function e(){this.close=new r.m,this.undo=new r.m}return e.prototype.ngOnChanges=function(e){if(e.notification){var t=e.notification.currentValue;t?(this.text=t.message,this.undoable=!!t.extra):this.text=null}},e.prototype.clickOnClose=function(){this.close.emit()},e.prototype.clickOnUndo=function(){this.undo.emit(this.notification.extra)},e}(),hf=r.sb({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:1,expr:":enter",animation:[{type:6,styles:{transform:"translateX(100%)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateX(0)"},offset:null},timings:"400ms ease-in-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateX(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateX(100%)"},offset:null},timings:"400ms ease-in-out"}],options:null}],options:{}}]}});function yf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"a",[["class","undo-button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clickOnUndo()&&r),r},null,null)),(e()(),r.Ob(-1,null,["Undo"]))],null,null)}function bf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,10,"div",[["class","alert alert-warning alert-dismissible"],["role","alert"]],[[24,"@slideInOut",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,4,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clickOnClose()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\xd7"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(7,null,["\n ","\n "])),(e()(),r.jb(16777216,null,null,1,null,yf)),r.tb(9,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,9,0,t.component.undoable)},function(e,t){var n=t.component;e(t,0,0,void 0),e(t,7,0,n.text)})}function mf(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,4,"div",[["class","pull-right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,bf)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.text)},null)}var gf=function(){function e(e){this.store=e,this.undoableNotification$=this.store.select(Qu)}return e.prototype.onUndoLastNotification=function(e){this.store.dispatch(new mu(e))},e.prototype.onDismissLastNotification=function(){this.store.dispatch(new gu)},e}(),vf=r.sb({encapsulation:2,styles:[],data:{}});function kf(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),r.Fb(null,0),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(5,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,6,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,3,"undoable-notifier",[],null,[[null,"close"],[null,"undo"]],function(e,t,n){var r=!0,i=e.component;return"close"===t&&(r=!1!==i.onDismissLastNotification()&&r),"undo"===t&&(r=!1!==i.onUndoLastNotification(n)&&r),r},mf,hf)),r.tb(10,573440,null,0,df,[],{notification:[0,"notification"]},{close:"close",undo:"undo"}),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,10,0,r.Pb(t,10,0,r.Gb(t,11).transform(n.undoableNotification$)))},null)}var _f=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.setProperty(this.elementRef.nativeElement,"value",this.originalValue),this.elementRef.nativeElement.blur()},e}(),wf='<span class="text-nowrap">Delete keymap</span>',Of=function(){function e(e,t){this.store=e,this.renderer=t,this.downloadClick=new r.m,this.trashTitle=wf}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(new Zo(this.keymap.abbreviation))},e.prototype.removeKeymap=function(){this.deletable&&this.store.dispatch(new Xo(this.keymap.abbreviation))},e.prototype.duplicateKeymap=function(){this.store.dispatch(new Wo(this.keymap))},e.prototype.editKeymapName=function(e){El(e)?this.store.dispatch(new Jo({abbr:this.keymap.abbreviation,name: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(new qo({name:this.keymap.name,abbr:this.keymap.abbreviation,newAbbr: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?wf:'<span class="text-nowrap">The last keymap cannot be deleted.</span>'},e.prototype.onDownloadIconClick=function(){this.downloadClick.emit()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.keymapName.nativeElement,n=t.parentElement.offsetWidth-530,r=Sl(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,r)+"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}(),Af=r.sb({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{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 Cf(e){return r.Qb(2,[r.Mb(402653184,1,{keymapName:0}),r.Mb(402653184,2,{keymapAbbr:0}),(e()(),r.ub(2,0,null,null,29,"uhk-header",[],null,null,null,kf,vf)),r.tb(3,49152,null,0,gf,[L.m],null,null),(e()(),r.Ob(-1,0,["\n "])),(e()(),r.ub(5,0,null,0,25,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,22,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"focus"===t&&(i=!1!==r.Gb(e,12).onFocus()&&i),"keyup.escape"===t&&(i=!1!==r.Gb(e,12).onEscape()&&i),"change"===t&&(i=!1!==o.editKeymapName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==r.Gb(e,11).blur()&&i),"keyup"===t&&(i=!1!==o.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),r.tb(12,16384,null,0,_f,[r.k,r.E],null,null),(e()(),r.Ob(-1,null,[" keymap\n ("])),(e()(),r.ub(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,o=e.component;return"focus"===t&&(i=!1!==r.Gb(e,15).onFocus()&&i),"keyup.escape"===t&&(i=!1!==r.Gb(e,15).onEscape()&&i),"change"===t&&(i=!1!==o.editKeymapAbbr(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==r.Gb(e,14).blur()&&i),i},null,null)),r.tb(15,16384,null,0,_f,[r.k,r.E],null,null),(e()(),r.Ob(-1,null,[")\n "])),(e()(),r.ub(17,0,null,null,4,"i",[["class","fa keymap__is-default"],["data-placement","bottom"],["data-toggle","tooltip"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.setDefault()&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(19,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(20,{"fa-star-o":0,"fa-star":1}),r.tb(21,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,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 r=!0;return"click"===t&&(r=!1!==e.component.removeKeymap()&&r),r},null,null)),r.tb(24,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,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 r=!0;return"click"===t&&(r=!1!==e.component.duplicateKeymap()&&r),r},null,null)),r.tb(27,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,0,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component,r=e(t,20,0,!n.keymap.isDefault,n.keymap.isDefault);e(t,19,0,"fa keymap__is-default",r),e(t,21,0,n.starTitle),e(t,24,0,n.trashTitle,"true"),e(t,27,0,"Duplicate keymap")},function(e,t){var n=t.component;e(t,14,0,3),e(t,17,0,r.Gb(t,21).placement),e(t,23,0,!n.deletable,r.Gb(t,24).placement),e(t,26,0,r.Gb(t,27).placement)})}var Tf=function(){function e(){this.select=new r.m,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}(),xf=r.sb({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 Sf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectLayer(e.context.index)&&r),r},null,null)),(e()(),r.Ob(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 Mf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Sf)),r.tb(5,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.buttons)},null)}var Ef={font:"12px Helvetica"},Pf=function(){function e(){this.textIndent=16}return e.prototype.ngOnInit=function(){this.viewBox=[0,0,this.width,this.height].join(" "),this.textY=this.height/2-2},e.prototype.ngOnChanges=function(e){e.text&&this.calculateTextPosition()},e.prototype.calculateTextPosition=function(){var e=Sl(Ef,this.text)+this.textIndent,t=Math.max(0,(this.width-e)/2);this.transform="translate("+t+",0)"},e}(),If=r.sb({encapsulation:0,styles:[["text[_ngcontent-%COMP%]{dominant-baseline:text-bottom}"]],data:{}});function jf(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,15,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"y",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,12,":svg:g",[],[[1,"transform",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,6,":svg:svg",[["height","12"],["viewBox","0 0 14 14"],["width","12"],["x","2"]],[[1,"y",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,0,":svg:ellipse",[["cx","7"],["cy","7"],["fill-opacity","0"],["rx","6.5"],["ry","6.5"],["stroke","#fff"],["stroke-width","1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["font-family","Helvetica"],["font-size","12"],["stroke-width","0"],["text-anchor","start"],["x","4"],["y","7.8"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["2\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["font-size","12"],["text-anchor","start"]],[[1,"y",0],[1,"x",0]],null,null,null,null)),(e()(),r.Ob(13,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.viewBox,n.width,n.height,n.y),e(t,2,0,n.transform),e(t,4,0,n.textY/3.5),e(t,12,0,n.textY,n.textIndent),e(t,13,0,n.text)})}var Rf=function(e,t){return e>2.4*t},Lf=function(){function e(){}return e.prototype.ngOnChanges=function(e){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0;this.secondaryText&&Rf(this.width,this.height)&&(e=5),this.svgWidth=this.width/2.075,this.svgHeight=this.height/3,this.svgX=(this.width-this.svgWidth)/2,this.secondaryHeight=this.height/4,this.secondaryTextY=this.height-this.secondaryHeight-1-e},e}(),Nf=r.sb({encapsulation:2,styles:[],data:{}});function Df(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-secondary-role",""]],null,null,null,jf,If)),r.tb(1,638976,null,0,Pf,[],{height:[0,"height"],width:[1,"width"],y:[2,"y"],text:[3,"text"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,20,n.width,n.secondaryTextY,n.secondaryText)},null)}function Uf(e){return r.Qb(2,[(e()(),r.ub(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()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Df)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,4,0,t.component.secondaryText)},function(e,t){var n=t.component;e(t,0,0,n.icon,n.svgWidth,n.svgHeight,n.svgX,n.svgHeight)})}var Ff=function(){function e(){}return e.prototype.ngOnChanges=function(e){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0,t=0;this.secondaryText&&Rf(this.width,this.height)&&(e=this.height/5,t=5),this.textX=this.width/2,this.textY=this.height/2-e,this.secondaryHeight=this.height/4,this.secondaryTextY=this.height-this.secondaryHeight-1-t},e}(),Kf=r.sb({encapsulation:2,styles:[],data:{}});function Bf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-secondary-role",""]],null,null,null,jf,If)),r.tb(1,638976,null,0,Pf,[],{height:[0,"height"],width:[1,"width"],y:[2,"y"],text:[3,"text"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,20,n.width,n.secondaryTextY,n.secondaryText)},null)}function Vf(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["text-anchor","middle"]],[[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),r.Ob(1,null,["\n ","\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Bf)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,4,0,t.component.secondaryText)},function(e,t){var n=t.component;e(t,0,0,n.textX,n.textY),e(t,1,0,n.text)})}var Gf=function(){function e(){this.spanYs=[]}return e.prototype.ngOnChanges=function(e){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0;this.secondaryHeight=0;var t=this.height;this.secondaryText&&(e=0,this.secondaryHeight=this.height/4,t-=this.secondaryHeight),this.textY=t/2,this.spanX=this.width/2,this.spanYs=[];for(var n=0;n<this.texts.length;++n)this.spanYs.push((.85-.5*n)*t);this.secondaryTextY=this.height-this.secondaryHeight-1-e},e}(),Hf=r.sb({encapsulation:2,styles:[],data:{}});function $f(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:tspan",[],[[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),r.Ob(1,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n.spanX,n.spanYs[t.context.index]),e(t,1,0,t.context.$implicit)})}function zf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-secondary-role",""]],null,null,null,jf,If)),r.tb(1,638976,null,0,Pf,[],{height:[0,"height"],width:[1,"width"],y:[2,"y"],text:[3,"text"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,20,n.width,n.secondaryTextY,n.secondaryText)},null)}function Qf(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,4,":svg:text",[["alignment-baseline","middle"],["text-anchor","middle"]],[[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,$f)),r.tb(3,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,zf)),r.tb(7,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.texts),e(t,7,0,n.secondaryText)},function(e,t){e(t,0,0,0,t.component.textY)})}var Wf=function(){function e(e){var t=this;this.store=e,this.osSubscription=e.select(Xu).subscribe(function(e){t.operatingSystem=e,t.initOsSpecificText(),t.initScanCodeTextMap(),t.initScancodeIcons(),t.initNameToFileNames(),t.initSecondaryRoleTexts()})}return e.prototype.scanCodeToText=function(e,t){var n;switch(void 0===t&&(t=$o.KeystrokeType.basic),t){case $o.KeystrokeType.shortMedia:case $o.KeystrokeType.longMedia:n=this.mediaScanCodeTextMap;break;case $o.KeystrokeType.system:n=this.systemScanCodeTextMap;break;default:n=this.basicScanCodeTextMap}return n.get(e)},e.prototype.hasScancodeIcon=function(e,t){var n;switch(void 0===t&&(t=$o.KeystrokeType.basic),t){case $o.KeystrokeType.basic:n=this.basicScancodeIcons;break;case $o.KeystrokeType.shortMedia:case $o.KeystrokeType.longMedia:n=this.mediaScancodeIcons;break;case $o.KeystrokeType.system:n=this.systemScancodeIcons;break;default:n=new Map}return n.has(e)},e.prototype.scanCodeToSvgImagePath=function(e,t){var n;switch(void 0===t&&(t=$o.KeystrokeType.basic),t){case $o.KeystrokeType.basic:n=this.basicScancodeIcons;break;case $o.KeystrokeType.shortMedia:case $o.KeystrokeType.longMedia:n=this.mediaScancodeIcons;break;case $o.KeystrokeType.system:n=this.systemScancodeIcons;break;default:return}var r=n.get(e);if(r)return"assets/compiled_sprite.svg#"+r},e.prototype.getIcon=function(e){var t=this.nameToFileName.get(e);if(t)return"assets/compiled_sprite.svg#"+t},e.prototype.modifierMapper=function(e){return e<8?4*Math.floor(e/2)+1-e:e},e.prototype.getOperatingSystem=function(){return this.operatingSystem},e.prototype.getOsSpecificText=function(e){return this.osSpecificTexts.get(e)||e},e.prototype.getSecondaryRoleText=function(e){return this.secondaryRoleTexts.get(e)},e.prototype.getLeftKeyModifiers=function(){return[{text:"LShift",value:$o.KeyModifiers.leftShift,checked:!1},{text:"LCtrl",value:$o.KeyModifiers.leftCtrl,checked:!1},{text:this.getOsSpecificText("LAlt"),value:$o.KeyModifiers.leftAlt,checked:!1},{text:this.getOsSpecificText("LSuper"),value:$o.KeyModifiers.leftGui,checked:!1}]},e.prototype.getRightKeyModifiers=function(){return[{text:"RShift",value:$o.KeyModifiers.rightShift,checked:!1},{text:"RCtrl",value:$o.KeyModifiers.rightCtrl,checked:!1},{text:this.getOsSpecificText("RAlt"),value:$o.KeyModifiers.rightAlt,checked:!1},{text:this.getOsSpecificText("RSuper"),value:$o.KeyModifiers.rightGui,checked:!1}]},e.prototype.getOsSpecificModifierTextByValue=function(e){return(this.getLeftKeyModifiers().concat(this.getRightKeyModifiers()).find(function(t){return t.value===e})||{text:""}).text},e.prototype.initOsSpecificText=function(){this.osSpecificTexts=new Map,this.operatingSystem===Ru.Mac?(this.osSpecificTexts.set("Enter","Return"),this.osSpecificTexts.set("Alt","Option"),this.osSpecificTexts.set("Super","Cmd"),this.osSpecificTexts.set("LSuper","LCmd"),this.osSpecificTexts.set("RSuper","RCmd"),this.osSpecificTexts.set("LAlt","LOption"),this.osSpecificTexts.set("RAlt","ROption")):this.operatingSystem===Ru.Windows&&(this.osSpecificTexts.set("LSuper","LWindows"),this.osSpecificTexts.set("RSuper","RWindows"))},e.prototype.initScanCodeTextMap=function(){this.basicScanCodeTextMap=new Map,this.basicScanCodeTextMap.set(4,["A"]),this.basicScanCodeTextMap.set(5,["B"]),this.basicScanCodeTextMap.set(6,["C"]),this.basicScanCodeTextMap.set(7,["D"]),this.basicScanCodeTextMap.set(8,["E"]),this.basicScanCodeTextMap.set(9,["F"]),this.basicScanCodeTextMap.set(10,["G"]),this.basicScanCodeTextMap.set(11,["H"]),this.basicScanCodeTextMap.set(12,["I"]),this.basicScanCodeTextMap.set(13,["J"]),this.basicScanCodeTextMap.set(14,["K"]),this.basicScanCodeTextMap.set(15,["L"]),this.basicScanCodeTextMap.set(16,["M"]),this.basicScanCodeTextMap.set(17,["N"]),this.basicScanCodeTextMap.set(18,["O"]),this.basicScanCodeTextMap.set(19,["P"]),this.basicScanCodeTextMap.set(20,["Q"]),this.basicScanCodeTextMap.set(21,["R"]),this.basicScanCodeTextMap.set(22,["S"]),this.basicScanCodeTextMap.set(23,["T"]),this.basicScanCodeTextMap.set(24,["U"]),this.basicScanCodeTextMap.set(25,["V"]),this.basicScanCodeTextMap.set(26,["W"]),this.basicScanCodeTextMap.set(27,["X"]),this.basicScanCodeTextMap.set(28,["Y"]),this.basicScanCodeTextMap.set(29,["Z"]),this.basicScanCodeTextMap.set(30,["1","!"]),this.basicScanCodeTextMap.set(31,["2","@"]),this.basicScanCodeTextMap.set(32,["3","#"]),this.basicScanCodeTextMap.set(33,["4","$"]),this.basicScanCodeTextMap.set(34,["5","%"]),this.basicScanCodeTextMap.set(35,["6","^"]),this.basicScanCodeTextMap.set(36,["7","&"]),this.basicScanCodeTextMap.set(37,["8","*"]),this.basicScanCodeTextMap.set(38,["9","("]),this.basicScanCodeTextMap.set(39,["0",")"]),this.basicScanCodeTextMap.set(40,[this.getOsSpecificText("Enter")]),this.basicScanCodeTextMap.set(41,["Esc"]),this.basicScanCodeTextMap.set(42,["Backspace"]),this.basicScanCodeTextMap.set(43,["Tab"]),this.basicScanCodeTextMap.set(44,["Space"]),this.basicScanCodeTextMap.set(45,["-","_"]),this.basicScanCodeTextMap.set(46,["=","+"]),this.basicScanCodeTextMap.set(47,["[","{"]),this.basicScanCodeTextMap.set(48,["]","}"]),this.basicScanCodeTextMap.set(49,["\\","|"]),this.basicScanCodeTextMap.set(50,["NON_US_HASHMARK_AND_TILDE"]),this.basicScanCodeTextMap.set(51,[";",":"]),this.basicScanCodeTextMap.set(52,["'",'"']),this.basicScanCodeTextMap.set(53,["`","~"]),this.basicScanCodeTextMap.set(54,[",","<"]),this.basicScanCodeTextMap.set(55,[".",">"]),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","SysRq"]),this.basicScanCodeTextMap.set(71,["ScrLk"]),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,["NumLk"]),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(135,["Int1"]),this.basicScanCodeTextMap.set(136,["Int2"]),this.basicScanCodeTextMap.set(137,["Int3"]),this.basicScanCodeTextMap.set(144,["Lang1"]),this.basicScanCodeTextMap.set(145,["Lang2"]),this.basicScanCodeTextMap.set(176,["00"]),this.basicScanCodeTextMap.set(177,["000"]),this.mediaScanCodeTextMap=new Map,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(205,["Pause","Play"]),this.mediaScanCodeTextMap.set(226,["Mute"]),this.mediaScanCodeTextMap.set(233,["Vol +"]),this.mediaScanCodeTextMap.set(234,["Vol -"]),this.mediaScanCodeTextMap.set(394,["Launch Email Client"]),this.mediaScanCodeTextMap.set(402,["Launch Calculator"]),this.mediaScanCodeTextMap.set(548,["Hist -"]),this.mediaScanCodeTextMap.set(549,["Hist +"]),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(42,"icon-kbd__backspace"),this.basicScancodeIcons.set(57,"icon-kbd__caps-lock"),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(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(205,"icon-kbd__play-pause"),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(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===Ru.Mac?(this.nameToFileName.set("option","icon-kbd__default--modifier-option"),this.nameToFileName.set("command","icon-kbd__default--modifier-command")):this.operatingSystem===Ru.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.prototype.initSecondaryRoleTexts=function(){this.secondaryRoleTexts=new Map,this.secondaryRoleTexts.set(0,"LCtrl"),this.secondaryRoleTexts.set(1,"LShift"),this.secondaryRoleTexts.set(2,"LAlt"),this.secondaryRoleTexts.set(3,"LSuper"),this.secondaryRoleTexts.set(4,"RCtrl"),this.secondaryRoleTexts.set(5,"RShift"),this.secondaryRoleTexts.set(6,"RAlt"),this.secondaryRoleTexts.set(7,"RSuper"),this.secondaryRoleTexts.set(8,"Mod"),this.secondaryRoleTexts.set(9,"Fn"),this.secondaryRoleTexts.set(10,"Mouse")},e}(),qf=function(){return function(){this.width=0,this.height=0,this.x=0,this.y=0,this.disabled=!0}}(),Jf=function(){function e(e){this.mapper=e,this.modifierIconNames={},this.textContainer=new qf,this.modifierContainer=new qf,this.shift=new qf,this.control=new qf,this.option=new qf,this.command=new qf}return e.prototype.ngOnChanges=function(){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0,t=0;this.thisSecondaryRoleText=this.secondaryText,this.subComponentSecondaryRoleText=null;var n=this.width<1.8*this.height,r=Rf(this.width,this.height);if(this.secondaryText&&r&&(e=this.height/5,t=5),this.keystrokeAction.hasScancode()){var i,o=this.keystrokeAction.scancode;this.labelSource=this.mapper.scanCodeToSvgImagePath(o,this.keystrokeAction.type),this.labelSource?this.labelType="icon":(i=this.mapper.scanCodeToText(o,this.keystrokeAction.type))&&(this.secondaryText&&2===i.length?r||n?(this.labelSource=i[0],this.labelType="one-line"):(this.labelSource=i,this.labelType="two-line",this.thisSecondaryRoleText=null,this.subComponentSecondaryRoleText=this.secondaryText):1===i.length?(this.labelSource=i[0],this.labelType="one-line"):(this.labelSource=i,this.labelType="two-line"))}else this.labelType="empty";this.shift.disabled=!this.keystrokeAction.isActive($o.KeyModifiers.leftShift|$o.KeyModifiers.rightShift),this.control.disabled=!this.keystrokeAction.isActive($o.KeyModifiers.leftCtrl|$o.KeyModifiers.rightCtrl),this.option.disabled=!this.keystrokeAction.isActive($o.KeyModifiers.leftAlt|$o.KeyModifiers.rightAlt),this.command.disabled=!this.keystrokeAction.isActive($o.KeyModifiers.leftGui|$o.KeyModifiers.rightGui),this.secondaryHeight=this.secondaryText?this.height/4:0,this.secondaryTextY=this.height-this.secondaryHeight-1-t,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.textContainer.y=0;var l=this.height/this.width;if(this.secondaryTextWidth=this.width,n){var u=this.width/4,a=this.height,s=(p=.8)*l*u,c=p*a;this.modifierContainer.width=this.width,this.modifierContainer.height=this.height/5,this.modifierContainer.y=this.height-this.modifierContainer.height-this.secondaryHeight,this.shift.width=s,this.shift.height=c,this.shift.x=(u-s)/2,this.shift.y=(a-c)/2,this.control.width=s,this.control.height=c,this.control.x=this.shift.x+u,this.control.y=this.shift.y,this.option.width=s,this.option.height=c,this.option.x=this.control.x+u,this.option.y=this.shift.y,this.command.width=s,this.command.height=c,this.command.x=this.option.x+u,this.command.y=this.shift.y,this.textContainer.y=-this.modifierContainer.height/2-this.secondaryHeight/2}else{this.modifierContainer.width=this.width/4,this.modifierContainer.height=this.height,this.modifierContainer.x=this.width-this.modifierContainer.width;var p,f=Math.min(this.modifierContainer.width/2,this.modifierContainer.height/2);c=(p=.8)*this.height*(f/this.modifierContainer.height),this.shift.width=s=p*this.width*(f/this.modifierContainer.width),this.shift.height=c,this.shift.x=this.width/4-s/2,this.shift.y=this.height/4-c/2,this.control.width=s,this.control.height=c,this.control.x=this.shift.x+this.width/2,this.control.y=this.shift.y,this.option.width=s,this.option.height=c,this.option.x=this.shift.x,this.option.y=this.shift.y+this.height/2,this.command.width=s,this.command.height=c,this.command.x=this.option.x+this.width/2,this.command.y=this.option.y,this.textContainer.x=-this.modifierContainer.width/2,this.secondaryTextWidth=this.width-this.modifierContainer.width}this.textContainer.y-=e,this.textContainer.width=this.width,this.textContainer.height=this.height},e}(),Yf=r.sb({encapsulation:0,styles:[[".disabled[_ngcontent-%COMP%]{fill:gray}text[_ngcontent-%COMP%]{font-size:100px}"]],data:{}});function Zf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Uf,Nf)),r.tb(1,573440,null,0,Lf,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Xf(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Vf,Kf)),r.tb(1,573440,null,0,Ff,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function ed(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,Qf,Hf)),r.tb(1,573440,null,0,Gf,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"],secondaryText:[3,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource,n.subComponentSecondaryRoleText)},null)}function td(e){return r.Qb(0,[(e()(),r.ub(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 nd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["text-anchor","middle"],["x","50"],["y","55"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["A"]))],null,null)}function rd(e){return r.Qb(0,[(e()(),r.ub(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 id(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["text-anchor","middle"],["x","50"],["y","55"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["S"]))],null,null)}function od(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-secondary-role",""]],null,null,null,jf,If)),r.tb(1,638976,null,0,Pf,[],{height:[0,"height"],width:[1,"width"],y:[2,"y"],text:[3,"text"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,20,n.secondaryTextWidth,n.secondaryTextY,n.thisSecondaryRoleText)},null)}function ld(e){return r.Qb(2,[(e()(),r.ub(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)),r.tb(1,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Zf)),r.tb(4,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Xf)),r.tb(7,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ed)),r.tb(10,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["text-anchor","middle"],["x","50"],["y","55"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["C"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,td)),r.tb(29,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,nd)),r.tb(32,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,rd)),r.tb(38,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,id)),r.tb(41,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,od)),r.tb(46,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-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),e(t,46,0,n.thisSecondaryRoleText)},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,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 ud=function(){function e(){}return e.prototype.ngOnChanges=function(e){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0,t=0;this.secondaryText&&Rf(this.width,this.height)&&(e=this.height/5,t=5),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)-e,this.textAnchor=this.width>2*this.height?"end":"middle",this.textX=this.width>2*this.height?.6*this.width:this.width/2,this.secondaryHeight=this.height/4,this.secondaryTextY=this.height-this.secondaryHeight-1-t},e}(),ad=r.sb({encapsulation:2,styles:[],data:{}});function sd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-secondary-role",""]],null,null,null,jf,If)),r.tb(1,638976,null,0,Pf,[],{height:[0,"height"],width:[1,"width"],y:[2,"y"],text:[3,"text"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,20,n.width,n.secondaryTextY,n.secondaryText)},null)}function cd(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,1,":svg:text",[["alignment-baseline","middle"]],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),r.Ob(1,null,["\n ","\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(3,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()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,sd)),r.tb(7,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,7,0,t.component.secondaryText)},function(e,t){var n=t.component;e(t,0,0,n.textX,n.textY,n.textAnchor),e(t,1,0,n.text),e(t,3,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY)})}var pd=function(){function e(){}return e.prototype.ngOnChanges=function(e){this.calculatePositions()},e.prototype.calculatePositions=function(){var e=0;this.secondaryText&&Rf(this.width,this.height)&&(e=5);var t=this.width>1.8*this.height;for(this.useWidth=this.width/3,this.useHeight=this.height/3,t?(this.textWidth=.65*this.width,this.useX=0,this.useY=this.height/3,this.spanX=.6*this.width):(this.textWidth=.95*this.width,this.useX=this.width/3,this.useY=this.height/10,this.spanX=this.width/2),this.secondaryText?(this.secondaryHeight=this.height/4,this.secondaryTextY=this.height-this.secondaryHeight-1-e):(this.secondaryHeight=0,this.secondaryTextY=0),this.fontSize=19,this.text1="",this.text2="";this.fontSize>10&&!this.isFullTextVisible();)this.calculateTexts(t),this.fontSize--},e.prototype.calculateTexts=function(e){if(this.text){this.text1=this.getText(0),this.text2=this.getText(this.text1.length);var t=this.fontSize,n=this.text2?1:0;this.textY=e?(this.height-this.secondaryHeight)/2-.5*n*t:(this.height-this.secondaryHeight+this.useHeight)/2-.5*n*t,this.text1Y=0,this.text2Y=this.text1Y+1.2*n*t}},e.prototype.getText=function(e){for(var t={font:this.fontSize+"px Helvetica"},n="",r=0,i=e;i<this.text.length;i++){var o=this.text[i];if(" "!==o||""!==n){var l=n+=o;if(" "===o&&(r=i),Sl(t,l)>this.textWidth)break;n=l}}if(r>0&&r<n.length)n=n.substr(0,r);else if(11===this.fontSize){var u=n.replace(/ /g,""),a=this.text.substr(e).replace(/ /g,"");u.length<a.length&&(n=n.substring(0,n.length-3)+"...")}return n},e.prototype.isFullTextVisible=function(){var e=(this.text1+this.text2).replace(/ /g,"");if(this.text2.endsWith("..."))return!0;var t=this.text.replace(/ /g,"").length;return e.length===t},e}(),fd=r.sb({encapsulation:2,styles:[],data:{}});function dd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-secondary-role",""]],null,null,null,jf,If)),r.tb(1,638976,null,0,Pf,[],{height:[0,"height"],width:[1,"width"],y:[2,"y"],text:[3,"text"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,20,n.width,n.secondaryTextY,n.secondaryText)},null)}function hd(e){return r.Qb(2,[(e()(),r.ub(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()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(3,0,null,null,7,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,1,":svg:tspan",[],[[1,"x",0],[1,"dy",0]],null,null,null,null)),(e()(),r.Ob(6,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,1,":svg:tspan",[],[[1,"x",0],[1,"dy",0]],null,null,null,null)),(e()(),r.Ob(9,null,["",""])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,dd)),r.tb(13,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,13,0,t.component.secondaryText)},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",n.fontSize),e(t,5,0,n.spanX,n.text1Y),e(t,6,0,n.text1),e(t,8,0,n.spanX,n.text2Y),e(t,9,0,n.text2)})}var yd=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.textX=this.width/2},e}(),bd=r.sb({encapsulation:2,styles:[],data:{}});function md(e){return r.Qb(2,[(e()(),r.ub(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()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(3,0,null,null,1,":svg:text",[["alignment-baseline","middle"],["text-anchor","middle"]],[[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),r.Ob(4,null,["\n ","\n"])),(e()(),r.Ob(-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,n.textX,n.textY),e(t,4,0,n.abbreviation)})}var gd=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnInit=function(){},e}(),vd=r.sb({encapsulation:2,styles:[],data:{}});function kd(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","10"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,1,":svg:tspan",[["dy","45"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Click "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,1,":svg:tspan",[["dy","80"]],null,null,null,null,null)),(e()(),r.Ob(12,null,[" "," "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-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 _d=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}(),wd=r.sb({encapsulation:2,styles:[],data:{}});function Od(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,":svg:tspan",[["dy","45"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Move "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"]))],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 Ad=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}(),Cd=r.sb({encapsulation:2,styles:[],data:{}});function Td(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,":svg:tspan",[["dy","45"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Scroll "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"]))],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 xd=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnChanges=function(){this.sign=this.plus?"+":"-"},e}(),Sd=r.sb({encapsulation:2,styles:[],data:{}});function Md(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","4"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,1,":svg:tspan",[["dy","45"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Speed "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,1,":svg:tspan",[["dy","80"]],null,null,null,null,null)),(e()(),r.Ob(12,null,[" "," "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-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 Ed=function(){function e(){}return e.prototype.ngOnChanges=function(){switch(this.mouseAction.mouseAction){case $o.MouseActionParam.leftClick:this.type="click",this.param="Left";break;case $o.MouseActionParam.rightClick:this.type="click",this.param="Right";break;case $o.MouseActionParam.middleClick:this.type="click",this.param="Middle";break;case $o.MouseActionParam.button4:this.type="click",this.param="Button 4";break;case $o.MouseActionParam.button5:this.type="click",this.param="Button 5";break;case $o.MouseActionParam.button6:this.type="click",this.param="Button 6";break;case $o.MouseActionParam.button7:this.type="click",this.param="Button 7";break;case $o.MouseActionParam.button8:this.type="click",this.param="Button 8";break;case $o.MouseActionParam.scrollDown:this.type="scroll",this.param="down";break;case $o.MouseActionParam.scrollLeft:this.type="scroll",this.param="left";break;case $o.MouseActionParam.scrollRight:this.type="scroll",this.param="right";break;case $o.MouseActionParam.scrollUp:this.type="scroll",this.param="up";break;case $o.MouseActionParam.moveDown:this.type="move",this.param="down";break;case $o.MouseActionParam.moveLeft:this.type="move",this.param="left";break;case $o.MouseActionParam.moveRight:this.type="move",this.param="right";break;case $o.MouseActionParam.moveUp:this.type="move",this.param="up";break;case $o.MouseActionParam.accelerate:this.type="speed",this.param=!0;break;case $o.MouseActionParam.decelerate:this.type="speed",this.param=!1}},e}(),Pd=r.sb({encapsulation:2,styles:[],data:{}});function Id(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:g",[["svg-mouse-click-key",""]],null,null,null,kd,vd)),r.tb(1,114688,null,0,gd,[Wf],{button:[0,"button"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function jd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:g",[["svg-mouse-move-key",""]],null,null,null,Od,wd)),r.tb(1,573440,null,0,_d,[Wf],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Rd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:g",[["svg-mouse-scroll-key",""]],null,null,null,Td,Cd)),r.tb(1,573440,null,0,Ad,[Wf],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Ld(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:g",[["svg-mouse-speed-key",""]],null,null,null,Md,Sd)),r.tb(1,573440,null,0,xd,[Wf],{plus:[0,"plus"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Nd(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,14,":svg:g",[],null,null,null,null,null)),r.tb(1,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Id)),r.tb(4,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,jd)),r.tb(7,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Rd)),r.tb(10,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ld)),r.tb(13,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-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 Dd=n("GyMh"),Ud=function(){function e(e){this.mapper=e,this.leftModifiers=new Map,this.rightModifiers=new Map,this.mapping=new Map,this.populateMapping()}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){(e?this.leftModifiers:this.rightModifiers).get(t).checked=!0},e.prototype.getModifiers=function(e){return Array.from((e?this.leftModifiers:this.rightModifiers).values())},e.prototype.initModifiers=function(){this.leftModifiers.set(Dd.Key.Shift,{text:"LShift",value:$o.KeyModifiers.leftShift,checked:!1}),this.leftModifiers.set(Dd.Key.Ctrl,{text:"LCtrl",value:$o.KeyModifiers.leftCtrl,checked:!1}),this.leftModifiers.set(Dd.Key.Alt,{text:this.mapper.getOsSpecificText("LAlt"),value:$o.KeyModifiers.leftAlt,checked:!1}),this.leftModifiers.set(Dd.Key.LeftWindowKey,{text:this.mapper.getOsSpecificText("LSuper"),value:$o.KeyModifiers.leftGui,checked:!1}),this.rightModifiers.set(Dd.Key.Shift,{text:"RShift",value:$o.KeyModifiers.rightShift,checked:!1}),this.rightModifiers.set(Dd.Key.Ctrl,{text:"RCtrl",value:$o.KeyModifiers.rightCtrl,checked:!1}),this.rightModifiers.set(Dd.Key.Alt,{text:this.mapper.getOsSpecificText("RAlt"),value:$o.KeyModifiers.rightAlt,checked:!1}),this.rightModifiers.set(Dd.Key.LeftWindowKey,{text:this.mapper.getOsSpecificText("RSuper"),value:$o.KeyModifiers.rightGui,checked:!1})},e.prototype.populateMapping=function(){this.mapping.set(Dd.Key.Backspace,42),this.mapping.set(Dd.Key.Tab,43),this.mapping.set(Dd.Key.Enter,40),this.mapping.set(Dd.Key.PauseBreak,72),this.mapping.set(Dd.Key.CapsLock,57),this.mapping.set(Dd.Key.Escape,41),this.mapping.set(Dd.Key.Space,44),this.mapping.set(Dd.Key.PageUp,75),this.mapping.set(Dd.Key.PageDown,78),this.mapping.set(Dd.Key.End,77),this.mapping.set(Dd.Key.Home,74),this.mapping.set(Dd.Key.LeftArrow,80),this.mapping.set(Dd.Key.UpArrow,82),this.mapping.set(Dd.Key.RightArrow,79),this.mapping.set(Dd.Key.DownArrow,81),this.mapping.set(Dd.Key.Insert,73),this.mapping.set(Dd.Key.Delete,76),this.mapping.set(Dd.Key.Zero,39),this.mapping.set(Dd.Key.One,30),this.mapping.set(Dd.Key.Two,31),this.mapping.set(Dd.Key.Three,32),this.mapping.set(Dd.Key.Four,33),this.mapping.set(Dd.Key.Five,34),this.mapping.set(Dd.Key.Six,35),this.mapping.set(Dd.Key.Seven,36),this.mapping.set(Dd.Key.Eight,37),this.mapping.set(Dd.Key.Nine,38),this.mapping.set(Dd.Key.A,4),this.mapping.set(Dd.Key.B,5),this.mapping.set(Dd.Key.C,6),this.mapping.set(Dd.Key.D,7),this.mapping.set(Dd.Key.E,8),this.mapping.set(Dd.Key.F,9),this.mapping.set(Dd.Key.G,10),this.mapping.set(Dd.Key.H,11),this.mapping.set(Dd.Key.I,12),this.mapping.set(Dd.Key.J,13),this.mapping.set(Dd.Key.K,14),this.mapping.set(Dd.Key.L,15),this.mapping.set(Dd.Key.M,16),this.mapping.set(Dd.Key.N,17),this.mapping.set(Dd.Key.O,18),this.mapping.set(Dd.Key.P,19),this.mapping.set(Dd.Key.Q,20),this.mapping.set(Dd.Key.R,21),this.mapping.set(Dd.Key.S,22),this.mapping.set(Dd.Key.T,23),this.mapping.set(Dd.Key.U,24),this.mapping.set(Dd.Key.V,25),this.mapping.set(Dd.Key.W,26),this.mapping.set(Dd.Key.X,27),this.mapping.set(Dd.Key.Y,28),this.mapping.set(Dd.Key.Z,29),this.mapping.set(Dd.Key.SelectKey,101),this.mapping.set(Dd.Key.Numpad0,98),this.mapping.set(Dd.Key.Numpad1,89),this.mapping.set(Dd.Key.Numpad2,90),this.mapping.set(Dd.Key.Numpad3,91),this.mapping.set(Dd.Key.Numpad4,92),this.mapping.set(Dd.Key.Numpad5,93),this.mapping.set(Dd.Key.Numpad6,94),this.mapping.set(Dd.Key.Numpad7,95),this.mapping.set(Dd.Key.Numpad8,96),this.mapping.set(Dd.Key.Numpad9,97),this.mapping.set(Dd.Key.Multiply,85),this.mapping.set(Dd.Key.Add,87),this.mapping.set(Dd.Key.Subtract,86),this.mapping.set(Dd.Key.DecimalPoint,99),this.mapping.set(Dd.Key.Divide,84),this.mapping.set(Dd.Key.F1,58),this.mapping.set(Dd.Key.F2,59),this.mapping.set(Dd.Key.F3,60),this.mapping.set(Dd.Key.F4,61),this.mapping.set(Dd.Key.F5,62),this.mapping.set(Dd.Key.F6,63),this.mapping.set(Dd.Key.F7,64),this.mapping.set(Dd.Key.F8,65),this.mapping.set(Dd.Key.F9,66),this.mapping.set(Dd.Key.F10,67),this.mapping.set(Dd.Key.F11,68),this.mapping.set(Dd.Key.F12,69),this.mapping.set(Dd.Key.NumLock,83),this.mapping.set(Dd.Key.ScrollLock,71),this.mapping.set(Dd.Key.SemiColon,51),this.mapping.set(Dd.Key.Equals,46),this.mapping.set(Dd.Key.Comma,54),this.mapping.set(Dd.Key.Dash,45),this.mapping.set(Dd.Key.Period,55),this.mapping.set(Dd.Key.ForwardSlash,56),this.mapping.set(Dd.Key.GraveAccent,53),this.mapping.set(Dd.Key.OpenBracket,47),this.mapping.set(220,49),this.mapping.set(Dd.Key.ClosedBracket,48),this.mapping.set(Dd.Key.Quote,52)},e}(),Fd=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}({}),Kd=function(){function e(e,t,n,i){this.mapper=e,this.store=t,this.element=n,this.captureService=i,this.macroMap=new Map,this.keyClick=new r.m,this.capture=new r.m,this.enumLabelTypes=Fd,this.scanCodePressed=!1,this.pressedShiftLocation=-1,this.pressedAltLocation=-1,this.altPressed=!1,this.shiftPressed=!1}return e.prototype.onClick=function(e){this.reset(),this.keyClick.emit({keyTarget:this.element.nativeElement,shiftPressed:e.shiftKey,altPressed:e.altKey}),this.pressedShiftLocation=-1,this.pressedAltLocation=-1},e.prototype.onMouseDown=function(e){2!==e.which&&2!==e.button||!this.capturingEnabled||(e.preventDefault(),this.element.nativeElement.focus(),this.recording?this.reset():(this.recording=!0,this.recordAnimation="active",this.shiftPressed=e.shiftKey,this.altPressed=e.altKey,this.store.dispatch(new Cu)))},e.prototype.onKeyUp=function(e){e.keyCode===Dd.Key.Alt&&this.pressedAltLocation>-1?(this.pressedAltLocation=-1,e.preventDefault()):e.keyCode===Dd.Key.Shift&&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,Dd.Key.Shift),this.pressedAltLocation>-1&&this.captureService.setModifier(1===this.pressedAltLocation,Dd.Key.Alt),this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t)):(e.keyCode===Dd.Key.Shift&&(this.pressedShiftLocation=e.location),e.keyCode===Dd.Key.Alt&&(this.pressedAltLocation=e.location))},e.prototype.onFocusOut=function(){this.reset()},e.prototype.ngOnChanges=function(e){e.keyAction&&this.setLabels(),e.blink&&e.blink.currentValue&&this.blinkSvgRec()},e.prototype.onRecordingAnimationDone=function(){this.recordAnimation=this.recording&&"inactive"===this.recordAnimation?"active":"inactive"},e.prototype.reset=function(){this.recording=!1,this.captureService.initModifiers(),this.shiftPressed=!1,this.altPressed=!1,this.store.dispatch(new Tu)},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.labelType=Fd.OneLineText,this.labelSource=void 0,this.secondaryText=void 0,this.keyAction)if(this.keyAction instanceof $o.KeystrokeAction){var e=void 0;if(this.secondaryText=this.mapper.getSecondaryRoleText((n=this.keyAction).secondaryRoleAction),!n.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=Fd.SingleIcon):void 0!==e&&(1===e.length?(this.labelSource=e[0],this.labelType=Fd.OneLineText):(this.labelSource=e,this.labelType=Fd.TwoLineText))}else if(n.hasOnlyOneActiveModifier()&&!n.hasScancode())switch(n.modifierMask){case $o.KeyModifiers.leftCtrl:case $o.KeyModifiers.rightCtrl:this.labelSource=["Ctrl"];break;case $o.KeyModifiers.leftShift:case $o.KeyModifiers.rightShift:this.labelSource=["Shift"];break;case $o.KeyModifiers.leftAlt:case $o.KeyModifiers.rightAlt:this.labelSource=[this.mapper.getOsSpecificText("Alt")];break;case $o.KeyModifiers.leftGui:case $o.KeyModifiers.rightGui:this.mapper.getOperatingSystem()===Ru.Windows?(this.labelSource=this.mapper.getIcon("command"),this.labelType=Fd.SingleIcon):this.labelSource=[this.mapper.getOsSpecificText("Super")];break;default:this.labelSource=["Undefined"]}else this.labelType=Fd.KeystrokeKey,this.labelSource=this.keyAction}else if(this.keyAction instanceof $o.SwitchLayerAction){switch(e=void 0,(n=this.keyAction).layer){case $o.LayerName.mod:e="Mod";break;case $o.LayerName.fn:e="Fn";break;case $o.LayerName.mouse:e="Mouse"}n.switchLayerMode===$o.SwitchLayerMode.toggle?(this.labelType=Fd.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("toggle")}):n.switchLayerMode===$o.SwitchLayerMode.holdAndDoubleTapToggle?(this.labelType=Fd.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("double-tap")}):(this.labelType=Fd.OneLineText,this.labelSource=e)}else if(this.keyAction instanceof $o.SwitchKeymapAction){var n=this.keyAction;this.labelType=Fd.SwitchKeymap,this.labelSource=n.keymapAbbreviation}else if(this.keyAction instanceof $o.PlayMacroAction){var r=this.macroMap.get((n=this.keyAction).macroId);this.labelType=Fd.IconText,this.labelSource={icon:this.mapper.getIcon("macro"),text:r.name}}else this.keyAction instanceof $o.MouseAction?(this.labelType=Fd.MouseKey,this.labelSource=this.keyAction):this.labelSource=void 0},e.prototype.blinkSvgRec=function(){var e=this;this.svgRec&&(this.svgRec.nativeElement.classList.remove("blink"),setTimeout(function(){e.svgRec&&e.svgRec.nativeElement.classList.add("blink")},10))},e}(),Bd=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{cursor:pointer;outline:0}[_nghost-%COMP%]:hover{fill:#494949}.svg-rec[_ngcontent-%COMP%]{transition-timing-function:ease-out;transition:.2s}.svg-rec.active[_ngcontent-%COMP%]{fill:#4099e5;transition-timing-function:ease-in;transition:0s}.svg-rec.blink[_ngcontent-%COMP%]{-webkit-animation:1s ease-out blinkingRec;animation:1s ease-out blinkingRec}@-webkit-keyframes blinkingRec{0%{fill:#fff}100%{fill:#333}}@keyframes blinkingRec{0%{fill:#fff}100%{fill:#333}}"]],data:{animation:[{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 Vd(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0;return"@recording.done"===t&&(r=!1!==e.component.onRecordingAnimationDone()&&r),r},null,null)),(e()(),r.Ob(-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 Gd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-keystroke-key",""]],null,null,null,ld,Yf)),r.tb(1,573440,null,0,Jf,[Wf],{height:[0,"height"],width:[1,"width"],keystrokeAction:[2,"keystrokeAction"],secondaryText:[3,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource,n.secondaryText)},null)}function Hd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Vf,Kf)),r.tb(1,573440,null,0,Ff,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"],secondaryText:[3,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource,n.secondaryText)},null)}function $d(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,Qf,Hf)),r.tb(1,573440,null,0,Gf,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"],secondaryText:[3,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource,n.secondaryText)},null)}function zd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-text-icon-key",""]],null,null,null,cd,ad)),r.tb(1,573440,null,0,ud,[],{width:[0,"width"],height:[1,"height"],text:[2,"text"],icon:[3,"icon"],secondaryText:[4,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.text,n.labelSource.icon,n.secondaryText)},null)}function Qd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-icon-text-key",""]],null,null,null,hd,fd)),r.tb(1,573440,null,0,pd,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"],text:[3,"text"],secondaryText:[4,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.icon,n.labelSource.text,n.secondaryText)},null)}function Wd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Uf,Nf)),r.tb(1,573440,null,0,Lf,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"],secondaryText:[3,"secondaryText"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource,n.secondaryText)},null)}function qd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,":svg:g",[["svg-switch-keymap-key",""]],null,null,null,md,bd)),r.tb(1,114688,null,0,yd,[Wf],{width:[0,"width"],height:[1,"height"],abbreviation:[2,"abbreviation"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Jd(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,":svg:g",[["svg-mouse-key",""]],null,null,null,Nd,Pd)),r.tb(3,573440,null,0,Ed,[],{mouseAction:[0,"mouseAction"]},null),(e()(),r.Ob(-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 Yd(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,26,":svg:g",[],[[1,"font-size",0],[1,"font-family",0],[1,"fill",0]],null,null,null,null)),r.tb(2,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Gd)),r.tb(5,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Hd)),r.tb(8,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,$d)),r.tb(11,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,zd)),r.tb(14,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Qd)),r.tb(17,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Wd)),r.tb(20,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,qd)),r.tb(23,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Jd)),r.tb(26,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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 Zd(e){return r.Qb(2,[r.Mb(671088640,1,{svgRec:0}),(e()(),r.ub(1,0,[[1,0],["svgRec",1]],null,0,":svg:rect",[["class","svg-rec"]],[[2,"active",null],[8,"id",0],[1,"rx",0],[1,"ry",0],[1,"height",0],[1,"width",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Vd)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Yd)),r.tb(7,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.recording),e(t,7,0,!n.recording)},function(e,t){var n=t.component;e(t,1,0,n.active,n.id,n.rx,n.ry,n.height,n.width)})}var Xd=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return this.sanitizer.bypassSecurityTrustStyle(e)},e}(),eh=function(){function e(e){var t=this;this.store=e,this.keyClick=new r.m,this.keyHover=new r.m,this.capture=new r.m,this.keyboardKeys=[],this.macroMapSubscription=e.select(Gu).subscribe(function(e){return t.macroMap=e})}return e.prototype.ngOnDestroy=function(){this.macroMapSubscription.unsubscribe()},e.prototype.onKeyClick=function(e,t){this.keyClick.emit(N.a({},t,{keyId:e}))},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(N.a({},t,{keyId:e}))},e.prototype.keyboardKeysTrackBy=function(e,t){return""+e},e}(),th=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{position:relative}"]],data:{}});function nh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:path",[],[[1,"d",0],[1,"style",2]],null,null,null,null)),r.Kb(1,1)],null,function(e,t){var n=t.context.$implicit.$.d,i=r.Pb(t,0,1,e(t,1,0,r.Gb(t.parent,0),t.context.$implicit.$.style));e(t,0,0,n,i)})}function rh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:g",[["svg-keyboard-key",""],["tabindex","-1"]],[[1,"transform",0],[1,"fill",0]],[[null,"keyClick"],[null,"capture"],[null,"mouseenter"],[null,"mouseleave"],[null,"click"],[null,"mousedown"],["document","keyup"],["document","keydown"],[null,"focusout"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==r.Gb(e,1).onClick(n)&&i),"mousedown"===t&&(i=!1!==r.Gb(e,1).onMouseDown(n)&&i),"document:keyup"===t&&(i=!1!==r.Gb(e,1).onKeyUp(n)&&i),"document:keydown"===t&&(i=!1!==r.Gb(e,1).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==r.Gb(e,1).onFocusOut()&&i),"keyClick"===t&&(i=!1!==o.onKeyClick(e.parent.context.index,n)&&i),"capture"===t&&(i=!1!==o.onCapture(e.parent.context.index,n)&&i),"mouseenter"===t&&(i=!1!==o.onKeyHover(e.parent.context.index,n,!0)&&i),"mouseleave"===t&&(i=!1!==o.onKeyHover(e.parent.context.index,n,!1)&&i),i},Zd,Bd)),r.tb(1,573440,null,0,Kd,[Wf,L.m,r.k,Ud],{id:[0,"id"],rx:[1,"rx"],ry:[2,"ry"],height:[3,"height"],width:[4,"width"],keyAction:[5,"keyAction"],capturingEnabled:[6,"capturingEnabled"],active:[7,"active"],macroMap:[8,"macroMap"],blink:[9,"blink"]},{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.capturingEnabled,n.selected&&t.parent.context.index==n.selectedKey.keyId,n.macroMap,n.lastEdited&&n.lastEditedKeyId===t.parent.context.$implicit.id)},function(e,t){e(t,0,0,"translate("+t.parent.context.$implicit.x+" "+t.parent.context.$implicit.y+")",t.parent.context.$implicit.fill)})}function ih(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,rh)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,3,0,t.context.$implicit)},null)}function oh(e){return r.Qb(2,[r.Ib(0,Xd,[On]),(e()(),r.jb(16777216,null,null,1,null,nh)),r.tb(2,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,ih)),r.tb(5,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.coverages),e(t,5,0,n.keyboardKeys,n.keyboardKeysTrackBy)},null)}var lh=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.el.nativeElement.focus()},e}(),uh=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,"<br>")},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}(),ah=r.sb({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 sh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"span",[["class","placeholder"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"span",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.editText()&&r),r},null,null)),(e()(),r.Ob(3,null,["",""])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,3,0,t.component.placeholder)})}function ch(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"span",[["class","editable"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"span",[],[[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.editText()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.displayText)})}function ph(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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.escape"],[null,"keydown.control.enter"],[null,"keydown.alt.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,3)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,3).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,3)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,3)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(o.text=n)&&i),"keydown.escape"===t&&(i=!1!==o.cancelEditText()&&i),"keydown.control.enter"===t&&(i=!1!==o.keydownEnter()&&i),"keydown.alt.enter"===t&&(i=!1!==o.keydownEnter()&&i),i},null,null)),r.tb(3,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.Lb(1024,null,wc,function(e){return[e]},[Cc]),r.tb(5,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(7,16384,null,0,Pc,[[4,Mc]],null,null),r.tb(8,4276224,null,0,lh,[r.k],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,7,"div",[["class","pull-right buttons"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,1,"button",[["class","btn btn-danger"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.cancelEditText()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n Cancel\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.saveText()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n Update description\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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,r.Gb(t,7).ngClassUntouched,r.Gb(t,7).ngClassTouched,r.Gb(t,7).ngClassPristine,r.Gb(t,7).ngClassDirty,r.Gb(t,7).ngClassValid,r.Gb(t,7).ngClassInvalid,r.Gb(t,7).ngClassPending),e(t,15,0,n.isSaveDisabled)})}function fh(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,sh)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,ch)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,ph)),r.tb(10,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-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 dh=function(){return function(e){var t,n=e.rect.map(function(e){return e.$});this.keyboardKeys=[];for(var r=0;r<n.length;++r)t=n[r].id.slice(4)-1,n[r].height=+n[r].height,n[r].width=+n[r].width,n[r].fill=n[r].style.slice(5),this.keyboardKeys[t]=n[r];this.coverages=e.path,this.attributes=e.$}}(),hh=function(){function e(){}return e.prototype.getSvgModules=function(e){return void 0===e&&(e=xu.ANSI),[this.getRightModule(),this.getLeftModule(e)]},e.prototype.getSvgSeparator=function(){return this.separator||(this.separator=n("sMpS").svg.path[0].$),this.separator},e.prototype.getLeftModule=function(e){return void 0===e&&(e=xu.ANSI),e===xu.ISO?(this.isoLeft||(this.isoLeft=new dh(n("E2UR").svg)),this.isoLeft):(this.ansiLeft||(this.ansiLeft=new dh(n("wEuk").svg)),this.ansiLeft)},e.prototype.getRightModule=function(){return this.right||(this.right=new dh(n("2a1v").svg)),this.right},e}(),yh=function(){function e(e,t){this.svgModuleProvider=e,this.sanitizer=t,this.keyboardLayout=xu.ANSI,this.showDescription=!1,this.keyClick=new r.m,this.keyHover=new r.m,this.capture=new r.m,this.descriptionChanged=new r.m,this.separatorAnimation="visible",this.descriptionAnimation="down",this.modules=[],this.viewBox="-520 582 1100 470",this.moduleAnimationStates=[],this.moduleVisibilityAnimationStates=[]}return e.prototype.ngOnInit=function(){this.setModules()},e.prototype.ngOnChanges=function(e){e.halvesInfo&&this.updateModuleAnimationStates(),e.keyboardLayout&&this.setModules()},e.prototype.onKeyClick=function(e,t){this.keyClick.emit(N.a({},t,{moduleId:e}))},e.prototype.onCapture=function(e,t){this.capture.emit(N.a({},t,{moduleId:e}))},e.prototype.onKeyHover=function(e,t,n,r){this.keyHover.emit({moduleId:r,event:t,over:n,keyId:e})},e.prototype.updateModuleAnimationStates=function(){this.halvesInfo.areHalvesMerged?(this.moduleAnimationStates=[],this.separatorAnimation="visible",this.descriptionAnimation="down"):(this.moduleAnimationStates=["rotateRight","rotateLeft"],this.separatorAnimation="invisible",this.descriptionAnimation="up"),this.moduleVisibilityAnimationStates=this.halvesInfo.isLeftHalfConnected?["visible","visible"]:["visible","invisible"]},e.prototype.setModules=function(){this.modules=this.svgModuleProvider.getSvgModules(this.keyboardLayout),this.separator=this.svgModuleProvider.getSvgSeparator(),this.separatorStyle=this.sanitizer.bypassSecurityTrustStyle(this.separator.style)},e}(),bh=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block;width:100%;position:relative}editable-text[_ngcontent-%COMP%]{padding-left:2em;padding-right:2em;display:block}"]],data:{animation:[{type:7,name:"split",definitions:[{type:0,name:"rotateLeft",styles:{type:6,styles:{transform:"translate(2%, 30%) rotate(10.8deg) scale(0.80, 0.80)"},offset:null},options:void 0},{type:0,name:"rotateRight",styles:{type:6,styles:{transform:"translate(-2%, 30.7%) rotate(-10deg) scale(0.80, 0.80)"},offset:null},options:void 0},{type:1,expr:"* <=> *",animation:{type:4,styles:null,timings:500},options:null}],options:{}},{type:7,name:"fadeKeyboard",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: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:"200ms"},options:null},{type:1,expr:"invisible => visible",animation:{type:4,styles:null,timings:"200ms 500ms"},options:null}],options:{}},{type:7,name:"moveDescription",definitions:[{type:0,name:"down",styles:{type:6,styles:{"margin-top":"0.5em"},offset:null},options:void 0},{type:0,name:"up",styles:{type:6,styles:{"margin-top":"-6.5%"},offset:null},options:void 0},{type:1,expr:"down => up",animation:{type:4,styles:null,timings:500},options:null},{type:1,expr:"up => down",animation:{type:4,styles:null,timings:500},options:null}],options:{}}]}});function mh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,":svg:g",[["svg-module",""]],[[1,"transform",0],[24,"@split",0],[24,"@fadeKeyboard",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"]],function(e,t,n){var r=!0,i=e.component;return"keyClick"===t&&(r=!1!==i.onKeyClick(e.context.index,n)&&r),"keyHover"===t&&(r=!1!==i.onKeyHover(n.index,n.event,n.over,e.context.index)&&r),"capture"===t&&(r=!1!==i.onCapture(e.context.index,n)&&r),r},oh,th)),r.tb(1,180224,null,0,eh,[L.m],{coverages:[0,"coverages"],keyboardKeys:[1,"keyboardKeys"],keyActions:[2,"keyActions"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],capturingEnabled:[5,"capturingEnabled"],lastEdited:[6,"lastEdited"],lastEditedKeyId:[7,"lastEditedKeyId"]},{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.capturingEnabled,(null==n.lastEditedKey?null:n.lastEditedKey.moduleId)===t.context.index,null==n.lastEditedKey?null:n.lastEditedKey.key)},function(e,t){var n=t.component;e(t,0,0,t.context.$implicit.attributes.transform,n.moduleAnimationStates[t.context.index],n.moduleVisibilityAnimationStates[t.context.index])})}function gh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"editable-text",[["placeholder","No description provided for this keymap."]],[[24,"@moveDescription",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"]],function(e,t,n){var r=!0;return"ngModelChange"===t&&(r=!1!==e.component.descriptionChanged.emit(n)&&r),r},fh,ah)),r.tb(1,49152,null,0,uh,[r.h],{placeholder:[0,"placeholder"]},null),r.Lb(1024,null,wc,function(e){return[e]},[uh]),r.tb(3,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(5,16384,null,0,Pc,[[4,Mc]],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,t.component.descriptionAnimation,r.Gb(t,5).ngClassUntouched,r.Gb(t,5).ngClassTouched,r.Gb(t,5).ngClassPristine,r.Gb(t,5).ngClassDirty,r.Gb(t,5).ngClassValid,r.Gb(t,5).ngClassInvalid,r.Gb(t,5).ngClassPending)})}function vh(e){return r.Qb(2,[(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,mh)),r.tb(3,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(5,0,null,null,0,":svg:path",[],[[24,"@fadeSeparator",0],[1,"d",0],[1,"style",2]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,gh)),r.tb(9,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-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 kh=function(){function e(){this.keyboardLayout=xu.ANSI,this.keyClick=new r.m,this.keyHover=new r.m,this.capture=new r.m,this.descriptionChanged=new r.m}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}(),_h=r.sb({encapsulation:0,styles:[["svg-keyboard[_ngcontent-%COMP%]{width:99%;max-width:1400px;position:absolute;left:0;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 wh(e){return r.Qb(0,[(e()(),r.ub(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 r=!0,i=e.component;return"keyClick"===t&&(r=!1!==i.keyClick.emit(n)&&r),"keyHover"===t&&(r=!1!==i.keyHover.emit(n)&&r),"capture"===t&&(r=!1!==i.capture.emit(n)&&r),"descriptionChanged"===t&&(r=!1!==i.descriptionChanged.emit(n)&&r),r},vh,bh)),r.tb(1,638976,null,0,yh,[hh,On],{moduleConfig:[0,"moduleConfig"],capturingEnabled:[1,"capturingEnabled"],selectedKey:[2,"selectedKey"],selected:[3,"selected"],halvesInfo:[4,"halvesInfo"],keyboardLayout:[5,"keyboardLayout"],description:[6,"description"],showDescription:[7,"showDescription"],lastEditedKey:[8,"lastEditedKey"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.modules,n.capturingEnabled,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.layerId)===t.context.index,n.halvesInfo,n.keyboardLayout,n.description,!0,n.lastEditedKey)},function(e,t){e(t,0,0,t.component.layerAnimationState[t.context.index])})}function Oh(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,wh)),r.tb(1,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.layers,n.trackKeyboard)},null)}var Ah=n("p0ib"),Ch=n("S1nX");function Th(e,t,n){return 0===n?[t]:(e.push(t),e)}function xh(){return yt(Th,[])}var Sh=n("LvDl"),Mh=n("oxjq"),Eh=Mh,Ph=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.value=e,this.text=t,this.disabled=n,this.data=r,this._parent=i,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(Eh(this.cacheHighlightText),"gi"),"<strong>$&</strong>"):this.text)),this.cacheRenderedText},e}(),Ih=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}(),jh=function(){return function(e){this.template=e}}(),Rh=Sh,Lh=Mh,Nh=new r.q("NGX_SELECT_OPTIONS"),Dh=function(e){return e[e.first=0]="first",e[e.previous=1]="previous",e[e.next=2]="next",e[e.last=3]="last",e[e.firstSelected=4]="firstSelected",e[e.firstIfOptionActiveInvisible=5]="firstIfOptionActiveInvisible",e}({});function Uh(e,t){return t in e}var Fh=function(){function e(e,t,n,i){var o,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.isFocused=!1,this.keepSelectMenuOpened=!1,this.keyCodeToRemoveSelected="Delete",this.keyCodeToOptionsOpen=["Enter","NumpadEnter"],this.keyCodeToOptionsClose="Escape",this.keyCodeToOptionsSelect=["Enter","NumpadEnter"],this.keyCodeToNavigateFirst="ArrowLeft",this.keyCodeToNavigatePrevious="ArrowUp",this.keyCodeToNavigateNext="ArrowDown",this.keyCodeToNavigateLast="ArrowRight",this.typed=new r.m,this.focus=new r.m,this.blur=new r.m,this.open=new r.m,this.close=new r.m,this.select=new r.m,this.remove=new r.m,this.navigated=new r.m,this.selectionChanges=new r.m,this.optionsOpened=!1,this.actualValue=[],this.subjOptions=new Oe.a([]),this.subjSearchText=new Oe.a(""),this.subjOptionsSelected=new Oe.a([]),this.subjExternalValue=new Oe.a([]),this.subjDefaultValue=new Oe.a([]),this.subjRegisterOnChange=new Ue.a,this._focusToInput=!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=je(Object(Ah.a)(this.subjExternalValue.pipe(Object(Fe.a)(function(e){return o=null===e?[]:[].concat(e)})),this.subjOptionsSelected.pipe(Object(Fe.a)(function(e){return e.map(function(e){return e.value})}))),this.subjDefaultValue).pipe(Object(Fe.a)(function(e){var t=Object(N.f)(e,2),n=t[0],r=t[1],i=Rh.isEqual(n,r)?[]:n;return i.length?i:r}),Object(Mp.a)(function(e,t){return Rh.isEqual(e,t)}),Object(Ch.a)());je(u,this.subjRegisterOnChange).pipe(Object(Fe.a)(function(e){return Object(N.f)(e,1)[0]})).subscribe(function(e){l.actualValue=e,Rh.isEqual(e,o)||(o=e,l.onChange(l.multiple?e:e.length?e[0]:null))}),je(this.subjOptions.pipe(Object(lt.a)(function(e){return Object(we.a)(e).pipe(Object(lt.a)(function(e){return e instanceof Ph?Object(_e.a)(e):e instanceof Ih?Object(we.a)(e.options):Ne.a}),xh())})),u).pipe(Object(Fe.a)(function(e){var t=Object(N.f)(e,2),n=t[0],r=[];if(t[1].forEach(function(e){var t=n.find(function(t){return t.value===e});t&&r.push(t)}),l.keepSelectedItems){var i=r.map(function(e){return e.value}),o=l.subjOptionsSelected.value.filter(function(e){return-1===i.indexOf(e.value)});r.push.apply(r,Object(N.g)(o))}Rh.isEqual(r,l.subjOptionsSelected.value)||(l.subjOptionsSelected.next(r),l.cd.markForCheck())})).subscribe(),je(this.subjOptions,this.subjOptionsSelected,this.subjSearchText).pipe(Object(Fe.a)(function(e){var t=Object(N.f)(e,3),n=t[1];return l.optionsFiltered=l.filterOptions(t[2],t[0],n).map(function(e){return e instanceof Ph?e.highlightedText=l.highlightOption(e):e instanceof Ih&&e.options.map(function(e){return e.highlightedText=l.highlightOption(e),e}),e}),l.cacheOptionsFilteredFlat=null,l.navigateOption(Dh.firstIfOptionActiveInvisible),l.cd.markForCheck(),n}),Object(lt.a)(function(e){return l.optionsFilteredFlat().pipe(Object(Ve.a)(function(t){return l.autoSelectSingleOption&&1===t.length&&!e.length}))})).subscribe(function(e){l.subjOptionsSelected.next(e),l.cd.markForCheck()})}return Object.defineProperty(e.prototype,"inputText",{get:function(){return this.inputElRef&&this.inputElRef.nativeElement?this.inputElRef.nativeElement.value:""},enumerable:!0,configurable:!0}),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?Object(_e.a)(this.cacheOptionsFilteredFlat):Object(we.a)(this.optionsFiltered).pipe(Object(lt.a)(function(e){return e instanceof Ph?Object(_e.a)(e):e instanceof Ih?Object(we.a)(e.optionsFiltered):Ne.a}),Object(Ve.a)(function(e){return!e.disabled}),xh(),gt(function(t){return e.cacheOptionsFilteredFlat=t}))},e.prototype.navigateOption=function(e){var t=this;this.optionsFilteredFlat().pipe(Object(Fe.a)(function(n){var r,i={index:-1,activeOption:null,filteredOptionList:n};switch(e){case Dh.first:i.index=0;break;case Dh.previous:r=n.indexOf(t.optionActive)-1,i.index=r>=0?r:n.length-1;break;case Dh.next:r=n.indexOf(t.optionActive)+1,i.index=r<n.length?r:0;break;case Dh.last:i.index=n.length-1;break;case Dh.firstSelected:t.subjOptionsSelected.value.length&&(i.index=n.indexOf(t.subjOptionsSelected.value[0]));break;case Dh.firstIfOptionActiveInvisible:var o=-1;t.optionActive&&(o=n.indexOf(n.find(function(e){return e.value===t.optionActive.value}))),i.index=o>0?o:0}return i.activeOption=n[i.index],i})).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=[].concat(this.keyCodeToOptionsSelect,this.keyCodeToNavigateFirst,this.keyCodeToNavigatePrevious,this.keyCodeToNavigateNext,this.keyCodeToNavigateLast),n=[].concat(this.keyCodeToOptionsOpen,this.keyCodeToRemoveSelected);if(this.optionsOpened&&-1!==t.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsSelect).indexOf(e.code)+1&&e.code:this.optionSelect(this.optionActive),this.navigateOption(Dh.next);break;case this.keyCodeToNavigateFirst:this.navigateOption(Dh.first);break;case this.keyCodeToNavigatePrevious:this.navigateOption(Dh.previous);break;case this.keyCodeToNavigateLast:this.navigateOption(Dh.last);break;case this.keyCodeToNavigateNext:this.navigateOption(Dh.next)}else if(!this.optionsOpened&&-1!==n.indexOf(e.code))switch(e.preventDefault(),e.stopPropagation(),e.code){case[].concat(this.keyCodeToOptionsOpen).indexOf(e.code)+1&&e.code: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 Ph?t.value:t instanceof Ih?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=""),t.code===this.keyCodeToOptionsClose?this.optionsClose():this.optionsOpened&&-1===["ArrowDown","ArrowUp","ArrowLeft","ArrowDown"].indexOf(t.code)?this.typed.emit(e):!this.optionsOpened&&e&&this.optionsOpen(e)},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.keepSelectMenuOpened||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){var t=this;document.onmousemove=function(){t.autoActiveOnMouseEnter&&t.optionActivate(e)}},e.prototype.filterOptions=function(e,t,n){var r=this,i=new RegExp(Lh(e),"i"),o=function(t){return r.searchCallback?r.searchCallback(e,t):(!e||i.test(t.text))&&(!r.multiple||-1===n.indexOf(t))};return t.filter(function(e){if(e instanceof Ph)return o(e);if(e instanceof Ih){var t=e;return t.filter(function(e){return o(e)}),t.optionsFiltered.length}})},e.prototype.ensureVisibleElement=function(e){if(this.choiceMenuElRef&&this.cacheElementOffsetTop!==e.offsetTop){this.cacheElementOffsetTop=e.offsetTop;var t=this.choiceMenuElRef.nativeElement;this.cacheElementOffsetTop<t.scrollTop?t.scrollTop=this.cacheElementOffsetTop:this.cacheElementOffsetTop+e.offsetHeight>t.scrollTop+t.clientHeight&&(t.scrollTop=this.cacheElementOffsetTop+e.offsetHeight-t.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?Dh.firstSelected:Dh.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=this,n=[];return Array.isArray(e)&&e.forEach(function(e){if("object"==typeof e&&null!==e&&Uh(e,t.optGroupLabelField)&&Uh(e,t.optGroupOptionsField)&&Array.isArray(e[t.optGroupOptionsField])){var r=new Ih(e[t.optGroupLabelField]);e[t.optGroupOptionsField].forEach(function(e){var n=t.buildOption(e,r);n&&r.options.push(n)}),n.push(r)}else{var i=t.buildOption(e,null);i&&n.push(i)}}),n},e.prototype.buildOption=function(e,t){var n,r,i;if("string"==typeof e||"number"==typeof e)n=r=e,i=!1;else{if("object"!=typeof e||null===e||!Uh(e,this.optionValueField)&&!Uh(e,this.optionTextField))return null;n=Uh(e,this.optionValueField)?e[this.optionValueField]:e[this.optionTextField],r=Uh(e,this.optionTextField)?e[this.optionTextField]:e[this.optionValueField],i=!!Uh(e,"disabled")&&e.disabled}return new Ph(n,r,i,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,this.cd.markForCheck()},Object(N.b)([Object(r.o)("document:focusin",["$event"]),Object(r.o)("document:click",["$event"]),Object(N.d)("design:type",Function),Object(N.d)("design:paramtypes",[Object]),Object(N.d)("design:returntype",void 0)],e.prototype,"documentClick",null),e}(),Kh=function(){function e(){}var t;return t=e,e.forRoot=function(e){return{ngModule:t,providers:[{provide:Nh,useValue:e}]}},e}(),Bh=r.sb({encapsulation:0,styles:['.ngx-select_multiple[_ngcontent-%COMP%]{height:auto;padding:3px 3px 0}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__search[_ngcontent-%COMP%]{background-color:transparent!important;border:none;outline:0;box-shadow:none;height:1.6666em;padding:0;margin-bottom:3px}.ngx-select__disabled[_ngcontent-%COMP%]{background-color:#eceeef;border-radius:4px;position:absolute;width:100%;height:100%;z-index:5;opacity:.6;top:0;left:0;cursor:not-allowed}.ngx-select__toggle[_ngcontent-%COMP%]{outline:0;position:relative;text-align:left!important;color:#333;background-color:#fff;border-color:#ccc;display:inline-flex;align-items:stretch;justify-content:space-between}.ngx-select__toggle[_ngcontent-%COMP%]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.ngx-select__toggle-buttons[_ngcontent-%COMP%]{flex-shrink:0;display:flex;align-items:center}.ngx-select__toggle-caret[_ngcontent-%COMP%]{position:absolute;height:10px;top:50%;right:10px;margin-top:-2px}.ngx-select__placeholder[_ngcontent-%COMP%]{float:left;max-width:100%;text-overflow:ellipsis;overflow:hidden}.ngx-select__clear[_ngcontent-%COMP%]{margin-right:10px;padding:0;border:none}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__clear[_ngcontent-%COMP%]{line-height:initial;margin-left:5px;margin-right:0;color:#000;opacity:.5}.ngx-select__clear-icon[_ngcontent-%COMP%]{display:inline-block;font-size:inherit;cursor:pointer;position:relative;width:1em;height:.75em;padding:0}.ngx-select__clear-icon[_ngcontent-%COMP%]:after, .ngx-select__clear-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;border-top:3px solid;width:100%;top:50%;left:0;margin-top:-1px}.ngx-select__clear-icon[_ngcontent-%COMP%]:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ngx-select__clear-icon[_ngcontent-%COMP%]:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.ngx-select__choices[_ngcontent-%COMP%]{width:100%;height:auto;max-height:200px;overflow-x:hidden;margin-top:0;position:absolute}.ngx-select_multiple[_ngcontent-%COMP%] .ngx-select__choices[_ngcontent-%COMP%]{margin-top:1px}.ngx-select__item[_ngcontent-%COMP%]{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;white-space:nowrap;cursor:pointer;text-decoration:none}.ngx-select__item_disabled[_ngcontent-%COMP%], .ngx-select__item_no-found[_ngcontent-%COMP%]{cursor:default}.ngx-select__item_active[_ngcontent-%COMP%]{color:#fff;outline:0;background-color:#428bca}.ngx-select__selected-plural[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%]{display:inline-flex;align-items:center;overflow:hidden}.ngx-select__selected-plural[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .ngx-select__selected-single[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ngx-select__selected-plural[_ngcontent-%COMP%]{outline:0;margin:0 3px 3px 0}.input-group[_ngcontent-%COMP%] > .dropdown[_ngcontent-%COMP%]{position:static}'],data:{}});function Vh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"span",[["class","ngx-select__placeholder text-muted"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.placeholder)})}function Gh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,9,"span",[["class","ngx-select__selected-single pull-left float-left"]],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(3,{"ngx-select__allow-clear":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,16777216,null,null,3,null,null,null,null,null,null,null)),r.tb(6,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(7,{$implicit:0,index:1,text:2}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component,i=e(t,3,0,n.allowClear);e(t,2,0,"ngx-select__selected-single pull-left float-left",i);var o=e(t,7,0,n.optionsSelected[0],0,n.sanitize(n.optionsSelected[0].text));e(t,6,0,o,n.templateSelectedOption||r.Gb(t.parent.parent,30))},null)}function Hh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"a",[["class","ngx-select__clear btn btn-sm btn-link"]],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.optionRemove(i.optionsSelected[0],n)&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,2,0,"ngx-select__clear btn btn-sm btn-link",t.component.setBtnSize())},null)}function $h(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,22,"div",[["class","ngx-select__selected"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,19,"div",[["class","ngx-select__toggle btn form-control"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.optionsOpen()&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(4,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,Vh)),r.tb(7,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Gh)),r.tb(10,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,8,"span",[["class","ngx-select__toggle-buttons"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Hh)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,0,"i",[["class","dropdown-toggle"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,0,"i",[["class","ngx-select__toggle-caret caret"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,"ngx-select__toggle btn form-control",n.setFormControlSize(n.setBtnSize())),e(t,7,0,!n.optionsSelected.length),e(t,10,0,n.optionsSelected.length),e(t,15,0,n.canClearNotMultiple())},null)}function zh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,18,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,15,"span",[["class","ngx-select__selected-plural btn btn-default btn-secondary btn-xs"],["tabindex","-1"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==n.stopPropagation()&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(4,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(6,16777216,null,null,3,null,null,null,null,null,null,null)),r.tb(7,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(8,{$implicit:0,index:1,text:2}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(11,0,null,null,5,"a",[["class","ngx-select__clear btn btn-sm btn-link pull-right float-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.optionRemove(e.context.$implicit,n)&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(13,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,0,"i",[["class","ngx-select__clear-icon"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,"ngx-select__selected-plural btn btn-default btn-secondary btn-xs",n.setBtnSize());var i=e(t,8,0,t.context.$implicit,t.context.index,n.sanitize(t.context.$implicit.text));e(t,7,0,i,n.templateSelectedOption||r.Gb(t.parent.parent,30)),e(t,13,0,"ngx-select__clear btn btn-sm btn-link pull-right float-right",n.setBtnSize())},null)}function Qh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"div",[["class","ngx-select__selected"]],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.inputClick(i.inputElRef&&i.inputElRef.value)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,zh)),r.tb(3,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.optionsSelected,n.trackByOption)},null)}function Wh(e){return r.Qb(0,[(e()(),r.ub(0,0,[[2,0],["input",1]],null,2,"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,o=e.component;return"keyup"===t&&(i=!1!==o.inputKeyUp(r.Gb(e,0).value,n)&&i),"click"===t&&(i=!1!==o.inputClick(r.Gb(e,0).value)&&i),i},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null)],function(e,t){e(t,2,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 qh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"div",[["class","divider dropdown-divider"]],null,null,null,null,null))],null,null)}function Jh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[["class","dropdown-header"]],null,null,null,null,null)),(e()(),r.Ob(1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.context.$implicit.label)})}function Yh(e){return r.Qb(0,[(e()(),r.ub(0,0,[["choiceItem",1]],null,8,"a",[["class","ngx-select__item dropdown-item"],["href","#"]],null,[[null,"mouseenter"],[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"mouseenter"===t&&(r=!1!==i.onMouseEnter({activeOption:e.context.$implicit,filteredOptionList:i.optionsFiltered,index:i.optionsFiltered.indexOf(e.context.$implicit)})&&r),"click"===t&&(r=!1!==i.optionSelect(e.context.$implicit,n)&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(3,{"ngx-select__item_active active":0,"ngx-select__item_disabled disabled":1}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,16777216,null,null,2,null,null,null,null,null,null,null)),r.tb(6,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(7,{$implicit:0,text:1,index:2,subIndex:3}),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component,i=e(t,3,0,t.context.$implicit.active,t.context.$implicit.disabled);e(t,2,0,"ngx-select__item dropdown-item",i);var o=e(t,7,0,t.context.$implicit,t.context.$implicit.highlightedText,t.parent.context.index,t.context.index);e(t,6,0,o,n.templateOption||r.Gb(t.parent.parent.parent,30))},null)}function Zh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"li",[["class","ngx-select__item-group"],["role","menuitem"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,qh)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Jh)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,2,null,Yh)),r.tb(9,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),r.Hb(10,1),(e()(),r.Ob(-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);var r=t.context.$implicit.optionsFiltered||e(t,10,0,t.context.$implicit);e(t,9,0,r,n.trackByOption)},null)}function Xh(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"li",[["class","ngx-select__item ngx-select__item_no-found dropdown-header"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,16777216,null,null,2,null,null,null,null,null,null,null)),r.tb(3,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(4,{$implicit:0}),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=t.component,i=e(t,4,0,n.inputText);e(t,3,0,i,n.templateOptionNotFound||r.Gb(t.parent.parent,32))},null)}function ey(e){return r.Qb(0,[(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Zh)),r.tb(3,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Xh)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-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){var n=t.component;e(t,0,0,n.optionsOpened&&n.subjOptions.value.length)})}function ty(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,1,0,t.context.text)})}function ny(e){return r.Qb(0,[(e()(),r.Ob(0,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.noResultsFound)})}function ry(e){return r.Qb(2,[r.Mb(402653184,1,{mainElRef:0}),r.Mb(671088640,2,{inputElRef:0}),r.Mb(671088640,3,{choiceMenuElRef:0}),(e()(),r.ub(3,0,[[1,0],["main",1]],null,30,"div",[["class","ngx-select dropdown"]],[[8,"tabIndex",0]],[[null,"click"],[null,"focusin"],[null,"focus"],[null,"keydown"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.mainClicked(n)&&r),"focusin"===t&&(r=!1!==i.mainClicked(n)&&r),"focus"===t&&(r=!1!==i.focusToInput()&&r),"keydown"===t&&(r=!1!==i.inputKeyDown(n)&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(5,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(6,{"ngx-select_multiple form-control":0,"open show":1}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,3,"div",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(10,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(11,{"ngx-select__disabled":0}),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,$h)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Qh)),r.tb(19,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Wh)),r.tb(23,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ey)),r.tb(27,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(0,[["defaultTemplateOption",2]],null,0,null,ty)),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(0,[["defaultTemplateOptionNotFound",2]],null,0,null,ny)),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component,r=n.setFormControlSize(e(t,6,0,!0===n.multiple,n.optionsOpened&&n.optionsFiltered.length),!0===n.multiple);e(t,5,0,"ngx-select dropdown",r);var i=e(t,11,0,n.disabled);e(t,10,0,i),e(t,15,0,!1===n.multiple&&(!n.optionsOpened||n.noAutoComplete)),e(t,19,0,!0===n.multiple),e(t,23,0,n.checkInputVisibility()),e(t,27,0,n.isFocused)},function(e,t){e(t,3,0,t.component.disabled?-1:0)})}var iy=function(){function e(e,t){this.captureService=e,this.store=t,this.isLink=!1,this.captureText="Capture keystroke",this.capture=new r.m,this.record=!1,this.captureService.initModifiers(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onKeyUp=function(e){this.scanCodePressed?(e.preventDefault(),e.stopPropagation(),this.scanCodePressed=!1):this.record&&!this.first&&(e.preventDefault(),e.stopPropagation(),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)):t===Dd.Key.Enter&&(this.record=!0,this.first=!0,this.store.dispatch(new Cu))},e.prototype.onFocusOut=function(){this.record=!1,this.reset()},e.prototype.start=function(){this.record=!0,this.store.dispatch(new Cu)},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(),this.store.dispatch(new Tu)},e}(),oy=r.sb({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 ly(e){return r.Qb(0,[(e()(),r.Ob(0,null,["\n","\n"]))],null,function(e,t){e(t,0,0,t.component.captureText)})}function uy(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\nCapturing ...\n"]))],null,null)}function ay(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,12,"button",[["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.start()&&r),r},null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(2,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(3,{"btn btn-sm btn--capture-keystroke":0,"btn-link link--capture-keystroke":1,"btn-default":2,"btn-info":3}),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(5,0,null,null,0,"i",[["class","fa fa-circle"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,ly)),r.tb(8,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,uy)),r.tb(11,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component,r=e(t,3,0,!n.isLink,n.isLink,!n.record&&!n.isLink,n.record&&!n.isLink);e(t,2,0,r),e(t,8,0,!n.record),e(t,11,0,n.record)},null)}var sy=function(){function e(){this.validAction=new r.m}return e.prototype.remapInfoChanged=function(e){},e}(),cy=function(e){function t(t,n){var i=e.call(this)||this;return i.mapper=t,i.cdRef=n,i.keyActionChange=new r.m,i.secondaryRoleGroups=[],i.leftModifiers=t.getLeftKeyModifiers(),i.rightModifiers=t.getRightKeyModifiers(),i.scanCodeGroups=[{id:"0",text:"None"}],i.scanCodeGroups=i.scanCodeGroups.concat($o.SCANCODES),i.selectedScancodeOption=i.scanCodeGroups[0],i.selectedSecondaryRoleIndex=-1,i}return N.c(t,e),t.prototype.ngOnChanges=function(e){e.showLayerSwitcherInSecondaryRoles&&this.fillSecondaryRoles(),this.fromKeyAction(this.defaultKeyAction),this.keyActionChanged(!1)},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,$o.KeystrokeType.basic):this.scanCodeGroups[0],this.leftModifiers=e.left,this.rightModifiers=e.right,this.keyActionChanged()},t.prototype.fromKeyAction=function(e){if(!(e instanceof $o.KeystrokeAction))return!1;var t=e;this.selectedScancodeOption=this.findScancodeOptionByScancode(t.scancode||0,t.type);for(var n=0,r=this.leftModifiers;n<r.length;n++)(l=r[n]).checked=(t.modifierMask&l.value)>0;for(var i=0,o=this.rightModifiers;i<o.length;i++){var l;(l=o[i]).checked=(t.modifierMask&l.value)>0}return this.selectedSecondaryRoleIndex=void 0!==t.secondaryRoleAction?this.mapper.modifierMapper(t.secondaryRoleAction):-1,!0},t.prototype.toKeyAction=function(){var e=new $o.KeystrokeAction,t=this.toScancodeTypePair(this.selectedScancodeOption);if(e.scancode=t[0],e.type="media"===t[1]?e.scancode>255?$o.KeystrokeType.longMedia:$o.KeystrokeType.shortMedia:$o.KeystrokeType[t[1]],e.modifierMask=Ml(this.leftModifiers,this.rightModifiers),e.secondaryRoleAction=-1===this.selectedSecondaryRoleIndex?void 0:this.mapper.modifierMapper(this.selectedSecondaryRoleIndex),this.keyActionValid(e))return e},t.prototype.toggleModifier=function(e){e.checked=!e.checked,this.keyActionChanged()},t.prototype.onSecondaryRoleChange=function(e){this.selectedSecondaryRoleIndex=+e,this.keyActionChanged()},t.prototype.onScancodeChange=function(e){this.selectedScancodeOption=this.findScancodeOptionById(e),this.keyActionChanged()},t.prototype.modifiersTrackBy=function(e,t){return""+t.value+t.checked},t.prototype.remapInfoChanged=function(e){this.remapInfo=e;var t=this.toKeyAction();this.calculateRemapOnAllLayerWarningVisibility(t),this.cdRef.markForCheck()},t.prototype.findScancodeOptionBy=function(e){for(var t,n=this.scanCodeGroups.slice();n.length>0;){var r=n.shift();if(e(r)){t=r;break}r.children&&n.push.apply(n,r.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===$o.KeystrokeType.shortMedia||t===$o.KeystrokeType.longMedia?"media":$o.KeystrokeType[t];return this.findScancodeOptionBy(function(t){var r=t.additional;return!(!r||r.scancode!==e||r.type!==n)||!(r&&void 0!==r.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.prototype.keyActionChanged=function(e){void 0===e&&(e=!0);var t=this.toKeyAction();this.validAction.emit(this.keyActionValid(t)),this.calculateRemapOnAllLayerWarningVisibility(t),e&&this.keyActionChange.emit(t)},t.prototype.calculateRemapOnAllLayerWarningVisibility=function(e){this.warningVisible=this.allowRemapOnAllKeymapWarning&&this.remapInfo&&!this.remapInfo.remapOnAllLayer&&e&&!e.hasScancode()&&e.hasOnlyOneActiveModifier()},t.prototype.fillSecondaryRoles=function(){var e;this.secondaryRoleGroups=$o.SECONDARY_ROLES.filter((e=this.showLayerSwitcherInSecondaryRoles,function(t){return e?t:"Layer switcher"!==t.text}))},t}(sy),py=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;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:flex;margin-top:3rem}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{margin-right:.6em;align-items:center;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}[_nghost-%COMP%] .remap-warning[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:0;padding-top:5px;padding-bottom:5px}"]],data:{}});function fy(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,10,"span",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(3,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(4,{"indent-dropdown-item":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(7,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),r.Ob(10,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,4,0,"0"!==t.context.$implicit.data.id);e(t,3,0,n)},function(e,t){e(t,7,0,t.context.$implicit.text),e(t,10,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function dy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleModifier(e.context.$implicit)&&r),r},null,null)),(e()(),r.Ob(1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.context.$implicit.checked),e(t,1,0,t.context.$implicit.text)})}function hy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleModifier(e.context.$implicit)&&r),r},null,null)),(e()(),r.Ob(1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.context.$implicit.checked),e(t,1,0,t.context.$implicit.text)})}function yy(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,10,"span",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(3,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(4,{"indent-dropdown-item":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(7,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),r.Ob(10,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,4,0,"-1"!==t.context.$implicit.data.id);e(t,3,0,n)},function(e,t){e(t,7,0,t.context.$implicit.text),e(t,10,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function by(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,25,"div",[["class","long-press-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Secondary role:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,15,"div",[["class","secondary-role-groups-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"document:focusin"===t&&(i=!1!==r.Gb(e,8).documentClick(n)&&i),"document:click"===t&&(i=!1!==r.Gb(e,8).documentClick(n)&&i),"select"===t&&(i=!1!==o.onSecondaryRoleChange(n)&&i),i},ry,Bh)),r.tb(8,2408448,null,3,Fh,[r.t,On,r.h,[2,Nh]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],optGroupLabelField:[3,"optGroupLabelField"],optGroupOptionsField:[4,"optGroupOptionsField"],size:[5,"size"],autoActiveOnMouseEnter:[6,"autoActiveOnMouseEnter"]},{select:"select"}),r.Mb(335544320,4,{templateOption:0}),r.Mb(335544320,5,{templateSelectedOption:0}),r.Mb(335544320,6,{templateOptionNotFound:0}),r.Lb(1024,null,wc,function(e){return[e]},[Fh]),r.tb(13,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},null),r.Lb(2048,null,Mc,null,[_p]),r.tb(15,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(0,[[4,2]],null,1,null,yy)),r.tb(18,16384,null,0,jh,[r.M],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","620"],["name","question-circle"],["title","<p class='text-left'>The secondary role activates when another key gets pressed while holding this key.</p>\n <p class='text-left'>Let's say that the scancode is Escape and the secondary role is Mouse. Then:</p>\n <ul class='text-left'>\n <li>Tap this key to trigger Escape. <i>(Primary role)</i></li>\n <li>Hold this key and press another key to activate the relevant key of the Mouse layer. <i>(Secondary role)</i></li>\n </ul>\n <p class='text-left'>The secondary role can be any layer or modifier.</p>"]],[[1,"data-placement",0]],null,null,yc,rc)),r.tb(23,114688,null,0,nc,[],{name:[0,"name"]},null),r.tb(24,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),r.Ob(-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,"<p class='text-left'>The secondary role activates when another key gets pressed while holding this key.</p>\n <p class='text-left'>Let's say that the scancode is Escape and the secondary role is Mouse. Then:</p>\n <ul class='text-left'>\n <li>Tap this key to trigger Escape. <i>(Primary role)</i></li>\n <li>Hold this key and press another key to activate the relevant key of the Mouse layer. <i>(Secondary role)</i></li>\n </ul>\n <p class='text-left'>The secondary role can be any layer or modifier.</p>","true","620")},function(e,t){e(t,7,0,r.Gb(t,15).ngClassUntouched,r.Gb(t,15).ngClassTouched,r.Gb(t,15).ngClassPristine,r.Gb(t,15).ngClassDirty,r.Gb(t,15).ngClassValid,r.Gb(t,15).ngClassInvalid,r.Gb(t,15).ngClassPending),e(t,22,0,r.Gb(t,24).placement)})}function my(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"div",[["class","alert alert-warning remap-warning"],["role","alert"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n You're about to remap a modifier key only on this layer. You probably want to remap it on all layers. If so, check\n the "])),(e()(),r.ub(2,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Remap on all layers"])),(e()(),r.Ob(-1,null,[" checkbox below.\n"]))],null,null)}function gy(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,28,"div",[["class","scancode-options"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Scancode:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,15,"div",[["class","scancode-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"document:focusin"===t&&(i=!1!==r.Gb(e,8).documentClick(n)&&i),"document:click"===t&&(i=!1!==r.Gb(e,8).documentClick(n)&&i),"select"===t&&(i=!1!==o.onScancodeChange(n)&&i),i},ry,Bh)),r.tb(8,2408448,null,3,Fh,[r.t,On,r.h,[2,Nh]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],optGroupLabelField:[3,"optGroupLabelField"],optGroupOptionsField:[4,"optGroupOptionsField"],size:[5,"size"],autoActiveOnMouseEnter:[6,"autoActiveOnMouseEnter"]},{select:"select"}),r.Mb(335544320,1,{templateOption:0}),r.Mb(335544320,2,{templateSelectedOption:0}),r.Mb(335544320,3,{templateOptionNotFound:0}),r.Lb(1024,null,wc,function(e){return[e]},[Fh]),r.tb(13,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},null),r.Lb(2048,null,Mc,null,[_p]),r.tb(15,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(0,[[1,2]],null,1,null,fy)),r.tb(18,16384,null,0,jh,[r.M],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","330"],["name","question-circle"],["title","<p>Looking for a non-US character? Just pick the character of the desired key according to the US layout.</p>\n <p>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.</p>"]],[[1,"data-placement",0]],null,null,yc,rc)),r.tb(23,114688,null,0,nc,[],{name:[0,"name"]},null),r.tb(24,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"keyup"===t&&(i=!1!==r.Gb(e,27).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==r.Gb(e,27).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==r.Gb(e,27).onFocusOut()&&i),"capture"===t&&(i=!1!==o.onKeysCapture(n)&&i),i},ay,oy)),r.tb(27,49152,null,0,iy,[Ud,L.m],null,{capture:"capture"}),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(30,0,null,null,19,"div",[["class","modifier-options"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Modifiers:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(35,0,null,null,13,"div",[["class","btn-toolbar modifiers"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(37,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__left"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,dy)),r.tb(40,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(43,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,hy)),r.tb(46,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,by)),r.tb(52,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,my)),r.tb(55,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(57,0,null,null,9,"div",[["class","disabled-state--text"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(59,0,null,null,0,"i",[["class","fa fa-info-circle"]],null,null,null,null,null)),(e()(),r.Ob(-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()(),r.ub(61,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Layer action"])),(e()(),r.Ob(-1,null,[" to "])),(e()(),r.ub(64,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["None"])),(e()(),r.Ob(-1,null,[".\n"])),(e()(),r.Ob(-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,"<p>Looking for a non-US character? Just pick the character of the desired key according to the US layout.</p>\n <p>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.</p>","true","330"),e(t,40,0,n.leftModifiers,n.modifiersTrackBy),e(t,46,0,n.rightModifiers,n.modifiersTrackBy),e(t,52,0,n.secondaryRoleEnabled),e(t,55,0,n.warningVisible)},function(e,t){e(t,7,0,r.Gb(t,15).ngClassUntouched,r.Gb(t,15).ngClassTouched,r.Gb(t,15).ngClassPristine,r.Gb(t,15).ngClassDirty,r.Gb(t,15).ngClassValid,r.Gb(t,15).ngClassInvalid,r.Gb(t,15).ngClassPending),e(t,22,0,r.Gb(t,24).placement)})}var vy=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=$o.LayerName.mod,t}return N.c(t,e),t.prototype.ngOnChanges=function(e){e.defaultKeyAction&&this.fromKeyAction(this.defaultKeyAction),e.currentLayer&&(this.isNotBase=this.currentLayer>0),this.validAction.emit(!this.isNotBase)},t.prototype.keyActionValid=function(){return!this.isNotBase},t.prototype.fromKeyAction=function(e){if(!(e instanceof $o.SwitchLayerAction))return!1;var t=e;switch(t.switchLayerMode){case $o.SwitchLayerMode.holdAndDoubleTapToggle:this.toggle="active",this.lockLayerWhenDoubleTapping=!0;break;case $o.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 $o.SwitchLayerAction;if(e.switchLayerMode="toggle"===this.toggle?$o.SwitchLayerMode.toggle:!this.allowLayerDoubleTap||this.lockLayerWhenDoubleTapping?$o.SwitchLayerMode.holdAndDoubleTapToggle:$o.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}(sy),ky=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;margin:0 -5px}.no-base[_nghost-%COMP%]{justify-content:center}[_nghost-%COMP%] > select[_ngcontent-%COMP%], [_nghost-%COMP%] > span[_ngcontent-%COMP%]{margin:0 5px;display:flex;align-items:center}select[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #aaa;border-radius:4px;padding:4px 20px 4px 8px}"]],data:{}});function _y(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),r.tb(1,147456,null,0,Jc,[r.k,r.E,[8,null]],{value:[0,"value"]},null),r.tb(2,147456,null,0,Xc,[r.k,r.E,[8,null]],{value:[0,"value"]},null),(e()(),r.Ob(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 wy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),r.tb(1,147456,null,0,Jc,[r.k,r.E,[8,null]],{value:[0,"value"]},null),r.tb(2,147456,null,0,Xc,[r.k,r.E,[8,null]],{value:[0,"value"]},null),(e()(),r.Ob(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 Oy(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["layer by tapping this key."]))],null,null)}function Ay(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["layer by holding this key."]))],null,null)}function Cy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,14,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"change"===t&&(i=!1!==r.Gb(e,7).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r.Gb(e,7).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.lockLayerWhenDoubleTapping=n)&&i),i},null,null)),r.tb(7,16384,null,0,Oc,[r.E,r.k],null,null),r.Lb(1024,null,wc,function(e){return[e]},[Oc]),r.tb(9,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(11,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" Lock layer when double tapping this key.\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,9,0,t.component.lockLayerWhenDoubleTapping)},function(e,t){e(t,6,0,r.Gb(t,11).ngClassUntouched,r.Gb(t,11).ngClassTouched,r.Gb(t,11).ngClassPristine,r.Gb(t,11).ngClassDirty,r.Gb(t,11).ngClassValid,r.Gb(t,11).ngClassInvalid,r.Gb(t,11).ngClassPending)})}function Ty(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,32,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,26,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.toggleChanged(n.target.value)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,_y)),r.tb(8,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["the"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.layerChanged(n.target.value)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,wy)),r.tb(17,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,8,"span",[],null,null,null,null,null)),r.tb(21,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Oy)),r.tb(24,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ay)),r.tb(27,16384,null,0,ce,[r.P,r.M,ae],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Cy)),r.tb(32,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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 xy(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Layer switching is only possible from the base layer. "])),(e()(),r.Ob(-1,null,["\n"]))],null,null)}function Sy(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,Ty)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,xy)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,!n.isNotBase),e(t,4,0,n.isNotBase)},null)}var My=function(e){function t(){var t=e.call(this)||this;return t.MouseActionParam=$o.MouseActionParam,t.selectedPageIndex=0,t.pages=["Move","Scroll","Click","Speed"],t}return N.c(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 $o.MouseAction))return!1;var t=e;switch(this.mouseActionParam=t.mouseAction,t.mouseAction===$o.MouseActionParam.moveUp&&(this.selectedPageIndex=0),t.mouseAction){case $o.MouseActionParam.moveDown:case $o.MouseActionParam.moveUp:case $o.MouseActionParam.moveLeft:case $o.MouseActionParam.moveRight:this.selectedPageIndex=0;break;case $o.MouseActionParam.scrollDown:case $o.MouseActionParam.scrollUp:case $o.MouseActionParam.scrollLeft:case $o.MouseActionParam.scrollRight:this.selectedPageIndex=1;break;case $o.MouseActionParam.leftClick:case $o.MouseActionParam.middleClick:case $o.MouseActionParam.rightClick:case $o.MouseActionParam.button4:case $o.MouseActionParam.button5:case $o.MouseActionParam.button6:case $o.MouseActionParam.button7:case $o.MouseActionParam.button8:this.selectedPageIndex=2;break;case $o.MouseActionParam.decelerate:case $o.MouseActionParam.accelerate:this.selectedPageIndex=3;break;default:return!1}return!0},t.prototype.toKeyAction=function(){var e=new $o.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}(sy),Ey=r.sb({encapsulation:0,styles:[['[_nghost-%COMP%]{display:flex}.popover-content[_nghost-%COMP%]{padding:10px;display:flex;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--click[_ngcontent-%COMP%] .additional-keys[_ngcontent-%COMP%]{display:inline-block;margin-top:1rem}.mouse__config--click[_ngcontent-%COMP%] .additional-keys[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]:first-child .btn[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}.mouse__config--click[_ngcontent-%COMP%] .additional-keys[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]:last-child .btn[_ngcontent-%COMP%]{border-top:0;border-top-left-radius:0;border-top-right-radius:0}.mouse__config--click[_ngcontent-%COMP%] .additional-keys[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%]:last-child .btn[_ngcontent-%COMP%]:last-child{right:1px}.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 Py(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,4,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.changePage(e.context.index)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"a",[],null,null,null,null,null)),(e()(),r.Ob(3,null,[" ",""])),(e()(),r.Ob(-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 Iy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,35,"div",[["class","mouse__config mouse__config--move text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.moveUp)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,0,"i",[["class","fa fa-arrow-up"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.moveLeft)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,0,"i",[["class","fa fa-arrow-left"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.moveRight)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,0,"i",[["class","fa fa-arrow-right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.moveDown)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,0,"i",[["class","fa fa-arrow-down"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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 jy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,35,"div",[["class","mouse__config mouse__config--scroll text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.scrollUp)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,0,"i",[["class","fa fa-angle-double-up"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.scrollLeft)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,0,"i",[["class","fa fa-angle-double-left"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.scrollRight)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,0,"i",[["class","fa fa-angle-double-right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.scrollDown)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,0,"i",[["class","fa fa-angle-double-down"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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 Ry(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,22,"div",[["class","additional-keys"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.button4)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Button 4"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.button5)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Button 5"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.button6)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Button 6"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,7,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(16,0,null,null,1,"button",[["class","btn btn-default col-xs-6"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.button7)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Button 7"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,1,"button",[["class","btn btn-default col-xs-6"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.button8)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Button 8"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.button4),e(t,7,0,n.mouseActionParam===n.MouseActionParam.button5),e(t,10,0,n.mouseActionParam===n.MouseActionParam.button6),e(t,16,0,n.mouseActionParam===n.MouseActionParam.button7),e(t,19,0,n.mouseActionParam===n.MouseActionParam.button8)})}function Ly(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,16,"div",[["class","mouse__config mouse__config--click"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.leftClick)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Left"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.middleClick)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Middle"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.rightClick)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Right"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ry)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,15,0,t.component.extraMouseButtonsSupported)},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 Ny(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,22,"div",[["class","mouse__config mouse__config--speed text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,4,"div",[["class","help-text--mouse-speed text-left"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Press this key along with mouse movement/scrolling to accelerate/decelerate its speed."])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,13,"div",[["class","btn-group btn-group-lg"],["role","group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.decelerate)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n -\n "])),(e()(),r.ub(12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Decelerate"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(16,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseActionParam(i.MouseActionParam.accelerate)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n +\n "])),(e()(),r.ub(18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Accelerate"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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 Dy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "]))],null,null)}function Uy(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,7,"div",[["class","mouse-action col-sm-4"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,4,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Py)),r.tb(5,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(9,0,null,null,17,"div",[["class","details col-sm-8"]],null,null,null,null,null)),r.tb(10,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Iy)),r.tb(13,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,jy)),r.tb(16,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ly)),r.tb(19,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ny)),r.tb(22,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Dy)),r.tb(25,16384,null,0,ce,[r.P,r.M,ae],null,null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-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 Fy=['[_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:flex;flex-direction:row-reverse}.flex-button[_ngcontent-%COMP%]{align-self:flex-end}'],Ky=function(){return function(){var e=this;this.valid=new r.m,this.validate=function(){return e.valid.emit(e.isMacroValid())}}}(),By=/[^\x00-\x7F]/g,Vy=function(e){function t(){var t=e.call(this)||this;return t.isMacroValid=function(){return!!t.input.nativeElement.value},t.init=function(){t.macroAction||(t.macroAction=new $o.TextMacroAction)},t}return N.c(t,e),t.prototype.ngOnInit=function(){this.init()},t.prototype.ngAfterViewInit=function(){this.input.nativeElement.focus()},t.prototype.onTextChange=function(){this.init(),this.macroAction.text=this.input.nativeElement.value},t.prototype.onKeydown=function(e){new RegExp(By).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"),r=n&&n.replace(By,"")||"";if(0!==r.length){var i=t.value||"",o=i.substr(0,t.selectionStart),l=t.selectionEnd,u=i.substr(t.selectionEnd);t.value=o+r+u,t.selectionStart=t.selectionEnd=l+r.length-(0===l?0:1),this.macroAction.text=t.value}},t}(Ky),Gy=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;flex-direction:column;position:relative}.macro__text-input[_ngcontent-%COMP%]{width:100%;min-height:10rem;margin-bottom:1rem}"]],data:{}});function Hy(e){return r.Qb(0,[r.Mb(671088640,1,{input:0}),(e()(),r.ub(1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Type text"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0,i=e.component;return"keydown"===t&&(r=!1!==i.onKeydown(n)&&r),"change"===t&&(r=!1!==i.onTextChange()&&r),"keyup"===t&&(r=!1!==i.validate()&&r),"paste"===t&&(r=!1!==i.onPaste(n)&&r),r},null,null)),(e()(),r.Ob(7,null,["",""])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,7,0,null==n.macroAction?null:n.macroAction.text)})}var $y=function(e){function t(){var t=e.call(this)||this;return t.keymapOptions=[],t}return N.c(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 $o.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 $o.SwitchKeymapAction;return e.keymapAbbreviation=this.selectedKeymap.abbreviation,e},t}(sy),zy=function(e){function t(t){var n=e.call(this)||this;return n.subscription=t.select(Ku).subscribe(function(e){return n.macros=e}),n.macroOptions=[],n.selectedMacroIndex=0,n}return N.c(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 $o.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 $o.PlayMacroAction;return e.macroId=this.macros[this.selectedMacroIndex].id,e},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}(sy),Qy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N.c(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}(sy),Wy=function(e){return e[e.Tap=0]="Tap",e[e.Press=1]="Press",e[e.Release=2]="Release",e}({}),qy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TabName=Wy,t.isMacroValid=function(){var e=t.getKeyMacroAction();return!!e.scancode||!!e.modifierMask},t}return N.c(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new $o.KeyMacroAction),this.defaultKeyAction=new $o.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===$o.MacroKeySubAction.press?Wy.Press:e.action===$o.MacroKeySubAction.release?Wy.Release:void 0:Wy.Tap},t.prototype.getActionType=function(e){switch(e){case Wy.Tap:return $o.MacroKeySubAction.tap;case Wy.Press:return $o.MacroKeySubAction.press;case Wy.Release:return $o.MacroKeySubAction.release;default:throw new Error("Invalid tab type")}},t.prototype.getKeyMacroAction=function(){var e=new $o.KeyMacroAction(this.keypressTab.toKeyAction());return e.action=this.getActionType(this.activeTab),e},t}(Ky),Jy=r.sb({encapsulation:0,styles:[Fy,[".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 Yy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Tap key"]))],null,null)}function Zy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Press key"]))],null,null)}function Xy(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Release key"]))],null,null)}function eb(e){return r.Qb(0,[r.Mb(402653184,1,{keypressTab:0}),(e()(),r.ub(1,0,null,null,58,"div",[["class","col-xs-12 macro-key__container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,37,"div",[["class","col-xs-3 macro-key__types"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,34,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,[["keyMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Tap)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Tap key"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(18,0,[["keyHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Press)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Press key"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(29,0,[["keyRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Release)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(31,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(33,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(35,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Release key"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(42,0,null,null,16,"div",[["class","col-xs-9 macro-key__action-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(44,0,null,null,13,"div",[["class","macro-key__action"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Yy)),r.tb(47,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Zy)),r.tb(50,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Xy)),r.tb(53,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(55,0,null,null,1,"keypress-tab",[],null,[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.validate()&&r),r},gy,py)),r.tb(56,573440,[[1,4],["keypressTab",4]],0,cy,[Wf,r.h],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,47,0,n.activeTab===n.TabName.Tap),e(t,50,0,n.activeTab===n.TabName.Press),e(t,53,0,n.activeTab===n.TabName.Release),e(t,56,0,n.defaultKeyAction,!1)},function(e,t){var n=t.component;e(t,7,0,n.activeTab===n.TabName.Tap),e(t,18,0,n.activeTab===n.TabName.Press),e(t,29,0,n.activeTab===n.TabName.Release)})}var tb=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}({}),nb=function(e){function t(){var t=e.call(this)||this;return t.MouseButtons=$o.MouseButtons,t.TabName=tb,t.isMacroValid=function(){switch(t.macroAction.constructor){case $o.MoveMouseMacroAction:case $o.ScrollMouseMacroAction:var e=t.macroAction,n=e.x,r=e.y;return null!=n&&null!=r&&(0!==n||0!==r)&&n<1e4&&n>-1e4&&r<1e4&&r>-1e4;case $o.MouseButtonMacroAction:return!!t.macroAction.mouseButtonsMask;default:return!0}},t.buttonLabels=["Left","Middle","Right"],t.selectedButtons=Array(t.buttonLabels.length).fill(!1),t}return N.c(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new $o.MouseButtonMacroAction,this.macroAction.action=$o.MacroMouseSubAction.click);var e=this.getTabName(this.macroAction);this.selectTab(e),[tb.Click,tb.Hold,tb.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 tb.Scroll:this.macroAction=new $o.ScrollMouseMacroAction;break;case tb.Move:this.macroAction=new $o.MoveMouseMacroAction;break;default:this.macroAction=new $o.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 tb.Click:return $o.MacroMouseSubAction.click;case tb.Hold:return $o.MacroMouseSubAction.hold;case tb.Release:return $o.MacroMouseSubAction.release;default:throw new Error("Invalid tab name: "+tb[e])}},t.prototype.getTabName=function(e){if(e instanceof $o.MouseButtonMacroAction){if(!e.action||e.isOnlyClickAction())return tb.Click;if(e.isOnlyHoldAction())return tb.Hold;if(e.isOnlyReleaseAction())return tb.Release}else{if(e instanceof $o.MoveMouseMacroAction)return tb.Move;if(e instanceof $o.ScrollMouseMacroAction)return tb.Scroll}return tb.Move},t}(Ky),rb=r.sb({encapsulation:0,styles:[Fy,[".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 ib(e){return r.Qb(0,[(e()(),r.ub(0,0,[["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Move mouse pointer"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"label",[["for","move-mouse-x"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["X:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,13)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,13).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,13)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,13)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r.Gb(e,14).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r.Gb(e,14).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,14).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.macroAction.x=n)&&i),"keyup"===t&&(i=!1!==o.validate()&&i),i},null,null)),r.tb(13,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.tb(14,16384,null,0,Vc,[r.E,r.k],null,null),r.tb(15,540672,null,0,Op,[],{maxlength:[0,"maxlength"]},null),r.Lb(1024,null,Rc,function(e){return[e]},[Op]),r.Lb(1024,null,wc,function(e,t){return[e,t]},[Cc,Vc]),r.tb(18,671744,null,0,_p,[[8,null],[6,Rc],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(20,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" pixels\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(25,0,null,null,1,"label",[["for","move-mouse-y"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Y:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,29)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,29).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,29)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,29)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r.Gb(e,30).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r.Gb(e,30).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,30).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.macroAction.y=n)&&i),"keyup"===t&&(i=!1!==o.validate()&&i),i},null,null)),r.tb(29,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.tb(30,16384,null,0,Vc,[r.E,r.k],null,null),r.tb(31,540672,null,0,Op,[],{maxlength:[0,"maxlength"]},null),r.Lb(1024,null,Rc,function(e){return[e]},[Op]),r.Lb(1024,null,wc,function(e,t){return[e,t]},[Cc,Vc]),r.tb(34,671744,null,0,_p,[[8,null],[6,Rc],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(36,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" pixels\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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,r.Gb(t,15).maxlength?r.Gb(t,15).maxlength:null,r.Gb(t,20).ngClassUntouched,r.Gb(t,20).ngClassTouched,r.Gb(t,20).ngClassPristine,r.Gb(t,20).ngClassDirty,r.Gb(t,20).ngClassValid,r.Gb(t,20).ngClassInvalid,r.Gb(t,20).ngClassPending),e(t,28,0,r.Gb(t,31).maxlength?r.Gb(t,31).maxlength:null,r.Gb(t,36).ngClassUntouched,r.Gb(t,36).ngClassTouched,r.Gb(t,36).ngClassPristine,r.Gb(t,36).ngClassDirty,r.Gb(t,36).ngClassValid,r.Gb(t,36).ngClassInvalid,r.Gb(t,36).ngClassPending)})}function ob(e){return r.Qb(0,[(e()(),r.ub(0,0,[["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Scroll with mouse"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"label",[["for","scroll-mouse-x"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["X:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,13)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,13).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,13)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,13)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r.Gb(e,14).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r.Gb(e,14).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,14).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.macroAction.x=n)&&i),"keyup"===t&&(i=!1!==o.validate()&&i),i},null,null)),r.tb(13,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.tb(14,16384,null,0,Vc,[r.E,r.k],null,null),r.tb(15,540672,null,0,Op,[],{maxlength:[0,"maxlength"]},null),r.Lb(1024,null,Rc,function(e){return[e]},[Op]),r.Lb(1024,null,wc,function(e,t){return[e,t]},[Cc,Vc]),r.tb(18,671744,null,0,_p,[[8,null],[6,Rc],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(20,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" pixels\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(25,0,null,null,1,"label",[["for","scroll-mouse-y"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Y:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,29)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,29).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,29)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,29)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r.Gb(e,30).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r.Gb(e,30).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,30).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.macroAction.y=n)&&i),"keyup"===t&&(i=!1!==o.validate()&&i),i},null,null)),r.tb(29,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.tb(30,16384,null,0,Vc,[r.E,r.k],null,null),r.tb(31,540672,null,0,Op,[],{maxlength:[0,"maxlength"]},null),r.Lb(1024,null,Rc,function(e){return[e]},[Op]),r.Lb(1024,null,wc,function(e,t){return[e,t]},[Cc,Vc]),r.tb(34,671744,null,0,_p,[[8,null],[6,Rc],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(36,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" pixels\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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,r.Gb(t,15).maxlength?r.Gb(t,15).maxlength:null,r.Gb(t,20).ngClassUntouched,r.Gb(t,20).ngClassTouched,r.Gb(t,20).ngClassPristine,r.Gb(t,20).ngClassDirty,r.Gb(t,20).ngClassValid,r.Gb(t,20).ngClassInvalid,r.Gb(t,20).ngClassPending),e(t,28,0,r.Gb(t,31).maxlength?r.Gb(t,31).maxlength:null,r.Gb(t,36).ngClassUntouched,r.Gb(t,36).ngClassTouched,r.Gb(t,36).ngClassPristine,r.Gb(t,36).ngClassDirty,r.Gb(t,36).ngClassValid,r.Gb(t,36).ngClassInvalid,r.Gb(t,36).ngClassPending)})}function lb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Click mouse button"]))],null,null)}function ub(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Hold mouse button"]))],null,null)}function ab(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Release mouse button"]))],null,null)}function sb(e){return r.Qb(0,[(e()(),r.ub(0,0,[["tab",1]],null,22,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,lb)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ub)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ab)),r.tb(9,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,10,"div",[["class","btn-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseClick(i.MouseButtons.Left)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Left\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(16,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseClick(i.MouseButtons.Middle)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Middle\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.setMouseClick(i.MouseButtons.Right)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Right\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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)},function(e,t){var n=t.component;e(t,13,0,n.hasButton(n.MouseButtons.Left)),e(t,16,0,n.hasButton(n.MouseButtons.Middle)),e(t,19,0,n.hasButton(n.MouseButtons.Right))})}function cb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,75,"div",[["class","col-xs-12 macro-mouse__container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,59,"div",[["class","col-xs-3 macro-mouse__types"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,56,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,[["mouseMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Move)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Move pointer"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,[["mouseScroll",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Scroll)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(19,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(21,0,null,null,0,"i",[["class","fa fa-arrows-v"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Scroll"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,[["mouseClick",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Click)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(30,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(34,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Click button"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(39,0,[["mouseHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Hold)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(41,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(43,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(45,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Hold button"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(50,0,[["mouseRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Release)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(52,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(54,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(56,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Release button"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(63,0,null,null,11,"div",[["class","col-xs-9 macro-mouse__actions"]],null,null,null,null,null)),r.tb(64,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ib)),r.tb(67,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ob)),r.tb(70,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,sb)),r.tb(73,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,64,0,n.activeTab),e(t,67,0,n.TabName.Move),e(t,70,0,n.TabName.Scroll),e(t,73,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,6,0,n.activeTab===n.TabName.Move),e(t,17,0,n.activeTab===n.TabName.Scroll),e(t,28,0,n.activeTab===n.TabName.Click),e(t,39,0,n.activeTab===n.TabName.Hold),e(t,50,0,n.activeTab===n.TabName.Release)})}var pb=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 N.c(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 $o.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}(Ky),fb=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;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 db(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"button",[["class","btn btn-sm btn-default"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.setDelay(e.context.$implicit)&&r),r},null,null)),(e()(),r.Ob(1,null,["","s\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function hb(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,39,"div",[["class","macro-delay"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,4,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Delay"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,12,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,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,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,18)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,18).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,18)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,18)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==r.Gb(e,19).onChange(n.target.value)&&i),"input"===t&&(i=!1!==r.Gb(e,19).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,19).onTouched()&&i),"ngModelChange"===t&&(i=!1!==o.setDelay(r.Gb(e,17).value)&&i),i},null,null)),r.tb(18,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.tb(19,16384,null,0,Vc,[r.E,r.k],null,null),r.Lb(1024,null,wc,function(e,t){return[e,t]},[Cc,Vc]),r.tb(21,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(23,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n seconds\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,10,"div",[["class","row macro-delay__presets"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(30,0,null,null,7,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Choose a preset"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,db)),r.tb(36,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,21,0,n.delay),e(t,36,0,n.presets)},function(e,t){e(t,17,0,r.Gb(t,23).ngClassUntouched,r.Gb(t,23).ngClassTouched,r.Gb(t,23).ngClassPristine,r.Gb(t,23).ngClassDirty,r.Gb(t,23).ngClassValid,r.Gb(t,23).ngClassInvalid,r.Gb(t,23).ngClassPending)})}var yb=function(e){return e[e.Keypress=0]="Keypress",e[e.Text=1]="Text",e[e.Mouse=2]="Mouse",e[e.Delay=3]="Delay",e}({}),bb=function(){function e(){var e=this;this.save=new r.m,this.cancel=new r.m,this.TabName=yb,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 qy?this.selectedTab.getKeyMacroAction():this.selectedTab.macroAction;this.save.emit(e)}catch(t){console.error(t)}},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 $o.DelayMacroAction?yb.Delay:e instanceof $o.TextMacroAction?yb.Text:e instanceof $o.KeyMacroAction?yb.Keypress:e instanceof $o.MouseButtonMacroAction||e instanceof $o.MoveMouseMacroAction||e instanceof $o.ScrollMouseMacroAction?yb.Mouse:void 0},e.prototype.updateEditableMacroAction=function(){var e=this.macroAction?this.macroAction:new $o.TextMacroAction;this.editableMacroAction=$o.MacroActionHelper.createMacroAction(e)},e}(),mb=r.sb({encapsulation:0,styles:[Fy],data:{}});function gb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-text-tab",[["class","macro__text"]],null,[[null,"valid"]],function(e,t,n){var r=!0;return"valid"===t&&(r=!1!==e.component.onValid(n)&&r),r},Hy,Gy)),r.tb(1,4308992,[[1,4],["tab",4]],0,Vy,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function vb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-key-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var r=!0;return"valid"===t&&(r=!1!==e.component.onValid(n)&&r),r},eb,Jy)),r.tb(1,114688,[[1,4],["tab",4]],0,qy,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function kb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-mouse-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var r=!0;return"valid"===t&&(r=!1!==e.component.onValid(n)&&r),r},cb,rb)),r.tb(1,638976,[[1,4],["tab",4]],0,nb,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function _b(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-delay-tab",[["class","macro__delay"]],null,[[null,"valid"]],function(e,t,n){var r=!0;return"valid"===t&&(r=!1!==e.component.onValid(n)&&r),r},hb,fb)),r.tb(1,114688,[[1,4],["tab",4]],0,pb,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function wb(e){return r.Qb(0,[r.Mb(671088640,1,{selectedTab:0}),(e()(),r.ub(1,0,null,null,85,"div",[["class","action--editor"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,67,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,48,"div",[["class","col-lg-3 editor__tab-links"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,45,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,[["macroText",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Text)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Type text"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,[["macroKeypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Keypress)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Key action"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(31,0,[["macroMouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Mouse)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(33,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(35,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(37,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Mouse action"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(42,0,[["macroDelay",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==i.selectTab(i.TabName.Delay)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(44,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(46,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Delay"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(55,0,null,null,14,"div",[["class","col-xs-12 col-lg-9 editor__tabs"]],null,null,null,null,null)),r.tb(56,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,gb)),r.tb(59,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,vb)),r.tb(62,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,kb)),r.tb(65,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,_b)),r.tb(68,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(72,0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(74,0,null,null,10,"div",[["class","col-xs-12 flex-button-wrapper editor__actions-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(76,0,null,null,7,"div",[["class","editor__actions"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(78,0,null,null,1,"button",[["class","btn btn-sm btn-default flex-button"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onCancelClick()&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Cancel "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0;return"click"===t&&(r=!1!==e.component.onSaveClick()&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Save "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-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 Ob=function(){function e(e){this.mapper=e,this.save=new r.m,this.cancel=new r.m,this.edit=new r.m,this.delete=new r.m,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 $o.DelayMacroAction)this.iconName="clock",this.title="Delay of "+((e=this.macroAction).delay>0?e.delay/1e3:0)+"s";else if(this.macroAction instanceof $o.TextMacroAction){var e=this.macroAction;this.iconName="font",this.title="Write text: "+e.text}else this.macroAction instanceof $o.KeyMacroAction?this.setKeyActionContent(e=this.macroAction):this.macroAction instanceof $o.MouseButtonMacroAction?this.setMouseButtonActionContent(e=this.macroAction):this.macroAction instanceof $o.MoveMouseMacroAction||this.macroAction instanceof $o.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=$o.KeyModifiers.leftCtrl;n<=$o.KeyModifiers.rightGui;n<<=1)e.isModifierActive(n)&&(this.title+=" "+this.mapper.getOsSpecificModifierTextByValue(n))}else this.title="Invalid keypress"},e.prototype.setMouseMoveScrollActionContent=function(e){var t,n;e instanceof $o.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?"rightward":"leftward"),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=e.getMouseButtons(),n=[];t.forEach(function(e,t){e&&$o.MouseButtons[t]&&n.push($o.MouseButtons[t])}),this.title+=n.join(", ")},e.prototype.setOverflow=function(e){var t=this;setTimeout(function(){t.overflow=e},600)},e}(),Ab=r.sb({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:flex;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:flex;flex:1}.action--item[_ngcontent-%COMP%]:first-child{border-radius:0}.action--item.is-editing[_ngcontent-%COMP%]{background:#f5f5f5}.action--item--wrap[_ngcontent-%COMP%]{justify-content:space-between}.action--item--wrap.pointer[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.action--title[_ngcontent-%COMP%]{display:flex;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 Cb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical action--movable"]],null,null,null,null,null))],null,null)}function Tb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"icon",[["name","pencil"]],null,null,null,yc,rc)),r.tb(1,114688,null,0,nc,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"pencil")},null)}function xb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"icon",[["name","trash"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.deleteAction()&&r),r},yc,rc)),r.tb(1,114688,null,0,nc,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"trash")},null)}function Sb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"macro-action-editor",[["class","macro-action-editor"]],null,[[null,"cancel"],[null,"save"]],function(e,t,n){var r=!0,i=e.component;return"cancel"===t&&(r=!1!==i.cancelEdit()&&r),"save"===t&&(r=!1!==i.saveEditedAction(n)&&r),r},wb,mb)),r.tb(1,638976,null,0,bb,[],{macroAction:[0,"macroAction"]},{save:"save",cancel:"cancel"}),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.macroAction)},null)}function Mb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,19,"div",[["class","list-group-item action--item"]],[[2,"is-editing",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Cb)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,10,"div",[["class","action--item--wrap"]],[[2,"pointer",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.editAction()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,1,"icon",[],null,null,null,yc,rc)),r.tb(8,114688,null,0,nc,[],{name:[0,"name"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,1,"div",[["class","action--title"]],null,null,null,null,null)),(e()(),r.Ob(11,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Tb)),r.tb(14,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,xb)),r.tb(18,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(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()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Sb)),r.tb(24,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-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 Eb=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%]{display:flex;margin-top:2px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:7px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] ngx-select[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%]{display:flex;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 Pb(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" No macros are available to choose from. Create a macro first! "])),(e()(),r.Ob(-1,null,["\n"]))],null,null)}function Ib(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.ub(1,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),r.Ob(-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."]))],null,null)}function jb(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,10,"span",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(3,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(4,{"indent-dropdown-item":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(7,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),r.Ob(10,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,4,0,"-1"!==t.context.$implicit.data.id);e(t,3,0,n)},function(e,t){e(t,7,0,t.context.$implicit.text),e(t,10,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function Rb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"macro-item",[["class","macro-item"]],null,null,null,Mb,Ab)),r.tb(1,638976,null,0,Ob,[Wf],{macroAction:[0,"macroAction"],editable:[1,"editable"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,1,0,t.context.$implicit,!1)},null)}function Lb(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ib)),r.tb(2,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,18,"div",[["class","macro-selector"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Play macro: "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,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,o=e.component;return"document:focusin"===t&&(i=!1!==r.Gb(e,10).documentClick(n)&&i),"document:click"===t&&(i=!1!==r.Gb(e,10).documentClick(n)&&i),"select"===t&&(i=!1!==o.onChange(n)&&i),i},ry,Bh)),r.tb(10,2408448,null,3,Fh,[r.t,On,r.h,[2,Nh]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],size:[3,"size"],autoActiveOnMouseEnter:[4,"autoActiveOnMouseEnter"]},{select:"select"}),r.Mb(335544320,1,{templateOption:0}),r.Mb(335544320,2,{templateSelectedOption:0}),r.Mb(335544320,3,{templateOptionNotFound:0}),r.Lb(1024,null,wc,function(e){return[e]},[Fh]),r.tb(15,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},null),r.Lb(2048,null,Mc,null,[_p]),r.tb(17,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(0,[[1,2]],null,1,null,jb)),r.tb(20,16384,null,0,jh,[r.M],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,7,"div",[["class","macro-action-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Rb)),r.tb(29,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,!n.macroPlaybackSupported),e(t,10,0,n.macroOptions,"id","text","small",!1),e(t,15,0,null==n.macroOptions[n.selectedMacroIndex]?null:n.macroOptions[n.selectedMacroIndex].id),e(t,29,0,n.macros[n.selectedMacroIndex].macroActions)},function(e,t){e(t,9,0,r.Gb(t,17).ngClassUntouched,r.Gb(t,17).ngClassTouched,r.Gb(t,17).ngClassPristine,r.Gb(t,17).ngClassDirty,r.Gb(t,17).ngClassValid,r.Gb(t,17).ngClassInvalid,r.Gb(t,17).ngClassPending)})}function Nb(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,Pb)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Lb)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-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 Db=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;margin-top:2px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:7px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] ngx-select[_ngcontent-%COMP%]{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:flex}.empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;position:relative}"]],data:{}});function Ub(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" No keymaps are available to choose from. Create a keymap first! "])),(e()(),r.Ob(-1,null,["\n"]))],null,null)}function Fb(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,10,"span",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(3,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(4,{"indent-dropdown-item":0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(7,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"span",[["class","scancode--searchterm"]],null,null,null,null,null)),(e()(),r.Ob(10,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,4,0,"-1"!==t.context.$implicit.data.id);e(t,3,0,n)},function(e,t){e(t,7,0,t.context.$implicit.text),e(t,10,0,null==t.context.$implicit.data.additional?null:t.context.$implicit.data.additional.explanation)})}function Kb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"div",[["class","empty"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"img",[["src","assets/images/base-layer--blank.svg"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "]))],null,null)}function Bb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"svg-keyboard",[],null,null,null,vh,bh)),r.tb(1,638976,null,0,yh,[hh,On],{moduleConfig:[0,"moduleConfig"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.selectedKeymap.layers[0].modules)},null)}function Vb(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Switch to keymap:"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"document:focusin"===t&&(i=!1!==r.Gb(e,7).documentClick(n)&&i),"document:click"===t&&(i=!1!==r.Gb(e,7).documentClick(n)&&i),"select"===t&&(i=!1!==o.onChange(n)&&i),i},ry,Bh)),r.tb(7,2408448,null,3,Fh,[r.t,On,r.h,[2,Nh]],{items:[0,"items"],optionValueField:[1,"optionValueField"],optionTextField:[2,"optionTextField"],size:[3,"size"],autoActiveOnMouseEnter:[4,"autoActiveOnMouseEnter"]},{select:"select"}),r.Mb(335544320,1,{templateOption:0}),r.Mb(335544320,2,{templateSelectedOption:0}),r.Mb(335544320,3,{templateOptionNotFound:0}),r.Lb(1024,null,wc,function(e){return[e]},[Fh]),r.tb(12,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{model:[0,"model"]},null),r.Lb(2048,null,Mc,null,[_p]),r.tb(14,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(0,[[1,2]],null,1,null,Fb)),r.tb(17,16384,null,0,jh,[r.M],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(21,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Kb)),r.tb(24,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Bb)),r.tb(27,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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,r.Gb(t,14).ngClassUntouched,r.Gb(t,14).ngClassTouched,r.Gb(t,14).ngClassPristine,r.Gb(t,14).ngClassDirty,r.Gb(t,14).ngClassValid,r.Gb(t,14).ngClassInvalid,r.Gb(t,14).ngClassPending)})}function Gb(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,Ub)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Vb)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-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 Hb=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;justify-content:center;padding:2rem 0}"]],data:{}});function $b(e){return r.Qb(2,[(e()(),r.Ob(-1,null,["This key is unassigned and has no functionality."]))],null,null)}function zb(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&Object(Se.a)(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(Object(we.a)([t].concat(e)),new Re(n))}}var Qb=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}({}),Wb=function(){function e(e,t){this.store=e,this.cdRef=t,this.cancel=new r.m,this.remap=new r.m,this.tabName=Qb,this.leftArrow=!1,this.rightArrow=!1,this.topPosition=0,this.leftPosition=0,this.disableRemapOnAllLayer=!1,this.tabHeaders=[{tabName:Qb.Keypress,icon:"fa-keyboard-o",text:"Keypress"},{tabName:Qb.Layer,icon:"fa-clone",text:"Layer"},{tabName:Qb.Mouse,icon:"fa-mouse-pointer",text:"Mouse"},{tabName:Qb.Macro,icon:"fa-play",text:"Macro"},{tabName:Qb.Keymap,icon:"fa-keyboard-o",text:"Keymap"},{tabName:Qb.None,icon:"fa-ban",text:"None"}],this.currentKeymap$=new Oe.a(void 0),this.animationState="closed",this.keymaps$=e.select(Du).pipe(zb(this.currentKeymap$),Object(Fe.a)(function(e){var t=e[1];return e[0].filter(function(e){return t.abbreviation!==e.abbreviation})})),this.macroPlaybackSupported$=e.select(Ea),this.extraMouseButtonsSupported$=e.select(Ia)}return e.prototype.ngOnChanges=function(e){var t=this.tabHeaders[5];if(this.keyPosition&&this.wrapPosition&&(e.keyPosition||e.wrapPosition)&&this.calculatePosition(),e.defaultKeyAction){this.disableRemapOnAllLayer=!1,this.defaultKeyAction instanceof $o.KeystrokeAction?(this.keystrokeActionChange(this.defaultKeyAction),t=this.tabHeaders[0]):t=this.defaultKeyAction instanceof $o.SwitchLayerAction?this.tabHeaders[1]:this.defaultKeyAction instanceof $o.MouseAction?this.tabHeaders[2]:this.defaultKeyAction instanceof $o.PlayMacroAction?this.tabHeaders[3]:this.defaultKeyAction instanceof $o.SwitchKeymapAction?this.tabHeaders[4]:this.tabHeaders[5];for(var n=0,r=this.tabHeaders;n<r.length;n++){var i=r[n];i.disabled=t.tabName===Qb.Layer&&0!==this.currentLayer&&i.tabName!==Qb.Layer}}e.visible&&(e.visible.currentValue?(this.animationState="opened",this.selectTab(t)):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.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){e.disabled||(this.activeTab=e.tabName,e.tabName===Qb.Keypress&&this.keystrokeActionChange(this.defaultKeyAction))},e.prototype.onOverlay=function(){this.cancel.emit(void 0)},e.prototype.remapInfoChange=function(){this.selectedTab.remapInfoChanged(this.remapInfo)},e.prototype.keystrokeActionChange=function(e){this.shadowKeyAction=e;var t=e&&0===this.currentLayer&&(e.secondaryRoleAction===$o.SecondaryRoleAction.fn||e.secondaryRoleAction===$o.SecondaryRoleAction.mod||e.secondaryRoleAction===$o.SecondaryRoleAction.mouse);this.disableRemapOnAllLayer!==t&&(this.disableRemapOnAllLayer=t,t&&(this.remapInfo.remapOnAllLayer=!1),this.cdRef.markForCheck())},e.prototype.setKeyActionValidState=function(e){this.keyActionValid=e,this.cdRef.markForCheck()},e.prototype.trackTabHeader=function(e,t){return t.tabName.toString()},e.prototype.calculatePosition=function(){var e=this.wrapPosition.left+265,t=this.popoverHost.nativeElement,n=this.keyPosition.left+this.keyPosition.width/2;this.leftArrow=n<e,this.rightArrow=n+t.offsetWidth>e+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}(),qb=r.sb({encapsulation:0,styles:[['.popover[_ngcontent-%COMP%]{display:flex;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%]{transform:none;left:22px}.popover.rightArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{transform:none;right:22px;left:auto}.popover[_ngcontent-%COMP%] > .container-fluid[_ngcontent-%COMP%]{overflow:hidden}.nav-tabs[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{overflow:hidden;cursor:pointer}.nav-tabs[_ngcontent-%COMP%] > li.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.arrowCustom[_ngcontent-%COMP%]{position:absolute;top:-16px;left: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:flex}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%]{display:flex;align-items:center}.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}.pr-10[_ngcontent-%COMP%]{padding-right:10px}.popover-overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:0;top:0;left:0;z-index:1050;background:rgba(0,0,0,0);transition:background .2s ease-out,height 0s .2s linear}.popover-overlay.display[_ngcontent-%COMP%]{height:100%;background:rgba(0,0,0,.2);transition:background .2s ease-out}.popover-action-form[_ngcontent-%COMP%]{margin-top:4px}.popover-action-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:5px}.popover-action-form[_ngcontent-%COMP%] label.disabled[_ngcontent-%COMP%]{cursor:not-allowed;color:#959595}']],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 Jb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"li",[],[[2,"active",null],[2,"disabled",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectTab(e.context.$implicit)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,8,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,2,"i",[["class","fa"]],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(6,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(9,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,6,0,"fa",t.context.$implicit.icon)},function(e,t){e(t,0,0,t.component.activeTab===t.context.$implicit.tabName,t.context.$implicit.disabled),e(t,9,0,t.context.$implicit.text)})}function Yb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"keypress-tab",[["class","popover-content pr-10"]],null,[[null,"validAction"],[null,"keyActionChange"]],function(e,t,n){var r=!0,i=e.component;return"validAction"===t&&(r=!1!==i.setKeyActionValidState(n)&&r),"keyActionChange"===t&&(r=!1!==i.keystrokeActionChange(n)&&r),r},gy,py)),r.tb(1,573440,[[1,4],["tab",4]],0,cy,[Wf,r.h],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"],allowRemapOnAllKeymapWarning:[2,"allowRemapOnAllKeymapWarning"],remapInfo:[3,"remapInfo"],showLayerSwitcherInSecondaryRoles:[4,"showLayerSwitcherInSecondaryRoles"]},{validAction:"validAction",keyActionChange:"keyActionChange"})],function(e,t){var n=t.component;e(t,1,0,n.shadowKeyAction,!0,!0,n.remapInfo,0===n.currentLayer)},null)}function Zb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"layer-tab",[["class","popover-content"]],[[2,"no-base",null]],[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.setKeyActionValidState(n)&&r),r},Sy,ky)),r.tb(1,573440,[[1,4],["tab",4]],0,vy,[],{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,r.Gb(t,1).isNotBase)})}function Xb(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"mouse-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.setKeyActionValidState(n)&&r),r},Uy,Ey)),r.tb(1,573440,[[1,4],["tab",4]],0,My,[],{defaultKeyAction:[0,"defaultKeyAction"],extraMouseButtonsSupported:[1,"extraMouseButtonsSupported"]},{validAction:"validAction"}),r.Ib(131072,ye,[r.h])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,r.Pb(t,1,1,r.Gb(t,2).transform(n.extraMouseButtonsSupported$)))},null)}function em(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"macro-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.setKeyActionValidState(n)&&r),r},Nb,Eb)),r.tb(1,770048,[[1,4],["tab",4]],0,zy,[L.m],{defaultKeyAction:[0,"defaultKeyAction"],macroPlaybackSupported:[1,"macroPlaybackSupported"]},{validAction:"validAction"}),r.Ib(131072,ye,[r.h])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,r.Pb(t,1,1,r.Gb(t,2).transform(n.macroPlaybackSupported$)))},null)}function tm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"keymap-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.setKeyActionValidState(n)&&r),r},Gb,Db)),r.tb(1,573440,[[1,4],["tab",4]],0,$y,[],{defaultKeyAction:[0,"defaultKeyAction"],keymaps:[1,"keymaps"]},{validAction:"validAction"}),r.Ib(131072,ye,[r.h])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,r.Pb(t,1,1,r.Gb(t,2).transform(n.keymaps$)))},null)}function nm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"none-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var r=!0;return"validAction"===t&&(r=!1!==e.component.setKeyActionValidState(n)&&r),r},$b,Hb)),r.tb(1,114688,[[1,4],["tab",4]],0,Qy,[],null,{validAction:"validAction"})],function(e,t){e(t,1,0)},null)}function rm(e){return r.Qb(2,[r.Mb(671088640,1,{selectedTab:0}),r.Mb(671088640,2,{popoverHost:0}),(e()(),r.ub(2,0,[[2,0],["popover",1]],null,92,"div",[["class","popover"]],[[24,"@popover",0],[4,"top","px"],[4,"left","px"]],null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(4,278528,null,0,ee,[Z],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),r.Jb(5,{leftArrow:0,rightArrow:1}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,0,"div",[["class","arrowCustom"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,7,"div",[["class","popover-title menu-tabs"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,4,"ul",[["class","nav nav-tabs popover-menu"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Jb)),r.tb(14,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(18,0,null,null,20,"div",[],null,null,null,null,null)),r.tb(19,16384,null,0,ae,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Yb)),r.tb(22,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Zb)),r.tb(25,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Xb)),r.tb(28,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,em)),r.tb(31,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,tm)),r.tb(34,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,nm)),r.tb(37,278528,null,0,se,[r.P,r.M,ae],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(40,0,null,null,53,"div",[["class","popover-action"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(42,0,null,null,41,"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!==r.Gb(e,44).onSubmit(n)&&i),"reset"===t&&(i=!1!==r.Gb(e,44).onReset()&&i),i},null,null)),r.tb(43,16384,null,0,wp,[],null,null),r.tb(44,4210688,null,0,yp,[[8,null],[8,null]],null,null),r.Lb(2048,null,xc,null,[yp]),r.tb(46,16384,null,0,Ic,[[4,xc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(48,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(50,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(52,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,o=e.component;return"change"===t&&(i=!1!==r.Gb(e,53).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r.Gb(e,53).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.remapInfo.remapOnAllKeymap=n)&&i),i},null,null)),r.tb(53,16384,null,0,Oc,[r.E,r.k],null,null),r.Lb(1024,null,wc,function(e){return[e]},[Oc]),r.tb(55,671744,null,0,_p,[[2,xc],[8,null],[8,null],[6,wc]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(57,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" Remap on all keymaps\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(61,0,null,null,14,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(63,0,null,null,11,"label",[],null,null,null,null,null)),r.Lb(512,null,Z,X,[r.t,r.u,r.k,r.E]),r.tb(65,278528,null,0,ee,[Z],{ngClass:[0,"ngClass"]},null),r.Jb(66,{disabled:0}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(68,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,o=e.component;return"change"===t&&(i=!1!==r.Gb(e,69).onChange(n.target.checked)&&i),"blur"===t&&(i=!1!==r.Gb(e,69).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(o.remapInfo.remapOnAllLayer=n)&&i),"ngModelChange"===t&&(i=!1!==o.remapInfoChange()&&i),i},null,null)),r.tb(69,16384,null,0,Oc,[r.E,r.k],null,null),r.Lb(1024,null,wc,function(e){return[e]},[Oc]),r.tb(71,671744,null,0,_p,[[2,xc],[8,null],[8,null],[6,wc]],{name:[0,"name"],isDisabled:[1,"isDisabled"],model:[2,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(73,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,[" Remap on all layers\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(77,0,null,null,5,"div",[["class","d-inline-block"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(79,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","525"],["name","question-circle"],["title","<ul class='no-indent text-left'>\n <li><strong>Default behavior</strong>: Remap the key on the the current layer of the current keymap.</li>\n <li><strong>Remap on all keymaps</strong>: Remap key on the current layer of all keymaps.</li>\n <li><strong>Remap on all layers</strong>: Remap key on all layers of the current keymap.</li>\n <li><strong>Remap on all keymaps + Remap on all layers</strong>: Remap key on all layers of all keymaps.</li>\n </ul>"]],[[1,"data-placement",0]],null,null,yc,rc)),r.tb(80,114688,null,0,nc,[],{name:[0,"name"]},null),r.tb(81,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(85,0,null,null,7,"div",[["class","d-inline-block pull-right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(87,0,null,null,1,"button",[["class","btn btn-sm btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onCancelClick()&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Cancel"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(90,0,null,null,1,"button",[["class","btn btn-sm btn-primary"],["type","button"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onRemapKey()&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Remap key\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(96,0,null,null,0,"div",[["class","popover-overlay"]],[[2,"display",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onOverlay()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component,r=e(t,5,0,n.leftArrow,n.rightArrow);e(t,4,0,"popover",r),e(t,14,0,n.tabHeaders,n.trackTabHeader),e(t,19,0,n.activeTab),e(t,22,0,n.tabName.Keypress),e(t,25,0,n.tabName.Layer),e(t,28,0,n.tabName.Mouse),e(t,31,0,n.tabName.Macro),e(t,34,0,n.tabName.Keymap),e(t,37,0,n.tabName.None),e(t,55,0,"remapOnAllKeymap",n.remapInfo.remapOnAllKeymap);var i=e(t,66,0,n.disableRemapOnAllLayer);e(t,65,0,i),e(t,71,0,"remapOnAllLayer",n.disableRemapOnAllLayer,n.remapInfo.remapOnAllLayer),e(t,80,0,"question-circle"),e(t,81,0,"<ul class='no-indent text-left'>\n <li><strong>Default behavior</strong>: Remap the key on the the current layer of the current keymap.</li>\n <li><strong>Remap on all keymaps</strong>: Remap key on the current layer of all keymaps.</li>\n <li><strong>Remap on all layers</strong>: Remap key on all layers of the current keymap.</li>\n <li><strong>Remap on all keymaps + Remap on all layers</strong>: Remap key on all layers of all keymaps.</li>\n </ul>","true","525")},function(e,t){var n=t.component;e(t,2,0,n.animationState,n.topPosition,n.leftPosition),e(t,42,0,r.Gb(t,46).ngClassUntouched,r.Gb(t,46).ngClassTouched,r.Gb(t,46).ngClassPristine,r.Gb(t,46).ngClassDirty,r.Gb(t,46).ngClassValid,r.Gb(t,46).ngClassInvalid,r.Gb(t,46).ngClassPending),e(t,52,0,r.Gb(t,57).ngClassUntouched,r.Gb(t,57).ngClassTouched,r.Gb(t,57).ngClassPristine,r.Gb(t,57).ngClassDirty,r.Gb(t,57).ngClassValid,r.Gb(t,57).ngClassInvalid,r.Gb(t,57).ngClassPending),e(t,68,0,r.Gb(t,73).ngClassUntouched,r.Gb(t,73).ngClassTouched,r.Gb(t,73).ngClassPristine,r.Gb(t,73).ngClassDirty,r.Gb(t,73).ngClassValid,r.Gb(t,73).ngClassInvalid,r.Gb(t,73).ngClassPending),e(t,79,0,r.Gb(t,81).placement),e(t,90,0,!n.keyActionValid),e(t,96,0,n.visible)})}var im=function(){function e(e,t,n){this.store=e,this.mapper=t,this.element=n,this.popoverEnabled=!0,this.tooltipEnabled=!1,this.descriptionChanged=new r.m,this.currentLayer=0,this.remapInfo={remapOnAllKeymap:!1,remapOnAllLayer:!1},this.keyEditConfig={moduleId:void 0,keyId:void 0},this.tooltipData={posTop:0,posLeft:0,content:Object(_e.a)([]),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){e.keymap&&(this.popoverShown=!1,this.layers=this.keymap.layers)},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 $o.KeystrokeAction;t.scancode=e.captured.code,t.modifierMask=Ml(e.captured.left,e.captured.right),this.store.dispatch(new Yo({keymap:this.keymap,layer:this.currentLayer,module:e.moduleId,key:e.keyId,keyAction:{remapOnAllKeymap:e.shiftPressed,remapOnAllLayer:e.altPressed,action:t}}))},e.prototype.onRemap=function(e){this.store.dispatch(new Yo({keymap:this.keymap,layer:this.currentLayer,module:this.keyEditConfig.moduleId,key:this.keyEditConfig.keyId,keyAction:e})),this.hidePopover()},e.prototype.showPopover=function(e){this.keyPosition=this.keyElement.getBoundingClientRect(),this.popoverInitKeyAction=e,this.popoverShown=!0,this.popover.nativeElement.focus()},e.prototype.showTooltip=function(e,t){if(void 0!==e){var n=t.target,r=n.getBoundingClientRect(),i=this.tooltipData.posLeft,o=this.tooltipData.posTop;"g"===n.tagName&&(i=r.left+r.width/2,o=r.top+r.height),this.tooltipData={posLeft:i,posTop:o,content:this.getKeyActionContent(e),show:!0}}},e.prototype.hideTooltip=function(){this.tooltipData.show=!1},e.prototype.hidePopover=function(){this.popoverShown=!1,this.selectedKey=void 0,this.popoverInitKeyAction=null},e.prototype.selectLayer=function(e){this.currentLayer=e},e.prototype.getSelectedLayer=function(){return this.currentLayer},e.prototype.onDescriptionChanged=function(e){this.descriptionChanged.emit({description:e,abbr:this.keymap.abbreviation})},e.prototype.getKeyActionContent=function(e){if(e instanceof $o.KeystrokeAction){var t=e;if((o=[]).push({name:"Action type",value:"Keystroke"}),t.hasScancode()){var n=t.scancode.toString(),r=(this.mapper.scanCodeToText(t.scancode,t.type)||[]).join(", ");r.length>0&&(n+=" ("+r+")"),o.push({name:"Scancode",value:n})}return t.hasActiveModifier()&&o.push({name:"Modifiers",value:t.getModifierList().join(", ")}),t.hasSecondaryRoleAction()&&o.push({name:"Secondary role",value:$o.SecondaryRoleAction[t.secondaryRoleAction]}),Object(_e.a)(o)}if(e instanceof $o.MouseAction){var i=e,o=[{name:"Action type",value:"Mouse"},{name:"Action",value:Object($o.camelCaseToSentence)($o.MouseActionParam[i.mouseAction])}];return Object(_e.a)(o)}if(e instanceof $o.PlayMacroAction){var l=e;return this.store.select(Ku).pipe(Object(Fe.a)(function(e){return e.find(function(e){return e.id===l.macroId}).name}),Object(Fe.a)(function(e){return[{name:"Action type",value:"Play macro"},{name:"Macro name",value:e}]}))}if(e instanceof $o.SwitchKeymapAction){var u=e;return this.store.select(Du).pipe(Object(Fe.a)(function(e){return e.find(function(e){return e.abbreviation===u.keymapAbbreviation}).name}),Object(Fe.a)(function(e){return[{name:"Action type",value:"Switch keymap"},{name:"Keymap",value:e}]}))}if(e instanceof $o.SwitchLayerAction){var a=e;return o=[{name:"Action type",value:"Switch layer"},{name:"Layer",value:Object($o.capitalizeFirstLetter)($o.LayerName[a.layer])},{name:"Toogle",value:a.switchLayerMode===$o.SwitchLayerMode.toggle?"On":"Off"}],Object(_e.a)(o)}return Object(_e.a)([])},e}(),om=r.sb({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;transform:translate(-50%,-6px);display:none}.tooltip-inner[_ngcontent-%COMP%]{background:#fff;color:#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 lm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Ob(1,null,["\n ",": ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit.name,t.context.$implicit.value)})}function um(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"layers",[],[[2,"disabled",null]],[[null,"select"]],function(e,t,n){var r=!0;return"select"===t&&(r=!1!==e.component.selectLayer(n.index)&&r),r},Mf,xf)),r.tb(2,49152,null,0,Tf,[],{current:[0,"current"]},{select:"select"}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"keyboard-slider",[],null,[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var r=!0,i=e.component;return"keyClick"===t&&(r=!1!==i.onKeyClick(n)&&r),"keyHover"===t&&(r=!1!==i.onKeyHover(n)&&r),"capture"===t&&(r=!1!==i.onCapture(n)&&r),"descriptionChanged"===t&&(r=!1!==i.onDescriptionChanged(n)&&r),r},Oh,_h)),r.tb(5,573440,null,0,kh,[],{layers:[0,"layers"],currentLayer:[1,"currentLayer"],capturingEnabled:[2,"capturingEnabled"],halvesInfo:[3,"halvesInfo"],selectedKey:[4,"selectedKey"],keyboardLayout:[5,"keyboardLayout"],description:[6,"description"],lastEditedKey:[7,"lastEditedKey"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(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,o=e.component;return"keydown.escape"===t&&(i=!1!==r.Gb(e,8).onEscape()&&i),"document:keydown.control.enter"===t&&(i=!1!==r.Gb(e,8).onKeyDown(n)&&i),"cancel"===t&&(i=!1!==o.hidePopover()&&i),"remap"===t&&(i=!1!==o.onRemap(n)&&i),i},rm,qb)),r.tb(8,573440,null,0,Wb,[L.m,r.h],{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()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(10,0,null,null,10,"div",[["class","tooltip bottom"]],[[2,"in",null],[4,"top","px"],[4,"left","px"]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,0,"div",[["class","tooltip-arrow"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,5,"div",[["class","tooltip-inner"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,2,null,lm)),r.tb(17,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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.popoverEnabled,n.halvesInfo,n.selectedKey,n.keyboardLayout,n.keymap.description,n.lastEditedKey),e(t,8,0,n.popoverInitKeyAction,n.keymap,n.currentLayer,n.keyPosition,n.wrapPosition,n.popoverShown,n.allowLayerDoubleTap,n.remapInfo),e(t,17,0,r.Pb(t,17,0,r.Gb(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 am(e){return r.Qb(2,[r.Mb(671088640,1,{popover:0}),(e()(),r.jb(16777216,null,null,1,null,um)),r.tb(2,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,2,0,t.component.layers)},null)}var sm=n("FYXD"),cm=n("JEAp"),pm=function(){function e(e,t,n){var r=this;this.store=e,this.cdRef=n,this.routeSubscription=t.params.pipe(Object(sm.a)("abbr")).subscribe(function(t){return e.dispatch(new il(t))}),this.keymap$=e.select(Fu),this.keymapSubscription=this.keymap$.subscribe(function(e){r.keymap=e,r.cdRef.markForCheck()}),this.deletable$=e.select(Vu),this.keyboardLayout$=e.select(Ju),this.allowLayerDoubleTap$=e.select(Pa),this.lastEditedKey$=e.select(Hu),this.halvesInfo$=e.select(Ta)}return e.prototype.ngOnDestroy=function(){this.routeSubscription.unsubscribe(),this.keymapSubscription.unsubscribe()},e.prototype.downloadKeymap=function(){var e=this,t=this.keymap$.pipe(Object(st.a)(function(t){return e.toExportableJSON(t)}),Object(Fe.a)(function(e){return JSON.stringify(e)}));this.keymap$.pipe(zb(t),ot()).subscribe(function(e){var t=e[1],n=e[0].name+"_keymap.json";Object(cm.saveAs)(new Blob([t],{type:"application/json"}),n)})},e.prototype.descriptionChanged=function(e){this.store.dispatch(new rl(e))},e.prototype.toExportableJSON=function(e){return this.store.select(Nu).pipe(ot(),Object(Fe.a)(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}(),fm=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function dm(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,2,"keymap-header",[],null,[[null,"downloadClick"],["window","resize"]],function(e,t,n){var i=!0,o=e.component;return"window:resize"===t&&(i=!1!==r.Gb(e,2).windowResize()&&i),"downloadClick"===t&&(i=!1!==o.downloadKeymap()&&i),i},Cf,Af)),r.tb(2,573440,null,0,Of,[L.m,r.E],{keymap:[0,"keymap"],deletable:[1,"deletable"]},{downloadClick:"downloadClick"}),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,5,"svg-keyboard-wrap",[],[[2,"space",null]],[[null,"descriptionChanged"],["window","resize"]],function(e,t,n){var i=!0,o=e.component;return"window:resize"===t&&(i=!1!==r.Gb(e,6).onResize()&&i),"descriptionChanged"===t&&(i=!1!==o.descriptionChanged(n)&&i),i},am,om)),r.tb(6,638976,null,0,im,[L.m,Wf,r.k],{keymap:[0,"keymap"],halvesInfo:[1,"halvesInfo"],keyboardLayout:[2,"keyboardLayout"],allowLayerDoubleTap:[3,"allowLayerDoubleTap"],lastEditedKey:[4,"lastEditedKey"]},{descriptionChanged:"descriptionChanged"}),r.Ib(131072,ye,[r.h]),r.Ib(131072,ye,[r.h]),r.Ib(131072,ye,[r.h]),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.keymap,r.Pb(t,2,1,r.Gb(t,3).transform(n.deletable$))),e(t,6,0,n.keymap,r.Pb(t,6,1,r.Gb(t,7).transform(n.halvesInfo$)),r.Pb(t,6,2,r.Gb(t,8).transform(n.keyboardLayout$)),r.Pb(t,6,3,r.Gb(t,9).transform(n.allowLayerDoubleTap$)),r.Pb(t,6,4,r.Gb(t,10).transform(n.lastEditedKey$)))},function(e,t){e(t,5,0,r.Gb(t,6).space)})}function hm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Sorry, there is no keymap with this abbreviation.\n"]))],null,null)}function ym(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,dm)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,hm)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.keymap),e(t,4,0,!n.keymap)},null)}function bm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"keymap-edit",[["class","container-fluid"]],null,null,null,ym,fm)),r.tb(1,180224,null,0,pm,[L.m,Gr,r.h],null,null)],null,null)}var mm=r.qb("keymap-edit",pm,bm,{},{},[]),gm=n("S5bw"),vm=n("xlPZ"),km=n("yGWI"),_m=function(){function e(e){var t;this.store=e,this.presetsAll$=e.select(function(e){return e.presetKeymaps}),this.filterExpression$=new Oe.a(""),this.presets$=this.presetsAll$.pipe(zb(this.filterExpression$,function(e,t){return e.filter(function(e){return e.name.toLocaleLowerCase().includes(t)})}),(t=new gm.a(1,void 0,void 0),function(e){return Object(vm.a)(function(){return t},void 0)(e)}),Object(km.a)())}return e.prototype.filterKeyboards=function(e){this.filterExpression$.next(e)},e.prototype.addKeymap=function(e){this.store.dispatch(new Qo(e))},e}(),wm=r.sb({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 Om(e){return r.Qb(0,[(e()(),r.ub(0,0,[["keyboard",1]],null,17,"div",[["class","keymap__list_item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),r.Ob(3,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(5,0,null,null,1,"p",[["class","keymap__description"]],null,null,null,null,null)),(e()(),r.Ob(6,null,["\n ","\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,9).onResize()&&i),i},am,om)),r.tb(9,638976,null,0,im,[L.m,Wf,r.k],{keymap:[0,"keymap"],popoverEnabled:[1,"popoverEnabled"],tooltipEnabled:[2,"tooltipEnabled"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,4,"div",[["class","btn-group btn-group-lg"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addKeymap(e.context.$implicit)&&r),r},null,null)),(e()(),r.Ob(-1,null,["Add keymap"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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,r.Gb(t,9).space)})}function Am(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Sorry, no keyboard found under this search query.\n"]))],null,null)}function Cm(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Add new keymap"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(8,0,null,null,16,"div",[["class","keymap__search clearfix"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,3,"span",[["class","input-group-addon"],["id","sizing-addon1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,0,"input",[["class","form-control"],["placeholder","Search ..."],["type","text"]],null,[[null,"input"]],function(e,t,n){var r=!0;return"input"===t&&(r=!1!==e.component.filterKeyboards(n.target.value)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,3,"div",[["class","keymap__search_amount"]],null,null,null,null,null)),(e()(),r.Ob(21,null,["\n "," / "," keymaps shown\n "])),r.Ib(131072,ye,[r.h]),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(26,0,null,null,5,"div",[["class","keymap__list"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,2,null,Om)),r.tb(29,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,2,null,Am)),r.tb(34,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h])],function(e,t){var n=t.component;e(t,29,0,r.Pb(t,29,0,r.Gb(t,30).transform(n.presets$))),e(t,34,0,0===r.Pb(t,34,0,r.Gb(t,35).transform(n.presets$)).length)},function(e,t){var n=t.component;e(t,21,0,r.Pb(t,21,0,r.Gb(t,22).transform(n.presets$)).length,r.Pb(t,21,1,r.Gb(t,23).transform(n.presetsAll$)).length)})}function Tm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"keymap-add",[["class","container-fluid"]],null,null,null,Cm,wm)),r.tb(1,49152,null,0,_m,[L.m],null,null)],null,null)}var xm=r.qb("keymap-add",_m,Tm,{},{},[]),Sm=function(){return function(){}}(),Mm=r.sb({encapsulation:0,styles:[[".not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Em(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,5,"uhk-header",[],null,null,null,kf,vf)),r.tb(3,49152,null,0,gf,[L.m],null,null),(e()(),r.Ob(-1,0,["\n "])),(e()(),r.ub(5,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\xa0"])),(e()(),r.Ob(-1,0,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n You don't have any macros. Try to add one!\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],null,null)}function Pm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-not-found",[],null,null,null,Em,Mm)),r.tb(1,49152,null,0,Sm,[],null,null)],null,null)}var Im=r.qb("macro-not-found",Sm,Pm,{},{},[]),jm=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(new al(this.macro.id))},e.prototype.duplicateMacro=function(){this.store.dispatch(new ll(this.macro))},e.prototype.editMacroName=function(e){El(e)?this.store.dispatch(new sl({id:this.macro.id,name:e})):this.setName()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.macroName.nativeElement,n=.8*t.parentElement.offsetWidth,r=Sl(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,r)+"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}(),Rm=r.sb({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{box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}"]],data:{}});function Lm(e){return r.Qb(2,[r.Mb(402653184,1,{macroName:0}),(e()(),r.ub(1,0,null,null,19,"uhk-header",[],null,null,null,kf,vf)),r.tb(2,49152,null,0,gf,[L.m],null,null),(e()(),r.Ob(-1,0,["\n "])),(e()(),r.ub(4,0,null,0,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,12,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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,o=e.component;return"focus"===t&&(i=!1!==r.Gb(e,11).onFocus()&&i),"keyup.escape"===t&&(i=!1!==r.Gb(e,11).onEscape()&&i),"change"===t&&(i=!1!==o.editMacroName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==r.Gb(e,10).blur()&&i),"keyup"===t&&(i=!1!==o.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),r.tb(11,16384,null,0,_f,[r.k,r.E],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,1,"i",[["class","glyphicon glyphicon-trash macro__remove pull-right"],["data-original-title","<span class='text-nowrap'>Delete macro</span>"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.removeMacro()&&r),r},null,null)),r.tb(14,1589248,null,0,hs,[r.k,On],{title:[0,"title"],html:[1,"html"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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 r=!0;return"click"===t&&(r=!1!==e.component.duplicateMacro()&&r),r},null,null)),r.tb(17,1589248,null,0,hs,[r.k,On],{title:[0,"title"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,0,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,14,0,"","true"),e(t,17,0,"")},function(e,t){e(t,13,0,r.Gb(t,14).placement),e(t,16,0,r.Gb(t,17).placement)})}var Nm=n("YS7c"),Dm=n.n(Nm),Um=function(){return function(e,t,n){this.name=e,this.drake=t,this.options=n,this.initEvents=!1}}(),Fm={Cancel:"cancel",Cloned:"cloned",Drag:"drag",DragEnd:"dragend",Drop:"drop",Out:"out",Over:"over",Remove:"remove",Shadow:"shadow",DropModel:"dropModel",RemoveModel:"removeModel"},Km=Object.keys(Fm).map(function(e){return Fm[e]}),Bm=Dm.a||Nm,Vm=function(){return function(e){void 0===e&&(e=Bm),this.build=e}}(),Gm=function(e,t,n){return function(r){return r.pipe(Object(Ve.a)(function(n){return n.event===e&&(void 0===t||n.name===t)}),Object(Fe.a)(function(e){return n(e.name,e.args)}))}},Hm=function(e,t){var n=Object(N.f)(t,3);return{name:e,el:n[0],container:n[1],source:n[2]}},$m=function(){function e(e){void 0===e&&(e=null);var t=this;this.drakeFactory=e,this.dispatch$=new Ue.a,this.drag=function(e){return t.dispatch$.pipe(Gm(Fm.Drag,e,function(e,t){var n=Object(N.f)(t,2);return{name:e,el:n[0],source:n[1]}}))},this.dragend=function(e){return t.dispatch$.pipe(Gm(Fm.DragEnd,e,function(e,t){return{name:e,el:Object(N.f)(t,1)[0]}}))},this.drop=function(e){return t.dispatch$.pipe(Gm(Fm.Drop,e,function(e,t){var n=Object(N.f)(t,4);return{name:e,el:n[0],target:n[1],source:n[2],sibling:n[3]}}))},this.elContainerSource=function(e){return function(n){return t.dispatch$.pipe(Gm(e,n,Hm))}},this.cancel=this.elContainerSource(Fm.Cancel),this.remove=this.elContainerSource(Fm.Remove),this.shadow=this.elContainerSource(Fm.Shadow),this.over=this.elContainerSource(Fm.Over),this.out=this.elContainerSource(Fm.Out),this.cloned=function(e){return t.dispatch$.pipe(Gm(Fm.Cloned,e,function(e,t){var n=Object(N.f)(t,3);return{name:e,clone:n[0],original:n[1],cloneType:n[2]}}))},this.dropModel=function(e){return t.dispatch$.pipe(Gm(Fm.DropModel,e,function(e,t){var n=Object(N.f)(t,9);return{name:e,el:n[0],target:n[1],source:n[2],sibling:n[3],item:n[4],sourceModel:n[5],targetModel:n[6],sourceIndex:n[7],targetIndex:n[8]}}))},this.removeModel=function(e){return t.dispatch$.pipe(Gm(Fm.RemoveModel,e,function(e,t){var n=Object(N.f)(t,6);return{name:e,el:n[0],container:n[1],source:n[2],item:n[3],sourceModel:n[4],sourceIndex:n[5]}}))},this.groups={},null===this.drakeFactory&&(this.drakeFactory=new Vm)}return e.prototype.add=function(e){if(this.find(e.name))throw new Error('Group named: "'+e.name+'" already exists.');return this.groups[e.name]=e,this.handleModels(e),this.setupEvents(e),e},e.prototype.find=function(e){return this.groups[e]},e.prototype.destroy=function(e){var t=this.find(e);t&&(t.drake&&t.drake.destroy(),delete this.groups[e])},e.prototype.createGroup=function(e,t){return this.add(new Um(e,this.drakeFactory.build([],t),t))},e.prototype.handleModels=function(e){var t,n,r,i=this,o=e.name,l=e.drake,u=e.options;l.on("remove",function(e,t,r){if(l.models){var u=l.models[l.containers.indexOf(r)],a=(u=u.slice(0)).splice(n,1)[0];i.dispatch$.next({event:Fm.RemoveModel,name:o,args:[e,t,r,a,u,n]})}}),l.on("drag",function(e,r){l.models&&(t=e,n=i.domIndexOf(e,r))}),l.on("drop",function(e,a,s,c){if(l.models&&a){r=i.domIndexOf(e,a);var p,f=l.models[l.containers.indexOf(s)],d=l.models[l.containers.indexOf(a)];if(a===s)p=(f=f.slice(0)).splice(n,1)[0],f.splice(r,0,p),d=f;else{var h=t!==e;if(p=f[n],h){if(!u.copyItem)throw new Error("If you have enabled `copy` on a group, you must provide a `copyItem` function.");p=u.copyItem(p)}if(h||(f=f.slice(0)).splice(n,1),(d=d.slice(0)).splice(r,0,p),h)try{a.removeChild(e)}catch(y){}}i.dispatch$.next({event:Fm.DropModel,name:o,args:[e,a,s,c,p,f,d,n,r]})}})},e.prototype.setupEvents=function(e){var t=this;if(!e.initEvents){e.initEvents=!0;var n=e.name;Km.forEach(function(r){e.drake.on(r,function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.dispatch$.next({event:r,name:n,args:e})})})}},e.prototype.domIndexOf=function(e,t){return Array.prototype.indexOf.call(t.children,e)},e}(),zm=function(){function e(e,t){this.el=e,this.dragulaService=t,this.dragulaModelChange=new r.m}return Object.defineProperty(e.prototype,"container",{get:function(){return this.el&&this.el.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(e&&e.dragula){var t=e.dragula,n=!!(o=t.currentValue);!!(i=t.previousValue)&&this.teardown(i),n&&this.setup()}else if(e&&e.dragulaModel){var r=e.dragulaModel,i=r.previousValue,o=r.currentValue,l=this.group.drake;if(this.dragula&&l){l.models=l.models||[];var u=l.models.indexOf(i);-1!==u?(l.models.splice(u,1),o&&l.models.splice(u,0,o)):o&&l.models.push(o)}}},e.prototype.setup=function(){var e=this,t=this.dragulaService.find(this.dragula);t||(t=this.dragulaService.createGroup(this.dragula,{})),function(t){e.dragulaModel&&(t.drake.models?t.drake.models.push(e.dragulaModel):t.drake.models=[e.dragulaModel])}(t),t.drake.containers.push(this.container),this.subscribe(this.dragula),this.group=t},e.prototype.subscribe=function(e){var t=this;this.subs=new _t.a,this.subs.add(this.dragulaService.dropModel(e).subscribe(function(e){var n=e.target,r=e.targetModel;e.source===t.el.nativeElement?t.dragulaModelChange.emit(e.sourceModel):n===t.el.nativeElement&&t.dragulaModelChange.emit(r)})),this.subs.add(this.dragulaService.removeModel(e).subscribe(function(e){e.source===t.el.nativeElement&&t.dragulaModelChange.emit(e.sourceModel)}))},e.prototype.teardown=function(e){this.subs&&this.subs.unsubscribe();var t=this.dragulaService.find(e);if(t){var n=t.drake.containers.indexOf(this.el.nativeElement);if(-1!==n&&t.drake.containers.splice(n,1),this.dragulaModel&&t.drake&&t.drake.models){var r=t.drake.models.indexOf(this.dragulaModel);-1!==r&&t.drake.models.splice(r,1)}}},e.prototype.ngOnDestroy=function(){this.teardown(this.dragula)},e}(),Qm=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[$m]}},e}(),Wm=function(){function e(e,t){var n=this;this.mapper=e,this.dragulaService=t,this.add=new r.m,this.edit=new r.m,this.delete=new r.m,this.reorder=new r.m,this.newMacro=void 0,this.showNew=!1,this.activeEdit=void 0,t.createGroup("macroActions",{moves:function(e,t,n){return n.className.includes("action--movable")}}),t.drop("macroActions").subscribe(function(e){if(e.el){var t=n.macroItems.length-1;e.sibling&&(t=+e.sibling.getAttribute("data-index")-1),n.reorder.emit({macroId:n.macro.id,oldIndex:+e.el.getAttribute("data-index"),newIndex:t})}})}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 $o.KeyMacroAction,this.toKeyAction(e));t.action=$o.MacroKeySubAction.tap,this.add.emit({macroId:this.macro.id,action:t})},e.prototype.toKeyAction=function(e){var t=new $o.KeystrokeAction;t.scancode=e.code,t.modifierMask=0;for(var n=e.left.concat(e.right).map(function(e){return e?1:0}),r=0;r<n.length;++r)t.modifierMask|=n[r]<<this.mapper.modifierMapper(r);return t},e.prototype.hideActiveEditor=function(){void 0!==this.activeEdit&&this.macroItems.toArray()[this.activeEdit].cancelEdit()},e}(),qm=r.sb({encapsulation:0,styles:[[".add-new__action-item--link[_ngcontent-%COMP%] button.btn-link[_ngcontent-%COMP%]{padding:7px 0;text-decoration:none;border:0;width:100%}.add-new__action-item--link[_ngcontent-%COMP%] button.btn-link[_ngcontent-%COMP%]:focus{outline:0}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}[_nghost-%COMP%] .list-container[_ngcontent-%COMP%]{display:flex;flex:1}.main-wrapper[_ngcontent-%COMP%]{width:500px}h1[_ngcontent-%COMP%]{margin-bottom:3rem}.action--edit__form[_ngcontent-%COMP%]{background-color:#fff;margin-left:-.5rem;margin-right:-15px;margin-top:15px;padding-top:15px;border-top:1px solid #ddd}.action--item[_ngcontent-%COMP%]{padding-left:8px}.action--item.active[_ngcontent-%COMP%], .action--item.active[_ngcontent-%COMP%]:hover{background-color:#fff;font-weight:700;color:#000;border-color:#000;z-index:10}.list-group[_ngcontent-%COMP%]{overflow:auto}.macro__name[_ngcontent-%COMP%]{border-bottom:2px dotted #999;padding:0 .5rem;margin:0 .25rem}.macro-settings[_ngcontent-%COMP%]{border:1px solid #000;border-top-color:#999;z-index:100}.macro-settings[_ngcontent-%COMP%] .helper[_ngcontent-%COMP%]{position:absolute;display:block;height:13px;background:#fff;width:100%;left:0;top:-14px}.action--item.active.callout[_ngcontent-%COMP%], .macro-settings.callout[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 rgba(0,0,0,.5)}.macro-actions-container[_ngcontent-%COMP%]{margin-bottom:0;border-radius:4px;border:1px solid #ddd;border-bottom:0}.list-group-item[_ngcontent-%COMP%] .move-handle[_ngcontent-%COMP%]:hover{cursor:move}.flex-button-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse}.flex-button[_ngcontent-%COMP%]{align-self:flex-end}.add-new__action-container[_ngcontent-%COMP%]{overflow:hidden;flex-shrink:0;border-top:1px solid #ddd}.add-new__action-item[_ngcontent-%COMP%]{border-radius:0 0 4px 4px;border-top:0;padding:0}.add-new__action-item[_ngcontent-%COMP%]:hover{cursor:pointer}.add-new__action-item--link[_ngcontent-%COMP%]{width:50%;float:left;text-align:center;color:#337ab7}.add-new__action-item--link[_ngcontent-%COMP%]:first-of-type{border-right:1px solid #ddd}.add-new__action-item--link[_ngcontent-%COMP%]:hover{text-decoration:none;background:#e6e6e6}.add-new__action-item[_ngcontent-%COMP%] .fa-circle[_ngcontent-%COMP%]{color:#c00}.gu-mirror[_ngcontent-%COMP%]{position:fixed;margin:0;z-index:9999;opacity:.8}.gu-hide[_ngcontent-%COMP%]{display:none}.gu-unselectable[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select: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:{}},{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 Jm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.ub(1,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),r.Ob(-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."]))],null,null)}function Ym(e){return r.Qb(0,[(e()(),r.ub(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 r=!0,i=e.component;return"save"===t&&(r=!1!==i.saveAction(n,e.context.index)&&r),"edit"===t&&(r=!1!==i.editAction(e.context.index)&&r),"cancel"===t&&(r=!1!==i.cancelAction()&&r),"delete"===t&&(r=!1!==i.deleteAction(e.context.$implicit,e.context.index)&&r),r},Mb,Ab)),r.tb(1,638976,[[1,4]],0,Ob,[Wf],{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 Zm(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-item",[["class","macro-item"]],[[24,"@togglerNew",0]],[[null,"save"],[null,"cancel"]],function(e,t,n){var r=!0,i=e.component;return"save"===t&&(r=!1!==i.addNewAction(n)&&r),"cancel"===t&&(r=!1!==i.hideNewAction()&&r),r},Mb,Ab)),r.tb(1,638976,[[1,4]],0,Ob,[Wf],{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 Xm(e){return r.Qb(0,[r.Mb(671088640,1,{macroItems:1}),(e()(),r.ub(1,0,null,null,37,"div",[["class","row list-container"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(3,0,null,null,34,"div",[["class","col-xs-10 col-xs-offset-1 list-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Jm)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,8,"div",[["class","macro-actions-container"]],null,[[null,"dragulaModelChange"]],function(e,t,n){var r=!0;return"dragulaModelChange"===t&&(r=!1!==(e.component.macro.macroActions=n)&&r),r},null,null)),r.tb(9,671744,null,0,zm,[r.k,$m],{dragula:[0,"dragula"],dragulaModel:[1,"dragulaModel"]},{dragulaModelChange:"dragulaModelChange"}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ym)),r.tb(12,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.jb(16777216,null,null,1,null,Zm)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(18,0,null,null,18,"div",[["class","list-group add-new__action-container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,15,"div",[["class","list-group-item action--item add-new__action-item no-reorder clearfix"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,6,"span",[["class","add-new__action-item--link"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showNewAction()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,3,"button",[["class","btn btn-link"],["type","button"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Add macro action\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(30,0,null,null,4,"span",[["class","add-new__action-item--link"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,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,o=e.component;return"keyup"===t&&(i=!1!==r.Gb(e,33).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==r.Gb(e,33).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==r.Gb(e,33).onFocusOut()&&i),"capture"===t&&(i=!1!==o.onKeysCapture(n)&&i),i},ay,oy)),r.tb(33,49152,null,0,iy,[Ud,L.m],{isLink:[0,"isLink"],captureText:[1,"captureText"]},{capture:"capture"}),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,6,0,!n.macroPlaybackSupported),e(t,9,0,"macroActions",n.macro.macroActions),e(t,12,0,n.macro.macroActions),e(t,15,0,n.showNew),e(t,33,0,"true","Add captured keystroke")},function(e,t){e(t,18,0,t.component.showNew?"inactive":"active")})}var eg=function(){function e(e,t){var n=this;this.store=e,this.route=t,this.routeSubscription=t.params.pipe(Object(sm.a)("id")).subscribe(function(t){return e.dispatch(new cl(+t))}),this.selectedMacroSubscription=e.select(Bu).subscribe(function(e){n.macro=e}),this.isNew="new"===this.route.snapshot.params.empty,this.macroPlaybackSupported$=this.store.select(Ea)}return e.prototype.ngOnDestroy=function(){this.selectedMacroSubscription.unsubscribe(),this.routeSubscription.unsubscribe()},e.prototype.addAction=function(e,t){this.store.dispatch(new pl({id:e,action:t}))},e.prototype.editAction=function(e,t,n){this.store.dispatch(new fl({id:e,index:t,action:n}))},e.prototype.deleteAction=function(e,t,n){this.store.dispatch(new dl({id:e,index:t,action:n}))},e.prototype.reorderAction=function(e,t,n){this.store.dispatch(new hl({id:e,oldIndex:t,newIndex:n}))},e}(),tg=r.sb({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 ng(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,t,n){var i=!0;return"window:resize"===t&&(i=!1!==r.Gb(e,2).windowResize()&&i),i},Lm,Rm)),r.tb(2,4767744,null,0,jm,[L.m,r.E],{macro:[0,"macro"],isNew:[1,"isNew"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,3,"macro-list",[],null,[[null,"add"],[null,"edit"],[null,"delete"],[null,"reorder"]],function(e,t,n){var r=!0,i=e.component;return"add"===t&&(r=!1!==i.addAction(n.macroId,n.action)&&r),"edit"===t&&(r=!1!==i.editAction(n.macroId,n.index,n.action)&&r),"delete"===t&&(r=!1!==i.deleteAction(n.macroId,n.index,n.action)&&r),"reorder"===t&&(r=!1!==i.reorderAction(n.macroId,n.oldIndex,n.newIndex)&&r),r},Xm,qm)),r.Lb(8704,null,$m,$m,[[2,Vm]]),r.tb(6,49152,null,0,Wm,[Wf,$m],{macro:[0,"macro"],macroPlaybackSupported:[1,"macroPlaybackSupported"]},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"}),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.macro,n.isNew),e(t,6,0,n.macro,r.Pb(t,6,1,r.Gb(t,7).transform(n.macroPlaybackSupported$)))},null)}function rg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),r.Ob(1,null,["\n There is no macro with id ",".\n"]))],null,function(e,t){e(t,1,0,t.component.macroId)})}function ig(e){return r.Qb(0,[(e()(),r.jb(16777216,null,null,1,null,ng)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,1,null,rg)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.macro),e(t,4,0,!n.macro)},null)}function og(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"macro-edit",[["class","container-fluid"]],null,null,null,ig,tg)),r.tb(1,180224,null,0,eg,[L.m,Gr],null,null)],null,null)}var lg=r.qb("macro-edit",eg,og,{},{},[]),ug=function(){return function(e){this.name$=e.params.pipe(Object(sm.a)("name"))}}(),ag=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function sg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,7,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,2,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),r.Ob(7,null,["",""])),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\nTo be done..."]))],null,function(e,t){var n=t.component;e(t,7,0,r.Pb(t,7,0,r.Gb(t,8).transform(n.name$)))})}function cg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"add-on",[["class","container-fluid"]],null,null,null,sg,ag)),r.tb(1,49152,null,0,ug,[Gr],null,null)],null,null)}var pg=r.qb("add-on",ug,cg,{},{},[]),fg=function(){function e(){this.toggleCheckForUpdateOnStartUp=new r.m,this.checkForUpdate=new r.m}return e.prototype.emitCheckForUpdateOnStartUp=function(e){this.toggleCheckForUpdateOnStartUp.emit(e)},e.prototype.emitCheckForUpdate=function(e){this.checkForUpdate.emit(e.shiftKey)},e}(),dg=r.sb({encapsulation:2,styles:[],data:{}});function hg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"span",[["class","fa fa-spinner fa-spin"]],null,null,null,null,null))],null,null)}function yg(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,18,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,15,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.emitCheckForUpdateOnStartUp(n.target.checked)&&r),r},null,null)),(e()(),r.Ob(-1,null,[" Automatically check for update on\n application start\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(12,0,null,null,4,"button",[["class","btn btn-link"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.emitCheckForUpdate(n)&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n Check for update\n "])),(e()(),r.jb(16777216,null,null,1,null,hg)),r.tb(15,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,15,0,t.component.checkingForUpdate)},function(e,t){e(t,8,0,t.component.settings.checkForUpdateOnStartUp)})}var bg=function(){function e(e){this.store=e,this.autoUpdateSettings$=e.select(aa),this.checkingForUpdate$=e.select(sa)}return e.prototype.toogleCheckForUpdateOnStartUp=function(e){this.store.dispatch(new ru(e))},e.prototype.checkForUpdate=function(e){this.store.dispatch(new iu(e))},e}(),mg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function gg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Settings"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(11,0,null,null,4,"auto-update-settings",[],null,[[null,"toggleCheckForUpdateOnStartUp"],[null,"checkForUpdate"]],function(e,t,n){var r=!0,i=e.component;return"toggleCheckForUpdateOnStartUp"===t&&(r=!1!==i.toogleCheckForUpdateOnStartUp(n)&&r),"checkForUpdate"===t&&(r=!1!==i.checkForUpdate(n)&&r),r},yg,dg)),r.tb(12,49152,null,0,fg,[],{settings:[0,"settings"],checkingForUpdate:[1,"checkingForUpdate"]},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",checkForUpdate:"checkForUpdate"}),r.Ib(131072,ye,[r.h]),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,r.Pb(t,12,0,r.Gb(t,13).transform(n.autoUpdateSettings$)),r.Pb(t,12,1,r.Gb(t,14).transform(n.checkingForUpdate$)))},null)}function vg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"settings",[["class","container-fluid"]],null,null,null,gg,mg)),r.tb(1,49152,null,0,bg,[L.m],null,null)],null,null)}var kg=r.qb("settings",bg,vg,{},{},[]),_g=function(){return function(){}}(),wg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Og(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Help"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(11,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,5,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Any questions? Try searching our "])),(e()(),r.ub(15,0,null,null,2,"a",[["externalUrl",""],["href","https://ultimatehackingkeyboard.com/knowledgebase"]],null,[[null,"click"],[null,"auxclick"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,16).onClick(n)&&i),"auxclick"===t&&(i=!1!==r.Gb(e,16).onAuxClick(n)&&i),i},null,null)),r.tb(16,16384,null,0,Wp,[r.k,L.m],null,null),(e()(),r.Ob(-1,null,["knowledgebase"])),(e()(),r.Ob(-1,null,["!\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.ub(21,0,null,null,35,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,32,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(25,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Keyboard shortcuts"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,26,"ul",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(30,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),r.ub(31,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Ctrl"])),(e()(),r.Ob(-1,null,[" + "])),(e()(),r.ub(34,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Enter"])),(e()(),r.Ob(-1,null,[": Remap key"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(38,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),r.ub(39,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Ctrl"])),(e()(),r.Ob(-1,null,[" + "])),(e()(),r.ub(42,0,null,null,1,"kbd",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["S"])),(e()(),r.Ob(-1,null,[": Save to keyboard"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(46,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Right click on a key: Capture key"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(49,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Hold Shift while clicking on a key: Remap on all keymaps"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(52,0,null,null,1,"li",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["Hold Alt while clicking on a key: Remap on all layers"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],null,null)}function Ag(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"help-page",[["class","container-fluid"]],null,null,null,Og,wg)),r.tb(1,49152,null,0,_g,[],null,null)],null,null)}var Cg=r.qb("help-page",_g,Ag,{},{},[]),Tg=function(){function e(e){this.store=e}return Object.defineProperty(e.prototype,"name",{get:function(){return this.contributor.login},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"avatarUrl",{get:function(){return this.contributor.avatar_url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"profileUrl",{get:function(){return this.contributor.html_url},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.badge.nativeElement.src=URL.createObjectURL(this.contributor.avatar)},e}(),xg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:3px;margin-right:5px}"]],data:{}});function Sg(e){return r.Qb(0,[r.Mb(671088640,1,{badge:0}),(e()(),r.ub(1,0,[[1,0],["badge",1]],null,0,"img",[],[[8,"alt",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(3,0,null,null,2,"a",[["externalUrl",""]],[[8,"href",4]],[[null,"click"],[null,"auxclick"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,4).onClick(n)&&i),"auxclick"===t&&(i=!1!==r.Gb(e,4).onAuxClick(n)&&i),i},null,null)),r.tb(4,16384,null,0,Wp,[r.k,L.m],null,null),(e()(),r.Ob(5,null,["",""])),(e()(),r.Ob(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,r.yb(1,"",n.name," on GitHub")),e(t,3,0,n.profileUrl),e(t,5,0,n.name)})}var Mg=function(){function e(e){this.store=e,this.version=jl().version,this.agentGithubUrl=$o.Constants.AGENT_GITHUB_URL,this.agentContributorsUrl=$o.Constants.AGENT_CONTRIBUTORS_GITHUB_PAGE_URL}return e.prototype.ngOnInit=function(){this.state$=this.store.select(na),this.store.dispatch(new Jl)},e}(),Eg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}.link-github[_ngcontent-%COMP%]{cursor:pointer}contributor-badge[_ngcontent-%COMP%]{display:block;margin:.5em auto;min-width:12em}"]],data:{}});function Pg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"contributor-badge",[["class","col-xs-2 text-left"]],null,null,null,Sg,xg)),r.tb(1,4243456,null,0,Tg,[L.m],{contributor:[0,"contributor"]},null)],function(e,t){e(t,1,0,t.context.$implicit)},null)}function Ig(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,10,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,7,"div",[["class","form-group row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,4,"div",[["class","col-xs-8 col-xs-offset-2"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Pg)),r.tb(7,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,7,0,t.parent.context.ngIf.contributors)},null)}function jg(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(1,0,null,null,1,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Loading...\n "])),(e()(),r.Ob(-1,null,["\n "]))],null,null)}function Rg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Loading...\n "]))],null,null)}function Lg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,5,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n We experienced a problem while fetching contributor list. "])),(e()(),r.ub(2,0,null,null,2,"a",[["externalUrl",""]],[[8,"href",4]],[[null,"click"],[null,"auxclick"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,3).onClick(n)&&i),"auxclick"===t&&(i=!1!==r.Gb(e,3).onAuxClick(n)&&i),i},null,null)),r.tb(3,16384,null,0,Wp,[r.k,L.m],null,null),(e()(),r.Ob(-1,null,["Check Contributors page on GitHub!"])),(e()(),r.Ob(-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.agentContributorsUrl)})}function Ng(e){return r.Qb(0,[(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Rg)),r.tb(2,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Lg)),r.tb(5,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,2,0,!t.parent.context.ngIf.error),e(t,5,0,t.parent.context.ngIf.error)},null)}function Dg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,11,null,null,null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,1,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Created by Ultimate Gadget Laboratories and its awesome contributors:\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Ig)),r.tb(6,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(0,[["loading",2]],null,0,null,jg)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(0,[["loading",2]],null,0,null,Ng)),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){e(t,6,0,!t.context.ngIf.isLoading&&!t.context.ngIf.error,r.Gb(t,10))},null)}function Ug(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,3,"h1",[["class","col-xs-12 text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","uhk-icon wide uhk-icon-full-agent-icon"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(8,0,null,null,27,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,24,"div",[["class","col-xs-12 text-center"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(12,0,null,null,1,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n The configurator of the Ultimate Hacking Keyboard\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,11,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(17,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n Agent version: "])),(e()(),r.ub(19,0,null,null,1,"span",[["class","text-bold"]],null,null,null,null,null)),(e()(),r.Ob(20,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(23,0,null,null,2,"a",[["class","link-github"],["externalUrl",""]],[[8,"href",4]],[[null,"click"],[null,"auxclick"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==r.Gb(e,24).onClick(n)&&i),"auxclick"===t&&(i=!1!==r.Gb(e,24).onAuxClick(n)&&i),i},null,null)),r.tb(24,16384,null,0,Wp,[r.k,L.m],null,null),(e()(),r.Ob(-1,null,["Agent on GitHub"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,2,null,Dg)),r.tb(29,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(32,0,null,null,1,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["May the UHK be with you!"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,29,0,r.Pb(t,29,0,r.Gb(t,30).transform(n.state$)))},function(e,t){var n=t.component;e(t,20,0,n.version),e(t,23,0,n.agentGithubUrl)})}function Fg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"about-page",[["class","container-fluid"]],null,null,null,Ug,Eg)),r.tb(1,114688,null,0,Mg,[L.m],null,null)],function(e,t){e(t,1,0)},null)}var Kg=r.qb("about-page",Mg,Fg,{},{},[]),Bg=function(){return function(){this.updateApp=new r.m,this.doNotUpdateApp=new r.m}}(),Vg=r.sb({encapsulation:0,styles:[[".app-update-available-wrapper[_ngcontent-%COMP%]{margin:0;padding-top:5px;padding-bottom:5px;background-color:#428bca;color:#fff;text-align:center;border-radius:0;border-width:0}.app-update-available-wrapper[_ngcontent-%COMP%] .btn-link[_ngcontent-%COMP%]{color:#fff}.app-update-available-wrapper[_ngcontent-%COMP%] .btn-link.underline[_ngcontent-%COMP%]{text-decoration:underline}"]],data:{}});function Gg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Ob(-1,null,["pre-"]))],null,null)}function Hg(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,13,"div",[["class","app-update-available-wrapper"],["role","alert"]],null,null,null,null,null)),(e()(),r.Ob(1,null,["\n Agent "," has been "])),(e()(),r.jb(16777216,null,null,1,null,Gg)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["released.\n\n "])),(e()(),r.ub(5,0,null,null,1,"button",[["class","btn btn-link underline"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.updateApp.emit()&&r),r},null,null)),(e()(),r.Ob(-1,null,["Update now!"])),(e()(),r.Ob(-1,null,["\n\n "])),(e()(),r.ub(8,0,null,null,4,"button",[["aria-label","Close"],["class","btn btn-link pull-right"],["data-dismiss","alert"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.doNotUpdateApp.emit()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\xd7"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.updateInfo.isPrerelease)},function(e,t){e(t,1,0,t.component.updateInfo.version)})}var $g=function(e){},zg=function(){function e(e,t){this._cdRef=e,this._renderer=t,this.maxParentWidthPercent=1,this._onChanged=$g,this._onTouched=$g}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){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(!El(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,r=Sl(window.getComputedStyle(t),e);this._renderer.setStyle(t,"width",Math.min(n,r)+"px")},e}(),Qg=r.sb({encapsulation:2,styles:[],data:{}});function Wg(e){return r.Qb(2,[r.Mb(402653184,1,{inputControl:0}),(e()(),r.ub(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,o=e.component;return"input"===t&&(i=!1!==r.Gb(e,2)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Gb(e,2).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Gb(e,2)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Gb(e,2)._compositionEnd(n.target.value)&&i),"focus"===t&&(i=!1!==r.Gb(e,7).onFocus()&&i),"keyup.escape"===t&&(i=!1!==r.Gb(e,7).onEscape()&&i),"ngModelChange"===t&&(i=!1!==(o.model=n)&&i),"blur"===t&&(i=!1!==o.blur()&&i),"focus"===t&&(i=!1!==o.focus()&&i),"keyup.enter"===t&&(i=!1!==o.keyEnter(n)&&i),"keyup"===t&&(i=!1!==o.calculateTextWidth(n.target.value)&&i),i},null,null)),r.tb(2,16384,null,0,Cc,[r.E,r.k,[2,Ac]],null,null),r.Lb(1024,null,wc,function(e){return[e]},[Cc]),r.tb(4,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(6,16384,null,0,Pc,[[4,Mc]],null,null),r.tb(7,16384,null,0,_f,[r.k,r.E],null,null),(e()(),r.Ob(-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,r.Gb(t,6).ngClassUntouched,r.Gb(t,6).ngClassTouched,r.Gb(t,6).ngClassPristine,r.Gb(t,6).ngClassDirty,r.Gb(t,6).ngClassValid,r.Gb(t,6).ngClassInvalid,r.Gb(t,6).ngClassPending)})}var qg=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(Sa).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(new ul)},e.prototype.editDeviceName=function(e){this.store.dispatch(new Ol(e))},e}(),Jg=r.sb({encapsulation:0,styles:[["[_nghost-%COMP%]{background-color:#f5f5f5;border-right:1px solid #ccc;position:fixed;overflow-y:auto;top:0;width:250px;height:100%;transition-timing-function:ease-out;transition:.5s;margin-top:0}.update-panel-visible[_nghost-%COMP%]{transition-timing-function:ease-in;transition:.5s;margin-top:45px}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 Yg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,1,{links:1}),r.Mb(603979776,2,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[2,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,1),(e()(),r.Ob(-1,null,["Mouse speed"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/device/mouse-speed");e(t,9,0,r)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,r.Gb(t,9).target,r.Gb(t,9).href)})}function Zg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,3,{links:1}),r.Mb(603979776,4,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[4,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,1),(e()(),r.Ob(-1,null,["LED brightness"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/device/led-brightness");e(t,9,0,r)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,r.Gb(t,9).target,r.Gb(t,9).href)})}function Xg(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,5,{links:1}),r.Mb(603979776,6,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[6,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,1),(e()(),r.Ob(-1,null,["Configuration"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/device/configuration");e(t,9,0,r)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,r.Gb(t,9).target,r.Gb(t,9).href)})}function ev(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,7,{links:1}),r.Mb(603979776,8,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[8,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,1),(e()(),r.Ob(-1,null,["Fix configuration"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/device/restore-user-configuration");e(t,9,0,r)},function(e,t){e(t,8,0,r.Gb(t,9).target,r.Gb(t,9).href)})}function tv(e){return r.Qb(0,[(e()(),r.ub(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)),r.tb(1,1589248,null,0,hs,[r.k,On],{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,r.Gb(t,1).placement)})}function nv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,16,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,13,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,11,{links:1}),r.Mb(603979776,12,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[12,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,2),(e()(),r.Ob(11,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,tv)),r.tb(14,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/keymap",t.context.$implicit.abbreviation);e(t,9,0,r),e(t,14,0,t.context.$implicit.isDefault)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,r.Gb(t,9).target,r.Gb(t,9).href),e(t,11,0,t.context.$implicit.name)})}function rv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,15,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,6,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Keymaps\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(7,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"keymap")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(10,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,nv)),r.tb(13,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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 iv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(3,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,13,{links:1}),r.Mb(603979776,14,{linksWithHrefs:1}),r.Hb(6,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(9,671744,[[14,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(10,2),(e()(),r.Ob(11,null,["",""])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,6,0,"active");e(t,3,0,n);var r=e(t,10,0,"/macro",t.context.$implicit.id);e(t,9,0,r)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,r.Gb(t,9).target,r.Gb(t,9).href),e(t,11,0,t.context.$implicit.name)})}function ov(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,19,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,10,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Macros\n "])),(e()(),r.ub(6,0,null,null,3,"a",[["class","btn btn-default pull-right btn-sm"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addMacro()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"macro")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(14,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,iv)),r.tb(17,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-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 lv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,71,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Add-on modules\n "])),(e()(),r.ub(6,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"addon")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,0,null,null,61,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(11,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Key cluster"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(13,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(14,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,15,{links:1}),r.Mb(603979776,16,{linksWithHrefs:1}),r.Hb(17,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,20).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(20,671744,[[16,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(21,2),(e()(),r.Ob(-1,null,["Key cluster"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(26,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackball"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(28,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(29,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,17,{links:1}),r.Mb(603979776,18,{linksWithHrefs:1}),r.Hb(32,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,35).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(35,671744,[[18,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(36,2),(e()(),r.Ob(-1,null,["Trackball"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(41,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Toucpad"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(43,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(44,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,19,{links:1}),r.Mb(603979776,20,{linksWithHrefs:1}),r.Hb(47,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,50).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(50,671744,[[20,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(51,2),(e()(),r.Ob(-1,null,["Touchpad"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(56,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackpoint"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(58,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(59,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,21,{links:1}),r.Mb(603979776,22,{linksWithHrefs:1}),r.Hb(62,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(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!==r.Gb(e,65).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(65,671744,[[22,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(66,2),(e()(),r.Ob(-1,null,["Trackpoint"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "]))],function(e,t){var n=e(t,17,0,"active");e(t,14,0,n);var r=e(t,21,0,"/add-on","Key cluster");e(t,20,0,r);var i=e(t,32,0,"active");e(t,29,0,i);var o=e(t,36,0,"/add-on","Trackball");e(t,35,0,o);var l=e(t,47,0,"active");e(t,44,0,l);var u=e(t,51,0,"/add-on","Touchpad");e(t,50,0,u);var a=e(t,62,0,"active");e(t,59,0,a);var s=e(t,66,0,"/add-on","Trackpoint");e(t,65,0,s)},function(e,t){var n=t.component;e(t,9,0,n.animation.addon),e(t,19,0,n.state.updatingFirmware,r.Gb(t,20).target,r.Gb(t,20).href),e(t,34,0,n.state.updatingFirmware,r.Gb(t,35).target,r.Gb(t,35).href),e(t,49,0,n.state.updatingFirmware,r.Gb(t,50).target,r.Gb(t,50).href),e(t,64,0,n.state.updatingFirmware,r.Gb(t,65).target,r.Gb(t,65).href)})}function uv(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,132,"ul",[["class","menu--top"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(2,0,null,null,67,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(4,0,null,null,12,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(6,0,null,null,0,"i",[["class","uhk-icon uhk-icon-0401-usb-stick rotate-right"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(8,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,o=e.component;return"window:resize"===t&&(i=!1!==r.Gb(e,9).windowResize()&&i),"ngModelChange"===t&&(i=!1!==o.editDeviceName(n)&&i),i},Wg,Qg)),r.tb(9,49152,null,0,zg,[r.h,r.E],{maxParentWidthPercent:[0,"maxParentWidthPercent"],css:[1,"css"]},null),r.Lb(1024,null,wc,function(e){return[e]},[zg]),r.tb(11,671744,null,0,_p,[[8,null],[8,null],[8,null],[6,wc]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r.Lb(2048,null,Mc,null,[_p]),r.tb(13,16384,null,0,Pc,[[4,Mc]],null,null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(15,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"device")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(18,0,null,null,50,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(20,0,null,null,38,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(22,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(24,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Device\n "])),(e()(),r.ub(26,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"configuration")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(29,0,null,null,28,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Yg)),r.tb(32,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Zg)),r.tb(35,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,Xg)),r.tb(38,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ev)),r.tb(41,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(43,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(45,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(46,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,9,{links:1}),r.Mb(603979776,10,{linksWithHrefs:1}),r.Hb(49,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(51,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!==r.Gb(e,52).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(52,671744,[[10,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(53,1),(e()(),r.Ob(-1,null,["Firmware"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,rv)),r.tb(61,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,ov)),r.tb(64,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,lv)),r.tb(67,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(71,0,null,null,60,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),r.tb(72,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,23,{links:1}),r.Mb(603979776,24,{linksWithHrefs:1}),r.Hb(75,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(77,0,null,null,5,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(79,0,null,null,0,"i",[["class","uhk-icon uhk-icon-pure-agent-icon"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,[" Agent\n "])),(e()(),r.ub(81,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleHide(n,"agent")&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(84,0,null,null,46,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(86,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(88,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(89,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,25,{links:1}),r.Mb(603979776,26,{linksWithHrefs:1}),r.Hb(92,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(94,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!==r.Gb(e,95).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(95,671744,[[26,4],[24,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(96,1),(e()(),r.Ob(-1,null,["Settings"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(101,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(103,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(104,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,27,{links:1}),r.Mb(603979776,28,{linksWithHrefs:1}),r.Hb(107,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(109,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!==r.Gb(e,110).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(110,671744,[[28,4],[24,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(111,1),(e()(),r.Ob(-1,null,["Help"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(116,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(118,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),r.tb(119,1720320,null,2,ro,[Xi,r.k,r.E,[2,eo],[2,to]],{routerLinkActive:[0,"routerLinkActive"]},null),r.Mb(603979776,29,{links:1}),r.Mb(603979776,30,{linksWithHrefs:1}),r.Hb(122,1),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(124,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!==r.Gb(e,125).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),r.tb(125,671744,[[30,4],[24,4]],0,to,[Xi,Gr,F],{routerLink:[0,"routerLink"]},null),r.Hb(126,1),(e()(),r.Ob(-1,null,["About"])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,9,0,.65,"side-menu-pane-title__name"),e(t,11,0,n.state.restoreUserConfiguration||n.state.updatingFirmware,n.state.deviceName),e(t,32,0,!n.state.restoreUserConfiguration),e(t,35,0,!n.state.restoreUserConfiguration),e(t,38,0,!n.state.restoreUserConfiguration),e(t,41,0,n.state.restoreUserConfiguration);var r=e(t,49,0,"active");e(t,46,0,r);var i=e(t,53,0,"/device/firmware");e(t,52,0,i),e(t,61,0,!n.state.restoreUserConfiguration),e(t,64,0,!n.state.restoreUserConfiguration),e(t,67,0,n.state.showAddonMenu);var o=e(t,75,0,"active");e(t,72,0,o);var l=e(t,92,0,"active");e(t,89,0,l);var u=e(t,96,0,"/settings");e(t,95,0,u);var a=e(t,107,0,"active");e(t,104,0,a);var s=e(t,111,0,"/help");e(t,110,0,s);var c=e(t,122,0,"active");e(t,119,0,c);var p=e(t,126,0,"/about");e(t,125,0,p)},function(e,t){var n=t.component;e(t,8,0,r.Gb(t,13).ngClassUntouched,r.Gb(t,13).ngClassTouched,r.Gb(t,13).ngClassPristine,r.Gb(t,13).ngClassDirty,r.Gb(t,13).ngClassValid,r.Gb(t,13).ngClassInvalid,r.Gb(t,13).ngClassPending),e(t,18,0,n.animation.device),e(t,29,0,n.animation.configuration),e(t,51,0,n.state.updatingFirmware,r.Gb(t,52).target,r.Gb(t,52).href),e(t,84,0,n.animation.agent),e(t,94,0,n.state.updatingFirmware,r.Gb(t,95).target,r.Gb(t,95).href),e(t,109,0,n.state.updatingFirmware,r.Gb(t,110).target,r.Gb(t,110).href),e(t,124,0,n.state.updatingFirmware,r.Gb(t,125).target,r.Gb(t,125).href)})}var av=function(){function e(){this.state=Eu,this.clicked=new r.m}return e.prototype.onClicked=function(){this.clicked.emit(this.state.action)},e}(),sv=r.sb({encapsulation:0,styles:[["button[_ngcontent-%COMP%]{min-width:150px}"]],data:{}});function cv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,0,"i",[["class","fa fa-spin fa-spinner"]],null,null,null,null,null))],null,null)}function pv(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,4,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onClicked()&&r),r},null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.jb(16777216,null,null,1,null,cv)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(4,null,[" ","\n"])),(e()(),r.Ob(-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 fv=function(e){this.template=null,Object.assign(this,e),void 0===e.id&&(this.id="ID_"+(new Date).getTime())},dv=function(){function e(){this.actionStream=new Ue.a,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}(),hv=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))},yv=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 r={message:t,type:e};void 0!==n&&(r.id=n),this.show(r)},e}(),bv=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,r){t.tempPromiseResolver=n,t.addNotificationToList(new fv(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 r=[];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?(r.push(this.notifications[0].component.hide()),setTimeout(function(){r.push(t.shiftNotifications(i,e.component.getHeight(),!0))},this.config.animations.hide.speed-this.config.animations.overlap),setTimeout(function(){r.push(e.component.show())},this.config.animations.hide.speed+this.config.animations.shift.speed-this.config.animations.overlap)):r.push(new Promise(function(n,r){t.notifications[0].component.hide().then(function(){t.shiftNotifications(i,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})})):(r.push(this.notifications[0].component.hide()),r.push(this.shiftNotifications(i,e.component.getHeight(),!0)),r.push(e.component.show()))}else{var o=this.notifications.slice(0,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(r.push(this.shiftNotifications(o,e.component.getHeight(),!0)),setTimeout(function(){r.push(e.component.show())},this.config.animations.shift.speed-this.config.animations.overlap)):r.push(new Promise(function(n,r){t.shiftNotifications(o,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})):(r.push(this.shiftNotifications(o,e.component.getHeight(),!0)),r.push(e.component.show()))}Promise.all(r).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,r){var i=[],o=t.findNotificationById(e.payload);if(void 0!==o){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?(i.push(o.component.hide()),setTimeout(function(){i.push(t.shiftNotifications(u,o.component.getHeight(),!1))},t.config.animations.hide.speed-t.config.animations.overlap)):o.component.hide().then(function(){i.push(t.shiftNotifications(u,o.component.getHeight(),!1))}):(i.push(o.component.hide()),i.push(t.shiftNotifications(u,o.component.getHeight(),!1))):i.push(o.component.hide()),Promise.all(i).then(function(){t.removeNotificationFromList(o),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 r=t.notifications.length;if(0!==r)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===r-1)&&(t.removeAllNotificationsFromList(),e())})},t.config.animations.hide.offset*("top"===t.config.position.vertical.position?r-1:n))},o=r-1;o>=0;o--)i(o);else{var l=[];for(o=r-1;o>=0;o--)l.push(t.notifications[o].component.hide());Promise.all(l).then(function(){t.removeAllNotificationsFromList(),e()})}else e()})},e.prototype.shiftNotifications=function(e,t,n){return new Promise(function(r,i){if(0!==e.length){for(var o=[],l=e.length-1;l>=0;l--)o.push(e[l].component.shift(t,n));Promise.all(o).then(r)}else r()})},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}(),mv={hide:function(){return{from:{opacity:"1"},to:{opacity:"0"}}},show:function(){return{from:{opacity:"0"},to:{opacity:"1"}}}},gv={hide:function(e){var t,n,r=e.component.getConfig(),i=e.component.getShift();return"left"===r.position.horizontal.position?(t={transform:"translate3d( 0, "+i+"px, 0 )"},n={transform:"translate3d( calc( -100% - "+r.position.horizontal.distance+"px - 10px ), "+i+"px, 0 )"}):"right"===r.position.horizontal.position?(t={transform:"translate3d( 0, "+i+"px, 0 )"},n={transform:"translate3d( calc( 100% + "+r.position.horizontal.distance+"px + 10px ), "+i+"px, 0 )"}):(t={transform:"translate3d( -50%, "+i+"px, 0 )"},n={transform:"translate3d( -50%, "+("top"===r.position.vertical.position?"calc( -100% - "+r.position.horizontal.distance+"px - 10px )":"calc( 100% + "+r.position.horizontal.distance+"px + 10px )")+", 0 )"}),{from:t,to:n}},show:function(e){var t,n,r=e.component.getConfig();return"left"===r.position.horizontal.position?(t={transform:"translate3d( calc( -100% - "+r.position.horizontal.distance+"px - 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):"right"===r.position.horizontal.position?(t={transform:"translate3d( calc( 100% + "+r.position.horizontal.distance+"px + 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):(t={transform:"translate3d( -50%, "+("top"===r.position.vertical.position?"calc( -100% - "+r.position.horizontal.distance+"px - 10px )":"calc( 100% + "+r.position.horizontal.distance+"px + 10px )")+", 0 )"},n={transform:"translate3d( -50%, 0, 0 )"}),{from:t,to:n}}},vv=function(){function e(){this.animationPresets={fade:mv,slide:gv}}return e.prototype.getAnimationData=function(e,t){var n,r,i;return"show"===e?(n=this.animationPresets[t.component.getConfig().animations.show.preset].show(t),r=t.component.getConfig().animations.show.speed,i=t.component.getConfig().animations.show.easing):(n=this.animationPresets[t.component.getConfig().animations.hide.preset].hide(t),r=t.component.getConfig().animations.hide.speed,i=t.component.getConfig().animations.hide.easing),{keyframes:[n.from,n.to],options:{duration:r,easing:i,fill:"forwards"}}},e}(),kv=function(){function e(){this.now=0,this.remaining=0}return e.prototype.start=function(e){var t=this;return new Promise(function(n,r){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=window.setTimeout(function(){e.finish()},this.remaining)},e.prototype.stop=function(){clearTimeout(this.timerId),this.remaining=0},e.prototype.finish=function(){this.finishPromiseResolver()},e}(),_v=function(){function e(e,t,n,i,o){this.config=n.getConfig(),this.ready=new r.m,this.dismiss=new r.m,this.timerService=i,this.animationService=o,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 r=e.animationService.getAnimationData("show",e.notification),i=Object.keys(r.keyframes[0]),o=i.length-1;o>=0;o--)e.renderer.setStyle(e.element,i[o],r.keyframes[0][i[o]]);e.renderer.setStyle(e.element,"visibility","visible"),e.element.animate(r.keyframes,r.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 r=e.animationService.getAnimationData("hide",e.notification);e.element.animate(r.keyframes,r.options).onfinish=function(){t()}}else t()})},e.prototype.shift=function(e,t){var n=this;return new Promise(function(r,i){var o;o="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+", "+o+"px, 0 )"}],options:{duration:n.config.animations.shift.speed,easing:n.config.animations.shift.easing,fill:"forwards"}};n.elementShift=o,n.element.animate(u.keyframes,u.options).onfinish=function(){r()}}else n.renderer.setStyle(n.element,"transform","translate3d( "+l+", "+o+"px, 0 )"),n.elementShift=o,r()})},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}(),wv=new r.q("[angular-notifier] Notifier Options"),Ov=new r.q("[anuglar-notifier] Notifier Config");function Av(e){return new hv(e)}var Cv=function(){function e(){}return e.withConfig=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:wv,useValue:t},{deps:[wv],provide:Ov,useFactory:Av}]}},e}(),Tv=r.sb({encapsulation:2,styles:[],data:{}});function xv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"li",[["class","notifier__container-list"]],null,null,null,null,null)),(e()(),r.ub(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,o=e.component;return"click"===t&&(i=!1!==r.Gb(e,3).onNotificationClick()&&i),"mouseout"===t&&(i=!1!==r.Gb(e,3).onNotificationMouseout()&&i),"mouseover"===t&&(i=!1!==r.Gb(e,3).onNotificationMouseover()&&i),"dismiss"===t&&(i=!1!==o.onNotificationDismiss(n)&&i),"ready"===t&&(i=!1!==o.onNotificationReady(n)&&i),i},jv,Mv)),r.Lb(512,null,kv,kv,[]),r.tb(3,4243456,null,0,_v,[r.k,r.E,yv,kv,vv],{notification:[0,"notification"]},{ready:"ready",dismiss:"dismiss"})],function(e,t){e(t,3,0,t.context.$implicit)},null)}function Sv(e){return r.Qb(2,[(e()(),r.ub(0,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),r.jb(16777216,null,null,1,null,xv)),r.tb(2,278528,null,0,ne,[r.P,r.M,r.t],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,2,0,n.notifications,n.identifyNotification)},null)}var Mv=r.sb({encapsulation:2,styles:[],data:{}});function Ev(e){return r.Qb(0,[(e()(),r.ub(0,16777216,null,null,2,null,null,null,null,null,null,null)),r.tb(1,540672,null,0,pe,[r.P],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r.Jb(2,{notification:0}),(e()(),r.jb(0,null,null,0))],function(e,t){var n=t.component,r=e(t,2,0,n.notification);e(t,1,0,r,n.notification.template)},null)}function Pv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,2,"button",[["class","notifier__notification-button"],["title","dismiss"],["type","button"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onClickDismiss()&&r),r},null,null)),(e()(),r.ub(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()(),r.ub(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 Iv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"p",[["class","notifier__notification-message"]],null,null,null,null,null)),(e()(),r.Ob(1,null,["",""])),(e()(),r.jb(16777216,null,null,1,null,Pv)),r.tb(3,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.jb(0,null,null,0))],function(e,t){e(t,3,0,t.component.config.behaviour.showDismissButton)},function(e,t){e(t,1,0,t.component.notification.message)})}function jv(e){return r.Qb(2,[(e()(),r.jb(16777216,null,null,1,null,Ev)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),r.jb(0,[["predefinedNotification",2]],null,0,null,Iv))],function(e,t){e(t,1,0,t.component.notification.template,r.Gb(t,2))},null)}var Rv=r.sb({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:{}},{type:7,name:"updateAvailable",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"translateY(-45px)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(0)"},offset:null},timings:"500ms ease-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(-45px)"},offset:null},timings:"500ms ease-out"}],options:null}],options:{}}]}});function Lv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,3,"app-update-available",[],[[24,"@updateAvailable",0]],[[null,"updateApp"],[null,"doNotUpdateApp"]],function(e,t,n){var r=!0,i=e.component;return"updateApp"===t&&(r=!1!==i.updateApp()&&r),"doNotUpdateApp"===t&&(r=!1!==i.doNotUpdateApp()&&r),r},Hg,Vg)),r.tb(1,49152,null,0,Bg,[],{updateInfo:[0,"updateInfo"]},{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"}),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,r.Pb(t,1,0,r.Gb(t,2).transform(n.updateInfo$)))},function(e,t){e(t,0,0,void 0)})}function Nv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"side-menu",[],[[2,"update-panel-visible",null]],null,null,uv,Jg)),r.tb(1,245760,null,0,qg,[L.m,r.E,r.h],null,null)],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,t.component.showUpdateAvailable)})}function Dv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"progress-button",[["class","save-to-keyboard-button"]],[[24,"@showSaveToKeyboardButton",0]],[[null,"clicked"]],function(e,t,n){var r=!0;return"clicked"===t&&(r=!1!==e.component.clickedOnProgressButton(n)&&r),r},pv,sv)),r.tb(1,49152,null,0,av,[],{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 Uv(e){return r.Qb(0,[(e()(),r.jb(16777216,null,null,1,null,Lv)),r.tb(1,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n\n"])),(e()(),r.jb(16777216,null,null,2,null,Nv)),r.tb(4,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),r.Ib(131072,ye,[r.h]),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(7,0,null,null,4,"div",[["class","main-content"],["id","main-content"]],[[2,"update-panel-visible",null]],null,null,null,null)),(e()(),r.Ob(-1,null,["\n "])),(e()(),r.ub(9,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.tb(10,212992,null,0,lo,[oo,r.P,r.j,[8,null],r.h],null,null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.ub(13,0,null,null,1,"notifier-container",[["class","notifier__container"]],null,null,null,Sv,Tv)),r.tb(14,245760,null,0,bv,[r.h,dv,yv],null,null),(e()(),r.Ob(-1,null,["\n"])),(e()(),r.jb(16777216,null,null,1,null,Dv)),r.tb(17,16384,null,0,ie,[r.P,r.M],{ngIf:[0,"ngIf"]},null),(e()(),r.Ob(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.showUpdateAvailable),e(t,4,0,r.Pb(t,4,0,r.Gb(t,5).transform(n.deviceConfigurationLoaded$))),e(t,10,0),e(t,14,0),e(t,17,0,n.saveToKeyboardState.showButton)},function(e,t){e(t,7,0,t.component.showUpdateAvailable)})}function Fv(e){return r.Qb(0,[(e()(),r.ub(0,0,null,null,1,"main-app",[],null,[["document","keydown"]],function(e,t,n){var i=!0;return"document:keydown"===t&&(i=!1!==r.Gb(e,1).onKeyDown(n)&&i),i},Uv,Rv)),r.tb(1,180224,null,0,ja,[L.m],null,null)],null,null)}var Kv=r.qb("main-app",ja,Fv,{},{},[]),Bv=function(){return function(){}}(),Vv=function(){return function(){}}(),Gv="*";function Hv(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function $v(e){return{type:6,styles:e,offset:null}}function zv(e){Promise.resolve(null).then(e)}var Qv=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}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;zv(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}(),Wv=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,r=0,i=0,o=this.players.length;0==o?zv(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==o&&t._onFinish()}),e.onDestroy(function(){++r==o&&t._onDestroy()}),e.onStart(function(){++i==o&&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}(),qv="!";function Jv(){return"undefined"!=typeof process}function Yv(e){switch(e.length){case 0:return new Qv;case 1:return e[0];default:return new Wv(e)}}function Zv(e,t,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var l=[],u=[],a=-1,s=null;if(r.forEach(function(e){var n=e.offset,r=n==a,c=r&&s||{};Object.keys(e).forEach(function(n){var r=n,u=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,l),u){case qv:u=i[n];break;case Gv:u=o[n];break;default:u=t.normalizeStyleValue(n,r,u,l)}c[r]=u}),r||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 Xv(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&ek(n,"start",e))});break;case"done":e.onDone(function(){return r(n&&ek(n,"done",e))});break;case"destroy":e.onDestroy(function(){return r(n&&ek(n,"destroy",e))})}}function ek(e,t,n){var r=n.totalTime,i=tk(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function tk(e,t,n,r,i,o,l){return void 0===i&&(i=""),void 0===o&&(o=0),{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!l}}function nk(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function rk(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var ik=function(e,t){return!1},ok=function(e,t){return!1},lk=function(e,t,n){return[]},uk=Jv();(uk||"undefined"!=typeof Element)&&(ik=function(e,t){return e.contains(t)},ok=function(){if(uk||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:ok}(),lk=function(e,t,n){var r=[];if(n)r.push.apply(r,Object(N.g)(e.querySelectorAll(t)));else{var i=e.querySelector(t);i&&r.push(i)}return r});var ak=null,sk=!1;function ck(e){ak||(ak=("undefined"!=typeof document?document.body:null)||{},sk=!!ak.style&&"WebkitAppearance"in ak.style);var t=!0;return ak.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in ak.style)&&sk&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in ak.style),t}var pk=ok,fk=ik,dk=lk;function hk(e){var t={};return Object.keys(e).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}var yk=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return ck(e)},e.prototype.matchesElement=function(e,t){return pk(e,t)},e.prototype.containsElement=function(e,t){return fk(e,t)},e.prototype.query=function(e,t,n){return dk(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,r,i,o,l){return void 0===o&&(o=[]),new Qv(n,r)},e}(),bk=function(){function e(){}return e.NOOP=new yk,e}(),mk=1e3;function gk(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:vk(parseFloat(t[1]),t[2])}function vk(e,t){switch(t){case"s":return e*mk;default:return e}}function kk(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,o="";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:""};r=vk(parseFloat(l[1]),l[2]);var u=l[3];null!=u&&(i=vk(parseFloat(u),l[4]));var a=l[5];a&&(o=a)}else r=e;if(!n){var s=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),s=!0),i<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:r,delay:i,easing:o}}(e,t,n)}function _k(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function wk(e,t,n){if(void 0===n&&(n={}),t)for(var r in e)n[r]=e[r];else _k(e,n);return n}function Ok(e,t,n){return n?t+":"+n+";":""}function Ak(e){for(var t="",n=0;n<e.style.length;n++)t+=Ok(0,r=e.style.item(n),e.style.getPropertyValue(r));for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=Ok(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function Ck(e,t,n){e.style&&(Object.keys(t).forEach(function(r){var i=jk(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[i]),e.style[i]=t[r]}),Jv()&&Ak(e))}function Tk(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=jk(t);e.style[n]=""}),Jv()&&Ak(e))}function xk(e){return Array.isArray(e)?1==e.length?e[0]:Hv(e):e}var Sk=new RegExp("{{\\s*(.+?)\\s*}}","g");function Mk(e){var t=[];if("string"==typeof e){for(var n=e.toString(),r=void 0;r=Sk.exec(n);)t.push(r[1]);Sk.lastIndex=0}return t}function Ek(e,t,n){var r=e.toString(),i=r.replace(Sk,function(e,r){var i=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?e:i}function Pk(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Ik=/-+([a-z0-9])/g;function jk(e){return e.replace(Ik,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})}function Rk(e,t){return 0===e||0===t}function Lk(e,t,n){var r=Object.keys(n);if(r.length&&t.length){var i=t[0],o=[];if(r.forEach(function(e){i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var l=function(){var n=t[u];o.forEach(function(t){n[t]=Dk(e,t)})},u=1;u<t.length;u++)l()}return t}function Nk(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Dk(e,t){return window.getComputedStyle(e)[t]}var Uk="*",Fk=new Set(["true","1"]),Kk=new Set(["false","0"]);function Bk(e,t){var n=Fk.has(e)||Kk.has(e),r=Fk.has(t)||Kk.has(t);return function(i,o){var l=e==Uk||e==i,u=t==Uk||t==o;return!l&&n&&"boolean"==typeof i&&(l=i?Fk.has(e):Kk.has(e)),!u&&r&&"boolean"==typeof o&&(u=o?Fk.has(t):Kk.has(t)),l&&u}}var Vk=new RegExp("s*:selfs*,?","g");function Gk(e,t,n){return new Hk(e).build(t,n)}var Hk=function(){function e(e){this._driver=e}return e.prototype.build=function(e,t){var n=new $k(t);return this._resetContextStyleTimingState(n),Nk(this,xk(e),n)},e.prototype._resetContextStyleTimingState=function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0},e.prototype.visitTrigger=function(e,t){var n=this,r=t.queryCount=0,i=t.depCount=0,o=[],l=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var u=e,a=u.name;a.toString().split(/\s*,\s*/).forEach(function(e){u.name=e,o.push(n.visitState(u,t))}),u.name=a}else if(1==e.type){var s=n.visitTransition(e,t);r+=s.queryCount,i+=s.depCount,l.push(s)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:l,queryCount:r,depCount:i,options:null}},e.prototype.visitState=function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(e){if(zk(e)){var t=e;Object.keys(t).forEach(function(e){Mk(t[e]).forEach(function(e){o.hasOwnProperty(e)||i.add(e)})})}}),i.size){var l=Pk(i.values());t.errors.push('state("'+e.name+'", ...) must define default values for all the following style substitutions: '+l.join(", "))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}},e.prototype.visitTransition=function(e,t){t.queryCount=0,t.depCount=0;var n,r,i,o=Nk(this,xk(e.animation),t);return{type:1,matchers:(n=e.expr,r=t.errors,i=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'+e+'" is not supported'),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}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 o=i[1],l=i[2],u=i[3];t.push(Bk(o,u)),"<"!=l[0]||o==Uk&&u==Uk||t.push(Bk(u,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Qk(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Nk(n,e,t)}),options:Qk(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=Nk(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:Qk(e.options)}},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Wk(kk(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=Wk(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Wk((n=n||kk(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:$v({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,l=!1;if(!o){l=!0;var u={};r.easing&&(u.easing=r.easing),o=$v(u)}t.currentTime+=r.duration+r.delay;var a=this.visitStyle(o,t);a.isEmptyStep=l,n=a}return t.currentAnimateTimings=null,{type:4,timings:r,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==Gv?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(zk(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var l,u,a,s=t.collectedStyles[t.currentQuerySelector],c=s[r],p=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+r+'" 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 "'+o+'ms" and "'+i+'ms"'),p=!1),o=c.startTime),p&&(s[r]={startTime:o,endTime:i}),t.options&&(l=t.errors,u=t.options.params||{},(a=Mk(e[r])).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 "'+r+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],l=!1,u=!1,a=0,s=e.steps.map(function(e){var r=n._makeStyleAst(e,t),s=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(zk(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(zk(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=s&&(i++,c=r.offset=s),u=u||c<0||c>1,l=l||c<a,a=c,o.push(c),r});u&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),l&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,p=0;i>0&&i<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(p=1/(c-1));var f=c-1,d=t.currentTime,h=t.currentAnimateTimings,y=h.duration;return s.forEach(function(e,i){var l=p>0?i==f?1:p*i:o[i],u=l*y;t.currentTime=d+h.delay+u,h.duration=u,n._validateStyleAst(e,t),e.offset=l,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:Nk(this,xk(e.animation),t),options:Qk(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:Qk(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Qk(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=Object(N.f)(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Vk,"")),[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),2),o=i[0],l=i[1];t.currentQuerySelector=n.length?n+" "+o:o,nk(t.collectedStyles,t.currentQuerySelector,{});var u=Nk(this,xk(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:l,animation:u,originalSelector:e.selector,options:Qk(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"}:kk(e.timings,t.errors,!0);return{type:12,animation:Nk(this,xk(e.animation),t),timings:n,options:null}},e}(),$k=function(){return 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 zk(e){return!Array.isArray(e)&&"object"==typeof e}function Qk(e){var t;return e?(e=_k(e)).params&&(e.params=(t=e.params)?_k(t):null):e={},e}function Wk(e,t,n){return{duration:e,delay:t,easing:n}}function qk(e,t,n,r,i,o,l,u){return void 0===l&&(l=null),void 0===u&&(u=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:l,subTimeline:u}}var Jk=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,Object(N.g)(t))},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),Yk=new RegExp(":enter","g"),Zk=new RegExp(":leave","g");function Xk(e,t,n,r,i,o,l,u,a,s){return void 0===o&&(o={}),void 0===l&&(l={}),void 0===s&&(s=[]),(new e_).buildKeyframes(e,t,n,r,i,o,l,u,a,s)}var e_=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,i,o,l,u,a,s){void 0===s&&(s=[]),a=a||new Jk;var c=new n_(e,t,a,r,i,s,[]);c.options=u,c.currentTimeline.setStyles([o],null,c.errors,u),Nk(this,n,c);var p=c.timelines.filter(function(e){return e.containsAnimation()});if(p.length&&Object.keys(l).length){var f=p[p.length-1];f.allowOnlyTimelineStyles()||f.setStyles([l],null,c.errors,u)}return p.length?p.map(function(e){return e.buildKeyframes()}):[qk(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 r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}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 r=t.currentTimeline.currentTime,i=null!=n.duration?gk(n.duration):null,o=null!=n.delay?gk(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Nk(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=t_);var l=gk(o.delay);i.delayNextStep(l)}e.steps.length&&(e.steps.forEach(function(e){return Nk(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?gk(e.options.delay):0;e.steps.forEach(function(l){var u=t.createSubContext(e.options);o&&u.delayNextStep(o),Nk(n,l,u),i=Math.max(i,u.currentTimeline.currentTime),r.push(u.currentTimeline)}),r.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 kk(t.params?Ek(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),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.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,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?gk(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=t_);var l=r,u=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=u.length;var a=null;u.forEach(function(r,i){t.currentQueryIndex=i;var u=t.createSubContext(e.options,r);o&&u.delayNextStep(o),r===t.element&&(a=u.currentTimeline),Nk(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,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),l=o*(t.currentQueryTotal-1),u=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":u=l-u;break;case"full":u=n.currentStaggerTime}var a=t.currentTimeline;u&&a.delayNextStep(u);var s=a.currentTime;Nk(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-s+(r.startTime-n.currentTimeline.startTime)},e}(),t_={},n_=function(){function e(e,t,n,r,i,o,l,u){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=t_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new r_(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 r=e,i=this.options;null!=r.duration&&(i.duration=gk(r.duration)),null!=r.delay&&(i.delay=gk(r.delay));var o=r.params;if(o){var l=i.params;l||(l=this.options.params={}),Object.keys(o).forEach(function(e){t&&l.hasOwnProperty(e)||(l[e]=Ek(o[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,r){void 0===t&&(t=null);var i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=t_,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new i_(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r},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,r,i,o){var l=[];if(r&&l.push(this.element),e.length>0){e=(e=e.replace(Yk,"."+this._enterClassName)).replace(Zk,"."+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,Object(N.g)(u))}return i||0!=l.length||o.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),l},e}(),r_=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,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]||Gv,t._currentKeyframe[e]=Gv}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},l=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=Gv}):wk(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(l).forEach(function(e){var t=Ek(l[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:Gv),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 r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,l){var u=wk(o,!0);Object.keys(u).forEach(function(e){var r=u[e];r==qv?t.add(e):r==Gv&&n.add(e)}),r||(u.offset=l/e.duration),i.push(u)});var o=t.size?Pk(t.values()):[],l=n.size?Pk(n.values()):[];if(r){var u=i[0],a=_k(u);u.offset=0,a.offset=1,i=[u,a]}return qk(this.element,i,o,l,this.duration,this.startTime,this.easing,!1)},e}(),i_=function(e){function t(t,n,r,i,o,l,u){void 0===u&&(u=!1);var a=e.call(this,t,n,l.delay)||this;return a.element=n,a.keyframes=r,a.preStyleProps=i,a.postStyleProps=o,a._stretchStartingKeyframe=u,a.timings={duration:l.duration,delay:l.delay,easing:l.easing},a}return Object(N.c)(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,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],l=r+n,u=n/l,a=wk(e[0],!1);a.offset=0,o.push(a);var s=wk(e[0],!1);s.offset=o_(u),o.push(s);for(var c=e.length-1,p=1;p<=c;p++){var f=wk(e[p],!1);f.offset=o_((n+f.offset*r)/l),o.push(f)}r=l,n=0,i="",e=o}return qk(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)},t}(r_);function o_(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var l_=function(){return function(){}}(),u_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(N.c)(t,e),t.prototype.normalizePropertyName=function(e,t){return jk(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var i="",o=n.toString().trim();if(a_[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return o+i},t}(l_),a_=function(){return e="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(","),t={},e.forEach(function(e){return t[e]=!0}),t;var e,t}();function s_(e,t,n,r,i,o,l,u,a,s,c,p,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:l,timelines:u,queriedElements:a,preStyleProps:s,postStyleProps:c,totalTime:p,errors:f}}var c_={},p_=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o},e.prototype.build=function(e,t,n,r,i,o,l,u,a,s){var c=[],p=this.ast.options&&this.ast.options.params||c_,f=this.buildStyles(n,l&&l.params||c_,c),d=u&&u.params||c_,h=this.buildStyles(r,d,c),y=new Set,b=new Map,m=new Map,g="void"===r,v={params:Object(N.a)({},p,d)},k=s?[]:Xk(e,t,this.ast.animation,i,o,f,h,v,a,c),_=0;if(k.forEach(function(e){_=Math.max(e.duration+e.delay,_)}),c.length)return s_(t,this._triggerName,n,r,g,f,h,[],[],b,m,_,c);k.forEach(function(e){var n=e.element,r=nk(b,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=nk(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&y.add(n)});var w=Pk(y.values());return s_(t,this._triggerName,n,r,g,f,h,k,w,b,m,_)},e}(),f_=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=_k(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=Ek(o,r,t)),n[e]=o})}}),n},e}(),d_=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 f_(e.style,e.options&&e.options.params||{})}),h_(this.states,"true","1"),h_(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new p_(e,t,n.states))}),this.fallbackTransition=new p_(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,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function h_(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var y_=new Jk,b_=function(){function e(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=Gk(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]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,i=Zv(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var i,o=[],l=this._animations[e],u=new Map;if(l?(i=Xk(this._driver,t,l,"ng-enter","ng-leave",{},{},n,y_,o)).forEach(function(e){var t=nk(u,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));u.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,Gv)})});var a=Yv(i.map(function(e){var t=u.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(function(){return r.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,r){var i=tk(t,"","","");return Xv(this._getPlayer(e),n,i,r),function(){}},e.prototype.command=function(e,t,n,r){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(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),m_=[],g_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},v_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},k_="__ng_removed",__=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 r=_k(e);delete r.value,this.options=r}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}(),w_=new __("void"),O_=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,P_(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var i,o=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=nk(this._elementListeners,e,[]),u={name:t,phase:n,callback:r};l.push(u);var a=nk(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(P_(e,"ng-trigger"),P_(e,"ng-trigger-"+t),a[t]=w_),function(){o._engine.afterFlush(function(){var e=l.indexOf(u);e>=0&&l.splice(e,1),o._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,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(t),l=new C_(this.id,t,e),u=this._engine.statesByElement.get(e);u||(P_(e,"ng-trigger"),P_(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,u={}));var a=u[t],s=new __(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&s.absorbOptions(a.options),u[t]=s,a||(a=w_),"void"===s.value||a.value!==s.value){var c=nk(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var p=o.matchTransition(a.value,s.value,e,s.params),f=!1;if(!p){if(!r)return;p=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:p,fromState:a,toState:s,player:l,isFallbackTransition:f}),f||(P_(e,"ng-animate-queued"),l.onStart(function(){I_(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 r=n.indexOf(l);r>=0&&n.splice(r,1)}}),this.players.push(l),c.push(l),l}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}(a.params,s.params)){var d=[],h=o.matchStyles(a.value,a.params,d),y=o.matchStyles(s.value,s.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(function(){Tk(e,h),Ck(e,y)})}},e.prototype.deregister=function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,r){t._elementListeners.set(r,n.filter(function(t){return t.name!=e}))})},e.prototype.clearElementCache=function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))},e.prototype._signalRemovalForInnerTriggers=function(e,t,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(e,".ng-trigger",!0).forEach(function(e){if(!e[k_]){var n=r._engine.fetchNamespacesByElement(e);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):r.clearElementCache(e)}})},e.prototype.triggerLeaveAnimation=function(e,t,n,r){var i=this,o=this._engine.statesByElement.get(e);if(o){var l=[];if(Object.keys(o).forEach(function(t){if(i._triggers[t]){var n=i.trigger(e,t,"void",r);n&&l.push(n)}}),l.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Yv(l).onDone(function(){return i._engine.processLeaveNode(e)}),!0}return!1},e.prototype.prepareLeaveAnimationListeners=function(e){var t=this,n=this._elementListeners.get(e);if(n){var r=new Set;n.forEach(function(n){var i=n.name;if(!r.has(i)){r.add(i);var o=t._triggers[i].fallbackTransition,l=t._engine.statesByElement.get(e)[i]||w_,u=new __("void"),a=new C_(t.id,i,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:i,transition:o,fromState:l,toState:u,player:a,isFallbackTransition:!0})}})}},e.prototype.removeNode=function(e,t){var n=this,r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),!this.triggerLeaveAnimation(e,t,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else for(var l=e;l=l.parentNode;)if(r.statesByElement.get(l)){i=!0;break}}this.prepareLeaveAnimationListeners(e),i?r.markElementAsRemoved(this.id,e,!1,t):(r.afterFlush(function(){return n.clearElementCache(e)}),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}},e.prototype.insertNode=function(e,t){P_(e,this._hostClassName)},e.prototype.drainQueuedTransitions=function(e){var t=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var o=r.element,l=t._elementListeners.get(o);l&&l.forEach(function(t){if(t.name==r.triggerName){var n=tk(o,r.triggerName,r.fromState.value,r.toState.value);n._data=e,Xv(r.player,t.phase,n,t.callback)}}),i.markedForDestroy?t._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(e,n){var r=e.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:t._engine.driver.containsElement(e.element,n.element)?1:-1})},e.prototype.destroy=function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)},e.prototype.elementContainsData=function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t},e}(),A_=function(){function e(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return e.prototype._onRemovalComplete=function(e,t){this.onRemovalComplete(e,t)},Object.defineProperty(e.prototype,"queuedPlayers",{get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e},enumerable:!0,configurable:!0}),e.prototype.createNamespace=function(e,t){var n=new O_(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n},e.prototype._balanceNamespaceList=function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||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 r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.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 r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var l=this._fetchNamespace(o);l&&t.add(l)}}return t},e.prototype.trigger=function(e,t,n,r){if(T_(t)){var i=this._fetchNamespace(e);if(i)return i.trigger(t,n,r),!0}return!1},e.prototype.insertNode=function(e,t,n,r){if(T_(t)){var i=t[k_];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var l=this._fetchNamespace(e);l&&l.insertNode(t,n)}r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),P_(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),I_(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n,r){if(T_(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[k_]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,i){return T_(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}},e.prototype._buildInstruction=function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return Yv(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[k_];if(n&&n.setForRemoval){if(e[k_]=g_,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)P_(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,e)}finally{for(r=0;r<i.length;r++)i[r]()}}else for(r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var o=this._whenQuietFns;this._whenQuietFns=[],n.length?Yv(n).onDone(function(){o.forEach(function(e){return e()})}):o.forEach(function(e){return e()})}},e.prototype.reportError=function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))},e.prototype._flushAnimations=function(e,t){var n=this,r=new Jk,i=[],o=new Map,l=[],u=new Map,a=new Map,s=new Map,c=new Set;this.disabledNodes.forEach(function(e){c.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),r=0;r<t.length;r++)c.add(t[r])});var p=this.bodyNode,f=Array.from(this.statesByElement.keys()),d=M_(f,this.collectedEnterElements),h=new Map,y=0;d.forEach(function(e,t){var n="ng-enter"+y++;h.set(t,n),e.forEach(function(e){return P_(e,n)})});for(var b=[],m=new Set,g=new Set,v=0;v<this.collectedLeaveElements.length;v++)(D=(L=this.collectedLeaveElements[v])[k_])&&D.setForRemoval&&(b.push(L),m.add(L),D.hasAnimation?this.driver.query(L,".ng-star-inserted",!0).forEach(function(e){return m.add(e)}):g.add(L));var k=new Map,_=M_(f,Array.from(m));_.forEach(function(e,t){var n="ng-leave"+y++;k.set(t,n),e.forEach(function(e){return P_(e,n)})}),e.push(function(){d.forEach(function(e,t){var n=h.get(t);e.forEach(function(e){return I_(e,n)})}),_.forEach(function(e,t){var n=k.get(t);e.forEach(function(e){return I_(e,n)})}),b.forEach(function(e){n.processLeaveNode(e)})});for(var w=[],O=[],A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(w.push(t),n.collectedEnterElements.length){var c=o[k_];if(c&&c.setForMove)return void t.destroy()}var f=!p||!n.driver.containsElement(p,o),d=k.get(o),y=h.get(o),b=n._buildInstruction(e,r,y,d,f);if(b.errors&&b.errors.length)O.push(b);else{if(f)return t.onStart(function(){return Tk(o,b.fromStyles)}),t.onDestroy(function(){return Ck(o,b.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Tk(o,b.fromStyles)}),t.onDestroy(function(){return Ck(o,b.toStyles)}),void i.push(t);b.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,b.timelines),l.push({instruction:b,player:t,element:o}),b.queriedElements.forEach(function(e){return nk(u,e,[]).push(t)}),b.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=a.get(t);r||a.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),b.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=s.get(t);r||s.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(O.length){var C=[];O.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 T=new Map,x=new Map;l.forEach(function(e){var t=e.element;r.has(t)&&(x.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){nk(T,t,[]).push(e),e.destroy()})});var S=b.filter(function(e){return R_(e,a,s)}),M=new Map;S_(M,this.driver,g,s,Gv).forEach(function(e){R_(e,a,s)&&S.push(e)});var E=new Map;d.forEach(function(e,t){S_(E,n.driver,new Set(e),a,qv)}),S.forEach(function(e){var t=M.get(e),n=E.get(e);M.set(e,Object(N.a)({},t,n))});var P=[],I=[],j={};l.forEach(function(e){var t=e.element,l=e.player,u=e.instruction;if(r.has(t)){if(c.has(t))return l.onDestroy(function(){return Ck(t,u.toStyles)}),l.disabled=!0,l.overrideTotalTime(u.totalTime),void i.push(l);var a=j;if(x.size>1){for(var s=t,p=[];s=s.parentNode;){var f=x.get(s);if(f){a=f;break}p.push(s)}p.forEach(function(e){return x.set(e,a)})}var d=n._buildAnimation(l.namespaceId,u,T,o,E,M);if(l.setRealPlayer(d),a===j)P.push(l);else{var h=n.playersByElement.get(a);h&&h.length&&(l.parentPlayer=Yv(h)),i.push(l)}}else Tk(t,u.fromStyles),l.onDestroy(function(){return Ck(t,u.toStyles)}),I.push(l),c.has(t)&&i.push(l)}),I.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=Yv(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var R=0;R<b.length;R++){var L,D=(L=b[R])[k_];if(I_(L,"ng-leave"),!D||!D.hasAnimation){var U=[];if(u.size){var F=u.get(L);F&&F.length&&U.push.apply(U,Object(N.g)(F));for(var K=this.driver.query(L,".ng-animating",!0),B=0;B<K.length;B++){var V=u.get(K[B]);V&&V.length&&U.push.apply(U,Object(N.g)(V))}}var G=U.filter(function(e){return!e.destroyed});G.length?j_(this,L,G):this.processLeaveNode(L)}}return b.length=0,P.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),P},e.prototype.elementContainsData=function(e,t){var n=!1,r=t[k_];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n},e.prototype.afterFlush=function(e){this._flushFns.push(e)},e.prototype.afterFlushAnimationsDone=function(e){this._whenQuietFns.push(e)},e.prototype._getPreviousPlayers=function(e,t,n,r,i){var o=[];if(t){var l=this.playersByQueriedElement.get(e);l&&(o=l)}else{var u=this.playersByElement.get(e);if(u){var a=!i||"void"==i;u.forEach(function(e){e.queued||(a||e.triggerName==r)&&o.push(e)})}}return(n||r)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||r&&r!=e.triggerName)})),o},e.prototype._beforeAnimationBuild=function(e,t,n){var r,i,o=t.element,l=t.isRemovalTransition?void 0:e,u=t.isRemovalTransition?void 0:t.triggerName,a=function(e){var r=e.element,i=r!==o,a=nk(n,r,[]);s._getPreviousPlayers(r,i,l,u,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),a.push(e)})},s=this;try{for(var c=Object(N.h)(t.timelines),p=c.next();!p.done;p=c.next())a(p.value)}catch(f){r={error:f}}finally{try{p&&!p.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}Tk(o,t.fromStyles)},e.prototype._buildAnimation=function(e,t,n,r,i,o){var l=this,u=t.triggerName,a=t.element,s=[],c=new Set,p=new Set,f=t.timelines.map(function(t){var f=t.element;c.add(f);var d=f[k_];if(d&&d.removedBeforeQueried)return new Qv(t.duration,t.delay);var h,y,b=f!==a,m=(h=(n.get(f)||m_).map(function(e){return e.getRealPlayer()}),y=[],function e(t,n){for(var r=0;r<t.length;r++){var i=t[r];i instanceof Wv?e(i.players,n):n.push(i)}}(h,y),y).filter(function(e){return!!e.element&&e.element===f}),g=i.get(f),v=o.get(f),k=Zv(0,l._normalizer,0,t.keyframes,g,v),_=l._buildPlayer(t,k,m);if(t.subTimeline&&r&&p.add(f),b){var w=new C_(e,u,f);w.setRealPlayer(_),s.push(w)}return _});s.forEach(function(e){nk(l.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var r;if(e instanceof Map){if(r=e.get(t)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&e.delete(t)}}else(r=e[t])&&(r.length&&(i=r.indexOf(n),r.splice(i,1)),0==r.length&&delete e[t]);return r}(l.playersByQueriedElement,e.element,e)})}),c.forEach(function(e){return P_(e,"ng-animating")});var d=Yv(f);return d.onDestroy(function(){c.forEach(function(e){return I_(e,"ng-animating")}),Ck(a,t.toStyles)}),p.forEach(function(e){nk(r,e,[]).push(d)}),d},e.prototype._buildPlayer=function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Qv(e.duration,e.delay)},e}(),C_=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Qv,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=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 Xv(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.overrideTotalTime=function(e){this.totalTime=e},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){nk(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()},e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function T_(e){return e&&1===e.nodeType}function x_(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function S_(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(x_(e))});var l=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r[k_]=v_,l.push(r))}),e.set(r,o)});var u=0;return n.forEach(function(e){return x_(e,o[u++])}),l}function M_(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var l=t.parentNode;return o=n.has(l)?l:r.has(l)?1:e(l),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}var E_="$$classes";function P_(e,t){if(e.classList)e.classList.add(t);else{var n=e[E_];n||(n=e[E_]={}),n[t]=!0}}function I_(e,t){if(e.classList)e.classList.remove(t);else{var n=e[E_];n&&delete n[t]}}function j_(e,t,n){Yv(n).onDone(function(){return e.processLeaveNode(t)})}function R_(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var L_=function(){function e(e,t,n){var r=this;this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new A_(e,t,n),this._timelineEngine=new b_(e,t,n),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,i){var o=e+"-"+r,l=this._triggerCache[o];if(!l){var u=[],a=Gk(this._driver,i,u);if(u.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+u.join("\n - "));l=function(e,t){return new d_(e,t)}(r,a),this._triggerCache[o]=l}this._transitionEngine.registerTrigger(t,r,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,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var i=Object(N.f)(rk(n),2);this._timelineEngine.command(i[0],t,i[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,i){if("@"==n.charAt(0)){var o=Object(N.f)(rk(n),2);return this._timelineEngine.listen(o[0],t,o[1],i)}return this._transitionEngine.listen(e,t,n,r,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}();function N_(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=U_(t[0]),t.length>1&&(r=U_(t[t.length-1]))):t&&(n=U_(t)),n||r?new D_(e,n,r):null}var D_=function(){function e(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return e.prototype.start=function(){this._state<1&&(this._startStyles&&Ck(this._element,this._startStyles,this._initialStyles),this._state=1)},e.prototype.finish=function(){this.start(),this._state<2&&(Ck(this._element,this._initialStyles),this._endStyles&&(Ck(this._element,this._endStyles),this._endStyles=null),this._state=1)},e.prototype.destroy=function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Tk(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Tk(this._element,this._endStyles),this._endStyles=null),Ck(this._element,this._initialStyles),this._state=3)},e.initialStylesByElement=new WeakMap,e}();function U_(e){for(var t=null,n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];F_(i)&&((t=t||{})[i]=e[i])}return t}function F_(e){return"display"===e||"position"===e}var K_="animation",B_="animationend",V_=function(){function e(e,t,n,r,i,o,l){var u=this;this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=l,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return u._handleCallback(e)}}return e.prototype.apply=function(){var e,t,n;t=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=W_(e=this._element,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t=n+", "+t),Q_(e,"",t),z_(this._element,this._eventFn,!1),this._startTime=Date.now()},e.prototype.pause=function(){G_(this._element,this._name,"paused")},e.prototype.resume=function(){G_(this._element,this._name,"running")},e.prototype.setPosition=function(e){var t=H_(this._element,this._name);this._position=e*this._duration,Q_(this._element,"Delay","-"+this._position+"ms",t)},e.prototype.getPosition=function(){return this._position},e.prototype._handleCallback=function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()},e.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),z_(this._element,this._eventFn,!0))},e.prototype.destroy=function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(r=$_(n=W_(e=this._element,"").split(","),t))>=0&&(n.splice(r,1),Q_(e,"",n.join(","))))},e}();function G_(e,t,n){Q_(e,"PlayState",n,H_(e,t))}function H_(e,t){var n=W_(e,"");return n.indexOf(",")>0?$_(n.split(","),t):$_([n],t)}function $_(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function z_(e,t,n){n?e.removeEventListener(B_,t):e.addEventListener(B_,t)}function Q_(e,t,n,r){var i=K_+t;if(null!=r){var o=e.style[i];if(o.length){var l=o.split(",");l[r]=n,n=l.join(",")}}e.style[i]=n}function W_(e,t){return e.style[K_+t]}var q_="linear",J_=function(){function e(e,t,n,r,i,o,l,u){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=l,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||q_,this.totalTime=r+i,this._buildStyler()}return 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.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},e.prototype._flushStartFns=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},e.prototype.setPosition=function(e){this._styler.setPosition(e)},e.prototype.getPosition=function(){return this._styler.getPosition()},e.prototype.hasStarted=function(){return this._state>=2},e.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},e.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},e.prototype.pause=function(){this.init(),this._styler.pause()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},e.prototype._buildStyler=function(){var e=this;this._styler=new V_(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e.prototype.beforeDestroy=function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:Dk(e.element,r))})}this.currentSnapshot=t},e}(),Y_=function(e){function t(t,n){var r=e.call(this)||this;return r.element=t,r._startingStyles={},r.__initialized=!1,r._styles=hk(n),r}return Object(N.c)(t,e),t.prototype.init=function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),e.prototype.init.call(this))},t.prototype.play=function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),e.prototype.play.call(this))},t.prototype.destroy=function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,e.prototype.destroy.call(this))},t}(Qv),Z_=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return e.prototype.validateStyleProperty=function(e){return ck(e)},e.prototype.matchesElement=function(e,t){return pk(e,t)},e.prototype.containsElement=function(e,t){return fk(e,t)},e.prototype.query=function(e,t,n){return dk(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.buildKeyframeElement=function(e,t,n){n=n.map(function(e){return hk(e)});var r="@keyframes "+t+" {\n",i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+=""+i+100*t+"% {\n",i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+t+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},e.prototype.animate=function(e,t,n,r,i,o,l){void 0===o&&(o=[]),l&&this._notifyFaultyScrubber();var u=o.filter(function(e){return e instanceof J_}),a={};Rk(n,r)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return a[e]=t[e]})});var s=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Lk(e,t,a));if(0==n)return new Y_(e,s);var c="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(p);var f=N_(e,t),d=new J_(e,t,c,n,r,i,s,f);return d.onDestroy(function(){var e;(e=p).parentNode.removeChild(e)}),d},e.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},e}(),X_=function(){function e(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,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.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}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;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},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.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Dk(e.element,n))}),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),ew=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(tw().toString()),this._cssKeyframesDriver=new Z_}return e.prototype.validateStyleProperty=function(e){return ck(e)},e.prototype.matchesElement=function(e,t){return pk(e,t)},e.prototype.containsElement=function(e,t){return fk(e,t)},e.prototype.query=function(e,t,n){return dk(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.overrideWebAnimationsSupport=function(e){this._isNativeImpl=e},e.prototype.animate=function(e,t,n,r,i,o,l){if(void 0===o&&(o=[]),!l&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var u={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(u.easing=i);var a={},s=o.filter(function(e){return e instanceof X_});Rk(n,r)&&s.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return a[e]=t[e]})});var c=N_(e,t=Lk(e,t=t.map(function(e){return wk(e,!1)}),a));return new X_(e,t,u,c)},e}();function tw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var nw=function(e){function t(t,n){var i=e.call(this)||this;return i._nextAnimationId=0,i._renderer=t.createRenderer(n.body,{id:"0",encapsulation:r.Q.None,styles:[],data:{animation:[]}}),i}return Object(N.c)(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Hv(e):e;return ow(this._renderer,null,t,"register",[n]),new rw(t,this._renderer)},t}(Bv),rw=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return Object(N.c)(t,e),t.prototype.create=function(e,t){return new iw(this._id,e,t||{},this._renderer)},t}(Vv),iw=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ow(this._renderer,this.element,this.id,e,t)},e.prototype.onDone=function(e){this._listen("done",e)},e.prototype.onStart=function(e){this._listen("start",e)},e.prototype.onDestroy=function(e){this._listen("destroy",e)},e.prototype.init=function(){this._command("init")},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this._command("play"),this._started=!0},e.prototype.pause=function(){this._command("pause")},e.prototype.restart=function(){this._command("restart")},e.prototype.finish=function(){this._command("finish")},e.prototype.destroy=function(){this._command("destroy")},e.prototype.reset=function(){this._command("reset")},e.prototype.setPosition=function(e){this._command("setPosition",e)},e.prototype.getPosition=function(){return 0},e}();function ow(e,t,n,r,i){return e.setProperty(t,"@@"+n+":"+r,i)}var lw=function(){function e(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return e.prototype.createRenderer=function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var i=this._rendererCache.get(r);return i||(i=new uw("",r,this.engine),this._rendererCache.set(r,i)),i}var o=t.id,l=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(l,e),t.data.animation.forEach(function(t){return n.engine.registerTrigger(o,l,e,t.name,t)}),new aw(this,l,r,this.engine)},e.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},e.prototype._scheduleCountTask=function(){var e=this;this.promise.then(function(){e._microtaskId++})},e.prototype.scheduleListenerCallback=function(e,t,n){var r=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(e){var t=Object(N.f)(e,2);(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))},e.prototype.end=function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},e}(),uw=function(){function e(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(e){return t.destroyNode(e)}:null}return Object.defineProperty(e.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},e.prototype.createElement=function(e,t){return this.delegate.createElement(e,t)},e.prototype.createComment=function(e){return this.delegate.createComment(e)},e.prototype.createText=function(e){return this.delegate.createText(e)},e.prototype.appendChild=function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)},e.prototype.insertBefore=function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)},e.prototype.removeChild=function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)},e.prototype.selectRootElement=function(e,t){return this.delegate.selectRootElement(e,t)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setAttribute=function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)},e.prototype.setValue=function(e,t){this.delegate.setValue(e,t)},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.disableAnimations=function(e,t){this.engine.disableAnimations(e,t)},e}(),aw=function(e){function t(t,n,r,i){var o=e.call(this,n,r,i)||this;return o.factory=t,o.namespaceId=n,o}return Object(N.c)(t,e),t.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)},t.prototype.listen=function(e,t,n){var r,i,o,l=this;if("@"==t.charAt(0)){var u=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),s="";return"@"!=a.charAt(0)&&(a=(r=Object(N.f)((i=a,o=i.indexOf("."),[i.substring(0,o),i.substr(o+1)]),2))[0],s=r[1]),this.engine.listen(this.namespaceId,u,a,s,function(e){l.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)},t}(uw),sw=function(e){function t(t,n,r){return e.call(this,t.body,n,r)||this}return Object(N.c)(t,e),t}(L_);function cw(){return"function"==typeof tw()?new ew:new Z_}function pw(){return new u_}function fw(e,t,n){return new lw(e,t,n)}var dw=new r.q("AnimationModuleType"),hw=function(){return function(){}}(),yw=function(){return function(){}}(),bw=function(){return function(){}}(),mw=function(){function e(e){var t=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){t.headers=new Map,e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>0){var r=e.slice(0,n),i=r.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(r,i),t.headers.has(i)?t.headers.get(i).push(o):t.headers.set(i,[o])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(i,r),t.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,Object(N.g)(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})},e}(),gw=function(){function e(){}return e.prototype.encodeKey=function(e){return vw(e)},e.prototype.encodeValue=function(e){return vw(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();function vw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var kw=function(){function e(e){var t,n,r,i=this;if(void 0===e&&(e={}),this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new gw,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=e.fromString,n=this.encoder,r=new Map,t.length>0&&t.split("&").forEach(function(e){var t=e.indexOf("="),i=Object(N.f)(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),o=i[0],l=i[1],u=r.get(o)||[];u.push(l),r.set(o,u)}),r)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(t){var n=e.fromObject[t];i.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)},e}();function _w(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function ww(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Ow(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Aw=function(){function e(e,t,n,r){var i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new mw),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var l=t.indexOf("?");this.urlWithParams=t+(-1===l?"?":l<t.length-1?"&":"")+o}}else this.params=new kw,this.urlWithParams=t}return e.prototype.serializeBody=function(){return null===this.body?null:_w(this.body)||ww(this.body)||Ow(this.body)||"string"==typeof this.body?this.body:this.body instanceof kw?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},e.prototype.detectContentTypeHeader=function(){return null===this.body?null:Ow(this.body)?null:ww(this.body)?this.body.type||null:_w(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof kw?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},e.prototype.clone=function(t){void 0===t&&(t={});var n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,l=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,u=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,a=t.headers||this.headers,s=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},a)),t.setParams&&(s=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},s)),new e(n,r,o,{params:s,headers:a,reportProgress:u,responseType:i,withCredentials:l})},e}(),Cw=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),Tw=function(){return function(e,t,n){void 0===t&&(t=200),void 0===n&&(n="OK"),this.headers=e.headers||new mw,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}(),xw=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=Cw.ResponseHeader,n}return Object(N.c)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(Tw),Sw=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=Cw.Response,n.body=void 0!==t.body?t.body:null,n}return Object(N.c)(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(Tw),Mw=function(e){function t(t){var n=e.call(this,t,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,n.error=t.error||null,n}return Object(N.c)(t,e),t}(Tw);function Ew(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Pw=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var r,i=this;if(void 0===n&&(n={}),e instanceof Aw)r=e;else{var o;o=n.headers instanceof mw?n.headers:new mw(n.headers);var l=void 0;n.params&&(l=n.params instanceof kw?n.params:new kw({fromObject:n.params})),r=new Aw(e,t,void 0!==n.body?n.body:null,{headers:o,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var u=Object(_e.a)(r).pipe(Object(dt.a)(function(e){return i.handler.handle(e)}));if(e instanceof Aw||"events"===n.observe)return u;var a=u.pipe(Object(Ve.a)(function(e){return e instanceof Sw}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(Object(Fe.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return a.pipe(Object(Fe.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return a.pipe(Object(Fe.a)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return a.pipe(Object(Fe.a)(function(e){return e.body}))}case"response":return a;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new kw).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,Ew(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,Ew(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,Ew(n,t))},e}(),Iw=function(){function e(e,t){this.next=e,this.interceptor=t}return e.prototype.handle=function(e){return this.interceptor.intercept(e,this.next)},e}(),jw=new r.q("HTTP_INTERCEPTORS"),Rw=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e}(),Lw=/^\)\]\}',?\n/,Nw=function(){return function(){}}(),Dw=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}(),Uw=function(){function e(e){this.xhrFactory=e}return e.prototype.handle=function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new Ae.a(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var l=e.serializeBody(),u=null,a=function(){if(null!==u)return u;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new mw(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return u=new xw({headers:i,status:t,statusText:n,url:o})},s=function(){var t=a(),i=t.headers,o=t.status,l=t.statusText,u=t.url,s=null;204!==o&&(s=void 0===r.response?r.responseText:r.response),0===o&&(o=s?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof s){var p=s;s=s.replace(Lw,"");try{s=""!==s?JSON.parse(s):null}catch(f){s=p,c&&(c=!1,s={error:f,text:s})}}c?(n.next(new Sw({body:s,headers:i,status:o,statusText:l,url:u||void 0})),n.complete()):n.error(new Mw({error:s,headers:i,status:o,statusText:l,url:u||void 0}))},c=function(e){var t=a().url,i=new Mw({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},p=!1,f=function(t){p||(n.next(a()),p=!0);var i={type:Cw.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(e){var t={type:Cw.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",s),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",f),null!==l&&r.upload&&r.upload.addEventListener("progress",d)),r.send(l),n.next({type:Cw.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",s),e.reportProgress&&(r.removeEventListener("progress",f),null!==l&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},e}(),Fw=new r.q("XSRF_COOKIE_NAME"),Kw=new r.q("XSRF_HEADER_NAME"),Bw=function(){return function(){}}(),Vw=function(){function e(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return e.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Y(e,this.cookieName),this.lastCookieString=e),this.lastToken},e}(),Gw=function(){function e(e,t){this.tokenService=e,this.headerName=t}return e.prototype.intercept=function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)},e}(),Hw=function(){function e(e,t){this.backend=e,this.injector=t,this.chain=null}return e.prototype.handle=function(e){if(null===this.chain){var t=this.injector.get(jw,[]);this.chain=t.reduceRight(function(e,t){return new Iw(e,t)},this.backend)}return this.chain.handle(e)},e}(),$w=function(){function e(){}var t;return t=e,e.disable=function(){return{ngModule:t,providers:[{provide:Gw,useClass:Rw}]}},e.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:Fw,useValue:e.cookieName}:[],e.headerName?{provide:Kw,useValue:e.headerName}:[]]}},e}(),zw=function(){return function(){}}(),Qw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(Uu).pipe(gt(function(t){t&&e.router.navigate(["/keymap",t.abbreviation])}),Object(st.a)(function(){return Object(_e.a)(!1)}))},e}(),Ww=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(Ku).pipe(Object(Fe.a)(function(t){var n=t.length>0;return n&&e.router.navigate(["/macro",t[0].id]),!n}))},e}(),qw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(pa).pipe(gt(function(t){t&&e.router.navigate(["/"])}),Object(Fe.a)(function(e){return!e}))},e}(),Jw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(pa).pipe(gt(function(t){t||e.router.navigate(["/detection"])}))},e}(),Yw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(fa).pipe(gt(function(t){t&&e.router.navigate(["/detection"])}),Object(Fe.a)(function(e){return!e}))},e}(),Zw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(fa).pipe(gt(function(t){t||e.router.navigate(["/privilege"])}))},e}(),Xw=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(Yu).pipe(gt(function(t){t||e.router.navigate(["/loading"])}))},e}(),eO=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(Yu).pipe(gt(function(t){t&&e.router.navigate(["/"])}),Object(Fe.a)(function(e){return!e}))},e}(),tO=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(wa).pipe(gt(function(t){t||e.router.navigate(["/"])}))},e}(),nO=n("A5yv"),rO=function(){return function(){}}(),iO=n("60iU"),oO=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new lO(e))},e}(),lO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N.c(t,e),t.prototype._next=function(e){},t}(Ge.a),uO=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new aO(e))},e}(),aO=function(e){function t(t){return e.call(this,t)||this}return N.c(t,e),t.prototype._next=function(e){this.destination.next(iO.a.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(iO.a.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(iO.a.createComplete()),e.complete()},t}(Ge.a);function sO(e,t,n,r){return function(i){return i.lift(new cO(e,t,n,r))}}var cO=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new pO(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),pO=function(e){function t(t,n,r,i,o){var l=e.call(this,t)||this;return l.keySelector=n,l.elementSelector=r,l.durationSelector=i,l.subjectSelector=o,l.groups=null,l.attemptedToUnsubscribe=!1,l.count=0,l}return N.c(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(u){this.error(u)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new Ue.a,n.set(t,i);var o=new dO(t,i,this);if(this.destination.next(o),this.durationSelector){var l=void 0;try{l=this.durationSelector(new dO(t,i))}catch(u){return void this.error(u)}this.add(l.subscribe(new fO(t,i,this)))}}i.closed||i.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(Ge.a),fO=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return N.c(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(Ge.a),dO=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return N.c(t,e),t.prototype._subscribe=function(e){var t=new _t.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new hO(n)),t.add(r.subscribe(e)),t},t}(Ae.a),hO=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return N.c(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(_t.a),yO=n("rPjj"),bO=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new mO(e,this.project))},e}(),mO=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return N.c(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new yO.a(this,void 0,void 0);this.destination.add(r),Object(Ee.a)(this,e,t,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(Me.a),gO=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new vO(e))},e}(),vO=function(e){function t(t){return e.call(this,t)||this}return N.c(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(Ge.a),kO="__@ngrx/effects_create__";function _O(e){return Object.getOwnPropertyNames(e).filter(function(t){return e[t]&&e[t].hasOwnProperty(kO)}).map(function(t){var n=e[t][kO];return Object(N.a)({propertyName:t},n)})}function wO(e){return Object.getPrototypeOf(e)}var OO="__@ngrx/effects__";function AO(e){var t=void 0===e?{}:e,n=t.dispatch,r=void 0===n||n,i=t.resubscribeOnError,o=void 0===i||i;return function(e,t){var n,i,l;n=[{propertyName:t,dispatch:r,resubscribeOnError:o}],l=(i=e.constructor).hasOwnProperty(OO)?i[OO]:Object.defineProperty(i,OO,{value:[]})[OO],Array.prototype.push.apply(l,n)}}function CO(e){return Object(L.t)(TO,wO)(e)}function TO(e){return e.constructor.hasOwnProperty(OO)?e.constructor[OO]:[]}var xO=function(e){function t(t){var n=e.call(this)||this;return t&&(n.source=t),n}var n;return Object(N.c)(t,e),n=t,t.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},t}(Ae.a);function SO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object(Ve.a)(function(t){return e.some(function(e){return"string"==typeof e?e===t.type:e.type===t.type})})}var MO="ngrxOnIdentifyEffects",EO=function(e){function t(t,n){var r=e.call(this)||this;return r.errorHandler=t,r.store=n,r}return Object(N.c)(t,e),t.prototype.addEffects=function(e){this.next(e),"ngrxOnInitEffects"in e&&"function"==typeof e.ngrxOnInitEffects&&this.store.dispatch(e.ngrxOnInitEffects())},t.prototype.toActions=function(){var e=this;return this.pipe(sO(wO),Object(lt.a)(function(e){return e.pipe(sO(PO))}),Object(lt.a)(function(t){return t.pipe(function e(t,n){return n?function(r){return r.pipe(e(function(e,r){return Object(we.a)(t(e,r)).pipe(Object(Fe.a)(function(t,i){return n(e,t,r,i)}))}))}:function(e){return e.lift(new bO(t))}}((n=e.errorHandler,function(e){var t=function(e,t){var n,r=wO(e).constructor.name,i=(n=e,[CO,_O].reduce(function(e,t){return e.concat(t(n))},[])).map(function(n){var i=n.propertyName,o=n.dispatch,l=n.resubscribeOnError,u="function"==typeof e[i]?e[i]():e[i],a=l?u.pipe(Object(rt.a)(function(e){return t&&t.handleError(e),u})):u;return!1===o?a.pipe(function(e){return e.lift(new oO)}):a.pipe(function(e){return e.lift(new uO)}).pipe(Object(Fe.a)(function(t){return{effect:e[i],notification:t,propertyName:i,sourceName:r,sourceInstance:e}}))});return Ah.a.apply(void 0,Object(N.g)(i))}(e,n);return function(e){var t=wO(e);return"ngrxOnRunEffects"in t&&"function"==typeof t.ngrxOnRunEffects}(e)?e.ngrxOnRunEffects(t):t})),Object(Fe.a)(function(t){return function(e,t){if("N"===e.notification.kind){var n=e.notification.value;!function(e){return"function"!=typeof e&&e&&e.type&&"string"==typeof e.type}(n)&&t.handleError(new Error('Effect "'+(r=e).sourceName+"."+(i=r.propertyName)+("function"==typeof r.sourceInstance[i]?"()":"")+'" dispatched an invalid action: '+function(e){try{return JSON.stringify(e)}catch(r){return e}}(n)))}var r,i}(t,e.errorHandler),t.notification}),Object(Ve.a)(function(e){return"N"===e.kind}),function(e){return e.lift(new gO)});var n}))},t}(Ue.a);function PO(e){return MO in e&&"function"==typeof e[MO]?e[MO]():""}var IO=new r.q("ngrx/effects: Root Effects"),jO=function(){function e(e,t){this.effectSources=e,this.store=t,this.effectsSubscription=null}return e.prototype.start=function(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))},e.prototype.ngOnDestroy=function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)},e}(),RO="@ngrx/effects/init",LO=function(){function e(e,t,n,r,i,o){this.sources=e,t.start(),r.forEach(function(t){return e.addEffects(t)}),n.dispatch({type:RO})}return e.prototype.addEffects=function(e){this.sources.addEffects(e)},e}();function NO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e}var DO=function(){function e(){}return e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.on=function(e,t){return this},e}(),UO=function(){function e(e,t,n){this.store=e,this.zone=t,this.ipcRenderer=n,this.registerEvents()}return e.prototype.sendAppStarted=function(){this.ipcRenderer.send($o.IpcEvents.app.appStarted)},e.prototype.sendUpdateAndRestartApp=function(){this.ipcRenderer.send($o.IpcEvents.autoUpdater.updateAndRestart)},e.prototype.checkForUpdate=function(e){this.ipcRenderer.send($o.IpcEvents.autoUpdater.checkForUpdate,e)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on($o.IpcEvents.autoUpdater.updateAvailable,function(t,n){e.writeUpdateState($o.IpcEvents.autoUpdater.updateAvailable,n)}),this.ipcRenderer.on($o.IpcEvents.autoUpdater.updateNotAvailable,function(){e.writeUpdateState($o.IpcEvents.autoUpdater.updateNotAvailable),e.dispachStoreAction(new ou("No update available"))}),this.ipcRenderer.on($o.IpcEvents.autoUpdater.autoUpdateError,function(t,n){e.writeUpdateState($o.IpcEvents.autoUpdater.autoUpdateError,n),e.dispachStoreAction(new s(n))}),this.ipcRenderer.on($o.IpcEvents.autoUpdater.autoUpdateDownloadProgress,function(t,n){e.writeUpdateState($o.IpcEvents.autoUpdater.autoUpdateDownloadProgress,n)}),this.ipcRenderer.on($o.IpcEvents.autoUpdater.autoUpdateDownloaded,function(t,n){e.writeUpdateState($o.IpcEvents.autoUpdater.autoUpdateDownloaded,n),e.dispachStoreAction(new a(n))}),this.ipcRenderer.on($o.IpcEvents.autoUpdater.checkForUpdateNotAvailable,function(t,n){e.writeUpdateState($o.IpcEvents.autoUpdater.checkForUpdateNotAvailable,n),e.dispachStoreAction(new lu(n))})},e.prototype.dispachStoreAction=function(e){var t=this;this.zone.run(function(){return t.store.dispatch(e)})},e.prototype.writeUpdateState=function(e,t){console.log({event:e,arg:t})},e}(),FO=n("S3Q5"),KO=function(){function e(e,t,n,r){this.store=e,this.zone=t,this.ipcRenderer=n,this.logService=r,this.registerEvents(),this.logService.info("[AppRendererService] init success ")}return e.prototype.getAppStartInfo=function(){this.logService.info("[AppRendererService] getAppStartInfo"),this.ipcRenderer.send($o.IpcEvents.app.getAppStartInfo)},e.prototype.exit=function(){this.logService.info("[AppRendererService] exit"),this.ipcRenderer.send($o.IpcEvents.app.exit)},e.prototype.openUrl=function(e){this.logService.info("[AppRendererService] open url: "+e),this.ipcRenderer.send($o.IpcEvents.app.openUrl,e)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on($o.IpcEvents.app.getAppStartInfoReply,function(t,n){e.dispachStoreAction(new bu(n))}),this.ipcRenderer.on("__ELECTRON_LOG_RENDERER__",function(t,n,r){e.zone.run(function(){return e.store.dispatch(new ku({level:n,message:r}))})})},e.prototype.dispachStoreAction=function(e){var t=this;this.logService.info("[AppRendererService] dispatch action",e),this.zone.run(function(){return t.store.dispatch(e)})},e}(),BO=function(){function e(e,t,n,r,i,o){var l=this;this.actions$=e,this.notifierService=t,this.appUpdateRendererService=n,this.appRendererService=r,this.logService=i,this.store=o,this.appStart$=this.actions$.pipe(SO(fu.AppBootstrapped),pt(new du),gt(function(){l.logService.info("Renderer appStart effect start"),l.appUpdateRendererService.sendAppStarted(),l.appRendererService.getAppStartInfo(),l.logService.info("Renderer appStart effect end")})),this.appStartInfo$=this.actions$.pipe(SO(fu.LoadAppStartInfo),gt(function(){l.appRendererService.getAppStartInfo()})),this.showNotification$=this.actions$.pipe(SO(fu.AppShowNotification),Object(Fe.a)(function(e){return e.payload}),gt(function(e){e.type!==$o.NotificationType.Undoable&&l.notifierService.notify(e.type,e.message)})),this.processStartInfo$=this.actions$.pipe(SO(fu.AppProcessStartInfo),Object(Fe.a)(function(e){return e.payload}),Object(lt.a)(function(e){return l.logService.debug("[AppEffect][processStartInfo] payload:",e),[new yu(e),new d(e.deviceConnectionState)]})),this.undoLastNotification$=this.actions$.pipe(SO(fu.UndoLast),Object(Fe.a)(function(e){return e.payload}),Object(lt.a)(function(e){return[e,new gu]})),this.openUrlInNewWindow$=this.actions$.pipe(SO(fu.OpenUrlInNewWindow),Object(Mo.a)(this.store.select(qu)),gt(function(e){var t=e[0].payload;e[1]?l.appRendererService.openUrl(t):window.open(t,"_blank")}))}return N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"appStart$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Ae.a)],e.prototype,"appStartInfo$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Ae.a)],e.prototype,"showNotification$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"processStartInfo$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"undoLastNotification$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"openUrlInNewWindow$",void 0),e}(),VO=function(){function e(e,t,n){var r=this;this.actions$=e,this.appUpdateRendererService=t,this.logService=n,this.appStart$=this.actions$.pipe(SO(o.UpdateApp),ot(),gt(function(){r.appUpdateRendererService.sendUpdateAndRestartApp()})),this.checkForUpdate$=this.actions$.pipe(SO(nu.CheckForUpdateNow),Object(Fe.a)(function(e){return e.payload}),gt(function(e){r.logService.debug("[AppUpdateEffect] call checkForUpdate"),r.appUpdateRendererService.checkForUpdate(e)})),this.handleError$=this.actions$.pipe(SO(o.UpdateError),Object(Fe.a)(function(e){return e.payload}),Object(Fe.a)(function(e){return new hu({type:$o.NotificationType.Error,message:e})}))}return N.b([AO({dispatch:!1}),N.d("design:type",Ae.a)],e.prototype,"appStart$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"checkForUpdate$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"handleError$",void 0),e}(),GO=function(){function e(){}return e.prototype.getConfig=function(){return JSON.parse(localStorage.getItem("config"))},e.prototype.saveConfig=function(e){localStorage.setItem("config",JSON.stringify(e.toJsonObject()))},e.prototype.getAutoUpdateSettings=function(){return JSON.parse(localStorage.getItem("auto-update-settings"))},e.prototype.saveAutoUpdateSettings=function(e){localStorage.setItem("auto-update-settings",JSON.stringify(e))},e}(),HO=function(){function e(){this._defaultConfig=(new $o.UserConfiguration).fromJsonObject(n("NmBN"))}return e.prototype.getDefault=function(){return this._defaultConfig},e}(),$O=function(){function e(e,t,n,r){this.store=e,this.zone=t,this.ipcRenderer=n,this.logService=r,this.registerEvents(),this.logService.info("[DeviceRendererService] init success ")}return e.prototype.setPrivilegeOnLinux=function(){this.ipcRenderer.send($o.IpcEvents.device.setPrivilegeOnLinux)},e.prototype.saveUserConfiguration=function(e){this.ipcRenderer.send($o.IpcEvents.device.saveUserConfiguration,JSON.stringify(e))},e.prototype.loadConfigurationFromKeyboard=function(){this.ipcRenderer.send($o.IpcEvents.device.loadConfigurations)},e.prototype.updateFirmware=function(e){this.ipcRenderer.send($o.IpcEvents.device.updateFirmware,JSON.stringify(e))},e.prototype.startConnectionPoller=function(){this.ipcRenderer.send($o.IpcEvents.device.startConnectionPoller)},e.prototype.recoveryDevice=function(){this.ipcRenderer.send($o.IpcEvents.device.recoveryDevice)},e.prototype.enableUsbStackTest=function(){this.ipcRenderer.send($o.IpcEvents.device.enableUsbStackTest)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on($o.IpcEvents.device.deviceConnectionStateChanged,function(t,n){e.dispachStoreAction(new d(n))}),this.ipcRenderer.on($o.IpcEvents.device.setPrivilegeOnLinuxReply,function(t,n){e.dispachStoreAction(new f(n))}),this.ipcRenderer.on($o.IpcEvents.device.saveUserConfigurationReply,function(t,n){e.dispachStoreAction(new y(n))}),this.ipcRenderer.on($o.IpcEvents.device.loadConfigurationReply,function(t,n){e.dispachStoreAction(new ml(JSON.parse(n)))}),this.ipcRenderer.on($o.IpcEvents.device.updateFirmwareReply,function(t,n){e.dispachStoreAction(new O(n))})},e.prototype.dispachStoreAction=function(e){var t=this;this.logService.info("[DeviceRendererService] dispatch action",JSON.stringify(e)),this.zone.run(function(){return t.store.dispatch(e)})},e}(),zO=function(){function e(e,t,n,r,i,o,l){var u=this;this.actions$=e,this.dataStorageRepository=t,this.store=n,this.defaultUserConfigurationService=r,this.deviceRendererService=i,this.logService=o,this.router=l,this.loadUserConfig$=De(function(){return Object(_e.a)(new gl(u.getUserConfiguration()))}),this.saveUserConfig$=this.actions$.pipe(SO(zo.Add,zo.Duplicate,zo.EditName,zo.EditAbbr,zo.SetDefault,zo.Remove,zo.SaveKey,zo.EditDescription,ol.Add,ol.Duplicate,ol.EditName,ol.Remove,ol.AddAction,ol.SaveAction,ol.DeleteAction,ol.ReorderAction,yl.RenameUserConfiguration,yl.SetUserConfigurationValue),Object(Mo.a)(this.store.select(Nu),this.store.select(Wu)),Object(lt.a)(function(e){var t=e[0],n=e[1],r=e[2];if(n.recalculateConfigurationLength(),u.dataStorageRepository.saveConfig(n),t.type===zo.Remove||t.type===ol.Remove){var i=t.type===zo.Remove?"Keymap":"Macro",o={path:"/"+(t.type===zo.Remove?"keymap":"macro")+"/"+t.payload,config:r.toJsonObject()};return[new vl(n),new hu({type:$o.NotificationType.Undoable,message:i+" has been deleted",extra:{payload:o,type:zo.UndoLastAction}}),new b]}return[new vl(n),new gu,new b]})),this.undoUserConfig$=this.actions$.pipe(SO(zo.UndoLastAction),Object(Fe.a)(function(e){return e.payload}),Object(lt.a)(function(e){var t=(new $o.UserConfiguration).fromJsonObject(e.config);return u.dataStorageRepository.saveConfig(t),u.router.navigate([e.path]),[new gl(t)]})),this.loadConfigFromDevice$=this.actions$.pipe(SO(yl.LoadConfigFromDevice),gt(function(){return u.deviceRendererService.loadConfigurationFromKeyboard()})),this.loadConfigFromDeviceReply$=this.actions$.pipe(SO(yl.LoadConfigFromDeviceReply),Object(Mo.a)(this.store.select(Ma)),Object(lt.a)(function(e){var t=e[1],n=e[0].payload;if(!n.success)return[new hu({type:$o.NotificationType.Error,message:n.error})];var r,i=[];try{var o=Object($o.getUserConfigFromDeviceResponse)(n.userConfiguration);i.push(new gl(o)),t.state&&!t.state.url.startsWith("/device/firmware")&&(r=["/"])}catch(a){u.logService.error("Eeprom user-config parse error:",a),o=(new $o.UserConfiguration).fromJsonObject(n.backupConfiguration),i.push(new E(!!n.backupConfiguration)),i.push(new gl(o)),r=["/device/restore-user-configuration"]}try{var l=Object($o.getHardwareConfigFromDeviceResponse)(n.hardwareConfiguration);i.push(new vu(l))}catch(a){u.logService.error("Eeprom hardware-config parse error:",a),i.push(new hu({type:$o.NotificationType.Error,message:a}))}return i.push(new S(n.modules)),r&&u.router.navigate(r),i})),this.saveUserConfigInJsonFile$=this.actions$.pipe(SO(yl.SaveUserConfigInJsonFile),Object(Mo.a)(this.store.select(Nu)),gt(function(e){var t=JSON.stringify(e[1].toJsonObject(),null,2),n=new Blob([t],{type:"text/plain"});Object(cm.saveAs)(n,"UserConfiguration.json")})),this.saveUserConfigInBinFile$=this.actions$.pipe(SO(yl.SaveUserConfigInBinFile),Object(Mo.a)(this.store.select(Nu)),gt(function(e){var t=e[1],n=new $o.UhkBuffer;t.toBinary(n);var r=new Blob([n.getBufferContent()]);Object(cm.saveAs)(r,"UserConfiguration.bin")})),this.loadUserConfigurationFromFile$=this.actions$.pipe(SO(yl.LoadUserConfigurationFromFile),Object(Fe.a)(function(e){return e.payload}),Object(Fe.a)(function(e){try{var t=new $o.UserConfiguration;if(e.filename.endsWith(".bin"))t.fromBinary($o.UhkBuffer.fromArray(e.data));else{var n=Buffer.from(e.data).toString();t.fromJsonObject(JSON.parse(n))}return t.userConfigMajorVersion?new Tl(t):new hu({type:$o.NotificationType.Error,message:"Invalid configuration specified."})}catch(r){return new hu({type:$o.NotificationType.Error,message:"Invalid configuration specified."})}}))}return e.prototype.getUserConfiguration=function(){var e,t=this.dataStorageRepository.getConfig();return t&&t.userConfigMajorVersion===this.defaultUserConfigurationService.getDefault().userConfigMajorVersion&&(e=(new $o.UserConfiguration).fromJsonObject(t)),e||(e=this.defaultUserConfigurationService.getDefault()),e},N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"loadUserConfig$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"saveUserConfig$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"undoUserConfig$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"loadConfigFromDevice$",void 0),N.b([AO(),N.d("design:type",Object)],e.prototype,"loadConfigFromDeviceReply$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"saveUserConfigInJsonFile$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"saveUserConfigInBinFile$",void 0),N.b([AO(),N.d("design:type",Object)],e.prototype,"loadUserConfigurationFromFile$",void 0),e}();function QO(){return function(e){return e.lift(new WO)}}var WO=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new qO(e))},e}(),qO=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return N.c(t,e),t.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},t}(Ge.a),JO=function(){function e(e,t,r){var i=this;this.actions$=e,this.router=t,this.store=r,this.loadKeymaps$=this.actions$.pipe(SO(zo.LoadKeymaps),pt(new tl),Object(st.a)(function(){var e=n("PP4X"),t=e.keys().map(e).map(function(e){return(new $o.Keymap).fromJsonObject(e)});return Object(_e.a)(new nl(t))})),this.addOrDuplicate$=this.actions$.pipe(SO(zo.Add,zo.Duplicate),Object(Mo.a)(this.store.select(Du).pipe(QO())),Object(Fe.a)(function(e){return e[1]}),gt(function(e){var t=xl(e[0],e[1]);i.router.navigate(["/keymap",t.abbreviation])})),this.remove$=this.actions$.pipe(SO(zo.Remove),Object(Mo.a)(this.store.select(Du)),Object(Fe.a)(function(e){return e[1]}),gt(function(e){if(0===e.length)i.router.navigate(["/keymap/add"]);else{var t=e.find(function(e){return e.isDefault});i.router.navigate(["/keymap",t.abbreviation])}})),this.editAbbr$=this.actions$.pipe(SO(zo.EditAbbr),Object(Mo.a)(this.store.select(Du)),gt(function(e){for(var t=e[0],n=0,r=e[1];n<r.length;n++){var o=r[n];if(o.name===t.payload.name&&o.abbreviation===t.payload.newAbbr)return void i.router.navigate(["/keymap",t.payload.newAbbr])}}))}return N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"loadKeymaps$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"addOrDuplicate$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"remove$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"editAbbr$",void 0),e}(),YO=function(){function e(e,t,n){var r=this;this.actions$=e,this.router=t,this.store=n,this.remove$=this.actions$.pipe(SO(ol.Remove),gt(function(e){return r.store.dispatch(new el(e.payload))}),Object(Mo.a)(this.store.select(Ku)),Object(Fe.a)(function(e){return e[1]}),gt(function(e){return r.router.navigate(0===e.length?["/macro"]:["/macro",e[0].id])})),this.addOrDuplicate$=this.actions$.pipe(SO(ol.Add,ol.Duplicate),Object(Mo.a)(this.store.select(Ku).pipe(QO())),Object(Fe.a)(function(e){var t=e[1];return[e[0],t[0],t[1]]}),gt(function(e){var t=e[0],n=["/macro",xl(e[1],e[2]).id];t.type===ol.Add&&n.push("new"),r.router.navigate(n)}))}return N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"remove$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"addOrDuplicate$",void 0),e}(),ZO=function(){function e(e,t,n){var r=this;this.actions$=e,this.dataStorageRepository=t,this.store=n,this.loadUserConfig$=this.actions$.pipe(SO(nu.LoadAutoUpdateSettings),pt(new uu),Object(st.a)(function(){var e=r.dataStorageRepository.getAutoUpdateSettings();return e||(e=cu),Object(_e.a)(new au(e))})),this.saveAutoUpdateConfig$=this.actions$.pipe(SO(nu.ToggleCheckForUpdateOnStartup,nu.TogglePreReleaseFlag),Object(Mo.a)(this.store.select(aa)),Object(Fe.a)(function(e){return r.dataStorageRepository.saveAutoUpdateSettings(e[1]),new su})),this.sendNotification$=this.actions$.pipe(SO(nu.CheckForUpdateFailed,nu.CheckForUpdateSuccess),Object(Fe.a)(function(e){return e.payload}),Object(Fe.a)(function(e){return new hu({type:$o.NotificationType.Info,message:e})}))}return N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"loadUserConfig$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"saveAutoUpdateConfig$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"sendNotification$",void 0),e}(),XO=n("T1DM");function eA(e){return!Object(Se.a)(e)&&e-parseFloat(e)+1>=0}function tA(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}var nA=function(){function e(e,t,n,r,i,o,l){var u=this;this.actions$=e,this.router=t,this.appRendererService=n,this.deviceRendererService=r,this.store=i,this.dataStorageRepository=o,this.defaultUserConfigurationService=l,this.deviceConnectionStateChange$=this.actions$.pipe(SO(c.ConnectionStateChanged),Object(Mo.a)(this.store.select(Ma),this.store.select(pa)),gt(function(e){var t=e[1],n=e[0].payload;if(!t.state||!t.state.url.startsWith("/device/firmware"))return u.router.navigate(n.hasPermission?n.bootloaderActive?["/recovery-device"]:n.connected&&n.zeroInterfaceAvailable?["/"]:["/detection"]:["/privilege"])}),Object(Mp.a)(function(e,t){var n=e[0],r=t[0];return e[2]===t[2]&&n.payload.hasPermission===r.payload.hasPermission&&n.payload.zeroInterfaceAvailable===r.payload.zeroInterfaceAvailable}),Object(st.a)(function(e){var t=e[0].payload;return e[2]&&t.hasPermission&&t.zeroInterfaceAvailable?Object(_e.a)(new bl):Ne.a})),this.setPrivilegeOnLinux$=this.actions$.pipe(SO(c.SetPrivilegeOnLinux),gt(function(){u.deviceRendererService.setPrivilegeOnLinux()})),this.setPrivilegeOnLinuxReply$=this.actions$.pipe(SO(c.SetPrivilegeOnLinuxReply),Object(Fe.a)(function(e){return e.payload}),Object(st.a)(function(e){return e.success?(u.appRendererService.getAppStartInfo(),Ne.a):Object(_e.a)(new Ou(e.error))})),this.saveConfiguration$=this.actions$.pipe(SO(c.SaveConfiguration),Object(Mo.a)(this.store),gt(function(e){var t=e[1];setTimeout(function(){return u.sendUserConfigToKeyboard(t.userConfiguration.userConfiguration,t.app.hardwareConfig)},100)}),Object(st.a)(function(){return Ne.a})),this.saveConfigurationReply$=this.actions$.pipe(SO(c.SaveConfigurationReply),Object(Fe.a)(function(e){return e.payload}),Object(lt.a)(function(e){return e.success?[new m]:[new hu({type:$o.NotificationType.Error,message:e.error.message}),new g]})),this.autoHideSaveToKeyboardButton$=this.actions$.pipe(SO(c.SaveToKeyboardSuccess),Object(Mo.a)(this.store),Object(st.a)(function(e){var t=e[1];return function(e,t,n){void 0===e&&(e=0);var r=-1;return eA(void 0)?r=Number(void 0)<1?1:Number(void 0):Object(xe.a)(void 0)&&(n=void 0),Object(xe.a)(n)||(n=XO.a),new Ae.a(function(t){var i=eA(e)?e:+e-n.now();return n.schedule(tA,i,{index:0,period:r,subscriber:t})})}(1e3).pipe(Object(lt.a)(function(){var e=[new v];return t.device.hasBackupUserConfiguration&&(e.push(new P),u.router.navigate(["/"])),e}))})),this.resetMouseSpeedSettings$=this.actions$.pipe(SO(c.ResetPcMouseSpeedSettings,c.ResetMacMouseSpeedSettings),Object(Mo.a)(this.store.select(Nu)),Object(Fe.a)(function(e){return new wl(e[1])})),this.resetUserConfiguration$=this.actions$.pipe(SO(c.ResetUserConfiguration),Object(st.a)(function(){var e=u.defaultUserConfigurationService.getDefault();return Object(_e.a)(new wl(e))})),this.saveResetUserConfigurationToDevice$=this.actions$.pipe(SO(yl.LoadResetUserConfiguration,yl.ApplyUserConfigurationFromFile),Object(Fe.a)(function(e){return e.payload}),Object(st.a)(function(e){return u.dataStorageRepository.saveConfig(e),Object(_e.a)(new h)})),this.updateFirmware$=this.actions$.pipe(SO(c.UpdateFirmware),gt(function(){return u.deviceRendererService.updateFirmware({versionInformation:jl()})})),this.updateFirmwareWith$=this.actions$.pipe(SO(c.UpdateFirmwareWith),Object(Fe.a)(function(e){return e.payload}),gt(function(e){return u.deviceRendererService.updateFirmware({versionInformation:jl(),firmware:e})})),this.updateFirmwareReply$=this.actions$.pipe(SO(c.UpdateFirmwareReply),Object(Fe.a)(function(e){return e.payload}),Object(st.a)(function(e){return e.success?Object(_e.a)(new A(e.modules)):Object(_e.a)(new C({error:e.error,modules:e.modules}))})),this.restoreUserConfiguration$=this.actions$.pipe(SO(c.RestoreConfigurationFromBackup),Object(Fe.a)(function(){return new h})),this.recoveryDevice$=this.actions$.pipe(SO(c.RecoveryDevice),gt(function(){return u.deviceRendererService.recoveryDevice()})),this.enableUsbStackTest$=this.actions$.pipe(SO(c.EnableUsbStackTest),gt(function(){return u.deviceRendererService.enableUsbStackTest()})),this.startConnectionPoller$=this.actions$.pipe(SO(c.StartConnectionPoller),gt(function(){return u.deviceRendererService.startConnectionPoller()}))}return e.prototype.sendUserConfigToKeyboard=function(e,t){this.deviceRendererService.saveUserConfiguration({uniqueId:t&&t.uniqueId,configuration:e.toJsonObject()})},N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"deviceConnectionStateChange$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Ae.a)],e.prototype,"setPrivilegeOnLinux$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"setPrivilegeOnLinuxReply$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Ae.a)],e.prototype,"saveConfiguration$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"saveConfigurationReply$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"autoHideSaveToKeyboardButton$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"resetMouseSpeedSettings$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"resetUserConfiguration$",void 0),N.b([AO(),N.d("design:type",Object)],e.prototype,"saveResetUserConfigurationToDevice$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"updateFirmware$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"updateFirmwareWith$",void 0),N.b([AO(),N.d("design:type",Object)],e.prototype,"updateFirmwareReply$",void 0),N.b([AO(),N.d("design:type",Object)],e.prototype,"restoreUserConfiguration$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"recoveryDevice$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"enableUsbStackTest$",void 0),N.b([AO({dispatch:!1}),N.d("design:type",Object)],e.prototype,"startConnectionPoller$",void 0),e}(),rA=function(){function e(e,t,n){var r=this;this.store=e,this.actions$=t,this.http=n,this.getContributors$=this.actions$.pipe(SO(ql.GetAgentContributors),Object(Mo.a)(this.store.select(na)),Object(Fe.a)(function(e){var t=e[1];return 0===t.contributors.length?new Yl:new Zl(t.contributors)})),this.fetchContributors$=this.actions$.pipe(SO(ql.FetchAgentContributors),Object(lt.a)(function(){return r.http.get($o.Constants.AGENT_CONTRIBUTORS_GITHUB_API_URL)}),Object(st.a)(function(e){return Object(we.a)(e).pipe(Object(lt.a)(function(e){return r.http.get(e.avatar_url,{responseType:"blob"})},function(e,t){return e.avatar=t,e}),yt(function(e,t){return e.concat([t])},[]))}),Object(Fe.a)(function(e){return e=e.sort(function(e,t){return t.contributions-e.contributions}),new Zl(e)}),Object(rt.a)(function(e){return Object(_e.a)(new Xl(e))}))}return N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"getContributors$",void 0),N.b([AO(),N.d("design:type",Ae.a)],e.prototype,"fetchContributors$",void 0),e}(),iA=r.rb(i,[ja],function(e){return r.Db([r.Eb(512,r.j,r.cb,[[8,[Da,es,as,Ss,js,Vs,Qs,tc,Vp,Qp,of,ff,mm,xm,Im,lg,pg,kg,Cg,Kg,Kv]],[3,r.j],r.y]),r.Eb(5120,r.v,r.ob,[[3,r.v]]),r.Eb(4608,q,J,[r.v,[2,W]]),r.Eb(5120,r.kb,r.pb,[r.A]),r.Eb(5120,r.c,r.lb,[]),r.Eb(5120,r.t,r.mb,[]),r.Eb(5120,r.u,r.nb,[]),r.Eb(4608,On,An,[me]),r.Eb(6144,r.H,null,[On]),r.Eb(4608,bn,gn,[]),r.Eb(5120,Vt,function(e,t,n,r,i,o,l,u){return[new hn(e,t,n),new wn(r),new vn(i,o,l,u)]},[me,r.A,r.C,me,me,bn,r.db,[2,mn]]),r.Eb(4608,Gt,Gt,[Vt,r.A]),r.Eb(135680,zt,zt,[me]),r.Eb(4608,Xt,Xt,[Gt,zt,r.c]),r.Eb(5120,bk,cw,[]),r.Eb(5120,l_,pw,[]),r.Eb(4608,L_,sw,[me,bk,l_]),r.Eb(5120,r.F,fw,[Xt,L_,r.A]),r.Eb(6144,$t,null,[zt]),r.Eb(4608,r.N,r.N,[r.A]),r.Eb(4608,Bv,nw,[r.F,me]),r.Eb(4608,Gc,Gc,[]),r.Eb(4608,vv,vv,[]),r.Eb(4608,Bw,Vw,[me,r.C,Fw]),r.Eb(4608,Gw,Gw,[Bw,Kw]),r.Eb(5120,jw,function(e){return[e]},[Gw]),r.Eb(4608,$m,$m,[[2,Vm]]),r.Eb(5120,Gr,Ao,[Xi]),r.Eb(4608,co,co,[]),r.Eb(6144,ao,null,[co]),r.Eb(135680,po,po,[Xi,r.x,r.i,r.r,ao]),r.Eb(4608,so,so,[]),r.Eb(5120,fo,vo,[Xi,ve,ho]),r.Eb(5120,So,xo,[Co]),r.Eb(5120,r.b,function(e){return[e]},[So]),r.Eb(5120,Fa,$a,[Ha]),r.Eb(4608,Ua,Ua,[]),r.Eb(4608,hh,hh,[]),r.Eb(4608,Wf,Wf,[L.m]),r.Eb(4608,Qw,Qw,[L.m,Xi]),r.Eb(4608,Ww,Ww,[L.m,Xi]),r.Eb(4608,Ud,Ud,[Wf]),r.Eb(4608,qw,qw,[L.m,Xi]),r.Eb(4608,Jw,Jw,[L.m,Xi]),r.Eb(4608,Yw,Yw,[L.m,Xi]),r.Eb(4608,Zw,Zw,[L.m,Xi]),r.Eb(4608,Xw,Xw,[L.m,Xi]),r.Eb(4608,eO,eO,[L.m,Xi]),r.Eb(4608,tO,tO,[L.m,Xi]),r.Eb(135680,L.k,L.k,[L.a,L.i,L.j,L.d]),r.Eb(5120,nO.c,nO.d,[nO.j,nO.g]),r.Eb(1073742336,be,be,[]),r.Eb(1024,r.l,jn,[]),r.Eb(1024,r.z,function(){return[mo()]},[]),r.Eb(512,Co,Co,[r.r]),r.Eb(1024,r.d,function(e,t){return[(n=e,Ft("probe",Bt),Ft("coreTokens",Object(N.a)({},Kt,(n||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return Bt}),To(t)];var n},[[2,r.z],Co]),r.Eb(512,r.e,r.e,[[2,r.d]]),r.Eb(131584,r.g,r.g,[r.A,r.db,r.r,r.l,r.j,r.e]),r.Eb(1073742336,r.f,r.f,[r.g]),r.Eb(1073742336,Rn,Rn,[[3,Rn]]),r.Eb(1073742336,hw,hw,[]),r.Eb(1073742336,Ap,Ap,[]),r.Eb(1073742336,Cp,Cp,[]),r.Eb(1073742336,Qm,Qm,[]),r.Eb(1024,yo,_o,[[3,Xi]]),r.Eb(512,_r,wr,[]),r.Eb(512,oo,oo,[]),r.Eb(256,ho,{useHash:!0},[]),r.Eb(1024,F,ko,[D,[2,K],ho]),r.Eb(512,B,B,[F,D]),r.Eb(512,r.i,r.i,[]),r.Eb(512,r.x,r.K,[r.i,[2,r.L]]),r.Eb(1024,zi,function(){return[[{path:"detection",component:is,canActivate:[qw,Zw]},{path:"privilege",component:gs,canActivate:[Yw]},{path:"loading",component:Ms,canActivate:[eO]},{path:"recovery-device",component:Us,canActivate:[tO]},{path:"",component:Gs,canActivate:[Jw,Xw],children:[{path:"device",children:[{path:"",redirectTo:"configuration",pathMatch:"full"},{path:"configuration",component:Ys},{path:"mouse-speed",component:Np},{path:"led-brightness",component:Gp},{path:"firmware",component:qp},{path:"restore-user-configuration",component:lf}]},{path:"",redirectTo:"keymap",pathMatch:"full"},{path:"keymap",component:pm,canActivate:[Qw]},{path:"keymap/add",component:_m},{path:"keymap/:abbr",component:pm},{path:"macro",component:Sm,canActivate:[Ww]},{path:"macro/:id",component:eg},{path:"macro/:id/:empty",component:eg},{path:"add-on/:name",component:ug},{path:"settings",component:bg},{path:"help",component:_g},{path:"about",component:Mg}]}]]},[]),r.Eb(1024,Xi,Oo,[r.g,_r,oo,B,r.r,r.x,r.i,zi,ho,[2,Wi],[2,Hi]]),r.Eb(1073742336,go,go,[[2,yo],[2,Xi]]),r.Eb(1073742336,Kh,Kh,[]),r.Eb(1073742336,vc,vc,[]),r.Eb(1073742336,Cv,Cv,[]),r.Eb(1073742336,za,za,[]),r.Eb(1073742336,fs,fs,[]),r.Eb(1073742336,$w,$w,[]),r.Eb(1073742336,zw,zw,[]),r.Eb(1073742336,rO,rO,[]),r.Eb(131584,L.a,L.a,[]),r.Eb(131584,nO.l,nO.l,[]),r.Eb(2048,L.h,null,[nO.l]),r.Eb(256,L.y,void 0,[]),r.Eb(1024,L.d,L.G,[L.y]),r.Eb(256,L.A,{userConfiguration:Dl,presetKeymaps:zl,autoUpdateSettings:pu,app:Mu,router:jo,appUpdate:Wl,device:ju,contributors:tu},[]),r.Eb(2048,L.B,null,[L.A]),r.Eb(1024,L.c,L.F,[r.r,L.A,L.B]),r.Eb(256,L.z,L.s,[]),r.Eb(256,L.D,void 0,[]),r.Eb(1024,L.r,L.x,[L.D]),r.Eb(1024,L.E,L.I,[L.r]),r.Eb(1024,L.e,function(e,t){return[L.K(e),L.J(t)]},[L.E,L.E]),r.Eb(256,L.q,[],[]),r.Eb(1024,L.C,L.H,[L.e,L.q]),r.Eb(1024,L.f,L.u,[L.z,L.C]),r.Eb(131584,L.g,L.g,[L.h,L.d,L.c,L.f]),r.Eb(2048,L.i,null,[L.g]),r.Eb(131584,L.j,L.j,[]),r.Eb(1024,nO.j,nO.e,[]),r.Eb(256,nO.h,{maxAge:10},[]),r.Eb(1024,nO.g,nO.i,[nO.h]),r.Eb(512,nO.k,nO.k,[nO.j,nO.g,nO.l]),r.Eb(512,nO.a,nO.a,[nO.l,L.a,L.i,nO.k,L.j,r.l,L.d,nO.g]),r.Eb(1024,L.l,nO.f,[nO.a]),r.Eb(512,L.m,L.m,[L.l,L.a,L.g]),r.Eb(1073742336,L.o,L.o,[L.a,L.i,L.j,L.m]),r.Eb(512,Ro,Lo,[]),r.Eb(256,Uo,{},[]),r.Eb(1024,Fo,Bo,[Uo]),r.Eb(1073742336,Go,Go,[L.m,Xi,Ro,r.l,Fo]),r.Eb(1073742336,nO.b,nO.b,[]),r.Eb(512,EO,EO,[r.l,L.m]),r.Eb(131584,jO,jO,[EO,L.m]),r.Eb(512,xO,xO,[L.j]),r.Eb(512,dv,dv,[]),r.Eb(256,wv,{behaviour:{autoHide:!1},position:{horizontal:{position:"right",distance:12},vertical:{position:"top",distance:12,gap:10}}},[]),r.Eb(1024,Ov,Av,[wv]),r.Eb(512,yv,yv,[dv,Ov]),r.Eb(512,DO,DO,[]),r.Eb(512,UO,UO,[L.m,r.A,DO]),r.Eb(512,FO.LogService,FO.LogService,[]),r.Eb(512,KO,KO,[L.m,r.A,DO,FO.LogService]),r.Eb(512,BO,BO,[xO,yv,UO,KO,FO.LogService,L.m]),r.Eb(512,VO,VO,[xO,UO,FO.LogService]),r.Eb(512,GO,GO,[]),r.Eb(512,HO,HO,[]),r.Eb(512,$O,$O,[L.m,r.A,DO,FO.LogService]),r.Eb(512,zO,zO,[xO,GO,L.m,HO,$O,FO.LogService,Xi]),r.Eb(512,JO,JO,[xO,Xi,L.m]),r.Eb(512,YO,YO,[xO,Xi,L.m]),r.Eb(512,ZO,ZO,[xO,GO,L.m]),r.Eb(512,nA,nA,[xO,Xi,KO,$O,L.m,GO,HO]),r.Eb(512,Dw,Dw,[]),r.Eb(2048,Nw,null,[Dw]),r.Eb(512,Uw,Uw,[Nw]),r.Eb(2048,bw,null,[Uw]),r.Eb(512,yw,Hw,[bw,r.r]),r.Eb(512,Pw,Pw,[yw]),r.Eb(512,rA,rA,[L.m,xO,Pw]),r.Eb(1024,IO,NO,[BO,VO,zO,JO,YO,ZO,nA,rA]),r.Eb(1073742336,LO,LO,[EO,jO,L.m,IO,[2,L.o],[2,L.n]]),r.Eb(1073742336,i,i,[]),r.Eb(256,r.bb,!0,[]),r.Eb(256,dw,"BrowserAnimations",[]),r.Eb(256,Fw,"XSRF-TOKEN",[]),r.Eb(256,Kw,"X-XSRF-TOKEN",[]),r.Eb(256,Nh,{keepSelectedItems:!0,optionValueField:"id",optionTextField:"text"},[]),r.Eb(256,Ha,{confirmButtonType:"danger"},[])])});Object(r.U)(),In().bootstrapModuleFactory(iA,{preserveWhitespaces:!0})},mChF:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},mZXl:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return a});var r=n("mrSG"),i=n("FFOo"),o=n("60iU");function l(e,t){return void 0===t&&(t=0),function(n){return n.lift(new u(e,t))}}var u=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 a(e,this.scheduler,this.delay))},e}(),a=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return r.c(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new s(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(o.a.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(o.a.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},t}(i.a),s=function(){return function(e,t){this.notification=e,this.destination=t}}()},mrSG:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"e",function(){return u}),n.d(t,"d",function(){return a}),n.d(t,"h",function(){return s}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return p});var r=function(e,t){return(r=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])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function l(e,t,n,r){var i,o=arguments.length,l=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(l=(o<3?i(l):o>3?i(t,n,l):i(t,n))||l);return o>3&&l&&Object.defineProperty(t,n,l),l}function u(e,t){return function(n,r){t(n,r,e)}}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)l.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return l}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}},myTe:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("CMKj");class l{constructor(e){e&&(this.id=e.id,this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(e=>o.Helper.createMacroAction(e)))}fromJsonObject(e){return this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(e=>o.Helper.createMacroAction(e)),this}fromBinary(e){this.isLooped=e.readBoolean(),this.isPrivate=e.readBoolean(),this.name=e.readString();const t=e.readCompactLength();this.macroActions=[];for(let n=0;n<t;++n)this.macroActions.push(o.Helper.createMacroAction(e));return this}toJsonObject(){return{isLooped:this.isLooped,isPrivate:this.isPrivate,name:this.name,macroActions:this.macroActions.map(e=>e.toJsonObject())}}toBinary(e){e.writeBoolean(this.isLooped),e.writeBoolean(this.isPrivate),e.writeString(this.name),e.writeArray(this.macroActions)}toString(){return`<Macro id="${this.id}" name="${this.name}">`}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],l.prototype,"id",void 0),t.Macro=l},mz7f:function(e,t){e.exports=function e(t){Object.freeze(t);var n="function"==typeof t,r=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(i){!r.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}},n6yW:function(e,t,n){"use strict";var r={},i="(?:^|\\s)",o="(?:\\s|$)";function l(e){var t=r[e];return t?t.lastIndex=0:r[e]=t=new RegExp(i+e+o,"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()}}},nkY7:function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return r})},nsO7:function(e,t,n){(function(e){var r;(function(){var i,o=200,l="Expected a function",u="__lodash_placeholder__",a=1,s=2,c=4,p=1,f=2,d=1,h=2,y=4,b=8,m=16,g=32,v=64,k=128,_=256,w=512,O=800,A=16,C=1/0,T=9007199254740991,x=17976931348623157e292,S=NaN,M=4294967295,E=M-1,P=M>>>1,I=[["ary",k],["bind",d],["bindKey",h],["curry",b],["curryRight",m],["flip",w],["partial",g],["partialRight",v],["rearg",_]],j="[object Arguments]",R="[object Array]",L="[object AsyncFunction]",N="[object Boolean]",D="[object Date]",U="[object DOMException]",F="[object Error]",K="[object Function]",B="[object GeneratorFunction]",V="[object Map]",G="[object Number]",H="[object Null]",$="[object Object]",z="[object Proxy]",Q="[object RegExp]",W="[object Set]",q="[object String]",J="[object Symbol]",Y="[object Undefined]",Z="[object WeakMap]",X="[object ArrayBuffer]",ee="[object DataView]",te="[object Float32Array]",ne="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",oe="[object Int32Array]",le="[object Uint8Array]",ue="[object Uint8ClampedArray]",ae="[object Uint16Array]",se="[object Uint32Array]",ce=/\b__p \+= '';/g,pe=/\b(__p \+=) '' \+/g,fe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,de=/&(?:amp|lt|gt|quot|#39);/g,he=/[&<>"']/g,ye=RegExp(de.source),be=RegExp(he.source),me=/<%-([\s\S]+?)%>/g,ge=/<%([\s\S]+?)%>/g,ve=/<%=([\s\S]+?)%>/g,ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_e=/^\w*$/,we=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(Oe.source),Ce=/^\s+|\s+$/g,Te=/^\s+/,xe=/\s+$/,Se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Me=/\{\n\/\* \[wrapped with (.+)\] \*/,Ee=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ie=/\\(\\)?/g,je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Re=/\w*$/,Le=/^[-+]0x[0-9a-f]+$/i,Ne=/^0b[01]+$/i,De=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Be=/($^)/,Ve=/['\n\r\u2028\u2029\\]/g,Ge="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",He="\\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="["+He+"]",ze="["+Ge+"]",Qe="\\d+",We="[a-z\\xdf-\\xf6\\xf8-\\xff]",qe="[^\\ud800-\\udfff"+He+Qe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Je="\\ud83c[\\udffb-\\udfff]",Ye="[^\\ud800-\\udfff]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Xe="[\\ud800-\\udbff][\\udc00-\\udfff]",et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",tt="(?:"+We+"|"+qe+")",nt="(?:"+et+"|"+qe+")",rt="(?:"+ze+"|"+Je+")?",it="[\\ufe0e\\ufe0f]?"+rt+"(?:\\u200d(?:"+[Ye,Ze,Xe].join("|")+")[\\ufe0e\\ufe0f]?"+rt+")*",ot="(?:"+["[\\u2700-\\u27bf]",Ze,Xe].join("|")+")"+it,lt="(?:"+[Ye+ze+"?",ze,Ze,Xe,"[\\ud800-\\udfff]"].join("|")+")",ut=RegExp("['\u2019]","g"),at=RegExp(ze,"g"),st=RegExp(Je+"(?="+Je+")|"+lt+it,"g"),ct=RegExp([et+"?"+We+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[$e,et,"$"].join("|")+")",nt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[$e,et+tt,"$"].join("|")+")",et+"?"+tt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",et+"+(?:['\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_])",Qe,ot].join("|"),"g"),pt=RegExp("[\\u200d\\ud800-\\udfff"+Ge+"\\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 ]/,dt=["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"],ht=-1,yt={};yt[te]=yt[ne]=yt[re]=yt[ie]=yt[oe]=yt[le]=yt[ue]=yt[ae]=yt[se]=!0,yt[j]=yt[R]=yt[X]=yt[N]=yt[ee]=yt[D]=yt[F]=yt[K]=yt[V]=yt[G]=yt[$]=yt[Q]=yt[W]=yt[q]=yt[Z]=!1;var bt={};bt[j]=bt[R]=bt[X]=bt[ee]=bt[N]=bt[D]=bt[te]=bt[ne]=bt[re]=bt[ie]=bt[oe]=bt[V]=bt[G]=bt[$]=bt[Q]=bt[W]=bt[q]=bt[J]=bt[le]=bt[ue]=bt[ae]=bt[se]=!0,bt[F]=bt[K]=bt[Z]=!1;var mt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gt=parseFloat,vt=parseInt,kt="object"==typeof global&&global&&global.Object===Object&&global,_t="object"==typeof self&&self&&self.Object===Object&&self,wt=kt||_t||Function("return this")(),Ot=t&&!t.nodeType&&t,At=Ot&&"object"==typeof e&&e&&!e.nodeType&&e,Ct=At&&At.exports===Ot,Tt=Ct&&kt.process,xt=function(){try{return At&&At.require&&At.require("util").types||Tt&&Tt.binding&&Tt.binding("util")}catch(e){}}(),St=xt&&xt.isArrayBuffer,Mt=xt&&xt.isDate,Et=xt&&xt.isMap,Pt=xt&&xt.isRegExp,It=xt&&xt.isSet,jt=xt&&xt.isTypedArray;function Rt(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 Lt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var l=e[i];t(r,l,n(l),e)}return r}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var l=e[n];t(l,n,e)&&(o[i++]=l)}return o}function Ft(e,t){return!(null==e||!e.length)&&qt(e,t,0)>-1}function Kt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Bt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Vt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Gt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Ht(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Xt("length");function Qt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Wt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function qt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Wt(e,Yt,n)}function Jt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Yt(e){return e!=e}function Zt(e,t){var n=null==e?0:e.length;return n?nn(e,t)/n:S}function Xt(e){return function(t){return null==t?i:t[e]}}function en(e){return function(t){return null==e?i:e[t]}}function tn(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function nn(e,t){for(var n,r=-1,o=e.length;++r<o;){var l=t(e[r]);l!==i&&(n=n===i?l:n+l)}return n}function rn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function on(e){return function(t){return e(t)}}function ln(e,t){return Bt(t,function(t){return e[t]})}function un(e,t){return e.has(t)}function an(e,t){for(var n=-1,r=e.length;++n<r&&qt(t,e[n],0)>-1;);return n}function sn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}var cn=en({"\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=en({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function fn(e){return"\\"+mt[e]}function dn(e){return pt.test(e)}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function yn(e,t){return function(n){return e(t(n))}}function bn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var l=e[n];l!==t&&l!==u||(e[n]=u,o[i++]=n)}return o}function mn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function gn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function vn(e){return dn(e)?function(e){for(var t=st.lastIndex=0;st.test(e);)++t;return t}(e):zt(e)}function kn(e){return dn(e)?function(e){return e.match(st)||[]}(e):function(e){return e.split("")}(e)}var _n=en({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),wn=function e(t){var n,r=(t=null==t?wt:wn.defaults(wt.Object(),t,wn.pick(wt,dt))).Array,Ge=t.Date,He=t.Error,$e=t.Function,ze=t.Math,Qe=t.Object,We=t.RegExp,qe=t.String,Je=t.TypeError,Ye=r.prototype,Ze=Qe.prototype,Xe=t["__core-js_shared__"],et=$e.prototype.toString,tt=Ze.hasOwnProperty,nt=0,rt=(n=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",it=Ze.toString,ot=et.call(Qe),lt=wt._,st=We("^"+et.call(tt).replace(Oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pt=Ct?t.Buffer:i,mt=t.Symbol,kt=t.Uint8Array,_t=pt?pt.allocUnsafe:i,Ot=yn(Qe.getPrototypeOf,Qe),At=Qe.create,Tt=Ze.propertyIsEnumerable,xt=Ye.splice,zt=mt?mt.isConcatSpreadable:i,en=mt?mt.iterator:i,On=mt?mt.toStringTag:i,An=function(){try{var e=Oo(Qe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Cn=t.clearTimeout!==wt.clearTimeout&&t.clearTimeout,Tn=Ge&&Ge.now!==wt.Date.now&&Ge.now,xn=t.setTimeout!==wt.setTimeout&&t.setTimeout,Sn=ze.ceil,Mn=ze.floor,En=Qe.getOwnPropertySymbols,Pn=pt?pt.isBuffer:i,In=t.isFinite,jn=Ye.join,Rn=yn(Qe.keys,Qe),Ln=ze.max,Nn=ze.min,Dn=Ge.now,Un=t.parseInt,Fn=ze.random,Kn=Ye.reverse,Bn=Oo(t,"DataView"),Vn=Oo(t,"Map"),Gn=Oo(t,"Promise"),Hn=Oo(t,"Set"),$n=Oo(t,"WeakMap"),zn=Oo(Qe,"create"),Qn=$n&&new $n,Wn={},qn=qo(Bn),Jn=qo(Vn),Yn=qo(Gn),Zn=qo(Hn),Xn=qo($n),er=mt?mt.prototype:i,tr=er?er.valueOf:i,nr=er?er.toString:i;function rr(e){if(fu(e)&&!tu(e)&&!(e instanceof ur)){if(e instanceof lr)return e;if(tt.call(e,"__wrapped__"))return Jo(e)}return new lr(e)}var ir=function(){function e(){}return function(t){if(!pu(t))return{};if(At)return At(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function or(){}function lr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function ur(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=M,this.__views__=[]}function ar(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function sr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function cr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new cr;++t<n;)this.add(e[t])}function fr(e){var t=this.__data__=new sr(e);this.size=t.size}function dr(e,t){var n=tu(e),r=!n&&eu(e),i=!n&&!r&&ou(e),o=!n&&!r&&!i&&ku(e),l=n||r||i||o,u=l?rn(e.length,qe):[],a=u.length;for(var s in e)!t&&!tt.call(e,s)||l&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Eo(s,a))||u.push(s);return u}function hr(e){var t=e.length;return t?e[ai(0,t-1)]:i}function yr(e,t,n){(n===i||Yl(e[t],n))&&(n!==i||t in e)||kr(e,t,n)}function br(e,t,n){var r=e[t];tt.call(e,t)&&Yl(r,n)&&(n!==i||t in e)||kr(e,t,n)}function mr(e,t){for(var n=e.length;n--;)if(Yl(e[n][0],t))return n;return-1}function gr(e,t,n,r){return xr(e,function(e,i,o){t(r,e,n(e),o)}),r}function vr(e,t){return e&&Bi(t,Vu(t),e)}function kr(e,t,n){"__proto__"==t&&An?An(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function _r(e,t){for(var n=-1,o=t.length,l=r(o),u=null==e;++n<o;)l[n]=u?i:Du(e,t[n]);return l}function wr(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Or(e,t,n,r,o,l){var u,p=t&a,f=t&s,d=t&c;if(n&&(u=o?n(e,r,o,l):n(e)),u!==i)return u;if(!pu(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),!p)return Ki(e,u)}else{var y=To(e),b=y==K||y==B;if(ou(e))return Ri(e,p);if(y==$||y==j||b&&!o){if(u=f||b?{}:So(e),!p)return f?function(e,t){return Bi(e,Co(e),t)}(e,function(t,n){return t&&Bi(e,Gu(e),t)}(u)):function(e,t){return Bi(e,Ao(e),t)}(e,vr(u,e))}else{if(!bt[y])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case X:return Li(e);case N:case D:return new r(+e);case ee:return function(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case te:case ne:case re:case ie:case oe:case le:case ue:case ae:case se:return Ni(e,n);case V:return new r;case G:case q:return new r(e);case Q:return function(e){var t=new e.constructor(e.source,Re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case W:return new r;case J:return tr?Qe(tr.call(e)):{}}}(e,y,p)}}l||(l=new fr);var m=l.get(e);if(m)return m;l.set(e,u),mu(e)?e.forEach(function(r){u.add(Or(r,t,n,r,e,l))}):du(e)&&e.forEach(function(r,i){u.set(i,Or(r,t,n,i,e,l))});var g=h?i:(d?f?bo:yo:f?Gu:Vu)(e);return Nt(g||e,function(r,i){g&&(r=e[i=r]),br(u,i,Or(r,t,n,i,e,l))}),u}function Ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Qe(e);r--;){var o=n[r],l=e[o];if(l===i&&!(o in e)||!(0,t[o])(l))return!1}return!0}function Cr(e,t,n){if("function"!=typeof e)throw new Je(l);return Vo(function(){e.apply(i,n)},t)}function Tr(e,t,n,r){var i=-1,l=Ft,u=!0,a=e.length,s=[],c=t.length;if(!a)return s;n&&(t=Bt(t,on(n))),r?(l=Kt,u=!1):t.length>=o&&(l=un,u=!1,t=new pr(t));e:for(;++i<a;){var p=e[i],f=null==n?p:n(p);if(p=r||0!==p?p:0,u&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;s.push(p)}else l(t,f,r)||s.push(p)}return s}rr.templateSettings={escape:me,evaluate:ge,interpolate:ve,variable:"",imports:{_:rr}},(rr.prototype=or.prototype).constructor=rr,(lr.prototype=ir(or.prototype)).constructor=lr,(ur.prototype=ir(or.prototype)).constructor=ur,ar.prototype.clear=function(){this.__data__=zn?zn(null):{},this.size=0},ar.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ar.prototype.get=function(e){var t=this.__data__;if(zn){var n=t[e];return"__lodash_hash_undefined__"===n?i:n}return tt.call(t,e)?t[e]:i},ar.prototype.has=function(e){var t=this.__data__;return zn?t[e]!==i:tt.call(t,e)},ar.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=zn&&t===i?"__lodash_hash_undefined__":t,this},sr.prototype.clear=function(){this.__data__=[],this.size=0},sr.prototype.delete=function(e){var t=this.__data__,n=mr(t,e);return!(n<0||(n==t.length-1?t.pop():xt.call(t,n,1),--this.size,0))},sr.prototype.get=function(e){var t=this.__data__,n=mr(t,e);return n<0?i:t[n][1]},sr.prototype.has=function(e){return mr(this.__data__,e)>-1},sr.prototype.set=function(e,t){var n=this.__data__,r=mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},cr.prototype.clear=function(){this.size=0,this.__data__={hash:new ar,map:new(Vn||sr),string:new ar}},cr.prototype.delete=function(e){var t=_o(this,e).delete(e);return this.size-=t?1:0,t},cr.prototype.get=function(e){return _o(this,e).get(e)},cr.prototype.has=function(e){return _o(this,e).has(e)},cr.prototype.set=function(e,t){var n=_o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},pr.prototype.add=pr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},pr.prototype.has=function(e){return this.__data__.has(e)},fr.prototype.clear=function(){this.__data__=new sr,this.size=0},fr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},fr.prototype.get=function(e){return this.__data__.get(e)},fr.prototype.has=function(e){return this.__data__.has(e)},fr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof sr){var r=n.__data__;if(!Vn||r.length<o-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new cr(r)}return n.set(e,t),this.size=n.size,this};var xr=Hi(Lr),Sr=Hi(Nr,!0);function Mr(e,t){var n=!0;return xr(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Er(e,t,n){for(var r=-1,o=e.length;++r<o;){var l=e[r],u=t(l);if(null!=u&&(a===i?u==u&&!vu(u):n(u,a)))var a=u,s=l}return s}function Pr(e,t){var n=[];return xr(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ir(e,t,n,r,i){var o=-1,l=e.length;for(n||(n=Mo),i||(i=[]);++o<l;){var u=e[o];t>0&&n(u)?t>1?Ir(u,t-1,n,r,i):Vt(i,u):r||(i[i.length]=u)}return i}var jr=$i(),Rr=$i(!0);function Lr(e,t){return e&&jr(e,t,Vu)}function Nr(e,t){return e&&Rr(e,t,Vu)}function Dr(e,t){return Ut(t,function(t){return au(e[t])})}function Ur(e,t){for(var n=0,r=(t=Ei(t,e)).length;null!=e&&n<r;)e=e[Wo(t[n++])];return n&&n==r?e:i}function Fr(e,t,n){var r=t(e);return tu(e)?r:Vt(r,n(e))}function Kr(e){return null==e?e===i?Y:H:On&&On in Qe(e)?function(e){var t=tt.call(e,On),n=e[On];try{e[On]=i;var r=!0}catch(l){}var o=it.call(e);return r&&(t?e[On]=n:delete e[On]),o}(e):function(e){return it.call(e)}(e)}function Br(e,t){return e>t}function Vr(e,t){return null!=e&&tt.call(e,t)}function Gr(e,t){return null!=e&&t in Qe(e)}function Hr(e,t,n){for(var o=n?Kt:Ft,l=e[0].length,u=e.length,a=u,s=r(u),c=1/0,p=[];a--;){var f=e[a];a&&t&&(f=Bt(f,on(t))),c=Nn(f.length,c),s[a]=!n&&(t||l>=120&&f.length>=120)?new pr(a&&f):i}f=e[0];var d=-1,h=s[0];e:for(;++d<l&&p.length<c;){var y=f[d],b=t?t(y):y;if(y=n||0!==y?y:0,!(h?un(h,b):o(p,b,n))){for(a=u;--a;){var m=s[a];if(!(m?un(m,b):o(e[a],b,n)))continue e}h&&h.push(b),p.push(y)}}return p}function $r(e,t,n){var r=null==(e=Fo(e,t=Ei(t,e)))?e:e[Wo(ul(t))];return null==r?i:Rt(r,e,n)}function zr(e){return fu(e)&&Kr(e)==j}function Qr(e,t,n,r,o){return e===t||(null==e||null==t||!fu(e)&&!fu(t)?e!=e&&t!=t:function(e,t,n,r,o,l){var u=tu(e),a=tu(t),s=u?R:To(e),c=a?R:To(t),d=(s=s==j?$:s)==$,h=(c=c==j?$:c)==$,y=s==c;if(y&&ou(e)){if(!ou(t))return!1;u=!0,d=!1}if(y&&!d)return l||(l=new fr),u||ku(e)?fo(e,t,n,r,o,l):function(e,t,n,r,i,o,l){switch(s){case ee:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case X:return!(e.byteLength!=t.byteLength||!o(new kt(e),new kt(t)));case N:case D:case G:return Yl(+e,+t);case F:return e.name==t.name&&e.message==t.message;case Q:case q:return e==t+"";case V:var u=hn;case W:if(u||(u=mn),e.size!=t.size&&!(r&p))return!1;var a=l.get(e);if(a)return a==t;r|=f,l.set(e,t);var c=fo(u(e),u(t),r,i,o,l);return l.delete(e),c;case J:if(tr)return tr.call(e)==tr.call(t)}return!1}(e,t,0,n,r,o,l);if(!(n&p)){var b=d&&tt.call(e,"__wrapped__"),m=h&&tt.call(t,"__wrapped__");if(b||m){var g=b?e.value():e,v=m?t.value():t;return l||(l=new fr),o(g,v,n,r,l)}}return!!y&&(l||(l=new fr),function(e,t,n,r,o,l){var u=n&p,a=yo(e),s=a.length;if(s!=yo(t).length&&!u)return!1;for(var c=s;c--;){var f=a[c];if(!(u?f in t:tt.call(t,f)))return!1}var d=l.get(e);if(d&&l.get(t))return d==t;var h=!0;l.set(e,t),l.set(t,e);for(var y=u;++c<s;){var b=e[f=a[c]],m=t[f];if(r)var g=u?r(m,b,f,t,e,l):r(b,m,f,e,t,l);if(!(g===i?b===m||o(b,m,n,r,l):g)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var v=e.constructor,k=t.constructor;v!=k&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof k&&k instanceof k)&&(h=!1)}return l.delete(e),l.delete(t),h}(e,t,n,r,o,l))}(e,t,n,r,Qr,o))}function Wr(e,t,n,r){var o=n.length,l=o,u=!r;if(null==e)return!l;for(e=Qe(e);o--;){var a=n[o];if(u&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<l;){var s=(a=n[o])[0],c=e[s],d=a[1];if(u&&a[2]){if(c===i&&!(s in e))return!1}else{var h=new fr;if(r)var y=r(c,d,s,e,t,h);if(!(y===i?Qr(d,c,p|f,r,h):y))return!1}}return!0}function qr(e){return!(!pu(e)||(t=e,rt&&rt in t))&&(au(e)?st:De).test(qo(e));var t}function Jr(e){return"function"==typeof e?e:null==e?ha:"object"==typeof e?tu(e)?ti(e[0],e[1]):ei(e):Oa(e)}function Yr(e){if(!Lo(e))return Rn(e);var t=[];for(var n in Qe(e))tt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Zr(e,t){return e<t}function Xr(e,t){var n=-1,i=ru(e)?r(e.length):[];return xr(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function ei(e){var t=wo(e);return 1==t.length&&t[0][2]?Do(t[0][0],t[0][1]):function(n){return n===e||Wr(n,e,t)}}function ti(e,t){return Io(e)&&No(t)?Do(Wo(e),t):function(n){var r=Du(n,e);return r===i&&r===t?Uu(n,e):Qr(t,r,p|f)}}function ni(e,t,n,r,o){e!==t&&jr(t,function(l,u){if(o||(o=new fr),pu(l))!function(e,t,n,r,o,l,u){var a=Ko(e,n),s=Ko(t,n),c=u.get(s);if(c)yr(e,n,c);else{var p=l?l(a,s,n+"",e,t,u):i,f=p===i;if(f){var d=tu(s),h=!d&&ou(s),y=!d&&!h&&ku(s);p=s,d||h||y?tu(a)?p=a:iu(a)?p=Ki(a):h?(f=!1,p=Ri(s,!0)):y?(f=!1,p=Ni(s,!0)):p=[]:yu(s)||eu(s)?(p=a,eu(a)?p=Su(a):pu(a)&&!au(a)||(p=So(s))):f=!1}f&&(u.set(s,p),o(p,s,r,l,u),u.delete(s)),yr(e,n,p)}}(e,t,u,n,ni,r,o);else{var a=r?r(Ko(e,u),l,u+"",e,t,o):i;a===i&&(a=l),yr(e,u,a)}},Gu)}function ri(e,t){var n=e.length;if(n)return Eo(t+=t<0?n:0,n)?e[t]:i}function ii(e,t,n){var r=-1;return t=Bt(t.length?t:[ha],on(ko())),function(e,t){var r=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,l=i.length,u=n.length;++r<l;){var a=Di(i[r],o[r]);if(a)return r>=u?a:a*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(Xr(e,function(e,n,i){return{criteria:Bt(t,function(t){return t(e)}),index:++r,value:e}}))}function oi(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var l=t[r],u=Ur(e,l);n(u,l)&&pi(o,Ei(l,e),u)}return o}function li(e,t,n,r){var i=r?Jt:qt,o=-1,l=t.length,u=e;for(e===t&&(t=Ki(t)),n&&(u=Bt(e,on(n)));++o<l;)for(var a=0,s=t[o],c=n?n(s):s;(a=i(u,c,a,r))>-1;)u!==e&&xt.call(u,a,1),xt.call(e,a,1);return e}function ui(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Eo(i)?xt.call(e,i,1):wi(e,i)}}return e}function ai(e,t){return e+Mn(Fn()*(t-e+1))}function si(e,t){var n="";if(!e||t<1||t>T)return n;do{t%2&&(n+=e),(t=Mn(t/2))&&(e+=e)}while(t);return n}function ci(e,t){return Go(Uo(e,t,ha),e+"")}function pi(e,t,n,r){if(!pu(e))return e;for(var o=-1,l=(t=Ei(t,e)).length,u=l-1,a=e;null!=a&&++o<l;){var s=Wo(t[o]),c=n;if(o!=u){var p=a[s];(c=r?r(p,s,a):i)===i&&(c=pu(p)?p:Eo(t[o+1])?[]:{})}br(a,s,c),a=a[s]}return e}var fi=Qn?function(e,t){return Qn.set(e,t),e}:ha,di=An?function(e,t){return An(e,"toString",{configurable:!0,enumerable:!1,value:pa(t),writable:!0})}:ha;function hi(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=r(o);++i<o;)l[i]=e[i+t];return l}function yi(e,t){var n;return xr(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function bi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=P){for(;r<i;){var o=r+i>>>1,l=e[o];null!==l&&!vu(l)&&(n?l<=t:l<t)?r=o+1:i=o}return i}return mi(e,t,ha,n)}function mi(e,t,n,r){t=n(t);for(var o=0,l=null==e?0:e.length,u=t!=t,a=null===t,s=vu(t),c=t===i;o<l;){var p=Mn((o+l)/2),f=n(e[p]),d=f!==i,h=null===f,y=f==f,b=vu(f);if(u)var m=r||y;else m=c?y&&(r||d):a?y&&d&&(r||!h):s?y&&d&&!h&&(r||!b):!h&&!b&&(r?f<=t:f<t);m?o=p+1:l=p}return Nn(l,E)}function gi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var l=e[n],u=t?t(l):l;if(!n||!Yl(u,a)){var a=u;o[i++]=0===l?0:l}}return o}function vi(e){return"number"==typeof e?e:vu(e)?S:+e}function ki(e){if("string"==typeof e)return e;if(tu(e))return Bt(e,ki)+"";if(vu(e))return nr?nr.call(e):"";var t=e+"";return"0"==t&&1/e==-C?"-0":t}function _i(e,t,n){var r=-1,i=Ft,l=e.length,u=!0,a=[],s=a;if(n)u=!1,i=Kt;else if(l>=o){var c=t?null:lo(e);if(c)return mn(c);u=!1,i=un,s=new pr}else s=t?[]:a;e:for(;++r<l;){var p=e[r],f=t?t(p):p;if(p=n||0!==p?p:0,u&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),a.push(p)}else i(s,f,n)||(s!==a&&s.push(f),a.push(p))}return a}function wi(e,t){return null==(e=Fo(e,t=Ei(t,e)))||delete e[Wo(ul(t))]}function Oi(e,t,n,r){return pi(e,t,n(Ur(e,t)),r)}function Ai(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?hi(e,r?0:o,r?o+1:i):hi(e,r?o+1:0,r?i:o)}function Ci(e,t){var n=e;return n instanceof ur&&(n=n.value()),Gt(t,function(e,t){return t.func.apply(t.thisArg,Vt([e],t.args))},n)}function Ti(e,t,n){var i=e.length;if(i<2)return i?_i(e[0]):[];for(var o=-1,l=r(i);++o<i;)for(var u=e[o],a=-1;++a<i;)a!=o&&(l[o]=Tr(l[o]||u,e[a],t,n));return _i(Ir(l,1),t,n)}function xi(e,t,n){for(var r=-1,o=e.length,l=t.length,u={};++r<o;)n(u,e[r],r<l?t[r]:i);return u}function Si(e){return iu(e)?e:[]}function Mi(e){return"function"==typeof e?e:ha}function Ei(e,t){return tu(e)?e:Io(e,t)?[e]:Qo(Mu(e))}var Pi=ci;function Ii(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:hi(e,t,n)}var ji=Cn||function(e){return wt.clearTimeout(e)};function Ri(e,t){if(t)return e.slice();var n=e.length,r=_t?_t(n):new e.constructor(n);return e.copy(r),r}function Li(e){var t=new e.constructor(e.byteLength);return new kt(t).set(new kt(e)),t}function Ni(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Di(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,l=vu(e),u=t!==i,a=null===t,s=t==t,c=vu(t);if(!a&&!c&&!l&&e>t||l&&u&&s&&!a&&!c||r&&u&&s||!n&&s||!o)return 1;if(!r&&!l&&!c&&e<t||c&&n&&o&&!r&&!l||a&&n&&o||!u&&o||!s)return-1}return 0}function Ui(e,t,n,i){for(var o=-1,l=e.length,u=n.length,a=-1,s=t.length,c=Ln(l-u,0),p=r(s+c),f=!i;++a<s;)p[a]=t[a];for(;++o<u;)(f||o<l)&&(p[n[o]]=e[o]);for(;c--;)p[a++]=e[o++];return p}function Fi(e,t,n,i){for(var o=-1,l=e.length,u=-1,a=n.length,s=-1,c=t.length,p=Ln(l-a,0),f=r(p+c),d=!i;++o<p;)f[o]=e[o];for(var h=o;++s<c;)f[h+s]=t[s];for(;++u<a;)(d||o<l)&&(f[h+n[u]]=e[o++]);return f}function Ki(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Bi(e,t,n,r){var o=!n;n||(n={});for(var l=-1,u=t.length;++l<u;){var a=t[l],s=r?r(n[a],e[a],a,n,e):i;s===i&&(s=e[a]),o?kr(n,a,s):br(n,a,s)}return n}function Vi(e,t){return function(n,r){var i=tu(n)?Lt:gr,o=t?t():{};return i(n,e,ko(r,2),o)}}function Gi(e){return ci(function(t,n){var r=-1,o=n.length,l=o>1?n[o-1]:i,u=o>2?n[2]:i;for(l=e.length>3&&"function"==typeof l?(o--,l):i,u&&Po(n[0],n[1],u)&&(l=o<3?i:l,o=1),t=Qe(t);++r<o;){var a=n[r];a&&e(t,a,r,l)}return t})}function Hi(e,t){return function(n,r){if(null==n)return n;if(!ru(n))return e(n,r);for(var i=n.length,o=t?i:-1,l=Qe(n);(t?o--:++o<i)&&!1!==r(l[o],o,l););return n}}function $i(e){return function(t,n,r){for(var i=-1,o=Qe(t),l=r(t),u=l.length;u--;){var a=l[e?u:++i];if(!1===n(o[a],a,o))break}return t}}function zi(e){return function(t){var n=dn(t=Mu(t))?kn(t):i,r=n?n[0]:t.charAt(0),o=n?Ii(n,1).join(""):t.slice(1);return r[e]()+o}}function Qi(e){return function(t){return Gt(aa(ea(t).replace(ut,"")),e,"")}}function Wi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ir(e.prototype),r=e.apply(n,t);return pu(r)?r:n}}function qi(e){return function(t,n,r){var o=Qe(t);if(!ru(t)){var l=ko(n,3);t=Vu(t),n=function(e){return l(o[e],e,o)}}var u=e(t,n,r);return u>-1?o[l?t[u]:u]:i}}function Ji(e){return ho(function(t){var n=t.length,r=n,o=lr.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Je(l);if(o&&!a&&"wrapper"==go(u))var a=new lr([],!0)}for(r=a?r:n;++r<n;){var s=go(u=t[r]),c="wrapper"==s?mo(u):i;a=c&&jo(c[0])&&c[1]==(k|b|g|_)&&!c[4].length&&1==c[9]?a[go(c[0])].apply(a,c[3]):1==u.length&&jo(u)?a[s]():a.thru(u)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&tu(r))return a.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function Yi(e,t,n,o,l,u,a,s,c,p){var f=t&k,y=t&d,g=t&h,v=t&(b|m),_=t&w,O=g?i:Wi(e);return function d(){for(var h=arguments.length,b=r(h),m=h;m--;)b[m]=arguments[m];if(v)var k=vo(d),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,k);if(o&&(b=Ui(b,o,l,v)),u&&(b=Fi(b,u,a,v)),h-=w,v&&h<p){var A=bn(b,k);return io(e,t,Yi,d.placeholder,n,b,A,s,c,p-h)}var C=y?n:this,T=g?C[e]:e;return h=b.length,s?b=function(e,t){for(var n=e.length,r=Nn(t.length,n),o=Ki(e);r--;){var l=t[r];e[r]=Eo(l,n)?o[l]:i}return e}(b,s):_&&h>1&&b.reverse(),f&&c<h&&(b.length=c),this&&this!==wt&&this instanceof d&&(T=O||Wi(T)),T.apply(C,b)}}function Zi(e,t){return function(n,r){return function(e,t,n,r){return Lr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function Xi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ki(n),r=ki(r)):(n=vi(n),r=vi(r)),o=e(n,r)}return o}}function eo(e){return ho(function(t){return t=Bt(t,on(ko())),ci(function(n){var r=this;return e(t,function(e){return Rt(e,r,n)})})})}function to(e,t){var n=(t=t===i?" ":ki(t)).length;if(n<2)return n?si(t,e):t;var r=si(t,Sn(e/vn(t)));return dn(t)?Ii(kn(r),0,e).join(""):r.slice(0,e)}function no(e){return function(t,n,o){return o&&"number"!=typeof o&&Po(t,n,o)&&(n=o=i),t=Au(t),n===i?(n=t,t=0):n=Au(n),function(e,t,n,i){for(var o=-1,l=Ln(Sn((t-e)/(n||1)),0),u=r(l);l--;)u[i?l:++o]=e,e+=n;return u}(t,n,o=o===i?t<n?1:-1:Au(o),e)}}function ro(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=xu(t),n=xu(n)),e(t,n)}}function io(e,t,n,r,o,l,u,a,s,c){var p=t&b;t|=p?g:v,(t&=~(p?v:g))&y||(t&=~(d|h));var f=[e,t,o,p?l:i,p?u:i,p?i:l,p?i:u,a,s,c],m=n.apply(i,f);return jo(e)&&Bo(m,f),m.placeholder=r,Ho(m,e,t)}function oo(e){var t=ze[e];return function(e,n){if(e=xu(e),(n=null==n?0:Nn(Cu(n),292))&&In(e)){var r=(Mu(e)+"e").split("e");return+((r=(Mu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var lo=Hn&&1/mn(new Hn([,-0]))[1]==C?function(e){return new Hn(e)}:va;function uo(e){return function(t){var n=To(t);return n==V?hn(t):n==W?gn(t):function(e,t){return Bt(t,function(t){return[t,e[t]]})}(t,e(t))}}function ao(e,t,n,o,a,s,c,p){var f=t&h;if(!f&&"function"!=typeof e)throw new Je(l);var w=o?o.length:0;if(w||(t&=~(g|v),o=a=i),c=c===i?c:Ln(Cu(c),0),p=p===i?p:Cu(p),w-=a?a.length:0,t&v){var O=o,A=a;o=a=i}var C=f?i:mo(e),T=[e,t,n,o,a,O,A,s,c,p];if(C&&function(e,t){var n=e[1],r=t[1],i=n|r;if(!(i<(d|h|k)||r==k&&n==b||r==k&&n==_&&e[7].length<=t[8]||r==(k|_)&&t[7].length<=t[8]&&n==b))return e;r&d&&(e[2]=t[2],i|=n&d?0:y);var o=t[3];if(o){var l=e[3];e[3]=l?Ui(l,o,t[4]):o,e[4]=l?bn(e[3],u):t[4]}(o=t[5])&&(e[5]=(l=e[5])?Fi(l,o,t[6]):o,e[6]=l?bn(e[5],u):t[6]),(o=t[7])&&(e[7]=o),r&k&&(e[8]=null==e[8]?t[8]:Nn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(T,C),e=T[0],t=T[1],n=T[2],o=T[3],a=T[4],!(p=T[9]=T[9]===i?f?0:e.length:Ln(T[9]-w,0))&&t&(b|m)&&(t&=~(b|m)),t&&t!=d)x=t==b||t==m?function(e,t,n){var o=Wi(e);return function l(){for(var u=arguments.length,a=r(u),s=u,c=vo(l);s--;)a[s]=arguments[s];var p=u<3&&a[0]!==c&&a[u-1]!==c?[]:bn(a,c);return(u-=p.length)<n?io(e,t,Yi,l.placeholder,i,a,p,i,i,n-u):Rt(this&&this!==wt&&this instanceof l?o:e,this,a)}}(e,t,p):t!=g&&t!=(d|g)||a.length?Yi.apply(i,T):function(e,t,n,i){var o=t&d,l=Wi(e);return function t(){for(var u=-1,a=arguments.length,s=-1,c=i.length,p=r(c+a),f=this&&this!==wt&&this instanceof t?l:e;++s<c;)p[s]=i[s];for(;a--;)p[s++]=arguments[++u];return Rt(f,o?n:this,p)}}(e,t,n,o);else var x=function(e,t,n){var r=t&d,i=Wi(e);return function t(){return(this&&this!==wt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Ho((C?fi:Bo)(x,T),e,t)}function so(e,t,n,r){return e===i||Yl(e,Ze[n])&&!tt.call(r,n)?t:e}function co(e,t,n,r,o,l){return pu(e)&&pu(t)&&(l.set(t,e),ni(e,t,i,co,l),l.delete(t)),e}function po(e){return yu(e)?i:e}function fo(e,t,n,r,o,l){var u=n&p,a=e.length,s=t.length;if(a!=s&&!(u&&s>a))return!1;var c=l.get(e);if(c&&l.get(t))return c==t;var d=-1,h=!0,y=n&f?new pr:i;for(l.set(e,t),l.set(t,e);++d<a;){var b=e[d],m=t[d];if(r)var g=u?r(m,b,d,t,e,l):r(b,m,d,e,t,l);if(g!==i){if(g)continue;h=!1;break}if(y){if(!$t(t,function(e,t){if(!un(y,t)&&(b===e||o(b,e,n,r,l)))return y.push(t)})){h=!1;break}}else if(b!==m&&!o(b,m,n,r,l)){h=!1;break}}return l.delete(e),l.delete(t),h}function ho(e){return Go(Uo(e,i,nl),e+"")}function yo(e){return Fr(e,Vu,Ao)}function bo(e){return Fr(e,Gu,Co)}var mo=Qn?function(e){return Qn.get(e)}:va;function go(e){for(var t=e.name+"",n=Wn[t],r=tt.call(Wn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function vo(e){return(tt.call(rr,"placeholder")?rr:e).placeholder}function ko(){var e=rr.iteratee||ya;return e=e===ya?Jr:e,arguments.length?e(arguments[0],arguments[1]):e}function _o(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function wo(e){for(var t=Vu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,No(i)]}return t}function Oo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return qr(n)?n:i}var Ao=En?function(e){return null==e?[]:(e=Qe(e),Ut(En(e),function(t){return Tt.call(e,t)}))}:Ta,Co=En?function(e){for(var t=[];e;)Vt(t,Ao(e)),e=Ot(e);return t}:Ta,To=Kr;function xo(e,t,n){for(var r=-1,i=(t=Ei(t,e)).length,o=!1;++r<i;){var l=Wo(t[r]);if(!(o=null!=e&&n(e,l)))break;e=e[l]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&cu(i)&&Eo(l,i)&&(tu(e)||eu(e))}function So(e){return"function"!=typeof e.constructor||Lo(e)?{}:ir(Ot(e))}function Mo(e){return tu(e)||eu(e)||!!(zt&&e&&e[zt])}function Eo(e,t){var n=typeof e;return!!(t=null==t?T:t)&&("number"==n||"symbol"!=n&&Fe.test(e))&&e>-1&&e%1==0&&e<t}function Po(e,t,n){if(!pu(n))return!1;var r=typeof t;return!!("number"==r?ru(n)&&Eo(t,n.length):"string"==r&&t in n)&&Yl(n[t],e)}function Io(e,t){if(tu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!vu(e))||_e.test(e)||!ke.test(e)||null!=t&&e in Qe(t)}function jo(e){var t=go(e),n=rr[t];if("function"!=typeof n||!(t in ur.prototype))return!1;if(e===n)return!0;var r=mo(n);return!!r&&e===r[0]}(Bn&&To(new Bn(new ArrayBuffer(1)))!=ee||Vn&&To(new Vn)!=V||Gn&&"[object Promise]"!=To(Gn.resolve())||Hn&&To(new Hn)!=W||$n&&To(new $n)!=Z)&&(To=function(e){var t=Kr(e),n=t==$?e.constructor:i,r=n?qo(n):"";if(r)switch(r){case qn:return ee;case Jn:return V;case Yn:return"[object Promise]";case Zn:return W;case Xn:return Z}return t});var Ro=Xe?au:xa;function Lo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ze)}function No(e){return e==e&&!pu(e)}function Do(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Qe(n))}}function Uo(e,t,n){return t=Ln(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,l=Ln(i.length-t,0),u=r(l);++o<l;)u[o]=i[t+o];o=-1;for(var a=r(t+1);++o<t;)a[o]=i[o];return a[t]=n(u),Rt(e,this,a)}}function Fo(e,t){return t.length<2?e:Ur(e,hi(t,0,-1))}function Ko(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Bo=$o(fi),Vo=xn||function(e,t){return wt.setTimeout(e,t)},Go=$o(di);function Ho(e,t,n){var r=t+"";return Go(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Nt(I,function(n){var r="_."+n[0];t&n[1]&&!Ft(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Me);return t?t[1].split(Ee):[]}(r),n)))}function $o(e){var t=0,n=0;return function(){var r=Dn(),o=A-(r-n);if(n=r,o>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(i,arguments)}}function zo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var l=ai(n,o),u=e[l];e[l]=e[n],e[n]=u}return e.length=t,e}var Qo=function(e){var t=$l(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(we,function(e,n,r,i){t.push(r?i.replace(Ie,"$1"):n||e)}),t},function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}();function Wo(e){if("string"==typeof e||vu(e))return e;var t=e+"";return"0"==t&&1/e==-C?"-0":t}function qo(e){if(null!=e){try{return et.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Jo(e){if(e instanceof ur)return e.clone();var t=new lr(e.__wrapped__,e.__chain__);return t.__actions__=Ki(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Yo=ci(function(e,t){return iu(e)?Tr(e,Ir(t,1,iu,!0)):[]}),Zo=ci(function(e,t){var n=ul(t);return iu(n)&&(n=i),iu(e)?Tr(e,Ir(t,1,iu,!0),ko(n,2)):[]}),Xo=ci(function(e,t){var n=ul(t);return iu(n)&&(n=i),iu(e)?Tr(e,Ir(t,1,iu,!0),i,n):[]});function el(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Cu(n);return i<0&&(i=Ln(r+i,0)),Wt(e,ko(t,3),i)}function tl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Cu(n),o=n<0?Ln(r+o,0):Nn(o,r-1)),Wt(e,ko(t,3),o,!0)}function nl(e){return null!=e&&e.length?Ir(e,1):[]}function rl(e){return e&&e.length?e[0]:i}var il=ci(function(e){var t=Bt(e,Si);return t.length&&t[0]===e[0]?Hr(t):[]}),ol=ci(function(e){var t=ul(e),n=Bt(e,Si);return t===ul(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Hr(n,ko(t,2)):[]}),ll=ci(function(e){var t=ul(e),n=Bt(e,Si);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Hr(n,i,t):[]});function ul(e){var t=null==e?0:e.length;return t?e[t-1]:i}var al=ci(sl);function sl(e,t){return e&&e.length&&t&&t.length?li(e,t):e}var cl=ho(function(e,t){var n=null==e?0:e.length,r=_r(e,t);return ui(e,Bt(t,function(e){return Eo(e,n)?+e:e}).sort(Di)),r});function pl(e){return null==e?e:Kn.call(e)}var fl=ci(function(e){return _i(Ir(e,1,iu,!0))}),dl=ci(function(e){var t=ul(e);return iu(t)&&(t=i),_i(Ir(e,1,iu,!0),ko(t,2))}),hl=ci(function(e){var t=ul(e);return t="function"==typeof t?t:i,_i(Ir(e,1,iu,!0),i,t)});function yl(e){if(!e||!e.length)return[];var t=0;return e=Ut(e,function(e){if(iu(e))return t=Ln(e.length,t),!0}),rn(t,function(t){return Bt(e,Xt(t))})}function bl(e,t){if(!e||!e.length)return[];var n=yl(e);return null==t?n:Bt(n,function(e){return Rt(t,i,e)})}var ml=ci(function(e,t){return iu(e)?Tr(e,t):[]}),gl=ci(function(e){return Ti(Ut(e,iu))}),vl=ci(function(e){var t=ul(e);return iu(t)&&(t=i),Ti(Ut(e,iu),ko(t,2))}),kl=ci(function(e){var t=ul(e);return t="function"==typeof t?t:i,Ti(Ut(e,iu),i,t)}),_l=ci(yl),wl=ci(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,bl(e,n)});function Ol(e){var t=rr(e);return t.__chain__=!0,t}function Al(e,t){return t(e)}var Cl=ho(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return _r(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ur&&Eo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Al,args:[o],thisArg:i}),new lr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),Tl=Vi(function(e,t,n){tt.call(e,n)?++e[n]:kr(e,n,1)}),xl=qi(el),Sl=qi(tl);function Ml(e,t){return(tu(e)?Nt:xr)(e,ko(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}:Sr)(e,ko(t,3))}var Pl=Vi(function(e,t,n){tt.call(e,n)?e[n].push(t):kr(e,n,[t])}),Il=ci(function(e,t,n){var i=-1,o="function"==typeof t,l=ru(e)?r(e.length):[];return xr(e,function(e){l[++i]=o?Rt(t,e,n):$r(e,t,n)}),l}),jl=Vi(function(e,t,n){kr(e,n,t)});function Rl(e,t){return(tu(e)?Bt:Xr)(e,ko(t,3))}var Ll=Vi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Nl=ci(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Po(e,t[0],t[1])?t=[]:n>2&&Po(t[0],t[1],t[2])&&(t=[t[0]]),ii(e,Ir(t,1),[])}),Dl=Tn||function(){return wt.Date.now()};function Ul(e,t,n){return t=n?i:t,ao(e,k,i,i,i,i,t=e&&null==t?e.length:t)}function Fl(e,t){var n;if("function"!=typeof t)throw new Je(l);return e=Cu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Kl=ci(function(e,t,n){var r=d;if(n.length){var i=bn(n,vo(Kl));r|=g}return ao(e,r,t,n,i)}),Bl=ci(function(e,t,n){var r=d|h;if(n.length){var i=bn(n,vo(Bl));r|=g}return ao(t,r,e,n,i)});function Vl(e,t,n){var r,o,u,a,s,c,p=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new Je(l);function y(t){var n=r,l=o;return r=o=i,p=t,a=e.apply(l,n)}function b(e){var n=e-c;return c===i||n>=t||n<0||d&&e-p>=u}function m(){var e=Dl();if(b(e))return g(e);s=Vo(m,function(e){var n=t-(e-c);return d?Nn(n,u-(e-p)):n}(e))}function g(e){return s=i,h&&r?y(e):(r=o=i,a)}function v(){var e=Dl(),n=b(e);if(r=arguments,o=this,c=e,n){if(s===i)return function(e){return p=e,s=Vo(m,t),f?y(e):a}(c);if(d)return ji(s),s=Vo(m,t),y(c)}return s===i&&(s=Vo(m,t)),a}return t=xu(t)||0,pu(n)&&(f=!!n.leading,u=(d="maxWait"in n)?Ln(xu(n.maxWait)||0,t):u,h="trailing"in n?!!n.trailing:h),v.cancel=function(){s!==i&&ji(s),p=0,r=c=o=s=i},v.flush=function(){return s===i?a:g(Dl())},v}var Gl=ci(function(e,t){return Cr(e,1,t)}),Hl=ci(function(e,t,n){return Cr(e,xu(t)||0,n)});function $l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Je(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var l=e.apply(this,r);return n.cache=o.set(i,l)||o,l};return n.cache=new($l.Cache||cr),n}function zl(e){if("function"!=typeof e)throw new Je(l);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)}}$l.Cache=cr;var Ql=Pi(function(e,t){var n=(t=1==t.length&&tu(t[0])?Bt(t[0],on(ko())):Bt(Ir(t,1),on(ko()))).length;return ci(function(r){for(var i=-1,o=Nn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Rt(e,this,r)})}),Wl=ci(function(e,t){var n=bn(t,vo(Wl));return ao(e,g,i,t,n)}),ql=ci(function(e,t){var n=bn(t,vo(ql));return ao(e,v,i,t,n)}),Jl=ho(function(e,t){return ao(e,_,i,i,i,t)});function Yl(e,t){return e===t||e!=e&&t!=t}var Zl=ro(Br),Xl=ro(function(e,t){return e>=t}),eu=zr(function(){return arguments}())?zr:function(e){return fu(e)&&tt.call(e,"callee")&&!Tt.call(e,"callee")},tu=r.isArray,nu=St?on(St):function(e){return fu(e)&&Kr(e)==X};function ru(e){return null!=e&&cu(e.length)&&!au(e)}function iu(e){return fu(e)&&ru(e)}var ou=Pn||xa,lu=Mt?on(Mt):function(e){return fu(e)&&Kr(e)==D};function uu(e){if(!fu(e))return!1;var t=Kr(e);return t==F||t==U||"string"==typeof e.message&&"string"==typeof e.name&&!yu(e)}function au(e){if(!pu(e))return!1;var t=Kr(e);return t==K||t==B||t==L||t==z}function su(e){return"number"==typeof e&&e==Cu(e)}function cu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=T}function pu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function fu(e){return null!=e&&"object"==typeof e}var du=Et?on(Et):function(e){return fu(e)&&To(e)==V};function hu(e){return"number"==typeof e||fu(e)&&Kr(e)==G}function yu(e){if(!fu(e)||Kr(e)!=$)return!1;var t=Ot(e);if(null===t)return!0;var n=tt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&et.call(n)==ot}var bu=Pt?on(Pt):function(e){return fu(e)&&Kr(e)==Q},mu=It?on(It):function(e){return fu(e)&&To(e)==W};function gu(e){return"string"==typeof e||!tu(e)&&fu(e)&&Kr(e)==q}function vu(e){return"symbol"==typeof e||fu(e)&&Kr(e)==J}var ku=jt?on(jt):function(e){return fu(e)&&cu(e.length)&&!!yt[Kr(e)]},_u=ro(Zr),wu=ro(function(e,t){return e<=t});function Ou(e){if(!e)return[];if(ru(e))return gu(e)?kn(e):Ki(e);if(en&&e[en])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[en]());var t=To(e);return(t==V?hn:t==W?mn:Yu)(e)}function Au(e){return e?(e=xu(e))===C||e===-C?(e<0?-1:1)*x:e==e?e:0:0===e?e:0}function Cu(e){var t=Au(e),n=t%1;return t==t?n?t-n:t:0}function Tu(e){return e?wr(Cu(e),0,M):0}function xu(e){if("number"==typeof e)return e;if(vu(e))return S;if(pu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ce,"");var n=Ne.test(e);return n||Ue.test(e)?vt(e.slice(2),n?2:8):Le.test(e)?S:+e}function Su(e){return Bi(e,Gu(e))}function Mu(e){return null==e?"":ki(e)}var Eu=Gi(function(e,t){if(Lo(t)||ru(t))Bi(t,Vu(t),e);else for(var n in t)tt.call(t,n)&&br(e,n,t[n])}),Pu=Gi(function(e,t){Bi(t,Gu(t),e)}),Iu=Gi(function(e,t,n,r){Bi(t,Gu(t),e,r)}),ju=Gi(function(e,t,n,r){Bi(t,Vu(t),e,r)}),Ru=ho(_r),Lu=ci(function(e,t){e=Qe(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Po(t[0],t[1],o)&&(r=1);++n<r;)for(var l=t[n],u=Gu(l),a=-1,s=u.length;++a<s;){var c=u[a],p=e[c];(p===i||Yl(p,Ze[c])&&!tt.call(e,c))&&(e[c]=l[c])}return e}),Nu=ci(function(e){return e.push(i,co),Rt($u,i,e)});function Du(e,t,n){var r=null==e?i:Ur(e,t);return r===i?n:r}function Uu(e,t){return null!=e&&xo(e,t,Gr)}var Fu=Zi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=it.call(t)),e[t]=n},pa(ha)),Ku=Zi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=it.call(t)),tt.call(e,t)?e[t].push(n):e[t]=[n]},ko),Bu=ci($r);function Vu(e){return ru(e)?dr(e):Yr(e)}function Gu(e){return ru(e)?dr(e,!0):function(e){if(!pu(e))return function(e){var t=[];if(null!=e)for(var n in Qe(e))t.push(n);return t}(e);var t=Lo(e),n=[];for(var r in e)("constructor"!=r||!t&&tt.call(e,r))&&n.push(r);return n}(e)}var Hu=Gi(function(e,t,n){ni(e,t,n)}),$u=Gi(function(e,t,n,r){ni(e,t,n,r)}),zu=ho(function(e,t){var n={};if(null==e)return n;var r=!1;t=Bt(t,function(t){return t=Ei(t,e),r||(r=t.length>1),t}),Bi(e,bo(e),n),r&&(n=Or(n,a|s|c,po));for(var i=t.length;i--;)wi(n,t[i]);return n}),Qu=ho(function(e,t){return null==e?{}:function(e,t){return oi(e,t,function(t,n){return Uu(e,n)})}(e,t)});function Wu(e,t){if(null==e)return{};var n=Bt(bo(e),function(e){return[e]});return t=ko(t),oi(e,n,function(e,n){return t(e,n[0])})}var qu=uo(Vu),Ju=uo(Gu);function Yu(e){return null==e?[]:ln(e,Vu(e))}var Zu=Qi(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,cn).replace(at,"")}var ta=Qi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),na=Qi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ra=zi("toLowerCase"),ia=Qi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),oa=Qi(function(e,t,n){return e+(n?" ":"")+ua(t)}),la=Qi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ua=zi("toUpperCase");function aa(e,t,n){return e=Mu(e),(t=n?i:t)===i?function(e){return ft.test(e)}(e)?function(e){return e.match(ct)||[]}(e):function(e){return e.match(Pe)||[]}(e):e.match(t)||[]}var sa=ci(function(e,t){try{return Rt(e,i,t)}catch(n){return uu(n)?n:new He(n)}}),ca=ho(function(e,t){return Nt(t,function(t){t=Wo(t),kr(e,t,Kl(e[t],e))}),e});function pa(e){return function(){return e}}var fa=Ji(),da=Ji(!0);function ha(e){return e}function ya(e){return Jr("function"==typeof e?e:Or(e,a))}var ba=ci(function(e,t){return function(n){return $r(n,e,t)}}),ma=ci(function(e,t){return function(n){return $r(e,n,t)}});function ga(e,t,n){var r=Vu(t),i=Dr(t,r);null!=n||pu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Dr(t,Vu(t)));var o=!(pu(n)&&"chain"in n&&!n.chain),l=au(e);return Nt(i,function(n){var r=t[n];e[n]=r,l&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Ki(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Vt([this.value()],arguments))})}),e}function va(){}var ka=eo(Bt),_a=eo(Dt),wa=eo($t);function Oa(e){return Io(e)?Xt(Wo(e)):function(e){return function(t){return Ur(t,e)}}(e)}var Aa=no(),Ca=no(!0);function Ta(){return[]}function xa(){return!1}var Sa,Ma=Xi(function(e,t){return e+t},0),Ea=oo("ceil"),Pa=Xi(function(e,t){return e/t},1),Ia=oo("floor"),ja=Xi(function(e,t){return e*t},1),Ra=oo("round"),La=Xi(function(e,t){return e-t},0);return rr.after=function(e,t){if("function"!=typeof t)throw new Je(l);return e=Cu(e),function(){if(--e<1)return t.apply(this,arguments)}},rr.ary=Ul,rr.assign=Eu,rr.assignIn=Pu,rr.assignInWith=Iu,rr.assignWith=ju,rr.at=Ru,rr.before=Fl,rr.bind=Kl,rr.bindAll=ca,rr.bindKey=Bl,rr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return tu(e)?e:[e]},rr.chain=Ol,rr.chunk=function(e,t,n){t=(n?Po(e,t,n):t===i)?1:Ln(Cu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var l=0,u=0,a=r(Sn(o/t));l<o;)a[u++]=hi(e,l,l+=t);return a},rr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},rr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Vt(tu(n)?Ki(n):[n],Ir(t,1))},rr.cond=function(e){var t=null==e?0:e.length,n=ko();return e=t?Bt(e,function(e){if("function"!=typeof e[1])throw new Je(l);return[n(e[0]),e[1]]}):[],ci(function(n){for(var r=-1;++r<t;){var i=e[r];if(Rt(i[0],this,n))return Rt(i[1],this,n)}})},rr.conforms=function(e){return function(e){var t=Vu(e);return function(n){return Ar(n,e,t)}}(Or(e,a))},rr.constant=pa,rr.countBy=Tl,rr.create=function(e,t){var n=ir(e);return null==t?n:vr(n,t)},rr.curry=function e(t,n,r){var o=ao(t,b,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},rr.curryRight=function e(t,n,r){var o=ao(t,m,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},rr.debounce=Vl,rr.defaults=Lu,rr.defaultsDeep=Nu,rr.defer=Gl,rr.delay=Hl,rr.difference=Yo,rr.differenceBy=Zo,rr.differenceWith=Xo,rr.drop=function(e,t,n){var r=null==e?0:e.length;return r?hi(e,(t=n||t===i?1:Cu(t))<0?0:t,r):[]},rr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?hi(e,0,(t=r-(t=n||t===i?1:Cu(t)))<0?0:t):[]},rr.dropRightWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3),!0,!0):[]},rr.dropWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3),!0):[]},rr.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Po(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Cu(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:Cu(r))<0&&(r+=o),r=n>r?0:Tu(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},rr.filter=function(e,t){return(tu(e)?Ut:Pr)(e,ko(t,3))},rr.flatMap=function(e,t){return Ir(Rl(e,t),1)},rr.flatMapDeep=function(e,t){return Ir(Rl(e,t),C)},rr.flatMapDepth=function(e,t,n){return n=n===i?1:Cu(n),Ir(Rl(e,t),n)},rr.flatten=nl,rr.flattenDeep=function(e){return null!=e&&e.length?Ir(e,C):[]},rr.flattenDepth=function(e,t){return null!=e&&e.length?Ir(e,t=t===i?1:Cu(t)):[]},rr.flip=function(e){return ao(e,w)},rr.flow=fa,rr.flowRight=da,rr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},rr.functions=function(e){return null==e?[]:Dr(e,Vu(e))},rr.functionsIn=function(e){return null==e?[]:Dr(e,Gu(e))},rr.groupBy=Pl,rr.initial=function(e){return null!=e&&e.length?hi(e,0,-1):[]},rr.intersection=il,rr.intersectionBy=ol,rr.intersectionWith=ll,rr.invert=Fu,rr.invertBy=Ku,rr.invokeMap=Il,rr.iteratee=ya,rr.keyBy=jl,rr.keys=Vu,rr.keysIn=Gu,rr.map=Rl,rr.mapKeys=function(e,t){var n={};return t=ko(t,3),Lr(e,function(e,r,i){kr(n,t(e,r,i),e)}),n},rr.mapValues=function(e,t){var n={};return t=ko(t,3),Lr(e,function(e,r,i){kr(n,r,t(e,r,i))}),n},rr.matches=function(e){return ei(Or(e,a))},rr.matchesProperty=function(e,t){return ti(e,Or(t,a))},rr.memoize=$l,rr.merge=Hu,rr.mergeWith=$u,rr.method=ba,rr.methodOf=ma,rr.mixin=ga,rr.negate=zl,rr.nthArg=function(e){return e=Cu(e),ci(function(t){return ri(t,e)})},rr.omit=zu,rr.omitBy=function(e,t){return Wu(e,zl(ko(t)))},rr.once=function(e){return Fl(2,e)},rr.orderBy=function(e,t,n,r){return null==e?[]:(tu(t)||(t=null==t?[]:[t]),tu(n=r?i:n)||(n=null==n?[]:[n]),ii(e,t,n))},rr.over=ka,rr.overArgs=Ql,rr.overEvery=_a,rr.overSome=wa,rr.partial=Wl,rr.partialRight=ql,rr.partition=Ll,rr.pick=Qu,rr.pickBy=Wu,rr.property=Oa,rr.propertyOf=function(e){return function(t){return null==e?i:Ur(e,t)}},rr.pull=al,rr.pullAll=sl,rr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?li(e,t,ko(n,2)):e},rr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?li(e,t,i,n):e},rr.pullAt=cl,rr.range=Aa,rr.rangeRight=Ca,rr.rearg=Jl,rr.reject=function(e,t){return(tu(e)?Ut:Pr)(e,zl(ko(t,3)))},rr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ko(t,3);++r<o;){var l=e[r];t(l,r,e)&&(n.push(l),i.push(r))}return ui(e,i),n},rr.rest=function(e,t){if("function"!=typeof e)throw new Je(l);return ci(e,t=t===i?t:Cu(t))},rr.reverse=pl,rr.sampleSize=function(e,t,n){return t=(n?Po(e,t,n):t===i)?1:Cu(t),(tu(e)?function(e,t){return zo(Ki(e),wr(t,0,e.length))}:function(e,t){var n=Yu(e);return zo(n,wr(t,0,n.length))})(e,t)},rr.set=function(e,t,n){return null==e?e:pi(e,t,n)},rr.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:pi(e,t,n,r)},rr.shuffle=function(e){return(tu(e)?function(e){return zo(Ki(e))}:function(e){return zo(Yu(e))})(e)},rr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Po(e,t,n)?(t=0,n=r):(t=null==t?0:Cu(t),n=n===i?r:Cu(n)),hi(e,t,n)):[]},rr.sortBy=Nl,rr.sortedUniq=function(e){return e&&e.length?gi(e):[]},rr.sortedUniqBy=function(e,t){return e&&e.length?gi(e,ko(t,2)):[]},rr.split=function(e,t,n){return n&&"number"!=typeof n&&Po(e,t,n)&&(t=n=i),(n=n===i?M:n>>>0)?(e=Mu(e))&&("string"==typeof t||null!=t&&!bu(t))&&!(t=ki(t))&&dn(e)?Ii(kn(e),0,n):e.split(t,n):[]},rr.spread=function(e,t){if("function"!=typeof e)throw new Je(l);return t=null==t?0:Ln(Cu(t),0),ci(function(n){var r=n[t],i=Ii(n,0,t);return r&&Vt(i,r),Rt(e,this,i)})},rr.tail=function(e){var t=null==e?0:e.length;return t?hi(e,1,t):[]},rr.take=function(e,t,n){return e&&e.length?hi(e,0,(t=n||t===i?1:Cu(t))<0?0:t):[]},rr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?hi(e,(t=r-(t=n||t===i?1:Cu(t)))<0?0:t,r):[]},rr.takeRightWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3),!1,!0):[]},rr.takeWhile=function(e,t){return e&&e.length?Ai(e,ko(t,3)):[]},rr.tap=function(e,t){return t(e),e},rr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Je(l);return pu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vl(e,t,{leading:r,maxWait:t,trailing:i})},rr.thru=Al,rr.toArray=Ou,rr.toPairs=qu,rr.toPairsIn=Ju,rr.toPath=function(e){return tu(e)?Bt(e,Wo):vu(e)?[e]:Ki(Qo(Mu(e)))},rr.toPlainObject=Su,rr.transform=function(e,t,n){var r=tu(e),i=r||ou(e)||ku(e);if(t=ko(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:pu(e)&&au(o)?ir(Ot(e)):{}}return(i?Nt:Lr)(e,function(e,r,i){return t(n,e,r,i)}),n},rr.unary=function(e){return Ul(e,1)},rr.union=fl,rr.unionBy=dl,rr.unionWith=hl,rr.uniq=function(e){return e&&e.length?_i(e):[]},rr.uniqBy=function(e,t){return e&&e.length?_i(e,ko(t,2)):[]},rr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?_i(e,i,t):[]},rr.unset=function(e,t){return null==e||wi(e,t)},rr.unzip=yl,rr.unzipWith=bl,rr.update=function(e,t,n){return null==e?e:Oi(e,t,Mi(n))},rr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Oi(e,t,Mi(n),r)},rr.values=Yu,rr.valuesIn=function(e){return null==e?[]:ln(e,Gu(e))},rr.without=ml,rr.words=aa,rr.wrap=function(e,t){return Wl(Mi(t),e)},rr.xor=gl,rr.xorBy=vl,rr.xorWith=kl,rr.zip=_l,rr.zipObject=function(e,t){return xi(e||[],t||[],br)},rr.zipObjectDeep=function(e,t){return xi(e||[],t||[],pi)},rr.zipWith=wl,rr.entries=qu,rr.entriesIn=Ju,rr.extend=Pu,rr.extendWith=Iu,ga(rr,rr),rr.add=Ma,rr.attempt=sa,rr.camelCase=Zu,rr.capitalize=Xu,rr.ceil=Ea,rr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=xu(n))==n?n:0),t!==i&&(t=(t=xu(t))==t?t:0),wr(xu(e),t,n)},rr.clone=function(e){return Or(e,c)},rr.cloneDeep=function(e){return Or(e,a|c)},rr.cloneDeepWith=function(e,t){return Or(e,a|c,t="function"==typeof t?t:i)},rr.cloneWith=function(e,t){return Or(e,c,t="function"==typeof t?t:i)},rr.conformsTo=function(e,t){return null==t||Ar(e,t,Vu(t))},rr.deburr=ea,rr.defaultTo=function(e,t){return null==e||e!=e?t:e},rr.divide=Pa,rr.endsWith=function(e,t,n){e=Mu(e),t=ki(t);var r=e.length,o=n=n===i?r:wr(Cu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},rr.eq=Yl,rr.escape=function(e){return(e=Mu(e))&&be.test(e)?e.replace(he,pn):e},rr.escapeRegExp=function(e){return(e=Mu(e))&&Ae.test(e)?e.replace(Oe,"\\$&"):e},rr.every=function(e,t,n){var r=tu(e)?Dt:Mr;return n&&Po(e,t,n)&&(t=i),r(e,ko(t,3))},rr.find=xl,rr.findIndex=el,rr.findKey=function(e,t){return Qt(e,ko(t,3),Lr)},rr.findLast=Sl,rr.findLastIndex=tl,rr.findLastKey=function(e,t){return Qt(e,ko(t,3),Nr)},rr.floor=Ia,rr.forEach=Ml,rr.forEachRight=El,rr.forIn=function(e,t){return null==e?e:jr(e,ko(t,3),Gu)},rr.forInRight=function(e,t){return null==e?e:Rr(e,ko(t,3),Gu)},rr.forOwn=function(e,t){return e&&Lr(e,ko(t,3))},rr.forOwnRight=function(e,t){return e&&Nr(e,ko(t,3))},rr.get=Du,rr.gt=Zl,rr.gte=Xl,rr.has=function(e,t){return null!=e&&xo(e,t,Vr)},rr.hasIn=Uu,rr.head=rl,rr.identity=ha,rr.includes=function(e,t,n,r){e=ru(e)?e:Yu(e),n=n&&!r?Cu(n):0;var i=e.length;return n<0&&(n=Ln(i+n,0)),gu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&qt(e,t,n)>-1},rr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Cu(n);return i<0&&(i=Ln(r+i,0)),qt(e,t,i)},rr.inRange=function(e,t,n){return t=Au(t),n===i?(n=t,t=0):n=Au(n),function(e,t,n){return e>=Nn(t,n)&&e<Ln(t,n)}(e=xu(e),t,n)},rr.invoke=Bu,rr.isArguments=eu,rr.isArray=tu,rr.isArrayBuffer=nu,rr.isArrayLike=ru,rr.isArrayLikeObject=iu,rr.isBoolean=function(e){return!0===e||!1===e||fu(e)&&Kr(e)==N},rr.isBuffer=ou,rr.isDate=lu,rr.isElement=function(e){return fu(e)&&1===e.nodeType&&!yu(e)},rr.isEmpty=function(e){if(null==e)return!0;if(ru(e)&&(tu(e)||"string"==typeof e||"function"==typeof e.splice||ou(e)||ku(e)||eu(e)))return!e.length;var t=To(e);if(t==V||t==W)return!e.size;if(Lo(e))return!Yr(e).length;for(var n in e)if(tt.call(e,n))return!1;return!0},rr.isEqual=function(e,t){return Qr(e,t)},rr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Qr(e,t,i,n):!!r},rr.isError=uu,rr.isFinite=function(e){return"number"==typeof e&&In(e)},rr.isFunction=au,rr.isInteger=su,rr.isLength=cu,rr.isMap=du,rr.isMatch=function(e,t){return e===t||Wr(e,t,wo(t))},rr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Wr(e,t,wo(t),n)},rr.isNaN=function(e){return hu(e)&&e!=+e},rr.isNative=function(e){if(Ro(e))throw new He("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return qr(e)},rr.isNil=function(e){return null==e},rr.isNull=function(e){return null===e},rr.isNumber=hu,rr.isObject=pu,rr.isObjectLike=fu,rr.isPlainObject=yu,rr.isRegExp=bu,rr.isSafeInteger=function(e){return su(e)&&e>=-T&&e<=T},rr.isSet=mu,rr.isString=gu,rr.isSymbol=vu,rr.isTypedArray=ku,rr.isUndefined=function(e){return e===i},rr.isWeakMap=function(e){return fu(e)&&To(e)==Z},rr.isWeakSet=function(e){return fu(e)&&"[object WeakSet]"==Kr(e)},rr.join=function(e,t){return null==e?"":jn.call(e,t)},rr.kebabCase=ta,rr.last=ul,rr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Cu(n))<0?Ln(r+o,0):Nn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Wt(e,Yt,o,!0)},rr.lowerCase=na,rr.lowerFirst=ra,rr.lt=_u,rr.lte=wu,rr.max=function(e){return e&&e.length?Er(e,ha,Br):i},rr.maxBy=function(e,t){return e&&e.length?Er(e,ko(t,2),Br):i},rr.mean=function(e){return Zt(e,ha)},rr.meanBy=function(e,t){return Zt(e,ko(t,2))},rr.min=function(e){return e&&e.length?Er(e,ha,Zr):i},rr.minBy=function(e,t){return e&&e.length?Er(e,ko(t,2),Zr):i},rr.stubArray=Ta,rr.stubFalse=xa,rr.stubObject=function(){return{}},rr.stubString=function(){return""},rr.stubTrue=function(){return!0},rr.multiply=ja,rr.nth=function(e,t){return e&&e.length?ri(e,Cu(t)):i},rr.noConflict=function(){return wt._===this&&(wt._=lt),this},rr.noop=va,rr.now=Dl,rr.pad=function(e,t,n){e=Mu(e);var r=(t=Cu(t))?vn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return to(Mn(i),n)+e+to(Sn(i),n)},rr.padEnd=function(e,t,n){e=Mu(e);var r=(t=Cu(t))?vn(e):0;return t&&r<t?e+to(t-r,n):e},rr.padStart=function(e,t,n){e=Mu(e);var r=(t=Cu(t))?vn(e):0;return t&&r<t?to(t-r,n)+e:e},rr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Un(Mu(e).replace(Te,""),t||0)},rr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Po(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Au(e),t===i?(t=e,e=0):t=Au(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Fn();return Nn(e+o*(t-e+gt("1e-"+((o+"").length-1))),t)}return ai(e,t)},rr.reduce=function(e,t,n){var r=tu(e)?Gt:tn,i=arguments.length<3;return r(e,ko(t,4),n,i,xr)},rr.reduceRight=function(e,t,n){var r=tu(e)?Ht:tn,i=arguments.length<3;return r(e,ko(t,4),n,i,Sr)},rr.repeat=function(e,t,n){return t=(n?Po(e,t,n):t===i)?1:Cu(t),si(Mu(e),t)},rr.replace=function(){var e=arguments,t=Mu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rr.result=function(e,t,n){var r=-1,o=(t=Ei(t,e)).length;for(o||(o=1,e=i);++r<o;){var l=null==e?i:e[Wo(t[r])];l===i&&(r=o,l=n),e=au(l)?l.call(e):l}return e},rr.round=Ra,rr.runInContext=e,rr.sample=function(e){return(tu(e)?hr:function(e){return hr(Yu(e))})(e)},rr.size=function(e){if(null==e)return 0;if(ru(e))return gu(e)?vn(e):e.length;var t=To(e);return t==V||t==W?e.size:Yr(e).length},rr.snakeCase=ia,rr.some=function(e,t,n){var r=tu(e)?$t:yi;return n&&Po(e,t,n)&&(t=i),r(e,ko(t,3))},rr.sortedIndex=function(e,t){return bi(e,t)},rr.sortedIndexBy=function(e,t,n){return mi(e,t,ko(n,2))},rr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=bi(e,t);if(r<n&&Yl(e[r],t))return r}return-1},rr.sortedLastIndex=function(e,t){return bi(e,t,!0)},rr.sortedLastIndexBy=function(e,t,n){return mi(e,t,ko(n,2),!0)},rr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=bi(e,t,!0)-1;if(Yl(e[n],t))return n}return-1},rr.startCase=oa,rr.startsWith=function(e,t,n){return e=Mu(e),n=null==n?0:wr(Cu(n),0,e.length),t=ki(t),e.slice(n,n+t.length)==t},rr.subtract=La,rr.sum=function(e){return e&&e.length?nn(e,ha):0},rr.sumBy=function(e,t){return e&&e.length?nn(e,ko(t,2)):0},rr.template=function(e,t,n){var r=rr.templateSettings;n&&Po(e,t,n)&&(t=i),e=Mu(e),t=Iu({},t,r,so);var o,l,u=Iu({},t.imports,r.imports,so),a=Vu(u),s=ln(u,a),c=0,p=t.interpolate||Be,f="__p += '",d=We((t.escape||Be).source+"|"+p.source+"|"+(p===ve?je:Be).source+"|"+(t.evaluate||Be).source+"|$","g"),h="//# sourceURL="+(tt.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++ht+"]")+"\n";e.replace(d,function(t,n,r,i,u,a){return r||(r=i),f+=e.slice(c,a).replace(Ve,fn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(l=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+t.length,t}),f+="';\n";var y=tt.call(t,"variable")&&t.variable;y||(f="with (obj) {\n"+f+"\n}\n"),f=(l?f.replace(ce,""):f).replace(pe,"$1").replace(fe,"$1;"),f="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var b=sa(function(){return $e(a,h+"return "+f).apply(i,s)});if(b.source=f,uu(b))throw b;return b},rr.times=function(e,t){if((e=Cu(e))<1||e>T)return[];var n=M,r=Nn(e,M);t=ko(t),e-=M;for(var i=rn(r,t);++n<e;)t(n);return i},rr.toFinite=Au,rr.toInteger=Cu,rr.toLength=Tu,rr.toLower=function(e){return Mu(e).toLowerCase()},rr.toNumber=xu,rr.toSafeInteger=function(e){return e?wr(Cu(e),-T,T):0===e?e:0},rr.toString=Mu,rr.toUpper=function(e){return Mu(e).toUpperCase()},rr.trim=function(e,t,n){if((e=Mu(e))&&(n||t===i))return e.replace(Ce,"");if(!e||!(t=ki(t)))return e;var r=kn(e),o=kn(t);return Ii(r,an(r,o),sn(r,o)+1).join("")},rr.trimEnd=function(e,t,n){if((e=Mu(e))&&(n||t===i))return e.replace(xe,"");if(!e||!(t=ki(t)))return e;var r=kn(e);return Ii(r,0,sn(r,kn(t))+1).join("")},rr.trimStart=function(e,t,n){if((e=Mu(e))&&(n||t===i))return e.replace(Te,"");if(!e||!(t=ki(t)))return e;var r=kn(e);return Ii(r,an(r,kn(t))).join("")},rr.truncate=function(e,t){var n=30,r="...";if(pu(t)){var o="separator"in t?t.separator:o;n="length"in t?Cu(t.length):n,r="omission"in t?ki(t.omission):r}var l=(e=Mu(e)).length;if(dn(e)){var u=kn(e);l=u.length}if(n>=l)return e;var a=n-vn(r);if(a<1)return r;var s=u?Ii(u,0,a).join(""):e.slice(0,a);if(o===i)return s+r;if(u&&(a+=s.length-a),bu(o)){if(e.slice(a).search(o)){var c,p=s;for(o.global||(o=We(o.source,Mu(Re.exec(o))+"g")),o.lastIndex=0;c=o.exec(p);)var f=c.index;s=s.slice(0,f===i?a:f)}}else if(e.indexOf(ki(o),a)!=a){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},rr.unescape=function(e){return(e=Mu(e))&&ye.test(e)?e.replace(de,_n):e},rr.uniqueId=function(e){var t=++nt;return Mu(e)+t},rr.upperCase=la,rr.upperFirst=ua,rr.each=Ml,rr.eachRight=El,rr.first=rl,ga(rr,(Sa={},Lr(rr,function(e,t){tt.call(rr.prototype,t)||(Sa[t]=e)}),Sa),{chain:!1}),rr.VERSION="4.17.15",Nt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rr[e].placeholder=rr}),Nt(["drop","take"],function(e,t){ur.prototype[e]=function(n){n=n===i?1:Ln(Cu(n),0);var r=this.__filtered__&&!t?new ur(this):this.clone();return r.__filtered__?r.__takeCount__=Nn(n,r.__takeCount__):r.__views__.push({size:Nn(n,M),type:e+(r.__dir__<0?"Right":"")}),r},ur.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Nt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;ur.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ko(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Nt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ur.prototype[e]=function(){return this[n](1).value()[0]}}),Nt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ur.prototype[e]=function(){return this.__filtered__?new ur(this):this[n](1)}}),ur.prototype.compact=function(){return this.filter(ha)},ur.prototype.find=function(e){return this.filter(e).head()},ur.prototype.findLast=function(e){return this.reverse().find(e)},ur.prototype.invokeMap=ci(function(e,t){return"function"==typeof e?new ur(this):this.map(function(n){return $r(n,e,t)})}),ur.prototype.reject=function(e){return this.filter(zl(ko(e)))},ur.prototype.slice=function(e,t){e=Cu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ur(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Cu(t))<0?n.dropRight(-t):n.take(t-e)),n)},ur.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ur.prototype.toArray=function(){return this.take(M)},Lr(ur.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=rr[r?"take"+("last"==t?"Right":""):t],l=r||/^find/.test(t);o&&(rr.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,a=t instanceof ur,s=u[0],c=a||tu(t),p=function(e){var t=o.apply(rr,Vt([e],u));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(a=c=!1);var f=this.__chain__,d=!!this.__actions__.length,h=l&&!f,y=a&&!d;if(!l&&c){t=y?t:new ur(this);var b=e.apply(t,u);return b.__actions__.push({func:Al,args:[p],thisArg:i}),new lr(b,f)}return h&&y?e.apply(this,u):(b=this.thru(p),h?r?b.value()[0]:b.value():b)})}),Nt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);rr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(tu(i)?i:[],e)}return this[n](function(n){return t.apply(tu(n)?n:[],e)})}}),Lr(ur.prototype,function(e,t){var n=rr[t];if(n){var r=n.name+"";tt.call(Wn,r)||(Wn[r]=[]),Wn[r].push({name:t,func:n})}}),Wn[Yi(i,h).name]=[{name:"wrapper",func:i}],ur.prototype.clone=function(){var e=new ur(this.__wrapped__);return e.__actions__=Ki(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ki(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ki(this.__views__),e},ur.prototype.reverse=function(){if(this.__filtered__){var e=new ur(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ur.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=tu(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],l=o.size;switch(o.type){case"drop":e+=l;break;case"dropRight":t-=l;break;case"take":t=Nn(t,e+l);break;case"takeRight":e=Ln(e,t-l)}}return{start:e,end:t}}(0,i,this.__views__),l=o.start,u=o.end,a=u-l,s=r?u:l-1,c=this.__iteratees__,p=c.length,f=0,d=Nn(a,this.__takeCount__);if(!n||!r&&i==a&&d==a)return Ci(e,this.__actions__);var h=[];e:for(;a--&&f<d;){for(var y=-1,b=e[s+=t];++y<p;){var m=c[y],g=m.type,v=(0,m.iteratee)(b);if(2==g)b=v;else if(!v){if(1==g)continue e;break e}}h[f++]=b}return h},rr.prototype.at=Cl,rr.prototype.chain=function(){return Ol(this)},rr.prototype.commit=function(){return new lr(this.value(),this.__chain__)},rr.prototype.next=function(){this.__values__===i&&(this.__values__=Ou(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},rr.prototype.plant=function(e){for(var t,n=this;n instanceof or;){var r=Jo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},rr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ur){var t=e;return this.__actions__.length&&(t=new ur(this)),(t=t.reverse()).__actions__.push({func:Al,args:[pl],thisArg:i}),new lr(t,this.__chain__)}return this.thru(pl)},rr.prototype.toJSON=rr.prototype.valueOf=rr.prototype.value=function(){return Ci(this.__wrapped__,this.__actions__)},rr.prototype.first=rr.prototype.head,en&&(rr.prototype[en]=function(){return this}),rr}();wt._=wn,(r=(function(){return wn}).call(t,n,t,e))===i||(e.exports=r)}).call(this)}).call(this,n("YuTi")(e))},ny24:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("mrSG"),i=n("MGBS"),o=n("zotm");function l(e){return function(t){return t.lift(new u(e))}}var u=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new a(e),r=Object(o.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),a=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return r.c(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(i.a)},omOa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("mz7f");t.storeFreeze=function(e){return function(t,n){r(t=t||{}),n.payload&&r(n.payload);var i=e(t,n);return r(i),i}}},oxjq:function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},p0ib:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("6blF"),i=n("nkY7"),o=n("Zn8D"),l=n("IUTb");function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,u=null,a=e[e.length-1];return Object(i.a)(a)?(u=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),null===u&&1===e.length&&e[0]instanceof r.a?e[0]:Object(o.a)(n)(Object(l.a)(e,u))}},p2JS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/");class o{fromJsonObject(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}fromBinary(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}toJsonObject(){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}}toBinary(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)}toString(){return`<ModuleConfiguration id="${this.id}" >`}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"id",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"pointerMode",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"deceleratedPointerSpeedMultiplier",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"basePointerSpeedMultiplier",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"acceleratedPointerSpeedMultiplier",void 0),r.__decorate([i.assertUInt16,r.__metadata("design:type",Number)],o.prototype,"angularShift",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"modLayerPointerFunction",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"fnLayerPointerFunction",void 0),r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],o.prototype,"mouseLayerPointerFunction",void 0),t.ModuleConfiguration=o},psW0:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("mrSG"),i=n("zotm"),o=n("MGBS"),l=n("rPjj"),u=n("67Y/"),a=n("0/uQ");function s(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(s(function(n,r){return Object(a.a)(e(n,r)).pipe(Object(u.a)(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new c(e,n))})}var c=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new p(e,this.project,this.concurrent))},e}(),p=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.c(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new l.a(this,void 0,void 0);this.destination.add(r),Object(i.a)(this,e,t,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.a)},pugT:function(e,t,n){"use strict";var r=n("isby"),i=n("McSo"),o=n("2Bdj");function l(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}l.prototype=Object.create(Error.prototype);var u=l;n.d(t,"a",function(){return a});var a=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this._parentOrParents,l=this._unsubscribe,a=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var c=0;c<n.length;++c)n[c].remove(this);if(Object(o.a)(l))try{l.call(this)}catch(d){t=d instanceof u?s(d.errors):[d]}if(Object(r.a)(a)){c=-1;for(var p=a.length;++c<p;){var f=a[c];if(Object(i.a)(f))try{f.unsubscribe()}catch(d){t=t||[],d instanceof u?t=t.concat(s(d.errors)):t.push(d)}}}if(t)throw new u(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function s(e){return e.reduce(function(e,t){return e.concat(t instanceof u?t.errors:t)},[])}},"q3/1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{}t.IpcResponse=r,t.FirmwareUpgradeIpcResponse=class extends r{}},qaQF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq"),i=n("Mfn/"),o=n("TEuf");class l{constructor(e){e&&(this.id=e.id,this.keyActions=e.keyActions.map(e=>o.KeyActionHelper.createKeyAction(e)))}fromJsonObject(e,t){return this.id=e.id,this.keyActions=e.keyActions.map(e=>o.KeyActionHelper.createKeyAction(e,t)),this}fromBinary(e,t){this.id=e.readUInt8();const n=e.readCompactLength();this.keyActions=[];for(let r=0;r<n;++r)this.keyActions.push(o.KeyActionHelper.createKeyAction(e,t));return this}toJsonObject(e){return{id:this.id,keyActions:this.keyActions.map(t=>!t||!e&&(t instanceof o.PlayMacroAction||t instanceof o.SwitchKeymapAction)?null:t.toJsonObject(e))}}toBinary(e,t){e.writeUInt8(this.id);const n=new o.NoneAction;e.writeArray(this.keyActions,(e,r)=>{r?r.toBinary(e,t):n.toBinary(e)})}toString(){return`<Module id="${this.id}">`}renameKeymap(e,t){let n,r=!1;if(this.keyActions.forEach((i,o)=>{if(!i)return;const l=i.renameKeymap(e,t);l!==i&&(r||(n=this.keyActions.slice(),r=!0),n[o]=l)}),r){const e=Object.assign(new l,this);return e.keyActions=n,e}return this}}r.__decorate([i.assertUInt8,r.__metadata("design:type",Number)],l.prototype,"id",void 0),t.Module=l},rBfm:function(e,t,n){"use strict";var r;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"}(r=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=class{assertMacroActionType(e){const n=this.getName();if(e.macroActionType!==t.macroActionType[n])throw`Invalid ${n}.macroActionType: ${e.macroActionType}`}readAndAssertMacroActionId(e){const t=this.getName(),n=e.readUInt8(),i=r[t];if(i===r.KeyMacroAction){if(n<r.KeyMacroAction||n>r.LastKeyMacroAction)throw`Invalid ${t} first byte: ${n}`}else if(i===r.MouseButtonMacroAction){if(n<r.MouseButtonMacroAction||n>r.LastMouseButtonMacroAction)throw`Invalid ${t} first byte: ${n}`}else if(n!==i)throw`Invalid ${t} first byte: ${n}`;return n}}},rPjj:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("mrSG"),i=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.c(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}(n("FFOo").a)},reFP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("Ji2o");t.getHardwareConfigFromDeviceResponse=e=>{const t=JSON.parse(e),n=new r.HardwareConfiguration;if(n.fromBinary(r.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=e=>{const t=JSON.parse(e),n=new r.UserConfiguration;if(n.fromBinary(r.UhkBuffer.fromArray(t)),n.userConfigMajorVersion>0)return n;throw Error("Invalid user configuration")},t.mapObjectToUserConfigBinaryBuffer=e=>{const t=new r.UserConfiguration;t.fromJsonObject(e);const n=new r.UhkBuffer;return t.toBinary(n),n.getBufferContent()}},s9zn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("APMd"),i=n("TEuf");class o{constructor(e){e&&(this.name=e.name,this.description=e.description,this.abbreviation=e.abbreviation,this.isDefault=e.isDefault,this.layers=e.layers.map(e=>new r.Layer(e)))}fromJsonObject(e,t){return this.isDefault=e.isDefault,this.abbreviation=e.abbreviation,this.name=e.name,this.description=e.description,this.layers=e.layers.map(e=>(new r.Layer).fromJsonObject(e,t)),this.normalize(),this}fromBinary(e,t){return this.abbreviation=e.readString(),this.isDefault=e.readBoolean(),this.name=e.readString(),this.description=e.readString(),this.layers=e.readArray(e=>(new r.Layer).fromBinary(e,t)),this.normalize(),this}toJsonObject(e){return{isDefault:this.isDefault,abbreviation:this.abbreviation,name:this.name,description:this.description,layers:this.layers.map(t=>t.toJsonObject(e))}}toBinary(e,t){e.writeString(this.abbreviation),e.writeBoolean(this.isDefault),e.writeString(this.name),e.writeString(this.description),e.writeArray(this.layers,(e,n)=>{n.toBinary(e,t)})}toString(){return`<Keymap abbreviation="${this.abbreviation}" name="${this.name}">`}renameKeymap(e,t){let n,r=!1;if(this.layers.forEach((i,o)=>{const l=i.renameKeymap(e,t);l!==i&&(r||(n=this.layers.slice(),r=!0),n[o]=l)}),r){const e=Object.assign(new o,this);return e.layers=n,e}return this}normalize(){if(!(this.layers.length<1))for(let e=0;e<this.layers[0].modules.length&&e<2;e++){const t=this.layers[0].modules[e];for(let n=0;n<t.keyActions.length;n++){const r=t.keyActions[n];if(r instanceof i.SwitchLayerAction){const e=r.layer+1;this.layers.length<e&&console.error(`${this.name} has not enough layer. Need: ${e}`)}for(let t=1;t<this.layers.length;t++){const o=this.layers[t];if(o.modules.length<e){console.error(`${this.name}.layers[${t}] has not enough module. Need: ${e}`);continue}const l=o.modules[e],u=l.keyActions[n];if(r instanceof i.SwitchLayerAction){if(t-1===r.layer){if(u instanceof i.SwitchLayerAction){if(u.layer===r.layer&&u.switchLayerMode===r.switchLayerMode)continue;console.warn(`${this.name}.layers[${t}]modules[${e}].keyActions[${n}]`+` is different switch layer. ${u} will be override with ${r}`)}else console.warn(`${this.name}.layers[${t}]modules[${e}].keyActions[${n}]`+` is not switch layer. ${u} will be override with ${r}`);l.keyActions[n]=i.KeyActionHelper.createKeyAction(r)}}else u instanceof i.SwitchLayerAction&&(console.warn(`${this.name}.layers[${t}]modules[${e}].keyActions[${n}]`+" is switch layer action, but the base key action is not switch layer action, so will delete"),l.keyActions[n]=null)}}}}}t.Keymap=o},sMpS:function(e,t){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"210mm",height:"297mm"},path:[{$:{id:"separator",style:"fill:none;stroke:#c00;stroke-width:3.6496063;stroke-linecap:round",d:"M 16.455118,651.55037 16.455118,737.88305 C 16.455118,737.88305 16.419979,743.14568 11.278346,743.14568 L -10.998425,743.14568 C -10.998425,743.14568 -16.174,743.39316 -16.174,748.40667 L -16.174,804.39801 C -16.174,807.0217 -14.110808,809.66218 -10.998425,809.66218 L -4.719685,809.66218 C -4.719685,809.66218 0.315,809.66109 0.315,814.92517 L 0.315,870.91651 C 0.315,870.91651 0.31884203,876.17868 5.3503937,876.17868 L 28.187008,876.17868 C 28.187008,876.17868 33.311,876.17121 33.311,881.44014 L 33.311,937.43147 C 33.311,937.43147 33.306776,942.69568 28.187008,942.69568 L 4.719685,942.69568 C 4.719685,942.69568 -0.01,942.67983 -0.01,947.95864 L -0.01,1050.5905"}}]}}},t9fZ:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("mrSG"),i=n("FFOo"),o=n("b7mW"),l=n("G5J1");function u(e){return function(t){return 0===e?Object(l.b)():t.lift(new a(e))}}var a=function(){function e(e){if(this.total=e,this.total<0)throw new o.a}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.total))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.c(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(i.a)},u32M:function(e,t,n){"use strict";var r=n("kS0V"),i=n("jMwT");t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;var o=2147483647;function l(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=u.prototype,t}function u(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|d(e,t),r=l(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return p(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n)).__proto__=u.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var i=function(e){if(u.isBuffer(e)){var t=0|f(e.length),n=l(t);return 0===n.length?n:(e.copy(n,0,0,t),n)}return void 0!==e.length?"number"!=typeof e.length||B(e.length)?l(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return s(e),l(e<0?0:0|f(e))}function p(e){for(var t=e.length<0?0:0|f(e.length),n=l(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return r?-1:D(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.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 x(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),B(n=+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=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,l=1,u=e.length,a=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){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(i){var c=-1;for(o=n;o<u;o++)if(s(e,o)===s(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===a)return c*l}else-1!==c&&(o-=o-c),c=-1}else for(n+a>u&&(n=u-a),o=n;o>=0;o--){for(var p=!0,f=0;f<a;f++)if(s(e,o+f)!==s(t,f)){p=!1;break}if(p)return o}return-1}function g(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var l=0;l<r;++l){var u=parseInt(t.substr(2*l,2),16);if(B(u))return l;e[n+l]=u}return l}function v(e,t,n,r){return F(D(t,e.length-n),e,n,r)}function k(e,t,n,r){return F(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return k(e,t,n,r)}function w(e,t,n,r){return F(U(t),e,n,r)}function O(e,t,n,r){return F(function(e,t){for(var n,r,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(t,e.length-n),e,n,r)}function A(e,t,n){return r.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,l,u,a,s=e[i],c=null,p=s>239?4:s>223?3:s>191?2:1;if(i+p<=n)switch(p){case 1:s<128&&(c=s);break;case 2:128==(192&(o=e[i+1]))&&(a=(31&s)<<6|63&o)>127&&(c=a);break;case 3:l=e[i+2],128==(192&(o=e[i+1]))&&128==(192&l)&&(a=(15&s)<<12|(63&o)<<6|63&l)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:l=e[i+2],u=e[i+3],128==(192&(o=e[i+1]))&&128==(192&l)&&128==(192&u)&&(a=(15&s)<<18|(63&o)<<12|(63&l)<<6|63&u)>65535&&a<1114112&&(c=a)}null===c?(c=65533,p=1):c>65535&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.kMaxLength=o,(u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),u.poolSize=8192,u.from=function(e,t,n){return a(e,t,n)},u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,u.alloc=function(e,t,n){return function(e,t,n){return s(e),e<=0?l(e):void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)}(e,t,n)},u.allocUnsafe=function(e){return c(e)},u.allocUnsafeSlow=function(e){return c(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(K(o,Uint8Array)&&(o=u.from(o)),!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toLocaleString=u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):h.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),l=(n>>>=0)-(t>>>=0),a=Math.min(o,l),s=this.slice(r,i),c=e.slice(t,n),p=0;p<a;++p)if(s[p]!==c[p]){o=s[p],l=c[p];break}return o<l?-1:l<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return v(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 O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function S(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var o="",l=t;l<n;++l)o+=(r=e[l])<16?"0"+r.toString(16):r.toString(16);return o}function E(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=u.prototype,r},u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,l=1,u=0;for(this[t]=255&e;++o<n&&(l*=256);)e<0&&0===u&&0!==this[t+o-1]&&(u=1),this[t+o]=(e/l>>0)-u&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,l=1,u=0;for(this[t+o]=255&e;--o>=0&&(l*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/l>>0)-u&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.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),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var l=u.isBuffer(e)?e:u.from(e,r),a=l.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=l[o%a]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function D(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],l=0;l<r;++l){if((n=e.charCodeAt(l))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(l+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function B(e){return e!=e}},uMaO:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("mrSG"),i=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.c(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n("pugT").a)},ucu2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("M3cR"),t),r.__exportStar(n("x3zx"),t),r.__exportStar(n("WM0l"),t),r.__exportStar(n("Ji2o"),t)},uz7o:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Default="default",e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Undoable="undoable"}(t.NotificationType||(t.NotificationType={}))},"wCQ+":function(e){e.exports=JSON.parse('{"isDefault":false,"abbreviation":"QTY","name":"QWERTY","description":"Maecenas sem dui, ullamcorper consequat pellentesque ut, mattis at velit. Duis scelerisque eleifend gravida. Aenean at mauris rhoncus, dictum mi vitae, semper eros. Quisque maximus est elit, at condimentum ligula consectetur vel. Aenean lorem felis, molestie id ex suscipit, sagittis mollis dui. Phasellus in felis in libero bibendum ornare. Duis vestibulum dolor sed diam tempor vulputate. Curabitur scelerisque pretium ipsum. Phasellus non orci vestibulum, vehicula lectus sit amet, lacinia velit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In diam lacus, cursus at pretium vel, ullamcorper at ante.","layers":[{"modules":[{"id":0,"pointerRole":"move","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","toggle":false},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"pointerRole":"move","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","toggle":false},{"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},null,{"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","toggle":false},{"keyActionType":"keystroke","type":"basic","scancode":44},{"keyActionType":"switchLayer","layer":"mod","toggle":false},null]},{"id":2,"pointerRole":"scroll","keyActions":[]}]},{"modules":[{"id":0,"pointerRole":"none","keyActions":[null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":74},{"keyActionType":"keystroke","type":"basic","scancode":82},{"keyActionType":"keystroke","type":"basic","scancode":77},null,null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":75},{"keyActionType":"keystroke","type":"basic","scancode":80},{"keyActionType":"keystroke","type":"basic","scancode":81},{"keyActionType":"keystroke","type":"basic","scancode":79},null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":78},null,null,null,null,{"keyActionType":"keystroke","type":"basic","scancode":118},{"keyActionType":"keystroke","type":"basic","modifierMask":32},null,null,{"keyActionType":"switchLayer","layer":"mod","toggle":false},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"pointerRole":"none","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","toggle":false},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","toggle":false},null,{"keyActionType":"switchLayer","layer":"mod","toggle":false},null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,{"keyActionType":"keystroke","type":"media","scancode":176},{"keyActionType":"keystroke","type":"media","scancode":233},{"keyActionType":"keystroke","type":"media","scancode":183},null,null,null,null,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,{"keyActionType":"switchLayer","layer":"mod","toggle":false},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"pointerRole":"scroll","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","toggle":false},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","toggle":false},null,{"keyActionType":"switchLayer","layer":"mod","toggle":false},null]}]},{"modules":[{"id":0,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,{"keyActionType":"mouse","mouseAction":"moveUp"},null,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,null,{"keyActionType":"switchLayer","layer":"mod","toggle":false},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"keystroke","type":"basic","modifierMask":64},{"keyActionType":"keystroke","type":"basic","modifierMask":128},{"keyActionType":"keystroke","type":"basic","modifierMask":16}]},{"id":1,"pointerRole":"move","keyActions":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{"keyActionType":"switchLayer","layer":"mouse","toggle":false},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},{"keyActionType":"switchLayer","layer":"fn","toggle":false},{"keyActionType":"mouse","mouseAction":"decelerate"},{"keyActionType":"switchLayer","layer":"mod","toggle":false},null]}]}]}')},wEuk: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"}}]}}},x3zx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("2QPq");r.__exportStar(n("uz7o"),t),r.__exportStar(n("q3/1"),t),r.__exportStar(n("hRLZ"),t)},x7X3:function(e){e.exports=JSON.parse('{"isDefault":false,"abbreviation":"DVR","name":"DVR","description":"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aenean dictum sollicitudin massa, ut lacinia ipsum. Ut bibendum ipsum ac pulvinar vehicula. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam feugiat lobortis lacus, id viverra nisl varius eu. Aliquam vitae eros a augue fermentum ultricies. Nam tempus dui sed ante ultricies bibendum. In ligula velit, aliquet a felis vitae, gravida tincidunt ante. Proin euismod velit odio, at pretium lacus porta egestas. Suspendisse aliquam, lacus accumsan dapibus elementum, orci felis egestas leo, non vulputate lorem turpis nec risus. Curabitur id volutpat orci. Sed aliquet finibus iaculis. In venenatis neque ac dolor posuere, vel vestibulum augue posuere.","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]}]}]}')},xTla:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},xlPZ:function(e,t,n){"use strict";var r=n("mrSG"),i=n("K9Ia"),o=n("6blF"),l=(n("FFOo"),n("pugT")),u=n("yGWI"),a=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.c(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.a).add(this.source.subscribe(new c(this.getSubject(),this))),e.closed&&(this._connection=null,e=l.a.EMPTY)),e},t.prototype.refCount=function(){return Object(u.a)()(this)},t}(o.a).prototype,s={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:a._subscribe},_isComplete:{value:a._isComplete,writable:!0},getSubject:{value:a.getSubject},connect:{value:a.connect},refCount:{value:a.refCount}},c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.c(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.b);function p(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new f(r,t));var i=Object.create(n,s);return i.source=n,i.subjectFactory=r,i}}n.d(t,"a",function(){return p});var f=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i},e}()},xpud:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n("omOa"))},y3By:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n("+umK");function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)}function o(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:r.a}},yGQT:function(e,t,n){"use strict";n.d(t,"x",function(){return ie}),n.d(t,"I",function(){return te}),n.d(t,"K",function(){return re}),n.d(t,"J",function(){return ne}),n.d(t,"H",function(){return se}),n.d(t,"F",function(){return ue}),n.d(t,"G",function(){return ae}),n.d(t,"E",function(){return M}),n.d(t,"A",function(){return w}),n.d(t,"y",function(){return m}),n.d(t,"z",function(){return k}),n.d(t,"C",function(){return T}),n.d(t,"B",function(){return O}),n.d(t,"D",function(){return S}),n.d(t,"m",function(){return B}),n.d(t,"w",function(){return V}),n.d(t,"s",function(){return E}),n.d(t,"t",function(){return P}),n.d(t,"u",function(){return I}),n.d(t,"a",function(){return b}),n.d(t,"b",function(){return y}),n.d(t,"g",function(){return N}),n.d(t,"i",function(){return j}),n.d(t,"h",function(){return R}),n.d(t,"p",function(){return L}),n.d(t,"j",function(){return D}),n.d(t,"v",function(){return $}),n.d(t,"k",function(){return F}),n.d(t,"l",function(){return U}),n.d(t,"d",function(){return g}),n.d(t,"f",function(){return v}),n.d(t,"c",function(){return _}),n.d(t,"e",function(){return C}),n.d(t,"q",function(){return A}),n.d(t,"r",function(){return x}),n.d(t,"o",function(){return oe}),n.d(t,"n",function(){return le});var r=n("mrSG"),i=n("CcnG"),o=n("26FU"),l=n("6blF"),u=n("K9Ia"),a=n("zo3G"),s=n("mZXl"),c=n("/PH2"),p=n("dC0D"),f=n("FYXD"),d=n("67Y/"),h=n("ad02"),y="@ngrx/store/init",b=function(e){function t(){return e.call(this,{type:y})||this}return Object(r.c)(t,e),t.prototype.next=function(t){if("function"==typeof t)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===t)throw new TypeError("Actions must be objects");if(void 0===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}(o.a),m=new i.q("@ngrx/store Internal Initial State"),g=new i.q("@ngrx/store Initial State"),v=new i.q("@ngrx/store Reducer Factory"),k=new i.q("@ngrx/store Internal Reducer Factory Provider"),_=new i.q("@ngrx/store Initial Reducers"),w=new i.q("@ngrx/store Internal Initial Reducers"),O=new i.q("@ngrx/store Internal Store Reducers"),A=new i.q("@ngrx/store User Provided Meta Reducers"),C=new i.q("@ngrx/store Meta Reducers"),T=new i.q("@ngrx/store Internal Resolved Meta Reducers"),x=new i.q("@ngrx/store User Runtime Checks Config"),S=new i.q("@ngrx/store Internal User Runtime Checks Config"),M=new i.q("@ngrx/store Internal Runtime Checks");function E(e,t){void 0===t&&(t={});for(var n=Object.keys(e),r={},i=0;i<n.length;i++){var o=n[i];"function"==typeof e[o]&&(r[o]=e[o])}var l=Object.keys(r);return function(e,n){e=void 0===e?t:e;for(var i=!1,o={},u=0;u<l.length;u++){var a=l[u],s=e[a],c=(0,r[a])(s,n);o[a]=c,i=i||c!==s}return i?o:e}}function P(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){if(0===e.length)return t;var n=e[e.length-1];return e.slice(0,-1).reduceRight(function(e,t){return t(e)},n(t))}}function I(e,t){return Array.isArray(t)&&t.length>0&&(e=P.apply(null,Object(r.g)(t,[e]))),function(t,n){var r=e(t);return function(e,t){return r(e=void 0===e?n:e,t)}}}var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(l.a),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(b),L="@ngrx/store/update-reducers",N=function(e){function t(t,n,r,i){var o=e.call(this,i(r,n))||this;return o.dispatcher=t,o.initialState=n,o.reducers=r,o.reducerFactory=i,o}return Object(r.c)(t,e),t.prototype.addFeature=function(e){this.addFeatures([e])},t.prototype.addFeatures=function(e){var t=e.reduce(function(e,t){var n=t.reducers,i=t.reducerFactory,o=t.metaReducers,l=t.initialState,u=t.key,a="function"==typeof n?function(e){var t=Array.isArray(e)&&e.length>0?P.apply(void 0,Object(r.g)(e)):function(e){return e};return function(e,n){return e=t(e),function(t,r){return e(t=void 0===t?n:t,r)}}}(o)(n,l):I(i,o)(n,l);return e[u]=a,e},{});this.addReducers(t)},t.prototype.removeFeature=function(e){this.removeFeatures([e])},t.prototype.removeFeatures=function(e){this.removeReducers(e.map(function(e){return e.key}))},t.prototype.addReducer=function(e,t){var n;this.addReducers(((n={})[e]=t,n))},t.prototype.addReducers=function(e){this.reducers=Object(r.a)({},this.reducers,e),this.updateReducers(Object.keys(e))},t.prototype.removeReducer=function(e){this.removeReducers([e])},t.prototype.removeReducers=function(e){var t=this;e.forEach(function(e){var n,r;t.reducers=(n=t.reducers,r=e,Object.keys(n).filter(function(e){return e!==r}).reduce(function(e,t){var r;return Object.assign(e,((r={})[t]=n[t],r))},{}))}),this.updateReducers(e)},t.prototype.updateReducers=function(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:L,features:e})},t.prototype.ngOnDestroy=function(){this.complete()},t}(o.a),D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.ngOnDestroy=function(){this.complete()},t}(u.a),U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t}(l.a),F=function(e){function t(t,n,r,i){var o=e.call(this,i)||this,l={state:i},u=t.pipe(Object(s.b)(a.a)).pipe(Object(c.a)(n)).pipe(Object(p.a)(K,l));return o.stateSubscription=u.subscribe(function(e){var t=e.action;o.next(e.state),r.next(t)}),o}return Object(r.c)(t,e),t.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},t.INIT=y,t}(o.a);function K(e,t){void 0===e&&(e={state:void 0});var n=Object(r.f)(t,2),i=n[0];return{state:(0,n[1])(e.state,i),action:i}}var B=function(e){function t(t,n,r){var i=e.call(this)||this;return i.actionsObserver=n,i.reducerManager=r,i.source=t,i}var n;return Object(r.c)(t,e),n=t,t.prototype.select=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return V.call.apply(V,Object(r.g)([null,e],t))(this)},t.prototype.lift=function(e){var t=new n(this,this.actionsObserver,this.reducerManager);return t.operator=e,t},t.prototype.dispatch=function(e){this.actionsObserver.next(e)},t.prototype.next=function(e){this.actionsObserver.next(e)},t.prototype.error=function(e){this.actionsObserver.error(e)},t.prototype.complete=function(){this.actionsObserver.complete()},t.prototype.addReducer=function(e,t){this.reducerManager.addReducer(e,t)},t.prototype.removeReducer=function(e){this.reducerManager.removeReducer(e)},t}(l.a);function V(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(i){var o;if("string"==typeof e){var l=Object(r.g)([t],n).filter(Boolean);o=i.pipe(f.a.apply(void 0,Object(r.g)([e],l)))}else{if("function"!=typeof e)throw new TypeError("Unexpected type '"+typeof e+"' in select operator, expected 'string' or 'function'");o=i.pipe(Object(d.a)(function(n){return e(n,t)}))}return o.pipe(Object(h.a)())}}function G(e,t){return e===t}function H(e,t,n){void 0===t&&(t=G),void 0===n&&(n=G);var r,i=null,o=null;return{memoized:function(){if(void 0!==r)return r;if(!i)return o=e.apply(null,arguments),i=arguments,o;if(!function(e,t,n){for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!0;return!1}(arguments,i,t))return o;i=arguments;var l=e.apply(null,arguments);return n(o,l)?o:(o=l,l)},reset:function(){i=null,o=null},setResult:function(e){void 0===e&&(e=void 0),r=e}}}function $(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(n=H,void 0===i&&(i={stateFn:z}),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=e;if(Array.isArray(o[0])){var l=Object(r.f)(o),u=l[0],a=l.slice(1);o=Object(r.g)(u,a)}var s=o.slice(0,o.length-1),c=o[o.length-1],p=s.filter(function(e){return e.release&&"function"==typeof e.release}),f=n(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c.apply(null,e)}),d=H(function(e,t){return i.stateFn.apply(null,[e,s,t,f])});function h(){d.reset(),f.reset(),p.forEach(function(e){return e.release()})}return Object.assign(d.memoized,{release:h,projector:f.memoized,setResult:d.setResult})}).apply(void 0,Object(r.g)(e));var n,i}function z(e,t,n,i){if(void 0===n){var o=t.map(function(t){return t(e)});return i.memoized.apply(null,o)}var l=t.map(function(t){return t(e,n)});return i.memoized.apply(null,Object(r.g)(l,[n]))}function Q(e){return void 0===e}function W(e){return null===e}function q(e){return Array.isArray(e)}function J(e){return"object"==typeof e&&null!==e}function Y(e){return"function"==typeof e}function Z(e){Object.freeze(e);var t=Y(e);return Object.getOwnPropertyNames(e).forEach(function(n){if(function(e,t){return Object.prototype.hasOwnProperty.call(e,n)}(e)&&(!t||"caller"!==n&&"callee"!==n&&"arguments"!==n)){var r=e[n];!J(r)&&!Y(r)||Object.isFrozen(r)||Z(r)}}),e}function X(e,t){return void 0===t&&(t=[]),(Q(e)||W(e))&&0===t.length?{path:["root"],value:e}:Object.keys(e).reduce(function(n,i){if(n)return n;var o=e[i];return!(Q(o)||W(o)||"number"==typeof o||"boolean"==typeof o||"string"==typeof o||q(o))&&(function(e){if(!function(e){return J(e)&&!q(e)}(e))return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(o)?X(o,Object(r.g)(t,[i])):{path:Object(r.g)(t,[i]),value:o})},!1)}function ee(e,t){if(!1!==e){var n=e.path.join("."),r=new Error("Detected unserializable "+t+' at "'+n+'"');throw r.value=e.value,r.unserializablePath=n,r}}function te(e){return Object(i.Y)()?(void 0===e&&console.warn("@ngrx/store: runtime checks are currently opt-in but will be the default in the next major version with the possibility to opt-out, see https://ngrx.io/guide/migration/v8 for more information."),Object(r.a)({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1},e)):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1}}function ne(e){var t=e.strictActionSerializability,n=e.strictStateSerializability;return function(e){return t||n?function(e,t){return function(n,r){t.action&&ee(X(r),"action");var i=e(n,r);return t.state&&ee(X(i),"state"),i}}(e,{action:t,state:n}):e}}function re(e){var t=e.strictActionImmutability,n=e.strictStateImmutability;return function(e){return t||n?function(e,t){return function(n,r){var i=t.action?Z(r):r,o=e(n,i);return t.state?Z(o):o}}(e,{action:t,state:n}):e}}function ie(e){return e}var oe=function(){return function(e,t,n,r){}}(),le=function(){function e(e,t,n,i){this.features=e,this.featureReducers=t,this.reducerManager=n;var o=e.map(function(e,n){var i=t.shift()[n];return Object(r.a)({},e,{reducers:i,initialState:ae(e.initialState)})});n.addFeatures(o)}return e.prototype.ngOnDestroy=function(){this.reducerManager.removeFeatures(this.features)},e}();function ue(e,t){return t instanceof i.q?e.get(t):t}function ae(e){return"function"==typeof e?e():e}function se(e,t){return e.concat(t)}},yGWI:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(){return function(e){return e.lift(new l(e))}}var l=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new u(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.c(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,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(i.a)},ySaW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("SACm"),i=n("RGrK"),o=n("anzk"),l=n("NS47"),u=n("KQti"),a=n("9ixT"),s=n("hT0y"),c=n("88NP"),p=n("DFZA");class f{static createKeyAction(e,t){return e instanceof i.KeyAction?f.fromKeyAction(e):e instanceof r.UhkBuffer?f.fromUhkBuffer(e,t):f.fromJSONObject(e,t)}static fromUhkBuffer(e,t){const n=e.readUInt8();if(e.backtrack(),n>=i.KeyActionId.KeystrokeAction&&n<i.KeyActionId.LastKeystrokeAction){const t=(new o.KeystrokeAction).fromBinary(e);return d(t)?t:new c.NoneAction}switch(n){case i.KeyActionId.NoneAction:return void e.readUInt8();case i.KeyActionId.SwitchLayerAction:return(new l.SwitchLayerAction).fromBinary(e);case i.KeyActionId.SwitchKeymapAction:return(new u.UnresolvedSwitchKeymapAction).fromBinary(e);case i.KeyActionId.MouseAction:return(new a.MouseAction).fromBinary(e);case i.KeyActionId.PlayMacroAction:return(new s.PlayMacroAction).fromBinary(e,t);default:throw`Invalid KeyAction first byte: ${n}`}}static fromKeyAction(e){let t;return e instanceof o.KeystrokeAction?t=new o.KeystrokeAction(e):e instanceof l.SwitchLayerAction?t=new l.SwitchLayerAction(e):e instanceof u.SwitchKeymapAction?t=new u.SwitchKeymapAction(e):e instanceof a.MouseAction?t=new a.MouseAction(e):e instanceof s.PlayMacroAction&&(t=new s.PlayMacroAction(e)),t}static fromJSONObject(e,t){if(!e)return null;switch(e.keyActionType){case i.keyActionType.KeystrokeAction:{const t=(new o.KeystrokeAction).fromJsonObject(e);return d(t)?t:new c.NoneAction}case i.keyActionType.SwitchLayerAction:return(new l.SwitchLayerAction).fromJsonObject(e);case i.keyActionType.SwitchKeymapAction:return(new u.SwitchKeymapAction).fromJsonObject(e);case i.keyActionType.MouseAction:return(new a.MouseAction).fromJsonObject(e);case i.keyActionType.PlayMacroAction:return(new s.PlayMacroAction).fromJsonObject(e,t);case i.keyActionType.NoneAction:return new c.NoneAction;default:throw`Invalid KeyAction.keyActionType: "${e.keyActionType}"`}}}function d(e){return e.hasSecondaryRoleAction()||e.hasActiveModifier()||e.hasScancode()&&p.isScancodeExists(e.scancode)}t.Helper=f},zo3G:function(e,t,n){"use strict";var r=n("mrSG"),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.c(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,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n("h9Dq").a),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.c(t,e),t}(n("CS9Q").a);n.d(t,"a",function(){return l});var l=new o(i)},zotm:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("rPjj"),i=n("Fxb1"),o=n("6blF");function l(e,t,n,l,u){if(void 0===u&&(u=new r.a(e,n,l)),!u.closed)return t instanceof o.a?t.subscribe(u):Object(i.a)(t)(u)}}},[[0,0]]]);