@angular/platform-browser 6.1.6 → 6.1.10
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/animations/animations.metadata.json +1 -1
- package/animations/src/module.d.ts +5 -2
- package/bundles/platform-browser-animations.umd.js +47 -48
- package/bundles/platform-browser-animations.umd.js.map +1 -1
- package/bundles/platform-browser-animations.umd.min.js +4 -4
- package/bundles/platform-browser-animations.umd.min.js.map +1 -1
- package/bundles/platform-browser-testing.umd.js +33 -18
- package/bundles/platform-browser-testing.umd.js.map +1 -1
- package/bundles/platform-browser-testing.umd.min.js +4 -10
- package/bundles/platform-browser-testing.umd.min.js.map +1 -1
- package/bundles/platform-browser.umd.js +125 -129
- package/bundles/platform-browser.umd.js.map +1 -1
- package/bundles/platform-browser.umd.min.js +14 -29
- package/bundles/platform-browser.umd.min.js.map +1 -1
- package/esm2015/animations/src/module.js +6 -3
- package/esm2015/src/browser.js +12 -7
- package/esm2015/src/dom/debug/by.js +7 -4
- package/esm2015/src/dom/events/hammer_gestures.js +10 -2
- package/esm2015/src/version.js +1 -1
- package/esm2015/testing/src/browser_util.js +9 -7
- package/esm2015/testing/src/matchers.js +44 -9
- package/esm5/animations/src/animation_builder.js +6 -9
- package/esm5/animations/src/animation_renderer.js +5 -10
- package/esm5/animations/src/module.js +19 -15
- package/esm5/animations/src/providers.js +6 -10
- package/esm5/src/browser/location/browser_platform_location.js +6 -8
- package/esm5/src/browser/meta.js +7 -8
- package/esm5/src/browser/title.js +7 -8
- package/esm5/src/browser/transfer_state.js +13 -10
- package/esm5/src/browser.js +21 -13
- package/esm5/src/dom/debug/by.js +7 -4
- package/esm5/src/dom/dom_renderer.js +5 -9
- package/esm5/src/dom/events/dom_events.js +7 -10
- package/esm5/src/dom/events/event_manager.js +7 -9
- package/esm5/src/dom/events/hammer_gestures.js +18 -15
- package/esm5/src/dom/events/key_events.js +13 -13
- package/esm5/src/dom/shared_styles_host.js +9 -11
- package/esm5/src/security/dom_sanitization_service.js +6 -8
- package/esm5/src/version.js +1 -1
- package/esm5/testing/src/browser.js +12 -11
- package/esm5/testing/src/browser_util.js +25 -10
- package/esm5/testing/src/matchers.js +22 -2
- package/fesm2015/animations.js +6 -3
- package/fesm2015/animations.js.map +1 -1
- package/fesm2015/platform-browser.js +27 -13
- package/fesm2015/platform-browser.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/animations.js +33 -49
- package/fesm5/animations.js.map +1 -1
- package/fesm5/platform-browser.js +112 -131
- package/fesm5/platform-browser.js.map +1 -1
- package/fesm5/testing.js +12 -18
- package/fesm5/testing.js.map +1 -1
- package/package.json +3 -3
- package/platform-browser.metadata.json +1 -1
- package/src/browser.d.ts +11 -4
- package/src/dom/debug/by.d.ts +6 -3
- package/src/dom/events/hammer_gestures.d.ts +1 -0
- package/testing/src/matchers.d.ts +19 -7
- package/testing/testing.metadata.json +1 -1
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v6.1.
|
2
|
+
* @license Angular v6.1.10
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
6
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("@angular/platform-browser",["exports","@angular/common","@angular/core"],e):e((t.ng=t.ng||{},t.ng.platformBrowser={}),t.ng.common,t.ng.core)}(this,function(t,e,n){"use strict";var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function t(e){for(var n,o=1,r=arguments.length;o<r;o++)for(var i in n=arguments[o])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}
|
6
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("@angular/platform-browser",["exports","@angular/common","@angular/core"],e):e((t.ng=t.ng||{},t.ng.platformBrowser={}),t.ng.common,t.ng.core)}(this,function(t,e,n){"use strict";var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function t(e){for(var n,o=1,r=arguments.length;o<r;o++)for(var i in n=arguments[o])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function a(t,e,n,o){var r,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(a=(i<3?r(a):i>3?r(e,n,a):r(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,o){e(n,o,t)}}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}
|
7
7
|
/**
|
8
8
|
* @license
|
9
9
|
* Copyright Google Inc. All Rights Reserved.
|
@@ -11,21 +11,21 @@
|
|
11
11
|
* Use of this source code is governed by an MIT-style license that can be
|
12
12
|
* found in the LICENSE file at https://angular.io/license
|
13
13
|
*/
|
14
|
-
var
|
14
|
+
var p=null;function l(){return p}function f(t){p||(p=t)}var d,y=function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}(),h=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var o=["Webkit","Moz","O","ms"],r=0;r<o.length;r++)if(null!=e.getStyle(n,o[r]+"AnimationName")){e._animationPrefix="-"+o[r].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=i[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return r(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(y),m={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},g={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},v={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"};
|
15
15
|
/**
|
16
16
|
* @license
|
17
17
|
* Copyright Google Inc. All Rights Reserved.
|
18
18
|
*
|
19
19
|
* Use of this source code is governed by an MIT-style license that can be
|
20
20
|
* found in the LICENSE file at https://angular.io/license
|
21
|
-
*/n.ɵglobal.Node&&(
|
21
|
+
*/n.ɵglobal.Node&&(d=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var w,b=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.parse=function(t){throw new Error("parse not implemented")},n.makeCurrent=function(){f(new n)},n.prototype.hasProperty=function(t,e){return e in t},n.prototype.setProperty=function(t,e,n){t[e]=n},n.prototype.getProperty=function(t,e){return t[e]},n.prototype.invoke=function(t,e,n){var o;(o=t)[e].apply(o,function r(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}(n))},n.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},n.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},n.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},n.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(n.prototype,"attrToPropMap",{get:function(){return m},enumerable:!0,configurable:!0}),n.prototype.contains=function(t,e){return d.call(t,e)},n.prototype.querySelector=function(t,e){return t.querySelector(e)},n.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},n.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},n.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},n.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},n.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},n.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},n.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},n.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},n.prototype.getInnerHTML=function(t){return t.innerHTML},n.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},n.prototype.getOuterHTML=function(t){return t.outerHTML},n.prototype.nodeName=function(t){return t.nodeName},n.prototype.nodeValue=function(t){return t.nodeValue},n.prototype.type=function(t){return t.type},n.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},n.prototype.firstChild=function(t){return t.firstChild},n.prototype.nextSibling=function(t){return t.nextSibling},n.prototype.parentElement=function(t){return t.parentNode},n.prototype.childNodes=function(t){return t.childNodes},n.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),o=0;o<e.length;o++)n[o]=e[o];return n},n.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.prototype.appendChild=function(t,e){t.appendChild(e)},n.prototype.removeChild=function(t,e){t.removeChild(e)},n.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},n.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},n.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},n.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},n.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},n.prototype.setInnerHTML=function(t,e){t.innerHTML=e},n.prototype.getText=function(t){return t.textContent},n.prototype.setText=function(t,e){t.textContent=e},n.prototype.getValue=function(t){return t.value},n.prototype.setValue=function(t,e){t.value=e},n.prototype.getChecked=function(t){return t.checked},n.prototype.setChecked=function(t,e){t.checked=e},n.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},n.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},n.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},n.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},n.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},n.prototype.createScriptTag=function(t,e,n){var o=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return o.setAttribute(t,e),o},n.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},n.prototype.createShadowRoot=function(t){return t.createShadowRoot()},n.prototype.getShadowRoot=function(t){return t.shadowRoot},n.prototype.getHost=function(t){return t.host},n.prototype.clone=function(t){return t.cloneNode(!0)},n.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},n.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},n.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},n.prototype.addClass=function(t,e){t.classList.add(e)},n.prototype.removeClass=function(t,e){t.classList.remove(e)},n.prototype.hasClass=function(t,e){return t.classList.contains(e)},n.prototype.setStyle=function(t,e,n){t.style[e]=n},n.prototype.removeStyle=function(t,e){t.style[e]=""},n.prototype.getStyle=function(t,e){return t.style[e]},n.prototype.hasStyle=function(t,e,n){var o=this.getStyle(t,e)||"";return n?o==n:o.length>0},n.prototype.tagName=function(t){return t.tagName},n.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,o=0;o<n.length;o++){var r=n.item(o);e.set(r.name,r.value)}return e},n.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},n.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},n.prototype.getAttribute=function(t,e){return t.getAttribute(e)},n.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},n.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},n.prototype.setAttributeNS=function(t,e,n,o){t.setAttributeNS(e,n,o)},n.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},n.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},n.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},n.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},n.prototype.getDefaultDocument=function(){return document},n.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},n.prototype.getTitle=function(t){return t.title},n.prototype.setTitle=function(t,e){t.title=e||""},n.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},n.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},n.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},n.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},n.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},n.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},n.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},n.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},n.prototype.adoptNode=function(t){return document.adoptNode(t)},n.prototype.getHref=function(t){return t.getAttribute("href")},n.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&v.hasOwnProperty(e)&&(e=v[e]))}return g[e]||e},n.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},n.prototype.getHistory=function(){return window.history},n.prototype.getLocation=function(){return window.location},n.prototype.getBaseHref=function(t){var e=function n(){return _||(_=document.querySelector("base"))?_.getAttribute("href"):null}();return null==e?null:function o(t){return w||(w=document.createElement("a")),w.setAttribute("href",t),"/"===w.pathname.charAt(0)?w.pathname:"/"+w.pathname}
|
22
22
|
/**
|
23
23
|
* @license
|
24
24
|
* Copyright Google Inc. All Rights Reserved.
|
25
25
|
*
|
26
26
|
* Use of this source code is governed by an MIT-style license that can be
|
27
27
|
* found in the LICENSE file at https://angular.io/license
|
28
|
-
*/(e)},n.prototype.resetBaseElement=function(){
|
28
|
+
*/(e)},n.prototype.resetBaseElement=function(){_=null},n.prototype.getUserAgent=function(){return window.navigator.userAgent},n.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},n.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},n.prototype.getComputedStyle=function(t){return getComputedStyle(t)},n.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},n.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},n.prototype.supportsCookies=function(){return!0},n.prototype.getCookie=function(t){return e.ɵparseCookieValue(document.cookie,t)},n.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},n}(h),_=null,E=e.DOCUMENT;
|
29
29
|
/**
|
30
30
|
* @license
|
31
31
|
* Copyright Google Inc. All Rights Reserved.
|
@@ -33,21 +33,21 @@ var u=null;function s(){return u}function c(t){u||(u=t)}var p,l=function(){funct
|
|
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
35
|
*/
|
36
|
-
function
|
36
|
+
function S(){return!!window.history.pushState}
|
37
37
|
/**
|
38
38
|
* @license
|
39
39
|
* Copyright Google Inc. All Rights Reserved.
|
40
40
|
*
|
41
41
|
* Use of this source code is governed by an MIT-style license that can be
|
42
42
|
* found in the LICENSE file at https://angular.io/license
|
43
|
-
*/var
|
43
|
+
*/var T=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return r(e,t),e.prototype._init=function(){this.location=l().getLocation(),this._history=l().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return l().getBaseHref(this._doc)},e.prototype.onPopState=function(t){l().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){l().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){S()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){S()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},a([n.Injectable(),u(0,n.Inject(E)),s("design:paramtypes",[Object])],e)}(e.PlatformLocation),A=new n.InjectionToken("TRANSITION_ID");
|
44
44
|
/**
|
45
45
|
* @license
|
46
46
|
* Copyright Google Inc. All Rights Reserved.
|
47
47
|
*
|
48
48
|
* Use of this source code is governed by an MIT-style license that can be
|
49
49
|
* found in the LICENSE file at https://angular.io/license
|
50
|
-
*/function
|
50
|
+
*/function N(t,e,o){return function(){o.get(n.ApplicationInitStatus).donePromise.then(function(){var n=l();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}}var C=[{provide:n.APP_INITIALIZER,useFactory:N,deps:[A,E,n.Injector],multi:!0}],I=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){n.ɵglobal.getAngularTestability=function(e,n){void 0===n&&(n=!0);var o=t.findTestabilityInTree(e,n);if(null==o)throw new Error("Could not find testability for element.");return o},n.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},n.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()},n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(function(t){var e=n.ɵglobal.getAllAngularTestabilities(),o=e.length,r=!1,i=function(e){r=r||e,0==--o&&t(r)};e.forEach(function(t){t.whenStable(i)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var o=t.getTestability(e);return null!=o?o:n?l().isShadowRoot(e)?this.findTestabilityInTree(t,l().getHost(e),!0):this.findTestabilityInTree(t,l().parentElement(e),!0):null},t}();
|
51
51
|
/**
|
52
52
|
* @license
|
53
53
|
* Copyright Google Inc. All Rights Reserved.
|
@@ -62,43 +62,28 @@ function _(){return!!window.history.pushState}
|
|
62
62
|
* Use of this source code is governed by an MIT-style license that can be
|
63
63
|
* found in the LICENSE file at https://angular.io/license
|
64
64
|
*/
|
65
|
-
function
|
65
|
+
function R(t,e){"undefined"!=typeof COMPILED&&COMPILED||((n.ɵglobal.ng=n.ɵglobal.ng||{})[t]=e)}
|
66
66
|
/**
|
67
67
|
* @license
|
68
68
|
* Copyright Google Inc. All Rights Reserved.
|
69
69
|
*
|
70
70
|
* Use of this source code is governed by an MIT-style license that can be
|
71
71
|
* found in the LICENSE file at https://angular.io/license
|
72
|
-
*/var
|
72
|
+
*/var O={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},L="probe",P="coreTokens";function D(t){return n.getDebugNode(t)}function M(t){return R(L,D),R(P,i({},O,function e(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}(t||[]))),function(){return D}}var k=[{provide:n.APP_INITIALIZER,useFactory:M,deps:[[n.NgProbeToken,new n.Optional]],multi:!0}],j=new n.InjectionToken("EventManagerPlugins"),x=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,o=0;o<n.length;o++){var r=n[o];if(r.supports(t))return this._eventNameToPlugin.set(t,r),r}throw new Error("No event manager plugin found for event "+t)},a([n.Injectable(),u(0,n.Inject(j)),s("design:paramtypes",[Array,n.NgZone])],t)}(),H=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var o=l().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,n)},t}(),B=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},a([n.Injectable()],t)}(),z=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return r(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var o=n._doc.createElement("style");o.textContent=t,n._styleNodes.add(e.appendChild(o))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return l().remove(t)})},a([n.Injectable(),u(0,n.Inject(E)),s("design:paramtypes",[Object])],e)}(B),V={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},F=/%COMP%/g,U="_nghost-%COMP%",Z="_ngcontent-%COMP%";
|
73
73
|
/**
|
74
74
|
* @license
|
75
75
|
* Copyright Google Inc. All Rights Reserved.
|
76
76
|
*
|
77
77
|
* Use of this source code is governed by an MIT-style license that can be
|
78
78
|
* found in the LICENSE file at https://angular.io/license
|
79
|
-
*/function F(t){return V.replace(B,t)}function U(t){return z.replace(B,t)}function Z(t,e,n){for(var o=0;o<e.length;o++){var r=e[o];Array.isArray(r)?Z(t,r,n):(r=r.replace(B,t),n.push(r))}return n}function G(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var K=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new q(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var o=this.rendererByCompId.get(e.id);return o||(o=new Y(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,o)),o.applyToHost(t),o;case n.ViewEncapsulation.Native:case n.ViewEncapsulation.ShadowDom:return new Q(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=Z(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:k},{type:H}]},t}(),q=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(j[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,o){if(o){e=o+":"+e;var r=j[o];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var o=j[n];o?t.removeAttributeNS(o,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,o,r){r&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,o,r&n.RendererStyleFlags2.Important?"important":""):t.style[e]=o},t.prototype.removeStyle=function(t,e,o){o&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){J(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return J(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,G(n)):this.eventManager.addEventListener(t,e,G(n))},t}(),W="@".charCodeAt(0);function J(t,e){if(t.charCodeAt(0)===W)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var X,Y=function(t){function e(e,n,o){var r=t.call(this,e)||this;r.component=o;var i=Z(o.id,o.styles,[]);return n.addStyles(i),r.contentAttr=F(o.id),r.hostAttr=U(o.id),r}return r(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var o=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,o,this.contentAttr,""),o},e}(q),Q=function(t){function e(e,o,r,i){var a=t.call(this,e)||this;a.sharedStylesHost=o,a.hostEl=r,a.component=i,a.shadowRoot=i.encapsulation===n.ViewEncapsulation.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var u=Z(i.id,i.styles,[]),s=0;s<u.length;s++){var c=document.createElement("style");c.textContent=u[s],a.shadowRoot.appendChild(c)}return a}return r(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,o){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,o)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(q),$="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},tt=$("addEventListener"),et=$("removeEventListener"),nt={},ot="__zone_symbol__propagationStopped",rt="undefined"!=typeof Zone&&Zone[$("BLACK_LISTED_EVENTS")];rt&&(X={},rt.forEach(function(t){X[t]=t}));var it,at=function(t){return!!X&&X.hasOwnProperty(t)},ut=function(t){var e=nt[t.type];if(e){var n=this[e];if(n){var o=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,o):a.handler.apply(this,o);for(var r=n.slice(),i=0;i<r.length&&!0!==t[ot];i++){var a;(a=r[i]).zone!==Zone.current?a.zone.run(a.handler,this,o):a.handler.apply(this,o)}}}},st=function(t){function o(n,o,r){var i=t.call(this,n)||this;return i.ngZone=o,r&&e.isPlatformServer(r)||i.patchEvent(),i}return r(o,t),o.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[ot]=!0),t&&t.apply(this,arguments)}}},o.prototype.supports=function(t){return!0},o.prototype.addEventListener=function(t,e,o){var r=this,i=o;if(!t[tt]||n.NgZone.isInAngularZone()&&!at(e))t.addEventListener(e,i,!1);else{var a=nt[e];a||(a=nt[e]=$("ANGULAR"+e+"FALSE"));var u=t[a],s=u&&u.length>0;u||(u=t[a]=[]);var c=at(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:c,handler:i});else{for(var p=!1,l=0;l<u.length;l++)if(u[l].handler===i){p=!0;break}p||u.push({zone:c,handler:i})}s||t[tt](e,ut,!1)}return function(){return r.removeEventListener(t,e,i)}},o.prototype.removeEventListener=function(t,e,n){var o=t[et];if(!o)return t.removeEventListener.apply(t,[e,n,!1]);var r=nt[e],i=r&&t[r];if(!i)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,u=0;u<i.length;u++)if(i[u].handler===n){a=!0,i.splice(u,1);break}a?0===i.length&&o.apply(t,[e,ut,!1]):t.removeEventListener.apply(t,[e,n,!1])},o.decorators=[{type:n.Injectable}],o.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]},{type:n.NgZone},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[n.PLATFORM_ID]}]}]},o}(D),ct={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},pt=new n.InjectionToken("HammerGestureConfig"),lt=new n.InjectionToken("HammerLoader"),ft=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t.decorators=[{type:n.Injectable}],t}(),dt=function(t){function e(e,n,o,r){var i=t.call(this,e)||this;return i._config=n,i.console=o,i.loader=r,i}return r(e,t),e.prototype.supports=function(t){return!(!ct.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+t+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},e.prototype.addEventListener=function(t,e,n){var o=this,r=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){var i=!1,a=function(){i=!0};return this.loader().then(function(){if(!window.Hammer)return o.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});i||(a=o.addEventListener(t,e,n))}).catch(function(){o.console.warn('The "'+e+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}}),function(){a()}}return r.runOutsideAngular(function(){var i=o._config.buildHammer(t),a=function(t){r.runGuarded(function(){n(t)})};return i.on(e,a),function(){return i.off(e,a)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]},{type:ft,decorators:[{type:n.Inject,args:[pt]}]},{type:n.ɵConsole},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[lt]}]}]},e}(D),yt=["alt","control","meta","shift"],ht={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},mt=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,o){var r=e.parseEventName(n),i=e.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(t,r.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;var r=e._normalizeKey(n.pop()),i="";if(yt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=r,0!=n.length||0===r.length)return null;var a={};return a.domEventName=o,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),yt.forEach(function(o){o!=n&&(0,ht[o])(t)&&(e+=o+".")}),e+=n},e.eventCallback=function(t,n,o){return function(r){e.getEventFullKey(r)===t&&o.runGuarded(function(){return n(r)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]}]},e}(D),gt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return r(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof wt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),n.ɵ_sanitizeHtml(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof _t?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),n.ɵ_sanitizeStyle(e));case n.SecurityContext.SCRIPT:if(e instanceof Et)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof St||e instanceof bt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),n.ɵ_sanitizeUrl(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof St)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof vt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new wt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new _t(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Et(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new bt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new St(t)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]}]},e}(it=function it(){}),vt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(vt),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Style"},e}(vt),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Script"},e}(vt),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"URL"},e}(vt),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(vt),Tt=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:Ct,multi:!0},{provide:e.PlatformLocation,useClass:E,deps:[w]},{provide:w,useFactory:Pt,deps:[]}],At=[{provide:n.Sanitizer,useExisting:it},{provide:it,useClass:gt,deps:[w]}],Nt=n.createPlatformFactory(n.platformCore,"browser",Tt);function Ct(){g.makeCurrent(),A.init()}function It(){return new n.ErrorHandler}function Pt(){return document}var Rt=[At,{provide:n.ɵAPP_ROOT,useValue:!0},{provide:n.ErrorHandler,useFactory:It,deps:[]},{provide:M,useClass:st,multi:!0,deps:[w,n.NgZone,n.PLATFORM_ID]},{provide:M,useClass:mt,multi:!0,deps:[w]},{provide:M,useClass:dt,multi:!0,deps:[w,pt,n.ɵConsole,[new n.Optional,lt]]},{provide:pt,useClass:ft,deps:[]},{provide:K,useClass:K,deps:[k,H]},{provide:n.RendererFactory2,useExisting:K},{provide:x,useExisting:H},{provide:H,useClass:H,deps:[w]},{provide:n.Testability,useClass:n.Testability,deps:[n.NgZone]},{provide:k,useClass:k,deps:[M,n.NgZone]},O],Lt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:b,useExisting:n.APP_ID},T]}},t.decorators=[{type:n.NgModule,args:[{providers:Rt,exports:[e.CommonModule,n.ApplicationModule]}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.SkipSelf},{type:n.Inject,args:[t]}]}]},t}();
|
79
|
+
*/function G(t){return Z.replace(F,t)}function K(t){return U.replace(F,t)}function q(t,e,n){for(var o=0;o<e.length;o++){var r=e[o];Array.isArray(r)?q(t,r,n):(r=r.replace(F,t),n.push(r))}return n}function W(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var J=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new X(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var o=this.rendererByCompId.get(e.id);return o||(o=new tt(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,o)),o.applyToHost(t),o;case n.ViewEncapsulation.Native:case n.ViewEncapsulation.ShadowDom:return new et(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=q(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},a([n.Injectable(),s("design:paramtypes",[x,z])],t)}(),X=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(V[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,o){if(o){e=o+":"+e;var r=V[o];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var o=V[n];o?t.removeAttributeNS(o,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,o,r){r&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,o,r&n.RendererStyleFlags2.Important?"important":""):t.style[e]=o},t.prototype.removeStyle=function(t,e,o){o&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){Q(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return Q(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,W(n)):this.eventManager.addEventListener(t,e,W(n))},t}(),Y="@".charCodeAt(0);function Q(t,e){if(t.charCodeAt(0)===Y)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var $,tt=function(t){function e(e,n,o){var r=t.call(this,e)||this;r.component=o;var i=q(o.id,o.styles,[]);return n.addStyles(i),r.contentAttr=G(o.id),r.hostAttr=K(o.id),r}return r(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var o=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,o,this.contentAttr,""),o},e}(X),et=function(t){function e(e,o,r,i){var a=t.call(this,e)||this;a.sharedStylesHost=o,a.hostEl=r,a.component=i,a.shadowRoot=i.encapsulation===n.ViewEncapsulation.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var u=q(i.id,i.styles,[]),s=0;s<u.length;s++){var c=document.createElement("style");c.textContent=u[s],a.shadowRoot.appendChild(c)}return a}return r(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,o){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,o)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(X),nt="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},ot=nt("addEventListener"),rt=nt("removeEventListener"),it={},at="__zone_symbol__propagationStopped",ut="undefined"!=typeof Zone&&Zone[nt("BLACK_LISTED_EVENTS")];ut&&($={},ut.forEach(function(t){$[t]=t}));var st,ct=function(t){return!!$&&$.hasOwnProperty(t)},pt=function(t){var e=it[t.type];if(e){var n=this[e];if(n){var o=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,o):a.handler.apply(this,o);for(var r=n.slice(),i=0;i<r.length&&!0!==t[at];i++){var a;(a=r[i]).zone!==Zone.current?a.zone.run(a.handler,this,o):a.handler.apply(this,o)}}}},lt=function(t){function o(n,o,r){var i=t.call(this,n)||this;return i.ngZone=o,r&&e.isPlatformServer(r)||i.patchEvent(),i}return r(o,t),o.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[at]=!0),t&&t.apply(this,arguments)}}},o.prototype.supports=function(t){return!0},o.prototype.addEventListener=function(t,e,o){var r=this,i=o;if(!t[ot]||n.NgZone.isInAngularZone()&&!ct(e))t.addEventListener(e,i,!1);else{var a=it[e];a||(a=it[e]=nt("ANGULAR"+e+"FALSE"));var u=t[a],s=u&&u.length>0;u||(u=t[a]=[]);var c=ct(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:c,handler:i});else{for(var p=!1,l=0;l<u.length;l++)if(u[l].handler===i){p=!0;break}p||u.push({zone:c,handler:i})}s||t[ot](e,pt,!1)}return function(){return r.removeEventListener(t,e,i)}},o.prototype.removeEventListener=function(t,e,n){var o=t[rt];if(!o)return t.removeEventListener.apply(t,[e,n,!1]);var r=it[e],i=r&&t[r];if(!i)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,u=0;u<i.length;u++)if(i[u].handler===n){a=!0,i.splice(u,1);break}a?0===i.length&&o.apply(t,[e,pt,!1]):t.removeEventListener.apply(t,[e,n,!1])},a([n.Injectable(),u(0,n.Inject(E)),u(2,n.Optional()),u(2,n.Inject(n.PLATFORM_ID)),s("design:paramtypes",[Object,n.NgZone,Object])],o)}(H),ft={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},dt=new n.InjectionToken("HammerGestureConfig"),yt=new n.InjectionToken("HammerLoader"),ht=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},a([n.Injectable()],t)}(),mt=function(t){function e(e,n,o,r){var i=t.call(this,e)||this;return i._config=n,i.console=o,i.loader=r,i}return r(e,t),e.prototype.supports=function(t){return!(!ft.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+t+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},e.prototype.addEventListener=function(t,e,n){var o=this,r=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){var i=!1,a=function(){i=!0};return this.loader().then(function(){if(!window.Hammer)return o.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});i||(a=o.addEventListener(t,e,n))}).catch(function(){o.console.warn('The "'+e+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}}),function(){a()}}return r.runOutsideAngular(function(){var i=o._config.buildHammer(t),a=function(t){r.runGuarded(function(){n(t)})};return i.on(e,a),function(){i.off(e,a),"function"==typeof i.destroy&&i.destroy()}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},a([n.Injectable(),u(0,n.Inject(E)),u(1,n.Inject(dt)),u(3,n.Optional()),u(3,n.Inject(yt)),s("design:paramtypes",[Object,ht,n.ɵConsole,Object])],e)}(H),gt=["alt","control","meta","shift"],vt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},wt=function(t){function e(e){return t.call(this,e)||this}var o;return r(e,t),o=e,e.prototype.supports=function(t){return null!=o.parseEventName(t)},e.prototype.addEventListener=function(t,e,n){var r=o.parseEventName(e),i=o.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return l().onAndCancel(t,r.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),n=e.shift();if(0===e.length||"keydown"!==n&&"keyup"!==n)return null;var r=o._normalizeKey(e.pop()),i="";if(gt.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=l().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),gt.forEach(function(o){o!=n&&(0,vt[o])(t)&&(e+=o+".")}),e+=n},e.eventCallback=function(t,e,n){return function(r){o.getEventFullKey(r)===t&&n.runGuarded(function(){return e(r)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},o=a([n.Injectable(),u(0,n.Inject(E)),s("design:paramtypes",[Object])],e)}(H),bt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return r(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof Et?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),n.ɵ_sanitizeHtml(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof St?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),n.ɵ_sanitizeStyle(e));case n.SecurityContext.SCRIPT:if(e instanceof Tt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof Nt||e instanceof At?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),n.ɵ_sanitizeUrl(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof Nt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof _t)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Et(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new St(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Tt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new At(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Nt(t)},a([n.Injectable(),u(0,n.Inject(E)),s("design:paramtypes",[Object])],e)}(st=function st(){}),_t=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(_t),St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Style"},e}(_t),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Script"},e}(_t),At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"URL"},e}(_t),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(_t),Ct=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:Ot,multi:!0},{provide:e.PlatformLocation,useClass:T,deps:[E]},{provide:E,useFactory:Pt,deps:[]}],It=[{provide:n.Sanitizer,useExisting:st},{provide:st,useClass:bt,deps:[E]}],Rt=n.createPlatformFactory(n.platformCore,"browser",Ct);function Ot(){b.makeCurrent(),I.init()}function Lt(){return new n.ErrorHandler}function Pt(){return document}var Dt=[It,{provide:n.ɵAPP_ROOT,useValue:!0},{provide:n.ErrorHandler,useFactory:Lt,deps:[]},{provide:j,useClass:lt,multi:!0,deps:[E,n.NgZone,n.PLATFORM_ID]},{provide:j,useClass:wt,multi:!0,deps:[E]},{provide:j,useClass:mt,multi:!0,deps:[E,dt,n.ɵConsole,[new n.Optional,yt]]},{provide:dt,useClass:ht,deps:[]},{provide:J,useClass:J,deps:[x,z]},{provide:n.RendererFactory2,useExisting:J},{provide:B,useExisting:z},{provide:z,useClass:z,deps:[E]},{provide:n.Testability,useClass:n.Testability,deps:[n.NgZone]},{provide:x,useClass:x,deps:[j,n.NgZone]},k],Mt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var o;return o=t,t.withServerTransition=function(t){return{ngModule:o,providers:[{provide:n.APP_ID,useValue:t.appId},{provide:A,useExisting:n.APP_ID},C]}},o=a([n.NgModule({providers:Dt,exports:[e.CommonModule,n.ApplicationModule]}),u(0,n.Optional()),u(0,n.SkipSelf()),u(0,n.Inject(o)),s("design:paramtypes",[Object])],t)}();function kt(){return new jt(n.inject(E))}var jt=function(){function t(t){this._doc=t,this._dom=l()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,o){return o&&t.push(n._getOrCreateElement(o,e)),t},[]):[]},t.prototype.getTag=function(t){return t&&this._dom.querySelector(this._doc,"meta["+t+"]")||null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),o=this.getTag(n);if(o&&this._containsAttributes(t,o))return o}var r=this._dom.createElement("meta");this._setMetaElementAttributes(t,r);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,r),r},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(o){return n._dom.setAttribute(e,o,t[o])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(o){return n._dom.getAttribute(e,o)===t[o]})},t.ngInjectableDef=n.defineInjectable({factory:kt,token:t,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:kt,deps:[]}),u(0,n.Inject(E)),s("design:paramtypes",[Object])],t)}();function xt(){return new Ht(n.inject(E))}var Ht=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return l().getTitle(this._doc)},t.prototype.setTitle=function(t){l().setTitle(this._doc,t)},t.ngInjectableDef=n.defineInjectable({factory:xt,token:t,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:xt,deps:[]}),u(0,n.Inject(E)),s("design:paramtypes",[Object])],t)}(),Bt="undefined"!=typeof window&&window||{},zt=function zt(t,e){this.msPerTick=t,this.numTicks=e},Vt=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=Bt.console.profile;e&&n&&Bt.console.profile("Change Detection");for(var o=l().performanceNow(),r=0;r<5||l().performanceNow()-o<500;)this.appRef.tick(),r++;var i=l().performanceNow();e&&n&&Bt.console.profileEnd("Change Detection");var a=(i-o)/r;return Bt.console.log("ran "+r+" change detection cycles"),Bt.console.log(a.toFixed(2)+" ms per check"),new zt(a,r)},t}(),Ft=function(){function t(){this.store={},this.onSerializeCallbacks={}}var e;return e=t,t.init=function(t){var n=new e;return n.store=t,n},t.prototype.get=function(t,e){return void 0!==this.store[t]?this.store[t]:e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},e=a([n.Injectable()],t)}();
|
80
80
|
/**
|
81
81
|
* @license
|
82
82
|
* Copyright Google Inc. All Rights Reserved.
|
83
83
|
*
|
84
84
|
* Use of this source code is governed by an MIT-style license that can be
|
85
85
|
* found in the LICENSE file at https://angular.io/license
|
86
|
-
*/
|
87
|
-
function Ot(){return new Mt(n.inject(w))}var Mt=function(){function t(t){this._doc=t,this._dom=s()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,o){return o&&t.push(n._getOrCreateElement(o,e)),t},[]):[]},t.prototype.getTag=function(t){return t&&this._dom.querySelector(this._doc,"meta["+t+"]")||null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),o=this.getTag(n);if(o&&this._containsAttributes(t,o))return o}var r=this._dom.createElement("meta");this._setMetaElementAttributes(t,r);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,r),r},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(o){return n._dom.setAttribute(e,o,t[o])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(o){return n._dom.getAttribute(e,o)===t[o]})},t.decorators=[{type:n.Injectable,args:[{providedIn:"root",useFactory:Ot,deps:[]}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]}]},t.ngInjectableDef=n.defineInjectable({factory:Ot,token:t,providedIn:"root"}),t}();
|
88
|
-
/**
|
89
|
-
* @license
|
90
|
-
* Copyright Google Inc. All Rights Reserved.
|
91
|
-
*
|
92
|
-
* Use of this source code is governed by an MIT-style license that can be
|
93
|
-
* found in the LICENSE file at https://angular.io/license
|
94
|
-
*/function kt(){return new Dt(n.inject(w))}var Dt=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return s().getTitle(this._doc)},t.prototype.setTitle=function(t){s().setTitle(this._doc,t)},t.decorators=[{type:n.Injectable,args:[{providedIn:"root",useFactory:kt,deps:[]}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[w]}]}]},t.ngInjectableDef=n.defineInjectable({factory:kt,token:t,providedIn:"root"}),t}(),xt="undefined"!=typeof window&&window||{},Ht=function Ht(t,e){this.msPerTick=t,this.numTicks=e},jt=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=xt.console.profile;e&&n&&xt.console.profile("Change Detection");for(var o=s().performanceNow(),r=0;r<5||s().performanceNow()-o<500;)this.appRef.tick(),r++;var i=s().performanceNow();e&&n&&xt.console.profileEnd("Change Detection");var a=(i-o)/r;return xt.console.log("ran "+r+" change detection cycles"),xt.console.log(a.toFixed(2)+" ms per check"),new Ht(a,r)},t}(),Bt=function(){function t(){this.store={},this.onSerializeCallbacks={}}return t.init=function(e){var n=new t;return n.store=e,n},t.prototype.get=function(t,e){return void 0!==this.store[t]?this.store[t]:e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(t){console.warn("Exception in onSerialize callback: ",t)}return JSON.stringify(this.store)},t.decorators=[{type:n.Injectable}],t}();
|
95
|
-
/**
|
96
|
-
* @license
|
97
|
-
* Copyright Google Inc. All Rights Reserved.
|
98
|
-
*
|
99
|
-
* Use of this source code is governed by an MIT-style license that can be
|
100
|
-
* found in the LICENSE file at https://angular.io/license
|
101
|
-
*/function zt(t,e){var n=t.getElementById(e+"-state"),o={};if(n&&n.textContent)try{o=JSON.parse(function r(t){var e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,function(t){return e[t]})}(n.textContent))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return Bt.init(o)}var Vt=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{providers:[{provide:Bt,useFactory:zt,deps:[w,n.APP_ID]}]}]}],t}(),Ft=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&s().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),Ut=new n.Version("6.1.6");
|
86
|
+
*/function Ut(t,e){var n=t.getElementById(e+"-state"),o={};if(n&&n.textContent)try{o=JSON.parse(function r(t){var e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,function(t){return e[t]})}(n.textContent))}catch(t){console.warn("Exception while restoring TransferState for app "+e,t)}return Ft.init(o)}var Zt=function(){return a([n.NgModule({providers:[{provide:Ft,useFactory:Ut,deps:[E,n.APP_ID]}]})],function t(){})}(),Gt=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&l().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),Kt=new n.Version("6.1.10");
|
102
87
|
/**
|
103
88
|
* @license
|
104
89
|
* Copyright Google Inc. All Rights Reserved.
|
@@ -127,11 +112,11 @@ function Ot(){return new Mt(n.inject(w))}var Mt=function(){function t(t){this._d
|
|
127
112
|
* Use of this source code is governed by an MIT-style license that can be
|
128
113
|
* found in the LICENSE file at https://angular.io/license
|
129
114
|
*/
|
130
|
-
t.ɵangular_packages_platform_browser_platform_browser_c=
|
115
|
+
t.ɵangular_packages_platform_browser_platform_browser_c=Dt,t.ɵangular_packages_platform_browser_platform_browser_b=Pt,t.ɵangular_packages_platform_browser_platform_browser_a=Lt,t.ɵangular_packages_platform_browser_platform_browser_k=h,t.ɵangular_packages_platform_browser_platform_browser_d=kt,t.ɵangular_packages_platform_browser_platform_browser_i=C,t.ɵangular_packages_platform_browser_platform_browser_h=N,t.ɵangular_packages_platform_browser_platform_browser_e=xt,t.ɵangular_packages_platform_browser_platform_browser_f=Ut,t.ɵangular_packages_platform_browser_platform_browser_j=M,t.ɵangular_packages_platform_browser_platform_browser_g=H,t.BrowserModule=Mt,t.platformBrowser=Rt,t.Meta=jt,t.Title=Ht,t.disableDebugTools=function qt(){R("profiler",null)}
|
131
116
|
/**
|
132
117
|
* @license
|
133
118
|
* Copyright Google Inc. All Rights Reserved.
|
134
119
|
*
|
135
120
|
* Use of this source code is governed by an MIT-style license that can be
|
136
121
|
* found in the LICENSE file at https://angular.io/license
|
137
|
-
*/,t.enableDebugTools=function
|
122
|
+
*/,t.enableDebugTools=function Wt(t){return R("profiler",new Vt(t)),t},t.BrowserTransferStateModule=Zt,t.TransferState=Ft,t.makeStateKey=function Jt(t){return t},t.By=Gt,t.DOCUMENT=E,t.EVENT_MANAGER_PLUGINS=j,t.EventManager=x,t.HAMMER_GESTURE_CONFIG=dt,t.HAMMER_LOADER=yt,t.HammerGestureConfig=ht,t.DomSanitizer=st,t.VERSION=Kt,t.ɵBROWSER_SANITIZATION_PROVIDERS=It,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=Ct,t.ɵinitDomAdapter=Ot,t.ɵBrowserDomAdapter=b,t.ɵBrowserPlatformLocation=T,t.ɵTRANSITION_ID=A,t.ɵBrowserGetTestability=I,t.ɵescapeHtml=function Xt(t){var e={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return t.replace(/[&"'<>]/g,function(t){return e[t]})},t.ɵELEMENT_PROBE_PROVIDERS=k,t.ɵDomAdapter=y,t.ɵgetDOM=l,t.ɵsetRootDomAdapter=f,t.ɵDomRendererFactory2=J,t.ɵNAMESPACE_URIS=V,t.ɵflattenStyles=q,t.ɵshimContentAttribute=G,t.ɵshimHostAttribute=K,t.ɵDomEventsPlugin=lt,t.ɵHammerGesturesPlugin=mt,t.ɵKeyEventsPlugin=wt,t.ɵDomSharedStylesHost=z,t.ɵSharedStylesHost=B,t.ɵDomSanitizerImpl=bt,Object.defineProperty(t,"__esModule",{value:!0})});
|