function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach((function(e){r(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var o=["width","height","viewBox"],c=["tabindex"],i={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width,a=e.height,u=e.viewBox,l=void 0===u?"0 0 ".concat(r," ").concat(a):u,b=n(e,o),f=b.tabindex,O=n(b,c),p=t(t(t({},i),O),{},{width:r,height:a,viewBox:l});return p["aria-label"]||p["aria-labelledby"]||p.title?(p.role="img",null!=f&&(p.focusable="true",p.tabindex=f)):p["aria-hidden"]=!0,p}function u(e){var t=e.elem,r=void 0===t?"svg":t,n=e.attrs,o=void 0===n?{}:n,c=e.content,i=(void 0===c?[]:c).map(u).join("");return"svg"!==r?"<".concat(r," ").concat(l(o),">").concat(i,"</").concat(r,">"):"<".concat(r," ").concat(l(a(o)),">").concat(i,"</").concat(r,">")}function l(e){return Object.keys(e).reduce((function(t,r,n){var o="".concat(r,'="').concat(e[r],'"');return 0===n?o:t+" "+o}),"")}export{i as defaultAttributes,l as formatAttributes,a as getAttributes,u as toString};
//# sourceMappingURL=index.js.map
