1/** 2 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1. 3 * Original file: /npm/[email protected]/dist/module.js 4 * 5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 6 */ 7function le(t){return t&&t.__esModule?t.default:t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var A,v,de,P,ue,he,I={},fe=[],nt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function E(t,e){for(var n in e)t[n]=e[n];return t}function pe(t){var e=t.parentNode;e&&e.removeChild(t)}function X(t,e,n){var r,o,i,s={};for(i in e)i=="key"?r=e[i]:i=="ref"?o=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?A.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)s[i]===void 0&&(s[i]=t.defaultProps[i]);return O(t,s,r,o,null)}function O(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++de};return o==null&&v.vnode!=null&&v.vnode(i),i}function j(){return{current:null}}function D(t){return t.children}function S(t,e){this.props=t,this.context=e}function R(t,e){if(e==null)return t.__?R(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?R(t):null}function ve(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return ve(t)}}function _e(t){(!t.__d&&(t.__d=!0)&&P.push(t)&&!V.__r++||he!==v.debounceRendering)&&((he=v.debounceRendering)||ue)(V)}function V(){for(var t;V.__r=P.length;)t=P.sort(function(e,n){return e.__v.__b-n.__v.__b}),P=[],t.some(function(e){var n,r,o,i,s,l;e.__d&&(s=(i=(n=e).__v).__e,(l=n.__P)&&(r=[],(o=E({},i)).__v=i.__v+1,J(l,i,o,n.__n,l.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s??R(i),i.__h),ye(r,i),i.__e!=s&&ve(i)))})}function ge(t,e,n,r,o,i,s,l,c,u){var a,p,h,f,_,m,b,$=r&&r.__k||fe,y=$.length;for(n.__k=[],a=0;a<e.length;a++)if((f=n.__k[a]=(f=e[a])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?O(null,f,null,null,f):Array.isArray(f)?O(D,{children:f},null,null,null):f.__b>0?O(f.type,f.props,f.key,null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(h=$[a])===null||h&&f.key==h.key&&f.type===h.type)$[a]=void 0;else for(p=0;p<y;p++){if((h=$[p])&&f.key==h.key&&f.type===h.type){$[p]=void 0;break}h=null}J(t,f,h=h||I,o,i,s,l,c,u),_=f.__e,(p=f.ref)&&h.ref!=p&&(b||(b=[]),h.ref&&b.push(h.ref,null,f),b.push(p,f.__c||_,f)),_!=null?(m==null&&(m=_),typeof f.type=="function"&&f.__k===h.__k?f.__d=c=be(f,c,t):c=me(t,f,h,$,_,c),typeof n.type=="function"&&(n.__d=c)):c&&h.__e==c&&c.parentNode!=t&&(c=R(h))}for(n.__e=m,a=y;a--;)$[a]!=null&&(typeof n.type=="function"&&$[a].__e!=null&&$[a].__e==n.__d&&(n.__d=R(r,a+1)),Ce($[a],$[a]));if(b)for(a=0;a<b.length;a++)xe(b[a],b[++a],b[++a])}function be(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e=typeof r.type=="function"?be(r,e,n):me(n,r,r,o,r.__e,e));return e}function F(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){F(n,e)}):e.push(t)),e}function me(t,e,n,r,o,i){var s,l,c;if(e.__d!==void 0)s=e.__d,e.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==t)t.appendChild(o),s=null;else{for(l=i,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==o)break e;t.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function rt(t,e,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in e||U(t,i,null,n[i],r);for(i in e)o&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===e[i]||U(t,i,e[i],n[i],r)}function $e(t,e,n){e[0]==="-"?t.setProperty(e,n):t[e]=n==null?"":typeof n!="number"||nt.test(e)?n:n+"px"}function U(t,e,n,r,o){var i;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||$e(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||$e(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?we:ke,i):t.removeEventListener(e,i?we:ke,i);else if(e!=="dangerouslySetInnerHTML"){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||e[0]==="a"&&e[1]==="r")?t.setAttribute(e,n):t.removeAttribute(e))}}function ke(t){this.l[t.type+!1](v.event?v.event(t):t)}function we(t){this.l[t.type+!0](v.event?v.event(t):t)}function J(t,e,n,r,o,i,s,l,c){var u,a,p,h,f,_,m,b,$,y,H,C=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,l=e.__e=n.__e,e.__h=null,i=[l]),(u=v.__b)&&u(e);try{e:if(typeof C=="function"){if(b=e.props,$=(u=C.contextType)&&r[u.__c],y=u?$?$.props.value:u.__:r,n.__c?m=(a=e.__c=n.__c).__=a.__E:("prototype"in C&&C.prototype.render?e.__c=a=new C(b,y):(e.__c=a=new S(b,y
7),a.constructor=C,a.render=ot),$&&$.sub(a),a.props=b,a.state||(a.state={}),a.context=y,a.__n=r,p=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),C.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=E({},a.__s)),E(a.__s,C.getDerivedStateFromProps(b,a.__s))),h=a.props,f=a.state,p)C.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(C.getDerivedStateFromProps==null&&b!==h&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(b,y),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(b,a.__s,y)===!1||e.__v===n.__v){a.props=b,a.state=a.__s,e.__v!==n.__v&&(a.__d=!1),a.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(T){T&&(T.__=e)}),a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(b,a.__s,y),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(h,f,_)})}a.context=y,a.props=b,a.state=a.__s,(u=v.__r)&&u(e),a.__d=!1,a.__v=e,a.__P=t,u=a.render(a.props,a.state,a.context),a.state=a.__s,a.getChildContext!=null&&(r=E(E({},r),a.getChildContext())),p||a.getSnapshotBeforeUpdate==null||(_=a.getSnapshotBeforeUpdate(h,f)),H=u!=null&&u.type===D&&u.key==null?u.props.children:u,ge(t,Array.isArray(H)?H:[H],e,n,r,o,i,s,l,c),a.base=e.__e,e.__h=null,a.__h.length&&s.push(a),m&&(a.__E=a.__=null),a.__e=!1}else i==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=it(n.__e,e,n,r,o,i,s,c);(u=v.diffed)&&u(e)}catch(T){e.__v=null,(c||i!=null)&&(e.__e=l,e.__h=!!c,i[i.indexOf(l)]=null),v.__e(T,e,n)}}function ye(t,e){v.__c&&v.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){v.__e(r,n.__v)}})}function it(t,e,n,r,o,i,s,l){var c,u,a,p=n.props,h=e.props,f=e.type,_=0;if(f==="svg"&&(o=!0),i!=null){for(;_<i.length;_++)if((c=i[_])&&"setAttribute"in c==!!f&&(f?c.localName===f:c.nodeType===3)){t=c,i[_]=null;break}}if(t==null){if(f===null)return document.createTextNode(h);t=o?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),i=null,l=!1}if(f===null)p===h||l&&t.data===h||(t.data=h);else{if(i=i&&A.call(t.childNodes),u=(p=n.props||I).dangerouslySetInnerHTML,a=h.dangerouslySetInnerHTML,!l){if(i!=null)for(p={},_=0;_<t.attributes.length;_++)p[t.attributes[_].name]=t.attributes[_].value;(a||u)&&(a&&(u&&a.__html==u.__html||a.__html===t.innerHTML)||(t.innerHTML=a&&a.__html||""))}if(rt(t,h,p,o,l),a)e.__k=[];else if(_=e.props.children,ge(t,Array.isArray(_)?_:[_],e,n,r,o&&f!=="foreignObject",i,s,i?i[0]:n.__k&&R(n,0),l),i!=null)for(_=i.length;_--;)i[_]!=null&&pe(i[_]);l||("value"in h&&(_=h.value)!==void 0&&(_!==p.value||_!==t.value||f==="progress"&&!_)&&U(t,"value",_,p.value,!1),"checked"in h&&(_=h.checked)!==void 0&&_!==t.checked&&U(t,"checked",_,p.checked,!1))}return t}function xe(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){v.__e(r,n)}}function Ce(t,e,n){var r,o;if(v.unmount&&v.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||xe(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){v.__e(i,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&Ce(r[o],e,typeof t.type!="function");n||t.__e==null||pe(t.__e),t.__e=t.__d=void 0}function ot(t,e,n){return this.constructor(t,n)}function Se(t,e,n){var r,o,i;v.__&&v.__(t,e),o=(r=typeof n=="function")?null:n&&n.__k||e.__k,i=[],J(e,t=(!r&&n||e).__k=X(D,null,[t]),o||I,I,e.ownerSVGElement!==void 0,!r&&n?[n]:o?null:e.firstChild?A.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r),ye(i,t)}A=fe.slice,v={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(i){t=i}throw t}},de=0,S.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=E({},this.state),typeof t=="function"&&(t=t(E({},n),this.props)),t&&E(n,t),t!=null&&this.__v&&(e&&this.__h.push(e),_e(this))},S.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),_e(this))},S.prototype.render=D,P=[],ue=typeof Promise=="function"?Promise.prototype.then.bind(Prom
7ise.resolve()):setTimeout,V.__r=0;var st=0;function d(t,e,n,r,o){var i,s,l={};for(s in e)s=="ref"?i=e[s]:l[s]=e[s];var c={type:t,props:l,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--st,__source:r,__self:o};if(typeof t=="function"&&(i=t.defaultProps))for(s in i)l[s]===void 0&&(l[s]=i[s]);return v.vnode&&v.vnode(c),c}function at(t,e){try{window.localStorage[`emoji-mart.${t}`]=JSON.stringify(e)}catch{}}function ct(t){try{const e=window.localStorage[`emoji-mart.${t}`];if(e)return JSON.parse(e)}catch{}}var z={set:at,get:ct};const Y=new Map,lt=[{v:15,emoji:"\u{1FAE8}"},{v:14,emoji:"\u{1FAE0}"},{v:13.1,emoji:"\u{1F636}\u200D\u{1F32B}\uFE0F"},{v:13,emoji:"\u{1F978}"},{v:12.1,emoji:"\u{1F9D1}\u200D\u{1F9B0}"},{v:12,emoji:"\u{1F971}"},{v:11,emoji:"\u{1F970}"},{v:5,emoji:"\u{1F929}"},{v:4,emoji:"\u{1F471}\u200D\u2640\uFE0F"},{v:3,emoji:"\u{1F923}"},{v:2,emoji:"\u{1F44B}\u{1F3FB}"},{v:1,emoji:"\u{1F643}"}];function dt(){for(const{v:t,emoji:e}of lt)if(je(e))return t}function ut(){return!je("\u{1F1E8}\u{1F1E6}")}function je(t){if(Y.has(t))return Y.get(t);const e=ht(t);return Y.set(t,e),e}const ht=(()=>{let t=null;try{navigator.userAgent.includes("jsdom")||(t=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!t)return()=>!1;const e=25,n=20,r=Math.floor(e/2);return t.font=r+"px Arial, Sans-Serif",t.textBaseline="top",t.canvas.width=n*2,t.canvas.height=e,o=>{t.clearRect(0,0,n*2,e),t.fillStyle="#FF0000",t.fillText(o,0,22),t.fillStyle="#0000FF",t.fillText(o,n,22);const i=t.getImageData(0,0,n,e).data,s=i.length;let l=0;for(;l<s&&!i[l+3];l+=4);if(l>=s)return!1;const c=n+l/4%n,u=Math.floor(l/4/n),a=t.getImageData(c,u,1,1).data;return!(i[l]!==a[0]||i[l+2]!==a[2]||t.measureText(o).width>=n)}})();var ze={latestVersion:dt,noCountryFlags:ut};const Z=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let k=null;function ft(t){k||(k=z.get("frequently")||{});const e=t.id||t;e&&(k[e]||(k[e]=0),k[e]+=1,z.set("last",e),z.set("frequently",k))}function pt({maxFrequentRows:t,perLine:e}){if(!t)return[];k||(k=z.get("frequently"));let n=[];if(!k){k={};for(let i in Z.slice(0,e)){const s=Z[i];k[s]=e-i,n.push(s)}return n}const r=t*e,o=z.get("last");for(let i in k)n.push(i);if(n.sort((i,s)=>{const l=k[s],c=k[i];return l==c?i.localeCompare(s):l-c}),n.length>r){const i=n.slice(r);n=n.slice(0,r);for(let s of i)s!=o&&delete k[s];o&&n.indexOf(o)==-1&&(delete k[n[n.length-1]],n.splice(-1,1,o)),z.set("frequently",k)}return n}var Q={add:ft,get:pt,DEFAULTS:Z},Me={};Me=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn\u2019t be found","pick":"Pick an emoji\u2026","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var M={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let w=null,g=null;const ee={};async function Ee(t){if(ee[t])return ee[t];const n=await(await fetch(t)).json();return ee[t]=n,n}let te=null,Le=null,De=!1;
7function B(t,{caller:e}={}){return te||(te=new Promise(n=>{Le=n})),t?vt(t):e&&!De&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),te}async function vt(t){De=!0;let{emojiVersion:e,set:n,locale:r}=t;if(e||(e=M.emojiVersion.value),n||(n=M.set.value),r||(r=M.locale.value),g)g.categories=g.categories.filter(c=>!c.name);else{g=(typeof t.data=="function"?await t.data():t.data)||await Ee(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`),g.emoticons={},g.natives={},g.categories.unshift({id:"frequent",emojis:[]});for(const c in g.aliases){const u=g.aliases[c],a=g.emojis[u];a&&(a.aliases||(a.aliases=[]),a.aliases.push(c))}g.originalCategories=g.categories}if(w=(typeof t.i18n=="function"?await t.i18n():t.i18n)||(r=="en"?le(Me):await Ee(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)),t.custom)for(let c in t.custom){c=parseInt(c);const u=t.custom[c],a=t.custom[c-1];if(!(!u.emojis||!u.emojis.length)){u.id||(u.id=`custom_${c+1}`),u.name||(u.name=w.categories.custom),a&&!u.icon&&(u.target=a.target||a),g.categories.push(u);for(const p of u.emojis)g.emojis[p.id]=p}}t.categories&&(g.categories=g.originalCategories.filter(c=>t.categories.indexOf(c.id)!=-1).sort((c,u)=>{const a=t.categories.indexOf(c.id),p=t.categories.indexOf(u.id);return a-p}));let o=null,i=null;n=="native"&&(o=ze.latestVersion(),i=t.noCountryFlags||ze.noCountryFlags());let s=g.categories.length,l=!1;for(;s--;){const c=g.categories[s];if(c.id=="frequent"){let{maxFrequentRows:p,perLine:h}=t;p=p>=0?p:M.maxFrequentRows.value,h||(h=M.perLine.value),c.emojis=Q.get({maxFrequentRows:p,perLine:h})}if(!c.emojis||!c.emojis.length){g.categories.splice(s,1);continue}const{categoryIcons:u}=t;if(u){const p=u[c.id];p&&!c.icon&&(c.icon=p)}let a=c.emojis.length;for(;a--;){const p=c.emojis[a],h=p.id?p:g.emojis[p],f=()=>{c.emojis.splice(a,1)};if(!h||t.exceptEmojis&&t.exceptEmojis.includes(h.id)){f();continue}if(o&&h.version>o){f();continue}if(i&&c.id=="flags"&&!Be.includes(h.id)){f();continue}if(!h.search){if(l=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([m,b])=>{if(m)return(Array.isArray(m)?m:[m]).map($=>(b?$.split(/[-|_|\s]+/):[$]).map(y=>y.toLowerCase())).flat()}).flat().filter(m=>m&&m.trim()).join(","),h.emoticons)for(const m of h.emoticons)g.emoticons[m]||(g.emoticons[m]=h.id);let _=0;for(const m of h.skins){if(!m)continue;_++;const{native:b}=m;b&&(g.natives[b]=h.id,h.search+=`,${b}`);const $=_==1?"":`:skin-tone-${_}:`;m.shortcodes=`:${h.id}:${$}`}}}}l&&L.reset(),Le()}function Re(t,e,n){t||(t={});const r={};for(let o in e)r[o]=Pe(o,t,e,n);return r}function Pe(t,e,n,r){const o=n[t];let i=r&&r.getAttribute(t)||(e[t]!=null&&e[t]!=null?e[t]:null);return o&&(i!=null&&o.value&&typeof o.value!=typeof i&&(typeof o.value=="boolean"?i=i!="false":i=o.value.constructor(i)),o.transform&&i&&(i=o.transform(i)),(i==null||o.choices&&o.choices.indexOf(i)==-1)&&(i=o.value)),i}const _t=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let ne=null;function gt(t){return t.id?t:g.emojis[t]||g.emojis[g.aliases[t]]||g.emojis[g.natives[t]]}function bt(){ne=null}async function mt(t,{maxResults:e,caller:n}={}){if(!t||!t.trim().length)return null;e||(e=90),await B(null,{caller:n||"SearchIndex.search"});const r=t.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((l,c,u)=>l.trim()&&u.indexOf(l)==c);if(!r.length)return;let o=ne||(ne=Object.values(g.emojis)),i,s;for(const l of r){if(!o.length)break;i=[],s={};for(const c of o){if(!c.search)continue;const u=c.search.indexOf(`,${l}`);u!=-1&&(i.push(c),s[c.id]||(s[c.id]=0),s[c.id]+=c.id==l?0:u+1)}o=i}return i.length<2||(i.sort((l,c)=>{const u=s[l.id],a=s[c.id];return u==a?l.id.localeCompare(c.id):u-a}),i.length>e&&(i=i.slice(0,e))),i}var L={search:mt,get:gt,reset:bt,SHORTCODES_REGEX:_t};const Be=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","
7waving_white_flag"];function $t(t,e){return Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((n,r)=>n==e[r])}async function kt(t=1){for(let e in[...Array(t).keys()])await new Promise(requestAnimationFrame)}function He(t,{skinIndex:e=0}={}){const n=t.skins[e]||(e=0,t.skins[e]),r={id:t.id,name:t.name,native:n.native,unified:n.unified,keywords:t.keywords,shortcodes:n.shortcodes||t.shortcodes};return t.skins.length>1&&(r.skin=e+1),n.src&&(r.src=n.src),t.aliases&&t.aliases.length&&(r.aliases=t.aliases),t.emoticons&&t.emoticons.length&&(r.emoticons=t.emoticons),r}async function wt(t){const e=await L.search(t,{maxResults:1,caller:"getEmojiDataFromNative"});if(!e||!e.length)return null;const n=e[0];let r=0;for(let o of n.skins){if(o.native==t)break;r++}return He(n,{skinIndex:r})}const yt={activity:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:d("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.
7009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),d("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),d("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.87
77 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:d("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),d("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:d("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),d("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4
7174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[d("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),d("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:d("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:d("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},xt={loupe:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:d("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:d("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:d("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var N={categories:yt,search:xt};function re(t){let{id:e,skin:n,emoji:r}=t;if(t.shortcodes){const l=t.shortcodes.match(L.SHORTCODES_REGEX);l&&(e=l[1],l[2]&&(n=l[2]))}if(r||(r=L.get(e||t.native)),!r)return t.fallback;const o=r.skins[n-1]||r.skins[0],i=o.src||(t.set!="native"&&!t.spritesheet?typeof t.getImageURL=="function"?t.getImageURL(t.set,o.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/64/${o.unified}.png`:void 0),s=typeof t.getSpritesheetURL=="function"?t.getSpritesheetURL(t.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/sheets-256/64.png`;return d("span",{class:"emoji-mart-emoji","data-emoji-set":t.set,children:i?d("img",{style:{maxWidth:t.size||"1em",maxHeight:t.size||"1em",display:"inline-block"},alt:o.native||o.shortcodes,src:i}):t.set=="native"?d("span",{style:{fontSize:t.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:o.native}):d("span",{style:{display:"block",width:t.size,height:t.size,backgroundImage:`url(${s})`,backgroundSize:`${100*g.sheet.cols}% ${100*g.sheet.rows}%`,backgroundPosition:`${100/(g.sheet.cols-1)*o.x}% ${100/(g.sheet.rows-1)*o.y}%`}})})}const Ct=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class Te extends Ct{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let n in e)this.attributeChangedCallback(n,null,e[n])}attributeChangedCallback(e,n,r){if(!this.component)return;const o=Pe(e,{[e]:r},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:o}):(this.component.props[e]=o,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let n=null;const r=e.parent||(n=e.ref&&e.ref.current);n&&(n.innerHTML=""),r&&r.appendChild(this)}}}class St extends Te{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const n=document.createElement("style");n.textContent=e,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(e,{styles:n}={}){super(e),this.setShadow(),this.injectStyles(n)}}var Ae={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:t=>/\D/.test(t)?t:`${t}px`},set:M.set,skin:M.skin};class ie extends Te{async connectedCallback(){const e=Re(this.props,Ae,this);e.element=this,e.ref=n=>{this.component=n},await B(),!this.disconnected&&Se(d(re,{...e}),this)}constructor(e){super(e)}}x(ie,"Props",Ae),typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",ie);var Ie,oe=[],Oe=v.__b,Ve=v.__r,Fe=v.diffed,Ue=v.__c,Ne=v.unmount;function jt(){var t;for(oe.sort(function(e,n){return e.__v.__b-n.__v.__b});t=oe.pop();)if(t.__P)try{t.__H.__h.forEach(W),t.__H.__h.forEach(se),t.__H.__h=[]}catch(e){t.__H.__h=[],v.__e(e,t.__v)}}v.__b=function(t){Oe&&Oe(t)}
vendor: 4,257 bytes, line 7
7,v.__r=function(t){Ve&&Ve(t);var e=t.__c.__H;e&&(e.__h.forEach(W),e.__h.forEach(se),e.__h=[])},v.diffed=function(t){Fe&&Fe(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(oe.push(e)!==1&&Ie===v.requestAnimationFrame||((Ie=v.requestAnimationFrame)||function(n){var r,o=function(){clearTimeout(i),We&&cancelAnimationFrame(r),setTimeout(n)},i=setTimeout(o,100);We&&(r=requestAnimationFrame(o))})(jt))},v.__c=function(t,e){e.some(function(n){try{n.__h.forEach(W),n.__h=n.__h.filter(function(r){return!r.__||se(r)})}catch(r){e.some(function(o){o.__h&&(o.__h=[])}),e=[],v.__e(r,n.__v)}}),Ue&&Ue(t,e)},v.unmount=function(t){Ne&&Ne(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{W(r)}catch(o){e=o}}),e&&v.__e(e,n.__v))};var We=typeof requestAnimationFrame=="function";function W(t){var e=t.__c;typeof e=="function"&&(t.__c=void 0,e())}function se(t){t.__c=t.__()}function zt(t,e){for(var n in e)t[n]=e[n];return t}function qe(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function q(t){this.props=t}(q.prototype=new S).isPureReactComponent=!0,q.prototype.shouldComponentUpdate=function(t,e){return qe(this.props,t)||qe(this.state,e)};var Ke=v.__b;v.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ke&&Ke(t)};var Mt=v.__e;v.__e=function(t,e,n){if(t.then){for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}Mt(t,e,n)};var Ge=v.unmount;function ae(){this.__u=0,this.t=null,this.__b=null}function Xe(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function K(){this.u=null,this.o=null}v.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Ge&&Ge(t)},(ae.prototype=new S).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Xe(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(!--r.__u){if(r.state.__e){var u=r.state.__e;r.__v.__k[0]=(function p(h,f,_){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(m){return p(m,f,_)}),h.__c&&h.__c.__P===f&&(h.__e&&_.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=_)),h})(u,u.__c.__P,u.__c.__O)}var a;for(r.setState({__e:r.__b=null});a=r.t.pop();)a.forceUpdate()}},c=e.__h===!0;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(s,s)},ae.prototype.componentWillUnmount=function(){this.t=[]},ae.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=(function i(s,l,c){return s&&(s.__c&&s.__c.__H&&(s.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),s.__c.__H=null),(s=zt({},s)).__c!=null&&(s.__c.__P===c&&(s.__c.__P=l),s.__c=null),s.__k=s.__k&&s.__k.map(function(u){return i(u,l,c)})),s})(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__e&&X(D,null,t.fallback);return o&&(o.__h=null),[X(D,null,e.__e?null:t.children),o]};var Je=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};(K.prototype=new S).__e=function(t){var e=this,n=Xe(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),Je(e,t,r)):o()};n?n(i):i()}},K.prototype.render=function(t){this.u=null,this.o=new Map;var e=F(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},K.prototype.componentDidUpdate=K.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Je(t,n,e)})};var Et=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Lt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Dt=typeof document<"u",Rt=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};S.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(S.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]}
7,set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ye=v.event;function Pt(){}function Bt(){return this.cancelBubble}function Ht(){return this.defaultPrevented}v.event=function(t){return Ye&&(t=Ye(t)),t.persist=Pt,t.isPropagationStopped=Bt,t.isDefaultPrevented=Ht,t.nativeEvent=t};var Ze={configurable:!0,get:function(){return this.class}},Qe=v.vnode;v.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var o=e.indexOf("-")===-1;for(var i in r={},n){var s=n[i];Dt&&i==="children"&&e==="noscript"||i==="value"&&"defaultValue"in n&&s==null||(i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!Rt(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():o&&Lt.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():s===null&&(s=void 0),r[i]=s)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=F(n.children).forEach(function(l){l.props.selected=r.value.indexOf(l.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=F(n.children).forEach(function(l){l.props.selected=r.multiple?r.defaultValue.indexOf(l.props.value)!=-1:r.defaultValue==l.props.value})),t.props=r,n.class!=n.className&&(Ze.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Ze))}t.$$typeof=Et,Qe&&Qe(t)};var et=v.__r;v.__r=function(t){et&&et(t),t.__c};const Tt={light:"outline",dark:"solid"};class At extends q{renderIcon(e){const{icon:n}=e;if(n){if(n.svg)return d("span",{class:"flex",dangerouslySetInnerHTML:{__html:n.svg}});if(n.src)return d("img",{src:n.src})}const r=N.categories[e.id]||N.categories.custom,o=this.props.icons=="auto"?Tt[this.props.theme]:this.props.icons;return r[o]||r}render(){let e=null;return d("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:d("div",{class:"flex relative",children:[this.categories.map((n,r)=>{const o=n.name||w.categories[n.id],i=!this.props.unfocused&&n.id==this.state.categoryId;return i&&(e=r),d("button",{"aria-label":o,"aria-selected":i||void 0,title:o,type:"button",class:"flex flex-grow flex-center",onMouseDown:s=>s.preventDefault(),onClick:()=>{this.props.onClick({category:n,i:r})},children:this.renderIcon(n)})}),d("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=g.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class It extends q{shouldComponentUpdate(e){for(let n in e)if(n!="children"&&e[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const G={rowsPerRender:10};class Ot extends S{getInitialState(e=this.props){return{skin:z.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=w.rtl?"rtl":"ltr",this.refs={menu:j(),navigation:j(),scroll:j(),search:j(),searchInput:j(),skinToneButton:j(),skinToneRadio:j()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const n in e)this.nextState[n]=e[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const o in this.nextState)this.props[o]=this.nextState[o],(o==="custom"||o==="c
7ategories")&&(n=!0);delete this.nextState;const r=this.getInitialState();if(n)return this.reset(r);this.setState(r)})}componentWillUnmount(){this.unregister()}async reset(e={}){await B(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){document.removeEventListener("click",this.handleClickOutside),this.darkMedia?.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const n of this.observers)e.includes(n)||n.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=g;this.refs.categories=new Map;const n=g.categories.map(o=>o.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const r=(o,i)=>{const s=[];s.__categoryId=i.id,s.__index=o.length,this.grid.push(s);const l=this.grid.length-1,c=l%G.rowsPerRender?{}:j();return c.index=l,c.posinset=this.grid.setsize+1,o.push(c),s};for(let o of e){const i=[];let s=r(i,o);for(let l of o.emojis)s.length==this.getPerLine()&&(s=r(i,o)),this.grid.setsize+=1,s.push(l);this.refs.categories.set(o.id,{root:j(),rows:i})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:n,emojiButtonSize:r}=e,o=()=>{const{width:s}=n.getBoundingClientRect();return Math.floor(s/r)},i=new ResizeObserver(()=>{this.unobserve({except:i}),this.setState({perLine:o()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return i.observe(n),this.observers.push(i),o()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,n]){const r=this.state.searchResults||this.grid,o=r[e]&&r[e][n];if(o)return L.get(o)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const n=new Map,r=s=>{s!=e.state.categoryId&&e.setState({categoryId:s})},o={root:this.refs.scroll.current,threshold:[0,1]},i=new IntersectionObserver(s=>{for(const c of s){const u=c.target.dataset.id;n.set(u,c.intersectionRatio)}const l=[...n];for(const[c,u]of l)if(u){r(c);break}},o);for(const{root:s}of this.refs.categories.values())i.observe(s.current);this.observers.push(i)}observeRows(){const e={...this.state.visibleRows},n=new IntersectionObserver(r=>{for(const o of r){const i=parseInt(o.target.dataset.index);o.isIntersecting?e[i]=!0:delete e[i]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(G.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*G.rowsPerRender}px`});for(const{rows:r}of this.refs.categories.values())for(const o of r)o.current&&n.observe(o.current);this.observers.push(n)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:n,left:r,right:o,up:i,down:s}){const l=this.state.searchResults||this.grid;if(!l.length)return;let[c,u]=this.state.pos;const a=(()=>{if(c==0&&u==0&&!e.repeat&&(r||i))return null;if(c==-1)return!e.repeat&&(o||s)&&n.selectionStart==n.value.length?[0,0]:null;if(r||o){let p=l[c];const h=r?-1:1;if(u+=h,!p[u]){if(c+=h,p=l[c],!p)return c=r?0:l.length-1,u=r?0:l[c].length-1,[c,u];u=r?p.length-1:0}return[c,u]}if(i||s){c+=i?-1:1;const p=l[c];return p?(p[u]||(u=p.length-1),[c,u]):(c=i?0:l.length-1,u=i?0:l[c].length-1,[c,u])}})();if(a)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:a,keyboard:!0},()=>{this.scrollTo({row:a[0]})})}scrollTo({categoryId:e,row:n}){const r=this.state.searchResults||this.grid;if(!r.length)return;const o=this.refs.scroll.current,i=o.getBoundingClientRect();let s=0;if(n>=0&&(e=r[n].__categoryId),e&&(s=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(i.top-o.scrollTop)+1),n>=0)if(!n)s=0;else{const l=r[n].__index,c=s+l*this.props.emojiButtonSize,u=c+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(c<o.scrollTop)s=c;else if(u>o.scrollTop+i.height)s=u-i.height;else return}this.ignoreMouse(),o.scrollTop=s}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:n,pos:r}
vendor: 12,217 bytes, lines 7-31
7){if(this.props.onEmojiSelect&&(!n&&r&&(n=this.getEmojiByPos(r)),n)){const o=He(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&Q.add(o,this.props),this.props.onEmojiSelect(o,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),z.set("skin",e)}renderNav(){return d(At,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return d("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[d("div",{class:"flex flex-middle flex-grow",children:[d("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:d(re,{emoji:e,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),d("div",{class:`margin-${this.dir[0]}`,children:e||n?d("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[d("div",{class:"preview-title ellipsis",children:e?e.name:w.search_no_results_1}),d("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:w.search_no_results_2})]}):d("div",{class:"preview-placeholder color-c",children:w.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:n,posinset:r,grid:o}){const i=this.props.emojiButtonSize,s=this.state.tempSkin||this.state.skin,c=(e.skins[s-1]||e.skins[0]).native,u=$t(this.state.pos,n),a=n.concat(e.id).join("");return d(It,{selected:u,skin:s,size:i,children:d("button",{"aria-label":c,"aria-selected":u||void 0,"aria-posinset":r,"aria-setsize":o.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:p=>this.handleEmojiClick({e:p,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[d("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(r-1)%this.props.emojiButtonColors.length]:void 0}}),d(re,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:s,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},a)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return d("div",{children:[d("div",{class:"spacer"}),d("div",{class:"flex flex-middle",children:[d("div",{class:"search relative flex-grow",children:[d("input",{type:"search",ref:this.refs.searchInput,placeholder:w.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),d("span",{class:"icon loupe flex",children:N.search.loupe}),this.state.searchResults&&d("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:N.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?d("div",{class:"category",ref:this.refs.search,children:[d("div",{class:`sticky padding-small align-${this.dir[0]}`,children:w.categories.search}),d("div",{children:e.length?e.map((n,r)=>d("div",{class:"flex",children:n.map((o,i)=>this.renderEmojiButton(o,{pos:[r,i],posinset:r*this.props.perLine+i+1,grid:e}))})):d("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&d("a",{onClick:this.props.onAddCustomEmoji,children:w.add_custom})})})]}):null}renderCategories(){const{categories:e}=g,n=!!this.state.searchResults,r=this.getPerLine();return d("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:e.map(o=>{const{root:i,rows:s}=this.refs.categories.get(o.id);return d("div",{"data-id":o.target?o.target.id:o.id,class:"category",ref:i,children:[d("div",{class:`sticky padding-small align-${this.dir[0]}`,children:o.name||w.categories[o.id]}),d("div",{class:"relative",style:{height:s.length*this.props.emojiButtonSize},children:s.map((l,c)=>{const u=l.index-l.index%G.rowsPerRender,a=this.state.visibleRows[u],p="current"in l?l:void 0;if(!a&&!p)return null;const h=c*r,f=h+r,_=o.emojis.slice(h,f);return _.length<r&&_.push(...new Array(r-_.length)),d("div",{"data-index":l.index,ref:p,class:"flex row",style:{top:c*this.props.emojiButtonSize},children:a&&_.map((m,b)=>{if(!m)return d("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const $=L.get(m);return this.renderEmojiButton($,{pos:[l.index,b],posinset:l.posinset+b,grid:this.grid})})},l.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:d("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:d("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":w.skins.choose,title:w.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:d("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),n=e?e.name:"";return d("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),r=this.base.getBoundingClientRect(),o={};return this.dir=="ltr"?o.right=r.right-n.right-3:o.left=n.left-r.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?o.bottom=r.bottom-n.top+6:(o.top=n.bottom-r.top+3,o.bottom="auto"),d("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":w.skins.choose,class:"menu hidden","data-position":o.top?"top":"bottom",style:o,children:[...Array(6).keys()].map(i=>{const s=i+1,l=this.state.skin==s;return d("div",{children:[d("input",{type:"radio",name:"skin-tone",value:s,"aria-label":w.skins[s],ref:l?this.refs.skinToneRadio:null,defaultChecked:l,onChange:()=>this.handleSkinMouseOver(s),onKeyDown:c=>{(c.code=="Enter"||c.code=="Space"||c.code=="Tab")&&(c.preventDefault(),this.handleSkinClick(s))}}),d("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(s),onMouseEnter:()=>this.handleSkinMouseOver(s),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[d("span",{class:`skin-tone skin-tone-${s}`}),d("span",{class:"margin-small-lr",children:w.skins[s]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return d("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&d("div",{class:"padding-lr",children:this.renderSearch()}),d("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:d("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),x(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),x(this,"handleClickOutside",n=>{const{element:r}=this.props;n.target!=r&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),x(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),x(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),x(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),x(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:r}=n,o=await L.search(r),i=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!o)return this.setState({searchResults:o,pos:[-1,-1]},i);const s=n.selectionStart==n.value.length?[0,0]:[-1,-1],l=[];l.setsize=o.length;let c=null;for(let u of o)(!l.length||c.length==this.getPerLine())&&(c=[],c.__categoryId="search",c.__index=l.length,l.push(c)),c.push(u);this.ignoreMouse(),this.setState({searchResults:l,pos:s},i)}),x(this,"handleSearchKeyDown",n=>{const r=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:r,left:!0});break;case"ArrowRight":this.navigate({e:n,input:r,right:!0});break;case"ArrowUp":this.navigate({e:n,input:r,up:!0});break;case"ArrowDown":this.navigate({e:n,input:r,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),x(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),x(this,"handleCategoryClick",({category:n,i:r})=>{this.scrollTo(r==0?{row:-1}:{categoryId:n.id})}),x(this,"openSkins",n=>{const{currentTarget:r}=n,o=r.getBoundingClientRect();this.setState({showSkins:o},async()=>{await kt(2);const i=this.refs.menu.current;i&&(i.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class ce extends St{async connectedCallback(){const e=Re(this.props,M,this);e.element=this,e.ref=n=>{this.component=n},await B(e),!this.disconnected&&Se(d(Ot,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:le(tt)})}}x(ce,"Props",M),typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",ce);var tt={};tt=`:host { 8 width: min-content; 9 height: 435px; 10 min-height: 230px; 11 border-radius: var(--border-radius); 12 box-shadow: var(--shadow); 13 --border-radius: 10px; 14 --category-icon-size: 18px; 15 --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; 16 --font-size: 15px; 17 --preview-placeholder-size: 21px; 18 --preview-title-size: 1.1em; 19 --preview-subtitle-size: .9em; 20 --shadow-color: 0deg 0% 0%; 21 --shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14); 22 display: flex; 23} 24 25[data-theme="light"] { 26 --em-rgb-color: var(--rgb-color, 34, 36, 39); 27 --em-rgb-accent: var(--rgb-accent, 34, 102, 237); 28 --em-rgb-background: var(--rgb-background, 255, 255, 255); 29 --em-rgb-input: var(--rgb-input, 255, 255, 255); 30 --em-color-border: var(--color-border, rgba(0, 0, 0, .05)); 31 --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1)
31); 32} 33 34[data-theme="dark"] { 35 --em-rgb-color: var(--rgb-color, 222, 222, 221); 36 --em-rgb-accent: var(--rgb-accent, 58, 130, 247); 37 --em-rgb-background: var(--rgb-background, 21, 22, 23); 38 --em-rgb-input: var(--rgb-input, 0, 0, 0); 39 --em-color-border: var(--color-border, rgba(255, 255, 255, .1)); 40 --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2)); 41} 42 43#root { 44 --color-a: rgb(var(--em-rgb-color)); 45 --color-b: rgba(var(--em-rgb-color), .65); 46 --color-c: rgba(var(--em-rgb-color), .45); 47 --padding: 12px; 48 --padding-small: calc(var(--padding) / 2); 49 --sidebar-width: 16px; 50 --duration: 225ms; 51 --duration-fast: 125ms; 52 --duration-instant: 50ms; 53 --easing: cubic-bezier(.4, 0, .2, 1); 54 width: 100%; 55 text-align: left; 56 border-radius: var(--border-radius); 57 background-color: rgb(var(--em-rgb-background)); 58 position: relative; 59} 60 61@media (prefers-reduced-motion) { 62 #root { 63 --duration: 0; 64 --duration-fast: 0; 65 --duration-instant: 0; 66 } 67} 68 69#root[data-menu] button { 70 cursor: auto; 71} 72 73#root[data-menu] .menu button { 74 cursor: pointer; 75} 76 77:host, #root, input, button { 78 color: rgb(var(--em-rgb-color)); 79 font-family: var(--font-family); 80 font-size: var(--font-size); 81 -webkit-font-smoothing: antialiased; 82 -moz-osx-font-smoothing: grayscale; 83 line-height: normal; 84} 85 86*, :before, :after { 87 box-sizing: border-box; 88 min-width: 0; 89 margin: 0; 90 padding: 0; 91} 92 93.relative { 94 position: relative; 95} 96 97.flex { 98 display: flex; 99} 100 101.flex-auto { 102 flex: none; 103} 104 105.flex-center { 106 justify-content: center; 107} 108 109.flex-column { 110 flex-direction: column; 111} 112 113.flex-grow { 114 flex: auto; 115} 116 117.flex-middle { 118 align-items: center; 119} 120 121.flex-wrap { 122 flex-wrap: wrap; 123} 124 125.padding { 126 padding: var(--padding); 127} 128 129.padding-t { 130 padding-top: var(--padding); 131} 132 133.padding-lr { 134 padding-left: var(--padding); 135 padding-right: var(--padding); 136} 137 138.padding-r { 139 padding-right: var(--padding); 140} 141 142.padding-small { 143 padding: var(--padding-small); 144} 145 146.padding-small-b { 147 padding-bottom: var(--padding-small); 148} 149 150.padding-small-lr { 151 padding-left: var(--padding-small); 152 padding-right: var(--padding-small); 153} 154 155.margin { 156 margin: var(--padding); 157} 158 159.margin-r { 160 margin-right: var(--padding); 161} 162 163.margin-l { 164 margin-left: var(--padding); 165} 166 167.margin-small-l { 168 margin-left: var(--padding-small); 169} 170 171.margin-small-lr { 172 margin-left: var(--padding-small); 173 margin-right: var(--padding-small); 174} 175 176.align-l { 177 text-align: left; 178} 179 180.align-r { 181 text-align: right; 182} 183 184.color-a { 185 color: var(--color-a); 186} 187 188.color-b { 189 color: var(--color-b); 190} 191 192.color-c { 193 color: var(--color-c); 194} 195 196.ellipsis { 197 white-space: nowrap; 198 max-width: 100%; 199 width: auto; 200 text-overflow: ellipsis; 201 overflow: hidden; 202} 203 204.sr-only { 205 width: 1px; 206 height: 1px; 207 position: absolute; 208 top: auto; 209 left: -10000px; 210 overflow: hidden; 211} 212 213a { 214 cursor: pointer; 215 color: rgb(var(--em-rgb-accent)); 216} 217 218a:hover { 219 text-decoration: underline; 220} 221 222.spacer { 223 height: 10px; 224} 225 226[dir="rtl"] .scroll { 227 padding-left: 0; 228 padding-right: var(--padding); 229} 230 231.scroll { 232 padding-right: 0; 233 overflow-x: hidden; 234 overflow-y: auto; 235} 236 237.scroll::-webkit-scrollbar {
238 width: var(--sidebar-width); 239 height: var(--sidebar-width); 240} 241 242.scroll::-webkit-scrollbar-track { 243 border: 0; 244} 245 246.scroll::-webkit-scrollbar-button { 247 width: 0; 248 height: 0; 249 display: none; 250} 251 252.scroll::-webkit-scrollbar-corner { 253 background-color: rgba(0, 0, 0, 0); 254} 255 256.scroll::-webkit-scrollbar-thumb { 257 min-height: 20%; 258 min-height: 65px; 259 border: 4px solid rgb(var(--em-rgb-background)); 260 border-radius: 8px; 261} 262 263.scroll::-webkit-scrollbar-thumb:hover { 264 background-color: var(--em-color-border-over) !important; 265} 266 267.scroll:hover::-webkit-scrollbar-thumb { 268 background-color: var(--em-color-border); 269} 270 271.sticky { 272 z-index: 1; 273 background-color: rgba(var(--em-rgb-background), .9); 274 -webkit-backdrop-filter: blur(4px); 275 backdrop-filter: blur(4px); 276 font-weight: 500; 277 position: sticky; 278 top: -1px; 279} 280 281[dir="rtl"] .search input[type="search"] { 282 padding: 10px 2.2em 10px 2em; 283} 284 285[dir="rtl"] .search .loupe { 286 left: auto; 287 right: .7em; 288} 289 290[dir="rtl"] .search .delete { 291 left: .7em; 292 right: auto; 293} 294 295.search { 296 z-index: 2; 297 position: relative; 298} 299 300.search input, .search button { 301 font-size: calc(var(--font-size) - 1px); 302} 303 304.search input[type="search"] { 305 width: 100%; 306 background-color: var(--em-color-border); 307 transition-duration: var(--duration); 308 transition-property: background-color, box-shadow; 309 transition-timing-function: var(--easing); 310 border: 0; 311 border-radius: 10px; 312 outline: 0; 313 padding: 10px 2em 10px 2.2em; 314 display: block; 315} 316 317.search input[type="search"]::-ms-input-placeholder { 318 color: inherit; 319 opacity: .6; 320} 321 322.search input[type="search"]::placeholder { 323 color: inherit; 324 opacity: .6; 325} 326 327.search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration { 328 -webkit-appearance: none; 329 -ms-appearance: none; 330 appearance: none; 331} 332 333.search input[type="search"]:focus { 334 background-color: rgb(var(--em-rgb-input)); 335 box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2); 336} 337 338.search .icon { 339 z-index: 1; 340 color: rgba(var(--em-rgb-color), .7); 341 position: absolute; 342 top: 50%; 343 transform: translateY(-50%); 344} 345 346.search .loupe { 347 pointer-events: none; 348 left: .7em; 349} 350 351.search .delete { 352 right: .7em; 353} 354 355svg { 356 fill: currentColor; 357 width: 1em; 358 height: 1em; 359} 360 361button { 362 -webkit-appearance: none; 363 -ms-appearance: none; 364 appearance: none; 365 cursor: pointer; 366 color: currentColor; 367 background-color: rgba(0, 0, 0, 0); 368 border: 0; 369} 370 371#nav { 372 z-index: 2; 373 padding-top: 12px; 374 padding-bottom: 12px; 375 padding-right: var(--sidebar-width); 376 position: relative; 377} 378 379#nav button { 380 color: var(--color-b); 381 transition: color var(--duration) var(--easing); 382} 383 384#nav button:hover { 385 color: var(--color-a); 386} 387 388#nav svg, #nav img { 389 width: var(--category-icon-size); 390 height: var(--category-icon-size); 391} 392 393#nav[dir="rtl"] .bar { 394 left: auto; 395 right: 0; 396} 397 398#nav .bar { 399 width: 100%; 400 height: 3px; 401 background-color: rgb(var(--em-rgb-accent)); 402 transition: transform var(--duration) var(--easing); 403 border-radius: 3px 3px 0 0; 404 position: absolute; 405 bottom: -12px; 406 left: 0; 407} 408 409#nav button[aria-selected] { 410 color: rgb(var(--em-rgb-accent)); 411} 412 413#preview { 414 z-index: 2; 415 padding: calc(var(--padding) + 4px) var(--padding); 416 padding-right: var(--sidebar-width); 417 position: relative; 418} 419 420#preview .preview-placeholder { 421 font-size: var(--preview-placeholder-size); 422} 423 424#preview .preview-title { 425 font-size: var(--preview-title-size); 426} 427 428#preview .preview-subtitle { 429 font-size: var(--preview-subtitle-size); 430} 431 432#nav:before, #preview:before { 433 content: ""; 434 height: 2px; 435 position: absolute; 436 left: 0; 437 right: 0; 438} 439
440#nav[data-position="top"]:before, #preview[data-position="top"]:before { 441 background: linear-gradient(to bottom, var(--em-color-border), transparent); 442 top: 100%; 443} 444 445#nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before { 446 background: linear-gradient(to top, var(--em-color-border), transparent); 447 bottom: 100%; 448} 449 450.category:last-child { 451 min-height: calc(100% + 1px); 452} 453 454.category button { 455 font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif; 456 position: relative; 457} 458 459.category button > * { 460 position: relative; 461} 462 463.category button .background { 464 opacity: 0; 465 background-color: var(--em-color-border); 466 transition: opacity var(--duration-fast) var(--easing) var(--duration-instant); 467 position: absolute; 468 top: 0; 469 bottom: 0; 470 left: 0; 471 right: 0; 472} 473 474.category button:hover .background { 475 transition-duration: var(--duration-instant); 476 transition-delay: 0s; 477} 478 479.category button[aria-selected] .background { 480 opacity: 1; 481} 482 483.category button[data-keyboard] .background { 484 transition: none; 485} 486 487.row { 488 width: 100%; 489 position: absolute; 490 top: 0; 491 left: 0; 492} 493 494.skin-tone-button { 495 border: 1px solid rgba(0, 0, 0, 0); 496 border-radius: 100%; 497} 498 499.skin-tone-button:hover { 500 border-color: var(--em-color-border); 501} 502 503.skin-tone-button:active .skin-tone { 504 transform: scale(.85) !important; 505} 506 507.skin-tone-button .skin-tone { 508 transition: transform var(--duration) var(--easing); 509} 510 511.skin-tone-button[aria-selected] { 512 background-color: var(--em-color-border); 513 border-top-color: rgba(0, 0, 0, .05); 514 border-bottom-color: rgba(0, 0, 0, 0); 515 border-left-width: 0; 516 border-right-width: 0; 517} 518 519.skin-tone-button[aria-selected] .skin-tone { 520 transform: scale(.9); 521} 522 523.menu { 524 z-index: 2; 525 white-space: nowrap; 526 border: 1px solid var(--em-color-border); 527 background-color: rgba(var(--em-rgb-background), .9); 528 -webkit-backdrop-filter: blur(4px); 529 backdrop-filter: blur(4px); 530 transition-property: opacity, transform; 531 transition-duration: var(--duration); 532 transition-timing-function: var(--easing); 533 border-radius: 10px; 534 padding: 4px; 535 position: absolute; 536 box-shadow: 1px 1px 5px rgba(0, 0, 0, .05); 537} 538 539.menu.hidden { 540 opacity: 0; 541} 542 543.menu[data-position="bottom"] { 544 transform-origin: 100% 100%; 545} 546 547.menu[data-position="bottom"].hidden { 548 transform: scale(.9)rotate(-3deg)translateY(5%); 549} 550 551.menu[data-position="top"] { 552 transform-origin: 100% 0; 553} 554 555.menu[data-position="top"].hidden { 556 transform: scale(.9)rotate(3deg)translateY(-5%); 557} 558 559.menu input[type="radio"] { 560 clip: rect(0 0 0 0); 561 width: 1px; 562 height: 1px; 563 border: 0; 564 margin: 0; 565 padding: 0; 566 position: absolute; 567 overflow: hidden; 568} 569 570.menu input[type="radio"]:checked + .option { 571 box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent)); 572} 573 574.option { 575 width: 100%; 576 border-radius: 6px; 577 padding: 4px 6px; 578} 579 580.option:hover { 581 color: #fff; 582 background-color: rgb(var(--em-rgb-accent)); 583} 584 585.skin-tone { 586 width: 16px; 587 height: 16px; 588 border-radius: 100%; 589 display: inline-block; 590 position: relative; 591 overflow: hidden; 592} 593 594.skin-tone:after { 595 content: ""; 596 mix-blend-mode: overlay; 597 background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0)); 598 border: 1px solid rgba(0, 0, 0, .8); 599 border-radius: 100%; 600 position: absolute; 601 top: 0; 602 bottom: 0; 603 left: 0; 604 right: 0; 605 box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff; 606} 607 608.skin-tone-1 { 609 background-color: #ffc93a; 610} 611 612.skin-tone-2 { 613 background-color: #ffdab7; 614} 615 616.skin-tone-3 { 617 background-color: #e7b98f; 618} 619 620.skin-tone-4 { 621 background-color: #c88c61; 622} 623 624.skin-tone-5 { 625 background-color: #a46134; 626} 627 628.skin-tone-6 { 629 background-color: #5d4437; 630} 631 632[data-index] { 633 justify-content: space-between; 634} 635 636[data-emoji-set="twitter"] .skin-tone:after { 637 box-shadow: none; 638 border-color: rgba(0, 0, 0, .5); 639} 640 641[data-emoji-set="twitter"] .skin-tone-1 { 642 background-color: #fade72; 643} 644 645[data-emoji-set="twitter"] .skin-tone-2 { 646 background-color: #f3dfd0; 647} 648 649[data-emoji-set="twitter"] .skin-tone-3 { 650 background-color: #eed3a8; 651} 652 653[data-emoji-set="twitter"] .skin-tone-4 { 654 background-color: #cfad8d; 655} 656 657[data-emoji-set="twitter"] .skin-tone-5 { 658 background-color: #a8805d; 659} 660 661[data-emoji-set="twitter"] .skin-tone-6 { 662 background-color: #765542; 663} 664 665[data-emoji-set="google"] .skin-tone:after { 666 box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4); 667} 668 669[data-emoji-set="google"] .skin-tone-1 { 670 background-color: #f5c748; 671} 672 673[data-emoji-set="google"] .skin-tone-2 {
674 background-color: #f1d5aa; 675} 676 677[data-emoji-set="google"] .skin-tone-3 { 678 background-color: #d4b48d; 679} 680 681[data-emoji-set="google"] .skin-tone-4 { 682 background-color: #aa876b; 683} 684 685[data-emoji-set="google"] .skin-tone-5 { 686 background-color: #916544; 687} 688 689[data-emoji-set="google"] .skin-tone-6 { 690 background-color: #61493f; 691} 692 693[data-emoji-set="facebook"] .skin-tone:after { 694 border-color: rgba(0, 0, 0, .4); 695 box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff; 696} 697 698[data-emoji-set="facebook"] .skin-tone-1 { 699 background-color: #f5c748; 700} 701 702[data-emoji-set="facebook"] .skin-tone-2 { 703 background-color: #f1d5aa; 704} 705 706[data-emoji-set="facebook"] .skin-tone-3 { 707 background-color: #d4b48d; 708} 709 710[data-emoji-set="facebook"] .skin-tone-4 { 711 background-color: #aa876b; 712} 713 714[data-emoji-set="facebook"] .skin-tone-5 { 715 background-color: #916544; 716} 717 718[data-emoji-set="facebook"] .skin-tone-6 { 719 background-color: #61493f; 720} 721 722`;export{g as Data,ie as Emoji,Q as FrequentlyUsed,w as I18n,ce as Picker,Be as SafeFlags,L as SearchIndex,z as Store,wt as getEmojiDataFromNative,B as init};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.