mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
13 lines
19 KiB
JavaScript
13 lines
19 KiB
JavaScript
/**
|
|
* (c) Vjacheslav Trushkin <cyberalien@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
* files at https://github.com/iconify/iconify
|
|
*
|
|
* Licensed under Apache 2.0 or GPL 2.0 at your option.
|
|
* If derivative product is not compatible with one of licenses, you can pick one of licenses.
|
|
*
|
|
* @license Apache 2.0
|
|
* @license GPL 2.0
|
|
*/
|
|
"use strict";if(void 0===self.Iconify&&(self.Iconify={isReady:!1},self.SimpleSVG=self.Iconify,function(n,e){var t,i,r,o,s,a,c,l,u,d,f,h,p,v,g,b,m,y,w,_,x,A,O,j,I,E,k,C,L,M,S,F,T,N,P,H,R,V,G={config:{},version:"1.0.7"};function D(e,t){var i;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},(i=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}function Q(){document.removeEventListener("DOMContentLoaded",Q),window.removeEventListener("load",Q),r.DOMReadyCallback()}function z(t,i,e){var n=t;if("_"!==t.slice(0,1)){if(void 0===u[t]){if(!e||void 0===u["_"+t])return;n="_"+t}switch(n){case"API":case"SVGAttributes":Object.keys(i).forEach(function(e){null===i[t]?delete u[n][e]:u[n][e]=i[e]});break;default:u[n]=i}}}function q(e,t){return function(e,t){switch(e){case"rotate":return t=parseInt(t),isNaN(t)?null:t;case"width":case"height":case"inlineHeight":case"inlineTop":case"verticalAlign":return t=parseFloat(t),isNaN(t)?null:t;case"vFlip":case"hFlip":return!!t;case"body":case"parent":return"string"==typeof t?t:null}return t}("rotate",e+t)}function B(e,t){return!!e!=!!t}function Y(e){var i=Object.create(null);return(void 0===e._defaults?[e,v]:[e,e._defaults,v]).forEach(function(t){Object.keys(t).forEach(function(e){"object"!=typeof t[e]&&void 0===i[e]&&(i[e]=t[e])})}),void 0===i.inlineTop&&(i.inlineTop=i.top),void 0===i.inlineHeight&&(i.inlineHeight=i.height),void 0===i.verticalAlign&&(i.height%7==0&&i.height%8!=0?i.verticalAlign=-.143:i.verticalAlign=-.125),i}function W(){return this._icons=Object.create(null),this._aliases=Object.create(null),this._resolved=Object.create(null),this._add=function(e,t,i){var n=e?"_aliases":"_icons";void 0===this._resolved[t.prefix]?(this._resolved[t.prefix]=Object.create(null),this._icons[t.prefix]=Object.create(null),this._aliases[t.prefix]=Object.create(null)):(delete this._icons[t.prefix][t.icon],delete this._aliases[t.prefix][t.icon]),this._resolved[t.prefix][t.icon]=!1,this[n][t.prefix][t.icon]=i},this._resolveIcon=function(e){var t,i,n,r,o,s;if(void 0===this._resolved[e.prefix]||void 0===this._resolved[e.prefix][e.icon])return null;if(!1!==this._resolved[e.prefix][e.icon])return this._resolved[e.prefix][e.icon];if(void 0!==this._icons[e.prefix][e.icon])return this._resolved[e.prefix][e.icon]=Y(this._icons[e.prefix][e.icon]);for(i=0,t=this._aliases[e.prefix][e.icon],n=Object.create(null),Object.keys(t).forEach(function(e){"parent"!==e&&(n[e]=t[e])}),r=t.parent;;){if(5<++i||void 0===this._resolved[e.prefix][r])return this._resolved[e.prefix][e.icon]=null;if(o=void 0===this._icons[e.prefix][r],s=this[o?"_aliases":"_icons"][e.prefix][r],Object.keys(s).forEach(function(e){if(void 0!==n[e])switch(e){case"rotate":n[e]=q(n[e],s[e]);break;case"hFlip":case"vFlip":n[e]=B(n[e],s[e])}else"parent"!==e&&(n[e]=s[e])}),!o)break;r=s.parent}return this._resolved[e.prefix][e.icon]=Y(n)},this.addCollection=function(n){var r=this,o=Object.create(null);g.forEach(function(e){void 0!==n[e]?o[e]=n[e]:void 0!==v[e]&&(o[e]=v[e])}),void 0!==n.icons&&Object.keys(n.icons).forEach(function(e){var t=p(e,n.prefix),i=n.icons[e];void 0!==i.body&&(i._defaults=o,r._add(!1,t,i))}),void 0!==n.aliases&&Object.keys(n.aliases).forEach(function(e){var t=p(e,n.prefix),i=n.aliases[e];if(void 0!==i.parent){if(void 0===n.prefix){if(i.parent.slice(0,t.prefix.length)!==t.prefix)return;i.parent=i.parent.slice(t.prefix.length+1)}r._add(!0,t,i)}})},this.addIcon=function(e,t,i){var n=void 0!==t.parent,r=p(e,i);if(n&&void 0===i){if(t.parent.slice(0,r.prefix.length)!==r.prefix)return;t.parent=t.parent.slice(r.prefix.length+1)}this._add(n,r,t)},this.exists=function(e,t){var i=p(e,t);return void 0!==this._resolved[i.prefix]&&void 0!==this._resolved[i.prefix][i.icon]},this.getIcon=function(e,t){var i=p(e,t);return this._resolveIcon(i)},this.copyIcon=function(e,t){var i,n=this.getIcon(e,t);return null===n?null:(i=Object.create(null),Object.keys(n).forEach(function(e){i[e]=n[e]}),i)},this.list=function(e){var i,n;return void 0!==e?void 0===this._resolved[e]?[]:Object.keys(this._resolved[e]):(i=[],n=this._resolved,Object.keys(n).forEach(function(t){i=i.concat(Object.keys(n[t]).map(function(e){return""===t&&-1===e.indexOf("-")?e:t+":"+e}))}),i)},this}function $(){w&&(w=!1,m.scanDOM())}function J(e,t,i){var n,r,o,s,a;if(1===t)return e;if(i=void 0===i?100:i,"number"==typeof e)return Math.ceil(e*t*i)/i;if("string"!=typeof e)return e;if(null===(n=e.split(O))||!n.length)return e;for(r=[],o=n.shift(),s=j.test(o);;){if(s?(a=parseFloat(o),isNaN(a)?r.push(o):r.push(Math.ceil(a*t*i)/i)):r.push(o),void 0===(o=n.shift()))return r.join("");s=!s}}function K(e,t,i){var n,r,o;for(n=0;n<t.length;n++)if(void 0!==e[r=t[n]])switch(typeof(o=e[r])){case"boolean":return o;case"number":return!!o;case"string":switch(o.toLowerCase()){case"1":case"true":case r:return!0;case"0":case"false":case"":return!1}}return i}function U(e,t,i){var n,r;for(n=0;n<t.length;n++)if(void 0!==e[r=t[n]])return e[r];return i}function X(e,t){var i;return"<?"===e.slice(0,2)&&(i=e.indexOf(">"),e=e.slice(i+1)),e=-1!==(i=(e=e.replace("viewbox=","viewBox=").replace("preserveaspectratio=","preserveAspectRatio=")).indexOf("</"))?e.replace("</",t+"</"):e.replace("/>",">"+t+"</svg>")}t=G,"function"!=typeof window.CustomEvent&&(D.prototype=window.Event.prototype,window.CustomEvent=D),t.event=function(e,t){document.dispatchEvent(new CustomEvent(e,t))},i=n,o=(r=G).config,s=null,r.DOMReadyCallback=function(){r.domready=!0,r.nextInitItem()},r.initTimeout=function(e){function t(){if(null!==s){if(!1!==s.callback())return s.stop(),void r.nextInitItem();s.counter++,10!==s.counter&&25!==s.counter||(window.clearInterval(s.id),s.id=window.setInterval(t,10===s.counter?250:1e3))}}null!==s&&s.stop(),s={id:window.setInterval(t,100),counter:0,callback:e,stop:function(){window.clearInterval(s.id),s=null},nextTick:t}},r.domready=!1,r.ready=!1,r.initQueue=[],r.readyQueue=[],r.nextInitItem=function(){var e;if(!r.ready){if(r.initQueue.length)e=r.initQueue.shift();else{if(!r.domready)return void r.initTimeout(function(){return!r.domready&&document.body&&r.scanDOM(),r.domready});if(!r.readyQueue.length)return r.ready=i.isReady=!0,r.event(o._readyEvent),void r.scanDOM();e=r.readyQueue.shift()}!1!==e()&&r.nextInitItem()}},r.addStylesheet=function(e){var t;if(!document.head||!document.body)return!!r.domready||(e||r.initTimeout(r.addStylesheet.bind(null,!0)),!1);try{(t=document.createElement("style")).type="text/css",t.innerHTML="span.iconify, i.iconify, iconify-icon { display: inline-block; width: 1em; }",null!==document.head.firstChild?document.head.insertBefore(t,document.head.firstChild):document.head.appendChild(t)}catch(e){}return!0},r.initQueue.push(r.addStylesheet.bind(null,!1)),i.ready=function(e){i.isReady?window.setTimeout(e):document.addEventListener(o._readyEvent,e)},window.setTimeout(function(){"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?r.domready=!0:(document.addEventListener("DOMContentLoaded",Q),window.addEventListener("load",Q)),r.nextInitItem()}),(a=G.config).SVGAttributes=Object.create(null),a._imageClass="iconify",a._loadingClass="svg-loading",a._iconAttribute="data-icon",a._rotateAttribute="data-rotate",a._flipAttribute="data-flip",a._inlineModeAttribute="data-inline",a._alignAttribute="data-align",a._appendAttribute="data-icon-append",a._appendedClass="svg-appended",a._readyEvent="IconifyReady",a._webComponentsPolyfill="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.24/webcomponents-lite.min.js",a._classListPolyfill="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20150312/classList.min.js",c=n,l=e,u=G.config,c.setConfig=function(e,t){z(e,t,!1)},c.setCustomAPI=function(e,t){switch(typeof e){case"string":0;break;case"object":if(e instanceof Array){0;break}default:return}e.forEach(function(e){null===t?delete u.API[e]:u.API[e]=t})},c.getConfig=function(e){return void 0===u[e]?void 0===u["_"+e]?null:u["_"+e]:u[e]},["SimpleSVG","Iconify"].forEach(function(e){var t;void 0!==l[e+"Config"]&&"object"==typeof l[e+"Config"]&&(t=l[e+"Config"],Object.keys(t).forEach(function(e){z(e,t[e],!0)}))}),f=(d=G).config,h=e,d.initQueue.push(function(){var e={observer:!1,classList:!1},t={observer:!1,classList:!1};function i(e){var t;return!e.length||(document.head?((t=document.createElement("script")).setAttribute("src",e),t.setAttribute("type","text/javascript"),document.head.appendChild(t),!0):d.domready)}function n(){if("classList"in document.createElement("div"))return 1;t.classList||(t.classList=i(f._classListPolyfill))}function r(){return h.MutationObserver&&h.WeakMap||t.observer||(t.observer=i(f._webComponentsPolyfill)),1}return e.classList=!n(),e.observer=!r(),!e.classList&&!e.observer||(d.initTimeout(function(){return!(e.observer&&!r()||e.classList&&!n())}),!1)}),G.getPrefix=function(e,t){var i;return"string"==typeof t&&""!==t?{prefix:t,icon:e}:2===(i=e.split(":")).length?{prefix:i[0],icon:i[1]}:1<(i=e.split("-")).length?{prefix:t=i.shift(),icon:i.join("-")}:{prefix:"",icon:e}},p=G.getPrefix,v={left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1},g=["left","top","width","height","body","rotate","vFlip","hFlip","inlineTop","inlineHeight","verticalAlign"],W.mergeFlip=B,W.mergeRotation=q,W.blankIcon=function(){return Y({body:"",width:16,height:16})},G.Storage=W,b=n,y=e,w=!1,_=new(m=G).Storage,b.addCollection=function(e,t){_.addCollection(e),w||!0===t||(w=!0,window.setTimeout($,0))},b.addIcon=function(e,t,i){_.addIcon(e,t),w||!0===i||(w=!0,window.setTimeout($,0))},b.iconExists=_.exists.bind(_),b.getIcon=_.copyIcon.bind(_),b.listIcons=_.list.bind(_),["SimpleSVG","Iconify"].forEach(function(e){void 0!==y[e+"Preload"]&&y[e+"Preload"]instanceof Array&&y[e+"Preload"].forEach(function(e){"object"==typeof e&&void 0!==e.icons&&b.addCollection(e)})}),x=G.Storage,A=G.config,O=/(-?[0-9.]*[0-9]+[0-9.]*)/g,j=/^-?[0-9.]*[0-9]+[0-9.]*$/g,I=["width","height","inline"],E=["title"],k=0,G.SVG=function(_){return _=_||x.blankIcon(),this.item=_,this.height=function(e,t,i){return void 0===e?t?this.item.inlineHeight:this.item.height:J(e,(t?this.item.inlineHeight:this.item.height)/this.item.width,i)},this.width=function(e,t,i){return void 0===e?this.item.width:J(e,this.item.width/(t?this.item.inlineHeight:this.item.height),i)},this.defaultAttributes=function(){return{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",focusable:"false"}},this.preserveAspectRatio=function(e,t,i){var n="";switch(e){case"left":n+="xMin";break;case"right":n+="xMax";break;default:n+="xMid"}switch(t){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=!0===i?" slice":" meet"},this.htmlspecialchars=function(e){switch(typeof e){case"boolean":case"number":return e+"";case"string":return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}return""},this.attributes=function(t){var e,i,n,r,o,s,a,c,l,u,d,f,h,p,v=this,g={horizontal:"center",vertical:"middle",crop:!1},b={rotate:_.rotate,hFlip:_.hFlip,vFlip:_.vFlip},m="",y=this.defaultAttributes(),w=[];if(s=K(t="object"==typeof t?t:Object.create(null),[A._inlineModeAttribute,"inline"],!0),u=K(t,[A._appendAttribute],!1),e={left:_.left,top:s?_.inlineTop:_.top,width:_.width,height:s?_.inlineHeight:_.height},"string"==typeof t[A._flipAttribute]&&t[A._flipAttribute].split(/[\s,]+/).forEach(function(e){switch(e=e.toLowerCase()){case"horizontal":b.hFlip=!b.hFlip;break;case"vertical":b.vFlip=!b.vFlip}}),void 0!==t[A._rotateAttribute])if("number"==typeof(c=t[A._rotateAttribute]))b.rotate+=c;else if("string"==typeof c)if(""===(d=c.replace(/^-?[0-9.]*/,"")))c=parseInt(c),isNaN(c)||(b.rotate+=c);else if(d!==c){switch(l=!1,d){case"%":l=25;break;case"deg":l=90}l&&(c=parseInt(c.slice(0,c.length-d.length)),isNaN(c)||(b.rotate+=Math.round(c/l)))}switch(b.hFlip?b.vFlip?b.rotate+=2:(w.push("translate("+(e.width+e.left)+" "+(0-e.top)+")"),w.push("scale(-1 1)"),e.top=e.left=0):b.vFlip&&(w.push("translate("+(0-e.left)+" "+(e.height+e.top)+")"),w.push("scale(1 -1)"),e.top=e.left=0),b.rotate%4){case 1:p=e.height/2+e.top,w.unshift("rotate(90 "+p+" "+p+")"),0===e.left&&0===e.top||(p=e.left,e.left=e.top,e.top=p),e.width!==e.height&&(p=e.width,e.width=e.height,e.height=p);break;case 2:w.unshift("rotate(180 "+(e.width/2+e.left)+" "+(e.height/2+e.top)+")");break;case 3:p=e.width/2+e.left,w.unshift("rotate(-90 "+p+" "+p+")"),0===e.left&&0===e.top||(p=e.left,e.left=e.top,e.top=p),e.width!==e.height&&(p=e.width,e.width=e.height,e.height=p)}return i=U(t,["data-width","width"],null),n=U(t,["data-height","height"],null),null===i&&null===n&&(n="1em"),null!==i&&null!==n?(r=i,o=n):null!==i?o=J(r=i,e.height/e.width):r=J(o=n,e.width/e.height),!1!==r&&(y.width="auto"===r?e.width:r),!1!==o&&(y.height="auto"===o?e.height:o),s&&0!==_.verticalAlign?m+="vertical-align: "+(h=_.verticalAlign+"em")+";":h="","string"==typeof t[A._alignAttribute]&&t[A._alignAttribute].toLowerCase().split(/[\s,]+/).forEach(function(e){switch(e){case"left":case"right":case"center":g.horizontal=e;break;case"top":case"bottom":case"middle":g.vertical=e;break;case"crop":g.crop=!0;break;case"meet":g.crop=!1}}),m+="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);",y.style=m+(void 0===t.style?"":t.style),y.preserveAspectRatio=this.preserveAspectRatio(g.horizontal,g.vertical,g.crop),y.viewBox=e.left+" "+e.top+" "+e.width+" "+e.height,a=function(i){var e,n,t=/\sid="(\S+)"/g,r=[];function o(e,t,i){for(var n=0;-1!==(n=i.indexOf(e,n));)i=i.slice(0,n)+t+i.slice(n+e.length),n+=t.length;return i}for(;e=t.exec(i);)r.push(e[1]);return r.length&&(n="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",r.forEach(function(e){var t=n+k;k++,i=o('="'+e+'"','="'+t+'"',i),i=o('="#'+e+'"','="#'+t+'"',i),i=o("(#"+e+")","(#"+t+")",i)})),i}(this.item.body),w.length&&(a='<g transform="'+w.join(" ")+'">'+a+"</g>"),f=Object.create(null),Object.keys(t).forEach(function(e){void 0===y[e]&&(-1!==E.indexOf(e)?a="<"+e+">"+v.htmlspecialchars(t[e])+"</"+e+">"+a:-1===I.indexOf(e)&&(f[e]=t[e]))}),{attributes:y,elementAttributes:f,body:a,append:u,verticalAlign:h}},this},L=(C=G).config._loadingClass,C.newImage=function(e,t,i){return{element:e,icon:t,parser:i,loading:e.classList.contains(L)}},C.parsedImage=function(e,t){return{element:e,icon:t}},C.getImageAttributes=function(t){var e,i,n=Object.create(null);if(!t.element.hasAttributes())return n;for(e=0;e<t.element.attributes.length;e++)i=t.element.attributes[e],n[i.name]=i.value;return t.parser&&void 0!==t.parser.filterAttributes&&(n=t.parser.filterAttributes(t,n)),void 0!==n.class&&(n.class=n.class.split(" ").filter(function(e){return e!==L}),t.parser&&void 0!==t.parser.filterClasses&&(n.class=t.parser.filterClasses(t,n.class)),n.class=n.class.join(" ")),void 0!==t.attributes&&Object.keys(t.attributes).forEach(function(e){n[e]=t.attributes[e]}),n},function(n,f,e){var s=e._imageClass,t=e._loadingClass,i=e._appendedClass,a=e._iconAttribute,r=e._inlineModeAttribute,o=":not(svg):not(."+i+")",c=":not(."+t+")",l="."+t,h={iconify:{selector:"."+s,selectorAll:"."+s+o,selectorNew:"."+s+o+c,selectorLoading:"."+s+o+l,icon:function(e){var t,i=e.getAttribute(a);if("string"==typeof i)return i;for(var n=0;n<e.classList.length;n++)if(5<(t=e.classList[n]).length&&"icon:"===t.slice(0,5))return t.slice(5);return""},filterClasses:function(e,t){var i,n,r;for(n=0;n<t.length;n++)"icon-"===(i=t[n]).slice(0,5)&&2===(i=i.slice(5).split(":")).length&&(r="data-"+i[0],void 0===e.attributes&&(e.attributes=Object.create(null)),e.attributes[r]=i[1]);return t}}},p=Object.keys(h);n.addFinder=function(e,t){void 0===t.selectorAll&&(t.selectorAll=t.selector+o),void 0===t.selectorNew&&(t.selectorNew=t.selector+o+c),void 0===t.selectorLoading&&(t.selectorLoading=t.selector+o+l),h[e]=t,p=Object.keys(h),n.isReady&&n.scanDOM()},n.addTag=function(e,i,t){n.addFinder("tag-"+e,{selector:e,icon:null==t?h.iconify.icon:t,filterAttributes:function(e,t){return void 0===t[r]&&(t[r]=i),t},filterClasses:h.iconify.filterClasses})};try{"object"==typeof Reflect&&"object"==typeof customElements&&Object.setPrototypeOf&&(Object.setPrototypeOf(u.prototype,HTMLElement.prototype),Object.setPrototypeOf(u,HTMLElement),customElements.define("iconify-icon",u))}catch(e){}function u(){return Reflect.construct(HTMLElement,[],u)}n.addTag("iconify-icon",!1),f.findNewImages=function(c,l){var u=[],d=[];return(c=void 0===c?void 0===e._root?document.body:e._root:c)&&p.forEach(function(e){var t,i,n,r,o=h[e],s=!0===l?o.selectorLoading:!1===l?o.selectorNew:o.selectorAll,a=c.querySelectorAll(s);for(t=0;t<a.length;t++)i=a[t],(n=o.icon(i))&&-1===d.indexOf(i)&&(d.push(i),r=f.newImage(i,n,o),u.push(r))}),u},f.findParsedImages=function(e){var t,i,n,r=[],o=e.querySelectorAll("svg."+s);for(t=0;t<o.length;t++)(n=(i=o[t]).getAttribute(a))&&r.push(f.parsedImage(i,n));return r}}(n,G,G.config),G.loadImage=function(e,t){var i=G.getPrefix(e.icon);return n.iconExists(i.icon,i.prefix)},n.pauseObserving=function(){},n.resumeObserving=function(){},M=n,F=(S=G).config,T=F._iconAttribute,N=F._loadingClass,P=F._imageClass,H=F._appendedClass,S.renderSVG=function(t){var e,i,n,r,o,s,a,c,l,u,d,f=S.getImageAttributes(t),h=M.getIcon(t.icon);for(f[T]=t.icon,e=new S.SVG(h),n=document.createElement("svg"),o=e.attributes(f),Object.keys(o.attributes).forEach(function(e){if(d=o.attributes[e],"style"!==e||"string"==typeof(d=t.element.getAttribute("style"))&&d.length)try{n.setAttribute(e,d)}catch(e){}}),Object.keys(o.elementAttributes).forEach(function(e){try{(o.append?t.element:n).setAttribute(e,o.elementAttributes[e])}catch(e){}}),t.loading&&(n.classList.remove(N),o.append&&t.element.classList.remove(N)),n.classList.add(P),s=X(n.outerHTML,o.body),(r=document.createElement("span")).innerHTML=s,i=r.childNodes[0],o.append?(t.element.classList.add(H),t.element.appendChild(i)):(t.element.parentNode.replaceChild(i,t.element),t.element=i),a=i.style,c=t.element.style,o.verticalAlign&&(a.verticalAlign=o.verticalAlign),a.transform="rotate(360deg)",l=0;l<c.length;l++)a[u=c[l]]=c[u];delete t.parser,delete t.loading},M.getSVGObject=function(e,t){return!!M.iconExists(e)&&new S.SVG(M.getIcon(e)).attributes(t,!1)},M.getSVG=function(e,t){var i,n;return!1!==(n=M.getSVGObject(e,t))&&(i=document.createElement("svg"),Object.keys(n.attributes).forEach(function(e){try{i.setAttribute(e,n.attributes[e])}catch(e){}}),X(i.outerHTML,n.body))},R=n,(V=G).scanDOM=function(){var t=!1;function e(){V.findNewImages().forEach(function(e){V.loadImage(e)&&(t||(t=!0,R.pauseObserving()),V.renderSVG(e))})}if(V.ready)e();else try{e()}catch(e){}t&&R.resumeObserving()},R.scanDOM=V.scanDOM,R.getVersion=function(){return V.version}}(self.Iconify,self)),"object"==typeof exports)try{exports.__esModule=!0,exports.default=self.Iconify}catch(e){} |