@angular/router 9.1.0 → 9.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/router-testing.umd.js +24 -5
- package/bundles/router-testing.umd.js.map +1 -1
- package/bundles/router-testing.umd.min.js +4 -4
- package/bundles/router-testing.umd.min.js.map +1 -1
- package/bundles/router-upgrade.umd.js +4 -2
- package/bundles/router-upgrade.umd.js.map +1 -1
- package/bundles/router-upgrade.umd.min.js +1 -1
- package/bundles/router-upgrade.umd.min.js.map +1 -1
- package/bundles/router.umd.js +282 -138
- package/bundles/router.umd.js.map +1 -1
- package/bundles/router.umd.min.js +26 -26
- package/bundles/router.umd.min.js.map +1 -1
- package/esm2015/index.js +1 -1
- package/esm2015/public_api.js +1 -1
- package/esm2015/src/apply_redirects.js +6 -4
- package/esm2015/src/config.js +1 -1
- package/esm2015/src/create_url_tree.js +1 -1
- package/esm2015/src/directives/router_link.js +9 -4
- package/esm2015/src/directives/router_link_active.js +7 -3
- package/esm2015/src/directives/router_outlet.js +7 -3
- package/esm2015/src/events.js +13 -5
- package/esm2015/src/index.js +3 -3
- package/esm2015/src/interfaces.js +1 -1
- package/esm2015/src/operators/activate_routes.js +1 -1
- package/esm2015/src/operators/check_guards.js +8 -5
- package/esm2015/src/operators/prioritized_guard_value.js +7 -7
- package/esm2015/src/operators/recognize.js +1 -1
- package/esm2015/src/operators/resolve_data.js +4 -2
- package/esm2015/src/operators/switch_tap.js +1 -1
- package/esm2015/src/recognize.js +7 -5
- package/esm2015/src/route_reuse_strategy.js +10 -4
- package/esm2015/src/router.js +86 -55
- package/esm2015/src/router_config_loader.js +1 -1
- package/esm2015/src/router_module.js +4 -6
- package/esm2015/src/router_outlet_context.js +7 -3
- package/esm2015/src/router_preloader.js +13 -9
- package/esm2015/src/router_scroller.js +1 -1
- package/esm2015/src/router_state.js +42 -16
- package/esm2015/src/shared.js +10 -4
- package/esm2015/src/url_handling_strategy.js +10 -4
- package/esm2015/src/url_tree.js +21 -9
- package/esm2015/src/utils/collection.js +1 -1
- package/esm2015/src/utils/preactivation.js +1 -1
- package/esm2015/src/utils/tree.js +17 -9
- package/esm2015/src/version.js +1 -1
- package/esm2015/testing/src/router_testing_module.js +5 -3
- package/esm2015/upgrade/src/upgrade.js +4 -2
- package/esm5/src/apply_redirects.js +3 -3
- package/esm5/src/config.js +1 -1
- package/esm5/src/create_url_tree.js +1 -1
- package/esm5/src/directives/router_link.js +9 -4
- package/esm5/src/directives/router_link_active.js +7 -3
- package/esm5/src/directives/router_outlet.js +7 -3
- package/esm5/src/events.js +13 -5
- package/esm5/src/index.js +3 -3
- package/esm5/src/interfaces.js +1 -1
- package/esm5/src/operators/activate_routes.js +1 -1
- package/esm5/src/operators/check_guards.js +22 -19
- package/esm5/src/operators/prioritized_guard_value.js +7 -7
- package/esm5/src/operators/recognize.js +1 -1
- package/esm5/src/operators/resolve_data.js +1 -1
- package/esm5/src/operators/switch_tap.js +1 -1
- package/esm5/src/recognize.js +7 -5
- package/esm5/src/route_reuse_strategy.js +10 -4
- package/esm5/src/router.js +87 -54
- package/esm5/src/router_config_loader.js +1 -1
- package/esm5/src/router_module.js +5 -7
- package/esm5/src/router_outlet_context.js +7 -3
- package/esm5/src/router_preloader.js +13 -9
- package/esm5/src/router_scroller.js +1 -1
- package/esm5/src/router_state.js +46 -18
- package/esm5/src/shared.js +7 -3
- package/esm5/src/url_handling_strategy.js +10 -4
- package/esm5/src/url_tree.js +21 -9
- package/esm5/src/utils/collection.js +1 -1
- package/esm5/src/utils/preactivation.js +1 -1
- package/esm5/src/utils/tree.js +10 -4
- package/esm5/src/version.js +1 -1
- package/esm5/testing/src/router_testing_module.js +5 -3
- package/esm5/upgrade/src/upgrade.js +4 -2
- package/fesm2015/router.js +252 -121
- package/fesm2015/router.js.map +1 -1
- package/fesm2015/testing.js +4 -2
- package/fesm2015/testing.js.map +1 -1
- package/fesm2015/upgrade.js +4 -2
- package/fesm2015/upgrade.js.map +1 -1
- package/fesm5/router.js +262 -135
- package/fesm5/router.js.map +1 -1
- package/fesm5/testing.js +4 -2
- package/fesm5/testing.js.map +1 -1
- package/fesm5/upgrade.js +4 -2
- package/fesm5/upgrade.js.map +1 -1
- package/package.json +4 -4
- package/router.d.ts +25 -22
- package/router.metadata.json +1 -1
- package/testing/testing.d.ts +1 -1
- package/testing/testing.metadata.json +1 -1
- package/testing.d.ts +1 -1
- package/upgrade/upgrade.d.ts +1 -1
- package/upgrade.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v9.1.
|
|
2
|
+
* @license Angular v9.1.4
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
19
19
|
and limitations under the License.
|
|
20
|
-
***************************************************************************** */var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function a(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var u=function(){return(u=Object.assign||function t(e){for(var r,n=1,o=arguments.length;n<o;n++)for(var i in r=arguments[n])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)};function s(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t){var e="function"==typeof Symbol&&
|
|
20
|
+
***************************************************************************** */var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function a(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var u=function(){return(u=Object.assign||function t(e){for(var r,n=1,o=arguments.length;n<o;n++)for(var i in r=arguments[n])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)};function s(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}
|
|
21
21
|
/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -25,56 +25,56 @@
|
|
|
25
25
|
* Use of this source code is governed by an MIT-style license that can be
|
|
26
26
|
* found in the LICENSE file at https://angular.io/license
|
|
27
27
|
*/
|
|
28
|
-
var d,g=function(t){function e(e,r,n,o){void 0===n&&(n="imperative"),void 0===o&&(o=null);var i=t.call(this,e,r)||this;return i.navigationTrigger=n,i.restoredState=o,i}return a(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(d=function d(t,e){this.id=t,this.url=e}),v=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.urlAfterRedirects=n,o}return a(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(d),m=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.reason=n,o}return a(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(d),y=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.error=n,o}return a(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(d),S=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),w=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),b=function(t){function e(e,r,n,o,i){var a=t.call(this,e,r)||this;return a.urlAfterRedirects=n,a.state=o,a.shouldActivate=i,a}return a(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(d),C=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),R=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),U=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),P=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),O=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),_=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),x=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),A=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),T=function(){function t(t,e,r){this.routerEvent=t,this.position=e,this.anchor=r}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),E=s([r.Component({template:"<router-outlet></router-outlet>"})],(function E(){})),j=
|
|
28
|
+
var d,g=function(t){function e(e,r,n,o){void 0===n&&(n="imperative"),void 0===o&&(o=null);var i=t.call(this,e,r)||this;return i.navigationTrigger=n,i.restoredState=o,i}return a(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(d=function d(t,e){this.id=t,this.url=e}),v=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.urlAfterRedirects=n,o}return a(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(d),m=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.reason=n,o}return a(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(d),y=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.error=n,o}return a(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(d),S=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),w=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),b=function(t){function e(e,r,n,o,i){var a=t.call(this,e,r)||this;return a.urlAfterRedirects=n,a.state=o,a.shouldActivate=i,a}return a(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(d),C=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),R=function(t){function e(e,r,n,o){var i=t.call(this,e,r)||this;return i.urlAfterRedirects=n,i.state=o,i}return a(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(d),U=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),P=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),O=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),_=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),x=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),A=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),T=function(){function t(t,e,r){this.routerEvent=t,this.position=e,this.anchor=r}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),E=s([r.Component({template:"<router-outlet></router-outlet>"})],(function E(){})),j=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function k(t){return new j(t)}function I(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function L(t,e,r){var n=r.path.split("/");if(n.length>t.length)return null;if("full"===r.pathMatch&&(e.hasChildren()||n.length<t.length))return null;for(var o={},i=0;i<n.length;i++){var a=n[i],u=t[i];if(a.startsWith(":"))o[a.substring(1)]=u;else if(a!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:o}}
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright Google Inc. All Rights Reserved.
|
|
32
32
|
*
|
|
33
33
|
* Use of this source code is governed by an MIT-style license that can be
|
|
34
34
|
* found in the LICENSE file at https://angular.io/license
|
|
35
|
-
*/var
|
|
35
|
+
*/var M=function M(t,e){this.routes=t,this.module=e};function N(t,e){void 0===e&&(e="");for(var r=0;r<t.length;r++){var n=t[r];q(n,D(e,n))}}function q(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error("Invalid configuration of route '"+e+"': a componentless route without children or loadChildren cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&N(t.children,e)}function D(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function z(t){var e=t.children&&t.children.map(z),r=e?u(u({},t),{children:e}):u({},t);return!r.component&&(e||r.loadChildren)&&r.outlet&&"primary"!==r.outlet&&(r.component=E),r}
|
|
36
36
|
/**
|
|
37
37
|
* @license
|
|
38
38
|
* Copyright Google Inc. All Rights Reserved.
|
|
39
39
|
*
|
|
40
40
|
* Use of this source code is governed by an MIT-style license that can be
|
|
41
41
|
* found in the LICENSE file at https://angular.io/license
|
|
42
|
-
*/function
|
|
42
|
+
*/function H(t,e){var r,n=Object.keys(t),o=Object.keys(e);if(!n||!o||n.length!=o.length)return!1;for(var i=0;i<n.length;i++)if(!F(t[r=n[i]],e[r]))return!1;return!0}function F(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every((function(t){return e.indexOf(t)>-1})):t===e}function B(t){return Array.prototype.concat.apply([],t)}function G(t){return t.length>0?t[t.length-1]:null}function W(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function Q(t){return r.ɵisObservable(t)?t:r.ɵisPromise(t)?n.from(Promise.resolve(t)):n.of(t)}
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright Google Inc. All Rights Reserved.
|
|
46
46
|
*
|
|
47
47
|
* Use of this source code is governed by an MIT-style license that can be
|
|
48
48
|
* found in the LICENSE file at https://angular.io/license
|
|
49
|
-
*/function
|
|
49
|
+
*/function V(t,e,r){return r?function n(t,e){return H(t,e)}(t.queryParams,e.queryParams)&&function t(e,r){if(!K(e.segments,r.segments))return!1;if(e.numberOfChildren!==r.numberOfChildren)return!1;for(var n in r.children){if(!e.children[n])return!1;if(!t(e.children[n],r.children[n]))return!1}return!0}(t.root,e.root):function o(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(r){return F(t[r],e[r])}))}(t.queryParams,e.queryParams)&&function t(e,r){return function e(r,n,o){if(r.segments.length>o.length)return!!K(a=r.segments.slice(0,o.length),o)&&!n.hasChildren();if(r.segments.length===o.length){if(!K(r.segments,o))return!1;for(var i in n.children){if(!r.children[i])return!1;if(!t(r.children[i],n.children[i]))return!1}return!0}var a=o.slice(0,r.segments.length),u=o.slice(r.segments.length);return!!K(r.segments,a)&&!!r.children.primary&&e(r.children.primary,n,u)}(e,r,r.segments)}(t.root,e.root)}var Z=function(){function t(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=k(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return et.serialize(this)},t}(),Y=function(){function t(t,e){var r=this;this.segments=t,this.children=e,this.parent=null,W(e,(function(t,e){return t.parent=r}))}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 rt(this)},t}(),$=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=k(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return st(this)},t}();function K(t,e){return t.length===e.length&&t.every((function(t,r){return t.path===e[r].path}))}function J(t,e){var r=[];return W(t.children,(function(t,n){"primary"===n&&(r=r.concat(e(t,n)))})),W(t.children,(function(t,n){"primary"!==n&&(r=r.concat(e(t,n)))})),r}var X=function X(){},tt=function(){function t(){}return t.prototype.parse=function(t){var e=new ft(t);return new Z(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return"/"+function t(e,r){if(!e.hasChildren())return rt(e);if(r){var n=e.children.primary?t(e.children.primary,!1):"",o=[];return W(e.children,(function(e,r){"primary"!==r&&o.push(r+":"+t(e,!1))})),o.length>0?n+"("+o.join("//")+")":n}var i=J(e,(function(r,n){return"primary"===n?[t(e.children.primary,!1)]:[n+":"+t(r,!1)]}));return rt(e)+"/("+i.join("//")+")"}(t.root,!0)+function e(t){var e=Object.keys(t).map((function(e){var r=t[e];return Array.isArray(r)?r.map((function(t){return ot(e)+"="+ot(t)})).join("&"):ot(e)+"="+ot(r)}));return e.length?"?"+e.join("&"):""}(t.queryParams)+("string"==typeof t.fragment?"#"+function r(t){return encodeURI(t)}(t.fragment):"")},t}(),et=new tt;function rt(t){return t.segments.map((function(t){return st(t)})).join("/")}function nt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ot(t){return nt(t).replace(/%3B/gi,";")}function it(t){return nt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function at(t){return decodeURIComponent(t)}function ut(t){return at(t.replace(/\+/g,"%20"))}function st(t){return""+it(t.path)+function e(t){return Object.keys(t).map((function(e){return";"+it(e)+"="+it(t[e])})).join("")}(t.parameters)}var ct=/^[^\/()?;=#]+/;function lt(t){var e=t.match(ct);return e?e[0]:""}var pt=/^[^=?&#]+/,ht=/^[^?&#]+/,ft=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 Y([],{}):new Y([],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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r.primary=new Y(t,e)),r},t.prototype.parseSegment=function(){var t=lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new $(at(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=lt(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=lt(this.remaining);n&&this.capture(r=n)}t[at(e)]=at(r)}},t.prototype.parseQueryParam=function(t){var e=function r(t){var e=t.match(pt);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var o=function i(t){var e=t.match(ht);return e?e[0]:""}(this.remaining);o&&this.capture(n=o)}var a=ut(e),u=ut(n);if(t.hasOwnProperty(a)){var s=t[a];Array.isArray(s)||(t[a]=s=[s]),s.push(u)}else t[a]=u}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var r=lt(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o="primary");var i=this.parseChildren();e[o]=1===Object.keys(i).length?i.primary:new Y([],i),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}(),dt=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=gt(t,this._root);return e?e.children.map((function(t){return t.value})):[]},t.prototype.firstChild=function(t){var e=gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=vt(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 vt(t,this._root).map((function(t){return t.value}))},t}();function gt(t,e){var r,n;if(t===e.value)return e;try{for(var o=p(e.children),i=o.next();!i.done;i=o.next()){var a=gt(t,i.value);if(a)return a}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null}function vt(t,e){var r,n;if(t===e.value)return[e];try{for(var o=p(e.children),i=o.next();!i.done;i=o.next()){var a=vt(t,i.value);if(a.length)return a.unshift(e),a}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return[]}var mt=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function yt(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright Google Inc. All Rights Reserved.
|
|
53
53
|
*
|
|
54
54
|
* Use of this source code is governed by an MIT-style license that can be
|
|
55
55
|
* found in the LICENSE file at https://angular.io/license
|
|
56
|
-
*/var
|
|
56
|
+
*/var St=function(t){function e(e,r){var n=t.call(this,e)||this;return n.snapshot=r,Pt(n,e),n}return a(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(dt);function wt(t,e){var r=function o(t,e){var r=new Rt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Ut("",new mt(r,[]))}(t,e),i=new n.BehaviorSubject([new $("",{})]),a=new n.BehaviorSubject({}),u=new n.BehaviorSubject({}),s=new n.BehaviorSubject({}),c=new n.BehaviorSubject(""),l=new bt(i,a,s,c,u,"primary",e,r.root);return l.snapshot=r.root,new St(new mt(l,[]),r)}var bt=function(){function t(t,e,r,n,o,i,a,u){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=a,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(o.map((function(t){return k(t)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(o.map((function(t){return k(t)})))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Ct(t,e){void 0===e&&(e="emptyOnly");var r=t.pathFromRoot,n=0;if("always"!==e)for(n=r.length-1;n>=1;){var o=r[n],i=r[n-1];if(o.routeConfig&&""===o.routeConfig.path)n--;else{if(i.component)break;n--}}return function a(t){return t.reduce((function(t,e){return{params:u(u({},t.params),e.params),data:u(u({},t.data),e.data),resolve:u(u({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(r.slice(n))}var Rt=function(){function t(t,e,r,n,o,i,a,u,s,c,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=a,this.routeConfig=u,this._urlSegment=s,this._lastPathIndex=c,this._resolve=l}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=k(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=k(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}(),Ut=function(t){function e(e,r){var n=t.call(this,r)||this;return n.url=e,Pt(n,r),n}return a(e,t),e.prototype.toString=function(){return Ot(this._root)},e}(dt);function Pt(t,e){e.value._routerState=t,e.children.forEach((function(e){return Pt(t,e)}))}function Ot(t){var e=t.children.length>0?" { "+t.children.map(Ot).join(", ")+" } ":"";return""+t.value+e}function _t(t){if(t.snapshot){var e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,H(e.queryParams,r.queryParams)||t.queryParams.next(r.queryParams),e.fragment!==r.fragment&&t.fragment.next(r.fragment),H(e.params,r.params)||t.params.next(r.params),function n(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!H(t[r],e[r]))return!1;return!0}(e.url,r.url)||t.url.next(r.url),H(e.data,r.data)||t.data.next(r.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function xt(t,e){return H(t.params,e.params)&&function r(t,e){return K(t,e)&&t.every((function(t,r){return H(t.parameters,e[r].parameters)}))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||xt(t.parent,e.parent))}
|
|
57
57
|
/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright Google Inc. All Rights Reserved.
|
|
60
60
|
*
|
|
61
61
|
* Use of this source code is governed by an MIT-style license that can be
|
|
62
62
|
* found in the LICENSE file at https://angular.io/license
|
|
63
|
-
*/function
|
|
63
|
+
*/function At(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Tt(t,e,r,n,o){var i={};return n&&W(n,(function(t,e){i[e]=Array.isArray(t)?t.map((function(t){return""+t})):""+t})),new Z(r.root===t?e:function t(e,r,n){var o={};return W(e.children,(function(e,i){o[i]=e===r?n:t(e,r,n)})),new Y(e.segments,o)}(r.root,t,e),i,o)}var Et=function(){function t(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&At(r[0]))throw new Error("Root segment cannot have matrix parameters");var n=r.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(n&&n!==G(r))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}(),jt=function jt(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r};function kt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function It(t,e,r){if(t||(t=new Y([],{})),0===t.segments.length&&t.hasChildren())return Lt(t,e,r);var n=function o(t,e,r){for(var n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(n>=r.length)return i;var a=t.segments[o],u=kt(r[n]),s=n<r.length-1?r[n+1]:null;if(o>0&&void 0===u)break;if(u&&s&&"object"==typeof s&&void 0===s.outlets){if(!Dt(u,s,a))return i;n+=2}else{if(!Dt(u,{},a))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){var a=new Y(t.segments.slice(0,n.pathIndex),{});return a.children.primary=new Y(t.segments.slice(n.pathIndex),t.children),Lt(a,0,i)}return n.match&&0===i.length?new Y(t.segments,{}):n.match&&!t.hasChildren()?Mt(t,e,r):n.match?Lt(t,0,i):Mt(t,e,r)}function Lt(t,e,r){if(0===r.length)return new Y(t.segments,{});var n=function o(t){var e,r;return"object"!=typeof t[0]?((e={}).primary=t,e):void 0===t[0].outlets?((r={}).primary=t,r):t[0].outlets}(r),i={};return W(n,(function(r,n){null!==r&&(i[n]=It(t.children[n],e,r))})),W(t.children,(function(t,e){void 0===n[e]&&(i[e]=t)})),new Y(t.segments,i)}function Mt(t,e,r){for(var n=t.segments.slice(0,e),o=0;o<r.length;){if("object"==typeof r[o]&&void 0!==r[o].outlets){var i=Nt(r[o].outlets);return new Y(n,i)}if(0===o&&At(r[0]))n.push(new $(t.segments[e].path,r[0])),o++;else{var a=kt(r[o]),u=o<r.length-1?r[o+1]:null;a&&u&&At(u)?(n.push(new $(a,qt(u))),o+=2):(n.push(new $(a,{})),o++)}}return new Y(n,{})}function Nt(t){var e={};return W(t,(function(t,r){null!==t&&(e[r]=Mt(new Y([],{}),0,t))})),e}function qt(t){var e={};return W(t,(function(t,r){return e[r]=""+t})),e}function Dt(t,e,r){return t==r.path&&H(e,r.parameters)}
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright Google Inc. All Rights Reserved.
|
|
67
67
|
*
|
|
68
68
|
* Use of this source code is governed by an MIT-style license that can be
|
|
69
69
|
* found in the LICENSE file at https://angular.io/license
|
|
70
|
-
*/var
|
|
70
|
+
*/var zt=function(){function t(t,e,r,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=r,this.forwardEvent=n}return t.prototype.activate=function(t){var e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),_t(this.futureState.root),this.activateChildRoutes(e,r,t)},t.prototype.deactivateChildRoutes=function(t,e,r){var n=this,o=yt(e);t.children.forEach((function(t){var e=t.value.outlet;n.deactivateRoutes(t,o[e],r),delete o[e]})),W(o,(function(t,e){n.deactivateRouteAndItsChildren(t,r)}))},t.prototype.deactivateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(n===o)if(n.component){var i=r.getContext(n.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var r=e.getContext(t.value.outlet);if(r&&r.outlet){var n=r.outlet.detach(),o=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t,contexts:o})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var r=this,n=e.getContext(t.value.outlet);if(n){var o=yt(t),i=t.value.component?n.children:e;W(o,(function(t,e){return r.deactivateRouteAndItsChildren(t,i)})),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,r){var n=this,o=yt(e);t.children.forEach((function(t){n.activateRoutes(t,o[t.value.outlet],r),n.forwardEvent(new A(t.value.snapshot))})),t.children.length&&this.forwardEvent(new _(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(_t(n),n===o)if(n.component){var i=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,r);else if(n.component)if(i=r.getOrCreateContext(n.outlet),this.routeReuseStrategy.shouldAttach(n.snapshot)){var a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),i.children.onOutletReAttached(a.contexts),i.attachRef=a.componentRef,i.route=a.route.value,i.outlet&&i.outlet.attach(a.componentRef,a.route.value),Ht(a.route)}else{var u=function s(t){for(var e=t.parent;e;e=e.parent){var r=e.routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null}return null}
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
73
73
|
* Copyright Google Inc. All Rights Reserved.
|
|
74
74
|
*
|
|
75
75
|
* Use of this source code is governed by an MIT-style license that can be
|
|
76
76
|
* found in the LICENSE file at https://angular.io/license
|
|
77
|
-
*/(n.snapshot),c=u?u.module.componentFactoryResolver:null;i.attachRef=null,i.route=n,i.resolver=c,i.outlet&&i.outlet.activateWith(n,c),this.activateChildRoutes(t,null,i.children)}else this.activateChildRoutes(t,null,r)},t}();function
|
|
77
|
+
*/(n.snapshot),c=u?u.module.componentFactoryResolver:null;i.attachRef=null,i.route=n,i.resolver=c,i.outlet&&i.outlet.activateWith(n,c),this.activateChildRoutes(t,null,i.children)}else this.activateChildRoutes(t,null,r)},t}();function Ht(t){_t(t.value),t.children.forEach(Ht)}function Ft(t){return"function"==typeof t}function Bt(t){return t instanceof Z}
|
|
78
78
|
/**
|
|
79
79
|
* @license
|
|
80
80
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -82,7 +82,7 @@ var d,g=function(t){function e(e,r,n,o){void 0===n&&(n="imperative"),void 0===o&
|
|
|
82
82
|
* Use of this source code is governed by an MIT-style license that can be
|
|
83
83
|
* found in the LICENSE file at https://angular.io/license
|
|
84
84
|
*/
|
|
85
|
-
var
|
|
85
|
+
var Gt=function Gt(t){this.segmentGroup=t||null},Wt=function Wt(t){this.urlTree=t};function Qt(t){return new n.Observable((function(e){return e.error(new Gt(t))}))}function Vt(t){return new n.Observable((function(e){return e.error(new Wt(t))}))}function Zt(t){return new n.Observable((function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))}))}var Yt=function(){function t(t,e,n,o,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(r.NgModuleRef)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(o.map((function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)}))).pipe(o.catchError((function(e){if(e instanceof Wt)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Gt)throw t.noMatchError(e);throw e})))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(o.map((function(r){return e.createUrlTree(r,t.queryParams,t.fragment)}))).pipe(o.catchError((function(t){if(t instanceof Gt)throw e.noMatchError(t);throw t})))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,r){var n,o=t.segments.length>0?new Y([],((n={}).primary=t,n)):t;return new Z(o,e,r)},t.prototype.expandSegmentGroup=function(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,e,r).pipe(o.map((function(t){return new Y([],t)}))):this.expandSegment(t,r,e,r.segments,n,!0)},t.prototype.expandChildren=function(t,e,r){var i=this;return function a(t,e){if(0===Object.keys(t).length)return n.of({});var r=[],i=[],a={};return W(t,(function(t,n){var u=e(n,t).pipe(o.map((function(t){return a[n]=t})));"primary"===n?r.push(u):i.push(u)})),n.of.apply(null,r.concat(i)).pipe(o.concatAll(),o.last(),o.map((function(){return a})))}(r.children,(function(r,n){return i.expandSegmentGroup(t,e,n,r)}))},t.prototype.expandSegment=function(t,e,r,i,a,u){var s=this;return n.of.apply(void 0,f(r)).pipe(o.map((function(c){return s.expandSegmentAgainstRoute(t,e,r,c,i,a,u).pipe(o.catchError((function(t){if(t instanceof Gt)return n.of(null);throw t})))})),o.concatAll(),o.first((function(t){return!!t})),o.catchError((function(t,r){if(t instanceof n.EmptyError||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,i,a))return n.of(new Y([],{}));throw new Gt(e)}throw t})))},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.expandSegmentAgainstRoute=function(t,e,r,n,o,i,a){return Xt(n)!==i?Qt(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i):Qt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,r,n){var i=this,a=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Vt(a):this.lineralizeSegments(r,a).pipe(o.mergeMap((function(r){var o=new Y(r,{});return i.expandSegment(t,o,e,r,n,!1)})))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,n,i,a){var u=this,s=$t(e,n,i),c=s.consumedSegments,l=s.lastChild,p=s.positionalParamSegments;if(!s.matched)return Qt(e);var h=this.applyRedirectCommands(c,n.redirectTo,p);return n.redirectTo.startsWith("/")?Vt(h):this.lineralizeSegments(n,h).pipe(o.mergeMap((function(n){return u.expandSegment(t,e,r,n.concat(i.slice(l)),a,!1)})))},t.prototype.matchSegmentAgainstRoute=function(t,e,r,i){var a=this;if("**"===r.path)return r.loadChildren?this.configLoader.load(t.injector,r).pipe(o.map((function(t){return r._loadedConfig=t,new Y(i,{})}))):n.of(new Y(i,{}));var s=$t(e,r,i),c=s.consumedSegments,l=s.lastChild;if(!s.matched)return Qt(e);var h=i.slice(l);return this.getChildConfig(t,r,i).pipe(o.mergeMap((function(t){var r=t.module,i=t.routes,s=function l(t,e,r,n){return r.length>0&&function o(t,e,r){return r.some((function(r){return Jt(t,e,r)&&"primary"!==Xt(r)}))}(t,r,n)?{segmentGroup:Kt(new Y(e,function i(t,e){var r,n,o={};o.primary=e;try{for(var i=p(t),a=i.next();!a.done;a=i.next()){var u=a.value;""===u.path&&"primary"!==Xt(u)&&(o[Xt(u)]=new Y([],{}))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}(n,new Y(r,t.children)))),slicedSegments:[]}:0===r.length&&function a(t,e,r){return r.some((function(r){return Jt(t,e,r)}))}(t,r,n)?{segmentGroup:Kt(new Y(t.segments,function s(t,e,r,n){var o,i,a={};try{for(var s=p(r),c=s.next();!c.done;c=s.next()){var l=c.value;Jt(t,e,l)&&!n[Xt(l)]&&(a[Xt(l)]=new Y([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return u(u({},n),a)}(t,r,n,t.children))),slicedSegments:r}:{segmentGroup:t,slicedSegments:r}}(e,c,h,i),f=s.segmentGroup,d=s.slicedSegments;return 0===d.length&&f.hasChildren()?a.expandChildren(r,i,f).pipe(o.map((function(t){return new Y(c,t)}))):0===i.length&&0===d.length?n.of(new Y(c,{})):a.expandSegment(r,f,i,d,"primary",!0).pipe(o.map((function(t){return new Y(c.concat(t.segments),t.children)})))})))},t.prototype.getChildConfig=function(t,e,r){var i=this;return e.children?n.of(new M(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?n.of(e._loadedConfig):function a(t,e,r){var i=e.canLoad;return i&&0!==i.length?n.from(i).pipe(o.map((function(n){var o,i=t.get(n);if(function a(t){return t&&Ft(t.canLoad)}(i))o=i.canLoad(e,r);else{if(!Ft(i))throw new Error("Invalid CanLoad guard");o=i(e,r)}return Q(o)}))).pipe(o.concatAll(),o.every((function(t){return!0===t}))):n.of(!0)}(t.injector,e,r).pipe(o.mergeMap((function(r){return r?i.configLoader.load(t.injector,e).pipe(o.map((function(t){return e._loadedConfig=t,t}))):function a(t){return new n.Observable((function(e){return e.error(I("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))}))}(e)}))):n.of(new M([],t))},t.prototype.lineralizeSegments=function(t,e){for(var r=[],o=e.root;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return n.of(r);if(o.numberOfChildren>1||!o.children.primary)return Zt(t.redirectTo);o=o.children.primary}},t.prototype.applyRedirectCommands=function(t,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,r,n){var o=this.createSegmentGroup(t,e.root,r,n);return new Z(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var r={};return W(t,(function(t,n){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);r[n]=e[o]}else r[n]=t})),r},t.prototype.createSegmentGroup=function(t,e,r,n){var o=this,i=this.createSegments(t,e.segments,r,n),a={};return W(e.children,(function(e,i){a[i]=o.createSegmentGroup(t,e,r,n)})),new Y(i,a)},t.prototype.createSegments=function(t,e,r,n){var o=this;return e.map((function(e){return e.path.startsWith(":")?o.findPosParam(t,e,n):o.findOrReturn(e,r)}))},t.prototype.findPosParam=function(t,e,r){var n=r[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return n},t.prototype.findOrReturn=function(t,e){var r,n,o=0;try{for(var i=p(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u.path===t.path)return e.splice(o),u;o++}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return t},t}();function $t(t,e,r){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(e.matcher||L)(r,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Kt(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Y(t.segments.concat(e.segments),e.children)}return t}function Jt(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0!==r.redirectTo}function Xt(t){return t.outlet||"primary"}
|
|
86
86
|
/**
|
|
87
87
|
* @license
|
|
88
88
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -97,21 +97,21 @@ var Qt=function Qt(t){this.segmentGroup=t||null},Vt=function Vt(t){this.urlTree=
|
|
|
97
97
|
* Use of this source code is governed by an MIT-style license that can be
|
|
98
98
|
* found in the LICENSE file at https://angular.io/license
|
|
99
99
|
*/
|
|
100
|
-
var
|
|
100
|
+
var te=function te(t){this.path=t,this.route=this.path[this.path.length-1]},ee=function ee(t,e){this.component=t,this.route=e};function re(t,e,r){var n=function o(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var r=e.routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}(e);return(n?n.module.injector:r).get(t)}function ne(t,e,r,n,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=yt(e);return t.children.forEach((function(t){!function e(t,r,n,o,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var a=t.value,u=r?r.value:null,s=n?n.getContext(t.value.outlet):null;if(u&&a.routeConfig===u.routeConfig){var c=function l(t,e,r){if("function"==typeof r)return r(t,e);switch(r){case"pathParamsChange":return!K(t.url,e.url);case"pathParamsOrQueryParamsChange":return!K(t.url,e.url)||!H(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xt(t,e)||!H(t.queryParams,e.queryParams);case"paramsChange":default:return!xt(t,e)}}(u,a,a.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new te(o)):(a.data=u.data,a._resolvedData=u._resolvedData),ne(t,r,a.component?s?s.children:null:n,o,i),c&&i.canDeactivateChecks.push(new ee(s&&s.outlet&&s.outlet.component||null,u))}else u&&oe(r,s,i),i.canActivateChecks.push(new te(o)),ne(t,null,a.component?s?s.children:null:n,o,i)}(t,i[t.value.outlet],r,n.concat([t.value]),o),delete i[t.value.outlet]})),W(i,(function(t,e){return oe(t,r.getContext(e),o)})),o}function oe(t,e,r){var n=yt(t),o=t.value;W(n,(function(t,n){oe(t,o.component?e?e.children.getContext(n):null:e,r)})),r.canDeactivateChecks.push(new ee(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}
|
|
101
101
|
/**
|
|
102
102
|
* @license
|
|
103
103
|
* Copyright Google Inc. All Rights Reserved.
|
|
104
104
|
*
|
|
105
105
|
* Use of this source code is governed by an MIT-style license that can be
|
|
106
106
|
* found in the LICENSE file at https://angular.io/license
|
|
107
|
-
*/var
|
|
107
|
+
*/var ie=Symbol("INITIAL_VALUE");function ae(){return o.switchMap((function(t){return n.combineLatest.apply(void 0,f(t.map((function(t){return t.pipe(o.take(1),o.startWith(ie))})))).pipe(o.scan((function(t,e){var r=!1;return e.reduce((function(t,n,o){if(t!==ie)return t;if(n===ie&&(r=!0),!r){if(!1===n)return n;if(o===e.length-1||Bt(n))return n}return t}),t)}),ie),o.filter((function(t){return t!==ie})),o.map((function(t){return Bt(t)?t:!0===t})),o.take(1))}))}
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright Google Inc. All Rights Reserved.
|
|
111
111
|
*
|
|
112
112
|
* Use of this source code is governed by an MIT-style license that can be
|
|
113
113
|
* found in the LICENSE file at https://angular.io/license
|
|
114
|
-
*/function
|
|
114
|
+
*/function ue(t,e){return null!==t&&e&&e(new x(t)),n.of(!0)}function se(t,e){return null!==t&&e&&e(new O(t)),n.of(!0)}function ce(t,e,r){var i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return n.of(!0);var a=i.map((function(i){return n.defer((function(){var n,a=re(i,e,r);if(function u(t){return t&&Ft(t.canActivate)}(a))n=Q(a.canActivate(e,t));else{if(!Ft(a))throw new Error("Invalid CanActivate guard");n=Q(a(e,t))}return n.pipe(o.first())}))}));return n.of(a).pipe(ae())}function le(t,e,r){var i=e[e.length-1],a=e.slice(0,e.length-1).reverse().map((function(t){return function e(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return n.defer((function(){var a=e.guards.map((function(n){var a,u=re(n,e.node,r);if(function s(t){return t&&Ft(t.canActivateChild)}(u))a=Q(u.canActivateChild(i,t));else{if(!Ft(u))throw new Error("Invalid CanActivateChild guard");a=Q(u(i,t))}return a.pipe(o.first())}));return n.of(a).pipe(ae())}))}));return n.of(a).pipe(ae())}
|
|
115
115
|
/**
|
|
116
116
|
* @license
|
|
117
117
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -119,28 +119,28 @@ var re=function re(t){this.path=t,this.route=this.path[this.path.length-1]},ne=f
|
|
|
119
119
|
* Use of this source code is governed by an MIT-style license that can be
|
|
120
120
|
* found in the LICENSE file at https://angular.io/license
|
|
121
121
|
*/
|
|
122
|
-
var
|
|
122
|
+
var pe=function Gt(){},he=function(){function t(t,e,r,n,o,i){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=ge(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),r=new Rt([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),o=new mt(r,e),i=new Ut(this.url,o);return this.inheritParamsAndData(i._root),n.of(i)}catch(t){return new n.Observable((function(e){return e.error(t)}))}},t.prototype.inheritParamsAndData=function(t){var e=this,r=t.value,n=Ct(r,this.paramsInheritanceStrategy);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))},t.prototype.processSegmentGroup=function(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)},t.prototype.processChildren=function(t,e){var r=this,n=J(e,(function(e,n){return r.processSegmentGroup(t,e,n)}));return function o(t){var e={};t.forEach((function(t){var r=e[t.value.outlet];if(r){var n=r.url.map((function(t){return t.toString()})).join("/"),o=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+n+"' and '"+o+"'.")}e[t.value.outlet]=t.value}))}(n),function i(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(n),n},t.prototype.processSegment=function(t,e,r,n){var o,i;try{for(var a=p(t),u=a.next();!u.done;u=a.next()){var s=u.value;try{return this.processSegmentAgainstRoute(s,e,r,n)}catch(t){if(!(t instanceof pe))throw t}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,r,n))return[];throw new pe},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.processSegmentAgainstRoute=function(t,e,r,n){if(t.redirectTo)throw new pe;if((t.outlet||"primary")!==n)throw new pe;var o,i=[],a=[];if("**"===t.path){var s=r.length>0?G(r).parameters:{};o=new Rt(r,s,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,ye(t),n,t.component,t,fe(e),de(e)+r.length,Se(t))}else{var c=function l(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new pe;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(e.matcher||L)(r,t,e);if(!n)throw new pe;var o={};W(n.posParams,(function(t,e){o[e]=t.path}));var i=n.consumed.length>0?u(u({},o),n.consumed[n.consumed.length-1].parameters):o;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:i}}(e,t,r);i=c.consumedSegments,a=r.slice(c.lastChild),o=new Rt(i,c.parameters,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,ye(t),n,t.component,t,fe(e),de(e)+i.length,Se(t))}var p=function h(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=ge(e,i,a,p,this.relativeLinkResolution),d=f.segmentGroup,g=f.slicedSegments;if(0===g.length&&d.hasChildren()){var v=this.processChildren(p,d);return[new mt(o,v)]}if(0===p.length&&0===g.length)return[new mt(o,[])];var m=this.processSegment(p,d,g,"primary");return[new mt(o,m)]},t}();function fe(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function de(t){for(var e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)r+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return r-1}function ge(t,e,r,n,o){if(r.length>0&&function i(t,e,r){return r.some((function(r){return ve(t,e,r)&&"primary"!==me(r)}))}(t,r,n)){var a=new Y(e,function s(t,e,r,n){var o,i,a={};a.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;try{for(var u=p(r),s=u.next();!s.done;s=u.next()){var c=s.value;if(""===c.path&&"primary"!==me(c)){var l=new Y([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,a[me(c)]=l}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return a}(t,e,n,new Y(r,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===r.length&&function c(t,e,r){return r.some((function(r){return ve(t,e,r)}))}(t,r,n)){var l=new Y(t.segments,function h(t,e,r,n,o,i){var a,s,c={};try{for(var l=p(n),h=l.next();!h.done;h=l.next()){var f=h.value;if(ve(t,r,f)&&!o[me(f)]){var d=new Y([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===i?t.segments.length:e.length,c[me(f)]=d}}}catch(t){a={error:t}}finally{try{h&&!h.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}return u(u({},o),c)}(t,e,r,n,t.children,o));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:r}}var f=new Y(t.segments,t.children);return f._sourceSegment=t,f._segmentIndexShift=e.length,{segmentGroup:f,slicedSegments:r}}function ve(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0===r.redirectTo}function me(t){return t.outlet||"primary"}function ye(t){return t.data||{}}function Se(t){return t.resolve||{}}
|
|
123
123
|
/**
|
|
124
124
|
* @license
|
|
125
125
|
* Copyright Google Inc. All Rights Reserved.
|
|
126
126
|
*
|
|
127
127
|
* Use of this source code is governed by an MIT-style license that can be
|
|
128
128
|
* found in the LICENSE file at https://angular.io/license
|
|
129
|
-
*/function
|
|
129
|
+
*/function we(t,e,r,n){var o=re(t,e,n);return Q(o.resolve?o.resolve(e,r):o(e,r))}
|
|
130
130
|
/**
|
|
131
131
|
* @license
|
|
132
132
|
* Copyright Google Inc. All Rights Reserved.
|
|
133
133
|
*
|
|
134
134
|
* Use of this source code is governed by an MIT-style license that can be
|
|
135
135
|
* found in the LICENSE file at https://angular.io/license
|
|
136
|
-
*/function
|
|
136
|
+
*/function be(t){return function(e){return e.pipe(o.switchMap((function(e){var r=t(e);return r?n.from(r).pipe(o.map((function(){return e}))):n.from([e])})))}}
|
|
137
137
|
/**
|
|
138
138
|
* @license
|
|
139
139
|
* Copyright Google Inc. All Rights Reserved.
|
|
140
140
|
*
|
|
141
141
|
* Use of this source code is governed by an MIT-style license that can be
|
|
142
142
|
* found in the LICENSE file at https://angular.io/license
|
|
143
|
-
*/var
|
|
143
|
+
*/var Ce=function Ce(){},Re=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}(),Ue=new r.InjectionToken("ROUTES"),Pe=function(){function t(t,e,r,n){this.loader=t,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=n}return t.prototype.load=function(t,e){var r=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(o.map((function(n){r.onLoadEndListener&&r.onLoadEndListener(e);var o=n.create(t);return new M(B(o.injector.get(Ue)).map(z),o)})))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?n.from(this.loader.load(t)):Q(t()).pipe(o.mergeMap((function(t){return t instanceof r.NgModuleFactory?n.of(t):n.from(e.compiler.compileModuleAsync(t))})))},t}(),Oe=function Oe(){},_e=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}();
|
|
144
144
|
/**
|
|
145
145
|
* @license
|
|
146
146
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -148,49 +148,49 @@ var fe=function Qt(){},de=function(){function t(t,e,r,n,o,i){this.rootComponentT
|
|
|
148
148
|
* Use of this source code is governed by an MIT-style license that can be
|
|
149
149
|
* found in the LICENSE file at https://angular.io/license
|
|
150
150
|
*/
|
|
151
|
-
function
|
|
151
|
+
function xe(t){throw t}function Ae(t,e,r){return e.parse("/")}function Te(t,e){return n.of(null)}var Ee=function(){function t(t,e,o,i,a,u,s,c){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=o,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new n.Subject,this.errorHandler=xe,this.malformedUriErrorHandler=Ae,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Te,afterPreactivation:Te},this.urlHandlingStrategy=new _e,this.routeReuseStrategy=new Re,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(r.NgModuleRef),this.console=a.get(r.ɵConsole);var p=a.get(r.NgZone);this.isNgZoneEnabled=p instanceof r.NgZone,this.resetConfig(c),this.currentUrlTree=function h(){return new Z(new Y([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pe(u,s,(function(t){return l.triggerEvent(new U(t))}),(function(t){return l.triggerEvent(new P(t))})),this.routerState=wt(this.currentUrlTree,this.rootComponentType),this.transitions=new n.BehaviorSubject({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,r=this.events;return t.pipe(o.filter((function(t){return 0!==t.id})),o.map((function(t){return u(u({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),o.switchMap((function(t){var i,a,s,c=!1,l=!1;return n.of(t).pipe(o.tap((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?u(u({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),o.switchMap((function(t){var i=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||i)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return n.of(t).pipe(o.switchMap((function(t){var o=e.transitions.getValue();return r.next(new g(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),o!==e.transitions.getValue()?n.EMPTY:[t]})),o.switchMap((function(t){return Promise.resolve(t)})),function a(t,e,r,n){return function(i){return i.pipe(o.switchMap((function(i){return function a(t,e,r,n,o){return new Yt(t,e,r,n,o).apply()}(t,e,r,i.extractedUrl,n).pipe(o.map((function(t){return u(u({},i),{urlAfterRedirects:t})})))})))}}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),o.tap((function(t){e.currentNavigation=u(u({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function s(t,e,r,n,i){return function(a){return a.pipe(o.mergeMap((function(a){return function s(t,e,r,n,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new he(t,e,r,n,o,i).recognize()}(t,e,a.urlAfterRedirects,r(a.urlAfterRedirects),n,i).pipe(o.map((function(t){return u(u({},a),{targetSnapshot:t})})))})))}}
|
|
152
152
|
/**
|
|
153
153
|
* @license
|
|
154
154
|
* Copyright Google Inc. All Rights Reserved.
|
|
155
155
|
*
|
|
156
156
|
* Use of this source code is governed by an MIT-style license that can be
|
|
157
157
|
* found in the LICENSE file at https://angular.io/license
|
|
158
|
-
*/(e.rootComponentType,e.config,(function(t){return e.serializeUrl(t)}),e.paramsInheritanceStrategy,e.relativeLinkResolution),o.tap((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),o.tap((function(t){var n=new S(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);r.next(n)})));if(i&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,l=t.source,p=t.restoredState,h=t.extras,f=new g(t.id,e.serializeUrl(c),l,p);r.next(f);var d=
|
|
158
|
+
*/(e.rootComponentType,e.config,(function(t){return e.serializeUrl(t)}),e.paramsInheritanceStrategy,e.relativeLinkResolution),o.tap((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),o.tap((function(t){var n=new S(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);r.next(n)})));if(i&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,l=t.source,p=t.restoredState,h=t.extras,f=new g(t.id,e.serializeUrl(c),l,p);r.next(f);var d=wt(c,e.rootComponentType).snapshot;return n.of(u(u({},t),{targetSnapshot:d,urlAfterRedirects:c,extras:u(u({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),n.EMPTY})),be((function(t){var r=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!r.skipLocationChange,replaceUrl:!!r.replaceUrl})})),o.tap((function(t){var r=new w(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)})),o.map((function(t){return u(u({},t),{guards:(r=t.targetSnapshot,n=t.currentSnapshot,o=e.rootContexts,i=r._root,ne(i,n?n._root:null,o,[i.value]))});var r,n,o,i})),function h(t,e){return function(r){return r.pipe(o.mergeMap((function(r){var i=r.targetSnapshot,a=r.currentSnapshot,s=r.guards,c=s.canActivateChecks,l=s.canDeactivateChecks;return 0===l.length&&0===c.length?n.of(u(u({},r),{guardsResult:!0})):function p(t,e,r,i){return n.from(t).pipe(o.mergeMap((function(t){return function a(t,e,r,i,u){var s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return n.of(!0);var c=s.map((function(n){var a,s=re(n,e,u);if(function c(t){return t&&Ft(t.canDeactivate)}(s))a=Q(s.canDeactivate(t,e,r,i));else{if(!Ft(s))throw new Error("Invalid CanDeactivate guard");a=Q(s(t,e,r,i))}return a.pipe(o.first())}));return n.of(c).pipe(ae())}(t.component,t.route,r,e,i)})),o.first((function(t){return!0!==t}),!0))}(l,i,a,t).pipe(o.mergeMap((function(r){return r&&function a(t){return"boolean"==typeof t}(r)?function u(t,e,r,i){return n.from(e).pipe(o.concatMap((function(e){return n.from([se(e.route.parent,i),ue(e.route,i),le(t,e.path,r),ce(t,e.route,r)]).pipe(o.concatAll(),o.first((function(t){return!0!==t}),!0))})),o.first((function(t){return!0!==t}),!0))}(i,c,t,e):n.of(r)})),o.map((function(t){return u(u({},r),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),o.tap((function(t){if(Bt(t.guardsResult)){var r=I('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw r.url=t.guardsResult,r}})),o.tap((function(t){var r=new b(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(r)})),o.filter((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var n=new m(t.id,e.serializeUrl(t.extractedUrl),"");return r.next(n),t.resolve(!1),!1}return!0})),be((function(t){if(t.guards.canActivateChecks.length)return n.of(t).pipe(o.tap((function(t){var r=new C(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)})),function r(t,e){return function(r){return r.pipe(o.mergeMap((function(r){var i=r.targetSnapshot,a=r.guards.canActivateChecks;return a.length?n.from(a).pipe(o.concatMap((function(r){return function a(t,e,r,i){return function a(t,e,r,i){var a=Object.keys(t);if(0===a.length)return n.of({});if(1===a.length){var u=a[0];return we(t[u],e,r,i).pipe(o.map((function(t){var e;return(e={})[u]=t,e})))}var s={};return n.from(a).pipe(o.mergeMap((function(n){return we(t[n],e,r,i).pipe(o.map((function(t){return s[n]=t,t})))}))).pipe(o.last(),o.map((function(){return s})))}(t._resolve,t,e,i).pipe(o.map((function(e){return t._resolvedData=e,t.data=u(u({},t.data),Ct(t,r).resolve),null})))}(r.route,i,t,e)})),o.reduce((function(t,e){return t})),o.map((function(t){return r}))):n.of(r)})))}}(e.paramsInheritanceStrategy,e.ngModule.injector),o.tap((function(t){var r=new R(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)})))})),be((function(t){var r=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!r.skipLocationChange,replaceUrl:!!r.replaceUrl})})),o.map((function(t){var r=function o(t,e,r){var o=function t(e,r,o){if(o&&e.shouldReuseRoute(r.value,o.value.snapshot)){(c=o.value)._futureSnapshot=r.value;var i=function a(e,r,n){return r.children.map((function(r){var o,i;try{for(var a=p(n.children),u=a.next();!u.done;u=a.next()){var s=u.value;if(e.shouldReuseRoute(s.value.snapshot,r.value))return t(e,r,s)}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return t(e,r)}))}(e,r,o);return new mt(c,i)}var u=e.retrieve(r.value);if(u){var s=u.route;return function t(e,r){if(e.value.routeConfig!==r.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==r.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");r.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)t(e.children[n],r.children[n])}(r,s),s}var c=function l(t){return new bt(new n.BehaviorSubject(t.url),new n.BehaviorSubject(t.params),new n.BehaviorSubject(t.queryParams),new n.BehaviorSubject(t.fragment),new n.BehaviorSubject(t.data),t.outlet,t.component,t)}
|
|
159
159
|
/**
|
|
160
160
|
* @license
|
|
161
161
|
* Copyright Google Inc. All Rights Reserved.
|
|
162
162
|
*
|
|
163
163
|
* Use of this source code is governed by an MIT-style license that can be
|
|
164
164
|
* found in the LICENSE file at https://angular.io/license
|
|
165
|
-
*/(r.value);return i=r.children.map((function(r){return t(e,r)})),new
|
|
165
|
+
*/(r.value);return i=r.children.map((function(r){return t(e,r)})),new mt(c,i)}(t,e._root,r?r._root:void 0);return new St(o,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return u(u({},t),{targetRouterState:r})})),o.tap((function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),(i=e.rootContexts,a=e.routeReuseStrategy,s=function(t){return e.triggerEvent(t)},o.map((function(t){return new zt(a,t.targetRouterState,t.currentRouterState,s).activate(i),t}))),o.tap({next:function(){c=!0},complete:function(){c=!0}}),o.finalize((function(){if(!c&&!l){e.resetUrlToCurrentUrlTree();var n=new m(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID "+t.id+" is not equal to the current navigation id "+e.navigationId);r.next(n),t.resolve(!1)}e.currentNavigation=null})),o.catchError((function(o){if(l=!0,function i(t){return t&&t.ngNavigationCancelingError}(o)){var a=Bt(o.url);a||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var u=new m(t.id,e.serializeUrl(t.extractedUrl),o.message);r.next(u),a?setTimeout((function(){var r=e.urlHandlingStrategy.merge(o.url,e.rawUrlTree);return e.scheduleNavigation(r,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var s=new y(t.id,e.serializeUrl(t.extractedUrl),o);r.next(s);try{t.resolve(e.errorHandler(o))}catch(e){t.reject(e)}}return n.EMPTY})))})))},t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.getTransition=function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t},t.prototype.setTransition=function(t){this.transitions.next(u(u({},this.getTransition()),t))},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(e){var r=t.parseUrl(e.url),n="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?e.state:null;setTimeout((function(){t.scheduleNavigation(r,n,o,{replaceUrl:!0})}),0)})))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.getCurrentNavigation=function(){return this.currentNavigation},t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){N(t),this.config=t.map(z),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,o=e.queryParams,i=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,c=e.preserveFragment;r.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,p=c?this.currentUrlTree.fragment:i,h=null;if(s)switch(s){case"merge":h=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}else h=a?this.currentUrlTree.queryParams:o||null;return null!==h&&(h=this.removeEmptyProps(h)),function d(t,e,r,n,o){if(0===r.length)return Tt(e.root,e.root,e,n,o);var i=function a(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Et(!0,0,t);var e=0,r=!1,n=t.reduce((function(t,n,o){if("object"==typeof n&&null!=n){if(n.outlets){var i={};return W(n.outlets,(function(t,e){i[e]="string"==typeof t?t.split("/"):t})),f(t,[{outlets:i}])}if(n.segmentPath)return f(t,[n.segmentPath])}return"string"!=typeof n?f(t,[n]):0===o?(n.split("/").forEach((function(n,o){0==o&&"."===n||(0==o&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))})),t):f(t,[n])}),[]);return new Et(r,e,n)}(r);if(i.toRoot())return Tt(e.root,new Y([],{}),e,n,o);var u=function s(t,e,r){if(t.isAbsolute)return new jt(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new jt(r.snapshot._urlSegment,!0,0);var n=At(t.commands[0])?0:1;return function o(t,e,r){for(var n=t,o=e,i=r;i>o;){if(i-=o,!(n=n.parent))throw new Error("Invalid number of '../'");o=n.segments.length}return new jt(n,!1,o-i)}(r.snapshot._urlSegment,r.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(i,e,t),c=u.processChildren?Lt(u.segmentGroup,u.index,i.commands):It(u.segmentGroup,u.index,i.commands);return Tt(u.segmentGroup,c,e,n,o)}(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),r.isDevMode()&&this.isNgZoneEnabled&&!r.NgZone.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Bt(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function r(t){for(var e=0;e<t.length;e++){var r=t[e];if(null==r)throw new Error("The requested path contains "+r+" segment at index "+e)}}
|
|
166
166
|
/**
|
|
167
167
|
* @license
|
|
168
168
|
* Copyright Google Inc. All Rights Reserved.
|
|
169
169
|
*
|
|
170
170
|
* Use of this source code is governed by an MIT-style license that can be
|
|
171
171
|
* found in the LICENSE file at https://angular.io/license
|
|
172
|
-
*/(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(r){e=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(
|
|
172
|
+
*/(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(r){e=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(Bt(t))return V(this.currentUrlTree,t,e);var r=this.parseUrl(t);return V(this.currentUrlTree,r,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&(e[r]=n),e}),{})},t.prototype.processNavigations=function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new v(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))},t.prototype.scheduleNavigation=function(t,e,r,n,o){var i,a,u,s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);o?(i=o.resolve,a=o.reject,u=o.promise):u=new Promise((function(t,e){i=t,a=e}));var c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:i,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch((function(t){return Promise.reject(t)}))},t.prototype.setBrowserUrl=function(t,e,r,n){var o=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(o)||e?this.location.replaceState(o,"",u(u({},n),{navigationId:r})):this.location.go(o,"",u(u({},n),{navigationId:r}))},t.prototype.resetStateAndUrl=function(t,e,r){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t}(),je=function(){function t(t,e,r,n,o){this.router=t,this.route=e,this.commands=[],null==r&&n.setAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:Ie(this.skipLocationChange),replaceUrl:Ie(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ie(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ie(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([r.Input(),l("design:type",Object)],t.prototype,"queryParams",void 0),s([r.Input(),l("design:type",String)],t.prototype,"fragment",void 0),s([r.Input(),l("design:type",String)],t.prototype,"queryParamsHandling",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"preserveFragment",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"skipLocationChange",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"replaceUrl",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"state",void 0),s([r.Input(),l("design:type",Object),l("design:paramtypes",[Object])],t.prototype,"routerLink",null),s([r.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],t.prototype,"preserveQueryParams",null),s([r.HostListener("click"),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",Boolean)],t.prototype,"onClick",null),s([r.Directive({selector:":not(a):not(area)[routerLink]"}),c(2,r.Attribute("tabindex")),l("design:paramtypes",[Ee,bt,String,r.Renderer2,r.ElementRef])],t)}(),ke=function(){function t(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe((function(t){t instanceof v&&n.updateTargetUrlAndHref()}))}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,r,n){if(0!==t||e||r||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:Ie(this.skipLocationChange),replaceUrl:Ie(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ie(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ie(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([r.HostBinding("attr.target"),r.Input(),l("design:type",String)],t.prototype,"target",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"queryParams",void 0),s([r.Input(),l("design:type",String)],t.prototype,"fragment",void 0),s([r.Input(),l("design:type",String)],t.prototype,"queryParamsHandling",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"preserveFragment",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"skipLocationChange",void 0),s([r.Input(),l("design:type",Boolean)],t.prototype,"replaceUrl",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"state",void 0),s([r.HostBinding(),l("design:type",String)],t.prototype,"href",void 0),s([r.Input(),l("design:type",Object),l("design:paramtypes",[Object])],t.prototype,"routerLink",null),s([r.Input(),l("design:type",Boolean),l("design:paramtypes",[Boolean])],t.prototype,"preserveQueryParams",null),s([r.HostListener("click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]),l("design:type",Function),l("design:paramtypes",[Number,Boolean,Boolean,Boolean]),l("design:returntype",Boolean)],t.prototype,"onClick",null),s([r.Directive({selector:"a[routerLink],area[routerLink]"}),l("design:paramtypes",[Ee,bt,e.LocationStrategy])],t)}();function Ie(t){return""===t||!!t}
|
|
173
173
|
/**
|
|
174
174
|
* @license
|
|
175
175
|
* Copyright Google Inc. All Rights Reserved.
|
|
176
176
|
*
|
|
177
177
|
* Use of this source code is governed by an MIT-style license that can be
|
|
178
178
|
* found in the LICENSE file at https://angular.io/license
|
|
179
|
-
*/var
|
|
179
|
+
*/var Le=function(){function t(t,e,r,n,o){var i=this;this.router=t,this.element=e,this.renderer=r,this.link=n,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe((function(t){t instanceof v&&i.update()}))}return t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe((function(e){return t.update()})),this.linksWithHrefs.changes.subscribe((function(e){return t.update()})),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter((function(t){return!!t}))},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach((function(r){e?t.renderer.addClass(t.element.nativeElement,r):t.renderer.removeClass(t.element.nativeElement,r)})))}))},t.prototype.isLinkActive=function(t){var e=this;return function(r){return t.isActive(r.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){var t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)},s([r.ContentChildren(je,{descendants:!0}),l("design:type",r.QueryList)],t.prototype,"links",void 0),s([r.ContentChildren(ke,{descendants:!0}),l("design:type",r.QueryList)],t.prototype,"linksWithHrefs",void 0),s([r.Input(),l("design:type",Object)],t.prototype,"routerLinkActiveOptions",void 0),s([r.Input(),l("design:type",Object),l("design:paramtypes",[Object])],t.prototype,"routerLinkActive",null),s([r.Directive({selector:"[routerLinkActive]",exportAs:"routerLinkActive"}),c(3,r.Optional()),c(4,r.Optional()),l("design:paramtypes",[Ee,r.ElementRef,r.Renderer2,je,ke])],t)}(),Me=function Me(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ne,this.attachRef=null},Ne=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var r=this.getOrCreateContext(t);r.outlet=e,this.contexts.set(t,r)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new Me,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),qe=function(){function t(t,e,n,o,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,this.name=o||"primary",t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var r=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,o=new De(t,n,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},s([r.Output("activate"),l("design:type",Object)],t.prototype,"activateEvents",void 0),s([r.Output("deactivate"),l("design:type",Object)],t.prototype,"deactivateEvents",void 0),s([r.Directive({selector:"router-outlet",exportAs:"outlet"}),c(3,r.Attribute("name")),l("design:paramtypes",[Ne,r.ViewContainerRef,r.ComponentFactoryResolver,String,r.ChangeDetectorRef])],t)}(),De=function(){function t(t,e,r){this.route=t,this.childContexts=e,this.parent=r}return t.prototype.get=function(t,e){return t===bt?this.route:t===Ne?this.childContexts:this.parent.get(t,e)},t}(),ze=function ze(){},He=function(){function t(){}return t.prototype.preload=function(t,e){return e().pipe(o.catchError((function(){return n.of(null)})))},t}(),Fe=function(){function t(){}return t.prototype.preload=function(t,e){return n.of(null)},t}(),Be=function(){function t(t,e,r,n,o){this.router=t,this.injector=n,this.preloadingStrategy=o,this.loader=new Pe(e,r,(function(e){return t.triggerEvent(new U(e))}),(function(e){return t.triggerEvent(new P(e))}))}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(o.filter((function(t){return t instanceof v})),o.concatMap((function(){return t.preload()}))).subscribe((function(){}))},t.prototype.preload=function(){var t=this.injector.get(r.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){var r,i,a=[];try{for(var u=p(e),s=u.next();!s.done;s=u.next()){var c=s.value;if(c.loadChildren&&!c.canLoad&&c._loadedConfig){var l=c._loadedConfig;a.push(this.processRoutes(l.module,l.routes))}else c.loadChildren&&!c.canLoad?a.push(this.preloadConfig(t,c)):c.children&&a.push(this.processRoutes(t,c.children))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return n.from(a).pipe(o.mergeAll(),o.map((function(t){})))},t.prototype.preloadConfig=function(t,e){var r=this;return this.preloadingStrategy.preload(e,(function(){return r.loader.load(t.injector,e).pipe(o.mergeMap((function(t){return e._loadedConfig=t,r.processRoutes(t.module,t.routes)})))}))},s([r.Injectable(),l("design:paramtypes",[Ee,r.NgModuleFactoryLoader,r.Compiler,r.Injector,ze])],t)}(),Ge=function(){function t(t,e,r){void 0===r&&(r={}),this.router=t,this.viewportScroller=e,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return t.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},t.prototype.createScrollEvents=function(){var t=this;return this.router.events.subscribe((function(e){e instanceof g?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof v&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))},t.prototype.consumeScrollEvents=function(){var t=this;return this.router.events.subscribe((function(e){e instanceof T&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))},t.prototype.scheduleScrollEvent=function(t,e){this.router.triggerEvent(new T(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))},t.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},t}(),We=[qe,je,ke,Le,E],Qe=new r.InjectionToken("ROUTER_CONFIGURATION"),Ve=new r.InjectionToken("ROUTER_FORROOT_GUARD"),Ze=[e.Location,{provide:X,useClass:tt},{provide:Ee,useFactory:er,deps:[X,Ne,e.Location,r.Injector,r.NgModuleFactoryLoader,r.Compiler,Ue,Qe,[Oe,new r.Optional],[Ce,new r.Optional]]},Ne,{provide:bt,useFactory:rr,deps:[Ee]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},Be,Fe,He,{provide:Qe,useValue:{enableTracing:!1}}];
|
|
180
180
|
/**
|
|
181
181
|
* @license
|
|
182
182
|
* Copyright Google Inc. All Rights Reserved.
|
|
183
183
|
*
|
|
184
184
|
* Use of this source code is governed by an MIT-style license that can be
|
|
185
185
|
* found in the LICENSE file at https://angular.io/license
|
|
186
|
-
*/function
|
|
186
|
+
*/function Ye(){return new r.NgProbeToken("Router",Ee)}var $e=function(){function t(t,e){}var n;return n=t,t.forRoot=function(t,o){return{ngModule:n,providers:[Ze,tr(t),{provide:Ve,useFactory:Xe,deps:[[Ee,new r.Optional,new r.SkipSelf]]},{provide:Qe,useValue:o||{}},{provide:e.LocationStrategy,useFactory:Je,deps:[e.PlatformLocation,[new r.Inject(e.APP_BASE_HREF),new r.Optional],Qe]},{provide:Ge,useFactory:Ke,deps:[Ee,e.ViewportScroller,Qe]},{provide:ze,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:Fe},{provide:r.NgProbeToken,multi:!0,useFactory:Ye},ur()]}},t.forChild=function(t){return{ngModule:n,providers:[tr(t)]}},n=s([r.NgModule({declarations:We,exports:We,entryComponents:[E]}),c(0,r.Optional()),c(0,r.Inject(Ve)),c(1,r.Optional()),l("design:paramtypes",[Object,Ee])],t)}();function Ke(t,e,r){return r.scrollOffset&&e.setOffset(r.scrollOffset),new Ge(t,e,r)}function Je(t,r,n){return void 0===n&&(n={}),n.useHash?new e.HashLocationStrategy(t,r):new e.PathLocationStrategy(t,r)}function Xe(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function tr(t){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:Ue,multi:!0,useValue:t}]}function er(t,r,n,o,i,a,u,s,c,l){void 0===s&&(s={});var p=new Ee(null,t,r,n,o,i,a,B(u));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),s.errorHandler&&(p.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(p.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=e.ɵgetDOM();p.events.subscribe((function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(p.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(p.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(p.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(p.relativeLinkResolution=s.relativeLinkResolution),p}function rr(t){return t.routerState.root}var nr=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new n.Subject}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null)).then((function(){var e=null,r=new Promise((function(t){return e=t})),o=t.injector.get(Ee),i=t.injector.get(Qe);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)o.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");o.hooks.afterPreactivation=function(){return t.initNavigation?n.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},o.initialNavigation()}return r}))},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Qe),n=this.injector.get(Be),o=this.injector.get(Ge),i=this.injector.get(Ee),a=this.injector.get(r.ApplicationRef);t===a.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),o.init(),i.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},s([r.Injectable(),l("design:paramtypes",[r.Injector])],t)}();function or(t){return t.appInitializer.bind(t)}function ir(t){return t.bootstrapListener.bind(t)}var ar=new r.InjectionToken("Router Initializer");function ur(){return[nr,{provide:r.APP_INITIALIZER,multi:!0,useFactory:or,deps:[nr]},{provide:ar,useFactory:ir,deps:[nr]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:ar}]}
|
|
187
187
|
/**
|
|
188
188
|
* @license
|
|
189
189
|
* Copyright Google Inc. All Rights Reserved.
|
|
190
190
|
*
|
|
191
191
|
* Use of this source code is governed by an MIT-style license that can be
|
|
192
192
|
* found in the LICENSE file at https://angular.io/license
|
|
193
|
-
*/var
|
|
193
|
+
*/var sr=new r.Version("9.1.4");
|
|
194
194
|
/**
|
|
195
195
|
* @license
|
|
196
196
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -218,4 +218,4 @@ function Te(t){throw t}function Ee(t,e,r){return e.parse("/")}function je(t,e){r
|
|
|
218
218
|
*
|
|
219
219
|
* Use of this source code is governed by an MIT-style license that can be
|
|
220
220
|
* found in the LICENSE file at https://angular.io/license
|
|
221
|
-
*/t.ActivatedRoute=
|
|
221
|
+
*/t.ActivatedRoute=bt,t.ActivatedRouteSnapshot=Rt,t.ActivationEnd=A,t.ActivationStart=x,t.ChildActivationEnd=_,t.ChildActivationStart=O,t.ChildrenOutletContexts=Ne,t.DefaultUrlSerializer=tt,t.GuardsCheckEnd=b,t.GuardsCheckStart=w,t.NavigationCancel=m,t.NavigationEnd=v,t.NavigationError=y,t.NavigationStart=g,t.NoPreloading=Fe,t.OutletContext=Me,t.PRIMARY_OUTLET="primary",t.PreloadAllModules=He,t.PreloadingStrategy=ze,t.ROUTER_CONFIGURATION=Qe,t.ROUTER_INITIALIZER=ar,t.ROUTES=Ue,t.ResolveEnd=R,t.ResolveStart=C,t.RouteConfigLoadEnd=P,t.RouteConfigLoadStart=U,t.RouteReuseStrategy=Ce,t.Router=Ee,t.RouterEvent=d,t.RouterLink=je,t.RouterLinkActive=Le,t.RouterLinkWithHref=ke,t.RouterModule=$e,t.RouterOutlet=qe,t.RouterPreloader=Be,t.RouterState=St,t.RouterStateSnapshot=Ut,t.RoutesRecognized=S,t.Scroll=T,t.UrlHandlingStrategy=Oe,t.UrlSegment=$,t.UrlSegmentGroup=Y,t.UrlSerializer=X,t.UrlTree=Z,t.VERSION=sr,t.convertToParamMap=k,t.provideRoutes=tr,t.ɵEmptyOutletComponent=E,t.ɵROUTER_PROVIDERS=Ze,t.ɵangular_packages_router_router_a=Ve,t.ɵangular_packages_router_router_b=Ye,t.ɵangular_packages_router_router_c=Ke,t.ɵangular_packages_router_router_d=Je,t.ɵangular_packages_router_router_e=Xe,t.ɵangular_packages_router_router_f=er,t.ɵangular_packages_router_router_g=rr,t.ɵangular_packages_router_router_h=nr,t.ɵangular_packages_router_router_i=or,t.ɵangular_packages_router_router_j=ir,t.ɵangular_packages_router_router_k=ur,t.ɵangular_packages_router_router_l=E,t.ɵangular_packages_router_router_m=dt,t.ɵangular_packages_router_router_n=mt,t.ɵangular_packages_router_router_o=Ge,t.ɵflatten=B,Object.defineProperty(t,"__esModule",{value:!0})}));
|