Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nguniversal/common

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nguniversal/common - npm Package Compare versions

Comparing version 7.0.2 to 7.1.0

332

bundles/common-engine.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('fs'), require('@angular/compiler'), require('@angular/core'), require('@angular/platform-server')) :
typeof define === 'function' && define.amd ? define('@nguniversal/common/engine', ['exports', 'fs', '@angular/compiler', '@angular/core', '@angular/platform-server'], factory) :
(factory((global.nguniversal = global.nguniversal || {}, global.nguniversal.common = global.nguniversal.common || {}, global.nguniversal.common.engine = {}),global.fs,global.ng.compiler,global.ng.core,global.ng.platformServer));
}(this, (function (exports,fs,compiler,core,platformServer) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('fs'), require('tslib'), require('@angular/compiler'), require('@angular/core'), require('@angular/platform-server')) :
typeof define === 'function' && define.amd ? define('@nguniversal/common/engine', ['exports', 'fs', 'tslib', '@angular/compiler', '@angular/core', '@angular/platform-server'], factory) :
(factory((global.nguniversal = global.nguniversal || {}, global.nguniversal.common = global.nguniversal.common || {}, global.nguniversal.common.engine = {}),global.fs,global.tslib,global.ng.compiler,global.ng.core,global.ng.platformServer));
}(this, (function (exports,fs,tslib_1,compiler,core,platformServer) { 'use strict';
/**
* @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
*/
/** ResourceLoader implementation for loading files */
var FileLoader = /** @class */ (function () {
function FileLoader() {
}
FileLoader.prototype.get = function (url) {
return new Promise(function (resolve, reject) {
fs.readFile(url, function (err, buffer) {
if (err) {
return reject(err);
}
resolve(buffer.toString());
/**
* @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
*/
/** ResourceLoader implementation for loading files */
var FileLoader = /** @class */ (function () {
function FileLoader() {
}
FileLoader.prototype.get = function (url) {
return new Promise(function (resolve, reject) {
fs.readFile(url, function (err, buffer) {
if (err) {
return reject(err);
}
resolve(buffer.toString());
});
});
});
};
return FileLoader;
}());
};
return FileLoader;
}());
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var __read = (undefined && undefined.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (undefined && undefined.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
/**
* @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
*/
/**
* A common rendering engine utility. This abstracts the logic
* for handling the platformServer compiler, the module cache, and
* the document loader
*/
var CommonEngine = /** @class */ (function () {
function CommonEngine(moduleOrFactory, providers) {
if (providers === void 0) { providers = []; }
this.moduleOrFactory = moduleOrFactory;
this.providers = providers;
this.factoryCacheMap = new Map();
this.templateCache = {};
}
/** Return an instance of the platformServer compiler */
CommonEngine.prototype.getCompiler = function () {
var compilerFactory = platformServer.platformDynamicServer().injector.get(core.CompilerFactory);
return compilerFactory.createCompiler([
{ providers: [{ provide: compiler.ResourceLoader, useClass: FileLoader, deps: [] }] }
]);
};
/**
* Render an HTML document for a specific URL with specified
* render options
* A common rendering engine utility. This abstracts the logic
* for handling the platformServer compiler, the module cache, and
* the document loader
*/
CommonEngine.prototype.render = function (opts) {
return __awaiter(this, void 0, void 0, function () {
var doc, _a, extraProviders, factory;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
_a = opts.document;
if (_a) return [3 /*break*/, 2];
return [4 /*yield*/, this.getDocument(opts.documentFilePath)];
case 1:
_a = (_b.sent());
_b.label = 2;
case 2:
doc = _a;
extraProviders = __spread((opts.providers || []), (this.providers || []), [
{
provide: platformServer.INITIAL_CONFIG,
useValue: {
document: doc,
url: opts.url
var CommonEngine = /** @class */ (function () {
function CommonEngine(moduleOrFactory, providers) {
if (providers === void 0) { providers = []; }
this.moduleOrFactory = moduleOrFactory;
this.providers = providers;
this.factoryCacheMap = new Map();
this.templateCache = {};
}
/** Return an instance of the platformServer compiler */
CommonEngine.prototype.getCompiler = function () {
var compilerFactory = platformServer.platformDynamicServer().injector.get(core.CompilerFactory);
return compilerFactory.createCompiler([
{ providers: [{ provide: compiler.ResourceLoader, useClass: FileLoader, deps: [] }] }
]);
};
/**
* Render an HTML document for a specific URL with specified
* render options
*/
CommonEngine.prototype.render = function (opts) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var doc, _a, extraProviders, factory;
return tslib_1.__generator(this, function (_b) {
switch (_b.label) {
case 0:
_a = opts.document;
if (_a) return [3 /*break*/, 2];
return [4 /*yield*/, this.getDocument(opts.documentFilePath)];
case 1:
_a = (_b.sent());
_b.label = 2;
case 2:
doc = _a;
extraProviders = tslib_1.__spread((opts.providers || []), (this.providers || []), [
{
provide: platformServer.INITIAL_CONFIG,
useValue: {
document: doc,
url: opts.url
}
}
}
]);
return [4 /*yield*/, this.getFactory()];
case 3:
factory = _b.sent();
return [2 /*return*/, platformServer.renderModuleFactory(factory, { extraProviders: extraProviders })];
}
]);
return [4 /*yield*/, this.getFactory()];
case 3:
factory = _b.sent();
return [2 /*return*/, platformServer.renderModuleFactory(factory, { extraProviders: extraProviders })];
}
});
});
});
};
/** Return the factory for a given engine instance */
CommonEngine.prototype.getFactory = function () {
var _this = this;
// If module has been compiled AoT
var moduleOrFactory = this.moduleOrFactory;
if (moduleOrFactory instanceof core.NgModuleFactory) {
return Promise.resolve(moduleOrFactory);
}
else {
// we're in JIT mode
var moduleFactory = this.factoryCacheMap.get(moduleOrFactory);
// If module factory is cached
if (moduleFactory) {
return Promise.resolve(moduleFactory);
};
/** Return the factory for a given engine instance */
CommonEngine.prototype.getFactory = function () {
var _this = this;
// If module has been compiled AoT
var moduleOrFactory = this.moduleOrFactory;
if (moduleOrFactory instanceof core.NgModuleFactory) {
return Promise.resolve(moduleOrFactory);
}
// Compile the module and cache it
return this.getCompiler().compileModuleAsync(moduleOrFactory)
.then(function (factory) {
_this.factoryCacheMap.set(moduleOrFactory, factory);
return factory;
});
}
};
/** Retrieve the document from the cache or the filesystem */
CommonEngine.prototype.getDocument = function (filePath) {
var doc = this.templateCache[filePath] = this.templateCache[filePath] ||
fs.readFileSync(filePath).toString();
// As promise so we can change the API later without breaking
return Promise.resolve(doc);
};
return CommonEngine;
}());
else {
// we're in JIT mode
var moduleFactory = this.factoryCacheMap.get(moduleOrFactory);
// If module factory is cached
if (moduleFactory) {
return Promise.resolve(moduleFactory);
}
// Compile the module and cache it
return this.getCompiler().compileModuleAsync(moduleOrFactory)
.then(function (factory) {
_this.factoryCacheMap.set(moduleOrFactory, factory);
return factory;
});
}
};
/** Retrieve the document from the cache or the filesystem */
CommonEngine.prototype.getDocument = function (filePath) {
var doc = this.templateCache[filePath] = this.templateCache[filePath] ||
fs.readFileSync(filePath).toString();
// As promise so we can change the API later without breaking
return Promise.resolve(doc);
};
return CommonEngine;
}());
/**
* @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
*/
/**
* @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
*/
/**
* @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
*/
/**
* Generated bundle index. Do not edit.
*/
/**
* Generated bundle index. Do not edit.
*/
exports.ɵFileLoader = FileLoader;
exports.ɵCommonEngine = CommonEngine;
exports.ɵFileLoader = FileLoader;
exports.ɵCommonEngine = CommonEngine;
Object.defineProperty(exports, '__esModule', { value: true });
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=common-engine.umd.js.map

@@ -1,30 +0,30 @@

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("fs"),require("@angular/compiler"),require("@angular/core"),require("@angular/platform-server")):"function"==typeof define&&define.amd?define("@nguniversal/common/engine",["exports","fs","@angular/compiler","@angular/core","@angular/platform-server"],r):r((e.nguniversal=e.nguniversal||{},e.nguniversal.common=e.nguniversal.common||{},e.nguniversal.common.engine={}),e.fs,e.ng.compiler,e.ng.core,e.ng.platformServer)}(this,function(e,r,t,n,o){"use strict";
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("fs"),require("tslib"),require("@angular/compiler"),require("@angular/core"),require("@angular/platform-server")):"function"==typeof define&&define.amd?define("@nguniversal/common/engine",["exports","fs","tslib","@angular/compiler","@angular/core","@angular/platform-server"],r):r((e.nguniversal=e.nguniversal||{},e.nguniversal.common=e.nguniversal.common||{},e.nguniversal.common.engine={}),e.fs,e.tslib,e.ng.compiler,e.ng.core,e.ng.platformServer)}(this,function(e,r,t,n,o,i){"use strict";
/**
* @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 i=function(){function e(){}return e.prototype.get=function(e){return new Promise(function(t,n){r.readFile(e,function(e,r){if(e)return n(e);t(r.toString())})})},e}(),a=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,o,i=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a},u=function(){function e(e,r){void 0===r&&(r=[]),this.moduleOrFactory=e,this.providers=r,this.factoryCacheMap=new Map,this.templateCache={}}return e.prototype.getCompiler=function(){return o.platformDynamicServer().injector.get(n.CompilerFactory).createCompiler([{providers:[{provide:t.ResourceLoader,useClass:i,deps:[]}]}])},e.prototype.render=function(e){return r=this,void 0,n=function(){var r,t,n;return function(e,r){var t,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function c(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,n&&(o=n[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=r.call(e,a)}catch(e){i=[6,e],n=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,function(i){switch(i.label){case 0:return(r=e.document)?[3,2]:[4,this.getDocument(e.documentFilePath)];case 1:r=i.sent(),i.label=2;case 2:return t=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(a(arguments[r]));return e}(e.providers||[],this.providers||[],[{provide:o.INITIAL_CONFIG,useValue:{document:r,url:e.url}}]),[4,this.getFactory()];case 3:return n=i.sent(),[2,o.renderModuleFactory(n,{extraProviders:t})]}})},new((t=void 0)||(t=Promise))(function(e,o){function i(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(r){r.done?e(r.value):new t(function(e){e(r.value)}).then(i,a)}u((n=n.apply(r,[])).next())});var r,t,n},e.prototype.getFactory=function(){var e=this,r=this.moduleOrFactory;if(r instanceof n.NgModuleFactory)return Promise.resolve(r);var t=this.factoryCacheMap.get(r);return t?Promise.resolve(t):this.getCompiler().compileModuleAsync(r).then(function(t){return e.factoryCacheMap.set(r,t),t})},e.prototype.getDocument=function(e){var t=this.templateCache[e]=this.templateCache[e]||r.readFileSync(e).toString();return Promise.resolve(t)},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 a=function(){function e(){}return e.prototype.get=function(e){return new Promise(function(t,n){r.readFile(e,function(e,r){if(e)return n(e);t(r.toString())})})},e}(),u=function(){function e(e,r){void 0===r&&(r=[]),this.moduleOrFactory=e,this.providers=r,this.factoryCacheMap=new Map,this.templateCache={}}return e.prototype.getCompiler=function(){return i.platformDynamicServer().injector.get(o.CompilerFactory).createCompiler([{providers:[{provide:n.ResourceLoader,useClass:a,deps:[]}]}])},e.prototype.render=function(e){return t.__awaiter(this,void 0,void 0,function(){var r,n,o;return t.__generator(this,function(a){switch(a.label){case 0:return(r=e.document)?[3,2]:[4,this.getDocument(e.documentFilePath)];case 1:r=a.sent(),a.label=2;case 2:return n=t.__spread(e.providers||[],this.providers||[],[{provide:i.INITIAL_CONFIG,useValue:{document:r,url:e.url}}]),[4,this.getFactory()];case 3:return o=a.sent(),[2,i.renderModuleFactory(o,{extraProviders:n})]}})})},e.prototype.getFactory=function(){var e=this,r=this.moduleOrFactory;if(r instanceof o.NgModuleFactory)return Promise.resolve(r);var t=this.factoryCacheMap.get(r);return t?Promise.resolve(t):this.getCompiler().compileModuleAsync(r).then(function(t){return e.factoryCacheMap.set(r,t),t})},e.prototype.getDocument=function(e){var t=this.templateCache[e]=this.templateCache[e]||r.readFileSync(e).toString();return Promise.resolve(t)},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
*/
* @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
*/
* @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.ɵFileLoader=i,e.ɵCommonEngine=u,Object.defineProperty(e,"__esModule",{value:!0})});
* @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.ɵFileLoader=a,e.ɵCommonEngine=u,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -7,48 +7,48 @@ (function (global, factory) {

/**
* @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 ORIGIN_URL = new core.InjectionToken('ORIGIN_URL');
var REQUEST = new core.InjectionToken('REQUEST');
var RESPONSE = new core.InjectionToken('RESPONSE');
/**
* @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 ORIGIN_URL = new core.InjectionToken('ORIGIN_URL');
var REQUEST = new core.InjectionToken('REQUEST');
var RESPONSE = new core.InjectionToken('RESPONSE');
/**
* @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
*/
/**
* @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
*/
/**
* @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
*/
/**
* Generated bundle index. Do not edit.
*/
/**
* Generated bundle index. Do not edit.
*/
exports.ɵORIGIN_URL = ORIGIN_URL;
exports.ɵREQUEST = REQUEST;
exports.ɵRESPONSE = RESPONSE;
exports.ɵORIGIN_URL = ORIGIN_URL;
exports.ɵREQUEST = REQUEST;
exports.ɵRESPONSE = RESPONSE;
Object.defineProperty(exports, '__esModule', { value: true });
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=common-tokens.umd.js.map
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("@nguniversal/common/tokens",["exports","@angular/core"],n):n((e.nguniversal=e.nguniversal||{},e.nguniversal.common=e.nguniversal.common||{},e.nguniversal.common.tokens={}),e.ng.core)}(this,function(e,n){"use strict";
/**
* @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 o=new n.InjectionToken("ORIGIN_URL"),i=new n.InjectionToken("REQUEST"),r=new n.InjectionToken("RESPONSE");
* @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 o=new n.InjectionToken("ORIGIN_URL"),i=new n.InjectionToken("REQUEST"),r=new n.InjectionToken("RESPONSE");
/**
* @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
*/
/**
* @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
*/
/**
* @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.ɵORIGIN_URL=o,e.ɵREQUEST=i,e.ɵRESPONSE=r,Object.defineProperty(e,"__esModule",{value:!0})});
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('@angular/core'), require('@angular/platform-browser'), require('rxjs'), require('rxjs/operators'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('@nguniversal/common', ['exports', '@angular/common/http', '@angular/core', '@angular/platform-browser', 'rxjs', 'rxjs/operators', '@angular/common'], factory) :
(factory((global.nguniversal = global.nguniversal || {}, global.nguniversal.common = {}),global.ng.common.http,global.ng.core,global.ng.platformBrowser,global.rxjs,global.rxjs.operators,global.ng.common));
}(this, (function (exports,http,core,platformBrowser,rxjs,operators,common) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('@angular/common/http'), require('@angular/core'), require('@angular/platform-browser'), require('rxjs'), require('rxjs/operators'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('@nguniversal/common', ['exports', 'tslib', '@angular/common/http', '@angular/core', '@angular/platform-browser', 'rxjs', 'rxjs/operators', '@angular/common'], factory) :
(factory((global.nguniversal = global.nguniversal || {}, global.nguniversal.common = {}),global.tslib,global.ng.common.http,global.ng.core,global.ng.platformBrowser,global.rxjs,global.rxjs.operators,global.ng.common));
}(this, (function (exports,tslib_1,http,core,platformBrowser,rxjs,operators,common) { 'use strict';
var __values = (undefined && undefined.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
function getHeadersMap(headers) {
var e_1, _a;
var headersMap = {};
try {
for (var _b = tslib_1.__values(headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
var key = _c.value;
headersMap[key] = headers.getAll(key);
}
}
};
};
/**
* @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
*/
function getHeadersMap(headers) {
var headersMap = {};
try {
for (var _a = __values(headers.keys()), _b = _a.next(); !_b.done; _b = _a.next()) {
var key = _b.value;
headersMap[key] = headers.getAll(key);
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
return headersMap;
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
var TransferHttpCacheInterceptor = /** @class */ (function () {
function TransferHttpCacheInterceptor(appRef, transferState) {
var _this = this;
this.transferState = transferState;
this.isCacheActive = true;
// Stop using the cache if the application has stabilized, indicating initial rendering is
// complete.
appRef.isStable
.pipe(operators.filter(function (isStable) { return isStable; }), operators.take(1)).toPromise()
.then(function () { _this.isCacheActive = false; });
}
finally { if (e_1) throw e_1.error; }
}
return headersMap;
var e_1, _c;
}
var TransferHttpCacheInterceptor = /** @class */ (function () {
function TransferHttpCacheInterceptor(appRef, transferState) {
var _this = this;
this.transferState = transferState;
this.isCacheActive = true;
// Stop using the cache if the application has stabilized, indicating initial rendering is
// complete.
appRef.isStable
.pipe(operators.filter(function (isStable) { return isStable; }), operators.take(1)).toPromise()
.then(function () { _this.isCacheActive = false; });
}
TransferHttpCacheInterceptor.prototype.invalidateCacheEntry = function (url) {
var _this = this;
Object.keys(this.transferState['store'])
.forEach(function (key) { return key.includes(url) ? _this.transferState.remove(platformBrowser.makeStateKey(key)) : null; });
};
TransferHttpCacheInterceptor.prototype.makeCacheKey = function (method, url, params) {
// make the params encoded same as a url so it's easy to identify
var encodedParams = params.keys().sort().map(function (k) { return k + "=" + params.get(k); }).join('&');
var key = (method === 'GET' ? 'G.' : 'H.') + url + '?' + encodedParams;
return platformBrowser.makeStateKey(key);
};
TransferHttpCacheInterceptor.prototype.intercept = function (req, next) {
var _this = this;
// Stop using the cache if there is a mutating call.
if (req.method !== 'GET' && req.method !== 'HEAD') {
this.isCacheActive = false;
this.invalidateCacheEntry(req.url);
TransferHttpCacheInterceptor.prototype.invalidateCacheEntry = function (url) {
var _this = this;
Object.keys(this.transferState['store'])
.forEach(function (key) { return key.includes(url) ? _this.transferState.remove(platformBrowser.makeStateKey(key)) : null; });
};
TransferHttpCacheInterceptor.prototype.makeCacheKey = function (method, url, params) {
// make the params encoded same as a url so it's easy to identify
var encodedParams = params.keys().sort().map(function (k) { return k + "=" + params.get(k); }).join('&');
var key = (method === 'GET' ? 'G.' : 'H.') + url + '?' + encodedParams;
return platformBrowser.makeStateKey(key);
};
TransferHttpCacheInterceptor.prototype.intercept = function (req, next) {
var _this = this;
// Stop using the cache if there is a mutating call.
if (req.method !== 'GET' && req.method !== 'HEAD') {
this.isCacheActive = false;
this.invalidateCacheEntry(req.url);
}
if (!this.isCacheActive) {
// Cache is no longer active. Pass the request through.
return next.handle(req);
}
var storeKey = this.makeCacheKey(req.method, req.url, req.params);
if (this.transferState.hasKey(storeKey)) {
// Request found in cache. Respond using it.
var response = this.transferState.get(storeKey, {});
return rxjs.of(new http.HttpResponse({
body: response.body,
headers: new http.HttpHeaders(response.headers),
status: response.status,
statusText: response.statusText,
url: response.url,
}));
}
else {
// Request not found in cache. Make the request and cache it.
var httpEvent = next.handle(req);
return httpEvent
.pipe(operators.tap(function (event) {
if (event instanceof http.HttpResponse) {
_this.transferState.set(storeKey, {
body: event.body,
headers: getHeadersMap(event.headers),
status: event.status,
statusText: event.statusText,
url: event.url,
});
}
}));
}
};
TransferHttpCacheInterceptor = tslib_1.__decorate([
core.Injectable(),
tslib_1.__metadata("design:paramtypes", [core.ApplicationRef, platformBrowser.TransferState])
], TransferHttpCacheInterceptor);
return TransferHttpCacheInterceptor;
}());
/**
* An NgModule used in conjunction with `ServerTransferHttpCacheModule` to transfer cached HTTP
* calls from the server to the client application.
*/
var TransferHttpCacheModule = /** @class */ (function () {
function TransferHttpCacheModule() {
}
if (!this.isCacheActive) {
// Cache is no longer active. Pass the request through.
return next.handle(req);
}
var storeKey = this.makeCacheKey(req.method, req.url, req.params);
if (this.transferState.hasKey(storeKey)) {
// Request found in cache. Respond using it.
var response = this.transferState.get(storeKey, {});
return rxjs.of(new http.HttpResponse({
body: response.body,
headers: new http.HttpHeaders(response.headers),
status: response.status,
statusText: response.statusText,
url: response.url,
}));
}
else {
// Request not found in cache. Make the request and cache it.
var httpEvent = next.handle(req);
return httpEvent
.pipe(operators.tap(function (event) {
if (event instanceof http.HttpResponse) {
_this.transferState.set(storeKey, {
body: event.body,
headers: getHeadersMap(event.headers),
status: event.status,
statusText: event.statusText,
url: event.url,
});
}
}));
}
};
TransferHttpCacheInterceptor.decorators = [
{ type: core.Injectable }
];
/** @nocollapse */
TransferHttpCacheInterceptor.ctorParameters = function () { return [
{ type: core.ApplicationRef },
{ type: platformBrowser.TransferState }
]; };
return TransferHttpCacheInterceptor;
}());
/**
* An NgModule used in conjunction with `ServerTransferHttpCacheModule` to transfer cached HTTP
* calls from the server to the client application.
*/
var TransferHttpCacheModule = /** @class */ (function () {
function TransferHttpCacheModule() {
}
TransferHttpCacheModule.decorators = [
{ type: core.NgModule, args: [{
imports: [platformBrowser.BrowserTransferStateModule],
providers: [
TransferHttpCacheInterceptor,
{ provide: http.HTTP_INTERCEPTORS, useExisting: TransferHttpCacheInterceptor, multi: true },
],
},] }
];
return TransferHttpCacheModule;
}());
TransferHttpCacheModule = tslib_1.__decorate([
core.NgModule({
imports: [platformBrowser.BrowserTransferStateModule],
providers: [
TransferHttpCacheInterceptor,
{ provide: http.HTTP_INTERCEPTORS, useExisting: TransferHttpCacheInterceptor, multi: true },
],
})
], TransferHttpCacheModule);
return TransferHttpCacheModule;
}());
/**
* @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
*/
function domContentLoadedFactory(doc) {
return function () { return new Promise(function (resolve, _reject) {
var contentLoaded = function () {
doc.removeEventListener('DOMContentLoaded', contentLoaded);
resolve();
};
doc.addEventListener('DOMContentLoaded', contentLoaded);
}); };
}
var StateTransferInitializerModule = /** @class */ (function () {
function StateTransferInitializerModule() {
/**
* @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
*/
function domContentLoadedFactory(doc) {
return function () { return new Promise(function (resolve, _reject) {
var contentLoaded = function () {
doc.removeEventListener('DOMContentLoaded', contentLoaded);
resolve();
};
if (doc.readyState === 'complete' || doc.readyState === 'interactive') {
resolve();
}
else {
doc.addEventListener('DOMContentLoaded', contentLoaded);
}
}); };
}
StateTransferInitializerModule.decorators = [
{ type: core.NgModule, args: [{
providers: [
{ provide: core.APP_INITIALIZER, multi: true, useFactory: domContentLoadedFactory, deps: [common.DOCUMENT] },
]
},] }
];
return StateTransferInitializerModule;
}());
var StateTransferInitializerModule = /** @class */ (function () {
function StateTransferInitializerModule() {
}
StateTransferInitializerModule = tslib_1.__decorate([
core.NgModule({
providers: [
{ provide: core.APP_INITIALIZER, multi: true, useFactory: domContentLoadedFactory, deps: [common.DOCUMENT] },
]
})
], StateTransferInitializerModule);
return StateTransferInitializerModule;
}());
/**
* @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
*/
/**
* @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
*/
/**
* @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
*/
/**
* Generated bundle index. Do not edit.
*/
/**
* Generated bundle index. Do not edit.
*/
exports.ɵnguniversal_modules_common_common_a = domContentLoadedFactory;
exports.TransferHttpCacheModule = TransferHttpCacheModule;
exports.StateTransferInitializerModule = StateTransferInitializerModule;
exports.ɵTransferHttpCacheInterceptor = TransferHttpCacheInterceptor;
exports.ɵnguniversal_modules_common_common_a = domContentLoadedFactory;
exports.TransferHttpCacheModule = TransferHttpCacheModule;
exports.StateTransferInitializerModule = StateTransferInitializerModule;
exports.ɵTransferHttpCacheInterceptor = TransferHttpCacheInterceptor;
Object.defineProperty(exports, '__esModule', { value: true });
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=common.umd.js.map

@@ -1,38 +0,30 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common/http"),require("@angular/core"),require("@angular/platform-browser"),require("rxjs"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("@nguniversal/common",["exports","@angular/common/http","@angular/core","@angular/platform-browser","rxjs","rxjs/operators","@angular/common"],t):t((e.nguniversal=e.nguniversal||{},e.nguniversal.common={}),e.ng.common.http,e.ng.core,e.ng.platformBrowser,e.rxjs,e.rxjs.operators,e.ng.common)}(this,function(e,t,r,n,o,a,s){"use strict";var i=function(){function e(e,t){var r=this;this.transferState=t,this.isCacheActive=!0,e.isStable.pipe(a.filter(function(e){return e}),a.take(1)).toPromise().then(function(){r.isCacheActive=!1})}return e.prototype.invalidateCacheEntry=function(e){var t=this;Object.keys(this.transferState.store).forEach(function(r){return r.includes(e)?t.transferState.remove(n.makeStateKey(r)):null})},e.prototype.makeCacheKey=function(e,t,r){var o=r.keys().sort().map(function(e){return e+"="+r.get(e)}).join("&");return n.makeStateKey(("GET"===e?"G.":"H.")+t+"?"+o)},e.prototype.intercept=function(e,r){var n=this;if("GET"!==e.method&&"HEAD"!==e.method&&(this.isCacheActive=!1,this.invalidateCacheEntry(e.url)),!this.isCacheActive)return r.handle(e);var s=this.makeCacheKey(e.method,e.url,e.params);if(this.transferState.hasKey(s)){var i=this.transferState.get(s,{});return o.of(new t.HttpResponse({body:i.body,headers:new t.HttpHeaders(i.headers),status:i.status,statusText:i.statusText,url:i.url}))}return r.handle(e).pipe(a.tap(function(e){e instanceof t.HttpResponse&&n.transferState.set(s,{body:e.body,headers:
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("tslib"),require("@angular/common/http"),require("@angular/core"),require("@angular/platform-browser"),require("rxjs"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("@nguniversal/common",["exports","tslib","@angular/common/http","@angular/core","@angular/platform-browser","rxjs","rxjs/operators","@angular/common"],t):t((e.nguniversal=e.nguniversal||{},e.nguniversal.common={}),e.tslib,e.ng.common.http,e.ng.core,e.ng.platformBrowser,e.rxjs,e.rxjs.operators,e.ng.common)}(this,function(e,t,r,n,a,o,s,i){"use strict";var u=function(){function e(e,t){var r=this;this.transferState=t,this.isCacheActive=!0,e.isStable.pipe(s.filter(function(e){return e}),s.take(1)).toPromise().then(function(){r.isCacheActive=!1})}return e.prototype.invalidateCacheEntry=function(e){var t=this;Object.keys(this.transferState.store).forEach(function(r){return r.includes(e)?t.transferState.remove(a.makeStateKey(r)):null})},e.prototype.makeCacheKey=function(e,t,r){var n=r.keys().sort().map(function(e){return e+"="+r.get(e)}).join("&");return a.makeStateKey(("GET"===e?"G.":"H.")+t+"?"+n)},e.prototype.intercept=function(e,n){var a=this;if("GET"!==e.method&&"HEAD"!==e.method&&(this.isCacheActive=!1,this.invalidateCacheEntry(e.url)),!this.isCacheActive)return n.handle(e);var i=this.makeCacheKey(e.method,e.url,e.params);if(this.transferState.hasKey(i)){var u=this.transferState.get(i,{});return o.of(new r.HttpResponse({body:u.body,headers:new r.HttpHeaders(u.headers),status:u.status,statusText:u.statusText,url:u.url}))}return n.handle(e).pipe(s.tap(function(e){e instanceof r.HttpResponse&&a.transferState.set(i,{body:e.body,headers:function n(e){var r,n,a={};try{for(var o=t.__values(e.keys()),s=o.next();!s.done;s=o.next()){var i=s.value;a[i]=e.getAll(i)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}(e.headers),status:e.status,statusText:e.statusText,url:e.url})}))},t.__decorate([n.Injectable(),t.__metadata("design:paramtypes",[n.ApplicationRef,a.TransferState])],e)}(),c=function(){return t.__decorate([n.NgModule({imports:[a.BrowserTransferStateModule],providers:[u,{provide:r.HTTP_INTERCEPTORS,useExisting:u,multi:!0}]})],function 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
*/
function r(e){var t,r,n={};try{for(var o=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}(e.keys()),a=o.next();!a.done;a=o.next()){var s=a.value;n[s]=e.getAll(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n}(e.headers),status:e.status,statusText:e.statusText,url:e.url})}))},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:r.ApplicationRef},{type:n.TransferState}]},e}(),u=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.BrowserTransferStateModule],providers:[i,{provide:t.HTTP_INTERCEPTORS,useExisting:i,multi:!0}]}]}],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
*/
function l(e){return function(){return new Promise(function(t,r){var n=function(){e.removeEventListener("DOMContentLoaded",n),t()};"complete"===e.readyState||"interactive"===e.readyState?t():e.addEventListener("DOMContentLoaded",n)})}}var f=function(){return t.__decorate([n.NgModule({providers:[{provide:n.APP_INITIALIZER,multi:!0,useFactory:l,deps:[i.DOCUMENT]}]})],function 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
*/
function c(e){return function(){return new Promise(function(t,r){var n=function(){e.removeEventListener("DOMContentLoaded",n),t()};e.addEventListener("DOMContentLoaded",n)})}}var f=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{providers:[{provide:r.APP_INITIALIZER,multi:!0,useFactory:c,deps:[s.DOCUMENT]}]}]}],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
*/
/**
* @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
*/
/**
* @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.ɵnguniversal_modules_common_common_a=c,e.TransferHttpCacheModule=u,e.StateTransferInitializerModule=f,e.ɵTransferHttpCacheInterceptor=i,Object.defineProperty(e,"__esModule",{value:!0})});
* @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.ɵnguniversal_modules_common_common_a=l,e.TransferHttpCacheModule=c,e.StateTransferInitializerModule=f,e.ɵTransferHttpCacheInterceptor=u,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"ɵnguniversal_modules_common_common_a":{"__symbolic":"function","parameters":["doc"],"value":{"__symbolic":"error","message":"Lambda not supported","line":12,"character":9,"module":"./src/state-transfer-initializer/module"}},"TransferHttpCacheModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":120,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserTransferStateModule","line":121,"character":12}],"providers":[{"__symbolic":"reference","name":"ɵTransferHttpCacheInterceptor"},{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HTTP_INTERCEPTORS","line":124,"character":14},"useExisting":{"__symbolic":"reference","name":"ɵTransferHttpCacheInterceptor"},"multi":true}]}]}],"members":{}},"StateTransferInitializerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":24,"character":14},"multi":true,"useFactory":{"__symbolic":"reference","name":"ɵnguniversal_modules_common_common_a"},"deps":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":24,"character":88}]}]}]}],"members":{}},"ɵTransferHttpCacheInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":43,"character":1}}],"members":{"invalidateCacheEntry":[{"__symbolic":"method"}],"makeCacheKey":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":60,"character":22},{"__symbolic":"reference","module":"@angular/platform-browser","name":"TransferState","line":60,"character":61}]}],"intercept":[{"__symbolic":"method"}]}}},"origins":{"ɵnguniversal_modules_common_common_a":"./src/state-transfer-initializer/module","TransferHttpCacheModule":"./src/transfer_http","StateTransferInitializerModule":"./src/state-transfer-initializer/module","ɵTransferHttpCacheInterceptor":"./src/transfer_http"},"importAs":"@nguniversal/common"}
{"__symbolic":"module","version":4,"metadata":{"ɵnguniversal_modules_common_common_a":{"__symbolic":"function","parameters":["doc"],"value":{"__symbolic":"error","message":"Lambda not supported","line":12,"character":9,"module":"./src/state-transfer-initializer/module"}},"TransferHttpCacheModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":120,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserTransferStateModule","line":121,"character":12}],"providers":[{"__symbolic":"reference","name":"ɵTransferHttpCacheInterceptor"},{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HTTP_INTERCEPTORS","line":124,"character":14},"useExisting":{"__symbolic":"reference","name":"ɵTransferHttpCacheInterceptor"},"multi":true}]}]}],"members":{}},"StateTransferInitializerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":26,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":28,"character":14},"multi":true,"useFactory":{"__symbolic":"reference","name":"ɵnguniversal_modules_common_common_a"},"deps":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":28,"character":88}]}]}]}],"members":{}},"ɵTransferHttpCacheInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":43,"character":1}}],"members":{"invalidateCacheEntry":[{"__symbolic":"method"}],"makeCacheKey":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ApplicationRef","line":60,"character":22},{"__symbolic":"reference","module":"@angular/platform-browser","name":"TransferState","line":60,"character":61}]}],"intercept":[{"__symbolic":"method"}]}}},"origins":{"ɵnguniversal_modules_common_common_a":"./src/state-transfer-initializer/module","TransferHttpCacheModule":"./src/transfer_http","StateTransferInitializerModule":"./src/state-transfer-initializer/module","ɵTransferHttpCacheInterceptor":"./src/transfer_http"},"importAs":"@nguniversal/common"}

@@ -24,3 +24,3 @@ import { Compiler, Type, NgModuleFactory, StaticProvider } from '@angular/core';

/** Retrieve the document from the cache or the filesystem */
private getDocument(filePath);
private getDocument;
}

