From 70a16f25147e4423ea3c5cf549a76effad7d6478 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 2 Oct 2023 10:36:31 +0200 Subject: [PATCH] Remove FA 4 compatibility layer These are intended for the migration from 5.5 to 6.0 and thus no longer required with 6.1. We can't easily make sure, and we should not need to make sure that these scripts remain compatible with future versions of FA 6 that might be included in 6.1+. --- extra/migrate-fa-v4.php | 198 ------------------ .../system/style/FontAwesomeIcon.class.php | 70 ------- .../files/lib/system/style/fa-metadata-v4.php | 22 -- 3 files changed, 290 deletions(-) delete mode 100755 extra/migrate-fa-v4.php delete mode 100644 wcfsetup/install/files/lib/system/style/fa-metadata-v4.php diff --git a/extra/migrate-fa-v4.php b/extra/migrate-fa-v4.php deleted file mode 100755 index 4044350fa3..0000000000 --- a/extra/migrate-fa-v4.php +++ /dev/null @@ -1,198 +0,0 @@ -#!/usr/bin/env php - - * @package WoltLabSuite\Core - */ - -if (\PHP_SAPI !== 'cli') { - exit; -} - -// JSON Structure: -// [key: string]: { -// name: string; -// type: "brand" | "regular" | "solid"; -// } -$jsonMigrate = <<<'JSON' -{"500px":{"name":"500px","type":"brand"},"address-book-o":{"name":"address-book","type":"regular"},"address-card-o":{"name":"address-card","type":"regular"},"adn":{"name":"adn","type":"brand"},"amazon":{"name":"amazon","type":"brand"},"android":{"name":"android","type":"brand"},"angellist":{"name":"angellist","type":"brand"},"apple":{"name":"apple","type":"brand"},"area-chart":{"name":"chart-area","type":"solid"},"arrow-circle-o-down":{"name":"circle-down","type":"regular"},"arrow-circle-o-left":{"name":"circle-left","type":"regular"},"arrow-circle-o-right":{"name":"circle-right","type":"regular"},"arrow-circle-o-up":{"name":"circle-up","type":"regular"},"arrows":{"name":"up-down-left-right","type":"solid"},"arrows-alt":{"name":"maximize","type":"solid"},"arrows-h":{"name":"left-right","type":"solid"},"arrows-v":{"name":"up-down","type":"solid"},"asl-interpreting":{"name":"hands-asl-interpreting","type":"solid"},"automobile":{"name":"car","type":"solid"},"bandcamp":{"name":"bandcamp","type":"brand"},"bank":{"name":"building-columns","type":"solid"},"bar-chart":{"name":"chart-column","type":"solid"},"bar-chart-o":{"name":"chart-column","type":"solid"},"bathtub":{"name":"bath","type":"solid"},"battery":{"name":"battery-full","type":"solid"},"battery-0":{"name":"battery-empty","type":"solid"},"battery-1":{"name":"battery-quarter","type":"solid"},"battery-2":{"name":"battery-half","type":"solid"},"battery-3":{"name":"battery-three-quarters","type":"solid"},"battery-4":{"name":"battery-full","type":"solid"},"behance":{"name":"behance","type":"brand"},"behance-square":{"name":"square-behance","type":"brand"},"bell-o":{"name":"bell","type":"regular"},"bell-slash-o":{"name":"bell-slash","type":"regular"},"bitbucket":{"name":"bitbucket","type":"brand"},"bitbucket-square":{"name":"bitbucket","type":"brand"},"bitcoin":{"name":"btc","type":"brand"},"black-tie":{"name":"black-tie","type":"brand"},"bluetooth":{"name":"bluetooth","type":"brand"},"bluetooth-b":{"name":"bluetooth-b","type":"brand"},"bookmark-o":{"name":"bookmark","type":"regular"},"btc":{"name":"btc","type":"brand"},"building-o":{"name":"building","type":"regular"},"buysellads":{"name":"buysellads","type":"brand"},"cab":{"name":"taxi","type":"solid"},"calendar":{"name":"calendar-days","type":"solid"},"calendar-check-o":{"name":"calendar-check","type":"regular"},"calendar-minus-o":{"name":"calendar-minus","type":"regular"},"calendar-o":{"name":"calendar","type":"regular"},"calendar-plus-o":{"name":"calendar-plus","type":"regular"},"calendar-times-o":{"name":"calendar-xmark","type":"regular"},"caret-square-o-down":{"name":"square-caret-down","type":"regular"},"caret-square-o-left":{"name":"square-caret-left","type":"regular"},"caret-square-o-right":{"name":"square-caret-right","type":"regular"},"caret-square-o-up":{"name":"square-caret-up","type":"regular"},"cc":{"name":"closed-captioning","type":"regular"},"cc-amex":{"name":"cc-amex","type":"brand"},"cc-diners-club":{"name":"cc-diners-club","type":"brand"},"cc-discover":{"name":"cc-discover","type":"brand"},"cc-jcb":{"name":"cc-jcb","type":"brand"},"cc-mastercard":{"name":"cc-mastercard","type":"brand"},"cc-paypal":{"name":"cc-paypal","type":"brand"},"cc-stripe":{"name":"cc-stripe","type":"brand"},"cc-visa":{"name":"cc-visa","type":"brand"},"chain":{"name":"link","type":"solid"},"chain-broken":{"name":"link-slash","type":"solid"},"check-circle-o":{"name":"circle-check","type":"regular"},"check-square-o":{"name":"square-check","type":"regular"},"chrome":{"name":"chrome","type":"brand"},"circle-o":{"name":"circle","type":"regular"},"circle-o-notch":{"name":"circle-notch","type":"solid"},"circle-thin":{"name":"circle","type":"regular"},"clipboard":{"name":"paste","type":"solid"},"clock-o":{"name":"clock","type":"regular"},"clone":{"name":"clone","type":"regular"},"close":{"name":"xmark","type":"solid"},"cloud-download":{"name":"cloud-arrow-down","type":"solid"},"cloud-upload":{"name":"cloud-arrow-up","type":"solid"},"cny":{"name":"yen-sign","type":"solid"},"code-fork":{"name":"code-branch","type":"solid"},"codepen":{"name":"codepen","type":"brand"},"codiepie":{"name":"codiepie","type":"brand"},"comment-o":{"name":"comment","type":"regular"},"commenting":{"name":"comment-dots","type":"solid"},"commenting-o":{"name":"comment-dots","type":"regular"},"comments-o":{"name":"comments","type":"regular"},"compass":{"name":"compass","type":"regular"},"compress":{"name":"down-left-and-up-right-to-center","type":"solid"},"connectdevelop":{"name":"connectdevelop","type":"brand"},"contao":{"name":"contao","type":"brand"},"copyright":{"name":"copyright","type":"regular"},"creative-commons":{"name":"creative-commons","type":"brand"},"credit-card":{"name":"credit-card","type":"regular"},"credit-card-alt":{"name":"credit-card","type":"solid"},"css3":{"name":"css3","type":"brand"},"cut":{"name":"scissors","type":"solid"},"cutlery":{"name":"utensils","type":"solid"},"dashboard":{"name":"gauge-high","type":"solid"},"dashcube":{"name":"dashcube","type":"brand"},"deafness":{"name":"ear-deaf","type":"solid"},"dedent":{"name":"outdent","type":"solid"},"delicious":{"name":"delicious","type":"brand"},"deviantart":{"name":"deviantart","type":"brand"},"diamond":{"name":"gem","type":"regular"},"digg":{"name":"digg","type":"brand"},"dollar":{"name":"dollar-sign","type":"solid"},"dot-circle-o":{"name":"circle-dot","type":"regular"},"dribbble":{"name":"dribbble","type":"brand"},"drivers-license":{"name":"id-card","type":"solid"},"drivers-license-o":{"name":"id-card","type":"regular"},"dropbox":{"name":"dropbox","type":"brand"},"drupal":{"name":"drupal","type":"brand"},"edge":{"name":"edge","type":"brand"},"edit":{"name":"pen-to-square","type":"regular"},"eercast":{"name":"sellcast","type":"brand"},"empire":{"name":"empire","type":"brand"},"envelope-o":{"name":"envelope","type":"regular"},"envelope-open-o":{"name":"envelope-open","type":"regular"},"envira":{"name":"envira","type":"brand"},"etsy":{"name":"etsy","type":"brand"},"eur":{"name":"euro-sign","type":"solid"},"euro":{"name":"euro-sign","type":"solid"},"exchange":{"name":"right-left","type":"solid"},"expand":{"name":"up-right-and-down-left-from-center","type":"solid"},"expeditedssl":{"name":"expeditedssl","type":"brand"},"external-link":{"name":"up-right-from-square","type":"solid"},"external-link-square":{"name":"square-up-right","type":"solid"},"eye":{"name":"eye","type":"regular"},"eye-slash":{"name":"eye-slash","type":"regular"},"eyedropper":{"name":"eye-dropper","type":"solid"},"fa":{"name":"font-awesome","type":"brand"},"facebook":{"name":"facebook-f","type":"brand"},"facebook-f":{"name":"facebook-f","type":"brand"},"facebook-official":{"name":"facebook","type":"brand"},"facebook-square":{"name":"square-facebook","type":"brand"},"feed":{"name":"rss","type":"solid"},"file-archive-o":{"name":"file-zipper","type":"regular"},"file-audio-o":{"name":"file-audio","type":"regular"},"file-code-o":{"name":"file-code","type":"regular"},"file-excel-o":{"name":"file-excel","type":"regular"},"file-image-o":{"name":"file-image","type":"regular"},"file-movie-o":{"name":"file-video","type":"regular"},"file-o":{"name":"file","type":"regular"},"file-pdf-o":{"name":"file-pdf","type":"regular"},"file-photo-o":{"name":"file-image","type":"regular"},"file-picture-o":{"name":"file-image","type":"regular"},"file-powerpoint-o":{"name":"file-powerpoint","type":"regular"},"file-sound-o":{"name":"file-audio","type":"regular"},"file-text":{"name":"file-lines","type":"solid"},"file-text-o":{"name":"file-lines","type":"regular"},"file-video-o":{"name":"file-video","type":"regular"},"file-word-o":{"name":"file-word","type":"regular"},"file-zip-o":{"name":"file-zipper","type":"regular"},"files-o":{"name":"copy","type":"regular"},"firefox":{"name":"firefox","type":"brand"},"first-order":{"name":"first-order","type":"brand"},"flag-o":{"name":"flag","type":"regular"},"flash":{"name":"bolt","type":"solid"},"flickr":{"name":"flickr","type":"brand"},"floppy-o":{"name":"floppy-disk","type":"regular"},"folder-o":{"name":"folder","type":"regular"},"folder-open-o":{"name":"folder-open","type":"regular"},"font-awesome":{"name":"font-awesome","type":"brand"},"fonticons":{"name":"fonticons","type":"brand"},"fort-awesome":{"name":"fort-awesome","type":"brand"},"forumbee":{"name":"forumbee","type":"brand"},"foursquare":{"name":"foursquare","type":"brand"},"free-code-camp":{"name":"free-code-camp","type":"brand"},"frown-o":{"name":"face-frown","type":"regular"},"futbol-o":{"name":"futbol","type":"regular"},"gbp":{"name":"sterling-sign","type":"solid"},"ge":{"name":"empire","type":"brand"},"gear":{"name":"gear","type":"solid"},"gears":{"name":"gears","type":"solid"},"get-pocket":{"name":"get-pocket","type":"brand"},"gg":{"name":"gg","type":"brand"},"gg-circle":{"name":"gg-circle","type":"brand"},"git":{"name":"git","type":"brand"},"git-square":{"name":"square-git","type":"brand"},"github":{"name":"github","type":"brand"},"github-alt":{"name":"github-alt","type":"brand"},"github-square":{"name":"square-github","type":"brand"},"gitlab":{"name":"gitlab","type":"brand"},"gittip":{"name":"gratipay","type":"brand"},"glass":{"name":"martini-glass-empty","type":"solid"},"glide":{"name":"glide","type":"brand"},"glide-g":{"name":"glide-g","type":"brand"},"globe":{"name":"earth-americas","type":"solid"},"google":{"name":"google","type":"brand"},"google-plus":{"name":"google-plus-g","type":"brand"},"google-plus-circle":{"name":"google-plus","type":"brand"},"google-plus-official":{"name":"google-plus","type":"brand"},"google-plus-square":{"name":"square-google-plus","type":"brand"},"google-wallet":{"name":"google-wallet","type":"brand"},"gratipay":{"name":"gratipay","type":"brand"},"grav":{"name":"grav","type":"brand"},"group":{"name":"users","type":"solid"},"hacker-news":{"name":"hacker-news","type":"brand"},"hand-grab-o":{"name":"hand-back-fist","type":"regular"},"hand-lizard-o":{"name":"hand-lizard","type":"regular"},"hand-o-down":{"name":"hand-point-down","type":"regular"},"hand-o-left":{"name":"hand-point-left","type":"regular"},"hand-o-right":{"name":"hand-point-right","type":"regular"},"hand-o-up":{"name":"hand-point-up","type":"regular"},"hand-paper-o":{"name":"hand","type":"regular"},"hand-peace-o":{"name":"hand-peace","type":"regular"},"hand-pointer-o":{"name":"hand-pointer","type":"regular"},"hand-rock-o":{"name":"hand-back-fist","type":"regular"},"hand-scissors-o":{"name":"hand-scissors","type":"regular"},"hand-spock-o":{"name":"hand-spock","type":"regular"},"hand-stop-o":{"name":"hand","type":"regular"},"handshake-o":{"name":"handshake","type":"regular"},"hard-of-hearing":{"name":"ear-deaf","type":"solid"},"hdd-o":{"name":"hard-drive","type":"regular"},"header":{"name":"heading","type":"solid"},"heart-o":{"name":"heart","type":"regular"},"home":{"name":"house","type":"solid"},"hospital-o":{"name":"hospital","type":"regular"},"hotel":{"name":"bed","type":"solid"},"hourglass-1":{"name":"hourglass-start","type":"solid"},"hourglass-2":{"name":"hourglass-half","type":"solid"},"hourglass-3":{"name":"hourglass-end","type":"solid"},"hourglass-o":{"name":"hourglass","type":"solid"},"houzz":{"name":"houzz","type":"brand"},"html5":{"name":"html5","type":"brand"},"id-badge":{"name":"id-badge","type":"regular"},"id-card-o":{"name":"id-card","type":"regular"},"ils":{"name":"shekel-sign","type":"solid"},"image":{"name":"image","type":"regular"},"imdb":{"name":"imdb","type":"brand"},"inr":{"name":"indian-rupee-sign","type":"solid"},"instagram":{"name":"instagram","type":"brand"},"institution":{"name":"building-columns","type":"solid"},"internet-explorer":{"name":"internet-explorer","type":"brand"},"intersex":{"name":"mars-and-venus","type":"solid"},"ioxhost":{"name":"ioxhost","type":"brand"},"joomla":{"name":"joomla","type":"brand"},"jpy":{"name":"yen-sign","type":"solid"},"jsfiddle":{"name":"jsfiddle","type":"brand"},"keyboard-o":{"name":"keyboard","type":"regular"},"krw":{"name":"won-sign","type":"solid"},"lastfm":{"name":"lastfm","type":"brand"},"lastfm-square":{"name":"square-lastfm","type":"brand"},"leanpub":{"name":"leanpub","type":"brand"},"legal":{"name":"gavel","type":"solid"},"lemon-o":{"name":"lemon","type":"regular"},"level-down":{"name":"turn-down","type":"solid"},"level-up":{"name":"turn-up","type":"solid"},"life-bouy":{"name":"life-ring","type":"solid"},"life-buoy":{"name":"life-ring","type":"solid"},"life-saver":{"name":"life-ring","type":"solid"},"lightbulb-o":{"name":"lightbulb","type":"regular"},"line-chart":{"name":"chart-line","type":"solid"},"linkedin":{"name":"linkedin-in","type":"brand"},"linkedin-square":{"name":"linkedin","type":"brand"},"linode":{"name":"linode","type":"brand"},"linux":{"name":"linux","type":"brand"},"list-alt":{"name":"rectangle-list","type":"regular"},"long-arrow-down":{"name":"down-long","type":"solid"},"long-arrow-left":{"name":"left-long","type":"solid"},"long-arrow-right":{"name":"right-long","type":"solid"},"long-arrow-up":{"name":"up-long","type":"solid"},"magic":{"name":"wand-magic-sparkles","type":"solid"},"mail-forward":{"name":"share","type":"solid"},"mail-reply":{"name":"reply","type":"solid"},"mail-reply-all":{"name":"reply-all","type":"solid"},"map-marker":{"name":"location-dot","type":"solid"},"map-o":{"name":"map","type":"regular"},"maxcdn":{"name":"maxcdn","type":"brand"},"medium":{"name":"medium","type":"brand"},"meetup":{"name":"meetup","type":"brand"},"meh-o":{"name":"face-meh","type":"regular"},"minus-square-o":{"name":"square-minus","type":"regular"},"mixcloud":{"name":"mixcloud","type":"brand"},"mobile":{"name":"mobile-screen-button","type":"solid"},"mobile-phone":{"name":"mobile-screen-button","type":"solid"},"modx":{"name":"modx","type":"brand"},"money":{"name":"money-bill-1","type":"solid"},"moon-o":{"name":"moon","type":"regular"},"mortar-board":{"name":"graduation-cap","type":"solid"},"navicon":{"name":"bars","type":"solid"},"newspaper-o":{"name":"newspaper","type":"regular"},"object-group":{"name":"object-group","type":"regular"},"object-ungroup":{"name":"object-ungroup","type":"regular"},"odnoklassniki":{"name":"odnoklassniki","type":"brand"},"odnoklassniki-square":{"name":"square-odnoklassniki","type":"brand"},"opencart":{"name":"opencart","type":"brand"},"openid":{"name":"openid","type":"brand"},"opera":{"name":"opera","type":"brand"},"optin-monster":{"name":"optin-monster","type":"brand"},"pagelines":{"name":"pagelines","type":"brand"},"paper-plane-o":{"name":"paper-plane","type":"regular"},"pause-circle-o":{"name":"circle-pause","type":"regular"},"paypal":{"name":"paypal","type":"brand"},"pencil-square":{"name":"square-pen","type":"solid"},"pencil-square-o":{"name":"pen-to-square","type":"regular"},"photo":{"name":"image","type":"regular"},"picture-o":{"name":"image","type":"regular"},"pie-chart":{"name":"chart-pie","type":"solid"},"pied-piper":{"name":"pied-piper","type":"brand"},"pied-piper-alt":{"name":"pied-piper-alt","type":"brand"},"pied-piper-pp":{"name":"pied-piper-pp","type":"brand"},"pinterest":{"name":"pinterest","type":"brand"},"pinterest-p":{"name":"pinterest-p","type":"brand"},"pinterest-square":{"name":"square-pinterest","type":"brand"},"play-circle-o":{"name":"circle-play","type":"regular"},"plus-square-o":{"name":"square-plus","type":"regular"},"product-hunt":{"name":"product-hunt","type":"brand"},"qq":{"name":"qq","type":"brand"},"question-circle-o":{"name":"circle-question","type":"regular"},"quora":{"name":"quora","type":"brand"},"ra":{"name":"rebel","type":"brand"},"ravelry":{"name":"ravelry","type":"brand"},"rebel":{"name":"rebel","type":"brand"},"reddit":{"name":"reddit","type":"brand"},"reddit-alien":{"name":"reddit-alien","type":"brand"},"reddit-square":{"name":"square-reddit","type":"brand"},"refresh":{"name":"arrows-rotate","type":"solid"},"registered":{"name":"registered","type":"regular"},"remove":{"name":"xmark","type":"solid"},"renren":{"name":"renren","type":"brand"},"reorder":{"name":"bars","type":"solid"},"repeat":{"name":"arrow-rotate-right","type":"solid"},"resistance":{"name":"rebel","type":"brand"},"rmb":{"name":"yen-sign","type":"solid"},"rotate-left":{"name":"arrow-rotate-left","type":"solid"},"rotate-right":{"name":"arrow-rotate-right","type":"solid"},"rouble":{"name":"ruble-sign","type":"solid"},"rub":{"name":"ruble-sign","type":"solid"},"ruble":{"name":"ruble-sign","type":"solid"},"rupee":{"name":"indian-rupee-sign","type":"solid"},"s15":{"name":"bath","type":"solid"},"safari":{"name":"safari","type":"brand"},"save":{"name":"floppy-disk","type":"regular"},"scribd":{"name":"scribd","type":"brand"},"sellsy":{"name":"sellsy","type":"brand"},"send":{"name":"paper-plane","type":"solid"},"send-o":{"name":"paper-plane","type":"regular"},"share-square-o":{"name":"share-from-square","type":"solid"},"shekel":{"name":"shekel-sign","type":"solid"},"sheqel":{"name":"shekel-sign","type":"solid"},"shirtsinbulk":{"name":"shirtsinbulk","type":"brand"},"sign-in":{"name":"right-to-bracket","type":"solid"},"sign-out":{"name":"right-from-bracket","type":"solid"},"signing":{"name":"hands","type":"solid"},"simplybuilt":{"name":"simplybuilt","type":"brand"},"skyatlas":{"name":"skyatlas","type":"brand"},"skype":{"name":"skype","type":"brand"},"slack":{"name":"slack","type":"brand"},"slideshare":{"name":"slideshare","type":"brand"},"smile-o":{"name":"face-smile","type":"regular"},"snapchat":{"name":"snapchat","type":"brand"},"snapchat-ghost":{"name":"snapchat","type":"brand"},"snapchat-square":{"name":"square-snapchat","type":"brand"},"snowflake-o":{"name":"snowflake","type":"regular"},"soccer-ball-o":{"name":"futbol","type":"regular"},"sort-alpha-asc":{"name":"arrow-down-a-z","type":"solid"},"sort-alpha-desc":{"name":"arrow-down-z-a","type":"solid"},"sort-amount-asc":{"name":"arrow-down-short-wide","type":"solid"},"sort-amount-desc":{"name":"arrow-down-wide-short","type":"solid"},"sort-asc":{"name":"sort-up","type":"solid"},"sort-desc":{"name":"sort-down","type":"solid"},"sort-numeric-asc":{"name":"arrow-down-1-9","type":"solid"},"sort-numeric-desc":{"name":"arrow-down-9-1","type":"solid"},"soundcloud":{"name":"soundcloud","type":"brand"},"spotify":{"name":"spotify","type":"brand"},"square-o":{"name":"square","type":"regular"},"stack-exchange":{"name":"stack-exchange","type":"brand"},"stack-overflow":{"name":"stack-overflow","type":"brand"},"star-half-empty":{"name":"star-half-stroke","type":"regular"},"star-half-full":{"name":"star-half-stroke","type":"regular"},"star-half-o":{"name":"star-half-stroke","type":"regular"},"star-o":{"name":"star","type":"regular"},"steam":{"name":"steam","type":"brand"},"steam-square":{"name":"square-steam","type":"brand"},"sticky-note-o":{"name":"note-sticky","type":"regular"},"stop-circle-o":{"name":"circle-stop","type":"regular"},"stumbleupon":{"name":"stumbleupon","type":"brand"},"stumbleupon-circle":{"name":"stumbleupon-circle","type":"brand"},"sun-o":{"name":"sun","type":"regular"},"superpowers":{"name":"superpowers","type":"brand"},"support":{"name":"life-ring","type":"solid"},"tablet":{"name":"tablet-screen-button","type":"solid"},"tachometer":{"name":"gauge-high","type":"solid"},"tasks":{"name":"bars-progress","type":"solid"},"telegram":{"name":"telegram","type":"brand"},"television":{"name":"tv","type":"solid"},"tencent-weibo":{"name":"tencent-weibo","type":"brand"},"themeisle":{"name":"themeisle","type":"brand"},"thermometer":{"name":"temperature-full","type":"solid"},"thermometer-0":{"name":"temperature-empty","type":"solid"},"thermometer-1":{"name":"temperature-quarter","type":"solid"},"thermometer-2":{"name":"temperature-half","type":"solid"},"thermometer-3":{"name":"temperature-three-quarters","type":"solid"},"thermometer-4":{"name":"temperature-full","type":"solid"},"thumb-tack":{"name":"thumbtack","type":"solid"},"thumbs-o-down":{"name":"thumbs-down","type":"regular"},"thumbs-o-up":{"name":"thumbs-up","type":"regular"},"times-circle-o":{"name":"circle-xmark","type":"regular"},"times-rectangle":{"name":"rectangle-xmark","type":"solid"},"times-rectangle-o":{"name":"rectangle-xmark","type":"regular"},"toggle-down":{"name":"square-caret-down","type":"regular"},"toggle-left":{"name":"square-caret-left","type":"regular"},"toggle-right":{"name":"square-caret-right","type":"regular"},"toggle-up":{"name":"square-caret-up","type":"regular"},"transgender":{"name":"mars-and-venus","type":"solid"},"transgender-alt":{"name":"transgender","type":"solid"},"trash":{"name":"trash-can","type":"solid"},"trash-o":{"name":"trash-can","type":"regular"},"trello":{"name":"trello","type":"brand"},"try":{"name":"turkish-lira-sign","type":"solid"},"tumblr":{"name":"tumblr","type":"brand"},"tumblr-square":{"name":"square-tumblr","type":"brand"},"turkish-lira":{"name":"turkish-lira-sign","type":"solid"},"twitch":{"name":"twitch","type":"brand"},"twitter":{"name":"twitter","type":"brand"},"twitter-square":{"name":"square-twitter","type":"brand"},"unlink":{"name":"link-slash","type":"solid"},"unlock-alt":{"name":"unlock","type":"solid"},"unsorted":{"name":"sort","type":"solid"},"usb":{"name":"usb","type":"brand"},"usd":{"name":"dollar-sign","type":"solid"},"user-circle-o":{"name":"circle-user","type":"regular"},"user-o":{"name":"user","type":"regular"},"vcard":{"name":"address-card","type":"solid"},"vcard-o":{"name":"address-card","type":"regular"},"viacoin":{"name":"viacoin","type":"brand"},"viadeo":{"name":"viadeo","type":"brand"},"viadeo-square":{"name":"square-viadeo","type":"brand"},"video-camera":{"name":"video","type":"solid"},"vimeo":{"name":"vimeo-v","type":"brand"},"vimeo-square":{"name":"square-vimeo","type":"brand"},"vine":{"name":"vine","type":"brand"},"vk":{"name":"vk","type":"brand"},"volume-control-phone":{"name":"phone-volume","type":"solid"},"warning":{"name":"triangle-exclamation","type":"solid"},"wechat":{"name":"weixin","type":"brand"},"weibo":{"name":"weibo","type":"brand"},"weixin":{"name":"weixin","type":"brand"},"whatsapp":{"name":"whatsapp","type":"brand"},"wheelchair-alt":{"name":"accessible-icon","type":"brand"},"wikipedia-w":{"name":"wikipedia-w","type":"brand"},"window-close-o":{"name":"rectangle-xmark","type":"regular"},"window-maximize":{"name":"window-maximize","type":"regular"},"window-restore":{"name":"window-restore","type":"regular"},"windows":{"name":"windows","type":"brand"},"won":{"name":"won-sign","type":"solid"},"wordpress":{"name":"wordpress","type":"brand"},"wpbeginner":{"name":"wpbeginner","type":"brand"},"wpexplorer":{"name":"wpexplorer","type":"brand"},"wpforms":{"name":"wpforms","type":"brand"},"xing":{"name":"xing","type":"brand"},"xing-square":{"name":"square-xing","type":"brand"},"y-combinator":{"name":"y-combinator","type":"brand"},"y-combinator-square":{"name":"hacker-news","type":"brand"},"yahoo":{"name":"yahoo","type":"brand"},"yc":{"name":"y-combinator","type":"brand"},"yc-square":{"name":"hacker-news","type":"brand"},"yelp":{"name":"yelp","type":"brand"},"yen":{"name":"yen-sign","type":"solid"},"yoast":{"name":"yoast","type":"brand"},"youtube":{"name":"youtube","type":"brand"},"youtube-play":{"name":"youtube","type":"brand"},"youtube-square":{"name":"square-youtube","type":"brand"}} -JSON; - -// JSON Structure: -// [ -// [string, string] -// ] -$jsonAliases = <<<'JSON' -[["innosoft","42-group"],["contact-book","address-book"],["contact-card","address-card"],["vcard","address-card"],["angle-double-down","angles-down"],["angle-double-left","angles-left"],["angle-double-right","angles-right"],["angle-double-up","angles-up"],["apple-alt","apple-whole"],["sort-numeric-asc","arrow-down-1-9"],["sort-numeric-down","arrow-down-1-9"],["sort-numeric-desc","arrow-down-9-1"],["sort-numeric-down-alt","arrow-down-9-1"],["sort-alpha-asc","arrow-down-a-z"],["sort-alpha-down","arrow-down-a-z"],["long-arrow-down","arrow-down-long"],["sort-amount-desc","arrow-down-short-wide"],["sort-amount-down-alt","arrow-down-short-wide"],["sort-amount-asc","arrow-down-wide-short"],["sort-amount-down","arrow-down-wide-short"],["sort-alpha-desc","arrow-down-z-a"],["sort-alpha-down-alt","arrow-down-z-a"],["long-arrow-left","arrow-left-long"],["mouse-pointer","arrow-pointer"],["exchange","arrow-right-arrow-left"],["sign-out","arrow-right-from-bracket"],["long-arrow-right","arrow-right-long"],["sign-in","arrow-right-to-bracket"],["arrow-left-rotate","arrow-rotate-left"],["arrow-rotate-back","arrow-rotate-left"],["arrow-rotate-backward","arrow-rotate-left"],["undo","arrow-rotate-left"],["arrow-right-rotate","arrow-rotate-right"],["arrow-rotate-forward","arrow-rotate-right"],["redo","arrow-rotate-right"],["level-down","arrow-turn-down"],["level-up","arrow-turn-up"],["sort-numeric-up","arrow-up-1-9"],["sort-numeric-up-alt","arrow-up-9-1"],["sort-alpha-up","arrow-up-a-z"],["long-arrow-up","arrow-up-long"],["external-link","arrow-up-right-from-square"],["sort-amount-up-alt","arrow-up-short-wide"],["sort-amount-up","arrow-up-wide-short"],["sort-alpha-up-alt","arrow-up-z-a"],["arrows-h","arrows-left-right"],["refresh","arrows-rotate"],["sync","arrows-rotate"],["arrows-v","arrows-up-down"],["arrows","arrows-up-down-left-right"],["carriage-baby","baby-carriage"],["fast-backward","backward-fast"],["step-backward","backward-step"],["shopping-bag","bag-shopping"],["haykal","bahai"],["cancel","ban"],["smoking-ban","ban-smoking"],["band-aid","bandage"],["navicon","bars"],["tasks-alt","bars-progress"],["reorder","bars-staggered"],["stream","bars-staggered"],["baseball-ball","baseball"],["shopping-basket","basket-shopping"],["basketball-ball","basketball"],["bathtub","bath"],["battery-0","battery-empty"],["battery","battery-full"],["battery-5","battery-full"],["battery-3","battery-half"],["battery-2","battery-quarter"],["battery-4","battery-three-quarters"],["procedures","bed-pulse"],["beer","beer-mug-empty"],["concierge-bell","bell-concierge"],["zap","bolt"],["atlas","book-atlas"],["bible","book-bible"],["journal-whills","book-journal-whills"],["book-reader","book-open-reader"],["quran","book-quran"],["book-dead","book-skull"],["tanakh","book-tanakh"],["border-style","border-top-left"],["archive","box-archive"],["boxes","boxes-stacked"],["boxes-alt","boxes-stacked"],["quidditch","broom-ball"],["quidditch-broom-ball","broom-ball"],["bank","building-columns"],["institution","building-columns"],["museum","building-columns"],["university","building-columns"],["hamburger","burger"],["bus-alt","bus-simple"],["briefcase-clock","business-time"],["tram","cable-car"],["birthday-cake","cake-candles"],["cake","cake-candles"],["calendar-alt","calendar-days"],["calendar-times","calendar-xmark"],["camera-alt","camera"],["automobile","car"],["battery-car","car-battery"],["car-crash","car-burst"],["car-alt","car-rear"],["dolly-flatbed","cart-flatbed"],["luggage-cart","cart-flatbed-suitcase"],["shopping-cart","cart-shopping"],["blackboard","chalkboard"],["chalkboard-teacher","chalkboard-user"],["glass-cheers","champagne-glasses"],["area-chart","chart-area"],["bar-chart","chart-bar"],["line-chart","chart-line"],["pie-chart","chart-pie"],["vote-yea","check-to-slot"],["arrow-circle-down","circle-arrow-down"],["arrow-circle-left","circle-arrow-left"],["arrow-circle-right","circle-arrow-right"],["arrow-circle-up","circle-arrow-up"],["check-circle","circle-check"],["chevron-circle-down","circle-chevron-down"],["chevron-circle-left","circle-chevron-left"],["chevron-circle-right","circle-chevron-right"],["chevron-circle-up","circle-chevron-up"],["donate","circle-dollar-to-slot"],["dot-circle","circle-dot"],["arrow-alt-circle-down","circle-down"],["exclamation-circle","circle-exclamation"],["hospital-symbol","circle-h"],["adjust","circle-half-stroke"],["info-circle","circle-info"],["arrow-alt-circle-left","circle-left"],["minus-circle","circle-minus"],["pause-circle","circle-pause"],["play-circle","circle-play"],["plus-circle","circle-plus"],["question-circle","circle-question"],["radiation-alt","circle-radiation"],["arrow-alt-circle-right","circle-right"],["stop-circle","circle-stop"],["arrow-alt-circle-up","circle-up"],["user-circle","circle-user"],["times-circle","circle-xmark"],["xmark-circle","circle-xmark"],["clock-four","clock"],["history","clock-rotate-left"],["cloud-download","cloud-arrow-down"],["cloud-download-alt","cloud-arrow-down"],["cloud-upload","cloud-arrow-up"],["cloud-upload-alt","cloud-arrow-up"],["thunderstorm","cloud-bolt"],["commenting","comment-dots"],["sms","comment-sms"],["drafting-compass","compass-drafting"],["mouse","computer-mouse"],["credit-card-alt","credit-card"],["crop-alt","crop-simple"],["backspace","delete-left"],["desktop-alt","desktop"],["project-diagram","diagram-project"],["directions","diamond-turn-right"],["dollar","dollar-sign"],["usd","dollar-sign"],["dolly-box","dolly"],["compress-alt","down-left-and-up-right-to-center"],["long-arrow-alt-down","down-long"],["tint","droplet"],["tint-slash","droplet-slash"],["deaf","ear-deaf"],["deafness","ear-deaf"],["hard-of-hearing","ear-deaf"],["assistive-listening-systems","ear-listen"],["globe-africa","earth-africa"],["earth","earth-americas"],["earth-america","earth-americas"],["globe-americas","earth-americas"],["globe-asia","earth-asia"],["globe-europe","earth-europe"],["globe-oceania","earth-oceania"],["ellipsis-h","ellipsis"],["ellipsis-v","ellipsis-vertical"],["mail-bulk","envelopes-bulk"],["eur","euro-sign"],["euro","euro-sign"],["eye-dropper-empty","eye-dropper"],["eyedropper","eye-dropper"],["low-vision","eye-low-vision"],["angry","face-angry"],["dizzy","face-dizzy"],["flushed","face-flushed"],["frown","face-frown"],["frown-open","face-frown-open"],["grimace","face-grimace"],["grin","face-grin"],["grin-beam","face-grin-beam"],["grin-beam-sweat","face-grin-beam-sweat"],["grin-hearts","face-grin-hearts"],["grin-squint","face-grin-squint"],["grin-squint-tears","face-grin-squint-tears"],["grin-stars","face-grin-stars"],["grin-tears","face-grin-tears"],["grin-tongue","face-grin-tongue"],["grin-tongue-squint","face-grin-tongue-squint"],["grin-tongue-wink","face-grin-tongue-wink"],["grin-alt","face-grin-wide"],["grin-wink","face-grin-wink"],["kiss","face-kiss"],["kiss-beam","face-kiss-beam"],["kiss-wink-heart","face-kiss-wink-heart"],["laugh","face-laugh"],["laugh-beam","face-laugh-beam"],["laugh-squint","face-laugh-squint"],["laugh-wink","face-laugh-wink"],["meh","face-meh"],["meh-blank","face-meh-blank"],["meh-rolling-eyes","face-rolling-eyes"],["sad-cry","face-sad-cry"],["sad-tear","face-sad-tear"],["smile","face-smile"],["smile-beam","face-smile-beam"],["smile-wink","face-smile-wink"],["surprise","face-surprise"],["tired","face-tired"],["feather-alt","feather-pointed"],["file-download","file-arrow-down"],["file-upload","file-arrow-up"],["arrow-right-from-file","file-export"],["arrow-right-to-file","file-import"],["file-alt","file-lines"],["file-text","file-lines"],["file-edit","file-pen"],["file-medical-alt","file-waveform"],["file-archive","file-zipper"],["funnel-dollar","filter-circle-dollar"],["fire-alt","fire-flame-curved"],["burn","fire-flame-simple"],["save","floppy-disk"],["folder-blank","folder"],["font-awesome-flag","font-awesome"],["font-awesome-logo-full","font-awesome"],["football-ball","football"],["fast-forward","forward-fast"],["step-forward","forward-step"],["futbol-ball","futbol"],["soccer-ball","futbol"],["dashboard","gauge"],["gauge-med","gauge"],["tachometer-alt-average","gauge"],["tachometer-alt","gauge-high"],["tachometer-alt-fast","gauge-high"],["gauge-simple-med","gauge-simple"],["tachometer-average","gauge-simple"],["tachometer","gauge-simple-high"],["tachometer-fast","gauge-simple-high"],["legal","gavel"],["cog","gear"],["cogs","gears"],["golf-ball","golf-ball-tee"],["mortar-board","graduation-cap"],["grip-horizontal","grip"],["hand-paper","hand"],["hand-rock","hand-back-fist"],["allergies","hand-dots"],["fist-raised","hand-fist"],["hand-holding-usd","hand-holding-dollar"],["hand-holding-water","hand-holding-droplet"],["sign-language","hands"],["signing","hands"],["american-sign-language-interpreting","hands-asl-interpreting"],["asl-interpreting","hands-asl-interpreting"],["hands-american-sign-language-interpreting","hands-asl-interpreting"],["hands-wash","hands-bubbles"],["praying-hands","hands-praying"],["hands-helping","handshake-angle"],["handshake-alt","handshake-simple"],["handshake-alt-slash","handshake-simple-slash"],["hdd","hard-drive"],["header","heading"],["headphones-alt","headphones-simple"],["heart-broken","heart-crack"],["heartbeat","heart-pulse"],["hard-hat","helmet-safety"],["hat-hard","helmet-safety"],["hospital-alt","hospital"],["hospital-wide","hospital"],["hot-tub","hot-tub-person"],["hourglass-empty","hourglass"],["hourglass-3","hourglass-end"],["hourglass-2","hourglass-half"],["hourglass-1","hourglass-start"],["home","house"],["home-alt","house"],["home-lg-alt","house"],["home-lg","house-chimney"],["house-damage","house-chimney-crack"],["clinic-medical","house-chimney-medical"],["laptop-house","house-laptop"],["home-user","house-user"],["hryvnia","hryvnia-sign"],["heart-music-camera-bolt","icons"],["drivers-license","id-card"],["id-card-alt","id-card-clip"],["portrait","image-portrait"],["indian-rupee","indian-rupee-sign"],["inr","indian-rupee-sign"],["fighter-jet","jet-fighter"],["first-aid","kit-medical"],["landmark-alt","landmark-dome"],["long-arrow-alt-left","left-long"],["arrows-alt-h","left-right"],["chain","link"],["chain-broken","link-slash"],["chain-slash","link-slash"],["unlink","link-slash"],["list-squares","list"],["tasks","list-check"],["list-1-2","list-ol"],["list-numeric","list-ol"],["list-dots","list-ul"],["location","location-crosshairs"],["map-marker-alt","location-dot"],["map-marker","location-pin"],["search","magnifying-glass"],["search-dollar","magnifying-glass-dollar"],["search-location","magnifying-glass-location"],["search-minus","magnifying-glass-minus"],["search-plus","magnifying-glass-plus"],["map-marked","map-location"],["map-marked-alt","map-location-dot"],["mars-stroke-h","mars-stroke-right"],["mars-stroke-v","mars-stroke-up"],["glass-martini-alt","martini-glass"],["cocktail","martini-glass-citrus"],["glass-martini","martini-glass-empty"],["theater-masks","masks-theater"],["expand-arrows-alt","maximize"],["medium-m","medium"],["comment-alt","message"],["microphone-alt","microphone-lines"],["microphone-alt-slash","microphone-lines-slash"],["compress-arrows-alt","minimize"],["subtract","minus"],["mobile-android","mobile"],["mobile-phone","mobile"],["mobile-android-alt","mobile-screen"],["mobile-alt","mobile-screen-button"],["money-bill-alt","money-bill-1"],["money-bill-wave-alt","money-bill-1-wave"],["money-check-alt","money-check-dollar"],["coffee","mug-saucer"],["sticky-note","note-sticky"],["dedent","outdent"],["paint-brush","paintbrush"],["file-clipboard","paste"],["pen-alt","pen-clip"],["pencil-ruler","pen-ruler"],["edit","pen-to-square"],["pencil-alt","pencil"],["people-arrows-left-right","people-arrows"],["people-carry","people-carry-box"],["percentage","percent"],["male","person"],["biking","person-biking"],["digging","person-digging"],["diagnoses","person-dots-from-line"],["female","person-dress"],["hiking","person-hiking"],["pray","person-praying"],["running","person-running"],["skating","person-skating"],["skiing","person-skiing"],["skiing-nordic","person-skiing-nordic"],["snowboarding","person-snowboarding"],["swimmer","person-swimming"],["walking","person-walking"],["blind","person-walking-with-cane"],["phone-alt","phone-flip"],["volume-control-phone","phone-volume"],["photo-video","photo-film"],["add","plus"],["poo-bolt","poo-storm"],["prescription-bottle-alt","prescription-bottle-medical"],["quote-left-alt","quote-left"],["quote-right-alt","quote-right"],["ad","rectangle-ad"],["list-alt","rectangle-list"],["rectangle-times","rectangle-xmark"],["times-rectangle","rectangle-xmark"],["window-close","rectangle-xmark"],["mail-reply","reply"],["mail-reply-all","reply-all"],["sign-out-alt","right-from-bracket"],["exchange-alt","right-left"],["long-arrow-alt-right","right-long"],["sign-in-alt","right-to-bracket"],["sync-alt","rotate"],["rotate-back","rotate-left"],["rotate-backward","rotate-left"],["undo-alt","rotate-left"],["redo-alt","rotate-right"],["rotate-forward","rotate-right"],["feed","rss"],["rouble","ruble-sign"],["rub","ruble-sign"],["ruble","ruble-sign"],["rupee","rupee-sign"],["balance-scale","scale-balanced"],["balance-scale-left","scale-unbalanced"],["balance-scale-right","scale-unbalanced-flip"],["cut","scissors"],["tools","screwdriver-wrench"],["torah","scroll-torah"],["sprout","seedling"],["triangle-circle-square","shapes"],["arrow-turn-right","share"],["mail-forward","share"],["share-square","share-from-square"],["share-alt","share-nodes"],["ils","shekel-sign"],["shekel","shekel-sign"],["sheqel","shekel-sign"],["sheqel-sign","shekel-sign"],["shield-blank","shield"],["shield-alt","shield-halved"],["t-shirt","shirt"],["tshirt","shirt"],["store-alt","shop"],["store-alt-slash","shop-slash"],["random","shuffle"],["space-shuttle","shuttle-space"],["sign","sign-hanging"],["signal-5","signal"],["signal-perfect","signal"],["map-signs","signs-post"],["slack-hash","slack"],["sliders-h","sliders"],["snapchat-ghost","snapchat"],["unsorted","sort"],["sort-desc","sort-down"],["sort-asc","sort-up"],["pastafarianism","spaghetti-monster-flying"],["utensil-spoon","spoon"],["air-freshener","spray-can-sparkles"],["external-link-square","square-arrow-up-right"],["behance-square","square-behance"],["caret-square-down","square-caret-down"],["caret-square-left","square-caret-left"],["caret-square-right","square-caret-right"],["caret-square-up","square-caret-up"],["check-square","square-check"],["dribbble-square","square-dribbble"],["envelope-square","square-envelope"],["facebook-square","square-facebook"],["font-awesome-alt","square-font-awesome-stroke"],["git-square","square-git"],["github-square","square-github"],["gitlab-square","square-gitlab"],["google-plus-square","square-google-plus"],["h-square","square-h"],["hacker-news-square","square-hacker-news"],["instagram-square","square-instagram"],["js-square","square-js"],["lastfm-square","square-lastfm"],["minus-square","square-minus"],["odnoklassniki-square","square-odnoklassniki"],["parking","square-parking"],["pen-square","square-pen"],["pencil-square","square-pen"],["phone-square","square-phone"],["phone-square-alt","square-phone-flip"],["pied-piper-square","square-pied-piper"],["pinterest-square","square-pinterest"],["plus-square","square-plus"],["poll-h","square-poll-horizontal"],["poll","square-poll-vertical"],["reddit-square","square-reddit"],["square-root-alt","square-root-variable"],["rss-square","square-rss"],["share-alt-square","square-share-nodes"],["snapchat-square","square-snapchat"],["steam-square","square-steam"],["tumblr-square","square-tumblr"],["twitter-square","square-twitter"],["external-link-square-alt","square-up-right"],["viadeo-square","square-viadeo"],["vimeo-square","square-vimeo"],["whatsapp-square","square-whatsapp"],["xing-square","square-xing"],["times-square","square-xmark"],["xmark-square","square-xmark"],["youtube-square","square-youtube"],["rod-asclepius","staff-snake"],["rod-snake","staff-snake"],["staff-aesculapius","staff-snake"],["star-half-alt","star-half-stroke"],["gbp","sterling-sign"],["pound-sign","sterling-sign"],["medkit","suitcase-medical"],["th","table-cells"],["th-large","table-cells-large"],["columns","table-columns"],["th-list","table-list"],["ping-pong-paddle-ball","table-tennis-paddle-ball"],["table-tennis","table-tennis-paddle-ball"],["tablet-android","tablet"],["tablet-alt","tablet-screen-button"],["digital-tachograph","tachograph-digital"],["cab","taxi"],["telegram-plane","telegram"],["temperature-down","temperature-arrow-down"],["temperature-up","temperature-arrow-up"],["temperature-0","temperature-empty"],["thermometer-0","temperature-empty"],["thermometer-empty","temperature-empty"],["temperature-4","temperature-full"],["thermometer-4","temperature-full"],["thermometer-full","temperature-full"],["temperature-2","temperature-half"],["thermometer-2","temperature-half"],["thermometer-half","temperature-half"],["temperature-1","temperature-quarter"],["thermometer-1","temperature-quarter"],["thermometer-quarter","temperature-quarter"],["temperature-3","temperature-three-quarters"],["thermometer-3","temperature-three-quarters"],["thermometer-three-quarters","temperature-three-quarters"],["tenge","tenge-sign"],["remove-format","text-slash"],["thumb-tack","thumbtack"],["ticket-alt","ticket-simple"],["broadcast-tower","tower-broadcast"],["subway","train-subway"],["transgender-alt","transgender"],["trash-restore","trash-arrow-up"],["trash-alt","trash-can"],["trash-restore-alt","trash-can-arrow-up"],["exclamation-triangle","triangle-exclamation"],["warning","triangle-exclamation"],["shipping-fast","truck-fast"],["ambulance","truck-medical"],["truck-loading","truck-ramp-box"],["teletype","tty"],["try","turkish-lira-sign"],["turkish-lira","turkish-lira-sign"],["level-down-alt","turn-down"],["level-up-alt","turn-up"],["television","tv"],["tv-alt","tv"],["unlock-alt","unlock-keyhole"],["arrows-alt-v","up-down"],["arrows-alt","up-down-left-right"],["long-arrow-alt-up","up-long"],["expand-alt","up-right-and-down-left-from-center"],["external-link-alt","up-right-from-square"],["user-md","user-doctor"],["user-cog","user-gear"],["user-friends","user-group"],["user-alt","user-large"],["user-alt-slash","user-large-slash"],["user-edit","user-pen"],["user-times","user-xmark"],["users-cog","users-gear"],["cutlery","utensils"],["shuttle-van","van-shuttle"],["video-camera","video"],["volleyball-ball","volleyball"],["volume-up","volume-high"],["volume-down","volume-low"],["volume-mute","volume-xmark"],["volume-times","volume-xmark"],["magic","wand-magic"],["magic-wand-sparkles","wand-magic-sparkles"],["ladder-water","water-ladder"],["swimming-pool","water-ladder"],["weight","weight-scale"],["wheat-alt","wheat-awn"],["wheelchair-alt","wheelchair-move"],["glass-whiskey","whiskey-glass"],["wifi-3","wifi"],["wifi-strong","wifi"],["wine-glass-alt","wine-glass-empty"],["wsh","wirsindhandwerk"],["krw","won-sign"],["won","won-sign"],["rendact","wpressr"],["close","xmark"],["multiply","xmark"],["remove","xmark"],["times","xmark"],["cny","yen-sign"],["jpy","yen-sign"],["rmb","yen-sign"],["yen","yen-sign"]] -JSON; - -$jsonHasNonSolidStyle = <<<'JSON' -[["0",false],["1",false],["2",false],["3",false],["4",false],["5",false],["6",false],["7",false],["8",false],["9",false],["42-group",false],["500px",false],["a",false],["accessible-icon",false],["accusoft",false],["address-book",true],["address-card",true],["adn",false],["adversal",false],["affiliatetheme",false],["airbnb",false],["algolia",false],["align-center",false],["align-justify",false],["align-left",false],["align-right",false],["alipay",false],["amazon",false],["amazon-pay",false],["amilia",false],["anchor",false],["anchor-circle-check",false],["anchor-circle-exclamation",false],["anchor-circle-xmark",false],["anchor-lock",false],["android",false],["angellist",false],["angle-down",false],["angle-left",false],["angle-right",false],["angle-up",false],["angles-down",false],["angles-left",false],["angles-right",false],["angles-up",false],["angrycreative",false],["angular",false],["ankh",false],["app-store",false],["app-store-ios",false],["apper",false],["apple",false],["apple-pay",false],["apple-whole",false],["archway",false],["arrow-down",false],["arrow-down-1-9",false],["arrow-down-9-1",false],["arrow-down-a-z",false],["arrow-down-long",false],["arrow-down-short-wide",false],["arrow-down-up-across-line",false],["arrow-down-up-lock",false],["arrow-down-wide-short",false],["arrow-down-z-a",false],["arrow-left",false],["arrow-left-long",false],["arrow-pointer",false],["arrow-right",false],["arrow-right-arrow-left",false],["arrow-right-from-bracket",false],["arrow-right-long",false],["arrow-right-to-bracket",false],["arrow-right-to-city",false],["arrow-rotate-left",false],["arrow-rotate-right",false],["arrow-trend-down",false],["arrow-trend-up",false],["arrow-turn-down",false],["arrow-turn-up",false],["arrow-up",false],["arrow-up-1-9",false],["arrow-up-9-1",false],["arrow-up-a-z",false],["arrow-up-from-bracket",false],["arrow-up-from-ground-water",false],["arrow-up-from-water-pump",false],["arrow-up-long",false],["arrow-up-right-dots",false],["arrow-up-right-from-square",false],["arrow-up-short-wide",false],["arrow-up-wide-short",false],["arrow-up-z-a",false],["arrows-down-to-line",false],["arrows-down-to-people",false],["arrows-left-right",false],["arrows-left-right-to-line",false],["arrows-rotate",false],["arrows-spin",false],["arrows-split-up-and-left",false],["arrows-to-circle",false],["arrows-to-dot",false],["arrows-to-eye",false],["arrows-turn-right",false],["arrows-turn-to-dots",false],["arrows-up-down",false],["arrows-up-down-left-right",false],["arrows-up-to-line",false],["artstation",false],["asterisk",false],["asymmetrik",false],["at",false],["atlassian",false],["atom",false],["audible",false],["audio-description",false],["austral-sign",false],["autoprefixer",false],["avianex",false],["aviato",false],["award",false],["aws",false],["b",false],["baby",false],["baby-carriage",false],["backward",false],["backward-fast",false],["backward-step",false],["bacon",false],["bacteria",false],["bacterium",false],["bag-shopping",false],["bahai",false],["baht-sign",false],["ban",false],["ban-smoking",false],["bandage",false],["bandcamp",false],["barcode",false],["bars",false],["bars-progress",false],["bars-staggered",false],["baseball",false],["baseball-bat-ball",false],["basket-shopping",false],["basketball",false],["bath",false],["battery-empty",false],["battery-full",false],["battery-half",false],["battery-quarter",false],["battery-three-quarters",false],["battle-net",false],["bed",false],["bed-pulse",false],["beer-mug-empty",false],["behance",false],["bell",true],["bell-concierge",false],["bell-slash",true],["bezier-curve",false],["bicycle",false],["bilibili",false],["bimobject",false],["binoculars",false],["biohazard",false],["bitbucket",false],["bitcoin",false],["bitcoin-sign",false],["bity",false],["black-tie",false],["blackberry",false],["blender",false],["blender-phone",false],["blog",false],["blogger",false],["blogger-b",false],["bluetooth",false],["bluetooth-b",false],["bold",false],["bolt",false],["bolt-lightning",false],["bomb",false],["bone",false],["bong",false],["book",false],["book-atlas",false],["book-bible",false],["book-bookmark",false],["book-journal-whills",false],["book-medical",false],["book-open",false],["book-open-reader",false],["book-quran",false],["book-skull",false],["book-tanakh",false],["bookmark",true],["bootstrap",false],["border-all",false],["border-none",false],["border-top-left",false],["bore-hole",false],["bots",false],["bottle-droplet",false],["bottle-water",false],["bowl-food",false],["bowl-rice",false],["bowling-ball",false],["box",false],["box-archive",false],["box-open",false],["box-tissue",false],["boxes-packing",false],["boxes-stacked",false],["braille",false],["brain",false],["brazilian-real-sign",false],["bread-slice",false],["bridge",false],["bridge-circle-check",false],["bridge-circle-exclamation",false],["bridge-circle-xmark",false],["bridge-lock",false],["bridge-water",false],["briefcase",false],["briefcase-medical",false],["broom",false],["broom-ball",false],["brush",false],["btc",false],["bucket",false],["buffer",false],["bug",false],["bug-slash",false],["bugs",false],["building",true],["building-circle-arrow-right",false],["building-circle-check",false],["building-circle-exclamation",false],["building-circle-xmark",false],["building-columns",false],["building-flag",false],["building-lock",false],["building-ngo",false],["building-shield",false],["building-un",false],["building-user",false],["building-wheat",false],["bullhorn",false],["bullseye",false],["burger",false],["buromobelexperte",false],["burst",false],["bus",false],["bus-simple",false],["business-time",false],["buy-n-large",false],["buysellads",false],["c",false],["cable-car",false],["cake-candles",false],["calculator",false],["calendar",true],["calendar-check",true],["calendar-day",false],["calendar-days",true],["calendar-minus",true],["calendar-plus",true],["calendar-week",false],["calendar-xmark",true],["camera",false],["camera-retro",false],["camera-rotate",false],["campground",false],["canadian-maple-leaf",false],["candy-cane",false],["cannabis",false],["capsules",false],["car",false],["car-battery",false],["car-burst",false],["car-on",false],["car-rear",false],["car-side",false],["car-tunnel",false],["caravan",false],["caret-down",false],["caret-left",false],["caret-right",false],["caret-up",false],["carrot",false],["cart-arrow-down",false],["cart-flatbed",false],["cart-flatbed-suitcase",false],["cart-plus",false],["cart-shopping",false],["cash-register",false],["cat",false],["cc-amazon-pay",false],["cc-amex",false],["cc-apple-pay",false],["cc-diners-club",false],["cc-discover",false],["cc-jcb",false],["cc-mastercard",false],["cc-paypal",false],["cc-stripe",false],["cc-visa",false],["cedi-sign",false],["cent-sign",false],["centercode",false],["centos",false],["certificate",false],["chair",false],["chalkboard",false],["chalkboard-user",false],["champagne-glasses",false],["charging-station",false],["chart-area",false],["chart-bar",true],["chart-column",false],["chart-gantt",false],["chart-line",false],["chart-pie",false],["chart-simple",false],["check",false],["check-double",false],["check-to-slot",false],["cheese",false],["chess",false],["chess-bishop",true],["chess-board",false],["chess-king",true],["chess-knight",true],["chess-pawn",true],["chess-queen",true],["chess-rook",true],["chevron-down",false],["chevron-left",false],["chevron-right",false],["chevron-up",false],["child",false],["child-dress",false],["child-reaching",false],["child-rifle",false],["children",false],["chrome",false],["chromecast",false],["church",false],["circle",true],["circle-arrow-down",false],["circle-arrow-left",false],["circle-arrow-right",false],["circle-arrow-up",false],["circle-check",true],["circle-chevron-down",false],["circle-chevron-left",false],["circle-chevron-right",false],["circle-chevron-up",false],["circle-dollar-to-slot",false],["circle-dot",true],["circle-down",true],["circle-exclamation",false],["circle-h",false],["circle-half-stroke",false],["circle-info",false],["circle-left",true],["circle-minus",false],["circle-nodes",false],["circle-notch",false],["circle-pause",true],["circle-play",true],["circle-plus",false],["circle-question",true],["circle-radiation",false],["circle-right",true],["circle-stop",true],["circle-up",true],["circle-user",true],["circle-xmark",true],["city",false],["clapperboard",false],["clipboard",true],["clipboard-check",false],["clipboard-list",false],["clipboard-question",false],["clipboard-user",false],["clock",true],["clock-rotate-left",false],["clone",true],["closed-captioning",true],["cloud",false],["cloud-arrow-down",false],["cloud-arrow-up",false],["cloud-bolt",false],["cloud-meatball",false],["cloud-moon",false],["cloud-moon-rain",false],["cloud-rain",false],["cloud-showers-heavy",false],["cloud-showers-water",false],["cloud-sun",false],["cloud-sun-rain",false],["cloudflare",false],["cloudscale",false],["cloudsmith",false],["cloudversify",false],["clover",false],["cmplid",false],["code",false],["code-branch",false],["code-commit",false],["code-compare",false],["code-fork",false],["code-merge",false],["code-pull-request",false],["codepen",false],["codiepie",false],["coins",false],["colon-sign",false],["comment",true],["comment-dollar",false],["comment-dots",true],["comment-medical",false],["comment-slash",false],["comment-sms",false],["comments",true],["comments-dollar",false],["compact-disc",false],["compass",true],["compass-drafting",false],["compress",false],["computer",false],["computer-mouse",false],["confluence",false],["connectdevelop",false],["contao",false],["cookie",false],["cookie-bite",false],["copy",true],["copyright",true],["cotton-bureau",false],["couch",false],["cow",false],["cpanel",false],["creative-commons",false],["creative-commons-by",false],["creative-commons-nc",false],["creative-commons-nc-eu",false],["creative-commons-nc-jp",false],["creative-commons-nd",false],["creative-commons-pd",false],["creative-commons-pd-alt",false],["creative-commons-remix",false],["creative-commons-sa",false],["creative-commons-sampling",false],["creative-commons-sampling-plus",false],["creative-commons-share",false],["creative-commons-zero",false],["credit-card",true],["critical-role",false],["crop",false],["crop-simple",false],["cross",false],["crosshairs",false],["crow",false],["crown",false],["crutch",false],["cruzeiro-sign",false],["css3",false],["css3-alt",false],["cube",false],["cubes",false],["cubes-stacked",false],["cuttlefish",false],["d",false],["d-and-d",false],["d-and-d-beyond",false],["dailymotion",false],["dashcube",false],["database",false],["deezer",false],["delete-left",false],["delicious",false],["democrat",false],["deploydog",false],["deskpro",false],["desktop",false],["dev",false],["deviantart",false],["dharmachakra",false],["dhl",false],["diagram-next",false],["diagram-predecessor",false],["diagram-project",false],["diagram-successor",false],["diamond",false],["diamond-turn-right",false],["diaspora",false],["dice",false],["dice-d20",false],["dice-d6",false],["dice-five",false],["dice-four",false],["dice-one",false],["dice-six",false],["dice-three",false],["dice-two",false],["digg",false],["digital-ocean",false],["discord",false],["discourse",false],["disease",false],["display",false],["divide",false],["dna",false],["dochub",false],["docker",false],["dog",false],["dollar-sign",false],["dolly",false],["dong-sign",false],["door-closed",false],["door-open",false],["dove",false],["down-left-and-up-right-to-center",false],["down-long",false],["download",false],["draft2digital",false],["dragon",false],["draw-polygon",false],["dribbble",false],["dropbox",false],["droplet",false],["droplet-slash",false],["drum",false],["drum-steelpan",false],["drumstick-bite",false],["drupal",false],["dumbbell",false],["dumpster",false],["dumpster-fire",false],["dungeon",false],["dyalog",false],["e",false],["ear-deaf",false],["ear-listen",false],["earlybirds",false],["earth-africa",false],["earth-americas",false],["earth-asia",false],["earth-europe",false],["earth-oceania",false],["ebay",false],["edge",false],["edge-legacy",false],["egg",false],["eject",false],["elementor",false],["elevator",false],["ellipsis",false],["ellipsis-vertical",false],["ello",false],["ember",false],["empire",false],["envelope",true],["envelope-circle-check",false],["envelope-open",true],["envelope-open-text",false],["envelopes-bulk",false],["envira",false],["equals",false],["eraser",false],["erlang",false],["ethereum",false],["ethernet",false],["etsy",false],["euro-sign",false],["evernote",false],["exclamation",false],["expand",false],["expeditedssl",false],["explosion",false],["eye",true],["eye-dropper",false],["eye-low-vision",false],["eye-slash",true],["f",false],["face-angry",true],["face-dizzy",true],["face-flushed",true],["face-frown",true],["face-frown-open",true],["face-grimace",true],["face-grin",true],["face-grin-beam",true],["face-grin-beam-sweat",true],["face-grin-hearts",true],["face-grin-squint",true],["face-grin-squint-tears",true],["face-grin-stars",true],["face-grin-tears",true],["face-grin-tongue",true],["face-grin-tongue-squint",true],["face-grin-tongue-wink",true],["face-grin-wide",true],["face-grin-wink",true],["face-kiss",true],["face-kiss-beam",true],["face-kiss-wink-heart",true],["face-laugh",true],["face-laugh-beam",true],["face-laugh-squint",true],["face-laugh-wink",true],["face-meh",true],["face-meh-blank",true],["face-rolling-eyes",true],["face-sad-cry",true],["face-sad-tear",true],["face-smile",true],["face-smile-beam",true],["face-smile-wink",true],["face-surprise",true],["face-tired",true],["facebook",false],["facebook-f",false],["facebook-messenger",false],["fan",false],["fantasy-flight-games",false],["faucet",false],["faucet-drip",false],["fax",false],["feather",false],["feather-pointed",false],["fedex",false],["fedora",false],["ferry",false],["figma",false],["file",true],["file-arrow-down",false],["file-arrow-up",false],["file-audio",true],["file-circle-check",false],["file-circle-exclamation",false],["file-circle-minus",false],["file-circle-plus",false],["file-circle-question",false],["file-circle-xmark",false],["file-code",true],["file-contract",false],["file-csv",false],["file-excel",true],["file-export",false],["file-image",true],["file-import",false],["file-invoice",false],["file-invoice-dollar",false],["file-lines",true],["file-medical",false],["file-pdf",true],["file-pen",false],["file-powerpoint",true],["file-prescription",false],["file-shield",false],["file-signature",false],["file-video",true],["file-waveform",false],["file-word",true],["file-zipper",true],["fill",false],["fill-drip",false],["film",false],["filter",false],["filter-circle-dollar",false],["filter-circle-xmark",false],["fingerprint",false],["fire",false],["fire-burner",false],["fire-extinguisher",false],["fire-flame-curved",false],["fire-flame-simple",false],["firefox",false],["firefox-browser",false],["first-order",false],["first-order-alt",false],["firstdraft",false],["fish",false],["fish-fins",false],["flag",true],["flag-checkered",false],["flag-usa",false],["flask",false],["flask-vial",false],["flickr",false],["flipboard",false],["floppy-disk",true],["florin-sign",false],["fly",false],["folder",true],["folder-closed",true],["folder-minus",false],["folder-open",true],["folder-plus",false],["folder-tree",false],["font",false],["font-awesome",true],["fonticons",false],["fonticons-fi",false],["football",false],["fort-awesome",false],["fort-awesome-alt",false],["forumbee",false],["forward",false],["forward-fast",false],["forward-step",false],["foursquare",false],["franc-sign",false],["free-code-camp",false],["freebsd",false],["frog",false],["fulcrum",false],["futbol",true],["g",false],["galactic-republic",false],["galactic-senate",false],["gamepad",false],["gas-pump",false],["gauge",false],["gauge-high",false],["gauge-simple",false],["gauge-simple-high",false],["gavel",false],["gear",false],["gears",false],["gem",true],["genderless",false],["get-pocket",false],["gg",false],["gg-circle",false],["ghost",false],["gift",false],["gifts",false],["git",false],["git-alt",false],["github",false],["github-alt",false],["gitkraken",false],["gitlab",false],["gitter",false],["glass-water",false],["glass-water-droplet",false],["glasses",false],["glide",false],["glide-g",false],["globe",false],["gofore",false],["golang",false],["golf-ball-tee",false],["goodreads",false],["goodreads-g",false],["google",false],["google-drive",false],["google-pay",false],["google-play",false],["google-plus",false],["google-plus-g",false],["google-wallet",false],["gopuram",false],["graduation-cap",false],["gratipay",false],["grav",false],["greater-than",false],["greater-than-equal",false],["grip",false],["grip-lines",false],["grip-lines-vertical",false],["grip-vertical",false],["gripfire",false],["group-arrows-rotate",false],["grunt",false],["guarani-sign",false],["guilded",false],["guitar",false],["gulp",false],["gun",false],["h",false],["hacker-news",false],["hackerrank",false],["hammer",false],["hamsa",false],["hand",true],["hand-back-fist",true],["hand-dots",false],["hand-fist",false],["hand-holding",false],["hand-holding-dollar",false],["hand-holding-droplet",false],["hand-holding-hand",false],["hand-holding-heart",false],["hand-holding-medical",false],["hand-lizard",true],["hand-middle-finger",false],["hand-peace",true],["hand-point-down",true],["hand-point-left",true],["hand-point-right",true],["hand-point-up",true],["hand-pointer",true],["hand-scissors",true],["hand-sparkles",false],["hand-spock",true],["handcuffs",false],["hands",false],["hands-asl-interpreting",false],["hands-bound",false],["hands-bubbles",false],["hands-clapping",false],["hands-holding",false],["hands-holding-child",false],["hands-holding-circle",false],["hands-praying",false],["handshake",true],["handshake-angle",false],["handshake-simple",false],["handshake-simple-slash",false],["handshake-slash",false],["hanukiah",false],["hard-drive",true],["hashnode",false],["hashtag",false],["hat-cowboy",false],["hat-cowboy-side",false],["hat-wizard",false],["head-side-cough",false],["head-side-cough-slash",false],["head-side-mask",false],["head-side-virus",false],["heading",false],["headphones",false],["headphones-simple",false],["headset",false],["heart",true],["heart-circle-bolt",false],["heart-circle-check",false],["heart-circle-exclamation",false],["heart-circle-minus",false],["heart-circle-plus",false],["heart-circle-xmark",false],["heart-crack",false],["heart-pulse",false],["helicopter",false],["helicopter-symbol",false],["helmet-safety",false],["helmet-un",false],["highlighter",false],["hill-avalanche",false],["hill-rockslide",false],["hippo",false],["hips",false],["hire-a-helper",false],["hive",false],["hockey-puck",false],["holly-berry",false],["hooli",false],["hornbill",false],["horse",false],["horse-head",false],["hospital",true],["hospital-user",false],["hot-tub-person",false],["hotdog",false],["hotel",false],["hotjar",false],["hourglass",true],["hourglass-end",false],["hourglass-half",true],["hourglass-start",false],["house",false],["house-chimney",false],["house-chimney-crack",false],["house-chimney-medical",false],["house-chimney-user",false],["house-chimney-window",false],["house-circle-check",false],["house-circle-exclamation",false],["house-circle-xmark",false],["house-crack",false],["house-fire",false],["house-flag",false],["house-flood-water",false],["house-flood-water-circle-arrow-right",false],["house-laptop",false],["house-lock",false],["house-medical",false],["house-medical-circle-check",false],["house-medical-circle-exclamation",false],["house-medical-circle-xmark",false],["house-medical-flag",false],["house-signal",false],["house-tsunami",false],["house-user",false],["houzz",false],["hryvnia-sign",false],["html5",false],["hubspot",false],["hurricane",false],["i",false],["i-cursor",false],["ice-cream",false],["icicles",false],["icons",false],["id-badge",true],["id-card",true],["id-card-clip",false],["ideal",false],["igloo",false],["image",true],["image-portrait",false],["images",true],["imdb",false],["inbox",false],["indent",false],["indian-rupee-sign",false],["industry",false],["infinity",false],["info",false],["instagram",false],["instalod",false],["intercom",false],["internet-explorer",false],["invision",false],["ioxhost",false],["italic",false],["itch-io",false],["itunes",false],["itunes-note",false],["j",false],["jar",false],["jar-wheat",false],["java",false],["jedi",false],["jedi-order",false],["jenkins",false],["jet-fighter",false],["jet-fighter-up",false],["jira",false],["joget",false],["joint",false],["joomla",false],["js",false],["jsfiddle",false],["jug-detergent",false],["k",false],["kaaba",false],["kaggle",false],["key",false],["keybase",false],["keyboard",true],["keycdn",false],["khanda",false],["kickstarter",false],["kickstarter-k",false],["kip-sign",false],["kit-medical",false],["kitchen-set",false],["kiwi-bird",false],["korvue",false],["l",false],["land-mine-on",false],["landmark",false],["landmark-dome",false],["landmark-flag",false],["language",false],["laptop",false],["laptop-code",false],["laptop-file",false],["laptop-medical",false],["laravel",false],["lari-sign",false],["lastfm",false],["layer-group",false],["leaf",false],["leanpub",false],["left-long",false],["left-right",false],["lemon",true],["less",false],["less-than",false],["less-than-equal",false],["life-ring",true],["lightbulb",true],["line",false],["lines-leaning",false],["link",false],["link-slash",false],["linkedin",false],["linkedin-in",false],["linode",false],["linux",false],["lira-sign",false],["list",false],["list-check",false],["list-ol",false],["list-ul",false],["litecoin-sign",false],["location-arrow",false],["location-crosshairs",false],["location-dot",false],["location-pin",false],["location-pin-lock",false],["lock",false],["lock-open",false],["locust",false],["lungs",false],["lungs-virus",false],["lyft",false],["m",false],["magento",false],["magnet",false],["magnifying-glass",false],["magnifying-glass-arrow-right",false],["magnifying-glass-chart",false],["magnifying-glass-dollar",false],["magnifying-glass-location",false],["magnifying-glass-minus",false],["magnifying-glass-plus",false],["mailchimp",false],["manat-sign",false],["mandalorian",false],["map",true],["map-location",false],["map-location-dot",false],["map-pin",false],["markdown",false],["marker",false],["mars",false],["mars-and-venus",false],["mars-and-venus-burst",false],["mars-double",false],["mars-stroke",false],["mars-stroke-right",false],["mars-stroke-up",false],["martini-glass",false],["martini-glass-citrus",false],["martini-glass-empty",false],["mask",false],["mask-face",false],["mask-ventilator",false],["masks-theater",false],["mastodon",false],["mattress-pillow",false],["maxcdn",false],["maximize",false],["mdb",false],["medal",false],["medapps",false],["medium",false],["medrt",false],["meetup",false],["megaport",false],["memory",false],["mendeley",false],["menorah",false],["mercury",false],["message",true],["meta",false],["meteor",false],["microblog",false],["microchip",false],["microphone",false],["microphone-lines",false],["microphone-lines-slash",false],["microphone-slash",false],["microscope",false],["microsoft",false],["mill-sign",false],["minimize",false],["minus",false],["mitten",false],["mix",false],["mixcloud",false],["mixer",false],["mizuni",false],["mobile",false],["mobile-button",false],["mobile-retro",false],["mobile-screen",false],["mobile-screen-button",false],["modx",false],["monero",false],["money-bill",false],["money-bill-1",true],["money-bill-1-wave",false],["money-bill-transfer",false],["money-bill-trend-up",false],["money-bill-wave",false],["money-bill-wheat",false],["money-bills",false],["money-check",false],["money-check-dollar",false],["monument",false],["moon",true],["mortar-pestle",false],["mosque",false],["mosquito",false],["mosquito-net",false],["motorcycle",false],["mound",false],["mountain",false],["mountain-city",false],["mountain-sun",false],["mug-hot",false],["mug-saucer",false],["music",false],["n",false],["naira-sign",false],["napster",false],["neos",false],["network-wired",false],["neuter",false],["newspaper",true],["nfc-directional",false],["nfc-symbol",false],["nimblr",false],["node",false],["node-js",false],["not-equal",false],["notdef",true],["note-sticky",true],["notes-medical",false],["npm",false],["ns8",false],["nutritionix",false],["o",false],["object-group",true],["object-ungroup",true],["octopus-deploy",false],["odnoklassniki",false],["oil-can",false],["oil-well",false],["old-republic",false],["om",false],["opencart",false],["openid",false],["opera",false],["optin-monster",false],["orcid",false],["osi",false],["otter",false],["outdent",false],["p",false],["padlet",false],["page4",false],["pagelines",false],["pager",false],["paint-roller",false],["paintbrush",false],["palette",false],["palfed",false],["pallet",false],["panorama",false],["paper-plane",true],["paperclip",false],["parachute-box",false],["paragraph",false],["passport",false],["paste",true],["patreon",false],["pause",false],["paw",false],["paypal",false],["peace",false],["pen",false],["pen-clip",false],["pen-fancy",false],["pen-nib",false],["pen-ruler",false],["pen-to-square",true],["pencil",false],["people-arrows",false],["people-carry-box",false],["people-group",false],["people-line",false],["people-pulling",false],["people-robbery",false],["people-roof",false],["pepper-hot",false],["perbyte",false],["percent",false],["periscope",false],["person",false],["person-arrow-down-to-line",false],["person-arrow-up-from-line",false],["person-biking",false],["person-booth",false],["person-breastfeeding",false],["person-burst",false],["person-cane",false],["person-chalkboard",false],["person-circle-check",false],["person-circle-exclamation",false],["person-circle-minus",false],["person-circle-plus",false],["person-circle-question",false],["person-circle-xmark",false],["person-digging",false],["person-dots-from-line",false],["person-dress",false],["person-dress-burst",false],["person-drowning",false],["person-falling",false],["person-falling-burst",false],["person-half-dress",false],["person-harassing",false],["person-hiking",false],["person-military-pointing",false],["person-military-rifle",false],["person-military-to-person",false],["person-praying",false],["person-pregnant",false],["person-rays",false],["person-rifle",false],["person-running",false],["person-shelter",false],["person-skating",false],["person-skiing",false],["person-skiing-nordic",false],["person-snowboarding",false],["person-swimming",false],["person-through-window",false],["person-walking",false],["person-walking-arrow-loop-left",false],["person-walking-arrow-right",false],["person-walking-dashed-line-arrow-right",false],["person-walking-luggage",false],["person-walking-with-cane",false],["peseta-sign",false],["peso-sign",false],["phabricator",false],["phoenix-framework",false],["phoenix-squadron",false],["phone",false],["phone-flip",false],["phone-slash",false],["phone-volume",false],["photo-film",false],["php",false],["pied-piper",false],["pied-piper-alt",false],["pied-piper-hat",false],["pied-piper-pp",false],["piggy-bank",false],["pills",false],["pinterest",false],["pinterest-p",false],["pix",false],["pizza-slice",false],["place-of-worship",false],["plane",false],["plane-arrival",false],["plane-circle-check",false],["plane-circle-exclamation",false],["plane-circle-xmark",false],["plane-departure",false],["plane-lock",false],["plane-slash",false],["plane-up",false],["plant-wilt",false],["plate-wheat",false],["play",false],["playstation",false],["plug",false],["plug-circle-bolt",false],["plug-circle-check",false],["plug-circle-exclamation",false],["plug-circle-minus",false],["plug-circle-plus",false],["plug-circle-xmark",false],["plus",false],["plus-minus",false],["podcast",false],["poo",false],["poo-storm",false],["poop",false],["power-off",false],["prescription",false],["prescription-bottle",false],["prescription-bottle-medical",false],["print",false],["product-hunt",false],["pump-medical",false],["pump-soap",false],["pushed",false],["puzzle-piece",false],["python",false],["q",false],["qq",false],["qrcode",false],["question",false],["quinscape",false],["quora",false],["quote-left",false],["quote-right",false],["r",false],["r-project",false],["radiation",false],["radio",false],["rainbow",false],["ranking-star",false],["raspberry-pi",false],["ravelry",false],["react",false],["reacteurope",false],["readme",false],["rebel",false],["receipt",false],["record-vinyl",false],["rectangle-ad",false],["rectangle-list",true],["rectangle-xmark",true],["recycle",false],["red-river",false],["reddit",false],["reddit-alien",false],["redhat",false],["registered",true],["renren",false],["repeat",false],["reply",false],["reply-all",false],["replyd",false],["republican",false],["researchgate",false],["resolving",false],["restroom",false],["retweet",false],["rev",false],["ribbon",false],["right-from-bracket",false],["right-left",false],["right-long",false],["right-to-bracket",false],["ring",false],["road",false],["road-barrier",false],["road-bridge",false],["road-circle-check",false],["road-circle-exclamation",false],["road-circle-xmark",false],["road-lock",false],["road-spikes",false],["robot",false],["rocket",false],["rocketchat",false],["rockrms",false],["rotate",false],["rotate-left",false],["rotate-right",false],["route",false],["rss",false],["ruble-sign",false],["rug",false],["ruler",false],["ruler-combined",false],["ruler-horizontal",false],["ruler-vertical",false],["rupee-sign",false],["rupiah-sign",false],["rust",false],["s",false],["sack-dollar",false],["sack-xmark",false],["safari",false],["sailboat",false],["salesforce",false],["sass",false],["satellite",false],["satellite-dish",false],["scale-balanced",false],["scale-unbalanced",false],["scale-unbalanced-flip",false],["schlix",false],["school",false],["school-circle-check",false],["school-circle-exclamation",false],["school-circle-xmark",false],["school-flag",false],["school-lock",false],["scissors",false],["screenpal",false],["screwdriver",false],["screwdriver-wrench",false],["scribd",false],["scroll",false],["scroll-torah",false],["sd-card",false],["searchengin",false],["section",false],["seedling",false],["sellcast",false],["sellsy",false],["server",false],["servicestack",false],["shapes",false],["share",false],["share-from-square",true],["share-nodes",false],["sheet-plastic",false],["shekel-sign",false],["shield",false],["shield-cat",false],["shield-dog",false],["shield-halved",false],["shield-heart",false],["shield-virus",false],["ship",false],["shirt",false],["shirtsinbulk",false],["shoe-prints",false],["shop",false],["shop-lock",false],["shop-slash",false],["shopify",false],["shopware",false],["shower",false],["shrimp",false],["shuffle",false],["shuttle-space",false],["sign-hanging",false],["signal",false],["signature",false],["signs-post",false],["sim-card",false],["simplybuilt",false],["sink",false],["sistrix",false],["sitemap",false],["sith",false],["sitrox",false],["sketch",false],["skull",false],["skull-crossbones",false],["skyatlas",false],["skype",false],["slack",false],["slash",false],["sleigh",false],["sliders",false],["slideshare",false],["smog",false],["smoking",false],["snapchat",false],["snowflake",true],["snowman",false],["snowplow",false],["soap",false],["socks",false],["solar-panel",false],["sort",false],["sort-down",false],["sort-up",false],["soundcloud",false],["sourcetree",false],["spa",false],["space-awesome",false],["spaghetti-monster-flying",false],["speakap",false],["speaker-deck",false],["spell-check",false],["spider",false],["spinner",false],["splotch",false],["spoon",false],["spotify",false],["spray-can",false],["spray-can-sparkles",false],["square",true],["square-arrow-up-right",false],["square-behance",false],["square-caret-down",true],["square-caret-left",true],["square-caret-right",true],["square-caret-up",true],["square-check",true],["square-dribbble",false],["square-envelope",false],["square-facebook",false],["square-font-awesome",false],["square-font-awesome-stroke",false],["square-full",true],["square-git",false],["square-github",false],["square-gitlab",false],["square-google-plus",false],["square-h",false],["square-hacker-news",false],["square-instagram",false],["square-js",false],["square-lastfm",false],["square-minus",true],["square-nfi",false],["square-odnoklassniki",false],["square-parking",false],["square-pen",false],["square-person-confined",false],["square-phone",false],["square-phone-flip",false],["square-pied-piper",false],["square-pinterest",false],["square-plus",true],["square-poll-horizontal",false],["square-poll-vertical",false],["square-reddit",false],["square-root-variable",false],["square-rss",false],["square-share-nodes",false],["square-snapchat",false],["square-steam",false],["square-tumblr",false],["square-twitter",false],["square-up-right",false],["square-viadeo",false],["square-vimeo",false],["square-virus",false],["square-whatsapp",false],["square-xing",false],["square-xmark",false],["square-youtube",false],["squarespace",false],["stack-exchange",false],["stack-overflow",false],["stackpath",false],["staff-snake",false],["stairs",false],["stamp",false],["stapler",false],["star",true],["star-and-crescent",false],["star-half",true],["star-half-stroke",true],["star-of-david",false],["star-of-life",false],["staylinked",false],["steam",false],["steam-symbol",false],["sterling-sign",false],["stethoscope",false],["sticker-mule",false],["stop",false],["stopwatch",false],["stopwatch-20",false],["store",false],["store-slash",false],["strava",false],["street-view",false],["strikethrough",false],["stripe",false],["stripe-s",false],["stroopwafel",false],["studiovinari",false],["stumbleupon",false],["stumbleupon-circle",false],["subscript",false],["suitcase",false],["suitcase-medical",false],["suitcase-rolling",false],["sun",true],["sun-plant-wilt",false],["superpowers",false],["superscript",false],["supple",false],["suse",false],["swatchbook",false],["swift",false],["symfony",false],["synagogue",false],["syringe",false],["t",false],["table",false],["table-cells",false],["table-cells-large",false],["table-columns",false],["table-list",false],["table-tennis-paddle-ball",false],["tablet",false],["tablet-button",false],["tablet-screen-button",false],["tablets",false],["tachograph-digital",false],["tag",false],["tags",false],["tape",false],["tarp",false],["tarp-droplet",false],["taxi",false],["teamspeak",false],["teeth",false],["teeth-open",false],["telegram",false],["temperature-arrow-down",false],["temperature-arrow-up",false],["temperature-empty",false],["temperature-full",false],["temperature-half",false],["temperature-high",false],["temperature-low",false],["temperature-quarter",false],["temperature-three-quarters",false],["tencent-weibo",false],["tenge-sign",false],["tent",false],["tent-arrow-down-to-line",false],["tent-arrow-left-right",false],["tent-arrow-turn-left",false],["tent-arrows-down",false],["tents",false],["terminal",false],["text-height",false],["text-slash",false],["text-width",false],["the-red-yeti",false],["themeco",false],["themeisle",false],["thermometer",false],["think-peaks",false],["thumbs-down",true],["thumbs-up",true],["thumbtack",false],["ticket",false],["ticket-simple",false],["tiktok",false],["timeline",false],["toggle-off",false],["toggle-on",false],["toilet",false],["toilet-paper",false],["toilet-paper-slash",false],["toilet-portable",false],["toilets-portable",false],["toolbox",false],["tooth",false],["torii-gate",false],["tornado",false],["tower-broadcast",false],["tower-cell",false],["tower-observation",false],["tractor",false],["trade-federation",false],["trademark",false],["traffic-light",false],["trailer",false],["train",false],["train-subway",false],["train-tram",false],["transgender",false],["trash",false],["trash-arrow-up",false],["trash-can",true],["trash-can-arrow-up",false],["tree",false],["tree-city",false],["trello",false],["triangle-exclamation",false],["trophy",false],["trowel",false],["trowel-bricks",false],["truck",false],["truck-arrow-right",false],["truck-droplet",false],["truck-fast",false],["truck-field",false],["truck-field-un",false],["truck-front",false],["truck-medical",false],["truck-monster",false],["truck-moving",false],["truck-pickup",false],["truck-plane",false],["truck-ramp-box",false],["tty",false],["tumblr",false],["turkish-lira-sign",false],["turn-down",false],["turn-up",false],["tv",false],["twitch",false],["twitter",false],["typo3",false],["u",false],["uber",false],["ubuntu",false],["uikit",false],["umbraco",false],["umbrella",false],["umbrella-beach",false],["uncharted",false],["underline",false],["uniregistry",false],["unity",false],["universal-access",false],["unlock",false],["unlock-keyhole",false],["unsplash",false],["untappd",false],["up-down",false],["up-down-left-right",false],["up-long",false],["up-right-and-down-left-from-center",false],["up-right-from-square",false],["upload",false],["ups",false],["usb",false],["user",true],["user-astronaut",false],["user-check",false],["user-clock",false],["user-doctor",false],["user-gear",false],["user-graduate",false],["user-group",false],["user-injured",false],["user-large",false],["user-large-slash",false],["user-lock",false],["user-minus",false],["user-ninja",false],["user-nurse",false],["user-pen",false],["user-plus",false],["user-secret",false],["user-shield",false],["user-slash",false],["user-tag",false],["user-tie",false],["user-xmark",false],["users",false],["users-between-lines",false],["users-gear",false],["users-line",false],["users-rays",false],["users-rectangle",false],["users-slash",false],["users-viewfinder",false],["usps",false],["ussunnah",false],["utensils",false],["v",false],["vaadin",false],["van-shuttle",false],["vault",false],["vector-square",false],["venus",false],["venus-double",false],["venus-mars",false],["vest",false],["vest-patches",false],["viacoin",false],["viadeo",false],["vial",false],["vial-circle-check",false],["vial-virus",false],["vials",false],["viber",false],["video",false],["video-slash",false],["vihara",false],["vimeo",false],["vimeo-v",false],["vine",false],["virus",false],["virus-covid",false],["virus-covid-slash",false],["virus-slash",false],["viruses",false],["vk",false],["vnv",false],["voicemail",false],["volcano",false],["volleyball",false],["volume-high",false],["volume-low",false],["volume-off",false],["volume-xmark",false],["vr-cardboard",false],["vuejs",false],["w",false],["walkie-talkie",false],["wallet",false],["wand-magic",false],["wand-magic-sparkles",false],["wand-sparkles",false],["warehouse",false],["watchman-monitoring",false],["water",false],["water-ladder",false],["wave-square",false],["waze",false],["weebly",false],["weibo",false],["weight-hanging",false],["weight-scale",false],["weixin",false],["whatsapp",false],["wheat-awn",false],["wheat-awn-circle-exclamation",false],["wheelchair",false],["wheelchair-move",false],["whiskey-glass",false],["whmcs",false],["wifi",false],["wikipedia-w",false],["wind",false],["window-maximize",true],["window-minimize",true],["window-restore",true],["windows",false],["wine-bottle",false],["wine-glass",false],["wine-glass-empty",false],["wirsindhandwerk",false],["wix",false],["wizards-of-the-coast",false],["wodu",false],["wolf-pack-battalion",false],["won-sign",false],["wordpress",false],["wordpress-simple",false],["worm",false],["wpbeginner",false],["wpexplorer",false],["wpforms",false],["wpressr",false],["wrench",false],["x",false],["x-ray",false],["xbox",false],["xing",false],["xmark",false],["xmarks-lines",false],["y",false],["y-combinator",false],["yahoo",false],["yammer",false],["yandex",false],["yandex-international",false],["yarn",false],["yelp",false],["yen-sign",false],["yin-yang",false],["yoast",false],["youtube",false],["z",false],["zhihu",false]] -JSON; - -$iconShim = json_decode($jsonMigrate, true); - -$tmp = json_decode($jsonAliases, true); -$aliases = []; -foreach ($tmp as $iconAlias) { - [$alias, $name] = $iconAlias; - $aliases[$alias] = $name; -} - -$tmp = json_decode($jsonHasNonSolidStyle, true); -$hasNonSolidStyle = []; -foreach ($tmp as $styleData) { - [$name, $hasNonSolid] = $styleData; - $hasNonSolidStyle[$name] = $hasNonSolid; -} - -$knownSizes = [16, 24, 32, 48, 64, 96, 128, 144]; - -function replaceInFiles(string $path): int -{ - $targetFilenames = ['js', 'tpl', 'ts']; - - $directory = new RecursiveDirectoryIterator($path); - $filter = new RecursiveCallbackFilterIterator( - $directory, - function (SplFileInfo $current, string $key, RecursiveDirectoryIterator $iterator) use ($targetFilenames) { - $filename = $current->getFilename(); - if ($filename === '.' || $filename === '..') { - return false; - } - - if ($current->isDir()) { - return true; - } - - $fileExtension = pathinfo($filename, PATHINFO_EXTENSION); - return in_array($fileExtension, $targetFilenames); - } - ); - - $updatedFiles = 0; - - $iterator = new RecursiveIteratorIterator($filter); - foreach ($iterator as $fileInfo) { - \assert($fileInfo instanceof SplFileInfo); - if (replaceIcons($fileInfo->getPathname())) { - $updatedFiles++; - } - } - - return $updatedFiles; -} - -function replaceIcons(string $filename): bool -{ - global $aliases, $hasNonSolidStyle, $iconShim, $knownSizes; - - $fileExtension = pathinfo($filename, PATHINFO_EXTENSION); - $content = file_get_contents($filename); - - $content = preg_replace_callback( - '~~', - function (array $matches) use ($aliases, $hasNonSolidStyle, $fileExtension, $iconShim, $knownSizes): string { - [ - 'name' => $name, - 'size' => $size, - ] = $matches; - - if (!in_array($size, $knownSizes)) { - return $matches[0]; - } - - if (isset($iconShim[$name])) { - [ - 'name' => $newIconName, - 'type' => $type, - ] = $iconShim[$name]; - - // The regular user icon is used for consistency. - if ($name === 'user') { - $type = 'regular'; - } - } else { - // Not all icons are renamed. - $newIconName = $name; - $type = 'solid'; - } - - if (isset($aliases[$newIconName])) { - $newIconName = $aliases[$newIconName]; - } - - // If the icon only ships in `solid` style then we can safely - // use any other variant too. The `solid` style is therefore - // only enforced when there is a non-solid variant too. - if ($type === 'solid' && $newIconName !== 'caret-down' && !$hasNonSolidStyle[$newIconName]) { - $type = 'regular'; - } - - if ($fileExtension === 'tpl') { - return getNewTemplateIcon($newIconName, $size, $type); - } else { - // Brand icons can only be set through the `{icon}` helper. - if ($type === 'brand') { - return $matches[0]; - } - - return getNewJavascriptIcon($newIconName, $size, $type); - } - }, - $content, - -1, - $count - ); - - if ($count > 0) { - file_put_contents($filename, $content); - return true; - } - - return false; -} - -function getNewTemplateIcon(string $name, int $size, string $type): string -{ - $sizeAttribute = ($size === 16) ? '' : "size={$size} "; - if ($type === 'regular') { - return "{icon {$sizeAttribute}name='{$name}'}"; - } - - return "{icon {$sizeAttribute}name='{$name}' type='{$type}'}"; -} - -function getNewJavascriptIcon(string $name, int $size, string $type): string -{ - $sizeAttribute = ($size === 16) ? '' : sprintf('size="%d" ', $size); - if ($type === 'regular') { - return << - HTML; - } - - return << - HTML; -} - -if ($argc !== 2) { - echo "ERROR: Expected a single argument to the directory that should be used to recursively replace icons.\n"; - exit(1); -} - -$directory = realpath($argv[1]); -if (!is_dir($directory)) { - echo "ERROR: The provided directory does not exist or is not accessible.\n"; - exit(1); -} - -$replacedFiles = replaceInFiles($directory); -echo "Replaced {$replacedFiles} files.\n"; diff --git a/wcfsetup/install/files/lib/system/style/FontAwesomeIcon.class.php b/wcfsetup/install/files/lib/system/style/FontAwesomeIcon.class.php index a0ef6fbd79..6d67224585 100644 --- a/wcfsetup/install/files/lib/system/style/FontAwesomeIcon.class.php +++ b/wcfsetup/install/files/lib/system/style/FontAwesomeIcon.class.php @@ -125,74 +125,4 @@ final class FontAwesomeIcon implements IFontAwesomeIcon, \Stringable throw new UnknownIcon($name); } } - - /** - * Maps a legacy FontAwesome 4 icon. Returns a string that may be passed - * into self::fromString(). - * - * This method must only be used for one-off migration processes during the upgrade - * from WoltLab Suite 5.5 to 6.0, e.g. to update stored icon names within the database. - * - * @throws UnknownIcon if the icon cannot be mapped. - * @deprecated 6.0 This method exists for migration purposes only. - * @since 6.0 - */ - public static function mapVersion4(string $oldName): string - { - static $loaded = false; - static $iconShim; - static $aliases; - static $hasNonSolidStyle; - - if ($loaded === false) { - require(__DIR__ . '/fa-metadata-v4.php'); - - $iconShim = \json_decode($jsonMigrate, true); - $tmp = \json_decode($jsonAliases, true); - $aliases = []; - foreach ($tmp as $iconAlias) { - [$alias, $name] = $iconAlias; - $aliases[$alias] = $name; - } - $tmp = \json_decode($jsonHasNonSolidStyle, true); - $hasNonSolidStyle = []; - foreach ($tmp as $styleData) { - [$name, $hasNonSolid] = $styleData; - $hasNonSolidStyle[$name] = $hasNonSolid; - } - - $loaded = true; - } - - $name = $oldName; - - if (isset($iconShim[$name])) { - [ - 'name' => $newIconName, - 'type' => $type, - ] = $iconShim[$name]; - - // The regular user icon is used for consistency. - if ($name === 'user') { - $type = 'regular'; - } - } else { - // Not all icons are renamed. - $newIconName = $name; - $type = 'solid'; - } - - if (isset($aliases[$newIconName])) { - $newIconName = $aliases[$newIconName]; - } - - // If the icon only ships in `solid` style then we can safely - // use any other variant too. The `solid` style is therefore - // only enforced when there is a non-solid variant too. - if ($type === 'solid' && $newIconName !== 'caret-down' && !$hasNonSolidStyle[$newIconName]) { - $type = 'regular'; - } - - return self::fromValues($newIconName, $type === 'solid')->__toString(); - } } diff --git a/wcfsetup/install/files/lib/system/style/fa-metadata-v4.php b/wcfsetup/install/files/lib/system/style/fa-metadata-v4.php deleted file mode 100644 index 347e586ccf..0000000000 --- a/wcfsetup/install/files/lib/system/style/fa-metadata-v4.php +++ /dev/null @@ -1,22 +0,0 @@ -