text: "use strict";var _createClass=function(){function o(e,n){for(var a=0;a<n.length;a++){var o=n[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,n,a){return n&&o(e.prototype,n),a&&o(e,a),e}}();function _toConsumableArray(e){if(Array.isArray(e)){for(var n=0,a=Array(e.length);n<e.length;n++)a[n]=e[n];return a}return Array.from(e)}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}var Emojify=function(){function a(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;_classCallCheck(this,a),this.list=null==n?this.createList():n,this.input=e,String.prototype.splice||(String.prototype.splice=function(e,n,a){return this.slice(0,e)+a+this.slice(e+Math.abs(n))})}return _createClass(a,[{key:"createElement",value:function(){var e=(new DOMParser).parseFromString('\n\t\t<div class="emojify-container">\n\t\t  <input type="text" class="search" placeholder="Find your Emoji">\n\t\t  <lunar-icon icon="search"></lunar-icon>\n\t\t  <div class="emojis"></div>\n\t\t  <div class="menu">\n\t\t    <div class="people">😀</div>\n\t\t\t<div class="animals">🐶</div>\n\t\t\t<div class="food">🍔</div>\n\t\t  </div>\n\t\t</div>\n\t\t<style>\n\t\t.emojify-container {\n\t\t  width: 300px;\n\t\t  height: 300px;\n\t\t  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);\n\t\t  border-radius: 5px;\n\t\t  background: white;\n\t\t}\n\t\t.emojify-container .search {\n\t\t  width: 70%;\n\t\t  height: 50px;\n\t\t  margin: 20px;\n\t\t  border: none;\n\t\t  border-radius: 5px;\n\t\t  background: rgba(0, 0, 0, 0.1);\n\t\t  box-sizing: border-box;\n\t\t  padding: 10px;\n\t\t}\n\t\t.emojify-container lunar-icon {\n\t\t  position: relative;\n\t\t  left: -20%;\n\t\t  font-size: 20px;\n\t\t  top: 5px;\n\t\t}\n\t\t.emojify-container .emojis {\n\t\t  width: 90%;\n\t\t  height: 70%;\n\t\t  box-sizing: border-box;\n\t\t  padding: 20px;\n\t\t  padding-top: 0;\n\t\t  margin: 0 auto;\n\t\t  overflow: auto;\n\t\t}\n\t\t.emojify-container .emojis .emoji {\n\t\t  display: inline;\n\t\t  width: 20px;\n\t\t  padding: 5px;\n\t\t  margin: 5px;\n\t\t  border-radius: 5px;\n\t\t  cursor: pointer;\n\t\t  box-sizing: content-box;\n\t\t}\n\t\t.emojify-container .emojis .emoji:hover {\n\t\t  background: rgba(0, 0, 0, 0.1);\n\t\t}\n\t\t.emojify-container .emojis::-webkit-scrollbar {\n\t\t  width: 1em;\n\t\t}\n\t\t.emojify-container .menu {\n\t\t  width: 50px;\n\t\t  display: flex;\n\t\t  justify-content: space-evenly;\n\t\t  flex-direction: column;\n\t\t  align-items: center;\n\t\t  transform: translate(240px, -300px);\n\t\t  box-sizing: border-box;\n\t\t  padding: 10px;\n\t\t  height: 100%;\n\t\t}\n\t\t.emojify-container .menu .emoji {\n\t\t  display: inline;\n\t\t  width: 30px;\n\t\t  padding: 5px;\n\t\t  margin: 5px;\n\t\t  border-radius: 5px;\n\t\t  cursor: pointer;\n\t\t  box-sizing: content-box;\n\t\t}\n\t\t.emojify-container .menu .emoji:hover {\n\t\t  background: rgba(0, 0, 0, 0.1);\n\t\t}\n\t\t</style>\n\t\t',"text/html"),n=e.body.querySelector(".emojify-container"),a=e.body.querySelector("style"),o=this.gen(n);return this.addEventListeners(n),o.appendChild(a),o}},{key:"createList",value:function(){return{People:{"happy-smiley-grinning":"😀","happy-smiley-grinning2":"😁","laughing-joy-lol":"😂","rofl-laughing-joy-lol":"🤣","happy-smiley-grinning3":"😃","happy-smiley-grinning4":"😄","happy-smiley-grinning-sweat":"😅","laughing-lol-joy-xd":"😆",winking:"😉","happy-smiley":"😊","goofy-hungry":"😋","cool-sunglass":"😎","heart-love-like":"😍","heart-love-kiss":"😘","duck-kiss-whistling":"😗","duck-kiss-whistling2":"😙","duck-kiss-whistling3":"😚","happy-smiley2":"☺️","happy-smiley-fine":"🙂","hug-smiley-tada":"🤗","excited-wow-starry":"🤩",thinker:"🤔","thinker-what":"🤨","ok-neutral-straight":"😐","straight-neutral":"😑","silence-mouthless-blank":"😶","eye-roll-pfff":"🙄","flirting-smirking-suggestive":"😏","helpless-persevering-scrunched":"😣","disappointed-sad":"😥","surprised-oh":"😮","zipper-quiet-silence":"🤐","surprised-ok-oh":"😯","sleepy-tired-tear":"😪","exhausted-tired":"😫","sleeping-zzz-snoring":"😴","pleased-humble-relieved":"😌","tongue-cheeky":"😛","winking-tongue":"😜","squinting-tongue":"😝",drool:"🤤","unamused-meh-unimpressed":"😒","hard-work-downcast-sad":"😓","pensive-sad":"😔","confused-puzzled":"😕","silly-sarcasm-upside-down":"🙃","money-doller-rich":"🤑","astonished-shocked-wow":"😲","frowning-no-bad":"☹️","frowning-no-bad-sad":"🙁","confounded-scrunched-quivering":"😖","sad-disappointed":"😞","sad-worried":"😟","argh-mad-frustrating":"😤","sad-crying-tear":"😢","loudly-crying-sad-tear":"😭","frowning-yawning":"😦","anguished-pained":"😧","fearful-scared-surprised-blue":"😨","weary-distraught-wailing":"😩","exploding-mind-blowing-wow":"🤯","grimacing-awkward-nervous":"😬","blue-anxious-nervous-concerned":"😰","screaming-blue-fearful":"😱","flushed-shame-embarassed":"😳","zany-wild-crazy-excited":"🤪","dizzy-dead":"😵","angry-mad-pouting-red":"😡","angry-mad":"😠","cursing-mad-angry-swearing":"🤬","surgical-mask-medical":"😷","sick-thermometer":"🤒","injured-bandage":"🤕","sick-nauseated-vomit-green":"🤢",vomit:"🤮","sneezing-sick":"🤧","angel-halo":"😇","cowboy-sherif":"🤠",clown:"🤡","lying-sniff":"🤥","shh-quiet-silence":"🤫","shh-silence-hand":"🤭","monocle-thinker":"🧐","nerd-geek":"🤓","smile-devil-purple":"😈","angry-devil-purple":"👿","ogre-scary-red-monster":"👹","goblin-red-monster":"👺","death-skull-skeleton":"💀","ghost-halloween":"👻","alien-et":"👽",robot:"🤖",poop:"💩","happy-cat-smile":"😺","grinning-smiley-cat":"😸","lol-laughing-cat":"😹","heart-eye-love-cat":"😻","smirking-cat":"😼","kissing-cat":"😽","scared-cat-screaming-fearful":"🙀","sad-tear-crying-cat":"😿","grumpy-pouting-cat":"😾","child-baby":"👶",girl:"👧",boy:"👦","mum-woman":"👩","man-dad":"👨","grandma-old":"👵","grandpa-old":"👴","police-man":"👮‍","worker-man":"👷‍","detective-man":"🕵️‍","doctor-girl":"👩‍⚕️","doctor-man":"👨‍⚕️","farmer-girl":"👩‍🌾","farmer-man":"👨‍🌾","cook-girl":"👩‍🍳","cook-man":"👨‍🍳","student-girl":"👩‍🎓","student-boy":"👨‍🎓","singer-girl":"👩‍🎤","singer-man":"👨‍🎤","teacher-girl":"👩‍🏫","teacher-man":"👨‍🏫","factory-worker-girl":"👩‍🏭","factory-worker-man":"👨‍🏭","computer-code-girl":"👩‍💻","computer-code-man":"👨‍💻","office-worker-girl":"👩‍💼","office-worker-man":"👨‍💼","mechanic-worker-girl":"👩‍🔧","mechanic-worker-man":"👨‍🔧","scientist-girl":"👩‍🔬","scientist-man":"👨‍🔬","artist-girl":"👩‍🎨","artist-man":"👨‍🎨","firefighter-girl":"👩‍🚒","firefighter-man":"👨‍🚒","pilot-girl":"👩‍✈️","pilot-man":"👨‍✈️","astronaut-girl":"👩‍🚀","astronaut-man":"👨‍🚀","judge-girl":"👩‍⚖️","judge-man":"👨‍⚖️","wedding-marriage-girl":"👰","wedding-msrriage-man":"🤵",queen:"👸",king:"🤴","mother-christmas-claus":"🤶","santa-claus":"🎅",wizard:"🧙‍",elf:"🧝‍","vampire-monster":"🧛‍","zombie-monster":"🧟‍",genie:"🧞‍",mermaid:"🧜‍",fairy:"🧚‍","angel-cherub-cupid":"👼","pregnant-woman":"🤰",breastfeeding:"🤱",bowing:"🙇‍","tipping-hand-woman":"💁‍","no-x-arms-woman":"🙅‍","ok-gesturing-woman":"🙆‍","raising-hand-woman":"🙋‍","facepalming-stupid-idiot-man":"🤦‍","shrugging-don't-know":"🤷‍","blank-look-pouting-woman":"🙎‍","sad-frowning-woman":"🙍‍","haircut-woman":"💇‍","massage-haircut":"💆‍","sauna-woman":"🧖‍","nails-manicure":"💅",selfie:"🤳","dancing-woman":"💃","dancing-man":"🕺","dancing-women-bunny-ears":"👯‍","hovering-man-mysterious-magic":"🕴","walking-man":"🚶‍","running-man":"🏃‍","heterosexual-couple":"👫","homosexual-gay-couple":"👭","homosexual-lesbian-couple":"👬","heterosexual-love":"💑","homosexual-lesbian-love":"👩‍❤️‍👩","homosexual-gay-love":"👨‍❤️‍👨","heterosexual-kiss":"💏","homosexual-lesbian-kiss":"👩‍❤️‍💋‍👩","homosexual-gay-kiss":"👨‍❤️‍💋‍👨","heterosexual-family-boy":"👪","heterosexual-family-girl":"👨‍👩‍👧","heterosexual-family-boy-girl":"👨‍👩‍👧‍👦","heterosexual-family-boy-boy":"👨‍👩‍👦‍👦","heterosexual-family-girl-girl":"👨‍👩‍👧‍👧","homosexual-lesbian-family-boy":"👩‍👩‍👦","homosexual-lesbian-family-girl":"👩‍👩‍👧","homosexual-lesbian-family-boy-girl":"👩‍👩‍👧‍👦","homosexual-lesbian-family-boy-boy":"👩‍👩‍👦‍👦","homosexual-lesbian-family-girl-girl":"👩‍👩‍👧‍👧","homosexual-gay-family-boy":"👨‍👨‍👦","homosexual-gay-family-girl":"👨‍👨‍👧","homosexual-gay-family-boy-girl":"👨‍👨‍👧‍👦","homosexual-gay-family-boy-boy":"👨‍👨‍👦‍👦","homosexual-gay-family-girl-girl":"👨‍👨‍👧‍👧","family-woman-boy":"👩‍👦","family-woman-girl":"👩‍👧","family-woman-boy-girl":"👩‍👧‍👦","family-woman-boy-boy":"👩‍👦‍👦","family-woman-girl-girl":"👩‍👧‍👧","family-man-boy":"👨‍👦","family-man-girl":"👨‍👧","family-man-boy-girl":"👨‍👧‍👦","family-man-boy-boy":"👨‍👦‍👦","family-man-girl-girl":"👨‍👧‍👧","dua-palms-together-hands":"🤲","open-hands":"👐","raising-hands":"🙌","clapping-hands":"👏",handshake:"🤝","like-nice-thumbs-up":"👍","dislike-bad-thumbs-down":"👎","oncomming-bro-fist":"👊","raised-fist":"✊","left-fist-punch":"🤛","right-fist-punch":"🤜",crossfingers:"🤞","peace-victory-hands":"✌️","love-you-hands":"🤟","heavy-metal-horns-hands":"🤘","perfect-ok-hands":"👌","left-index-that":"👈","right-index-this":"👉","up-index":"👆","down-index":"👇","up-index2":"☝️",hands:"✋","back-hands":"🤚","hands-fingers":"🖐","vulcan-hands":"🖖","shaking-hands-hello":"👋","call-shaka-hand":"🤙","strong-muscle-biceps":"💪","fuck-middle-finger":"🖕","writing-hands":"✍️","praying-please":"🙏",ring:"💍",lipstick:"💄","smack-kiss":"💋",mouth:"👄",tongue:"👅",ears:"👂",nose:"👃",footstep:"👣",eye:"👁",eyes:"👀",brain:"🧠","speaking-silhouette-person":"🗣","bust-man-person-silhouette":"👤","bust-men-persons-silhouette-group":"👥",coat:"🧥","clothes-woman":"👚","clothes-man":"👕","jeans-pants":"👖","neck-tie-business-shirt":"👔",dress:"👗",bikini:"👙",kimono:"👘","stiletto-high-heels-shoe":"👠","sandal-woman":"👡","woman-boot":"👢","shoe-man":"👞","running-shoe-sneaker":"👟",socks:"🧦",gloves:"🧤",scarf:"🧣","top-hat":"🎩","billed-cap-hat":"🧢","hat-woman":"👒","graduation-hat-college-student":"🎓","rescue-helmet":"⛑",crown:"👑","clutch-bag":"👝",purse:"👛","hand-bag":"👜","brief-case":"💼","school-back-pack-bag":"🎒",glasses:"👓","sun-glasses":"🕶",umbrella:"🌂"},"Animals & Nature":{"dog-face":"🐶","cat-face":"🐱","mouse-face":"🐭","hamster-face":"🐹","rabbit-face":"🐰","fox-face":"🦊","brown-bear-face":"🐻","panda-face":"🐼","koala-facd":"🐨","tiger-face":"🐯","lion-face":"🦁","cow-face":"🐮","pig-face":"🐷","pig-nose-snout":"🐽","frog-face":"🐸","monkey-face":"🐵","see-no-evil-monkey-cheeky":"🙈","hear-no-evil-monkey-kikazaru":"🙉","speak-no-evil-monkey-kikazaru":"🙊",monkey:"🐒",chicken:"🐔",penguin:"🐧",bird:"🐦","baby-chicken-face":"🐤","hatching-baby-chicken":"🐣","baby-chicken":"🐥",duck:"🦆",eagle:"🦅",owl:"🦉",bat:"🦇","wolf-face":"🐺","boar-wild-pig":"🐗","horse-face":"🐴","unicorn-face":"🦄","honey-bee":"🐝","caterpillar-centipede-bug":"🐛",butterfly:"🦋",snail:"🐌","sea-shell":"🐚",ladybug:"🐞",ant:"🐜",cricket:"🦗",spider:"🕷","spider-web":"🕸",scorpion:"🦂",turtle:"🐢",snake:"🐍",lizard:"🦎","t-rex-dinosaur":"🦖","diplodocus-brontosaurus-sauropod-dinosaur":"🦕",octopus:"🐙",squid:"🦑",shrimp:"🦐",crab:"🦀","blow-fish":"🐡","tropical-fish":"🐠",fish:"🐟",dolphin:"🐬","spouting-whale":"🐳",whale:"🐋",shark:"🦈","crododile-alligator":"🐊",tiger:"🐅",leopard:"🐆",zebra:"🦓","gorilla-harambe-king-kong-monkey":"🦍",elephant:"🐘",rhinoceros:"🦏",camel:"🐪","asian-two-bumped-camel":"🐫",girafe:"🦒","water-buffalo":"🐃","bullock-oxen":"🐂",cow:"🐄",horse:"🐎",pig:"🐖",ram:"🐏","ewe-sheep-lamb":"🐑",goat:"🐐",deer:"🦌",dog:"🐕","poodle-dog":"🐩",cat:"🐈","cock-rooster":"🐓",turkey:"🦃",dove:"🕊",rabbit:"🐇",mouse:"🐁",rat:"🐀","chipmunk-squirrel":"🐿",hedgehog:"🦔","paw-prints-foot":"🐾",dragon:"🐉","dragon-face":"🐲","desert-wild-west-cactus":"🌵","christmas-xmas-tree":"🎄","pine-tree-evergreen":"🌲","deciduous-tree-rounded":"🌳","palm-coconut-tropical-tree":"🌴","seedling-spring-sprouting":"🌱","herb-plant-crop":"🌿",shamrock:"☘️","clover-ireland-lucky":"🍀","bamboo-pine-decoration-kadomatsu":"🎍","tanabata-wish-tree":"🎋","spring-leaves-green":"🍃","fallen-leaves-automn":"🍂","mapple-leaf-canada":"🍁","mushroom-toadstool":"🍄","wheat-crop-farming-rice":"🌾","bouquet-flowers":"💐","tulip-flower":"🌷","rose-flower":"🌹","wilted-dead-flower":"🥀","hibiscus-flower":"🌺","cherry-blossom-pink-flower":"🌸","blossom-yellow-flower":"🌼","sunflower-yellow":"🌻","sun-face":"🌞","moon-face":"🌝","first-quarter-moon-face":"🌛","last-quarter-moon-face":"🌜","new-moon-face":"🌚","full-moon":"🌕","waning-gibbous-moon":"🌖","last-quarter-moon":"🌗","waning-crescent-moon":"🌘","new-moon":"🌑","waxing-crescent-moon":"🌒","first-quarter-moon":"🌓","waxing-gibbous-moon":"🌔","crescent-moon":"🌙","earth-globe-planet-world-america":"🌎","earth-globe-planet-world-europe-africa":"🌍","earth-globe-planet-world-asia-australia":"🌏","circle-star-dizzy":"💫","yellow-star":"⭐️","shining-glowing-exploding-gold-star":"🌟","sparkles-stars":"✨","lightning-bolt-thunderbolt-high-voltage":"⚡️","comet-light-beam":"☄️","bang-explosion-impact-boom-collision":"💥","fire-flame-hot":"🔥",tornado:"🌪","gay-pride-rainbow":"🌈",sunshine:"☀️","sun-behind-small-cloud":"🌤","sun-behind-cloud":"⛅️","Sun Behind Large Cloud":"🌥",cloud:"☁️","sun-Behind-rain-cloud":"🌦","cloud-with-rain":"🌧","cloud-with-lightning-and-rain":"⛈","cloud-with-lightning":"🌩","cloud-with-snow":"🌨",snowflake:"❄️","snowman-snow":"☃️",snowman:"⛄️","wind-face-mother-nature":"🌬","fast-steam-dashing-away-vaping-wind":"💨","droplet-water":"💧","sweat-droplets-water-splash":"💦","umbrella-rain-drops":"☔️",umbrella:"☂️","beach-waves-sea-ocean":"🌊","fog-pollution":"🌫"},"Food & Drink":{"green-apple":"🍏","red-apple":"🍎",pear:"🍐","tangerine-mandarin-orange":"🍊",lemon:"🍋",banana:"🍌",watermelon:"🍉",grapes:"🍇",strawberry:"🍓",melon:"🍈",cherries:"🍒","peach-butt-bottom":"🍑",pineapple:"🍍",coconut:"🥥","kiwi-fruit":"🥝",tomato:"🍅","eggplant-phallic":"🍆",avocado:"🥑",broccoli:"🥦",cucumber:"🥒","hot-pepper-spicy-chili":"🌶","corn-maize":"🌽",carrot:"🥕",potato:"🥔","yam-sweet-potato":"🍠",croissant:"🥐",bread:"🍞","baguette-bread":"🥖",pretzel:"🥨","cheese-wedge":"🧀",egg:"🥚","cooking-breakfast-fried-egg":"🍳","pancakes-crepes":"🥞",bacon:"🥓","meat-steak":"🥩","poultry-leg-turkey-chicken-drumstick":"🍗","meat-bone-barbecue-bbq":"🍖","hotdog-sausage":"🌭","hamburger-cheese":"🍔","french-fries":"🍟","pizza-pepperoni":"🍕",sandwich:"🥪","doner-kebab-souvlaki-pita-sandwich":"🥙",taco:"🌮","burrito-wrap":"🌯","green-salad":"🥗","paellla-pan-food":"🥘","canned-food":"🥫","spaghetti-pasta":"🍝","steaming-bowl-noodles-chopsticks":"🍜","bowl-pot-food":"🍲","curry-rice-indian-food":"🍛","sushi-sashimi":"🍣","bento-box-lunch":"🍱",dumpling:"🥟","fried-shrimp-prawn":"🍤","nori-rice-ball":"🍙","cooked-rice-bowl":"🍚","rice-cracker":"🍘","fish-cake-swirl":"🍥","fortune-cookie":"🥠","oden-kebab-skewer":"🍢","dessert-stick-dango":"🍡","snow-cone-sahved-ice":"🍧","ice-cream-dessert":"🍨","soft-ice-cream":"🍦",pie:"🥧","piece-of-cake":"🍰","birthday-cake":"🎂","flan-custard-pudding-cream-caramel":"🍮",lollypop:"🍭","candy-sweed":"🍬","chocolate-bar":"🍫",popcorn:"🍿","donut-doughnut":"🍩","biscuit-cookie":"🍪","acorn-chestnut":"🌰",peanuts:"🥜","honey-pot":"🍯","glass-milk":"🥛","baby-bottle-feeding":"🍼","tea-coffee-hot-chocolate":"☕️","green-tea-cup":"🍵","cup-straw-soda-soft-drink-milkshake":"🥤","sake-rice-wine":"🍶","beer-mug-lager":"🍺","beers-cheers-clinking":"🍻","clinking-champagne-celebration":"🥂","red-wine-glass-alcohol":"🍷","trumbler-glass-bourbon-rum-whisky":"🥃","cocktail-glass-martini":"🍸","tropical-drink-glass":"🍹","champagne-celebration":"🍾",spoon:"🥄","fork-knife-cutlery":"🍴","fork-knife-plate-restaurant":"🍽","cereal-bowl":"🥣","takeout-box":"🥡",chopsticks:"🥢"}}}},{key:"addEventListeners",value:function(o){var i=this;o.querySelector(".search").addEventListener("input",function(e){var n="("+e.currentTarget.value.split(" ").join(")(?=.*")+")",a=new RegExp(n,"i");console.log(a),o=""==e.currentTarget.value?i.gen(o):i.gen(o,a)})}},{key:"gen",value:function(e){var o=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,a=this.list,i=Object.keys(a),t=Object.values(a),r=e.querySelector(".emojis");r.innerHTML="";for(var s=0;s<i.length;s++){var l=document.createElement("h3");l.appendChild(document.createTextNode(i[s])),r.appendChild(l);var c=t[s],d=Object.keys(c),u=Object.values(c);if(null==n)r.innerHTML+=u.join("");else for(var g=0;g<d.length;g++)n.test(d[g])&&(r.innerHTML+=u[g])}if(!twemoji)throw"Emojify requires Twemoji to work. Please contact the developer or check the docs for more informations.";twemoji.parse(e),r.querySelectorAll(".emoji").forEach(function(e){e.addEventListener("click",function(e){var n=e.currentTarget.alt,a=o.input.selectionStart;o.input.value=o.input.value.splice(a,0,n)})});var m=e.querySelectorAll(".menu > div"),h=m[0].parentNode.cloneNode(!0);m[0].parentNode.parentNode.replaceChild(h,m[0].parentNode),m=e.querySelectorAll(".menu > div");var p=e.querySelectorAll(".emojis > h3");return m.forEach(function(e){e.addEventListener("click",function(e){var n=e.currentTarget,a=[].concat(_toConsumableArray(n.parentElement.children)).indexOf(n),o=p[a].offsetTop-r.offsetTop;r.scrollTop=o})}),e}}]),a}();"function"==typeof define&&define.amd?define(function(){return new Emojify}):"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=new Emojify),exports.Emojify=new Emojify):"undefined"!=typeof global&&(global.Emojify=new Emojify);