@@ -6,3 +6,2 @@ /**

export { domContentLoadedFactory as ɵnguniversal_modules_common_common_a } from './src/state-transfer-initializer/module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL2NvbW1vbl9wdWJsaWNfaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQztBQUV4QixPQUFPLEVBQUMsdUJBQXVCLElBQUksb0NBQW9DLEVBQUMsTUFBTSx5Q0FBeUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG5cbmV4cG9ydCB7ZG9tQ29udGVudExvYWRlZEZhY3RvcnkgYXMgybVuZ3VuaXZlcnNhbF9tb2R1bGVzX2NvbW1vbl9jb21tb25fYX0gZnJvbSAnLi9zcmMvc3RhdGUtdHJhbnNmZXItaW5pdGlhbGl6ZXIvbW9kdWxlJzsiXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8iLCJzb3VyY2VzIjpbIm1vZHVsZXMvY29tbW9uL2NvbW1vbl9wdWJsaWNfaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQztBQUV4QixPQUFPLEVBQUMsdUJBQXVCLElBQUksb0NBQW9DLEVBQUMsTUFBTSx5Q0FBeUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG5cbmV4cG9ydCB7ZG9tQ29udGVudExvYWRlZEZhY3RvcnkgYXMgybVuZ3VuaXZlcnNhbF9tb2R1bGVzX2NvbW1vbl9jb21tb25fYX0gZnJvbSAnLi9zcmMvc3RhdGUtdHJhbnNmZXItaW5pdGlhbGl6ZXIvbW9kdWxlJzsiXX0=

@@ -5,3 +5,2 @@ /**

export * from './index';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5naW5lX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL2VuZ2luZS9lbmdpbmVfcHVibGljX2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5naW5lX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8iLCJzb3VyY2VzIjpbIm1vZHVsZXMvY29tbW9uL2VuZ2luZS9lbmdpbmVfcHVibGljX2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -13,3 +13,2 @@ /**

export { ɵFileLoader, ɵCommonEngine } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2NvbW1vbi9lbmdpbmUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFPQSwyQ0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vIiwic291cmNlcyI6WyJtb2R1bGVzL2NvbW1vbi9lbmdpbmUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFPQSwyQ0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -13,3 +13,2 @@ /**

export { FileLoader as ɵFileLoader, CommonEngine as ɵCommonEngine } from './src/index';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJma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M5QixNQUFNLGFBQWEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5leHBvcnQgeyBGaWxlTG9hZGVyIGFzIMm1RmlsZUxvYWRlciwgQ29tbW9uRW5naW5lIGFzIMm1Q29tbW9uRW5naW5lLFxuICBSZW5kZXJPcHRpb25zIGFzIMm1UmVuZGVyT3B0aW9ucyB9IGZyb20gJy4vc3JjL2luZGV4JztcbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -13,3 +13,2 @@ /**

export { ɵFileLoader, ɵCommonEngine } from './private_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL2VuZ2luZS9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBT0EsMkNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5leHBvcnQgKiBmcm9tICcuL3ByaXZhdGVfYXBpJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8iLCJzb3VyY2VzIjpbIm1vZHVsZXMvY29tbW9uL2VuZ2luZS9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBT0EsMkNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5leHBvcnQgKiBmcm9tICcuL3ByaXZhdGVfYXBpJztcbiJdfQ==

@@ -1,13 +0,13 @@

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import * as tslib_1 from "tslib";
/**
* @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
*/
import { ResourceLoader } from '@angular/compiler';

