You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
70 KiB

  1. function ownKeys(n,t){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),a.push.apply(a,e)}return a}function _objectSpread2(n){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(a),!0).forEach((function(t){_defineProperty(n,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(a,t))}))}return n}function _typeof(n){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(n)}function _wrapRegExp(){_wrapRegExp=function(n,t){return new BabelRegExp(n,void 0,t)};var n=RegExp.prototype,t=new WeakMap;function BabelRegExp(n,a,e){var r=new RegExp(n,a);return t.set(r,e||t.get(n)),_setPrototypeOf(r,BabelRegExp.prototype)}function buildGroups(n,a){var e=t.get(a);return Object.keys(e).reduce((function(t,a){return t[a]=n[e[a]],t}),Object.create(null))}return _inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(t){var a=n.exec.call(this,t);return a&&(a.groups=buildGroups(a,this)),a},BabelRegExp.prototype[Symbol.replace]=function(a,e){if("string"==typeof e){var r=t.get(this);return n[Symbol.replace].call(this,a,e.replace(/\$<([^>]+)>/g,(function(n,t){return"$"+r[t]})))}if("function"==typeof e){var i=this;return n[Symbol.replace].call(this,a,(function(){var n=arguments;return"object"!=typeof n[n.length-1]&&(n=[].slice.call(n)).push(buildGroups(n,i)),e.apply(this,n)}))}return n[Symbol.replace].call(this,a,e)},_wrapRegExp.apply(this,arguments)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(n,t){for(var a=0;a<t.length;a++){var e=t[a];e.enumerable=e.enumerable||false;e.configurable=true;"value"in e&&(e.writable=true);Object.defineProperty(n,e.key,e)}}function _createClass(n,t,a){t&&_defineProperties(n.prototype,t);a&&_defineProperties(n,a);Object.defineProperty(n,"prototype",{writable:false});return n}function _defineProperty(n,t,a){t in n?Object.defineProperty(n,t,{value:a,enumerable:true,configurable:true,writable:true}):n[t]=a;return n}function _inherits(n,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:true,configurable:true}});Object.defineProperty(n,"prototype",{writable:false});t&&_setPrototypeOf(n,t)}function _setPrototypeOf(n,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(n,t){n.__proto__=t;return n};return _setPrototypeOf(n,t)}function _slicedToArray(n,t){return _arrayWithHoles(n)||_iterableToArrayLimit(n,t)||_unsupportedIterableToArray(n,t)||_nonIterableRest()}function _toConsumableArray(n){return _arrayWithoutHoles(n)||_iterableToArray(n)||_unsupportedIterableToArray(n)||_nonIterableSpread()}function _arrayWithoutHoles(n){if(Array.isArray(n))return _arrayLikeToArray(n)}function _arrayWithHoles(n){if(Array.isArray(n))return n}function _iterableToArray(n){if(typeof Symbol!=="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _iterableToArrayLimit(n,t){var a=n==null?null:typeof Symbol!=="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(a!=null){var e=[];var r=true;var i=false;var o,s;try{for(a=a.call(n);!(r=(o=a.next()).done);r=true){e.push(o.value);if(t&&e.length===t)break}}catch(n){i=true;s=n}finally{try{r||a.return==null||a.return()}finally{if(i)throw s}}return e}}function _unsupportedIterableToArray(n,t){if(n){if(typeof n==="string")return _arrayLikeToArray(n,t);var a=Object.prototype.toString.call(n).slice(8,-1);a==="Object"&&n.constructor&&(a=n.constructor.name);return a==="Map"||a==="Set"?Array.from(n):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clampe
  2. /**
  3. * # Reduce
  4. *
  5. * A fast object `.reduce()` implementation.
  6. *
  7. * @param {Object} subject The object to reduce over.
  8. * @param {Function} fn The reducer function.
  9. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  10. * @param {Object} thisContext The context for the reducer.
  11. * @return {mixed} The final result.
  12. */var vn=function fastReduceObject(n,t,a,e){var r,i,o,s=Object.keys(n),c=s.length,f=e!==void 0?dn(t,e):t;if(a===void 0){r=1;o=n[s[0]]}else{r=0;o=a}for(;r<c;r++){i=s[r];o=f(o,n[i],i,n)}return o};function ucs2decode(n){var t=[];var a=0;var e=n.length;while(a<e){var r=n.charCodeAt(a++);if(r>=55296&&r<=56319&&a<e){var i=n.charCodeAt(a++);if((i&64512)==56320)t.push(((r&1023)<<10)+(i&1023)+65536);else{t.push(r);a--}}else t.push(r)}return t}function toHex(n){var t=ucs2decode(n);return t.length===1?t[0].toString(16):null}function codePointAt(n,t){var a=n.length;var e=n.charCodeAt(t);var r;if(e>=55296&&e<=56319&&a>t+1){r=n.charCodeAt(t+1);if(r>=56320&&r<=57343)return 1024*(e-55296)+r-56320+65536}return e}function normalizeIcons(n){return Object.keys(n).reduce((function(t,a){var e=n[a];var r=!!e.icon;r?t[e.iconName]=e.icon:t[a]=e;return t}),{})}function defineIcons(n,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var e=a.skipHooks,r=e!==void 0&&e;var i=normalizeIcons(t);typeof fn.hooks.addPack!=="function"||r?fn.styles[n]=_objectSpread2(_objectSpread2({},fn.styles[n]||{}),i):fn.hooks.addPack(n,normalizeIcons(t));n==="fas"&&defineIcons("fa",t)}_wrapRegExp(/path d="((?:(?!")[\s\S])+)".*path d="((?:(?!")[\s\S])+)"/,{d1:1,d2:2}),_wrapRegExp(/path class="((?:(?!")[\s\S])+)".*d="((?:(?!")[\s\S])+)".*path class="((?:(?!")[\s\S])+)".*d="((?:(?!")[\s\S])+)"/,{cls1:1,d1:2,cls2:3,d2:4}),_wrapRegExp(/path class="((?:(?!")[\s\S])+)".*d="((?:(?!")[\s\S])+)"/,{cls1:1,d1:2});var pn,bn,gn;var yn=fn.styles,hn=fn.shims;var kn=(pn={},_defineProperty(pn,E,Object.values(T[E])),_defineProperty(pn,M,Object.values(T[M])),pn);var xn=null;var wn={};var Sn={};var An={};var Pn={};var _n={};var jn=(bn={},_defineProperty(bn,E,Object.keys(R[E])),_defineProperty(bn,M,Object.keys(R[M])),bn);function isReserved(n){return~X.indexOf(n)}function getIconName(n,t){var a=t.split("-");var e=a[0];var r=a.slice(1).join("-");return e!==n||r===""||isReserved(r)?null:r}var On=function build(){var n=function lookup(n){return vn(yn,(function(t,a,e){t[e]=vn(a,n,{});return t}),{})};wn=n((function(n,t,a){t[3]&&(n[t[3]]=a);if(t[2]){var e=t[2].filter((function(n){return typeof n==="number"}));e.forEach((function(t){n[t.toString(16)]=a}))}return n}));Sn=n((function(n,t,a){n[a]=a;if(t[2]){var e=t[2].filter((function(n){return typeof n==="string"}));e.forEach((function(t){n[t]=a}))}return n}));_n=n((function(n,t,a){var e=t[2];n[a]=a;e.forEach((function(t){n[t]=a}));return n}));var t="far"in yn||Z.autoFetchSvg;var a=vn(hn,(function(n,a){var e=a[0];var r=a[1];var i=a[2];r!=="far"||t||(r="fas");typeof e==="string"&&(n.names[e]={prefix:r,iconName:i});typeof e==="number"&&(n.unicodes[e.toString(16)]={prefix:r,iconName:i});return n}),{names:{},unicodes:{}});An=a.names;Pn=a.unicodes;xn=getCanonicalPrefix(Z.styleDefault,{family:Z.familyDefault})};onChange((function(n){xn=getCanonicalPrefix(n.styleDefault,{family:Z.familyDefault})}));On();function byUnicode(n,t){return(wn[n]||{})[t]}function byLigature(n,t){return(Sn[n]||{})[t]}function byAlias(n,t){return(_n[n]||{})[t]}function byOldName(n){return An[n]||{prefix:null,iconName:null}}function byOldUnicode(n){var t=Pn[n];var a=byUnicode("fas",n);return t||(a?{prefix:"fas",iconName:a}:null)||{prefix:null,iconName:null}}function getDefaultUsablePrefix(){return xn}var Cn=function emptyCanonicalIcon(){return{prefix:null,iconName:null,rest:[]}};function getCanonicalPrefix(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var a=t.family,e=a===void 0?E:a;var r=R[e][n];var i=L[e][n]||L[e][r];var o=n in fn.styles?n:null;return i||o||null}var Nn=(gn={},_defineProperty(gn,E,Object.keys(T[E])),_defineProperty(gn,M,Object.keys(T[M])),gn);function getCanonicalIcon(n){var t;var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var e=a.skipLookups,r=e!==void 0&&e;var i=(t={},_defineProperty(t,E,"".concat(Z.cssPrefix,"-").concat(E)),_defineProperty(t,M,"".concat(Z.cssPrefix,"-").concat(M)),t);var o=null;var s=E;(n.includes(i[E])||n.some((function(n){return Nn[E].includes(n)})))&&(s=E);(n.includes(i[M])||n.some((func