blob: 83aa2c6baa8cb02ca47a09f191b7d4a4983ed3c2 [file] [log] [blame]
/**
* @license Angular v11.2.14
* (c) 2010-2021 Google LLC. https://angular.io/
* License: MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/compiler"),require("@angular/core"),require("@angular/common"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("@angular/platform-browser-dynamic",["exports","@angular/compiler","@angular/core","@angular/common","@angular/platform-browser"],t):t(((e=e||self).ng=e.ng||{},e.ng.platformBrowserDynamic={}),e.ng.compiler,e.ng.core,e.ng.common,e.ng.platformBrowser)}(this,(function(e,t,r,o,n){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function s(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return s}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var p=function c(){var e=new Map;return e.set(t.Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS,r.ANALYZE_FOR_ENTRY_COMPONENTS),e.set(t.Identifiers.ElementRef,r.ElementRef),e.set(t.Identifiers.NgModuleRef,r.NgModuleRef),e.set(t.Identifiers.ViewContainerRef,r.ViewContainerRef),e.set(t.Identifiers.ChangeDetectorRef,r.ChangeDetectorRef),e.set(t.Identifiers.Renderer2,r.Renderer2),e.set(t.Identifiers.QueryList,r.QueryList),e.set(t.Identifiers.TemplateRef,r.TemplateRef),e.set(t.Identifiers.CodegenComponentFactoryResolver,rCodegenComponentFactoryResolver),e.set(t.Identifiers.ComponentFactoryResolver,r.ComponentFactoryResolver),e.set(t.Identifiers.ComponentFactory,r.ComponentFactory),e.set(t.Identifiers.ComponentRef,r.ComponentRef),e.set(t.Identifiers.NgModuleFactory,r.NgModuleFactory),e.set(t.Identifiers.createModuleFactory,rcmf),e.set(t.Identifiers.moduleDef,rmod),e.set(t.Identifiers.moduleProviderDef,rmpd),e.set(t.Identifiers.RegisterModuleFactoryFn,rregisterModuleFactory),e.set(t.Identifiers.Injector,r.Injector),e.set(t.Identifiers.ViewEncapsulation,r.ViewEncapsulation),e.set(t.Identifiers.ChangeDetectionStrategy,r.ChangeDetectionStrategy),e.set(t.Identifiers.SecurityContext,r.SecurityContext),e.set(t.Identifiers.LOCALE_ID,r.LOCALE_ID),e.set(t.Identifiers.TRANSLATIONS_FORMAT,r.TRANSLATIONS_FORMAT),e.set(t.Identifiers.inlineInterpolate,rinlineInterpolate),e.set(t.Identifiers.interpolate,rinterpolate),e.set(t.Identifiers.EMPTY_ARRAY,rEMPTY_ARRAY),e.set(t.Identifiers.EMPTY_MAP,rEMPTY_MAP),e.set(t.Identifiers.viewDef,rvid),e.set(t.Identifiers.elementDef,reld),e.set(t.Identifiers.anchorDef,rand),e.set(t.Identifiers.textDef,rted),e.set(t.Identifiers.directiveDef,rdid),e.set(t.Identifiers.providerDef,rprd),e.set(t.Identifiers.queryDef,rqud),e.set(t.Identifiers.pureArrayDef,rpad),e.set(t.Identifiers.pureObjectDef,rpod),e.set(t.Identifiers.purePipeDef,rppd),e.set(t.Identifiers.pipeDef,rpid),e.set(t.Identifiers.nodeValue,rnov),e.set(t.Identifiers.ngContentDef,rncd),e.set(t.Identifiers.unwrapValue,runv),e.set(t.Identifiers.createRendererType2,rcrt),e.set(t.Identifiers.createComponentFactory,rccf),e}(),u=function(){function e(){this.reflectionCapabilities=new rReflectionCapabilities}return e.prototype.componentModuleUrl=function(e,o){var n=o.moduleId;if("string"==typeof n)return t.getUrlScheme(n)?n:"package:"+n;if(null!=n)throw t.syntaxError('moduleId should be a string in "'+rstringify(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return"./"+rstringify(e)},e.prototype.parameters=function(e){return this.reflectionCapabilities.parameters(e)},e.prototype.tryAnnotations=function(e){return this.annotations(e)},e.prototype.annotations=function(e){return this.reflectionCapabilities.annotations(e)},e.prototype.shallowAnnotations=function(e){throw new Error("Not supported in JIT mode")},e.prototype.propMetadata=function(e){return this.reflectionCapabilities.propMetadata(e)},e.prototype.hasLifecycleHook=function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)},e.prototype.guards=function(e){return this.reflectionCapabilities.guards(e)},e.prototype.resolveExternalReference=function(e){return p.get(e)||e.runtime},e}(),d=new r.InjectionToken("ErrorCollector"),f={provide:r.PACKAGE_ROOT_URL,useValue:"/"},m={get:function(e){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+e+'"')}},y=new r.InjectionToken("HtmlParser"),C=function(){function e(e,r,o,n,i,s,a,l,p,c,u){this._metadataResolver=r,this._delegate=new t.JitCompiler(r,o,n,i,s,a,l,p,c,u,this.getExtraNgModuleProviders.bind(this)),this.injector=e}return e.prototype.getExtraNgModuleProviders=function(){return[this._metadataResolver.getProviderMetadata(new t.ProviderMeta(r.Compiler,{useValue:this}))]},e.prototype.compileModuleSync=function(e){return this._delegate.compileModuleSync(e)},e.prototype.compileModuleAsync=function(e){return this._delegate.compileModuleAsync(e)},e.prototype.compileModuleAndAllComponentsSync=function(e){var t=this._delegate.compileModuleAndAllComponentsSync(e);return{ngModuleFactory:t.ngModuleFactory,componentFactories:t.componentFactories}},e.prototype.compileModuleAndAllComponentsAsync=function(e){return this._delegate.compileModuleAndAllComponentsAsync(e).then((function(e){return{ngModuleFactory:e.ngModuleFactory,componentFactories:e.componentFactories}}))},e.prototype.loadAotSummaries=function(e){this._delegate.loadAotSummaries(e)},e.prototype.hasAotSummary=function(e){return this._delegate.hasAotSummary(e)},e.prototype.getComponentFactory=function(e){return this._delegate.getComponentFactory(e)},e.prototype.clearCache=function(){this._delegate.clearCache()},e.prototype.clearCacheFor=function(e){this._delegate.clearCacheFor(e)},e.prototype.getModuleId=function(e){var t=this._metadataResolver.getNgModuleMetadata(e);return t&&t.id||void 0},e}(),R=new u,v=m,g=new t.CompilerConfig,h=[{provide:t.CompileReflector,useValue:R},{provide:t.ResourceLoader,useValue:v},{provide:t.JitSummaryResolver,deps:[]},{provide:t.SummaryResolver,useExisting:t.JitSummaryResolver},{provide:rConsole,deps:[]},{provide:t.Lexer,deps:[]},{provide:t.Parser,deps:[t.Lexer]},{provide:y,useClass:t.HtmlParser,deps:[]},{provide:t.I18NHtmlParser,useFactory:function(e,o,n,i,s){return new t.I18NHtmlParser(e,o=o||"",n,o?i.missingTranslation:r.MissingTranslationStrategy.Ignore,s)},deps:[y,[new r.Optional,new r.Inject(r.TRANSLATIONS)],[new r.Optional,new r.Inject(r.TRANSLATIONS_FORMAT)],[t.CompilerConfig],[rConsole]]},{provide:t.HtmlParser,useExisting:t.I18NHtmlParser},{provide:t.TemplateParser,deps:[t.CompilerConfig,t.CompileReflector,t.Parser,t.ElementSchemaRegistry,t.I18NHtmlParser,rConsole]},{provide:t.JitEvaluator,useClass:t.JitEvaluator,deps:[]},{provide:t.DirectiveNormalizer,deps:[t.ResourceLoader,t.UrlResolver,t.HtmlParser,t.CompilerConfig]},{provide:t.CompileMetadataResolver,deps:[t.CompilerConfig,t.HtmlParser,t.NgModuleResolver,t.DirectiveResolver,t.PipeResolver,t.SummaryResolver,t.ElementSchemaRegistry,t.DirectiveNormalizer,rConsole,[r.Optional,t.StaticSymbolCache],t.CompileReflector,[r.Optional,d]]},f,{provide:t.StyleCompiler,deps:[t.UrlResolver]},{provide:t.ViewCompiler,deps:[t.CompileReflector]},{provide:t.NgModuleCompiler,deps:[t.CompileReflector]},{provide:t.CompilerConfig,useValue:g},{provide:r.Compiler,useClass:C,deps:[r.Injector,t.CompileMetadataResolver,t.TemplateParser,t.StyleCompiler,t.ViewCompiler,t.NgModuleCompiler,t.SummaryResolver,t.CompileReflector,t.JitEvaluator,t.CompilerConfig,rConsole]},{provide:t.DomElementSchemaRegistry,deps:[]},{provide:t.ElementSchemaRegistry,useExisting:t.DomElementSchemaRegistry},{provide:t.UrlResolver,deps:[r.PACKAGE_ROOT_URL]},{provide:t.DirectiveResolver,deps:[t.CompileReflector]},{provide:t.PipeResolver,deps:[t.CompileReflector]},{provide:t.NgModuleResolver,deps:[t.CompileReflector]}],I=[{provide:r.Compiler,useFactory:function(){return new r.Compiler}}],_=h,E=function(){function e(e){this._defaultOptions=l([{useJit:!0,defaultEncapsulation:r.ViewEncapsulation.Emulated,missingTranslation:r.MissingTranslationStrategy.Warning}],e)}return e.prototype.createCompiler=function(e){void 0===e&&(e=[]);var o=function n(e){return{useJit:M(e.map((function(e){return e.useJit}))),defaultEncapsulation:M(e.map((function(e){return e.defaultEncapsulation}))),providers:(t=e.map((function(e){return e.providers})),r=[],t.forEach((function(e){return e&&r.push.apply(r,l(e))})),r),missingTranslation:M(e.map((function(e){return e.missingTranslation}))),preserveWhitespaces:M(e.map((function(e){return e.preserveWhitespaces})))};var t,r;
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/}(this._defaultOptions.concat(e));return r.Injector.create([_,{provide:t.CompilerConfig,useFactory:function(){return new t.CompilerConfig({useJit:o.useJit,jitDevMode:r.isDevMode(),defaultEncapsulation:o.defaultEncapsulation,missingTranslation:o.missingTranslation,preserveWhitespaces:o.preserveWhitespaces})},deps:[]},o.providers]).get(r.Compiler)},e}();function M(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}var O=r.createPlatformFactory(r.platformCore,"coreDynamic",[{provide:r.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:r.CompilerFactory,useClass:E,deps:[r.COMPILER_OPTIONS]}]),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.get=function(e){var t,r,o=new Promise((function(e,o){t=e,r=o})),n=new XMLHttpRequest;return n.open("GET",e,!0),n.responseType="text",n.onload=function(){var o=n.response||n.responseText,i=1223===n.status?204:n.status;0===i&&(i=o?200:0),200<=i&&i<=300?t(o):r("Failed to load "+e)},n.onerror=function(){r("Failed to load "+e)},n.send(),o},t}(t.ResourceLoader);P.decorators=[{type:r.Injectable}];
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var A=[nINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:r.COMPILER_OPTIONS,useValue:{providers:[{provide:t.ResourceLoader,useClass:P,deps:[]}]},multi:!0},{provide:r.PLATFORM_ID,useValue:oPLATFORM_BROWSER_ID}],S=function(e){function t(){var t=e.call(this)||this;if(t._cache=rglobal.$templateCache,null==t._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return t}return s(t,e),t.prototype.get=function(e){return this._cache.hasOwnProperty(e)?Promise.resolve(this._cache[e]):Promise.reject("CachedResourceLoader: Did not find cached template for "+e)},t}(t.ResourceLoader),T=new r.Version("11.2.14"),w=[{provide:t.ResourceLoader,useClass:S,deps:[]}],D=r.createPlatformFactory(O,"browserDynamic",A);
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
e.JitCompilerFactory=E,e.RESOURCE_CACHE_PROVIDER=w,e.VERSION=T,e.platformBrowserDynamic=D,eCOMPILER_PROVIDERS__POST_R3__=I,eCompilerImpl=C,eINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=A,eResourceLoaderImpl=P,eangular_packages_platform_browser_dynamic_platform_browser_dynamic_a=S,eplatformCoreDynamic=O,Object.defineProperty(e,"__esModule",{value:!0})}));