@@ -39,3 +39,4 @@ import { NgModuleFactory, CompilerFactory } from '@angular/core';

getCompiler() {
const /** @type {?} */ compilerFactory = platformDynamicServer().injector.get(CompilerFactory);
/** @type {?} */
const compilerFactory = platformDynamicServer().injector.get(CompilerFactory);
return compilerFactory.createCompiler([

@@ -52,6 +53,8 @@ { providers: [{ provide: ResourceLoader, useClass: FileLoader, deps: [] }] }

render(opts) {
return __awaiter(this, void 0, void 0, function* () {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
// if opts.document dosen't exist then opts.documentFilePath must
const /** @type {?} */ doc = opts.document || (yield this.getDocument(/** @type {?} */ (((opts)).documentFilePath)));
const /** @type {?} */ extraProviders = [
/** @type {?} */
const doc = opts.document || (yield this.getDocument((/** @type {?} */ ((/** @type {?} */ (opts)).documentFilePath))));
/** @type {?} */
const extraProviders = [
...(opts.providers || []),

@@ -67,3 +70,4 @@ ...(this.providers || []),

];
const /** @type {?} */ factory = yield this.getFactory();
/** @type {?} */
const factory = yield this.getFactory();
return renderModuleFactory(factory, { extraProviders });

@@ -78,3 +82,4 @@ });

// If module has been compiled AoT
const /** @type {?} */ moduleOrFactory = this.moduleOrFactory;
/** @type {?} */
const moduleOrFactory = this.moduleOrFactory;
if (moduleOrFactory instanceof NgModuleFactory) {

@@ -85,3 +90,4 @@ return Promise.resolve(moduleOrFactory);

// we're in JIT mode
let /** @type {?} */ moduleFactory = this.factoryCacheMap.get(moduleOrFactory);
/** @type {?} */
let moduleFactory = this.factoryCacheMap.get(moduleOrFactory);
// If module factory is cached

@@ -101,2 +107,3 @@ if (moduleFactory) {

* Retrieve the document from the cache or the filesystem
* @private
* @param {?} filePath

@@ -106,3 +113,4 @@ * @return {?}

getDocument(filePath) {
const /** @type {?} */ doc = this.templateCache[filePath] = this.templateCache[filePath] ||
/** @type {?} */
const doc = this.templateCache[filePath] = this.templateCache[filePath] ||
fs.readFileSync(filePath).toString();

@@ -113,13 +121,24 @@ // As promise so we can change the API later without breaking

}
function CommonEngine_tsickle_Closure_declarations() {
/** @type {?} */
if (false) {
/**
* @type {?}
* @private
*/
CommonEngine.prototype.factoryCacheMap;
/** @type {?} */
/**
* @type {?}
* @private
*/
CommonEngine.prototype.templateCache;
/** @type {?} */
/**
* @type {?}
* @private
*/
CommonEngine.prototype.moduleOrFactory;
/** @type {?} */
/**
* @type {?}
* @private
*/
CommonEngine.prototype.providers;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5naW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9jb21tb24vZW5naW5lL3NyYy9lbmdpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBT0EsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQ2pELE9BQU8sRUFBaUIsZUFBZSxFQUFFLGVBQWUsRUFBaUIsTUFBTSxlQUFlLENBQUM7QUFDL0YsT0FBTyxFQUFDLGNBQWMsRUFBRSxtQkFBbUIsRUFBRSxxQkFBcUIsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBQ3BHLE9BQU8sS0FBSyxFQUFFLE1BQU0sSUFBSSxDQUFDO0FBRXpCLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7Ozs7OztBQVF6QyxNQUFNOzs7OztJQWFKLFlBQW9CLGVBQStDLEVBQy9DLFlBQThCLEVBQUU7UUFEaEMsb0JBQWUsR0FBZixlQUFlLENBQWdDO1FBQy9DL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gY2FjaGUgaXRcbiAgICAgIHJldHVybiB0aGlzLmdldENvbXBpbGVyKCkuY29tcGlsZU1vZHVsZUFzeW5jKG1vZHVsZU9yRmFjdG9yeSlcbiAgICAgICAgLnRoZW4oKGZhY3RvcnkpID0+IHtcbiAgICAgICAgICB0aGlzLmZhY3RvcnlDYWNoZU1hcC5zZXQobW9kdWxlT3JGYWN0b3J5LCBmYWN0b3J5KTtcbiAgICAgICAgICByZXR1cm4gZmFjdG9yeTtcbiAgICAgICAgfSk7XG4gICAgfVxuICB9XG5cbiAgLyoqIFJldHJpZXZlIHRoZSBkb2N1bWVudCBmcm9tIHRoZSBjYWNoZSBvciB0aGUgZmlsZXN5c3RlbSAqL1xuICBwcml2YXRlIGdldERvY3VtZW50KGZpbGVQYXRoOiBzdHJpbmcpOiBQcm9taXNlPHN0cmluZz4ge1xuICAgIGNvbnN0IGRvYyA9IHRoaXMudGVtcGxhdGVDYWNoZVtmaWxlUGF0aF0gPSB0aGlzLnRlbXBsYXRlQ2FjaGVbZmlsZVBhdGhdIHx8XG4gICAgZnMucmVhZEZpbGVTeW5jKGZpbGVQYXRoKS50b1N0cmluZygpO1xuXG4gICAgLy8gQXMgIHByb21pc2Ugc28gd2UgY2FuIGNoYW5nZSB0aGUgQVBJIGxhdGVyIHdpdGhvdXQgYnJlYWtpbmdcbiAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKGRvYyk7XG4gIH1cbn1cbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
import * as fs from 'fs';

@@ -25,3 +32,2 @@ /**

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1sb2FkZXIuanMiLCJzb3VyY2VSb290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zb2x2ZShidWZmZXIudG9TdHJpbmcoKSk7XG4gICAgICB9KTtcbiAgICB9KTtcbiAgfVxufVxuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -12,5 +12,5 @@ /**

*/
export {} from './interfaces';
export { FileLoader } from './file-loader';
export { CommonEngine } from './engine';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2NvbW1vbi9lbmdpbmUvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBUUEsMkJBQWMsZUFBZSxDQUFDO0FBQzlCLDZCQUFjLFVBQVUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vZmlsZS1sb2FkZXInO1xuZXhwb3J0ICogZnJvbSAnLi9lbmdpbmUnO1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vIiwic291cmNlcyI6WyJtb2R1bGVzL2NvbW1vbi9lbmdpbmUvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBT0EsZUFBYyxjQUFjLENBQUM7QUFDN0IsMkJBQWMsZUFBZSxDQUFDO0FBQzlCLDZCQUFjLFVBQVUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzJztcbmV4cG9ydCAqIGZyb20gJy4vZmlsZS1sb2FkZXInO1xuZXhwb3J0ICogZnJvbSAnLi9lbmdpbmUnO1xuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -10,3 +10,3 @@ /**

export function RenderOptions() { }
function RenderOptions_tsickle_Closure_declarations() {
if (false) {
/** @type {?} */

@@ -23,3 +23,2 @@ RenderOptions.prototype.bootstrap;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL2VuZ2luZS9zcmMvaW50ZXJmYWNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiLyoq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NlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cbmltcG9ydCB7TmdNb2R1bGVGYWN0b3J5LCBTdGF0aWNQcm92aWRlciwgVHlwZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbi8qKiBUaGVzZSBhcmUgdGhlIGFsbG93ZWQgb3B0aW9ucyBmb3IgdGhlIHJlbmRlciAqL1xuZXhwb3J0IGludGVyZmFjZSBSZW5kZXJPcHRpb25zIHtcbiAgYm9vdHN0cmFwOiBUeXBlPHt9PiB8IE5nTW9kdWxlRmFjdG9yeTx7fT47XG4gIHByb3ZpZGVycz86IFN0YXRpY1Byb3ZpZGVyW107XG4gIHVybD86IHN0cmluZztcbiAgZG9jdW1lbnQ/OiBzdHJpbmc7XG4gIGRvY3VtZW50RmlsZVBhdGg/OiBzdHJpbmc7XG59XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -13,3 +13,2 @@ /**

export { TransferHttpCacheModule, StateTransferInitializerModule, ɵTransferHttpCacheInterceptor } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2NvbW1vbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQU9BLHVHQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi4vLi4vIiwic291cmNlcyI6WyJtb2R1bGVzL2NvbW1vbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQU9BLHVHQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
export { TransferHttpCacheInterceptor as ɵTransferHttpCacheInterceptor } from './src/transfer_http';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9hcGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2NvbW1vbi9wcml2YXRlX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBT0EsT0FBTyxFQUFFLDRCQUE0QixJQUFJLDZCQUE2QixFQUFFLE1BQU0scUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cbmV4cG9ydCB7IFRyYW5zZmVySHR0cENhY2hlSW50ZXJjZXB0b3IgYXMgybVUcmFuc2Zlckh0dHBDYWNoZUludGVyY2VwdG9yIH0gZnJvbSAnLi9zcmMvdHJhbnNmZXJfaHR0cCc7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9hcGkuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vIiwic291cmNlcyI6WyJtb2R1bGVzL2NvbW1vbi9wcml2YXRlX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQU9BLE9BQU8sRUFBRSw0QkFBNEIsSUFBSSw2QkFBNkIsRUFBRSxNQUFNLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5leHBvcnQgeyBUcmFuc2Zlckh0dHBDYWNoZUludGVyY2VwdG9yIGFzIMm1VHJhbnNmZXJIdHRwQ2FjaGVJbnRlcmNlcHRvciB9IGZyb20gJy4vc3JjL3RyYW5zZmVyX2h0dHAnO1xuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
export { TransferHttpCacheModule } from './src/transfer_http';
export { StateTransferInitializerModule } from './src/state-transfer-initializer/module';
export { ɵTransferHttpCacheInterceptor } from './private_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQU9BLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzlELE9BQU8sRUFBRSw4QkFBOEIsRUFBRSxNQUFNLHlDQUF5QyxDQUFDO0FBQ3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IFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cbmV4cG9ydCB7IFRyYW5zZmVySHR0cENhY2hlTW9kdWxlIH0gZnJvbSAnLi9zcmMvdHJhbnNmZXJfaHR0cCc7XG5leHBvcnQgeyBTdGF0ZVRyYW5zZmVySW5pdGlhbGl6ZXJNb2R1bGUgfSBmcm9tICcuL3NyYy9zdGF0ZS10cmFuc2Zlci1pbml0aWFsaXplci9tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9wcml2YXRlX2FwaSc7XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -20,7 +20,13 @@ /**

return () => new Promise((resolve, _reject) => {
const /** @type {?} */ contentLoaded = () => {
/** @type {?} */
const contentLoaded = () => {
doc.removeEventListener('DOMContentLoaded', contentLoaded);
resolve();
};
doc.addEventListener('DOMContentLoaded', contentLoaded);
if (doc.readyState === 'complete' || doc.readyState === 'interactive') {
resolve();
}
else {
doc.addEventListener('DOMContentLoaded', contentLoaded);
}
});

@@ -37,3 +43,2 @@ }

];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9jb21tb24vc3JjL3N0YXRlLXRyYW5zZmVyLWluaXRpYWxpemVyL21vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQVFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsZ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ZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuaW1wb3J0IHsgTmdNb2R1bGUsIEFQUF9JTklUSUFMSVpFUiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgRE9DVU1FTlQgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5leHBvcnQgZnVuY3Rpb24gZG9tQ29udGVudExvYWRlZEZhY3RvcnkoZG9jOiBEb2N1bWVudCkge1xuICByZXR1cm4gKCkgPT4gbmV3IFByb21pc2UgKChyZXNvbHZlLCBfcmVqZWN0KSA9PiB7XG4gICAgY29uc3QgY29udGVudExvYWRlZCA9ICgpID0+IHtcbiAgICAgIGRvYy5yZW1vdmVFdmVudExpc3RlbmVyKCdET01Db250ZW50TG9hZGVkJywgY29udGVudExvYWRlZCk7XG4gICAgICByZXNvbHZlKCk7XG4gICAgfTtcbiAgICBpZiAoZG9jLnJlYWR5U3RhdGUgPT09ICdjb21wbGV0ZScgfHwgZG9jLnJlYWR5U3RhdGUgPT09ICdpbnRlcmFjdGl2ZScpIHtcbiAgICAgIHJlc29sdmUoKTtcbiAgICB9IGVsc2Uge1xuICAgICAgZG9jLmFkZEV2ZW50TGlzdGVuZXIoJ0RPTUNvbnRlbnRMb2FkZWQnLCBjb250ZW50TG9hZGVkKTtcbiAgICB9XG4gIH0pO1xufVxuXG5cbkBOZ01vZHVsZSh7XG4gIHByb3ZpZGVyczogW1xuICAgIHtwcm92aWRlOiBBUFBfSU5JVElBTElaRVIsIG11bHRpOiB0cnVlLCB1c2VGYWN0b3J5OiBkb21Db250ZW50TG9hZGVkRmFjdG9yeSwgZGVwczogW0RPQ1VNRU5UXX0sXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgU3RhdGVUcmFuc2ZlckluaXRpYWxpemVyTW9kdWxlIHt9XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
import { HTTP_INTERCEPTORS, HttpHeaders, HttpResponse } from '@angular/common/http';

@@ -14,3 +21,3 @@ import { ApplicationRef, Injectable, NgModule } from '@angular/core';

export function TransferHttpResponse() { }
function TransferHttpResponse_tsickle_Closure_declarations() {
if (false) {
/** @type {?|undefined} */

@@ -32,5 +39,6 @@ TransferHttpResponse.prototype.body;

function getHeadersMap(headers) {
const /** @type {?} */ headersMap = {};
for (const /** @type {?} */ key of headers.keys()) {
headersMap[key] = /** @type {?} */ ((headers.getAll(key)));
/** @type {?} */
const headersMap = {};
for (const key of headers.keys()) {
headersMap[key] = (/** @type {?} */ (headers.getAll(key)));
}

@@ -54,2 +62,3 @@ return headersMap;

/**
* @private
* @param {?} url

@@ -63,2 +72,3 @@ * @return {?}

/**
* @private
* @param {?} method

@@ -71,4 +81,6 @@ * @param {?} url

// make the params encoded same as a url so it's easy to identify
const /** @type {?} */ encodedParams = params.keys().sort().map(k => `${k}=${params.get(k)}`).join('&');
const /** @type {?} */ key = (method === 'GET' ? 'G.' : 'H.') + url + '?' + encodedParams;
/** @type {?} */
const encodedParams = params.keys().sort().map(k => `${k}=${params.get(k)}`).join('&');
/** @type {?} */
const key = (method === 'GET' ? 'G.' : 'H.') + url + '?' + encodedParams;
return makeStateKey(key);

@@ -91,6 +103,8 @@ }

}
const /** @type {?} */ storeKey = this.makeCacheKey(req.method, req.url, req.params);
/** @type {?} */
const storeKey = this.makeCacheKey(req.method, req.url, req.params);
if (this.transferState.hasKey(storeKey)) {
// Request found in cache. Respond using it.
const /** @type {?} */ response = this.transferState.get(storeKey, /** @type {?} */ ({}));
/** @type {?} */
const response = this.transferState.get(storeKey, (/** @type {?} */ ({})));
return observableOf(new HttpResponse({

@@ -106,3 +120,4 @@ body: response.body,

// Request not found in cache. Make the request and cache it.
const /** @type {?} */ httpEvent = next.handle(req);
/** @type {?} */
const httpEvent = next.handle(req);
return httpEvent

@@ -116,3 +131,3 @@ .pipe(tap((event) => {

statusText: event.statusText,
url: /** @type {?} */ ((event.url)),
url: (/** @type {?} */ (event.url)),
});

@@ -132,6 +147,12 @@ }

];
function TransferHttpCacheInterceptor_tsickle_Closure_declarations() {
/** @type {?} */
if (false) {
/**
* @type {?}
* @private
*/
TransferHttpCacheInterceptor.prototype.isCacheActive;
/** @type {?} */
/**
* @type {?}
* @private
*/
TransferHttpCacheInterceptor.prototype.transferState;

@@ -154,3 +175,2 @@ }

];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXJfaHR0cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL3NyYy90cmFuc2Zlcl9odHRwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFPQSxPQUFPLEVBQ0wsaUJBQWlCLEVBR2pCLFdBQVcsRUFHWCxZQUFZLEVBRWIsTUFBTSxzQkFBc0IsQ0FBQztBQUM5QixPQUFPLEVBQUMsY0FBYyxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDbkUsT0FBTyxFQUNMLDBCQUEwQixFQUMxQixhQUFhLEVBQ2IsWUFBWSxFQUViLE1BQU0sMkJBQTJCLENBQUM7QUFDbkMsT0FBTyxFQUFhLEVBQUUsSUFBSSxZQUFZLEVBQUMsTUFBTSxNQUFNLENBQUM7QUFDcEQsT0FBTyxFQUFDLEdBQUcsRUFBRSxJQUFJLEVBQUUsTUFBTSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQVVqRCx1QkFBdUIsT0FBb0I7SUFDekMsdUJBQU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dHRwUmVzcG9uc2UpO1xuICAgICAgcmV0dXJuIG9ic2VydmFibGVPZihuZXcgSHR0cFJlc3BvbnNlPGFueT4oe1xuICAgICAgICBib2R5OiByZXNwb25zZS5ib2R5LFxuICAgICAgICBoZWFkZXJzOiBuZXcgSHR0cEhlYWRlcnMocmVzcG9uc2UuaGVhZGVycyksXG4gICAgICAgIHN0YXR1czogcmVzcG9uc2Uuc3RhdHVzLFxuICAgICAgICBzdGF0dXNUZXh0OiByZXNwb25zZS5zdGF0dXNUZXh0LFxuICAgICAgICB1cmw6IHJlc3BvbnNlLnVybCxcbiAgICAgIH0pKTtcbiAgICB9IGVsc2Uge1xuICAgICAgLy8gUmVxdWVzdCBub3QgZm91bmQgaW4gY2FjaGUuIE1ha2UgdGhlIHJlcXVlc3QgYW5kIGNhY2hlIGl0LlxuICAgICAgY29uc3QgaHR0cEV2ZW50ID0gbmV4dC5oYW5kbGUocmVxKTtcbiAgICAgIHJldHVybiBodHRwRXZlbnRcbiAgICAgICAgLnBpcGUoXG4gICAgICAgICAgdGFwKChldmVudDogSHR0cEV2ZW50PGFueT4pID0+IHtcbiAgICAgICAgICAgIGlmIChldmVudCBpbnN0YW5jZW9mIEh0dHBSZXNwb25zZSkge1xuICAgICAgICAgICAgICB0aGlzLnRyYW5zZmVyU3RhdGUuc2V0KHN0b3JlS2V5LCB7XG4gICAgICAgICAgICAgICAgYm9keTogZXZlbnQuYm9keSxcbiAgICAgICAgICAgICAgICBoZWFkZXJzOiBnZXRIZWFkZXJzTWFwKGV2ZW50LmhlYWRlcnMpLFxuICAgICAgICAgICAgICAgIHN0YXR1czogZXZlbnQuc3RhdHVzLFxuICAgICAgICAgICAgICAgIHN0YXR1c1RleHQ6IGV2ZW50LnN0YXR1c1RleHQsXG4gICAgICAgICAgICAgICAgdXJsOiBldmVudC51cmwhLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KVxuICAgICAgICApO1xuICAgIH1cbiAgfV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V2ZW50LmJvZHksXG4gICAgICAgICAgICAgICAgaGVhZGVyczogZ2V0SGVhZGVyc01hcChldmVudC5oZWFkZXJzKSxcbiAgICAgICAgICAgICAgICBzdGF0dXM6IGV2ZW50LnN0YXR1cyxcbiAgICAgICAgICAgICAgICBzdGF0dXNUZXh0OiBldmVudC5zdGF0dXNUZXh0LFxuICAgICAgICAgICAgICAgIHVybDogZXZlbnQudXJsISxcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSlcbiAgICAgICAgKTtcbiAgICB9XG4gIH1cbn1cblxuLyoqXG4gKiBBbiBOZ01vZHVsZSB1c2VkIGluIGNvbmp1bmN0aW9uIHdpdGggYFNlcnZlclRyYW5zZmVySHR0cENhY2hlTW9kdWxlYCB0byB0cmFuc2ZlciBjYWNoZWQgSFRUUFxuICogY2FsbHMgZnJvbSB0aGUgc2VydmVyIHRvIHRoZSBjbGllbnQgYXBwbGljYXRpb24uXG4gKi9cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtCcm93c2VyVHJhbnNmZXJTdGF0ZU1vZHVsZV0sXG4gIHByb3ZpZGVyczogW1xuICAgIFRyYW5zZmVySHR0cENhY2hlSW50ZXJjZXB0b3IsXG4gICAge3Byb3ZpZGU6IEhUVFBfSU5URVJDRVBUT1JTLCB1c2VFeGlzdGluZzogVHJhbnNmZXJIdHRwQ2FjaGVJbnRlcmNlcHRvciwgbXVsdGk6IHRydWV9LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBUcmFuc2Zlckh0dHBDYWNoZU1vZHVsZSB7fVxuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -13,3 +13,2 @@ /**

export { ɵORIGIN_URL, ɵREQUEST, ɵRESPONSE } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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NlbnNlXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
export { ORIGIN_URL as ɵORIGIN_URL, REQUEST as ɵREQUEST, RESPONSE as ɵRESPONSE } from './src/tokens';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9hcGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2NvbW1vbi90b2tlbnMvcHJpdmF0ZV9hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQU9BLE9BQU8sRUFBQyxVQUFVLElBQUksV0FBVyxFQUFFLE9BQU8sSUFBSSxRQUFRLEVBQUUsUUFBUSxJQUFJLFNBQVMsRUFBQyxNQUFNLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuZXhwb3J0IHtPUklHSU5fVVJMIGFzIMm1T1JJR0lOX1VSTCwgUkVRVUVTVCBhcyDJtVJFUVVFU1QsIFJFU1BPTlNFIGFzIMm1UkVTUE9OU0V9IGZyb20gJy4vc3JjL3Rva2Vucyc7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9hcGkuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vIiwic291cmNlcyI6WyJtb2R1bGVzL2NvbW1vbi90b2tlbnMvcHJpdmF0ZV9hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFPQSxPQUFPLEVBQUMsVUFBVSxJQUFJLFdBQVcsRUFBRSxPQUFPLElBQUksUUFBUSxFQUFFLFFBQVEsSUFBSSxTQUFTLEVBQUMsTUFBTSxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cbmV4cG9ydCB7T1JJR0lOX1VSTCBhcyDJtU9SSUdJTl9VUkwsIFJFUVVFU1QgYXMgybVSRVFVRVNULCBSRVNQT05TRSBhcyDJtVJFU1BPTlNFfSBmcm9tICcuL3NyYy90b2tlbnMnO1xuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -13,3 +13,2 @@ /**

export { ɵORIGIN_URL, ɵREQUEST, ɵRESPONSE } from './private_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiL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VxuICovXG5leHBvcnQgKiBmcm9tICcuL3ByaXZhdGVfYXBpJztcbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
import { InjectionToken } from '@angular/core';
export const /** @type {?} */ ORIGIN_URL = new InjectionToken('ORIGIN_URL');
export const /** @type {?} */ REQUEST = new InjectionToken('REQUEST');
export const /** @type {?} */ RESPONSE = new InjectionToken('RESPONSE');
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9jb21tb24vdG9rZW5zL3NyYy90b2tlbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQU9BLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFL0MsTUFBTSxDQUFDLHVCQUFNLFVBQVUsR0FBRyxJQUFJLGNBQWMsQ0FBTSxZQUFZLENBQUMsQ0FBQztBQUNoRSxNQUFNLENBQUMsdUJBQU0sT0FBTyxHQUFHLElBQUksY0FBYyxDQUFNLFNBQVMsQ0FBQyxDQUFDO0FBQzFELE1BQU0sQ0FBQyx1QkFBTSxRQUFRLEdBQUcsSUFBSSxjQUFjLENBQU0sVUFBVSxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cbmltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCBjb25zdCBPUklHSU5fVVJMID0gbmV3IEluamVjdGlvblRva2VuPGFueT4oJ09SSUdJTl9VUkwnKTtcbmV4cG9ydCBjb25zdCBSRVFVRVNUID0gbmV3IEluamVjdGlvblRva2VuPGFueT4oJ1JFUVVFU1QnKTtcbmV4cG9ydCBjb25zdCBSRVNQT05TRSA9IG5ldyBJbmplY3Rpb25Ub2tlbjxhbnk+KCdSRVNQT05TRScpO1xuIl19
/** @type {?} */
export const ORIGIN_URL = new InjectionToken('ORIGIN_URL');
/** @type {?} */
export const REQUEST = new InjectionToken('REQUEST');
/** @type {?} */
export const RESPONSE = new InjectionToken('RESPONSE');
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5zLmpzIiwic291cmNlUm9vdCI6Ii4uLy4uLy4uLyIsInNvdXJjZXMiOlsibW9kdWxlcy9jb21tb24vdG9rZW5zL3NyYy90b2tlbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFPQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUUvQyxNQUFNLE9BQU8sVUFBVSxHQUFHLElBQUksY0FBYyxDQUFNLFlBQVksQ0FBQzs7QUFDL0QsTUFBTSxPQUFPLE9BQU8sR0FBRyxJQUFJLGNBQWMsQ0FBTSxTQUFTLENBQUM7O0FBQ3pELE1BQU0sT0FBTyxRQUFRLEdBQUcsSUFBSSxjQUFjLENBQU0sVUFBVSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5pbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgY29uc3QgT1JJR0lOX1VSTCA9IG5ldyBJbmplY3Rpb25Ub2tlbjxhbnk+KCdPUklHSU5fVVJMJyk7XG5leHBvcnQgY29uc3QgUkVRVUVTVCA9IG5ldyBJbmplY3Rpb25Ub2tlbjxhbnk+KCdSRVFVRVNUJyk7XG5leHBvcnQgY29uc3QgUkVTUE9OU0UgPSBuZXcgSW5qZWN0aW9uVG9rZW48YW55PignUkVTUE9OU0UnKTtcbiJdfQ==

@@ -5,3 +5,2 @@ /**

export * from './index';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5zX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL3Rva2Vucy90b2tlbnNfcHVibGljX2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5zX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8iLCJzb3VyY2VzIjpbIm1vZHVsZXMvY29tbW9uL3Rva2Vucy90b2tlbnNfcHVibGljX2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19

@@ -7,2 +7,2 @@ /**

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL2NvbW1vbl9wdWJsaWNfaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQztBQUV4QixPQUFPLEVBQUMsdUJBQXVCLElBQUksb0NBQW9DLEVBQUMsTUFBTSx5Q0FBeUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG5cbmV4cG9ydCB7ZG9tQ29udGVudExvYWRlZEZhY3RvcnkgYXMgybVuZ3VuaXZlcnNhbF9tb2R1bGVzX2NvbW1vbl9jb21tb25fYX0gZnJvbSAnLi9zcmMvc3RhdGUtdHJhbnNmZXItaW5pdGlhbGl6ZXIvbW9kdWxlJzsiXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8iLCJzb3VyY2VzIjpbIm1vZHVsZXMvY29tbW9uL2NvbW1vbl9wdWJsaWNfaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQztBQUV4QixPQUFPLEVBQUMsdUJBQXVCLElBQUksb0NBQW9DLEVBQUMsTUFBTSx5Q0FBeUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG5cbmV4cG9ydCB7ZG9tQ29udGVudExvYWRlZEZhY3RvcnkgYXMgybVuZ3VuaXZlcnNhbF9tb2R1bGVzX2NvbW1vbl9jb21tb25fYX0gZnJvbSAnLi9zcmMvc3RhdGUtdHJhbnNmZXItaW5pdGlhbGl6ZXIvbW9kdWxlJzsiXX0=

@@ -6,2 +6,2 @@ /**

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5naW5lX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL2VuZ2luZS9lbmdpbmVfcHVibGljX2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5naW5lX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8iLCJzb3VyY2VzIjpbIm1vZHVsZXMvY29tbW9uL2VuZ2luZS9lbmdpbmVfcHVibGljX2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19

@@ -10,2 +10,2 @@ /**

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2NvbW1vbi9lbmdpbmUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBQ0gsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJ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tVJlbmRlck9wdGlvbnMgfSBmcm9tICcuL3NyYy9pbmRleCc7XG4iXX0=

@@ -10,2 +10,2 @@ /**

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL2VuZ2luZS9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUNILGNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5leHBvcnQgKiBmcm9tICcuL3ByaXZhdGVfYXBpJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8iLCJzb3VyY2VzIjpbIm1vZHVsZXMvY29tbW9uL2VuZ2luZS9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUNILGNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5leHBvcnQgKiBmcm9tICcuL3ByaXZhdGVfYXBpJztcbiJdfQ==

@@ -1,56 +0,2 @@

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
import * as tslib_1 from "tslib";
/**

@@ -93,5 +39,5 @@ * @license

CommonEngine.prototype.render = function (opts) {
return __awaiter(this, void 0, void 0, function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var doc, _a, extraProviders, factory;
return __generator(this, function (_b) {
return tslib_1.__generator(this, function (_b) {
switch (_b.label) {

@@ -107,3 +53,3 @@ case 0:

doc = _a;
extraProviders = __spread((opts.providers || []), (this.providers || []), [
extraProviders = tslib_1.__spread((opts.providers || []), (this.providers || []), [
{

@@ -159,2 +105,2 @@ provide: INITIAL_CONFIG,

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW5naW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9jb21tb24vZW5naW5lL3NyYy9lbmdpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQ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yxDQUFDLENBQUM7SUFDTCxDQUFDO0lBQ0gsaUJBQUM7QUFBRCxDQUFDLEFBWkQsSUFZQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuaW1wb3J0ICogYXMgZnMgZnJvbSAnZnMnO1xuaW1wb3J0IHsgUmVzb3VyY2VMb2FkZXIgfSBmcm9tICdAYW5ndWxhci9jb21waWxlcic7XG5cbi8qKiBSZXNvdXJjZUxvYWRlciBpbXBsZW1lbnRhdGlvbiBmb3IgbG9hZGluZyBmaWxlcyAqL1xuZXhwb3J0IGNsYXNzIEZpbGVMb2FkZXIgaW1wbGVtZW50cyBSZXNvdXJjZUxvYWRlciB7XG4gIGdldCh1cmw6IHN0cmluZyk6IFByb21pc2U8c3RyaW5nPiB7XG4gICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgIGZzLnJlYWRGaWxlKHVybCwgKGVycjogTm9kZUpTLkVycm5vRXhjZXB0aW9uLCBidWZmZXI6IEJ1ZmZlcikgPT4ge1xuICAgICAgICBpZiAoZXJyKSB7XG4gICAgICAgICAgcmV0dXJuIHJlamVjdChlcnIpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmVzb2x2ZShidWZmZXIudG9TdHJpbmcoKSk7XG4gICAgICB9KTtcbiAgICB9KTtcbiAgfVxufVxuIl19
export * from './file-loader';
export * from './engine';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJm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WVudEZpbGVQYXRoPzogc3RyaW5nO1xufVxuIl19

@@ -10,2 +10,2 @@ /**

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2NvbW1vbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi4vLi4vIiwic291cmNlcyI6WyJtb2R1bGVzL2NvbW1vbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIG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WNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cbmV4cG9ydCB7IFRyYW5zZmVySHR0cENhY2hlTW9kdWxlIH0gZnJvbSAnLi9zcmMvdHJhbnNmZXJfaHR0cCc7XG5leHBvcnQgeyBTdGF0ZVRyYW5zZmVySW5pdGlhbGl6ZXJNb2R1bGUgfSBmcm9tICcuL3NyYy9zdGF0ZS10cmFuc2Zlci1pbml0aWFsaXplci9tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9wcml2YXRlX2FwaSc7XG4iXX0=

@@ -8,2 +8,3 @@ /**

*/
import * as tslib_1 from "tslib";
import { NgModule, APP_INITIALIZER } from '@angular/core';

@@ -17,3 +18,8 @@ import { DOCUMENT } from '@angular/common';

};
doc.addEventListener('DOMContentLoaded', contentLoaded);
if (doc.readyState === 'complete' || doc.readyState === 'interactive') {
resolve();
}
else {
doc.addEventListener('DOMContentLoaded', contentLoaded);
}
}); };

@@ -24,9 +30,9 @@ }

}
StateTransferInitializerModule.decorators = [
{ type: NgModule, args: [{
providers: [
{ provide: APP_INITIALIZER, multi: true, useFactory: domContentLoadedFactory, deps: [DOCUMENT] },
]
},] }
];
StateTransferInitializerModule = tslib_1.__decorate([
NgModule({
providers: [
{ provide: APP_INITIALIZER, multi: true, useFactory: domContentLoadedFactory, deps: [DOCUMENT] },
]
})
], StateTransferInitializerModule);
return StateTransferInitializerModule;

@@ -36,2 +42,2 @@ }());

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9jb21tb24vc3JjL3N0YXRlLXRyYW5zZmVyLWluaXRpYWxpemVyL21vZHVsZS50cyJdLCJuYW1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HByb3ZpZGVyczogW1xuICAgIHtwcm92aWRlOiBBUFBfSU5JVElBTElaRVIsIG11bHRpOiB0cnVlLCB1c2VGYWN0b3J5OiBkb21Db250ZW50TG9hZGVkRmFjdG9yeSwgZGVwczogW0RPQ1VNRU5UXX0sXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgU3RhdGVUcmFuc2ZlckluaXRpYWxpemVyTW9kdWxlIHt9XG4iXX0=

@@ -1,11 +0,2 @@

var __values = (this && this.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
import * as tslib_1 from "tslib";
/**

@@ -24,6 +15,7 @@ * @license

function getHeadersMap(headers) {
var e_1, _a;
var headersMap = {};
try {
for (var _a = __values(headers.keys()), _b = _a.next(); !_b.done; _b = _a.next()) {
var key = _b.value;
for (var _b = tslib_1.__values(headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
var key = _c.value;
headersMap[key] = headers.getAll(key);

@@ -35,3 +27,3 @@ }

try {
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}

@@ -41,3 +33,2 @@ finally { if (e_1) throw e_1.error; }

return headersMap;
var e_1, _c;
}

@@ -106,10 +97,6 @@ var TransferHttpCacheInterceptor = /** @class */ (function () {

};
TransferHttpCacheInterceptor.decorators = [
{ type: Injectable }
];
/** @nocollapse */
TransferHttpCacheInterceptor.ctorParameters = function () { return [
{ type: ApplicationRef },
{ type: TransferState }
]; };
TransferHttpCacheInterceptor = tslib_1.__decorate([
Injectable(),
tslib_1.__metadata("design:paramtypes", [ApplicationRef, TransferState])
], TransferHttpCacheInterceptor);
return TransferHttpCacheInterceptor;

@@ -125,11 +112,11 @@ }());

}
TransferHttpCacheModule.decorators = [
{ type: NgModule, args: [{
imports: [BrowserTransferStateModule],
providers: [
TransferHttpCacheInterceptor,
{ provide: HTTP_INTERCEPTORS, useExisting: TransferHttpCacheInterceptor, multi: true },
],
},] }
];
TransferHttpCacheModule = tslib_1.__decorate([
NgModule({
imports: [BrowserTransferStateModule],
providers: [
TransferHttpCacheInterceptor,
{ provide: HTTP_INTERCEPTORS, useExisting: TransferHttpCacheInterceptor, multi: true },
],
})
], TransferHttpCacheModule);
return TransferHttpCacheModule;

@@ -139,2 +126,2 @@ }());

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXJfaHR0cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL3NyYy90cmFuc2Zlcl9odHRwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTs7Ozs7O0dBTUc7QUFDSCxPQUFPLEVBQ0wsaUJBQWlCLEVBR2pCLFdBQVcsRUFHWCxZQUFZLEVBRWIsTUFBTSxzQkFBc0IsQ0FBQztBQUM5QixPQUFPLEVBQUMsY0FBYyxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDbkUsT0FBTyxFQUNMLDBCQUEwQixFQUMxQixhQUFhLEVBQ2IsWUFBWSxFQUViLE1BQU0sMkJBQTJCLENBQUM7QUFDbkMsT0FBTyxFQUFhLEVBQUUsSUFBSSxZQUFZLEVBQUMsTUFBTSxNQUFNLENBQUM7QUFDcEQsT0FBTyxFQUFDLEdBQUcsRUFBRSxJQUFJLEVBQUUsTUFBTSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFVakQsdUJBQXVCLE9BQW9CO0lBQ3pDLElBQU0sVUFBVSxHQUErQixFQUFFLENBQUM7O1FBQ2xELEdBQUcsQ0FBQyxDQUFjLElBQUEsS0FBQSxTQUFBLE9BQU8sQ0FBQyxJQUFJLEVBQUUsQ0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XRlTW9kdWxlXSxcbiAgcHJvdmlkZXJzOiBbXG4gICAgVHJhbnNmZXJIdHRwQ2FjaGVJbnRlcmNlcHRvcixcbiAgICB7cHJvdmlkZTogSFRUUF9JTlRFUkNFUFRPUlMsIHVzZUV4aXN0aW5nOiBUcmFuc2Zlckh0dHBDYWNoZUludGVyY2VwdG9yLCBtdWx0aTogdHJ1ZX0sXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIFRyYW5zZmVySHR0cENhY2hlTW9kdWxlIHt9XG4iXX0=

