{"version":3,"sources":["webpack:///./node_modules/ng-inline-svg/lib/index.js","webpack:///./node_modules/ng-inline-svg/lib/inline-svg.component.js","webpack:///./node_modules/ng-inline-svg/lib/inline-svg.config.js","webpack:///./node_modules/ng-inline-svg/lib/inline-svg.directive.js","webpack:///./node_modules/ng-inline-svg/lib/inline-svg.module.js","webpack:///./node_modules/ng-inline-svg/lib/inline-svg.service.js","webpack:///./node_modules/ng-inline-svg/lib/svg-cache.service.js"],"names":[],"mappings":";;;;;;;;;;AAAa;AACb,8CAA8C,cAAc;AAC5D,6BAA6B,mBAAO,CAAC,wFAAwB;AAC7D;AACA,0BAA0B,mBAAO,CAAC,kFAAqB;AACvD;AACA,0BAA0B,mBAAO,CAAC,kFAAqB;AACvD;;;;;;;;;;;;;ACPa;AACb,8CAA8C,cAAc;AAC5D,aAAa,mBAAO,CAAC,iEAAe;AACpC,6BAA6B,mBAAO,CAAC,wFAAwB;AAC7D,2BAA2B,mBAAO,CAAC,oFAAsB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,iBAAiB,IAAI;AACrB;AACA,qDAAqD;AACrD,SAAS,+CAA+C;AACxD,SAAS,2BAA2B;AACpC,MAAM;AACN;AACA,qBAAqB,qBAAqB;AAC1C,qBAAqB,qBAAqB;AAC1C,6BAA6B,qBAAqB;AAClD,qBAAqB,qBAAqB;AAC1C;AACA;AACA,CAAC;AACD;;;;;;;;;;;;;ACxCa;AACb;AACA;AACA,UAAU,gBAAgB,sCAAsC,iBAAiB,EAAE;AACnF,yBAAyB,uDAAuD;AAChF;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,8CAA8C,cAAc;AAC5D,aAAa,mBAAO,CAAC,iEAAe;AACpC,eAAe,mBAAO,CAAC,uEAAiB;AACxC;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD;AACzD,SAAS,gCAAgC,wBAAwB,GAAG,uDAAuD,IAAI;AAC/H,SAAS,gDAAgD,wBAAwB,IAAI;AACrF,MAAM;AACN;AACA,CAAC;AACD;;;;;;;;;;;;;ACtCa;AACb,8CAA8C,cAAc;AAC5D,aAAa,mBAAO,CAAC,iEAAe;AACpC,eAAe,mBAAO,CAAC,uEAAiB;AACxC,6BAA6B,mBAAO,CAAC,wFAAwB;AAC7D,0BAA0B,mBAAO,CAAC,kFAAqB;AACvD,2BAA2B,mBAAO,CAAC,oFAAsB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE,8BAA8B,EAAE;AAClG;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA,2BAA2B,oBAAoB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,oBAAoB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,0BAA0B;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,iBAAiB,IAAI;AACrB;AACA,qDAAqD;AACrD,SAAS,2BAA2B;AACpC,SAAS,iCAAiC;AAC1C,SAAS,yCAAyC;AAClD,SAAS,6CAA6C;AACtD,SAAS,0BAA0B;AACnC,SAAS,+CAA+C;AACxD,SAAS,6BAA6B,mDAAmD,IAAI;AAC7F,MAAM;AACN;AACA,uBAAuB,qBAAqB;AAC5C,6BAA6B,qBAAqB;AAClD,qBAAqB,qBAAqB;AAC1C,6BAA6B,qBAAqB;AAClD,sBAAsB,qBAAqB;AAC3C,iCAAiC,qBAAqB;AACtD,6BAA6B,qBAAqB;AAClD,yBAAyB,qBAAqB;AAC9C,4BAA4B,qBAAqB;AACjD,yBAAyB,qBAAqB;AAC9C,2BAA2B,sBAAsB;AACjD,yBAAyB,sBAAsB;AAC/C;AACA;AACA,CAAC;AACD;;;;;;;;;;;;;AC5La;AACb,8CAA8C,cAAc;AAC5D,aAAa,mBAAO,CAAC,iEAAe;AACpC,6BAA6B,mBAAO,CAAC,wFAAwB;AAC7D,0BAA0B,mBAAO,CAAC,kFAAqB;AACvD,6BAA6B,mBAAO,CAAC,wFAAwB;AAC7D,0BAA0B,mBAAO,CAAC,kFAAqB;AACvD,2BAA2B,mBAAO,CAAC,oFAAsB;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,yBAAyB,qGAAqG;AAC9H;AACA;AACA,iBAAiB,IAAI;AACrB;AACA;AACA,CAAC;AACD;;;;;;;;;;;;;ACjCa;AACb,8CAA8C,cAAc;AAC5D,aAAa,mBAAO,CAAC,iEAAe;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,0BAA0B;AACnC;AACA,mDAAmD;AACnD,SAAS,iCAAiC;AAC1C,MAAM;AACN;AACA,CAAC;AACD;;;;;;;;;;;;;ACjCa;AACb,8CAA8C,cAAc;AAC5D,aAAa,mBAAO,CAAC,iEAAe;AACpC,aAAa,mBAAO,CAAC,0EAAsB;AAC3C,aAAa,mBAAO,CAAC,gDAAM;AAC3B,kBAAkB,mBAAO,CAAC,oEAAgB;AAC1C,0BAA0B,mBAAO,CAAC,kFAAqB;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,cAAc;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,uBAAuB;AACjE;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,0BAA0B;AACnC;AACA,kDAAkD;AAClD,SAAS,0DAA0D,wBAAwB,IAAI;AAC/F,SAAS,2BAA2B;AACpC,SAAS,iCAAiC;AAC1C,MAAM;AACN;AACA,CAAC;AACD","file":"default~cadastro-completo-cadastro-completo-module~cadastro-simplificado-cadastro-simplificado-modul~d1cb685f.js","sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar inline_svg_directive_1 = require(\"./inline-svg.directive\");\nexports.InlineSVGDirective = inline_svg_directive_1.InlineSVGDirective;\nvar inline_svg_module_1 = require(\"./inline-svg.module\");\nexports.InlineSVGModule = inline_svg_module_1.InlineSVGModule;\nvar svg_cache_service_1 = require(\"./svg-cache.service\");\nexports.SVGCacheService = svg_cache_service_1.SVGCacheService;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar core_1 = require(\"@angular/core\");\nvar inline_svg_directive_1 = require(\"./inline-svg.directive\");\nvar inline_svg_service_1 = require(\"./inline-svg.service\");\nvar InlineSVGComponent = (function () {\n function InlineSVGComponent(_inlineSVGService, el) {\n this._inlineSVGService = _inlineSVGService;\n this._el = el;\n }\n InlineSVGComponent.prototype.ngAfterViewInit = function () {\n this._updateContent();\n };\n InlineSVGComponent.prototype.ngOnChanges = function (changes) {\n if (changes['content']) {\n this._updateContent();\n }\n };\n InlineSVGComponent.prototype._updateContent = function () {\n this._inlineSVGService.insertEl(this.context, this._el.nativeElement, this.content, this.replaceContents, this.prepend);\n };\n InlineSVGComponent.decorators = [\n { type: core_1.Component, args: [{\n selector: 'inline-svg',\n template: '',\n changeDetection: core_1.ChangeDetectionStrategy.OnPush\n },] },\n ];\n InlineSVGComponent.ctorParameters = function () { return [\n { type: inline_svg_service_1.InlineSVGService, },\n { type: core_1.ElementRef, },\n ]; };\n InlineSVGComponent.propDecorators = {\n \"context\": [{ type: core_1.Input },],\n \"content\": [{ type: core_1.Input },],\n \"replaceContents\": [{ type: core_1.Input },],\n \"prepend\": [{ type: core_1.Input },],\n };\n return InlineSVGComponent;\n}());\nexports.InlineSVGComponent = InlineSVGComponent;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar core_1 = require(\"@angular/core\");\nvar common_1 = require(\"@angular/common\");\nvar InlineSVGConfig = (function () {\n function InlineSVGConfig() {\n }\n return InlineSVGConfig;\n}());\nexports.InlineSVGConfig = InlineSVGConfig;\nvar InlineSVGDefaultConfig = (function (_super) {\n __extends(InlineSVGDefaultConfig, _super);\n function InlineSVGDefaultConfig(appBase, location) {\n var _this = _super.call(this) || this;\n if (appBase !== null) {\n _this.baseUrl = appBase;\n }\n else if (location !== null) {\n _this.baseUrl = location.getBaseHrefFromDOM();\n }\n return _this;\n }\n InlineSVGDefaultConfig.ctorParameters = function () { return [\n { type: undefined, decorators: [{ type: core_1.Optional }, { type: core_1.Inject, args: [common_1.APP_BASE_HREF,] },] },\n { type: common_1.PlatformLocation, decorators: [{ type: core_1.Optional },] },\n ]; };\n return InlineSVGDefaultConfig;\n}(InlineSVGConfig));\nexports.InlineSVGDefaultConfig = InlineSVGDefaultConfig;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar core_1 = require(\"@angular/core\");\nvar common_1 = require(\"@angular/common\");\nvar inline_svg_component_1 = require(\"./inline-svg.component\");\nvar svg_cache_service_1 = require(\"./svg-cache.service\");\nvar inline_svg_service_1 = require(\"./inline-svg.service\");\nvar InlineSVGDirective = (function () {\n function InlineSVGDirective(_el, _viewContainerRef, _resolver, _svgCache, _renderer, _inlineSVGService, platformId) {\n this._el = _el;\n this._viewContainerRef = _viewContainerRef;\n this._resolver = _resolver;\n this._svgCache = _svgCache;\n this._renderer = _renderer;\n this._inlineSVGService = _inlineSVGService;\n this.platformId = platformId;\n this.replaceContents = true;\n this.prepend = false;\n this.injectComponent = false;\n this.cacheSVG = true;\n this.forceEvalStyles = false;\n this.evalScripts = 'always';\n this.onSVGInserted = new core_1.EventEmitter();\n this.onSVGFailed = new core_1.EventEmitter();\n this._ranScripts = {};\n this._supportsSVG = this._checkSVGSupport();\n if (!common_1.isPlatformServer(this.platformId) && !this._supportsSVG) {\n this._fail('Embed SVG not supported by browser');\n }\n }\n InlineSVGDirective.prototype.ngOnInit = function () {\n if (!common_1.isPlatformBrowser(this.platformId) && !common_1.isPlatformServer(this.platformId)) {\n return;\n }\n this._insertSVG();\n };\n InlineSVGDirective.prototype.ngOnChanges = function (changes) {\n if (!common_1.isPlatformBrowser(this.platformId) && !common_1.isPlatformServer(this.platformId)) {\n return;\n }\n if (changes['inlineSVG']) {\n this._insertSVG();\n }\n };\n InlineSVGDirective.prototype.ngOnDestroy = function () {\n if (this._subscription) {\n this._subscription.unsubscribe();\n }\n };\n InlineSVGDirective.prototype._insertSVG = function () {\n var _this = this;\n if (!common_1.isPlatformServer(this.platformId) && !this._supportsSVG) {\n return;\n }\n if (!this.inlineSVG) {\n this._fail('No URL passed to [inlineSVG]');\n return;\n }\n if (this.inlineSVG.charAt(0) === '#' || this.inlineSVG.indexOf('.svg#') > -1) {\n var elSvg = this._renderer.createElement('svg', 'svg');\n var elSvgUse = this._renderer.createElement('use', 'svg');\n var absUrl = this._svgCache.getAbsoluteUrl(this.inlineSVG);\n this._renderer.setAttribute(elSvgUse, 'href', absUrl, 'xlink');\n this._renderer.appendChild(elSvg, elSvgUse);\n this._insertEl(elSvg);\n this.onSVGInserted.emit(elSvg);\n return;\n }\n if (this.inlineSVG !== this._prevUrl) {\n this._prevUrl = this.inlineSVG;\n this._subscription = this._svgCache.getSVG(this.inlineSVG, this.cacheSVG)\n .subscribe(function (svg) {\n if (!svg) {\n return;\n }\n if (_this.removeSVGAttributes) {\n _this._removeAttributes(svg, _this.removeSVGAttributes);\n }\n if (_this.onSVGLoaded) {\n svg = _this.onSVGLoaded(svg, _this._el.nativeElement);\n }\n _this._insertEl(svg);\n _this._evalScripts(svg, _this.inlineSVG);\n if (_this.forceEvalStyles) {\n var styleTags = svg.querySelectorAll('style');\n Array.from(styleTags).forEach(function (tag) { return tag.textContent += ''; });\n }\n _this.onSVGInserted.emit(svg);\n }, function (err) {\n _this._fail(err);\n });\n }\n };\n InlineSVGDirective.prototype._insertEl = function (el) {\n if (this.injectComponent) {\n if (!this._svgComp) {\n var factory = this._resolver.resolveComponentFactory(inline_svg_component_1.InlineSVGComponent);\n this._svgComp = this._viewContainerRef.createComponent(factory);\n }\n this._svgComp.instance.context = this;\n this._svgComp.instance.replaceContents = this.replaceContents;\n this._svgComp.instance.prepend = this.prepend;\n this._svgComp.instance.content = el;\n this._renderer.appendChild(this._el.nativeElement, this._svgComp.injector.get(inline_svg_component_1.InlineSVGComponent)._el.nativeElement);\n }\n else {\n this._inlineSVGService.insertEl(this, this._el.nativeElement, el, this.replaceContents, this.prepend);\n }\n };\n InlineSVGDirective.prototype._removeAttributes = function (svg, attrs) {\n if (!common_1.isPlatformBrowser(this.platformId)) {\n return;\n }\n var innerEls = svg.getElementsByTagName('*');\n for (var i = 0; i < innerEls.length; i++) {\n var elAttrs = innerEls[i].attributes;\n for (var j = 0; j < elAttrs.length; j++) {\n if (attrs.indexOf(elAttrs[j].name.toLowerCase()) > -1) {\n innerEls[i].removeAttribute(elAttrs[j].name);\n }\n }\n }\n };\n InlineSVGDirective.prototype._evalScripts = function (svg, url) {\n if (!common_1.isPlatformBrowser(this.platformId)) {\n return;\n }\n var scripts = svg.querySelectorAll('script');\n var scriptsToEval = [];\n var script, scriptType;\n for (var i = 0; i < scripts.length; i++) {\n scriptType = scripts[i].getAttribute('type');\n if (!scriptType || scriptType === 'application/ecmascript' || scriptType === 'application/javascript') {\n script = scripts[i].innerText || scripts[i].textContent;\n scriptsToEval.push(script);\n svg.removeChild(scripts[i]);\n }\n }\n if (scriptsToEval.length > 0 && (this.evalScripts === 'always' ||\n (this.evalScripts === 'once' && !this._ranScripts[url]))) {\n for (var i = 0; i < scriptsToEval.length; i++) {\n new Function(scriptsToEval[i])(window);\n }\n this._ranScripts[url] = true;\n }\n };\n InlineSVGDirective.prototype._fail = function (msg) {\n this.onSVGFailed.emit(msg);\n if (this.fallbackImgUrl) {\n var elImg = this._renderer.createElement('IMG');\n this._renderer.setAttribute(elImg, 'src', this.fallbackImgUrl);\n this._insertEl(elImg);\n }\n };\n InlineSVGDirective.prototype._checkSVGSupport = function () {\n return typeof SVGRect !== 'undefined';\n };\n InlineSVGDirective.decorators = [\n { type: core_1.Directive, args: [{\n selector: '[inlineSVG]',\n providers: [svg_cache_service_1.SVGCacheService]\n },] },\n ];\n InlineSVGDirective.ctorParameters = function () { return [\n { type: core_1.ElementRef, },\n { type: core_1.ViewContainerRef, },\n { type: core_1.ComponentFactoryResolver, },\n { type: svg_cache_service_1.SVGCacheService, },\n { type: core_1.Renderer2, },\n { type: inline_svg_service_1.InlineSVGService, },\n { type: Object, decorators: [{ type: core_1.Inject, args: [core_1.PLATFORM_ID,] },] },\n ]; };\n InlineSVGDirective.propDecorators = {\n \"inlineSVG\": [{ type: core_1.Input },],\n \"replaceContents\": [{ type: core_1.Input },],\n \"prepend\": [{ type: core_1.Input },],\n \"injectComponent\": [{ type: core_1.Input },],\n \"cacheSVG\": [{ type: core_1.Input },],\n \"removeSVGAttributes\": [{ type: core_1.Input },],\n \"forceEvalStyles\": [{ type: core_1.Input },],\n \"evalScripts\": [{ type: core_1.Input },],\n \"fallbackImgUrl\": [{ type: core_1.Input },],\n \"onSVGLoaded\": [{ type: core_1.Input },],\n \"onSVGInserted\": [{ type: core_1.Output },],\n \"onSVGFailed\": [{ type: core_1.Output },],\n };\n return InlineSVGDirective;\n}());\nexports.InlineSVGDirective = InlineSVGDirective;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar core_1 = require(\"@angular/core\");\nvar inline_svg_component_1 = require(\"./inline-svg.component\");\nvar inline_svg_config_1 = require(\"./inline-svg.config\");\nvar inline_svg_directive_1 = require(\"./inline-svg.directive\");\nvar svg_cache_service_1 = require(\"./svg-cache.service\");\nvar inline_svg_service_1 = require(\"./inline-svg.service\");\nvar InlineSVGModule = (function () {\n function InlineSVGModule() {\n }\n InlineSVGModule.forRoot = function (config) {\n return {\n ngModule: InlineSVGModule,\n providers: [\n { provide: inline_svg_config_1.InlineSVGConfig, useValue: config }\n ]\n };\n };\n InlineSVGModule.decorators = [\n { type: core_1.NgModule, args: [{\n declarations: [inline_svg_directive_1.InlineSVGDirective, inline_svg_component_1.InlineSVGComponent],\n exports: [inline_svg_directive_1.InlineSVGDirective],\n providers: [\n inline_svg_service_1.InlineSVGService,\n svg_cache_service_1.SVGCacheService,\n { provide: inline_svg_config_1.InlineSVGConfig, useClass: inline_svg_config_1.InlineSVGDefaultConfig },\n ],\n entryComponents: [inline_svg_component_1.InlineSVGComponent]\n },] },\n ];\n return InlineSVGModule;\n}());\nexports.InlineSVGModule = InlineSVGModule;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar core_1 = require(\"@angular/core\");\nvar InlineSVGService = (function () {\n function InlineSVGService(rendererFactory) {\n this._renderer = rendererFactory.createRenderer(null, null);\n }\n InlineSVGService.prototype.insertEl = function (dir, parentEl, content, replaceContents, prepend) {\n if (replaceContents && !prepend) {\n var parentNode = dir._prevSVG && dir._prevSVG.parentNode;\n if (parentNode) {\n this._renderer.removeChild(parentNode, dir._prevSVG);\n }\n parentEl.innerHTML = '';\n }\n if (prepend) {\n this._renderer.insertBefore(parentEl, content, parentEl.firstChild);\n }\n else {\n this._renderer.appendChild(parentEl, content);\n }\n if (content.nodeName === 'svg') {\n dir._prevSVG = content;\n }\n };\n InlineSVGService.decorators = [\n { type: core_1.Injectable },\n ];\n InlineSVGService.ctorParameters = function () { return [\n { type: core_1.RendererFactory2, },\n ]; };\n return InlineSVGService;\n}());\nexports.InlineSVGService = InlineSVGService;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar core_1 = require(\"@angular/core\");\nvar http_1 = require(\"@angular/common/http\");\nvar rxjs_1 = require(\"rxjs\");\nvar operators_1 = require(\"rxjs/operators\");\nvar inline_svg_config_1 = require(\"./inline-svg.config\");\nvar SVGCacheService = (function () {\n function SVGCacheService(config, _http, rendererFactory) {\n this._http = _http;\n this._renderer = rendererFactory.createRenderer(null, null);\n if (config && !SVGCacheService._baseUrl) {\n this.setBaseUrl(config);\n }\n if (!SVGCacheService._cache) {\n SVGCacheService._cache = new Map();\n }\n if (!SVGCacheService._inProgressReqs) {\n SVGCacheService._inProgressReqs = new Map();\n }\n }\n SVGCacheService.prototype.getSVG = function (url, cache) {\n var _this = this;\n if (cache === void 0) { cache = true; }\n var absUrl = this.getAbsoluteUrl(url);\n if (cache && SVGCacheService._cache.has(absUrl)) {\n return rxjs_1.of(this._cloneSVG(SVGCacheService._cache.get(absUrl)));\n }\n if (SVGCacheService._inProgressReqs.has(absUrl)) {\n return SVGCacheService._inProgressReqs.get(absUrl);\n }\n var req = this._http.get(absUrl, { responseType: 'text' })\n .pipe(operators_1.finalize(function () {\n SVGCacheService._inProgressReqs.delete(absUrl);\n }), operators_1.share(), operators_1.map(function (svgText) {\n var svgEl = _this._svgElementFromString(svgText);\n SVGCacheService._cache.set(absUrl, svgEl);\n return _this._cloneSVG(svgEl);\n }));\n SVGCacheService._inProgressReqs.set(absUrl, req);\n return req;\n };\n SVGCacheService.prototype.setBaseUrl = function (config) {\n if (config) {\n SVGCacheService._baseUrl = config.baseUrl;\n }\n };\n SVGCacheService.prototype.getAbsoluteUrl = function (url) {\n if (SVGCacheService._baseUrl && !/^https?:\\/\\//i.test(url)) {\n url = SVGCacheService._baseUrl + url;\n if (url.indexOf('//') === 0) {\n url = url.substring(1);\n }\n }\n var base = this._renderer.createElement('BASE');\n base.href = url;\n return base.href;\n };\n SVGCacheService.prototype._svgElementFromString = function (str) {\n var div = this._renderer.createElement('DIV');\n div.innerHTML = str;\n var svg = div.querySelector('svg');\n if (!svg) {\n throw new Error('No SVG found in loaded contents');\n }\n return svg;\n };\n SVGCacheService.prototype._cloneSVG = function (svg) {\n return svg.cloneNode(true);\n };\n SVGCacheService.decorators = [\n { type: core_1.Injectable },\n ];\n SVGCacheService.ctorParameters = function () { return [\n { type: inline_svg_config_1.InlineSVGConfig, decorators: [{ type: core_1.Optional },] },\n { type: http_1.HttpClient, },\n { type: core_1.RendererFactory2, },\n ]; };\n return SVGCacheService;\n}());\nexports.SVGCacheService = SVGCacheService;\n"],"sourceRoot":""}