text: !function(i,c){var r,a,l="createElement",g="getElementsByTagName",b="length",E="style",s="title",h="undefined",k="setAttribute",w="getAttribute",x=null,y="__svgInject",A="--inject-",C=new RegExp(A+"\\d+","g"),S="LOAD_FAIL",t="SVG_NOT_SUPPORTED",I="SVG_INVALID",d=["src","alt","onload","onerror"],L=c[l]("a"),j=typeof SVGRect!=h,o={useCache:!0,copyAttributes:!0,makeIdsUnique:!0},G={clipPath:["clip-path"],"color-profile":x,cursor:x,filter:x,linearGradient:["fill","stroke"],marker:["marker",
  "marker-end","marker-mid","marker-start"],mask:x,pattern:["fill","stroke"],radialGradient:["fill","stroke"]},u=1,f=2,N=1;function O(e){return(r=r||new XMLSerializer).serializeToString(e)}function T(e,r){var t,n,i,o,a=A+N++,f=/url\("?#([a-zA-Z][\w:.=-]*)"?\)/g,u=e.querySelectorAll("[id]"),c=r?[]:x,l={},s=[],d=!1;if(u[b]){for(i=0;i<u[b];i++)(n=u[i].localName)in G&&(l[n]=1);for(n in l)(G[n]||[n]).forEach(function(e){s.indexOf(e)<0&&s.push(e)});s[b]&&s.push(E);var v,p,m,h=e[g]("*"),y=e;for(
  i=-1;y!=x;){if(y.localName==E)(m=(p=y.textContent)&&p.replace(f,function(e,r){return c&&(c[r]=1),"url(#"+r+a+")"}))!==p&&(y.textContent=m);else if(y.hasAttributes()){for(o=0;o<s[b];o++)v=s[o],(m=(p=y[w](v))&&p.replace(f,function(e,r){return c&&(c[r]=1),"url(#"+r+a+")"}))!==p&&y[k](v,m);["xlink:href","href"].forEach(function(e){var r=y[w](e);/^\s*#/.test(r)&&(r=r.trim(),y[k](e,r+a),c&&(c[r.substring(1)]=1))})}y=h[++i]}for(i=0;i<u[b];i++)t=u[i],c&&!c[t.id]||(t.id+=a,d=!0)}return d}function P(e,r,t
  ,n){if(r){r[k]("data-inject-url",t);var i=e.parentNode;if(i){n.copyAttributes&&function(e,r){for(var t,n,i,o=e.attributes,a=0;a<o[b];a++)if(n=(t=o[a]).name,-1==d.indexOf(n))if(i=t.value,n==s){var f,u=r.firstElementChild;u&&u.localName.toLowerCase()==s?f=u:(f=c[l+"NS"]("http://www.w3.org/2000/svg",s),r.insertBefore(f,u)),f.textContent=i}else r[k](n,i)}(e,r);var o=n.beforeInject,a=o&&o(e,r)||r;i.replaceChild(a,e),e[y]=u,p(e);var f=n.afterInject;f&&f(e,a)}}else _(e,n)}function v(){for(var e={},
  r=arguments,t=0;t<r[b];t++){var n=r[t];for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}function V(e,r){if(r){var t;try{n=e,t=(a=a||new DOMParser).parseFromString(n,"text/xml")}catch(o){return x}return t[g]("parsererror")[b]?x:t.documentElement}var n,i=c.createElement("div");return i.innerHTML=e,i.firstElementChild}function p(e){e.removeAttribute("onload")}function n(e){console.error("SVGInject: "+e)}function m(e,r,t){e[y]=f,t.onFail?t.onFail(e,r):n(r)}function _(e,r){p(e),m(e,I,r)}
  function D(e,r){p(e),m(e,t,r)}function F(e,r){m(e,S,r)}function M(e){e.onload=x,e.onerror=x}function q(e){n("no img element")}var e=function R(e,r){var t=v(o,r),m={};function n(a,f){f=v(t,f);var e=function(r){var e=function(){var e=f.onAllFinish;e&&e(),r&&r()};if(a&&typeof a[b]!=h){var t=0,n=a[b];if(0==n)e();else for(var i=function(){++t==n&&e()},o=0;o<n;o++)u(a[o],f,i)}else u(a,f,e)};return typeof Promise==h?e():new Promise(e)}function u(u,c,e){if(u){var r=u[y];if(r)Array.isArray(r)?r.push(e
  ):e();else{if(M(u),!j)return D(u,c),void e();var t=c.beforeLoad,n=t&&t(u)||u[w]("src");if(!n)return""===n&&F(u,c),void e();var i=[];u[y]=i;var l=function(){e(),i.forEach(function(e){e()})},s=(f=n,L.href=f,L.href),d=c.useCache,v=c.makeIdsUnique,p=function(r){d&&(m[s].forEach(function(e){e(r)}),m[s]=r)};if(d){var o,a=function(e){if(e===S)F(u,c);else if(e===I)_(u,c);else{var r,t=e[0],n=e[1],i=e[2];v&&(t===x?(t=T(r=V(n,!1),!1),e[0]=t,e[2]=t&&O(r)):t&&(n=i.replace(C,A+N++))),r=r||V(n,!1),P(u,r,s,c)}
  l()};if(typeof(o=m[s])!=h)return void(o.isCallbackQueue?o.push(a):a(o));(o=[]).isCallbackQueue=!0,m[s]=o}!function(e,r,t){if(e){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4==n.readyState){var e=n.status;200==e?r(n.responseXML,n.responseText.trim()):400<=e?t():0==e&&t()}},n.open("GET",e,!0),n.send()}}(s,function(e,r){var t=e instanceof Document?e.documentElement:V(r,!0),n=c.afterLoad;if(n){var i=n(t,r)||t;if(i){var o="string"==typeof i;r=o?i:O(t),t=o?V(i,!0):i}}if(
  t instanceof SVGElement){var a=x;if(v&&(a=T(t,!1)),d){var f=a&&O(t);p([a,r,f])}P(u,t,s,c)}else _(u,c),p(I);l()},function(){F(u,c),p(S),l()})}}else q();var f}return j&&function(e){var r=c[g]("head")[0];if(r){var t=c[l](E);t.type="text/css",t.appendChild(c.createTextNode(e)),r.appendChild(t)}}('img[onload^="'+e+'("]{visibility:hidden;}'),n.setOptions=function(e){t=v(t,e)},n.create=R,n.err=function(e,r){e?e[y]!=f&&(M(e),j?(p(e),F(e,t)):D(e,t),r&&(p(e),e.src=r)):q()},i[e]=n}("SVGInject")
  ;"object"==typeof module&&"object"==typeof module.exports&&(module.exports=e)}(window,document);