@@ -10,2 +10,2 @@ /**

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2NvbW1vbi90b2tlbnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBQ0gsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljX2FwaSc7XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vIiwic291cmNlcyI6WyJtb2R1bGVzL2NvbW1vbi90b2tlbnMvaW5kZXgudH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gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5leHBvcnQge09SSUdJTl9VUkwgYXMgybVPUklHSU5fVVJMLCBSRVFVRVNUIGFzIMm1UkVRVUVTVCwgUkVTUE9OU0UgYXMgybVSRVNQT05TRX0gZnJvbSAnLi9zcmMvdG9rZW5zJztcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9hcGkuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vIiwic291cmNlcyI6WyJtb2R1bGVzL2NvbW1vbi90b2tlbnMvcHJpdmF0ZV9hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBQ0gsT0FBTyxFQUFDLFVBQVUsSUFBSSxXQUFXLEVBQUUsT0FBTyxJQUFJLFFBQVEsRUFBRSxRQUFRLElBQUksU0FBUyxFQUFDLE1BQU0sY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5leHBvcnQge09SSUdJTl9VUkwgYXMgybVPUklHSU5fVVJMLCBSRVFVRVNUIGFzIMm1UkVRVUVTVCwgUkVTUE9OU0UgYXMgybVSRVNQT05TRX0gZnJvbSAnLi9zcmMvdG9rZW5zJztcbiJdfQ==

@@ -10,2 +10,2 @@ /**

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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pY2Vuc2VcbiAqL1xuaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IGNvbnN0IE9SSUdJTl9VUkwgPSBuZXcgSW5qZWN0aW9uVG9rZW48YW55PignT1JJR0lOX1VSTCcpO1xuZXhwb3J0IGNvbnN0IFJFUVVFU1QgPSBuZXcgSW5qZWN0aW9uVG9rZW48YW55PignUkVRVUVTVCcpO1xuZXhwb3J0IGNvbnN0IFJFU1BPTlNFID0gbmV3IEluamVjdGlvblRva2VuPGFueT4oJ1JFU1BPTlNFJyk7XG4iXX0=

@@ -6,2 +6,2 @@ /**

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5zX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvY29tbW9uL3Rva2Vucy90b2tlbnNfcHVibGljX2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW5zX3B1YmxpY19pbmRleC5qcyIsInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8iLCJzb3VyY2VzIjpbIm1vZHVsZXMvY29tbW9uL3Rva2Vucy90b2tlbnNfcHVibGljX2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
import { HTTP_INTERCEPTORS, HttpHeaders, HttpResponse } from '@angular/common/http';
import { APP_INITIALIZER, ApplicationRef, Injectable, NgModule } from '@angular/core';
import { ApplicationRef, Injectable, NgModule, APP_INITIALIZER } from '@angular/core';
import { BrowserTransferStateModule, TransferState, makeStateKey } from '@angular/platform-browser';
import { of } from 'rxjs';
import { filter, take, tap } from 'rxjs/operators';
import { tap, take, filter } from 'rxjs/operators';
import { DOCUMENT } from '@angular/common';

@@ -10,9 +10,5 @@

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
/**
* @param {?} headers

@@ -22,5 +18,6 @@ * @return {?}

function getHeadersMap(headers) {
const /** @type {?} */ headersMap = {};
for (const /** @type {?} */ key of headers.keys()) {
headersMap[key] = /** @type {?} */ ((headers.getAll(key)));
/** @type {?} */
const headersMap = {};
for (const key of headers.keys()) {
headersMap[key] = (/** @type {?} */ (headers.getAll(key)));
}

@@ -44,2 +41,3 @@ return headersMap;

/**
* @private
* @param {?} url

@@ -53,2 +51,3 @@ * @return {?}

/**
* @private
* @param {?} method

@@ -61,4 +60,6 @@ * @param {?} url

// make the params encoded same as a url so it's easy to identify
const /** @type {?} */ encodedParams = params.keys().sort().map(k => `${k}=${params.get(k)}`).join('&');
const /** @type {?} */ key = (method === 'GET' ? 'G.' : 'H.') + url + '?' + encodedParams;
/** @type {?} */
const encodedParams = params.keys().sort().map(k => `${k}=${params.get(k)}`).join('&');
/** @type {?} */
const key = (method === 'GET' ? 'G.' : 'H.') + url + '?' + encodedParams;
return makeStateKey(key);

@@ -81,6 +82,8 @@ }

}
const /** @type {?} */ storeKey = this.makeCacheKey(req.method, req.url, req.params);
/** @type {?} */
const storeKey = this.makeCacheKey(req.method, req.url, req.params);
if (this.transferState.hasKey(storeKey)) {
// Request found in cache. Respond using it.
const /** @type {?} */ response = this.transferState.get(storeKey, /** @type {?} */ ({}));
/** @type {?} */
const response = this.transferState.get(storeKey, (/** @type {?} */ ({})));
return of(new HttpResponse({

@@ -96,3 +99,4 @@ body: response.body,

// Request not found in cache. Make the request and cache it.
const /** @type {?} */ httpEvent = next.handle(req);
/** @type {?} */
const httpEvent = next.handle(req);
return httpEvent

@@ -106,3 +110,3 @@ .pipe(tap((event) => {

statusText: event.statusText,
url: /** @type {?} */ ((event.url)),
url: (/** @type {?} */ (event.url)),
});

@@ -140,12 +144,5 @@ }

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
/**
* @param {?} doc

@@ -156,7 +153,13 @@ * @return {?}

return () => new Promise((resolve, _reject) => {
const /** @type {?} */ contentLoaded = () => {
/** @type {?} */
const contentLoaded = () => {
doc.removeEventListener('DOMContentLoaded', contentLoaded);
resolve();
};
doc.addEventListener('DOMContentLoaded', contentLoaded);
if (doc.readyState === 'complete' || doc.readyState === 'interactive') {
resolve();
}
else {
doc.addEventListener('DOMContentLoaded', contentLoaded);
}
});

@@ -176,3 +179,3 @@ }

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -182,3 +185,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -188,11 +191,4 @@

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/

@@ -199,0 +195,0 @@ /**

import { readFile, readFileSync } from 'fs';
import { __awaiter } from 'tslib';
import { ResourceLoader } from '@angular/compiler';
import { CompilerFactory, NgModuleFactory } from '@angular/core';
import { INITIAL_CONFIG, platformDynamicServer, renderModuleFactory } from '@angular/platform-server';
import { NgModuleFactory, CompilerFactory } from '@angular/core';
import { INITIAL_CONFIG, renderModuleFactory, platformDynamicServer } from '@angular/platform-server';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* ResourceLoader implementation for loading files

@@ -30,13 +36,5 @@ */

var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -64,3 +62,4 @@ /**

getCompiler() {
const /** @type {?} */ compilerFactory = platformDynamicServer().injector.get(CompilerFactory);
/** @type {?} */
const compilerFactory = platformDynamicServer().injector.get(CompilerFactory);
return compilerFactory.createCompiler([

@@ -79,4 +78,6 @@ { providers: [{ provide: ResourceLoader, useClass: FileLoader, deps: [] }] }

// if opts.document dosen't exist then opts.documentFilePath must
const /** @type {?} */ doc = opts.document || (yield this.getDocument(/** @type {?} */ (((opts)).documentFilePath)));
const /** @type {?} */ extraProviders = [
/** @type {?} */
const doc = opts.document || (yield this.getDocument((/** @type {?} */ ((/** @type {?} */ (opts)).documentFilePath))));
/** @type {?} */
const extraProviders = [
...(opts.providers || []),

@@ -92,3 +93,4 @@ ...(this.providers || []),

];
const /** @type {?} */ factory = yield this.getFactory();
/** @type {?} */
const factory = yield this.getFactory();
return renderModuleFactory(factory, { extraProviders });

@@ -103,3 +105,4 @@ });

// If module has been compiled AoT
const /** @type {?} */ moduleOrFactory = this.moduleOrFactory;
/** @type {?} */
const moduleOrFactory = this.moduleOrFactory;
if (moduleOrFactory instanceof NgModuleFactory) {

@@ -110,3 +113,4 @@ return Promise.resolve(moduleOrFactory);

// we're in JIT mode
let /** @type {?} */ moduleFactory = this.factoryCacheMap.get(moduleOrFactory);
/** @type {?} */
let moduleFactory = this.factoryCacheMap.get(moduleOrFactory);
// If module factory is cached

@@ -126,2 +130,3 @@ if (moduleFactory) {

* Retrieve the document from the cache or the filesystem
* @private
* @param {?} filePath

@@ -131,3 +136,4 @@ * @return {?}

getDocument(filePath) {
const /** @type {?} */ doc = this.templateCache[filePath] = this.templateCache[filePath] ||
/** @type {?} */
const doc = this.templateCache[filePath] = this.templateCache[filePath] ||
readFileSync(filePath).toString();

@@ -141,47 +147,19 @@ // As promise so we can change the API later without breaking

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/

@@ -188,0 +166,0 @@ /**

@@ -5,6 +5,9 @@ import { InjectionToken } from '@angular/core';

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
const ORIGIN_URL = new InjectionToken('ORIGIN_URL');
/** @type {?} */
const REQUEST = new InjectionToken('REQUEST');
/** @type {?} */
const RESPONSE = new InjectionToken('RESPONSE');

@@ -14,3 +17,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/

@@ -20,23 +23,9 @@

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @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
*/

@@ -43,0 +32,0 @@ /**

@@ -0,30 +1,15 @@

import { __decorate, __values, __metadata } from 'tslib';
import { HTTP_INTERCEPTORS, HttpHeaders, HttpResponse } from '@angular/common/http';
import { APP_INITIALIZER, ApplicationRef, Injectable, NgModule } from '@angular/core';
import { ApplicationRef, Injectable, NgModule, APP_INITIALIZER } from '@angular/core';
import { BrowserTransferStateModule, TransferState, makeStateKey } from '@angular/platform-browser';
import { of } from 'rxjs';
import { filter, take, tap } from 'rxjs/operators';
import { tap, take, filter } from 'rxjs/operators';
import { DOCUMENT } from '@angular/common';
var __values = (undefined && undefined.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
/**
* @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
*/
function getHeadersMap(headers) {
var e_1, _a;
var headersMap = {};
try {
for (var _a = __values(headers.keys()), _b = _a.next(); !_b.done; _b = _a.next()) {
var key = _b.value;
for (var _b = __values(headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
var key = _c.value;
headersMap[key] = headers.getAll(key);

@@ -36,3 +21,3 @@ }

try {
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}

@@ -42,3 +27,2 @@ finally { if (e_1) throw e_1.error; }

return headersMap;
var e_1, _c;
}

@@ -107,10 +91,6 @@ var TransferHttpCacheInterceptor = /** @class */ (function () {

};
TransferHttpCacheInterceptor.decorators = [
{ type: Injectable }
];
/** @nocollapse */
TransferHttpCacheInterceptor.ctorParameters = function () { return [
{ type: ApplicationRef },
{ type: TransferState }
]; };
TransferHttpCacheInterceptor = __decorate([
Injectable(),
__metadata("design:paramtypes", [ApplicationRef, TransferState])
], TransferHttpCacheInterceptor);
return TransferHttpCacheInterceptor;

@@ -125,11 +105,11 @@ }());

}
TransferHttpCacheModule.decorators = [
{ type: NgModule, args: [{
imports: [BrowserTransferStateModule],
providers: [
TransferHttpCacheInterceptor,
{ provide: HTTP_INTERCEPTORS, useExisting: TransferHttpCacheInterceptor, multi: true },
],
},] }
];
TransferHttpCacheModule = __decorate([
NgModule({
imports: [BrowserTransferStateModule],
providers: [
TransferHttpCacheInterceptor,
{ provide: HTTP_INTERCEPTORS, useExisting: TransferHttpCacheInterceptor, multi: true },
],
})
], TransferHttpCacheModule);
return TransferHttpCacheModule;

@@ -151,3 +131,8 @@ }());

};
doc.addEventListener('DOMContentLoaded', contentLoaded);
if (doc.readyState === 'complete' || doc.readyState === 'interactive') {
resolve();
}
else {
doc.addEventListener('DOMContentLoaded', contentLoaded);
}
}); };

@@ -158,9 +143,9 @@ }

}
StateTransferInitializerModule.decorators = [
{ type: NgModule, args: [{
providers: [
{ provide: APP_INITIALIZER, multi: true, useFactory: domContentLoadedFactory, deps: [DOCUMENT] },
]
},] }
];
StateTransferInitializerModule = __decorate([
NgModule({
providers: [
{ provide: APP_INITIALIZER, multi: true, useFactory: domContentLoadedFactory, deps: [DOCUMENT] },
]
})
], StateTransferInitializerModule);
return StateTransferInitializerModule;

