From 653ab751fdd0d9855c91415e54e2c42611a92b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Tue, 19 Jun 2018 17:02:52 +0200 Subject: [PATCH] Updates --- 3rdpartylicenses.txt | 766 +++++++------- assets/compiled_sprite.svg | 975 +++++++++++++++++- index.html | 4 +- main.8e5d209519c925d8b5bf.bundle.js | 1 + main.dd77988af013b1968fad.bundle.js | 1 - ... => styles.cf6b9f1ca7c2ef7ca399.bundle.css | 2 +- 6 files changed, 1361 insertions(+), 388 deletions(-) create mode 100644 main.8e5d209519c925d8b5bf.bundle.js delete mode 100644 main.dd77988af013b1968fad.bundle.js rename styles.6f05252de6722e46563b.bundle.css => styles.cf6b9f1ca7c2ef7ca399.bundle.css (96%) diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index 3b4740b1..fc9546de 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -1,100 +1,3 @@ -cache-loader@1.2.2 -MIT -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -@angular-devkit/build-optimizer@0.3.2 -MIT -The MIT License - -Copyright (c) 2017 Google, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -ng2-dragula@1.5.0 -MIT -The MIT License (MIT) - -Copyright (c) 2015-2016 Dmitriy Shekhovtsov -Copyright (c) 2015-2016 Valor Software -Copyright (c) 2015-2016 Nathan Walker - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -@ngrx/router-store@4.0.4 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - @ngrx/store@4.0.3 MIT The MIT License (MIT) @@ -119,32 +22,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -node-libs-browser@2.1.0 +@angular/core@5.2.9 +MIT MIT -(The MIT License) -Copyright (c) 2012 Tobias Koppers - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -@angular/forms@5.2.9 +@angular/router@5.2.9 MIT MIT @@ -172,6 +54,30 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@types/file-saver@0.0.1 +MIT +MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE + reselect@3.0.1 MIT The MIT License (MIT) @@ -196,6 +102,30 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@ngrx/router-store@4.0.4 +MIT +The MIT License (MIT) + +Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + ngrx-store-freeze@0.1.9 MIT The MIT License (MIT) @@ -220,268 +150,10 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@angular/cli@1.7.4 -MIT -The MIT License - -Copyright (c) 2017 Google, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -base64-js@1.2.3 -MIT -The MIT License (MIT) - -Copyright (c) 2014 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -@angular/core@5.2.9 -MIT -MIT - -@angular/router@5.2.9 -MIT -MIT - -@types/file-saver@0.0.1 -MIT -MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE - -atoa@1.0.0 -MIT -The MIT License (MIT) - -Copyright © 2015 Nicolas Bevacqua - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - @angular/platform-browser@5.2.9 MIT MIT -process@0.11.10 -MIT -(The MIT License) - -Copyright (c) 2013 Roman Shtylman - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -ng2-select2@1.0.0-beta.10 -MIT -MIT - -ng2-nouislider@1.7.7 -MIT -MIT - -isarray@1.0.0 -MIT -MIT - -ieee754@1.1.11 -BSD-3-Clause -Copyright (c) 2008, Fair Oaks Labs, Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither the name of Fair Oaks Labs, Inc. nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -file-saver@1.3.3 -MIT -The MIT License - -Copyright © 2016 [Eli Grey][1]. - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - [1]: http://eligrey.com - -dragula@3.7.2 -MIT -The MIT License (MIT) - -Copyright © 2015-2016 Nicolas Bevacqua - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -custom-event@1.0.0 -MIT -MIT - -crossvent@1.5.4 -MIT -The MIT License (MIT) - -Copyright © 2014 Nicolas Bevacqua - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -contra@1.9.4 -MIT -The MIT License (MIT) - -Copyright © 2014 Nicolas Bevacqua - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - @ngrx/store-devtools@4.0.0 MIT The MIT License (MIT) @@ -506,10 +178,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@angular/common@5.2.9 -MIT -MIT - @angular/animations@5.2.9 MIT MIT @@ -538,6 +206,53 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +cache-loader@1.2.2 +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +@angular-devkit/build-optimizer@0.3.2 +MIT +The MIT License + +Copyright (c) 2017 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + ngx-window-token@0.0.4 MIT The MIT License (MIT) @@ -610,6 +325,44 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +ng2-nouislider@1.7.7 +MIT +MIT + +@angular/forms@5.2.9 +MIT +MIT + +ng2-select2@1.0.0-beta.10 +MIT +MIT + +ng2-dragula@1.5.0 +MIT +The MIT License (MIT) + +Copyright (c) 2015-2016 Dmitriy Shekhovtsov +Copyright (c) 2015-2016 Valor Software +Copyright (c) 2015-2016 Nathan Walker + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + angular-notifier@2.0.0 MIT MIT License @@ -634,10 +387,257 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@angular/common@5.2.9 +MIT +MIT + @angular/platform-browser-dynamic@5.2.9 MIT MIT +@angular/cli@1.7.4 +MIT +The MIT License + +Copyright (c) 2017 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +atoa@1.0.0 +MIT +The MIT License (MIT) + +Copyright © 2015 Nicolas Bevacqua + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +base64-js@1.2.3 +MIT +The MIT License (MIT) + +Copyright (c) 2014 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +contra@1.9.4 +MIT +The MIT License (MIT) + +Copyright © 2014 Nicolas Bevacqua + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +crossvent@1.5.4 +MIT +The MIT License (MIT) + +Copyright © 2014 Nicolas Bevacqua + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +custom-event@1.0.0 +MIT +MIT + +dragula@3.7.2 +MIT +The MIT License (MIT) + +Copyright © 2015-2016 Nicolas Bevacqua + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +file-saver@1.3.3 +MIT +The MIT License + +Copyright © 2016 [Eli Grey][1]. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + [1]: http://eligrey.com + +ieee754@1.1.11 +BSD-3-Clause +Copyright (c) 2008, Fair Oaks Labs, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name of Fair Oaks Labs, Inc. nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +isarray@1.0.0 +MIT +MIT + +node-libs-browser@2.1.0 +MIT +(The MIT License) + +Copyright (c) 2012 Tobias Koppers + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +process@0.11.10 +MIT +(The MIT License) + +Copyright (c) 2013 Roman Shtylman + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + ticky@1.0.1 MIT The MIT License (MIT) diff --git a/assets/compiled_sprite.svg b/assets/compiled_sprite.svg index ea1b83d7..1176393d 100644 --- a/assets/compiled_sprite.svg +++ b/assets/compiled_sprite.svg @@ -1 +1,974 @@ -~ `! 1@ 2# 3$ 4% 5^ 6 Tab Q W E R T Mouse A S D F G Shift Z X C V B Ctrl Super Alt Fn Mod Space & 7* 8( 9) 0_ -+ = Y U I O P { [} ]| \ H J K L : ;" ' Enter N M < ,> .? / Shift Space Fn Alt Super Ctrl Mod ~ `! 1@ 2# 3$ 4% 5^ 6TabQWERTMouseASDFGShiftZXCVBCtrlSuperAltFnModSpace& 7* 8( 9) 0_ -+ =YUIOP{ [} ]| \HJKL: ;" 'EnterNM< ,> .? /ShiftSpaceFnAltSuperCtrlMod \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ~ + ` + + + ! + 1 + + + @ + 2 + + + # + 3 + + + $ + 4 + + + % + 5 + + + ^ + 6 + + + Tab + + + Q + + + W + + + E + + + R + + + T + + + Mouse + + + A + + + S + + + D + + + F + + + G + + + Shift + + + Z + + + X + + + C + + + V + + + B + + + Ctrl + + + Super + + + Alt + + + Fn + + + Mod + + + Space + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + & + 7 + + + * + 8 + + + ( + 9 + + + ) + 0 + + + _ + - + + + + + = + + + + + + Y + + + U + + + I + + + O + + + P + + + { + [ + + + } + ] + + + | + \ + + + H + + + J + + + K + + + L + + + : + ; + + + " + ' + + + Enter + + + N + + + M + + + < + , + + + > + . + + + ? + / + + + Shift + + + Space + + + Fn + + + Alt + + + Super + + + Ctrl + + + Mod + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ~ + ` + + + ! + 1 + + + @ + 2 + + + # + 3 + + + $ + 4 + + + % + 5 + + + ^ + 6 + + + Tab + + + Q + + + W + + + E + + + R + + + T + + + Mouse + + + A + + + S + + + D + + + F + + + G + + + Shift + + + Z + + + X + + + C + + + V + + + B + + + Ctrl + + + Super + + + Alt + + + Fn + + + Mod + + + Space + + + + + & + 7 + + + * + 8 + + + ( + 9 + + + ) + 0 + + + _ + - + + + + + = + + + + + + Y + + + U + + + I + + + O + + + P + + + { + [ + + + } + ] + + + | + \ + + + H + + + J + + + K + + + L + + + : + ; + + + " + ' + + + Enter + + + N + + + M + + + < + , + + + > + . + + + ? + / + + + Shift + + + Space + + + Fn + + + Alt + + + Super + + + Ctrl + + + Mod + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index.html b/index.html index ead42140..d262fffa 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ -Ultimate Hacking Keyboard Configurator \ No newline at end of file + })(window,document,'script','dataLayer','GTM-PQLCXB'); \ No newline at end of file diff --git a/main.8e5d209519c925d8b5bf.bundle.js b/main.8e5d209519c925d8b5bf.bundle.js new file mode 100644 index 00000000..1f47f461 --- /dev/null +++ b/main.8e5d209519c925d8b5bf.bundle.js @@ -0,0 +1 @@ +webpackJsonp([0],{"+3eL":function(e,t,n){"use strict";var o,i=n("WhVc");function r(){try{return o.apply(this,arguments)}catch(e){return i.errorObject.e=e,i.errorObject}}t.tryCatch=function(e){return o=e,r}},"+4ur":function(e,t,n){"use strict";var o=n("LxNc");t._catch=function(e){return o.catchError(e)(this)}},"+EXD":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("CURp"),l=n("wAkD");t.DeferObservable=function(e){function t(t){e.call(this),this.observableFactory=t}return o(t,e),t.create=function(e){return new t(e)},t.prototype._subscribe=function(e){return new s(e,this.observableFactory)},t}(i.Observable);var s=function(e){function t(t,n){e.call(this,t),this.factory=n,this.tryDefer()}return o(t,e),t.prototype.tryDefer=function(){try{this._callFactory()}catch(e){this._error(e)}},t.prototype._callFactory=function(){var e=this.factory();e&&this.add(r.subscribeToResult(this,e))},t}(l.OuterSubscriber)},"+GbP":function(e,t,n){"use strict";var o=n("TToO").__decorate,i=n("WT6e"),r=n("xiuF"),l=n("LKU8"),s=function(){};s=o([i.NgModule({exports:[r.DragulaDirective],declarations:[r.DragulaDirective],providers:[l.DragulaService]})],s),t.DragulaModule=s},"+Zxz":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.defaultIfEmpty=function(e){return void 0===e&&(e=null),function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.defaultValue))},e}(),l=function(e){function t(t,n){e.call(this,t),this.defaultValue=n,this.isEmpty=!0}return o(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(i.Subscriber)},"+ayw":function(e,t,n){"use strict";var o=n("sTFn");t.share=function(){return o.share()(this)}},"+pb+":function(e,t,n){"use strict";var o=n("rCTf"),i=n("xAJs");o.Observable.prototype.map=i.map},"/8Ia":function(e,t,n){"use strict";var o=n("xgwM").__decorate,i=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd");t.ModuleConfiguration=function(){function e(){}return e.prototype.fromJsonObject=function(e){return this.id=e.id,this.pointerMode=e.pointerMode,this.deceleratedPointerSpeedMultiplier=e.deceleratedPointerSpeedMultiplier,this.basePointerSpeedMultiplier=e.basePointerSpeedMultiplier,this.acceleratedPointerSpeedMultiplier=e.acceleratedPointerSpeedMultiplier,this.angularShift=e.angularShift,this.modLayerPointerFunction=e.modLayerPointerFunction,this.fnLayerPointerFunction=e.fnLayerPointerFunction,this.mouseLayerPointerFunction=e.mouseLayerPointerFunction,this},e.prototype.fromBinary=function(e){return this.id=e.readUInt8(),this.pointerMode=e.readInt8(),this.deceleratedPointerSpeedMultiplier=e.readUInt8(),this.basePointerSpeedMultiplier=e.readUInt8(),this.acceleratedPointerSpeedMultiplier=e.readUInt8(),this.angularShift=e.readUInt16(),this.modLayerPointerFunction=e.readUInt8(),this.fnLayerPointerFunction=e.readUInt8(),this.mouseLayerPointerFunction=e.readUInt8(),this},e.prototype.toJsonObject=function(){return{id:this.id,pointerMode:this.pointerMode,deceleratedPointerSpeedMultiplier:this.deceleratedPointerSpeedMultiplier,basePointerSpeedMultiplier:this.basePointerSpeedMultiplier,acceleratedPointerSpeedMultiplier:this.acceleratedPointerSpeedMultiplier,angularShift:this.angularShift,modeLayerPointerFunction:this.modLayerPointerFunction,fnLayerPointerFunction:this.fnLayerPointerFunction,mouseLayerPointerFunction:this.mouseLayerPointerFunction}},e.prototype.toBinary=function(e){e.writeUInt8(this.id),e.writeUInt8(this.pointerMode),e.writeUInt8(this.deceleratedPointerSpeedMultiplier),e.writeUInt8(this.basePointerSpeedMultiplier),e.writeUInt8(this.acceleratedPointerSpeedMultiplier),e.writeUInt16(this.angularShift),e.writeUInt8(this.modLayerPointerFunction),e.writeUInt8(this.fnLayerPointerFunction),e.writeUInt8(this.mouseLayerPointerFunction)},e.prototype.toString=function(){return''},o([r.assertUInt8,i("design:type",Number)],e.prototype,"id",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"pointerMode",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"deceleratedPointerSpeedMultiplier",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"basePointerSpeedMultiplier",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"acceleratedPointerSpeedMultiplier",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"angularShift",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"modLayerPointerFunction",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"fnLayerPointerFunction",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseLayerPointerFunction",void 0),e}()},"/KiA":function(e,t,n){"use strict";t.h=function(e,t){switch(void 0===e&&(e=d),t.type){case r.a.APP_STARTED:return c({},e,{started:!0});case r.a.APPLY_COMMAND_LINE_ARGS:return c({},e,{commandLineArgs:t.payload});case r.a.APP_SHOW_NOTIFICATION:return t.payload.type!==i.NotificationType.Undoable?e:c({},e,{undoableNotification:t.payload,navigationCountAfterNotification:0});case o.b:var n=c({},e);return n.navigationCountAfterNotification++,n.navigationCountAfterNotification>1&&(n.undoableNotification=null),n;case r.a.UNDO_LAST_SUCCESS:case r.a.DISMISS_UNDO_NOTIFICATION:return c({},e,{undoableNotification:null});case l.a.LOAD_USER_CONFIG_SUCCESS:case l.a.SAVE_USER_CONFIG_SUCCESS:return c({},e,{prevUserConfig:t.payload,configLoading:!1});case l.a.LOAD_CONFIG_FROM_DEVICE:case l.a.LOAD_USER_CONFIG:return c({},e,{configLoading:!0});case r.a.LOAD_HARDWARE_CONFIGURATION_SUCCESS:return c({},e,{hardwareConfig:t.payload});case s.a.CONNECTION_STATE_CHANGED:return!0===t.payload?e:c({},e,{hardwareConfig:null});case r.a.PRIVILEGE_WHAT_WILL_THIS_DO:return c({},e,{privilegeWhatWillThisDoClicked:!0});case r.a.SETUP_PERMISSION_ERROR:return c({},e,{permissionError:t.payload});case s.a.SET_PRIVILEGE_ON_LINUX:return c({},e,{permissionError:null});default:return e}},n.d(t,"j",function(){return p}),n.d(t,"a",function(){return f}),n.d(t,"g",function(){return h}),n.d(t,"e",function(){return y}),n.d(t,"i",function(){return m}),n.d(t,"d",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"f",function(){return k});var o=n("r/Om"),i=n("gI3A"),r=(n.n(i),n("Ji5S")),l=n("at4H"),s=n("fYQU"),a=n("xW7+"),u=n("Lt3n"),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof o.Observable?e[0]:l.mergeAll(n)(new i.ArrayObservable(e,s))}},"1Rl6":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("4uS6")),o(n("r/AL")),o(n("gohO")),o(n("3EbR")),o(n("3uOy")),o(n("z+Yt")),o(n("ZTdU")),o(n("R30b")),o(n("ov8r")),o(n("/8Ia")),o(n("W1wB")),t.SCANCODES=n("1xu2"),t.SECONDARY_ROLES=n("KqLa")},"1kxm":function(e,t,n){"use strict";t.FastMap=function(){function e(){this.values={}}return e.prototype.delete=function(e){return this.values[e]=null,!0},e.prototype.set=function(e,t){return this.values[e]=t,this},e.prototype.get=function(e){return this.values[e]},e.prototype.forEach=function(e,t){var n=this.values;for(var o in n)n.hasOwnProperty(o)&&null!==n[o]&&e.call(t,n[o],o)},e.prototype.clear=function(){this.values={}},e}()},"1r8+":function(e,t,n){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length}},"1xu2":function(e,t){e.exports=[{text:"Letter",children:[{id:"4",text:"A"},{id:"5",text:"B"},{id:"6",text:"C"},{id:"7",text:"D"},{id:"8",text:"E"},{id:"9",text:"F"},{id:"10",text:"G"},{id:"11",text:"H"},{id:"12",text:"I"},{id:"13",text:"J"},{id:"14",text:"K"},{id:"15",text:"L"},{id:"16",text:"M"},{id:"17",text:"N"},{id:"18",text:"O"},{id:"19",text:"P"},{id:"20",text:"Q"},{id:"21",text:"R"},{id:"22",text:"S"},{id:"23",text:"T"},{id:"24",text:"U"},{id:"25",text:"V"},{id:"26",text:"W"},{id:"27",text:"X"},{id:"28",text:"Y"},{id:"29",text:"Z"},{id:"100",text:"| ISO"}]},{text:"Number",children:[{id:"39",text:"0 )"},{id:"30",text:"1 !"},{id:"31",text:"2 @"},{id:"32",text:"3 #"},{id:"33",text:"4 $"},{id:"34",text:"5 %"},{id:"35",text:"6 ^"},{id:"36",text:"7 &"},{id:"37",text:"8 *"},{id:"38",text:"9 ("}]},{text:"Punctuation",children:[{id:"45",text:"- _"},{id:"46",text:"= +"},{id:"47",text:"[ {"},{id:"48",text:"] }"},{id:"49",text:"\\ |"},{id:"51",text:"; :"},{id:"52",text:"' \""},{id:"53",text:"` ~"},{id:"54",text:", <"},{id:"55",text:". >"},{id:"56",text:"/ ?"}]},{text:"Whitespace",children:[{id:"40",additional:{explanation:"Return"},text:"Enter"},{id:"44",text:"Space"},{id:"43",text:"Tab"}]},{text:"Miscellaneous",children:[{id:"41",text:"Escape"},{id:"42",text:"Backspace"},{id:"73",text:"Insert"},{id:"76",text:"Delete"},{id:"101",text:"Menu"},{id:"57",text:"Caps Lock"},{id:"71",text:"Scroll Lock"},{id:"70",text:"Print Screen"},{id:"72",text:"Pause"}]},{text:"Function",children:[{id:"58",text:"F1"},{id:"59",text:"F2"},{id:"60",text:"F3"},{id:"61",text:"F4"},{id:"62",text:"F5"},{id:"63",text:"F6"},{id:"64",text:"F7"},{id:"65",text:"F8"},{id:"66",text:"F9"},{id:"67",text:"F10"},{id:"68",text:"F11"},{id:"69",text:"F12"},{id:"104",text:"F13"},{id:"105",text:"F14"},{id:"106",text:"F15"},{id:"107",text:"F16"},{id:"108",text:"F17"},{id:"109",text:"F18"},{id:"110",text:"F19"},{id:"111",text:"F20"},{id:"112",text:"F21"},{id:"113",text:"F22"},{id:"114",text:"F23"},{id:"115",text:"F24"}]},{text:"Navigation",children:[{id:"75",additional:{explanation:"PgUp"},text:"Page Up"},{id:"78",additional:{explanation:"PgDn"},text:"Page Down"},{id:"74",text:"Home"},{id:"77",text:"End"},{id:"80",text:"Left Arrow"},{id:"79",text:"Right Arrow"},{id:"82",text:"Up Arrow"},{id:"81",text:"Down Arrow"}]},{text:"Media",children:[{id:"127",text:"Mute",additional:{type:"media",scancode:226}},{id:"128",text:"Volume Up",additional:{type:"media",scancode:233}},{id:"129",text:"Volume Down",additional:{type:"media",scancode:234}},{id:"130",text:"Next Track",additional:{type:"media",scancode:181}},{id:"131",text:"Previous Track",additional:{type:"media",scancode:182}},{id:"132",text:"Stop/Eject",additional:{type:"media",scancode:204}},{id:"133",text:"Play/Pause",additional:{type:"media",scancode:205}},{id:"134",text:"Play",additional:{type:"media",scancode:176}},{id:"135",text:"Pause",additional:{type:"media",scancode:177}},{id:"136",text:"Stop",additional:{type:"media",scancode:183}},{id:"137",text:"Eject",additional:{type:"media",scancode:184}},{id:"138",text:"WWW",additional:{type:"media",scancode:138}}]},{text:"Launch application",children:[{id:"142",text:"Launch Web Browser",additional:{type:"media",scancode:406}},{id:"143",text:"Launch Email Client",additional:{type:"media",scancode:394}},{id:"144",text:"Launch Calculator",additional:{type:"media",scancode:402}}]},{text:"System",children:[{id:"139",text:"Power Down",additional:{type:"system",scancode:129}},{id:"140",text:"Sleep",additional:{type:"system",scancode:130}},{id:"141",text:"Wake Up",additional:{type:"system",scancode:131}}]},{text:"Numpad",children:[{id:"83",text:"NumLock"},{id:"84",additional:{explanation:"slash"},text:"/"},{id:"85",additional:{explanation:"asterisk"},text:"*"},{id:"86",additional:{explanation:"minus"},text:"-"},{id:"87",additional:{explanation:"plus"},text:"+"},{id:"88",text:"Enter"},{id:"89",additional:{explanation:"one"},text:"1"},{id:"90",additional:{explanation:"two"},text:"2"},{id:"91",additional:{explanation:"three"},text:"3"},{id:"92",additional:{explanation:"four"},text:"4"},{id:"93",additional:{explanation:"five"},text:"5"},{id:"94",additional:{explanation:"six"},text:"6"},{id:"95",additional:{explanation:"seven"},text:"7"},{id:"96",additional:{explanation:"eight"},text:"8"},{id:"97",additional:{explanation:"nine"},text:"9"},{id:"98",additional:{explanation:"zero"},text:"0"},{id:"99",additional:{explanation:"period"},text:"."}]}]},"215F":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.takeWhile=function(e){return function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.predicate))},e}(),l=function(e){function t(t,n){e.call(this,t),this.predicate=n,this.index=0}return o(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):n.complete()},t}(i.Subscriber)},"2AEF":function(e,t,n){"use strict";var o=n("13YQ");t.exhaustMap=function(e,t){return o.exhaustMap(e,t)(this)}},"2ER/":function(e,t,n){"use strict";t.MapPolyfill=function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?void 0:this._values[t]},e.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},e.prototype.delete=function(e){var t=this._keys.indexOf(e);return-1!==t&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},e.prototype.forEach=function(e,t){for(var n=0;n'},e.prototype.renameKeymap=function(t,n){var o,i=this,r=!1;if(this.layers.forEach(function(e,l){var s=e.renameKeymap(t,n);s!==e&&(r||(o=i.layers.slice(),r=!0),o[l]=s)}),r){var l=Object.assign(new e,this);return l.layers=o,l}return this},e.prototype.normalize=function(){if(!(this.layers.length<1))for(var e=0;eo.LastKeystrokeAction)throw"Invalid "+t+" first byte: "+n}else if(n!==i)throw"Invalid "+t+" first byte: "+n;return n},e.prototype.renameKeymap=function(e,t){return this},e}()},"4uS6":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("4KnF")),o(n("I5Xr")),o(n("CfJK")),o(n("78zf")),o(n("HiVc")),o(n("Fq1u")),o(n("9PEG")),o(n("MkTX"));var i=n("wogf");t.KeyActionHelper=i.Helper},"63KW":function(e,t,n){"use strict";(function(e){var o=n("EKta"),i=n("ujcs"),r=n("sOR5");function l(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(l()=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(o)return V(e).length;t=(""+t).toLowerCase(),o=!0}}function y(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function m(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,o)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,o,i);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,o,i){var r,l=1,s=e.length,a=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;l=2,s/=2,a/=2,n/=2}function u(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(i){var c=-1;for(r=n;rs&&(n=s-a),r=n;r>=0;r--){for(var d=!0,p=0;pi&&(o=i):o=i;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");o>r/2&&(o=r/2);for(var l=0;l>8,i.push(n%256),i.push(o);return i}(t,e.length-n),e,n,o)}function T(e,t,n){return o.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var o=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(r=e[i+1]))&&(a=(31&u)<<6|63&r)>127&&(c=a);break;case 3:l=e[i+2],128==(192&(r=e[i+1]))&&128==(192&l)&&(a=(15&u)<<12|(63&r)<<6|63&l)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:l=e[i+2],s=e[i+3],128==(192&(r=e[i+1]))&&128==(192&l)&&128==(192&s)&&(a=(15&u)<<18|(63&r)<<12|(63&l)<<6|63&s)>65535&&a<1114112&&(c=a)}null===c?(c=65533,d=1):c>65535&&(o.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),o.push(c),i+=d}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);for(var n="",o=0;othis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}).apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,o,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var r=i-o,l=n-t,s=Math.min(r,l),u=this.slice(o,i),c=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var r=!1;;)switch(o){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function O(e,t,n){var o="";n=Math.min(e.length,n);for(var i=t;ii)&&(n=i);for(var r="",l=t;ln)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,o,i,r){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,n,o){t<0&&(t=65535+t+1);for(var i=0,r=Math.min(e.length-n,2);i>>8*(o?i:1-i)}function D(e,t,n,o){t<0&&(t=4294967295+t+1);for(var i=0,r=Math.min(e.length-n,4);i>>8*(o?i:3-i)&255}function N(e,t,n,o,i,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,o,r){return r||N(e,0,n,4),i.write(e,t,n,o,23,4),n+4}function L(e,t,n,o,r){return r||N(e,0,n,8),i.write(e,t,n,o,52,8),n+8}a.prototype.slice=function(e,t){var n,o=this.length;if(e=~~e,t=void 0===t?o:~~t,e<0?(e+=o)<0&&(e=0):e>o&&(e=o),t<0?(t+=o)<0&&(t=0):t>o&&(t=o),t0&&(i*=256);)o+=this[e+--t]*i;return o},a.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var o=this[e],i=1,r=0;++r=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var o=t,i=1,r=this[e+--o];o>0&&(i*=256);)r+=this[e+--o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,r=0;for(this[t]=255&e;++r=0&&(r*=256);)this[t+i]=e/r&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var r=0,l=1,s=0;for(this[t]=255&e;++r>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var r=n-1,l=1,s=0;for(this[t+r]=255&e;--r>=0&&(l*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/l>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(r<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(l+1===o){(t-=3)>-1&&r.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function F(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,o){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n("srjU"))},"6BaH":function(e,t,n){"use strict";var o=n("sIYO");t.multicast=function(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new i(r,t));var l=Object.create(n,o.connectableObservableDescriptor);return l.source=n,l.subjectFactory=r,l}};var i=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,o=this.subjectFactory(),i=n(o).subscribe(e);return i.add(t.subscribe(o)),i},e}();t.MulticastOperator=i},"6Yye":function(e,t,n){"use strict";var o=n("rCTf"),i=n("+4ur");o.Observable.prototype.catch=i._catch,o.Observable.prototype._catch=i._catch},"78zf":function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s=n("CmJd"),a=n("4KnF");!function(e){e[e.leftClick=0]="leftClick",e[e.middleClick=1]="middleClick",e[e.rightClick=2]="rightClick",e[e.moveUp=3]="moveUp",e[e.moveDown=4]="moveDown",e[e.moveLeft=5]="moveLeft",e[e.moveRight=6]="moveRight",e[e.scrollUp=7]="scrollUp",e[e.scrollDown=8]="scrollDown",e[e.scrollLeft=9]="scrollLeft",e[e.scrollRight=10]="scrollRight",e[e.accelerate=11]="accelerate",e[e.decelerate=12]="decelerate"}(l=t.MouseActionParam||(t.MouseActionParam={})),t.MouseAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.mouseAction=t.mouseAction,n):n}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.mouseAction=l[e.mouseAction],this},t.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.mouseAction=e.readUInt8(),this},t.prototype.toJsonObject=function(){return{keyActionType:a.keyActionType.MouseAction,mouseAction:l[this.mouseAction]}},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.MouseAction),e.writeUInt8(this.mouseAction)},t.prototype.toString=function(){return''},t.prototype.getName=function(){return"MouseAction"},i([s.assertEnum(l),r("design:type",Number)],t.prototype,"mouseAction",void 0),t}(a.KeyAction)},"7DMc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"AbstractControlDirective",function(){return u}),n.d(t,"AbstractFormGroupDirective",function(){return oe}),n.d(t,"CheckboxControlValueAccessor",function(){return _}),n.d(t,"ControlContainer",function(){return c}),n.d(t,"NG_VALUE_ACCESSOR",function(){return b}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return A}),n.d(t,"DefaultValueAccessor",function(){return T}),n.d(t,"NgControl",function(){return E}),n.d(t,"NgControlStatus",function(){return le}),n.d(t,"NgControlStatusGroup",function(){return se}),n.d(t,"NgForm",function(){return ge}),n.d(t,"NgModel",function(){return xe}),n.d(t,"NgModelGroup",function(){return Ae}),n.d(t,"RadioControlValueAccessor",function(){return R}),n.d(t,"FormControlDirective",function(){return Me}),n.d(t,"FormControlName",function(){return Ue}),n.d(t,"FormGroupDirective",function(){return Pe}),n.d(t,"FormArrayName",function(){return Ne}),n.d(t,"FormGroupName",function(){return Re}),n.d(t,"NgSelectOption",function(){return V}),n.d(t,"SelectControlValueAccessor",function(){return U}),n.d(t,"SelectMultipleControlValueAccessor",function(){return B}),n.d(t,"CheckboxRequiredValidator",function(){return Be}),n.d(t,"EmailValidator",function(){return We}),n.d(t,"MaxLengthValidator",function(){return Ge}),n.d(t,"MinLengthValidator",function(){return ze}),n.d(t,"PatternValidator",function(){return Qe}),n.d(t,"RequiredValidator",function(){return Ke}),n.d(t,"FormBuilder",function(){return Je}),n.d(t,"AbstractControl",function(){return de}),n.d(t,"FormArray",function(){return he}),n.d(t,"FormControl",function(){return pe}),n.d(t,"FormGroup",function(){return fe}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return f}),n.d(t,"NG_VALIDATORS",function(){return p}),n.d(t,"Validators",function(){return y}),n.d(t,"VERSION",function(){return Ze}),n.d(t,"FormsModule",function(){return it}),n.d(t,"ReactiveFormsModule",function(){return rt}),n.d(t,"\u0275ba",function(){return ot}),n.d(t,"\u0275z",function(){return nt}),n.d(t,"\u0275x",function(){return et}),n.d(t,"\u0275y",function(){return tt}),n.d(t,"\u0275a",function(){return k}),n.d(t,"\u0275b",function(){return w}),n.d(t,"\u0275c",function(){return ie}),n.d(t,"\u0275d",function(){return re}),n.d(t,"\u0275e",function(){return ye}),n.d(t,"\u0275f",function(){return Te}),n.d(t,"\u0275g",function(){return we}),n.d(t,"\u0275bf",function(){return Xe}),n.d(t,"\u0275bb",function(){return O}),n.d(t,"\u0275bc",function(){return S}),n.d(t,"\u0275h",function(){return P}),n.d(t,"\u0275i",function(){return I}),n.d(t,"\u0275bd",function(){return D}),n.d(t,"\u0275be",function(){return N}),n.d(t,"\u0275j",function(){return Se}),n.d(t,"\u0275k",function(){return Le}),n.d(t,"\u0275l",function(){return Ee}),n.d(t,"\u0275n",function(){return De}),n.d(t,"\u0275m",function(){return Ie}),n.d(t,"\u0275o",function(){return j}),n.d(t,"\u0275q",function(){return H}),n.d(t,"\u0275p",function(){return F}),n.d(t,"\u0275s",function(){return Fe}),n.d(t,"\u0275t",function(){return He}),n.d(t,"\u0275v",function(){return $e}),n.d(t,"\u0275u",function(){return qe}),n.d(t,"\u0275w",function(){return Ye}),n.d(t,"\u0275r",function(){return Ve});var o=n("TToO"),i=n("WT6e"),r=n("7rB9"),l=n("ioK+"),s=n("xAJs"),a=n("OE0E"),u=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(u);function d(e){return null==e||0===e.length}var p=new i.InjectionToken("NgValidators"),f=new i.InjectionToken("NgAsyncValidators"),h=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,y=function(){function e(){}return e.min=function(e){return function(t){if(d(t.value)||d(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return d(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return h.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(d(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(o="","^"!==t.charAt(0)&&(o+="^"),o+=t,"$"!==t.charAt(t.length-1)&&(o+="$"),n=new RegExp(o)):(o=t.toString(),n=t),function(e){if(d(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:o,actualValue:t}}}):e.nullValidator;var n,o},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){return v(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(g);return s.map.call(Object(r.forkJoin)(n),v)}},e}();function m(e){return null!=e}function g(e){var t=Object(i["\u0275isPromise"])(e)?Object(l.fromPromise)(e):e;if(!Object(i["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function v(e){var t=e.reduce(function(e,t){return null!=t?Object(o.__assign)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var b=new i.InjectionToken("NgValueAccessor"),k={provide:b,useExisting:Object(i.forwardRef)(function(){return _}),multi:!0},_=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),w={provide:b,useExisting:Object(i.forwardRef)(function(){return T}),multi:!0},A=new i.InjectionToken("CompositionEventMode"),T=function(){function e(e,t,n){var o;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(o=Object(a.s)()?Object(a.s)().getUserAgent():"",!/android (\d+)/.test(o.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function C(e){return e.validate?function(t){return e.validate(t)}:e}function x(e){return e.validate?function(t){return e.validate(t)}:e}var O={provide:b,useExisting:Object(i.forwardRef)(function(){return S}),multi:!0},S=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function M(){throw new Error("unimplemented")}var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return M()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return M()},enumerable:!0,configurable:!0}),t}(u),P={provide:b,useExisting:Object(i.forwardRef)(function(){return R}),multi:!0},I=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),R=function(){function e(e,t,n,o){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=o,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(E),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}(),D={provide:b,useExisting:Object(i.forwardRef)(function(){return N}),multi:!0},N=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),j={provide:b,useExisting:Object(i.forwardRef)(function(){return U}),multi:!0};function L(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var U=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=i["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=L(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var o=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,r=0;r1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Q(e){return null!=e?y.compose(e.map(C)):null}function J(e){return null!=e?y.composeAsync(e.map(x)):null}function Z(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(i["\u0275looseIdentical"])(t,n.currentValue)}var X=[_,N,S,U,B,R];function ee(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function te(e,t){if(!t)return null;var n=void 0,o=void 0,i=void 0;return t.forEach(function(t){var r;t.constructor===T?n=t:(r=t,X.some(function(e){return r.constructor===e})?(o&&Y(e,"More than one built-in value accessor matches form control with"),o=t):(i&&Y(e,"More than one custom value accessor matches form control with"),i=t))}),i||o||n||(Y(e,"No valid value accessor for form control with"),null)}function ne(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(c),ie=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),re={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},le=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t}(ie),se=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t}(ie);function ae(e){var t=ce(e)?e.validators:e;return Array.isArray(t)?Q(t):t||null}function ue(e,t){var n=ce(t)?t.asyncValidators:e;return Array.isArray(n)?J(n):n||null}function ce(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var de=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ae(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=ue(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(o.__assign)({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(Object(o.__assign)({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=g(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof fe?e.controls[t]||null:e instanceof he&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){ce(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),pe=function(e){function t(t,n,o){void 0===t&&(t=null);var i=e.call(this,ae(n),ue(o,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(o.__extends)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(de),fe=function(e){function t(t,n,o){var i=e.call(this,ae(n),ue(o,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(o.__extends)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(o){n._throwIfControlMissing(o),n.controls[o].setValue(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(o){n.controls[o]&&n.controls[o].patchValue(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,o){n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof pe?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(o,i){n=n||t.contains(i)&&e(o)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,o){return(n.enabled||e.disabled)&&(t[o]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,o){n=t(n,e,o)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(de),he=function(e){function t(t,n,o){var i=e.call(this,ae(n),ue(o,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(o.__extends)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,o){n._throwIfControlMissing(o),n.at(o).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,o){n.at(o)&&n.at(o).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,o){n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pe?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(de),ye={provide:c,useExisting:Object(i.forwardRef)(function(){return ge})},me=Promise.resolve(null),ge=function(e){function t(t,n){var o=e.call(this)||this;return o.submitted=!1,o._directives=[],o.ngSubmit=new i.EventEmitter,o.form=new fe({},Q(t),J(n)),o}return Object(o.__extends)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),q(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ne(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path),o=new fe({});$(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;me.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(c),ve='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',be='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ke='\n
\n
\n \n
\n
',_e=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ve+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+be+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+ke)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+be+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+ke)},e}(),we={provide:c,useExisting:Object(i.forwardRef)(function(){return Ae})},Ae=function(e){function t(t,n,o){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=o,i}return Object(o.__extends)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof ge||_e.modelGroupParentException()},t}(oe),Te={provide:E,useExisting:Object(i.forwardRef)(function(){return xe})},Ce=Promise.resolve(null),xe=function(e){function t(t,n,o,r){var l=e.call(this)||this;return l.control=new pe,l._registered=!1,l.update=new i.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=o||[],l.valueAccessor=te(l,r),l}return Object(o.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Z(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?W(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){q(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Ae)&&this._parent instanceof oe?_e.formGroupNameException():this._parent instanceof Ae||this._parent instanceof ge||_e.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||_e.missingNameException()},t.prototype._updateValue=function(e){var t=this;Ce.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,o=""===n||n&&"false"!==n;Ce.then(function(){o&&!t.control.disabled?t.control.disable():!o&&t.control.disabled&&t.control.enable()})},t}(E),Oe=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ve)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+be+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+ke)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ve)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+be)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e}(),Se={provide:E,useExisting:Object(i.forwardRef)(function(){return Me})},Me=function(e){function t(t,n,o){var r=e.call(this)||this;return r.update=new i.EventEmitter,r._rawValidators=t||[],r._rawAsyncValidators=n||[],r.valueAccessor=te(r,o),r}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(q(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Z(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}(E),Ee={provide:c,useExisting:Object(i.forwardRef)(function(){return Pe})},Pe=function(e){function t(t,n){var o=e.call(this)||this;return o._validators=t,o._asyncValidators=n,o.submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new i.EventEmitter,o}return Object(o.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return q(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ne(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);$(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);$(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return G(t)}),t.valueAccessor.registerOnTouched(function(){return G(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&q(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=Q(this._validators);this.form.validator=y.compose([this.form.validator,e]);var t=J(this._asyncValidators);this.form.asyncValidator=y.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Oe.missingFormException()},t}(c),Ie={provide:c,useExisting:Object(i.forwardRef)(function(){return Re})},Re=function(e){function t(t,n,o){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=o,i}return Object(o.__extends)(t,e),t.prototype._checkParentType=function(){je(this._parent)&&Oe.groupParentException()},t}(oe),De={provide:c,useExisting:Object(i.forwardRef)(function(){return Ne})},Ne=function(e){function t(t,n,o){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=o,i}return Object(o.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){je(this._parent)&&Oe.arrayParentException()},t}(c);function je(e){return!(e instanceof Re||e instanceof Pe||e instanceof Ne)}var Le={provide:E,useExisting:Object(i.forwardRef)(function(){return Ue})},Ue=function(e){function t(t,n,o,r){var l=e.call(this)||this;return l._added=!1,l.update=new i.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=o||[],l.valueAccessor=te(l,r),l}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),Z(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Re)&&this._parent instanceof oe?Oe.ngModelGroupException():this._parent instanceof Re||this._parent instanceof Pe||this._parent instanceof Ne||Oe.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t}(E),Ve={provide:p,useExisting:Object(i.forwardRef)(function(){return Ke}),multi:!0},Fe={provide:p,useExisting:Object(i.forwardRef)(function(){return Be}),multi:!0},Ke=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?y.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.validate=function(e){return this.required?y.requiredTrue(e):null},t}(Ke),He={provide:p,useExisting:Object(i.forwardRef)(function(){return We}),multi:!0},We=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?y.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),qe={provide:p,useExisting:Object(i.forwardRef)(function(){return ze}),multi:!0},ze=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.minLength(parseInt(this.minlength,10))},e}(),$e={provide:p,useExisting:Object(i.forwardRef)(function(){return Ge}),multi:!0},Ge=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.maxLength(parseInt(this.maxlength,10))},e}(),Ye={provide:p,useExisting:Object(i.forwardRef)(function(){return Qe}),multi:!0},Qe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.pattern(this.pattern)},e}(),Je=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new fe(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new pe(e,t,n)},e.prototype.array=function(e,t,n){var o=this,i=e.map(function(e){return o._createControl(e)});return new he(i,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(o){n[o]=t._createControl(e[o])}),n},e.prototype._createControl=function(e){return e instanceof pe||e instanceof fe||e instanceof he?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),Ze=new i.Version("5.2.9"),Xe=function(){},et=[Xe,V,H,T,S,N,_,U,B,R,le,se,Ke,ze,Ge,Qe,Be,We],tt=[xe,Ae,ge],nt=[Me,Pe,Ue,Re,Ne],ot=function(){},it=function(){},rt=function(){}},"7MSh":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("+3eL"),l=n("WhVc");t.distinctUntilChanged=function(e,t){return function(n){return n.lift(new s(e,t))}};var s=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))},e}(),a=function(e){function t(t,n,o){e.call(this,t),this.keySelector=o,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return o(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=e;if(this.keySelector&&(t=r.tryCatch(this.keySelector)(e))===l.errorObject)return this.destination.error(l.errorObject.e);var n=!1;if(this.hasKey){if((n=r.tryCatch(this.compare)(this.key,t))===l.errorObject)return this.destination.error(l.errorObject.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=t,this.destination.next(e))},t}(i.Subscriber)},"7OPe":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),t.d=function(e,t){switch(void 0===e&&(e=r),t.type){case o.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:return Object.assign({},e,{checkForUpdateOnStartUp:t.payload});case o.a.TOGGLE_PRE_RELEASE_FLAG:return Object.assign({},e,{usePreReleaseUpdate:t.payload});case o.a.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:return Object.assign({},t.payload);case o.a.CHECK_FOR_UPDATE_NOW:return Object.assign({},e,{checkingForUpdate:!0});case i.a.UPDATE_ERROR:case o.a.CHECK_FOR_UPDATE_SUCCESS:case o.a.CHECK_FOR_UPDATE_FAILED:return Object.assign({},e,{checkingForUpdate:!1});default:return e}},n.d(t,"b",function(){return l}),n.d(t,"a",function(){return s});var o=n("w+X5"),i=n("va3Z"),r={checkForUpdateOnStartUp:!1,usePreReleaseUpdate:!1,checkingForUpdate:!1},l=function(e){return{checkForUpdateOnStartUp:e.checkForUpdateOnStartUp,usePreReleaseUpdate:e.usePreReleaseUpdate}},s=function(e){return e.checkingForUpdate}},"7RCQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("Bxcs");t.getHardwareConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new o.HardwareConfiguration;if(n.fromBinary(o.UhkBuffer.fromArray(t)),"FTY"===n.signature)throw Error("The device is in factory reset mode. Power-cycle the device to use it with Agent!");if("UHK"!==n.signature)throw Error("Please power cycle your keyboard (Invalid hardware configuration: Invalid signature)");return n},t.getUserConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new o.UserConfiguration;if(n.fromBinary(o.UhkBuffer.fromArray(t)),n.userConfigMajorVersion>0)return n;throw Error("Invalid user configuration")},t.mapObjectToUserConfigBinaryBuffer=function(e){var t=new o.UserConfiguration;t.fromJsonObject(e);var n=new o.UhkBuffer;return t.toBinary(n),n.getBufferContent()}},"7nvF":function(e,t,n){"use strict";var o=n("p/p0");t.last=function(e,t,n){return o.last(e,t,n)(this)}},"7rB9":function(e,t,n){"use strict";var o=n("t2qv");t.forkJoin=o.ForkJoinObservable.create},"7s/Z":function(e,t){e.exports=function e(t){Object.freeze(t);var n="function"==typeof t,o=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(i){!o.call(t,i)||n&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||e(t[i])}),t}},"83T1":function(e,t,n){"use strict";var o=n("fI0c");t.every=function(e,t){return o.every(e,t)(this)}},"8AXl":function(e,t,n){"use strict";n.d(t,"b",function(){return _}),n.d(t,"a",function(){return x}),n.d(t,"c",function(){return P}),n.d(t,"d",function(){return j}),n.d(t,"e",function(){return D}),n.d(t,"f",function(){return N}),n.d(t,"i",function(){return R}),n.d(t,"k",function(){return I}),n.d(t,"j",function(){return E}),n.d(t,"h",function(){return M}),n.d(t,"g",function(){return S});var o,i=n("dyjq"),r=n("1KT0"),l=n("C4lF"),s=(n.n(l),n("Y6hq")),a=(n.n(s),n("xAJs")),u=n("WT6e"),c=n("rCTf"),d=n("ack3"),p=n("cJSH"),f=(n.n(p),n("XO5T")),h=n("2AEF"),y=(n.n(h),n("Oa+j")),m=(n.n(y),n("EEr4")),g=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v="@ngrx/effects",b=Reflect;function k(e){return e.constructor.propDecorators?(t=e.constructor.propDecorators,Object.keys(t).reduce(function(e,n){return e.concat((o=n,t[n].filter(function(e){return e.type===_}).map(function(e){var t=!0;return e.args&&e.args.length&&(t=!!e.args[0].dispatch),{propertyName:o,dispatch:t}})));var o},[])):b.hasOwnMetadata(v,e)?b.getOwnMetadata(v,e):[];var t}function _(e){var t=(void 0===e?{dispatch:!0}:e).dispatch;return function(e,n){var o,i;o=e,i=k(e).concat([{propertyName:n,dispatch:t}]),b.defineMetadata(v,i,o)}}function w(e){return Object.getPrototypeOf(e)}var A=Object(i.x)(k,w),T="ngrxOnRunEffects";function C(e){var t=function(e){var t=w(e).constructor.name,n=A(e).map(function(n){var o=n.propertyName,i=n.dispatch,r="function"==typeof e[o]?e[o]():e[o];if(!1===i)return l.ignoreElements.call(r);var u=s.materialize.call(r);return a.map.call(u,function(n){return{effect:e[o],notification:n,propertyName:o,sourceName:t,sourceInstance:e}})});return r.merge.apply(void 0,n)}(e);return function(e){var t=w(e);return T in t&&"function"==typeof t[T]}(e)?e.ngrxOnRunEffects(t):t}var x=function(e){function t(t){var n=e.call(this)||this;return t&&(n.source=t),n}return g(t,e),t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.ofType=function(){for(var e=[],t=0;t'},t.prototype.renameKeymap=function(e,n){return this.keymapAbbreviation!==e?this:new t(n)},t.prototype.getName=function(){return"SwitchKeymapAction"},t}(a.KeyAction);t.SwitchKeymapAction=u,t.UnresolvedSwitchKeymapAction=function(e){function t(t){var n=e.call(this)||this;return n.keymapIndex=t,n}return o(t,e),t.prototype.fromBinary=function(e){return e.readUInt8(),this.keymapIndex=e.readUInt8(),this},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.SwitchKeymapAction),e.writeUInt8(this.keymapIndex)},t.prototype.toJsonObject=function(){throw new Error("UnresolvedSwitchKeymapAction cannot be serialized directly. Convert it to SwitchKeymapAction first.")},t.prototype.resolve=function(e){return new u(e[this.keymapIndex])},t.prototype.getName=function(){return"UnresolvedSwitchKeymapAction"},i([l.assertUInt8,r("design:type",Number)],t.prototype,"keymapIndex",void 0),t}(a.KeyAction)},"9dR0":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.refCount=function(){return function(e){return e.lift(new r(e))}};var r=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var o=new l(e,n),i=t.subscribe(o);return o.closed||(o.connection=n.connect()),i},e}(),l=function(e){function t(t,n){e.call(this,t),this.connectable=n}return o(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,o=e._connection;this.connection=null,!o||n&&o!==n||o.unsubscribe()}}else this.connection=null},t}(i.Subscriber)},"9dXm":function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("ao60"),a=n("4uS6");t.KeyMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.action=t.action,n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n):n}return o(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==a.KeystrokeType.shortMedia&&this.type!==a.KeystrokeType.longMedia||(this.type=e<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.action=s.MacroKeySubAction[e.action],this.type="media"===e.type?e.scancode<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia:a.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this},t.prototype.fromBinary=function(e){var t=this.readAndAssertMacroActionId(e)-s.MacroActionId.KeyMacroAction;return this.action=3&t,this.type=3&(t>>=2),2&(t>>=2)&&(this._scancode=this.type===a.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),1&t&&(this.modifierMask=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={macroActionType:s.macroActionType.KeyMacroAction,action:s.MacroKeySubAction[this.action]};return this.hasScancode()&&(e.type=this.type===a.KeystrokeType.shortMedia||this.type===a.KeystrokeType.longMedia?"media":a.KeystrokeType[this.type],e.scancode=this._scancode),this.hasModifiers()&&(e.modifierMask=this.modifierMask),e},t.prototype.toBinary=function(e){var t=0;t|=this.action,t|=this.type<<2,t|=(this.hasScancode()?2:0)+(this.hasModifiers()?1:0)<<4,e.writeUInt8(s.MacroActionId.KeyMacroAction+t),this.hasScancode()&&(this.type===a.KeystrokeType.longMedia?e.writeUInt16(this.scancode):e.writeUInt8(this.scancode)),this.hasModifiers()&&e.writeUInt8(this.modifierMask)},t.prototype.toString=function(){return''},t.prototype.isModifierActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasModifiers=function(){return!!this.modifierMask},t.prototype.isPressAction=function(){return this.action===s.MacroKeySubAction.press},t.prototype.isTapAction=function(){return this.action===s.MacroKeySubAction.tap},t.prototype.isReleaseAction=function(){return this.action===s.MacroKeySubAction.release},t.prototype.getName=function(){return"KeyMacroAction"},i([l.assertEnum(s.MacroKeySubAction),r("design:type",Number)],t.prototype,"action",void 0),i([l.assertEnum(a.KeystrokeType),r("design:type",Number)],t.prototype,"type",void 0),i([l.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),i([l.assertUInt16,r("design:type",Number)],t.prototype,"_scancode",void 0),t}(s.MacroAction)},"9eyw":function(e,t,n){"use strict";var o=n("YOd+");function i(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:o.noop}t.pipe=function(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(r.OuterSubscriber);t.MergeMapSubscriber=s},B00U:function(e,t,n){"use strict";var o=n("Xajo"),i=n("ICpg"),r=n("SKH6"),l=n("+3eL"),s=n("WhVc"),a=n("GIjk");function u(e){return e.reduce(function(e,t){return e.concat(t instanceof a.UnsubscriptionError?t.errors:t)},[])}t.Subscription=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,c=this._parents,d=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,h=c?c.length:0;n;)n.remove(this),n=++f1?new o.ArrayObservable(e,n):new r.EmptyObservable(n),t)}}},"C0+T":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("9Avi");t.QueueScheduler=function(e){function t(){e.apply(this,arguments)}return o(t,e),t}(i.AsyncScheduler)},C4lF:function(e,t,n){"use strict";var o=n("ygD2");t.ignoreElements=function(){return o.ignoreElements()(this)}},CGGv:function(e,t,n){"use strict";var o=n("cwzr"),i=n("9Avi");t.async=new i.AsyncScheduler(o.AsyncAction)},CURp:function(e,t,n){"use strict";var o=n("VOfZ"),i=n("1r8+"),r=n("aQl7"),l=n("ICpg"),s=n("rCTf"),a=n("cdmN"),u=n("QqRK"),c=n("mbVC");t.subscribeToResult=function(e,t,n,d){var p=new u.InnerSubscriber(e,n,d);if(p.closed)return null;if(t instanceof s.Observable)return t._isScalar?(p.next(t.value),p.complete(),null):(p.syncErrorThrowable=!0,t.subscribe(p));if(i.isArrayLike(t)){for(var f=0,h=t.length;fo)throw e.constructor.name+"."+t+": Integer "+r+" is outside the valid ["+n+", "+o+"] interval";this[i]=r}},enumerable:!0,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.assertUInt8=function(e,t){return i(e,t,0,255)},t.assertInt8=function(e,t){return i(e,t,-128,127)},t.assertUInt16=o,t.assertInt16=function(e,t){return i(e,t,-32768,32767)},t.assertUInt32=function(e,t){return i(e,t,0,4294967295)},t.assertInt32=function(e,t){return i(e,t,-2147483648,2147483647)},t.assertCompactLength=function(e,t){return o(e,t)},t.assertEnum=function(e){return function(t,n){var o="_"+n;Object.defineProperty(t,n,{get:function(){return this[o]},set:function(i){if(this[o]!==i){if(void 0===e[i])throw t.constructor.name+"."+n+": "+i+" is not enum";this[o]=i}},enumerable:!0,configurable:!0})}}},D2Nv:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.tap=function(e,t,n){return function(o){return o.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,o,r){e.call(this,t);var l=new i.Subscriber(n,o,r);l.syncErrorThrowable=!0,this.add(l),this.safeSubscriber=l}return o(t,e),t.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},t.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),this.destination.error(t.syncErrorThrown?t.syncErrorValue:e)},t.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},t}(i.Subscriber)},DzMp:function(e,t,n){"use strict";var o=n("+EXD");t.defer=o.DeferObservable.create},EEr4:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("mmVS"),l=n("B00U"),s=n("IZVw"),a=n("ZJf8"),u=n("r8ZY"),c=function(e){function t(t){e.call(this,t),this.destination=t}return o(t,e),t}(r.Subscriber);t.SubjectSubscriber=c;var d=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return o(t,e),t.prototype[u.rxSubscriber]=function(){return new c(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,o=t.slice(),i=0;i0?a-4:a;var c=0;for(t=0;t>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===l?(o=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===l&&(o=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,r="",l=[],s=0,a=n-i;sa?a:s+16383));return 1===i?(r+=o[(t=e[n-1])>>2],r+=o[t<<4&63],r+="=="):2===i&&(r+=o[(t=(e[n-2]<<8)+e[n-1])>>10],r+=o[t>>4&63],r+=o[t<<2&63],r+="="),l.push(r),l.join("")};for(var o=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=l.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,n){for(var i,r=[],l=t;l>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return r.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},EnA3:function(e,t,n){"use strict";var o=n("rCTf"),i=n("Rewd");o.Observable.prototype.do=i._do,o.Observable.prototype._do=i._do},EoAl:function(e,t,n){"use strict";var o=n("rCTf"),i=n("KuCq");o.Observable.prototype.takeWhile=i.takeWhile},F7Al:function(e,t,n){"use strict";var o=n("TToO").__extends,i=function(e){function t(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return o(t,e),t}(Error);t.EmptyError=i},FA5e:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("RRVv"),l=n("jBEF");t.ArrayLikeObservable=function(e){function t(t,n){e.call(this),this.arrayLike=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return o(t,e),t.create=function(e,n){var o=e.length;return 0===o?new l.EmptyObservable:1===o?new r.ScalarObservable(e[0],n):new t(e,n)},t.dispatch=function(e){var t=e.arrayLike,n=e.index,o=e.subscriber;o.closed||(n>=e.length?o.complete():(o.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.arrayLike,o=this.scheduler,i=n.length;if(o)return o.schedule(t.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:e});for(var r=0;r'},t.prototype.getName=function(){return"PlayMacroAction"},i([l.assertUInt8,r("design:type",Number)],t.prototype,"macroId",void 0),t}(s.KeyAction)},Ftqy:function(e,t){e.exports={userConfigMajorVersion:4,userConfigMinorVersion:0,userConfigPatchVersion:0,deviceName:"My UHK",doubleTapSwitchLayerTimeout:250,iconsAndLayerTextsBrightness:255,alphanumericSegmentsBrightness:255,keyBacklightBrightness:255,mouseMoveInitialSpeed:4,mouseMoveAcceleration:68,mouseMoveDeceleratedSpeed:8,mouseMoveBaseSpeed:32,mouseMoveAcceleratedSpeed:64,mouseScrollInitialSpeed:20,mouseScrollAcceleration:20,mouseScrollDeceleratedSpeed:20,mouseScrollBaseSpeed:20,mouseScrollAcceleratedSpeed:50,moduleConfigurations:[],keymaps:[{isDefault:!1,abbreviation:"COM",name:"Colemak for Mac",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:23},null,{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"COL",name:"Colemak for PC",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the PC version.\n",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:23},null,{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVM",name:"Dvorak for Mac",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:24},null,{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVO",name:"Dvorak for PC",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:24},null,{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"QWM",name:"QWERTY for Mac",description:"QWERTY is the mother of all layouts. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!0,abbreviation:"QWR",name:"QWERTY for PC",description:"QWERTY is the mother of all layouts. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",switchLayerMode:"holdAndDoubleTapToggle"},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"TES",name:"Test",description:"This keymap is only used for factory testing purposes.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:87},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:94},{keyActionType:"keystroke",type:"basic",scancode:85},{keyActionType:"keystroke",type:"basic",scancode:95},{keyActionType:"keystroke",type:"basic",scancode:96},{keyActionType:"keystroke",type:"basic",scancode:97},{keyActionType:"keystroke",type:"basic",scancode:98}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:86},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:89},{keyActionType:"keystroke",type:"basic",scancode:90},{keyActionType:"keystroke",type:"basic",scancode:91},{keyActionType:"keystroke",type:"basic",scancode:92},{keyActionType:"keystroke",type:"basic",scancode:84},{keyActionType:"keystroke",type:"basic",scancode:93},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]}],macros:[{isLooped:!0,isPrivate:!0,name:"Go to UHK site in browser",macroActions:[{macroActionType:"key",action:"tap",type:"basic",scancode:15,modifierMask:1},{macroActionType:"text",text:"https://ultimatehackingkeyboard.com"},{macroActionType:"key",action:"tap",type:"basic",scancode:40}]},{isLooped:!1,isPrivate:!0,name:"God mode in Doom",macroActions:[{macroActionType:"text",text:"iddqd"}]},{isLooped:!1,isPrivate:!0,name:"Type Silent Bob's address",macroActions:[{macroActionType:"text",text:"Silent Bob\n711-2880 Nulla St.\nMankato Mississippi 96522\n(257) 563-7401"}]}]}},GIjk:function(e,t,n){"use strict";var o=n("TToO").__extends,i=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return o(t,e),t}(Error);t.UnsubscriptionError=i},H5FS:function(e,t,n){"use strict";(function(e,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UhkBuffer=function(){function t(){this._enableDump=!1,this.offset=0,this.bytesToBacktrack=0,this.buffer=new e(t.eepromSize),this.buffer.fill(0)}return t.simpleElementWriter=function(e,t){t.toBinary(e)},t.fromArray=function(e){if(e.length<1)return null;for(var n=new t,o=0,i=e;o=t.longCompactLengthPrefix?(this.writeUInt8(t.longCompactLengthPrefix),this.writeUInt16(e)):this.writeUInt8(e)},t.prototype.readString=function(){var e=this.readCompactLength(),n=this.buffer.toString(t.stringEncoding,this.offset,this.offset+e);return this.dump(t.stringEncoding+"("+n+")"),this.bytesToBacktrack=e,this.offset+=e,n},t.prototype.writeString=function(n){var o=e.byteLength(n,t.stringEncoding);if(o>t.maxCompactLength)throw"Cannot serialize string: "+o+" bytes is larger\n than the maximum allowed length of "+t.maxCompactLength+" bytes";this.writeCompactLength(o),this.dump(t.stringEncoding+"("+n+")"),this.buffer.write(n,this.offset,o,t.stringEncoding),this.offset+=o},t.prototype.readBoolean=function(){return 0!==this.readUInt8()},t.prototype.writeBoolean=function(e){this.writeUInt8(e?1:0)},t.prototype.readArray=function(e){for(var t=[],n=this.readCompactLength(),o=0;o"},t.prototype.getName=function(){return"NoneAction"},t}(i.KeyAction)},I5Xr:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s=n("CmJd"),a=n("ZTdU"),u=n("4KnF"),c=n("CfJK");!function(e){e[e.scancode=1]="scancode",e[e.modifierMask=2]="modifierMask",e[e.secondaryRoleAction=4]="secondaryRoleAction"}(l=t.KeystrokeActionFlag||(t.KeystrokeActionFlag={}));var d=["LCtrl","LShift","LAlt","LSuper","RCtrl","RShift","RAlt","RSuper"];t.KeystrokeAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n.secondaryRoleAction=t.secondaryRoleAction,n):n}return o(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==c.KeystrokeType.shortMedia&&this.type!==c.KeystrokeType.longMedia||(this.type=e<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){e!==c.KeystrokeType.shortMedia&&e!==c.KeystrokeType.longMedia||(e=this.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia),this._type=e},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.type="media"===e.type?e.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia:c.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=a.SecondaryRoleAction[e.secondaryRoleAction],this},t.prototype.fromBinary=function(e){var t=this.readAndAssertKeyActionId(e)-u.KeyActionId.NoneAction;return this.type=t>>3&3,t&l.scancode&&(this._scancode=this.type===c.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),t&l.modifierMask&&(this.modifierMask=e.readUInt8()),t&l.secondaryRoleAction&&(this.secondaryRoleAction=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={keyActionType:u.keyActionType.KeystrokeAction};return e.type=this.type===c.KeystrokeType.shortMedia||this.type===c.KeystrokeType.longMedia?"media":c.KeystrokeType[this.type],this.hasScancode()&&(e.scancode=this._scancode),this.hasActiveModifier()&&(e.modifierMask=this.modifierMask),this.hasSecondaryRoleAction()&&(e.secondaryRoleAction=a.SecondaryRoleAction[this.secondaryRoleAction]),e},t.prototype.toBinary=function(e){var t=0,n=[];this.hasScancode()&&(t|=l.scancode,n.push({data:this._scancode,long:this.type===c.KeystrokeType.longMedia})),this.hasActiveModifier()&&(t|=l.modifierMask,n.push({data:this.modifierMask,long:!1})),this.hasSecondaryRoleAction()&&(t|=l.secondaryRoleAction,n.push({data:this.secondaryRoleAction,long:!1})),e.writeUInt8(u.KeyActionId.NoneAction+(t+(this.type<<3)));for(var o=0;o"},t.prototype.isActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasActiveModifier=function(){return this.modifierMask>0},t.prototype.hasSecondaryRoleAction=function(){return void 0!==this.secondaryRoleAction&&null!==this.secondaryRoleAction},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasOnlyOneActiveModifier=function(){return 0!==this.modifierMask&&!(this.modifierMask&this.modifierMask-1)},t.prototype.getModifierList=function(){for(var e=[],t=this.modifierMask,n=0;0!==t;++n,t>>=1)1&t&&e.push(d[n]);return e},t.prototype.getName=function(){return"KeystrokeAction"},i([s.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),i([s.assertEnum(a.SecondaryRoleAction),r("design:type",Number)],t.prototype,"secondaryRoleAction",void 0),i([s.assertEnum(c.KeystrokeType),r("design:type",Number)],t.prototype,"_type",void 0),t}(u.KeyAction)},ICpg:function(e,t,n){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},IZVw:function(e,t,n){"use strict";var o=n("TToO").__extends,i=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return o(t,e),t}(Error);t.ObjectUnsubscribedError=i},Ilbw:function(e,t,n){"use strict";var o=n("vx8o");t.dragula=o.default||o},JJSU:function(e,t,n){"use strict";var o=n("rCTf"),i=n("7nvF");o.Observable.prototype.last=i.last},JZ4p:function(e,t,n){var o={"./DVR.json":"VMHN","./EMY.json":"TyHZ","./QTY.json":"e8yI","./VIM.json":"3vEz"};function i(e){return n(r(e))}function r(e){var t=o[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id="JZ4p"},Ji1B:function(e,t,n){"use strict";var o=n("ODby");t.observeOn=function(e,t){return void 0===t&&(t=0),o.observeOn(e,t)(this)}},Ji1V:function(e,t,n){"use strict";var o=n("C/iu");t.startWith=function(){for(var e=[],t=0;tthis.total&&this.destination.next(e)},t}(i.Subscriber)},KMB7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("RZVO");t.isEqualArray=function(e,t){if(e.length!==t.length)return!1;for(var n=function(e){if(!t.some(function(t){return o.isEqual(e,t)}))return{value:!1}},i=0,r=e;i0}var s,a=function(){var e=n("OjAK");return{version:e.version,firmwareVersion:e.firmwareVersion,deviceProtocolVersion:e.deviceProtocolVersion,moduleProtocolVersion:e.moduleProtocolVersion,userConfigVersion:e.userConfigVersion,hardwareConfigVersion:e.hardwareConfigVersion}},u=a,c=function(){return s||(s=a()),s};n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,!1,function(){return u})},LxNc:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("wAkD"),r=n("CURp");t.catchError=function(e){return function(t){var n=new l(e),o=t.lift(n);return n.caught=o}};var l=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,n,o){e.call(this,t),this.selector=n,this.caught=o}return o(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(r.subscribeToResult(this,n))}},t}(i.OuterSubscriber)},M5jZ:function(e,t,n){"use strict";var o=n("JzlZ");t.skip=function(e){return o.skip(e)(this)}},"MEr+":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("CGGv");t.debounceTime=function(e,t){return void 0===t&&(t=r.async),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))},e}(),s=function(e){function t(t,n,o){e.call(this,t),this.dueTime=n,this.scheduler=o,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(a,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(i.Subscriber);function a(e){e.debouncedNext()}},MQMf:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("EEr4"),r=n("RA5l"),l=n("B00U"),s=n("ODby"),a=n("IZVw"),u=n("ZJf8");t.ReplaySubject=function(e){function t(t,n,o){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=o,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=n<1?1:n}return o(t,e),t.prototype.next=function(t){var n=this._getNow();this._events.push(new c(n,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._trimBufferThenGetEvents(),o=this.scheduler;if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError?t=l.Subscription.EMPTY:this.isStopped?t=l.Subscription.EMPTY:(this.observers.push(e),t=new u.SubjectSubscription(this,e)),o&&e.add(e=new s.ObserveOnSubscriber(e,o));for(var i=n.length,r=0;rt&&(r=Math.max(r,i-t)),r>0&&o.splice(0,r),o},t}(i.Subject);var c=function(e,t){this.time=e,this.value=t}},MkTX:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s,a=n("CmJd"),u=n("4KnF");!function(e){e[e.mod=0]="mod",e[e.fn=1]="fn",e[e.mouse=2]="mouse"}(l=t.LayerName||(t.LayerName={})),function(e){e.holdAndDoubleTapToggle="holdAndDoubleTapToggle",e.toggle="toggle",e.hold="hold"}(s=t.SwitchLayerMode||(t.SwitchLayerMode={})),t.mapSwitchLayerModeToNumber=function(e){switch(e){case s.holdAndDoubleTapToggle:return 0;case s.toggle:return 1;case s.hold:return 2;default:throw new Error("Can not map "+e+" to number")}},t.mapNumberToSwitchLayerMode=function(e){switch(e){case 0:return s.holdAndDoubleTapToggle;case 1:return s.toggle;case 2:return s.hold;default:throw new Error('Can not map "'+e+'" to SwitchLayerMode')}},t.SwitchLayerAction=function(e){function n(t){var n=e.call(this)||this;return t?(n.switchLayerMode=t.switchLayerMode,n.layer=t.layer,n):n}return o(n,e),n.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.layer=l[e.layer],this.switchLayerMode="boolean"==typeof e.toggle?e.toggle?s.toggle:s.holdAndDoubleTapToggle:e.switchLayerMode,this},n.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.layer=e.readUInt8(),this.switchLayerMode=t.mapNumberToSwitchLayerMode(e.readUInt8()),this},n.prototype.toJsonObject=function(){return{keyActionType:u.keyActionType.SwitchLayerAction,layer:l[this.layer],switchLayerMode:this.switchLayerMode}},n.prototype.toBinary=function(e){e.writeUInt8(u.KeyActionId.SwitchLayerAction),e.writeUInt8(this.layer),e.writeUInt8(t.mapSwitchLayerModeToNumber(this.switchLayerMode))},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"SwitchLayerAction"},i([a.assertEnum(s),r("design:type",String)],n.prototype,"switchLayerMode",void 0),i([a.assertEnum(l),r("design:type",Number)],n.prototype,"layer",void 0),n}(u.KeyAction)},MptX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var o={showButton:!1,text:null,showProgress:!1}},NSzm:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var o=n("TToO"),i=n("8AXl"),r=n("rCTf"),l=n("DzMp"),s=(n.n(l),n("lDdF")),a=(n.n(s),n("+pb+")),u=(n.n(a),n("uCY4")),c=(n.n(u),n("/lY3")),d=(n.n(c),n("fiy1")),p=(n.n(d),n("HcJ8")),f=(n.n(p),n("1APj")),h=(n.n(f),n("AGQa")),y=(n.n(h),n("gI3A")),m=(n.n(y),n("at4H")),g=n("9EfN"),v=n("WP8/"),b=n("Ji5S"),k=n("fYQU"),_=function(){function t(t,n,o,i,a,u,c){var d=this;this.actions$=t,this.dataStorageRepository=n,this.store=o,this.defaultUserConfigurationService=i,this.deviceRendererService=a,this.logService=u,this.router=c,this.loadUserConfig$=Object(l.defer)(function(){return r.Observable.of(new m.f(d.getUserConfiguration()))}),this.saveUserConfig$=this.actions$.ofType(v.a.ADD,v.a.DUPLICATE,v.a.EDIT_NAME,v.a.EDIT_ABBR,v.a.SET_DEFAULT,v.a.REMOVE,v.a.SAVE_KEY,v.a.EDIT_DESCRIPTION,v.b.ADD,v.b.DUPLICATE,v.b.EDIT_NAME,v.b.REMOVE,v.b.ADD_ACTION,v.b.SAVE_ACTION,v.b.DELETE_ACTION,v.b.REORDER_ACTION,m.a.RENAME_USER_CONFIGURATION,m.a.SET_USER_CONFIGURATION_VALUE).withLatestFrom(this.store.select(g.r),this.store.select(g.l)).mergeMap(function(e){var t=e[0],n=e[1],o=e[2];if(n.recalculateConfigurationLength(),d.dataStorageRepository.saveConfig(n),t.type===v.a.REMOVE||t.type===v.b.REMOVE){var i=t.type===v.a.REMOVE?"Keymap":"Macro",r={path:"/"+(t.type===v.a.REMOVE?"keymap":"macro")+"/"+t.payload,config:o.toJsonObject()};return[new m.k(n),new b.l({type:y.NotificationType.Undoable,message:i+" has been deleted",extra:{payload:r,type:v.a.UNDO_LAST_ACTION}}),new k.q]}return[new m.k(n),new b.d,new k.q]}),this.undoUserConfig$=this.actions$.ofType(v.a.UNDO_LAST_ACTION).map(function(e){return e.payload}).mergeMap(function(e){var t=(new y.UserConfiguration).fromJsonObject(e.config);return d.dataStorageRepository.saveConfig(t),d.router.navigate([e.path]),[new m.f(t)]}),this.loadConfigFromDevice$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE).do(function(){return d.deviceRendererService.loadConfigurationFromKeyboard()}),this.loadConfigFromDeviceReply$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE_REPLY).withLatestFrom(this.store.select(g.n)).mergeMap(function(e){var t=e[1],n=e[0].payload;if(!n.success)return[new b.l({type:y.NotificationType.Error,message:n.error})];var o,i=[];try{var r=Object(y.getUserConfigFromDeviceResponse)(n.userConfiguration);i.push(new m.f(r)),t.state&&!t.state.url.startsWith("/device/firmware")&&(o=["/"])}catch(e){d.logService.error("Eeprom user-config parse error:",e),r=(new y.UserConfiguration).fromJsonObject(n.backupConfiguration),i.push(new k.d(!!n.backupConfiguration)),i.push(new m.f(r)),o=["/device/restore-user-configuration"]}try{var l=Object(y.getHardwareConfigFromDeviceResponse)(n.hardwareConfiguration);i.push(new b.g(l))}catch(e){d.logService.error("Eeprom hardware-config parse error:",e),i.push(new b.l({type:y.NotificationType.Error,message:e}))}return i.push(new k.c(n.modules)),o&&d.router.navigate(o),i}),this.saveUserConfigInJsonFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_JSON_FILE).withLatestFrom(this.store.select(g.r)).do(function(e){var t=JSON.stringify(e[1].toJsonObject(),null,2),n=new Blob([t],{type:"text/plain"});Object(s.saveAs)(n,"UserConfiguration.json")}),this.saveUserConfigInBinFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_BIN_FILE).withLatestFrom(this.store.select(g.r)).do(function(e){var t=e[1],n=new y.UhkBuffer;t.toBinary(n);var o=new Blob([n.getBufferContent()]);Object(s.saveAs)(o,"UserConfiguration.bin")}),this.loadUserConfigurationFromFile$=this.actions$.ofType(m.a.LOAD_USER_CONFIGURATION_FROM_FILE).map(function(e){return e.payload}).map(function(t){try{var n=new y.UserConfiguration;if(t.filename.endsWith(".bin"))n.fromBinary(y.UhkBuffer.fromArray(t.data));else{var o=new e(t.data).toString();n.fromJsonObject(JSON.parse(o))}return n.userConfigMajorVersion?new m.b(n):new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}catch(e){return new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}})}return t.prototype.getUserConfiguration=function(){var e,t=this.dataStorageRepository.getConfig();return t&&t.userConfigMajorVersion===this.defaultUserConfigurationService.getDefault().userConfigMajorVersion&&(e=(new y.UserConfiguration).fromJsonObject(t)),e||(e=this.defaultUserConfigurationService.getDefault()),e},Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",r.Observable)],t.prototype,"loadUserConfig$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",r.Observable)],t.prototype,"saveUserConfig$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",r.Observable)],t.prototype,"undoUserConfig$",void 0),Object(o.__decorate)([Object(i.b)({dispatch:!1}),Object(o.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDevice$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDeviceReply$",void 0),Object(o.__decorate)([Object(i.b)({dispatch:!1}),Object(o.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInJsonFile$",void 0),Object(o.__decorate)([Object(i.b)({dispatch:!1}),Object(o.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInBinFile$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",Object)],t.prototype,"loadUserConfigurationFromFile$",void 0),t}()}).call(t,n("63KW").Buffer)},Nkju:function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},ODby:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("8GmM");t.observeOn=function(e,t){return void 0===t&&(t=0),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.scheduler,this.delay))},e}();t.ObserveOnOperator=l;var s=function(e){function t(t,n,o){void 0===o&&(o=0),e.call(this,t),this.scheduler=n,this.delay=o}return o(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new a(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(r.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(r.Notification.createError(e))},t.prototype._complete=function(){this.scheduleMessage(r.Notification.createComplete())},t}(i.Subscriber);t.ObserveOnSubscriber=s;var a=function(e,t){this.notification=e,this.destination=t};t.ObserveOnMessage=a},OE0E:function(e,t,n){"use strict";n.d(t,"a",function(){return Fe}),n.d(t,"j",function(){return Ue}),n.d(t,"h",function(){return v}),n.d(t,"i",function(){return w}),n.d(t,"b",function(){return y}),n.d(t,"d",function(){return M}),n.d(t,"e",function(){return E}),n.d(t,"f",function(){return ne}),n.d(t,"g",function(){return oe}),n.d(t,"c",function(){return Me}),n.d(t,"s",function(){return s}),n.d(t,"l",function(){return F}),n.d(t,"k",function(){return ee}),n.d(t,"n",function(){return ie}),n.d(t,"o",function(){return se}),n.d(t,"m",function(){return R}),n.d(t,"p",function(){return I}),n.d(t,"q",function(){return Ve}),n.d(t,"t",function(){return S}),n.d(t,"r",function(){return Ee});var o=n("Xjw4"),i=n("WT6e"),r=n("TToO"),l=null;function s(){return l}var a,u={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},c={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},d={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};i["\u0275global"].Node&&(a=i["\u0275global"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var p,f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,l||(l=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var o;(o=e)[t].apply(o,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return u},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return a.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),o=0;o0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,o=0;o0;s||(s=e[l]=[]);var u=Z(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:r});else{for(var c=!1,d=0;d-1},t}(P),re=["alt","control","meta","shift"],le={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},se=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,o){var i=t.parseEventName(n),r=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(e,i.domEventName,r)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;var i=t._normalizeKey(n.pop()),r="";if(re.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r+=e+".")}),r+=i,0!=n.length||0===i.length)return null;var l={};return l.domEventName=o,l.fullKey=r,l},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),re.forEach(function(o){o!=n&&(0,le[o])(e)&&(t+=o+".")}),t+=n},t.eventCallback=function(e,n,o){return function(i){t.getEventFullKey(i)===e&&o.runGuarded(function(){return n(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(P),ae=function(){function e(e,t){this.defaultDoc=e,this.DOM=t;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var o=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(o,this.inertBodyElement),this.DOM.appendChild(n,o)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

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

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

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

\n

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

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

The secondary role can be any layer or modifier.

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

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

\n

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

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

The secondary role can be any layer or modifier.

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

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

\n

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

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

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

\n

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

","true","330"),e(t,26,0,n.leftModifiers),e(t,32,0,n.rightModifiers),e(t,38,0,n.secondaryRoleEnabled)},function(e,t){e(t,8,0,i["\u0275nov"](t,10).placement)})}var Eo=function(e){function t(){var t=e.call(this)||this;return t.toggleData=[{id:"active",text:"Activate"},{id:"toggle",text:"Toggle"}],t.layerData=[{id:0,text:"Mod"},{id:1,text:"Fn"},{id:2,text:"Mouse"}],t.toggle="active",t.layer=qe.LayerName.mod,t}return Object(wo.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.defaultKeyAction&&this.fromKeyAction(this.defaultKeyAction),e.currentLayer&&(this.isNotBase=this.currentLayer>0),this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!this.isNotBase},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.SwitchLayerAction))return!1;var t=e;switch(t.switchLayerMode){case qe.SwitchLayerMode.holdAndDoubleTapToggle:this.toggle="active",this.lockLayerWhenDoubleTapping=!0;break;case qe.SwitchLayerMode.hold:this.toggle="active",this.lockLayerWhenDoubleTapping=!1;break;default:this.toggle="toggle",this.lockLayerWhenDoubleTapping=!1}return this.layer=t.layer,!0},t.prototype.toKeyAction=function(){var e=new qe.SwitchLayerAction;if(e.switchLayerMode="toggle"===this.toggle?qe.SwitchLayerMode.toggle:!this.allowLayerDoubleTap||this.lockLayerWhenDoubleTapping?qe.SwitchLayerMode.holdAndDoubleTapToggle:qe.SwitchLayerMode.hold,e.layer=this.layer,!this.keyActionValid())throw new Error("KeyAction is invalid!");return e},t.prototype.toggleChanged=function(e){this.toggle=e},t.prototype.layerChanged=function(e){this.layer=+e},t}(Ao),Po=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 -5px}.no-base[_nghost-%COMP%]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%] > select[_ngcontent-%COMP%], [_nghost-%COMP%] > span[_ngcontent-%COMP%]{margin:0 5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}select[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #aaa;border-radius:4px;padding:4px 20px 4px 8px}"]],data:{}});function Io(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),i["\u0275did"](1,147456,null,0,je.NgSelectOption,[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),i["\u0275did"](2,147456,null,0,je["\u0275q"],[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),i["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.toggle===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Ro(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),i["\u0275did"](1,147456,null,0,je.NgSelectOption,[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),i["\u0275did"](2,147456,null,0,je["\u0275q"],[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),i["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.layer===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Do(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["layer by tapping this key."]))],null,null)}function No(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["layer by holding this key."]))],null,null)}function jo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var o=!0,r=e.component;return"change"===t&&(o=!1!==i["\u0275nov"](e,7).onChange(n.target.checked)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,7).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.lockLayerWhenDoubleTapping=n)&&o),o},null,null)),i["\u0275did"](7,16384,null,0,je.CheckboxControlValueAccessor,[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),i["\u0275did"](9,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](11,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" Lock layer when double tapping this key.\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.component.lockLayerWhenDoubleTapping)},function(e,t){e(t,6,0,i["\u0275nov"](t,11).ngClassUntouched,i["\u0275nov"](t,11).ngClassTouched,i["\u0275nov"](t,11).ngClassPristine,i["\u0275nov"](t,11).ngClassDirty,i["\u0275nov"](t,11).ngClassValid,i["\u0275nov"](t,11).ngClassInvalid,i["\u0275nov"](t,11).ngClassPending)})}function Lo(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,32,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,26,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.toggleChanged(n.target.value)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Io)),i["\u0275did"](8,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["the"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.layerChanged(n.target.value)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ro)),i["\u0275did"](17,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,8,"span",[],null,null,null,null,null)),i["\u0275did"](21,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Do)),i["\u0275did"](24,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,No)),i["\u0275did"](27,16384,null,0,d.p,[i.ViewContainerRef,i.TemplateRef,d.n],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,jo)),i["\u0275did"](32,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.toggleData),e(t,17,0,n.layerData),e(t,21,0,n.toggle),e(t,24,0,"toggle"),e(t,32,0,"active"===n.toggle&&n.allowLayerDoubleTap)},null)}function Uo(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Layer switching is only possible from the base layer. "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function Vo(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,1,null,Lo)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Uo)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,!n.isNotBase),e(t,4,0,n.isNotBase)},null)}var Fo=function(e){function t(){var t=e.call(this)||this;return t.MouseActionParam=qe.MouseActionParam,t.selectedPageIndex=0,t.pages=["Move","Scroll","Click","Speed"],t}return Object(wo.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(){return void 0!==this.mouseActionParam},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.MouseAction))return!1;var t=e;switch(this.mouseActionParam=t.mouseAction,t.mouseAction===qe.MouseActionParam.moveUp&&(this.selectedPageIndex=0),t.mouseAction){case qe.MouseActionParam.moveDown:case qe.MouseActionParam.moveUp:case qe.MouseActionParam.moveLeft:case qe.MouseActionParam.moveRight:this.selectedPageIndex=0;break;case qe.MouseActionParam.scrollDown:case qe.MouseActionParam.scrollUp:case qe.MouseActionParam.scrollLeft:case qe.MouseActionParam.scrollRight:this.selectedPageIndex=1;break;case qe.MouseActionParam.leftClick:case qe.MouseActionParam.middleClick:case qe.MouseActionParam.rightClick:this.selectedPageIndex=2;break;case qe.MouseActionParam.decelerate:case qe.MouseActionParam.accelerate:this.selectedPageIndex=3;break;default:return!1}return!0},t.prototype.toKeyAction=function(){var e=new qe.MouseAction;return e.mouseAction=this.mouseActionParam,e},t.prototype.changePage=function(e){e<-1||e>3?console.error("Invalid index error: "+e):(this.selectedPageIndex=e,this.mouseActionParam=void 0,this.validAction.emit(!1))},t.prototype.setMouseActionParam=function(e){this.mouseActionParam=e,this.validAction.emit(!0)},t}(Ao),Ko=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.popover-content[_nghost-%COMP%]{padding:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{border-right:1px solid #ccc}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:'';display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}[_nghost-%COMP%] .details[_ngcontent-%COMP%] .btn-placeholder[_ngcontent-%COMP%]{visibility:hidden}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%]{font-size:25px;line-height:22px;padding-top:4px;padding-bottom:4px}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;display:block;text-align:center}"]],data:{}});function Bo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.changePage(e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](3,null,[" ",""])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,0,0,t.component.selectedPageIndex===t.context.index),e(t,3,0,t.context.$implicit)})}function Ho(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--move text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveUp)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-arrow-up"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveLeft)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-arrow-left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveRight)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-arrow-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveDown)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-arrow-down"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.moveUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.moveLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.moveRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.moveDown)})}function Wo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--scroll text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollUp)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-angle-double-up"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollLeft)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-angle-double-left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollRight)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-angle-double-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollDown)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-angle-double-down"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.scrollUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.scrollLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.scrollRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.scrollDown)})}function qo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"div",[["class","mouse__config mouse__config--click"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.leftClick)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Left"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.middleClick)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Middle"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.rightClick)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Right"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.leftClick),e(t,7,0,n.mouseActionParam===n.MouseActionParam.middleClick),e(t,10,0,n.mouseActionParam===n.MouseActionParam.rightClick)})}function zo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,22,"div",[["class","mouse__config mouse__config--speed text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,4,"div",[["class","help-text--mouse-speed text-left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Press this key along with mouse movement/scrolling to accelerate/decelerate its speed."])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,13,"div",[["class","btn-group btn-group-lg"],["role","group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.decelerate)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n -\n "])),(e()(),i["\u0275eld"](12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Decelerate"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.accelerate)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n +\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Accelerate"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,10,0,n.mouseActionParam===n.MouseActionParam.decelerate),e(t,16,0,n.mouseActionParam===n.MouseActionParam.accelerate)})}function $o(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function Go(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","mouse-action col-sm-4"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,4,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Bo)),i["\u0275did"](5,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](9,0,null,null,17,"div",[["class","details col-sm-8"]],null,null,null,null,null)),i["\u0275did"](10,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ho)),i["\u0275did"](13,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Wo)),i["\u0275did"](16,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,qo)),i["\u0275did"](19,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,zo)),i["\u0275did"](22,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,$o)),i["\u0275did"](25,16384,null,0,d.p,[i.ViewContainerRef,i.TemplateRef,d.n],null,null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,n.pages),e(t,10,0,n.selectedPageIndex),e(t,13,0,0),e(t,16,0,1),e(t,19,0,2),e(t,22,0,3)},null)}var Yo=["[_nghost-%COMP%]{display:block;width:100%}.action--editor[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:0}.nav[_ngcontent-%COMP%]{padding-bottom:1rem}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{z-index:2}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:'';display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}.editor__tab-links[_ngcontent-%COMP%], .editor__tabs[_ngcontent-%COMP%]{padding-top:1rem}.editor__tabs[_ngcontent-%COMP%]{border-left:1px solid #ddd;margin-left:-1.6rem;padding-left:3rem}.editor__actions[_ngcontent-%COMP%]{float:right}.editor__actions-container[_ngcontent-%COMP%]{background:#f5f5f5;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:1rem 1.5rem}.flex-button-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-button[_ngcontent-%COMP%]{-ms-flex-item-align:end;align-self:flex-end}"],Qo=function(){return function(){var e=this;this.valid=new i.EventEmitter,this.validate=function(){return e.valid.emit(e.isMacroValid())}}}(),Jo=/[^\x00-\x7F]/g,Zo=function(e){function t(t){var n=e.call(this)||this;return n.renderer=t,n.isMacroValid=function(){return!!n.input.nativeElement.value},n.init=function(){n.macroAction||(n.macroAction=new qe.TextMacroAction)},n}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.init()},t.prototype.ngAfterViewInit=function(){this.renderer.invokeElementMethod(this.input.nativeElement,"focus")},t.prototype.onTextChange=function(){this.init(),this.macroAction.text=this.input.nativeElement.value},t.prototype.onKeydown=function(e){new RegExp(Jo).test(e.key)&&(e.preventDefault(),e.stopPropagation())},t.prototype.onPaste=function(e){e.preventDefault();var t=this.input.nativeElement,n=e.clipboardData.getData("text/plain"),o=n&&n.replace(Jo,"")||"";if(0!==o.length){var i=t.value||"",r=i.substr(0,t.selectionStart),l=t.selectionEnd,s=i.substr(t.selectionEnd);t.value=r+o+s,t.selectionStart=t.selectionEnd=l+o.length-(0===l?0:1),this.macroAction.text=t.value}},t}(Qo),Xo=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro__text-input[_ngcontent-%COMP%]{width:100%;min-height:10rem;margin-bottom:1rem}"]],data:{}});function ei(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{input:0}),(e()(),i["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Type text"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,[[1,0],["macroTextInput",1]],null,1,"textarea",[["class","macro__text-input"],["name","macro-text"]],null,[[null,"keydown"],[null,"change"],[null,"keyup"],[null,"paste"]],function(e,t,n){var o=!0,i=e.component;return"keydown"===t&&(o=!1!==i.onKeydown(n)&&o),"change"===t&&(o=!1!==i.onTextChange()&&o),"keyup"===t&&(o=!1!==i.validate()&&o),"paste"===t&&(o=!1!==i.onPaste(n)&&o),o},null,null)),(e()(),i["\u0275ted"](7,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,7,0,null==n.macroAction?null:n.macroAction.text)})}var ti=function(e){function t(){var t=e.call(this)||this;return t.keymapOptions=[],t}return Object(wo.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.keymaps&&(this.keymapOptions=this.keymaps.map(function(e){return{id:e.abbreviation,text:e.name}}),this.keymaps.length>0&&(this.selectedKeymap=this.keymaps[0])),this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedKeymap="-1"===e.value?void 0:this.keymaps.find(function(t){return t.abbreviation===e.value})},t.prototype.keyActionValid=function(){return!!this.selectedKeymap},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.SwitchKeymapAction))return!1;var t=e;this.selectedKeymap=this.keymaps.find(function(e){return e.abbreviation===t.keymapAbbreviation})},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected keymap!");var e=new qe.SwitchKeymapAction;return e.keymapAbbreviation=this.selectedKeymap.abbreviation,e},t}(Ao),ni=function(e){function t(t){var n=e.call(this)||this;return n.subscription=t.let(Object(xn.d)()).subscribe(function(e){return n.macros=e}),n.macroOptions=[],n.selectedMacroIndex=0,n}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroOptions=this.macros.map(function(e,t){return{id:t.toString(),text:e.name}})},t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedMacroIndex=+e.value},t.prototype.keyActionValid=function(){return this.selectedMacroIndex>=0},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.PlayMacroAction))return!1;var t=e;return this.selectedMacroIndex=this.macros.findIndex(function(e){return t.macroId===e.id}),!0},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected macro!");var e=new qe.PlayMacroAction;return e.macroId=this.macros[this.selectedMacroIndex].id,e},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}(Ao),oi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!0},t.prototype.fromKeyAction=function(){return!1},t.prototype.toKeyAction=function(){},t}(Ao),ii=function(e){return e[e.Tap=0]="Tap",e[e.Press=1]="Press",e[e.Release=2]="Release",e}({}),ri=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TabName=ii,t.isMacroValid=function(){var e=t.getKeyMacroAction();return!!e.scancode||!!e.modifierMask},t}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new qe.KeyMacroAction),this.defaultKeyAction=new qe.KeystrokeAction(this.macroAction),this.selectTab(this.getTabName(this.macroAction))},t.prototype.selectTab=function(e){this.activeTab=e,this.validate()},t.prototype.getTabName=function(e){return e.action?e.action===qe.MacroKeySubAction.press?ii.Press:e.action===qe.MacroKeySubAction.release?ii.Release:void 0:ii.Tap},t.prototype.getActionType=function(e){switch(e){case ii.Tap:return qe.MacroKeySubAction.tap;case ii.Press:return qe.MacroKeySubAction.press;case ii.Release:return qe.MacroKeySubAction.release;default:throw new Error("Invalid tab type")}},t.prototype.getKeyMacroAction=function(){var e=new qe.KeyMacroAction(this.keypressTab.toKeyAction());return e.action=this.getActionType(this.activeTab),e},t}(Qo),li=i["\u0275crt"]({encapsulation:0,styles:[Yo,[".macro-key__container[_ngcontent-%COMP%]{padding:0}.macro-key__types[_ngcontent-%COMP%]{margin-left:0;padding:0 0 1rem}.macro-key__action[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.macro-key__action-container[_ngcontent-%COMP%]{margin-top:-1rem;padding-top:1rem;border-left:1px solid #ddd}.fa[_ngcontent-%COMP%]{min-width:14px}"]],data:{}});function si(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Tap key"]))],null,null)}function ai(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Press key"]))],null,null)}function ui(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release key"]))],null,null)}function ci(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{selectedTab:0}),i["\u0275qud"](402653184,2,{keypressTab:0}),(e()(),i["\u0275eld"](2,0,null,null,58,"div",[["class","col-xs-12 macro-key__container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,37,"div",[["class","col-xs-3 macro-key__types"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,34,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,[["keyMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Tap)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Tap key"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,[["keyHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Press)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Press key"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,[["keyRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Release)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release key"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](43,0,null,null,16,"div",[["class","col-xs-9 macro-key__action-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](45,0,null,null,13,"div",[["class","macro-key__action"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,si)),i["\u0275did"](48,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ai)),i["\u0275did"](51,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ui)),i["\u0275did"](54,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,0,null,null,1,"keypress-tab",[],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==e.component.validate()&&o),o},Mo,Co)),i["\u0275did"](57,573440,[[2,4],["keypressTab",4]],0,To,[Bt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,48,0,n.activeTab===n.TabName.Tap),e(t,51,0,n.activeTab===n.TabName.Press),e(t,54,0,n.activeTab===n.TabName.Release),e(t,57,0,n.defaultKeyAction,!1)},function(e,t){var n=t.component;e(t,8,0,n.activeTab===n.TabName.Tap),e(t,19,0,n.activeTab===n.TabName.Press),e(t,30,0,n.activeTab===n.TabName.Release)})}var di=function(e){return e[e.Move=0]="Move",e[e.Scroll=1]="Scroll",e[e.Click=2]="Click",e[e.Hold=3]="Hold",e[e.Release=4]="Release",e}({}),pi=function(e){function t(){var t=e.call(this)||this;return t.TabName=di,t.isMacroValid=function(){switch(t.macroAction.constructor){case qe.MoveMouseMacroAction:case qe.ScrollMouseMacroAction:var e=t.macroAction,n=e.x,o=e.y;return void 0!==n&&null!==n&&void 0!==o&&null!==o&&(0!==n||0!==o)&&n<1e4&&n>-1e4&&o<1e4&&o>-1e4;case qe.MouseButtonMacroAction:return!!t.macroAction.mouseButtonsMask;default:return!0}},t.buttonLabels=["Left","Middle","Right"],t.selectedButtons=Array(t.buttonLabels.length).fill(!1),t}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new qe.MouseButtonMacroAction,this.macroAction.action=qe.MacroMouseSubAction.click);var e=this.getTabName(this.macroAction);this.selectTab(e),[di.Click,di.Hold,di.Release].includes(this.activeTab)&&(this.selectedButtons=this.macroAction.getMouseButtons())},t.prototype.ngOnChanges=function(){this.ngOnInit()},t.prototype.selectTab=function(e){if(this.activeTab=e,e!==this.getTabName(this.macroAction)){switch(this.selectedButtons=[],e){case di.Scroll:this.macroAction=new qe.ScrollMouseMacroAction;break;case di.Move:this.macroAction=new qe.MoveMouseMacroAction;break;default:this.macroAction=new qe.MouseButtonMacroAction,this.macroAction.action=this.getAction(e)}this.validate()}},t.prototype.setMouseClick=function(e){this.selectedButtons[e]=!this.selectedButtons[e],this.macroAction.setMouseButtons(this.selectedButtons),this.validate()},t.prototype.hasButton=function(e){return this.selectedButtons[e]},t.prototype.getAction=function(e){switch(e){case di.Click:return qe.MacroMouseSubAction.click;case di.Hold:return qe.MacroMouseSubAction.hold;case di.Release:return qe.MacroMouseSubAction.release;default:throw new Error("Invalid tab name: "+di[e])}},t.prototype.getTabName=function(e){if(e instanceof qe.MouseButtonMacroAction){if(!e.action||e.isOnlyClickAction())return di.Click;if(e.isOnlyHoldAction())return di.Hold;if(e.isOnlyReleaseAction())return di.Release}else{if(e instanceof qe.MoveMouseMacroAction)return di.Move;if(e instanceof qe.ScrollMouseMacroAction)return di.Scroll}return di.Move},t}(Qo),fi=i["\u0275crt"]({encapsulation:0,styles:[Yo,[".macro-mouse__container[_ngcontent-%COMP%]{padding:0}.macro-mouse__types[_ngcontent-%COMP%]{border-right:1px solid #ddd;border-left:0;margin-top:-1rem;margin-left:0;padding:1rem 0}.macro-mouse__actions[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.fa[_ngcontent-%COMP%]{min-width:14px}.form-horizontal[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin:0 0 .5rem}.form-horizontal[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin-right:.5rem}.form-horizontal[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{display:inline-block;width:10ch}"]],data:{}});function hi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Move mouse pointer"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,1,"label",[["for","move-mouse-x"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["X:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,13)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,13).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,14).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.x=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](13,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](14,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](15,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](18,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](20,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"label",[["for","move-mouse-y"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Y:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,29)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,29).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,30).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.y=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](29,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](30,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](31,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](34,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](36,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,i["\u0275nov"](t,15).maxlength?i["\u0275nov"](t,15).maxlength:null,i["\u0275nov"](t,20).ngClassUntouched,i["\u0275nov"](t,20).ngClassTouched,i["\u0275nov"](t,20).ngClassPristine,i["\u0275nov"](t,20).ngClassDirty,i["\u0275nov"](t,20).ngClassValid,i["\u0275nov"](t,20).ngClassInvalid,i["\u0275nov"](t,20).ngClassPending),e(t,28,0,i["\u0275nov"](t,31).maxlength?i["\u0275nov"](t,31).maxlength:null,i["\u0275nov"](t,36).ngClassUntouched,i["\u0275nov"](t,36).ngClassTouched,i["\u0275nov"](t,36).ngClassPristine,i["\u0275nov"](t,36).ngClassDirty,i["\u0275nov"](t,36).ngClassValid,i["\u0275nov"](t,36).ngClassInvalid,i["\u0275nov"](t,36).ngClassPending)})}function yi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Scroll with mouse"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,1,"label",[["for","scroll-mouse-x"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["X:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,13)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,13).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,14).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.x=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](13,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](14,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](15,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](18,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](20,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"label",[["for","scroll-mouse-y"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Y:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,29)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,29).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,30).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.y=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](29,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](30,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](31,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](34,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](36,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,i["\u0275nov"](t,15).maxlength?i["\u0275nov"](t,15).maxlength:null,i["\u0275nov"](t,20).ngClassUntouched,i["\u0275nov"](t,20).ngClassTouched,i["\u0275nov"](t,20).ngClassPristine,i["\u0275nov"](t,20).ngClassDirty,i["\u0275nov"](t,20).ngClassValid,i["\u0275nov"](t,20).ngClassInvalid,i["\u0275nov"](t,20).ngClassPending),e(t,28,0,i["\u0275nov"](t,31).maxlength?i["\u0275nov"](t,31).maxlength:null,i["\u0275nov"](t,36).ngClassUntouched,i["\u0275nov"](t,36).ngClassTouched,i["\u0275nov"](t,36).ngClassPristine,i["\u0275nov"](t,36).ngClassDirty,i["\u0275nov"](t,36).ngClassValid,i["\u0275nov"](t,36).ngClassInvalid,i["\u0275nov"](t,36).ngClassPending)})}function mi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Click mouse button"]))],null,null)}function gi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Hold mouse button"]))],null,null)}function vi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release mouse button"]))],null,null)}function bi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.setMouseClick(e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["","\n "]))],null,function(e,t){e(t,0,0,t.component.hasButton(t.context.index)),e(t,1,0,t.context.$implicit)})}function ki(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[[1,0],["tab",1]],null,16,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,mi)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,gi)),i["\u0275did"](6,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,vi)),i["\u0275did"](9,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,4,"div",[["class","btn-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,bi)),i["\u0275did"](14,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.activeTab===n.TabName.Click),e(t,6,0,n.activeTab===n.TabName.Hold),e(t,9,0,n.activeTab===n.TabName.Release),e(t,14,0,n.buttonLabels)},null)}function _i(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),i["\u0275eld"](1,0,null,null,75,"div",[["class","col-xs-12 macro-mouse__container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,59,"div",[["class","col-xs-3 macro-mouse__types"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,56,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,[["mouseMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Move)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Move pointer"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,[["mouseScroll",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Scroll)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,0,"i",[["class","fa fa-arrows-v"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Scroll"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,[["mouseClick",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Click)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](35,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Click button"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](40,0,[["mouseHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Hold)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](42,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](44,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Hold button"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](51,0,[["mouseRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Release)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](53,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](55,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](57,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release button"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](64,0,null,null,11,"div",[["class","col-xs-9 macro-mouse__actions"]],null,null,null,null,null)),i["\u0275did"](65,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,hi)),i["\u0275did"](68,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,yi)),i["\u0275did"](71,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ki)),i["\u0275did"](74,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,65,0,n.activeTab),e(t,68,0,n.TabName.Move),e(t,71,0,n.TabName.Scroll),e(t,74,0,n.activeTab===n.TabName.Click||n.activeTab===n.TabName.Hold||n.activeTab===n.TabName.Release)},function(e,t){var n=t.component;e(t,7,0,n.activeTab===n.TabName.Move),e(t,18,0,n.activeTab===n.TabName.Scroll),e(t,29,0,n.activeTab===n.TabName.Click),e(t,40,0,n.activeTab===n.TabName.Hold),e(t,51,0,n.activeTab===n.TabName.Release)})}var wi=function(e){function t(){var t=e.call(this)||this;return t.presets=[.1,.5,1,5,10],t.isMacroValid=function(){return 0!==t.macroAction.delay},t}return Object(wo.__extends)(t,e),Object.defineProperty(t.prototype,"delay",{get:function(){return this._delay},set:function(e){this._delay=e,this.validate()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new qe.DelayMacroAction),this.delay=this.macroAction.delay>0?this.macroAction.delay/1e3:.5},t.prototype.setDelay=function(e){this._delay=e,this.macroAction.delay=1e3*this._delay,this.validate()},t}(Qo),Ai=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro-delay__presets[_ngcontent-%COMP%]{margin-top:1rem}.macro-delay__presets[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:.25rem;margin-bottom:.25rem}.form-group[_ngcontent-%COMP%]{margin-bottom:0}.form-control[_ngcontent-%COMP%]{width:16ch;display:inline-block}"]],data:{}});function Ti(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-default"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.setDelay(e.context.$implicit)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["","s\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function Ci(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{input:0}),(e()(),i["\u0275eld"](1,0,null,null,39,"div",[["class","macro-delay"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,4,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Delay"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,12,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,[[1,0],["macroDelayInput",1]],null,6,"input",[["class","form-control"],["max","1000"],["min","0"],["placeholder","Delay amount"],["step","0.1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,19)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,19).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,19)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,19)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,20).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,20).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,20).onTouched()&&o),"ngModelChange"===t&&(o=!1!==r.setDelay(i["\u0275nov"](e,18).value)&&o),o},null,null)),i["\u0275did"](19,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](20,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](22,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](24,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n seconds\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,null,null,10,"div",[["class","row macro-delay__presets"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,7,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Choose a preset"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ti)),i["\u0275did"](37,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,22,0,n.delay),e(t,37,0,n.presets)},function(e,t){e(t,18,0,i["\u0275nov"](t,24).ngClassUntouched,i["\u0275nov"](t,24).ngClassTouched,i["\u0275nov"](t,24).ngClassPristine,i["\u0275nov"](t,24).ngClassDirty,i["\u0275nov"](t,24).ngClassValid,i["\u0275nov"](t,24).ngClassInvalid,i["\u0275nov"](t,24).ngClassPending)})}var xi=function(e){return e[e.Keypress=0]="Keypress",e[e.Text=1]="Text",e[e.Mouse=2]="Mouse",e[e.Delay=3]="Delay",e}({}),Oi=function(){function e(){var e=this;this.save=new i.EventEmitter,this.cancel=new i.EventEmitter,this.TabName=xi,this.isSelectedMacroValid=!1,this.onValid=function(t){return e.isSelectedMacroValid=t}}return e.prototype.ngOnInit=function(){this.updateEditableMacroAction();var e=this.getTabName(this.editableMacroAction);this.activeTab=e},e.prototype.ngOnChanges=function(){this.ngOnInit()},e.prototype.onCancelClick=function(){this.cancel.emit()},e.prototype.onSaveClick=function(){try{var e=this.selectedTab instanceof ri?this.selectedTab.getKeyMacroAction():this.selectedTab.macroAction;this.save.emit(e)}catch(e){console.error(e)}},e.prototype.selectTab=function(e){this.activeTab=e,e===this.getTabName(this.macroAction)?this.updateEditableMacroAction():(this.editableMacroAction=void 0,this.isSelectedMacroValid=!1)},e.prototype.getTabName=function(e){return e instanceof qe.DelayMacroAction?xi.Delay:e instanceof qe.TextMacroAction?xi.Text:e instanceof qe.KeyMacroAction?xi.Keypress:e instanceof qe.MouseButtonMacroAction||e instanceof qe.MoveMouseMacroAction||e instanceof qe.ScrollMouseMacroAction?xi.Mouse:void 0},e.prototype.updateEditableMacroAction=function(){var e=this.macroAction?this.macroAction:new qe.TextMacroAction;this.editableMacroAction=qe.MacroActionHelper.createMacroAction(e)},e}(),Si=i["\u0275crt"]({encapsulation:0,styles:[Yo],data:{}});function Mi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-text-tab",[["class","macro__text"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},ei,Xo)),i["\u0275did"](1,4308992,[[1,4],["tab",4]],0,Zo,[i.Renderer],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Ei(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-key-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},ci,li)),i["\u0275did"](1,114688,[[1,4],["tab",4]],0,ri,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Pi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-mouse-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},_i,fi)),i["\u0275did"](1,638976,[[1,4],["tab",4]],0,pi,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Ii(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-delay-tab",[["class","macro__delay"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},Ci,Ai)),i["\u0275did"](1,114688,[[1,4],["tab",4]],0,wi,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Ri(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),i["\u0275eld"](1,0,null,null,85,"div",[["class","action--editor"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,67,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,48,"div",[["class","col-lg-3 editor__tab-links"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,45,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,[["macroText",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Text)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Type text"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,[["macroKeypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Keypress)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Key action"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,[["macroMouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Mouse)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](35,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](37,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse action"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](42,0,[["macroDelay",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Delay)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](44,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Delay"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](55,0,null,null,14,"div",[["class","col-xs-12 col-lg-9 editor__tabs"]],null,null,null,null,null)),i["\u0275did"](56,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Mi)),i["\u0275did"](59,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ei)),i["\u0275did"](62,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Pi)),i["\u0275did"](65,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ii)),i["\u0275did"](68,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](72,0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](74,0,null,null,10,"div",[["class","col-xs-12 flex-button-wrapper editor__actions-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](76,0,null,null,7,"div",[["class","editor__actions"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](78,0,null,null,1,"button",[["class","btn btn-sm btn-default flex-button"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onCancelClick()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Cancel "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](81,0,null,null,1,"button",[["class","btn btn-sm btn-primary flex-button"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onSaveClick()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Save "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,56,0,n.activeTab),e(t,59,0,n.TabName.Text),e(t,62,0,n.TabName.Keypress),e(t,65,0,n.TabName.Mouse),e(t,68,0,n.TabName.Delay)},function(e,t){var n=t.component;e(t,9,0,n.activeTab===n.TabName.Text),e(t,20,0,n.activeTab===n.TabName.Keypress),e(t,31,0,n.activeTab===n.TabName.Mouse),e(t,42,0,n.activeTab===n.TabName.Delay),e(t,81,0,!n.isSelectedMacroValid)})}var Di=function(){function e(e){this.mapper=e,this.save=new i.EventEmitter,this.cancel=new i.EventEmitter,this.edit=new i.EventEmitter,this.delete=new i.EventEmitter,this.newItem=!1}return e.prototype.ngOnInit=function(){this.updateView(),this.macroAction||(this.editing=!0,this.newItem=!0)},e.prototype.ngOnChanges=function(e){e.macroAction&&this.updateView()},e.prototype.saveEditedAction=function(e){this.macroAction=e,this.editing=!1,this.updateView(),this.save.emit(e)},e.prototype.editAction=function(){this.editable&&!this.editing?(this.editing=!0,this.edit.emit()):this.cancelEdit()},e.prototype.cancelEdit=function(){this.editing=!1,this.cancel.emit()},e.prototype.deleteAction=function(){this.delete.emit()},e.prototype.updateView=function(){if(this.macroAction)if(this.macroAction instanceof qe.DelayMacroAction)this.iconName="clock",this.title="Delay of "+((e=this.macroAction).delay>0?e.delay/1e3:0)+"s";else if(this.macroAction instanceof qe.TextMacroAction){var e=this.macroAction;this.iconName="font",this.title="Write text: "+e.text}else this.macroAction instanceof qe.KeyMacroAction?this.setKeyActionContent(e=this.macroAction):this.macroAction instanceof qe.MouseButtonMacroAction?this.setMouseButtonActionContent(e=this.macroAction):this.macroAction instanceof qe.MoveMouseMacroAction||this.macroAction instanceof qe.ScrollMouseMacroAction?this.setMouseMoveScrollActionContent(this.macroAction):this.title=this.macroAction.constructor.name;else this.title="New macro action"},e.prototype.setKeyActionContent=function(e){if(e.hasScancode()||e.hasModifiers()){if(e.isTapAction()?(this.iconName="hand-pointer",this.title="Tap key: "):e.isPressAction()?(this.iconName="hand-rock",this.title="Press key: "):e.isReleaseAction()&&(this.iconName="hand-paper",this.title="Release key: "),e.hasScancode()){var t=(this.mapper.scanCodeToText(e.scancode,e.type)||["Unknown"]).join(" ");t&&(this.title+=t)}if(e.hasModifiers())for(var n=qe.KeyModifiers.leftCtrl;n<=qe.KeyModifiers.rightGui;n<<=1)e.isModifierActive(n)&&(this.title+=" "+qe.KeyModifiers[n])}else this.title="Invalid keypress"},e.prototype.setMouseMoveScrollActionContent=function(e){var t,n;e instanceof qe.MoveMouseMacroAction?(this.iconName="mouse-pointer",this.title="Move pointer",t=this.macroAction):(this.iconName="mouse-pointer",this.title="Scroll",t=this.macroAction),0!==Math.abs(t.x)&&(this.title+=" by "+Math.abs(t.x)+"px "+(t.x>0?"leftward":"rightward"),n=!0),0!==Math.abs(t.y)&&(this.title+=" "+(n?"and":"by")+" "+Math.abs(t.y)+"px "+(t.y>0?"downward":"upward"))},e.prototype.setMouseButtonActionContent=function(e){e.isOnlyClickAction()?(this.iconName="mouse-pointer",this.title="Click mouse button: "):e.isOnlyHoldAction()?(this.iconName="hand-rock",this.title="Hold mouse button: "):e.isOnlyReleaseAction()&&(this.iconName="hand-paper",this.title="Release mouse button: ");var t=["Left","Middle","Right"],n=[];e.getMouseButtons().forEach(function(e,o){e&&t[o]&&n.push(t[o])}),this.title+=n.join(", ")},e}(),Ni=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow:hidden;display:block}.macro-item[_nghost-%COMP%]:first-of-type .list-group-item[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.macro-item[_nghost-%COMP%]:last-of-type .list-group-item[_ngcontent-%COMP%]{border-bottom:0}.gu-transit[_nghost-%COMP%]{opacity:.2}.gu-transit[_nghost-%COMP%] .list-group-item[_ngcontent-%COMP%]{background:#f5f5f5}.action--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;border:0;border-bottom:1px solid #ddd;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.action--item[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin:0 5px}.action--item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--item[_ngcontent-%COMP%]:first-child{border-radius:0}.action--item.is-editing[_ngcontent-%COMP%]{background:#f5f5f5}.action--item--wrap[_ngcontent-%COMP%]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.action--item--wrap.pointer[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.action--title[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--movable[_ngcontent-%COMP%]:hover{cursor:move}.list-group-item[_ngcontent-%COMP%]{margin-bottom:0}.macro-action-editor__container[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:none;overflow:hidden}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function ji(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical action--movable"]],null,null,null,null,null))],null,null)}function Li(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"icon",[["name","pencil"]],null,null,null,De,we)),i["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"pencil")},null)}function Ui(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"icon",[["name","trash"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.deleteAction()&&o),o},De,we)),i["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"trash")},null)}function Vi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,19,"div",[["class","list-group-item action--item"]],[[2,"is-editing",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ji)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,10,"div",[["class","action--item--wrap"]],[[2,"pointer",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.editAction()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"icon",[],null,null,null,De,we)),i["\u0275did"](8,114688,null,0,_e,[],{name:[0,"name"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"div",[["class","action--title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](11,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Li)),i["\u0275did"](14,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ui)),i["\u0275did"](18,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](21,0,null,null,5,"div",[["class","list-group-item macro-action-editor__container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,2,"macro-action-editor",[["class","macro-action-editor"]],null,[[null,"cancel"],[null,"save"]],function(e,t,n){var o=!0,i=e.component;return"cancel"===t&&(o=!1!==i.cancelEdit()&&o),"save"===t&&(o=!1!==i.saveEditedAction(n)&&o),o},Ri,Si)),i["\u0275did"](24,638976,null,0,Oi,[],{macroAction:[0,"macroAction"]},{save:"save",cancel:"cancel"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.movable),e(t,8,0,n.iconName),e(t,14,0,n.editable&&n.macroAction&&!n.editing),e(t,18,0,n.deletable),e(t,24,0,n.macroAction)},function(e,t){var n=t.component;e(t,0,0,n.editing),e(t,5,0,n.editable),e(t,11,0,n.title),e(t,21,0,n.editable&&n.editing||n.newItem?"active":"inactive")})}var Fi=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] select2[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:200px;max-height:300px;margin:20px 0;overflow-x:hidden;overflow-y:auto;border-radius:4px;border:1px solid #ddd}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%] .list-group[_ngcontent-%COMP%]{margin-bottom:0;border:0}"]],data:{}});function Ki(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" No macros are available to choose from. Create a macro first! "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function Bi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"macro-item",[["class","macro-item"]],null,null,null,Vi,Ni)),i["\u0275did"](1,638976,null,0,Di,[Bt],{macroAction:[0,"macroAction"],editable:[1,"editable"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.context.$implicit,!1)},null)}function Hi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),i["\u0275eld"](2,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can bind macros, but they won't have any effect until firmware support is implemented. We're working on this."])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,7,"div",[["class","macro-selector"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Play macro: "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var o=!0;return"valueChanged"===t&&(o=!1!==e.component.onChange(n)&&o),o},mo,yo)),i["\u0275did"](11,4964352,null,0,ho.Select2Component,[i.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,7,"div",[["class","macro-action-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Bi)),i["\u0275did"](19,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,11,0,n.macroOptions,n.macroOptions[n.selectedMacroIndex].id,"100%"),e(t,19,0,n.macros[n.selectedMacroIndex].macroActions)},null)}function Wi(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,1,null,Ki)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Hi)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,0===n.macroOptions.length),e(t,4,0,n.macroOptions.length>0)},null)}var qi=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] select2[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-top:10px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child img[_ngcontent-%COMP%]{max-height:100%;max-width:100%}.empty[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%;position:relative}"]],data:{}});function zi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" No keymaps are available to choose from. Create a keymap first! "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function $i(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"div",[["class","empty"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/base-layer--blank.svg"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function Gi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],null,null,null,ao,ro)),i["\u0275did"](1,638976,null,0,io,[oo,P.c],{moduleConfig:[0,"moduleConfig"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.selectedKeymap.layers[0].modules)},null)}function Yi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Switch to keymap:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var o=!0;return"valueChanged"===t&&(o=!1!==e.component.onChange(n)&&o),o},mo,yo)),i["\u0275did"](7,4964352,null,0,ho.Select2Component,[i.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,$i)),i["\u0275did"](13,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Gi)),i["\u0275did"](16,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,7,0,n.keymapOptions,(null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)||-1,"100%"),e(t,13,0,!(null!=n.selectedKeymap&&n.selectedKeymap.abbreviation)),e(t,16,0,null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)},null)}function Qi(e){return i["\u0275vid"](2,[(e()(),i["\u0275and"](16777216,null,null,1,null,zi)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Yi)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,0===n.keymapOptions.length),e(t,4,0,n.keymapOptions.length>0)},null)}var Ji=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:2rem 0}"]],data:{}});function Zi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["This key is unassigned and has no functionality."]))],null,null)}var Xi=n("TfWX"),er=(n("qp8k"),n("+pb+"),function(e){return e[e.Keypress=0]="Keypress",e[e.Layer=1]="Layer",e[e.Mouse=2]="Mouse",e[e.Macro=3]="Macro",e[e.Keymap=4]="Keymap",e[e.None=5]="None",e}({})),tr=function(){function e(e){this.cancel=new i.EventEmitter,this.remap=new i.EventEmitter,this.tabName=er,this.leftArrow=!1,this.rightArrow=!1,this.topPosition=0,this.leftPosition=0,this.currentKeymap$=new Xi.BehaviorSubject(void 0),this.animationState="closed",this.keymaps$=e.let(Object(xn.b)()).combineLatest(this.currentKeymap$).map(function(e){var t=e[1];return e[0].filter(function(e){return t.abbreviation!==e.abbreviation})})}return e.prototype.ngOnChanges=function(e){this.keyPosition&&this.wrapPosition&&(e.keyPosition||e.wrapPosition)&&this.calculatePosition(),e.defaultKeyAction&&this.selectTab(this.defaultKeyAction instanceof qe.KeystrokeAction?er.Keypress:this.defaultKeyAction instanceof qe.SwitchLayerAction?er.Layer:this.defaultKeyAction instanceof qe.MouseAction?er.Mouse:this.defaultKeyAction instanceof qe.PlayMacroAction?er.Macro:this.defaultKeyAction instanceof qe.SwitchKeymapAction?er.Keymap:er.None),e.visible&&(e.visible.currentValue?(this.animationState="opened",this.remapOnAllKeymap=!1,this.remapOnAllLayer=!1):this.animationState="closed"),e.currentKeymap&&this.currentKeymap$.next(this.currentKeymap)},e.prototype.onCancelClick=function(){this.cancel.emit(void 0)},e.prototype.onRemapKey=function(){if(this.keyActionValid)try{this.remap.emit({remapOnAllKeymap:this.remapOnAllKeymap,remapOnAllLayer:this.remapOnAllLayer,action:this.selectedTab.toKeyAction()})}catch(e){console.error(e)}},e.prototype.onEscape=function(){this.cancel.emit()},e.prototype.selectTab=function(e){this.activeTab=e},e.prototype.onOverlay=function(){this.cancel.emit(void 0)},e.prototype.calculatePosition=function(){var e=this.wrapPosition.left+265,t=this.popoverHost.nativeElement,n=this.keyPosition.left+this.keyPosition.width/2;this.leftArrow=ne+this.wrapPosition.width,this.leftArrow?n=this.keyPosition.left:this.rightArrow?n=this.keyPosition.left-t.offsetWidth+this.keyPosition.width:n-=t.offsetWidth/2,this.topPosition=this.keyPosition.top+this.keyPosition.height+7+window.scrollY,this.leftPosition=n},e}(),nr=i["\u0275crt"]({encapsulation:0,styles:[[".popover[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;max-width:568px;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.popover.leftArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;left:22px}.popover.rightArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;right:22px;left:auto}.nav-tabs[_ngcontent-%COMP%] > li[_ngcontent-%COMP%], .popover[_ngcontent-%COMP%] > .container-fluid[_ngcontent-%COMP%]{overflow:hidden}.arrowCustom[_ngcontent-%COMP%]{position:absolute;top:-16px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:41px;height:16px}.arrowCustom[_ngcontent-%COMP%]:before{content:'';width:0;height:0;border-left:21px solid transparent;border-right:21px solid transparent;border-bottom:17px solid rgba(0,0,0,.2);display:block;position:absolute;top:-1px}.arrowCustom[_ngcontent-%COMP%]:after{content:'';width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:16px solid #f7f7f7;display:block;position:absolute;top:0}.popover-action[_ngcontent-%COMP%]{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-top:1px solid #ebebeb;border-radius:0 0 5px 5px}.popover-title.menu-tabs[_ngcontent-%COMP%]{padding:.5rem .5rem 0;display:block}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%]{position:relative;top:1px;display:-webkit-box;display:-ms-flexbox;display:flex}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.25em}.popover-content[_ngcontent-%COMP%]{padding:10px 24px}.popover-overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:0;top:0;left:0;z-index:1050;background:0 0;-webkit-transition:background .2s ease-out,height 0s .2s linear;transition:background .2s ease-out,height 0s .2s linear}.popover-overlay.display[_ngcontent-%COMP%]{height:100%;background:rgba(0,0,0,.2);-webkit-transition:background .2s ease-out;transition:background .2s ease-out}.select2-item[_ngcontent-%COMP%]{position:relative;font-size:1.5rem}.select2-item.keymap-name--wrapper[_ngcontent-%COMP%]{padding-left:50px}.select2-item[_ngcontent-%COMP%] .layout-segment-code[_ngcontent-%COMP%]{height:2rem;position:absolute;left:0;top:50%;margin-top:-1rem}.popover-action-form[_ngcontent-%COMP%]{margin-top:4px}.popover-action-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:5px}"]],data:{animation:[{type:7,name:"popover",definitions:[{type:0,name:"closed",styles:{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0},offset:null},options:void 0},{type:0,name:"opened",styles:{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1},offset:null},options:void 0},{type:1,expr:"opened => closed",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1,offset:0},offset:null},{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null},{type:1,expr:"closed => opened",animation:[{type:6,styles:{visibility:"visible"},offset:null},{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(30px)",opacity:0,offset:0},offset:null},{type:6,styles:{transform:"translateY(0)",opacity:1,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null}],options:{}}]}});function or(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"keypress-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Mo,Co)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,To,[Bt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction,!0)},null)}function ir(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"layer-tab",[["class","popover-content"]],[[2,"no-base",null]],[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Vo,Po)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,Eo,[],{defaultKeyAction:[0,"defaultKeyAction"],currentLayer:[1,"currentLayer"],allowLayerDoubleTap:[2,"allowLayerDoubleTap"]},{validAction:"validAction"})],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,n.currentLayer,n.allowLayerDoubleTap)},function(e,t){e(t,0,0,i["\u0275nov"](t,1).isNotBase)})}function rr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"mouse-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Go,Ko)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,Fo,[],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function lr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Wi,Fi)),i["\u0275did"](1,770048,[[1,4],["tab",4]],0,ni,[s.m],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function sr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"keymap-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Qi,qi)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,ti,[],{defaultKeyAction:[0,"defaultKeyAction"],keymaps:[1,"keymaps"]},{validAction:"validAction"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,i["\u0275unv"](t,1,1,i["\u0275nov"](t,2).transform(n.keymaps$)))},null)}function ar(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"none-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Zi,Ji)),i["\u0275did"](1,114688,[[1,4],["tab",4]],0,oi,[],null,{validAction:"validAction"})],function(e,t){e(t,1,0)},null)}function ur(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{selectedTab:0}),i["\u0275qud"](402653184,2,{popoverHost:0}),(e()(),i["\u0275eld"](2,0,[[2,0],["popover",1]],null,151,"div",[["class","popover"]],[[24,"@popover",0],[4,"top","px"],[4,"left","px"]],null,null,null,null)),i["\u0275did"](3,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](4,{leftArrow:0,rightArrow:1}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"div",[["class","arrowCustom"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,70,"div",[["class","popover-title menu-tabs"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,67,"ul",[["class","nav nav-tabs popover-menu"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,[["keypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Keypress)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Keypress"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,[["layer",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Layer)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-clone"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Layer"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,[["mouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Mouse)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](38,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](40,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](45,0,[["macro",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Macro)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](47,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](49,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](51,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Macro"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,0,[["keymap",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Keymap)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](58,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](60,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](62,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Keymap"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](67,0,[["none",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.None)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](69,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](71,0,null,null,0,"i",[["class","fa fa-ban"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](73,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["None"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](80,0,null,null,20,"div",[],null,null,null,null,null)),i["\u0275did"](81,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,or)),i["\u0275did"](84,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ir)),i["\u0275did"](87,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,rr)),i["\u0275did"](90,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,lr)),i["\u0275did"](93,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,sr)),i["\u0275did"](96,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ar)),i["\u0275did"](99,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](102,0,null,null,50,"div",[["class","popover-action"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](104,0,null,null,38,"form",[["class","form-inline d-inline-block popover-action-form"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(e,t,n){var o=!0;return"submit"===t&&(o=!1!==i["\u0275nov"](e,106).onSubmit(n)&&o),"reset"===t&&(o=!1!==i["\u0275nov"](e,106).onReset()&&o),o},null,null)),i["\u0275did"](105,16384,null,0,je["\u0275bf"],[],null,null),i["\u0275did"](106,4210688,null,0,je.NgForm,[[8,null],[8,null]],null,null),i["\u0275prd"](2048,null,je.ControlContainer,null,[je.NgForm]),i["\u0275did"](108,16384,null,0,je.NgControlStatusGroup,[je.ControlContainer],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](110,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](112,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](114,0,null,null,5,"input",[["name","remapOnAllKeymap"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var o=!0,r=e.component;return"change"===t&&(o=!1!==i["\u0275nov"](e,115).onChange(n.target.checked)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,115).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.remapOnAllKeymap=n)&&o),o},null,null)),i["\u0275did"](115,16384,null,0,je.CheckboxControlValueAccessor,[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),i["\u0275did"](117,671744,null,0,je.NgModel,[[2,je.ControlContainer],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](119,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" Remap on all keymaps\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](123,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](125,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](127,0,null,null,5,"input",[["name","remapOnAllLayer"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var o=!0,r=e.component;return"change"===t&&(o=!1!==i["\u0275nov"](e,128).onChange(n.target.checked)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,128).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.remapOnAllLayer=n)&&o),o},null,null)),i["\u0275did"](128,16384,null,0,je.CheckboxControlValueAccessor,[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),i["\u0275did"](130,671744,null,0,je.NgModel,[[2,je.ControlContainer],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](132,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" Remap on all layers\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](136,0,null,null,5,"div",[["class","d-inline-block"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](138,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","525"],["name","question-circle"],["title","
    \n
  • Default behavior: Remap the key on the the current layer of the current keymap.
  • \n
  • Remap on all keymaps: Remap key on the current layer of all keymaps.
  • \n
  • Remap on all layers: Remap key on all layers of the current keymap.
  • \n
  • Remap on all keymaps + Remap on all layers: Remap key on all layers of all keymaps.
  • \n
"]],[[1,"data-placement",0]],null,null,De,we)),i["\u0275did"](139,114688,null,0,_e,[],{name:[0,"name"]},null),i["\u0275did"](140,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](144,0,null,null,7,"div",[["class","d-inline-block pull-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](146,0,null,null,1,"button",[["class","btn btn-sm btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onCancelClick()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Cancel"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](149,0,null,null,1,"button",[["class","btn btn-sm btn-primary"],["type","button"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onRemapKey()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Remap Key\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](155,0,null,null,0,"div",[["class","popover-overlay"]],[[2,"display",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onOverlay()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"popover",e(t,4,0,n.leftArrow,n.rightArrow)),e(t,81,0,n.activeTab),e(t,84,0,n.tabName.Keypress),e(t,87,0,n.tabName.Layer),e(t,90,0,n.tabName.Mouse),e(t,93,0,n.tabName.Macro),e(t,96,0,n.tabName.Keymap),e(t,99,0,n.tabName.None),e(t,117,0,"remapOnAllKeymap",n.remapOnAllKeymap),e(t,130,0,"remapOnAllLayer",n.remapOnAllLayer),e(t,139,0,"question-circle"),e(t,140,0,"
    \n
  • Default behavior: Remap the key on the the current layer of the current keymap.
  • \n
  • Remap on all keymaps: Remap key on the current layer of all keymaps.
  • \n
  • Remap on all layers: Remap key on all layers of the current keymap.
  • \n
  • Remap on all keymaps + Remap on all layers: Remap key on all layers of all keymaps.
  • \n
","true","525")},function(e,t){var n=t.component;e(t,2,0,n.animationState,n.topPosition,n.leftPosition),e(t,12,0,n.activeTab===n.tabName.Keypress),e(t,23,0,n.activeTab===n.tabName.Layer),e(t,34,0,n.activeTab===n.tabName.Mouse),e(t,45,0,n.activeTab===n.tabName.Macro),e(t,56,0,n.activeTab===n.tabName.Keymap),e(t,67,0,n.activeTab===n.tabName.None),e(t,104,0,i["\u0275nov"](t,108).ngClassUntouched,i["\u0275nov"](t,108).ngClassTouched,i["\u0275nov"](t,108).ngClassPristine,i["\u0275nov"](t,108).ngClassDirty,i["\u0275nov"](t,108).ngClassValid,i["\u0275nov"](t,108).ngClassInvalid,i["\u0275nov"](t,108).ngClassPending),e(t,114,0,i["\u0275nov"](t,119).ngClassUntouched,i["\u0275nov"](t,119).ngClassTouched,i["\u0275nov"](t,119).ngClassPristine,i["\u0275nov"](t,119).ngClassDirty,i["\u0275nov"](t,119).ngClassValid,i["\u0275nov"](t,119).ngClassInvalid,i["\u0275nov"](t,119).ngClassPending),e(t,127,0,i["\u0275nov"](t,132).ngClassUntouched,i["\u0275nov"](t,132).ngClassTouched,i["\u0275nov"](t,132).ngClassPristine,i["\u0275nov"](t,132).ngClassDirty,i["\u0275nov"](t,132).ngClassValid,i["\u0275nov"](t,132).ngClassInvalid,i["\u0275nov"](t,132).ngClassPending),e(t,138,0,i["\u0275nov"](t,140).placement),e(t,149,0,!n.keyActionValid),e(t,155,0,n.visible)})}n("1APj");var cr=function(){function e(e,t,n,o){this.store=e,this.mapper=t,this.element=n,this.renderer=o,this.popoverEnabled=!0,this.tooltipEnabled=!1,this.descriptionChanged=new i.EventEmitter,this.currentLayer=0,this.keyEditConfig={moduleId:void 0,keyId:void 0},this.tooltipData={posTop:0,posLeft:0,content:Ve.Observable.of([]),show:!1}}return Object.defineProperty(e.prototype,"space",{get:function(){return this.popoverEnabled},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){this.wrapHost&&(this.wrapPosition=this.wrapHost.getBoundingClientRect()),this.keyElement&&(this.keyPosition=this.keyElement.getBoundingClientRect())},e.prototype.ngOnInit=function(){this.wrapHost=this.element.nativeElement,this.wrapPosition=this.wrapHost.getBoundingClientRect()},e.prototype.ngOnChanges=function(e){var t=e.keymap;t&&(this.popoverShown=!1,this.layers=this.keymap.layers,t.isFirstChange()||t.previousValue.abbreviation!==t.currentValue.abbreviation?(this.currentLayer=0,this.keybindAnimationEnabled=t.isFirstChange()):this.keybindAnimationEnabled=!0)},e.prototype.onKeyClick=function(e,t,n){if(!this.popoverShown&&this.popoverEnabled){this.keyEditConfig={moduleId:e,keyId:t},this.selectedKey={layerId:this.currentLayer,moduleId:e,keyId:t};var o=this.layers[this.currentLayer].modules[e].keyActions[t];this.keyElement=n,this.showPopover(o)}},e.prototype.onKeyHover=function(e,t,n,o){this.tooltipEnabled&&(n?this.showTooltip(this.layers[this.currentLayer].modules[e].keyActions[o],t):this.hideTooltip())},e.prototype.onCapture=function(e,t,n){var o=new qe.KeystrokeAction,i=n.left.concat(n.right).map(function(e){return e?1:0});o.scancode=n.code,o.modifierMask=0;for(var r=0;r0&&(n+=" ("+o+")"),r.push({name:"Scancode",value:n})}return t.hasActiveModifier()&&r.push({name:"Modifiers",value:t.getModifierList().join(", ")}),t.hasSecondaryRoleAction()&&r.push({name:"Secondary role",value:qe.SecondaryRoleAction[t.secondaryRoleAction]}),Ve.Observable.of(r)}if(e instanceof qe.MouseAction){var i=e,r=[{name:"Action type",value:"Mouse"},{name:"Action",value:Object(qe.camelCaseToSentence)(qe.MouseActionParam[i.mouseAction])}];return Ve.Observable.of(r)}if(e instanceof qe.PlayMacroAction){var l=e;return this.store.select(function(e){return e.userConfiguration.macros}).map(function(e){return e.find(function(e){return e.id===l.macroId}).name}).map(function(e){return[{name:"Action type",value:"Play macro"},{name:"Macro name",value:e}]})}if(e instanceof qe.SwitchKeymapAction){var s=e;return this.store.select(function(e){return e.userConfiguration.keymaps}).map(function(e){return e.find(function(e){return e.abbreviation===s.keymapAbbreviation}).name}).map(function(e){return[{name:"Action type",value:"Switch keymap"},{name:"Keymap",value:e}]})}if(e instanceof qe.SwitchLayerAction){var a=e;return r=[{name:"Action type",value:"Switch layer"},{name:"Layer",value:Object(qe.capitalizeFirstLetter)(qe.LayerName[a.layer])},{name:"Toogle",value:a.switchLayerMode===qe.SwitchLayerMode.toggle?"On":"Off"}],Ve.Observable.of(r)}return Ve.Observable.of([])},e}(),dr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.space[_nghost-%COMP%]{margin-bottom:405px}keyboard-slider[_ngcontent-%COMP%]{display:block;position:relative;height:500px;margin-top:30px}.tooltip[_ngcontent-%COMP%]{position:fixed;-webkit-transform:translate(-50%,-6px);transform:translate(-50%,-6px);display:none}.tooltip-inner[_ngcontent-%COMP%]{background:#fff;color:#000;-webkit-box-shadow:0 1px 5px #000;box-shadow:0 1px 5px #000;text-align:left}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:2px}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.tooltip.bottom[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{border-bottom-color:#fff;top:1px}.tooltip.in[_ngcontent-%COMP%]{display:block;opacity:1}"]],data:{}});function pr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["\n ",": ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit.name,t.context.$implicit.value)})}function fr(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"layers",[],[[2,"disabled",null]],[[null,"select"]],function(e,t,n){var o=!0;return"select"===t&&(o=!1!==e.component.selectLayer(n.index)&&o),o},Pt,Mt)),i["\u0275did"](2,49152,null,0,St,[],{current:[0,"current"]},{select:"select"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"keyboard-slider",[],null,[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var o=!0,i=e.component;return"keyClick"===t&&(o=!1!==i.onKeyClick(n.moduleId,n.keyId,n.keyTarget)&&o),"keyHover"===t&&(o=!1!==i.onKeyHover(n.moduleId,n.event,n.over,n.keyId)&&o),"capture"===t&&(o=!1!==i.onCapture(n.moduleId,n.keyId,n.captured)&&o),"descriptionChanged"===t&&(o=!1!==i.onDescriptionChanged(n)&&o),o},fo,co)),i["\u0275did"](5,573440,null,0,uo,[],{layers:[0,"layers"],currentLayer:[1,"currentLayer"],keybindAnimationEnabled:[2,"keybindAnimationEnabled"],capturingEnabled:[3,"capturingEnabled"],halvesSplit:[4,"halvesSplit"],selectedKey:[5,"selectedKey"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](7,0,[[1,0]],null,1,"popover",[["tabindex","0"]],null,[[null,"cancel"],[null,"remap"],[null,"keydown.escape"]],function(e,t,n){var o=!0,r=e.component;return"keydown.escape"===t&&(o=!1!==i["\u0275nov"](e,8).onEscape()&&o),"cancel"===t&&(o=!1!==r.hidePopover()&&o),"remap"===t&&(o=!1!==r.onRemap(n)&&o),o},ur,nr)),i["\u0275did"](8,573440,null,0,tr,[s.m],{defaultKeyAction:[0,"defaultKeyAction"],currentKeymap:[1,"currentKeymap"],currentLayer:[2,"currentLayer"],keyPosition:[3,"keyPosition"],wrapPosition:[4,"wrapPosition"],visible:[5,"visible"],allowLayerDoubleTap:[6,"allowLayerDoubleTap"]},{cancel:"cancel",remap:"remap"}),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](10,0,null,null,10,"div",[["class","tooltip bottom"]],[[2,"in",null],[4,"top","px"],[4,"left","px"]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,0,"div",[["class","tooltip-arrow"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,5,"div",[["class","tooltip-inner"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,2,null,pr)),i["\u0275did"](17,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.currentLayer),e(t,5,0,n.layers,n.currentLayer,n.keybindAnimationEnabled,n.popoverEnabled,n.halvesSplit,n.selectedKey,n.keyboardLayout,n.keymap.description),e(t,8,0,n.popoverInitKeyAction,n.keymap,n.currentLayer,n.keyPosition,n.wrapPosition,n.popoverShown,n.allowLayerDoubleTap),e(t,17,0,i["\u0275unv"](t,17,0,i["\u0275nov"](t,18).transform(n.tooltipData.content)))},function(e,t){var n=t.component;e(t,1,0,n.popoverShown),e(t,10,0,n.tooltipData.show,n.tooltipData.posTop,n.tooltipData.posLeft)})}function hr(e){return i["\u0275vid"](2,[i["\u0275qud"](671088640,1,{popover:0}),(e()(),i["\u0275and"](16777216,null,null,1,null,fr)),i["\u0275did"](2,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,2,0,t.component.layers)},null)}n("okk1"),n("KRCp"),n("PvYY"),n("uCY4"),n("xOQQ");var yr=n("lDdF"),mr=function(){function e(e,t){this.store=e,this.keymap$=t.params.pluck("abbr").switchMap(function(t){return e.let(Object(xn.a)(t))}).publishReplay(1).refCount(),this.deletable$=e.let(Object(xn.b)()).map(function(e){return e.length>1}),this.keyboardLayout$=e.select(u.k),this.allowLayerDoubleTap$=e.select(u.a)}return e.prototype.downloadKeymap=function(){var e=this,t=this.keymap$.switchMap(function(t){return e.toExportableJSON(t)}).map(function(e){return JSON.stringify(e)});this.keymap$.combineLatest(t).first().subscribe(function(e){var t=e[1],n=e[0].name+"_keymap.json";Object(yr.saveAs)(new Blob([t],{type:"application/json"}),n)})},e.prototype.toggleKeyboardSplit=function(){this.keyboardSplit=!this.keyboardSplit},e.prototype.descriptionChanged=function(e){this.store.dispatch(new wt.a.EditDescriptionAction(e))},e.prototype.toExportableJSON=function(e){return this.store.let(Object(xn.e)()).first().map(function(t){return{site:"https://ultimatehackingkeyboard.com",description:"Ultimate Hacking Keyboard keymap",keyboardModel:"UHK60",userConfigMajorVersion:t.userConfigMajorVersion,userConfigMinorVersion:t.userConfigMinorVersion,userConfigPatchVersion:t.userConfigPatchVersion,objectType:"keymap",objectValue:e.toJsonObject()}})},e}(),gr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function vr(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,3,"keymap-header",[],null,[[null,"downloadClick"],["window","resize"]],function(e,t,n){var o=!0,r=e.component;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,2).windowResize()&&o),"downloadClick"===t&&(o=!1!==r.downloadKeymap()&&o),o},Ot,xt)),i["\u0275did"](2,573440,null,0,Ct,[s.m,i.Renderer2],{keymap:[0,"keymap"],deletable:[1,"deletable"]},{downloadClick:"downloadClick"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,4,"svg-keyboard-wrap",[],[[2,"space",null]],[[null,"descriptionChanged"],["window","resize"]],function(e,t,n){var o=!0,r=e.component;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,7).onResize()&&o),"descriptionChanged"===t&&(o=!1!==r.descriptionChanged(n)&&o),o},hr,dr)),i["\u0275did"](7,638976,null,0,cr,[s.m,Bt,i.ElementRef,i.Renderer],{keymap:[0,"keymap"],halvesSplit:[1,"halvesSplit"],keyboardLayout:[2,"keyboardLayout"],allowLayerDoubleTap:[3,"allowLayerDoubleTap"]},{descriptionChanged:"descriptionChanged"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,i["\u0275unv"](t,2,0,i["\u0275nov"](t,3).transform(n.keymap$)),i["\u0275unv"](t,2,1,i["\u0275nov"](t,4).transform(n.deletable$))),e(t,7,0,i["\u0275unv"](t,7,0,i["\u0275nov"](t,8).transform(n.keymap$)),n.keyboardSplit,i["\u0275unv"](t,7,2,i["\u0275nov"](t,9).transform(n.keyboardLayout$)),i["\u0275unv"](t,7,3,i["\u0275nov"](t,10).transform(n.allowLayerDoubleTap$)))},function(e,t){e(t,6,0,i["\u0275nov"](t,7).space)})}function br(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Sorry, there is no keymap with this abbreviation.\n"]))],null,null)}function kr(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,2,null,vr)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,br)),i["\u0275did"](5,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform(n.keymap$))),e(t,5,0,!i["\u0275unv"](t,5,0,i["\u0275nov"](t,6).transform(n.keymap$)))},null)}var _r=i["\u0275ccf"]("keymap-edit",mr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"keymap-edit",[["class","container-fluid"]],null,[["window","keydown.alt.s"]],function(e,t,n){var o=!0;return"window:keydown.alt.s"===t&&(o=!1!==i["\u0275nov"](e,1).toggleKeyboardSplit(n)&&o),o},kr,gr)),i["\u0275did"](1,49152,null,0,mr,[s.m,le.a],null,null)],null,null)},{},{},[]),wr=function(){function e(e){this.store=e,this.presetsAll$=e.select(function(e){return e.presetKeymaps}),this.filterExpression$=new Xi.BehaviorSubject(""),this.presets$=this.presetsAll$.combineLatest(this.filterExpression$,function(e,t){return e.filter(function(e){return e.name.toLocaleLowerCase().includes(t)})}).publishReplay(1).refCount()}return e.prototype.filterKeyboards=function(e){this.filterExpression$.next(e)},e.prototype.addKeymap=function(e){this.store.dispatch(wt.a.addKeymap(e))},e}(),Ar=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:-.3em;right:100%;font-size:2.4rem;padding-right:.25em;margin:0}.keymap__search[_ngcontent-%COMP%]{margin-top:10px}.keymap__search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{width:100%;max-width:350px;float:left}.keymap__search_amount[_ngcontent-%COMP%]{float:left;margin:7px 0 0 20px}.keymap__description[_ngcontent-%COMP%]{margin-bottom:20px}.keymap__list[_ngcontent-%COMP%]{margin-top:40px}.keymap__list_item[_ngcontent-%COMP%]{margin-bottom:50px}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%]{margin:30px 0 0;width:100%;text-align:center}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{float:none;padding-left:50px;padding-right:50px}"]],data:{}});function Tr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[["keyboard",1]],null,17,"div",[["class","keymap__list_item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),i["\u0275ted"](3,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"p",[["class","keymap__description"]],null,null,null,null,null)),(e()(),i["\u0275ted"](6,null,["\n ","\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,2,"svg-keyboard-wrap",[],[[2,"space",null]],[["window","resize"]],function(e,t,n){var o=!0;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,9).onResize()&&o),o},hr,dr)),i["\u0275did"](9,638976,null,0,cr,[s.m,Bt,i.ElementRef,i.Renderer],{keymap:[0,"keymap"],popoverEnabled:[1,"popoverEnabled"],tooltipEnabled:[2,"tooltipEnabled"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,4,"div",[["class","btn-group btn-group-lg"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.addKeymap(e.context.$implicit)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Add keymap"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.context.$implicit,!1,!0)},function(e,t){e(t,3,0,t.context.$implicit.name),e(t,6,0,t.context.$implicit.description),e(t,8,0,i["\u0275nov"](t,9).space)})}function Cr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Sorry, no keyboard found under this search query.\n"]))],null,null)}function xr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Add new keymap"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,16,"div",[["class","keymap__search clearfix"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"span",[["class","input-group-addon"],["id","sizing-addon1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,0,"input",[["class","form-control"],["placeholder","Search ..."],["type","text"]],null,[[null,"input"]],function(e,t,n){var o=!0;return"input"===t&&(o=!1!==e.component.filterKeyboards(n.target.value)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,3,"div",[["class","keymap__search_amount"]],null,null,null,null,null)),(e()(),i["\u0275ted"](21,null,["\n "," / "," keymaps shown\n "])),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](26,0,null,null,5,"div",[["class","keymap__list"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,2,null,Tr)),i["\u0275did"](29,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,Cr)),i["\u0275did"](34,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,29,0,i["\u0275unv"](t,29,0,i["\u0275nov"](t,30).transform(n.presets$))),e(t,34,0,0===i["\u0275unv"](t,34,0,i["\u0275nov"](t,35).transform(n.presets$)).length)},function(e,t){var n=t.component;e(t,21,0,i["\u0275unv"](t,21,0,i["\u0275nov"](t,22).transform(n.presets$)).length,i["\u0275unv"](t,21,1,i["\u0275nov"](t,23).transform(n.presetsAll$)).length)})}var Or=i["\u0275ccf"]("keymap-add",wr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"keymap-add",[["class","container-fluid"]],null,null,null,xr,Ar)),i["\u0275did"](1,49152,null,0,wr,[s.m],null,null)],null,null)},{},{},[]),Sr=function(){},Mr=i["\u0275crt"]({encapsulation:0,styles:[[".not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Er(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,5,"uhk-header",[],null,null,null,kt,bt)),i["\u0275did"](3,49152,null,0,vt,[s.m],null,null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](5,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\xa0"])),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n You don't have any macros. Try to add one!\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}var Pr=i["\u0275ccf"]("macro-not-found",Sr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-not-found",[],null,null,null,Er,Mr)),i["\u0275did"](1,49152,null,0,Sr,[],null,null)],null,null)},{},{},[]),Ir=function(){function e(e,t){this.store=e,this.renderer=t}return e.prototype.ngOnChanges=function(e){this.isNew&&this.setFocusOnName(),e.macro&&this.setName()},e.prototype.ngAfterViewInit=function(){this.isNew&&this.setFocusOnName()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.macro.name)},e.prototype.removeMacro=function(){this.store.dispatch(wt.b.removeMacro(this.macro.id))},e.prototype.duplicateMacro=function(){this.store.dispatch(wt.b.duplicateMacro(this.macro))},e.prototype.editMacroName=function(e){At.d(e)?this.store.dispatch(wt.b.editMacroName(this.macro.id,e)):this.setName()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.macroName.nativeElement,n=.8*t.parentElement.offsetWidth,o=At.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,o)+"px")},e.prototype.setFocusOnName=function(){this.macroName.nativeElement.select()},e.prototype.setName=function(){this.renderer.setProperty(this.macroName.nativeElement,"value",this.macro.name),this.calculateHeaderTextWidth(this.macro.name)},e}(),Rr=i["\u0275crt"]({encapsulation:0,styles:[[".macro__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.macro__remove[_ngcontent-%COMP%]:hover{cursor:pointer;color:#900}.macro__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.macro__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem;text-overflow:ellipsis}.pane-title__name[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}"]],data:{}});function Dr(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{macroName:0}),(e()(),i["\u0275eld"](1,0,null,null,19,"uhk-header",[],null,null,null,kt,bt)),i["\u0275did"](2,49152,null,0,vt,[s.m],null,null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](4,0,null,0,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,12,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,[[1,0],["macroName",1]],null,1,"input",[["cancelable",""],["class","pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var o=!0,r=e.component;return"focus"===t&&(o=!1!==i["\u0275nov"](e,11).onFocus()&&o),"keyup.escape"===t&&(o=!1!==i["\u0275nov"](e,11).onEscape()&&o),"change"===t&&(o=!1!==r.editMacroName(n.target.value)&&o),"keyup.enter"===t&&(o=!1!==i["\u0275nov"](e,10).blur()&&o),"keyup"===t&&(o=!1!==r.calculateHeaderTextWidth(n.target.value)&&o),o},null,null)),i["\u0275did"](11,16384,null,0,_t,[i.ElementRef,i.Renderer],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,1,"i",[["class","glyphicon glyphicon-trash macro__remove pull-right"],["data-original-title","Delete macro"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.removeMacro()&&o),o},null,null)),i["\u0275did"](14,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,1,"i",[["class","fa fa-files-o macro__duplicate pull-right"],["data-original-title","Duplicate macro"],["data-placement","bottom"],["data-toggle","tooltip"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.duplicateMacro()&&o),o},null,null)),i["\u0275did"](17,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,0,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,14,0,"","true"),e(t,17,0,"")},function(e,t){e(t,13,0,i["\u0275nov"](t,14).placement),e(t,16,0,i["\u0275nov"](t,17).placement)})}var Nr=n("xiuF"),jr=n("LKU8"),Lr=(n("kkgw"),function(){function e(e,t){var n=this;this.mapper=e,this.dragulaService=t,this.add=new i.EventEmitter,this.edit=new i.EventEmitter,this.delete=new i.EventEmitter,this.reorder=new i.EventEmitter,this.newMacro=void 0,this.showNew=!1,this.activeEdit=void 0,t.setOptions("macroActions",{moves:function(e,t,n){return n.className.includes("action--movable")}}),t.drag.subscribe(function(e){n.dragIndex=+e[1].getAttribute("data-index")}),t.drop.subscribe(function(e){e[4]&&n.reorder.emit({macroId:n.macro.id,oldIndex:n.dragIndex,newIndex:+e[4].getAttribute("data-index")})})}return e.prototype.showNewAction=function(){this.hideActiveEditor(),this.newMacro=void 0,this.showNew=!0},e.prototype.hideNewAction=function(){this.showNew=!1},e.prototype.addNewAction=function(e){this.add.emit({macroId:this.macro.id,action:e}),this.newMacro=void 0,this.showNew=!1},e.prototype.editAction=function(e){this.hideActiveEditor(),this.showNew=!1,this.activeEdit=e},e.prototype.cancelAction=function(){this.activeEdit=void 0},e.prototype.saveAction=function(e,t){this.edit.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.deleteAction=function(e,t){this.delete.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.onKeysCapture=function(e){var t=Object.assign(new qe.KeyMacroAction,this.toKeyAction(e));t.action=qe.MacroKeySubAction.tap,this.add.emit({macroId:this.macro.id,action:t})},e.prototype.toKeyAction=function(e){var t=new qe.KeystrokeAction;t.scancode=e.code,t.modifierMask=0;for(var n=e.left.concat(e.right).map(function(e){return e?1:0}),o=0;o active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}},{type:7,name:"togglerNew",definitions:[{type:0,name:"void",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:":enter",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null},{type:1,expr:":leave",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function Vr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[1,"data-index",0]],[[null,"save"],[null,"edit"],[null,"cancel"],[null,"delete"]],function(e,t,n){var o=!0,i=e.component;return"save"===t&&(o=!1!==i.saveAction(n,e.context.index)&&o),"edit"===t&&(o=!1!==i.editAction(e.context.index)&&o),"cancel"===t&&(o=!1!==i.cancelAction()&&o),"delete"===t&&(o=!1!==i.deleteAction(e.context.$implicit,e.context.index)&&o),o},Vi,Ni)),i["\u0275did"](1,638976,[[1,4]],0,Di,[Bt],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel",edit:"edit",delete:"delete"})],function(e,t){e(t,1,0,t.context.$implicit,!0,!0,!0)},function(e,t){e(t,0,0,t.context.index)})}function Fr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[24,"@togglerNew",0]],[[null,"save"],[null,"cancel"]],function(e,t,n){var o=!0,i=e.component;return"save"===t&&(o=!1!==i.addNewAction(n)&&o),"cancel"===t&&(o=!1!==i.hideNewAction()&&o),o},Vi,Ni)),i["\u0275did"](1,638976,[[1,4]],0,Di,[Bt],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel"})],function(e,t){e(t,1,0,t.component.newMacro,!0,!1,!1)},function(e,t){e(t,0,0,t.component.showNew?"active":"inactive")})}function Kr(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{macroItems:1}),(e()(),i["\u0275eld"](1,0,null,null,38,"div",[["class","row list-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,35,"div",[["class","col-xs-10 col-xs-offset-1 list-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),i["\u0275eld"](6,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can create macros, but they won't have any effect until firmware support is implemented. We're working on this."])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,8,"div",[["class","macro-actions-container"]],null,null,null,null,null)),i["\u0275did"](10,606208,null,0,Nr.DragulaDirective,[i.ElementRef,jr.DragulaService],{dragula:[0,"dragula"],dragulaModel:[1,"dragulaModel"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Vr)),i["\u0275did"](13,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Fr)),i["\u0275did"](16,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,18,"div",[["class","list-group add-new__action-container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,15,"div",[["class","list-group-item action--item add-new__action-item no-reorder clearfix"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,6,"span",[["class","add-new__action-item--link"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.showNewAction()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,3,"button",[["class","btn btn-link"],["type","button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Add macro action\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,4,"span",[["class","add-new__action-item--link"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,1,"capture-keystroke-button",[["captureText","Add captured keystroke"],["isLink","true"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var o=!0,r=e.component;return"keyup"===t&&(o=!1!==i["\u0275nov"](e,34).onKeyUp(n)&&o),"keydown"===t&&(o=!1!==i["\u0275nov"](e,34).onKeyDown(n)&&o),"focusout"===t&&(o=!1!==i["\u0275nov"](e,34).onFocusOut()&&o),"capture"===t&&(o=!1!==r.onKeysCapture(n)&&o),o},_o,vo)),i["\u0275did"](34,49152,null,0,go,[Cn],{isLink:[0,"isLink"],captureText:[1,"captureText"]},{capture:"capture"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,"macroActions",n.macro.macroActions),e(t,13,0,n.macro.macroActions),e(t,16,0,n.showNew),e(t,34,0,"true","Add captured keystroke")},function(e,t){e(t,19,0,t.component.showNew?"inactive":"active")})}var Br=function(){function e(e,t){var n=this;this.store=e,this.route=t,this.subscription=t.params.pluck("id").switchMap(function(t){return n.macroId=+t,e.let(Object(xn.c)(n.macroId))}).subscribe(function(e){n.macro=e}),this.isNew="new"===this.route.snapshot.params.empty}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.addAction=function(e,t){this.store.dispatch(wt.b.addMacroAction(e,t))},e.prototype.editAction=function(e,t,n){this.store.dispatch(wt.b.saveMacroAction(e,t,n))},e.prototype.deleteAction=function(e,t,n){this.store.dispatch(wt.b.deleteMacroAction(e,t,n))},e.prototype.reorderAction=function(e,t,n){this.store.dispatch(wt.b.reorderMacroAction(e,t,n))},e}(),Hr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Wr(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,t,n){var o=!0;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,2).windowResize()&&o),o},Dr,Rr)),i["\u0275did"](2,4767744,null,0,Ir,[s.m,i.Renderer2],{macro:[0,"macro"],isNew:[1,"isNew"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,2,"macro-list",[],null,[[null,"add"],[null,"edit"],[null,"delete"],[null,"reorder"]],function(e,t,n){var o=!0,i=e.component;return"add"===t&&(o=!1!==i.addAction(n.macroId,n.action)&&o),"edit"===t&&(o=!1!==i.editAction(n.macroId,n.index,n.action)&&o),"delete"===t&&(o=!1!==i.deleteAction(n.macroId,n.index,n.action)&&o),"reorder"===t&&(o=!1!==i.reorderAction(n.macroId,n.oldIndex,n.newIndex)&&o),o},Kr,Ur)),i["\u0275prd"](8704,null,jr.DragulaService,jr.DragulaService,[]),i["\u0275did"](6,49152,null,0,Lr,[Bt,jr.DragulaService],{macro:[0,"macro"]},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"}),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.macro,n.isNew),e(t,6,0,n.macro)},null)}function qr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["\n There is no macro with id ",".\n"]))],null,function(e,t){e(t,1,0,t.component.macroId)})}function zr(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,1,null,Wr)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,qr)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.macro),e(t,4,0,!n.macro)},null)}var $r=i["\u0275ccf"]("macro-edit",Br,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-edit",[["class","container-fluid"]],null,null,null,zr,Hr)),i["\u0275did"](1,180224,null,0,Br,[s.m,le.a],null,null)],null,null)},{},{},[]),Gr=function(e){this.name$=e.params.pluck("name")},Yr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Qr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,7,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,2,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),i["\u0275ted"](7,null,["",""])),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\nTo be done..."]))],null,function(e,t){var n=t.component;e(t,7,0,i["\u0275unv"](t,7,0,i["\u0275nov"](t,8).transform(n.name$)))})}var Jr=i["\u0275ccf"]("add-on",Gr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"add-on",[["class","container-fluid"]],null,null,null,Qr,Yr)),i["\u0275did"](1,49152,null,0,Gr,[le.a],null,null)],null,null)},{},{},[]),Zr=function(){function e(){this.toggleCheckForUpdateOnStartUp=new i.EventEmitter,this.toggleUsePreReleaseUpdate=new i.EventEmitter,this.checkForUpdate=new i.EventEmitter}return e.prototype.emitCheckForUpdateOnStartUp=function(e){this.toggleCheckForUpdateOnStartUp.emit(e)},e.prototype.emitUsePreReleaseUpdate=function(e){this.toggleUsePreReleaseUpdate.emit(e)},e.prototype.emitCheckForUpdate=function(){this.checkForUpdate.emit()},e}(),Xr=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function el(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"span",[["class","fa fa-spinner fa-spin"]],null,null,null,null,null))],null,null)}function tl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,35,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.emitCheckForUpdateOnStartUp(n.target.checked)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Automatically check for update on\n application start\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](12,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.emitUsePreReleaseUpdate(n.target.checked)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Allow alpha / pre release\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,1,"label",[["class","col-sm-2 control-label"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Version:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,4,"div",[["class","col-sm-10"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](28,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](32,0,null,null,4,"button",[["class","btn btn-link"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.emitCheckForUpdate()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n Check for update\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,el)),i["\u0275did"](35,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,35,0,t.component.checkingForUpdate)},function(e,t){var n=t.component;e(t,8,0,n.settings.checkForUpdateOnStartUp),e(t,16,0,n.settings.usePreReleaseUpdate),e(t,28,0,n.version)})}var nl=n("w+X5"),ol=function(){function e(e){this.store=e,this.version=Object(At.c)().version,this.autoUpdateSettings$=e.select(u.g),this.checkingForUpdate$=e.select(u.i)}return e.prototype.toogleCheckForUpdateOnStartUp=function(e){this.store.dispatch(new nl.h(e))},e.prototype.toogleUsePreReleaseUpdate=function(e){this.store.dispatch(new nl.i(e))},e.prototype.checkForUpdate=function(){this.store.dispatch(new nl.c)},e}(),il=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function rl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Settings"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](11,0,null,null,4,"auto-update-settings",[],null,[[null,"toggleCheckForUpdateOnStartUp"],[null,"toggleUsePreReleaseUpdate"],[null,"checkForUpdate"]],function(e,t,n){var o=!0,i=e.component;return"toggleCheckForUpdateOnStartUp"===t&&(o=!1!==i.toogleCheckForUpdateOnStartUp(n)&&o),"toggleUsePreReleaseUpdate"===t&&(o=!1!==i.toogleUsePreReleaseUpdate(n)&&o),"checkForUpdate"===t&&(o=!1!==i.checkForUpdate()&&o),o},tl,Xr)),i["\u0275did"](12,49152,null,0,Zr,[],{version:[0,"version"],settings:[1,"settings"],checkingForUpdate:[2,"checkingForUpdate"]},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",toggleUsePreReleaseUpdate:"toggleUsePreReleaseUpdate",checkForUpdate:"checkForUpdate"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.version,i["\u0275unv"](t,12,1,i["\u0275nov"](t,13).transform(n.autoUpdateSettings$)),i["\u0275unv"](t,12,2,i["\u0275nov"](t,14).transform(n.checkingForUpdate$)))},null)}var ll=i["\u0275ccf"]("settings",ol,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"settings",[["class","container-fluid"]],null,null,null,rl,il)),i["\u0275did"](1,49152,null,0,ol,[s.m],null,null)],null,null)},{},{},[]),sl=function(){function e(e){this.store=e,this.version=Object(At.c)().version}return e.prototype.openAgentGitHubPage=function(e){e.preventDefault(),this.store.dispatch(new F.h(qe.Constants.AGENT_GITHUB_URL))},e}(),al=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}.agent-version[_ngcontent-%COMP%]{margin-bottom:1rem}.agent-version[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.link-github[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function ul(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,21,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["About"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,10,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"div",[["class","agent-version"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Agent version: "])),(e()(),i["\u0275eld"](14,0,null,null,1,"span",[["class","text-bold"]],null,null,null,null,null)),(e()(),i["\u0275ted"](15,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),i["\u0275eld"](18,0,null,null,1,"a",[["class","link-github"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.openAgentGitHubPage(n)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Agent on GitHub"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){e(t,15,0,t.component.version)})}var cl=i["\u0275ccf"]("about-page",sl,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"about-page",[["class","container-fluid"]],null,null,null,ul,al)),i["\u0275did"](1,49152,null,0,sl,[s.m],null,null)],null,null)},{},{},[]),dl=function(){return function(){this.updateApp=new i.EventEmitter,this.doNotUpdateApp=new i.EventEmitter}}(),pl=i["\u0275crt"]({encapsulation:0,styles:[[".app-update-available-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:.5rem}"]],data:{}});function fl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","app-update-available-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n New version available.\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.updateApp.emit()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Update"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.doNotUpdateApp.emit()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Close"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}var hl=function(e){},yl=function(){function e(e,t){this._cdRef=e,this._renderer=t,this.maxParentWidthPercent=1,this._onChanged=hl,this._onTouched=hl}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model!==e&&(this._model=e)},enumerable:!0,configurable:!0}),e.prototype.registerOnChange=function(e){this._onChanged=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled!==e&&(this.disabled=e,this._cdRef.markForCheck())},e.prototype.windowResize=function(){this.calculateTextWidth(this._model)},e.prototype.writeValue=function(e){console.log("write",new Date),this.model!==e&&(this._model=e,this._originalModel=e,this.calculateTextWidth(this._model),this._cdRef.markForCheck())},e.prototype.focus=function(){this._onTouched(this)},e.prototype.blur=function(){if(!At.d(this._model)||this._model.trim()===this._originalModel)return this._model=this._originalModel,this.calculateTextWidth(this._model),void this._cdRef.markForCheck();this._originalModel=this._model,this._onChanged(this._model)},e.prototype.keyEnter=function(e){e.target.blur()},e.prototype.calculateTextWidth=function(e){var t=this.inputControl.nativeElement,n=t.parentElement.parentElement.offsetWidth*this.maxParentWidthPercent,o=At.b(window.getComputedStyle(t),e);this._renderer.setStyle(t,"width",Math.min(n,o)+"px")},e}(),ml=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function gl(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{inputControl:0}),(e()(),i["\u0275eld"](1,0,[[1,0],["inputControl",1]],null,6,"input",[["cancelable",""],["type","text"]],[[8,"className",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"blur"],[null,"focus"],[null,"keyup.enter"],[null,"keyup"],[null,"input"],[null,"compositionstart"],[null,"compositionend"],[null,"keyup.escape"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,2)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,2).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,2)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,2)._compositionEnd(n.target.value)&&o),"focus"===t&&(o=!1!==i["\u0275nov"](e,7).onFocus()&&o),"keyup.escape"===t&&(o=!1!==i["\u0275nov"](e,7).onEscape()&&o),"ngModelChange"===t&&(o=!1!==(r.model=n)&&o),"blur"===t&&(o=!1!==r.blur()&&o),"focus"===t&&(o=!1!==r.focus()&&o),"keyup.enter"===t&&(o=!1!==r.keyEnter(n)&&o),"keyup"===t&&(o=!1!==r.calculateTextWidth(n.target.value)&&o),o},null,null)),i["\u0275did"](2,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.DefaultValueAccessor]),i["\u0275did"](4,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](6,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),i["\u0275did"](7,16384,null,0,_t,[i.ElementRef,i.Renderer],null,null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.disabled,n.model)},function(e,t){e(t,1,0,t.component.css,i["\u0275nov"](t,6).ngClassUntouched,i["\u0275nov"](t,6).ngClassTouched,i["\u0275nov"](t,6).ngClassPristine,i["\u0275nov"](t,6).ngClassDirty,i["\u0275nov"](t,6).ngClassValid,i["\u0275nov"](t,6).ngClassInvalid,i["\u0275nov"](t,6).ngClassPending)})}n("EnA3");var vl=function(){function e(e,t,n){this.store=e,this.renderer=t,this.cdRef=n,this.animation={device:"active",configuration:"active",keymap:"active",macro:"active",addon:"active"}}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(u.p).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.toggleHide=function(e,t){if(!this.state.updatingFirmware){var n=!1;e.target.classList.contains("fa-chevron-down")?(n=!0,this.animation[t]="active"):this.animation[t]="inactive",n?(this.renderer.addClass(e.target,"fa-chevron-up"),this.renderer.removeClass(e.target,"fa-chevron-down")):(this.renderer.removeClass(e.target,"fa-chevron-up"),this.renderer.addClass(e.target,"fa-chevron-down"))}},e.prototype.addMacro=function(){this.store.dispatch(wt.b.addMacro())},e.prototype.editDeviceName=function(e){this.store.dispatch(new me.h(e))},e}(),bl=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{background-color:#f5f5f5;border-right:1px solid #ccc;position:fixed;overflow-y:auto;width:250px;height:100%}a[_ngcontent-%COMP%]{color:#333}a.disabled[_ngcontent-%COMP%]{opacity:.65}ul[_ngcontent-%COMP%]{padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;padding:0}ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{overflow:hidden}.sidebar__level-0[_ngcontent-%COMP%]{padding:.5rem 1rem 0}.sidebar__level-1[_ngcontent-%COMP%]{padding:.5rem 1rem .5rem 2rem}.sidebar__level-0[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]{font-size:2rem;line-height:3rem;cursor:default}.sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%]{display:inline-block}.sidebar__level-0--item[_ngcontent-%COMP%], .sidebar__level-1--item[_ngcontent-%COMP%]{margin-top:0}.sidebar__level-0--item[_ngcontent-%COMP%]:nth-child(1), .sidebar__level-1--item[_ngcontent-%COMP%]:nth-child(1){margin:0}.sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%]{margin-right:1rem;font-size:1.5rem;position:relative;top:.5rem;display:none;cursor:pointer}.sidebar__level-0[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%]{margin-left:-3px}.sidebar__level-2--item[_ngcontent-%COMP%]{padding:0 20px 0 0;position:relative}.sidebar__level-2--item.active[_ngcontent-%COMP%]{background-color:#555;color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%]:hover{background-color:#555}.sidebar__level-2--item[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar__level-2--item[_ngcontent-%COMP%] .fa.pull-right[_ngcontent-%COMP%]{position:relative;top:2px}.sidebar__level-2--item[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#666}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;width:100%;padding:0 15px 0 30px}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus, .sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.sidebar__level-2--item[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{opacity:.65}.sidebar__level-0[_ngcontent-%COMP%]:hover, .sidebar__level-1[_ngcontent-%COMP%]:hover, .sidebar__level-2[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.sidebar__level-0.active[_ngcontent-%COMP%], .sidebar__level-1.active[_ngcontent-%COMP%], .sidebar__level-2.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.18)}.sidebar__fav[_ngcontent-%COMP%]{position:absolute;right:19px;top:3px}.menu--bottom[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]{display:block;padding:1rem;cursor:pointer}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]:hover{text-decoration:none}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function kl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,2,{links:1}),i["\u0275qud"](603979776,3,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[3,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["Mouse speed"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/mouse-speed"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function _l(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,4,{links:1}),i["\u0275qud"](603979776,5,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[5,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["LED brightness"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/led-brightness"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function wl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,6,{links:1}),i["\u0275qud"](603979776,7,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[7,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["Configuration"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/configuration"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function Al(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,8,{links:1}),i["\u0275qud"](603979776,9,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[9,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["Fix configuration"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/restore-user-configuration"))},function(e,t){e(t,8,0,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function Tl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"i",[["class","fa fa-star sidebar__fav"],["data-placement","bottom"],["data-toggle","tooltip"],["title","This is the default keymap which gets activated when powering the keyboard."]],[[1,"data-placement",0]],null,null,null,null)),i["\u0275did"](1,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null)],function(e,t){e(t,1,0,"This is the default keymap which gets activated when powering the keyboard.")},function(e,t){e(t,0,0,i["\u0275nov"](t,1).placement)})}function Cl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,16,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,13,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,12,{links:1}),i["\u0275qud"](603979776,13,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[13,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,2),(e()(),i["\u0275ted"](11,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Tl)),i["\u0275did"](14,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/keymap",t.context.$implicit.abbreviation)),e(t,14,0,t.context.$implicit.isDefault)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function xl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,15,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Keymaps\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"keymap")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Cl)),i["\u0275did"](13,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,13,0,t.component.state.keymaps)},function(e,t){e(t,10,0,t.component.animation.keymap)})}function Ol(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,14,{links:1}),i["\u0275qud"](603979776,15,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[15,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,2),(e()(),i["\u0275ted"](11,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/macro",t.context.$implicit.id))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function Sl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,19,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Macros\n "])),(e()(),i["\u0275eld"](6,0,null,null,3,"a",[["class","btn btn-default pull-right btn-sm"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.addMacro()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"macro")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ol)),i["\u0275did"](17,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,17,0,t.component.state.macros)},function(e,t){var n=t.component;e(t,6,0,n.state.updatingFirmware),e(t,14,0,n.animation.macro)})}function Ml(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,71,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Add-on modules\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"addon")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,61,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Key cluster"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](14,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,16,{links:1}),i["\u0275qud"](603979776,17,{linksWithHrefs:1}),i["\u0275pad"](17,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,20).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](20,671744,[[17,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](21,2),(e()(),i["\u0275ted"](-1,null,["Key cluster"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackball"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](29,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,18,{links:1}),i["\u0275qud"](603979776,19,{linksWithHrefs:1}),i["\u0275pad"](32,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,35).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](35,671744,[[19,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](36,2),(e()(),i["\u0275ted"](-1,null,["Trackball"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](41,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Toucpad"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](43,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](44,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,20,{links:1}),i["\u0275qud"](603979776,21,{linksWithHrefs:1}),i["\u0275pad"](47,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](49,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,50).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](50,671744,[[21,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](51,2),(e()(),i["\u0275ted"](-1,null,["Touchpad"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackpoint"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](58,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](59,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,22,{links:1}),i["\u0275qud"](603979776,23,{linksWithHrefs:1}),i["\u0275pad"](62,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](64,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,65).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](65,671744,[[23,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](66,2),(e()(),i["\u0275ted"](-1,null,["Trackpoint"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,14,0,e(t,17,0,"active")),e(t,20,0,e(t,21,0,"/add-on","Key cluster")),e(t,29,0,e(t,32,0,"active")),e(t,35,0,e(t,36,0,"/add-on","Trackball")),e(t,44,0,e(t,47,0,"active")),e(t,50,0,e(t,51,0,"/add-on","Touchpad")),e(t,59,0,e(t,62,0,"active")),e(t,65,0,e(t,66,0,"/add-on","Trackpoint"))},function(e,t){var n=t.component;e(t,9,0,n.animation.addon),e(t,19,0,n.state.updatingFirmware,i["\u0275nov"](t,20).target,i["\u0275nov"](t,20).href),e(t,34,0,n.state.updatingFirmware,i["\u0275nov"](t,35).target,i["\u0275nov"](t,35).href),e(t,49,0,n.state.updatingFirmware,i["\u0275nov"](t,50).target,i["\u0275nov"](t,50).href),e(t,64,0,n.state.updatingFirmware,i["\u0275nov"](t,65).target,i["\u0275nov"](t,65).href)})}function El(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{deviceName:0}),(e()(),i["\u0275eld"](1,0,null,null,117,"ul",[["class","menu--top"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,67,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,12,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,0,"i",[["class","uhk-icon uhk-icon-0401-usb-stick rotate-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,5,"auto-grow-input",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"]],function(e,t,n){var o=!0,r=e.component;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,10).windowResize()&&o),"ngModelChange"===t&&(o=!1!==r.editDeviceName(n)&&o),o},gl,ml)),i["\u0275did"](10,49152,null,0,yl,[i.ChangeDetectorRef,i.Renderer2],{maxParentWidthPercent:[0,"maxParentWidthPercent"],css:[1,"css"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[yl]),i["\u0275did"](12,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](14,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"device")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,50,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,38,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Device\n "])),(e()(),i["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"configuration")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,null,null,28,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,kl)),i["\u0275did"](33,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,_l)),i["\u0275did"](36,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,wl)),i["\u0275did"](39,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Al)),i["\u0275did"](42,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](44,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](47,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,10,{links:1}),i["\u0275qud"](603979776,11,{linksWithHrefs:1}),i["\u0275pad"](50,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](52,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,53).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](53,671744,[[11,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](54,1),(e()(),i["\u0275ted"](-1,null,["Firmware"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,xl)),i["\u0275did"](62,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Sl)),i["\u0275did"](65,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ml)),i["\u0275did"](68,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](72,0,null,null,45,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),i["\u0275did"](73,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,24,{links:1}),i["\u0275qud"](603979776,25,{linksWithHrefs:1}),i["\u0275pad"](76,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](78,0,null,null,5,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](80,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Agent\n "])),(e()(),i["\u0275eld"](82,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"agent")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](85,0,null,null,31,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](87,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](89,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](90,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,26,{links:1}),i["\u0275qud"](603979776,27,{linksWithHrefs:1}),i["\u0275pad"](93,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](95,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,96).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](96,671744,[[27,4],[25,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](97,1),(e()(),i["\u0275ted"](-1,null,["Settings"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](102,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](104,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](105,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,28,{links:1}),i["\u0275qud"](603979776,29,{linksWithHrefs:1}),i["\u0275pad"](108,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](110,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,111).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](111,671744,[[29,4],[25,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](112,1),(e()(),i["\u0275ted"](-1,null,["About"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,.65,"side-menu-pane-title__name"),e(t,12,0,n.state.restoreUserConfiguration||n.state.updatingFirmware,n.state.deviceName),e(t,33,0,!n.state.restoreUserConfiguration),e(t,36,0,!n.state.restoreUserConfiguration),e(t,39,0,!n.state.restoreUserConfiguration),e(t,42,0,n.state.restoreUserConfiguration),e(t,47,0,e(t,50,0,"active")),e(t,53,0,e(t,54,0,"/device/firmware")),e(t,62,0,!n.state.restoreUserConfiguration),e(t,65,0,!n.state.restoreUserConfiguration),e(t,68,0,n.state.showAddonMenu),e(t,73,0,e(t,76,0,"active")),e(t,90,0,e(t,93,0,"active")),e(t,96,0,e(t,97,0,"/settings")),e(t,105,0,e(t,108,0,"active")),e(t,111,0,e(t,112,0,"/about"))},function(e,t){var n=t.component;e(t,9,0,i["\u0275nov"](t,14).ngClassUntouched,i["\u0275nov"](t,14).ngClassTouched,i["\u0275nov"](t,14).ngClassPristine,i["\u0275nov"](t,14).ngClassDirty,i["\u0275nov"](t,14).ngClassValid,i["\u0275nov"](t,14).ngClassInvalid,i["\u0275nov"](t,14).ngClassPending),e(t,19,0,n.animation.device),e(t,30,0,n.animation.configuration),e(t,52,0,n.state.updatingFirmware,i["\u0275nov"](t,53).target,i["\u0275nov"](t,53).href),e(t,85,0,n.animation.agent),e(t,95,0,n.state.updatingFirmware,i["\u0275nov"](t,96).target,i["\u0275nov"](t,96).href),e(t,110,0,n.state.updatingFirmware,i["\u0275nov"](t,111).target,i["\u0275nov"](t,111).href)})}var Pl=n("MptX"),Il=function(){function e(){this.state=Pl.a,this.clicked=new i.EventEmitter}return e.prototype.onClicked=function(){this.clicked.emit(this.state.action)},e}(),Rl=i["\u0275crt"]({encapsulation:0,styles:[["button[_ngcontent-%COMP%]{min-width:150px}"]],data:{}});function Dl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-spin fa-spinner"]],null,null,null,null,null))],null,null)}function Nl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,4,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onClicked()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Dl)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](4,null,[" ","\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.state.showProgress)},function(e,t){var n=t.component;e(t,0,0,n.state.showProgress),e(t,4,0,n.state.text)})}var jl=n("EEr4"),Ll=function(){return function(e){Object.assign(this,e),void 0===e.id&&(this.id="ID_"+(new Date).getTime())}}(),Ul=function(){function e(){this.actionStream=new jl.Subject,this.actionQueue=[],this.isActionInProgress=!1}return e.prototype.push=function(e){this.actionQueue.push(e),this.tryToRunNextAction()},e.prototype.continue=function(){this.isActionInProgress=!1,this.tryToRunNextAction()},e.prototype.tryToRunNextAction=function(){this.isActionInProgress||0===this.actionQueue.length||(this.isActionInProgress=!0,this.actionStream.next(this.actionQueue.shift()))},e}(),Vl=function(){return function(e){void 0===e&&(e={}),this.animations={enabled:!0,hide:{easing:"ease",offset:50,preset:"fade",speed:300},overlap:150,shift:{easing:"ease",speed:300},show:{easing:"ease",preset:"slide",speed:300}},this.behaviour={autoHide:7e3,onClick:!1,onMouseover:"pauseAutoHide",showDismissButton:!0,stacking:4},this.position={horizontal:{distance:12,position:"left"},vertical:{distance:12,gap:10,position:"bottom"}},this.theme="material",void 0!==e.theme&&(this.theme=e.theme),void 0!==e.animations&&(void 0!==e.animations.enabled&&(this.animations.enabled=e.animations.enabled),void 0!==e.animations.overlap&&(this.animations.overlap=e.animations.overlap),void 0!==e.animations.hide&&Object.assign(this.animations.hide,e.animations.hide),void 0!==e.animations.shift&&Object.assign(this.animations.shift,e.animations.shift),void 0!==e.animations.show&&Object.assign(this.animations.show,e.animations.show)),void 0!==e.behaviour&&Object.assign(this.behaviour,e.behaviour),void 0!==e.position&&(void 0!==e.position.horizontal&&Object.assign(this.position.horizontal,e.position.horizontal),void 0!==e.position.vertical&&Object.assign(this.position.vertical,e.position.vertical))}}(),Fl=function(){function e(e,t){this.queueService=e,this.config=t}return e.prototype.getConfig=function(){return this.config},e.prototype.show=function(e){this.queueService.push({payload:e,type:"SHOW"})},e.prototype.hide=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.hideNewest=function(){this.queueService.push({type:"HIDE_NEWEST"})},e.prototype.hideOldest=function(){this.queueService.push({type:"HIDE_OLDEST"})},e.prototype.hideAll=function(){this.queueService.push({type:"HIDE_ALL"})},e.prototype.notify=function(e,t,n){var o={message:t,type:e};void 0!==n&&(o.id=n),this.show(o)},e}(),Kl=function(){function e(e,t,n){this.changeDetector=e,this.queueService=t,this.config=n.getConfig(),this.notifications=[]}return e.prototype.ngOnInit=function(){var e=this;this.queueServiceSubscription=this.queueService.actionStream.subscribe(function(t){e.handleAction(t).then(function(){e.queueService.continue()})})},e.prototype.ngOnDestroy=function(){this.queueServiceSubscription&&this.queueServiceSubscription.unsubscribe()},e.prototype.identifyNotification=function(e,t){return t.id},e.prototype.onNotificationDismiss=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.onNotificationReady=function(e){var t=this.notifications[this.notifications.length-1];t.component=e,this.continueHandleShowAction(t)},e.prototype.handleAction=function(e){switch(e.type){case"SHOW":return this.handleShowAction(e);case"HIDE":return this.handleHideAction(e);case"HIDE_OLDEST":return this.handleHideOldestAction(e);case"HIDE_NEWEST":return this.handleHideNewestAction(e);case"HIDE_ALL":return this.handleHideAllAction(e);default:return new Promise(function(e,t){e()})}},e.prototype.handleShowAction=function(e){var t=this;return new Promise(function(n,o){t.tempPromiseResolver=n,t.addNotificationToList(new Ll(e.payload))})},e.prototype.continueHandleShowAction=function(e){var t=this,n=this.notifications.length;if(1===n)e.component.show().then(this.tempPromiseResolver);else if(!1===this.config.behaviour.stacking||this.config.behaviour.stacking<2)this.notifications[0].component.hide().then(function(){t.removeNotificationFromList(t.notifications[0]),e.component.show().then(t.tempPromiseResolver)});else{var o=[];if(n>this.config.behaviour.stacking){var i=this.notifications.slice(1,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(o.push(this.notifications[0].component.hide()),setTimeout(function(){o.push(t.shiftNotifications(i,e.component.getHeight(),!0))},this.config.animations.hide.speed-this.config.animations.overlap),setTimeout(function(){o.push(e.component.show())},this.config.animations.hide.speed+this.config.animations.shift.speed-this.config.animations.overlap)):o.push(new Promise(function(n,o){t.notifications[0].component.hide().then(function(){t.shiftNotifications(i,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})})):(o.push(this.notifications[0].component.hide()),o.push(this.shiftNotifications(i,e.component.getHeight(),!0)),o.push(e.component.show()))}else{var r=this.notifications.slice(0,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(o.push(this.shiftNotifications(r,e.component.getHeight(),!0)),setTimeout(function(){o.push(e.component.show())},this.config.animations.shift.speed-this.config.animations.overlap)):o.push(new Promise(function(n,o){t.shiftNotifications(r,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})):(o.push(this.shiftNotifications(r,e.component.getHeight(),!0)),o.push(e.component.show()))}Promise.all(o).then(function(){n>t.config.behaviour.stacking&&t.removeNotificationFromList(t.notifications[0]),t.tempPromiseResolver()})}},e.prototype.handleHideAction=function(e){var t=this;return new Promise(function(n,o){var i=[],r=t.findNotificationById(e.payload);if(void 0!==r){var l=t.findNotificationIndexById(e.payload);if(void 0!==l){var s=t.notifications.slice(0,l);s.length>0?t.config.animations.enabled&&t.config.animations.hide.speed>0?!1!==t.config.animations.overlap&&t.config.animations.overlap>0?(i.push(r.component.hide()),setTimeout(function(){i.push(t.shiftNotifications(s,r.component.getHeight(),!1))},t.config.animations.hide.speed-t.config.animations.overlap)):r.component.hide().then(function(){i.push(t.shiftNotifications(s,r.component.getHeight(),!1))}):(i.push(r.component.hide()),i.push(t.shiftNotifications(s,r.component.getHeight(),!1))):i.push(r.component.hide()),Promise.all(i).then(function(){t.removeNotificationFromList(r),n()})}else n()}else n()})},e.prototype.handleHideOldestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[0].id,this.handleHideAction(e))},e.prototype.handleHideNewestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[this.notifications.length-1].id,this.handleHideAction(e))},e.prototype.handleHideAllAction=function(e){var t=this;return new Promise(function(e,n){var o=t.notifications.length;if(0!==o)if(t.config.animations.enabled&&t.config.animations.hide.speed>0&&!1!==t.config.animations.hide.offset&&t.config.animations.hide.offset>0)for(var i=function(n){setTimeout(function(){t.notifications[n].component.hide().then(function(){("top"===t.config.position.vertical.position&&0===n||"bottom"===t.config.position.vertical.position&&n===o-1)&&(t.removeAllNotificationsFromList(),e())})},t.config.animations.hide.offset*("top"===t.config.position.vertical.position?o-1:n))},r=o-1;r>=0;r--)i(r);else{var l=[];for(r=o-1;r>=0;r--)l.push(t.notifications[r].component.hide());Promise.all(l).then(function(){t.removeAllNotificationsFromList(),e()})}else e()})},e.prototype.shiftNotifications=function(e,t,n){return new Promise(function(o,i){if(0!==e.length){for(var r=[],l=e.length-1;l>=0;l--)r.push(e[l].component.shift(t,n));Promise.all(r).then(o)}else o()})},e.prototype.addNotificationToList=function(e){this.notifications.push(e),this.changeDetector.markForCheck()},e.prototype.removeNotificationFromList=function(e){this.notifications=this.notifications.filter(function(t){return t.component!==e.component}),this.changeDetector.markForCheck()},e.prototype.removeAllNotificationsFromList=function(){this.notifications=[],this.changeDetector.markForCheck()},e.prototype.findNotificationById=function(e){return this.notifications.find(function(t){return t.id===e})},e.prototype.findNotificationIndexById=function(e){var t=this.notifications.findIndex(function(t){return t.id===e});return-1!==t?t:void 0},e}(),Bl={hide:function(e){return{from:{opacity:"1"},to:{opacity:"0"}}},show:function(e){return{from:{opacity:"0"},to:{opacity:"1"}}}},Hl={hide:function(e){var t,n,o=e.component.getConfig(),i=e.component.getShift();return"left"===o.position.horizontal.position?(t={transform:"translate3d( 0, "+i+"px, 0 )"},n={transform:"translate3d( calc( -100% - "+o.position.horizontal.distance+"px - 10px ), "+i+"px, 0 )"}):"right"===o.position.horizontal.position?(t={transform:"translate3d( 0, "+i+"px, 0 )"},n={transform:"translate3d( calc( 100% + "+o.position.horizontal.distance+"px + 10px ), "+i+"px, 0 )"}):(t={transform:"translate3d( -50%, "+i+"px, 0 )"},n={transform:"translate3d( -50%, "+("top"===o.position.vertical.position?"calc( -100% - "+o.position.horizontal.distance+"px - 10px )":"calc( 100% + "+o.position.horizontal.distance+"px + 10px )")+", 0 )"}),{from:t,to:n}},show:function(e){var t,n,o=e.component.getConfig();return"left"===o.position.horizontal.position?(t={transform:"translate3d( calc( -100% - "+o.position.horizontal.distance+"px - 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):"right"===o.position.horizontal.position?(t={transform:"translate3d( calc( 100% + "+o.position.horizontal.distance+"px + 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):(t={transform:"translate3d( -50%, "+("top"===o.position.vertical.position?"calc( -100% - "+o.position.horizontal.distance+"px - 10px )":"calc( 100% + "+o.position.horizontal.distance+"px + 10px )")+", 0 )"},n={transform:"translate3d( -50%, 0, 0 )"}),{from:t,to:n}}},Wl=function(){function e(){this.animationPresets={fade:Bl,slide:Hl}}return e.prototype.getAnimationData=function(e,t){var n,o,i;return"show"===e?(n=this.animationPresets[t.component.getConfig().animations.show.preset].show(t),o=t.component.getConfig().animations.show.speed,i=t.component.getConfig().animations.show.easing):(n=this.animationPresets[t.component.getConfig().animations.hide.preset].hide(t),o=t.component.getConfig().animations.hide.speed,i=t.component.getConfig().animations.hide.easing),{keyframes:[n.from,n.to],options:{duration:o,easing:i,fill:"forwards"}}},e}(),ql=function(){function e(){this.now=0,this.remaining=0}return e.prototype.start=function(e){var t=this;return new Promise(function(n,o){t.remaining=e,t.finishPromiseResolver=n,t.continue()})},e.prototype.pause=function(){clearTimeout(this.timerId),this.remaining-=(new Date).getTime()-this.now},e.prototype.continue=function(){var e=this;this.now=(new Date).getTime(),this.timerId=setTimeout(function(){e.finish()},this.remaining)},e.prototype.stop=function(){clearTimeout(this.timerId),this.remaining=0},e.prototype.finish=function(){this.finishPromiseResolver()},e}(),zl=function(){function e(e,t,n,o,r){this.config=n.getConfig(),this.ready=new i.EventEmitter,this.dismiss=new i.EventEmitter,this.timerService=o,this.animationService=r,this.renderer=t,this.element=e.nativeElement,this.elementShift=0}return e.prototype.ngAfterViewInit=function(){this.setup(),this.elementHeight=this.element.offsetHeight,this.elementWidth=this.element.offsetWidth,this.ready.emit(this)},e.prototype.getConfig=function(){return this.config},e.prototype.getHeight=function(){return this.elementHeight},e.prototype.getWidth=function(){return this.elementWidth},e.prototype.getShift=function(){return this.elementShift},e.prototype.show=function(){var e=this;return new Promise(function(t,n){if(e.config.animations.enabled&&e.config.animations.show.speed>0){for(var o=e.animationService.getAnimationData("show",e.notification),i=Object.keys(o.keyframes[0]),r=i.length-1;r>=0;r--)e.renderer.setStyle(e.element,i[r],o.keyframes[0][i[r]]);e.renderer.setStyle(e.element,"visibility","visible"),e.element.animate(o.keyframes,o.options).onfinish=function(){e.startAutoHideTimer(),t()}}else e.renderer.setStyle(e.element,"visibility","visible"),e.startAutoHideTimer(),t()})},e.prototype.hide=function(){var e=this;return new Promise(function(t,n){if(e.stopAutoHideTimer(),e.config.animations.enabled&&e.config.animations.hide.speed>0){var o=e.animationService.getAnimationData("hide",e.notification);e.element.animate(o.keyframes,o.options).onfinish=function(){t()}}else t()})},e.prototype.shift=function(e,t){var n=this;return new Promise(function(o,i){var r;r="top"===n.config.position.vertical.position&&t||"bottom"===n.config.position.vertical.position&&!t?n.elementShift+e+n.config.position.vertical.gap:n.elementShift-e-n.config.position.vertical.gap;var l="middle"===n.config.position.horizontal.position?"-50%":"0";if(n.config.animations.enabled&&n.config.animations.shift.speed>0){var s={keyframes:[{transform:"translate3d( "+l+", "+n.elementShift+"px, 0 )"},{transform:"translate3d( "+l+", "+r+"px, 0 )"}],options:{duration:n.config.animations.shift.speed,easing:n.config.animations.shift.easing,fill:"forwards"}};n.elementShift=r,n.element.animate(s.keyframes,s.options).onfinish=function(){o()}}else n.renderer.setStyle(n.element,"transform","translate3d( "+l+", "+r+"px, 0 )"),n.elementShift=r,o()})},e.prototype.onClickDismiss=function(){this.dismiss.emit(this.notification.id)},e.prototype.onNotificationMouseover=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.pauseAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.stopAutoHideTimer()},e.prototype.onNotificationMouseout=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.continueAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.startAutoHideTimer()},e.prototype.onNotificationClick=function(){"hide"===this.config.behaviour.onClick&&this.onClickDismiss()},e.prototype.startAutoHideTimer=function(){var e=this;!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.start(this.config.behaviour.autoHide).then(function(){e.onClickDismiss()})},e.prototype.pauseAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.pause()},e.prototype.continueAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.continue()},e.prototype.stopAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.stop()},e.prototype.setup=function(){"left"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"left",this.config.position.horizontal.distance+"px"):"right"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"right",this.config.position.horizontal.distance+"px"):(this.renderer.setStyle(this.element,"left","50%"),this.renderer.setStyle(this.element,"transform","translate3d( -50%, 0, 0 )")),this.renderer.setStyle(this.element,"top"===this.config.position.vertical.position?"top":"bottom",this.config.position.vertical.distance+"px"),this.renderer.addClass(this.element,"notifier__notification--"+this.notification.type),this.renderer.addClass(this.element,"notifier__notification--"+this.config.theme)},e}(),$l=new i.InjectionToken("[angular-notifier] Notifier Options"),Gl=new i.InjectionToken("[anuglar-notifier] Notifier Config");function Yl(e){return new Vl(e)}var Ql=function(){function e(){}return e.withConfig=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:$l,useValue:t},{deps:[$l],provide:Gl,useFactory:Yl}]}},e}(),Jl=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Zl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"li",[["class","notifier__container-list"]],null,null,null,null,null)),(e()(),i["\u0275eld"](1,0,null,null,2,"notifier-notification",[["class","notifier__notification"]],null,[[null,"dismiss"],[null,"ready"],[null,"click"],[null,"mouseout"],[null,"mouseover"]],function(e,t,n){var o=!0,r=e.component;return"click"===t&&(o=!1!==i["\u0275nov"](e,3).onNotificationClick()&&o),"mouseout"===t&&(o=!1!==i["\u0275nov"](e,3).onNotificationMouseout()&&o),"mouseover"===t&&(o=!1!==i["\u0275nov"](e,3).onNotificationMouseover()&&o),"dismiss"===t&&(o=!1!==r.onNotificationDismiss(n)&&o),"ready"===t&&(o=!1!==r.onNotificationReady(n)&&o),o},ns,es)),i["\u0275prd"](512,null,ql,ql,[]),i["\u0275did"](3,4243456,null,0,zl,[i.ElementRef,i.Renderer2,Fl,ql,Wl],{notification:[0,"notification"]},{ready:"ready",dismiss:"dismiss"})],function(e,t){e(t,3,0,t.context.$implicit)},null)}function Xl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),i["\u0275and"](16777216,null,null,1,null,Zl)),i["\u0275did"](2,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,2,0,n.notifications,n.identifyNotification)},null)}var es=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ts(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"button",[["class","notifier__notification-button"],["title","dismiss"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onClickDismiss()&&o),o},null,null)),(e()(),i["\u0275eld"](1,0,null,null,1,":svg:svg",[["class","notifier__notification-button-icon"],["height","20"],["viewBox","0 0 24 24"],["width","20"]],null,null,null,null,null)),(e()(),i["\u0275eld"](2,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"]],null,null,null,null,null))],null,null)}function ns(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,"p",[["class","notifier__notification-message"]],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["",""])),(e()(),i["\u0275and"](16777216,null,null,1,null,ts)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,3,0,t.component.config.behaviour.showDismissButton)},function(e,t){e(t,1,0,t.component.notification.message)})}var os=i["\u0275crt"]({encapsulation:2,styles:[["main-app{min-height:100%;height:100%;width:100%;display:block;position:relative}.save-to-keyboard-button{position:fixed;bottom:15px;right:15px}"]],data:{animation:[{type:7,name:"showSaveToKeyboardButton",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"translateY(100%)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(0)"},offset:null},timings:"400ms ease-in-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(100%)"},offset:null},timings:"400ms ease-in-out"}],options:null}],options:{}}]}});function is(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"app-update-available",[],null,[[null,"updateApp"],[null,"doNotUpdateApp"]],function(e,t,n){var o=!0,i=e.component;return"updateApp"===t&&(o=!1!==i.updateApp()&&o),"doNotUpdateApp"===t&&(o=!1!==i.doNotUpdateApp()&&o),o},fl,pl)),i["\u0275did"](1,49152,null,0,dl,[],null,{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"}),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function rs(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"side-menu",[],null,null,null,El,bl)),i["\u0275did"](1,245760,null,0,vl,[s.m,i.Renderer2,i.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)}function ls(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"progress-button",[["class","save-to-keyboard-button"]],[[24,"@showSaveToKeyboardButton",0]],[[null,"clicked"]],function(e,t,n){var o=!0;return"clicked"===t&&(o=!1!==e.component.clickedOnProgressButton(n)&&o),o},Nl,Rl)),i["\u0275did"](1,49152,null,0,Il,[],{state:[0,"state"]},{clicked:"clicked"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform(n.saveToKeyboardState$)))},function(e,t){e(t,0,0,void 0)})}function ss(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,2,null,is)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,rs)),i["\u0275did"](5,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,4,"div",[["class","main-content"],["id","main-content"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),i["\u0275did"](11,212992,null,0,le.q,[le.b,i.ViewContainerRef,i.ComponentFactoryResolver,[8,null],i.ChangeDetectorRef],null,null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](14,0,null,null,1,"notifier-container",[["class","notifier__container"]],null,null,null,Xl,Jl)),i["\u0275did"](15,245760,null,0,Kl,[i.ChangeDetectorRef,Ul,Fl],null,null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,ls)),i["\u0275did"](18,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform(n.showUpdateAvailable$))),e(t,5,0,i["\u0275unv"](t,5,0,i["\u0275nov"](t,6).transform(n.deviceConfigurationLoaded$))),e(t,11,0),e(t,15,0),e(t,18,0,i["\u0275unv"](t,18,0,i["\u0275nov"](t,19).transform(n.saveToKeyboardState$)).showButton)},null)}var as=i["\u0275ccf"]("main-app",c,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"main-app",[],null,null,null,ss,os)),i["\u0275did"](1,49152,null,0,c,[s.m],null,null)],null,null)},{},{},[]),us=function(){},cs="*";function ds(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function ps(e){return{type:6,styles:e,offset:null}}function fs(e){Promise.resolve(null).then(e)}var hs=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;fs(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),ys=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,o=0,i=0,r=this.players.length;0==r?fs(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==r&&t._onFinish()}),e.onDestroy(function(){++o==r&&t._onDestroy()}),e.onStart(function(){++i==r&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),ms="!";function gs(e){switch(e.length){case 0:return new hs;case 1:return e[0];default:return new ys(e)}}function vs(e,t,n,o,i,r){void 0===i&&(i={}),void 0===r&&(r={});var l=[],s=[],a=-1,u=null;if(o.forEach(function(e){var n=e.offset,o=n==a,c=o&&u||{};Object.keys(e).forEach(function(n){var o=n,s=e[n];if("offset"!==n)switch(o=t.normalizePropertyName(o,l),s){case ms:s=i[n];break;case cs:s=r[n];break;default:s=t.normalizeStyleValue(n,o,s,l)}c[o]=s}),o||s.push(c),u=c,a=n}),l.length)throw new Error("Unable to animate due to the following errors:\n - "+l.join("\n - "));return s}function bs(e,t,n,o){switch(t){case"start":e.onStart(function(){return o(n&&ks(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return o(n&&ks(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return o(n&&ks(n,"destroy",e.totalTime))})}}function ks(e,t,n){var o=_s(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),i=e._data;return null!=i&&(o._data=i),o}function _s(e,t,n,o,i,r){return void 0===i&&(i=""),void 0===r&&(r=0),{element:e,triggerName:t,fromState:n,toState:o,phaseName:i,totalTime:r}}function ws(e,t,n){var o;return e instanceof Map?(o=e.get(t))||e.set(t,o=n):(o=e[t])||(o=e[t]=n),o}function As(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Ts=function(e,t){return!1},Cs=function(e,t){return!1},xs=function(e,t,n){return[]};if("undefined"!=typeof Element){if(Ts=function(e,t){return e.contains(t)},Element.prototype.matches)Cs=function(e,t){return e.matches(t)};else{var Os=Element.prototype,Ss=Os.matchesSelector||Os.mozMatchesSelector||Os.msMatchesSelector||Os.oMatchesSelector||Os.webkitMatchesSelector;Ss&&(Cs=function(e,t){return Ss.apply(e,[t])})}xs=function(e,t,n){var o=[];if(n)o.push.apply(o,e.querySelectorAll(t));else{var i=e.querySelector(t);i&&o.push(i)}return o}}var Ms=null,Es=!1;function Ps(e){Ms||(Ms=Is()||{},Es=!!Ms.style&&"WebkitAppearance"in Ms.style);var t=!0;return Ms.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Ms.style)&&Es&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ms.style),t}function Is(){return"undefined"!=typeof document?document.body:null}var Rs=Cs,Ds=Ts,Ns=xs,js=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return Ps(e)},e.prototype.matchesElement=function(e,t){return Rs(e,t)},e.prototype.containsElement=function(e,t){return Ds(e,t)},e.prototype.query=function(e,t,n){return Ns(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,o,i,r){return void 0===r&&(r=[]),new hs},e}(),Ls=function(){function e(){}return e.NOOP=new js,e}(),Us=1e3;function Vs(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Fs(parseFloat(t[1]),t[2])}function Fs(e,t){switch(t){case"s":return e*Us;default:return e}}function Ks(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var o,i=0,r="";if("string"==typeof e){var l=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};o=Fs(parseFloat(l[1]),l[2]);var s=l[3];null!=s&&(i=Fs(Math.floor(parseFloat(s)),l[4]));var a=l[5];a&&(r=a)}else o=e;if(!n){var u=!1,c=t.length;o<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:o,delay:i,easing:r}}(e,t,n)}function Bs(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Hs(e,t,n){if(void 0===n&&(n={}),t)for(var o in e)n[o]=e[o];else Bs(e,n);return n}function Ws(e,t){e.style&&Object.keys(t).forEach(function(n){var o=Zs(n);e.style[o]=t[n]})}function qs(e,t){e.style&&Object.keys(t).forEach(function(t){var n=Zs(t);e.style[n]=""})}function zs(e){return Array.isArray(e)?1==e.length?e[0]:ds(e):e}var $s=new RegExp("{{\\s*(.+?)\\s*}}","g");function Gs(e){var t=[];if("string"==typeof e){for(var n=e.toString(),o=void 0;o=$s.exec(n);)t.push(o[1]);$s.lastIndex=0}return t}function Ys(e,t,n){var o=e.toString(),i=o.replace($s,function(e,o){var i=t[o];return t.hasOwnProperty(o)||(n.push("Please provide a value for the animation param "+o),i=""),i.toString()});return i==o?e:i}function Qs(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Js=/-+([a-z0-9])/g;function Zs(e){return e.replace(Js,function(){for(var e=[],t=0;t *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof o)return void t.push(o);e=o}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var r=i[1],l=i[2],s=i[3];t.push(oa(r,s)),"<"!=l[0]||r==ea&&s==ea||t.push(oa(s,r))}(e,i,o)}):i.push(n),i),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:ua(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Xs(n,e,t)}),options:ua(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,o=t.currentTime,i=0,r=e.steps.map(function(e){t.currentTime=o;var r=Xs(n,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:ua(e.options)}},e.prototype.visitAnimate=function(e,t){var n,o=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return ca(Ks(e,t).duration,0,"");var o=e;if(o.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=ca(0,0,"");return i.dynamic=!0,i.strValue=o,i}return ca((n=n||Ks(o,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=o;var i=e.styles?e.styles:ps({});if(5==i.type)n=this.visitKeyframes(i,t);else{var r=e.styles,l=!1;if(!r){l=!0;var s={};o.easing&&(s.easing=o.easing),r=ps(s)}t.currentTime+=o.duration+o.delay;var a=this.visitStyle(r,t);a.isEmptyStep=l,n=a}return t.currentAnimateTimings=null,{type:4,timings:o,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==cs?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var o=!1,i=null;return n.forEach(function(e){if(aa(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!o)for(var r in t)if(t[r].toString().indexOf("{{")>=0){o=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:o,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,o=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;o&&r>0&&(r-=o.duration+o.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(o){if(n._driver.validateStyleProperty(o)){var l,s,a,u=t.collectedStyles[t.currentQuerySelector],c=u[o],d=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+o+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+r+'ms" and "'+i+'ms"'),d=!1),r=c.startTime),d&&(u[o]={startTime:r,endTime:i}),t.options&&(l=t.errors,s=t.options.params||{},(a=Gs(e[o])).length&&a.forEach(function(e){s.hasOwnProperty(e)||l.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+o+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,o={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),o;var i=0,r=[],l=!1,s=!1,a=0,u=e.steps.map(function(e){var o=n._makeStyleAst(e,t),u=null!=o.offset?o.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(aa(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(aa(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(o.styles),c=0;return null!=u&&(i++,c=o.offset=u),s=s||c<0||c>1,l=l||c0&&i0?i==p?1:d*i:r[i],s=l*y;t.currentTime=f+h.delay+s,h.duration=s,n._validateStyleAst(e,t),e.offset=l,o.styles.push(e)}),o},e.prototype.visitReference=function(e,t){return{type:8,animation:Xs(this,zs(e.animation),t),options:ua(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:ua(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ua(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,o=e.options||{};t.queryCount++,t.currentQuery=e;var i=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(ia,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),r=i[0],l=i[1];t.currentQuerySelector=n.length?n+" "+r:r,ws(t.collectedStyles,t.currentQuerySelector,{});var s=Xs(this,zs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:l,animation:s,originalSelector:e.selector,options:ua(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ks(e.timings,t.errors,!0);return{type:12,animation:Xs(this,zs(e.animation),t),timings:n,options:null}},e}(),sa=function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function aa(e){return!Array.isArray(e)&&"object"==typeof e}function ua(e){var t;return e?(e=Bs(e)).params&&(e.params=(t=e.params)?Bs(t):null):e={},e}function ca(e,t,n){return{duration:e,delay:t,easing:n}}function da(e,t,n,o,i,r,l,s){return void 0===l&&(l=null),void 0===s&&(s=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:o,duration:i,delay:r,totalTime:i+r,easing:l,subTimeline:s}}var pa=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),fa=new RegExp(":enter","g"),ha=new RegExp(":leave","g");function ya(e,t,n,o,i,r,l,s,a,u){return void 0===r&&(r={}),void 0===l&&(l={}),void 0===u&&(u=[]),(new ma).buildKeyframes(e,t,n,o,i,r,l,s,a,u)}var ma=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,o,i,r,l,s,a,u){void 0===u&&(u=[]),a=a||new pa;var c=new va(e,t,a,o,i,u,[]);c.options=s,c.currentTimeline.setStyles([r],null,c.errors,s),Xs(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(l).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([l],null,c.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[da(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var o=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(n,o,o.options);i!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var o=t.currentTimeline.currentTime,i=null!=n.duration?Vs(n.duration):null,r=null!=n.delay?Vs(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,r);o=Math.max(o,n.duration+n.delay)}),o},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Xs(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,o=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&((i=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ga);var l=Vs(r.delay);i.delayNextStep(l)}e.steps.length&&(e.steps.forEach(function(e){return Xs(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>o&&i.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,o=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Vs(e.options.delay):0;e.steps.forEach(function(l){var s=t.createSubContext(e.options);r&&s.delayNextStep(r),Xs(n,l,s),i=Math.max(i,s.currentTimeline.currentTime),o.push(s.currentTimeline)}),o.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return Ks(t.params?Ys(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),o=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),o.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),o.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,o=t.currentAnimateTimings;!o&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=o&&o.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,o=t.currentTimeline.duration,i=n.duration,r=t.createSubContext().currentTimeline;r.easing=n.easing,e.styles.forEach(function(e){r.forwardTime((e.offset||0)*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(o+i),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,o=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?Vs(i.delay):0;r&&(6===t.previousNode.type||0==o&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ga);var l=o,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var a=null;s.forEach(function(o,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,o);r&&s.delayNextStep(r),o===t.element&&(a=s.currentTimeline),Xs(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,o=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),l=r*(t.currentQueryTotal-1),s=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=l-s;break;case"full":s=n.currentStaggerTime}var a=t.currentTimeline;s&&a.delayNextStep(s);var u=a.currentTime;Xs(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=o.currentTime-u+(o.startTime-n.currentTimeline.startTime)},e}(),ga={},va=function(){function e(e,t,n,o,i,r,l,s){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=i,this.errors=r,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ga,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new ba(this._driver,t,0),l.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var o=e,i=this.options;null!=o.duration&&(i.duration=Vs(o.duration)),null!=o.delay&&(i.delay=Vs(o.delay));var r=o.params;if(r){var l=i.params;l||(l=this.options.params={}),Object.keys(r).forEach(function(e){t&&l.hasOwnProperty(e)||(l[e]=Ys(r[e],l,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,o){void 0===t&&(t=null);var i=n||this.element,r=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,o||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=ga,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var o={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new ka(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(i),o},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,o,i,r){var l=[];if(o&&l.push(this.element),e.length>0){e=(e=e.replace(fa,"."+this._enterClassName)).replace(ha,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),l.push.apply(l,s)}return i||0!=l.length||r.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),l},e}(),ba=function(){function e(e,t,n,o){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||cs,t._currentKeyframe[e]=cs}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,o){var i=this;t&&(this._previousKeyframe.easing=t);var r=o&&o.params||{},l=function(e,t){var n,o={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){o[e]=cs}):Hs(e,!1,o)}),o}(e,this._globalTimelineStyles);Object.keys(l).forEach(function(e){var t=Ys(l[e],r,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:cs),i._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var o=t._styleSummary[n],i=e._styleSummary[n];(!o||i.time>o.time)&&t._updateStyle(n,i.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,o=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(r,l){var s=Hs(r,!0);Object.keys(s).forEach(function(e){var o=s[e];o==ms?t.add(e):o==cs&&n.add(e)}),o||(s.offset=l/e.duration),i.push(s)});var r=t.size?Qs(t.values()):[],l=n.size?Qs(n.values()):[];if(o){var s=i[0],a=Bs(s);s.offset=0,a.offset=1,i=[s,a]}return da(this.element,i,r,l,this.duration,this.startTime,this.easing,!1)},e}(),ka=function(e){function t(t,n,o,i,r,l,s){void 0===s&&(s=!1);var a=e.call(this,t,n,l.delay)||this;return a.element=n,a.keyframes=o,a.preStyleProps=i,a.postStyleProps=r,a._stretchStartingKeyframe=s,a.timings={duration:l.duration,delay:l.delay,easing:l.easing},a}return Object(wo.__extends)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,o=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var r=[],l=o+n,s=n/l,a=Hs(e[0],!1);a.offset=0,r.push(a);var u=Hs(e[0],!1);u.offset=_a(s),r.push(u);for(var c=e.length-1,d=1;d<=c;d++){var p=Hs(e[d],!1);p.offset=_a((n+p.offset*o)/l),r.push(p)}o=l,n=0,i="",e=r}return da(this.element,e,this.preStyleProps,this.postStyleProps,o,n,i,!0)},t}(ba);function _a(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var wa=function(){},Aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(wo.__extends)(t,e),t.prototype.normalizePropertyName=function(e,t){return Zs(e)},t.prototype.normalizeStyleValue=function(e,t,n,o){var i="",r=n.toString().trim();if(Ta[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&o.push("Please provide a CSS unit value for "+e+":"+n)}return r+i},t}(wa),Ta=function(e){var t={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(e){return t[e]=!0}),t}();function Ca(e,t,n,o,i,r,l,s,a,u,c,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:r,toState:o,toStyles:l,timelines:s,queriedElements:a,preStyleProps:u,postStyleProps:c,errors:d}}var xa={},Oa=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return function(e,t,n){return e.some(function(e){return e(t,n)})}(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var o=this._stateStyles["*"],i=this._stateStyles[e],r=o?o.buildStyles(t,n):{};return i?i.buildStyles(t,n):r},e.prototype.build=function(e,t,n,o,i,r,l,s,a){var u=[],c=this.ast.options&&this.ast.options.params||xa,d=this.buildStyles(n,l&&l.params||xa,u),p=s&&s.params||xa,f=this.buildStyles(o,p,u),h=new Set,y=new Map,m=new Map,g="void"===o,v={params:Object(wo.__assign)({},c,p)},b=ya(e,t,this.ast.animation,i,r,d,f,v,a,u);if(u.length)return Ca(t,this._triggerName,n,o,g,d,f,[],[],y,m,u);b.forEach(function(e){var n=e.element,o=ws(y,n,{});e.preStyleProps.forEach(function(e){return o[e]=!0});var i=ws(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&h.add(n)});var k=Qs(h.values());return Ca(t,this._triggerName,n,o,g,d,f,b,k,y,m)},e}(),Sa=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},o=Bs(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(o[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var r=i[e];r.length>1&&(r=Ys(r,o,t)),n[e]=r})}}),n},e}(),Ma=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new Sa(e.style,e.options&&e.options.params||{})}),Ea(this.states,"true","1"),Ea(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new Oa(e,t,n.states))}),this.fallbackTransition=new Oa(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function Ea(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Pa=new pa,Ia=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],o=ra(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=o},e.prototype._buildPlayer=function(e,t,n){var o=e.element,i=vs(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(o,i,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var o=this;void 0===n&&(n={});var i,r=[],l=this._animations[e],s=new Map;if(l?(i=ya(this._driver,t,l,"ng-enter","ng-leave",{},{},n,Pa,r)).forEach(function(e){var t=ws(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=o._driver.computeStyle(t,n,cs)})});var a=gs(i.map(function(e){var t=s.get(e.element);return o._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(function(){return o.destroy(e)}),this.players.push(a),a},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,o){var i=_s(t,"","","");return bs(this._getPlayer(e),n,i,o),function(){}},e.prototype.command=function(e,t,n,o){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,o[0]||{});else this.register(e,o[0])},e}(),Ra=[],Da={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},Na={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},ja="__ng_removed",La=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var o=Bs(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),Ua=new La("void"),Va=new La("DELETED"),Fa=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ga(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,o){var i,r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var l=ws(this._elementListeners,e,[]),s={name:t,phase:n,callback:o};l.push(s);var a=ws(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Ga(e,"ng-trigger"),Ga(e,"ng-trigger-"+t),a[t]=Ua),function(){r._engine.afterFlush(function(){var e=l.indexOf(s);e>=0&&l.splice(e,1),r._triggers[t]||delete a[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,o){var i=this;void 0===o&&(o=!0);var r=this._getTrigger(t),l=new Ba(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Ga(e,"ng-trigger"),Ga(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var a=s[t],u=new La(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),s[t]=u,a){if(a===Va)return l}else a=Ua;if("void"===u.value||a.value!==u.value){var c=ws(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=r.matchTransition(a.value,u.value),p=!1;if(!d){if(!o)return;d=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:a,toState:u,player:l,isFallbackTransition:p}),p||(Ga(e,"ng-animate-queued"),l.onStart(function(){Ya(e,"ng-animate-queued")})),l.onDone(function(){var t=i.players.indexOf(l);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var o=n.indexOf(l);o>=0&&n.splice(o,1)}}),this.players.push(l),c.push(l),l}if(!function(e,t){var n=Object.keys(e),o=Object.keys(t);if(n.length!=o.length)return!1;for(var i=0;i=0){for(var o=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),o=!0;break}o||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var o=this._namespaceLookup[e];o&&o.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var o=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(o.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(o);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return o.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var o=Object.keys(n),i=0;i=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player;w.push(t);var r=e.element;if(d&&n.driver.containsElement(d,r)){var c=k.get(r),p=h.get(r),f=n._buildInstruction(e,o,p,c);if(f.errors&&f.errors.length)A.push(f);else{if(e.isFallbackTransition)return t.onStart(function(){return qs(r,f.fromStyles)}),t.onDestroy(function(){return Ws(r,f.toStyles)}),void i.push(t);f.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),o.append(r,f.timelines),l.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(function(e){return ws(s,e,[]).push(t)}),f.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var o=a.get(t);o||a.set(t,o=new Set),n.forEach(function(e){return o.add(e)})}}),f.postStyleProps.forEach(function(e,t){var n=Object.keys(e),o=u.get(t);o||u.set(t,o=new Set),n.forEach(function(e){return o.add(e)})})}}else t.destroy()});if(A.length){var C=[];A.forEach(function(e){C.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return C.push("- "+e+"\n")})}),w.forEach(function(e){return e.destroy()}),this.reportError(C)}var x=new Map,O=new Map;l.forEach(function(e){var t=e.element;o.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){ws(x,t,[]).push(e),e.destroy()})});var S=m.filter(function(e){return Ja(e,a,u)}),M=new Map;qa(M,this.driver,v,u,cs).forEach(function(e){Ja(e,a,u)&&S.push(e)});var E=new Map;f.forEach(function(e,t){qa(E,n.driver,new Set(e),a,ms)}),S.forEach(function(e){var t=M.get(e),n=E.get(e);M.set(e,Object(wo.__assign)({},t,n))});var P=[],I=[],R={};l.forEach(function(e){var t=e.element,l=e.player,s=e.instruction;if(o.has(t)){if(c.has(t))return l.onDestroy(function(){return Ws(t,s.toStyles)}),void i.push(l);var a=R;if(O.size>1){for(var u=t,d=[];u=u.parentNode;){var p=O.get(u);if(p){a=p;break}d.push(u)}d.forEach(function(e){return O.set(e,a)})}var f=n._buildAnimation(l.namespaceId,s,x,r,E,M);if(l.setRealPlayer(f),a===R)P.push(l);else{var h=n.playersByElement.get(a);h&&h.length&&(l.parentPlayer=gs(h)),i.push(l)}}else qs(t,s.fromStyles),l.onDestroy(function(){return Ws(t,s.toStyles)}),I.push(l),c.has(t)&&i.push(l)}),I.forEach(function(e){var t=r.get(e.element);if(t&&t.length){var n=gs(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var D=0;D0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new hs},e}(),Ba=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new hs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return bs(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){ws(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Ha(e){return e&&1===e.nodeType}function Wa(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function qa(e,t,n,o,i){var r=[];n.forEach(function(e){return r.push(Wa(e))});var l=[];o.forEach(function(n,o){var r={};n.forEach(function(e){var n=r[e]=t.computeStyle(o,e,i);n&&0!=n.length||(o[ja]=Na,l.push(o))}),e.set(o,r)});var s=0;return n.forEach(function(e){return Wa(e,r[s++])}),l}function za(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var o=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var r=i.get(t);if(r)return r;var l=t.parentNode;return r=n.has(l)?l:o.has(l)?1:e(l),i.set(t,r),r}(e);1!==t&&n.get(t).push(e)}),n}var $a="$$classes";function Ga(e,t){if(e.classList)e.classList.add(t);else{var n=e[$a];n||(n=e[$a]={}),n[t]=!0}}function Ya(e,t){if(e.classList)e.classList.remove(t);else{var n=e[$a];n&&delete n[t]}}function Qa(e,t,n){gs(n).onDone(function(){return e.processLeaveNode(t)})}function Ja(e,t,n){var o=n.get(e);if(!o)return!1;var i=t.get(e);return i?o.forEach(function(e){return i.add(e)}):t.set(e,o),n.delete(e),!0}var Za=function(){function e(e,t){var n=this;this._driver=e,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Ka(e,t),this._timelineEngine=new Ia(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,o,i){var r=e+"-"+o,l=this._triggerCache[r];if(!l){var s=[],a=ra(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+o+'" has failed to build due to the following errors:\n - '+s.join("\n - "));l=function(e,t){return new Ma(e,t)}(o,a),this._triggerCache[r]=l}this._transitionEngine.registerTrigger(t,o,l)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,o){this._transitionEngine.insertNode(e,t,n,o)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,o){if("@"==n.charAt(0)){var i=As(n);this._timelineEngine.command(i[0],t,i[1],o)}else this._transitionEngine.trigger(e,t,n,o)},e.prototype.listen=function(e,t,n,o,i){if("@"==n.charAt(0)){var r=As(n);return this._timelineEngine.listen(r[0],t,r[1],i)}return this._transitionEngine.listen(e,t,n,o,i)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),Xa=function(){function e(e,t,n,o){void 0===o&&(o=[]);var i=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return i.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return Hs(e,!1)}),n=Object.keys(this.previousStyles);if(n.length&&t.length){var o=t[0],i=[];if(n.forEach(function(t){o.hasOwnProperty(t)||i.push(t),o[t]=e.previousStyles[t]}),i.length)for(var r=this,l=function(){var e=t[s];i.forEach(function(t){e[t]=eu(r.element,t)})},s=1;s=0&&e0;return n&&e.router.navigate(["/macro",t[0].id]),!n})},e}(),bu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.d).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),ku=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.d).do(function(t){t||e.router.navigate(["/detection"])})},e}(),_u=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.s).do(function(t){t&&e.router.navigate(["/detection"])}).map(function(e){return!e})},e}(),wu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.s).do(function(t){t||e.router.navigate(["/privilege"])})},e}(),Au=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.c).do(function(t){t||e.router.navigate(["/loading"])})},e}(),Tu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.c).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),Cu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.b).do(function(t){t||e.router.navigate(["/"])})},e}(),xu=n("YXEY"),Ou=n("+GbP"),Su=n("mp4z"),Mu=function(){},Eu=function(){},Pu=n("HZ5C"),Iu=n("7OPe"),Ru=n("/KiA"),Du=n("r/Om"),Nu=n("tXwt"),ju=n("j4Le"),Lu=n("8AXl"),Uu=function(){function e(){}return e.prototype.send=function(e){for(var t=[],n=1;nn.length){o=0;var i=n.indexOf(t.substr(0,1)),r=n.indexOf(t.substr(1,1));++r>n.length&&(r=0,i++),t=n[i]+n[r]+n[o]}return t}(e.keymaps,o.abbreviation),o.name=d(e.keymaps,o.name),o.isDefault=0===e.keymaps.length,n.keymaps=f(e.keymaps,o);break;case s.a.EDIT_NAME:if(!Object(u.d)(t.payload.name))break;var i=t.payload.name.trim(),r=null;if(e.keymaps.some(function(e){return e.abbreviation===t.payload.abbr&&(r=e),e.name===i&&e.abbreviation!==t.payload.abbr}))break;var m=Object.assign(new l.Keymap,r,{name:i});n.keymaps=f(e.keymaps,m,function(e){return e.abbreviation!==m.abbreviation});break;case s.a.EDIT_ABBR:var g=t.payload.newAbbr.toUpperCase(),v=e.keymaps.some(function(e){return e.name!==t.payload.name&&e.abbreviation===g});n.keymaps=e.keymaps.map(function(e){return e=Object.assign(new l.Keymap,e),v||e.abbreviation!==t.payload.abbr?e=e.renameKeymap(t.payload.abbr,t.payload.newAbbr):e.abbreviation=g,e});break;case s.a.SET_DEFAULT:n.keymaps=e.keymaps.map(function(e){return(e.abbreviation===t.payload||e.isDefault)&&((e=Object.assign(new l.Keymap,e)).isDefault=e.abbreviation===t.payload),e});break;case s.a.REMOVE:var b,k=e.keymaps.filter(function(e){return e.abbreviation!==t.payload||(b=e.isDefault,!1)});b&&k.length>0&&(k[0]=Object.assign(new l.Keymap,k[0],{isDefault:!0})),n.keymaps=k.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"keymapAbbreviation",t.payload),e});break;case s.a.SAVE_KEY:var _=t.payload.key,w=t.payload.layer,A=t.payload.module,T=t.payload.keyAction,C=T.action,x=t.payload.keymap,O=C instanceof l.SwitchLayerAction;n.keymaps=e.keymaps.map(function(e){return(T.remapOnAllKeymap||e.abbreviation===x.abbreviation)&&((e=new l.Keymap(e)).layers=e.layers.map(function(e,t){if(T.remapOnAllLayer||t===w||O){e=new l.Layer(e);var n=l.KeyActionHelper.createKeyAction(C);if(O)if(0===t||t-1===C.layer)y(e,A,_,n);else{var o=e.modules[A].keyActions[_];o&&o instanceof l.SwitchLayerAction&&y(e,A,_,null)}else y(e,A,_,n)}return e})),e});break;case s.a.CHECK_MACRO:n.keymaps=e.keymaps.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"_macroId",t.payload),e});break;case s.b.ADD:(S=new l.Macro).id=p(e.macros),S.name=d(e.macros,"New macro"),S.isLooped=!1,S.isPrivate=!0,S.macroActions=[],n.macros=f(e.macros,S);break;case s.b.DUPLICATE:var S;(S=new l.Macro(t.payload)).name=d(e.macros,S.name),S.id=p(e.macros),n.macros=f(e.macros,S);break;case s.b.EDIT_NAME:if(!Object(u.d)(t.payload.name))break;var M=t.payload.name.trim(),E=null;if(e.macros.some(function(e){return e.id===t.payload.id&&(E=e),e.id!==t.payload.id&&e.name===M}))break;var P=Object.assign(new l.Macro,E,{name:M});n.macros=f(e.macros,P,function(e){return e.id!==P.id});break;case s.b.REMOVE:var I=t.payload;n.macros=e.macros.filter(function(e){return e.id!==I});for(var R=0;Rt.payload.oldIndex&&--n,(e=new l.Macro(e)).macroActions.splice(n,0,e.macroActions.splice(t.payload.oldIndex,1)[0])}return e});break;case a.a.RENAME_USER_CONFIGURATION:Object(u.d)(t.payload)&&(n.deviceName=t.payload.trim());break;case a.a.SET_USER_CONFIGURATION_VALUE:n[t.payload.propertyName]=t.payload.value;break;case s.a.EDIT_DESCRIPTION:var H=t.payload;n.keymaps=e.keymaps.map(function(e){return e.abbreviation===H.abbr&&(e.description=H.description),e})}return n},t.e=function(){return function(e){return e.map(function(e){return e.userConfiguration})}},t.b=function(){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}},t.a=function(e){return void 0===e?function(e){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(e).map(function(e){return e.find(function(e){return e.isDefault})})}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(t).map(function(t){return t.find(function(t){return t.abbreviation===e})})}},t.d=function(){return function(e){return e.map(function(e){return e.userConfiguration.macros})}},t.c=function(e){return isNaN(e)?function(){return o.Observable.of(void 0)}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.macros})}(t).map(function(t){return t.find(function(t){return t.id===e})})}};var o=n("rCTf"),i=n("1APj"),r=(n.n(i),n("+pb+")),l=(n.n(r),n("gI3A")),s=(n.n(l),n("WP8/")),a=n("at4H"),u=n("Lt3n"),c=new l.UserConfiguration;function d(e,t){var n=1,o=/ \(\d+\)$/g,i=t.replace(o,"");return e.forEach(function(e){e.name.replace(o,"")===i&&n++}),i+" ("+n+")"}function p(e){var t=0;return e.forEach(function(e){e.id>t&&(t=e.id)}),t+1}function f(e,t,n){void 0===n&&(n=function(){return!0});for(var o=[],i=!1,r=0,l=e;r0&&(o.push(t),i=!0),n(s)&&o.push(s)}return i||o.push(t),o}function h(e,t,n){for(var o=[],i=0;i"},e.prototype.renameKeymap=function(t,n){var o,i=this,r=!1;if(this.modules.forEach(function(e,l){var s=e.renameKeymap(t,n);s!==e&&(r||(o=i.modules.slice(),r=!0),o[l]=s)}),r){var l=Object.assign(new e,this);return l.modules=o,l}return this},e}()},zF5W:function(e,t,n){var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e="11.1.0";function t(e){return null!==e&&void 0!==e}function n(e){e.preventDefault()}function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function i(e,t,n){n>0&&(a(e,t),setTimeout(function(){u(e,t)},n))}function r(e){return Math.max(Math.min(e,100),0)}function l(e){return Array.isArray(e)?e:[e]}function s(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function a(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function u(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function c(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function d(e,t){return 100/(t-e)}function p(e,t){return 100*t/(e[1]-e[0])}function f(e,t){for(var n=1;e>=t[n];)n+=1;return n}function h(t,n,i){var r;if("number"==typeof n&&(n=[n]),!Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' contains invalid value.");if(!o(r="min"===t?0:"max"===t?100:parseFloat(t))||!o(n[0]))throw new Error("noUiSlider ("+e+"): 'range' value isn't numeric.");i.xPct.push(r),i.xVal.push(n[0]),r?i.xSteps.push(!isNaN(n[1])&&n[1]):isNaN(n[1])||(i.xSteps[0]=n[1]),i.xHighestCompleteStep.push(0)}function y(e,t,n){if(!t)return!0;n.xSteps[e]=p([n.xVal[e],n.xVal[e+1]],t)/d(n.xPct[e],n.xPct[e+1]);var o=Math.ceil(Number(((n.xVal[e+1]-n.xVal[e])/n.xNumSteps[e]).toFixed(3))-1);n.xHighestCompleteStep[e]=n.xVal[e]+n.xNumSteps[e]*o}function m(e,t,n){var o;this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t;var i=[];for(o in e)e.hasOwnProperty(o)&&i.push([e[o],o]);for(i.sort(i.length&&"object"==typeof i[0][0]?function(e,t){return e[0][0]-t[0][0]}:function(e,t){return e[0]-t[0]}),o=0;o=e.slice(-1)[0])return 100;var o=f(n,e),i=t[o-1],r=t[o];return i+function(e,t){return p(e,e[0]<0?t+Math.abs(e[0]):t-e[0])}([e[o-1],e[o]],n)/d(i,r)}(this.xVal,this.xPct,e)},m.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var o=f(n,t),i=t[o-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([e[o-1],e[o]],(n-i)*d(i,t[o]))}(this.xVal,this.xPct,e)},m.prototype.getStep=function(e){return function(e,t,n,o){if(100===o)return o;var i=f(o,e),r=e[i-1],l=e[i];return n?o-r>(l-r)/2?l:r:t[i-1]?e[i-1]+function(e,t){return Math.round(e/t)*t}(o-e[i-1],t[i-1]):o}(this.xPct,this.xSteps,this.snap,e)},m.prototype.getNearbySteps=function(e){var t=f(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t-0],step:this.xNumSteps[t-0],highestStep:this.xHighestCompleteStep[t-0]}}},m.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(s);return Math.max.apply(null,e)},m.prototype.convert=function(e){return this.getStep(this.toStepping(e))};var g={to:function(e){return void 0!==e&&e.toFixed(2)},from:Number};function v(t){if(function(e){return"object"==typeof e&&"function"==typeof e.to&&"function"==typeof e.from}(t))return!0;throw new Error("noUiSlider ("+e+"): 'format' requires 'to' and 'from' methods.")}function b(t,n){if(!o(n))throw new Error("noUiSlider ("+e+"): 'step' is not numeric.");t.singleStep=n}function k(t,n){if("object"!=typeof n||Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' is not an object.");if(void 0===n.min||void 0===n.max)throw new Error("noUiSlider ("+e+"): Missing 'min' or 'max' in 'range'.");if(n.min===n.max)throw new Error("noUiSlider ("+e+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new m(n,t.snap,t.singleStep)}function _(t,n){if(n=l(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider ("+e+"): 'start' option is incorrect.");t.handles=n.length,t.start=n}function w(t,n){if(t.snap=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'snap' option must be a boolean.")}function A(t,n){if(t.animate=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animate' option must be a boolean.")}function T(t,n){if(t.animationDuration=n,"number"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animationDuration' option must be a number.")}function C(t,n){var o,i=[!1];if("lower"===n?n=[!0,!1]:"upper"===n&&(n=[!1,!0]),!0===n||!1===n){for(o=1;o=100)throw new Error("noUiSlider ("+e+"): 'padding' option must not exceed 100% of the range.")}}function E(t,n){switch(n){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+e+"): 'direction' option was not recognized.")}}function P(t,n){if("string"!=typeof n)throw new Error("noUiSlider ("+e+"): 'behaviour' must be a string containing options.");var o=n.indexOf("tap")>=0,i=n.indexOf("drag")>=0,r=n.indexOf("fixed")>=0,l=n.indexOf("snap")>=0,s=n.indexOf("hover")>=0;if(r){if(2!==t.handles)throw new Error("noUiSlider ("+e+"): 'fixed' behaviour must be used with 2 handles");O(t,t.start[1]-t.start[0])}t.events={tap:o||l,drag:i,fixed:r,snap:l,hover:s}}function I(t,n){if(!1!==n)if(!0===n){t.tooltips=[];for(var o=0;o= 2) required for mode 'count'.");var i=n-1,r=100/i;for(n=[];i--;)n[i]=i*r;n.push(100),t="positions"}return"positions"===t?n.map(function(e){return C.fromStepping(o?C.getStep(e):e)}):"values"===t?o?n.map(function(e){return C.fromStepping(C.getStep(C.toStepping(e)))}):n:void 0}(n,t.values||!1,t.stepped||!1),s=function(e,t,n){var o,i={},r=C.xVal[0],l=C.xVal[C.xVal.length-1],s=!1,a=!1,u=0;return o=n.slice().sort(function(e,t){return e-t}),(n=o.filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==r&&(n.unshift(r),s=!0),n[n.length-1]!==l&&(n.push(l),a=!0),n.forEach(function(o,r){var l,c,d,p,f,h,y,m,g=o,v=n[r+1];if("steps"===t&&(l=C.xNumSteps[r]),l||(l=v-g),!1!==g&&void 0!==v)for(l=Math.max(l,1e-7),c=g;c<=v;c=(c+l).toFixed(7)/1){for(m=(f=(p=C.toStepping(c))-u)/(y=Math.round(f/e)),d=1;d<=y;d+=1)i[(u+d*m).toFixed(5)]=["x",0];h=n.indexOf(c)>-1?1:"steps"===t?2:0,!r&&s&&(h=0),c===v&&a||(i[p.toFixed(5)]=[c,h]),u=p}}),i}(i,n,l),u=t.format||{to:Math.round};return y=_.appendChild(function(e,t,n){var i=S.createElement("div"),r=[o.cssClasses.valueNormal,o.cssClasses.valueLarge,o.cssClasses.valueSub],l=[o.cssClasses.markerNormal,o.cssClasses.markerLarge,o.cssClasses.markerSub],s=[o.cssClasses.valueHorizontal,o.cssClasses.valueVertical],u=[o.cssClasses.markerHorizontal,o.cssClasses.markerVertical];function c(e,t){var n=t===o.cssClasses.value;return t+" "+(n?s:u)[o.ort]+" "+(n?r:l)[e]}return a(i,o.cssClasses.pips),a(i,0===o.ort?o.cssClasses.pipsHorizontal:o.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r){r[1]=r[1]&&t?t(r[0],r[1]):r[1];var l=I(i,!1);l.className=c(r[1],o.cssClasses.marker),l.style[o.style]=e+"%",r[1]&&((l=I(i,!1)).className=c(r[1],o.cssClasses.value),l.setAttribute("data-value",r[0]),l.style[o.style]=e+"%",l.innerText=n.to(r[0]))}(r,e[r])}),i}(s,r,u))}function U(){var e=d.getBoundingClientRect(),t="offset"+["Width","Height"][o.ort];return 0===o.ort?e.width||d[t]:e.height||d[t]}function V(e,t,n,i){var r=function(r){return!!(r=function(e,t,n){var o,i,r=0===e.type.indexOf("touch"),l=0===e.type.indexOf("mouse"),s=0===e.type.indexOf("pointer");if(0===e.type.indexOf("MSPointer")&&(s=!0),r){var a=function(e){return e.target===n||n.contains(e.target)};if("touchstart"===e.type){var u=Array.prototype.filter.call(e.touches,a);if(u.length>1)return!1;o=u[0].pageX,i=u[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,a);if(!d)return!1;o=d.pageX,i=d.pageY}}return t=t||c(S),(l||s)&&(o=e.clientX+t.x,i=e.clientY+t.y),e.pageOffset=t,e.points=[o,i],e.cursor=l||s,e}(r,i.pageOffset,i.target||t))&&!(_.hasAttribute("disabled")&&!i.doNotReject)&&(s=o.cssClasses.tap,!(((l=_).classList?l.classList.contains(s):new RegExp("\\b"+s+"\\b").test(l.className))&&!i.doNotReject)&&!(e===b.start&&void 0!==r.buttons&&r.buttons>1)&&(!i.hover||!r.buttons)&&(k||r.preventDefault(),r.calcPoint=r.points[o.ort],void n(r,i)));var l,s},l=[];return e.split(" ").forEach(function(e){t.addEventListener(e,r,!!k&&{passive:!0}),l.push([e,r])}),l}function F(e){var t,n,i,l,s,a,u=100*(e-(n=o.ort,i=(t=d).getBoundingClientRect(),s=(l=t.ownerDocument).documentElement,a=c(l),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?i.top+a.y-s.clientTop:i.left+a.x-s.clientLeft))/U();return u=r(u),o.dir?100-u:u}function K(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function B(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return H(e,t);var n=(o.dir?-1:1)*(e.calcPoint-t.startCalcPoint);Q(n>0,100*n/t.baseSize,t.locations,t.handleNumbers)}function H(e,t){t.handle&&(u(t.handle,o.cssClasses.active),T-=1),t.listeners.forEach(function(e){M.removeEventListener(e[0],e[1])}),0===T&&(u(_,o.cssClasses.drag),Z(),e.cursor&&(E.style.cursor="",E.removeEventListener("selectstart",n))),t.handleNumbers.forEach(function(e){z("change",e),z("set",e),z("end",e)})}function W(e,t){var i;if(1===t.handleNumbers.length){var r=p[t.handleNumbers[0]];if(r.hasAttribute("disabled"))return!1;T+=1,a(i=r.children[0],o.cssClasses.active)}e.stopPropagation();var l=[],s=V(b.move,M,B,{target:e.target,handle:i,listeners:l,startCalcPoint:e.calcPoint,baseSize:U(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:w.slice()}),u=V(b.end,M,H,{target:e.target,handle:i,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers}),c=V("mouseout",M,K,{target:e.target,handle:i,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers});l.push.apply(l,s.concat(u,c)),e.cursor&&(E.style.cursor=getComputedStyle(e.target).cursor,p.length>1&&a(_,o.cssClasses.drag),E.addEventListener("selectstart",n,!1)),t.handleNumbers.forEach(function(e){z("start",e)})}function q(e,t){O[e]=O[e]||[],O[e].push(t),"update"===e.split(".")[0]&&p.forEach(function(e,t){z("update",t)})}function z(e,t,n){Object.keys(O).forEach(function(i){var r=i.split(".")[0];e===r&&O[i].forEach(function(e){e.call(h,x.map(o.format.to),t,x.slice(),n||!1,w.slice())})})}function $(e){return e+"%"}function G(e,t,n,i,l,s){return p.length>1&&(i&&t>0&&(n=Math.max(n,e[t-1]+o.margin)),l&&t1&&o.limit&&(i&&t>0&&(n=Math.min(n,e[t-1]+o.limit)),l&&t1?o.forEach(function(e,n){var o=G(i,e,i[e]+t,r[n],l[n],!1);!1===o?t=0:(t=o-i[e],i[e]=o)}):r=l=[!0];var s=!1;o.forEach(function(e,o){s=X(e,n[e]+t,r[o],l[o])||s}),s&&o.forEach(function(e){z("update",e),z("slide",e)})}function J(e,t){return o.dir?100-e-t:e}function Z(){A.forEach(function(e){p[e].style.zIndex=3+(p.length+(w[e]>50?-1:1)*e)})}function X(e,t,n,i){return!1!==(t=G(w,e,t,n,i,!1))&&(function(e,t){w[e]=t,x[e]=C.fromStepping(t);var n="translate("+Y($(J(t,0)-P),"0")+")";p[e].style[o.transformRule]=n,ee(e),ee(e+1)}(e,t),!0)}function ee(e){if(f[e]){var t=0,n=100;0!==e&&(t=w[e-1]),e!==f.length-1&&(n=w[e]);var i=n-t,r="translate("+Y($(J(t,i)),"0")+")",l="scale("+Y(i/100,"1")+")";f[e].style[o.transformRule]=r+" "+l}}function te(e,t){var n=l(e);t=void 0===t||!!t,o.animate&&!(void 0===w[0])&&i(_,o.cssClasses.tap,o.animationDuration),A.forEach(function(e){X(e,function(e,t){return null===e||!1===e||void 0===e?w[t]:("number"==typeof e&&(e=String(e)),e=o.format.from(e),!1===(e=C.toStepping(e))||isNaN(e)?w[t]:e)}(n[e],e),!0,!1)}),A.forEach(function(e){X(e,w[e],!0,!0)}),Z(),A.forEach(function(e){z("update",e),null!==n[e]&&t&&z("set",e)})}function ne(){var e=x.map(o.format.to);return 1===e.length?e[0]:e}return a(m=_,o.cssClasses.target),a(m,0===o.dir?o.cssClasses.ltr:o.cssClasses.rtl),a(m,0===o.ort?o.cssClasses.horizontal:o.cssClasses.vertical),d=I(m,o.cssClasses.base),function(e,t){var n=I(t,o.cssClasses.connects);p=[],(f=[]).push(D(n,e[0]));for(var i=0;in.stepAfter.startValue&&(i=n.stepAfter.startValue-o),r=o>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&o-n.stepBefore.highestStep,100===e?i=null:0===e&&(r=null);var l=C.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(l))),null!==r&&!1!==r&&(r=Number(r.toFixed(l))),[r,i]})},on:q,off:function(e){var t=e&&e.split(".")[0],n=t&&e.substring(t.length);Object.keys(O).forEach(function(e){var o=e.split(".")[0],i=e.substring(o.length);t&&t!==o||n&&n!==i||delete O[e]})},get:ne,set:te,reset:function(e){te(o.start,e)},__moveHandles:function(e,t,n){Q(e,t,w,n)},options:s,updateOptions:function(e,t){var n=ne(),i=["margin","limit","padding","range","animate","snap","step","format"];i.forEach(function(t){void 0!==e[t]&&(s[t]=e[t])});var r=L(s);i.forEach(function(t){void 0!==e[t]&&(o[t]=r[t])}),C=r.spectrum,o.margin=r.margin,o.limit=r.limit,o.padding=r.padding,o.pips&&j(o.pips),w=[],te(e.start||n,t)},target:_,removePips:N,pips:j},o.pips&&j(o.pips),o.tooltips&&(v=p.map(function(e,t){return!!o.tooltips[t]&&I(e.firstChild,o.cssClasses.tooltip)}),q("update",function(e,t,n){if(v[t]){var i=e[t];!0!==o.tooltips[t]&&(i=o.tooltips[t].to(n[t])),v[t].innerHTML=i}})),q("update",function(e,t,n,i,r){A.forEach(function(e){var t=p[e],i=G(w,e,0,!0,!0,!0),l=G(w,e,100,!0,!0,!0),s=r[e],a=o.ariaFormat.to(n[e]);t.children[0].setAttribute("aria-valuemin",i.toFixed(1)),t.children[0].setAttribute("aria-valuemax",l.toFixed(1)),t.children[0].setAttribute("aria-valuenow",s.toFixed(1)),t.children[0].setAttribute("aria-valuetext",a)})}),h}(t,L(o),o);return t.noUiSlider=s,s}}})?o.apply(t,[]):o)||(e.exports=i)},zQPq:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("B00U");t.Action=function(e){function t(t,n){e.call(this)}return o(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(i.Subscription)}},[0]); \ No newline at end of file diff --git a/main.dd77988af013b1968fad.bundle.js b/main.dd77988af013b1968fad.bundle.js deleted file mode 100644 index 402c4885..00000000 --- a/main.dd77988af013b1968fad.bundle.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([0],{"+3eL":function(e,t,n){"use strict";var i,o=n("WhVc");function r(){try{return i.apply(this,arguments)}catch(e){return o.errorObject.e=e,o.errorObject}}t.tryCatch=function(e){return i=e,r}},"+4ur":function(e,t,n){"use strict";var i=n("LxNc");t._catch=function(e){return i.catchError(e)(this)}},"+EXD":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf"),r=n("CURp"),l=n("wAkD");t.DeferObservable=function(e){function t(t){e.call(this),this.observableFactory=t}return i(t,e),t.create=function(e){return new t(e)},t.prototype._subscribe=function(e){return new s(e,this.observableFactory)},t}(o.Observable);var s=function(e){function t(t,n){e.call(this,t),this.factory=n,this.tryDefer()}return i(t,e),t.prototype.tryDefer=function(){try{this._callFactory()}catch(e){this._error(e)}},t.prototype._callFactory=function(){var e=this.factory();e&&this.add(r.subscribeToResult(this,e))},t}(l.OuterSubscriber)},"+GbP":function(e,t,n){"use strict";var i=n("TToO").__decorate,o=n("WT6e"),r=n("xiuF"),l=n("LKU8"),s=function(){};s=i([o.NgModule({exports:[r.DragulaDirective],declarations:[r.DragulaDirective],providers:[l.DragulaService]})],s),t.DragulaModule=s},"+Zxz":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.defaultIfEmpty=function(e){return void 0===e&&(e=null),function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.defaultValue))},e}(),l=function(e){function t(t,n){e.call(this,t),this.defaultValue=n,this.isEmpty=!0}return i(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(o.Subscriber)},"+ayw":function(e,t,n){"use strict";var i=n("sTFn");t.share=function(){return i.share()(this)}},"+pb+":function(e,t,n){"use strict";var i=n("rCTf"),o=n("xAJs");i.Observable.prototype.map=o.map},"/8Ia":function(e,t,n){"use strict";var i=n("xgwM").__decorate,o=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd");t.ModuleConfiguration=function(){function e(){}return e.prototype.fromJsonObject=function(e){return this.id=e.id,this.pointerMode=e.pointerMode,this.deceleratedPointerSpeedMultiplier=e.deceleratedPointerSpeedMultiplier,this.basePointerSpeedMultiplier=e.basePointerSpeedMultiplier,this.acceleratedPointerSpeedMultiplier=e.acceleratedPointerSpeedMultiplier,this.angularShift=e.angularShift,this.modLayerPointerFunction=e.modLayerPointerFunction,this.fnLayerPointerFunction=e.fnLayerPointerFunction,this.mouseLayerPointerFunction=e.mouseLayerPointerFunction,this},e.prototype.fromBinary=function(e){return this.id=e.readUInt8(),this.pointerMode=e.readInt8(),this.deceleratedPointerSpeedMultiplier=e.readUInt8(),this.basePointerSpeedMultiplier=e.readUInt8(),this.acceleratedPointerSpeedMultiplier=e.readUInt8(),this.angularShift=e.readUInt16(),this.modLayerPointerFunction=e.readUInt8(),this.fnLayerPointerFunction=e.readUInt8(),this.mouseLayerPointerFunction=e.readUInt8(),this},e.prototype.toJsonObject=function(){return{id:this.id,pointerMode:this.pointerMode,deceleratedPointerSpeedMultiplier:this.deceleratedPointerSpeedMultiplier,basePointerSpeedMultiplier:this.basePointerSpeedMultiplier,acceleratedPointerSpeedMultiplier:this.acceleratedPointerSpeedMultiplier,angularShift:this.angularShift,modeLayerPointerFunction:this.modLayerPointerFunction,fnLayerPointerFunction:this.fnLayerPointerFunction,mouseLayerPointerFunction:this.mouseLayerPointerFunction}},e.prototype.toBinary=function(e){e.writeUInt8(this.id),e.writeUInt8(this.pointerMode),e.writeUInt8(this.deceleratedPointerSpeedMultiplier),e.writeUInt8(this.basePointerSpeedMultiplier),e.writeUInt8(this.acceleratedPointerSpeedMultiplier),e.writeUInt16(this.angularShift),e.writeUInt8(this.modLayerPointerFunction),e.writeUInt8(this.fnLayerPointerFunction),e.writeUInt8(this.mouseLayerPointerFunction)},e.prototype.toString=function(){return''},i([r.assertUInt8,o("design:type",Number)],e.prototype,"id",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"pointerMode",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"deceleratedPointerSpeedMultiplier",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"basePointerSpeedMultiplier",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"acceleratedPointerSpeedMultiplier",void 0),i([r.assertUInt16,o("design:type",Number)],e.prototype,"angularShift",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"modLayerPointerFunction",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"fnLayerPointerFunction",void 0),i([r.assertUInt8,o("design:type",Number)],e.prototype,"mouseLayerPointerFunction",void 0),e}()},"/KiA":function(e,t,n){"use strict";t.g=function(e,t){switch(void 0===e&&(e=d),t.type){case r.a.APP_STARTED:return c({},e,{started:!0});case r.a.APPLY_COMMAND_LINE_ARGS:return c({},e,{showAddonMenu:t.payload.addons});case r.a.APP_SHOW_NOTIFICATION:return t.payload.type!==o.NotificationType.Undoable?e:c({},e,{undoableNotification:t.payload,navigationCountAfterNotification:0});case i.b:var n=c({},e);return n.navigationCountAfterNotification++,n.navigationCountAfterNotification>1&&(n.undoableNotification=null),n;case r.a.UNDO_LAST_SUCCESS:case r.a.DISMISS_UNDO_NOTIFICATION:return c({},e,{undoableNotification:null});case l.a.LOAD_USER_CONFIG_SUCCESS:case l.a.SAVE_USER_CONFIG_SUCCESS:return c({},e,{prevUserConfig:t.payload,configLoading:!1});case l.a.LOAD_CONFIG_FROM_DEVICE:case l.a.LOAD_USER_CONFIG:return c({},e,{configLoading:!0});case r.a.LOAD_HARDWARE_CONFIGURATION_SUCCESS:return c({},e,{hardwareConfig:t.payload});case s.a.CONNECTION_STATE_CHANGED:return!0===t.payload?e:c({},e,{hardwareConfig:null});case r.a.PRIVILEGE_WHAT_WILL_THIS_DO:return c({},e,{privilegeWhatWillThisDoClicked:!0});case r.a.SETUP_PERMISSION_ERROR:return c({},e,{permissionError:t.payload});case s.a.SET_PRIVILEGE_ON_LINUX:return c({},e,{permissionError:null});default:return e}},n.d(t,"i",function(){return p}),n.d(t,"f",function(){return f}),n.d(t,"d",function(){return h}),n.d(t,"h",function(){return y}),n.d(t,"c",function(){return m}),n.d(t,"a",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"e",function(){return b});var i=n("r/Om"),o=n("gI3A"),r=(n.n(o),n("Ji5S")),l=n("at4H"),s=n("fYQU"),a=n("xW7+"),u=n("Lt3n"),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof i.Observable?e[0]:l.mergeAll(n)(new o.ArrayObservable(e,s))}},"1Rl6":function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("4uS6")),i(n("r/AL")),i(n("gohO")),i(n("3EbR")),i(n("3uOy")),i(n("z+Yt")),i(n("ZTdU")),i(n("R30b")),i(n("ov8r")),i(n("/8Ia")),i(n("W1wB")),t.SCANCODES=n("1xu2"),t.SECONDARY_ROLES=n("KqLa")},"1kxm":function(e,t,n){"use strict";t.FastMap=function(){function e(){this.values={}}return e.prototype.delete=function(e){return this.values[e]=null,!0},e.prototype.set=function(e,t){return this.values[e]=t,this},e.prototype.get=function(e){return this.values[e]},e.prototype.forEach=function(e,t){var n=this.values;for(var i in n)n.hasOwnProperty(i)&&null!==n[i]&&e.call(t,n[i],i)},e.prototype.clear=function(){this.values={}},e}()},"1r8+":function(e,t,n){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length}},"1xu2":function(e,t){e.exports=[{text:"Letter",children:[{id:"4",text:"A"},{id:"5",text:"B"},{id:"6",text:"C"},{id:"7",text:"D"},{id:"8",text:"E"},{id:"9",text:"F"},{id:"10",text:"G"},{id:"11",text:"H"},{id:"12",text:"I"},{id:"13",text:"J"},{id:"14",text:"K"},{id:"15",text:"L"},{id:"16",text:"M"},{id:"17",text:"N"},{id:"18",text:"O"},{id:"19",text:"P"},{id:"20",text:"Q"},{id:"21",text:"R"},{id:"22",text:"S"},{id:"23",text:"T"},{id:"24",text:"U"},{id:"25",text:"V"},{id:"26",text:"W"},{id:"27",text:"X"},{id:"28",text:"Y"},{id:"29",text:"Z"},{id:"100",text:"| ISO"}]},{text:"Number",children:[{id:"39",text:"0 )"},{id:"30",text:"1 !"},{id:"31",text:"2 @"},{id:"32",text:"3 #"},{id:"33",text:"4 $"},{id:"34",text:"5 %"},{id:"35",text:"6 ^"},{id:"36",text:"7 &"},{id:"37",text:"8 *"},{id:"38",text:"9 ("}]},{text:"Punctuation",children:[{id:"45",text:"- _"},{id:"46",text:"= +"},{id:"47",text:"[ {"},{id:"48",text:"] }"},{id:"49",text:"\\ |"},{id:"51",text:"; :"},{id:"52",text:"' \""},{id:"53",text:"` ~"},{id:"54",text:", <"},{id:"55",text:". >"},{id:"56",text:"/ ?"}]},{text:"Whitespace",children:[{id:"40",additional:{explanation:"Return"},text:"Enter"},{id:"44",text:"Space"},{id:"43",text:"Tab"}]},{text:"Miscellaneous",children:[{id:"41",text:"Escape"},{id:"42",text:"Backspace"},{id:"73",text:"Insert"},{id:"76",text:"Delete"},{id:"101",text:"Menu"},{id:"57",text:"Caps Lock"},{id:"71",text:"Scroll Lock"},{id:"70",text:"Print Screen"},{id:"72",text:"Pause"}]},{text:"Function",children:[{id:"58",text:"F1"},{id:"59",text:"F2"},{id:"60",text:"F3"},{id:"61",text:"F4"},{id:"62",text:"F5"},{id:"63",text:"F6"},{id:"64",text:"F7"},{id:"65",text:"F8"},{id:"66",text:"F9"},{id:"67",text:"F10"},{id:"68",text:"F11"},{id:"69",text:"F12"},{id:"104",text:"F13"},{id:"105",text:"F14"},{id:"106",text:"F15"},{id:"107",text:"F16"},{id:"108",text:"F17"},{id:"109",text:"F18"},{id:"110",text:"F19"},{id:"111",text:"F20"},{id:"112",text:"F21"},{id:"113",text:"F22"},{id:"114",text:"F23"},{id:"115",text:"F24"}]},{text:"Navigation",children:[{id:"75",additional:{explanation:"PgUp"},text:"Page Up"},{id:"78",additional:{explanation:"PgDn"},text:"Page Down"},{id:"74",text:"Home"},{id:"77",text:"End"},{id:"80",text:"Left Arrow"},{id:"79",text:"Right Arrow"},{id:"82",text:"Up Arrow"},{id:"81",text:"Down Arrow"}]},{text:"Media",children:[{id:"127",text:"Mute",additional:{type:"media",scancode:226}},{id:"128",text:"Volume Up",additional:{type:"media",scancode:233}},{id:"129",text:"Volume Down",additional:{type:"media",scancode:234}},{id:"130",text:"Next Track",additional:{type:"media",scancode:181}},{id:"131",text:"Previous Track",additional:{type:"media",scancode:182}},{id:"132",text:"Stop/Eject",additional:{type:"media",scancode:204}},{id:"133",text:"Play/Pause",additional:{type:"media",scancode:205}},{id:"134",text:"Play",additional:{type:"media",scancode:176}},{id:"135",text:"Pause",additional:{type:"media",scancode:177}},{id:"136",text:"Stop",additional:{type:"media",scancode:183}},{id:"137",text:"Eject",additional:{type:"media",scancode:184}},{id:"138",text:"WWW",additional:{type:"media",scancode:138}}]},{text:"Launch application",children:[{id:"142",text:"Launch Web Browser",additional:{type:"media",scancode:406}},{id:"143",text:"Launch Email Client",additional:{type:"media",scancode:394}},{id:"144",text:"Launch Calculator",additional:{type:"media",scancode:402}}]},{text:"System",children:[{id:"139",text:"Power Down",additional:{type:"system",scancode:129}},{id:"140",text:"Sleep",additional:{type:"system",scancode:130}},{id:"141",text:"Wake Up",additional:{type:"system",scancode:131}}]},{text:"Numpad",children:[{id:"83",text:"NumLock"},{id:"84",additional:{explanation:"slash"},text:"/"},{id:"85",additional:{explanation:"asterisk"},text:"*"},{id:"86",additional:{explanation:"minus"},text:"-"},{id:"87",additional:{explanation:"plus"},text:"+"},{id:"88",text:"Enter"},{id:"89",additional:{explanation:"one"},text:"1"},{id:"90",additional:{explanation:"two"},text:"2"},{id:"91",additional:{explanation:"three"},text:"3"},{id:"92",additional:{explanation:"four"},text:"4"},{id:"93",additional:{explanation:"five"},text:"5"},{id:"94",additional:{explanation:"six"},text:"6"},{id:"95",additional:{explanation:"seven"},text:"7"},{id:"96",additional:{explanation:"eight"},text:"8"},{id:"97",additional:{explanation:"nine"},text:"9"},{id:"98",additional:{explanation:"zero"},text:"0"},{id:"99",additional:{explanation:"period"},text:"."}]}]},"215F":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.takeWhile=function(e){return function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.predicate))},e}(),l=function(e){function t(t,n){e.call(this,t),this.predicate=n,this.index=0}return i(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):n.complete()},t}(o.Subscriber)},"2AEF":function(e,t,n){"use strict";var i=n("13YQ");t.exhaustMap=function(e,t){return i.exhaustMap(e,t)(this)}},"2ER/":function(e,t,n){"use strict";t.MapPolyfill=function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?void 0:this._values[t]},e.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},e.prototype.delete=function(e){var t=this._keys.indexOf(e);return-1!==t&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},e.prototype.forEach=function(e,t){for(var n=0;n'},e.prototype.renameKeymap=function(t,n){var i,o=this,r=!1;if(this.layers.forEach(function(e,l){var s=e.renameKeymap(t,n);s!==e&&(r||(i=o.layers.slice(),r=!0),i[l]=s)}),r){var l=Object.assign(new e,this);return l.layers=i,l}return this},e.prototype.normalize=function(){if(!(this.layers.length<1))for(var e=0;ei.LastKeystrokeAction)throw"Invalid "+t+" first byte: "+n}else if(n!==o)throw"Invalid "+t+" first byte: "+n;return n},e.prototype.renameKeymap=function(e,t){return this},e}()},"4uS6":function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n("4KnF")),i(n("I5Xr")),i(n("CfJK")),i(n("78zf")),i(n("HiVc")),i(n("Fq1u")),i(n("9PEG")),i(n("MkTX"));var o=n("wogf");t.KeyActionHelper=o.Helper},"63KW":function(e,t,n){"use strict";(function(e){var i=n("EKta"),o=n("ujcs"),r=n("sOR5");function l(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(l()=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(i)return V(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=a.from(t,i)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,i,o);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,i,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,i,o){var r,l=1,s=e.length,a=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;l=2,s/=2,a/=2,n/=2}function u(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(o){var c=-1;for(r=n;rs&&(n=s-a),r=n;r>=0;r--){for(var d=!0,p=0;po&&(i=o):i=o;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var l=0;l>8,o.push(n%256),o.push(i);return o}(t,e.length-n),e,n,i)}function T(e,t,n){return i.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var i=[],o=t;o239?4:u>223?3:u>191?2:1;if(o+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(r=e[o+1]))&&(a=(31&u)<<6|63&r)>127&&(c=a);break;case 3:l=e[o+2],128==(192&(r=e[o+1]))&&128==(192&l)&&(a=(15&u)<<12|(63&r)<<6|63&l)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:l=e[o+2],s=e[o+3],128==(192&(r=e[o+1]))&&128==(192&l)&&128==(192&s)&&(a=(15&u)<<18|(63&r)<<12|(63&l)<<6|63&s)>65535&&a<1114112&&(c=a)}null===c?(c=65533,d=1):c>65535&&(i.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),i.push(c),o+=d}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);for(var n="",i=0;ithis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return E(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 T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}).apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,i,o){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var r=o-i,l=n-t,s=Math.min(r,l),u=this.slice(i,o),c=e.slice(t,n),d=0;do)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function x(e,t,n){var i="";n=Math.min(e.length,n);for(var o=t;oo)&&(n=o);for(var r="",l=t;ln)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,i,o,r){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function R(e,t,n,i){t<0&&(t=65535+t+1);for(var o=0,r=Math.min(e.length-n,2);o>>8*(i?o:1-o)}function N(e,t,n,i){t<0&&(t=4294967295+t+1);for(var o=0,r=Math.min(e.length-n,4);o>>8*(i?o:3-o)&255}function D(e,t,n,i,o,r){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,i,r){return r||D(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function U(e,t,n,i,r){return r||D(e,0,n,8),o.write(e,t,n,i,52,8),n+8}a.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t0&&(o*=256);)i+=this[e+--t]*o;return i},a.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=this[e],o=1,r=0;++r=(o*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var i=t,o=1,r=this[e+--i];i>0&&(o*=256);)r+=this[e+--i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[t]=255&e;++r=0&&(r*=256);)this[t+o]=e/r&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var r=0,l=1,s=0;for(this[t]=255&e;++r>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var r=n-1,l=1,s=0;for(this[t+r]=255&e;--r>=0&&(l*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/l>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(r<1e3||!a.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(l+1===i){(t-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function F(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,i){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(t,n("srjU"))},"6BaH":function(e,t,n){"use strict";var i=n("sIYO");t.multicast=function(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new o(r,t));var l=Object.create(n,i.connectableObservableDescriptor);return l.source=n,l.subjectFactory=r,l}};var o=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),o=n(i).subscribe(e);return o.add(t.subscribe(i)),o},e}();t.MulticastOperator=o},"6Yye":function(e,t,n){"use strict";var i=n("rCTf"),o=n("+4ur");i.Observable.prototype.catch=o._catch,i.Observable.prototype._catch=o._catch},"78zf":function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s=n("CmJd"),a=n("4KnF");!function(e){e[e.leftClick=0]="leftClick",e[e.middleClick=1]="middleClick",e[e.rightClick=2]="rightClick",e[e.moveUp=3]="moveUp",e[e.moveDown=4]="moveDown",e[e.moveLeft=5]="moveLeft",e[e.moveRight=6]="moveRight",e[e.scrollUp=7]="scrollUp",e[e.scrollDown=8]="scrollDown",e[e.scrollLeft=9]="scrollLeft",e[e.scrollRight=10]="scrollRight",e[e.accelerate=11]="accelerate",e[e.decelerate=12]="decelerate"}(l=t.MouseActionParam||(t.MouseActionParam={})),t.MouseAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.mouseAction=t.mouseAction,n):n}return i(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.mouseAction=l[e.mouseAction],this},t.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.mouseAction=e.readUInt8(),this},t.prototype.toJsonObject=function(){return{keyActionType:a.keyActionType.MouseAction,mouseAction:l[this.mouseAction]}},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.MouseAction),e.writeUInt8(this.mouseAction)},t.prototype.toString=function(){return''},t.prototype.getName=function(){return"MouseAction"},o([s.assertEnum(l),r("design:type",Number)],t.prototype,"mouseAction",void 0),t}(a.KeyAction)},"7DMc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"AbstractControlDirective",function(){return u}),n.d(t,"AbstractFormGroupDirective",function(){return ie}),n.d(t,"CheckboxControlValueAccessor",function(){return _}),n.d(t,"ControlContainer",function(){return c}),n.d(t,"NG_VALUE_ACCESSOR",function(){return b}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return w}),n.d(t,"DefaultValueAccessor",function(){return T}),n.d(t,"NgControl",function(){return M}),n.d(t,"NgControlStatus",function(){return le}),n.d(t,"NgControlStatusGroup",function(){return se}),n.d(t,"NgForm",function(){return ge}),n.d(t,"NgModel",function(){return Oe}),n.d(t,"NgModelGroup",function(){return we}),n.d(t,"RadioControlValueAccessor",function(){return R}),n.d(t,"FormControlDirective",function(){return Ee}),n.d(t,"FormControlName",function(){return Le}),n.d(t,"FormGroupDirective",function(){return Pe}),n.d(t,"FormArrayName",function(){return De}),n.d(t,"FormGroupName",function(){return Re}),n.d(t,"NgSelectOption",function(){return V}),n.d(t,"SelectControlValueAccessor",function(){return L}),n.d(t,"SelectMultipleControlValueAccessor",function(){return B}),n.d(t,"CheckboxRequiredValidator",function(){return Be}),n.d(t,"EmailValidator",function(){return We}),n.d(t,"MaxLengthValidator",function(){return Ge}),n.d(t,"MinLengthValidator",function(){return ze}),n.d(t,"PatternValidator",function(){return Qe}),n.d(t,"RequiredValidator",function(){return Ke}),n.d(t,"FormBuilder",function(){return Je}),n.d(t,"AbstractControl",function(){return de}),n.d(t,"FormArray",function(){return he}),n.d(t,"FormControl",function(){return pe}),n.d(t,"FormGroup",function(){return fe}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return f}),n.d(t,"NG_VALIDATORS",function(){return p}),n.d(t,"Validators",function(){return y}),n.d(t,"VERSION",function(){return Ze}),n.d(t,"FormsModule",function(){return ot}),n.d(t,"ReactiveFormsModule",function(){return rt}),n.d(t,"\u0275ba",function(){return it}),n.d(t,"\u0275z",function(){return nt}),n.d(t,"\u0275x",function(){return et}),n.d(t,"\u0275y",function(){return tt}),n.d(t,"\u0275a",function(){return k}),n.d(t,"\u0275b",function(){return A}),n.d(t,"\u0275c",function(){return oe}),n.d(t,"\u0275d",function(){return re}),n.d(t,"\u0275e",function(){return ye}),n.d(t,"\u0275f",function(){return Te}),n.d(t,"\u0275g",function(){return Ae}),n.d(t,"\u0275bf",function(){return Xe}),n.d(t,"\u0275bb",function(){return x}),n.d(t,"\u0275bc",function(){return S}),n.d(t,"\u0275h",function(){return P}),n.d(t,"\u0275i",function(){return I}),n.d(t,"\u0275bd",function(){return N}),n.d(t,"\u0275be",function(){return D}),n.d(t,"\u0275j",function(){return Se}),n.d(t,"\u0275k",function(){return Ue}),n.d(t,"\u0275l",function(){return Me}),n.d(t,"\u0275n",function(){return Ne}),n.d(t,"\u0275m",function(){return Ie}),n.d(t,"\u0275o",function(){return j}),n.d(t,"\u0275q",function(){return H}),n.d(t,"\u0275p",function(){return F}),n.d(t,"\u0275s",function(){return Fe}),n.d(t,"\u0275t",function(){return He}),n.d(t,"\u0275v",function(){return $e}),n.d(t,"\u0275u",function(){return qe}),n.d(t,"\u0275w",function(){return Ye}),n.d(t,"\u0275r",function(){return Ve});var i=n("TToO"),o=n("WT6e"),r=n("7rB9"),l=n("ioK+"),s=n("xAJs"),a=n("OE0E"),u=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(u);function d(e){return null==e||0===e.length}var p=new o.InjectionToken("NgValidators"),f=new o.InjectionToken("NgAsyncValidators"),h=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,y=function(){function e(){}return e.min=function(e){return function(t){if(d(t.value)||d(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&ne?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return d(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return h.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(d(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(d(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){return v(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(g);return s.map.call(Object(r.forkJoin)(n),v)}},e}();function m(e){return null!=e}function g(e){var t=Object(o["\u0275isPromise"])(e)?Object(l.fromPromise)(e):e;if(!Object(o["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function v(e){var t=e.reduce(function(e,t){return null!=t?Object(i.__assign)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var b=new o.InjectionToken("NgValueAccessor"),k={provide:b,useExisting:Object(o.forwardRef)(function(){return _}),multi:!0},_=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),A={provide:b,useExisting:Object(o.forwardRef)(function(){return T}),multi:!0},w=new o.InjectionToken("CompositionEventMode"),T=function(){function e(e,t,n){var i;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Object(a.s)()?Object(a.s)().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function C(e){return e.validate?function(t){return e.validate(t)}:e}function O(e){return e.validate?function(t){return e.validate(t)}:e}var x={provide:b,useExisting:Object(o.forwardRef)(function(){return S}),multi:!0},S=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function E(){throw new Error("unimplemented")}var M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return E()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return E()},enumerable:!0,configurable:!0}),t}(u),P={provide:b,useExisting:Object(o.forwardRef)(function(){return R}),multi:!0},I=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),R=function(){function e(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(M),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}(),N={provide:b,useExisting:Object(o.forwardRef)(function(){return D}),multi:!0},D=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),j={provide:b,useExisting:Object(o.forwardRef)(function(){return L}),multi:!0};function U(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var L=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=o["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=U(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,r=0;r1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Q(e){return null!=e?y.compose(e.map(C)):null}function J(e){return null!=e?y.composeAsync(e.map(O)):null}function Z(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(o["\u0275looseIdentical"])(t,n.currentValue)}var X=[_,D,S,L,B,R];function ee(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function te(e,t){if(!t)return null;var n=void 0,i=void 0,o=void 0;return t.forEach(function(t){var r;t.constructor===T?n=t:(r=t,X.some(function(e){return r.constructor===e})?(i&&Y(e,"More than one built-in value accessor matches form control with"),i=t):(o&&Y(e,"More than one custom value accessor matches form control with"),o=t))}),o||i||n||(Y(e,"No valid value accessor for form control with"),null)}function ne(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(c),oe=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),re={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},le=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t}(oe),se=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t}(oe);function ae(e){var t=ce(e)?e.validators:e;return Array.isArray(t)?Q(t):t||null}function ue(e,t){var n=ce(t)?t.asyncValidators:e;return Array.isArray(n)?J(n):n||null}function ce(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var de=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ae(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=ue(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(i.__assign)({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(Object(i.__assign)({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=g(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof fe?e.controls[t]||null:e instanceof he&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){ce(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),pe=function(e){function t(t,n,i){void 0===t&&(t=null);var o=e.call(this,ae(n),ue(i,n))||this;return o._onChange=[],o._applyFormState(t),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(i.__extends)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(de),fe=function(e){function t(t,n,i){var o=e.call(this,ae(n),ue(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){n._throwIfControlMissing(i),n.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(i){n.controls[i]&&n.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof pe?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(i,o){n=n||t.contains(o)&&e(i)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(de),he=function(e){function t(t,n,i){var o=e.call(this,ae(n),ue(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,i){n._throwIfControlMissing(i),n.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,i){n.at(i)&&n.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pe?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(de),ye={provide:c,useExisting:Object(o.forwardRef)(function(){return ge})},me=Promise.resolve(null),ge=function(e){function t(t,n){var i=e.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new o.EventEmitter,i.form=new fe({},Q(t),J(n)),i}return Object(i.__extends)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),q(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ne(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path),i=new fe({});$(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;me.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(c),ve='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',be='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ke='\n
\n
\n \n
\n
',_e=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ve+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+be+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+ke)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+be+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+ke)},e}(),Ae={provide:c,useExisting:Object(o.forwardRef)(function(){return we})},we=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof ge||_e.modelGroupParentException()},t}(ie),Te={provide:M,useExisting:Object(o.forwardRef)(function(){return Oe})},Ce=Promise.resolve(null),Oe=function(e){function t(t,n,i,r){var l=e.call(this)||this;return l.control=new pe,l._registered=!1,l.update=new o.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=i||[],l.valueAccessor=te(l,r),l}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Z(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?W(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){q(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof we)&&this._parent instanceof ie?_e.formGroupNameException():this._parent instanceof we||this._parent instanceof ge||_e.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||_e.missingNameException()},t.prototype._updateValue=function(e){var t=this;Ce.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Ce.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})},t}(M),xe=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ve)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+be+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+ke)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ve)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+be)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e}(),Se={provide:M,useExisting:Object(o.forwardRef)(function(){return Ee})},Ee=function(e){function t(t,n,i){var r=e.call(this)||this;return r.update=new o.EventEmitter,r._rawValidators=t||[],r._rawAsyncValidators=n||[],r.valueAccessor=te(r,i),r}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){xe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(q(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Z(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}(M),Me={provide:c,useExisting:Object(o.forwardRef)(function(){return Pe})},Pe=function(e){function t(t,n){var i=e.call(this)||this;return i._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new o.EventEmitter,i}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return q(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ne(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);$(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);$(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return G(t)}),t.valueAccessor.registerOnTouched(function(){return G(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&q(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=Q(this._validators);this.form.validator=y.compose([this.form.validator,e]);var t=J(this._asyncValidators);this.form.asyncValidator=y.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||xe.missingFormException()},t}(c),Ie={provide:c,useExisting:Object(o.forwardRef)(function(){return Re})},Re=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype._checkParentType=function(){je(this._parent)&&xe.groupParentException()},t}(ie),Ne={provide:c,useExisting:Object(o.forwardRef)(function(){return De})},De=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){je(this._parent)&&xe.arrayParentException()},t}(c);function je(e){return!(e instanceof Re||e instanceof Pe||e instanceof De)}var Ue={provide:M,useExisting:Object(o.forwardRef)(function(){return Le})},Le=function(e){function t(t,n,i,r){var l=e.call(this)||this;return l._added=!1,l.update=new o.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=i||[],l.valueAccessor=te(l,r),l}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){xe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),Z(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Re)&&this._parent instanceof ie?xe.ngModelGroupException():this._parent instanceof Re||this._parent instanceof Pe||this._parent instanceof De||xe.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t}(M),Ve={provide:p,useExisting:Object(o.forwardRef)(function(){return Ke}),multi:!0},Fe={provide:p,useExisting:Object(o.forwardRef)(function(){return Be}),multi:!0},Ke=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?y.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.validate=function(e){return this.required?y.requiredTrue(e):null},t}(Ke),He={provide:p,useExisting:Object(o.forwardRef)(function(){return We}),multi:!0},We=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?y.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),qe={provide:p,useExisting:Object(o.forwardRef)(function(){return ze}),multi:!0},ze=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.minLength(parseInt(this.minlength,10))},e}(),$e={provide:p,useExisting:Object(o.forwardRef)(function(){return Ge}),multi:!0},Ge=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.maxLength(parseInt(this.maxlength,10))},e}(),Ye={provide:p,useExisting:Object(o.forwardRef)(function(){return Qe}),multi:!0},Qe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.pattern(this.pattern)},e}(),Je=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new fe(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new pe(e,t,n)},e.prototype.array=function(e,t,n){var i=this,o=e.map(function(e){return i._createControl(e)});return new he(o,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n},e.prototype._createControl=function(e){return e instanceof pe||e instanceof fe||e instanceof he?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),Ze=new o.Version("5.2.9"),Xe=function(){},et=[Xe,V,H,T,S,D,_,L,B,R,le,se,Ke,ze,Ge,Qe,Be,We],tt=[Oe,we,ge],nt=[Ee,Pe,Le,Re,De],it=function(){},ot=function(){},rt=function(){}},"7MSh":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("+3eL"),l=n("WhVc");t.distinctUntilChanged=function(e,t){return function(n){return n.lift(new s(e,t))}};var s=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))},e}(),a=function(e){function t(t,n,i){e.call(this,t),this.keySelector=i,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return i(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=e;if(this.keySelector&&(t=r.tryCatch(this.keySelector)(e))===l.errorObject)return this.destination.error(l.errorObject.e);var n=!1;if(this.hasKey){if((n=r.tryCatch(this.compare)(this.key,t))===l.errorObject)return this.destination.error(l.errorObject.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=t,this.destination.next(e))},t}(o.Subscriber)},"7OPe":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),t.d=function(e,t){switch(void 0===e&&(e=r),t.type){case i.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:return Object.assign({},e,{checkForUpdateOnStartUp:t.payload});case i.a.TOGGLE_PRE_RELEASE_FLAG:return Object.assign({},e,{usePreReleaseUpdate:t.payload});case i.a.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:return Object.assign({},t.payload);case i.a.CHECK_FOR_UPDATE_NOW:return Object.assign({},e,{checkingForUpdate:!0});case o.a.UPDATE_ERROR:case i.a.CHECK_FOR_UPDATE_SUCCESS:case i.a.CHECK_FOR_UPDATE_FAILED:return Object.assign({},e,{checkingForUpdate:!1});default:return e}},n.d(t,"b",function(){return l}),n.d(t,"a",function(){return s});var i=n("w+X5"),o=n("va3Z"),r={checkForUpdateOnStartUp:!1,usePreReleaseUpdate:!1,checkingForUpdate:!1},l=function(e){return{checkForUpdateOnStartUp:e.checkForUpdateOnStartUp,usePreReleaseUpdate:e.usePreReleaseUpdate}},s=function(e){return e.checkingForUpdate}},"7RCQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("Bxcs");t.getHardwareConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new i.HardwareConfiguration;return n.fromBinary(i.UhkBuffer.fromArray(t)),n.uniqueId>0?n:null},t.getUserConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new i.UserConfiguration;if(n.fromBinary(i.UhkBuffer.fromArray(t)),n.userConfigMajorVersion>0)return n;throw Error("Invalid user configuration")},t.mapObjectToUserConfigBinaryBuffer=function(e){var t=new i.UserConfiguration;t.fromJsonObject(e);var n=new i.UhkBuffer;return t.toBinary(n),n.getBufferContent()}},"7nvF":function(e,t,n){"use strict";var i=n("p/p0");t.last=function(e,t,n){return i.last(e,t,n)(this)}},"7rB9":function(e,t,n){"use strict";var i=n("t2qv");t.forkJoin=i.ForkJoinObservable.create},"7s/Z":function(e,t){e.exports=function e(t){Object.freeze(t);var n="function"==typeof t,i=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(o){!i.call(t,o)||n&&("caller"===o||"callee"===o||"arguments"===o)||null===t[o]||"object"!=typeof t[o]&&"function"!=typeof t[o]||Object.isFrozen(t[o])||e(t[o])}),t}},"83T1":function(e,t,n){"use strict";var i=n("fI0c");t.every=function(e,t){return i.every(e,t)(this)}},"8AXl":function(e,t,n){"use strict";n.d(t,"b",function(){return _}),n.d(t,"a",function(){return O}),n.d(t,"c",function(){return P}),n.d(t,"d",function(){return j}),n.d(t,"e",function(){return N}),n.d(t,"f",function(){return D}),n.d(t,"i",function(){return R}),n.d(t,"k",function(){return I}),n.d(t,"j",function(){return M}),n.d(t,"h",function(){return E}),n.d(t,"g",function(){return S});var i,o=n("dyjq"),r=n("1KT0"),l=n("C4lF"),s=(n.n(l),n("Y6hq")),a=(n.n(s),n("xAJs")),u=n("WT6e"),c=n("rCTf"),d=n("ack3"),p=n("cJSH"),f=(n.n(p),n("XO5T")),h=n("2AEF"),y=(n.n(h),n("Oa+j")),m=(n.n(y),n("EEr4")),g=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v="@ngrx/effects",b=Reflect;function k(e){return e.constructor.propDecorators?(t=e.constructor.propDecorators,Object.keys(t).reduce(function(e,n){return e.concat((i=n,t[n].filter(function(e){return e.type===_}).map(function(e){var t=!0;return e.args&&e.args.length&&(t=!!e.args[0].dispatch),{propertyName:i,dispatch:t}})));var i},[])):b.hasOwnMetadata(v,e)?b.getOwnMetadata(v,e):[];var t}function _(e){var t=(void 0===e?{dispatch:!0}:e).dispatch;return function(e,n){var i,o;i=e,o=k(e).concat([{propertyName:n,dispatch:t}]),b.defineMetadata(v,o,i)}}function A(e){return Object.getPrototypeOf(e)}var w=Object(o.x)(k,A),T="ngrxOnRunEffects";function C(e){var t=function(e){var t=A(e).constructor.name,n=w(e).map(function(n){var i=n.propertyName,o=n.dispatch,r="function"==typeof e[i]?e[i]():e[i];if(!1===o)return l.ignoreElements.call(r);var u=s.materialize.call(r);return a.map.call(u,function(n){return{effect:e[i],notification:n,propertyName:i,sourceName:t,sourceInstance:e}})});return r.merge.apply(void 0,n)}(e);return function(e){var t=A(e);return T in t&&"function"==typeof t[T]}(e)?e.ngrxOnRunEffects(t):t}var O=function(e){function t(t){var n=e.call(this)||this;return t&&(n.source=t),n}return g(t,e),t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.ofType=function(){for(var e=[],t=0;t'},t.prototype.renameKeymap=function(e,n){return this.keymapAbbreviation!==e?this:new t(n)},t.prototype.getName=function(){return"SwitchKeymapAction"},t}(a.KeyAction);t.SwitchKeymapAction=u,t.UnresolvedSwitchKeymapAction=function(e){function t(t){var n=e.call(this)||this;return n.keymapIndex=t,n}return i(t,e),t.prototype.fromBinary=function(e){return e.readUInt8(),this.keymapIndex=e.readUInt8(),this},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.SwitchKeymapAction),e.writeUInt8(this.keymapIndex)},t.prototype.toJsonObject=function(){throw new Error("UnresolvedSwitchKeymapAction cannot be serialized directly. Convert it to SwitchKeymapAction first.")},t.prototype.resolve=function(e){return new u(e[this.keymapIndex])},t.prototype.getName=function(){return"UnresolvedSwitchKeymapAction"},o([l.assertUInt8,r("design:type",Number)],t.prototype,"keymapIndex",void 0),t}(a.KeyAction)},"9dR0":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.refCount=function(){return function(e){return e.lift(new r(e))}};var r=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new l(e,n),o=t.subscribe(i);return i.closed||(i.connection=n.connect()),o},e}(),l=function(e){function t(t,n){e.call(this,t),this.connectable=n}return i(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(o.Subscriber)},"9dXm":function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("ao60"),a=n("4uS6");t.KeyMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.action=t.action,n.type=t.type,n.scancode=t.scancode,n.modifierMask=t.modifierMask,n):n}return i(t,e),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.action=s.MacroKeySubAction[e.action],this.type="media"===e.type?e.scancode<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia:a.KeystrokeType[e.type],this.scancode=e.scancode,this.modifierMask=e.modifierMask,this},t.prototype.fromBinary=function(e){var t=this.readAndAssertMacroActionId(e)-s.MacroActionId.KeyMacroAction;return this.action=3&t,this.type=3&(t>>=2),2&(t>>=2)&&(this.scancode=e.readUInt8()),1&t&&(this.modifierMask=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={macroActionType:s.macroActionType.KeyMacroAction,action:s.MacroKeySubAction[this.action]};return this.hasScancode()&&(e.type=this.type===a.KeystrokeType.shortMedia||this.type===a.KeystrokeType.longMedia?"media":a.KeystrokeType[this.type],e.scancode=this.scancode),this.hasModifiers()&&(e.modifierMask=this.modifierMask),e},t.prototype.toBinary=function(e){var t=0;t|=this.action,t|=this.type<<2,t|=(this.hasScancode()?2:0)+(this.hasModifiers()?1:0)<<4,e.writeUInt8(s.MacroActionId.KeyMacroAction+t),this.hasScancode()&&e.writeUInt8(this.scancode),this.hasModifiers()&&e.writeUInt8(this.modifierMask)},t.prototype.toString=function(){return''},t.prototype.isModifierActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasScancode=function(){return!!this.scancode},t.prototype.hasModifiers=function(){return!!this.modifierMask},t.prototype.isPressAction=function(){return this.action===s.MacroKeySubAction.press},t.prototype.isTapAction=function(){return this.action===s.MacroKeySubAction.tap},t.prototype.isReleaseAction=function(){return this.action===s.MacroKeySubAction.release},t.prototype.getName=function(){return"KeyMacroAction"},o([l.assertEnum(s.MacroKeySubAction),r("design:type",Number)],t.prototype,"action",void 0),o([l.assertEnum(a.KeystrokeType),r("design:type",Number)],t.prototype,"type",void 0),o([l.assertUInt8,r("design:type",Number)],t.prototype,"scancode",void 0),o([l.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),t}(s.MacroAction)},"9eyw":function(e,t,n){"use strict";var i=n("YOd+");function o(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:i.noop}t.pipe=function(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(r.OuterSubscriber);t.MergeMapSubscriber=s},B00U:function(e,t,n){"use strict";var i=n("Xajo"),o=n("ICpg"),r=n("SKH6"),l=n("+3eL"),s=n("WhVc"),a=n("GIjk");function u(e){return e.reduce(function(e,t){return e.concat(t instanceof a.UnsubscriptionError?t.errors:t)},[])}t.Subscription=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,c=this._parents,d=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,h=c?c.length:0;n;)n.remove(this),n=++f1?new i.ArrayObservable(e,n):new r.EmptyObservable(n),t)}}},"C0+T":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("9Avi");t.QueueScheduler=function(e){function t(){e.apply(this,arguments)}return i(t,e),t}(o.AsyncScheduler)},C4lF:function(e,t,n){"use strict";var i=n("ygD2");t.ignoreElements=function(){return i.ignoreElements()(this)}},CGGv:function(e,t,n){"use strict";var i=n("cwzr"),o=n("9Avi");t.async=new o.AsyncScheduler(i.AsyncAction)},CURp:function(e,t,n){"use strict";var i=n("VOfZ"),o=n("1r8+"),r=n("aQl7"),l=n("ICpg"),s=n("rCTf"),a=n("cdmN"),u=n("QqRK"),c=n("mbVC");t.subscribeToResult=function(e,t,n,d){var p=new u.InnerSubscriber(e,n,d);if(p.closed)return null;if(t instanceof s.Observable)return t._isScalar?(p.next(t.value),p.complete(),null):(p.syncErrorThrowable=!0,t.subscribe(p));if(o.isArrayLike(t)){for(var f=0,h=t.length;fi)throw e.constructor.name+"."+t+": Integer "+r+" is outside the valid ["+n+", "+i+"] interval";this[o]=r}},enumerable:!0,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.assertUInt8=function(e,t){return o(e,t,0,255)},t.assertInt8=function(e,t){return o(e,t,-128,127)},t.assertUInt16=i,t.assertInt16=function(e,t){return o(e,t,-32768,32767)},t.assertUInt32=function(e,t){return o(e,t,0,4294967295)},t.assertInt32=function(e,t){return o(e,t,-2147483648,2147483647)},t.assertCompactLength=function(e,t){return i(e,t)},t.assertEnum=function(e){return function(t,n){var i="_"+n;Object.defineProperty(t,n,{get:function(){return this[i]},set:function(o){if(this[i]!==o){if(void 0===e[o])throw t.constructor.name+"."+n+": "+o+" is not enum";this[i]=o}},enumerable:!0,configurable:!0})}}},D2Nv:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.tap=function(e,t,n){return function(i){return i.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,i,r){e.call(this,t);var l=new o.Subscriber(n,i,r);l.syncErrorThrowable=!0,this.add(l),this.safeSubscriber=l}return i(t,e),t.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},t.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),this.destination.error(t.syncErrorThrown?t.syncErrorValue:e)},t.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},t}(o.Subscriber)},DzMp:function(e,t,n){"use strict";var i=n("+EXD");t.defer=i.DeferObservable.create},EEr4:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf"),r=n("mmVS"),l=n("B00U"),s=n("IZVw"),a=n("ZJf8"),u=n("r8ZY"),c=function(e){function t(t){e.call(this,t),this.destination=t}return i(t,e),t}(r.Subscriber);t.SubjectSubscriber=c;var d=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return i(t,e),t.prototype[u.rxSubscriber]=function(){return new c(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),o=0;o0?a-4:a;var c=0;for(t=0;t>16&255,s[c++]=i>>8&255,s[c++]=255&i;return 2===l?(i=o[e.charCodeAt(t)]<<2|o[e.charCodeAt(t+1)]>>4,s[c++]=255&i):1===l&&(i=o[e.charCodeAt(t)]<<10|o[e.charCodeAt(t+1)]<<4|o[e.charCodeAt(t+2)]>>2,s[c++]=i>>8&255,s[c++]=255&i),s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,r="",l=[],s=0,a=n-o;sa?a:s+16383));return 1===o?(r+=i[(t=e[n-1])>>2],r+=i[t<<4&63],r+="=="):2===o&&(r+=i[(t=(e[n-2]<<8)+e[n-1])>>10],r+=i[t>>4&63],r+=i[t<<2&63],r+="="),l.push(r),l.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=l.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,n){for(var o,r=[],l=t;l>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return r.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},EnA3:function(e,t,n){"use strict";var i=n("rCTf"),o=n("Rewd");i.Observable.prototype.do=o._do,i.Observable.prototype._do=o._do},EoAl:function(e,t,n){"use strict";var i=n("rCTf"),o=n("KuCq");i.Observable.prototype.takeWhile=o.takeWhile},F7Al:function(e,t,n){"use strict";var i=n("TToO").__extends,o=function(e){function t(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return i(t,e),t}(Error);t.EmptyError=o},FA5e:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("rCTf"),r=n("RRVv"),l=n("jBEF");t.ArrayLikeObservable=function(e){function t(t,n){e.call(this),this.arrayLike=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return i(t,e),t.create=function(e,n){var i=e.length;return 0===i?new l.EmptyObservable:1===i?new r.ScalarObservable(e[0],n):new t(e,n)},t.dispatch=function(e){var t=e.arrayLike,n=e.index,i=e.subscriber;i.closed||(n>=e.length?i.complete():(i.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.arrayLike,i=this.scheduler,o=n.length;if(i)return i.schedule(t.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:e});for(var r=0;r'},t.prototype.getName=function(){return"PlayMacroAction"},o([l.assertUInt8,r("design:type",Number)],t.prototype,"macroId",void 0),t}(s.KeyAction)},Ftqy:function(e,t){e.exports={userConfigMajorVersion:4,userConfigMinorVersion:0,userConfigPatchVersion:0,deviceName:"My UHK",doubleTapSwitchLayerTimeout:250,iconsAndLayerTextsBrightness:255,alphanumericSegmentsBrightness:255,keyBacklightBrightness:255,mouseMoveInitialSpeed:4,mouseMoveAcceleration:68,mouseMoveDeceleratedSpeed:8,mouseMoveBaseSpeed:32,mouseMoveAcceleratedSpeed:64,mouseScrollInitialSpeed:20,mouseScrollAcceleration:20,mouseScrollDeceleratedSpeed:20,mouseScrollBaseSpeed:20,mouseScrollAcceleratedSpeed:50,moduleConfigurations:[],keymaps:[{isDefault:!1,abbreviation:"COM",name:"Colemak for Mac",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{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",toggle:!1},{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",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},{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",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"COL",name:"Colemak for PC",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the PC version.\n",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{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",toggle:!1},{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",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},{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",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVM",name:"Dvorak for Mac",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{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",toggle:!1},{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",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},{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",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVO",name:"Dvorak for PC",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{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",toggle:!1},{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",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},{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",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"QWM",name:"QWERTY for Mac",description:"QWERTY is the mother of all layouts. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{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",toggle:!1},{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",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},{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",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!0,abbreviation:"QWR",name:"QWERTY for PC",description:"QWERTY is the mother of all layouts. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{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",toggle:!1},{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",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},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",toggle:!1},{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",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"TES",name:"Test",description:"This keymap is only used for factory testing purposes.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:87},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:94},{keyActionType:"keystroke",type:"basic",scancode:85},{keyActionType:"keystroke",type:"basic",scancode:95},{keyActionType:"keystroke",type:"basic",scancode:96},{keyActionType:"keystroke",type:"basic",scancode:97},{keyActionType:"keystroke",type:"basic",scancode:98}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:86},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:89},{keyActionType:"keystroke",type:"basic",scancode:90},{keyActionType:"keystroke",type:"basic",scancode:91},{keyActionType:"keystroke",type:"basic",scancode:92},{keyActionType:"keystroke",type:"basic",scancode:84},{keyActionType:"keystroke",type:"basic",scancode:93},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]}],macros:[{isLooped:!0,isPrivate:!0,name:"Go to UHK site in browser",macroActions:[{macroActionType:"key",action:"tap",type:"basic",scancode:15,modifierMask:1},{macroActionType:"text",text:"https://ultimatehackingkeyboard.com"},{macroActionType:"key",action:"tap",type:"basic",scancode:40}]},{isLooped:!1,isPrivate:!0,name:"God mode in Doom",macroActions:[{macroActionType:"text",text:"iddqd"}]},{isLooped:!1,isPrivate:!0,name:"Type Silent Bob's address",macroActions:[{macroActionType:"text",text:"Silent Bob\n711-2880 Nulla St.\nMankato Mississippi 96522\n(257) 563-7401"}]}]}},GIjk:function(e,t,n){"use strict";var i=n("TToO").__extends,o=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return i(t,e),t}(Error);t.UnsubscriptionError=o},H5FS:function(e,t,n){"use strict";(function(e,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UhkBuffer=function(){function t(){this._enableDump=!1,this.offset=0,this.bytesToBacktrack=0,this.buffer=new e(t.eepromSize),this.buffer.fill(0)}return t.simpleElementWriter=function(e,t){t.toBinary(e)},t.fromArray=function(e){if(e.length<1)return null;for(var n=new t,i=0,o=e;i=t.longCompactLengthPrefix?(this.writeUInt8(t.longCompactLengthPrefix),this.writeUInt16(e)):this.writeUInt8(e)},t.prototype.readString=function(){var e=this.readCompactLength(),n=this.buffer.toString(t.stringEncoding,this.offset,this.offset+e);return this.dump(t.stringEncoding+"("+n+")"),this.bytesToBacktrack=e,this.offset+=e,n},t.prototype.writeString=function(n){var i=e.byteLength(n,t.stringEncoding);if(i>t.maxCompactLength)throw"Cannot serialize string: "+i+" bytes is larger\n than the maximum allowed length of "+t.maxCompactLength+" bytes";this.writeCompactLength(i),this.dump(t.stringEncoding+"("+n+")"),this.buffer.write(n,this.offset,i,t.stringEncoding),this.offset+=i},t.prototype.readBoolean=function(){return 0!==this.readUInt8()},t.prototype.writeBoolean=function(e){this.writeUInt8(e?1:0)},t.prototype.readArray=function(e){for(var t=[],n=this.readCompactLength(),i=0;i"},t.prototype.getName=function(){return"NoneAction"},t}(o.KeyAction)},I5Xr:function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s=n("CmJd"),a=n("ZTdU"),u=n("4KnF"),c=n("CfJK");!function(e){e[e.scancode=1]="scancode",e[e.modifierMask=2]="modifierMask",e[e.secondaryRoleAction=4]="secondaryRoleAction"}(l=t.KeystrokeActionFlag||(t.KeystrokeActionFlag={}));var d=["LCtrl","LShift","LAlt","LSuper","RCtrl","RShift","RAlt","RSuper"];t.KeystrokeAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n.secondaryRoleAction=t.secondaryRoleAction,n):n}return i(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==c.KeystrokeType.shortMedia&&this.type!==c.KeystrokeType.longMedia||(this.type=e<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){e!==c.KeystrokeType.shortMedia&&e!==c.KeystrokeType.longMedia||(e=this.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia),this._type=e},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.type="media"===e.type?e.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia:c.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=a.SecondaryRoleAction[e.secondaryRoleAction],this},t.prototype.fromBinary=function(e){var t=this.readAndAssertKeyActionId(e)-u.KeyActionId.NoneAction;return this.type=t>>3&3,t&l.scancode&&(this._scancode=this.type===c.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),t&l.modifierMask&&(this.modifierMask=e.readUInt8()),t&l.secondaryRoleAction&&(this.secondaryRoleAction=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={keyActionType:u.keyActionType.KeystrokeAction};return e.type=this.type===c.KeystrokeType.shortMedia||this.type===c.KeystrokeType.longMedia?"media":c.KeystrokeType[this.type],this.hasScancode()&&(e.scancode=this._scancode),this.hasActiveModifier()&&(e.modifierMask=this.modifierMask),this.hasSecondaryRoleAction()&&(e.secondaryRoleAction=a.SecondaryRoleAction[this.secondaryRoleAction]),e},t.prototype.toBinary=function(e){var t=0,n=[];this.hasScancode()&&(t|=l.scancode,n.push({data:this._scancode,long:this.type===c.KeystrokeType.longMedia})),this.hasActiveModifier()&&(t|=l.modifierMask,n.push({data:this.modifierMask,long:!1})),this.hasSecondaryRoleAction()&&(t|=l.secondaryRoleAction,n.push({data:this.secondaryRoleAction,long:!1})),e.writeUInt8(u.KeyActionId.NoneAction+(t+(this.type<<3)));for(var i=0;i"},t.prototype.isActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasActiveModifier=function(){return this.modifierMask>0},t.prototype.hasSecondaryRoleAction=function(){return void 0!==this.secondaryRoleAction&&null!==this.secondaryRoleAction},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasOnlyOneActiveModifier=function(){return 0!==this.modifierMask&&!(this.modifierMask&this.modifierMask-1)},t.prototype.getModifierList=function(){for(var e=[],t=this.modifierMask,n=0;0!==t;++n,t>>=1)1&t&&e.push(d[n]);return e},t.prototype.getName=function(){return"KeystrokeAction"},o([s.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),o([s.assertEnum(a.SecondaryRoleAction),r("design:type",Number)],t.prototype,"secondaryRoleAction",void 0),o([s.assertEnum(c.KeystrokeType),r("design:type",Number)],t.prototype,"_type",void 0),t}(u.KeyAction)},ICpg:function(e,t,n){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},IZVw:function(e,t,n){"use strict";var i=n("TToO").__extends,o=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return i(t,e),t}(Error);t.ObjectUnsubscribedError=o},Ilbw:function(e,t,n){"use strict";var i=n("vx8o");t.dragula=i.default||i},JJSU:function(e,t,n){"use strict";var i=n("rCTf"),o=n("7nvF");i.Observable.prototype.last=o.last},JZ4p:function(e,t,n){var i={"./DVR.json":"VMHN","./EMY.json":"TyHZ","./QTY.json":"e8yI","./VIM.json":"3vEz"};function o(e){return n(r(e))}function r(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="JZ4p"},Ji1B:function(e,t,n){"use strict";var i=n("ODby");t.observeOn=function(e,t){return void 0===t&&(t=0),i.observeOn(e,t)(this)}},Ji1V:function(e,t,n){"use strict";var i=n("C/iu");t.startWith=function(){for(var e=[],t=0;tthis.total&&this.destination.next(e)},t}(o.Subscriber)},KRCp:function(e,t,n){"use strict";var i=n("rCTf"),o=n("sb+e");i.Observable.prototype.let=o.letProto,i.Observable.prototype.letBind=o.letProto},KhQu:function(e,t,n){"use strict";var i=n("7s/Z");t.storeFreeze=function(e){return function(t,n){void 0===t&&(t={}),i(t),n.payload&&i(n.payload);var o=e(t,n);return i(o),o}}},KqLa:function(e,t){e.exports=[{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"}]}]},KuCq:function(e,t,n){"use strict";var i=n("215F");t.takeWhile=function(e){return i.takeWhile(e)(this)}},L97J:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS");t.dematerialize=function(){return function(e){return e.lift(new r)}};var r=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new l(e))},e}(),l=function(e){function t(t){e.call(this,t)}return i(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(o.Subscriber)},LKU8:function(e,t,n){"use strict";var i=n("TToO").__decorate,o=n("Ilbw"),r=n("WT6e"),l=function(){function e(){this.cancel=new r.EventEmitter,this.cloned=new r.EventEmitter,this.drag=new r.EventEmitter,this.dragend=new r.EventEmitter,this.drop=new r.EventEmitter,this.out=new r.EventEmitter,this.over=new r.EventEmitter,this.remove=new r.EventEmitter,this.shadow=new r.EventEmitter,this.dropModel=new r.EventEmitter,this.removeModel=new r.EventEmitter,this.events=["cancel","cloned","drag","dragend","drop","out","over","remove","shadow","dropModel","removeModel"],this.bags=[]}return e.prototype.add=function(e,t){var n=this.find(e);if(n)throw new Error('Bag named: "'+e+'" already exists.');return this.bags.push(n={name:e,drake:t}),t.models&&this.handleModels(e,t),n.initEvents||this.setupEvents(n),n},e.prototype.find=function(e){for(var t=0,n=this.bags;t0}var s,a=function(){var e=n("OjAK");return{version:e.version,firmwareVersion:e.firmwareVersion,deviceProtocolVersion:e.deviceProtocolVersion,moduleProtocolVersion:e.moduleProtocolVersion,userConfigVersion:e.userConfigVersion,hardwareConfigVersion:e.hardwareConfigVersion}},u=a,c=function(){return s||(s=a()),s};n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,!1,function(){return u})},LxNc:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("wAkD"),r=n("CURp");t.catchError=function(e){return function(t){var n=new l(e),i=t.lift(n);return n.caught=i}};var l=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,n,i){e.call(this,t),this.selector=n,this.caught=i}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(r.subscribeToResult(this,n))}},t}(o.OuterSubscriber)},M5jZ:function(e,t,n){"use strict";var i=n("JzlZ");t.skip=function(e){return i.skip(e)(this)}},"MEr+":function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("CGGv");t.debounceTime=function(e,t){return void 0===t&&(t=r.async),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))},e}(),s=function(e){function t(t,n,i){e.call(this,t),this.dueTime=n,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return i(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(a,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(o.Subscriber);function a(e){e.debouncedNext()}},MQMf:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("EEr4"),r=n("RA5l"),l=n("B00U"),s=n("ODby"),a=n("IZVw"),u=n("ZJf8");t.ReplaySubject=function(e){function t(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=i,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=n<1?1:n}return i(t,e),t.prototype.next=function(t){var n=this._getNow();this._events.push(new c(n,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._trimBufferThenGetEvents(),i=this.scheduler;if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError?t=l.Subscription.EMPTY:this.isStopped?t=l.Subscription.EMPTY:(this.observers.push(e),t=new u.SubjectSubscription(this,e)),i&&e.add(e=new s.ObserveOnSubscriber(e,i));for(var o=n.length,r=0;rt&&(r=Math.max(r,o-t)),r>0&&i.splice(0,r),i},t}(o.Subject);var c=function(e,t){this.time=e,this.value=t}},MkTX:function(e,t,n){"use strict";var i=n("xgwM").__extends,o=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s=n("CmJd"),a=n("4KnF");!function(e){e[e.mod=0]="mod",e[e.fn=1]="fn",e[e.mouse=2]="mouse"}(l=t.LayerName||(t.LayerName={})),t.SwitchLayerAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.isLayerToggleable=t.isLayerToggleable,n.layer=t.layer,n):n}return i(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.layer=l[e.layer],this.isLayerToggleable=e.toggle,this},t.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.layer=e.readUInt8(),this.isLayerToggleable=e.readBoolean(),this},t.prototype.toJsonObject=function(){return{keyActionType:a.keyActionType.SwitchLayerAction,layer:l[this.layer],toggle:this.isLayerToggleable}},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.SwitchLayerAction),e.writeUInt8(this.layer),e.writeBoolean(this.isLayerToggleable)},t.prototype.toString=function(){return''},t.prototype.getName=function(){return"SwitchLayerAction"},o([s.assertEnum(l),r("design:type",Number)],t.prototype,"layer",void 0),t}(a.KeyAction)},MptX:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={showButton:!1,text:null,showProgress:!1}},NSzm:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var i=n("TToO"),o=n("8AXl"),r=n("rCTf"),l=n("DzMp"),s=(n.n(l),n("lDdF")),a=(n.n(s),n("+pb+")),u=(n.n(a),n("uCY4")),c=(n.n(u),n("/lY3")),d=(n.n(c),n("fiy1")),p=(n.n(d),n("HcJ8")),f=(n.n(p),n("1APj")),h=(n.n(f),n("AGQa")),y=(n.n(h),n("gI3A")),m=(n.n(y),n("at4H")),g=n("9EfN"),v=n("WP8/"),b=n("Ji5S"),k=n("fYQU"),_=function(){function t(t,n,i,o,a,u,c){var d=this;this.actions$=t,this.dataStorageRepository=n,this.store=i,this.defaultUserConfigurationService=o,this.deviceRendererService=a,this.logService=u,this.router=c,this.loadUserConfig$=Object(l.defer)(function(){return r.Observable.of(new m.f(d.getUserConfiguration()))}),this.saveUserConfig$=this.actions$.ofType(v.a.ADD,v.a.DUPLICATE,v.a.EDIT_NAME,v.a.EDIT_ABBR,v.a.SET_DEFAULT,v.a.REMOVE,v.a.SAVE_KEY,v.a.EDIT_DESCRIPTION,v.b.ADD,v.b.DUPLICATE,v.b.EDIT_NAME,v.b.REMOVE,v.b.ADD_ACTION,v.b.SAVE_ACTION,v.b.DELETE_ACTION,v.b.REORDER_ACTION,m.a.RENAME_USER_CONFIGURATION,m.a.SET_USER_CONFIGURATION_VALUE).withLatestFrom(this.store.select(g.p),this.store.select(g.k)).mergeMap(function(e){var t=e[0],n=e[1],i=e[2];if(n.recalculateConfigurationLength(),d.dataStorageRepository.saveConfig(n),t.type===v.a.REMOVE||t.type===v.b.REMOVE){var o=t.type===v.a.REMOVE?"Keymap":"Macro",r={path:"/"+(t.type===v.a.REMOVE?"keymap":"macro")+"/"+t.payload,config:i.toJsonObject()};return[new m.k(n),new b.l({type:y.NotificationType.Undoable,message:o+" has been deleted",extra:{payload:r,type:v.a.UNDO_LAST_ACTION}}),new k.p]}return[new m.k(n),new b.d,new k.p]}),this.undoUserConfig$=this.actions$.ofType(v.a.UNDO_LAST_ACTION).map(function(e){return e.payload}).mergeMap(function(e){var t=(new y.UserConfiguration).fromJsonObject(e.config);return d.dataStorageRepository.saveConfig(t),d.router.navigate([e.path]),[new m.f(t)]}),this.loadConfigFromDevice$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE).do(function(){return d.deviceRendererService.loadConfigurationFromKeyboard()}),this.loadConfigFromDeviceReply$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE_REPLY).map(function(e){return e.payload}).mergeMap(function(e){if(!e.success)return[new b.l({type:y.NotificationType.Error,message:e.error})];var t=[],n=["/"];try{var i=Object(y.getUserConfigFromDeviceResponse)(e.userConfiguration);t.push(new m.f(i))}catch(o){d.logService.error("Eeprom user-config parse error:",o),i=(new y.UserConfiguration).fromJsonObject(e.backupConfiguration),t.push(new k.d(!!e.backupConfiguration)),t.push(new m.f(i)),n=["/device/restore-user-configuration"]}try{var o=Object(y.getHardwareConfigFromDeviceResponse)(e.hardwareConfiguration);t.push(new b.g(o))}catch(e){d.logService.error("Eeprom hardware-config parse error:",e),t.push(new b.l({type:y.NotificationType.Error,message:e}))}return t.push(new k.c(e.modules)),d.router.navigate(n),t}),this.saveUserConfigInJsonFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_JSON_FILE).withLatestFrom(this.store.select(g.p)).do(function(e){var t=JSON.stringify(e[1].toJsonObject(),null,2),n=new Blob([t],{type:"text/plain"});Object(s.saveAs)(n,"UserConfiguration.json")}),this.saveUserConfigInBinFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_BIN_FILE).withLatestFrom(this.store.select(g.p)).do(function(e){var t=e[1],n=new y.UhkBuffer;t.toBinary(n);var i=new Blob([n.getBufferContent()]);Object(s.saveAs)(i,"UserConfiguration.bin")}),this.loadUserConfigurationFromFile$=this.actions$.ofType(m.a.LOAD_USER_CONFIGURATION_FROM_FILE).map(function(e){return e.payload}).map(function(t){try{var n=new y.UserConfiguration;if(t.filename.endsWith(".bin"))n.fromBinary(y.UhkBuffer.fromArray(t.data));else{var i=new e(t.data).toString();n.fromJsonObject(JSON.parse(i))}return n.userConfigMajorVersion?new m.b(n):new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}catch(e){return new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}})}return t.prototype.getUserConfiguration=function(){var e,t=this.dataStorageRepository.getConfig();return t&&t.userConfigMajorVersion===this.defaultUserConfigurationService.getDefault().userConfigMajorVersion&&(e=(new y.UserConfiguration).fromJsonObject(t)),e||(e=this.defaultUserConfigurationService.getDefault()),e},Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",r.Observable)],t.prototype,"loadUserConfig$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",r.Observable)],t.prototype,"saveUserConfig$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",r.Observable)],t.prototype,"undoUserConfig$",void 0),Object(i.__decorate)([Object(o.b)({dispatch:!1}),Object(i.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDevice$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDeviceReply$",void 0),Object(i.__decorate)([Object(o.b)({dispatch:!1}),Object(i.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInJsonFile$",void 0),Object(i.__decorate)([Object(o.b)({dispatch:!1}),Object(i.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInBinFile$",void 0),Object(i.__decorate)([Object(o.b)(),Object(i.__metadata)("design:type",Object)],t.prototype,"loadUserConfigurationFromFile$",void 0),t}()}).call(t,n("63KW").Buffer)},Nkju:function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},ODby:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("mmVS"),r=n("8GmM");t.observeOn=function(e,t){return void 0===t&&(t=0),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.scheduler,this.delay))},e}();t.ObserveOnOperator=l;var s=function(e){function t(t,n,i){void 0===i&&(i=0),e.call(this,t),this.scheduler=n,this.delay=i}return i(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new a(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(r.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(r.Notification.createError(e))},t.prototype._complete=function(){this.scheduleMessage(r.Notification.createComplete())},t}(o.Subscriber);t.ObserveOnSubscriber=s;var a=function(e,t){this.notification=e,this.destination=t};t.ObserveOnMessage=a},OE0E:function(e,t,n){"use strict";n.d(t,"a",function(){return Fe}),n.d(t,"j",function(){return Le}),n.d(t,"h",function(){return v}),n.d(t,"i",function(){return A}),n.d(t,"b",function(){return y}),n.d(t,"d",function(){return E}),n.d(t,"e",function(){return M}),n.d(t,"f",function(){return ne}),n.d(t,"g",function(){return ie}),n.d(t,"c",function(){return Ee}),n.d(t,"s",function(){return s}),n.d(t,"l",function(){return F}),n.d(t,"k",function(){return ee}),n.d(t,"n",function(){return oe}),n.d(t,"o",function(){return se}),n.d(t,"m",function(){return R}),n.d(t,"p",function(){return I}),n.d(t,"q",function(){return Ve}),n.d(t,"t",function(){return S}),n.d(t,"r",function(){return Me});var i=n("Xjw4"),o=n("WT6e"),r=n("TToO"),l=null;function s(){return l}var a,u={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},c={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},d={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};o["\u0275global"].Node&&(a=o["\u0275global"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var p,f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,l||(l=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var i;(i=e)[t].apply(i,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return u},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return a.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),i=0;i0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,i=0;i0;s||(s=e[l]=[]);var u=Z(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:r});else{for(var c=!1,d=0;d-1},t}(P),re=["alt","control","meta","shift"],le={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},se=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,i){var o=t.parseEventName(n),r=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(e,o.domEventName,r)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;var o=t._normalizeKey(n.pop()),r="";if(re.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r+=e+".")}),r+=o,0!=n.length||0===o.length)return null;var l={};return l.domEventName=i,l.fullKey=r,l},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),re.forEach(function(i){i!=n&&(0,le[i])(e)&&(t+=i+".")}),t+=n},t.eventCallback=function(e,n,i){return function(o){t.getEventFullKey(o)===e&&i.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(P),ae=function(){function e(e,t){this.defaultDoc=e,this.DOM=t;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var i=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(i,this.inertBodyElement),this.DOM.appendChild(n,i)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

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

\n
\n
\n
\n '}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.customTooltipTemplate,title:this.title})},e.prototype.fixTitle=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.customTooltipTemplate,title:this.title}),jQuery(this.elementRef.nativeElement).attr("title",this.title).tooltip("fixTitle")},e}(),V=n("fYQU"),F=n("Ji5S"),K=function(){function e(e,t){this.store=e,this.cdRef=t,this.command='cat </etc/udev/rules.d/50-uhk60.rules\n# Ultimate Hacking Keyboard rules\n# These are the udev rules for accessing the USB interfaces of the UHK as non-root users.\n# Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards.\nSUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0666"\nEOF\nudevadm trigger\nudevadm settle'}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(u.l).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.setUpPermissions=function(){this.store.dispatch(new V.n)},e.prototype.whatWillThisDo=function(){this.store.dispatch(new F.i)},e.prototype.retry=function(){this.store.dispatch(new F.f)},e}(),B=o["\u0275crt"]({encapsulation:0,styles:[[".privilege-checker-wrapper[_ngcontent-%COMP%]{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}uhk-message[_ngcontent-%COMP%]{max-width:50%}.privilege-error[_ngcontent-%COMP%]{-webkit-animation:2s error-fade-in;animation:2s error-fade-in}@-webkit-keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}@keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}"]],data:{}});function H(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.whatWillThisDo()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["What will this do?\n "]))],null,null)}function W(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[["privilegeError",1]],null,4,"p",[["class","privilege-error"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Agent wasn't able to set up permissions via PolicyKit. This is most likely because the\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["polkit"])),(e()(),o["\u0275ted"](-1,null,[" package is not installed on your system.\n "]))],null,null)}function q(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,15,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Agent uses the following script to set up permissions. You can run it manually as root, then\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.retry()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["retry"])),(e()(),o["\u0275ted"](-1,null,[".\n "])),(e()(),o["\u0275eld"](5,0,null,null,9,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,8).onClick(n.target)&&i),i},null,null)),o["\u0275did"](8,212992,null,0,U,[D],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),o["\u0275did"](9,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),o["\u0275eld"](12,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),o["\u0275ted"](13,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,8,0,"",t.component.command),e(t,9,0,"Copy to clipboard")},function(e,t){var n=t.component;e(t,7,0,o["\u0275nov"](t,9).placement),e(t,13,0,n.command)})}function z(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,22,"div",[["class","privilege-checker-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"uhk-message",[["header","Cannot talk to your UHK"],["subtitle","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."]],null,null,null,O,C)),o["\u0275did"](3,49152,null,0,T,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default btn-lg btn-primary"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setUpPermissions()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Set up permissions\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](8,0,null,null,13,"div",[["class","mt-10"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,H)),o["\u0275did"](11,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](13,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,W)),o["\u0275did"](16,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,q)),o["\u0275did"](19,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"Cannot talk to your UHK","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."),e(t,11,0,n.state.showWhatWillThisDo),e(t,16,0,n.state.permissionSetupFailed),e(t,19,0,n.state.showWhatWillThisDoContent)},null)}var $=o["\u0275ccf"]("privilege-checker",K,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"privilege-checker",[],null,null,null,z,B)),o["\u0275did"](1,245760,null,0,K,[s.m,o.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),G=function(){},Y=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Q(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"uhk-message",[["header","Loading keyboard configuration..."],["subtitle","Hang tight!"]],null,null,null,O,C)),o["\u0275did"](2,49152,null,0,T,[],{header:[0,"header"],subtitle:[1,"subtitle"],rotateLogo:[2,"rotateLogo"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,"Loading keyboard configuration...","Hang tight!",!0)},null)}var J=o["\u0275ccf"]("loading-device",G,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"loading-device",[],null,null,null,Q,Y)),o["\u0275did"](1,49152,null,0,G,[],null,null)],null,null)},{},{},[]),Z=n("bfOx"),X=function(){function e(){}return e.prototype.onActivate=function(e,t){t.scrollIntoView()},e}(),ee=o["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%]{height:100%; width:100%}"],data:{}});function te(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"div",[["class","split split-horizontal main-page-content"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,16777216,[["outlet",1]],null,1,"router-outlet",[],null,[[null,"activate"]],function(e,t,n){var i=!0;return"activate"===t&&(i=!1!==e.component.onActivate(n,o["\u0275nov"](e,2))&&i),i},null,null)),o["\u0275did"](3,212992,null,0,Z.q,[Z.b,o.ViewContainerRef,o.ComponentFactoryResolver,[8,null],o.ChangeDetectorRef],null,{activateEvents:"activate"}),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0)},null)}var ne=o["\u0275ccf"]("main-page",X,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"main-page",[],null,null,null,te,ee)),o["\u0275did"](1,49152,null,0,X,[],null,null)],null,null)},{},{},[]),ie=function(){function e(){}return e.prototype.getAllStyles=function(e){return window.getComputedStyle(e)},e.prototype.getStyle=function(e,t){return this.getAllStyles(e)[t]},e.prototype.isStaticPositioned=function(e){return"static"===(this.getStyle(e,"position")||"static")},e.prototype.offsetParent=function(e){for(var t=e.offsetParent||document.documentElement;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement},e.prototype.position=function(e,t){var n;void 0===t&&(t=!0);var i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect();else{var o=this.offsetParent(e);n=this.offset(e,!1),o!==document.documentElement&&(i=this.offset(o,!1)),i.top+=o.clientTop,i.left+=o.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},e.prototype.offset=function(e,t){void 0===t&&(t=!0);var n=e.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,o=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+o,right:n.right+o};return t&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},e.prototype.positionElements=function(e,t,n,i){var o=i?this.offset(e,!1):this.position(e,!1),r=this.getAllStyles(t),l=t.getBoundingClientRect(),s=n.split("-")[0]||"top",a=n.split("-")[1]||"center",u={height:l.height||t.offsetHeight,width:l.width||t.offsetWidth,top:0,bottom:l.height||t.offsetHeight,left:0,right:l.width||t.offsetWidth};switch(s){case"top":u.top=o.top-(t.offsetHeight+parseFloat(r.marginBottom));break;case"bottom":u.top=o.top+o.height;break;case"left":u.left=o.left-(t.offsetWidth+parseFloat(r.marginRight));break;case"right":u.left=o.left+o.width}switch(a){case"top":u.top=o.top;break;case"bottom":u.top=o.top+o.height-t.offsetHeight;break;case"left":u.left=o.left;break;case"right":u.left=o.left+o.width-t.offsetWidth;break;case"center":"top"===s||"bottom"===s?u.left=o.left+o.width/2-t.offsetWidth/2:u.top=o.top+o.height/2-t.offsetHeight/2}return u.top=Math.round(u.top),u.bottom=Math.round(u.bottom),u.left=Math.round(u.left),u.right=Math.round(u.right),u},e}();new ie;var oe=function(){function e(e,t,n,i,r,l,s){this.viewContainerRef=e,this.elm=t,this.defaultOptions=n,this.cfr=i,this.position=r,this.renderer=l,this.document=s,this.isDisabled=!1,this.isOpen=!1,this.isOpenChange=new o.EventEmitter(!0),this.confirm=new o.EventEmitter,this.cancel=new o.EventEmitter,this.popover=null,this.eventListeners=[]}return e.prototype.ngOnInit=function(){this.isOpenChange.emit(!1)},e.prototype.ngOnChanges=function(e){e.isOpen&&(!0===e.isOpen.currentValue?this.showPopover():this.hidePopover())},e.prototype.ngOnDestroy=function(){this.hidePopover()},e.prototype.onConfirm=function(e){this.confirm.emit(e),this.hidePopover()},e.prototype.onCancel=function(e){this.cancel.emit(e),this.hidePopover()},e.prototype.togglePopover=function(){this.popover?this.hidePopover():this.showPopover()},e.prototype.onDocumentClick=function(e){!this.popover||this.elm.nativeElement.contains(e.target)||this.popover.location.nativeElement.contains(e.target)||this.hidePopover()},e.prototype.showPopover=function(){var e=this;if(!this.popover&&!this.isDisabled){this.eventListeners=[this.renderer.listen("document","click",function(t){return e.onDocumentClick(t)}),this.renderer.listen("document","touchend",function(t){return e.onDocumentClick(t)}),this.renderer.listen("window","resize",function(){return e.positionPopover()})];var t=new y;Object.assign(t,this.defaultOptions,{title:this.title,message:this.message,onConfirm:function(t){e.onConfirm(t)},onCancel:function(t){e.onCancel(t)},onAfterViewInit:function(){e.positionPopover()}}),["confirmText","cancelText","placement","confirmButtonType","cancelButtonType","focusButton","hideConfirmButton","hideCancelButton","popoverClass","appendToBody","customTemplate"].forEach(function(n){"undefined"!=typeof e[n]&&(t[n]=e[n])});var n=this.cfr.resolveComponentFactory(m),i=o.ReflectiveInjector.resolve([{provide:y,useValue:t}]),r=o.ReflectiveInjector.fromResolvedProviders(i,this.viewContainerRef.parentInjector);this.popover=this.viewContainerRef.createComponent(n,this.viewContainerRef.length,r),t.appendToBody&&this.document.body.appendChild(this.popover.location.nativeElement),this.isOpenChange.emit(!0)}},e.prototype.positionPopover=function(){if(this.popover){var e=this.popover.location.nativeElement.children[0],t=this.position.positionElements(this.elm.nativeElement,e,this.placement||this.defaultOptions.placement,this.appendToBody||this.defaultOptions.appendToBody);this.renderer.setStyle(e,"top",t.top+"px"),this.renderer.setStyle(e,"left",t.left+"px")}},e.prototype.hidePopover=function(){this.popover&&(this.popover.destroy(),this.popover=null,this.isOpenChange.emit(!1),this.eventListeners.forEach(function(e){return e()}),this.eventListeners=[])},e}(),re=n("at4H"),le=function(){function e(e){this.store=e}return e.prototype.resetUserConfiguration=function(){this.store.dispatch(new V.g)},e.prototype.saveConfigurationInJSONFormat=function(){this.store.dispatch(new re.j)},e.prototype.saveConfigurationInBINFormat=function(){this.store.dispatch(new re.i)},e.prototype.exportUserConfiguration=function(e){e.shiftKey?this.saveConfigurationInBINFormat():this.saveConfigurationInJSONFormat()},e.prototype.changeFile=function(e){var t=e.srcElement.files,n=new FileReader;n.onloadend=(function(){var t=new Uint8Array(n.result);this.store.dispatch(new re.g({filename:e.srcElement.value,data:Array.from(t)}))}).bind(this),n.readAsArrayBuffer(t[0])},e}(),se=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function ae(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Device configuration"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n The device configuration contains all the keymaps, macros, and settings that are stored on the device.\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](11,0,null,null,22,"ul",[["class","list-unstyled btn-list"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.exportUserConfiguration(n)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Export device configuration\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,3,"label",[["class","btn btn-default btn-file"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Import device configuration\n "])),(e()(),o["\u0275eld"](23,0,null,null,0,"input",[["type","file"]],null,[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.changeFile(n)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==o["\u0275nov"](e,30).togglePopover()&&i),"confirm"===t&&(i=!1!==r.resetUserConfiguration()&&i),i},null,null)),o["\u0275did"](30,737280,null,0,oe,[o.ViewContainerRef,o.ElementRef,h,o.ComponentFactoryResolver,ie,o.Renderer2,P.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),o["\u0275ted"](-1,null,["Reset device configuration\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,30,0,"Are you sure?","Yes","No","bottom")},null)}var ue=o["\u0275ccf"]("device-settings",le,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-settings",[["class","container-fluid"]],null,null,null,ae,se)),o["\u0275did"](1,49152,null,0,le,[s.m],null,null)],null,null)},{},{},[]),ce=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),de=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.action--edit[_ngcontent-%COMP%]:hover{color:#337ab7;cursor:pointer}.action--trash[_ngcontent-%COMP%]:hover{color:#d9534f;cursor:pointer}"]],data:{}});function pe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical"]],null,null,null,null,null))],null,null)}function fe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null))],null,null)}function he(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null))],null,null)}function ye(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null))],null,null)}function me(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null))],null,null)}function ge(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null))],null,null)}function ve(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null))],null,null)}function be(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null))],null,null)}function ke(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-trash action--trash"]],null,null,null,null,null))],null,null)}function _e(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-pencil action--edit"]],null,null,null,null,null))],null,null)}function Ae(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null))],null,null)}function we(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,pe)),o["\u0275did"](4,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,fe)),o["\u0275did"](7,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,he)),o["\u0275did"](10,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ye)),o["\u0275did"](13,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,me)),o["\u0275did"](16,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ge)),o["\u0275did"](19,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ve)),o["\u0275did"](22,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,be)),o["\u0275did"](25,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ke)),o["\u0275did"](28,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_e)),o["\u0275did"](31,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ae)),o["\u0275did"](34,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.name),e(t,4,0,"option-vertical"),e(t,7,0,"square"),e(t,10,0,"hand-pointer"),e(t,13,0,"hand-rock"),e(t,16,0,"hand-paper"),e(t,19,0,"mouse-pointer"),e(t,22,0,"clock"),e(t,25,0,"font"),e(t,28,0,"trash"),e(t,31,0,"pencil"),e(t,34,0,"question-circle")},null)}var Te=n("xA9i"),Ce=n("7DMc"),Oe=o["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }"],data:{}});function xe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"div",[],[[1,"disabled",0]],null,null,null,null))],null,function(e,t){e(t,0,0,!!t.component.disabled||void 0)})}var Se=n("rCTf"),Ee=(n("aV5h"),function(){function e(){this.onChange=new o.EventEmitter,this.changeDebounceTime=300,this.propagateChange=function(){}}return e.prototype.ngAfterViewInit=function(){this.pips&&this.slider.slider.pips(this.pips),this.slider.slider.target.querySelector(".noUi-tooltip").style.display="none",this.slider.slider.on("start",function(){this.target.querySelector(".noUi-tooltip").style.display="block"}),this.slider.slider.on("end",function(){this.target.querySelector(".noUi-tooltip").style.display="none"})},e.prototype.ngOnDestroy=function(){this.changeObserver$&&this.changeObserver$.complete()},e.prototype.writeValue=function(e){this.value=e||this.min},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(){},e.prototype.onSliderChange=function(e){var t=this;this.changeObserver$?this.changeObserver$.next(e):Se.Observable.create(function(e){t.changeObserver$=e}).debounceTime(this.changeDebounceTime).distinctUntilChanged().subscribe(this.propagateChange)},e}()),Me=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .slider-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding-left:1.6rem}[_nghost-%COMP%] .slider-container[_ngcontent-%COMP%]{width:80%}[_nghost-%COMP%] .slider-value[_ngcontent-%COMP%]{width:20%}[_nghost-%COMP%] .value-indicator[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 3rem;vertical-align:middle}"]],data:{}});function Pe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["name","question-circle"]],[[1,"data-placement",0]],null,null,we,de)),o["\u0275did"](1,114688,null,0,ce,[],{name:[0,"name"]},null),o["\u0275did"](2,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null)],function(e,t){var n=t.component;e(t,1,0,"question-circle"),e(t,2,0,n.tooltip,"true")},function(e,t){e(t,0,0,o["\u0275nov"](t,2).placement)})}function Ie(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,7,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](3,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Pe)),o["\u0275did"](6,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,6,0,t.component.tooltip)},function(e,t){e(t,3,0,t.component.label)})}function Re(e){return o["\u0275vid"](0,[o["\u0275qud"](402653184,1,{slider:0}),(e()(),o["\u0275and"](16777216,null,null,1,null,Ie)),o["\u0275did"](2,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](4,0,null,null,17,"div",[["class","slider-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,8,"div",[["class","slider-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,5,"nouislider",[],[[2,"ng2-nouislider",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.value=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSliderChange(n)&&i),i},xe,Oe)),o["\u0275did"](9,638976,[[1,4]],0,Te.NouisliderComponent,[o.ElementRef,o.Renderer2],{min:[0,"min"],max:[1,"max"],step:[2,"step"],ngModel:[3,"ngModel"],keyboard:[4,"keyboard"],tooltips:[5,"tooltips"]},null),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e){return[e]},[Te.NouisliderComponent]),o["\u0275did"](11,671744,null,0,Ce.NgModel,[[8,null],[8,null],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](13,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,4,"div",[["class","slider-value"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,null,null,1,"div",[["class","value-indicator"]],null,null,null,null,null)),(e()(),o["\u0275ted"](19,null,[""," ",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.label),e(t,9,0,n.min,n.max,n.step,n.value,!0,!0),e(t,11,0,n.value)},function(e,t){var n=t.component;e(t,8,0,!0,o["\u0275nov"](t,13).ngClassUntouched,o["\u0275nov"](t,13).ngClassTouched,o["\u0275nov"](t,13).ngClassPristine,o["\u0275nov"](t,13).ngClassDirty,o["\u0275nov"](t,13).ngClassValid,o["\u0275nov"](t,13).ngClassInvalid,o["\u0275nov"](t,13).ngClassPending),e(t,19,0,n.value,n.valueUnit)})}var Ne=n("gI3A"),De=function(){function e(){this._defaultConfig=(new Ne.UserConfiguration).fromJsonObject(n("Ftqy"))}return e.prototype.getDefault=function(){return this._defaultConfig},e}(),je=25,Ue=function(){function e(e,t){this.store=e,this.defaultUserConfigurationService=t,this.moveProps=[{prop:"mouseMoveInitialSpeed",title:"Initial speed",tooltip:"When mouse movement begins, this is the starting speed.",valueUnit:"px/s",value:0},{prop:"mouseMoveBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial moving speed sufficiently ramps up.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial movement speed to the base speed.",valueUnit:"px/s\xb2",value:0},{prop:"mouseMoveDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while moving with the decelerate key pressed.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while moving with the accelerate key pressed.",valueUnit:"px/s",value:0}],this.scrollProps=[{prop:"mouseScrollInitialSpeed",title:"Initial speed",tooltip:"When mouse scrolling begins, this is the starting speed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial scrolling speed sufficiently ramps up.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial scrolling speed to the base speed.",valueUnit:"pulse/s\xb2",value:0},{prop:"mouseScrollDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while scrolling with the decelerate key pressed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while scrolling with the accelerate key pressed.",valueUnit:"pulse/s",value:0}],this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0},this.moveSettings={min:je,max:6375,step:je},this.scrollSettings={min:1,max:255,step:1}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(u.p),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.moveProps.forEach(function(e){e.value=t[e.prop]*je||0}),e.scrollProps.forEach(function(e){e.value=t[e.prop]||0})})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new re.l({propertyName:e,value:-1!==e.indexOf("mouseMove")?t/je:t}))},e.prototype.resetToDefault=function(){this.store.dispatch(new V.f)},e}(),Le=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .mouse-speed-reset-button[_ngcontent-%COMP%]{display:block;margin-bottom:4rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%]{margin-bottom:6rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%] + h3[_ngcontent-%COMP%]{margin-top:2rem}"]],data:{}});function Ve(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(e.context.$implicit.value=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue(e.context.$implicit.prop,n)&&i),i},Re,Me)),o["\u0275did"](5,4374528,null,0,Ee,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e){return[e]},[Ee]),o["\u0275did"](7,671744,null,0,Ce.NgModel,[[8,null],[8,null],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](9,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.moveSettings.min,n.moveSettings.max,n.moveSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,o["\u0275nov"](t,9).ngClassUntouched,o["\u0275nov"](t,9).ngClassTouched,o["\u0275nov"](t,9).ngClassPristine,o["\u0275nov"](t,9).ngClassDirty,o["\u0275nov"](t,9).ngClassValid,o["\u0275nov"](t,9).ngClassInvalid,o["\u0275nov"](t,9).ngClassPending)})}function Fe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(e.context.$implicit.value=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue(e.context.$implicit.prop,n)&&i),i},Re,Me)),o["\u0275did"](5,4374528,null,0,Ee,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e){return[e]},[Ee]),o["\u0275did"](7,671744,null,0,Ce.NgModel,[[8,null],[8,null],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](9,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.scrollSettings.min,n.scrollSettings.max,n.scrollSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,o["\u0275nov"](t,9).ngClassUntouched,o["\u0275nov"](t,9).ngClassTouched,o["\u0275nov"](t,9).ngClassPristine,o["\u0275nov"](t,9).ngClassDirty,o["\u0275nov"](t,9).ngClassValid,o["\u0275nov"](t,9).ngClassInvalid,o["\u0275nov"](t,9).ngClassPending)})}function Ke(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse speed"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse pointer speed"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ve)),o["\u0275did"](12,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](14,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse scroll speed"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Fe)),o["\u0275did"](18,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](20,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger mouse-speed-reset-button"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","top"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==o["\u0275nov"](e,21).togglePopover()&&i),"confirm"===t&&(i=!1!==r.resetToDefault()&&i),i},null,null)),o["\u0275did"](21,737280,null,0,oe,[o.ViewContainerRef,o.ElementRef,h,o.ComponentFactoryResolver,ie,o.Renderer2,P.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),o["\u0275ted"](-1,null,["Reset speeds to default\n"]))],function(e,t){var n=t.component;e(t,12,0,n.moveProps),e(t,18,0,n.scrollProps),e(t,21,0,"Are you sure?","Yes","No","top")},null)}var Be=o["\u0275ccf"]("device-mouse-speed",Ue,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-mouse-speed",[["class","container-fluid"]],null,null,null,Ke,Le)),o["\u0275did"](1,245760,null,0,Ue,[s.m,De],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),He=function(){function e(e){this.store=e,this.iconsAndLayerTextsBrightness=0,this.alphanumericSegmentsBrightness=0,this.keyBacklightBrightness=0,this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(u.p),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 re.l({propertyName:e,value:t}))},e}(),We=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] .led-setting[_ngcontent-%COMP%]{margin-bottom:6rem}"]],data:{}});function qe(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["LED brightness"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,5,"slider-wrapper",[["label","LED display icon and layer texts brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.iconsAndLayerTextsBrightness=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue("iconsAndLayerTextsBrightness",n)&&i),i},Re,Me)),o["\u0275did"](13,4374528,null,0,Ee,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e){return[e]},[Ee]),o["\u0275did"](15,671744,null,0,Ce.NgModel,[[8,null],[8,null],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](17,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](21,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,5,"slider-wrapper",[["label","LED display alphanumeric segments brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.alphanumericSegmentsBrightness=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue("alphanumericSegmentsBrightness",n)&&i),i},Re,Me)),o["\u0275did"](26,4374528,null,0,Ee,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e){return[e]},[Ee]),o["\u0275did"](28,671744,null,0,Ce.NgModel,[[8,null],[8,null],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](30,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](34,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](36,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](38,0,null,null,5,"slider-wrapper",[["label","Key backlight brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0,o=e.component;return"ngModelChange"===t&&(i=!1!==(o.keyBacklightBrightness=n)&&i),"ngModelChange"===t&&(i=!1!==o.onSetPropertyValue("keyBacklightBrightness",n)&&i),i},Re,Me)),o["\u0275did"](39,4374528,null,0,Ee,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e){return[e]},[Ee]),o["\u0275did"](41,671744,null,0,Ce.NgModel,[[8,null],[8,null],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](43,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,13,0,"LED display icon and layer texts brightness",0,255,1,n.sliderPips),e(t,15,0,n.iconsAndLayerTextsBrightness),e(t,26,0,"LED display alphanumeric segments brightness",0,255,1,n.sliderPips),e(t,28,0,n.alphanumericSegmentsBrightness),e(t,39,0,"Key backlight brightness",0,255,1,n.sliderPips),e(t,41,0,n.keyBacklightBrightness)},function(e,t){e(t,12,0,o["\u0275nov"](t,17).ngClassUntouched,o["\u0275nov"](t,17).ngClassTouched,o["\u0275nov"](t,17).ngClassPristine,o["\u0275nov"](t,17).ngClassDirty,o["\u0275nov"](t,17).ngClassValid,o["\u0275nov"](t,17).ngClassInvalid,o["\u0275nov"](t,17).ngClassPending),e(t,25,0,o["\u0275nov"](t,30).ngClassUntouched,o["\u0275nov"](t,30).ngClassTouched,o["\u0275nov"](t,30).ngClassPristine,o["\u0275nov"](t,30).ngClassDirty,o["\u0275nov"](t,30).ngClassValid,o["\u0275nov"](t,30).ngClassInvalid,o["\u0275nov"](t,30).ngClassPending),e(t,38,0,o["\u0275nov"](t,43).ngClassUntouched,o["\u0275nov"](t,43).ngClassTouched,o["\u0275nov"](t,43).ngClassPristine,o["\u0275nov"](t,43).ngClassDirty,o["\u0275nov"](t,43).ngClassValid,o["\u0275nov"](t,43).ngClassInvalid,o["\u0275nov"](t,43).ngClassPending)})}var ze=o["\u0275ccf"]("device-led-brightness",He,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-led-brightness",[["class","container-fluid"]],null,null,null,qe,We)),o["\u0275did"](1,245760,null,0,He,[s.m],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),$e=function(){this.logs=[]},Ge=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{background-color:#ff0}.wrapper[_ngcontent-%COMP%]{background-color:#000}.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 Ye(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"li",[],null,null,null,null,null)),o["\u0275did"](1,278528,null,0,d.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),(e()(),o["\u0275eld"](2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](3,null,["",""]))],function(e,t){e(t,1,0,t.context.$implicit.cssClass)},function(e,t){e(t,3,0,t.context.$implicit.message)})}function Qe(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,4,"ul",[["class","list-unstyled"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ye)),o["\u0275did"](5,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.logs)},null)}var Je=function(){function e(e){var t=this;this.store=e,this.flashFirmwareButtonDisbabled$=e.select(u.d),this.xtermLog$=e.select(u.t),this.xtermLogSubscription=this.xtermLog$.subscribe(function(){t.divElement&&t.divElement.nativeElement&&setTimeout(function(){t.divElement.nativeElement.scrollTop=t.divElement.nativeElement.scrollHeight})}),this.getAgentVersionInfo$=e.select(u.e),this.firmwareOkButtonDisabled$=e.select(u.c),this.hardwareModulesSubscription=e.select(u.i).subscribe(function(e){t.hardwareModules=e})}return e.prototype.ngOnDestroy=function(){this.xtermLogSubscription.unsubscribe(),this.hardwareModulesSubscription.unsubscribe()},e.prototype.onUpdateFirmware=function(){this.store.dispatch(new V.q)},e.prototype.onOkButtonClick=function(){this.store.dispatch(new V.s)},e.prototype.changeFile=function(e){var t=e.srcElement.files;if(0!==t.length){var n=new FileReader;n.onloadend=(function(){var e=new Uint8Array(n.result);this.store.dispatch(new V.v(Array.prototype.slice.call(e)))}).bind(this),n.readAsArrayBuffer(t[0])}},e}(),Ze=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100vh;min-height:100%;width:100%}.flex-container[_ngcontent-%COMP%]{height:100%;max-height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-grow[_ngcontent-%COMP%]{background-color:#000;overflow:auto;-webkit-box-flex:1;-ms-flex:1;flex:1}.footer[_ngcontent-%COMP%]{margin-top:.5em;margin-bottom:.5em}.ok-button[_ngcontent-%COMP%]{min-width:100px}"]],data:{}});function Xe(e){return o["\u0275vid"](0,[o["\u0275qud"](402653184,1,{divElement:0}),(e()(),o["\u0275eld"](1,0,null,null,55,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,52,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,35,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](7,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Firmware"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](15,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](16,null,["\n Firmware "," is running on the left keyboard half."])),(e()(),o["\u0275eld"](17,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),o["\u0275ted"](18,null,["\n Firmware "," is running on the right keyboard half.\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](20,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Please note that the firmware update process may sometimes fail. If if fails then\n simply retry until it succeeds. If the left half becomes unresponsive after a failed\n update then retry and follow the instructions displayed during the update to fix it.\n We'll make the firmware update process more robust.\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](26,0,null,null,13,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,3,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onUpdateFirmware()&&i),i},null,null)),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](30,null,["\n Flash firmware "," (bundled with Agent)\n "])),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,5,"label",[["class","btn btn-primary btn-file"]],[[2,"disabled",null]],null,null,null,null)),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n Choose firmware file and flash it\n "])),(e()(),o["\u0275eld"](36,0,null,null,1,"input",[["accept",".tar.bz2"],["id","firmware-file-select"],["type","file"]],[[8,"disabled",0]],[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.changeFile(n)&&i),i},null,null)),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](42,0,[[1,0],["scrollMe",1]],null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](44,0,null,null,2,"xterm",[],null,null,null,Qe,Ge)),o["\u0275did"](45,49152,null,0,$e,[],{logs:[0,"logs"]},null),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](49,0,null,null,5,"div",[["class","footer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](51,0,null,null,2,"button",[["class","btn btn-primary ok-button"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onOkButtonClick()&&i),i},null,null)),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["OK\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,45,0,o["\u0275unv"](t,45,0,o["\u0275nov"](t,46).transform(n.xtermLog$)))},function(e,t){var n=t.component;e(t,16,0,n.hardwareModules.leftModuleInfo.firmwareVersion),e(t,18,0,n.hardwareModules.rightModuleInfo.firmwareVersion),e(t,28,0,o["\u0275unv"](t,28,0,o["\u0275nov"](t,29).transform(n.flashFirmwareButtonDisbabled$))),e(t,30,0,o["\u0275unv"](t,30,0,o["\u0275nov"](t,31).transform(n.getAgentVersionInfo$)).firmwareVersion),e(t,33,0,o["\u0275unv"](t,33,0,o["\u0275nov"](t,34).transform(n.flashFirmwareButtonDisbabled$))),e(t,36,0,o["\u0275unv"](t,36,0,o["\u0275nov"](t,37).transform(n.flashFirmwareButtonDisbabled$))),e(t,51,0,o["\u0275unv"](t,51,0,o["\u0275nov"](t,52).transform(n.firmwareOkButtonDisabled$)))})}var et=o["\u0275ccf"]("device-firmware",Je,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"device-firmware",[["class","container-fluid"]],null,null,null,Xe,Ze)),o["\u0275did"](1,180224,null,0,Je,[s.m],null,null)],null,null)},{},{},[]),tt=function(){function e(e,t){this.store=e,this.cdRef=t}return e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(u.g).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.resetUserConfiguration=function(){this.store.dispatch(new V.g)},e.prototype.restoreUserConfiguration=function(){this.store.dispatch(new V.h)},e}(),nt=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function it(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.restoreUserConfiguration()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Restore the last valid device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function ot(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-danger"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.resetUserConfiguration()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Reset device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function rt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-exclamation-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Fix configuration"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Your on-board device configuration is invalid.\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,it)),o["\u0275did"](12,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,ot)),o["\u0275did"](15,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.state.hasBackupUserConfiguration),e(t,15,0,!n.state.hasBackupUserConfiguration)},null)}var lt=o["\u0275ccf"]("restore-configuration",tt,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"restore-configuration",[["class","container-fluid"]],null,null,null,rt,nt)),o["\u0275did"](1,245760,null,0,tt,[s.m,o.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),st=function(){function e(){this.close=new o.EventEmitter,this.undo=new o.EventEmitter}return Object.defineProperty(e.prototype,"slideInOut",{get:function(){return this.notification?"in":"out"},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(e.notification){var t=e.notification.currentValue;t&&(this.text=t.message,this.undoable=!!t.extra)}},e.prototype.clickOnClose=function(){this.close.emit()},e.prototype.clickOnUndo=function(){this.undo.emit(this.notification.extra)},e}(),at=o["\u0275crt"]({encapsulation:0,styles:[[".alert[_ngcontent-%COMP%]{padding:5px 10px 5px 5px;margin-bottom:.25em;margin-top:-2em}.alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{right:-5px}.alert[_ngcontent-%COMP%] .undo-button[_ngcontent-%COMP%]{cursor:pointer}"]],data:{animation:[{type:7,name:"slideInOut",definitions:[{type:0,name:"in",styles:{type:6,styles:{transform:"translate3d(0, 0, 0)"},offset:null},options:void 0},{type:0,name:"out",styles:{type:6,styles:{transform:"translate3d(200%, 0, 0)"},offset:null},options:void 0},{type:1,expr:"in => out",animation:{type:4,styles:null,timings:"400ms ease-in-out"},options:null},{type:1,expr:"out => in",animation:{type:4,styles:null,timings:"400ms ease-in-out"},options:null}],options:{}}]}});function ut(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"a",[["class","undo-button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.clickOnUndo()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Undo"]))],null,null)}function ct(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","pull-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","alert alert-warning alert-dismissible"],["role","alert"]],[[24,"@slideInOut",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,4,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.clickOnClose()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\xd7"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](9,null,["\n ","\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ut)),o["\u0275did"](11,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,11,0,t.component.undoable)},function(e,t){var n=t.component;e(t,2,0,n.slideInOut),e(t,9,0,n.text)})}var dt=function(){function e(e){this.store=e,this.undoableNotification$=this.store.select(u.o)}return e.prototype.onUndoLastNotification=function(e){this.store.dispatch(new F.m(e))},e.prototype.onDismissLastNotification=function(){this.store.dispatch(new F.d)},e}(),pt=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ft(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),o["\u0275ncd"](null,0),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](5,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,6,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,3,"undoable-notifier",[],null,[[null,"close"],[null,"undo"]],function(e,t,n){var i=!0,o=e.component;return"close"===t&&(i=!1!==o.onDismissLastNotification()&&i),"undo"===t&&(i=!1!==o.onUndoLastNotification(n)&&i),i},ct,at)),o["\u0275did"](10,573440,null,0,st,[],{notification:[0,"notification"]},{close:"close",undo:"undo"}),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,10,0,o["\u0275unv"](t,10,0,o["\u0275nov"](t,11).transform(n.undoableNotification$)))},null)}var ht=function(){function e(e,t){this.elementRef=e,this.renderer=t}return e.prototype.onFocus=function(){this.originalValue=this.elementRef.nativeElement.value},e.prototype.onEscape=function(){this.renderer.setElementProperty(this.elementRef.nativeElement,"value",this.originalValue),this.renderer.invokeElementMethod(this.elementRef.nativeElement,"blur")},e}(),yt=n("WP8/"),mt=n("Lt3n"),gt='Delete keymap',vt=function(){function e(e,t){this.store=e,this.renderer=t,this.downloadClick=new o.EventEmitter,this.trashTitle=gt}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(yt.a.setDefault(this.keymap.abbreviation))},e.prototype.removeKeymap=function(){this.deletable&&this.store.dispatch(yt.a.removeKeymap(this.keymap.abbreviation))},e.prototype.duplicateKeymap=function(){this.store.dispatch(yt.a.duplicateKeymap(this.keymap))},e.prototype.editKeymapName=function(e){mt.d(e)?this.store.dispatch(yt.a.editKeymapName(this.keymap.abbreviation,e)):this.setName()},e.prototype.editKeymapAbbr=function(e){var t=new RegExp(/^[a-zA-Z\d]+$/g);e.length<1||e.length>3||!t.test(e)?this.setAbbreviation():(e=e.toUpperCase(),this.store.dispatch(yt.a.editKeymapAbbr(this.keymap.name,this.keymap.abbreviation,e)))},e.prototype.setKeymapTitle=function(){this.starTitle=this.keymap.isDefault?"This is the default keymap which gets activated when powering the keyboard.":"Makes this keymap the default keymap which gets activated when powering the keyboard."},e.prototype.setTrashTitle=function(){this.trashTitle=this.deletable?gt:'The last keymap cannot be deleted.'},e.prototype.onDownloadIconClick=function(){this.downloadClick.emit()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.keymapName.nativeElement,n=t.parentElement.offsetWidth-530,i=mt.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,i)+"px")},e.prototype.setName=function(){this.renderer.setProperty(this.keymapName.nativeElement,"value",this.keymap.name),this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setAbbreviation=function(){this.renderer.setProperty(this.keymapAbbr.nativeElement,"value",this.keymap.abbreviation)},e}(),bt=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]{cursor:pointer}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]:hover{color:#337ab7}.keymap__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.keymap__remove[_ngcontent-%COMP%]:not(.disabled):hover{cursor:pointer;color:#900}.keymap__remove.disabled[_ngcontent-%COMP%]{opacity:.25}.keymap__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.keymap__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.keymap__download[_ngcontent-%COMP%]{top:10px;font-size:.8em;position:relative;margin-right:10px}.keymap__download[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__abbrev[_ngcontent-%COMP%], .pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem}.pane-title__abbrev[_ngcontent-%COMP%]:focus, .pane-title__name[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}.pane-title__name[_ngcontent-%COMP%]{width:290px;text-overflow:ellipsis}.pane-title__abbrev[_ngcontent-%COMP%]{width:90px;text-align:center}"]],data:{}});function kt(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{keymapName:0}),o["\u0275qud"](402653184,2,{keymapAbbr:0}),(e()(),o["\u0275eld"](2,0,null,null,30,"uhk-header",[],null,null,null,ft,pt)),o["\u0275did"](3,49152,null,0,dt,[s.m],null,null),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275eld"](5,0,null,0,26,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,23,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,[[1,0],["name",1]],null,1,"input",[["cancelable",""],["class","keymap__name pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==o["\u0275nov"](e,12).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,12).onEscape()&&i),"change"===t&&(i=!1!==r.editKeymapName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==o["\u0275nov"](e,11).blur()&&i),"keyup"===t&&(i=!1!==r.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),o["\u0275did"](12,16384,null,0,ht,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,[" keymap\n ("])),(e()(),o["\u0275eld"](14,0,[[2,0],["abbr",1]],null,1,"input",[["cancelable",""],["class","keymap__abbrev pane-title__abbrev"],["type","text"]],[[1,"maxLength",0]],[[null,"change"],[null,"keyup.enter"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==o["\u0275nov"](e,15).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,15).onEscape()&&i),"change"===t&&(i=!1!==r.editKeymapAbbr(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==o["\u0275nov"](e,14).blur()&&i),i},null,null)),o["\u0275did"](15,16384,null,0,ht,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,[")\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"i",[["class","fa keymap__is-default"],["data-placement","bottom"],["data-toggle","tooltip"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setDefault()&&i),i},null,null)),o["\u0275did"](18,278528,null,0,d.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](19,{"fa-star-o":0,"fa-star":1}),o["\u0275did"](20,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,1,"i",[["class","glyphicon glyphicon-trash keymap__remove pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"]],[[2,"disabled",null],[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.removeKeymap()&&i),i},null,null)),o["\u0275did"](23,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"i",[["class","fa fa-files-o keymap__duplicate pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Duplicate keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.duplicateKeymap()&&i),i},null,null)),o["\u0275did"](26,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,1,"i",[["class","fa fa-download keymap__download pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Download keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onDownloadIconClick()&&i),i},null,null)),o["\u0275did"](29,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,18,0,"fa keymap__is-default",e(t,19,0,!n.keymap.isDefault,n.keymap.isDefault)),e(t,20,0,n.starTitle),e(t,23,0,n.trashTitle,"true"),e(t,26,0,"Duplicate keymap"),e(t,29,0,"Download keymap",!0)},function(e,t){var n=t.component;e(t,14,0,3),e(t,17,0,o["\u0275nov"](t,20).placement),e(t,22,0,!n.deletable,o["\u0275nov"](t,23).placement),e(t,25,0,o["\u0275nov"](t,26).placement),e(t,28,0,o["\u0275nov"](t,29).placement)})}var _t=function(){function e(){this.select=new o.EventEmitter,this.buttons=["Base","Mod","Fn","Mouse"],this.current=0}return e.prototype.selectLayer=function(e){this.current!==e&&(this.select.emit({oldIndex:this.current,index:e}),this.current=e)},e}(),At=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.disabled[_nghost-%COMP%] button[_ngcontent-%COMP%]{cursor:no-drop;background:rgba(204,204,204,.43);pointer-events:none}.disabled[_nghost-%COMP%] button.btn-primary[_ngcontent-%COMP%]{background:#7c7c7c;border-color:#7c7c7c}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:2rem}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:.55em;right:100%;font-size:18px;padding-right:.45em;margin:0}"]],data:{}});function wt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.selectLayer(e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.context.index===t.component.current),e(t,1,0,t.context.$implicit)})}function Tt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,4,"span",[["class","uhk__layer-switcher--wrapper btn-group btn-group-lg"],["data-title","Layers: "],["role","group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,wt)),o["\u0275did"](5,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.buttons)},null)}var Ct=function(){function e(){}return e.prototype.ngOnInit=function(){this.svgWidth=this.width/3,this.svgHeight=this.height/3},e}(),Ot=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function xt(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.svgWidth,n.svgHeight,n.svgWidth,n.svgHeight)})}var St=function(){function e(){}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2},e}(),Et=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Mt(e){return o["\u0275vid"](2,[(e()(),o["\u0275ted"](-1,null,[" "])),(e()(),o["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,":svg:tspan",[["dy","0"]],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](4,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,1,0,0,n.textY,"middle"),e(t,3,0,n.spanX),e(t,4,0,n.text)})}var Pt=function(){function e(){this.spanYs=[]}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2;for(var e=0;e"]),this.basicScanCodeTextMap.set(56,["/","?"]),this.basicScanCodeTextMap.set(57,["Caps Lock"]),this.basicScanCodeTextMap.set(58,["F1"]),this.basicScanCodeTextMap.set(59,["F2"]),this.basicScanCodeTextMap.set(60,["F3"]),this.basicScanCodeTextMap.set(61,["F4"]),this.basicScanCodeTextMap.set(62,["F5"]),this.basicScanCodeTextMap.set(63,["F6"]),this.basicScanCodeTextMap.set(64,["F7"]),this.basicScanCodeTextMap.set(65,["F8"]),this.basicScanCodeTextMap.set(66,["F9"]),this.basicScanCodeTextMap.set(67,["F10"]),this.basicScanCodeTextMap.set(68,["F11"]),this.basicScanCodeTextMap.set(69,["F12"]),this.basicScanCodeTextMap.set(70,["PrtScn"]),this.basicScanCodeTextMap.set(71,["Scroll Lock"]),this.basicScanCodeTextMap.set(72,["Pause"]),this.basicScanCodeTextMap.set(73,["Insert"]),this.basicScanCodeTextMap.set(74,["Home"]),this.basicScanCodeTextMap.set(75,["PgUp"]),this.basicScanCodeTextMap.set(76,["Del"]),this.basicScanCodeTextMap.set(77,["End"]),this.basicScanCodeTextMap.set(78,["PgDn"]),this.basicScanCodeTextMap.set(79,["Right Arrow"]),this.basicScanCodeTextMap.set(80,["Left Arrow"]),this.basicScanCodeTextMap.set(81,["Down Arrow"]),this.basicScanCodeTextMap.set(82,["Up Arrow"]),this.basicScanCodeTextMap.set(83,["Num Lock"]),this.basicScanCodeTextMap.set(84,["/"]),this.basicScanCodeTextMap.set(85,["*"]),this.basicScanCodeTextMap.set(86,["-"]),this.basicScanCodeTextMap.set(87,["+"]),this.basicScanCodeTextMap.set(88,["Enter"]),this.basicScanCodeTextMap.set(89,["end","1"]),this.basicScanCodeTextMap.set(90,["2"]),this.basicScanCodeTextMap.set(91,["pgdn","3"]),this.basicScanCodeTextMap.set(92,["4"]),this.basicScanCodeTextMap.set(93,["5"]),this.basicScanCodeTextMap.set(94,["6"]),this.basicScanCodeTextMap.set(95,["home","7"]),this.basicScanCodeTextMap.set(96,["8"]),this.basicScanCodeTextMap.set(97,["pgup","9"]),this.basicScanCodeTextMap.set(98,["Insert","0"]),this.basicScanCodeTextMap.set(99,["Del","."]),this.basicScanCodeTextMap.set(100,["ISO key","|"]),this.basicScanCodeTextMap.set(101,["Menu"]),this.basicScanCodeTextMap.set(104,["F13"]),this.basicScanCodeTextMap.set(105,["F14"]),this.basicScanCodeTextMap.set(106,["F15"]),this.basicScanCodeTextMap.set(107,["F16"]),this.basicScanCodeTextMap.set(108,["F17"]),this.basicScanCodeTextMap.set(109,["F18"]),this.basicScanCodeTextMap.set(110,["F19"]),this.basicScanCodeTextMap.set(111,["F20"]),this.basicScanCodeTextMap.set(112,["F21"]),this.basicScanCodeTextMap.set(113,["F22"]),this.basicScanCodeTextMap.set(114,["F23"]),this.basicScanCodeTextMap.set(115,["F24"]),this.basicScanCodeTextMap.set(176,["00"]),this.basicScanCodeTextMap.set(177,["000"]),this.mediaScanCodeTextMap=new Map,this.mediaScanCodeTextMap.set(138,["WWW"]),this.mediaScanCodeTextMap.set(176,["Play"]),this.mediaScanCodeTextMap.set(177,["Pause"]),this.mediaScanCodeTextMap.set(181,["Next"]),this.mediaScanCodeTextMap.set(182,["Prev"]),this.mediaScanCodeTextMap.set(183,["Stop"]),this.mediaScanCodeTextMap.set(184,["Eject"]),this.mediaScanCodeTextMap.set(204,["Eject","Stop"]),this.mediaScanCodeTextMap.set(205,["Pause","Play"]),this.mediaScanCodeTextMap.set(226,["Mute"]),this.mediaScanCodeTextMap.set(233,["Vol +"]),this.mediaScanCodeTextMap.set(234,["Vol -"]),this.mediaScanCodeTextMap.set(406,["Launch Web Browser"]),this.mediaScanCodeTextMap.set(394,["Launch Email Client"]),this.mediaScanCodeTextMap.set(402,["Launch Calculator"]),this.sytemScanCodeTextMap=new Map,this.sytemScanCodeTextMap.set(129,["Power Down"]),this.sytemScanCodeTextMap.set(130,["Sleep"]),this.sytemScanCodeTextMap.set(131,["Wake Up"])},e.prototype.initScancodeIcons=function(){this.basicScancodeIcons=new Map,this.basicScancodeIcons.set(79,"icon-kbd__mod--arrow-right"),this.basicScancodeIcons.set(80,"icon-kbd__mod--arrow-left"),this.basicScancodeIcons.set(81,"icon-kbd__mod--arrow-down"),this.basicScancodeIcons.set(82,"icon-kbd__mod--arrow-up"),this.basicScancodeIcons.set(101,"icon-kbd__mod--menu"),this.mediaScancodeIcons=new Map,this.mediaScancodeIcons.set(138,"icon-kbd__fn--browser"),this.mediaScancodeIcons.set(176,"icon-kbd__media--play"),this.mediaScancodeIcons.set(177,"icon-kbd__media--pause"),this.mediaScancodeIcons.set(181,"icon-kbd__media--next"),this.mediaScancodeIcons.set(182,"icon-kbd__media--prev"),this.mediaScancodeIcons.set(184,"icon-kbd__fn--eject"),this.mediaScancodeIcons.set(226,"icon-kbd__media--mute"),this.mediaScancodeIcons.set(233,"icon-kbd__media--vol-up"),this.mediaScancodeIcons.set(234,"icon-kbd__media--vol-down"),this.mediaScancodeIcons.set(406,"icon-kbd__media--web-browser"),this.mediaScancodeIcons.set(394,"icon-kbd__media--email-client"),this.mediaScancodeIcons.set(402,"icon-kbd__media--calculator"),this.systemScancodeIcons=new Map,this.systemScancodeIcons.set(129,"icon-kbd__system_power_down"),this.systemScancodeIcons.set(130,"icon-kbd__system_sleep"),this.systemScancodeIcons.set(131,"icon-kbd__system_wake_up")},e.prototype.initNameToFileNames=function(){this.nameToFileName=new Map,this.nameToFileName.set("toggle","icon-kbd__fn--toggle"),this.nameToFileName.set("switch-keymap","icon-kbd__mod--switch-keymap"),this.nameToFileName.set("macro","icon-icon__macro"),this.nameToFileName.set("shift","icon-kbd__default--modifier-shift"),this.nameToFileName.set("option","icon-kbd__default--modifier-option"),this.nameToFileName.set("command","icon-kbd__default--modifier-command"),this.nameToFileName.set("mouse","icon-kbd__mouse"),this.nameToFileName.set("left-arrow","icon-kbd__mod--arrow-left"),this.nameToFileName.set("right-arrow","icon-kbd__mod--arrow-right"),this.nameToFileName.set("down-arrow","icon-kbd__mod--arrow-down"),this.nameToFileName.set("up-arrow","icon-kbd__mod--arrow-up"),this.nameToFileName.set("scroll-left","icon-kbd__mouse--scroll-left"),this.nameToFileName.set("scroll-right","icon-kbd__mouse--scroll-right"),this.nameToFileName.set("scroll-down","icon-kbd__mouse--scroll-down"),this.nameToFileName.set("scroll-up","icon-kbd__mouse--scroll-up")},e}(),jt=function(){this.width=0,this.height=0,this.x=0,this.y=0,this.disabled=!0},Ut=function(){function e(e){this.mapper=e,this.modifierIconNames={},this.textContainer=new jt,this.modifierContainer=new jt,this.shift=new jt,this.control=new jt,this.option=new jt,this.command=new jt}return e.prototype.ngOnInit=function(){if(this.viewBox=[0,0,this.width,this.height].join(" "),this.modifierIconNames.shift=this.mapper.getIcon("shift"),this.modifierIconNames.option=this.mapper.getIcon("option"),this.modifierIconNames.command=this.mapper.getIcon("command"),this.width<1.8*this.height){var e=this.width/4,t=this.height,n=(o=.8)*(this.height/this.width)*e,i=o*t;this.modifierContainer.width=this.width,this.modifierContainer.height=this.height/5,this.modifierContainer.y=this.height-this.modifierContainer.height,this.shift.width=n,this.shift.height=i,this.shift.x=(e-n)/2,this.shift.y=(t-i)/2,this.control.width=n,this.control.height=i,this.control.x=this.shift.x+e,this.control.y=this.shift.y,this.option.width=n,this.option.height=i,this.option.x=this.control.x+e,this.option.y=this.shift.y,this.command.width=n,this.command.height=i,this.command.x=this.option.x+e,this.command.y=this.shift.y,this.textContainer.y=-this.modifierContainer.height/2}else{this.modifierContainer.width=this.width/4,this.modifierContainer.height=this.height,this.modifierContainer.x=this.width-this.modifierContainer.width;var o,r=Math.min(this.modifierContainer.width/2,this.modifierContainer.height/2);i=(o=.8)*this.height*(r/this.modifierContainer.height),this.shift.width=n=o*this.width*(r/this.modifierContainer.width),this.shift.height=i,this.shift.x=this.width/4-n/2,this.shift.y=this.height/4-i/2,this.control.width=n,this.control.height=i,this.control.x=this.shift.x+this.width/2,this.control.y=this.shift.y,this.option.width=n,this.option.height=i,this.option.x=this.shift.x,this.option.y=this.shift.y+this.height/2,this.command.width=n,this.command.height=i,this.command.x=this.option.x+this.width/2,this.command.y=this.option.y,this.textContainer.x=-this.modifierContainer.width/2}this.textContainer.width=this.width,this.textContainer.height=this.height},e.prototype.ngOnChanges=function(){if(this.keystrokeAction.hasScancode()){var e,t=this.keystrokeAction.scancode;this.labelSource=this.mapper.scanCodeToSvgImagePath(t,this.keystrokeAction.type),this.labelSource?this.labelType="icon":(e=this.mapper.scanCodeToText(t,this.keystrokeAction.type))&&(1===e.length?(this.labelSource=e[0],this.labelType="one-line"):(this.labelSource=e,this.labelType="two-line"))}else this.labelType="empty";this.shift.disabled=!this.keystrokeAction.isActive(Ne.KeyModifiers.leftShift|Ne.KeyModifiers.rightShift),this.control.disabled=!this.keystrokeAction.isActive(Ne.KeyModifiers.leftCtrl|Ne.KeyModifiers.rightCtrl),this.option.disabled=!this.keystrokeAction.isActive(Ne.KeyModifiers.leftAlt|Ne.KeyModifiers.rightAlt),this.command.disabled=!this.keystrokeAction.isActive(Ne.KeyModifiers.leftGui|Ne.KeyModifiers.rightGui)},e}(),Lt=o["\u0275crt"]({encapsulation:0,styles:[[".disabled[_ngcontent-%COMP%]{fill:gray}text[_ngcontent-%COMP%]{font-size:100px}"]],data:{}});function Vt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,xt,Ot)),o["\u0275did"](1,114688,null,0,Ct,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Ft(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Mt,Et)),o["\u0275did"](1,114688,null,0,St,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Kt(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,Nt,It)),o["\u0275did"](1,114688,null,0,Pt,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Bt(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,11,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),o["\u0275did"](1,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Vt)),o["\u0275did"](4,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ft)),o["\u0275did"](7,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Kt)),o["\u0275did"](10,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](13,0,null,null,22,":svg:svg",[["preserveAspectRatio","none"]],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,4,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,1,":svg:text",[],[[1,"text-anchor",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["C"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.labelType),e(t,4,0,"icon"),e(t,7,0,"one-line"),e(t,10,0,"two-line")},function(e,t){var n=t.component;e(t,0,0,n.viewBox,n.textContainer.width,n.textContainer.height,n.textContainer.x,n.textContainer.y),e(t,13,0,n.viewBox,n.modifierContainer.width,n.modifierContainer.height,n.modifierContainer.x,n.modifierContainer.y),e(t,15,0,n.shift.width,n.shift.height,n.shift.x,n.shift.y,n.shift.disabled),e(t,17,0,n.modifierIconNames.shift),e(t,20,0,n.control.width,n.control.height,n.control.x,n.control.y,n.control.disabled),e(t,22,0,"middle",50,50),e(t,26,0,n.option.width,n.option.height,n.option.x,n.option.y,n.option.disabled),e(t,28,0,n.modifierIconNames.option),e(t,31,0,n.command.width,n.command.height,n.command.x,n.command.y,n.command.disabled),e(t,33,0,n.modifierIconNames.command)})}var Ht=function(){function e(){}return e.prototype.ngOnInit=function(){this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?.6*this.width:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/2,this.textY=this.width>2*this.height?this.height/2:this.height/3,this.textAnchor=this.width>2*this.height?"end":"middle",this.spanX=this.width>2*this.height?.6*this.width:this.width/2},e}(),Wt=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function qt(e){return o["\u0275vid"](2,[(e()(),o["\u0275ted"](-1,null,[" "])),(e()(),o["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](4,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](7,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,0,n.textY,n.textAnchor),e(t,3,0,n.spanX),e(t,4,0,n.text),e(t,7,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY)})}var zt=function(){function e(){}return e.prototype.ngOnInit=function(){this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?0:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/10,this.textY=this.width>2*this.height?this.height/2:.6*this.height,this.spanX=this.width>2*this.height?.6*this.width:this.width/2},e}(),$t=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Gt(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY),e(t,3,0,0,n.textY,"middle",11),e(t,5,0,n.spanX),e(t,6,0,n.text)})}var Yt=function(){function e(e){this.mapperService=e}return e.prototype.ngOnInit=function(){this.icon=this.mapperService.getIcon("switch-keymap"),this.useWidth=this.width/4,this.useHeight=this.height/4,this.useX=3*this.width/8,this.useY=this.height/5,this.textY=2*this.height/3,this.spanX=this.width/2},e}(),Qt=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Jt(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),o["\u0275ted"](6,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY),e(t,3,0,0,n.textY,"middle"),e(t,5,0,n.spanX),e(t,6,0,n.abbreviation)})}var Zt=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnInit=function(){},e}(),Xt=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function en(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","10"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Click "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),o["\u0275ted"](12,null,[" "," "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon),e(t,3,0,60,0,"middle",25),e(t,9,0,50,0,"middle",25),e(t,12,0,n.button)})}var tn=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}(),nn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function on(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Move "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.mouseIcon),e(t,2,0,60,0,"middle",24),e(t,8,0,n.directionIcon)})}var rn=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}(),ln=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function sn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Scroll "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.mouseIcon),e(t,2,0,60,0,"middle",24),e(t,8,0,n.directionIcon)})}var an=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnChanges=function(){this.sign=this.plus?"+":"-"},e}(),un=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function cn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","4"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Speed "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),o["\u0275ted"](12,null,[" "," "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon),e(t,3,0,60,0,"middle",25),e(t,9,0,50,0,"middle",30),e(t,12,0,n.sign)})}var dn=function(){function e(){}return e.prototype.ngOnChanges=function(){switch(this.mouseAction.mouseAction){case Ne.MouseActionParam.leftClick:this.type="click",this.param="Left";break;case Ne.MouseActionParam.rightClick:this.type="click",this.param="Right";break;case Ne.MouseActionParam.middleClick:this.type="click",this.param="Middle";break;case Ne.MouseActionParam.scrollDown:this.type="scroll",this.param="down";break;case Ne.MouseActionParam.scrollLeft:this.type="scroll",this.param="left";break;case Ne.MouseActionParam.scrollRight:this.type="scroll",this.param="right";break;case Ne.MouseActionParam.scrollUp:this.type="scroll",this.param="up";break;case Ne.MouseActionParam.moveDown:this.type="move",this.param="down";break;case Ne.MouseActionParam.moveLeft:this.type="move",this.param="left";break;case Ne.MouseActionParam.moveRight:this.type="move",this.param="right";break;case Ne.MouseActionParam.moveUp:this.type="move",this.param="up";break;case Ne.MouseActionParam.accelerate:this.type="speed",this.param=!0;break;case Ne.MouseActionParam.decelerate:this.type="speed",this.param=!1}},e}(),pn=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function fn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-click-key",""]],null,null,null,en,Xt)),o["\u0275did"](1,114688,null,0,Zt,[Dt],{button:[0,"button"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function hn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-move-key",""]],null,null,null,on,nn)),o["\u0275did"](1,573440,null,0,tn,[Dt],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function yn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-scroll-key",""]],null,null,null,sn,ln)),o["\u0275did"](1,573440,null,0,rn,[Dt],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function mn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-speed-key",""]],null,null,null,cn,un)),o["\u0275did"](1,573440,null,0,an,[Dt],{plus:[0,"plus"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function gn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,14,":svg:g",[],null,null,null,null,null)),o["\u0275did"](1,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,fn)),o["\u0275did"](4,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,hn)),o["\u0275did"](7,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,yn)),o["\u0275did"](10,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,mn)),o["\u0275did"](13,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.type),e(t,4,0,"click"),e(t,7,0,"move"),e(t,10,0,"scroll"),e(t,13,0,"speed")},null)}var vn=function(){function e(){this.leftModifiers=new Map,this.rightModifiers=new Map,this.mapping=new Map}return e.prototype.getMap=function(e){return this.mapping.get(e)},e.prototype.hasMap=function(e){return this.mapping.has(e)},e.prototype.setModifier=function(e,t){return e?this.leftModifiers.set(t,!0):this.rightModifiers.set(t,!0)},e.prototype.getModifiers=function(e){return this.reMap(e?this.leftModifiers:this.rightModifiers)},e.prototype.initModifiers=function(){this.leftModifiers.set(16,!1),this.leftModifiers.set(17,!1),this.leftModifiers.set(18,!1),this.leftModifiers.set(91,!1),this.rightModifiers.set(16,!1),this.rightModifiers.set(17,!1),this.rightModifiers.set(18,!1),this.rightModifiers.set(91,!1)},e.prototype.populateMapping=function(){this.mapping.set(8,42),this.mapping.set(9,43),this.mapping.set(13,40),this.mapping.set(19,72),this.mapping.set(20,57),this.mapping.set(27,41),this.mapping.set(32,44),this.mapping.set(33,75),this.mapping.set(34,78),this.mapping.set(35,77),this.mapping.set(36,74),this.mapping.set(37,80),this.mapping.set(38,82),this.mapping.set(39,79),this.mapping.set(40,81),this.mapping.set(45,73),this.mapping.set(46,76),this.mapping.set(48,39),this.mapping.set(49,30),this.mapping.set(50,31),this.mapping.set(51,32),this.mapping.set(52,33),this.mapping.set(53,34),this.mapping.set(54,35),this.mapping.set(55,36),this.mapping.set(56,37),this.mapping.set(57,38),this.mapping.set(65,4),this.mapping.set(66,5),this.mapping.set(67,6),this.mapping.set(68,7),this.mapping.set(69,8),this.mapping.set(70,9),this.mapping.set(71,10),this.mapping.set(72,11),this.mapping.set(73,12),this.mapping.set(74,13),this.mapping.set(75,14),this.mapping.set(76,15),this.mapping.set(77,16),this.mapping.set(78,17),this.mapping.set(79,18),this.mapping.set(80,19),this.mapping.set(81,20),this.mapping.set(82,21),this.mapping.set(83,22),this.mapping.set(84,23),this.mapping.set(85,24),this.mapping.set(86,25),this.mapping.set(87,26),this.mapping.set(88,27),this.mapping.set(89,28),this.mapping.set(90,29),this.mapping.set(93,101),this.mapping.set(96,98),this.mapping.set(97,89),this.mapping.set(98,90),this.mapping.set(99,91),this.mapping.set(100,92),this.mapping.set(101,93),this.mapping.set(102,94),this.mapping.set(103,95),this.mapping.set(104,96),this.mapping.set(105,97),this.mapping.set(106,85),this.mapping.set(107,87),this.mapping.set(109,86),this.mapping.set(110,99),this.mapping.set(111,84),this.mapping.set(112,58),this.mapping.set(113,59),this.mapping.set(114,60),this.mapping.set(115,61),this.mapping.set(116,62),this.mapping.set(117,63),this.mapping.set(118,64),this.mapping.set(119,65),this.mapping.set(120,66),this.mapping.set(121,67),this.mapping.set(122,68),this.mapping.set(123,69),this.mapping.set(144,83),this.mapping.set(145,71),this.mapping.set(186,51),this.mapping.set(187,46),this.mapping.set(188,54),this.mapping.set(189,45),this.mapping.set(190,55),this.mapping.set(191,56),this.mapping.set(192,53),this.mapping.set(219,47),this.mapping.set(220,49),this.mapping.set(221,48),this.mapping.set(222,52)},e.prototype.reMap=function(e){return[e.get(16),e.get(17),e.get(91),e.get(18)]},e}(),bn=n("yqBA"),kn=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}({}),_n=function(){function e(e,t,n,i,r){var l=this;this.mapper=e,this.element=n,this.captureService=i,this.renderer=r,this.keyClick=new o.EventEmitter,this.capture=new o.EventEmitter,this.enumLabelTypes=kn,this.changeAnimation="inactive",this.subscription=t.let(Object(bn.d)()).subscribe(function(e){return l.macros=e}),this.reset(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onClick=function(){this.reset(),this.keyClick.emit(this.element.nativeElement)},e.prototype.onMouseDown=function(e){2!==e.which&&1!==e.button||!this.capturingEnabled||(e.preventDefault(),this.renderer.invokeElementMethod(this.element.nativeElement,"focus"),this.recording?this.reset():(this.recording=!0,this.recordAnimation="active"))},e.prototype.onKeyUp=function(e){this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.recording&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var t=e.keyCode;this.recording&&(e.preventDefault(),this.captureService.hasMap(t)?(this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t))},e.prototype.onFocusOut=function(){this.reset()},e.prototype.ngOnInit=function(){this.setLabels()},e.prototype.ngOnChanges=function(e){e.keyAction&&(this.setLabels(),this.keybindAnimationEnabled&&(this.changeAnimation="active"))},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onChangeAnimationDone=function(){this.changeAnimation="inactive"},e.prototype.onRecordingAnimationDone=function(){this.recordAnimation=this.recording&&"inactive"===this.recordAnimation?"active":"inactive"},e.prototype.reset=function(){this.recording=!1,this.changeAnimation="inactive",this.captureService.initModifiers()},e.prototype.saveScanCode=function(e){void 0===e&&(e=0),this.recording=!1,this.changeAnimation="inactive";var t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:t,right:n}),this.captureService.initModifiers()},e.prototype.setLabels=function(){if(!this.keyAction)return this.labelSource=void 0,void(this.labelType=kn.OneLineText);if(this.labelType=kn.OneLineText,this.keyAction instanceof Ne.KeystrokeAction){var e=void 0;if(!(n=this.keyAction).hasActiveModifier()&&n.hasScancode()){var t=n.scancode;e=this.mapper.scanCodeToText(t,n.type),this.mapper.hasScancodeIcon(t,n.type)?(this.labelSource=this.mapper.scanCodeToSvgImagePath(t,n.type),this.labelType=kn.SingleIcon):void 0!==e&&(1===e.length?(this.labelSource=e[0],this.labelType=kn.OneLineText):(this.labelSource=e,this.labelType=kn.TwoLineText))}else if(n.hasOnlyOneActiveModifier()&&!n.hasScancode()){switch(e=[],n.modifierMask){case Ne.KeyModifiers.leftCtrl:case Ne.KeyModifiers.rightCtrl:e.push("Ctrl");break;case Ne.KeyModifiers.leftShift:case Ne.KeyModifiers.rightShift:e.push("Shift");break;case Ne.KeyModifiers.leftAlt:case Ne.KeyModifiers.rightAlt:e.push("Alt");break;case Ne.KeyModifiers.leftGui:case Ne.KeyModifiers.rightGui:e.push("Super");break;default:e.push("Undefined")}this.labelSource=e}else this.labelType=kn.KeystrokeKey,this.labelSource=this.keyAction}else if(this.keyAction instanceof Ne.SwitchLayerAction){switch(e=void 0,(n=this.keyAction).layer){case Ne.LayerName.mod:e="Mod";break;case Ne.LayerName.fn:e="Fn";break;case Ne.LayerName.mouse:e="Mouse"}n.isLayerToggleable?(this.labelType=kn.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("toggle")}):(this.labelType=kn.OneLineText,this.labelSource=e)}else if(this.keyAction instanceof Ne.SwitchKeymapAction){var n=this.keyAction;this.labelType=kn.SwitchKeymap,this.labelSource=n.keymapAbbreviation}else if(this.keyAction instanceof Ne.PlayMacroAction){var i=this.keyAction,o=this.macros.find(function(e){return e.id===i.macroId});this.labelType=kn.IconText,this.labelSource={icon:this.mapper.getIcon("macro"),text:o.name}}else this.keyAction instanceof Ne.MouseAction?(this.labelType=kn.MouseKey,this.labelSource=this.keyAction):this.labelSource=void 0},e}(),An=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{cursor:pointer;outline:0}[_nghost-%COMP%] text{dominant-baseline:central}[_nghost-%COMP%]:hover{fill:#494949}"]],data:{animation:[{type:7,name:"change",definitions:[{type:1,expr:"inactive => active",animation:[{type:6,styles:{fill:"#fff"},offset:null},{type:3,steps:[{type:4,styles:{type:6,styles:{fill:"#333"},offset:null},timings:"1s ease-out"}],options:null}],options:null}],options:{}},{type:7,name:"active",definitions:[{type:0,name:"1",styles:{type:6,styles:{fill:"#4099e5"},offset:null},options:void 0},{type:1,expr:"1 => *",animation:{type:4,styles:null,timings:"200ms"},options:null},{type:1,expr:"* => 1",animation:{type:4,styles:null,timings:"0ms"},options:null}],options:{}},{type:7,name:"recording",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 1)"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 0.6)"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"600ms ease-in-out"},options:null}],options:{}}]}});function wn(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,0,":svg:circle",[],[[24,"@recording",0],[1,"cx",0],[1,"cy",0],[1,"r",0],[1,"fill",0]],[[null,"@recording.done"]],function(e,t,n){var i=!0;return"@recording.done"===t&&(i=!1!==e.component.onRecordingAnimationDone()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,n.recordAnimation,n.width/2,n.height/2,10,"#c00")})}function Tn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-keystroke-key",""]],null,null,null,Bt,Lt)),o["\u0275did"](1,638976,null,0,Ut,[Dt],{height:[0,"height"],width:[1,"width"],keystrokeAction:[2,"keystrokeAction"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Cn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Mt,Et)),o["\u0275did"](1,114688,null,0,St,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function On(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,Nt,It)),o["\u0275did"](1,114688,null,0,Pt,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function xn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-text-icon-key",""]],null,null,null,qt,Wt)),o["\u0275did"](1,114688,null,0,Ht,[],{width:[0,"width"],height:[1,"height"],text:[2,"text"],icon:[3,"icon"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.text,n.labelSource.icon)},null)}function Sn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-icon-text-key",""]],null,null,null,Gt,$t)),o["\u0275did"](1,114688,null,0,zt,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"],text:[3,"text"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.icon,n.labelSource.text)},null)}function En(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,xt,Ot)),o["\u0275did"](1,114688,null,0,Ct,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Mn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-switch-keymap-key",""]],null,null,null,Jt,Qt)),o["\u0275did"](1,114688,null,0,Yt,[Dt],{width:[0,"width"],height:[1,"height"],abbreviation:[2,"abbreviation"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Pn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,":svg:g",[["svg-mouse-key",""]],null,null,null,gn,pn)),o["\u0275did"](3,573440,null,0,dn,[],{mouseAction:[0,"mouseAction"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.labelSource)},function(e,t){var n=t.component;e(t,0,0,"0 0 100 100",n.width,n.height)})}function In(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,26,":svg:g",[],[[1,"font-size",0],[1,"font-family",0],[1,"fill",0]],null,null,null,null)),o["\u0275did"](2,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Tn)),o["\u0275did"](5,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Cn)),o["\u0275did"](8,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,On)),o["\u0275did"](11,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,xn)),o["\u0275did"](14,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Sn)),o["\u0275did"](17,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,En)),o["\u0275did"](20,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Mn)),o["\u0275did"](23,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Pn)),o["\u0275did"](26,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.labelType),e(t,5,0,n.enumLabelTypes.KeystrokeKey),e(t,8,0,n.enumLabelTypes.OneLineText),e(t,11,0,n.enumLabelTypes.TwoLineText),e(t,14,0,n.enumLabelTypes.TextIcon),e(t,17,0,n.enumLabelTypes.IconText),e(t,20,0,n.enumLabelTypes.SingleIcon),e(t,23,0,n.enumLabelTypes.SwitchKeymap),e(t,26,0,n.enumLabelTypes.MouseKey)},function(e,t){e(t,1,0,19,"Helvetica","white")})}function Rn(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,0,":svg:rect",[],[[24,"@change",0],[24,"@active",0],[8,"id",0],[1,"rx",0],[1,"ry",0],[1,"height",0],[1,"width",0]],[[null,"@change.done"]],function(e,t,n){var i=!0;return"@change.done"===t&&(i=!1!==e.component.onChangeAnimationDone()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,wn)),o["\u0275did"](3,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,In)),o["\u0275did"](6,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.recording),e(t,6,0,!n.recording)},function(e,t){var n=t.component;e(t,0,0,n.changeAnimation,n.active,n.id,n.rx,n.ry,n.height,n.width)})}var Nn=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return this.sanitizer.bypassSecurityTrustStyle(e)},e}(),Dn=function(){function e(){this.keyClick=new o.EventEmitter,this.keyHover=new o.EventEmitter,this.capture=new o.EventEmitter,this.keyboardKeys=[]}return e.prototype.onKeyClick=function(e,t){this.keyClick.emit({index:e,keyTarget:t})},e.prototype.onKeyHover=function(e,t,n){this.keyHover.emit({index:e,event:t,over:n})},e.prototype.onCapture=function(e,t){this.capture.emit({index:e,captured:t})},e}(),jn=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{position:relative}"]],data:{}});function Un(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:path",[],[[1,"d",0],[1,"style",2]],null,null,null,null)),o["\u0275ppd"](1,1)],null,function(e,t){e(t,0,0,t.context.$implicit.$.d,o["\u0275unv"](t,0,1,e(t,1,0,o["\u0275nov"](t.parent,0),t.context.$implicit.$.style)))})}function Ln(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-keyboard-key",""]],[[1,"transform",0],[1,"fill",0],[1,"tabindex",0]],[[null,"keyClick"],[null,"capture"],[null,"mouseenter"],[null,"mouseleave"],[null,"click"],[null,"mousedown"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==o["\u0275nov"](e,1).onClick()&&i),"mousedown"===t&&(i=!1!==o["\u0275nov"](e,1).onMouseDown(n)&&i),"keyup"===t&&(i=!1!==o["\u0275nov"](e,1).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==o["\u0275nov"](e,1).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==o["\u0275nov"](e,1).onFocusOut()&&i),"keyClick"===t&&(i=!1!==r.onKeyClick(e.parent.context.index,n)&&i),"capture"===t&&(i=!1!==r.onCapture(e.parent.context.index,n)&&i),"mouseenter"===t&&(i=!1!==r.onKeyHover(e.parent.context.index,n,!0)&&i),"mouseleave"===t&&(i=!1!==r.onKeyHover(e.parent.context.index,n,!1)&&i),i},Rn,An)),o["\u0275did"](1,770048,null,0,_n,[Dt,s.m,o.ElementRef,vn,o.Renderer],{id:[0,"id"],rx:[1,"rx"],ry:[2,"ry"],height:[3,"height"],width:[4,"width"],keyAction:[5,"keyAction"],keybindAnimationEnabled:[6,"keybindAnimationEnabled"],capturingEnabled:[7,"capturingEnabled"],active:[8,"active"]},{keyClick:"keyClick",capture:"capture"})],function(e,t){var n=t.component;e(t,1,0,t.parent.context.$implicit.id,t.parent.context.$implicit.rx,t.parent.context.$implicit.ry,t.parent.context.$implicit.height,t.parent.context.$implicit.width,n.keyActions[t.parent.context.index],n.keybindAnimationEnabled,n.capturingEnabled,n.selected&&t.parent.context.index==n.selectedKey.keyId)},function(e,t){e(t,0,0,"translate("+t.parent.context.$implicit.x+" "+t.parent.context.$implicit.y+")",t.parent.context.$implicit.fill,0)})}function Vn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ln)),o["\u0275did"](3,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.context.$implicit)},null)}function Fn(e){return o["\u0275vid"](2,[o["\u0275pid"](0,Nn,[P.c]),(e()(),o["\u0275and"](16777216,null,null,1,null,Un)),o["\u0275did"](2,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Vn)),o["\u0275did"](5,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.coverages),e(t,5,0,n.keyboardKeys)},null)}var Kn=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.el.nativeElement.focus()},e}(),Bn=function(){function e(e){this.cdr=e,this.placeholder="No editable content",this.editing=!1,this.textChange=function(){}}return Object.defineProperty(e.prototype,"isSaveDisabled",{get:function(){return!this.text||0===this.text.trim().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayText",{get:function(){return this.text&&this.text.replace(/\n/g,"
")},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.text!==e&&(this.text=e,this.cdr.markForCheck())},e.prototype.registerOnChange=function(e){this.textChange=e},e.prototype.registerOnTouched=function(e){},e.prototype.saveText=function(){this.originalText=null,this.editing=!1,this.textChange(this.text)},e.prototype.editText=function(){this.originalText=this.text,this.editing=!0},e.prototype.cancelEditText=function(){this.text=this.originalText,this.editing=!1},e.prototype.keydownEnter=function(){this.isSaveDisabled||this.saveText()},Object.defineProperty(e.prototype,"showPlaceholder",{get:function(){return!this.editing&&!this.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showText",{get:function(){return!this.editing&&!!this.text},enumerable:!0,configurable:!0}),e}(),Hn=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{margin-top:.5em}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{color:gray;display:inline-block}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%] .glyphicon[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%] span.editable[_ngcontent-%COMP%], [_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] textarea.text-editor[_ngcontent-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:.5em}"]],data:{}});function Wn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"span",[["class","placeholder"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"span",[],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.editText()&&i),i},null,null)),(e()(),o["\u0275ted"](3,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,3,0,t.component.placeholder)})}function qn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"span",[["class","editable"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"span",[],[[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.editText()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.displayText)})}function zn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"textarea",[["autofocus",""],["class","text-editor"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keydown.control.enter"],[null,"keydown.alt.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,3)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,3).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,3)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,3)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(r.text=n)&&i),"keydown.control.enter"===t&&(i=!1!==r.keydownEnter()&&i),"keydown.alt.enter"===t&&(i=!1!==r.keydownEnter()&&i),i},null,null)),o["\u0275did"](3,16384,null,0,Ce.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,Ce.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e){return[e]},[Ce.DefaultValueAccessor]),o["\u0275did"](5,671744,null,0,Ce.NgModel,[[8,null],[8,null],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](7,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),o["\u0275did"](8,4276224,null,0,Kn,[o.ElementRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,7,"div",[["class","pull-right buttons"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,1,"button",[["class","btn btn-danger"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.cancelEditText()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n Cancel\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.saveText()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n Update description\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.text),e(t,8,0)},function(e,t){var n=t.component;e(t,2,0,o["\u0275nov"](t,7).ngClassUntouched,o["\u0275nov"](t,7).ngClassTouched,o["\u0275nov"](t,7).ngClassPristine,o["\u0275nov"](t,7).ngClassDirty,o["\u0275nov"](t,7).ngClassValid,o["\u0275nov"](t,7).ngClassInvalid,o["\u0275nov"](t,7).ngClassPending),e(t,15,0,n.isSaveDisabled)})}function $n(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Wn)),o["\u0275did"](3,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,qn)),o["\u0275did"](6,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,zn)),o["\u0275did"](10,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.showPlaceholder),e(t,6,0,n.showText),e(t,10,0,n.editing)},null)}var Gn=function(e){var t,n=e.rect.map(function(e){return e.$});this.keyboardKeys=[];for(var i=0;i *",animation:{type:4,styles:null,timings:500},options:null}],options:{}}]}});function Xn(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-module",""]],[[1,"transform",0],[24,"@split",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"]],function(e,t,n){var i=!0,o=e.component;return"keyClick"===t&&(i=!1!==o.onKeyClick(e.context.index,n.index,n.keyTarget)&&i),"keyHover"===t&&(i=!1!==o.onKeyHover(n.index,n.event,n.over,e.context.index)&&i),"capture"===t&&(i=!1!==o.onCapture(e.context.index,n.index,n.captured)&&i),i},Fn,jn)),o["\u0275did"](1,49152,null,0,Dn,[],{coverages:[0,"coverages"],keyboardKeys:[1,"keyboardKeys"],keyActions:[2,"keyActions"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],keybindAnimationEnabled:[5,"keybindAnimationEnabled"],capturingEnabled:[6,"capturingEnabled"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"})],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.coverages,t.context.$implicit.keyboardKeys,n.moduleConfig[t.context.index].keyActions,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.moduleId)===t.context.index,n.keybindAnimationEnabled,n.capturingEnabled)},function(e,t){e(t,0,0,t.context.$implicit.attributes.transform,t.component.moduleAnimationStates[t.context.index])})}function ei(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,5,"editable-text",[["placeholder","No description provided for this keymap."]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var i=!0;return"ngModelChange"===t&&(i=!1!==e.component.descriptionChanged.emit(n)&&i),i},$n,Hn)),o["\u0275did"](1,49152,null,0,Bn,[o.ChangeDetectorRef],{placeholder:[0,"placeholder"]},null),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e){return[e]},[Bn]),o["\u0275did"](3,671744,null,0,Ce.NgModel,[[8,null],[8,null],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](5,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null)],function(e,t){var n=t.component;e(t,1,0,"No description provided for this keymap."),e(t,3,0,n.description)},function(e,t){e(t,0,0,o["\u0275nov"](t,5).ngClassUntouched,o["\u0275nov"](t,5).ngClassTouched,o["\u0275nov"](t,5).ngClassPristine,o["\u0275nov"](t,5).ngClassDirty,o["\u0275nov"](t,5).ngClassValid,o["\u0275nov"](t,5).ngClassInvalid,o["\u0275nov"](t,5).ngClassPending)})}function ti(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,4,":svg:svg",[["height","100%"],["width","100%"],["xmlns","http://www.w3.org/2000/svg"]],[[1,"viewBox",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Xn)),o["\u0275did"](3,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,ei)),o["\u0275did"](7,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.modules),e(t,7,0,n.showDescription)},function(e,t){e(t,0,0,t.component.viewBox)})}var ni=function(){function e(){this.keyboardLayout=Yn.a.ANSI,this.keyClick=new o.EventEmitter,this.keyHover=new o.EventEmitter,this.capture=new o.EventEmitter,this.descriptionChanged=new o.EventEmitter}return e.prototype.ngOnChanges=function(e){e.layers&&(this.layerAnimationState=this.layers.map(function(){return"initOut"}),this.layerAnimationState[this.currentLayer]="init");var t=e.currentLayer;if(t)if(e.layers);else{var n=t.isFirstChange()?t.currentValue:t.previousValue;this.onLayerChange(n,t.currentValue)}},e.prototype.trackKeyboard=function(e){return e},e.prototype.onLayerChange=function(e,t){t>e?(this.layerAnimationState[e]="leftOut",this.layerAnimationState[t]="leftIn"):(this.layerAnimationState[e]="rightOut",this.layerAnimationState[t]="rightIn")},e}(),ii=o["\u0275crt"]({encapsulation:0,styles:[["svg-keyboard[_ngcontent-%COMP%]{width:95%;max-width:1400px;position:absolute;left:0;-webkit-transform:translateX(-101%);transform:translateX(-101%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}"]],data:{animation:[{type:7,name:"layerState",definitions:[{type:0,name:"init",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"initOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:0,name:"leftIn, rightIn",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"leftOut",styles:{type:6,styles:{transform:"translateX(-101%)",left:"0"},offset:null},options:void 0},{type:0,name:"rightOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:1,expr:"initOut => leftIn, leftOut => leftIn, rightOut => leftIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"init => leftOut, leftIn => leftOut, rightIn => leftOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:":leave",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:1,offset:0},offset:null},{type:6,styles:{opacity:0,offset:1},offset:null}]},timings:"2000ms ease-out"}],options:null}],options:{}}]}});function oi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],[[24,"@layerState",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var i=!0,o=e.component;return"keyClick"===t&&(i=!1!==o.keyClick.emit(n)&&i),"keyHover"===t&&(i=!1!==o.keyHover.emit(n)&&i),"capture"===t&&(i=!1!==o.capture.emit(n)&&i),"descriptionChanged"===t&&(i=!1!==o.descriptionChanged.emit(n)&&i),i},ti,Zn)),o["\u0275did"](1,638976,null,0,Jn,[Qn],{moduleConfig:[0,"moduleConfig"],keybindAnimationEnabled:[1,"keybindAnimationEnabled"],capturingEnabled:[2,"capturingEnabled"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],halvesSplit:[5,"halvesSplit"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"],showDescription:[8,"showDescription"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.modules,n.keybindAnimationEnabled,n.capturingEnabled,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.layerId)===t.context.index,n.halvesSplit,n.keyboardLayout,n.description,!0)},function(e,t){e(t,0,0,t.component.layerAnimationState[t.context.index])})}function ri(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,oi)),o["\u0275did"](1,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.layers,n.trackKeyboard)},null)}var li=n("rlkT"),si=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ai(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{selector:0}),(e()(),o["\u0275eld"](1,0,[[1,0],["selector",1]],null,0,"select",[],null,null,null,null,null))],null,null)}var ui=function(){function e(e){this.captureService=e,this.isLink=!1,this.captureText="Capture keystroke",this.capture=new o.EventEmitter,this.record=!1,this.captureService.initModifiers(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onKeyUp=function(e){this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.record&&!this.first&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var t=e.keyCode;this.record?(e.preventDefault(),e.stopPropagation(),this.first=!1,this.captureService.hasMap(t)?(this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t)):13===t&&(this.record=!0,this.first=!0)},e.prototype.onFocusOut=function(){this.record=!1,this.reset()},e.prototype.start=function(){this.record=!0},e.prototype.saveScanCode=function(e){this.record=!1;var t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:t,right:n}),this.reset()},e.prototype.reset=function(){this.first=!1,this.captureService.initModifiers()},e}(),ci=o["\u0275crt"]({encapsulation:0,styles:[[".link--capture-keystroke[_ngcontent-%COMP%]{padding:7px 0;text-decoration:none;border:0;width:100%}.link--capture-keystroke[_ngcontent-%COMP%]:focus{outline:0}.btn--capture-keystroke[_ngcontent-%COMP%]{display:inline-block;margin:0 0 0 .25rem}.fa-circle[_ngcontent-%COMP%]{color:#c00}"]],data:{}});function di(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](0,null,["\n","\n"]))],null,function(e,t){e(t,0,0,t.component.captureText)})}function pi(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\nCapturing ...\n"]))],null,null)}function fi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"button",[["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.start()&&i),i},null,null)),o["\u0275did"](1,278528,null,0,d.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{ngClass:[0,"ngClass"]},null),o["\u0275pod"](2,{"btn btn-sm btn--capture-keystroke":0,"btn-link link--capture-keystroke":1,"btn-default":2,"btn-info":3}),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,di)),o["\u0275did"](7,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,pi)),o["\u0275did"](10,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,e(t,2,0,!n.isLink,n.isLink,!n.record&&!n.isLink,n.record&&!n.isLink)),e(t,7,0,!n.record),e(t,10,0,n.record)},null)}var hi=n("TToO"),yi=function(){return function(){this.validAction=new o.EventEmitter}}(),mi=function(e){function t(t){var n=e.call(this)||this;return n.mapper=t,n.scanCodeTemplateResult=function(e){return e.id?e.additional&&e.additional.explanation?jQuery(''+e.text+' '+e.additional.explanation+""):jQuery(''+e.text+""):e.text},n.leftModifiers=["LShift","LCtrl","LSuper","LAlt"],n.rightModifiers=["RShift","RCtrl","RSuper","RAlt"],n.scanCodeGroups=[{id:"0",text:"None"}],n.scanCodeGroups=n.scanCodeGroups.concat(Ne.SCANCODES),n.secondaryRoleGroups=Ne.SECONDARY_ROLES,n.leftModifierSelects=Array(n.leftModifiers.length).fill(!1),n.rightModifierSelects=Array(n.rightModifiers.length).fill(!1),n.selectedScancodeOption=n.scanCodeGroups[0],n.selectedSecondaryRoleIndex=-1,n.options={templateResult:n.scanCodeTemplateResult,matcher:function(e,t,n){var i=t.toUpperCase().indexOf(e.toUpperCase())>-1;return!i&&n.additional&&n.additional.explanation&&(i=n.additional.explanation.toUpperCase().indexOf(e.toUpperCase())>-1),i}},n}return Object(hi.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(e){return e||(e=this.toKeyAction()),!!e&&(e.scancode>0||e.modifierMask>0)},t.prototype.onKeysCapture=function(e){this.selectedScancodeOption=e.code?this.findScancodeOptionByScancode(e.code,Ne.KeystrokeType.basic):this.scanCodeGroups[0],this.leftModifierSelects=e.left,this.rightModifierSelects=e.right,this.validAction.emit(this.keyActionValid())},t.prototype.fromKeyAction=function(e){if(!(e instanceof Ne.KeystrokeAction))return!1;var t=e;this.selectedScancodeOption=this.findScancodeOptionByScancode(t.scancode||0,t.type);for(var n=this.leftModifiers.length,i=0;i>i&1);for(i=n;i>i&1)}return this.selectedSecondaryRoleIndex=void 0!==t.secondaryRoleAction?this.mapper.modifierMapper(t.secondaryRoleAction):-1,!0},t.prototype.toKeyAction=function(){var e=new Ne.KeystrokeAction,t=this.toScancodeTypePair(this.selectedScancodeOption);e.scancode=t[0],e.type="media"===t[1]?Ne.KeystrokeType.shortMedia:Ne.KeystrokeType[t[1]],e.modifierMask=0;for(var n=this.leftModifierSelects.concat(this.rightModifierSelects).map(function(e){return e?1:0}),i=0;i0;){var i=n.shift();if(e(i)){t=i;break}i.children&&n.push.apply(n,i.children)}return t},t.prototype.findScancodeOptionById=function(e){return this.findScancodeOptionBy(function(t){return t.id===e})},t.prototype.findScancodeOptionByScancode=function(e,t){var n=t===Ne.KeystrokeType.shortMedia||t===Ne.KeystrokeType.longMedia?"media":Ne.KeystrokeType[t];return this.findScancodeOptionBy(function(t){var i=t.additional;return!(!i||i.scancode!==e||i.type!==n)||!(i&&void 0!==i.scancode||+t.id!==e)})},t.prototype.toScancodeTypePair=function(e){var t,n;return e.additional?(t=e.additional.scancode,n=e.additional.type||"basic"):n="basic",void 0===t&&(t=+e.id),[t,n]},t}(yi),gi=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{margin-bottom:10px;margin-top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:-9px;margin-right:4px}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] .btn-toolbar[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:3rem}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{margin-right:.6em;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] .secondary-role[_ngcontent-%COMP%]{width:135px}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin-left:.6em}[_nghost-%COMP%] .setting-label.disabled[_ngcontent-%COMP%]{color:#999}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:none;position:absolute;top:50%;margin-top:-4rem;color:#31708f;padding-right:40px}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:2.6rem;float:left;padding:1rem 1.5rem 2rem}.disabled[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{visibility:hidden}.disabled[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:block}"]],data:{}});function vi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleModifier(!1,e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.leftModifierSelects[t.context.index]),e(t,1,0,t.context.$implicit)})}function bi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleModifier(!0,e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.rightModifierSelects[t.context.index]),e(t,1,0,t.context.$implicit)})}function ki(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"div",[["class","long-press-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Secondary role:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var i=!0;return"valueChanged"===t&&(i=!1!==e.component.onSecondaryRoleChange(n)&&i),i},ai,si)),o["\u0275did"](6,4964352,[["secondaryRoleSelect",4]],0,li.Select2Component,[o.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["name","question-circle"],["title","The secondary role activates when another key gets pressed while holding this key."]],[[1,"data-placement",0]],null,null,we,de)),o["\u0275did"](9,114688,null,0,ce,[],{name:[0,"name"]},null),o["\u0275did"](10,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,6,0,n.secondaryRoleGroups,n.selectedSecondaryRoleIndex.toString(),140),e(t,9,0,"question-circle"),e(t,10,0,"The secondary role activates when another key gets pressed while holding this key.")},function(e,t){e(t,8,0,o["\u0275nov"](t,10).placement)})}function _i(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,14,"div",[["class","scancode-options"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Scancode:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var i=!0;return"valueChanged"===t&&(i=!1!==e.component.onScancodeChange(n)&&i),i},ai,si)),o["\u0275did"](6,4964352,null,0,li.Select2Component,[o.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"],options:[3,"options"]},{valueChanged:"valueChanged"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["name","question-circle"],["title","Looking for a non-US character? Just pick the character of the desired key according to the US layout."]],[[1,"data-placement",0]],null,null,we,de)),o["\u0275did"](9,114688,null,0,ce,[],{name:[0,"name"]},null),o["\u0275did"](10,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,1,"capture-keystroke-button",[["tabindex","0"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var i=!0,r=e.component;return"keyup"===t&&(i=!1!==o["\u0275nov"](e,13).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==o["\u0275nov"](e,13).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==o["\u0275nov"](e,13).onFocusOut()&&i),"capture"===t&&(i=!1!==r.onKeysCapture(n)&&i),i},fi,ci)),o["\u0275did"](13,49152,null,0,ui,[vn],null,{capture:"capture"}),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](16,0,null,null,19,"div",[["class","modifier-options"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Modifiers:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,13,"div",[["class","btn-toolbar modifiers"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,vi)),o["\u0275did"](26,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,bi)),o["\u0275did"](32,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,ki)),o["\u0275did"](38,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275eld"](40,0,null,null,9,"div",[["class","disabled-state--text"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](42,0,null,null,0,"i",[["class","fa fa-info-circle"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n When a key is configured as layer switcher key, you can't assign other functions to it.\n To assign a scancode to the key, set the "])),(e()(),o["\u0275eld"](44,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Layer action"])),(e()(),o["\u0275ted"](-1,null,[" to "])),(e()(),o["\u0275eld"](47,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["None"])),(e()(),o["\u0275ted"](-1,null,[".\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,6,0,n.scanCodeGroups,n.selectedScancodeOption.id,200,n.options),e(t,9,0,"question-circle"),e(t,10,0,"Looking for a non-US character? Just pick the character of the desired key according to the US layout."),e(t,26,0,n.leftModifiers),e(t,32,0,n.rightModifiers),e(t,38,0,n.secondaryRoleEnabled)},function(e,t){e(t,8,0,o["\u0275nov"](t,10).placement)})}var Ai=function(e){function t(){var t=e.call(this)||this;return t.toggleData=[{id:!1,text:"Activate"},{id:!0,text:"Toggle"}],t.layerData=[{id:0,text:"Mod"},{id:1,text:"Fn"},{id:2,text:"Mouse"}],t.toggle=!1,t.layer=Ne.LayerName.mod,t}return Object(hi.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.defaultKeyAction&&this.fromKeyAction(this.defaultKeyAction),e.currentLayer&&(this.isNotBase=this.currentLayer>0),this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!this.isNotBase},t.prototype.fromKeyAction=function(e){if(!(e instanceof Ne.SwitchLayerAction))return!1;var t=e;return this.toggle=t.isLayerToggleable,this.layer=t.layer,!0},t.prototype.toKeyAction=function(){var e=new Ne.SwitchLayerAction;if(e.isLayerToggleable=this.toggle,e.layer=this.layer,!this.keyActionValid())throw new Error("KeyAction is invalid!");return e},t.prototype.toggleChanged=function(e){this.toggle="true"===e},t.prototype.layerChanged=function(e){this.layer=+e},t}(yi),wi=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 -5px}.no-base[_nghost-%COMP%]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%] > select[_ngcontent-%COMP%], [_nghost-%COMP%] > span[_ngcontent-%COMP%]{margin:0 5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}select[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #aaa;border-radius:4px;padding:4px 20px 4px 8px}"]],data:{}});function Ti(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),o["\u0275did"](1,147456,null,0,Ce.NgSelectOption,[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),o["\u0275did"](2,147456,null,0,Ce["\u0275q"],[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),o["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.toggle===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Ci(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),o["\u0275did"](1,147456,null,0,Ce.NgSelectOption,[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),o["\u0275did"](2,147456,null,0,Ce["\u0275q"],[o.ElementRef,o.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),o["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.layer===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Oi(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["layer by pressing this key."]))],null,null)}function xi(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["layer by holding this key."]))],null,null)}function Si(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.toggleChanged(n.target.value)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ti)),o["\u0275did"](4,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["the"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.layerChanged(n.target.value)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ci)),o["\u0275did"](13,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,8,"span",[],null,null,null,null,null)),o["\u0275did"](17,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Oi)),o["\u0275did"](20,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,xi)),o["\u0275did"](23,16384,null,0,d.p,[o.ViewContainerRef,o.TemplateRef,d.n],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.toggleData),e(t,13,0,n.layerData),e(t,17,0,n.toggle),e(t,20,0,!0)},null)}function Ei(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Layer switching is only possible from the base layer. "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function Mi(e){return o["\u0275vid"](0,[(e()(),o["\u0275and"](16777216,null,null,1,null,Si)),o["\u0275did"](1,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ei)),o["\u0275did"](4,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,!n.isNotBase),e(t,4,0,n.isNotBase)},null)}var Pi=function(e){function t(){var t=e.call(this)||this;return t.MouseActionParam=Ne.MouseActionParam,t.selectedPageIndex=0,t.pages=["Move","Scroll","Click","Speed"],t}return Object(hi.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(){return void 0!==this.mouseActionParam},t.prototype.fromKeyAction=function(e){if(!(e instanceof Ne.MouseAction))return!1;var t=e;switch(this.mouseActionParam=t.mouseAction,t.mouseAction===Ne.MouseActionParam.moveUp&&(this.selectedPageIndex=0),t.mouseAction){case Ne.MouseActionParam.moveDown:case Ne.MouseActionParam.moveUp:case Ne.MouseActionParam.moveLeft:case Ne.MouseActionParam.moveRight:this.selectedPageIndex=0;break;case Ne.MouseActionParam.scrollDown:case Ne.MouseActionParam.scrollUp:case Ne.MouseActionParam.scrollLeft:case Ne.MouseActionParam.scrollRight:this.selectedPageIndex=1;break;case Ne.MouseActionParam.leftClick:case Ne.MouseActionParam.middleClick:case Ne.MouseActionParam.rightClick:this.selectedPageIndex=2;break;case Ne.MouseActionParam.decelerate:case Ne.MouseActionParam.accelerate:this.selectedPageIndex=3;break;default:return!1}return!0},t.prototype.toKeyAction=function(){var e=new Ne.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}(yi),Ii=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.popover-content[_nghost-%COMP%]{padding:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{border-right:1px solid #ccc}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:'';display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}[_nghost-%COMP%] .details[_ngcontent-%COMP%] .btn-placeholder[_ngcontent-%COMP%]{visibility:hidden}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%]{font-size:25px;line-height:22px;padding-top:4px;padding-bottom:4px}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;display:block;text-align:center}"]],data:{}});function Ri(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,4,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.changePage(e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](3,null,[" ",""])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,0,0,t.component.selectedPageIndex===t.context.index),e(t,3,0,t.context.$implicit)})}function Ni(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--move text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveUp)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-arrow-up"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveLeft)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-arrow-left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveRight)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-arrow-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.moveDown)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-arrow-down"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.moveUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.moveLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.moveRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.moveDown)})}function Di(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--scroll text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollUp)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-angle-double-up"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollLeft)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-angle-double-left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollRight)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-angle-double-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.scrollDown)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-angle-double-down"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.scrollUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.scrollLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.scrollRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.scrollDown)})}function ji(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"div",[["class","mouse__config mouse__config--click"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.leftClick)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Left"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.middleClick)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Middle"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.rightClick)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Right"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.leftClick),e(t,7,0,n.mouseActionParam===n.MouseActionParam.middleClick),e(t,10,0,n.mouseActionParam===n.MouseActionParam.rightClick)})}function Ui(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,22,"div",[["class","mouse__config mouse__config--speed text-center"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,4,"div",[["class","help-text--mouse-speed text-left"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Press this key along with mouse movement/scrolling to accelerate/decelerate its speed."])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,13,"div",[["class","btn-group btn-group-lg"],["role","group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.decelerate)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n -\n "])),(e()(),o["\u0275eld"](12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Decelerate"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.setMouseActionParam(o.MouseActionParam.accelerate)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n +\n "])),(e()(),o["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Accelerate"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,10,0,n.mouseActionParam===n.MouseActionParam.decelerate),e(t,16,0,n.mouseActionParam===n.MouseActionParam.accelerate)})}function Li(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,null)}function Vi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","mouse-action col-sm-4"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,4,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ri)),o["\u0275did"](5,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](9,0,null,null,17,"div",[["class","details col-sm-8"]],null,null,null,null,null)),o["\u0275did"](10,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ni)),o["\u0275did"](13,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Di)),o["\u0275did"](16,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ji)),o["\u0275did"](19,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ui)),o["\u0275did"](22,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Li)),o["\u0275did"](25,16384,null,0,d.p,[o.ViewContainerRef,o.TemplateRef,d.n],null,null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,n.pages),e(t,10,0,n.selectedPageIndex),e(t,13,0,0),e(t,16,0,1),e(t,19,0,2),e(t,22,0,3)},null)}var Fi=["[_nghost-%COMP%]{display:block;width:100%}.action--editor[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:0}.nav[_ngcontent-%COMP%]{padding-bottom:1rem}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{z-index:2}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:'';display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}.editor__tab-links[_ngcontent-%COMP%], .editor__tabs[_ngcontent-%COMP%]{padding-top:1rem}.editor__tabs[_ngcontent-%COMP%]{border-left:1px solid #ddd;margin-left:-1.6rem;padding-left:3rem}.editor__actions[_ngcontent-%COMP%]{float:right}.editor__actions-container[_ngcontent-%COMP%]{background:#f5f5f5;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:1rem 1.5rem}.flex-button-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-button[_ngcontent-%COMP%]{-ms-flex-item-align:end;align-self:flex-end}"],Ki=function(){return function(){var e=this;this.valid=new o.EventEmitter,this.validate=function(){return e.valid.emit(e.isMacroValid())}}}(),Bi=function(e){function t(t){var n=e.call(this)||this;return n.renderer=t,n.isMacroValid=function(){return!!n.input.nativeElement.value},n.init=function(){n.macroAction||(n.macroAction=new Ne.TextMacroAction)},n}return Object(hi.__extends)(t,e),t.prototype.ngOnInit=function(){this.init()},t.prototype.ngAfterViewInit=function(){this.renderer.invokeElementMethod(this.input.nativeElement,"focus")},t.prototype.onTextChange=function(){this.init(),this.macroAction.text=this.input.nativeElement.value},t}(Ki),Hi=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro__text-input[_ngcontent-%COMP%]{width:100%;min-height:10rem;margin-bottom:1rem}"]],data:{}});function Wi(e){return o["\u0275vid"](0,[o["\u0275qud"](402653184,1,{input:0}),(e()(),o["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Type text"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,[[1,0],["macroTextInput",1]],null,1,"textarea",[["class","macro__text-input"],["name","macro-text"]],null,[[null,"change"],[null,"keyup"]],function(e,t,n){var i=!0,o=e.component;return"change"===t&&(i=!1!==o.onTextChange()&&i),"keyup"===t&&(i=!1!==o.validate()&&i),i},null,null)),(e()(),o["\u0275ted"](7,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,7,0,null==n.macroAction?null:n.macroAction.text)})}var qi=function(e){function t(){var t=e.call(this)||this;return t.keymapOptions=[],t}return Object(hi.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.keymaps&&(this.keymapOptions=this.keymaps.map(function(e){return{id:e.abbreviation,text:e.name}}),this.keymaps.length>0&&(this.selectedKeymap=this.keymaps[0])),this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedKeymap="-1"===e.value?void 0:this.keymaps.find(function(t){return t.abbreviation===e.value})},t.prototype.keyActionValid=function(){return!!this.selectedKeymap},t.prototype.fromKeyAction=function(e){if(!(e instanceof Ne.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 Ne.SwitchKeymapAction;return e.keymapAbbreviation=this.selectedKeymap.abbreviation,e},t}(yi),zi=function(e){function t(t){var n=e.call(this)||this;return n.subscription=t.let(Object(bn.d)()).subscribe(function(e){return n.macros=e}),n.macroOptions=[],n.selectedMacroIndex=0,n}return Object(hi.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroOptions=this.macros.map(function(e,t){return{id:t.toString(),text:e.name}})},t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedMacroIndex=+e.value},t.prototype.keyActionValid=function(){return this.selectedMacroIndex>=0},t.prototype.fromKeyAction=function(e){if(!(e instanceof Ne.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 Ne.PlayMacroAction;return e.macroId=this.macros[this.selectedMacroIndex].id,e},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}(yi),$i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(hi.__extends)(t,e),t.prototype.ngOnInit=function(){this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!0},t.prototype.fromKeyAction=function(){return!1},t.prototype.toKeyAction=function(){},t}(yi),Gi=function(e){return e[e.Tap=0]="Tap",e[e.Press=1]="Press",e[e.Release=2]="Release",e}({}),Yi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TabName=Gi,t.isMacroValid=function(){var e=t.getKeyMacroAction();return!!e.scancode||!!e.modifierMask},t}return Object(hi.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new Ne.KeyMacroAction),this.defaultKeyAction=new Ne.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===Ne.MacroKeySubAction.press?Gi.Press:e.action===Ne.MacroKeySubAction.release?Gi.Release:void 0:Gi.Tap},t.prototype.getActionType=function(e){switch(e){case Gi.Tap:return Ne.MacroKeySubAction.tap;case Gi.Press:return Ne.MacroKeySubAction.press;case Gi.Release:return Ne.MacroKeySubAction.release;default:throw new Error("Invalid tab type")}},t.prototype.getKeyMacroAction=function(){var e=Object.assign(new Ne.KeyMacroAction,this.keypressTab.toKeyAction());return e.action=this.getActionType(this.activeTab),e},t}(Ki),Qi=o["\u0275crt"]({encapsulation:0,styles:[Fi,[".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 Ji(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Tap key"]))],null,null)}function Zi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Press key"]))],null,null)}function Xi(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release key"]))],null,null)}function eo(e){return o["\u0275vid"](0,[o["\u0275qud"](402653184,1,{selectedTab:0}),o["\u0275qud"](402653184,2,{keypressTab:0}),(e()(),o["\u0275eld"](2,0,null,null,58,"div",[["class","col-xs-12 macro-key__container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,37,"div",[["class","col-xs-3 macro-key__types"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,34,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,[["keyMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Tap)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Tap key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,[["keyHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Press)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Press key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](30,0,[["keyRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Release)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](32,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](34,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](36,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release key"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](43,0,null,null,16,"div",[["class","col-xs-9 macro-key__action-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](45,0,null,null,13,"div",[["class","macro-key__action"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ji)),o["\u0275did"](48,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Zi)),o["\u0275did"](51,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Xi)),o["\u0275did"](54,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,null,null,1,"keypress-tab",[],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==e.component.validate()&&i),i},_i,gi)),o["\u0275did"](57,573440,[[2,4],["keypressTab",4]],0,mi,[Dt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,48,0,n.activeTab===n.TabName.Tap),e(t,51,0,n.activeTab===n.TabName.Press),e(t,54,0,n.activeTab===n.TabName.Release),e(t,57,0,n.defaultKeyAction,!1)},function(e,t){var n=t.component;e(t,8,0,n.activeTab===n.TabName.Tap),e(t,19,0,n.activeTab===n.TabName.Press),e(t,30,0,n.activeTab===n.TabName.Release)})}var to=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}({}),no=function(e){function t(){var t=e.call(this)||this;return t.TabName=to,t.isMacroValid=function(){switch(t.macroAction.constructor){case Ne.MoveMouseMacroAction:case Ne.ScrollMouseMacroAction:var e=t.macroAction,n=e.x,i=e.y;return void 0!==n&&null!==n&&void 0!==i&&null!==i&&(0!==n||0!==i)&&n<1e4&&n>-1e4&&i<1e4&&i>-1e4;case Ne.MouseButtonMacroAction:return!!t.macroAction.mouseButtonsMask;default:return!0}},t.buttonLabels=["Left","Middle","Right"],t.selectedButtons=Array(t.buttonLabels.length).fill(!1),t}return Object(hi.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new Ne.MouseButtonMacroAction,this.macroAction.action=Ne.MacroMouseSubAction.click);var e=this.getTabName(this.macroAction);this.selectTab(e),[to.Click,to.Hold,to.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 to.Scroll:this.macroAction=new Ne.ScrollMouseMacroAction;break;case to.Move:this.macroAction=new Ne.MoveMouseMacroAction;break;default:this.macroAction=new Ne.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 to.Click:return Ne.MacroMouseSubAction.click;case to.Hold:return Ne.MacroMouseSubAction.hold;case to.Release:return Ne.MacroMouseSubAction.release;default:throw new Error("Invalid tab name: "+to[e])}},t.prototype.getTabName=function(e){if(e instanceof Ne.MouseButtonMacroAction){if(!e.action||e.isOnlyClickAction())return to.Click;if(e.isOnlyHoldAction())return to.Hold;if(e.isOnlyReleaseAction())return to.Release}else{if(e instanceof Ne.MoveMouseMacroAction)return to.Move;if(e instanceof Ne.ScrollMouseMacroAction)return to.Scroll}return to.Move},t}(Ki),io=o["\u0275crt"]({encapsulation:0,styles:[Fi,[".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 oo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Move mouse pointer"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,1,"label",[["for","move-mouse-x"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["X:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,13)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,13).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,14).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.x=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](13,16384,null,0,Ce.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,Ce.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](14,16384,null,0,Ce["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](15,540672,null,0,Ce.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,Ce.NG_VALIDATORS,function(e){return[e]},[Ce.MaxLengthValidator]),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[Ce.DefaultValueAccessor,Ce["\u0275bc"]]),o["\u0275did"](18,671744,null,0,Ce.NgModel,[[8,null],[2,Ce.NG_VALIDATORS],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](20,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"label",[["for","move-mouse-y"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Y:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,29)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,29).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,30).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.y=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](29,16384,null,0,Ce.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,Ce.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](30,16384,null,0,Ce["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](31,540672,null,0,Ce.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,Ce.NG_VALIDATORS,function(e){return[e]},[Ce.MaxLengthValidator]),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[Ce.DefaultValueAccessor,Ce["\u0275bc"]]),o["\u0275did"](34,671744,null,0,Ce.NgModel,[[8,null],[2,Ce.NG_VALIDATORS],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](36,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,o["\u0275nov"](t,15).maxlength?o["\u0275nov"](t,15).maxlength:null,o["\u0275nov"](t,20).ngClassUntouched,o["\u0275nov"](t,20).ngClassTouched,o["\u0275nov"](t,20).ngClassPristine,o["\u0275nov"](t,20).ngClassDirty,o["\u0275nov"](t,20).ngClassValid,o["\u0275nov"](t,20).ngClassInvalid,o["\u0275nov"](t,20).ngClassPending),e(t,28,0,o["\u0275nov"](t,31).maxlength?o["\u0275nov"](t,31).maxlength:null,o["\u0275nov"](t,36).ngClassUntouched,o["\u0275nov"](t,36).ngClassTouched,o["\u0275nov"](t,36).ngClassPristine,o["\u0275nov"](t,36).ngClassDirty,o["\u0275nov"](t,36).ngClassValid,o["\u0275nov"](t,36).ngClassInvalid,o["\u0275nov"](t,36).ngClassPending)})}function ro(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Scroll with mouse"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,1,"label",[["for","scroll-mouse-x"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["X:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,13)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,13).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,13)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,14).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,14).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.x=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](13,16384,null,0,Ce.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,Ce.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](14,16384,null,0,Ce["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](15,540672,null,0,Ce.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,Ce.NG_VALIDATORS,function(e){return[e]},[Ce.MaxLengthValidator]),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[Ce.DefaultValueAccessor,Ce["\u0275bc"]]),o["\u0275did"](18,671744,null,0,Ce.NgModel,[[8,null],[2,Ce.NG_VALIDATORS],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](20,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,1,"label",[["for","scroll-mouse-y"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Y:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,29)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,29).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,29)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,30).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,30).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(r.macroAction.y=n)&&i),"keyup"===t&&(i=!1!==r.validate()&&i),i},null,null)),o["\u0275did"](29,16384,null,0,Ce.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,Ce.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](30,16384,null,0,Ce["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275did"](31,540672,null,0,Ce.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),o["\u0275prd"](1024,null,Ce.NG_VALIDATORS,function(e){return[e]},[Ce.MaxLengthValidator]),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[Ce.DefaultValueAccessor,Ce["\u0275bc"]]),o["\u0275did"](34,671744,null,0,Ce.NgModel,[[8,null],[2,Ce.NG_VALIDATORS],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](36,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,[" pixels\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,o["\u0275nov"](t,15).maxlength?o["\u0275nov"](t,15).maxlength:null,o["\u0275nov"](t,20).ngClassUntouched,o["\u0275nov"](t,20).ngClassTouched,o["\u0275nov"](t,20).ngClassPristine,o["\u0275nov"](t,20).ngClassDirty,o["\u0275nov"](t,20).ngClassValid,o["\u0275nov"](t,20).ngClassInvalid,o["\u0275nov"](t,20).ngClassPending),e(t,28,0,o["\u0275nov"](t,31).maxlength?o["\u0275nov"](t,31).maxlength:null,o["\u0275nov"](t,36).ngClassUntouched,o["\u0275nov"](t,36).ngClassTouched,o["\u0275nov"](t,36).ngClassPristine,o["\u0275nov"](t,36).ngClassDirty,o["\u0275nov"](t,36).ngClassValid,o["\u0275nov"](t,36).ngClassInvalid,o["\u0275nov"](t,36).ngClassPending)})}function lo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Click mouse button"]))],null,null)}function so(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Hold mouse button"]))],null,null)}function ao(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release mouse button"]))],null,null)}function uo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setMouseClick(e.context.index)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["","\n "]))],null,function(e,t){e(t,0,0,t.component.hasButton(t.context.index)),e(t,1,0,t.context.$implicit)})}function co(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[[1,0],["tab",1]],null,16,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,lo)),o["\u0275did"](3,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,so)),o["\u0275did"](6,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ao)),o["\u0275did"](9,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,4,"div",[["class","btn-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,uo)),o["\u0275did"](14,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.activeTab===n.TabName.Click),e(t,6,0,n.activeTab===n.TabName.Hold),e(t,9,0,n.activeTab===n.TabName.Release),e(t,14,0,n.buttonLabels)},null)}function po(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),o["\u0275eld"](1,0,null,null,75,"div",[["class","col-xs-12 macro-mouse__container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,59,"div",[["class","col-xs-3 macro-mouse__types"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,56,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,[["mouseMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Move)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Move pointer"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,[["mouseScroll",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Scroll)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,0,"i",[["class","fa fa-arrows-v"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Scroll"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,[["mouseClick",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Click)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](35,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Click button"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](40,0,[["mouseHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Hold)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](42,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](44,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](46,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Hold button"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](51,0,[["mouseRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Release)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](53,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](55,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](57,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Release button"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](64,0,null,null,11,"div",[["class","col-xs-9 macro-mouse__actions"]],null,null,null,null,null)),o["\u0275did"](65,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,oo)),o["\u0275did"](68,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ro)),o["\u0275did"](71,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,co)),o["\u0275did"](74,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,65,0,n.activeTab),e(t,68,0,n.TabName.Move),e(t,71,0,n.TabName.Scroll),e(t,74,0,n.activeTab===n.TabName.Click||n.activeTab===n.TabName.Hold||n.activeTab===n.TabName.Release)},function(e,t){var n=t.component;e(t,7,0,n.activeTab===n.TabName.Move),e(t,18,0,n.activeTab===n.TabName.Scroll),e(t,29,0,n.activeTab===n.TabName.Click),e(t,40,0,n.activeTab===n.TabName.Hold),e(t,51,0,n.activeTab===n.TabName.Release)})}var fo=function(e){function t(){var t=e.call(this)||this;return t.presets=[.1,.5,1,5,10],t.isMacroValid=function(){return 0!==t.macroAction.delay},t}return Object(hi.__extends)(t,e),Object.defineProperty(t.prototype,"delay",{get:function(){return this._delay},set:function(e){this._delay=e,this.validate()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new Ne.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}(Ki),ho=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro-delay__presets[_ngcontent-%COMP%]{margin-top:1rem}.macro-delay__presets[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:.25rem;margin-bottom:.25rem}.form-group[_ngcontent-%COMP%]{margin-bottom:0}.form-control[_ngcontent-%COMP%]{width:16ch;display:inline-block}"]],data:{}});function yo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-default"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.setDelay(e.context.$implicit)&&i),i},null,null)),(e()(),o["\u0275ted"](1,null,["","s\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function mo(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{input:0}),(e()(),o["\u0275eld"](1,0,null,null,39,"div",[["class","macro-delay"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,4,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Delay"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,12,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,[[1,0],["macroDelayInput",1]],null,6,"input",[["class","form-control"],["max","1000"],["min","0"],["placeholder","Delay amount"],["step","0.1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var i=!0,r=e.component;return"input"===t&&(i=!1!==o["\u0275nov"](e,19)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,19).onTouched()&&i),"compositionstart"===t&&(i=!1!==o["\u0275nov"](e,19)._compositionStart()&&i),"compositionend"===t&&(i=!1!==o["\u0275nov"](e,19)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==o["\u0275nov"](e,20).onChange(n.target.value)&&i),"input"===t&&(i=!1!==o["\u0275nov"](e,20).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==o["\u0275nov"](e,20).onTouched()&&i),"ngModelChange"===t&&(i=!1!==r.setDelay(o["\u0275nov"](e,18).value)&&i),i},null,null)),o["\u0275did"](19,16384,null,0,Ce.DefaultValueAccessor,[o.Renderer2,o.ElementRef,[2,Ce.COMPOSITION_BUFFER_MODE]],null,null),o["\u0275did"](20,16384,null,0,Ce["\u0275bc"],[o.Renderer2,o.ElementRef],null,null),o["\u0275prd"](1024,null,Ce.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[Ce.DefaultValueAccessor,Ce["\u0275bc"]]),o["\u0275did"](22,671744,null,0,Ce.NgModel,[[8,null],[8,null],[8,null],[2,Ce.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),o["\u0275prd"](2048,null,Ce.NgControl,null,[Ce.NgModel]),o["\u0275did"](24,16384,null,0,Ce.NgControlStatus,[Ce.NgControl],null,null),(e()(),o["\u0275ted"](-1,null,["\n seconds\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,null,null,10,"div",[["class","row macro-delay__presets"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,null,null,7,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Choose a preset"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,yo)),o["\u0275did"](37,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,22,0,n.delay),e(t,37,0,n.presets)},function(e,t){e(t,18,0,o["\u0275nov"](t,24).ngClassUntouched,o["\u0275nov"](t,24).ngClassTouched,o["\u0275nov"](t,24).ngClassPristine,o["\u0275nov"](t,24).ngClassDirty,o["\u0275nov"](t,24).ngClassValid,o["\u0275nov"](t,24).ngClassInvalid,o["\u0275nov"](t,24).ngClassPending)})}var go=function(e){return e[e.Keypress=0]="Keypress",e[e.Text=1]="Text",e[e.Mouse=2]="Mouse",e[e.Delay=3]="Delay",e}({}),vo=function(){function e(){var e=this;this.save=new o.EventEmitter,this.cancel=new o.EventEmitter,this.TabName=go,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 Yi?this.selectedTab.getKeyMacroAction():this.selectedTab.macroAction;this.save.emit(e)}catch(e){console.error(e)}},e.prototype.selectTab=function(e){this.activeTab=e,e===this.getTabName(this.macroAction)?this.updateEditableMacroAction():(this.editableMacroAction=void 0,this.isSelectedMacroValid=!1)},e.prototype.getTabName=function(e){return e instanceof Ne.DelayMacroAction?go.Delay:e instanceof Ne.TextMacroAction?go.Text:e instanceof Ne.KeyMacroAction?go.Keypress:e instanceof Ne.MouseButtonMacroAction||e instanceof Ne.MoveMouseMacroAction||e instanceof Ne.ScrollMouseMacroAction?go.Mouse:void 0},e.prototype.updateEditableMacroAction=function(){var e=this.macroAction?this.macroAction:new Ne.TextMacroAction;this.editableMacroAction=Ne.MacroActionHelper.createMacroAction(e)},e}(),bo=o["\u0275crt"]({encapsulation:0,styles:[Fi],data:{}});function ko(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-text-tab",[["class","macro__text"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},Wi,Hi)),o["\u0275did"](1,4308992,[[1,4],["tab",4]],0,Bi,[o.Renderer],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function _o(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-key-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},eo,Qi)),o["\u0275did"](1,114688,[[1,4],["tab",4]],0,Yi,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Ao(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-mouse-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},po,io)),o["\u0275did"](1,638976,[[1,4],["tab",4]],0,no,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function wo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-delay-tab",[["class","macro__delay"]],null,[[null,"valid"]],function(e,t,n){var i=!0;return"valid"===t&&(i=!1!==e.component.onValid(n)&&i),i},mo,ho)),o["\u0275did"](1,114688,[[1,4],["tab",4]],0,fo,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function To(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),o["\u0275eld"](1,0,null,null,85,"div",[["class","action--editor"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,67,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,48,"div",[["class","col-lg-3 editor__tab-links"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,45,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,[["macroText",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Text)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Type text"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,[["macroKeypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Keypress)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Key action"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](31,0,[["macroMouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Mouse)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](33,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](35,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](37,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse action"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](42,0,[["macroDelay",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.TabName.Delay)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](44,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](46,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Delay"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](55,0,null,null,14,"div",[["class","col-xs-12 col-lg-9 editor__tabs"]],null,null,null,null,null)),o["\u0275did"](56,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ko)),o["\u0275did"](59,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_o)),o["\u0275did"](62,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ao)),o["\u0275did"](65,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,wo)),o["\u0275did"](68,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](72,0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](74,0,null,null,10,"div",[["class","col-xs-12 flex-button-wrapper editor__actions-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](76,0,null,null,7,"div",[["class","editor__actions"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](78,0,null,null,1,"button",[["class","btn btn-sm btn-default flex-button"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onCancelClick()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Cancel "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](81,0,null,null,1,"button",[["class","btn btn-sm btn-primary flex-button"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onSaveClick()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Save "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],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 Co=function(){function e(e){this.mapper=e,this.save=new o.EventEmitter,this.cancel=new o.EventEmitter,this.edit=new o.EventEmitter,this.delete=new o.EventEmitter,this.newItem=!1}return e.prototype.ngOnInit=function(){this.updateView(),this.macroAction||(this.editing=!0,this.newItem=!0)},e.prototype.ngOnChanges=function(e){e.macroAction&&this.updateView()},e.prototype.saveEditedAction=function(e){this.macroAction=e,this.editing=!1,this.updateView(),this.save.emit(e)},e.prototype.editAction=function(){this.editable&&!this.editing?(this.editing=!0,this.edit.emit()):this.cancelEdit()},e.prototype.cancelEdit=function(){this.editing=!1,this.cancel.emit()},e.prototype.deleteAction=function(){this.delete.emit()},e.prototype.updateView=function(){if(this.macroAction)if(this.macroAction instanceof Ne.DelayMacroAction)this.iconName="clock",this.title="Delay of "+((e=this.macroAction).delay>0?e.delay/1e3:0)+"s";else if(this.macroAction instanceof Ne.TextMacroAction){var e=this.macroAction;this.iconName="font",this.title="Write text: "+e.text}else this.macroAction instanceof Ne.KeyMacroAction?this.setKeyActionContent(e=this.macroAction):this.macroAction instanceof Ne.MouseButtonMacroAction?this.setMouseButtonActionContent(e=this.macroAction):this.macroAction instanceof Ne.MoveMouseMacroAction||this.macroAction instanceof Ne.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=Ne.KeyModifiers.leftCtrl;n<=Ne.KeyModifiers.rightGui;n<<=1)e.isModifierActive(n)&&(this.title+=" "+Ne.KeyModifiers[n])}else this.title="Invalid keypress"},e.prototype.setMouseMoveScrollActionContent=function(e){var t,n;e instanceof Ne.MoveMouseMacroAction?(this.iconName="mouse-pointer",this.title="Move pointer",t=this.macroAction):(this.iconName="mouse-pointer",this.title="Scroll",t=this.macroAction),0!==Math.abs(t.x)&&(this.title+=" by "+Math.abs(t.x)+"px "+(t.x>0?"leftward":"rightward"),n=!0),0!==Math.abs(t.y)&&(this.title+=" "+(n?"and":"by")+" "+Math.abs(t.y)+"px "+(t.y>0?"downward":"upward"))},e.prototype.setMouseButtonActionContent=function(e){e.isOnlyClickAction()?(this.iconName="mouse-pointer",this.title="Click mouse button: "):e.isOnlyHoldAction()?(this.iconName="hand-rock",this.title="Hold mouse button: "):e.isOnlyReleaseAction()&&(this.iconName="hand-paper",this.title="Release mouse button: ");var t=["Left","Middle","Right"],n=[];e.getMouseButtons().forEach(function(e,i){e&&t[i]&&n.push(t[i])}),this.title+=n.join(", ")},e}(),Oo=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow:hidden;display:block}.macro-item[_nghost-%COMP%]:first-of-type .list-group-item[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.macro-item[_nghost-%COMP%]:last-of-type .list-group-item[_ngcontent-%COMP%]{border-bottom:0}.gu-transit[_nghost-%COMP%]{opacity:.2}.gu-transit[_nghost-%COMP%] .list-group-item[_ngcontent-%COMP%]{background:#f5f5f5}.action--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;border:0;border-bottom:1px solid #ddd;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.action--item[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin:0 5px}.action--item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--item[_ngcontent-%COMP%]:first-child{border-radius:0}.action--item.is-editing[_ngcontent-%COMP%]{background:#f5f5f5}.action--item--wrap[_ngcontent-%COMP%]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.action--item--wrap.pointer[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.action--title[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--movable[_ngcontent-%COMP%]:hover{cursor:move}.list-group-item[_ngcontent-%COMP%]{margin-bottom:0}.macro-action-editor__container[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:none;overflow:hidden}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function xo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical action--movable"]],null,null,null,null,null))],null,null)}function So(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"icon",[["name","pencil"]],null,null,null,we,de)),o["\u0275did"](1,114688,null,0,ce,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"pencil")},null)}function Eo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"icon",[["name","trash"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.deleteAction()&&i),i},we,de)),o["\u0275did"](1,114688,null,0,ce,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"trash")},null)}function Mo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,19,"div",[["class","list-group-item action--item"]],[[2,"is-editing",null]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,xo)),o["\u0275did"](3,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,10,"div",[["class","action--item--wrap"]],[[2,"pointer",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.editAction()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"icon",[],null,null,null,we,de)),o["\u0275did"](8,114688,null,0,ce,[],{name:[0,"name"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"div",[["class","action--title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,So)),o["\u0275did"](14,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Eo)),o["\u0275did"](18,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](21,0,null,null,5,"div",[["class","list-group-item macro-action-editor__container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,2,"macro-action-editor",[["class","macro-action-editor"]],null,[[null,"cancel"],[null,"save"]],function(e,t,n){var i=!0,o=e.component;return"cancel"===t&&(i=!1!==o.cancelEdit()&&i),"save"===t&&(i=!1!==o.saveEditedAction(n)&&i),i},To,bo)),o["\u0275did"](24,638976,null,0,vo,[],{macroAction:[0,"macroAction"]},{save:"save",cancel:"cancel"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.movable),e(t,8,0,n.iconName),e(t,14,0,n.editable&&n.macroAction&&!n.editing),e(t,18,0,n.deletable),e(t,24,0,n.macroAction)},function(e,t){var n=t.component;e(t,0,0,n.editing),e(t,5,0,n.editable),e(t,11,0,n.title),e(t,21,0,n.editable&&n.editing||n.newItem?"active":"inactive")})}var Po=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] select2[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:200px;max-height:300px;margin:20px 0;overflow-x:hidden;overflow-y:auto;border-radius:4px;border:1px solid #ddd}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%] .list-group[_ngcontent-%COMP%]{margin-bottom:0;border:0}"]],data:{}});function Io(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" No macros are available to choose from. Create a macro first! "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function Ro(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"macro-item",[["class","macro-item"]],null,null,null,Mo,Oo)),o["\u0275did"](1,638976,null,0,Co,[Dt],{macroAction:[0,"macroAction"],editable:[1,"editable"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.context.$implicit,!1)},null)}function No(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),o["\u0275eld"](2,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can bind macros, but they don't have any effect."])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,7,"div",[["class","macro-selector"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Play macro: "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var i=!0;return"valueChanged"===t&&(i=!1!==e.component.onChange(n)&&i),i},ai,si)),o["\u0275did"](11,4964352,null,0,li.Select2Component,[o.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,7,"div",[["class","macro-action-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Ro)),o["\u0275did"](19,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,11,0,n.macroOptions,n.macroOptions[n.selectedMacroIndex].id,"100%"),e(t,19,0,n.macros[n.selectedMacroIndex].macroActions)},null)}function Do(e){return o["\u0275vid"](0,[(e()(),o["\u0275and"](16777216,null,null,1,null,Io)),o["\u0275did"](1,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,No)),o["\u0275did"](4,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,0===n.macroOptions.length),e(t,4,0,n.macroOptions.length>0)},null)}var jo=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] select2[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-top:10px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child img[_ngcontent-%COMP%]{max-height:100%;max-width:100%}.empty[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%;position:relative}"]],data:{}});function Uo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" No keymaps are available to choose from. Create a keymap first! "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function Lo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"div",[["class","empty"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/base-layer--blank.svg"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "]))],null,null)}function Vo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],null,null,null,ti,Zn)),o["\u0275did"](1,638976,null,0,Jn,[Qn],{moduleConfig:[0,"moduleConfig"]},null),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.selectedKeymap.layers[0].modules)},null)}function Fo(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Switch to keymap:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var i=!0;return"valueChanged"===t&&(i=!1!==e.component.onChange(n)&&i),i},ai,si)),o["\u0275did"](7,4964352,null,0,li.Select2Component,[o.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Lo)),o["\u0275did"](13,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Vo)),o["\u0275did"](16,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,7,0,n.keymapOptions,(null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)||-1,"100%"),e(t,13,0,!(null!=n.selectedKeymap&&n.selectedKeymap.abbreviation)),e(t,16,0,null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)},null)}function Ko(e){return o["\u0275vid"](2,[(e()(),o["\u0275and"](16777216,null,null,1,null,Uo)),o["\u0275did"](1,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,Fo)),o["\u0275did"](4,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,0===n.keymapOptions.length),e(t,4,0,n.keymapOptions.length>0)},null)}var Bo=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:2rem 0}"]],data:{}});function Ho(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["This key is unassigned and has no functionality."]))],null,null)}var Wo=n("TfWX"),qo=(n("qp8k"),n("+pb+"),function(e){return e[e.Keypress=0]="Keypress",e[e.Layer=1]="Layer",e[e.Mouse=2]="Mouse",e[e.Macro=3]="Macro",e[e.Keymap=4]="Keymap",e[e.None=5]="None",e}({})),zo=function(){function e(e){this.cancel=new o.EventEmitter,this.remap=new o.EventEmitter,this.tabName=qo,this.leftArrow=!1,this.rightArrow=!1,this.topPosition=0,this.leftPosition=0,this.currentKeymap$=new Wo.BehaviorSubject(void 0),this.animationState="closed",this.keymaps$=e.let(Object(bn.b)()).combineLatest(this.currentKeymap$).map(function(e){var t=e[1];return e[0].filter(function(e){return t.abbreviation!==e.abbreviation})})}return e.prototype.ngOnChanges=function(e){this.keyPosition&&this.wrapPosition&&(e.keyPosition||e.wrapPosition)&&this.calculatePosition(),e.defaultKeyAction&&this.selectTab(this.defaultKeyAction instanceof Ne.KeystrokeAction?qo.Keypress:this.defaultKeyAction instanceof Ne.SwitchLayerAction?qo.Layer:this.defaultKeyAction instanceof Ne.MouseAction?qo.Mouse:this.defaultKeyAction instanceof Ne.PlayMacroAction?qo.Macro:this.defaultKeyAction instanceof Ne.SwitchKeymapAction?qo.Keymap:qo.None),e.visible&&(this.animationState=e.visible.currentValue?"opened":"closed"),e.currentKeymap&&this.currentKeymap$.next(this.currentKeymap)},e.prototype.onCancelClick=function(){this.cancel.emit(void 0)},e.prototype.onRemapKey=function(){if(this.keyActionValid)try{var e=this.selectedTab.toKeyAction();this.remap.emit(e)}catch(e){console.error(e)}},e.prototype.onEscape=function(){this.cancel.emit()},e.prototype.selectTab=function(e){this.activeTab=e},e.prototype.onOverlay=function(){this.cancel.emit(void 0)},e.prototype.calculatePosition=function(){var e=this.wrapPosition.left+265,t=this.popoverHost.nativeElement,n=this.keyPosition.left+this.keyPosition.width/2;this.leftArrow=ne+this.wrapPosition.width,this.leftArrow?n=this.keyPosition.left:this.rightArrow?n=this.keyPosition.left-t.offsetWidth+this.keyPosition.width:n-=t.offsetWidth/2,this.topPosition=this.keyPosition.top+this.keyPosition.height+7+window.scrollY,this.leftPosition=n},e}(),$o=o["\u0275crt"]({encapsulation:0,styles:[[".popover[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;max-width:568px;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.popover.leftArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;left:22px}.popover.rightArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;right:22px;left:auto}.nav-tabs[_ngcontent-%COMP%] > li[_ngcontent-%COMP%], .popover[_ngcontent-%COMP%] > .container-fluid[_ngcontent-%COMP%]{overflow:hidden}.arrowCustom[_ngcontent-%COMP%]{position:absolute;top:-16px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:41px;height:16px}.arrowCustom[_ngcontent-%COMP%]:before{content:'';width:0;height:0;border-left:21px solid transparent;border-right:21px solid transparent;border-bottom:17px solid rgba(0,0,0,.2);display:block;position:absolute;top:-1px}.arrowCustom[_ngcontent-%COMP%]:after{content:'';width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:16px solid #f7f7f7;display:block;position:absolute;top:0}.popover-action[_ngcontent-%COMP%]{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-top:1px solid #ebebeb;border-radius:0 0 5px 5px;text-align:right}.popover-title.menu-tabs[_ngcontent-%COMP%]{padding:.5rem .5rem 0;display:block}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%]{position:relative;top:1px;display:-webkit-box;display:-ms-flexbox;display:flex}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.25em}.popover-content[_ngcontent-%COMP%]{padding:10px 24px}.popover-overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:0;top:0;left:0;z-index:1050;background:0 0;-webkit-transition:background .2s ease-out,height 0s .2s linear;transition:background .2s ease-out,height 0s .2s linear}.popover-overlay.display[_ngcontent-%COMP%]{height:100%;background:rgba(0,0,0,.2);-webkit-transition:background .2s ease-out;transition:background .2s ease-out}.select2-item[_ngcontent-%COMP%]{position:relative;font-size:1.5rem}.select2-item.keymap-name--wrapper[_ngcontent-%COMP%]{padding-left:50px}.select2-item[_ngcontent-%COMP%] .layout-segment-code[_ngcontent-%COMP%]{height:2rem;position:absolute;left:0;top:50%;margin-top:-1rem}"]],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 Go(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"keypress-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},_i,gi)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,mi,[Dt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction,!0)},null)}function Yo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"layer-tab",[["class","popover-content"]],[[2,"no-base",null]],[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Mi,wi)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,Ai,[],{defaultKeyAction:[0,"defaultKeyAction"],currentLayer:[1,"currentLayer"]},{validAction:"validAction"})],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,n.currentLayer)},function(e,t){e(t,0,0,o["\u0275nov"](t,1).isNotBase)})}function Qo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"mouse-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Vi,Ii)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,Pi,[],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function Jo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Do,Po)),o["\u0275did"](1,770048,[[1,4],["tab",4]],0,zi,[s.m],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function Zo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"keymap-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Ko,jo)),o["\u0275did"](1,573440,[[1,4],["tab",4]],0,qi,[],{defaultKeyAction:[0,"defaultKeyAction"],keymaps:[1,"keymaps"]},{validAction:"validAction"}),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,o["\u0275unv"](t,1,1,o["\u0275nov"](t,2).transform(n.keymaps$)))},null)}function Xo(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"none-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var i=!0;return"validAction"===t&&(i=!1!==(e.component.keyActionValid=n)&&i),i},Ho,Bo)),o["\u0275did"](1,114688,[[1,4],["tab",4]],0,$i,[],null,{validAction:"validAction"})],function(e,t){e(t,1,0)},null)}function er(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{selectedTab:0}),o["\u0275qud"](402653184,2,{popoverHost:0}),(e()(),o["\u0275eld"](2,0,[[2,0],["popover",1]],null,108,"div",[["class","popover"]],[[24,"@popover",0],[4,"top","px"],[4,"left","px"]],null,null,null,null)),o["\u0275did"](3,278528,null,0,d.i,[o.IterableDiffers,o.KeyValueDiffers,o.ElementRef,o.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),o["\u0275pod"](4,{leftArrow:0,rightArrow:1}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"div",[["class","arrowCustom"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,70,"div",[["class","popover-title menu-tabs"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,67,"ul",[["class","nav nav-tabs popover-menu"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,[["keypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Keypress)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Keypress"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,[["layer",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Layer)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-clone"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Layer"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](34,0,[["mouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Mouse)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](36,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](38,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](40,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Mouse"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](45,0,[["macro",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Macro)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](47,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](49,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](51,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Macro"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,[["keymap",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.Keymap)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](58,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](60,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](62,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Keymap"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](67,0,[["none",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var i=!0,o=e.component;return"click"===t&&(i=!1!==o.selectTab(o.tabName.None)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](69,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](71,0,null,null,0,"i",[["class","fa fa-ban"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](73,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["None"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](80,0,null,null,20,"div",[],null,null,null,null,null)),o["\u0275did"](81,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Go)),o["\u0275did"](84,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Yo)),o["\u0275did"](87,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Qo)),o["\u0275did"](90,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Jo)),o["\u0275did"](93,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Zo)),o["\u0275did"](96,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Xo)),o["\u0275did"](99,278528,null,0,d.o,[o.ViewContainerRef,o.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](102,0,null,null,7,"div",[["class","popover-action"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](104,0,null,null,1,"button",[["class","btn btn-sm btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onCancelClick()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Cancel "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](107,0,null,null,1,"button",[["class","btn btn-sm btn-primary"],["type","button"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onRemapKey()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Remap Key "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](112,0,null,null,0,"div",[["class","popover-overlay"]],[[2,"display",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onOverlay()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"popover",e(t,4,0,n.leftArrow,n.rightArrow)),e(t,81,0,n.activeTab),e(t,84,0,n.tabName.Keypress),e(t,87,0,n.tabName.Layer),e(t,90,0,n.tabName.Mouse),e(t,93,0,n.tabName.Macro),e(t,96,0,n.tabName.Keymap),e(t,99,0,n.tabName.None)},function(e,t){var n=t.component;e(t,2,0,n.animationState,n.topPosition,n.leftPosition),e(t,12,0,n.activeTab===n.tabName.Keypress),e(t,23,0,n.activeTab===n.tabName.Layer),e(t,34,0,n.activeTab===n.tabName.Mouse),e(t,45,0,n.activeTab===n.tabName.Macro),e(t,56,0,n.activeTab===n.tabName.Keymap),e(t,67,0,n.activeTab===n.tabName.None),e(t,107,0,!n.keyActionValid),e(t,112,0,n.visible)})}n("1APj");var tr=function(){function e(e,t,n,i){this.store=e,this.mapper=t,this.element=n,this.renderer=i,this.popoverEnabled=!0,this.tooltipEnabled=!1,this.descriptionChanged=new o.EventEmitter,this.currentLayer=0,this.keyEditConfig={moduleId:void 0,keyId:void 0},this.tooltipData={posTop:0,posLeft:0,content:Se.Observable.of([]),show:!1}}return Object.defineProperty(e.prototype,"space",{get:function(){return this.popoverEnabled},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){this.wrapHost&&(this.wrapPosition=this.wrapHost.getBoundingClientRect()),this.keyElement&&(this.keyPosition=this.keyElement.getBoundingClientRect())},e.prototype.ngOnInit=function(){this.wrapHost=this.element.nativeElement,this.wrapPosition=this.wrapHost.getBoundingClientRect()},e.prototype.ngOnChanges=function(e){var t=e.keymap;t&&(this.popoverShown=!1,this.layers=this.keymap.layers,t.isFirstChange()||t.previousValue.abbreviation!==t.currentValue.abbreviation?(this.currentLayer=0,this.keybindAnimationEnabled=t.isFirstChange()):this.keybindAnimationEnabled=!0)},e.prototype.onKeyClick=function(e,t,n){if(!this.popoverShown&&this.popoverEnabled){this.keyEditConfig={moduleId:e,keyId:t},this.selectedKey={layerId:this.currentLayer,moduleId:e,keyId:t};var i=this.layers[this.currentLayer].modules[e].keyActions[t];this.keyElement=n,this.showPopover(i)}},e.prototype.onKeyHover=function(e,t,n,i){this.tooltipEnabled&&(n?this.showTooltip(this.layers[this.currentLayer].modules[e].keyActions[i],t):this.hideTooltip())},e.prototype.onCapture=function(e,t,n){var i=new Ne.KeystrokeAction,o=n.left.concat(n.right).map(function(e){return e?1:0});i.scancode=n.code,i.modifierMask=0;for(var r=0;r0&&(n+=" ("+i+")"),r.push({name:"Scancode",value:n})}return t.hasActiveModifier()&&r.push({name:"Modifiers",value:t.getModifierList().join(", ")}),t.hasSecondaryRoleAction()&&r.push({name:"Secondary role",value:Ne.SecondaryRoleAction[t.secondaryRoleAction]}),Se.Observable.of(r)}if(e instanceof Ne.MouseAction){var o=e,r=[{name:"Action type",value:"Mouse"},{name:"Action",value:Object(Ne.camelCaseToSentence)(Ne.MouseActionParam[o.mouseAction])}];return Se.Observable.of(r)}if(e instanceof Ne.PlayMacroAction){var l=e;return this.store.select(function(e){return e.userConfiguration.macros}).map(function(e){return e.find(function(e){return e.id===l.macroId}).name}).map(function(e){return[{name:"Action type",value:"Play macro"},{name:"Macro name",value:e}]})}if(e instanceof Ne.SwitchKeymapAction){var s=e;return this.store.select(function(e){return e.userConfiguration.keymaps}).map(function(e){return e.find(function(e){return e.abbreviation===s.keymapAbbreviation}).name}).map(function(e){return[{name:"Action type",value:"Switch keymap"},{name:"Keymap",value:e}]})}if(e instanceof Ne.SwitchLayerAction){var a=e;return r=[{name:"Action type",value:"Switch layer"},{name:"Layer",value:Object(Ne.capitalizeFirstLetter)(Ne.LayerName[a.layer])},{name:"Toogle",value:a.isLayerToggleable?"On":"Off"}],Se.Observable.of(r)}return Se.Observable.of([])},e}(),nr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.space[_nghost-%COMP%]{margin-bottom:405px}keyboard-slider[_ngcontent-%COMP%]{display:block;position:relative;height:500px;margin-top:30px}.tooltip[_ngcontent-%COMP%]{position:fixed;-webkit-transform:translate(-50%,-6px);transform:translate(-50%,-6px);display:none}.tooltip-inner[_ngcontent-%COMP%]{background:#fff;color:#000;-webkit-box-shadow:0 1px 5px #000;box-shadow:0 1px 5px #000;text-align:left}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:2px}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.tooltip.bottom[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{border-bottom-color:#fff;top:1px}.tooltip.in[_ngcontent-%COMP%]{display:block;opacity:1}"]],data:{}});function ir(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["\n ",": ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit.name,t.context.$implicit.value)})}function or(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"layers",[],[[2,"disabled",null]],[[null,"select"]],function(e,t,n){var i=!0;return"select"===t&&(i=!1!==e.component.selectLayer(n.index)&&i),i},Tt,At)),o["\u0275did"](2,49152,null,0,_t,[],{current:[0,"current"]},{select:"select"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"keyboard-slider",[],null,[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var i=!0,o=e.component;return"keyClick"===t&&(i=!1!==o.onKeyClick(n.moduleId,n.keyId,n.keyTarget)&&i),"keyHover"===t&&(i=!1!==o.onKeyHover(n.moduleId,n.event,n.over,n.keyId)&&i),"capture"===t&&(i=!1!==o.onCapture(n.moduleId,n.keyId,n.captured)&&i),"descriptionChanged"===t&&(i=!1!==o.onDescriptionChanged(n)&&i),i},ri,ii)),o["\u0275did"](5,573440,null,0,ni,[],{layers:[0,"layers"],currentLayer:[1,"currentLayer"],keybindAnimationEnabled:[2,"keybindAnimationEnabled"],capturingEnabled:[3,"capturingEnabled"],halvesSplit:[4,"halvesSplit"],selectedKey:[5,"selectedKey"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,[[1,0]],null,1,"popover",[["tabindex","0"]],null,[[null,"cancel"],[null,"remap"],[null,"keydown.escape"]],function(e,t,n){var i=!0,r=e.component;return"keydown.escape"===t&&(i=!1!==o["\u0275nov"](e,8).onEscape()&&i),"cancel"===t&&(i=!1!==r.hidePopover()&&i),"remap"===t&&(i=!1!==r.onRemap(n)&&i),i},er,$o)),o["\u0275did"](8,573440,null,0,zo,[s.m],{defaultKeyAction:[0,"defaultKeyAction"],currentKeymap:[1,"currentKeymap"],currentLayer:[2,"currentLayer"],keyPosition:[3,"keyPosition"],wrapPosition:[4,"wrapPosition"],visible:[5,"visible"]},{cancel:"cancel",remap:"remap"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,10,"div",[["class","tooltip bottom"]],[[2,"in",null],[4,"top","px"],[4,"left","px"]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,0,"div",[["class","tooltip-arrow"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,5,"div",[["class","tooltip-inner"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,ir)),o["\u0275did"](17,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.currentLayer),e(t,5,0,n.layers,n.currentLayer,n.keybindAnimationEnabled,n.popoverEnabled,n.halvesSplit,n.selectedKey,n.keyboardLayout,n.keymap.description),e(t,8,0,n.popoverInitKeyAction,n.keymap,n.currentLayer,n.keyPosition,n.wrapPosition,n.popoverShown),e(t,17,0,o["\u0275unv"](t,17,0,o["\u0275nov"](t,18).transform(n.tooltipData.content)))},function(e,t){var n=t.component;e(t,1,0,n.popoverShown),e(t,10,0,n.tooltipData.show,n.tooltipData.posTop,n.tooltipData.posLeft)})}function rr(e){return o["\u0275vid"](2,[o["\u0275qud"](671088640,1,{popover:0}),(e()(),o["\u0275and"](16777216,null,null,1,null,or)),o["\u0275did"](2,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,2,0,t.component.layers)},null)}n("okk1"),n("KRCp"),n("PvYY"),n("uCY4"),n("xOQQ");var lr=n("lDdF"),sr=function(){function e(e,t){this.store=e,this.keymap$=t.params.pluck("abbr").switchMap(function(t){return e.let(Object(bn.a)(t))}).publishReplay(1).refCount(),this.deletable$=e.let(Object(bn.b)()).map(function(e){return e.length>1}),this.keyboardLayout$=e.select(u.j)}return e.prototype.downloadKeymap=function(){var e=this,t=this.keymap$.switchMap(function(t){return e.toExportableJSON(t)}).map(function(e){return JSON.stringify(e)});this.keymap$.combineLatest(t).first().subscribe(function(e){var t=e[1],n=e[0].name+"_keymap.json";Object(lr.saveAs)(new Blob([t],{type:"application/json"}),n)})},e.prototype.toggleKeyboardSplit=function(){this.keyboardSplit=!this.keyboardSplit},e.prototype.descriptionChanged=function(e){this.store.dispatch(new yt.a.EditDescriptionAction(e))},e.prototype.toExportableJSON=function(e){return this.store.let(Object(bn.e)()).first().map(function(t){return{site:"https://ultimatehackingkeyboard.com",description:"Ultimate Hacking Keyboard keymap",keyboardModel:"UHK60",userConfigMajorVersion:t.userConfigMajorVersion,userConfigMinorVersion:t.userConfigMinorVersion,userConfigPatchVersion:t.userConfigPatchVersion,objectType:"keymap",objectValue:e.toJsonObject()}})},e}(),ar=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function ur(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,3,"keymap-header",[],null,[[null,"downloadClick"],["window","resize"]],function(e,t,n){var i=!0,r=e.component;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,2).windowResize()&&i),"downloadClick"===t&&(i=!1!==r.downloadKeymap()&&i),i},kt,bt)),o["\u0275did"](2,573440,null,0,vt,[s.m,o.Renderer2],{keymap:[0,"keymap"],deletable:[1,"deletable"]},{downloadClick:"downloadClick"}),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,3,"svg-keyboard-wrap",[],[[2,"space",null]],[[null,"descriptionChanged"],["window","resize"]],function(e,t,n){var i=!0,r=e.component;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,7).onResize()&&i),"descriptionChanged"===t&&(i=!1!==r.descriptionChanged(n)&&i),i},rr,nr)),o["\u0275did"](7,638976,[[1,4]],0,tr,[s.m,Dt,o.ElementRef,o.Renderer],{keymap:[0,"keymap"],halvesSplit:[1,"halvesSplit"],keyboardLayout:[2,"keyboardLayout"]},{descriptionChanged:"descriptionChanged"}),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.keymap$)),o["\u0275unv"](t,2,1,o["\u0275nov"](t,4).transform(n.deletable$))),e(t,7,0,o["\u0275unv"](t,7,0,o["\u0275nov"](t,8).transform(n.keymap$)),n.keyboardSplit,o["\u0275unv"](t,7,2,o["\u0275nov"](t,9).transform(n.keyboardLayout$)))},function(e,t){e(t,6,0,o["\u0275nov"](t,7).space)})}function cr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Sorry, there is no keymap with this abbreviation.\n"]))],null,null)}function dr(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{wrap:0}),(e()(),o["\u0275and"](16777216,null,null,2,null,ur)),o["\u0275did"](2,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,cr)),o["\u0275did"](6,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,o["\u0275unv"](t,2,0,o["\u0275nov"](t,3).transform(n.keymap$))),e(t,6,0,!o["\u0275unv"](t,6,0,o["\u0275nov"](t,7).transform(n.keymap$)))},null)}var pr=o["\u0275ccf"]("keymap-edit",sr,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"keymap-edit",[["class","container-fluid"]],null,[["window","keydown.alt.s"]],function(e,t,n){var i=!0;return"window:keydown.alt.s"===t&&(i=!1!==o["\u0275nov"](e,1).toggleKeyboardSplit(n)&&i),i},dr,ar)),o["\u0275did"](1,49152,null,0,sr,[s.m,Z.a],null,null)],null,null)},{},{},[]),fr=function(){function e(e){this.store=e,this.presetsAll$=e.select(function(e){return e.presetKeymaps}),this.filterExpression$=new Wo.BehaviorSubject(""),this.presets$=this.presetsAll$.combineLatest(this.filterExpression$,function(e,t){return e.filter(function(e){return e.name.toLocaleLowerCase().includes(t)})}).publishReplay(1).refCount()}return e.prototype.filterKeyboards=function(e){this.filterExpression$.next(e)},e.prototype.addKeymap=function(e){this.store.dispatch(yt.a.addKeymap(e))},e}(),hr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:-.3em;right:100%;font-size:2.4rem;padding-right:.25em;margin:0}.keymap__search[_ngcontent-%COMP%]{margin-top:10px}.keymap__search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{width:100%;max-width:350px;float:left}.keymap__search_amount[_ngcontent-%COMP%]{float:left;margin:7px 0 0 20px}.keymap__description[_ngcontent-%COMP%]{margin-bottom:20px}.keymap__list[_ngcontent-%COMP%]{margin-top:40px}.keymap__list_item[_ngcontent-%COMP%]{margin-bottom:50px}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%]{margin:30px 0 0;width:100%;text-align:center}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{float:none;padding-left:50px;padding-right:50px}"]],data:{}});function yr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,[["keyboard",1]],null,17,"div",[["class","keymap__list_item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),o["\u0275ted"](3,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"p",[["class","keymap__description"]],null,null,null,null,null)),(e()(),o["\u0275ted"](6,null,["\n ","\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,2,"svg-keyboard-wrap",[],[[2,"space",null]],[["window","resize"]],function(e,t,n){var i=!0;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,9).onResize()&&i),i},rr,nr)),o["\u0275did"](9,638976,null,0,tr,[s.m,Dt,o.ElementRef,o.Renderer],{keymap:[0,"keymap"],popoverEnabled:[1,"popoverEnabled"],tooltipEnabled:[2,"tooltipEnabled"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,4,"div",[["class","btn-group btn-group-lg"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.addKeymap(e.context.$implicit)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Add keymap"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.context.$implicit,!1,!0)},function(e,t){e(t,3,0,t.context.$implicit.name),e(t,6,0,t.context.$implicit.description),e(t,8,0,o["\u0275nov"](t,9).space)})}function mr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n Sorry, no keyboard found under this search query.\n"]))],null,null)}function gr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Add new keymap"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,16,"div",[["class","keymap__search clearfix"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"span",[["class","input-group-addon"],["id","sizing-addon1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,0,"input",[["class","form-control"],["placeholder","Search ..."],["type","text"]],null,[[null,"input"]],function(e,t,n){var i=!0;return"input"===t&&(i=!1!==e.component.filterKeyboards(n.target.value)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,3,"div",[["class","keymap__search_amount"]],null,null,null,null,null)),(e()(),o["\u0275ted"](21,null,["\n "," / "," keymaps shown\n "])),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](26,0,null,null,5,"div",[["class","keymap__list"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,2,null,yr)),o["\u0275did"](29,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,mr)),o["\u0275did"](34,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,29,0,o["\u0275unv"](t,29,0,o["\u0275nov"](t,30).transform(n.presets$))),e(t,34,0,0===o["\u0275unv"](t,34,0,o["\u0275nov"](t,35).transform(n.presets$)).length)},function(e,t){var n=t.component;e(t,21,0,o["\u0275unv"](t,21,0,o["\u0275nov"](t,22).transform(n.presets$)).length,o["\u0275unv"](t,21,1,o["\u0275nov"](t,23).transform(n.presetsAll$)).length)})}var vr=o["\u0275ccf"]("keymap-add",fr,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"keymap-add",[["class","container-fluid"]],null,null,null,gr,hr)),o["\u0275did"](1,49152,null,0,fr,[s.m],null,null)],null,null)},{},{},[]),br=function(){},kr=o["\u0275crt"]({encapsulation:0,styles:[[".not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function _r(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,11,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,5,"uhk-header",[],null,null,null,ft,pt)),o["\u0275did"](3,49152,null,0,dt,[s.m],null,null),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275eld"](5,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\xa0"])),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n You don't have any macros. Try to add one!\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}var Ar=o["\u0275ccf"]("macro-not-found",br,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-not-found",[],null,null,null,_r,kr)),o["\u0275did"](1,49152,null,0,br,[],null,null)],null,null)},{},{},[]),wr=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(yt.b.removeMacro(this.macro.id))},e.prototype.duplicateMacro=function(){this.store.dispatch(yt.b.duplicateMacro(this.macro))},e.prototype.editMacroName=function(e){mt.d(e)?this.store.dispatch(yt.b.editMacroName(this.macro.id,e)):this.setName()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.macroName.nativeElement,n=.8*t.parentElement.offsetWidth,i=mt.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,i)+"px")},e.prototype.setFocusOnName=function(){this.macroName.nativeElement.select()},e.prototype.setName=function(){this.renderer.setProperty(this.macroName.nativeElement,"value",this.macro.name),this.calculateHeaderTextWidth(this.macro.name)},e}(),Tr=o["\u0275crt"]({encapsulation:0,styles:[[".macro__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.macro__remove[_ngcontent-%COMP%]:hover{cursor:pointer;color:#900}.macro__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.macro__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem;text-overflow:ellipsis}.pane-title__name[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}"]],data:{}});function Cr(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{macroName:0}),(e()(),o["\u0275eld"](1,0,null,null,19,"uhk-header",[],null,null,null,ft,pt)),o["\u0275did"](2,49152,null,0,dt,[s.m],null,null),(e()(),o["\u0275ted"](-1,0,["\n "])),(e()(),o["\u0275eld"](4,0,null,0,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,12,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,[[1,0],["macroName",1]],null,1,"input",[["cancelable",""],["class","pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==o["\u0275nov"](e,11).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,11).onEscape()&&i),"change"===t&&(i=!1!==r.editMacroName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==o["\u0275nov"](e,10).blur()&&i),"keyup"===t&&(i=!1!==r.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),o["\u0275did"](11,16384,null,0,ht,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,1,"i",[["class","glyphicon glyphicon-trash macro__remove pull-right"],["data-original-title","Delete macro"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.removeMacro()&&i),i},null,null)),o["\u0275did"](14,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,1,"i",[["class","fa fa-files-o macro__duplicate pull-right"],["data-original-title","Duplicate macro"],["data-placement","bottom"],["data-toggle","tooltip"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.duplicateMacro()&&i),i},null,null)),o["\u0275did"](17,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,0,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,14,0,"","true"),e(t,17,0,"")},function(e,t){e(t,13,0,o["\u0275nov"](t,14).placement),e(t,16,0,o["\u0275nov"](t,17).placement)})}var Or=n("xiuF"),xr=n("LKU8"),Sr=(n("kkgw"),function(){function e(e,t){var n=this;this.mapper=e,this.dragulaService=t,this.add=new o.EventEmitter,this.edit=new o.EventEmitter,this.delete=new o.EventEmitter,this.reorder=new o.EventEmitter,this.newMacro=void 0,this.showNew=!1,this.activeEdit=void 0,t.setOptions("macroActions",{moves:function(e,t,n){return n.className.includes("action--movable")}}),t.drag.subscribe(function(e){n.dragIndex=+e[1].getAttribute("data-index")}),t.drop.subscribe(function(e){e[4]&&n.reorder.emit({macroId:n.macro.id,oldIndex:n.dragIndex,newIndex:+e[4].getAttribute("data-index")})})}return e.prototype.showNewAction=function(){this.hideActiveEditor(),this.newMacro=void 0,this.showNew=!0},e.prototype.hideNewAction=function(){this.showNew=!1},e.prototype.addNewAction=function(e){this.add.emit({macroId:this.macro.id,action:e}),this.newMacro=void 0,this.showNew=!1},e.prototype.editAction=function(e){this.hideActiveEditor(),this.showNew=!1,this.activeEdit=e},e.prototype.cancelAction=function(){this.activeEdit=void 0},e.prototype.saveAction=function(e,t){this.edit.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.deleteAction=function(e,t){this.delete.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.onKeysCapture=function(e){var t=Object.assign(new Ne.KeyMacroAction,this.toKeyAction(e));t.action=Ne.MacroKeySubAction.tap,this.add.emit({macroId:this.macro.id,action:t})},e.prototype.toKeyAction=function(e){var t=new Ne.KeystrokeAction;t.scancode=e.code,t.modifierMask=0;for(var n=e.left.concat(e.right).map(function(e){return e?1:0}),i=0;i active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}},{type:7,name:"togglerNew",definitions:[{type:0,name:"void",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:":enter",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null},{type:1,expr:":leave",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function Mr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[1,"data-index",0]],[[null,"save"],[null,"edit"],[null,"cancel"],[null,"delete"]],function(e,t,n){var i=!0,o=e.component;return"save"===t&&(i=!1!==o.saveAction(n,e.context.index)&&i),"edit"===t&&(i=!1!==o.editAction(e.context.index)&&i),"cancel"===t&&(i=!1!==o.cancelAction()&&i),"delete"===t&&(i=!1!==o.deleteAction(e.context.$implicit,e.context.index)&&i),i},Mo,Oo)),o["\u0275did"](1,638976,[[1,4]],0,Co,[Dt],{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 Pr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[24,"@togglerNew",0]],[[null,"save"],[null,"cancel"]],function(e,t,n){var i=!0,o=e.component;return"save"===t&&(i=!1!==o.addNewAction(n)&&i),"cancel"===t&&(i=!1!==o.hideNewAction()&&i),i},Mo,Oo)),o["\u0275did"](1,638976,[[1,4]],0,Co,[Dt],{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 Ir(e){return o["\u0275vid"](0,[o["\u0275qud"](671088640,1,{macroItems:1}),(e()(),o["\u0275eld"](1,0,null,null,34,"div",[["class","row list-container"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,31,"div",[["class","col-xs-10 col-xs-offset-1 list-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,8,"div",[["class","macro-actions-container"]],null,null,null,null,null)),o["\u0275did"](6,606208,null,0,Or.DragulaDirective,[o.ElementRef,xr.DragulaService],{dragula:[0,"dragula"],dragulaModel:[1,"dragulaModel"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Mr)),o["\u0275did"](9,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,Pr)),o["\u0275did"](12,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,18,"div",[["class","list-group add-new__action-container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,15,"div",[["class","list-group-item action--item add-new__action-item no-reorder clearfix"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,6,"span",[["class","add-new__action-item--link"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.showNewAction()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,3,"button",[["class","btn btn-link"],["type","button"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Add macro action\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,4,"span",[["class","add-new__action-item--link"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](29,0,null,null,1,"capture-keystroke-button",[["captureText","Add captured keystroke"],["isLink","true"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var i=!0,r=e.component;return"keyup"===t&&(i=!1!==o["\u0275nov"](e,30).onKeyUp(n)&&i),"keydown"===t&&(i=!1!==o["\u0275nov"](e,30).onKeyDown(n)&&i),"focusout"===t&&(i=!1!==o["\u0275nov"](e,30).onFocusOut()&&i),"capture"===t&&(i=!1!==r.onKeysCapture(n)&&i),i},fi,ci)),o["\u0275did"](30,49152,null,0,ui,[vn],{isLink:[0,"isLink"],captureText:[1,"captureText"]},{capture:"capture"}),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,6,0,"macroActions",n.macro.macroActions),e(t,9,0,n.macro.macroActions),e(t,12,0,n.showNew),e(t,30,0,"true","Add captured keystroke")},function(e,t){e(t,15,0,t.component.showNew?"inactive":"active")})}var Rr=function(){function e(e,t){var n=this;this.store=e,this.route=t,this.subscription=t.params.pluck("id").switchMap(function(t){return n.macroId=+t,e.let(Object(bn.c)(n.macroId))}).subscribe(function(e){n.macro=e}),this.isNew="new"===this.route.snapshot.params.empty}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.addAction=function(e,t){this.store.dispatch(yt.b.addMacroAction(e,t))},e.prototype.editAction=function(e,t,n){this.store.dispatch(yt.b.saveMacroAction(e,t,n))},e.prototype.deleteAction=function(e,t,n){this.store.dispatch(yt.b.deleteMacroAction(e,t,n))},e.prototype.reorderAction=function(e,t,n){this.store.dispatch(yt.b.reorderMacroAction(e,t,n))},e}(),Nr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Dr(e){return o["\u0275vid"](0,[(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](1,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,t,n){var i=!0;return"window:resize"===t&&(i=!1!==o["\u0275nov"](e,2).windowResize()&&i),i},Cr,Tr)),o["\u0275did"](2,4767744,null,0,wr,[s.m,o.Renderer2],{macro:[0,"macro"],isNew:[1,"isNew"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,2,"macro-list",[],null,[[null,"add"],[null,"edit"],[null,"delete"],[null,"reorder"]],function(e,t,n){var i=!0,o=e.component;return"add"===t&&(i=!1!==o.addAction(n.macroId,n.action)&&i),"edit"===t&&(i=!1!==o.editAction(n.macroId,n.index,n.action)&&i),"delete"===t&&(i=!1!==o.deleteAction(n.macroId,n.index,n.action)&&i),"reorder"===t&&(i=!1!==o.reorderAction(n.macroId,n.oldIndex,n.newIndex)&&i),i},Ir,Er)),o["\u0275prd"](8704,null,xr.DragulaService,xr.DragulaService,[]),o["\u0275did"](6,49152,null,0,Sr,[Dt,xr.DragulaService],{macro:[0,"macro"]},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"}),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.macro,n.isNew),e(t,6,0,n.macro)},null)}function jr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["\n There is no macro with id ",".\n"]))],null,function(e,t){e(t,1,0,t.component.macroId)})}function Ur(e){return o["\u0275vid"](0,[(e()(),o["\u0275and"](16777216,null,null,1,null,Dr)),o["\u0275did"](1,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,1,null,jr)),o["\u0275did"](4,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.macro),e(t,4,0,!n.macro)},null)}var Lr=o["\u0275ccf"]("macro-edit",Rr,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"macro-edit",[["class","container-fluid"]],null,null,null,Ur,Nr)),o["\u0275did"](1,180224,null,0,Rr,[s.m,Z.a],null,null)],null,null)},{},{},[]),Vr=function(e){this.name$=e.params.pluck("name")},Fr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Kr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,7,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,2,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](7,null,["",""])),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\nTo be done..."]))],null,function(e,t){var n=t.component;e(t,7,0,o["\u0275unv"](t,7,0,o["\u0275nov"](t,8).transform(n.name$)))})}var Br=o["\u0275ccf"]("add-on",Vr,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"add-on",[["class","container-fluid"]],null,null,null,Kr,Fr)),o["\u0275did"](1,49152,null,0,Vr,[Z.a],null,null)],null,null)},{},{},[]),Hr=function(){function e(){this.toggleCheckForUpdateOnStartUp=new o.EventEmitter,this.toggleUsePreReleaseUpdate=new o.EventEmitter,this.checkForUpdate=new o.EventEmitter}return e.prototype.emitCheckForUpdateOnStartUp=function(e){this.toggleCheckForUpdateOnStartUp.emit(e)},e.prototype.emitUsePreReleaseUpdate=function(e){this.toggleUsePreReleaseUpdate.emit(e)},e.prototype.emitCheckForUpdate=function(){this.checkForUpdate.emit()},e}(),Wr=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function qr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"span",[["class","fa fa-spinner fa-spin"]],null,null,null,null,null))],null,null)}function zr(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,35,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.emitCheckForUpdateOnStartUp(n.target.checked)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Automatically check for update on\n application start\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](12,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](16,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.emitUsePreReleaseUpdate(n.target.checked)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,[" Allow alpha / pre release\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](20,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](22,0,null,null,1,"label",[["class","col-sm-2 control-label"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Version:"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](25,0,null,null,4,"div",[["class","col-sm-10"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](27,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),o["\u0275ted"](28,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n\n "])),(e()(),o["\u0275eld"](32,0,null,null,4,"button",[["class","btn btn-link"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.emitCheckForUpdate()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n Check for update\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,qr)),o["\u0275did"](35,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,35,0,t.component.checkingForUpdate)},function(e,t){var n=t.component;e(t,8,0,n.settings.checkForUpdateOnStartUp),e(t,16,0,n.settings.usePreReleaseUpdate),e(t,28,0,n.version)})}var $r=n("w+X5"),Gr=function(){function e(e){this.store=e,this.version=Object(mt.c)().version,this.autoUpdateSettings$=e.select(u.f),this.checkingForUpdate$=e.select(u.h)}return e.prototype.toogleCheckForUpdateOnStartUp=function(e){this.store.dispatch(new $r.h(e))},e.prototype.toogleUsePreReleaseUpdate=function(e){this.store.dispatch(new $r.i(e))},e.prototype.checkForUpdate=function(){this.store.dispatch(new $r.c)},e}(),Yr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Qr(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Settings"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](11,0,null,null,4,"auto-update-settings",[],null,[[null,"toggleCheckForUpdateOnStartUp"],[null,"toggleUsePreReleaseUpdate"],[null,"checkForUpdate"]],function(e,t,n){var i=!0,o=e.component;return"toggleCheckForUpdateOnStartUp"===t&&(i=!1!==o.toogleCheckForUpdateOnStartUp(n)&&i),"toggleUsePreReleaseUpdate"===t&&(i=!1!==o.toogleUsePreReleaseUpdate(n)&&i),"checkForUpdate"===t&&(i=!1!==o.checkForUpdate()&&i),i},zr,Wr)),o["\u0275did"](12,49152,null,0,Hr,[],{version:[0,"version"],settings:[1,"settings"],checkingForUpdate:[2,"checkingForUpdate"]},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",toggleUsePreReleaseUpdate:"toggleUsePreReleaseUpdate",checkForUpdate:"checkForUpdate"}),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.version,o["\u0275unv"](t,12,1,o["\u0275nov"](t,13).transform(n.autoUpdateSettings$)),o["\u0275unv"](t,12,2,o["\u0275nov"](t,14).transform(n.checkingForUpdate$)))},null)}var Jr=o["\u0275ccf"]("settings",Gr,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"settings",[["class","container-fluid"]],null,null,null,Qr,Yr)),o["\u0275did"](1,49152,null,0,Gr,[s.m],null,null)],null,null)},{},{},[]),Zr=function(){function e(e){this.store=e,this.version=Object(mt.c)().version}return e.prototype.openAgentGitHubPage=function(e){e.preventDefault(),this.store.dispatch(new F.h(Ne.Constants.AGENT_GITHUB_URL))},e}(),Xr=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}.agent-version[_ngcontent-%COMP%]{margin-bottom:1rem}.agent-version[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.link-github[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function el(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,21,"div",[["class","row"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["About"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,10,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,3,"div",[["class","agent-version"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["Agent version: "])),(e()(),o["\u0275eld"](14,0,null,null,1,"span",[["class","text-bold"]],null,null,null,null,null)),(e()(),o["\u0275ted"](15,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),o["\u0275eld"](18,0,null,null,1,"a",[["class","link-github"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.openAgentGitHubPage(n)&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Agent on GitHub"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,function(e,t){e(t,15,0,t.component.version)})}var tl=o["\u0275ccf"]("about-page",Zr,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"about-page",[["class","container-fluid"]],null,null,null,el,Xr)),o["\u0275did"](1,49152,null,0,Zr,[s.m],null,null)],null,null)},{},{},[]),nl=function(){return function(){this.updateApp=new o.EventEmitter,this.doNotUpdateApp=new o.EventEmitter}}(),il=o["\u0275crt"]({encapsulation:0,styles:[[".app-update-available-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:.5rem}"]],data:{}});function ol(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,7,"div",[["class","app-update-available-wrapper"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n New version available.\n "])),(e()(),o["\u0275eld"](2,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.updateApp.emit()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Update"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.doNotUpdateApp.emit()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["Close"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}n("EnA3");var rl=function(){function e(e,t,n){this.store=e,this.renderer=t,this.cdRef=n,this.animation={device:"active",configuration:"active",keymap:"active",macro:"active",addon:"active"}}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(u.n).subscribe(function(t){e.state=t,e.setDeviceName(),e.cdRef.markForCheck()})},e.prototype.ngAfterContentInit=function(){this.setDeviceName()},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(yt.b.addMacro())},e.prototype.editDeviceName=function(e){mt.d(e)&&e.trim()!==this.state.deviceName?this.store.dispatch(new re.h(e)):this.setDeviceName()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.deviceName.nativeElement,n=.66*t.parentElement.offsetWidth,i=mt.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,i)+"px")},e.prototype.setDeviceName=function(){this.deviceName&&(this.renderer.setProperty(this.deviceName.nativeElement,"value",this.state.deviceName),this.calculateHeaderTextWidth(this.deviceName.nativeElement.value))},e}(),ll=o["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{background-color:#f5f5f5;border-right:1px solid #ccc;position:fixed;overflow-y:auto;width:250px;height:100%}a[_ngcontent-%COMP%]{color:#333}a.disabled[_ngcontent-%COMP%]{opacity:.65}ul[_ngcontent-%COMP%]{padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;padding:0}ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{overflow:hidden}.sidebar__level-0[_ngcontent-%COMP%]{padding:.5rem 1rem 0}.sidebar__level-1[_ngcontent-%COMP%]{padding:.5rem 1rem .5rem 2rem}.sidebar__level-0[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]{font-size:2rem;line-height:3rem;cursor:default}.sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%]{display:inline-block}.sidebar__level-0--item[_ngcontent-%COMP%], .sidebar__level-1--item[_ngcontent-%COMP%]{margin-top:0}.sidebar__level-0--item[_ngcontent-%COMP%]:nth-child(1), .sidebar__level-1--item[_ngcontent-%COMP%]:nth-child(1){margin:0}.sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%]{margin-right:1rem;font-size:1.5rem;position:relative;top:.5rem;display:none;cursor:pointer}.sidebar__level-0[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%]{margin-left:-3px}.sidebar__level-2--item[_ngcontent-%COMP%]{padding:0 20px 0 0;position:relative}.sidebar__level-2--item.active[_ngcontent-%COMP%]{background-color:#555;color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%]:hover{background-color:#555}.sidebar__level-2--item[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar__level-2--item[_ngcontent-%COMP%] .fa.pull-right[_ngcontent-%COMP%]{position:relative;top:2px}.sidebar__level-2--item[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#666}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;width:100%;padding:0 15px 0 30px}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus, .sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.sidebar__level-2--item[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{opacity:.65}.sidebar__level-0[_ngcontent-%COMP%]:hover, .sidebar__level-1[_ngcontent-%COMP%]:hover, .sidebar__level-2[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.sidebar__level-0.active[_ngcontent-%COMP%], .sidebar__level-1.active[_ngcontent-%COMP%], .sidebar__level-2.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.18)}.sidebar__fav[_ngcontent-%COMP%]{position:absolute;right:19px;top:3px}.menu--bottom[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]{display:block;padding:1rem;cursor:pointer}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]:hover{text-decoration:none}.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;background-color:transparent}.pane-title__name[_ngcontent-%COMP%]:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent;background-color:transparent}"]],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 sl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,2,{links:1}),o["\u0275qud"](603979776,3,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[3,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["Mouse speed"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/mouse-speed"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function al(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,4,{links:1}),o["\u0275qud"](603979776,5,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[5,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["LED brightness"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/led-brightness"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function ul(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,6,{links:1}),o["\u0275qud"](603979776,7,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[7,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["Configuration"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/configuration"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function cl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,8,{links:1}),o["\u0275qud"](603979776,9,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[9,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,1),(e()(),o["\u0275ted"](-1,null,["Fix configuration"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/restore-user-configuration"))},function(e,t){e(t,8,0,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href)})}function dl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"i",[["class","fa fa-star sidebar__fav"],["data-placement","bottom"],["data-toggle","tooltip"],["title","This is the default keymap which gets activated when powering the keyboard."]],[[1,"data-placement",0]],null,null,null,null)),o["\u0275did"](1,1589248,null,0,L,[o.ElementRef,P.c],{title:[0,"title"]},null)],function(e,t){e(t,1,0,"This is the default keymap which gets activated when powering the keyboard.")},function(e,t){e(t,0,0,o["\u0275nov"](t,1).placement)})}function pl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,16,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,13,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,12,{links:1}),o["\u0275qud"](603979776,13,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[13,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,2),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,dl)),o["\u0275did"](14,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/keymap",t.context.$implicit.abbreviation)),e(t,14,0,t.context.$implicit.isDefault)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function fl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,15,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,6,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Keymaps\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"keymap")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,pl)),o["\u0275did"](13,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,13,0,t.component.state.keymaps)},function(e,t){e(t,10,0,t.component.animation.keymap)})}function hl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](3,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,14,{links:1}),o["\u0275qud"](603979776,15,{linksWithHrefs:1}),o["\u0275pad"](6,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](9,671744,[[15,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](10,2),(e()(),o["\u0275ted"](11,null,["",""])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/macro",t.context.$implicit.id))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,o["\u0275nov"](t,9).target,o["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function yl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,19,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Macros\n "])),(e()(),o["\u0275eld"](6,0,null,null,3,"a",[["class","btn btn-default pull-right btn-sm"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.addMacro()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"macro")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](14,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,hl)),o["\u0275did"](17,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,17,0,t.component.state.macros)},function(e,t){var n=t.component;e(t,6,0,n.state.updatingFirmware),e(t,14,0,n.animation.macro)})}function ml(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,71,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](2,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Add-on modules\n "])),(e()(),o["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"addon")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,null,null,61,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](11,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Key cluster"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](13,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](14,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,16,{links:1}),o["\u0275qud"](603979776,17,{linksWithHrefs:1}),o["\u0275pad"](17,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,20).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](20,671744,[[17,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](21,2),(e()(),o["\u0275ted"](-1,null,["Key cluster"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackball"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](28,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](29,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,18,{links:1}),o["\u0275qud"](603979776,19,{linksWithHrefs:1}),o["\u0275pad"](32,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](34,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,35).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](35,671744,[[19,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](36,2),(e()(),o["\u0275ted"](-1,null,["Trackball"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](41,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Toucpad"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](43,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](44,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,20,{links:1}),o["\u0275qud"](603979776,21,{linksWithHrefs:1}),o["\u0275pad"](47,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](49,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,50).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](50,671744,[[21,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](51,2),(e()(),o["\u0275ted"](-1,null,["Touchpad"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](56,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackpoint"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](58,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](59,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,22,{links:1}),o["\u0275qud"](603979776,23,{linksWithHrefs:1}),o["\u0275pad"](62,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](64,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,65).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](65,671744,[[23,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](66,2),(e()(),o["\u0275ted"](-1,null,["Trackpoint"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,14,0,e(t,17,0,"active")),e(t,20,0,e(t,21,0,"/add-on","Key cluster")),e(t,29,0,e(t,32,0,"active")),e(t,35,0,e(t,36,0,"/add-on","Trackball")),e(t,44,0,e(t,47,0,"active")),e(t,50,0,e(t,51,0,"/add-on","Touchpad")),e(t,59,0,e(t,62,0,"active")),e(t,65,0,e(t,66,0,"/add-on","Trackpoint"))},function(e,t){var n=t.component;e(t,9,0,n.animation.addon),e(t,19,0,n.state.updatingFirmware,o["\u0275nov"](t,20).target,o["\u0275nov"](t,20).href),e(t,34,0,n.state.updatingFirmware,o["\u0275nov"](t,35).target,o["\u0275nov"](t,35).href),e(t,49,0,n.state.updatingFirmware,o["\u0275nov"](t,50).target,o["\u0275nov"](t,50).href),e(t,64,0,n.state.updatingFirmware,o["\u0275nov"](t,65).target,o["\u0275nov"](t,65).href)})}function gl(e){return o["\u0275vid"](2,[o["\u0275qud"](402653184,1,{deviceName:0}),(e()(),o["\u0275eld"](1,0,null,null,113,"ul",[["class","menu--top"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](3,0,null,null,63,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](5,0,null,null,8,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](7,0,null,null,0,"i",[["class","uhk-icon uhk-icon-0401-usb-stick rotate-right"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](9,0,[[1,0],["deviceName",1]],null,1,"input",[["cancelable",""],["class","pane-title__name"],["type","text"]],[[8,"readOnly",0]],[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var i=!0,r=e.component;return"focus"===t&&(i=!1!==o["\u0275nov"](e,10).onFocus()&&i),"keyup.escape"===t&&(i=!1!==o["\u0275nov"](e,10).onEscape()&&i),"change"===t&&(i=!1!==r.editDeviceName(n.target.value)&&i),"keyup.enter"===t&&(i=!1!==o["\u0275nov"](e,9).blur()&&i),"keyup"===t&&(i=!1!==r.calculateHeaderTextWidth(n.target.value)&&i),i},null,null)),o["\u0275did"](10,16384,null,0,ht,[o.ElementRef,o.Renderer],null,null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"device")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](15,0,null,null,50,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](17,0,null,null,38,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](19,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](21,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Device\n "])),(e()(),o["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"configuration")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](26,0,null,null,28,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,sl)),o["\u0275did"](29,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,al)),o["\u0275did"](32,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ul)),o["\u0275did"](35,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,cl)),o["\u0275did"](38,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](40,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](42,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](43,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,10,{links:1}),o["\u0275qud"](603979776,11,{linksWithHrefs:1}),o["\u0275pad"](46,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](48,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,49).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](49,671744,[[11,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](50,1),(e()(),o["\u0275ted"](-1,null,["Firmware"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,fl)),o["\u0275did"](58,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,yl)),o["\u0275did"](61,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,ml)),o["\u0275did"](64,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](68,0,null,null,45,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),o["\u0275did"](69,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,24,{links:1}),o["\u0275qud"](603979776,25,{linksWithHrefs:1}),o["\u0275pad"](72,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](74,0,null,null,5,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](76,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,[" Agent\n "])),(e()(),o["\u0275eld"](78,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggleHide(n,"agent")&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](81,0,null,null,31,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](83,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](85,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](86,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,26,{links:1}),o["\u0275qud"](603979776,27,{linksWithHrefs:1}),o["\u0275pad"](89,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](91,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,92).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](92,671744,[[27,4],[25,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](93,1),(e()(),o["\u0275ted"](-1,null,["Settings"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](98,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](100,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),o["\u0275did"](101,1720320,null,2,Z.n,[Z.m,o.ElementRef,o.Renderer2,o.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),o["\u0275qud"](603979776,28,{links:1}),o["\u0275qud"](603979776,29,{linksWithHrefs:1}),o["\u0275pad"](104,1),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](106,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==o["\u0275nov"](e,107).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i},null,null)),o["\u0275did"](107,671744,[[29,4],[25,4]],0,Z.o,[Z.m,Z.a,d.h],{routerLink:[0,"routerLink"]},null),o["\u0275pad"](108,1),(e()(),o["\u0275ted"](-1,null,["About"])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,29,0,!n.state.restoreUserConfiguration),e(t,32,0,!n.state.restoreUserConfiguration),e(t,35,0,!n.state.restoreUserConfiguration),e(t,38,0,n.state.restoreUserConfiguration),e(t,43,0,e(t,46,0,"active")),e(t,49,0,e(t,50,0,"/device/firmware")),e(t,58,0,!n.state.restoreUserConfiguration),e(t,61,0,!n.state.restoreUserConfiguration),e(t,64,0,n.state.showAddonMenu),e(t,69,0,e(t,72,0,"active")),e(t,86,0,e(t,89,0,"active")),e(t,92,0,e(t,93,0,"/settings")),e(t,101,0,e(t,104,0,"active")),e(t,107,0,e(t,108,0,"/about"))},function(e,t){var n=t.component;e(t,9,0,n.state.restoreUserConfiguration),e(t,15,0,n.animation.device),e(t,26,0,n.animation.configuration),e(t,48,0,n.state.updatingFirmware,o["\u0275nov"](t,49).target,o["\u0275nov"](t,49).href),e(t,81,0,n.animation.agent),e(t,91,0,n.state.updatingFirmware,o["\u0275nov"](t,92).target,o["\u0275nov"](t,92).href),e(t,106,0,n.state.updatingFirmware,o["\u0275nov"](t,107).target,o["\u0275nov"](t,107).href)})}var vl=n("MptX"),bl=function(){function e(){this.state=vl.a,this.clicked=new o.EventEmitter}return e.prototype.onClicked=function(){this.clicked.emit(this.state.action)},e}(),kl=o["\u0275crt"]({encapsulation:0,styles:[["button[_ngcontent-%COMP%]{min-width:150px}"]],data:{}});function _l(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-spin fa-spinner"]],null,null,null,null,null))],null,null)}function Al(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,4,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onClicked()&&i),i},null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275and"](16777216,null,null,1,null,_l)),o["\u0275did"](3,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),o["\u0275ted"](4,null,[" ","\n"])),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.state.showProgress)},function(e,t){var n=t.component;e(t,0,0,n.state.showProgress),e(t,4,0,n.state.text)})}var wl=n("EEr4"),Tl=function(){return function(e){Object.assign(this,e),void 0===e.id&&(this.id="ID_"+(new Date).getTime())}}(),Cl=function(){function e(){this.actionStream=new wl.Subject,this.actionQueue=[],this.isActionInProgress=!1}return e.prototype.push=function(e){this.actionQueue.push(e),this.tryToRunNextAction()},e.prototype.continue=function(){this.isActionInProgress=!1,this.tryToRunNextAction()},e.prototype.tryToRunNextAction=function(){this.isActionInProgress||0===this.actionQueue.length||(this.isActionInProgress=!0,this.actionStream.next(this.actionQueue.shift()))},e}(),Ol=function(){return function(e){void 0===e&&(e={}),this.animations={enabled:!0,hide:{easing:"ease",offset:50,preset:"fade",speed:300},overlap:150,shift:{easing:"ease",speed:300},show:{easing:"ease",preset:"slide",speed:300}},this.behaviour={autoHide:7e3,onClick:!1,onMouseover:"pauseAutoHide",showDismissButton:!0,stacking:4},this.position={horizontal:{distance:12,position:"left"},vertical:{distance:12,gap:10,position:"bottom"}},this.theme="material",void 0!==e.theme&&(this.theme=e.theme),void 0!==e.animations&&(void 0!==e.animations.enabled&&(this.animations.enabled=e.animations.enabled),void 0!==e.animations.overlap&&(this.animations.overlap=e.animations.overlap),void 0!==e.animations.hide&&Object.assign(this.animations.hide,e.animations.hide),void 0!==e.animations.shift&&Object.assign(this.animations.shift,e.animations.shift),void 0!==e.animations.show&&Object.assign(this.animations.show,e.animations.show)),void 0!==e.behaviour&&Object.assign(this.behaviour,e.behaviour),void 0!==e.position&&(void 0!==e.position.horizontal&&Object.assign(this.position.horizontal,e.position.horizontal),void 0!==e.position.vertical&&Object.assign(this.position.vertical,e.position.vertical))}}(),xl=function(){function e(e,t){this.queueService=e,this.config=t}return e.prototype.getConfig=function(){return this.config},e.prototype.show=function(e){this.queueService.push({payload:e,type:"SHOW"})},e.prototype.hide=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.hideNewest=function(){this.queueService.push({type:"HIDE_NEWEST"})},e.prototype.hideOldest=function(){this.queueService.push({type:"HIDE_OLDEST"})},e.prototype.hideAll=function(){this.queueService.push({type:"HIDE_ALL"})},e.prototype.notify=function(e,t,n){var i={message:t,type:e};void 0!==n&&(i.id=n),this.show(i)},e}(),Sl=function(){function e(e,t,n){this.changeDetector=e,this.queueService=t,this.config=n.getConfig(),this.notifications=[]}return e.prototype.ngOnInit=function(){var e=this;this.queueServiceSubscription=this.queueService.actionStream.subscribe(function(t){e.handleAction(t).then(function(){e.queueService.continue()})})},e.prototype.ngOnDestroy=function(){this.queueServiceSubscription&&this.queueServiceSubscription.unsubscribe()},e.prototype.identifyNotification=function(e,t){return t.id},e.prototype.onNotificationDismiss=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.onNotificationReady=function(e){var t=this.notifications[this.notifications.length-1];t.component=e,this.continueHandleShowAction(t)},e.prototype.handleAction=function(e){switch(e.type){case"SHOW":return this.handleShowAction(e);case"HIDE":return this.handleHideAction(e);case"HIDE_OLDEST":return this.handleHideOldestAction(e);case"HIDE_NEWEST":return this.handleHideNewestAction(e);case"HIDE_ALL":return this.handleHideAllAction(e);default:return new Promise(function(e,t){e()})}},e.prototype.handleShowAction=function(e){var t=this;return new Promise(function(n,i){t.tempPromiseResolver=n,t.addNotificationToList(new Tl(e.payload))})},e.prototype.continueHandleShowAction=function(e){var t=this,n=this.notifications.length;if(1===n)e.component.show().then(this.tempPromiseResolver);else if(!1===this.config.behaviour.stacking||this.config.behaviour.stacking<2)this.notifications[0].component.hide().then(function(){t.removeNotificationFromList(t.notifications[0]),e.component.show().then(t.tempPromiseResolver)});else{var i=[];if(n>this.config.behaviour.stacking){var o=this.notifications.slice(1,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(i.push(this.notifications[0].component.hide()),setTimeout(function(){i.push(t.shiftNotifications(o,e.component.getHeight(),!0))},this.config.animations.hide.speed-this.config.animations.overlap),setTimeout(function(){i.push(e.component.show())},this.config.animations.hide.speed+this.config.animations.shift.speed-this.config.animations.overlap)):i.push(new Promise(function(n,i){t.notifications[0].component.hide().then(function(){t.shiftNotifications(o,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})})):(i.push(this.notifications[0].component.hide()),i.push(this.shiftNotifications(o,e.component.getHeight(),!0)),i.push(e.component.show()))}else{var r=this.notifications.slice(0,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(i.push(this.shiftNotifications(r,e.component.getHeight(),!0)),setTimeout(function(){i.push(e.component.show())},this.config.animations.shift.speed-this.config.animations.overlap)):i.push(new Promise(function(n,i){t.shiftNotifications(r,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})):(i.push(this.shiftNotifications(r,e.component.getHeight(),!0)),i.push(e.component.show()))}Promise.all(i).then(function(){n>t.config.behaviour.stacking&&t.removeNotificationFromList(t.notifications[0]),t.tempPromiseResolver()})}},e.prototype.handleHideAction=function(e){var t=this;return new Promise(function(n,i){var o=[],r=t.findNotificationById(e.payload);if(void 0!==r){var l=t.findNotificationIndexById(e.payload);if(void 0!==l){var s=t.notifications.slice(0,l);s.length>0?t.config.animations.enabled&&t.config.animations.hide.speed>0?!1!==t.config.animations.overlap&&t.config.animations.overlap>0?(o.push(r.component.hide()),setTimeout(function(){o.push(t.shiftNotifications(s,r.component.getHeight(),!1))},t.config.animations.hide.speed-t.config.animations.overlap)):r.component.hide().then(function(){o.push(t.shiftNotifications(s,r.component.getHeight(),!1))}):(o.push(r.component.hide()),o.push(t.shiftNotifications(s,r.component.getHeight(),!1))):o.push(r.component.hide()),Promise.all(o).then(function(){t.removeNotificationFromList(r),n()})}else n()}else n()})},e.prototype.handleHideOldestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[0].id,this.handleHideAction(e))},e.prototype.handleHideNewestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[this.notifications.length-1].id,this.handleHideAction(e))},e.prototype.handleHideAllAction=function(e){var t=this;return new Promise(function(e,n){var i=t.notifications.length;if(0!==i)if(t.config.animations.enabled&&t.config.animations.hide.speed>0&&!1!==t.config.animations.hide.offset&&t.config.animations.hide.offset>0)for(var o=function(n){setTimeout(function(){t.notifications[n].component.hide().then(function(){("top"===t.config.position.vertical.position&&0===n||"bottom"===t.config.position.vertical.position&&n===i-1)&&(t.removeAllNotificationsFromList(),e())})},t.config.animations.hide.offset*("top"===t.config.position.vertical.position?i-1:n))},r=i-1;r>=0;r--)o(r);else{var l=[];for(r=i-1;r>=0;r--)l.push(t.notifications[r].component.hide());Promise.all(l).then(function(){t.removeAllNotificationsFromList(),e()})}else e()})},e.prototype.shiftNotifications=function(e,t,n){return new Promise(function(i,o){if(0!==e.length){for(var r=[],l=e.length-1;l>=0;l--)r.push(e[l].component.shift(t,n));Promise.all(r).then(i)}else i()})},e.prototype.addNotificationToList=function(e){this.notifications.push(e),this.changeDetector.markForCheck()},e.prototype.removeNotificationFromList=function(e){this.notifications=this.notifications.filter(function(t){return t.component!==e.component}),this.changeDetector.markForCheck()},e.prototype.removeAllNotificationsFromList=function(){this.notifications=[],this.changeDetector.markForCheck()},e.prototype.findNotificationById=function(e){return this.notifications.find(function(t){return t.id===e})},e.prototype.findNotificationIndexById=function(e){var t=this.notifications.findIndex(function(t){return t.id===e});return-1!==t?t:void 0},e}(),El={hide:function(e){return{from:{opacity:"1"},to:{opacity:"0"}}},show:function(e){return{from:{opacity:"0"},to:{opacity:"1"}}}},Ml={hide:function(e){var t,n,i=e.component.getConfig(),o=e.component.getShift();return"left"===i.position.horizontal.position?(t={transform:"translate3d( 0, "+o+"px, 0 )"},n={transform:"translate3d( calc( -100% - "+i.position.horizontal.distance+"px - 10px ), "+o+"px, 0 )"}):"right"===i.position.horizontal.position?(t={transform:"translate3d( 0, "+o+"px, 0 )"},n={transform:"translate3d( calc( 100% + "+i.position.horizontal.distance+"px + 10px ), "+o+"px, 0 )"}):(t={transform:"translate3d( -50%, "+o+"px, 0 )"},n={transform:"translate3d( -50%, "+("top"===i.position.vertical.position?"calc( -100% - "+i.position.horizontal.distance+"px - 10px )":"calc( 100% + "+i.position.horizontal.distance+"px + 10px )")+", 0 )"}),{from:t,to:n}},show:function(e){var t,n,i=e.component.getConfig();return"left"===i.position.horizontal.position?(t={transform:"translate3d( calc( -100% - "+i.position.horizontal.distance+"px - 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):"right"===i.position.horizontal.position?(t={transform:"translate3d( calc( 100% + "+i.position.horizontal.distance+"px + 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):(t={transform:"translate3d( -50%, "+("top"===i.position.vertical.position?"calc( -100% - "+i.position.horizontal.distance+"px - 10px )":"calc( 100% + "+i.position.horizontal.distance+"px + 10px )")+", 0 )"},n={transform:"translate3d( -50%, 0, 0 )"}),{from:t,to:n}}},Pl=function(){function e(){this.animationPresets={fade:El,slide:Ml}}return e.prototype.getAnimationData=function(e,t){var n,i,o;return"show"===e?(n=this.animationPresets[t.component.getConfig().animations.show.preset].show(t),i=t.component.getConfig().animations.show.speed,o=t.component.getConfig().animations.show.easing):(n=this.animationPresets[t.component.getConfig().animations.hide.preset].hide(t),i=t.component.getConfig().animations.hide.speed,o=t.component.getConfig().animations.hide.easing),{keyframes:[n.from,n.to],options:{duration:i,easing:o,fill:"forwards"}}},e}(),Il=function(){function e(){this.now=0,this.remaining=0}return e.prototype.start=function(e){var t=this;return new Promise(function(n,i){t.remaining=e,t.finishPromiseResolver=n,t.continue()})},e.prototype.pause=function(){clearTimeout(this.timerId),this.remaining-=(new Date).getTime()-this.now},e.prototype.continue=function(){var e=this;this.now=(new Date).getTime(),this.timerId=setTimeout(function(){e.finish()},this.remaining)},e.prototype.stop=function(){clearTimeout(this.timerId),this.remaining=0},e.prototype.finish=function(){this.finishPromiseResolver()},e}(),Rl=function(){function e(e,t,n,i,r){this.config=n.getConfig(),this.ready=new o.EventEmitter,this.dismiss=new o.EventEmitter,this.timerService=i,this.animationService=r,this.renderer=t,this.element=e.nativeElement,this.elementShift=0}return e.prototype.ngAfterViewInit=function(){this.setup(),this.elementHeight=this.element.offsetHeight,this.elementWidth=this.element.offsetWidth,this.ready.emit(this)},e.prototype.getConfig=function(){return this.config},e.prototype.getHeight=function(){return this.elementHeight},e.prototype.getWidth=function(){return this.elementWidth},e.prototype.getShift=function(){return this.elementShift},e.prototype.show=function(){var e=this;return new Promise(function(t,n){if(e.config.animations.enabled&&e.config.animations.show.speed>0){for(var i=e.animationService.getAnimationData("show",e.notification),o=Object.keys(i.keyframes[0]),r=o.length-1;r>=0;r--)e.renderer.setStyle(e.element,o[r],i.keyframes[0][o[r]]);e.renderer.setStyle(e.element,"visibility","visible"),e.element.animate(i.keyframes,i.options).onfinish=function(){e.startAutoHideTimer(),t()}}else e.renderer.setStyle(e.element,"visibility","visible"),e.startAutoHideTimer(),t()})},e.prototype.hide=function(){var e=this;return new Promise(function(t,n){if(e.stopAutoHideTimer(),e.config.animations.enabled&&e.config.animations.hide.speed>0){var i=e.animationService.getAnimationData("hide",e.notification);e.element.animate(i.keyframes,i.options).onfinish=function(){t()}}else t()})},e.prototype.shift=function(e,t){var n=this;return new Promise(function(i,o){var r;r="top"===n.config.position.vertical.position&&t||"bottom"===n.config.position.vertical.position&&!t?n.elementShift+e+n.config.position.vertical.gap:n.elementShift-e-n.config.position.vertical.gap;var l="middle"===n.config.position.horizontal.position?"-50%":"0";if(n.config.animations.enabled&&n.config.animations.shift.speed>0){var s={keyframes:[{transform:"translate3d( "+l+", "+n.elementShift+"px, 0 )"},{transform:"translate3d( "+l+", "+r+"px, 0 )"}],options:{duration:n.config.animations.shift.speed,easing:n.config.animations.shift.easing,fill:"forwards"}};n.elementShift=r,n.element.animate(s.keyframes,s.options).onfinish=function(){i()}}else n.renderer.setStyle(n.element,"transform","translate3d( "+l+", "+r+"px, 0 )"),n.elementShift=r,i()})},e.prototype.onClickDismiss=function(){this.dismiss.emit(this.notification.id)},e.prototype.onNotificationMouseover=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.pauseAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.stopAutoHideTimer()},e.prototype.onNotificationMouseout=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.continueAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.startAutoHideTimer()},e.prototype.onNotificationClick=function(){"hide"===this.config.behaviour.onClick&&this.onClickDismiss()},e.prototype.startAutoHideTimer=function(){var e=this;!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.start(this.config.behaviour.autoHide).then(function(){e.onClickDismiss()})},e.prototype.pauseAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.pause()},e.prototype.continueAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.continue()},e.prototype.stopAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.stop()},e.prototype.setup=function(){"left"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"left",this.config.position.horizontal.distance+"px"):"right"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"right",this.config.position.horizontal.distance+"px"):(this.renderer.setStyle(this.element,"left","50%"),this.renderer.setStyle(this.element,"transform","translate3d( -50%, 0, 0 )")),this.renderer.setStyle(this.element,"top"===this.config.position.vertical.position?"top":"bottom",this.config.position.vertical.distance+"px"),this.renderer.addClass(this.element,"notifier__notification--"+this.notification.type),this.renderer.addClass(this.element,"notifier__notification--"+this.config.theme)},e}(),Nl=new o.InjectionToken("[angular-notifier] Notifier Options"),Dl=new o.InjectionToken("[anuglar-notifier] Notifier Config");function jl(e){return new Ol(e)}var Ul=function(){function e(){}return e.withConfig=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:Nl,useValue:t},{deps:[Nl],provide:Dl,useFactory:jl}]}},e}(),Ll=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Vl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,3,"li",[["class","notifier__container-list"]],null,null,null,null,null)),(e()(),o["\u0275eld"](1,0,null,null,2,"notifier-notification",[["class","notifier__notification"]],null,[[null,"dismiss"],[null,"ready"],[null,"click"],[null,"mouseout"],[null,"mouseover"]],function(e,t,n){var i=!0,r=e.component;return"click"===t&&(i=!1!==o["\u0275nov"](e,3).onNotificationClick()&&i),"mouseout"===t&&(i=!1!==o["\u0275nov"](e,3).onNotificationMouseout()&&i),"mouseover"===t&&(i=!1!==o["\u0275nov"](e,3).onNotificationMouseover()&&i),"dismiss"===t&&(i=!1!==r.onNotificationDismiss(n)&&i),"ready"===t&&(i=!1!==r.onNotificationReady(n)&&i),i},Hl,Kl)),o["\u0275prd"](512,null,Il,Il,[]),o["\u0275did"](3,4243456,null,0,Rl,[o.ElementRef,o.Renderer2,xl,Il,Pl],{notification:[0,"notification"]},{ready:"ready",dismiss:"dismiss"})],function(e,t){e(t,3,0,t.context.$implicit)},null)}function Fl(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),o["\u0275and"](16777216,null,null,1,null,Vl)),o["\u0275did"](2,802816,null,0,d.j,[o.ViewContainerRef,o.TemplateRef,o.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,2,0,n.notifications,n.identifyNotification)},null)}var Kl=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Bl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"button",[["class","notifier__notification-button"],["title","dismiss"],["type","button"]],null,[[null,"click"]],function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.onClickDismiss()&&i),i},null,null)),(e()(),o["\u0275eld"](1,0,null,null,1,":svg:svg",[["class","notifier__notification-button-icon"],["height","20"],["viewBox","0 0 24 24"],["width","20"]],null,null,null,null,null)),(e()(),o["\u0275eld"](2,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"]],null,null,null,null,null))],null,null)}function Hl(e){return o["\u0275vid"](2,[(e()(),o["\u0275eld"](0,0,null,null,1,"p",[["class","notifier__notification-message"]],null,null,null,null,null)),(e()(),o["\u0275ted"](1,null,["",""])),(e()(),o["\u0275and"](16777216,null,null,1,null,Bl)),o["\u0275did"](3,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,3,0,t.component.config.behaviour.showDismissButton)},function(e,t){e(t,1,0,t.component.notification.message)})}var Wl=o["\u0275crt"]({encapsulation:2,styles:[["main-app{min-height:100%;height:100%;width:100%;display:block;position:relative}.save-to-keyboard-button{position:fixed;bottom:15px;right:15px}"]],data:{animation:[{type:7,name:"showSaveToKeyboardButton",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"translateY(100%)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(0)"},offset:null},timings:"400ms ease-in-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(100%)"},offset:null},timings:"400ms ease-in-out"}],options:null}],options:{}}]}});function ql(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"app-update-available",[],null,[[null,"updateApp"],[null,"doNotUpdateApp"]],function(e,t,n){var i=!0,o=e.component;return"updateApp"===t&&(i=!1!==o.updateApp()&&i),"doNotUpdateApp"===t&&(i=!1!==o.doNotUpdateApp()&&i),i},ol,il)),o["\u0275did"](1,49152,null,0,nl,[],null,{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"}),(e()(),o["\u0275ted"](-1,null,["\n"]))],null,null)}function zl(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"side-menu",[],null,null,null,gl,ll)),o["\u0275did"](1,1294336,null,0,rl,[s.m,o.Renderer2,o.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)}function $l(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,2,"progress-button",[["class","save-to-keyboard-button"]],[[24,"@showSaveToKeyboardButton",0]],[[null,"clicked"]],function(e,t,n){var i=!0;return"clicked"===t&&(i=!1!==e.component.clickedOnProgressButton(n)&&i),i},Al,kl)),o["\u0275did"](1,49152,null,0,bl,[],{state:[0,"state"]},{clicked:"clicked"}),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.saveToKeyboardState$)))},function(e,t){e(t,0,0,void 0)})}function Gl(e){return o["\u0275vid"](0,[(e()(),o["\u0275and"](16777216,null,null,2,null,ql)),o["\u0275did"](1,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,zl)),o["\u0275did"](5,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](8,0,null,null,4,"div",[["class","main-content"],["id","main-content"]],null,null,null,null,null)),(e()(),o["\u0275ted"](-1,null,["\n "])),(e()(),o["\u0275eld"](10,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),o["\u0275did"](11,212992,null,0,Z.q,[Z.b,o.ViewContainerRef,o.ComponentFactoryResolver,[8,null],o.ChangeDetectorRef],null,null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275eld"](14,0,null,null,1,"notifier-container",[["class","notifier__container"]],null,null,null,Fl,Ll)),o["\u0275did"](15,245760,null,0,Sl,[o.ChangeDetectorRef,Cl,xl],null,null),(e()(),o["\u0275ted"](-1,null,["\n"])),(e()(),o["\u0275and"](16777216,null,null,2,null,$l)),o["\u0275did"](18,16384,null,0,d.k,[o.ViewContainerRef,o.TemplateRef],{ngIf:[0,"ngIf"]},null),o["\u0275pid"](131072,d.b,[o.ChangeDetectorRef]),(e()(),o["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,o["\u0275unv"](t,1,0,o["\u0275nov"](t,2).transform(n.showUpdateAvailable$))),e(t,5,0,o["\u0275unv"](t,5,0,o["\u0275nov"](t,6).transform(n.deviceConfigurationLoaded$))),e(t,11,0),e(t,15,0),e(t,18,0,o["\u0275unv"](t,18,0,o["\u0275nov"](t,19).transform(n.saveToKeyboardState$)).showButton)},null)}var Yl=o["\u0275ccf"]("main-app",c,function(e){return o["\u0275vid"](0,[(e()(),o["\u0275eld"](0,0,null,null,1,"main-app",[],null,null,null,Gl,Wl)),o["\u0275did"](1,49152,null,0,c,[s.m],null,null)],null,null)},{},{},[]),Ql=function(){},Jl="*";function Zl(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function Xl(e){return{type:6,styles:e,offset:null}}function es(e){Promise.resolve(null).then(e)}var ts=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;es(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}(),ns=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,i=0,o=0,r=this.players.length;0==r?es(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==r&&t._onFinish()}),e.onDestroy(function(){++i==r&&t._onDestroy()}),e.onStart(function(){++o==r&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),is="!";function os(e){switch(e.length){case 0:return new ts;case 1:return e[0];default:return new ns(e)}}function rs(e,t,n,i,o,r){void 0===o&&(o={}),void 0===r&&(r={});var l=[],s=[],a=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==a,c=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,l),s){case is:s=o[n];break;case Jl:s=r[n];break;default:s=t.normalizeStyleValue(n,i,s,l)}c[i]=s}),i||s.push(c),u=c,a=n}),l.length)throw new Error("Unable to animate due to the following errors:\n - "+l.join("\n - "));return s}function ls(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&ss(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return i(n&&ss(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return i(n&&ss(n,"destroy",e.totalTime))})}}function ss(e,t,n){var i=as(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),o=e._data;return null!=o&&(i._data=o),i}function as(e,t,n,i,o,r){return void 0===o&&(o=""),void 0===r&&(r=0),{element:e,triggerName:t,fromState:n,toState:i,phaseName:o,totalTime:r}}function us(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function cs(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var ds=function(e,t){return!1},ps=function(e,t){return!1},fs=function(e,t,n){return[]};if("undefined"!=typeof Element){if(ds=function(e,t){return e.contains(t)},Element.prototype.matches)ps=function(e,t){return e.matches(t)};else{var hs=Element.prototype,ys=hs.matchesSelector||hs.mozMatchesSelector||hs.msMatchesSelector||hs.oMatchesSelector||hs.webkitMatchesSelector;ys&&(ps=function(e,t){return ys.apply(e,[t])})}fs=function(e,t,n){var i=[];if(n)i.push.apply(i,e.querySelectorAll(t));else{var o=e.querySelector(t);o&&i.push(o)}return i}}var ms=null,gs=!1;function vs(e){ms||(ms=bs()||{},gs=!!ms.style&&"WebkitAppearance"in ms.style);var t=!0;return ms.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in ms.style)&&gs&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in ms.style),t}function bs(){return"undefined"!=typeof document?document.body:null}var ks=ps,_s=ds,As=fs,ws=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return vs(e)},e.prototype.matchesElement=function(e,t){return ks(e,t)},e.prototype.containsElement=function(e,t){return _s(e,t)},e.prototype.query=function(e,t,n){return As(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,i,o,r){return void 0===r&&(r=[]),new ts},e}(),Ts=function(){function e(){}return e.NOOP=new ws,e}(),Cs=1e3;function Os(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:xs(parseFloat(t[1]),t[2])}function xs(e,t){switch(t){case"s":return e*Cs;default:return e}}function Ss(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,o=0,r="";if("string"==typeof e){var l=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};i=xs(parseFloat(l[1]),l[2]);var s=l[3];null!=s&&(o=xs(Math.floor(parseFloat(s)),l[4]));var a=l[5];a&&(r=a)}else i=e;if(!n){var u=!1,c=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),o<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:i,delay:o,easing:r}}(e,t,n)}function Es(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Ms(e,t,n){if(void 0===n&&(n={}),t)for(var i in e)n[i]=e[i];else Es(e,n);return n}function Ps(e,t){e.style&&Object.keys(t).forEach(function(n){var i=Vs(n);e.style[i]=t[n]})}function Is(e,t){e.style&&Object.keys(t).forEach(function(t){var n=Vs(t);e.style[n]=""})}function Rs(e){return Array.isArray(e)?1==e.length?e[0]:Zl(e):e}var Ns=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ds(e){var t=[];if("string"==typeof e){for(var n=e.toString(),i=void 0;i=Ns.exec(n);)t.push(i[1]);Ns.lastIndex=0}return t}function js(e,t,n){var i=e.toString(),o=i.replace(Ns,function(e,i){var o=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),o=""),o.toString()});return o==i?e:o}function Us(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Ls=/-+([a-z0-9])/g;function Vs(e){return e.replace(Ls,function(){for(var e=[],t=0;t *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var o=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var r=o[1],l=o[2],s=o[3];t.push(Ws(r,s)),"<"!=l[0]||r==Ks&&s==Ks||t.push(Ws(s,r))}(e,o,i)}):o.push(n),o),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:Qs(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Fs(n,e,t)}),options:Qs(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,i=t.currentTime,o=0,r=e.steps.map(function(e){t.currentTime=i;var r=Fs(n,e,t);return o=Math.max(o,t.currentTime),r});return t.currentTime=o,{type:3,steps:r,options:Qs(e.options)}},e.prototype.visitAnimate=function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Js(Ss(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var o=Js(0,0,"");return o.dynamic=!0,o.strValue=i,o}return Js((n=n||Ss(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var o=e.styles?e.styles:Xl({});if(5==o.type)n=this.visitKeyframes(o,t);else{var r=e.styles,l=!1;if(!r){l=!0;var s={};i.easing&&(s.easing=i.easing),r=Xl(s)}t.currentTime+=i.duration+i.delay;var a=this.visitStyle(r,t);a.isEmptyStep=l,n=a}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==Jl?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var i=!1,o=null;return n.forEach(function(e){if(Ys(e)){var t=e,n=t.easing;if(n&&(o=n,delete t.easing),!i)for(var r in t)if(t[r].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,i=t.currentAnimateTimings,o=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var l,s,a,u=t.collectedStyles[t.currentQuerySelector],c=u[i],d=!0;c&&(r!=o&&r>=c.startTime&&o<=c.endTime&&(t.errors.push('The CSS property "'+i+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+r+'ms" and "'+o+'ms"'),d=!1),r=c.startTime),d&&(u[i]={startTime:r,endTime:o}),t.options&&(l=t.errors,s=t.options.params||{},(a=Ds(e[i])).length&&a.forEach(function(e){s.hasOwnProperty(e)||l.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var o=0,r=[],l=!1,s=!1,a=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Ys(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Ys(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=u&&(o++,c=i.offset=u),s=s||c<0||c>1,l=l||c0&&o0?o==p?1:d*o:r[o],s=l*y;t.currentTime=f+h.delay+s,h.duration=s,n._validateStyleAst(e,t),e.offset=l,i.styles.push(e)}),i},e.prototype.visitReference=function(e,t){return{type:8,animation:Fs(this,Rs(e.animation),t),options:Qs(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:Qs(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Qs(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var o=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(qs,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),r=o[0],l=o[1];t.currentQuerySelector=n.length?n+" "+r:r,us(t.collectedStyles,t.currentQuerySelector,{});var s=Fs(this,Rs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:l,animation:s,originalSelector:e.selector,options:Qs(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"}:Ss(e.timings,t.errors,!0);return{type:12,animation:Fs(this,Rs(e.animation),t),timings:n,options:null}},e}(),Gs=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 Ys(e){return!Array.isArray(e)&&"object"==typeof e}function Qs(e){var t;return e?(e=Es(e)).params&&(e.params=(t=e.params)?Es(t):null):e={},e}function Js(e,t,n){return{duration:e,delay:t,easing:n}}function Zs(e,t,n,i,o,r,l,s){return void 0===l&&(l=null),void 0===s&&(s=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:l,subTimeline:s}}var Xs=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),ea=new RegExp(":enter","g"),ta=new RegExp(":leave","g");function na(e,t,n,i,o,r,l,s,a,u){return void 0===r&&(r={}),void 0===l&&(l={}),void 0===u&&(u=[]),(new ia).buildKeyframes(e,t,n,i,o,r,l,s,a,u)}var ia=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,i,o,r,l,s,a,u){void 0===u&&(u=[]),a=a||new Xs;var c=new ra(e,t,a,i,o,u,[]);c.options=s,c.currentTimeline.setStyles([r],null,c.errors,s),Fs(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(l).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([l],null,c.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[Zs(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),o=t.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);o!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var i=t.currentTimeline.currentTime,o=null!=n.duration?Os(n.duration):null,r=null!=n.delay?Os(n.delay):null;return 0!==o&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,o,r);i=Math.max(i,n.duration+n.delay)}),i},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Fs(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,i=t.subContextCount,o=t,r=e.options;if(r&&(r.params||r.delay)&&((o=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=oa);var l=Os(r.delay);o.delayNextStep(l)}e.steps.length&&(e.steps.forEach(function(e){return Fs(n,e,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,i=[],o=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Os(e.options.delay):0;e.steps.forEach(function(l){var s=t.createSubContext(e.options);r&&s.delayNextStep(r),Fs(n,l,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(o),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return Ss(t.params?js(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,o=n.duration,r=t.createSubContext().currentTimeline;r.easing=n.easing,e.styles.forEach(function(e){r.forwardTime((e.offset||0)*o),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(i+o),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,i=t.currentTimeline.currentTime,o=e.options||{},r=o.delay?Os(o.delay):0;r&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=oa);var l=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=s.length;var a=null;s.forEach(function(i,o){t.currentQueryIndex=o;var s=t.createSubContext(e.options,i);r&&s.delayNextStep(r),i===t.element&&(a=s.currentTimeline),Fs(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,i=t.currentTimeline,o=e.timings,r=Math.abs(o.duration),l=r*(t.currentQueryTotal-1),s=r*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":s=l-s;break;case"full":s=n.currentStaggerTime}var a=t.currentTimeline;s&&a.delayNextStep(s);var u=a.currentTime;Fs(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)},e}(),oa={},ra=function(){function e(e,t,n,i,o,r,l,s){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=o,this.errors=r,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=oa,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new la(this._driver,t,0),l.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var i=e,o=this.options;null!=i.duration&&(o.duration=Os(i.duration)),null!=i.delay&&(o.delay=Os(i.delay));var r=i.params;if(r){var l=o.params;l||(l=this.options.params={}),Object.keys(r).forEach(function(e){t&&l.hasOwnProperty(e)||(l[e]=js(r[e],l,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,i){void 0===t&&(t=null);var o=n||this.element,r=new e(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=oa,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},o=new sa(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,i,o,r){var l=[];if(i&&l.push(this.element),e.length>0){e=(e=e.replace(ea,"."+this._enterClassName)).replace(ta,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),l.push.apply(l,s)}return o||0!=l.length||r.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),l},e}(),la=function(){function e(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||Jl,t._currentKeyframe[e]=Jl}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,i){var o=this;t&&(this._previousKeyframe.easing=t);var r=i&&i.params||{},l=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=Jl}):Ms(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(l).forEach(function(e){var t=js(l[e],r,n);o._pendingStyles[e]=t,o._localTimelineStyles.hasOwnProperty(e)||(o._backFill[e]=o._globalTimelineStyles.hasOwnProperty(e)?o._globalTimelineStyles[e]:Jl),o._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],o=e._styleSummary[n];(!i||o.time>i.time)&&t._updateStyle(n,o.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(r,l){var s=Ms(r,!0);Object.keys(s).forEach(function(e){var i=s[e];i==is?t.add(e):i==Jl&&n.add(e)}),i||(s.offset=l/e.duration),o.push(s)});var r=t.size?Us(t.values()):[],l=n.size?Us(n.values()):[];if(i){var s=o[0],a=Es(s);s.offset=0,a.offset=1,o=[s,a]}return Zs(this.element,o,r,l,this.duration,this.startTime,this.easing,!1)},e}(),sa=function(e){function t(t,n,i,o,r,l,s){void 0===s&&(s=!1);var a=e.call(this,t,n,l.delay)||this;return a.element=n,a.keyframes=i,a.preStyleProps=o,a.postStyleProps=r,a._stretchStartingKeyframe=s,a.timings={duration:l.duration,delay:l.delay,easing:l.easing},a}return Object(hi.__extends)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,o=t.easing;if(this._stretchStartingKeyframe&&n){var r=[],l=i+n,s=n/l,a=Ms(e[0],!1);a.offset=0,r.push(a);var u=Ms(e[0],!1);u.offset=aa(s),r.push(u);for(var c=e.length-1,d=1;d<=c;d++){var p=Ms(e[d],!1);p.offset=aa((n+p.offset*i)/l),r.push(p)}i=l,n=0,o="",e=r}return Zs(this.element,e,this.preStyleProps,this.postStyleProps,i,n,o,!0)},t}(la);function aa(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var ua=function(){},ca=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(hi.__extends)(t,e),t.prototype.normalizePropertyName=function(e,t){return Vs(e)},t.prototype.normalizeStyleValue=function(e,t,n,i){var o="",r=n.toString().trim();if(da[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&i.push("Please provide a CSS unit value for "+e+":"+n)}return r+o},t}(ua),da=function(e){var t={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(e){return t[e]=!0}),t}();function pa(e,t,n,i,o,r,l,s,a,u,c,d){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:r,toState:i,toStyles:l,timelines:s,queriedElements:a,preStyleProps:u,postStyleProps:c,errors:d}}var fa={},ha=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return function(e,t,n){return e.some(function(e){return e(t,n)})}(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var i=this._stateStyles["*"],o=this._stateStyles[e],r=i?i.buildStyles(t,n):{};return o?o.buildStyles(t,n):r},e.prototype.build=function(e,t,n,i,o,r,l,s,a){var u=[],c=this.ast.options&&this.ast.options.params||fa,d=this.buildStyles(n,l&&l.params||fa,u),p=s&&s.params||fa,f=this.buildStyles(i,p,u),h=new Set,y=new Map,m=new Map,g="void"===i,v={params:Object(hi.__assign)({},c,p)},b=na(e,t,this.ast.animation,o,r,d,f,v,a,u);if(u.length)return pa(t,this._triggerName,n,i,g,d,f,[],[],y,m,u);b.forEach(function(e){var n=e.element,i=us(y,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var o=us(m,n,{});e.postStyleProps.forEach(function(e){return o[e]=!0}),n!==t&&h.add(n)});var k=Us(h.values());return pa(t,this._triggerName,n,i,g,d,f,b,k,y,m)},e}(),ya=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},i=Es(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var r=o[e];r.length>1&&(r=js(r,i,t)),n[e]=r})}}),n},e}(),ma=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new ya(e.style,e.options&&e.options.params||{})}),ga(this.states,"true","1"),ga(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new ha(e,t,n.states))}),this.fallbackTransition=new ha(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function ga(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var va=new Xs,ba=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],i=zs(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i},e.prototype._buildPlayer=function(e,t,n){var i=e.element,o=rs(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var i=this;void 0===n&&(n={});var o,r=[],l=this._animations[e],s=new Map;if(l?(o=na(this._driver,t,l,"ng-enter","ng-leave",{},{},n,va,r)).forEach(function(e){var t=us(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,Jl)})});var a=os(o.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(function(){return i.destroy(e)}),this.players.push(a),a},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,i){var o=as(t,"","","");return ls(this._getPlayer(e),n,o,i),function(){}},e.prototype.command=function(e,t,n,i){if("register"!=n)if("create"!=n){var o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])},e}(),ka=[],_a={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},Aa={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},wa="__ng_removed",Ta=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var i=Es(e);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),Ca=new Ta("void"),Oa=new Ta("DELETED"),xa=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,Da(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,i){var o,r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var l=us(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};l.push(s);var a=us(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Da(e,"ng-trigger"),Da(e,"ng-trigger-"+t),a[t]=Ca),function(){r._engine.afterFlush(function(){var e=l.indexOf(s);e>=0&&l.splice(e,1),r._triggers[t]||delete a[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,i){var o=this;void 0===i&&(i=!0);var r=this._getTrigger(t),l=new Ea(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Da(e,"ng-trigger"),Da(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var a=s[t],u=new Ta(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),s[t]=u,a){if(a===Oa)return l}else a=Ca;if("void"===u.value||a.value!==u.value){var c=us(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==o.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=r.matchTransition(a.value,u.value),p=!1;if(!d){if(!i)return;d=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:a,toState:u,player:l,isFallbackTransition:p}),p||(Da(e,"ng-animate-queued"),l.onStart(function(){ja(e,"ng-animate-queued")})),l.onDone(function(){var t=o.players.indexOf(l);t>=0&&o.players.splice(t,1);var n=o._engine.playersByElement.get(e);if(n){var i=n.indexOf(l);i>=0&&n.splice(i,1)}}),this.players.push(l),c.push(l),l}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var o=0;o=0){for(var i=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,t)){this._namespaceList.splice(o+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),o=0;o=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player;A.push(t);var r=e.element;if(d&&n.driver.containsElement(d,r)){var c=k.get(r),p=h.get(r),f=n._buildInstruction(e,i,p,c);if(f.errors&&f.errors.length)w.push(f);else{if(e.isFallbackTransition)return t.onStart(function(){return Is(r,f.fromStyles)}),t.onDestroy(function(){return Ps(r,f.toStyles)}),void o.push(t);f.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(r,f.timelines),l.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(function(e){return us(s,e,[]).push(t)}),f.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=a.get(t);i||a.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),f.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}}else t.destroy()});if(w.length){var C=[];w.forEach(function(e){C.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return C.push("- "+e+"\n")})}),A.forEach(function(e){return e.destroy()}),this.reportError(C)}var O=new Map,x=new Map;l.forEach(function(e){var t=e.element;i.has(t)&&(x.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,O))}),o.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){us(O,t,[]).push(e),e.destroy()})});var S=m.filter(function(e){return La(e,a,u)}),E=new Map;Ia(E,this.driver,v,u,Jl).forEach(function(e){La(e,a,u)&&S.push(e)});var M=new Map;f.forEach(function(e,t){Ia(M,n.driver,new Set(e),a,is)}),S.forEach(function(e){var t=E.get(e),n=M.get(e);E.set(e,Object(hi.__assign)({},t,n))});var P=[],I=[],R={};l.forEach(function(e){var t=e.element,l=e.player,s=e.instruction;if(i.has(t)){if(c.has(t))return l.onDestroy(function(){return Ps(t,s.toStyles)}),void o.push(l);var a=R;if(x.size>1){for(var u=t,d=[];u=u.parentNode;){var p=x.get(u);if(p){a=p;break}d.push(u)}d.forEach(function(e){return x.set(e,a)})}var f=n._buildAnimation(l.namespaceId,s,O,r,M,E);if(l.setRealPlayer(f),a===R)P.push(l);else{var h=n.playersByElement.get(a);h&&h.length&&(l.parentPlayer=os(h)),o.push(l)}}else Is(t,s.fromStyles),l.onDestroy(function(){return Ps(t,s.toStyles)}),I.push(l),c.has(t)&&o.push(l)}),I.forEach(function(e){var t=r.get(e.element);if(t&&t.length){var n=os(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var N=0;N0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ts},e}(),Ea=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new ts,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return ls(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){us(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Ma(e){return e&&1===e.nodeType}function Pa(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Ia(e,t,n,i,o){var r=[];n.forEach(function(e){return r.push(Pa(e))});var l=[];i.forEach(function(n,i){var r={};n.forEach(function(e){var n=r[e]=t.computeStyle(i,e,o);n&&0!=n.length||(i[wa]=Aa,l.push(i))}),e.set(i,r)});var s=0;return n.forEach(function(e){return Pa(e,r[s++])}),l}function Ra(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),o=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var r=o.get(t);if(r)return r;var l=t.parentNode;return r=n.has(l)?l:i.has(l)?1:e(l),o.set(t,r),r}(e);1!==t&&n.get(t).push(e)}),n}var Na="$$classes";function Da(e,t){if(e.classList)e.classList.add(t);else{var n=e[Na];n||(n=e[Na]={}),n[t]=!0}}function ja(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Na];n&&delete n[t]}}function Ua(e,t,n){os(n).onDone(function(){return e.processLeaveNode(t)})}function La(e,t,n){var i=n.get(e);if(!i)return!1;var o=t.get(e);return o?i.forEach(function(e){return o.add(e)}):t.set(e,i),n.delete(e),!0}var Va=function(){function e(e,t){var n=this;this._driver=e,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Sa(e,t),this._timelineEngine=new ba(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,i,o){var r=e+"-"+i,l=this._triggerCache[r];if(!l){var s=[],a=zs(this._driver,o,s);if(s.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+s.join("\n - "));l=function(e,t){return new ma(e,t)}(i,a),this._triggerCache[r]=l}this._transitionEngine.registerTrigger(t,i,l)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,i){if("@"==n.charAt(0)){var o=cs(n);this._timelineEngine.command(o[0],t,o[1],i)}else this._transitionEngine.trigger(e,t,n,i)},e.prototype.listen=function(e,t,n,i,o){if("@"==n.charAt(0)){var r=cs(n);return this._timelineEngine.listen(r[0],t,r[1],o)}return this._transitionEngine.listen(e,t,n,i,o)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),Fa=function(){function e(e,t,n,i){void 0===i&&(i=[]);var o=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&i.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return o.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return Ms(e,!1)}),n=Object.keys(this.previousStyles);if(n.length&&t.length){var i=t[0],o=[];if(n.forEach(function(t){i.hasOwnProperty(t)||o.push(t),i[t]=e.previousStyles[t]}),o.length)for(var r=this,l=function(){var e=t[s];o.forEach(function(t){e[t]=Ka(r.element,t)})},s=1;s=0&&e0;return n&&e.router.navigate(["/macro",t[0].id]),!n})},e}(),lu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.b).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),su=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.b).do(function(t){t||e.router.navigate(["/detection"])})},e}(),au=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.q).do(function(t){t&&e.router.navigate(["/detection"])}).map(function(e){return!e})},e}(),uu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.q).do(function(t){t||e.router.navigate(["/privilege"])})},e}(),cu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.a).do(function(t){t||e.router.navigate(["/loading"])})},e}(),du=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.a).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),pu=n("YXEY"),fu=n("+GbP"),hu=n("mp4z"),yu=function(){},mu=function(){},gu=n("HZ5C"),vu=n("7OPe"),bu=n("/KiA"),ku=n("tXwt"),_u=n("j4Le"),Au=n("r/Om"),wu=n("8AXl"),Tu=function(){function e(){}return e.prototype.send=function(e){for(var t=[],n=1;nn.length){i=0;var o=n.indexOf(t.substr(0,1)),r=n.indexOf(t.substr(1,1));++r>n.length&&(r=0,o++),t=n[o]+n[r]+n[i]}return t}(e.keymaps,i.abbreviation),i.name=d(e.keymaps,i.name),i.isDefault=0===e.keymaps.length,n.keymaps=f(e.keymaps,i);break;case s.a.EDIT_NAME:if(!Object(u.d)(t.payload.name))break;var o=t.payload.name.trim(),r=null;if(e.keymaps.some(function(e){return e.abbreviation===t.payload.abbr&&(r=e),e.name===o&&e.abbreviation!==t.payload.abbr}))break;var m=Object.assign(new l.Keymap,r,{name:o});n.keymaps=f(e.keymaps,m,function(e){return e.abbreviation!==m.abbreviation});break;case s.a.EDIT_ABBR:var g=t.payload.newAbbr.toUpperCase(),v=e.keymaps.some(function(e){return e.name!==t.payload.name&&e.abbreviation===g});n.keymaps=e.keymaps.map(function(e){return e=Object.assign(new l.Keymap,e),v||e.abbreviation!==t.payload.abbr?e=e.renameKeymap(t.payload.abbr,t.payload.newAbbr):e.abbreviation=g,e});break;case s.a.SET_DEFAULT:n.keymaps=e.keymaps.map(function(e){return(e.abbreviation===t.payload||e.isDefault)&&((e=Object.assign(new l.Keymap,e)).isDefault=e.abbreviation===t.payload),e});break;case s.a.REMOVE:var b,k=e.keymaps.filter(function(e){return e.abbreviation!==t.payload||(b=e.isDefault,!1)});b&&k.length>0&&(k[0]=Object.assign(new l.Keymap,k[0],{isDefault:!0})),n.keymaps=k.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"keymapAbbreviation",t.payload),e});break;case s.a.SAVE_KEY:var _=t.payload.key,A=t.payload.layer,w=t.payload.module,T=l.KeyActionHelper.createKeyAction(t.payload.keyAction),C=Object.assign(new l.Keymap,t.payload.keymap);C.layers=C.layers.slice(),C.layers=C.layers.map(function(e,n){var i=Object.assign(new l.Layer,e);if(n===A)y(i,w,_,T);else if(T instanceof l.SwitchLayerAction)if(n-1===T.layer){var o=l.KeyActionHelper.createKeyAction(t.payload.keyAction);y(i,w,_,o)}else y(i,w,_,null);return i}),n.keymaps=e.keymaps.map(function(e){return e.abbreviation===C.abbreviation&&(e=C),e});break;case s.a.CHECK_MACRO:n.keymaps=e.keymaps.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"_macroId",t.payload),e});break;case s.b.ADD:(O=new l.Macro).id=p(e.macros),O.name=d(e.macros,"New macro"),O.isLooped=!1,O.isPrivate=!0,O.macroActions=[],n.macros=f(e.macros,O);break;case s.b.DUPLICATE:var O;(O=new l.Macro(t.payload)).name=d(e.macros,O.name),O.id=p(e.macros),n.macros=f(e.macros,O);break;case s.b.EDIT_NAME:if(!Object(u.d)(t.payload.name))break;var x=t.payload.name.trim(),S=null;if(e.macros.some(function(e){return e.id===t.payload.id&&(S=e),e.id!==t.payload.id&&e.name===x}))break;var E=Object.assign(new l.Macro,S,{name:x});n.macros=f(e.macros,E,function(e){return e.id!==E.id});break;case s.b.REMOVE:var M=t.payload;n.macros=e.macros.filter(function(e){return e.id!==M});for(var P=0;Pt.payload.oldIndex&&--n,(e=new l.Macro(e)).macroActions.splice(n,0,e.macroActions.splice(t.payload.oldIndex,1)[0])}return e});break;case a.a.RENAME_USER_CONFIGURATION:Object(u.d)(t.payload)&&(n.deviceName=t.payload.trim());break;case a.a.SET_USER_CONFIGURATION_VALUE:n[t.payload.propertyName]=t.payload.value;break;case s.a.EDIT_DESCRIPTION:var K=t.payload;n.keymaps=e.keymaps.map(function(e){return e.abbreviation===K.abbr&&(e.description=K.description),e})}return n},t.e=function(){return function(e){return e.map(function(e){return e.userConfiguration})}},t.b=function(){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}},t.a=function(e){return void 0===e?function(e){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(e).map(function(e){return e.find(function(e){return e.isDefault})})}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(t).map(function(t){return t.find(function(t){return t.abbreviation===e})})}},t.d=function(){return function(e){return e.map(function(e){return e.userConfiguration.macros})}},t.c=function(e){return isNaN(e)?function(){return i.Observable.of(void 0)}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.macros})}(t).map(function(t){return t.find(function(t){return t.id===e})})}};var i=n("rCTf"),o=n("1APj"),r=(n.n(o),n("+pb+")),l=(n.n(r),n("gI3A")),s=(n.n(l),n("WP8/")),a=n("at4H"),u=n("Lt3n"),c=new l.UserConfiguration;function d(e,t){var n=1,i=/ \(\d+\)$/g,o=t.replace(i,"");return e.forEach(function(e){e.name.replace(i,"")===o&&n++}),o+" ("+n+")"}function p(e){var t=0;return e.forEach(function(e){e.id>t&&(t=e.id)}),t+1}function f(e,t,n){void 0===n&&(n=function(){return!0});for(var i=[],o=!1,r=0,l=e;r0&&(i.push(t),o=!0),n(s)&&i.push(s)}return o||i.push(t),i}function h(e,t,n){for(var i=[],o=0;o"},e.prototype.renameKeymap=function(t,n){var i,o=this,r=!1;if(this.modules.forEach(function(e,l){var s=e.renameKeymap(t,n);s!==e&&(r||(i=o.modules.slice(),r=!0),i[l]=s)}),r){var l=Object.assign(new e,this);return l.modules=i,l}return this},e}()},zF5W:function(e,t,n){var i,o;void 0===(o="function"==typeof(i=function(){"use strict";var e="11.1.0";function t(e){return null!==e&&void 0!==e}function n(e){e.preventDefault()}function i(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function o(e,t,n){n>0&&(a(e,t),setTimeout(function(){u(e,t)},n))}function r(e){return Math.max(Math.min(e,100),0)}function l(e){return Array.isArray(e)?e:[e]}function s(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function a(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function u(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function c(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function d(e,t){return 100/(t-e)}function p(e,t){return 100*t/(e[1]-e[0])}function f(e,t){for(var n=1;e>=t[n];)n+=1;return n}function h(t,n,o){var r;if("number"==typeof n&&(n=[n]),!Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' contains invalid value.");if(!i(r="min"===t?0:"max"===t?100:parseFloat(t))||!i(n[0]))throw new Error("noUiSlider ("+e+"): 'range' value isn't numeric.");o.xPct.push(r),o.xVal.push(n[0]),r?o.xSteps.push(!isNaN(n[1])&&n[1]):isNaN(n[1])||(o.xSteps[0]=n[1]),o.xHighestCompleteStep.push(0)}function y(e,t,n){if(!t)return!0;n.xSteps[e]=p([n.xVal[e],n.xVal[e+1]],t)/d(n.xPct[e],n.xPct[e+1]);var i=Math.ceil(Number(((n.xVal[e+1]-n.xVal[e])/n.xNumSteps[e]).toFixed(3))-1);n.xHighestCompleteStep[e]=n.xVal[e]+n.xNumSteps[e]*i}function m(e,t,n){var i;this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t;var o=[];for(i in e)e.hasOwnProperty(i)&&o.push([e[i],i]);for(o.sort(o.length&&"object"==typeof o[0][0]?function(e,t){return e[0][0]-t[0][0]}:function(e,t){return e[0]-t[0]}),i=0;i=e.slice(-1)[0])return 100;var i=f(n,e),o=t[i-1],r=t[i];return o+function(e,t){return p(e,e[0]<0?t+Math.abs(e[0]):t-e[0])}([e[i-1],e[i]],n)/d(o,r)}(this.xVal,this.xPct,e)},m.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var i=f(n,t),o=t[i-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([e[i-1],e[i]],(n-o)*d(o,t[i]))}(this.xVal,this.xPct,e)},m.prototype.getStep=function(e){return function(e,t,n,i){if(100===i)return i;var o=f(i,e),r=e[o-1],l=e[o];return n?i-r>(l-r)/2?l:r:t[o-1]?e[o-1]+function(e,t){return Math.round(e/t)*t}(i-e[o-1],t[o-1]):i}(this.xPct,this.xSteps,this.snap,e)},m.prototype.getNearbySteps=function(e){var t=f(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t-0],step:this.xNumSteps[t-0],highestStep:this.xHighestCompleteStep[t-0]}}},m.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(s);return Math.max.apply(null,e)},m.prototype.convert=function(e){return this.getStep(this.toStepping(e))};var g={to:function(e){return void 0!==e&&e.toFixed(2)},from:Number};function v(t){if(function(e){return"object"==typeof e&&"function"==typeof e.to&&"function"==typeof e.from}(t))return!0;throw new Error("noUiSlider ("+e+"): 'format' requires 'to' and 'from' methods.")}function b(t,n){if(!i(n))throw new Error("noUiSlider ("+e+"): 'step' is not numeric.");t.singleStep=n}function k(t,n){if("object"!=typeof n||Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' is not an object.");if(void 0===n.min||void 0===n.max)throw new Error("noUiSlider ("+e+"): Missing 'min' or 'max' in 'range'.");if(n.min===n.max)throw new Error("noUiSlider ("+e+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new m(n,t.snap,t.singleStep)}function _(t,n){if(n=l(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider ("+e+"): 'start' option is incorrect.");t.handles=n.length,t.start=n}function A(t,n){if(t.snap=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'snap' option must be a boolean.")}function w(t,n){if(t.animate=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animate' option must be a boolean.")}function T(t,n){if(t.animationDuration=n,"number"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animationDuration' option must be a number.")}function C(t,n){var i,o=[!1];if("lower"===n?n=[!0,!1]:"upper"===n&&(n=[!1,!0]),!0===n||!1===n){for(i=1;i=100)throw new Error("noUiSlider ("+e+"): 'padding' option must not exceed 100% of the range.")}}function M(t,n){switch(n){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+e+"): 'direction' option was not recognized.")}}function P(t,n){if("string"!=typeof n)throw new Error("noUiSlider ("+e+"): 'behaviour' must be a string containing options.");var i=n.indexOf("tap")>=0,o=n.indexOf("drag")>=0,r=n.indexOf("fixed")>=0,l=n.indexOf("snap")>=0,s=n.indexOf("hover")>=0;if(r){if(2!==t.handles)throw new Error("noUiSlider ("+e+"): 'fixed' behaviour must be used with 2 handles");x(t,t.start[1]-t.start[0])}t.events={tap:i||l,drag:o,fixed:r,snap:l,hover:s}}function I(t,n){if(!1!==n)if(!0===n){t.tooltips=[];for(var i=0;i= 2) required for mode 'count'.");var o=n-1,r=100/o;for(n=[];o--;)n[o]=o*r;n.push(100),t="positions"}return"positions"===t?n.map(function(e){return C.fromStepping(i?C.getStep(e):e)}):"values"===t?i?n.map(function(e){return C.fromStepping(C.getStep(C.toStepping(e)))}):n:void 0}(n,t.values||!1,t.stepped||!1),s=function(e,t,n){var i,o={},r=C.xVal[0],l=C.xVal[C.xVal.length-1],s=!1,a=!1,u=0;return i=n.slice().sort(function(e,t){return e-t}),(n=i.filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==r&&(n.unshift(r),s=!0),n[n.length-1]!==l&&(n.push(l),a=!0),n.forEach(function(i,r){var l,c,d,p,f,h,y,m,g=i,v=n[r+1];if("steps"===t&&(l=C.xNumSteps[r]),l||(l=v-g),!1!==g&&void 0!==v)for(l=Math.max(l,1e-7),c=g;c<=v;c=(c+l).toFixed(7)/1){for(m=(f=(p=C.toStepping(c))-u)/(y=Math.round(f/e)),d=1;d<=y;d+=1)o[(u+d*m).toFixed(5)]=["x",0];h=n.indexOf(c)>-1?1:"steps"===t?2:0,!r&&s&&(h=0),c===v&&a||(o[p.toFixed(5)]=[c,h]),u=p}}),o}(o,n,l),u=t.format||{to:Math.round};return y=_.appendChild(function(e,t,n){var o=S.createElement("div"),r=[i.cssClasses.valueNormal,i.cssClasses.valueLarge,i.cssClasses.valueSub],l=[i.cssClasses.markerNormal,i.cssClasses.markerLarge,i.cssClasses.markerSub],s=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],u=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];function c(e,t){var n=t===i.cssClasses.value;return t+" "+(n?s:u)[i.ort]+" "+(n?r:l)[e]}return a(o,i.cssClasses.pips),a(o,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r){r[1]=r[1]&&t?t(r[0],r[1]):r[1];var l=I(o,!1);l.className=c(r[1],i.cssClasses.marker),l.style[i.style]=e+"%",r[1]&&((l=I(o,!1)).className=c(r[1],i.cssClasses.value),l.setAttribute("data-value",r[0]),l.style[i.style]=e+"%",l.innerText=n.to(r[0]))}(r,e[r])}),o}(s,r,u))}function L(){var e=d.getBoundingClientRect(),t="offset"+["Width","Height"][i.ort];return 0===i.ort?e.width||d[t]:e.height||d[t]}function V(e,t,n,o){var r=function(r){return!!(r=function(e,t,n){var i,o,r=0===e.type.indexOf("touch"),l=0===e.type.indexOf("mouse"),s=0===e.type.indexOf("pointer");if(0===e.type.indexOf("MSPointer")&&(s=!0),r){var a=function(e){return e.target===n||n.contains(e.target)};if("touchstart"===e.type){var u=Array.prototype.filter.call(e.touches,a);if(u.length>1)return!1;i=u[0].pageX,o=u[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,a);if(!d)return!1;i=d.pageX,o=d.pageY}}return t=t||c(S),(l||s)&&(i=e.clientX+t.x,o=e.clientY+t.y),e.pageOffset=t,e.points=[i,o],e.cursor=l||s,e}(r,o.pageOffset,o.target||t))&&!(_.hasAttribute("disabled")&&!o.doNotReject)&&(s=i.cssClasses.tap,!(((l=_).classList?l.classList.contains(s):new RegExp("\\b"+s+"\\b").test(l.className))&&!o.doNotReject)&&!(e===b.start&&void 0!==r.buttons&&r.buttons>1)&&(!o.hover||!r.buttons)&&(k||r.preventDefault(),r.calcPoint=r.points[i.ort],void n(r,o)));var l,s},l=[];return e.split(" ").forEach(function(e){t.addEventListener(e,r,!!k&&{passive:!0}),l.push([e,r])}),l}function F(e){var t,n,o,l,s,a,u=100*(e-(n=i.ort,o=(t=d).getBoundingClientRect(),s=(l=t.ownerDocument).documentElement,a=c(l),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?o.top+a.y-s.clientTop:o.left+a.x-s.clientLeft))/L();return u=r(u),i.dir?100-u:u}function K(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function B(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return H(e,t);var n=(i.dir?-1:1)*(e.calcPoint-t.startCalcPoint);Q(n>0,100*n/t.baseSize,t.locations,t.handleNumbers)}function H(e,t){t.handle&&(u(t.handle,i.cssClasses.active),T-=1),t.listeners.forEach(function(e){E.removeEventListener(e[0],e[1])}),0===T&&(u(_,i.cssClasses.drag),Z(),e.cursor&&(M.style.cursor="",M.removeEventListener("selectstart",n))),t.handleNumbers.forEach(function(e){z("change",e),z("set",e),z("end",e)})}function W(e,t){var o;if(1===t.handleNumbers.length){var r=p[t.handleNumbers[0]];if(r.hasAttribute("disabled"))return!1;T+=1,a(o=r.children[0],i.cssClasses.active)}e.stopPropagation();var l=[],s=V(b.move,E,B,{target:e.target,handle:o,listeners:l,startCalcPoint:e.calcPoint,baseSize:L(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:A.slice()}),u=V(b.end,E,H,{target:e.target,handle:o,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers}),c=V("mouseout",E,K,{target:e.target,handle:o,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers});l.push.apply(l,s.concat(u,c)),e.cursor&&(M.style.cursor=getComputedStyle(e.target).cursor,p.length>1&&a(_,i.cssClasses.drag),M.addEventListener("selectstart",n,!1)),t.handleNumbers.forEach(function(e){z("start",e)})}function q(e,t){x[e]=x[e]||[],x[e].push(t),"update"===e.split(".")[0]&&p.forEach(function(e,t){z("update",t)})}function z(e,t,n){Object.keys(x).forEach(function(o){var r=o.split(".")[0];e===r&&x[o].forEach(function(e){e.call(h,O.map(i.format.to),t,O.slice(),n||!1,A.slice())})})}function $(e){return e+"%"}function G(e,t,n,o,l,s){return p.length>1&&(o&&t>0&&(n=Math.max(n,e[t-1]+i.margin)),l&&t1&&i.limit&&(o&&t>0&&(n=Math.min(n,e[t-1]+i.limit)),l&&t1?i.forEach(function(e,n){var i=G(o,e,o[e]+t,r[n],l[n],!1);!1===i?t=0:(t=i-o[e],o[e]=i)}):r=l=[!0];var s=!1;i.forEach(function(e,i){s=X(e,n[e]+t,r[i],l[i])||s}),s&&i.forEach(function(e){z("update",e),z("slide",e)})}function J(e,t){return i.dir?100-e-t:e}function Z(){w.forEach(function(e){p[e].style.zIndex=3+(p.length+(A[e]>50?-1:1)*e)})}function X(e,t,n,o){return!1!==(t=G(A,e,t,n,o,!1))&&(function(e,t){A[e]=t,O[e]=C.fromStepping(t);var n="translate("+Y($(J(t,0)-P),"0")+")";p[e].style[i.transformRule]=n,ee(e),ee(e+1)}(e,t),!0)}function ee(e){if(f[e]){var t=0,n=100;0!==e&&(t=A[e-1]),e!==f.length-1&&(n=A[e]);var o=n-t,r="translate("+Y($(J(t,o)),"0")+")",l="scale("+Y(o/100,"1")+")";f[e].style[i.transformRule]=r+" "+l}}function te(e,t){var n=l(e);t=void 0===t||!!t,i.animate&&!(void 0===A[0])&&o(_,i.cssClasses.tap,i.animationDuration),w.forEach(function(e){X(e,function(e,t){return null===e||!1===e||void 0===e?A[t]:("number"==typeof e&&(e=String(e)),e=i.format.from(e),!1===(e=C.toStepping(e))||isNaN(e)?A[t]:e)}(n[e],e),!0,!1)}),w.forEach(function(e){X(e,A[e],!0,!0)}),Z(),w.forEach(function(e){z("update",e),null!==n[e]&&t&&z("set",e)})}function ne(){var e=O.map(i.format.to);return 1===e.length?e[0]:e}return a(m=_,i.cssClasses.target),a(m,0===i.dir?i.cssClasses.ltr:i.cssClasses.rtl),a(m,0===i.ort?i.cssClasses.horizontal:i.cssClasses.vertical),d=I(m,i.cssClasses.base),function(e,t){var n=I(t,i.cssClasses.connects);p=[],(f=[]).push(N(n,e[0]));for(var o=0;on.stepAfter.startValue&&(o=n.stepAfter.startValue-i),r=i>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&i-n.stepBefore.highestStep,100===e?o=null:0===e&&(r=null);var l=C.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(l))),null!==r&&!1!==r&&(r=Number(r.toFixed(l))),[r,o]})},on:q,off:function(e){var t=e&&e.split(".")[0],n=t&&e.substring(t.length);Object.keys(x).forEach(function(e){var i=e.split(".")[0],o=e.substring(i.length);t&&t!==i||n&&n!==o||delete x[e]})},get:ne,set:te,reset:function(e){te(i.start,e)},__moveHandles:function(e,t,n){Q(e,t,A,n)},options:s,updateOptions:function(e,t){var n=ne(),o=["margin","limit","padding","range","animate","snap","step","format"];o.forEach(function(t){void 0!==e[t]&&(s[t]=e[t])});var r=U(s);o.forEach(function(t){void 0!==e[t]&&(i[t]=r[t])}),C=r.spectrum,i.margin=r.margin,i.limit=r.limit,i.padding=r.padding,i.pips&&j(i.pips),A=[],te(e.start||n,t)},target:_,removePips:D,pips:j},i.pips&&j(i.pips),i.tooltips&&(v=p.map(function(e,t){return!!i.tooltips[t]&&I(e.firstChild,i.cssClasses.tooltip)}),q("update",function(e,t,n){if(v[t]){var o=e[t];!0!==i.tooltips[t]&&(o=i.tooltips[t].to(n[t])),v[t].innerHTML=o}})),q("update",function(e,t,n,o,r){w.forEach(function(e){var t=p[e],o=G(A,e,0,!0,!0,!0),l=G(A,e,100,!0,!0,!0),s=r[e],a=i.ariaFormat.to(n[e]);t.children[0].setAttribute("aria-valuemin",o.toFixed(1)),t.children[0].setAttribute("aria-valuemax",l.toFixed(1)),t.children[0].setAttribute("aria-valuenow",s.toFixed(1)),t.children[0].setAttribute("aria-valuetext",a)})}),h}(t,U(i),i);return t.noUiSlider=s,s}}})?i.apply(t,[]):i)||(e.exports=o)},zQPq:function(e,t,n){"use strict";var i=n("TToO").__extends,o=n("B00U");t.Action=function(e){function t(t,n){e.call(this)}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(o.Subscription)}},[0]); \ No newline at end of file diff --git a/styles.6f05252de6722e46563b.bundle.css b/styles.cf6b9f1ca7c2ef7ca399.bundle.css similarity index 96% rename from styles.6f05252de6722e46563b.bundle.css rename to styles.cf6b9f1ca7c2ef7ca399.bundle.css index 1bfb4ccd..02df991a 100644 --- a/styles.6f05252de6722e46563b.bundle.css +++ b/styles.cf6b9f1ca7c2ef7ca399.bundle.css @@ -5,4 +5,4 @@ *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a:active,a:hover{outline:0}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0}mark{color:#000;background:#ff0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0;vertical-align:middle}svg:not(:root){overflow:hidden}hr{height:0;-webkit-box-sizing:content-box;box-sizing:content-box}code,kbd,pre,samp{font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}textarea{overflow:auto}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(glyphicons-halflings-regular.f4769f9bdb7466be6508.eot);src:url(glyphicons-halflings-regular.f4769f9bdb7466be6508.eot?#iefix) format('embedded-opentype'),url(glyphicons-halflings-regular.448c34a56d699c29117a.woff2) format('woff2'),url(glyphicons-halflings-regular.fa2772327f55d8198301.woff) format('woff'),url(glyphicons-halflings-regular.e18bbf611f2a2e43afc0.ttf) format('truetype'),url(glyphicons-halflings-regular.89889688147bd7575d63.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before,.glyphicon-btc:before,.glyphicon-xbt:before{content:"\e227"}.glyphicon-jpy:before,.glyphicon-yen:before{content:"\00a5"}.glyphicon-rub:before,.glyphicon-ruble:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{background-color:transparent;color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}figure{margin:0}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{overflow:auto;display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;white-space:pre-wrap;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{border-spacing:0;border-collapse:collapse;background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio label,fieldset[disabled] .radio-inline,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary.active,.btn-primary:active,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success.active,.btn-success:active,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info.active,.btn-info:active,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger.active,.btn-danger:active,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-radius:4px 4px 0 0}.btn-group-vertical>.btn:last-child:not(:first-child){border-radius:0 0 4px 4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center;margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px;cursor:pointer}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0;border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.navbar{border-radius:4px}.navbar-header{float:left}.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}.navbar-static-top{border-radius:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}.navbar-toggle{display:none}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}.navbar-form{padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin:8px -15px}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-text{float:left;margin-right:15px;margin-left:15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-radius:4px 4px 0 0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-nav>li>a,.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>li>a,.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:2s linear infinite progress-bar-stripes;animation:2s linear infinite progress-bar-stripes}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.list-group+.panel-footer,.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{margin-top:-3px}.tooltip.right{margin-left:3px}.tooltip.bottom{margin-top:3px}.tooltip.left{margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{left:50%;margin-left:-5px;border-width:5px 5px 0}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;margin-top:-5px;border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;margin-top:-5px;border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{left:50%;margin-left:-5px;border-width:0 5px 5px}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;transition:transform .6s ease-in-out,-webkit-transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}.visible-xs-block{display:block!important}.visible-xs-inline{display:inline!important}.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}.visible-sm-block{display:block!important}.visible-sm-inline{display:inline!important}.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}.visible-md-block{display:block!important}.visible-md-inline{display:inline!important}.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}.visible-lg-block{display:block!important}.visible-lg-inline{display:inline!important}.visible-lg-inline-block{display:inline-block!important}.hidden-lg{display:none!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}.hidden-print{display:none!important}}/*! nouislider - 11.1.0 - 2018-04-02 11:18:13 */.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative;direction:ltr;background:#fafafa;border-radius:4px;border:1px solid #d3d3d3;-webkit-box-shadow:inset 0 1px 1px #f0f0f0,0 3px 6px -5px #bbb;box-shadow:inset 0 1px 1px #f0f0f0,0 3px 6px -5px #bbb}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1}.noUi-connects{overflow:hidden;z-index:0;border-radius:3px}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;left:0;height:100%;width:100%;-webkit-transform-origin:0 0;transform-origin:0 0}html:not([dir=rtl]) .noUi-horizontal .noUi-origin{left:auto;right:0}.noUi-vertical .noUi-origin{width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform .3s;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;left:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;left:-6px;top:-17px}html:not([dir=rtl]) .noUi-horizontal .noUi-handle{right:-17px;left:auto}.noUi-connect{background:#3fb8af}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{position:absolute;border:1px solid #d9d9d9;border-radius:3px;background:#fff;cursor:default;-webkit-box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ebebeb,0 3px 6px -3px #bbb;box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ebebeb,0 3px 6px -3px #bbb}.noUi-active{-webkit-box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ddd,0 3px 6px -3px #bbb;box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ddd,0 3px 6px -3px #bbb}.noUi-handle:after,.noUi-handle:before{content:"";display:block;position:absolute;height:14px;width:1px;background:#e8e7e6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background:#b8b8b8}[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target{cursor:not-allowed}.noUi-pips,.noUi-pips *{-webkit-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;white-space:nowrap;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#ccc}.noUi-marker-large,.noUi-marker-sub{background:#aaa}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate(0,-50%);transform:translate(0,-50%,0);padding-left:25px}.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0,50%);transform:translate(0,50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid #d9d9d9;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%,0);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);top:50%;right:120%}.notifier__container *{-webkit-box-sizing:border-box;box-sizing:border-box}.notifier__container-list{margin-top:0;margin-bottom:0;padding-left:0;list-style-type:none}.notifier__notification{display:block;position:fixed;visibility:hidden;z-index:10000;will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden}.notifier__notification--material{border-radius:3px;-webkit-box-shadow:0 1px 3px rgba(0,0,0,.2);box-shadow:0 1px 3px rgba(0,0,0,.2);cursor:default;padding:11px 26px 10px}.notifier__notification--material .notifier__notification-message{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:top;line-height:32px;font-size:15px}.notifier__notification--material .notifier__notification-button{display:inline-block;-webkit-transition:opacity .2s ease;transition:opacity .2s ease;opacity:.5;margin-right:-10px;margin-left:10px;outline:0;border:none;background:0 0;cursor:pointer;padding:6px;width:32px;height:32px;vertical-align:top}.notifier__notification--material .notifier__notification-button:focus,.notifier__notification--material .notifier__notification-button:hover{opacity:1}.notifier__notification--material .notifier__notification-button:active{-webkit-transform:scale(.82);transform:scale(.82);opacity:1}.notifier__notification--default{background-color:#444;color:#fff}.notifier__notification--default .notifier__notification-button-icon{fill:#fff}.notifier__notification--error{background-color:#d9534f;color:#fff}.notifier__notification--error .notifier__notification-button-icon{fill:#fff}.notifier__notification--info{background-color:#5bc0de;color:#fff}.notifier__notification--info .notifier__notification-button-icon{fill:#fff}.notifier__notification--success{background-color:#5cb85c;color:#fff}.notifier__notification--success .notifier__notification-button-icon{fill:#fff}.notifier__notification--warning{background-color:#f0ad4e;color:#fff}.notifier__notification--warning .notifier__notification-button-icon{fill:#fff}/*! * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) - */@font-face{font-family:FontAwesome;src:url(fontawesome-webfont.674f50d287a8c48dc19b.eot?v=4.7.0);src:url(fontawesome-webfont.674f50d287a8c48dc19b.eot?#iefix&v=4.7.0) format("embedded-opentype"),url(fontawesome-webfont.af7ae505a9eed503f8b8.woff2?v=4.7.0) format("woff2"),url(fontawesome-webfont.fee66e712a8a08eef580.woff?v=4.7.0) format("woff"),url(fontawesome-webfont.b06871f281fee6b241d6.ttf?v=4.7.0) format("truetype"),url(fontawesome-webfont.912ec66d7572ff821749.svg?v=4.7.0#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font:14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:2s linear infinite fa-spin;animation:2s linear infinite fa-spin}.fa-pulse{-webkit-animation:1s steps(8) infinite fa-spin;animation:1s steps(8) infinite fa-spin}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1,-1);transform:scale(1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{-webkit-filter:none;filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-close:before,.fa-remove:before,.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-trash-o:before{content:""}.fa-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-repeat:before,.fa-rotate-right:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before{content:""}.fa-check-circle:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-exclamation-triangle:before,.fa-warning:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before,.fa-bar-chart:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook-f:before,.fa-facebook:before{content:""}.fa-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before{content:""}.fa-arrow-circle-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-floppy-o:before,.fa-save:before{content:""}.fa-square:before{content:""}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-bolt:before,.fa-flash:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-clipboard:before,.fa-paste:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-chain-broken:before,.fa-unlink:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:""}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:""}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:""}.fa-eur:before,.fa-euro:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-inr:before,.fa-rupee:before{content:""}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:""}.fa-krw:before,.fa-won:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before,.fa-gratipay:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-try:before,.fa-turkish-lira:before{content:""}.fa-plus-square-o:before{content:""}.fa-space-shuttle:before{content:""}.fa-slack:before{content:""}.fa-envelope-square:before{content:""}.fa-wordpress:before{content:""}.fa-openid:before{content:""}.fa-bank:before,.fa-institution:before,.fa-university:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-yahoo:before{content:""}.fa-google:before{content:""}.fa-reddit:before{content:""}.fa-reddit-square:before{content:""}.fa-stumbleupon-circle:before{content:""}.fa-stumbleupon:before{content:""}.fa-delicious:before{content:""}.fa-digg:before{content:""}.fa-pied-piper-pp:before{content:""}.fa-pied-piper-alt:before{content:""}.fa-drupal:before{content:""}.fa-joomla:before{content:""}.fa-language:before{content:""}.fa-fax:before{content:""}.fa-building:before{content:""}.fa-child:before{content:""}.fa-paw:before{content:""}.fa-spoon:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-behance:before{content:""}.fa-behance-square:before{content:""}.fa-steam:before{content:""}.fa-steam-square:before{content:""}.fa-recycle:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-tree:before{content:""}.fa-spotify:before{content:""}.fa-deviantart:before{content:""}.fa-soundcloud:before{content:""}.fa-database:before{content:""}.fa-file-pdf-o:before{content:""}.fa-file-word-o:before{content:""}.fa-file-excel-o:before{content:""}.fa-file-powerpoint-o:before{content:""}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:""}.fa-file-archive-o:before,.fa-file-zip-o:before{content:""}.fa-file-audio-o:before,.fa-file-sound-o:before{content:""}.fa-file-movie-o:before,.fa-file-video-o:before{content:""}.fa-file-code-o:before{content:""}.fa-vine:before{content:""}.fa-codepen:before{content:""}.fa-jsfiddle:before{content:""}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:""}.fa-circle-o-notch:before{content:""}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:""}.fa-empire:before,.fa-ge:before{content:""}.fa-git-square:before{content:""}.fa-git:before{content:""}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:""}.fa-tencent-weibo:before{content:""}.fa-qq:before{content:""}.fa-wechat:before,.fa-weixin:before{content:""}.fa-paper-plane:before,.fa-send:before{content:""}.fa-paper-plane-o:before,.fa-send-o:before{content:""}.fa-history:before{content:""}.fa-circle-thin:before{content:""}.fa-header:before{content:""}.fa-paragraph:before{content:""}.fa-sliders:before{content:""}.fa-share-alt:before{content:""}.fa-share-alt-square:before{content:""}.fa-bomb:before{content:""}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:""}.fa-tty:before{content:""}.fa-binoculars:before{content:""}.fa-plug:before{content:""}.fa-slideshare:before{content:""}.fa-twitch:before{content:""}.fa-yelp:before{content:""}.fa-newspaper-o:before{content:""}.fa-wifi:before{content:""}.fa-calculator:before{content:""}.fa-paypal:before{content:""}.fa-google-wallet:before{content:""}.fa-cc-visa:before{content:""}.fa-cc-mastercard:before{content:""}.fa-cc-discover:before{content:""}.fa-cc-amex:before{content:""}.fa-cc-paypal:before{content:""}.fa-cc-stripe:before{content:""}.fa-bell-slash:before{content:""}.fa-bell-slash-o:before{content:""}.fa-trash:before{content:""}.fa-copyright:before{content:""}.fa-at:before{content:""}.fa-eyedropper:before{content:""}.fa-paint-brush:before{content:""}.fa-birthday-cake:before{content:""}.fa-area-chart:before{content:""}.fa-pie-chart:before{content:""}.fa-line-chart:before{content:""}.fa-lastfm:before{content:""}.fa-lastfm-square:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-bicycle:before{content:""}.fa-bus:before{content:""}.fa-ioxhost:before{content:""}.fa-angellist:before{content:""}.fa-cc:before{content:""}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:""}.fa-meanpath:before{content:""}.fa-buysellads:before{content:""}.fa-connectdevelop:before{content:""}.fa-dashcube:before{content:""}.fa-forumbee:before{content:""}.fa-leanpub:before{content:""}.fa-sellsy:before{content:""}.fa-shirtsinbulk:before{content:""}.fa-simplybuilt:before{content:""}.fa-skyatlas:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-diamond:before{content:""}.fa-ship:before{content:""}.fa-user-secret:before{content:""}.fa-motorcycle:before{content:""}.fa-street-view:before{content:""}.fa-heartbeat:before{content:""}.fa-venus:before{content:""}.fa-mars:before{content:""}.fa-mercury:before{content:""}.fa-intersex:before,.fa-transgender:before{content:""}.fa-transgender-alt:before{content:""}.fa-venus-double:before{content:""}.fa-mars-double:before{content:""}.fa-venus-mars:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-v:before{content:""}.fa-mars-stroke-h:before{content:""}.fa-neuter:before{content:""}.fa-genderless:before{content:""}.fa-facebook-official:before{content:""}.fa-pinterest-p:before{content:""}.fa-whatsapp:before{content:""}.fa-server:before{content:""}.fa-user-plus:before{content:""}.fa-user-times:before{content:""}.fa-bed:before,.fa-hotel:before{content:""}.fa-viacoin:before{content:""}.fa-train:before{content:""}.fa-subway:before{content:""}.fa-medium:before{content:""}.fa-y-combinator:before,.fa-yc:before{content:""}.fa-optin-monster:before{content:""}.fa-opencart:before{content:""}.fa-expeditedssl:before{content:""}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-three-quarters:before{content:""}.fa-battery-2:before,.fa-battery-half:before{content:""}.fa-battery-1:before,.fa-battery-quarter:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-mouse-pointer:before{content:""}.fa-i-cursor:before{content:""}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-sticky-note:before{content:""}.fa-sticky-note-o:before{content:""}.fa-cc-jcb:before{content:""}.fa-cc-diners-club:before{content:""}.fa-clone:before{content:""}.fa-balance-scale:before{content:""}.fa-hourglass-o:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass:before{content:""}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:""}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:""}.fa-hand-scissors-o:before{content:""}.fa-hand-lizard-o:before{content:""}.fa-hand-spock-o:before{content:""}.fa-hand-pointer-o:before{content:""}.fa-hand-peace-o:before{content:""}.fa-trademark:before{content:""}.fa-registered:before{content:""}.fa-creative-commons:before{content:""}.fa-gg:before{content:""}.fa-gg-circle:before{content:""}.fa-tripadvisor:before{content:""}.fa-odnoklassniki:before{content:""}.fa-odnoklassniki-square:before{content:""}.fa-get-pocket:before{content:""}.fa-wikipedia-w:before{content:""}.fa-safari:before{content:""}.fa-chrome:before{content:""}.fa-firefox:before{content:""}.fa-opera:before{content:""}.fa-internet-explorer:before{content:""}.fa-television:before,.fa-tv:before{content:""}.fa-contao:before{content:""}.fa-500px:before{content:""}.fa-amazon:before{content:""}.fa-calendar-plus-o:before{content:""}.fa-calendar-minus-o:before{content:""}.fa-calendar-times-o:before{content:""}.fa-calendar-check-o:before{content:""}.fa-industry:before{content:""}.fa-map-pin:before{content:""}.fa-map-signs:before{content:""}.fa-map-o:before{content:""}.fa-map:before{content:""}.fa-commenting:before{content:""}.fa-commenting-o:before{content:""}.fa-houzz:before{content:""}.fa-vimeo:before{content:""}.fa-black-tie:before{content:""}.fa-fonticons:before{content:""}.fa-reddit-alien:before{content:""}.fa-edge:before{content:""}.fa-credit-card-alt:before{content:""}.fa-codiepie:before{content:""}.fa-modx:before{content:""}.fa-fort-awesome:before{content:""}.fa-usb:before{content:""}.fa-product-hunt:before{content:""}.fa-mixcloud:before{content:""}.fa-scribd:before{content:""}.fa-pause-circle:before{content:""}.fa-pause-circle-o:before{content:""}.fa-stop-circle:before{content:""}.fa-stop-circle-o:before{content:""}.fa-shopping-bag:before{content:""}.fa-shopping-basket:before{content:""}.fa-hashtag:before{content:""}.fa-bluetooth:before{content:""}.fa-bluetooth-b:before{content:""}.fa-percent:before{content:""}.fa-gitlab:before{content:""}.fa-wpbeginner:before{content:""}.fa-wpforms:before{content:""}.fa-envira:before{content:""}.fa-universal-access:before{content:""}.fa-wheelchair-alt:before{content:""}.fa-question-circle-o:before{content:""}.fa-blind:before{content:""}.fa-audio-description:before{content:""}.fa-volume-control-phone:before{content:""}.fa-braille:before{content:""}.fa-assistive-listening-systems:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:""}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:""}.fa-glide:before{content:""}.fa-glide-g:before{content:""}.fa-sign-language:before,.fa-signing:before{content:""}.fa-low-vision:before{content:""}.fa-viadeo:before{content:""}.fa-viadeo-square:before{content:""}.fa-snapchat:before{content:""}.fa-snapchat-ghost:before{content:""}.fa-snapchat-square:before{content:""}.fa-pied-piper:before{content:""}.fa-first-order:before{content:""}.fa-yoast:before{content:""}.fa-themeisle:before{content:""}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:""}.fa-fa:before,.fa-font-awesome:before{content:""}.fa-handshake-o:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-o:before{content:""}.fa-linode:before{content:""}.fa-address-book:before{content:""}.fa-address-book-o:before{content:""}.fa-address-card:before,.fa-vcard:before{content:""}.fa-address-card-o:before,.fa-vcard-o:before{content:""}.fa-user-circle:before{content:""}.fa-user-circle-o:before{content:""}.fa-user-o:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-drivers-license-o:before,.fa-id-card-o:before{content:""}.fa-quora:before{content:""}.fa-free-code-camp:before{content:""}.fa-telegram:before{content:""}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:""}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-shower:before{content:""}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:""}.fa-podcast:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:""}.fa-bandcamp:before{content:""}.fa-grav:before{content:""}.fa-etsy:before{content:""}.fa-imdb:before{content:""}.fa-ravelry:before{content:""}.fa-eercast:before{content:""}.fa-microchip:before{content:""}.fa-snowflake-o:before{content:""}.fa-superpowers:before{content:""}.fa-wpexplorer:before{content:""}.fa-meetup:before{content:""}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.tooltip .tooltip-inner{background-color:#fff;border:1px solid #ccc;color:#000}.tooltip-arrow:after{content:'';position:absolute;width:0;height:0;border:solid transparent;z-index:-1}.tooltip{z-index:100010;position:fixed}.tooltip.top{padding:6px 0}.tooltip.right{padding:0 6px}.tooltip.bottom{padding:6px 0}.tooltip.left{padding:0 6px}.tooltip.in{opacity:1!important}.tooltip.top .tooltip-arrow{bottom:2px;border-top-color:#fff}.tooltip.top .tooltip-arrow:after{bottom:-2px;left:50%;margin-left:-6px;border-width:6px 6px 0;border-top-color:#ccc}.tooltip.bottom .tooltip-arrow{top:2px;border-bottom-color:#fff}.tooltip.bottom .tooltip-arrow:after{top:-2px;left:50%;margin-left:-6px;border-width:0 6px 6px;border-bottom-color:#ccc}.tooltip.left .tooltip-arrow{right:2px;border-left-color:#fff}.tooltip.left .tooltip-arrow:after{right:-2px;top:50%;margin-top:-6px;border-width:6px 0 6px 6px;border-left-color:#ccc}.tooltip.right .tooltip-arrow{left:2px;border-right-color:#fff}.tooltip.right .tooltip-arrow:after{left:-2px;top:50%;margin-top:-6px;border-width:6px 6px 6px 0;border-right-color:#ccc}.uhk-icon-0401-usb-stick,.uhk-icon-agent-icon{background:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg width%3D%2231%22 height%3D%2216%22 viewBox%3D%220 0 31 16%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 id%3D%22icon-0401-usb-stick%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M6.5 2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-.5-.5zM8.5 2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-.5-.5z%22%2F%3E%3Cpath d%3D%22M11.5 5H11V.5a.5.5 0 0 0-.5-.5h-6a.5.5 0 0 0-.5.5V5h-.5a.5.5 0 0 0-.5.5v9.375c1 1.5 8 1.5 9 0V5.5a.5.5 0 0 0-.5-.5zM5 13.5a.5.5 0 0 1-1 0v-6a.5.5 0 0 1 1 0v6zM10 5H5V1h5v4z%22%2F%3E%3C%2Fsvg%3E%3Csvg width%3D%2215%22 height%3D%2215%22 viewBox%3D%220 0 15 15%22 id%3D%22icon-agent-icon%22 x%3D%2216%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill%3D%22%23333%22 d%3D%22M3 0C1.338 0 0 1.338 0 3v9c0 1.662 1.338 3 3 3h9c1.662 0 3-1.338 3-3V3c0-1.662-1.338-3-3-3H3zM1.375 3.75a.36.36 0 0 1 .125 0H6c.375 0 .75.375.75.375s.375.375.75.375.75-.375.75-.375.375-.375.75-.375h4.5c.75 0 .75.75.75.75V6c0 2.25-1.5 2.25-1.5 2.25H9c-.375 0-.75-1.125-.75-1.125S7.875 6 7.5 6s-.75 1.125-.75 1.125S6.375 8.25 6 8.25H2.25S.75 8.25.75 6V4.5c0-.562.414-.715.625-.75z%22%2F%3E%3C%2Fsvg%3E%3C%2Fsvg%3E") no-repeat}.uhk-icon-0401-usb-stick{background-position:0 0}.uhk-icon-agent-icon{background-position:100% 0}body,html{width:100%;height:100%}.uhk-icon{display:inline-block;width:1em;height:1em;background-size:auto 100%;vertical-align:text-bottom}.rotate-right{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:26px}.main-content{height:100%}.main-page-content{margin-left:250px;overflow-x:hidden;min-height:100%}.select2-container{z-index:1100}.select2-container .scancode--searchterm{text-align:right;color:#b7b7b7}.select2-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.select2-results{text-align:left}.select2-container--default .select2-dropdown--below .select2-results>.select2-results__options{max-height:300px}ul.btn-list li{margin-top:.5em}.h1,.h2,.h3,h1,h2,h3{margin-top:10px}input[type=file]{display:inline-block}a.disabled{pointer-events:none;cursor:default}.full-height{height:100%;width:100%;display:inline-block}.noUi-value{top:2rem}.btn-file{position:relative;overflow:hidden}.btn-file input[type=file]{position:absolute;top:0;right:0;min-width:100%;min-height:100%;font-size:100px;text-align:right;filter:alpha(opacity=0);opacity:0;outline:0;background:#fff;cursor:inherit;display:block}a.link-inline{cursor:pointer}code,pre code{color:#6a737d;background-color:#f6f8fa;text-align:left}.mt-10{margin-top:10px}.copy-container{position:relative}.copy-container .fa-copy{cursor:pointer;color:#6a737d;position:absolute;right:4px;top:4px}.copy-container .fa-copy:hover{color:#474d54} \ No newline at end of file + */@font-face{font-family:FontAwesome;src:url(fontawesome-webfont.674f50d287a8c48dc19b.eot?v=4.7.0);src:url(fontawesome-webfont.674f50d287a8c48dc19b.eot?#iefix&v=4.7.0) format("embedded-opentype"),url(fontawesome-webfont.af7ae505a9eed503f8b8.woff2?v=4.7.0) format("woff2"),url(fontawesome-webfont.fee66e712a8a08eef580.woff?v=4.7.0) format("woff"),url(fontawesome-webfont.b06871f281fee6b241d6.ttf?v=4.7.0) format("truetype"),url(fontawesome-webfont.912ec66d7572ff821749.svg?v=4.7.0#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font:14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:2s linear infinite fa-spin;animation:2s linear infinite fa-spin}.fa-pulse{-webkit-animation:1s steps(8) infinite fa-spin;animation:1s steps(8) infinite fa-spin}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1,-1);transform:scale(1,-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{-webkit-filter:none;filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:""}.fa-music:before{content:""}.fa-search:before{content:""}.fa-envelope-o:before{content:""}.fa-heart:before{content:""}.fa-star:before{content:""}.fa-star-o:before{content:""}.fa-user:before{content:""}.fa-film:before{content:""}.fa-th-large:before{content:""}.fa-th:before{content:""}.fa-th-list:before{content:""}.fa-check:before{content:""}.fa-close:before,.fa-remove:before,.fa-times:before{content:""}.fa-search-plus:before{content:""}.fa-search-minus:before{content:""}.fa-power-off:before{content:""}.fa-signal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-trash-o:before{content:""}.fa-home:before{content:""}.fa-file-o:before{content:""}.fa-clock-o:before{content:""}.fa-road:before{content:""}.fa-download:before{content:""}.fa-arrow-circle-o-down:before{content:""}.fa-arrow-circle-o-up:before{content:""}.fa-inbox:before{content:""}.fa-play-circle-o:before{content:""}.fa-repeat:before,.fa-rotate-right:before{content:""}.fa-refresh:before{content:""}.fa-list-alt:before{content:""}.fa-lock:before{content:""}.fa-flag:before{content:""}.fa-headphones:before{content:""}.fa-volume-off:before{content:""}.fa-volume-down:before{content:""}.fa-volume-up:before{content:""}.fa-qrcode:before{content:""}.fa-barcode:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-book:before{content:""}.fa-bookmark:before{content:""}.fa-print:before{content:""}.fa-camera:before{content:""}.fa-font:before{content:""}.fa-bold:before{content:""}.fa-italic:before{content:""}.fa-text-height:before{content:""}.fa-text-width:before{content:""}.fa-align-left:before{content:""}.fa-align-center:before{content:""}.fa-align-right:before{content:""}.fa-align-justify:before{content:""}.fa-list:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-indent:before{content:""}.fa-video-camera:before{content:""}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:""}.fa-pencil:before{content:""}.fa-map-marker:before{content:""}.fa-adjust:before{content:""}.fa-tint:before{content:""}.fa-edit:before,.fa-pencil-square-o:before{content:""}.fa-share-square-o:before{content:""}.fa-check-square-o:before{content:""}.fa-arrows:before{content:""}.fa-step-backward:before{content:""}.fa-fast-backward:before{content:""}.fa-backward:before{content:""}.fa-play:before{content:""}.fa-pause:before{content:""}.fa-stop:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before{content:""}.fa-step-forward:before{content:""}.fa-eject:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-plus-circle:before{content:""}.fa-minus-circle:before{content:""}.fa-times-circle:before{content:""}.fa-check-circle:before{content:""}.fa-question-circle:before{content:""}.fa-info-circle:before{content:""}.fa-crosshairs:before{content:""}.fa-times-circle-o:before{content:""}.fa-check-circle-o:before{content:""}.fa-ban:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-down:before{content:""}.fa-mail-forward:before,.fa-share:before{content:""}.fa-expand:before{content:""}.fa-compress:before{content:""}.fa-plus:before{content:""}.fa-minus:before{content:""}.fa-asterisk:before{content:""}.fa-exclamation-circle:before{content:""}.fa-gift:before{content:""}.fa-leaf:before{content:""}.fa-fire:before{content:""}.fa-eye:before{content:""}.fa-eye-slash:before{content:""}.fa-exclamation-triangle:before,.fa-warning:before{content:""}.fa-plane:before{content:""}.fa-calendar:before{content:""}.fa-random:before{content:""}.fa-comment:before{content:""}.fa-magnet:before{content:""}.fa-chevron-up:before{content:""}.fa-chevron-down:before{content:""}.fa-retweet:before{content:""}.fa-shopping-cart:before{content:""}.fa-folder:before{content:""}.fa-folder-open:before{content:""}.fa-arrows-v:before{content:""}.fa-arrows-h:before{content:""}.fa-bar-chart-o:before,.fa-bar-chart:before{content:""}.fa-twitter-square:before{content:""}.fa-facebook-square:before{content:""}.fa-camera-retro:before{content:""}.fa-key:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-comments:before{content:""}.fa-thumbs-o-up:before{content:""}.fa-thumbs-o-down:before{content:""}.fa-star-half:before{content:""}.fa-heart-o:before{content:""}.fa-sign-out:before{content:""}.fa-linkedin-square:before{content:""}.fa-thumb-tack:before{content:""}.fa-external-link:before{content:""}.fa-sign-in:before{content:""}.fa-trophy:before{content:""}.fa-github-square:before{content:""}.fa-upload:before{content:""}.fa-lemon-o:before{content:""}.fa-phone:before{content:""}.fa-square-o:before{content:""}.fa-bookmark-o:before{content:""}.fa-phone-square:before{content:""}.fa-twitter:before{content:""}.fa-facebook-f:before,.fa-facebook:before{content:""}.fa-github:before{content:""}.fa-unlock:before{content:""}.fa-credit-card:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-hdd-o:before{content:""}.fa-bullhorn:before{content:""}.fa-bell:before{content:""}.fa-certificate:before{content:""}.fa-hand-o-right:before{content:""}.fa-hand-o-left:before{content:""}.fa-hand-o-up:before{content:""}.fa-hand-o-down:before{content:""}.fa-arrow-circle-left:before{content:""}.fa-arrow-circle-right:before{content:""}.fa-arrow-circle-up:before{content:""}.fa-arrow-circle-down:before{content:""}.fa-globe:before{content:""}.fa-wrench:before{content:""}.fa-tasks:before{content:""}.fa-filter:before{content:""}.fa-briefcase:before{content:""}.fa-arrows-alt:before{content:""}.fa-group:before,.fa-users:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-cloud:before{content:""}.fa-flask:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-copy:before,.fa-files-o:before{content:""}.fa-paperclip:before{content:""}.fa-floppy-o:before,.fa-save:before{content:""}.fa-square:before{content:""}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:""}.fa-list-ul:before{content:""}.fa-list-ol:before{content:""}.fa-strikethrough:before{content:""}.fa-underline:before{content:""}.fa-table:before{content:""}.fa-magic:before{content:""}.fa-truck:before{content:""}.fa-pinterest:before{content:""}.fa-pinterest-square:before{content:""}.fa-google-plus-square:before{content:""}.fa-google-plus:before{content:""}.fa-money:before{content:""}.fa-caret-down:before{content:""}.fa-caret-up:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-columns:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-envelope:before{content:""}.fa-linkedin:before{content:""}.fa-rotate-left:before,.fa-undo:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-dashboard:before,.fa-tachometer:before{content:""}.fa-comment-o:before{content:""}.fa-comments-o:before{content:""}.fa-bolt:before,.fa-flash:before{content:""}.fa-sitemap:before{content:""}.fa-umbrella:before{content:""}.fa-clipboard:before,.fa-paste:before{content:""}.fa-lightbulb-o:before{content:""}.fa-exchange:before{content:""}.fa-cloud-download:before{content:""}.fa-cloud-upload:before{content:""}.fa-user-md:before{content:""}.fa-stethoscope:before{content:""}.fa-suitcase:before{content:""}.fa-bell-o:before{content:""}.fa-coffee:before{content:""}.fa-cutlery:before{content:""}.fa-file-text-o:before{content:""}.fa-building-o:before{content:""}.fa-hospital-o:before{content:""}.fa-ambulance:before{content:""}.fa-medkit:before{content:""}.fa-fighter-jet:before{content:""}.fa-beer:before{content:""}.fa-h-square:before{content:""}.fa-plus-square:before{content:""}.fa-angle-double-left:before{content:""}.fa-angle-double-right:before{content:""}.fa-angle-double-up:before{content:""}.fa-angle-double-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-down:before{content:""}.fa-desktop:before{content:""}.fa-laptop:before{content:""}.fa-tablet:before{content:""}.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-circle-o:before{content:""}.fa-quote-left:before{content:""}.fa-quote-right:before{content:""}.fa-spinner:before{content:""}.fa-circle:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-github-alt:before{content:""}.fa-folder-o:before{content:""}.fa-folder-open-o:before{content:""}.fa-smile-o:before{content:""}.fa-frown-o:before{content:""}.fa-meh-o:before{content:""}.fa-gamepad:before{content:""}.fa-keyboard-o:before{content:""}.fa-flag-o:before{content:""}.fa-flag-checkered:before{content:""}.fa-terminal:before{content:""}.fa-code:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:""}.fa-location-arrow:before{content:""}.fa-crop:before{content:""}.fa-code-fork:before{content:""}.fa-chain-broken:before,.fa-unlink:before{content:""}.fa-question:before{content:""}.fa-info:before{content:""}.fa-exclamation:before{content:""}.fa-superscript:before{content:""}.fa-subscript:before{content:""}.fa-eraser:before{content:""}.fa-puzzle-piece:before{content:""}.fa-microphone:before{content:""}.fa-microphone-slash:before{content:""}.fa-shield:before{content:""}.fa-calendar-o:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-rocket:before{content:""}.fa-maxcdn:before{content:""}.fa-chevron-circle-left:before{content:""}.fa-chevron-circle-right:before{content:""}.fa-chevron-circle-up:before{content:""}.fa-chevron-circle-down:before{content:""}.fa-html5:before{content:""}.fa-css3:before{content:""}.fa-anchor:before{content:""}.fa-unlock-alt:before{content:""}.fa-bullseye:before{content:""}.fa-ellipsis-h:before{content:""}.fa-ellipsis-v:before{content:""}.fa-rss-square:before{content:""}.fa-play-circle:before{content:""}.fa-ticket:before{content:""}.fa-minus-square:before{content:""}.fa-minus-square-o:before{content:""}.fa-level-up:before{content:""}.fa-level-down:before{content:""}.fa-check-square:before{content:""}.fa-pencil-square:before{content:""}.fa-external-link-square:before{content:""}.fa-share-square:before{content:""}.fa-compass:before{content:""}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:""}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:""}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:""}.fa-eur:before,.fa-euro:before{content:""}.fa-gbp:before{content:""}.fa-dollar:before,.fa-usd:before{content:""}.fa-inr:before,.fa-rupee:before{content:""}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:""}.fa-krw:before,.fa-won:before{content:""}.fa-bitcoin:before,.fa-btc:before{content:""}.fa-file:before{content:""}.fa-file-text:before{content:""}.fa-sort-alpha-asc:before{content:""}.fa-sort-alpha-desc:before{content:""}.fa-sort-amount-asc:before{content:""}.fa-sort-amount-desc:before{content:""}.fa-sort-numeric-asc:before{content:""}.fa-sort-numeric-desc:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumbs-down:before{content:""}.fa-youtube-square:before{content:""}.fa-youtube:before{content:""}.fa-xing:before{content:""}.fa-xing-square:before{content:""}.fa-youtube-play:before{content:""}.fa-dropbox:before{content:""}.fa-stack-overflow:before{content:""}.fa-instagram:before{content:""}.fa-flickr:before{content:""}.fa-adn:before{content:""}.fa-bitbucket:before{content:""}.fa-bitbucket-square:before{content:""}.fa-tumblr:before{content:""}.fa-tumblr-square:before{content:""}.fa-long-arrow-down:before{content:""}.fa-long-arrow-up:before{content:""}.fa-long-arrow-left:before{content:""}.fa-long-arrow-right:before{content:""}.fa-apple:before{content:""}.fa-windows:before{content:""}.fa-android:before{content:""}.fa-linux:before{content:""}.fa-dribbble:before{content:""}.fa-skype:before{content:""}.fa-foursquare:before{content:""}.fa-trello:before{content:""}.fa-female:before{content:""}.fa-male:before{content:""}.fa-gittip:before,.fa-gratipay:before{content:""}.fa-sun-o:before{content:""}.fa-moon-o:before{content:""}.fa-archive:before{content:""}.fa-bug:before{content:""}.fa-vk:before{content:""}.fa-weibo:before{content:""}.fa-renren:before{content:""}.fa-pagelines:before{content:""}.fa-stack-exchange:before{content:""}.fa-arrow-circle-o-right:before{content:""}.fa-arrow-circle-o-left:before{content:""}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:""}.fa-dot-circle-o:before{content:""}.fa-wheelchair:before{content:""}.fa-vimeo-square:before{content:""}.fa-try:before,.fa-turkish-lira:before{content:""}.fa-plus-square-o:before{content:""}.fa-space-shuttle:before{content:""}.fa-slack:before{content:""}.fa-envelope-square:before{content:""}.fa-wordpress:before{content:""}.fa-openid:before{content:""}.fa-bank:before,.fa-institution:before,.fa-university:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-yahoo:before{content:""}.fa-google:before{content:""}.fa-reddit:before{content:""}.fa-reddit-square:before{content:""}.fa-stumbleupon-circle:before{content:""}.fa-stumbleupon:before{content:""}.fa-delicious:before{content:""}.fa-digg:before{content:""}.fa-pied-piper-pp:before{content:""}.fa-pied-piper-alt:before{content:""}.fa-drupal:before{content:""}.fa-joomla:before{content:""}.fa-language:before{content:""}.fa-fax:before{content:""}.fa-building:before{content:""}.fa-child:before{content:""}.fa-paw:before{content:""}.fa-spoon:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-behance:before{content:""}.fa-behance-square:before{content:""}.fa-steam:before{content:""}.fa-steam-square:before{content:""}.fa-recycle:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-tree:before{content:""}.fa-spotify:before{content:""}.fa-deviantart:before{content:""}.fa-soundcloud:before{content:""}.fa-database:before{content:""}.fa-file-pdf-o:before{content:""}.fa-file-word-o:before{content:""}.fa-file-excel-o:before{content:""}.fa-file-powerpoint-o:before{content:""}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:""}.fa-file-archive-o:before,.fa-file-zip-o:before{content:""}.fa-file-audio-o:before,.fa-file-sound-o:before{content:""}.fa-file-movie-o:before,.fa-file-video-o:before{content:""}.fa-file-code-o:before{content:""}.fa-vine:before{content:""}.fa-codepen:before{content:""}.fa-jsfiddle:before{content:""}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:""}.fa-circle-o-notch:before{content:""}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:""}.fa-empire:before,.fa-ge:before{content:""}.fa-git-square:before{content:""}.fa-git:before{content:""}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:""}.fa-tencent-weibo:before{content:""}.fa-qq:before{content:""}.fa-wechat:before,.fa-weixin:before{content:""}.fa-paper-plane:before,.fa-send:before{content:""}.fa-paper-plane-o:before,.fa-send-o:before{content:""}.fa-history:before{content:""}.fa-circle-thin:before{content:""}.fa-header:before{content:""}.fa-paragraph:before{content:""}.fa-sliders:before{content:""}.fa-share-alt:before{content:""}.fa-share-alt-square:before{content:""}.fa-bomb:before{content:""}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:""}.fa-tty:before{content:""}.fa-binoculars:before{content:""}.fa-plug:before{content:""}.fa-slideshare:before{content:""}.fa-twitch:before{content:""}.fa-yelp:before{content:""}.fa-newspaper-o:before{content:""}.fa-wifi:before{content:""}.fa-calculator:before{content:""}.fa-paypal:before{content:""}.fa-google-wallet:before{content:""}.fa-cc-visa:before{content:""}.fa-cc-mastercard:before{content:""}.fa-cc-discover:before{content:""}.fa-cc-amex:before{content:""}.fa-cc-paypal:before{content:""}.fa-cc-stripe:before{content:""}.fa-bell-slash:before{content:""}.fa-bell-slash-o:before{content:""}.fa-trash:before{content:""}.fa-copyright:before{content:""}.fa-at:before{content:""}.fa-eyedropper:before{content:""}.fa-paint-brush:before{content:""}.fa-birthday-cake:before{content:""}.fa-area-chart:before{content:""}.fa-pie-chart:before{content:""}.fa-line-chart:before{content:""}.fa-lastfm:before{content:""}.fa-lastfm-square:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-bicycle:before{content:""}.fa-bus:before{content:""}.fa-ioxhost:before{content:""}.fa-angellist:before{content:""}.fa-cc:before{content:""}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:""}.fa-meanpath:before{content:""}.fa-buysellads:before{content:""}.fa-connectdevelop:before{content:""}.fa-dashcube:before{content:""}.fa-forumbee:before{content:""}.fa-leanpub:before{content:""}.fa-sellsy:before{content:""}.fa-shirtsinbulk:before{content:""}.fa-simplybuilt:before{content:""}.fa-skyatlas:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-diamond:before{content:""}.fa-ship:before{content:""}.fa-user-secret:before{content:""}.fa-motorcycle:before{content:""}.fa-street-view:before{content:""}.fa-heartbeat:before{content:""}.fa-venus:before{content:""}.fa-mars:before{content:""}.fa-mercury:before{content:""}.fa-intersex:before,.fa-transgender:before{content:""}.fa-transgender-alt:before{content:""}.fa-venus-double:before{content:""}.fa-mars-double:before{content:""}.fa-venus-mars:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-v:before{content:""}.fa-mars-stroke-h:before{content:""}.fa-neuter:before{content:""}.fa-genderless:before{content:""}.fa-facebook-official:before{content:""}.fa-pinterest-p:before{content:""}.fa-whatsapp:before{content:""}.fa-server:before{content:""}.fa-user-plus:before{content:""}.fa-user-times:before{content:""}.fa-bed:before,.fa-hotel:before{content:""}.fa-viacoin:before{content:""}.fa-train:before{content:""}.fa-subway:before{content:""}.fa-medium:before{content:""}.fa-y-combinator:before,.fa-yc:before{content:""}.fa-optin-monster:before{content:""}.fa-opencart:before{content:""}.fa-expeditedssl:before{content:""}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-three-quarters:before{content:""}.fa-battery-2:before,.fa-battery-half:before{content:""}.fa-battery-1:before,.fa-battery-quarter:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-mouse-pointer:before{content:""}.fa-i-cursor:before{content:""}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-sticky-note:before{content:""}.fa-sticky-note-o:before{content:""}.fa-cc-jcb:before{content:""}.fa-cc-diners-club:before{content:""}.fa-clone:before{content:""}.fa-balance-scale:before{content:""}.fa-hourglass-o:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass:before{content:""}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:""}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:""}.fa-hand-scissors-o:before{content:""}.fa-hand-lizard-o:before{content:""}.fa-hand-spock-o:before{content:""}.fa-hand-pointer-o:before{content:""}.fa-hand-peace-o:before{content:""}.fa-trademark:before{content:""}.fa-registered:before{content:""}.fa-creative-commons:before{content:""}.fa-gg:before{content:""}.fa-gg-circle:before{content:""}.fa-tripadvisor:before{content:""}.fa-odnoklassniki:before{content:""}.fa-odnoklassniki-square:before{content:""}.fa-get-pocket:before{content:""}.fa-wikipedia-w:before{content:""}.fa-safari:before{content:""}.fa-chrome:before{content:""}.fa-firefox:before{content:""}.fa-opera:before{content:""}.fa-internet-explorer:before{content:""}.fa-television:before,.fa-tv:before{content:""}.fa-contao:before{content:""}.fa-500px:before{content:""}.fa-amazon:before{content:""}.fa-calendar-plus-o:before{content:""}.fa-calendar-minus-o:before{content:""}.fa-calendar-times-o:before{content:""}.fa-calendar-check-o:before{content:""}.fa-industry:before{content:""}.fa-map-pin:before{content:""}.fa-map-signs:before{content:""}.fa-map-o:before{content:""}.fa-map:before{content:""}.fa-commenting:before{content:""}.fa-commenting-o:before{content:""}.fa-houzz:before{content:""}.fa-vimeo:before{content:""}.fa-black-tie:before{content:""}.fa-fonticons:before{content:""}.fa-reddit-alien:before{content:""}.fa-edge:before{content:""}.fa-credit-card-alt:before{content:""}.fa-codiepie:before{content:""}.fa-modx:before{content:""}.fa-fort-awesome:before{content:""}.fa-usb:before{content:""}.fa-product-hunt:before{content:""}.fa-mixcloud:before{content:""}.fa-scribd:before{content:""}.fa-pause-circle:before{content:""}.fa-pause-circle-o:before{content:""}.fa-stop-circle:before{content:""}.fa-stop-circle-o:before{content:""}.fa-shopping-bag:before{content:""}.fa-shopping-basket:before{content:""}.fa-hashtag:before{content:""}.fa-bluetooth:before{content:""}.fa-bluetooth-b:before{content:""}.fa-percent:before{content:""}.fa-gitlab:before{content:""}.fa-wpbeginner:before{content:""}.fa-wpforms:before{content:""}.fa-envira:before{content:""}.fa-universal-access:before{content:""}.fa-wheelchair-alt:before{content:""}.fa-question-circle-o:before{content:""}.fa-blind:before{content:""}.fa-audio-description:before{content:""}.fa-volume-control-phone:before{content:""}.fa-braille:before{content:""}.fa-assistive-listening-systems:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:""}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:""}.fa-glide:before{content:""}.fa-glide-g:before{content:""}.fa-sign-language:before,.fa-signing:before{content:""}.fa-low-vision:before{content:""}.fa-viadeo:before{content:""}.fa-viadeo-square:before{content:""}.fa-snapchat:before{content:""}.fa-snapchat-ghost:before{content:""}.fa-snapchat-square:before{content:""}.fa-pied-piper:before{content:""}.fa-first-order:before{content:""}.fa-yoast:before{content:""}.fa-themeisle:before{content:""}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:""}.fa-fa:before,.fa-font-awesome:before{content:""}.fa-handshake-o:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-o:before{content:""}.fa-linode:before{content:""}.fa-address-book:before{content:""}.fa-address-book-o:before{content:""}.fa-address-card:before,.fa-vcard:before{content:""}.fa-address-card-o:before,.fa-vcard-o:before{content:""}.fa-user-circle:before{content:""}.fa-user-circle-o:before{content:""}.fa-user-o:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-drivers-license-o:before,.fa-id-card-o:before{content:""}.fa-quora:before{content:""}.fa-free-code-camp:before{content:""}.fa-telegram:before{content:""}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:""}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-shower:before{content:""}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:""}.fa-podcast:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:""}.fa-bandcamp:before{content:""}.fa-grav:before{content:""}.fa-etsy:before{content:""}.fa-imdb:before{content:""}.fa-ravelry:before{content:""}.fa-eercast:before{content:""}.fa-microchip:before{content:""}.fa-snowflake-o:before{content:""}.fa-superpowers:before{content:""}.fa-wpexplorer:before{content:""}.fa-meetup:before{content:""}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}.tooltip .tooltip-inner{background-color:#fff;border:1px solid #ccc;color:#000}.tooltip-arrow:after{content:'';position:absolute;width:0;height:0;border:solid transparent;z-index:-1}.tooltip{z-index:100010;position:fixed}.tooltip.top{padding:6px 0}.tooltip.right{padding:0 6px}.tooltip.bottom{padding:6px 0}.tooltip.left{padding:0 6px}.tooltip.in{opacity:1!important}.tooltip.top .tooltip-arrow{bottom:2px;border-top-color:#fff}.tooltip.top .tooltip-arrow:after{bottom:-2px;left:50%;margin-left:-6px;border-width:6px 6px 0;border-top-color:#ccc}.tooltip.bottom .tooltip-arrow{top:2px;border-bottom-color:#fff}.tooltip.bottom .tooltip-arrow:after{top:-2px;left:50%;margin-left:-6px;border-width:0 6px 6px;border-bottom-color:#ccc}.tooltip.left .tooltip-arrow{right:2px;border-left-color:#fff}.tooltip.left .tooltip-arrow:after{right:-2px;top:50%;margin-top:-6px;border-width:6px 0 6px 6px;border-left-color:#ccc}.tooltip.right .tooltip-arrow{left:2px;border-right-color:#fff}.tooltip.right .tooltip-arrow:after{left:-2px;top:50%;margin-top:-6px;border-width:6px 6px 6px 0;border-right-color:#ccc}.uhk-icon-0401-usb-stick,.uhk-icon-agent-icon{background:url("data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg width%3D%2231%22 height%3D%2216%22 viewBox%3D%220 0 31 16%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Csvg width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22 id%3D%22icon-0401-usb-stick%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M6.5 2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-.5-.5zM8.5 2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-.5-.5z%22%2F%3E%3Cpath d%3D%22M11.5 5H11V.5a.5.5 0 0 0-.5-.5h-6a.5.5 0 0 0-.5.5V5h-.5a.5.5 0 0 0-.5.5v9.375c1 1.5 8 1.5 9 0V5.5a.5.5 0 0 0-.5-.5zM5 13.5a.5.5 0 0 1-1 0v-6a.5.5 0 0 1 1 0v6zM10 5H5V1h5v4z%22%2F%3E%3C%2Fsvg%3E%3Csvg width%3D%2215%22 height%3D%2215%22 viewBox%3D%220 0 15 15%22 id%3D%22icon-agent-icon%22 x%3D%2216%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cdefs%3E%3ClinearGradient x2%3D%221%22 gradientUnits%3D%22userSpaceOnUse%22 gradientTransform%3D%22matrix(12 0 0 -12 0 6)%22 id%3D%22abb%22%3E%3Cstop offset%3D%220%22 stop-color%3D%22%2385878d%22%2F%3E%3Cstop offset%3D%22.001%22 stop-color%3D%22%2385878d%22%2F%3E%3Cstop offset%3D%22.001%22 stop-color%3D%22%235d5f63%22%2F%3E%3Cstop offset%3D%22.526%22 stop-color%3D%22%23ccc%22%2F%3E%3Cstop offset%3D%221%22 stop-color%3D%22%235d5c62%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient id%3D%22aba%22 gradientTransform%3D%22matrix(12 0 0 -12 0 6)%22 gradientUnits%3D%22userSpaceOnUse%22 x2%3D%221%22%3E%3Cstop offset%3D%220%22 stop-color%3D%22%2385878d%22%2F%3E%3Cstop offset%3D%22.001%22 stop-color%3D%22%2385878d%22%2F%3E%3Cstop offset%3D%22.001%22 stop-color%3D%22%2385878d%22%2F%3E%3Cstop offset%3D%22.495%22 stop-color%3D%22%23ccc%22%2F%3E%3Cstop offset%3D%221%22 stop-color%3D%22%235d5c62%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath id%3D%22abc%22%3E%3Cpath d%3D%22M2.398 12A2.393 2.393 0 0 1 0 9.602V2.398A2.393 2.393 0 0 1 2.398 0h7.203A2.394 2.394 0 0 1 12 2.398v7.204A2.394 2.394 0 0 1 9.601 12H2.398zM.602 7.199v1.199c0 .454.329.575.5.602.054.008.097 0 .097 0h3.602c.301 0 .597-.301.597-.301s.301-.301.602-.301.602.301.602.301.296.301.597.301h3.602c.597 0 .597-.602.597-.602V7.199c0-1.801-1.199-1.801-1.199-1.801h-3c-.301 0-.597.903-.597.903s-.301.898-.602.898-.602-.898-.602-.898-.296-.903-.597-.903h-3s-1.199 0-1.199 1.801%22%2F%3E%3C%2FclipPath%3E%3ClinearGradient gradientUnits%3D%22userSpaceOnUse%22 x2%3D%2211.746%22 y1%3D%2211.542%22 x1%3D%22.915%22 id%3D%22abd%22 xlink%3Ahref%3D%22%23aba%22%2F%3E%3ClinearGradient y2%3D%22-.051%22 x2%3D%2212%22 y1%3D%2211.898%22 x1%3D%22.102%22 gradientUnits%3D%22userSpaceOnUse%22 id%3D%22abe%22 xlink%3Ahref%3D%22%23abb%22%2F%3E%3C%2Fdefs%3E%3Cg transform%3D%22matrix(1.25 0 0 -1.25 0 15)%22%3E%3Cpath d%3D%22M11.473 5.117H.416v4.266h11.057V5.117z%22 fill%3D%22%23343434%22%2F%3E%3Cg clip-path%3D%22url(%23abc)%22 fill%3D%22url(%23abd)%22%3E%3Cpath d%3D%22M2.398 12A2.393 2.393 0 0 1 0 9.602V2.398A2.393 2.393 0 0 1 2.398 0h7.203A2.394 2.394 0 0 1 12 2.398v7.204A2.394 2.394 0 0 1 9.601 12H2.398zM.602 7.199v1.199c0 .454.329.575.5.602.054.008.097 0 .097 0h3.602c.301 0 .597-.301.597-.301s.301-.301.602-.301.602.301.602.301.296.301.597.301h3.602c.597 0 .597-.602.597-.602V7.199c0-1.801-1.199-1.801-1.199-1.801h-3c-.301 0-.597.903-.597.903s-.301.898-.602.898-.602-.898-.602-.898-.296-.903-.597-.903h-3s-1.199 0-1.199 1.801%22 fill%3D%22url(%23abe)%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%3C%2Fsvg%3E") no-repeat}.uhk-icon-0401-usb-stick{background-position:0 0}.uhk-icon-agent-icon{background-position:100% 0}.side-menu-pane-title{margin-bottom:1em}.side-menu-pane-title__name{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem;text-overflow:ellipsis;background-color:transparent}.side-menu-pane-title__name:focus{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent;background-color:transparent}.side-menu-pane-title__name:disabled{border-bottom:none}body,html{width:100%;height:100%}.uhk-icon{display:inline-block;width:1em;height:1em;background-size:auto 100%;vertical-align:text-bottom}.rotate-right{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:26px}.main-content{height:100%}.main-page-content{margin-left:250px;overflow-x:hidden;min-height:100%}.select2-container{z-index:1100}.select2-container .scancode--searchterm{text-align:right;color:#b7b7b7}.select2-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.select2-results{text-align:left}.select2-container--default .select2-dropdown--below .select2-results>.select2-results__options{max-height:300px}ul.btn-list li{margin-top:.5em}ul.no-indent{padding-left:1em;margin-bottom:0}.h1,.h2,.h3,h1,h2,h3{margin-top:10px}input[type=file]{display:inline-block}a.disabled{pointer-events:none;cursor:default}.full-height{height:100%;width:100%;display:inline-block}.noUi-value{top:2rem}.btn-file{position:relative;overflow:hidden}.btn-file input[type=file]{position:absolute;top:0;right:0;min-width:100%;min-height:100%;font-size:100px;text-align:right;filter:alpha(opacity=0);opacity:0;outline:0;background:#fff;cursor:inherit;display:block}a.link-inline{cursor:pointer}code,pre code{color:#6a737d;background-color:#f6f8fa;text-align:left}.mt-10{margin-top:10px}.copy-container{position:relative}.copy-container .fa-copy{cursor:pointer;color:#6a737d;position:absolute;right:4px;top:4px}.copy-container .fa-copy:hover{color:#474d54}.flex-container{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-grow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-flex:1;-ms-flex:1;flex:1}.flex-footer{margin-top:.5em;margin-bottom:.5em}.ok-button{min-width:100px}.d-inline-block{display:inline-block} \ No newline at end of file