@opositatest/markdown-text-editor 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1901 @@
1
+ //#region node_modules/emoji-mart/dist/module.js
2
+ function e(e) {
3
+ return e && e.__esModule ? e.default : e;
4
+ }
5
+ function t(e, t, n) {
6
+ return t in e ? Object.defineProperty(e, t, {
7
+ value: n,
8
+ enumerable: !0,
9
+ configurable: !0,
10
+ writable: !0
11
+ }) : e[t] = n, e;
12
+ }
13
+ var n, r, i, a, o, s, c = {}, l = [], u = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
14
+ function d(e, t) {
15
+ for (var n in t) e[n] = t[n];
16
+ return e;
17
+ }
18
+ function f(e) {
19
+ var t = e.parentNode;
20
+ t && t.removeChild(e);
21
+ }
22
+ function p(e, t, r) {
23
+ var i, a, o, s = {};
24
+ for (o in t) o == "key" ? i = t[o] : o == "ref" ? a = t[o] : s[o] = t[o];
25
+ if (arguments.length > 2 && (s.children = arguments.length > 3 ? n.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (o in e.defaultProps) s[o] === void 0 && (s[o] = e.defaultProps[o]);
26
+ return m(e, s, i, a, null);
27
+ }
28
+ function m(e, t, n, a, o) {
29
+ var s = {
30
+ type: e,
31
+ props: t,
32
+ key: n,
33
+ ref: a,
34
+ __k: null,
35
+ __: null,
36
+ __b: 0,
37
+ __e: null,
38
+ __d: void 0,
39
+ __c: null,
40
+ __h: null,
41
+ constructor: void 0,
42
+ __v: o ?? ++i
43
+ };
44
+ return o == null && r.vnode != null && r.vnode(s), s;
45
+ }
46
+ function h() {
47
+ return { current: null };
48
+ }
49
+ function g(e) {
50
+ return e.children;
51
+ }
52
+ function _(e, t) {
53
+ this.props = e, this.context = t;
54
+ }
55
+ function v(e, t) {
56
+ if (t == null) return e.__ ? v(e.__, e.__.__k.indexOf(e) + 1) : null;
57
+ for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
58
+ return typeof e.type == "function" ? v(e) : null;
59
+ }
60
+ function y(e) {
61
+ var t, n;
62
+ if ((e = e.__) != null && e.__c != null) {
63
+ for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
64
+ e.__e = e.__c.base = n.__e;
65
+ break;
66
+ }
67
+ return y(e);
68
+ }
69
+ }
70
+ function b(e) {
71
+ (!e.__d && (e.__d = !0) && a.push(e) && !x.__r++ || s !== r.debounceRendering) && ((s = r.debounceRendering) || o)(x);
72
+ }
73
+ function x() {
74
+ for (var e; x.__r = a.length;) e = a.sort(function(e, t) {
75
+ return e.__v.__b - t.__v.__b;
76
+ }), a = [], e.some(function(e) {
77
+ var t, n, r, i, a, o;
78
+ e.__d && (a = (i = (t = e).__v).__e, (o = t.__P) && (n = [], (r = d({}, i)).__v = i.__v + 1, D(o, i, r, t.__n, o.ownerSVGElement !== void 0, i.__h == null ? null : [a], n, a ?? v(i), i.__h), ie(n, i), i.__e != a && y(i)));
79
+ });
80
+ }
81
+ function S(e, t, n, r, i, a, o, s, u, d) {
82
+ var f, p, h, _, y, b, x, S = r && r.__k || l, w = S.length;
83
+ for (n.__k = [], f = 0; f < t.length; f++) if ((_ = n.__k[f] = (_ = t[f]) == null || typeof _ == "boolean" ? null : typeof _ == "string" || typeof _ == "number" || typeof _ == "bigint" ? m(null, _, null, null, _) : Array.isArray(_) ? m(g, { children: _ }, null, null, null) : _.__b > 0 ? m(_.type, _.props, _.key, null, _.__v) : _) != null) {
84
+ if (_.__ = n, _.__b = n.__b + 1, (h = S[f]) === null || h && _.key == h.key && _.type === h.type) S[f] = void 0;
85
+ else for (p = 0; p < w; p++) {
86
+ if ((h = S[p]) && _.key == h.key && _.type === h.type) {
87
+ S[p] = void 0;
88
+ break;
89
+ }
90
+ h = null;
91
+ }
92
+ D(e, _, h ||= c, i, a, o, s, u, d), y = _.__e, (p = _.ref) && h.ref != p && (x ||= [], h.ref && x.push(h.ref, null, _), x.push(p, _.__c || y, _)), y == null ? u && h.__e == u && u.parentNode != e && (u = v(h)) : (b ??= y, typeof _.type == "function" && _.__k === h.__k ? _.__d = u = C(_, u, e) : u = T(e, _, h, S, y, u), typeof n.type == "function" && (n.__d = u));
93
+ }
94
+ for (n.__e = b, f = w; f--;) S[f] != null && (typeof n.type == "function" && S[f].__e != null && S[f].__e == n.__d && (n.__d = v(r, f + 1)), se(S[f], S[f]));
95
+ if (x) for (f = 0; f < x.length; f++) oe(x[f], x[++f], x[++f]);
96
+ }
97
+ function C(e, t, n) {
98
+ for (var r, i = e.__k, a = 0; i && a < i.length; a++) (r = i[a]) && (r.__ = e, t = typeof r.type == "function" ? C(r, t, n) : T(n, r, r, i, r.__e, t));
99
+ return t;
100
+ }
101
+ function w(e, t) {
102
+ return t ||= [], e == null || typeof e == "boolean" || (Array.isArray(e) ? e.some(function(e) {
103
+ w(e, t);
104
+ }) : t.push(e)), t;
105
+ }
106
+ function T(e, t, n, r, i, a) {
107
+ var o, s, c;
108
+ if (t.__d !== void 0) o = t.__d, t.__d = void 0;
109
+ else if (n == null || i != a || i.parentNode == null) n: if (a == null || a.parentNode !== e) e.appendChild(i), o = null;
110
+ else {
111
+ for (s = a, c = 0; (s = s.nextSibling) && c < r.length; c += 2) if (s == i) break n;
112
+ e.insertBefore(i, a), o = a;
113
+ }
114
+ return o === void 0 ? i.nextSibling : o;
115
+ }
116
+ function ee(e, t, n, r, i) {
117
+ for (var a in n) a === "children" || a === "key" || a in t || E(e, a, null, n[a], r);
118
+ for (a in t) i && typeof t[a] != "function" || a === "children" || a === "key" || a === "value" || a === "checked" || n[a] === t[a] || E(e, a, t[a], n[a], r);
119
+ }
120
+ function te(e, t, n) {
121
+ t[0] === "-" ? e.setProperty(t, n) : e[t] = n == null ? "" : typeof n != "number" || u.test(t) ? n : n + "px";
122
+ }
123
+ function E(e, t, n, r, i) {
124
+ var a;
125
+ n: if (t === "style") if (typeof n == "string") e.style.cssText = n;
126
+ else {
127
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || te(e.style, t, "");
128
+ if (n) for (t in n) r && n[t] === r[t] || te(e.style, t, n[t]);
129
+ }
130
+ else if (t[0] === "o" && t[1] === "n") a = t !== (t = t.replace(/Capture$/, "")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r || e.addEventListener(t, a ? re : ne, a) : e.removeEventListener(t, a ? re : ne, a);
131
+ else if (t !== "dangerouslySetInnerHTML") {
132
+ if (i) t = t.replace(/xlink[H:h]/, "h").replace(/sName$/, "s");
133
+ else if (t !== "href" && t !== "list" && t !== "form" && t !== "tabIndex" && t !== "download" && t in e) try {
134
+ e[t] = n ?? "";
135
+ break n;
136
+ } catch {}
137
+ typeof n == "function" || (n != null && (!1 !== n || t[0] === "a" && t[1] === "r") ? e.setAttribute(t, n) : e.removeAttribute(t));
138
+ }
139
+ }
140
+ function ne(e) {
141
+ this.l[e.type + !1](r.event ? r.event(e) : e);
142
+ }
143
+ function re(e) {
144
+ this.l[e.type + !0](r.event ? r.event(e) : e);
145
+ }
146
+ function D(e, t, n, i, a, o, s, c, l) {
147
+ var u, f, p, m, h, v, y, b, x, C, w, T = t.type;
148
+ if (t.constructor !== void 0) return null;
149
+ n.__h != null && (l = n.__h, c = t.__e = n.__e, t.__h = null, o = [c]), (u = r.__b) && u(t);
150
+ try {
151
+ n: if (typeof T == "function") {
152
+ if (b = t.props, x = (u = T.contextType) && i[u.__c], C = u ? x ? x.props.value : u.__ : i, n.__c ? y = (f = t.__c = n.__c).__ = f.__E : ("prototype" in T && T.prototype.render ? t.__c = f = new T(b, C) : (t.__c = f = new _(b, C), f.constructor = T, f.render = ce), x && x.sub(f), f.props = b, f.state ||= {}, f.context = C, f.__n = i, p = f.__d = !0, f.__h = []), f.__s ??= f.state, T.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = d({}, f.__s)), d(f.__s, T.getDerivedStateFromProps(b, f.__s))), m = f.props, h = f.state, p) T.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), f.componentDidMount != null && f.__h.push(f.componentDidMount);
153
+ else {
154
+ if (T.getDerivedStateFromProps == null && b !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(b, C), !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(b, f.__s, C) || t.__v === n.__v) {
155
+ f.props = b, f.state = f.__s, t.__v !== n.__v && (f.__d = !1), f.__v = t, t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(e) {
156
+ e && (e.__ = t);
157
+ }), f.__h.length && s.push(f);
158
+ break n;
159
+ }
160
+ f.componentWillUpdate != null && f.componentWillUpdate(b, f.__s, C), f.componentDidUpdate != null && f.__h.push(function() {
161
+ f.componentDidUpdate(m, h, v);
162
+ });
163
+ }
164
+ f.context = C, f.props = b, f.state = f.__s, (u = r.__r) && u(t), f.__d = !1, f.__v = t, f.__P = e, u = f.render(f.props, f.state, f.context), f.state = f.__s, f.getChildContext != null && (i = d(d({}, i), f.getChildContext())), p || f.getSnapshotBeforeUpdate == null || (v = f.getSnapshotBeforeUpdate(m, h)), w = u != null && u.type === g && u.key == null ? u.props.children : u, S(e, Array.isArray(w) ? w : [w], t, n, i, a, o, s, c, l), f.base = t.__e, t.__h = null, f.__h.length && s.push(f), y && (f.__E = f.__ = null), f.__e = !1;
165
+ } else o == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = ae(n.__e, t, n, i, a, o, s, l);
166
+ (u = r.diffed) && u(t);
167
+ } catch (e) {
168
+ t.__v = null, (l || o != null) && (t.__e = c, t.__h = !!l, o[o.indexOf(c)] = null), r.__e(e, t, n);
169
+ }
170
+ }
171
+ function ie(e, t) {
172
+ r.__c && r.__c(t, e), e.some(function(t) {
173
+ try {
174
+ e = t.__h, t.__h = [], e.some(function(e) {
175
+ e.call(t);
176
+ });
177
+ } catch (e) {
178
+ r.__e(e, t.__v);
179
+ }
180
+ });
181
+ }
182
+ function ae(e, t, r, i, a, o, s, l) {
183
+ var u, d, p, m = r.props, h = t.props, g = t.type, _ = 0;
184
+ if (g === "svg" && (a = !0), o != null) {
185
+ for (; _ < o.length; _++) if ((u = o[_]) && "setAttribute" in u == !!g && (g ? u.localName === g : u.nodeType === 3)) {
186
+ e = u, o[_] = null;
187
+ break;
188
+ }
189
+ }
190
+ if (e == null) {
191
+ if (g === null) return document.createTextNode(h);
192
+ e = a ? document.createElementNS("http://www.w3.org/2000/svg", g) : document.createElement(g, h.is && h), o = null, l = !1;
193
+ }
194
+ if (g === null) m === h || l && e.data === h || (e.data = h);
195
+ else {
196
+ if (o &&= n.call(e.childNodes), d = (m = r.props || c).dangerouslySetInnerHTML, p = h.dangerouslySetInnerHTML, !l) {
197
+ if (o != null) for (m = {}, _ = 0; _ < e.attributes.length; _++) m[e.attributes[_].name] = e.attributes[_].value;
198
+ (p || d) && (p && (d && p.__html == d.__html || p.__html === e.innerHTML) || (e.innerHTML = p && p.__html || ""));
199
+ }
200
+ if (ee(e, h, m, a, l), p) t.__k = [];
201
+ else if (_ = t.props.children, S(e, Array.isArray(_) ? _ : [_], t, r, i, a && g !== "foreignObject", o, s, o ? o[0] : r.__k && v(r, 0), l), o != null) for (_ = o.length; _--;) o[_] != null && f(o[_]);
202
+ l || ("value" in h && (_ = h.value) !== void 0 && (_ !== m.value || _ !== e.value || g === "progress" && !_) && E(e, "value", _, m.value, !1), "checked" in h && (_ = h.checked) !== void 0 && _ !== e.checked && E(e, "checked", _, m.checked, !1));
203
+ }
204
+ return e;
205
+ }
206
+ function oe(e, t, n) {
207
+ try {
208
+ typeof e == "function" ? e(t) : e.current = t;
209
+ } catch (e) {
210
+ r.__e(e, n);
211
+ }
212
+ }
213
+ function se(e, t, n) {
214
+ var i, a;
215
+ if (r.unmount && r.unmount(e), (i = e.ref) && (i.current && i.current !== e.__e || oe(i, null, t)), (i = e.__c) != null) {
216
+ if (i.componentWillUnmount) try {
217
+ i.componentWillUnmount();
218
+ } catch (e) {
219
+ r.__e(e, t);
220
+ }
221
+ i.base = i.__P = null;
222
+ }
223
+ if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && se(i[a], t, typeof e.type != "function");
224
+ n || e.__e == null || f(e.__e), e.__e = e.__d = void 0;
225
+ }
226
+ function ce(e, t, n) {
227
+ return this.constructor(e, n);
228
+ }
229
+ function le(e, t, i) {
230
+ var a, o, s;
231
+ r.__ && r.__(e, t), o = (a = typeof i == "function") ? null : i && i.__k || t.__k, s = [], D(t, e = (!a && i || t).__k = p(g, null, [e]), o || c, c, t.ownerSVGElement !== void 0, !a && i ? [i] : o ? null : t.firstChild ? n.call(t.childNodes) : null, s, !a && i ? i : o ? o.__e : t.firstChild, a), ie(s, e);
232
+ }
233
+ n = l.slice, r = { __e: function(e, t) {
234
+ for (var n, r, i; t = t.__;) if ((n = t.__c) && !n.__) try {
235
+ if ((r = n.constructor) && r.getDerivedStateFromError != null && (n.setState(r.getDerivedStateFromError(e)), i = n.__d), n.componentDidCatch != null && (n.componentDidCatch(e), i = n.__d), i) return n.__E = n;
236
+ } catch (t) {
237
+ e = t;
238
+ }
239
+ throw e;
240
+ } }, i = 0, _.prototype.setState = function(e, t) {
241
+ var n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = d({}, this.state);
242
+ typeof e == "function" && (e = e(d({}, n), this.props)), e && d(n, e), e != null && this.__v && (t && this.__h.push(t), b(this));
243
+ }, _.prototype.forceUpdate = function(e) {
244
+ this.__v && (this.__e = !0, e && this.__h.push(e), b(this));
245
+ }, _.prototype.render = g, a = [], o = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, x.__r = 0;
246
+ var ue = 0;
247
+ function O(e, t, n, i, a) {
248
+ var o, s, c = {};
249
+ for (s in t) s == "ref" ? o = t[s] : c[s] = t[s];
250
+ var l = {
251
+ type: e,
252
+ props: c,
253
+ key: n,
254
+ ref: o,
255
+ __k: null,
256
+ __: null,
257
+ __b: 0,
258
+ __e: null,
259
+ __d: void 0,
260
+ __c: null,
261
+ __h: null,
262
+ constructor: void 0,
263
+ __v: --ue,
264
+ __source: i,
265
+ __self: a
266
+ };
267
+ if (typeof e == "function" && (o = e.defaultProps)) for (s in o) c[s] === void 0 && (c[s] = o[s]);
268
+ return r.vnode && r.vnode(l), l;
269
+ }
270
+ function de(e, t) {
271
+ try {
272
+ window.localStorage[`emoji-mart.${e}`] = JSON.stringify(t);
273
+ } catch {}
274
+ }
275
+ function fe(e) {
276
+ try {
277
+ let t = window.localStorage[`emoji-mart.${e}`];
278
+ if (t) return JSON.parse(t);
279
+ } catch {}
280
+ }
281
+ var k = {
282
+ set: de,
283
+ get: fe
284
+ }, A = /* @__PURE__ */ new Map(), pe = [
285
+ {
286
+ v: 15,
287
+ emoji: "🫨"
288
+ },
289
+ {
290
+ v: 14,
291
+ emoji: "🫠"
292
+ },
293
+ {
294
+ v: 13.1,
295
+ emoji: "😶‍🌫️"
296
+ },
297
+ {
298
+ v: 13,
299
+ emoji: "🥸"
300
+ },
301
+ {
302
+ v: 12.1,
303
+ emoji: "🧑‍🦰"
304
+ },
305
+ {
306
+ v: 12,
307
+ emoji: "🥱"
308
+ },
309
+ {
310
+ v: 11,
311
+ emoji: "🥰"
312
+ },
313
+ {
314
+ v: 5,
315
+ emoji: "🤩"
316
+ },
317
+ {
318
+ v: 4,
319
+ emoji: "👱‍♀️"
320
+ },
321
+ {
322
+ v: 3,
323
+ emoji: "🤣"
324
+ },
325
+ {
326
+ v: 2,
327
+ emoji: "👋🏻"
328
+ },
329
+ {
330
+ v: 1,
331
+ emoji: "🙃"
332
+ }
333
+ ];
334
+ function me() {
335
+ for (let { v: e, emoji: t } of pe) if (ge(t)) return e;
336
+ }
337
+ function he() {
338
+ return !ge("🇨🇦");
339
+ }
340
+ function ge(e) {
341
+ if (A.has(e)) return A.get(e);
342
+ let t = _e(e);
343
+ return A.set(e, t), t;
344
+ }
345
+ var _e = (() => {
346
+ let e = null;
347
+ try {
348
+ navigator.userAgent.includes("jsdom") || (e = document.createElement("canvas").getContext("2d", { willReadFrequently: !0 }));
349
+ } catch {}
350
+ return e ? (e.font = "12px Arial, Sans-Serif", e.textBaseline = "top", e.canvas.width = 40, e.canvas.height = 25, (t) => {
351
+ e.clearRect(0, 0, 40, 25), e.fillStyle = "#FF0000", e.fillText(t, 0, 22), e.fillStyle = "#0000FF", e.fillText(t, 20, 22);
352
+ let n = e.getImageData(0, 0, 20, 25).data, r = n.length, i = 0;
353
+ for (; i < r && !n[i + 3]; i += 4);
354
+ if (i >= r) return !1;
355
+ let a = 20 + i / 4 % 20, o = Math.floor(i / 4 / 20), s = e.getImageData(a, o, 1, 1).data;
356
+ return !(n[i] !== s[0] || n[i + 2] !== s[2] || e.measureText(t).width >= 20);
357
+ }) : () => !1;
358
+ })(), ve = {
359
+ latestVersion: me,
360
+ noCountryFlags: he
361
+ }, j = [
362
+ "+1",
363
+ "grinning",
364
+ "kissing_heart",
365
+ "heart_eyes",
366
+ "laughing",
367
+ "stuck_out_tongue_winking_eye",
368
+ "sweat_smile",
369
+ "joy",
370
+ "scream",
371
+ "disappointed",
372
+ "unamused",
373
+ "weary",
374
+ "sob",
375
+ "sunglasses",
376
+ "heart"
377
+ ], M = null;
378
+ function ye(e) {
379
+ M ||= k.get("frequently") || {};
380
+ let t = e.id || e;
381
+ t && (M[t] || (M[t] = 0), M[t] += 1, k.set("last", t), k.set("frequently", M));
382
+ }
383
+ function be({ maxFrequentRows: e, perLine: t }) {
384
+ if (!e) return [];
385
+ M ||= k.get("frequently");
386
+ let n = [];
387
+ if (!M) {
388
+ M = {};
389
+ for (let e in j.slice(0, t)) {
390
+ let r = j[e];
391
+ M[r] = t - e, n.push(r);
392
+ }
393
+ return n;
394
+ }
395
+ let r = e * t, i = k.get("last");
396
+ for (let e in M) n.push(e);
397
+ if (n.sort((e, t) => {
398
+ let n = M[t], r = M[e];
399
+ return n == r ? e.localeCompare(t) : n - r;
400
+ }), n.length > r) {
401
+ let e = n.slice(r);
402
+ n = n.slice(0, r);
403
+ for (let t of e) t != i && delete M[t];
404
+ i && n.indexOf(i) == -1 && (delete M[n[n.length - 1]], n.splice(-1, 1, i)), k.set("frequently", M);
405
+ }
406
+ return n;
407
+ }
408
+ var N = {
409
+ add: ye,
410
+ get: be,
411
+ DEFAULTS: j
412
+ }, xe = {};
413
+ xe = JSON.parse("{\"search\":\"Search\",\"search_no_results_1\":\"Oh no!\",\"search_no_results_2\":\"That emoji couldn’t be found\",\"pick\":\"Pick an emoji…\",\"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\"}}");
414
+ var P = {
415
+ autoFocus: { value: !1 },
416
+ dynamicWidth: { value: !1 },
417
+ emojiButtonColors: { value: null },
418
+ emojiButtonRadius: { value: "100%" },
419
+ emojiButtonSize: { value: 36 },
420
+ emojiSize: { value: 24 },
421
+ emojiVersion: {
422
+ value: 15,
423
+ choices: [
424
+ 1,
425
+ 2,
426
+ 3,
427
+ 4,
428
+ 5,
429
+ 11,
430
+ 12,
431
+ 12.1,
432
+ 13,
433
+ 13.1,
434
+ 14,
435
+ 15
436
+ ]
437
+ },
438
+ exceptEmojis: { value: [] },
439
+ icons: {
440
+ value: "auto",
441
+ choices: [
442
+ "auto",
443
+ "outline",
444
+ "solid"
445
+ ]
446
+ },
447
+ locale: {
448
+ value: "en",
449
+ choices: [
450
+ "en",
451
+ "ar",
452
+ "be",
453
+ "cs",
454
+ "de",
455
+ "es",
456
+ "fa",
457
+ "fi",
458
+ "fr",
459
+ "hi",
460
+ "it",
461
+ "ja",
462
+ "ko",
463
+ "nl",
464
+ "pl",
465
+ "pt",
466
+ "ru",
467
+ "sa",
468
+ "tr",
469
+ "uk",
470
+ "vi",
471
+ "zh"
472
+ ]
473
+ },
474
+ maxFrequentRows: { value: 4 },
475
+ navPosition: {
476
+ value: "top",
477
+ choices: [
478
+ "top",
479
+ "bottom",
480
+ "none"
481
+ ]
482
+ },
483
+ noCountryFlags: { value: !1 },
484
+ noResultsEmoji: { value: null },
485
+ perLine: { value: 9 },
486
+ previewEmoji: { value: null },
487
+ previewPosition: {
488
+ value: "bottom",
489
+ choices: [
490
+ "top",
491
+ "bottom",
492
+ "none"
493
+ ]
494
+ },
495
+ searchPosition: {
496
+ value: "sticky",
497
+ choices: [
498
+ "sticky",
499
+ "static",
500
+ "none"
501
+ ]
502
+ },
503
+ set: {
504
+ value: "native",
505
+ choices: [
506
+ "native",
507
+ "apple",
508
+ "facebook",
509
+ "google",
510
+ "twitter"
511
+ ]
512
+ },
513
+ skin: {
514
+ value: 1,
515
+ choices: [
516
+ 1,
517
+ 2,
518
+ 3,
519
+ 4,
520
+ 5,
521
+ 6
522
+ ]
523
+ },
524
+ skinTonePosition: {
525
+ value: "preview",
526
+ choices: [
527
+ "preview",
528
+ "search",
529
+ "none"
530
+ ]
531
+ },
532
+ theme: {
533
+ value: "auto",
534
+ choices: [
535
+ "auto",
536
+ "light",
537
+ "dark"
538
+ ]
539
+ },
540
+ categories: null,
541
+ categoryIcons: null,
542
+ custom: null,
543
+ data: null,
544
+ i18n: null,
545
+ getImageURL: null,
546
+ getSpritesheetURL: null,
547
+ onAddCustomEmoji: null,
548
+ onClickOutside: null,
549
+ onEmojiSelect: null,
550
+ stickySearch: {
551
+ deprecated: !0,
552
+ value: !0
553
+ }
554
+ }, F = null, I = null, L = {};
555
+ async function Se(e) {
556
+ if (L[e]) return L[e];
557
+ let t = await (await fetch(e)).json();
558
+ return L[e] = t, t;
559
+ }
560
+ var Ce = null, we = null, Te = !1;
561
+ function R(e, { caller: t } = {}) {
562
+ return Ce ||= new Promise((e) => {
563
+ we = e;
564
+ }), e ? Ee(e) : t && !Te && console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`), Ce;
565
+ }
566
+ async function Ee(t) {
567
+ Te = !0;
568
+ let { emojiVersion: n, set: r, locale: i } = t;
569
+ if (n ||= P.emojiVersion.value, r ||= P.set.value, i ||= P.locale.value, I) I.categories = I.categories.filter((e) => !e.name);
570
+ else {
571
+ I = (typeof t.data == "function" ? await t.data() : t.data) || await Se(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${n}/${r}.json`), I.emoticons = {}, I.natives = {}, I.categories.unshift({
572
+ id: "frequent",
573
+ emojis: []
574
+ });
575
+ for (let e in I.aliases) {
576
+ let t = I.aliases[e], n = I.emojis[t];
577
+ n && (n.aliases ||= [], n.aliases.push(e));
578
+ }
579
+ I.originalCategories = I.categories;
580
+ }
581
+ if (F = (typeof t.i18n == "function" ? await t.i18n() : t.i18n) || (i == "en" ? /* @__PURE__ */ e(xe) : await Se(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)), t.custom) for (let e in t.custom) {
582
+ e = parseInt(e);
583
+ let n = t.custom[e], r = t.custom[e - 1];
584
+ if (!(!n.emojis || !n.emojis.length)) {
585
+ n.id ||= `custom_${e + 1}`, n.name ||= F.categories.custom, r && !n.icon && (n.target = r.target || r), I.categories.push(n);
586
+ for (let e of n.emojis) I.emojis[e.id] = e;
587
+ }
588
+ }
589
+ t.categories && (I.categories = I.originalCategories.filter((e) => t.categories.indexOf(e.id) != -1).sort((e, n) => t.categories.indexOf(e.id) - t.categories.indexOf(n.id)));
590
+ let a = null, o = null;
591
+ r == "native" && (a = ve.latestVersion(), o = t.noCountryFlags || ve.noCountryFlags());
592
+ let s = I.categories.length, c = !1;
593
+ for (; s--;) {
594
+ let e = I.categories[s];
595
+ if (e.id == "frequent") {
596
+ let { maxFrequentRows: n, perLine: r } = t;
597
+ n = n >= 0 ? n : P.maxFrequentRows.value, r ||= P.perLine.value, e.emojis = N.get({
598
+ maxFrequentRows: n,
599
+ perLine: r
600
+ });
601
+ }
602
+ if (!e.emojis || !e.emojis.length) {
603
+ I.categories.splice(s, 1);
604
+ continue;
605
+ }
606
+ let { categoryIcons: n } = t;
607
+ if (n) {
608
+ let t = n[e.id];
609
+ t && !e.icon && (e.icon = t);
610
+ }
611
+ let r = e.emojis.length;
612
+ for (; r--;) {
613
+ let n = e.emojis[r], i = n.id ? n : I.emojis[n], s = () => {
614
+ e.emojis.splice(r, 1);
615
+ };
616
+ if (!i || t.exceptEmojis && t.exceptEmojis.includes(i.id)) {
617
+ s();
618
+ continue;
619
+ }
620
+ if (a && i.version > a) {
621
+ s();
622
+ continue;
623
+ }
624
+ if (o && e.id == "flags" && !Pe.includes(i.id)) {
625
+ s();
626
+ continue;
627
+ }
628
+ if (!i.search) {
629
+ if (c = !0, i.search = "," + [
630
+ [i.id, !1],
631
+ [i.name, !0],
632
+ [i.keywords, !1],
633
+ [i.emoticons, !1]
634
+ ].map(([e, t]) => {
635
+ if (e) return (Array.isArray(e) ? e : [e]).map((e) => (t ? e.split(/[-|_|\s]+/) : [e]).map((e) => e.toLowerCase())).flat();
636
+ }).flat().filter((e) => e && e.trim()).join(","), i.emoticons) for (let e of i.emoticons) I.emoticons[e] || (I.emoticons[e] = i.id);
637
+ let e = 0;
638
+ for (let t of i.skins) {
639
+ if (!t) continue;
640
+ e++;
641
+ let { native: n } = t;
642
+ n && (I.natives[n] = i.id, i.search += `,${n}`);
643
+ let r = e == 1 ? "" : `:skin-tone-${e}:`;
644
+ t.shortcodes = `:${i.id}:${r}`;
645
+ }
646
+ }
647
+ }
648
+ }
649
+ c && z.reset(), we();
650
+ }
651
+ function De(e, t, n) {
652
+ e ||= {};
653
+ let r = {};
654
+ for (let i in t) r[i] = Oe(i, e, t, n);
655
+ return r;
656
+ }
657
+ function Oe(e, t, n, r) {
658
+ let i = n[e], a = r && r.getAttribute(e) || (t[e] != null && t[e] != null ? t[e] : null);
659
+ return i ? (a != null && i.value && typeof i.value != typeof a && (a = typeof i.value == "boolean" ? a != "false" : i.value.constructor(a)), i.transform && a && (a = i.transform(a)), (a == null || i.choices && i.choices.indexOf(a) == -1) && (a = i.value), a) : a;
660
+ }
661
+ var ke = /^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/, Ae = null;
662
+ function je(e) {
663
+ return e.id ? e : I.emojis[e] || I.emojis[I.aliases[e]] || I.emojis[I.natives[e]];
664
+ }
665
+ function Me() {
666
+ Ae = null;
667
+ }
668
+ async function Ne(e, { maxResults: t, caller: n } = {}) {
669
+ if (!e || !e.trim().length) return null;
670
+ t ||= 90, await R(null, { caller: n || "SearchIndex.search" });
671
+ let r = e.toLowerCase().replace(/(\w)-/, "$1 ").split(/[\s|,]+/).filter((e, t, n) => e.trim() && n.indexOf(e) == t);
672
+ if (!r.length) return;
673
+ let i = Ae ||= Object.values(I.emojis), a, o;
674
+ for (let e of r) {
675
+ if (!i.length) break;
676
+ a = [], o = {};
677
+ for (let t of i) {
678
+ if (!t.search) continue;
679
+ let n = t.search.indexOf(`,${e}`);
680
+ n != -1 && (a.push(t), o[t.id] || (o[t.id] = 0), o[t.id] += t.id == e ? 0 : n + 1);
681
+ }
682
+ i = a;
683
+ }
684
+ return a.length < 2 ? a : (a.sort((e, t) => {
685
+ let n = o[e.id], r = o[t.id];
686
+ return n == r ? e.id.localeCompare(t.id) : n - r;
687
+ }), a.length > t && (a = a.slice(0, t)), a);
688
+ }
689
+ var z = {
690
+ search: Ne,
691
+ get: je,
692
+ reset: Me,
693
+ SHORTCODES_REGEX: ke
694
+ }, Pe = [
695
+ "checkered_flag",
696
+ "crossed_flags",
697
+ "pirate_flag",
698
+ "rainbow-flag",
699
+ "transgender_flag",
700
+ "triangular_flag_on_post",
701
+ "waving_black_flag",
702
+ "waving_white_flag"
703
+ ];
704
+ function Fe(e, t) {
705
+ return Array.isArray(e) && Array.isArray(t) && e.length === t.length && e.every((e, n) => e == t[n]);
706
+ }
707
+ async function Ie(e = 1) {
708
+ for (let t in [...Array(e).keys()]) await new Promise(requestAnimationFrame);
709
+ }
710
+ function Le(e, { skinIndex: t = 0 } = {}) {
711
+ let n = e.skins[t] || (t = 0, e.skins[t]), r = {
712
+ id: e.id,
713
+ name: e.name,
714
+ native: n.native,
715
+ unified: n.unified,
716
+ keywords: e.keywords,
717
+ shortcodes: n.shortcodes || e.shortcodes
718
+ };
719
+ return e.skins.length > 1 && (r.skin = t + 1), n.src && (r.src = n.src), e.aliases && e.aliases.length && (r.aliases = e.aliases), e.emoticons && e.emoticons.length && (r.emoticons = e.emoticons), r;
720
+ }
721
+ async function Re(e) {
722
+ let t = await z.search(e, {
723
+ maxResults: 1,
724
+ caller: "getEmojiDataFromNative"
725
+ });
726
+ if (!t || !t.length) return null;
727
+ let n = t[0], r = 0;
728
+ for (let t of n.skins) {
729
+ if (t.native == e) break;
730
+ r++;
731
+ }
732
+ return Le(n, { skinIndex: r });
733
+ }
734
+ var B = {
735
+ categories: {
736
+ activity: {
737
+ outline: /* @__PURE__ */ O("svg", {
738
+ xmlns: "http://www.w3.org/2000/svg",
739
+ viewBox: "0 0 24 24",
740
+ children: /* @__PURE__ */ O("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" })
741
+ }),
742
+ solid: /* @__PURE__ */ O("svg", {
743
+ xmlns: "http://www.w3.org/2000/svg",
744
+ viewBox: "0 0 512 512",
745
+ children: /* @__PURE__ */ O("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" })
746
+ })
747
+ },
748
+ custom: /* @__PURE__ */ O("svg", {
749
+ xmlns: "http://www.w3.org/2000/svg",
750
+ viewBox: "0 0 448 512",
751
+ children: /* @__PURE__ */ O("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" })
752
+ }),
753
+ flags: {
754
+ outline: /* @__PURE__ */ O("svg", {
755
+ xmlns: "http://www.w3.org/2000/svg",
756
+ viewBox: "0 0 24 24",
757
+ children: /* @__PURE__ */ O("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" })
758
+ }),
759
+ solid: /* @__PURE__ */ O("svg", {
760
+ xmlns: "http://www.w3.org/2000/svg",
761
+ viewBox: "0 0 512 512",
762
+ children: /* @__PURE__ */ O("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" })
763
+ })
764
+ },
765
+ foods: {
766
+ outline: /* @__PURE__ */ O("svg", {
767
+ xmlns: "http://www.w3.org/2000/svg",
768
+ viewBox: "0 0 24 24",
769
+ children: /* @__PURE__ */ O("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.009 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" })
770
+ }),
771
+ solid: /* @__PURE__ */ O("svg", {
772
+ xmlns: "http://www.w3.org/2000/svg",
773
+ viewBox: "0 0 512 512",
774
+ children: /* @__PURE__ */ O("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" })
775
+ })
776
+ },
777
+ frequent: {
778
+ outline: /* @__PURE__ */ O("svg", {
779
+ xmlns: "http://www.w3.org/2000/svg",
780
+ viewBox: "0 0 24 24",
781
+ children: [/* @__PURE__ */ O("path", { d: "M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z" }), /* @__PURE__ */ O("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" })]
782
+ }),
783
+ solid: /* @__PURE__ */ O("svg", {
784
+ xmlns: "http://www.w3.org/2000/svg",
785
+ viewBox: "0 0 512 512",
786
+ children: /* @__PURE__ */ O("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" })
787
+ })
788
+ },
789
+ nature: {
790
+ outline: /* @__PURE__ */ O("svg", {
791
+ xmlns: "http://www.w3.org/2000/svg",
792
+ viewBox: "0 0 24 24",
793
+ children: [/* @__PURE__ */ O("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" }), /* @__PURE__ */ O("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.877 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" })]
794
+ }),
795
+ solid: /* @__PURE__ */ O("svg", {
796
+ xmlns: "http://www.w3.org/2000/svg",
797
+ viewBox: "0 0 576 512",
798
+ children: /* @__PURE__ */ O("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" })
799
+ })
800
+ },
801
+ objects: {
802
+ outline: /* @__PURE__ */ O("svg", {
803
+ xmlns: "http://www.w3.org/2000/svg",
804
+ viewBox: "0 0 24 24",
805
+ children: [/* @__PURE__ */ O("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" }), /* @__PURE__ */ O("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" })]
806
+ }),
807
+ solid: /* @__PURE__ */ O("svg", {
808
+ xmlns: "http://www.w3.org/2000/svg",
809
+ viewBox: "0 0 384 512",
810
+ children: /* @__PURE__ */ O("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" })
811
+ })
812
+ },
813
+ people: {
814
+ outline: /* @__PURE__ */ O("svg", {
815
+ xmlns: "http://www.w3.org/2000/svg",
816
+ viewBox: "0 0 24 24",
817
+ children: [/* @__PURE__ */ O("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" }), /* @__PURE__ */ O("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" })]
818
+ }),
819
+ solid: /* @__PURE__ */ O("svg", {
820
+ xmlns: "http://www.w3.org/2000/svg",
821
+ viewBox: "0 0 512 512",
822
+ children: /* @__PURE__ */ O("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 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z" })
823
+ })
824
+ },
825
+ places: {
826
+ outline: /* @__PURE__ */ O("svg", {
827
+ xmlns: "http://www.w3.org/2000/svg",
828
+ viewBox: "0 0 24 24",
829
+ children: [/* @__PURE__ */ O("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" }), /* @__PURE__ */ O("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" })]
830
+ }),
831
+ solid: /* @__PURE__ */ O("svg", {
832
+ xmlns: "http://www.w3.org/2000/svg",
833
+ viewBox: "0 0 512 512",
834
+ children: /* @__PURE__ */ O("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" })
835
+ })
836
+ },
837
+ symbols: {
838
+ outline: /* @__PURE__ */ O("svg", {
839
+ xmlns: "http://www.w3.org/2000/svg",
840
+ viewBox: "0 0 24 24",
841
+ children: /* @__PURE__ */ O("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" })
842
+ }),
843
+ solid: /* @__PURE__ */ O("svg", {
844
+ xmlns: "http://www.w3.org/2000/svg",
845
+ viewBox: "0 0 512 512",
846
+ children: /* @__PURE__ */ O("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" })
847
+ })
848
+ }
849
+ },
850
+ search: {
851
+ loupe: /* @__PURE__ */ O("svg", {
852
+ xmlns: "http://www.w3.org/2000/svg",
853
+ viewBox: "0 0 20 20",
854
+ children: /* @__PURE__ */ O("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" })
855
+ }),
856
+ delete: /* @__PURE__ */ O("svg", {
857
+ xmlns: "http://www.w3.org/2000/svg",
858
+ viewBox: "0 0 20 20",
859
+ children: /* @__PURE__ */ O("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" })
860
+ })
861
+ }
862
+ };
863
+ function V(e) {
864
+ let { id: t, skin: n, emoji: r } = e;
865
+ if (e.shortcodes) {
866
+ let r = e.shortcodes.match(z.SHORTCODES_REGEX);
867
+ r && (t = r[1], r[2] && (n = r[2]));
868
+ }
869
+ if (r ||= z.get(t || e.native), !r) return e.fallback;
870
+ let i = r.skins[n - 1] || r.skins[0], a = i.src || (e.set != "native" && !e.spritesheet ? typeof e.getImageURL == "function" ? e.getImageURL(e.set, i.unified) : `https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${i.unified}.png` : void 0), o = typeof e.getSpritesheetURL == "function" ? e.getSpritesheetURL(e.set) : `https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;
871
+ return /* @__PURE__ */ O("span", {
872
+ class: "emoji-mart-emoji",
873
+ "data-emoji-set": e.set,
874
+ children: a ? /* @__PURE__ */ O("img", {
875
+ style: {
876
+ maxWidth: e.size || "1em",
877
+ maxHeight: e.size || "1em",
878
+ display: "inline-block"
879
+ },
880
+ alt: i.native || i.shortcodes,
881
+ src: a
882
+ }) : e.set == "native" ? /* @__PURE__ */ O("span", {
883
+ style: {
884
+ fontSize: e.size,
885
+ fontFamily: "\"EmojiMart\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Segoe UI\", \"Apple Color Emoji\", \"Twemoji Mozilla\", \"Noto Color Emoji\", \"Android Emoji\""
886
+ },
887
+ children: i.native
888
+ }) : /* @__PURE__ */ O("span", { style: {
889
+ display: "block",
890
+ width: e.size,
891
+ height: e.size,
892
+ backgroundImage: `url(${o})`,
893
+ backgroundSize: `${100 * I.sheet.cols}% ${100 * I.sheet.rows}%`,
894
+ backgroundPosition: `${100 / (I.sheet.cols - 1) * i.x}% ${100 / (I.sheet.rows - 1) * i.y}%`
895
+ } })
896
+ });
897
+ }
898
+ var ze = typeof window < "u" && window.HTMLElement ? window.HTMLElement : Object, Be = class extends ze {
899
+ static get observedAttributes() {
900
+ return Object.keys(this.Props);
901
+ }
902
+ update(e = {}) {
903
+ for (let t in e) this.attributeChangedCallback(t, null, e[t]);
904
+ }
905
+ attributeChangedCallback(e, t, n) {
906
+ if (!this.component) return;
907
+ let r = Oe(e, { [e]: n }, this.constructor.Props, this);
908
+ this.component.componentWillReceiveProps ? this.component.componentWillReceiveProps({ [e]: r }) : (this.component.props[e] = r, this.component.forceUpdate());
909
+ }
910
+ disconnectedCallback() {
911
+ this.disconnected = !0, this.component && this.component.unregister && this.component.unregister();
912
+ }
913
+ constructor(e = {}) {
914
+ if (super(), this.props = e, e.parent || e.ref) {
915
+ let t = null, n = e.parent || (t = e.ref && e.ref.current);
916
+ t && (t.innerHTML = ""), n && n.appendChild(this);
917
+ }
918
+ }
919
+ }, Ve = class extends Be {
920
+ setShadow() {
921
+ this.attachShadow({ mode: "open" });
922
+ }
923
+ injectStyles(e) {
924
+ if (!e) return;
925
+ let t = document.createElement("style");
926
+ t.textContent = e, this.shadowRoot.insertBefore(t, this.shadowRoot.firstChild);
927
+ }
928
+ constructor(e, { styles: t } = {}) {
929
+ super(e), this.setShadow(), this.injectStyles(t);
930
+ }
931
+ }, He = {
932
+ fallback: "",
933
+ id: "",
934
+ native: "",
935
+ shortcodes: "",
936
+ size: {
937
+ value: "",
938
+ transform: (e) => /\D/.test(e) ? e : `${e}px`
939
+ },
940
+ set: P.set,
941
+ skin: P.skin
942
+ }, H = class extends Be {
943
+ async connectedCallback() {
944
+ let e = De(this.props, He, this);
945
+ e.element = this, e.ref = (e) => {
946
+ this.component = e;
947
+ }, await R(), !this.disconnected && le(/* @__PURE__ */ O(V, { ...e }), this);
948
+ }
949
+ constructor(e) {
950
+ super(e);
951
+ }
952
+ };
953
+ t(H, "Props", He), typeof customElements < "u" && !customElements.get("em-emoji") && customElements.define("em-emoji", H);
954
+ var U, Ue, W = [], We = r.__b, Ge = r.__r, Ke = r.diffed, qe = r.__c, Je = r.unmount;
955
+ function Ye() {
956
+ var e;
957
+ for (W.sort(function(e, t) {
958
+ return e.__v.__b - t.__v.__b;
959
+ }); e = W.pop();) if (e.__P) try {
960
+ e.__H.__h.forEach(G), e.__H.__h.forEach(K), e.__H.__h = [];
961
+ } catch (t) {
962
+ e.__H.__h = [], r.__e(t, e.__v);
963
+ }
964
+ }
965
+ r.__b = function(e) {
966
+ U = null, We && We(e);
967
+ }, r.__r = function(e) {
968
+ Ge && Ge(e);
969
+ var t = (U = e.__c).__H;
970
+ t && (t.__h.forEach(G), t.__h.forEach(K), t.__h = []);
971
+ }, r.diffed = function(e) {
972
+ Ke && Ke(e);
973
+ var t = e.__c;
974
+ t && t.__H && t.__H.__h.length && (W.push(t) !== 1 && Ue === r.requestAnimationFrame || ((Ue = r.requestAnimationFrame) || function(e) {
975
+ var t, n = function() {
976
+ clearTimeout(r), Xe && cancelAnimationFrame(t), setTimeout(e);
977
+ }, r = setTimeout(n, 100);
978
+ Xe && (t = requestAnimationFrame(n));
979
+ })(Ye)), U = null;
980
+ }, r.__c = function(e, t) {
981
+ t.some(function(e) {
982
+ try {
983
+ e.__h.forEach(G), e.__h = e.__h.filter(function(e) {
984
+ return !e.__ || K(e);
985
+ });
986
+ } catch (n) {
987
+ t.some(function(e) {
988
+ e.__h &&= [];
989
+ }), t = [], r.__e(n, e.__v);
990
+ }
991
+ }), qe && qe(e, t);
992
+ }, r.unmount = function(e) {
993
+ Je && Je(e);
994
+ var t, n = e.__c;
995
+ n && n.__H && (n.__H.__.forEach(function(e) {
996
+ try {
997
+ G(e);
998
+ } catch (e) {
999
+ t = e;
1000
+ }
1001
+ }), t && r.__e(t, n.__v));
1002
+ };
1003
+ var Xe = typeof requestAnimationFrame == "function";
1004
+ function G(e) {
1005
+ var t = U, n = e.__c;
1006
+ typeof n == "function" && (e.__c = void 0, n()), U = t;
1007
+ }
1008
+ function K(e) {
1009
+ var t = U;
1010
+ e.__c = e.__(), U = t;
1011
+ }
1012
+ function Ze(e, t) {
1013
+ for (var n in t) e[n] = t[n];
1014
+ return e;
1015
+ }
1016
+ function Qe(e, t) {
1017
+ for (var n in e) if (n !== "__source" && !(n in t)) return !0;
1018
+ for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
1019
+ return !1;
1020
+ }
1021
+ function q(e) {
1022
+ this.props = e;
1023
+ }
1024
+ (q.prototype = new _()).isPureReactComponent = !0, q.prototype.shouldComponentUpdate = function(e, t) {
1025
+ return Qe(this.props, e) || Qe(this.state, t);
1026
+ };
1027
+ var $e = r.__b;
1028
+ r.__b = function(e) {
1029
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), $e && $e(e);
1030
+ }, typeof Symbol < "u" && Symbol.for;
1031
+ var et = r.__e;
1032
+ r.__e = function(e, t, n) {
1033
+ if (e.then) {
1034
+ for (var r, i = t; i = i.__;) if ((r = i.__c) && r.__c) return t.__e ?? (t.__e = n.__e, t.__k = n.__k), r.__c(e, t);
1035
+ }
1036
+ et(e, t, n);
1037
+ };
1038
+ var tt = r.unmount;
1039
+ function J() {
1040
+ this.__u = 0, this.t = null, this.__b = null;
1041
+ }
1042
+ function Y(e) {
1043
+ var t = e.__.__c;
1044
+ return t && t.__e && t.__e(e);
1045
+ }
1046
+ function X() {
1047
+ this.u = null, this.o = null;
1048
+ }
1049
+ r.unmount = function(e) {
1050
+ var t = e.__c;
1051
+ t && t.__R && t.__R(), t && !0 === e.__h && (e.type = null), tt && tt(e);
1052
+ }, (J.prototype = new _()).__c = function(e, t) {
1053
+ var n = t.__c, r = this;
1054
+ r.t ??= [], r.t.push(n);
1055
+ var i = Y(r.__v), a = !1, o = function() {
1056
+ a || (a = !0, n.__R = null, i ? i(s) : s());
1057
+ };
1058
+ n.__R = o;
1059
+ var s = function() {
1060
+ if (!--r.__u) {
1061
+ if (r.state.__e) {
1062
+ var e = r.state.__e;
1063
+ r.__v.__k[0] = function e(t, n, r) {
1064
+ return t && (t.__v = null, t.__k = t.__k && t.__k.map(function(t) {
1065
+ return e(t, n, r);
1066
+ }), t.__c && t.__c.__P === n && (t.__e && r.insertBefore(t.__e, t.__d), t.__c.__e = !0, t.__c.__P = r)), t;
1067
+ }(e, e.__c.__P, e.__c.__O);
1068
+ }
1069
+ var t;
1070
+ for (r.setState({ __e: r.__b = null }); t = r.t.pop();) t.forceUpdate();
1071
+ }
1072
+ }, c = !0 === t.__h;
1073
+ r.__u++ || c || r.setState({ __e: r.__b = r.__v.__k[0] }), e.then(o, o);
1074
+ }, J.prototype.componentWillUnmount = function() {
1075
+ this.t = [];
1076
+ }, J.prototype.render = function(e, t) {
1077
+ if (this.__b) {
1078
+ if (this.__v.__k) {
1079
+ var n = document.createElement("div"), r = this.__v.__k[0].__c;
1080
+ this.__v.__k[0] = function e(t, n, r) {
1081
+ return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(e) {
1082
+ typeof e.__c == "function" && e.__c();
1083
+ }), t.__c.__H = null), (t = Ze({}, t)).__c != null && (t.__c.__P === r && (t.__c.__P = n), t.__c = null), t.__k = t.__k && t.__k.map(function(t) {
1084
+ return e(t, n, r);
1085
+ })), t;
1086
+ }(this.__b, n, r.__O = r.__P);
1087
+ }
1088
+ this.__b = null;
1089
+ }
1090
+ var i = t.__e && p(g, null, e.fallback);
1091
+ return i && (i.__h = null), [p(g, null, t.__e ? null : e.children), i];
1092
+ };
1093
+ var nt = function(e, t, n) {
1094
+ if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size)) for (n = e.u; n;) {
1095
+ for (; n.length > 3;) n.pop()();
1096
+ if (n[1] < n[0]) break;
1097
+ e.u = n = n[2];
1098
+ }
1099
+ };
1100
+ (X.prototype = new _()).__e = function(e) {
1101
+ var t = this, n = Y(t.__v), r = t.o.get(e);
1102
+ return r[0]++, function(i) {
1103
+ var a = function() {
1104
+ t.props.revealOrder ? (r.push(i), nt(t, e, r)) : i();
1105
+ };
1106
+ n ? n(a) : a();
1107
+ };
1108
+ }, X.prototype.render = function(e) {
1109
+ this.u = null, this.o = /* @__PURE__ */ new Map();
1110
+ var t = w(e.children);
1111
+ e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
1112
+ for (var n = t.length; n--;) this.o.set(t[n], this.u = [
1113
+ 1,
1114
+ 0,
1115
+ this.u
1116
+ ]);
1117
+ return e.children;
1118
+ }, X.prototype.componentDidUpdate = X.prototype.componentDidMount = function() {
1119
+ var e = this;
1120
+ this.o.forEach(function(t, n) {
1121
+ nt(e, n, t);
1122
+ });
1123
+ };
1124
+ var rt = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, it = /^(?: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]/, at = typeof document < "u", ot = function(e) {
1125
+ return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/i : /fil|che|ra/i).test(e);
1126
+ };
1127
+ _.prototype.isReactComponent = {}, [
1128
+ "componentWillMount",
1129
+ "componentWillReceiveProps",
1130
+ "componentWillUpdate"
1131
+ ].forEach(function(e) {
1132
+ Object.defineProperty(_.prototype, e, {
1133
+ configurable: !0,
1134
+ get: function() {
1135
+ return this["UNSAFE_" + e];
1136
+ },
1137
+ set: function(t) {
1138
+ Object.defineProperty(this, e, {
1139
+ configurable: !0,
1140
+ writable: !0,
1141
+ value: t
1142
+ });
1143
+ }
1144
+ });
1145
+ });
1146
+ var st = r.event;
1147
+ function ct() {}
1148
+ function lt() {
1149
+ return this.cancelBubble;
1150
+ }
1151
+ function ut() {
1152
+ return this.defaultPrevented;
1153
+ }
1154
+ r.event = function(e) {
1155
+ return st && (e = st(e)), e.persist = ct, e.isPropagationStopped = lt, e.isDefaultPrevented = ut, e.nativeEvent = e;
1156
+ };
1157
+ var dt = {
1158
+ configurable: !0,
1159
+ get: function() {
1160
+ return this.class;
1161
+ }
1162
+ }, ft = r.vnode;
1163
+ r.vnode = function(e) {
1164
+ var t = e.type, n = e.props, r = n;
1165
+ if (typeof t == "string") {
1166
+ var i = t.indexOf("-") === -1;
1167
+ for (var a in r = {}, n) {
1168
+ var o = n[a];
1169
+ at && a === "children" && t === "noscript" || a === "value" && "defaultValue" in n && o == null || (a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && !0 === o ? o = "" : /ondoubleclick/i.test(a) ? a = "ondblclick" : /^onchange(textarea|input)/i.test(a + t) && !ot(n.type) ? a = "oninput" : /^onfocus$/i.test(a) ? a = "onfocusin" : /^onblur$/i.test(a) ? a = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp)/.test(a) ? a = a.toLowerCase() : i && it.test(a) ? a = a.replace(/[A-Z0-9]/, "-$&").toLowerCase() : o === null && (o = void 0), r[a] = o);
1170
+ }
1171
+ t == "select" && r.multiple && Array.isArray(r.value) && (r.value = w(n.children).forEach(function(e) {
1172
+ e.props.selected = r.value.indexOf(e.props.value) != -1;
1173
+ })), t == "select" && r.defaultValue != null && (r.value = w(n.children).forEach(function(e) {
1174
+ e.props.selected = r.multiple ? r.defaultValue.indexOf(e.props.value) != -1 : r.defaultValue == e.props.value;
1175
+ })), e.props = r, n.class != n.className && (dt.enumerable = "className" in n, n.className != null && (r.class = n.className), Object.defineProperty(r, "className", dt));
1176
+ }
1177
+ e.$$typeof = rt, ft && ft(e);
1178
+ };
1179
+ var pt = r.__r;
1180
+ r.__r = function(e) {
1181
+ pt && pt(e), e.__c;
1182
+ };
1183
+ var mt = {
1184
+ light: "outline",
1185
+ dark: "solid"
1186
+ }, ht = class extends q {
1187
+ renderIcon(e) {
1188
+ let { icon: t } = e;
1189
+ if (t) {
1190
+ if (t.svg) return /* @__PURE__ */ O("span", {
1191
+ class: "flex",
1192
+ dangerouslySetInnerHTML: { __html: t.svg }
1193
+ });
1194
+ if (t.src) return /* @__PURE__ */ O("img", { src: t.src });
1195
+ }
1196
+ let n = B.categories[e.id] || B.categories.custom;
1197
+ return n[this.props.icons == "auto" ? mt[this.props.theme] : this.props.icons] || n;
1198
+ }
1199
+ render() {
1200
+ let e = null;
1201
+ return /* @__PURE__ */ O("nav", {
1202
+ id: "nav",
1203
+ class: "padding",
1204
+ "data-position": this.props.position,
1205
+ dir: this.props.dir,
1206
+ children: /* @__PURE__ */ O("div", {
1207
+ class: "flex relative",
1208
+ children: [this.categories.map((t, n) => {
1209
+ let r = t.name || F.categories[t.id], i = !this.props.unfocused && t.id == this.state.categoryId;
1210
+ return i && (e = n), /* @__PURE__ */ O("button", {
1211
+ "aria-label": r,
1212
+ "aria-selected": i || void 0,
1213
+ title: r,
1214
+ type: "button",
1215
+ class: "flex flex-grow flex-center",
1216
+ onMouseDown: (e) => e.preventDefault(),
1217
+ onClick: () => {
1218
+ this.props.onClick({
1219
+ category: t,
1220
+ i: n
1221
+ });
1222
+ },
1223
+ children: this.renderIcon(t)
1224
+ });
1225
+ }), /* @__PURE__ */ O("div", {
1226
+ class: "bar",
1227
+ style: {
1228
+ width: `${100 / this.categories.length}%`,
1229
+ opacity: e == null ? 0 : 1,
1230
+ transform: this.props.dir === "rtl" ? `scaleX(-1) translateX(${e * 100}%)` : `translateX(${e * 100}%)`
1231
+ }
1232
+ })]
1233
+ })
1234
+ });
1235
+ }
1236
+ constructor() {
1237
+ super(), this.categories = I.categories.filter((e) => !e.target), this.state = { categoryId: this.categories[0].id };
1238
+ }
1239
+ }, gt = class extends q {
1240
+ shouldComponentUpdate(e) {
1241
+ for (let t in e) if (t != "children" && e[t] != this.props[t]) return !0;
1242
+ return !1;
1243
+ }
1244
+ render() {
1245
+ return this.props.children;
1246
+ }
1247
+ }, Z = { rowsPerRender: 10 }, _t = class extends _ {
1248
+ getInitialState(e = this.props) {
1249
+ return {
1250
+ skin: k.get("skin") || e.skin,
1251
+ theme: this.initTheme(e.theme)
1252
+ };
1253
+ }
1254
+ componentWillMount() {
1255
+ this.dir = F.rtl ? "rtl" : "ltr", this.refs = {
1256
+ menu: h(),
1257
+ navigation: h(),
1258
+ scroll: h(),
1259
+ search: h(),
1260
+ searchInput: h(),
1261
+ skinToneButton: h(),
1262
+ skinToneRadio: h()
1263
+ }, this.initGrid(), this.props.stickySearch == 0 && this.props.searchPosition == "sticky" && (console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."), this.props.searchPosition = "static");
1264
+ }
1265
+ componentDidMount() {
1266
+ if (this.register(), this.shadowRoot = this.base.parentNode, this.props.autoFocus) {
1267
+ let { searchInput: e } = this.refs;
1268
+ e.current && e.current.focus();
1269
+ }
1270
+ }
1271
+ componentWillReceiveProps(e) {
1272
+ this.nextState ||= {};
1273
+ for (let t in e) this.nextState[t] = e[t];
1274
+ clearTimeout(this.nextStateTimer), this.nextStateTimer = setTimeout(() => {
1275
+ let e = !1;
1276
+ for (let t in this.nextState) this.props[t] = this.nextState[t], (t === "custom" || t === "categories") && (e = !0);
1277
+ delete this.nextState;
1278
+ let t = this.getInitialState();
1279
+ if (e) return this.reset(t);
1280
+ this.setState(t);
1281
+ });
1282
+ }
1283
+ componentWillUnmount() {
1284
+ this.unregister();
1285
+ }
1286
+ async reset(e = {}) {
1287
+ await R(this.props), this.initGrid(), this.unobserve(), this.setState(e, () => {
1288
+ this.observeCategories(), this.observeRows();
1289
+ });
1290
+ }
1291
+ register() {
1292
+ document.addEventListener("click", this.handleClickOutside), this.observe();
1293
+ }
1294
+ unregister() {
1295
+ document.removeEventListener("click", this.handleClickOutside), this.darkMedia?.removeEventListener("change", this.darkMediaCallback), this.unobserve();
1296
+ }
1297
+ observe() {
1298
+ this.observeCategories(), this.observeRows();
1299
+ }
1300
+ unobserve({ except: e = [] } = {}) {
1301
+ Array.isArray(e) || (e = [e]);
1302
+ for (let t of this.observers) e.includes(t) || t.disconnect();
1303
+ this.observers = [].concat(e);
1304
+ }
1305
+ initGrid() {
1306
+ let { categories: e } = I;
1307
+ this.refs.categories = /* @__PURE__ */ new Map();
1308
+ let t = I.categories.map((e) => e.id).join(",");
1309
+ this.navKey && this.navKey != t && this.refs.scroll.current && (this.refs.scroll.current.scrollTop = 0), this.navKey = t, this.grid = [], this.grid.setsize = 0;
1310
+ let n = (e, t) => {
1311
+ let n = [];
1312
+ n.__categoryId = t.id, n.__index = e.length, this.grid.push(n);
1313
+ let r = this.grid.length - 1, i = r % Z.rowsPerRender ? {} : h();
1314
+ return i.index = r, i.posinset = this.grid.setsize + 1, e.push(i), n;
1315
+ };
1316
+ for (let t of e) {
1317
+ let e = [], r = n(e, t);
1318
+ for (let i of t.emojis) r.length == this.getPerLine() && (r = n(e, t)), this.grid.setsize += 1, r.push(i);
1319
+ this.refs.categories.set(t.id, {
1320
+ root: h(),
1321
+ rows: e
1322
+ });
1323
+ }
1324
+ }
1325
+ initTheme(e) {
1326
+ if (e != "auto") return e;
1327
+ if (!this.darkMedia) {
1328
+ if (this.darkMedia = matchMedia("(prefers-color-scheme: dark)"), this.darkMedia.media.match(/^not/)) return "light";
1329
+ this.darkMedia.addEventListener("change", this.darkMediaCallback);
1330
+ }
1331
+ return this.darkMedia.matches ? "dark" : "light";
1332
+ }
1333
+ initDynamicPerLine(e = this.props) {
1334
+ if (!e.dynamicWidth) return;
1335
+ let { element: t, emojiButtonSize: n } = e, r = () => {
1336
+ let { width: e } = t.getBoundingClientRect();
1337
+ return Math.floor(e / n);
1338
+ }, i = new ResizeObserver(() => {
1339
+ this.unobserve({ except: i }), this.setState({ perLine: r() }, () => {
1340
+ this.initGrid(), this.forceUpdate(() => {
1341
+ this.observeCategories(), this.observeRows();
1342
+ });
1343
+ });
1344
+ });
1345
+ return i.observe(t), this.observers.push(i), r();
1346
+ }
1347
+ getPerLine() {
1348
+ return this.state.perLine || this.props.perLine;
1349
+ }
1350
+ getEmojiByPos([e, t]) {
1351
+ let n = this.state.searchResults || this.grid, r = n[e] && n[e][t];
1352
+ if (r) return z.get(r);
1353
+ }
1354
+ observeCategories() {
1355
+ let e = this.refs.navigation.current;
1356
+ if (!e) return;
1357
+ let t = /* @__PURE__ */ new Map(), n = (t) => {
1358
+ t != e.state.categoryId && e.setState({ categoryId: t });
1359
+ }, r = {
1360
+ root: this.refs.scroll.current,
1361
+ threshold: [0, 1]
1362
+ }, i = new IntersectionObserver((e) => {
1363
+ for (let n of e) {
1364
+ let e = n.target.dataset.id;
1365
+ t.set(e, n.intersectionRatio);
1366
+ }
1367
+ let r = [...t];
1368
+ for (let [e, t] of r) if (t) {
1369
+ n(e);
1370
+ break;
1371
+ }
1372
+ }, r);
1373
+ for (let { root: e } of this.refs.categories.values()) i.observe(e.current);
1374
+ this.observers.push(i);
1375
+ }
1376
+ observeRows() {
1377
+ let e = { ...this.state.visibleRows }, t = new IntersectionObserver((t) => {
1378
+ for (let n of t) {
1379
+ let t = parseInt(n.target.dataset.index);
1380
+ n.isIntersecting ? e[t] = !0 : delete e[t];
1381
+ }
1382
+ this.setState({ visibleRows: e });
1383
+ }, {
1384
+ root: this.refs.scroll.current,
1385
+ rootMargin: `${this.props.emojiButtonSize * (Z.rowsPerRender + 5)}px 0px ${this.props.emojiButtonSize * Z.rowsPerRender}px`
1386
+ });
1387
+ for (let { rows: e } of this.refs.categories.values()) for (let n of e) n.current && t.observe(n.current);
1388
+ this.observers.push(t);
1389
+ }
1390
+ preventDefault(e) {
1391
+ e.preventDefault();
1392
+ }
1393
+ unfocusSearch() {
1394
+ let e = this.refs.searchInput.current;
1395
+ e && e.blur();
1396
+ }
1397
+ navigate({ e, input: t, left: n, right: r, up: i, down: a }) {
1398
+ let o = this.state.searchResults || this.grid;
1399
+ if (!o.length) return;
1400
+ let [s, c] = this.state.pos, l = (() => {
1401
+ if (s == 0 && c == 0 && !e.repeat && (n || i)) return null;
1402
+ if (s == -1) return !e.repeat && (r || a) && t.selectionStart == t.value.length ? [0, 0] : null;
1403
+ if (n || r) {
1404
+ let e = o[s], t = n ? -1 : 1;
1405
+ if (c += t, !e[c]) {
1406
+ if (s += t, e = o[s], !e) return s = n ? 0 : o.length - 1, c = n ? 0 : o[s].length - 1, [s, c];
1407
+ c = n ? e.length - 1 : 0;
1408
+ }
1409
+ return [s, c];
1410
+ }
1411
+ if (i || a) {
1412
+ s += i ? -1 : 1;
1413
+ let e = o[s];
1414
+ return e ? (e[c] || (c = e.length - 1), [s, c]) : (s = i ? 0 : o.length - 1, c = i ? 0 : o[s].length - 1, [s, c]);
1415
+ }
1416
+ })();
1417
+ if (l) e.preventDefault();
1418
+ else {
1419
+ this.state.pos[0] > -1 && this.setState({ pos: [-1, -1] });
1420
+ return;
1421
+ }
1422
+ this.setState({
1423
+ pos: l,
1424
+ keyboard: !0
1425
+ }, () => {
1426
+ this.scrollTo({ row: l[0] });
1427
+ });
1428
+ }
1429
+ scrollTo({ categoryId: e, row: t }) {
1430
+ let n = this.state.searchResults || this.grid;
1431
+ if (!n.length) return;
1432
+ let r = this.refs.scroll.current, i = r.getBoundingClientRect(), a = 0;
1433
+ if (t >= 0 && (e = n[t].__categoryId), e && (a = (this.refs[e] || this.refs.categories.get(e).root).current.getBoundingClientRect().top - (i.top - r.scrollTop) + 1), t >= 0) if (!t) a = 0;
1434
+ else {
1435
+ let e = n[t].__index, o = a + e * this.props.emojiButtonSize, s = o + this.props.emojiButtonSize + this.props.emojiButtonSize * .88;
1436
+ if (o < r.scrollTop) a = o;
1437
+ else if (s > r.scrollTop + i.height) a = s - i.height;
1438
+ else return;
1439
+ }
1440
+ this.ignoreMouse(), r.scrollTop = a;
1441
+ }
1442
+ ignoreMouse() {
1443
+ this.mouseIsIgnored = !0, clearTimeout(this.ignoreMouseTimer), this.ignoreMouseTimer = setTimeout(() => {
1444
+ delete this.mouseIsIgnored;
1445
+ }, 100);
1446
+ }
1447
+ handleEmojiOver(e) {
1448
+ this.mouseIsIgnored || this.state.showSkins || this.setState({
1449
+ pos: e || [-1, -1],
1450
+ keyboard: !1
1451
+ });
1452
+ }
1453
+ handleEmojiClick({ e, emoji: t, pos: n }) {
1454
+ if (this.props.onEmojiSelect && (!t && n && (t = this.getEmojiByPos(n)), t)) {
1455
+ let n = Le(t, { skinIndex: this.state.skin - 1 });
1456
+ this.props.maxFrequentRows && N.add(n, this.props), this.props.onEmojiSelect(n, e);
1457
+ }
1458
+ }
1459
+ closeSkins() {
1460
+ this.state.showSkins && (this.setState({
1461
+ showSkins: null,
1462
+ tempSkin: null
1463
+ }), this.base.removeEventListener("click", this.handleBaseClick), this.base.removeEventListener("keydown", this.handleBaseKeydown));
1464
+ }
1465
+ handleSkinMouseOver(e) {
1466
+ this.setState({ tempSkin: e });
1467
+ }
1468
+ handleSkinClick(e) {
1469
+ this.ignoreMouse(), this.closeSkins(), this.setState({
1470
+ skin: e,
1471
+ tempSkin: null
1472
+ }), k.set("skin", e);
1473
+ }
1474
+ renderNav() {
1475
+ return /* @__PURE__ */ O(ht, {
1476
+ ref: this.refs.navigation,
1477
+ icons: this.props.icons,
1478
+ theme: this.state.theme,
1479
+ dir: this.dir,
1480
+ unfocused: !!this.state.searchResults,
1481
+ position: this.props.navPosition,
1482
+ onClick: this.handleCategoryClick
1483
+ }, this.navKey);
1484
+ }
1485
+ renderPreview() {
1486
+ let e = this.getEmojiByPos(this.state.pos), t = this.state.searchResults && !this.state.searchResults.length;
1487
+ return /* @__PURE__ */ O("div", {
1488
+ id: "preview",
1489
+ class: "flex flex-middle",
1490
+ dir: this.dir,
1491
+ "data-position": this.props.previewPosition,
1492
+ children: [/* @__PURE__ */ O("div", {
1493
+ class: "flex flex-middle flex-grow",
1494
+ children: [/* @__PURE__ */ O("div", {
1495
+ class: "flex flex-auto flex-middle flex-center",
1496
+ style: {
1497
+ height: this.props.emojiButtonSize,
1498
+ fontSize: this.props.emojiButtonSize
1499
+ },
1500
+ children: /* @__PURE__ */ O(V, {
1501
+ emoji: e,
1502
+ id: t ? this.props.noResultsEmoji || "cry" : this.props.previewEmoji || (this.props.previewPosition == "top" ? "point_down" : "point_up"),
1503
+ set: this.props.set,
1504
+ size: this.props.emojiButtonSize,
1505
+ skin: this.state.tempSkin || this.state.skin,
1506
+ spritesheet: !0,
1507
+ getSpritesheetURL: this.props.getSpritesheetURL
1508
+ })
1509
+ }), /* @__PURE__ */ O("div", {
1510
+ class: `margin-${this.dir[0]}`,
1511
+ children: e || t ? /* @__PURE__ */ O("div", {
1512
+ class: `padding-${this.dir[2]} align-${this.dir[0]}`,
1513
+ children: [/* @__PURE__ */ O("div", {
1514
+ class: "preview-title ellipsis",
1515
+ children: e ? e.name : F.search_no_results_1
1516
+ }), /* @__PURE__ */ O("div", {
1517
+ class: "preview-subtitle ellipsis color-c",
1518
+ children: e ? e.skins[0].shortcodes : F.search_no_results_2
1519
+ })]
1520
+ }) : /* @__PURE__ */ O("div", {
1521
+ class: "preview-placeholder color-c",
1522
+ children: F.pick
1523
+ })
1524
+ })]
1525
+ }), !e && this.props.skinTonePosition == "preview" && this.renderSkinToneButton()]
1526
+ });
1527
+ }
1528
+ renderEmojiButton(e, { pos: t, posinset: n, grid: r }) {
1529
+ let i = this.props.emojiButtonSize, a = this.state.tempSkin || this.state.skin, o = (e.skins[a - 1] || e.skins[0]).native, s = Fe(this.state.pos, t), c = t.concat(e.id).join("");
1530
+ return /* @__PURE__ */ O(gt, {
1531
+ selected: s,
1532
+ skin: a,
1533
+ size: i,
1534
+ children: /* @__PURE__ */ O("button", {
1535
+ "aria-label": o,
1536
+ "aria-selected": s || void 0,
1537
+ "aria-posinset": n,
1538
+ "aria-setsize": r.setsize,
1539
+ "data-keyboard": this.state.keyboard,
1540
+ title: this.props.previewPosition == "none" ? e.name : void 0,
1541
+ type: "button",
1542
+ class: "flex flex-center flex-middle",
1543
+ tabindex: "-1",
1544
+ onClick: (t) => this.handleEmojiClick({
1545
+ e: t,
1546
+ emoji: e
1547
+ }),
1548
+ onMouseEnter: () => this.handleEmojiOver(t),
1549
+ onMouseLeave: () => this.handleEmojiOver(),
1550
+ style: {
1551
+ width: this.props.emojiButtonSize,
1552
+ height: this.props.emojiButtonSize,
1553
+ fontSize: this.props.emojiSize,
1554
+ lineHeight: 0
1555
+ },
1556
+ children: [/* @__PURE__ */ O("div", {
1557
+ "aria-hidden": "true",
1558
+ class: "background",
1559
+ style: {
1560
+ borderRadius: this.props.emojiButtonRadius,
1561
+ backgroundColor: this.props.emojiButtonColors ? this.props.emojiButtonColors[(n - 1) % this.props.emojiButtonColors.length] : void 0
1562
+ }
1563
+ }), /* @__PURE__ */ O(V, {
1564
+ emoji: e,
1565
+ set: this.props.set,
1566
+ size: this.props.emojiSize,
1567
+ skin: a,
1568
+ spritesheet: !0,
1569
+ getSpritesheetURL: this.props.getSpritesheetURL
1570
+ })]
1571
+ })
1572
+ }, c);
1573
+ }
1574
+ renderSearch() {
1575
+ let e = this.props.previewPosition == "none" || this.props.skinTonePosition == "search";
1576
+ return /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ O("div", { class: "spacer" }), /* @__PURE__ */ O("div", {
1577
+ class: "flex flex-middle",
1578
+ children: [/* @__PURE__ */ O("div", {
1579
+ class: "search relative flex-grow",
1580
+ children: [
1581
+ /* @__PURE__ */ O("input", {
1582
+ type: "search",
1583
+ ref: this.refs.searchInput,
1584
+ placeholder: F.search,
1585
+ onClick: this.handleSearchClick,
1586
+ onInput: this.handleSearchInput,
1587
+ onKeyDown: this.handleSearchKeyDown,
1588
+ autoComplete: "off"
1589
+ }),
1590
+ /* @__PURE__ */ O("span", {
1591
+ class: "icon loupe flex",
1592
+ children: B.search.loupe
1593
+ }),
1594
+ this.state.searchResults && /* @__PURE__ */ O("button", {
1595
+ title: "Clear",
1596
+ "aria-label": "Clear",
1597
+ type: "button",
1598
+ class: "icon delete flex",
1599
+ onClick: this.clearSearch,
1600
+ onMouseDown: this.preventDefault,
1601
+ children: B.search.delete
1602
+ })
1603
+ ]
1604
+ }), e && this.renderSkinToneButton()]
1605
+ })] });
1606
+ }
1607
+ renderSearchResults() {
1608
+ let { searchResults: e } = this.state;
1609
+ return e ? /* @__PURE__ */ O("div", {
1610
+ class: "category",
1611
+ ref: this.refs.search,
1612
+ children: [/* @__PURE__ */ O("div", {
1613
+ class: `sticky padding-small align-${this.dir[0]}`,
1614
+ children: F.categories.search
1615
+ }), /* @__PURE__ */ O("div", { children: e.length ? e.map((t, n) => /* @__PURE__ */ O("div", {
1616
+ class: "flex",
1617
+ children: t.map((t, r) => this.renderEmojiButton(t, {
1618
+ pos: [n, r],
1619
+ posinset: n * this.props.perLine + r + 1,
1620
+ grid: e
1621
+ }))
1622
+ })) : /* @__PURE__ */ O("div", {
1623
+ class: `padding-small align-${this.dir[0]}`,
1624
+ children: this.props.onAddCustomEmoji && /* @__PURE__ */ O("a", {
1625
+ onClick: this.props.onAddCustomEmoji,
1626
+ children: F.add_custom
1627
+ })
1628
+ }) })]
1629
+ }) : null;
1630
+ }
1631
+ renderCategories() {
1632
+ let { categories: e } = I, t = !!this.state.searchResults, n = this.getPerLine();
1633
+ return /* @__PURE__ */ O("div", {
1634
+ style: {
1635
+ visibility: t ? "hidden" : void 0,
1636
+ display: t ? "none" : void 0,
1637
+ height: "100%"
1638
+ },
1639
+ children: e.map((e) => {
1640
+ let { root: t, rows: r } = this.refs.categories.get(e.id);
1641
+ return /* @__PURE__ */ O("div", {
1642
+ "data-id": e.target ? e.target.id : e.id,
1643
+ class: "category",
1644
+ ref: t,
1645
+ children: [/* @__PURE__ */ O("div", {
1646
+ class: `sticky padding-small align-${this.dir[0]}`,
1647
+ children: e.name || F.categories[e.id]
1648
+ }), /* @__PURE__ */ O("div", {
1649
+ class: "relative",
1650
+ style: { height: r.length * this.props.emojiButtonSize },
1651
+ children: r.map((t, r) => {
1652
+ let i = t.index - t.index % Z.rowsPerRender, a = this.state.visibleRows[i], o = "current" in t ? t : void 0;
1653
+ if (!a && !o) return null;
1654
+ let s = r * n, c = s + n, l = e.emojis.slice(s, c);
1655
+ return l.length < n && l.push(...Array(n - l.length)), /* @__PURE__ */ O("div", {
1656
+ "data-index": t.index,
1657
+ ref: o,
1658
+ class: "flex row",
1659
+ style: { top: r * this.props.emojiButtonSize },
1660
+ children: a && l.map((e, n) => {
1661
+ if (!e) return /* @__PURE__ */ O("div", { style: {
1662
+ width: this.props.emojiButtonSize,
1663
+ height: this.props.emojiButtonSize
1664
+ } });
1665
+ let r = z.get(e);
1666
+ return this.renderEmojiButton(r, {
1667
+ pos: [t.index, n],
1668
+ posinset: t.posinset + n,
1669
+ grid: this.grid
1670
+ });
1671
+ })
1672
+ }, t.index);
1673
+ })
1674
+ })]
1675
+ });
1676
+ })
1677
+ });
1678
+ }
1679
+ renderSkinToneButton() {
1680
+ return this.props.skinTonePosition == "none" ? null : /* @__PURE__ */ O("div", {
1681
+ class: "flex flex-auto flex-center flex-middle",
1682
+ style: {
1683
+ position: "relative",
1684
+ width: this.props.emojiButtonSize,
1685
+ height: this.props.emojiButtonSize
1686
+ },
1687
+ children: /* @__PURE__ */ O("button", {
1688
+ type: "button",
1689
+ ref: this.refs.skinToneButton,
1690
+ class: "skin-tone-button flex flex-auto flex-center flex-middle",
1691
+ "aria-selected": this.state.showSkins ? "" : void 0,
1692
+ "aria-label": F.skins.choose,
1693
+ title: F.skins.choose,
1694
+ onClick: this.openSkins,
1695
+ style: {
1696
+ width: this.props.emojiSize,
1697
+ height: this.props.emojiSize
1698
+ },
1699
+ children: /* @__PURE__ */ O("span", { class: `skin-tone skin-tone-${this.state.skin}` })
1700
+ })
1701
+ });
1702
+ }
1703
+ renderLiveRegion() {
1704
+ let e = this.getEmojiByPos(this.state.pos);
1705
+ return /* @__PURE__ */ O("div", {
1706
+ "aria-live": "polite",
1707
+ class: "sr-only",
1708
+ children: e ? e.name : ""
1709
+ });
1710
+ }
1711
+ renderSkins() {
1712
+ let e = this.refs.skinToneButton.current.getBoundingClientRect(), t = this.base.getBoundingClientRect(), n = {};
1713
+ return this.dir == "ltr" ? n.right = t.right - e.right - 3 : n.left = e.left - t.left - 3, this.props.previewPosition == "bottom" && this.props.skinTonePosition == "preview" ? n.bottom = t.bottom - e.top + 6 : (n.top = e.bottom - t.top + 3, n.bottom = "auto"), /* @__PURE__ */ O("div", {
1714
+ ref: this.refs.menu,
1715
+ role: "radiogroup",
1716
+ dir: this.dir,
1717
+ "aria-label": F.skins.choose,
1718
+ class: "menu hidden",
1719
+ "data-position": n.top ? "top" : "bottom",
1720
+ style: n,
1721
+ children: [...[
1722
+ ,
1723
+ ,
1724
+ ,
1725
+ ,
1726
+ ,
1727
+ ,
1728
+ ].keys()].map((e) => {
1729
+ let t = e + 1, n = this.state.skin == t;
1730
+ return /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ O("input", {
1731
+ type: "radio",
1732
+ name: "skin-tone",
1733
+ value: t,
1734
+ "aria-label": F.skins[t],
1735
+ ref: n ? this.refs.skinToneRadio : null,
1736
+ defaultChecked: n,
1737
+ onChange: () => this.handleSkinMouseOver(t),
1738
+ onKeyDown: (e) => {
1739
+ (e.code == "Enter" || e.code == "Space" || e.code == "Tab") && (e.preventDefault(), this.handleSkinClick(t));
1740
+ }
1741
+ }), /* @__PURE__ */ O("button", {
1742
+ "aria-hidden": "true",
1743
+ tabindex: "-1",
1744
+ onClick: () => this.handleSkinClick(t),
1745
+ onMouseEnter: () => this.handleSkinMouseOver(t),
1746
+ onMouseLeave: () => this.handleSkinMouseOver(),
1747
+ class: "option flex flex-grow flex-middle",
1748
+ children: [/* @__PURE__ */ O("span", { class: `skin-tone skin-tone-${t}` }), /* @__PURE__ */ O("span", {
1749
+ class: "margin-small-lr",
1750
+ children: F.skins[t]
1751
+ })]
1752
+ })] });
1753
+ })
1754
+ });
1755
+ }
1756
+ render() {
1757
+ let e = this.props.perLine * this.props.emojiButtonSize;
1758
+ return /* @__PURE__ */ O("section", {
1759
+ id: "root",
1760
+ class: "flex flex-column",
1761
+ dir: this.dir,
1762
+ style: { width: this.props.dynamicWidth ? "100%" : `calc(${e}px + (var(--padding) + var(--sidebar-width)))` },
1763
+ "data-emoji-set": this.props.set,
1764
+ "data-theme": this.state.theme,
1765
+ "data-menu": this.state.showSkins ? "" : void 0,
1766
+ children: [
1767
+ this.props.previewPosition == "top" && this.renderPreview(),
1768
+ this.props.navPosition == "top" && this.renderNav(),
1769
+ this.props.searchPosition == "sticky" && /* @__PURE__ */ O("div", {
1770
+ class: "padding-lr",
1771
+ children: this.renderSearch()
1772
+ }),
1773
+ /* @__PURE__ */ O("div", {
1774
+ ref: this.refs.scroll,
1775
+ class: "scroll flex-grow padding-lr",
1776
+ children: /* @__PURE__ */ O("div", {
1777
+ style: {
1778
+ width: this.props.dynamicWidth ? "100%" : e,
1779
+ height: "100%"
1780
+ },
1781
+ children: [
1782
+ this.props.searchPosition == "static" && this.renderSearch(),
1783
+ this.renderSearchResults(),
1784
+ this.renderCategories()
1785
+ ]
1786
+ })
1787
+ }),
1788
+ this.props.navPosition == "bottom" && this.renderNav(),
1789
+ this.props.previewPosition == "bottom" && this.renderPreview(),
1790
+ this.state.showSkins && this.renderSkins(),
1791
+ this.renderLiveRegion()
1792
+ ]
1793
+ });
1794
+ }
1795
+ constructor(e) {
1796
+ super(), t(this, "darkMediaCallback", () => {
1797
+ this.props.theme == "auto" && this.setState({ theme: this.darkMedia.matches ? "dark" : "light" });
1798
+ }), t(this, "handleClickOutside", (e) => {
1799
+ let { element: t } = this.props;
1800
+ e.target != t && (this.state.showSkins && this.closeSkins(), this.props.onClickOutside && this.props.onClickOutside(e));
1801
+ }), t(this, "handleBaseClick", (e) => {
1802
+ this.state.showSkins && (e.target.closest(".menu") || (e.preventDefault(), e.stopImmediatePropagation(), this.closeSkins()));
1803
+ }), t(this, "handleBaseKeydown", (e) => {
1804
+ this.state.showSkins && e.key == "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), this.closeSkins());
1805
+ }), t(this, "handleSearchClick", () => {
1806
+ this.getEmojiByPos(this.state.pos) && this.setState({ pos: [-1, -1] });
1807
+ }), t(this, "handleSearchInput", async () => {
1808
+ let e = this.refs.searchInput.current;
1809
+ if (!e) return;
1810
+ let { value: t } = e, n = await z.search(t), r = () => {
1811
+ this.refs.scroll.current && (this.refs.scroll.current.scrollTop = 0);
1812
+ };
1813
+ if (!n) return this.setState({
1814
+ searchResults: n,
1815
+ pos: [-1, -1]
1816
+ }, r);
1817
+ let i = e.selectionStart == e.value.length ? [0, 0] : [-1, -1], a = [];
1818
+ a.setsize = n.length;
1819
+ let o = null;
1820
+ for (let e of n) (!a.length || o.length == this.getPerLine()) && (o = [], o.__categoryId = "search", o.__index = a.length, a.push(o)), o.push(e);
1821
+ this.ignoreMouse(), this.setState({
1822
+ searchResults: a,
1823
+ pos: i
1824
+ }, r);
1825
+ }), t(this, "handleSearchKeyDown", (e) => {
1826
+ let t = e.currentTarget;
1827
+ switch (e.stopImmediatePropagation(), e.key) {
1828
+ case "ArrowLeft":
1829
+ this.navigate({
1830
+ e,
1831
+ input: t,
1832
+ left: !0
1833
+ });
1834
+ break;
1835
+ case "ArrowRight":
1836
+ this.navigate({
1837
+ e,
1838
+ input: t,
1839
+ right: !0
1840
+ });
1841
+ break;
1842
+ case "ArrowUp":
1843
+ this.navigate({
1844
+ e,
1845
+ input: t,
1846
+ up: !0
1847
+ });
1848
+ break;
1849
+ case "ArrowDown":
1850
+ this.navigate({
1851
+ e,
1852
+ input: t,
1853
+ down: !0
1854
+ });
1855
+ break;
1856
+ case "Enter":
1857
+ e.preventDefault(), this.handleEmojiClick({
1858
+ e,
1859
+ pos: this.state.pos
1860
+ });
1861
+ break;
1862
+ case "Escape":
1863
+ e.preventDefault(), this.state.searchResults ? this.clearSearch() : this.unfocusSearch();
1864
+ break;
1865
+ default: break;
1866
+ }
1867
+ }), t(this, "clearSearch", () => {
1868
+ let e = this.refs.searchInput.current;
1869
+ e && (e.value = "", e.focus(), this.handleSearchInput());
1870
+ }), t(this, "handleCategoryClick", ({ category: e, i: t }) => {
1871
+ this.scrollTo(t == 0 ? { row: -1 } : { categoryId: e.id });
1872
+ }), t(this, "openSkins", (e) => {
1873
+ let { currentTarget: t } = e, n = t.getBoundingClientRect();
1874
+ this.setState({ showSkins: n }, async () => {
1875
+ await Ie(2);
1876
+ let e = this.refs.menu.current;
1877
+ e && (e.classList.remove("hidden"), this.refs.skinToneRadio.current.focus(), this.base.addEventListener("click", this.handleBaseClick, !0), this.base.addEventListener("keydown", this.handleBaseKeydown, !0));
1878
+ });
1879
+ }), this.observers = [], this.state = {
1880
+ pos: [-1, -1],
1881
+ perLine: this.initDynamicPerLine(e),
1882
+ visibleRows: { 0: !0 },
1883
+ ...this.getInitialState(e)
1884
+ };
1885
+ }
1886
+ }, Q = class extends Ve {
1887
+ async connectedCallback() {
1888
+ let e = De(this.props, P, this);
1889
+ e.element = this, e.ref = (e) => {
1890
+ this.component = e;
1891
+ }, await R(e), !this.disconnected && le(/* @__PURE__ */ O(_t, { ...e }), this.shadowRoot);
1892
+ }
1893
+ constructor(t) {
1894
+ super(t, { styles: /* @__PURE__ */ e($) });
1895
+ }
1896
+ };
1897
+ t(Q, "Props", P), typeof customElements < "u" && !customElements.get("em-emoji-picker") && customElements.define("em-emoji-picker", Q);
1898
+ var $ = {};
1899
+ $ = ":host {\n width: min-content;\n height: 435px;\n min-height: 230px;\n border-radius: var(--border-radius);\n box-shadow: var(--shadow);\n --border-radius: 10px;\n --category-icon-size: 18px;\n --font-family: -apple-system, BlinkMacSystemFont, \"Helvetica Neue\", sans-serif;\n --font-size: 15px;\n --preview-placeholder-size: 21px;\n --preview-title-size: 1.1em;\n --preview-subtitle-size: .9em;\n --shadow-color: 0deg 0% 0%;\n --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);\n display: flex;\n}\n\n[data-theme=\"light\"] {\n --em-rgb-color: var(--rgb-color, 34, 36, 39);\n --em-rgb-accent: var(--rgb-accent, 34, 102, 237);\n --em-rgb-background: var(--rgb-background, 255, 255, 255);\n --em-rgb-input: var(--rgb-input, 255, 255, 255);\n --em-color-border: var(--color-border, rgba(0, 0, 0, .05));\n --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1));\n}\n\n[data-theme=\"dark\"] {\n --em-rgb-color: var(--rgb-color, 222, 222, 221);\n --em-rgb-accent: var(--rgb-accent, 58, 130, 247);\n --em-rgb-background: var(--rgb-background, 21, 22, 23);\n --em-rgb-input: var(--rgb-input, 0, 0, 0);\n --em-color-border: var(--color-border, rgba(255, 255, 255, .1));\n --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));\n}\n\n#root {\n --color-a: rgb(var(--em-rgb-color));\n --color-b: rgba(var(--em-rgb-color), .65);\n --color-c: rgba(var(--em-rgb-color), .45);\n --padding: 12px;\n --padding-small: calc(var(--padding) / 2);\n --sidebar-width: 16px;\n --duration: 225ms;\n --duration-fast: 125ms;\n --duration-instant: 50ms;\n --easing: cubic-bezier(.4, 0, .2, 1);\n width: 100%;\n text-align: left;\n border-radius: var(--border-radius);\n background-color: rgb(var(--em-rgb-background));\n position: relative;\n}\n\n@media (prefers-reduced-motion) {\n #root {\n --duration: 0;\n --duration-fast: 0;\n --duration-instant: 0;\n }\n}\n\n#root[data-menu] button {\n cursor: auto;\n}\n\n#root[data-menu] .menu button {\n cursor: pointer;\n}\n\n:host, #root, input, button {\n color: rgb(var(--em-rgb-color));\n font-family: var(--font-family);\n font-size: var(--font-size);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: normal;\n}\n\n*, :before, :after {\n box-sizing: border-box;\n min-width: 0;\n margin: 0;\n padding: 0;\n}\n\n.relative {\n position: relative;\n}\n\n.flex {\n display: flex;\n}\n\n.flex-auto {\n flex: none;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-column {\n flex-direction: column;\n}\n\n.flex-grow {\n flex: auto;\n}\n\n.flex-middle {\n align-items: center;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.padding {\n padding: var(--padding);\n}\n\n.padding-t {\n padding-top: var(--padding);\n}\n\n.padding-lr {\n padding-left: var(--padding);\n padding-right: var(--padding);\n}\n\n.padding-r {\n padding-right: var(--padding);\n}\n\n.padding-small {\n padding: var(--padding-small);\n}\n\n.padding-small-b {\n padding-bottom: var(--padding-small);\n}\n\n.padding-small-lr {\n padding-left: var(--padding-small);\n padding-right: var(--padding-small);\n}\n\n.margin {\n margin: var(--padding);\n}\n\n.margin-r {\n margin-right: var(--padding);\n}\n\n.margin-l {\n margin-left: var(--padding);\n}\n\n.margin-small-l {\n margin-left: var(--padding-small);\n}\n\n.margin-small-lr {\n margin-left: var(--padding-small);\n margin-right: var(--padding-small);\n}\n\n.align-l {\n text-align: left;\n}\n\n.align-r {\n text-align: right;\n}\n\n.color-a {\n color: var(--color-a);\n}\n\n.color-b {\n color: var(--color-b);\n}\n\n.color-c {\n color: var(--color-c);\n}\n\n.ellipsis {\n white-space: nowrap;\n max-width: 100%;\n width: auto;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.sr-only {\n width: 1px;\n height: 1px;\n position: absolute;\n top: auto;\n left: -10000px;\n overflow: hidden;\n}\n\na {\n cursor: pointer;\n color: rgb(var(--em-rgb-accent));\n}\n\na:hover {\n text-decoration: underline;\n}\n\n.spacer {\n height: 10px;\n}\n\n[dir=\"rtl\"] .scroll {\n padding-left: 0;\n padding-right: var(--padding);\n}\n\n.scroll {\n padding-right: 0;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.scroll::-webkit-scrollbar {\n width: var(--sidebar-width);\n height: var(--sidebar-width);\n}\n\n.scroll::-webkit-scrollbar-track {\n border: 0;\n}\n\n.scroll::-webkit-scrollbar-button {\n width: 0;\n height: 0;\n display: none;\n}\n\n.scroll::-webkit-scrollbar-corner {\n background-color: rgba(0, 0, 0, 0);\n}\n\n.scroll::-webkit-scrollbar-thumb {\n min-height: 20%;\n min-height: 65px;\n border: 4px solid rgb(var(--em-rgb-background));\n border-radius: 8px;\n}\n\n.scroll::-webkit-scrollbar-thumb:hover {\n background-color: var(--em-color-border-over) !important;\n}\n\n.scroll:hover::-webkit-scrollbar-thumb {\n background-color: var(--em-color-border);\n}\n\n.sticky {\n z-index: 1;\n background-color: rgba(var(--em-rgb-background), .9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n font-weight: 500;\n position: sticky;\n top: -1px;\n}\n\n[dir=\"rtl\"] .search input[type=\"search\"] {\n padding: 10px 2.2em 10px 2em;\n}\n\n[dir=\"rtl\"] .search .loupe {\n left: auto;\n right: .7em;\n}\n\n[dir=\"rtl\"] .search .delete {\n left: .7em;\n right: auto;\n}\n\n.search {\n z-index: 2;\n position: relative;\n}\n\n.search input, .search button {\n font-size: calc(var(--font-size) - 1px);\n}\n\n.search input[type=\"search\"] {\n width: 100%;\n background-color: var(--em-color-border);\n transition-duration: var(--duration);\n transition-property: background-color, box-shadow;\n transition-timing-function: var(--easing);\n border: 0;\n border-radius: 10px;\n outline: 0;\n padding: 10px 2em 10px 2.2em;\n display: block;\n}\n\n.search input[type=\"search\"]::-ms-input-placeholder {\n color: inherit;\n opacity: .6;\n}\n\n.search input[type=\"search\"]::placeholder {\n color: inherit;\n opacity: .6;\n}\n\n.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 {\n -webkit-appearance: none;\n -ms-appearance: none;\n appearance: none;\n}\n\n.search input[type=\"search\"]:focus {\n background-color: rgb(var(--em-rgb-input));\n box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2);\n}\n\n.search .icon {\n z-index: 1;\n color: rgba(var(--em-rgb-color), .7);\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.search .loupe {\n pointer-events: none;\n left: .7em;\n}\n\n.search .delete {\n right: .7em;\n}\n\nsvg {\n fill: currentColor;\n width: 1em;\n height: 1em;\n}\n\nbutton {\n -webkit-appearance: none;\n -ms-appearance: none;\n appearance: none;\n cursor: pointer;\n color: currentColor;\n background-color: rgba(0, 0, 0, 0);\n border: 0;\n}\n\n#nav {\n z-index: 2;\n padding-top: 12px;\n padding-bottom: 12px;\n padding-right: var(--sidebar-width);\n position: relative;\n}\n\n#nav button {\n color: var(--color-b);\n transition: color var(--duration) var(--easing);\n}\n\n#nav button:hover {\n color: var(--color-a);\n}\n\n#nav svg, #nav img {\n width: var(--category-icon-size);\n height: var(--category-icon-size);\n}\n\n#nav[dir=\"rtl\"] .bar {\n left: auto;\n right: 0;\n}\n\n#nav .bar {\n width: 100%;\n height: 3px;\n background-color: rgb(var(--em-rgb-accent));\n transition: transform var(--duration) var(--easing);\n border-radius: 3px 3px 0 0;\n position: absolute;\n bottom: -12px;\n left: 0;\n}\n\n#nav button[aria-selected] {\n color: rgb(var(--em-rgb-accent));\n}\n\n#preview {\n z-index: 2;\n padding: calc(var(--padding) + 4px) var(--padding);\n padding-right: var(--sidebar-width);\n position: relative;\n}\n\n#preview .preview-placeholder {\n font-size: var(--preview-placeholder-size);\n}\n\n#preview .preview-title {\n font-size: var(--preview-title-size);\n}\n\n#preview .preview-subtitle {\n font-size: var(--preview-subtitle-size);\n}\n\n#nav:before, #preview:before {\n content: \"\";\n height: 2px;\n position: absolute;\n left: 0;\n right: 0;\n}\n\n#nav[data-position=\"top\"]:before, #preview[data-position=\"top\"]:before {\n background: linear-gradient(to bottom, var(--em-color-border), transparent);\n top: 100%;\n}\n\n#nav[data-position=\"bottom\"]:before, #preview[data-position=\"bottom\"]:before {\n background: linear-gradient(to top, var(--em-color-border), transparent);\n bottom: 100%;\n}\n\n.category:last-child {\n min-height: calc(100% + 1px);\n}\n\n.category button {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;\n position: relative;\n}\n\n.category button > * {\n position: relative;\n}\n\n.category button .background {\n opacity: 0;\n background-color: var(--em-color-border);\n transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n.category button:hover .background {\n transition-duration: var(--duration-instant);\n transition-delay: 0s;\n}\n\n.category button[aria-selected] .background {\n opacity: 1;\n}\n\n.category button[data-keyboard] .background {\n transition: none;\n}\n\n.row {\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.skin-tone-button {\n border: 1px solid rgba(0, 0, 0, 0);\n border-radius: 100%;\n}\n\n.skin-tone-button:hover {\n border-color: var(--em-color-border);\n}\n\n.skin-tone-button:active .skin-tone {\n transform: scale(.85) !important;\n}\n\n.skin-tone-button .skin-tone {\n transition: transform var(--duration) var(--easing);\n}\n\n.skin-tone-button[aria-selected] {\n background-color: var(--em-color-border);\n border-top-color: rgba(0, 0, 0, .05);\n border-bottom-color: rgba(0, 0, 0, 0);\n border-left-width: 0;\n border-right-width: 0;\n}\n\n.skin-tone-button[aria-selected] .skin-tone {\n transform: scale(.9);\n}\n\n.menu {\n z-index: 2;\n white-space: nowrap;\n border: 1px solid var(--em-color-border);\n background-color: rgba(var(--em-rgb-background), .9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n transition-property: opacity, transform;\n transition-duration: var(--duration);\n transition-timing-function: var(--easing);\n border-radius: 10px;\n padding: 4px;\n position: absolute;\n box-shadow: 1px 1px 5px rgba(0, 0, 0, .05);\n}\n\n.menu.hidden {\n opacity: 0;\n}\n\n.menu[data-position=\"bottom\"] {\n transform-origin: 100% 100%;\n}\n\n.menu[data-position=\"bottom\"].hidden {\n transform: scale(.9)rotate(-3deg)translateY(5%);\n}\n\n.menu[data-position=\"top\"] {\n transform-origin: 100% 0;\n}\n\n.menu[data-position=\"top\"].hidden {\n transform: scale(.9)rotate(3deg)translateY(-5%);\n}\n\n.menu input[type=\"radio\"] {\n clip: rect(0 0 0 0);\n width: 1px;\n height: 1px;\n border: 0;\n margin: 0;\n padding: 0;\n position: absolute;\n overflow: hidden;\n}\n\n.menu input[type=\"radio\"]:checked + .option {\n box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));\n}\n\n.option {\n width: 100%;\n border-radius: 6px;\n padding: 4px 6px;\n}\n\n.option:hover {\n color: #fff;\n background-color: rgb(var(--em-rgb-accent));\n}\n\n.skin-tone {\n width: 16px;\n height: 16px;\n border-radius: 100%;\n display: inline-block;\n position: relative;\n overflow: hidden;\n}\n\n.skin-tone:after {\n content: \"\";\n mix-blend-mode: overlay;\n background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0));\n border: 1px solid rgba(0, 0, 0, .8);\n border-radius: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;\n}\n\n.skin-tone-1 {\n background-color: #ffc93a;\n}\n\n.skin-tone-2 {\n background-color: #ffdab7;\n}\n\n.skin-tone-3 {\n background-color: #e7b98f;\n}\n\n.skin-tone-4 {\n background-color: #c88c61;\n}\n\n.skin-tone-5 {\n background-color: #a46134;\n}\n\n.skin-tone-6 {\n background-color: #5d4437;\n}\n\n[data-index] {\n justify-content: space-between;\n}\n\n[data-emoji-set=\"twitter\"] .skin-tone:after {\n box-shadow: none;\n border-color: rgba(0, 0, 0, .5);\n}\n\n[data-emoji-set=\"twitter\"] .skin-tone-1 {\n background-color: #fade72;\n}\n\n[data-emoji-set=\"twitter\"] .skin-tone-2 {\n background-color: #f3dfd0;\n}\n\n[data-emoji-set=\"twitter\"] .skin-tone-3 {\n background-color: #eed3a8;\n}\n\n[data-emoji-set=\"twitter\"] .skin-tone-4 {\n background-color: #cfad8d;\n}\n\n[data-emoji-set=\"twitter\"] .skin-tone-5 {\n background-color: #a8805d;\n}\n\n[data-emoji-set=\"twitter\"] .skin-tone-6 {\n background-color: #765542;\n}\n\n[data-emoji-set=\"google\"] .skin-tone:after {\n box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4);\n}\n\n[data-emoji-set=\"google\"] .skin-tone-1 {\n background-color: #f5c748;\n}\n\n[data-emoji-set=\"google\"] .skin-tone-2 {\n background-color: #f1d5aa;\n}\n\n[data-emoji-set=\"google\"] .skin-tone-3 {\n background-color: #d4b48d;\n}\n\n[data-emoji-set=\"google\"] .skin-tone-4 {\n background-color: #aa876b;\n}\n\n[data-emoji-set=\"google\"] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set=\"google\"] .skin-tone-6 {\n background-color: #61493f;\n}\n\n[data-emoji-set=\"facebook\"] .skin-tone:after {\n border-color: rgba(0, 0, 0, .4);\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;\n}\n\n[data-emoji-set=\"facebook\"] .skin-tone-1 {\n background-color: #f5c748;\n}\n\n[data-emoji-set=\"facebook\"] .skin-tone-2 {\n background-color: #f1d5aa;\n}\n\n[data-emoji-set=\"facebook\"] .skin-tone-3 {\n background-color: #d4b48d;\n}\n\n[data-emoji-set=\"facebook\"] .skin-tone-4 {\n background-color: #aa876b;\n}\n\n[data-emoji-set=\"facebook\"] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set=\"facebook\"] .skin-tone-6 {\n background-color: #61493f;\n}\n\n";
1900
+ //#endregion
1901
+ export { I as Data, H as Emoji, N as FrequentlyUsed, F as I18n, Q as Picker, Pe as SafeFlags, z as SearchIndex, k as Store, Re as getEmojiDataFromNative, R as init };