@angular/platform-browser 9.0.0-rc.6 → 9.0.0
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.d.ts +3 -3
- package/animations.d.ts +2 -2
- package/bundles/platform-browser-animations.umd.js +2 -2
- package/bundles/platform-browser-animations.umd.min.js +2 -2
- package/bundles/platform-browser-animations.umd.min.js.map +1 -1
- package/bundles/platform-browser-testing.umd.js +4 -5
- package/bundles/platform-browser-testing.umd.js.map +1 -1
- package/bundles/platform-browser-testing.umd.min.js +11 -3
- package/bundles/platform-browser-testing.umd.min.js.map +1 -1
- package/bundles/platform-browser.umd.js +19 -13
- package/bundles/platform-browser.umd.js.map +1 -1
- package/bundles/platform-browser.umd.min.js +4 -4
- package/bundles/platform-browser.umd.min.js.map +1 -1
- package/esm2015/platform-browser.js +2 -2
- package/esm2015/src/browser.js +1 -1
- package/esm2015/src/dom/debug/ng_probe.js +8 -8
- package/esm2015/src/dom/dom_renderer.js +10 -4
- package/esm2015/src/version.js +1 -1
- package/esm2015/testing/src/browser_util.js +4 -5
- package/esm5/platform-browser.js +2 -2
- package/esm5/src/browser.js +1 -1
- package/esm5/src/dom/debug/ng_probe.js +8 -8
- package/esm5/src/dom/dom_renderer.js +10 -4
- package/esm5/src/version.js +1 -1
- package/esm5/testing/src/browser_util.js +3 -4
- package/fesm2015/animations.js +2 -2
- package/fesm2015/platform-browser.js +20 -14
- package/fesm2015/platform-browser.js.map +1 -1
- package/fesm2015/testing.js +5 -6
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/animations.js +2 -2
- package/fesm5/platform-browser.js +20 -14
- package/fesm5/platform-browser.js.map +1 -1
- package/fesm5/testing.js +4 -5
- package/fesm5/testing.js.map +1 -1
- package/package.json +3 -3
- package/platform-browser.d.ts +2 -2
- package/platform-browser.metadata.json +1 -1
- package/testing/testing.d.ts +2 -2
- package/testing/testing.metadata.json +1 -1
- package/testing.d.ts +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v9.0.0
|
3
|
-
* (c) 2010-
|
2
|
+
* @license Angular v9.0.0
|
3
|
+
* (c) 2010-2020 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
6
6
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("@angular/platform-browser",["exports","@angular/common","@angular/core"],t):t(((e=e||self).ng=e.ng||{},e.ng.platformBrowser={}),e.ng.common,e.ng.core)}(this,(function(e,t,n){"use strict";
|
@@ -53,7 +53,7 @@ var c,l=function(e){function t(){return e.call(this)||this}return o(t,e),t.proto
|
|
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 w={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},v="probe",_="coreTokens";function b(e){return n.getDebugNode(e)}function E(e){return g(v,b),g(_,i(i({},w),function t(e){return e.reduce((function(e,t){return e[t.name]=t.token,e}),{})}(e||[]))),function(){return b}}var S=[{provide:n.APP_INITIALIZER,useFactory:E,deps:[[n.NgProbeToken,new n.Optional]],multi:!0}],T=S,O=new n.InjectionToken("EventManagerPlugins"),C=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach((function(e){return e.manager=n})),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},a([n.Injectable(),s(0,n.Inject(O)),u("design:paramtypes",[Array,n.NgZone])],e)}(),I=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,n,r){var o=t.ɵgetDOM().getGlobalEventTarget(this._doc,e);if(!o)throw new Error("Unsupported event target "+o+" for event "+n);return this.addEventListener(o,n,r)},e}(),A=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},a([n.Injectable()],e)}(),R=function(e){function r(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return o(r,e),r.prototype._addStylesToHost=function(e,t){var n=this;e.forEach((function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))}))},r.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},r.prototype.removeHost=function(e){this._hostNodes.delete(e)},r.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))},r.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(e){return t.ɵgetDOM().remove(e)}))},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(A),N={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/"},M=/%COMP%/g,D="_nghost-%COMP%",P="_ngcontent-%COMP%";function k(e){return P.replace(M,e)}function j(e){return D.replace(M,e)}function L(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?L(e,o,n):(o=o.replace(M,e),n.push(o))}return n}function H(e){return function(t){if(t===Function)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var x=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new U(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(t.id);return r||(r=new B(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r;case n.ViewEncapsulation.Native:case n.ViewEncapsulation.ShadowDom:return new z(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var o=L(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},a([n.Injectable(),s(2,n.Inject(n.APP_ID)),u("design:paramtypes",[C,R,String])],e)}(),U=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(N[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var o=N[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=N[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,r,o){o&n.RendererStyleFlags2.DashCase?e.style.setProperty(t,r,o&n.RendererStyleFlags2.Important?"important":""):e.style[t]=r},e.prototype.removeStyle=function(e,t,r){r&n.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,H(n)):this.eventManager.addEventListener(e,t,H(n))},e}();"@".charCodeAt(0);var B=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;i.component=r;var a=L(o+"-"+r.id,r.styles,[]);return n.addStyles(a),i.contentAttr=k(o+"-"+r.id),i.hostAttr=j(o+"-"+r.id),i}return o(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(U),z=function(e){function t(t,r,o,i){var a=e.call(this,t)||this;a.sharedStylesHost=r,a.hostEl=o,a.component=i,a.shadowRoot=i.encapsulation===n.ViewEncapsulation.ShadowDom?o.attachShadow({mode:"open"}):o.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=L(i.id,i.styles,[]),u=0;u<s.length;u++){var c=document.createElement("style");c.textContent=s[u],a.shadowRoot.appendChild(c)}return a}return o(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(U),F=function(e){function r(t){return e.call(this,t)||this}return o(r,e),r.prototype.supports=function(e){return!0},r.prototype.addEventListener=function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}},r.prototype.removeEventListener=function(e,t,n){return e.removeEventListener(t,n)},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(I),V={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},G=new n.InjectionToken("HammerGestureConfig"),Z=new n.InjectionToken("HammerLoader"),K=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},a([n.Injectable()],e)}(),q=function(e){function r(t,n,r,o){var i=e.call(this,t)||this;return i._config=n,i.console=r,i.loader=o,i}return o(r,e),r.prototype.supports=function(e){return!(!V.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},r.prototype.addEventListener=function(e,t,n){var r=this,o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var i=!1,a=function(){i=!0};return this.loader().then((function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});i||(a=r.addEventListener(e,t,n))})).catch((function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}})),function(){a()}}return o.runOutsideAngular((function(){var i=r._config.buildHammer(e),a=function(e){o.runGuarded((function(){n(e)}))};return i.on(t,a),function(){i.off(t,a),"function"==typeof i.destroy&&i.destroy()}}))},r.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),s(1,n.Inject(G)),s(3,n.Optional()),s(3,n.Inject(Z)),u("design:paramtypes",[Object,K,n.ɵConsole,Object])],r)}(I),J=[{provide:O,useClass:q,multi:!0,deps:[t.DOCUMENT,G,n.ɵConsole,[new n.Optional,Z]]},{provide:G,useClass:K,deps:[]}],W=J,X=a([n.NgModule({providers:J})],(function X(){})),Y=["alt","control","meta","shift"],Q={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$={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"},ee={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},te=function(e){function r(t){return e.call(this,t)||this}var i;return o(r,e),i=r,r.prototype.supports=function(e){return null!=i.parseEventName(e)},r.prototype.addEventListener=function(e,n,r){var o=i.parseEventName(n),a=i.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return t.ɵgetDOM().onAndCancel(e,o.domEventName,a)}))},r.parseEventName=function(e){var t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;var r=i._normalizeKey(t.pop()),o="";if(Y.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")})),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=o,a},r.getEventFullKey=function(e){var t="",n=function r(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&$.hasOwnProperty(t)&&(t=$[t]))}return Q[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Y.forEach((function(r){r!=n&&(0,ee[r])(e)&&(t+=r+".")})),t+=n},r.eventCallback=function(e,t,n){return function(r){i.getEventFullKey(r)===e&&n.runGuarded((function(){return t(r)}))}},r._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},i=a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(I),ne=function(){function e(){}return e.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return n.ɵɵinject(oe)},token:e,providedIn:"root"}),a([n.Injectable({providedIn:"root",useExisting:n.forwardRef((function(){return oe}))})],e)}();function re(e){return new oe(e.get(t.DOCUMENT))}var oe=function(e){function r(t){var n=e.call(this)||this;return n._doc=t,n}return o(r,e),r.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case n.SecurityContext.NONE:return t;case n.SecurityContext.HTML:return n.ɵallowSanitizationBypassAndThrow(t,"HTML")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeHtml(this._doc,String(t));case n.SecurityContext.STYLE:return n.ɵallowSanitizationBypassAndThrow(t,"Style")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeStyle(t);case n.SecurityContext.SCRIPT:if(n.ɵallowSanitizationBypassAndThrow(t,"Script"))return n.ɵunwrapSafeValue(t);throw new Error("unsafe value used in a script context");case n.SecurityContext.URL:return n.ɵgetSanitizationBypassType(t),n.ɵallowSanitizationBypassAndThrow(t,"URL")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeUrl(String(t));case n.SecurityContext.RESOURCE_URL:if(n.ɵallowSanitizationBypassAndThrow(t,"ResourceURL"))return n.ɵunwrapSafeValue(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},r.prototype.bypassSecurityTrustHtml=function(e){return n.ɵbypassSanitizationTrustHtml(e)},r.prototype.bypassSecurityTrustStyle=function(e){return n.ɵbypassSanitizationTrustStyle(e)},r.prototype.bypassSecurityTrustScript=function(e){return n.ɵbypassSanitizationTrustScript(e)},r.prototype.bypassSecurityTrustUrl=function(e){return n.ɵbypassSanitizationTrustUrl(e)},r.prototype.bypassSecurityTrustResourceUrl=function(e){return n.ɵbypassSanitizationTrustResourceUrl(e)},r.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return re(n.ɵɵinject(n.INJECTOR))},token:r,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:re,deps:[n.Injector]}),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(ne),ie=[{provide:n.PLATFORM_ID,useValue:t.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:ue,multi:!0},{provide:t.DOCUMENT,useFactory:le,deps:[]}],ae=[{provide:n.Sanitizer,useExisting:ne},{provide:ne,useClass:oe,deps:[t.DOCUMENT]}],se=n.createPlatformFactory(n.platformCore,"browser",ie);
|
56
|
+
*/var w={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},v="probe",_="coreTokens";function b(e){return n.ɵgetDebugNodeR2(e)}function E(e){return g(v,b),g(_,i(i({},w),function t(e){return e.reduce((function(e,t){return e[t.name]=t.token,e}),{})}(e||[]))),function(){return b}}var S=[{provide:n.APP_INITIALIZER,useFactory:E,deps:[[n.NgProbeToken,new n.Optional]],multi:!0}],T=S,O=new n.InjectionToken("EventManagerPlugins"),C=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach((function(e){return e.manager=n})),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},a([n.Injectable(),s(0,n.Inject(O)),u("design:paramtypes",[Array,n.NgZone])],e)}(),I=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,n,r){var o=t.ɵgetDOM().getGlobalEventTarget(this._doc,e);if(!o)throw new Error("Unsupported event target "+o+" for event "+n);return this.addEventListener(o,n,r)},e}(),A=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},a([n.Injectable()],e)}(),R=function(e){function r(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return o(r,e),r.prototype._addStylesToHost=function(e,t){var n=this;e.forEach((function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))}))},r.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},r.prototype.removeHost=function(e){this._hostNodes.delete(e)},r.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))},r.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(e){return t.ɵgetDOM().remove(e)}))},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(A),N={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/"},M=/%COMP%/g,D="_nghost-%COMP%",P="_ngcontent-%COMP%";function k(e){return P.replace(M,e)}function j(e){return D.replace(M,e)}function L(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?L(e,o,n):(o=o.replace(M,e),n.push(o))}return n}function H(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var x=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new U(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(t.id);return r||(r=new B(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r;case n.ViewEncapsulation.Native:case n.ViewEncapsulation.ShadowDom:return new z(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var o=L(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},a([n.Injectable(),s(2,n.Inject(n.APP_ID)),u("design:paramtypes",[C,R,String])],e)}(),U=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(N[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var o=N[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=N[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,r,o){o&n.RendererStyleFlags2.DashCase?e.style.setProperty(t,r,o&n.RendererStyleFlags2.Important?"important":""):e.style[t]=r},e.prototype.removeStyle=function(e,t,r){r&n.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,H(n)):this.eventManager.addEventListener(e,t,H(n))},e}();"@".charCodeAt(0);var B=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;i.component=r;var a=L(o+"-"+r.id,r.styles,[]);return n.addStyles(a),i.contentAttr=k(o+"-"+r.id),i.hostAttr=j(o+"-"+r.id),i}return o(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(U),z=function(e){function t(t,r,o,i){var a=e.call(this,t)||this;a.sharedStylesHost=r,a.hostEl=o,a.component=i,a.shadowRoot=i.encapsulation===n.ViewEncapsulation.ShadowDom?o.attachShadow({mode:"open"}):o.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=L(i.id,i.styles,[]),u=0;u<s.length;u++){var c=document.createElement("style");c.textContent=s[u],a.shadowRoot.appendChild(c)}return a}return o(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(U),F=function(e){function r(t){return e.call(this,t)||this}return o(r,e),r.prototype.supports=function(e){return!0},r.prototype.addEventListener=function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}},r.prototype.removeEventListener=function(e,t,n){return e.removeEventListener(t,n)},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(I),V={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},G=new n.InjectionToken("HammerGestureConfig"),Z=new n.InjectionToken("HammerLoader"),K=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},a([n.Injectable()],e)}(),q=function(e){function r(t,n,r,o){var i=e.call(this,t)||this;return i._config=n,i.console=r,i.loader=o,i}return o(r,e),r.prototype.supports=function(e){return!(!V.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},r.prototype.addEventListener=function(e,t,n){var r=this,o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var i=!1,a=function(){i=!0};return this.loader().then((function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});i||(a=r.addEventListener(e,t,n))})).catch((function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}})),function(){a()}}return o.runOutsideAngular((function(){var i=r._config.buildHammer(e),a=function(e){o.runGuarded((function(){n(e)}))};return i.on(t,a),function(){i.off(t,a),"function"==typeof i.destroy&&i.destroy()}}))},r.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),s(1,n.Inject(G)),s(3,n.Optional()),s(3,n.Inject(Z)),u("design:paramtypes",[Object,K,n.ɵConsole,Object])],r)}(I),J=[{provide:O,useClass:q,multi:!0,deps:[t.DOCUMENT,G,n.ɵConsole,[new n.Optional,Z]]},{provide:G,useClass:K,deps:[]}],W=J,X=a([n.NgModule({providers:J})],(function X(){})),Y=["alt","control","meta","shift"],Q={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$={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"},ee={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},te=function(e){function r(t){return e.call(this,t)||this}var i;return o(r,e),i=r,r.prototype.supports=function(e){return null!=i.parseEventName(e)},r.prototype.addEventListener=function(e,n,r){var o=i.parseEventName(n),a=i.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return t.ɵgetDOM().onAndCancel(e,o.domEventName,a)}))},r.parseEventName=function(e){var t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;var r=i._normalizeKey(t.pop()),o="";if(Y.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")})),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=n,a.fullKey=o,a},r.getEventFullKey=function(e){var t="",n=function r(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&$.hasOwnProperty(t)&&(t=$[t]))}return Q[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Y.forEach((function(r){r!=n&&(0,ee[r])(e)&&(t+=r+".")})),t+=n},r.eventCallback=function(e,t,n){return function(r){i.getEventFullKey(r)===e&&n.runGuarded((function(){return t(r)}))}},r._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},i=a([n.Injectable(),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(I),ne=function(){function e(){}return e.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return n.ɵɵinject(oe)},token:e,providedIn:"root"}),a([n.Injectable({providedIn:"root",useExisting:n.forwardRef((function(){return oe}))})],e)}();function re(e){return new oe(e.get(t.DOCUMENT))}var oe=function(e){function r(t){var n=e.call(this)||this;return n._doc=t,n}return o(r,e),r.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case n.SecurityContext.NONE:return t;case n.SecurityContext.HTML:return n.ɵallowSanitizationBypassAndThrow(t,"HTML")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeHtml(this._doc,String(t));case n.SecurityContext.STYLE:return n.ɵallowSanitizationBypassAndThrow(t,"Style")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeStyle(t);case n.SecurityContext.SCRIPT:if(n.ɵallowSanitizationBypassAndThrow(t,"Script"))return n.ɵunwrapSafeValue(t);throw new Error("unsafe value used in a script context");case n.SecurityContext.URL:return n.ɵgetSanitizationBypassType(t),n.ɵallowSanitizationBypassAndThrow(t,"URL")?n.ɵunwrapSafeValue(t):n.ɵ_sanitizeUrl(String(t));case n.SecurityContext.RESOURCE_URL:if(n.ɵallowSanitizationBypassAndThrow(t,"ResourceURL"))return n.ɵunwrapSafeValue(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},r.prototype.bypassSecurityTrustHtml=function(e){return n.ɵbypassSanitizationTrustHtml(e)},r.prototype.bypassSecurityTrustStyle=function(e){return n.ɵbypassSanitizationTrustStyle(e)},r.prototype.bypassSecurityTrustScript=function(e){return n.ɵbypassSanitizationTrustScript(e)},r.prototype.bypassSecurityTrustUrl=function(e){return n.ɵbypassSanitizationTrustUrl(e)},r.prototype.bypassSecurityTrustResourceUrl=function(e){return n.ɵbypassSanitizationTrustResourceUrl(e)},r.ɵprov=n.ɵɵdefineInjectable({factory:function e(){return re(n.ɵɵinject(n.INJECTOR))},token:r,providedIn:"root"}),a([n.Injectable({providedIn:"root",useFactory:re,deps:[n.Injector]}),s(0,n.Inject(t.DOCUMENT)),u("design:paramtypes",[Object])],r)}(ne),ie=[{provide:n.PLATFORM_ID,useValue:t.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:ue,multi:!0},{provide:t.DOCUMENT,useFactory:le,deps:[]}],ae=[{provide:n.Sanitizer,useExisting:ne},{provide:ne,useClass:oe,deps:[t.DOCUMENT]}],se=n.createPlatformFactory(n.platformCore,"browser",ie);
|
57
57
|
/**
|
58
58
|
* @license
|
59
59
|
* Copyright Google Inc. All Rights Reserved.
|
@@ -81,7 +81,7 @@ var c,l=function(e){function t(){return e.call(this)||this}return o(t,e),t.proto
|
|
81
81
|
*
|
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
|
-
*/(n.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}},e}(),Te=new n.Version("9.0.0
|
84
|
+
*/(n.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}},e}(),Te=new n.Version("9.0.0");
|
85
85
|
/**
|
86
86
|
* @license
|
87
87
|
* Copyright Google Inc. All Rights Reserved.
|