From 00cedb72e37318f1c9d18b2e2cce9a2866accd2b Mon Sep 17 00:00:00 2001 From: "Suwart, Jan" Date: Sun, 31 Dec 2017 15:28:05 +0100 Subject: [PATCH] Enable accessing svg color property for IE, update readme, bump version --- README.md | 20 ++++++++++--------- docs/index.html | 2 +- ... => inline.4c0d9c335fdf512c4d4f.bundle.js} | 2 +- ...js => main.e9fe4a6f8b12b50e3341.bundle.js} | 2 +- package.json | 2 +- src/app/app.component.css | 4 ++-- src/app/app.component.html | 2 +- .../svg-icon-sprite.component.css | 3 ++- 8 files changed, 20 insertions(+), 17 deletions(-) rename docs/{inline.56acb15d48939681a4b1.bundle.js => inline.4c0d9c335fdf512c4d4f.bundle.js} (95%) rename docs/{main.862dae64275db188e923.bundle.js => main.e9fe4a6f8b12b50e3341.bundle.js} (70%) diff --git a/README.md b/README.md index 50b3fb3..d2147cd 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ the name of the sprite and `icon` is the filename of the svg icon. - `width` *optional* - width of the svg in any length unit, i.e. `32px`, `50%`, `auto` etc., default is `100%` - `height` *optional* - the height of the svg in any length unit, if undefined height will equal the width - `classes` *optional* - class name for this icon, default is `icon` -- `viewBox` *optional* - define lengths and coordinates in order to scale to fit the total space available (can be used if `viewBox` is missing) +- `viewBox` *optional* - define lengths and coordinates in order to scale to fit the total space available (to be used if the viewBox of the SVG is missing) - `preserveAspectRatio` *optional* - manipulate the aspect ratio, only in combination with `viewBox` (see SVG standard for details) ## Styling @@ -106,6 +106,7 @@ Just add a CSS color property to the host component (the component invoking the the `currentColor` value to [pass the ancestor's color](https://css-tricks.com/cascading-svg-fill-color) through to the SVG shapes: ```css +/* parent component styles */ color: red; ``` @@ -115,12 +116,12 @@ color: red; If you have another folder structure than above, you can pass both your input and output path using the npm script: -```javascript +``` svg-symbols sourcefolder > destination/filename.svg ``` -You can use any other "svg to symbol" library - the `ng-svg-icon-sprite` module is agnostic regarding the technology -behind the sprite generation. +Of course you can use any other "svg to symbol" library - the `ng-svg-icon-sprite` module is agnostic regarding the +technology behind the sprite generation. ### Custom Styling @@ -155,29 +156,30 @@ You need to set the `viewBox` property manually to match the size of the exporte ``` -Still having trouble with scaling or sizing? [Read this article](https://css-tricks.com/scale-svg/) about SVG scaling. +Still having trouble with scaling or sizing? Try to clean your SVG icons before processing them into sprites by +additionally using [svgo](https://www.npmjs.com/package/svgo). And [read this article](https://css-tricks.com/scale-svg/) +about SVG scaling. ## Browser Support (tested) - Chrome (63) - Firefox (57) - Safari 11 - Edge -- IE 11 (with polyfill) +- IE 11 (with polyfill, see below) Check the [demo](https://jannicz.github.io/ng-svg-icon-sprite/) if it meets your requirements before using it. ### Limitations Older browsers do not support referencing to (external) SVG symbols. To make it work for IE11 and lower you can add this -[Polyfill](https://github.com/jonathantneal/svg4everybody) to your `polyfills.ts` file: +[svg4everybody](https://github.com/jonathantneal/svg4everybody) to your `polyfills.ts` file: ```javascript +// Add these lines in polyfills.ts import * as svg4everybody from 'svg4everybody/dist/svg4everybody.js'; svg4everybody(); ``` -To have clean SVG icons before processing them into sprites you can additionally use [svgo](https://www.npmjs.com/package/svgo). - ## Local development vs. npm package For users that would like to clone/fork this repository: this repo contains all development files for the ng-icon-sprite diff --git a/docs/index.html b/docs/index.html index fcf9ff5..4b0133c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -SVG Icon Sprite Development \ No newline at end of file +SVG Icon Sprite Development \ No newline at end of file diff --git a/docs/inline.56acb15d48939681a4b1.bundle.js b/docs/inline.4c0d9c335fdf512c4d4f.bundle.js similarity index 95% rename from docs/inline.56acb15d48939681a4b1.bundle.js rename to docs/inline.4c0d9c335fdf512c4d4f.bundle.js index 8a961e2..42fe7cb 100644 --- a/docs/inline.56acb15d48939681a4b1.bundle.js +++ b/docs/inline.4c0d9c335fdf512c4d4f.bundle.js @@ -1 +1 @@ -!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var a,i,f,l=0,s=[];l1?new t(e,o):1===i?new s(e[0],o):new a(o)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.subscriber;n>=e.count?r.complete():(r.next(t[n]),r.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var i=0;i0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(v);t.a=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof s&&(n=e.pop()),null===u&&1===e.length&&e[0]instanceof i.a?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof t&&(n=t,t=null),r.lift(new g(e,t,n))}}(o,null,e)}(n)(new l(e,u))}},"6Xbx":function(e,t,n){"use strict";t.b=function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return o});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n ");else if("object"==typeof t){var r=[];for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];r.push(o+":"+("string"==typeof i?JSON.stringify(i):s(i)))}n="{"+r.join(", ")+"}"}return"StaticInjectorError["+n+"]: "+e.replace(Wn,"\n ")}function h(e,t){return new Error(p(e,t))}function y(e){return e[Kn]}function v(e){return e[Yn]}function g(e){return!!e&&"function"==typeof e.then}function m(e){return!!e&&"function"==typeof e.subscribe}function _(){return""+b()+b()+b()}function b(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function w(){throw new Error("Runtime compiler is not loaded")}function C(e){var t=Error("No component factory found for "+s(e)+". Did you add it to @NgModule.entryComponents?");return t[lr]=e,t}function x(e,t){return null}function E(){}function T(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function k(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function I(e){e._nesting--,T(e)}function A(e){Er=e}function S(){if(kr)throw new Error("Cannot enable prod mode after platform setup.");Tr=!1}function N(){return kr=!0,Tr}function O(e,t,n){void 0===n&&(n=[]);var r=new wn("Platform: "+t);return function(t){void 0===t&&(t=[]);var o=R();return o&&!o.injector.get(Ir,!1)||(e?e(n.concat(t).concat({provide:r,useValue:!0})):function(e){if(dn&&!dn.destroyed&&!dn.injector.get(Ir,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");dn=e.get(Sr);var t=e.get(nr,null);t&&t.forEach(function(e){return e()})}(Mn.create(n.concat(t).concat({provide:r,useValue:!0})))),function(e){var t=R();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function R(){return dn&&!dn.destroyed?dn:null}function P(e,t){return e=Array.isArray(t)?t.reduce(P,e):Object(vn.a)({},e,t)}function j(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function V(e){return e.reduce(function(e,t){var n=Array.isArray(t)?V(t):t;return e.concat(n)},[])}function M(e,t,n){e.childNodes.forEach(function(e){e instanceof Fr&&(t(e)&&n.push(e),M(e,t,n))})}function D(e,t,n){e instanceof Fr&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Fr&&D(e,t,n)})}function H(e){return Lr.get(e)||null}function F(e){Lr.set(e.nativeNode,e)}function L(e,t){var n=U(e),r=U(t);return n&&r?function(t,n,r){for(var i=e[o()](),u=n[o()]();;){var s=i.next(),a=u.next();if(s.done&&a.done)return!0;if(s.done||a.done)return!1;if(!r(s.value,a.value))return!1}}(0,t,L):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||u(e,t)}function U(e){return!!z(e)&&(Array.isArray(e)||!(e instanceof Map)&&o()in e)}function z(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function B(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Ue(n,t),ao.dirtyParentQueries(r),Fe(r),r}function He(e,t,n){var r=t?pe(t,t.def.lastRenderRootNode):e.renderElement;we(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Fe(e){we(e,3,null,null,void 0)}function Le(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ue(e,t){t>=e.length-1?e.pop():e.splice(t,1)}function ze(e,t,n,r,o,i){return new wo(e,t,n,r,o,i)}function Be(e,t,n){return new xo(e,t,n)}function Ze(e){return new Eo(e)}function Qe(e,t){return new To(e,t)}function We(e,t){return new ko(e,t)}function qe(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Y(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return K(e,n.nodeIndex).renderText;if(20240&n.flags)return J(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Ge(e){return new Io(e.renderer)}function Ke(e,t,n,r){return new Ao(e,t,n,r)}function Ye(e,t,n,r,o,i,u,s){var a=[];if(u)for(var c in u){var f=u[c];a[f[0]]={flags:8,name:c,nonMinifiedName:f[1],ns:null,securityContext:null,suffix:null}}var d=[];if(s)for(var p in s)d.push({type:1,propName:p,target:null,eventName:s[p]});return t|=16384,function(e,t,r,o,i,u,s,a,c){var f=ge(n),d=f.matchedQueries,p=f.references,h=f.matchedQueryIds;c||(c=[]),a||(a=[]),u=l(u);var y=me(s);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:o,bindings:a,bindingFlags:Ie(a),outputs:c,element:null,provider:{token:i,value:u,deps:y},text:null,query:null,ngContent:null}}(e,t,0,r,o,o,i,a,d)}function Je(e,t){return et(e,t)}function Xe(e,t){for(var n=e;n.parent&&!ye(n);)n=n.parent;return tt(n.parent,de(n),!0,t.provider.value,t.provider.deps)}function $e(e,t){var n=tt(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return tt(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(nt(e,t,n,o[0]));case 2:return r(nt(e,t,n,o[0]),nt(e,t,n,o[1]));case 3:return r(nt(e,t,n,o[0]),nt(e,t,n,o[1]),nt(e,t,n,o[2]));default:for(var u=Array(i),s=0;so)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}(l,y,t.length),o+=y.bindings.length,i+=y.outputs.length,!c&&3&y.flags&&(p=y),20224&y.flags){f||(f=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var g=0!=(32768&y.flags);0==(8192&y.flags)||g?l.element.publicProviders[re(y.provider.token)]=y:(d||(d=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[re(y.provider.token)]=y),g&&(l.element.componentProvider=y)}if(l?(l.childFlags|=y.flags,l.directChildFlags|=y.flags,l.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(l.childMatchedQueries|=y.element.template.nodeMatchedQueries)):s|=y.flags,y.childCount>0)l=y,gt(y)||(c=y);else for(;l&&h===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&>(l)?l.renderParent:l}}return{factory:null,nodeFlags:u,rootNodeFlags:s,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||lo,updateRenderer:r||lo,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function gt(e){return 0!=(1&e.flags)&&null===e.element.name}function mt(e,t,n,r){var o=wt(e.root,e.renderer,e,t,n);return Ct(o,e.component,r),xt(o),o}function _t(e,t,n){var r=wt(e,e.renderer,null,null,t);return Ct(r,n,n),xt(r),r}function bt(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,wt(e.root,o,e,t.element.componentProvider,n)}function wt(e,t,n,r,o){var i=new Array(o.nodes.length),u=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:u,initIndex:-1}}function Ct(e,t,n){e.component=t,e.context=n}function xt(e){var t;ye(e)&&(t=Y(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&Re(e,t,0,n)&&(h=!0),p>1&&Re(e,t,1,o)&&(h=!0),p>2&&Re(e,t,2,i)&&(h=!0),p>3&&Re(e,t,3,u)&&(h=!0),p>4&&Re(e,t,4,s)&&(h=!0),p>5&&Re(e,t,5,a)&&(h=!0),p>6&&Re(e,t,6,l)&&(h=!0),p>7&&Re(e,t,7,c)&&(h=!0),p>8&&Re(e,t,8,f)&&(h=!0),p>9&&Re(e,t,9,d)&&(h=!0),h}(e,t,0,r,o,i,u,s,a,l,c,f);case 2:return function(e,t,n,r,o,i,u,s,a,l,c,f){var d=!1,p=t.bindings,h=p.length;if(h>0&&ue(e,t,0,n)&&(d=!0),h>1&&ue(e,t,1,r)&&(d=!0),h>2&&ue(e,t,2,o)&&(d=!0),h>3&&ue(e,t,3,i)&&(d=!0),h>4&&ue(e,t,4,u)&&(d=!0),h>5&&ue(e,t,5,s)&&(d=!0),h>6&&ue(e,t,6,a)&&(d=!0),h>7&&ue(e,t,7,l)&&(d=!0),h>8&&ue(e,t,8,c)&&(d=!0),h>9&&ue(e,t,9,f)&&(d=!0),d){var y=t.text.prefix;h>0&&(y+=yt(n,p[0])),h>1&&(y+=yt(r,p[1])),h>2&&(y+=yt(o,p[2])),h>3&&(y+=yt(i,p[3])),h>4&&(y+=yt(u,p[4])),h>5&&(y+=yt(s,p[5])),h>6&&(y+=yt(a,p[6])),h>7&&(y+=yt(l,p[7])),h>8&&(y+=yt(c,p[8])),h>9&&(y+=yt(f,p[9]));var v=K(e,t.nodeIndex).renderText;e.renderer.setValue(v,y)}return d}(e,t,n,r,o,i,u,s,a,l,c,f);case 16384:return function(e,t,n,r,o,i,u,s,a,l,c,f){var d=J(e,t.nodeIndex),p=d.instance,h=!1,y=void 0,v=t.bindings.length;return v>0&&ie(e,t,0,n)&&(h=!0,y=ot(e,d,t,0,n,y)),v>1&&ie(e,t,1,r)&&(h=!0,y=ot(e,d,t,1,r,y)),v>2&&ie(e,t,2,o)&&(h=!0,y=ot(e,d,t,2,o,y)),v>3&&ie(e,t,3,i)&&(h=!0,y=ot(e,d,t,3,i,y)),v>4&&ie(e,t,4,u)&&(h=!0,y=ot(e,d,t,4,u,y)),v>5&&ie(e,t,5,s)&&(h=!0,y=ot(e,d,t,5,s,y)),v>6&&ie(e,t,6,a)&&(h=!0,y=ot(e,d,t,6,a,y)),v>7&&ie(e,t,7,l)&&(h=!0,y=ot(e,d,t,7,l,y)),v>8&&ie(e,t,8,c)&&(h=!0,y=ot(e,d,t,8,c,y)),v>9&&ie(e,t,9,f)&&(h=!0,y=ot(e,d,t,9,f,y)),y&&p.ngOnChanges(y),65536&t.flags&&G(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),h}(e,t,n,r,o,i,u,s,a,l,c,f);case 32:case 64:case 128:return function(e,t,n,r,o,i,u,s,a,l,c,f){var d=t.bindings,p=!1,h=d.length;if(h>0&&ue(e,t,0,n)&&(p=!0),h>1&&ue(e,t,1,r)&&(p=!0),h>2&&ue(e,t,2,o)&&(p=!0),h>3&&ue(e,t,3,i)&&(p=!0),h>4&&ue(e,t,4,u)&&(p=!0),h>5&&ue(e,t,5,s)&&(p=!0),h>6&&ue(e,t,6,a)&&(p=!0),h>7&&ue(e,t,7,l)&&(p=!0),h>8&&ue(e,t,8,c)&&(p=!0),h>9&&ue(e,t,9,f)&&(p=!0),p){var y=X(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(d.length),h>0&&(v[0]=n),h>1&&(v[1]=r),h>2&&(v[2]=o),h>3&&(v[3]=i),h>4&&(v[4]=u),h>5&&(v[5]=s),h>6&&(v[6]=a),h>7&&(v[7]=l),h>8&&(v[8]=c),h>9&&(v[9]=f);break;case 64:v={},h>0&&(v[d[0].name]=n),h>1&&(v[d[1].name]=r),h>2&&(v[d[2].name]=o),h>3&&(v[d[3].name]=i),h>4&&(v[d[4].name]=u),h>5&&(v[d[5].name]=s),h>6&&(v[d[6].name]=a),h>7&&(v[d[7].name]=l),h>8&&(v[d[8].name]=c),h>9&&(v[d[9].name]=f);break;case 128:var g=n;switch(h){case 1:v=g.transform(n);break;case 2:v=g.transform(r);break;case 3:v=g.transform(r,o);break;case 4:v=g.transform(r,o,i);break;case 5:v=g.transform(r,o,i,u);break;case 6:v=g.transform(r,o,i,u,s);break;case 7:v=g.transform(r,o,i,u,s,a);break;case 8:v=g.transform(r,o,i,u,s,a,l);break;case 9:v=g.transform(r,o,i,u,s,a,l,c);break;case 10:v=g.transform(r,o,i,u,s,a,l,c,f)}}y.value=v}return p}(e,t,n,r,o,i,u,s,a,l,c,f);default:throw"unreachable"}}(e,t,r,o,i,u,s,a,l,c,f,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&se(e,t,0,r),p>1&&se(e,t,1,o),p>2&&se(e,t,2,i),p>3&&se(e,t,3,u),p>4&&se(e,t,4,s),p>5&&se(e,t,5,a),p>6&&se(e,t,6,l),p>7&&se(e,t,7,c),p>8&&se(e,t,8,f),p>9&&se(e,t,9,d)}(e,t,0,o,i,u,s,a,l,c,f,d):function(e,t,n){for(var r=0;r0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+s(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}(),Nr=function(){function e(e,t,n,r,o,u){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=N(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new gn.a(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),l=new gn.a(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){_r.assertNotInAngularZone(),i(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){_r.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(mn.a)(a,_n.a.call(l))}return e.prototype.bootstrap=function(e,t){var n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=e instanceof ar?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);var o=r instanceof pr?null:this._injector.get(hr),i=r.create(Mn.NULL,[],t||r.selector,o);i.onDestroy(function(){n._unloadComponent(i)});var u=i.injector.get(Cr,null);return u&&i.injector.get(xr).registerApplication(i.location.nativeElement,u),this._loadComponent(i),N()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,gr(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;j(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(or,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),j(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=vr("ApplicationRef#tick()"),e}(),Or=function(){},Rr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Pr=function(){},jr=function(e){this.nativeElement=e},Vr=function(){function e(){this.dirty=!0,this._results=[],this.changes=new mr}return Object.defineProperty(e.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[o()]=function(){return this._results[o()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=V(e),this.dirty=!1},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),Mr=function(){},Dr=function(){},Hr=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Fr?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Fr=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(vn.b)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n=this,r=this.childNodes.indexOf(e);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=n}));var o},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return M(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return D(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Hr),Lr=new Map,Ur=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e}(),zr=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),Br=function(){function e(){}return e.prototype.supports=function(e){return U(e)},e.prototype.create=function(e){return new Qr(e)},e}(),Zr=function(e,t){return t},Qr=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Zr}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex=0;e--){var t=De(this._data,e);ao.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Eo(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof pr||(o=i.get(hr));var u=e.create(i,r,void 0,o);return this.insert(u.hostView,t),u},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e;return function(e,t,n,r){var o=t.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),r.viewContainerParent=e,Le(o,n,r),function(e,t){var n=fe(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(t,r),ao.dirtyParentQueries(r),He(t,n>0?o[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(e._view);return function(e,t,r){var o=e.viewContainer._embeddedViews,i=o[n];Ue(o,n),null==r&&(r=o.length),Le(o,r,i),ao.dirtyParentQueries(i),Fe(i),He(e,r>0?o[r-1]:null,i)}(this._data,0,t),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=De(this._data,e);t&&ao.destroyView(t)},e.prototype.detach=function(e){var t=De(this._data,e);return t?new Eo(t):null},e}(),Eo=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return function(e){var t=[];return we(e,0,void 0,void 0,t),t}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){ae(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{ao.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){ao.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ao.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Fe(this._view),ao.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}(),To=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(vn.b)(t,e),t.prototype.createEmbeddedView=function(e){return new Eo(ao.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new jr(Y(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Mr),ko=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=Mn.THROW_IF_NOT_FOUND),ao.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:re(e)},t)},e}(),Io=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=ke(t),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(a.a),d=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(i.b)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new l.a).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed?(this._connection=null,e=l.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return r()(this)},t}(s.a).prototype,p={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:d._subscribe},_isComplete:{value:d._isComplete,writable:!0},getSubject:{value:d.getSubject},connect:{value:d.connect},refCount:{value:d.refCount}},h=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(i.b)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(u.b);t.a=function(){return function(e){return r()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,p);return r.source=t,r.subjectFactory=n,r}}(o)(e))}(this)}},V7AE:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("xIGM").a.Symbol,o="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},YuZA:function(e,t){function n(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="YuZA"},cDNt:function(e,t,n){"use strict";function r(e){return C._8(0,[(e()(),C.U(0,0,null,null,7,null,null,null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(2,0,null,null,4,":svg:svg",[],[[1,"width",0],[1,"height",0]],null,null,null,null)),C.T(3,278528,null,0,P,[C.n,C.o,C.h,C.w],{ngClass:[0,"ngClass"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(5,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.classes)},function(e,t){var n=t.component;e(t,2,0,n.width,n.height||n.width),e(t,5,0,n.src)})}function o(e){return C._8(0,[(e()(),C._7(-1,null,["\n "])),(e()(),C.U(1,0,null,null,4,":svg:svg",[],[[1,"width",0],[1,"height",0],[1,"viewBox",0],[1,"preserveAspectRatio",0]],null,null,null,null)),C.T(2,278528,null,0,P,[C.n,C.o,C.h,C.w],{ngClass:[0,"ngClass"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(4,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n"]))],function(e,t){e(t,2,0,t.component.classes)},function(e,t){var n=t.component;e(t,1,0,n.width,n.height||n.width,n.viewBox,n.preserveAspectRatio),e(t,4,0,n.src)})}function i(e){return C._8(0,[(e()(),C.P(16777216,null,null,1,null,r)),C.T(1,16384,null,0,j,[C.E,C.B],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),C._7(-1,null,["\n\n"])),(e()(),C.P(0,[["viewBoxTemplate",2]],null,0,null,o)),(e()(),C._7(-1,null,["\n"]))],function(e,t){e(t,1,0,!t.component.viewBox,C._5(t,3))},null)}function u(e){return C._8(0,[(e()(),C.U(0,0,null,null,96,"div",[["class","container"]],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(2,0,null,null,4,"h1",[],null,null,null,null,null)),(e()(),C._7(3,null,["\n "," "])),(e()(),C.U(4,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),C._7(-1,null,["(package development app)"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n Angular package format that provides both a solution for generating sprites and a component for including them.\n "])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(11,0,null,null,4,"a",[["href","https://github.com/jannicz/ng-svg-icon-sprite"]],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(13,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),C._7(-1,null,["ng-svg-icon-sprite source on Github"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(17,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),C._7(-1,null,["Usage"])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(20,0,null,null,7,"p",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n run "])),(e()(),C.U(22,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),C._7(-1,null,["npm run create-icon-sprite"])),(e()(),C._7(-1,null,[" to create a sprite out of your SVG icons,\n then run "])),(e()(),C.U(25,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),C._7(-1,null,["npm run packagr"])),(e()(),C._7(-1,null,[" to create the svg-icon-sprite package that will appear in the dist folder.\n "])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(29,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),C._7(-1,null,["Basic Examples"])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(32,0,null,null,32,"ul",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(34,0,null,null,7,"li",[["style","color: darkred;"]],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(36,0,null,null,1,"svg-icon-sprite",[],null,null,null,i,F)),C.T(37,49152,null,0,H,[],{src:[0,"src"],width:[1,"width"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(39,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),C._7(-1,null,["red, 100px"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(43,0,null,null,7,"li",[["style","color: darkgreen;"]],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(45,0,null,null,1,"svg-icon-sprite",[],null,null,null,i,F)),C.T(46,49152,null,0,H,[],{src:[0,"src"],width:[1,"width"],height:[2,"height"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),C._7(-1,null,["green, 90px"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(52,0,null,null,11,"li",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(54,0,null,null,1,"svg-icon-sprite",[],null,null,null,i,F)),C.T(55,49152,null,0,H,[],{src:[0,"src"],classes:[1,"classes"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(57,0,null,null,5,"span",[],null,null,null,null,null)),(e()(),C._7(-1,null,["global styles by "])),(e()(),C.U(59,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),C._7(-1,null,["::ng-deep"])),(e()(),C.U(61,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),C._7(-1,null,["orange, 75px"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n\n\n "])),(e()(),C.U(66,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),C._7(-1,null,["ViewBox Example"])),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(69,0,null,null,14,"ul",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(71,0,null,null,11,"li",[["style","color: magenta;"]],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(73,0,null,null,1,"svg-icon-sprite",[],null,null,null,i,F)),C.T(74,49152,null,0,H,[],{src:[0,"src"],width:[1,"width"],viewBox:[2,"viewBox"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(76,0,null,null,5,"span",[],null,null,null,null,null)),(e()(),C._7(-1,null,["magenta 80px,"])),(e()(),C.U(78,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),C._7(-1,null,["viewBox "])),(e()(),C.U(80,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),C._7(-1,null,["'0 0 24 24'"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(85,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n Report bugs or feature requests on "])),(e()(),C.U(87,0,null,null,1,"a",[["href","https://github.com/jannicz/ng-svg-icon-sprite/issues"]],null,null,null,null,null)),(e()(),C._7(-1,null,["Github Issues"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(91,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(93,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),C._7(-1,null,["Copyright Jan Suwart, MIT license"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n"])),(e()(),C._7(-1,null,["\n"]))],function(e,t){e(t,37,0,"assets/sprites/sprite.svg#star","100px"),e(t,46,0,"assets/sprites/sprite.svg#delete","90px","80px"),e(t,55,0,"assets/sprites/sprite.svg#star","some-icon-class"),e(t,74,0,"assets/sprites/sprite.svg#star-no-viewBox","80px","0 0 24 24")},function(e,t){e(t,3,0,t.component.title)})}function s(){return z}function a(){return!!window.history.pushState}function l(e,t){"undefined"!=typeof COMPILED&&COMPILED||((C.W.ng=C.W.ng||{})[e]=t)}function c(e){return Object(C.J)(e)}function f(e,t,n){for(var r=0;r/g,">")}function _(e){He.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||He.removeAttribute(e,n)});for(var t=0,n=He.childNodesAsList(e);t0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;u||(u=e[i]=[]);var a=Te(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:a,handler:o});else{for(var l=!1,c=0;c-1},t}(ue),Re=["alt","control","meta","shift"],Pe={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},je=function(e){function t(t){return e.call(this,t)||this}return Object(T.b)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(Re.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var u={};return u.domEventName=r,u.fullKey=i,u},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Re.forEach(function(r){r!=n&&(0,Pe[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(ue),Ve=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Me=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,De=null,He=null,Fe=y("area,br,col,hr,img,wbr"),Le=y("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ue=y("rp,rt"),ze=v(Ue,Le),Be=v(Fe,v(Le,y("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),v(Ue,y("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ze),Ze=y("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Qe=y("srcset"),We=v(Ze,Qe,y("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),qe=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(He.isElementNode(t)?this.startElement(t):He.isTextNode(t)?this.chars(He.nodeValue(t)):this.sanitizedSomething=!0,He.firstChild(t))t=He.firstChild(t);else for(;t;){He.isElementNode(t)&&this.endElement(t);var n=g(t,He.nextSibling(t));if(n){t=n;break}t=g(t,He.parentElement(t))}return this.buf.join("")},e.prototype.startElement=function(e){var t=this,n=He.nodeName(e).toLowerCase();Be.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),He.attributeMap(e).forEach(function(e,n){var r=n.toLowerCase();We.hasOwnProperty(r)?(Ze[r]&&(e=h(e)),Qe[r]&&(e=function(e){return(e=String(e)).split(",").map(function(e){return h(e.trim())}).join(", ")}(e)),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(m(e)),t.buf.push('"')):t.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=He.nodeName(e).toLowerCase();Be.hasOwnProperty(t)&&!Fe.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(m(e))},e}(),Ge=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ke=/([^\#-~ |!])/g,Ye=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Je=/^url\(([^)]+)\)$/,Xe=function(){},$e=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(T.b)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case C.A.NONE:return t;case C.A.HTML:return t instanceof tt?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){try{var n=function(){if(De)return De;var e=(He=s()).createElement("template");if("content"in e)return e;var t=He.createHtmlDocument();if(null==(De=He.querySelector(t,"body"))){var n=He.createElement("html",t);De=He.createElement("body",t),He.appendChild(n,De),He.appendChild(t,n)}return De}(),r=t?String(t):"",o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,He.setInnerHTML(n,r=i),e.documentMode&&_(n),i=He.getInnerHTML(n)}while(r!==i);for(var u=new qe,a=u.sanitizeChildren(He.getTemplateContent(n)||n),l=He.getTemplateContent(n)||n,c=0,f=He.childNodesAsList(l);c1?new t(e,o):1===i?new s(e[0],o):new a(o)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.subscriber;n>=e.count?r.complete():(r.next(t[n]),r.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var i=0;i0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(v);t.a=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof s&&(n=e.pop()),null===u&&1===e.length&&e[0]instanceof i.a?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof t&&(n=t,t=null),r.lift(new g(e,t,n))}}(o,null,e)}(n)(new l(e,u))}},"6Xbx":function(e,t,n){"use strict";t.b=function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return o});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n ");else if("object"==typeof t){var r=[];for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];r.push(o+":"+("string"==typeof i?JSON.stringify(i):s(i)))}n="{"+r.join(", ")+"}"}return"StaticInjectorError["+n+"]: "+e.replace(Wn,"\n ")}function h(e,t){return new Error(p(e,t))}function y(e){return e[Kn]}function v(e){return e[Yn]}function g(e){return!!e&&"function"==typeof e.then}function m(e){return!!e&&"function"==typeof e.subscribe}function _(){return""+b()+b()+b()}function b(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function w(){throw new Error("Runtime compiler is not loaded")}function C(e){var t=Error("No component factory found for "+s(e)+". Did you add it to @NgModule.entryComponents?");return t[lr]=e,t}function x(e,t){return null}function E(){}function T(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function k(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function I(e){e._nesting--,T(e)}function A(e){Er=e}function S(){if(kr)throw new Error("Cannot enable prod mode after platform setup.");Tr=!1}function N(){return kr=!0,Tr}function O(e,t,n){void 0===n&&(n=[]);var r=new wn("Platform: "+t);return function(t){void 0===t&&(t=[]);var o=R();return o&&!o.injector.get(Ir,!1)||(e?e(n.concat(t).concat({provide:r,useValue:!0})):function(e){if(dn&&!dn.destroyed&&!dn.injector.get(Ir,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");dn=e.get(Sr);var t=e.get(nr,null);t&&t.forEach(function(e){return e()})}(Mn.create(n.concat(t).concat({provide:r,useValue:!0})))),function(e){var t=R();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function R(){return dn&&!dn.destroyed?dn:null}function P(e,t){return e=Array.isArray(t)?t.reduce(P,e):Object(vn.a)({},e,t)}function j(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function V(e){return e.reduce(function(e,t){var n=Array.isArray(t)?V(t):t;return e.concat(n)},[])}function M(e,t,n){e.childNodes.forEach(function(e){e instanceof Fr&&(t(e)&&n.push(e),M(e,t,n))})}function D(e,t,n){e instanceof Fr&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Fr&&D(e,t,n)})}function H(e){return Lr.get(e)||null}function F(e){Lr.set(e.nativeNode,e)}function L(e,t){var n=U(e),r=U(t);return n&&r?function(t,n,r){for(var i=e[o()](),u=n[o()]();;){var s=i.next(),a=u.next();if(s.done&&a.done)return!0;if(s.done||a.done)return!1;if(!r(s.value,a.value))return!1}}(0,t,L):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||u(e,t)}function U(e){return!!z(e)&&(Array.isArray(e)||!(e instanceof Map)&&o()in e)}function z(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function B(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Ue(n,t),ao.dirtyParentQueries(r),Fe(r),r}function He(e,t,n){var r=t?pe(t,t.def.lastRenderRootNode):e.renderElement;we(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Fe(e){we(e,3,null,null,void 0)}function Le(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ue(e,t){t>=e.length-1?e.pop():e.splice(t,1)}function ze(e,t,n,r,o,i){return new wo(e,t,n,r,o,i)}function Be(e,t,n){return new xo(e,t,n)}function Ze(e){return new Eo(e)}function Qe(e,t){return new To(e,t)}function We(e,t){return new ko(e,t)}function qe(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Y(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return K(e,n.nodeIndex).renderText;if(20240&n.flags)return J(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function Ge(e){return new Io(e.renderer)}function Ke(e,t,n,r){return new Ao(e,t,n,r)}function Ye(e,t,n,r,o,i,u,s){var a=[];if(u)for(var c in u){var f=u[c];a[f[0]]={flags:8,name:c,nonMinifiedName:f[1],ns:null,securityContext:null,suffix:null}}var d=[];if(s)for(var p in s)d.push({type:1,propName:p,target:null,eventName:s[p]});return t|=16384,function(e,t,r,o,i,u,s,a,c){var f=ge(n),d=f.matchedQueries,p=f.references,h=f.matchedQueryIds;c||(c=[]),a||(a=[]),u=l(u);var y=me(s);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:o,bindings:a,bindingFlags:Ie(a),outputs:c,element:null,provider:{token:i,value:u,deps:y},text:null,query:null,ngContent:null}}(e,t,0,r,o,o,i,a,d)}function Je(e,t){return et(e,t)}function Xe(e,t){for(var n=e;n.parent&&!ye(n);)n=n.parent;return tt(n.parent,de(n),!0,t.provider.value,t.provider.deps)}function $e(e,t){var n=tt(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return tt(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(nt(e,t,n,o[0]));case 2:return r(nt(e,t,n,o[0]),nt(e,t,n,o[1]));case 3:return r(nt(e,t,n,o[0]),nt(e,t,n,o[1]),nt(e,t,n,o[2]));default:for(var u=Array(i),s=0;so)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}(l,y,t.length),o+=y.bindings.length,i+=y.outputs.length,!c&&3&y.flags&&(p=y),20224&y.flags){f||(f=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var g=0!=(32768&y.flags);0==(8192&y.flags)||g?l.element.publicProviders[re(y.provider.token)]=y:(d||(d=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[re(y.provider.token)]=y),g&&(l.element.componentProvider=y)}if(l?(l.childFlags|=y.flags,l.directChildFlags|=y.flags,l.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(l.childMatchedQueries|=y.element.template.nodeMatchedQueries)):s|=y.flags,y.childCount>0)l=y,gt(y)||(c=y);else for(;l&&h===l.nodeIndex+l.childCount;){var m=l.parent;m&&(m.childFlags|=l.childFlags,m.childMatchedQueries|=l.childMatchedQueries),c=(l=m)&>(l)?l.renderParent:l}}return{factory:null,nodeFlags:u,rootNodeFlags:s,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||lo,updateRenderer:r||lo,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function gt(e){return 0!=(1&e.flags)&&null===e.element.name}function mt(e,t,n,r){var o=wt(e.root,e.renderer,e,t,n);return Ct(o,e.component,r),xt(o),o}function _t(e,t,n){var r=wt(e,e.renderer,null,null,t);return Ct(r,n,n),xt(r),r}function bt(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,wt(e.root,o,e,t.element.componentProvider,n)}function wt(e,t,n,r,o){var i=new Array(o.nodes.length),u=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:u,initIndex:-1}}function Ct(e,t,n){e.component=t,e.context=n}function xt(e){var t;ye(e)&&(t=Y(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o0&&Re(e,t,0,n)&&(h=!0),p>1&&Re(e,t,1,o)&&(h=!0),p>2&&Re(e,t,2,i)&&(h=!0),p>3&&Re(e,t,3,u)&&(h=!0),p>4&&Re(e,t,4,s)&&(h=!0),p>5&&Re(e,t,5,a)&&(h=!0),p>6&&Re(e,t,6,l)&&(h=!0),p>7&&Re(e,t,7,c)&&(h=!0),p>8&&Re(e,t,8,f)&&(h=!0),p>9&&Re(e,t,9,d)&&(h=!0),h}(e,t,0,r,o,i,u,s,a,l,c,f);case 2:return function(e,t,n,r,o,i,u,s,a,l,c,f){var d=!1,p=t.bindings,h=p.length;if(h>0&&ue(e,t,0,n)&&(d=!0),h>1&&ue(e,t,1,r)&&(d=!0),h>2&&ue(e,t,2,o)&&(d=!0),h>3&&ue(e,t,3,i)&&(d=!0),h>4&&ue(e,t,4,u)&&(d=!0),h>5&&ue(e,t,5,s)&&(d=!0),h>6&&ue(e,t,6,a)&&(d=!0),h>7&&ue(e,t,7,l)&&(d=!0),h>8&&ue(e,t,8,c)&&(d=!0),h>9&&ue(e,t,9,f)&&(d=!0),d){var y=t.text.prefix;h>0&&(y+=yt(n,p[0])),h>1&&(y+=yt(r,p[1])),h>2&&(y+=yt(o,p[2])),h>3&&(y+=yt(i,p[3])),h>4&&(y+=yt(u,p[4])),h>5&&(y+=yt(s,p[5])),h>6&&(y+=yt(a,p[6])),h>7&&(y+=yt(l,p[7])),h>8&&(y+=yt(c,p[8])),h>9&&(y+=yt(f,p[9]));var v=K(e,t.nodeIndex).renderText;e.renderer.setValue(v,y)}return d}(e,t,n,r,o,i,u,s,a,l,c,f);case 16384:return function(e,t,n,r,o,i,u,s,a,l,c,f){var d=J(e,t.nodeIndex),p=d.instance,h=!1,y=void 0,v=t.bindings.length;return v>0&&ie(e,t,0,n)&&(h=!0,y=ot(e,d,t,0,n,y)),v>1&&ie(e,t,1,r)&&(h=!0,y=ot(e,d,t,1,r,y)),v>2&&ie(e,t,2,o)&&(h=!0,y=ot(e,d,t,2,o,y)),v>3&&ie(e,t,3,i)&&(h=!0,y=ot(e,d,t,3,i,y)),v>4&&ie(e,t,4,u)&&(h=!0,y=ot(e,d,t,4,u,y)),v>5&&ie(e,t,5,s)&&(h=!0,y=ot(e,d,t,5,s,y)),v>6&&ie(e,t,6,a)&&(h=!0,y=ot(e,d,t,6,a,y)),v>7&&ie(e,t,7,l)&&(h=!0,y=ot(e,d,t,7,l,y)),v>8&&ie(e,t,8,c)&&(h=!0,y=ot(e,d,t,8,c,y)),v>9&&ie(e,t,9,f)&&(h=!0,y=ot(e,d,t,9,f,y)),y&&p.ngOnChanges(y),65536&t.flags&&G(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),h}(e,t,n,r,o,i,u,s,a,l,c,f);case 32:case 64:case 128:return function(e,t,n,r,o,i,u,s,a,l,c,f){var d=t.bindings,p=!1,h=d.length;if(h>0&&ue(e,t,0,n)&&(p=!0),h>1&&ue(e,t,1,r)&&(p=!0),h>2&&ue(e,t,2,o)&&(p=!0),h>3&&ue(e,t,3,i)&&(p=!0),h>4&&ue(e,t,4,u)&&(p=!0),h>5&&ue(e,t,5,s)&&(p=!0),h>6&&ue(e,t,6,a)&&(p=!0),h>7&&ue(e,t,7,l)&&(p=!0),h>8&&ue(e,t,8,c)&&(p=!0),h>9&&ue(e,t,9,f)&&(p=!0),p){var y=X(e,t.nodeIndex),v=void 0;switch(201347067&t.flags){case 32:v=new Array(d.length),h>0&&(v[0]=n),h>1&&(v[1]=r),h>2&&(v[2]=o),h>3&&(v[3]=i),h>4&&(v[4]=u),h>5&&(v[5]=s),h>6&&(v[6]=a),h>7&&(v[7]=l),h>8&&(v[8]=c),h>9&&(v[9]=f);break;case 64:v={},h>0&&(v[d[0].name]=n),h>1&&(v[d[1].name]=r),h>2&&(v[d[2].name]=o),h>3&&(v[d[3].name]=i),h>4&&(v[d[4].name]=u),h>5&&(v[d[5].name]=s),h>6&&(v[d[6].name]=a),h>7&&(v[d[7].name]=l),h>8&&(v[d[8].name]=c),h>9&&(v[d[9].name]=f);break;case 128:var g=n;switch(h){case 1:v=g.transform(n);break;case 2:v=g.transform(r);break;case 3:v=g.transform(r,o);break;case 4:v=g.transform(r,o,i);break;case 5:v=g.transform(r,o,i,u);break;case 6:v=g.transform(r,o,i,u,s);break;case 7:v=g.transform(r,o,i,u,s,a);break;case 8:v=g.transform(r,o,i,u,s,a,l);break;case 9:v=g.transform(r,o,i,u,s,a,l,c);break;case 10:v=g.transform(r,o,i,u,s,a,l,c,f)}}y.value=v}return p}(e,t,n,r,o,i,u,s,a,l,c,f);default:throw"unreachable"}}(e,t,r,o,i,u,s,a,l,c,f,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o0&&se(e,t,0,r),p>1&&se(e,t,1,o),p>2&&se(e,t,2,i),p>3&&se(e,t,3,u),p>4&&se(e,t,4,s),p>5&&se(e,t,5,a),p>6&&se(e,t,6,l),p>7&&se(e,t,7,c),p>8&&se(e,t,8,f),p>9&&se(e,t,9,d)}(e,t,0,o,i,u,s,a,l,c,f,d):function(e,t,n){for(var r=0;r0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+s(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}(),Nr=function(){function e(e,t,n,r,o,u){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=N(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new gn.a(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),l=new gn.a(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){_r.assertNotInAngularZone(),i(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){_r.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(mn.a)(a,_n.a.call(l))}return e.prototype.bootstrap=function(e,t){var n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=e instanceof ar?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);var o=r instanceof pr?null:this._injector.get(hr),i=r.create(Mn.NULL,[],t||r.selector,o);i.onDestroy(function(){n._unloadComponent(i)});var u=i.injector.get(Cr,null);return u&&i.injector.get(xr).registerApplication(i.location.nativeElement,u),this._loadComponent(i),N()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,gr(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;j(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(or,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),j(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=vr("ApplicationRef#tick()"),e}(),Or=function(){},Rr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Pr=function(){},jr=function(e){this.nativeElement=e},Vr=function(){function e(){this.dirty=!0,this._results=[],this.changes=new mr}return Object.defineProperty(e.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[o()]=function(){return this._results[o()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=V(e),this.dirty=!1},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),Mr=function(){},Dr=function(){},Hr=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Fr?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Fr=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(vn.b)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n=this,r=this.childNodes.indexOf(e);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=n}));var o},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return M(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return D(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Hr),Lr=new Map,Ur=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e}(),zr=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}(),Br=function(){function e(){}return e.prototype.supports=function(e){return U(e)},e.prototype.create=function(e){return new Qr(e)},e}(),Zr=function(e,t){return t},Qr=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Zr}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex=0;e--){var t=De(this._data,e);ao.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Eo(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof pr||(o=i.get(hr));var u=e.create(i,r,void 0,o);return this.insert(u.hostView,t),u},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e;return function(e,t,n,r){var o=t.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),r.viewContainerParent=e,Le(o,n,r),function(e,t){var n=fe(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(t,r),ao.dirtyParentQueries(r),He(t,n>0?o[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(e._view);return function(e,t,r){var o=e.viewContainer._embeddedViews,i=o[n];Ue(o,n),null==r&&(r=o.length),Le(o,r,i),ao.dirtyParentQueries(i),Fe(i),He(e,r>0?o[r-1]:null,i)}(this._data,0,t),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=De(this._data,e);t&&ao.destroyView(t)},e.prototype.detach=function(e){var t=De(this._data,e);return t?new Eo(t):null},e}(),Eo=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return function(e){var t=[];return we(e,0,void 0,void 0,t),t}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){ae(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{ao.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){ao.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ao.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Fe(this._view),ao.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}(),To=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(vn.b)(t,e),t.prototype.createEmbeddedView=function(e){return new Eo(ao.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new jr(Y(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Mr),ko=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=Mn.THROW_IF_NOT_FOUND),ao.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:re(e)},t)},e}(),Io=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=ke(t),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(a.a),d=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(i.b)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new l.a).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed?(this._connection=null,e=l.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return r()(this)},t}(s.a).prototype,p={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:d._subscribe},_isComplete:{value:d._isComplete,writable:!0},getSubject:{value:d.getSubject},connect:{value:d.connect},refCount:{value:d.refCount}},h=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(i.b)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(u.b);t.a=function(){return function(e){return r()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,p);return r.source=t,r.subjectFactory=n,r}}(o)(e))}(this)}},V7AE:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("xIGM").a.Symbol,o="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},YuZA:function(e,t){function n(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="YuZA"},cDNt:function(e,t,n){"use strict";function r(e){return C._8(0,[(e()(),C.U(0,0,null,null,7,null,null,null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(2,0,null,null,4,":svg:svg",[],[[1,"width",0],[1,"height",0]],null,null,null,null)),C.T(3,278528,null,0,P,[C.n,C.o,C.h,C.w],{ngClass:[0,"ngClass"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(5,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.classes)},function(e,t){var n=t.component;e(t,2,0,n.width,n.height||n.width),e(t,5,0,n.src)})}function o(e){return C._8(0,[(e()(),C._7(-1,null,["\n "])),(e()(),C.U(1,0,null,null,4,":svg:svg",[],[[1,"width",0],[1,"height",0],[1,"viewBox",0],[1,"preserveAspectRatio",0]],null,null,null,null)),C.T(2,278528,null,0,P,[C.n,C.o,C.h,C.w],{ngClass:[0,"ngClass"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(4,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n"]))],function(e,t){e(t,2,0,t.component.classes)},function(e,t){var n=t.component;e(t,1,0,n.width,n.height||n.width,n.viewBox,n.preserveAspectRatio),e(t,4,0,n.src)})}function i(e){return C._8(0,[(e()(),C.P(16777216,null,null,1,null,r)),C.T(1,16384,null,0,j,[C.E,C.B],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),C._7(-1,null,["\n\n"])),(e()(),C.P(0,[["viewBoxTemplate",2]],null,0,null,o)),(e()(),C._7(-1,null,["\n"]))],function(e,t){e(t,1,0,!t.component.viewBox,C._5(t,3))},null)}function u(e){return C._8(0,[(e()(),C.U(0,0,null,null,96,"div",[["class","container"]],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(2,0,null,null,4,"h1",[],null,null,null,null,null)),(e()(),C._7(3,null,["\n "," "])),(e()(),C.U(4,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),C._7(-1,null,["(package development app)"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n Angular package format that provides both a solution for generating sprites and a component for including them.\n "])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(11,0,null,null,4,"a",[["href","https://github.com/jannicz/ng-svg-icon-sprite"]],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(13,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),C._7(-1,null,["ng-svg-icon-sprite source on Github"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(17,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),C._7(-1,null,["Usage"])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(20,0,null,null,7,"p",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n run "])),(e()(),C.U(22,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),C._7(-1,null,["npm run create-icon-sprite"])),(e()(),C._7(-1,null,[" to create a sprite out of your SVG icons,\n then run "])),(e()(),C.U(25,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),C._7(-1,null,["npm run packagr"])),(e()(),C._7(-1,null,[" to create the svg-icon-sprite package that will appear in the dist folder.\n "])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(29,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),C._7(-1,null,["Basic Examples"])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(32,0,null,null,32,"ul",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(34,0,null,null,7,"li",[["style","color: darkred;"]],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(36,0,null,null,1,"svg-icon-sprite",[],null,null,null,i,F)),C.T(37,49152,null,0,H,[],{src:[0,"src"],width:[1,"width"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(39,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),C._7(-1,null,["red, 100px"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(43,0,null,null,7,"li",[["style","color: darkgreen;"]],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(45,0,null,null,1,"svg-icon-sprite",[],null,null,null,i,F)),C.T(46,49152,null,0,H,[],{src:[0,"src"],width:[1,"width"],height:[2,"height"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),C._7(-1,null,["green, 90px"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(52,0,null,null,11,"li",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(54,0,null,null,1,"svg-icon-sprite",[],null,null,null,i,F)),C.T(55,49152,null,0,H,[],{src:[0,"src"],classes:[1,"classes"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(57,0,null,null,5,"span",[],null,null,null,null,null)),(e()(),C._7(-1,null,["component styles by "])),(e()(),C.U(59,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),C._7(-1,null,["::ng-deep"])),(e()(),C.U(61,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),C._7(-1,null,["orange, 75px"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n\n\n "])),(e()(),C.U(66,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),C._7(-1,null,["ViewBox Example"])),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(69,0,null,null,14,"ul",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(71,0,null,null,11,"li",[["style","color: magenta;"]],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(73,0,null,null,1,"svg-icon-sprite",[],null,null,null,i,F)),C.T(74,49152,null,0,H,[],{src:[0,"src"],width:[1,"width"],viewBox:[2,"viewBox"]},null),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(76,0,null,null,5,"span",[],null,null,null,null,null)),(e()(),C._7(-1,null,["magenta 80px,"])),(e()(),C.U(78,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),C._7(-1,null,["viewBox "])),(e()(),C.U(80,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),C._7(-1,null,["'0 0 24 24'"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n\n "])),(e()(),C.U(85,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n Report bugs or feature requests on "])),(e()(),C.U(87,0,null,null,1,"a",[["href","https://github.com/jannicz/ng-svg-icon-sprite/issues"]],null,null,null,null,null)),(e()(),C._7(-1,null,["Github Issues"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(91,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),C._7(-1,null,["\n "])),(e()(),C.U(93,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),C._7(-1,null,["Copyright Jan Suwart, MIT license"])),(e()(),C._7(-1,null,["\n "])),(e()(),C._7(-1,null,["\n"])),(e()(),C._7(-1,null,["\n"]))],function(e,t){e(t,37,0,"assets/sprites/sprite.svg#star","100px"),e(t,46,0,"assets/sprites/sprite.svg#delete","90px","80px"),e(t,55,0,"assets/sprites/sprite.svg#star","some-icon-class"),e(t,74,0,"assets/sprites/sprite.svg#star-no-viewBox","80px","0 0 24 24")},function(e,t){e(t,3,0,t.component.title)})}function s(){return z}function a(){return!!window.history.pushState}function l(e,t){"undefined"!=typeof COMPILED&&COMPILED||((C.W.ng=C.W.ng||{})[e]=t)}function c(e){return Object(C.J)(e)}function f(e,t,n){for(var r=0;r/g,">")}function _(e){He.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||He.removeAttribute(e,n)});for(var t=0,n=He.childNodesAsList(e);t0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;u||(u=e[i]=[]);var a=Te(t)?Zone.root:Zone.current;if(0===u.length)u.push({zone:a,handler:o});else{for(var l=!1,c=0;c-1},t}(ue),Re=["alt","control","meta","shift"],Pe={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},je=function(e){function t(t){return e.call(this,t)||this}return Object(T.b)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(Re.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var u={};return u.domEventName=r,u.fullKey=i,u},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Re.forEach(function(r){r!=n&&(0,Pe[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(ue),Ve=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Me=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,De=null,He=null,Fe=y("area,br,col,hr,img,wbr"),Le=y("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ue=y("rp,rt"),ze=v(Ue,Le),Be=v(Fe,v(Le,y("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),v(Ue,y("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ze),Ze=y("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Qe=y("srcset"),We=v(Ze,Qe,y("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),qe=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(He.isElementNode(t)?this.startElement(t):He.isTextNode(t)?this.chars(He.nodeValue(t)):this.sanitizedSomething=!0,He.firstChild(t))t=He.firstChild(t);else for(;t;){He.isElementNode(t)&&this.endElement(t);var n=g(t,He.nextSibling(t));if(n){t=n;break}t=g(t,He.parentElement(t))}return this.buf.join("")},e.prototype.startElement=function(e){var t=this,n=He.nodeName(e).toLowerCase();Be.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),He.attributeMap(e).forEach(function(e,n){var r=n.toLowerCase();We.hasOwnProperty(r)?(Ze[r]&&(e=h(e)),Qe[r]&&(e=function(e){return(e=String(e)).split(",").map(function(e){return h(e.trim())}).join(", ")}(e)),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(m(e)),t.buf.push('"')):t.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=He.nodeName(e).toLowerCase();Be.hasOwnProperty(t)&&!Fe.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(m(e))},e}(),Ge=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ke=/([^\#-~ |!])/g,Ye=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Je=/^url\(([^)]+)\)$/,Xe=function(){},$e=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(T.b)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case C.A.NONE:return t;case C.A.HTML:return t instanceof tt?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){try{var n=function(){if(De)return De;var e=(He=s()).createElement("template");if("content"in e)return e;var t=He.createHtmlDocument();if(null==(De=He.querySelector(t,"body"))){var n=He.createElement("html",t);De=He.createElement("body",t),He.appendChild(n,De),He.appendChild(t,n)}return De}(),r=t?String(t):"",o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,He.setInnerHTML(n,r=i),e.documentMode&&_(n),i=He.getInnerHTML(n)}while(r!==i);for(var u=new qe,a=u.sanitizeChildren(He.getTemplateContent(n)||n),l=He.getTemplateContent(n)||n,c=0,f=He.childNodesAsList(l);cBasic Examples
  • - global styles by ::ng-deep
    orange, 75px
    + component styles by ::ng-deep
    orange, 75px
  • diff --git a/src/app/modules/svg-icon-sprite/svg-icon-sprite.component.css b/src/app/modules/svg-icon-sprite/svg-icon-sprite.component.css index 34b8d13..7ca5ce1 100644 --- a/src/app/modules/svg-icon-sprite/svg-icon-sprite.component.css +++ b/src/app/modules/svg-icon-sprite/svg-icon-sprite.component.css @@ -1,3 +1,4 @@ -:host use { +:host use, +:host svg { fill: currentColor; }