@@ -167,0 +152,0 @@ }());

import { readFile, readFileSync } from 'fs';
import { __awaiter, __generator, __spread } from 'tslib';
import { ResourceLoader } from '@angular/compiler';
import { CompilerFactory, NgModuleFactory } from '@angular/core';
import { INITIAL_CONFIG, platformDynamicServer, renderModuleFactory } from '@angular/platform-server';
import { NgModuleFactory, CompilerFactory } from '@angular/core';
import { INITIAL_CONFIG, renderModuleFactory, platformDynamicServer } from '@angular/platform-server';

@@ -30,65 +31,3 @@ /**

var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var __read = (undefined && undefined.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (undefined && undefined.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
/**
* @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
*/
/**
* A common rendering engine utility. This abstracts the logic

@@ -95,0 +34,0 @@ * for handling the platformServer compiler, the module cache, and

{
"name": "@nguniversal/common",
"version": "v7.0.2",
"version": "7.1.0",
"description": "Angular Universal common utilities",

@@ -11,4 +11,4 @@ "license": "MIT",

"peerDependencies": {
"@angular/common": ">=6.0.0",
"@angular/core": ">=6.0.0"
"@angular/common": "^7.1.4",
"@angular/core": "^7.1.4"
},

@@ -40,2 +40,2 @@ "ng-update": {

"es2015": "./fesm2015/common.js"
}
}

@@ -0,3 +1,10 @@

/**
* @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
*/
export declare function domContentLoadedFactory(doc: Document): () => Promise<{}>;
export declare class StateTransferInitializerModule {
}

@@ -24,4 +24,4 @@ /**

private isCacheActive;
private invalidateCacheEntry(url);
private makeCacheKey(method, url, params);
private invalidateCacheEntry;
private makeCacheKey;
constructor(appRef: ApplicationRef, transferState: TransferState);

@@ -28,0 +28,0 @@ intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc