@iconify/iconify
Advanced tools
Comparing version 2.1.0-beta.1 to 2.1.0-beta.2
@@ -121,2 +121,6 @@ | ||
/** | ||
* List all API providers (from config) | ||
*/ | ||
listAPIProviders: () => string[]; | ||
/** | ||
* Merge parameters | ||
@@ -123,0 +127,0 @@ */ |
@@ -13,2 +13,2 @@ /** | ||
*/ | ||
var Iconify=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}var t=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fullIcon=n.iconDefaults=n.minifyProps=n.matchName=void 0,n.matchName=/^[a-z0-9]+(-[a-z0-9]+)*$/,n.minifyProps=["width","height","top","left"],n.iconDefaults=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1}),n.fullIcon=function(e){return Object.assign({},n.iconDefaults,e)}})),r=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeIconData=void 0,n.mergeIconData=function(e,n){var r=Object.assign({},e);for(var o in t.iconDefaults){var i=o;if(void 0!==n[i]){var a=n[i];if(void 0===r[i]){r[i]=a;continue}switch(i){case"rotate":r[i]=(r[i]+a)%4;break;case"hFlip":case"vFlip":r[i]=a!==r[i];break;default:r[i]=a}}}return r}})),o=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parseIconSet=void 0;var o=Object.keys(t.iconDefaults);function i(e,n,t,o){void 0===o&&(o=0);var a=e.parent;if(void 0!==n[a])return r.mergeIconData(n[a],e);if(void 0!==t[a]){if(o>2)return null;var c=i(t[a],n,t,o+1);if(c)return r.mergeIconData(c,e)}return null}n.parseIconSet=function(e,n,r){void 0===r&&(r="none");var a=[];if("object"!=typeof e)return"none"!==r&&a;if(e.not_found instanceof Array&&e.not_found.forEach((function(e){n(e,null),"all"===r&&a.push(e)})),"object"!=typeof e.icons)return"none"!==r&&a;var c=Object.create(null);o.forEach((function(n){void 0!==e[n]&&"object"!=typeof e[n]&&(c[n]=e[n])}));var u=e.icons;if(Object.keys(u).forEach((function(e){var r=u[e];"string"==typeof r.body&&(n(e,Object.freeze(Object.assign({},t.iconDefaults,c,r))),a.push(e))})),"object"==typeof e.aliases){var f=e.aliases;Object.keys(f).forEach((function(e){var r=i(f[e],u,f,1);r&&(n(e,Object.freeze(Object.assign({},t.iconDefaults,c,r))),a.push(e))}))}return"none"===r?a.length>0:a}})),i=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.validateIcon=n.stringToIcon=void 0;n.stringToIcon=function(e,t,r,o){void 0===o&&(o="");var i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;o=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){var a=i.pop(),c=i.pop(),u={provider:i.length>0?i[0]:o,prefix:c,name:a};return t&&!n.validateIcon(u)?null:u}var f=i[0],s=f.split("-");if(s.length>1){var l={provider:o,prefix:s.shift(),name:s.join("-")};return t&&!n.validateIcon(l)?null:l}if(r&&""===o){var d={provider:o,prefix:"",name:f};return t&&!n.validateIcon(d,r)?null:d}return null};n.validateIcon=function(e,n){return!!e&&!(""!==e.provider&&!e.provider.match(t.matchName)||!(n&&""===e.prefix||e.prefix.match(t.matchName))||!e.name.match(t.matchName))}})),a=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.listIcons=n.getIcon=n.iconExists=n.addIcon=n.addIconSet=n.getStorage=n.newStorage=void 0;var r=Object.create(null);function i(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:Object.create(null)}}function a(e,n){void 0===r[e]&&(r[e]=Object.create(null));var t=r[e];return void 0===t[n]&&(t[n]=i(e,n)),t[n]}n.newStorage=i,n.getStorage=a,n.addIconSet=function(e,n,t){void 0===t&&(t="none");var r=Date.now();return o.parseIconSet(n,(function(n,t){null===t?e.missing[n]=r:e.icons[n]=t}),t)},n.addIcon=function(e,n,r){try{if("string"==typeof r.body)return e.icons[n]=Object.freeze(t.fullIcon(r)),!0}catch(e){}return!1},n.iconExists=function(e,n){return void 0!==e.icons[n]},n.getIcon=function(e,n){var t=e.icons[n];return void 0===t?null:t},n.listIcons=function(e,n){var t=[];return("string"==typeof e?[e]:Object.keys(r)).forEach((function(e){("string"==typeof e&&"string"==typeof n?[n]:void 0===r[e]?[]:Object.keys(r[e])).forEach((function(n){var r=a(e,n),o=Object.keys(r.icons).map((function(t){return(""!==e?"@"+e+":":"")+n+":"+t}));t=t.concat(o)}))})),t}})),c=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storageFunctions=n.addCollection=n.addIcon=n.getIconData=n.allowSimpleNames=void 0;var t=!1;function r(e){var n="string"==typeof e?i.stringToIcon(e,!0,t):e;return n?a.getIcon(a.getStorage(n.provider,n.prefix),n.name):null}function c(e,n){var r=i.stringToIcon(e,!0,t);if(!r)return!1;var o=a.getStorage(r.provider,r.prefix);return a.addIcon(o,r.name,n)}function u(e,n){if("object"!=typeof e)return!1;if("string"!=typeof n&&(n="string"==typeof e.provider?e.provider:""),t&&""===n&&("string"!=typeof e.prefix||""===e.prefix)){var r=!1;return o.parseIconSet(e,(function(e,n){null!==n&&c(e,n)&&(r=!0)})),r}if("string"!=typeof e.prefix||!i.validateIcon({provider:n,prefix:e.prefix,name:"a"}))return!1;var u=a.getStorage(n,e.prefix);return!!a.addIconSet(u,e)}n.allowSimpleNames=function(e){return"boolean"==typeof e&&(t=e),t},n.getIconData=r,n.addIcon=c,n.addCollection=u,n.storageFunctions={iconExists:function(e){return null!==r(e)},getIcon:function(e){var n=r(e);return n?Object.assign({},n):null},listIcons:a.listIcons,addIcon:c,addCollection:u}})),u=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.replaceIDs=void 0;var t=/\sid="(\S+)"/g,r="([^A-Za-z0-9_-])";var o="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",i=0;n.replaceIDs=function(e,n){void 0===n&&(n=o);for(var a,c=[];a=t.exec(e);)c.push(a[1]);return c.length?(c.forEach((function(t){var o="function"==typeof n?n():n+i++;e=e.replace(new RegExp(r+"("+(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")")+r,"g"),"$1"+o+"$3")})),e):e}})),f=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.calculateSize=void 0;var t=/(-?[0-9.]*[0-9]+[0-9.]*)/g,r=/^-?[0-9.]*[0-9]+[0-9.]*$/g;n.calculateSize=function(e,n,o){if(1===n)return e;if(o=void 0===o?100:o,"number"==typeof e)return Math.ceil(e*n*o)/o;if("string"!=typeof e)return e;var i=e.split(t);if(null===i||!i.length)return e;for(var a=[],c=i.shift(),u=r.test(c);;){if(u){var f=parseFloat(c);isNaN(f)?a.push(c):a.push(Math.ceil(f*n*o)/o)}else a.push(c);if(void 0===(c=i.shift()))return a.join("");u=!u}}})),s=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeCustomisations=n.defaults=void 0,n.defaults=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0}),n.mergeCustomisations=function(e,n){var t={};for(var r in e){var o=r;if(t[o]=e[o],void 0!==n[o]){var i=n[o];switch(o){case"inline":case"slice":"boolean"==typeof i&&(t[o]=i);break;case"hFlip":case"vFlip":!0===i&&(t[o]=!t[o]);break;case"hAlign":case"vAlign":"string"==typeof i&&""!==i&&(t[o]=i);break;case"width":case"height":("string"==typeof i&&""!==i||"number"==typeof i&&i||null===i)&&(t[o]=i);break;case"rotate":"number"==typeof i&&(t[o]+=i)}}}return t}})),l=n((function(e,n){function t(e){var n="";switch(e.hAlign){case"left":n+="xMin";break;case"right":n+="xMax";break;default:n+="xMid"}switch(e.vAlign){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}Object.defineProperty(n,"__esModule",{value:!0}),n.iconToSVG=void 0,n.iconToSVG=function(e,n){var r,o,i={left:e.left,top:e.top,width:e.width,height:e.height},a=e.body;[e,n].forEach((function(e){var n,t=[],r=e.hFlip,o=e.vFlip,c=e.rotate;switch(r?o?c+=2:(t.push("translate("+(i.width+i.left)+" "+(0-i.top)+")"),t.push("scale(-1 1)"),i.top=i.left=0):o&&(t.push("translate("+(0-i.left)+" "+(i.height+i.top)+")"),t.push("scale(1 -1)"),i.top=i.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n=i.height/2+i.top,t.unshift("rotate(90 "+n+" "+n+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left)+" "+(i.height/2+i.top)+")");break;case 3:n=i.width/2+i.left,t.unshift("rotate(-90 "+n+" "+n+")")}c%2==1&&(0===i.left&&0===i.top||(n=i.left,i.left=i.top,i.top=n),i.width!==i.height&&(n=i.width,i.width=i.height,i.height=n)),t.length&&(a='<g transform="'+t.join(" ")+'">'+a+"</g>")})),null===n.width&&null===n.height?(o="1em",r=f.calculateSize(o,i.width/i.height)):null!==n.width&&null!==n.height?(r=n.width,o=n.height):null!==n.height?(o=n.height,r=f.calculateSize(o,i.width/i.height)):(r=n.width,o=f.calculateSize(r,i.height/i.width)),"auto"===r&&(r=i.width),"auto"===o&&(o=i.height);var c={attributes:{width:r="string"==typeof r?r:r+"",height:o="string"==typeof o?o:o+"",preserveAspectRatio:t(n),viewBox:i.left+" "+i.top+" "+i.width+" "+i.height},body:a};return n.inline&&(c.inline=!0),c}})),d=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.builderFunctions=void 0,n.builderFunctions={replaceIDs:u.replaceIDs,calculateSize:f.calculateSize,buildIcon:function(e,n){return l.iconToSVG(t.fullIcon(e),s.mergeCustomisations(s.defaults,n))}}})),v=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeCache=n.loadCache=n.mock=n.emptyList=n.count=n.config=void 0;var t="iconify2",r="iconify",o="iconify-count",i="iconify-version",c=36e5;n.config={local:!0,session:!0};var u=!1;n.count={local:0,session:0},n.emptyList={local:[],session:[]};var f="undefined"==typeof window?{}:window;function s(e){var t=e+"Storage";try{if(f&&f[t]&&"number"==typeof f[t].length)return f[t]}catch(e){}return n.config[e]=!1,null}function l(e,t,r){try{return e.setItem(o,r+""),n.count[t]=r,!0}catch(e){return!1}}function d(e){var n=e.getItem(o);if(n){var t=parseInt(n);return t||0}return 0}n.mock=function(e){u=!1,f=e};n.loadCache=function(){if(!u){u=!0;var e=Math.floor(Date.now()/c)-168;for(var o in n.config)f(o)}function f(o){var c=s(o);if(c){var u=function(n){var t=r+n,o=c.getItem(t);if("string"!=typeof o)return!1;var i=!0;try{var u=JSON.parse(o);if("object"!=typeof u||"number"!=typeof u.cached||u.cached<e||"string"!=typeof u.provider||"object"!=typeof u.data||"string"!=typeof u.data.prefix)i=!1;else{var f=u.provider,s=u.data.prefix,l=a.getStorage(f,s);i=a.addIconSet(l,u.data)}}catch(e){i=!1}return i||c.removeItem(t),i};try{var f=c.getItem(i);if(f!==t)return f&&function(e){try{for(var n=d(e),t=0;t<n;t++)e.removeItem(r+t)}catch(e){}}(c),void function(e,n){try{e.setItem(i,t)}catch(e){}l(e,n,0)}(c,o);for(var v=d(c),p=v-1;p>=0;p--)u(p)||(p===v-1?v--:n.emptyList[o].push(p));l(c,o,v)}catch(e){}}}};n.storeCache=function(e,t){function o(o){if(!n.config[o])return!1;var i=s(o);if(!i)return!1;var a=n.emptyList[o].shift();if(void 0===a&&!l(i,o,(a=n.count[o])+1))return!1;try{var u={cached:Math.floor(Date.now()/c),provider:e,data:t};i.setItem(r+a,JSON.stringify(u))}catch(e){return!1}return!0}u||n.loadCache(),o("local")||o("session")}})),p=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.cache=void 0,n.cache={}})),h=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.toggleBrowserCache=void 0,n.toggleBrowserCache=function(e,n){switch(e){case"local":case"session":v.config[e]=n;break;case"all":for(var t in v.config)v.config[t]=n}}})),g=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultConfig=void 0,n.defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1}})),m=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sendQuery=void 0,n.sendQuery=function(e,n,t,r,o){var i,a=e.resources.length,c=e.random?Math.floor(Math.random()*a):e.index;if(e.random){var u=e.resources.slice(0);for(i=[];u.length>1;){var f=Math.floor(Math.random()*u.length);i.push(u[f]),u=u.slice(0,f).concat(u.slice(f+1))}i=i.concat(u)}else i=e.resources.slice(c).concat(e.resources.slice(0,c));var s=Date.now(),l="pending",d=0,v=void 0,p=null,h=[],g=[];function m(){p&&(clearTimeout(p),p=null)}function b(){"pending"===l&&(l="aborted"),m(),h.forEach((function(e){e.abort&&e.abort(),"pending"===e.status&&(e.status="aborted")})),h=[]}function y(e,n){n&&(g=[]),"function"==typeof e&&g.push(e)}function I(){return{startTime:s,payload:n,status:l,queriesSent:d,queriesPending:h.length,subscribe:y,abort:b}}function j(){l="failed",g.forEach((function(e){e(void 0,v)}))}function O(){h=h.filter((function(e){return"pending"===e.status&&(e.status="aborted"),e.abort&&e.abort(),!1}))}function x(){if("pending"===l){m();var r=i.shift();if(void 0!==r){var a={getQueryStatus:I,status:"pending",resource:r,done:function(n,t){!function(n,t,r){var a=void 0===t;switch(h=h.filter((function(e){return e!==n})),l){case"pending":break;case"failed":if(a||!e.dataAfterTimeout)return;break;default:return}if(a)return void 0!==r&&(v=r),void(h.length||(i.length?x():j()));if(m(),O(),o&&!e.random){var c=e.resources.indexOf(n.resource);-1!==c&&c!==e.index&&o(c)}l="completed",g.forEach((function(e){e(t)}))}(a,n,t)}};h.push(a),d++;var c="function"==typeof e.rotate?e.rotate(d,s):e.rotate;p=setTimeout(x,c),t(r,n,a)}else{if(h.length){var u="function"==typeof e.timeout?e.timeout(s):e.timeout;if(u)return void(p=setTimeout((function(){m(),"pending"===l&&(O(),j())}),u))}j()}}}return"function"==typeof r&&g.push(r),setTimeout(x),I}})),b=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.initRedundancy=void 0,n.initRedundancy=function(e){var n=function(e){if(!("object"==typeof e&&"object"==typeof e.resources&&e.resources instanceof Array&&e.resources.length))throw new Error("Invalid Reduncancy configuration");var n,t=Object.create(null);for(n in g.defaultConfig)void 0!==e[n]?t[n]=e[n]:t[n]=g.defaultConfig[n];return t}(e),t=[];function r(){t=t.filter((function(e){return"pending"===e().status}))}return{query:function(e,o,i){var a=m.sendQuery(n,e,o,(function(e,n){r(),i&&i(e,n)}),(function(e){n.index=e}));return t.push(a),a},find:function(e){var n=t.find((function(n){return e(n)}));return void 0!==n?n:null},setIndex:function(e){n.index=e},getIndex:function(){return n.index},cleanup:r}}})),y=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIModule=n.setAPIModule=void 0;var t=Object.create(null);n.setAPIModule=function(e,n){t[e]=n},n.getAPIModule=function(e){return t[e]||t[""]}})),I=n((function(e,n){function t(e){var n;if("string"==typeof e.resources)n=[e.resources];else if(!((n=e.resources)instanceof Array&&n.length))return null;return{resources:n,path:void 0===e.path?"/":e.path,maxURL:e.maxURL?e.maxURL:500,rotate:e.rotate?e.rotate:750,timeout:e.timeout?e.timeout:5e3,random:!0===e.random,index:e.index?e.index:0,dataAfterTimeout:!1!==e.dataAfterTimeout}}Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIConfig=n.setAPIConfig=n.createAPIConfig=void 0,n.createAPIConfig=t;for(var r=Object.create(null),o=["https://api.simplesvg.com","https://api.unisvg.com"],i=[];o.length>0;)1===o.length||Math.random()>.5?i.push(o.shift()):i.push(o.pop());r[""]=t({resources:["https://api.iconify.design"].concat(i)}),n.setAPIConfig=function(e,n){var o=t(n);return null!==o&&(r[e]=o,!0)},n.getAPIConfig=function(e){return r[e]}})),j=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sendAPIQuery=void 0;var t=I;function r(){}var o=Object.create(null);n.sendAPIQuery=function(e,n,i){var a,c;if("string"==typeof e){var u=y.getAPIModule(e);if(!u)return i(void 0,424),r;c=u.send;var f=function(e){if(void 0===o[e]){var n=t.getAPIConfig(e);if(!n)return;var r={config:n,redundancy:b.initRedundancy(n)};o[e]=r}return o[e]}(e);f&&(a=f.redundancy)}else{var s=I.createAPIConfig(e);if(s){a=b.initRedundancy(s);var l=y.getAPIModule("");l&&(c=l.send)}}return a&&c?a.query(n,c,i)().abort:(i(void 0,424),r)}})),O=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sortIcons=void 0,n.sortIcons=function(e){var n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((function(e,n){return e.provider!==n.provider?e.provider.localeCompare(n.provider):e.prefix!==n.prefix?e.prefix.localeCompare(n.prefix):e.name.localeCompare(n.name)}));var r={provider:"",prefix:"",name:""};return e.forEach((function(e){if(r.name!==e.name||r.prefix!==e.prefix||r.provider!==e.provider){r=e;var o=e.provider,i=e.prefix,c=e.name;void 0===t[o]&&(t[o]=Object.create(null));var u=t[o];void 0===u[i]&&(u[i]=a.getStorage(o,i));var f=u[i],s={provider:o,prefix:i,name:c};(void 0!==f.icons[c]?n.loaded:""===i||void 0!==f.missing[c]?n.missing:n.pending).push(s)}})),n}})),x=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeCallback=n.updateCallbacks=n.callbacks=void 0,n.callbacks=Object.create(null);var t=Object.create(null);function r(e,t){e.forEach((function(e){var r=e.provider;if(void 0!==n.callbacks[r]){var o=n.callbacks[r],i=e.prefix,a=o[i];a&&(o[i]=a.filter((function(e){return e.id!==t})))}}))}n.updateCallbacks=function(e,o){void 0===t[e]&&(t[e]=Object.create(null));var i=t[e];i[o]||(i[o]=!0,setTimeout((function(){if(i[o]=!1,void 0!==n.callbacks[e]&&void 0!==n.callbacks[e][o]){var t=n.callbacks[e][o].slice(0);if(t.length){var c=a.getStorage(e,o),u=!1;t.forEach((function(n){var t=n.icons,i=t.pending.length;t.pending=t.pending.filter((function(n){if(n.prefix!==o)return!0;var r=n.name;if(void 0!==c.icons[r])t.loaded.push({provider:e,prefix:o,name:r});else{if(void 0===c.missing[r])return u=!0,!0;t.missing.push({provider:e,prefix:o,name:r})}return!1})),t.pending.length!==i&&(u||r([{provider:e,prefix:o}],n.id),n.callback(t.loaded.slice(0),t.missing.slice(0),t.pending.slice(0),n.abort))}))}}})))};var o=0;n.storeCallback=function(e,t,i){var a=o++,c=r.bind(null,i,a);if(!t.pending.length)return c;var u={id:a,icons:t,callback:e,abort:c};return i.forEach((function(e){var t=e.provider,r=e.prefix;void 0===n.callbacks[t]&&(n.callbacks[t]=Object.create(null));var o=n.callbacks[t];void 0===o[r]&&(o[r]=[]),o[r].push(u)})),c}})),P=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getProviders=n.listToIcons=void 0,n.listToIcons=function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t=!1);var r=[];return e.forEach((function(e){var o="string"==typeof e?i.stringToIcon(e,!1,t):e;n&&!i.validateIcon(o,t)||r.push({provider:o.provider,prefix:o.prefix,name:o.name})})),r},n.getProviders=function(e){var n=Object.create(null);return e.forEach((function(e){n[e.provider]=!0})),Object.keys(n)}})),w=n((function(e,n){function t(){}Object.defineProperty(n,"__esModule",{value:!0}),n.loadIcons=n.isPending=void 0;var r=Object.create(null),o=Object.create(null),i=Object.create(null),u=Object.create(null);var f=Object.create(null);function s(e,n,t){void 0===o[e]&&(o[e]=Object.create(null));var c=o[e];void 0===u[e]&&(u[e]=Object.create(null));var s=u[e];void 0===r[e]&&(r[e]=Object.create(null));var l=r[e];void 0===c[n]?c[n]=t:c[n]=c[n].concat(t).sort(),s[n]||(s[n]=!0,setTimeout((function(){s[n]=!1;var t=c[n];delete c[n];var r=y.getAPIModule(e);r?r.prepare(e,n,t).forEach((function(t){j.sendAPIQuery(e,t,(function(r,o){var c=a.getStorage(e,n);if("object"!=typeof r){if(404!==o)return;var u=Date.now();t.icons.forEach((function(e){c.missing[e]=u}))}else try{var f=a.addIconSet(c,r,"all");if("boolean"==typeof f)return;var s=l[n];f.forEach((function(e){delete s[e]})),p.cache.store&&p.cache.store(e,r)}catch(e){console.error(e)}!function(e,n){void 0===i[e]&&(i[e]=Object.create(null));var t=i[e];t[n]||(t[n]=!0,setTimeout((function(){t[n]=!1,x.updateCallbacks(e,n)})))}(e,n)}))})):function(){var t=(""===e?"":"@"+e+":")+n,r=Math.floor(Date.now()/6e4);f[t]<r&&(f[t]=r,console.error('Unable to retrieve icons for "'+t+'" because API is not configured properly.'))}()})))}n.isPending=function(e){var n=e.provider,t=e.prefix;return r[n]&&r[n][t]&&void 0!==r[n][t][e.name]};n.loadIcons=function(e,n){var o=P.listToIcons(e,!0,c.allowSimpleNames()),i=O.sortIcons(o);if(!i.pending.length){var a=!0;return n&&setTimeout((function(){a&&n(i.loaded,i.missing,i.pending,t)})),function(){a=!1}}var u,f,l=Object.create(null),d=[];i.pending.forEach((function(e){var n=e.provider,t=e.prefix;if(t!==f||n!==u){u=n,f=t,d.push({provider:n,prefix:t}),void 0===r[n]&&(r[n]=Object.create(null));var o=r[n];void 0===o[t]&&(o[t]=Object.create(null)),void 0===l[n]&&(l[n]=Object.create(null));var i=l[n];void 0===i[t]&&(i[t]=[])}}));var v=Date.now();return i.pending.forEach((function(e){var n=e.provider,t=e.prefix,o=e.name,i=r[n][t];void 0===i[o]&&(i[o]=v,l[n][t].push(o))})),d.forEach((function(e){var n=e.provider,t=e.prefix;l[n][t].length&&s(n,t,l[n][t])})),n?x.storeCallback(n,i,d):t}})),A=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeParams=void 0;n.mergeParams=function(e,n){var t=e,r=-1!==t.indexOf("?");return Object.keys(n).forEach((function(e){var o;try{o=function(e){switch(typeof e){case"boolean":return e?"true":"false";case"number":case"string":return encodeURIComponent(e);default:throw new Error("Invalid parameter")}}(n[e])}catch(e){return}t+=(r?"&":"?")+encodeURIComponent(e)+"="+o,r=!0})),t}})),M=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.APIInternalFunctions=n.APIFunctions=void 0,n.APIFunctions={loadIcons:w.loadIcons,addAPIProvider:I.setAPIConfig},n.APIInternalFunctions={getAPIConfig:I.getAPIConfig,setAPIModule:y.setAPIModule,sendAPIQuery:j.sendAPIQuery,mergeParams:A.mergeParams}})),S=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.jsonpAPIModule=void 0;var t=null,r=null,o=Object.create(null),i=Object.create(null);function a(){if(null===t){var e=self,n="Iconify",o=".cb";if(void 0===e[n])o="",void 0===e[n="IconifyJSONP"]&&(e[n]=Object.create(null)),t=e[n];else{var i=e[n];void 0===i.cb&&(i.cb=Object.create(null)),t=i.cb}r=n+o+".{cb}"}return t}n.jsonpAPIModule={prepare:function(e,n,t){var c=[],u=o[e+":"+n];void 0===u&&(u=function(e,n){var t,c=I.getAPIConfig(e);if(!c)return 0;if(c.maxURL){var u=0;c.resources.forEach((function(e){var n=e;u=Math.max(u,n.length)})),a();var f=A.mergeParams(n+".js",{icons:"",callback:r});t=c.maxURL-u-c.path.length-f.length}else t=0;var s=e+":"+n;return i[s]=c.path,o[s]=t,t}(e,n));var f="icons",s={type:f,provider:e,prefix:n,icons:[]},l=0;return t.forEach((function(t,r){(l+=t.length+1)>=u&&r>0&&(c.push(s),s={type:f,provider:e,prefix:n,icons:[]},l=t.length),s.icons.push(t)})),c.push(s),c},send:function(e,n,t){if("icons"===n.type){for(var o=n.provider,c=n.prefix,u=n.icons.join(","),f=o+":"+c,s=c.split("-").shift().slice(0,3),l=a(),d=function(e){var n,t=0;for(n=e.length-1;n>=0;n--)t+=e.charCodeAt(n);return t%999}(o+":"+e+":"+c+":"+u);void 0!==l[s+d];)d++;var v=s+d,p=A.mergeParams(c+".js",{icons:u,callback:r.replace("{cb}",v)}),h=i[f]+p;l[v]=function(e){delete l[v],t.done(e)};var g=e+h,m=document.createElement("script");m.type="text/javascript",m.async=!0,m.src=g,document.head.appendChild(m)}else t.done(void 0,400)}}})),_=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchAPIModule=t.getFetch=t.setFetch=void 0;var r=Object.create(null),o=Object.create(null),i=function(){var n;try{if("function"==typeof(n=fetch))return n}catch(e){}try{var t=String.fromCharCode(114)+String.fromCharCode(101);if("function"==typeof(n=(0,e[t+"qui"+t])("cross-fetch")))return n}catch(e){}return null}();t.setFetch=function(e){i=e},t.getFetch=function(){return i};t.fetchAPIModule={prepare:function(e,n,t){var i=[],a=r[n];void 0===a&&(a=function(e,n){var t,i=I.getAPIConfig(e);if(!i)return 0;if(i.maxURL){var a=0;i.resources.forEach((function(e){var n=e;a=Math.max(a,n.length)}));var c=A.mergeParams(n+".json",{icons:""});t=i.maxURL-a-i.path.length-c.length}else t=0;var u=e+":"+n;return o[e]=i.path,r[u]=t,t}(e,n));var c="icons",u={type:c,provider:e,prefix:n,icons:[]},f=0;return t.forEach((function(t,r){(f+=t.length+1)>=a&&r>0&&(i.push(u),u={type:c,provider:e,prefix:n,icons:[]},f=t.length),u.icons.push(t)})),i.push(u),i},send:function(e,n,t){if(i){var r=function(e){if("string"==typeof e){if(void 0===o[e]){var n=I.getAPIConfig(e);if(!n)return"/";o[e]=n.path}return o[e]}return"/"}(n.provider);switch(n.type){case"icons":var a=n.prefix,c=n.icons.join(",");r+=A.mergeParams(a+".json",{icons:c});break;case"custom":var u=n.uri;r+="/"===u.slice(0,1)?u.slice(1):u;break;default:return void t.done(void 0,400)}var f=503;i(e+r).then((function(e){if(200===e.status)return f=501,e.json();setTimeout((function(){t.done(void 0,e.status)}))})).then((function(e){"object"==typeof e&&null!==e?setTimeout((function(){t.done(e)})):setTimeout((function(){t.done(void 0,f)}))})).catch((function(){t.done(void 0,f)}))}else t.done(void 0,424)}}})),C="iconifyFinder"+Date.now(),E="iconifyData"+Date.now();function k(e,n,t,r){var o;try{o=document.createElement("span")}catch(e){return r?"":null}var i=l.iconToSVG(t,s.mergeCustomisations(s.defaults,n)),a=e.element,c=e.finder,f=e.name,d=a?a.getAttribute("class"):"",v=c?c.classFilter(d?d.split(/\s+/):[]):[],p='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="'+("iconify iconify--"+f.prefix+(""===f.provider?"":" iconify--"+f.provider)+(v.length?" "+v.join(" "):""))+'">'+u.replaceIDs(i.body)+"</svg>";o.innerHTML=p;var h=o.childNodes[0],g=h.style,m=i.attributes;if(Object.keys(m).forEach((function(e){h.setAttribute(e,m[e])})),i.inline&&(g.verticalAlign="-0.125em"),a){for(var b=a.attributes,y=0;y<b.length;y++){var I=b.item(y);if(I){var j=I.name;if("class"!==j&&"style"!==j&&void 0===m[j])try{h.setAttribute(j,I.value)}catch(e){}}}for(var O=a.style,x=0;x<O.length;x++){var P=O[x];g[P]=O[P]}}if(c){var w={name:f,status:"loaded",customisations:n};h[E]=w,h[C]=c}var A=r?o.innerHTML:h;return a&&a.parentNode?a.parentNode.replaceChild(h,a):o.removeChild(h),A}var F=[];function T(e){for(var n=0;n<F.length;n++){var t=F[n];if(("function"==typeof t.node?t.node():t.node)===e)return t}}function D(e,n){void 0===n&&(n=!1);var t=T(e);return t?(t.temporary&&(t.temporary=n),t):(t={node:e,temporary:n},F.push(t),t)}function N(){return F}var L=null,z={childList:!0,subtree:!0,attributes:!0};function R(e){if(e.observer){var n=e.observer;n.pendingScan||(n.pendingScan=setTimeout((function(){delete n.pendingScan,L&&L(e)})))}}function q(e,n){if(e.observer){var t=e.observer;if(!t.pendingScan)for(var r=0;r<n.length;r++){var o=n[r];if(o.addedNodes&&o.addedNodes.length>0||"attributes"===o.type&&void 0!==o.target[C])return void(t.paused||R(e))}}}function U(e,n){e.observer.instance.observe(n,z)}function Q(e){var n=e.observer;if(!n||!n.instance){var t="function"==typeof e.node?e.node():e.node;t&&(n||(n={paused:0},e.observer=n),n.instance=new MutationObserver(q.bind(null,e)),U(e,t),n.paused||R(e))}}function V(){N().forEach(Q)}function G(e){if(e.observer){var n=e.observer;n.pendingScan&&(clearTimeout(n.pendingScan),delete n.pendingScan),n.instance&&(n.instance.disconnect(),delete n.instance)}}function $(e){var n=null!==L;L!==e&&(L=e,n&&N().forEach(G)),n?V():function(e){var n=document;"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e():(n.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}(V)}function B(e){(e?[e]:N()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused++,!(n.paused>1)&&n.instance)n.instance.disconnect()}else e.observer={paused:1}}))}function H(e){(e?[e]:N()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused&&(n.paused--,!n.paused)){var t="function"==typeof e.node?e.node():e.node;if(!t)return;n.instance?U(e,t):Q(e)}}else Q(e)}))}function J(e,n){void 0===n&&(n=!1);var t=D(e,n);return Q(t),t}function Y(e){var n=T(e);n&&(G(n),function(e){F=F.filter((function(n){var t="function"==typeof n.node?n.node():n.node;return e!==t}))}(e))}var Z=[];function K(e){return"string"==typeof e&&(e=i.stringToIcon(e)),null!==e&&i.validateIcon(e)?e:null}function W(e){var n=[];Z.forEach((function(t){var r=t.find(e);Array.prototype.forEach.call(r,(function(e){var r=e;if(void 0===r[C]||r[C]===t){var o=K(t.name(r));if(null!==o){r[C]=t;var i={element:r,finder:t,name:o};n.push(i)}}}))}));var t=e.querySelectorAll("svg.iconify");return Array.prototype.forEach.call(t,(function(e){var t=e,r=t[C],o=t[E];if(r&&o){var i=K(r.name(t));if(null!==i){var a,c=!1;if(i.prefix!==o.name.prefix||i.name!==o.name.name?c=!0:(a=r.customisations(t),function(e,n){var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var o=0;o<t.length;o++){var i=t[o];if(n[i]!==e[i])return!1}return!0}(o.customisations,a)||(c=!0)),c){var u={element:t,finder:r,name:i,customisations:a};n.push(u)}}}})),n}var X=!1;function ee(){X||(X=!0,setTimeout((function(){X&&(X=!1,ne())})))}function ne(e,n){void 0===n&&(n=!1),X=!1;var t=Object.create(null);(e?[e]:N()).forEach((function(e){var r="function"==typeof e.node?e.node():e.node;if(r&&r.querySelectorAll){var o=!1,i=!1;W(r).forEach((function(n){var r,c,u=n.element,f=n.name,s=f.provider,l=f.prefix,d=f.name,v=u[E];if(void 0!==v&&(r=v.name,c=f,null!==r&&null!==c&&r.name===c.name&&r.prefix===c.prefix))switch(v.status){case"missing":return;case"loading":if(w.isPending({provider:s,prefix:l,name:d}))return void(o=!0)}var p=a.getStorage(s,l);if(void 0===p.icons[d]){if(p.missing[d])return v={name:f,status:"missing",customisations:{}},void(u[E]=v);if(!w.isPending({provider:s,prefix:l,name:d})){void 0===t[s]&&(t[s]=Object.create(null));var h=t[s];void 0===h[l]&&(h[l]=Object.create(null)),h[l][d]=!0}v={name:f,status:"loading",customisations:{}},u[E]=v,o=!0}else{!i&&e.observer&&(B(e),i=!0);var g=void 0!==n.customisations?n.customisations:n.finder.customisations(u);k(n,g,a.getIcon(p,d))}})),e.temporary&&!o?Y(r):n&&o?J(r,!0):i&&e.observer&&H(e)}})),Object.keys(t).forEach((function(e){var n=t[e];Object.keys(n).forEach((function(t){w.loadIcons(Object.keys(n[t]).map((function(n){return{provider:e,prefix:t,name:n}})),ee)}))}))}var te=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.rotateFromString=void 0,n.rotateFromString=function(e){var n=e.replace(/^-?[0-9.]*/,"");function t(e){for(;e<0;)e+=4;return e%4}if(""===n){var r=parseInt(e);return isNaN(r)?0:t(r)}if(n!==e){var o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){var i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=o)%1==0?t(i):0}}return 0}})),re=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.alignmentFromString=n.flipFromString=void 0;var t=/[\s,]+/;n.flipFromString=function(e,n){n.split(t).forEach((function(n){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))},n.alignmentFromString=function(e,n){n.split(t).forEach((function(n){var t=n.trim();switch(t){case"left":case"center":case"right":e.hAlign=t;break;case"top":case"middle":case"bottom":e.vAlign=t;break;case"slice":case"crop":e.slice=!0;break;case"meet":e.slice=!1}}))}}));function oe(e,n){return e.hasAttribute(n)}function ie(e,n){return e.getAttribute(n)}var ae=["inline","hFlip","vFlip"],ce=["width","height"],ue="iconify-inline",fe={find:function(e){return e.querySelectorAll("i.iconify, span.iconify, i.iconify-inline, span.iconify-inline")},name:function(e){return oe(e,"data-icon")?ie(e,"data-icon"):null},customisations:function(e,n){void 0===n&&(n={inline:!1});var t=n,r=e.getAttribute("class");if(-1!==(r?r.split(/\s+/):[]).indexOf(ue)&&(t.inline=!0),oe(e,"data-rotate")){var o=te.rotateFromString(ie(e,"data-rotate"));o&&(t.rotate=o)}return oe(e,"data-flip")&&re.flipFromString(t,ie(e,"data-flip")),oe(e,"data-align")&&re.alignmentFromString(t,ie(e,"data-align")),ae.forEach((function(n){if(oe(e,"data-"+n)){var r=function(e,n){var t=e.getAttribute(n);return t===n||"true"===t||""!==t&&"false"!==t&&null}(e,"data-"+n);"boolean"==typeof r&&(t[n]=r)}})),ce.forEach((function(n){if(oe(e,"data-"+n)){var r=ie(e,"data-"+n);""!==r&&(t[n]=r)}})),t},classFilter:function(e){var n=[];return e.forEach((function(e){"iconify"!==e&&""!==e&&"iconify--"!==e.slice(0,9)&&n.push(e)})),n}};function se(e,n,t){var r=c.getIconData(e);return r?k({name:i.stringToIcon(e)},s.mergeCustomisations(s.defaults,"object"==typeof n?n:{}),r,t):null}var le={getVersion:function(){return"2.1.0-beta.1"},renderSVG:function(e,n){return se(e,n,!1)},renderHTML:function(e,n){return se(e,n,!0)},renderIcon:function(e,n){var t=c.getIconData(e);if(!t)return null;var r=s.mergeCustomisations(s.defaults,"object"==typeof n?n:{});return l.iconToSVG(t,r)},scan:function(e){e?function(e){var n=T(e);n?ne(n):ne({node:e,temporary:!0},!0)}(e):ne()},observe:function(e){J(e)},stopObserving:function(e){Y(e)},pauseObserver:function(e){if(e){var n=T(e);n&&B(n)}else B()},resumeObserver:function(e){if(e){var n=T(e);n&&H(n)}else H()}};if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return D(document.documentElement);F.push({node:function(){return document.documentElement}})}(),function(e){-1===Z.indexOf(e)&&Z.push(e)}(fe);var de=window;if(void 0!==de.IconifyPreload){var ve=de.IconifyPreload,pe="Invalid IconifyPreload syntax.";"object"==typeof ve&&null!==ve&&(ve instanceof Array?ve:[ve]).forEach((function(e){try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!c.storageFunctions.addCollection(e))&&console.error(pe)}catch(e){console.error(pe)}}))}setTimeout((function(){$(ne),ne()}))}var he={enableCache:function(e,n){return h.toggleBrowserCache(e,!1!==n)},disableCache:function(e){return h.toggleBrowserCache(e,!0)}},ge={_api:M.APIInternalFunctions};if([c.storageFunctions,d.builderFunctions,le,he,M.APIFunctions].forEach((function(e){for(var n in e)ge[n]=e[n]})),y.setAPIModule("",_.getFetch()?_.fetchAPIModule:S.jsonpAPIModule),ge._api.setFetch=function(e){_.setFetch(e),y.setAPIModule("",_.fetchAPIModule)},"undefined"!=typeof document&&"undefined"!=typeof window){p.cache.store=v.storeCache,v.loadCache();var me=window;if(void 0!==me.IconifyProviders){var be=me.IconifyProviders;if("object"==typeof be&&null!==be)for(var ye in be){var Ie="IconifyProviders["+ye+"] is invalid.";try{var je=be[ye];if("object"!=typeof je||!je||void 0===je.resources)continue;I.setAPIConfig(ye,je)||console.error(Ie)}catch(e){console.error(Ie)}}}}return ge}();try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(e){}if("object"==typeof exports)try{exports.__esModule=!0,exports.default=Iconify}catch(e){} | ||
var Iconify=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}var t=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fullIcon=n.iconDefaults=n.minifyProps=n.matchName=void 0,n.matchName=/^[a-z0-9]+(-[a-z0-9]+)*$/,n.minifyProps=["width","height","top","left"],n.iconDefaults=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1}),n.fullIcon=function(e){return Object.assign({},n.iconDefaults,e)}})),r=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeIconData=void 0,n.mergeIconData=function(e,n){var r=Object.assign({},e);for(var o in t.iconDefaults){var i=o;if(void 0!==n[i]){var a=n[i];if(void 0===r[i]){r[i]=a;continue}switch(i){case"rotate":r[i]=(r[i]+a)%4;break;case"hFlip":case"vFlip":r[i]=a!==r[i];break;default:r[i]=a}}}return r}})),o=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parseIconSet=void 0;var o=Object.keys(t.iconDefaults);function i(e,n,t,o){void 0===o&&(o=0);var a=e.parent;if(void 0!==n[a])return r.mergeIconData(n[a],e);if(void 0!==t[a]){if(o>2)return null;var c=i(t[a],n,t,o+1);if(c)return r.mergeIconData(c,e)}return null}n.parseIconSet=function(e,n,r){void 0===r&&(r="none");var a=[];if("object"!=typeof e)return"none"!==r&&a;if(e.not_found instanceof Array&&e.not_found.forEach((function(e){n(e,null),"all"===r&&a.push(e)})),"object"!=typeof e.icons)return"none"!==r&&a;var c=Object.create(null);o.forEach((function(n){void 0!==e[n]&&"object"!=typeof e[n]&&(c[n]=e[n])}));var u=e.icons;if(Object.keys(u).forEach((function(e){var r=u[e];"string"==typeof r.body&&(n(e,Object.freeze(Object.assign({},t.iconDefaults,c,r))),a.push(e))})),"object"==typeof e.aliases){var f=e.aliases;Object.keys(f).forEach((function(e){var r=i(f[e],u,f,1);r&&(n(e,Object.freeze(Object.assign({},t.iconDefaults,c,r))),a.push(e))}))}return"none"===r?a.length>0:a}})),i=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.validateIcon=n.stringToIcon=void 0;n.stringToIcon=function(e,t,r,o){void 0===o&&(o="");var i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;o=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){var a=i.pop(),c=i.pop(),u={provider:i.length>0?i[0]:o,prefix:c,name:a};return t&&!n.validateIcon(u)?null:u}var f=i[0],s=f.split("-");if(s.length>1){var l={provider:o,prefix:s.shift(),name:s.join("-")};return t&&!n.validateIcon(l)?null:l}if(r&&""===o){var d={provider:o,prefix:"",name:f};return t&&!n.validateIcon(d,r)?null:d}return null};n.validateIcon=function(e,n){return!!e&&!(""!==e.provider&&!e.provider.match(t.matchName)||!(n&&""===e.prefix||e.prefix.match(t.matchName))||!e.name.match(t.matchName))}})),a=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.listIcons=n.getIcon=n.iconExists=n.addIcon=n.addIconSet=n.getStorage=n.newStorage=void 0;var r=Object.create(null);function i(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:Object.create(null)}}function a(e,n){void 0===r[e]&&(r[e]=Object.create(null));var t=r[e];return void 0===t[n]&&(t[n]=i(e,n)),t[n]}n.newStorage=i,n.getStorage=a,n.addIconSet=function(e,n,t){void 0===t&&(t="none");var r=Date.now();return o.parseIconSet(n,(function(n,t){null===t?e.missing[n]=r:e.icons[n]=t}),t)},n.addIcon=function(e,n,r){try{if("string"==typeof r.body)return e.icons[n]=Object.freeze(t.fullIcon(r)),!0}catch(e){}return!1},n.iconExists=function(e,n){return void 0!==e.icons[n]},n.getIcon=function(e,n){var t=e.icons[n];return void 0===t?null:t},n.listIcons=function(e,n){var t=[];return("string"==typeof e?[e]:Object.keys(r)).forEach((function(e){("string"==typeof e&&"string"==typeof n?[n]:void 0===r[e]?[]:Object.keys(r[e])).forEach((function(n){var r=a(e,n),o=Object.keys(r.icons).map((function(t){return(""!==e?"@"+e+":":"")+n+":"+t}));t=t.concat(o)}))})),t}})),c=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storageFunctions=n.addCollection=n.addIcon=n.getIconData=n.allowSimpleNames=void 0;var t=!1;function r(e){var n="string"==typeof e?i.stringToIcon(e,!0,t):e;return n?a.getIcon(a.getStorage(n.provider,n.prefix),n.name):null}function c(e,n){var r=i.stringToIcon(e,!0,t);if(!r)return!1;var o=a.getStorage(r.provider,r.prefix);return a.addIcon(o,r.name,n)}function u(e,n){if("object"!=typeof e)return!1;if("string"!=typeof n&&(n="string"==typeof e.provider?e.provider:""),t&&""===n&&("string"!=typeof e.prefix||""===e.prefix)){var r=!1;return o.parseIconSet(e,(function(e,n){null!==n&&c(e,n)&&(r=!0)})),r}if("string"!=typeof e.prefix||!i.validateIcon({provider:n,prefix:e.prefix,name:"a"}))return!1;var u=a.getStorage(n,e.prefix);return!!a.addIconSet(u,e)}n.allowSimpleNames=function(e){return"boolean"==typeof e&&(t=e),t},n.getIconData=r,n.addIcon=c,n.addCollection=u,n.storageFunctions={iconExists:function(e){return null!==r(e)},getIcon:function(e){var n=r(e);return n?Object.assign({},n):null},listIcons:a.listIcons,addIcon:c,addCollection:u}})),u=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.replaceIDs=void 0;var t=/\sid="(\S+)"/g,r="([^A-Za-z0-9_-])";var o="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",i=0;n.replaceIDs=function(e,n){void 0===n&&(n=o);for(var a,c=[];a=t.exec(e);)c.push(a[1]);return c.length?(c.forEach((function(t){var o="function"==typeof n?n():n+i++;e=e.replace(new RegExp(r+"("+(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")")+r,"g"),"$1"+o+"$3")})),e):e}})),f=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.calculateSize=void 0;var t=/(-?[0-9.]*[0-9]+[0-9.]*)/g,r=/^-?[0-9.]*[0-9]+[0-9.]*$/g;n.calculateSize=function(e,n,o){if(1===n)return e;if(o=void 0===o?100:o,"number"==typeof e)return Math.ceil(e*n*o)/o;if("string"!=typeof e)return e;var i=e.split(t);if(null===i||!i.length)return e;for(var a=[],c=i.shift(),u=r.test(c);;){if(u){var f=parseFloat(c);isNaN(f)?a.push(c):a.push(Math.ceil(f*n*o)/o)}else a.push(c);if(void 0===(c=i.shift()))return a.join("");u=!u}}})),s=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeCustomisations=n.defaults=void 0,n.defaults=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0}),n.mergeCustomisations=function(e,n){var t={};for(var r in e){var o=r;if(t[o]=e[o],void 0!==n[o]){var i=n[o];switch(o){case"inline":case"slice":"boolean"==typeof i&&(t[o]=i);break;case"hFlip":case"vFlip":!0===i&&(t[o]=!t[o]);break;case"hAlign":case"vAlign":"string"==typeof i&&""!==i&&(t[o]=i);break;case"width":case"height":("string"==typeof i&&""!==i||"number"==typeof i&&i||null===i)&&(t[o]=i);break;case"rotate":"number"==typeof i&&(t[o]+=i)}}}return t}})),l=n((function(e,n){function t(e){var n="";switch(e.hAlign){case"left":n+="xMin";break;case"right":n+="xMax";break;default:n+="xMid"}switch(e.vAlign){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}Object.defineProperty(n,"__esModule",{value:!0}),n.iconToSVG=void 0,n.iconToSVG=function(e,n){var r,o,i={left:e.left,top:e.top,width:e.width,height:e.height},a=e.body;[e,n].forEach((function(e){var n,t=[],r=e.hFlip,o=e.vFlip,c=e.rotate;switch(r?o?c+=2:(t.push("translate("+(i.width+i.left)+" "+(0-i.top)+")"),t.push("scale(-1 1)"),i.top=i.left=0):o&&(t.push("translate("+(0-i.left)+" "+(i.height+i.top)+")"),t.push("scale(1 -1)"),i.top=i.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n=i.height/2+i.top,t.unshift("rotate(90 "+n+" "+n+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left)+" "+(i.height/2+i.top)+")");break;case 3:n=i.width/2+i.left,t.unshift("rotate(-90 "+n+" "+n+")")}c%2==1&&(0===i.left&&0===i.top||(n=i.left,i.left=i.top,i.top=n),i.width!==i.height&&(n=i.width,i.width=i.height,i.height=n)),t.length&&(a='<g transform="'+t.join(" ")+'">'+a+"</g>")})),null===n.width&&null===n.height?(o="1em",r=f.calculateSize(o,i.width/i.height)):null!==n.width&&null!==n.height?(r=n.width,o=n.height):null!==n.height?(o=n.height,r=f.calculateSize(o,i.width/i.height)):(r=n.width,o=f.calculateSize(r,i.height/i.width)),"auto"===r&&(r=i.width),"auto"===o&&(o=i.height);var c={attributes:{width:r="string"==typeof r?r:r+"",height:o="string"==typeof o?o:o+"",preserveAspectRatio:t(n),viewBox:i.left+" "+i.top+" "+i.width+" "+i.height},body:a};return n.inline&&(c.inline=!0),c}})),d=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.builderFunctions=void 0,n.builderFunctions={replaceIDs:u.replaceIDs,calculateSize:f.calculateSize,buildIcon:function(e,n){return l.iconToSVG(t.fullIcon(e),s.mergeCustomisations(s.defaults,n))}}})),v=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeCache=n.loadCache=n.mock=n.emptyList=n.count=n.config=void 0;var t="iconify2",r="iconify",o="iconify-count",i="iconify-version",c=36e5;n.config={local:!0,session:!0};var u=!1;n.count={local:0,session:0},n.emptyList={local:[],session:[]};var f="undefined"==typeof window?{}:window;function s(e){var t=e+"Storage";try{if(f&&f[t]&&"number"==typeof f[t].length)return f[t]}catch(e){}return n.config[e]=!1,null}function l(e,t,r){try{return e.setItem(o,r+""),n.count[t]=r,!0}catch(e){return!1}}function d(e){var n=e.getItem(o);if(n){var t=parseInt(n);return t||0}return 0}n.mock=function(e){u=!1,f=e};n.loadCache=function(){if(!u){u=!0;var e=Math.floor(Date.now()/c)-168;for(var o in n.config)f(o)}function f(o){var c=s(o);if(c){var u=function(n){var t=r+n,o=c.getItem(t);if("string"!=typeof o)return!1;var i=!0;try{var u=JSON.parse(o);if("object"!=typeof u||"number"!=typeof u.cached||u.cached<e||"string"!=typeof u.provider||"object"!=typeof u.data||"string"!=typeof u.data.prefix)i=!1;else{var f=u.provider,s=u.data.prefix,l=a.getStorage(f,s);i=a.addIconSet(l,u.data)}}catch(e){i=!1}return i||c.removeItem(t),i};try{var f=c.getItem(i);if(f!==t)return f&&function(e){try{for(var n=d(e),t=0;t<n;t++)e.removeItem(r+t)}catch(e){}}(c),void function(e,n){try{e.setItem(i,t)}catch(e){}l(e,n,0)}(c,o);for(var v=d(c),p=v-1;p>=0;p--)u(p)||(p===v-1?v--:n.emptyList[o].push(p));l(c,o,v)}catch(e){}}}};n.storeCache=function(e,t){function o(o){if(!n.config[o])return!1;var i=s(o);if(!i)return!1;var a=n.emptyList[o].shift();if(void 0===a&&!l(i,o,(a=n.count[o])+1))return!1;try{var u={cached:Math.floor(Date.now()/c),provider:e,data:t};i.setItem(r+a,JSON.stringify(u))}catch(e){return!1}return!0}u||n.loadCache(),o("local")||o("session")}})),p=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.cache=void 0,n.cache={}})),h=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.toggleBrowserCache=void 0,n.toggleBrowserCache=function(e,n){switch(e){case"local":case"session":v.config[e]=n;break;case"all":for(var t in v.config)v.config[t]=n}}})),g=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultConfig=void 0,n.defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1}})),m=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sendQuery=void 0,n.sendQuery=function(e,n,t,r,o){var i,a=e.resources.length,c=e.random?Math.floor(Math.random()*a):e.index;if(e.random){var u=e.resources.slice(0);for(i=[];u.length>1;){var f=Math.floor(Math.random()*u.length);i.push(u[f]),u=u.slice(0,f).concat(u.slice(f+1))}i=i.concat(u)}else i=e.resources.slice(c).concat(e.resources.slice(0,c));var s=Date.now(),l="pending",d=0,v=void 0,p=null,h=[],g=[];function m(){p&&(clearTimeout(p),p=null)}function b(){"pending"===l&&(l="aborted"),m(),h.forEach((function(e){e.abort&&e.abort(),"pending"===e.status&&(e.status="aborted")})),h=[]}function y(e,n){n&&(g=[]),"function"==typeof e&&g.push(e)}function I(){return{startTime:s,payload:n,status:l,queriesSent:d,queriesPending:h.length,subscribe:y,abort:b}}function j(){l="failed",g.forEach((function(e){e(void 0,v)}))}function P(){h=h.filter((function(e){return"pending"===e.status&&(e.status="aborted"),e.abort&&e.abort(),!1}))}function O(){if("pending"===l){m();var r=i.shift();if(void 0!==r){var a={getQueryStatus:I,status:"pending",resource:r,done:function(n,t){!function(n,t,r){var a=void 0===t;switch(h=h.filter((function(e){return e!==n})),l){case"pending":break;case"failed":if(a||!e.dataAfterTimeout)return;break;default:return}if(a)return void 0!==r&&(v=r),void(h.length||(i.length?O():j()));if(m(),P(),o&&!e.random){var c=e.resources.indexOf(n.resource);-1!==c&&c!==e.index&&o(c)}l="completed",g.forEach((function(e){e(t)}))}(a,n,t)}};h.push(a),d++;var c="function"==typeof e.rotate?e.rotate(d,s):e.rotate;p=setTimeout(O,c),t(r,n,a)}else{if(h.length){var u="function"==typeof e.timeout?e.timeout(s):e.timeout;if(u)return void(p=setTimeout((function(){m(),"pending"===l&&(P(),j())}),u))}j()}}}return"function"==typeof r&&g.push(r),setTimeout(O),I}})),b=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.initRedundancy=void 0,n.initRedundancy=function(e){var n=function(e){if(!("object"==typeof e&&"object"==typeof e.resources&&e.resources instanceof Array&&e.resources.length))throw new Error("Invalid Reduncancy configuration");var n,t=Object.create(null);for(n in g.defaultConfig)void 0!==e[n]?t[n]=e[n]:t[n]=g.defaultConfig[n];return t}(e),t=[];function r(){t=t.filter((function(e){return"pending"===e().status}))}return{query:function(e,o,i){var a=m.sendQuery(n,e,o,(function(e,n){r(),i&&i(e,n)}),(function(e){n.index=e}));return t.push(a),a},find:function(e){var n=t.find((function(n){return e(n)}));return void 0!==n?n:null},setIndex:function(e){n.index=e},getIndex:function(){return n.index},cleanup:r}}})),y=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIModule=n.setAPIModule=void 0;var t=Object.create(null);n.setAPIModule=function(e,n){t[e]=n},n.getAPIModule=function(e){return t[e]||t[""]}})),I=n((function(e,n){function t(e){var n;if("string"==typeof e.resources)n=[e.resources];else if(!((n=e.resources)instanceof Array&&n.length))return null;return{resources:n,path:void 0===e.path?"/":e.path,maxURL:e.maxURL?e.maxURL:500,rotate:e.rotate?e.rotate:750,timeout:e.timeout?e.timeout:5e3,random:!0===e.random,index:e.index?e.index:0,dataAfterTimeout:!1!==e.dataAfterTimeout}}Object.defineProperty(n,"__esModule",{value:!0}),n.listAPIProviders=n.getAPIConfig=n.setAPIConfig=n.createAPIConfig=void 0,n.createAPIConfig=t;for(var r=Object.create(null),o=["https://api.simplesvg.com","https://api.unisvg.com"],i=[];o.length>0;)1===o.length||Math.random()>.5?i.push(o.shift()):i.push(o.pop());r[""]=t({resources:["https://api.iconify.design"].concat(i)}),n.setAPIConfig=function(e,n){var o=t(n);return null!==o&&(r[e]=o,!0)},n.getAPIConfig=function(e){return r[e]},n.listAPIProviders=function(){return Object.keys(r)}})),j=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sendAPIQuery=void 0;var t=I;function r(){}var o=Object.create(null);n.sendAPIQuery=function(e,n,i){var a,c;if("string"==typeof e){var u=y.getAPIModule(e);if(!u)return i(void 0,424),r;c=u.send;var f=function(e){if(void 0===o[e]){var n=t.getAPIConfig(e);if(!n)return;var r={config:n,redundancy:b.initRedundancy(n)};o[e]=r}return o[e]}(e);f&&(a=f.redundancy)}else{var s=I.createAPIConfig(e);if(s){a=b.initRedundancy(s);var l=e.resources?e.resources[0]:"",d=y.getAPIModule(l);d&&(c=d.send)}}return a&&c?a.query(n,c,i)().abort:(i(void 0,424),r)}})),P=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sortIcons=void 0,n.sortIcons=function(e){var n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((function(e,n){return e.provider!==n.provider?e.provider.localeCompare(n.provider):e.prefix!==n.prefix?e.prefix.localeCompare(n.prefix):e.name.localeCompare(n.name)}));var r={provider:"",prefix:"",name:""};return e.forEach((function(e){if(r.name!==e.name||r.prefix!==e.prefix||r.provider!==e.provider){r=e;var o=e.provider,i=e.prefix,c=e.name;void 0===t[o]&&(t[o]=Object.create(null));var u=t[o];void 0===u[i]&&(u[i]=a.getStorage(o,i));var f=u[i],s={provider:o,prefix:i,name:c};(void 0!==f.icons[c]?n.loaded:""===i||void 0!==f.missing[c]?n.missing:n.pending).push(s)}})),n}})),O=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeCallback=n.updateCallbacks=n.callbacks=void 0,n.callbacks=Object.create(null);var t=Object.create(null);function r(e,t){e.forEach((function(e){var r=e.provider;if(void 0!==n.callbacks[r]){var o=n.callbacks[r],i=e.prefix,a=o[i];a&&(o[i]=a.filter((function(e){return e.id!==t})))}}))}n.updateCallbacks=function(e,o){void 0===t[e]&&(t[e]=Object.create(null));var i=t[e];i[o]||(i[o]=!0,setTimeout((function(){if(i[o]=!1,void 0!==n.callbacks[e]&&void 0!==n.callbacks[e][o]){var t=n.callbacks[e][o].slice(0);if(t.length){var c=a.getStorage(e,o),u=!1;t.forEach((function(n){var t=n.icons,i=t.pending.length;t.pending=t.pending.filter((function(n){if(n.prefix!==o)return!0;var r=n.name;if(void 0!==c.icons[r])t.loaded.push({provider:e,prefix:o,name:r});else{if(void 0===c.missing[r])return u=!0,!0;t.missing.push({provider:e,prefix:o,name:r})}return!1})),t.pending.length!==i&&(u||r([{provider:e,prefix:o}],n.id),n.callback(t.loaded.slice(0),t.missing.slice(0),t.pending.slice(0),n.abort))}))}}})))};var o=0;n.storeCallback=function(e,t,i){var a=o++,c=r.bind(null,i,a);if(!t.pending.length)return c;var u={id:a,icons:t,callback:e,abort:c};return i.forEach((function(e){var t=e.provider,r=e.prefix;void 0===n.callbacks[t]&&(n.callbacks[t]=Object.create(null));var o=n.callbacks[t];void 0===o[r]&&(o[r]=[]),o[r].push(u)})),c}})),x=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getProviders=n.listToIcons=void 0,n.listToIcons=function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t=!1);var r=[];return e.forEach((function(e){var o="string"==typeof e?i.stringToIcon(e,!1,t):e;n&&!i.validateIcon(o,t)||r.push({provider:o.provider,prefix:o.prefix,name:o.name})})),r},n.getProviders=function(e){var n=Object.create(null);return e.forEach((function(e){n[e.provider]=!0})),Object.keys(n)}})),w=n((function(e,n){function t(){}Object.defineProperty(n,"__esModule",{value:!0}),n.loadIcons=n.isPending=void 0;var r=Object.create(null),o=Object.create(null),i=Object.create(null),u=Object.create(null);var f=Object.create(null);function s(e,n,t){void 0===o[e]&&(o[e]=Object.create(null));var c=o[e];void 0===u[e]&&(u[e]=Object.create(null));var s=u[e];void 0===r[e]&&(r[e]=Object.create(null));var l=r[e];void 0===c[n]?c[n]=t:c[n]=c[n].concat(t).sort(),s[n]||(s[n]=!0,setTimeout((function(){s[n]=!1;var t=c[n];delete c[n];var r=y.getAPIModule(e);r?r.prepare(e,n,t).forEach((function(t){j.sendAPIQuery(e,t,(function(r,o){var c=a.getStorage(e,n);if("object"!=typeof r){if(404!==o)return;var u=Date.now();t.icons.forEach((function(e){c.missing[e]=u}))}else try{var f=a.addIconSet(c,r,"all");if("boolean"==typeof f)return;var s=l[n];f.forEach((function(e){delete s[e]})),p.cache.store&&p.cache.store(e,r)}catch(e){console.error(e)}!function(e,n){void 0===i[e]&&(i[e]=Object.create(null));var t=i[e];t[n]||(t[n]=!0,setTimeout((function(){t[n]=!1,O.updateCallbacks(e,n)})))}(e,n)}))})):function(){var t=(""===e?"":"@"+e+":")+n,r=Math.floor(Date.now()/6e4);f[t]<r&&(f[t]=r,console.error('Unable to retrieve icons for "'+t+'" because API is not configured properly.'))}()})))}n.isPending=function(e){var n=e.provider,t=e.prefix;return r[n]&&r[n][t]&&void 0!==r[n][t][e.name]};n.loadIcons=function(e,n){var o=x.listToIcons(e,!0,c.allowSimpleNames()),i=P.sortIcons(o);if(!i.pending.length){var a=!0;return n&&setTimeout((function(){a&&n(i.loaded,i.missing,i.pending,t)})),function(){a=!1}}var u,f,l=Object.create(null),d=[];i.pending.forEach((function(e){var n=e.provider,t=e.prefix;if(t!==f||n!==u){u=n,f=t,d.push({provider:n,prefix:t}),void 0===r[n]&&(r[n]=Object.create(null));var o=r[n];void 0===o[t]&&(o[t]=Object.create(null)),void 0===l[n]&&(l[n]=Object.create(null));var i=l[n];void 0===i[t]&&(i[t]=[])}}));var v=Date.now();return i.pending.forEach((function(e){var n=e.provider,t=e.prefix,o=e.name,i=r[n][t];void 0===i[o]&&(i[o]=v,l[n][t].push(o))})),d.forEach((function(e){var n=e.provider,t=e.prefix;l[n][t].length&&s(n,t,l[n][t])})),n?O.storeCallback(n,i,d):t}})),A=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeParams=void 0;n.mergeParams=function(e,n){var t=e,r=-1!==t.indexOf("?");return Object.keys(n).forEach((function(e){var o;try{o=function(e){switch(typeof e){case"boolean":return e?"true":"false";case"number":case"string":return encodeURIComponent(e);default:throw new Error("Invalid parameter")}}(n[e])}catch(e){return}t+=(r?"&":"?")+encodeURIComponent(e)+"="+o,r=!0})),t}})),M=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.APIInternalFunctions=n.APIFunctions=void 0,n.APIFunctions={loadIcons:w.loadIcons,addAPIProvider:I.setAPIConfig},n.APIInternalFunctions={getAPIConfig:I.getAPIConfig,setAPIModule:y.setAPIModule,sendAPIQuery:j.sendAPIQuery,listAPIProviders:I.listAPIProviders,mergeParams:A.mergeParams}})),S=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.jsonpAPIModule=void 0;var t=null,r=null,o=Object.create(null),i=Object.create(null);function a(){if(null===t){var e=self,n="Iconify",o=".cb";if(void 0===e[n])o="",void 0===e[n="IconifyJSONP"]&&(e[n]=Object.create(null)),t=e[n];else{var i=e[n];void 0===i.cb&&(i.cb=Object.create(null)),t=i.cb}r=n+o+".{cb}"}return t}n.jsonpAPIModule={prepare:function(e,n,t){var c=[],u=o[e+":"+n];void 0===u&&(u=function(e,n){var t,c=I.getAPIConfig(e);if(!c)return 0;if(c.maxURL){var u=0;c.resources.forEach((function(e){var n=e;u=Math.max(u,n.length)})),a();var f=A.mergeParams(n+".js",{icons:"",callback:r});t=c.maxURL-u-c.path.length-f.length}else t=0;var s=e+":"+n;return i[s]=c.path,o[s]=t,t}(e,n));var f="icons",s={type:f,provider:e,prefix:n,icons:[]},l=0;return t.forEach((function(t,r){(l+=t.length+1)>=u&&r>0&&(c.push(s),s={type:f,provider:e,prefix:n,icons:[]},l=t.length),s.icons.push(t)})),c.push(s),c},send:function(e,n,t){if("icons"===n.type){for(var o=n.provider,c=n.prefix,u=n.icons.join(","),f=o+":"+c,s=c.split("-").shift().slice(0,3),l=a(),d=function(e){var n,t=0;for(n=e.length-1;n>=0;n--)t+=e.charCodeAt(n);return t%999}(o+":"+e+":"+c+":"+u);void 0!==l[s+d];)d++;var v=s+d,p=A.mergeParams(c+".js",{icons:u,callback:r.replace("{cb}",v)}),h=i[f]+p;l[v]=function(e){delete l[v],t.done(e)};var g=e+h,m=document.createElement("script");m.type="text/javascript",m.async=!0,m.src=g,document.head.appendChild(m)}else t.done(void 0,400)}}})),_=n((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchAPIModule=t.getFetch=t.setFetch=void 0;var r=Object.create(null),o=Object.create(null),i=function(){var n;try{if("function"==typeof(n=fetch))return n}catch(e){}try{var t=String.fromCharCode(114)+String.fromCharCode(101);if("function"==typeof(n=(0,e[t+"qui"+t])("cross-fetch")))return n}catch(e){}return null}();t.setFetch=function(e){i=e},t.getFetch=function(){return i};t.fetchAPIModule={prepare:function(e,n,t){var i=[],a=r[n];void 0===a&&(a=function(e,n){var t,i=I.getAPIConfig(e);if(!i)return 0;if(i.maxURL){var a=0;i.resources.forEach((function(e){var n=e;a=Math.max(a,n.length)}));var c=A.mergeParams(n+".json",{icons:""});t=i.maxURL-a-i.path.length-c.length}else t=0;var u=e+":"+n;return o[e]=i.path,r[u]=t,t}(e,n));var c="icons",u={type:c,provider:e,prefix:n,icons:[]},f=0;return t.forEach((function(t,r){(f+=t.length+1)>=a&&r>0&&(i.push(u),u={type:c,provider:e,prefix:n,icons:[]},f=t.length),u.icons.push(t)})),i.push(u),i},send:function(e,n,t){if(i){var r=function(e){if("string"==typeof e){if(void 0===o[e]){var n=I.getAPIConfig(e);if(!n)return"/";o[e]=n.path}return o[e]}return"/"}(n.provider);switch(n.type){case"icons":var a=n.prefix,c=n.icons.join(",");r+=A.mergeParams(a+".json",{icons:c});break;case"custom":var u=n.uri;r+="/"===u.slice(0,1)?u.slice(1):u;break;default:return void t.done(void 0,400)}var f=503;i(e+r).then((function(e){if(200===e.status)return f=501,e.json();setTimeout((function(){t.done(void 0,e.status)}))})).then((function(e){"object"==typeof e&&null!==e?setTimeout((function(){t.done(e)})):setTimeout((function(){t.done(void 0,f)}))})).catch((function(){t.done(void 0,f)}))}else t.done(void 0,424)}}})),C="iconifyFinder"+Date.now(),E="iconifyData"+Date.now();function k(e,n,t,r){var o;try{o=document.createElement("span")}catch(e){return r?"":null}var i=l.iconToSVG(t,s.mergeCustomisations(s.defaults,n)),a=e.element,c=e.finder,f=e.name,d=a?a.getAttribute("class"):"",v=c?c.classFilter(d?d.split(/\s+/):[]):[],p='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="'+("iconify iconify--"+f.prefix+(""===f.provider?"":" iconify--"+f.provider)+(v.length?" "+v.join(" "):""))+'">'+u.replaceIDs(i.body)+"</svg>";o.innerHTML=p;var h=o.childNodes[0],g=h.style,m=i.attributes;if(Object.keys(m).forEach((function(e){h.setAttribute(e,m[e])})),i.inline&&(g.verticalAlign="-0.125em"),a){for(var b=a.attributes,y=0;y<b.length;y++){var I=b.item(y);if(I){var j=I.name;if("class"!==j&&"style"!==j&&void 0===m[j])try{h.setAttribute(j,I.value)}catch(e){}}}for(var P=a.style,O=0;O<P.length;O++){var x=P[O];g[x]=P[x]}}if(c){var w={name:f,status:"loaded",customisations:n};h[E]=w,h[C]=c}var A=r?o.innerHTML:h;return a&&a.parentNode?a.parentNode.replaceChild(h,a):o.removeChild(h),A}var F=[];function T(e){for(var n=0;n<F.length;n++){var t=F[n];if(("function"==typeof t.node?t.node():t.node)===e)return t}}function D(e,n){void 0===n&&(n=!1);var t=T(e);return t?(t.temporary&&(t.temporary=n),t):(t={node:e,temporary:n},F.push(t),t)}function N(){return F}var L=null,z={childList:!0,subtree:!0,attributes:!0};function R(e){if(e.observer){var n=e.observer;n.pendingScan||(n.pendingScan=setTimeout((function(){delete n.pendingScan,L&&L(e)})))}}function q(e,n){if(e.observer){var t=e.observer;if(!t.pendingScan)for(var r=0;r<n.length;r++){var o=n[r];if(o.addedNodes&&o.addedNodes.length>0||"attributes"===o.type&&void 0!==o.target[C])return void(t.paused||R(e))}}}function U(e,n){e.observer.instance.observe(n,z)}function Q(e){var n=e.observer;if(!n||!n.instance){var t="function"==typeof e.node?e.node():e.node;t&&(n||(n={paused:0},e.observer=n),n.instance=new MutationObserver(q.bind(null,e)),U(e,t),n.paused||R(e))}}function V(){N().forEach(Q)}function G(e){if(e.observer){var n=e.observer;n.pendingScan&&(clearTimeout(n.pendingScan),delete n.pendingScan),n.instance&&(n.instance.disconnect(),delete n.instance)}}function $(e){var n=null!==L;L!==e&&(L=e,n&&N().forEach(G)),n?V():function(e){var n=document;"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e():(n.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}(V)}function B(e){(e?[e]:N()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused++,!(n.paused>1)&&n.instance)n.instance.disconnect()}else e.observer={paused:1}}))}function H(e){(e?[e]:N()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused&&(n.paused--,!n.paused)){var t="function"==typeof e.node?e.node():e.node;if(!t)return;n.instance?U(e,t):Q(e)}}else Q(e)}))}function J(e,n){void 0===n&&(n=!1);var t=D(e,n);return Q(t),t}function Y(e){var n=T(e);n&&(G(n),function(e){F=F.filter((function(n){var t="function"==typeof n.node?n.node():n.node;return e!==t}))}(e))}var Z=[];function K(e){return"string"==typeof e&&(e=i.stringToIcon(e)),null!==e&&i.validateIcon(e)?e:null}function W(e){var n=[];Z.forEach((function(t){var r=t.find(e);Array.prototype.forEach.call(r,(function(e){var r=e;if(void 0===r[C]||r[C]===t){var o=K(t.name(r));if(null!==o){r[C]=t;var i={element:r,finder:t,name:o};n.push(i)}}}))}));var t=e.querySelectorAll("svg.iconify");return Array.prototype.forEach.call(t,(function(e){var t=e,r=t[C],o=t[E];if(r&&o){var i=K(r.name(t));if(null!==i){var a,c=!1;if(i.prefix!==o.name.prefix||i.name!==o.name.name?c=!0:(a=r.customisations(t),function(e,n){var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var o=0;o<t.length;o++){var i=t[o];if(n[i]!==e[i])return!1}return!0}(o.customisations,a)||(c=!0)),c){var u={element:t,finder:r,name:i,customisations:a};n.push(u)}}}})),n}var X=!1;function ee(){X||(X=!0,setTimeout((function(){X&&(X=!1,ne())})))}function ne(e,n){void 0===n&&(n=!1),X=!1;var t=Object.create(null);(e?[e]:N()).forEach((function(e){var r="function"==typeof e.node?e.node():e.node;if(r&&r.querySelectorAll){var o=!1,i=!1;W(r).forEach((function(n){var r,c,u=n.element,f=n.name,s=f.provider,l=f.prefix,d=f.name,v=u[E];if(void 0!==v&&(r=v.name,c=f,null!==r&&null!==c&&r.name===c.name&&r.prefix===c.prefix))switch(v.status){case"missing":return;case"loading":if(w.isPending({provider:s,prefix:l,name:d}))return void(o=!0)}var p=a.getStorage(s,l);if(void 0===p.icons[d]){if(p.missing[d])return v={name:f,status:"missing",customisations:{}},void(u[E]=v);if(!w.isPending({provider:s,prefix:l,name:d})){void 0===t[s]&&(t[s]=Object.create(null));var h=t[s];void 0===h[l]&&(h[l]=Object.create(null)),h[l][d]=!0}v={name:f,status:"loading",customisations:{}},u[E]=v,o=!0}else{!i&&e.observer&&(B(e),i=!0);var g=void 0!==n.customisations?n.customisations:n.finder.customisations(u);k(n,g,a.getIcon(p,d))}})),e.temporary&&!o?Y(r):n&&o?J(r,!0):i&&e.observer&&H(e)}})),Object.keys(t).forEach((function(e){var n=t[e];Object.keys(n).forEach((function(t){w.loadIcons(Object.keys(n[t]).map((function(n){return{provider:e,prefix:t,name:n}})),ee)}))}))}var te=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.rotateFromString=void 0,n.rotateFromString=function(e){var n=e.replace(/^-?[0-9.]*/,"");function t(e){for(;e<0;)e+=4;return e%4}if(""===n){var r=parseInt(e);return isNaN(r)?0:t(r)}if(n!==e){var o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){var i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=o)%1==0?t(i):0}}return 0}})),re=n((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.alignmentFromString=n.flipFromString=void 0;var t=/[\s,]+/;n.flipFromString=function(e,n){n.split(t).forEach((function(n){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))},n.alignmentFromString=function(e,n){n.split(t).forEach((function(n){var t=n.trim();switch(t){case"left":case"center":case"right":e.hAlign=t;break;case"top":case"middle":case"bottom":e.vAlign=t;break;case"slice":case"crop":e.slice=!0;break;case"meet":e.slice=!1}}))}}));function oe(e,n){return e.hasAttribute(n)}function ie(e,n){return e.getAttribute(n)}var ae=["inline","hFlip","vFlip"],ce=["width","height"],ue="iconify-inline",fe={find:function(e){return e.querySelectorAll("i.iconify, span.iconify, i.iconify-inline, span.iconify-inline")},name:function(e){return oe(e,"data-icon")?ie(e,"data-icon"):null},customisations:function(e,n){void 0===n&&(n={inline:!1});var t=n,r=e.getAttribute("class");if(-1!==(r?r.split(/\s+/):[]).indexOf(ue)&&(t.inline=!0),oe(e,"data-rotate")){var o=te.rotateFromString(ie(e,"data-rotate"));o&&(t.rotate=o)}return oe(e,"data-flip")&&re.flipFromString(t,ie(e,"data-flip")),oe(e,"data-align")&&re.alignmentFromString(t,ie(e,"data-align")),ae.forEach((function(n){if(oe(e,"data-"+n)){var r=function(e,n){var t=e.getAttribute(n);return t===n||"true"===t||""!==t&&"false"!==t&&null}(e,"data-"+n);"boolean"==typeof r&&(t[n]=r)}})),ce.forEach((function(n){if(oe(e,"data-"+n)){var r=ie(e,"data-"+n);""!==r&&(t[n]=r)}})),t},classFilter:function(e){var n=[];return e.forEach((function(e){"iconify"!==e&&""!==e&&"iconify--"!==e.slice(0,9)&&n.push(e)})),n}};function se(e,n,t){var r=c.getIconData(e);return r?k({name:i.stringToIcon(e)},s.mergeCustomisations(s.defaults,"object"==typeof n?n:{}),r,t):null}var le={getVersion:function(){return"2.1.0-beta.2"},renderSVG:function(e,n){return se(e,n,!1)},renderHTML:function(e,n){return se(e,n,!0)},renderIcon:function(e,n){var t=c.getIconData(e);if(!t)return null;var r=s.mergeCustomisations(s.defaults,"object"==typeof n?n:{});return l.iconToSVG(t,r)},scan:function(e){e?function(e){var n=T(e);n?ne(n):ne({node:e,temporary:!0},!0)}(e):ne()},observe:function(e){J(e)},stopObserving:function(e){Y(e)},pauseObserver:function(e){if(e){var n=T(e);n&&B(n)}else B()},resumeObserver:function(e){if(e){var n=T(e);n&&H(n)}else H()}};if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return D(document.documentElement);F.push({node:function(){return document.documentElement}})}(),function(e){-1===Z.indexOf(e)&&Z.push(e)}(fe);var de=window;if(void 0!==de.IconifyPreload){var ve=de.IconifyPreload,pe="Invalid IconifyPreload syntax.";"object"==typeof ve&&null!==ve&&(ve instanceof Array?ve:[ve]).forEach((function(e){try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!c.storageFunctions.addCollection(e))&&console.error(pe)}catch(e){console.error(pe)}}))}setTimeout((function(){$(ne),ne()}))}var he={enableCache:function(e,n){return h.toggleBrowserCache(e,!1!==n)},disableCache:function(e){return h.toggleBrowserCache(e,!0)}},ge={_api:M.APIInternalFunctions};if([c.storageFunctions,d.builderFunctions,le,he,M.APIFunctions].forEach((function(e){for(var n in e)ge[n]=e[n]})),y.setAPIModule("",_.getFetch()?_.fetchAPIModule:S.jsonpAPIModule),ge._api.setFetch=function(e){_.setFetch(e),y.setAPIModule("",_.fetchAPIModule)},"undefined"!=typeof document&&"undefined"!=typeof window){p.cache.store=v.storeCache,v.loadCache();var me=window;if(void 0!==me.IconifyProviders){var be=me.IconifyProviders;if("object"==typeof be&&null!==be)for(var ye in be){var Ie="IconifyProviders["+ye+"] is invalid.";try{var je=be[ye];if("object"!=typeof je||!je||void 0===je.resources)continue;I.setAPIConfig(ye,je)||console.error(Ie)}catch(e){console.error(Ie)}}}}return ge}();try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(e){}if("object"==typeof exports)try{exports.__esModule=!0,exports.default=Iconify}catch(e){} |
@@ -13,2 +13,2 @@ /** | ||
*/ | ||
var Iconify=function(){"use strict";function e(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}var n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fullIcon=n.iconDefaults=n.minifyProps=n.matchName=void 0,n.matchName=/^[a-z0-9]+(-[a-z0-9]+)*$/,n.minifyProps=["width","height","top","left"],n.iconDefaults=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1}),n.fullIcon=function(e){return Object.assign({},n.iconDefaults,e)}})),t=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeIconData=void 0,t.mergeIconData=function(e,t){var r=Object.assign({},e);for(var i in n.iconDefaults){var o=i;if(void 0!==t[o]){var a=t[o];if(void 0===r[o]){r[o]=a;continue}switch(o){case"rotate":r[o]=(r[o]+a)%4;break;case"hFlip":case"vFlip":r[o]=a!==r[o];break;default:r[o]=a}}}return r}})),r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseIconSet=void 0;var i=Object.keys(n.iconDefaults);function o(e,n,r,i){void 0===i&&(i=0);var a=e.parent;if(void 0!==n[a])return t.mergeIconData(n[a],e);if(void 0!==r[a]){if(i>2)return null;var c=o(r[a],n,r,i+1);if(c)return t.mergeIconData(c,e)}return null}r.parseIconSet=function(e,t,r){void 0===r&&(r="none");var a=[];if("object"!=typeof e)return"none"!==r&&a;if(e.not_found instanceof Array&&e.not_found.forEach((function(e){t(e,null),"all"===r&&a.push(e)})),"object"!=typeof e.icons)return"none"!==r&&a;var c=Object.create(null);i.forEach((function(n){void 0!==e[n]&&"object"!=typeof e[n]&&(c[n]=e[n])}));var u=e.icons;if(Object.keys(u).forEach((function(e){var r=u[e];"string"==typeof r.body&&(t(e,Object.freeze(Object.assign({},n.iconDefaults,c,r))),a.push(e))})),"object"==typeof e.aliases){var f=e.aliases;Object.keys(f).forEach((function(e){var r=o(f[e],u,f,1);r&&(t(e,Object.freeze(Object.assign({},n.iconDefaults,c,r))),a.push(e))}))}return"none"===r?a.length>0:a}})),i=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateIcon=t.stringToIcon=void 0;t.stringToIcon=function(e,n,r,i){void 0===i&&(i="");var o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){var a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:i,prefix:c,name:a};return n&&!t.validateIcon(u)?null:u}var f=o[0],l=f.split("-");if(l.length>1){var s={provider:i,prefix:l.shift(),name:l.join("-")};return n&&!t.validateIcon(s)?null:s}if(r&&""===i){var d={provider:i,prefix:"",name:f};return n&&!t.validateIcon(d,r)?null:d}return null};t.validateIcon=function(e,t){return!!e&&!(""!==e.provider&&!e.provider.match(n.matchName)||!(t&&""===e.prefix||e.prefix.match(n.matchName))||!e.name.match(n.matchName))}})),o=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.listIcons=t.getIcon=t.iconExists=t.addIcon=t.addIconSet=t.getStorage=t.newStorage=void 0;var i=Object.create(null);function o(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:Object.create(null)}}function a(e,n){void 0===i[e]&&(i[e]=Object.create(null));var t=i[e];return void 0===t[n]&&(t[n]=o(e,n)),t[n]}t.newStorage=o,t.getStorage=a,t.addIconSet=function(e,n,t){void 0===t&&(t="none");var i=Date.now();return r.parseIconSet(n,(function(n,t){null===t?e.missing[n]=i:e.icons[n]=t}),t)},t.addIcon=function(e,t,r){try{if("string"==typeof r.body)return e.icons[t]=Object.freeze(n.fullIcon(r)),!0}catch(e){}return!1},t.iconExists=function(e,n){return void 0!==e.icons[n]},t.getIcon=function(e,n){var t=e.icons[n];return void 0===t?null:t},t.listIcons=function(e,n){var t=[];return("string"==typeof e?[e]:Object.keys(i)).forEach((function(e){("string"==typeof e&&"string"==typeof n?[n]:void 0===i[e]?[]:Object.keys(i[e])).forEach((function(n){var r=a(e,n),i=Object.keys(r.icons).map((function(t){return(""!==e?"@"+e+":":"")+n+":"+t}));t=t.concat(i)}))})),t}})),a=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storageFunctions=n.addCollection=n.addIcon=n.getIconData=n.allowSimpleNames=void 0;var t=!1;function a(e){var n="string"==typeof e?i.stringToIcon(e,!0,t):e;return n?o.getIcon(o.getStorage(n.provider,n.prefix),n.name):null}function c(e,n){var r=i.stringToIcon(e,!0,t);if(!r)return!1;var a=o.getStorage(r.provider,r.prefix);return o.addIcon(a,r.name,n)}function u(e,n){if("object"!=typeof e)return!1;if("string"!=typeof n&&(n="string"==typeof e.provider?e.provider:""),t&&""===n&&("string"!=typeof e.prefix||""===e.prefix)){var a=!1;return r.parseIconSet(e,(function(e,n){null!==n&&c(e,n)&&(a=!0)})),a}if("string"!=typeof e.prefix||!i.validateIcon({provider:n,prefix:e.prefix,name:"a"}))return!1;var u=o.getStorage(n,e.prefix);return!!o.addIconSet(u,e)}n.allowSimpleNames=function(e){return"boolean"==typeof e&&(t=e),t},n.getIconData=a,n.addIcon=c,n.addCollection=u,n.storageFunctions={iconExists:function(e){return null!==a(e)},getIcon:function(e){var n=a(e);return n?Object.assign({},n):null},listIcons:o.listIcons,addIcon:c,addCollection:u}})),c=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.replaceIDs=void 0;var t=/\sid="(\S+)"/g,r="([^A-Za-z0-9_-])";var i="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o=0;n.replaceIDs=function(e,n){void 0===n&&(n=i);for(var a,c=[];a=t.exec(e);)c.push(a[1]);return c.length?(c.forEach((function(t){var i="function"==typeof n?n():n+o++;e=e.replace(new RegExp(r+"("+(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")")+r,"g"),"$1"+i+"$3")})),e):e}})),u=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.calculateSize=void 0;var t=/(-?[0-9.]*[0-9]+[0-9.]*)/g,r=/^-?[0-9.]*[0-9]+[0-9.]*$/g;n.calculateSize=function(e,n,i){if(1===n)return e;if(i=void 0===i?100:i,"number"==typeof e)return Math.ceil(e*n*i)/i;if("string"!=typeof e)return e;var o=e.split(t);if(null===o||!o.length)return e;for(var a=[],c=o.shift(),u=r.test(c);;){if(u){var f=parseFloat(c);isNaN(f)?a.push(c):a.push(Math.ceil(f*n*i)/i)}else a.push(c);if(void 0===(c=o.shift()))return a.join("");u=!u}}})),f=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeCustomisations=n.defaults=void 0,n.defaults=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0}),n.mergeCustomisations=function(e,n){var t={};for(var r in e){var i=r;if(t[i]=e[i],void 0!==n[i]){var o=n[i];switch(i){case"inline":case"slice":"boolean"==typeof o&&(t[i]=o);break;case"hFlip":case"vFlip":!0===o&&(t[i]=!t[i]);break;case"hAlign":case"vAlign":"string"==typeof o&&""!==o&&(t[i]=o);break;case"width":case"height":("string"==typeof o&&""!==o||"number"==typeof o&&o||null===o)&&(t[i]=o);break;case"rotate":"number"==typeof o&&(t[i]+=o)}}}return t}})),l=e((function(e,n){function t(e){var n="";switch(e.hAlign){case"left":n+="xMin";break;case"right":n+="xMax";break;default:n+="xMid"}switch(e.vAlign){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}Object.defineProperty(n,"__esModule",{value:!0}),n.iconToSVG=void 0,n.iconToSVG=function(e,n){var r,i,o={left:e.left,top:e.top,width:e.width,height:e.height},a=e.body;[e,n].forEach((function(e){var n,t=[],r=e.hFlip,i=e.vFlip,c=e.rotate;switch(r?i?c+=2:(t.push("translate("+(o.width+o.left)+" "+(0-o.top)+")"),t.push("scale(-1 1)"),o.top=o.left=0):i&&(t.push("translate("+(0-o.left)+" "+(o.height+o.top)+")"),t.push("scale(1 -1)"),o.top=o.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n=o.height/2+o.top,t.unshift("rotate(90 "+n+" "+n+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left)+" "+(o.height/2+o.top)+")");break;case 3:n=o.width/2+o.left,t.unshift("rotate(-90 "+n+" "+n+")")}c%2==1&&(0===o.left&&0===o.top||(n=o.left,o.left=o.top,o.top=n),o.width!==o.height&&(n=o.width,o.width=o.height,o.height=n)),t.length&&(a='<g transform="'+t.join(" ")+'">'+a+"</g>")})),null===n.width&&null===n.height?(i="1em",r=u.calculateSize(i,o.width/o.height)):null!==n.width&&null!==n.height?(r=n.width,i=n.height):null!==n.height?(i=n.height,r=u.calculateSize(i,o.width/o.height)):(r=n.width,i=u.calculateSize(r,o.height/o.width)),"auto"===r&&(r=o.width),"auto"===i&&(i=o.height);var c={attributes:{width:r="string"==typeof r?r:r+"",height:i="string"==typeof i?i:i+"",preserveAspectRatio:t(n),viewBox:o.left+" "+o.top+" "+o.width+" "+o.height},body:a};return n.inline&&(c.inline=!0),c}})),s=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.builderFunctions=void 0,t.builderFunctions={replaceIDs:c.replaceIDs,calculateSize:u.calculateSize,buildIcon:function(e,t){return l.iconToSVG(n.fullIcon(e),f.mergeCustomisations(f.defaults,t))}}})),d="iconifyFinder"+Date.now(),v="iconifyData"+Date.now();function p(e,n,t,r){var i;try{i=document.createElement("span")}catch(e){return r?"":null}var o=l.iconToSVG(t,f.mergeCustomisations(f.defaults,n)),a=e.element,u=e.finder,s=e.name,p=a?a.getAttribute("class"):"",g=u?u.classFilter(p?p.split(/\s+/):[]):[],h='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="'+("iconify iconify--"+s.prefix+(""===s.provider?"":" iconify--"+s.provider)+(g.length?" "+g.join(" "):""))+'">'+c.replaceIDs(o.body)+"</svg>";i.innerHTML=h;var m=i.childNodes[0],b=m.style,y=o.attributes;if(Object.keys(y).forEach((function(e){m.setAttribute(e,y[e])})),o.inline&&(b.verticalAlign="-0.125em"),a){for(var I=a.attributes,j=0;j<I.length;j++){var O=I.item(j);if(O){var x=O.name;if("class"!==x&&"style"!==x&&void 0===y[x])try{m.setAttribute(x,O.value)}catch(e){}}}for(var w=a.style,S=0;S<w.length;S++){var E=w[S];b[E]=w[E]}}if(u){var P={name:s,status:"loaded",customisations:n};m[v]=P,m[d]=u}var M=r?i.innerHTML:m;return a&&a.parentNode?a.parentNode.replaceChild(m,a):i.removeChild(m),M}var g=[];function h(e){for(var n=0;n<g.length;n++){var t=g[n];if(("function"==typeof t.node?t.node():t.node)===e)return t}}function m(e,n){void 0===n&&(n=!1);var t=h(e);return t?(t.temporary&&(t.temporary=n),t):(t={node:e,temporary:n},g.push(t),t)}function b(){return g}var y=null,I={childList:!0,subtree:!0,attributes:!0};function j(e){if(e.observer){var n=e.observer;n.pendingScan||(n.pendingScan=setTimeout((function(){delete n.pendingScan,y&&y(e)})))}}function O(e,n){if(e.observer){var t=e.observer;if(!t.pendingScan)for(var r=0;r<n.length;r++){var i=n[r];if(i.addedNodes&&i.addedNodes.length>0||"attributes"===i.type&&void 0!==i.target[d])return void(t.paused||j(e))}}}function x(e,n){e.observer.instance.observe(n,I)}function w(e){var n=e.observer;if(!n||!n.instance){var t="function"==typeof e.node?e.node():e.node;t&&(n||(n={paused:0},e.observer=n),n.instance=new MutationObserver(O.bind(null,e)),x(e,t),n.paused||j(e))}}function S(){b().forEach(w)}function E(e){if(e.observer){var n=e.observer;n.pendingScan&&(clearTimeout(n.pendingScan),delete n.pendingScan),n.instance&&(n.instance.disconnect(),delete n.instance)}}function P(e){var n=null!==y;y!==e&&(y=e,n&&b().forEach(E)),n?S():function(e){var n=document;"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e():(n.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}(S)}function M(e){(e?[e]:b()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused++,!(n.paused>1)&&n.instance)n.instance.disconnect()}else e.observer={paused:1}}))}function _(e){(e?[e]:b()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused&&(n.paused--,!n.paused)){var t="function"==typeof e.node?e.node():e.node;if(!t)return;n.instance?x(e,t):w(e)}}else w(e)}))}function k(e,n){void 0===n&&(n=!1);var t=m(e,n);return w(t),t}function A(e){var n=h(e);n&&(E(n),function(e){g=g.filter((function(n){var t="function"==typeof n.node?n.node():n.node;return e!==t}))}(e))}var F=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sortIcons=void 0,n.sortIcons=function(e){var n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((function(e,n){return e.provider!==n.provider?e.provider.localeCompare(n.provider):e.prefix!==n.prefix?e.prefix.localeCompare(n.prefix):e.name.localeCompare(n.name)}));var r={provider:"",prefix:"",name:""};return e.forEach((function(e){if(r.name!==e.name||r.prefix!==e.prefix||r.provider!==e.provider){r=e;var i=e.provider,a=e.prefix,c=e.name;void 0===t[i]&&(t[i]=Object.create(null));var u=t[i];void 0===u[a]&&(u[a]=o.getStorage(i,a));var f=u[a],l={provider:i,prefix:a,name:c};(void 0!==f.icons[c]?n.loaded:""===a||void 0!==f.missing[c]?n.missing:n.pending).push(l)}})),n}})),T=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeCallback=n.updateCallbacks=n.callbacks=void 0,n.callbacks=Object.create(null);var t=Object.create(null);function r(e,t){e.forEach((function(e){var r=e.provider;if(void 0!==n.callbacks[r]){var i=n.callbacks[r],o=e.prefix,a=i[o];a&&(i[o]=a.filter((function(e){return e.id!==t})))}}))}n.updateCallbacks=function(e,i){void 0===t[e]&&(t[e]=Object.create(null));var a=t[e];a[i]||(a[i]=!0,setTimeout((function(){if(a[i]=!1,void 0!==n.callbacks[e]&&void 0!==n.callbacks[e][i]){var t=n.callbacks[e][i].slice(0);if(t.length){var c=o.getStorage(e,i),u=!1;t.forEach((function(n){var t=n.icons,o=t.pending.length;t.pending=t.pending.filter((function(n){if(n.prefix!==i)return!0;var r=n.name;if(void 0!==c.icons[r])t.loaded.push({provider:e,prefix:i,name:r});else{if(void 0===c.missing[r])return u=!0,!0;t.missing.push({provider:e,prefix:i,name:r})}return!1})),t.pending.length!==o&&(u||r([{provider:e,prefix:i}],n.id),n.callback(t.loaded.slice(0),t.missing.slice(0),t.pending.slice(0),n.abort))}))}}})))};var i=0;n.storeCallback=function(e,t,o){var a=i++,c=r.bind(null,o,a);if(!t.pending.length)return c;var u={id:a,icons:t,callback:e,abort:c};return o.forEach((function(e){var t=e.provider,r=e.prefix;void 0===n.callbacks[t]&&(n.callbacks[t]=Object.create(null));var i=n.callbacks[t];void 0===i[r]&&(i[r]=[]),i[r].push(u)})),c}})),C=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIModule=n.setAPIModule=void 0;var t=Object.create(null);n.setAPIModule=function(e,n){t[e]=n},n.getAPIModule=function(e){return t[e]||t[""]}})),D=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getProviders=n.listToIcons=void 0,n.listToIcons=function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t=!1);var r=[];return e.forEach((function(e){var o="string"==typeof e?i.stringToIcon(e,!1,t):e;n&&!i.validateIcon(o,t)||r.push({provider:o.provider,prefix:o.prefix,name:o.name})})),r},n.getProviders=function(e){var n=Object.create(null);return e.forEach((function(e){n[e.provider]=!0})),Object.keys(n)}})),N=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultConfig=void 0,n.defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1}})),z=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sendQuery=void 0,n.sendQuery=function(e,n,t,r,i){var o,a=e.resources.length,c=e.random?Math.floor(Math.random()*a):e.index;if(e.random){var u=e.resources.slice(0);for(o=[];u.length>1;){var f=Math.floor(Math.random()*u.length);o.push(u[f]),u=u.slice(0,f).concat(u.slice(f+1))}o=o.concat(u)}else o=e.resources.slice(c).concat(e.resources.slice(0,c));var l=Date.now(),s="pending",d=0,v=void 0,p=null,g=[],h=[];function m(){p&&(clearTimeout(p),p=null)}function b(){"pending"===s&&(s="aborted"),m(),g.forEach((function(e){e.abort&&e.abort(),"pending"===e.status&&(e.status="aborted")})),g=[]}function y(e,n){n&&(h=[]),"function"==typeof e&&h.push(e)}function I(){return{startTime:l,payload:n,status:s,queriesSent:d,queriesPending:g.length,subscribe:y,abort:b}}function j(){s="failed",h.forEach((function(e){e(void 0,v)}))}function O(){g=g.filter((function(e){return"pending"===e.status&&(e.status="aborted"),e.abort&&e.abort(),!1}))}function x(){if("pending"===s){m();var r=o.shift();if(void 0!==r){var a={getQueryStatus:I,status:"pending",resource:r,done:function(n,t){!function(n,t,r){var a=void 0===t;switch(g=g.filter((function(e){return e!==n})),s){case"pending":break;case"failed":if(a||!e.dataAfterTimeout)return;break;default:return}if(a)return void 0!==r&&(v=r),void(g.length||(o.length?x():j()));if(m(),O(),i&&!e.random){var c=e.resources.indexOf(n.resource);-1!==c&&c!==e.index&&i(c)}s="completed",h.forEach((function(e){e(t)}))}(a,n,t)}};g.push(a),d++;var c="function"==typeof e.rotate?e.rotate(d,l):e.rotate;p=setTimeout(x,c),t(r,n,a)}else{if(g.length){var u="function"==typeof e.timeout?e.timeout(l):e.timeout;if(u)return void(p=setTimeout((function(){m(),"pending"===s&&(O(),j())}),u))}j()}}}return"function"==typeof r&&h.push(r),setTimeout(x),I}})),L=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.initRedundancy=void 0,n.initRedundancy=function(e){var n=function(e){if(!("object"==typeof e&&"object"==typeof e.resources&&e.resources instanceof Array&&e.resources.length))throw new Error("Invalid Reduncancy configuration");var n,t=Object.create(null);for(n in N.defaultConfig)void 0!==e[n]?t[n]=e[n]:t[n]=N.defaultConfig[n];return t}(e),t=[];function r(){t=t.filter((function(e){return"pending"===e().status}))}return{query:function(e,i,o){var a=z.sendQuery(n,e,i,(function(e,n){r(),o&&o(e,n)}),(function(e){n.index=e}));return t.push(a),a},find:function(e){var n=t.find((function(n){return e(n)}));return void 0!==n?n:null},setIndex:function(e){n.index=e},getIndex:function(){return n.index},cleanup:r}}})),R=e((function(e,n){function t(e){var n;if("string"==typeof e.resources)n=[e.resources];else if(!((n=e.resources)instanceof Array&&n.length))return null;return{resources:n,path:void 0===e.path?"/":e.path,maxURL:e.maxURL?e.maxURL:500,rotate:e.rotate?e.rotate:750,timeout:e.timeout?e.timeout:5e3,random:!0===e.random,index:e.index?e.index:0,dataAfterTimeout:!1!==e.dataAfterTimeout}}Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIConfig=n.setAPIConfig=n.createAPIConfig=void 0,n.createAPIConfig=t;for(var r=Object.create(null),i=["https://api.simplesvg.com","https://api.unisvg.com"],o=[];i.length>0;)1===i.length||Math.random()>.5?o.push(i.shift()):o.push(i.pop());r[""]=t({resources:["https://api.iconify.design"].concat(o)}),n.setAPIConfig=function(e,n){var i=t(n);return null!==i&&(r[e]=i,!0)},n.getAPIConfig=function(e){return r[e]}})),q=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sendAPIQuery=void 0;var t=R;function r(){}var i=Object.create(null);n.sendAPIQuery=function(e,n,o){var a,c;if("string"==typeof e){var u=C.getAPIModule(e);if(!u)return o(void 0,424),r;c=u.send;var f=function(e){if(void 0===i[e]){var n=t.getAPIConfig(e);if(!n)return;var r={config:n,redundancy:L.initRedundancy(n)};i[e]=r}return i[e]}(e);f&&(a=f.redundancy)}else{var l=R.createAPIConfig(e);if(l){a=L.initRedundancy(l);var s=C.getAPIModule("");s&&(c=s.send)}}return a&&c?a.query(n,c,o)().abort:(o(void 0,424),r)}})),Q=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.cache=void 0,n.cache={}})),V=e((function(e,n){function t(){}Object.defineProperty(n,"__esModule",{value:!0}),n.loadIcons=n.isPending=void 0;var r=Object.create(null),i=Object.create(null),c=Object.create(null),u=Object.create(null);var f=Object.create(null);function l(e,n,t){void 0===i[e]&&(i[e]=Object.create(null));var a=i[e];void 0===u[e]&&(u[e]=Object.create(null));var l=u[e];void 0===r[e]&&(r[e]=Object.create(null));var s=r[e];void 0===a[n]?a[n]=t:a[n]=a[n].concat(t).sort(),l[n]||(l[n]=!0,setTimeout((function(){l[n]=!1;var t=a[n];delete a[n];var r,i,u=C.getAPIModule(e);if(!u)return r=(""===e?"":"@"+e+":")+n,i=Math.floor(Date.now()/6e4),void(f[r]<i&&(f[r]=i,console.error('Unable to retrieve icons for "'+r+'" because API is not configured properly.')));u.prepare(e,n,t).forEach((function(t){q.sendAPIQuery(e,t,(function(r,i){var a=o.getStorage(e,n);if("object"!=typeof r){if(404!==i)return;var u=Date.now();t.icons.forEach((function(e){a.missing[e]=u}))}else try{var f=o.addIconSet(a,r,"all");if("boolean"==typeof f)return;var l=s[n];f.forEach((function(e){delete l[e]})),Q.cache.store&&Q.cache.store(e,r)}catch(e){console.error(e)}!function(e,n){void 0===c[e]&&(c[e]=Object.create(null));var t=c[e];t[n]||(t[n]=!0,setTimeout((function(){t[n]=!1,T.updateCallbacks(e,n)})))}(e,n)}))}))})))}n.isPending=function(e){var n=e.provider,t=e.prefix;return r[n]&&r[n][t]&&void 0!==r[n][t][e.name]};n.loadIcons=function(e,n){var i=D.listToIcons(e,!0,a.allowSimpleNames()),o=F.sortIcons(i);if(!o.pending.length){var c=!0;return n&&setTimeout((function(){c&&n(o.loaded,o.missing,o.pending,t)})),function(){c=!1}}var u,f,s=Object.create(null),d=[];o.pending.forEach((function(e){var n=e.provider,t=e.prefix;if(t!==f||n!==u){u=n,f=t,d.push({provider:n,prefix:t}),void 0===r[n]&&(r[n]=Object.create(null));var i=r[n];void 0===i[t]&&(i[t]=Object.create(null)),void 0===s[n]&&(s[n]=Object.create(null));var o=s[n];void 0===o[t]&&(o[t]=[])}}));var v=Date.now();return o.pending.forEach((function(e){var n=e.provider,t=e.prefix,i=e.name,o=r[n][t];void 0===o[i]&&(o[i]=v,s[n][t].push(i))})),d.forEach((function(e){var n=e.provider,t=e.prefix;s[n][t].length&&l(n,t,s[n][t])})),n?T.storeCallback(n,o,d):t}})),G=[];function $(e){return"string"==typeof e&&(e=i.stringToIcon(e)),null!==e&&i.validateIcon(e)?e:null}function U(e){var n=[];G.forEach((function(t){var r=t.find(e);Array.prototype.forEach.call(r,(function(e){var r=e;if(void 0===r[d]||r[d]===t){var i=$(t.name(r));if(null!==i){r[d]=t;var o={element:r,finder:t,name:i};n.push(o)}}}))}));var t=e.querySelectorAll("svg.iconify");return Array.prototype.forEach.call(t,(function(e){var t=e,r=t[d],i=t[v];if(r&&i){var o=$(r.name(t));if(null!==o){var a,c=!1;if(o.prefix!==i.name.prefix||o.name!==i.name.name?c=!0:(a=r.customisations(t),function(e,n){var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var i=0;i<t.length;i++){var o=t[i];if(n[o]!==e[o])return!1}return!0}(i.customisations,a)||(c=!0)),c){var u={element:t,finder:r,name:o,customisations:a};n.push(u)}}}})),n}var H=!1;function Y(){H||(H=!0,setTimeout((function(){H&&(H=!1,B())})))}function B(e,n){void 0===n&&(n=!1),H=!1;var t=Object.create(null);(e?[e]:b()).forEach((function(e){var r="function"==typeof e.node?e.node():e.node;if(r&&r.querySelectorAll){var i=!1,a=!1;U(r).forEach((function(n){var r,c,u=n.element,f=n.name,l=f.provider,s=f.prefix,d=f.name,g=u[v];if(void 0!==g&&(r=g.name,c=f,null!==r&&null!==c&&r.name===c.name&&r.prefix===c.prefix))switch(g.status){case"missing":return;case"loading":if(V.isPending({provider:l,prefix:s,name:d}))return void(i=!0)}var h=o.getStorage(l,s);if(void 0===h.icons[d]){if(h.missing[d])return g={name:f,status:"missing",customisations:{}},void(u[v]=g);if(!V.isPending({provider:l,prefix:s,name:d})){void 0===t[l]&&(t[l]=Object.create(null));var m=t[l];void 0===m[s]&&(m[s]=Object.create(null)),m[s][d]=!0}g={name:f,status:"loading",customisations:{}},u[v]=g,i=!0}else{!a&&e.observer&&(M(e),a=!0);var b=void 0!==n.customisations?n.customisations:n.finder.customisations(u);p(n,b,o.getIcon(h,d))}})),e.temporary&&!i?A(r):n&&i?k(r,!0):a&&e.observer&&_(e)}})),Object.keys(t).forEach((function(e){var n=t[e];Object.keys(n).forEach((function(t){V.loadIcons(Object.keys(n[t]).map((function(n){return{provider:e,prefix:t,name:n}})),Y)}))}))}var Z=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.rotateFromString=void 0,n.rotateFromString=function(e){var n=e.replace(/^-?[0-9.]*/,"");function t(e){for(;e<0;)e+=4;return e%4}if(""===n){var r=parseInt(e);return isNaN(r)?0:t(r)}if(n!==e){var i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){var o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=i)%1==0?t(o):0}}return 0}})),J=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.alignmentFromString=n.flipFromString=void 0;var t=/[\s,]+/;n.flipFromString=function(e,n){n.split(t).forEach((function(n){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))},n.alignmentFromString=function(e,n){n.split(t).forEach((function(n){var t=n.trim();switch(t){case"left":case"center":case"right":e.hAlign=t;break;case"top":case"middle":case"bottom":e.vAlign=t;break;case"slice":case"crop":e.slice=!0;break;case"meet":e.slice=!1}}))}}));function K(e,n){return e.hasAttribute(n)}function W(e,n){return e.getAttribute(n)}var X=["inline","hFlip","vFlip"],ee=["width","height"],ne="iconify-inline",te={find:function(e){return e.querySelectorAll("i.iconify, span.iconify, i.iconify-inline, span.iconify-inline")},name:function(e){return K(e,"data-icon")?W(e,"data-icon"):null},customisations:function(e,n){void 0===n&&(n={inline:!1});var t=n,r=e.getAttribute("class");if(-1!==(r?r.split(/\s+/):[]).indexOf(ne)&&(t.inline=!0),K(e,"data-rotate")){var i=Z.rotateFromString(W(e,"data-rotate"));i&&(t.rotate=i)}return K(e,"data-flip")&&J.flipFromString(t,W(e,"data-flip")),K(e,"data-align")&&J.alignmentFromString(t,W(e,"data-align")),X.forEach((function(n){if(K(e,"data-"+n)){var r=function(e,n){var t=e.getAttribute(n);return t===n||"true"===t||""!==t&&"false"!==t&&null}(e,"data-"+n);"boolean"==typeof r&&(t[n]=r)}})),ee.forEach((function(n){if(K(e,"data-"+n)){var r=W(e,"data-"+n);""!==r&&(t[n]=r)}})),t},classFilter:function(e){var n=[];return e.forEach((function(e){"iconify"!==e&&""!==e&&"iconify--"!==e.slice(0,9)&&n.push(e)})),n}};function re(e,n,t){var r=a.getIconData(e);return r?p({name:i.stringToIcon(e)},f.mergeCustomisations(f.defaults,"object"==typeof n?n:{}),r,t):null}var ie={getVersion:function(){return"2.1.0-beta.1"},renderSVG:function(e,n){return re(e,n,!1)},renderHTML:function(e,n){return re(e,n,!0)},renderIcon:function(e,n){var t=a.getIconData(e);if(!t)return null;var r=f.mergeCustomisations(f.defaults,"object"==typeof n?n:{});return l.iconToSVG(t,r)},scan:function(e){e?function(e){var n=h(e);n?B(n):B({node:e,temporary:!0},!0)}(e):B()},observe:function(e){k(e)},stopObserving:function(e){A(e)},pauseObserver:function(e){if(e){var n=h(e);n&&M(n)}else M()},resumeObserver:function(e){if(e){var n=h(e);n&&_(n)}else _()}};if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return m(document.documentElement);g.push({node:function(){return document.documentElement}})}(),function(e){-1===G.indexOf(e)&&G.push(e)}(te);var oe=window;if(void 0!==oe.IconifyPreload){var ae=oe.IconifyPreload,ce="Invalid IconifyPreload syntax.";"object"==typeof ae&&null!==ae&&(ae instanceof Array?ae:[ae]).forEach((function(e){try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!a.storageFunctions.addCollection(e))&&console.error(ce)}catch(e){console.error(ce)}}))}setTimeout((function(){P(B),B()}))}var ue={};return[a.storageFunctions,s.builderFunctions,ie].forEach((function(e){for(var n in e)ue[n]=e[n]})),ue}();try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(e){}if("object"==typeof exports)try{exports.__esModule=!0,exports.default=Iconify}catch(e){} | ||
var Iconify=function(){"use strict";function e(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}var n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.fullIcon=n.iconDefaults=n.minifyProps=n.matchName=void 0,n.matchName=/^[a-z0-9]+(-[a-z0-9]+)*$/,n.minifyProps=["width","height","top","left"],n.iconDefaults=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1}),n.fullIcon=function(e){return Object.assign({},n.iconDefaults,e)}})),t=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeIconData=void 0,t.mergeIconData=function(e,t){var r=Object.assign({},e);for(var i in n.iconDefaults){var o=i;if(void 0!==t[o]){var a=t[o];if(void 0===r[o]){r[o]=a;continue}switch(o){case"rotate":r[o]=(r[o]+a)%4;break;case"hFlip":case"vFlip":r[o]=a!==r[o];break;default:r[o]=a}}}return r}})),r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseIconSet=void 0;var i=Object.keys(n.iconDefaults);function o(e,n,r,i){void 0===i&&(i=0);var a=e.parent;if(void 0!==n[a])return t.mergeIconData(n[a],e);if(void 0!==r[a]){if(i>2)return null;var c=o(r[a],n,r,i+1);if(c)return t.mergeIconData(c,e)}return null}r.parseIconSet=function(e,t,r){void 0===r&&(r="none");var a=[];if("object"!=typeof e)return"none"!==r&&a;if(e.not_found instanceof Array&&e.not_found.forEach((function(e){t(e,null),"all"===r&&a.push(e)})),"object"!=typeof e.icons)return"none"!==r&&a;var c=Object.create(null);i.forEach((function(n){void 0!==e[n]&&"object"!=typeof e[n]&&(c[n]=e[n])}));var u=e.icons;if(Object.keys(u).forEach((function(e){var r=u[e];"string"==typeof r.body&&(t(e,Object.freeze(Object.assign({},n.iconDefaults,c,r))),a.push(e))})),"object"==typeof e.aliases){var f=e.aliases;Object.keys(f).forEach((function(e){var r=o(f[e],u,f,1);r&&(t(e,Object.freeze(Object.assign({},n.iconDefaults,c,r))),a.push(e))}))}return"none"===r?a.length>0:a}})),i=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateIcon=t.stringToIcon=void 0;t.stringToIcon=function(e,n,r,i){void 0===i&&(i="");var o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){var a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:i,prefix:c,name:a};return n&&!t.validateIcon(u)?null:u}var f=o[0],s=f.split("-");if(s.length>1){var l={provider:i,prefix:s.shift(),name:s.join("-")};return n&&!t.validateIcon(l)?null:l}if(r&&""===i){var d={provider:i,prefix:"",name:f};return n&&!t.validateIcon(d,r)?null:d}return null};t.validateIcon=function(e,t){return!!e&&!(""!==e.provider&&!e.provider.match(n.matchName)||!(t&&""===e.prefix||e.prefix.match(n.matchName))||!e.name.match(n.matchName))}})),o=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.listIcons=t.getIcon=t.iconExists=t.addIcon=t.addIconSet=t.getStorage=t.newStorage=void 0;var i=Object.create(null);function o(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:Object.create(null)}}function a(e,n){void 0===i[e]&&(i[e]=Object.create(null));var t=i[e];return void 0===t[n]&&(t[n]=o(e,n)),t[n]}t.newStorage=o,t.getStorage=a,t.addIconSet=function(e,n,t){void 0===t&&(t="none");var i=Date.now();return r.parseIconSet(n,(function(n,t){null===t?e.missing[n]=i:e.icons[n]=t}),t)},t.addIcon=function(e,t,r){try{if("string"==typeof r.body)return e.icons[t]=Object.freeze(n.fullIcon(r)),!0}catch(e){}return!1},t.iconExists=function(e,n){return void 0!==e.icons[n]},t.getIcon=function(e,n){var t=e.icons[n];return void 0===t?null:t},t.listIcons=function(e,n){var t=[];return("string"==typeof e?[e]:Object.keys(i)).forEach((function(e){("string"==typeof e&&"string"==typeof n?[n]:void 0===i[e]?[]:Object.keys(i[e])).forEach((function(n){var r=a(e,n),i=Object.keys(r.icons).map((function(t){return(""!==e?"@"+e+":":"")+n+":"+t}));t=t.concat(i)}))})),t}})),a=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storageFunctions=n.addCollection=n.addIcon=n.getIconData=n.allowSimpleNames=void 0;var t=!1;function a(e){var n="string"==typeof e?i.stringToIcon(e,!0,t):e;return n?o.getIcon(o.getStorage(n.provider,n.prefix),n.name):null}function c(e,n){var r=i.stringToIcon(e,!0,t);if(!r)return!1;var a=o.getStorage(r.provider,r.prefix);return o.addIcon(a,r.name,n)}function u(e,n){if("object"!=typeof e)return!1;if("string"!=typeof n&&(n="string"==typeof e.provider?e.provider:""),t&&""===n&&("string"!=typeof e.prefix||""===e.prefix)){var a=!1;return r.parseIconSet(e,(function(e,n){null!==n&&c(e,n)&&(a=!0)})),a}if("string"!=typeof e.prefix||!i.validateIcon({provider:n,prefix:e.prefix,name:"a"}))return!1;var u=o.getStorage(n,e.prefix);return!!o.addIconSet(u,e)}n.allowSimpleNames=function(e){return"boolean"==typeof e&&(t=e),t},n.getIconData=a,n.addIcon=c,n.addCollection=u,n.storageFunctions={iconExists:function(e){return null!==a(e)},getIcon:function(e){var n=a(e);return n?Object.assign({},n):null},listIcons:o.listIcons,addIcon:c,addCollection:u}})),c=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.replaceIDs=void 0;var t=/\sid="(\S+)"/g,r="([^A-Za-z0-9_-])";var i="IconifyId-"+Date.now().toString(16)+"-"+(16777216*Math.random()|0).toString(16)+"-",o=0;n.replaceIDs=function(e,n){void 0===n&&(n=i);for(var a,c=[];a=t.exec(e);)c.push(a[1]);return c.length?(c.forEach((function(t){var i="function"==typeof n?n():n+o++;e=e.replace(new RegExp(r+"("+(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")")+r,"g"),"$1"+i+"$3")})),e):e}})),u=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.calculateSize=void 0;var t=/(-?[0-9.]*[0-9]+[0-9.]*)/g,r=/^-?[0-9.]*[0-9]+[0-9.]*$/g;n.calculateSize=function(e,n,i){if(1===n)return e;if(i=void 0===i?100:i,"number"==typeof e)return Math.ceil(e*n*i)/i;if("string"!=typeof e)return e;var o=e.split(t);if(null===o||!o.length)return e;for(var a=[],c=o.shift(),u=r.test(c);;){if(u){var f=parseFloat(c);isNaN(f)?a.push(c):a.push(Math.ceil(f*n*i)/i)}else a.push(c);if(void 0===(c=o.shift()))return a.join("");u=!u}}})),f=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.mergeCustomisations=n.defaults=void 0,n.defaults=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0}),n.mergeCustomisations=function(e,n){var t={};for(var r in e){var i=r;if(t[i]=e[i],void 0!==n[i]){var o=n[i];switch(i){case"inline":case"slice":"boolean"==typeof o&&(t[i]=o);break;case"hFlip":case"vFlip":!0===o&&(t[i]=!t[i]);break;case"hAlign":case"vAlign":"string"==typeof o&&""!==o&&(t[i]=o);break;case"width":case"height":("string"==typeof o&&""!==o||"number"==typeof o&&o||null===o)&&(t[i]=o);break;case"rotate":"number"==typeof o&&(t[i]+=o)}}}return t}})),s=e((function(e,n){function t(e){var n="";switch(e.hAlign){case"left":n+="xMin";break;case"right":n+="xMax";break;default:n+="xMid"}switch(e.vAlign){case"top":n+="YMin";break;case"bottom":n+="YMax";break;default:n+="YMid"}return n+=e.slice?" slice":" meet"}Object.defineProperty(n,"__esModule",{value:!0}),n.iconToSVG=void 0,n.iconToSVG=function(e,n){var r,i,o={left:e.left,top:e.top,width:e.width,height:e.height},a=e.body;[e,n].forEach((function(e){var n,t=[],r=e.hFlip,i=e.vFlip,c=e.rotate;switch(r?i?c+=2:(t.push("translate("+(o.width+o.left)+" "+(0-o.top)+")"),t.push("scale(-1 1)"),o.top=o.left=0):i&&(t.push("translate("+(0-o.left)+" "+(o.height+o.top)+")"),t.push("scale(1 -1)"),o.top=o.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n=o.height/2+o.top,t.unshift("rotate(90 "+n+" "+n+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left)+" "+(o.height/2+o.top)+")");break;case 3:n=o.width/2+o.left,t.unshift("rotate(-90 "+n+" "+n+")")}c%2==1&&(0===o.left&&0===o.top||(n=o.left,o.left=o.top,o.top=n),o.width!==o.height&&(n=o.width,o.width=o.height,o.height=n)),t.length&&(a='<g transform="'+t.join(" ")+'">'+a+"</g>")})),null===n.width&&null===n.height?(i="1em",r=u.calculateSize(i,o.width/o.height)):null!==n.width&&null!==n.height?(r=n.width,i=n.height):null!==n.height?(i=n.height,r=u.calculateSize(i,o.width/o.height)):(r=n.width,i=u.calculateSize(r,o.height/o.width)),"auto"===r&&(r=o.width),"auto"===i&&(i=o.height);var c={attributes:{width:r="string"==typeof r?r:r+"",height:i="string"==typeof i?i:i+"",preserveAspectRatio:t(n),viewBox:o.left+" "+o.top+" "+o.width+" "+o.height},body:a};return n.inline&&(c.inline=!0),c}})),l=e((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.builderFunctions=void 0,t.builderFunctions={replaceIDs:c.replaceIDs,calculateSize:u.calculateSize,buildIcon:function(e,t){return s.iconToSVG(n.fullIcon(e),f.mergeCustomisations(f.defaults,t))}}})),d="iconifyFinder"+Date.now(),v="iconifyData"+Date.now();function p(e,n,t,r){var i;try{i=document.createElement("span")}catch(e){return r?"":null}var o=s.iconToSVG(t,f.mergeCustomisations(f.defaults,n)),a=e.element,u=e.finder,l=e.name,p=a?a.getAttribute("class"):"",g=u?u.classFilter(p?p.split(/\s+/):[]):[],h='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="'+("iconify iconify--"+l.prefix+(""===l.provider?"":" iconify--"+l.provider)+(g.length?" "+g.join(" "):""))+'">'+c.replaceIDs(o.body)+"</svg>";i.innerHTML=h;var m=i.childNodes[0],b=m.style,y=o.attributes;if(Object.keys(y).forEach((function(e){m.setAttribute(e,y[e])})),o.inline&&(b.verticalAlign="-0.125em"),a){for(var I=a.attributes,j=0;j<I.length;j++){var O=I.item(j);if(O){var x=O.name;if("class"!==x&&"style"!==x&&void 0===y[x])try{m.setAttribute(x,O.value)}catch(e){}}}for(var w=a.style,S=0;S<w.length;S++){var P=w[S];b[P]=w[P]}}if(u){var E={name:l,status:"loaded",customisations:n};m[v]=E,m[d]=u}var k=r?i.innerHTML:m;return a&&a.parentNode?a.parentNode.replaceChild(m,a):i.removeChild(m),k}var g=[];function h(e){for(var n=0;n<g.length;n++){var t=g[n];if(("function"==typeof t.node?t.node():t.node)===e)return t}}function m(e,n){void 0===n&&(n=!1);var t=h(e);return t?(t.temporary&&(t.temporary=n),t):(t={node:e,temporary:n},g.push(t),t)}function b(){return g}var y=null,I={childList:!0,subtree:!0,attributes:!0};function j(e){if(e.observer){var n=e.observer;n.pendingScan||(n.pendingScan=setTimeout((function(){delete n.pendingScan,y&&y(e)})))}}function O(e,n){if(e.observer){var t=e.observer;if(!t.pendingScan)for(var r=0;r<n.length;r++){var i=n[r];if(i.addedNodes&&i.addedNodes.length>0||"attributes"===i.type&&void 0!==i.target[d])return void(t.paused||j(e))}}}function x(e,n){e.observer.instance.observe(n,I)}function w(e){var n=e.observer;if(!n||!n.instance){var t="function"==typeof e.node?e.node():e.node;t&&(n||(n={paused:0},e.observer=n),n.instance=new MutationObserver(O.bind(null,e)),x(e,t),n.paused||j(e))}}function S(){b().forEach(w)}function P(e){if(e.observer){var n=e.observer;n.pendingScan&&(clearTimeout(n.pendingScan),delete n.pendingScan),n.instance&&(n.instance.disconnect(),delete n.instance)}}function E(e){var n=null!==y;y!==e&&(y=e,n&&b().forEach(P)),n?S():function(e){var n=document;"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?e():(n.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}(S)}function k(e){(e?[e]:b()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused++,!(n.paused>1)&&n.instance)n.instance.disconnect()}else e.observer={paused:1}}))}function A(e){(e?[e]:b()).forEach((function(e){if(e.observer){var n=e.observer;if(n.paused&&(n.paused--,!n.paused)){var t="function"==typeof e.node?e.node():e.node;if(!t)return;n.instance?x(e,t):w(e)}}else w(e)}))}function M(e,n){void 0===n&&(n=!1);var t=m(e,n);return w(t),t}function _(e){var n=h(e);n&&(P(n),function(e){g=g.filter((function(n){var t="function"==typeof n.node?n.node():n.node;return e!==t}))}(e))}var F=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sortIcons=void 0,n.sortIcons=function(e){var n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((function(e,n){return e.provider!==n.provider?e.provider.localeCompare(n.provider):e.prefix!==n.prefix?e.prefix.localeCompare(n.prefix):e.name.localeCompare(n.name)}));var r={provider:"",prefix:"",name:""};return e.forEach((function(e){if(r.name!==e.name||r.prefix!==e.prefix||r.provider!==e.provider){r=e;var i=e.provider,a=e.prefix,c=e.name;void 0===t[i]&&(t[i]=Object.create(null));var u=t[i];void 0===u[a]&&(u[a]=o.getStorage(i,a));var f=u[a],s={provider:i,prefix:a,name:c};(void 0!==f.icons[c]?n.loaded:""===a||void 0!==f.missing[c]?n.missing:n.pending).push(s)}})),n}})),T=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.storeCallback=n.updateCallbacks=n.callbacks=void 0,n.callbacks=Object.create(null);var t=Object.create(null);function r(e,t){e.forEach((function(e){var r=e.provider;if(void 0!==n.callbacks[r]){var i=n.callbacks[r],o=e.prefix,a=i[o];a&&(i[o]=a.filter((function(e){return e.id!==t})))}}))}n.updateCallbacks=function(e,i){void 0===t[e]&&(t[e]=Object.create(null));var a=t[e];a[i]||(a[i]=!0,setTimeout((function(){if(a[i]=!1,void 0!==n.callbacks[e]&&void 0!==n.callbacks[e][i]){var t=n.callbacks[e][i].slice(0);if(t.length){var c=o.getStorage(e,i),u=!1;t.forEach((function(n){var t=n.icons,o=t.pending.length;t.pending=t.pending.filter((function(n){if(n.prefix!==i)return!0;var r=n.name;if(void 0!==c.icons[r])t.loaded.push({provider:e,prefix:i,name:r});else{if(void 0===c.missing[r])return u=!0,!0;t.missing.push({provider:e,prefix:i,name:r})}return!1})),t.pending.length!==o&&(u||r([{provider:e,prefix:i}],n.id),n.callback(t.loaded.slice(0),t.missing.slice(0),t.pending.slice(0),n.abort))}))}}})))};var i=0;n.storeCallback=function(e,t,o){var a=i++,c=r.bind(null,o,a);if(!t.pending.length)return c;var u={id:a,icons:t,callback:e,abort:c};return o.forEach((function(e){var t=e.provider,r=e.prefix;void 0===n.callbacks[t]&&(n.callbacks[t]=Object.create(null));var i=n.callbacks[t];void 0===i[r]&&(i[r]=[]),i[r].push(u)})),c}})),C=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getAPIModule=n.setAPIModule=void 0;var t=Object.create(null);n.setAPIModule=function(e,n){t[e]=n},n.getAPIModule=function(e){return t[e]||t[""]}})),D=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getProviders=n.listToIcons=void 0,n.listToIcons=function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t=!1);var r=[];return e.forEach((function(e){var o="string"==typeof e?i.stringToIcon(e,!1,t):e;n&&!i.validateIcon(o,t)||r.push({provider:o.provider,prefix:o.prefix,name:o.name})})),r},n.getProviders=function(e){var n=Object.create(null);return e.forEach((function(e){n[e.provider]=!0})),Object.keys(n)}})),N=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.defaultConfig=void 0,n.defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1}})),z=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sendQuery=void 0,n.sendQuery=function(e,n,t,r,i){var o,a=e.resources.length,c=e.random?Math.floor(Math.random()*a):e.index;if(e.random){var u=e.resources.slice(0);for(o=[];u.length>1;){var f=Math.floor(Math.random()*u.length);o.push(u[f]),u=u.slice(0,f).concat(u.slice(f+1))}o=o.concat(u)}else o=e.resources.slice(c).concat(e.resources.slice(0,c));var s=Date.now(),l="pending",d=0,v=void 0,p=null,g=[],h=[];function m(){p&&(clearTimeout(p),p=null)}function b(){"pending"===l&&(l="aborted"),m(),g.forEach((function(e){e.abort&&e.abort(),"pending"===e.status&&(e.status="aborted")})),g=[]}function y(e,n){n&&(h=[]),"function"==typeof e&&h.push(e)}function I(){return{startTime:s,payload:n,status:l,queriesSent:d,queriesPending:g.length,subscribe:y,abort:b}}function j(){l="failed",h.forEach((function(e){e(void 0,v)}))}function O(){g=g.filter((function(e){return"pending"===e.status&&(e.status="aborted"),e.abort&&e.abort(),!1}))}function x(){if("pending"===l){m();var r=o.shift();if(void 0!==r){var a={getQueryStatus:I,status:"pending",resource:r,done:function(n,t){!function(n,t,r){var a=void 0===t;switch(g=g.filter((function(e){return e!==n})),l){case"pending":break;case"failed":if(a||!e.dataAfterTimeout)return;break;default:return}if(a)return void 0!==r&&(v=r),void(g.length||(o.length?x():j()));if(m(),O(),i&&!e.random){var c=e.resources.indexOf(n.resource);-1!==c&&c!==e.index&&i(c)}l="completed",h.forEach((function(e){e(t)}))}(a,n,t)}};g.push(a),d++;var c="function"==typeof e.rotate?e.rotate(d,s):e.rotate;p=setTimeout(x,c),t(r,n,a)}else{if(g.length){var u="function"==typeof e.timeout?e.timeout(s):e.timeout;if(u)return void(p=setTimeout((function(){m(),"pending"===l&&(O(),j())}),u))}j()}}}return"function"==typeof r&&h.push(r),setTimeout(x),I}})),L=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.initRedundancy=void 0,n.initRedundancy=function(e){var n=function(e){if(!("object"==typeof e&&"object"==typeof e.resources&&e.resources instanceof Array&&e.resources.length))throw new Error("Invalid Reduncancy configuration");var n,t=Object.create(null);for(n in N.defaultConfig)void 0!==e[n]?t[n]=e[n]:t[n]=N.defaultConfig[n];return t}(e),t=[];function r(){t=t.filter((function(e){return"pending"===e().status}))}return{query:function(e,i,o){var a=z.sendQuery(n,e,i,(function(e,n){r(),o&&o(e,n)}),(function(e){n.index=e}));return t.push(a),a},find:function(e){var n=t.find((function(n){return e(n)}));return void 0!==n?n:null},setIndex:function(e){n.index=e},getIndex:function(){return n.index},cleanup:r}}})),R=e((function(e,n){function t(e){var n;if("string"==typeof e.resources)n=[e.resources];else if(!((n=e.resources)instanceof Array&&n.length))return null;return{resources:n,path:void 0===e.path?"/":e.path,maxURL:e.maxURL?e.maxURL:500,rotate:e.rotate?e.rotate:750,timeout:e.timeout?e.timeout:5e3,random:!0===e.random,index:e.index?e.index:0,dataAfterTimeout:!1!==e.dataAfterTimeout}}Object.defineProperty(n,"__esModule",{value:!0}),n.listAPIProviders=n.getAPIConfig=n.setAPIConfig=n.createAPIConfig=void 0,n.createAPIConfig=t;for(var r=Object.create(null),i=["https://api.simplesvg.com","https://api.unisvg.com"],o=[];i.length>0;)1===i.length||Math.random()>.5?o.push(i.shift()):o.push(i.pop());r[""]=t({resources:["https://api.iconify.design"].concat(o)}),n.setAPIConfig=function(e,n){var i=t(n);return null!==i&&(r[e]=i,!0)},n.getAPIConfig=function(e){return r[e]},n.listAPIProviders=function(){return Object.keys(r)}})),q=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sendAPIQuery=void 0;var t=R;function r(){}var i=Object.create(null);n.sendAPIQuery=function(e,n,o){var a,c;if("string"==typeof e){var u=C.getAPIModule(e);if(!u)return o(void 0,424),r;c=u.send;var f=function(e){if(void 0===i[e]){var n=t.getAPIConfig(e);if(!n)return;var r={config:n,redundancy:L.initRedundancy(n)};i[e]=r}return i[e]}(e);f&&(a=f.redundancy)}else{var s=R.createAPIConfig(e);if(s){a=L.initRedundancy(s);var l=e.resources?e.resources[0]:"",d=C.getAPIModule(l);d&&(c=d.send)}}return a&&c?a.query(n,c,o)().abort:(o(void 0,424),r)}})),Q=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.cache=void 0,n.cache={}})),V=e((function(e,n){function t(){}Object.defineProperty(n,"__esModule",{value:!0}),n.loadIcons=n.isPending=void 0;var r=Object.create(null),i=Object.create(null),c=Object.create(null),u=Object.create(null);var f=Object.create(null);function s(e,n,t){void 0===i[e]&&(i[e]=Object.create(null));var a=i[e];void 0===u[e]&&(u[e]=Object.create(null));var s=u[e];void 0===r[e]&&(r[e]=Object.create(null));var l=r[e];void 0===a[n]?a[n]=t:a[n]=a[n].concat(t).sort(),s[n]||(s[n]=!0,setTimeout((function(){s[n]=!1;var t=a[n];delete a[n];var r,i,u=C.getAPIModule(e);if(!u)return r=(""===e?"":"@"+e+":")+n,i=Math.floor(Date.now()/6e4),void(f[r]<i&&(f[r]=i,console.error('Unable to retrieve icons for "'+r+'" because API is not configured properly.')));u.prepare(e,n,t).forEach((function(t){q.sendAPIQuery(e,t,(function(r,i){var a=o.getStorage(e,n);if("object"!=typeof r){if(404!==i)return;var u=Date.now();t.icons.forEach((function(e){a.missing[e]=u}))}else try{var f=o.addIconSet(a,r,"all");if("boolean"==typeof f)return;var s=l[n];f.forEach((function(e){delete s[e]})),Q.cache.store&&Q.cache.store(e,r)}catch(e){console.error(e)}!function(e,n){void 0===c[e]&&(c[e]=Object.create(null));var t=c[e];t[n]||(t[n]=!0,setTimeout((function(){t[n]=!1,T.updateCallbacks(e,n)})))}(e,n)}))}))})))}n.isPending=function(e){var n=e.provider,t=e.prefix;return r[n]&&r[n][t]&&void 0!==r[n][t][e.name]};n.loadIcons=function(e,n){var i=D.listToIcons(e,!0,a.allowSimpleNames()),o=F.sortIcons(i);if(!o.pending.length){var c=!0;return n&&setTimeout((function(){c&&n(o.loaded,o.missing,o.pending,t)})),function(){c=!1}}var u,f,l=Object.create(null),d=[];o.pending.forEach((function(e){var n=e.provider,t=e.prefix;if(t!==f||n!==u){u=n,f=t,d.push({provider:n,prefix:t}),void 0===r[n]&&(r[n]=Object.create(null));var i=r[n];void 0===i[t]&&(i[t]=Object.create(null)),void 0===l[n]&&(l[n]=Object.create(null));var o=l[n];void 0===o[t]&&(o[t]=[])}}));var v=Date.now();return o.pending.forEach((function(e){var n=e.provider,t=e.prefix,i=e.name,o=r[n][t];void 0===o[i]&&(o[i]=v,l[n][t].push(i))})),d.forEach((function(e){var n=e.provider,t=e.prefix;l[n][t].length&&s(n,t,l[n][t])})),n?T.storeCallback(n,o,d):t}})),G=[];function $(e){return"string"==typeof e&&(e=i.stringToIcon(e)),null!==e&&i.validateIcon(e)?e:null}function U(e){var n=[];G.forEach((function(t){var r=t.find(e);Array.prototype.forEach.call(r,(function(e){var r=e;if(void 0===r[d]||r[d]===t){var i=$(t.name(r));if(null!==i){r[d]=t;var o={element:r,finder:t,name:i};n.push(o)}}}))}));var t=e.querySelectorAll("svg.iconify");return Array.prototype.forEach.call(t,(function(e){var t=e,r=t[d],i=t[v];if(r&&i){var o=$(r.name(t));if(null!==o){var a,c=!1;if(o.prefix!==i.name.prefix||o.name!==i.name.name?c=!0:(a=r.customisations(t),function(e,n){var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var i=0;i<t.length;i++){var o=t[i];if(n[o]!==e[o])return!1}return!0}(i.customisations,a)||(c=!0)),c){var u={element:t,finder:r,name:o,customisations:a};n.push(u)}}}})),n}var H=!1;function Y(){H||(H=!0,setTimeout((function(){H&&(H=!1,B())})))}function B(e,n){void 0===n&&(n=!1),H=!1;var t=Object.create(null);(e?[e]:b()).forEach((function(e){var r="function"==typeof e.node?e.node():e.node;if(r&&r.querySelectorAll){var i=!1,a=!1;U(r).forEach((function(n){var r,c,u=n.element,f=n.name,s=f.provider,l=f.prefix,d=f.name,g=u[v];if(void 0!==g&&(r=g.name,c=f,null!==r&&null!==c&&r.name===c.name&&r.prefix===c.prefix))switch(g.status){case"missing":return;case"loading":if(V.isPending({provider:s,prefix:l,name:d}))return void(i=!0)}var h=o.getStorage(s,l);if(void 0===h.icons[d]){if(h.missing[d])return g={name:f,status:"missing",customisations:{}},void(u[v]=g);if(!V.isPending({provider:s,prefix:l,name:d})){void 0===t[s]&&(t[s]=Object.create(null));var m=t[s];void 0===m[l]&&(m[l]=Object.create(null)),m[l][d]=!0}g={name:f,status:"loading",customisations:{}},u[v]=g,i=!0}else{!a&&e.observer&&(k(e),a=!0);var b=void 0!==n.customisations?n.customisations:n.finder.customisations(u);p(n,b,o.getIcon(h,d))}})),e.temporary&&!i?_(r):n&&i?M(r,!0):a&&e.observer&&A(e)}})),Object.keys(t).forEach((function(e){var n=t[e];Object.keys(n).forEach((function(t){V.loadIcons(Object.keys(n[t]).map((function(n){return{provider:e,prefix:t,name:n}})),Y)}))}))}var Z=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.rotateFromString=void 0,n.rotateFromString=function(e){var n=e.replace(/^-?[0-9.]*/,"");function t(e){for(;e<0;)e+=4;return e%4}if(""===n){var r=parseInt(e);return isNaN(r)?0:t(r)}if(n!==e){var i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){var o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=i)%1==0?t(o):0}}return 0}})),J=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.alignmentFromString=n.flipFromString=void 0;var t=/[\s,]+/;n.flipFromString=function(e,n){n.split(t).forEach((function(n){switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))},n.alignmentFromString=function(e,n){n.split(t).forEach((function(n){var t=n.trim();switch(t){case"left":case"center":case"right":e.hAlign=t;break;case"top":case"middle":case"bottom":e.vAlign=t;break;case"slice":case"crop":e.slice=!0;break;case"meet":e.slice=!1}}))}}));function K(e,n){return e.hasAttribute(n)}function W(e,n){return e.getAttribute(n)}var X=["inline","hFlip","vFlip"],ee=["width","height"],ne="iconify-inline",te={find:function(e){return e.querySelectorAll("i.iconify, span.iconify, i.iconify-inline, span.iconify-inline")},name:function(e){return K(e,"data-icon")?W(e,"data-icon"):null},customisations:function(e,n){void 0===n&&(n={inline:!1});var t=n,r=e.getAttribute("class");if(-1!==(r?r.split(/\s+/):[]).indexOf(ne)&&(t.inline=!0),K(e,"data-rotate")){var i=Z.rotateFromString(W(e,"data-rotate"));i&&(t.rotate=i)}return K(e,"data-flip")&&J.flipFromString(t,W(e,"data-flip")),K(e,"data-align")&&J.alignmentFromString(t,W(e,"data-align")),X.forEach((function(n){if(K(e,"data-"+n)){var r=function(e,n){var t=e.getAttribute(n);return t===n||"true"===t||""!==t&&"false"!==t&&null}(e,"data-"+n);"boolean"==typeof r&&(t[n]=r)}})),ee.forEach((function(n){if(K(e,"data-"+n)){var r=W(e,"data-"+n);""!==r&&(t[n]=r)}})),t},classFilter:function(e){var n=[];return e.forEach((function(e){"iconify"!==e&&""!==e&&"iconify--"!==e.slice(0,9)&&n.push(e)})),n}};function re(e,n,t){var r=a.getIconData(e);return r?p({name:i.stringToIcon(e)},f.mergeCustomisations(f.defaults,"object"==typeof n?n:{}),r,t):null}var ie={getVersion:function(){return"2.1.0-beta.2"},renderSVG:function(e,n){return re(e,n,!1)},renderHTML:function(e,n){return re(e,n,!0)},renderIcon:function(e,n){var t=a.getIconData(e);if(!t)return null;var r=f.mergeCustomisations(f.defaults,"object"==typeof n?n:{});return s.iconToSVG(t,r)},scan:function(e){e?function(e){var n=h(e);n?B(n):B({node:e,temporary:!0},!0)}(e):B()},observe:function(e){M(e)},stopObserving:function(e){_(e)},pauseObserver:function(e){if(e){var n=h(e);n&&k(n)}else k()},resumeObserver:function(e){if(e){var n=h(e);n&&A(n)}else A()}};if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return m(document.documentElement);g.push({node:function(){return document.documentElement}})}(),function(e){-1===G.indexOf(e)&&G.push(e)}(te);var oe=window;if(void 0!==oe.IconifyPreload){var ae=oe.IconifyPreload,ce="Invalid IconifyPreload syntax.";"object"==typeof ae&&null!==ae&&(ae instanceof Array?ae:[ae]).forEach((function(e){try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!a.storageFunctions.addCollection(e))&&console.error(ce)}catch(e){console.error(ce)}}))}setTimeout((function(){E(B),B()}))}var ue={};return[a.storageFunctions,l.builderFunctions,ie].forEach((function(e){for(var n in e)ue[n]=e[n]})),ue}();try{void 0===self.Iconify&&(self.Iconify=Iconify)}catch(e){}if("object"==typeof exports)try{exports.__esModule=!0,exports.default=Iconify}catch(e){} |
@@ -5,3 +5,3 @@ { | ||
"author": "Vjacheslav Trushkin <cyberalien@gmail.com> (https://iconify.design)", | ||
"version": "2.1.0-beta.1", | ||
"version": "2.1.0-beta.2", | ||
"license": "(Apache-2.0 OR GPL-2.0)", | ||
@@ -34,3 +34,3 @@ "main": "./dist/iconify.min.js", | ||
"devDependencies": { | ||
"@iconify/core": "^1.2.0-beta.1", | ||
"@iconify/core": "^1.2.0-beta.2", | ||
"@iconify/types": "^1.0.6", | ||
@@ -37,0 +37,0 @@ "@iconify/utils": "^1.0.7", |
@@ -24,3 +24,3 @@ # What is Iconify? | ||
```html | ||
<script src="https://code.iconify.design/2/2.1.0-beta.1/iconify.min.js"></script> | ||
<script src="https://code.iconify.design/2/2.1.0-beta.2/iconify.min.js"></script> | ||
``` | ||
@@ -31,3 +31,3 @@ | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@iconify/iconify@2.1.0-beta.1/dist/iconify.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@iconify/iconify@2.1.0-beta.2/dist/iconify.min.js"></script> | ||
``` | ||
@@ -34,0 +34,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
334253
8086