From 0f757943f11ca553f3bc14caa7979117ff94e4b7 Mon Sep 17 00:00:00 2001 From: Elmore Cheng <9206414+ike-c@users.noreply.github.com> Date: Wed, 10 Jul 2019 23:19:24 +0800 Subject: [PATCH] Dark mode (#106) * update some text * update front-end source * fix incorrect modification of article img --- README.md | 10 ++---- README_zh-Hans.md | 10 ++---- _config.yml | 39 +++++++++++++-------- lib/configSchema.json | 14 ++++++++ lib/filter/post.js | 14 ++++---- lib/generator/theme.js | 4 +-- package.json | 2 +- source/_resources.json | 2 +- source/_theme.js | 2 +- source/main.12166a654353e0a82d68.zh-Hant.js | 1 - source/main.1c6c0dbb8fec445fc42a.ja.js | 1 + source/main.3a9ad2f49fd8634e7fa0.zh-Hans.js | 1 - source/main.7c07007d02c08b471cdf.en.js | 1 + source/main.9d756d57e227aba70f33.zh-Hant.js | 1 + source/main.c0d55e7428280128d494.en.js | 1 - source/main.d55b8d92fb07c381cd17.zh-Hans.js | 1 + source/main.e01c85758301d20058a7.ja.js | 1 - source/styles.6413cb5fd384752f1714.css | 24 ------------- source/styles.b052e0427aa70b7d0587.css | 24 +++++++++++++ test/scripts/filters/post.js | 24 ++++++------- 20 files changed, 93 insertions(+), 84 deletions(-) delete mode 100644 source/main.12166a654353e0a82d68.zh-Hant.js create mode 100644 source/main.1c6c0dbb8fec445fc42a.ja.js delete mode 100644 source/main.3a9ad2f49fd8634e7fa0.zh-Hans.js create mode 100644 source/main.7c07007d02c08b471cdf.en.js create mode 100644 source/main.9d756d57e227aba70f33.zh-Hant.js delete mode 100644 source/main.c0d55e7428280128d494.en.js create mode 100644 source/main.d55b8d92fb07c381cd17.zh-Hans.js delete mode 100644 source/main.e01c85758301d20058a7.ja.js delete mode 100644 source/styles.6413cb5fd384752f1714.css create mode 100644 source/styles.b052e0427aa70b7d0587.css diff --git a/README.md b/README.md index d920d93..04348a1 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,9 @@ ## Features - SPA built with [angular] -- Custom accent color, background, fonts +- Custom accent color, background, fonts, dark mode - Custom code syntax highlighting -- Sub-page routes -- Internationalization (i18n) - - :cn: Simplified Chinese & Traditional Chinese - - :us: English - - :jp: Japanese +- Sub-page - Search - Comments - [Disqus] @@ -47,10 +43,8 @@ - [manifest.json] - Offline support ([workbox]) - SEO - - Canonical link - Built-in `sitemap.xml` - [Structured Data] - - Open Graph Meta Tags ## Quick start diff --git a/README_zh-Hans.md b/README_zh-Hans.md index 81563a4..d71e7ac 100644 --- a/README_zh-Hans.md +++ b/README_zh-Hans.md @@ -21,13 +21,9 @@ ## 特色 - SPA built with [angular] -- 自定义色调、背景、字体 +- 自定义色调、背景、字体、暗色主题 - 自定义代码语法高亮 -- 可嵌套的 page 路由 -- 多语言 (i18n) - - :cn: Simplified Chinese & Traditional Chinese - - :us: English - - :jp: Japanese +- 可嵌套 page 路由 - 评论 - [Disqus] - [LiveRe] @@ -46,10 +42,8 @@ - [manifest.json] - 离线支持 ([workbox]) - SEO - - canonical link - 内置 `sitemap.xml` - [Structured Data] - - Open Graph Meta Tags ## 开始使用 diff --git a/_config.yml b/_config.yml index 7ed2ee4..a7c6634 100644 --- a/_config.yml +++ b/_config.yml @@ -19,6 +19,10 @@ appearance: # - 'url(//www.toptal.com/designers/subtlepatterns/patterns/confectionary.png) #f5f7fa' # - '#2a2b33' + # You can also set only the background when the sidebar is open. + # background: + # - '#2a2b33' + # Maximum width of content # content_width: 640 @@ -48,9 +52,9 @@ appearance: # Code and code block code: Inconsolata, monospace - # Code Highlight theme + # Code Syntax Highlighting # Uses an architecture called "base16" (https://github.com/chriskempson/base16), - # the default highlight theme is a customized Atelier Dune Light theme, + # the default theme is a customized Atelier Dune Light theme, # please feel free to explore more. highlight: @@ -78,29 +82,38 @@ appearance: # '#8abeb7', '#81a2be', '#b294bb', '#a3685a' # ] + # Mode + # Specify `dark` to apply a built-in dark mode, + # or fully custom colors: `[foreground color, card background, border-color]` + # Note, the middle value can be any valid css background value + # `mode: dark` is equivalent to `mode: ['#d8d8d8', '#252525', '#444']` + mode: + # Sidebar profile profile: - # `email` will fallback to `hexo.config.email` if not specified + # `email` is used for gravatar(https://en.gravatar.com), + # fallback to `hexo.config.email` if not specified email: - # Avatar URL, email address will be used for gravatar(https://en.gravatar.com) avatar if not specified. + # You can set Avatar URL directly # avatar: bio: Awesome guy. -# Sidebar menu +# Sidebar navigation links menu: Home: / # About: /about # Links: /links # Github: https://github.com/username -# Sidebar social media +# Social media URL # Try to sort by changing the order of the keys sns: # `email` will fallback to `profile.email` if not specified email: - # `feed` will fallback to `hexo.config.feed.path` if not specified + # If you use hexo-generator-feed, `sns.feed` can be left blank + # and the theme will try to get `hexo.config.feed.path`. feed: github: twitter: @@ -118,10 +131,10 @@ sns: weibo: qq: -# Sidebar footer +# Sidebar footer copyright info footer: - # Default to `©year • author`, set to false to disable. - # copyright: + # Set to false to hide. + # copyright: '© 2019 • John Doe' # Set to false to hide Hexo link. # powered: false @@ -154,13 +167,9 @@ page: post: # per_page: 10 - # Display Table of content, default to `true` + # The following settings are the same as the page # toc: false - - # Display reward, default to `false` # reward: true - - # Display copyright notice, default to `false` # copyright: true # Archive diff --git a/lib/configSchema.json b/lib/configSchema.json index 23102c5..1ef874a 100644 --- a/lib/configSchema.json +++ b/lib/configSchema.json @@ -49,6 +49,20 @@ "type": "array", "items": { "$ref": "#/definitions/color" }, "minItems": 15 + }, + "mode": { + "oneOf": [ + { "enum": ["dark"] }, + { + "type": "array", + "items": [ + { "$ref": "#/definitions/color" }, + { "type": "string" }, + { "$ref": "#/definitions/color" } + ], + "minItems": 3 + } + ] } }, "required": ["accent_color"], diff --git a/lib/filter/post.js b/lib/filter/post.js index 2b6aea8..4ae6a84 100644 --- a/lib/filter/post.js +++ b/lib/filter/post.js @@ -2,7 +2,6 @@ const cheerio = require('cheerio'); const { date } = require('hexo/lib/plugins/helper/date'); const bounded = '
'; const table = '
'; -const img = '
'; const { snippet, getPagePath, parseToc, isObject, isEmptyObject, localeId, pick } = require('../utils'); // cache @@ -112,18 +111,17 @@ module.exports = function (data) { $('img').each(function () { const $img = $(this); const src = $img.attr('src'); - const $parents = $img.parents(); // assets & post_asset_folder src && $img.attr('src', uriReplacer(src, assetPath)); - // definitely a block img - if (!$parents.length || !$parents.eq($parents.length - 1).text().trim()) { + if ( + this.root // {% img %} + || (this.parent.tagName === 'p' && !$(this.parent).text().trim()) // \n![]()\n + || (this.parent.tagName === 'figure') //
+ ) { // mark as zoomable - $img.attr('data-zoomable', ''); - - // wrap img to behave as a block - (!$parents.length ? $img : $parents.eq($parents.length - 1)).wrap(img); + $img.addClass('article-img'); } }); diff --git a/lib/generator/theme.js b/lib/generator/theme.js index fb8294b..d9768c9 100644 --- a/lib/generator/theme.js +++ b/lib/generator/theme.js @@ -1,9 +1,9 @@ const { md5 } = require('../utils'); -const generateTheme = require('../../source/_theme.js').default; +const { $appearance } = require('../../source/_theme.js'); module.exports = function () { const theme = this.theme.config; - const data = generateTheme(theme.appearance); + const data = $appearance(theme.appearance); theme.runtime.themeHash = md5(data); diff --git a/package.json b/package.json index 97bb990..b213a94 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-inside", - "version": "2.3.0-beta.3", + "version": "2.3.0-rc.0", "description": "❤️ SPA, flat and clean theme for Hexo.", "scripts": { "test": "jasmine --config=test/jasmine.json" diff --git a/source/_resources.json b/source/_resources.json index 9bb3694..c99a2e0 100644 --- a/source/_resources.json +++ b/source/_resources.json @@ -1 +1 @@ -{"styles":["styles.6413cb5fd384752f1714.css"],"scripts":["runtime.9c308a63d02029c20228.js","polyfills-es5.613d1909ec381c0aefb7.js","polyfills.23aa31104b29f3163090.js"],"locales":{"en":"main.c0d55e7428280128d494.en.js","zh-Hant":"main.12166a654353e0a82d68.zh-Hant.js","zh-Hans":"main.3a9ad2f49fd8634e7fa0.zh-Hans.js","ja":"main.e01c85758301d20058a7.ja.js"}} +{"styles":["styles.b052e0427aa70b7d0587.css"],"scripts":["runtime.9c308a63d02029c20228.js","polyfills-es5.613d1909ec381c0aefb7.js","polyfills.23aa31104b29f3163090.js"],"locales":{"ja":"main.1c6c0dbb8fec445fc42a.ja.js","en":"main.7c07007d02c08b471cdf.en.js","zh-Hant":"main.9d756d57e227aba70f33.zh-Hant.js","zh-Hans":"main.d55b8d92fb07c381cd17.zh-Hans.js"}} diff --git a/source/_theme.js b/source/_theme.js index eb660ae..d287bbf 100644 --- a/source/_theme.js +++ b/source/_theme.js @@ -1 +1 @@ -module.exports=function(t){var o={};function r(e){if(o[e])return o[e].exports;var i=o[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=o,r.d=function(t,o,e){r.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,o){if(1&o&&(t=r(t)),8&o)return t;if(4&o&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var i in t)r.d(e,i,function(o){return t[o]}.bind(null,i));return e},r.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(o,"a",o),o},r.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},r.p="",r(r.s=1)}([function(t,o,r){"use strict";t.exports=function(t){var o=[];return o.toString=function(){return this.map(function(o){var r=function(t,o){var r=t[1]||"",e=t[3];if(!e)return r;if(o&&"function"==typeof btoa){var i=(a=e,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),n=e.sources.map(function(t){return"/*# sourceURL="+e.sourceRoot+t+" */"});return[r].concat(n).concat([i]).join("\n")}var a;return[r].join("\n")}(o,t);return o[2]?"@media "+o[2]+"{"+r+"}":r}).join("")},o.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var e={},i=0;i640&&o.push(a.content_width.replace(/CONTENT_WIDTH/g,t.content_width));var N=[];if(t.highlight)for(var x=0;x<15;x++){var k=t.highlight[x];if(!k||!i.test(k)){N=l;break}N.push(k.toLowerCase())}else N=l;return o.push(b(N,a.highlight.base)),p(N[0])?p(N[1])?o.push(a.highlight.bordered_mix):o.push(b(N,a.highlight.bordered)):(p(N[1])&&(N[1]=N[0]),o.push(b(N,a.highlight.flat))),o.join("")}},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".M2M5Yj{max-width:CONTENT_WIDTHpx}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,"::-moz-selection{background-color:COLOR;color:#fff}::selection{background-color:COLOR;color:#fff}::-webkit-scrollbar-thumb{background-color:COLOR_02}::-webkit-scrollbar-thumb:hover{background-color:COLOR_08}code{color:COLOR}.article-table tr:nth-child(2n),code{background-color:COLOR_005}@media (max-width:676px){.ODliMm{background:INSIDE}}.MDIwY2:after,.NDRhMD:active:before,.NDRhMD:focus:before,.NDRhMD:hover:before,.NWU0Mm:before,.ZDEzNm,.ZGI2Yj:active:after,.ZGI2Yj:focus:after,.ZGI2Yj:hover:after,.ZTc2YW:active,.ZTc2YW:focus,.ZTc2YW:hover{background-color:COLOR}.ZTY1Nz{background-color:COLOR_01}.NzBlYj{background-color:COLOR_005}.MWNmNz:active,.MWNmNz:focus,.MWNmNz:hover,.MzExYm{color:COLOR}.ZjMzMT{border-color:COLOR}.NDljY2{border-color:COLOR_04}.MTE0NG a:hover{border-color:COLOR;color:COLOR}.N2QzMz{stroke:COLOR}.NzYzYj{fill:COLOR}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".NTRkMD,body{background:BACKGROUND}@media (max-width:676px){.ZWQxMj{background:BACKGROUND}}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,"body{font-family:FONT_BASE}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".YjBlMT{font-family:FONT_LOGO}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".MWZhMW{font-family:FONT_MENU}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".NmViMj,h1,h2,h3,h4,h5,h6{font-family:FONT_HEADING}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".N2U4Zj,.YThjOW:after{font-family:FONT_LABEL}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".highlight figcaption,code,pre{font-family:FONT_CODE}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".highlight{border-radius:3px;color:base05}.highlight .gutter{color:base03}.highlight figcaption{color:base04}.highlight figcaption a,.highlight figcaption a:hover{color:base0C}.highlight ::-webkit-scrollbar-thumb{background-color:base01}.highlight ::-webkit-scrollbar-thumb:hover{background-color:base02}.highlight ::-moz-selection{background-color:base02;color:inherit}.highlight ::selection{background-color:base02;color:inherit}.highlight .comment,.highlight .quote{color:base03}.highlight .deletion,.highlight .name,.highlight .regexp,.highlight .selector-class,.highlight .selector-id,.highlight .tag,.highlight .template-variable,.highlight .variable{color:base08}.highlight .built_in,.highlight .builtin-name,.highlight .link,.highlight .literal,.highlight .meta,.highlight .number,.highlight .params,.highlight .type{color:base09}.highlight .attribute{color:base0A}.highlight .addition,.highlight .bullet,.highlight .string,.highlight .symbol{color:base0B}.highlight .section,.highlight .title{color:base0D}.highlight .keyword,.highlight .selector-tag{color:base0E}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".highlight{background-color:base00}.highlight figcaption{border-radius:3px 3px 0 0;background-color:base01}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".highlight{border:1px solid base01}.highlight figcaption{background-color:base01}",""])},function(t,o,r){(t.exports=r(0)(!1)).push([t.i,".highlight{border:1px solid #eee}.highlight figcaption{border-bottom:1px solid #eee}",""])}]); \ No newline at end of file +!function(o,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e=t();for(var r in e)("object"==typeof exports?exports:o)[r]=e[r]}}(this.__inside__||(this.__inside__={}),function(){return function(o){var t={};function e(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return o[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=o,e.c=t,e.d=function(o,t,r){e.o(o,t)||Object.defineProperty(o,t,{enumerable:!0,get:r})},e.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},e.t=function(o,t){if(1&t&&(o=e(o)),8&t)return o;if(4&t&&"object"==typeof o&&o&&o.__esModule)return o;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:o}),2&t&&"string"!=typeof o)for(var i in o)e.d(r,i,function(t){return o[t]}.bind(null,i));return r},e.n=function(o){var t=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(t,"a",t),t},e.o=function(o,t){return Object.prototype.hasOwnProperty.call(o,t)},e.p="",e(e.s=1)}([function(o,t,e){"use strict";o.exports=function(o){var t=[];return t.toString=function(){return this.map(function(t){var e=function(o,t){var e=o[1]||"",r=o[3];if(!r)return e;if(t&&"function"==typeof btoa){var i=(h=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(h))))+" */"),n=r.sources.map(function(o){return"/*# sourceURL="+r.sourceRoot+o+" */"});return[e].concat(n).concat([i]).join("\n")}var h;return[e].join("\n")}(t,o);return t[2]?"@media "+t[2]+"{"+e+"}":e}).join("")},t.i=function(o,e){"string"==typeof o&&(o=[[null,o,""]]);for(var r={},i=0;i640&&(e.content_width=a),Array.isArray(c)?(e.highlight=c.map(function(o){return g(o).hex}).filter(function(o){return o}),e.highlight.length<16&&(e.highlight=t.highlight)):e.highlight=t.highlight,e}(o,"dark"===o.mode?c:a),e=[];if(e.push(h.mode.replace(/MODE_FG/g,t.mode[0]).replace(/MODE_CARD_BG/g,t.mode[1]).replace(/MODE_BORDER/g,t.mode[2])),t.font){var r=t.font;r.base&&e.push(h.font.base.replace(/FONT_BASE/g,r.base)),r.logo&&e.push(h.font.logo.replace(/FONT_LOGO/g,r.logo)),r.menu&&e.push(h.font.menu.replace(/FONT_MENU/g,r.menu)),r.heading&&e.push(h.font.heading.replace(/FONT_HEADING/g,r.heading)),r.label&&e.push(h.font.label.replace(/FONT_LABEL/g,r.label)),r.code&&e.push(h.font.code.replace(/FONT_CODE/g,r.code))}var i=g(t.accent_color);return e.push(h.background.replace(/BACKGROUND/g,t.background[0]),h.accent_color.replace(/COLOR_005/g,"rgba("+i.r+","+i.g+","+i.b+",.05)").replace(/COLOR_01/g,"rgba("+i.r+","+i.g+","+i.b+",.1)").replace(/COLOR_02/g,"rgba("+i.r+","+i.g+","+i.b+",.2)").replace(/COLOR_04/g,"rgba("+i.r+","+i.g+","+i.b+",.4)").replace(/COLOR_08/g,"rgba("+i.r+","+i.g+","+i.b+",.8)").replace(/COLOR/g,i.hex).replace(/INSIDE/g,l(t.background[1]))),t.content_width&&e.push(h.content_width.replace(/CONTENT_WIDTH/g,t.content_width)),e.push(d(h.highlight.base,t.highlight)),s(t.mode[1],t.highlight[0])||s(t.highlight[15],t.highlight[0])?s(t.mode[1],t.highlight[1])||s(t.highlight[15],t.highlight[1])?e.push(h.highlight.bordered_mix):e.push(d(h.highlight.bordered,t.highlight)):(s(t.mode[1],t.highlight[1])&&(t.highlight[1]=t.highlight[0]),e.push(d(h.highlight.flat,t.highlight))),e.join("")}}},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,"body{color:MODE_FG}.ODJkZm,.OTljY2:after{background:MODE_CARD_BG}.MzRmOW{border-color:MODE_BORDER}.ZjkxNT:after{box-shadow:0 0 0 1px MODE_BORDER}.article-bounded ::-webkit-scrollbar-thumb{background-color:MODE_BORDER}.article-bounded ::-webkit-scrollbar-thumb:hover{background-color:MODE_FG}.article-bounded>div{box-shadow:inset 0 0 0 1px MODE_BORDER}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".M2M5Yj{max-width:CONTENT_WIDTHpx}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,"::-moz-selection{background-color:COLOR;color:#fff}::selection{background-color:COLOR;color:#fff}::-webkit-scrollbar-thumb{background-color:COLOR_02}::-webkit-scrollbar-thumb:hover{background-color:COLOR_08}code{color:COLOR}.article-table tr:nth-child(2n),code{background-color:COLOR_005}@media (max-width:676px){.ODliMm{background:INSIDE}}.MDIwY2:after,.NDRhMD:active:before,.NDRhMD:focus:before,.NDRhMD:hover:before,.NWU0Mm:before,.ZDEzNm,.ZGI2Yj:active:after,.ZGI2Yj:focus:after,.ZGI2Yj:hover:after,.ZTc2YW:active,.ZTc2YW:focus,.ZTc2YW:hover{background-color:COLOR}.ZTY1Nz{background-color:COLOR_01}.NzBlYj{background-color:COLOR_005}.MWNmNz:active,.MWNmNz:focus,.MWNmNz:hover,.MzExYm{color:COLOR}.ZjMzMT{border-color:COLOR}.NDljY2{border-color:COLOR_04}.MTE0NG a:hover{border-color:COLOR;color:COLOR}.N2QzMz{stroke:COLOR}.NzYzYj{fill:COLOR}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".MmYyMT:after,.NTRkMD,body{background:BACKGROUND}@media (max-width:676px){.ZWQxMj{background:BACKGROUND}}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,"body{font-family:FONT_BASE}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".YjBlMT{font-family:FONT_LOGO}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".MWZhMW{font-family:FONT_MENU}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".NmViMj,h1,h2,h3,h4,h5,h6{font-family:FONT_HEADING}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".N2U4Zj,.YThjOW:after{font-family:FONT_LABEL}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".highlight figcaption,code,pre{font-family:FONT_CODE}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".highlight{border-radius:3px;color:base05}.highlight .gutter{color:base03}.highlight figcaption{color:base04}.highlight figcaption a,.highlight figcaption a:hover{color:base0C}.highlight ::-webkit-scrollbar-thumb{background-color:base01}.highlight ::-webkit-scrollbar-thumb:hover{background-color:base02}.highlight ::-moz-selection{background-color:base02;color:inherit}.highlight ::selection{background-color:base02;color:inherit}.highlight .comment,.highlight .quote{color:base03}.highlight .deletion,.highlight .name,.highlight .regexp,.highlight .selector-class,.highlight .selector-id,.highlight .tag,.highlight .template-variable,.highlight .variable{color:base08}.highlight .built_in,.highlight .builtin-name,.highlight .link,.highlight .literal,.highlight .meta,.highlight .number,.highlight .params,.highlight .type{color:base09}.highlight .attribute{color:base0A}.highlight .addition,.highlight .bullet,.highlight .string,.highlight .symbol{color:base0B}.highlight .section,.highlight .title{color:base0D}.highlight .keyword,.highlight .selector-tag{color:base0E}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".highlight{background-color:base00}.highlight figcaption{border-radius:3px 3px 0 0;background-color:base01}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".highlight{border:1px solid base01}.highlight figcaption{background-color:base01}",""])},function(o,t,e){(o.exports=e(0)(!1)).push([o.i,".highlight{border:1px solid;border-color:inherit}.highlight figcaption{border-bottom:1px solid;border-color:inherit}",""])}])}); \ No newline at end of file diff --git a/source/main.12166a654353e0a82d68.zh-Hant.js b/source/main.12166a654353e0a82d68.zh-Hant.js deleted file mode 100644 index 7491d9a..0000000 --- a/source/main.12166a654353e0a82d68.zh-Hant.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},u6yn:function(t,e,n){var r,i,o;!function(l){if("object"==typeof t.exports){var u=l(0,e);void 0!==u&&(t.exports=u)}else i=[n,e],void 0===(o="function"==typeof(r=l)?r.apply(e,i):r)||(t.exports=o)}(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=void 0;e.default=["zh-Hant",[["\u4e0a\u5348","\u4e0b\u5348"],n,n],n,[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u9031\u65e5","\u9031\u4e00","\u9031\u4e8c","\u9031\u4e09","\u9031\u56db","\u9031\u4e94","\u9031\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],n],n,[["\u897f\u5143\u524d","\u897f\u5143"],n,n],0,[6,0],["y/M/d","y\u5e74M\u6708d\u65e5",n,"y\u5e74M\u6708d\u65e5 EEEE"],["ah:mm","ah:mm:ss","ah:mm:ss [z]","ah:mm:ss [zzzz]"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","\u975e\u6578\u503c",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","\u65b0\u53f0\u5e63",{AUD:["AU$","$"],KRW:["\uffe6","\u20a9"],RON:[n,"L"],TWD:["$"],USD:["US$","$"]},function(t){return 5}]})},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("u6yn"),i=n.n(r),o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function l(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;u--)(i=t[u])&&(l=(o<3?i(l):o>3?i(e,n,l):i(e,n))||l);return o>3&&l&&Object.defineProperty(e,n,l),l}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)l.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return l}function p(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Y);function rt(t){return t}function it(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),tt(rt,t)}function ot(t,e){return e?J(t,e):new M(V(t))}function lt(){return function(t){return t.lift(new ut(t))}}var ut=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new st(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),st=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return l(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(x),at=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return l(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new v).add(this.source.subscribe(new ft(this.getSubject(),this))),t.closed&&(this._connection=null,t=v.EMPTY)),t},e.prototype.refCount=function(){return lt()(this)},e}(M).prototype,ct={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:at._subscribe},_isComplete:{value:at._isComplete,writable:!0},getSubject:{value:at.getSubject},connect:{value:at.connect},refCount:{value:at.refCount}},ft=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return l(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(j);function pt(){return new L}var ht="__parameters__",dt="__prop__metadata__";function yt(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];o.push(l+":"+("string"==typeof u?JSON.stringify(u):kt(u)))}i="{"+o.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+i+"]: "+t.replace(Yt,"\n ")}function Xt(t,e){return new Error(Jt(t,e,"StaticInjectorError"))}var te="ngDebugContext",ee="ngOriginalError",ne="ngErrorLogger",re=new Lt("AnalyzeForEntryComponents"),ie=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),oe=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(At)}();function le(t){return t[te]}function ue(t){return t[ee]}function se(t){for(var e=[],n=1;n',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Ce.hasOwnProperty(e)&&!_e.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Pe(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Oe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Me=/([^\#-~ |!])/g;function Pe(t){return t.replace(/&/g,"&").replace(Oe,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Me,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Ae(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var De=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),Re=function(){return function(){}}(),je=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"),Le=/^url\(([^)]+)\)$/,Fe=/([A-Z])/g;function Ue(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function ze(t){return!!t&&"function"==typeof t.then}function Ve(t){return!!t&&"function"==typeof t.subscribe}var He=null;function Ze(){if(!He){var t=At.Symbol;if(t&&t.iterator)He=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providers[c]=t._def.providersByKey[e.tokenKey]={flags:5120,value:u.factory,deps:[],index:c,token:e.token},t._providers[c]=Or,t._providers[c]=jr(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Rt(o)}}function jr(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Rr(t,n[0]));case 2:return new e(Rr(t,n[0]),Rr(t,n[1]));case 3:return new e(Rr(t,n[0]),Rr(t,n[1]),Rr(t,n[2]));default:for(var i=new Array(r),o=0;o=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Vr(n,e),Yn.dirtyParentQueries(r),Ur(r),r}function Fr(t,e,n){var r=e?fr(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);_r(n,2,i,o,void 0)}function Ur(t){_r(t,3,null,null,void 0)}function zr(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Vr(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Hr=new Object;function Zr(t,e,n,r,i,o){return new Br(t,e,n,r,i,o)}var Br=function(t){function e(e,n,r,i,o,l){var u=t.call(this)||this;return u.selector=e,u.componentType=n,u._inputs=i,u._outputs=o,u.ngContentSelectors=l,u.viewDefFactory=r,u}return l(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=br(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,l=Yn.createRootView(t,e||[],n,i,r,Hr),u=Wn(l,o).instance;return n&&l.renderer.setAttribute(Bn(l,0).renderElement,"ng-version",gn.full),new Wr(l,new Qr(l),u)},e}(Je),Wr=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return l(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new an(Bn(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Xr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Ke);function qr(t,e,n){return new Gr(t,e,n)}var Gr=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new an(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Xr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=cr(t),t=t.parent;return t?new Xr(t,e):new Xr(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Lr(this._data,t);Yn.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Qr(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof on||(i=o.get(ln));var l=t.create(o,r,void 0,i);return this.insert(l.hostView,e),l},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,l=t;return o=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=o.length),(i=l._view).viewContainerParent=this._view,zr(o,r,i),function(t,e){var n=ar(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),Yn.dirtyParentQueries(i),Fr(n,r>0?o[r-1]:null,i),l.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,l,u=this._embeddedViews.indexOf(t._view);return i=e,l=(o=(n=this._data).viewContainer._embeddedViews)[r=u],Vr(o,r),null==i&&(i=o.length),zr(o,i,l),Yn.dirtyParentQueries(l),Ur(l),Fr(n,i>0?o[i-1]:null,l),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Lr(this._data,t);e&&Yn.destroyView(e)},t.prototype.detach=function(t){var e=Lr(this._data,t);return e?new Qr(e):null},t}();function Yr(t){return new Qr(t)}var Qr=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return _r(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){lr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Yn.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Yn.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Yn.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ur(this._view),Yn.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function $r(t,e){return new Kr(t,e)}var Kr=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return l(e,t),e.prototype.createEmbeddedView=function(t){return new Qr(Yn.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new an(Bn(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Dn);function Jr(t,e){return new Xr(t,e)}var Xr=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Ht.THROW_IF_NOT_FOUND),Yn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Kn(t)},e)},t}();function ti(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Bn(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Zn(t,n.nodeIndex).renderText;if(20240&n.flags)return Wn(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function ei(t){return new ni(t.renderer)}var ni=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=f(Tr(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Si(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Ci(t,e,n,i[0]));case 2:return r(Ci(t,e,n,i[0]),Ci(t,e,n,i[1]));case 3:return r(Ci(t,e,n,i[0]),Ci(t,e,n,i[1]),Ci(t,e,n,i[2]));default:for(var l=Array(o),u=0;u0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),yo=function(){function t(){this._applications=new Map,go.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),go.findTestabilityInTree(this,t,e)},s([a("design:paramtypes",[])],t)}(),go=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),mo=new Lt("AllowMultipleToken"),vo=function(){return function(t,e){this.name=t,this.token=e}}();function bo(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new Lt(r);return function(e){void 0===e&&(e=[]);var o=_o();if(!o||o.injector.get(mo,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var l=n.concat(e).concat({provide:i,useValue:!0});!function(t){if(fo&&!fo.destroyed&&!fo.injector.get(mo,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");fo=t.get(wo);var e=t.get(Ui,null);e&&e.forEach(function(t){return t()})}(Ht.create({providers:l,name:r}))}return function(t){var e=_o();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function _o(){return fo&&!fo.destroyed?fo:null}var wo=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,i="noop"===(n=e?e.ngZone:void 0)?new po:("zone.js"===n?void 0:n)||new oo({enableLongStackTrace:pe()}),o=[{provide:oo,useValue:i}];return i.run(function(){var e=Ht.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),l=n.injector.get(ae,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Co(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(t){l.handleError(t)}})}),function(t,e,i){try{var o=((l=n.injector.get(Li)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ze(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(u){throw e.runOutsideAngular(function(){return t.handleError(u)}),u}var l}(l,i)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=So({},e);return function(t,e,n){return t.get(Ki).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Eo);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+kt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function So(t,e){return Array.isArray(e)?e.reduce(So,t):u({},t,e)}var Eo=function(){function t(t,e,n,r,i,o){var l=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=pe(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new M(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),s=new M(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){oo.assertNotInAngularZone(),io(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){oo.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof M?t[0]:it(n)(ot(t,r))}(u,s.pipe(function(t){return lt()((e=pt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,ct);return r.source=t,r.subjectFactory=n,r})(t));var e}))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof Je?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof on?null:this._injector.get(ln),o=n.create(Ht.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var l=o.injector.get(ho,null);return l&&o.injector.get(yo).registerApplication(o.location.nativeElement,l),this._loadComponent(o),pe()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t,n,r,i,o=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var l=e._tickScope();try{this._runningTick=!0;try{for(var u=c(this._views),s=u.next();!s.done;s=u.next())s.value.detectChanges()}catch(p){t={error:p}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var a=c(this._views),f=a.next();!f.done;f=a.next())f.value.checkNoChanges()}catch(h){r={error:h}}finally{try{f&&!f.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}catch(d){this._zone.runOutsideAngular(function(){return o._exceptionHandler.handleError(d)})}finally{this._runningTick=!1,no(l)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Co(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Vi,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Co(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=eo("ApplicationRef#tick()"),t}();function Co(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var xo=function(){return function(){}}(),To={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ko=function(){function t(t,e){this._compiler=t,this._config=e||To}return t.prototype.load=function(t){return this._compiler instanceof $i?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=f(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then(function(t){return t[o]}).then(function(t){return Io(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=f(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return Io(t,r,i)})},t}();function Io(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var No=function(){return function(t,e){this.name=t,this.callback=e}}(),Oo=function(){function t(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof Mo&&e.addChild(this)}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Mo=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return l(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,p([i+1,0],e)),e.forEach(function(e){e.parent&&e.parent.removeChild(e),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Mo&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Mo&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Mo&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Oo),Po=new Map,Ao=function(t){return Po.get(t)||null};function Do(t){Po.set(t.nativeNode,t)}var Ro=bo(null,"core",[{provide:zi,useValue:"unknown"},{provide:wo,deps:[Ht]},{provide:yo,deps:[]},{provide:Hi,deps:[]}]),jo=new Lt("LocaleId");function Lo(){return Pn}function Fo(){return An}function Uo(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}var zo=function(){return function(t){}}();function Vo(t,e,n,r,i,o){t|=1;var l=yr(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l.matchedQueries,matchedQueryIds:l.matchedQueryIds,references:l.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?br(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Qn},provider:null,text:null,query:null,ngContent:null}}function Ho(t,e,n,r,i,o,l,u,s,a,c,p){var h;void 0===l&&(l=[]),a||(a=Qn);var d=yr(n),y=d.matchedQueries,g=d.references,m=d.matchedQueryIds,v=null,b=null;o&&(v=(h=f(Tr(o),2))[0],b=h[1]),u=u||[];for(var _=new Array(u.length),w=0;w0)a=y,ll(y)||(c=y);else for(;a&&d===a.nodeIndex+a.childCount;){var v=a.parent;v&&(v.childFlags|=a.childFlags,v.childMatchedQueries|=a.childMatchedQueries),c=(a=v)&&ll(a)?a.renderParent:a}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:s,flags:t,nodes:e,updateDirectives:n||Qn,updateRenderer:r||Qn,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function ll(t){return 0!=(1&t.flags)&&null===t.element.name}function ul(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function sl(t,e,n,r){var i=fl(t.root,t.renderer,t,e,n);return pl(i,t.component,r),hl(i),i}function al(t,e,n){var r=fl(t,t.renderer,null,null,e);return pl(r,n,n),hl(r),r}function cl(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,fl(t.root,i,t,e.element.componentProvider,n)}function fl(t,e,n,r,i){var o=new Array(i.nodes.length),l=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:l,initIndex:-1}}function pl(t,e,n){t.component=e,t.context=n}function hl(t){var e;pr(t)&&(e=Bn(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i0&&qo(t,e,0,n)&&(h=!0),p>1&&qo(t,e,1,r)&&(h=!0),p>2&&qo(t,e,2,i)&&(h=!0),p>3&&qo(t,e,3,o)&&(h=!0),p>4&&qo(t,e,4,l)&&(h=!0),p>5&&qo(t,e,5,u)&&(h=!0),p>6&&qo(t,e,6,s)&&(h=!0),p>7&&qo(t,e,7,a)&&(h=!0),p>8&&qo(t,e,8,c)&&(h=!0),p>9&&qo(t,e,9,f)&&(h=!0),h}(t,e,n,r,i,o,l,u,s,a,c,f);case 2:return function(t,e,n,r,i,o,l,u,s,a,c,f){var p=!1,h=e.bindings,d=h.length;if(d>0&&ir(t,e,0,n)&&(p=!0),d>1&&ir(t,e,1,r)&&(p=!0),d>2&&ir(t,e,2,i)&&(p=!0),d>3&&ir(t,e,3,o)&&(p=!0),d>4&&ir(t,e,4,l)&&(p=!0),d>5&&ir(t,e,5,u)&&(p=!0),d>6&&ir(t,e,6,s)&&(p=!0),d>7&&ir(t,e,7,a)&&(p=!0),d>8&&ir(t,e,8,c)&&(p=!0),d>9&&ir(t,e,9,f)&&(p=!0),p){var y=e.text.prefix;d>0&&(y+=il(n,h[0])),d>1&&(y+=il(r,h[1])),d>2&&(y+=il(i,h[2])),d>3&&(y+=il(o,h[3])),d>4&&(y+=il(l,h[4])),d>5&&(y+=il(u,h[5])),d>6&&(y+=il(s,h[6])),d>7&&(y+=il(a,h[7])),d>8&&(y+=il(c,h[8])),d>9&&(y+=il(f,h[9]));var g=Zn(t,e.nodeIndex).renderText;t.renderer.setValue(g,y)}return p}(t,e,n,r,i,o,l,u,s,a,c,f);case 16384:return function(t,e,n,r,i,o,l,u,s,a,c,f){var p=Wn(t,e.nodeIndex),h=p.instance,d=!1,y=void 0,g=e.bindings.length;return g>0&&rr(t,e,0,n)&&(d=!0,y=Ti(t,p,e,0,n,y)),g>1&&rr(t,e,1,r)&&(d=!0,y=Ti(t,p,e,1,r,y)),g>2&&rr(t,e,2,i)&&(d=!0,y=Ti(t,p,e,2,i,y)),g>3&&rr(t,e,3,o)&&(d=!0,y=Ti(t,p,e,3,o,y)),g>4&&rr(t,e,4,l)&&(d=!0,y=Ti(t,p,e,4,l,y)),g>5&&rr(t,e,5,u)&&(d=!0,y=Ti(t,p,e,5,u,y)),g>6&&rr(t,e,6,s)&&(d=!0,y=Ti(t,p,e,6,s,y)),g>7&&rr(t,e,7,a)&&(d=!0,y=Ti(t,p,e,7,a,y)),g>8&&rr(t,e,8,c)&&(d=!0,y=Ti(t,p,e,8,c,y)),g>9&&rr(t,e,9,f)&&(d=!0,y=Ti(t,p,e,9,f,y)),y&&h.ngOnChanges(y),65536&e.flags&&Hn(t,256,e.nodeIndex)&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),d}(t,e,n,r,i,o,l,u,s,a,c,f);case 32:case 64:case 128:return function(t,e,n,r,i,o,l,u,s,a,c,f){var p=e.bindings,h=!1,d=p.length;if(d>0&&ir(t,e,0,n)&&(h=!0),d>1&&ir(t,e,1,r)&&(h=!0),d>2&&ir(t,e,2,i)&&(h=!0),d>3&&ir(t,e,3,o)&&(h=!0),d>4&&ir(t,e,4,l)&&(h=!0),d>5&&ir(t,e,5,u)&&(h=!0),d>6&&ir(t,e,6,s)&&(h=!0),d>7&&ir(t,e,7,a)&&(h=!0),d>8&&ir(t,e,8,c)&&(h=!0),d>9&&ir(t,e,9,f)&&(h=!0),h){var y=qn(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(p.length),d>0&&(g[0]=n),d>1&&(g[1]=r),d>2&&(g[2]=i),d>3&&(g[3]=o),d>4&&(g[4]=l),d>5&&(g[5]=u),d>6&&(g[6]=s),d>7&&(g[7]=a),d>8&&(g[8]=c),d>9&&(g[9]=f);break;case 64:g={},d>0&&(g[p[0].name]=n),d>1&&(g[p[1].name]=r),d>2&&(g[p[2].name]=i),d>3&&(g[p[3].name]=o),d>4&&(g[p[4].name]=l),d>5&&(g[p[5].name]=u),d>6&&(g[p[6].name]=s),d>7&&(g[p[7].name]=a),d>8&&(g[p[8].name]=c),d>9&&(g[p[9].name]=f);break;case 128:var m=n;switch(d){case 1:g=m.transform(n);break;case 2:g=m.transform(r);break;case 3:g=m.transform(r,i);break;case 4:g=m.transform(r,i,o);break;case 5:g=m.transform(r,i,o,l);break;case 6:g=m.transform(r,i,o,l,u);break;case 7:g=m.transform(r,i,o,l,u,s);break;case 8:g=m.transform(r,i,o,l,u,s,a);break;case 9:g=m.transform(r,i,o,l,u,s,a,c);break;case 10:g=m.transform(r,i,o,l,u,s,a,c,f)}}y.value=g}return h}(t,e,n,r,i,o,l,u,s,a,c,f);default:throw"unreachable"}}(t,e,r,i,o,l,u,s,a,c,f,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i0&&or(t,e,0,n),p>1&&or(t,e,1,r),p>2&&or(t,e,2,i),p>3&&or(t,e,3,o),p>4&&or(t,e,4,l),p>5&&or(t,e,5,u),p>6&&or(t,e,6,s),p>7&&or(t,e,7,a),p>8&&or(t,e,8,c),p>9&&or(t,e,9,f)}(t,e,r,i,o,l,u,s,a,c,f,p):function(t,e,n){for(var r=0;r0){var o=new Set(t.modules);Rl.forEach(function(e,r){if(o.has(xt(r).providedIn)){var i={token:r,flags:e.flags|(n?4096:0),deps:gr(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[Kn(r)]=i}})}}(t=t.factory(function(){return Qn})),t):t}(r))}var Dl=new Map,Rl=new Map,jl=new Map;function Ll(t){var e;Dl.set(t.token,t),"function"==typeof t.token&&(e=xt(t.token))&&"function"==typeof e.providedIn&&Rl.set(t.token,t)}function Fl(t,e){var n=br(e.viewDefFactory),r=br(n.nodes[0].element.componentView);jl.set(t,r)}function Ul(){Dl.clear(),Rl.clear(),jl.clear()}function zl(t){if(0===Dl.size)return t;var e=function(t){for(var e=[],n=null,r=0;r0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=gu.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+gu.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+gu.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(du),bu=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return l(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return gu.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+gu.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+gu.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+gu.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(du),_u=void 0,wu=["en",[["a","p"],["AM","PM"],_u],[["AM","PM"],_u,_u],[["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"]],_u,[["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"]],_u,[["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}",_u,"{1} 'at' {0}",_u],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Su={},Eu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Cu=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),xu=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),Tu=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),ku=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function Iu(t,e){return Au(Ru(t)[10],e)}function Nu(t,e){return Au(Ru(t)[11],e)}function Ou(t,e){return Au(Ru(t)[12],e)}function Mu(t,e){var n=Ru(t),r=n[13][e];if(void 0===r){if(e===ku.CurrencyDecimal)return n[13][ku.Decimal];if(e===ku.CurrencyGroup)return n[13][ku.Group]}return r}function Pu(t){if(!t[19])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function Au(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Du(t){var e=f(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function Ru(t){var e=t.toLowerCase().replace(/_/g,"-"),n=Su[e];if(n)return n;var r=e.split("-")[0];if(n=Su[r])return n;if("en"===r)return wu;throw new Error('Missing locale data for the locale "'+t+'".')}var ju=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Lu={},Fu=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Uu=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),zu=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Vu=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Hu(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Zu(t,e,n,r,i){void 0===n&&(n="-");var o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var l=String(t);l.length0||s>-n)&&(s+=n),t===zu.Hours)0===s&&-12===n&&(s=12);else if(t===zu.FractionalSeconds)return u=e,Zu(s,3).substr(0,u);var a=Mu(l,ku.MinusSign);return Zu(s,e,a,r,i)}}function Wu(t,e,n,r){return void 0===n&&(n=Cu.Format),void 0===r&&(r=!1),function(i,o){return function(t,e,n,r,i,o){switch(n){case Vu.Months:return function(t,e,n){var r=Ru(t),i=Au([r[5],r[6]],e);return Au(i,n)}(e,i,r)[t.getMonth()];case Vu.Days:return function(t,e,n){var r=Ru(t),i=Au([r[3],r[4]],e);return Au(i,n)}(e,i,r)[t.getDay()];case Vu.DayPeriods:var l=t.getHours(),u=t.getMinutes();if(o){var s,a=function(t){var e=Ru(t);return Pu(e),(e[19][2]||[]).map(function(t){return"string"==typeof t?Du(t):[Du(t[0]),Du(t[1])]})}(e),c=function(t,e,n){var r=Ru(t);Pu(r);var i=Au([r[19][0],r[19][1]],e)||[];return Au(i,n)||[]}(e,i,r);if(a.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],i=r.hours;l>=n.hours&&u>=n.minutes&&(l0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Uu.Short:return(i>=0?"+":"")+Zu(l,2,o)+Zu(Math.abs(i%60),2,o);case Uu.ShortGMT:return"GMT"+(i>=0?"+":"")+Zu(l,1,o);case Uu.Long:return"GMT"+(i>=0?"+":"")+Zu(l,2,o)+":"+Zu(Math.abs(i%60),2,o);case Uu.Extended:return 0===r?"Z":(i>=0?"+":"")+Zu(l,2,o)+":"+Zu(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}var Gu=0,Yu=4;function Qu(t,e){return void 0===e&&(e=!1),function(n,r){var i,o,l,u;if(e){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,a=n.getDate();i=1+Math.floor((a+s)/7)}else{var c=(l=n.getFullYear(),u=new Date(l,Gu,1).getDay(),new Date(l,0,1+(u<=Yu?Yu:Yu+7)-u)),f=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(Yu-o.getDay()))).getTime()-c.getTime();i=1+Math.round(f/6048e5)}return Zu(i,t,Mu(r,ku.MinusSign))}}var $u={};function Ku(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Ju(t){return t instanceof Date&&!isNaN(t.valueOf())}var Xu=new Lt("UseV4Plurals"),ts=function(){return function(){}}(),es=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return l(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return Ru(t)[18]}(e||this.locale)(t)){case Eu.Zero:return"zero";case Eu.One:return"one";case Eu.Two:return"two";case Eu.Few:return"few";case Eu.Many:return"many";default:return"other"}},e}(ts),ns=function(){return function(){}}(),rs=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return t.prototype.getValue=function(){return null},t.prototype.setClass=function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},t.prototype.setNgClass=function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Ge(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},t.prototype.applyChanges=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+kt(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),is=function(t){function e(e){return t.call(this,e)||this}return l(e,t),Object.defineProperty(e.prototype,"klass",{set:function(t){this._delegate.setClass(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(t){this._delegate.setNgClass(t)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){this._delegate.applyChanges()},e}(function(){function t(t){this._delegate=t}return t.prototype.getValue=function(){return this._delegate.getValue()},t.ngDirectiveDef=void 0,t}()),os=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),ls=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){pe()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new os(null,e._ngForOf,-1,-1),i),l=new us(t,o);n.push(l)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),l=new us(t,o),n.push(l))});for(var r=0;r"};return t.replace(/&[^;]+;/g,function(t){return e[t]})},t.ngInjectableDef=Ct({factory:function(){return new t(jt(xs),jt(ws))},token:t,providedIn:"root"}),t}(),Hs=function(){function t(){this.subject=new L,this.state=this.subject.asObservable(),this.busy=!1}return t.prototype.show=function(){this.busy=!0,this.subject.next(!0)},t.prototype.hide=function(){this.busy=!1,this.subject.next(!1)},t.ngInjectableDef=Ct({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Zs=function(){function t(t,e){this.loader=t,this.app=e,this.version="",this.prefix=this.app.config.data_prefix,this.version=this.app.config.hash||""}return t.prototype.get=function(t){var e=this;t=this.getFullUrl(t);var n=this.app.getCache(t.split("?")[0]);return n?Promise.resolve(n):(this.loader.show(),ks.fetch(t).then(function(t){return e.loader.hide(),t.json()}).catch(function(t){return e.loader.hide(),Promise.reject(t)}))},t.prototype.request=function(t){var e=this;return this.loader.show(),ks.fetch(t.url,t).then(function(t){return e.loader.hide(),t.json()}).catch(function(t){return e.loader.hide(),Promise.reject(t)})},t.prototype.getFullUrl=function(t){return this.prefix+"/"+function(t){var e,n,r,i,o,l,u,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a="",c=0;for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}(t);c>2,o=(3&e)<<4|(n=t.charCodeAt(c++))>>4,l=(15&n)<<2|(r=t.charCodeAt(c++))>>6,u=63&r,isNaN(n)?l=u=64:isNaN(r)&&(u=64),a=a+s.charAt(i)+s.charAt(o)+s.charAt(l)+s.charAt(u);return a.replace(/=/g,"")}(t.replace(/(^\/*|\/*$)/g,""))+".json?v="+this.version},t.ngInjectableDef=Ct({factory:function(){return new t(jt(Hs),jt(Vs))},token:t,providedIn:"root"}),t}();function Bs(){for(var t=[],e=0;e0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?ea(function(e,n){return t(e,n,r)}):rt,la(1),n?ha(e):aa(function(){return new Gs}))}}function ma(t){return function(e){var n=new va(t),r=e.lift(n);return n.caught=r}}var va=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new ba(t,this.selector,this.caught))},t}(),ba=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return l(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(i){return void t.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var r=new z(this,void 0,void 0);this.add(r),G(this,n,void 0,void 0,r)}},e}(Y);function _a(t){return function(e){return 0===t?Js():e.lift(new wa(t))}}var wa=function(){function t(t){if(this.total=t,this.total<0)throw new oa}return t.prototype.call=function(t,e){return e.subscribe(new Sa(t,this.total))},t}(),Sa=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return l(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(x);function Ea(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?ea(function(e,n){return t(e,n,r)}):rt,_a(1),n?ha(e):aa(function(){return new Gs}))}}var Ca=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new xa(t,this.predicate,this.thisArg,this.source))},t}(),xa=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return l(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(x);function Ta(t,e){return"function"==typeof e?function(n){return n.pipe(Ta(function(n,r){return X(t(n,r)).pipe(Q(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new ka(t))}}var ka=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ia(t,this.project))},t}(),Ia=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return l(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new z(this,void 0,void 0);this.destination.add(i),this.innerSubscription=G(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(Y);function Na(){for(var t=[],e=0;e=2&&(n=!0),function(r){return r.lift(new Ma(t,e,n))}}var Ma=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Pa(t,this.accumulator,this.seed,this.hasSeed))},t}(),Pa=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return l(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(x);function Aa(t,e){return tt(t,e,1)}function Da(t,e,n){return function(r){return r.lift(new Ra(t,e,n))}}var Ra=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new ja(t,this.nextOrObserver,this.error,this.complete))},t}(),ja=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=I,o._tapError=I,o._tapComplete=I,o._tapError=r||I,o._tapComplete=i||I,y(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||I,o._tapError=n.error||I,o._tapComplete=n.complete||I),o}return l(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(x),La=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Fa(t,this.callback))},t}(),Fa=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new v(n)),r}return l(e,t),e}(x),Ua=null;function za(){return Ua}var Va,Ha=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;l||(l=t[o]=[]);var s=kc(e)?Zone.root:Zone.current;if(0===l.length)l.push({zone:s,handler:i});else{for(var a=!1,c=0;c-1},e}(lc),Rc=["alt","control","meta","shift"],jc={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Lc=function(t){function e(e){return t.call(this,e)||this}var n;return l(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return za().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";if(Rc.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var l={};return l.domEventName=r,l.fullKey=o,l},e.getEventFullKey=function(t){var e="",n=za().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Rc.forEach(function(r){r!=n&&(0,jc[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(lc),Fc=function(){return function(){}}(),Uc=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return l(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case De.NONE:return e;case De.HTML:return e instanceof Vc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{be=be||new he(t);var r=e?String(e):"";n=be.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=be.getInertBodyElement(r)}while(r!==o);var l=new Ne,u=l.sanitizeChildren(Ae(n)||n);return pe()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n)for(var s=Ae(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}(this._doc,String(e)));case De.STYLE:return e instanceof Hc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Le);return e&&ge(e[1])===e[1]||t.match(je)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Pf(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Af(t){return Ve(t)?t:ze(t)?X(Promise.resolve(t)):Bs(t)}function Df(t,e,n){return n?function(t,e){return Nf(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Ff(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Ff(l=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Ff(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var l=i.slice(0,n.segments.length),u=i.slice(n.segments.length);return!!Ff(n.segments,l)&&!!n.children[vf]&&e(n.children[vf],r,u)}(e,n,n.segments)}(t.root,e.root)}var Rf=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=_f(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Hf.serialize(this)},t}(),jf=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Pf(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Zf(this)},t}(),Lf=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=_f(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Qf(this)},t}();function Ff(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Uf(t,e){var n=[];return Pf(t.children,function(t,r){r===vf&&(n=n.concat(e(t,r)))}),Pf(t.children,function(t,r){r!==vf&&(n=n.concat(e(t,r)))}),n}var zf=function(){return function(){}}(),Vf=function(){function t(){}return t.prototype.parse=function(t){var e=new tp(t);return new Rf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Zf(e);if(n){var r=e.children[vf]?t(e.children[vf],!1):"",i=[];return Pf(e.children,function(e,n){n!==vf&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=Uf(e,function(n,r){return r===vf?[t(e.children[vf],!1)]:[r+":"+t(n,!1)]});return Zf(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Wf(t)+"="+Wf(e)}).join("&"):Wf(t)+"="+Wf(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Hf=new Vf;function Zf(t){return t.segments.map(function(t){return Qf(t)}).join("/")}function Bf(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Wf(t){return Bf(t).replace(/%3B/gi,";")}function qf(t){return Bf(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Gf(t){return decodeURIComponent(t)}function Yf(t){return Gf(t.replace(/\+/g,"%20"))}function Qf(t){return""+qf(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+qf(t)+"="+qf(e[t])}).join(""));var e}var $f=/^[^\/()?;=#]+/;function Kf(t){var e=t.match($f);return e?e[0]:""}var Jf=/^[^=?&#]+/,Xf=/^[^?&#]+/,tp=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jf([],{}):new jf([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[vf]=new jf(t,e)),n},t.prototype.parseSegment=function(){var t=Kf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Lf(Gf(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Kf(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Kf(this.remaining);r&&this.capture(n=r)}t[Gf(e)]=Gf(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Jf))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Xf);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Yf(n),l=Yf(r);if(t.hasOwnProperty(o)){var u=t[o];Array.isArray(u)||(t[o]=u=[u]),u.push(l)}else t[o]=l}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Kf(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=vf);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[vf]:new jf([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),ep=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=np(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=np(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=rp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return rp(t,this._root).map(function(t){return t.value})},t}();function np(t,e){var n,r;if(t===e.value)return e;try{for(var i=c(e.children),o=i.next();!o.done;o=i.next()){var l=np(t,o.value);if(l)return l}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}function rp(t,e){var n,r;if(t===e.value)return[e];try{for(var i=c(e.children),o=i.next();!o.done;o=i.next()){var l=rp(t,o.value);if(l.length)return l.unshift(e),l}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return[]}var ip=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function op(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var lp=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,pp(r,e),r}return l(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(ep);function up(t,e){var n=function(t,e){var n=new cp([],{},{},"",{},vf,e,null,t.root,-1,{});return new fp("",new ip(n,[]))}(t,e),r=new Ws([new Lf("",{})]),i=new Ws({}),o=new Ws({}),l=new Ws({}),u=new Ws(""),s=new sp(r,i,l,u,o,vf,e,n.root);return s.snapshot=n.root,new lp(new ip(s,[]),n)}var sp=function(){function t(t,e,n,r,i,o,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=l,this._futureSnapshot=u}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Q(function(t){return _f(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q(function(t){return _f(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function ap(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:u({},t.params,e.params),data:u({},t.data,e.data),resolve:u({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var cp=function(){function t(t,e,n,r,i,o,l,u,s,a,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=l,this.routeConfig=u,this._urlSegment=s,this._lastPathIndex=a,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=_f(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=_f(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),fp=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,pp(r,n),r}return l(e,t),e.prototype.toString=function(){return hp(this._root)},e}(ep);function pp(t,e){e.value._routerState=t,e.children.forEach(function(e){return pp(t,e)})}function hp(t){var e=t.children.length>0?" { "+t.children.map(hp).join(", ")+" } ":"";return""+t.value+e}function dp(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Nf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Nf(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&gp(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Mf(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),bp=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function _p(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[vf]:""+t}function wp(t,e,n){if(t||(t=new jf([],{})),0===t.segments.length&&t.hasChildren())return Sp(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var l=t.segments[i],u=_p(n[r]),s=r0&&void 0===u)break;if(u&&s&&"object"==typeof s&&void 0===s.outlets){if(!Tp(u,s,l))return o;r+=2}else{if(!Tp(u,{},l))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new jf([],((r={})[vf]=t,r)):t;return new Rf(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Q(function(t){return new jf([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Bs({});var o=[],l=[],u={};return Pf(n,function(n,i){var s,a,c=(s=i,a=n,r.expandSegmentGroup(t,e,a,s)).pipe(Q(function(t){return u[i]=t}));i===vf?o.push(c):l.push(c)}),Bs.apply(null,o.concat(l)).pipe(ta(),ga(),Q(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,i,o){var l=this;return Bs.apply(void 0,p(n)).pipe(Q(function(u){return l.expandSegmentAgainstRoute(t,e,n,u,r,i,o).pipe(ma(function(t){if(t instanceof Mp)return Bs(null);throw t}))}),ta(),Ea(function(t){return!!t}),ma(function(t,n){if(t instanceof Gs||"EmptyError"===t.name){if(l.noLeftoversInUrl(e,r,i))return Bs(new jf([],{}));throw new Mp(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,l){return zp(r)!==o?Ap(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Ap(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Dp(o):this.lineralizeSegments(n,o).pipe(tt(function(n){var o=new jf(n,{});return i.expandSegment(t,o,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var l=this,u=Lp(e,r,i),s=u.consumedSegments,a=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return Ap(e);var f=this.applyRedirectCommands(s,r.redirectTo,c);return r.redirectTo.startsWith("/")?Dp(f):this.lineralizeSegments(r,f).pipe(tt(function(r){return l.expandSegment(t,e,n,r.concat(i.slice(a)),o,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Q(function(t){return n._loadedConfig=t,new jf(r,{})})):Bs(new jf(r,{}));var o=Lp(e,n,r),l=o.consumedSegments,s=o.lastChild;if(!o.matched)return Ap(e);var a=r.slice(s);return this.getChildConfig(t,n,r).pipe(tt(function(t){var n=t.module,r=t.routes,o=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return Up(t,e,n)&&zp(n)!==vf})}(t,n)?{segmentGroup:Fp(new jf(e,function(t,e){var n,r,i={};i[vf]=e;try{for(var o=c(t),l=o.next();!l.done;l=o.next()){var u=l.value;""===u.path&&zp(u)!==vf&&(i[zp(u)]=new jf([],{}))}}catch(s){n={error:s}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new jf(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return Up(t,e,n)})}(t,n)?{segmentGroup:Fp(new jf(t.segments,function(t,e,n,r){var i,o,l={};try{for(var s=c(n),a=s.next();!a.done;a=s.next()){var f=a.value;Up(t,e,f)&&!r[zp(f)]&&(l[zp(f)]=new jf([],{}))}}catch(p){i={error:p}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return u({},r,l)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,l,a,r),s=o.segmentGroup,f=o.slicedSegments;return 0===f.length&&s.hasChildren()?i.expandChildren(n,r,s).pipe(Q(function(t){return new jf(l,t)})):0===r.length&&0===f.length?Bs(new jf(l,{})):i.expandSegment(n,s,r,f,vf,!0).pipe(Q(function(t){return new jf(l.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Bs(new Cf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Bs(e._loadedConfig):function(t,e,n){var r,i=e.canLoad;return i&&0!==i.length?X(i).pipe(Q(function(r){var i,o=t.get(r);if(function(t){return t&&Np(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!Np(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return Af(i)})).pipe(ta(),(r=function(t){return!0===t},function(t){return t.lift(new Ca(r,void 0,t))})):Bs(!0)}(t.injector,e,n).pipe(tt(function(n){return n?r.configLoader.load(t.injector,e).pipe(Q(function(t){return e._loadedConfig=t,t})):function(t){return new M(function(e){return e.error(Sf("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):Bs(new Cf([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Bs(n);if(r.numberOfChildren>1||!r.children[vf])return Rp(t.redirectTo);r=r.children[vf]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Rf(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Pf(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),l={};return Pf(e.children,function(e,o){l[o]=i.createSegmentGroup(t,e,n,r)}),new jf(o,l)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,i=0;try{for(var o=c(e),l=o.next();!l.done;l=o.next()){var u=l.value;if(u.path===t.path)return e.splice(i),u;i++}}catch(s){n={error:s}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t},t}();function Lp(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Ef)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Fp(t){if(1===t.numberOfChildren&&t.children[vf]){var e=t.children[vf];return new jf(t.segments.concat(e.segments),e.children)}return t}function Up(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function zp(t){return t.outlet||vf}var Vp=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Hp=function(){return function(t,e){this.component=t,this.route=e}}();function Zp(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Bp(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=op(e);return t.children.forEach(function(t){!function(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,l=e?e.value:null,u=n?n.getContext(t.value.outlet):null;if(l&&o.routeConfig===l.routeConfig){var s=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ff(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ff(t.url,e.url)||!Nf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yp(t,e)||!Nf(t.queryParams,e.queryParams);case"paramsChange":default:return!yp(t,e)}}(l,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new Vp(r)):(o.data=l.data,o._resolvedData=l._resolvedData),Bp(t,e,o.component?u?u.children:null:n,r,i),s&&i.canDeactivateChecks.push(new Hp(u&&u.outlet&&u.outlet.component||null,l))}else l&&Wp(e,u,i),i.canActivateChecks.push(new Vp(r)),Bp(t,null,o.component?u?u.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),Pf(o,function(t,e){return Wp(t,n.getContext(e),i)}),i}function Wp(t,e,n){var r=op(t),i=t.value;Pf(r,function(t,r){Wp(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Hp(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var qp=Symbol("INITIAL_VALUE");function Gp(){return Ta(function(t){return(function(){for(var t=[],e=0;e0?Mf(n).parameters:{};i=new cp(n,s,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,oh(t),r,t.component,t,th(e),eh(e)+n.length,lh(t))}else{var a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Jp;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Ef)(n,t,e);if(!r)throw new Jp;var i={};Pf(r.posParams,function(t,e){i[e]=t.path});var o=r.consumed.length>0?u({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=a.consumedSegments,l=n.slice(a.lastChild),i=new cp(o,a.parameters,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,oh(t),r,t.component,t,th(e),eh(e)+o.length,lh(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=nh(e,o,l,c,this.relativeLinkResolution),p=f.segmentGroup,h=f.slicedSegments;if(0===h.length&&p.hasChildren()){var d=this.processChildren(c,p);return[new ip(i,d)]}if(0===c.length&&0===h.length)return[new ip(i,[])];var y=this.processSegment(c,p,h,vf);return[new ip(i,y)]},t}();function th(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function eh(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function nh(t,e,n,r,i){if(n.length>0&&function(t,e,n){return r.some(function(n){return rh(t,e,n)&&ih(n)!==vf})}(t,n)){var o=new jf(e,function(t,e,n,r){var i,o,l={};l[vf]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var u=c(n),s=u.next();!s.done;s=u.next()){var a=s.value;if(""===a.path&&ih(a)!==vf){var f=new jf([],{});f._sourceSegment=t,f._segmentIndexShift=e.length,l[ih(a)]=f}}}catch(p){i={error:p}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return l}(t,e,r,new jf(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return rh(t,e,n)})}(t,n)){var l=new jf(t.segments,function(t,e,n,r,i,o){var l,s,a={};try{for(var f=c(r),p=f.next();!p.done;p=f.next()){var h=p.value;if(rh(t,n,h)&&!i[ih(h)]){var d=new jf([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===o?t.segments.length:e.length,a[ih(h)]=d}}}catch(y){l={error:y}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}return u({},i,a)}(t,e,n,r,t.children,i));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}var s=new jf(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function rh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ih(t){return t.outlet||vf}function oh(t){return t.data||{}}function lh(t){return t.resolve||{}}function uh(t,e,n,r){var i=Zp(t,e,r);return Af(i.resolve?i.resolve(e,n):i(e,n))}function sh(t){return function(e){return e.pipe(Ta(function(e){var n=t(e);return n?X(n).pipe(Q(function(){return e})):X([e])}))}}var ah=function(){return function(){}}(),ch=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),fh=new Lt("ROUTES"),ph=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Q(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Cf(Of(i.injector.get(fh)).map(If),i)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?X(this.loader.load(t)):Af(t()).pipe(tt(function(t){return t instanceof un?Bs(t):X(e.compiler.compileModuleAsync(t))}))},t}(),hh=function(){return function(){}}(),dh=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function yh(t){throw t}function gh(t,e,n){return e.parse("/")}function mh(t,e){return Bs(null)}var vh=function(){function t(t,e,n,r,i,o,l,u){var s=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new L,this.errorHandler=yh,this.malformedUriErrorHandler=gh,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:mh,afterPreactivation:mh},this.urlHandlingStrategy=new dh,this.routeReuseStrategy=new ch,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(ln),this.console=i.get(Hi);var a=i.get(oo);this.isNgZoneEnabled=a instanceof oo,this.resetConfig(u),this.currentUrlTree=new Rf(new jf([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ph(o,l,function(t){return s.triggerEvent(new cf(t))},function(t){return s.triggerEvent(new ff(t))}),this.routerState=up(this.currentUrlTree,this.rootComponentType),this.transitions=new Ws({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(ea(function(t){return 0!==t.id}),Q(function(t){return u({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Ta(function(t){var r,i,o,l,s=!1,a=!1;return Bs(t).pipe(Da(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?u({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Ta(function(t){var r,i,o,l,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Bs(t).pipe(Ta(function(t){var r=e.transitions.getValue();return n.next(new tf(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?Ks:[t]}),Ta(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,i=e.configLoader,o=e.urlSerializer,l=e.config,function(t){return t.pipe(Ta(function(t){return function(e,n,r,i,o){return new jp(e,n,r,t.extractedUrl,o).apply()}(r,i,o,0,l).pipe(Q(function(e){return u({},t,{urlAfterRedirects:e})}))}))}),Da(function(t){e.currentNavigation=u({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,r,i,o){return function(r){return r.pipe(tt(function(r){return function(t,e,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new Xp(t,e,n,r,i,o).recognize()}(t,n,r.urlAfterRedirects,(l=r.urlAfterRedirects,e.serializeUrl(l)),i,o).pipe(Q(function(t){return u({},r,{targetSnapshot:t})}));var l}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Da(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),Da(function(t){var r=new of(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var a=t.extractedUrl,c=t.source,f=t.restoredState,p=t.extras,h=new tf(t.id,e.serializeUrl(a),c,f);n.next(h);var d=up(a,e.rootComponentType).snapshot;return Bs(u({},t,{targetSnapshot:d,urlAfterRedirects:a,extras:u({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Ks}),sh(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Da(function(t){var n=new lf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Q(function(t){return u({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,i=e.rootContexts,o=n._root,Bp(o,r?r._root:null,i,[o.value]))});var n,r,i,o}),function(t,e){return function(n){return n.pipe(tt(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,l=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===l.length?Bs(u({},n,{guardsResult:!0})):function(t,e,n,r){return X(s).pipe(tt(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Bs(o.map(function(o){var l,u=Zp(o,e,i);if(function(t){return t&&Np(t.canDeactivate)}(u))l=Af(u.canDeactivate(t,e,n,r));else{if(!Np(u))throw new Error("Invalid CanDeactivate guard");l=Af(u(t,e,n,r))}return l.pipe(Ea())})).pipe(Gp()):Bs(!0)}(t.component,t.route,n,e,r)}),Ea(function(t){return!0!==t},!0))}(0,r,i,t).pipe(tt(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return X(l).pipe(Aa(function(e){return X([Qp(e.route.parent,r),Yp(e.route,r),Kp(t,e.path,n),$p(t,e.route,n)]).pipe(ta(),Ea(function(t){return!0!==t},!0))}),Ea(function(t){return!0!==t},!0))}(r,0,t,e):Bs(n)}),Q(function(t){return u({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Da(function(t){if(Op(t.guardsResult)){var n=Sf('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),Da(function(t){var n=new uf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),ea(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new nf(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),sh(function(t){if(t.guards.canActivateChecks.length)return Bs(t).pipe(Da(function(t){var n=new sf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(tt(function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;return i.length?X(i).pipe(Aa(function(t){return function(t,n,r,i){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Bs({});if(1===i.length){var o=i[0];return uh(t[o],e,n,r).pipe(Q(function(t){var e;return(e={})[o]=t,e}))}var l={};return X(i).pipe(tt(function(i){return uh(t[i],e,n,r).pipe(Q(function(t){return l[i]=t,t}))})).pipe(ga(),Q(function(){return l}))}(t._resolve,t,e,i).pipe(Q(function(e){return t._resolvedData=e,t.data=u({},t.data,ap(t,r).resolve),null}))}(t.route,0,n,r)}),function(t,e){return arguments.length>=2?function(e){return N(Oa(t,void 0),la(1),ha(void 0))(e)}:function(e){return N(Oa(function(e,n,r){return t(e)}),la(1))(e)}}(function(t,e){return t}),Q(function(e){return t})):Bs(t)}))}),Da(function(t){var n=new af(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,r}),sh(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Q(function(t){var n,r,i,o=(i=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(s=r.value)._futureSnapshot=n.value;var i=function(e,n,r){return n.children.map(function(n){var i,o;try{for(var l=c(r.children),u=l.next();!u.done;u=l.next()){var s=u.value;if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s)}}catch(a){i={error:a}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return t(e,n)})}(e,n,r);return new ip(s,i)}var o=e.retrieve(n.value);if(o){var l=o.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;ru;){if(s-=u,!(l=l.parent))throw new Error("Invalid number of '../'");u=l.segments.length}return new bp(l,!1,u-s)}()}(o,0,t),u=l.processChildren?Sp(l.segmentGroup,l.index,o.commands):wp(l.segmentGroup,l.index,o.commands);return mp(l.segmentGroup,u,e,r,i)}(a,this.currentUrlTree,t,f,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),pe()&&this.isNgZoneEnabled&&!oo.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Op(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e1?"/"+e:"")).catch(this.error.bind(this))},t.prototype.error=function(t){return this.track<1&&(this.router.navigate(["/"]),this.track++),{}},t.ngInjectableDef=Ct({factory:function(){return new t(jt(Vs),jt(Zs),jt(vh))},token:t,providedIn:"root"}),t}(),Yh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.resolve=function(t){var e=+t.params.page;return"NaN"===String(e)&&(e=1),this.getData("posts",e)},e.ngInjectableDef=Ct({factory:function(){return new e(jt(Vs),jt(Zs),jt(vh))},token:e,providedIn:"root"}),e}(Gh),Qh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.resolve=function(t){return this.getData("post/"+t.params.slug)},e.ngInjectableDef=Ct({factory:function(){return new e(jt(Vs),jt(Zs),jt(vh))},token:e,providedIn:"root"}),e}(Gh),$h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.resolve=function(t){return this.getData("page/"+t.routeConfig.path)},e.ngInjectableDef=Ct({factory:function(){return new e(jt(Vs),jt(Zs),jt(vh))},token:e,providedIn:"root"}),e}(Gh),Kh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.resolve=function(t){var e=+t.params.page;return"NaN"===String(e)&&(e=1),this.getData("archives",e)},e.ngInjectableDef=Ct({factory:function(){return new e(jt(Vs),jt(Zs),jt(vh))},token:e,providedIn:"root"}),e}(Gh),Jh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.resolve=function(t){var e=t.params.name,n=+t.params.page;return"NaN"===String(n)&&(n=1),this.getData("tags/"+e,n)},e.ngInjectableDef=Ct({factory:function(){return new e(jt(Vs),jt(Zs),jt(vh))},token:e,providedIn:"root"}),e}(Gh),Xh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.resolve=function(t){return this.getData("tags")},e.ngInjectableDef=Ct({factory:function(){return new e(jt(Vs),jt(Zs),jt(vh))},token:e,providedIn:"root"}),e}(Gh),td=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.resolve=function(t){var e=t.params.name,n=+t.params.page;return"NaN"===String(n)&&(n=1),this.getData("categories/"+e,n)},e.ngInjectableDef=Ct({factory:function(){return new e(jt(Vs),jt(Zs),jt(vh))},token:e,providedIn:"root"}),e}(Gh),ed=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.resolve=function(t){return this.getData("categories")},e.ngInjectableDef=Ct({factory:function(){return new e(jt(Vs),jt(Zs),jt(vh))},token:e,providedIn:"root"}),e}(Gh),nd=function(t){return t[t.sm=0]="sm",t[t.md=1]="md",t[t.lg=2]="lg",t}({}),rd=function(){function t(){var t=this;this.mediaSubject=new L,this.scrollSubject=new L,this.media=this.mediaSubject.asObservable(),this.scroll=this.scrollSubject.asObservable(),this.width=ks.win.innerWidth,this.height=ks.win.innerHeight,ks.win.addEventListener("resize",As(function(){t.refreshMedia()},400),{passive:!0})}return t.prototype.initScroll=function(t){var e=this;t.addEventListener("scroll",function(){e.refreshScroll({scrollTop:t.scrollTop})})},t.prototype.refreshScroll=function(t){this.scrollSubject.next(t||{scrollTop:0})},t.prototype.refreshMedia=function(){this.width=ks.win.innerWidth,this.height=ks.win.innerHeight,this.mediaSubject.next({type:this.width<640?nd.sm:this.width<976?nd.md:nd.lg})},t.ngInjectableDef=Ct({factory:function(){return new t},token:t,providedIn:"root"}),t}(),id=function(){return function(){}}(),od=function(t){return t[t.toTop=0]="toTop",t[t.toBottom=1]="toBottom",t[t.toggleSidebar=2]="toggleSidebar",t[t.toggleToc=3]="toggleToc",t[t.search=4]="search",t}({}),ld=function(){function t(t,e){this.deviceService=t,this.loaderService=e,this.showMenu=!1,this.rotateState="stop",this.busy=!1,this.action=new Mi}return t.prototype.ngOnInit=function(){var t=this;this.deviceService.media.subscribe(function(e){return t.sidebar=e.type!==nd.lg}),this.deviceService.refreshMedia(),this.loaderService.state.subscribe(function(e){e&&!t.busy&&t.toggleRotateState()})},t.prototype.rotateEnd=function(){this.busy=!1,this.loaderService.busy&&this.toggleRotateState()},t.prototype.act=function(t){this.action.emit(od[t])},t.prototype.toggleRotateState=function(){this.rotateState="stop"===this.rotateState?"rotate":"stop",this.busy=!0},t.prototype.toggle=function(){this.showMenu=!this.showMenu},t.prototype.open=function(){this.showMenu=!0},t.prototype.close=function(){this.showMenu=!1},t}(),ud=function(){function t(t,e,n,r,i){var o=this;if(this.er=t,this.route=e,this.router=n,this.device=r,this.app=i,this.config=this.app.config,this.plugins=this.app.getPlugins("sidebar"),this.config.menu){this.router.events.pipe(ea(function(t){return t instanceof ef})).subscribe(function(){var t=o.route.snapshot.children[0],e=t.data;o.activePath="page"===e.id?t.routeConfig.path:"home"===e.id?"":"category"===e.id?"categories":"tag"===e.id?"tags":e.id,"/"!==o.activePath[0]&&(o.activePath="/"+o.activePath)});var l=[],u=this.config.menu;for(var s in u){var a=u[s];l.push({text:s,href:a,external:Ds(a)}),this.menu=l}}}return t.prototype.ngAfterViewInit=function(){var t=this;this.device.media.subscribe(function(){t.adjustFooter()}),this.device.refreshMedia()},t.prototype.isExternal=function(t){return Ds(t)},t.prototype.adjustFooter=function(){var t=this.innerRef.nativeElement.children[1];t.classList[this.innerRef.nativeElement.children[0].offsetHeight+t.offsetHeight>this.device.height?"remove":"add"]("MDczZT")},t}(),sd=function(){function t(t,e,n){this.app=t,this.device=e,this.er=n,this.scrollTop=0,this.action=new Mi,this.currentId="",this.stacks={},this.linedIds=[],this.config=this.app.config.toc||{}}return t.prototype.navigate=function(t){this.currentId!==t&&(this.currentId=t,this.action.emit(this.getOffset(t)))},t.prototype.syncPosition=function(){var t=this.scrollTop||0;if(t=n.offset&&(void 0===r||t4&&setTimeout(function(){n.style[Ls("transitionDuration")]="",n.style[Ls("transitionProperty")]=""},e+100)},t}();function ad(){for(var t=[],e=0;e1&&(r=1),t.scrollPercent=Math.round(100*r)}else t.scrollPercent=0;"home"===t.currentId&&(t.indexScrollTop=n)}),this.router.events.pipe(ea(function(t){return t instanceof ef})).subscribe(function(){t.screenType!==nd.lg&&t.isSidebarOpen&&t.toggleSb(),t.isTocOpen&&t.toggleToc(),t.scrollPercent=0;var e,n=t.route.snapshot.children[0].children.length?t.route.snapshot.children[0].children[0].data:t.route.snapshot.children[0].data;if(t.currentId=n.id,"home"===t.currentId)setTimeout(function(){t.pageRef.nativeElement.scrollTop=t.indexScrollTop||0},0);else if("post"===t.currentId||"page"===t.currentId){var r=t.route.fragment.value;r?setTimeout(function(){var e=t.doc.getElementById(r);e&&e.scrollIntoView(!0)},24):t.pageRef.nativeElement.scrollTop=0}else t.pageRef.nativeElement.scrollTop=0;t.tocData=n[t.currentId]&&n[t.currentId].toc?n[t.currentId].toc:null,t.setTitle(n),n.post&&n.post.thumbnail?n.post.color?t.themeColor=t.setColor(n.post.color):n.post.thumbnail&&(e=n.post.thumbnail,Ns[e]?Promise.resolve(Ns[e]):new Promise(function(t,n){var r=new Image;r.crossOrigin="anonymous",r.onload=function(){var n,i=ks.doc.createElement("canvas").getContext("2d");i.drawImage(r,0,0);var o=(n=i.getImageData(0,0,1,1).data.slice(0,3)).reduce(function(t,e){return t+e}),l=Is[1]-o;l<0?(l=Math.abs(l),l=Math.floor(l/3),n=n.map(function(t){return t-l})):oc.clientX?"left":"right",u=Math.abs(o-c.clientX),Math.abs(l-c.clientY)>=u||Math.abs(u)>e.hold&&(s=!0,i.next({start:o,offset:a(u),direction:n,isStart:r,isEnd:!1}),r=!1)},{passive:!0}),t.addEventListener("touchend",function(){s&&i.next({start:o,offset:a(u),direction:n,isEnd:!0,isStart:!1}),s=!1,o=l=u=0},{passive:!0}),i.asObservable();function a(t){return Math.ceil((t+(t>0?-e.hold:e.hold))*e.scale)}}(this.pageRef.nativeElement,{scale:.382});e.subscribe(function(e){var n,r=.06*t.device.width,i=t.sidebarWidth,o=t.isSidebarOpen,l=e.offset;!t.isSidebarOpen&&e.start>r||(l>i-1&&(l=i-1),l<1&&(l=1),n=~~(i-l),e.isEnd?li-1&&(l=i-1),l<1&&(l=1),n=~~(i-l),e.isEnd?l0?(this.isTransiting=!0,this.isTocOpen&&this.toggleToc(),r.classList.add("M2E1Zj"),this.setColor(o),Ps(r,function(){0===t&&(r.classList.remove("M2E1Zj"),n.setColor(n.themeColor)),r.style[Ls("transitionDuration")]=r.style[Ls("transitionProperty")]="",i.style[Ls("transitionDuration")]=i.style[Ls("transitionProperty")]="",n.isTransiting=!1})):this.isTransiting||(this.isTransiting=!0,r.classList.add("M2E1Zj"),this.setColor(o)),r.style[Ls("transitionProperty")]=Ls("transform",!0)+",border-radius",r.style[Ls("transform")]=this.transformer(t,1-.14*t/this.sidebarWidth),r.style[Ls("transitionDuration")]=e+"ms",i.style.opacity=t/this.sidebarWidth,i.style[Ls("transitionDuration")]=e+"ms"},t.prototype.toggleSb=function(t){this.isTransiting||(this.isSidebarOpen||t?(this.stepSb(0,~~(1.5*this.sidebarWidth)),this.isSidebarOpen=!1):(this.stepSb(this.sidebarWidth,~~(1.5*this.sidebarWidth)),this.isSidebarOpen=!0,this.isSearchOpen=!1))},t.prototype.toggleToc=function(t){this.isTocOpen||t?(this.toc.step(this.toc.width,~~(1.5*this.toc.width)),this.isTocOpen=!1):(this.toc.refresh(),this.toc.syncPosition(),this.toc.step(0,~~(1.5*this.toc.width)),this.isTocOpen=!0,this.isSearchOpen=!1)},t.prototype.toggleSearch=function(t){this.isSearchOpen=!t&&!this.isSearchOpen},t.prototype.setTitle=function(t){var e=this,n={post:function(t){return t.post.title},page:function(t){return t.page.title},tags:function(){return e.app.i18n("title.tags")},tag:function(t){return e.app.i18n("title.tags")+" : "+t.tag.name},categories:function(){return e.app.i18n("title.categories")},category:function(t){return e.app.i18n("title.categories")+" : "+t.category.name},archives:function(){return e.app.i18n("title.archives")},search:function(){return e.app.i18n("title.search")},404:function(){return 404}}[t.id],r=n?n(t)+" - "+this.config.title:this.config.title;this.title.setTitle(r)},t.prototype.setColor=function(t){return this.meta.updateTag({name:"theme-color",content:t=t||this.config.extend.background}),t},t.prototype.onFabAct=function(t){switch(t){case od.toTop:this.animateTo(0);break;case od.toBottom:this.animateTo(this.pageRef.nativeElement.scrollHeight-this.pageHeight);break;case od.toggleSidebar:this.toggleSb();break;case od.toggleToc:this.toggleToc();break;case od.search:this.toggleSearch()}},t.prototype.animateTo=function(t){var e=this.scrollTop||0,n=Math.abs(~~(.618*(t-e)/1));Os(this.pageRef.nativeElement,"scrollTop",{from:e,to:t,duration:n>618?618:n})},t.prototype.onOverlay=function(){this.isSidebarOpen&&this.toggleSb(),this.isTocOpen&&this.toggleToc()},t.prototype.onkeyup=function(t,e){"Escape"!==t&&27!==e||(this.isSearchOpen&&this.toggleSearch(),this.isTocOpen&&this.toggleToc(),this.isSidebarOpen&&this.toggleSb())},t.prototype.flatPath=function(t){var e=this,n=[];return t?(t.forEach(function(t){if("string"==typeof t)n.push(t);else{var r=Object.keys(t),i=[];r.forEach(function(n){i.push(n),i.push.apply(i,e.flatPath(t[n]).map(function(t){return[n,t].join("/")}))}),n=n.concat(i)}}),n):[]},t}(),pd=er({encapsulation:2,styles:[],data:{}});function hd(t){return ol(0,[(t()(),Ho(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),hi(1,212992,null,0,xh,[Ch,jn,nn,[8,null],Nn],null,null)],function(t,e){t(e,1,0)},null)}function dd(t){return ol(0,[(t()(),Ho(0,0,null,null,1,"ng-component",[],null,null,null,hd,pd)),hi(1,49152,null,0,mf,[],null,null)],null,null)}var yd=Zr("ng-component",mf,dd,{},{},[]),gd=function(){function t(){this.ratio=.625,this.state=-1}return t.prototype.ngOnChanges=function(t){t.src&&(this.state=-1)},t.prototype.onLoad=function(){this.state=1},t.prototype.onError=function(){this.state=0},t}(),md=er({encapsulation:2,styles:[],data:{}});function vd(t){return ol(0,[(t()(),Ho(0,0,null,null,6,"span",[["class","ZDZhND"]],null,null,null,null,null)),yi(512,null,ns,rs,[kn,In,an,dn]),hi(2,278528,null,0,is,[ns],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),tl(3,{NTUyZD:0}),yi(512,null,fs,ps,[an,In,dn]),hi(5,278528,null,0,hs,[fs],{ngStyle:[0,"ngStyle"]},null),tl(6,{padding:0})],function(t,e){var n=e.component,r=t(e,3,0,0===n.state);t(e,2,0,"ZDZhND",r);var i=t(e,6,0,(50*n.ratio).toFixed(3)+"% 0");t(e,5,0,i)},null)}function bd(t){return ol(2,[(t()(),Vo(16777216,null,null,1,null,vd)),hi(1,16384,null,0,ss,[jn,Dn],{ngIf:[0,"ngIf"]},null),(t()(),Ho(2,0,null,null,3,"img",[["class","YzNjN2"]],[[8,"src",4],[8,"alt",0]],[[null,"load"],[null,"error"]],function(t,e,n){var r=!0,i=t.component;return"load"===e&&(r=!1!==i.onLoad()&&r),"error"===e&&(r=!1!==i.onError()&&r),r},null,null)),yi(512,null,fs,ps,[an,In,dn]),hi(4,278528,null,0,hs,[fs],{ngStyle:[0,"ngStyle"]},null),tl(5,{display:0})],function(t,e){var n=e.component;t(e,1,0,1!==n.state);var r=t(e,5,0,1===n.state?"":"none");t(e,4,0,r)},function(t,e){var n=e.component;t(e,2,0,Ir(1,"",n.src,""),Ir(1,"",n.alt,""))})}var _d=function(){function t(t,e){this.er=t,this.renderer=e,this.className="is-snippet"}return t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.process()},0)},t.prototype.process=function(){var t=this,e=/^https?\:\/\/gist.github.com/,n=this.er.nativeElement&&this.er.nativeElement.getElementsByClassName(this.className);n&&n.length&&Array.from(n).forEach(function(n){var r=n.querySelector("script");if(n.classList.remove(t.className),r){var i=r.innerHTML,o=r.src;if(i||o){if(n.removeChild(r),o&&o.match(e)){var l=t.renderer.createElement("iframe");return l.style.display="none",l.onload=function(){var e=l.contentDocument;if(e){var r=t.renderer.createElement("div"),i=e.querySelector('link[rel="stylesheet"]'),o=e.querySelector(".gist");if(i&&o){var u=o.cloneNode();u.innerHTML=o.innerHTML,r.appendChild(i.cloneNode()),r.appendChild(u)}n.removeChild(l),n.appendChild(r),l=e=null}},l.srcdoc='