{"size": 1174, "ext": "js", "max_stars_repo_path": "dist/svgInline.min.js", "max_stars_repo_name": "jurjens/svgInline", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dist/svgInline.min.js", "max_issues_repo_name": "jurjens/svgInline", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dist/svgInline.min.js", "max_forks_repo_name": "jurjens/svgInline", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 1174.0, "max_line_length": 1174, "alphanum_fraction": 0.7393526405}
!function(t){var e=function(){this.storage=[],this.observer=null,this.observerSelector=null};e.prototype.observe=function(t){this.observerSelector=t,this.observer=new MutationObserver(function(t){t.forEach(function(t){this.handleMutation(t)}.bind(this))}.bind(this)),this.observer.observe(document.querySelector("body"),{childList:!0})},e.prototype.handleMutation=function(e){e.addedNodes.length&&e.addedNodes.forEach(function(e){e.nodeType===Node.ELEMENT_NODE&&e.matches(this.observerSelector)&&this.replace(t(e))}.bind(this))},e.prototype.replace=function(e){var r={id:e.attr("id"),class:e.attr("class"),src:e.attr("inline-src")||e.attr("src")},s=this.getSVG(r.src);t.when(s.promise).then(function(s){var o=t(s).find("svg").clone();void 0!==r.id&&o.attr("id",r.id),void 0!==r.class&&o.attr("class",r.class+" replaced-svg"),o.removeAttr("xmlns:a"),e.replaceWith(o)})},e.prototype.getSVG=function(e){if(r=this.find(e))return r;var r={src:e,promise:t.get(e).promise()};return this.storage.push(r),r},e.prototype.find=function(t){for(var e in this.storage)if(this.storage.hasOwnProperty(e)&&this.storage[e].src===t)return this.storage[e];return!1},window.SVGInline=e}(jQuery);