PageSourceSearch

https://app.tyquill.ai/assets/_articleId-BlAiTtXg.js

js tyquill.ai collected 2026-10-02 00:43:33 UTC 1,457,446 bytes, 301 lines download raw bytes

1import{c as Ve,B as zf,r as b,m as mn,H as h_,j as f,w as Ns,I as g_,J as $f,K as Ni,C as b_,k as Hf,t as ws,T as D2,v as ea,x as da,b as F2,f as v_,g as Hu,M as Ng}from"./index-Dgn6DKPx.js";import{e as j_,b as E2,g as k_,h as ps,P as Ks,i as hn,o as $r,j as y_,k as w_,D as __,u as vs,d as x_,c as es,B as Le,f as cp}from"./index-CA1oIEuC.js";import{B as Da}from"./badge-DKu90idS.js";import{D as I2,a as S2,b as C_,c as D_,d as F_}from"./dialog-C7vFcwGg.js";import{R as E_,a as Rg,b as I_}from"./resizable-DW6eKTgJ.js";import{s as A2,u as zt,a as S_}from"./index-dTY68GgN.js";import{i as A_,b as Vf,u as M_,d as Ht,g as T_,e as Vu,f as N_,h as R_,j as Uu,k as O_,l as B_,o as Uf,m as M2,s as T2,n as N2,c as R2,R as L_,A as O2,C as P_,a as z_,p as $_,q as B2,r as H_,t as V_,v as U_,w as q_,x as W_,y as K_}from"./index-DLKsWNUv.js";import{h as G_,R as Z_,u as J_,F as Y_}from"./index-CLg1BKAD.js";import{I as X_,R as Q_,T as L2,C as P2,P as ex,S as z2,D as $2,a as H2,b as V2,c as pa,g as up,d as tx,e as nx,f as ox}from"./dropdown-menu-CO3ygi2g.js";import{A as qf,a as Wf,b as Kf}from"./alert-BLqok0wO.js";import{u as sx}from"./index-BUcHZ7IE.js";import{c as rx}from"./index-BdQq_4o_.js";import{T as ax}from"./textarea-CT_sVBBb.js";import{T as ix,a as lx,b as cx,c as ux}from"./tooltip-Wxteot61.js";import{a as Ro}from"./article.service-fj3O5Zdm.js";import{u as oi}from"./useTranslation-DwAXk-Kx.js";import{C as U2}from"./chevron-down-DyqIIN94.js";import{X as Gf}from"./x-Rel1YFG_.js";import{C as dp}from"./check-CtRd6KLJ.js";import{G as dx}from"./index-Dkht_eEg.js";import{M as px,I as fx}from"./music-BwuHln6l.js";import{F as Zf}from"./file-text-DOyULCur.js";import{C as Gs,d as Zs}from"./card-CUy5snoM.js";import{B as mx,H as Jf,A as hx,f as Og,E as gx,a as bx,g as Bg}from"./folder-icons-BB4O67sD.js";import{U as Bc}from"./user-B268AX2N.js";import{E as vx}from"./eye-Cwhg2jOa.js";import{S as jx}from"./sparkles-ByryKZeL.js";import{u as qu}from"./useMutation-DP92Tosv.js";import{D as kx}from"./download-DAlXzMcv.js";import"./index-DCYs_jYw.js";import"./index-CZ30QPVs.js";import"./chevron-right-B-l8byzU.js";import"./index-BGAq7GE9.js";import"./iconBase-D_0kYrd_.js";import"./code-yDb0KUMc.js";/**
2 * @license lucide-react v0.544.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const yx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],pp=Ve("circle-x",yx);/**
7 * @license lucide-react v0.544.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const wx=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],xl=Ve("clock",wx);/**
12 * @license lucide-react v0.544.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const _x=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Js=Ve("copy",_x);/**
17 * @license lucide-react v0.544.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const xx=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Cx=Ve("history",xx);/**
22 * @license lucide-react v0.544.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const Dx=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Fx=Ve("instagram",Dx);/**
27 * @license lucide-react v0.544.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */const Ex=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],Ix=Ve("linkedin",Ex);/**
32 * @license lucide-react v0.544.0 - ISC
33 *
34 * This source code is licensed under the ISC license.
35 * See the LICENSE file in the root directory of this source tree.
36 */const Sx=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Ax=Ve("mail",Sx);/**
37 * @license lucide-react v0.544.0 - ISC
38 *
39 * This source code is licensed under the ISC license.
40 * See the LICENSE file in the root directory of this source tree.
41 */const Mx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],Tx=Ve("maximize-2",Mx);/**
42 * @license lucide-react v0.544.0 - ISC
43 *
44 * This source code is licensed under the ISC license.
45 * See the LICENSE file in the root directory of this source tree.
46 */const Nx=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Rx=Ve("message-circle-plus",Nx);/**
47 * @license lucide-react v0.544.0 - ISC
48 *
49 * This source code is licensed under the ISC license.
50 * See the LICENSE file in the root directory of this source tree.
51 */const Ox=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Lc=Ve("message-circle",Ox);/**
52 * @license lucide-react v0.544.0 - ISC
53 *
54 * This source code is licensed under the ISC license.
55 * See the LICENSE file in the root directory of this source tree.
56 */const Bx=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Lx=Ve("message-square",Bx);/**
57 * @license lucide-react v0.544.0 - ISC
58 *
59 * This source code is licensed under the ISC license.
60 * See the LICENSE file in the root directory of this source tree.
61 */const Px=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],zx=Ve("mic",Px);/**
62 * @license lucide-react v0.544.0 - ISC
63 *
64 * This source code is licensed under the ISC license.
65 * See the LICENSE file in the root directory of this source tree.
66 */const $x=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Hx=Ve("minimize-2",$x);/**
67 * @license lucide-react v0.544.0 - ISC
68 *
69 * This source code is licensed under the ISC license.
70 * See the LICENSE file in the root directory of this source tree.
71 */const Vx=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Ux=Ve("panel-left",Vx);/**
72 * @license lucide-react v0.544.0 - ISC
73 *
74 * This source code is licensed under the ISC license.
75 * See the LICENSE file in the root directory of this source tree.
76 */const qx=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Wx=Ve("refresh-cw",qx);/**
77 * @license lucide-react v0.544.0 - ISC
78 *
79 * This source code is licensed under the ISC license.
80 * See the LICENSE file in the root directory of this source tree.
81 */const Kx=[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]],q2=Ve("repeat-2",Kx);/**
82 * @license lucide-react v0.544.0 - ISC
83 *
84 * This source code is licensed under the ISC license.
85 * See the LICENSE file in the root directory of this source tree.
86 */const Gx=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Zx=Ve("rotate-ccw",Gx);/**
87 * @license lucide-react v0.544.0 - ISC
88 *
89 * This source code is licensed under the ISC license.
90 * See the LICENSE file in the root directory of this source tree.
91 */const Jx=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Yx=Ve("rotate-cw",Jx);/**
92 * @license lucide-react v0.544.0 - ISC
93 *
94 * This source code is licensed under the ISC license.
95 * See the LICENSE file in the root directory of this source tree.
96 */const Xx=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Qx=Ve("send",Xx);/**
97 * @license lucide-react v0.544.0 - ISC
98 *
99 * This source code is licensed under the ISC license.
100 * See the LICENSE file in the root directory of this source tree.
101 */const eC=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],si=Ve("share-2",eC);/**
102 * @license lucide-react v0.544.0 - ISC
103 *
104 * This source code is licensed under the ISC license.
105 * See the LICENSE file in the root directory of this source tree.
106 */const tC=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],nC=Ve("thumbs-up",tC);/**
107 * @license lucide-react v0.544.0 - ISC
108 *
109 * This source code is licensed under the ISC license.
110 * See the LICENSE file in the root directory of this source tree.
111 */const oC=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],sC=Ve("twitter",oC);/**
112 * @license lucide-react v0.544.0 - ISC
113 *
114 * This source code is licensed under the ISC license.
115 * See the LICENSE file in the root directory of this source tree.
116 */const rC=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],aC=Ve("type",rC);/**
117 * @license lucide-react v0.544.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */const iC=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.5
1215 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],lC=Ve("youtube",iC);function kt(t){this.content=t}kt.prototype={constructor:kt,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var o=n&&n!=t?this.remove(n):this,s=o.find(t),r=o.content.slice();return s==-1?r.push(n||t,e):(r[s+1]=e,n&&(r[s]=n)),new kt(r)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new kt(n)},addToStart:function(t,e){return new kt([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new kt(n)},addBefore:function(t,e,n){var o=this.remove(e),s=o.content.slice(),r=o.find(t);return s.splice(r==-1?s.length:r,0,e,n),new kt(s)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=kt.from(t),t.size?new kt(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=kt.from(t),t.size?new kt(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=kt.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};kt.from=function(t){if(t instanceof kt)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new kt(e)};function W2(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let s=t.child(o),r=e.child(o);if(s==r){n+=s.nodeSize;continue}if(!s.sameMarkup(r))return n;if(s.isText&&s.text!=r.text){for(let a=0;s.text[a]==r.text[a];a++)n++;return n}if(s.content.size||r.content.size){let a=W2(s.content,r.content,n+1);if(a!=null)return a}n+=s.nodeSize}}function K2(t,e,n,o){for(let s=t.childCount,r=e.childCount;;){if(s==0||r==0)return s==r?null:{a:n,b:o};let a=t.child(--s),i=e.child(--r),l=a.nodeSize;if(a==i){n-=l,o-=l;continue}if(!a.sameMarkup(i))return{a:n,b:o};if(a.isText&&a.text!=i.text){let c=0,u=Math.min(a.text.length,i.text.length);for(;c<u&&a.text[a.text.length-c-1]==i.text[i.text.length-c-1];)c++,n--,o--;return{a:n,b:o}}if(a.content.size||i.content.size){let c=K2(a.content,i.content,n-1,o-1);if(c)return c}n-=l,o-=l}}class z{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,n,o,s=0,r){for(let a=0,i=0;i<n;a++){let l=this.content[a],c=i+l.nodeSize;if(c>e&&o(l,s+i,r||null,a)!==!1&&l.content.size){let u=i+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),o,s+u)}i=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,o,s){let r="",a=!0;return this.nodesBetween(e,n,(i,l)=>{let c=i.isText?i.text.slice(Math.max(e,l)-l,n-l):i.isLeaf?s?typeof s=="function"?s(i):s:i.type.spec.leafText?i.type.spec.leafText(i):"":"";i.isBlock&&(i.isLeaf&&c||i.isTextblock)&&o&&(a?a=!1:r+=o),r+=c},0),r}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,o=e.firstChild,s=this.content.slice(),r=0;for(n.isText&&n.sameMarkup(o)&&(s[s.length-1]=n.withText(n.text+o.text),r=1);r<e.content.length;r++)s.push(e.content[r]);return new z(s,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let o=[],s=0;if(n>e)for(let r=0,a=0;a<n;r++){let i=this.content[r],l=a+i.nodeSize;l>e&&((a<e||l>n)&&(i.isText?i=i.cut(Math.max(0,e-a),Math.min(i.text.length,n-a)):i=i.cut(Math.max(0,e-a-1),Math.min(i.content.size,n-a-1))),o.push(i),s+=i.nodeSize),a=l}return new z(o,s)}cutByIndex(e,n){return e==n?z.empty:e==0&&n==this.content.length?this:new z(this.content.slice(e,n))}replaceChild(e,n){let o=this.content[e];if(o==n)return this;let s=this.content.slice(),r=this.size+n.nodeSize-o.nodeSize;return s[e]=n,new z(s,r)}addToStart(e){return new z([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new z(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,o=0;n<this.content.length;n++){let s=this.content[n];e(s,o,n),o+=s.nodeSize}}findDiffStart(e,n=0){return W2(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return K2(this,e,n,o)}findIndex(e){if(e==0)return Ri(0,e);if(e==this.size)return Ri(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,o=0;;n++){let s=this.child(n),r=o+s.nodeSize;if(r>=e)return r==e?Ri(n+1,r):Ri(n,o);o=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return z.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new z(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return z.empty;let n,o=0;for(let s=0;s<e.length;
vendor: 8,585 bytes, line 121
121s++){let r=e[s];o+=r.nodeSize,s&&r.isText&&e[s-1].sameMarkup(r)?(n||(n=e.slice(0,s)),n[n.length-1]=r.withText(n[n.length-1].text+r.text)):n&&n.push(r)}return new z(n||e,o)}static from(e){if(!e)return z.empty;if(e instanceof z)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new z([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}z.empty=new z([],0);const Wu={index:0,offset:0};function Ri(t,e){return Wu.index=t,Wu.offset=e,Wu}function Cl(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let o=0;o<t.length;o++)if(!Cl(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!Cl(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let Ce=class fp{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,o=!1;for(let s=0;s<e.length;s++){let r=e[s];if(this.eq(r))return e;if(this.type.excludes(r.type))n||(n=e.slice(0,s));else{if(r.type.excludes(this.type))return e;!o&&r.type.rank>this.type.rank&&(n||(n=e.slice(0,s)),n.push(this),o=!0),n&&n.push(r)}}return n||(n=e.slice()),o||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Cl(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[n.type];if(!o)throw new RangeError(`There is no mark type ${n.type} in this schema`);let s=o.create(n.attrs);return o.checkAttrs(s.attrs),s}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(n[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return fp.none;if(e instanceof fp)return[e];let n=e.slice();return n.sort((o,s)=>o.type.rank-s.type.rank),n}};Ce.none=[];class Dl extends Error{}class W{constructor(e,n,o){this.content=e,this.openStart=n,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let o=Z2(this.content,e+this.openStart,n);return o&&new W(o,this.openStart,this.openEnd)}removeBetween(e,n){return new W(G2(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return W.empty;let o=n.openStart||0,s=n.openEnd||0;if(typeof o!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new W(z.fromJSON(e,n.content),o,s)}static maxOpen(e,n=!0){let o=0,s=0;for(let r=e.firstChild;r&&!r.isLeaf&&(n||!r.type.spec.isolating);r=r.firstChild)o++;for(let r=e.lastChild;r&&!r.isLeaf&&(n||!r.type.spec.isolating);r=r.lastChild)s++;return new W(e,o,s)}}W.empty=new W(z.empty,0,0);function G2(t,e,n){let{index:o,offset:s}=t.findIndex(e),r=t.maybeChild(o),{index:a,offset:i}=t.findIndex(n);if(s==e||r.isText){if(i!=n&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(o,r.copy(G2(r.content,e-s-1,n-s-1)))}function Z2(t,e,n,o){let{index:s,offset:r}=t.findIndex(e),a=t.maybeChild(s);if(r==e||a.isText)return o&&!o.canReplace(s,s,n)?null:t.cut(0,e).append(n).append(t.cut(e));let i=Z2(a.content,e-r-1,n,a);return i&&t.replaceChild(s,a.copy(i))}function cC(t,e,n){if(n.openStart>t.depth)throw new Dl("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Dl("Inconsistent open depths");return J2(t,e,n,0)}function J2(t,e,n,o){let s=t.index(o),r=t.node(o);if(s==e.index(o)&&o<t.depth-n.openStart){let a=J2(t,e,n,o+1);return r.copy(r.content.replaceChild(s,a))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==o&&e.depth==o){let a=t.parent,i=a.content;return Is(a,i.cut(0,t.parentOffset).append(n.content).append(i.cut(e.parentOffset)))}else{let{start:a,end:i}=uC(n,t);return Is(r,X2(t,a,i,e,o))}else return Is(r,Fl(t,e,o))}function Y2(t,e){if(!e.type.compatibleContent(t.type))throw new Dl("Cannot join "+e.type.name+" onto "+t.type.name)}function mp(t,e,n){let o=t.node(n);return Y2(o,e.node(n)),o}function Es(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function fa(t,e,n,o){let s=(e||t).node(n),r=0,a=e?e.index(n):s.childCount;t&&(r=t.index(n),t.depth>n?r++:t.textOffset&&(Es(t.nodeAfter,o),r++));for(let i=r;i<a;i++)Es(s.child(i),o);e&&e.depth==n&&e.textOffset&&Es(e.nodeBefore,o)}function Is(t,e){return t.type.checkContent(e),t.copy(e)}function X2(t,e,n,o,s){let r=t.depth>s&&mp(t,e,s+1),a=o.depth>s&&mp(n,o,s+1),i=[];return fa(null,t,s,i),r&&a&&e.index(s)==n.index(s)?(Y2(r,a),Es(Is(r,X2(t,e,n,o,s+1)),i)):(r&&Es(Is(r,Fl(t,e,s+1)),i),fa(e,n,s,i),a&&Es(Is(a,Fl(n,o,s+1)),i)),fa(o,null,s,i),new z(i)}function Fl(t,e,n){let o=[];if(fa(null,t,n,o),t.depth>n){let s=mp(t,e,n+1);Es(Is(s,Fl(t,e,n+1)),o)}return fa(e,null,n,o),new z(o)}function uC(t,e){let n=e.depth-t.openStart,s=e.node(n).copy(t.content);for(let r=n-1;r>=0;r--)s=e.node(r).copy(z.from(s));return{start:s.resolveNoCache(t.openStart+n),end:s.resolveNoCache(s.content.size-t.openEnd-n)}}class Fa{constructor(e,n,o){this.pos=e,this.path=n,this.parentOffset=o,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],s=e.child(n);return o?e.child(n).cut(o):s}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let o=this.path[n*3],s=n==0?0:this.path[n*3-1]+1;for(let r=0;r<e;r++)s+=o.child(r).nodeSize;return s}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Ce.none;if(this.textOffset)return e.child(n).marks;let o=e.maybeChild(n-1),s=e.maybeChild(n);if(!o){let i=o;o=s,s=i}let r=o.marks;for(var a=0;a<r.length;a++)r[a].type.spec.inclusive===!1&&(!s||!r[a].isInSet(s.marks))&&(r=r[a--].removeFromSet(r));return r}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let o=n.marks,s=e.parent.maybeChild(e.index());for(var r=0;r<o.length;r++)o[r].type.spec.inclusive===!1&&(!s||!o[r].isInSet(s.marks))&&(o=o[r--].removeFromSet(o));return o}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!n||n(this.node(o))))return new Ea(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let o=[],s=0,r=n;for(let a=e;;){let{index:i,offset:l}=a.content.findIndex(r),c=r-l;
vendor: 4,468 bytes, line 121
121if(o.push(a,i,s+l),!c||(a=a.child(i),a.isText))break;r=c-1,s+=l+1}return new Fa(n,o,r)}static resolveCached(e,n){let o=Lg.get(e);if(o)for(let r=0;r<o.elts.length;r++){let a=o.elts[r];if(a.pos==n)return a}else Lg.set(e,o=new dC);let s=o.elts[o.i]=Fa.resolve(e,n);return o.i=(o.i+1)%pC,s}}class dC{constructor(){this.elts=[],this.i=0}}const pC=12,Lg=new WeakMap;class Ea{constructor(e,n,o){this.$from=e,this.$to=n,this.depth=o}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const fC=Object.create(null);let Ko=class hp{constructor(e,n,o,s=Ce.none){this.type=e,this.attrs=n,this.marks=s,this.content=o||z.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,o,s=0){this.content.nodesBetween(e,n,o,s,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,o,s){return this.content.textBetween(e,n,o,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,o){return this.type==e&&Cl(this.attrs,n||e.defaultAttrs||fC)&&Ce.sameSet(this.marks,o||Ce.none)}copy(e=null){return e==this.content?this:new hp(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new hp(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,o=!1){if(e==n)return W.empty;let s=this.resolve(e),r=this.resolve(n),a=o?0:s.sharedDepth(n),i=s.start(a),c=s.node(a).content.cut(s.pos-i,r.pos-i);return new W(c,s.depth-a,r.depth-a)}replace(e,n,o){return cC(this.resolve(e),this.resolve(n),o)}nodeAt(e){for(let n=this;;){let{index:o,offset:s}=n.content.findIndex(e);if(n=n.maybeChild(o),!n)return null;if(s==e||n.isText)return n;e-=s+1}}childAfter(e){let{index:n,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(n),index:n,offset:o};let s=this.content.child(n-1);return{node:s,index:n-1,offset:o-s.nodeSize}}resolve(e){return Fa.resolveCached(this,e)}resolveNoCache(e){return Fa.resolve(this,e)}rangeHasMark(e,n,o){let s=!1;return n>e&&this.nodesBetween(e,n,r=>(o.isInSet(r.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Q2(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,o=z.empty,s=0,r=o.childCount){let a=this.contentMatchAt(e).matchFragment(o,s,r),i=a&&a.matchFragment(this.content,n);if(!i||!i.validEnd)return!1;for(let l=s;l<r;l++)if(!this.type.allowsMarks(o.child(l).marks))return!1;return!0}canReplaceWith(e,n,o,s){if(s&&!this.type.allowsMarks(s))return!1;let r=this.contentMatchAt(e).matchType(o),a=r&&r.matchFragment(this.content,n);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Ce.none;for(let n=0;n<this.marks.length;n++){let o=this.marks[n];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!Ce.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}
121`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let o;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,o)}let s=z.fromJSON(e,n.content),r=e.nodeType(n.type).create(n.attrs,s,o);return r.type.checkAttrs(r.attrs),r}};Ko.prototype.text=void 0;class El extends Ko{constructor(e,n,o,s){if(super(e,n,null,s),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Q2(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new El(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new El(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Q2(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Rs{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new mC(e,n);if(o.next==null)return Rs.empty;let s=ev(o);o.next&&o.err("Unexpected trailing text");let r=yC(kC(s));return wC(r,o),r}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,o=e.childCount){let s=this;for(let r=n;s&&r<o;r++)s=s.matchType(e.child(r).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let o=0;o<e.next.length;o++)if(this.next[n].type==e.next[o].type)return!0;return!1}fillBefore(e,n=!1,o=0){let s=[this];function r(a,i){let l=a.matchFragment(e,o);if(l&&(!n||l.validEnd))return z.from(i.map(c=>c.createAndFill()));for(let c=0;c<a.next.length;c++){let{type:u,next:d}=a.next[c];if(!(u.isText||u.hasRequiredAttrs())&&s.indexOf(d)==-1){s.push(d);let p=r(d,i.concat(u));if(p)return p}}return null}return r(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let s=o.shift(),r=s.match;if(r.matchType(e)){let a=[];for(let i=s;i.type;i=i.via)a.push(i.type);return a.reverse()}for(let a=0;a<r.next.length;a++){let{type:i,next:l}=r.next[a];!i.isLeaf&&!i.hasRequiredAttrs()&&!(i.name in n)&&(!s.type||l.validEnd)&&(o.push({match:i.contentMatch,type:i,via:s}),n[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(o){e.push(o);for(let s=0;s<o.next.length;s++)e.indexOf(o.next[s].next)==-1&&n(o.next[s].next)}return n(this),e.map((o,s)=>{let r=s+(o.validEnd?"*":" ")+" ";for(let a=0;a<o.next.length;a++)r+=(a?", ":"")+o.next[a].type.name+"->"+e.indexOf(o.next[a].next);return r}).join(`
122`)}}Rs.empty=new Rs(!0);class mC{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function ev(t){let e=[];do e.push(hC(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function hC(t){let e=[];do e.push(gC(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function gC(t){let e=jC(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=bC(t,e);else break;return e}function Pg(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");
vendor: 4,609 bytes, line 122
122let e=Number(t.next);return t.pos++,e}function bC(t,e){let n=Pg(t),o=n;return t.eat(",")&&(t.next!="}"?o=Pg(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function vC(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let s=[];for(let r in n){let a=n[r];a.isInGroup(e)&&s.push(a)}return s.length==0&&t.err("No node type or group '"+e+"' found"),s}function jC(t){if(t.eat("(")){let e=ev(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=vC(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function kC(t){let e=[[]];return s(r(t,0),n()),e;function n(){return e.push([])-1}function o(a,i,l){let c={term:l,to:i};return e[a].push(c),c}function s(a,i){a.forEach(l=>l.to=i)}function r(a,i){if(a.type=="choice")return a.exprs.reduce((l,c)=>l.concat(r(c,i)),[]);if(a.type=="seq")for(let l=0;;l++){let c=r(a.exprs[l],i);if(l==a.exprs.length-1)return c;s(c,i=n())}else if(a.type=="star"){let l=n();return o(i,l),s(r(a.expr,l),l),[o(l)]}else if(a.type=="plus"){let l=n();return s(r(a.expr,i),l),s(r(a.expr,l),l),[o(l)]}else{if(a.type=="opt")return[o(i)].concat(r(a.expr,i));if(a.type=="range"){let l=i;for(let c=0;c<a.min;c++){let u=n();s(r(a.expr,l),u),l=u}if(a.max==-1)s(r(a.expr,l),l);else for(let c=a.min;c<a.max;c++){let u=n();o(l,u),s(r(a.expr,l),u),l=u}return[o(l)]}else{if(a.type=="name")return[o(i,void 0,a.value)];throw new Error("Unknown expr type")}}}}function tv(t,e){return e-t}function zg(t,e){let n=[];return o(e),n.sort(tv);function o(s){let r=t[s];if(r.length==1&&!r[0].term)return o(r[0].to);n.push(s);for(let a=0;a<r.length;a++){let{term:i,to:l}=r[a];!i&&n.indexOf(l)==-1&&o(l)}}}function yC(t){let e=Object.create(null);return n(zg(t,0));function n(o){let s=[];o.forEach(a=>{t[a].forEach(({term:i,to:l})=>{if(!i)return;let c;for(let u=0;u<s.length;u++)s[u][0]==i&&(c=s[u][1]);zg(t,l).forEach(u=>{c||s.push([i,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let r=e[o.join(",")]=new Rs(o.indexOf(t.length-1)>-1);for(let a=0;a<s.length;a++){let i=s[a][1].sort(tv);r.next.push({type:s[a][0],next:e[i.join(",")]||n(i)})}return r}}function wC(t,e){for(let n=0,o=[t];n<o.length;n++){let s=o[n],r=!s.validEnd,a=[];for(let i=0;i<s.next.length;i++){let{type:l,next:c}=s.next[i];a.push(l.name),r&&!(l.isText||l.hasRequiredAttrs())&&(r=!1),o.indexOf(c)==-1&&o.push(c)}r&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function nv(t){let e=Object.create(null);for(let n in t){let o=t[n];if(!o.hasDefault)return null;e[n]=o.default}return e}function ov(t,e){let n=Object.create(null);for(let o in t){let s=e&&e[o];if(s===void 0){let r=t[o];if(r.hasDefault)s=r.default;else throw new RangeError("No value supplied for attribute "+o)}n[o]=s}return n}function sv(t,e,n,o){for(let s in e)if(!(s in t))throw new RangeError(`Unsupported attribute ${s} for ${n} of type ${s}`);for(let s in t){let r=t[s];r.validate&&r.validate(e[s])}}function rv(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new xC(t,o,e[o]);return n}let $g=class av{constructor(e,n,o){this.name=e,this.schema=n,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=rv(e,o.attrs),this.defaultAttrs=nv(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Rs.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ov(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ko(this,this.computeAttrs(e),z.from(n),Ce.setFrom(o))}createChecked(e=null,n,o){return n=z.from(n),this.checkContent(n),new Ko(this,this.computeAttrs(e),n,Ce.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=z.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let s=this.contentMatch.matchFragment(n),r=s&&s.fillBefore(z.empty,!0);
vendor: 4,362 bytes, line 122
122return r?new Ko(this,e,n.append(r),Ce.setFrom(o)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){sv(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?n&&n.push(e[o]):n||(n=e.slice(0,o));return n?n.length?n:Ce.none:e}static compile(e,n){let o=Object.create(null);e.forEach((r,a)=>o[r]=new av(r,n,a));let s=n.spec.topNode||"doc";if(!o[s])throw new RangeError("Schema is missing its top node type ('"+s+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let r in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function _C(t,e,n){let o=n.split("|");return s=>{let r=s===null?"null":typeof s;if(o.indexOf(r)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${t}, got ${r}`)}}class xC{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?_C(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class Pc{constructor(e,n,o,s){this.name=e,this.rank=n,this.schema=o,this.spec=s,this.attrs=rv(e,s.attrs),this.excluded=null;let r=nv(this.attrs);this.instance=r?new Ce(this,r):null}create(e=null){return!e&&this.instance?this.instance:new Ce(this,ov(this.attrs,e))}static compile(e,n){let o=Object.create(null),s=0;return e.forEach((r,a)=>o[r]=new Pc(r,s++,n,a)),o}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){sv(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Yf{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let s in e)n[s]=e[s];n.nodes=kt.from(e.nodes),n.marks=kt.from(e.marks||{}),this.nodes=$g.compile(this.spec.nodes,this),this.marks=Pc.compile(this.spec.marks,this);let o=Object.create(null);for(let s in this.nodes){if(s in this.marks)throw new RangeError(s+" can not be both a node and a mark");let r=this.nodes[s],a=r.spec.content||"",i=r.spec.marks;if(r.contentMatch=o[a]||(o[a]=Rs.parse(a,this.nodes)),r.inlineContent=r.contentMatch.inlineContent,r.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!r.isInline||!r.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=r}r.markSet=i=="_"?null:i?Hg(this,i.split(" ")):i==""||!r.inlineContent?[]:null}for(let s in this.marks){let r=this.marks[s],a=r.spec.excludes;r.excluded=a==null?[r]:a==""?[]:Hg(this,a.split(" "))}this.nodeFromJSON=s=>Ko.fromJSON(this,s),this.markFromJSON=s=>Ce.fromJSON(this,s),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,o,s){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof $g){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,o,s)}text(e,n){let o=this.nodes.text;return new El(o,o.defaultAttrs,e,Ce.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Hg(t,e){let n=[];for(let o=0;o<e.length;o++){let s=e[o],r=t.marks[s],a=r;if(r)n.push(r);else for(let i in t.marks){let l=t.marks[i];(s=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(s)>-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}function CC(t){return t.tag!=null}function DC(t){return t.style!=null}let pr=class gp{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];
vendor: 10,070 bytes, lines 122-124
122n.forEach(s=>{if(CC(s))this.tags.push(s);else if(DC(s)){let r=/[^=]*/.exec(s.style)[0];o.indexOf(r)<0&&o.push(r),this.styles.push(s)}}),this.normalizeLists=!this.tags.some(s=>{if(!/^(ul|ol)\b/.test(s.tag)||!s.node)return!1;let r=e.nodes[s.node];return r.contentMatch.matchType(r)})}parse(e,n={}){let o=new Ug(this,n,!1);return o.addAll(e,Ce.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new Ug(this,n,!0);return o.addAll(e,Ce.none,n.from,n.to),W.maxOpen(o.finish())}matchTag(e,n,o){for(let s=o?this.tags.indexOf(o)+1:0;s<this.tags.length;s++){let r=this.tags[s];if(IC(e,r.tag)&&(r.namespace===void 0||e.namespaceURI==r.namespace)&&(!r.context||n.matchesContext(r.context))){if(r.getAttrs){let a=r.getAttrs(e);if(a===!1)continue;r.attrs=a||void 0}return r}}}matchStyle(e,n,o,s){for(let r=s?this.styles.indexOf(s)+1:0;r<this.styles.length;r++){let a=this.styles[r],i=a.style;if(!(i.indexOf(e)!=0||a.context&&!o.matchesContext(a.context)||i.length>e.length&&(i.charCodeAt(e.length)!=61||i.slice(e.length+1)!=n))){if(a.getAttrs){let l=a.getAttrs(n);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(e){let n=[];function o(s){let r=s.priority==null?50:s.priority,a=0;for(;a<n.length;a++){let i=n[a];if((i.priority==null?50:i.priority)<r)break}n.splice(a,0,s)}for(let s in e.marks){let r=e.marks[s].spec.parseDOM;r&&r.forEach(a=>{o(a=qg(a)),a.mark||a.ignore||a.clearMark||(a.mark=s)})}for(let s in e.nodes){let r=e.nodes[s].spec.parseDOM;r&&r.forEach(a=>{o(a=qg(a)),a.node||a.ignore||a.mark||(a.node=s)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new gp(e,gp.schemaRules(e)))}};const iv={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},FC={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},lv={ol:!0,ul:!0},Ia=1,bp=2,ma=4;function Vg(t,e,n){return e!=null?(e?Ia:0)|(e==="full"?bp:0):t&&t.whitespace=="pre"?Ia|bp:n&~ma}class Oi{constructor(e,n,o,s,r,a){this.type=e,this.attrs=n,this.marks=o,this.solid=s,this.options=a,this.content=[],this.activeMarks=Ce.none,this.match=r||(a&ma?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(z.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let o=this.type.contentMatch,s;return(s=o.findWrapping(e.type))?(this.match=o,s):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Ia)){let o=this.content[this.content.length-1],s;if(o&&o.isText&&(s=/[ \t\r\n\u000c]+$/.exec(o.text))){let r=o;o.text.length==s[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-s[0].length))}}let n=z.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(z.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!iv.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Ug{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let s=n.topNode,r,a=Vg(null,n.preserveWhitespace,0)|(o?ma:0);s?r=new Oi(s.type,s.attrs,Ce.none,!0,n.topMatch||s.type.contentMatch,a):o?r=new Oi(null,null,Ce.none,!0,null,a):r=new Oi(e.schema.topNodeType,null,Ce.none,!0,null,a),this.nodes=[r],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let o=e.nodeValue,s=this.top,r=s.options&bp?"full":this.localPreserveWS||(s.options&Ia)>0;if(r==="full"||s.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(r)r!=="full"?o=o.replace(/\r?\n|\r/g," "):o=o.replace(/\r\n?/g,`
123`);else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let a=s.content[s.content.length-1],i=e.previousSibling;(!a||i&&i.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),n,!/\S/.test(o)),this.findInText(e)}else this.findInside(e)}addElement(e,n,o){let s=this.localPreserveWS,r=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),i;lv.hasOwnProperty(a)&&this.parser.normalizeLists&&EC(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,o));e:if(l?l.ignore:FC.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(iv.hasOwnProperty(a))r.content.length&&r.content[0].isInline&&this.open&&(this.open--,r=this.top),c=!0,r.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(r),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,l,c,l.consuming===!1?i:void 0)}this.localPreserveWS=s}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
124`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let o=e.style;if(o&&o.length)for(let s=0;s<this.parser.matchedStyles.length;s++){let r=this.parser.matchedStyles[s],a=o.getPropertyValue(r);if(a)for(let i=void 0;;){let l=this.parser.matchStyle(r,a,this,i);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)i=l;else break}}return n}addElementByRule(e,n,o,s){let r,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),o,e.nodeName=="BR")||this.leafFallback(e,o);else{let l=this.enter(a,n.attrs||null,o,n.preserveWhitespace);l&&(r=!0,o=l)}else{let l=this.parser.schema.marks[n.mark];o=o.concat(l.create(n.attrs))}let i=this.top;if(a&&a.isLeaf)this.findInside(e);else if(s)this.addElement(e,o,s);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,o,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,o),this.findAround(e,l,!1)}r&&this.sync(i)&&this.open--}addAll(e,n,o,s){let r=o||0;for(let a=o?e.childNodes[o]:e.firstChild,i=s==null?null:e.childNodes[s];a!=i;a=a.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(a,n);this.findAtPoint(e,r)}findPlace(e,n,o){let s,r;for(let a=this.open,i=0;a>=0;a--){let l=this.nodes[a],c=l.findWrapping(e);if(c&&(!s||s.length>c.length+i)&&(s=c,r=l,!c.length))break;if(l.solid){if(o)break;i+=2}}if(!s)return null;this.sync(r);for(let a=0;a<s.length;a++)n=this.enterInner(s[a],null,n,!1);return n}insertNode(e,n,o){if(e.isInline&&this.needsBlock&&!this.top.type){let r=this.textblockFromContext();r&&(n=this.enterInner(r,null,n))}let s=this.findPlace(e,n,o);if(s){this.closeExtra();let r=this.top;r.match&&(r.match=r.match.matchType(e.type));let a=Ce.none;for(let i of s.concat(e.marks))(r.type?r.type.allowsMarkType(i.type):Wg(i.type,e.type))&&(a=i.addToSet(a));return r.content.push(e.mark(a)),!0}return!1}enter(e,n,o,s){let r=this.findPlace(e.create(n),o,!1);return r&&(r=this.enterInner(e,n,o,!0,s)),r}enterInner(e,n,o,s=!1,r){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let i=Vg(e,r,a.options);a.options&ma&&a.content.length==0&&(i|=ma);let l=Ce.none;return o=o.filter(c=>(a.type?a.type.allowsMarkType(c.type):Wg(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new Oi(e,n,l,s,null,i)),this.open++,o}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Ia)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let o=this.nodes[n].content;for(let s=o.length-1;s>=0;s--)e+=o[s].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==n&&(this.find[o].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,o){if(e!=n&&this.find)for(let s=0;s<this.find.length;s++)this.find[s].pos==null&&e.nodeType==1&&e.contains(this.find[s].node)&&n.compareDocumentPosition(this.find[s].node)&(o?2:4)&&(this.find[s].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),o=this.options.context,s=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),r=-(o?o.depth+1:0)+(s?0:1),a=(i,l)=>{for(;i>=0;i--){let c=n[i];if(c==""){if(i==n.length-1||i==0)continue;for(;l>=r;l--)if(a(i-1,l))return!0;return!1}else{let u=l>0||l==0&&s?this.nodes[l].type:o&&l>=r?o.node(l-r).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let n in this.parser.schema.nodes){let o=this.parser.schema.nodes[n];
vendor: 9,666 bytes, line 124
124if(o.isTextblock&&o.defaultAttrs)return o}}}function EC(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&lv.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function IC(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function qg(t){let e={};for(let n in t)e[n]=t[n];return e}function Wg(t,e){let n=e.schema.nodes;for(let o in n){let s=n[o];if(!s.allowsMarkType(t))continue;let r=[],a=i=>{r.push(i);for(let l=0;l<i.edgeCount;l++){let{type:c,next:u}=i.edge(l);if(c==e||r.indexOf(u)<0&&a(u))return!0}};if(a(s.contentMatch))return!0}}class Ys{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=Ku(n).createDocumentFragment());let s=o,r=[];return e.forEach(a=>{if(r.length||a.marks.length){let i=0,l=0;for(;i<r.length&&l<a.marks.length;){let c=a.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(r[i][0])||c.type.spec.spanning===!1)break;i++,l++}for(;i<r.length;)s=r.pop()[1];for(;l<a.marks.length;){let c=a.marks[l++],u=this.serializeMark(c,a.isInline,n);u&&(r.push([c,s]),s.appendChild(u.dom),s=u.contentDOM||u.dom)}}s.appendChild(this.serializeNodeInner(a,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:s}=il(Ku(n),this.nodes[e.type.name](e),null,e.attrs);if(s){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,s)}return o}serializeNode(e,n={}){let o=this.serializeNodeInner(e,n);for(let s=e.marks.length-1;s>=0;s--){let r=this.serializeMark(e.marks[s],e.isInline,n);r&&((r.contentDOM||r.dom).appendChild(o),o=r.dom)}return o}serializeMark(e,n,o={}){let s=this.marks[e.type.name];return s&&il(Ku(o),s(e,n),null,e.attrs)}static renderSpec(e,n,o=null,s){return il(e,n,o,s)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ys(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Kg(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return Kg(e.marks)}}function Kg(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function Ku(t){return t.document||window.document}const Gg=new WeakMap;function SC(t){let e=Gg.get(t);return e===void 0&&Gg.set(t,e=AC(t)),e}function AC(t){let e=null;function n(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")e||(e=[]),e.push(o);else for(let s=0;s<o.length;s++)n(o[s]);else for(let s in o)n(o[s])}return n(t),e}function il(t,e,n,o){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let s=e[0],r;if(typeof s!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(r=SC(o))&&r.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=s.indexOf(" ");a>0&&(n=s.slice(0,a),s=s.slice(a+1));let i,l=n?t.createElementNS(n,s):t.createElement(s),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let p=d.indexOf(" ");p>0?l.setAttributeNS(d.slice(0,p),d.slice(p+1),c[d]):d=="style"&&l.style?l.style.cssText=c[d]:l.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let p=e[d];if(p===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:m,contentDOM:h}=il(t,p,n,o);if(l.appendChild(m),h){if(i)throw new RangeError("Multiple content holes");i=h}}}return{dom:l,contentDOM:i}}const cv=65535,uv=Math.pow(2,16);function MC(t,e){return t+e*uv}function Zg(t){return t&cv}function TC(t){return(t-(t&cv))/uv}const dv=1,pv=2,ll=4,fv=8;class vp{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&fv)>0}get deletedBefore(){return(this.delInfo&(dv|ll))>0}get deletedAfter(){return(this.delInfo&(pv|ll))>0}get deletedAcross(){return(this.delInfo&ll)>0}}class Qt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Qt.empty)return Qt.empty}recover(e){let n=0,o=Zg(e);if(!this.inverted)for(let s=0;s<o;s++)n+=this.ranges[s*3+2]-this.ranges[s*3+1];return this.ranges[o*3]+n+TC(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,o){let s=0,r=this.inverted?2:1,a=this.inverted?1:2;for(let i=0;i<this.ranges.length;i+=3){let l=this.ranges[i]-(this.inverted?s:0);if(l>e)break;let c=this.ranges[i+r],u=this.ranges[i+a],d=l+c;if(e<=d){let p=c?e==l?-1:e==d?1:n:n,m=l+s+(p<0?0:u);if(o)return m;let h=e==(n<0?l:d)?null:MC(i/3,e-l),g=e==l?pv:e==d?dv:ll;return(n<0?e!=l:e!=d)&&(g|=fv),new vp(m,g,h)}s+=u-c}return o?e+s:new vp(e+s,0,null)}touches(e,n){let o=0,s=Zg(n),r=this.inverted?2:1,a=this.inverted?1:2;for(let i=0;i<this.ranges.length;i+=3){let l=this.ranges[i]-(this.inverted?o:0);if(l>e)break;let c=this.ranges[i+r],u=l+c;if(e<=u&&i==s*3)return!0;o+=this.ranges[i+a]-c}return!1}forEach(e){let n=this.inverted?2:1,o=this.inverted?1:2;for(let s=0,r=0;s<this.ranges.length;s+=3){let a=this.ranges[s],i=a-(this.inverted?r:0),l=a+(this.inverted?0:r),c=this.ranges[s+n],u=this.ranges[s+o];e(i,i+c,l,l+u),r+=u-c}}invert(){return new Qt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Qt.empty:new Qt(e<0?[0,-e,0]:[0,0,e])}}Qt.empty=new Qt([]);class Sa{constructor(e,n,o=0,s=e?e.length:0){this.mirror=n,this.from=o,this.to=s,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new Sa(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,o=this._maps.length;n<e._maps.length;n++){let s=e.getMirror(n);this.appendMap(e._maps[n],s!=null&&s<n?o+s:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,o=this._maps.length+e._maps.length;n>=0;n--){let s=e.getMirror(n);this.appendMap(e._maps[n].invert(),s!=null&&s>n?o-s-1:void 0)}}invert(){let e=new Sa;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let o=this.from;o<this.to;o++)e=this._maps[o].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,o){let s=0;for(let r=this.from;r<this.to;r++){let a=this._maps[r],i=a.mapResult(e,n);if(i.recover!=null){let l=this.getMirror(r);if(l!=null&&l>r&&l<this.to){r=l,e=this._maps[l].recover(i.recover);continue}}s|=i.delInfo,e=i.pos}return o?e:new vp(e,s,null)}}const Gu=Object.create(null);class Mt{getMap(){return Qt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Gu[n.stepType];if(!o)throw new RangeError(`No step type ${n.stepType} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Gu)throw new RangeError("Duplicate use of step JSON ID "+e);return Gu[e]=n,n.prototype.jsonID=e,n}}class nt{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new nt(e,null)}static fail(e){return new nt(null,e)}static fromReplace(e,n,o,s){try{return nt.ok(e.replace(n,o,s))}catch(r){if(r instanceof Dl)return nt.fail(r.message);throw r}}}function Xf(t,e,n){let o=[];for(let s=0;s<t.childCount;s++){let r=t.child(s);r.content.size&&(r=r.copy(Xf(r.content,e,r))),r.isInline&&(r=e(r,n,s)),o.push(r)}return z.fromArray(o)}class zo extends Mt{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=e.resolve(this.from),s=o.node(o.sharedDepth(this.to)),r=new W(Xf(n.content,(a,i)=>!a.isAtom||!i.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),s),n.openStart,n.openEnd);return nt.fromReplace(e,this.from,this.to,r)}invert(){return new xn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new zo(n.pos,o.pos,this.mark)}merge(e){return e instanceof zo&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new zo(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new zo(n.from,n.to,e.markFromJSON(n.mark))}}Mt.jsonID("addMark",zo);class xn extends Mt{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=new W(Xf(n.content,s=>s.mark(this.mark.removeFromSet(s.marks)),e),n.openStart,n.openEnd);return nt.fromReplace(e,this.from,this.to,o)}invert(){return new zo(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new xn(n.pos,o.pos,this.mark)}merge(e){return e instanceof xn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new xn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new xn(n.from,n.to,e.markFromJSON(n.mark))}}Mt.jsonID("removeMark",xn);class $o extends Mt{constructor(e,n){super(),this.pos=e,this.mark=n}
vendor: 5,576 bytes, line 124
124apply(e){let n=e.nodeAt(this.pos);if(!n)return nt.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return nt.fromReplace(e,this.pos,this.pos+1,new W(z.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let o=this.mark.addToSet(n.marks);if(o.length==n.marks.length){for(let s=0;s<n.marks.length;s++)if(!n.marks[s].isInSet(o))return new $o(this.pos,n.marks[s]);return new $o(this.pos,this.mark)}}return new Os(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new $o(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new $o(n.pos,e.markFromJSON(n.mark))}}Mt.jsonID("addNodeMark",$o);class Os extends Mt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return nt.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return nt.fromReplace(e,this.pos,this.pos+1,new W(z.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new $o(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Os(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Os(n.pos,e.markFromJSON(n.mark))}}Mt.jsonID("removeNodeMark",Os);class mt extends Mt{constructor(e,n,o,s=!1){super(),this.from=e,this.to=n,this.slice=o,this.structure=s}apply(e){return this.structure&&jp(e,this.from,this.to)?nt.fail("Structure replace would overwrite content"):nt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Qt([this.from,this.to-this.from,this.slice.size])}invert(e){return new mt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deletedAcross&&o.deletedAcross?null:new mt(n.pos,Math.max(n.pos,o.pos),this.slice,this.structure)}merge(e){if(!(e instanceof mt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?W.empty:new W(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new mt(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?W.empty:new W(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new mt(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new mt(n.from,n.to,W.fromJSON(e,n.slice),!!n.structure)}}Mt.jsonID("replace",mt);class gt extends Mt{constructor(e,n,o,s,r,a,i=!1){super(),this.from=e,this.to=n,this.gapFrom=o,this.gapTo=s,this.slice=r,this.insert=a,this.structure=i}apply(e){if(this.structure&&(jp(e,this.from,this.gapFrom)||jp(e,this.gapTo,this.to)))return nt.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return nt.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?nt.fromReplace(e,this.from,this.to,o):nt.fail("Content does not fit in gap")}getMap(){return new Qt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new gt(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1),s=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),r=this.to==this.gapTo?o.pos:e.map(this.gapTo,1);return n.deletedAcross&&o.deletedAcross||s<n.pos||r>o.pos?null:new gt(n.pos,o.pos,s,r,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new gt(n.from,n.to,n.gapFrom,n.gapTo,W.fromJSON(e,n.slice),n.insert,!!n.structure)}}Mt.jsonID("replaceAround",gt);function jp(t,e,n){let o=t.resolve(e),s=n-e,r=o.depth;for(;s>0&&r>0&&o.indexAfter(r)==o.node(r).childCount;)r--,s--;if(s>0){let a=o.node(r).maybeChild(o.indexAfter(r));for(;s>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,s--}}return!1}function NC(t,e,n,o){let s=[],r=[],a,i;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!o.isInSet(d)&&u.type.allowsMarkType(o.type)){let p=Math.max(c,e),m=Math.min(c+l.nodeSize,n),h=o.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(h)||(a&&a.to==p&&a.mark.eq(d[g])?a.to=m:s.push(a=new xn(p,m,d[g])));i&&i.to==p?i.to=m:r.push(i=new zo(p,m,o))}}
vendor: 17,001 bytes, lines 124-125
124),s.forEach(l=>t.step(l)),r.forEach(l=>t.step(l))}function RC(t,e,n,o){let s=[],r=0;t.doc.nodesBetween(e,n,(a,i)=>{if(!a.isInline)return;r++;let l=null;if(o instanceof Pc){let c=a.marks,u;for(;u=o.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else o?o.isInSet(a.marks)&&(l=[o]):l=a.marks;if(l&&l.length){let c=Math.min(i+a.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],p;for(let m=0;m<s.length;m++){let h=s[m];h.step==r-1&&d.eq(s[m].style)&&(p=h)}p?(p.to=c,p.step=r):s.push({style:d,from:Math.max(i,e),to:c,step:r})}}}),s.forEach(a=>t.step(new xn(a.from,a.to,a.style)))}function Qf(t,e,n,o=n.contentMatch,s=!0){let r=t.doc.nodeAt(e),a=[],i=e+1;for(let l=0;l<r.childCount;l++){let c=r.child(l),u=i+c.nodeSize,d=o.matchType(c.type);if(!d)a.push(new mt(i,u,W.empty));else{o=d;for(let p=0;p<c.marks.length;p++)n.allowsMarkType(c.marks[p].type)||t.step(new xn(i,u,c.marks[p]));if(s&&c.isText&&n.whitespace!="pre"){let p,m=/\r?\n|\r/g,h;for(;p=m.exec(c.text);)h||(h=new W(z.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),a.push(new mt(i+p.index,i+p.index+p[0].length,h))}}i=u}if(!o.validEnd){let l=o.fillBefore(z.empty,!0);t.replace(i,i,new W(l,0,0))}for(let l=a.length-1;l>=0;l--)t.step(a[l])}function OC(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Hr(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let o=t.depth;;--o){let s=t.$from.node(o),r=t.$from.index(o),a=t.$to.indexAfter(o);if(o<t.depth&&s.canReplace(r,a,n))return o;if(o==0||s.type.spec.isolating||!OC(s,r,a))break}return null}function BC(t,e,n){let{$from:o,$to:s,depth:r}=e,a=o.before(r+1),i=s.after(r+1),l=a,c=i,u=z.empty,d=0;for(let h=r,g=!1;h>n;h--)g||o.index(h)>0?(g=!0,u=z.from(o.node(h).copy(u)),d++):l--;let p=z.empty,m=0;for(let h=r,g=!1;h>n;h--)g||s.after(h+1)<s.end(h)?(g=!0,p=z.from(s.node(h).copy(p)),m++):c++;t.step(new gt(l,c,a,i,new W(u.append(p),d,m),u.size-d,!0))}function em(t,e,n=null,o=t){let s=LC(t,e),r=s&&PC(o,e);return r?s.map(Jg).concat({type:e,attrs:n}).concat(r.map(Jg)):null}function Jg(t){return{type:t,attrs:null}}function LC(t,e){let{parent:n,startIndex:o,endIndex:s}=t,r=n.contentMatchAt(o).findWrapping(e);if(!r)return null;let a=r.length?r[0]:e;return n.canReplaceWith(o,s,a)?r:null}function PC(t,e){let{parent:n,startIndex:o,endIndex:s}=t,r=n.child(o),a=e.contentMatch.findWrapping(r.type);if(!a)return null;let l=(a.length?a[a.length-1]:e).contentMatch;for(let c=o;l&&c<s;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:a}function zC(t,e,n){let o=z.empty;for(let a=n.length-1;a>=0;a--){if(o.size){let i=n[a].type.contentMatch.matchFragment(o);if(!i||!i.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=z.from(n[a].type.create(n[a].attrs,o))}let s=e.start,r=e.end;t.step(new gt(s,r,s,r,new W(o,0,0),n.length,!0))}function $C(t,e,n,o,s){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let r=t.steps.length;t.doc.nodesBetween(e,n,(a,i)=>{let l=typeof s=="function"?s(a):s;if(a.isTextblock&&!a.hasMarkup(o,l)&&HC(t.doc,t.mapping.slice(r).map(i),o)){let c=null;if(o.schema.linebreakReplacement){let m=o.whitespace=="pre",h=!!o.contentMatch.matchType(o.schema.linebreakReplacement);m&&!h?c=!1:!m&&h&&(c=!0)}c===!1&&hv(t,a,i,r),Qf(t,t.mapping.slice(r).map(i,1),o,void 0,c===null);let u=t.mapping.slice(r),d=u.map(i,1),p=u.map(i+a.nodeSize,1);return t.step(new gt(d,p,d+1,p-1,new W(z.from(o.create(l,null,a.marks)),0,0),1,!0)),c===!0&&mv(t,a,i,r),!1}})}function mv(t,e,n,o){e.forEach((s,r)=>{if(s.isText){let a,i=/\r?\n|\r/g;for(;a=i.exec(s.text);){let l=t.mapping.slice(o).map(n+1+r+a.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function hv(t,e,n,o){e.forEach((s,r)=>{if(s.type==s.type.schema.linebreakReplacement){let a=t.mapping.slice(o).map(n+1+r);t.replaceWith(a,a+1,e.type.schema.text(`
125`))}})}function HC(t,e,n){let o=t.resolve(e),s=o.index();return o.parent.canReplaceWith(s,s+1,n)}function VC(t,e,n,o,s){let r=t.doc.nodeAt(e);if(!r)throw new RangeError("No node at given position");n||(n=r.type);let a=n.create(o,null,s||r.marks);if(r.isLeaf)return t.replaceWith(e,e+r.nodeSize,a);if(!n.validContent(r.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new gt(e,e+r.nodeSize,e+1,e+r.nodeSize-1,new W(z.from(a),0,0),1,!0))}function ho(t,e,n=1,o){let s=t.resolve(e),r=s.depth-n,a=o&&o[o.length-1]||s.parent;if(r<0||s.parent.type.spec.isolating||!s.parent.canReplace(s.index(),s.parent.childCount)||!a.type.validContent(s.parent.content.cutByIndex(s.index(),s.parent.childCount)))return!1;for(let c=s.depth-1,u=n-2;c>r;c--,u--){let d=s.node(c),p=s.index(c);if(d.type.spec.isolating)return!1;let m=d.content.cutByIndex(p,d.childCount),h=o&&o[u+1];h&&(m=m.replaceChild(0,h.type.create(h.attrs)));let g=o&&o[u]||d;if(!d.canReplace(p+1,d.childCount)||!g.type.validContent(m))return!1}let i=s.indexAfter(r),l=o&&o[0];return s.node(r).canReplaceWith(i,i,l?l.type:s.node(r+1).type)}function UC(t,e,n=1,o){let s=t.doc.resolve(e),r=z.empty,a=z.empty;for(let i=s.depth,l=s.depth-n,c=n-1;i>l;i--,c--){r=z.from(s.node(i).copy(r));let u=o&&o[c];a=z.from(u?u.type.create(u.attrs,a):s.node(i).copy(a))}t.step(new mt(e,e,new W(r.append(a),n,n),!0))}function fs(t,e){let n=t.resolve(e),o=n.index();return gv(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function qC(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:o}=t.type.schema;for(let s=0;s<e.childCount;s++){let r=e.child(s),a=r.type==o?t.type.schema.nodes.text:r.type;if(n=n.matchType(a),!n||!t.type.allowsMarks(r.marks))return!1}return n.validEnd}function gv(t,e){return!!(t&&e&&!t.isLeaf&&qC(t,e))}function zc(t,e,n=-1){let o=t.resolve(e);for(let s=o.depth;;s--){let r,a,i=o.index(s);if(s==o.depth?(r=o.nodeBefore,a=o.nodeAfter):n>0?(r=o.node(s+1),i++,a=o.node(s).maybeChild(i)):(r=o.node(s).maybeChild(i-1),a=o.node(s+1)),r&&!r.isTextblock&&gv(r,a)&&o.node(s).canReplace(i,i+1))return e;if(s==0)break;e=n<0?o.before(s):o.after(s)}}function WC(t,e,n){let o=null,{linebreakReplacement:s}=t.doc.type.schema,r=t.doc.resolve(e-n),a=r.node().type;if(s&&a.inlineContent){let u=a.whitespace=="pre",d=!!a.contentMatch.matchType(s);u&&!d?o=!1:!u&&d&&(o=!0)}let i=t.steps.length;if(o===!1){let u=t.doc.resolve(e+n);hv(t,u.node(),u.before(),i)}a.inlineContent&&Qf(t,e+n-1,a,r.node().contentMatchAt(r.index()),o==null);let l=t.mapping.slice(i),c=l.map(e-n);if(t.step(new mt(c,l.map(e+n,-1),W.empty,!0)),o===!0){let u=t.doc.resolve(c);mv(t,u.node(),u.before(),t.steps.length)}return t}function KC(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(o.parentOffset==0)for(let s=o.depth-1;s>=0;s--){let r=o.index(s);if(o.node(s).canReplaceWith(r,r,n))return o.before(s+1);if(r>0)return null}if(o.parentOffset==o.parent.content.size)for(let s=o.depth-1;s>=0;s--){let r=o.indexAfter(s);if(o.node(s).canReplaceWith(r,r,n))return o.after(s+1);if(r<o.node(s).childCount)return null}return null}function bv(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let s=n.content;for(let r=0;r<n.openStart;r++)s=s.firstChild.content;for(let r=1;r<=(n.openStart==0&&n.size?2:1);r++)for(let a=o.depth;a>=0;a--){let i=a==o.depth?0:o.pos<=(o.start(a+1)+o.end(a+1))/2?-1:1,l=o.index(a)+(i>0?1:0),c=o.node(a),u=!1;if(r==1)u=c.canReplace(l,l,s);else{let d=c.contentMatchAt(l).findWrapping(s.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return i==0?o.pos:i<0?o.before(a+1):o.after(a+1)}return null}function $c(t,e,n=e,o=W.empty){if(e==n&&!o.size)return null;let s=t.resolve(e),r=t.resolve(n);return vv(s,r,o)?new mt(e,n,o):new GC(s,r,o).fit()}function vv(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class GC{constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=z.empty;for(let s=0;s<=e.depth;s++){let r=e.node(s);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(s))})}for(let s=e.depth;s>0;s--)this.placed=z.from(e.node(s).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,s=this.close(e<0?this.$to:o.doc.resolve(e));if(!s)return null;let r=this.placed,a=o.depth,i=s.depth;for(;a&&i&&r.childCount==1;)r=r.firstChild.content,a--,i--;let l=new W(r,a,i);return e>-1?new gt(o.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||o.pos!=this.$to.pos?new mt(o.pos,s.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,o=0,s=this.unplaced.openEnd;o<e;o++){let r=n.firstChild;if(n.childCount>1&&(s=0),r.type.spec.isolating&&s<=o){e=o;break}n=r.content}for(let n=1;n<=2;n++)for(let o=n==1?e:this.unplaced.openStart;o>=0;o--){let s,r=null;o?(r=Zu(this.unplaced.content,o-1).firstChild,s=r.content):s=this.unplaced.content;let a=s.firstChild;for(let i=this.depth;i>=0;i--){let{type:l,match:c}=this.frontier[i],u,d=null;if(n==1&&(a?c.matchType(a.type)||(d=c.fillBefore(z.from(a),!1)):r&&l.compatibleContent(r.type)))return{sliceDepth:o,frontierDepth:i,parent:r,inject:d};if(n==2&&a&&(u=c.findWrapping(a.type)))return{sliceDepth:o,frontierDepth:i,parent:r,wrap:u};if(r&&c.matchType(r.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,s=Zu(e,n);return!s.childCount||s.firstChild.isLeaf?!1:(this.unplaced=new W(e,n+1,Math.max(o,s.size+n>=e.size-o?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:o}=this.unplaced,s=Zu(e,n);if(s.childCount<=1&&n>0){let r=e.size-n<=n+s.size;this.unplaced=new W(ia(e,n-1,1),n-1,r?n-1:o)}else this.unplaced=new W(ia(e,n,1),n,o)}placeNodes({sliceDepth:e,frontierDepth:n,parent:o,inject:s,wrap:r}){for(;this.depth>n;)this.closeFrontierNode();if(r)for(let g=0;g<r.length;g++)this.openFrontierNode(r[g]);let a=this.unplaced,i=o?o.content:a.content,l=a.openStart-e,c=0,u=[],{match:d,type:p}=this.frontier[n];if(s){for(let g=0;g<s.childCount;g++)u.push(s.child(g));d=d.matchFragment(s)}let m=i.size+e-(a.content.size-a.openEnd);for(;c<i.childCount;){let g=i.child(c),v=d.matchType(g.type);if(!v)break;c++,(c>1||l==0||g.content.size)&&(d=v,u.push(jv(g.mark(p.allowedMarks(g.marks)),c==1?l:0,c==i.childCount?m:-1)))}let h=c==i.childCount;h||(m=-1),this.placed=la(this.placed,n,z.from(u)),this.frontier[n].match=d,h&&m<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,v=i;g<m;g++){let j=v.lastChild;this.frontier.push({type:j.type,match:j.contentMatchAt(j.childCount)}),v=j.content}this.unplaced=h?e==0?W.empty:new W(ia(a.content,e-1,1),e-1,m<0?a.openEnd:e-1):new W(ia(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Ju(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:o}=this.$to,s=this.$to.after(o);for(;o>1&&s==this.$to.end(--o);)++s;return s}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:o,type:s}=this.frontier[n],r=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),a=Ju(e,n,s,o,r);if(a){for(let i=n-1;i>=0;i--){let{match:l,type:c}=this.frontier[i],u=Ju(e,i,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:a,move:r?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=la(this.placed,n.depth,n.fit)),e=n.move;for(let o=n.depth+1;o<=e.depth;o++){let s=e.node(o),r=s.type.contentMatch.fillBefore(s.content,!0,e.index(o));this.openFrontierNode(s.type,s.attrs,r)}return e}openFrontierNode(e,n=null,o){let s=this.frontier[this.depth];s.match=s.match.matchType(e),this.placed=la(this.placed,this.depth,z.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(z.empty,!0);n.childCount&&(this.placed=la(this.placed,this.frontier.length,n))}}function ia(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(ia(t.firstChild.content,e-1,n)))}function la(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(la(t.lastChild.content,e-1,n)))}function Zu(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function jv(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,jv(o.firstChild,e-1,o.childCount==1?n-1:0))),e>0&&(o=t.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(z.empty,!0)))),t.copy(o)}function Ju(t,e,n,o,s){let r=t.node(e),a=s?t.indexAfter(e):t.index(e);if(a==r.childCount&&!n.compatibleContent(r.type))return null;let i=o.fillBefore(r.content,!0,a);return i&&!ZC(n,r.content,a)?i:null}function ZC(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function JC(t){return t.spec.defining||t.spec.definingForContent}function YC(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let s=t.doc.resolve(e),r=t.doc.resolve(n);if(vv(s,r,o))return t.step(new mt(e,n,o));let a=yv(s,t.doc.resolve(n));a[a.length-1]==0&&a.pop();let i=-(s.depth+1);a.unshift(i);for(let p=s.depth,m=s.pos-1;p>0;p--,m--){let h=s.node(p).type.spec;if(h.defining||h.definingAsContext||h.isolating)break;a.indexOf(p)>-1?i=p:s.before(p)==m&&a.splice(1,0,-p)}let l=a.indexOf(i),c=[],u=o.openStart;for(let p=o.content,m=0;;m++){let h=p.firstChild;if(c.push(h),m==o.openStart)break;p=h.content}for(let p=u-1;p>=0;p--){let m=c[p],h=JC(m.type);if(h&&!m.sameMarkup(s.node(Math.abs(i)-1)))u=p;else if(h||!m.type.isTextblock)break}for(let p=o.openStart;p>=0;p--){let m=(p+u+1)%(o.openStart+1),h=c[m];if(h)for(let g=0;g<a.length;g++){let v=a[(g+l)%a.length],j=!0;v<0&&(j=!1,v=-v);let k=s.node(v-1),y=s.index(v-1);if(k.canReplaceWith(y,y,h.type,h.marks))return t.replace(s.before(v),j?r.after(v):n,new W(kv(o.content,0,o.openStart,m),m,o.openEnd))}}let d=t.steps.length;for(let p=a.length-1;p>=0&&(t.replace(e,n,o),!(t.steps.length>d));p--){let m=a[p];m<0||(e=s.before(m),n=r.after(m))}}function kv(t,e,n,o,s){if(e<n){let r=t.firstChild;t=t.replaceChild(0,r.copy(kv(r.content,e+1,n,o,r)))}if(e>o){let r=s.contentMatchAt(0),a=r.fillBefore(t).append(t);t=a.append(r.matchFragment(a).fillBefore(z.empty,!0))}return t}function XC(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let s=KC(t.doc,e,o.type);s!=null&&(e=n=s)}t.replaceRange(e,n,new W(z.from(o),0,0))}function QC(t,e,n){let o=t.doc.resolve(e),s=t.doc.resolve(n),r=yv(o,s);for(let a=0;a<r.length;a++){let i=r[a],l=a==r.length-1;if(l&&i==0||o.node(i).type.contentMatch.validEnd)return t.delete(o.start(i),s.end(i));if(i>0&&(l||o.node(i-1).canReplace(o.index(i-1),s.indexAfter(i-1))))return t.delete(o.before(i),s.after(i))}for(let a=1;a<=o.depth&&a<=s.depth;a++)if(e-o.start(a)==o.depth-a&&n>o.end(a)&&s.end(a)-n!=s.depth-a&&o.start(a-1)==s.start(a-1)&&o.node(a-1).canReplace(o.index(a-1),s.index(a-1)))return t.delete(o.before(a),n);t.delete(e,n)}function yv(t,e){let n=[],o=Math.min(t.depth,e.depth);for(let s=o;s>=0;s--){let r=t.start(s);if(r<t.pos-(t.depth-s)||e.end(s)>e.pos+(e.depth-s)||t.node(s).type.spec.isolating||e.node(s).type.spec.isolating)break;(r==e.start(s)||s==t.depth&&s==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&s&&e.start(s-1)==r-1)&&n.push(s)}return n}class fr extends Mt{constructor(e,n,o){super(),this.pos=e,this.attr=n,this.value=o}apply(e){let n=e.nodeAt(this.pos);if(!n)return nt.fail("No node at attribute step's position");let o=Object.create(null);for(let r in n.attrs)o[r]=n.attrs[r];o[this.attr]=this.value;let s=n.type.create(o,null,n.marks);return nt.fromReplace(e,this.pos,this.pos+1,new W(z.from(s),0,n.isLeaf?0:1))}getMap(){return Qt.empty}invert(e){return new fr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new fr(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new fr(n.pos,n.attr,n.value)}}Mt.jsonID("attr",fr);class Aa extends Mt{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let s in e.attrs)n[s]=e.attrs[s];n[this.attr]=this.value;let o=e.type.create(n,e.content,e.marks);return nt.ok(o)}getMap(){return Qt.empty}invert(e){return new Aa(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Aa(n.attr,n.value)}}Mt.jsonID("docAttr",Aa);
vendor: 4,167 bytes, line 125
125let wr=class extends Error{};wr=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};wr.prototype=Object.create(Error.prototype);wr.prototype.constructor=wr;wr.prototype.name="TransformError";class wv{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Sa}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new wr(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,o=W.empty){let s=$c(this.doc,e,n,o);return s&&this.step(s),this}replaceWith(e,n,o){return this.replace(e,n,new W(z.from(o),0,0))}delete(e,n){return this.replace(e,n,W.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return YC(this,e,n,o),this}replaceRangeWith(e,n,o){return XC(this,e,n,o),this}deleteRange(e,n){return QC(this,e,n),this}lift(e,n){return BC(this,e,n),this}join(e,n=1){return WC(this,e,n),this}wrap(e,n){return zC(this,e,n),this}setBlockType(e,n=e,o,s=null){return $C(this,e,n,o,s),this}setNodeMarkup(e,n,o=null,s){return VC(this,e,n,o,s),this}setNodeAttribute(e,n,o){return this.step(new fr(e,n,o)),this}setDocAttribute(e,n){return this.step(new Aa(e,n)),this}addNodeMark(e,n){return this.step(new $o(e,n)),this}removeNodeMark(e,n){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(n instanceof Ce)n.isInSet(o.marks)&&this.step(new Os(e,n));else{let s=o.marks,r,a=[];for(;r=n.isInSet(s);)a.push(new Os(e,r)),s=r.removeFromSet(s);for(let i=a.length-1;i>=0;i--)this.step(a[i])}return this}split(e,n=1,o){return UC(this,e,n,o),this}addMark(e,n,o){return NC(this,e,n,o),this}removeMark(e,n,o){return RC(this,e,n,o),this}clearIncompatible(e,n,o){return Qf(this,e,n,o),this}}const Yu=Object.create(null);class le{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new _v(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=W.empty){let o=n.content.lastChild,s=null;for(let i=0;i<n.openEnd;i++)s=o,o=o.lastChild;let r=e.steps.length,a=this.ranges;for(let i=0;i<a.length;i++){let{$from:l,$to:c}=a[i],u=e.mapping.slice(r);e.replaceRange(u.map(l.pos),u.map(c.pos),i?W.empty:n),i==0&&Qg(e,r,(o?o.isInline:s&&s.isTextblock)?-1:1)}}replaceWith(e,n){let o=e.steps.length,s=this.ranges;for(let r=0;r<s.length;r++){let{$from:a,$to:i}=s[r],l=e.mapping.slice(o),c=l.map(a.pos),u=l.map(i.pos);r?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),Qg(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let s=e.parent.inlineContent?new Y(e):ar(e.node(0),e.parent,e.pos,e.index(),n,o);if(s)return s;for(let r=e.depth-1;r>=0;r--){let a=n<0?ar(e.node(0),e.node(r),e.before(r+1),e.index(r),n,o):ar(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,n,o);if(a)return a}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new qt(e.node(0))}static atStart(e){return ar(e,e,0,0,1)||new qt(e)}static atEnd(e){return ar(e,e,e.content.size,e.childCount,-1)||new qt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Yu[n.type];if(!o)throw new RangeError(`No selection type ${n.type} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Yu)throw new RangeError("Duplicate use of selection JSON ID "+e);return Yu[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Y.between(this.$anchor,this.$head).getBookmark()}}le.prototype.visible=!0;class _v{constructor(e,n){this.$from=e,this.$to=n}}let Yg=!1;function Xg(t){!Yg&&!t.parent.inlineContent&&(Yg=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Y extends le{constructor(e,n=e){Xg(e),Xg(n),super(e,n)}
vendor: 15,012 bytes, lines 125-126
125get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let o=e.resolve(n.map(this.head));if(!o.parent.inlineContent)return le.near(o);let s=e.resolve(n.map(this.anchor));return new Y(s.parent.inlineContent?s:o,o)}replace(e,n=W.empty){if(super.replace(e,n),n==W.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof Y&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Hc(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Y(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,o=n){let s=e.resolve(n);return new this(s,o==n?s:e.resolve(o))}static between(e,n,o){let s=e.pos-n.pos;if((!o||s)&&(o=s>=0?1:-1),!n.parent.inlineContent){let r=le.findFrom(n,o,!0)||le.findFrom(n,-o,!0);if(r)n=r.$head;else return le.near(n,o)}return e.parent.inlineContent||(s==0?e=n:(e=(le.findFrom(e,-o,!0)||le.findFrom(e,o,!0)).$anchor,e.pos<n.pos!=s<0&&(e=n))),new Y(e,n)}}le.jsonID("text",Y);class Hc{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Hc(e.map(this.anchor),e.map(this.head))}resolve(e){return Y.between(e.resolve(this.anchor),e.resolve(this.head))}}class U extends le{constructor(e){let n=e.nodeAfter,o=e.node(0).resolve(e.pos+n.nodeSize);super(e,o),this.node=n}map(e,n){let{deleted:o,pos:s}=n.mapResult(this.anchor),r=e.resolve(s);return o?le.near(r):new U(r)}content(){return new W(z.from(this.node),0,0)}eq(e){return e instanceof U&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new tm(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new U(e.resolve(n.anchor))}static create(e,n){return new U(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}U.prototype.visible=!1;le.jsonID("node",U);class tm{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new Hc(o,o):new tm(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&U.isSelectable(o)?new U(n):le.near(n)}}class qt extends le{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=W.empty){if(n==W.empty){e.delete(0,e.doc.content.size);let o=le.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new qt(e)}map(e){return new qt(e)}eq(e){return e instanceof qt}getBookmark(){return e9}}le.jsonID("all",qt);const e9={map(){return this},resolve(t){return new qt(t)}};function ar(t,e,n,o,s,r=!1){if(e.inlineContent)return Y.create(t,n);for(let a=o-(s>0?0:1);s>0?a<e.childCount:a>=0;a+=s){let i=e.child(a);if(i.isAtom){if(!r&&U.isSelectable(i))return U.create(t,n-(s<0?i.nodeSize:0))}else{let l=ar(t,i,n+s,s<0?i.childCount:0,s,r);if(l)return l}n+=i.nodeSize*s}return null}function Qg(t,e,n){let o=t.steps.length-1;if(o<e)return;let s=t.steps[o];if(!(s instanceof mt||s instanceof gt))return;let r=t.mapping.maps[o],a;r.forEach((i,l,c,u)=>{a==null&&(a=u)}),t.setSelection(le.near(t.doc.resolve(a),n))}const e1=1,Bi=2,t1=4;let t9=class extends wv{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|e1)&~Bi,this.storedMarks=null,this}get selectionSet(){return(this.updated&e1)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Bi,this}ensureMarks(e){return Ce.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Bi)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Bi,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let o=this.selection;return n&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||Ce.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,o){let s=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(s.text(e),!0):this.deleteSelection();{if(o==null&&(o=n),o=o??n,!e)return this.deleteRange(n,o);let r=this.storedMarks;if(!r){let a=this.doc.resolve(n);r=o==n?a.marks():a.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(n,o,s.text(e,r)),this.selection.empty||this.setSelection(le.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=t1,this}get scrolledIntoView(){return(this.updated&t1)>0}};function n1(t,e){return!e||!t?t:t.bind(e)}class ca{constructor(e,n,o){this.name=e,this.init=n1(n.init,o),this.apply=n1(n.apply,o)}}const n9=[new ca("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new ca("selection",{init(t,e){return t.selection||le.atStart(e.doc)},apply(t){return t.selection}}),new ca("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new ca("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Xu{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=n9.slice(),n&&n.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new ca(o.key,o.spec.state,o))})}}class dr{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=n){let s=this.config.plugins[o];if(s.spec.filterTransaction&&!s.spec.filterTransaction.call(s,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],o=this.applyInner(e),s=null;for(;;){let r=!1;for(let a=0;a<this.config.plugins.length;a++){let i=this.config.plugins[a];if(i.spec.appendTransaction){let l=s?s[a].n:0,c=s?s[a].state:this,u=l<n.length&&i.spec.appendTransaction.call(i,l?n.slice(l):n,c,o);if(u&&o.filterTransaction(u,a)){if(u.setMeta("appendedTransaction",e),!s){s=[];for(let d=0;d<this.config.plugins.length;d++)s.push(d<a?{state:o,n:n.length}:{state:this,n:0})}n.push(u),o=o.applyInner(u),r=!0}s&&(s[a]={state:o,n:n.length})}}if(!r)return{state:o,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new dr(this.config),o=this.config.fields;for(let s=0;s<o.length;s++){let r=o[s];n[r.name]=r.apply(e,this[r.name],this,n)}return n}get tr(){return new t9(this)}static create(e){let n=new Xu(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new dr(n);for(let s=0;s<n.fields.length;s++)o[n.fields[s].name]=n.fields[s].init(e,o);return o}reconfigure(e){let n=new Xu(this.schema,e.plugins),o=n.fields,s=new dr(n);for(let r=0;r<o.length;r++){let a=o[r].name;s[a]=this.hasOwnProperty(a)?this[a]:o[r].init(e,s)}return s}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(o=>o.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let s=e[o],r=s.spec.state;r&&r.toJSON&&(n[o]=r.toJSON.call(s,this[s.key]))}return n}static fromJSON(e,n,o){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let s=new Xu(e.schema,e.plugins),r=new dr(s);return s.fields.forEach(a=>{if(a.name=="doc")r.doc=Ko.fromJSON(e.schema,n.doc);else if(a.name=="selection")r.selection=le.fromJSON(r.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(r.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let i in o){let l=o[i],c=l.spec.state;if(l.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,i)){r[a.name]=c.fromJSON.call(l,e,n[i],r);return}}r[a.name]=a.init(e,r)}}),r}}function xv(t,e,n){for(let o in t){let s=t[o];s instanceof Function?s=s.bind(e):o=="handleDOMEvents"&&(s=xv(s,e,{})),n[o]=s}return n}class xe{constructor(e){this.spec=e,this.props={},e.props&&xv(e.props,this,this.props),this.key=e.key?e.key.key:Cv("plugin")}getState(e){return e[this.key]}}const Qu=Object.create(null);function Cv(t){return t in Qu?t+"$"+ ++Qu[t]:(Qu[t]=0,t+"$")}class we{constructor(e="key"){this.key=Cv(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const nm=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Dv(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const Fv=(t,e,n)=>{let o=Dv(t,n);if(!o)return!1;let s=om(o);if(!s){let a=o.blockRange(),i=a&&Hr(a);return i==null?!1:(e&&e(t.tr.lift(a,i).scrollIntoView()),!0)}let r=s.nodeBefore;if(Ov(t,s,e,-1))return!0;if(o.parent.content.size==0&&(_r(r,"end")||U.isSelectable(r)))for(let a=o.depth;;a--){let i=$c(t.doc,o.before(a),o.after(a),W.empty);if(i&&i.slice.size<i.to-i.from){if(e){let l=t.tr.step(i);l.setSelection(_r(r,"end")?le.findFrom(l.doc.resolve(l.mapping.map(s.pos,-1)),-1):U.create(l.doc,s.pos-r.nodeSize)),e(l.scrollIntoView())}return!0}if(a==1||o.node(a-1).childCount>1)break}return r.isAtom&&s.depth==o.depth-1?(e&&e(t.tr.delete(s.pos-r.nodeSize,s.pos).scrollIntoView()),!0):!1},o9=(t,e,n)=>{let o=Dv(t,n);if(!o)return!1;let s=om(o);return s?Ev(t,s,e):!1},s9=(t,e,n)=>{let o=Sv(t,n);if(!o)return!1;let s=sm(o);return s?Ev(t,s,e):!1};function Ev(t,e,n){let o=e.nodeBefore,s=o,r=e.pos-1;for(;!s.isTextblock;r--){if(s.type.spec.isolating)return!1;let u=s.lastChild;if(!u)return!1;s=u}let a=e.nodeAfter,i=a,l=e.pos+1;for(;!i.isTextblock;l++){if(i.type.spec.isolating)return!1;let u=i.firstChild;if(!u)return!1;i=u}let c=$c(t.doc,r,l,W.empty);if(!c||c.from!=r||c instanceof mt&&c.slice.size>=l-r)return!1;if(n){let u=t.tr.step(c);u.setSelection(Y.create(u.doc,r)),n(u.scrollIntoView())}return!0}function _r(t,e,n=!1){for(let o=t;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(n&&o.childCount!=1)return!1}return!1}const Iv=(t,e,n)=>{let{$head:o,empty:s}=t.selection,r=o;if(!s)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):o.parentOffset>0)return!1;r=om(o)}let a=r&&r.nodeBefore;return!a||!U.isSelectable(a)?!1:(e&&e(t.tr.setSelection(U.create(t.doc,r.pos-a.nodeSize)).scrollIntoView()),!0)};function om(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Sv(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const Av=(t,e,n)=>{let o=Sv(t,n);if(!o)return!1;let s=sm(o);if(!s)return!1;let r=s.nodeAfter;if(Ov(t,s,e,1))return!0;if(o.parent.content.size==0&&(_r(r,"start")||U.isSelectable(r))){let a=$c(t.doc,o.before(),o.after(),W.empty);if(a&&a.slice.size<a.to-a.from){if(e){let i=t.tr.step(a);i.setSelection(_r(r,"start")?le.findFrom(i.doc.resolve(i.mapping.map(s.pos)),1):U.create(i.doc,i.mapping.map(s.pos))),e(i.scrollIntoView())}return!0}}return r.isAtom&&s.depth==o.depth-1?(e&&e(t.tr.delete(s.pos,s.pos+r.nodeSize).scrollIntoView()),!0):!1},Mv=(t,e,n)=>{let{$head:o,empty:s}=t.selection,r=o;if(!s)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):o.parentOffset<o.parent.content.size)return!1;r=sm(o)}let a=r&&r.nodeAfter;return!a||!U.isSelectable(a)?!1:(e&&e(t.tr.setSelection(U.create(t.doc,r.pos)).scrollIntoView()),!0)};function sm(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const r9=(t,e)=>{let n=t.selection,o=n instanceof U,s;if(o){if(n.node.isTextblock||!fs(t.doc,n.from))return!1;s=n.from}else if(s=zc(t.doc,n.from,-1),s==null)return!1;if(e){let r=t.tr.join(s);o&&r.setSelection(U.create(r.doc,s-t.doc.resolve(s).nodeBefore.nodeSize)),e(r.scrollIntoView())}return!0},a9=(t,e)=>{let n=t.selection,o;if(n instanceof U){if(n.node.isTextblock||!fs(t.doc,n.to))return!1;o=n.to}else if(o=zc(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},i9=(t,e)=>{let{$from:n,$to:o}=t.selection,s=n.blockRange(o),r=s&&Hr(s);return r==null?!1:(e&&e(t.tr.lift(s,r).scrollIntoView()),!0)},Tv=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
126`).scrollIntoView()),!0)};function rm(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const l9=(t,e)=>{let{$head:n,$anchor:o}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let s=n.node(-1),r=n.indexAfter(-1),a=rm(s.contentMatchAt(r));if(!a||!s.canReplaceWith(r,r,a))return!1;if(e){let i=n.after(),l=t.tr.replaceWith(i,i,a.createAndFill());l.setSelection(le.near(l.doc.resolve(i),1)),e(l.scrollIntoView())}return!0},Nv=(t,e)=>{let n=t.selection,{$from:o,$to:s}=n;if(n instanceof qt||o.parent.inlineContent||s.parent.inlineContent)return!1;let r=rm(s.parent.contentMatchAt(s.indexAfter()));if(!r||!r.isTextblock)return!1;if(e){let a=(!o.parentOffset&&s.index()<s.parent.childCount?o:s).pos,i=t.tr.insert(a,r.createAndFill());i.setSelection(Y.create(i.doc,a+1)),e(i.scrollIntoView())}return!0},Rv=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(ho(t.doc,r))return e&&e(t.tr.split(r).scrollIntoView()),!0}let o=n.blockRange(),s=o&&Hr(o);return s==null?!1:(e&&e(t.tr.lift(o,s).scrollIntoView()),!0)};function c9(t){return(e,n)=>{let{$from:o,$to:s}=e.selection;if(e.selection instanceof U&&e.selection.node.isBlock)return!o.parentOffset||!ho(e.doc,o.pos)?!1:(n&&n(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;
vendor: 10,634 bytes, line 126
126let r=[],a,i,l=!1,c=!1;for(let m=o.depth;;m--)if(o.node(m).isBlock){l=o.end(m)==o.pos+(o.depth-m),c=o.start(m)==o.pos-(o.depth-m),i=rm(o.node(m-1).contentMatchAt(o.indexAfter(m-1))),r.unshift(l&&i?{type:i}:null),a=m;break}else{if(m==1)return!1;r.unshift(null)}let u=e.tr;(e.selection instanceof Y||e.selection instanceof qt)&&u.deleteSelection();let d=u.mapping.map(o.pos),p=ho(u.doc,d,r.length,r);if(p||(r[0]=i?{type:i}:null,p=ho(u.doc,d,r.length,r)),!p)return!1;if(u.split(d,r.length,r),!l&&c&&o.node(a).type!=i){let m=u.mapping.map(o.before(a)),h=u.doc.resolve(m);i&&o.node(a-1).canReplaceWith(h.index(),h.index()+1,i)&&u.setNodeMarkup(u.mapping.map(o.before(a)),i)}return n&&n(u.scrollIntoView()),!0}}const u9=c9(),d9=(t,e)=>{let{$from:n,to:o}=t.selection,s,r=n.sharedDepth(o);return r==0?!1:(s=n.before(r),e&&e(t.tr.setSelection(U.create(t.doc,s))),!0)};function p9(t,e,n){let o=e.nodeBefore,s=e.nodeAfter,r=e.index();return!o||!s||!o.type.compatibleContent(s.type)?!1:!o.content.size&&e.parent.canReplace(r-1,r)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(r,r+1)||!(s.isTextblock||fs(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function Ov(t,e,n,o){let s=e.nodeBefore,r=e.nodeAfter,a,i,l=s.type.spec.isolating||r.type.spec.isolating;if(!l&&p9(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(a=(i=s.contentMatchAt(s.childCount)).findWrapping(r.type))&&i.matchType(a[0]||r.type).validEnd){if(n){let m=e.pos+r.nodeSize,h=z.empty;for(let j=a.length-1;j>=0;j--)h=z.from(a[j].create(null,h));h=z.from(s.copy(h));let g=t.tr.step(new gt(e.pos-1,m,e.pos,m,new W(h,1,0),a.length,!0)),v=g.doc.resolve(m+2*a.length);v.nodeAfter&&v.nodeAfter.type==s.type&&fs(g.doc,v.pos)&&g.join(v.pos),n(g.scrollIntoView())}return!0}let u=r.type.spec.isolating||o>0&&l?null:le.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),p=d&&Hr(d);if(p!=null&&p>=e.depth)return n&&n(t.tr.lift(d,p).scrollIntoView()),!0;if(c&&_r(r,"start",!0)&&_r(s,"end")){let m=s,h=[];for(;h.push(m),!m.isTextblock;)m=m.lastChild;let g=r,v=1;for(;!g.isTextblock;g=g.firstChild)v++;if(m.canReplace(m.childCount,m.childCount,g.content)){if(n){let j=z.empty;for(let y=h.length-1;y>=0;y--)j=z.from(h[y].copy(j));let k=t.tr.step(new gt(e.pos-h.length,e.pos+r.nodeSize,e.pos+v,e.pos+r.nodeSize-v,new W(j,h.length,0),0,!0));n(k.scrollIntoView())}return!0}}return!1}function Bv(t){return function(e,n){let o=e.selection,s=t<0?o.$from:o.$to,r=s.depth;for(;s.node(r).isInline;){if(!r)return!1;r--}return s.node(r).isTextblock?(n&&n(e.tr.setSelection(Y.create(e.doc,t<0?s.start(r):s.end(r)))),!0):!1}}const f9=Bv(-1),m9=Bv(1);function h9(t,e=null){return function(n,o){let{$from:s,$to:r}=n.selection,a=s.blockRange(r),i=a&&em(a,t,e);return i?(o&&o(n.tr.wrap(a,i).scrollIntoView()),!0):!1}}function o1(t,e=null){return function(n,o){let s=!1;for(let r=0;r<n.selection.ranges.length&&!s;r++){let{$from:{pos:a},$to:{pos:i}}=n.selection.ranges[r];n.doc.nodesBetween(a,i,(l,c)=>{if(s)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)s=!0;else{let u=n.doc.resolve(c),d=u.index();s=u.parent.canReplaceWith(d,d+1,t)}})}if(!s)return!1;if(o){let r=n.tr;for(let a=0;a<n.selection.ranges.length;a++){let{$from:{pos:i},$to:{pos:l}}=n.selection.ranges[a];r.setBlockType(i,l,t,e)}o(r.scrollIntoView())}return!0}}function am(...t){return function(e,n,o){for(let s=0;s<t.length;s++)if(t[s](e,n,o))return!0;return!1}}am(nm,Fv,Iv);am(nm,Av,Mv);am(Tv,Nv,Rv,u9);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function g9(t,e=null){return function(n,o){let{$from:s,$to:r}=n.selection,a=s.blockRange(r);if(!a)return!1;let i=o?n.tr:null;return b9(i,a,t,e)?(o&&o(i.scrollIntoView()),!0):!1}}function b9(t,e,n,o=null){let s=!1,r=e,a=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=a.resolve(e.start-2);r=new Ea(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new Ea(e.$from,a.resolve(e.$to.end(e.depth)),e.depth)),s=!0}let i=em(r,n,o,e);return i?(t&&v9(t,e,i,s,n),!0):!1}function v9(t,e,n,o,s){let r=z.empty;for(let u=n.length-1;u>=0;u--)r=z.from(n[u].type.create(n[u].attrs,r));t.step(new gt(e.start-(o?2:0),e.end,e.start,e.end,new W(r,0,0),n.length,!0));let a=0;for(let u=0;u<n.length;u++)n[u].type==s&&(a=u+1);let i=n.length-a,l=e.start+n.length-(o?2:0),c=e.parent;for(let u=e.startIndex,d=e.endIndex,p=!0;u<d;u++,p=!1)!p&&ho(t.doc,l,i)&&(t.split(l,i),l+=2*i),l+=c.child(u).nodeSize;return t}function j9(t){return function(e,n){let{$from:o,$to:s}=e.selection,r=o.blockRange(s,a=>a.childCount>0&&a.firstChild.type==t);return r?n?o.node(r.depth-1).type==t?k9(e,n,t,r):y9(e,n,r):!0:!1}}function k9(t,e,n,o){let s=t.tr,r=o.end,a=o.$to.end(o.depth);r<a&&(s.step(new gt(r-1,a,r,a,new W(z.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new Ea(s.doc.resolve(o.$from.pos),s.doc.resolve(a),o.depth));const i=Hr(o);if(i==null)return!1;s.lift(o,i);let l=s.doc.resolve(s.mapping.map(r,-1)-1);return fs(s.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&s.join(l.pos),e(s.scrollIntoView()),!0}function y9(t,e,n){let o=t.tr,s=n.parent;for(let m=n.end,h=n.endIndex-1,g=n.startIndex;h>g;h--)m-=s.child(h).nodeSize,o.delete(m-1,m+1);let r=o.doc.resolve(n.start),a=r.nodeAfter;if(o.mapping.map(n.end)!=n.start+r.nodeAfter.nodeSize)return!1;let i=n.startIndex==0,l=n.endIndex==s.childCount,c=r.node(-1),u=r.index(-1);if(!c.canReplace(u+(i?0:1),u+1,a.content.append(l?z.empty:z.from(s))))return!1;let d=r.pos,p=d+a.nodeSize;return o.step(new gt(d-(i?1:0),p+(l?1:0),d+1,p-1,new W((i?z.empty:z.from(s.copy(z.empty))).append(l?z.empty:z.from(s.copy(z.empty))),i?0:1,l?0:1),i?0:1)),e(o.scrollIntoView()),!0}function w9(t){return function(e,n){let{$from:o,$to:s}=e.selection,r=o.blockRange(s,c=>c.childCount>0&&c.firstChild.type==t);if(!r)return!1;let a=r.startIndex;if(a==0)return!1;let i=r.parent,l=i.child(a-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==i.type,u=z.from(c?t.create():null),d=new W(z.from(t.create(null,z.from(i.type.create(null,u)))),c?3:1,0),p=r.start,m=r.end;n(e.tr.step(new gt(p-(c?3:1),m,p,m,d,1,!0)).scrollIntoView())}return!0}}const yt=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},xr=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let kp=null;const lo=function(t,e,n){let o=kp||(kp=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},_9=function(){kp=null},Bs=function(t,e,n,o){return n&&(s1(t,e,n,o,-1)||s1(t,e,n,o,1))},x9=/^(img|br|input|textarea|hr)$/i;function s1(t,e,n,o,s){for(var r;;){if(t==n&&e==o)return!0;if(e==(s<0?0:pn(t))){let a=t.parentNode;if(!a||a.nodeType!=1||ri(t)||x9.test(t.nodeName)||t.contentEditable=="false")return!1;e=yt(t)+(s<0?0:1),t=a}else if(t.nodeType==1){let a=t.childNodes[e+(s<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((r=a.pmViewDesc)===null||r===void 0)&&r.ignoreForSelection)e+=s;else return!1;else t=a,e=s<0?pn(t):0}else return!1}}function pn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function C9(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=pn(t)}else if(t.parentNode&&!ri(t))e=yt(t),t=t.parentNode;else return null}}function D9(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!ri(t))e=yt(t)+1,t=t.parentNode;else return null}}function F9(t,e,n){for(let o=e==0,s=e==pn(t);o||s;){if(t==n)return!0;let r=yt(t);if(t=t.parentNode,!t)return!1;o=o&&r==0,s=s&&r==pn(t)}}function ri(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Vc=function(t){return t.focusNode&&Bs(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function js(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function E9(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function I9(t,e,n){if(t.caretPositionFromPoint)try{let o=t.caretPositionFromPoint(e,n);if(o)return{node:o.offsetNode,offset:Math.min(pn(o.offsetNode),o.offset)}}catch{}if(t.caretRangeFromPoint){let o=t.caretRangeFromPoint(e,n);if(o)return{node:o.startContainer,offset:Math.min(pn(o.startContainer),o.startOffset)}}}const Kn=typeof navigator<"u"?navigator:null,r1=typeof document<"u"?document:null,ms=Kn&&Kn.userAgent||"",yp=/Edge\/(\d+)/.exec(ms),Lv=/MSIE \d/.exec(ms),wp=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ms),Wt=!!(Lv||wp||yp),Go=Lv?document.documentMode:wp?+wp[1]:yp?+yp[1]:0,gn=!Wt&&/gecko\/(\d+)/i.test(ms);gn&&+(/Firefox\/(\d+)/.exec(ms)||[0,0])[1];const _p=!Wt&&/Chrome\/(\d+)/.exec(ms),It=!!_p,Pv=_p?+_p[1]:0,Ot=!Wt&&!!Kn&&/Apple Computer/.test(Kn.vendor),Cr=Ot&&(/Mobile\/\w+/.test(ms)||!!Kn&&Kn.maxTouchPoints>2),dn=Cr||(Kn?/Mac/.test(Kn.platform):!1),S9=Kn?/Win/.test(Kn.platform):!1,uo=/Android \d/.test(ms),ai=!!r1&&"webkitFontSmoothing"in r1.documentElement.style,A9=ai?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function M9(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function no(t,e){return typeof t=="number"?t:t[e]}function T9(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function a1(t,e,n){let o=t.someProp("scrollThreshold")||0,s=t.someProp("scrollMargin")||5,r=t.dom.ownerDocument;for(let a=n||t.dom;a;){if(a.nodeType!=1){a=xr(a);continue}let i=a,l=i==r.body,c=l?M9(r):T9(i),u=0,d=0;if(e.top<c.top+no(o,"top")?d=-(c.top-e.top+no(s,"top")):e.bottom>c.bottom-no(o,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+no(s,"top")-c.top:e.bottom-c.bottom+no(s,"bottom")),e.left<c.left+no(o,"left")?u=-(c.left-e.left+no(s,"left")):e.right>c.right-no(o,"right")&&(u=e.right-c.right+no(s,"right")),u||d)if(l)r.defaultView.scrollBy(u,d);else{let m=i.scrollLeft,h=i.scrollTop;d&&(i.scrollTop+=d),u&&(i.scrollLeft+=u);let g=i.scrollLeft-m,v=i.scrollTop-h;e={left:e.left-g,top:e.top-v,right:e.right-g,bottom:e.bottom-v}}let p=l?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(p))break;a=p=="absolute"?a.offsetParent:xr(a)}}function N9(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.to
vendor: 5,581 bytes, line 126
126p),o,s;for(let r=(e.left+e.right)/2,a=n+1;a<Math.min(innerHeight,e.bottom);a+=5){let i=t.root.elementFromPoint(r,a);if(!i||i==t.dom||!t.dom.contains(i))continue;let l=i.getBoundingClientRect();if(l.top>=n-20){o=i,s=l.top;break}}return{refDOM:o,refTop:s,stack:zv(t.dom)}}function zv(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=xr(o));return e}function R9({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;$v(n,o==0?0:o-e)}function $v(t,e){for(let n=0;n<t.length;n++){let{dom:o,top:s,left:r}=t[n];o.scrollTop!=s+e&&(o.scrollTop=s+e),o.scrollLeft!=r&&(o.scrollLeft=r)}}let tr=null;function O9(t){if(t.setActive)return t.setActive();if(tr)return t.focus(tr);let e=zv(t);t.focus(tr==null?{get preventScroll(){return tr={preventScroll:!0},!0}}:void 0),tr||(tr=!1,$v(e,0))}function Hv(t,e){let n,o=2e8,s,r=0,a=e.top,i=e.top,l,c;for(let u=t.firstChild,d=0;u;u=u.nextSibling,d++){let p;if(u.nodeType==1)p=u.getClientRects();else if(u.nodeType==3)p=lo(u).getClientRects();else continue;for(let m=0;m<p.length;m++){let h=p[m];if(h.top<=a&&h.bottom>=i){a=Math.max(h.bottom,a),i=Math.min(h.top,i);let g=h.left>e.left?h.left-e.left:h.right<e.left?e.left-h.right:0;if(g<o){n=u,o=g,s=g&&n.nodeType==3?{left:h.right<e.left?h.right:h.left,top:e.top}:e,u.nodeType==1&&g&&(r=d+(e.left>=(h.left+h.right)/2?1:0));continue}}else h.top>e.top&&!l&&h.left<=e.left&&h.right>=e.left&&(l=u,c={left:Math.max(h.left,Math.min(h.right,e.left)),top:h.top});!n&&(e.left>=h.right&&e.top>=h.top||e.left>=h.left&&e.top>=h.bottom)&&(r=d+1)}}return!n&&l&&(n=l,s=c,o=0),n&&n.nodeType==3?B9(n,s):!n||o&&n.nodeType==1?{node:t,offset:r}:Hv(n,s)}function B9(t,e){let n=t.nodeValue.length,o=document.createRange();for(let s=0;s<n;s++){o.setEnd(t,s+1),o.setStart(t,s);let r=Io(o,1);if(r.top!=r.bottom&&im(e,r))return{node:t,offset:s+(e.left>=(r.left+r.right)/2?1:0)}}return{node:t,offset:0}}function im(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function L9(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function P9(t,e,n){let{node:o,offset:s}=Hv(e,n),r=-1;if(o.nodeType==1&&!o.firstChild){let a=o.getBoundingClientRect();r=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return t.docView.posFromDOM(o,s,r)}function z9(t,e,n,o){let s=-1;for(let r=e,a=!1;r!=t.dom;){let i=t.docView.nearestDesc(r,!0),l;if(!i)return null;if(i.dom.nodeType==1&&(i.node.isBlock&&i.parent||!i.contentDOM)&&((l=i.dom.getBoundingClientRect()).width||l.height)&&(i.node.isBlock&&i.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(i.dom.nodeName)&&(!a&&l.left>o.left||l.top>o.top?s=i.posBefore:(!a&&l.right<o.left||l.bottom<o.top)&&(s=i.posAfter),a=!0),!i.contentDOM&&s<0&&!i.node.isText))return(i.node.isBlock?o.top<(l.top+l.bottom)/2:o.left<(l.left+l.right)/2)?i.posBefore:i.posAfter;r=i.dom.parentNode}return s>-1?s:t.docView.posFromDOM(e,n,-1)}function Vv(t,e,n){let o=t.childNodes.length;if(o&&n.top<n.bottom)for(let s=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-n.top)/(n.bottom-n.top))-2)),r=s;;){let a=t.childNodes[r];if(a.nodeType==1){let i=a.getClientRects();for(let l=0;l<i.length;l++){let c=i[l];if(im(e,c))return Vv(a,e,c)}}if((r=(r+1)%o)==s)break}return t}function $9(t,e){let n=t.dom.ownerDocument,o,s=0,r=I9(n,e.left,e.top);r&&({node:o,offset:s}=r);let a=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),i;if(!a||!t.dom.contains(a.nodeType!=1?a.parentNode:a)){let c=t.dom.getBoundingClientRect();if(!im(e,c)||(a=Vv(t.dom,e,c),!a))return null}if(Ot)for(let c=a;o&&c;c=xr(c))c.draggable&&(o=void 0);if(a=L9(a,e),o){if(gn&&o.nodeType==1&&(s=Math.min(s,o.childNodes.length),s<o.childNodes.length)){let u=o.childNodes[s],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&s++}let c;ai&&s&&o.nodeType==1&&(c=o.childNodes[s-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&s--,o==t.dom&&s==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?i=t.state.doc.content.size:(s==0||o.nodeType!=1||o.childNodes[s-1].nodeName!="BR")&&(i=z9(t,o,s,e))}i==null&&(i=P9(t,a,e));let l=t.docView.nearestDesc(a,!0);return{pos:i,inside:l?l.posAtStart-l.border:-1}}function i1(t){return t.top<t.bottom||t.left<t.right}function Io(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if(i1(o))return o}return Array.prototype.find.call(n,i1)||t.getBoundingClientRect()}const H9=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Uv(t,e,n){let{node:o,offset:s,atom:r}=t.docView.domFromPos(e,n<0?-1:1),a=ai||gn;if(o.nodeType==3)if(a&&(H9.test(o.nodeValue)||(n<0?!s:s==o.nodeValue.length))){let l=Io(lo(o,s,s),n);if(gn&&s&&/\s/.test(o.nodeValue[s-1])&&s<o.nodeValue.length){let c=Io(lo(o,s-1,s-1),-1);if(c.top==l.top){let u=Io(lo(o,s,s+1),-1);if(u.top!=l.top)return ta(u,u.left<c.left)}}return l}else{let l=s,c=s,u=n<0?1:-1;return n<0&&!s?(c++,u=-1):n>=0&&s==o.nodeValue.length?(l--,u=1):n<0?l--:c++,ta(Io(lo(o,l,c),u),u<0)}if(!t.state.doc.resolve(e-(r||0)).parent.inlineContent){if(r==null&&s&&(n<0||s==pn(o))){let l=o.childNodes[s-1];if(l.nodeType==1)return ed(l.getBoundingClientRect(),!1)}if(r==null&&s<pn(o)){let l=o.childNodes[s];if(l.nodeType==1)return ed(l.getBoundingClientRect(),!0)}return ed(o.getBoundingClientRect(),n>=0)}if(r==null&&s&&(n<0||s==pn(o))){let l=o.childNodes[s-1],c=l.nodeType==3?lo(l,pn(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return ta(Io(c,1),!1)}if(r==null&&s<pn(o)){let l=o.childNodes[s];for(;
vendor: 7,097 bytes, lines 126-127
126l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?lo(l,0,a?0:1):l.nodeType==1?l:null:null;if(c)return ta(Io(c,-1),!0)}return ta(Io(o.nodeType==3?lo(o):o,-n),n>=0)}function ta(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function ed(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function qv(t,e,n){let o=t.state,s=t.root.activeElement;o!=e&&t.updateState(e),s!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),s!=t.dom&&s&&s.focus()}}function V9(t,e,n){let o=e.selection,s=n=="up"?o.$from:o.$to;return qv(t,e,()=>{let{node:r}=t.docView.domFromPos(s.pos,n=="up"?-1:1);for(;;){let i=t.docView.nearestDesc(r,!0);if(!i)break;if(i.node.isBlock){r=i.contentDOM||i.dom;break}r=i.dom.parentNode}let a=Uv(t,s.pos,1);for(let i=r.firstChild;i;i=i.nextSibling){let l;if(i.nodeType==1)l=i.getClientRects();else if(i.nodeType==3)l=lo(i,0,i.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}const U9=/[\u0590-\u08ac]/;function q9(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let s=o.parentOffset,r=!s,a=s==o.parent.content.size,i=t.domSelection();return i?!U9.test(o.parent.textContent)||!i.modify?n=="left"||n=="backward"?r:a:qv(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=t.domSelectionRange(),p=i.caretBidiLevel;i.modify("move",n,"character");let m=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:h,focusOffset:g}=t.domSelectionRange(),v=h&&!m.contains(h.nodeType==1?h:h.parentNode)||l==h&&c==g;try{i.collapse(u,d),l&&(l!=u||c!=d)&&i.extend&&i.extend(l,c)}catch{}return p!=null&&(i.caretBidiLevel=p),v}):o.pos==o.start()||o.pos==o.end()}let l1=null,c1=null,u1=!1;function W9(t,e,n){return l1==e&&c1==n?u1:(l1=e,c1=n,u1=n=="up"||n=="down"?V9(t,e,n):q9(t,e,n))}const bn=0,d1=1,_s=2,Gn=3;class ii{constructor(e,n,o,s){this.parent=e,this.children=n,this.dom=o,this.contentDOM=s,this.dirty=bn,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,o){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,o=this.posAtStart;;n++){let s=this.children[n];if(s==e)return o;o+=s.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let r,a;if(e==this.contentDOM)r=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&!((a=r.pmViewDesc)&&a.parent==this);)r=r.previousSibling;return r?this.posBeforeChild(a)+a.size:this.posAtStart}else{let r,a;if(e==this.contentDOM)r=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.nextSibling}for(;r&&!((a=r.pmViewDesc)&&a.parent==this);)r=r.nextSibling;return r?this.posBeforeChild(a):this.posAtEnd}let s;if(e==this.dom&&this.contentDOM)s=n>yt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let r=e;;r=r.parentNode){if(r==this.dom){s=!1;break}if(r.previousSibling)break}if(s==null&&n==e.childNodes.length)for(let r=e;;r=r.parentNode){if(r==this.dom){s=!0;break}if(r.nextSibling)break}}return s??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let o=!0,s=e;s;s=s.parentNode){let r=this.getDesc(s),a;if(r&&(!n||r.node))if(o&&(a=r.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))o=!1;else return r}}getDesc(e){let n=e.pmViewDesc;for(let o=n;o;o=o.parent)if(o==this)return n}posFromDOM(e,n,o){for(let s=e;s;s=s.parentNode){let r=this.getDesc(s);if(r)return r.localPosFromDOM(e,n,o)}return-1}descAt(e){for(let n=0,o=0;n<this.children.length;n++){let s=this.children[n],r=o+s.size;if(o==e&&r!=o){for(;!s.border&&s.children.length;)for(let a=0;a<s.children.length;a++){let i=s.children[a];if(i.size){s=i;break}}return s}if(e<r)return s.descAt(e-o-s.border);o=r}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,s=0;for(let r=0;o<this.children.length;o++){let a=this.children[o],i=r+a.size;if(i>e||a instanceof Kv){s=e-r;break}r=i}if(s)return this.children[o].domFromPos(s-this.children[o].border,n);for(let r;o&&!(r=this.children[o-1]).size&&r instanceof Wv&&r.side>=0;o--);if(n<=0){let r,a=!0;for(;r=o?this.children[o-1]:null,!(!r||r.dom.parentNode==this.contentDOM);o--,a=!1);return r&&n&&a&&!r.border&&!r.domAtom?r.domFromPos(r.size,n):{node:this.contentDOM,offset:r?yt(r.dom)+1:0}}else{let r,a=!0;for(;r=o<this.children.length?this.children[o]:null,!(!r||r.dom.parentNode==this.contentDOM);o++,a=!1);return r&&a&&!r.border&&!r.domAtom?r.domFromPos(0,n):{node:this.contentDOM,offset:r?yt(r.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let s=-1,r=-1;for(let a=o,i=0;;i++){let l=this.children[i],c=a+l.size;if(s==-1&&e<=c){let u=a+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=a;for(let d=i;d>0;d--){let p=this.children[d-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){s=yt(p.dom)+1;break}e-=p.size}s==-1&&(s=0)}if(s>-1&&(c>n||i==this.children.length-1)){n=c;for(let u=i+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){r=yt(d.dom);break}n+=d.size}r==-1&&(r=this.contentDOM.childNodes.length);break}a=c}return{node:this.contentDOM,from:e,to:n,fromOffset:s,toOffset:r}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:o}=this.domFromPos(e,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[o]}setSelection(e,n,o,s=!1){let r=Math.min(e,n),a=Math.max(e,n);for(let m=0,h=0;m<this.children.length;m++){let g=this.children[m],v=h+g.size;if(r>h&&a<v)return g.setSelection(e-h-g.border,n-h-g.border,o,s);h=v}let i=this.domFromPos(e,e?-1:1),l=n==e?i:this.domFromPos(n,n?-1:1),c=o.root.getSelection(),u=o.domSelectionRange(),d=!1;if((gn||Ot)&&e==n){let{node:m,offset:h}=i;if(m.nodeType==3){if(d=!!(h&&m.nodeValue[h-1]==`
127`),d&&h==m.nodeValue.length)for(let g=m,v;g;
vendor: 3,930 bytes, line 127
127g=g.parentNode){if(v=g.nextSibling){v.nodeName=="BR"&&(i=l={node:v.parentNode,offset:yt(v)+1});break}let j=g.pmViewDesc;if(j&&j.node&&j.node.isBlock)break}}else{let g=m.childNodes[h-1];d=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(gn&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let m=u.focusNode.childNodes[u.focusOffset];m&&m.contentEditable=="false"&&(s=!0)}if(!(s||d&&Ot)&&Bs(i.node,i.offset,u.anchorNode,u.anchorOffset)&&Bs(l.node,l.offset,u.focusNode,u.focusOffset))return;let p=!1;if((c.extend||e==n)&&!(d&&gn)){c.collapse(i.node,i.offset);try{e!=n&&c.extend(l.node,l.offset),p=!0}catch{}}if(!p){if(e>n){let h=i;i=l,l=h}let m=document.createRange();m.setEnd(l.node,l.offset),m.setStart(i.node,i.offset),c.removeAllRanges(),c.addRange(m)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let o=0,s=0;s<this.children.length;s++){let r=this.children[s],a=o+r.size;if(o==a?e<=a&&n>=o:e<a&&n>o){let i=o+r.border,l=a-r.border;if(e>=i&&n<=l){this.dirty=e==o||n==a?_s:d1,e==i&&n==l&&(r.contentLost||r.dom.parentNode!=this.contentDOM)?r.dirty=Gn:r.markDirty(e-i,n-i);return}else r.dirty=r.dom==r.contentDOM&&r.dom.parentNode==this.contentDOM&&!r.children.length?_s:Gn}o=a}this.dirty=_s}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?_s:d1;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Wv extends ii{constructor(e,n,o,s){let r,a=n.type.toDOM;if(typeof a=="function"&&(a=a(o,()=>{if(!r)return s;if(r.parent)return r.parent.posBeforeChild(r)})),!n.type.spec.raw){if(a.nodeType!=1){let i=document.createElement("span");i.appendChild(a),a=i}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=n,this.widget=n,r=this}matchesWidget(e){return this.dirty==bn&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class K9 extends ii{constructor(e,n,o,s){super(e,[],n,null),this.textDOM=o,this.text=s}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Ls extends ii{constructor(e,n,o,s,r){super(e,[],o,s),this.mark=n,this.spec=r}static create(e,n,o,s){let r=s.nodeViews[n.type.name],a=r&&r(n,s,o);return(!a||!a.dom)&&(a=Ys.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Ls(e,n,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&Gn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Gn&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=bn){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=bn}}slice(e,n,o){let s=Ls.create(this.parent,this.mark,!0,o),r=this.children,a=this.size;n<a&&(r=Cp(r,n,a,o)),e>0&&(r=Cp(r,0,e,o));for(let i=0;i<r.length;i++)r[i].parent=s;return s.children=r,s}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Zo extends ii{constructor(e,n,o,s,r,a,i,l,c){super(e,[],r,a),this.node=n,this.outerDeco=o,this.innerDeco=s,this.nodeDOM=i}static create(e,n,o,s,r,a){let i=r.nodeViews[n.type.name],l,c=i&&i(n,r,()=>{if(!l)return a;
vendor: 21,180 bytes, line 127
127if(l.parent)return l.parent.posBeforeChild(l)},o,s),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Ys.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let p=u;return u=Jv(u,o,n),c?l=new G9(e,n,o,s,u,d||null,p,c,r,a+1):n.isText?new Uc(e,n,o,s,u,p,r):new Zo(e,n,o,s,u,d||null,p,r,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let o=this.children[n];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>z.empty)}return e}matchesNode(e,n,o){return this.dirty==bn&&e.eq(this.node)&&Il(n,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let o=this.node.inlineContent,s=n,r=e.composing?this.localCompositionInfo(e,n):null,a=r&&r.pos>-1?r:null,i=r&&r.pos<0,l=new J9(this,a&&a.node,e);Q9(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,o,e):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Ce.none:this.node.child(u).marks,o,e),l.placeWidget(c,e,s)},(c,u,d,p)=>{l.syncToMarks(c.marks,o,e);let m;l.findNodeMatch(c,u,d,p)||i&&e.state.selection.from>s&&e.state.selection.to<s+c.nodeSize&&(m=l.findIndexWithChild(r.node))>-1&&l.updateNodeAt(c,u,d,m,e)||l.updateNextNode(c,u,d,e,p,s)||l.addNode(c,u,d,e,s),s+=c.nodeSize}),l.syncToMarks([],o,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==_s)&&(a&&this.protectLocalComposition(e,a),Gv(this.contentDOM,this.children,e),Cr&&eD(this.dom))}localCompositionInfo(e,n){let{from:o,to:s}=e.state.selection;if(!(e.state.selection instanceof Y)||o<n||s>n+this.node.content.size)return null;let r=e.input.compositionNode;if(!r||!this.dom.contains(r.parentNode))return null;if(this.node.inlineContent){let a=r.nodeValue,i=tD(this.node.content,a,o-n,s-n);return i<0?null:{node:r,pos:i,text:a}}else return{node:r,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:o,text:s}){if(this.getDesc(n))return;let r=n;for(;r.parentNode!=this.contentDOM;r=r.parentNode){for(;r.previousSibling;)r.parentNode.removeChild(r.previousSibling);for(;r.nextSibling;)r.parentNode.removeChild(r.nextSibling);r.pmViewDesc&&(r.pmViewDesc=void 0)}let a=new K9(this,r,n,s);e.input.compositionNodes.push(a),this.children=Cp(this.children,o,o+s.length,e,a)}update(e,n,o,s){return this.dirty==Gn||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,o,s),!0)}updateInner(e,n,o,s){this.updateOuterDeco(n),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(s,this.posAtStart),this.dirty=bn}updateOuterDeco(e){if(Il(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Zv(this.dom,this.nodeDOM,xp(this.outerDeco,this.node,n),xp(e,this.node,n)),this.dom!=o&&(o.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function p1(t,e,n,o,s){Jv(o,e,t);let r=new Zo(void 0,t,e,n,o,o,o,s,0);return r.contentDOM&&r.updateChildren(s,0),r}class Uc extends Zo{constructor(e,n,o,s,r,a,i){super(e,n,o,s,r,null,a,i,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,o,s){return this.dirty==Gn||this.dirty!=bn&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=bn||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,s.trackWrites==this.nodeDOM&&(s.trackWrites=null)),this.node=e,this.dirty=bn,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,o){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,o){let s=this.node.cut(e,n),r=document.createTextNode(s.text);return new Uc(this.parent,s,this.outerDeco,this.innerDeco,r,r,o)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Gn)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Kv extends ii{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==bn&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class G9 extends Zo{constructor(e,n,o,s,r,a,i,l,c,u){super(e,n,o,s,r,a,i,c,u),this.spec=l}update(e,n,o,s){if(this.dirty==Gn)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let r=this.spec.update(e,n,o);return r&&this.updateInner(e,n,o,s),r}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,o,s)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,o,s){this.spec.setSelection?this.spec.setSelection(e,n,o.root):super.setSelection(e,n,o,s)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Gv(t,e,n){let o=t.firstChild,s=!1;for(let r=0;r<e.length;r++){let a=e[r],i=a.dom;if(i.parentNode==t){for(;i!=o;)o=f1(o),s=!0;o=o.nextSibling}else s=!0,t.insertBefore(i,o);if(a instanceof Ls){let l=o?o.previousSibling:t.lastChild;Gv(a.contentDOM,a.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=f1(o),s=!0;s&&n.trackWrites==t&&(n.trackWrites=null)}const ha=function(t){t&&(this.nodeName=t)};ha.prototype=Object.create(null);const xs=[new ha];function xp(t,e,n){if(t.length==0)return xs;let o=n?xs[0]:new ha,s=[o];for(let r=0;r<t.length;r++){let a=t[r].type.attrs;if(a){a.nodeName&&s.push(o=new ha(a.nodeName));for(let i in a){let l=a[i];l!=null&&(n&&s.length==1&&s.push(o=new ha(e.isInline?"span":"div")),i=="class"?o.class=(o.class?o.class+" ":"")+l:i=="style"?o.style=(o.style?o.style+";":"")+l:i!="nodeName"&&(o[i]=l))}}}return s}function Zv(t,e,n,o){if(n==xs&&o==xs)return e;let s=e;for(let r=0;r<o.length;r++){let a=o[r],i=n[r];if(r){let l;i&&i.nodeName==a.nodeName&&s!=t&&(l=s.parentNode)&&l.nodeName.toLowerCase()==a.nodeName||(l=document.createElement(a.nodeName),l.pmIsDeco=!0,l.appendChild(s),i=xs[0]),s=l}Z9(s,i||xs[0],a)}return s}function Z9(t,e,n){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in n)&&t.removeAttribute(o);for(let o in n)o!="class"&&o!="style"&&o!="nodeName"&&n[o]!=e[o]&&t.setAttribute(o,n[o]);if(e.class!=n.class){let o=e.class?e.class.split(" ").filter(Boolean):[],s=n.class?n.class.split(" ").filter(Boolean):[];for(let r=0;r<o.length;r++)s.indexOf(o[r])==-1&&t.classList.remove(o[r]);for(let r=0;r<s.length;r++)o.indexOf(s[r])==-1&&t.classList.add(s[r]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,s;for(;s=o.exec(e.style);)t.style.removeProperty(s[1])}n.style&&(t.style.cssText+=n.style)}}function Jv(t,e,n){return Zv(t,t,xs,xp(e,n,t.nodeType!=1))}function Il(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function f1(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class J9{constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Y9(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let o=e;o<n;o++)this.top.children[o].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,o){let s=0,r=this.stack.length>>1,a=Math.min(r,e.length);for(;s<a&&(s==r-1?this.top:this.stack[s+1<<1]).matchesMark(e[s])&&e[s].type.spec.spanning!==!1;)s++;for(;s<r;)this.destroyRest(),this.top.dirty=bn,this.index=this.stack.pop(),this.top=this.stack.pop(),r--;for(;r<e.length;){this.stack.push(this.top,this.index+1);let i=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let c=this.top.children[l];if(c.matchesMark(e[r])&&!this.isLocked(c.dom)){i=l;break}}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let l=Ls.create(this.top,e[r],n,o);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,r++}}findNodeMatch(e,n,o,s){let r=-1,a;if(s>=this.preMatch.index&&(a=this.preMatch.matches[s-this.preMatch.index]).parent==this.top&&a.matchesNode(e,n,o))r=this.top.children.indexOf(a,this.index);else for(let i=this.index,l=Math.min(this.top.children.length,i+5);i<l;i++){let c=this.top.children[i];if(c.matchesNode(e,n,o)&&!this.preMatch.matched.has(c)){r=i;break}}return r<0?!1:(this.destroyBetween(this.index,r),this.index++,!0)}updateNodeAt(e,n,o,s,r){let a=this.top.children[s];return a.dirty==Gn&&a.dom==a.contentDOM&&(a.dirty=_s),a.update(e,n,o,r)?(this.destroyBetween(this.index,s),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let o=e.pmViewDesc;if(o){for(let s=this.index;s<this.top.children.length;s++)if(this.top.children[s]==o)return s}return-1}e=n}}updateNextNode(e,n,o,s,r,a){for(let i=this.index;i<this.top.children.length;i++){let l=this.top.children[i];if(l instanceof Zo){let c=this.preMatch.matched.get(l);if(c!=null&&c!=r)return!1;let u=l.dom,d,p=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Gn&&Il(n,l.outerDeco));if(!p&&l.update(e,n,o,s))return this.destroyBetween(this.index,i),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!p&&(d=this.recreateWrapper(l,e,n,o,s,a)))return this.destroyBetween(this.index,i),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=_s,d.updateChildren(s,a+1),d.dirty=bn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,o,s,r,a){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!Il(o,e.outerDeco)||!s.eq(e.innerDeco))return null;let i=Zo.create(this.top,n,o,s,r,a);if(i.contentDOM){i.children=e.children,e.children=[];for(let l of i.children)l.parent=i}return e.destroy(),i}addNode(e,n,o,s,r){let a=Zo.create(this.top,e,n,o,s,r);a.contentDOM&&a.updateChildren(s,r+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,n,o){let s=this.index<this.top.children.length?this.top.children[this.index]:null;if(s&&s.matchesWidget(e)&&(e==s.widget||!s.widget.type.toDOM.parentNode))this.index++;else{let r=new Wv(this.top,e,n,o);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Ls;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Uc)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Ot||It)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let s=new Kv(this.top,[],o,null);n!=this.top?n.children.push(s):n.children.splice(this.index++,0,s),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Y9(t,e){let n=e,o=n.children.length,s=t.childCount,r=new Map,a=[];e:for(;s>0;){let i;for(;;)if(o){let c=n.children[o-1];if(c instanceof Ls)n=c,o=c.children.length;else{i=c,o--;break}}else{if(n==e)break e;o=n.parent.children.indexOf(n),n=n.parent}let l=i.node;if(l){if(l!=t.child(s-1))break;--s,r.set(i,s),a.push(i)}}return{index:s,matched:r,matches:a.reverse()}}function X9(t,e){return t.type.side-e.type.side}function Q9(t,e,n,o){let s=e.locals(t),r=0;if(s.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);o(u,s,e.forChild(r,u),c),r+=u.nodeSize}return}let a=0,i=[],l=null;for(let c=0;;){let u,d;for(;a<s.length&&s[a].to==r;){let v=s[a++];v.widget&&(u?(d||(d=[u])).push(v):u=v)}if(u)if(d){d.sort(X9);for(let v=0;v<d.length;v++)n(d[v],c,!!l)}else n(u,c,!!l);let p,m;if(l)m=-1,p=l,l=null;else if(c<t.childCount)m=c,p=t.child(c++);else break;for(let v=0;v<i.length;v++)i[v].to<=r&&i.splice(v--,1);for(;a<s.length&&s[a].from<=r&&s[a].to>r;)i.push(s[a++]);let h=r+p.nodeSize;if(p.isText){let v=h;a<s.length&&s[a].from<v&&(v=s[a].from);for(let j=0;j<i.length;j++)i[j].to<v&&(v=i[j].to);v<h&&(l=p.cut(v-r),p=p.cut(0,v-r),h=v,m=-1)}else for(;a<s.length&&s[a].to<h;)a++;let g=p.isInline&&!p.isLeaf?i.filter(v=>!v.inline):i.slice();o(p,g,e.forChild(r,p),m),r=h}}function eD(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function tD(t,e,n,o){for(let s=0,r=0;s<t.childCount&&r<=o;){let a=t.child(s++),i=r;if(r+=a.nodeSize,!a.isText)continue;let l=a.text;for(;s<t.childCount;){let c=t.child(s++);if(r+=c.nodeSize,!c.isText)break;l+=c.text}if(r>=n){if(r>=o&&l.slice(o-e.length-i,o-i)==e)return o-e.length;let c=i<o?l.lastIndexOf(e,o-i-1):-1;if(c>=0&&c+e.length+i>=n)return i+c;if(n==o&&l.length>=o+e.length-i&&l.slice(o-i,o-i+e.length)==e)return o}}return-1}function Cp(t,e,n,o,s){let r=[];for(let a=0,i=0;a<t.length;a++){let l=t[a],c=i,u=i+=l.size;c>=n||u<=e?r.push(l):(c<e&&r.push(l.slice(0,e-c,o)),s&&(r.push(s),s=void 0),u>n&&r.push(l.slice(n-c,l.size,o)))}return r}function lm(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let s=t.docView.nearestDesc(n.focusNode),r=s&&s.size==0,a=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let i=o.resolve(a),l,c;if(Vc(n)){for(l=a;s&&!s.node;)s=s.parent;let d=s.node;if(s&&d.isAtom&&U.isSelectable(d)&&s.parent&&!(d.isInline&&F9(n.focusNode,n.focusOffset,s.dom))){let p=s.posBefore;c=new U(a==p?i:o.resolve(p))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=a,p=a;for(let m=0;m<n.rangeCount;m++){let h=n.getRangeAt(m);d=Math.min(d,t.docView.posFromDOM(h.startContainer,h.startOffset,1)),p=Math.max(p,t.docView.posFromDOM(h.endContainer,h.endOffset,-1))}if(d<0)return null;[l,a]=p==t.state.selection.anchor?[p,d]:[d,p],i=o.resolve(a)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=o.resolve(l);if(!c){let d=e=="pointer"||t.state.selection.head<i.pos&&!r?1:-1;c=cm(t,u,i,d)}return c}function Yv(t){return t.editable?t.hasFocus():Qv(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function go(t,e=!1){let n=t.state.selection;if(Xv(t,n),!!Yv(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&It){let o=t.domSelectionRange(),s=t.domObserver.currentSelection;if(o.anchorNode&&s.anchorNode&&Bs(o.anchorNode,o.anchorOffset,s.anchorNode,s.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)oD(t);else{let{anchor:o,head:s}=n,r,a;m1&&!(n instanceof Y)&&(n.$from.parent.inlineContent||(r=h1(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(a=h1(t,n.to))),t.docView.setSelection(o,s,t,e),m1&&(r&&g1(r),a&&g1(a)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&nD(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const m1=Ot||It&&Pv<63;function h1(t,e){let{node:n,offset:o}=t.docView.domFromPos(e,0),s=o<n.childNodes.length?n.childNodes[o]:null,r=o?n.childNodes[o-1]:null;if(Ot&&s&&s.contentEditable=="false")return td(s);if((!s||s.contentEditable=="false")&&(!r||r.contentEditable=="false")){if(s)return td(s);if(r)return td(r)}}function td(t){return t.contentEditable="true",Ot&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function g1(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function nD(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),o=n.anchorNode,s=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=o||n.anchorOffset!=s)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Yv(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function oD(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,o=n.nodeName=="IMG";o?e.collapse(n.parentNode,yt(n)+1):e.collapse(n,0),!o&&!t.state.selection.visible&&Wt&&Go<=11&&(n.disabled=!0,n.disabled=!1)}function Xv(t,e){if(e instanceof U){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(b1(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else b1(t)}function b1(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function cm(t,e,n,o){return t.someProp("createSelectionBetween",s=>s(t,e,n))||Y.between(e,n,o)}function v1(t){return t.editable&&!t.hasFocus()?!1:Qv(t)}function Qv(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function sD(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Bs(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Dp(t,e){let{$anchor:n,$head:o}=t.selection,s=e>0?n.max(o):n.min(o),r=s.parent.inlineContent?s.depth?t.doc.resolve(e>0?s.after():s.before()):null:s;return r&&le.findFrom(r,e)}function Ao(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function j1(t,e,n){let o=t.state.selection;if(o instanceof Y)if(n.indexOf("s")>-1){let{$head:s}=o,r=s.textOffset?null:e<0?s.nodeBefore:s.nodeAfter;if(!r||r.isText||!r.isLeaf)return!1;let a=t.state.doc.resolve(s.pos+r.nodeSize*(e<0?-1:1));return Ao(t,new Y(o.$anchor,a))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let s=Dp(t.state,e);return s&&s instanceof U?Ao(t,s):!1}else if(!(dn&&n.indexOf("m")>-1)){let s=o.$head,r=s.textOffset?null:e<0?s.nodeBefore:s.nodeAfter,a;if(!r||r.isText)return!1;let i=e<0?s.pos-r.nodeSize:s.pos;return r.isAtom||(a=t.docView.descAt(i))&&!a.contentDOM?U.isSelectable(r)?Ao(t,new U(e<0?t.state.doc.resolve(s.pos-r.nodeSize):s)):ai?Ao(t,new Y(t.state.doc.resolve(e<0?i:i+r.nodeSize))):!1:!1}}else return!1;else{if(o instanceof U&&o.node.isInline)return Ao(t,new Y(e>0?o.$to:o.$from));{let s=Dp(t.state,e);return s?Ao(t,s):!1}}}function Sl(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ga(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function nr(t,e){return e<0?rD(t):aD(t)}function rD(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let s,r,a=!1;for(gn&&n.nodeType==1&&o<Sl(n)&&ga(n.childNodes[o],-1)&&(a=!0);;)if(o>0){if(n.nodeType!=1)break;{let i=n.childNodes[o-1];if(ga(i,-1))s=n,r=--o;else if(i.nodeType==3)n=i,o=n.nodeValue.length;else break}}else{if(e6(n))break;{let i=n.previousSibling;for(;i&&ga(i,-1);)s=n.parentNode,r=yt(i),i=i.previousSibling;if(i)n=i,o=Sl(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}a?Fp(t,n,o):s&&Fp(t,s,r)}function aD(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let s=Sl(n),r,a;for(;;)if(o<s){if(n.nodeType!=1)break;let i=n.childNodes[o];if(ga(i,1))r=n,a=++o;else break}else{if(e6(n))break;{let i=n.nextSibling;for(;i&&ga(i,1);)r=i.parentNode,a=yt(i)+1,i=i.nextSibling;if(i)n=i,o=0,s=Sl(n);else{if(n=n.parentNode,n==t.dom)break;o=s=0}}}r&&Fp(t,r,a)}function e6(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function iD(t,e){for(;t&&e==t.childNodes.length&&!ri(t);)e=yt(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function lD(t,e){for(;t&&!e&&!ri(t);)e=yt(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Fp(t,e,n){if(e.nodeType!=3){let r,a;
vendor: 4,122 bytes, lines 127-130
127(a=iD(e,n))?(e=a,n=0):(r=lD(e,n))&&(e=r,n=r.nodeValue.length)}let o=t.domSelection();if(!o)return;if(Vc(o)){let r=document.createRange();r.setEnd(e,n),r.setStart(e,n),o.removeAllRanges(),o.addRange(r)}else o.extend&&o.extend(e,n);t.domObserver.setCurSelection();let{state:s}=t;setTimeout(()=>{t.state==s&&go(t)},50)}function k1(t,e){let n=t.state.doc.resolve(e);if(!(It||S9)&&n.parent.inlineContent){let s=t.coordsAtPos(e);if(e>n.start()){let r=t.coordsAtPos(e-1),a=(r.top+r.bottom)/2;if(a>s.top&&a<s.bottom&&Math.abs(r.left-s.left)>1)return r.left<s.left?"ltr":"rtl"}if(e<n.end()){let r=t.coordsAtPos(e+1),a=(r.top+r.bottom)/2;if(a>s.top&&a<s.bottom&&Math.abs(r.left-s.left)>1)return r.left>s.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function y1(t,e,n){let o=t.state.selection;if(o instanceof Y&&!o.empty||n.indexOf("s")>-1||dn&&n.indexOf("m")>-1)return!1;let{$from:s,$to:r}=o;if(!s.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let a=Dp(t.state,e);if(a&&a instanceof U)return Ao(t,a)}if(!s.parent.inlineContent){let a=e<0?s:r,i=o instanceof qt?le.near(a,e):le.findFrom(a,e);return i?Ao(t,i):!1}return!1}function w1(t,e){if(!(t.state.selection instanceof Y))return!0;let{$head:n,$anchor:o,empty:s}=t.state.selection;if(!n.sameParent(o))return!0;if(!s)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let r=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(r&&!r.isText){let a=t.state.tr;return e<0?a.delete(n.pos-r.nodeSize,n.pos):a.delete(n.pos,n.pos+r.nodeSize),t.dispatch(a),!0}return!1}function _1(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function cD(t){if(!Ot||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let o=e.firstChild;_1(t,o,"true"),setTimeout(()=>_1(t,o,"false"),20)}return!1}function uD(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function dD(t,e){let n=e.keyCode,o=uD(e);if(n==8||dn&&n==72&&o=="c")return w1(t,-1)||nr(t,-1);if(n==46&&!e.shiftKey||dn&&n==68&&o=="c")return w1(t,1)||nr(t,1);if(n==13||n==27)return!0;if(n==37||dn&&n==66&&o=="c"){let s=n==37?k1(t,t.state.selection.from)=="ltr"?-1:1:-1;return j1(t,s,o)||nr(t,s)}else if(n==39||dn&&n==70&&o=="c"){let s=n==39?k1(t,t.state.selection.from)=="ltr"?1:-1:1;return j1(t,s,o)||nr(t,s)}else{if(n==38||dn&&n==80&&o=="c")return y1(t,-1,o)||nr(t,-1);if(n==40||dn&&n==78&&o=="c")return cD(t)||y1(t,1,o)||nr(t,1);if(o==(dn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function um(t,e){t.someProp("transformCopied",m=>{e=m(e,t)});let n=[],{content:o,openStart:s,openEnd:r}=e;for(;s>1&&r>1&&o.childCount==1&&o.firstChild.childCount==1;){s--,r--;let m=o.firstChild;n.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),o=m.content}let a=t.someProp("clipboardSerializer")||Ys.fromSchema(t.state.schema),i=a6(),l=i.createElement("div");l.appendChild(a.serializeFragment(o,{document:i}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=r6[c.nodeName.toLowerCase()]);){for(let m=u.length-1;m>=0;m--){let h=i.createElement(u[m]);for(;l.firstChild;)h.appendChild(l.firstChild);l.appendChild(h),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${s} ${r}${d?` -${d}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",m=>m(e,t))||e.content.textBetween(0,e.content.size,`
128
129`);return{dom:l,text:p,slice:e}}function t6(t,e,n,o,s){let r=s.parent.type.spec.code,a,i;if(!n&&!e)return null;let l=!!e&&(o||r||!n);if(l){if(t.someProp("transformPastedText",p=>{e=p(e,r||o,t)}),r)return i=new W(z.from(t.state.schema.text(e.replace(/\r\n?/g,`
130`))),0,0),t.someProp("transformPasted",p=>{i=p(i,t,!0)}),i;let d=t.someProp("clipboardTextParser",p=>p(e,s,o,t));if(d)i=d;else{let p=s.marks(),{schema:m}=t.state,h=Ys.fromSchema(m);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=a.appendChild(document.createElement("p"));g&&v.appendChild(h.serializeNode(m.text(g,p)))})}}else t.someProp("transformPastedHTML",d=>
vendor: 16,844 bytes, line 130
130{n=d(n,t)}),a=hD(n),ai&&gD(a);let c=a&&a.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let p=a.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;a=p}if(i||(i=(t.someProp("clipboardParser")||t.someProp("domParser")||pr.fromSchema(t.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||u),context:s,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!pD.test(p.parentNode.nodeName)?{ignore:!0}:null}})),u)i=bD(x1(i,+u[1],+u[2]),u[4]);else if(i=W.maxOpen(fD(i.content,s),!0),i.openStart||i.openEnd){let d=0,p=0;for(let m=i.content.firstChild;d<i.openStart&&!m.type.spec.isolating;d++,m=m.firstChild);for(let m=i.content.lastChild;p<i.openEnd&&!m.type.spec.isolating;p++,m=m.lastChild);i=x1(i,d,p)}return t.someProp("transformPasted",d=>{i=d(i,t,l)}),i}const pD=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function fD(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let s=e.node(n).contentMatchAt(e.index(n)),r,a=[];if(t.forEach(i=>{if(!a)return;let l=s.findWrapping(i.type),c;if(!l)return a=null;if(c=a.length&&r.length&&o6(l,r,i,a[a.length-1],0))a[a.length-1]=c;else{a.length&&(a[a.length-1]=s6(a[a.length-1],r.length));let u=n6(i,l);a.push(u),s=s.matchType(u.type),r=l}}),a)return z.from(a)}return t}function n6(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,z.from(t));return t}function o6(t,e,n,o,s){if(s<t.length&&s<e.length&&t[s]==e[s]){let r=o6(t,e,n,o.lastChild,s+1);if(r)return o.copy(o.content.replaceChild(o.childCount-1,r));if(o.contentMatchAt(o.childCount).matchType(s==t.length-1?n.type:t[s+1]))return o.copy(o.content.append(z.from(n6(n,t,s+1))))}}function s6(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,s6(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(z.empty,!0);return t.copy(n.append(o))}function Ep(t,e,n,o,s,r){let a=e<0?t.firstChild:t.lastChild,i=a.content;return t.childCount>1&&(r=0),s<o-1&&(i=Ep(i,e,n,o,s+1,r)),s>=n&&(i=e<0?a.contentMatchAt(0).fillBefore(i,r<=s).append(i):i.append(a.contentMatchAt(a.childCount).fillBefore(z.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(i))}function x1(t,e,n){return e<t.openStart&&(t=new W(Ep(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new W(Ep(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const r6={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let C1=null;function a6(){return C1||(C1=document.implementation.createHTMLDocument("title"))}let nd=null;function mD(t){let e=window.trustedTypes;return e?(nd||(nd=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),nd.createHTML(t)):t}function hD(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=a6().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),s;if((s=o&&r6[o[1].toLowerCase()])&&(t=s.map(r=>"<"+r+">").join("")+t+s.map(r=>"</"+r+">").reverse().join("")),n.innerHTML=mD(t),s)for(let r=0;r<s.length;r++)n=n.querySelector(s[r])||n;return n}function gD(t){let e=t.querySelectorAll(It?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let o=e[n];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),o)}}function bD(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return t}let{content:s,openStart:r,openEnd:a}=t;for(let i=o.length-2;i>=0;i-=2){let l=n.nodes[o[i]];if(!l||l.hasRequiredAttrs())break;s=z.from(l.create(o[i+1],s)),r++,a++}return new W(s,r,a)}const Bt={},Lt={},vD={touchstart:!0,touchmove:!0};class jD{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function kD(t){for(let e in Bt){let n=Bt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{wD(t,o)&&!dm(t,o)&&(t.editable||!(o.type in Lt))&&n(t,o)},vD[e]?{passive:!0}:void 0)}Ot&&t.dom.addEventListener("input",()=>null),Ip(t)}function Ho(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function yD(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Ip(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>dm(t,o))})}function dm(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function wD(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function _D(t,e){!dm(t,e)&&Bt[e.type]&&(t.editable||!(e.type in Lt))&&Bt[e.type](t,e)}Lt.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!l6(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(uo&&It&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Cr&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let o=Date.now();t.input.lastIOSEnter=o,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==o&&(t.someProp("handleKeyDown",s=>s(t,js(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||dD(t,n)?n.preventDefault():Ho(t,"key")};Lt.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Lt.keypress=(t,e)=>{let n=e;if(l6(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||dn&&n.metaKey)return;if(t.someProp("handleKeyPress",s=>s(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof Y)||!o.$from.sameParent(o.$to)){let s=String.fromCharCode(n.charCode),r=()=>t.state.tr.insertText(s).scrollIntoView();!/[\r\n]/.test(s)&&!t.someProp("handleTextInput",a=>a(t,o.$from.pos,o.$to.pos,s,r))&&t.dispatch(r()),n.preventDefault()}};function qc(t){return{left:t.clientX,top:t.clientY}}function xD(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function pm(t,e,n,o,s){if(o==-1)return!1;let r=t.state.doc.resolve(o);for(let a=r.depth+1;a>0;a--)if(t.someProp(e,i=>a>r.depth?i(t,n,r.nodeAfter,r.before(a),s,!0):i(t,n,r.node(a),r.before(a),s,!1)))return!0;return!1}function mr(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);o.setMeta("pointer",!0),t.dispatch(o)}function CD(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&U.isSelectable(o)?(mr(t,new U(n)),!0):!1}function DD(t,e){if(e==-1)return!1;let n=t.state.selection,o,s;n instanceof U&&(o=n.node);let r=t.state.doc.resolve(e);for(let a=r.depth+1;a>0;a--){let i=a>r.depth?r.nodeAfter:r.node(a);if(U.isSelectable(i)){o&&n.$from.depth>0&&a>=n.$from.depth&&r.before(n.$from.depth+1)==n.$from.pos?s=r.before(n.$from.depth):s=r.before(a);break}}return s!=null?(mr(t,U.create(t.state.doc,s)),!0):!1}function FD(t,e,n,o,s){return pm(t,"handleClickOn",e,n,o)||t.someProp("handleClick",r=>r(t,e,o))||(s?DD(t,n):CD(t,n))}function ED(t,e,n,o){return pm(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",s=>s(t,e,o))}function ID(t,e,n,o){return pm(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",s=>s(t,e,o))||SD(t,n,o)}function SD(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(mr(t,Y.create(o,0,o.content.size)),!0):!1;let s=o.resolve(e);for(let r=s.depth+1;r>0;r--){let a=r>s.depth?s.nodeAfter:s.node(r),i=s.before(r);if(a.inlineContent)mr(t,Y.create(o,i+1,i+1+a.content.size));else if(U.isSelectable(a))mr(t,U.create(o,i));else continue;return!0}}function fm(t){return Al(t)}const i6=dn?"metaKey":"ctrlKey";Bt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=fm(t),s=Date.now(),r="singleClick";s-t.input.lastClick.time<500&&xD(n,t.input.lastClick)&&!n[i6]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?r="doubleClick":t.input.lastClick.type=="doubleClick"&&(r="tripleClick")),t.input.lastClick={time:s,x:n.clientX,y:n.clientY,type:r,button:n.button};let a=t.posAtCoords(qc(n));a&&(r=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new AD(t,a,n,!!o)):(r=="doubleClick"?ED:ID)(t,a.pos,a.inside,n)?n.preventDefault():Ho(t,"pointer"))};class AD{constructor(e,n,o,s){this.view=e,this.pos=n,this.event=o,this.flushed=s,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[i6],this.allowDefault=o.shiftKey;let r,a;if(n.inside>-1)r=e.state.doc.nodeAt(n.inside),a=n.inside;else{let u=e.state.doc.resolve(n.pos);r=u.parent,a=u.depth?u.before():0}const i=s?null:o.target,l=i?e.docView.nearestDesc(i,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:c}=e.state;(o.button==0&&r.type.spec.draggable&&r.type.spec.selectable!==!1||c instanceof U&&c.from<=a&&c.to>a)&&(this.mightDrag={node:r,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&gn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Ho(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>go(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(qc(e))),this.updateAllowDefault(e),this.allowDefault||!n?Ho(this.view,"pointer"):FD(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Ot&&this.mightDrag&&!this.mightDrag.node.isAtom||It&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(mr(this.view,le.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):Ho(this.view,"pointer")}move(e){this.updateAllowDefault(e),Ho(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Bt.touchstart=t=>{t.input.lastTouch=Date.now(),fm(t),Ho(t,"pointer")};Bt.touchmove=t=>{t.input.lastTouch=Date.now(),Ho(t,"pointer")};Bt.contextmenu=t=>fm(t);function l6(t,e){return t.composing?!0:Ot&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const MD=uo?5e3:-1;Lt.compositionstart=Lt.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Y&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Al(t,!0),t.markCursor=null;else if(Al(t,!e.selection.empty),gn&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=t.domSelectionRange();for(let s=o.focusNode,r=o.focusOffset;s&&s.nodeType==1&&r!=0;){let a=r<0?s.lastChild:s.childNodes[r-1];if(!a)break;if(a.nodeType==3){let i=t.domSelection();i&&i.collapse(a,a.nodeValue.length);break}else s=a,r=-1}}t.input.composing=!0}c6(t,MD)};Lt.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,c6(t,20))};function c6(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Al(t),e))}function u6(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=ND());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function TD(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=C9(e.focusNode,e.focusOffset),o=D9(e.focusNode,e.focusOffset);if(n&&o&&n!=o){let s=o.pmViewDesc,r=t.domObserver.lastChangedTextNode;if(n==r||o==r)return r;if(!s||!s.isText(o.nodeValue))return o;if(t.input.compositionNode==o){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return o}}return n||o}function ND(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Al(t,e=!1){if(!(uo&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),u6(t),e||t.docView&&t.docView.dirty){let n=lm(t),o=t.state.selection;return n&&!n.eq(o)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!o.$from.node(o.$from.sharedDepth(o.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function RD(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),s=document.createRange();s.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(s),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Ma=Wt&&Go<15||Cr&&A9<604;Bt.copy=Lt.cut=(t,e)=>{let n=e,o=t.state.selection,s=n.type=="cut";if(o.empty)return;let r=Ma?null:n.clipboardData,a=o.content(),{dom:i,text:l}=um(t,a);r?(n.preventDefault(),r.clearData(),r.setData("text/html",i.innerHTML),r.setData("text/plain",l)):RD(t,i),s&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function OD(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function BD(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let s=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Ta(t,o.value,null,s,e):Ta(t,o.textContent,o.innerHTML,s,e)},50)}function Ta(t,e,n,o,s){let r=t6(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,s,r||W.empty)))return!0;if(!r)return!1;let a=OD(r),i=a?t.state.tr.replaceSelectionWith(a,o):t.state.tr.replaceSelection(r);return t.dispatch(i.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function d6(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Lt.paste=(t,e)=>{let n=e;if(t.composing&&!uo)return;let o=Ma?null:n.clipboardData,s=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&Ta(t,d6(o),o.getData("text/html"),s,n)?n.preventDefault():BD(t,n)};class p6{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const LD=dn?"altKey":"ctrlKey";function f6(t,e){let n=t.someProp("dragCopies",o=>!o(e));return n??!e[LD]}Bt.dragstart=(t,e)=>{let n=e,o=t.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let s=t.state.selection,r=s.empty?null:t.posAtCoords(qc(n)),a;if(!(r&&r.pos>=s.from&&r.pos<=(s instanceof U?s.to-1:s.to))){if(o&&o.mightDrag)a=U.create(t.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(a=U.create(t.state.doc,d.posBefore))}}let i=(a||t.state.selection).content(),{dom:l,text:c,slice:u}=um(t,i);(!n.dataTransfer.files.length||!It||Pv>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Ma?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Ma||n.dataTransfer.setData("text/plain",c),t.dragging=new p6(u,f6(t,
vendor: 18,154 bytes, line 130
130n),a)};Bt.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Lt.dragover=Lt.dragenter=(t,e)=>e.preventDefault();Lt.drop=(t,e)=>{let n=e,o=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let s=t.posAtCoords(qc(n));if(!s)return;let r=t.state.doc.resolve(s.pos),a=o&&o.slice;a?t.someProp("transformPasted",h=>{a=h(a,t,!1)}):a=t6(t,d6(n.dataTransfer),Ma?null:n.dataTransfer.getData("text/html"),!1,r);let i=!!(o&&f6(t,n));if(t.someProp("handleDrop",h=>h(t,n,a||W.empty,i))){n.preventDefault();return}if(!a)return;n.preventDefault();let l=a?bv(t.state.doc,r.pos,a):r.pos;l==null&&(l=r.pos);let c=t.state.tr;if(i){let{node:h}=o;h?h.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,p=c.doc;if(d?c.replaceRangeWith(u,u,a.content.firstChild):c.replaceRange(u,u,a),c.doc.eq(p))return;let m=c.doc.resolve(u);if(d&&U.isSelectable(a.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new U(m));else{let h=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,v,j,k)=>h=k),c.setSelection(cm(t,m,c.doc.resolve(h)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))};Bt.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&go(t)},20))};Bt.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Bt.beforeinput=(t,e)=>{if(It&&uo&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:o}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=o||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",r=>r(t,js(8,"Backspace")))))return;let{$cursor:s}=t.state.selection;s&&s.pos>0&&t.dispatch(t.state.tr.delete(s.pos-1,s.pos).scrollIntoView())},50)}};for(let t in Lt)Bt[t]=Lt[t];function Na(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Ml{constructor(e,n){this.toDOM=e,this.spec=n||Ss,this.side=this.spec.side||0}map(e,n,o,s){let{pos:r,deleted:a}=e.mapResult(n.from+s,this.side<0?-1:1);return a?null:new xt(r-o,r-o,this)}valid(){return!0}eq(e){return this==e||e instanceof Ml&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Na(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Jo{constructor(e,n){this.attrs=e,this.spec=n||Ss}map(e,n,o,s){let r=e.map(n.from+s,this.spec.inclusiveStart?-1:1)-o,a=e.map(n.to+s,this.spec.inclusiveEnd?1:-1)-o;return r>=a?null:new xt(r,a,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Jo&&Na(this.attrs,e.attrs)&&Na(this.spec,e.spec)}static is(e){return e.type instanceof Jo}destroy(){}}class mm{constructor(e,n){this.attrs=e,this.spec=n||Ss}map(e,n,o,s){let r=e.mapResult(n.from+s,1);if(r.deleted)return null;let a=e.mapResult(n.to+s,-1);return a.deleted||a.pos<=r.pos?null:new xt(r.pos-o,a.pos-o,this)}valid(e,n){let{index:o,offset:s}=e.content.findIndex(n.from),r;return s==n.from&&!(r=e.child(o)).isText&&s+r.nodeSize==n.to}eq(e){return this==e||e instanceof mm&&Na(this.attrs,e.attrs)&&Na(this.spec,e.spec)}destroy(){}}class xt{constructor(e,n,o){this.from=e,this.to=n,this.type=o}copy(e,n){return new xt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,o){return this.type.map(e,this,n,o)}static widget(e,n,o){return new xt(e,e,new Ml(n,o))}static inline(e,n,o,s){return new xt(e,n,new Jo(o,s))}static node(e,n,o,s){return new xt(e,n,new mm(o,s))}get spec(){return this.type.spec}get inline(){return this.type instanceof Jo}get widget(){return this.type instanceof Ml}}const ir=[],Ss={};class Ne{constructor(e,n){this.local=e.length?e:ir,this.children=n.length?n:ir}static create(e,n){return n.length?Tl(n,e,0,Ss):Ft}find(e,n,o){let s=[];return this.findInner(e??0,n??1e9,s,0,o),s}findInner(e,n,o,s,r){for(let a=0;a<this.local.length;a++){let i=this.local[a];i.from<=n&&i.to>=e&&(!r||r(i.spec))&&o.push(i.copy(i.from+s,i.to+s))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<n&&this.children[a+1]>e){let i=this.children[a]+1;this.children[a+2].findInner(e-i,n-i,o,s+i,r)}}map(e,n,o){return this==Ft||e.maps.length==0?this:this.mapInner(e,n,0,0,o||Ss)}mapInner(e,n,o,s,r){let a;for(let i=0;i<this.local.length;i++){let l=this.local[i].map(e,o,s);l&&l.type.valid(n,l)?(a||(a=[])).push(l):r.onRemove&&r.onRemove(this.local[i].spec)}return this.children.length?PD(this.children,a||[],e,n,o,s,r):a?new Ne(a.sort(As),ir):Ft}add(e,n){return n.length?this==Ft?Ne.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let s,r=0;e.forEach((i,l)=>{let c=l+o,u;if(u=h6(n,i,c)){for(s||(s=this.children.slice());r<s.length&&s[r]<l;)r+=3;s[r]==l?s[r+2]=s[r+2].addInner(i,u,c+1):s.splice(r,0,l,l+i.nodeSize,Tl(u,i,c+1,Ss)),r+=3}});let a=m6(r?g6(n):n,-o);for(let i=0;i<a.length;i++)a[i].type.valid(e,a[i])||a.splice(i--,1);return new Ne(a.length?this.local.concat(a).sort(As):this.local,s||this.children)}remove(e){return e.length==0||this==Ft?this:this.removeInner(e,0)}removeInner(e,n){let o=this.children,s=this.local;for(let r=0;r<o.length;r+=3){let a,i=o[r]+n,l=o[r+1]+n;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>i&&d.to<l&&(e[u]=null,(a||(a=[])).push(d));if(!a)continue;o==this.children&&(o=this.children.slice());let c=o[r+2].removeInner(a,i+1);c!=Ft?o[r+2]=c:(o.splice(r,3),r-=3)}if(s.length){for(let r=0,a;r<e.length;r++)if(a=e[r])for(let i=0;i<s.length;i++)s[i].eq(a,n)&&(s==this.local&&(s=this.local.slice()),s.splice(i--,1))}return o==this.children&&s==this.local?this:s.length||o.length?new Ne(s,o):Ft}forChild(e,n){if(this==Ft)return this;if(n.isLeaf)return Ne.empty;let o,s;for(let i=0;i<this.children.length;i+=3)if(this.children[i]>=e){this.children[i]==e&&(o=this.children[i+2]);break}let r=e+1,a=r+n.content.size;for(let i=0;i<this.local.length;i++){let l=this.local[i];if(l.from<a&&l.to>r&&l.type instanceof Jo){let c=Math.max(r,l.from)-r,u=Math.min(a,l.to)-r;c<u&&(s||(s=[])).push(l.copy(c,u))}}if(s){let i=new Ne(s.sort(As),ir);return o?new Oo([i,o]):i}return o||Ft}eq(e){if(this==e)return!0;if(!(e instanceof Ne)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return hm(this.localsInner(e))}localsInner(e){if(this==Ft)return ir;if(e.inlineContent||!this.local.some(Jo.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof Jo||n.push(this.local[o]);return n}forEachSet(e){e(this)}}Ne.empty=new Ne([],[]);Ne.removeOverlap=hm;const Ft=Ne.empty;class Oo{constructor(e){this.members=e}map(e,n){const o=this.members.map(s=>s.map(e,n,Ss));return Oo.from(o)}forChild(e,n){if(n.isLeaf)return Ne.empty;let o=[];for(let s=0;s<this.members.length;s++){let r=this.members[s].forChild(e,n);r!=Ft&&(r instanceof Oo?o=o.concat(r.members):o.push(r))}return Oo.from(o)}eq(e){if(!(e instanceof Oo)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,o=!0;for(let s=0;s<this.members.length;s++){let r=this.members[s].localsInner(e);if(r.length)if(!n)n=r;else{o&&(n=n.slice(),o=!1);for(let a=0;a<r.length;a++)n.push(r[a])}}return n?hm(o?n:n.sort(As)):ir}static from(e){switch(e.length){case 0:return Ft;case 1:return e[0];default:return new Oo(e.every(n=>n instanceof Ne)?e:e.reduce((n,o)=>n.concat(o instanceof Ne?o:o.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function PD(t,e,n,o,s,r,a){let i=t.slice();for(let c=0,u=r;c<n.maps.length;c++){let d=0;n.maps[c].forEach((p,m,h,g)=>{let v=g-h-(m-p);for(let j=0;j<i.length;j+=3){let k=i[j+1];if(k<0||p>k+u-d)continue;let y=i[j]+u-d;m>=y?i[j+1]=p<=y?-2:-1:p>=u&&v&&(i[j]+=v,i[j+1]+=v)}d+=v}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<i.length;c+=3)if(i[c+1]<0){if(i[c+1]==-2){l=!0,i[c+1]=-1;continue}let u=n.map(t[c]+r),d=u-s;if(d<0||d>=o.content.size){l=!0;continue}let p=n.map(t[c+1]+r,-1),m=p-s,{index:h,offset:g}=o.content.findIndex(d),v=o.maybeChild(h);if(v&&g==d&&g+v.nodeSize==m){let j=i[c+2].mapInner(n,v,u+1,t[c]+r+1,a);j!=Ft?(i[c]=d,i[c+1]=m,i[c+2]=j):(i[c+1]=-2,l=!0)}else l=!0}if(l){let c=zD(i,t,e,n,s,r,a),u=Tl(c,o,0,a);e=u.local;for(let d=0;d<i.length;d+=3)i[d+1]<0&&(i.splice(d,3),d-=3);for(let d=0,p=0;d<u.children.length;d+=3){let m=u.children[d];for(;p<i.length&&i[p]<m;)p+=3;i.splice(p,0,u.children[d],u.children[d+1],u.children[d+2])}}return new Ne(e.sort(As),i)}function m6(t,e){if(!e||!t.length)return t;let n=[];for(let o=0;o<t.length;o++){let s=t[o];n.push(new xt(s.from+e,s.to+e,s.type))}return n}function zD(t,e,n,o,s,r,a){function i(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(o,s,c);d?n.push(d):a.onRemove&&a.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)i(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&i(t[l+2],e[l]+r+1);return n}function h6(t,e,n){if(e.isLeaf)return null;let o=n+e.nodeSize,s=null;for(let r=0,a;r<t.length;r++)(a=t[r])&&a.from>n&&a.to<o&&((s||(s=[])).push(a),t[r]=null);return s}function g6(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Tl(t,e,n,o){let s=[],r=!1;e.forEach((i,l)=>{let c=h6(t,i,l+n);if(c){r=!0;let u=Tl(c,i,n+l+1,o);u!=Ft&&s.push(l,l+i.nodeSize,u)}});let a=m6(r?g6(t):t,-n).sort(As);for(let i=0;i<a.length;i++)a[i].type.valid(e,a[i])||(o.onRemove&&o.onRemove(a[i].spec),a.splice(i--,1));return a.length||s.length?new Ne(a,s):Ft}function As(t,e){return t.from-e.from||t.to-e.to}function hm(t){let e=t;for(let n=0;n<e.length-1;n++){let o=e[n];if(o.from!=o.to)for(let s=n+1;s<e.length;s++){let r=e[s];if(r.from==o.from){r.to!=o.to&&(e==t&&(e=t.slice()),e[s]=r.copy(r.from,o.to),D1(e,s+1,r.copy(o.to,r.to)));continue}else{r.from<o.to&&(e==t&&(e=t.slice()),e[n]=o.copy(o.from,r.from),D1(e,s,o.copy(r.from,o.to)));break}}}return e}function D1(t,e,n){for(;e<t.length&&As(n,t[e])>0;)e++;t.splice(e,0,n)}function od(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=Ft&&e.push(o)}),t.cursorWrapper&&e.push(Ne.create(t.state.doc,[t.cursorWrapper.deco])),Oo.from(e)}const $D={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},HD=Wt&&Go<=11;class VD{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class UD{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new VD,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let s=0;s<o.length;s++)this.queue.push(o[s]);Wt&&Go<=11&&o.some(s=>s.type=="childList"&&s.removedNodes.length||s.type=="characterData"&&s.oldValue.length>s.target.nodeValue.length)?this.flushSoon():this.flush()}),HD&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,$D)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(v1(this.view)){if(this.suppressingSelectionUpdates)return go(this.view);if(Wt&&Go<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Bs(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,o;for(let r=e.focusNode;r;r=xr(r))n.add(r);for(let r=e.anchorNode;r;r=xr(r))if(n.has(r)){o=r;break}let s=o&&this.view.docView.nearestDesc(o);if(s&&s.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let o=e.domSelectionRange(),s=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&v1(e)&&!this.ignoreSelectionChange(o),r=-1,a=-1,i=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],l);d&&(r=r<0?d.from:Math.min(d.from,r),a=a<0?d.to:Math.max(d.to,a),d.typeOver&&(i=!0))}if(gn&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,p]=u;d.parentNode&&d.parentNode.parentNode==p.parentNode?p.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let p of u){let m=p.parentNode;m&&m.nodeName=="LI"&&(!d||KD(e,d)!=m)&&p.remove()}}}let c=null;r<0&&s&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Vc(o)&&(c=lm(e))&&c.eq(le.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,go(e),this.currentSelection.set(o),e.scrollToSelection()):(r>-1||s)&&(r>-1&&(e.docView.markDirty(r,a),qD(e)),this.handleDOMChange(r,a,i,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||go(e),this.currentSelection.set(o))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let d=e.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let s=e.previousSibling,r=e.nextSibling;if(Wt&&Go<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:p}=e.addedNodes[u];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(s=d),(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(r=p)}let a=s&&s.parentNode==e.target?yt(s)+1:0,i=o.localPosFromDOM(e.target,a,-1),l=r&&r.parentNode==e.target?yt(r):e.target.childNodes.length,c=o.localPosFromDOM(e.target,l,1);return{from:i,to:c}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let F1=new WeakMap,E1=!1;function qD(t){if(!F1.has(t)&&(F1.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=gn,E1)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),E1=!0}}function I1(t,e){let n=e.startContainer,o=e.startOffset,s=e.endContainer,r=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return Bs(a.node,a.offset,s,r)&&([n,o,s,r]=[s,r,n,o]),{anchorNode:n,anchorOffset:o,focusNode:s,focusOffset:r}}function WD(t,e){if(e.getComposedRanges){let s=e.getComposedRanges(t.root)[0];if(s)return I1(t,s)}let n;function o(s){s.preventDefault(),s.stopImmediatePropagation(),n=s.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",o,!0),n?I1(t,n):null}function KD(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let o=t.docView.nearestDesc(n,!0);if(o&&o.node.isBlock)return n}return null}function GD(t,e,n){let{node:o,fromOffset:s,toOffset:r,from:a,to:i}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],Vc(l)||c.push({node:l.focusNode,offset:l.focusOffset})),It&&t.input.lastKeyCode===8)for(let v=r;v>s;v--){let j=o.childNodes[v-1],k=j.pmViewDesc;if(j.nodeName=="BR"&&!k){r=v;break}if(!k||k.size)break}let d=t.state.doc,p=t.someProp("domParser")||pr.fromSchema(t.state.schema),m=d.resolve(a),h=null,g=p.parse(o,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:s,to:r,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:ZD,context:m});if(c&&c[0].pos!=null){let v=c[0].pos,j=c[1]&&c[1].pos;j==null&&(j=v),h={anchor:v+a,head:j+a}}return{doc:g,sel:h,from:a,to:i}}function ZD(t){let e=t.pmViewDesc;if(e)return e.parseRule();
vendor: 4,119 bytes, line 130
130if(t.nodeName=="BR"&&t.parentNode){if(Ot&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Ot&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const JD=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function YD(t,e,n,o,s){let r=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let _=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,F=lm(t,_);if(F&&!t.state.selection.eq(F)){if(It&&uo&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",M=>M(t,js(13,"Enter"))))return;let D=t.state.tr.setSelection(F);_=="pointer"?D.setMeta("pointer",!0):_=="key"&&D.scrollIntoView(),r&&D.setMeta("composition",r),t.dispatch(D)}return}let a=t.state.doc.resolve(e),i=a.sharedDepth(n);e=a.before(i+1),n=t.state.doc.resolve(n).after(i+1);let l=t.state.selection,c=GD(t,e,n),u=t.state.doc,d=u.slice(c.from,c.to),p,m;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,m="end"):(p=t.state.selection.from,m="start"),t.input.lastKeyCode=null;let h=eF(d.content,c.doc.content,c.from,p,m);if(h&&t.input.domChangeCount++,(Cr&&t.input.lastIOSEnter>Date.now()-225||uo)&&s.some(_=>_.nodeType==1&&!JD.test(_.nodeName))&&(!h||h.endA>=h.endB)&&t.someProp("handleKeyDown",_=>_(t,js(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!h)if(o&&l instanceof Y&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))h={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let _=S1(t,t.state.doc,c.sel);if(_&&!_.eq(t.state.selection)){let F=t.state.tr.setSelection(_);r&&F.setMeta("composition",r),t.dispatch(F)}}return}t.state.selection.from<t.state.selection.to&&h.start==h.endB&&t.state.selection instanceof Y&&(h.start>t.state.selection.from&&h.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?h.start=t.state.selection.from:h.endA<t.state.selection.to&&h.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(h.endB+=t.state.selection.to-h.endA,h.endA=t.state.selection.to)),Wt&&Go<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>c.from&&c.doc.textBetween(h.start-c.from-1,h.start-c.from+1)=="  "&&(h.start--,h.endA--,h.endB--);let g=c.doc.resolveNoCache(h.start-c.from),v=c.doc.resolveNoCache(h.endB-c.from),j=u.resolve(h.start),k=g.sameParent(v)&&g.parent.inlineContent&&j.end()>=h.endA;if((Cr&&t.input.lastIOSEnter>Date.now()-225&&(!k||s.some(_=>_.nodeName=="DIV"||_.nodeName=="P"))||!k&&g.pos<c.doc.content.size&&(!g.sameParent(v)||!g.parent.inlineContent)&&g.pos<v.pos&&!/\S/.test(c.doc.textBetween(g.pos,v.pos,"","")))&&t.someProp("handleKeyDown",_=>_(t,js(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>h.start&&QD(u,h.start,h.endA,g,v)&&t.someProp("handleKeyDown",_=>_(t,js(8,"Backspace")))){uo&&It&&t.domObserver.suppressSelectionUpdates();return}It&&h.endB==h.start&&(t.input.lastChromeDelete=Date.now()),uo&&!k&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==h.endA&&(h.endB-=2,v=c.doc.resolveNoCache(h.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(_){return _(t,js(13,"Enter"))})},20));let y=h.start,w=h.endA,C=_=>{let F=_||t.state.tr.replace(y,w,c.doc.slice(h.start-c.from,h.endB-c.from));if(c.sel){let D=S1(t,F.doc,c.sel);D&&!(It&&t.composing&&D.empty&&(h.start!=h.endB||t.input.lastChromeDelete<Date.now()-100)&&(D.head==y||D.head==F.mapping.map(w)-1)||Wt&&D.empty&&D.head==y)&&F.setSelection(D)}return r&&F.setMeta("composition",r),F.scrollIntoView()},x;if(k)if(g.pos==v.pos){Wt&&Go<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>go(t),20));let _=C(t.state.tr.delete(y,w)),F=u.resolve(h.start).marksAcross(u.resolve(h.endA));
vendor: 11,085 bytes, line 130
130F&&_.ensureMarks(F),t.dispatch(_)}else if(h.endA==h.endB&&(x=XD(g.parent.content.cut(g.parentOffset,v.parentOffset),j.parent.content.cut(j.parentOffset,h.endA-j.start())))){let _=C(t.state.tr);x.type=="add"?_.addMark(y,w,x.mark):_.removeMark(y,w,x.mark),t.dispatch(_)}else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let _=g.parent.textBetween(g.parentOffset,v.parentOffset),F=()=>C(t.state.tr.insertText(_,y,w));t.someProp("handleTextInput",D=>D(t,y,w,_,F))||t.dispatch(F())}else t.dispatch(C());else t.dispatch(C())}function S1(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:cm(t,e.resolve(n.anchor),e.resolve(n.head))}function XD(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,s=n,r=o,a,i,l;for(let u=0;u<o.length;u++)s=o[u].removeFromSet(s);for(let u=0;u<n.length;u++)r=n[u].removeFromSet(r);if(s.length==1&&r.length==0)i=s[0],a="add",l=u=>u.mark(i.addToSet(u.marks));else if(s.length==0&&r.length==1)i=r[0],a="remove",l=u=>u.mark(i.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(z.from(c).eq(t))return{mark:i,type:a}}function QD(t,e,n,o,s){if(n-e<=s.pos-o.pos||sd(o,!0,!1)<s.pos)return!1;let r=t.resolve(e);if(!o.parent.isTextblock){let i=r.nodeAfter;return i!=null&&n==e+i.nodeSize}if(r.parentOffset<r.parent.content.size||!r.parent.isTextblock)return!1;let a=t.resolve(sd(r,!0,!0));return!a.parent.isTextblock||a.pos>n||sd(a,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(a.parent.content)}function sd(t,e,n){let o=t.depth,s=e?t.end():t.pos;for(;o>0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,s++,e=!1;if(n){let r=t.node(o).maybeChild(t.indexAfter(o));for(;r&&!r.isLeaf;)r=r.firstChild,s++}return s}function eF(t,e,n,o,s){let r=t.findDiffStart(e,n);if(r==null)return null;let{a,b:i}=t.findDiffEnd(e,n+t.size,n+e.size);if(s=="end"){let l=Math.max(0,r-Math.min(a,i));o-=a+l-r}if(a<r&&t.size<e.size){let l=o<=r&&o>=a?r-o:0;r-=l,r&&r<e.size&&A1(e.textBetween(r-1,r+1))&&(r+=l?1:-1),i=r+(i-a),a=r}else if(i<r){let l=o<=r&&o>=i?r-o:0;r-=l,r&&r<t.size&&A1(t.textBetween(r-1,r+1))&&(r+=l?1:-1),a=r+(a-i),i=r}return{start:r,endA:a,endB:i}}function A1(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class b6{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new jD,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(O1),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=N1(this),T1(this),this.nodeViews=R1(this),this.docView=p1(this.state.doc,M1(this),od(this),this.dom,this),this.domObserver=new UD(this,(o,s,r,a)=>YD(this,o,s,r,a)),this.domObserver.start(),kD(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Ip(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(O1),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let o in this._props)n[o]=this._props[o];n.state=this.state;for(let o in e)n[o]=e[o];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var o;let s=this.state,r=!1,a=!1;e.storedMarks&&this.composing&&(u6(this),a=!0),this.state=e;let i=s.plugins!=e.plugins||this._props.plugins!=n.plugins;if(i||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let m=R1(this);nF(m,this.nodeViews)&&(this.nodeViews=m,r=!0)}(i||n.handleDOMEvents!=this._props.handleDOMEvents)&&Ip(this),this.editable=N1(this),T1(this);let l=od(this),c=M1(this),u=s.plugins!=e.plugins&&!s.doc.eq(e.doc)?"reset":e.scrollToSelection>s.scrollToSelection?"to selection":"preserve",d=r||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(s.selection))&&(a=!0);let p=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&N9(this);if(a){this.domObserver.stop();let m=d&&(Wt||It)&&!this.composing&&!s.selection.empty&&!e.selection.empty&&tF(s.selection,e.selection);if(d){let h=It?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=TD(this)),(r||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=p1(e.doc,c,l,this.dom,this)),h&&!this.trackWrites&&(m=!0)}m||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&sD(this))?go(this,m):(Xv(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(s),!((o=this.dragging)===null||o===void 0)&&o.node&&!s.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,s),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():p&&R9(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof U){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&a1(this,n.getBoundingClientRect(),e)}else a1(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let o=this.directPlugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let o=this.state.plugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let o=this.pluginViews[n];o.update&&o.update(this,e)}}updateDraggedNode(e,n){let o=e.node,s=-1;if(this.state.doc.nodeAt(o.from)==o.node)s=o.from;else{let r=o.from+(this.state.doc.content.size-n.doc.content.size);(r>0&&this.state.doc.nodeAt(r))==o.node&&(s=r)}this.dragging=new p6(e.slice,e.move,s<0?void 0:U.create(this.state.doc,s))}someProp(e,n){let o=this._props&&this._props[e],s;if(o!=null&&(s=n?n(o):o))return s;for(let a=0;a<this.directPlugins.length;a++){let i=this.directPlugins[a].props[e];if(i!=null&&(s=n?n(i):i))return s}let r=this.state.plugins;if(r)for(let a=0;a<r.length;a++){let i=r[a].props[e];if(i!=null&&(s=n?n(i):i))return s}}hasFocus(){if(Wt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&O9(this.dom),go(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return $9(this,e)}coordsAtPos(e,n=1){return Uv(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,o=-1){let s=this.docView.posFromDOM(e,n,o);if(s==null)throw new RangeError("DOM position not inside the editor");return s}endOfTextblock(e,n){return W9(this,n||this.state,e)}pasteHTML(e,n){return Ta(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Ta(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return um(this,e)}destroy(){this.docView&&(yD(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],od(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,_9())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return _D(this,e)}domSelectionRange(){let e=this.domSelection();return e?Ot&&this.root.nodeType===11&&E9(this.dom.ownerDocument)==this.dom&&WD(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}b6.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function M1(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let o in n)o=="class"?e.class+=" "+n[o]:o=="style"?e.style=(e.style?e.style+";":"")+n[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(n[o]))}),e.translate||(e.translate="no"),[xt.node(0,t.state.doc.content.size,e)]}function T1(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:xt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function N1(t){return!t.someProp("editable",e=>e(t.state)===!1)}function tF(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function R1(t){let e=Object.create(null);function n(o){for(let s in o)Object.prototype.hasOwnProperty.call(e,s)||(e[s]=o[s])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function nF(t,e){let n=0,o=0;for(let s in t){if(t[s]!=e[s])return!0;n++}for(let s in e)o++;return n!=o}function O1(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var ts={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Nl={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},oF=typeof navigator<"u"&&/Mac/.test(navigator.platform),sF=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var wt=0;wt<10;wt++)ts[48+wt]=ts[96+wt]=String(wt);for(var wt=1;wt<=24;wt++)ts[wt+111]="F"+wt;
vendor: 22,637 bytes, lines 130-131
130for(var wt=65;wt<=90;wt++)ts[wt]=String.fromCharCode(wt+32),Nl[wt]=String.fromCharCode(wt);for(var rd in ts)Nl.hasOwnProperty(rd)||(Nl[rd]=ts[rd]);function rF(t){var e=oF&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||sF&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Nl:ts)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const aF=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),iF=typeof navigator<"u"&&/Win/.test(navigator.platform);function lF(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let o,s,r,a;for(let i=0;i<e.length-1;i++){let l=e[i];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))s=!0;else if(/^s(hift)?$/i.test(l))r=!0;else if(/^mod$/i.test(l))aF?a=!0:s=!0;else throw new Error("Unrecognized modifier name: "+l)}return o&&(n="Alt-"+n),s&&(n="Ctrl-"+n),a&&(n="Meta-"+n),r&&(n="Shift-"+n),n}function cF(t){let e=Object.create(null);for(let n in t)e[lF(n)]=t[n];return e}function ad(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function uF(t){return new xe({props:{handleKeyDown:v6(t)}})}function v6(t){let e=cF(t);return function(n,o){let s=rF(o),r,a=e[ad(s,o)];if(a&&a(n.state,n.dispatch,n))return!0;if(s.length==1&&s!=" "){if(o.shiftKey){let i=e[ad(s,o,!1)];if(i&&i(n.state,n.dispatch,n))return!0}if((o.altKey||o.metaKey||o.ctrlKey)&&!(iF&&o.ctrlKey&&o.altKey)&&(r=ts[o.keyCode])&&r!=s){let i=e[ad(r,o)];if(i&&i(n.state,n.dispatch,n))return!0}}return!1}}var dF=Object.defineProperty,gm=(t,e)=>{for(var n in e)dF(t,n,{get:e[n],enumerable:!0})};function Wc(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:s}=n,{storedMarks:r}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return r},get selection(){return o},get doc(){return s},get tr(){return o=n.selection,s=n.doc,r=n.storedMarks,n}}}var Kc=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:o}=e,{tr:s}=n,r=this.buildProps(s);return Object.fromEntries(Object.entries(t).map(([a,i])=>[a,(...c)=>{const u=i(...c)(r);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(s),u}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:o,state:s}=this,{view:r}=o,a=[],i=!!t,l=t||s.tr,c=()=>(!i&&e&&!l.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(l),a.every(d=>d===!0)),u={...Object.fromEntries(Object.entries(n).map(([d,p])=>[d,(...h)=>{const g=this.buildProps(l,e),v=p(...h)(g);return a.push(v),u}])),run:c};return u}createCan(t){const{rawCommands:e,state:n}=this,o=!1,s=t||n.tr,r=this.buildProps(s,o);return{...Object.fromEntries(Object.entries(e).map(([i,l])=>[i,(...c)=>l(...c)({...r,dispatch:void 0})])),chain:()=>this.createChain(s,o)}}buildProps(t,e=!0){const{rawCommands:n,editor:o,state:s}=this,{view:r}=o,a={tr:t,editor:o,view:r,state:Wc({state:s,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([i,l])=>[i,(...c)=>l(...c)(a)]))}};return a}},j6={};gm(j6,{blur:()=>pF,clearContent:()=>fF,clearNodes:()=>mF,command:()=>hF,createParagraphNear:()=>gF,cut:()=>bF,deleteCurrentNode:()=>vF,deleteNode:()=>jF,deleteRange:()=>kF,deleteSelection:()=>yF,enter:()=>wF,exitCode:()=>_F,extendMarkRange:()=>xF,first:()=>CF,focus:()=>DF,forEach:()=>FF,insertContent:()=>EF,insertContentAt:()=>AF,joinBackward:()=>NF,joinDown:()=>TF,joinForward:()=>RF,joinItemBackward:()=>OF,joinItemForward:()=>BF,joinTextblockBackward:()=>LF,joinTextblockForward:()=>PF,joinUp:()=>MF,keyboardShortcut:()=>$F,lift:()=>HF,liftEmptyBlock:()=>VF,liftListItem:()=>UF,newlineInCode:()=>qF,resetAttributes:()=>WF,scrollIntoView:()=>KF,selectAll:()=>GF,selectNodeBackward:()=>ZF,selectNodeForward:()=>JF,selectParentNode:()=>YF,selectTextblockEnd:()=>XF,selectTextblockStart:()=>QF,setContent:()=>e5,setMark:()=>v5,setMeta:()=>j5,setNode:()=>k5,setNodeSelection:()=>y5,setTextSelection:()=>w5,sinkListItem:()=>_5,splitBlock:()=>x5,splitListItem:()=>C5,toggleList:()=>D5,toggleMark:()=>F5,toggleNode:()=>E5,toggleWrap:()=>I5,undoInputRule:()=>S5,unsetAllMarks:()=>A5,unsetMark:()=>M5,updateAttributes:()=>T5,wrapIn:()=>N5,wrapInList:()=>R5});var pF=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),fF=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),mF=()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:s}=o;return n&&s.forEach(({$from:r,$to:a})=>{t.doc.nodesBetween(r.pos,a.pos,(i,l)=>{if(i.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),p=c.resolve(u.map(l+i.nodeSize)),m=d.blockRange(p);if(!m)return;const h=Hr(m);if(i.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(m.start,g)}(h||h===0)&&e.lift(m,h)})}),!0},hF=t=>e=>t(e),gF=()=>({state:t,dispatch:e})=>Nv(t,e),bF=(t,e)=>({editor:n,tr:o})=>{const{state:s}=n,r=s.doc.slice(t.from,t.to);o.deleteRange(t.from,t.to);const a=o.mapping.map(e);return o.insert(a,r.content),o.setSelection(new Y(o.doc.resolve(Math.max(a-1,0)))),!0},vF=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const s=t.selection.$anchor;for(let r=s.depth;r>0;r-=1)if(s.node(r).type===o.type){if(e){const i=s.before(r),l=s.after(r);t.delete(i,l).scrollIntoView()}return!0}return!1};function st(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}var jF=t=>({tr:e,state:n,dispatch:o})=>{const s=st(t,n.schema),r=e.selection.$anchor;for(let a=r.depth;a>0;a-=1)if(r.node(a).type===s){if(o){const l=r.before(a),c=r.after(a);e.delete(l,c).scrollIntoView()}return!0}return!1},kF=t=>({tr:e,dispatch:n})=>{const{from:o,to:s}=t;return n&&e.delete(o,s),!0},yF=()=>({state:t,dispatch:e})=>nm(t,e),wF=()=>({commands:t})=>t.keyboardShortcut("Enter"),_F=()=>({state:t,dispatch:e})=>l9(t,e);function bm(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function Rl(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(s=>n.strict?e[s]===t[s]:bm(e[s])?e[s].test(t[s]):e[s]===t[s]):!0}function k6(t,e,n={}){return t.find(o=>o.type===e&&Rl(Object.fromEntries(Object.keys(n).map(s=>[s,o.attrs[s]])),n))}function B1(t,e,n={}){return!!k6(t,e,n)}function vm(t,e,n){var o;if(!t||!e)return;let s=t.parent.childAfter(t.parentOffset);if((!s.node||!s.node.marks.some(u=>u.type===e))&&(s=t.parent.childBefore(t.parentOffset)),!s.node||!s.node.marks.some(u=>u.type===e)||(n=n||((o=s.node.marks[0])==null?void 0:o.attrs),!k6([...s.node.marks],e,n)))return;let a=s.index,i=t.start()+s.offset,l=a+1,c=i+s.node.nodeSize;for(;a>0&&B1([...t.parent.child(a-1).marks],e,n);)a-=1,i-=t.parent.child(a).nodeSize;for(;l<t.parent.childCount&&B1([...t.parent.child(l).marks],e,n);)c+=t.parent.child(l).nodeSize,l+=1;return{from:i,to:c}}function wo(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}var xF=(t,e={})=>({tr:n,state:o,dispatch:s})=>{const r=wo(t,o.schema),{doc:a,selection:i}=n,{$from:l,from:c,to:u}=i;if(s){const d=vm(l,r,e);if(d&&d.from<=c&&d.to>=u){const p=Y.create(a,d.from,d.to);n.setSelection(p)}}return!0},CF=t=>e=>{const n=typeof t=="function"?t(e):t;for(let o=0;o<n.length;o+=1)if(n[o](e))return!0;return!1};function jm(t){return t instanceof Y}function Cs(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function y6(t,e=null){if(!e)return null;const n=le.atStart(t),o=le.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return o;const s=n.from,r=o.to;return e==="all"?Y.create(t,Cs(0,s,r),Cs(t.content.size,s,r)):Y.create(t,Cs(e,s,r),Cs(e,s,r))}function w6(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Gc(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var DF=(t=null,e={})=>({editor:n,view:o,tr:s,dispatch:r})=>{e={scrollIntoView:!0,...e};const a=()=>{(Gc()||w6())&&o.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(o.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};if(o.hasFocus()&&t===null||t===!1)return!0;if(r&&t===null&&!jm(n.state.selection))return a(),!0;const i=y6(s.doc,t)||n.state.selection,l=n.state.selection.eq(i);return r&&(l||s.setSelection(i),l&&s.storedMarks&&s.setStoredMarks(s.storedMarks),a()),!0},FF=(t,e)=>n=>t.every((o,s)=>e(o,{...n,index:s})),EF=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),_6=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const o=e[n];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?t.removeChild(o):o.nodeType===1&&_6(o)}return t};function Li(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return _6(n)}function Ra(t,e,n){if(t instanceof Ko||t instanceof z)return t;n={slice:!0,parseOptions:{},...n};const o=typeof t=="object"&&t!==null,s=typeof t=="string";if(o)try{if(Array.isArray(t)&&t.length>0)return z.fromArray(t.map(i=>e.nodeFromJSON(i)));const a=e.nodeFromJSON(t);return n.errorOnInvalidContent&&a.check(),a}catch(r){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:r});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),Ra("",e,n)}if(s){if(n.errorOnInvalidContent){let a=!1,i="";const l=new Yf({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(a=!0,i=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?pr.fromSchema(l).parseSlice(Li(t),n.parseOptions):pr.fromSchema(l).parse(Li(t),n.parseOptions),n.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${i}`)})}const r=pr.fromSchema(e);return n.slice?r.parseSlice(Li(t),n.parseOptions).content:r.parse(Li(t),n.parseOptions)}return Ra("",e,n)}function IF(t,e,n){const o=t.steps.length-1;if(o<e)return;const s=t.steps[o];if(!(s instanceof mt||s instanceof gt))return;const r=t.mapping.maps[o];let a=0;r.forEach((i,l,c,u)=>{a===0&&(a=u)}),t.setSelection(le.near(t.doc.resolve(a),n))}var SF=t=>!("type"in t),AF=(t,e,n)=>({tr:o,dispatch:s,editor:r})=>{var a;if(s){n={parseOptions:r.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i;const l=v=>{r.emit("contentError",{editor:r,error:v,disableCollaboration:()=>{"collaboration"in r.storage&&typeof r.storage.collaboration=="object"&&r.storage.collaboration&&(r.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!r.options.enableContentCheck&&r.options.emitContentError)try{Ra(e,r.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(v){l(v)}try{i=Ra(e,r.schema,{parseOptions:c,errorOnInvalidContent:(a=n.errorOnInvalidContent)!=null?a:r.options.enableContentCheck})}catch(v){return l(v),!1}let{from:u,to:d}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},p=!0,m=!0;if((SF(i)?i:[i]).forEach(v=>{v.check(),p=p?v.isText&&v.marks.length===0:!1,m=m?v.isBlock:!1}),u===d&&m){const{parent:v}=o.doc.resolve(u);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(u-=1,d+=1)}let g;if(p){if(Array.isArray(e))g=e.map(v=>v.text||"").join("");else if(e instanceof z){let v="";e.forEach(j=>{j.text&&(v+=j.text)}),g=v}else typeof e=="object"&&e&&e.text?g=e.text:g=e;o.insertText(g,u,d)}else{g=i;const v=o.doc.resolve(u),j=v.node(),k=v.parentOffset===0,y=j.isText||j.isTextblock,w=j.content.size>0;k&&y&&w&&(u=Math.max(0,u-1)),o.replaceWith(u,d,g)}n.updateSelection&&IF(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:u,text:g}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:u,text:g})}return!0},MF=()=>({state:t,dispatch:e})=>r9(t,e),TF=()=>({state:t,dispatch:e})=>a9(t,e),NF=()=>({state:t,dispatch:e})=>Fv(t,e),RF=()=>({state:t,dispatch:e})=>Av(t,e),OF=()=>({state:t,dispatch:e,tr:n})=>{try{const o=zc(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},BF=()=>({state:t,dispatch:e,tr:n})=>{try{const o=zc(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},LF=()=>({state:t,dispatch:e})=>o9(t,e),PF=()=>({state:t,dispatch:e})=>s9(t,e);function x6(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function zF(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let o,s,r,a;for(let i=0;i<e.length-1;i+=1){const l=e[i];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))s=!0;else if(/^s(hift)?$/i.test(l))r=!0;else if(/^mod$/i.test(l))Gc()||x6()?a=!0:s=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return o&&(n=`Alt-${n}`),s&&(n=`Ctrl-${n}`),a&&(n=`Meta-${n}`),r&&(n=`Shift-${n}`),n}var $F=t=>({editor:e,view:n,tr:o,dispatch:s})=>{const r=zF(t).split(/-(?!$)/),a=r.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),i=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:r.includes("Alt"),ctrlKey:r.includes("Ctrl"),metaKey:r.includes("Meta"),shiftKey:r.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,i))});return l?.steps.forEach(c=>{const u=c.map(o.mapping);u&&s&&o.maybeStep(u)}),!0};function ns(t,e,n={}){const{from:o,to:s,empty:r}=t.selection,a=e?st(e,t.schema):null,i=[];t.doc.nodesBetween(o,s,(d,p)=>{if(d.isText)return;const m=Math.max(o,p),h=Math.min(s,p+d.nodeSize);i.push({node:d,from:m,to:h})});const l=s-o,c=i.filter(d=>a?a.name===d.node.type.name:!0).filter(d=>Rl(d.node.attrs,n,{strict:!1}));return r?!!c.length:c.reduce((d,p)=>d+p.to-p.from,0)>=l}var HF=(t,e={})=>({state:n,dispatch:o})=>{const s=st(t,n.schema);return ns(n,s,e)?i9(n,o):!1},VF=()=>({state:t,dispatch:e})=>Rv(t,e),UF=t=>({state:e,dispatch:n})=>{const o=st(t,e.schema);return j9(o)(e,n)},qF=()=>({state:t,dispatch:e})=>Tv(t,e);function Zc(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function L1(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((o,s)=>(n.includes(s)||(o[s]=t[s]),o),{})}var WF=(t,e)=>({tr:n,state:o,dispatch:s})=>{let r=null,a=null;const i=Zc(typeof t=="string"?t:t.name,o.schema);return i?(i==="node"&&(r=st(t,o.schema)),i==="mark"&&(a=wo(t,o.schema)),s&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{r&&r===c.type&&n.setNodeMarkup(u,void 0,L1(c.attrs,e)),a&&c.marks.length&&c.marks.forEach(d=>{a===d.type&&n.addMark(u,u+c.nodeSize,a.create(L1(d.attrs,e)))})})}),!0):!1},KF=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),GF=()=>({tr:t,dispatch:e})=>{if(e){const n=new qt(t.doc);t.setSelection(n)}return!0},ZF=()=>({state:t,dispatch:e})=>Iv(t,e),JF=()=>({state:t,dispatch:e})=>Mv(t,e),YF=()=>({state:t,dispatch:e})=>d9(t,e),XF=()=>({state:t,dispatch:e})=>m9(t,e),QF=()=>({state:t,dispatch:e})=>f9(t,e);function Sp(t,e,n={},o={}){return Ra(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}var e5=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:o={}}={})=>({editor:s,tr:r,dispatch:a,commands:i})=>{const{doc:l}=r;if(o.preserveWhitespace!=="full"){const c=Sp(t,s.schema,o,{errorOnInvalidContent:e??s.options.enableContentCheck});return a&&r.replaceWith(0,l.content.size,c).setMeta("preventUpdate",!n),!0}return a&&r.setMeta("preventUpdate",!n),i.insertContentAt({from:0,to:l.content.size},t,{parseOptions:o,errorOnInvalidContent:e??s.options.enableContentCheck})};function C6(t,e){const n=wo(e,t.schema),{from:o,to:s,empty:r}=t.selection,a=[];r?(t.storedMarks&&a.push(...t.storedMarks),a.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,s,l=>{a.push(...l.marks)});const i=a.find(l=>l.type.name===n.name);return i?{...i.attrs}:{}}function Jc(t,e){const n=new wv(t);return e.forEach(o=>{o.steps.forEach(s=>{n.step(s)})}),n}function t5(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function n5(t,e){const n=[];return t.descendants((o,s)=>{e(o)&&n.push({node:o,pos:s})}),n}function km(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(s,r)=>{n(s)&&o.push({node:s,pos:r})}),o}function o5(t,e){for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function Yc(t){return e=>o5(e.$from,t)}function Q(t,e,n){return t.config[e]===void 0&&t.parent?Q(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?Q(t.parent,e,n):null}):t.config[e]}function ym(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},o=Q(e,"addExtensions",n);return o?[e,...ym(o())]:e}).flat(10)}function li(t,e){const n=Ys.fromSchema(e).serializeFragment(t),s=document.implementation.createHTMLDocument().createElement("div");return s.appendChild(n),s.innerHTML}function D6(t){return typeof t=="function"}function Ee(t,e=void 0,...n){return D6(t)?e?t.bind(e)(...n):t(...n):t}function s5(t={}){return Object.keys(t).length===0&&t.constructor===Object}function Oa(t){const e=t.filter(s=>s.type==="extension"),n=t.filter(s=>s.type==="node"),o=t.filter(s=>s.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:o}}function F6(t){const e=[],{nodeExtensions:n,markExtensions:o}=Oa(t),s=[...n,...o],r={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(a=>{const i={name:a.name,options:a.options,storage:a.storage,extensions:s},l=Q(a,"addGlobalAttributes",i);if(!l)return;l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([p,m])=>{e.push({type:d,name:p,attribute:{...r,...m}})})})})}),s.forEach(a=>{const i={name:a.name,options:a.options,storage:a.storage},l=Q(a,"addAttributes",i);if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const p={...r,...d};typeof p?.default=="function"&&(p.default=p.default()),p?.isRequired&&p?.default===void 0&&delete p.default,e.push({type:a.name,name:u,attribute:p})})}),e}function ze(...t){return t.filter(e=>!!e).reduce((e,n)=>{const o={...e};return Object.entries(n).forEach(([s,r])=>{if(!o[s]){o[s]=r;return}if(s==="class"){const i=r?String(r).split(" "):[],l=o[s]?o[s].split(" "):[],c=i.filter(u=>!l.includes(u));o[s]=[...l,...c].join(" ")}else if(s==="style"){const i=r?r.split(";").map(u=>u.trim()).filter(Boolean):[],l=o[s]?o[s].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[d,p]=u.split(":").map(m=>m.trim());c.set(d,p)}),i.forEach(u=>{const[d,p]=u.split(":").map(m=>m.trim());c.set(d,p)}),o[s]=Array.from(c.entries()).map(([u,d])=>`${u}: ${d}`).join("; ")}else o[s]=r}),o},{})}function Ba(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,o)=>ze(n,o),{})}function r5(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function P1(t,e){return"style"in t?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(o===!1)return!1;const s=e.reduce((r,a)=>{const i=a.attribute.parseHTML?a.attribute.parseHTML(n):r5(n.getAttribute(a.name));return i==null?r:{...r,[a.name]:i}},{});return{...o,...s}}}}function z1(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&s5(n)?!1:n!=null))}function a5(t,e){var n;const o=F6(t),{nodeExtensions:s,markExtensions:r}=Oa(t),a=(n=s.find(c=>Q(c,"topNode")))==null?void 0:n.name,i=Object.fromEntries(s.map(c=>{const u=o.filter(j=>j.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},p=t.reduce((j,k)=>{const y=Q(k,"extendNodeSchema",d);return{...j,...y?y(c):{}}},{}),m=z1({...p,content:Ee(Q(c,"content",d)),marks:Ee(Q(c,"marks",d)),group:Ee(Q(c,"group",d)),inline:Ee(Q(c,"inline",d)),atom:Ee(Q(c,"atom",d)),selectable:Ee(Q(c,"selectable",d)),draggable:Ee(Q(c,"draggable",d)),code:Ee(Q(c,"code",d)),whitespace:Ee(Q(c,"whitespace",d)),linebreakReplacement:Ee(Q(c,"linebreakReplacement",d)),defining:Ee(Q(c,"defining",d)),isolating:Ee(Q(c,"isolating",d)),attrs:Object.fromEntries(u.map(j=>{var k,y;return[j.name,{default:(k=j?.attribute)==null?void 0:k.default,validate:(y=j?.attribute)==null?void 0:y.validate}]}))}),h=Ee(Q(c,"parseHTML",d));h&&(m.parseDOM=h.map(j=>P1(j,u)));const g=Q(c,"renderHTML",d);g&&(m.toDOM=j=>g({node:j,HTMLAttributes:Ba(j,u)}));const v=Q(c,"renderText",d);return v&&(m.toText=v),[c.name,m]})),l=Object.fromEntries(r.map(c=>{const u=o.filter(v=>v.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},p=t.reduce((v,j)=>{const k=Q(j,"extendMarkSchema",d);return{...v,...k?k(c):{}}},{}),m=z1({...p,inclusive:Ee(Q(c,"inclusive",d)),excludes:Ee(Q(c,"excludes",d)),group:Ee(Q(c,"group",d)),spanning:Ee(Q(c,"spanning",d)),code:Ee(Q(c,"code",d)),attrs:Object.fromEntries(u.map(v=>{var j,k;return[v.name,{default:(j=v?.attribute)==null?void 0:j.default,validate:(k=v?.attribute)==null?void 0:k.validate}]}))}),h=Ee(Q(c,"parseHTML",d));h&&(m.parseDOM=h.map(v=>P1(v,u)));const g=Q(c,"renderHTML",d);return g&&(m.toDOM=v=>g({mark:v,HTMLAttributes:Ba(v,u)})),[c.name,m]}));return new Yf({topNode:a,nodes:i,marks:l})}function i5(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}function wm(t){return t.sort((n,o)=>{const s=Q(n,"priority")||100,r=Q(o,"priority")||100;return s>r?-1:s<r?1:0})}function E6(t){const e=wm(ym(t)),n=i5(e.map(o=>o.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),e}function I6(t,e,n){const{from:o,to:s}=e,{blockSeparator:r=`
131
132`,textSerializers:a={}}=n||{};let i="";return t.nodesBetween(o,s,(l,c,u,d)=>{var p;l.isBlock&&c>o&&(i+=r);const m=a?.[l.type.name];if(m)return u&&(i+=m({node:l,pos:c,parent:u,index:d,range:e})),!1;l.isText&&(i+=(p=l?.text)==null?void 0:p.slice(Math.max(o,c)-c,s-c))}),i}function l5(t,e){const n={from:0,to:t.content.size};return I6(t,n,e)}function S6(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function c5(t,e){const n=st(e,t.schema),{from:o,to:s}=t.selection,r=[];t.doc.nodesBetween(o,s,i=>{r.push(i)});const a=r.reverse().find(i=>i.type.name===n.name);return a?{...a.attrs}:{}}function A6(t,e){const n=Zc(typeof e=="string"?e:e.name,t.schema);return n==="node"?c5(t,e):n==="mark"?C6(t,e):{}}function u5(t,e=JSON.stringify){const n={};return t.filter(o=>{const s=e(o);return Object.prototype.hasOwnProperty.call(n,s)?!1:n[s]=!0})}function d5(t){const e=u5(t);return e.length===1?e:e.filter((n,o)=>!e.filter((r,a)=>a!==o).some(r=>n.oldRange.from>=r.oldRange.from&&n.oldRange.to<=r.oldRange.to&&n.newRange.from>=r.newRange.from&&n.newRange.to<=r.newRange.to))}function Xc(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach((s,r)=>{const a=[];if(s.ranges.length)s.forEach((i,l)=>{a.push({from:i,to:l})});else{const{from:i,to:l}=n[r];if(i===void 0||l===void 0)return;a.push({from:i,to:l})}a.forEach(({from:i,to:l})=>{const c=e.slice(r).map(i,-1),u=e.slice(r).map(l),d=e.invert().map(c,-1),p=e.invert().map(u);o.push({oldRange:{from:d,to:p},newRange:{from:c,to:u}})})}),d5(o)}function _m(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(s=>{const r=n.resolve(t),a=vm(r,s.type);a&&o.push({mark:s,...a})}):n.nodesBetween(t,e,(s,r)=>{!s||s?.nodeSize===void 0||o.push(...s.marks.map(a=>({from:r,to:r+s.nodeSize,mark:a})))}),o}var p5=(t,e,n,o=20)=>{const s=t.doc.resolve(n);let r=o,a=null;for(;r>0&&a===null;){const i=s.node(r);i?.type.name===e?a=i:r-=1}return[a,r]};function id(t,e){return e.nodes[t]||e.marks[t]||null}function cl(t,e,n){return Object.fromEntries(Object.entries(n).filter(([o])=>{const s=t.find(r=>r.type===e&&r.name===o);return s?s.attribute.keepOnSplit:!1}))}var f5=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,(s,r,a,i)=>{var l,c;const u=((c=(l=s.type.spec).toText)==null?void 0:c.call(l,{node:s,pos:r,parent:a,index:i}))||s.textContent||"%leaf%";n+=s.isAtom&&!s.isText?u:u.slice(0,Math.max(0,o-r))}),n};function Ap(t,e,n={}){const{empty:o,ranges:s}=t.selection,r=e?wo(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>r?r.name===d.type.name:!0).find(d=>Rl(d.attrs,n,{strict:!1}));let a=0;const i=[];if(s.forEach(({$from:d,$to:p})=>{const m=d.pos,h=p.pos;t.doc.nodesBetween(m,h,(g,v)=>{if(!g.isText&&!g.marks.length)return;const j=Math.max(m,v),k=Math.min(h,v+g.nodeSize),y=k-j;a+=y,i.push(...g.marks.map(w=>({mark:w,from:j,to:k})))})}),a===0)return!1;const l=i.filter(d=>r?r.name===d.mark.type.name:!0).filter(d=>Rl(d.mark.attrs,n,{strict:!1})).reduce((d,p)=>d+p.to-p.from,0),c=i.filter(d=>r?d.mark.type!==r&&d.mark.type.excludes(r):!0).reduce((d,p)=>d+p.to-p.from,0);return(l>0?l+c:l)>=a}function m5(t,e,n={}){if(!e)return ns(t,null,n)||Ap(t,null,n);const o=Zc(e,t.schema);return o==="node"?ns(t,e,n):o==="mark"?Ap(t,e,n):!1}var h5=(t,e)=>{const{$from:n,$to:o,$anchor:s}=t.selection;if(e){const r=Yc(i=>i.type.name===e)(t.selection);if(!r)return!1;const a=t.doc.resolve(r.pos+1);return s.pos+1===a.end()}return!(o.parentOffset<o.parent.nodeSize-2||n.pos!==o.pos)},g5=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function $1(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function H1(t,e){const{nodeExtensions:n}=Oa(e),o=n.find(a=>a.name===t);if(!o)return!1;const s={name:o.name,options:o.options,storage:o.storage},r=Ee(Q(o,"group",s));return typeof r!="string"?!1:r.split(" ").includes("list")}function Qc(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var o;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((o=t.text)!=null?o:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;
vendor: 42,853 bytes, lines 132-205
132if(e){let s=!0;return t.content.forEach(r=>{s!==!1&&(Qc(r,{ignoreWhitespace:n,checkChildren:e})||(s=!1))}),s}return!1}function eu(t){return t instanceof U}function b5(t,e,n){var o;const{selection:s}=e;let r=null;if(jm(s)&&(r=s.$cursor),r){const i=(o=t.storedMarks)!=null?o:r.marks();return r.parent.type.allowsMarkType(n)&&(!!n.isInSet(i)||!i.some(c=>c.type.excludes(n)))}const{ranges:a}=s;return a.some(({$from:i,$to:l})=>{let c=i.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(i.pos,l.pos,(u,d,p)=>{if(c)return!1;if(u.isInline){const m=!p||p.type.allowsMarkType(n),h=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));c=m&&h}return!c}),c})}var v5=(t,e={})=>({tr:n,state:o,dispatch:s})=>{const{selection:r}=n,{empty:a,ranges:i}=r,l=wo(t,o.schema);if(s)if(a){const c=C6(o,l);n.addStoredMark(l.create({...c,...e}))}else i.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;o.doc.nodesBetween(u,d,(p,m)=>{const h=Math.max(m,u),g=Math.min(m+p.nodeSize,d);p.marks.find(j=>j.type===l)?p.marks.forEach(j=>{l===j.type&&n.addMark(h,g,l.create({...j.attrs,...e}))}):n.addMark(h,g,l.create(e))})});return b5(o,n,l)},j5=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),k5=(t,e={})=>({state:n,dispatch:o,chain:s})=>{const r=st(t,n.schema);let a;return n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),r.isTextblock?s().command(({commands:i})=>o1(r,{...a,...e})(n)?!0:i.clearNodes()).command(({state:i})=>o1(r,{...a,...e})(i,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},y5=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,s=Cs(t,0,o.content.size),r=U.create(o,s);e.setSelection(r)}return!0},w5=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:s,to:r}=typeof t=="number"?{from:t,to:t}:t,a=Y.atStart(o).from,i=Y.atEnd(o).to,l=Cs(s,a,i),c=Cs(r,a,i),u=Y.create(o,l,c);e.setSelection(u)}return!0},_5=t=>({state:e,dispatch:n})=>{const o=st(t,e.schema);return w9(o)(e,n)};function V1(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter(s=>e?.includes(s.type.name));t.tr.ensureMarks(o)}}var x5=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:s})=>{const{selection:r,doc:a}=e,{$from:i,$to:l}=r,c=s.extensionManager.attributes,u=cl(c,i.node().type.name,i.node().attrs);if(r instanceof U&&r.node.isBlock)return!i.parentOffset||!ho(a,i.pos)?!1:(o&&(t&&V1(n,s.extensionManager.splittableMarks),e.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,p=i.depth===0?void 0:t5(i.node(-1).contentMatchAt(i.indexAfter(-1)));let m=d&&p?[{type:p,attrs:u}]:void 0,h=ho(e.doc,e.mapping.map(i.pos),1,m);if(!m&&!h&&ho(e.doc,e.mapping.map(i.pos),1,p?[{type:p}]:void 0)&&(h=!0,m=p?[{type:p,attrs:u}]:void 0),o){if(h&&(r instanceof Y&&e.deleteSelection(),e.split(e.mapping.map(i.pos),1,m),p&&!d&&!i.parentOffset&&i.parent.type!==p)){const g=e.mapping.map(i.before()),v=e.doc.resolve(g);i.node(-1).canReplaceWith(v.index(),v.index()+1,p)&&e.setNodeMarkup(e.mapping.map(i.before()),p)}t&&V1(n,s.extensionManager.splittableMarks),e.scrollIntoView()}return h},C5=(t,e={})=>({tr:n,state:o,dispatch:s,editor:r})=>{var a;const i=st(t,o.schema),{$from:l,$to:c}=o.selection,u=o.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==i)return!1;const p=r.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==i||l.index(-2)!==l.node(-2).childCount-1)return!1;if(s){let j=z.empty;const k=l.index(-1)?1:l.index(-2)?2:3;for(let F=l.depth-k;F>=l.depth-3;F-=1)j=z.from(l.node(F).copy(j));const y=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,w={...cl(p,l.node().type.name,l.node().attrs),...e},C=((a=i.contentMatch.defaultType)==null?void 0:a.createAndFill(w))||void 0;j=j.append(z.from(i.createAndFill(null,C)||void 0));const x=l.before(l.depth-(k-1));n.replace(x,l.after(-y),new W(j,4-k,0));let _=-1;n.doc.nodesBetween(x,n.doc.content.size,(F,D)=>{if(_>-1)return!1;F.isTextblock&&F.content.size===0&&(_=D+1)}),_>-1&&n.setSelection(Y.near(n.doc.resolve(_))),n.scrollIntoView()}return!0}const m=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,h={...cl(p,d.type.name,d.attrs),...e},g={...cl(p,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const v=m?[{type:i,attrs:h},{type:m,attrs:g}]:[{type:i,attrs:h}];if(!ho(n.doc,l.pos,2))return!1;if(s){const{selection:j,storedMarks:k}=o,{splittableMarks:y}=r.extensionManager,w=k||j.$to.parentOffset&&j.$from.marks();if(n.split(l.pos,2,v).scrollIntoView(),!w||!s)return!0;const C=w.filter(x=>y.includes(x.type.name));n.ensureMarks(C)}return!0},ld=(t,e)=>{const n=Yc(a=>a.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(o===void 0)return!0;const s=t.doc.nodeAt(o);return n.node.type===s?.type&&fs(t.doc,n.pos)&&t.join(n.pos),!0},cd=(t,e)=>{const n=Yc(a=>a.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(o===void 0)return!0;const s=t.doc.nodeAt(o);return n.node.type===s?.type&&fs(t.doc,o)&&t.join(o),!0},D5=(t,e,n,o={})=>({editor:s,tr:r,state:a,dispatch:i,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:p}=s.extensionManager,m=st(t,a.schema),h=st(e,a.schema),{selection:g,storedMarks:v}=a,{$from:j,$to:k}=g,y=j.blockRange(k),w=v||g.$to.parentOffset&&g.$from.marks();if(!y)return!1;const C=Yc(x=>H1(x.type.name,d))(g);if(y.depth>=1&&C&&y.depth-C.depth<=1){if(C.node.type===m)return c.liftListItem(h);if(H1(C.node.type.name,d)&&m.validContent(C.node.content)&&i)return l().command(()=>(r.setNodeMarkup(C.pos,m),!0)).command(()=>ld(r,m)).command(()=>cd(r,m)).run()}return!n||!w||!i?l().command(()=>u().wrapInList(m,o)?!0:c.clearNodes()).wrapInList(m,o).command(()=>ld(r,m)).command(()=>cd(r,m)).run():l().command(()=>{const x=u().wrapInList(m,o),_=w.filter(F=>p.includes(F.type.name));return r.ensureMarks(_),x?!0:c.clearNodes()}).wrapInList(m,o).command(()=>ld(r,m)).command(()=>cd(r,m)).run()},F5=(t,e={},n={})=>({state:o,commands:s})=>{const{extendEmptyMarkRange:r=!1}=n,a=wo(t,o.schema);return Ap(o,a,e)?s.unsetMark(a,{extendEmptyMarkRange:r}):s.setMark(a,e)},E5=(t,e,n={})=>({state:o,commands:s})=>{const r=st(t,o.schema),a=st(e,o.schema),i=ns(o,r,n);let l;return o.selection.$anchor.sameParent(o.selection.$head)&&(l=o.selection.$anchor.parent.attrs),i?s.setNode(a,l):s.setNode(r,{...l,...n})},I5=(t,e={})=>({state:n,commands:o})=>{const s=st(t,n.schema);return ns(n,s,e)?o.lift(s):o.wrapIn(s,e)},S5=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o<n.length;o+=1){const s=n[o];let r;if(s.spec.isInputRules&&(r=s.getState(t))){if(e){const a=t.tr,i=r.transform;for(let l=i.steps.length-1;l>=0;l-=1)a.step(i.steps[l].invert(i.docs[l]));if(r.text){const l=a.doc.resolve(r.from).marks();a.replaceWith(r.from,r.to,t.schema.text(r.text,l))}else a.delete(r.from,r.to)}return!0}}return!1},A5=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:s}=n;return o||e&&s.forEach(r=>{t.removeMark(r.$from.pos,r.$to.pos)}),!0},M5=(t,e={})=>({tr:n,state:o,dispatch:s})=>{var r;const{extendEmptyMarkRange:a=!1}=e,{selection:i}=n,l=wo(t,o.schema),{$from:c,empty:u,ranges:d}=i;if(!s)return!0;if(u&&a){let{from:p,to:m}=i;const h=(r=c.marks().find(v=>v.type===l))==null?void 0:r.attrs,g=vm(c,l,h);g&&(p=g.from,m=g.to),n.removeMark(p,m,l)}else d.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,l)});return n.removeStoredMark(l),!0},T5=(t,e={})=>({tr:n,state:o,dispatch:s})=>{let r=null,a=null;const i=Zc(typeof t=="string"?t:t.name,o.schema);return i?(i==="node"&&(r=st(t,o.schema)),i==="mark"&&(a=wo(t,o.schema)),s&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let d,p,m,h;n.selection.empty?o.doc.nodesBetween(c,u,(g,v)=>{r&&r===g.type&&(m=Math.max(v,c),h=Math.min(v+g.nodeSize,u),d=v,p=g)}):o.doc.nodesBetween(c,u,(g,v)=>{v<c&&r&&r===g.type&&(m=Math.max(v,c),h=Math.min(v+g.nodeSize,u),d=v,p=g),v>=c&&v<=u&&(r&&r===g.type&&n.setNodeMarkup(v,void 0,{...g.attrs,...e}),a&&g.marks.length&&g.marks.forEach(j=>{if(a===j.type){const k=Math.max(v,c),y=Math.min(v+g.nodeSize,u);n.addMark(k,y,a.create({...j.attrs,...e}))}}))}),p&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...p.attrs,...e}),a&&p.marks.length&&p.marks.forEach(g=>{a===g.type&&n.addMark(m,h,a.create({...g.attrs,...e}))}))}),!0):!1},N5=(t,e={})=>({state:n,dispatch:o})=>{const s=st(t,n.schema);return h9(s,e)(n,o)},R5=(t,e={})=>({state:n,dispatch:o})=>{const s=st(t,n.schema);return g9(s,e)(n,o)},O5=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(o=>o.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(o=>o!==e):delete this.callbacks[t]),this}once(t,e){const n=(...o)=>{this.off(t,n),e.apply(this,o)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}},Vr=class{constructor(t){var e;this.find=t.find,this.handler=t.handler,this.undoable=(e=t.undoable)!=null?e:!0}},B5=(t,e)=>{if(bm(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(n.replaceWith)),o};function Pi(t){var e;const{editor:n,from:o,to:s,text:r,rules:a,plugin:i}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||(e=c.nodeBefore||c.nodeAfter)!=null&&e.marks.find(p=>p.type.spec.code))return!1;let u=!1;const d=f5(c)+r;return a.forEach(p=>{if(u)return;const m=B5(d,p.find);if(!m)return;const h=l.state.tr,g=Wc({state:l.state,transaction:h}),v={from:o-(m[0].length-r.length),to:s},{commands:j,chain:k,can:y}=new Kc({editor:n,state:g});p.handler({state:g,range:v,match:m,commands:j,chain:k,can:y})===null||!h.steps.length||(p.undoable&&h.setMeta(i,{transform:h,from:o,to:s,text:r}),l.dispatch(h),u=!0)}),u}function L5(t){const{editor:e,rules:n}=t,o=new xe({state:{init(){return null},apply(s,r,a){const i=s.getMeta(o);if(i)return i;const l=s.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=li(z.from(u),a.schema);const{from:d}=l,p=d+u.length;Pi({editor:e,from:d,to:p,text:u,rules:n,plugin:o})}),s.selectionSet||s.docChanged?null:r}},props:{handleTextInput(s,r,a,i){return Pi({editor:e,from:r,to:a,text:i,rules:n,plugin:o})},handleDOMEvents:{compositionend:s=>(setTimeout(()=>{const{$cursor:r}=s.state.selection;r&&Pi({editor:e,from:r.pos,to:r.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(s,r){if(r.key!=="Enter")return!1;const{$cursor:a}=s.state.selection;return a?Pi({editor:e,from:a.pos,to:a.pos,text:`
133`,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function P5(t){return Object.prototype.toString.call(t).slice(8,-1)}function zi(t){return P5(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function M6(t,e){const n={...t};return zi(t)&&zi(e)&&Object.keys(e).forEach(o=>{zi(e[o])&&zi(t[o])?n[o]=M6(t[o],e[o]):n[o]=e[o]}),n}var xm=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...Ee(Q(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...Ee(Q(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>M6(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},$t=class T6 extends xm{constructor(){super(...arguments),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new T6(n)}static handleExit({editor:e,mark:n}){const{tr:o}=e.state,s=e.state.selection.$from;if(s.pos===s.end()){const a=s.marks();if(!!!a.find(c=>c?.type.name===n.name))return!1;const l=a.find(c=>c?.type.name===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",s.pos),e.view.dispatch(o),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function z5(t){return typeof t=="number"}var N6=class{constructor(t){this.find=t.find,this.handler=t.handler}},$5=(t,e,n)=>{if(bm(e))return[...t.matchAll(e)];const o=e(t,n);return o?o.map(s=>{const r=[s.text];return r.index=s.index,r.input=t,r.data=s.data,s.replaceWith&&(s.text.includes(s.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),r.push(s.replaceWith)),r}):[]};function H5(t){const{editor:e,state:n,from:o,to:s,rule:r,pasteEvent:a,dropEvent:i}=t,{commands:l,chain:c,can:u}=new Kc({editor:e,state:n}),d=[];return n.doc.nodesBetween(o,s,(m,h)=>{var g,v,j,k,y;if((v=(g=m.type)==null?void 0:g.spec)!=null&&v.code||!(m.isText||m.isTextblock||m.isInline))return;const w=(y=(k=(j=m.content)==null?void 0:j.size)!=null?k:m.nodeSize)!=null?y:0,C=Math.max(o,h),x=Math.min(s,h+w);if(C>=x)return;const _=m.isText?m.text||"":m.textBetween(C-h,x-h,void 0,"");$5(_,r.find,a).forEach(D=>{if(D.index===void 0)return;const M=C+D.index+1,R=M+D[0].length,P={from:n.tr.mapping.map(M),to:n.tr.mapping.map(R)},E=r.handler({state:n,range:P,match:D,commands:l,chain:c,can:u,pasteEvent:a,dropEvent:i});d.push(E)})}),d.every(m=>m!==null)}var $i=null,V5=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function U5(t){const{editor:e,rules:n}=t;let o=null,s=!1,r=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,i;try{i=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{i=null}const l=({state:u,from:d,to:p,rule:m,pasteEvt:h})=>{const g=u.tr,v=Wc({state:u,transaction:g});if(!(!H5({editor:e,state:v,from:Math.max(d-1,0),to:p.b-1,rule:m,pasteEvent:h,dropEvent:i})||!g.steps.length)){try{i=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{i=null}return a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return n.map(u=>new xe({view(d){const p=h=>{var g;o=(g=d.dom.parentElement)!=null&&g.contains(h.target)?d.dom.parentElement:null,o&&($i=e)},m=()=>{$i&&($i=null)};return window.addEventListener("dragstart",p),window.addEventListener("dragend",m),{destroy(){window.removeEventListener("dragstart",p),window.removeEventListener("dragend",m)}}},props:{handleDOMEvents:{drop:(d,p)=>{if(r=o===d.dom.parentElement,i=p,!r){const m=$i;m?.isEditable&&setTimeout(()=>{const h=m.state.selection;h&&m.commands.deleteRange({from:h.from,to:h.to})},10)}return!1},paste:(d,p)=>{var m;const h=(m=p.clipboardData)==null?void 0:m.getData("text/html");return a=p,s=!!h?.includes("data-pm-slice"),!1}}},appendTransaction:(d,p,m)=>{const h=d[0],g=h.getMeta("uiEvent")==="paste"&&!s,v=h.getMeta("uiEvent")==="drop"&&!r,j=h.getMeta("applyPasteRules"),k=!!j;if(!g&&!v&&!k)return;if(k){let{text:C}=j;typeof C=="string"?C=C:C=li(z.from(C),m.schema);const{from:x}=j,_=x+C.length,F=V5(C);return l({rule:u,state:m,from:x,to:{b:_},pasteEvt:F})}const y=p.doc.content.findDiffStart(m.doc.content),w=p.doc.content.findDiffEnd(m.doc.content);if(!(!z5(y)||!w||y===w.b))return l({rule:u,state:m,from:y,to:w,pasteEvt:a})}}))}var tu=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.baseExtensions=t,this.extensions=E6(t),this.schema=a5(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:id(e.name,this.schema)},o=Q(e,"addCommands",n);return o?{...t,...o()}:t},{})}get plugins(){const{editor:t}=this;return wm([...this.extensions].reverse()).flatMap(o=>{const s={name:o.name,options:o.options,storage:this.editor.extensionStorage[o.name],editor:t,type:id(o.name,this.schema)},r=[],a=Q(o,"addKeyboardShortcuts",s);let i={};if(o.type==="mark"&&Q(o,"exitable",s)&&(i.ArrowRight=()=>$t.handleExit({editor:t,mark:o})),a){const p=Object.fromEntries(Object.entries(a()).map(([m,h])=>[m,()=>h({editor:t})]));i={...i,...p}}const l=uF(i);r.push(l);const c=Q(o,"addInputRules",s);if($1(o,t.options.enableInputRules)&&c){const p=c();if(p&&p.length){const m=L5({editor:t,rules:p}),h=Array.isArray(m)?m:[m];r.push(...h)}}const u=Q(o,"addPasteRules",s);if($1(o,t.options.enablePasteRules)&&u){const p=u();if(p&&p.length){const m=U5({editor:t,rules:p});r.push(...m)}}const d=Q(o,"addProseMirrorPlugins",s);if(d){const p=d();r.push(...p)}return r})}get attributes(){return F6(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=Oa(this.extensions);return Object.fromEntries(e.filter(n=>!!Q(n,"addNodeView")).map(n=>{const o=this.attributes.filter(i=>i.type===n.name),s={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:st(n.name,this.schema)},r=Q(n,"addNodeView",s);if(!r)return[];const a=(i,l,c,u,d)=>{const p=Ba(i,o);return r()({node:i,view:l,getPos:c,decorations:u,innerDecorations:d,editor:t,extension:n,HTMLAttributes:p})};return[n.name,a]}))}get markViews(){const{editor:t}=this,{markExtensions:e}=Oa(this.extensions);return Object.fromEntries(e.filter(n=>!!Q(n,"addMarkView")).map(n=>{const o=this.attributes.filter(i=>i.type===n.name),s={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:wo(n.name,this.schema)},r=Q(n,"addMarkView",s);if(!r)return[];const a=(i,l,c)=>{const u=Ba(i,o);return r()({mark:i,view:l,inline:c,editor:t,extension:n,HTMLAttributes:u,updateAttributes:d=>{t7(i,t,d)}})};return[n.name,a]}))}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var n;const o={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:id(e.name,this.schema)};e.type==="mark"&&((n=Ee(Q(e,"keepOnSplit",o)))==null||n)&&this.splittableMarks.push(e.name);const s=Q(e,"onBeforeCreate",o),r=Q(e,"onCreate",o),a=Q(e,"onUpdate",o),i=Q(e,"onSelectionUpdate",o),l=Q(e,"onTransaction",o),c=Q(e,"onFocus",o),u=Q(e,"onBlur",o),d=Q(e,"onDestroy",o);s&&this.editor.on("beforeCreate",s),r&&this.editor.on("create",r),a&&this.editor.on("update",a),i&&this.editor.on("selectionUpdate",i),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}};tu.resolve=E6;tu.sort=wm;tu.flatten=ym;var R6={};gm(R6,{ClipboardTextSerializer:()=>B6,Commands:()=>L6,Delete:()=>P6,Drop:()=>z6,Editable:()=>$6,FocusEvents:()=>V6,Keymap:()=>U6,Paste:()=>q6,Tabindex:()=>W6,focusEventsPluginKey:()=>H6});var me=class O6 extends xm{constructor(){super(...arguments),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new O6(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},B6=me.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new xe({key:new we("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:s}=e,{ranges:r}=s,a=Math.min(...r.map(u=>u.$from.pos)),i=Math.max(...r.map(u=>u.$to.pos)),l=S6(n);return I6(o,{from:a,to:i},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),L6=me.create({name:"commands",addCommands(){return{...j6}}}),P6=me.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,o,s;const r=()=>{var a,i,l,c;if((c=(l=(i=(a=this.editor.options.coreExtensionOptions)==null?void 0:a.delete)==null?void 0:i.filterTransaction)==null?void 0:l.call(i,t))!=null?c:t.getMeta("y-sync$"))return;const u=Jc(t.before,[t,...e]);Xc(u).forEach(m=>{u.mapping.mapResult(m.oldRange.from).deletedAfter&&u.mapping.mapResult(m.oldRange.to).deletedBefore&&u.before.nodesBetween(m.oldRange.from,m.oldRange.to,(h,g)=>{const v=g+h.nodeSize-2,j=m.oldRange.from<=g&&v<=m.oldRange.to;this.editor.emit("delete",{type:"node",node:h,from:g,to:v,newFrom:u.mapping.map(g),newTo:u.mapping.map(v),deletedRange:m.oldRange,newRange:m.newRange,partial:!j,editor:this.editor,transaction:t,combinedTransform:u})})});const p=u.mapping;u.steps.forEach((m,h)=>{var g,v;if(m instanceof xn){const j=p.slice(h).map(m.from,-1),k=p.slice(h).map(m.to),y=p.invert().map(j,-1),w=p.invert().map(k),C=(g=u.doc.nodeAt(j-1))==null?void 0:g.marks.some(_=>_.eq(m.mark)),x=(v=u.doc.nodeAt(k))==null?void 0:v.marks.some(_=>_.eq(m.mark));this.editor.emit("delete",{type:"mark",mark:m.mark,from:m.from,to:m.to,deletedRange:{from:y,to:w},newRange:{from:j,to:k},partial:!!(x||C),editor:this.editor,transaction:t,combinedTransform:u})}})};(s=(o=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:o.async)==null||s?setTimeout(r,0):r()}}),z6=me.create({name:"drop",addProseMirrorPlugins(){return[new xe({key:new we("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),$6=me.create({name:"editable",addProseMirrorPlugins(){return[new xe({key:new we("editable"),props:{editable:()=>this.editor.options.editable}})]}}),H6=new we("focusEvents"),V6=me.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new xe({key:H6,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),U6=me.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:i})=>{const{selection:l,doc:c}=i,{empty:u,$anchor:d}=l,{pos:p,parent:m}=d,h=d.parent.isTextblock&&p>0?i.doc.resolve(p-1):d,g=h.parent.type.spec.isolating,v=d.pos-d.parentOffset,j=g&&h.parent.childCount===1?v===d.pos:le.atStart(c).from===p;return!u||!m.type.isTextblock||m.textContent.length||!j||j&&d.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},s={...o},r={...o,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Gc()||x6()?r:s},addProseMirrorPlugins(){return[new xe({key:new we("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(g=>g.getMeta("composition")))return;const o=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),s=t.some(g=>g.getMeta("preventClearDocument"));if(!o||s)return;const{empty:r,from:a,to:i}=e.selection,l=le.atStart(e.doc).from,c=le.atEnd(e.doc).to;if(r||!(a===l&&i===c)||!Qc(n.doc))return;const p=n.tr,m=Wc({state:n,transaction:p}),{commands:h}=new Kc({editor:this.editor,state:m});if(h.clearNodes(),!!p.steps.length)return p}})]}}),q6=me.create({name:"paste",addProseMirrorPlugins(){return[new xe({key:new we("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),W6=me.create({name:"tabindex",addProseMirrorPlugins(){return[new xe({key:new we("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),q5=class lr{constructor(e,n,o=!1,s=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=n,this.currentNode=s}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:n,to:o},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new lr(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new lr(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new lr(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,o)=>{const s=n.isBlock&&!n.isTextblock,r=n.isAtom&&!n.isText,a=this.pos+o+(r?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const i=this.resolvedPos.doc.resolve(a);if(!s&&i.depth<=this.depth)return;const l=new lr(i,this.editor,s,s?n:null);s&&(l.actualDepth=this.depth+1),e.push(new lr(i,this.editor,s,s?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let o=null,s=this.parent;for(;s&&!o;){if(s.node.type.name===e)if(Object.keys(n).length>0){const r=s.node.attrs,a=Object.keys(n);for(let i=0;i<a.length;i+=1){const l=a[i];if(r[l]!==n[l])break}}else o=s;s=s.parent}return o}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},o=!1){let s=[];if(!this.children||this.children.length===0)return s;const r=Object.keys(n);return this.children.forEach(a=>{o&&s.length>0||(a.node.type.name===e&&r.every(l=>n[l]===a.node.attrs[l])&&s.push(a),!(o&&s.length>0)&&(s=s.concat(a.querySelectorAll(e,n,o))))}),s}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}},W5=`.ProseMirror {
134  position: relative;
135}
136
137.ProseMirror {
138  word-wrap: break-word;
139  white-space: pre-wrap;
140  white-space: break-spaces;
141  -webkit-font-variant-ligatures: none;
142  font-variant-ligatures: none;
143  font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
144}
145
146.ProseMirror [contenteditable="false"] {
147  white-space: normal;
148}
149
150.ProseMirror [contenteditable="false"] [contenteditable="true"] {
151  white-space: pre-wrap;
152}
153
154.ProseMirror pre {
155  white-space: pre-wrap;
156}
157
158img.ProseMirror-separator {
159  display: inline !important;
160  border: none !important;
161  margin: 0 !important;
162  width: 0 !important;
163  height: 0 !important;
164}
165
166.ProseMirror-gapcursor {
167  display: none;
168  pointer-events: none;
169  position: absolute;
170  margin: 0;
171}
172
173.ProseMirror-gapcursor:after {
174  content: "";
175  display: block;
176  position: absolute;
177  top: -2px;
178  width: 20px;
179  border-top: 1px solid black;
180  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
181}
182
183@keyframes ProseMirror-cursor-blink {
184  to {
185    visibility: hidden;
186  }
187}
188
189.ProseMirror-hideselection *::selection {
190  background: transparent;
191}
192
193.ProseMirror-hideselection *::-moz-selection {
194  background: transparent;
195}
196
197.ProseMirror-hideselection * {
198  caret-color: transparent;
199}
200
201.ProseMirror-focused .ProseMirror-gapcursor {
202  display: block;
203}`;function K5(t,e,n){const o=document.querySelector("style[data-tiptap-style]");if(o!==null)return o;const s=document.createElement("style");return e&&s.setAttribute("nonce",e),s.setAttribute("data-tiptap-style",""),s.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(s),s}var Cm=class extends O5{constructor(t={}){super(),this.css=null,this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:o})=>{throw o},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:o,slice:s,moved:r})=>this.options.onDrop(o,s,r)),this.on("paste",({event:o,slice:s})=>this.options.onPaste(o,s)),this.on("delete",this.options.onDelete);const e=this.createDoc(),n=y6(e,this.options.autofocus);this.editorState=dr.create({doc:e,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(t){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(t),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const t=this.editorView.dom;t?.editor&&delete t.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(t){console.warn("Failed to remove CSS element:",t)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=K5(W5,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:t=>{this.editorState=t},dispatch:t=>{this.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(t,e)=>{if(this.editorView)return this.editorView[e];if(e==="state")return this.editorState;if(e in t)return Reflect.get(t,e);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${e}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(t,e){const n=D6(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],o=this.state.reconfigure({plugins:n});return this.view.updateState(o),o}unregisterPlugin(t){if(this.isDestroyed)return;const e=this.state.plugins;let n=e;if([].concat(t).forEach(s=>{const r=typeof s=="string"?`${s}$`:s.key;n=n.filter(a=>!a.key.startsWith(r))}),e.length===n.length)return;const o=this.state.reconfigure({plugins:n});return this.view.updateState(o),o}createExtensionManager(){var t,e;const o=[...this.options.enableCoreExtensions?[$6,B6.configure({blockSeparator:(e=(t=this.options.coreExtensionOptions)==null?void 0:t.clipboardTextSerializer)==null?void 0:e.blockSeparator}),L6,V6,U6,W6,z6,q6,P6].filter(s=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[s.name]!==!1:!0):[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s?.type));this.extensionManager=new tu(o,this)}createCommandManager(){this.commandManager=new Kc({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let t;try{t=Sp(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(e.message))throw e;this.emit("contentError",{editor:this,error:e,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(n=>n.name!=="collaboration"),this.createExtensionManager()}}),t=Sp(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return t}createView(t){var e;this.editorView=new b6(t,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)==null?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.prependClass(),this.injectCSS();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(c=>{var u;return(u=this.capturedTransaction)==null?void 0:u.step(c)});return}const{state:e,transactions:n}=this.state.applyTransaction(t),o=!this.state.selection.eq(e.selection),s=n.includes(t),r=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:t,nextState:e}),!s)return;this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t,appendedTransactions:n.slice(1)}),o&&this.emit("selectionUpdate",{editor:this,transaction:t});const a=n.findLast(c=>c.getMeta("focus")||c.getMeta("blur")),i=a?.getMeta("focus"),l=a?.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:a}),l&&this.emit("blur",{editor:this,event:l.event,transaction:a}),!(t.getMeta("preventUpdate")||!n.some(c=>c.docChanged)||r.doc.eq(e.doc))&&this.emit("update",{editor:this,transaction:t,appendedTransactions:n.slice(1)})}getAttributes(t){return A6(this.state,t)}isActive(t,e){const n=typeof t=="string"?t:null,o=typeof t=="string"?e:t;return m5(this.state,n,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return li(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e=`
204
205`,textSerializers:n={}}=t||{};return l5(this.state.doc,{blockSeparator:e,textSerializers:{...S6(this.schema),...n}})}get isEmpty(){return Qc(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var t,e;return(e=(t=this.editorView)==null?void 0:t.isDestroyed)!=null?e:!0}$node(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelector(t,e))||null}$nodes(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(t,e))||null}$pos(t){const e=this.state.doc.resolve(t);return new q5(e,this)}get $doc(){return this.$pos(0)}};function Ps(t){return new Vr({find:t.find,handler:({state:e,range:n,match:o})=>{const s=Ee(t.getAttributes,void 0,o);if(s===!1||s===null)return null;const{tr:r}=e,a=o[o.length-1],i=o[0];if(a){const l=i.search(/\S/),c=n.from+i.indexOf(a),u=c+a.length;if(_m(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(g=>g===t.type&&g!==m.mark.type)).filter(m=>m.to>c).length)return null;u<n.to&&r.delete(u,n.to),c>n.from&&r.delete(n.from+l,c);const p=n.from+l+a.length;r.addMark(n.from+l,p,t.type.create(s||{})),r.removeStoredMark(t.type)}},undoable:t.undoable})}function Dm(t){return new Vr({find:t.find,handler:({state:e,range:n,match:o})=>{const s=Ee(t.getAttributes,void 0,o)||{},{tr:r}=e,a=n.from;let i=n.to;const l=t.type.create(s);if(o[1]){const c=o[0].lastIndexOf(o[1]);let u=a+c;u>i?u=i:i=u+o[1].length;const d=o[0][o[0].length-1];r.insertText(d,a+o[0].length-1),r.replaceWith(u,i,l)}else if(o[0]){const c=t.type.isInline?a:a-1;r.insert(c,t.type.create(s)).delete(r.mapping.map(a),r.mapping.map(i))}r.scrollIntoView()},undoable:t.undoable})}function Mp(t){return new Vr({find:t.find,handler:({state:e,range:n,match:o})=>{const s=e.doc.resolve(n.from),r=Ee(t.getAttributes,void 0,o)||{};if(!s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,r)},undoable:t.undoable})}function Je(t){return new Vr({find:t.find,handler:({state:e,range:n,match:o})=>{let s=t.replace,r=n.from;const a=n.to;if(o[1]){const i=o[0].lastIndexOf(o[1]);s+=o[0].slice(i+o[1].length),r+=i;const l=r-a;l>0&&(s=o[0].slice(i-l,i)+s,r=a)}e.tr.insertText(s,r,a)},undoable:t.undoable})}function Dr(t){return new Vr({find:t.find,handler:({state:e,range:n,match:o,chain:s})=>{const r=Ee(t.getAttributes,void 0,o)||{},a=e.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),c=l&&em(l,t.type,r);if(!c)return null;if(a.wrap(l,c),t.keepMarks&&t.editor){const{selection:d,storedMarks:p}=e,{splittableMarks:m}=t.editor.extensionManager,h=p||d.$to.parentOffset&&d.$from.marks();if(h){const g=h.filter(v=>m.includes(v.type.name));a.ensureMarks(g)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";s().updateAttributes(d,r).run()}const u=a.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&fs(a.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,u))&&a.join(n.from-1)},undoable:t.undoable})}function G5(t,e){const{selection:n}=t,{$from:o}=n;if(n instanceof U){const r=o.index();return o.parent.canReplaceWith(r,r+1,e)}let s=o.depth;for(;s>=0;){const r=o.index(s);if(o.node(s).contentMatchAt(r).matchType(e))return!0;s-=1}return!1}function K6(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var Z5={};gm(Z5,{createAtomBlockMarkdownSpec:()=>J5,createBlockMarkdownSpec:()=>Y5,createInlineMarkdownSpec:()=>e7,parseAttributes:()=>Fm,parseIndentedBlocks:()=>Tp,renderNestedMarkdownContent:()=>Im,serializeAttributes:()=>Em});function Fm(t){if(!t?.trim())return{};const e={},n=[],o=t.replace(/["']([^"']*)["']/g,c=>(n.push(c),`__QUOTED_${n.length-1}__`)),s=o.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(s){const c=s.map(u=>u.trim().slice(1));e.class=c.join(" ")}const r=o.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);r&&(e.id=r[1]);const a=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(o.matchAll(a)).forEach(([,c,u])=>{var d;const p=parseInt(((d=u.match(/__QUOTED_(\d+)__/))==null?void 0:d[1])||"0",10),m=n[p];m&&(e[c]=m.slice(1,-1))});const l=o.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return l&&l.split(/\s+/).filter(Boolean).forEach(u=>{u.match(/^[a-zA-Z][\w-]*$/)&&(e[u]=!0)}),e}function Em(t){if(!t||Object.keys(t).length===0)return"";const e=[];return t.class&&String(t.class).split(/\s+/).filter(Boolean).forEach(o=>e.push(`.${o}`)),t.id&&e.push(`#${t.id}`),Object.entries(t).forEach(([n,o])=>{n==="class"||n==="id"||(o===!0?e.push(n):o!==!1&&o!=null&&e.push(`${n}="${String(o)}"`))}),e.join(" ")}function J5(t){const{nodeName:e,name:n,parseAttributes:o=Fm,serializeAttributes:s=Em,defaultAttributes:r={},requiredAttributes:a=[],allowedAttributes:i}=t,l=n||e,c=u=>{if(!i)return u;const d={};return i.forEach(p=>{p in u&&(d[p]=u[p])}),d};return{parseMarkdown:(u,d)=>{const p={...r,...u.attributes};return d.createNode(e,p,[])},markdownTokenizer:{name:e,level:"block",start(u){var d;const p=new RegExp(`^:::${l}(?:\\s|$)`,"m"),m=(d=u.match(p))==null?void 0:d.index;return m!==void 0?m:-1},tokenize(u,d,p){const m=new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),h=u.match(m);if(!h)return;const g=h[1]||"",v=o(g);if(!a.find(k=>!(k in v)))return{type:e,raw:h[0],attributes:v}}},renderMarkdown:u=>{const d=c(u.attrs||{}),p=s(d),m=p?` {${p}}`:"";return`:::${l}${m} :::`}}}function Y5(t){const{nodeName:e,name:n,getContent:o,parseAttributes:s=Fm,serializeAttributes:r=Em,defaultAttributes:a={},content:i="block",allowedAttributes:l}=t,c=n||e,u=d=>{if(!l)return d;const p={};return l.forEach(m=>{m in d&&(p[m]=d[m])}),p};return{parseMarkdown:(d,p)=>{let m;if(o){const g=o(d);m=typeof g=="string"?[{type:"text",text:g}]:g}else i==="block"?m=p.parseChildren(d.tokens||[]):m=p.parseInline(d.tokens||[]);const h={...a,...d.attributes};return p.createNode(e,h,m)},markdownTokenizer:{name:e,level:"block",start(d){var p;const m=new RegExp(`^:::${c}`,"m"),h=(p=d.match(m))==null?void 0:p.index;return h!==void 0?h:-1},tokenize(d,p,m){var h;const g=new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),v=d.match(g);if(!v)return;const[j,k=""]=v,y=s(k);let w=1;const C=j.length;let x="";const _=/^:::([\w-]*)(\s.*)?/gm,F=d.slice(C);for(_.lastIndex=0;;){const D=_.exec(F);if(D===null)break;const M=D.index,R=D[1];if(!((h=D[2])!=null&&h.endsWith(":::"))){if(R)w+=1;else if(w-=1,w===0){const P=F.slice(0,M);x=P.trim();const E=d.slice(0,C+M+D[0].length);let S=[];
205if(x)if(i==="block")for(S=m.blockTokens(P),S.forEach(I=>{I.text&&(!I.tokens||I.tokens.length===0)&&(I.tokens=m.inlineTokens(I.text))});S.length>0;){const I=S[S.length-1];if(I.type==="paragraph"&&(!I.text||I.text.trim()===""))S.pop();else break}else S=m.inlineTokens(x);return{type:e,raw:E,attributes:y,content:x,tokens:S}}}}}},renderMarkdown:(d,p)=>{const m=u(d.attrs||{}),h=r(m),g=h?` {${h}}`:"",v=p.renderChildren(d.content||[],`
206
207`);return`:::${c}${g}
208
209${v}
210
211:::`}}}function X5(t){if(!t.trim())return{};const e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let o=n.exec(t);for(;o!==null;){const[,s,r,a]=o;e[s]=r||a,o=n.exec(t)}return e}function Q5(t){return Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e}="${n}"`).join(" ")}function e7(t){const{nodeName:e,name:n,getContent:o,parseAttributes:s=X5,serializeAttributes:r=Q5,defaultAttributes:a={},selfClosing:i=!1,allowedAttributes:l}=t,c=n||e,u=p=>{if(!l)return p;const m={};return l.forEach(h=>{h in p&&(m[h]=p[h])}),m},d=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(p,m)=>{const h={...a,...p.attributes};if(i)return m.createNode(e,h);const g=o?o(p):p.content||"";return g?m.createNode(e,h,[m.createTextNode(g)]):m.createNode(e,h,[])},markdownTokenizer:{name:e,level:"inline",start(p){const m=i?new RegExp(`\\[${d}\\s*[^\\]]*\\]`):new RegExp(`\\[${d}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${d}\\]`),h=p.match(m),g=h?.index;return g!==void 0?g:-1},tokenize(p,m,h){const g=i?new RegExp(`^\\[${d}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${d}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${d}\\]`),v=p.match(g);if(!v)return;let j="",k="";if(i){const[,w]=v;k=w}else{const[,w,C]=v;k=w,j=C||""}const y=s(k.trim());return{type:e,raw:v[0],content:j.trim(),attributes:y}}},renderMarkdown:p=>{let m="";o?m=o(p):p.content&&p.content.length>0&&(m=p.content.filter(j=>j.type==="text").map(j=>j.text).join(""));const h=u(p.attrs||{}),g=r(h),v=g?` ${g}`:"";return i?`[${c}${v}]`:`[${c}${v}]${m}[/${c}]`}}}function Tp(t,e,n){var o,s,r,a;const i=t.split(`
212`),l=[];let c="",u=0;const d=e.baseIndentSize||2;for(;u<i.length;){const p=i[u],m=p.match(e.itemPattern);if(!m){if(l.length>0)break;if(p.trim()===""){u+=1;continue}else return}const h=e.extractItemData(m),{indentLevel:g,mainContent:v}=h;c=`${c}${p}
213`;const j=[v];for(u+=1;u<i.length;){const C=i[u];if(C.trim()===""){const _=i.slice(u+1).findIndex(M=>M.trim()!=="");if(_===-1)break;if((((s=(o=i[u+1+_].match(/^(\s*)/))==null?void 0:o[1])==null?void 0:s.length)||0)>g){j.push(C),c=`${c}${C}
214`,u+=1;continue}else break}if((((a=(r=C.match(/^(\s*)/))==null?void 0:r[1])==null?void 0:a.length)||0)>g)j.push(C),c=`${c}${C}
215`,u+=1;else break}let k;const y=j.slice(1);if(y.length>0){const C=y.map(x=>x.slice(g+d)).join(`
216`);C.trim()&&(e.customNestedParser?k=e.customNestedParser(C):k=n.blockTokens(C))}const w=e.createToken(h,k);l.push(w)}if(l.length!==0)return{items:l,raw:c.trim()}}function Im(t,e,n,o){if(!t||!Array.isArray(t.content))return"";const s=typeof n=="function"?n(o):n,[r,...a]=t.content,i=e.renderChildren([r]),l=[`${s}${i}`];return a&&a.length>0&&a.forEach(c=>{const u=e.renderChildren([c]);if(u){const d=u.split(`
217`).map(p=>p?e.indent(p):"").join(`
218`);l.push(d)}}),l.join(`
219`)}function t7(t,e,n={}){const{state:o}=e,{doc:s,tr:r}=o,a=t;s.descendants((i,l)=>{const c=r.mapping.map(l),u=r.mapping.map(l)+i.nodeSize;let d=null;if(i.marks.forEach(m=>{if(m!==a)return!1;d=m}),!d)return;let p=!1;if(Object.keys(n).forEach(m=>{n[m]!==d.attrs[m]&&(p=!0)}),p){const m=t.type.create({...t.attrs,...n});r.removeMark(c,u,t.type),r.addMark(c,u,m)}}),r.docChanged&&e.view.dispatch(r)}var De=class G6 extends xm{constructor(){super(...arguments),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new G6(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},n7=class{constructor(t,e,n){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.innerDecorations=e.innerDecorations,this.view=e.view,this.HTMLAttributes=e.HTMLAttributes,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,n,o,s,r,a,i;const{view:l}=this.editor,c=t.target,u=c.nodeType===3?(e=c.parentElement)==null?void 0:e.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||(n=this.contentDOM)!=null&&n.contains(c)||!u)return;let d=0,p=0;if(this.dom!==u){const k=this.dom.getBoundingClientRect(),y=u.getBoundingClientRect(),w=(s=t.offsetX)!=null?s:(o=t.nativeEvent)==null?void 0:o.offsetX,C=(a=t.offsetY)!=null?a:(r=t.nativeEvent)==null?void 0:r.offsetY;d=y.x-k.x+w,p=y.y-k.y+C}const m=this.dom.cloneNode(!0);try{const k=this.dom.getBoundingClientRect();m.style.width=`${Math.round(k.width)}px`,m.style.height=`${Math.round(k.height)}px`,m.style.boxSizing="border-box",m.style.pointerEvents="none"}catch{}let h=null;try{h=document.createElement("div"),h.style.position="absolute",h.style.top="-9999px",h.style.left="-9999px",h.style.pointerEvents="none",h.appendChild(m),document.body.appendChild(h),(i=t.dataTransfer)==null||i.setDragImage(m,d,p)}finally{h&&setTimeout(()=>{try{h?.remove()}catch{}},0)}const g=this.getPos();if(typeof g!="number")return;const v=U.create(l.state.doc,g),j=l.state.tr.setSelection(v);l.dispatch(j)}stopEvent(t){var e;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});const n=t.target;if(!(this.dom.contains(n)&&!((e=this.contentDOM)!=null&&e.contains(n))))return!1;const s=t.type.startsWith("drag"),r=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!r&&!s)return!0;const{isEditable:i}=this.editor,{isDragging:l}=this,c=!!this.node.type.spec.draggable,u=U.isSelectable(this.node),d=t.type==="copy",p=t.type==="paste",m=t.type==="cut",h=t.type==="mousedown";if(!c&&u&&s&&t.target===this.dom&&t.preventDefault(),c&&s&&!l&&t.target===this.dom)return t.preventDefault(),!1;if(c&&i&&!l&&h){const g=n.closest("[data-drag-handle]");g&&(this.dom===g||this.dom.contains(g))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||r||d||p||m||h&&u)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(Gc()||w6())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes
219)].every(n=>n.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:e})=>{const n=this.getPos();return typeof n!="number"?!1:(e.setNodeMarkup(n,void 0,{...this.node.attrs,...t}),!0)})}deleteNode(){const t=this.getPos();if(typeof t!="number")return;const e=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:e})}};function ss(t){return new N6({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:s})=>{const r=Ee(t.getAttributes,void 0,o,s);if(r===!1||r===null)return null;const{tr:a}=e,i=o[o.length-1],l=o[0];let c=n.to;if(i){const u=l.search(/\S/),d=n.from+l.indexOf(i),p=d+i.length;if(_m(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(v=>v===t.type&&v!==h.mark.type)).filter(h=>h.to>d).length)return null;p<n.to&&a.delete(p,n.to),d>n.from&&a.delete(n.from+u,d),c=n.from+u+i.length,a.addMark(n.from+u,c,t.type.create(r||{})),a.removeStoredMark(t.type)}}})}var ud,U1;function o7(){return U1||(U1=1,ud=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var o,s,r;if(Array.isArray(e)){if(o=e.length,o!=n.length)return!1;for(s=o;s--!==0;)if(!t(e[s],n[s]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(s of e.entries())if(!n.has(s[0]))return!1;for(s of e.entries())if(!t(s[1],n.get(s[0])))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(s of e.entries())if(!n.has(s[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(o=e.length,o!=n.length)return!1;for(s=o;s--!==0;)if(e[s]!==n[s])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(r=Object.keys(e),o=r.length,o!==Object.keys(n).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,r[s]))return!1;for(s=o;s--!==0;){var a=r[s];if(!(a==="_owner"&&e.$$typeof)&&!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}),ud}var s7=o7();const r7=zf(s7);var a7=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},i7=({contentComponent:t})=>{const e=A2.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return f.jsx(f.Fragment,{children:Object.values(e)})};function l7(){const t=new Set;let e={};return{subscribe(n){return t.add(n),()=>{t.delete(n)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(n,o){e={...e,[n]:g_.createPortal(o.reactElement,o.element,n)},t.forEach(s=>s())},removeRenderer(n){const o={...e};delete o[n],e=o,t.forEach(s=>s())}}}var c7=class extends mn.Component{constructor(t){var e;super(t),this.editorContentRef=mn.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!((e=t.editor)!=null&&e.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const t=this.props.editor;if(t&&!t.isDestroyed&&t.options.element){if(t.contentComponent)return;const e=this.editorContentRef.current;e.append(t.view.dom),t.setOptions({element:e}),t.contentComponent=l7(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(n=>n.hasContentComponentInitialized?n:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var t;const e=this.props.editor;if(e){this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null;try{if(!((t=e.view.dom)!=null&&t.firstChild))return;const n=document.createElement("div");n.append(e.view.dom),e.setOptions({element:n})}catch{}}}render(){const{editor:t,innerRef:e,...n}=this.props;return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:a7(e,this.editorContentRef),...n}),t?.contentComponent&&f.jsx(i7,{contentComponent:t.contentComponent})]})}},u7=b.forwardRef((t,e)=>{const n=mn.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return mn.createElement(c7,{key:n,innerRef:e,...t})}),d7=mn.memo(u7),p7=typeof window<"u"?b.useLayoutEffect:b.useEffect,f7=class{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0}
219,this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){const e=()=>{this.transactionNumber+=1,this.subscribers.forEach(o=>o())},n=this.editor;return n.on("transaction",e),()=>{n.off("transaction",e)}}}};function Sm(t){var e;const[n]=b.useState(()=>new f7(t.editor)),o=h_.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!=null?e:r7);return p7(()=>n.watch(t.editor),[t.editor,n]),b.useDebugValue(o),o}var m7=!1,Np=typeof window>"u",h7=Np||!!(typeof window<"u"&&window.next),g7=class Z6{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?Np||h7?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const e={...this.options.current,onBeforeCreate:(...o)=>{var s,r;return(r=(s=this.options.current).onBeforeCreate)==null?void 0:r.call(s,...o)},onBlur:(...o)=>{var s,r;return(r=(s=this.options.current).onBlur)==null?void 0:r.call(s,...o)},onCreate:(...o)=>{var s,r;return(r=(s=this.options.current).onCreate)==null?void 0:r.call(s,...o)},onDestroy:(...o)=>{var s,r;return(r=(s=this.options.current).onDestroy)==null?void 0:r.call(s,...o)},onFocus:(...o)=>{var s,r;return(r=(s=this.options.current).onFocus)==null?void 0:r.call(s,...o)},onSelectionUpdate:(...o)=>{var s,r;return(r=(s=this.options.current).onSelectionUpdate)==null?void 0:r.call(s,...o)},onTransaction:(...o)=>{var s,r;return(r=(s=this.options.current).onTransaction)==null?void 0:r.call(s,...o)},onUpdate:(...o)=>{var s,r;return(r=(s=this.options.current).onUpdate)==null?void 0:r.call(s,...o)},onContentError:(...o)=>{var s,r;return(r=(s=this.options.current).onContentError)==null?void 0:r.call(s,...o)},onDrop:(...o)=>{var s,r;return(r=(s=this.options.current).onDrop)==null?void 0:r.call(s,...o)},onPaste:(...o)=>{var s,r;return(r=(s=this.options.current).onPaste)==null?void 0:r.call(s,...o)},onDelete:(...o)=>{var s,r;return(r=(s=this.options.current).onDelete)==null?void 0:r.call(s,...o)}};return new Cm(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(o=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(o)?!0:o==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((s,r)=>{var a;return s===((a=n.extensions)==null?void 0:a[r])}):e[o]===n[o])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?Z6.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}
219):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((o,s)=>o===e[s]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function b7(t={},e=[]){const n=b.useRef(t);n.current=t;const[o]=b.useState(()=>new g7(n)),s=A2.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return b.useDebugValue(s),b.useEffect(o.onRender(e)),Sm({editor:s,selector:({transactionNumber:r})=>t.shouldRerenderOnTransaction===!1||t.shouldRerenderOnTransaction===void 0?null:t.immediatelyRender&&r===0?0:r+1}),s}var nu=b.createContext({editor:null});nu.Consumer;var v7=()=>b.useContext(nu),J6=b.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),j7=()=>b.useContext(J6),k7=mn.forwardRef((t,e)=>{const{onDragStart:n}=j7(),o=t.as||"div";return f.jsx(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});function q1(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function W1(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.forward_ref)"||t.$$typeof.description==="react.forward_ref"))}function y7(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.memo)"||t.$$typeof.description==="react.memo"))}function w7(t){if(q1(t)||W1(t))return!0;if(y7(t)){const e=t.type;if(e)return q1(e)||W1(e)}return!1}function _7(){try{if(b.version)return parseInt(b.version.split(".")[0],10)>=19}catch{}return!1}var x7=class{constructor(t,{editor:e,props:n={},as:o="div",className:s=""}){this.ref=null,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=t,this.editor=e,this.props=n,this.element=document.createElement(o),this.element.classList.add("react-renderer"),s&&this.element.classList.add(...s.split(" ")),this.editor.isInitialized?Ns.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.render()})}render(){var t;const e=this.component,n=this.props,o=this.editor,s=_7(),r=w7(e),a={...n};a.ref&&!(s||r)&&delete a.ref,!a.ref&&(s||r)&&(a.ref=i=>{this.ref=i}),this.reactElement=f.jsx(e,{...a}),(t=o?.contentComponent)==null||t.setRenderer(this.id,this)}updateProps(t={}){this.props={...this.props,...t},this.render()}destroy(){var t;const e=this.editor;(t=e?.contentComponent)==null||t.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(t){Object.keys(t).forEach(e=>{this.element.setAttribute(e,t[e])})}};mn.createContext({markViewContentRef:()=>{}});var C7=class extends n7{constructor(t,e,n){if(super(t,e,n),!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const o=this.dom.querySelector("[data-node-view-content]");if(!o)return;o.appendChild(this.contentDOMElement)}}mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(l={})=>this.updateAttributes(l),deleteNode:()=>this.deleteNode(),ref:b.createRef()};if(!this.component.displayName){const l=c=>c.charAt(0).toUpperCase()+c.substring(1);this.component.displayName=l(this.extension.name)}const o={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:l=>{l&&this.contentDOMElement&&l.firstChild!==this.contentDOMElement&&(l.hasAttribute("data-node-view-wrapper")&&l.removeAttribute("data-node-view-wrapper"),l.appendChild(this.contentDOMElement))}},s=this.component,r=b.memo(l=>f.jsx(J6.Provider,{value:o,children:b.createElement(s,l)}));r.displayName="ReactNodeView";let a=this.node.isInline?"span":"div";this.options.as&&(a=this.options.as);const{className:i=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new x7(r,{editor:this.editor,props:t,as:a,className:`node-${this.node.type.n
219ame} ${i}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var t;if(this.renderer.element.firstElementChild&&!((t=this.renderer.element.firstElementChild)!=null&&t.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){const{from:t,to:e}=this.editor.state.selection,n=this.getPos();if(typeof n=="number")if(t<=n&&e>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(t,e,n){const o=s=>{this.renderer.updateProps(s),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(t.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const s=this.node,r=this.decorations,a=this.innerDecorations;return this.node=t,this.decorations=e,this.innerDecorations=n,this.options.update({oldNode:s,oldDecorations:r,newNode:t,newDecorations:e,oldInnerDecorations:a,innerDecorations:n,updateProps:()=>o({node:t,decorations:e,innerDecorations:n})})}return t===this.node&&this.decorations===e&&this.innerDecorations===n||(this.node=t,this.decorations=e,this.innerDecorations=n,o({node:t,decorations:e,innerDecorations:n})),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}updateElementAttributes(){if(this.options.attrs){let t={};if(typeof this.options.attrs=="function"){const e=this.editor.extensionManager.attributes,n=Ba(this.node,e);t=this.options.attrs({node:this.node,HTMLAttributes:n})}else t=this.options.attrs;this.renderer.updateAttributes(t)}}};function D7(t,e){return n=>n.editor.contentComponent?new C7(t,n,e):{}}var Ol=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...o}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,o,n]},F7=/^\s*>\s$/,E7=De.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return Ol("blockquote",{...ze(this.options.HTMLAttributes,t),children:Ol("slot",{})})},parseMarkdown:(t,e)=>e.createNode("blockquote",void 0,e.parseChildren(t.tokens||[])),renderMarkdown:(t,e)=>{if(!t.content)return"";const n=[];return t.content.forEach(s=>{const a=e.renderChildren(s).split(`
220`).map(i=>`> ${i}`).join(`
221`);n.push(a)}),n.flatMap(s=>[s,"> "]).slice(0,-1).join(`
222`)},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}}
vendor: 8,866 bytes, lines 222-243
222,addInputRules(){return[Dr({find:F7,type:this.type})]}}),I7=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,S7=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,A7=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,M7=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,T7=$t.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return Ol("strong",{...ze(this.options.HTMLAttributes,t),children:Ol("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Ps({find:I7,type:this.type}),Ps({find:A7,type:this.type})]},addPasteRules(){return[ss({find:S7,type:this.type}),ss({find:M7,type:this.type})]}}),N7=/(^|[^`])`([^`]+)`(?!`)$/,R7=/(^|[^`])`([^`]+)`(?!`)/g,O7=$t.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",ze(this.options.HTMLAttributes,t),0]},markdownTokenName:"codespan",parseMarkdown:(t,e)=>e.applyMark("code",[{type:"text",text:t.text||""}]),renderMarkdown:(t,e)=>t.content?`\`${e.renderChildren(t.content)}\``:"",addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Ps({find:N7,type:this.type})]},addPasteRules(){return[ss({find:R7,type:this.type})]}}),dd=4,B7=/^```([a-z]+)?[\s\n]$/,L7=/^~~~([a-z]+)?[\s\n]$/,P7=De.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:dd,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options;if(!n)return null;const r=[...((e=t.firstElementChild)==null?void 0:e.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0];return r||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",ze(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(t,e)=>{var n;return((n=t.raw)==null?void 0:n.startsWith("```"))===!1&&t.codeBlockStyle!=="indented"?[]:e.createNode("codeBlock",{language:t.lang||null},t.text?[e.createTextNode(t.text)]:[])},renderMarkdown:(t,e)=>{var n;let o="";const s=((n=t.attrs)==null?void 0:n.language)||"";return t.content?o=[`\`\`\`${s}`,e.renderChildren(t.content),"```"].join(`
223`):o=`\`\`\`${s}
224
225\`\`\``,o},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;const n=(e=this.options.tabSize)!=null?e:dd,{state:o}=t,{selection:s}=o,{$from:r,empty:a}=s;if(r.parent.type!==this.type)return!1;const i=" ".repeat(n);return a?t.commands.insertContent(i):t.commands.command(({tr:l})=>{const{from:c,to:u}=s,m=o.doc.textBetween(c,u,`
226`,`
227`).split(`
228`).map(h=>i+h).join(`
229`);return l.replaceWith(c,u,o.schema.text(m)),!0})},"Shift-Tab":({editor:t})=>{var e;if(!this.options.enableTabIndentation)return!1;const n=(e=this.options.tabSize)!=null?e:dd,{state:o}=t,{selection:s}=o,{$from:r,empty:a}=s;return r.parent.type!==this.type?!1:a?t.commands.command(({tr:i})=>{var l;const{pos:c}=r,u=r.start(),d=r.end(),m=o.doc.textBetween(u,d,`
230`,`
231`).split(`
232`);let h=0,g=0;const v=c-u;for(let x=0;x<m.length;x+=1){if(g+m[x].length>=v){h=x;break}g+=m[x].length+1}const k=((l=m[h].match(/^ */))==null?void 0:l[0])||"",y=Math.min(k.length,n);if(y===0)return!0;let w=u;for(let x=0;x<h;x+=1)w+=m[x].length+1;return i.delete(w,w+y),c-w<=y&&i.setSelection(Y.create(i.doc,w)),!0}):t.commands.command(({tr:i})=>{const{from:l,to:c}=s,p=o.doc.textBetween(l,c,`
233`,`
234`).split(`
235`).map(m=>{var h;const g=((h=m.match(/^ */))==null?void 0:h[0])||"",v=Math.min(g.length,n);return m.slice(v)}).join(`
236`);return i.replaceWith(l,c,o.schema.text(p)),!0})},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:o,empty:s}=n;if(!s||o.parent.type!==this.type)return!1;const r=o.parentOffset===o.parent.nodeSize-2,a=o.parent.textContent.endsWith(`
237
238`);return!r||!a?!1:t.chain().command(({tr:i})=>(i.delete(o.pos-2,o.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:o}=e,{$from:s,empty:r}=n;if(!r||s.parent.type!==this.type||!(s.parentOffset===s.parent.nodeSize-2))return!1;const i=s.after();return i===void 0?!1:o.nodeAt(i)?t.commands.command(({tr:c})=>(c.setSelection(le.near(o.resolve(i))),!0)):t.commands.exitCode()}}},addInputRules(){return[Mp({find:B7,type:this.type,getAttributes:t=>({language:t[1]})}),Mp({find:L7,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new xe({key:new we("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),o=e.clipboardData.getData("vscode-editor-data"),s=o?JSON.parse(o):void 0,r=s?.mode;if(!n||!r)return!1;const{tr:a,schema:i}=t.state,l=i.text(n.replace(/\r\n?/g,`
239`));return a.replaceSelectionWith(this.type.create({language:r},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(Y.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),t.dispatch(a),!0}}})]}}),z7=De.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
240
241`):""}),$7=De.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",ze(this.options.HTMLAttributes,t)]},renderText(){return`
242`},renderMarkdown:(t,e)=>e.indent(`
243`),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:s,storedMarks:r}=n;if(s.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:i}=o.extensionManager,l=r||s.$to.parentOffset&&s.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&a){const d=l.filter(p=>i.includes(p.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),H7=De.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,ze(this.options.HTMLAttributes,e),0]},parseMarkdown:(t,e)=>e.createNode("heading",{level:t.depth||1},e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>{var n;const o=(n=t.attrs)!=null&&n.level?parseInt(t.attrs.level,10):1,s="#".repeat(o);return t.content?`${s} ${e.renderChildren(t.content)}`:""},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>Mp({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}}
243)\\s$`),type:this.type,getAttributes:{level:t}}))}}),Y6=De.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",ze(this.options.HTMLAttributes,t)]},markdownTokenName:"hr",parseMarkdown:(t,e)=>e.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!G5(e,e.schema.nodes[this.name]))return!1;const{selection:n}=e,{$to:o}=n,s=t();return eu(n)?s.insertContentAt(o.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({state:r,tr:a,dispatch:i})=>{if(i){const{$to:l}=a.selection,c=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?a.setSelection(Y.create(a.doc,l.pos+1)):l.nodeAfter.isBlock?a.setSelection(U.create(a.doc,l.pos)):a.setSelection(Y.create(a.doc,l.pos));else{const u=r.schema.nodes[this.options.nextNodeType]||l.parent.type.contentMatch.defaultType,d=u?.create();d&&(a.insert(c,d),a.setSelection(Y.create(a.doc,c+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Dm({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.t
vendor: 1,042 bytes, line 243
243ype})]}}),V7=Y6,U7=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,q7=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,W7=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,K7=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,G7=$t.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",ze(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},markdownTokenName:"em",parseMarkdown:(t,e)=>e.applyMark("italic",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`*${e.renderChildren(t)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Ps({find:U7,type:this.t
243ype}),Ps({find:W7,type:this.type})]},addPasteRules(){return[ss({find:q7,type:this.type}),ss({find:K7,type:this.type})]}});const Z7="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yac
243hts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",J7="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Rp="numeric",Op="ascii",Bp="alpha",ba="asciinumeric",ua="alphanumeric",Lp="domain",X6="emoji",Y7="scheme",X7="slashscheme",pd="whitespace";function Q7(t,e){return t in e||(e[t]=[]),e[t]}function Ds(t,e,n){e[Rp]&&(e[ba]=!0,e[ua]=!0),e[Op]&&(e[ba]=!0,e[Bp]=!0),e[ba]&&(e[ua]=!0),e[Bp]&&(e[ua]=!0),e[ua]&&(e[Lp]=!0),e[X6]&&(e[Lp]=!0);for(const o in e){const s=Q7(o,n);s.indexOf(t)<0&&s.push(t)}}function e8(t,e){const n={};for(const o in e)e[o].indexOf(t)>=0&&(n[o]=!0);return n}function Vt(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}Vt.groups={};Vt.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let o=0;o<e.jr.length;o++){const s=e.jr[o][0],r=e.jr[o][1];if(r&&s.test(t))return r}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,o){for(let s=0;s<t.length;s++)this.tt(t[s],e,n,o)},tr(t,e,n,o){o=o||Vt.groups;let s;return e&&e.j?s=e:(s=new Vt(e),n&&o&&Ds(e,n,o)),this.jr.push([t,s]),s},ts(t,e,n,o){let s=this;const r=t.length;if(!r)return s;for(let a=0;a<r-1;a++)s=s.tt(t[a]);return s.tt(t[r-1],e,n,o)},tt(t,e,n,o){o=o||Vt.groups;const s=this;if(e&&e.j)return s.j[t]=e,e;const r=e;let a,i=s.go(t);if(i?(a=new Vt,Object.assign(a.j,i.j),a.jr.push.apply(a.jr,i.jr),a.jd=i.jd,a.t=i.t):a=new Vt,r){if(o)if(a.t&&typeof a.t=="string"){const l=Object.assign(e8(a.t,o),n);Ds(r,l,o)}else n&&Ds(r,n,o);a.t=r}return s.j[t]=a,a}};const ue=(t,e,n,o,s)=>t.ta(e,n,o,s),qe=(t,e,n,o,s)=>t.tr(e,n,o,s),K1=(t,e,n,o,s)=>t.ts(e,n,o,s),H=(t,e,n,o,s)=>t.tt(e,n,o,s),ao="WORD",Pp="UWORD",Q6="ASCIINUMERICAL",e4="ALPHANUMERICAL",La="LOCALHOST",zp="TLD",$p="UTLD",ul="SCHEME",cr="SLASH_SCHEME",Am="NUM",Hp="WS",Mm="NL",va="OPENBRACE",ja="CLOSEBRACE",Bl="OPENBRACKET",Ll="CLOSEBRACKET",Pl="OPENPAREN",zl="CLOSEPAREN",$l="OPENANGLEBRACKET",Hl="CLOSEANGLEBRACKET",Vl="FULLWIDTHLEFTPAREN",Ul="FULLWIDTHRIGHTPAREN",ql="LEFTCORNERBRACKET",Wl="RIGHTCORNERBRACKET",Kl="LEFTWHITECORNERBRACKET",Gl="RIGHTWHITECORNERBRACKET",Zl="FULLWIDTHLESSTHAN",Jl="FULLWIDTHGREATERTHAN",Yl="AMPERSAND",Xl="APOSTROPHE",Ql="ASTERISK",Mo="AT",ec="BACKSLASH",tc="BACKTICK",nc="CARET",Bo="COLON",Tm="COMMA",oc="DOLLAR",Pn="DOT",sc="EQUALS",Nm="EXCLAMATION",cn="HYPHEN",ka="PERCENT",rc="PIPE",ac="PLUS",ic="POUND",ya="QUERY",Rm="QUOTE",t4="FULLWIDTHMIDDLEDOT",Om="SEMI",zn="SLASH",wa="TILDE",lc="UNDERSCORE",n4="EMOJI",cc="SYM";var o4=Object.freeze({__proto__:null,ALPHANUMERICAL:e4,AMPERSAND:Yl,APOSTROPHE:Xl,ASCIINUMERICAL:Q6,ASTERISK:Ql,AT:Mo,BACKSLASH:ec,BACKTICK:tc,CARET:nc,CLOSEANGLEBRACKET:Hl,CLOSEBRACE:ja,CLOSEBRACKET:Ll,CLOSEPAREN:zl,COLON:Bo,COMMA:Tm,DOLLAR:oc,DOT:Pn,EMOJI:n4,EQUALS:sc,EXCLAMATION:Nm,FULLWIDTHGREATERTHAN:Jl,FULLWIDTHLEFTPAREN:Vl,FULLWIDTHLESSTHAN:Zl,FULLWIDTHMIDDLEDOT:t4,FULLWIDTHRIGHTPAREN:Ul,HYPHEN:cn,LEFTCORNERBRACKET:ql,LEFTWHITECORNERBRACKET:Kl,LOCALHOST:La,NL:Mm,NUM:Am,OPENANGLEBRACKET:$l,OPENBRACE:va,OPENBRACKET:Bl,OPENPAREN:Pl,PERCENT:ka,PIPE:rc,PLUS:ac,POUND:ic,QUERY:ya,QUOTE:Rm,RIGHTCORNERBRACKET:Wl,RIGHTWHITECORNERBRACKET:Gl,SCHEME:ul,SEMI:Om,SLASH:zn,SLASH_SCHEME:cr,SYM:cc,TILDE:wa,TLD:zp,UNDERSCORE:lc,UTLD:$p,UWORD:Pp,WORD:ao,WS:Hp});const oo=/[a-z]/,na=new RegExp("\\p{L}","u"),fd=new RegExp("\\p{Emoji}","u"),so=/\d/,md=/\s/,G1="\r",hd=`
244`,t8="️",n8="‍",gd="";let Hi=null,Vi=null;function o8(t=[]){const e={};Vt.groups=e;const n=new Vt;Hi==null&&(Hi=Z1(Z7)),Vi==null&&(Vi=Z1(J7)),H(n,"'",Xl),H(n,"{",va),H(n,"}",ja),H(n,"[",Bl),H(n,"]",Ll),H(n,"(",Pl),H(n,")",zl),H(n,"<",$l),H(n,">",Hl),H(n,"(",Vl),H(n,")",Ul),H(n,"「",ql),H(n,"」",Wl),H(n,"『",Kl),H(n,"』",Gl),H(n,"<",Zl),H(n,">",Jl),H(n,"&",Yl),H(n,"*",Ql),H(n,"@",Mo),H(n,"`",tc),H(n,"^",nc),H(n,":",Bo),H(n,",",Tm),H(n,"$",oc),H(n,".",Pn),H(n,"=",sc),H(n,"!",Nm),H(n,"-",cn),H(n,"%",ka),H(n,"|",rc),H(n,"+",ac),H(n,"#",ic),H(n,"?",ya),H(n,'"',Rm),H(n,"/",zn),H(n,";",Om),H(n,"~",wa),H(n,"_",lc),H(n,"\\",ec),H(n,"・",t4);const o=qe(n,so,Am,{[Rp]:!0});qe(o,so,o);const s=qe(o,oo,Q6,{[ba]:!0}),r=qe(o,na,e4,{[ua]:!0}),a=qe(n,oo,ao,{[Op]:!0});qe(a,so,s),qe(a,oo,a),qe(s,so,s),qe(s,oo,s);const i=qe(n,na,Pp,{[Bp]:!0});qe(i,oo),qe(i,so,r),qe(i,na,i),qe(r,so,r),qe(r,oo),qe(r,na,r);const l=H(n,hd,Mm,{[pd]:!0}),c=H(n,G1,Hp,{[pd]:!0}),u=qe(n,md,Hp,{[pd]:!0});H(n,gd,u),H(c,hd,l),H(c,gd,u),qe(c,md,u),H(u,G1),H(u,hd),qe(u,md,u),H(u,gd,u);const d=qe(n,fd,n4,{[X6]:!0});H(d,"#"),qe(d,fd,d),H(d,t8,d);const p=H(d,n8);H(p,"#"),qe(p,fd,d);const m=[[oo,a],[so,s]],h=[[oo,null],[na,i],[so,r]];for(let g=0;g<Hi.length;g++)Do(n,Hi[g],zp,ao,m);for(let g=0;g<Vi.length;g++)Do(n,Vi[g],$p,Pp,h);Ds(zp,{tld:!0,ascii:!0},e),Ds($p,{utld:!0,alpha:!0},e),Do(n,"file",ul,ao,m),Do(n,"mailto",ul,ao,m),Do(n,"http",cr,ao,m),Do(n,"https",cr,ao,m),Do(n,"ftp",cr,ao,m),Do(n,"ftps",cr,ao,m),Ds(ul,{scheme:!0,ascii:!0},e),Ds(cr,{slashscheme:!0,ascii:!0},e),t=t.sort((g,v)=>g[0]>v[0]?1:-1);for(let g=0;g<t.length;g++){const v=t[g][0],k=t[g][1]?{[Y7]:!0}:{[X7]:!0};v.indexOf("-")>=0?k[Lp]=!0:oo.test(v)?so.test(v)?k[ba]=!0:k[Op]=!0:k[Rp]=!0,K1(n,v,v,k)}return K1(n,"localhost",La,{ascii:!0}),n.jd=new Vt(cc),{start:n,tokens:Object.assign({groups:e},o4)}}function s4(t,e){const n=s8(e.replace(/[A-Z]/g,i=>i.toLowerCase())),o=n.length,s=[];let r=0,a=0;for(;a<o;){let i=t,l=null,c=0,u=null,d=-1,p=-1;for(;a<o&&(l=i.go(n[a]));)i=l,i.accepts()?(d=0,p=0,u=i):d>=0&&(d+=n[a].length,p++),c+=n[a].length,r+=n[a].length,a++;r-=d,a-=p,c-=d,s.push({t:u.t,v:e.slice(r-c,r),s:r-c,e:r})}return s}function s8(t){const e=[],n=t.length;let o=0;for(;o<n;){let s=t.charCodeAt(o),r,a=s<55296||s>56319||o+1===n||(r=t.charCodeAt(o+1))<56320||r>57343?t[o]:t.slice(o,o+2);e.push(a),o+=a.length}return e}function Do(t,e,n,o,s){let r;const a=e.length;for(let i=0;i<a-1;i++){const l=e[i];t.j[l]?r=t.j[l]:(r=new Vt(o),r.jr=s.slice(),t.j[l]=r),t=r}return r=new Vt(n),r.jr=s.slice(),t.j[e[a-1]]=r,r}function Z1(t){const e=[],n=[];let o=0,s="0123456789";for(;o<t.length;){let r=0;for(;s.indexOf(t[o+r])>=0;)r++;if(r>0){e.push(n.join(""));for(let a=parseInt(t.substring(o,o+r),10);a>0;a--)n.pop();o+=r}else n.push(t[o]),o++}return e}const Pa={defaultProtocol:"http",events:null,format:J1,formatHref:J1,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Bm(t,e=null){let n=Object.assign({},Pa);t&&(n=Object.assign(n,t instanceof Bm?t.o:t));const o=n.ignoreTags,s=[];for(let r=0;r<o.length;r++)s.push(o[r].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=s}Bm.prototype={o:Pa,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const o=e!=null;let s=this.o[t];return s&&(typeof s=="object"?(s=n.t in s?s[n.t]:Pa[t],typeof s=="function"&&o&&(s=s(e,n))):typeof s=="function"&&o&&(s=s(e,n.t,n)),s)},getObj(t,e,n){let o=this.o[t];return typeof o=="function"&&e!=null&&(o=o(e,n.t,n)),o},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function J1(t){return t}function r4(t,e){this.t="token",this.v=t,this.tk=e}r4.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),o=t.get("format",e,this);return n&&o.length>n?o.substring(0,n)+"…":o},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=Pa.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),s=t.get("tagName",n,e),r=this.toFormattedString(t),a={},i=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),u=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return a.href=o,i&&(a.class=i),l&&(a.target=l),c&&(a.rel=c),u&&Object.assign(a,u),{tagName:s,attributes:a,content:r,eventListeners:d}}};
vendor: 27,478 bytes, lines 244-258
244function ou(t,e){class n extends r4{constructor(s,r){super(s,r),this.t=t}}for(const o in e)n.prototype[o]=e[o];return n.t=t,n}const Y1=ou("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),X1=ou("text"),r8=ou("nl"),Ui=ou("url",{isLink:!0,toHref(t=Pa.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==La&&t[1].t===Bo}}),an=t=>new Vt(t);function a8({groups:t}){const e=t.domain.concat([Yl,Ql,Mo,ec,tc,nc,oc,sc,cn,Am,ka,rc,ac,ic,zn,cc,wa,lc]),n=[Xl,Bo,Tm,Pn,Nm,ka,ya,Rm,Om,$l,Hl,va,ja,Ll,Bl,Pl,zl,Vl,Ul,ql,Wl,Kl,Gl,Zl,Jl],o=[Yl,Xl,Ql,ec,tc,nc,oc,sc,cn,va,ja,ka,rc,ac,ic,ya,zn,cc,wa,lc],s=an(),r=H(s,wa);ue(r,o,r),ue(r,t.domain,r);const a=an(),i=an(),l=an();ue(s,t.domain,a),ue(s,t.scheme,i),ue(s,t.slashscheme,l),ue(a,o,r),ue(a,t.domain,a);const c=H(a,Mo);H(r,Mo,c),H(i,Mo,c),H(l,Mo,c);const u=H(r,Pn);ue(u,o,r),ue(u,t.domain,r);const d=an();ue(c,t.domain,d),ue(d,t.domain,d);const p=H(d,Pn);ue(p,t.domain,d);const m=an(Y1);ue(p,t.tld,m),ue(p,t.utld,m),H(c,La,m);const h=H(d,cn);H(h,cn,h),ue(h,t.domain,d),ue(m,t.domain,d),H(m,Pn,p),H(m,cn,h);const g=H(m,Bo);ue(g,t.numeric,Y1);const v=H(a,cn),j=H(a,Pn);H(v,cn,v),ue(v,t.domain,a),ue(j,o,r),ue(j,t.domain,a);const k=an(Ui);ue(j,t.tld,k),ue(j,t.utld,k),ue(k,t.domain,a),ue(k,o,r),H(k,Pn,j),H(k,cn,v),H(k,Mo,c);const y=H(k,Bo),w=an(Ui);ue(y,t.numeric,w);const C=an(Ui),x=an();ue(C,e,C),ue(C,n,x),ue(x,e,C),ue(x,n,x),H(k,zn,C),H(w,zn,C);const _=H(i,Bo),F=H(l,Bo),D=H(F,zn),M=H(D,zn);ue(i,t.domain,a),H(i,Pn,j),H(i,cn,v),ue(l,t.domain,a),H(l,Pn,j),H(l,cn,v),ue(_,t.domain,C),H(_,zn,C),H(_,ya,C),ue(M,t.domain,C),ue(M,e,C),H(M,zn,C);const R=[[va,ja],[Bl,Ll],[Pl,zl],[$l,Hl],[Vl,Ul],[ql,Wl],[Kl,Gl],[Zl,Jl]];for(let P=0;P<R.length;P++){const[E,S]=R[P],I=H(C,E);H(x,E,I),H(I,S,C);const A=an(Ui);ue(I,e,A);const T=an();ue(I,n),ue(A,e,A),ue(A,n,T),ue(T,e,A),ue(T,n,T),H(A,S,C),H(T,S,C)}return H(s,La,k),H(s,Mm,r8),{start:s,tokens:o4}}function i8(t,e,n){let o=n.length,s=0,r=[],a=[];for(;s<o;){let i=t,l=null,c=null,u=0,d=null,p=-1;for(;s<o&&!(l=i.go(n[s].t));)a.push(n[s++]);for(;s<o&&(c=l||i.go(n[s].t));)l=null,i=c,i.accepts()?(p=0,d=i):p>=0&&p++,s++,u++;if(p<0)s-=u,s<o&&(a.push(n[s]),s++);else{a.length>0&&(r.push(bd(X1,e,a)),a=[]),s-=p,u-=p;const m=d.t,h=n.slice(s-u,s);r.push(bd(m,e,h))}}return a.length>0&&r.push(bd(X1,e,a)),r}function bd(t,e,n){const o=n[0].s,s=n[n.length-1].e,r=e.slice(o,s);return new t(r,n)}const l8=typeof console<"u"&&console&&console.warn||(()=>{}),c8="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Be={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function u8(){return Vt.groups={},Be.scanner=null,Be.parser=null,Be.tokenQueue=[],Be.pluginQueue=[],Be.customSchemes=[],Be.initialized=!1,Be}function Q1(t,e=!1){if(Be.initialized&&l8(`linkifyjs: already initialized - will not register custom scheme "${t}" ${c8}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
2451. Must only contain digits, lowercase ASCII letters or "-"
2462. Cannot start or end with "-"
2473. "-" cannot repeat`);Be.customSchemes.push([t,e])}function d8(){Be.scanner=o8(Be.customSchemes);for(let t=0;t<Be.tokenQueue.length;t++)Be.tokenQueue[t][1]({scanner:Be.scanner});Be.parser=a8(Be.scanner.tokens);for(let t=0;t<Be.pluginQueue.length;t++)Be.pluginQueue[t][1]({scanner:Be.scanner,parser:Be.parser});return Be.initialized=!0,Be}function Lm(t){return Be.initialized||d8(),i8(Be.parser.start,t,s4(Be.scanner.start,t))}Lm.scan=s4;function a4(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new Bm(n),s=Lm(t),r=[];for(let a=0;a<s.length;a++){const i=s[a];i.isLink&&(!e||i.t===e)&&o.check(i)&&r.push(i.toFormattedObject(o))}return r}var Pm="[\0-   ᠎ -\u2029  ]",p8=new RegExp(Pm),f8=new RegExp(`${Pm}$`),m8=new RegExp(Pm,"g");function h8(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function g8(t){return new xe({key:new we("autolink"),appendTransaction:(e,n,o)=>{const s=e.some(c=>c.docChanged)&&!n.doc.eq(o.doc),r=e.some(c=>c.getMeta("preventAutolink"));if(!s||r)return;const{tr:a}=o,i=Jc(n.doc,[...e]);if(Xc(i).forEach(({newRange:c})=>{const u=km(o.doc,c,m=>m.isTextblock);let d,p;if(u.length>1)d=u[0],p=o.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(u.length){const m=o.doc.textBetween(c.from,c.to," "," ");if(!f8.test(m))return;d=u[0],p=o.doc.textBetween(d.pos,c.to,void 0," ")}if(d&&p){const m=p.split(p8).filter(Boolean);if(m.length<=0)return!1;const h=m[m.length-1],g=d.pos+p.lastIndexOf(h);if(!h)return!1;const v=Lm(h).map(j=>j.toObject(t.defaultProtocol));if(!h8(v))return!1;v.filter(j=>j.isLink).map(j=>({...j,from:g+j.start+1,to:g+j.end+1})).filter(j=>o.schema.marks.code?!o.doc.rangeHasMark(j.from,j.to,o.schema.marks.code):!0).filter(j=>t.validate(j.value)).filter(j=>t.shouldAutoLink(j.value)).forEach(j=>{_m(j.from,j.to,o.doc).some(k=>k.mark.type===t.type)||a.addMark(j.from,j.to,t.type.create({href:j.href}))})}}),!!a.steps.length)return a}})}function b8(t){return new xe({key:new we("handleClickLink"),props:{handleClick:(e,n,o)=>{var s,r;if(o.button!==0||!e.editable)return!1;let a=null;if(o.target instanceof HTMLAnchorElement)a=o.target;else{let u=o.target;const d=[];for(;u.nodeName!=="DIV";)d.push(u),u=u.parentNode;a=d.find(p=>p.nodeName==="A")}if(!a)return!1;const i=A6(e.state,t.type.name),l=(s=a?.href)!=null?s:i.href,c=(r=a?.target)!=null?r:i.target;return t.enableClickSelection&&t.editor.commands.extendMarkRange(t.type.name),a&&l?(window.open(l,c),!0):!1}}})}function v8(t){return new xe({key:new we("handlePasteLink"),props:{handlePaste:(e,n,o)=>{const{shouldAutoLink:s}=t,{state:r}=e,{selection:a}=r,{empty:i}=a;if(i)return!1;let l="";o.content.forEach(u=>{l+=u.textContent});const c=a4(l,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===l);return!l||!c||s!==void 0&&!s(c.href)?!1:t.editor.commands.setMark(t.type,{href:c.href})}}})}function bs(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const s=typeof o=="string"?o:o.scheme;s&&n.push(s)}),!t||t.replace(m8,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var zm=$t.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){Q1(t);return}Q1(t.scheme,t.optionalSlashes)})},onDestroy(){u8()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!bs(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!bs(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!bs(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",ze(this.options.HTMLAttributes,t),0]:["a",ze(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n;const o=((n=t.attrs)==null?void 0:n.href)||"";return`[${e.renderChildren(t)}](${o})`},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!bs(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:o=>!!bs(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[ss({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:o}=this.options,s=a4(t).filter(r=>r.isLink&&this.options.isAllowedUri(r.value,{defaultValidate:a=>!!bs(a,n),protocols:n,defaultProtocol:o}));s.length&&s.forEach(r=>{this.options.shouldAutoLink(r.value)&&e.push({text:r.value,data:{href:r.href},index:r.start})})}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(g8({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:s=>!!bs(s,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(b8({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(v8({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),t}}),j8=zm,k8=Object.defineProperty,y8=(t,e)=>{for(var n in e)k8(t,n,{get:e[n],enumerable:!0})},w8="listItem",e0="textStyle",t0=/^\s*([-+*])\s$/,$m=De.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",ze(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>t.type!=="list"||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
248`):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(w8,this.editor.getAttributes(e0)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Dr({find:t0,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Dr({find:t0,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(e0),editor:this.editor})),[t]}}),Hm=De.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",ze(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:(t,e)=>{if(t.type!=="list_item")return[];let n=[];if(t.tokens&&t.tokens.length>0)if(t.tokens.some(s=>s.type==="paragraph"))n=e.parseChildren(t.tokens);else{const s=t.tokens[0];if(s&&s.type==="text"&&s.tokens&&s.tokens.length>0){if(n=[{type:"paragraph",content:e.parseInline(s.tokens)}],t.tokens.length>1){const a=t.tokens.slice(1),i=e.parseChildren(a);n.push(...i)}}else n=e.parseChildren(t.tokens)}return n.length===0&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(t,e,n)=>Im(t,e,o=>o.parentType==="bulletList"?"- ":o.parentType==="orderedList"?`${o.index+1}. `:"- ",n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),_8={};y8(_8,{findListItemPos:()=>ci,getNextListDepth:()=>Vm,handleBackspace:()=>Vp,handleDelete:()=>Up,hasListBefore:()=>i4,hasListItemAfter:()=>x8,hasListItemBefore:()=>l4,listItemHasSubList:()=>c4,nextListIsDeeper:()=>u4,nextListIsHigher:()=>d4});var ci=(t,e)=>{const{$from:n}=e.selection,o=st(t,e.schema);let s=null,r=n.depth,a=n.pos,i=null;for(;r>0&&i===null;)s=n.node(r),s.type===o?i=r:(r-=1,a-=1);return i===null?null:{$pos:e.doc.resolve(a),depth:i}},Vm=(t,e)=>{const n=ci(t,e);if(!n)return!1;const[,o]=p5(e,t,n.$pos.pos+4);return o},i4=(t,e,n)=>{const{$anchor:o}=t.selection,s=Math.max(0,o.pos-2),r=t.doc.resolve(s).node();return!(!r||!n.includes(r.type.name))},l4=(t,e)=>{var n;const{$anchor:o}=e.selection,s=e.doc.resolve(o.pos-2);return!(s.index()===0||((n=s.nodeBefore)==null?void 0:n.type.name)!==t)},c4=(t,e,n)=>{if(!n)return!1;const o=st(t,e.schema);let s=!1;return n.descendants(r=>{r.type===o&&(s=!0)}),s},Vp=(t,e,n)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!ns(t.state,e)&&i4(t.state,e,n)){const{$anchor:i}=t.state.selection,l=t.state.doc.resolve(i.before()-1),c=[];l.node().descendants((p,m)=>{p.type.name===e&&c.push({node:p,pos:m})});const u=c.at(-1);if(!u)return!1;const d=t.state.doc.resolve(l.start()+u.pos+1);return t.chain().cut({from:i.start()-1,to:i.end()+1},d.end()).joinForward().run()}if(!ns(t.state,e)||!g5(t.state))return!1;const o=ci(e,t.state);if(!o)return!1;const r=t.state.doc.resolve(o.$pos.pos-2).node(o.depth),a=c4(e,t.state,r);return l4(e,t.state)&&!a?t.commands.joinItemBackward():t.chain().liftListItem(e).run()},u4=(t,e)=>{const n=Vm(t,e),o=ci(t,e);return!o||!n?!1:n>o.depth},d4=(t,e)=>{const n=Vm(t,e),o=ci(t,e);return!o||!n?!1:n<o.depth},Up=(t,e)=>{if(!ns(t.state,e)||!h5(t.state,e))return!1;const{selection:n}=t.state,{$from:o,$to:s}=n;return!n.empty&&o.sameParent(s)?!1:u4(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():d4(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},x8=(t,e)=>{var n;const{$anchor:o}=e.selection,s=e.doc.resolve(o.pos-o.parentOffset-2);return!(s.index()===s.parent.childCount-1||((n=s.nodeAfter)==null?void 0:n.type.name)!==t)},p4=me.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&Up(t,n)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&Up(t,n)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:o})=>{t.state.schema.nodes[n]!==void 0&&Vp(t,n,o)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:o})=>{t.state.schema.nodes[n]!==void 0&&Vp(t,n,o)&&(e=!0)}),e}}}}),n0=/^(\s*)(\d+)\.\s+(.*)$/,C8=/^\s/;function D8(t){const e=[];let n=0,o=0;for(;n<t.length;){const s=t[n],r=s.match(n0);if(!r)break;const[,a,i,l]=r,c=a.length;let u=l,d=n+1;const p=[s];for(;d<t.length;){const m=t[d];if(m.match(n0))break;if(m.trim()==="")p.push(m),u+=`
249`,d+=1;else if(m.match(C8))p.push(m),u+=`
250${m.slice(c+2)}`,d+=1;else break}e.push({indent:c,number:parseInt(i,10),content:u.trim(),raw:p.join(`
251`)}),o=d,n=d}return[e,o]}function f4(t,e,n){var o;const s=[];let r=0;for(;r<t.length;){const a=t[r];if(a.indent===e){const i=a.content.split(`
252`),l=((o=i[0])==null?void 0:o.trim())||"",c=[];l&&c.push({type:"paragraph",raw:l,tokens:n.inlineTokens(l)});const u=i.slice(1).join(`
253`).trim();if(u){const m=n.blockTokens(u);c.push(...m)}let d=r+1;const p=[];for(;d<t.length&&t[d].indent>e;)p.push(t[d]),d+=1;if(p.length>0){const m=Math.min(...p.map(g=>g.indent)),h=f4(p,m,n);c.push({type:"list",ordered:!0,start:p[0].number,items:h,raw:p.map(g=>g.raw).join(`
254`)})}s.push({type:"list_item",raw:a.raw,tokens:c}),r=d}else r+=1}return s}function F8(t,e){return t.map(n=>{if(n.type!=="list_item")return e.parseChildren([n])[0];const o=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(s=>{if(s.type==="paragraph"||s.type==="list"||s.type==="blockquote"||s.type==="code")o.push(...e.parseChildren([s]));else if(s.type==="text"&&s.tokens){const r=e.parseChildren([s]);o.push({type:"paragraph",content:r})}else{const r=e.parseChildren([s]);r.length>0&&o.push(...r)}}),{type:"listItem",content:o}})}var E8="listItem",o0="textStyle",s0=/^(\d+)\.\s$/,Um=De.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",ze(this.options.HTMLAttributes,n),0]:["ol",ze(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>{if(t.type!=="list"||!t.ordered)return[];const n=t.start||1,o=t.items?F8(t.items,e):[];return n!==1?{type:"orderedList",attrs:{start:n},content:o}:{type:"orderedList",content:o}},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
255`):"",markdownTokenizer:{name:"orderedList",level:"block",start:t=>{const e=t.match(/^(\s*)(\d+)\.\s+/),n=e?.index;return n!==void 0?n:-1},tokenize:(t,e,n)=>{var o;const s=t.split(`
256`),[r,a]=D8(s);if(r.length===0)return;const i=f4(r,0,n);return i.length===0?void 0:{type:"list",ordered:!0,start:((o=r[0])==null?void 0:o.number)||1,items:i,raw:s.slice(0,a).join(`
257`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(E8,this.editor.getAttributes(o0)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Dr({find:s0,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Dr({find:s0,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(o0)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),I8=/^\s*(\[([( |x])?\])\s$/,m4=De.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",ze(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{const n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){const o=e.parseChildren(t.nestedTokens);n.push(...o)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;const s=`- [${(n=t.attrs)!=null&&n.checked?"x":" "}] `;return Im(t,e,s)},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:o})=>{const s=document.createElement("li"),r=document.createElement("label"),a=document.createElement("span"),i=document.createElement("input"),l=document.createElement("div"),c=u=>{var d,p;i.ariaLabel=((p=(d=this.options.a11y)==null?void 0:d.checkboxLabel)==null?void 0:p.call(d,u,i.checked))||`Task item checkbox for ${u.textContent||"empty task item"}`};return c(t),r.contentEditable="false",i.type="checkbox",i.addEventListener("mousedown",u=>u.preventDefault()),i.addEventListener("change",u=>{if(!o.isEditable&&!this.options.onReadOnlyChecked){i.checked=!i.checked;return}const{checked:d}=u.target;o.isEditable&&typeof n=="function"&&o.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:p})=>{const m=n();if(typeof m!="number")return!1;const h=p.doc.nodeAt(m);return p.setNodeMarkup(m,void 0,{...h?.attrs,checked:d}),!0}).run(),!o.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,d)||(i.checked=!i.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([u,d])=>{s.setAttribute(u,d)}),s.dataset.checked=t.attrs.checked,i.checked=t.attrs.checked,r.append(i,a),s.append(r,l),Object.entries(e).forEach(([u,d])=>{s.setAttribute(u,d)}),{dom:s,contentDOM:l,update:u=>u.type!==this.type?!1:(s.dataset.checked=u.attrs.checked,i.checked=u.attrs.checked,c(u),!0)}}},addInputRules(){return[Dr({find:I8,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),h4=De.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",ze(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
258`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const o=r=>{const a=Tp(r,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,l)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:l}),customNestedParser:o},n);return a?[{type:"taskList",raw:a.raw,items:a.items}]:n.blockTokens(r)},s=Tp(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:r=>({indentLevel:r[1].length,mainContent:r[4],checked:r[3].toLowerCase()==="x"}),createToken:(r,a)=>({type:"taskItem",raw:"",mainContent:r.mainContent,indentLevel:r.indentLevel,checked:r.checked,text:r.mainContent,tokens:n.inlineTokens(r.mainContent),nestedTokens:a}),customNestedParser:o},n);if(s)return{type:"taskList",raw:s.raw,items:s.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});me.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push($m.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(Hm.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(p4.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(Um.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(m4.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(h4.configure(this.options.taskList)),t}});var S8=De.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",ze(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];return n.length===1&&n[0].type==="image"?e.parseChildren([n[0]]):e.createNode("paragraph",void 0,e.parseInline(n))},renderMarkdown:(t,e)=>!t||!Array.isArray(t.content)?"":e.renderChildren(t.content),addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),A8=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,M8=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,T8=$t.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",ze(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Ps({find:A8,type:this.type})]},addPasteRules(){return[ss({find:M8,type:this.type})]}}),N8=De.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),g4=$t.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",ze(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const s=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!s)return;const r=s[2].trim();return{type:"underline",raw:s[0],text:r,tokens:n.inlineTokens(r)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),R8=g4;function O8(t={}){return new xe({view(e){return new B8(e,t)}})}class B8{constructor(e,n){var o;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(o=n.width)!==null&&o!==void 0?o:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(s=>{let r=a=>{this[s](a)};return e.dom.addEventListener(s,r),{name:s,handler:r}})}
vendor: 3,665 bytes, line 258
258destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,o,s=this.editorView.dom,r=s.getBoundingClientRect(),a=r.width/s.offsetWidth,i=r.height/s.offsetHeight;if(n){let d=e.nodeBefore,p=e.nodeAfter;if(d||p){let m=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(m){let h=m.getBoundingClientRect(),g=d?h.bottom:h.top;d&&p&&(g=(g+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let v=this.width/2*i;o={left:h.left,right:h.right,top:g-v,bottom:g+v}}}}if(!o){let d=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*a;o={left:d.left-p,right:d.left+p,top:d.top,bottom:d.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let c,u;if(!l||l==document.body&&getComputedStyle(l).position=="static")c=-pageXOffset,u=-pageYOffset;else{let d=l.getBoundingClientRect(),p=d.width/l.offsetWidth,m=d.height/l.offsetHeight;c=d.left-l.scrollLeft*p,u=d.top-l.scrollTop*m}this.element.style.left=(o.left-c)/a+"px",this.element.style.top=(o.top-u)/i+"px",this.element.style.width=(o.right-o.left)/a+"px",this.element.style.height=(o.bottom-o.top)/i+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),o=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),s=o&&o.type.spec.disableDropCursor,r=typeof s=="function"?s(this.editorView,n,e):s;if(n&&!r){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let i=bv(this.editorView.state.doc,a,this.editorView.dragging.slice);i!=null&&(a=i)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class Ke extends le{constructor(e){super(e,e)}map(e,n){let o=e.resolve(n.map(this.head));return Ke.valid(o)?new Ke(o):le.near(o)}content(){return W.empty}eq(e){return e instanceof Ke&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Ke(e.resolve(n.pos))}getBookmark(){return new qm(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!L8(e)||!P8(e))return!1;let o=n.type.spec.allowGapCursor;if(o!=null)return o;let s=n.contentMatchAt(e.index()).defaultType;return s&&s.isTextblock}static findGapCursorFrom(e,n,o=!1){e:for(;;){if(!o&&Ke.valid(e))return e;let s=e.pos,r=null;for(let a=e.depth;;a--){let i=e.node(a);if(n>0?e.indexAfter(a)<i.childCount:e.index(a)>0){r=i.child(n>0?e.indexAfter(a):e.index(a)-1);break}else if(a==0)return null;s+=n;let l=e.doc.resolve(s);if(Ke.valid(l))return l}for(;;){let a=n>0?r.firstChild:r.lastChild;if(!a){if(r.isAtom&&!r.isText&&!U.isSelectable(r)){e=e.doc.resolve(s+r.no
vendor: 19,339 bytes, line 258
258deSize*n),o=!1;continue e}break}r=a,s+=n;let i=e.doc.resolve(s);if(Ke.valid(i))return i}return null}}}Ke.prototype.visible=!1;Ke.findFrom=Ke.findGapCursorFrom;le.jsonID("gapcursor",Ke);class qm{constructor(e){this.pos=e}map(e){return new qm(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return Ke.valid(n)?new Ke(n):le.near(n)}}function b4(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function L8(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),o=t.node(e);if(n==0){if(o.type.spec.isolating)return!0;continue}for(let s=o.child(n-1);;s=s.lastChild){if(s.childCount==0&&!s.inlineContent||b4(s.type))return!0;if(s.inlineContent)return!1}}return!0}function P8(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),o=t.node(e);if(n==o.childCount){if(o.type.spec.isolating)return!0;continue}for(let s=o.child(n);;s=s.firstChild){if(s.childCount==0&&!s.inlineContent||b4(s.type))return!0;if(s.inlineContent)return!1}}return!0}function z8(){return new xe({props:{decorations:U8,createSelectionBetween(t,e,n){return e.pos==n.pos&&Ke.valid(n)?new Ke(n):null},handleClick:H8,handleKeyDown:$8,handleDOMEvents:{beforeinput:V8}}})}const $8=v6({ArrowLeft:qi("horiz",-1),ArrowRight:qi("horiz",1),ArrowUp:qi("vert",-1),ArrowDown:qi("vert",1)});function qi(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(o,s,r){let a=o.selection,i=e>0?a.$to:a.$from,l=a.empty;if(a instanceof Y){if(!r.endOfTextblock(n)||i.depth==0)return!1;l=!1,i=o.doc.resolve(e>0?i.after():i.before())}let c=Ke.findGapCursorFrom(i,e,l);return c?(s&&s(o.tr.setSelection(new Ke(c))),!0):!1}}function H8(t,e,n){if(!t||!t.editable)return!1;let o=t.state.doc.resolve(e);if(!Ke.valid(o))return!1;let s=t.posAtCoords({left:n.clientX,top:n.clientY});return s&&s.inside>-1&&U.isSelectable(t.state.doc.nodeAt(s.inside))?!1:(t.dispatch(t.state.tr.setSelection(new Ke(o))),!0)}function V8(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof Ke))return!1;let{$from:n}=t.state.selection,o=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!o)return!1;let s=z.empty;for(let a=o.length-1;a>=0;a--)s=z.from(o[a].createAndFill(null,s));let r=t.state.tr.replace(n.pos,n.pos,new W(s,0,0));return r.setSelection(Y.near(r.doc.resolve(n.pos+1))),t.dispatch(r),!1}function U8(t){if(!(t.selection instanceof Ke))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Ne.create(t.doc,[xt.widget(t.selection.head,e,{key:"gapcursor"})])}var uc=200,bt=function(){};bt.prototype.append=function(e){return e.length?(e=bt.from(e),!this.length&&e||e.length<uc&&this.leafAppend(e)||this.length<uc&&e.leafPrepend(this)||this.appendInner(e)):this};bt.prototype.prepend=function(e){return e.length?bt.from(e).append(this):this};bt.prototype.appendInner=function(e){return new q8(this,e)};bt.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?bt.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};bt.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};bt.prototype.forEach=function(e,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length),n<=o?this.forEachInner(e,n,o,0):this.forEachInvertedInner(e,n,o,0)};bt.prototype.map=function(e,n,o){n===void 0&&(n=0),o===void 0&&(o=this.length);var s=[];return this.forEach(function(r,a){return s.push(e(r,a))},n,o),s};bt.from=function(e){return e instanceof bt?e:e&&e.length?new v4(e):bt.empty};var v4=(function(t){function e(o){t.call(this),this.values=o}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(s,r){return s==0&&r==this.length?this:new e(this.values.slice(s,r))},e.prototype.getInner=function(s){return this.values[s]},e.prototype.forEachInner=function(s,r,a,i){for(var l=r;l<a;l++)if(s(this.values[l],i+l)===!1)return!1},e.prototype.forEachInvertedInner=function(s,r,a,i){for(var l=r-1;l>=a;l--)if(s(this.values[l],i+l)===!1)return!1},e.prototype.leafAppend=function(s){if(this.length+s.length<=uc)return new e(this.values.concat(s.flatten()))},e.prototype.leafPrepend=function(s){if(this.length+s.length<=uc)return new e(s.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(bt);bt.empty=new v4([]);var q8=(function(t){function e(n,o){t.call(this),this.left=n,this.right=o,this.length=n.length+o.length,this.depth=Math.max(n.depth,o.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(o){return o<this.left.length?this.left.get(o):this.right.get(o-this.left.length)},e.prototype.forEachInner=function(o,s,r,a){var i=this.left.length;if(s<i&&this.left.forEachInner(o,s,Math.min(r,i),a)===!1||r>i&&this.right.forEachInner(o,Math.max(s-i,0),Math.min(this.length,r)-i,a+i)===!1)return!1},e.prototype.forEachInvertedInner=function(o,s,r,a){var i=this.left.length;if(s>i&&this.right.forEachInvertedInner(o,s-i,Math.max(r,i)-i,a+i)===!1||r<i&&this.left.forEachInvertedInner(o,Math.min(s,i),r,a)===!1)return!1},e.prototype.sliceInner=function(o,s){if(o==0&&s==this.length)return this;var r=this.left.length;return s<=r?this.left.slice(o,s):o>=r?this.right.slice(o-r,s-r):this.left.slice(o,r).append(this.right.slice(0,s-r))},e.prototype.leafAppend=function(o){var s=this.right.leafAppend(o);if(s)return new e(this.left,s)},e.prototype.leafPrepend=function(o){var s=this.left.leafPrepend(o);if(s)return new e(s,this.right)},e.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new e(this.left,new e(this.right,o)):new e(this,o)},e})(bt);const W8=500;class wn{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let s,r;n&&(s=this.remapping(o,this.items.length),r=s.maps.length);let a=e.tr,i,l,c=[],u=[];return this.items.forEach((d,p)=>{if(!d.step){s||(s=this.remapping(o,p+1),r=s.maps.length),r--,u.push(d);return}if(s){u.push(new Fo(d.map));let m=d.step.map(s.slice(r)),h;m&&a.maybeStep(m).doc&&(h=a.mapping.maps[a.mapping.maps.length-1],c.push(new Fo(h,void 0,void 0,c.length+u.length))),r--,h&&s.appendMap(h,r)}else a.maybeStep(d.step);if(d.selection)return i=s?d.selection.map(s.slice(r)):d.selection,l=new wn(this.items.slice(0,o).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:i}}addTransform(e,n,o,s){let r=[],a=this.eventCount,i=this.items,l=!s&&i.length?i.get(i.length-1):null;for(let u=0;u<e.steps.length;u++){let d=e.steps[u].invert(e.docs[u]),p=new Fo(e.mapping.maps[u],d,n),m;(m=l&&l.merge(p))&&(p=m,u?r.pop():i=i.slice(0,i.length-1)),r.push(p),n&&(a++,n=void 0),s||(l=p)}let c=a-o.depth;return c>G8&&(i=K8(i,c),a-=c),new wn(i.append(r),a)}remapping(e,n){let o=new Sa;return this.items.forEach((s,r)=>{let a=s.mirrorOffset!=null&&r-s.mirrorOffset>=e?o.maps.length-s.mirrorOffset:void 0;o.appendMap(s.map,a)},e,n),o}addMaps(e){return this.eventCount==0?this:new wn(this.items.append(e.map(n=>new Fo(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let o=[],s=Math.max(0,this.items.length-n),r=e.mapping,a=e.steps.length,i=this.eventCount;this.items.forEach(p=>{p.selection&&i--},s);let l=n;this.items.forEach(p=>{let m=r.getMirror(--l);if(m==null)return;a=Math.min(a,m);let h=r.maps[m];if(p.step){let g=e.steps[m].invert(e.docs[m]),v=p.selection&&p.selection.map(r.slice(l+1,m));v&&i++,o.push(new Fo(h,g,v))}else o.push(new Fo(h))},s);let c=[];for(let p=n;p<a;p++)c.push(new Fo(r.maps[p]));let u=this.items.slice(0,s).append(c).append(o),d=new wn(u,i);return d.emptyItemCount()>W8&&(d=d.compress(this.items.length-o.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),o=n.maps.length,s=[],r=0;return this.items.forEach((a,i)=>{if(i>=e)s.push(a),a.selection&&r++;else if(a.step){let l=a.step.map(n.slice(o)),c=l&&l.getMap();if(o--,c&&n.appendMap(c,o),l){let u=a.selection&&a.selection.map(n.slice(o));u&&r++;let d=new Fo(c.invert(),l,u),p,m=s.length-1;(p=s.length&&s[m].merge(d))?s[m]=p:s.push(d)}}else a.map&&o--},this.items.length,0),new wn(bt.from(s.reverse()),r)}}wn.empty=new wn(bt.empty,0);function K8(t,e){let n;return t.forEach((o,s)=>{if(o.selection&&e--==0)return n=s,!1}),t.slice(n)}let Fo=class j4{constructor(e,n,o,s){this.map=e,this.step=n,this.selection=o,this.mirrorOffset=s}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new j4(n.getMap().invert(),n,this.selection)}}};class To{constructor(e,n,o,s,r){this.done=e,this.undone=n,this.prevRanges=o,this.prevTime=s,this.prevComposition=r}}const G8=20;function Z8(t,e,n,o){let s=n.getMeta(Ms),r;if(s)return s.historyState;n.getMeta(X8)&&(t=new To(t.done,t.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(a&&a.getMeta(Ms))return a.getMeta(Ms).redo?new To(t.done.addTransform(n,void 0,o,dl(e)),t.undone,r0(n.mapping.maps),t.prevTime,t.prevComposition):new To(t.done,t.undone.addTransform(n,void 0,o,dl(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let i=n.getMeta("composition"),l=t.prevTime==0||!a&&t.prevComposition!=i&&(t.prevTime<(n.time||0)-o.newGroupDelay||!J8(n,t.prevRanges)),c=a?vd(t.prevRanges,n.mapping):r0(n.mapping.maps);return new To(t.done.addTransform(n,l?e.selection.getBookmark():void 0,o,dl(e)),wn.empty,c,n.time,i??t.prevComposition)}else return(r=n.getMeta("rebased"))?new To(t.done.rebased(n,r),t.undone.rebased(n,r),vd(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new To(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),vd(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function J8(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((o,s)=>{for(let r=0;r<e.length;r+=2)o<=e[r+1]&&s>=e[r]&&(n=!0)}),n}function r0(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((o,s,r,a)=>e.push(r,a));return e}function vd(t,e){if(!t)return null;let n=[];for(let o=0;o<t.length;o+=2){let s=e.map(t[o],1),r=e.map(t[o+1],-1);s<=r&&n.push(s,r)}return n}function Y8(t,e,n){let o=dl(e),s=Ms.get(e).spec.config,r=(n?t.undone:t.done).popEvent(e,o);if(!r)return null;let a=r.selection.resolve(r.transform.doc),i=(n?t.done:t.undone).addTransform(r.transform,e.selection.getBookmark(),s,o),l=new To(n?i:r.remaining,n?r.remaining:i,null,0,-1);return r.transform.setSelection(a).setMeta(Ms,{redo:n,historyState:l})}let jd=!1,a0=null;function dl(t){let e=t.plugins;if(a0!=e){jd=!1,a0=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){jd=!0;break}}return jd}const Ms=new we("history"),X8=new we("closeHistory");function Q8(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new xe({key:Ms,state:{init(){return new To(wn.empty,wn.empty,null,0,-1)},apply(e,n,o){return Z8(n,o,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let o=n.inputType,s=o=="historyUndo"?y4:o=="historyRedo"?w4:null;return s?(n.preventDefault(),s(e.state,e.dispatch)):!1}}}})}function k4(t,e){return(n,o)=>{let s=Ms.getState(n);if(!s||(t?s.undone:s.done).eventCount==0)return!1;if(o){let r=Y8(s,n,t);r&&o(e?r.scrollIntoView():r)}return!0}}const y4=k4(!1,!0),w4=k4(!0,!0);me.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const o=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(o)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new xe({key:new we("characterCount"),appendTransaction:(e,n,o)=>{if(t)return;const s=this.options.limit;if(s==null||s===0){t=!0;return}const r=this.storage.characters({node:o.doc});if(r>s){const a=r-s,i=0,l=a;console.warn(`[CharacterCount] Initial content exceeded limit of ${s} characters. Content was automatically trimmed.`);const c=o.tr.deleteRange(i,l);return t=!0,c}t=!0},filterTransaction:(e,n)=>{const o=this.options.limit;if(!e.docChanged||o===0||o===null||o===void 0)return!0;const s=this.storage.characters({node:n.doc}),r=this.storage.characters({node:e.doc});if(r<=o||s>o&&r>o&&r<=s)return!0;if(s>o&&r>o&&r>s||!e.getMeta("paste"))return!1;const i=e.selection.$head.pos,l=r-o,c=i-l,u=i;return e.deleteRange(c,u),!(this.storage.characters({node:e.doc})>o)}})]}});var eE=me.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[O8(this.options)]}});me.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new xe({key:new we("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:o}=this.editor,{anchor:s}=e,r=[];if(!n||!o)return Ne.create(t,[]);let a=0;this.options.mode==="deepest"&&t.descendants((l,c)=>{if(l.isText)return;if(!(s>=c&&s<=c+l.nodeSize-1))return!1;a+=1});let i=0;return t.descendants((l,c)=>{if(l.isText||!(s>=c&&s<=c+l.nodeSize-1))return!1;if(i+=1,this.options.mode==="deepest"&&a-i>0||this.options.mode==="shallowest"&&i>1)return this.options.mode==="deepest";r.push(xt.node(c,c+l.nodeSize,{class:this.options.className}))}),Ne.create(t,r)}}})]}});var tE=me.create({name:"gapCursor",addProseMirrorPlugins(){return[z8()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Ee(Q(t,"allowGapCursor",n)))!=null?e:null}}}),nE=me.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new xe({key:new we("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,s=[];if(!n)return null;const r=this.editor.isEmpty;return t.descendants((a,i)=>{const l=o>=i&&o<=i+a.nodeSize,c=!a.isLeaf&&Qc(a);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];r&&u.push(this.options.emptyEditorClass);const d=xt.node(i,i+a.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:i,hasAnchor:l}):this.options.placeholder});s.push(d)}return this.options.includeChildren}),Ne.create(t,s)}}})]}});me.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new xe({key:new we("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||eu(n.selection)||t.view.dragging?null:Ne.create(n.doc,[xt.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function i0({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var oE=me.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new we(this.name),n=((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||this.options.node||"paragraph",o=Object.entries(this.editor.schema.nodes).map(([,s])=>s).filter(s=>(this.options.notAfter||[]).concat(n).includes(s.name));return[new xe({key:e,appendTransaction:(s,r,a)=>{const{doc:i,tr:l,schema:c}=a,u=e.getState(a),d=i.content.size,p=c.nodes[n];if(u)return l.insert(d,p.create())},state:{init:(s,r)=>{const a=r.tr.doc.lastChild;return!i0({node:a,types:o})},apply:(s,r)=>{if(!s.docChanged)return r;const a=s.doc.lastChild;return!i0({node:a,types:o})}}})]}}),sE=me.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>y4(t,e),redo:()=>({state:t,dispatch:e})=>w4(t,e)}},addProseMirrorPlugins(){return[Q8(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),_4=me.create({name:"starterKit",addExtensions(){var t,e,n,o;const s=[];return this.options.bold!==!1&&s.push(T7.configure(this.options.bold)),this.options.blockquote!==!1&&s.push(E7.configure(this.options.blockquote)),this.options.bulletList!==!1&&s.push($m.configure(this.options.bulletList)),this.options.code!==!1&&s.push(O7.configure(this.options.code)),this.options.codeBlock!==!1&&s.push(P7.configure(this.options.codeBlock)),this.options.document!==!1&&s.push(z7.configure(this.options.document)),this.options.dropcursor!==!1&&s.push(eE.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&s.push(tE.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&s.push($7.configure(this.options.hardBreak)),this.options.heading!==!1&&s.push(H7.configure(this.options.heading)),this.options.undoRedo!==!1&&s.push(sE.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&s.push(Y6.configure(this.options.horizontalRule)),this.options.italic!==!1&&s.push(G7.configure(this.options.italic)),this.options.listItem!==!1&&s.push(Hm.configure(this.options.listItem)),this.options.listKeymap!==!1&&s.push(p4.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&s.push(zm.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&s.push(Um.configure(this.options.orderedList)),this.options.paragraph!==!1&&s.push(S8.configure(this.options.paragraph)),this.options.strike!==!1&&s.push(T8.configure(this.options.strike)),this.options.text!==!1&&s.push(N8.configure(this.options.text)),this.options.underline!==!1&&s.push(g4.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&s.push(oE.configure((o=this.options)==null?void 0:o.trailingNode)),s}}),rE=_4,x4=h4,C4=m4,D4=me.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:t=>({editor:e,commands:n})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?n.unsetTextAlign():n.setTextAlign(t):!1}}
258,addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),aE=D4,iE=t=>Je({find:/--$/,replace:t??"—"}),lE=t=>Je({find:/\.\.\.$/,replace:t??"…"}),cE=t=>Je({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:t??"“"}),uE=t=>Je({find:/"$/,replace:t??"”"}),dE=t=>Je({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:t??"‘"}),pE=t=>Je({find:/'$/,replace:t??"’"}),fE=t=>Je({find:/<-$/,replace:t??"←"}),mE=t=>Je({find:/->$/,replace:t??"→"}),hE=t=>Je({find:/\(c\)$/,replace:t??"©"}),gE=t=>Je({find:/\(tm\)$/,replace:t??"™"}),bE=t=>Je({find:/\(sm\)$/,replace:t??"℠"}),vE=t=>Je({find:/\(r\)$/,replace:t??"®"}),jE=t=>Je({find:/(?:^|\s)(1\/2)\s$/,replace:t??"½"}),kE=t=>Je({find:/\+\/-$/,replace:t??"±"}),yE=t=>Je({find:/!=$/,replace:t??"≠"}),wE=t=>Je({find:/<<$/,replace:t??"«"}),_E=t=>Je({find:/>>$/,replace:t??"»"}),xE=t=>Je({find:/\d+\s?([*x])\s?\d+$/,replace:t??"×"}),CE=t=>Je({find:/\^2$/,replace:t??"²"}),DE=t=>Je({find:/\^3$/,replace:t??"³"}),FE=t=>Je({find:/(?:^|\s)(1\/4)\s$/,replace:t??"¼"}),EE=t=>Je({find:/(?:^|\s)(3\/4)\s$/,replace:t??"¾"}),IE=me.create({name:"typography",addOptions(){return{closeDoubleQuote:"”",closeSingleQuote:"’",copyright:"©",ellipsis:"…",emDash:"—",laquo:"«",leftArrow:"←",multiplication:"×",notEqual:"≠",oneHalf:"½",oneQuarter:"¼",openDoubleQuote:"“",openSingleQuote:"‘",plusMinus:"±",raquo:"»",registeredTrademark:"®",rightArrow:"→",servicemark:"℠",superscriptThree:"³",superscriptTwo:"²",threeQuarters:"¾",trademark:"™"}},addInputRules(){const t=[];return this.options.emDash!==!1&&t.push(iE(this.options.emDash)),this.options.ellipsis!==!1&&t.push(lE(this.options.ellipsis)),this.options.openDoubleQuote!==!1&&t.push(cE(this.options.openDoubleQuote)),this.options.closeDoubleQuote!==!1&&t.push(uE(this.options.closeDoubleQuote)),this.options.openSingleQuote!==!1&&t.push(dE(this.options.openSingleQuote)),this.options.closeSingleQuote!==!1&&t.push(pE(this.options.closeSingleQuote)),this.options.leftArrow!==!1&&t.push(fE(this.options.leftArrow)),this.options.rightArrow!==!1&&t.push(mE(this.options.rightArrow)),this.options.copyright!==!1&&t.push(hE(this.options.copyright)),this.options.trademark!==!1&&t.push(gE(this.options.trademark)),this.options.servicemark!==!1&&t.push(bE(this.options.servicemark)),this.options.registeredTrademark!==!1&&t.push(vE(this.options.registeredTrademark)),this.options.oneHalf!==!1&&t.push(jE(this.options.oneHalf)),this.options.plusMinus!==!1&&t.push(kE(this.options.plusMinus)),this.options.notEqual!==!1&&t.push(yE(this.options.notEqual)),this.options.laquo!==!1&&t.push(wE(this.options.laquo)),this.options.raquo!==!1&&t.push(_E(this.options.raquo)),this.options.multiplication!==!1&&t.push(xE(this.options.multiplication)),this.options.superscriptTwo!==!1&&t.push(CE(this.options.superscriptTwo)),this.options.superscriptThree!==!1&&t.push(DE(this.options.superscriptThree)),this.options.oneQuarter!==!1&&t.push(FE(this.options.oneQuarter)),this.options.threeQuarters!==!1&&t.push(EE(this.options.threeQuarters)),t}}),jt=[];for(var kd=0;kd<256;++kd)jt.push((kd+256).toString(16).slice(1));function SE(t,e=0){return(jt[t[e+0]]+jt[t[e+1]]+jt[t[e+2]]+jt[t[e+3]]+"-"+jt[t[e+4]]+jt[t[e+5]]+"-"+jt[t[e+6]]+jt[t[e+7]]+"-"+jt[t[e+8]]+jt[t[e+9]]+"-"+jt[t[e+10]]+jt[t[e+11]]+jt[t[e+12]]+jt[t[e+13]]+jt[t[e+14]]+jt[t[e+15]]).toLowerCase()}var Wi,AE=new Uint8Array(16);function ME(){if(!Wi&&(Wi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Wi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Wi(AE)}var TE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const l0={randomUUID:TE};function NE(t,e,n){if(l0.randomUUID&&!t)return l0.randomUUID();t=t||{};var o=t.random||(t.rng||ME)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,SE(o)}function RE(t,e=JSON.stringify){const n={};return t.filter(o=>{const s=e(o);return Object.prototype.hasOwnProperty.call(n,s)?!1:n[s]=!0})}function OE(t){const e=t.filter((o,s)=>t.indexOf(o)!==s);return RE(e)}var BE=me.create({name:"uniqueID",priority:1e4,addOptions(){return{attributeName:"id",types:[],generateID:()=>NE(),filterTransaction:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{[this.options.attributeName]:{default:null,parseHTML:t=>t.getAttribute(`data-${this.options.attributeName}`),renderHTML:t=>t[this.options.attributeName]?{[`data-${this.options.attributeName}`]:t[this.options.attributeName]}:{}}}}]},onCreate(){var t;const e=this.editor.extensionManager.extensions.find(i=>i.name==="collaboration"),n=this.editor.extensionManager.extensions.find(i=>
258i.name==="collaborationCaret"),s=[e,n].filter(Boolean).find(i=>{var l;return(l=i?.options)==null?void 0:l.provider}),r=(t=s?.options)==null?void 0:t.provider,a=()=>{const{view:i,state:l}=this.editor,{tr:c,doc:u}=l,{types:d,attributeName:p,generateID:m}=this.options;n5(u,g=>d.includes(g.type.name)&&g.attrs[p]===null).forEach(({node:g,pos:v})=>{c.setNodeMarkup(v,void 0,{...g.attrs,[p]:m({node:g,pos:v})})}),c.setMeta("addToHistory",!1),i.dispatch(c),r&&r.off("synced",a)};if(s){if(!r)return a();r.on("synced",a)}else return a()},addProseMirrorPlugins(){let t=null,e=!1;return[new xe({key:new we("uniqueID"),appendTransaction:(n,o,s)=>{const r=n.some(g=>g.docChanged)&&!o.doc.eq(s.doc),a=this.options.filterTransaction&&n.some(g=>{var v,j;return!((j=(v=this.options).filterTransaction)!=null&&j.call(v,g))});if(n.find(g=>g.getMeta("y-sync$"))||!r||a)return;const{tr:l}=s,{types:c,attributeName:u,generateID:d}=this.options,p=Jc(o.doc,n),{mapping:m}=p;if(Xc(p).forEach(({newRange:g})=>{const v=km(s.doc,g,k=>c.includes(k.type.name)),j=v.map(({node:k})=>k.attrs[u]).filter(k=>k!==null);v.forEach(({node:k,pos:y},w)=>{var C;const x=(C=l.doc.nodeAt(y))==null?void 0:C.attrs[u];if(x===null){l.setNodeMarkup(y,void 0,{...k.attrs,[u]:d({node:k,pos:y})});return}const _=v[w+1];if(_&&k.content.size===0){if(l.setNodeMarkup(_.pos,void 0,{..._.node.attrs,[u]:x}),j[w+1]=x,_.node.attrs[u])return;const R=d({node:k,pos:y});return l.setNodeMarkup(y,void 0,{...k.attrs,[u]:R}),j[w]=R,l}const F=OE(j),{deleted:D}=m.invert().mapResult(y);D&&F.includes(x)&&l.setNodeMarkup(y,void 0,{...k.attrs,[u]:d({node:k,pos:y})})})}),!!l.steps.length)return l.setStoredMarks(s.tr.storedMarks),l},view(n){const o=s=>{var r;t=(r=n.dom.parentElement)!=null&&r.contains(s.target)?n.dom.parentElement:null};return window.addEventListener("dragstart",o),{destroy(){window.removeEventListener("dragstart",o)}}},props:{handleDOMEvents:{drop:(n,o)=>{var s,r;return(t!==n.dom.parentElement||((s=o.dataTransfer)==null?void 0:s.effectAllowed)==="copyMove"||((r=o.dataTransfer)==null?void 0:r.effectAllowed)==="copy")&&(t=null,e=!0),!1},paste:()=>(e=!0,!1)},transformPasted:n=>{if(!e)return n;const{types:o,attributeName:s}=this.options,r=a=>{const i=[];return a.forEach(l=>{if(l.isText){i.push(l);return}
258if(!o.includes(l.type.name)){i.push(l.copy(r(l.content)));return}const c=l.type.create({...l.attrs,[s]:null},r(l.content),l.marks);i.push(c)}),z.from(i)};return e=!1,new W(r(n.content),n.openStart,n.openEnd)}}})]}});const c0={};function LE(t){let e=c0[t];if(e)return e;e=c0[t]=[];for(let n=0;n<128;n++){const o=String.fromCharCode(n);e.push(o)}for(let n=0;n<t.length;n++){const o=t.charCodeAt(n);e[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2)}return e}function Fr(t,e){typeof e!="string"&&(e=Fr.defaultChars);const n=LE(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(o){let s="";for(let r=0,a=o.length;r<a;r+=3){const i=parseInt(o.slice(r+1,r+3),16);if(i<128){s+=n[i];continue}if((i&224)===192&&r+3<a){const l=parseInt(o.slice(r+4,r+6),16);if((l&192)===128){const c=i<<6&1984|l&63;c<128?s+="��":s+=String.fromCharCode(c),r+=3;continue}}if((i&240)===224&&r+6<a){const l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16);if((l&192)===128&&(c&192)===128){const u=i<<12&61440|l<<6&4032|c&63;u<2048||u>=55296&&u<=57343?s+="���":s+=String.fromCharCode(u),r+=6;continue}}if((i&248)===240&&r+9<a){const l=parseInt(o.slice(r+4,r+6),16),c=parseInt(o.slice(r+7,r+9),16),u=parseInt(o.slice(r+10,r+12),16);if((l&192)===128&&(c&192)===128&&(u&192)===128){let d=i<<18&1835008|l<<12&258048|c<<6&4032|u&63;d<65536||d>1114111?s+="����":(d-=65536,s+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),r+=9;continue}}s+="�"}return s})}Fr.defaultChars=";/?:@&=+$,#";Fr.componentChars="";const u0={};function PE(t){let e=u0[t];if(e)return e;e=u0[t]=[];for(let n=0;n<128;n++){const o=String.fromCharCode(n);/^[0-9a-z]$/i.test(o)?e.push(o):e.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<t.length;n++)e[t.charCodeAt(n)]=t[n];return e}function ui(t,e,n){typeof e!="string"&&(n=e,e=ui.defaultChars),typeof n>"u"&&(n=!0);const o=PE(e);let s="";for(let r=0,a=t.length;r<a;r++){const i=t.charCodeAt(r);if(n&&i===37&&r+2<a&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3))){s+=t.slice(r,r+3),r+=2;continue}if(i<128){s+=o[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1<a){const l=t.charCodeAt(r+1);if(l>=56320&&l<=57343){s+=encodeURIComponent(t[r]+t[r+1]),r++;continue}}s+="%EF%BF%BD";continue}s+=encodeURIComponent(t[r])}return s}ui.defaultChars=";/?:@&=+$,-_.!~*'()#";ui.componentChars="-_.!~*'()";function Wm(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function dc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const zE=/^([a-z0-9.+-]+:)/i,$E=/:[0-9]*$/,HE=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,VE=["<",">",'"',"`"," ","\r",`
259`,"	"],UE=["{","}","|","\\","^","`"].concat(VE),qE=["'"].concat(UE),d0=["%","/","?",";","#"].concat(qE),p0=["/","?","#"],WE=255,f0=/^[+a-z0-9A-Z_-]{0,63}$/,KE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m0={javascript:!0,"javascript:":!0},h0={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Km(t,e){if(t&&t instanceof dc)return t;const n=new dc;return n.parse(t,e),n}dc.prototype.parse=function(t,e){let n,o,s,r=t;if(r=r.trim(),!e&&t.split("#").length===1){const c=HE.exec(r);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=zE.exec(r);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,r=r.substr(a.length)),(e||a||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=r.substr(0,2)==="//",s&&!(a&&m0[a])&&(r=r.substr(2),this.slashes=!0)),!m0[a]&&(s||a&&!h0[a])){let c=-1;for(let h=0;h<p0.length;h++)o=r.indexOf(p0[h]),o!==-1&&(c===-1||o<c)&&(c=o);let u,d;c===-1?d=r.lastIndexOf("@"):d=r.lastIndexOf("@",c),d!==-1&&(u=r.slice(0,d),r=r.slice(d+1),this.auth=u),c=-1;for(let h=0;h<d0.length;h++)o=r.indexOf(d0[h]),o!==-1&&(c===-1||o<c)&&(c=o);c===-1&&(c=r.length),r[c-1]===":"&&c--;const p=r.slice(0,c);r=r.slice(c),this.parseHost(p),this.hostname=this.hostname||"";const m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){const h=this.hostname.split(/\./);for(let g=0,v=h.length;g<v;g++){const j=h[g];if(j&&!j.match(f0)){let k="";for(let y=0,w=j.length;y<w;y++)j.charCodeAt(y)>127?k+="x":k+=j[y];if(!k.match(f0)){const y=h.slice(0,g),w=h.slice(g+1),C=j.match(KE);C&&(y.push(C[1]),w.unshift(C[2])),w.length&&(r=w.join(".")+r),this.hostname=y.join(".");break}}}}this.hostname.length>WE&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const i=r.indexOf("#");i!==-1&&(this.hash=r.substr(i),r=r.slice(0,i));const l=r.indexOf("?");return l!==-1&&(this.search=r.substr(l),r=r.slice(0,l)),r&&(this.pathname=r),h0[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};dc.prototype.parseHost=function(t){let e=$E.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const GE=Object.freeze(Object.defineProperty({__proto__:null,decode:Fr,encode:ui,format:Wm,parse:Km},Symbol.toStringTag,{value:"Module"})),F4=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E4=/[\0-\x1F\x7F-\x9F]/,ZE=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Gm=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,I4=/[\$\+<->
259\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,S4=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,JE=Object.freeze(Object.defineProperty({__proto__:null,Any:F4,Cc:E4,Cf:ZE,P:Gm,S:I4,Z:S4},Symbol.toStringTag,{value:"Module"})),YE
vendor: 8,319 bytes, line 259
259=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms�„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;æ«§ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapÓºÓ¾cr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpÔ¦Ôªon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋ĀipÕªÕ¯sts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0Ö£mallSquare;旼erySmallSquare;斪Ͱֺ\0Ö¿\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0Ú²f;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgÜ´Ü·r;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyÞ±Þµrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āeyß¶ß»dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;æ««y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;
vendor: 7,828 bytes, line 259
259쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;
vendor: 4,294 bytes, line 259
259䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;
vendor: 6,210 bytes, line 259
259astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌
259'.split("").map(t=>t.charCodeAt(0))),XE=new Uint16Array("Ȁaglq	��\x1BÉ­�\0\0�p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var yd;const QE=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),eI=(yd=String.fromCodePoint)!==null&&yd!==void 0?yd:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function tI(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=QE.get(t))!==null&&e!==void 0?e:t}var ht;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(ht||(ht={}));const nI=32;var Vo;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Vo||(Vo={}));function qp(t){return t>=ht.ZERO&&t<=ht.NINE}function oI(t){return t>=ht.UPPER_A&&t<=ht.UPPER_F||t>=ht.LOWER_A&&t<=ht.LOWER_F}function sI(t){return t>=ht.UPPER_A&&t<=ht.UPPER_Z||t>=ht.LOWER_A&&t<=ht.LOWER_Z||qp(t)}function rI(t){return t===ht.EQUALS||sI(t)}var pt;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(pt||(pt={}));var Lo;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Lo||(Lo={}));class aI{constructor(e,n,o){this.decodeTree=e,this.emitCodePoint=n,this.errors=o,this.state=pt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lo.Strict}startEntity(e){this.decodeMode=e,this.state=pt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case pt.EntityStart:return e.charCodeAt(n)===ht.NUM?(this.state=pt.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=pt.NamedEntity,this.stateNamedEntity(e,n));case pt.NumericStart:return this.stateNumericStart(e,n);case pt.NumericDecimal:return this.stateNumericDecimal(e,n);case pt.NumericHex:return this.stateNumericHex(e,n);
259case pt.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|nI)===ht.LOWER_X?(this.state=pt.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=pt.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,o,s){if(n!==o){const r=o-n;this.result=this.result*Math.pow(s,r)+parseInt(e.substr(n,r),s),this.consumed+=r}}stateNumericHex(e,n){const o=n;for(;n<e.length;){const s=e.charCodeAt(n);if(qp(s)||oI(s))n+=1;else return this.addToNumericResult(e,o,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(e,o,n,16),-1}stateNumericDecimal(e,n){const o=n;for(;n<e.length;){const s=e.charCodeAt(n);if(qp(s))n+=1;else return this.addToNumericResult(e,o,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(e,o,n,10),-1}emitNumericEntity(e,n){var o;if(this.consumed<=n)return(o=this.errors)===null||o===void 0||o.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===ht.SEMI)this.consumed+=1;else if(this.decodeMode===Lo.Strict)return 0;return this.emitCodePoint(tI(this.result),this.consumed),this.errors&&(e!==ht.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:o}=this;let s=o[this.treeIndex],r=(s&Vo.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const a=e.charCodeAt(n);if(this.treeIndex=iI(o,s,this.treeIndex+Math.max(1,r),a),this.treeIndex<0)return this.result===0||this.decodeMode===Lo.Attribute&&(r===0||rI(a))?0:this.emitNotTerminatedNamedEntity();if(s=o[this.treeIndex],r=(s&Vo.VALUE_LENGTH)>>14,r!==0){if(a===ht.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==Lo.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:o}=this,s=(o[n]&Vo.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,o){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[e]&~Vo.VALUE_LENGTH:s[e+1],o),n===3&&this.emitCodePoint(s[e+2],o),o}end(){var e;switch(this.state){case pt.NamedEntity:return this.result!==0&&(this.decodeMode!==Lo.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case pt.NumericDecimal:return this.emitNumericEntity(0,2);case pt.NumericHex:return this.emitNumericEntity(0,3);case pt.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case pt.EntityStart:return 0}}}function A4(t){let e="";const n=new aI(t,o=>e+=eI(o));return function(s,r){let a=0,i=0;for(;(i=s.indexOf("&",i))>=0;){e+=s.slice(a,i),n.startEntity(r);const c=n.write(s,i+1);if(c<0){a=i+n.end();break}a=i+c,i=c===0?a+1:a}const l=e+s.slice(a);return e="",l}}function iI(t,e,n,o){const s=(e&Vo.BRANCH_LENGTH)>>7,r=e&Vo.JUMP_TABLE;if(s===0)return r!==0&&o===r?n:-1;if(r){const l=o-r;return l<0||l>=s?-1:t[n+l]-1}let a=n,i=a+s-1;for(;a<=i;){const l=a+i>>>1,c=t[l];if(c<o)a=l+1;else if(c>o)i=l-1;else return t[l+s]}return-1}const lI=A4(YE);A4(XE);function M4(t,e=Lo.Legacy){return lI(t,e)}function cI(t){return Object.prototype.toString.call(t)}function Zm(t){return cI(t)==="[object String]"}const uI=Object.prototype.hasOwnProperty;function dI(t,e){return uI.call(t,e)}function su(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(o){t[o]=n[o]})}}),t}function T4(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function Jm(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function pc(t){if(t>65535){t-=65536;const e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}return String.fromCharCode(t)}const N4=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,pI=/&([a-z#][a-z0-9]{1,31});/gi,fI=new RegExp(N4.source+"|"+pI.source,"gi"),mI=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function hI(t,e){if(e.charCodeAt(0)===35&&mI.test(e)){const o=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);
259return Jm(o)?pc(o):t}const n=M4(t);return n!==t?n:t}function gI(t){return t.indexOf("\\")<0?t:t.replace(N4,"$1")}function Er(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(fI,function(e,n,o){return n||hI(e,o)})}const bI=/[&<>"]/,vI=/[&<>"]/g,jI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function kI(t){return jI[t]}function rs(t){return bI.test(t)?t.replace(vI,kI):t}const yI=/[.?*+^$[\]\\(){}|-]/g;function wI(t){return t.replace(yI,"\\$&")}function Re(t){switch(t){case 9:case 32:return!0}return!1}function za(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function $a(t){return Gm.test(t)||I4.test(t)}function Ha(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ru(t){return t=t.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}const _I={mdurl:GE,ucmicro:JE},xI=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:T4,assign:su,escapeHtml:rs,escapeRE:wI,fromCodePoint:pc,has:dI,isMdAsciiPunct:Ha,isPunctChar:$a,isSpace:Re,isString:Zm,isValidEntityCode:Jm,isWhiteSpace:za,lib:_I,normalizeReference:ru,unescapeAll:Er,unescapeMd:gI},Symbol.toStringTag,{value:"Module"}));function CI(t,e,n){let o,s,r,a;const i=t.posMax,l=t.pos;for(t.pos=e+1,o=1;t.pos<i;){if(r=t.src.charCodeAt(t.pos),r===93&&(o--,o===0)){s=!0;break}if(a=t.pos,t.md.inline.skipToken(t),r===91){if(a===t.pos-1)o++;else if(n)return t.pos=l,-1}}let c=-1;return s&&(c=t.pos),t.pos=l,c}function DI(t,e,n){let o,s=e;const r={ok:!1,pos:0,str:""};if(t.charCodeAt(s)===60){for(s++;s<n;){if(o=t.charCodeAt(s),o===10||o===60)return r;if(o===62)return r.pos=s+1,r.str=Er(t.slice(e+1,s)),r.ok=!0,r;if(o===92&&s+1<n){s+=2;continue}s++}return r}let a=0;for(;s<n&&(o=t.charCodeAt(s),!(o===32||o<32||o===127));){if(o===92&&s+1<n){if(t.charCodeAt(s+1)===32)break;s+=2;continue}if(o===40&&(a++,a>32))return r;if(o===41){if(a===0)break;a--}s++}return e===s||a!==0||(r.str=Er(t.slice(e,s)),r.pos=s,r.ok=!0),r}function FI(t,e,n,o){let s,r=e;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(o)a.str=o.str,a.marker=o.marker;else{if(r>=n)return a;let i=t.charCodeAt(r);if(i!==34&&i!==39&&i!==40)return a;e++,r++,i===40&&(i=41),a.marker=i}for(;r<n;){if(s=t.charCodeAt(r),s===a.marker)return a.pos=r+1,a.str+=Er(t.slice(e,r)),a.ok=!0,a;if(s===40&&a.marker===41)return a;s===92&&r+1<n&&r++,r++}return a.can_continue=!0,a.str+=Er(t.slice(e,r)),a}const EI=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:DI,parseLinkLabel:CI,parseLinkTitle:FI},Symbol.toStringTag,{value:"Module"})),Zn={};Zn.code_inline=function(t,e,n,o,s){const r=t[e];return"<code"+s.renderAttrs(r)+">"+rs(r.content)+"</code>"};Zn.code_block=function(t,e,n,o,s){const r=t[e];return"<pre"+s.renderAttrs(r)+"><code>"+rs(t[e].content)+`</code></pre>
260`};Zn.fence=function(t,e,n,o,s){const r=t[e],a=r.info?Er(r.info).trim():"";let i="",l="";if(a){const u=a.split(/(\s+)/g);i=u[0],l=u.slice(2).join("")}let c;if(n.highlight?c=n.highlight(r.content,i,l)||rs(r.content):c=rs(r.content),c.indexOf("<pre")===0)return c+`
261`;if(a){const u=r.attrIndex("class"),d=r.attrs?r.attrs.slice():[];u<0?d.push(["class",n.langPrefix+i]):(d[u]=d[u].slice(),d[u][1]+=" "+n.langPrefix+i);const p={attrs:d};return`<pre><code${s.renderAttrs(p)}>${c}</code></pre>
262`}return`<pre><code${s.renderAttrs(r)}>${c}</code></pre>
263`};Zn.image=function(t,e,n,o,s){const r=t[e];return r.attrs[r.attrIndex("alt")][1]=s.renderInlineAsText(r.children,n,o),s.renderToken(t,e,n)};Zn.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
264`:`<br>
265`};Zn.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
266`:`<br>
267`:`
268`};Zn.text=function(t,e){return rs(t[e].content)};Zn.html_block=function(t,e){return t[e].content};Zn.html_inline=function(t,e){return t[e].content};function Ur(){this.rules=su({},Zn)}Ur.prototype.renderAttrs=function(e){let n,o,s;if(!e.attrs)return"";for(s="",n=0,o=e.attrs.length;n<o;n++)s+=" "+rs(e.attrs[n][0])+'="'+rs(e.attrs[n][1])+'"';return s};Ur.prototype.renderToken=function(e,n,o){const s=e[n];let r="";if(s.hidden)return"";s.block&&s.nesting!==-1&&n&&e[n-1].hidden&&(r+=`
269`),r+=(s.nesting===-1?"</":"<")+s.tag,r+=this.renderAttrs(s),s.nesting===0&&o.xhtmlOut&&(r+=" /");let a=!1;if(s.block&&(a=!0,s.nesting===1&&n+1<e.length)){const i=e[n+1];(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===s.tag)&&(a=!1)}return r+=a?`>
270`:">",r};Ur.prototype.renderInline=function(t,e,n){let o="";const s=this.rules;for(let r=0,a=t.length;r<a;r++){const i=t[r].type;typeof s[i]<"u"?o+=s[i](t,r,e,n,this):o+=this.renderToken(t,r,e)}return o};Ur.prototype.renderInlineAsText=function(t,e,n){let o="";for(let s=0,r=t.length;s<r;s++)switch(t[s].type){case"text":o+=t[s].content;break;case"image":o+=this.renderInlineAsText(t[s].children,e,n);break;case"html_inline":case"html_block":o+=t[s].content;break;case"softbreak":case"hardbreak":o+=`
271`;break}return o};Ur.prototype.render=function(t,e,n){let o="";const s=this.rules;for(let r=0,a=t.length;r<a;r++){const i=t[r].type;i==="inline"?o+=this.renderInline(t[r].children,e,n):typeof s[i]<"u"?o+=s[i](t,r,e,n,this):o+=this.renderToken(t,r,e,n)}return o};function Gt(){this.__rules__=[],this.__cache__=null}Gt.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Gt.prototype.__compile__=function(){const t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})};Gt.prototype.at=function(t,e,n){const o=this.__find__(t),s=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=s.alt||[],this.__cache__=null};Gt.prototype.before=function(t,e,n,o){const s=this.__find__(t),r=o||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s,0,{name:e,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null};Gt.prototype.after=function(t,e,n,o){const s=this.__find__(t),r=o||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s+1,0,{name:e,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null};Gt.prototype.push=function(t,e,n){const o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};Gt.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(o){const s=this.__find__(o);if(s<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[s].enabled=!0,n.push(o)},this),this.__cache__=null,n};
271Gt.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};Gt.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(o){const s=this.__find__(o);if(s<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[s].enabled=!1,n.push(o)},this),this.__cache__=null,n};Gt.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function Mn(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Mn.prototype.attrIndex=function(e){if(!this.attrs)return-1;const n=this.attrs;for(let o=0,s=n.length;o<s;o++)if(n[o][0]===e)return o;return-1};Mn.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Mn.prototype.attrSet=function(e,n){const o=this.attrIndex(e),s=[e,n];o<0?this.attrPush(s):this.attrs[o]=s};Mn.prototype.attrGet=function(e){const n=this.attrIndex(e);let o=null;return n>=0&&(o=this.attrs[n][1]),o};Mn.prototype.attrJoin=function(e,n){const o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};function R4(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}R4.prototype.Token=Mn;const II=/\r\n?|\n/g,SI=/\0/g;function AI(t){let e;e=t.src.replace(II,`
272`),e=e.replace(SI,"�"),t.src=e}function MI(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function TI(t){const e=t.tokens;for(let n=0,o=e.length;n<o;n++){const s=e[n];s.type==="inline"&&t.md.inline.parse(s.content,t.md,t.env,s.children)}}function NI(t){return/^<a[>\s]/i.test(t)}function RI(t){return/^<\/a\s*>/i.test(t)}function OI(t){const e=t.tokens;if(t.md.options.linkify)for(let n=0,o=e.length;n<o;n++){if(e[n].type!=="inline"||!t.md.linkify.pretest(e[n].content))continue;let s=e[n].children,r=0;for(let a=s.length-1;a>=0;a--){const i=s[a];if(i.type==="link_close"){for(a--;s[a].level!==i.level&&s[a].type!=="link_open";)a--;continue}if(i.type==="html_inline"&&(NI(i.content)&&r>0&&r--,RI(i.content)&&r++),!(r>0)&&i.type==="text"&&t.md.linkify.test(i.content)){const l=i.content;let c=t.md.linkify.match(l);const u=[];let d=i.level,p=0;c.length>0&&c[0].index===0&&a>0&&s[a-1].type==="text_special"&&(c=c.slice(1));for(let m=0;m<c.length;m++){const h=c[m].url,g=t.md.normalizeLink(h);if(!t.md.validateLink(g))continue;let v=c[m].text;c[m].schema?c[m].schema==="mailto:"&&!/^mailto:/i.test(v)?v=t.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=t.md.normalizeLinkText(v):v=t.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,"");const j=c[m].index;if(j>p){const C=new t.Token("text","",0);C.content=l.slice(p,j),C.level=d,u.push(C)}const k=new t.Token("link_open","a",1);k.attrs=[["href",g]],k.level=d++,k.markup="linkify",k.info="auto",u.push(k);const y=new t.Token("text","",0);y.content=v,y.level=d,u.push(y);const w=new t.Token("link_close","a",-1);w.level=--d,w.markup="linkify",w.info="auto",u.push(w),p=c[m].lastIndex}if(p<l.length){const m=new t.Token("text","",0);m.content=l.slice(p),m.level=d,u.push(m)}e[n].children=s=T4(s,a,u)}}}}const O4=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,BI=/\((c|tm|r)\)/i,LI=/\((c|tm|r)\)/ig,PI={c:"©",r:"®",tm:"™"};function zI(t,e){return PI[e.toLowerCase()]}function $I(t){let e=0;for(let n=t.length-1;n>=0;n--){const o=t[n];o.type==="text"&&!e&&(o.content=o.content.replace(LI,zI)),o.type==="link_open"&&o.info==="auto"&&e--,o.type==="link_close"&&o.info==="auto"&&e++}}function HI(t){let e=0;for(let n=t.length-1;n>=0;n--){const o=t[n];o.type==="text"&&!e&&O4.test(o.content)&&(o.content=o.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),o.type==="link_open"&&o.info==="auto"&&e--,o.type==="link_close"&&o.info==="auto"&&e++}}function VI(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(BI.test(t.tokens[e].content)&&$I(t.tokens[e].children),O4.test(t.tokens[e].content)&&HI(t.tokens[e].children))}const UI=/['"]/,g0=/['"]/g,b0="’";function Ki(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function qI(t,e){let n;const o=[];for(let s=0;s<t.length;s++){const r=t[s],a=t[s].level;for(n=o.length-1;n>=0&&!(o[n].level<=a);n--);if(o.length=n+1,r.type!=="text")continue;let i=r.content,l=0,c=i.length;e:for(;l<c;){g0.lastIndex=l;const u=g0.exec(i);if(!u)break;let d=!0,p=!0;l=u.index+1;const m=u[0]==="'";let h=32;if(u.index-1>=0)h=i.charCodeAt(u.index-1);else for(n=s-1;n>=0&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n--)if(t[n].content){h=t[n].content.charCodeAt(t[n].content.length-1);break}let g=32;if(l<c)g=i.charCodeAt(l);else for(n=s+1;n<t.length&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n++)if(t[n].content){g=t[n].content.charCodeAt(0);break}const v=Ha(h)||$a(String.fromCharCode(h)),j=Ha(g)||$a(String.fromCharCode(g)),k=za(h),y=za(g);if(y?d=!1:j&&(k||v||(d=!1)),k?p=!1:v&&(y||j||(p=!1)),g===34&&u[0]==='"'&&h>=48&&h<=57&&(p=d=!1),d&&p&&(d=v,p=j),!d&&!p){m&&(r.content=Ki(r.content,u.index,b0));continue}if(p)for(n=o.length-1;n>=0;n--){let w=o[n];if(o[n].level<a)break;if(w.single===m&&o[n].level===a){w=o[n];let C,x;m?(C=e.md.options.quotes[2],x=e.md.options.quotes[3]):(C=e.md.options.quotes[0],x=e.md.options.quotes[1]),r.content=Ki(r.content,u.index,x),t[w.token].content=Ki(t[w.token].content,w.pos,C),l+=x.length-1,w.token===s&&(l+=C.length-1),i=r.content,c=i.length,o.length=n;continue e}}d?o.push({token:s,pos:u.index,single:m,level:a}):p&&m&&(r.content=Ki(r.content,u.index,b0))}}}function WI(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!UI.test(t.tokens[e].content)||qI(t.tokens[e].children,t)}function KI(t){let e,n;const o=t.tokens,s=o.length;for(let r=0;r<s;r++){if(o[r].type!=="inline")continue;const a=o[r].children,i=a.length;for(e=0;e<i;
272e++)a[e].type==="text_special"&&(a[e].type="text");for(e=n=0;e<i;e++)a[e].type==="text"&&e+1<i&&a[e+1].type==="text"?a[e+1].content=a[e].content+a[e+1].content:(e!==n&&(a[n]=a[e]),n++);e!==n&&(a.length=n)}}const wd=[["normalize",AI],["block",MI],["inline",TI],["linkify",OI],["replacements",VI],["smartquotes",WI],["text_join",KI]];function Ym(){this.ruler=new Gt;for(let t=0;t<wd.length;t++)this.ruler.push(wd[t][0],wd[t][1])}Ym.prototype.process=function(t){const e=this.ruler.getRules("");for(let n=0,o=e.length;n<o;n++)e[n](t)};Ym.prototype.State=R4;function Jn(t,e,n,o){this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const s=this.src;for(let r=0,a=0,i=0,l=0,c=s.length,u=!1;a<c;a++){const d=s.charCodeAt(a);if(!u)if(Re(d)){i++,d===9?l+=4-l%4:l++;continue}else u=!0;(d===10||a===c-1)&&(d!==10&&a++,this.bMarks.push(r),this.eMarks.push(a),this.tShift.push(i),this.sCount.push(l),this.bsCount.push(0),u=!1,i=0,l=0,r=a+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Jn.prototype.push=function(t,e,n){const o=new Mn(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Jn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Jn.prototype.skipEmptyLines=function(e){for(let n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Jn.prototype.skipSpaces=function(e){for(let n=this.src.length;e<n;e++){const o=this.src.charCodeAt(e);if(!Re(o))break}return e};Jn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Re(this.src.charCodeAt(--e)))return e+1;return e};Jn.prototype.skipChars=function(e,n){for(let o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Jn.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Jn.prototype.getLines=function(e,n,o,s){if(e>=n)return"";const r=new Array(n-e);for(let a=0,i=e;i<n;i++,a++){let l=0;const c=this.bMarks[i];let u=c,d;for(i+1<n||s?d=this.eMarks[i]+1:d=this.eMarks[i];u<d&&l<o;){const p=this.src.charCodeAt(u);if(Re(p))p===9?l+=4-(l+this.bsCount[i])%4:l++;else if(u-c<this.tShift[i])l++;else break;u++}l>o?r[a]=new Array(l-o+1).join(" ")+this.src.slice(u,d):r[a]=this.src.slice(u,d)}return r.join("")};Jn.prototype.Token=Mn;const GI=65536;function _d(t,e){const n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function v0(t){const e=[],n=t.length;let o=0,s=t.charCodeAt(o),r=!1,a=0,i="";for(;o<n;)s===124&&(r?(i+=t.substring(a,o-1),a=o):(e.push(i+t.substring(a,o)),i="",a=o+1)),r=s===92,o++,s=t.charCodeAt(o);return e.push(i+t.substring(a)),e}function ZI(t,e,n,o){if(e+2>n)return!1;let s=e+1;if(t.sCount[s]<t.blkIndent||t.sCount[s]-t.blkIndent>=4)return!1;let r=t.bMarks[s]+t.tShift[s];if(r>=t.eMarks[s])return!1;const a=t.src.charCodeAt(r++);if(a!==124&&a!==45&&a!==58||r>=t.eMarks[s])return!1;const i=t.src.charCodeAt(r++);if(i!==124&&i!==45&&i!==58&&!Re(i)||a===45&&Re(i))return!1;for(;r<t.eMarks[s];){const w=t.src.charCodeAt(r);if(w!==124&&w!==45&&w!==58&&!Re(w))return!1;r++}let l=_d(t,e+1),c=l.split("|");const u=[];for(let w=0;w<c.length;w++){const C=c[w].trim();if(!C){if(w===0||w===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(C))return!1;C.charCodeAt(C.length-1)===58?u.push(C.charCodeAt(0)===58?"center":"right"):C.charCodeAt(0)===58?u.push("left"):u.push("")}if(l=_d(t,e).trim(),l.indexOf("|")===-1||t.sCount[e]-t.blkIndent>=4)return!1;c=v0(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==u.length)return!1;if(o)return!0;const p=t.parentType;t.parentType="table";const m=t.md.block.ruler.getRules("blockquote"),h=t.push("table_open","table",1),g=[e,0];h.map=g;const v=t.push("thead_open","thead",1);v.map=[e,e+1];const j=t.push("tr_open","tr",1);j.map=[e,e+1];for(let w=0;w<c.length;w++){const C=t.push("th_open","th",1);u[w]&&(C.attrs=[["style","text-align:"+u[w]]]);const x=t.push("inline","",0);x.content=c[w].trim(),x.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let k,y=0;for(s=e+2;s<n&&!(t.sCount[s]<t.blkIndent);s++){let w=!1;for(let x=0,_=m.length;x<_;x++)if(m[x](t,s,n,!0)){w=!0;break}if(w||(l=_d(t,s).trim(),!l)||t.sCount[s]-t.blkIndent>=4||(c=v0(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),y+=d-c.length,y>GI))break;if(s===e+2){const x=t.push("tbody_open","tbody",1);x.map=k=[e+2,0]}const C=t.push("tr_open","tr",1);C.map=[s,s+1];for(let x=0;x<d;x++){const _=t.push("td_open","td",1);u[x]&&(_.attrs=[["style","text-align:"+u[x]]]);const F=t.push("inline","",0);F.content=c[x]?c[x].trim():"",F.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return k&&(t.push("tbody_close","tbody",-1),k[1]=s),t.push("table_close","table",-1),g[1]=s,t.parentType=p,t.line=s,!0}function JI(t,e,n){if(t.sCount[e]-t.blkIndent<4)return!1;let o=e+1,s=o;for(;o<n;){if(t.isEmpty(o)){o++;continue}if(t.sCount[o]-t.blkIndent>=4){o++,s=o;continue}break}t.line=s;const r=t.push("code_block","code",0);return r.content=t.getLines(e,s,4+t.blkIndent,!1)+`
273`,r.map=[e,t.line],!0}function YI(t,e,n,o){let s=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||s+3>r)return!1;
273const a=t.src.charCodeAt(s);if(a!==126&&a!==96)return!1;let i=s;s=t.skipChars(s,a);let l=s-i;if(l<3)return!1;const c=t.src.slice(i,s),u=t.src.slice(s,r);if(a===96&&u.indexOf(String.fromCharCode(a))>=0)return!1;if(o)return!0;let d=e,p=!1;for(;d++,!(d>=n||(s=i=t.bMarks[d]+t.tShift[d],r=t.eMarks[d],s<r&&t.sCount[d]<t.blkIndent));)if(t.src.charCodeAt(s)===a&&!(t.sCount[d]-t.blkIndent>=4)&&(s=t.skipChars(s,a),!(s-i<l)&&(s=t.skipSpaces(s),!(s<r)))){p=!0;break}l=t.sCount[e],t.line=d+(p?1:0);const m=t.push("fence","code",0);return m.info=u,m.content=t.getLines(e+1,d,l,!0),m.markup=c,m.map=[e,t.line],!0}function XI(t,e,n,o){let s=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];const a=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(s)!==62)return!1;if(o)return!0;const i=[],l=[],c=[],u=[],d=t.md.block.ruler.getRules("blockquote"),p=t.parentType;t.parentType="blockquote";let m=!1,h;for(h=e;h<n;h++){const y=t.sCount[h]<t.blkIndent;if(s=t.bMarks[h]+t.tShift[h],r=t.eMarks[h],s>=r)break;if(t.src.charCodeAt(s++)===62&&!y){let C=t.sCount[h]+1,x,_;t.src.charCodeAt(s)===32?(s++,C++,_=!1,x=!0):t.src.charCodeAt(s)===9?(x=!0,(t.bsCount[h]+C)%4===3?(s++,C++,_=!1):_=!0):x=!1;let F=C;for(i.push(t.bMarks[h]),t.bMarks[h]=s;s<r;){const D=t.src.charCodeAt(s);if(Re(D))D===9?F+=4-(F+t.bsCount[h]+(_?1:0))%4:F++;else break;s++}m=s>=r,l.push(t.bsCount[h]),t.bsCount[h]=t.sCount[h]+1+(x?1:0),c.push(t.sCount[h]),t.sCount[h]=F-C,u.push(t.tShift[h]),t.tShift[h]=s-t.bMarks[h];continue}if(m)break;let w=!1;for(let C=0,x=d.length;C<x;C++)if(d[C](t,h,n,!0)){w=!0;break}if(w){t.lineMax=h,t.blkIndent!==0&&(i.push(t.bMarks[h]),l.push(t.bsCount[h]),u.push(t.tShift[h]),c.push(t.sCount[h]),t.sCount[h]-=t.blkIndent);break}i.push(t.bMarks[h]),l.push(t.bsCount[h]),u.push(t.tShift[h]),c.push(t.sCount[h]),t.sCount[h]=-1}const g=t.blkIndent;t.blkIndent=0;const v=t.push("blockquote_open","blockquote",1);v.markup=">";const j=[e,0];v.map=j,t.md.block.tokenize(t,e,h);const k=t.push("blockquote_close","blockquote",-1);k.markup=">",t.lineMax=a,t.parentType=p,j[1]=t.line;for(let y=0;y<u.length;y++)t.bMarks[y+e]=i[y],t.tShift[y+e]=u[y],t.sCount[y+e]=c[y],t.bsCount[y+e]=l[y];return t.blkIndent=g,!0}function QI(t,e,n,o){const s=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let r=t.bMarks[e]+t.tShift[e];const a=t.src.charCodeAt(r++);if(a!==42&&a!==45&&a!==95)return!1;let i=1;for(;r<s;){const c=t.src.charCodeAt(r++);if(c!==a&&!Re(c))return!1;c===a&&i++}if(i<3)return!1;if(o)return!0;t.line=e+1;const l=t.push("hr","hr",0);return l.map=[e,t.line],l.markup=Array(i+1).join(String.fromCharCode(a)),!0}function j0(t,e){const n=t.eMarks[e];let o=t.bMarks[e]+t.tShift[e];const s=t.src.charCodeAt(o++);if(s!==42&&s!==45&&s!==43)return-1;if(o<n){const r=t.src.charCodeAt(o);if(!Re(r))return-1}return o}function k0(t,e){const n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];let s=n;if(s+1>=o)return-1;let r=t.src.charCodeAt(s++);if(r<48||r>57)return-1;for(;;){if(s>=o)return-1;if(r=t.src.charCodeAt(s++),r>=48&&r<=57){if(s-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return s<o&&(r=t.src.charCodeAt(s),!Re(r))?-1:s}
273function eS(t,e){const n=t.level+2;for(let o=e+2,s=t.tokens.length-2;o<s;o++)t.tokens[o].level===n&&t.tokens[o].type==="paragraph_open"&&(t.tokens[o+2].hidden=!0,t.tokens[o].hidden=!0,o+=2)}function tS(t,e,n,o){let s,r,a,i,l=e,c=!0;if(t.sCount[l]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;let u=!1;o&&t.parentType==="paragraph"&&t.sCount[l]>=t.blkIndent&&(u=!0);let d,p,m;if((m=k0(t,l))>=0){if(d=!0,a=t.bMarks[l]+t.tShift[l],p=Number(t.src.slice(a,m-1)),u&&p!==1)return!1}else if((m=j0(t,l))>=0)d=!1;else return!1;if(u&&t.skipSpaces(m)>=t.eMarks[l])return!1;if(o)return!0;const h=t.src.charCodeAt(m-1),g=t.tokens.length;d?(i=t.push("ordered_list_open","ol",1),p!==1&&(i.attrs=[["start",p]])):i=t.push("bullet_list_open","ul",1);const v=[l,0];i.map=v,i.markup=String.fromCharCode(h);let j=!1;const k=t.md.block.ruler.getRules("list"),y=t.parentType;for(t.parentType="list";l<n;){r=m,s=t.eMarks[l];const w=t.sCount[l]+m-(t.bMarks[l]+t.tShift[l]);let C=w;for(;r<s;){const I=t.src.charCodeAt(r);if(I===9)C+=4-(C+t.bsCount[l])%4;else if(I===32)C++;else break;r++}const x=r;let _;x>=s?_=1:_=C-w,_>4&&(_=1);const F=w+_;i=t.push("list_item_open","li",1),i.markup=String.fromCharCode(h);const D=[l,0];i.map=D,d&&(i.info=t.src.slice(a,m-1));const M=t.tight,R=t.tShift[l],P=t.sCount[l],E=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=F,t.tight=!0,t.tShift[l]=x-t.bMarks[l],t.sCount[l]=C,x>=s&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,l,n,!0),(!t.tight||j)&&(c=!1),j=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=E,t.tShift[l]=R,t.sCount[l]=P,t.tight=M,i=t.push("list_item_close","li",-1),i.markup=String.fromCharCode(h),l=t.line,D[1]=l,l>=n||t.sCount[l]<t.blkIndent||t.sCount[l]-t.blkIndent>=4)break;let S=!1;for(let I=0,A=k.length;I<A;I++)if(k[I](t,l,n,!0)){S=!0;break}if(S)break;if(d){if(m=k0(t,l),m<0)break;a=t.bMarks[l]+t.tShift[l]}else if(m=j0(t,l),m<0)break;if(h!==t.src.charCodeAt(m-1))break}return d?i=t.push("ordered_list_close","ol",-1):i=t.push("bullet_list_close","ul",-1),i.markup=String.fromCharCode(h),v[1]=l,t.line=l,t.parentType=y,c&&eS(t,g),!0}function nS(t,e,n,o){let s=t.bMarks[e]+t.tShift[e],r=t.eMarks[e],a=e+1;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(s)!==91)return!1;function i(k){const y=t.lineMax;if(k>=y||t.isEmpty(k))return null;let w=!1;if(t.sCount[k]-t.blkIndent>3&&(w=!0),t.sCount[k]<0&&(w=!0),!w){const _=t.md.block.ruler.getRules("reference"),F=t.parentType;t.parentType="reference";let D=!1;for(let M=0,R=_.length;M<R;M++)if(_[M](t,k,y,!0)){D=!0;break}if(t.parentType=F,D)return null}const C=t.bMarks[k]+t.tShift[k],x=t.eMarks[k];return t.src.slice(C,x+1)}let l=t.src.slice(s,r+1);r=l.length;let c=-1;for(s=1;s<r;s++){const k=l.charCodeAt(s);if(k===91)return!1;if(k===93){c=s;break}else if(k===10){const y=i(a);y!==null&&(l+=y,r=l.length,a++)}else if(k===92&&(s++,s<r&&l.charCodeAt(s)===10)){const y=i(a);y!==null&&(l+=y,r=l.length,a++)}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(s=c+2;s<r;s++){const k=l.charCodeAt(s);if(k===10){const y=i(a);y!==null&&(l+=y,r=l.length,a++)}else if(!Re(k))break}const u=t.md.helpers.parseLinkDestination(l,s,r);if(!u.ok)return!1;const d=t.md.normalizeLink(u.str);if(!t.md.validateLink(d))return!1;s=u.pos;const p=s,m=a,h=s;for(;s<r;s++){const k=l.charCodeAt(s);if(k===10){const y=i(a);y!==null&&(l+=y,r=l.length,a++)}else if(!Re(k))break}let g=t.md.helpers.parseLinkTitle(l,s,r);for(;g.can_continue;){const k=i(a);if(k===null)break;l+=k,s=r,r=l.length,a++,g=t.md.helpers.parseLinkTitle(l,s,r,g)}let v;for(s<r&&h!==s&&g.ok?(v=g.str,s=g.pos):(v="",s=p,a=m);s<r;){const k=l.charCodeAt(s);if(!Re(k))break;s++}if(s<r&&l.charCodeAt(s)!==10&&v)for(v="",s=p,a=m;s<r;){const k=l.charCodeAt(s);if(!Re(k))break;s++}if(s<r&&l.charCodeAt(s)!==10)return!1;const j=ru(l.slice(1,c));return j?(o||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[j]>"u"&&(t.env.references[j]={title:v,href:d}),t.line=a),!0):!1}const oS=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],sS="[a-zA-Z_:][a-zA-Z0-9:._-]*",rS="[^\"'=<>`\\x00-\\x20]+",aS="'[^']*'",iS='"[^"]*"',lS="(?:"+rS+"|"+aS+"|"+iS+")",cS="(?:\\s+"+sS+"(?:\\s*=\\s*"+lS+")?)",B4="<[A-Za-z][A-Za-z0-9\\-]*"+cS+"*\\s*\\/?>
273",L4="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",uS="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",dS="<[?][\\s\\S]*?[?]>",pS="<![A-Za-z][^>]*>",fS="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",mS=new RegExp("^(?:"+B4+"|"+L4+"|"+uS+"|"+dS+"|"+pS+"|"+fS+")"),hS=new RegExp("^(?:"+B4+"|"+L4+")"),or=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+oS.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(hS.source+"\\s*$"),/^$/,!1]];function gS(t,e,n,o){let s=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(s)!==60)return!1;let a=t.src.slice(s,r),i=0;for(;i<or.length&&!or[i][0].test(a);i++);if(i===or.length)return!1;if(o)return or[i][2];let l=e+1;if(!or[i][1].test(a)){for(;l<n&&!(t.sCount[l]<t.blkIndent);l++)if(s=t.bMarks[l]+t.tShift[l],r=t.eMarks[l],a=t.src.slice(s,r),or[i][1].test(a)){a.length!==0&&l++;break}}t.line=l;const c=t.push("html_block","",0);return c.map=[e,l],c.content=t.getLines(e,l,t.blkIndent,!0),!0}function bS(t,e,n,o){let s=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let a=t.src.charCodeAt(s);if(a!==35||s>=r)return!1;let i=1;for(a=t.src.charCodeAt(++s);a===35&&s<r&&i<=6;)i++,a=t.src.charCodeAt(++s);if(i>6||s<r&&!Re(a))return!1;if(o)return!0;r=t.skipSpacesBack(r,s);const l=t.skipCharsBack(r,35,s);l>s&&Re(t.src.charCodeAt(l-1))&&(r=l),t.line=e+1;const c=t.push("heading_open","h"+String(i),1);c.markup="########".slice(0,i),c.map=[e,t.line];const u=t.push("inline","",0);u.content=t.src.slice(s,r).trim(),u.map=[e,t.line],u.children=[];const d=t.push("heading_close","h"+String(i),-1);return d.markup="########".slice(0,i),!0}function vS(t,e,n){const o=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const s=t.parentType;t.parentType="paragraph";let r=0,a,i=e+1;for(;i<n&&!t.isEmpty(i);i++){if(t.sCount[i]-t.blkIndent>3)continue;if(t.sCount[i]>=t.blkIndent){let m=t.bMarks[i]+t.tShift[i];const h=t.eMarks[i];if(m<h&&(a=t.src.charCodeAt(m),(a===45||a===61)&&(m=t.skipChars(m,a),m=t.skipSpaces(m),m>=h))){r=a===61?1:2;break}}if(t.sCount[i]<0)continue;let p=!1;for(let m=0,h=o.length;m<h;m++)if(o[m](t,i,n,!0)){p=!0;break}if(p)break}if(!r)return!1;const l=t.getLines(e,i,t.blkIndent,!1).trim();t.line=i+1;const c=t.push("heading_open","h"+String(r),1);c.markup=String.fromCharCode(a),c.map=[e,t.line];const u=t.push("inline","",0);u.content=l,u.map=[e,t.line-1],u.children=[];const d=t.push("heading_close","h"+String(r),-1);return d.markup=String.fromCharCode(a),t.parentType=s,!0}function jS(t,e,n){const o=t.md.block.ruler.getRules("paragraph"),s=t.parentType;let r=e+1;for(t.parentType="paragraph";r<n&&!t.isEmpty(r);r++){if(t.sCount[r]-t.blkIndent>3||t.sCount[r]<0)continue;let c=!1;for(let u=0,d=o.length;u<d;u++)if(o[u](t,r,n,!0)){c=!0;break}if(c)break}const a=t.getLines(e,r,t.blkIndent,!1).trim();t.line=r;const i=t.push("paragraph_open","p",1);i.map=[e,t.line];const l=t.push("inline","",0);return l.content=a,l.map=[e,t.line],l.children=[],t.push("paragraph_close","p",-1),t.parentType=s,!0}const Gi=[["table",ZI,["paragraph","reference"]],["code",JI],["fence",YI,["paragraph","reference","blockquote","list"]],["blockquote",XI,["paragraph","reference","blockquote","list"]],["hr",QI,["paragraph","reference","blockquote","list"]],["list",tS,["paragraph","reference","blockquote"]],["reference",nS],["html_block",gS,["paragraph","reference","blockquote"]],["heading",bS,["paragraph","reference","blockquote"]],["lheading",vS],["paragraph",jS]];function au(){this.ruler=new Gt;for(let t=0;t<Gi.length;t++)this.ruler.push(Gi[t][0],Gi[t][1],{alt:(Gi[t][2]||[]).slice()})}au.prototype.tokenize=function(t,e,n){const o=this.ruler.getRules(""),s=o.length,r=t.md.options.maxNesting;let a=e,i=!1;for(;a<n&&(t.line=a=t.skipEmptyLines(a),!(a>=n||t.sCount[a]<t.blkIndent));){if(t.level>=r){t.line=n;break}const l=t.line;let c=!1;for(let u=0;u<s;u++)if(c=o[u](t,a,n,!1),c){if(l>=t.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");t.tight=!i,t.isEmpty(t.line-1)&&(i=!0),a=t.line,a<n&&t.isEmpty(a)&&(i=!0,a++,t.line=a)}};au.prototype.parse=function(t,e,n,o){if(!t)return;const s=new this.State(t,e,n,o);this.tokenize(s,s.line,s.lineMax)};au.prototype.State=Jn;function di(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}di.prototype.pushPending=function(){const t=new Mn("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};di.prototype.push=function(t,e,n){this.pending&&this.pushPending();const o=new Mn(t,e,n);let s=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(s),o};di.prototype.scanDelims=function(t,e){const n=this.posMax,o=this.src.charCo
273deAt(t),s=t>0?this.src.charCodeAt(t-1):32;let r=t;for(;r<n&&this.src.charCodeAt(r)===o;)r++;const a=r-t,i=r<n?this.src.charCodeAt(r):32,l=Ha(s)||$a(String.fromCharCode(s)),c=Ha(i)||$a(String.fromCharCode(i)),u=za(s),d=za(i),p=!d&&(!c||u||l),m=!u&&(!l||d||c);return{can_open:p&&(e||!m||l),can_close:m&&(e||!p||c),length:a}};di.prototype.Token=Mn;function kS(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function yS(t,e){let n=t.pos;for(;n<t.posMax&&!kS(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}const wS=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function _S(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;const n=t.pos,o=t.posMax;if(n+3>o||t.src.charCodeAt(n)!==58||t.src.charCodeAt(n+1)!==47||t.src.charCodeAt(n+2)!==47)return!1;const s=t.pending.match(wS);if(!s)return!1;const r=s[1],a=t.md.linkify.matchAtStart(t.src.slice(n-r.length));if(!a)return!1;let i=a.url;if(i.length<=r.length)return!1;i=i.replace(/\*+$/,"");const l=t.md.normalizeLink(i);if(!t.md.validateLink(l))return!1;if(!e){t.pending=t.pending.slice(0,-r.length);const c=t.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const u=t.push("text","",0);u.content=t.md.normalizeLinkText(i);const d=t.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return t.pos+=i.length-r.length,!0}function xS(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==10)return!1;const o=t.pending.length-1,s=t.posMax;if(!e)if(o>=0&&t.pending.charCodeAt(o)===32)if(o>=1&&t.pending.charCodeAt(o-1)===32){let r=o-1;for(;r>=1&&t.pending.charCodeAt(r-1)===32;)r--;t.pending=t.pending.slice(0,r),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n<s&&Re(t.src.charCodeAt(n));)n++;
273return t.pos=n,!0}const Xm=[];for(let t=0;t<256;t++)Xm.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Xm[t.charCodeAt(0)]=1});function CS(t,e){let n=t.pos;const o=t.posMax;if(t.src.charCodeAt(n)!==92||(n++,n>=o))return!1;let s=t.src.charCodeAt(n);if(s===10){for(e||t.push("hardbreak","br",0),n++;n<o&&(s=t.src.charCodeAt(n),!!Re(s));)n++;return t.pos=n,!0}let r=t.src[n];if(s>=55296&&s<=56319&&n+1<o){const i=t.src.charCodeAt(n+1);i>=56320&&i<=57343&&(r+=t.src[n+1],n++)}const a="\\"+r;if(!e){const i=t.push("text_special","",0);s<256&&Xm[s]!==0?i.content=r:i.content=a,i.markup=a,i.info="escape"}return t.pos=n+1,!0}function DS(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;const s=n;n++;const r=t.posMax;for(;n<r&&t.src.charCodeAt(n)===96;)n++;const a=t.src.slice(s,n),i=a.length;if(t.backticksScanned&&(t.backticks[i]||0)<=s)return e||(t.pending+=a),t.pos+=i,!0;let l=n,c;for(;(c=t.src.indexOf("`",l))!==-1;){for(l=c+1;l<r&&t.src.charCodeAt(l)===96;)l++;const u=l-c;if(u===i){if(!e){const d=t.push("code_inline","code",0);d.markup=a,d.content=t.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=l,!0}t.backticks[u]=c}return t.backticksScanned=!0,e||(t.pending+=a),t.pos+=i,!0}function FS(t,e){const n=t.pos,o=t.src.charCodeAt(n);if(e||o!==126)return!1;const s=t.scanDelims(t.pos,!0);let r=s.length;const a=String.fromCharCode(o);if(r<2)return!1;let i;r%2&&(i=t.push("text","",0),i.content=a,r--);for(let l=0;l<r;l+=2)i=t.push("text","",0),i.content=a+a,t.delimiters.push({marker:o,length:0,token:t.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return t.pos+=s.length,!0}function y0(t,e){let n;const o=[],s=e.length;for(let r=0;r<s;r++){const a=e[r];if(a.marker!==126||a.end===-1)continue;const i=e[a.end];n=t.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=t.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",t.tokens[i.token-1].type==="text"&&t.tokens[i.token-1].content==="~"&&o.push(i.token-1)}for(;o.length;){const r=o.pop();let a=r+1;for(;a<t.tokens.length&&t.tokens[a].type==="s_close";)a++;a--,r!==a&&(n=t.tokens[a],t.tokens[a]=t.tokens[r],t.tokens[r]=n)}}function ES(t){const e=t.tokens_meta,n=t.tokens_meta.length;y0(t,t.delimiters);for(let o=0;o<n;o++)e[o]&&e[o].delimiters&&y0(t,e[o].delimiters)}const P4={tokenize:FS,postProcess:ES};function IS(t,e){const n=t.pos,o=t.src.charCodeAt(n);if(e||o!==95&&o!==42)return!1;const s=t.scanDelims(t.pos,o===42);for(let r=0;r<s.length;r++){const a=t.push("text","",0);a.content=String.fromCharCode(o),t.delimiters.push({marker:o,length:s.length,token:t.tokens.length-1,end:-1,open:s.can_open,close:s.can_close})}return t.pos+=s.length,!0}function w0(t,e){const n=e.length;for(let o=n-1;o>=0;o--){const s=e[o];if(s.marker!==95&&s.marker!==42||s.end===-1)continue;const r=e[s.end],a=o>0&&e[o-1].end===s.end+1&&e[o-1].marker===s.marker&&e[o-1].token===s.token-1&&e[s.end+1].token===r.token+1,i=String.fromCharCode(s.marker),l=t.tokens[s.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?i+i:i,l.content="";const c=t.tokens[r.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?i+i:i,c.content="",a&&(t.tokens[e[o-1].token].content="",t.tokens[e[s.end+1].token].content="",o--)}}function SS(t){const e=t.tokens_meta,n=t.tokens_meta.length;w0(t,t.delimiters);for(let o=0;o<n;o++)e[o]&&e[o].delimiters&&w0(t,e[o].delimiters)}const z4={tokenize:IS,postProcess:SS};function AS(t,e){let n,o,s,r,a="",i="",l=t.pos,c=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;const u=t.pos,d=t.posMax,p=t.pos+1,m=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(m<0)return!1;let h=m+1;if(h<d&&t.src.charCodeAt(h)===40){for(c=!1,h++;h<d&&(n=t.src.charCodeAt(h),!(!Re(n)&&n!==10));h++);if(h>=d)return!1;if(l=h,s=t.md.helpers.parseLinkDestination(t.src,h,t.posMax),s.ok){for(a=t.md.normalizeLink(s.str),t.md.validateLink(a)?h=s.pos:a="",l=h;h<d&&(n=t.src.charCodeAt(h),!(!Re(n)&&n!==10));h++);if(s=t.md.helpers.parseLinkTitle(t.src,h,t.posMax),h<d&&l!==h&&s.ok)for(i=s.str,h=s.pos;
273h<d&&(n=t.src.charCodeAt(h),!(!Re(n)&&n!==10));h++);}(h>=d||t.src.charCodeAt(h)!==41)&&(c=!0),h++}if(c){if(typeof t.env.references>"u")return!1;if(h<d&&t.src.charCodeAt(h)===91?(l=h+1,h=t.md.helpers.parseLinkLabel(t,h),h>=0?o=t.src.slice(l,h++):h=m+1):h=m+1,o||(o=t.src.slice(p,m)),r=t.env.references[ru(o)],!r)return t.pos=u,!1;a=r.href,i=r.title}if(!e){t.pos=p,t.posMax=m;const g=t.push("link_open","a",1),v=[["href",a]];g.attrs=v,i&&v.push(["title",i]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=h,t.posMax=d,!0}function MS(t,e){let n,o,s,r,a,i,l,c,u="";const d=t.pos,p=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const m=t.pos+2,h=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(h<0)return!1;if(r=h+1,r<p&&t.src.charCodeAt(r)===40){for(r++;r<p&&(n=t.src.charCodeAt(r),!(!Re(n)&&n!==10));r++);if(r>=p)return!1;for(c=r,i=t.md.helpers.parseLinkDestination(t.src,r,t.posMax),i.ok&&(u=t.md.normalizeLink(i.str),t.md.validateLink(u)?r=i.pos:u=""),c=r;r<p&&(n=t.src.charCodeAt(r),!(!Re(n)&&n!==10));r++);if(i=t.md.helpers.parseLinkTitle(t.src,r,t.posMax),r<p&&c!==r&&i.ok)for(l=i.str,r=i.pos;r<p&&(n=t.src.charCodeAt(r),!(!Re(n)&&n!==10));r++);else l="";if(r>=p||t.src.charCodeAt(r)!==41)return t.pos=d,!1;r++}else{if(typeof t.env.references>"u")return!1;if(r<p&&t.src.charCodeAt(r)===91?(c=r+1,r=t.md.helpers.parseLinkLabel(t,r),r>=0?s=t.src.slice(c,r++):r=h+1):r=h+1,s||(s=t.src.slice(m,h)),a=t.env.references[ru(s)],!a)return t.pos=d,!1;u=a.href,l=a.title}if(!e){o=t.src.slice(m,h);const g=[];t.md.inline.parse(o,t.md,t.env,g);const v=t.push("image","img",0),j=[["src",u],["alt",""]];v.attrs=j,v.children=g,v.content=o,l&&j.push(["title",l])}return t.pos=r,t.posMax=p,!0}const TS=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,NS=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function RS(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==60)return!1;const o=t.pos,s=t.posMax;for(;;){if(++n>=s)return!1;const a=t.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const r=t.src.slice(o+1,n);if(NS.test(r)){const a=t.md.normalizeLink(r);if(!t.md.validateLink(a))return!1;if(!e){const i=t.push("link_open","a",1);i.attrs=[["href",a]],i.markup="autolink",i.info="auto";const l=t.push("text","",0);l.content=t.md.normalizeLinkText(r);const c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return t.pos+=r.length+2,!0}if(TS.test(r)){const a=t.md.normalizeLink("mailto:"+r);if(!t.md.validateLink(a))return!1;if(!e){const i=t.push("link_open","a",1);i.attrs=[["href",a]],i.markup="autolink",i.info="auto";const l=t.push("text","",0);l.content=t.md.normalizeLinkText(r);const c=t.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return t.pos+=r.length+2,!0}return!1}function OS(t){return/^<a[>\s]/i.test(t)}function BS(t){return/^<\/a\s*>/i.test(t)}function LS(t){const e=t|32;return e>=97&&e<=122}function PS(t,e){if(!t.md.options.html)return!1;const n=t.posMax,o=t.pos;if(t.src.charCodeAt(o)!==60||o+2>=n)return!1;const s=t.src.charCodeAt(o+1);if(s!==33&&s!==63&&s!==47&&!LS(s))return!1;const r=t.src.slice(o).match(mS);if(!r)return!1;if(!e){const a=t.push("html_inline","",0);a.content=r[0],OS(a.content)&&t.linkLevel++,BS(a.content)&&t.linkLevel--}return t.pos+=r[0].length,!0}const zS=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,$S=/^&([a-z][a-z0-9]{1,31});/i;function HS(t,e){const n=t.pos,o=t.posMax;if(t.src.charCodeAt(n)!==38||n+1>=o)return!1;if(t.src.charCodeAt(n+1)===35){const r=t.src.slice(n).match(zS);if(r){if(!e){const a=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),i=t.push("text_special","",0);i.content=Jm(a)?pc(a):pc(65533),i.markup=r[0],i.info="entity"}return t.pos+=r[0].length,!0}}else{const r=t.src.slice(n).match($S);if(r){const a=M4(r[0]);if(a!==r[0]){if(!e){const i=t.push("text_special","",0);i.content=a,i.markup=r[0],i.info="entity"}return t.pos+=r[0].length,!0}}}return!1}function _0(t){const e={},n=t.length;if(!n)return;let o=0,s=-2;const r=[];for(let a=0;a<n;a++){const i=t[a];if(r.push(0),(t[o].marker!==i.marker||s!==i.token-1)&&(o=a),s=i.token,i.length=i.length||0,!i.close)continue;e.hasOwnProperty(i.marker)||(e[i.marker]=[-1,-1,-1,-1,-1,-1]);const l=e[i.marker][(i.open?3:0)+i.length%3];let c=o-r[o]-1,u=c;for(;c>l;c-=r[c]+1){const d=t[c];if(d.marker===i.marker&&d.open&&d.end<0){let p=!1;if((d.close||i.open)&&(d.length+i.length)%3===0&&(d.length%3!==0||i.length%3!==0)&&(p=!0),!p){const m=c>0&&!t[c-1].open?r[c-1]+1:0;r[a]=a-c+m,r[c]=m,i.open=!1,d.end=a,d.close=!1,u=-1,s=-2;break}}}u!==-1&&(e[i.marker][(i.open?3:0)+(i.length||0)%3]=u)}}function VS(t){const e=t.tokens_meta,n=t.tokens_meta.length;_0(t.delimiters);for(let o=0;o<n;o++)e[o]&&e[o].delimiters&&_0(e[o].delimiters)}function US(t){let e,n,o=0;const s=t.tokens,r=t.tokens.length;for(e=n=0;e<r;e++)s[e].nesting<0&&o--,s[e].level=o,s[e].nesting>0&&o++,s[e].type==="text"&&e+1<r&&s[e+1].type==="text"?s[e+1].content=s[e].content+s[e+1].content:(e!==n&&(s[n]=s[e]),n++);e!==n&&(s.length=n)}const xd=[["text",yS],["linkify",_S],["newline",xS],["escape",CS],["backticks",DS],["strikethrough",P4.tokenize],["emphasis",z4.tokenize],["link",AS],["image",MS],["autolink",RS],["html_inline",PS],["entity",HS]],Cd=[["balance_pairs",VS],["strikethrough",P4.postProcess],["emphasis",z4.postProcess],["fragments_join",US]];function pi(){this.ruler=new Gt;for(let t=0;t<xd.length;t++)this.ruler.push(xd[t][0],xd[t][1]);this.ruler2=new Gt;for(let t=0;t<Cd.length;t++)this.ruler2.push(Cd[t][0],Cd[t][1])}pi.prototype.skipToken=function(t){const e=t.pos,n=this.ruler.getRules(""),o=n.length,s=t.md.options.maxNesting,r=t.cache;if(typeof r[e]<"u"){t.pos=r[e];return}let a=!1;if(t.level<s){for(let i=0;i<o;i++)if(t.level++,a=n[i](t,!0),t.level--,a){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;a||t.pos++,r[e]=t.pos};pi.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,o=t.posMax,s=t.md.options.maxNesting;for(;t.pos<o;){const r=t.pos;let a=!1;if(t.level<s){for(let i=0;i<n;
273i++)if(a=e[i](t,!1),a){if(r>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(t.pos>=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};pi.prototype.parse=function(t,e,n,o){const s=new this.State(t,e,n,o);this.tokenize(s);const r=this.ruler2.getRules(""),a=r.length;for(let i=0;i<a;i++)r[i](s)};pi.prototype.State=di;function qS(t){const e={};t=t||{},e.src_Any=F4.source,e.src_Cc=E4.source,e.src_Z=S4.source,e.src_P=Gm.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.
273src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function Wp(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function iu(t){return Object.prototype.toString.call(t)}function WS(t){return iu(t)==="[object String]"}function KS(t){return iu(t)==="[object Object]"}function GS(t){return iu(t)==="[object RegExp]"}function x0(t){return iu(t)==="[object Function]"}function ZS(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const $4={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function JS(t){return Object.keys(t||{}).reduce(function(e,n){return e||$4.hasOwnProperty(n)},!1)}const YS={"http:":{validate:function(t,e,n){const o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},XS="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",QS="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function eA(t){t.__index__=-1,t.__text_cache__=""}function tA(t){return function(e,n){const o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function C0(){return function(t,e){e.normalize(t)}}function fc(t){const e=t.re=qS(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(XS),n.push(e.src_xn),e.src_tlds=n.join("|");function o(i){return i.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");const s=[];t.__compiled__={};function r(i,l){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+l)}Object.keys(t.__schemas__).forEach(function(i){const l=t.__schemas__[i];if(l===null)return;const c={validate:null,link:null};if(t.__compiled__[i]=c,KS(l)){GS(l.validate)?c.validate=tA(l.validate):x0(l.validate)?c.validate=l.validate:r(i,l),x0(l.normalize)?c.normalize=l.normalize:l.normalize?r(i,l):c.normalize=C0();return}if(WS(l)){s.push(i);return}r(i,l)}),s.forEach(function(i){t.__compiled__[t.__schemas__[i]]&&(t.__compiled__[i].validate=t.__compiled__[t.__schemas__[i]].validate,t.__compiled__[i].normalize=t.__compiled__[t.__schemas__[i]].normalize)}),t.__compiled__[""]={validate:null,normalize:C0()};const a=Object.keys(t.__compiled__).filter(function(i){return i.length>0&&t.__compiled__[i]}).map(ZS).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[>
273<|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),eA(t)}function nA(t,e){const n=t.__index__,o=t.__last_index__,s=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=s,this.text=s,this.url=s}function Kp(t,e){const n=new nA(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function nn(t,e){if(!(this instanceof nn))return new nn(t,e);e||JS(t)&&(e=t,t={}),this.__opts__=Wp({},$4,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Wp({},YS,t),this.__compiled__={},this.__tlds__=QS,this.__tlds_replaced__=!1,this.re={},fc(this)}nn.prototype.add=function(e,n){return this.__schemas__[e]=n,fc(this),this};nn.prototype.set=function(e){return this.__opts__=Wp(this.__opts__,e),this};nn.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,o,s,r,a,i,l,c,u;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(r=this.testSchemaAt(e,n[2],l.lastIndex),r){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=o.index+o[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&(s=e.match(this.re.email_fuzzy))!==null&&(a=s.index+s[1].length,i=s.index+s[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=i))),this.__index__>=0};nn.prototype.pretest=function(e){return this.re.pretest.test(e)};nn.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};nn.prototype.match=function(e){const n=[];let o=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(Kp(this,o)),o=this.__last_index__);let s=o?e.slice(o):e;for(;this.test(s);)n.push(Kp(this,o)),s=s.slice(this.__last_index__),o+=this.__last_index__;return n.length?n:null};nn.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,Kp(this,0)):null};nn.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,s,r){return o!==r[s-1]}).reverse(),fc(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,fc(this),this)};nn.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};nn.prototype.onCompile=function(){};const hr=2147483647,Hn=36,Qm=1,Va=26,oA=38,sA=700,H4=72,V4=128,U4="-",rA=/^xn--/,aA=/[^\0-\x7F]/,iA=/[\x2E\u3002\uFF0E\uFF61]/g,lA={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Dd=Hn-Qm,Vn=Math.floor,Fd=String.fromCharCode;function No(t){throw new RangeError(lA[t])}function cA(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function q4(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(iA,".");const s=t.split("."),r=cA(s,e).join(".");return o+r}function W4(t){const e=[];let n=0;const o=t.length;for(;n<o;){const s=t.charCodeAt(n++);if(s>=55296&&s<=56319&&n<o){const r=t.charCodeAt(n++);(r&64512)==56320?e.push(((s&1023)<<10)+(r&1023)+65536):(e.push(s),n--)}else e.push(s)}return e}const uA=t=>String.fromCodePoint(...t),dA=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Hn},D0=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},K4=function(t,e,n){let o=0;for(t=n?Vn(t/sA):t>>1,t+=Vn(t/e);t>Dd*Va>>1;o+=Hn)t=Vn(t/Dd);return Vn(o+(Dd+1)*t/(t+oA))},G4=function(t){const e=[],n=t.length;let o=0,s=V4,r=H4,a=t.lastIndexOf(U4);a<0&&(a=0);for(let i=0;i<a;++i)t.charCodeAt(i)>=128&&No("not-basic"),e.push(t.charCodeAt(i));for(let i=a>0?a+1:0;i<n;){const l=o;for(let u=1,d=Hn;;d+=Hn){i>=n&&No("invalid-input");const p=dA(t.charCodeAt(i++));p>=Hn&&No("invalid-input"),p>Vn((hr-o)/u)&&No("overflow"),o+=p*u;const m=d<=r?Qm:d>=r+Va?Va:d-r;if(p<m)break;const h=Hn-m;u>Vn(hr/h)&&No("overflow"),u*=h}const c=e.length+1;r=K4(o-l,c,l==0),Vn(o/c)>hr-s&&No("overflow"),s+=Vn(o/c),o%=c,e.splice(o++,0,s)}return String.fromCodePoint(...e)},Z4=function(t){const e=[];t=W4(t);const n=t.length;let o=V4,s=0,r=H4;for(const l of t)l<128&&e.push(Fd(l));const a=e.length;let i=a;for(a&&e.push(U4);i<n;){let l=hr;
273for(const u of t)u>=o&&u<l&&(l=u);const c=i+1;l-o>Vn((hr-s)/c)&&No("overflow"),s+=(l-o)*c,o=l;for(const u of t)if(u<o&&++s>hr&&No("overflow"),u===o){let d=s;for(let p=Hn;;p+=Hn){const m=p<=r?Qm:p>=r+Va?Va:p-r;if(d<m)break;const h=d-m,g=Hn-m;e.push(Fd(D0(m+h%g,0))),d=Vn(h/g)}e.push(Fd(D0(d,0))),r=K4(s,c,i===a),s=0,++i}++s,++o}return e.join("")},pA=function(t){return q4(t,function(e){return rA.test(e)?G4(e.slice(4).toLowerCase()):e})},fA=function(t){return q4(t,function(e){return aA.test(e)?"xn--"+Z4(e):e})},J4={version:"2.3.1",ucs2:{decode:W4,encode:uA},decode:G4,encode:Z4,toASCII:fA,toUnicode:pA},mA={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},hA={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},gA={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},bA={default:mA,zero:hA,commonmark:gA},vA=/^(vbscript|javascript|file|data):/,jA=/^data:image\/(gif|png|jpeg|webp);/;function kA(t){const e=t.trim().toLowerCase();return vA.test(e)?jA.test(e):!0}const Y4=["http:","https:","mailto:"];function yA(t){const e=Km(t,!0);if(e.hostname&&(!e.protocol||Y4.indexOf(e.protocol)>=0))try{e.hostname=J4.toASCII(e.hostname)}catch{}return ui(Wm(e))}function wA(t){const e=Km(t,!0);if(e.hostname&&(!e.protocol||Y4.indexOf(e.protocol)>=0))try{e.hostname=J4.toUnicode(e.hostname)}catch{}return Fr(Wm(e),Fr.defaultChars+"%")}function Zt(t,e){if(!(this instanceof Zt))return new Zt(t,e);e||Zm(t)||(e=t||{},t="default"),this.inline=new pi,this.block=new au,this.core=new Ym,this.renderer=new Ur,this.linkify=new nn,this.validateLink=kA,this.normalizeLink=yA,this.normalizeLinkText=wA,this.utils=xI,this.helpers=su({},EI),this.options={},this.configure(t),e&&this.set(e)}Zt.prototype.set=function(t){return su(this.options,t),this};Zt.prototype.configure=function(t){const e=this;if(Zm(t)){const n=t;if(t=bA[n],!t)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableO
273nly(t.components[n].rules2)}),this};Zt.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(s){n=n.concat(this[s].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));const o=t.filter(function(s){return n.indexOf(s)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};Zt.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(s){n=n.concat(this[s].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));const o=t.filter(function(s){return n.indexOf(s)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};Zt.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Zt.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Zt.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Zt.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Zt.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const _A=new Yf({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return["p",0]}},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM(){return["blockquote",0]}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return["div",["hr"]]}},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(t){return["h"+t.attrs.level,0]}},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:t=>({params:t.getAttribute("data-params")||""})}],toDOM(t){return["pre",t.attrs.params?{"data-params":t.attrs.params}:{},["code",0]]}},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs(t){return{order:t.hasAttribute("start")?+t.getAttribute("start"):1,tight:t.hasAttribute("data-tight")}}}],toDOM(t){return["ol",{start:t.attrs.order==1?null:t.attrs.order,"data-tight":t.attrs.tight?"true":null},0]}},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:t=>({tight:t.hasAttribute("data-tight")})}],toDOM(t){return["ul",{"data-tight":t.attrs.tight?"true":null},0]}},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM(){return["li",0]}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(t){return{src:t.getAttribute("src"),title:t.getAttribute("title"),alt:t.getAttribute("alt")}}}],toDOM(t){return["img",t.attrs]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return["br"]}}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:t=>t.type.name=="em"}],toDOM(){return["em"]}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name=="strong"},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],toDOM(){return["strong"]}},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(t){return{href:t.getAttribute("href"),title:t.getAttribute("title")}}}],toDOM(t){return["a",t.attrs]}},code:{code:!0,parseDOM:[{tag:"code"}],toDOM(){return["code"]}}}});function xA(t,e){if(t.isText&&e.isText&&Ce.sameSet(t.marks,e.marks))return t.withText(t.text+e.text)}class CA{constructor(e,n){this.schema=e,this.tokenHandlers=n,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:Ce.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let n=this.top(),o=n.content,s=o[o.length-1],r=this.schema.text(e,n.marks),a;s&&(a=xA(s,r))?o[o.length-1]=a:o.push(r)}openMark(e){let n=this.top();n.marks=e.addToSet(n.marks)}closeMark(e){let n=this.top();n.marks=e.removeFromSet(n.marks)}parseTokens(e){for(let n=0;n<e.length;n++){let o=e[n],s=this.tokenHandlers[o.type];if(!s)throw new Error("Token type `"+o.type+"` not supported by Markdown parser");
vendor: 4,849 bytes, lines 273-277
273s(this,o,e,n)}}addNode(e,n,o){let s=this.top(),r=e.createAndFill(n,o,s?s.marks:[]);return r?(this.push(r),r):null}openNode(e,n){this.stack.push({type:e,attrs:n,content:[],marks:Ce.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}function oa(t,e,n,o){return t.getAttrs?t.getAttrs(e,n,o):t.attrs instanceof Function?t.attrs(e):t.attrs}function Ed(t,e){return t.noCloseToken||e=="code_inline"||e=="code_block"||e=="fence"}function F0(t){return t[t.length-1]==`
274`?t.slice(0,t.length-1):t}function Id(){}function DA(t,e){let n=Object.create(null);for(let o in e){let s=e[o];if(s.block){let r=t.nodeType(s.block);Ed(s,o)?n[o]=(a,i,l,c)=>{a.openNode(r,oa(s,i,l,c)),a.addText(F0(i.content)),a.closeNode()}:(n[o+"_open"]=(a,i,l,c)=>a.openNode(r,oa(s,i,l,c)),n[o+"_close"]=a=>a.closeNode())}else if(s.node){let r=t.nodeType(s.node);n[o]=(a,i,l,c)=>a.addNode(r,oa(s,i,l,c))}else if(s.mark){let r=t.marks[s.mark];Ed(s,o)?n[o]=(a,i,l,c)=>{a.openMark(r.create(oa(s,i,l,c))),a.addText(F0(i.content)),a.closeMark(r)}:(n[o+"_open"]=(a,i,l,c)=>a.openMark(r.create(oa(s,i,l,c))),n[o+"_close"]=a=>a.closeMark(r))}else if(s.ignore)Ed(s,o)?n[o]=Id:(n[o+"_open"]=Id,n[o+"_close"]=Id);else throw new RangeError("Unrecognized parsing spec "+JSON.stringify(s))}return n.text=(o,s)=>o.addText(s.content),n.inline=(o,s)=>o.parseTokens(s.children),n.softbreak=n.softbreak||(o=>o.addText(" ")),n}let FA=class{constructor(e,n,o){this.schema=e,this.tokenizer=n,this.tokens=o,this.tokenHandlers=DA(e,o)}parse(e,n={}){let o=new CA(this.schema,this.tokenHandlers),s;o.parseTokens(this.tokenizer.parse(e,n));do s=o.closeNode();while(o.stack.length);return s||this.schema.topNodeType.createAndFill()}};function E0(t,e){for(;++e<t.length;)if(t[e].type!="list_item_open")return t[e].hidden;return!1}new FA(_A,Zt("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(t,e,n)=>({tight:E0(e,n)})},ordered_list:{block:"ordered_list",getAttrs:(t,e,n)=>({order:+t.attrGet("start")||1,tight:E0(e,n)})},heading:{block:"heading",getAttrs:t=>({level:+t.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:t=>({params:t.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:t=>({src:t.attrGet("src"),title:t.attrGet("title")||null,alt:t.children[0]&&t.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:t=>({href:t.attrGet("href"),title:t.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});const EA={open:"",close:"",mixable:!0};let IA=class{constructor(e,n,o={}){this.nodes=e,this.marks=n,this.options=o}serialize(e,n={}){n=Object.assign({},this.options,n);let o=new X4(this.nodes,this.marks,n);return o.renderContent(e),o.out}};const Yn=new IA({blockquote(t,e){t.wrapBlock("> ",null,e,()=>t.renderContent(e))},code_block(t,e){const n=e.textContent.match(/`{3,}/gm),o=n?n.sort().slice(-1)[0]+"`":"```";t.write(o+(e.attrs.params||"")+`
275`),t.text(e.textContent,!1),t.write(`
276`),t.write(o),t.closeBlock(e)},heading(t,e){t.write(t.repeat("#",e.attrs.level)+" "),t.renderInline(e,!1),t.closeBlock(e)},horizontal_rule(t,e){t.write(e.attrs.markup||"---"),t.closeBlock(e)},bullet_list(t,e){t.renderList(e,"  ",()=>(e.attrs.bullet||"*")+" ")},ordered_list(t,e){let n=e.attrs.order||1,o=String(n+e.childCount-1).length,s=t.repeat(" ",o+2);t.renderList(e,s,r=>{let a=String(n+r);return t.repeat(" ",o-a.length)+a+". "})},list_item(t,e){t.renderContent(e)},paragraph(t,e){t.renderInline(e),t.closeBlock(e)},image(t,e){t.write("!["+t.esc(e.attrs.alt||"")+"]("+e.attrs.src.replace(/[\(\)]/g,"\\$&")+(e.attrs.title?' "'+e.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(t,e,n,o){for(let s=o+1;s<n.childCount;s++)if(n.child(s).type!=e.type){t.write(`\\
277`);return}},text(t,e){t.text(e.text,!t.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open(t,e,n,o){return t.inAutolink=SA(e,n,o),t.inAutolink?"<":"["},close(t,e,n,o){let{inAutolink:s}=t;return t.inAutolink=void 0,s?">":"]("+e.attrs.href.replace(/[\(\)"]/g,"\\$&")+(e.attrs.title?` "${e.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open(t,e,n,o){return I0(n.child(o),-1)},close(t,e,n,o){return I0(n.child(o-1),1)},escape:!1}});function I0(t,e){let n=/`+/g,o,s=0;if(t.isText)for(;o=n.exec(t.text);)s=Math.max(s,o[0].length);let r=s>0&&e>0?" `":"`";for(let a=0;a<s;a++)r+="`";return s>0&&e<0&&(r+=" "),r}function SA(t,e,n){if(t.attrs.title||!/^\w+:/.test(t.attrs.href))return!1;let o=e.child(n);return!o.isText||o.text!=t.attrs.href||o.marks[o.marks.length-1]!=t?!1:n==e.childCount-1||!t.isInSet(e.child(n+1).marks)}
277let X4=class{constructor(e,n,o){this.nodes=e,this.marks=n,this.options=o,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,typeof this.options.tightLists>"u"&&(this.options.tightLists=!1),typeof this.options.hardBreakNodeName>"u"&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+=`
278`),e>1){let n=this.delim,o=/\s+$/.exec(n);o&&(n=n.slice(0,n.length-o[0].length));for(let s=1;s<e;s++)this.out+=n+`
279`}this.closed=null}}getMark(e){let n=this.marks[e];if(!n){if(this.options.strict!==!1)throw new Error(`Mark type \`${e}\` not supported by Markdown renderer`);n=EA}return n}wrapBlock(e,n,o,s){let r=this.delim;this.write(n??e),this.delim+=e,s(),this.delim=r,this.closeBlock(o)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+=`
280`)}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,n=!0){let o=e.split(`
281`);for(let s=0;s<o.length;s++)this.write(),!n&&o[s][0]=="["&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=n?this.esc(o[s],this.atBlockStart):o[s],s!=o.length-1&&(this.out+=`
282`)}render(e,n,o){if(this.nodes[e.type.name])this.nodes[e.type.name](this,e,n,o);else{if(this.options.strict!==!1)throw new Error("Token type `"+e.type.name+"` not supported by Markdown renderer");e.type.isLeaf||(e.type.inlineContent?this.renderInline(e):this.renderContent(e),e.isBlock&&this.closeBlock(e))}}renderContent(e){e.forEach((n,o,s)=>this.render(n,e,s))}renderInline(e,n=!0){this.atBlockStart=n;let o=[],s="",r=(a,i,l)=>{let c=a?a.marks:[];a&&a.type.name===this.options.hardBreakNodeName&&(c=c.filter(g=>{if(l+1==e.childCount)return!1;let v=e.child(l+1);return g.isInSet(v.marks)&&(!v.isText||/\S/.test(v.text))}));let u=s;if(s="",a&&a.isText&&c.some(g=>{let v=this.getMark(g.type.name);return v&&v.expelEnclosingWhitespace&&!g.isInSet(o)})){let[g,v,j]=/^(\s*)(.*)$/m.exec(a.text);v&&(u+=v,a=j?a.withText(j):null,a||(c=o))}if(a&&a.isText&&c.some(g=>{let v=this.getMark(g.type.name);return v&&v.expelEnclosingWhitespace&&(l==e.childCount-1||!g.isInSet(e.child(l+1).marks))})){let[g,v,j]=/^(.*?)(\s*)$/m.exec(a.text);j&&(s=j,a=v?a.withText(v):null,a||(c=o))}let d=c.length?c[c.length-1]:null,p=d&&this.getMark(d.type.name).escape===!1,m=c.length-(p?1:0);e:for(let g=0;g<m;g++){let v=c[g];
282if(!this.getMark(v.type.name).mixable)break;for(let j=0;j<o.length;j++){let k=o[j];if(!this.getMark(k.type.name).mixable)break;if(v.eq(k)){g>j?c=c.slice(0,j).concat(v).concat(c.slice(j,g)).concat(c.slice(g+1,m)):j>g&&(c=c.slice(0,g).concat(c.slice(g+1,j)).concat(v).concat(c.slice(j,m)));continue e}}}let h=0;for(;h<Math.min(o.length,m)&&c[h].eq(o[h]);)++h;for(;h<o.length;)this.text(this.markString(o.pop(),!1,e,l),!1);if(u&&this.text(u),a){for(;o.length<m;){let g=c[o.length];o.push(g),this.text(this.markString(g,!0,e,l),!1),this.atBlockStart=!1}p&&a.isText?this.text(this.markString(d,!0,e,l)+a.text+this.markString(d,!1,e,l+1),!1):this.render(a,e,l),this.atBlockStart=!1}a?.isText&&a.nodeSize>0&&(this.atBlockStart=!1)};e.forEach(r),r(null,0,e.childCount),this.atBlockStart=!1}renderList(e,n,o){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let s=typeof e.attrs.tight<"u"?e.attrs.tight:this.options.tightLists,r=this.inTightList;this.inTightList=s,e.forEach((a,i,l)=>{l&&s&&this.flushClose(1),this.wrapBlock(n,o(l),e,()=>this.render(a,e,l))}),this.inTightList=r}esc(e,n=!1){return e=e.replace(/[`*\\~\[\]_]/g,(o,s)=>o=="_"&&s>0&&s+1<e.length&&e[s-1].match(/\w/)&&e[s+1].match(/\w/)?o:"\\"+o),n&&(e=e.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let n=e.indexOf('"')==-1?'""':e.indexOf("'")==-1?"''":"()";return n[0]+e+n[1]}repeat(e,n){let o="";for(let s=0;s<n;s++)o+=e;return o}markString(e,n,o,s){let r=this.getMark(e.type.name),a=n?r.open:r.close;return typeof a=="string"?a:a(this,e,o,s)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}};var Sd,S0;function AA(){if(S0)return Sd;S0=1;var t=!0,e=!1,n=!1;Sd=function(g,v){v&&(t=!v.enabled,e=!!v.label,n=!!v.labelAfter),g.core.ruler.after("inline","github-task-lists",function(j){for(var k=j.tokens,y=2;y<k.length;y++)r(k,y)&&(a(k[y],j.Token),o(k[y-2],"class","task-list-item"+(t?"":" enabled")),o(k[s(k,y-2)],"class","contains-task-list"))})};function o(g,v,j){var k=g.attrIndex(v),y=[v,j];k<0?g.attrPush(y):g.attrs[k]=y}function s(g,v){for(var j=g[v].level-1,k=v-1;k>=0;k--)if(g[k].level===j)return k;return-1}function r(g,v){return d(g[v])&&p(g[v-1])&&m(g[v-2])&&h(g[v])}function a(g,v){if(g.children.unshift(i(g,v)),g.children[1].content=g.children[1].content.slice(3),g.content=g.content.slice(3),e)if(n){g.children.pop();var j="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);g.children[0].content=g.children[0].content.slice(0,-1)+' id="'+j+'">',g.children.push(u(g.content,j,v))}else g.children.unshift(l(v)),g.children.push(c(v))}function i(g,v){var j=new v("html_inline","",0),k=t?' disabled="" ':"";return g.content.indexOf("[ ] ")===0?j.content='<input class="task-list-item-checkbox"'+k+'type="checkbox">':(g.content.indexOf("[x] ")===0||g.content.indexOf("[X] ")===0)&&(j.content='<input class="task-list-item-checkbox" checked=""'+k+'type="checkbox">'),j}function l(g){var v=new g("html_inline","",0);return v.content="<label>",v}function c(g){var v=new g("html_inline","",0);return v.content="</label>",v}function u(g,v,j){var k=new j("html_inline","",0);return k.content='<label class="task-list-item-label" for="'+v+'">'+g+"</label>",k.attrs=[{for:v}],k}function d(g){return g.type==="inline"}function p(g){return g.type==="paragraph_open"}function m(g){return g.type==="list_item_open"}function h(g){return g.content.indexOf("[ ] ")===0||g.content.indexOf("[x] ")===0||g.content.indexOf("[X] ")===0}return Sd}var MA=AA();const TA=zf(MA);var NA=Object.defineProperty,RA=(t,e,n)=>e in t?NA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mc=(t,e,n)=>(RA(t,typeof e!="symbol"?e+"":e,n),n);const OA=me.create({name:"markdownTightLists",addOptions:()=>({tight:!0,tightClass:"tight",listTypes:["bulletList","orderedList"]}),addGlobalAttributes(){return[{types:this.options.listTypes,attributes:{tight:{default:this.options.tight,parseHTML:t=>t.getAttribute("data-tight")==="true"||!t.querySelector("p"),renderHTML:t=>({class:t.tight?this.options.tightClass:null,"data-tight":t.tight?"true":null})}}}]},addCommands(){var t=this;return{toggleTight:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return n=>{let{editor:o,commands:s}=n;function r(a){if(!o.isActive(a))return!1;const i=o.getAttributes(a);return s.updateAttributes(a,{tight:e??!(i!=null&&i.tight)})}return t.options.listTypes.some(a=>r(a))}}}}}),A0=Zt();function Q4(t,e){return A0.inline.State.prototype.scanDelims.call({
282src:t,posMax:t.length}),new A0.inline.State(t,null,null,[]).scanDelims(e,!0)}function ej(t,e,n,o){let s=t.substring(0,n)+t.substring(n+e.length);return s=s.substring(0,n+o)+e+s.substring(n+o),s}function BA(t,e,n,o){let s=n,r=t;for(;s<o&&!Q4(r,s).can_open;)r=ej(r,e,s,1),s++;return{text:r,from:s,to:o}}function LA(t,e,n,o){let s=o,r=t;for(;s>n&&!Q4(r,s).can_close;)r=ej(r,e,s,-1),s--;return{text:r,from:n,to:s}}function PA(t,e,n,o){let s={text:t,from:n,to:o};return s=BA(s.text,e,s.from,s.to),s=LA(s.text,e,s.from,s.to),s.to-s.from<e.length+1&&(s.text=s.text.substring(0,s.from)+s.text.substring(s.to+e.length)),s.text}class zA extends X4{constructor(e,n,o){super(e,n,o??{}),mc(this,"inTable",!1),this.inlines=[]}render(e,n,o){super.render(e,n,o);const s=this.inlines[this.inlines.length-1];if(s!=null&&s.start&&s!==null&&s!==void 0&&s.end){const{delimiter:r,start:a,end:i}=this.normalizeInline(s);this.out=PA(this.out,r,a,i),this.inlines.pop()}}markString(e,n,o,s){const r=this.marks[e.type.name];if(r.expelEnclosingWhitespace)if(n)this.inlines.push({start:this.out.length,delimiter:r.open});else{const a=this.inlines.pop();this.inlines.push({...a,end:this.out.length})}return super.markString(e,n,o,s)}normalizeInline(e){let{start:n,end:o}=e;for(;this.out.charAt(n).match(/\s/);)n++;return{...e,start:n}}}const tj=$t.create({name:"markdownHTMLMark",addStorage(){return{markdown:{serialize:{open(t,e){var n,o;return this.editor.storage.markdown.options.html?(n=(o=M0(e))===null||o===void 0?void 0:o[0])!==null&&n!==void 0?n:"":(console.warn(`Tiptap Markdown: "${e.type.name}" mark is only available in html mode`),"")},close(t,e){var n,o;return this.editor.storage.markdown.options.html&&(n=(o=M0(e))===null||o===void 0?void 0:o[1])!==null&&n!==void 0?n:""}},parse:{}}}}});function M0(t){const e=t.type.schema,n=e.text(" ",[t]),s=li(z.from(n),e).match(/^(<.*?>) (<\/.*?>)$/);return s?[s[1],s[2]]:null}function eh(t){const e=`<body>${t}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function $A(t){return t?.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function HA(t){const e=t.parentElement,n=e.cloneNode();for(;e.firstChild&&e.firstChild!==t;)n.appendChild(e.firstChild);n.childNodes.length>0&&e.parentElement.insertBefore(n,e),e.parentElement.insertBefore(t,e),e.childNodes.length===0&&e.remove()}function VA(t){const e=t.parentNode;for(;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}const lu=De.create({name:"markdownHTMLNode",addStorage(){return{markdown:{serialize(t,e,n){this.editor.storage.markdown.options.html?t.write(UA(e,n)):(console.warn(`Tiptap Markdown: "${e.type.name}" node is only available in html mode`),t.write(`[${e.type.name}]`)),e.isBlock&&t.closeBlock(e)},parse:{}}}}});function UA(t,e){const n=t.type.schema,o=li(z.from(t),n);return t.isBlock&&(e instanceof z||e.type.name===n.topNodeType.name)?qA(o):o}function qA(t){const n=eh(t).firstElementChild;return n.innerHTML=n.innerHTML.trim()?`
283${n.innerHTML}
284`:`
285`,n.outerHTML}const WA=De.create({name:"blockquote"}),KA=WA.extend({addStorage(){return{markdown:{serialize:Yn.nodes.blockquote,parse:{}}}}}),GA=De.create({name:"bulletList"}),nj=GA.extend({addStorage(){return{markdown:{serialize(t,e){return t.renderList(e,"  ",()=>(this.editor.storage.markdown.options.bulletListMarker||"-")+" ")},parse:{}}}}}),ZA=De.create({name:"codeBlock"}),JA=ZA.extend({addStorage(){return{markdown:{serialize(t,e){t.write("```"+(e.attrs.language||"")+`
286`),t.text(e.textContent,!1),t.ensureNewLine(),t.write("```"),t.closeBlock(e)},parse:{setup(t){var e;t.set({langPrefix:(e=this.options.languageClassPrefix)!==null&&e!==void 0?e:"language-"})},updateDOM(t){t.innerHTML=t.innerHTML.replace(/\n<\/code><\/pre>/g,"</code></pre>")}}}}}}),YA=De.create({name:"hardBreak"}),oj=YA.extend({addStorage(){return{markdown:{serialize(t,e,n,o){for(let s=o+1;s<n.childCount;s++)if(n.child(s).type!=e.type){t.write(t.inTable?lu.storage.markdown.serialize.call(this,t,e,n):`\\
287`);return}},parse:{}}}}}),XA=De.create({name:"heading"}),QA=XA.extend({addStorage(){return{markdown:{serialize:Yn.nodes.heading,parse:{}}}}}),eM=De.create({name:"horizontalRule"}),tM=eM.extend({addStorage(){return{markdown:{serialize:Yn.nodes.horizontal_rule,parse:{}}}}}),nM=De.create({name:"image"}),oM=nM.extend({addStorage(){return{markdown:{serialize:Yn.nodes.image,parse:{}}}}}),sM=De.create({name:"listItem"}),rM=sM.extend({addStorage(){return{markdown:{serialize:Yn.nodes.list_item,parse:{}}}}}),aM=De.create({name:"orderedList"});function iM(t,e,n){let o=0;for(;n-o>0&&e.child(n-o-1).type.name===t.type.name;o++);return o}const lM=aM.extend({addStorage(){return{markdown:{serialize(t,e,n,o){const s=e.attrs.start||1,r=String(s+e.childCount-1).length,a=t.repeat(" ",r+2),l=iM(e,n,o)%2?") ":". ";t.renderList(e,a,c=>{const u=String(s+c);return t.repeat(" ",r-u.length)+u+l})},parse:{}}}}}),cM=De.create({name:"paragraph"}),uM=cM.extend({addStorage(){return{markdown:{serialize:Yn.nodes.paragraph,parse:{}}}}});function Ad(t){var e,n;return(e=t==null||(n=t.content)===null||n===void 0?void 0:n.content)!==null&&e!==void 0?e:[]}const dM=De.create({name:"table"}),pM=dM.extend({addStorage(){return{markdown:{serialize(t,e,n){if(!fM(e)){lu.storage.markdown.serialize.call(this,t,e,n);return}t.inTable=!0,e.forEach((o,s,r)=>{if(t.write("| "),o.forEach((a,i,l)=>{l&&t.write(" | ");const c=a.firstChild;c.textContent.trim()&&t.renderInline(c)}),t.write(" |"),t.ensureNewLine(),!r){const a=Array.from({length:o.childCount}).map(()=>"---").join(" | ");t.write(`| ${a} |`),t.ensureNewLine()}}),t.closeBlock(e),t.inTable=!1},parse:{}}}}});function T0(t){return t.attrs.colspan>1||t.attrs.rowspan>1}function fM(t){const e=Ad(t),n=e[0],o=e.slice(1);return!(Ad(n).some(s=>s.type.name!=="tableHeader"||T0(s)||s.childCount>1)||o.some(s=>Ad(s).some(r=>r.type.name==="tableHeader"||T0(r)||r.childCount>1)))}const mM=De.create({name:"taskItem"}),hM=mM.extend({addStorage(){return{markdown:{serialize(t,e){const n=e.attrs.checked?"[x]":"[ ]";t.write(`${n} `),t.renderContent(e)},parse:{updateDOM(t){[...t.querySelectorAll(".task-list-item")].forEac
287h(e=>{const n=e.querySelector("input");e.setAttribute("data-type","taskItem"),n&&(e.setAttribute("data-checked",n.checked),n.remove())})}}}}}}),gM=De.create({name:"taskList"}),bM=gM.extend({addStorage(){return{markdown:{serialize:nj.storage.markdown.serialize,parse:{setup(t){t.use(TA)},updateDOM(t){[...t.querySelectorAll(".contains-task-list")].forEach(e=>{e.setAttribute("data-type","taskList")})}}}}}}),vM=De.create({name:"text"}),jM=vM.extend({addStorage(){return{markdown:{serialize(t,e){t.text($A(e.text))},parse:{}}}}}),kM=$t.create({name:"bold"}),yM=kM.extend({addStorage(){return{markdown:{serialize:Yn.marks.strong,parse:{}}}}}),wM=$t.create({name:"code"}),_M=wM.extend({addStorage(){return{markdown:{serialize:Yn.marks.code,parse:{}}}}}),xM=$t.create({name:"italic"}),CM=xM.extend({addStorage(){return{markdown:{serialize:Yn.marks.em,parse:{}}}}}),DM=$t.create({name:"link"}),FM=DM.extend({addStorage(){return{markdown:{serialize:Yn.marks.link,parse:{}}}}}),EM=$t.create({name:"strike"}),IM=EM.extend({addStorage(){return{markdown:{serialize:{open:"~~",close:"~~",expelEnclosingWhitespace:!0},parse:{}}}}}),SM=[KA,nj,JA,oj,QA,tM,lu,oM,rM,lM,uM,pM,hM,bM,jM,yM,_M,tj,CM,FM,IM];function hc(t){var e,n;const o=(e=t.storage)===null||e===void 0?void 0:e.markdown,s=(n=SM.find(r=>r.name===t.name))===null||n===void 0?void 0:n.storage.markdown;return o||s?{...s,...o}:null}class AM{constructor(e){mc(this,"editor",null),this.editor=e}serialize(e){const n=new zA(this.nodes,this.marks,{hardBreakNodeName:oj.name});return n.renderContent(e),n.out}get nodes(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.nodes).map(n=>[n,this.serializeNode(lu)])),...Object.fromEntries((e=this.editor.extensionManager.extensions.filter(n=>n.type==="node"&&this.serializeNode(n)).map(n=>[n.name,this.serializeNode(n)]))!==null&&e!==void 0?e:[])}}get marks(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.marks).map(n=>[n,this.serializeMark(tj)])),...Object.fromEntries((e=this.editor.extensionManager.extensions.filter(n=>n.type==="mark"&&this.serializeMark(n)).map(n=>[n.name,this.serializeMark(n)]))!==null&&e!==void 0?e:[])}}serializeNode(e){var n;return(n=hc(e))===null||n===void 0||(n=n.serialize)===null||n===void 0?void 0:n.bind({editor:this.editor,options:e.options})}serializeMark(e){var n;const o=(n=hc(e))===null||n===void 0?void 0:n.serialize;return o?{...o,open:typeof o.open=="function"?o.open.bind({editor:this.editor,options:e.options}):o.open,close:typeof o.close=="function"?o.close.bind({editor:this.editor,options:e.options}):o.close}:null}}class MM{constructor(e,n){mc(this,"editor",null),mc(this,"md",null);let{html:o,linkify:s,breaks:r}=n;this.editor=e,this.md=this.withPatchedRenderer(Zt({html:o,linkify:s,breaks:r}))}parse(e){let{inline:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"){this.editor.extensionManager.extensions.forEach(r=>{var a;return(a=hc(r))===null||a===void 0||(a=a.parse)===null||a===void 0||(a=a.setup)===null||a===void 0?void 0:a.call({editor:this.editor,options:r.options},this.md)});const o=this.md.render(e),s=eh(o);return this.editor.extensionManager.extensions.forEach(r=>{var a;return(a=hc(r))===null||a===void 0||(a=a.parse)===null||a===void 0||(a=a.updateDOM)===null||a===void 0?void 0:a.call({editor:this.editor,options:r.options},s)}),this.normalizeDOM(s,{inline:n,content:e}),s.innerHTML}return e}normalizeDOM(e,n){let{inline:o,content:s}=n;return this.normalizeBlocks(e),e.querySelectorAll("*").forEach(r=>{var a;((a=r.nextSibling)===null||a===void 0?void 0:a.nodeType)===Node.TEXT_NODE&&!r.closest("pre")&&(r.nextSibling.textContent=r.nextSibling.textContent.replace(/^\n/,""))}),o&&this.normalizeInline(e,s),e}normalizeBlocks(e){const o=Object.values(this.editor.schema.nodes).filter(s=>s.isBlock).map(s=>{var r;return(r=s.spec.parseDOM)===null||r===void 0?void 0:r.map(a=>a.tag)}).flat().filter(Boolean).join(",");o&&[...e.querySelectorAll(o)].forEach(s=>{s.parentElement.matches("p")&&HA(s)})}normalizeInline(e,n){var o;if((o=e.firstElementChild)!==null&&o!==void 0&&o.matches("p")){var s,r,a,i;const l=e.firstElementChild,{nextElementSibling:c}=l,u=(s=(r=n.match(/^\s+/))===null||r===void 0?void 0:r[0])!==null&&s!==void 0?s:"",d=c?"":(a=(i=n.match(/\s+$/))===null||i===void 0?void 0:i[0])!==null&&a!==void 0?a:"";if(n.match(/^\n\n/)){l.innerHTML=`${l.innerHTML}${d}`;return}VA(l),e.innerHTML=`${u}${e.innerHTML}${d}`}}withPatchedRenderer(e){const n=o=>function(){const s=o(...arguments);return s===`
288`?s:s[s.length-1]===`
289`?s.slice(0,-1):s};return e.renderer.rules.hardbreak=n(e.renderer.rules.hardbreak),e.renderer.rules.softbreak=n(e.renderer.rules.softbreak),e.renderer.rules.fence=n(e.renderer.rules.fence),e.renderer.rules.code_block=n(e.renderer.rules.code_block),e.renderer.renderToken=n(e.renderer.renderToken.bind(e.renderer)),e}}const TM=me.create({name:"markdownClipboard",addOptions(){return{transformPastedText:!1,transformCopiedText:!1}},addProseMirrorPlugins(){return[new xe({key:new we("markdownClipboard"),props:{clipboardTextParser:(t,e,n)=>{if(n||!this.options.transformPastedText)return null;const o=this.editor.storage.markdown.parser.parse(t,{inline:!0});return pr.fromSchema(this.editor.schema).parseSlice(eh(o),{preserveWhitespace:!0,context:e})}
289,clipboardTextSerializer:t=>this.options.transformCopiedText?this.editor.storage.markdown.serializer.serialize(t.content):null}})]}}),sj=me.create({name:"markdown",priority:50,addOptions(){return{html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!1,breaks:!1,transformPastedText:!1,transformCopiedText:!1}},addCommands(){const t=R6.Commands.config.addCommands();return{setContent:(e,n)=>o=>t.setContent(o.editor.storage.markdown.parser.parse(e),n)(o),insertContentAt:(e,n,o)=>s=>t.insertContentAt(e,s.editor.storage.markdown.parser.parse(n,{inline:!0}),o)(s)}},onBeforeCreate(){this.editor.storage.markdown={options:{...this.options},parser:new MM(this.editor,this.options),serializer:new AM(this.editor),getMarkdown:()=>this.editor.storage.markdown.serializer.serialize(this.editor.state.doc)},this.editor.options.initialContent=this.editor.options.content,this.editor.options.content=this.editor.storage.markdown.parser.parse(this.editor.options.content)},onCreate(){this.editor.options.content=this.editor.options.initialContent,delete this.editor.options.initialContent},addStorage(){return{}},addExtensions(){return[OA.configure({tight:this.options.tightLists,tightClass:this.options.tightListClass}),TM.configure({transformPastedText:this.options.transformPastedText,transformCopiedText:this.options.transformCopiedText})]}}),NM=V7.extend({renderHTML(){return["div",ze(this.options.HTMLAttributes,{"data-type":this.name}),["hr"]]}});var RM=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,rj=De.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",ze(this.options.HTMLAttributes,t)]},parseMarkdown:(t,e)=>e.createNode("image",{src:t.href,title:t.title,alt:t.text}),renderMarkdown:t=>{var e,n,o,s,r,a;const i=(n=(e=t.attrs)==null?void 0:e.src)!=null?n:"",l=(s=(o=t.attrs)==null?void 0:o.alt)!=null?s:"",c=(a=(r=t.attrs)==null?void 0:r.title)!=null?a:"";return c?`![${l}](${i} "${c}")`:`![${l}](${i})`},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}}
289,addInputRules(){return[Dm({find:RM,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]}}),OM=rj;function BM(t){const{editor:e,node:n,updateAttributes:o}=t;return f.jsx(LM,{src:n.attrs.src,alt:n.attrs.alt||"",editor:e,align:n.attrs["data-align"],initialWidth:n.attrs.width,onImageResize:s=>o({width:s})})}const LM=({src:t,alt:e="",editor:n,minWidth:o=96,maxWidth:s=800,align:r="left",initialWidth:a,onImageResize:i})=>{const[l,c]=b.useState(void 0),[u,d]=b.useState(a),[p,m]=b.useState(!1),h=b.useRef(null),g=b.useRef(null),v=b.useRef(null),j=b.useRef(null),k=b.useCallback(F=>{if(!l||!n)return;let D;r==="center"?l.handleUsed==="left"?D=l.initialWidth+(l.initialClientX-F.clientX)*2:D=l.initialWidth+(F.clientX-l.initialClientX)*2:l.handleUsed==="left"?D=l.initialWidth+l.initialClientX-F.clientX:D=l.initialWidth+F.clientX-l.initialClientX;const M=o,R=n.view.dom?.firstElementChild?.clientWidth||s,P=Math.min(Math.max(D,M),R);d(P),h.current&&(h.current.style.width=`${P}px`)},[n,r,s,o,l]),y=b.useCallback(F=>{n&&((!F.target||!h.current?.contains(F.target)||!n.isEditable)&&p&&m(!1),l&&(c(void 0),i&&i(u)))},[n,p,l,i,u]),w=F=>{F.preventDefault(),c({handleUsed:"left",initialWidth:h.current?.clientWidth||Number.MAX_VALUE,initialClientX:F.clientX})},C=F=>{F.preventDefault(),c({handleUsed:"right",initialWidth:h.current?.clientWidth||Number.MAX_VALUE,initialClientX:F.clientX})},x=()=>{n&&n.isEditable&&m(!0)},_=F=>{F.relatedTarget===g.current||F.relatedTarget===v.current||l||n&&n.isEditable&&m(!1)};return b.useEffect(()=>(window.addEventListener("mousemove",k),window.addEventListener("mouseup",y),()=>{window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",y)}),[k,y]),f.jsx(k7,{onMouseEnter:x,onMouseLeave:_,"data-align":r,"data-width":u,className:"tiptap-image",contentEditable:!1,children:f.jsx("div",{ref:h,className:"tiptap-image-container",style:{width:u?`${u}px`:"fit-content"},children:f.jsxs("div",{className:"tiptap-image-content",children:[f.jsx("img",{ref:j,src:t,alt:e,className:"tiptap-image-img",contentEditable:!1,draggable:!1,style:{pointerEvents:"none"}}),p&&n&&n.isEditable&&f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:g,className:"tiptap-image-handle tiptap-image-handle-left",onMouseDown:w}),f.jsx("div",{ref:v,className:"tiptap-image-handle tiptap-image-handle-right",onMouseDown:C})]})]})})})},PM=rj.extend({addAttributes(){return{...this.parent?.(),"data-align":{default:null}}},addNodeView(){return D7(BM,{stopEvent:t=>/dragstart|dragover|dragend|drop/.test(t.event.type)?!1:!/mousedown|drag|drop/.test(t.event.type)})}}),zM={mod:"⌘",command:"⌘",meta:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",option:"⌥",shift:"⇧",backspace:"Del",delete:"⌦",enter:"⏎",escape:"⎋",capslock:"⇪"};function Se(...t){return t.filter(Boolean).join(" ")}function $M(){return typeof navigator<"u"&&navigator.platform.toLowerCase().includes("mac")}const HM=(t,e,n=!0)=>{if(e){const o=t.toLowerCase();return zM[o]||(n?t.toUpperCase():t)}return n?t.charAt(0).toUpperCase()+t.slice(1):t},ct=t=>{const{shortcutKeys:e,delimiter:n="+",capitalize:o=!0}=t;return e?e.split(n).map(s=>s.trim()).map(s=>HM(s,$M(),o)):[]},jo=(t,e)=>e?.schema?e.schema.spec.marks.get(t)!==void 0:!1,Qe=(t,e)=>e?.schema?e.schema.spec.nodes.get(t)!==void 0:!1;function Pt(t){return typeof t=="number"&&t>=0}function Ir(t,e){if(!t)return!1;const n=Array.isArray(e)?e:[e],o=n.some(s=>t.extensionManager.extensions.some(r=>r.name===s));return o||console.warn(`None of the extensions [${n.join(", ")}] were found in the editor schema. Ensure they are included in the editor configuration.`),o}function VM(t,e){try{const n=t.state.doc.nodeAt(e);return n||(console.warn(`No node found at position ${e}`),null)}catch(n){return console.error(`Error getting node at position ${e}:`,n),null}}function vn(t){const{editor:e,node:n,nodePos:o}=t;if(!e||!e.state?.doc)return null;const s=n!=null,r=Pt(o);if(!s&&!r)return null;if(s){let a=-1,i=null;if(e.state.doc.descendants((l,c)=>l===n?(a=c,i=l,!1):!0),a!==-1&&i!==null)return{pos:a,node:i}}if(r){const a=VM(e,o);if(a)return{pos:o,node:a}}return null}function jn(t,e=[]){if(!t||!t.state.selection)return!1;const{state:n}=t,{selection:o}=n;if(o.empty)return!1;if(o instanceof U){const s=o.node;return s?e.includes(s.type.name):!1}return!1}const UM=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function qM(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return!t||t.replace(UM,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}function Gp(t,e,n){try{const o=new URL(t,e);if(qM(o.href,n))return o.href}catch{}return"#"}function oe(t){const{editor:e}=v7(),n=b.useMemo(()=>t||e,[t,e]);return Sm({editor:n,selector(s){return s.editor?{editor:s.editor,editorState:s.editor.state,canCommand:s.editor.can}:{editor:null,editorState:void 0,canCommand:void 0}}})||{editor:null}}/*!
290* tabbable 6.2.0
291* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
292*/var WM=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not
292(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Zp=WM.join(","),aj=typeof Element>"u",Ua=aj?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,gc=!aj&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},bc=function t(e,n){var o;n===void 0&&(n=!0);var s=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),r=s===""||s==="true",a=r||n&&e&&t(e.parentNode);return a},KM=function(e){var n,o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return o===""||o==="true"},GM=function(e,n,o){if(bc(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Zp));return n&&Ua.call(e,Zp)&&s.unshift(e),s=s.filter(o),s},ZM=function t(e,n,o){for(var s=[],r=Array.from(e);r.length;){var a=r.shift();if(!bc(a,!1))if(a.tagName==="SLOT"){var i=a.assignedElements(),l=i.length?i:a.children,c=t(l,!0,o);o.flatten?s.push.apply(s,c):s.push({scopeParent:a,candidates:c})}else{var u=Ua.call(a,Zp);u&&o.filter(a)&&(n||!e.includes(a))&&s.push(a);var d=a.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(a),p=!bc(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(a));if(d&&p){var m=t(d===!0?a.children:d.children,!0,o);o.flatten?s.push.apply(s,m):s.push({scopeParent:a,candidates:m})}else r.unshift.apply(r,a.children)}}return s},ij=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},lj=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||KM(e))&&!ij(e)?0:e.tabIndex},JM=function(e,n){var o=lj(e);return o<0&&n&&!ij(e)?0:o},YM=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},cj=function(e){return e.tagName==="INPUT"},XM=function(e){return cj(e)&&e.type==="hidden"},QM=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return n},eT=function(e,n){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===n)return e[o]},tT=function(e){if(!e.name)return!0;var n=e.form||gc(e),o=function(i){return n.querySelectorAll('input[type="radio"][name="'+i+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=o(window.CSS.escape(e.name));else try{s=o(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var r=eT(s,e.form);return!r||r===e},nT=function(e){return cj(e)&&e.type==="radio"},oT=function(e){return nT(e)&&!tT(e)},sT=function(e){var n,o=e&&gc(e),s=(n=o)===null||n===void 0?void 0:n.host,r=!1;if(o&&o!==e){var a,i,l;for(r=!!((a=s)!==null&&a!==void 0&&(i=a.ownerDocument)!==null&&i!==void 0&&i.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!r&&s;){var c,u,d;o=gc(s),s=(c=o)===null||c===void 0?void 0:c.host,r=!!((u=s)!==null&&u!==void 0&&(d=u.ownerDocument)!==null&&d!==void 0&&d.contains(s))}}return r},N0=function(e){var n=e.getBoundingClientRect(),o=n.width,s=n.height;return o===0&&s===0},rT=function(e,n){var o=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var r=Ua.call(e,"details>summary:first-of-type"),a=r?e.parentElement:e;if(Ua.call(a,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof s=="function"){for(var i=e;e;){var l=e.parentElement,c=gc(e);if(l&&!l.shadowRoot&&s(l)===!0)return N0(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=i}if(sT(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return N0(e);return!1},aT=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var o=0;o<n.children.length;o++){var s=n.children.item(o);if(s.tagName==="LEGEND")return Ua.call(n,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}n=n.parentElement}return!1},iT=function(e,n){return!(n.disabled||bc(n)||XM(n)||rT(n,e)||QM(n)||aT(n))},R0=function(e,n){return!(oT(n)||lj(n)<0||!iT(e,n))},lT=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},cT=function t(e){var n=[],o=[];
292return e.forEach(function(s,r){var a=!!s.scopeParent,i=a?s.scopeParent:s,l=JM(i,a),c=a?t(s.candidates):i;l===0?a?n.push.apply(n,c):n.push(i):o.push({documentOrder:r,tabIndex:l,item:s,isScope:a,content:c})}),o.sort(YM).reduce(function(s,r){return r.isScope?s.push.apply(s,r.content):s.push(r.content),s},[]).concat(n)},uj=function(e,n){n=n||{};var o;return n.getShadowRoot?o=ZM([e],n.includeContainer,{filter:R0.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:lT}):o=GM(e,n.includeContainer,R0.bind(null,n)),cT(o)};function uT(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function dT(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:o}=e;return n+"/"+o}).join(" "):navigator.userAgent}function dj(){return/apple/i.test(navigator.vendor)}function pT(){return uT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function fT(){return dT().includes("jsdom/")}const O0="data-floating-ui-focusable",mT="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Jp(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function Sr(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&A_(n)){let o=e;for(;o;){if(t===o)return!0;o=o.parentNode||o.host}}return!1}function ur(t){return"composedPath"in t?t.composedPath()[0]:t.target}function Md(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function hT(t){return t.matches("html,body")}function Un(t){return t?.ownerDocument||document}function gT(t){return Vf(t)&&t.matches(mT)}function bT(t){if(!t||fT())return!0;try{return t.matches(":focus-visible")}catch{return!0}}function vT(t){return t?t.hasAttribute(O0)?t:t.querySelector("["+O0+"]")||t:null}function pl(t,e,n){return n===void 0&&(n=!0),t.filter(s=>{var r;return s.parentId===e&&(!n||((r=s.context)==null?void 0:r.open))}).flatMap(s=>[s,...pl(t,s.id,n)])}function jT(t){return"nativeEvent"in t}function Yp(t,e){const n=["mouse","pen"];return n.push("",void 0),n.includes(t)}var kT=typeof document<"u",yT=function(){},tn=kT?b.useLayoutEffect:yT;const wT={...$f};function Uo(t){const e=b.useRef(t);return tn(()=>{e.current=t}),e}const _T=wT.useInsertionEffect,xT=_T||(t=>t());function $n(t){const e=b.useRef(()=>{});return xT(()=>{e.current=t}),b.useCallback(function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return e.current==null?void 0:e.current(...o)},[])}const pj=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function fj(t,e){const n=uj(t,pj()),o=n.length;if(o===0)return;const s=Jp(Un(t)),r=n.indexOf(s),a=r===-1?e===1?0:o-1:r+e;return n[a]}function CT(t){return fj(Un(t).body,1)||t}function DT(t){return fj(Un(t).body,-1)||t}function Td(t,e){const n=e||t.currentTarget,o=t.relatedTarget;return!o||!Sr(n,o)}function FT(t){uj(t,pj()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function B0(t){t.querySelectorAll("[data-tabindex]").forEach(n=>{const o=n.dataset.tabindex;delete n.dataset.tabindex,o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")})}function mj(t){const e=b.useRef(void 0),n=b.useCallback(o=>{const s=t.map(r=>{if(r!=null){if(typeof r=="function"){const a=r,i=a(o);return typeof i=="function"?i:()=>{a(null)}}return r.current=o,()=>{r.current=null}}});return()=>{s.forEach(r=>r?.())}},t);return b.useMemo(()=>t.every(o=>o==null)?null:o=>{e.current&&(e.current(),e.current=void 0),o!=null&&(e.current=n(o))},t)}const ET="data-floating-ui-focusable",L0="active",P0="selected",IT={...$f};let z0=!1,ST=0;const $0=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ST++;function AT(){const[t,e]=b.useState(()=>z0?$0():void 0);return tn(()=>{t==null&&e($0())},[]),b.useEffect(()=>{z0=!0},[]),t}const MT=IT.useId,th=MT||AT;function TT(){const t=new Map;return{emit(e,n){var o;(o=t.get(e))==null||o.forEach(s=>s(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var o;(o=t.get(e))==null||o.delete(n)}}}const NT=b.createContext(null),RT=b.createContext(null),nh=()=>{var t;return((t=b.useContext(NT))==null?void 0:t.id)||null},oh=()=>b.useContext(RT);function fi(t){return"data-floating-ui-"+t}function ln(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const H0=fi("safe-polygon");function Nd(t,e,n){if(n&&!Yp(n))return 0;if(typeof t=="number")return t;if(typeof t=="function"){const o=t();return typeof o=="number"?o:o?.[e]}return t?.[e]}function Rd(t){return typeof t=="function"?t():t}function OT(t,e){e===void 0&&(e={});const{open:n,onOpenChange:o,dataRef:s,events:r,elements:a}=t,{enabled:i=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:p=!0}=e,m=oh(),h=nh(),g=Uo(c),v=Uo(l),j=Uo(n),k=Uo(d),y=b.useRef(),w=b.useRef(-1),C=b.useRef(),x=b.useRef(-1),_=b.useRef(!0),F=b.useRef(!1),D=b.useRef(()=>{}),M=b.useRef(!1),R=$n(()=>{var T;const O=(T=s.current.openEvent)==null?void 0:T.type;return O?.includes("mouse")&&O!=="mousedown"});b.useEffect(()=>{if(!i)return;function T(O){let{open:N}=O;N||(ln(w),ln(x),_.current=!0,M.current=!1)}return r.on("openchange",T),()=>{r.off("openchange",T)}},[i,r]),b.useEffect(()=>{if(!i||!g.current||!n)return;function T(N){R()&&o(!1,N,"hover")}const O=Un(a.floating).documentElement;return O.addEventListener("mouseleave",T),()=>{O.removeEventListener("mouseleave",T)}}
292,[a.floating,n,o,i,g,R]);const P=b.useCallback(function(T,O,N){O===void 0&&(O=!0),N===void 0&&(N="hover");const $=Nd(v.current,"close",y.current);$&&!C.current?(ln(w),w.current=window.setTimeout(()=>o(!1,T,N),$)):O&&(ln(w),o(!1,T,N))},[v,o]),E=$n(()=>{D.current(),C.current=void 0}),S=$n(()=>{if(F.current){const T=Un(a.floating).body;T.style.pointerEvents="",T.removeAttribute(H0),F.current=!1}}),I=$n(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);b.useEffect(()=>{if(!i)return;function T(K){if(ln(w),_.current=!1,u&&!Yp(y.current)||Rd(k.current)>0&&!Nd(v.current,"open"))return;const Z=Nd(v.current,"open",y.current);Z?w.current=window.setTimeout(()=>{j.current||o(!0,K,"hover")},Z):n||o(!0,K,"hover")}function O(K){if(I()){S();return}D.current();const Z=Un(a.floating);if(ln(x),M.current=!1,g.current&&s.current.floatingContext){n||ln(w),C.current=g.current({...s.current.floatingContext,tree:m,x:K.clientX,y:K.clientY,onClose(){S(),E(),I()||P(K,!0,"safe-polygon")}});const ee=C.current;Z.addEventListener("mousemove",ee),D.current=()=>{Z.removeEventListener("mousemove",ee)};return}(y.current==="touch"?!Sr(a.floating,K.relatedTarget):!0)&&P(K)}function N(K){I()||s.current.floatingContext&&(g.current==null||g.current({...s.current.floatingContext,tree:m,x:K.clientX,y:K.clientY,onClose(){S(),E(),I()||P(K)}})(K))}function $(){ln(w)}function V(K){I()||P(K,!1)}if(Ht(a.domReference)){const K=a.domReference,Z=a.floating;return n&&K.addEventListener("mouseleave",N),p&&K.addEventListener("mousemove",T,{once:!0}),K.addEventListener("mouseenter",T),K.addEventListener("mouseleave",O),Z&&(Z.addEventListener("mouseleave",N),Z.addEventListener("mouseenter",$),Z.addEventListener("mouseleave",V)),()=>{n&&K.removeEventListener("mouseleave",N),p&&K.removeEventListener("mousemove",T),K.removeEventListener("mouseenter",T),K.removeEventListener("mouseleave",O),Z&&(Z.removeEventListener("mouseleave",N),Z.removeEventListener("mouseenter",$),Z.removeEventListener("mouseleave",V))}}},[a,i,t,u,p,P,E,S,o,n,j,m,v,g,s,I,k]),tn(()=>{var T;if(i&&n&&(T=g.current)!=null&&(T=T.__options)!=null&&T.blockPointerEvents&&R()){F.current=!0;const N=a.floating;if(Ht(a.domReference)&&N){var O;const $=Un(a.floating).body;$.setAttribute(H0,"");const V=a.domReference,K=m==null||(O=m.nodesRef.current.find(Z=>Z.id===h))==null||(O=O.context)==null?void 0:O.elements.floating;return K&&(K.style.pointerEvents=""),$.style.pointerEvents="none",V.style.pointerEvents="auto",N.style.pointerEvents="auto",()=>{$.style.pointerEvents="",V.style.pointerEvents="",N.style.pointerEvents=""}}}},[i,n,h,a,m,g,R]),tn(()=>{n||(y.current=void 0,M.current=!1,E(),S())},[n,E,S]),b.useEffect(()=>()=>{E(),ln(w),ln(x),S()},[i,a.domReference,E,S]);const A=b.useMemo(()=>{function T(O){y.current=O.pointerType}return{onPointerDown:T,onPointerEnter:T,onMouseMove(O){const{nativeEvent:N}=O;function $(){!_.current&&!j.current&&o(!0,N,"hover")}u&&!Yp(y.current)||n||Rd(k.current)===0||M.current&&O.movementX**2+O.movementY**2<2||(ln(x),y.current==="touch"?$():(M.current=!0,x.current=window.setTimeout($,Rd(k.current))))}}},[u,o,n,j,k]);return b.useMemo(()=>i?{reference:A}:{},[i,A])}const V0=()=>{},BT=b.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:V0,setState:V0,isInstantPhase:!1});function LT(t){const{children:e,delay:n,timeoutMs:o=0}=t,[s,r]=b.useReducer((l,c)=>({...l,...c}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),a=b.useRef(null),i=b.useCallback(l=>{r({currentId:l})},[]);return tn(()=>{s.currentId?a.current===null?a.current=s.currentId:s.isInstantPhase||r({isInstantPhase:!0}):(s.isInstantPhase&&r({isInstantPhase:!1}),a.current=null)},[s.currentId,s.isInstantPhase]),f.jsx(BT.Provider,{value:b.useMemo(()=>({...s,setState:r,setCurrentId:i}),[s,i]),children:e})}const hj={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},U0=b.forwardRef(function(e,n){const[o,s]=b.useState();tn(()=>{dj()&&s("button")},[]);const r={ref:n,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,[fi("focus-guard")]:"",style:hj};return f.jsx("span",{...e,...r})}),gj=b.createContext(null),q0=fi("portal");function PT(t){t===void 0&&(t={});const{id:e,root:n}=t,o=th(),s=$T(),[r,a]=b.useState(null),i=b.useRef(null);return tn(()=>()=>{r?.remove(),queueMicrotask(()=>{i.current=null})},[r]),tn(()=>
vendor: 2,685 bytes, line 292
292{if(!o||i.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=o,c.setAttribute(q0,""),l.appendChild(c),i.current=c,a(c)},[e,o]),tn(()=>{if(n===null||!o||i.current)return;let l=n||s?.portalNode;l&&!N_(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const u=document.createElement("div");u.id=o,u.setAttribute(q0,""),l=c||l,l.appendChild(u),i.current=u,a(u)},[e,n,o,s]),r}function zT(t){const{children:e,id:n,root:o,preserveTabOrder:s=!0}=t,r=PT({id:n,root:o}),[a,i]=b.useState(null),l=b.useRef(null),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),p=a?.modal,m=a?.open,h=!!a&&!a.modal&&a.open&&s&&!!(o||r);return b.useEffect(()=>{if(!r||!s||p)return;function g(v){r&&Td(v)&&(v.type==="focusin"?B0:FT)(r)}return r.addEventListener("focusin",g,!0),r.addEventListener("focusout",g,!0),()=>{r.removeEventListener("focusin",g,!0),r.removeEventListener("focusout",g,!0)}},[r,s,p]),b.useEffect(()=>{r&&(m||B0(r))},[m,r]),f.jsxs(gj.Provider,{value:b.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:r,setFocusManagerState:i}),[s,r]),children:[h&&r&&f.jsx(U0,{"data-type":"outside",ref:l,onFocus:g=>{if(Td(g,r)){var v;(v=u.current)==null||v.focus()}else{const j=a?a.domReference:null,k=DT(j);k?.focus()}}}),h&&r&&f.jsx("span",{"aria-owns":r.id,style:hj}),r&&Ns.createPortal(e,r),h&&r&&f.jsx(U0,{"data-type":"outside",ref:c,onFocus:g=>{if(Td(g,r)){var v;(v=d.current)==null||v.focus()}else{const j=a?a.domReference:null,k=CT(j);k?.focus(),a?.closeOnFocusOut&&a?.onOpenChange(!1,g.nativeEvent,"focus-out")}}})]})}const $T=()=>b.useContext(gj),HT={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},VT={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},W0=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t?.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t?.outsidePress)!=null?n:!0}};function bj(t,e){e===void 0&&(e={});const{open:n,onOpenChange:o,elements:s,dataRef:r}=t,{enabled:a=!0,escapeKey:i=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:m,capture:h}=e,g=oh(),v=$n(typeof l=="function"?l:()=>!1),j=typeof l=="function"?v:l,k=b.useRef(!1),{escapeKey:y,outsidePress:w}=W0(m),{escapeKey:C,outsidePress:x}=W0(h),_=b.useRef(!1),F=$n(S=>{var I;if(!n||!a||!i||S.key!=="Escape"||_.current)return;const A=(I=r.current.floatingContext)==null?void 0:I.nodeId,T=g?pl(g.nodesRef.current,A):[];if(!y&&(S.stopPropagation(),T.length>0)){let O=!0;
292if(T.forEach(N=>{var $;if(($=N.context)!=null&&$.open&&!N.context.dataRef.current.__escapeKeyBubbles){O=!1;return}}),!O)return}o(!1,jT(S)?S.nativeEvent:S,"escape-key")}),D=$n(S=>{var I;const A=()=>{var T;F(S),(T=ur(S))==null||T.removeEventListener("keydown",A)};(I=ur(S))==null||I.addEventListener("keydown",A)}),M=$n(S=>{var I;const A=r.current.insideReactTree;r.current.insideReactTree=!1;const T=k.current;if(k.current=!1,c==="click"&&T||A||typeof j=="function"&&!j(S))return;const O=ur(S),N="["+fi("inert")+"]",$=Un(s.floating).querySelectorAll(N);let V=Ht(O)?O:null;for(;V&&!Uu(V);){const ee=O_(V);if(Uu(ee)||!Ht(ee))break;V=ee}if($.length&&Ht(O)&&!hT(O)&&!Sr(O,s.floating)&&Array.from($).every(ee=>!Sr(V,ee)))return;if(Vf(O)&&E){const ee=Uu(O),be=B_(O),Oe=/auto|scroll/,L=ee||Oe.test(be.overflowX),G=ee||Oe.test(be.overflowY),te=L&&O.clientWidth>0&&O.scrollWidth>O.clientWidth,Fe=G&&O.clientHeight>0&&O.scrollHeight>O.clientHeight,Me=be.direction==="rtl",Te=Fe&&(Me?S.offsetX<=O.offsetWidth-O.clientWidth:S.offsetX>O.clientWidth),Ct=te&&S.offsetY>O.clientHeight;if(Te||Ct)return}const K=(I=r.current.floatingContext)==null?void 0:I.nodeId,Z=g&&pl(g.nodesRef.current,K).some(ee=>{var be;return Md(S,(be=ee.context)==null?void 0:be.elements.floating)});if(Md(S,s.floating)||Md(S,s.domReference)||Z)return;const se=g?pl(g.nodesRef.current,K):[];if(se.length>0){let ee=!0;if(se.forEach(be=>{var Oe;if((Oe=be.context)!=null&&Oe.open&&!be.context.dataRef.current.__outsidePressBubbles){ee=!1;return}}),!ee)return}o(!1,S,"outside-press")}),R=$n(S=>{var I;const A=()=>{var T;M(S),(T=ur(S))==null||T.removeEventListener(c,A)};(I=ur(S))==null||I.addEventListener(c,A)});b.useEffect(()=>{if(!n||!a)return;r.current.__escapeKeyBubbles=y,r.current.__outsidePressBubbles=w;let S=-1;function I($){o(!1,$,"ancestor-scroll")}function A(){window.clearTimeout(S),_.current=!0}function T(){S=window.setTimeout(()=>{_.current=!1},R_()?5:0)}const O=Un(s.floating);i&&(O.addEventListener("keydown",C?D:F,C),O.addEventListener("compositionstart",A),O.addEventListener("compositionend",T)),j&&O.addEventListener(c,x?R:M,x);let N=[];return p&&(Ht(s.domReference)&&(N=Vu(s.domReference)),Ht(s.floating)&&(N=N.concat(Vu(s.floating))),!Ht(s.reference)&&s.reference&&s.reference.contextElement&&(N=N.concat(Vu(s.reference.contextElement)))),N=N.filter($=>{var V;return $!==((V=O.defaultView)==null?void 0:V.visualViewport)}),N.forEach($=>{$.addEventListener("scroll",I,{passive:!0})}),()=>{i&&(O.removeEventListener("keydown",C?D:F,C),O.removeEventListener("compositionstart",A),O.removeEventListener("compositionend",T)),j&&O.removeEventListener(c,x?R:M,x),N.forEach($=>{$.removeEventListener("scroll",I)}),window.clearTimeout(S)}},[r,s,i,j,c,n,o,p,a,y,w,F,C,D,M,x,R]),b.useEffect(()=>{r.current.insideReactTree=!1},[r,j,c]);const P=b.useMemo(()=>({onKeyDown:F,...u&&{[HT[d]]:S=>{o(!1,S.nativeEvent,"reference-press")},...d!=="click"&&{onClick(S){o(!1,S.nativeEvent,"reference-press")}}}}),[F,o,u,d]),E=b.useMemo(()=>({onKeyDown:F,onMouseDown(){k.current=!0},onMouseUp(){k.current=!0},[VT[c]]:()=>{r.current.insideReactTree=!0}}),[F,c,r]);return b.useMemo(()=>a?{reference:P,floating:E}:{},[a,P,E])}function UT(t){const{open:e=!1,onOpenChange:n,elements:o}=t,s=th(),r=b.useRef({}),[a]=b.useState(()=>TT()),i=nh()!=null,[l,c]=b.useState(o.reference),u=$n((m,h,g)=>{r.current.openEvent=m?h:void 0,a.emit("openchange",{open:m,event:h,reason:g,nested:i}),n?.(m,h,g)}),d=b.useMemo(()=>({setPositionReference:c}),[]),p=b.useMemo(()=>({reference:l||o.reference||null,floating:o.floating||null,domReference:o.reference}),[l,o.reference,o.floating]);return b.useMemo(()=>({dataRef:r,open:e,onOpenChange:u,elements:p,events:a,floatingId:s,refs:d}),[e,u,p,a,s,d])}function vj(t){t===void 0&&(t={});const{nodeId:e}=t,n=UT({...t,elements:{reference:null,floating:null,...t.elements}}),o=t.rootContext||n,s=o.elements,[r,a]=b.useState(null),[i,l]=b.useState(null),u=s?.domReference||r,d=b.useRef(null),p=oh();tn(()=>{u&&(d.current=u)},[u]);const m=M_({...t,elements:{...s,...i&&{reference:i}}}),h=b.useCallback(y=>{const w=Ht(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),getClientRects:()=>y.getClientRects(),contextElement:y}:y;l(w),m.refs.setReference(w)},[m.refs]),g=b.useCallback(y=>{(Ht(y)||y===null)&&(d.current=y,a(y)),(Ht(m.refs.reference.current)||m.refs.reference.current===null||y!==null&&!Ht(y))&&m.refs.setReference(y)},[m.refs]),v=b.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:d}),[m.refs,g,h]),j=b.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),k=b.useMemo(()=>({...m,...o,refs:v,elements:j,nodeId:e}),[m,v,j,e,o]);return tn(()=>{o.dataRef.current.floatingContext=k;const y=p?.nodesRef.current.find(w=>w.id===e);y&&(y.context=k)}),b.useMemo(()=>({...m,context:k,refs:v,elements:j}),[m,v,j,k])}function Od(){return pT()&&dj()}function qT(t,e){e===void 0&&(e={});const{open:n,onOpenChange:o,events:s,dataRef:r,elements:a}=t,{enabled:i=!0,visibleOnly:l=!0}=e,c=b.useRef(!1),u=b.useRef(-1),d=b.useRef(!0);b.useEffect(()=>{if(!i)return;const m=T_(a.domReference);function h(){!n&&Vf(a.domReference)&&a.domReference===Jp(Un(a.domReference))&&(c.current=!0)}function g(){d.current=!0}function v(){d.current=!1}return m.addEventListener("blur",h),Od()&&(m.addEventListener("keydown",g,!0),m.addEventListener("pointerdown",v,!0)),()=>{m.removeEventListener("blur",h),Od()&&(m.removeEventListener("keydown",g,!0),m.removeEventListener("pointerdown",v,!0))}},[a.domReference,n,i]),b.useEffect(()=>{if(!i)return;function m(h){let{reason:g}=h;(g==="reference-press"||g==="escape-key")&&(c.current=!0)}return s.on("openchange",m),()=>{s.off("openchange",m)}},[s,i]),b.useEffect(()=>()=>{ln(u)},[]);const p=b.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(m){if(c.current)return;const h=ur(m.nativeEvent);if(l&&Ht(h)){if(Od()&&!m.relatedTarget){if(!d.current&&!gT(h))return}else if(!bT(h))return}o(!0,m.nativeEvent,"focus")},onBlur(m){c.current=!1;const h=m.relatedTarget,g=m.nativeEvent,v=Ht(h)&&h.hasAttribute(fi("focus-guard"))&&h.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var j;const k=Jp(a.domReference?a.domReference.ownerDocument:document);!h&&k===a.domReference||Sr((j=r.current.floatingContext)==null?void 0:j.refs.floating.current,k)||Sr(a.domReference,k)||v||o(!1,g,"focus")})}}),[r,a.domReference,o,l]);return b.useMemo(()=>i?{reference:p}:{},[i,p])}function Bd(t,e,n){const o=new Map,s=n==="item";let r=t;if(s&&t){const{[L0]:a,[P0]:i,...l}=t;r=l}return{...n==="floating"&&{tabIndex:-1,[ET]:""},...r,...e.map(a=>{const i=a?a[n]:null;return typeof i=="function"?t?i(t):null:i}).concat(t).reduce((a,i)=>
292(i&&Object.entries(i).forEach(l=>{let[c,u]=l;if(!(s&&[L0,P0].includes(c)))if(c.indexOf("on")===0){if(o.has(c)||o.set(c,[]),typeof u=="function"){var d;(d=o.get(c))==null||d.push(u),a[c]=function(){for(var p,m=arguments.length,h=new Array(m),g=0;g<m;g++)h[g]=arguments[g];return(p=o.get(c))==null?void 0:p.map(v=>v(...h)).find(v=>v!==void 0)}}}else a[c]=u}),a),{})}}function jj(t){t===void 0&&(t=[]);const e=t.map(i=>i?.reference),n=t.map(i=>i?.floating),o=t.map(i=>i?.item),s=b.useCallback(i=>Bd(i,t,"reference"),e),r=b.useCallback(i=>Bd(i,t,"floating"),n),a=b.useCallback(i=>Bd(i,t,"item"),o);return b.useMemo(()=>({getReferenceProps:s,getFloatingProps:r,getItemProps:a}),[s,r,a])}const WT=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function KT(t,e){var n,o;e===void 0&&(e={});const{open:s,elements:r,floatingId:a}=t,{enabled:i=!0,role:l="dialog"}=e,c=th(),u=((n=r.domReference)==null?void 0:n.id)||c,d=b.useMemo(()=>{var k;return((k=vT(r.floating))==null?void 0:k.id)||a},[r.floating,a]),p=(o=WT.get(l))!=null?o:l,h=nh()!=null,g=b.useMemo(()=>p==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:s?d:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":p==="alertdialog"?"dialog":p,"aria-controls":s?d:void 0,...p==="listbox"&&{role:"combobox"},...p==="menu"&&{id:u},...p==="menu"&&h&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[p,d,h,s,u,l]),v=b.useMemo(()=>{const k={id:d,...p&&{role:p}};return p==="tooltip"||l==="label"?k:{...k,...p==="menu"&&{"aria-labelledby":u}}},[p,d,u,l]),j=b.useCallback(k=>{let{active:y,selected:w}=k;const C={role:"option",...y&&{id:d+"-fui-option"}};switch(l){case"select":case"combobox":return{...C,"aria-selected":w}}return{}},[d,l]);return b.useMemo(()=>i?{reference:g,floating:v,item:j}:{},[i,g,v,j])}const K0=t=>t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,n)=>(n?"-":"")+e.toLowerCase());function sr(t,e){return typeof t=="function"?t(e):t}function GT(t,e){const[n,o]=b.useState(t);return t&&!n&&o(!0),b.useEffect(()=>{if(!t&&n){const s=setTimeout(()=>o(!1),e);return()=>clearTimeout(s)}},[t,n,e]),n}function ZT(t,e){e===void 0&&(e={});const{open:n,elements:{floating:o}}=t,{duration:s=250}=e,a=(typeof s=="number"?s:s.close)||0,[i,l]=b.useState("unmounted"),c=GT(n,a);return!c&&i==="close"&&l("unmounted"),tn(()=>{if(o){if(n){l("initial");const u=requestAnimationFrame(()=>{Ns.flushSync(()=>{l("open")})});return()=>{cancelAnimationFrame(u)}}l("close")}},[n,o]),{isMounted:c,status:i}}function JT(t,e){e===void 0&&(e={});const{initial:n={opacity:0},open:o,close:s,common:r,duration:a=250}=e,i=t.placement,l=i.split("-")[0],c=b.useMemo(()=>({side:l,placement:i}),[l,i]),u=typeof a=="number",d=(u?a:a.open)||0,p=(u?a:a.close)||0,[m,h]=b.useState(()=>({...sr(r,c),...sr(n,c)})),{isMounted:g,status:v}=ZT(t,{duration:a}),j=Uo(n),k=Uo(o),y=Uo(s),w=Uo(r);return tn(()=>{const C=sr(j.current,c),x=sr(y.current,c),_=sr(w.current,c),F=sr(k.current,c)||Object.keys(C).reduce((D,M)=>(D[M]="",D),{});if(v==="initial"&&h(D=>({transitionProperty:D.transitionProperty,..._,...C})),v==="open"&&h({transitionProperty:Object.keys(F).map(K0).join(","),transitionDuration:d+"ms",..._,...F}),v==="close"){const D=x||C;h({transitionProperty:Object.keys(D).map(K0).join(","),transitionDuration:p+"ms",..._,...D})}},[p,y,j,k,w,d,v,c]),{isMounted:g,styles:m}}function YT({initialOpen:t=!1,placement:e="top",open:n,onOpenChange:o,delay:s=600,closeDelay:r=0}={}){const[a,i]=b.useState(t),l=n??a,c=o??i,u=vj({placement:e,open:l,onOpenChange:c,whileElementsMounted:N2,middleware:[Uf(4),M2({crossAxis:e.includes("-"),fallbackAxisSideDirection:"start",padding:4}),T2({padding:4})]}),d=u.context,p=OT(d,{mouseOnly:!0,move:!1,restMs:s,enabled:n==null,delay:{close:r}}),m=qT(d,{enabled:n==null}),h=bj(d),g=KT(d,{role:"tooltip"}),v=jj([p,m,h,g]);return b.useMemo(()=>({open:l,setOpen:c,...v,...u}),[l,c,v,u])}const Xp=b.createContext(null);function kj(){const t=b.useContext(Xp);if(t==null)throw new Error("Tooltip components must be wrapped in <TooltipProvider />");return t}function yj({children:t,...e}){const n=YT(e);return e.useDelayGroup?f.jsx(LT,{delay:{open:e.delay??0,close:e.closeDelay??0},timeoutMs:e.timeout,children:f.jsx(Xp.Provider,{value:n,children:t})}):f.jsx(Xp.Provider,{value:n,children:t})}const wj=b.forwardRef(function({children:e,asChild:n=!1,...o},s){const r=kj(),a=b.isValidElement(e)?parseInt(b.version,10)>=19?e.props.ref:e.ref:void 0,i=mj([r.refs.setReference,s,a]);if(n&&b.isValidElement(e)){const l={"data-tooltip-state":r.open?"open":"closed"};return b.cloneElement(e,r.getReferenceProps({ref:i,...o,...typeof e.props=="object"?e.props:{},...l}))}return f.jsx("button",{ref:i,"data-tooltip-state":r.open?"open":"closed",...r.getReferenceProps(o),children:e})}),_j=b.forwardRef(function({style:e,children:n,portal:o=!0,portalProps:s={},...r},a){const i=kj(),l=mj([i.refs.setFloating,a]);if(!i.open)return null;const c=f.jsx("div",{ref:l,style:{...i.floatingStyles,...e},...i.getFloatingProps(r),className:"tiptap-tooltip",children:n});return o?f.jsx(zT,{...s,children:c}):c});yj.displayName="Tooltip";wj.displayName="TooltipTrigger";_j.displayName="TooltipContent";const XT=({shortcuts:t})=>t.length===0?null:f.jsx("div",{children:t.map((e,n)=>f.jsxs(b.Fragment,{children:[n>0&&f.jsx("kbd",{children:"+"}),f.jsx("kbd",{children:e})]},n))}),je=b.forwardRef(({className:t,children:e,tooltip:n,showTooltip:o=!0,shortcutKeys:s,"aria-label":r,...a},i)=>{const l=b.useMemo(()=>ct({shortcutKeys:s}),[s]);return!n||!o?f.jsx("button",{className:Se("tiptap-button",t),ref:i,"aria-label":r,...a,children:e}):f.jsxs(yj,{delay:200,children:[f.jsx(wj,{className:Se("tiptap-button",t),ref:i,"aria-label":r,...a,children:e}),f.jsxs(_j,{children:[n,f.jsx(XT,{shortcuts:l})]})]})});
292je.displayName="Button";const as=b.forwardRef(({className:t,children:e,orientation:n="vertical",...o},s)=>f.jsx("div",{ref:s,className:Se("tiptap-button-group",t),"data-orientation":n,role:"group",...o,children:e}));as.displayName="ButtonGroup";const ut=b.forwardRef(({variant:t,size:e="default",appearance:n="default",trimText:o=!1,className:s,children:r,...a},i)=>f.jsx("div",{ref:i,className:`tiptap-badge ${s||""}`,"data-style":t,"data-size":e,"data-appearance":n,"data-text-trim":o?"on":"off",...a,children:r}));ut.displayName="Badge";function QT({type:t,shortcutKeys:e=Aj[t]}){return f.jsx(ut,{children:ct({shortcutKeys:e})})}const po=b.forwardRef(({editor:t,type:e,text:n,hideWhenUnavailable:o=!1,onToggled:s,showShortcut:r=!1,onClick:a,children:i,...l},c)=>{const{editor:u}=oe(t),{isVisible:d,handleMark:p,label:m,canToggle:h,isActive:g,Icon:v,shortcutKeys:j}=rN({editor:u,type:e,hideWhenUnavailable:o,onToggled:s}),k=b.useCallback(y=>{a?.(y),!y.defaultPrevented&&p()},[p,a]);return d?f.jsx(je,{type:"button",disabled:!h,"data-style":"ghost","data-active-state":g?"on":"off","data-disabled":!h,role:"button",tabIndex:-1,"aria-label":m,"aria-pressed":g,tooltip:m,onClick:k,...l,ref:c,children:i??f.jsxs(f.Fragment,{children:[f.jsx(v,{className:"tiptap-button-icon"}),n&&f.jsx("span",{className:"tiptap-button-text",children:n}),r&&f.jsx(QT,{type:e,shortcutKeys:j})]})}):null});po.displayName="MarkButton";const xj=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2.5C5.17157 2.5 4.5 3.17157 4.5 4V20C4.5 20.8284 5.17157 21.5 6 21.5H15C16.4587 21.5 17.8576 20.9205 18.8891 19.8891C19.9205 18.8576 20.5 17.4587 20.5 16C20.5 14.5413 19.9205 13.1424 18.8891 12.1109C18.6781 11.9 18.4518 11.7079 18.2128 11.5359C19.041 10.5492 19.5 9.29829 19.5 8C19.5 6.54131 18.9205 5.14236 17.8891 4.11091C16.8576 3.07946 15.4587 2.5 14 2.5H6ZM14 10.5C14.663 10.5 15.2989 10.2366 15.7678 9.76777C16.2366 9.29893 16.5 8.66304 16.5 8C16.5 7.33696 16.2366 6.70107 15.7678 6.23223C15.2989 5.76339 14.663 5.5 14 5.5H7.5V10.5H14ZM7.5 18.5V13.5H15C15.663 13.5 16.2989 13.7634 16.7678 14.2322C17.2366 14.7011 17.5 15.337 17.5 16C17.5 16.663 17.2366 17.2989 16.7678 17.7678C16.2989 18.2366 15.663 18.5 15 18.5H7.5Z",fill:"currentColor"})}));xj.displayName="BoldIcon";const Cj=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M15.4545 4.2983C15.6192 3.77115 15.3254 3.21028 14.7983 3.04554C14.2712 2.88081 13.7103 3.1746 13.5455 3.70175L8.54554 19.7017C8.38081 20.2289 8.6746 20.7898 9.20175 20.9545C9.72889 21.1192 10.2898 20.8254 10.4545 20.2983L15.4545 4.2983Z",fill:"currentColor"}),f.jsx("path",{d:"M6.70711 7.29289C7.09763 7.68342 7.09763 8.31658 6.70711 8.70711L3.41421 12L6.70711 15.2929C7.09763 15.6834 7.09763 16.3166 6.70711 16.7071C6.31658 17.0976 5.68342 17.0976 5.29289 16.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289Z",fill:"currentColor"}),f.jsx("path",{d:"M17.2929 7.29289C17.6834 6.90237 18.3166 6.90237 18.7071 7.29289L22.7071 11.2929C23.0976 11.6834 23.0976 12.3166 22.7071 12.7071L18.7071 16.7071C18.3166 17.0976 17.6834 17.0976 17.2929 16.7071C16.9024 16.3166 16.9024 15.6834 17.2929 15.2929L20.5858 12L17.2929 8.70711C16.9024 8.31658 16.9024 7.68342 17.2929 7.29289Z",fill:"currentColor"})]}));Cj.displayName="Code2Icon";const Dj=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M15.0222 3H19C19.5523 3 20 3.44772 20 4C20 4.55228 19.5523 5 19 5H15.693L10.443 19H14C14.5523 19 15 19.4477 15 20C15 20.5523 14.5523 21 14 21H9.02418C9.00802 21.0004 8.99181 21.0004 8.97557 21H5C4.44772 21 4 20.5523 4 20C4 19.4477 4.44772 19 5 19H8.30704L13.557 5H10C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3H14.9782C14.9928 2.99968 15.00
29275 2.99967 15.0222 3Z",fill:"currentColor"})}));Dj.displayName="ItalicIcon";const Fj=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M9.00039 3H16.0001C16.5524 3 17.0001 3.44772 17.0001 4C17.0001 4.55229 16.5524 5 16.0001 5H9.00011C8.68006 4.99983 8.36412 5.07648 8.07983 5.22349C7.79555 5.37051 7.55069 5.5836 7.36585 5.84487C7.181 6.10614 7.06155 6.40796 7.01754 6.72497C6.97352 7.04198 7.00623 7.36492 7.11292 7.66667C7.29701 8.18737 7.02414 8.75872 6.50344 8.94281C5.98274 9.1269 5.4114 8.85403 5.2273 8.33333C5.01393 7.72984 4.94851 7.08396 5.03654 6.44994C5.12456 5.81592 5.36346 5.21229 5.73316 4.68974C6.10285 4.1672 6.59256 3.74101 7.16113 3.44698C7.72955 3.15303 8.36047 2.99975 9.00039 3Z",fill:"currentColor"}),f.jsx("path",{d:"M18 13H20C20.5523 13 21 12.5523 21 12C21 11.4477 20.5523 11 20 11H4C3.44772 11 3 11.4477 3 12C3 12.5523 3.44772 13 4 13H14C14.7956 13 15.5587 13.3161 16.1213 13.8787C16.6839 14.4413 17 15.2044 17 16C17 16.7956 16.6839 17.5587 16.1213 18.1213C15.5587 18.6839 14.7956 19 14 19H6C5.44772 19 5 19.4477 5 20C5 20.5523 5.44772 21 6 21H14C15.3261 21 16.5979 20.4732 17.5355 19.5355C18.4732 18.5979 19 17.3261 19 16C19 14.9119 18.6453 13.8604 18 13Z",fill:"currentColor"})]}));Fj.displayName="StrikeIcon";const Ej=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4079 14.3995C18.0284 14.0487 18.7506 13.9217 19.4536 14.0397C20.1566 14.1578 20.7977 14.5138 21.2696 15.0481L21.2779 15.0574L21.2778 15.0575C21.7439 15.5988 22 16.2903 22 17C22 18.0823 21.3962 18.8401 20.7744 19.3404C20.194 19.8073 19.4858 20.141 18.9828 20.378C18.9638 20.387 18.9451 20.3958 18.9266 20.4045C18.4473 20.6306 18.2804 20.7817 18.1922 20.918C18.1773 20.9412 18.1619 20.9681 18.1467 21H21C21.5523 21 22 21.4477 22 22C22 22.5523 21.5523 23 21 23H17C16.4477 23 16 22.5523 16 22C16 21.1708 16.1176 20.4431 16.5128 19.832C16.9096 19.2184 17.4928 18.8695 18.0734 18.5956C18.6279 18.334 19.138 18.0901 19.5207 17.7821C19.8838 17.49 20 17.2477 20 17C20 16.7718 19.9176 16.5452 19.7663 16.3672C19.5983 16.1792 19.3712 16.0539 19.1224 16.0121C18.8722 15.9701 18.6152 16.015 18.3942 16.1394C18.1794 16.2628 18.0205 16.4549 17.9422 16.675C17.7572 17.1954 17.1854 17.4673 16.665 17.2822C16.1446 17.0972 15.8728 16.5254 16.0578 16.005C16.2993 15.3259 16.7797 14.7584 17.4039 14.4018L17.4079 14.3995L17.4079 14.3995Z",fill:"currentColor"})]}));Ej.displayName="SubscriptIcon";const Ij=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7071 7.29289C13.0976 7.68342 13.0976 8.31658 12.7071 8.70711L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12.7071 15.2929C13.0976 15.6834 13.0976 16.3166 12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.405 1.40657C18.0246 1.05456 18.7463 0.92634 19.4492 1.04344C20.1521 1.16054 20.7933 1.51583 21.2652 2.0497L21.2697 2.05469L21.2696 2.05471C21.7431 2.5975 22 3.28922 22 4.00203C22 5.08579 21.3952 5.84326 20.7727 6.34289C20.1966 6.80531 19.4941 7.13675 18.9941 7.37261C18.9714 7.38332 18.9491 7.39383 18.9273 7.40415C18.4487 7.63034 18.2814 7.78152 18.1927 7.91844C18.1778 7.94155 18.1625 7.96834 18.1473 8.00003H21C21.5523 8.00003 22 8.44774 22 9.00003C22 9.55231 21.5523 10 21 10H17C16.4477 10 16 9.55231 16 9.00003C16 8.17007 16.1183 7.44255 16.5138 6.83161C16.9107 6.21854 17.4934 5.86971 18.0728 5.59591C18.6281 5.33347 19.1376 5.09075 19.5208 4.78316C19.8838 4.49179 20 4.25026 20 4.00203C20 3.77192 19.9178 3.54865 19.7646 3.37182C19.5968 3.18324 19.3696 3.05774 19.1205 3.01625C18.8705 2.97459 18.6137 3.02017 18.3933 3.14533C18.1762 3.26898 18.0191 3.45826 17.9406 3.67557C17.7531 4.19504 17.18 4.46414 16.6605 4.27662C16.141 4.0891 15.8719 3.51596 16.0594 2.99649C16.303 2.3219 16.7817 1.76125 17.4045 1.40689L17.405 1.40657Z",fill:"currentColor"})]}));Ij.displayName="SuperscriptIcon";const Sj=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"
292currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4V10C5 11.8565 5.7375 13.637 7.05025 14.9497C8.36301 16.2625 10.1435 17 12 17C13.8565 17 15.637 16.2625 16.9497 14.9497C18.2625 13.637 19 11.8565 19 10V4C19 3.44772 18.5523 3 18 3C17.4477 3 17 3.44772 17 4V10C17 11.3261 16.4732 12.5979 15.5355 13.5355C14.5979 14.4732 13.3261 15 12 15C10.6739 15 9.40215 14.4732 8.46447 13.5355C7.52678 12.5979 7 11.3261 7 10V4ZM4 19C3.44772 19 3 19.4477 3 20C3 20.5523 3.44772 21 4 21H20C20.5523 21 21 20.5523 21 20C21 19.4477 20.5523 19 20 19H4Z",fill:"currentColor"})}));Sj.displayName="UnderlineIcon";const eN={bold:xj,italic:Dj,underline:Sj,strike:Fj,code:Cj,superscript:Ij,subscript:Ej},Aj={bold:"mod+b",italic:"mod+i",underline:"mod+u",strike:"mod+shift+s",code:"mod+e",superscript:"mod+.",subscript:"mod+,"};function sh(t,e){return!t||!t.isEditable||!jo(e,t)||jn(t,["image"])?!1:t.can().toggleMark(e)}function tN(t,e){return!t||!t.isEditable?!1:t.isActive(e)}function nN(t,e){return!t||!t.isEditable||!sh(t,e)?!1:t.chain().focus().toggleMark(e).run()}function oN(t){const{editor:e,type:n,hideWhenUnavailable:o}=t;return!e||!e.isEditable||!jo(n,e)?!1:o&&!e.isActive("code")?sh(e,n):!0}function sN(t){return t.charAt(0).toUpperCase()+t.slice(1)}function rN(t){const{editor:e,type:n,hideWhenUnavailable:o=!1,onToggled:s}=t,{editor:r}=oe(e),[a,i]=b.useState(!0),l=sh(r,n),c=tN(r,n);b.useEffect(()=>{if(!r)return;const d=()=>{i(oN({editor:r,type:n,hideWhenUnavailable:o}))};return d(),r.on("selectionUpdate",d),()=>{r.off("selectionUpdate",d)}},[r,n,o]);const u=b.useCallback(()=>{if(!r)return!1;const d=nN(r,n);return d&&s?.(),d},[r,n,s]);return{isVisible:a,isActive:c,handleMark:u,canToggle:l,label:sN(n),shortcutKeys:Aj[n],Icon:eN[n]}}function aN({level:t,shortcutKeys:e=Rj[t]}){return f.jsx(ut,{children:ct({shortcutKeys:e})})}const Yo=b.forwardRef(({editor:t,level:e,text:n,hideWhenUnavailable:o=!1,onToggled:s,showShortcut:r=!1,onClick:a,children:i,...l},c)=>{const{editor:u}=oe(t),{isVisible:d,canToggle:p,isActive:m,handleToggle:h,label:g,Icon:v,shortcutKeys:j}=fl({editor:u,level:e,hideWhenUnavailable:o,onToggled:s}),k=b.useCallback(y=>{a?.(y),!y.defaultPrevented&&h()},[h,a]);return d?f.jsx(je,{type:"button","data-style":"ghost","data-active-state":m?"on":"off",role:"button",tabIndex:-1,disabled:!p,"data-disabled":!p,"aria-label":g,"aria-pressed":m,tooltip:g,onClick:k,...l,ref:c,children:i??f.jsxs(f.Fragment,{children:[f.jsx(v,{className:"tiptap-button-icon"}),n&&f.jsx("span",{className:"tiptap-button-text",children:n}),r&&f.jsx(aN,{level:e,shortcutKeys:j})]})}):null});Yo.displayName="HeadingButton";const mi=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),f.jsx("path",{d:"M21.0001 10C21.0001 9.63121 20.7971 9.29235 20.472 9.11833C20.1468 8.94431 19.7523 8.96338 19.4454 9.16795L16.4454 11.168C15.9859 11.4743 15.8617 12.0952 16.1681 12.5547C16.4744 13.0142 17.0953 13.1384 17.5548 12.8321L19.0001 11.8685V18C19.0001 18.5523 19.4478 19 20.0001 19C20.5524 19 21.0001 18.5523 21.0001 18V10Z",fill:"currentColor"})]}));mi.displayName="HeadingOneIcon";const rh=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),f.jsx("path",{d:"M22.0001 12C22.0001 10.7611 21.1663 9.79297 20.0663 9.42632C18.9547 9.05578 17.6171 9.28724 16.4001 10.2C15.9582 10.5314 15.8687 11.1582 16.2001 11.6C16.5314 12.0418 17.1582 12.1314 17.6001 11.8C18.383 11.2128 19.0455 11.1942 19.4338 11.3237C19.8339 11.457 20.0001 11.7389 20.0001 12C20.0001 12.4839 19.8554 12.7379 19.6537 12.9481C19.4275 13.1837 19.1378 13.363 18.7055 13.6307C18.6313 13.6767 18.553 13.7252 18.4701 13.777C17.9572 14.0975 17.3128 14.5261 16.8163 15.2087C16.3007 15.9177 16.0001 16.8183 16.0001 18C16.0001 18.5523 16.4478 19 17.0001 19H21.0001C21.5523 19 22.0001 18.5523 22.0001 18C22.0001 17.4477 21.5523 17 21.0001 17H18.131C18.21 16.742 18.3176 16.5448 18.4338 16.385C18.6873 16.0364 19.0429 15.7775 19.5301 15.473C19.5898 15.4357 19.6536 15.3966 19.7205 15.3556C20.139 15.0992 20.6783 14.7687 21.0964 14.3332C21.6447 13.7621 22.0001 13.0161 22.0001 12Z",fill:"currentColor"})]}));rh.displayName="HeadingTwoIcon";const ah=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"
292currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4608 11.2169C19.1135 11.0531 18.5876 11.0204 18.0069 11.3619C17.5309 11.642 16.918 11.4831 16.638 11.007C16.358 10.531 16.5169 9.91809 16.9929 9.63807C18.1123 8.97962 19.3364 8.94691 20.314 9.40808C21.2839 9.86558 21.9999 10.818 21.9999 12C21.9999 12.7957 21.6838 13.5587 21.1212 14.1213C20.5586 14.6839 19.7956 15 18.9999 15C18.4476 15 17.9999 14.5523 17.9999 14C17.9999 13.4477 18.4476 13 18.9999 13C19.2651 13 19.5195 12.8947 19.707 12.7071C19.8946 12.5196 19.9999 12.2652 19.9999 12C19.9999 11.6821 19.8159 11.3844 19.4608 11.2169Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.0001 14C18.0001 13.4477 18.4478 13 19.0001 13C19.7957 13 20.5588 13.3161 21.1214 13.8787C21.684 14.4413 22.0001 15.2043 22.0001 16C22.0001 17.2853 21.2767 18.3971 20.1604 18.8994C19.0257 19.41 17.642 19.2315 16.4001 18.3C15.9582 17.9686 15.8687 17.3418 16.2001 16.9C16.5314 16.4582 17.1582 16.3686 17.6001 16.7C18.3581 17.2685 18.9744 17.24 19.3397 17.0756C19.7234 16.9029 20.0001 16.5147 20.0001 16C20.0001 15.7348 19.8947 15.4804 19.7072 15.2929C19.5196 15.1054 19.2653 15 19.0001 15C18.4478 15 18.0001 14.5523 18.0001 14Z",fill:"currentColor"})]}));ah.displayName="HeadingThreeIcon";const Mj=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M4 5C4.55228 5 5 5.44772 5 6V11H11V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18V13H5V18C5 18.5523 4.55228 19 4 19C3.44772 19 3 18.5523 3 18V6C3 5.44772 3.44772 5 4 5Z",fill:"currentColor"}),f.jsx("path",{d:"M17 9C17.5523 9 18 9.44772 18 10V13H20V10C20 9.44772 20.4477 9 21 9C21.5523 9 22 9.44772 22 10V18C22 18.5523 21.5523 19 21 19C20.4477 19 20 18.5523 20 18V15H17C16.4477 15 16 14.5523 16 14V10C16 9.44772 16.4477 9 17 9Z",fill:"currentColor"})]}));Mj.displayName="HeadingFourIcon";const Tj=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),f.jsx("path",{d:"M16 10C16 9.44772 16.4477 9 17 9H21C21.5523 9 22 9.44772 22 10C22 10.5523 21.5523 11 21 11H18V12H18.3C20.2754 12 22 13.4739 22 15.5C22 17.5261 20.2754 19 18.3 19C17.6457 19 17.0925 18.8643 16.5528 18.5944C16.0588 18.3474 15.8586 17.7468 16.1055 17.2528C16.3525 16.7588 16.9532 16.5586 17.4472 16.8056C17.7074 16.9357 17.9542 17 18.3 17C19.3246 17 20 16.2739 20 15.5C20 14.7261 19.3246 14 18.3 14H17C16.4477 14 16 13.5523 16 13L16 12.9928V10Z",fill:"currentColor"})]}));Tj.displayName="HeadingFiveIcon";const Nj=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M5 6C5 5.44772 4.55228 5 4 5C3.44772 5 3 5.44772 3 6V18C3 18.5523 3.44772 19 4 19C4.55228 19 5 18.5523 5 18V13H11V18C11 18.5523 11.4477 19 12 19C12.5523 19 13 18.5523 13 18V6C13 5.44772 12.5523 5 12 5C11.4477 5 11 5.44772 11 6V11H5V6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 9.29289C21.0976 9.68342 21.0976 10.3166 20.7071 10.7071C19.8392 11.575 19.2179 12.2949 18.7889 13.0073C18.8587 13.0025 18.929 13 19 13C20.6569 13 22 14.3431 22 16C22 17.6569 20.6569 19 19 19C17.3431 19 16 17.6569 16 16C16 14.6007 16.2837 13.4368 16.8676 12.3419C17.4384 11.2717 18.2728 10.3129 19.2929 9.29289C19.6834 8.90237 20.3166 8.90237 20.7071 9.29289ZM19 
29217C18.4477 17 18 16.5523 18 16C18 15.4477 18.4477 15 19 15C19.5523 15 20 15.4477 20 16C20 16.5523 19.5523 17 19 17Z",fill:"currentColor"})]}));Nj.displayName="HeadingSixIcon";const iN={1:mi,2:rh,3:ah,4:Mj,5:Tj,6:Nj},Rj={1:"ctrl+alt+1",2:"ctrl+alt+2",3:"ctrl+alt+3",4:"ctrl+alt+4",5:"ctrl+alt+5",6:"ctrl+alt+6"};function vc(t,e,n=!0){if(!t||!t.isEditable||!Qe("heading",t)||jn(t,["image"]))return!1;if(!n)return e?t.can().setNode("heading",{level:e}):t.can().setNode("heading");try{const s=t.view.state,r=s.selection;if(r.empty||r instanceof Y){const a=vn({editor:t,node:s.selection.$anchor.node(1)})?.pos;if(!Pt(a))return!1}return!0}catch{return!1}}function lN(t,e){return!t||!t.isEditable?!1:Array.isArray(e)?e.some(n=>t.isActive("heading",{level:n})):e?t.isActive("heading",{level:e}):t.isActive("heading")}function cN(t,e){if(!t||!t.isEditable)return!1;const n=Array.isArray(e)?e:[e],o=n.find(s=>vc(t,s));if(!o)return!1;try{const s=t.view;let r=s.state,a=r.tr;if(r.selection.empty||r.selection instanceof Y){const d=vn({editor:t,node:r.selection.$anchor.node(1)})?.pos;if(!Pt(d))return!1;a=a.setSelection(U.create(r.doc,d)),s.dispatch(a),r=s.state}const i=r.selection;let l=t.chain().focus();if(i instanceof U){const d=i.node.firstChild?.firstChild,p=i.node.lastChild?.lastChild,m=d?i.from+d.nodeSize:i.from+1,h=p?i.to-p.nodeSize:i.to-1;l=l.setTextSelection({from:m,to:h}).clearNodes()}return(n.some(d=>t.isActive("heading",{level:d}))?l.setNode("paragraph"):l.setNode("heading",{level:o})).run(),t.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}function uN(t){const{editor:e,level:n,hideWhenUnavailable:o}=t;return!e||!e.isEditable||!Qe("heading",e)?!1:o&&!e.isActive("code")?Array.isArray(n)?n.some(s=>vc(e,s)):vc(e,n):!0}function fl(t){const{editor:e,level:n,hideWhenUnavailable:o=!1,onToggled:s}=t,{editor:r}=oe(e),[a,i]=b.useState(!0),l=vc(r,n),c=lN(r,n);b.useEffect(()=>{if(!r)return;const d=()=>{i(uN({editor:r,level:n,hideWhenUnavailable:o}))};return d(),r.on("selectionUpdate",d),()=>{r.off("selectionUpdate",d)}},[r,n,o]);const u=b.useCallback(()=>{if(!r)return!1;const d=cN(r,n);return d&&s?.(),d},[r,n,s]);return{isVisible:a,isActive:c,handleToggle:u,canToggle:l,label:`Heading ${n}`,shortcutKeys:Rj[n],Icon:iN[n]}}function dN({type:t,shortcutKeys:e=Oj[t]}){return f.jsx(ut,{children:ct({shortcutKeys:e})})}const qn=b.forwardRef(({editor:t,type:e,text:n,hideWhenUnavailable:o=!1,onToggled:s,showShortcut:r=!1,onClick:a,children:i,...l},c)=>{const{editor:u}=oe(t),{isVisible:d,canToggle:p,isActive:m,handleToggle:h,label:g,shortcutKeys:v,Icon:j}=ml({editor:u,type:e,hideWhenUnavailable:o,onToggled:s}),k=b.useCallback(y=>{a?.(y),!y.defaultPrevented&&h()},[h,a]);return d?f.jsx(je,{type:"button","data-style":"ghost","data-active-state":m?"on":"off",role:"button",tabIndex:-1,disabled:!p,"data-disabled":!p,"aria-label":g,"aria-pressed":m,tooltip:g,onClick:k,...l,ref:c,children:i??f.jsxs(f.Fragment,{children:[f.jsx(j,{className:"tiptap-button-icon"}),n&&f.jsx("span",{className:"tiptap-button-text",children:n}),r&&f.jsx(dN,{type:e,shortcutKeys:v})]})}):null});qn.displayName="ListButton";const hi=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 6C7 5.44772 7.44772 5 8 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H8C7.44772 7 7 6.55228 7 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 12C7 11.4477 7.44772 11 8 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H8C7.44772 13 7 12.5523 7 12Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 18C7 17.4477 7.44772 17 8 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H8C7.44772 19 7 18.5523 7 18Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H3.01C3.56228 5 4.01 5.44772 4.01 6C4.01 6.55228 3.56228 7 3.01 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H3.01C3.56228 11 4.01 11.4477 4.01 12C4.01 12.5523 3.56228 13 3.01 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H3.01C3.56228 17 4.01 17.4477 4.01 18C4.01 18.5523 3.56228 19 3.01 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"})]}));hi.displayName="ListIcon";const ih=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"
292currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 6C9 5.44772 9.44772 5 10 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H10C9.44772 7 9 6.55228 9 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 11.4477 9.44772 11 10 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H10C9.44772 13 9 12.5523 9 12Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18C9 17.4477 9.44772 17 10 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H10C9.44772 19 9 18.5523 9 18Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C3 5.44772 3.44772 5 4 5H5C5.55228 5 6 5.44772 6 6V10C6 10.5523 5.55228 11 5 11C4.44772 11 4 10.5523 4 10V7C3.44772 7 3 6.55228 3 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 10C3 9.44772 3.44772 9 4 9H6C6.55228 9 7 9.44772 7 10C7 10.5523 6.55228 11 6 11H4C3.44772 11 3 10.5523 3 10Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.82219 13.0431C6.54543 13.4047 6.99997 14.1319 6.99997 15C6.99997 15.5763 6.71806 16.0426 6.48747 16.35C6.31395 16.5814 6.1052 16.8044 5.91309 17H5.99997C6.55226 17 6.99997 17.4477 6.99997 18C6.99997 18.5523 6.55226 19 5.99997 19H3.99997C3.44769 19 2.99997 18.5523 2.99997 18C2.99997 17.4237 3.28189 16.9575 3.51247 16.65C3.74323 16.3424 4.03626 16.0494 4.26965 15.8161C4.27745 15.8083 4.2852 15.8006 4.29287 15.7929C4.55594 15.5298 4.75095 15.3321 4.88748 15.15C4.96287 15.0495 4.99021 14.9922 4.99911 14.9714C4.99535 14.9112 4.9803 14.882 4.9739 14.8715C4.96613 14.8588 4.95382 14.845 4.92776 14.8319C4.87723 14.8067 4.71156 14.7623 4.44719 14.8944C3.95321 15.1414 3.35254 14.9412 3.10555 14.4472C2.85856 13.9533 3.05878 13.3526 3.55276 13.1056C4.28839 12.7378 5.12272 12.6934 5.82219 13.0431Z",fill:"currentColor"})]}));ih.displayName="ListOrderedIcon";const lh=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 4.89543 2.89543 4 4 4H8C9.10457 4 10 4.89543 10 6V10C10 11.1046 9.10457 12 8 12H4C2.89543 12 2 11.1046 2 10V6ZM8 6H4V10H8V6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70711 14.2929C10.0976 14.6834 10.0976 15.3166 9.70711 15.7071L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071L2.29289 17.7071C1.90237 17.3166 1.90237 16.6834 2.29289 16.2929C2.68342 15.9024 3.31658 15.9024 3.70711 16.2929L5 17.5858L8.29289 14.2929C8.68342 13.9024 9.31658 13.9024 9.70711 14.2929Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6C12 5.44772 12.4477 5 13 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H13C12.4477 7 12 6.55228 12 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 12C12 11.4477 12.4477 11 13 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H13C12.4477 13 12 12.5523 12 12Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18C12 17.4477 12.4477 17 13 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H13C12.4477 19 12 18.5523 12 18Z",fill:"currentColor"})]}));lh.displayName="ListTodoIcon";const pN={bulletList:hi,orderedList:ih,taskList:lh},fN={bulletList:"Bullet List",orderedList:"Ordered List",taskList:"Task List"},Oj={bulletList:"mod+shift+8",orderedList:"mod+shift+7",taskList:"mod+shift+9"};function ch(t,e,n=!0){if(!t||!t.isEditable||!Qe(e,t)||jn(t,["image"]))return!1;if(!n)switch(e){case"bulletList":return t.can().toggleBulletList();case"orderedList":return t.can().toggleOrderedList();case"taskList":return t.can().toggleList("taskList","taskItem");default:return!1}try{const s=t.view.state,r=s.selection;if(r.empty||r instanceof Y){const a=vn({editor:t,node:s.selection.$anchor.node(1)})?.pos;if(!Pt(a))return!1}return!0}catch{return!1}}function mN(t,e){if(!t||!t.isEditable)return!1;switch(e){case"bulletList":return t.isActive("bulletList");case"orderedList":return t.isActive("orderedList");case"taskList":return t.isActive("taskList");default:return!1}}function hN(t,e){if(!t||!t.isEditable||!ch(t,e))return!1;try{const n=t.view;let o=n.state,s=o.tr;if(o.selection.empty||o.selection instanceof Y){const i=vn({editor:t,node:o.selection.$anchor.node(1)})?.pos;if(!Pt(i))return!1;s=s.setSelection(U.create(o.doc,i)),n.dispatch(s),o=n.state}const r=o.selection;let a=t.chain().focus();if(r instanceof U){const i=r.node.firstChild?.firstChild,l=r.node.lastChild?.last
292Child,c=i?r.from+i.nodeSize:r.from+1,u=l?r.to-l.nodeSize:r.to-1;a=a.setTextSelection({from:c,to:u}).clearNodes()}if(t.isActive(e))a.liftListItem("listItem").lift("bulletList").lift("orderedList").lift("taskList").run();else{const l={bulletList:()=>a.toggleBulletList(),orderedList:()=>a.toggleOrderedList(),taskList:()=>a.toggleList("taskList","taskItem")}[e];if(!l)return!1;l().run()}return t.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}function gN(t){const{editor:e,type:n,hideWhenUnavailable:o}=t;return!e||!e.isEditable||!Qe(n,e)?!1:o&&!e.isActive("code")?ch(e,n):!0}function ml(t){const{editor:e,type:n,hideWhenUnavailable:o=!1,onToggled:s}=t,{editor:r}=oe(e),[a,i]=b.useState(!0),l=ch(r,n),c=mN(r,n);b.useEffect(()=>{if(!r)return;const d=()=>{i(gN({editor:r,type:n,hideWhenUnavailable:o}))};return d(),r.on("selectionUpdate",d),()=>{r.off("selectionUpdate",d)}},[r,n,o]);const u=b.useCallback(()=>{if(!r)return!1;const d=hN(r,n);return d&&s?.(),d},[r,n,s]);return{isVisible:a,isActive:c,handleToggle:u,canToggle:l,label:fN[n],shortcutKeys:Oj[n],Icon:pN[n]}}function bN({shortcutKeys:t=Bj}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const uh=b.forwardRef(({editor:t,text:e,hideWhenUnavailable:n=!1,onToggled:o,showShortcut:s=!1,onClick:r,children:a,...i},l)=>{const{editor:c}=oe(t),{isVisible:u,canToggle:d,isActive:p,handleToggle:m,label:h,shortcutKeys:g,Icon:v}=Lj({editor:c,hideWhenUnavailable:n,onToggled:o}),j=b.useCallback(k=>{r?.(k),!k.defaultPrevented&&m()},[m,r]);return u?f.jsx(je,{type:"button","data-style":"ghost","data-active-state":p?"on":"off",role:"button",tabIndex:-1,disabled:!d,"data-disabled":!d,"aria-label":h,"aria-pressed":p,tooltip:"Blockquote",onClick:j,...i,ref:l,children:a??f.jsxs(f.Fragment,{children:[f.jsx(v,{className:"tiptap-button-icon"}),e&&f.jsx("span",{className:"tiptap-button-text",children:e}),s&&f.jsx(bN,{shortcutKeys:g})]})}):null});uh.displayName="BlockquoteButton";const dh=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 6C8 5.44772 8.44772 5 9 5H16C16.5523 5 17 5.44772 17 6C17 6.55228 16.5523 7 16 7H9C8.44772 7 8 6.55228 8 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C4.55228 3 5 3.44772 5 4L5 20C5 20.5523 4.55229 21 4 21C3.44772 21 3 20.5523 3 20L3 4C3 3.44772 3.44772 3 4 3Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 18C8 17.4477 8.44772 17 9 17H16C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19H9C8.44772 19 8 18.5523 8 18Z",fill:"currentColor"})]}));dh.displayName="BlockquoteIcon";const Bj="mod+shift+b";function ph(t,e=!0){if(!t||!t.isEditable||!Qe("blockquote",t)||jn(t,["image"]))return!1;if(!e)return t.can().toggleWrap("blockquote");try{const o=t.view.state,s=o.selection;if(s.empty||s instanceof Y){const r=vn({editor:t,node:o.selection.$anchor.node(1)})?.pos;if(!Pt(r))return!1}return!0}catch{return!1}}function vN(t){if(!t||!t.isEditable||!ph(t))return!1;try{const e=t.view;let n=e.state,o=n.tr;if(n.selection.empty||n.selection instanceof Y){const i=vn({editor:t,node:n.selection.$anchor.node(1)})?.pos;if(!Pt(i))return!1;o=o.setSelection(U.create(n.doc,i)),e.dispatch(o),n=e.state}const s=n.selection;let r=t.chain().focus();if(s instanceof U){const i=s.node.firstChild?.firstChild,l=s.node.lastChild?.lastChild,c=i?s.from+i.nodeSize:s.from+1,u=l?s.to-l.nodeSize:s.to-1;r=r.setTextSelection({from:c,to:u}).clearNodes()}return(t.isActive("blockquote")?r.lift("blockquote"):r.wrapIn("blockquote")).run(),t.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}function jN(t){const{editor:e,hideWhenUnavailable:n}=t;return!e||!e.isEditable||!Qe("blockquote",e)?!1:n&&!e.isActive("code")?ph(e):!0}function Lj(t){const{editor:e,hideWhenUnavailable:n=!1,onToggled:o}=t||{},{editor:s}=oe(e),[r,a]=b.useState(!0),i=ph(s),l=s?.isActive("blockquote")||!1;b.useEffect(()=>{if(!s)return;const u=()=>{a(jN({editor:s,hideWhenUnavailable:n}))};return u(),s.on("selectionUpdate",u),()=>{s.off("selectionUpdate",u)}},[s,n]);const c=b.useCallback(()=>
292{if(!s)return!1;const u=vN(s);return u&&o?.(),u},[s,o]);return{isVisible:r,isActive:l,handleToggle:c,canToggle:i,label:"Blockquote",shortcutKeys:Bj,Icon:dh}}function kN({shortcutKeys:t=Pj}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const fh=b.forwardRef(({editor:t,text:e,hideWhenUnavailable:n=!1,onToggled:o,showShortcut:s=!1,onClick:r,children:a,...i},l)=>{const{editor:c}=oe(t),{isVisible:u,canToggle:d,isActive:p,handleToggle:m,label:h,shortcutKeys:g,Icon:v}=zj({editor:c,hideWhenUnavailable:n,onToggled:o}),j=b.useCallback(k=>{r?.(k),!k.defaultPrevented&&m()},[m,r]);return u?f.jsx(je,{type:"button","data-style":"ghost","data-active-state":p?"on":"off",role:"button",disabled:!d,"data-disabled":!d,tabIndex:-1,"aria-label":h,"aria-pressed":p,tooltip:"Code Block",onClick:j,...i,ref:l,children:a??f.jsxs(f.Fragment,{children:[f.jsx(v,{className:"tiptap-button-icon"}),e&&f.jsx("span",{className:"tiptap-button-text",children:e}),s&&f.jsx(kN,{shortcutKeys:g})]})}):null});fh.displayName="CodeBlockButton";const mh=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.70711 2.29289C7.09763 2.68342 7.09763 3.31658 6.70711 3.70711L4.41421 6L6.70711 8.29289C7.09763 8.68342 7.09763 9.31658 6.70711 9.70711C6.31658 10.0976 5.68342 10.0976 5.29289 9.70711L2.29289 6.70711C1.90237 6.31658 1.90237 5.68342 2.29289 5.29289L5.29289 2.29289C5.68342 1.90237 6.31658 1.90237 6.70711 2.29289Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2929 2.29289C10.6834 1.90237 11.3166 1.90237 11.7071 2.29289L14.7071 5.29289C15.0976 5.68342 15.0976 6.31658 14.7071 6.70711L11.7071 9.70711C11.3166 10.0976 10.6834 10.0976 10.2929 9.70711C9.90237 9.31658 9.90237 8.68342 10.2929 8.29289L12.5858 6L10.2929 3.70711C9.90237 3.31658 9.90237 2.68342 10.2929 2.29289Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 4C17 3.44772 17.4477 3 18 3H19C20.6569 3 22 4.34315 22 6V18C22 19.6569 20.6569 21 19 21H5C3.34315 21 2 19.6569 2 18V12C2 11.4477 2.44772 11 3 11C3.55228 11 4 11.4477 4 12V18C4 18.5523 4.44772 19 5 19H19C19.5523 19 20 18.5523 20 18V6C20 5.44772 19.5523 5 19 5H18C17.4477 5 17 4.55228 17 4Z",fill:"currentColor"})]}));mh.displayName="CodeBlockIcon";const Pj="mod+alt+c";function hh(t,e=!0){if(!t||!t.isEditable||!Qe("codeBlock",t)||jn(t,["image"]))return!1;if(!e)return t.can().toggleNode("codeBlock","paragraph");try{const o=t.view.state,s=o.selection;if(s.empty||s instanceof Y){const r=vn({editor:t,node:o.selection.$anchor.node(1)})?.pos;if(!Pt(r))return!1}return!0}catch{return!1}}function yN(t){if(!t||!t.isEditable||!hh(t))return!1;try{const e=t.view;let n=e.state,o=n.tr;if(n.selection.empty||n.selection instanceof Y){const i=vn({editor:t,node:n.selection.$anchor.node(1)})?.pos;if(!Pt(i))return!1;o=o.setSelection(U.create(n.doc,i)),e.dispatch(o),n=e.state}const s=n.selection;let r=t.chain().focus();if(s instanceof U){const i=s.node.firstChild?.firstChild,l=s.node.lastChild?.lastChild,c=i?s.from+i.nodeSize:s.from+1,u=l?s.to-l.nodeSize:s.to-1;r=r.setTextSelection({from:c,to:u}).clearNodes()}return(t.isActive("codeBlock")?r.setNode("paragraph"):r.toggleNode("codeBlock","paragraph")).run(),t.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}function wN(t){const{editor:e,hideWhenUnavailable:n}=t;return!e||!e.isEditable||!Qe("codeBlock",e)?!1:n&&!e.isActive("code")?hh(e):!0}function zj(t){const{editor:e,hideWhenUnavailable:n=!1,onToggled:o}=t||{},{editor:s}=oe(e),[r,a]=b.useState(!0),i=hh(s),l=s?.isActive("codeBlock")||!1;b.useEffect(()=>{if(!s)return;const u=()=>{a(wN({editor:s,hideWhenUnavailable:n}))};return u(),s.on("selectionUpdate",u),()=>{s.off("selectionUpdate",u)}},[s,n]);const c=b.useCallback(()=>{if(!s)return!1;const u=yN(s);return u&&o?.(),u},[s,o]);return{isVisible:r,isActive:l,handleToggle:c,canToggle:i,label:"Code Block",shortcutKeys:Pj,Icon:mh}}function _N({align:t,shortcutKeys:e=qj[t]}){return f.jsx(ut,{children:ct({shortcutKeys:e})})}const hl=b.forwardRef(({editor:t,align:e,text:n,hideWhenUnavailable:o=!1,onAligned:s,showShortcut:r=!1,onClick:a,icon:i,children:l,...c},u)=>{const{editor:d}=oe(t),{isVisible:p,handleTextAlign:m,label:h,canAlign:g,isActive:v,Icon:j,shortcutKeys:k}=SN({editor:d,align:e,hideWhenUnavailable:o,onAligned:s}),y=b.useCallback(C=>{a?.(C),!C.defaultPrevented&&m()},[m,a]);if(!p)return null;const w=i??j;return f.jsx(je,{type:"button",disabled:!g,"data-style":"ghost","data-active-state":v?"on":"off","data-disabled":!g,role:"button",tabIndex:-1,"aria-label":h,"aria-pressed":v,tooltip:h,onClick:y,...c,ref:u,children:l??f.jsxs(f.Fragment,{children:[f.jsx(w,{className:"tiptap-button-icon"}),n&&f.jsx("span",{className:"tiptap-button-text",children:n}),r&&f.jsx(_N,{align:e,shortcutKeys:k})]})})});hl.displayName="TextAlignButton";const $j=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"
292currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 11.4477 6.44772 11 7 11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H7C6.44772 13 6 12.5523 6 12Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 18C4 17.4477 4.44772 17 5 17H19C19.5523 17 20 17.4477 20 18C20 18.5523 19.5523 19 19 19H5C4.44772 19 4 18.5523 4 18Z",fill:"currentColor"})]}));$j.displayName="AlignCenterIcon";const Hj=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"})]}));Hj.displayName="AlignJustifyIcon";const Vj=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 11.4477 2.44772 11 3 11H15C15.5523 11 16 11.4477 16 12C16 12.5523 15.5523 13 15 13H3C2.44772 13 2 12.5523 2 12Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 18C2 17.4477 2.44772 17 3 17H17C17.5523 17 18 17.4477 18 18C18 18.5523 17.5523 19 17 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"})]}));Vj.displayName="AlignLeftIcon";const Uj=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 12C8 11.4477 8.44772 11 9 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H9C8.44772 13 8 12.5523 8 12Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 18C6 17.4477 6.44772 17 7 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H7C6.44772 19 6 18.5523 6 18Z",fill:"currentColor"})]}));Uj.displayName="AlignRightIcon";const qj={left:"mod+shift+l",center:"mod+shift+e",right:"mod+shift+r",justify:"mod+shift+j"},xN={left:Vj,center:$j,right:Uj,justify:Hj},CN={left:"Align left",center:"Align center",right:"Align right",justify:"Align justify"};function gh(t,e){return!t||!t.isEditable||!Ir(t,"textAlign")||jn(t,["image","horizontalRule"])?!1:t.can().setTextAlign(e)}function DN(t){return"setTextAlign"in t}function FN(t,e){return!t||!t.isEditable?!1:t.isActive({textAlign:e})}function EN(t,e){if(!t||!t.isEditable||!gh(t,e))return!1;const n=t.chain().focus();return DN(n)?n.setTextAlign(e).run():!1}function IN(t){const{editor:e,hideWhenUnavailable:n,align:o}=t;return!e||!e.isEditable||!Ir(e,"textAlign")?!1:n&&!e.isActive("code")?gh(e,o):!0}function SN(t){const{editor:e,align:n,hideWhenUnavailable:o=!1,onAligned:s}=t,{editor:r}=oe(e),[a,i]=b.useState(!0),l=gh(r,n),c=FN(r,n);b.useEffect(()=>{if(!r)return;const d=()=>{i(IN({editor:r,align:n,hideWhenUnavailable:o}))};return d(),r.on("selectionUpdate",d),()=>{r.off("selectionUpdate",d)}},[r,o,n]);const u=b.useCallback(()=>
292{if(!r)return!1;const d=EN(r,n);return d&&s?.(),d},[r,n,s]);return{isVisible:a,isActive:c,handleTextAlign:u,canAlign:l,label:CN[n],shortcutKeys:qj[n],Icon:xN[n]}}const Wj=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 4C21 3.44772 20.5523 3 20 3C19.4477 3 19 3.44772 19 4V11C19 11.7956 18.6839 12.5587 18.1213 13.1213C17.5587 13.6839 16.7956 14 16 14H6.41421L9.70711 10.7071C10.0976 10.3166 10.0976 9.68342 9.70711 9.29289C9.31658 8.90237 8.68342 8.90237 8.29289 9.29289L3.29289 14.2929C2.90237 14.6834 2.90237 15.3166 3.29289 15.7071L8.29289 20.7071C8.68342 21.0976 9.31658 21.0976 9.70711 20.7071C10.0976 20.3166 10.0976 19.6834 9.70711 19.2929L6.41421 16H16C17.3261 16 18.5979 15.4732 19.5355 14.5355C20.4732 13.5979 21 12.3261 21 11V4Z",fill:"currentColor"})}));Wj.displayName="CornerDownLeftIcon";const Kj=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M14 3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55228 21.5523 10 21 10C20.4477 10 20 9.55228 20 9V5.41421L10.7071 14.7071C10.3166 15.0976 9.68342 15.0976 9.29289 14.7071C8.90237 14.3166 8.90237 13.6834 9.29289 13.2929L18.5858 4H15C14.4477 4 14 3.55228 14 3Z",fill:"currentColor"}),f.jsx("path",{d:"M4.29289 7.29289C4.48043 7.10536 4.73478 7 5 7H11C11.5523 7 12 6.55228 12 6C12 5.44772 11.5523 5 11 5H5C4.20435 5 3.44129 5.31607 2.87868 5.87868C2.31607 6.44129 2 7.20435 2 8V19C2 19.7957 2.31607 20.5587 2.87868 21.1213C3.44129 21.6839 4.20435 22 5 22H16C16.7957 22 17.5587 21.6839 18.1213 21.1213C18.6839 20.5587 19 19.7957 19 19V13C19 12.4477 18.5523 12 18 12C17.4477 12 17 12.4477 17 13V19C17 19.2652 16.8946 19.5196 16.7071 19.7071C16.5196 19.8946 16.2652 20 16 20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V8C4 7.73478 4.10536 7.48043 4.29289 7.29289Z",fill:"currentColor"})]}));Kj.displayName="ExternalLinkIcon";const cu=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M16.9958 1.06669C15.4226 1.05302 13.907 1.65779 12.7753 2.75074L12.765 2.76086L11.045 4.47086C10.6534 4.86024 10.6515 5.49341 11.0409 5.88507C11.4303 6.27673 12.0634 6.27858 12.4551 5.88919L14.1697 4.18456C14.9236 3.45893 15.9319 3.05752 16.9784 3.06662C18.0272 3.07573 19.0304 3.49641 19.772 4.23804C20.5137 4.97967 20.9344 5.98292 20.9435 7.03171C20.9526 8.07776 20.5515 9.08563 19.8265 9.83941L16.833 12.8329C16.4274 13.2386 15.9393 13.5524 15.4019 13.7529C14.8645 13.9533 14.2903 14.0359 13.7181 13.9949C13.146 13.9539 12.5894 13.7904 12.0861 13.5154C11.5827 13.2404 11.1444 12.8604 10.8008 12.401C10.47 11.9588 9.84333 11.8685 9.40108 12.1993C8.95883 12.5301 8.86849 13.1568 9.1993 13.599C9.71464 14.288 10.3721 14.858 11.1272 15.2705C11.8822 15.683 12.7171 15.9283 13.5753 15.9898C14.4334 16.0513 15.2948 15.9274 16.1009 15.6267C16.907 15.326 17.639 14.8555 18.2473 14.247L21.2472 11.2471L21.2593 11.2347C22.3523 10.1031 22.9571 8.58751 22.9434 7.01433C22.9297 5.44115 22.2987 3.93628 21.1863 2.82383C20.0738 1.71138 18.5689 1.08036 16.9958 1.06669Z",fill:"currentColor"}),f.jsx("path",{d:"M10.4247 8.0102C9.56657 7.94874 8.70522 8.07256 7.89911 8.37326C7.09305 8.67395 6.36096 9.14458 5.75272 9.753L2.75285 12.7529L2.74067 12.7653C1.64772 13.8969 1.04295 15.4125 1.05662 16.9857C1.07029 18.5589 1.70131 20.0637 2.81376 21.1762C3.9262 22.2886 5.43108 22.9196 7.00426 22.9333C8.57744 22.947 10.0931 22.3422 11.2247 21.2493L11.2371 21.2371L12.9471 19.5271C13.3376 19.1366 13.3376 18.5034 12.9471 18.1129C12.5565 17.7223 11.9234 17.7223 11.5328 18.1129L9.82932 19.8164C9.07555 20.5414 8.06768 20.9425 7.02164 20.9334C5.97285 20.9243 4.9696 20.5036 4.22797 19.762C3.48634 19.0203 3.06566 18.0171 3.05655 16.9683C3.04746 15.9222 3.44851 14.9144 4.17355 14.1606L7.16719 11.167C7.5727 10.7613 8.06071 10.4476 8.59811 10.2471C9.13552 10.0467 9.70976 9.96412 10.2819 10.0051C10.854 10.0461 11.4106 10.2096 11.9139 10.4846C12.4173 10.7596 12.8556 11.1397 13.1992 11.599C13.53 12.0412 14.1567 12.1316 14.5989 11.8007C15.0412 11.4699 15.1315 10.8433 14.8007 10.401C14.2854 9.71205 13.6279 9.14198 12.8729 8.72948C12.1178 8.31697 11.2829 8.07166 10.4247 8.0102Z",fill:"currentColor"})]}));
vendor: 5,626 bytes, line 292
292cu.displayName="LinkIcon";const bh=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 5V4C7 3.17477 7.40255 2.43324 7.91789 1.91789C8.43324 1.40255 9.17477 1 10 1H14C14.8252 1 15.5668 1.40255 16.0821 1.91789C16.5975 2.43324 17 3.17477 17 4V5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H20V20C20 20.8252 19.5975 21.5668 19.0821 22.0821C18.5668 22.5975 17.8252 23 17 23H7C6.17477 23 5.43324 22.5975 4.91789 22.0821C4.40255 21.5668 4 20.8252 4 20V7H3C2.44772 7 2 6.55228 2 6C2 5.44772 2.44772 5 3 5H7ZM9 4C9 3.82523 9.09745 3.56676 9.33211 3.33211C9.56676 3.09745 9.82523 3 10 3H14C14.1748 3 14.4332 3.09745 14.6679 3.33211C14.9025 3.56676 15 3.82523 15 4V5H9V4ZM6 7V20C6 20.1748 6.09745 20.4332 6.33211 20.6679C6.56676 20.9025 6.82523 21 7 21H17C17.1748 21 17.4332 20.9025 17.6679 20.6679C17.9025 20.4332 18 20.1748 18 20V7H6Z",fill:"currentColor"})}));bh.displayName="TrashIcon";var uu="Popover",[Gj]=E2(uu,[R2]),gi=R2(),[AN,hs]=Gj(uu),Zj=t=>{const{__scopePopover:e,children:n,open:o,defaultOpen:s,onOpenChange:r,modal:a=!1}=t,i=gi(e),l=b.useRef(null),[c,u]=b.useState(!1),[d,p]=j_({prop:o,defaultProp:s??!1,onChange:r,caller:uu});return f.jsx(L_,{...i,children:f.jsx(AN,{scope:e,contentId:k_(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:b.useCallback(()=>p(m=>!m),[p]),hasCustomAnchor:c,onCustomAnchorAdd:b.useCallback(()=>u(!0),[]),onCustomAnchorRemove:b.useCallback(()=>u(!1),[]),modal:a,children:n})})};Zj.displayName=uu;var Jj="PopoverAnchor",MN=b.forwardRef((t,e)=>{const{__scopePopover:n,...o}=t,s=hs(Jj,n),r=gi(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=s;return b.useEffect(()=>(a(),()=>i()),[a,i]),f.jsx(O2,{...r,...o,ref:e})});MN.displayName=Jj;var Yj="PopoverTrigger",Xj=b.forwardRef((t,e)=>{const{__scopePopover:n,...o}=t,s=hs(Yj,n),r=gi(n),a=ps(e,s.triggerRef),i=f.jsx(Ks.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ok(s.open),...o,ref:a,onClick:hn(t.onClick,s.onOpenToggle)});return s.hasCustomAnchor?i:f.jsx(O2,{asChild:!0,...r,children:i})});Xj.displayName=Yj;var vh="PopoverPortal",[TN,NN]=Gj(vh,{forceMount:void 0}),Qj=t=>{const{__scopePopover:e,forceMount:n,children:o,container:s}=t,r=hs(vh,e);return f.jsx(TN,{scope:e,forceMount:n,children:f.jsx($r,{present:n||r.open,children:f.jsx(y_,{asChild:!0,container:s,children:o})})})};Qj.displayName=vh;var Ar="PopoverContent",ek=b.forwardRef((t,e)=>{const n=NN(Ar,t.__scopePopover),{forceMount:o=n.forceMount,...s}=t,r=hs(Ar,t.__scopePopover);return f.jsx($r,{present:o||r.open,children:r.modal?f.jsx(ON,{...s,ref:e}):f.jsx(BN,{...s,ref:e})})});ek.displayName=Ar;var RN=w_("PopoverContent.RemoveScroll"),ON=b.forwardRef((t,e)=>{const n=hs(Ar,t.__scopePopover),o=b.useRef(null),s=ps(e,o),r=b.useRef(!1);return b.useEffect(()=>{const a=o.current;if(a)return G_(a)},[]),f.jsx(Z_,{as:RN,allowPinchZoom:!0,children:f.jsx(tk,{...t,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:hn(t.onCloseAutoFocus,a=>{a.preventDefault(),r.current||n.triggerRef.current?.focus()}),onPointerDownOutside:hn(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,c=i.button===2||l;r.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:hn(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),BN=b.forwardRef((t,e)=>{const n=hs(Ar,t.__scopePopover),o=b.useRef(!1),s=b.useRef(!1);return f.jsx(tk,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{t.onCloseAutoFocus?.(r),r.defaultPrevented||(o.current||n.triggerRef.current?.focus(),r.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:r=>{t.onInteractOutside?.(r),r.defaultPrevented||(o.current=!0,r.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=r.target;n.triggerRef.current?.contains(a)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&s.current&&r.preventDefault()}})}),tk=b.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:r,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=t,p=hs(Ar,n),m=gi(n);return J_(),f.jsx(Y_,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:r,children:f.jsx(__,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:f.jsx(P_,{"data-state":ok(p.open),role:"dialog",id:p.contentId,...m,...d,ref:e,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),nk="PopoverClose",LN=b.forwardRef((t,e)=>{const{__scopePopover:n,...o}=t,s=hs(nk,n);return f.jsx(Ks.button,{type:"button",...o,ref:e,onClick:hn(t.onClick,()=>s.onOpenChange(!1))})});LN.displayName=nk;var PN="PopoverArrow",zN=b.forwardRef((t,e)=>{const{__scopePopover:n,...o}=t,s=gi(n);return f.jsx(z_,{...s,...o,ref:e})});zN.displayName=PN;function ok(t){return t?"open":"closed"}var $N=Zj,HN=Xj,VN=Qj,UN=ek;function sk({...t}){return f.jsx($N,{...t})}function rk({...t}){return f.jsx(HN,{...t})}function ak({className:t,align:e="center",sideOffset:n=4,...o}
292){return f.jsx(VN,{children:f.jsx(UN,{align:e,sideOffset:n,className:Se("tiptap-popover",t),...o})})}const qr=b.forwardRef(({decorative:t,orientation:e="vertical",className:n,...o},s)=>{const a=t?{role:"none"}:{"aria-orientation":e==="vertical"?e:void 0,role:"separator"};return f.jsx("div",{className:Se("tiptap-separator",n),"data-orientation":e,...a,...o,ref:s})});qr.displayName="Separator";const bi=b.forwardRef(({className:t,...e},n)=>f.jsx("div",{ref:n,className:Se("tiptap-card",t),...e}));bi.displayName="Card";const qN=b.forwardRef(({className:t,...e},n)=>f.jsx("div",{ref:n,className:Se("tiptap-card-header",t),...e}));qN.displayName="CardHeader";const vi=b.forwardRef(({className:t,...e},n)=>f.jsx("div",{ref:n,className:Se("tiptap-card-body",t),...e}));vi.displayName="CardBody";const zs=b.forwardRef(({className:t,orientation:e="vertical",...n},o)=>f.jsx("div",{ref:o,"data-orientation":e,className:Se("tiptap-card-item-group",t),...n}));zs.displayName="CardItemGroup";const Mr=b.forwardRef(({className:t,...e},n)=>f.jsx("div",{ref:n,className:Se("tiptap-card-group-label",t),...e}));Mr.displayName="CardGroupLabel";const WN=b.forwardRef(({className:t,...e},n)=>f.jsx("div",{ref:n,className:Se("tiptap-card-footer",t),...e}));WN.displayName="CardFooter";function KN({className:t,type:e,...n}){return f.jsx("input",{type:e,className:Se("tiptap-input",t),...n})}function GN({className:t,children:e,...n}){return f.jsx("div",{className:Se("tiptap-input-group",t),...n,children:e})}const ik=b.forwardRef(({className:t,children:e,...n},o)=>f.jsx(je,{type:"button",className:t,"data-style":"ghost",role:"button",tabIndex:-1,"aria-label":"Link",tooltip:"Link",ref:o,...n,children:e||f.jsx(cu,{className:"tiptap-button-icon"})}));ik.displayName="LinkButton";const ZN=({url:t,setUrl:e,setLink:n,removeLink:o,openLink:s,isActive:r})=>{const a=zt(),i=l=>{l.key==="Enter"&&(l.preventDefault(),n())};return f.jsx(bi,{style:{...a?{boxShadow:"none",border:0}:{}},children:f.jsx(vi,{style:{...a?{padding:0}:{}},children:f.jsxs(zs,{orientation:"horizontal",children:[f.jsx(GN,{children:f.jsx(KN,{type:"url",placeholder:"Paste a link...",value:t,onChange:l=>e(l.target.value),onKeyDown:i,autoFocus:!0,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"})}),f.jsx(as,{orientation:"horizontal",children:f.jsx(je,{type:"button",onClick:n,title:"Apply link",disabled:!t&&!r,"data-style":"ghost",children:f.jsx(Wj,{className:"tiptap-button-icon"})})}),f.jsx(qr,{}),f.jsxs(as,{orientation:"horizontal",children:[f.jsx(je,{type:"button",onClick:s,title:"Open in new window",disabled:!t&&!r,"data-style":"ghost",children:f.jsx(Kj,{className:"tiptap-button-icon"})}),f.jsx(je,{type:"button",onClick:o,title:"Remove link",disabled:!t&&!r,"data-style":"ghost",children:f.jsx(bh,{className:"tiptap-button-icon"})})]})]})})})},jh=b.forwardRef(({editor:t,hideWhenUnavailable:e=!1,onSetLink:n,onOpenChange:o,autoOpenOnLinkActive:s=!0,onClick:r,children:a,...i},l)=>{const{editor:c}=oe(t),[u,d]=b.useState(!1),{isVisible:p,canSet:m,isActive:h,url:g,setUrl:v,setLink:j,removeLink:k,openLink:y,label:w,Icon:C}=QN({editor:c,hideWhenUnavailable:e,onSetLink:n}),x=b.useCallback(D=>{d(D),o?.(D)},[o]),_=b.useCallback(()=>{j(),d(!1)},[j]),F=b.useCallback(D=>{r?.(D),!D.defaultPrevented&&d(!u)},[r,u]);return b.useEffect(()=>{s&&h&&d(!0)},[s,h]),p?f.jsxs(sk,{open:u,onOpenChange:x,children:[f.jsx(rk,{asChild:!0,children:f.jsx(ik,{disabled:!m,"data-active-state":h?"on":"off","data-disabled":!m,"aria-label":w,"aria-pressed":h,onClick:F,...i,ref:l,children:a??f.jsx(C,{className:"tiptap-button-icon"})})}),f.jsx(ak,{children:f.jsx(ZN,{url:g,setUrl:v,setLink:_,removeLink:k,openLink:y,isActive:h})})]}):null});jh.displayName="LinkPopover";function lk(t){return!t||!t.isEditable?!1:t.can().setMark("link")}function ck(t){return!t||!t.isEditable?!1:t.isActive("link")}function JN(t){const{editor:e,hideWhenUnavailable:n}=t;return!jo("link",e)||!e?!1:n&&!e.isActive("code")?lk(e):!0}function YN(t){const{editor:e,onSetLink:n}=t,[o,s]=b.useState(null);b.useEffect(()=>{if(!e)return;const{href:l}=e.getAttributes("link");ck(e)&&o===null&&s(l||"")},[e,o]),b.useEffect(()=>{if(!e)return;const l=()=>{const{href:c}=e.getAttributes("link");s(c||"")};return e.on("selectionUpdate",l),()=>{e.off("selectionUpdate",l)}},[e]);const r=b.useCallback(()=>
292{if(!o||!e)return;const{selection:l}=e.state,c=l.empty;let u=e.chain().focus();u=u.extendMarkRange("link").setLink({href:o}),c&&(u=u.insertContent({type:"text",text:o})),u.run(),s(null),n?.()},[e,n,o]),a=b.useCallback(()=>{e&&(e.chain().focus().extendMarkRange("link").unsetLink().setMeta("preventAutolink",!0).run(),s(""))},[e]),i=b.useCallback((l="_blank",c="noopener,noreferrer")=>{if(!o)return;const u=Gp(o,window.location.href);u!=="#"&&window.open(u,l,c)},[o]);return{url:o||"",setUrl:s,setLink:r,removeLink:a,openLink:i}}function XN(t){const{editor:e,hideWhenUnavailable:n=!1}=t,o=lk(e),s=ck(e),[r,a]=b.useState(!1);return b.useEffect(()=>{if(!e)return;const i=()=>{a(JN({editor:e,hideWhenUnavailable:n}))};return i(),e.on("selectionUpdate",i),()=>{e.off("selectionUpdate",i)}},[e,n]),{isVisible:r,canSet:o,isActive:s}}function QN(t){const{editor:e,hideWhenUnavailable:n=!1,onSetLink:o}=t||{},{editor:s}=oe(e),{isVisible:r,canSet:a,isActive:i}=XN({editor:s,hideWhenUnavailable:n}),l=YN({editor:s,onSetLink:o});return{isVisible:r,canSet:a,isActive:i,label:"Link",Icon:cu,...l}}function eR({action:t,shortcutKeys:e=pk[t]}){return f.jsx(ut,{children:ct({shortcutKeys:e})})}const Qp=b.forwardRef(({editor:t,action:e,text:n,hideWhenUnavailable:o=!1,onExecuted:s,showShortcut:r=!1,onClick:a,children:i,...l},c)=>{const{editor:u}=oe(t),{isVisible:d,handleAction:p,label:m,canExecute:h,Icon:g,shortcutKeys:v}=rR({editor:u,action:e,hideWhenUnavailable:o,onExecuted:s}),j=b.useCallback(k=>{a?.(k),!k.defaultPrevented&&p()},[p,a]);return d?f.jsx(je,{type:"button",disabled:!h,"data-style":"ghost","data-disabled":!h,role:"button",tabIndex:-1,"aria-label":m,tooltip:m,onClick:j,...l,ref:c,children:i??f.jsxs(f.Fragment,{children:[f.jsx(g,{className:"tiptap-button-icon"}),n&&f.jsx("span",{className:"tiptap-button-text",children:n}),r&&f.jsx(eR,{action:e,shortcutKeys:v})]})}):null});Qp.displayName="UndoRedoButton";const uk=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 2.29289C15.3166 1.90237 14.6834 1.90237 14.2929 2.29289C13.9024 2.68342 13.9024 3.31658 14.2929 3.70711L17.5858 7H9.5C7.77609 7 6.12279 7.68482 4.90381 8.90381C3.68482 10.1228 3 11.7761 3 13.5C3 14.3536 3.16813 15.1988 3.49478 15.9874C3.82144 16.7761 4.30023 17.4926 4.90381 18.0962C6.12279 19.3152 7.77609 20 9.5 20H13C13.5523 20 14 19.5523 14 19C14 18.4477 13.5523 18 13 18H9.5C8.30653 18 7.16193 17.5259 6.31802 16.682C5.90016 16.2641 5.56869 15.768 5.34254 15.2221C5.1164 14.6761 5 14.0909 5 13.5C5 12.3065 5.47411 11.1619 6.31802 10.318C7.16193 9.47411 8.30653 9 9.5 9H17.5858L14.2929 12.2929C13.9024 12.6834 13.9024 13.3166 14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071L20.7071 8.70711C21.0976 8.31658 21.0976 7.68342 20.7071 7.29289L15.7071 2.29289Z",fill:"currentColor"})}));uk.displayName="Redo2Icon";const dk=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70711 3.70711C10.0976 3.31658 10.0976 2.68342 9.70711 2.29289C9.31658 1.90237 8.68342 1.90237 8.29289 2.29289L3.29289 7.29289C2.90237 7.68342 2.90237 8.31658 3.29289 8.70711L8.29289 13.7071C8.68342 14.0976 9.31658 14.0976 9.70711 13.7071C10.0976 13.3166 10.0976 12.6834 9.70711 12.2929L6.41421 9H14.5C15.0909 9 15.6761 9.1164 16.2221 9.34254C16.768 9.56869 17.2641 9.90016 17.682 10.318C18.0998 10.7359 18.4313 11.232 18.6575 11.7779C18.8836 12.3239 19 12.9091 19 13.5C19 14.0909 18.8836 14.6761 18.6575 15.2221C18.4313 15.768 18.0998 16.2641 17.682 16.682C17.2641 17.0998 16.768 17.4313 16.2221 17.6575C15.6761 17.8836 15.0909 18 14.5 18H11C10.4477 18 10 18.4477 10 19C10 19.5523 10.4477 20 11 20H14.5C15.3536 20 16.1988 19.8319 16.9874 19.5052C17.7761 19.1786 18.4926 18.6998 19.0962 18.0962C19.6998 17.4926 20.1786 16.7761 20.5052 15.9874C20.8319 15.1988 21 14.3536 21 13.5C21 12.6464 20.8319 11.8012 20.5052 11.
2920126C20.1786 10.2239 19.6998 9.50739 19.0962 8.90381C18.4926 8.30022 17.7761 7.82144 16.9874 7.49478C16.1988 7.16813 15.3536 7 14.5 7H6.41421L9.70711 3.70711Z",fill:"currentColor"})}));dk.displayName="Undo2Icon";const pk={undo:"mod+z",redo:"mod+shift+z"},tR={undo:"Undo",redo:"Redo"},nR={undo:dk,redo:uk};function kh(t,e){return!t||!t.isEditable||jn(t,["image"])?!1:e==="undo"?t.can().undo():t.can().redo()}function oR(t,e){if(!t||!t.isEditable||!kh(t,e))return!1;const n=t.chain().focus();return e==="undo"?n.undo().run():n.redo().run()}function sR(t){const{editor:e,hideWhenUnavailable:n,action:o}=t;return!e||!e.isEditable?!1:n&&!e.isActive("code")?kh(e,o):!0}function rR(t){const{editor:e,action:n,hideWhenUnavailable:o=!1,onExecuted:s}=t,{editor:r}=oe(e),[a,i]=b.useState(!0),l=kh(r,n);b.useEffect(()=>{if(!r)return;const u=()=>{i(sR({editor:r,hideWhenUnavailable:o,action:n}))};return u(),r.on("transaction",u),()=>{r.off("transaction",u)}},[r,o,n]);const c=b.useCallback(()=>{if(!r)return!1;const u=oR(r,n);return u&&s?.(),u},[r,n,s]);return{isVisible:a,handleAction:c,canExecute:l,label:tR[n],shortcutKeys:pk[n],Icon:nR[n]}}function yh({editor:t,containerRef:e,query:n,items:o,onSelect:s,onClose:r,orientation:a="vertical",autoSelectFirstItem:i=!0}){const[l,c]=b.useState(i?0:-1);return b.useEffect(()=>{const u=p=>{if(!o.length)return!1;const m=()=>c(g=>g===-1?0:(g+1)%o.length),h=()=>c(g=>g===-1?o.length-1:(g-1+o.length)%o.length);switch(p.key){case"ArrowUp":return a==="horizontal"?!1:(p.preventDefault(),h(),!0);case"ArrowDown":return a==="horizontal"?!1:(p.preventDefault(),m(),!0);case"ArrowLeft":return a==="vertical"?!1:(p.preventDefault(),h(),!0);case"ArrowRight":return a==="vertical"?!1:(p.preventDefault(),m(),!0);case"Tab":return p.preventDefault(),p.shiftKey?h():m(),!0;case"Home":return p.preventDefault(),c(0),!0;case"End":return p.preventDefault(),c(o.length-1),!0;case"Enter":return p.isComposing?!1:(p.preventDefault(),l!==-1&&o[l]&&s?.(o[l]),!0);case"Escape":return p.preventDefault(),r?.(),!0;default:return!1}};let d=null;if(t?d=t.view.dom:e?.current&&(d=e.current),d)return d.addEventListener("keydown",u,!0),()=>{d?.removeEventListener("keydown",u,!0)}},[t,e,o,l,s,r,a]),b.useEffect(()=>{n&&c(i?0:-1)},[n,i]),{selectedIndex:o.length?l:void 0,setSelectedIndex:c}}const G0=(t,e)=>{typeof t=="function"?t(e):t&&typeof t=="object"&&"current"in t&&(t.current=e)},fk=(t,e)=>{const n=b.useRef(null);return b.useCallback(o=>{t&&"current"in t&&(t.current=o),n.current&&G0(n.current,null),n.current=e,e&&G0(e,o)},[t,e])},aR=t=>{const[e,n]=b.useState([]),o=b.useCallback(()=>t.current?Array.from(t.current.querySelectorAll('button:not([disabled]), [role="button"]:not([disabled]), [tabindex="0"]:not([disabled])')):[],[t]);b.useEffect(()=>{const r=t.current;if(!r)return;const a=()=>n(o());a();const i=new MutationObserver(a);return i.observe(r,{childList:!0,subtree:!0}),()=>i.disconnect()},[o,t]);const{selectedIndex:s}=yh({containerRef:t,items:e,orientation:"horizontal",onSelect:r=>r.click(),autoSelectFirstItem:!1});b.useEffect(()=>{const r=t.current;if(!r)return;const a=l=>{const c=l.target;r.contains(c)&&c.setAttribute("data-focus-visible","true")},i=l=>{const c=l.target;r.contains(c)&&c.removeAttribute("data-focus-visible")};return r.addEventListener("focus",a,!0),r.addEventListener("blur",i,!0),()=>{r.removeEventListener("focus",a,!0),r.removeEventListener("blur",i,!0)}},[t]),b.useEffect(()=>{s!==void 0&&e[s]&&e[s].focus()},[s,e])},wh=b.forwardRef(({children:t,className:e,variant:n="fixed",...o},s)=>{const r=b.useRef(null),a=fk(r,s);return aR(r),f.jsx("div",{ref:a,role:"toolbar","aria-label":"toolbar","data-variant":n,className:Se("tiptap-toolbar",e),...o,children:t})});wh.displayName="Toolbar";const yn=b.forwardRef(({children:t,className:e,...n},o)=>f.jsx("div",{ref:o,role:"group",className:Se("tiptap-toolbar-group",e),...n,children:t}));yn.displayName="ToolbarGroup";const co=b.forwardRef(({...t},e)=>f.jsx(qr,{ref:e,orientation:"vertical",decorative:!0,...t}));co.displayName="ToolbarSeparator";function qa({...t}){return f.jsx(Q_,{modal:!1,...t})}function mk({...t}){return f.jsx(ex,{...t})}const Tr=b.forwardRef(({...t},e)=>f.jsx(L2,{ref:e,...t}));Tr.displayName=L2.displayName;const it=X_,iR=b.forwardRef(({className:t,portal:e=!0,...n},o)=>{const s=f.jsx(z2,{ref:o,className:Se("tiptap-dropdown-menu",t),...n});return e?f.jsx(mk,{...typeof e=="object"?e:{},children:s}):s});iR.displayName=z2.displayName;const Nr=b.forwardRef(({className:t,sideOffset:e=4,portal:n=!1,...o},s)=>
292{const r=f.jsx(P2,{ref:s,sideOffset:e,onCloseAutoFocus:a=>a.preventDefault(),className:Se("tiptap-dropdown-menu",t),...o});return n?f.jsx(mk,{...typeof n=="object"?n:{},children:r}):r});Nr.displayName=P2.displayName;const Fs={commentInputVisible:!1,lockDragHandle:!1,isDragging:!1},lR=me.create({name:"uiState",addStorage(){return{uiState:{...Fs}}},addCommands(){const t=n=>o=>()=>(this.storage[n]=o,!0),e=(n,o)=>()=>()=>(this.storage[n]=o,!0);return{commentInputShow:e("commentInputVisible",!0),commentInputHide:e("commentInputVisible",!1),setLockDragHandle:t("lockDragHandle"),setIsDragging:t("isDragging"),resetUiState:()=>()=>(Object.assign(this.storage,{...Fs}),!0)}},onCreate(){this.storage={...Fs}}}),Z0={paragraph:"text",codeBlock:"Codeblock"},cR=t=>{if(!t)return"Node";const{selection:e}=t.state;if(e instanceof U){const s=e.node.type.name;return Z0[s]||s.toLowerCase()}const{$anchor:n}=e,o=n.parent.type.name;return Z0[o]||o.toLowerCase()};function uR(t,e){const n=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s=n.top<o.top,r=n.bottom>o.bottom;return s&&r?"both":s?"top":r?"bottom":"none"}const dR=t=>{if(!t)return!1;const{state:e}=t,{selection:n}=e;return jm(n)&&!n.empty&&!n.$from.parent.type.spec.code&&!eu(n)};function pR(t,e,n,o){const{dismissOptions:s,...r}=o||{},{refs:a,update:i,context:l,floatingStyles:c}=vj({open:t,...r}),{isMounted:u,styles:d}=JT(l),p=bj(l,s),{getReferenceProps:m,getFloatingProps:h}=jj([p]);return b.useEffect(()=>{i()},[e,i]),b.useEffect(()=>{e!==null&&a.setReference({getBoundingClientRect:()=>e})},[e,a]),b.useMemo(()=>({isMounted:u,ref:a.setFloating,style:{...d,...c,zIndex:n},update:i,getFloatingProps:h,getReferenceProps:m}),[c,u,a.setFloating,d,i,n,h,m])}function fR(t){var e;const{char:n,allowSpaces:o,allowToIncludeChar:s,allowedPrefixes:r,startOfLine:a,$position:i}=t,l=o&&!s,c=K6(n),u=new RegExp(`\\s${c}$`),d=a?"^":"",p=s?"":c,m=l?new RegExp(`${d}${c}.*?(?=\\s${p}|$)`,"gm"):new RegExp(`${d}(?:^)?${c}[^\\s${p}]*`,"gm"),h=((e=i.nodeBefore)==null?void 0:e.isText)&&i.nodeBefore.text;if(!h)return null;const g=i.pos-h.length,v=Array.from(h.matchAll(m)).pop();if(!v||v.input===void 0||v.index===void 0)return null;const j=v.input.slice(Math.max(0,v.index-1),v.index),k=new RegExp(`^[${r?.join("")}\0]?$`).test(j);if(r!==null&&!k)return null;const y=g+v.index;let w=y+v[0].length;return l&&u.test(h.slice(w-1,w+1))&&(v[0]+=" ",w+=1),y<i.pos&&w>=i.pos?{range:{from:y,to:w},query:v[0].slice(n.length),text:v[0]}:null}var hk=new we("suggestion");function gk({pluginKey:t=hk,editor:e,char:n="@",allowSpaces:o=!1,allowToIncludeChar:s=!1,allowedPrefixes:r=[" "],startOfLine:a=!1,decorationTag:i="span",decorationClass:l="suggestion",decorationContent:c="",decorationEmptyClass:u="is-empty",command:d=()=>null,items:p=()=>[],render:m=()=>({}),allow:h=()=>!0,findSuggestionMatch:g=fR}){let v;const j=m?.(),k=()=>{const x=e.state.selection.$anchor.pos,_=e.view.coordsAtPos(x),{top:F,right:D,bottom:M,left:R}=_;try{return new DOMRect(R,F,D-R,M-F)}catch{return null}},y=(x,_)=>_?()=>{const F=t.getState(e.state),D=F?.decorationId,M=x.dom.querySelector(`[data-decoration-id="${D}"]`);return M?.getBoundingClientRect()||null}:k;function w(x,_){var F;try{const M=t.getState(x.state),R=M?.decorationId?x.dom.querySelector(`[data-decoration-id="${M.decorationId}"]`):null,P={editor:e,range:M?.range||{from:0,to:0},query:M?.query||null,text:M?.text||null,items:[],command:E=>d({editor:e,range:M?.range||{from:0,to:0},props:E}),decorationNode:R,clientRect:y(x,R)};(F=j?.onExit)==null||F.call(j,P)}catch{}const D=x.state.tr.setMeta(_,{exit:!0});x.dispatch(D)}const C=new xe({key:t,view(){return{update:async(x,_)=>{var F,D,M,R,P,E,S;const I=(F=this.key)==null?void 0:F.getState(_),A=(D=this.key)==null?void 0:D.getState(x.state),T=I.active&&A.active&&I.range.from!==A.range.from,O=!I.active&&A.active,N=I.active&&!A.active,$=!O&&!N&&I.query!==A.query,V=O||T&&$,K=$||T,Z=N||T&&$;if(!V&&!K&&!Z)return;const se=Z&&!V?I:A,ee=x.dom.querySelector(`[data-decoration-id="${se.decorationId}"]`);v={editor:e,range:se.range,query:se.query,text:se.text,items:[],command:be=>d({editor:e,range:se.range,props:be}),decorationNode:ee,clientRect:y(x,ee)},V&&((M=j?.onBeforeStart)==null||M.call(j,v)),K&&((R=j?.onBeforeUpdate)==null||R.call(j,v)),(K||V)&&(v.items=await p({editor:e,query:se.query})),Z&&((P=j?.onExit)==null||P.call(j,v)),K&&((E=j?.onUpdate)==null||E.call(j,v)),V&&((S=j?.onStart)==null||S.call(j,v))},destroy:()=>{var x;v&&((x=j?.onExit)==null||x.call(j,v))}}}
292,state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(x,_,F,D){const{isEditable:M}=e,{composing:R}=e.view,{selection:P}=x,{empty:E,from:S}=P,I={..._},A=x.getMeta(t);if(A&&A.exit)return I.active=!1,I.decorationId=null,I.range={from:0,to:0},I.query=null,I.text=null,I;if(I.composing=R,M&&(E||e.view.composing)){(S<_.range.from||S>_.range.to)&&!R&&!_.composing&&(I.active=!1);const T=g({char:n,allowSpaces:o,allowToIncludeChar:s,allowedPrefixes:r,startOfLine:a,$position:P.$from}),O=`id_${Math.floor(Math.random()*4294967295)}`;T&&h({editor:e,state:D,range:T.range,isActive:_.active})?(I.active=!0,I.decorationId=_.decorationId?_.decorationId:O,I.range=T.range,I.query=T.query,I.text=T.text):I.active=!1}else I.active=!1;return I.active||(I.decorationId=null,I.range={from:0,to:0},I.query=null,I.text=null),I}},props:{handleKeyDown(x,_){var F,D,M,R;const{active:P,range:E}=C.getState(x.state);if(!P)return!1;if(_.key==="Escape"||_.key==="Esc"){const I=C.getState(x.state),A=(F=v?.decorationNode)!=null?F:null,T=A??(I?.decorationId?x.dom.querySelector(`[data-decoration-id="${I.decorationId}"]`):null);if(((D=j?.onKeyDown)==null?void 0:D.call(j,{view:x,event:_,range:I.range}))||!1)return!0;const N={editor:e,range:I.range,query:I.query,text:I.text,items:[],command:$=>d({editor:e,range:I.range,props:$}),decorationNode:T,clientRect:T?()=>T.getBoundingClientRect()||null:null};return(M=j?.onExit)==null||M.call(j,N),w(x,t),!0}return((R=j?.onKeyDown)==null?void 0:R.call(j,{view:x,event:_,range:E}))||!1},decorations(x){const{active:_,range:F,decorationId:D,query:M}=C.getState(x);if(!_)return null;const R=!M?.length,P=[l];return R&&P.push(u),Ne.create(x.doc,[xt.inline(F.from,F.to,{nodeName:i,class:P.join(" "),"data-decoration-id":D,"data-decoration-content":c})])}}});return C}var mR=gk;function hR(t,e,n){if(!e?.text||!n)return t;const o=e.text,s=o.lastIndexOf(n);if(s===-1)return t;const r=o.substring(s).length;return t-r}function gR(t,e){const n=e.trim().toLowerCase();return n?t.filter(o=>!!(o.title.toLowerCase().includes(n)||o.subtext?.toLowerCase().includes(n)||o.keywords?.some(s=>s.toLowerCase().includes(n)))).sort((o,s)=>{const r=o.title.toLowerCase(),a=s.title.toLowerCase();return r===n&&a!==n?-1:a===n&&r!==n?1:r.startsWith(n)&&!a.startsWith(n)?-1:a.startsWith(n)&&!r.startsWith(n)?1:0}):t}const bR=({editor:t,floatingOptions:e,selector:n="tiptap-suggestion-menu",children:o,maxHeight:s=384,pluginKey:r=hk,...a})=>{const{editor:i}=oe(t),[l,c]=b.useState(!1),[u,d]=b.useState(null),[p,m]=b.useState(null),[h,g]=b.useState([]),[v,j]=b.useState(""),[,k]=b.useState(null),{ref:y,style:w,getFloatingProps:C,isMounted:x}=pR(l,u,1e3,{placement:"bottom-start",middleware:[Uf(10),M2({mainAxis:!0,crossAxis:!1}),T2(),$_({apply({availableHeight:R,elements:P}){if(P.floating){const E=s?Math.min(s,R):R;P.floating.style.setProperty("--suggestion-menu-max-height",`${E}px`)}}})],onOpenChange(R){R||c(!1)},...e}),_=b.useRef(a);b.useEffect(()=>{_.current=a},[a]);const F=b.useCallback(()=>{c(!1)},[]);b.useEffect(()=>{if(!i||i.isDestroyed)return;i.state.plugins.find(E=>E.spec.key===r)&&i.unregisterPlugin(r);const P=gk({pluginKey:r instanceof we?r:new we(r),editor:i,command({editor:E,range:S,props:I}){if(!S)return;const{view:A,state:T}=E,{selection:O}=T;if(!E.extensionManager.extensions.some(Z=>Z.name==="mention"&&Z.options?.suggestion?.char===_.current.char)){const Z=O.$from.pos,se=O.$head?.nodeBefore,ee=se?hR(Z,se,_.current.char):O.$from.start(),be=T.tr.deleteRange(ee,Z);A.dispatch(be)}const V=A.state.selection.$to.nodeAfter?.text?.startsWith(" "),K={...S};V&&(K.to+=1),I.onSelect({editor:E,range:K,context:I.context})},render:()=>({onStart:E=>{m(()=>E.command),g(E.items),j(E.query),k(E.range),d(E.clientRect?.()??null),c(!0)},onUpdate:E=>{m(()=>E.command),g(E.items),j(E.query),k(E.range),d(E.clientRect?.()??null)},onKeyDown:E=>E.event.key==="Escape"?(F(),!0):!1,onExit:()=>{m(null),g([]),j(""),k(null),d(null),c(!1)}}),..._.current});return i.registerPlugin(P),()=>{i.isDestroyed||i.unregisterPlugin(r)}},[i,r,F]);const D=b.useCallback(R=>{F(),p&&p(R)},[F,p]),{selectedIndex:M}=yh({editor:i,query:v,items:h,onSelect:D});return!x||!l||!i?null:f.jsx("div",{ref:y,style:w,...C(),"data-selector":n,className:"tiptap-suggestion-menu",role:"listbox","aria-label":"Suggestions",onPointerDown:R=>R.preventDefault(),children:o({items:h,selectedIndex:M,onSelect:D})})},_h=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"
292currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4C4.44772 4 4 4.44772 4 5V19C4 19.5523 4.44772 20 5 20H5.58579L14.379 11.2068C14.9416 10.6444 15.7045 10.3284 16.5 10.3284C17.2955 10.3284 18.0584 10.6444 18.621 11.2068L20 12.5858V5C20 4.44772 19.5523 4 19 4H5ZM22 14.998V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H5.99781C5.99927 22 6.00073 22 6.00219 22H19C20.6569 22 22 20.6569 22 19V15.002C22 15.0007 22 14.9994 22 14.998ZM20 15.4142L17.207 12.6212C17.0195 12.4338 16.7651 12.3284 16.5 12.3284C16.2349 12.3284 15.9806 12.4337 15.7931 12.6211L8.41422 20H19C19.5523 20 20 19.5523 20 19V15.4142ZM9 8C8.44772 8 8 8.44772 8 9C8 9.55228 8.44772 10 9 10C9.55228 10 10 9.55228 10 9C10 8.44772 9.55228 8 9 8ZM6 9C6 7.34315 7.34315 6 9 6C10.6569 6 12 7.34315 12 9C12 10.6569 10.6569 12 9 12C7.34315 12 6 10.6569 6 9Z",fill:"currentColor"})}));_h.displayName="ImageIcon";const bk=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C4 11.4477 4.44772 11 5 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H5C4.44772 13 4 12.5523 4 12Z",fill:"currentColor"})}));bk.displayName="MinusIcon";const xh=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M3 4C3 3.44772 3.44772 3 4 3H20C20.5523 3 21 3.44772 21 4V7C21 7.55228 20.5523 8 20 8C19.4477 8 19 7.55228 19 7V5H13V19H15C15.5523 19 16 19.4477 16 20C16 20.5523 15.5523 21 15 21H9C8.44772 21 8 20.5523 8 20C8 19.4477 8.44772 19 9 19H11V5H5V7C5 7.55228 4.55228 8 4 8C3.44772 8 3 7.55228 3 7V4Z",fill:"currentColor"})}));xh.displayName="TypeIcon";const vk=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5273 1.29427C12.1156 0.724951 9.58234 0.986597 7.33794 2.03682C5.09354 3.08704 3.26948 4.8643 2.1613 7.08066C1.05312 9.29702 0.725742 11.8226 1.23221 14.2483C1.73868 16.6739 3.04931 18.8575 4.95178 20.4453C6.85424 22.033 9.23706 22.9319 11.7142 22.9963C14.1913 23.0607 16.6176 22.2868 18.6 20.8C19.0418 20.4686 19.1314 19.8418 18.8 19.4C18.4686 18.9582 17.8418 18.8686 17.4 19.2C15.7781 20.4165 13.7929 21.0496 11.7662 20.997C9.73942 20.9443 7.78983 20.2088 6.23327 18.9098C4.67671 17.6107 3.60437 15.8241 3.18999 13.8395C2.77561 11.8549 3.04346 9.78847 3.95015 7.97509C4.85685 6.1617 6.34926 4.70758 8.18559 3.84831C10.0219 2.98904 12.0946 2.77496 14.0678 3.24077C16.041 3.70658 17.7991 4.82497 19.0573 6.41476C20.3155 8.00455 21 9.97258 21 12V13C21 13.5304 20.7893 14.0392 20.4142 14.4142C20.0391 14.7893 19.5304 15 19 15C18.4696 15 17.9609 14.7893 17.5858 14.4142C17.2107 14.0392 17 13.5304 17 13V8.00001C17 7.44772 16.5523 7.00001 16 7.00001C15.4478 7.00001 15.0002 7.44752 15 7.99964C14.1643 7.37195 13.1256 7 12 7C9.23858 7 7 9.23858 7 12C7 14.7614 9.23858 17 12 17C13.4881 17 14.8243 16.3499 15.7403 15.3183C15.8687 15.4989 16.0128 15.6696 16.1716 15.8284C16.9217 16.5786 17.9391 17 19 17C20.0609 17 21.0783 16.5786 21.8284 15.8284C22.5786 15.0783 23 14.0609 23 13V12C23 9.52205 22.1633 7.11667 20.6255 5.17359C19.0878 3.23052 16.939 1.86359 14.5273 1.29427ZM15 11.9958V12.0042C14.9977 13.6591 13.6555 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6555 9 14.9977 10.3409 15 11.9958Z",fill:"currentColor"})}));vk.displayName="AtSignIcon";const jk=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67909 4.05505C9.27254 3.18292 11.0926 2.81337 12.9 2.995C13.4495 3.05022 13.9398 2.64952 13.995 2.1C14.0502 1.55048 13.6495 1.06024 13.1 1.00502C10.8909 0.783033 8.66641 1.2347 6.71886 2.30064C4.7713 3.36659 3.19189 4.99691 2.18824 6.97729C1.1846 8.9576
2927 0.803706 11.1954 1.09564 13.3963C1.38758 15.5972 2.33867 17.6583 3.8239 19.3085C5.30912 20.9588 7.25894 22.121 9.41704 22.6423C11.5751 23.1637 13.8405 23.0198 15.9153 22.2296C17.9901 21.4394 19.7772 20.0398 21.0417 18.2149C22.3062 16.39 22.9889 14.2252 23 12.005L23 12V11C23 10.4477 22.5523 10 22 10C21.4477 10 21 10.4477 21 11V11.9976C20.9904 13.8132 20.4319 15.5834 19.3978 17.0758C18.3632 18.5689 16.901 19.714 15.2034 20.3605C13.5059 21.0071 11.6524 21.1248 9.8867 20.6982C8.12098 20.2717 6.52567 19.3208 5.31048 17.9706C4.0953 16.6204 3.31713 14.9341 3.07828 13.1333C2.83942 11.3326 3.15106 9.50171 3.97222 7.8814C4.79339 6.26109 6.08564 4.92719 7.67909 4.05505ZM7.4 13.2C7.84043 12.8697 8.46468 12.9576 8.79686 13.3958L8.8015 13.4018C8.80745 13.4093 8.81876 13.4234 8.83531 13.4431C8.86846 13.4826 8.92219 13.5442 8.99542 13.6206C9.14272 13.7743 9.36407 13.9828 9.65067 14.1913C10.2277 14.6109 11.0255 15 12 15C12.9745 15 13.7723 14.6109 14.3493 14.1913C14.6359 13.9828 14.8573 13.7743 15.0046 13.6206C15.0778 13.5442 15.1315 13.4826 15.1647 13.4431C15.1812 13.4234 15.1925 13.4093 15.1985 13.4018L15.2031 13.3958C15.5353 12.9576 16.1596 12.8697 16.6 13.2C17.0418 13.5314 17.1314 14.1582 16.8 14.6L16 14C16.8 14.6 16.7998 14.6003 16.7995 14.6006L16.799 14.6013L16.7978 14.6029L16.7951 14.6065L16.7879 14.6159L16.7666 14.6432C16.7493 14.6649 16.726 14.6938 16.6966 14.7288C16.638 14.7987 16.555 14.8933 16.4485 15.0044C16.2365 15.2257 15.9266 15.5172 15.5257 15.8087C14.7277 16.3891 13.5255 17 12 17C10.4745 17 9.27227 16.3891 8.47433 15.8087C8.07343 15.5172 7.76352 15.2257 7.55145 15.0044C7.445 14.8933 7.362 14.7987 7.30336 14.7288C7.274 14.6938 7.25065 14.6649 7.23341 14.6432L7.21211 14.6159L7.2049 14.6065L7.20216 14.6029L7.20101 14.6013L7.20048 14.6006C7.20024 14.6003 7.2 14.6 8 14L7.2 14.6C6.86863 14.1582 6.95817 13.5314 7.4 13.2ZM8 9C8 8.44772 8.44772 8 9 8H9.01C9.56229 8 10.01 8.44772 10.01 9C10.01 9.55229 9.56229 10 9.01 10H9C8.44772 10 8 9.55229 8 9ZM15 8C14.4477 8 14 8.44772 14 9C14 9.55229 14.4477 10 15 10H15.01C15.5623 10 16.01 9.55229 16.01 9C16.01 8.44772 15.5623 8 15.01 8H15ZM15 5C15 4.44772 15.4477 4 16 4H18V2C18 1.44772 18.4477 1 19 1C19.5523 1 20 1.44772 20 2V4H22C22.5523 4 23 4.44772 23 5C23 5.55228 22.5523 6 22 6H20V8C20 8.55228 19.5523 9 19 9C18.4477 9 18 8.55228 18 8V6H16C15.4477 6 15 5.55228 15 5Z",fill:"currentColor"})}));jk.displayName="SmilePlusIcon";const J0={text:{title:"Text",subtext:"Regular text paragraph",keywords:["p","paragraph","text"],badge:xh,group:"Style"},heading_1:{title:"Heading 1",subtext:"Top-level heading",keywords:["h","heading1","h1"],badge:mi,group:"Style"},heading_2:{title:"Heading 2",subtext:"Key section heading",keywords:["h2","heading2","subheading"],badge:rh,group:"Style"},heading_3:{title:"Heading 3",subtext:"Subsection and group heading",keywords:["h3","heading3","subheading"],badge:ah,group:"Style"},bullet_list:{title:"Bullet List",subtext:"List with unordered items",keywords:["ul","li","list","bulletlist","bullet list"],badge:hi,group:"Style"},ordered_list:{title:"Numbered List",subtext:"List with ordered items",keywords:["ol","li","list","numberedlist","numbered list"],badge:ih,group:"Style"},task_list:{title:"To-do list",subtext:"List with tasks",keywords:["tasklist","task list","todo","checklist"],badge:lh,group:"Style"},quote:{title:"Blockquote",subtext:"Blockquote block",keywords:["quote","blockquote"],badge:dh,group:"Style"},code_block:{title:"Code Block",subtext:"Code block with syntax highlighting",keywords:["code","pre"],badge:mh,group:"Style"},mention:{title:"Mention",subtext:"Mention a user or item",keywords:["mention","user","item","tag"],badge:vk,group:"Insert"},emoji:{title:"Emoji",subtext:"Insert an emoji",keywords:["emoji","emoticon","smiley"],badge:jk,group:"Insert"},divider:{title:"Separator",subtext:"Horizontal line to separate content",keywords:["hr","horizontalRule","line","separator"],badge:bk,group:"Insert"},image:{title:"Image",subtext:"Resizable image with caption",keywords:["image","imageUpload","upload","img","picture","media","url"],badge:_h,group:"Upload"}},vR=()=>({text:{check:t=>Qe("paragraph",t),action:({editor:t})=>{t.chain().focus().setParagraph().run()}},heading_1:{check:t=>Qe("heading",t),action:({editor:t})=>{t.chain().focus().toggleHeading({level:1}).run()}},heading_2:{check:t=>Qe("heading",t),action:({editor:t})=>{t.chain().focus().toggleHeading({level:2}).run()}},heading_3:{check:t=>Qe("heading",t),action:({editor:t})=>{t.chain().focus().toggleHeading({level:3}).run()}},bullet_list:{check:t=>Qe("bulletList",t),action:({editor:t})=>{t.chain().focus().toggleBulletList().run()}},ordered_list:{check:t=>Qe("orderedList",t),action:({editor:t})=>{t.chain().focus().toggleOrderedList().run()}},task_list:{check:t=>Qe("taskList",t),action:({editor:t})=>{t.chain().focus().toggleTaskList().run()}},quote:{check:t=>Qe("blockquote",t),action:({editor:t})=>{t.chain().focus().toggleBlockquote().run()}},code_block:{check:t=>Qe("codeBlock",t),action:({editor:t})=>{t.chain().focus().toggleNode("codeBlock","paragraph").run()}},mention:{check:t=>Ir(t,["mention","mentionAdvanced"]),action:t=>{console.warn("Mention feature not available in simple-editor")}},emoji:{check:t=>Ir(t,["emoji","emojiPicker"]),action:t=>{console.warn("Emoji feature not available in simple-editor")}},divider:{check:t=>Qe("horizontalRule",t),action:({editor:t})=>{t.chain().focus().setHorizontalRule().run()}},image:{check:t=>Qe("image",t),action:({editor:t})=>{t.chain().focus().insertContent({type:"imageUpload"}).run()}}});function jR(t,e){if(!e)return t.map(s=>({...s,group:""}));const n={};t.forEach(s=>{const r=s.group||"";n[r]||(n[r]=[]),n[r].push(s)});const o=[];
292return Object.entries(n).forEach(([,s])=>{o.push(...s)}),o}function kR(t){return{getSlashMenuItems:b.useCallback(n=>{const o=[],s=t?.enabledItems||Object.keys(J0),r=t?.showGroups!==!1,a=vR();return s.forEach(i=>{const l=a[i],c=J0[i];if(l&&c&&l.check(n)){const u={onSelect:({editor:d})=>l.action({editor:d}),...c};t?.itemGroups?.[i]?u.group=t.itemGroups[i]:r||(u.group=""),o.push(u)}}),t?.customItems&&o.push(...t.customItems),jR(o,r)},[t]),config:t}}const yR=t=>{const{config:e,...n}=t,{getSlashMenuItems:o}=kR(e);return f.jsx(bR,{char:"/",pluginKey:"slashDropdownMenu",decorationClass:"tiptap-slash-decoration",decorationContent:"Filter...",selector:"tiptap-slash-dropdown-menu",items:({query:s,editor:r})=>gR(o(r),s),...n,children:s=>f.jsx(wR,{...s,config:e})})},Y0=t=>{const{item:e,isSelected:n,onSelect:o}=t,s=b.useRef(null);b.useEffect(()=>{const a=document.querySelector('[data-selector="tiptap-slash-dropdown-menu"]');if(!s.current||!n||!a)return;const i=uR(s.current,a);i==="top"?s.current.scrollIntoView(!0):i==="bottom"&&s.current.scrollIntoView(!1)},[n]);const r=e.badge;return f.jsxs(je,{ref:s,"data-style":"ghost","data-active-state":n?"on":"off",onClick:o,children:[r&&f.jsx(r,{className:"tiptap-button-icon"}),f.jsx("div",{className:"tiptap-button-text",children:e.title})]})},wR=({items:t,selectedIndex:e,onSelect:n,config:o})=>{const s=b.useMemo(()=>{const r=[];if(!(o?.showGroups!==!1))return t.forEach((l,c)=>{r.push(f.jsx(Y0,{item:l,isSelected:c===e,onSelect:()=>n(l)},`item-${c}-${l.title}`))}),r;const i={};return t.forEach((l,c)=>{const u=l.group||"";i[u]||(i[u]={items:[],indices:[]}),i[u].items.push(l),i[u].indices.push(c)}),Object.entries(i).forEach(([l,c],u)=>{u>0&&r.push(f.jsx(qr,{orientation:"horizontal"},`separator-${u}`));const d=c.items.map((p,m)=>{const h=c.indices[m];return f.jsx(Y0,{item:p,isSelected:h===e,onSelect:()=>n(p)},`item-${h}-${p.title}`)});l?r.push(f.jsxs(zs,{children:[f.jsx(Mr,{children:l}),f.jsx(as,{children:d})]},`group-${u}-${l}`)):r.push(...d)}),r},[t,e,n,o?.showGroups]);return s.length?f.jsx(bi,{className:"tiptap-slash-card",style:{maxHeight:"var(--suggestion-menu-max-height)"},children:f.jsx(vi,{className:"tiptap-slash-card-body",children:s})}):null};function kk(t){return Sm({editor:t,selector:({editor:e})=>{if(!e)return Fs;const n=e.storage.uiState;return n?{...Fs,...n}:(console.warn("Editor storage uiState is not initialized. Ensure you have the uiState extension added to your editor."),Fs)}})??Fs}const _R="hideFloatingToolbar",xR=(t,e)=>{if(!t)return;const{state:n,view:o}=t;o.dispatch(n.tr.setSelection(U.create(n.doc,e)).setMeta(_R,!0))};function CR({orientation:t="horizontal",size:e,style:n={},...o}){const s={...n,...t==="horizontal"&&!e&&{flex:1},...e&&{width:t==="vertical"?"1px":e,height:t==="horizontal"?"1px":e}};return f.jsx("div",{...o,style:s})}var DR=Object.defineProperty,FR=Object.defineProperties,ER=Object.getOwnPropertyDescriptors,jc=Object.getOwnPropertySymbols,yk=Object.prototype.hasOwnProperty,wk=Object.prototype.propertyIsEnumerable,X0=(t,e,n)=>e in t?DR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,B=(t,e)=>{for(var n in e||(e={}))yk.call(e,n)&&X0(t,n,e[n]);if(jc)for(var n of jc(e))wk.call(e,n)&&X0(t,n,e[n]);return t},J=(t,e)=>FR(t,ER(e)),ce=(t,e)=>{var n={};for(var o in t)yk.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&jc)for(var o of jc(t))e.indexOf(o)<0&&wk.call(t,o)&&(n[o]=t[o]);return n},IR=Object.defineProperty,SR=Object.defineProperties,AR=Object.getOwnPropertyDescriptors,kc=Object.getOwnPropertySymbols,_k=Object.prototype.hasOwnProperty,xk=Object.prototype.propertyIsEnumerable,Q0=(t,e,n)=>e in t?IR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ge=(t,e)=>{for(var n in e||(e={}))_k.call(e,n)&&Q0(t,n,e[n]);if(kc)for(var n of kc(e))xk.call(e,n)&&Q0(t,n,e[n]);return t},Ge=(t,e)=>SR(t,AR(e)),Ch=(t,e)=>{var n={};for(var o in t)_k.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&kc)for(var o of kc(t))e.indexOf(o)<0&&xk.call(t,o)&&(n[o]=t[o]);return n};function _a(...t){}function Ck(t,e){if(MR(t)){const n=TR(e)?e():e;return t(n)}return t}function MR(t){return typeof t=="function"}function TR(t){return typeof t=="function"}function ko(t,e){return typeof Object.hasOwn=="function"?Object.hasOwn(t,e):Object.prototype.hasOwnProperty.call(t,e)}function Jt(...t){return(...e)=>{for(const n of t)typeof n=="function"&&n(...e)}}function Dk(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function NR(t,e){const n=ge({},t);for(const o of e)ko(n,o)&&delete n[o];return n}function RR(t,e){const n={};
292for(const o of e)ko(t,o)&&(n[o]=t[o]);return n}function Fk(t){return t}function Ye(t,e){if(!t)throw typeof e!="string"?new Error("Invariant failed"):new Error(e)}function OR(t){return Object.keys(t)}function du(t,...e){const n=typeof t=="function"?t(...e):t;return n==null?!1:!n}function Wr(t){return t.disabled||t["aria-disabled"]===!0||t["aria-disabled"]==="true"}function Tn(t){const e={};for(const n in t)t[n]!==void 0&&(e[n]=t[n]);return e}function ae(...t){for(const e of t)if(e!==void 0)return e}function ef(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function BR(t){return!t||!b.isValidElement(t)?!1:"ref"in t.props||"ref"in t}function LR(t){return BR(t)?B({},t.props).ref||t.ref:null}function PR(t,e){const n=B({},t);for(const o in e){if(!ko(e,o))continue;if(o==="className"){const r="className";n[r]=t[r]?`${t[r]} ${e[r]}`:e[r];continue}if(o==="style"){const r="style";n[r]=t[r]?B(B({},t[r]),e[r]):e[r];continue}const s=e[o];if(typeof s=="function"&&o.startsWith("on")){const r=t[o];if(typeof r=="function"){n[o]=(...a)=>{s(...a),r(...a)};continue}}n[o]=s}return n}var Kr=zR();function zR(){var t;return typeof window<"u"&&!!((t=window.document)!=null&&t.createElement)}function $e(t){return t?"self"in t?t.document:t.ownerDocument||document:document}function Ek(t){return t?"self"in t?t.self:$e(t).defaultView||window:self}function _o(t,e=!1){const{activeElement:n}=$e(t);if(!n?.nodeName)return null;if(Dh(n)&&n.contentDocument)return _o(n.contentDocument.body,e);if(e){const o=n.getAttribute("aria-activedescendant");if(o){const s=$e(n).getElementById(o);if(s)return s}}return n}function ot(t,e){return t===e||t.contains(e)}function Dh(t){return t.tagName==="IFRAME"}function is(t){const e=t.tagName.toLowerCase();return e==="button"?!0:e==="input"&&t.type?$R.indexOf(t.type)!==-1:!1}var $R=["button","color","file","image","reset","submit"];function Ik(t){if(typeof t.checkVisibility=="function")return t.checkVisibility();const e=t;return e.offsetWidth>0||e.offsetHeight>0||t.getClientRects().length>0}function Xn(t){try{const e=t instanceof HTMLInputElement&&t.selectionStart!==null,n=t.tagName==="TEXTAREA";return e||n||!1}catch{return!1}}function tf(t){return t.isContentEditable||Xn(t)}function HR(t){if(Xn(t))return t.value;if(t.isContentEditable){const e=$e(t).createRange();return e.selectNodeContents(t),e.toString()}return""}function nf(t){let e=0,n=0;if(Xn(t))e=t.selectionStart||0,n=t.selectionEnd||0;else if(t.isContentEditable){const o=$e(t).getSelection();if(o?.rangeCount&&o.anchorNode&&ot(t,o.anchorNode)&&o.focusNode&&ot(t,o.focusNode)){const s=o.getRangeAt(0),r=s.cloneRange();r.selectNodeContents(t),r.setEnd(s.startContainer,s.startOffset),e=r.toString().length,r.setEnd(s.endContainer,s.endOffset),n=r.toString().length}}return{start:e,end:n}}function pu(t,e){const n=["dialog","menu","listbox","tree","grid"],o=t?.getAttribute("role");return o&&n.indexOf(o)!==-1?o:e}function Sk(t,e){var n;const o={menu:"menuitem",listbox:"option",tree:"treeitem"},s=pu(t);return s&&(n=o[s])!=null?n:e}function Fh(t){if(!t)return null;const e=n=>n==="auto"||n==="scroll";if(t.clientHeight&&t.scrollHeight>t.clientHeight){const{overflowY:n}=getComputedStyle(t);if(e(n))return t}else if(t.clientWidth&&t.scrollWidth>t.clientWidth){const{overflowX:n}=getComputedStyle(t);if(e(n))return t}return Fh(t.parentElement)||document.scrollingElement||document.body}function Ld(t,...e){/text|search|password|tel|url/i.test(t.type)&&t.setSelectionRange(...e)}function Ak(t,e){const n=t.map((s,r)=>[r,s]);let o=!1;return n.sort(([s,r],[a,i])=>{const l=e(r),c=e(i);return l===c||!l||!c?0:VR(l,c)?(s>a&&(o=!0),-1):(s<a&&(o=!0),1)}),o?n.map(([s,r])=>r):t}function VR(t,e){return!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}function Mk(){return Kr&&!!navigator.maxTouchPoints}function Eh(){return Kr?/mac|iphone|ipad|ipod/i.test(navigator.platform):!1}function fu(){return Kr&&Eh()&&/apple/i.test(navigator.vendor)}function UR(){return Kr&&/firefox\//i.test(navigator.userAgent)}function qR(){return Kr&&navigator.platform.startsWith("Mac")&&!Mk()}
292function Tk(t){return!!(t.currentTarget&&!ot(t.currentTarget,t.target))}function en(t){return t.target===t.currentTarget}function Nk(t){const e=t.currentTarget;if(!e)return!1;const n=Eh();if(n&&!t.metaKey||!n&&!t.ctrlKey)return!1;const o=e.tagName.toLowerCase();return o==="a"||o==="button"&&e.type==="submit"||o==="input"&&e.type==="submit"}function Rk(t){const e=t.currentTarget;if(!e)return!1;const n=e.tagName.toLowerCase();return t.altKey?n==="a"||n==="button"&&e.type==="submit"||n==="input"&&e.type==="submit":!1}function WR(t,e,n){const o=new Event(e,n);return t.dispatchEvent(o)}function rr(t,e){const n=new FocusEvent("blur",e),o=t.dispatchEvent(n),s=Ge(ge({},e),{bubbles:!0});return t.dispatchEvent(new FocusEvent("focusout",s)),o}function KR(t,e,n){const o=new KeyboardEvent(e,n);return t.dispatchEvent(o)}function eb(t,e){const n=new MouseEvent("click",e);return t.dispatchEvent(n)}function ks(t,e){const n=e||t.currentTarget,o=t.relatedTarget;return!o||!ot(n,o)}function gr(t,e,n,o){const r=(i=>{const l=requestAnimationFrame(i);return()=>cancelAnimationFrame(l)})(()=>{t.removeEventListener(e,a,!0),n()}),a=()=>{r(),n()};return t.addEventListener(e,a,{once:!0,capture:!0}),r}function _t(t,e,n,o=window){const s=[];try{o.document.addEventListener(t,e,n);for(const a of Array.from(o.frames))s.push(_t(t,e,n,a))}catch{}return()=>{try{o.document.removeEventListener(t,e,n)}catch{}for(const a of s)a()}}var Ih=B({},$f),tb=Ih.useId;Ih.useDeferredValue;var nb=Ih.useInsertionEffect,_e=Kr?b.useLayoutEffect:b.useEffect;function Ok(t){const[e]=b.useState(t);return e}function Bk(t){const e=b.useRef(t);return _e(()=>{e.current=t}),e}function ne(t){const e=b.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return nb?nb(()=>{e.current=t}):e.current=t,b.useCallback((...n)=>{var o;return(o=e.current)==null?void 0:o.call(e,...n)},[])}function GR(t){const[e,n]=b.useState(null);return _e(()=>{if(e==null||!t)return;let o=null;return t(s=>(o=s,e)),()=>{t(o)}},[e,t]),[e,n]}function Xe(...t){return b.useMemo(()=>{if(t.some(Boolean))return e=>{for(const n of t)ef(n,e)}},t)}function Qn(t){if(tb){const o=tb();return t||o}const[e,n]=b.useState(t);return _e(()=>{if(t||e)return;const o=Math.random().toString(36).slice(2,8);n(`id-${o}`)},[t,e]),t||e}function Sh(t,e){const n=r=>{if(typeof r=="string")return r},[o,s]=b.useState(()=>n(e));return _e(()=>{const r=t&&"current"in t?t.current:t;s(r?.tagName.toLowerCase()||n(e))},[t,e]),o}function ZR(t,e,n){const o=Ok(n),[s,r]=b.useState(o);return b.useEffect(()=>{const a=t&&"current"in t?t.current:t;if(!a)return;const i=()=>{const c=a.getAttribute(e);r(c??o)},l=new MutationObserver(i);return l.observe(a,{attributeFilter:[e]}),i(),()=>l.disconnect()},[t,e,o]),s}function Gr(t,e){const n=b.useRef(!1);b.useEffect(()=>{if(n.current)return t();n.current=!0},e),b.useEffect(()=>()=>{n.current=!1},[])}function JR(t,e){const n=b.useRef(!1);_e(()=>{if(n.current)return t();n.current=!0},e),_e(()=>()=>{n.current=!1},[])}function Ah(){return b.useReducer(()=>[],[])}function He(t){return ne(typeof t=="function"?t:()=>t)}function lt(t,e,n=[]){const o=b.useCallback(s=>(t.wrapElement&&(s=t.wrapElement(s)),e(s)),[...n,t.wrapElement]);return J(B({},t),{wrapElement:o})}function Mh(t=!1,e){const[n,o]=b.useState(null);return{portalRef:Xe(o,e),portalNode:n,domReady:!t||n}}function Lk(t,e,n){const o=t.onLoadedMetadataCapture,s=b.useMemo(()=>Object.assign(()=>{},J(B({},o),{[e]:n})),[o,e,n]);return[o?.[e],{onLoadedMetadataCapture:s}]}var ob=!1;function Th(){return b.useEffect(()=>{ob||(_t("mousemove",XR,!0),_t("mousedown",Zi,!0),_t("mouseup",Zi,!0),_t("keydown",Zi,!0),_t("scroll",Zi,!0),ob=!0)},[]),ne(()=>Nh)}var Nh=!1,sb=0,rb=0;function YR(t){const e=t.movementX||t.screenX-sb,n=t.movementY||t.screenY-rb;return sb=t.screenX,rb=t.screenY,e||n||!1}function XR(t){YR(t)&&(Nh=!0)}function Zi(){Nh=!1}function ie(t){const e=b.forwardRef((n,o)=>t(J(B({},n),{ref:o})));return e.displayName=t.displayName||t.name,e}function Zr(t,e){return b.memo(t,e)}function de(t,e){const n=e,{wrapElement:o,render:s}=n,r=ce(n,["wrapElement","render"]),a=Xe(e.ref,LR(s));let i;if(b.isValidElement(s)){const l=J(B({},s.props),{ref:a});i=b.cloneElement(s,PR(r,l))}else s?i=s(r):i=f.jsx(t,B({},r));return o?o(i):i}function fe(t){const e=(n={})=>t(n);return e.displayName=t.name,e}function Nn(t=[],e=[]){const n=b.createContext(void 0),o=b.createContext(void 0),s=()=>b.useContext(n),r=(c=!1)=>{const u=b.useContext(o),d=s();return c?u:u||d},a=()=>{const c=b.useContext(o),u=s();if(!(c&&c===u))return u},i=c=>t.reduceRight((u,d)=>f.jsx(d,J(B({},c),{children:u})),f.jsx(n.Provider,B({},c)));return{context:n,scopedContext:o,useContext:s,useScopedContext:r,useProviderContext:a,ContextProvider:i,ScopedContextProvider:c=>f.jsx(i,J(B({},c),{children:e.reduceRight((u,d)=>f.jsx(d,J(B({},c),{children:u})),f.jsx(o.Provider,B({},c)))}))}}var ji=Nn(),QR=ji.useContext;ji.useScopedContext;ji.useProviderContext;var eO=ji.ContextProvider,tO=ji.ScopedContextProvider,mu=Nn([eO],[tO]),Rh=mu.useContext,nO=mu.useProviderContext,Jr=mu.ContextProvider,ki=mu.ScopedContextProvider,oO=b.createContext(void 0),sO=b.createContext(void 0),rO={id:null};function aO(t,e,n=!1){const o=t.findIndex(s=>s.id===e);return[...t.slice(o+1),...n?[rO]:[],...t.slice(0,o)]}function iO(t,e){return t.find(n=>!n.disabled)}function Po(t,e){return e&&t.item(e)||null}function lO(t){const e=[];for(const n of t){const o=e.find(s=>
292{var r;return((r=s[0])==null?void 0:r.rowId)===n.rowId});o?o.push(n):e.push([n])}return e}function cO(t,e=!1){if(Xn(t))t.setSelectionRange(e?t.value.length:0,t.value.length);else if(t.isContentEditable){const n=$e(t).getSelection();n?.selectAllChildren(t),e&&n?.collapseToEnd()}}var of=Symbol("FOCUS_SILENTLY");function uO(t){t[of]=!0,t.focus({preventScroll:!0})}function dO(t){const e=t[of];return delete t[of],e}function xa(t,e,n){return!(!e||e===n||!t.item(e.id))}var pO="div",Pk=fe(function(e){var n=e,{store:o,shouldRegisterItem:s=!0,getItem:r=Fk,element:a}=n,i=ce(n,["store","shouldRegisterItem","getItem","element"]);const l=QR();o=o||l;const c=Qn(i.id),u=b.useRef(a);return b.useEffect(()=>{const d=u.current;if(!c||!d||!s)return;const p=r({id:c,element:d});return o?.renderItem(p)},[c,s,r,o]),i=J(B({},i),{ref:Xe(u,i.ref)}),Tn(i)});ie(function(e){const n=Pk(e);return de(pO,n)});var zk=b.createContext(!0),hu="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function fO(t){return Number.parseInt(t.getAttribute("tabindex")||"0",10)<0}function Dn(t){return!(!t.matches(hu)||!Ik(t)||t.closest("[inert]"))}function Wa(t){if(!Dn(t)||fO(t))return!1;if(!("form"in t)||!t.form||t.checked||t.type!=="radio")return!0;const e=t.form.elements.namedItem(t.name);if(!e||!("length"in e))return!0;const n=_o(t);return!n||n===t||!("form"in n)||n.form!==t.form||n.name!==t.name}function Oh(t,e){const n=Array.from(t.querySelectorAll(hu));e&&n.unshift(t);const o=n.filter(Dn);return o.forEach((s,r)=>{if(Dh(s)&&s.contentDocument){const a=s.contentDocument.body;o.splice(r,1,...Oh(a))}}),o}function gu(t,e,n){const o=Array.from(t.querySelectorAll(hu)),s=o.filter(Wa);return e&&Wa(t)&&s.unshift(t),s.forEach((r,a)=>{if(Dh(r)&&r.contentDocument){const i=r.contentDocument.body,l=gu(i,!1,n);s.splice(a,1,...l)}}),!s.length&&n?o:s}function mO(t,e,n){const[o]=gu(t,e,n);return o||null}function hO(t,e,n,o){const s=_o(t),r=Oh(t,e),a=r.indexOf(s),i=r.slice(a+1);return i.find(Wa)||(n?r.find(Wa):null)||(o?i[0]:null)||null}function Pd(t,e){return hO(document.body,!1,t,e)}function gO(t,e,n,o){const s=_o(t),r=Oh(t,e).reverse(),a=r.indexOf(s);return r.slice(a+1).find(Wa)||null||null||null}function ab(t,e){return gO(document.body,!1)}function bO(t){for(;t&&!Dn(t);)t=t.closest(hu);return t||null}function $s(t){const e=_o(t);if(!e)return!1;if(e===t)return!0;const n=e.getAttribute("aria-activedescendant");return n?n===t.id:!1}function Xo(t){const e=_o(t);if(!e)return!1;if(ot(t,e))return!0;const n=e.getAttribute("aria-activedescendant");return!n||!("id"in t)?!1:n===t.id?!0:!!t.querySelector(`#${CSS.escape(n)}`)}function $k(t){!Xo(t)&&Dn(t)&&t.focus()}function vO(t){var e;const n=(e=t.getAttribute("tabindex"))!=null?e:"";t.setAttribute("data-tabindex",n),t.setAttribute("tabindex","-1")}function jO(t,e){const n=gu(t,e);for(const o of n)vO(o)}function kO(t){const e=t.querySelectorAll("[data-tabindex]"),n=o=>{const s=o.getAttribute("data-tabindex");o.removeAttribute("data-tabindex"),s?o.setAttribute("tabindex",s):o.removeAttribute("tabindex")};t.hasAttribute("data-tabindex")&&n(t);for(const o of e)n(o)}function yO(t,e){"scrollIntoView"in t?(t.focus({preventScroll:!0}),t.scrollIntoView(ge({block:"nearest",inline:"nearest"},e))):t.focus()}var wO="div",ib=fu(),_O=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],Hk=Symbol("safariFocusAncestor");function xO(t){return t?!!t[Hk]:!1}function lb(t,e){t&&(t[Hk]=e)}function CO(t){const{tagName:e,readOnly:n,type:o}=t;return e==="TEXTAREA"&&!n||e==="SELECT"&&!n?!0:e==="INPUT"&&!n?_O.includes(o):!!(t.isContentEditable||t.getAttribute("role")==="combobox"&&t.dataset.name)}function DO(t){return"labels"in t?t.labels:null}function cb(t){return t.tagName.toLowerCase()==="input"&&t.type?t.type==="radio"||t.type==="checkbox":!1}function FO(t){return t?t==="button"||t==="summary"||t==="input"||t==="select"||t==="textarea"||t==="a":!0}function EO(t){return t?t==="button"||t==="input"||t==="select"||t==="textarea":!0}function IO(t,e,n,o,s){return t?e?n&&!o?-1:void 0:n?s:s||0:s}function zd(t,e){return ne(n=>{t?.(n),!n.defaultPrevented&&e&&(n.stopPropagation(),n.preventDefault())})}var ub=!1,Bh=!0;function SO(t){const e=t.target;e&&"hasAttribute"in e&&(e.hasAttribute("data-focus-visible")||(Bh=!1))}function AO(t){t.metaKey||t.ctrlKey||t.altKey||(Bh=!0)}var yi=fe(function(e){var n=e,{focusable:o=!0,accessibleWhenDisabled:s,autoFocus:r,onFocusVisible:a}=n,i=ce(n,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const l=b.useRef(null);b.useEffect(()=>{o&&(ub||(_t("mousedown",SO,!0),_t("keydown",AO,!0),ub=!0))},[o]),ib&&b.useEffect(()=>{if(!o)return;const A=l.current;if(!A||!cb(A))return;const T=DO(A);if(!T)return;const O=()=>queueMicrotask(()=>
292A.focus());for(const N of T)N.addEventListener("mouseup",O);return()=>{for(const N of T)N.removeEventListener("mouseup",O)}},[o]);const c=o&&Wr(i),u=!!c&&!s,[d,p]=b.useState(!1);b.useEffect(()=>{o&&u&&d&&p(!1)},[o,u,d]),b.useEffect(()=>{if(!o||!d)return;const A=l.current;if(!A||typeof IntersectionObserver>"u")return;const T=new IntersectionObserver(()=>{Dn(A)||p(!1)});return T.observe(A),()=>T.disconnect()},[o,d]);const m=zd(i.onKeyPressCapture,c),h=zd(i.onMouseDownCapture,c),g=zd(i.onClickCapture,c),v=i.onMouseDown,j=ne(A=>{if(v?.(A),A.defaultPrevented||!o)return;const T=A.currentTarget;if(!ib||Tk(A)||!is(T)&&!cb(T))return;let O=!1;const N=()=>{O=!0},$={capture:!0,once:!0};T.addEventListener("focusin",N,$);const V=bO(T.parentElement);lb(V,!0),gr(T,"mouseup",()=>{T.removeEventListener("focusin",N,!0),lb(V,!1),!O&&$k(T)})}),k=(A,T)=>{if(T&&(A.currentTarget=T),!o)return;const O=A.currentTarget;O&&$s(O)&&(a?.(A),!A.defaultPrevented&&(O.dataset.focusVisible="true",p(!0)))},y=i.onKeyDownCapture,w=ne(A=>{if(y?.(A),A.defaultPrevented||!o||d||A.metaKey||A.altKey||A.ctrlKey||!en(A))return;const T=A.currentTarget;gr(T,"focusout",()=>k(A,T))}),C=i.onFocusCapture,x=ne(A=>{if(C?.(A),A.defaultPrevented||!o)return;if(!en(A)){p(!1);return}const T=A.currentTarget,O=()=>k(A,T);Bh||CO(A.target)?gr(A.target,"focusout",O):p(!1)}),_=i.onBlur,F=ne(A=>{_?.(A),o&&ks(A)&&(A.currentTarget.removeAttribute("data-focus-visible"),p(!1))}),D=b.useContext(zk),M=ne(A=>{o&&r&&A&&D&&queueMicrotask(()=>{$s(A)||Dn(A)&&A.focus()})}),R=Sh(l),P=o&&FO(R),E=o&&EO(R),S=i.style,I=b.useMemo(()=>u?B({pointerEvents:"none"},S):S,[u,S]);return i=J(B({"data-focus-visible":o&&d||void 0,"data-autofocus":r||void 0,"aria-disabled":c||void 0},i),{ref:Xe(l,M,i.ref),style:I,tabIndex:IO(o,u,P,E,i.tabIndex),disabled:E&&u?!0:void 0,contentEditable:c?void 0:i.contentEditable,onKeyPressCapture:m,onClickCapture:g,onMouseDownCapture:h,onMouseDown:j,onKeyDownCapture:w,onFocusCapture:x,onBlur:F}),Tn(i)});ie(function(e){const n=yi(e);return de(wO,n)});var MO="button";function db(t){if(!t.isTrusted)return!1;const e=t.currentTarget;return t.key==="Enter"?is(e)||e.tagName==="SUMMARY"||e.tagName==="A":t.key===" "?is(e)||e.tagName==="SUMMARY"||e.tagName==="INPUT"||e.tagName==="SELECT":!1}var TO=Symbol("command"),Lh=fe(function(e){var n=e,{clickOnEnter:o=!0,clickOnSpace:s=!0}=n,r=ce(n,["clickOnEnter","clickOnSpace"]);const a=b.useRef(null),[i,l]=b.useState(!1);b.useEffect(()=>{a.current&&l(is(a.current))},[]);const[c,u]=b.useState(!1),d=b.useRef(!1),p=Wr(r),[m,h]=Lk(r,TO,!0),g=r.onKeyDown,v=ne(y=>{g?.(y);const w=y.currentTarget;if(y.defaultPrevented||m||p||!en(y)||Xn(w)||w.isContentEditable)return;const C=o&&y.key==="Enter",x=s&&y.key===" ",_=y.key==="Enter"&&!o,F=y.key===" "&&!s;if(_||F){y.preventDefault();return}if(C||x){const D=db(y);if(C){if(!D){y.preventDefault();const M=y,{view:R}=M,P=ce(M,["view"]),E=()=>eb(w,P);UR()?gr(w,"keyup",E):queueMicrotask(E)}}else x&&(d.current=!0,D||(y.preventDefault(),u(!0)))}}),j=r.onKeyUp,k=ne(y=>{if(j?.(y),y.defaultPrevented||m||p||y.metaKey)return;const w=s&&y.key===" ";if(d.current&&w&&(d.current=!1,!db(y))){y.preventDefault(),u(!1);const C=y.currentTarget,x=y,{view:_}=x,F=ce(x,["view"]);queueMicrotask(()=>eb(C,F))}});return r=J(B(B({"data-active":c||void 0,type:i?"button":void 0},h),r),{ref:Xe(a,r.ref),onKeyDown:v,onKeyUp:k}),r=yi(r),r});ie(function(e){const n=Lh(e);return de(MO,n)});function Xs(t,e){const n=t.__unstableInternals;return Ye(n,"Invalid store"),n[e]}function In(t,...e){let n=t,o=n,s=Symbol(),r=_a;const a=new Set,i=new Set,l=new Set,c=new Set,u=new Set,d=new WeakMap,p=new WeakMap,m=F=>(l.add(F),()=>l.delete(F)),h=()=>{const F=a.size,D=Symbol();a.add(D);const M=()=>{a.delete(D),!a.size&&r()};if(F)return M;const R=OR(n).map(S=>Jt(...e.map(I=>{var A;const T=(A=I?.getState)==null?void 0:A.call(I);if(T&&ko(T,S))return Et(I,[S],O=>{x(S,O[S],!0)})}))),P=[];for(const S of l)P.push(S());const E=e.map(Ph);return r=Jt(...R,...P,...E),M},g=(F,D,M=c)=>(M.add(D),p.set(D,F),()=>{var R;(R=d.get(D))==null||R(),d.delete(D),p.delete(D),M.delete(D)}),v=(F,D)=>g(F,D),j=(F,D)=>(d.set(D,D(n,n)),g(F,D)),k=(F,D)=>(d.set(D,D(n,o)),g(F,D,u)),y=F=>In(RR(n,F),_),w=F=>In(NR(n,F),_),C=()=>n,x=(F,D,M=!1)=>{var R;if(!ko(n,F))return;const P=Ck(D,n[F]);if(P===n[F])return;if(!M)for(const A of e)(R=A?.setState)==null||R.call(A,F,P);const E=n;n=Ge(ge({},n),{[F]:P});const S=Symbol();s=S,i.add(F);const I=(A,T,O)=>{var N;const $=p.get(A),V=K=>O?O.has(K):K===F;(!$||$.some(V))&&((N=d.get(A))==null||N(),d.set(A,A(n,T)))};for(const A of c)I(A,E);queueMicrotask(()=>
292{if(s!==S)return;const A=n;for(const T of u)I(T,o,i);o=A,i.clear()})},_={getState:C,setState:x,__unstableInternals:{setup:m,init:h,subscribe:v,sync:j,batch:k,pick:y,omit:w}};return _}function Nt(t,...e){if(t)return Xs(t,"setup")(...e)}function Ph(t,...e){if(t)return Xs(t,"init")(...e)}function zh(t,...e){if(t)return Xs(t,"subscribe")(...e)}function Et(t,...e){if(t)return Xs(t,"sync")(...e)}function yc(t,...e){if(t)return Xs(t,"batch")(...e)}function $h(t,...e){if(t)return Xs(t,"omit")(...e)}function Vk(t,...e){if(t)return Xs(t,"pick")(...e)}function bu(...t){var e;const n={};for(const s of t){const r=(e=s?.getState)==null?void 0:e.call(s);r&&Object.assign(n,r)}const o=In(n,...t);return Object.assign({},...t,o)}var{useSyncExternalStore:Uk}=S_,qk=()=>()=>{};function Ze(t,e=Fk){const n=b.useCallback(s=>t?zh(t,null,s):qk(),[t]),o=()=>{const s=typeof e=="string"?e:null,r=typeof e=="function"?e:null,a=t?.getState();if(r)return r(a);if(a&&s&&ko(a,s))return a[s]};return Uk(n,o,o)}function Wk(t,e){const n=b.useRef({}),o=b.useCallback(r=>t?zh(t,null,r):qk(),[t]),s=()=>{const r=t?.getState();let a=!1;const i=n.current;for(const l in e){const c=e[l];if(typeof c=="function"){const u=c(r);u!==i[l]&&(i[l]=u,a=!0)}if(typeof c=="string"){if(!r||!ko(r,c))continue;const u=r[c];u!==i[l]&&(i[l]=u,a=!0)}}return a&&(n.current=B({},i)),n.current};return Uk(o,s,s)}function et(t,e,n,o){const s=ko(e,n)?e[n]:void 0,r=o?e[o]:void 0,a=Bk({value:s,setValue:r});_e(()=>Et(t,[n],(i,l)=>{const{value:c,setValue:u}=a.current;u&&i[n]!==l[n]&&i[n]!==c&&u(i[n])}),[t,n]),_e(()=>{if(s!==void 0)return t.setState(n,s),yc(t,[n],()=>{s!==void 0&&t.setState(n,s)})})}function vu(t,e){const[n,o]=b.useState(()=>t(e));_e(()=>Ph(n),[n]);const s=b.useCallback(i=>Ze(n,i),[n]),r=b.useMemo(()=>J(B({},n),{useState:s}),[n,s]),a=ne(()=>{o(i=>t(B(B({},e),i.getState())))});return[r,a]}var NO="button";function RO(t){return tf(t)?!0:t.tagName==="INPUT"&&!is(t)}function OO(t,e=!1){const n=t.clientHeight,{top:o}=t.getBoundingClientRect(),s=Math.max(n*.875,n-40)*1.5,r=e?n-s+o:s+o;return t.tagName==="HTML"?r+t.scrollTop:r}function BO(t,e=!1){const{top:n}=t.getBoundingClientRect();return e?n+t.clientHeight:n}function pb(t,e,n,o=!1){var s;if(!e||!n)return;const{renderedItems:r}=e.getState(),a=Fh(t);if(!a)return;const i=OO(a,o);let l,c;for(let u=0;u<r.length;u+=1){const d=l;if(l=n(u),!l)break;if(l===d)continue;const p=(s=Po(e,l))==null?void 0:s.element;if(!p)continue;const h=BO(p,o)-i,g=Math.abs(h);if(o&&h<=0||!o&&h>=0){c!==void 0&&c<g&&(l=d);break}c=g}return l}function LO(t,e){return en(t)?!1:xa(e,t.target)}var ju=fe(function(e){var n=e,{store:o,rowId:s,preventScrollOnKeyDown:r=!1,moveOnKeyPress:a=!0,tabbable:i=!1,getItem:l,"aria-setsize":c,"aria-posinset":u}=n,d=ce(n,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable","getItem","aria-setsize","aria-posinset"]);const p=Rh();o=o||p;const m=Qn(d.id),h=b.useRef(null),g=b.useContext(sO),j=Wr(d)&&!d.accessibleWhenDisabled,{rowId:k,baseElement:y,isActiveItem:w,ariaSetSize:C,ariaPosInSet:x,isTabbable:_}=Wk(o,{rowId(N){if(s)return s;if(N&&g?.baseElement&&g.baseElement===N.baseElement)return g.id},baseElement(N){return N?.baseElement||void 0},isActiveItem(N){return!!N&&N.activeId===m},ariaSetSize(N){if(c!=null)return c;if(N&&g?.ariaSetSize&&g.baseElement===N.baseElement)return g.ariaSetSize},ariaPosInSet(N){if(u!=null)return u;if(!N||!g?.ariaPosInSet||g.baseElement!==N.baseElement)return;const $=N.renderedItems.filter(V=>V.rowId===k);return g.ariaPosInSet+$.findIndex(V=>V.id===m)},isTabbable(N){if(!N?.renderedItems.length)return!0;if(N.virtualFocus)return!1;if(i)return!0;if(N.activeId===null)return!1;const $=o?.item(N.activeId);return $?.disabled||!$?.element?!0:N.activeId===m}}),F=b.useCallback(N=>{var $;const V=J(B({},N),{id:m||N.id,rowId:k,disabled:!!j,children:($=N.element)==null?void 0:$.textContent});return l?l(V):V},[m,k,j,l]),D=d.onFocus,M=b.useRef(!1),R=ne(N=>
292{if(D?.(N),N.defaultPrevented||Tk(N)||!m||!o||LO(N,o))return;const{virtualFocus:$,baseElement:V}=o.getState();if(o.setActiveId(m),tf(N.currentTarget)&&cO(N.currentTarget),!$||!en(N)||RO(N.currentTarget)||!V?.isConnected)return;fu()&&N.currentTarget.hasAttribute("data-autofocus")&&N.currentTarget.scrollIntoView({block:"nearest",inline:"nearest"}),M.current=!0,N.relatedTarget===V||xa(o,N.relatedTarget)?uO(V):V.focus()}),P=d.onBlurCapture,E=ne(N=>{if(P?.(N),N.defaultPrevented)return;const $=o?.getState();$?.virtualFocus&&M.current&&(M.current=!1,N.preventDefault(),N.stopPropagation())}),S=d.onKeyDown,I=He(r),A=He(a),T=ne(N=>{if(S?.(N),N.defaultPrevented||!en(N)||!o)return;const{currentTarget:$}=N,V=o.getState(),K=o.item(m),Z=!!K?.rowId,se=V.orientation!=="horizontal",ee=V.orientation!=="vertical",be=()=>!!(Z||ee||!V.baseElement||!Xn(V.baseElement)),L={ArrowUp:(Z||se)&&o.up,ArrowRight:(Z||ee)&&o.next,ArrowDown:(Z||se)&&o.down,ArrowLeft:(Z||ee)&&o.previous,Home:()=>{if(be())return!Z||N.ctrlKey?o?.first():o?.previous(-1)},End:()=>{if(be())return!Z||N.ctrlKey?o?.last():o?.next(-1)},PageUp:()=>pb($,o,o?.up,!0),PageDown:()=>pb($,o,o?.down)}[N.key];if(L){if(tf($)){const te=nf($),Fe=ee&&N.key==="ArrowLeft",Me=ee&&N.key==="ArrowRight",Te=se&&N.key==="ArrowUp",Ct=se&&N.key==="ArrowDown";if(Me||Ct){const{length:ve}=HR($);if(te.end!==ve)return}else if((Fe||Te)&&te.start!==0)return}const G=L();if(I(N)||G!==void 0){if(!A(N))return;N.preventDefault(),o.move(G)}}}),O=b.useMemo(()=>({id:m,baseElement:y}),[m,y]);return d=lt(d,N=>f.jsx(oO.Provider,{value:O,children:N}),[O]),d=J(B({id:m,"data-active-item":w||void 0},d),{ref:Xe(h,d.ref),tabIndex:_?d.tabIndex:-1,onFocus:R,onBlurCapture:E,onKeyDown:T}),d=Lh(d),d=Pk(J(B({store:o},d),{getItem:F,shouldRegisterItem:m?d.shouldRegisterItem:!1})),Tn(J(B({},d),{"aria-setsize":C,"aria-posinset":x}))});Zr(ie(function(e){const n=ju(e);return de(NO,n)}));function Kk(t){const e=[];for(const n of t)e.push(...n);return e}function sf(t){return t.slice().reverse()}var PO="div";function zO(t){return t.some(e=>!!e.rowId)}function $O(t){const e=t.target;return e&&!Xn(e)?!1:t.key.length===1&&!t.ctrlKey&&!t.metaKey}function HO(t){return t.key==="Shift"||t.key==="Control"||t.key==="Alt"||t.key==="Meta"}function fb(t,e,n){return ne(o=>{var s;if(e?.(o),o.defaultPrevented||o.isPropagationStopped()||!en(o)||HO(o)||$O(o))return;const r=t.getState(),a=(s=Po(t,r.activeId))==null?void 0:s.element;if(!a)return;const i=o,{view:l}=i,c=ce(i,["view"]),u=n?.current;a!==u&&a.focus(),KR(a,o.type,c)||o.preventDefault(),o.currentTarget.contains(a)&&o.stopPropagation()})}function VO(t){return iO(Kk(sf(lO(t))))}function UO(t){const[e,n]=b.useState(!1),o=b.useCallback(()=>n(!0),[]),s=t.useState(r=>Po(t,r.activeId));return b.useEffect(()=>{const r=s?.element;e&&r&&(n(!1),r.focus({preventScroll:!0}))},[s,e]),o}var Hh=fe(function(e){var n=e,{store:o,composite:s=!0,focusOnMove:r=s,moveOnKeyPress:a=!0}=n,i=ce(n,["store","composite","focusOnMove","moveOnKeyPress"]);const l=nO();o=o||l,Ye(o,!1);const c=b.useRef(null),u=b.useRef(null),d=UO(o),p=o.useState("moves"),[,m]=GR(s?o.setBaseElement:null);b.useEffect(()=>{var E;if(!o||!p||!s||!r)return;const{activeId:S}=o.getState(),I=(E=Po(o,S))==null?void 0:E.element;I&&yO(I)},[o,p,s,r]),_e(()=>{if(!o||!p||!s)return;const{baseElement:E,activeId:S}=o.getState();if(!(S===null)||!E)return;const A=u.current;u.current=null,A&&rr(A,{relatedTarget:E}),$s(E)||E.focus()},[o,p,s]);const h=o.useState("activeId"),g=o.useState("virtualFocus");_e(()=>{var E;if(!o||!s||!g)return;const S=u.current;if(u.current=null,!S)return;const A=((E=Po(o,h))==null?void 0:E.element)||_o(S);A!==S&&rr(S,{relatedTarget:A})},[o,h,g,s]);const v=fb(o,i.onKeyDownCapture,u),j=fb(o,i.onKeyUpCapture,u),k=i.onFocusCapture,y=ne(E=>{if(k?.(E),E.defaultPrevented||!o)return;const{virtualFocus:S}=o.getState();if(!S)return;const I=E.relatedTarget,A=dO(E.currentTarget);en(E)&&A&&(E.stopPropagation(),u.current=I)}),w=i.onFocus,C=ne(E=>{if(w?.(E),E.defaultPrevented||!s||!o)return;const{relatedTarget:S}=E,{virtualFocus:I}=o.getState();I?en(E)&&!xa(o,S)&&queueMicrotask(d):en(E)&&o.setActiveId(null)}),x=i.onBlurCapture,_=ne(E=>{var S;if(x?.(E),E.defaultPrevented||!o)return;const{virtualFocus:I,activeId:A}=o.getState();if(!I)return;const T=(S=Po(o,A))==null?void 0:S.element,O=E.relatedTarget,N=xa(o,O),$=u.current;u.current=null,en(E)&&N?(O===T?$&&$!==O&&rr($,E):T?rr(T,E):$&&rr($,E),E.stopPropagation()):!xa(o,E.target)&&T&&rr(T,E)}),F=i.onKeyDown,D=He(a),M=ne(E=>{var S;if(F?.(E),E.nativeEvent.isComposing||E.defaultPrevented||!o||!en(E))return;const{orientation:I,renderedItems:A,activeId:T}=o.getState(),O=Po(o,T);if((S=O?.element)!=null&&S.isConnected)return;const N=I!=="horizontal",$=I!=="vertical",V=zO(A);
292if((E.key==="ArrowLeft"||E.key==="ArrowRight"||E.key==="Home"||E.key==="End")&&Xn(E.currentTarget))return;const ee={ArrowUp:(V||N)&&(()=>{if(V){const be=VO(A);return be?.id}return o?.last()}),ArrowRight:(V||$)&&o.first,ArrowDown:(V||N)&&o.first,ArrowLeft:(V||$)&&o.last,Home:o.first,End:o.last,PageUp:o.first,PageDown:o.last}[E.key];if(ee){const be=ee();if(be!==void 0){if(!D(E))return;E.preventDefault(),o.move(be)}}});i=lt(i,E=>f.jsx(Jr,{value:o,children:E}),[o]);const R=o.useState(E=>{var S;if(o&&s&&E.virtualFocus)return(S=Po(o,E.activeId))==null?void 0:S.id});i=J(B({"aria-activedescendant":R},i),{ref:Xe(c,m,i.ref),onKeyDownCapture:v,onKeyUpCapture:j,onFocusCapture:y,onFocus:C,onBlurCapture:_,onKeyDown:M});const P=o.useState(E=>s&&(E.virtualFocus||E.activeId===null));return i=yi(B({focusable:P},i)),i});ie(function(e){const n=Hh(e);return de(PO,n)});var Vh=Nn(),Uh=Vh.useProviderContext,qO=Vh.ContextProvider,WO=Vh.ScopedContextProvider,qh=Nn([qO],[WO]),ku=qh.useProviderContext,KO=qh.ContextProvider,Wh=qh.ScopedContextProvider,GO=b.createContext(void 0),ZO=b.createContext(void 0),JO="div";function mb(t,e){const n=setTimeout(e,t);return()=>clearTimeout(n)}function YO(t){let e=requestAnimationFrame(()=>{e=requestAnimationFrame(t)});return()=>cancelAnimationFrame(e)}function hb(...t){return t.join(", ").split(", ").reduce((e,n)=>{const o=n.endsWith("ms")?1:1e3,s=Number.parseFloat(n||"0s")*o;return s>e?s:e},0)}function yu(t,e,n){return!n&&e!==!1&&(!t||!!e)}var Kh=fe(function(e){var n=e,{store:o,alwaysVisible:s}=n,r=ce(n,["store","alwaysVisible"]);const a=Uh();o=o||a,Ye(o,!1);const i=b.useRef(null),l=Qn(r.id),[c,u]=b.useState(null),d=o.useState("open"),p=o.useState("mounted"),m=o.useState("animated"),h=o.useState("contentElement"),g=Ze(o.disclosure,"contentElement");_e(()=>{i.current&&o?.setContentElement(i.current)},[o]),_e(()=>{let y;return o?.setState("animated",w=>(y=w,!0)),()=>{y!==void 0&&o?.setState("animated",y)}},[o]),_e(()=>{if(m){if(!h?.isConnected){u(null);return}return YO(()=>{u(d?"enter":p?"leave":null)})}},[m,h,d,p]),_e(()=>{if(!o||!m||!c||!h)return;const y=()=>o?.setState("animating",!1),w=()=>Ns.flushSync(y);if(c==="leave"&&d||c==="enter"&&!d)return;if(typeof m=="number")return mb(m,w);const{transitionDuration:C,animationDuration:x,transitionDelay:_,animationDelay:F}=getComputedStyle(h),{transitionDuration:D="0",animationDuration:M="0",transitionDelay:R="0",animationDelay:P="0"}=g?getComputedStyle(g):{},E=hb(_,F,R,P),S=hb(C,x,D,M),I=E+S;if(!I){c==="enter"&&o.setState("animated",!1),y();return}const A=1e3/60,T=Math.max(I-A,0);return mb(T,w)},[o,m,h,g,d,c]),r=lt(r,y=>f.jsx(Wh,{value:o,children:y}),[o]);const v=yu(p,r.hidden,s),j=r.style,k=b.useMemo(()=>v?J(B({},j),{display:"none"}):j,[v,j]);return r=J(B({id:l,"data-open":d||void 0,"data-enter":c==="enter"||void 0,"data-leave":c==="leave"||void 0,hidden:v},r),{ref:Xe(l?o.setContentElement:null,i,r.ref),style:k}),Tn(r)}),XO=ie(function(e){const n=Kh(e);return de(JO,n)});ie(function(e){var n=e,{unmountOnHide:o}=n,s=ce(n,["unmountOnHide"]);const r=Uh(),a=s.store||r;return Ze(a,l=>!o||l?.mounted)===!1?null:f.jsx(XO,B({},s))});function Gk(t={}){const e=bu(t.store,$h(t.disclosure,["contentElement","disclosureElement"])),n=e?.getState(),o=ae(t.open,n?.open,t.defaultOpen,!1),s=ae(t.animated,n?.animated,!1),r={open:o,animated:s,animating:!!s&&o,mounted:o,contentElement:ae(n?.contentElement,null),disclosureElement:ae(n?.disclosureElement,null)},a=In(r,e);return Nt(a,()=>Et(a,["animated","animating"],i=>{i.animated||a.setState("animating",!1)})),Nt(a,()=>zh(a,["open"],()=>{a.getState().animated&&a.setState("animating",!0)})),Nt(a,()=>Et(a,["open","animating"],i=>{a.setState("mounted",i.open||i.animating)})),Ge(ge({},a),{disclosure:t.disclosure,setOpen:i=>a.setState("open",i),show:()=>a.setState("open",!0),hide:()=>a.setState("open",!1),toggle:()=>a.setState("open",i=>!i),stopAnimation:()=>a.setState("animating",!1),setContentElement:i=>a.setState("contentElement",i),setDisclosureElement:i=>a.setState("disclosureElement",i)})}function Zk(t,e,n){return Gr(e,[n.store,n.disclosure]),et(t,n,"open","setOpen"),et(t,n,"mounted","setMounted"),et(t,n,"animated"),Object.assign(t,{disclosure:n.disclosure})}function QO(t={}){const[e,n]=vu(Gk,t);return Zk(e,n,t)}var wi=Nn([KO],[Wh]),eB=wi.useContext;wi.useScopedContext;var wu=wi.useProviderContext,Jk=wi.ContextProvider,_u=wi.ScopedContextProvider;function tB(t){var e;const n=t.find(r=>!!r.element),o=[...t].reverse().find(r=>!!r.element);let s=(e=n?.element)==null?void 0:e.parentElement;for(;s&&o?.element;){if(o&&s.contains(o.element))return s;s=s.parentElement}return $e(s).body}function nB(t){return t?.__unstablePrivateStore}function oB(t={}){var e;t.store;const n=(e=t.store)==null?void 0:e.getState(),o=ae(t.items,n?.items,t.defaultItems,[]),s=new Map(o.map(p=>[p.id,p])),r={items:o,renderedItems:ae(n?.renderedItems,[])},a=nB(t.store),i=In({items:o,renderedItems:r.renderedItems},a),l=In(r,t.store),c=p=>{const m=Ak(p,h=>h.element);i.setState("renderedItems",m),l.setState("renderedItems",m)};Nt(l,()=>Ph(i)),Nt(i,()=>yc(i,["items"],p=>{l.setState("items",p.items)})),Nt(i,()=>yc(i,["renderedItems"],p=>{let m=!0,h=requestAnimationFrame(()=>{const{renderedItems:k}=l.getState();p.renderedItems!==k&&c(p.renderedItems)});if(typeof IntersectionObserver!="function")return()=>cancelAnimationFrame(h);const g=()=>{if(m){m=!1;return}cancelAnimationFrame(h),h=requestAnimationFrame(()=>c(p.renderedItems))},v=tB(p.renderedItems),j=new IntersectionObserver(g,{root:v});for(const k of p.renderedItems)k.element&&j.observe(k.element);return()=>{cancelAnimationFrame(h),j.disconnect()}}));const u=(p,m,h=!1)=>{let g;return m(j=>{const k=j.findIndex(({id:w})=>w===p.id),y=j.slice();if(k!==-1){g=j[k];const w=ge(ge({},g),p);y[k]=w,s.set(p.id,w)}else y.push(p),s.set(p.id,p);return y}),()=>{m(j=>{if(!g)return h&&s.delete(p.id),j.filter(({id:w}
292)=>w!==p.id);const k=j.findIndex(({id:w})=>w===p.id);if(k===-1)return j;const y=j.slice();return y[k]=g,s.set(p.id,g),y})}},d=p=>u(p,m=>i.setState("items",m),!0);return Ge(ge({},l),{registerItem:d,renderItem:p=>Jt(d(p),u(p,m=>i.setState("renderedItems",m))),item:p=>{if(!p)return null;let m=s.get(p);if(!m){const{items:h}=i.getState();m=h.find(g=>g.id===p),m&&s.set(p,m)}return m||null},__unstablePrivateStore:i})}function sB(t,e,n){return Gr(e,[n.store]),et(t,n,"items","setItems"),t}var rB={id:null};function io(t,e){return t.find(n=>e?!n.disabled&&n.id!==e:!n.disabled)}function aB(t,e){return t.filter(n=>e?!n.disabled&&n.id!==e:!n.disabled)}function gb(t,e){return t.filter(n=>n.rowId===e)}function iB(t,e,n=!1){const o=t.findIndex(s=>s.id===e);return[...t.slice(o+1),...n?[rB]:[],...t.slice(0,o)]}function Yk(t){const e=[];for(const n of t){const o=e.find(s=>{var r;return((r=s[0])==null?void 0:r.rowId)===n.rowId});o?o.push(n):e.push([n])}return e}function Xk(t){let e=0;for(const{length:n}of t)n>e&&(e=n);return e}function lB(t){return{id:"__EMPTY_ITEM__",disabled:!0,rowId:t}}function cB(t,e,n){const o=Xk(t);for(const s of t)for(let r=0;r<o;r+=1){const a=s[r];if(!a||n&&a.disabled){const l=r===0&&n?io(s):s[r-1];s[r]=l&&e!==l.id&&n?l:lB(l?.rowId)}}return t}function uB(t){const e=Yk(t),n=Xk(e),o=[];for(let s=0;s<n;s+=1)for(const r of e){const a=r[s];a&&o.push(Ge(ge({},a),{rowId:a.rowId?`${s}`:void 0}))}return o}function Qk(t={}){var e;const n=(e=t.store)==null?void 0:e.getState(),o=oB(t),s=ae(t.activeId,n?.activeId,t.defaultActiveId),r=Ge(ge({},o.getState()),{id:ae(t.id,n?.id,`id-${Math.random().toString(36).slice(2,8)}`),activeId:s,baseElement:ae(n?.baseElement,null),includesBaseElement:ae(t.includesBaseElement,n?.includesBaseElement,s===null),moves:ae(n?.moves,0),orientation:ae(t.orientation,n?.orientation,"both"),rtl:ae(t.rtl,n?.rtl,!1),virtualFocus:ae(t.virtualFocus,n?.virtualFocus,!1),focusLoop:ae(t.focusLoop,n?.focu
292sLoop,!1),focusWrap:ae(t.focusWrap,n?.focusWrap,!1),focusShift:ae(t.focusShift,n?.focusShift,!1)}),a=In(r,o,t.store);Nt(a,()=>Et(a,["renderedItems","activeId"],l=>{a.setState("activeId",c=>{var u;return c!==void 0?c:(u=io(l.renderedItems))==null?void 0:u.id})}));const i=(l="next",c={})=>{var u,d;const p=a.getState(),{skip:m=0,activeId:h=p.activeId,focusShift:g=p.focusShift,focusLoop:v=p.focusLoop,focusWrap:j=p.focusWrap,includesBaseElement:k=p.includesBaseElement,renderedItems:y=p.renderedItems,rtl:w=p.rtl}=c,C=l==="up"||l==="down",x=l==="next"||l==="down",_=x?w&&!C:!w||C,F=g&&!m;let D=C?Kk(cB(Yk(y),h,F)):y;if(D=_?sf(D):D,D=C?uB(D):D,h==null)return(u=io(D))==null?void 0:u.id;const M=D.find(N=>N.id===h);if(!M)return(d=io(D))==null?void 0:d.id;const R=D.some(N=>N.rowId),P=D.indexOf(M),E=D.slice(P+1),S=gb(E,M.rowId);if(m){const N=aB(S,h),$=N.slice(m)[0]||N[N.length-1];return $?.id}const I=v&&(C?v!=="horizontal":v!=="vertical"),A=R&&j&&(C?j!=="horizontal":j!=="vertical"),T=x?(!R||C)&&I&&k:C?k:!1;if(I){const N=A&&!T?D:gb(D,M.rowId),$=iB(N,h,T),V=io($,h);return V?.id}if(A){const N=io(T?S:E,h);return T?N?.id||null:N?.id}const O=io(S,h);return!O&&T?null:O?.id};return Ge(ge(ge({},o),a),{setBaseElement:l=>a.setState("baseElement",l),setActiveId:l=>a.setState("activeId",l),move:l=>{l!==void 0&&(a.setState("activeId",l),a.setState("moves",c=>c+1))},first:()=>{var l;return(l=io(a.getState().renderedItems))==null?void 0:l.id},last:()=>{var l;return(l=io(sf(a.getState().renderedItems)))==null?void 0:l.id},next:l=>(l!==void 0&&typeof l=="number"&&(l={skip:l}),i("next",l)),previous:l=>(l!==void 0&&typeof l=="number"&&(l={skip:l}),i("previous",l)),down:l=>(l!==void 0&&typeof l=="number"&&(l={skip:l}),i("down",l)),up:l=>(l!==void 0&&typeof l=="number"&&(l={skip:l}),i("up",l))})}function dB(t){const e=Qn(t.id);return B({id:e},t)}function e3(t,e,n){return t=sB(t,e,n),et(t,n,"activeId","setActiveId"),et(t,n,"includesBaseElement"),et(t,n,"virtualFocus"),et(t,n,"orientation"),et(t,n,"rtl"),et(t,n,"focusLoop"),et(t,n,"focusWrap"),et(t,n,"focusShift"),t}var t3=b.createContext(void 0),_i=Nn([Jk,Jr],[_u,ki]),pB=_i.useContext,n3=_i.useScopedContext,xu=_i.useProviderContext,fB=_i.ContextProvider,mB=_i.ScopedContextProvider,hB=b.createContext(void 0),gB=b.createContext(!1),Gh=Nn([Jk],[_u]),Zh=Gh.useProviderContext,bB=Gh.ContextProvider,o3=Gh.ScopedContextProvider;function $d(t){return[t.clientX,t.clientY]}function bb(t,e){const[n,o]=t;let s=!1;const r=e.length;for(let a=r,i=0,l=a-1;i<a;l=i++){const[c,u]=e[i],[d,p]=e[l],[,m]=e[l===0?a-1:l-1]||[0,0],h=(u-p)*(n-c)-(c-d)*(o-u);if(p<u){if(o>=p&&o<u){if(h===0)return!0;h>0&&(o===p?o>m&&(s=!s):s=!s)}}else if(u<p){if(o>u&&o<=p){if(h===0)return!0;h<0&&(o===p?o<m&&(s=!s):s=!s)}}else if(o===u&&(n>=d&&n<=c||n>=c&&n<=d))return!0}return s}function vB(t,e){const{top:n,right:o,bottom:s,left:r}=e,[a,i]=t,l=a<r?"left":a>o?"right":null,c=i<n?"top":i>s?"bottom":null;return[l,c]}function vb(t,e){const n=t.getBoundingClientRect(),{top:o,right:s,bottom:r,left:a}=n,[i,l]=vB(e,n),c=[e];return i?(l!=="top"&&c.push([i==="left"?a:s,o]),c.push([i==="left"?s:a,o]),c.push([i==="left"?s:a,r]),l!=="bottom"&&c.push([i==="left"?a:s,r])):l==="top"?(c.push([a,o]),c.push([a,r]),c.push([s,r]),c.push([s,o])):(c.push([a,r]),c.push([a,o]),c.push([s,o]),c.push([s,r])),c}var jb=b.createContext(null),jB="span",s3=fe(function(e){return e=J(B({},e),{style:B({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)}),e});ie(function(e){const n=s3(e);return de(jB,n)});var kB="span",yB=fe(function(e){return e=J(B({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:B({position:"fixed",top:0,left:0},e.style)}),e=s3(e),e}),Ji=ie(function(e){const n=yB(e);return de(kB,n)}),wB="div";function _B(t){return $e(t).body}function xB(t,e){return e?typeof e=="function"?e(t):e:$e(t).createElement("div")}function CB(t="id"){return`${t?`${t}-`:""}${Math.random().toString(36).slice(2,8)}`}function Eo(t){queueMicrotask(()=>{t?.focus()})}var r3=fe(function(e){var n=e,{preserveTabOrder:o,preserveTabOrderAnchor:s,portalElement:r,portalRef:a,portal:i=!0}=n,l=ce(n,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const c=b.useRef(null),u=Xe(c,l.ref),d=b.useContext(jb),[p,m]=b.useState(null),[h,g]=b.useState(null),v=b.useRef(null),j=b.useRef(null),k=b.useRef(null),y=b.useRef(null);return _e(()=>{const w=c.current;if(!w||!i){m(null);return}const C=xB(w,r);if(!C){m(null);return}const x=C.isConnected;if(x||(d||_B(w)).appendChild(C),C.id||(C.id=w.id?`portal/${w.id}`:CB()),m(C),ef(a,C),!x)return()=>{C.remove(),ef(a,null)}},[i,r,d,a]),_e(()=>{if(!i||!o||!s)return;const C=$e(s).createElement("span");return C.style.position="fixed",s.insertAdjacentElement("afterend",C),g(C),()=>{C.remove(),g(null)}},[i,o,s]),b.useEffect(()=>{if(!p||!o)return;let w=0;const C=x=>{if(!ks(x))return;const _=x.type==="focusin";if(cancelAnimationFrame(w),_)return kO(p);w=requestAnimationFrame(()=>{jO(p,!0)})};return p.addEventListener("focusin",C,!0),p.addEventListener("focusout",C,!0),()=>{cancelAnimationFrame(w),p.removeEventListener("focusin",C,!0),p.removeEventListener("focusout",C,!0)}},[p,o]),l=lt(l,w=>{if(w=f.jsx(jb.Provider,{value:p||d,children:w}),!i)return w;if(!p)return f.jsx("span",{ref:u,id:l.id,style:{position:"fixed"},hidden:!0});w=f.jsxs(f.Fragment,{children:[o&&p&&f.jsx(Ji,{ref:j,"data-focus-trap":l.id,className:"__focus-trap-inner-before",onFocus:x=>{ks(x,p)?Eo(Pd()):Eo(v.current)}}),w,o&&p&&f.jsx(Ji,{ref:k,"data-focus-trap":l.id,className:"__focus-trap-inner-after",onFocus:x=>{ks(x,p)?Eo(ab()):Eo(y.current)}})]}),p&&(w=Ns.createPortal(w,p));let C=f.jsxs(f.Fragment,{children:[o&&p&&f.jsx(Ji,{ref:v,"data-focus-trap":l.id,className:"__focus-trap-outer-before",onFocus:x=>{!(x.relatedTarget===y.current)&&ks(x,p)?Eo(j.current):Eo(ab())}}),o&&f.jsx("span",{"aria-owns":p?.id,style:{position:"fixed"}}),o&&p&&f.jsx(Ji,{ref:y,"data-focus-trap":l.id,className:"__focus-trap-outer-after",onFocus:x=>{if(ks(x,p))Eo(k.current);else{const _=Pd();if(_===j.current){requestAnimationFrame(()=>{var F;return(F=Pd())==null?void 0:F.focus()});return}Eo(_)}}})]});return h&&o&&(C=Ns.createPortal(C,h)),f.jsxs(f.Fragment,{children:[C,w]})},[p,d,i,l.id,o,h]),l=J(B({},l),{ref:u}),l});ie(function(e){const n=r3(e);return de(wB,n)});var kb=b.createContext(0);function DB({level:t,children:e}){const n=b.useContext(kb),o=Math.max(Math.min(t||n+1,6),1);return f.jsx(kb.Provider,{value:o,children:e})}var FB="div",a3=fe(function(e){var n=e,{autoFocusOnShow:o=!0}
292=n,s=ce(n,["autoFocusOnShow"]);return s=lt(s,r=>f.jsx(zk.Provider,{value:o,children:r}),[o]),s});ie(function(e){const n=a3(e);return de(FB,n)});function EB(t,e){const o=$e(t).createElement("button");return o.type="button",o.tabIndex=-1,o.textContent="Dismiss popup",Object.assign(o.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),o.addEventListener("click",e),t.prepend(o),()=>{o.removeEventListener("click",e),o.remove()}}function IB(t){const e=b.useRef();return b.useEffect(()=>{if(!t){e.current=null;return}return _t("mousedown",o=>{e.current=o.target},!0)},[t]),e}var Hd=new WeakMap;function xi(t,e,n){Hd.has(t)||Hd.set(t,new Map);const o=Hd.get(t),s=o.get(e);if(!s)return o.set(e,n()),()=>{var i;(i=o.get(e))==null||i(),o.delete(e)};const r=n(),a=()=>{r(),s(),o.delete(e)};return o.set(e,a),()=>{o.get(e)===a&&(r(),o.set(e,s))}}function Jh(t,e,n){return xi(t,e,()=>{const s=t.getAttribute(e);return t.setAttribute(e,n),()=>{s==null?t.removeAttribute(e):t.setAttribute(e,s)}})}function Hs(t,e,n){return xi(t,e,()=>{const s=e in t,r=t[e];return t[e]=n,()=>{s?t[e]=r:delete t[e]}})}function rf(t,e){return t?xi(t,"style",()=>{const o=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=o}}):()=>{}}function SB(t,e,n){return t?xi(t,e,()=>{const s=t.style.getPropertyValue(e);return t.style.setProperty(e,n),()=>{s?t.style.setProperty(e,s):t.style.removeProperty(e)}}):()=>{}}var AB=["SCRIPT","STYLE"];function af(t){return`__ariakit-dialog-snapshot-${t}`}function MB(t,e){const n=$e(e),o=af(t);if(!n.body[o])return!0;do{if(e===n.body)return!1;if(e[o])return!0;if(!e.parentElement)return!1;e=e.parentElement}while(!0)}function TB(t,e,n){return AB.includes(e.tagName)||!MB(t,e)?!1:!n.some(o=>o&&ot(e,o))}function Yh(t,e,n,o){for(let s of e){if(!s?.isConnected)continue;const r=e.some(l=>!l||l===s?!1:l.contains(s)),a=$e(s),i=s;for(;s.parentElement&&s!==a.body;){if(o?.(s.parentElement,i),!r)for(const l of s.parentElement.children)TB(t,l,e)&&n(l,i);s=s.parentElement}}}function NB(t,e){const{body:n}=$e(e[0]),o=[];return Yh(t,e,r=>{o.push(Hs(r,af(t),!0))}),Jt(Hs(n,af(t),!0),()=>{for(const r of o)r()})}function i3(t,...e){if(!t)return!1;const n=t.getAttribute("data-backdrop");return n==null?!1:n===""||n==="true"||!e.length?!0:e.some(o=>n===o)}function Rr(t="",e=!1){return`__ariakit-dialog-${e?"ancestor":"outside"}${t?`-${t}`:""}`}function RB(t,e=""){return Jt(Hs(t,Rr(),!0),Hs(t,Rr(e),!0))}function l3(t,e=""){return Jt(Hs(t,Rr("",!0),!0),Hs(t,Rr(e,!0),!0))}function Xh(t,e){const n=Rr(e,!0);if(t[n])return!0;const o=Rr(e);do{if(t[o])return!0;if(!t.parentElement)return!1;t=t.parentElement}while(!0)}function yb(t,e){const n=[],o=e.map(r=>r?.id);return Yh(t,e,r=>{i3(r,...o)||n.unshift(RB(r,t))},(r,a)=>{a.hasAttribute("data-dialog")&&a.id!==t||n.unshift(l3(r,t))}),()=>{for(const r of n)r()}}function OB(t){return t.tagName==="HTML"?!0:ot($e(t).body,t)}function BB(t,e){if(!t)return!1;if(ot(t,e))return!0;const n=e.getAttribute("aria-activedescendant");if(n){const o=$e(t).getElementById(n);if(o)return ot(t,o)}return!1}function LB(t,e){if(!("clientY"in t))return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function Vd({store:t,type:e,listener:n,capture:o,domReady:s}){const r=ne(n),a=Ze(t,"open"),i=b.useRef(!1);_e(()=>{if(!a||!s)return;const{contentElement:l}=t.getState();if(!l)return;const c=()=>{i.current=!0};return l.addEventListener("focusin",c,!0),()=>l.removeEventListener("focusin",c,!0)},[t,a,s]),b.useEffect(()=>a?_t(e,c=>{const{contentElement:u,disclosureElement:d}=t.getState(),p=c.target;!u||!p||!OB(p)||ot(u,p)||BB(d,p)||p.hasAttribute("data-focus-trap")||LB(c,u)||i.current&&!Xh(p,u.id)||xO(p)||r(c)},o):void 0,[a,o])}function Ud(t,e){return typeof t=="function"?t(e):!!t}function PB(t,e,n){const o=Ze(t,"open"),s=IB(o),r={store:t,domReady:n,capture:!0};Vd(J(B({},r),{type:"click",listener:a=>{const{contentElement:i}=t.getState(),l=s.current;l&&Ik(l)&&Xh(l,i?.id)&&Ud(e,a)&&t.hide()}})),Vd(J(B({},r),{type:"focusin",listener:a=>{const{contentElement:i}=t.getState();i&&a.target!==$e(i)&&Ud(e,a)&&t.hide()}})),Vd(J(B({},r),{type:"contextmenu",listener:a=>{Ud(e,a)&&t.hide()}}))}var wb=b.createContext({});function zB(t){const e=b.useContext(wb),[n,o]=b.useState([]),s=b.useCallback(i=>{var l;return o(c=>[...c,i]),Jt((l=e.add)==null?void 0:l.call(e,i),()=>{o(c=>c.filter(u=>u!==i))})},[e]);_e(()=>Et(t,["open","contentElement"],i=>{var l;
292if(i.open&&i.contentElement)return(l=e.add)==null?void 0:l.call(e,t)}),[t,e]);const r=b.useMemo(()=>({store:t,add:s}),[t,s]);return{wrapElement:b.useCallback(i=>f.jsx(wb.Provider,{value:r,children:i}),[r]),nestedDialogs:n}}function $B({attribute:t,contentId:e,contentElement:n,enabled:o}){const[s,r]=Ah(),a=b.useCallback(()=>{if(!o||!n)return!1;const{body:i}=$e(n),l=i.getAttribute(t);return!l||l===e},[s,o,n,t,e]);return b.useEffect(()=>{if(!o||!e||!n)return;const{body:i}=$e(n);if(a())return i.setAttribute(t,e),()=>i.removeAttribute(t);const l=new MutationObserver(()=>Ns.flushSync(r));return l.observe(i,{attributeFilter:[t]}),()=>l.disconnect()},[s,o,e,n,a,t]),a}function HB(t){const e=t.getBoundingClientRect().left;return Math.round(e)+t.scrollLeft?"paddingLeft":"paddingRight"}function VB(t,e,n){const o=$B({attribute:"data-dialog-prevent-body-scroll",contentElement:t,contentId:e,enabled:n});b.useEffect(()=>{if(!o()||!t)return;const s=$e(t),r=Ek(t),{documentElement:a,body:i}=s,l=a.style.getPropertyValue("--scrollbar-width"),c=l?Number.parseInt(l,10):r.innerWidth-a.clientWidth,u=()=>SB(a,"--scrollbar-width",`${c}px`),d=HB(a),p=()=>rf(i,{overflow:"hidden",[d]:`${c}px`}),m=()=>{var g,v;const{scrollX:j,scrollY:k,visualViewport:y}=r,w=(g=y?.offsetLeft)!=null?g:0,C=(v=y?.offsetTop)!=null?v:0,x=rf(i,{position:"fixed",overflow:"hidden",top:`${-(k-Math.floor(C))}px`,left:`${-(j-Math.floor(w))}px`,right:"0",[d]:`${c}px`});return()=>{x(),r.scrollTo({left:j,top:k,behavior:"instant"})}},h=Eh()&&!qR();return Jt(u(),h?m():p())},[o,t])}function UB(t,...e){if(!t)return!1;const n=t.getAttribute("data-focus-trap");return n==null?!1:e.length?n===""?!1:e.some(o=>n===o):!0}function c3(){return"inert"in HTMLElement.prototype}function qB(t){return Jh(t,"aria-hidden","true")}function u3(t,e){if(!("style"in t))return _a;if(c3())return Hs(t,"inert",!0);const o=gu(t,!0).map(s=>{if(e?.some(a=>a&&ot(a,s)))return _a;const r=xi(s,"focus",()=>(s.focus=_a,()=>{delete s.focus}));return Jt(Jh(s,"tabindex","-1"),r)});return Jt(...o,qB(t),rf(t,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function WB(t,e){const n=[],o=e.map(r=>r?.id);return Yh(t,e,r=>{i3(r,...o)||UB(r,...o)||n.unshift(u3(r,e))},r=>{r.hasAttribute("role")&&(e.some(a=>a&&ot(a,r))||n.unshift(Jh(r,"role","none")))}),()=>{for(const r of n)r()}}var KB="div",GB=["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"];fe(function(e){return e});var wc=ie(function(e){return de(KB,e)});Object.assign(wc,GB.reduce((t,e)=>(t[e]=ie(function(o){return de(e,o)}),t),{}));function ZB({store:t,backdrop:e,alwaysVisible:n,hidden:o}){const s=b.useRef(null),r=QO({disclosure:t}),a=Ze(t,"contentElement");b.useEffect(()=>{const c=s.current,u=a;c&&u&&(c.style.zIndex=getComputedStyle(u).zIndex)},[a]),_e(()=>{const c=a?.id;if(!c)return;const u=s.current;if(u)return l3(u,c)},[a]);const i=Kh({ref:s,store:r,role:"presentation","data-backdrop":a?.id||"",alwaysVisible:n,hidden:o??void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!e)return null;if(b.isValidElement(e))return f.jsx(wc,J(B({},i),{render:e}));const l=typeof e!="boolean"?e:"div";return f.jsx(wc,J(B({},i),{render:f.jsx(l,{})}))}function d3(t={}){return Gk(t)}function p3(t,e,n){return Zk(t,e,n)}function JB(t={}){const[e,n]=vu(d3,t);return p3(e,n,t)}var YB="div",_b=fu();function XB(t){const e=_o();return!e||t&&ot(t,e)?!1:!!Dn(e)}function xb(t,e=!1){if(!t)return null;const n="current"in t?t.current:t;return n?e?Dn(n)?n:null:n:null}var f3=fe(function(e){var n=e,{store:o,open:s,onClose:r,focusable:a=!0,modal:i=!0,portal:l=!!i,backdrop:c=!!i,hideOnEscape:u=!0,hideOnInteractOutside:d=!0,getPersistentElements:p,preventBodyScroll:m=!!i,autoFocusOnShow:h=!0,autoFocusOnHide:g=!0,initialFocus:v,finalFocus:j,unmountOnHide:k,unstable_treeSnapshotKey:y}
292=n,w=ce(n,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const C=ku(),x=b.useRef(null),_=JB({store:o||C,open:s,setOpen(X){if(X)return;const re=x.current;if(!re)return;const dt=new Event("close",{bubbles:!1,cancelable:!0});r&&re.addEventListener("close",r,{once:!0}),re.dispatchEvent(dt),dt.defaultPrevented&&_.setOpen(!0)}}),{portalRef:F,domReady:D}=Mh(l,w.portalRef),M=w.preserveTabOrder,R=Ze(_,X=>M&&!i&&X.mounted),P=Qn(w.id),E=Ze(_,"open"),S=Ze(_,"mounted"),I=Ze(_,"contentElement"),A=yu(S,w.hidden,w.alwaysVisible);VB(I,P,m&&!A),PB(_,d,D);const{wrapElement:T,nestedDialogs:O}=zB(_);w=lt(w,T,[T]),_e(()=>{if(!E)return;const X=x.current,re=_o(X,!0);re&&re.tagName!=="BODY"&&(X&&ot(X,re)||_.setDisclosureElement(re))},[_,E]),_b&&b.useEffect(()=>{if(!S)return;const{disclosureElement:X}=_.getState();if(!X||!is(X))return;const re=()=>{let dt=!1;const ye=()=>{dt=!0},Tt={capture:!0,once:!0};X.addEventListener("focusin",ye,Tt),gr(X,"mouseup",()=>{X.removeEventListener("focusin",ye,!0),!dt&&$k(X)})};return X.addEventListener("mousedown",re),()=>{X.removeEventListener("mousedown",re)}},[_,S]),b.useEffect(()=>{if(!S||!D)return;const X=x.current;if(!X)return;const re=Ek(X),dt=re.visualViewport||re,ye=()=>{var Tt,sn;const q=(sn=(Tt=re.visualViewport)==null?void 0:Tt.height)!=null?sn:re.innerHeight;X.style.setProperty("--dialog-viewport-height",`${q}px`)};return ye(),dt.addEventListener("resize",ye),()=>{dt.removeEventListener("resize",ye)}},[S,D]),b.useEffect(()=>{if(!i||!S||!D)return;const X=x.current;if(!(!X||X.querySelector("[data-dialog-dismiss]")))return EB(X,_.hide)},[_,i,S,D]),_e(()=>{if(!c3()||E||!S||!D)return;const X=x.current;if(X)return u3(X)},[E,S,D]);const N=E&&D;_e(()=>{if(!P||!N)return;const X=x.current;return NB(P,[X])},[P,N,y]);const $=ne(p);_e(()=>{if(!P||!N)return;const{disclosureElement:X}=_.getState(),re=x.current,dt=$()||[],ye=[re,...dt,...O.map(Tt=>Tt.getState().contentElement)];return i?Jt(yb(P,ye),WB(P,ye)):yb(P,[X,...ye])},[P,_,N,$,O,i,y]);const V=!!h,K=He(h),[Z,se]=b.useState(!1);b.useEffect(()=>{if(!E||!V||!D||!I?.isConnected)return;const X=xb(v,!0)||I.querySelector("[data-autofocus=true],[autofocus]")||mO(I,!0,l&&R)||I,re=Dn(X);K(re?X:null)&&(se(!0),queueMicrotask(()=>{X.focus(),_b&&re&&X.scrollIntoView({block:"nearest",inline:"nearest"})}))},[E,V,D,I,v,l,R,K]);const ee=!!g,be=He(g),[Oe,L]=b.useState(!1);b.useEffect(()=>{if(E)return L(!0),()=>L(!1)},[E]);const G=b.useCallback((X,re=!0)=>{const{disclosureElement:dt}=_.getState();if(XB(X))return;let ye=xb(j)||dt;if(ye?.id){const sn=$e(ye),q=`[aria-activedescendant="${ye.id}"]`,he=sn.querySelector(q);he&&(ye=he)}if(ye&&!Dn(ye)){const sn=ye.closest("[data-dialog]");if(sn?.id){const q=$e(sn),he=`[aria-controls~="${sn.id}"]`,Ue=q.querySelector(he);Ue&&(ye=Ue)}}const Tt=ye&&Dn(ye);if(!Tt&&re){requestAnimationFrame(()=>G(X,!1));return}be(Tt?ye:null)&&Tt&&ye?.focus({preventScroll:!0})},[_,j,be]),te=b.useRef(!1);_e(()=>{if(E||!Oe||!ee)return;const X=x.current;te.current=!0,G(X)},[E,Oe,D,ee,G]),b.useEffect(()=>{if(!Oe||!ee)return;const X=x.current;return()=>{if(te.current){te.current=!1;return}G(X)}},[Oe,ee,G]);const Fe=He(u);b.useEffect(()=>!D||!S?void 0:_t("keydown",re=>{if(re.key!=="Escape"||re.defaultPrevented)return;const dt=x.current;if(!dt||Xh(dt))return;const ye=re.target;if(!ye)return;const{disclosureElement:Tt}=_.getState();!!(ye.tagName==="BODY"||ot(dt,ye)||!Tt||ot(Tt,ye))&&Fe(re)&&_.hide()},!0),[_,D,S,Fe]),w=lt(w,X=>f.jsx(DB,{level:i?1:void 0,children:X}),[i]);const Me=w.hidden,Te=w.alwaysVisible;w=lt(w,X=>c?f.jsxs(f.Fragment,{children:[f.jsx(ZB,{store:_,backdrop:c,hidden:Me,alwaysVisible:Te}),X]}):X,[_,c,Me,Te]);const[Ct,ve]=b.useState(),[on,Bn]=b.useState();return w=lt(w,X=>f.jsx(Wh,{value:_,children:f.jsx(GO.Provider,{value:ve,children:f.jsx(ZO.Provider,{value:Bn,children:X})})}),[_]),w=J(B({id:P,"data-dialog":"",role:"dialog",tabIndex:a?-1:void 0,"aria-labelledby":Ct,"aria-describedby":on},w),{ref:Xe(x,w.ref)}),w=a3(J(B({},w),{autoFocusOnShow:Z}
292)),w=Kh(B({store:_},w)),w=yi(J(B({},w),{focusable:a})),w=r3(J(B({portal:l},w),{portalRef:F,preserveTabOrder:R})),w});function Ci(t,e=ku){return ie(function(o){const s=e(),r=o.store||s;return Ze(r,i=>!o.unmountOnHide||i?.mounted||!!o.open)?f.jsx(t,B({},o)):null})}Ci(ie(function(e){const n=f3(e);return de(YB,n)}),ku);var QB="div";function Cb(t=0,e=0,n=0,o=0){if(typeof DOMRect=="function")return new DOMRect(t,e,n,o);const s={x:t,y:e,width:n,height:o,top:e,right:t+n,bottom:e+o,left:t};return J(B({},s),{toJSON:()=>s})}function eL(t){if(!t)return Cb();const{x:e,y:n,width:o,height:s}=t;return Cb(e,n,o,s)}function tL(t,e){return{contextElement:t||void 0,getBoundingClientRect:()=>{const o=t,s=e?.(o);return s||!o?eL(s):o.getBoundingClientRect()}}}function nL(t){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(t)}function Db(t){const e=window.devicePixelRatio||1;return Math.round(t*e)/e}function oL(t,e){return H_(({placement:n})=>{var o;const s=(t?.clientHeight||0)/2,r=typeof e.gutter=="number"?e.gutter+s:(o=e.gutter)!=null?o:s;return{crossAxis:!!n.split("-")[1]?void 0:e.shift,mainAxis:r,alignmentAxis:e.shift}})}function sL(t){if(t.flip===!1)return;const e=typeof t.flip=="string"?t.flip.split(" "):void 0;return Ye(!e||e.every(nL),!1),V_({padding:t.overflowPadding,fallbackPlacements:e})}function rL(t){if(!(!t.slide&&!t.overlap))return U_({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding,limiter:q_()})}function aL(t){return K_({padding:t.overflowPadding,apply({elements:e,availableWidth:n,availableHeight:o,rects:s}){const r=e.floating,a=Math.round(s.reference.width);n=Math.floor(n),o=Math.floor(o),r.style.setProperty("--popover-anchor-width",`${a}px`),r.style.setProperty("--popover-available-width",`${n}px`),r.style.setProperty("--popover-available-height",`${o}px`),t.sameWidth&&(r.style.width=`${a}px`),t.fitViewport&&(r.style.maxWidth=`${n}px`,r.style.maxHeight=`${o}px`)}})}function iL(t,e){if(t)return W_({element:t,padding:e.arrowPadding})}var Qh=fe(function(e){var n=e,{store:o,modal:s=!1,portal:r=!!s,preserveTabOrder:a=!0,autoFocusOnShow:i=!0,wrapperProps:l,fixed:c=!1,flip:u=!0,shift:d=0,slide:p=!0,overlap:m=!1,sameWidth:h=!1,fitViewport:g=!1,gutter:v,arrowPadding:j=4,overflowPadding:k=8,getAnchorRect:y,updatePosition:w}=n,C=ce(n,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const x=wu();o=o||x,Ye(o,!1);const _=o.useState("arrowElement"),F=o.useState("anchorElement"),D=o.useState("disclosureElement"),M=o.useState("popoverElement"),R=o.useState("contentElement"),P=o.useState("placement"),E=o.useState("mounted"),S=o.useState("rendered"),I=b.useRef(null),[A,T]=b.useState(!1),{portalRef:O,domReady:N}=Mh(r,C.portalRef),$=ne(y),V=ne(w),K=!!w;_e(()=>{if(!M?.isConnected)return;M.style.setProperty("--popover-overflow-padding",`${k}px`);const se=tL(F,$),ee=async()=>{if(!E)return;_||(I.current=I.current||document.createElement("div"));const L=_||I.current,G=[oL(L,{gutter:v,shift:d}),sL({flip:u,overflowPadding:k}),rL({slide:p,overlap:m,overflowPadding:k}),iL(L,{arrowPadding:j}),aL({sameWidth:h,fitViewport:g,overflowPadding:k})],te=await B2(se,M,{placement:P,strategy:c?"fixed":"absolute",middleware:G});o?.setState("currentPlacement",te.placement),T(!0);const Fe=Db(te.x),Me=Db(te.y);if(Object.assign(M.style,{top:"0",left:"0",transform:`translate3d(${Fe}px,${Me}px,0)`}),L&&te.middlewareData.arrow){const{x:Te,y:Ct}=te.middlewareData.arrow,ve=te.placement.split("-")[0],on=L.clientWidth/2,Bn=L.clientHeight/2,X=Te!=null?Te+on:-on,re=Ct!=null?Ct+Bn:-Bn;M.style.setProperty("--popover-transform-origin",{top:`${X}px calc(100% + ${Bn}px)`,bottom:`${X}px ${-Bn}px`,left:`calc(100% + ${on}px) ${re}px`,right:`${-on}px ${re}px`}[ve]),Object.assign(L.style,{left:Te!=null?`${Te}px`:"",top:Ct!=null?`${Ct}px`:"",[ve]:"100%"})}},Oe=N2(se,M,async()=>{K?(await V({updatePosition:ee}),T(!0)):await ee()},{elementResize:typeof ResizeObserver=="function"});return()=>{T(!1),Oe()}},[o,S,M,_,F,M,P,E,N,c,u,d,p,m,h,g,v,j,k,$,K,V]),_e(()=>{if(!E||!N||!M?.isConnected||!R?.isConnected)return;const se=()=>{M.style.zIndex=getComputedStyle(R).zIndex};se();let ee=requestAnimationFrame(()=>{ee=requestAnimationFrame(se)});return()=>cancelAnimationFrame(ee)},[E,N,M,R]);const Z=c?"fixed":"absolute";return C=lt(C,se=>f.jsx("div",J(B({},l),{style:B({position:Z,top:0,left:0,width:"max-content"},l?.style),ref:o?.setPopoverElement,children:se})),[o,Z,l]),C=lt(C,se=>f.jsx(_u,{value:o,children:se}),[o]),C=J(B({"data-placing":!A||void 0},C),{style:B({position:"relative"},C.style)}),C=f3(J(B({store:o,modal:s,portal:r,preserveTabOrder:a,preserveTabOrderAnchor:D||F,autoFocusOnShow:A&&i},C),{portalRef:O})),C});Ci(ie(function(e){const n=Qh(e);return de(QB,n)}),wu);var lL="div";function m3(t,e,n,o){return Xo(e)?!0:t?!!(ot(e,t)||n&&ot(n,t)||o?.some(s=>m3(t,s,n))):!1}function cL(t){var e=t,{store:n}=e,o=ce(e,["store"]);const[s,r]=b.useState(!1),a=n.useState("mounted");b.useEffect(()=>{a||r(!1)},[a]);const i=o.onFocus,l=ne(u=>{i?.(u),!u.defaultPrevented&&r(!0)}),c=b.useRef(null);return b.useEffect(()=>Et(n,["anchorElement"],u=>{c.current=u.anchorElement}),[]),o=J(B({autoFocusOnHide:s,finalFocus:c},o),{onFocus:l}),o}var Fb=b.createContext(null),h3=fe(function(e){var n=e,{store:o,modal:s=!1,portal:r=!!s,hideOnEscape:a=!0,hideOnHoverOutside:i=!0,disablePointerEventsOnApproach:l=!!i}=n,c=ce(n,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const u=Zh();o=o||u,Ye(o,!1);const d=b.useRef(null),[p,m]=b.useState([]),h=b.useRef(0),g=b.useRef(null),{portalRef:v,domReady:j}=Mh(r,c.portalRef),k=Th(),y=!!i,w=He(i),C=!!l,x=He(l),_=o.useState("open"),F=o.useState("mounted");b.useEffect(()=>
292{if(!j||!F||!y&&!C)return;const E=d.current;return E?Jt(_t("mousemove",I=>{if(!o||!k())return;const{anchorElement:A,hideTimeout:T,timeout:O}=o.getState(),N=g.current,[$]=I.composedPath(),V=A;if(m3($,E,V,p)){g.current=$&&V&&ot(V,$)?$d(I):null,window.clearTimeout(h.current),h.current=0;return}if(!h.current){if(N){const K=$d(I),Z=vb(E,N);if(bb(K,Z)){if(g.current=K,!x(I))return;I.preventDefault(),I.stopPropagation();return}}w(I)&&(h.current=window.setTimeout(()=>{h.current=0,o?.hide()},T??O))}},!0),()=>clearTimeout(h.current)):void 0},[o,k,j,F,y,C,p,x,w]),b.useEffect(()=>{if(!j||!F||!C)return;const E=S=>{const I=d.current;if(!I)return;const A=g.current;if(!A)return;const T=vb(I,A);if(bb($d(S),T)){if(!x(S))return;S.preventDefault(),S.stopPropagation()}};return Jt(_t("mouseenter",E,!0),_t("mouseover",E,!0),_t("mouseout",E,!0),_t("mouseleave",E,!0))},[j,F,C,x]),b.useEffect(()=>{j&&(_||o?.setAutoFocusOnShow(!1))},[o,j,_]);const D=Bk(_);b.useEffect(()=>{if(j)return()=>{D.current||o?.setAutoFocusOnShow(!1)}},[o,j]);const M=b.useContext(Fb);_e(()=>{if(s||!r||!F||!j)return;const E=d.current;if(E)return M?.(E)},[s,r,F,j]);const R=b.useCallback(E=>{m(I=>[...I,E]);const S=M?.(E);return()=>{m(I=>I.filter(A=>A!==E)),S?.()}},[M]);c=lt(c,E=>f.jsx(o3,{value:o,children:f.jsx(Fb.Provider,{value:R,children:E})}),[o,R]),c=J(B({},c),{ref:Xe(d,c.ref)}),c=cL(B({store:o},c));const P=o.useState(E=>s||E.autoFocusOnShow);return c=Qh(J(B({store:o,modal:s,portal:r,autoFocusOnShow:P},c),{portalRef:v,hideOnEscape(E){return du(a,E)?!1:(requestAnimationFrame(()=>{requestAnimationFrame(()=>{o?.hide()})}),!0)}})),c});Ci(ie(function(e){const n=h3(e);return de(lL,n)}),Zh);var uL="a",g3=fe(function(e){var n=e,{store:o,showOnHover:s=!0}=n,r=ce(n,["store","showOnHover"]);const a=Zh();o=o||a,Ye(o,!1);const i=Wr(r),l=b.useRef(0);b.useEffect(()=>()=>window.clearTimeout(l.current),[]),b.useEffect(()=>_t("mouseleave",j=>{if(!o)return;const{anchorElement:k}=o.getState();k&&j.target===k&&(window.clearTimeout(l.current),l.current=0)},!0),[o]);const c=r.onMouseMove,u=He(s),d=Th(),p=ne(v=>{if(c?.(v),i||!o||v.defaultPrevented||l.current||!d()||!u(v))return;const j=v.currentTarget;o.setAnchorElement(j),o.setDisclosureElement(j);const{showTimeout:k,timeout:y}=o.getState(),w=()=>{l.current=0,d()&&(o?.setAnchorElement(j),o?.show(),queueMicrotask(()=>{o?.setDisclosureElement(j)}))},C=k??y;C===0?w():l.current=window.setTimeout(w,C)}),m=r.onClick,h=ne(v=>{m?.(v),o&&(window.clearTimeout(l.current),l.current=0)}),g=b.useCallback(v=>{if(!o)return;const{anchorElement:j}=o.getState();j?.isConnected||o.setAnchorElement(v)},[o]);return r=J(B({},r),{ref:Xe(g,r.ref),onMouseMove:p,onClick:h}),r=yi(r),r});ie(function(e){const n=g3(e);return de(uL,n)});function b3(t={}){var e=t,{popover:n}=e,o=Ch(e,["popover"]);const s=bu(o.store,$h(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),r=s?.getState(),a=d3(Ge(ge({},o),{store:s})),i=ae(o.placement,r?.placement,"bottom"),l=Ge(ge({},a.getState()),{placement:i,currentPlacement:i,anchorElement:ae(r?.anchorElement,null),popoverElement:ae(r?.popoverElement,null),arrowElement:ae(r?.arrowElement,null),rendered:Symbol("rendered")}),c=In(l,a,s);return Ge(ge(ge({},a),c),{setAnchorElement:u=>c.setState("anchorElement",u),setPopoverElement:u=>c.setState("popoverElement",u),setArrowElement:u=>c.setState("arrowElement",u),render:()=>c.setState("rendered",Symbol("rendered"))})}function v3(t,e,n){return Gr(e,[n.popover]),et(t,n,"placement"),p3(t,e,n)}function dL(t={}){var e;const n=(e=t.store)==null?void 0:e.getState(),o=b3(Ge(ge({},t),{placement:ae(t.placement,n?.placement,"bottom")})),s=ae(t.timeout,n?.timeout,500),r=Ge(ge({},o.getState()),{timeout:s,showTimeout:ae(t.showTimeout,n?.showTimeout),hideTimeout:ae(t.hideTimeout,n?.hideTimeout),autoFocusOnShow:ae(n?.autoFocusOnShow,!1)}),a=In(r,o,t.store);return Ge(ge(ge({},o),a),{setAutoFocusOnShow:i=>a.setState("autoFocusOnShow",i)})}function pL(t,e,n){return et(t,n,"timeout"),et(t,n,"showTimeout"),et(t,n,"hideTimeout"),v3(t,e,n)}var j3=Nn([Jr],[ki]),fL=j3.useContext,mL=j3.useScopedContext;b.createContext(void 0);var hL="div",eg=fe(function(e){var n=e,{store:o}=n,s=ce(n,["store"]);const r=wu();return o=o||r,s=J(B({},s),{ref:Xe(o?.setAnchorElement,s.ref)}),s});ie(function(e){const n=eg(e);return de(hL,n)});var k3="button",y3=fe(function(e){const n=b.useRef(null),o=Sh(n,k3),[s,r]=b.useState(()=>!!o&&is({tagName:o,type:e.type}));return b.useEffect(()=>{n.current&&r(is(n.current))},[]),e=J(B({role:!s&&o!=="a"?"button":void 0},e),{ref:Xe(n,e.ref)}),e=Lh(e),e});ie(function(e){const n=y3(e);return de(k3,n)});var gL="button",bL=Symbol("disclosure"),w3=fe(function(e){var n=e,{store:o,toggleOnClick:s=!0}=n,r=ce(n,["store","toggleOnClick"]);const a=Uh();o=o||a,Ye(o,!1);const i=b.useRef(null),[l,c]=b.useState(!1),u=o.useState("disclosureElement"),d=o.useState("open");b.useEffect(()=>{let k=u===i.current;u?.isConnected||(o?.setDisclosureElement(i.current),k=!0),c(d&&k)},[u,o,d]);const p=r.onClick,m=He(s),[h,g]=Lk(r,bL,!0),v=ne(k=>{p?.(k),!k.defaultPrevented&&(h||m(k)&&(o?.setDisclosureElement(k.currentTarget),o?.toggle(
292)))}),j=o.useState("contentElement");return r=J(B(B({"aria-expanded":l,"aria-controls":j?.id},g),r),{ref:Xe(i,r.ref),onClick:v}),r=y3(r),r});ie(function(e){const n=w3(e);return de(gL,n)});var vL="button",_3=fe(function(e){var n=e,{store:o}=n,s=ce(n,["store"]);const r=ku();o=o||r,Ye(o,!1);const a=o.useState("contentElement");return s=B({"aria-haspopup":pu(a,"dialog")},s),s=w3(B({store:o},s)),s});ie(function(e){const n=_3(e);return de(vL,n)});var jL="button",x3=fe(function(e){var n=e,{store:o}=n,s=ce(n,["store"]);const r=wu();o=o||r,Ye(o,!1);const a=s.onClick,i=ne(l=>{o?.setAnchorElement(l.currentTarget),a?.(l)});return s=lt(s,l=>f.jsx(_u,{value:o,children:l}),[o]),s=J(B({},s),{onClick:i}),s=eg(B({store:o},s)),s=_3(B({store:o},s)),s});ie(function(e){const n=x3(e);return de(jL,n)});var kL="span",yL={top:"4,10 8,6 12,10",right:"6,4 10,8 6,12",bottom:"4,6 8,10 12,6",left:"10,4 6,8 10,12"},C3=fe(function(e){var n=e,{store:o,placement:s}=n,r=ce(n,["store","placement"]);const a=eB();o=o||a,Ye(o,!1);const l=o.useState(d=>s||d.placement).split("-")[0],c=yL[l],u=b.useMemo(()=>f.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:f.jsx("polyline",{points:c})}),[c]);return r=J(B({children:u,"aria-hidden":!0},r),{style:B({width:"1em",height:"1em",pointerEvents:"none"},r.style)}),Tn(r)});ie(function(e){const n=C3(e);return de(kL,n)});var wL=Nn([Jr],[ki]),_L=wL.useContext,D3="input";function xL(t,e){if(e!==void 0)return t!=null&&e!=null?e===t:!!e}function CL(t,e){return t==="input"&&(!e||e==="radio")}var F3=fe(function(e){var n=e,{store:o,name:s,value:r,checked:a}=n,i=ce(n,["store","name","value","checked"]);const l=_L();o=o||l;const c=Qn(i.id),u=b.useRef(null),d=Ze(o,_=>a??xL(r,_?.value));b.useEffect(()=>{!c||!d||o?.getState().activeId===c||o?.setActiveId(c)},[o,d,c]);const p=i.onChange,m=Sh(u,D3),h=CL(m,i.type),g=Wr(i),[v,j]=Ah();b.useEffect(()=>{const _=u.current;_&&(h||(d!==void 0&&(_.checked=d),s!==void 0&&(_.name=s),r!==void 0&&(_.value=`${r}`)))},[v,h,d,s,r]);const k=ne(_=>{if(g){_.preventDefault(),_.stopPropagation();return}o?.getState().value!==r&&(h||(_.currentTarget.checked=!0,j()),p?.(_),!_.defaultPrevented&&o?.setValue(r))}),y=i.onClick,w=ne(_=>{y?.(_),!_.defaultPrevented&&(h||k(_))}),C=i.onFocus,x=ne(_=>{if(C?.(_),_.defaultPrevented||!h||!o)return;const{moves:F,activeId:D}=o.getState();F&&(c&&D!==c||k(_))});return i=J(B({id:c,role:h?void 0:"radio",type:h?"radio":void 0,"aria-checked":d},i),{ref:Xe(u,i.ref),onChange:k,onClick:w,onFocus:x}),i=ju(B({store:o,clickOnEnter:!h},i)),Tn(B({name:h?s:void 0,value:h?r:void 0,checked:d},i))});Zr(ie(function(e){const n=F3(e);return de(D3,n)}));var DL="div",fo="";function qd(){fo=""}function FL(t){const e=t.target;return e&&Xn(e)?!1:t.key===" "&&fo.length?!0:t.key.length===1&&!t.ctrlKey&&!t.altKey&&!t.metaKey&&/^[\p{Letter}\p{Number}]$/u.test(t.key)}function EL(t,e){if(en(t))return!0;const n=t.target;return n?e.some(s=>s.element===n):!1}function IL(t){return t.filter(e=>!e.disabled)}function gl(t,e){var n;const o=((n=t.element)==null?void 0:n.textContent)||t.children||"value"in t&&t.value;return o?Dk(o).trim().toLowerCase().startsWith(e.toLowerCase()):!1}function SL(t,e,n){if(!n)return t;const o=t.find(s=>s.id===n);return!o||!gl(o,e)||fo!==e&&gl(o,fo)?t:(fo=e,aO(t.filter(s=>gl(s,fo)),n).filter(s=>s.id!==n))}var tg=fe(function(e){var n=e,{store:o,typeahead:s=!0}=n,r=ce(n,["store","typeahead"]);const a=Rh();o=o||a,Ye(o,!1);const i=r.onKeyDownCapture,l=b.useRef(0),c=ne(u=>{if(i?.(u),u.defaultPrevented||!s||!o)return;if(!FL(u))return qd();const{renderedItems:d,items:p,activeId:m,id:h}=o.getState();let g=IL(p.length>d.length?p:d);const v=$e(u.currentTarget),j=`[data-offscreen-id="${h}"]`,k=v.querySelectorAll(j);for(const C of k){const x=C.ariaDisabled==="true"||"disabled"in C&&!!C.disabled;g.push({id:C.id,element:C,disabled:x})}if(k.length&&(g=Ak(g,C=>C.element)),!EL(u,g))return qd();u.preventDefault(),window.clearTimeout(l.current),l.current=window.setTimeout(()=>{fo=""},500);
292const y=u.key.toLowerCase();fo+=y,g=SL(g,y,m);const w=g.find(C=>gl(C,fo));w?o.move(w.id):qd()});return r=J(B({},r),{onKeyDownCapture:c}),Tn(r)});ie(function(e){const n=tg(e);return de(DL,n)});var AL=b.createContext(void 0),ML="div",E3=fe(function(e){const[n,o]=b.useState();return e=lt(e,s=>f.jsx(AL.Provider,{value:o,children:s}),[]),e=B({role:"group","aria-labelledby":n},e),Tn(e)});ie(function(e){const n=E3(e);return de(ML,n)});var TL="div",I3=fe(function(e){var n=e,{store:o}=n,s=ce(n,["store"]);return s=E3(s),s});ie(function(e){const n=I3(e);return de(TL,n)});var NL="div";function S3(t){const e=t.relatedTarget;return e?.nodeType===Node.ELEMENT_NODE?e:null}function RL(t){const e=S3(t);return e?ot(t.currentTarget,e):!1}var lf=Symbol("composite-hover");function OL(t){let e=S3(t);if(!e)return!1;do{if(ko(e,lf)&&e[lf])return!0;e=e.parentElement}while(e);return!1}var ng=fe(function(e){var n=e,{store:o,focusOnHover:s=!0,blurOnHoverEnd:r=!!s}=n,a=ce(n,["store","focusOnHover","blurOnHoverEnd"]);const i=Rh();o=o||i,Ye(o,!1);const l=Th(),c=a.onMouseMove,u=He(s),d=ne(v=>{if(c?.(v),!v.defaultPrevented&&l()&&u(v)){if(!Xo(v.currentTarget)){const j=o?.getState().baseElement;j&&!$s(j)&&j.focus()}o?.setActiveId(v.currentTarget.id)}}),p=a.onMouseLeave,m=He(r),h=ne(v=>{var j;p?.(v),!v.defaultPrevented&&l()&&(RL(v)||OL(v)||u(v)&&m(v)&&(o?.setActiveId(null),(j=o?.getState().baseElement)==null||j.focus()))}),g=b.useCallback(v=>{v&&(v[lf]=!0)},[]);return a=J(B({},a),{ref:Xe(g,a.ref),onMouseMove:d,onMouseLeave:h}),Tn(a)});Zr(ie(function(e){const n=ng(e);return de(NL,n)}));var BL=b.createContext(!1),LL="span",PL=f.jsx("svg",{display:"block",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,viewBox:"0 0 16 16",height:"1em",width:"1em",children:f.jsx("polyline",{points:"4,8 7,12 12,4"})});function zL(t){return t.checked?t.children||PL:typeof t.children=="function"?t.children:null}var A3=fe(function(e){var n=e,{store:o,checked:s}=n,r=ce(n,["store","checked"]);const a=b.useContext(BL);s=s??a;const i=zL({checked:s,children:r.children});return r=J(B({"aria-hidden":!0},r),{children:i,style:B({width:"1em",height:"1em",pointerEvents:"none"},r.style)}),Tn(r)});ie(function(e){const n=A3(e);return de(LL,n)});var Di=Nn([Jr,bB],[ki,o3]),Cu=Di.useContext,M3=Di.useScopedContext,Du=Di.useProviderContext,T3=Di.ContextProvider,$L=Di.ScopedContextProvider,N3=b.createContext(void 0),HL="div";function VL(t){var e=t,{store:n}=e,o=ce(e,["store"]);const[s,r]=b.useState(void 0),a=o["aria-label"],i=Ze(n,"disclosureElement"),l=Ze(n,"contentElement");return b.useEffect(()=>{const c=i;if(!c)return;const u=l;if(!u)return;a||u.hasAttribute("aria-label")?r(void 0):c.id&&r(c.id)},[a,i,l]),s}var R3=fe(function(e){var n=e,{store:o,alwaysVisible:s,composite:r}=n,a=ce(n,["store","alwaysVisible","composite"]);const i=Du();o=o||i,Ye(o,!1);const l=o.parent,c=o.menubar,u=!!l,d=Qn(a.id),p=a.onKeyDown,m=o.useState(_=>_.placement.split("-")[0]),h=o.useState(_=>_.orientation==="both"?void 0:_.orientation),g=h!=="vertical",v=Ze(c,_=>!!_&&_.orientation!=="vertical"),j=ne(_=>{if(p?.(_),!_.defaultPrevented){if(u||c&&!g){const D={ArrowRight:()=>m==="left"&&!g,ArrowLeft:()=>m==="right"&&!g,ArrowUp:()=>m==="bottom"&&g,ArrowDown:()=>m==="top"&&g}[_.key];if(D?.())return _.stopPropagation(),_.preventDefault(),o?.hide()}if(c){const D={ArrowRight:()=>{if(v)return c.next()},ArrowLeft:()=>{if(v)return c.previous()},ArrowDown:()=>{if(!v)return c.next()},ArrowUp:()=>{if(!v)return c.previous()}}[_.key],M=D?.();M!==void 0&&(_.stopPropagation(),_.preventDefault(),c.move(M))}}});a=lt(a,_=>f.jsx($L,{value:o,children:_}),[o]);const k=VL(B({store:o},a)),y=o.useState("mounted"),w=yu(y,a.hidden,s),C=w?J(B({},a.style),{display:"none"}):a.style;a=J(B({id:d,"aria-labelledby":k,hidden:w},a),{ref:Xe(d?o.setContentElement:null,a.ref),style:C,onKeyDown:j});const x=!!o.combobox;return r=r??!x,r&&(a=B({role:"menu","aria-orientation":h},a)),a=Hh(B({store:o,composite:r},a)),a=tg(B({store:o,typeahead:!x},a)),a});ie(function(e){const n=R3(e);return de(HL,n)});var UL="div",qL=fe(function(e){var n=e,{store:o,modal:s=!1,portal:r=!!s,hideOnEscape:a=!0,autoFocusOnShow:i=!0,hideOnHoverOutside:l,alwaysVisible:c}
292=n,u=ce(n,["store","modal","portal","hideOnEscape","autoFocusOnShow","hideOnHoverOutside","alwaysVisible"]);const d=Du();o=o||d,Ye(o,!1);const p=b.useRef(null),m=o.parent,h=o.menubar,g=!!m,v=!!h&&!g;u=J(B({},u),{ref:Xe(p,u.ref)});const j=R3(B({store:o,alwaysVisible:c},u)),{"aria-labelledby":k}=j;u=ce(j,["aria-labelledby"]);const[w,C]=b.useState(),x=o.useState("autoFocusOnShow"),_=o.useState("initialFocus"),F=o.useState("baseElement"),D=o.useState("renderedItems");b.useEffect(()=>{let A=!1;return C(T=>{var O,N,$;if(A||!x)return;if((O=T?.current)!=null&&O.isConnected)return T;const V=b.createRef();switch(_){case"first":V.current=((N=D.find(K=>!K.disabled&&K.element))==null?void 0:N.element)||null;break;case"last":V.current=(($=[...D].reverse().find(K=>!K.disabled&&K.element))==null?void 0:$.element)||null;break;default:V.current=F}return V}),()=>{A=!0}},[o,x,_,D,F]);const M=g?!1:s,R=!!i,P=!!w||!!u.initialFocus||!!M,E=Ze(o.combobox||o,"contentElement"),S=Ze(m?.combobox||m,"contentElement"),I=b.useMemo(()=>{if(!S||!E)return;const A=E.getAttribute("role"),T=S.getAttribute("role");if(!((T==="menu"||T==="menubar")&&A==="menu"))return S},[E,S]);return I!==void 0&&(u=B({preserveTabOrderAnchor:I},u)),u=h3(J(B({store:o,alwaysVisible:c,initialFocus:w,autoFocusOnShow:R?P&&i:x||!!M},u),{hideOnEscape(A){return du(a,A)?!1:(o?.hideAll(),!0)},hideOnHoverOutside(A){const T=o?.getState().disclosureElement;return(typeof l=="function"?l(A):l??(g?!0:v?T?!Xo(T):!0:!1))?A.defaultPrevented||!g||!T||(WR(T,"mouseout",A),!Xo(T))?!0:(requestAnimationFrame(()=>{Xo(T)||o?.hide()}),!1):!1},modal:M,portal:r,backdrop:g?!1:u.backdrop})),u=B({"aria-labelledby":k},u),u}),WL=Ci(ie(function(e){const n=qL(e);return de(UL,n)}),Du),KL="button";function GL(t,e){return{ArrowDown:e==="bottom"||e==="top"?"first":!1,ArrowUp:e==="bottom"||e==="top"?"last":!1,ArrowRight:e==="right"?"first":!1,ArrowLeft:e==="left"?"first":!1}[t.key]}function Eb(t,e){return!!t?.some(n=>!n.element||n.element===e?!1:n.element.getAttribute("aria-expanded")==="true")}var ZL=fe(function(e){var n=e,{store:o,focusable:s,accessibleWhenDisabled:r,showOnHover:a}=n,i=ce(n,["store","focusable","accessibleWhenDisabled","showOnHover"]);const l=Du();o=o||l,Ye(o,!1);const c=b.useRef(null),u=o.parent,d=o.menubar,p=!!u,m=!!d&&!p,h=Wr(i),g=()=>{const R=c.current;R&&(o?.setDisclosureElement(R),o?.setAnchorElement(R),o?.show())},v=i.onFocus,j=ne(R=>{if(v?.(R),h||R.defaultPrevented||(o?.setAutoFocusOnShow(!1),o?.setActiveId(null),!d)||!m)return;const{items:P}=d.getState();Eb(P,R.currentTarget)&&g()}),k=Ze(o,R=>R.placement.split("-")[0]),y=i.onKeyDown,w=ne(R=>{if(y?.(R),h||R.defaultPrevented)return;const P=GL(R,k);P&&(R.preventDefault(),g(),o?.setAutoFocusOnShow(!0),o?.setInitialFocus(P))}),C=i.onClick,x=ne(R=>{if(C?.(R),R.defaultPrevented||!o)return;const P=!R.detail,{open:E}=o.getState();(!E||P)&&((!p||P)&&o.setAutoFocusOnShow(!0),o.setInitialFocus(P?"first":"container")),p&&g()});i=lt(i,R=>f.jsx(T3,{value:o,children:R}),[o]),p&&(i=J(B({},i),{render:f.jsx(wc.div,{render:i.render})}));const _=Qn(i.id),F=Ze(u?.combobox||u,"contentElement"),D=p||m?Sk(F,"menuitem"):void 0,M=o.useState("contentElement");return i=J(B({id:_,role:D,"aria-haspopup":pu(M,"menu")},i),{ref:Xe(c,i.ref),onFocus:j,onKeyDown:w,onClick:x}),i=g3(J(B({store:o,focusable:s,accessibleWhenDisabled:r},i),{showOnHover:R=>{if(!(()=>
292{if(typeof a=="function")return a(R);if(a!=null)return a;if(p)return!0;if(!d)return!1;const{items:I}=d.getState();return m&&Eb(I)})())return!1;const S=m?d:u;return S&&S.setActiveId(R.currentTarget.id),!0}})),i=x3(B({store:o,toggleOnClick:!p,focusable:s,accessibleWhenDisabled:r},i)),i=tg(B({store:o,typeahead:m},i)),i}),JL=ie(function(e){const n=ZL(e);return de(KL,n)}),YL="span",XL=fe(function(e){var n=e,{store:o}=n,s=ce(n,["store"]);const r=Cu();return o=o||r,s=C3(B({store:o},s)),s}),QL=ie(function(e){const n=XL(e);return de(YL,n)}),eP="div",tP=fe(function(e){return e=I3(e),e}),nP=ie(function(e){const n=tP(e);return de(eP,n)}),oP="div";function sP(t,e,n){var o;if(!t)return!1;if(Xo(t))return!0;const s=e?.find(l=>{var c;return l.element===n?!1:((c=l.element)==null?void 0:c.getAttribute("aria-expanded"))==="true"}),r=(o=s?.element)==null?void 0:o.getAttribute("aria-controls");if(!r)return!1;const i=$e(t).getElementById(r);return i?Xo(i)?!0:!!i.querySelector("[role=menuitem][aria-expanded=true]"):!1}var O3=fe(function(e){var n=e,{store:o,hideOnClick:s=!0,preventScrollOnKeyDown:r=!0,focusOnHover:a,blurOnHoverEnd:i}=n,l=ce(n,["store","hideOnClick","preventScrollOnKeyDown","focusOnHover","blurOnHoverEnd"]);const c=M3(!0),u=mL();o=o||c||u,Ye(o,!1);const d=l.onClick,p=He(s),m="hideAll"in o?o.hideAll:void 0,h=!!m,g=ne(k=>{d?.(k),!(k.defaultPrevented||Rk(k)||Nk(k)||!m||k.currentTarget.getAttribute("aria-haspopup")==="menu")&&p(k)&&m()}),v=Ze(o,k=>"contentElement"in k?k.contentElement:null),j=Sk(v,"menuitem");return l=J(B({role:j},l),{onClick:g}),l=ju(B({store:o,preventScrollOnKeyDown:r},l)),l=ng(J(B({store:o},l),{focusOnHover(k){const y=()=>typeof a=="function"?a(k):a??!0;if(!o||!y())return!1;const{baseElement:w,items:C}=o.getState();return h?(k.currentTarget.hasAttribute("aria-expanded")&&k.currentTarget.focus(),!0):sP(w,C,k.currentTarget)?(k.currentTarget.focus(),!0):!1},blurOnHoverEnd(k){return typeof i=="function"?i(k):i??h}})),l}),rP=Zr(ie(function(e){const n=O3(e);return de(oP,n)})),aP="span",iP=fe(function(e){var n=e,{store:o,checked:s}=n,r=ce(n,["store","checked"]);const a=b.useContext(N3);return s=s??a,r=A3(J(B({},r),{checked:s})),r}),lP=ie(function(e){const n=iP(e);return de(aP,n)}),cP="div";function Wd(t,e,n){return n===void 0?t:n?e:t}var uP=fe(function(e){var n=e,{store:o,name:s,value:r,checked:a,onChange:i,hideOnClick:l=!1}=n,c=ce(n,["store","name","value","checked","onChange","hideOnClick"]);const u=M3();o=o||u,Ye(o,!1);const d=Ok(c.defaultChecked);b.useEffect(()=>{o?.setValue(s,(m=!1)=>Wd(m,r,d))},[o,s,r,d]),b.useEffect(()=>{a!==void 0&&o?.setValue(s,m=>Wd(m,r,a))},[o,s,r,a]);const p=o.useState(m=>m.values[s]===r);return c=lt(c,m=>f.jsx(N3.Provider,{value:!!p,children:m}),[p]),c=B({role:"menuitemradio"},c),c=F3(B({name:s,value:r,checked:p,onChange(m){if(i?.(m),m.defaultPrevented)return;const h=m.currentTarget;o?.setValue(s,g=>
292Wd(g,r,a??h.checked))}},c)),c=O3(B({store:o,hideOnClick:l},c)),c}),dP=Zr(ie(function(e){const n=uP(e);return de(cP,n)}));function pP(t={}){var e=t,{combobox:n,parent:o,menubar:s}=e,r=Ch(e,["combobox","parent","menubar"]);const a=!!s&&!o,i=bu(r.store,Vk(o,["values"]),$h(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),l=i.getState(),c=Qk(Ge(ge({},r),{store:i,orientation:ae(r.orientation,l.orientation,"vertical")})),u=dL(Ge(ge({},r),{store:i,placement:ae(r.placement,l.placement,"bottom-start"),timeout:ae(r.timeout,l.timeout,a?0:150),hideTimeout:ae(r.hideTimeout,l.hideTimeout,0)})),d=Ge(ge(ge({},c.getState()),u.getState()),{initialFocus:ae(l.initialFocus,"container"),values:ae(r.values,l.values,r.defaultValues,{})}),p=In(d,c,u,i);return Nt(p,()=>Et(p,["mounted"],m=>{m.mounted||p.setState("activeId",null)})),Nt(p,()=>Et(o,["orientation"],m=>{p.setState("placement",m.orientation==="vertical"?"right-start":"bottom-start")})),Ge(ge(ge(ge({},c),u),p),{combobox:n,parent:o,menubar:s,hideAll:()=>{u.hide(),o?.hideAll()},setInitialFocus:m=>p.setState("initialFocus",m),setValues:m=>p.setState("values",m),setValue:(m,h)=>{m!=="__proto__"&&m!=="constructor"&&(Array.isArray(m)||p.setState("values",g=>{const v=g[m],j=Ck(h,v);return j===v?g:Ge(ge({},g),{[m]:j!==void 0&&j})}))}})}function fP(t,e,n){return Gr(e,[n.combobox,n.parent,n.menubar]),et(t,n,"values","setValues"),Object.assign(pL(e3(t,e,n),e,n),{combobox:n.combobox,parent:n.parent,menubar:n.menubar})}function B3(t={}){const e=Cu(),n=fL(),o=xu();t=J(B({},t),{parent:t.parent!==void 0?t.parent:e,menubar:t.menubar!==void 0?t.menubar:n,combobox:t.combobox!==void 0?t.combobox:o});const[s,r]=vu(pP,t);return fP(s,r,t)}function mP(t={}){const e=B3(t);return f.jsx(T3,{value:e,children:t.children})}var hP="input";function Ib(t,e,n){if(!n)return!1;const o=t.find(s=>!s.disabled&&s.value);return o?.value===e}function Sb(t,e){return!e||t==null?!1:(t=Dk(t),e.length>t.length&&e.toLowerCase().indexOf(t.toLowerCase())===0)}function gP(t){return t.type==="input"}function bP(t){return t==="inline"||t==="list"||t==="both"||t==="none"}function vP(t){const e=t.find(n=>{var o;return n.disabled?!1:((o=n.element)==null?void 0:o.getAttribute("role"))!=="tab"});return e?.id}var jP=fe(function(e){var n=e,{store:o,focusable:s=!0,autoSelect:r=!1,getAutoSelectId:a,setValueOnChange:i,showMinLength:l=0,showOnChange:c,showOnMouseDown:u,showOnClick:d=u,showOnKeyDown:p,showOnKeyPress:m=p,blurActiveItemOnClick:h,setValueOnClick:g=!0,moveOnKeyPress:v=!0,autoComplete:j="list"}=n,k=ce(n,["store","focusable","autoSelect","getAutoSelectId","setValueOnChange","showMinLength","showOnChange","showOnMouseDown","showOnClick","showOnKeyDown","showOnKeyPress","blurActiveItemOnClick","setValueOnClick","moveOnKeyPress","autoComplete"]);const y=xu();o=o||y,Ye(o,!1);const w=b.useRef(null),[C,x]=Ah(),_=b.useRef(!1),F=b.useRef(!1),D=o.useState(q=>q.virtualFocus&&r),M=j==="inline"||j==="both",[R,P]=b.useState(M);JR(()=>{M&&P(!0)},[M]);const E=o.useState("value"),S=b.useRef();b.useEffect(()=>Et(o,["selectedValue","activeId"],(q,he)=>{S.current=he.selectedValue}),[]);const I=o.useState(q=>{var he;if(M&&R&&!(q.activeValue&&Array.isArray(q.selectedValue)&&(q.selectedValue.includes(q.activeValue)||(he=S.current)!=null&&he.includes(q.activeValue))))return q.activeValue}),A=o.useState("renderedItems"),T=o.useState("open"),O=o.useState("contentElement"),N=b.useMemo(()=>{if(!M||!R)return E;if(Ib(A,I,D)){if(Sb(E,I)){const he=I?.slice(E.length)||"";return E+he}return E}return I||E},[M,R,A,I,D,E]);b.useEffect(()=>{const q=w.current;if(!q)return;const he=()=>P(!0);return q.addEventListener("combobox-item-move",he),()=>{q.removeEventListener("combobox-item-move",he)}},[]),b.useEffect(()=>{if(!M||!R||!I||!Ib(A,I,D)||!Sb(E,I))return;let he=_a;return queueMicrotask(()=>{const Ue=w.current;if(!Ue)return;const{start:at,end:rn}=nf(Ue),to=E.length,Dt=I.length;Ld(Ue,to,Dt),he=()=>{if(!$s(Ue))return;const{start:gs,end:m_}=nf(Ue);gs===to&&m_===Dt&&Ld(Ue,at,rn)}}),()=>he()},[C,M,R,I,A,D,E]);const $=b.useRef(null),V=ne(a),K=b.useRef(null);b.useEffect(()=>{if(!T||!O)return;const q=Fh(O);if(!q)return;$.current=q;const he=()=>{_.current=!1},Ue=()=>{if(!o||!_.current)return;const{activeId:rn}=o.getState();rn!==null&&rn!==K.current&&(_.current=!1)},at={passive:!0,capture:!0};return q.addEventListener("wheel",he,at),q.addEventListener("touchmove",he,at),q.addEventListener("scroll",Ue,at),()=>{q.removeEventListener("wheel",he,!0),q.removeEventListener("touchmove",he,!0),q.removeEventListener("scroll",Ue,!0)}},[T,O,o]),_e(()=>{E&&(F.current||(_.current=!0))},[E]),_e(()=>{D!=="always"&&T||(_.current=T)},[D,T]);const Z=o.useState("resetValueOnSelect");Gr(()=>{var q,he;const Ue=_.current;if(!o||!T||!Ue&&!Z)return;const{baseElement:at,contentElement:rn,activeId:to}=o.getState();
292if(!(at&&!$s(at))){if(rn?.hasAttribute("data-placing")){const Dt=new MutationObserver(x);return Dt.observe(rn,{attributeFilter:["data-placing"]}),()=>Dt.disconnect()}if(D&&Ue){const Dt=V(A),gs=Dt!==void 0?Dt:(q=vP(A))!=null?q:o.first();K.current=gs,o.move(gs??null)}else{const Dt=(he=o.item(to||o.first()))==null?void 0:he.element;Dt&&"scrollIntoView"in Dt&&Dt.scrollIntoView({block:"nearest",inline:"nearest"})}}},[o,T,C,E,D,Z,V,A]),b.useEffect(()=>{if(!M)return;const q=w.current;if(!q)return;const he=[q,O].filter(at=>!!at),Ue=at=>{he.every(rn=>ks(at,rn))&&o?.setValue(N)};for(const at of he)at.addEventListener("focusout",Ue);return()=>{for(const at of he)at.removeEventListener("focusout",Ue)}},[M,O,o,N]);const se=q=>q.currentTarget.value.length>=l,ee=k.onChange,be=He(c??se),Oe=He(i??!o.tag),L=ne(q=>{if(ee?.(q),q.defaultPrevented||!o)return;const he=q.currentTarget,{value:Ue,selectionStart:at,selectionEnd:rn}=he,to=q.nativeEvent;if(_.current=!0,gP(to)&&(to.isComposing&&(_.current=!1,F.current=!0),M)){const Dt=to.inputType==="insertText"||to.inputType==="insertCompositionText",gs=at===Ue.length;P(Dt&&gs)}if(Oe(q)){const Dt=Ue===o.getState().value;o.setValue(Ue),queueMicrotask(()=>{Ld(he,at,rn)}),M&&D&&Dt&&x()}be(q)&&o.show(),(!D||!_.current)&&o.setActiveId(null)}),G=k.onCompositionEnd,te=ne(q=>{_.current=!0,F.current=!1,G?.(q),!q.defaultPrevented&&D&&x()}),Fe=k.onMouseDown,Me=He(h??(()=>!!o?.getState().includesBaseElement)),Te=He(g),Ct=He(d??se),ve=ne(q=>{Fe?.(q),!q.defaultPrevented&&(q.button||q.ctrlKey||o&&(Me(q)&&o.setActiveId(null),Te(q)&&o.setValue(N),Ct(q)&&gr(q.currentTarget,"mouseup",o.show)))}),on=k.onKeyDown,Bn=He(m??se),X=ne(q=>{if(on?.(q),q.repeat||(_.current=!1),q.defaultPrevented||q.ctrlKey||q.altKey||q.shiftKey||q.metaKey||!o)return;const{open:he}=o.getState();he||(q.key==="ArrowUp"||q.key==="ArrowDown")&&Bn(q)&&(q.preventDefault(),o.show())}),re=k.onBlur,dt=ne(q=>{_.current=!1,re?.(q),q.defaultPrevented}),ye=Qn(k.id),Tt=bP(j)?j:void 0,sn=o.useState(q=>q.activeId===null);return k=J(B({id:ye,role:"combobox","aria-autocomplete":Tt,"aria-haspopup":pu(O,"listbox"),"aria-expanded":T,"aria-controls":O?.id,"data-active-item":sn||void 0,value:N},k),{ref:Xe(w,k.ref),onChange:L,onCompositionEnd:te,onMouseDown:ve,onKeyDown:X,onBlur:dt}),k=Hh(J(B({store:o,focusable:s},k),{moveOnKeyPress:q=>du(v,q)?!1:(M&&P(!0),!0)})),k=eg(B({store:o},k)),B({autoComplete:"off"},k)}),kP=ie(function(e){const n=jP(e);return de(hP,n)}),yP="div";function wP(t,e){if(e!=null)return t==null?!1:Array.isArray(t)?t.includes(e):t===e}function _P(t){var e;return(e={menu:"menuitem",listbox:"option",tree:"treeitem"}[t])!=null?e:"option"}var xP=fe(function(e){var n=e,{store:o,value:s,hideOnClick:r,setValueOnClick:a,selectValueOnClick:i=!0,resetValueOnSelect:l,focusOnHover:c=!1,moveOnKeyPress:u=!0,getItem:d}=n,p=ce(n,["store","value","hideOnClick","setValueOnClick","selectValueOnClick","resetValueOnSelect","focusOnHover","moveOnKeyPress","getItem"]),m;const h=n3();o=o||h,Ye(o,!1);const{resetValueOnSelectState:g,multiSelectable:v,selected:j}=Wk(o,{resetValueOnSelectState:"resetValueOnSelect",multiSelectable(E){return Array.isArray(E.selectedValue)},selected(E){return wP(E.selectedValue,s)}}),k=b.useCallback(E=>{const S=J(B({},E),{value:s});return d?d(S):S},[s,d]);a=a??!v,r=r??(s!=null&&!v);const y=p.onClick,w=He(a),C=He(i),x=He((m=l??g)!=null?m:v),_=He(r),F=ne(E=>{y?.(E),!E.defaultPrevented&&(Rk(E)||Nk(E)||(s!=null&&(C(E)&&(x(E)&&o?.resetValue(),o?.setSelectedValue(S=>Array.isArray(S)?S.includes(s)?S.filter(I=>I!==s):[...S,s]:s)),w(E)&&o?.setValue(s)),_(E)&&o?.hide()))}),D=p.onKeyDown,M=ne(E=>{if(D?.(E),E.defaultPrevented)return;const S=o?.getState().baseElement;if(!S||$s(S))return;(E.key.length===1||E.key==="Backspace"||E.key==="Delete")&&(queueMicrotask(()=>S.focus()),Xn(S)&&o?.setValue(S.value))});v&&j!=null&&(p=B({"aria-selected":j},p)),p=lt(p,E=>f.jsx(hB.Provider,{value:s,children:f.jsx(gB.Provider,{value:j??!1,children:E})}),[s,j]);const R=b.useContext(t3);p=J(B({role:_P(R),children:s},p),{onClick:F,onKeyDown:M});const P=He(u);return p=ju(J(B({store:o},p),{getItem:k,moveOnKeyPress:E=>{if(!P(E))return!1;const S=new Event("combobox-item-move"),I=o?.getState().baseElement;return I?.dispatchEvent(S),!0}})),p=ng(B({store:o,focusOnHover:c},p)),p}),CP=Zr(ie(function(e){const n=xP(e);return de(yP,n)})),DP="div",L3=fe(function(e){var n=e,{store:o,alwaysVisible:s}=n,r=ce(n,["store","alwaysVisible"]);const a=n3(!0),i=pB();o=o||i;const l=!!o&&o===a;Ye(o,!1);const c=b.useRef(null),u=Qn(r.id),d=o.useState("mounted"),p=yu(d,r.hidden,s),m=p?J(B({},r.style),{display:"none"}):r.style,h=o.useState(x=>Array.isArray(x.selectedValue)),g=ZR(c,"role",r.role),j=(g==="listbox"||g==="tree"||g==="grid")&&h||void 0,[k,y]=b.useState(!1),w=o.useState("contentElement");_e(()=>{if(!d)return;const x=c.current;if(!x||w!==x)return;const _=()=>{y(!!x.querySelector("[role='listbox']"))},F=new MutationObserver(_);return F.observe(x,{subtree:!0,childList:!0,attributeFilter:["role"]}
292),_(),()=>F.disconnect()},[d,w]),k||(r=B({role:"listbox","aria-multiselectable":j},r)),r=lt(r,x=>f.jsx(mB,{value:o,children:f.jsx(t3.Provider,{value:g,children:x})}),[o,g]);const C=u&&(!a||!l)?o.setContentElement:null;return r=J(B({id:u,hidden:p},r),{ref:Xe(C,c,r.ref),style:m}),Tn(r)}),FP=ie(function(e){const n=L3(e);return de(DP,n)}),EP="div";function IP(t,...e){if(!t)return!1;if("id"in t){const n=e.filter(Boolean).map(o=>`[aria-controls~="${o}"]`).join(", ");return n?t.matches(n):!1}return!1}var SP=fe(function(e){var n=e,{store:o,modal:s,tabIndex:r,alwaysVisible:a,autoFocusOnHide:i=!0,hideOnInteractOutside:l=!0}=n,c=ce(n,["store","modal","tabIndex","alwaysVisible","autoFocusOnHide","hideOnInteractOutside"]);const u=xu();o=o||u,Ye(o,!1);const d=o.useState("baseElement"),p=b.useRef(!1),m=Ze(o.tag,h=>h?.renderedItems.length);return c=L3(B({store:o,alwaysVisible:a},c)),c=Qh(J(B({store:o,modal:s,alwaysVisible:a,backdrop:!1,autoFocusOnShow:!1,finalFocus:d,preserveTabOrderAnchor:null,unstable_treeSnapshotKey:m},c),{getPersistentElements(){var h;const g=((h=c.getPersistentElements)==null?void 0:h.call(c))||[];if(!s||!o)return g;const{contentElement:v,baseElement:j}=o.getState();if(!j)return g;const k=$e(j),y=[];if(v?.id&&y.push(`[aria-controls~="${v.id}"]`),j?.id&&y.push(`[aria-controls~="${j.id}"]`),!y.length)return[...g,j];const w=y.join(","),C=k.querySelectorAll(w);return[...g,...C]},autoFocusOnHide(h){return du(i,h)?!1:p.current?(p.current=!1,!1):!0},hideOnInteractOutside(h){var g,v;const j=o?.getState(),k=(g=j?.contentElement)==null?void 0:g.id,y=(v=j?.baseElement)==null?void 0:v.id;if(IP(h.target,k,y))return!1;const w=typeof l=="function"?l(h):l;return w&&(p.current=h.type==="click"),w}})),c}),AP=Ci(ie(function(e){const n=SP(e);return de(EP,n)}),xu);b.createContext(null);b.createContext(null);var MP=Nn([Jr],[ki]),TP=MP.useContext,NP=fu()&&Mk();function RP(t={}){var e=t,{tag:n}=e,o=Ch(e,["tag"]);const s=bu(o.store,Vk(n,["value","rtl"])),r=n?.getState(),a=s?.getState(),i=ae(o.activeId,a?.activeId,o.defaultActiveId,null),l=Qk(Ge(ge({},o),{activeId:i,includesBaseElement:ae(o.includesBaseElement,a?.includesBaseElement,!0),orientation:ae(o.orientation,a?.orientation,"vertical"),focusLoop:ae(o.focusLoop,a?.focusLoop,!0),focusWrap:ae(o.focusWrap,a?.focusWrap,!0),virtualFocus:ae(o.virtualFocus,a?.virtualFocus,!0)})),c=b3(Ge(ge({},o),{placement:ae(o.placement,a?.placement,"bottom-start")})),u=ae(o.value,a?.value,o.defaultValue,""),d=ae(o.selectedValue,a?.selectedValue,r?.values,o.defaultSelectedValue,""),p=Array.isArray(d),m=Ge(ge(ge({},l.getState()),c.getState()),{value:u,selectedValue:d,resetValueOnSelect:ae(o.resetValueOnSelect,a?.resetValueOnSelect,p),resetValueOnHide:ae(o.resetValueOnHide,a?.resetValueOnHide,p&&!n),activeValue:a?.activeValue}),h=In(m,l,c,s);return NP&&Nt(h,()=>Et(h,["virtualFocus"],()=>{h.setState("virtualFocus",!1)})),Nt(h,()=>{if(n)return Jt(Et(h,["selectedValue"],g=>{Array.isArray(g.selectedValue)&&n.setValues(g.selectedValue)}),Et(n,["values"],g=>{h.setState("selectedValue",g.values)}))}),Nt(h,()=>Et(h,["resetValueOnHide","mounted"],g=>{g.resetValueOnHide&&(g.mounted||h.setState("value",u))})),Nt(h,()=>Et(h,["open"],g=>{g.open||(h.setState("activeId",i),h.setState("moves",0))})),Nt(h,()=>Et(h,["moves","activeId"],(g,v)=>{g.moves===v.moves&&h.setState("activeValue",void 0)})),Nt(h,()=>yc(h,["moves","renderedItems"],(g,v)=>{if(g.moves===v.moves)return;const{activeId:j}=h.getState(),k=l.item(j);h.setState("activeValue",k?.value)})),Ge(ge(ge(ge({},c),l),h),{tag:n,setValue:g=>h.setState("value",g),resetValue:()=>h.setState("value",m.value),setSelectedValue:g=>h.setState("selectedValue",g)})}function OP(t){const e=TP();return t=J(B({},t),{tag:t.tag!==void 0?t.tag:e}),dB(t)}function BP(t,e,n){return Gr(e,[n.tag]),et(t,n,"value","setValue"),et(t,n,"selectedValue","setSelectedValue"),et(t,n,"resetValueOnHide"),et(t,n,"resetValueOnSelect"),Object.assign(e3(v3(t,e,n),e,n),{tag:n.tag})}function LP(t={}){t=OP(t);const[e,n]=vu(RP,t);return BP(e,n,t)}function PP(t={}){const e=LP(t);return f.jsx(fB,{value:e,children:t.children})}const zP=typeof window<"u"?b.useLayoutEffect:b.useEffect;function $P(t,e,n,o){const s=b.useRef(e);zP(()=>{s.current=e},[e]),b.useEffect(()=>{const r=window;if(!(r&&r.addEventListener))return;const a=i=>{s.current(i)};return r.addEventListener(t,a,o),()=>{r.removeEventListener(t,a,o)}},[t,n,o])}function HP(t,e,n="mousedown",o={}){$P(n,s=>{const r=s.target;if(!r||!r.isConnected)return;(Array.isArray(t)?t.filter(i=>!!i.current).every(i=>i.current&&!i.current.contains(r)):t.current&&!t.current.contains(r))&&e(s)},void 0,o)}function VP({...t}){return f.jsx(PP,{includesBaseElement:!1,resetValueOnHide:!0,...t})}const og=b.forwardRef(({className:t,...e},n)=>f.jsx(FP,{ref:n,className:Se("tiptap-combobox-list",t),...e}));og.displayName="ComboboxList";const UP=b.forwardRef(({className:t,...e},n)=>f.jsx(AP,{ref:n,className:Se("tiptap-combobox-popover",t),...e}));UP.displayName="ComboboxPopover";const P3=b.forwardRef(({className:t,...e},n)=>f.jsx(kP,{ref:n,autoSelect:!0,...e,className:Se("tiptap-combobox",t)}));P3.displayName="Combobox";const z3=b.forwardRef(({className:t,...e},n)=>f.jsx(CP,{ref:n,className:Se("tiptap-combobox-item",t),...e}));z3.displayName="ComboboxItem";const $3=b.forwardRef(({as:t="div",...e},n)=>{const o={...e};return t==="label"&&(o.onMouseDown=s=>{s.target.closest("button, input, select, textarea")||(e.onMouseDown?.(s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}),b.createElement(t,{...o,ref:n,className:Se("tiptap-label",e.className)})});$3.displayName="Label";function H3({children:t,trigger:e,value:n,onOpenChange:o,onValueChange:s,onValuesChange:r,...a}){const i=!Cu(),[l,c]=b.useState(!1),u=!!r||i,d=b.useCallback(h=>{a.open===void 0&&c(h),o?.(h)},[a.open,o]),p=b.useMemo(()=>({isRootMenu:i,open:a.open??l}),[i,a.open,l]),m=f.jsxs(mP,{open:l,setOpen:d,setValues:r,showTimeout:100,...a,children:[e,f.jsx(K3.Provider,{value:p,children:f.jsx(W3.Provider,{value:u,children:t})})]});
292return u?f.jsx(VP,{value:n,setValue:s,children:m}):m}function V3({children:t,className:e,ref:n,onClickOutside:o,...s}){const r=b.useRef(null),{open:a}=GP(),i=ZP();return HP(r,o||(()=>{})),f.jsx(WL,{ref:fk(r,n),className:Se("tiptap-menu-content",e),"data-side":i,"data-state":a?"open":"closed",gutter:4,flip:!0,unmountOnHide:!0,...s,children:t})}const sg=b.forwardRef(({className:t,...e},n)=>f.jsx(JL,{ref:n,...e,className:Se("tiptap-menu-button",t)}));sg.displayName="MenuButton";const qP=b.forwardRef(({className:t,...e},n)=>f.jsx(QL,{ref:n,...e,className:Se("tiptap-menu-button-arrow",t)}));qP.displayName="MenuButtonArrow";const Fi=b.forwardRef(({className:t,...e},n)=>f.jsx(nP,{ref:n,...e,className:Se("tiptap-menu-group",t)}));Fi.displayName="MenuGroup";const rg=b.forwardRef((t,e)=>f.jsx($3,{ref:e,...t}));rg.displayName="MenuGroupLabel";const WP=b.forwardRef(({className:t,...e},n)=>f.jsx(lP,{ref:n,...e,className:Se("tiptap-menu-item-check",t)}));WP.displayName="MenuItemCheck";const U3=b.forwardRef(({className:t,...e},n)=>f.jsx(dP,{ref:n,...e,className:Se("tiptap-menu-item-radio",t)}));U3.displayName="MenuItemRadio";const q3=function({name:e,value:n,preventClose:o,className:s,...r}){const a=Cu(),i=KP(),l=JP(a,o),c={blurOnHoverEnd:!1,focusOnHover:!0,className:Se("tiptap-menu-item",s),...r};return i?f.jsx(z3,{...c,hideOnClick:l}):e&&n?f.jsx(U3,{...c,hideOnClick:!0,name:e,value:n}):f.jsx(rP,{...c})},W3=b.createContext(!1),K3=b.createContext({isRootMenu:!1,open:!1}),KP=()=>b.useContext(W3),GP=()=>b.useContext(K3);function ZP(){const t=B3();return Ze(t,n=>n.currentPlacement?.split("-")[0]||"bottom")}function JP(t,e){return b.useCallback(n=>(n.currentTarget.hasAttribute("aria-expanded")||e||t?.hideAll(),!1),[t,e])}function YP({shortcutKeys:t=cf}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const XP=b.forwardRef(({editor:t,text:e,hideWhenUnavailable:n=!1,onDownloaded:o,resolveFileUrl:s,showShortcut:r=!1,onClick:a,children:i,...l},c)=>{const{editor:u}=oe(t),{isVisible:d,canDownload:p,handleDownload:m,label:h,shortcutKeys:g,Icon:v}=gz({editor:u,hideWhenUnavailable:n,onDownloaded:o,resolveFileUrl:s}),j=b.useCallback(async k=>{a?.(k),!k.defaultPrevented&&await m()},[m,a]);return d?f.jsx(je,{type:"button","data-style":"ghost","data-active-state":"off",role:"button",tabIndex:-1,disabled:!p,"data-disabled":!p,"aria-label":h,tooltip:h,onClick:j,...l,ref:c,children:i??f.jsxs(f.Fragment,{children:[f.jsx(v,{className:"tiptap-button-icon"}),e&&f.jsx("span",{className:"tiptap-button-text",children:e}),r&&f.jsx(YP,{shortcutKeys:g})]})}):null});XP.displayName="ImageDownloadButton";const G3=["shift","alt","meta","mod","ctrl","control"],QP={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Qo(t){return(QP[t.trim()]||t.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Z3(t){return G3.includes(t)}function Kd(t,e=","){return t.toLowerCase().split(e)}function Gd(t,e="+",n=">",o=!1,s){let r=[],a=!1;t=t.trim(),t.includes(n)?(a=!0,r=t.toLocaleLowerCase().split(n).map(c=>Qo(c))):r=t.toLocaleLowerCase().split(e).map(c=>Qo(c));const i={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod"),useKey:o},l=r.filter(c=>!G3.includes(c));return{...i,keys:l,description:s,isSequence:a,hotkey:t}}typeof document<"u"&&(document.addEventListener("keydown",t=>{t.code!==void 0&&J3([Qo(t.code)])}),document.addEventListener("keyup",t=>{t.code!==void 0&&Y3([Qo(t.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{mo.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{mo.clear()},0)}));const mo=new Set;function ag(t){return Array.isArray(t)}function ez(t,e=","){return(ag(t)?t:t.split(e)).every(n=>mo.has(n.trim().toLowerCase()))}function J3(t){const e=Array.isArray(t)?t:[t];mo.has("meta")&&mo.forEach(n=>!Z3(n)&&mo.delete(n.toLowerCase())),e.forEach(n=>mo.add(n.toLowerCase()))}function Y3(t){const e=Array.isArray(t)?t:[t];t==="meta"?mo.clear():e.forEach(n=>mo.delete(n.toLowerCase()))}function tz(t,e,n){(typeof n=="function"&&n(t,e)||n===!0)&&t.preventDefault()}function nz(t,e,n){return typeof n=="function"?n(t,e):n===!0||n===void 0}const oz=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function sz(t){return X3(t,oz)}function X3(t,e=!1){const{target:n,composed:o}=t;let s,r;return rz(n)&&o?(s=t.composedPath()[0]&&t.composedPath()[0].tagName,r=t.composedPath()[0]&&t.composedPath()[0].role):(s=n&&n.tagName,r=n&&n.role),ag(e)?!!(s&&e&&e.some(a=>a.toLowerCase()===s.toLowerCase()||a===r)):!!(s&&e&&e)}function rz(t){return!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-")}function az(t,e){return t.length===0&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):e?t.some(n=>e.includes(n))||t.includes("*"):!0}const iz=(t,e,n=!1)=>{const{alt:o,meta:s,mod:r,shift:a,ctrl:i,keys:l,useKey:c}=e,{code:u,key:d,ctrlKey:p,metaKey:m,shiftKey:h,altKey:g}=t,v=Qo(u);if(c&&l?.length===1&&l.includes(d))return!0;
292if(!l?.includes(v)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!n){if(o!==g&&v!=="alt"||a!==h&&v!=="shift")return!1;if(r){if(!m&&!p)return!1}else if(s!==m&&v!=="meta"&&v!=="os"||i!==p&&v!=="ctrl"&&v!=="control")return!1}return l&&l.length===1&&l.includes(v)?!0:l?ez(l):!l},lz=b.createContext(void 0),cz=()=>b.useContext(lz);function Q3(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce((n,o)=>n&&Q3(t[o],e[o]),!0):t===e}const uz=b.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),dz=()=>b.useContext(uz);function pz(t){const e=b.useRef(void 0);return Q3(e.current,t)||(e.current=t),e.current}const Ab=t=>{t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},fz=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Rn(t,e,n,o){const s=b.useRef(null),r=b.useRef(!1),a=Array.isArray(n)?Array.isArray(o)?void 0:o:n,i=ag(t)?t.join(a?.delimiter):t,l=Array.isArray(n)?n:Array.isArray(o)?o:void 0,c=b.useCallback(e,l??[]),u=b.useRef(c);l?u.current=c:u.current=e;const d=pz(a),{activeScopes:p}=dz(),m=cz();return fz(()=>{if(d?.enabled===!1||!az(p,d?.scopes))return;let h=[],g;const v=(w,C=!1)=>
292{if(!(sz(w)&&!X3(w,d?.enableOnFormTags))){if(s.current!==null){const x=s.current.getRootNode();if((x instanceof Document||x instanceof ShadowRoot)&&x.activeElement!==s.current&&!s.current.contains(x.activeElement)){Ab(w);return}}w.target?.isContentEditable&&!d?.enableOnContentEditable||Kd(i,d?.delimiter).forEach(x=>{if(x.includes(d?.splitKey??"+")&&x.includes(d?.sequenceSplitKey??">")){console.warn(`Hotkey ${x} contains both ${d?.splitKey??"+"} and ${d?.sequenceSplitKey??">"} which is not supported.`);return}const _=Gd(x,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description);if(_.isSequence){g=setTimeout(()=>{h=[]},d?.sequenceTimeoutMs??1e3);const F=_.useKey?w.key:Qo(w.code);if(Z3(F.toLowerCase()))return;h.push(F);const D=_.keys?.[h.length-1];if(F!==D){h=[],g&&clearTimeout(g);return}h.length===_.keys?.length&&(u.current(w,_),g&&clearTimeout(g),h=[])}else if(iz(w,_,d?.ignoreModifiers)||_.keys?.includes("*")){if(d?.ignoreEventWhen?.(w)||C&&r.current)return;if(tz(w,_,d?.preventDefault),!nz(w,_,d?.enabled)){Ab(w);return}u.current(w,_),C||(r.current=!0)}})}},j=w=>{w.code!==void 0&&(J3(Qo(w.code)),(d?.keydown===void 0&&d?.keyup!==!0||d?.keydown)&&v(w))},k=w=>{w.code!==void 0&&(Y3(Qo(w.code)),r.current=!1,d?.keyup&&v(w,!0))},y=s.current||a?.document||document;return y.addEventListener("keyup",k,a?.eventListenerOptions),y.addEventListener("keydown",j,a?.eventListenerOptions),m&&Kd(i,d?.delimiter).forEach(w=>m.addHotkey(Gd(w,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description))),()=>{y.removeEventListener("keyup",k,a?.eventListenerOptions),y.removeEventListener("keydown",j,a?.eventListenerOptions),m&&Kd(i,d?.delimiter).forEach(w=>m.removeHotkey(Gd(w,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description))),h=[],g&&clearTimeout(g)}},[i,d,p]),s}const ey=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M12 2C12.5523 2 13 2.44772 13 3V14.5858L17.2929 10.2929C17.6834 9.90237 18.3166 9.90237 18.7071 10.2929C19.0976 10.6834 19.0976 11.3166 18.7071 11.7071L12.7071 17.7071C12.3166 18.0976 11.6834 18.0976 11.2929 17.7071L5.29289 11.7071C4.90237 11.3166 4.90237 10.6834 5.29289 10.2929C5.68342 9.90237 6.31658 9.90237 6.70711 10.2929L11 14.5858V3C11 2.44772 11.4477 2 12 2Z",fill:"currentColor"}),f.jsx("path",{d:"M5 20C4.44772 20 4 20.4477 4 21C4 21.5523 4.44772 22 5 22H19C19.5523 22 20 21.5523 20 21C20 20.4477 19.5523 20 19 20H5Z",fill:"currentColor"})]}));ey.displayName="ArrowDownToLineIcon";const cf="mod+shift+d";function ty(t,e){const n=t.match(/\.([a-zA-Z0-9]+)(?:\?|#|$)/);return n&&n[1]?`.${n[1].toLowerCase()}`:e&&{"image/jpeg":".jpg","image/jpg":".jpg","image/png":".png","image/gif":".gif","image/webp":".webp","image/svg+xml":".svg","image/bmp":".bmp"}[e.toLowerCase()]||".jpg"}function Fu(t){return!t||!t.isEditable||!Ir(t,["image"])?!1:jn(t,["image"])}function ny(t){if(!t||!Fu(t))return null;const{selection:e}=t.state;if(e instanceof U){const n=e.node;if(n.type.name==="image")return{src:n.attrs.src,alt:n.attrs.alt,title:n.attrs.title}}return null}async function Mb(t,e){try{const n=await fetch(t);if(!n.ok)return!1;const o=await n.blob(),s=URL.createObjectURL(o),a=/\.[a-zA-Z0-9]+$/.test(e)?e:e+ty(t,n.headers.get("content-type")||void 0),i=document.createElement("a");return i.href=s,i.download=a,i.style.display="none",document.body.appendChild(i),i.click(),i.remove(),URL.revokeObjectURL(s),!0}catch(n){return console.warn("Fetch download failed:",n),!1}}function Tb(t,e){try{const o=/\.[a-zA-Z0-9]+$/.test(e)?e:e+ty(t),s=document.createElement("a");return s.href=t,s.download=o,s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s),!0}catch(n){return console.warn("Direct download failed:",n),!1}}function Yi(t){try{return window.open(t,"_blank"),!0}catch(e){return console.error("Failed to open image:",e),!1}}async function mz(t,e,n,o="auto"){if(!t||!Fu(t))return!1;const s=ny(t);if(!s?.src)return!1;try{let r=s.src;n&&(r=await n(s.src));const a=window.location.href,i=Gp(r,a);if(i==="#")return console.error("Invalid or unsafe URL after sanitization"),!1;const l=e||s.alt||s.title||`image-${Date.now()}`;switch(o){case"open":return Yi(i);case"download":return i.startsWith(window.location.origin)||i.startsWith("data:")?Tb(i,l):await Mb(i,l)||Yi(i);case"auto":default:return i.startsWith("data:")||i.startsWith(window.location.origin)?Tb(i,l):await Mb(i,l)?!0:Yi(i)}}catch(r){console.error("Failed to download image:",r);try{const a=window.location.href,i=Gp(s.src,a);if(i!=="#")return Yi(i)}catch{}return!1}}function hz(t){const{editor:e,hideWhenUnavailable:n}=t;return!e||!e.isEditable||!Ir(e,["image","imageUpload"])?!1:n?Fu(e):!0}function gz(t){const{editor:e,hideWhenUnavailable:n=!1,onDownloaded:o,resolveFileUrl:s,downloadMethod:r="auto"}=t||{},{editor:a}=oe(e),i=zt(),[l,c]=b.useState(!0),u=Fu(a);b.useEffect(()=>{if(!a)return;const p=()=>{c(hz({editor:a,hideWhenUnavailable:n}))};return p(),a.on("selectionUpdate",p),()=>{a.off("selectionUpdate",p)}},[a,n]);const d=b.useCallback(async()=>
292{if(!a)return!1;const p=ny(a),m=p?.alt||p?.title,h=await mz(a,m,s,r);return h&&o?.(m),h},[a,o,s,r]);return Rn(cf,p=>{p.preventDefault(),d()},{enabled:l&&u,enableOnContentEditable:!i,enableOnFormTags:!0}),{isVisible:l,canDownload:u,handleDownload:d,label:"Download image",shortcutKeys:cf,Icon:ey}}function oy({shortcutKeys:t=uf}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const bz=b.forwardRef(({editor:t,text:e,hideWhenUnavailable:n=!1,onDuplicated:o,showShortcut:s=!1,onClick:r,children:a,...i},l)=>{const{editor:c}=oe(t),{isVisible:u,handleDuplicate:d,label:p,shortcutKeys:m,Icon:h}=ay({editor:c,hideWhenUnavailable:n,onDuplicated:o}),g=b.useCallback(v=>{r?.(v),!v.defaultPrevented&&d()},[d,r]);return u?f.jsx(je,{type:"button","data-style":"ghost",role:"button",tabIndex:-1,"aria-label":p,tooltip:"Duplicate",onClick:g,...i,ref:l,children:a??f.jsxs(f.Fragment,{children:[f.jsx(h,{className:"tiptap-button-icon"}),e&&f.jsx("span",{className:"tiptap-button-text",children:e}),s&&f.jsx(oy,{shortcutKeys:m})]})}):null});bz.displayName="DuplicateButton";const sy=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 9C9.44772 9 9 9.44772 9 10V20C9 20.5523 9.44772 21 10 21H20C20.5523 21 21 20.5523 21 20V10C21 9.44772 20.5523 9 20 9H10ZM7 10C7 8.34315 8.34315 7 10 7H20C21.6569 7 23 8.34315 23 10V20C23 21.6569 21.6569 23 20 23H10C8.34315 23 7 21.6569 7 20V10Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C3.45228 3 3 3.45228 3 4V14C3 14.5477 3.45228 15 4 15C4.55228 15 5 15.4477 5 16C5 16.5523 4.55228 17 4 17C2.34772 17 1 15.6523 1 14V4C1 2.34772 2.34772 1 4 1H14C15.6523 1 17 2.34772 17 4C17 4.55228 16.5523 5 16 5C15.4477 5 15 4.55228 15 4C15 3.45228 14.5477 3 14 3H4Z",fill:"currentColor"})]}));sy.displayName="CopyIcon";const uf="mod+d";function ry(t){if(!t||!t.isEditable)return!1;try{const{state:e}=t,{selection:n}=e;return n instanceof U?!!n.node:!!n.$anchor.node(1)}catch{return!1}}function vz(t){if(!t||!t.isEditable)return!1;try{const{state:e}=t,{selection:n}=e,o=t.chain().focus();if(n instanceof U){const r=n.node,a=n.to;return o.insertContentAt(a,r.toJSON()).run(),!0}const s=n.$anchor;for(let r=1;r<=s.depth;r++){const a=s.node(r);if(a.type.name==="doc"||!a.type.spec.group)continue;const i=s.start(r),l=Math.min(i+a.nodeSize,e.doc.content.size);return o.insertContentAt(l,a.toJSON()).run(),!0}return!1}catch{return!1}}function jz(t){const{editor:e,hideWhenUnavailable:n}=t;return!e||!e.isEditable?!1:n&&!e.isActive("code")?ry(e):!0}function ay(t){const{editor:e,hideWhenUnavailable:n=!1,onDuplicated:o}=t||{},{editor:s}=oe(e),r=zt(),[a,i]=b.useState(!0),l=ry(s);b.useEffect(()=>{if(!s)return;const u=()=>{i(jz({editor:s,hideWhenUnavailable:n}))};return u(),s.on("selectionUpdate",u),()=>{s.off("selectionUpdate",u)}},[s,n]);const c=b.useCallback(()=>{if(!s)return!1;const u=vz(s);return u&&o?.(),u},[s,o]);return Rn(uf,u=>{u.preventDefault(),c()},{enabled:a&&l,enableOnContentEditable:!r,enableOnFormTags:!0}),{isVisible:a,handleDuplicate:c,canDuplicate:l,label:"Duplicate node",shortcutKeys:uf,Icon:sy}}function iy({shortcutKeys:t=df}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const kz=b.forwardRef(({editor:t,text:e,copyWithFormatting:n=!0,hideWhenUnavailable:o=!1,onCopied:s,showShortcut:r=!1,onClick:a,children:i,...l},c)=>{const{editor:u}=oe(t),{isVisible:d,handleCopyToClipboard:p,label:m,shortcutKeys:h,Icon:g}=uy({editor:u,copyWithFormatting:n,hideWhenUnavailable:o,onCopied:s}),v=b.useCallback(async j=>{a?.(j),!j.defaultPrevented&&await p()},[p,a]);return d?f.jsx(je,{type:"button","data-style":"ghost",role:"button",tabIndex:-1,"aria-label":m,tooltip:"Copy to clipboard",onClick:v,...l,ref:c,children:i??f.jsxs(f.Fragment,{children:[f.jsx(g,{className:"tiptap-button-icon"}),e&&f.jsx("span",{className:"tiptap-button-text",children:e}),r&&f.jsx(iy,{shortcutKeys:h})]})}):null});kz.displayName="CopyToClipboardButton";const ly=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"
292currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M15 1C16.1046 1 17 1.89543 17 3H18C18.7956 3 19.5585 3.3163 20.1211 3.87891C20.6837 4.44151 21 5.20435 21 6V20C21 20.7957 20.6837 21.5585 20.1211 22.1211C19.5585 22.6837 18.7957 23 18 23H6C5.20435 23 4.44151 22.6837 3.87891 22.1211C3.3163 21.5585 3 20.7957 3 20V6C3 5.20435 3.3163 4.44152 3.87891 3.87891C4.44152 3.3163 5.20435 3 6 3H7C7 1.89543 7.89543 1 9 1H15ZM6 5C5.73478 5 5.4805 5.10543 5.29297 5.29297C5.10543 5.4805 5 5.73478 5 6V20L5.00488 20.0986C5.02757 20.3276 5.12883 20.5429 5.29297 20.707C5.48051 20.8946 5.73478 21 6 21H18C18.2652 21 18.5195 20.8946 18.707 20.707C18.8946 20.5195 19 20.2652 19 20V6C19 5.73478 18.8946 5.48051 18.707 5.29297C18.5429 5.12883 18.3276 5.02757 18.0986 5.00488L18 5H17C17 6.10457 16.1046 7 15 7H9C7.89543 7 7 6.10457 7 5H6ZM9 5H15V3H9V5Z",fill:"currentColor"})}));ly.displayName="ClipboardIcon";const df="mod+c";async function yz(t,e){try{if(e&&navigator.clipboard&&"write"in navigator.clipboard){const n=new Blob([e],{type:"text/html"}),o=new ClipboardItem({"text/html":n});await navigator.clipboard.write([o])}}catch{await navigator.clipboard.writeText(t)}}function wz(t){const{selection:e}=t,{empty:n}=e;return!n}function cy(t){if(!t||!t.isEditable)return!1;const e=t.state.tr;return wz(e)}function _z(t,e=!0){const{selection:n}=t.state,{$anchor:o}=n;let s=n.content();if(n.empty||n instanceof Y){const i=o.node(1);s=new W(z.from(i),0,0)}const r=s.content.textBetween(0,s.content.size,`
293`),a=e?t.view.serializeForClipboard(s).dom.innerHTML:void 0;return{textContent:r,htmlContent:a}}async function xz(t,e=!0){if(!t||!t.isEditable)return!1;try{const{textContent:n,htmlContent:o}=_z(t,e);return await yz(n,o),!0}catch{return!1}}function Cz(t){const{editor:e,hideWhenUnavailable:n}=t;return!e||!e.isEditable?!1:n&&!e.isActive("code")?cy(e):!0}function uy(t){const{editor:e,copyWithFormatting:n=!0,hideWhenUnavailable:o=!1,onCopied:s}=t||{},{editor:r}=oe(e),a=zt(),[i,l]=b.useState(!0),c=cy(r);b.useEffect(()=>{if(!r)return;const d=()=>{l(Cz({editor:r,hideWhenUnavailable:o}))};return d(),r.on("selectionUpdate",d),()=>{r.off("selectionUpdate",d)}},[r,o]);const u=b.useCallback(async()=>{if(!r)return!1;const d=await xz(r,n);return d&&s?.(),d},[r,n,s]);return Rn(df,d=>{d.preventDefault(),u()},{enabled:i&&c,enableOnContentEditable:!a,enableOnFormTags:!0}),{isVisible:i,handleCopyToClipboard:u,canCopyToClipboard:c,label:"Copy to clipboard",shortcutKeys:df,Icon:ly}}function dy({shortcutKeys:t=pf}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const Dz=b.forwardRef(({editor:t,text:e,hideWhenUnavailable:n=!1,onDeleted:o,showShortcut:s=!1,onClick:r,children:a,...i},l)=>{const{editor:c}=oe(t),{isVisible:u,handleDeleteNode:d,label:p,shortcutKeys:m,Icon:h}=fy({editor:c,hideWhenUnavailable:n,onDeleted:o}),g=b.useCallback(v=>{r?.(v),!v.defaultPrevented&&d()},[d,r]);return u?f.jsx(je,{type:"button","data-style":"ghost",role:"button",tabIndex:-1,"aria-label":p,tooltip:"Delete",onClick:g,...i,ref:l,children:a??f.jsxs(f.Fragment,{children:[f.jsx(h,{className:"tiptap-button-icon"}),e&&f.jsx("span",{className:"tiptap-button-text",children:e}),s&&f.jsx(dy,{shortcutKeys:m})]})}):null});Dz.displayName="DeleteNodeButton";const pf="backspace";function py(t){if(!t||!t.isEditable)return!1;const{state:e}=t,{selection:n}=e;if(n instanceof U)return!0;const o=n.$anchor;for(let s=o.depth;s>0;s--){const r=o.node(s),a=o.before(s);if(e.tr.delete(a,a+r.nodeSize).doc!==e.doc)return!0}return!1}function Nb(t,e,n){const o=t.chain().focus();return o.deleteRange({from:e,to:e+n}).run()?!0:o.setNodeSelection(e).deleteSelection().run()}function Fz(t){if(!t||!t.isEditable)return!1;try{const{state:e}=t,{selection:n}=e;if(n instanceof U){const s=n.from,r=n.node;return r?Nb(t,s,r.nodeSize):!1}const o=n.$anchor;for(let s=o.depth;s>0;s--){const r=o.node(s),a=o.before(s);if(r&&r.isBlock)return Nb(t,a,r.nodeSize)}return!1}catch{return!1}}function Ez(t){const{editor:e,hideWhenUnavailable:n}=t;return!e||!e.isEditable?!1:n&&!e.isActive("code")?py(e):!0}function fy(t){const{editor:e,hideWhenUnavailable:n=!1,onDeleted:o}=t||{},{editor:s}=oe(e),r=zt(),[a,i]=b.useState(!0),l=py(s);b.useEffect(()=>{if(!s)return;const u=()=>{i(Ez({editor:s,hideWhenUnavailable:n}))};return u(),s.on("selectionUpdate",u),()=>{s.off("selectionUpdate",u)}},[s,n]);const c=b.useCallback(()=>
293{if(!s)return!1;const u=Fz(s);return u&&o?.(),u},[s,o]);return Rn(pf,u=>{u.preventDefault(),c()},{enabled:a&&l,enableOnContentEditable:!r,enableOnFormTags:!0}),{isVisible:a,handleDeleteNode:c,canDeleteNode:l,label:"Delete",shortcutKeys:pf,Icon:bh}}function Rb(t,e){return Array.from({length:Math.ceil(t.length/e)},(n,o)=>t.slice(o*e,o*e+e))}function Ob(t,e){if(!t)return null;const{state:n}=t,{from:o,to:s,empty:r,$from:a}=n.selection;if(r)return a.marks().find(u=>u.type.name===e)?.attrs??null;const i=new Set;let l=null;return n.doc.nodesBetween(o,s,c=>{if(c.isText)for(const u of c.marks)u.type.name===e&&!i.has(u.type.name)&&(i.add(u.type.name),l=u.attrs)}),l}function Ei(t,e=!0){if(!t)return null;const{state:n}=t,{selection:o}=n;if(o instanceof U){const l=o.node,c=o.from;if(l&&Pt(c))return{node:l,pos:c}}if(o.empty&&!e)return null;const s=o.$anchor,r=1,a=s.node(r),i=s.before(r);return{node:a,pos:i}}function Iz(t,e){if(!t)return null;const n=t.extensionManager.extensions.find(o=>o.name===e);return n||(console.warn(`Extension "${e}" not found in the editor schema. Ensure it is included in the editor configuration.`),null)}const ff="mod+ctrl+l";function my(t){return!!(t&&t.isEditable)}function Sz(t){return Iz(t,"uniqueID")?.options?.attributeName||"data-id"}function hy(t){if(!my(t))return null;const e=Ei(t);if(!e)return null;const n=Sz(t),o=Az(e.node,n);return{node:e.node,nodeId:o,hasNodeId:o!==null}}function Az(t,e){if(!t?.attrs?.[e])return null;try{return t.attrs[e]}catch{return null}}function gy(t){return hy(t)?.hasNodeId??!1}async function Mz(t,e,n){const o=hy(t);if(!o)return!1;const{nodeId:s,hasNodeId:r}=o;if(e?.(s),n?.(!r),!r||!s)return!1;try{const a=new URL(window.location.href);return a.searchParams.set("source","copy_link"),a.hash=s,await navigator.clipboard.writeText(a.toString()),!0}catch(a){return console.error("Failed to copy node ID to clipboard:",a),!1}}function Tz(t){const{editor:e,hideWhenUnavailable:n}=t;if(!my(e))return!1;const o=!!Ei(e);return n?gy(e):o}function by(t){const{editor:e,hideWhenUnavailable:n=!1,onNodeIdNotFound:o,onExtractedNodeId:s,onCopied:r}=t||{},{editor:a}=oe(e),i=zt(),[l,c]=b.useState(!0),u=gy(a);b.useEffect(()=>{if(!a)return;const p=()=>{c(Tz({editor:a,hideWhenUnavailable:n}))};return p(),a.on("selectionUpdate",p),()=>{a.off("selectionUpdate",p)}},[a,n]);const d=b.useCallback(async()=>{const p=await Mz(a,s,o);return p&&r?.(),p},[a,s,o,r]);return Rn(ff,p=>{p.preventDefault(),d()},{enabled:l&&u,enableOnContentEditable:!i,enableOnFormTags:!0}),{isVisible:l,handleCopyAnchorLink:d,canCopyAnchorLink:u,label:"Copy anchor link",shortcutKeys:ff,Icon:cu}}function vy({shortcutKeys:t=ff}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const Nz=b.forwardRef(({editor:t,text:e,hideWhenUnavailable:n=!1,onNodeIdNotFound:o,onExtractedNodeId:s,onCopied:r,showShortcut:a=!1,onClick:i,children:l,...c},u)=>{const{editor:d}=oe(t),{isVisible:p,handleCopyAnchorLink:m,label:h,shortcutKeys:g,Icon:v}=by({editor:d,hideWhenUnavailable:n,onNodeIdNotFound:o,onExtractedNodeId:s,onCopied:r}),j=b.useCallback(k=>{i?.(k),!k.defaultPrevented&&m()},[m,i]);return p?f.jsx(je,{type:"button","data-style":"ghost",role:"button",tabIndex:-1,"aria-label":h,tooltip:"Copy anchor link",onClick:j,...c,ref:u,children:l??f.jsxs(f.Fragment,{children:[f.jsx(v,{className:"tiptap-button-icon"}),e&&f.jsx("span",{className:"tiptap-button-text",children:e}),a&&f.jsx(vy,{shortcutKeys:g})]})}):null});Nz.displayName="CopyAnchorLinkButton";function Rz({shortcutKeys:t=mf}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const Oz=b.forwardRef(({editor:t,text:e,hideWhenUnavailable:n=!1,preserveMarks:o=["inlineThread"],onResetAllFormatting:s,showShortcut:r=!1,onClick:a,children:i,...l},c)=>{const{editor:u}=oe(t),{isVisible:d,canReset:p,handleResetFormatting:m,label:h,shortcutKeys:g,Icon:v}=wy({editor:u,preserveMarks:o,hideWhenUnavailable:n,onResetAllFormatting:s}),j=b.useCallback(k=>{a?.(k),!k.defaultPrevented&&m()},[m,a]);return d?f.jsx(je,{type:"button","data-style":"ghost",disabled:!p,"data-disabled":!p,"data-active-state":"off",role:"button",tabIndex:-1,"aria-label":h,tooltip:"Reset formatting",onClick:j,...l,ref:c,children:i??f.jsxs(f.Fragment,{children:[f.jsx(v,{className:"tiptap-button-icon"}),e&&f.jsx("span",{className:"tiptap-button-text",children:e}),r&&f.jsx(Rz,{shortcutKeys:g})]})}):null});Oz.displayName="ResetAllFormattingButton";const jy=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"
293currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M12 2L11.9962 2.00001C9.22213 2.01045 6.55946 3.0929 4.56496 5.02104L4.55289 5.0329L4 5.58579V3C4 2.44772 3.55228 2 3 2C2.44772 2 2 2.44772 2 3V8C2 8.55228 2.44772 9 3 9H8C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7H5.41422L5.96097 6.45325C7.58329 4.88786 9.7473 4.00897 12.0019 4.00001C13.5835 4.00038 15.1295 4.46955 16.4446 5.34825C17.7602 6.2273 18.7855 7.47673 19.391 8.93854C19.9965 10.4003 20.155 12.0089 19.8463 13.5607C19.5376 15.1126 18.7757 16.538 17.6569 17.6569C16.538 18.7757 15.1126 19.5376 13.5607 19.8463C12.0089 20.155 10.4003 19.9965 8.93853 19.391C7.47672 18.7855 6.22729 17.7602 5.34824 16.4446C4.46919 15.129 4 13.5823 4 12C4 11.4477 3.55228 11 3 11C2.44772 11 2 11.4477 2 12C2 13.9778 2.58649 15.9112 3.6853 17.5557C4.78412 19.2002 6.3459 20.4819 8.17317 21.2388C10.0004 21.9957 12.0111 22.1937 13.9509 21.8079C15.8907 21.422 17.6725 20.4696 19.0711 19.0711C20.4696 17.6726 21.422 15.8907 21.8079 13.9509C22.1937 12.0111 21.9957 10.0004 21.2388 8.17317C20.4819 6.34591 19.2002 4.78412 17.5557 3.68531C15.9112 2.5865 13.9778 2.00001 12 2Z",fill:"currentColor"})}));jy.displayName="RotateCcwIcon";const mf="mod+r";function Bz(t,e=[]){const{selection:n}=t,{empty:o,ranges:s}=n;return o||s.forEach(r=>{const a=r.$from.pos,i=r.$to.pos;t.doc.nodesBetween(a,i,(l,c)=>(l.isInline&&l.marks.forEach(u=>{e.includes(u.type.name)||t.removeMark(c,c+l.nodeSize,u.type)}),!0))}),t}function ky(t,e=[]){const{selection:n}=t,{empty:o,ranges:s}=n;if(o)return!1;for(const r of s){const a=r.$from.pos,i=r.$to.pos;let l=!1;if(t.doc.nodesBetween(a,i,c=>{if(!c.isInline)return!0;for(const u of c.marks)if(!e.includes(u.type.name))return l=!0,!1;return!0}),l)return!0}return!1}function yy(t,e){if(!t||!t.isEditable)return!1;const n=t.state.tr;return ky(n,e)}function Lz(t,e){if(!t||!t.isEditable)return!1;try{const{view:n,state:o}=t,{tr:s}=o,r=Bz(s,e);return n.dispatch(r),t.commands.focus(),!0}catch{return!1}}function Pz(t){const{editor:e,hideWhenUnavailable:n,preserveMarks:o}=t;return!e||!e.isEditable?!1:n&&!e.isActive("code")?yy(e,o):!0}function wy(t){const{editor:e,preserveMarks:n,hideWhenUnavailable:o=!1,onResetAllFormatting:s}=t||{},{editor:r}=oe(e),a=zt(),[i,l]=b.useState(!0),c=yy(r,n);b.useEffect(()=>{if(!r)return;const d=()=>{l(Pz({editor:r,hideWhenUnavailable:o,preserveMarks:n}))};return d(),r.on("selectionUpdate",d),()=>{r.off("selectionUpdate",d)}},[r,o,n]);const u=b.useCallback(()=>{if(!r)return!1;const d=Lz(r,n);return d&&s?.(),d},[r,s,n]);return Rn(mf,d=>{d.preventDefault(),u()},{enabled:i&&c,enableOnContentEditable:!a,enableOnFormTags:!0}),{isVisible:i,handleResetFormatting:u,canReset:c,label:"Reset formatting",shortcutKeys:mf,Icon:jy}}function zz({shortcutKeys:t=hf}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const _y=b.forwardRef(({editor:t,node:e,nodePos:n,text:o,trigger:s="/",hideWhenUnavailable:r=!1,onTriggered:a,showShortcut:i=!1,onClick:l,children:c,...u},d)=>{const{editor:p}=oe(t),{isVisible:m,canInsert:h,handleSlashCommand:g,label:v,shortcutKeys:j,Icon:k}=Vz({editor:p,node:e,nodePos:n,trigger:s,hideWhenUnavailable:r,onTriggered:a}),y=b.useCallback(w=>{l?.(w),!w.defaultPrevented&&g()},[g,l]);return m?f.jsx(je,{type:"button","data-style":"ghost",role:"button",tabIndex:-1,disabled:!h,"data-disabled":!h,"aria-label":v,tooltip:v,onClick:y,...u,ref:d,children:c??f.jsxs(f.Fragment,{children:[f.jsx(k,{className:"tiptap-button-icon"}),o&&f.jsx("span",{className:"tiptap-button-text",children:o}),i&&f.jsx(zz,{shortcutKeys:j})]})}):null});_y.displayName="SlashCommandTriggerButton";const xy=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{d:"M13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5V11H5C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13H11V19C11 19.5523 11.4477 20 12 20C12.5523 20 13 19.5523 13 19V13H19C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11H13V5Z",fill:"currentColor"})}));xy.displayName="PlusIcon";const hf="mod+/";function ig(t,e,n){if(!t||!t.isEditable||jn(t,["image"]))return!1;if(e||Pt(n)){if(Pt(n)&&n>=0)return!0;
293if(e)return vn({editor:t,node:e})!==null}return!0}function $z(t,e="/",n,o){if(!t||!t.isEditable||!ig(t,n,o))return!1;try{if(n!=null||Pt(o)){const c=vn({editor:t,node:n||void 0,nodePos:o||void 0});if(!c)return!1;const u=c.node.type.name==="paragraph"&&c.node.content.size===0,d=u?c.pos:c.pos+c.node.nodeSize;t.view.dispatch(t.view.state.tr.scrollIntoView().insertText(e,d,d));const p=e.length+1,m=u?c.pos+p:c.pos+c.node.nodeSize+p;return t.commands.focus(m),!0}const{$from:s}=t.state.selection,a=s.node().textContent.length===0,i=s.parentOffset===0,l=s.depth===0;if(!a||!i){const c=l?t.state.doc.content.size:s.after();return t.chain().insertContentAt(c,{type:"paragraph",content:[{type:"text",text:e}]}).focus().run()}return t.chain().insertContent({type:"text",text:e}).focus().run()}catch{return!1}}function Hz(t){const{editor:e,hideWhenUnavailable:n,node:o,nodePos:s}=t;return!e||!e.isEditable?!1:n&&!e.isActive("code")?ig(e,o,s):!0}function Vz(t){const{editor:e,node:n,nodePos:o,trigger:s="/",hideWhenUnavailable:r=!1,onTriggered:a}=t||{},{editor:i}=oe(e),l=zt(),[c,u]=b.useState(!0),d=ig(i,n,o);b.useEffect(()=>{if(!i)return;const m=()=>{u(Hz({editor:i,hideWhenUnavailable:r,node:n,nodePos:o}))};return m(),i.on("selectionUpdate",m),()=>{i.off("selectionUpdate",m)}},[i,r,n,o]);const p=b.useCallback(()=>{if(!i)return!1;const m=$z(i,s,n,o);return m&&a?.(s),m},[i,s,n,o,a]);return Rn(hf,m=>{m.preventDefault(),p()},{enabled:c&&d,enableOnContentEditable:!l,enableOnFormTags:!0},[c,d,p]),{isVisible:c,handleSlashCommand:p,canInsert:d,label:"Insert block",shortcutKeys:hf,trigger:s,Icon:xy}}function Uz({shortcutKeys:t=gf}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const lg=b.forwardRef(({editor:t,textColor:e,text:n,hideWhenUnavailable:o=!1,onApplied:s,showShortcut:r=!1,onClick:a,children:i,style:l,...c},u)=>{const{editor:d}=oe(t),{isVisible:p,canColorText:m,isActive:h,handleColorText:g,label:v,shortcutKeys:j,Icon:k}=Kz({editor:d,textColor:e,label:n||`Color text to ${e}`,hideWhenUnavailable:o,onApplied:s}),y=b.useCallback(C=>{a?.(C),!C.defaultPrevented&&g()},[g,a]),w=b.useMemo(()=>({...l,"--color-text-button-color":e}),[e,l]);return p?f.jsx(je,{type:"button","data-style":"ghost","data-active-state":h?"on":"off",role:"button",tabIndex:-1,disabled:!m,"data-disabled":!m,"aria-label":v,"aria-pressed":h,tooltip:v,onClick:y,style:w,...c,ref:u,children:i??f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"tiptap-button-color-text",style:{color:e},children:f.jsx(k,{className:"tiptap-button-icon",style:{color:e,flexGrow:1}})}),n&&f.jsx("span",{className:"tiptap-button-text",children:n}),r&&f.jsx(Uz,{shortcutKeys:j})]})}):null});lg.displayName="ColorTextButton";const cg=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8944 5.55279C12.725 5.214 12.3787 5 12 5C11.6212 5 11.2749 5.214 11.1055 5.55279L5.10555 17.5528C4.85856 18.0468 5.05878 18.6474 5.55276 18.8944C6.04674 19.1414 6.64741 18.9412 6.8944 18.4472L8.64957 14.9369C8.75862 14.9777 8.87671 15 9 15H15C15.1233 15 15.2413 14.9777 15.3504 14.9369L17.1055 18.4472C17.3525 18.9412 17.9532 19.1414 18.4472 18.8944C18.9412 18.6474 19.1414 18.0468 18.8944 17.5528L12.8944 5.55279ZM14.3819 13L12 8.23607L9.61801 13H14.3819Z",fill:"currentColor"})}));cg.displayName="TextColorSmallIcon";const gf="mod+shift+t",Cy=[{label:"Default text",value:"var(--tt-color-text)",border:"var(--tt-color-text-contrast)"},{label:"Gray text",value:"var(--tt-color-text-gray)",border:"var(--tt-color-text-gray-contrast)"},{label:"Brown text",value:"var(--tt-color-text-brown)",border:"var(--tt-color-text-brown-contrast)"},{label:"Orange text",value:"var(--tt-color-text-orange)",border:"var(--tt-color-text-orange-contrast)"},{label:"Yellow text",value:"var(--tt-color-text-yellow)",border:"var(--tt-color-text-yellow-contrast)"},{label:"Green text",value:"var(--tt-color-text-green)",border:"var(--tt-color-text-green-contrast)"},{label:"Blue text",value:"var(--tt-color-text-blue)",border:"var(--tt-color-text-blue-contrast)"},{label:"Purple text",value:"var(--tt-color-text-purple)",border:"var(--tt-color-text-purple-contrast)"},{label:"Pink text",value:"var(--tt-color-text-pink)",border:"var(--tt-color-text-pink-contrast)"},{label:"Red text",value:"var(--tt-color-text-red)",border:"var(--tt-color-text-red-contrast)"}];function Eu(t){if(!t||!t.isEditable||!jo("textStyle",t)||jn(t,["image"]))return!1;try{return t.can().setMark("textStyle",{color:"currentColor"})}catch{return!1}}function qz(t,e){return!t||!t.isEditable?!1:t.isActive("textStyle",{color:e})}function Wz(t){const{editor:e,hideWhenUnavailable:n}=t;return!e||!e.isEditable||!jo("textStyle",e)?!1:n&&!e.isActive("code")?Eu(e):!0}function Kz(t){const{editor:e,label:n,textColor:o,hideWhenUnavailable:s=!1,onApplied:r}=t,{editor:a}=oe(e),i=zt(),[l,c]=b.useState(!0),u=Eu(a),d=qz(a,o);b.useEffect(()=>{if(!a)return;const m=()=>{c(Wz({editor:a,hideWhenUnavailable:s}))};return m(),a.on("selectionUpdate",m),()=>{a.off("selectionUpdate",m)}},[a,s]);const p=b.useCallback(()=>
293{if(!a||!u)return!1;if(a.state.storedMarks){const m=a.schema.marks.textStyle;m&&a.view.dispatch(a.state.tr.removeStoredMark(m))}setTimeout(()=>{const m=a.chain().focus().toggleMark("textStyle",{color:o}).run();return m&&r?.({color:o,label:n}),m},0)},[a,u,o,r,n]);return Rn(gf,m=>{m.preventDefault(),p()},{enabled:l&&u,enableOnContentEditable:!i,enableOnFormTags:!0}),{isVisible:l,isActive:d,handleColorText:p,canColorText:u,label:n||`Color text to ${o}`,shortcutKeys:gf,Icon:cg}}function Gz({shortcutKeys:t=bf}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const ug=b.forwardRef(({editor:t,highlightColor:e,text:n,hideWhenUnavailable:o=!1,onApplied:s,showShortcut:r=!1,onClick:a,children:i,style:l,...c},u)=>{const{editor:d}=oe(t),{isVisible:p,canColorHighlight:m,isActive:h,handleColorHighlight:g,label:v,shortcutKeys:j}=Xz({editor:d,highlightColor:e,label:n||`Toggle highlight (${e})`,hideWhenUnavailable:o,onApplied:s}),k=b.useCallback(w=>{a?.(w),!w.defaultPrevented&&g()},[g,a]),y=b.useMemo(()=>({...l,"--highlight-color":e}),[e,l]);return p?f.jsx(je,{type:"button","data-style":"ghost","data-active-state":h?"on":"off",role:"button",tabIndex:-1,disabled:!m,"data-disabled":!m,"aria-label":v,"aria-pressed":h,tooltip:v,onClick:k,style:y,...c,ref:u,children:i??f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"tiptap-button-highlight",style:{"--highlight-color":e}}),n&&f.jsx("span",{className:"tiptap-button-text",children:n}),r&&f.jsx(Gz,{shortcutKeys:j})]})}):null});ug.displayName="ColorHighlightButton";const Dy=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7072 4.70711C15.0977 4.31658 15.0977 3.68342 14.7072 3.29289C14.3167 2.90237 13.6835 2.90237 13.293 3.29289L8.69294 7.89286L8.68594 7.9C8.13626 8.46079 7.82837 9.21474 7.82837 10C7.82837 10.2306 7.85491 10.4584 7.90631 10.6795L2.29289 16.2929C2.10536 16.4804 2 16.7348 2 17V20C2 20.5523 2.44772 21 3 21H12C12.2652 21 12.5196 20.8946 12.7071 20.7071L15.3205 18.0937C15.5416 18.1452 15.7695 18.1717 16.0001 18.1717C16.7853 18.1717 17.5393 17.8639 18.1001 17.3142L22.7072 12.7071C23.0977 12.3166 23.0977 11.6834 22.7072 11.2929C22.3167 10.9024 21.6835 10.9024 21.293 11.2929L16.6971 15.8887C16.5105 16.0702 16.2605 16.1717 16.0001 16.1717C15.7397 16.1717 15.4897 16.0702 15.303 15.8887L10.1113 10.697C9.92992 10.5104 9.82837 10.2604 9.82837 10C9.82837 9.73963 9.92992 9.48958 10.1113 9.30297L14.7072 4.70711ZM13.5858 17L9.00004 12.4142L4 17.4142V19H11.5858L13.5858 17Z",fill:"currentColor"})}));Dy.displayName="HighlighterIcon";const bf="mod+shift+h",Fy=[{label:"Default background",value:"var(--tt-bg-color)",border:"var(--tt-bg-color-contrast)"},{label:"Gray background",value:"var(--tt-color-highlight-gray)",border:"var(--tt-color-highlight-gray-contrast)"},{label:"Brown background",value:"var(--tt-color-highlight-brown)",border:"var(--tt-color-highlight-brown-contrast)"},{label:"Orange background",value:"var(--tt-color-highlight-orange)",border:"var(--tt-color-highlight-orange-contrast)"},{label:"Yellow background",value:"var(--tt-color-highlight-yellow)",border:"var(--tt-color-highlight-yellow-contrast)"},{label:"Green background",value:"var(--tt-color-highlight-green)",border:"var(--tt-color-highlight-green-contrast)"},{label:"Blue background",value:"var(--tt-color-highlight-blue)",border:"var(--tt-color-highlight-blue-contrast)"},{label:"Purple background",value:"var(--tt-color-highlight-purple)",border:"var(--tt-color-highlight-purple-contrast)"},{label:"Pink background",value:"var(--tt-color-highlight-pink)",border:"var(--tt-color-highlight-pink-contrast)"},{label:"Red background",value:"var(--tt-color-highlight-red)",border:"var(--tt-color-highlight-red-contrast)"}];function Ii(t){return!t||!t.isEditable||!jo("highlight",t)||jn(t,["image"])?!1:t.can().setMark("highlight")}function Zz(t,e){return!t||!t.isEditable?!1:e?t.isActive("highlight",{color:e}):t.isActive("highlight")}function Jz(t){return!t||!t.isEditable||!Ii(t)?!1:t.chain().focus().unsetMark("highlight").run()}function Yz(t){const{editor:e,hideWhenUnavailable:n}=t;return!e||!e.isEditable||!jo("highlight",e)?!1:n&&!e.isActive("code")?Ii(e):!0}function Xz(t){const{editor:e,label:n,highlightColor:o,hideWhenUnavailable:s=!1,onApplied:r}=t,{editor:a}=oe(e),i=zt(),[l,c]=b.useState(!0),u=Ii(a),d=Zz(a,o);b.useEffect(()=>{if(!a)return;const h=()=>{c(Yz({editor:a,hideWhenUnavailable:s}))};return h(),a.on("selectionUpdate",h),()=>{a.off("selectionUpdate",h)}},[a,s]);const p=b.useCallback(()=>
293{if(!a||!u||!o||!n)return!1;if(a.state.storedMarks){const h=a.schema.marks.highlight;h&&a.view.dispatch(a.state.tr.removeStoredMark(h))}setTimeout(()=>{const h=a.chain().focus().toggleMark("highlight",{color:o}).run();return h&&r?.({color:o,label:n}),h},0)},[u,o,a,n,r]),m=b.useCallback(()=>{const h=Jz(a);return h&&r?.({color:"",label:"Remove highlight"}),h},[a,r]);return Rn(bf,h=>{h.preventDefault(),p()},{enabled:l&&u,enableOnContentEditable:!i,enableOnFormTags:!0}),{isVisible:l,isActive:d,handleColorHighlight:p,handleRemoveHighlight:m,canColorHighlight:u,label:n||"Highlight",shortcutKeys:bf,Icon:Dy}}function Qz({shortcutKeys:t=vf}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const Ey=b.forwardRef(({editor:t,text:e,hideWhenUnavailable:n=!1,onToggled:o,showShortcut:s=!1,onClick:r,children:a,...i},l)=>{const{editor:c}=oe(t),{isVisible:u,canToggle:d,isActive:p,handleToggle:m,label:h,shortcutKeys:g,Icon:v}=Iy({editor:c,hideWhenUnavailable:n,onToggled:o}),j=b.useCallback(k=>{r?.(k),!k.defaultPrevented&&m()},[m,r]);return u?f.jsx(je,{type:"button","data-style":"ghost","data-active-state":p?"on":"off",role:"button",tabIndex:-1,disabled:!d,"data-disabled":!d,"aria-label":h,"aria-pressed":p,tooltip:"Text",onClick:j,...i,ref:l,children:a??f.jsxs(f.Fragment,{children:[f.jsx(v,{className:"tiptap-button-icon"}),e&&f.jsx("span",{className:"tiptap-button-text",children:e}),s&&f.jsx(Qz,{shortcutKeys:g})]})}):null});Ey.displayName="TextButton";const vf="mod+alt+0";function dg(t,e=!0){if(!t||!Qe("paragraph",t)||jn(t,["image"]))return!1;if(!e)return t.can().setNode("paragraph");try{const o=t.view.state,s=o.selection;if(s.empty||s instanceof Y){const r=vn({editor:t,node:o.selection.$anchor.node(1)})?.pos;if(!Pt(r))return!1}return!0}catch{return!1}}function e$(t){return t?t.isActive("paragraph"):!1}function t$(t){if(!t||!t.isEditable||!dg(t))return!1;try{const e=t.view;let n=e.state,o=n.tr;if(n.selection.empty||n.selection instanceof Y){const a=vn({editor:t,node:n.selection.$anchor.node(1)})?.pos;if(!Pt(a))return!1;o=o.setSelection(U.create(n.doc,a)),e.dispatch(o),n=e.state}const s=n.selection;let r=t.chain().focus();if(s instanceof U){const a=s.node.firstChild?.firstChild,i=s.node.lastChild?.lastChild,l=a?s.from+a.nodeSize:s.from+1,c=i?s.to-i.nodeSize:s.to-1;r=r.setTextSelection({from:l,to:c}).clearNodes()}return t.isActive("paragraph")||r.setNode("paragraph").run(),t.chain().focus().selectTextblockEnd().run(),!0}catch{return!1}}function n$(t){const{editor:e,hideWhenUnavailable:n}=t;return!e||!e.isEditable||!Qe("paragraph",e)?!1:n&&!e.isActive("code")?dg(e):!0}function Iy(t){const{editor:e,hideWhenUnavailable:n=!1,onToggled:o}=t||{},{editor:s}=oe(e),r=zt(),[a,i]=b.useState(!0),l=dg(s),c=e$(s);b.useEffect(()=>{if(!s)return;const d=()=>{i(n$({editor:s,hideWhenUnavailable:n}))};return d(),s.on("selectionUpdate",d),()=>{s.off("selectionUpdate",d)}},[s,n]);const u=b.useCallback(()=>{if(!s)return!1;const d=t$(s);return d&&o?.(),d},[s,o]);return Rn(vf,d=>{d.preventDefault(),u()},{enabled:a&&l,enableOnContentEditable:!r,enableOnFormTags:!0}),{isVisible:a,isActive:c,handleToggle:u,canToggle:l,label:"Text",shortcutKeys:vf,Icon:xh}}const pg=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29289 8.29289C5.68342 7.90237 6.31658 7.90237 6.70711 8.29289L12 13.5858L17.2929 8.29289C17.6834 7.90237 18.3166 7.90237 18.7071 8.29289C19.0976 8.68342 19.0976 9.31658 18.7071 9.70711L12.7071 15.7071C12.3166 16.0976 11.6834 16.0976 11.2929 15.7071L5.29289 9.70711C4.90237 9.31658 4.90237 8.68342 5.29289 8.29289Z",fill:"currentColor"})}));pg.displayName="ChevronDownIcon";const o$=({colorObj:t,withLabel:e=!1,onColorChanged:n,...o})=>{const s=t.type==="text"?Cy:Fy,r=i$(t.value,s),a={tooltip:r.label,text:e?r.label:void 0,onApplied:()=>n?.({type:t.type,label:r.label,value:r.value}),...o};return t.type==="text"?f.jsx(lg,{textColor:r.value,label:r.label,...a}):f.jsx(ug,{highlightColor:r.value,...a})},Bb=({type:t,colors:e,onColorSelected:n,selectedIndex:o,startIndexOffset:s})=>e.map((r,a)=>f.jsx(as,{orientation:"horizontal",children:r.map((i,l)=>{const c=s+e.slice(0,a).reduce((p,m)=>p+m.length,0)+l,u=o===c,d={tooltip:i.label,onApplied:()=>n({type:t,label:i.label,value:i.value}),tabIndex:u?0:-1,"data-highlighted":u,"aria-label":`${i.label} ${t==="text"?"text":"highlight"} color`};return t==="text"?f.jsx(lg,{textColor:i.value,label:i.label,...d},`${t}-${i.value}-${l}`):f.jsx(ug,{highlightColor:i.value,...d},`${t}-${i.value}-${l}`)})},`${t}-group-${a}`)),s$=({recentColors:t,onColorSelected:e,selectedIndex:n})=>t.length===0?null:f.jsxs(zs,{children:[f.jsx(Mr,{children:"Recently used"}),f.jsx(as,{orientation:"horizontal",children:t.map((o,s)=>f.jsx(o$,{colorObj:o,onColorChanged:e,tabIndex:n===s?0:-1,"data-highlighted":n===s},`recent-${o.type}-${o.value}`))})]}),r$=({maxColorsPerGroup:t=5,maxRecentColors:e=3,onColorChanged:n})=>{const{recentColors:o,addRecentColor:s,isInitialized:r}=c$(e),a=b.useRef(null),i=b.useMemo(()=>Rb(Cy,t),[t]),l=b.useMemo(()=>Rb(Fy,t),[t]),c=b.useMemo(()=>i.flat(),[i]),u=b.useMemo(()=>l.flat(),[l]),d=b.useMemo(()=>r?o.length:0,[r,o.length]),p=b.useMemo(()=>d+c.length,[d,c.length]),m=b.useMemo(()=>{const v=[];return r&&o.length>0&&v.push(...o.map(j=>({type:j.type,value:j.value,label:`Recent ${j.type==="text"?"text":"highlight"} color`,group:"recent"}))),v.push(...c.map(j=>({type:"text",value:j.value,label:j.label,group:"text"}))),v.push(...u.map(j=>({type:"highlight",value:j.value,label:j.label,group:"highlight"}))),v},[r,o,c,u]),h=b.useCallback(({type:v,label:j,value:k})=>{if(!a.current)return!1;const y=a.current.querySelector('[data-highlighted="true"]');y&&y.click(),s({type:v,label:j,value:k}),n?.({type:v,label:j,value:k})},[s,n]),{selectedIndex:g}=yh({containerRef:a,items:m,onSelect:v=>{v&&h({type:v.type,label:v.label,value:v.value})},orientation:"both",autoSelectFirstItem:!1});return f.jsx(bi,{ref:a,tabIndex:0,role:"menu",children:f.jsxs(vi,{children:[r&&f.jsx(s$,{recentColors:o,onColorSelected:h,selectedIndex:g}),f.jsxs(zs,{children:[f.jsx(Mr,{children:"Text color"}),f.jsx(Bb,{type:"text",colors:i,onColorSelected:h,selectedIndex:g,startIndexOffset:d})]}),f.jsxs(zs,{children:[f.jsx(Mr,{children:"Highlight color"}),f.jsx(Bb,{type:"highlight",colors:l,onColorSelected:h,selectedIndex:g,startIndexOffset:p})]})]})})},a$=b.forwardRef(({editor:t,hideWhenUnavailable:e=!1,onColorChanged:n,onClick:o,children:s,...r},a)=>{const{editor:i}=oe(t),[l,c]=b.useState(!1),{isVisible:u,canToggle:d,activeTextStyle:p,activeHighlight:m,handleColorChanged:h,label:g,Icon:v}=u$({editor:i,hideWhenUnavailable:e,onColorChanged:n}),j=b.useCallback(k=>{o?.(k),!k.defaultPrevented&&c(!l)},[o,l,c]);return u?f.jsxs(sk,{open:l,onOpenChange:c,children:[f.jsx(rk,{asChild:!0,children:f.jsx(je,{type:"button","data-style":"ghost","data-appearance":"default",role:"button","aria-label":g,tooltip:g,disabled:!d,"data-disabled":!d,onClick:j,...r,ref:a,children:s??f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"tiptap-button-color-text-popover",style:m.color?{"--active-highlight-color":m.color}:{},children:f.jsx(v,{className:"tiptap-button-icon",style:{color:p.color||void 0}})}),f.jsx(pg,{className:"tiptap-button-dropdown-small"})]})})}),f.jsx(ak,{"aria-label":"Text color options",side:"bottom",align:"start",children:f.jsx(r$,{onColorChanged:h})})]}):null});a$.displayName="ColorTextPopover";function i$(t,e){return e.find(n=>n.value===t)??{value:t,label:t}}function l$(t){const{editor:e,hideWhenUnavailable:n}=t;return!e||!e.isEditable?!1:n&&!e.isActive("code")?Eu(e)||Ii(e):!0}function c$(t=3){const[e,n]=b.useState([]),[o,s]=b.useState(!1);b.useEffect(()=>{try{const a=localStorage.getItem("tiptapRecentlyUsedColors");if(a){const i=JSON.parse(a);n(i.slice(0,t))}}catch(a){console.error("Failed to load stored colors:",a)}finally{s(!0)}},[t]);const r=b.useCallback(({type:a,label:i,value:l})=>{n(c=>{const u=c.filter(p=>!(p.type===a&&p.value===l)),d=[{type:a,label:i,value:l},...u].slice(0,t);try{localStorage.setItem("tiptapRecentlyUsedColors",JSON.stringify(d))}catch(p){console.error("Failed to store colors:",p)}return d})},[t]);return{recentColors:e,addRecentColor:r,isInitialized:o}}function u$(t){const{editor:e,hideWhenUnavailable:n=!1,onColorChanged:o}=t||{},{editor:s}=oe(e),[r,a]=b.useState(!0),i=jo("textStyle",s),l=jo("highlight",s),c=Ob(s,"textStyle")||{},u=Ob(s,"highlight")||{},d=Eu(s)||Ii(s);b.useEffect(()=>{if(!s)return;const m=()=>{a(l$({editor:s,hideWhenUnavailable:n}))};return m(),s.on("selectionUpdate",m),()=>{s.off("selectionUpdate",m)}},[s,n,l,i]);const p=b.useCallback(({type:m,label:h,value:g})=>{o?.({type:m,label:h,value:g})},[o]);return{isVisible:r,canToggle:d,activeTextStyle:c,activeHighlight:u,handleColorChanged:p,label:"Text color",Icon:cg}}const Fn=()=>new Map,jf=t=>{const e=Fn();return t.forEach((n,o)=>{e.set(o,n)}),e},xo=(t,e,n)=>{let o=t.get(e);return o===void 0&&t.set(e,o=n()),o},d$=(t,e)=>{const n=[];for(const[o,s]of t)n.push(e(s,o));return n},p$=(t,e)=>{for(const[n,o]of t)if(e(o,n))return!0;return!1},Vs=()=>new Set,Zd=t=>t[t.length-1],f$=(t,e)=>{for(let n=0;n<e.length;n++)t.push(e[n])},Us=Array.from,m$=(t,e)=>{for(let n=0;n<t.length;n++)if(e(t[n],n,t))return!0;return!1},kf=Array.isArray;class Sy{constructor(){this._observers=Fn()}on(e,n){return xo(this._observers,e,Vs).add(n),n}once(e,n){const o=(...s)=>{this.off(e,o),n(...s)};this.on(e,o)}off(e,n){const o=this._observers.get(e);o!==void 0&&(o.delete(n),o.size===0&&this._observers.delete(e))}emit(e,n){return Us((this._observers.get(e)||Fn()).values()).forEac
293h(o=>o(...n))}destroy(){this._observers=Fn()}}const yo=Math.floor,bl=Math.abs,Or=(t,e)=>t<e?t:e,ls=(t,e)=>t>e?t:e,Ay=t=>t!==0?t<0:1/t<0,Lb=1,Pb=2,Jd=4,Yd=8,Ka=32,bo=64,Rt=128,h$=1<<29,Iu=31,yf=63,Ts=127,g$=2147483647,My=Number.MAX_SAFE_INTEGER,b$=Number.isInteger||(t=>typeof t=="number"&&isFinite(t)&&yo(t)===t),v$=String.fromCharCode,j$=t=>t.toLowerCase(),k$=/^\s*/g,y$=t=>t.replace(k$,""),w$=/([A-Z])/g,zb=(t,e)=>y$(t.replace(w$,n=>`${e}${j$(n)}`)),_$=t=>{const e=unescape(encodeURIComponent(t)),n=e.length,o=new Uint8Array(n);for(let s=0;s<n;s++)o[s]=e.codePointAt(s);return o},Ga=typeof TextEncoder<"u"?new TextEncoder:null,x$=t=>Ga.encode(t),C$=Ga?x$:_$;let Ca=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});Ca&&Ca.decode(new Uint8Array).length===1&&(Ca=null);class Si{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const Ai=()=>new Si,D$=t=>{const e=Ai();return t(e),Cn(e)},F$=t=>{let e=t.cpos;for(let n=0;n<t.bufs.length;n++)e+=t.bufs[n].length;return e},Cn=t=>{const e=new Uint8Array(F$(t));let n=0;for(let o=0;o<t.bufs.length;o++){const s=t.bufs[o];e.set(s,n),n+=s.length}return e.set(new Uint8Array(t.cbuf.buffer,0,t.cpos),n),e},E$=(t,e)=>{const n=t.cbuf.length;n-t.cpos<e&&(t.bufs.push(new Uint8Array(t.cbuf.buffer,0,t.cpos)),t.cbuf=new Uint8Array(ls(n,e)*2),t.cpos=0)},ft=(t,e)=>{const n=t.cbuf.length;t.cpos===n&&(t.bufs.push(t.cbuf),t.cbuf=new Uint8Array(n*2),t.cpos=0),t.cbuf[t.cpos++]=e},wf=ft,ke=(t,e)=>{for(;e>Ts;)ft(t,Rt|Ts&e),e=yo(e/128);ft(t,Ts&e)},fg=(t,e)=>{const n=Ay(e);for(n&&(e=-e),ft(t,(e>yf?Rt:0)|(n?bo:0)|yf&e),e=yo(e/64);e>0;)ft(t,(e>Ts?Rt:0)|Ts&e),e=yo(e/128)},_f=new Uint8Array(3e4),I$=_f.length/3,S$=(t,e)=>{if(e.length<I$){const n=Ga.encodeInto(e,_f).written||0;ke(t,n);for(let o=0;o<n;o++)ft(t,_f[o])}else Xt(t,C$(e))},A$=(t,e)=>{const n=unescape(encodeURIComponent(e)),o=n.length;ke(t,o);for(let s=0;s<o;s++)ft(t,n.codePointAt(s))},br=Ga&&Ga.encodeInto?S$:A$,Su=(t,e)=>{const n=t.cbuf.length,o=t.cpos,s=Or(n-o,e.length),r=e.length-s;t.cbuf.set(e.subarray(0,s),o),t.cpos+=s,r>0&&(t.bufs.push(t.cbuf),t.cbuf=new Uint8Array(ls(n*2,r)),t.cbuf.set(e.subarray(s)),t.cpos=r)},Xt=(t,e)=>{ke(t,e.byteLength),Su(t,e)},mg=(t,e)=>{E$(t,e);const n=new DataView(t.cbuf.buffer,t.cpos,e);return t.cpos+=e,n},M$=(t,e)=>mg(t,4).setFloat32(0,e,!1),T$=(t,e)=>mg(t,8).setFloat64(0,e,!1),N$=(t,e)=>mg(t,8).setBigInt64(0,e,!1),$b=new DataView(new ArrayBuffer(4)),R$=t=>($b.setFloat32(0,t),$b.getFloat32(0)===t),Br=(t,e)=>{switch(typeof e){case"string":ft(t,119),br(t,e);break;case"number":b$(e)&&bl(e)<=g$?(ft(t,125),fg(t,e)):R$(e)?(ft(t,124),M$(t,e)):(ft(t,123),T$(t,e));break;case"bigint":ft(t,122),N$(t,e);break;case"object":if(e===null)ft(t,126);else if(kf(e)){ft(t,117),ke(t,e.length);for(let n=0;n<e.length;n++)Br(t,e[n])}else if(e instanceof Uint8Array)ft(t,116),Xt(t,e);else{ft(t,118);const n=Object.keys(e);ke(t,n.length);for(let o=0;o<n.length;o++){const s=n[o];br(t,s),Br(t,e[s])}}break;case"boolean":ft(t,e?120:121);break;default:ft(t,127)}};class Hb extends Si{constructor(e){super(),this.w=e,this.s=null,this.count=0}write(e){this.s===e?this.count++:(this.count>0&&ke(this,this.count-1),this.count=1,this.w(this,e),this.s=e)}}const Vb=t=>{t.count>0&&(fg(t.encoder,t.count===1?t.s:-t.s),t.count>1&&ke(t.encoder,t.count-2))};class vl{constructor(){this.encoder=new Si,this.s=0,this.count=0}write(e){this.s===e?this.count++:(Vb(this),this.count=1,this.s=e)}toUint8Array(){return Vb(this),Cn(this.encoder)}}const Ub=t=>{if(t.count>0){const e=t.diff*2+(t.count===1?0:1);fg(t.encoder,e),t.count>1&&ke(t.encoder,t.count-2)}};class Xd{constructor(){this.encoder=new Si,this.s=0,this.count=0,this.diff=0}write(e){this.diff===e-this.s?(this.s=e,this.count++):(Ub(this),this.count=1,this.diff=e-this.s,this.s=e)}toUint8Array(){return Ub(this),Cn(this.encoder)}}class O${constructor(){this.sarr=[],this.s="",this.lensE=new vl}write(e){this.s+=e,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(e.length)}toUint8Array(){const e=new Si;return this.sarr.push(this.s),this.s="",br(e,this.sarr.join("")),Su(e,this.lensE.toUint8Array()),Cn(e)}}const cs=t=>new Error(t),En=()=>{throw cs("Method unimplemented")},Yt=()=>{throw cs("Unexpected case")},Ty=cs("Unexpected end of array"),Ny=cs("Integer out of Range");class Au{constructor(e){this.arr=e,this.pos=0}}const hg=t=>new Au(t),B$=t=>t.pos!==t.arr.length,L$=(t,e)=>{const n=new Uint8Array(t.arr.buffer,t.pos+t.arr.byteOffset,e);return t.pos+=e,n},un=t=>L$(t,Pe(t)),Za=t=>t.arr[t.pos++],Pe=t=>{let e=0,n=1;const o=t.arr.length;for(;t.pos<o;){const s=t.arr[t.pos++];if(e=e+(s&Ts)*n,n*=128,s<Rt)return e;if(e>My)throw Ny}throw Ty},gg=t=>{let e=t.arr[t.pos++],n=e&yf,o=64;const s=(e&bo)>0?-1:1;if((e&Rt)===0)return s*n;const r=t.arr.length;for(;t.pos<r;){if(e=t.arr[t.pos++],n=n+(e&Ts)*o,o*=128,e<Rt)return s*n;if(n>My)throw Ny}throw Ty},P$=t=>{let e=Pe(t);if(e===0)return"";{let n=String.fromCodePoint(Za(t));if(--e<100)for(;e--;)n+=String.fromCodePoint(Za(t));else for(;e>0;){const o=e<1e4?e:1e4,s=t.arr.subarray(t.pos,t.pos+o);t.pos+=o,n+=String.fromCodePoint.apply(null,s),e-=o}return decodeURIComponent(escape(n))}},z$=t=>Ca.decode(un(t)),xf=Ca?z$:P$,bg=(t,e)=>{const n=new DataView(t.arr.buffer,t.arr.byteOffset+t.pos,e);return t.pos+=e,n},$$=t=>bg(t,4).getFloat32(0,!1),H$=t=>bg(t,8).getFloat64(0,!1),V$=t=>bg(t,8).getBigInt64(0,!1),U$=[t=>{},t=>null,gg,$$,H$,V$,t=>!1,t=>!0,xf,t=>{const e=Pe(t),n={};for(let o=0;o<e;o++){const s=xf(t);n[s]=_c(t)}return n},t=>{const e=Pe(t),n=[];for(let o=0;o<e;o++)n.push(_c(t));return n},un],_c=t=>U$[127-Za(t)](t);class qb extends Au{constructor(e,n){super(e),this.reader=n,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),B$(this)?this.count=Pe(this)+1:this.count=-1),this.count--,this.s}}class jl extends Au{constructor(e){super(e),this.s=0,this.count=0}read(){if(this.count===0){this.s=gg(this);const e=Ay(this.s);this.count=1,e&&(this.s=-this.s,this.count=Pe(this)+2)}return this.count--,this.s}}class Qd extends Au{constructor(e){super(e),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const e=gg(this),n=e&1;this.diff=yo(e/2),this.count=1,n&&(this.count=Pe(this)+2)}return this.s+=this.diff,this.count--,this.s}}class q${constructor(e){this.decoder=new jl(e),this.str=xf(this.decoder),this.spos=0}read(){const e=this.spos+this.decoder.read(),n=this.str.slice(this.spos,e);return this.spos=e,n}}const W$=crypto.getRandomValues.bind(crypto),K$=Math.random,Ry=()=>W$(new Uint32Array(1))[0],G$=t=>
293t[yo(K$()*t.length)],Z$="10000000-1000-4000-8000"+-1e11,J$=()=>Z$.replace(/[018]/g,t=>(t^Ry()&15>>t/4).toString(16)),Y$=Date.now,Wb=t=>new Promise(t);Promise.all.bind(Promise);const Kb=t=>t===void 0?null:t;class X${constructor(){this.map=new Map}setItem(e,n){this.map.set(e,n)}getItem(e){return this.map.get(e)}}let Oy=new X$,Q$=!0;try{typeof localStorage<"u"&&localStorage&&(Oy=localStorage,Q$=!1)}catch{}const eH=Oy,tH=Object.assign,By=Object.keys,nH=(t,e)=>{for(const n in t)e(t[n],n)},Gb=t=>By(t).length,oH=t=>{for(const e in t)return!1;return!0},Ly=(t,e)=>{for(const n in t)if(!e(t[n],n))return!1;return!0},sH=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),rH=(t,e)=>t===e||Gb(t)===Gb(e)&&Ly(t,(n,o)=>(n!==void 0||sH(e,o))&&e[o]===n),aH=Object.freeze,Py=t=>{for(const e in t){const n=t[e];(typeof n=="object"||typeof n=="function")&&Py(t[e])}return aH(t)},vg=(t,e,n=0)=>{try{for(;n<t.length;n++)t[n](...e)}finally{n<t.length&&vg(t,e,n+1)}},iH=(t,e)=>e.includes(t);var zy={};const Lr=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",$y=typeof window<"u"&&typeof document<"u"&&!Lr;let Ln;const lH=()=>{if(Ln===void 0)if(Lr){Ln=Fn();const t=process.argv;let e=null;for(let n=0;n<t.length;n++){const o=t[n];o[0]==="-"?(e!==null&&Ln.set(e,""),e=o):e!==null&&(Ln.set(e,o),e=null)}e!==null&&Ln.set(e,"")}else typeof location=="object"?(Ln=Fn(),(location.search||"?").slice(1).split("&").forEach(t=>{if(t.length!==0){const[e,n]=t.split("=");Ln.set(`--${zb(e,"-")}`,n),Ln.set(`-${zb(e,"-")}`,n)}})):Ln=Fn();return Ln},Cf=t=>lH().has(t),xc=t=>Kb(Lr?zy[t.toUpperCase().replaceAll("-","_")]:eH.getItem(t)),Hy=t=>Cf("--"+t)||xc(t)!==null;Hy("production");const cH=Lr&&iH(zy.FORCE_COLOR,["true","1","2"]),uH=cH||!Cf("--no-colors")&&!Hy("no-color")&&(!Lr||process.stdout.isTTY)&&(!Lr||Cf("--color")||xc("COLORTERM")!==null||(xc("TERM")||"").includes("color")),dH=t=>{let e="";for(let n=0;n<t.byteLength;n++)e+=v$(t[n]);return btoa(e)},pH=t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString("base64"),fH=$y?dH:pH,mH=t=>D$(e=>Br(e,t));class hH{constructor(e,n){this.left=e,this.right=n}}const ro=(t,e)=>new hH(t,e),gH=typeof document<"u"?document:{};typeof DOMParser<"u"&&new DOMParser;const bH=t=>d$(t,(e,n)=>`${n}:${e};`).join(""),vH=t=>class{constructor(n){this._=n}destroy(){t(this._)}},jH=vH(clearTimeout),Vy=(t,e)=>new jH(setTimeout(e,t)),Co=Symbol,Uy=Co(),qy=Co(),kH=Co(),yH=Co(),wH=Co(),Wy=Co(),_H=Co(),jg=Co(),xH=Co(),CH=t=>{t.length===1&&t[0]?.constructor===Function&&(t=t[0]());const e=[],n=[];let o=0;for(;o<t.length;o++){const s=t[o];if(s===void 0)break;if(s.constructor===String||s.constructor===Number)e.push(s);else if(s.constructor===Object)break}for(o>0&&n.push(e.join(""));o<t.length;o++){const s=t[o];s instanceof Symbol||n.push(s)}return n},DH={[Uy]:ro("font-weight","bold"),[qy]:ro("font-weight","normal"),[kH]:ro("color","blue"),[wH]:ro("color","green"),[yH]:ro("color","grey"),[Wy]:ro("color","red"),[_H]:ro("color","purple"),[jg]:ro("color","orange"),[xH]:ro("color","black")},FH=t=>{t.length===1&&t[0]?.constructor===Function&&(t=t[0]());const e=[],n=[],o=Fn();let s=[],r=0;for(;r<t.length;r++){const a=t[r],i=DH[a];
293if(i!==void 0)o.set(i.left,i.right);else{if(a===void 0)break;if(a.constructor===String||a.constructor===Number){const l=bH(o);r>0||l.length>0?(e.push("%c"+a),n.push(l)):e.push(a)}else break}}for(r>0&&(s=n,s.unshift(e.join("")));r<t.length;r++){const a=t[r];a instanceof Symbol||s.push(a)}return s},Ky=uH?FH:CH,EH=(...t)=>{console.log(...Ky(t)),Zy.forEach(e=>e.print(t))},Gy=(...t)=>{console.warn(...Ky(t)),t.unshift(jg),Zy.forEach(e=>e.print(t))},Zy=Vs(),Jy=t=>({[Symbol.iterator](){return this},next:t}),IH=(t,e)=>Jy(()=>{let n;do n=t.next();while(!n.done&&!e(n.value));return n}),ep=(t,e)=>Jy(()=>{const{done:n,value:o}=t.next();return{done:n,value:n?void 0:e(o)}});class kg{constructor(e,n){this.clock=e,this.len=n}}class Yr{constructor(){this.clients=new Map}}const us=(t,e,n)=>e.clients.forEach((o,s)=>{const r=t.doc.store.clients.get(s);if(r!=null){const a=r[r.length-1],i=a.id.clock+a.length;for(let l=0,c=o[l];l<o.length&&c.clock<i;c=o[++l])sw(t,r,c.clock,c.len,n)}}),SH=(t,e)=>{let n=0,o=t.length-1;for(;n<=o;){const s=yo((n+o)/2),r=t[s],a=r.clock;if(a<=e){if(e<a+r.len)return s;n=s+1}else o=s-1}return null},Xr=(t,e)=>{const n=t.clients.get(e.client);return n!==void 0&&SH(n,e.clock)!==null},yg=t=>{t.clients.forEach(e=>{e.sort((s,r)=>s.clock-r.clock);let n,o;for(n=1,o=1;n<e.length;n++){const s=e[o-1],r=e[n];s.clock+s.len>=r.clock?s.len=ls(s.len,r.clock+r.len-s.clock):(o<n&&(e[o]=r),o++)}e.length=o})},Df=t=>{const e=new Yr;for(let n=0;n<t.length;n++)t[n].clients.forEach((o,s)=>{if(!e.clients.has(s)){const r=o.slice();for(let a=n+1;a<t.length;a++)f$(r,t[a].clients.get(s)||[]);e.clients.set(s,r)}});return yg(e),e},Ja=(t,e,n,o)=>{xo(t.clients,e,()=>[]).push(new kg(n,o))},Yy=()=>new Yr,AH=t=>{const e=Yy();return t.clients.forEach((n,o)=>{const s=[];for(let r=0;r<n.length;r++){const a=n[r];if(a.deleted){const i=a.id.clock;let l=a.length;if(r+1<n.length)for(let c=n[r+1];r+1<n.length&&c.deleted;c=n[++r+1])l+=c.length;s.push(new kg(i,l))}}s.length>0&&e.clients.set(o,s)}),e},wg=(t,e)=>{ke(t.restEncoder,e.clients.size),Us(e.clients.entries()).sort((n,o)=>o[0]-n[0]).forEach(([n,o])=>{t.resetDsCurVal(),ke(t.restEncoder,n);const s=o.length;ke(t.restEncoder,s);for(let r=0;r<s;r++){const a=o[r];t.writeDsClock(a.clock),t.writeDsLen(a.len)}})},MH=t=>{const e=new Yr,n=Pe(t.restDecoder);for(let o=0;o<n;o++){t.resetDsCurVal();const s=Pe(t.restDecoder),r=Pe(t.restDecoder);if(r>0){const a=xo(e.clients,s,()=>[]);for(let i=0;i<r;i++)a.push(new kg(t.readDsClock(),t.readDsLen()))}}return e},Zb=(t,e,n)=>{const o=new Yr,s=Pe(t.restDecoder);for(let r=0;r<s;r++){t.resetDsCurVal();const a=Pe(t.restDecoder),i=Pe(t.restDecoder),l=n.clients.get(a)||[],c=tt(n,a);for(let u=0;u<i;u++){const d=t.readDsClock(),p=d+t.readDsLen();if(d<c){c<p&&Ja(o,a,c,p-c);let m=Sn(l,d),h=l[m];for(!h.deleted&&h.id.clock<d&&(l.splice(m+1,0,Ac(e,h,d-h.id.clock)),m++);m<l.length&&(h=l[m++],h.id.clock<p);)h.deleted||(p<h.id.clock+h.length&&l.splice(m,0,Ac(e,h,p-h.id.clock)),h.delete(e))}else Ja(o,a,d,p-d)}}if(o.clients.size>0){const r=new Mu;return ke(r.restEncoder,0),wg(r,o),r.toUint8Array()}return null},Xy=Ry;class Qs extends Sy{constructor({guid:e=J$(),collectionid:n=null,gc:o=!0,gcFilter:s=()=>!0,meta:r=null,autoLoad:a=!1,shouldLoad:i=!0}={}){super(),this.gc=o,this.gcFilter=s,this.clientID=Xy(),this.guid=e,this.collectionid=n,this.share=new Map,this.store=new nw,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=i,this.autoLoad=a,this.meta=r,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=Wb(c=>{this.on("load",()=>{this.isLoaded=!0,c(this)})});const l=()=>Wb(c=>{const u=d=>{(d===void 0||d===!0)&&(this.off("sync",u),c())};this.on("sync",u)});this.on("sync",c=>{c===!1&&this.isSynced&&(this.whenSynced=l()),this.isSynced=c===void 0||c===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=l()}load(){const e=this._item;e!==null&&!this.shouldLoad&&Ae(e.parent.doc,n=>{n.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(Us(this.subdocs).map(e=>e.guid))}transact(e,n=null){return Ae(this,e,n)}get(e,n=vt){const o=xo(this.share,e,()=>{const r=new n;return r._integrate(this,null),r}),s=o.constructor;if(n!==vt&&s!==n)if(s===vt){const r=new n;
293r._map=o._map,o._map.forEach(a=>{for(;a!==null;a=a.left)a.parent=r}),r._start=o._start;for(let a=r._start;a!==null;a=a.right)a.parent=r;return r._length=o._length,this.share.set(e,r),r._integrate(this,null),r}else throw new Error(`Type with the name ${e} has already been defined with a different constructor`);return o}getArray(e=""){return this.get(e,kr)}getText(e=""){return this.get(e,ds)}getMap(e=""){return this.get(e,Pr)}getXmlElement(e=""){return this.get(e,St)}getXmlFragment(e=""){return this.get(e,qs)}toJSON(){const e={};return this.share.forEach((n,o)=>{e[o]=n.toJSON()}),e}destroy(){this.isDestroyed=!0,Us(this.subdocs).forEach(n=>n.destroy());const e=this._item;if(e!==null){this._item=null;const n=e.content;n.doc=new Qs({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=e,Ae(e.parent.doc,o=>{const s=n.doc;e.deleted||o.subdocsAdded.add(s),o.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class TH{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=Pe(this.restDecoder),this.dsCurrVal}readDsLen(){const e=Pe(this.restDecoder)+1;return this.dsCurrVal+=e,e}}class Cc extends TH{constructor(e){super(e),this.keys=[],Pe(e),this.keyClockDecoder=new Qd(un(e)),this.clientDecoder=new jl(un(e)),this.leftClockDecoder=new Qd(un(e)),this.rightClockDecoder=new Qd(un(e)),this.infoDecoder=new qb(un(e),Za),this.stringDecoder=new q$(un(e)),this.parentInfoDecoder=new qb(un(e),Za),this.typeRefDecoder=new jl(un(e)),this.lenDecoder=new jl(un(e))}readLeftID(){return new vr(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new vr(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return _c(this.restDecoder)}readBuf(){return un(this.restDecoder)}readJSON(){return _c(this.restDecoder)}readKey(){const e=this.keyClockDecoder.read();if(e<this.keys.length)return this.keys[e];{const n=this.stringDecoder.read();return this.keys.push(n),n}}}class NH{constructor(){this.restEncoder=Ai()}toUint8Array(){return Cn(this.restEncoder)}resetDsCurVal(){}writeDsClock(e){ke(this.restEncoder,e)}writeDsLen(e){ke(this.restEncoder,e)}}class RH extends NH{writeLeftID(e){ke(this.restEncoder,e.client),ke(this.restEncoder,e.clock)}writeRightID(e){ke(this.restEncoder,e.client),ke(this.restEncoder,e.clock)}writeClient(e){ke(this.restEncoder,e)}writeInfo(e){wf(this.restEncoder,e)}writeString(e){br(this.restEncoder,e)}writeParentInfo(e){ke(this.restEncoder,e?1:0)}writeTypeRef(e){ke(this.restEncoder,e)}writeLen(e){ke(this.restEncoder,e)}writeAny(e){Br(this.restEncoder,e)}writeBuf(e){Xt(this.restEncoder,e)}writeJSON(e){br(this.restEncoder,JSON.stringify(e))}writeKey(e){br(this.restEncoder,e)}}class OH{constructor(){this.restEncoder=Ai(),this.dsCurrVal=0}toUint8Array(){return Cn(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(e){const n=e-this.dsCurrVal;this.dsCurrVal=e,ke(this.restEncoder,n)}writeDsLen(e){e===0&&Yt(),ke(this.restEncoder,e-1),this.dsCurrVal+=e}}class Mu extends OH{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new Xd,this.clientEncoder=new vl,this.leftClockEncoder=new Xd,this.rightClockEncoder=new Xd,this.infoEncoder=new Hb(wf),this.stringEncoder=new O$,this.parentInfoEncoder=new Hb(wf),this.typeRefEncoder=new vl,this.lenEncoder=new vl}toUint8Array(){const e=Ai();return ke(e,0),Xt(e,this.keyClockEncoder.toUint8Array()),Xt(e,this.clientEncoder.toUint8Array()),Xt(e,this.leftClockEncoder.toUint8Array()),Xt(e,this.rightClockEncoder.toUint8Array()),Xt(e,Cn(this.infoEncoder)),Xt(e,this.stringEncoder.toUint8Array()),Xt(e,Cn(this.parentInfoEncoder)),Xt(e,this.typeRefEncoder.toUint8Array()),Xt(e,this.lenEncoder.toUint8Array()),Su(e,Cn(this.restEncoder)),Cn(e)}writeLeftID(e){this.clientEncoder.write(e.client),this.leftClockEncoder.write(e.clock)}writeRightID(e){this.clientEncoder.write(e.client),this.rightClockEncoder.write(e.clock)}writeClient(e){this.clientEncoder.write(e)}writeInfo(e){this.infoEncoder.write(e)}writeString(e){this.stringEncoder.write(e)}writeParentInfo(e){this.parentInfoEncoder.write(e?1:0)}writeTypeRef(e){this.typeRefEncoder.write(e)}writeLen(e){this.lenEncoder.write(e)}writeAny(e){Br(this.restEncoder,e)}writeBuf(e){Xt(this.restEncoder,e)}writeJSON(e){Br(this.restEncoder,e)}writeKey(e){const n=this.keyMap.get(e);n===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(e)):this.keyClockEncoder.write(n)}}const BH=(t,e,n,o)=>{o=ls(o,e[0].id.clock);const s=Sn(e,o);ke(t.restEncoder,e.length-s),t.writeClient(n),ke(t.restEncoder,o);const r=e[s];r.write(t,o-r.id.clock);for(let a=s+1;a<e.length;a++)e[a].write(t,0)},Qy=(t,e,n)=>{const o=new Map;
293n.forEach((s,r)=>{tt(e,r)>s&&o.set(r,s)}),Tu(e).forEach((s,r)=>{n.has(r)||o.set(r,0)}),ke(t.restEncoder,o.size),Us(o.entries()).sort((s,r)=>r[0]-s[0]).forEach(([s,r])=>{BH(t,e.clients.get(s),s,r)})},LH=(t,e)=>{const n=Fn(),o=Pe(t.restDecoder);for(let s=0;s<o;s++){const r=Pe(t.restDecoder),a=new Array(r),i=t.readClient();let l=Pe(t.restDecoder);n.set(i,{i:0,refs:a});for(let c=0;c<r;c++){const u=t.readInfo();switch(Iu&u){case 0:{const d=t.readLen();a[c]=new fn(pe(i,l),d),l+=d;break}case 10:{const d=Pe(t.restDecoder);a[c]=new _n(pe(i,l),d),l+=d;break}default:{const d=(u&(bo|Rt))===0,p=new Ie(pe(i,l),null,(u&Rt)===Rt?t.readLeftID():null,null,(u&bo)===bo?t.readRightID():null,d?t.readParentInfo()?e.get(t.readString()):t.readLeftID():null,d&&(u&Ka)===Ka?t.readString():null,Dw(t,u));a[c]=p,l+=p.length}}}}return n},PH=(t,e,n)=>{const o=[];let s=Us(n.keys()).sort((m,h)=>m-h);if(s.length===0)return null;const r=()=>{if(s.length===0)return null;let m=n.get(s[s.length-1]);for(;m.refs.length===m.i;)if(s.pop(),s.length>0)m=n.get(s[s.length-1]);else return null;return m};let a=r();if(a===null)return null;const i=new nw,l=new Map,c=(m,h)=>{const g=l.get(m);(g==null||g>h)&&l.set(m,h)};let u=a.refs[a.i++];const d=new Map,p=()=>{for(const m of o){const h=m.id.client,g=n.get(h);g?(g.i--,i.clients.set(h,g.refs.slice(g.i)),n.delete(h),g.i=0,g.refs=[]):i.clients.set(h,[m]),s=s.filter(v=>v!==h)}o.length=0};for(;;){if(u.constructor!==_n){const h=xo(d,u.id.client,()=>tt(e,u.id.client))-u.id.clock;if(h<0)o.push(u),c(u.id.client,u.id.clock-1),p();else{const g=u.getMissing(t,e);if(g!==null){o.push(u);const v=n.get(g)||{refs:[],i:0};if(v.refs.length===v.i)c(g,tt(e,g)),p();else{u=v.refs[v.i++];continue}}else(h===0||h<u.length)&&(u.integrate(t,h),d.set(u.id.client,u.id.clock+u.length))}}if(o.length>0)u=o.pop();else if(a!==null&&a.i<a.refs.length)u=a.refs[a.i++];else{if(a=r(),a===null)break;u=a.refs[a.i++]}}if(i.clients.size>0){const m=new Mu;return Qy(m,i,new Map),ke(m.restEncoder,0),{missing:l,update:m.toUint8Array()}}return null},zH=(t,e)=>Qy(t,e.doc.store,e.beforeState),$H=(t,e,n,o=new Cc(t))=>Ae(e,s=>{s.local=!1;let r=!1;const a=s.doc,i=a.store,l=LH(o,a),c=PH(s,i,l),u=i.pendingStructs;if(u){for(const[p,m]of u.missing)if(m<tt(i,p)){r=!0;break}if(c){for(const[p,m]of c.missing){const h=u.missing.get(p);(h==null||h>m)&&u.missing.set(p,m)}u.update=s2([u.update,c.update])}}else i.pendingStructs=c;const d=Zb(o,s,i);if(i.pendingDs){const p=new Cc(hg(i.pendingDs));Pe(p.restDecoder);const m=Zb(p,s,i);d&&m?i.pendingDs=s2([d,m]):i.pendingDs=d||m}else i.pendingDs=d;if(r){const p=i.pendingStructs.update;i.pendingStructs=null,Ff(s.doc,p)}},n,!1),Ff=(t,e,n,o=Cc)=>{const s=hg(e);$H(s,t,n,new o(s))};class HH{constructor(){this.l=[]}}const Jb=()=>new HH,Yb=(t,e)=>t.l.push(e),Xb=(t,e)=>{const n=t.l,o=n.length;t.l=n.filter(s=>e!==s),o===t.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},ew=(t,e,n)=>vg(t.l,[e,n]);class vr{constructor(e,n){this.client=e,this.clock=n}}const Xi=(t,e)=>t===e||t!==null&&e!==null&&t.client===e.client&&t.clock===e.clock,pe=(t,e)=>new vr(t,e),Ya=t=>{for(const[e,n]of t.doc.share.entries())if(n===t)return e;throw Yt()},Xa=(t,e)=>{for(;e!==null;){if(e.parent===t)return!0;e=e.parent._item}return!1};class Dc{constructor(e,n,o,s=0){this.type=e,this.tname=n,this.item=o,this.assoc=s}}class VH{constructor(e,n,o=0){this.type=e,this.index=n,this.assoc=o}}const UH=(t,e,n=0)=>new VH(t,e,n),Qi=(t,e,n)=>{let o=null,s=null;return t._item===null?s=Ya(t):o=pe(t._item.id.client,t._item.id.clock),new Dc(o,s,e,n)},tp=(t,e,n=0)=>{let o=t._start;if(n<0){if(e===0)return Qi(t,null,n);e--}for(;o!==null;){if(!o.deleted&&o.countable){if(o.length>e)return Qi(t,pe(o.id.client,o.id.clock+e),n);e-=o.length}if(o.right===null&&n<0)return Qi(t,o.lastId,n);o=o.right}return Qi(t,null,n)},qH=(t,e)=>{const n=jr(t,e),o=e.clock-n.id.clock;return{item:n,diff:o}},WH=(t,e,n=!0)=>{const o=e.store,s=t.item,r=t.type,a=t.tname,i=t.assoc;let l=null,c=0;if(s!==null){if(tt(o,s.client)<=s.clock)return null;const u=n?Af(o,s):qH(o,s),d=u.item;if(!(d instanceof Ie))return null;if(l=d.parent,l._item===null||!l._item.deleted){c=d.deleted||!d.countable?0:u.diff+(i>=0?0:1);let p=d.left;for(;p!==null;)!p.deleted&&p.countable&&(c+=p.length),p=p.left}}else{if(a!==null)l=e.get(a);else if(r!==null){if(tt(o,r.client)<=r.clock)return null;const{item:u}=n?Af(o,r):{item:jr(o,r)};if(u instanceof Ie&&u.content instanceof On)l=u.content.type;else return null}else throw Yt();i>=0?c=l._length:c=0}return UH(l,c,t.assoc)};class _g{constructor(e,n){this.ds=e,this.sv=n}}const tw=(t,e)=>new _g(t,e),np=t=>tw(AH(t.store),Tu(t.store)),ys=(t,e)=>e===void 0?!t.deleted:e.sv.has(t.id.client)&&(e.sv.get(t.id.client)||0)>t.id.clock&&!Xr(e.ds,t.id),Ef=(t,e)=>{const n=xo(t.meta,Ef,Vs),o=t.doc.store;n.has(e)||(e.sv.forEach((s,r)=>{s<tt(o,r)&&Ut(t,pe(r,s))}),us(t,e.ds,s=>{}),n.add(e))};
293class nw{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const Tu=t=>{const e=new Map;return t.clients.forEach((n,o)=>{const s=n[n.length-1];e.set(o,s.id.clock+s.length)}),e},tt=(t,e)=>{const n=t.clients.get(e);if(n===void 0)return 0;const o=n[n.length-1];return o.id.clock+o.length},ow=(t,e)=>{let n=t.clients.get(e.id.client);if(n===void 0)n=[],t.clients.set(e.id.client,n);else{const o=n[n.length-1];if(o.id.clock+o.length!==e.id.clock)throw Yt()}n.push(e)},Sn=(t,e)=>{let n=0,o=t.length-1,s=t[o],r=s.id.clock;if(r===e)return o;let a=yo(e/(r+s.length-1)*o);for(;n<=o;){if(s=t[a],r=s.id.clock,r<=e){if(e<r+s.length)return a;n=a+1}else o=a-1;a=yo((n+o)/2)}throw Yt()},KH=(t,e)=>{const n=t.clients.get(e.client);return n[Sn(n,e.clock)]},jr=KH,If=(t,e,n)=>{const o=Sn(e,n),s=e[o];return s.id.clock<n&&s instanceof Ie?(e.splice(o+1,0,Ac(t,s,n-s.id.clock)),o+1):o},Ut=(t,e)=>{const n=t.doc.store.clients.get(e.client);return n[If(t,n,e.clock)]},Qb=(t,e,n)=>{const o=e.clients.get(n.client),s=Sn(o,n.clock),r=o[s];return n.clock!==r.id.clock+r.length-1&&r.constructor!==fn&&o.splice(s+1,0,Ac(t,r,n.clock-r.id.clock+1)),r},GH=(t,e,n)=>{const o=t.clients.get(e.id.client);o[Sn(o,e.id.clock)]=n},sw=(t,e,n,o,s)=>{if(o===0)return;const r=n+o;let a=If(t,e,n),i;do i=e[a++],r<i.id.clock+i.length&&If(t,e,r),s(i);while(a<e.length&&e[a].id.clock<r)};class ZH{constructor(e,n,o){this.doc=e,this.deleteSet=new Yr,this.beforeState=Tu(e.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=n,this.meta=new Map,this.local=o,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}const e2=(t,e)=>e.deleteSet.clients.size===0&&!p$(e.afterState,(n,o)=>e.beforeState.get(o)!==n)?!1:(yg(e.deleteSet),zH(t,e),wg(t,e.deleteSet),!0),t2=(t,e,n)=>{const o=e._item;(o===null||o.id.clock<(t.beforeState.get(o.id.client)||0)&&!o.deleted)&&xo(t.changed,e,Vs).add(n)},kl=(t,e)=>{let n=t[e],o=t[e-1],s=e;for(;s>0;n=o,o=t[--s-1]){if(o.deleted===n.deleted&&o.constructor===n.constructor&&o.mergeWith(n)){n instanceof Ie&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,o);continue}break}const r=e-s;return r&&t.splice(e+1-r,r),r},JH=(t,e,n)=>{for(const[o,s]of t.clients.entries()){const r=e.clients.get(o);for(let a=s.length-1;a>=0;a--){const i=s[a],l=i.clock+i.len;for(let c=Sn(r,i.clock),u=r[c];c<r.length&&u.id.clock<l;u=r[++c]){const d=r[c];if(i.clock+i.len<=d.id.clock)break;d instanceof Ie&&d.deleted&&!d.keep&&n(d)&&d.gc(e,!1)}}}},YH=(t,e)=>{t.clients.forEach((n,o)=>{const s=e.clients.get(o);for(let r=n.length-1;r>=0;r--){const a=n[r],i=Or(s.length-1,1+Sn(s,a.clock+a.len-1));for(let l=i,c=s[l];l>0&&c.id.clock>=a.clock;c=s[l])l-=1+kl(s,l)}})},rw=(t,e)=>{if(e<t.length){const n=t[e],o=n.doc,s=o.store,r=n.deleteSet,a=n._mergeStructs;try{yg(r),n.afterState=Tu(n.doc.store),o.emit("beforeObserverCalls",[n,o]);const i=[];n.changed.forEach((l,c)=>i.push(()=>{(c._item===null||!c._item.deleted)&&c._callObserver(n,l)})),i.push(()=>{n.changedParentTypes.forEach((l,c)=>{c._dEH.l.length>0&&(c._item===null||!c._item.deleted)&&(l=l.filter(u=>u.target._item===null||!u.target._item.deleted),l.forEach(u=>{u.currentTarget=c,u._path=null}),l.sort((u,d)=>u.path.length-d.path.length),ew(c._dEH,l,n))})}),i.push(()=>o.emit("afterTransaction",[n,o])),vg(i,[]),n._needFormattingCleanup&&bV(n)}finally{o.gc&&JH(r,s,o.gcFilter),YH(r,s),n.afterState.forEach((u,d)=>{const p=n.beforeState.get(d)||0;if(p!==u){const m=s.clients.get(d),h=ls(Sn(m,p),1);for(let g=m.length-1;g>=h;)g-=1+kl(m,g)}});for(let u=a.length-1;u>=0;u--){const{client:d,clock:p}=a[u].id,m=s.clients.get(d),h=Sn(m,p);h+1<m.length&&kl(m,h+1)>1||h>0&&kl(m,h)}if(!n.local&&n.afterState.get(o.clientID)!==n.beforeState.get(o.clientID)&&(EH(jg,Uy,"[yjs] ",qy,Wy,"Changed the client-id because another client seems to be using it."),o.clientID=Xy()),o.emit("afterTransactionCleanup",[n,o]),o._observers.has("update")){const u=new RH;e2(u,n)&&o.emit("update",[u.toUint8Array(),n.origin,o,n])}if(o._observers.has("updateV2")){const u=new Mu;e2(u,n)&&o.emit("updateV2",[u.toUint8Array(),n.origin,o,n])}const{subdocsAdded:i,subdocsLoaded:l,subdocsRemoved:c}=n;(i.size>0||c.size>0||l.size>0)&&(i.forEach(u=>{u.clientID=o.clientID,u.collectionid==null&&(u.collectionid=o.collectionid),o.subdocs.add(u)}
293),c.forEach(u=>o.subdocs.delete(u)),o.emit("subdocs",[{loaded:l,added:i,removed:c},o,n]),c.forEach(u=>u.destroy())),t.length<=e+1?(o._transactionCleanups=[],o.emit("afterAllTransactions",[o,t])):rw(t,e+1)}}},Ae=(t,e,n=null,o=!0)=>{const s=t._transactionCleanups;let r=!1,a=null;t._transaction===null&&(r=!0,t._transaction=new ZH(t,n,o),s.push(t._transaction),s.length===1&&t.emit("beforeAllTransactions",[t]),t.emit("beforeTransaction",[t._transaction,t]));try{a=e(t._transaction)}finally{if(r){const i=t._transaction===s[0];t._transaction=null,i&&rw(s,0)}}return a};class XH{constructor(e,n){this.insertions=n,this.deletions=e,this.meta=new Map}}const n2=(t,e,n)=>{us(t,n.deletions,o=>{o instanceof Ie&&e.scope.some(s=>s===t.doc||Xa(s,o))&&Eg(o,!1)})},o2=(t,e,n)=>{let o=null;const s=t.doc,r=t.scope;Ae(s,i=>{for(;e.length>0&&t.currStackItem===null;){const l=s.store,c=e.pop(),u=new Set,d=[];let p=!1;us(i,c.insertions,m=>{if(m instanceof Ie){if(m.redone!==null){let{item:h,diff:g}=Af(l,m.id);g>0&&(h=Ut(i,pe(h.id.client,h.id.clock+g))),m=h}!m.deleted&&r.some(h=>h===i.doc||Xa(h,m))&&d.push(m)}}),us(i,c.deletions,m=>{m instanceof Ie&&r.some(h=>h===i.doc||Xa(h,m))&&!Xr(c.insertions,m.id)&&u.add(m)}),u.forEach(m=>{p=Cw(i,m,u,c.insertions,t.ignoreRemoteMapChanges,t)!==null||p});for(let m=d.length-1;m>=0;m--){const h=d[m];t.deleteFilter(h)&&(h.delete(i),p=!0)}t.currStackItem=p?c:null}i.changed.forEach((l,c)=>{l.has(null)&&c._searchMarker&&(c._searchMarker.length=0)}),o=i},t);const a=t.currStackItem;if(a!=null){const i=o.changedParentTypes;t.emit("stack-item-popped",[{stackItem:a,type:n,changedParentTypes:i,origin:t},t]),t.currStackItem=null}return a};class aw extends Sy{constructor(e,{captureTimeout:n=500,captureTransaction:o=l=>!0,deleteFilter:s=()=>!0,trackedOrigins:r=new Set([null]),ignoreRemoteMapChanges:a=!1,doc:i=kf(e)?e[0].doc:e instanceof Qs?e:e.doc}={}){super(),this.scope=[],this.doc=i,this.addToScope(e),this.deleteFilter=s,r.add(this),this.trackedOrigins=r,this.captureTransaction=o,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=a,this.captureTimeout=n,this.afterTransactionHandler=l=>{if(!this.captureTransaction(l)||!this.scope.some(v=>l.changedParentTypes.has(v)||v===this.doc)||!this.trackedOrigins.has(l.origin)&&(!l.origin||!this.trackedOrigins.has(l.origin.constructor)))return;const c=this.undoing,u=this.redoing,d=c?this.redoStack:this.undoStack;c?this.stopCapturing():u||this.clear(!1,!0);const p=new Yr;l.afterState.forEach((v,j)=>{const k=l.beforeState.get(j)||0,y=v-k;y>0&&Ja(p,j,k,y)});const m=Y$();let h=!1;if(this.lastChange>0&&m-this.lastChange<this.captureTimeout&&d.length>0&&!c&&!u){const v=d[d.length-1];v.deletions=Df([v.deletions,l.deleteSet]),v.insertions=Df([v.insertions,p])}else d.push(new XH(l.deleteSet,p)),h=!0;!c&&!u&&(this.lastChange=m),us(l,l.deleteSet,v=>{v instanceof Ie&&this.scope.some(j=>j===l.doc||Xa(j,v))&&Eg(v,!0)});const g=[{stackItem:d[d.length-1],origin:l.origin,type:c?"redo":"undo",changedParentTypes:l.changedParentTypes},this];h?this.emit("stack-item-added",g):this.emit("stack-item-updated",g)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(e){const n=new Set(this.scope);e=kf(e)?e:[e],e.forEach(o=>
293{n.has(o)||(n.add(o),(o instanceof vt?o.doc!==this.doc:o!==this.doc)&&Gy("[yjs#509] Not same Y.Doc"),this.scope.push(o))})}addTrackedOrigin(e){this.trackedOrigins.add(e)}removeTrackedOrigin(e){this.trackedOrigins.delete(e)}clear(e=!0,n=!0){(e&&this.canUndo()||n&&this.canRedo())&&this.doc.transact(o=>{e&&(this.undoStack.forEach(s=>n2(o,this,s)),this.undoStack=[]),n&&(this.redoStack.forEach(s=>n2(o,this,s)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:e,redoStackCleared:n}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let e;try{e=o2(this,this.undoStack,"undo")}finally{this.undoing=!1}return e}redo(){this.redoing=!0;let e;try{e=o2(this,this.redoStack,"redo")}finally{this.redoing=!1}return e}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off("afterTransaction",this.afterTransactionHandler),super.destroy()}}function*QH(t){const e=Pe(t.restDecoder);for(let n=0;n<e;n++){const o=Pe(t.restDecoder),s=t.readClient();let r=Pe(t.restDecoder);for(let a=0;a<o;a++){const i=t.readInfo();if(i===10){const l=Pe(t.restDecoder);yield new _n(pe(s,r),l),r+=l}else if((Iu&i)!==0){const l=(i&(bo|Rt))===0,c=new Ie(pe(s,r),null,(i&Rt)===Rt?t.readLeftID():null,null,(i&bo)===bo?t.readRightID():null,l?t.readParentInfo()?t.readString():t.readLeftID():null,l&&(i&Ka)===Ka?t.readString():null,Dw(t,i));yield c,r+=c.length}else{const l=t.readLen();yield new fn(pe(s,r),l),r+=l}}}}class eV{constructor(e,n){this.gen=QH(e),this.curr=null,this.done=!1,this.filterSkips=n,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===_n);return this.curr}}class tV{constructor(e){this.currClient=0,this.startClock=0,this.written=0,this.encoder=e,this.clientStructs=[]}}const nV=(t,e)=>{if(t.constructor===fn){const{client:n,clock:o}=t.id;return new fn(pe(n,o+e),t.length-e)}else if(t.constructor===_n){const{client:n,clock:o}=t.id;return new _n(pe(n,o+e),t.length-e)}else{const n=t,{client:o,clock:s}=n.id;return new Ie(pe(o,s+e),null,pe(o,s+e-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(e))}},s2=(t,e=Cc,n=Mu)=>{if(t.length===1)return t[0];const o=t.map(u=>new e(hg(u)));let s=o.map(u=>new eV(u,!0)),r=null;const a=new n,i=new tV(a);for(;s=s.filter(p=>p.curr!==null),s.sort((p,m)=>{if(p.curr.id.client===m.curr.id.client){const h=p.curr.id.clock-m.curr.id.clock;return h===0?p.curr.constructor===m.curr.constructor?0:p.curr.constructor===_n?1:-1:h}else return m.curr.id.client-p.curr.id.client}),s.length!==0;){const u=s[0],d=u.curr.id.client;if(r!==null){let p=u.curr,m=!1;for(;p!==null&&p.id.clock+p.length<=r.struct.id.clock+r.struct.length&&p.id.client>=r.struct.id.client;)p=u.next(),m=!0;if(p===null||p.id.client!==d||m&&p.id.clock>r.struct.id.clock+r.struct.length)continue;if(d!==r.struct.id.client)sa(i,r.struct,r.offset),r={struct:p,offset:0},u.next();else if(r.struct.id.clock+r.struct.length<p.id.clock)if(r.struct.constructor===_n)r.struct.length=p.id.clock+p.length-r.struct.id.clock;else{sa(i,r.struct,r.offset);const h=p.id.clock-r.struct.id.clock-r.struct.length;r={struct:new _n(pe(d,r.struct.id.clock+r.struct.length),h),offset:0}}else{const h=r.struct.id.clock+r.struct.length-p.id.clock;h>0&&(r.struct.constructor===_n?r.struct.length-=h:p=nV(p,h)),r.struct.mergeWith(p)||(sa(i,r.struct,r.offset),r={struct:p,offset:0},u.next())}}else r={struct:u.curr,offset:0},u.next();for(let p=u.curr;p!==null&&p.id.client===d&&p.id.clock===r.struct.id.clock+r.struct.length&&p.constructor!==_n;p=u.next())sa(i,r.struct,r.offset),r={struct:p,offset:0}}r!==null&&(sa(i,r.struct,r.offset),r=null),oV(i);const l=o.map(u=>MH(u)),c=Df(l);return wg(a,c),a.toUint8Array()},iw=t=>{t.written>0&&(t.clientStructs.push({written:t.written,restEncoder:Cn(t.encoder.restEncoder)}),t.encoder.restEncoder=Ai(),t.written=0)},sa=(t,e,n)=>{t.written>0&&t.currClient!==e.id.client&&iw(t),t.written===0&&(t.currClient=e.id.client,t.encoder.writeClient(e.id.client),ke(t.encoder.restEncoder,e.id.clock+n)),e.write(t.encoder,n),t.written++}
293,oV=t=>{iw(t);const e=t.encoder.restEncoder;ke(e,t.clientStructs.length);for(let n=0;n<t.clientStructs.length;n++){const o=t.clientStructs[n];ke(e,o.written),Su(e,o.restEncoder)}},r2="You must not compute changes after the event-handler fired.";class Nu{constructor(e,n){this.target=e,this.currentTarget=e,this.transaction=n,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=sV(this.currentTarget,this.target))}deletes(e){return Xr(this.transaction.deleteSet,e.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw cs(r2);const e=new Map,n=this.target;this.transaction.changed.get(n).forEach(s=>{if(s!==null){const r=n._map.get(s);let a,i;if(this.adds(r)){let l=r.left;for(;l!==null&&this.adds(l);)l=l.left;if(this.deletes(r))if(l!==null&&this.deletes(l))a="delete",i=Zd(l.content.getContent());else return;else l!==null&&this.deletes(l)?(a="update",i=Zd(l.content.getContent())):(a="add",i=void 0)}else if(this.deletes(r))a="delete",i=Zd(r.content.getContent());else return;e.set(s,{action:a,oldValue:i})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(e===null){if(this.transaction.doc._transactionCleanups.length===0)throw cs(r2);const n=this.target,o=Vs(),s=Vs(),r=[];if(e={added:o,deleted:s,delta:r,keys:this.keys},this.transaction.changed.get(n).has(null)){let i=null;const l=()=>{i&&r.push(i)};for(let c=n._start;c!==null;c=c.right)c.deleted?this.deletes(c)&&!this.adds(c)&&((i===null||i.delete===void 0)&&(l(),i={delete:0}),i.delete+=c.length,s.add(c)):this.adds(c)?((i===null||i.insert===void 0)&&(l(),i={insert:[]}),i.insert=i.insert.concat(c.content.getContent()),o.add(c)):((i===null||i.retain===void 0)&&(l(),i={retain:0}),i.retain+=c.length);i!==null&&i.retain===void 0&&l()}this._changes=e}return e}}const sV=(t,e)=>{const n=[];for(;e._item!==null&&e!==t;){if(e._item.parentSub!==null)n.unshift(e._item.parentSub);else{let o=0,s=e._item.parent._start;for(;s!==e._item&&s!==null;)!s.deleted&&s.countable&&(o+=s.length),s=s.right;n.unshift(o)}e=e._item.parent}return n},At=()=>{Gy("Invalid access: Add Yjs type to a document before reading data.")},lw=80;let xg=0;class rV{constructor(e,n){e.marker=!0,this.p=e,this.index=n,this.timestamp=xg++}}const aV=t=>{t.timestamp=xg++},cw=(t,e,n)=>{t.p.marker=!1,t.p=e,e.marker=!0,t.index=n,t.timestamp=xg++},iV=(t,e,n)=>{if(t.length>=lw){const o=t.reduce((s,r)=>s.timestamp<r.timestamp?s:r);return cw(o,e,n),o}else{const o=new rV(e,n);return t.push(o),o}},Ru=(t,e)=>{if(t._start===null||e===0||t._searchMarker===null)return null;const n=t._searchMarker.length===0?null:t._searchMarker.reduce((r,a)=>bl(e-r.index)<bl(e-a.index)?r:a);let o=t._start,s=0;for(n!==null&&(o=n.p,s=n.index,aV(n));o.right!==null&&s<e;){if(!o.deleted&&o.countable){if(e<s+o.length)break;s+=o.length}o=o.right}for(;o.left!==null&&s>e;)o=o.left,!o.deleted&&o.countable&&(s-=o.length);for(;o.left!==null&&o.left.id.client===o.id.client&&o.left.id.clock+o.left.length===o.id.clock;)o=o.left,!o.deleted&&o.countable&&(s-=o.length);return n!==null&&bl(n.index-s)<o.parent.length/lw?(cw(n,o,s),n):iV(t._searchMarker,o,s)},Qa=(t,e,n)=>{for(let o=t.length-1;o>=0;o--){const s=t[o];if(n>0){let r=s.p;for(r.marker=!1;r&&(r.deleted||!r.countable);)r=r.left,r&&!r.deleted&&r.countable&&(s.index-=r.length);if(r===null||r.marker===!0){t.splice(o,1);continue}s.p=r,r.marker=!0}(e<s.index||n>0&&e===s.index)&&(s.index=ls(e,s.index+n))}},Ou=(t,e,n)=>{const o=t,s=e.changedParentTypes;for(;xo(s,t,()=>[]).push(n),t._item!==null;)t=t._item.parent;ew(o._eH,n,e)};class vt{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=Jb(),this._dEH=Jb(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,n){this.doc=e,this._item=n}_copy(){throw En()}clone(){throw En()}_write(e){}get _first(){let e=this._start;for(;e!==null&&e.deleted;)e=e.right;return e}_callObserver(e,n){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){Yb(this._eH,e)}observeDeep(e){Yb(this._dEH,e)}unobserve(e){Xb(this._eH,e)}unobserveDeep(e){Xb(this._dEH,e)}toJSON(){}}const uw=(t,e,n)=>{t.doc??At(),e<0&&(e=t._length+e),n<0&&(n=t._length+n);let o=n-e;const s=[];let r=t._start;for(;r!==null&&o>0;){if(r.countable&&!r.deleted){const a=r.content.getContent();if(a.length<=e)e-=a.length;else{for(let i=e;i<a.length&&o>0;i++)s.push(a[i]),o--;e=0}}r=r.right}return s},dw=t=>{t.doc??At();const e=[];let n=t._start;for(;n!==null;){if(n.countable&&!n.deleted){const o=n.content.getContent();for(let s=0;s<o.length;s++)e.push(o[s])}n=n.right}return e},pw=(t,e)=>{const n=[];let o=t._start;for(;o!==null;){if(o.countable&&ys(o,e)){const s=o.content.getContent();for(let r=0;r<s.length;r++)n.push(s[r])}o=o.right}return n},ei=(t,e)=>{let n=0,o=t._start;for(t.doc??At();o!==null;){if(o.countable&&!o.deleted){const s=o.content.getContent();for(let r=0;r<s.length;r++)e(s[r],n++,t)}o=o.right}},fw=(t,e)=>{const n=[];return ei(t,(o,s)=>{n.push(e(o,s,t))}),n},lV=t=>{let e=t._start,n=null,o=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;e!==null&&e.deleted;)e=e.right;if(e===null)return{done:!0,value:void 0};n=e.content.getContent(),o=0,e=e.right}const s=n[o++];return n.length<=o&&(n=null),{done:!1,value:s}}}},mw=(t,e)=>{t.doc??At();const n=Ru(t,e);let o=t._start;for(n!==null&&(o=n.p,e-=n.index);o!==null;o=o.right)if(!o.deleted&&o.countable){if(e<o.length)return o.content.getContent()[e];e-=o.length}},Fc=(t,e,n,o)=>{let s=n;const r=t.doc,a=r.clientID,i=r.store,l=n===null?e._start:n.right;
293let c=[];const u=()=>{c.length>0&&(s=new Ie(pe(a,tt(i,a)),s,s&&s.lastId,l,l&&l.id,e,null,new Ws(c)),s.integrate(t,0),c=[])};o.forEach(d=>{if(d===null)c.push(d);else switch(d.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(d);break;default:switch(u(),d.constructor){case Uint8Array:case ArrayBuffer:s=new Ie(pe(a,tt(i,a)),s,s&&s.lastId,l,l&&l.id,e,null,new Mi(new Uint8Array(d))),s.integrate(t,0);break;case Qs:s=new Ie(pe(a,tt(i,a)),s,s&&s.lastId,l,l&&l.id,e,null,new Ti(d)),s.integrate(t,0);break;default:if(d instanceof vt)s=new Ie(pe(a,tt(i,a)),s,s&&s.lastId,l,l&&l.id,e,null,new On(d)),s.integrate(t,0);else throw new Error("Unexpected content type in insert operation")}}}),u()},hw=()=>cs("Length exceeded!"),gw=(t,e,n,o)=>{if(n>e._length)throw hw();if(n===0)return e._searchMarker&&Qa(e._searchMarker,n,o.length),Fc(t,e,null,o);const s=n,r=Ru(e,n);let a=e._start;for(r!==null&&(a=r.p,n-=r.index,n===0&&(a=a.prev,n+=a&&a.countable&&!a.deleted?a.length:0));a!==null;a=a.right)if(!a.deleted&&a.countable){if(n<=a.length){n<a.length&&Ut(t,pe(a.id.client,a.id.clock+n));break}n-=a.length}return e._searchMarker&&Qa(e._searchMarker,s,o.length),Fc(t,e,a,o)},cV=(t,e,n)=>{let s=(e._searchMarker||[]).reduce((r,a)=>a.index>r.index?a:r,{index:0,p:e._start}).p;if(s)for(;s.right;)s=s.right;return Fc(t,e,s,n)},bw=(t,e,n,o)=>{if(o===0)return;const s=n,r=o,a=Ru(e,n);let i=e._start;for(a!==null&&(i=a.p,n-=a.index);i!==null&&n>0;i=i.right)!i.deleted&&i.countable&&(n<i.length&&Ut(t,pe(i.id.client,i.id.clock+n)),n-=i.length);for(;o>0&&i!==null;)i.deleted||(o<i.length&&Ut(t,pe(i.id.client,i.id.clock+o)),i.delete(t),o-=i.length),i=i.right;if(o>0)throw hw();e._searchMarker&&Qa(e._searchMarker,s,-r+o)},Ec=(t,e,n)=>{const o=e._map.get(n);o!==void 0&&o.delete(t)},Cg=(t,e,n,o)=>{const s=e._map.get(n)||null,r=t.doc,a=r.clientID;let i;if(o==null)i=new Ws([o]);else switch(o.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:i=new Ws([o]);break;case Uint8Array:i=new Mi(o);break;case Qs:i=new Ti(o);break;default:if(o instanceof vt)i=new On(o);else throw new Error("Unexpected content type")}new Ie(pe(a,tt(r.store,a)),s,s&&s.lastId,null,null,e,n,i).integrate(t,0)},Dg=(t,e)=>{t.doc??At();const n=t._map.get(e);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},vw=t=>{const e={};return t.doc??At(),t._map.forEach((n,o)=>
293{n.deleted||(e[o]=n.content.getContent()[n.length-1])}),e},jw=(t,e)=>{t.doc??At();const n=t._map.get(e);return n!==void 0&&!n.deleted},uV=(t,e)=>{const n={};return t._map.forEach((o,s)=>{let r=o;for(;r!==null&&(!e.sv.has(r.id.client)||r.id.clock>=(e.sv.get(r.id.client)||0));)r=r.left;r!==null&&ys(r,e)&&(n[s]=r.content.getContent()[r.length-1])}),n},el=t=>(t.doc??At(),IH(t._map.entries(),e=>!e[1].deleted));class dV extends Nu{}class kr extends vt{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(e){const n=new kr;return n.push(e),n}_integrate(e,n){super._integrate(e,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new kr}clone(){const e=new kr;return e.insert(0,this.toArray().map(n=>n instanceof vt?n.clone():n)),e}get length(){return this.doc??At(),this._length}_callObserver(e,n){super._callObserver(e,n),Ou(this,e,new dV(this,e))}insert(e,n){this.doc!==null?Ae(this.doc,o=>{gw(o,this,e,n)}):this._prelimContent.splice(e,0,...n)}push(e){this.doc!==null?Ae(this.doc,n=>{cV(n,this,e)}):this._prelimContent.push(...e)}unshift(e){this.insert(0,e)}delete(e,n=1){this.doc!==null?Ae(this.doc,o=>{bw(o,this,e,n)}):this._prelimContent.splice(e,n)}get(e){return mw(this,e)}toArray(){return dw(this)}slice(e=0,n=this.length){return uw(this,e,n)}toJSON(){return this.map(e=>e instanceof vt?e.toJSON():e)}map(e){return fw(this,e)}forEach(e){ei(this,e)}[Symbol.iterator](){return lV(this)}_write(e){e.writeTypeRef(OV)}}const pV=t=>new kr;class fV extends Nu{constructor(e,n,o){super(e,n),this.keysChanged=o}}class Pr extends vt{constructor(e){super(),this._prelimContent=null,e===void 0?this._prelimContent=new Map:this._prelimContent=new Map(e)}_integrate(e,n){super._integrate(e,n),this._prelimContent.forEach((o,s)=>{this.set(s,o)}),this._prelimContent=null}_copy(){return new Pr}clone(){const e=new Pr;return this.forEach((n,o)=>{e.set(o,n instanceof vt?n.clone():n)}),e}_callObserver(e,n){Ou(this,e,new fV(this,e,n))}toJSON(){this.doc??At();const e={};return this._map.forEach((n,o)=>{if(!n.deleted){const s=n.content.getContent()[n.length-1];e[o]=s instanceof vt?s.toJSON():s}}),e}get size(){return[...el(this)].length}keys(){return ep(el(this),e=>e[0])}values(){return ep(el(this),e=>e[1].content.getContent()[e[1].length-1])}entries(){return ep(el(this),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this.doc??At(),this._map.forEach((n,o)=>{n.deleted||e(n.content.getContent()[n.length-1],o,this)})}[Symbol.iterator](){return this.entries()}delete(e){this.doc!==null?Ae(this.doc,n=>{Ec(n,this,e)}):this._prelimContent.delete(e)}set(e,n){return this.doc!==null?Ae(this.doc,o=>{Cg(o,this,e,n)}):this._prelimContent.set(e,n),n}get(e){return Dg(this,e)}has(e){return jw(this,e)}clear(){this.doc!==null?Ae(this.doc,e=>{this.forEach(function(n,o,s){Ec(e,s,o)})}):this._prelimContent.clear()}_write(e){e.writeTypeRef(BV)}}const mV=t=>new Pr,qo=(t,e)=>t===e||typeof t=="object"&&typeof e=="object"&&t&&e&&rH(t,e);class Sf{constructor(e,n,o,s){this.left=e,this.right=n,this.index=o,this.currentAttributes=s}forward(){switch(this.right===null&&Yt(),this.right.content.constructor){case rt:this.right.deleted||Qr(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const a2=(t,e,n)=>{for(;e.right!==null&&n>0;){switch(e.right.content.constructor){case rt:e.right.deleted||Qr(e.currentAttributes,e.right.content);break;default:e.right.deleted||(n<e.right.length&&Ut(t,pe(e.right.id.client,e.right.id.clock+n)),e.index+=e.right.length,n-=e.right.length);break}e.left=e.right,e.right=e.right.right}return e},tl=(t,e,n,o)=>{const s=new Map,r=o?Ru(e,n):null;if(r){const a=new Sf(r.p.left,r.p,r.index,s);return a2(t,a,n-r.index)}else{const a=new Sf(null,e._start,0,s);return a2(t,a,n)}},kw=(t,e,n,o)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===rt&&qo(o.get(n.right.content.key),n.right.content.value));)n.right.deleted||o.delete(n.right.content.key),n.forward();const s=t.doc,r=s.clientID;o.forEach((a,i)=>{const l=n.left,c=n.right,u=new Ie(pe(r,tt(s.store,r)),l,l&&l.lastId,c,c&&c.id,e,null,new rt(i,a));u.integrate(t,0),n.right=u,n.forward()})},Qr=(t,e)=>{const{key:n,value:o}=e;o===null?t.delete(n):t.set(n,o)},yw=(t,e)=>{for(;t.right!==null;){if(!(t.right.deleted||t.right.content.constructor===rt&&qo(e[t.right.content.key]??null,t.right.content.value)))break;t.forward()}},ww=(t,e,n,o)=>{const s=t.doc,r=s.clientID,a=new Map;for(const i in o){const l=o[i],c=n.currentAttributes.get(i)??null;if(!qo(c,l)){a.set(i,c);const{left:u,right:d}=n;n.right=new Ie(pe(r,tt(s.store,r)),u,u&&u.lastId,d,d&&d.id,e,null,new rt(i,l)),n.right.integrate(t,0),n.forward()}}return a},op=(t,e,n,o,s)=>
293{n.currentAttributes.forEach((p,m)=>{s[m]===void 0&&(s[m]=null)});const r=t.doc,a=r.clientID;yw(n,s);const i=ww(t,e,n,s),l=o.constructor===String?new An(o):o instanceof vt?new On(o):new er(o);let{left:c,right:u,index:d}=n;e._searchMarker&&Qa(e._searchMarker,n.index,l.getLength()),u=new Ie(pe(a,tt(r.store,a)),c,c&&c.lastId,u,u&&u.id,e,null,l),u.integrate(t,0),n.right=u,n.index=d,n.forward(),kw(t,e,n,i)},i2=(t,e,n,o,s)=>{const r=t.doc,a=r.clientID;yw(n,s);const i=ww(t,e,n,s);e:for(;n.right!==null&&(o>0||i.size>0&&(n.right.deleted||n.right.content.constructor===rt));){if(!n.right.deleted)switch(n.right.content.constructor){case rt:{const{key:l,value:c}=n.right.content,u=s[l];if(u!==void 0){if(qo(u,c))i.delete(l);else{if(o===0)break e;i.set(l,c)}n.right.delete(t)}else n.currentAttributes.set(l,c);break}default:o<n.right.length&&Ut(t,pe(n.right.id.client,n.right.id.clock+o)),o-=n.right.length;break}n.forward()}if(o>0){let l="";for(;o>0;o--)l+=`
294`;n.right=new Ie(pe(a,tt(r.store,a)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,e,null,new An(l)),n.right.integrate(t,0),n.forward()}kw(t,e,n,i)},_w=(t,e,n,o,s)=>{let r=e;const a=Fn();for(;r&&(!r.countable||r.deleted);){if(!r.deleted&&r.content.constructor===rt){const c=r.content;a.set(c.key,c)}r=r.right}let i=0,l=!1;for(;e!==r;){if(n===e&&(l=!0),!e.deleted){const c=e.content;switch(c.constructor){case rt:{const{key:u,value:d}=c,p=o.get(u)??null;(a.get(u)!==c||p===d)&&(e.delete(t),i++,!l&&(s.get(u)??null)===d&&p!==d&&(p===null?s.delete(u):s.set(u,p))),!l&&!e.deleted&&Qr(s,c);break}}}e=e.right}return i},hV=(t,e)=>{for(;e&&e.right&&(e.right.deleted||!e.right.countable);)e=e.right;const n=new Set;for(;e&&(e.deleted||!e.countable);){if(!e.deleted&&e.content.constructor===rt){const o=e.content.key;n.has(o)?e.delete(t):n.add(o)}e=e.left}},gV=t=>{let e=0;return Ae(t.doc,n=>{let o=t._start,s=t._start,r=Fn();const a=jf(r);for(;s;){if(s.deleted===!1)switch(s.content.constructor){case rt:Qr(a,s.content);break;default:e+=_w(n,o,s,r,a),r=jf(a),o=s;break}s=s.right}}),e},bV=t=>{const e=new Set,n=t.doc;for(const[o,s]of t.afterState.entries()){const r=t.beforeState.get(o)||0;s!==r&&sw(t,n.store.clients.get(o),r,s,a=>{!a.deleted&&a.content.constructor===rt&&a.constructor!==fn&&e.add(a.parent)})}Ae(n,o=>{us(t,t.deleteSet,s=>{if(s instanceof fn||!s.parent._hasFormatting||e.has(s.parent))return;const r=s.parent;s.content.constructor===rt?e.add(r):hV(o,s)});for(const s of e)gV(s)})},l2=(t,e,n)=>{const o=n,s=jf(e.currentAttributes),r=e.right;for(;n>0&&e.right!==null;){if(e.right.deleted===!1)switch(e.right.content.constructor){case On:case er:case An:n<e.right.length&&Ut(t,pe(e.right.id.client,e.right.id.clock+n)),n-=e.right.length,e.right.delete(t);break}e.forward()}r&&_w(t,r,e.right,s,e.currentAttributes);const a=(e.left||e.right).parent;return a._searchMarker&&Qa(a._searchMarker,e.index,-o+n),e};class vV extends Nu{constructor(e,n,o){super(e,n),this.childListChanged=!1,this.keysChanged=new Set,o.forEach(s=>{s===null?this.childListChanged=!0:this.keysChanged.add(s)})}get changes(){if(this._changes===null){const e={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=e}return this._changes}get delta(){if(this._delta===null){const e=this.target.doc,n=[];Ae(e,o=>{const s=new Map,r=new Map;let a=this.target._start,i=null;const l={};let c="",u=0,d=0;const p=()=>{if(i!==null){let m=null;switch(i){case"delete":d>0&&(m={delete:d}),d=0;break;case"insert":(typeof c=="object"||c.length>0)&&(m={insert:c},s.size>0&&(m.attributes={},s.forEach((h,g)=>{h!==null&&(m.attributes[g]=h)}))),c="";break;case"retain":u>0&&(m={retain:u},oH(l)||(m.attributes=tH({},l))),u=0;break}m&&n.push(m),i=null}};for(;a!==null;){switch(a.content.constructor){case On:case er:this.adds(a)?this.deletes(a)||(p(),i="insert",c=a.content.getContent()[0],p()):this.deletes(a)?(i!=="delete"&&(p(),i="delete"),d+=1):a.deleted||(i!=="retain"&&(p(),i="retain"),u+=1);break;case An:this.adds(a)?this.deletes(a)||(i!=="insert"&&(p(),i="insert"),c+=a.content.str):this.deletes(a)?(i!=="delete"&&(p(),i="delete"),d+=a.length):a.deleted||(i!=="retain"&&(p(),i="retain"),u+=a.length);break;case rt:{const{key:m,value:h}=a.content;if(this.adds(a)){if(!this.deletes(a)){const g=s.get(m)??null;qo(g,h)?h!==null&&a.delete(o):(i==="retain"&&p(),qo(h,r.get(m)??null)?delete l[m]:l[m]=h)}}else if(this.deletes(a)){r.set(m,h);const g=s.get(m)??null;qo(g,h)||(i==="retain"&&p(),l[m]=g)}else if(!a.deleted){r.set(m,h);const g=l[m];g!==void 0&&(qo(g,h)?g!==null&&a.delete(o):(i==="retain"&&p(),h===null?delete l[m]:l[m]=h))}a.deleted||(i==="insert"&&p(),Qr(s,a.content));break}}a=a.right}for(p();n.length>0;){const m=n[n.length-1];if(m.retain!==void 0&&m.attributes===void 0)n.pop();else break}}),this._delta=n}return this._delta}}class ds extends vt{constructor(e){super(),this._pending=e!==void 0?[()=>this.insert(0,e)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??At(),this._length}_integrate(e,n){super._integrate(e,n);try{this._pending.forEach(o=>o())}catch(o){console.error(o)}
294this._pending=null}_copy(){return new ds}clone(){const e=new ds;return e.applyDelta(this.toDelta()),e}_callObserver(e,n){super._callObserver(e,n);const o=new vV(this,e,n);Ou(this,e,o),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){this.doc??At();let e="",n=this._start;for(;n!==null;)!n.deleted&&n.countable&&n.content.constructor===An&&(e+=n.content.str),n=n.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:n=!0}={}){this.doc!==null?Ae(this.doc,o=>{const s=new Sf(null,this._start,0,new Map);for(let r=0;r<e.length;r++){const a=e[r];if(a.insert!==void 0){const i=!n&&typeof a.insert=="string"&&r===e.length-1&&s.right===null&&a.insert.slice(-1)===`
295`?a.insert.slice(0,-1):a.insert;(typeof i!="string"||i.length>0)&&op(o,this,s,i,a.attributes||{})}else a.retain!==void 0?i2(o,this,s,a.retain,a.attributes||{}):a.delete!==void 0&&l2(o,s,a.delete)}}):this._pending.push(()=>this.applyDelta(e))}toDelta(e,n,o){this.doc??At();const s=[],r=new Map,a=this.doc;let i="",l=this._start;function c(){if(i.length>0){const d={};let p=!1;r.forEach((h,g)=>{p=!0,d[g]=h});const m={insert:i};p&&(m.attributes=d),s.push(m),i=""}}const u=()=>{for(;l!==null;){if(ys(l,e)||n!==void 0&&ys(l,n))switch(l.content.constructor){case An:{const d=r.get("ychange");e!==void 0&&!ys(l,e)?(d===void 0||d.user!==l.id.client||d.type!=="removed")&&(c(),r.set("ychange",o?o("removed",l.id):{type:"removed"})):n!==void 0&&!ys(l,n)?(d===void 0||d.user!==l.id.client||d.type!=="added")&&(c(),r.set("ychange",o?o("added",l.id):{type:"added"})):d!==void 0&&(c(),r.delete("ychange")),i+=l.content.str;break}case On:case er:{c();const d={insert:l.content.getContent()[0]};if(r.size>0){const p={};d.attributes=p,r.forEach((m,h)=>{p[h]=m})}s.push(d);break}case rt:ys(l,e)&&(c(),Qr(r,l.content));break}l=l.right}c()};return e||n?Ae(a,d=>{e&&Ef(d,e),n&&Ef(d,n),u()},"cleanup"):u(),s}insert(e,n,o){if(n.length<=0)return;const s=this.doc;s!==null?Ae(s,r=>{const a=tl(r,this,e,!o);o||(o={},a.currentAttributes.forEach((i,l)=>{o[l]=i})),op(r,this,a,n,o)}):this._pending.push(()=>this.insert(e,n,o))}insertEmbed(e,n,o){const s=this.doc;s!==null?Ae(s,r=>{const a=tl(r,this,e,!o);op(r,this,a,n,o||{})}):this._pending.push(()=>this.insertEmbed(e,n,o||{}))}delete(e,n){if(n===0)return;const o=this.doc;o!==null?Ae(o,s=>{l2(s,tl(s,this,e,!0),n)}):this._pending.push(()=>this.delete(e,n))}format(e,n,o){if(n===0)return;const s=this.doc;s!==null?Ae(s,r=>{const a=tl(r,this,e,!1);a.right!==null&&i2(r,this,a,n,o)}):this._pending.push(()=>this.format(e,n,o))}removeAttribute(e){this.doc!==null?Ae(this.doc,n=>{Ec(n,this,e)}):this._pending.push(()=>this.removeAttribute(e))}setAttribute(e,n){this.doc!==null?Ae(this.doc,o=>{Cg(o,this,e,n)}):this._pending.push(()=>this.setAttribute(e,n))}getAttribute(e){return Dg(this,e)}getAttributes(){return vw(this)}_write(e){e.writeTypeRef(LV)}}const jV=t=>new ds;class sp{constructor(e,n=()=>!0){this._filter=n,this._root=e,this._currentNode=e._start,this._firstCall=!0,e.doc??At()}[Symbol.iterator](){return this}next(){let e=this._currentNode,n=e&&e.content&&e.content.type;if(e!==null&&(!this._firstCall||e.deleted||!this._filter(n)))do if(n=e.content.type,!e.deleted&&(n.constructor===St||n.constructor===qs)&&n._start!==null)e=n._start;else for(;e!==null;){const o=e.next;if(o!==null){e=o;break}else e.parent===this._root?e=null:e=e.parent._item}while(e!==null&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,e===null?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}}class qs extends vt{constructor(){super(),this._prelimContent=[]}get firstChild(){const e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,n){super._integrate(e,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new qs}clone(){const e=new qs;return e.insert(0,this.toArray().map(n=>n instanceof vt?n.clone():n)),e}get length(){return this.doc??At(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(e){return new sp(this,e)}querySelector(e){e=e.toUpperCase();const o=new sp(this,s=>s.nodeName&&s.nodeName.toUpperCase()===e).next();return o.done?null:o.value}querySelectorAll(e){return e=e.toUpperCase(),Us(new sp(this,n=>n.nodeName&&n.nodeName.toUpperCase()===e))}_callObserver(e,n){Ou(this,e,new wV(this,n,e))}toString(){return fw(this,e=>e.toString()).join("")}toJSON(){return this.toString()}toDOM(e=document,n={},o){const s=e.createDocumentFragment();return o!==void 0&&o._createAssociation(s,this),ei(this,r=>{s.insertBefore(r.toDOM(e,n,o),null)}),s}insert(e,n){this.doc!==null?Ae(this.doc,o=>{gw(o,this,e,n)}):this._prelimContent.splice(e,0,...n)}insertAfter(e,n){if(this.doc!==null)Ae(this.doc,o=>{const s=e&&e instanceof vt?e._item:e;Fc(o,this,s,n)});else{const o=this._prelimContent,s=e===null?0:o.findIndex(r=>r===e)+1;if(s===0&&e!==null)throw cs("Reference item not found");o.splice(s,0,...n)}}delete(e,n=1){this.doc!==null?Ae(this.doc,o=>{bw(o,this,e,n)}):this._prelimContent.splice(e,n)}toArray(){return dw(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return mw(this,e)}slice(e=0,n=this.length){return uw(this,e,n)}forEach(e){ei(this,e)}_write(e){e.writeTypeRef(zV)}}const kV=t=>new qs;class St extends qs{constructor(e="UNDEFINED"){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}
295_integrate(e,n){super._integrate(e,n),this._prelimAttrs.forEach((o,s)=>{this.setAttribute(s,o)}),this._prelimAttrs=null}_copy(){return new St(this.nodeName)}clone(){const e=new St(this.nodeName),n=this.getAttributes();return nH(n,(o,s)=>{typeof o=="string"&&e.setAttribute(s,o)}),e.insert(0,this.toArray().map(o=>o instanceof vt?o.clone():o)),e}toString(){const e=this.getAttributes(),n=[],o=[];for(const i in e)o.push(i);o.sort();const s=o.length;for(let i=0;i<s;i++){const l=o[i];n.push(l+'="'+e[l]+'"')}const r=this.nodeName.toLocaleLowerCase(),a=n.length>0?" "+n.join(" "):"";return`<${r}${a}>${super.toString()}</${r}>`}removeAttribute(e){this.doc!==null?Ae(this.doc,n=>{Ec(n,this,e)}):this._prelimAttrs.delete(e)}setAttribute(e,n){this.doc!==null?Ae(this.doc,o=>{Cg(o,this,e,n)}):this._prelimAttrs.set(e,n)}getAttribute(e){return Dg(this,e)}hasAttribute(e){return jw(this,e)}getAttributes(e){return e?uV(this,e):vw(this)}toDOM(e=document,n={},o){const s=e.createElement(this.nodeName),r=this.getAttributes();for(const a in r){const i=r[a];typeof i=="string"&&s.setAttribute(a,i)}return ei(this,a=>{s.appendChild(a.toDOM(e,n,o))}),o!==void 0&&o._createAssociation(s,this),s}_write(e){e.writeTypeRef(PV),e.writeKey(this.nodeName)}}const yV=t=>new St(t.readKey());class wV extends Nu{constructor(e,n,o){super(e,o),this.childListChanged=!1,this.attributesChanged=new Set,n.forEach(s=>{s===null?this.childListChanged=!0:this.attributesChanged.add(s)})}}class Ic extends Pr{constructor(e){super(),this.hookName=e}_copy(){return new Ic(this.hookName)}clone(){const e=new Ic(this.hookName);return this.forEach((n,o)=>{e.set(o,n)}),e}toDOM(e=document,n={},o){const s=n[this.hookName];let r;return s!==void 0?r=s.createDom(this):r=document.createElement(this.hookName),r.setAttribute("data-yjs-hook",this.hookName),o!==void 0&&o._createAssociation(r,this),r}_write(e){e.writeTypeRef($V),e.writeKey(this.hookName)}}const _V=t=>new Ic(t.readKey());class Kt extends ds{get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new Kt}clone(){const e=new Kt;return e.applyDelta(this.toDelta()),e}toDOM(e=document,n,o){const s=e.createTextNode(this.toString());return o!==void 0&&o._createAssociation(s,this),s}toString(){return this.toDelta().map(e=>{const n=[];for(const s in e.attributes){const r=[];for(const a in e.attributes[s])r.push({key:a,value:e.attributes[s][a]});r.sort((a,i)=>a.key<i.key?-1:1),n.push({nodeName:s,attrs:r})}n.sort((s,r)=>s.nodeName<r.nodeName?-1:1);let o="";for(let s=0;s<n.length;s++){const r=n[s];o+=`<${r.nodeName}`;for(let a=0;a<r.attrs.length;a++){const i=r.attrs[a];o+=` ${i.key}="${i.value}"`}o+=">"}o+=e.insert;for(let s=n.length-1;s>=0;s--)o+=`</${n[s].nodeName}>`;return o}).join("")}toJSON(){return this.toString()}_write(e){e.writeTypeRef(HV)}}const xV=t=>new Kt;class Fg{constructor(e,n){this.id=e,this.length=n}get deleted(){throw En()}mergeWith(e){return!1}write(e,n,o){throw En()}integrate(e,n){throw En()}}const CV=0;class fn extends Fg{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor!==e.constructor?!1:(this.length+=e.length,!0)}integrate(e,n){n>0&&(this.id.clock+=n,this.length-=n),ow(e.doc.store,this)}write(e,n){e.writeInfo(CV),e.writeLen(this.length-n)}getMissing(e,n){return null}}class Mi{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new Mi(this.content)}splice(e){throw En()}mergeWith(e){return!1}integrate(e,n){}delete(e){}gc(e){}write(e,n){e.writeBuf(this.content)}getRef(){return 3}}const DV=t=>new Mi(t.readBuf());class ti{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new ti(this.len)}splice(e){const n=new ti(this.len-e);return this.len=e,n}mergeWith(e){return this.len+=e.len,!0}integrate(e,n){Ja(e.deleteSet,n.id.client,n.id.clock,this.len),n.markDeleted()}delete(e){}gc(e){}write(e,n){e.writeLen(this.len-n)}getRef(){return 1}}const FV=t=>new ti(t.readLen()),xw=(t,e)=>new Qs({guid:t,...e,shouldLoad:e.shouldLoad||e.autoLoad||!1});class Ti{constructor(e){e._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=e;const n={};this.opts=n,e.gc||(n.gc=!1),e.autoLoad&&(n.autoLoad=!0),e.meta!==null&&(n.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new Ti(xw(this.doc.guid,this.opts))}splice(e){throw En()}mergeWith(e){return!1}integrate(e,n){this.doc._item=n,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,n){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}}const EV=t=>new Ti(xw(t.readString(),t.readAny()));class er{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new er(this.embed)}splice(e){throw En()}mergeWith(e){return!1}integrate(e,n){}delete(e){}gc(e){}write(e,n){e.writeJSON(this.embed)}getRef(){return 5}}const IV=t=>new er(t.readJSON());class rt{constructor(e,n){this.key=e,this.value=n}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new rt(this.key,this.value)}splice(e){throw En()}mergeWith(e){return!1}integrate(e,n){const o=n.parent;o._searchMarker=null,o._hasFormatting=!0}delete(e){}gc(e){}write(e,n){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}}const SV=t=>new rt(t.readKey(),t.readJSON());class Sc{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new Sc(this.arr)}splice(e){const n=new Sc(this.arr.slice(e));return this.arr=this.arr.slice(0,e),n}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,n){}delete(e){}gc(e){}write(e,n){const o=this.arr.length;e.writeLen(o-n);for(let s=n;s<o;s++){const r=this.arr[s];e.writeString(r===void 0?"undefined":JSON.stringify(r))}}getRef(){return 2}}const AV=t=>{const e=t.readLen(),n=[];for(let o=0;o<e;o++){const s=t.readString();s==="undefined"?n.push(void 0):n.push(JSON.parse(s))}return new Sc(n)},MV=xc("node_env")==="development";class Ws{constructor(e){this.arr=e,MV&&Py(e)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new Ws(this.arr)}splice(e){const n=new Ws(this.arr.slice(e));return this.arr=this.arr.slice(0,e),n}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,n){}delete(e){}gc(e){}write(e,n){const o=this.arr.length;e.writeLen(o-n);for(let s=n;s<o;s++){const r=this.arr[s];e.writeAny(r)}
295}getRef(){return 8}}const TV=t=>{const e=t.readLen(),n=[];for(let o=0;o<e;o++)n.push(t.readAny());return new Ws(n)};class An{constructor(e){this.str=e}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new An(this.str)}splice(e){const n=new An(this.str.slice(e));this.str=this.str.slice(0,e);const o=this.str.charCodeAt(e-1);return o>=55296&&o<=56319&&(this.str=this.str.slice(0,e-1)+"�",n.str="�"+n.str.slice(1)),n}mergeWith(e){return this.str+=e.str,!0}integrate(e,n){}delete(e){}gc(e){}write(e,n){e.writeString(n===0?this.str:this.str.slice(n))}getRef(){return 4}}const NV=t=>new An(t.readString()),RV=[pV,mV,jV,yV,kV,_V,xV],OV=0,BV=1,LV=2,PV=3,zV=4,$V=5,HV=6;class On{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new On(this.type._copy())}splice(e){throw En()}mergeWith(e){return!1}integrate(e,n){this.type._integrate(e.doc,n)}delete(e){let n=this.type._start;for(;n!==null;)n.deleted?n.id.clock<(e.beforeState.get(n.id.client)||0)&&e._mergeStructs.push(n):n.delete(e),n=n.right;this.type._map.forEach(o=>{o.deleted?o.id.clock<(e.beforeState.get(o.id.client)||0)&&e._mergeStructs.push(o):o.delete(e)}),e.changed.delete(this.type)}gc(e){let n=this.type._start;for(;n!==null;)n.gc(e,!0),n=n.right;this.type._start=null,this.type._map.forEach(o=>{for(;o!==null;)o.gc(e,!0),o=o.left}),this.type._map=new Map}write(e,n){this.type._write(e)}getRef(){return 7}}const VV=t=>new On(RV[t.readTypeRef()](t)),Af=(t,e)=>{let n=e,o=0,s;do o>0&&(n=pe(n.client,n.clock+o)),s=jr(t,n),o=n.clock-s.id.clock,n=s.redone;while(n!==null&&s instanceof Ie);return{item:s,diff:o}},Eg=(t,e)=>{for(;t!==null&&t.keep!==e;)t.keep=e,t=t.parent._item},Ac=(t,e,n)=>{const{client:o,clock:s}=e.id,r=new Ie(pe(o,s+n),e,pe(o,s+n-1),e.right,e.rightOrigin,e.parent,e.parentSub,e.content.splice(n));return e.deleted&&r.markDeleted(),e.keep&&(r.keep=!0),e.redone!==null&&(r.redone=pe(e.redone.client,e.redone.clock+n)),e.right=r,r.right!==null&&(r.right.left=r),t._mergeStructs.push(r),r.parentSub!==null&&r.right===null&&r.parent._map.set(r.parentSub,r),e.length=n,r},c2=(t,e)=>m$(t,n=>Xr(n.deletions,e)),Cw=(t,e,n,o,s,r)=>{const a=t.doc,i=a.store,l=a.clientID,c=e.redone;if(c!==null)return Ut(t,c);let u=e.parent._item,d=null,p;if(u!==null&&u.deleted===!0){if(u.redone===null&&(!n.has(u)||Cw(t,u,n,o,s,r)===null))return null;for(;u.redone!==null;)u=Ut(t,u.redone)}const m=u===null?e.parent:u.content.type;if(e.parentSub===null){for(d=e.left,p=e;d!==null;){let j=d;for(;j!==null&&j.parent._item!==u;)j=j.redone===null?null:Ut(t,j.redone);if(j!==null&&j.parent._item===u){d=j;break}d=d.left}for(;p!==null;){let j=p;for(;j!==null&&j.parent._item!==u;)j=j.redone===null?null:Ut(t,j.redone);if(j!==null&&j.parent._item===u){p=j;break}p=p.right}}else if(p=null,e.right&&!s){for(d=e;d!==null&&d.right!==null&&(d.right.redone||Xr(o,d.right.id)||c2(r.undoStack,d.right.id)||c2(r.redoStack,d.right.id));)for(d=d.right;d.redone;)d=Ut(t,d.redone);if(d&&d.right!==null)return null}else d=m._map.get(e.parentSub)||null;const h=tt(i,l),g=pe(l,h),v=new Ie(g,d,d&&d.lastId,p,p&&p.id,m,e.parentSub,e.content.copy());return e.redone=g,Eg(v,!0),v.integrate(t,0),v};class Ie extends Fg{constructor(e,n,o,s,r,a,i,l){super(e,l.getLength()),this.origin=o,this.left=n,this.right=s,this.rightOrigin=r,this.parent=a,this.parentSub=i,this.redone=null,this.content=l,this.info=this.content.isCountable()?Pb:0}set marker(e){(this.info&Yd)>0!==e&&(this.info^=Yd)}get marker(){return(this.info&Yd)>0}get keep(){return(this.info&Lb)>0}set keep(e){this.keep!==e&&(this.info^=Lb)}get countable(){return(this.info&Pb)>0}get deleted(){return(this.info&Jd)>0}set deleted(e){this.deleted!==e&&(this.info^=Jd)}markDeleted(){this.info|=Jd}getMissing(e,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=tt(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=tt(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===vr&&this.id.client!==this.parent.client&&this.parent.clock>=tt(n,this.parent.client))return this.parent.client;if(this.origin&&(this.left=Qb(e,n,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Ut(e,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===fn||this.right&&this.right.constructor===fn)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===Ie?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===Ie&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===vr){const o=jr(n,this.parent);o.constructor===fn?this.parent=null:this.parent=o.content.type}return null}integrate(e,n){if(n>0&&(this.id.clock+=n,this.left=Qb(e,e.doc.store,pe(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(n),this.length-=n),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let o=this.left,s;if(o!==null)s=o.right;else if(this.parentSub!==null)for(s=this.parent._map.get(this.parentSub)||null;s!==null&&s.left!==null;)s=s.left;else s=this.parent._start;const r=new Set,a=new Set;for(;s!==null&&s!==this.right;){if(a.add(s),r.add(s),Xi(this.origin,s.origin)){if(s.id.client<this.id.client)o=s,r.clear();else if(Xi(this.rightOrigin,s.rightOrigin))break}else if(s.origin!==null&&a.has(jr(e.doc.store,s.origin)))r.has(jr(e.doc.store,s.origin))||(o=s,r.clear());else break;s=s.right}this.left=o}if(this.left!==null){const o=this.left.right;this.right=o,this.left.right=this}else{let o;if(this.parentSub!==null)for(o=this.parent._map.get(this.parentSub)||null;o!==null&&o.left!==null;)o=o.left;else o=this.parent._start,this.parent._start=this;this.right=o}this.right!==null?this.right.left=this:this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(e)),this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),ow(e.doc.store,this),this.content.integrate(e,this),t2(e,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(e)}else new fn(this.id,this.length).integrate(e,0)}get next(){let e=this.right;for(;e!==null&&e.deleted;)e=e.right;return e}get prev(){let e=this.left;for(;e!==null&&e.deleted;)e=e.left;return e}get lastId(){return this.length===1?this.id:pe(this.id.client,this.id.clock+this.length-1)}mergeWith(e){if(this.constructor===e.constructor&&Xi(e.origin,this.lastId)&&this.right===e&&Xi(this.rightOrigin,e.rightOrigin)&&this.id.client===e.id.client&&this.id.clock+this.length===e.id.clock&&this.deleted===e.deleted&&this.redone===null&&e.redone===null&&this.content.constructor===e.content.constructor&&this.content.mergeWith(e.content)){const n=this.parent._searchMarker;
295return n&&n.forEach(o=>{o.p===e&&(o.p=this,!this.deleted&&this.countable&&(o.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,this.right!==null&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){const n=this.parent;this.countable&&this.parentSub===null&&(n._length-=this.length),this.markDeleted(),Ja(e.deleteSet,this.id.client,this.id.clock,this.length),t2(e,n,this.parentSub),this.content.delete(e)}}gc(e,n){if(!this.deleted)throw Yt();this.content.gc(e),n?GH(e,this,new fn(this.id,this.length)):this.content=new ti(this.length)}write(e,n){const o=n>0?pe(this.id.client,this.id.clock+n-1):this.origin,s=this.rightOrigin,r=this.parentSub,a=this.content.getRef()&Iu|(o===null?0:Rt)|(s===null?0:bo)|(r===null?0:Ka);if(e.writeInfo(a),o!==null&&e.writeLeftID(o),s!==null&&e.writeRightID(s),o===null&&s===null){const i=this.parent;if(i._item!==void 0){const l=i._item;if(l===null){const c=Ya(i);e.writeParentInfo(!0),e.writeString(c)}else e.writeParentInfo(!1),e.writeLeftID(l.id)}else i.constructor===String?(e.writeParentInfo(!0),e.writeString(i)):i.constructor===vr?(e.writeParentInfo(!1),e.writeLeftID(i)):Yt();r!==null&&e.writeString(r)}this.content.write(e,n)}}const Dw=(t,e)=>UV[e&Iu](t),UV=[()=>{Yt()},FV,AV,DV,NV,IV,SV,VV,TV,EV,()=>{Yt()}],qV=10;class _n extends Fg{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor!==e.constructor?!1:(this.length+=e.length,!0)}integrate(e,n){Yt()}write(e,n){e.writeInfo(qV),ke(e.restEncoder,this.length-n)}getMissing(e,n){return null}}const Fw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},Ew="__ $YJS$ __";Fw[Ew]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");Fw[Ew]=!0;const WV=()=>{let t=!0;return(e,n)=>{if(t){t=!1;try{e()}finally{t=!0}}else n!==void 0&&n()}},KV=/[\uD800-\uDBFF]/,GV=/[\uDC00-\uDFFF]/,ZV=(t,e)=>{let n=0,o=0;for(;n<t.length&&n<e.length&&t[n]===e[n];)n++;for(n>0&&KV.test(t[n-1])&&n--;o+n<t.length&&o+n<e.length&&t[t.length-o-1]===e[e.length-o-1];)o++;return o>0&&GV.test(t[t.length-o])&&o--,{index:n,remove:t.length-n-o,insert:e.slice(n,e.length-o)}},JV=ZV,Wn=(t,e)=>t>>>e|t<<32-e,YV=t=>Wn(t,2)^Wn(t,13)^Wn(t,22),XV=t=>Wn(t,6)^Wn(t,11)^Wn(t,25),QV=t=>Wn(t,7)^Wn(t,18)^t>>>3,eU=t=>Wn(t,17)^Wn(t,19)^t>>>10,tU=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),nU=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);class oU{constructor(){const e=new ArrayBuffer(320);this._H=new Uint32Array(e,0,8),this._H.set(nU),this._W=new Uint32Array(e,64,64)}_updateHash(){const e=this._H,n=this._W;for(let d=16;d<64;d++)n[d]=eU(n[d-2])+n[d-7]+QV(n[d-15])+n[d-16];let o=e[0],s=e[1],r=e[2],a=e[3],i=e[4],l=e[5],c=e[6],u=e[7];for(let d=0,p,m;d<64;d++)p=u+XV(i)+(i&l^~i&c)+tU[d]+n[d]>>>0,m=YV(o)+(o&s^o&r^s&r)>>>0,u=c,c=l,l=i,i=a+p>>>0,a=r,r=s,s=o,o=p+m>>>0;e[0]+=o,e[1]+=s,e[2]+=r,e[3]+=a,e[4]+=i,e[5]+=l,e[6]+=c,e[7]+=u}digest(e){let n=0;for(;n+56<=e.length;){let a=0;for(;a<16&&n+3<e.length;a++)this._W[a]=e[n++]<<24|e[n++]<<16|e[n++]<<8|e[n++];if(n%64!==0){for(this._W.fill(0,a,16);n<e.length;)this._W[a]|=e[n]<<(3-n%4)*8,n++;this._W[a]|=Rt<<(3-n%4)*8}this._updateHash()}const o=n%64!==0;this._W.fill(0,0,16);let s=0;for(;n<e.length;s++)for(let a=3;a>=0&&n<e.length;a--)this._W[s]|=e[n++]<<a*8;o||(this._W[s-(n%4===0?0:1)]|=Rt<<(3-n%4)*8),this._W[14]=e.byteLength/h$,this._W[15]=e.byteLength*8,this._updateHash();
295const r=new Uint8Array(32);for(let a=0;a<this._H.length;a++)for(let i=0;i<4;i++)r[a*4+i]=this._H[a]>>>(3-i)*8;return r}}const sU=t=>new oU().digest(t),We=new we("y-sync"),vo=new we("y-undo");new we("yjs-cursor");const rU=t=>{for(let n=6;n<t.length;n++)t[n%6]=t[n%6]^t[n];return t.slice(0,6)},aU=t=>fH(rU(sU(mH(t)))),Mc=(t,e)=>e===void 0?!t.deleted:e.sv.has(t.id.client)&&e.sv.get(t.id.client)>t.id.clock&&!Xr(e.ds,t.id),iU=[{light:"#ecd44433",dark:"#ecd444"}],lU=(t,e,n)=>{if(!t.has(n)){if(t.size<e.length){const o=Vs();t.forEach(s=>o.add(s)),e=e.filter(s=>!o.has(s))}t.set(n,G$(e))}return t.get(n)},cU=(t,{colors:e=iU,colorMapping:n=new Map,permanentUserData:o=null,onFirstRender:s=()=>{},mapping:r}={})=>{let a=!1;const i=new dU(t,r),l=new xe({props:{editable:c=>{const u=We.getState(c);return u.snapshot==null&&u.prevSnapshot==null}},key:We,state:{init:(c,u)=>({type:t,doc:t.doc,binding:i,snapshot:null,prevSnapshot:null,isChangeOrigin:!1,isUndoRedoOperation:!1,addToHistory:!0,colors:e,colorMapping:n,permanentUserData:o}),apply:(c,u)=>{const d=c.getMeta(We);if(d!==void 0){u=Object.assign({},u);for(const p in d)u[p]=d[p]}return u.addToHistory=c.getMeta("addToHistory")!==!1,u.isChangeOrigin=d!==void 0&&!!d.isChangeOrigin,u.isUndoRedoOperation=d!==void 0&&!!d.isChangeOrigin&&!!d.isUndoRedoOperation,i.prosemirrorView!==null&&d!==void 0&&(d.snapshot!=null||d.prevSnapshot!=null)&&Vy(0,()=>{i.prosemirrorView!=null&&(d.restore==null?i._renderSnapshot(d.snapshot,d.prevSnapshot,u):(i._renderSnapshot(d.snapshot,d.snapshot,u),delete u.restore,delete u.snapshot,delete u.prevSnapshot,i.mux(()=>{i._prosemirrorChanged(i.prosemirrorView.state.doc)})))}),u}},view:c=>(i.initView(c),r==null&&i._forceRerender(),s(),{update:()=>{const u=l.getState(c.state);if(u.snapshot==null&&u.prevSnapshot==null&&(a||c.state.doc.content.findDiffStart(c.state.doc.type.createAndFill().content)!==null)){if(a=!0,u.addToHistory===!1&&!u.isChangeOrigin){const d=vo.getState(c.state),p=d&&d.undoManager;p&&p.stopCapturing()}i.mux(()=>{u.doc.transact(d=>{d.meta.set("addToHistory",u.addToHistory),i._prosemirrorChanged(c.state.doc)},We)})}},destroy:()=>{i.destroy()}})});return l},uU=(t,e,n)=>{if(e!==null&&e.anchor!==null&&e.head!==null)if(e.type==="all")t.setSelection(new qt(t.doc));else if(e.type==="node"){const o=wl(n.doc,n.type,e.anchor,n.mapping);t.setSelection(U.create(t.doc,o))}else{const o=wl(n.doc,n.type,e.anchor,n.mapping),s=wl(n.doc,n.type,e.head,n.mapping);o!==null&&s!==null&&t.setSelection(Y.between(t.doc.resolve(o),t.doc.resolve(s)))}},Mf=(t,e)=>({type:e.selection.jsonID,anchor:Of(e.selection.anchor,t.type,t.mapping),head:Of(e.selection.head,t.type,t.mapping)});class dU{constructor(e,n=new Map){this.type=e,this.prosemirrorView=null,this.mux=WV(),this.mapping=n,this.isOMark=new Map,this._observeFunction=this._typeChanged.bind(this),this.doc=e.doc,this.beforeTransactionSelection=null,this.beforeAllTransactions=()=>{this.beforeTransactionSelection===null&&this.prosemirrorView!=null&&(this.beforeTransactionSelection=Mf(this,this.prosemirrorView.state))},this.afterAllTransactions=()=>{this.beforeTransactionSelection=null},this._domSelectionInView=null}get _tr(){return this.prosemirrorView.state.tr.setMeta("addToHistory",!1)}_isLocalCursorInView(){return this.prosemirrorView.hasFocus()?($y&&this._domSelectionInView===null&&(Vy(0,()=>{this._domSelectionInView=null}),this._domSelectionInView=this._isDomSelectionInView()),this._domSelectionInView):!1}_isDomSelectionInView(){const e=this.prosemirrorView._root.getSelection();if(e==null||e.anchorNode==null)return!1;const n=this.prosemirrorView._root.createRange();n.setStart(e.anchorNode,e.anchorOffset),n.setEnd(e.focusNode,e.focusOffset),n.getClientRects().length===0&&n.startContainer&&n.collapsed&&n.selectNodeContents(n.startContainer);const s=n.getBoundingClientRect(),r=gH.documentElement;return s.bottom>=0&&s.right>=0&&s.left<=(window.innerWidth||r.clientWidth||0)&&s.top<=(window.innerHeight||r.clientHeight||0)}renderSnapshot(e,n){n||(n=tw(Yy(),new Map)),this.prosemirrorView.dispatch(this._tr.setMeta(We,{snapshot:e,prevSnapshot:n}))}unrenderSnapshot(){this.mapping.clear(),this.mux(()=>{const e=this.type.toArray().map(o=>yl(o,this.prosemirrorView.state.schema,this)).filter(o=>
295o!==null),n=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new W(z.from(e),0,0));n.setMeta(We,{snapshot:null,prevSnapshot:null}),this.prosemirrorView.dispatch(n)})}_forceRerender(){this.mapping.clear(),this.mux(()=>{const e=this.beforeTransactionSelection!==null?null:this.prosemirrorView.state.selection,n=this.type.toArray().map(s=>yl(s,this.prosemirrorView.state.schema,this)).filter(s=>s!==null),o=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new W(z.from(n),0,0));if(e){const s=Or(ls(e.anchor,0),o.doc.content.size),r=Or(ls(e.head,0),o.doc.content.size);o.setSelection(Y.create(o.doc,s,r))}this.prosemirrorView.dispatch(o.setMeta(We,{isChangeOrigin:!0,binding:this}))})}_renderSnapshot(e,n,o){let s=this.doc,r=this.type;if(e||(e=np(this.doc)),e instanceof Uint8Array||n instanceof Uint8Array)if((!(e instanceof Uint8Array)||!(n instanceof Uint8Array))&&Yt(),s=new Qs({gc:!1}),Ff(s,n),n=np(s),Ff(s,e),e=np(s),r._item===null){const a=Array.from(this.doc.share.keys()).find(i=>this.doc.share.get(i)===this.type);r=s.getXmlFragment(a)}else{const a=s.store.clients.get(r._item.id.client)??[],i=Sn(a,r._item.id.clock);r=a[i].content.type}this.mapping.clear(),this.mux(()=>{s.transact(a=>{const i=o.permanentUserData;i&&i.dss.forEach(d=>{us(a,d,p=>{})});const l=(d,p)=>{const m=d==="added"?i.getUserByClientId(p.client):i.getUserByDeletedId(p);return{user:m,type:d,color:lU(o.colorMapping,o.colors,m)}},c=pw(r,new _g(n.ds,e.sv)).map(d=>!d._item.deleted||Mc(d._item,e)||Mc(d._item,n)?yl(d,this.prosemirrorView.state.schema,{mapping:new Map,isOMark:new Map},e,n,l):null).filter(d=>d!==null),u=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new W(z.from(c),0,0));this.prosemirrorView.dispatch(u.setMeta(We,{isChangeOrigin:!0}))},We)})}_typeChanged(e,n){if(this.prosemirrorView==null)return;const o=We.getState(this.prosemirrorView.state);if(e.length===0||o.snapshot!=null||o.prevSnapshot!=null){this.renderSnapshot(o.snapshot,o.prevSnapshot);return}this.mux(()=>{const s=(i,l)=>this.mapping.delete(l);us(n,n.deleteSet,i=>{if(i.constructor===Ie){const l=i.content.type;l&&this.mapping.delete(l)}}),n.changed.forEach(s),n.changedParentTypes.forEach(s);const r=this.type.toArray().map(i=>Iw(i,this.prosemirrorView.state.schema,this)).filter(i=>i!==null);let a=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new W(z.from(r),0,0));uU(a,this.beforeTransactionSelection,this),a=a.setMeta(We,{isChangeOrigin:!0,isUndoRedoOperation:n.origin instanceof aw}),this.beforeTransactionSelection!==null&&this._isLocalCursorInView()&&a.scrollIntoView(),this.prosemirrorView.dispatch(a)})}_prosemirrorChanged(e){this.doc.transact(()=>{Nf(this.doc,this.type,e,this),this.beforeTransactionSelection=Mf(this,this.prosemirrorView.state)},We)}initView(e){this.prosemirrorView!=null&&this.destroy(),this.prosemirrorView=e,this.doc.on("beforeAllTransactions",this.beforeAllTransactions),this.doc.on("afterAllTransactions",this.afterAllTransactions),this.type.observeDeep(this._observeFunction)}destroy(){this.prosemirrorView!=null&&(this.prosemirrorView=null,this.type.unobserveDeep(this._observeFunction),this.doc.off("beforeAllTransactions",this.beforeAllTransactions),this.doc.off("afterAllTransactions",this.afterAllTransactions))}}const Iw=(t,e,n,o,s,r)=>{const a=n.mapping.get(t);if(a===void 0){if(t instanceof St)return yl(t,e,n,o,s,r);throw En()}return a},yl=(t,e,n,o,s,r)=>{const a=[],i=l=>{if(l instanceof St){const c=Iw(l,e,n,o,s,r);c!==null&&a.push(c)}else{const c=l._item.right?.content?.type;c instanceof ds&&!c._item.deleted&&c._item.id.client===c.doc.clientID&&(l.applyDelta([{retain:l.length},...c.toDelta()]),c.doc.transact(d=>{c._item.delete(d)}));const u=pU(l,e,n,o,s,r);u!==null&&u.forEach(d=>{d!==null&&a.push(d)})}};o===void 0||s===void 0?t.toArray().forEach(i):pw(t,new _g(s.ds,o.sv)).forEach(i);try{const l=t.getAttributes(o);o!==void 0&&(Mc(t._item,o)?Mc(t._item,s)||(l.ychange=r?r("added",t._item.id):{type:"added"}):l.ychange=r?r("removed",t._item.id):{type:"removed"});const c=e.node(t.nodeName,l,a);return n.mapping.set(t,c),c}catch{return t.doc.transact(c=>{t._item.delete(c)},We),n.mapping.delete(t),null}},pU=(t,e,n,o,s,r)=>{const a=[],i=t.toDelta(o,s,r);try{for(let l=0;l<i.length;l++){const c=i[l];a.push(e.text(c.insert,vU(c.attributes,e)))}}catch{return t.doc.transact(c=>{t._item.delete(c)},We),null}return a},fU=(t,e)=>{const n=new Kt,o=t.map(s=>({insert:s.text,attributes:Aw(s.marks,e)}));return n.applyDelta(o),e.mapping.set(n,t),n},mU=(t,e)=>{const n=new St(t.type.name);for(const o in t.attrs){const s=t.attrs[o];s!==null&&o!=="ychange"&&n.setAttribute(o,s)}return n.insert(0,Bu(t).map(o=>Tf(o,e))),e.mapping.set(n,t),n},Tf=(t,e)=>t instanceof Array?fU(t,e):mU(t,e),u2=t=>typeof t=="object"&&t!==null,Ig=(t,e)=>{const n=Object.keys(t).filter(s=>t[s]!==null);let o=n.length===Object.keys(e).filter(s=>e[s]!==null).length;for(let s=0;s<n.length&&o;s++){const r=n[s],a=t[r],i=e[r];
295o=r==="ychange"||a===i||u2(a)&&u2(i)&&Ig(a,i)}return o},Bu=t=>{const e=t.content.content,n=[];for(let o=0;o<e.length;o++){const s=e[o];if(s.isText){const r=[];for(let a=e[o];o<e.length&&a.isText;a=e[++o])r.push(a);o--,n.push(r)}else n.push(s)}return n},Sw=(t,e)=>{const n=t.toDelta();return n.length===e.length&&n.every((o,s)=>o.insert===e[s].text&&By(o.attributes||{}).length===e[s].marks.length&&Ly(o.attributes,(r,a)=>{const i=Sg(a),l=e[s].marks;return Ig(r,l.find(c=>c.type.name===i)?.attrs)}))},ni=(t,e)=>{if(t instanceof St&&!(e instanceof Array)&&Rf(t,e)){const n=Bu(e);return t._length===n.length&&Ig(t.getAttributes(),e.attrs)&&t.toArray().every((o,s)=>ni(o,n[s]))}return t instanceof Kt&&e instanceof Array&&Sw(t,e)},Tc=(t,e)=>t===e||t instanceof Array&&e instanceof Array&&t.length===e.length&&t.every((n,o)=>e[o]===n),d2=(t,e,n)=>{const o=t.toArray(),s=Bu(e),r=s.length,a=o.length,i=Or(a,r);let l=0,c=0,u=!1;for(;l<i;l++){const d=o[l],p=s[l];if(Tc(n.mapping.get(d),p))u=!0;else if(!ni(d,p))break}for(;l+c<i;c++){const d=o[a-c-1],p=s[r-c-1];if(Tc(n.mapping.get(d),p))u=!0;else if(!ni(d,p))break}return{equalityFactor:l+c,foundMappedChild:u}},hU=t=>{let e="",n=t._start;const o={};for(;n!==null;)n.deleted||(n.countable&&n.content instanceof An?e+=n.content.str:n.content instanceof rt&&(o[n.content.key]=null)),n=n.right;return{str:e,nAttrs:o}},gU=(t,e,n)=>{n.mapping.set(t,e);const{nAttrs:o,str:s}=hU(t),r=e.map(c=>({insert:c.text,attributes:Object.assign({},o,Aw(c.marks,n))})),{insert:a,remove:i,index:l}=JV(s,r.map(c=>c.insert).join(""));t.delete(l,i),t.insert(l,a),t.applyDelta(r.map(c=>({retain:c.insert.length,attributes:c.attributes})))},bU=/(.*)(--[a-zA-Z0-9+/=]{8})$/,Sg=t=>bU.exec(t)?.[1]??t,vU=(t,e)=>{const n=[];for(const o in t)n.push(e.mark(Sg(o),t[o]));return n},Aw=(t,e)=>{const n={};return t.forEach(o=>{if(o.type.name!=="ychange"){const s=xo(e.isOMark,o.type,()=>!o.type.excludes(o.type));n[s?`${o.type.name}--${aU(o.toJSON())}`:o.type.name]=o.attrs}}),n},Nf=(t,e,n,o)=>{if(e instanceof St&&e.nodeName!==n.type.name)throw new Error("node name mismatch!");if(o.mapping.set(e,n),e instanceof St){const d=e.getAttributes(),p=n.attrs;for(const m in p)p[m]!==null?d[m]!==p[m]&&m!=="ychange"&&e.setAttribute(m,p[m]):e.removeAttribute(m);for(const m in d)p[m]===void 0&&e.removeAttribute(m)}const s=Bu(n),r=s.length,a=e.toArray(),i=a.length,l=Or(r,i);let c=0,u=0;for(;c<l;c++){const d=a[c],p=s[c];if(!Tc(o.mapping.get(d),p))if(ni(d,p))o.mapping.set(d,p);else break}for(;u+c+1<l;u++){const d=a[i-u-1],p=s[r-u-1];if(!Tc(o.mapping.get(d),p))if(ni(d,p))o.mapping.set(d,p);else break}t.transact(()=>{for(;i-c-u>0&&r-c-u>0;){const p=a[c],m=s[c],h=a[i-u-1],g=s[r-u-1];if(p instanceof Kt&&m instanceof Array)Sw(p,m)||gU(p,m,o),c+=1;else{let v=p instanceof St&&Rf(p,m),j=h instanceof St&&Rf(h,g);if(v&&j){const k=d2(p,m,o),y=d2(h,g,o);k.foundMappedChild&&!y.foundMappedChild?j=!1:!k.foundMappedChild&&y.foundMappedChild||k.equalityFactor<y.equalityFactor?v=!1:j=!1}v?(Nf(t,p,m,o),c+=1):j?(Nf(t,h,g,o),u+=1):(o.mapping.delete(e.get(c)),e.delete(c,1),e.insert(c,[Tf(m,o)]),c+=1)}}const d=i-c-u;if(i===1&&r===0&&a[0]instanceof Kt?(o.mapping.delete(a[0]),a[0].delete(0,a[0].length)):d>0&&(e.slice(c,c+d).forEach(p=>o.mapping.delete(p)),e.delete(c,d)),c+u<r){const p=[];for(let m=c;m<r-u;m++)p.push(Tf(s[m],o));e.insert(c,p)}},We)},Rf=(t,e)=>!(e instanceof Array)&&t.nodeName===e.type.name,Of=(t,e,n)=>{if(t===0)return tp(e,0,-1);let o=e._first===null?null:e._first.content.type;for(;o!==null&&e!==o;){if(o instanceof Kt){if(o._length>=t)return tp(o,t,-1);if(t-=o._length,o._item!==null&&o._item.next!==null)o=o._item.next.content.type;else{do o=o._item===null?null:o._item.parent,t--;while(o!==e&&o!==null&&o._item!==null&&o._item.next===null);o!==null&&o!==e&&(o=o._item===null?null:o._item.next.content.type)}}else{const s=(n.get(o)||{nodeSize:0}).nodeSize;if(o._first!==null&&t<s)o=o._first.content.type,t--;else{if(t===1&&o._length===0&&s>1)return new Dc(o._item===null?null:o._item.id,o._item===null?Ya(o):null,null);if(t-=s,o._item!==null&&o._item.next!==null)o=o._item.next.content.type;else{if(t===0)return o=o._item===null?o:o._item.parent,new Dc(o._item===null?null:o._item.id,o._item===null?Ya(o):null,null);do o=o._item.parent,t--;while(o!==e&&o._item.next===null);o!==e&&(o=o._item.next.content.type)}}}if(o===null)throw Yt();if(t===0&&o.constructor!==Kt&&o!==e)return jU(o._item.parent,o._item)}return tp(e,e._length,-1)},jU=(t,e)=>{let n=null,o=null;return t._item===null?o=Ya(t):n=pe(t._item.id.client,t._item.id.clock),new Dc(n,o,e.id)},wl=(t,e,n,o)=>{const s=WH(n,t);if(s===null||s.type!==e&&!Xa(e,s.type._item))return null;let r=s.type,a=0;if(r.constructor===Kt)a=s.index;else if(r._item===null||!r._item.deleted){let i=r._first,l=0;for(;l<r._length&&l<s.index&&i!==null;){if(!i.deleted){const c=i.content.type;l++,c instanceof Kt?a+=c._length:a+=o.get(c).nodeSize}i=i.right}a+=1}for(;r!==e&&r._item!==null;){const i=r._item.parent;if(i._item===null||!i._item.deleted){a+=1;let l=i._first;for(;l!==null;){const c=l.content.type;if(c===r)break;l.deleted||(c instanceof Kt?a+=c._length:a+=o.get(c).nodeSize),l=l.right}}r=i}return a-1};function kU(t){const e=t.toArray(),n=o=>{let s;if(o instanceof Kt)s=o.toDelta().map(a=>{const i={type:"text",text:a.insert};return a.attributes&&(i.marks=Object.keys(a.attributes).map(l=>{const c=a.attributes[l],d={type:Sg(l)};return Object.keys(c)&&(d.attrs=c),d})),i});else if(o instanceof St){s={type:o.nodeName};const r=o.getAttributes();Object.keys(r).length&&(s.attrs=r);const a=o.toArray();a.length&&(s.content=a.map(n).flat())}else Yt();return s};return{type:"doc",content:e.map(n)}}const yU=t=>{const e=vo.getState(t).undoManager;if(e!=null)return e.undo(),!0},wU=t=>{const e=vo.getState(t).undoManager;if(e!=null)return e.redo(),!0},_U=new Set(["paragraph"]),xU=(t,e)=>!(t instanceof Ie)||!(t.content instanceof On)||!(t.content.type instanceof ds||t.content.type instanceof St&&e.has(t.content.type.nodeName))||t.content.type._length===0,CU=({protectedNodes:t=_U,trackedOrigins:e=[],undoManager:n=null}={})=>new xe({key:vo,state:{init:(o,s)=>{const r=We.getState(s),a=n||new aw(r.type,{trackedOrigins:new Set([We].concat(e)),deleteFilter:i=>xU(i,t),captureTransaction:i=>i.meta.get("addToHistory")!==!1});
295return{undoManager:a,prevSel:null,hasUndoOps:a.undoStack.length>0,hasRedoOps:a.redoStack.length>0}},apply:(o,s,r,a)=>{const i=We.getState(a).binding,l=s.undoManager,c=l.undoStack.length>0,u=l.redoStack.length>0;return i?{undoManager:l,prevSel:Mf(i,r),hasUndoOps:c,hasRedoOps:u}:c!==s.hasUndoOps||u!==s.hasRedoOps?Object.assign({},s,{hasUndoOps:l.undoStack.length>0,hasRedoOps:l.redoStack.length>0}):s}},view:o=>{const s=We.getState(o.state),r=vo.getState(o.state).undoManager;return r.on("stack-item-added",({stackItem:a})=>{const i=s.binding;i&&a.meta.set(i,vo.getState(o.state).prevSel)}),r.on("stack-item-popped",({stackItem:a})=>{const i=s.binding;i&&(i.beforeTransactionSelection=a.meta.get(i)||i.beforeTransactionSelection)}),{destroy:()=>{r.destroy()}}}});me.create({name:"collaboration",priority:1e3,addOptions(){return{document:null,field:"default",fragment:null,provider:null}},addStorage(){return{isDisabled:!1}},onCreate(){this.editor.extensionManager.extensions.find(t=>t.name==="undoRedo")&&console.warn('[tiptap warn]: "@tiptap/extension-collaboration" comes with its own history support and is not compatible with "@tiptap/extension-undo-redo".')},addCommands(){return{undo:()=>({tr:t,state:e,dispatch:n})=>(t.setMeta("preventDispatch",!0),vo.getState(e).undoManager.undoStack.length===0?!1:n?yU(e):!0),redo:()=>({tr:t,state:e,dispatch:n})=>(t.setMeta("preventDispatch",!0),vo.getState(e).undoManager.redoStack.length===0?!1:n?wU(e):!0)}},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo()}},addProseMirrorPlugins(){var t;const e=this.options.fragment?this.options.fragment:this.options.document.getXmlFragment(this.options.field),n=CU(this.options.yUndoOptions),o=n.spec.view;n.spec.view=a=>{const{undoManager:i}=vo.getState(a.state);i.restore&&(i.restore(),i.restore=()=>{});const l=o?o(a):void 0;return{destroy:()=>{const c=i.trackedOrigins.has(i),u=i._observers;i.restore=()=>{c&&i.trackedOrigins.add(i),i.doc.on("afterTransaction",i.afterTransactionHandler),i._observers=u},l?.destroy&&l.destroy()}}};const s={...this.options.ySyncOptions,onFirstRender:this.options.onFirstRender},r=cU(e,s);return this.editor.options.enableContentCheck&&((t=e.doc)==null||t.on("beforeTransaction",()=>{try{const a=kU(e);if(a.content.length===0)return;this.editor.schema.nodeFromJSON(a).check()}catch(a){return this.editor.emit("contentError",{error:a,editor:this.editor,disableCollaboration:()=>{var i;(i=e.doc)==null||i.destroy(),this.storage.isDisabled=!0}}),!1}})),[r,n,this.editor.options.enableContentCheck&&new xe({key:new we("filterInvalidContent"),filterTransaction:()=>{var a;return this.storage.isDisabled!==!1&&((a=e.doc)==null||a.destroy()),!0}})].filter(Boolean)}});function DU(t){return!!t.getMeta(We)}function p2(t){if(!t.length)return Ne.empty;const e=[],n=t[0].$from.node(0);return t.forEach(o=>{const s=o.$from.pos,r=o.$from.nodeAfter;r&&e.push(xt.node(s,s+r.nodeSize,{class:"ProseMirror-selectednoderange"}))}),Ne.create(n,e)}function Lu(t,e,n){const o=[],s=t.node(0);typeof n=="number"&&n>=0||(t.sameParent(e)?n=Math.max(0,t.sharedDepth(e.pos)-1):n=t.sharedDepth(e.pos));const r=new Ea(t,e,n),a=r.depth===0?0:s.resolve(r.start).posAtIndex(0);return r.parent.forEach((i,l)=>{const c=a+l,u=c+i.nodeSize;if(c<r.start||c>=r.end)return;const d=new _v(s.resolve(c),s.resolve(u));o.push(d)}),o}var FU=class Mw{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Mw(e.map(this.anchor),e.map(this.head))}resolve(e){const n=e.resolve(this.anchor),o=e.resolve(this.head);return new Wo(n,o)}},Wo=class So extends le{constructor(e,n,o,s=1){const{doc:r}=e,a=e===n,i=e.pos===r.content.size&&n.pos===r.content.size,l=a&&!i?r.resolve(n.pos+(s>0?1:-1)):n,c=a&&i?r.resolve(e.pos-(s>0?1:-1)):e,u=Lu(c.min(l),c.max(l),o),d=l.pos>=e.pos?u[0].$from:u[u.length-1].$to,p=l.pos>=e.pos?u[u.length-1].$to:u[0].$from;super(d,p,u),this.depth=o}get $to(){return this.ranges[this.ranges.length-1].$to}eq(e){return e instanceof So&&e.$from.pos===this.$from.pos&&e.$to.pos===this.$to.pos}map(e,n){const o=e.resolve(n.map(this.anchor)),s=e.resolve(n.map(this.head));return new So(o,s)}toJSON(){return{type:"nodeRange",anchor:this.anchor,head:this.head}}get isForwards(){return this.head>=this.anchor}get isBackwards(){return!this.isForwards}extendBackwards(){const{doc:e}=this.$from;if(this.isForwards&&this.ranges.length>1){const s=this.ranges.slice(0,-1),r=s[0].$from,a=s[s.length-1].$to;return new So(r,a,this.depth)}const n=this.ranges[0],o=e.resolve(Math.max(0,n.$from.pos-1));return new So(this.$anchor,o,this.depth)}extendForwards(){const{doc:e}=this.$from;if(this.isBackwards&&this.ranges.length>1){const s=this.ranges.slice(1),r=s[0].$from,a=s[s.length-1].$to;return new So(a,r,this.depth)}const n=this.ranges[this.ranges.length-1],o=e.resolve(Math.min(e.content.size,n.$to.pos+1));return new So(this.$anchor,o,this.depth)}static fromJSON(e,n){return new So(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,o,s,r=1){return new this(e.resolve(n),e.resolve(o),s,r)}getBookmark(){return new FU(this.anchor,this.head)}};Wo.prototype.visible=!1;function nl(t){return t instanceof Wo}me.create({name:"nodeRange",addOptions(){return{depth:void 0,key:"Mod"}},addKeyboardShortcuts(){return{"Shift-ArrowUp":({editor:t})=>{const{depth:e}=this.options,{view:n,state:o}=t,{doc:s,selection:r,tr:a}=o,{anchor:i,head:l}=r;if(!nl(r)){const u=Wo.create(s,i,l,e,-1);return a.setSelection(u),n.dispatch(a),!0}const c=r.extendBackwards();return a.setSelection(c),n.dispatch(a),!0},"Shift-ArrowDown":({editor:t})=>{const{depth:e}=this.options,{view:n,state:o}=t,{doc:s,selection:r,tr:a}=o,{anchor:i,head:l}=r;if(!nl(r)){const u=Wo.create(s,i,l,e);return a.setSelection(u),n.dispatch(a),!0}const c=r.extendForwards();return a.setSelection(c),n.dispatch(a),!0},"Mod-a":({editor:t})=>{const{depth:e}=this.options,{view:n,state:o}=t,{doc:s,tr:r}=o,a=Wo.create(s,0,s.content.size,e);return r.setSelection(a),n.dispatch(r),!0}}},onSelectionUpdate(){const{selection:t}=this.editor.state;nl(t)&&this.editor.view.dom.classList.add("ProseMirror-noderangeselection")},addProseMirrorPlugins(){let t=!1,e=!1;return[new xe({key:new we("nodeRange"),props:{attributes:()=>t?{class:"ProseMirror-noderangeselection"}:{class:""},handleDOMEvents:{mousedown:(n,o)=>{const{key:s}
295=this.options,r=/Mac/.test(navigator.platform),a=!!o.shiftKey,i=!!o.ctrlKey,l=!!o.altKey,c=!!o.metaKey,u=r?c:i;return(s==null||s==="Shift"&&a||s==="Control"&&i||s==="Alt"&&l||s==="Meta"&&c||s==="Mod"&&u)&&(e=!0),e&&document.addEventListener("mouseup",()=>{e=!1;const{state:d}=n,{doc:p,selection:m,tr:h}=d,{$anchor:g,$head:v}=m;if(g.sameParent(v))return;const j=Wo.create(p,g.pos,v.pos,this.options.depth);h.setSelection(j),n.dispatch(h)},{once:!0}),!1}},decorations:n=>{const{selection:o}=n,s=nl(o);if(t=!1,!e)return s?(t=!0,p2(o.ranges)):null;const{$from:r,$to:a}=o;if(!s&&r.sameParent(a))return null;const i=Lu(r,a,this.options.depth);return i.length?(t=!0,p2(i)):null}}})]}});function EU(t){let e="";const n=getComputedStyle(t);for(let o=0;o<n.length;o+=1)e+=`${n[o]}:${n.getPropertyValue(n[o])};`;return e}function IU(t){const e=t.cloneNode(!0),n=[t,...Array.from(t.getElementsByTagName("*"))],o=[e,...Array.from(e.getElementsByTagName("*"))];return n.forEach((s,r)=>{o[r].style.cssText=EU(s)}),e}var Tw=t=>{const{x:e,y:n,direction:o="right",editor:s,bandHeight:r=5}=t,a={top:n-r,bottom:n+r,left:o==="right"?e:0,right:o==="right"?window.innerWidth-e:e},l=[...s.view.dom.querySelectorAll("*")].filter(m=>s.view.posAtDOM(m,0)>=0).filter(m=>{const h=m.getBoundingClientRect();return!(h.bottom<a.top||h.top>a.bottom||h.right<a.left||h.left>a.right)});if(!l||l.length===0)return{resultElement:null,resultNode:null,pos:null};const c=l[0],u=s.view.posAtDOM(c,0);if(u===-1)return{resultElement:c,resultNode:null,pos:null};const d=s.state.doc.resolve(u);if(d.nodeAfter){const m=s.view.nodeDOM(d.pos);if(m&&m===c)return{resultElement:c,resultNode:d.nodeAfter,pos:u}}const p=s.state.doc.nodeAt(u-1);return{resultElement:c,resultNode:p,pos:u}};function ol(t,e){return window.getComputedStyle(t)[e]}function SU(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function AU(t,e,n){const o=parseInt(ol(t.dom,"paddingLeft"),10),s=parseInt(ol(t.dom,"paddingRight"),10),r=parseInt(ol(t.dom,"borderLeftWidth"),10),a=parseInt(ol(t.dom,"borderLeftWidth"),10),i=t.dom.getBoundingClientRect();return{left:SU(e,i.left+o+r,i.right-s-a),top:n}}function Nw(t){var e;(e=t.parentNode)==null||e.removeChild(t)}function MU(t,e){const{doc:n}=e.view.state,o=Tw({editor:e,x:t.clientX,y:t.clientY,direction:"right"});if(!o.resultNode||o.pos===null)return[];const s=t.clientX,r=AU(e.view,s,t.clientY),a=e.view.posAtCoords(r);if(!a)return[];const{pos:i}=a;if(!n.resolve(i).parent)return[];const c=n.resolve(o.pos),u=n.resolve(o.pos+1);return Lu(c,u,0)}function TU(t,e){const{view:n}=e;if(!t.dataTransfer)return;const{empty:o,$from:s,$to:r}=n.state.selection,a=MU(t,e),i=Lu(s,r,0),l=i.some(v=>a.find(j=>j.$from===v.$from&&j.$to===v.$to)),c=o||!l?a:i;if(!c.length)return;const{tr:u}=n.state,d=document.createElement("div"),p=c[0].$from.pos,m=c[c.length-1].$to.pos,h=Wo.create(n.state.doc,p,m),g=h.content();c.forEach(v=>{const j=n.nodeDOM(v.$from.pos),k=IU(j);d.append(k)}),d.style.position="absolute",d.style.top="-10000px",document.body.append(d),t.dataTransfer.clearData(),t.dataTransfer.setDragImage(d,0,0),n.dragging={slice:g,move:!0},u.setSelection(h),n.dispatch(u),document.addEventListener("drop",()=>Nw(d),{once:!0})}var f2=(t,e)=>{const n=t.resolve(e),{depth:o}=n;return o===0?e:n.pos-n.parentOffset-1},m2=(t,e)=>{const n=t.nodeAt(e),o=t.resolve(e);let{depth:s}=o,r=n;for(;s>0;){const a=o.node(s);s-=1,s===0&&(r=a)}return r},rp=(t,e)=>{const n=We.getState(t);return n?Of(e,n.type,n.binding.mapping):null},NU=(t,e)=>{const n=We.getState(t);return n?wl(n.doc,n.type,e,n.binding.mapping)||0:-1},h2=(t,e)=>{let n=e;for(;n?.parentNode&&n.parentNode!==t.dom;)n=n.parentNode;return n},Rw=new we("dragHandle"),Ow=({pluginKey:t=Rw,element:e,editor:n,computePositionConfig:o,getReferencedVirtualElement:s,onNodeChange:r,onElementDragStart:a,onElementDragEnd:i})=>{const l=document.createElement("div");let c=!1,u=null,d=-1,p,m=null,h=null;function g(){e&&(e.style.visibility="hidden",e.style.pointerEvents="none")}function v(){if(e){if(!n.isEditable){g();return}e.style.visibility="",e.style.pointerEvents="auto"}}function j(w){const C=s?.()||{getBoundingClientRect:()=>w.getBoundingClientRect()};B2(C,e,o).then(x=>
295{Object.assign(e.style,{position:x.strategy,left:`${x.x}px`,top:`${x.y}px`})})}function k(w){a?.(w),TU(w,n),setTimeout(()=>{e&&(e.style.pointerEvents="none")},0)}function y(w){i?.(w),g(),e&&(e.style.pointerEvents="auto")}return e.addEventListener("dragstart",k),e.addEventListener("dragend",y),l.appendChild(e),{unbind(){e.removeEventListener("dragstart",k),e.removeEventListener("dragend",y),m&&(cancelAnimationFrame(m),m=null,h=null)},plugin:new xe({key:typeof t=="string"?new we(t):t,state:{init(){return{locked:!1}},apply(w,C,x,_){const F=w.getMeta("lockDragHandle"),D=w.getMeta("hideDragHandle");if(F!==void 0&&(c=F),D)return g(),c=!1,u=null,d=-1,r?.({editor:n,node:null,pos:-1}),C;if(w.docChanged&&d!==-1&&e)if(DU(w)){const M=NU(_,p);M!==d&&(d=M)}else{const M=w.mapping.map(d);M!==d&&(d=M,p=rp(_,d))}return C}},view:w=>{var C;return e.draggable=!0,e.style.pointerEvents="auto",(C=n.view.dom.parentElement)==null||C.appendChild(l),l.style.pointerEvents="none",l.style.position="absolute",l.style.top="0",l.style.left="0",{update(x,_){if(!e)return;if(!n.isEditable){g();return}if(c?e.draggable=!1:e.draggable=!0,w.state.doc.eq(_.doc)||d===-1)return;let F=w.nodeDOM(d);if(F=h2(w,F),F===w.dom||F?.nodeType!==1)return;const D=w.posAtDOM(F,0),M=m2(n.state.doc,D),R=f2(n.state.doc,D);u=M,d=R,p=rp(w.state,d),r?.({editor:n,node:u,pos:d}
295),j(F)},destroy(){m&&(cancelAnimationFrame(m),m=null,h=null),e&&Nw(l)}}},props:{handleDOMEvents:{keydown(w){return!e||c||w.hasFocus()&&(g(),u=null,d=-1,r?.({editor:n,node:null,pos:-1})),!1},mouseleave(w,C){return c||C.target&&!l.contains(C.relatedTarget)&&(g(),u=null,d=-1,r?.({editor:n,node:null,pos:-1})),!1},mousemove(w,C){return!e||c||(h={x:C.clientX,y:C.clientY},m)||(m=requestAnimationFrame(()=>{if(m=null,!h)return;const{x,y:_}=h;h=null;const F=Tw({x,y:_,direction:"right",editor:n});if(!F.resultElement)return;let D=F.resultElement;if(D=h2(w,D),D===w.dom||D?.nodeType!==1)return;const M=w.posAtDOM(D,0),R=m2(n.state.doc,M);if(R!==u){const P=f2(n.state.doc,M);u=R,d=P,p=rp(w.state,d),r?.({editor:n,node:u,pos:d}),j(D),v()}})),!1}}}})}},Bf={placement:"left-start",strategy:"absolute"};me.create({name:"dragHandle",addOptions(){return{render(){const t=document.createElement("div");return t.classList.add("drag-handle"),t},computePositionConfig:{},locked:!1,onNodeChange:()=>null}},addCommands(){return{lockDragHandle:()=>({editor:t})=>(this.options.locked=!0,t.commands.setMeta("lockDragHandle",this.options.locked)),unlockDragHandle:()=>({editor:t})=>(this.options.locked=!1,t.commands.setMeta("lockDragHandle",this.options.locked)),toggleDragHandle:()=>({editor:t})=>(this.options.locked=!this.options.locked,t.commands.setMeta("lockDragHandle",this.options.locked))}},addProseMirrorPlugins(){const t=this.options.render();return[Ow({computePositionConfig:{...Bf,...this.options.computePositionConfig},getReferencedVirtualElement:this.options.getReferencedVirtualElement,element:t,editor:this.editor,onNodeChange:this.options.onNodeChange}).plugin]}});var RU=t=>{const{className:e="drag-handle",children:n,editor:o,pluginKey:s=Rw,onNodeChange:r,onElementDragStart:a,onElementDragEnd:i,computePositionConfig:l=Bf}=t,[c,u]=b.useState(null),d=b.useRef(null);return b.useEffect(()=>{let p=null;return c?o.isDestroyed?()=>{d.current=null}:(d.current||(p=Ow({editor:o,element:c,pluginKey:s,computePositionConfig:{...Bf,...l},onElementDragStart:a,onElementDragEnd:i,onNodeChange:r}),d.current=p.plugin,o.registerPlugin(d.current)),()=>{o.unregisterPlugin(s),d.current=null,p&&(p.unbind(),p=null)}):()=>{d.current=null}},[c,o,r,s,l,a,i]),f.jsx("div",{className:e,style:{visibility:"hidden",position:"absolute"},ref:u,children:n})};const OU=({blockTypes:t,useCardLayout:e=!0})=>{const n=Nc(t),o=()=>f.jsx(as,{children:n.map((s,r)=>BU(s,`${s.type}-${s.level??r}`))});return e?f.jsx(bi,{children:f.jsx(vi,{children:f.jsxs(zs,{children:[f.jsx(Mr,{children:"Turn into"}),o()]})})}):o()};function BU(t,e){switch(t.type){case"paragraph":return f.jsx(it,{asChild:!0,children:f.jsx(Ey,{showTooltip:!1,text:t.label})},e);case"heading":return t.level?f.jsx(it,{asChild:!0,children:f.jsx(Yo,{level:t.level||1,showTooltip:!1,text:t.label})},e):null;case"bulletList":return f.jsx(it,{asChild:!0,children:f.jsx(qn,{type:"bulletList",showTooltip:!1,text:t.label})},e);case"orderedList":return f.jsx(it,{asChild:!0,children:f.jsx(qn,{type:"orderedList",showTooltip:!1,text:t.label})},e);case"taskList":return f.jsx(it,{asChild:!0,children:f.jsx(qn,{type:"taskList",showTooltip:!1,text:t.label})},e);case"blockquote":return f.jsx(it,{asChild:!0,children:f.jsx(uh,{showTooltip:!1,text:t.label})},e);case"codeBlock":return f.jsx(it,{asChild:!0,children:f.jsx(fh,{showTooltip:!1,text:t.label})},e);default:return null}}const LU=b.forwardRef(({editor:t,hideWhenUnavailable:e=!1,blockTypes:n,useCardLayout:o=!0,onOpenChange:s,children:r,...a},i)=>{const{editor:l}=oe(t),{isVisible:c,canToggle:u,isOpen:d,activeBlockType:p,handleOpenChange:m,label:h,Icon:g}=$U({editor:l,hideWhenUnavailable:e,blockTypes:n,onOpenChange:s});return c?f.jsxs(qa,{open:d,onOpenChange:m,children:[f.jsx(Tr,{asChild:!0,children:f.jsx(je,{type:"button","data-style":"ghost",disabled:!u,"data-disabled":!u,role:"button",tabIndex:-1,"aria-label":h,tooltip:"Turn into",...a,ref:i,children:r??f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"tiptap-button-text",children:p?.label||"Text"}),f.jsx(g,{className:"tiptap-button-dropdown-small"})]})})}),f.jsx(Nr,{align:"start",children:f.jsx(OU,{blockTypes:n,useCardLayout:o})})]}):null});LU.displayName="TurnIntoDropdown";const Bw=["paragraph","heading","bulletList","orderedList","taskList","blockquote","codeBlock"],g2=[{type:"paragraph",label:"Text",isActive:t=>t.isActive("paragraph")&&!t.isActive("heading")&&!t.isActive("bulletList")&&!t.isActive("orderedList")&&!t.isActive("taskList")&&!t.isActive("blockquote")&&!t.isActive("codeBlock")},{type:"heading",label:"Heading 1",level:1,isActive:t=>t.isActive("heading",{level:1})},{type:"heading",label:"Heading 2",level:2,isActive:t=>t.isActive("heading",{level:2})}
295,{type:"heading",label:"Heading 3",level:3,isActive:t=>t.isActive("heading",{level:3})},{type:"bulletList",label:"Bulleted list",isActive:t=>t.isActive("bulletList")},{type:"orderedList",label:"Numbered list",isActive:t=>t.isActive("orderedList")},{type:"taskList",label:"To-do list",isActive:t=>t.isActive("taskList")},{type:"blockquote",label:"Blockquote",isActive:t=>t.isActive("blockquote")},{type:"codeBlock",label:"Code block",isActive:t=>t.isActive("codeBlock")}];function Lw(t,e){if(!t||!t.isEditable)return!1;const n=e||Bw,{selection:o}=t.state;if(o instanceof U){const a=o.node.type.name;return n.includes(a)}const{$anchor:s}=o,r=s.parent.type.name;return n.includes(r)}function Nc(t){return t?g2.filter(e=>t.includes(e.type)):g2}function PU(t,e){if(!t)return Nc(e)[0];const n=Nc(e);return n.find(s=>s.isActive(t))||n[0]}function zU(t){const{editor:e,hideWhenUnavailable:n,blockTypes:o}=t;return e?n&&!e.isActive("code")?Lw(e,o):!0:!1}function $U(t){const{editor:e,hideWhenUnavailable:n=!1,blockTypes:o,onOpenChange:s}=t||{},{editor:r}=oe(e),[a,i]=b.useState(!1),[l,c]=b.useState(!0),u=Lw(r,o),d=PU(r,o),p=b.useCallback(m=>{!r||!u||(i(m),s?.(m))},[u,r,s]);return b.useEffect(()=>{if(!r)return;const m=()=>{c(zU({editor:r,hideWhenUnavailable:n,blockTypes:o}))};return m(),r.on("selectionUpdate",m),()=>{r.off("selectionUpdate",m)}},[r,n,o]),{isVisible:l,canToggle:u,isOpen:a,setIsOpen:i,activeBlockType:d,handleOpenChange:p,filteredOptions:Nc(o),label:`Turn into (current: ${d?.label||"Text"})`,Icon:pg}}const HU=t=>{if(!t)return{hasAnyActionGroups:!1,hasColorActions:!1,hasTransformActions:!1,hasResetFormatting:!1,hasImage:!1};const{selection:e}=t.state;let n=e.$anchor.node(1);e instanceof U&&(n=e.node);const o=new Set(t.extensionManager.extensions.map(d=>d.name)),s=o.has("textStyle")&&t.can().setMark("textStyle"),r=o.has("highlight")&&t.can().setMark("highlight"),a=!!(s||r),i=!!(n&&n.type&&n.type.name&&Bw.includes(n.type.name)),l=eu(e)&&n.type.name==="image",c=ky(t.state.tr,["inlineThread"]);return{hasAnyActionGroups:a||i||c,hasColorActions:a,hasTransformActions:i,hasResetFormatting:c,hasImage:l}},Pw=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3Z",fill:"currentColor"}),f.jsx("path",{d:"M9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10Z",fill:"currentColor"}),f.jsx("path",{d:"M7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19Z",fill:"currentColor"}),f.jsx("path",{d:"M15 10C13.8954 10 13 10.8954 13 12C13 13.1046 13.8954 14 15 14C16.1046 14 17 13.1046 17 12C17 10.8954 16.1046 10 15 10Z",fill:"currentColor"}),f.jsx("path",{d:"M13 5C13 3.89543 13.8954 3 15 3C16.1046 3 17 3.89543 17 5C17 6.10457 16.1046 7 15 7C13.8954 7 13 6.10457 13 5Z",fill:"currentColor"}),f.jsx("path",{d:"M15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17Z",fill:"currentColor"})]}));Pw.displayName="GripVerticalIcon";const VU=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.70711 1.29289C5.31658 0.902369 4.68342 0.902369 4.29289 1.29289C3.90237 1.68342 3.90237 2.31658 4.29289 2.70711L7.08575 5.49997L1.69282 10.8929L1.68582 10.9C1.13614 11.4608 0.828247 12.2147 0.828247 13C0.828247 13.7853 1.1361 14.5392 1.68578 15.1L6.89285 20.3071C8.08338 21.4976 9.91654 21.4976 11.1071 20.3071L19.7071 11.7071C20.0976 11.3166 20.0976 10.6834 19.7071 10.2929L11.7071 2.29289C11.3165 1.90237 10.6834 1.90237 10.2929 2.29289L8.49997 4.08576L5.70711 1.29289ZM17.5857 11L16.5857 12H3.41418L8.49998 6.91419L9.29289 7.70711C9.68342 8.09763 10.3166 8.09763 10.7071 7.70711C11.0976 7.31658 11.0976 6.68342 10.7071 6.29289L9.91419 5.49998L11 4.41421L17.5857 11ZM14.5857 14H3.41418L8.30707 18.8929C8.71654 19.3024 9.28338 19.3024 9.69285 18.8929L14.5857 14Z",fill:"currentColor"}),f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.9829 15.8157C20.8942 15.3427 20.4812 15 20 15C19.5188 15 19.1058 15.3427 19.0171 15.8157C18.9233 16.3161 18.6226 16.706 18.1385 17.3337L18.0955 17.3895C17.6418 17.9781 17 18.8237 17 20C17 20.7957 17.3161 21.5587 17.8787 22.1213C18.4413 22.6839 19.2043 23 20 23C20.7957 23 21.5587 22.6839 22.1213 22.1213C22.6839 21.5587 23 20.7957 23 20C23 18.8237 22.3582 17.9781 21.9045 17.3895L21.8615 17.3337C21.3774 16.706 21.0767 16.3161 20.9829 15.8157ZM19 20C19 19.5763 19.2082 19.2219 19.6795 18.6105C19.714 18.5658 19.7503 18.5192 19.7881 18.4709C19.855 18.3851 19.9265 18.2935 20 18.1963C20.0735 18.2935 20.1449 18.385 20.2119 18.4708C20.2496 18.5192 20.286 18.5658 20.3205 18.6105C20.7918 19.2219 21 19.5763 21 20C21 20.2652 20.8946 20.5196 20.7071 20.7071C20.5196 20.8946 20.2652 21 20 21C19.7348 21 19.4804 20.8946 19.2929 20.7071C19.1054 20.5196 19 20.2652 19 20Z",fill:"currentColor"})]}));VU.displayName="MoreVerticalIcon";const zw=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"
295currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",fill:"currentColor"})}));zw.displayName="ChevronRightIcon";const $w=b.memo(({className:t,...e})=>f.jsx("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.70711 5.29289C5.31658 4.90237 4.68342 4.90237 4.29289 5.29289L1.29289 8.29289C0.902369 8.68342 0.902369 9.31658 1.29289 9.70711C1.68342 10.0976 2.31658 10.0976 2.70711 9.70711L4 8.41421V16C4 16.7956 4.31607 17.5587 4.87868 18.1213C5.44129 18.6839 6.20435 19 7 19H13C13.5523 19 14 18.5523 14 18C14 17.4477 13.5523 17 13 17H7C6.73478 17 6.48043 16.8946 6.29289 16.7071C6.10536 16.5196 6 16.2652 6 16V8.41421L7.29289 9.70711C7.68342 10.0976 8.31658 10.0976 8.70711 9.70711C9.09763 9.31658 9.09763 8.68342 8.70711 8.29289L5.70711 5.29289ZM15.2929 14.2929C15.6834 13.9024 16.3166 13.9024 16.7071 14.2929L18 15.5858V8C18 7.73478 17.8946 7.48043 17.7071 7.29289C17.5196 7.10536 17.2652 7 17 7H11C10.4477 7 10 6.55228 10 6C10 5.44772 10.4477 5 11 5H17C17.7957 5 18.5587 5.31607 19.1213 5.87868C19.6839 6.44129 20 7.20435 20 8V15.5858L21.2929 14.2929C21.6834 13.9024 22.3166 13.9024 22.7071 14.2929C23.0976 14.6834 23.0976 15.3166 22.7071 15.7071L19.7071 18.7071C19.3166 19.0976 18.6834 19.0976 18.2929 18.7071L15.2929 15.7071C14.9024 15.3166 14.9024 14.6834 15.2929 14.2929Z",fill:"currentColor"})}));$w.displayName="Repeat2Icon";const UU={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0},qU=()=>{const t=Iy(),e=fl({level:1}),n=fl({level:2}),o=fl({level:3}),s=ml({type:"bulletList"}),r=ml({type:"orderedList"}),a=ml({type:"taskList"}),i=Lj(),l=zj(),c=u=>({icon:u.Icon,label:u.label,onClick:u.handleToggle,disabled:!u.canToggle,isActive:u.isActive});return[c(t),...[e,n,o].map(c),c(s),c(r),c(a),c(i),c(l)]},yr=({icon:t,label:e,onClick:n,disabled:o=!1,isActive:s=!1,shortcutBadge:r})=>f.jsxs(q3,{render:f.jsx(je,{"data-style":"ghost","data-active-state":s?"on":"off"}),onClick:n,disabled:o,children:[f.jsx(t,{className:"tiptap-button-icon"}),f.jsx("span",{className:"tiptap-button-text",children:e}),r]}),WU=({icon:t,label:e,children:n})=>f.jsx(H3,{placement:"right",trigger:f.jsx(q3,{render:f.jsx(sg,{render:f.jsxs(je,{"data-style":"ghost",children:[f.jsx(t,{className:"tiptap-button-icon"}),f.jsx("span",{className:"tiptap-button-text",children:e}),f.jsx(CR,{}),f.jsx(zw,{className:"tiptap-button-icon"})]})})}),children:f.jsx(V3,{portal:!0,children:f.jsx(og,{style:{width:"fit-content"},children:n})})}),KU=()=>{const t=qU();return f.jsx(WU,{icon:$w,label:"Turn Into",children:f.jsxs(Fi,{children:[f.jsx(rg,{children:"Turn into"}),t.map(e=>f.jsx(yr,{...e},e.label))]})})},GU=()=>{const{canReset:t,handleResetFormatting:e,label:n,Icon:o}=wy({hideWhenUnavailable:!0,preserveMarks:["inlineThread"]});return f.jsx(yr,{icon:o,label:n,disabled:!t,onClick:e})},ZU=()=>null,JU=()=>
295{const{handleDuplicate:t,canDuplicate:e,label:n,Icon:o}=ay(),{handleCopyToClipboard:s,canCopyToClipboard:r,label:a,Icon:i}=uy(),{handleCopyAnchorLink:l,canCopyAnchorLink:c,label:u,Icon:d}=by();return f.jsxs(f.Fragment,{children:[f.jsxs(Fi,{children:[f.jsx(yr,{icon:o,label:n,onClick:t,disabled:!e,shortcutBadge:f.jsx(oy,{})}),f.jsx(yr,{icon:i,label:a,onClick:s,disabled:!r,shortcutBadge:f.jsx(iy,{})}),f.jsx(yr,{icon:d,label:u,onClick:l,disabled:!c,shortcutBadge:f.jsx(vy,{})})]}),f.jsx(qr,{orientation:"horizontal"})]})},YU=()=>{const{handleDeleteNode:t,canDeleteNode:e,label:n,Icon:o}=fy();return f.jsx(Fi,{children:f.jsx(yr,{icon:o,label:n,onClick:t,disabled:!e,shortcutBadge:f.jsx(dy,{})})})},XU=({editor:t,withSlashCommandTrigger:e=!0,mobileBreakpoint:n=768,...o})=>{const{editor:s}=oe(t),{isDragging:r}=kk(s),a=zt(n),[i,l]=b.useState(!1),[c,u]=b.useState(null),[d,p]=b.useState(-1),m=b.useCallback(D=>{D.node&&u(D.node),p(D.pos)},[]);b.useEffect(()=>{s&&(s.commands.setLockDragHandle(i),s.commands.setMeta("lockDragHandle",i))},[s,i]);const{hasColorActions:h,hasTransformActions:g,hasResetFormatting:v,hasImage:j}=HU(s),y=hq.highlight,w=g||v||j,C=b.useMemo(()=>({middleware:[Uf(D=>{const{rects:M}=D,R=M.reference.height,P=M.floating.height,E=R/2-P/2;return{mainAxis:16,crossAxis:R>40?0:E}})]}),[]),x=b.useCallback(()=>{s&&s.commands.setMeta("hideDragHandle",!0)},[s]),_=b.useCallback(()=>{s&&s.commands.setIsDragging(!0)},[s]),F=b.useCallback(()=>{s&&s.commands.setIsDragging(!1)},[s]);return s?f.jsx(RU,{editor:s,onNodeChange:m,computePositionConfig:C,onElementDragStart:_,onElementDragEnd:F,...o,children:f.jsxs(as,{orientation:"horizontal",style:{...a||dR(s)?{opacity:0,pointerEvents:"none"}:{},...r?{opacity:0}:{}},children:[e&&f.jsx(_y,{node:c,nodePos:d,"data-weight":"small"}),f.jsx(H3,{open:i,onOpenChange:l,placement:"left",trigger:f.jsx(sg,{render:f.jsx(je,{"data-style":"ghost",tabIndex:-1,tooltip:f.jsxs(f.Fragment,{children:[f.jsx("div",{children:"Click for options"}),f.jsx("div",{children:"Hold for drag"})]}),"data-weight":"small",style:{cursor:"grab",...i?{pointerEvents:"none"}:{}},onMouseDown:()=>xR(s,d),children:f.jsx(Pw,{className:"tiptap-button-icon"})})}),children:f.jsxs(V3,{onClose:x,autoFocusOnHide:!1,preventBodyScroll:!0,portal:!0,children:[f.jsx(P3,{style:UU}),f.jsxs(og,{style:{minWidth:"15rem"},children:[f.jsxs(Fi,{children:[f.jsx(rg,{children:cR(s)}),y,g&&f.jsx(KU,{}),v&&f.jsx(GU,{}),j&&f.jsx(ZU,{})]}),w&&f.jsx(qr,{orientation:"horizontal"}),f.jsx(JU,{}),f.jsx(YU,{})]})]})})]})}):null};var ap,b2;function QU(){if(b2)return ap;b2=1;var t="Expected a function",e=NaN,n="[object Symbol]",o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt,l=typeof Ni=="object"&&Ni&&Ni.Object===Object&&Ni,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,p=d.toString,m=Math.max,h=Math.min,g=function(){return u.Date.now()};function v(x,_,F){var D,M,R,P,E,S,I=0,A=!1,T=!1,O=!0;if(typeof x!="function")throw new TypeError(t);_=C(_)||0,k(F)&&(A=!!F.leading,T="maxWait"in F,R=T?m(C(F.maxWait)||0,_):R,O="trailing"in F?!!F.trailing:O);function N(L){var G=D,te=M;return D=M=void 0,I=L,P=x.apply(te,G),P}function $(L){return I=L,E=setTimeout(Z,_),A?N(L):P}function V(L){var G=L-S,te=L-I,Fe=_-G;return T?h(Fe,R-te):Fe}function K(L){var G=L-S,te=L-I;return S===void 0||G>=_||G<0||T&&te>=R}function Z(){var L=g();if(K(L))return se(L);E=setTimeout(Z,V(L))}function se(L){return E=void 0,O&&D?N(L):(D=M=void 0,P)}function ee(){E!==void 0&&clearTimeout(E),I=0,D=S=M=E=void 0}function be(){return E===void 0?P:se(g())}function Oe(){var L=g(),G=K(L);if(D=arguments,M=this,S=L,G){if(E===void 0)return $(S);if(T)return E=setTimeout(Z,_),N(S)}return E===void 0&&(E=setTimeout(Z,_)),P}return Oe.cancel=ee,Oe.flush=be,Oe}function j(x,_,F){var D=!0,M=!0;if(typeof x!="function")throw new TypeError(t);return k(F)&&(D="leading"in F?!!F.leading:D,M="trailing"in F?!!F.trailing:M),v(x,_,{leading:D,maxWait:_,trailing:M})}function k(x){var _=typeof x;return!!x&&(_=="object"||_=="function")}function y(x){return!!x&&typeof x=="object"}function w(x){return typeof x=="symbol"||y(x)&&p.call(x)==n}
295function C(x){if(typeof x=="number")return x;if(w(x))return e;if(k(x)){var _=typeof x.valueOf=="function"?x.valueOf():x;x=k(_)?_+"":_}if(typeof x!="string")return x===0?x:+x;x=x.replace(o,"");var F=r.test(x);return F||a.test(x)?i(x.slice(2),F?2:8):s.test(x)?e:+x}return ap=j,ap}var eq=QU();const tq=zf(eq),nq=t=>{const e=b.useRef(t);e.current=t,b.useEffect(()=>()=>{e.current()},[])},oq={leading:!1,trailing:!0};function Hw(t,e=250,n=[],o=oq){const s=b.useMemo(()=>tq(t,e,o),n);return nq(()=>{s.cancel()}),s}function Vw(){const[t,e]=b.useState({width:0,height:0,offsetTop:0,offsetLeft:0,scale:0}),n=Hw(()=>{if(typeof window>"u")return;const o=window.visualViewport;if(!o)return;const{width:s=0,height:r=0,offsetTop:a=0,offsetLeft:i=0,scale:l=0}=o;e(c=>s===c.width&&r===c.height&&a===c.offsetTop&&i===c.offsetLeft&&l===c.scale?c:{width:s,height:r,offsetTop:a,offsetLeft:i,scale:l})},200);return b.useEffect(()=>{const o=window.visualViewport;if(o)return o.addEventListener("resize",n),n(),()=>{o.removeEventListener("resize",n)}},[n]),t}const sl={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0},Uw=typeof window>"u",sq=!Uw&&typeof ResizeObserver<"u",_l=()=>!Uw;function rq({element:t,enabled:e=!0,throttleMs:n=100,useResizeObserver:o=!0}={}){const[s,r]=b.useState(sl),a=b.useCallback(()=>!e||!_l()?null:t?typeof t=="string"?document.querySelector(t):"current"in t?t.current:t:document.body,[t,e]),i=Hw(()=>{if(!e||!_l())return;const l=a();if(!l){r(sl);return}const c=l.getBoundingClientRect();r({x:c.x,y:c.y,width:c.width,height:c.height,top:c.top,right:c.right,bottom:c.bottom,left:c.left})},n,[e,a],{leading:!0,trailing:!0});return b.useEffect(()=>{if(!e||!_l()){r(sl);return}const l=a();if(!l)return;i();const c=[];if(o&&sq){const d=new ResizeObserver(()=>{window.requestAnimationFrame(i)});d.observe(l),c.push(()=>d.disconnect())}const u=()=>i();return window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u,{passive:!0}),c.push(()=>{window.removeEventListener("scroll",u),window.removeEventListener("resize",u)}),()=>{c.forEach(d=>d()),r(sl)}},[e,a,i,o]),s}function aq(t={}){return rq({...t,element:_l()?document.body:null})}function iq({editor:t,overlayHeight:e=0}){const{height:n}=Vw(),o=aq({enabled:!0,throttleMs:100,useResizeObserver:!0});return b.useEffect(()=>{(()=>{if(!t)return;const{state:r,view:a}=t;if(!a.hasFocus())return;const{from:i}=r.selection,l=a.coordsAtPos(i);if(n<o.height&&l&&n-l.top<e){const u=Math.max(n/2,e),d=window.scrollY,m=l.top+d-u;window.scrollTo({top:Math.max(0,m),behavior:"smooth"})}})()},[t,e,n,o.height]),o}function lq({shortcutKeys:t}){return f.jsx(ut,{children:ct({shortcutKeys:t})})}const Lf=b.forwardRef(({editor:t,text:e,direction:n,hideWhenUnavailable:o=!1,onMoved:s,showShortcut:r=!1,onClick:a,children:i,...l},c)=>{const{editor:u}=oe(t),{isVisible:d,handleMoveNode:p,canMoveNode:m,label:h,shortcutKeys:g,Icon:v}=fq({editor:u,direction:n,hideWhenUnavailable:o,onMoved:s}),j=b.useCallback(y=>{a?.(y),!y.defaultPrevented&&p()},[p,a]);if(!d)return null;const k=n==="up"?"Move Up":"Move Down";return f.jsx(je,{type:"button","data-style":"ghost",role:"button",tabIndex:-1,"aria-label":h,tooltip:k,disabled:!m,onClick:j,...l,ref:c,children:i??f.jsxs(f.Fragment,{children:[f.jsx(v,{className:"tiptap-button-icon"}),e&&f.jsx("span",{className:"tiptap-button-text",children:e}),r&&f.jsx(lq,{shortcutKeys:g})]})})});Lf.displayName="MoveNodeButton";const qw=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M2 4C2 3.44772 2.44772 3 3 3H21C21.5523 3 22 3.44772 22 4C22 4.55228 21.5523 5 21 5H3C2.44772 5 2 4.55228 2 4Z",fill:"currentColor"}),f.jsx("path",{d:"M13 10.4142L14.2929 11.7071C14.6834 12.0976 15.3166 12.0976 15.7071 11.7071C16.0976 11.3166 16.0976 10.6834 15.7071 10.2929L12.7071 7.29289C12.3166 6.90237 11.6834 6.90237 11.2929 7.29289L8.29289 10.2929C7.90237 10.6834 7.90237 11.3166 8.29289 11.7071C8.68342 12.0976 9.31658 12.0976 9.70711 11.7071L11 10.4142L11 20C11 20.5523 11.4477 21 12 21C12.5
295523 21 13 20.5523 13 20L13 10.4142Z",fill:"currentColor"})]}));qw.displayName="AlignTopIcon";const Ww=b.memo(({className:t,...e})=>f.jsxs("svg",{width:"24",height:"24",className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[f.jsx("path",{d:"M11 11.5858L9.70711 10.2929C9.31658 9.90237 8.68342 9.90237 8.29289 10.2929C7.90237 10.6834 7.90237 11.3166 8.29289 11.7071L11.2929 14.7071C11.6834 15.0976 12.3166 15.0976 12.7071 14.7071L15.7071 11.7071C16.0976 11.3166 16.0976 10.6834 15.7071 10.2929C15.3166 9.90237 14.6834 9.90237 14.2929 10.2929L13 11.5858V4C13 3.44771 12.5523 3 12 3C11.4477 3 11 3.44771 11 4V11.5858Z",fill:"currentColor"}),f.jsx("path",{d:"M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z",fill:"currentColor"})]}));Ww.displayName="AlignBottomIcon";const cq="mod+shift+ArrowUp",uq="mod+shift+ArrowDown";function Kw(t,e){if(!t||!t.isEditable)return!1;const n=Ei(t);if(!n)return!1;try{const{pos:o}=n,s=t.state.doc.resolve(o),r=s.parent,a=s.index();return e==="up"?a>0:a<r.childCount-1}catch{return!1}}function dq(t,e){if(!t||!t.isEditable)return!1;const n=Ei(t);if(!n)return!1;try{const{pos:o,node:s}=n,r=t.state.tr,a=r.doc.resolve(o),i=a.parent,l=a.index();if(l<0||l>=i.childCount)return!1;if(e==="up"&&l>0){const u=i.child(l-1).nodeSize,d=s.type.create(s.attrs,s.content,s.marks);r.deleteRange(o,o+s.nodeSize);const p=o-u;r.insert(p,d),r.setSelection(Y.near(r.doc.resolve(p)))}else if(e==="down"&&l<i.childCount-1){const u=i.child(l+1).nodeSize,d=s.type.create(s.attrs,s.content,s.marks);r.deleteRange(o,o+s.nodeSize);const p=o+u;r.insert(p,d),r.setSelection(Y.near(r.doc.resolve(p)))}else return!1;return t.view.dispatch(r),!0}catch(o){return console.error("Error moving node:",o),!1}}function pq(t){const{editor:e,direction:n,hideWhenUnavailable:o}=t;if(!e||!e.isEditable)return!1;const s=!!Ei(e),r=Kw(e,n);return o?s&&r:s}function fq(t){const{editor:e,hideWhenUnavailable:n=!1,direction:o,onMoved:s}=t,{editor:r}=oe(e),a=zt(),[i,l]=b.useState(!0),[c,u]=b.useState(!1),d=b.useCallback(()=>{if(!c)return!1;const g=dq(r,o);return g&&s?.(o),g},[r,o,s,c]);b.useEffect(()=>{if(!r)return;const g=()=>{l(pq({editor:r,direction:o,hideWhenUnavailable:n})),u(Kw(r,o))};return g(),r.on("selectionUpdate",g),()=>{r.off("selectionUpdate",g)}},[r,o,n]);const p=o==="up"?cq:uq;return Rn(p,g=>{g.preventDefault(),d()},{enabled:i&&c,enableOnContentEditable:!a,enableOnFormTags:!0},[d,i,c,a]),{isVisible:i,handleMoveNode:d,canMoveNode:c,label:o==="up"?"Move Up":"Move Down",shortcutKeys:p,Icon:o==="up"?qw:Ww}}function mq({editor:t}){const{editor:e}=oe(t),n=zt(480),o=b.useRef(null),{height:s}=Vw(),r=iq({editor:e,overlayHeight:o.current?.getBoundingClientRect().height??0}),a=b.useCallback(()=>{if(!e)return;const i=window.prompt("Enter image URL:");i&&e.chain().focus().setImage({src:i}).run()},[e]);return!n||!e||!e.isEditable?null:f.jsxs(wh,{ref:o,className:"simple-mobile-toolbar",style:{bottom:`calc(100% - ${s-r.y}px)`},children:[f.jsxs(yn,{children:[f.jsx(po,{type:"bold",hideWhenUnavailable:!0}),f.jsx(po,{type:"italic",hideWhenUnavailable:!0}),f.jsx(po,{type:"strike",hideWhenUnavailable:!0}),f.jsx(po,{type:"code",hideWhenUnavailable:!0})]}),f.jsx(co,{}),f.jsx(yn,{children:f.jsxs(qa,{children:[f.jsx(Tr,{asChild:!0,children:f.jsx(je,{"data-style":"ghost",tooltip:"Headings",children:f.jsx(mi,{className:"tiptap-button-icon"})})}),f.jsxs(Nr,{children:[f.jsx(it,{asChild:!0,children:f.jsx(Yo,{level:1,text:"Heading 1"})}),f.jsx(it,{asChild:!0,children:f.jsx(Yo,{level:2,text:"Heading 2"})}),f.jsx(it,{asChild:!0,children:f.jsx(Yo,{level:3,text:"Heading 3"})})]})]})}),f.jsx(co,{}),f.jsx(yn,{children:f.jsxs(qa,{children:[f.jsx(Tr,{asChild:!0,children:f.jsx(je,{"data-style":"ghost",tooltip:"Lists",children:f.jsx(hi,{className:"tiptap-button-icon"})})}),f.jsxs(Nr,{children:[f.jsx(it,{asChild:!0,children:f.jsx(qn,{type:"bulletList",text:"Bullet List"})}),f.jsx(it,{asChild:!0,children:f.jsx(qn,{type:"orderedList",text:"Numbered List"})}),f.jsx(it,{asChild:!0,children:f.jsx(qn,{type:"taskList",text:"Task List"})})]})]})}),f.jsx(co,{}),f.jsxs(yn,{children:[f.jsx(jh,{}),f.jsx(je,{"data-style":"ghost",tooltip:"Add Image",onClick:a,children:f.jsx(_h,{className:"tiptap-button-icon"})})]}),f.jsx(co,{}),f.jsxs(yn,{children:[f.jsx(hl,{align:"left",hideWhenUnavailable:!0}),f.jsx(hl,{align:"center",hideWhenUnavailable:!0}),f.jsx(hl,{align:"right",hideWhenUnavailable:!0})]}),f.jsx(co,{}),f.jsxs(yn,{children:[f.jsx(Lf,{direction:"up"}),f.jsx(Lf,{direction:"down"})]})]})}const hq={highlight:!1};function gq(){return f.jsxs(wh,{className:"simple-editor-toolbar",children:[f.jsxs(yn,{children:[f.jsx(po,{type:"bold",hideWhenUnavailable:!0}),f.jsx(po,{type:"italic",hideWhenUnavailable:!0}),f.jsx(po,{type:"strike",hideWhenUnavailable:!0}),f.jsx(po,{type:"code",hideWhenUnavailable:!0})]}),f.jsx(co,{}),f.jsxs(yn,{children:[f.jsxs(qa,{children:[f.jsx(Tr,{asChild:!0,children:f.jsx(je,{"data-style":"ghost",tooltip:"Headings",children:f.jsx(mi,{className:"tiptap-button-icon"})})}),f.jsxs(Nr,{children:[f.jsx(it,{asChild:!0,children:f.jsx(Yo,{level:1,text:"Heading 1"})}),f.jsx(it,{asChild:!0,children:f.jsx(Yo,{level:2,text:"Heading 2"})}),f.jsx(it,{asChild:!0,children:f.jsx(Yo,{level:3,text:"Heading 3"})})]})]}),f.jsxs(qa,{children:[f.jsx(Tr,{asChild:!0,children:f.jsx(je,{"data-style":"ghost",tooltip:"Lists",children:f.jsx(hi,{className:"tiptap-button-icon"})})}),f.jsxs(Nr,{children:[f.jsx(it,{asChild:!0,children:f.jsx(qn,{type:"bulletList",text:"Bullet List"})}),f.jsx(it,{asChild:!0,children:f.jsx(qn,{type:"orderedList",text:"Numbered List"})}),f.jsx(it,{asChild:!0,children:f.jsx(qn,{type:"taskList",text:"Task List"})})]})]})]}),f.jsx(co,{}),f.jsxs(yn,{children:[f.jsx(jh,{}),f.jsx(uh,{hideWhenUnavailable:!0}),f.jsx(fh,{hideWhenUnavailable:!0})]}),f.jsx(co,{}),f.jsxs(yn,{children:[f.jsx(Qp,{action:"undo"}),f.jsx(Qp,{action:"redo"})]})]})}function bq({left:t,right:e}){return f.jsxs("div",{className:"simple-editor-header",children:[f.jsx("div",{className:"simple-editor-header__left",children:t}),f.jsx("div",{className:"simple-editor-header__right",children:e})]})}function vq({text:t="Loading editor..."}){return f.jsx("div",{className:"simple-editor-spinner",children:f.jsxs("div",{className:"simple-editor-spinner__content",children:[f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{cx:"12",cy:"12",r:"10"}),f.jsx("path",{d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),f.jsx("div",{className:"simple-editor-spinner__text",children:t})]})})}function jq({slashMenuConfig:t,enableDragMenu:e}){const{editor:n}=b.useContext(nu),{isDragging:o}=kk(n);return n?f.jsxs(d7,{editor:n,role:"presentation",className:"simple-editor-enhanced__content-area",style:{cursor:o?"grabbing":"auto"},children:[e&&f.jsx(XU,{}),f.jsx(yR,{config:t})]}):null}function kq({placeholder:t="Start writing...",initialContent:e,onUpdate:n,headerLeft:o,headerRight:s,titleElement:r,readOnly:a=!1,className:i="",enableSlashMenu:l=!0,enableDragMenu:c=!0}){const u=zt(),d=b.useMemo(()=>
295{if(!e)return{type:"doc",content:[{type:"paragraph"}]};if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},[e]),p=b.useMemo(()=>[_4.configure({heading:{levels:[1,2,3]},bulletList:{keepMarks:!0,keepAttributes:!1},orderedList:{keepMarks:!0,keepAttributes:!1},horizontalRule:!1,dropcursor:{width:2,color:"#3b82f6"}}),zm.configure({openOnClick:!1,HTMLAttributes:{class:"tiptap-link"}}),PM.configure({HTMLAttributes:{class:"tiptap-image"}}),D4.configure({types:["heading","paragraph"]}),x4,C4.configure({nested:!0}),NM,IE,nE.configure({placeholder:t,emptyNodeClass:l?"is-empty with-slash":"is-empty"}),BE.configure({types:["paragraph","bulletList","orderedList","taskList","heading","blockquote","codeBlock"]}),sj.configure({html:!0,tightLists:!0,bulletListMarker:"-",linkify:!1,transformPastedText:!0,transformCopiedText:!0}),lR],[t,l]),m=b.useMemo(()=>l?["text","heading_1","heading_2","heading_3","bullet_list","ordered_list","task_list","quote","code_block","divider"]:[],[l]),h=b.useMemo(()=>({enabledItems:m,showGroups:!0}),[m]),g=b.useCallback(({editor:k})=>{if(n)try{const w=k.storage.markdown?.getMarkdown?.()??"",C=k.getJSON();n({markdown:w,json:C})}catch(y){console.error("Error getting editor content:",y)}},[n]),v=b7({immediatelyRender:!1,shouldRerenderOnTransaction:!1,editable:!a,editorProps:{attributes:{class:"simple-editor-enhanced"}},content:d,extensions:p,onUpdate:g}),j=b.useRef(!1);return b.useEffect(()=>{!v||j.current||(v.commands.setContent(d,{emitUpdate:!1}),j.current=!0)},[v,d]),b.useEffect(()=>{v&&v.setEditable(!a)},[v,a]),v?f.jsx("div",{className:`simple-editor-enhanced-wrapper ${i}`,children:f.jsxs(nu.Provider,{value:{editor:v},children:[!u&&f.jsx(gq,{}),r&&f.jsx("div",{className:"simple-editor-title-wrapper",children:r}),(o||s)&&f.jsx(bq,{left:o,right:s}),f.jsx("div",{className:"simple-editor-enhanced__content",children:f.jsx(jq,{slashMenuConfig:l?h:void 0,enableDragMenu:c})}),u&&f.jsx(mq,{editor:v})]})}):f.jsx(vq,{})}function yq(t,e){return b.useReducer((n,o)=>e[n][o]??n,t)}var Ag="ScrollArea",[Gw]=E2(Ag),[wq,kn]=Gw(Ag),Zw=b.forwardRef((t,e)=>{const{__scopeScrollArea:n,type:o="hover",dir:s,scrollHideDelay:r=600,...a}=t,[i,l]=b.useState(null),[c,u]=b.useState(null),[d,p]=b.useState(null),[m,h]=b.useState(null),[g,v]=b.useState(null),[j,k]=b.useState(0),[y,w]=b.useState(0),[C,x]=b.useState(!1),[_,F]=b.useState(!1),D=ps(e,R=>l(R)),M=sx(s);return f.jsx(wq,{scope:n,type:o,dir:M,scrollHideDelay:r,scrollArea:i,viewport:c,onViewportChange:u,content:d,onContentChange:p,scrollbarX:m,onScrollbarXChange:h,scrollbarXEnabled:C,onScrollbarXEnabledChange:x,scrollbarY:g,onScrollbarYChange:v,scrollbarYEnabled:_,onScrollbarYEnabledChange:F,onCornerWidthChange:k,onCornerHeightChange:w,children:f.jsx(Ks.div,{dir:M,...a,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":y+"px",...t.style}})})});Zw.displayName=Ag;var Jw="ScrollAreaViewport",Yw=b.forwardRef((t,e)=>{const{__scopeScrollArea:n,children:o,nonce:s,...r}=t,a=kn(Jw,n),i=b.useRef(null),l=ps(e,i,a.onViewportChange);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),f.jsx(Ks.div,{"data-radix-scroll-area-viewport":"",...r,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...t.style},children:f.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});Yw.displayName=Jw;var eo="ScrollAreaScrollbar",Xw=b.forwardRef((t,e)=>{const{forceMount:n,...o}=t,s=kn(eo,t.__scopeScrollArea),{onScrollbarXEnabledChange:r,onScrollbarYEnabledChange:a}=s,i=t.orientation==="horizontal";return b.useEffect(()=>(i?r(!0):a(!0),()=>{i?r(!1):a(!1)}),[i,r,a]),s.type==="hover"?f.jsx(_q,{...o,ref:e,forceMount:n}):s.type==="scroll"?f.jsx(xq,{...o,ref:e,forceMount:n}):s.type==="auto"?f.jsx(Qw,{...o,ref:e,forceMount:n}):s.type==="always"?f.jsx(Mg,{...o,ref:e}):null});Xw.displayName=eo;var _q=b.forwardRef((t,e)=>{const{forceMount:n,...o}=t,s=kn(eo,t.__scopeScrollArea),[r,a]=b.useState(!1);return b.useEffect(()=>{const i=s.scrollArea;let l=0;if(i){const c=()=>{window.clearTimeout(l),a(!0)},u=()=>{l=window.setTimeout(()=>a(!1),s.scrollHideDelay)};return i.addEventListener("pointerenter",c),i.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),i.removeEventListener("pointerenter",c),i.removeEventListener("pointerleave",u)}}},[s.scrollArea,s.scrollHideDelay]),f.jsx($r,{present:n||r,children:f.jsx(Qw,{"data-state":r?"visible":"hidden",...o,ref:e})})}),xq=b.forwardRef((t,e)=>{const{forceMount:n,...o}=t,s=kn(eo,t.__scopeScrollArea),r=t.orientation==="horizontal",a=zu(()=>l("SCROLL_END"),100),[i,l]=yq("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return b.useEffect(()=>{if(i==="idle"){const c=window.setTimeout(()=>l("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(c)}},[i,s.scrollHideDelay,l]),b.useEffect(()=>{const c=s.viewport,u=r?"scrollLeft":"scrollTop";if(c){let d=c[u];const p=()=>{const m=c[u];d!==m&&(l("SCROLL"),a()),d=m};return c.addEventListener("scroll",p),()=>c.removeEventListener("scroll",p)}},[s.viewport,r,l,a]),f.jsx($r,{present:n||i!=="hidden",children:f.jsx(Mg,{"data-state":i==="hidden"?"hidden":"visible",...o,ref:e,onPointerEnter:hn(t.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:hn(t.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),Qw=b.forwardRef((t,e)=>{const n=kn(eo,t.__scopeScrollArea),{forceMount:o,...s}=t,[r,a]=b.useState(!1),i=t.orientation==="horizontal",l=zu(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;a(i?c:u)}},10);return zr(n.viewport,l),zr(n.content,l),f.jsx($r,{present:o||r,children:f.jsx(Mg,{"data-state":r?"visible":"hidden",...s,ref:e})})}),Mg=b.forwardRef((t,e)=>{const{orientation:n="vertical",...o}=t,s=kn(eo,t.__scopeScrollArea),r=b.useRef(null),a=b.useRef(0),[i,l]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=s_(i.viewport,i.content),u={...o,sizes:i,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:p=>r.current=p,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:p=>a.current=p};function d(p,m){return Sq(p,a.current,i,m)}return n==="horizontal"?f.jsx(Cq,{...u,ref:e,onThumbPositionChange:()=>{if(s.viewport&&r.current){const p=s.viewport.scrollLeft,m=v2(p,i,s.dir);r.current.style.transform=`translate3d(${m}px, 0, 0)`}}
vendor: 8,302 bytes, line 295
295,onWheelScroll:p=>{s.viewport&&(s.viewport.scrollLeft=p)},onDragScroll:p=>{s.viewport&&(s.viewport.scrollLeft=d(p,s.dir))}}):n==="vertical"?f.jsx(Dq,{...u,ref:e,onThumbPositionChange:()=>{if(s.viewport&&r.current){const p=s.viewport.scrollTop,m=v2(p,i);r.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:p=>{s.viewport&&(s.viewport.scrollTop=p)},onDragScroll:p=>{s.viewport&&(s.viewport.scrollTop=d(p))}}):null}),Cq=b.forwardRef((t,e)=>{const{sizes:n,onSizesChange:o,...s}=t,r=kn(eo,t.__scopeScrollArea),[a,i]=b.useState(),l=b.useRef(null),c=ps(e,l,r.onScrollbarXChange);return b.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),f.jsx(t_,{"data-orientation":"horizontal",...s,ref:c,sizes:n,style:{bottom:0,left:r.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:r.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Pu(n)+"px",...t.style},onThumbPointerDown:u=>t.onThumbPointerDown(u.x),onDragScroll:u=>t.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(r.viewport){const p=r.viewport.scrollLeft+u.deltaX;t.onWheelScroll(p),a_(p,d)&&u.preventDefault()}},onResize:()=>{l.current&&r.viewport&&a&&o({content:r.viewport.scrollWidth,viewport:r.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Oc(a.paddingLeft),paddingEnd:Oc(a.paddingRight)}})}})}),Dq=b.forwardRef((t,e)=>{const{sizes:n,onSizesChange:o,...s}=t,r=kn(eo,t.__scopeScrollArea),[a,i]=b.useState(),l=b.useRef(null),c=ps(e,l,r.onScrollbarYChange);return b.useEffect(()=>{l.current&&i(getComputedStyle(l.current))},[l]),f.jsx(t_,{"data-orientation":"vertical",...s,ref:c,sizes:n,style:{top:0,right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Pu(n)+"px",...t.style},onThumbPointerDown:u=>t.onThumbPointerDown(u.y),onDragScroll:u=>t.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(r.viewport){const p=r.viewport.scrollTop+u.deltaY;t.onWheelScroll(p),a_(p,d)&&u.preventDefault()}},onResize:()=>{l.current&&r.viewport&&a&&o({content:r.viewport.scrollHeight,viewport:r.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Oc(a.paddingTop),paddingEnd:Oc(a.paddingBottom)}})}})}),[Fq,e_]=Gw(eo),t_=b.forwardRef((t,e)=>{const{__scopeScrollArea:n,sizes:o,hasThumb:s,onThumbChange:r,onThumbPointerUp:a,onThumbPointerDown:i,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...p}=t,m=kn(eo,n),[h,g]=b.useState(null),v=ps(e,D=>g(D)),j=b.useRef(null),k=b.useRef(""),y=m.viewport,w=o.content-o.viewport,C=vs(u),x=vs(l),_=zu(d,10);function F(D){if(j.current){const M=D.clientX-j.current.left,R=D.clientY-j.current.top;c({x:M,y:R})}}return b.useEffect(()=>{const D=M=>{const R=M.target;h?.contains(R)&&C(M,w)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[y,h,w,C]),b.useEffect(x,[o,x]),zr(h,_),zr(m.content,_),f.jsx(Fq,{scope:n,scrollbar:h,hasThumb:s,onThumbChange:vs(r),onThumbPointerUp:vs(a),onThumbPositionChange:x,onThumbPointerDown:vs(i),children:f.jsx(Ks.div,{...p,ref:v,style:{position:"absolute",...p.style},onPointerDown:hn(t.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),j.current=h.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),F(D))}),onPointerMove:hn(t.onPointerMove,F),onPointerUp:hn(t.onPointerUp,D=>{const M=D.target;M.hasPointerCapture(D.pointerId)&&M.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=k.current,m.viewport&&(m.viewport.style.scrollBehavior=""),j.current=null})})})}),Rc="ScrollAreaThumb",n_=b.forwardRef((t,e)=>{const{forceMount:n,...o}=t,s=e_(Rc,t.__scopeScrollArea);return f.jsx($r,{present:n||s.hasThumb,children:f.jsx(Eq,{ref:e,...o})})}),Eq=b.forwardRef((t,e)=>{const{__scopeScrollArea:n,style:o,...s}=t,r=kn(Rc,n),a=e_(Rc,n),{onThumbPositionChange:i}=a,l=ps(e,d=>a.onThumbChange(d)),c=b.useRef(void 0),u=zu(()=>{c.current&&(c.current(),c.current=void 0)},100);return b.useEffect(()=>{const d=r.viewport;if(d){const p=()=>{if(u(),!c.current){const m=Aq(d,i);c.current=m,i()}};return i(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[r.viewport,u,i]),f.jsx(Ks.div,{"data-state":a.hasThumb?"visible":"hidden",...s,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:hn(t.onPointerDownCapture,d=>{const m=d.target.getBoundingClientRect(),h=d.clientX-m.left,g=d.clientY-m.top;a.onThumbPointerDown({x:h,y:g})}),onPointerUp:hn(t.onPointerUp,a.onThumbPointerUp)})});n_.displayName=Rc;var Tg="ScrollAreaCorner",o_=b.forwardRef((t,e)=>{const n=kn(Tg,t.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?f.jsx(Iq,{...t,ref:e}):null});o_.displayName=Tg;var Iq=b.forwardRef((t,e)=>{const{__scopeScrollArea:n,...o}=t,s=kn(Tg,n),[r,a]=b.useState(0),[i,l]=b.useState(0),c=!!(r&&i);return zr(s.scrollbarX,()=>{const u=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(u),l(u)}),zr(s.scrollbarY,()=>{const u=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(u),a(u)}),c?f.jsx(Ks.div,{...o,ref:e,style:{width:r,height:i,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function Oc(t){return t?parseInt(t,10):0}function s_(t,e){const n=t/e;return isNaN(n)?0:n}function Pu(t){const e=s_(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=(t.scrollbar.size-n)*e;return Math.max(o,18)}function Sq(t,e,n,o="ltr"){const s=Pu(n),r=s/2,a=e||r,i=s-a,l=n.scrollbar.paddingStart+a,c=n.scrollbar.size-n.scrollbar.paddingEnd-i,u=n.content-n.viewport,d=o==="ltr"?[0,u]:[u*-1,0];return r_([l,c],d)(t)}function v2(t,e,n="ltr"){const o=Pu(e),s=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=e.scrollbar.size-s,a=e.content-e.viewport,i=r-o,l=n==="ltr"?[0,a]:[a*-1,0],c=rx(t,l);return r_([0,a],[0,i])(c)}function r_(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const o=(e[1]-e[0])/(t[1]-t[0]);return e[0]+o*(n-t[0])}}function a_(t,e){return t>0&&t<e}var Aq=(t,e=()=>{})=>{let n={left:t.scrollLeft,top:t.scrollTop},o=0;return(function s(){const r={left:t.scrollLeft,top:t.scrollTop},a=n.left!==r.left,i=n.top!==r.top;(a||i)&&e(),n=r,o=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(o)};function zu(t,e){const n=vs(t),o=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(o.current),[]),b.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,e)},[n,e])}function zr(t,e){const n=vs(e);x_(()=>{let o=0;if(t){const s=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return s.observe(t),()=>{window.cancelAnimationFrame(o),s.unobserve(t)}}},[t,n])}var Mq=Zw,Tq=Yw,Nq=o_;function $u({className:t,children:e,...n}){return f.jsxs(Mq,{"data-slot":"scroll-area",className:es("relative",t),...n,children:[f.jsx(Tq,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:e}),f.jsx(i_,{}),f.jsx(Nq,{})]})}function i_({className:t,orientation:e="vertical",...n}){return f.jsx(Xw,{"data-slot":"scroll-area-scrollbar",orientation:e,className:es("flex touch-none p-px transition-colors select-none",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",t),...n,children:f.jsx(n_,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function Rq({className:t,children:e,...n}){return f.jsxs($u,{className:es("w-full whitespace-nowrap",t),...n,children:[f.jsx("div",{className:"flex w-max space-x-2 p-1",children:e}),f.jsx(i_,{orientation:"horizontal",className:"invisible"})]})}function ra({suggestion:t,onClick:e,variant:n="outline",size:o="sm",className:s,children:r,...a}){return f.jsx(Le,{variant:n,size:o,className:es("rounded-full whitespace-nowrap",s),onClick:()=>e?.(t),...a,children:r||t})}function Oq({className:t,children:e,...n}){return f.jsx("div",{className:es("flex items-center gap-1",t),...n,children:f.jsx(ix,{delayDuration:0,
295children:e})})}function Bq({label:t,tooltip:e,variant:n="ghost",size:o="sm",className:s,children:r,...a}){const i=f.jsx(Le,{variant:n,size:o,className:es("h-8 w-8 p-0",s),"aria-label":t,...a,children:r});return e?f.jsxs(lx,{children:[f.jsx(cx,{asChild:!0,children:i}),f.jsx(ux,{side:"bottom",children:f.jsx("p",{children:e})})]}):i}const l_=(t,e)=>e?`tyquill_chat_${t}_${e}`:`tyquill_chat_${t}`,Lq=(t,e)=>{try{const n=localStorage.getItem(l_(t,e));if(n)return JSON.parse(n).map(s=>({...s,timestamp:new Date(s.timestamp)}))}catch(n){console.error("Failed to load chat history:",n)}return[]},rl=(t,e,n)=>{try{localStorage.setItem(l_(t,n),JSON.stringify(e))}catch(o){console.error("Failed to save chat history:",o)}},j2=t=>{if(t.title)return t.title;if(t.summary)return t.summary;const e=new Date(t.createdAt),o=Math.floor((new Date().getTime()-e.getTime())/(1e3*60*60*24));return o===0?`오늘 ${e.toLocaleTimeString("ko-KR",{hour:"2-digit",minute:"2-digit"})}`:o===1?"어제":o<7?`${o}일 전`:e.toLocaleDateString("ko-KR",{month:"short",day:"numeric"})};function k2({article:t,onClose:e,onMinimize:n,onMaximize:o,isFloating:s=!1,onRegenerationComplete:r}){const{t:a}=oi(),[i,l]=b.useState([]),[c,u]=b.useState(null),[d,p]=b.useState(!1),[m,h]=b.useState(!1),[g,v]=b.useState(()=>{const L=Lq(t.articleId,c||void 0);return L.length>0?L:[{id:"welcome",role:"assistant",content:a("chat.welcome"),timestamp:new Date}]}),[j,k]=b.useState(""),[y,w]=b.useState(!1),[C,x]=b.useState(""),[_,F]=b.useState(0),[D,M]=b.useState(""),[R,P]=b.useState(null),E=b.useRef(null),S=b.useRef(null),I=b.useRef(null),A=b.useRef(null),T=b.useRef(""),O=async()=>{p(!0);try{const L=await Ro.getArticleChatSessions(t.articleId);l(L);const G=L.find(te=>te.isActive);G?u(G.sessionId):L.length>0&&u(L[0].sessionId)}catch(L){console.error("Failed to load sessions:",L)}finally{p(!1)}},N=async L=>{if(L!==c)try{const te=(await Ro.getSessionMessages(L)).messages.map(Fe=>({id:Fe.messageId,role:Fe.role,content:Fe.content,timestamp:new Date(Fe.timestamp)}));te.length===0&&te.push({id:"welcome",role:"assistant",content:a("chat.welcome"),timestamp:new Date}),v(te),u(L),rl(t.articleId,te,L)}catch(G){console.error("Failed to switch session:",G)}},$=async()=>{try{const L={id:"welcome",role:"assistant",content:a("chat.welcome"),timestamp:new Date};v([L]),u(null);const G=await Ro.createNewChatSession(t.articleId);h(!0),u(G.sessionId),await O(),rl(t.articleId,[L],G.sessionId)}catch(L){console.error("Failed to create new session:",L)}};b.useEffect(()=>{O()},[t.articleId]),b.useEffect(()=>{(async()=>{if(c){if(m){h(!1);return}try{const te=(await Ro.getSessionMessages(c)).messages.map(Fe=>({id:Fe.messageId,role:Fe.role,content:Fe.content,timestamp:new Date(Fe.timestamp)}));te.length>0?v(te):v([{id:"welcome",role:"assistant",content:a("chat.welcome"),timestamp:new Date}]),rl(t.articleId,te.length>0?te:g,c)}catch(G){console.error("Failed to load current session messages:",G)}}})()},[c]),b.useEffect(()=>{c&&rl(t.articleId,g,c)},[g,t.articleId,c]),b.useEffect(()=>()=>{A.current&&A.current.abort()},[]),b.useEffect(()=>{I.current&&I.current.scrollIntoView({behavior:"smooth",block:"end"})},[g,C]);const V=async L=>{const G=L||j.trim();if(!G)return;const te=Date.now();if(ws("Article Regeneration Started",{article_id:t.articleId,user_request:G,original_title:t.title,original_content_length:t.content?.length||0,is_retry:!!L}),A.current=new AbortController,!L){const Me={id:crypto.randomUUID(),role:"user",content:G,timestamp:new Date};v(Te=>[...Te,Me]),k("")}w(!0),x(""),F(0),T.current="";const Fe={id:crypto.randomUUID(),role:"assistant",content:"",timestamp:new Date,isStreaming:!0};v(Me=>[...Me,Fe]);try{let Me="",Te="";const Ct=g.filter(ve=>(ve.role==="user"||ve.role==="assistant")&&!ve.isStreaming).slice(-5).map(ve=>({role:ve.role,content:ve.content}));await Ro.regenerateArticleV3Stream(t.articleId,{generationParams:JSON.stringify({userRequest:G,conversationHistory:Ct})},ve=>{switch(ve.type){case"progress":F(ve.progress||0),M(ve.message_ko||ve.message||"");break;case"token":ve.content&&(T.current+=ve.content,x(T.current));break;case"node_start":M(ve.message_ko||ve.message||"");break;case"complete":Me=ve.title||t.title,Te=ve.content||T.current;const on=Date.now()-te;ws("Article Regeneration Completed",{article_id:t.articleId,regeneration_duration_ms:on,regeneration_duration_sec:Math.floor(on/1e3),user_request:G,has_changes_summary:!!ve.changesSummary,new_content_length:Te.length,content_length_change:Te.length-(t.content?.length||0),is_retry:!!L});const Bn=ve.changesSummary?`${a("chat.regenerationComplete")}
296
297${ve.changesSummary}`:a("chat.regenerationComplete");
297v(X=>X.map(re=>re.id===Fe.id?{...re,content:Bn,isStreaming:!1}:re));break;case"error":v(X=>X.map(re=>re.id===Fe.id?{...re,role:"error",content:`${a("chat.error")}: ${ve.message||a("chat.unknownError")}`,isStreaming:!1,canRetry:!0,retryPayload:G}:re));break}},A.current.signal),Me&&Te&&r(Me,Te)}catch(Me){console.error("Regeneration error:",Me);const Te=Me instanceof Error&&Me.name==="AbortError";Te||ws("Article Regeneration Failed",{article_id:t.articleId,error_message:Me instanceof Error?Me.message:"Unknown error",regeneration_duration_ms:Date.now()-te,user_request:G,is_retry:!!L}),v(Ct=>Ct.map(ve=>ve.id===Fe.id?{...ve,role:Te?"system":"error",content:Te?a("chat.cancelled")||"요청이 취소되었습니다.":`${a("chat.regenerationError")}: ${Me instanceof Error?Me.message:a("chat.unknownError")}`,isStreaming:!1,canRetry:!Te,retryPayload:G}:ve))}finally{w(!1),x(""),F(0),M("")}},K=L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),V())},Z=()=>{A.current&&(A.current.abort(),v(L=>L.map(G=>G.isStreaming?{...G,role:"system",content:a("chat.cancelled")||"요청이 취소되었습니다.",isStreaming:!1,canRetry:!1}:G)),w(!1),x(""),F(0),M(""))},se=L=>{V(L)},ee=async(L,G)=>{try{await navigator.clipboard.writeText(G),P(L),setTimeout(()=>P(null),2e3)}catch(te){console.error("Failed to copy:",te)}},be=()=>{S.current&&(S.current.style.height="auto",S.current.style.height=`${Math.min(S.current.scrollHeight,120)}px`)};b.useEffect(()=>{be()},[j]);const Oe=i.find(L=>L.sessionId===c);return f.jsxs("div",{className:"flex flex-col h-full bg-background rounded-2xl shadow-sm border border-border/50 overflow-hidden",children:[f.jsxs("div",{className:"flex items-center justify-between p-4 border-b shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("h3",{className:"font-semibold text-lg",children:a("chat.title")}),!d&&f.jsxs($2,{children:[f.jsx(H2,{asChild:!0,children:f.jsxs(Le,{variant:"ghost",size:"sm",className:"h-8 gap-1 text-muted-foreground hover:text-foreground",children:[f.jsx(Lx,{className:"size-3.5"}),f.jsx("span",{className:"text-xs max-w-[120px] truncate",children:Oe?j2(Oe):"세션 선택"}),f.jsx(U2,{className:"size-3.5"})]})}),f.jsxs(V2,{align:"start",className:"w-[280px]",children:[i.length===0?f.jsx("div",{className:"px-3 py-4 text-center text-sm text-muted-foreground",children:"대화 세션이 없습니다"}):i.map(L=>f.jsx(pa,{onClick:()=>N(L.sessionId),className:"flex items-center justify-between gap-2 py-2.5 cursor-pointer",children:f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-medium text-sm truncate",children:j2(L)}),L.isActive&&f.jsx(b_,{className:"size-3.5 text-primary shrink-0"})]}),f.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-muted-foreground",children:[f.jsxs("span",{children:[L.messageCount,"개 메시지"]}),L.lastMessageAt&&f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"•"}),f.jsx("span",{children:new Date(L.lastMessageAt).toLocaleDateString("ko-KR",{month:"short",day:"numeric"})})]})]})]})},L.sessionId)),f.jsx(up,{}),f.jsxs(pa,{onClick:$,className:"flex items-center gap-2 py-2.5 text-primary cursor-pointer",children:[f.jsx(Rx,{className:"size-4"}),f.jsx("span",{className:"font-medium",children:"새 대화"})]})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[s&&o&&f.jsx(Le,{variant:"ghost",size:"icon",onClick:o,children:f.jsx(Tx,{className:"size-4"})}),!s&&n&&f.jsx(Le,{variant:"ghost",size:"icon",onClick:n,children:f.jsx(Hx,{className:"size-4"})}),e&&f.jsx(Le,{variant:"ghost",size:"icon",onClick:e,children:f.jsx(Gf,{className:"size-4"})})]})]}),f.jsx($u,{className:"flex-1 min-h-0 overflow-hidden p-4",ref:E,children:f.jsxs("div",{className:"space-y-4",children:[g.map(L=>f.jsx("div",{className:es("flex gap-2",L.role==="user"?"justify-end":L.role==="system"?"justify-center":"justify-start"),children:f.jsx("div",{className:es("rounded-2xl px-4 py-2.5 animate-in fade-in-0 slide-in-from-bottom-2 duration-300",L.role==="system"?"bg-muted/30 text-muted-foreground text-xs max-w-[60%] text-center":"max-w-[80%]",L.role==="user"?"bg-primary text-primary-foreground":L.role==="error"?"bg-destructive/10 border border-destructive/20":L.role==="assistant"?"bg-muted/50":""),children:L.isStreaming?f.jsxs("div",{className:"space-y-2",children:[f.jsx("div",{className:"text-sm whitespace-pre-wrap leading-relaxed",children:C||f.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[f.jsx("span",{className:"animate-pulse",children:a("chat.generating")}),f.jsxs("span",{className:"flex gap-0.5",children:[f.jsx("span",{className:"size-1 rounded-full bg-current animate-bounce [animation-delay:-0.3s]"}),f.jsx("span",{className:"size-1 rounded-full bg-current animate-bounce [animation-delay:-0.15s]"}),f.jsx("span",{className:"size-1 rounded-full bg-current animate-bounce"})]})]})}),D&&f.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground
297/80 animate-in fade-in-0 duration-200",children:[f.jsx(Hf,{className:"size-3 animate-spin"}),f.jsx("span",{children:D})]}),_>0&&f.jsx("div",{className:"w-full bg-background/20 rounded-full h-1.5 overflow-hidden",children:f.jsx("div",{className:"bg-gradient-to-r from-primary via-primary/80 to-primary h-full rounded-full transition-all duration-500 ease-out",style:{width:`${_}%`}})})]}):f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"text-sm whitespace-pre-wrap leading-relaxed",children:[L.role==="error"&&f.jsx("span",{className:"inline-flex items-center gap-1 text-destructive font-medium mb-1",children:f.jsx(pp,{className:"size-3.5"})}),L.content]}),f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-[10px] text-muted-foreground/60",children:new Date(L.timestamp).toLocaleTimeString("ko-KR",{hour:"2-digit",minute:"2-digit"})}),L.role==="assistant"&&L.content&&f.jsx(Oq,{children:f.jsx(Bq,{label:R===L.id?"복사됨":"복사",tooltip:R===L.id?"복사됨":"복사",onClick:()=>ee(L.id,L.content),children:R===L.id?f.jsx(dp,{className:"size-3.5"}):f.jsx(Js,{className:"size-3.5"})})})]}),L.canRetry&&L.retryPayload&&f.jsxs(Le,{variant:"outline",size:"sm",onClick:()=>se(L.retryPayload),className:"h-7 text-xs",children:[f.jsx(Yx,{className:"mr-1.5 size-3"}),a("chat.retry")||"재시도"]})]})]})})},L.id)),f.jsx("div",{ref:I})]})}),f.jsxs("div",{className:"p-4 border-t shrink-0 bg-background space-y-3",children:[!y&&f.jsxs(Rq,{children:[f.jsx(ra,{suggestion:"더 짧게 만들어줘",onClick:L=>k(L)}),f.jsx(ra,{suggestion:"더 길게 만들어줘",onClick:L=>k(L)}),f.jsx(ra,{suggestion:"더 캐주얼하게 만들어줘",onClick:L=>k(L)}),f.jsx(ra,{suggestion:"더 전문적으로 만들어줘",onClick:L=>k(L)}),f.jsx(ra,{suggestion:"요약해줘",onClick:L=>k(L)})]}),f.jsxs("div",{className:"flex items-end gap-2",children:[f.jsx(ax,{ref:S,value:j,onChange:L=>k(L.target.value),onKeyDown:K,placeholder:a("chat.inputPlaceholder")||"메시지를 입력하세요... (Enter: 전송, Shift+Enter: 줄바꿈)",disabled:y,rows:1,className:"flex-1 rounded-xl border-muted-foreground/20 bg-muted/30 focus-visible:ring-1 min-h-[40px] max-h-[120px] resize-none"}),y?f.jsx(Le,{onClick:Z,variant:"destructive",size:"icon",className:"rounded-xl shrink-0",children:f.jsx(pp,{className:"size-4"})}):f.jsx(Le,{onClick:()=>V(),disabled:!j.trim(),size:"icon",className:"rounded-xl shrink-0",children:f.jsx(Qx,{className:"size-4"})})]})]})]})}class y2 extends mn.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,n){console.error("Chat panel error:",e,n)}handleReset=()=>{this.setState({hasError:!1,error:null}),window.location.reload()};render(){return this.state.hasError?f.jsx("div",{className:"flex flex-col h-full bg-background rounded-2xl shadow-sm border border-border/50 overflow-hidden",children:f.jsx("div",{className:"flex items-center justify-center flex-1 p-6",children:f.jsxs(qf,{variant:"destructive",className:"max-w-md",children:[f.jsx(D2,{className:"size-4"}),f.jsx(Wf,{children:"채팅 패널 오류"}),f.jsxs(Kf,{className:"mt-2 space-y-4",children:[f.jsx("p",{children:"채팅 패널에 오류가 발생했습니다."}),this.state.error&&f.jsx("p",{className:"text-xs opacity-70 font-mono",children:this.state.error.message}),f.jsx(Le,{onClick:this.handleReset,variant:"outline",size:"sm",className:"w-full",children:"페이지 새로고침"})]})]})})}):this.props.children}}const w2=t=>{let e;const n=new Set,o=(c,u)=>{const d=typeof c=="function"?c(e):c;if(!Object.is(d,e)){const p=e;e=u??(typeof d!="object"||d===null)?d:Object.assign({}
297,e,d),n.forEach(m=>m(e,p))}},s=()=>e,i={setState:o,getState:s,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=e=t(o,s,i);return i},Pq=(t=>t?w2(t):w2),zq=t=>t;function $q(t,e=zq){const n=mn.useSyncExternalStore(t.subscribe,mn.useCallback(()=>e(t.getState()),[t,e]),mn.useCallback(()=>e(t.getInitialState()),[t,e]));return mn.useDebugValue(n),n}const _2=t=>{const e=Pq(t),n=o=>$q(e,o);return Object.assign(n,e),n},Hq=(t=>t?_2(t):_2);function Vq(t,e){let n;try{n=t()}catch{return}return{getItem:s=>{var r;const a=l=>l===null?null:JSON.parse(l,void 0),i=(r=n.getItem(s))!=null?r:null;return i instanceof Promise?i.then(a):a(i)},setItem:(s,r)=>n.setItem(s,JSON.stringify(r,void 0)),removeItem:s=>n.removeItem(s)}}const Pf=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(o){return Pf(o)(n)},catch(o){return this}}}catch(n){return{then(o){return this},catch(o){return Pf(o)(n)}}}},Uq=(t,e)=>(n,o,s)=>{let r={storage:Vq(()=>localStorage),partialize:g=>g,version:0,merge:(g,v)=>({...v,...g}),...e},a=!1;const i=new Set,l=new Set;let c=r.storage;if(!c)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},o,s);const u=()=>{const g=r.partialize({...o()});return c.setItem(r.name,{state:g,version:r.version})},d=s.setState;s.setState=(g,v)=>(d(g,v),u());const p=t((...g)=>(n(...g),u()),o,s);s.getInitialState=()=>p;let m;const h=()=>{var g,v;if(!c)return;a=!1,i.forEach(k=>{var y;return k((y=o())!=null?y:p)});const j=((v=r.onRehydrateStorage)==null?void 0:v.call(r,(g=o())!=null?g:p))||void 0;return Pf(c.getItem.bind(c))(r.name).then(k=>{if(k)if(typeof k.version=="number"&&k.version!==r.version){if(r.migrate){const y=r.migrate(k.state,k.version);return y instanceof Promise?y.then(w=>[!0,w]):[!0,y]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,k.state];return[!1,void 0]}).then(k=>{var y;const[w,C]=k;if(m=r.merge(C,(y=o())!=null?y:p),n(m,!0),w)return u()}).then(()=>{j?.(m,void 0),m=o(),a=!0,l.forEach(k=>k(m))}).catch(k=>{j?.(void 0,k)})};return s.persist={setOptions:g=>{r={...r,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:g=>(i.add(g),()=>{i.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},r.skipHydration||h(),m||p},qq=Uq,Wq=Hq()(qq(t=>({showRepurposePanel:!0,selectedRepurposeId:null,viewMode:"edit",panelSizes:{repurpose:20,editor:50,chat:30},toggleRepurposePanel:()=>t(e=>{const n=!e.showRepurposePanel;return{showRepurposePanel:n,panelSizes:{...e.panelSizes,editor:n?50:70}}}),selectRepurposedContent:e=>t({selectedRepurposeId:e,viewMode:"repurpose-view"}),clearSelection:()=>t({selectedRepurposeId:null,viewMode:"edit"}),setViewMode:e=>t({viewMode:e}),savePanelSizes:e=>t({panelSizes:e})}),{name:"article-editor-layout",partialize:t=>({showRepurposePanel:t.showRepurposePanel,panelSizes:t.panelSizes})})),Kq={blog:{format:"blog",name:"Blog Post",description:"Long-form article optimized for SEO",icon:"FileText",color:"#6366f1",defaultOptions:{characterLimit:2e3,tone:"professional"}},twitter:{format:"twitter",name:"Twitter Thread",description:"Engaging tweet thread with hooks",icon:"Twitter",color:"#1DA1F2",defaultOptions:{characterLimit:280,tone:"casual"}},linkedin:{format:"linkedin",name:"LinkedIn Post",description:"Professional content for networking",icon:"Linkedin",color:"#0A66C2",defaultOptions:{characterLimit:1300,tone:"professional",professionalContext:"B2B, thought leadership"}},instagram:{format:"instagram",name:"Instagram Caption",description:"Visual-first caption with hashtags",icon:"Instagram",color:"#E4405F",defaultOptions:{characterLimit:2200,tone:"casual",visualContext:"inspiring, aesthetic"}},youtube:{format:"youtube",name:"YouTube Script",description:"Video script with timestamps",icon:"Youtube",color:"#FF0000",defaultOptions:{channelStyle:"educational",tone:"engaging"}},tiktok:{format:"tiktok",name:"TikTok Script",description:"Short-form vertical video script",icon:"Music",color:"#00F2EA",defaultOptions:{characterLimit:500,tone:"energetic"}},email:{format:"email",name:"Email Newsletter",description:"Formatted email with CTA",icon:"Mail",color:"#EA4335",defaultOptions:{characterLimit:1500,tone:"friendly",audienceSegment:"subscribers"}},podcast:{format:"podcast",name:"Podcast Script",description:"Audio script with conversation flow",icon:"Mic",color:"#8B5CF6",defaultOptions:{podcastStyle:"conversational",hostPersonality:"friendly",tone:"engaging"}}
297,custom:{format:"custom",name:"Custom Format",description:"User-defined custom format",icon:"Settings",color:"#6B7280",defaultOptions:{}}};function Gq(t){return Kq[t]}class Zq{async repurposeContent(e){const{data:n}=await ea.post("/api/v3/content/repurpose",e);return n}async repurposeContentAsync(e){const{data:n}=await ea.post("/api/v3/content/repurpose",{...e,async:!0});return n}async getJobStatus(e){const{data:n}=await ea.get(`/api/v3/content/repurpose/jobs/${e}`);return n}async waitForJobCompletion(e,n=60,o=2e3){for(let s=1;s<=n;s++)try{const r=await this.getJobStatus(e);if(r.status==="completed"||r.status==="failed")return r;s<n&&await new Promise(a=>setTimeout(a,o))}catch(r){if(console.error(`Job status check attempt ${s} failed:`,r),s<n){await new Promise(a=>setTimeout(a,o));continue}throw r}throw new Error(`Job completion timeout after ${n} attempts`)}async getArticleRepurposedContent(e){const{data:n}=await ea.get(`/api/v3/content/repurpose/articles/${e}`);return n}async deleteRepurposedContent(e){await ea.delete(`/api/v3/content/repurpose/${e}`)}}const Jq=new Zq,Yq={FileText:Zf,Twitter:sC,Linkedin:Ix,Instagram:Fx,Youtube:lC,Music:px,Mail:Ax,Mic:zx};function Xq({content:t,onClose:e,onRegenerate:n}){const o=Gq(t.format),s=Yq[o.icon]||Zf,r=()=>{navigator.clipboard.writeText(t.content).then(()=>{da.success("Copied to clipboard")})},a=()=>{n?n():da.info("Regenerate functionality coming soon")};return f.jsx(qf,{className:"shrink-0 mx-4 mt-4 rounded-xl border-l-4",style:{borderLeftColor:o.color},children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 rounded-lg",style:{backgroundColor:`${o.color}15`},children:f.jsx("div",{style:{color:o.color},children:f.jsx(s,{className:"w-4 h-4"})})}),f.jsxs("div",{children:[f.jsxs(Wf,{className:"mb-0 flex items-center gap-2",children:["Viewing ",o.name,f.jsx(Da,{variant:"secondary",className:"h-5 text-[10px]",children:"Read-only"})]}),f.jsxs(Kf,{className:"text-xs mt-0.5",children:[t.wordCount," words • Quality: ",t.qualityScore,"%"]})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Le,{size:"sm",variant:"outline",className:"h-7 text-xs",onClick:r,children:[f.jsx(Js,{className:"mr-1.5 w-3 h-3"}),"Copy"]}),f.jsxs(Le,{size:"sm",variant:"outline",className:"h-7 text-xs",onClick:a,children:[f.jsx(Wx,{className:"mr-1.5 w-3 h-3"}),"Regenerate"]}),f.jsx(Le,{size:"icon",variant:"ghost",className:"h-7 w-7",onClick:e,children:f.jsx(Gf,{className:"w-3.5 h-3.5"})})]})]})})}const Qq=(t,e)=>{const n=t.content.split(/\n\n+/).map(o=>o.trim()).filter(o=>o.length>0);return f.jsx("div",{className:"space-y-4",children:n.map((o,s)=>{const r=o.length,a=r>280;return f.jsx(Gs,{className:"border-l-4",style:{borderLeftColor:"#1DA1F2"},children:f.jsxs(Zs,{className:"p-4",children:[f.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[f.jsx("div",{className:"w-12 h-12 rounded-full bg-gray-200 flex items-center justify-center shrink-0",children:f.jsx(Bc,{className:"w-6 h-6 text-gray-500"})}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[f.jsx("span",{className:"font-bold text-sm",children:"Your Brand"}),f.jsxs(Da,{variant:"outline",className:"text-xs",children:["Tweet ",s+1,"/",n.length]})]}),f.jsx("span",{className:"text-xs text-muted-foreground",children:"@yourbrand"})]}),f.jsx(Le,{size:"sm",variant:"ghost",className:"h-7 px-2",onClick:()=>e(o,`Tweet ${s+1}`),children:f.jsx(Js,{className:"h-3 w-3"})})]}),f.jsx("div",{className:"prose prose-sm max-w-none whitespace-pre-wrap mb-3 pl-15",children:o}),f.jsxs("div",{className:"flex items-center gap-6 text-muted-foreground pl-15 pt-2 border-t",children:[f.jsxs("button",{className:"flex items-center gap-2 hover:text-blue-500 transition-colors",children:[f.jsx(Lc,{className:"w-4 h-4"}),f.jsx("span",{className:"text-xs",children:"Reply"})]}),f.jsxs("button",{className:"flex items-center gap-2 hover:text-green-500 transition-colors",children:[f.jsx(q2,{className:"w-4 h-4"}),f.jsx("span",{className:"text-xs",children:"Retweet"})]}),f.jsxs("button",{className:"flex items-center gap-2 hover:text-red-500 transition-colors",children:[f.jsx(Jf,{className:"w-4 h-4"}),f.jsx("span",{className:"text-xs",children:"Like"})]}),f.jsxs("button",{className:"flex items-center gap-2 hover:text-blue-500 transition-colors",children:[f.jsx(si,{className:"w-4 h-4"}),f.jsx("span",{className:"text-xs",children:"Share"})]})]}),f.jsxs("div",{className:`mt-3 text-xs ${a?"text-red-500 font-medium":"text-muted-foreground"}`,children:[r," / 280 characters",a&&f.jsxs("span",{className:"ml-2",children:["⚠️ Over limit by ",r-280]})]})]})},s)})})},eW=({content:t,copyToClipboard:e})=>{const[n,o]=b.useState(!1),s=t.content.length>500,r=s&&!n?t.content.slice(0,500)+"...":t.content,a=t.content.match(/#\w+/g)||[];return f.jsx(Gs,{className:"border-l-4",style:{borderLeftColor:"#0A66C2"},children:f.jsxs(Zs,{className:"p-6",children:[f.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[f.jsx("div",{className:"w-14 h-14 roun
297ded-full bg-blue-100 flex items-center justify-center shrink-0",children:f.jsx(Bc,{className:"w-7 h-7 text-blue-600"})}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("div",{className:"font-semibold",children:"Your Professional Name"}),f.jsx("div",{className:"text-sm text-muted-foreground",children:"Your Title | Company"}),f.jsx("div",{className:"text-xs text-muted-foreground",children:"Just now • 🌐"})]}),f.jsx(Le,{size:"sm",variant:"ghost",className:"h-8 px-2",onClick:()=>e(t.content,"LinkedIn Post"),children:f.jsx(Js,{className:"h-4 w-4"})})]}),f.jsx("div",{className:"prose prose-sm max-w-none whitespace-pre-wrap mb-3",children:r}),s&&f.jsxs("button",{onClick:()=>o(!n),className:"text-sm font-medium text-blue-600 hover:underline flex items-center gap-1 mb-3",children:[n?"See less":"See more",f.jsx(U2,{className:`w-4 h-4 transition-transform ${n?"rotate-180":""}`})]}),a.length>0&&f.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:a.map((i,l)=>f.jsx("span",{className:"text-sm text-blue-600 hover:underline cursor-pointer",children:i},l))}),f.jsxs("div",{className:"flex items-center gap-6 text-muted-foreground pt-3 border-t",children:[f.jsxs("button",{className:"flex items-center gap-2 hover:text-blue-600 transition-colors",children:[f.jsx(nC,{className:"w-5 h-5"}),f.jsx("span",{className:"text-sm",children:"Like"})]}),f.jsxs("button",{className:"flex items-center gap-2 hover:text-blue-600 transition-colors",children:[f.jsx(Lc,{className:"w-5 h-5"}),f.jsx("span",{className:"text-sm",children:"Comment"})]}),f.jsxs("button",{className:"flex items-center gap-2 hover:text-blue-600 transition-colors",children:[f.jsx(q2,{className:"w-5 h-5"}),f.jsx("span",{className:"text-sm",children:"Repost"})]}),f.jsxs("button",{className:"flex items-center gap-2 hover:text-blue-600 transition-colors",children:[f.jsx(si,{className:"w-5 h-5"}),f.jsx("span",{className:"text-sm",children:"Send"})]})]}),f.jsxs("div",{className:"mt-3 text-xs text-muted-foreground",children:[t.characterCount," / 3,000 characters"]})]})})},tW=(t,e)=>f.jsx(eW,{content:t,copyToClipboard:e}),nW=(t,e)=>{const n=t.content.match(/#\w+/g)||[],o=t.content.replace(/#\w+/g,"").trim();return f.jsx(Gs,{className:"border-l-4",style:{borderLeftColor:"#E4405F"},children:f.jsxs(Zs,{className:"p-0",children:[f.jsx("div",{className:"w-full aspect-square bg-gradient-to-br from-purple-400 via-pink-500 to-orange-400 flex items-center justify-center",children:f.jsxs("div",{className:"text-center text-white",children:[f.jsx(fx,{className:"w-16 h-16 mx-auto mb-2 opacity-80"}),f.jsx("p",{className:"text-sm font-medium",children:"Image Placeholder"}),f.jsx("p",{className:"text-xs opacity-80",children:"1080 x 1080"})]})}),f.jsxs("div",{className:"p-4",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[f.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-purple-400 to-pink-500 flex items-center justify-center shrink-0",children:f.jsx(Bc,{className:"w-5 h-5 text-white"})}),f.jsx("div",{className:"flex-1",children:f.jsx("div",{className:"font-semibold text-sm",children:"yourbrand"})}),f.jsx(Le,{size:"sm",variant:"ghost",className:"h-8 px-2",onClick:()=>e(t.content,"Instagram Caption"),children:f.jsx(Js,{className:"h-4 w-4"})})]}),f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("button",{className:"hover:opacity-60 transition-opacity",children:f.jsx(Jf,{className:"w-7 h-7"})}),f.jsx("button",{className:"hover:opacity-60 transition-opacity",children:f.jsx(Lc,{className:"w-7 h-7"})}),f.jsx("button",{className:"hover:opacity-60 transition-opacity",children:f.jsx(si,{className:"w-7 h-7"})})]}),f.jsx("button",{className:"hover:opacity-60 transition-opacity",children:f.jsx(hx,{className:"w-6 h-6"})})]}),f.jsxs("div",{className:"prose prose-sm max-w-none mb-2",children:[f.jsx("span",{className:"font-semibold",children:"yourbrand"})," ",f.jsx("span",{className:"whitespace-pre-wrap",children:o})]}),n.length>0&&f.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:n.map((s,r)=>f.jsx("span",{className:"text-sm text-blue-600 cursor-pointer hover:underline",children:s},r))}),f.jsxs("div",{className:`text-xs ${t.characterCount>2200?"text-red-500 font-medium":"text-muted-foreground"}`,children:[t.characterCount," / 2,200 characters",t.characterCount>2200&&f.jsx("span",{className:"ml-2",children:"⚠️ Over limit"})]})]})]})})},oW=(t,e)=>{const n=t.content.split(`
298`),o=n.find(i=>
298i.startsWith("# "))||n[0],s=o.replace(/^#\s*/,"").trim(),r=t.content.replace(o,"").trim(),a=Math.ceil(t.wordCount/200);return f.jsx(Gs,{className:"border-l-4",style:{borderLeftColor:"#6366F1"},children:f.jsxs(Zs,{className:"p-8",children:[f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-4",children:[f.jsx(mx,{className:"w-4 h-4"}),f.jsxs("span",{children:[a," min read"]}),f.jsx("span",{children:"•"}),f.jsxs("span",{children:[t.wordCount," words"]}),f.jsx("div",{className:"flex-1"}),f.jsx(Le,{size:"sm",variant:"ghost",className:"h-8 px-2",onClick:()=>e(t.content,"Blog Post"),children:f.jsx(Js,{className:"h-4 w-4"})})]}),f.jsx("h1",{className:"text-4xl font-bold mb-6 leading-tight",children:s}),f.jsxs("div",{className:"flex items-center gap-3 mb-8 pb-6 border-b",children:[f.jsx("div",{className:"w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center shrink-0",children:f.jsx(Bc,{className:"w-6 h-6 text-indigo-600"})}),f.jsxs("div",{children:[f.jsx("div",{className:"font-medium",children:"Your Name"}),f.jsx("div",{className:"text-sm text-muted-foreground",children:"Published just now"})]})]}),f.jsx("div",{className:"prose prose-lg max-w-none whitespace-pre-wrap",children:r}),f.jsxs("div",{className:"flex items-center gap-6 mt-8 pt-6 border-t text-muted-foreground",children:[f.jsxs("button",{className:"flex items-center gap-2 hover:text-foreground transition-colors",children:[f.jsx(Jf,{className:"w-5 h-5"}),f.jsx("span",{className:"text-sm",children:"Like"})]}),f.jsxs("button",{className:"flex items-center gap-2 hover:text-foreground transition-colors",children:[f.jsx(Lc,{className:"w-5 h-5"}),f.jsx("span",{className:"text-sm",children:"Comment"})]}),f.jsxs("button",{className:"flex items-center gap-2 hover:text-foreground transition-colors",children:[f.jsx(si,{className:"w-5 h-5"}),f.jsx("span",{className:"text-sm",children:"Share"})]})]})]})})},sW=(t,e)=>{const n=t.content.split(`
299`),o=n.find(a=>a.startsWith("# "))||n[0],s=o.replace(/^#\s*/,"").trim(),r=t.content.replace(o,"").trim();return f.jsx(Gs,{className:"border-l-4",style:{borderLeftColor:"#10B981"},children:f.jsxs(Zs,{className:"p-0",children:[f.jsxs("div",{className:"bg-gradient-to-r from-emerald-50 to-green-50 p-6 border-b",children:[f.jsxs("div",{className:"flex items-center justify-between mb-4",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-12 h-12 rounded-lg bg-emerald-500 flex items-center justify-center shrink-0",children:f.jsx("span",{className:"text-2xl",children:"📧"})}),f.jsxs("div",{children:[f.jsx("div",{className:"font-bold text-lg",children:"Your Newsletter"}),f.jsx("div",{className:"text-sm text-muted-foreground",children:"[email protected]"})]})]}),f.jsx(Le,{size:"sm",variant:"ghost",className:"h-8 px-2",onClick:()=>e(t.content,"Newsletter"),children:f.jsx(Js,{className:"h-4 w-4"})})]}),f.jsx("h1",{className:"text-3xl font-bold mb-2",children:s}),f.jsx("div",{className:"text-sm text-muted-foreground",children:new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]}),f.jsxs("div",{className:"p-8",children:[f.jsx("div",{className:"prose max-w-none whitespace-pre-wrap",children:r}),f.jsx("div",{className:"mt-8 pt-6 border-t",children:f.jsxs("div",{className:"bg-muted/30 rounded-lg p-4 text-center",children:[f.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Thanks for reading! Share this newsletter with your network."}),f.jsxs("div",{className:"flex items-center justify-center gap-3",children:[f.jsxs("button",{className:"flex items-center gap-2 text-sm hover:text-foreground transition-colors",children:[f.jsx(si,{className:"w-4 h-4"}),"Share"]}),f.jsx("span",{className:"text-muted-foreground",children:"•"}),f.jsxs("button",{className:"flex items-center gap-2 text-sm hover:text-foreground transition-colors",children:[f.jsx(vx,{className:"w-4 h-4"}),"View in browser"]})]})]})}),f.jsxs("div",{className:"mt-4 text-xs text-muted-foreground text-center",children:[t.wordCount," words • ",t.characterCount," characters"]})]})]})})},rW=(t,e)=>{switch(t.format){case"twitter":return Qq(t,e);case"linkedin":return tW(t,e);case"instagram":return nW(t,e);case"email":return sW(t,e);case"blog":return oW(t,e);default:return f.jsx(Gs,{children:f.jsx(Zs,{className:"p-6",children:f.jsx("div",{className:"prose prose-sm max-w-none whitespace-pre-wrap",children:t.content})})})}};function aW({content:t}){const e=n=>{navigator.clipboard.writeText(n)};return f.jsx("div",{className:"space-y-4",children:rW(t,e)})}function al({label:t,value:e,icon:n,color:o}){return f.jsx(Gs,{className:"overflow-hidden",children:f.jsx(Zs,{className:"p-4",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 rounded-lg bg-muted/50",style:o?{backgroundColor:`${o}15`}:void 0,children:f.jsx("div",{style:o?{color:o}:void 0,children:f.jsx(n,{className:"w-4 h-4"})})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-muted-foreground",children:t}),f.jsx("p",{className:"text-lg font-semibold",children:e})]})]})})})}function iW(t){return t>=80?"#10b981":t>=60?"#f59e0b":"#ef4444"}function lW({content:t}){return t?f.jsx($u,{className:"h-full",children:f.jsxs("div",{className:"max-w-[768px] w-full mx-auto px-6 py-8 md:px-12",children:[f.jsx(aW,{content:t}),f.jsxs("div",{className:"mt-8 pt-8 border-t border-border/40",children:[f.jsx("h4",{className:"text-sm font-semibold mb-4",children:"Content Metrics"}),f.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[f.jsx(al,{label:"Words",value:t.wordCount,icon:Zf}),f.jsx(al,{label:"Characters",value:t.characterCount,icon:aC}),f.jsx(al,{label:"Quality Score",value:`${t.qualityScore}%`,icon:jx,color:iW(t.qualityScore)}),f.jsx(al,{label:"Generated",value:cp(t.createdAt),icon:xl})]})]})]})}):f.jsx("div",{className:"flex items-center justify-center h-full",children:f.jsx("p",{className:"text-muted-foreground",children:"Select a platform to view content"})})}var cW=$m,uW=Um,dW=Hm,pW=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,fW=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,mW=$t.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",ze(this.options.HTMLAttributes,t),0]},renderMarkdown:(t,e)=>`==${e.renderChildren(t)}==`,parseMarkdown:(t,e)=>
vendor: 5,342 bytes, line 299
299e.applyMark("highlight",e.parseInline(t.tokens||[])),markdownTokenizer:{name:"highlight",level:"inline",start:t=>t.indexOf("=="),tokenize(t,e,n){const s=/^(==)([^=]+)(==)/.exec(t);if(s){const r=s[2].trim(),a=n.inlineTokens(r);return{type:"highlight",raw:s[0],text:r,tokens:a}}}},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Ps({find:pW,type:this.type})]},addPasteRules(){return[ss({find:fW,type:this.type})]}}),hW=mW,gW=20,c_=(t,e=0)=>{const n=[];return!t.children.length||e>gW||Array.from(t.children).forEach(o=>{o.tagName==="SPAN"?n.push(o):o.children.length&&n.push(...c_(o,e+1))}),n},bW=t=>{if(!t.children.length)return;const e=c_(t);e&&e.forEach(n=>{var o,s;const r=n.getAttribute("style"),a=(s=(o=n.parentElement)==null?void 0:o.closest("span"))==null?void 0:s.getAttribute("style");n.setAttribute("style",`${a};${r}`)})},u_=$t.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!0}},parseHTML(){return[{tag:"span",consuming:!1,getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&bW(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",ze(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleTextStyle:t=>({commands:e})=>e.toggleMark(this.name,t),removeEmptyTextStyle:()=>({tr:t})=>{const{selection:e}=t;return t.doc.nodesBetween(e.from,e.to,(n,o)=>{if(n.isTextblock)return!0;n.marks.filter(s=>s.type===this.type).some(s=>Object.values(s.attrs).some(r=>!!r))||t.removeMark(o,o+n.nodeSize,this.type)}),!0}}}}),vW=me.create({name:"backgroundColor",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{backgroundColor:{default:null,parseHTML:t=>{var e;const n=t.getAttribute("style");if(n){const o=n.split(";").map(s=>s.trim()).filter(Boolean);for(let s=o.length-1;s>=0;s-=1){const r=o[s].split(":");if(r.length>=2){const a=r[0].trim().toLowerCase(),i=r.slice(1).join(":").trim();if(a==="background-color")return i.replace(/['"]+/g,"")}}}return(e=t.style.backgroundColor)==null?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.backgroundColor?{style:`background-color: ${t.backgroundColor}`}:{}}}}]},addCommands(){return{setBackgroundColor:t=>({chain:e})=>e().setMark("textStyle",{backgroundColor:t}).run(),unsetBackgroundColor:()=>({chain:t})=>t().setMark("textStyle",{backgroundColor:null}).removeEmptyTextStyle().run()}}}),d_=me.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;const n=t.getAttribute("style");if(n){const o=n.split(";").map(s=>s.trim()).filter(Boolean);for(let s=o.length-1;s>=0;s-=1){const r=o[s].split(":");if(r.length>=2){const a=r[0].trim().toLowerCase(),i=r.slice(1).join(":").trim();if(a==="color")return i.replace(/['"]+/g,"")}}}return(e=t.style.color)==null?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),jW=me.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>t.style.fontFamily,renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),kW=me.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize,renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),yW=me.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight,renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t}).run(),unsetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).removeEmptyTextStyle().run()}}});me.create({name:"textStyleKit",addExtensions(){const t=[];return this.options.backgroundColor!==!1&&t.push(vW.configure(this.options.backgroundColor)),this.options.color!==!1&&t.push(d_.configure(this.options.color)),this.options.fontFamily!==!1&&t.push(jW.configure(this.options.fontFamily)),this.options.fontSize!==!1&&t.push(kW.configure(this.options.fontSize)),this.options.lineHeight!==!1&&t.push(yW.configure(this.options.lineHeight)),this.options.textStyle!==!1&&t.push(u_.configure(this.options.textStyle)),t}});var wW=d_;const _W=()=>
vendor: 14,120 bytes, line 299
299/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
299var ip=new Map;function xW(t){if(ip.has(t))return ip.get(t);var e=CW(t);return ip.set(t,e),e}var CW=(function(){var t=null;try{t=document.createElement("canvas").getContext("2d")}catch{}if(!t)return function(){return!1};var e=25,n=20,o=Math.floor(e/2);return t.font=o+"px Arial, Sans-Serif",t.textBaseline="top",t.canvas.width=n*2,t.canvas.height=e,function(s){t.clearRect(0,0,n*2,e),t.fillStyle="#FF0000",t.fillText(s,0,22),t.fillStyle="#0000FF",t.fillText(s,n,22);for(var r=t.getImageData(0,0,n,e).data,a=r.length,i=0;i<a&&!r[i+3];i+=4);if(i>=a)return!1;var l=n+i/4%n,c=Math.floor(i/4/n),u=t.getImageData(l,c,1,1).data;return!(r[i]!==u[0]||r[i+2]!==u[2]||t.measureText(s).width>=n)}})(),p_=[{emoji:"🇦",name:"regional_indicator_a",shortcodes:["regional_indicator_a"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇧",name:"regional_indicator_b",shortcodes:["regional_indicator_b"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇨",name:"regional_indicator_c",shortcodes:["regional_indicator_c"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇩",name:"regional_indicator_d",shortcodes:["regional_indicator_d"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇪",name:"regional_indicator_e",shortcodes:["regional_indicator_e"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇫",name:"regional_indicator_f",shortcodes:["regional_indicator_f"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇬",name:"regional_indicator_g",shortcodes:["regional_indicator_g"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇭",name:"regional_indicator_h",shortcodes:["regional_indicator_h"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇮",name:"regional_indicator_i",shortcodes:["regional_indicator_i"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇯",name:"regional_indicator_j",shortcodes:["regional_indicator_j"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇰",name:"regional_indicator_k",shortcodes:["regional_indicator_k"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇱",name:"regional_indicator_l",shortcodes:["regional_indicator_l"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇲",name:"regional_indicator_m",shortcodes:["regional_indicator_m"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇳",name:"regional_indicator_n",shortcodes:["regional_indicator_n"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇴",name:"regional_indicator_o",shortcodes:["regional_indicator_o"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇵",name:"regional_indicator_p",shortcodes:["regional_indicator_p"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇶",name:"regional_indicator_q",shortcodes:["regional_indicator_q"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇷",name:"regional_indicator_r",shortcodes:["regional_indicator_r"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇸",name:"regional_indicator_s",shortcodes:["regional_indicator_s"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇹",name:"regional_indicator_t",shortcodes:["regional_indicator_t"],tags:[],group:"",emoticons:[],version:0}
299,{emoji:"🇺",name:"regional_indicator_u",shortcodes:["regional_indicator_u"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇻",name:"regional_indicator_v",shortcodes:["regional_indicator_v"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇼",name:"regional_indicator_w",shortcodes:["regional_indicator_w"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇽",name:"regional_indicator_x",shortcodes:["regional_indicator_x"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇾",name:"regional_indicator_y",shortcodes:["regional_indicator_y"],tags:[],group:"",emoticons:[],version:0},{emoji:"🇿",name:"regional_indicator_z",shortcodes:["regional_indicator_z"],tags:[],group:"",emoticons:[],version:0},{emoji:"😀",name:"grinning",shortcodes:["grinning","grinning_face"],tags:["face","grin"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f600.png"},{emoji:"😃",name:"smiley",shortcodes:["grinning_face_with_big_eyes","smiley"],tags:["face","mouth","open","smile"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f603.png"},{emoji:"😄",name:"smile",shortcodes:["grinning_face_with_closed_eyes","smile"],tags:["eye","face","mouth","open","smile"],group:"",emoticons:[":D"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f604.png"},{emoji:"😁",name:"grin",shortcodes:["beaming_face","grin"],tags:["eye","face","grin","smile"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f601.png"},{emoji:"😆",name:"laughing",shortcodes:["laughing","lol","satisfied","squinting_face"],tags:["face","laugh","mouth","satisfied","smile"],group:"",emoticons:["xD","XD"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f606.png"},{emoji:"😅",name:"sweat_smile",shortcodes:["grinning_face_with_sweat","sweat_smile"],tags:["cold","face","open","smile","sweat"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f605.png"},{emoji:"🤣",name:"rofl",shortcodes:["rofl"],tags:["face","floor","laugh","rofl","rolling","rotfl"],group:"",emoticons:[":'D"],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f923.png"},{emoji:"😂",name:"joy",shortcodes:["joy","lmao","tears_of_joy"],tags:["face","joy","laugh","tear"],group:"",emoticons:[":')"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f602.png"},{emoji:"🙂",name:"slightly_smiling_face",shortcodes:["slightly_smiling_face"],tags:["face","smile"],group:"",emoticons:[":)"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f642.png"},{emoji:"🙃",name:"upside_down_face",shortcodes:["upside_down_face"],tags:["face","upside-down"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f643.png"},{emoji:"🫠",name:"melting_face",shortcodes:["melt","melting_face"],tags:["disappear","dissolve","liquid","melt"],group:"",emoticons:[],version:14},{emoji:"😉",name:"wink",shortcodes:["wink","winking_face"],tags:["face","wink"],group:"",emoticons:[";)"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f609.png"},{emoji:"😊",name:"blush",shortcodes:["blush","smiling_face_with_closed_eyes"],tags:["blush","eye","face","smile"],group:"",emoticons:[":>"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f60a.png"},{emoji:"😇",name:"innocent",shortcodes:["halo","innocent"],tags:["angel","face","fantasy","halo","innocent"],group:"",emoticons:["o:)","O:)"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f607.png"},{emoji:"🥰",name:"smiling_face_with_three_hearts",shortcodes:["smiling_face_with_3_hearts"],tags:["adore","crush","hearts","in love"],group:"",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f970.png"},{emoji:"😍",name:"heart_eyes",shortcodes:["heart_eyes","smiling_face_with_heart_eyes"],tags:["eye","face","love","smile"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f60d.png"},{emoji:"🤩",name:"star_struck",shortcodes:["star_struck"],tags:["eyes","face","grinning","star"],group:"",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f929.png"},{emoji:"😘",name:"kissing_heart",shortcodes:["blowing_a_kiss","kissing_heart"],tags:["face","kiss"],group:"",emoticons:[":x",":X"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f618.png"},{emoji:"😗",name:"kissing",shortcodes:["kissing","kissing_face"],tags:["face","kiss"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f617.png"},{emoji:"☺",name:"relaxed",shortcodes:["relaxed","smiling_face"],tags:["face","outlined","relaxed","smile"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/263a-fe0f.png"},{emoji:"😚",name:"kissing_closed_eyes",shortcodes:["kissing_closed_eyes","kissing_face_with_closed_eyes"],tags:["closed","eye","face","kiss"],group:"",emoticons:[":*"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f61a.png"},{emoji:"😙",name:"kissing_smiling_eyes",shortcodes:["kissing_face_with_smiling_eyes","kissing_smiling_eyes"],tags:["eye","face","kiss","smile"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f619.png"},{emoji:"🥲",name:"smiling_face_with_tear",shortcodes:["smiling_face_with_tear"],tags:["grateful","proud","relieved","smiling","tear","touched"],group:"",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f972.png"},{emoji:"😋",name:"yum",shortcodes:["savoring_food","yum"],tags:["delicious","face","savouring","smile","yum"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f60b.png"},{emoji:"😛",name:"stuck_out_tongue",shortcodes:["face_with_tongue","stuck_out_tongue"],tags:["face","tongue"],group:"",emoticons:[":p",":P"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f61b.png"},{emoji:"😜",name:"stuck_out_tongue_winking_eye",shortcodes:["stuck_out_tongue_winking_eye"],tags:["eye","face","joke","tongue","wink"],group:"",emoticons:[";p",";P"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f61c.png"},{emoji:"🤪",name:"zany_face",shortcodes:["zany","zany_face"],tags:["eye","goofy","large","small"],group:"",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f92a.png"},{emoji:"😝",name:"stuck_out_tongue_closed_eyes",shortcodes:["stuck_out_tongue_closed_eyes"],tags:["eye","face","horrible","taste","tongue"],group:"",emoticons:["xp","xP","XP"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f61d.png"},{emoji:"🤑",name:"money_mouth_face",shortcodes:["money_mouth_face"],tags:["face","money","mouth"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f911.png"},{emoji:"🤗",name:"hugs",shortcodes:["hug","hugging","hugging_face"],tags:["face","hug","hugging","open hands","smiling face"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f917.png"},{emoji:"🤭",name:"hand_over_mouth",shortcodes:["face_with_hand_over_mouth","hand_over_mouth"],tags:["whoops"],group:"",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f92d.png"},{emoji:"🫢",name:"face_with_open_eyes_and_hand_over_mouth",shortcodes:["face_with_open_eyes_hand_over_mouth","gasp"],tags:["amazement","awe","disbelief","embarrass","scared","surprise"],group:"",emoticons:[],version:14},{emoji:"🫣",name:"face_with_peeking_eye",shortcodes:["face_with_peeking_eye","peek"],tags:["captivated","peep","stare"],group:"",emoticons:[],version:14},{emoji:"🤫",name:"shushing_face",shortcodes:["shush","shushing_face"],tags:["quiet","shush"],group:"",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f92b.png"},{emoji:"🤔",name:"thinking",shortcodes:["thinking","thinking_face","wtf"],tags:["face","thinking"],group:"",emoticons:[":l",":L"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f914.png"},{emoji:"🫡",name:"saluting_face",shortcodes:["salute","saluting_face"],tags:["ok","salute","sunny","troops","yes"],group:"",emoticons:[],version:14},{emoji:"🤐",name:"zipper_mouth_face",shortcodes:["zipper_mouth","zipper_mouth_face"],tags:["face","mouth","zip","zipper"],group:"",emoticons:[":z",":Z"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f910.png"},{emoji:"🤨",name:"raised_eyebrow",shortcodes:["face_with_raised_eyebrow","raised_eyebrow"],tags:["distrust","skeptic"],group:"",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f928.png"},{emoji:"😐",name:"neutral_face",shortcodes:["neutral","neutral_face"],tags:["deadpan","face","meh","neutral"],group:"",emoticons:[":|"],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f610.png"},{emoji:"😑",name:"expressionless",shortcodes:["expressionless","expressionless_face"],tags:["expressionless","face","inexpressive","meh","unexpressive"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f611.png"},{emoji:"😶",name:"no_mouth",shortcodes:["no_mouth"],tags:["face","mouth","quiet","silent"],group:"",emoticons:[":#"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f636.png"},{emoji:"🫥",name:"dotted_line_face",shortcodes:["dotted_line_face"],tags:["depressed","disappear","hide","introvert","invisible"],group:"",emoticons:[],version:14},{emoji:"😶‍🌫",name:"face_in_clouds",shortcodes:["in_clouds"],tags:["absentminded","face in the fog","head in clouds"],group:"",emoticons:[],version:13.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f636-200d-1f32b-fe0f.png"},{emoji:"😏",name:"smirk",shortcodes:["smirk","smirking","smirking_face"],tags:["face","smirk"],group:"",emoticons:[":j"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f60f.png"},{emoji:"😒",name:"unamused",shortcodes:["unamused","unamused_face"],tags:["face","unamused","unhappy"],group:"",emoticons:[":?"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f612.png"},{emoji:"🙄",name:"roll_eyes",shortcodes:["rolling_eyes"],tags:["eyeroll","eyes","face","rolling"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f644.png"},{emoji:"😬",name:"grimacing",shortcodes:["grimacing","grimacing_face"],tags:["face","grimace"],group:"",emoticons:["8D"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f62
299c.png"},{emoji:"😮‍💨",name:"face_exhaling",shortcodes:["exhale","exhaling"],tags:["exhale","gasp","groan","relief","whisper","whistle"],group:"",emoticons:[],version:13.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f62e-200d-1f4a8.png"},{emoji:"🤥",name:"lying_face",shortcodes:["lying","lying_face"],tags:["face","lie","pinocchio"],group:"",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f925.png"},{emoji:"🫨",name:"shaking_face",shortcodes:["shaking","shaking_face"],tags:["earthquake","face","shaking","shock","vibrate"],group:"",emoticons:[],version:15},{emoji:"🙂‍↔",name:"head_shaking_horizontally",shortcodes:["head_shaking_horizontally"],tags:["no","shake"],group:"",emoticons:[],version:15.1},{emoji:"🙂‍↕",name:"head_shaking_vertically",shortcodes:["head_shaking_vertically"],tags:["nod","yes"],group:"",emoticons:[],version:15.1},{emoji:"😌",name:"relieved",shortcodes:["relieved","relieved_face"],tags:["face","relieved"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f60c.png"},{emoji:"😔",name:"pensive",shortcodes:["pensive","pensive_face"],tags:["dejected","face","pensive"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f614.png"},{emoji:"😪",name:"sleepy",shortcodes:["sleepy","sleepy_face"],tags:["face","good night","sleep"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f62a.png"},{emoji:"🤤",name:"drooling_face",shortcodes:["drooling","drooling_face"],tags:["drooling","face"],group:"",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f924.png"},{emoji:"😴",name:"sleeping",shortcodes:["sleeping","sleeping_face"],tags:["face","good night","sleep","zzz"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f634.png"},{emoji:"😷",name:"mask",shortcodes:["mask","medical_mask"],tags:["cold","doctor","face","mask","sick"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f637.png"},{emoji:"🤒",name:"face_with_thermometer",shortcodes:["face_with_thermometer"],tags:["face","ill","sick","thermometer"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f912.png"},{emoji:"🤕",name:"face_with_head_bandage",shortcodes:["face_with_head_bandage"],tags:["bandage","face","hurt","injury"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f915.png"},{emoji:"🤢",name:"nauseated_face",shortcodes:["nauseated","nauseated_face"],tags:["face","nauseated","vomit"],group:"",emoticons:["%("],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f922.png"},{emoji:"🤮",name:"vomiting_face",shortcodes:["face_vomiting","vomiting"],tags:["puke","sick","vomit"],group:"",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f92e.png"},{emoji:"🤧",name:"sneezing_face",shortcodes:["sneezing","sneezing_face"],tags:["face","gesundheit","sneeze"],group:"",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f927.png"},{emoji:"🥵",name:"hot_face",shortcodes:["hot","hot_face"],tags:["feverish","heat stroke","hot","red-faced","sweating"],group:"",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f975.png"},{emoji:"🥶",name:"cold_face",shortcodes:["cold","cold_face"],tags:["blue-faced","cold","freezing","frostbite","icicles"],group:"",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f976.png"},{emoji:"🥴",name:"woozy_face",shortcodes:["woozy","woozy_face"],tags:["dizzy","intoxicated","tipsy","uneven eyes","wavy mouth"],group:"",emoticons:[":&"],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f974.png"},{emoji:"😵",name:"dizzy_face",shortcodes:["dizzy_face","knocked_out"],tags:["crossed-out eyes","dead","face","knocked out"],group:"",emoticons:["xo","XO"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f635.png"},{emoji:"😵‍💫",name:"face_with_spiral_eyes",shortcodes:["dizzy_eyes"],tags:["dizzy","hypnotized","spiral","trouble","whoa"],group:"",emoticons:[],version:13.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f635-200d-1f4ab.png"},{emoji:"🤯",name:"exploding_head",shortcodes:["exploding_head"],tags:["mind blown","shocked"],group:"",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f92f.png"},{emoji:"🤠",name:"cowboy_hat_face",shortcodes:["cowboy","cowboy_face"],tags:["cowboy","cowgirl","face","hat"],group:"",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f920.png"},{emoji:"🥳",name:"partying_face",shortcodes:["hooray","partying","partying_face"],tags:["celebration","hat","horn","party"],group:"",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f973.png"},{emoji:"🥸",name:"disguised_face",shortcodes:["disguised","disguised_face"],tags:["disguise","face","glasses","incognito","nose"],group:"",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f978.png"},{emoji:"😎",name:"sunglasses",shortcodes:["smiling_face_with_sunglasses","sunglasses_cool","too_cool"],tags:["bright","cool","face","sun","sunglasses"],group:"",emoticons:["8)"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f60e.png"}
299,{emoji:"🤓",name:"nerd_face",shortcodes:["nerd","nerd_face"],tags:["face","geek","nerd"],group:"",emoticons:[":B"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f913.png"},{emoji:"🧐",name:"monocle_face",shortcodes:["face_with_monocle"],tags:["face","monocle","stuffy"],group:"",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d0.png"},{emoji:"😕",name:"confused",shortcodes:["confused","confused_face"],tags:["confused","face","meh"],group:"",emoticons:[":/"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f615.png"},{emoji:"🫤",name:"face_with_diagonal_mouth",shortcodes:["face_with_diagonal_mouth"],tags:["disappointed","meh","skeptical","unsure"],group:"",emoticons:[],version:14},{emoji:"😟",name:"worried",shortcodes:["worried","worried_face"],tags:["face","worried"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f61f.png"},{emoji:"🙁",name:"slightly_frowning_face",shortcodes:["slightly_frowning_face"],tags:["face","frown"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f641.png"},{emoji:"☹",name:"frowning_face",shortcodes:["white_frowning_face"],tags:["face","frown"],group:"",emoticons:[":("],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2639-fe0f.png"},{emoji:"😮",name:"open_mouth",shortcodes:["face_with_open_mouth","open_mouth"],tags:["face","mouth","open","sympathy"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f62e.png"},{emoji:"😯",name:"hushed",shortcodes:["hushed","hushed_face"],tags:["face","hushed","stunned","surprised"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f62f.png"},{emoji:"😲",name:"astonished",shortcodes:["astonished","astonished_face"],tags:["astonished","face","shocked","totally"],group:"",emoticons:[":o",":O"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f632.png"},{emoji:"😳",name:"flushed",shortcodes:["flushed","flushed_face"],tags:["dazed","face","flushed"],group:"",emoticons:[":$"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f633.png"},{emoji:"🥺",name:"pleading_face",shortcodes:["pleading","pleading_face"],tags:["begging","mercy","puppy eyes"],group:"",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f97a.png"},{emoji:"🥹",name:"face_holding_back_tears",shortcodes:["face_holding_back_tears","watery_eyes"],tags:["angry","cry","proud","resist","sad"],group:"",emoticons:[],version:14},{emoji:"😦",name:"frowning",shortcodes:["frowning","frowning_face"],tags:["face","frown","mouth","open"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f626.png"},{emoji:"😧",name:"anguished",shortcodes:["anguished","anguished_face"],tags:["anguished","face"],group:"",emoticons:[":s",":S"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f627.png"},{emoji:"😨",name:"fearful",shortcodes:["fearful","fearful_face"],tags:["face","fear","fearful","scared"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f628.png"},{emoji:"😰",name:"cold_sweat",shortcodes:["anxious","anxious_face","cold_sweat"],tags:["blue","cold","face","rushed","sweat"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f630.png"},{emoji:"😥",name:"disappointed_relieved",shortcodes:["disappointed_relieved","sad_relieved_face"],tags:["disappointed","face","relieved","whew"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f625.png"},{emoji:"😢",name:"cry",shortcodes:["cry","crying_face"],tags:["cry","face","sad","tear"],group:"",emoticons:[":'("],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f622.png"},{emoji:"😭",name:"sob",shortcodes:["loudly_crying_face","sob"],tags:["cry","face","sad","sob","tear"],group:"",emoticons:[":'o"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f62d.png"},{emoji:"😱",name:"scream",shortcodes:["scream","screaming_in_fear"],tags:["face","fear","munch","scared","scream"],group:"",emoticons:["Dx"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f631.png"},{emoji:"😖",name:"confounded",shortcodes:["confounded","confounded_face"],tags:["confounded","face"],group:"",emoticons:["x(","X("],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f616.png"},{emoji:"😣",name:"persevere",shortcodes:["persevere","persevering_face"],tags:["face","persevere"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f623.png"},{emoji:"😞",name:"disappointed",shortcodes:["disappointed","disappointed_face"],tags:["disappointed","face"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f61e.png"},{emoji:"😓",name:"sweat",shortcodes:["downcast_face","sweat"],tags:["cold","face","sweat"],group:"",emoticons:[":<"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f613.png"},{emoji:"😩",name:"weary",shortcodes:["weary","weary_face"],tags:["face","tired","weary"],group:"",emoticons:["D:"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f629.png"},{emoji:"😫",name:"tired_face",shortcodes:["tired","tired_face"],tags:["face","tired"],group:"",emoticons:[":c",":C"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f62b.png"},{emoji:"🥱",name:"yawning_face",shortcodes:["yawn","yawning","yawning_face"],tags:["bored","tired","yawn"],group:"",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f971.png"},{emoji:"😤",name:"triumph",shortcodes:["nose_steam","triumph"],tags:["face","triumph","won"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f624.png"},{emoji:"😡",name:"pout",shortcodes:["pout","pouting_face","rage"],tags:["angry","enraged","face","mad","pouting","rage","red"],group:"",emoticons:[">:/"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f621.png"},{emoji:"😠",name:"angry",shortcodes:["angry","angry_face"],tags:["anger","angry","face","mad"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f620.png"},{emoji:"🤬",name:"cursing_face",shortcodes:["censored","face_with_symbols_on_mouth"],tags:["swearing"],group:"",emoticons:[":@"],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f92c.png"},{emoji:"😈",name:"smiling_imp",shortcodes:["smiling_imp"],tags:["face","fairy tale","fantasy","horns","smile"],group:"",emoticons:[">:)"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f608.png"},{emoji:"👿",name:"imp",shortcodes:["angry_imp","imp"],tags:["demon","devil","face","fantasy","imp"],group:"",emoticons:[">:("],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f47f.png"},{emoji:"💀",name:"skull",shortcodes:["skull"],tags:["death","face","fairy tale","monster"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f480.png"},{emoji:"☠",name:"skull_and_crossbones",shortcodes:["skull_and_crossbones"],tags:["crossbones","death","face","monster","skull"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2620-fe0f.png"},{emoji:"💩",name:"hankey",shortcodes:["poop","shit"],tags:["dung","face","monster","poo","poop"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4a9.png"},{emoji:"🤡",name:"clown_face",shortcodes:["clown","clown_face"],tags:["clown","face"],group:"",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f921.png"},{emoji:"👹",name:"japanese_ogre",shortcodes:["japanese_ogre","ogre"],tags:["creature","face","fairy tale","fantasy","monster"],group:"",emoticons:[">0)"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f479.png"},{emoji:"👺",name:"japanese_goblin",shortcodes:["goblin","japanese_goblin"],tags:["creature","face","fairy tale","fantasy","monster"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f47a.png"},{emoji:"👻",name:"ghost",shortcodes:["ghost"],tags:["creature","face","fairy tale","fantasy","monster"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f47b.png"},{emoji:"👽",name:"alien",shortcodes:["alien"],tags:["creature","extraterrestrial","face","fantasy","ufo"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f47d.png"},{emoji:"👾",name:"space_invader",shortcodes:["alien_monster","space_invader"],tags:["alien","creature","extraterrestrial","face","monster","ufo"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f47e.png"},{emoji:"🤖",name:"robot",shortcodes:["robot","robot_face"],tags:["face","monster"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f916.png"},{emoji:"😺",name:"smiley_cat",shortcodes:["grinning_cat","smiley_cat"],tags:["cat","face","grinning","mouth","open","smile"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f63a.png"},{emoji:"😸",name:"smile_cat",shortcodes:["grinning_cat_with_closed_eyes","smile_cat"],tags:["cat","eye","face","grin","smile"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f638.png"},{emoji:"😹",name:"joy_cat",shortcodes:["joy_cat","tears_of_joy_cat"],tags:["cat","face","joy","tear"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f639.png"},{emoji:"😻",name:"heart_eyes_cat",shortcodes:["heart_eyes_cat","smiling_cat_with_heart_eyes"],tags:["cat","eye","face","heart","love","smile"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f63b.png"}
299,{emoji:"😼",name:"smirk_cat",shortcodes:["smirk_cat","wry_smile_cat"],tags:["cat","face","ironic","smile","wry"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f63c.png"},{emoji:"😽",name:"kissing_cat",shortcodes:["kissing_cat"],tags:["cat","eye","face","kiss"],group:"",emoticons:[":3"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f63d.png"},{emoji:"🙀",name:"scream_cat",shortcodes:["scream_cat","weary_cat"],tags:["cat","face","oh","surprised","weary"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f640.png"},{emoji:"😿",name:"crying_cat_face",shortcodes:["crying_cat"],tags:["cat","cry","face","sad","tear"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f63f.png"},{emoji:"😾",name:"pouting_cat",shortcodes:["pouting_cat"],tags:["cat","face","pouting"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f63e.png"},{emoji:"🙈",name:"see_no_evil",shortcodes:["see_no_evil"],tags:["evil","face","forbidden","monkey","see"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f648.png"},{emoji:"🙉",name:"hear_no_evil",shortcodes:["hear_no_evil"],tags:["evil","face","forbidden","hear","monkey"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f649.png"},{emoji:"🙊",name:"speak_no_evil",shortcodes:["speak_no_evil"],tags:["evil","face","forbidden","monkey","speak"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64a.png"},{emoji:"💌",name:"love_letter",shortcodes:["love_letter"],tags:["heart","letter","love","mail"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f48c.png"},{emoji:"💘",name:"cupid",shortcodes:["cupid","heart_with_arrow"],tags:["arrow","cupid"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f498.png"},{emoji:"💝",name:"gift_heart",shortcodes:["gift_heart","heart_with_ribbon"],tags:["ribbon","valentine"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f49d.png"},{emoji:"💖",name:"sparkling_heart",shortcodes:["sparkling_heart"],tags:["excited","sparkle"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f496.png"},{emoji:"💗",name:"heartpulse",shortcodes:["growing_heart","heartpulse"],tags:["excited","growing","nervous","pulse"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f497.png"},{emoji:"💓",name:"heartbeat",shortcodes:["beating_heart","heartbeat"],tags:["beating","heartbeat","pulsating"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f493.png"},{emoji:"💞",name:"revolving_hearts",shortcodes:["revolving_hearts"],tags:["revolving"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f49e.png"},{emoji:"💕",name:"two_hearts",shortcodes:["two_hearts"],tags:["love"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f495.png"},{emoji:"💟",name:"heart_decoration",shortcodes:["heart_decoration"],tags:["heart"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f49f.png"},{emoji:"❣",name:"heavy_heart_exclamation",shortcodes:["heart_exclamation"],tags:["exclamation","mark","punctuation"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2763-fe0f.png"},{emoji:"💔",name:"broken_heart",shortcodes:["broken_heart"],tags:["break","broken"],group:"",emoticons:["</3"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f494.png"},{emoji:"❤‍🔥",name:"heart_on_fire",shortcodes:["heart_on_fire"],tags:["burn","heart","love","lust","sacred heart"],group:"",emoticons:[],version:13.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2764-fe0f-200d-1f525.png"},{emoji:"❤‍🩹",name:"mending_heart",shortcodes:["mending_heart"],tags:["healthier","improving","mending","recovering","recuperating","well"],group:"",emoticons:[],version:13.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2764-fe0f-200d-1fa79.png"},{emoji:"❤",name:"heart",shortcodes:["heart","red_heart"],tags:["heart"],group:"",emoticons:["<3"],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2764-fe0f.png"},{emoji:"🩷",name:"pink_heart",shortcodes:["pink_heart"],tags:["cute","heart","like","love","pink"],group:"",emoticons:[],version:15},{emoji:"🧡",name:"orange_heart",shortcodes:["orange_heart"],tags:["orange"],group:"",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9e1.png"},{emoji:"💛",name:"yellow_heart",shortcodes:["yellow_heart"],tags:["yellow"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f49b.png"},{emoji:"💚",name:"green_heart",shortcodes:["green_heart"],tags:["green"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f49a.png"},{emoji:"💙",name:"blue_heart",shortcodes:["blue_heart"],tags:["blue"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f499.png"},{emoji:"🩵",name:"light_blue_heart",shortcodes:["light_blue_heart"],tags:["cyan","heart","light blue","teal"],group:"",emoticons:[],version:15},{emoji:"💜",name:"purple_heart",shortcodes:["purple_heart"],tags:["purple"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f49c.png"},{emoji:"🤎",name:"brown_heart",shortcodes:["brown_heart"],tags:["brown","heart"],group:"",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f90e.png"},{emoji:"🖤",name:"black_heart",shortcodes:["black_heart"],tags:["black","evil","wicked"],group:"",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5a4.png"},{emoji:"🩶",name:"grey_heart",shortcodes:["gray_heart","grey_heart"],tags:["gray","heart","silver","slate"],group:"",emoticons:[],version:15},{emoji:"🤍",name:"white_heart",shortcodes:["white_heart"],tags:["heart","white"],group:"",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f90d.png"},{emoji:"💋",name:"kiss",shortcodes:["kiss"],tags:["kiss","lips"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f48b.png"},{emoji:"💯",name:"100",shortcodes:["100"],tags:["100","full","hundred","score"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4af.png"},{emoji:"💢",name:"anger",shortcodes:["anger"],tags:["angry","comic","mad"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4a2.png"},{emoji:"💥",name:"boom",shortcodes:["boom","collision"],tags:["boom","comic"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4a5.png"},{emoji:"💫",name:"dizzy",shortcodes:["dizzy"],tags:["comic","star"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ab.png"},{emoji:"💦",name:"sweat_drops",shortcodes:["sweat_drops"],tags:["comic","splashing","sweat"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4a6.png"}
299,{emoji:"💨",name:"dash",shortcodes:["dash","dashing_away"],tags:["comic","dash","running"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4a8.png"},{emoji:"🕳",name:"hole",shortcodes:["hole"],tags:["hole"],group:"",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f573-fe0f.png"},{emoji:"💬",name:"speech_balloon",shortcodes:["speech_balloon"],tags:["balloon","bubble","comic","dialog","speech"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ac.png"},{emoji:"👁‍🗨️",name:"eye_speech_bubble",shortcodes:["eye_in_speech_bubble"],tags:["balloon","bubble","eye","speech","witness"],group:"",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f441-fe0f-200d-1f5e8-fe0f.png"},{emoji:"🗨",name:"left_speech_bubble",shortcodes:["left_speech_bubble"],tags:["balloon","bubble","dialog","speech"],group:"",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5e8-fe0f.png"},{emoji:"🗯",name:"right_anger_bubble",shortcodes:["right_anger_bubble"],tags:["angry","balloon","bubble","mad"],group:"",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5ef-fe0f.png"},{emoji:"💭",name:"thought_balloon",shortcodes:["thought_balloon"],tags:["balloon","bubble","comic","thought"],group:"",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ad.png"},{emoji:"💤",name:"zzz",shortcodes:["zzz"],tags:["comic","good night","sleep","zzz"],group:"",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4a4.png"},{emoji:"👋",name:"wave",shortcodes:["wave","waving_hand"],tags:["hand","wave","waving"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f44b.png"},{emoji:"🤚",name:"raised_back_of_hand",shortcodes:["raised_back_of_hand"],tags:["backhand","raised"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f91a.png"},{emoji:"🖐",name:"raised_hand_with_fingers_splayed",shortcodes:["raised_hand_with_fingers_splayed"],tags:["finger","hand","splayed"],group:"people & body",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f590-fe0f.png"},{emoji:"✋",name:"hand",shortcodes:["high_five","raised_hand"],tags:["hand","high 5","high five"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/270b.png"},{emoji:"🖖",name:"vulcan_salute",shortcodes:["vulcan"],tags:["finger","hand","spock","vulcan"],group:"people & body",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f596.png"},{emoji:"🫱",name:"rightwards_hand",shortcodes:["rightwards_hand"],tags:["hand","right","rightward"],group:"people & body",emoticons:[],version:14},{emoji:"🫲",name:"leftwards_hand",shortcodes:["leftwards_hand"],tags:["hand","left","leftward"],group:"people & body",emoticons:[],version:14},{emoji:"🫳",name:"palm_down_hand",shortcodes:["palm_down"],tags:["dismiss","drop","shoo"],group:"people & body",emoticons:[],version:14},{emoji:"🫴",name:"palm_up_hand",shortcodes:["palm_up"],tags:["beckon","catch","come","offer"],group:"people & body",emoticons:[],version:14},{emoji:"🫷",name:"leftwards_pushing_hand",shortcodes:["leftwards_pushing_hand"],tags:["high five","leftward","push","refuse","stop","wait"],group:"people & body",emoticons:[],version:15},{emoji:"🫸",name:"rightwards_pushing_hand",shortcodes:["rightwards_pushing_hand"],tags:["high five","push","refuse","rightward","stop","wait"],group:"people & body",emoticons:[],version:15},{emoji:"👌",name:"ok_hand",shortcodes:["ok_hand"],tags:["hand","ok"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f44c.png"},{emoji:"🤌",name:"pinched_fingers",shortcodes:["pinch","pinched_fingers"],tags:["fingers","hand gesture","interrogation","pinched","sarcastic"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f90c.png"},{emoji:"🤏",name:"pinching_hand",shortcodes:["pinching_hand"],tags:["small amount"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f90f.png"},{emoji:"✌",name:"v",shortcodes:["v","victory"],tags:["hand","v","victory"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/270c-fe0f.png"},{emoji:"🤞",name:"crossed_fingers",shortcodes:["fingers_crossed"],tags:["cross","finger","hand","luck"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f91e.png"},{emoji:"🫰",name:"hand_with_index_finger_and_thumb_crossed",shortcodes:["hand_with_index_finger_and_thumb_crossed"],tags:["expensive","heart","love","money","snap"],group:"people & body",emoticons:[],version:14},{emoji:"🤟",name:"love_you_gesture",shortcodes:["love_you_gesture"],tags:["hand","ily"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f91f.png"},{emoji:"🤘",name:"metal",shortcodes:["metal","sign_of_the_horns"],tags:["finger","hand","horns","rock-on"],group:"people & body",emoticons:["\\m/","\\M/"],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f918.png"},{emoji:"🤙",name:"call_me_hand",shortcodes:["call_me_hand"],tags:["call","hand","hang loose","shaka"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f919.png"},{emoji:"👈",name:"point_left",shortcodes:["point_left"],tags:["backhand","finger","hand","index","point"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f448.png"},{emoji:"👉",name:"point_right",shortcodes:["point_right"],tags:["backhand","finger","hand","index","point"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f449.png"},{emoji:"👆",name:"point_up_2",shortcodes:["point_up"],tags:["backhand","finger","hand","point","up"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f446.png"},{emoji:"🖕",name:"fu",shortcodes:["middle_finger"],tags:["finger","hand"],group:"people & body",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f595.png"},{emoji:"👇",name:"point_down",shortcodes:["point_down"],tags:["backhand","down","finger","hand","point"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f447.png"},{emoji:"☝",name:"point_up",shortcodes:["point_up_2"],tags:["finger","hand","index","point","up"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/261d-fe0f.png"},{emoji:"🫵",name:"index_pointing_at_the_viewer",shortcodes:["point_forward"],tags:["point","you"],group:"people & body",emoticons:[],version:14},{emoji:"👍",name:"+1",shortcodes:["+1","thumbsup","yes"],tags:["+1","hand","thumb","up"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f44d.png"},{emoji:"👎",name:"-1",shortcodes:["-1","no","thumbsdown"],tags:["-1","down","hand","thumb"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f44e.png"},{emoji:"✊",name:"fist",shortcodes:["fist"],tags:["clenched","fist","hand","punch"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/270a.png"},{emoji:"👊",name:"facepunch",shortcodes:["punch"],tags:["clenched","fist","hand","punch"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f44a.png"},{emoji:"🤛",name:"fist_left",shortcodes:["left_facing_fist"],tags:["fist","leftwards"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f91b.png"},{emoji:"🤜",name:"fist_right",shortcodes:["right_facing_fist"],tags:["fist","rightwards"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f91c.png"},{emoji:"👏",name:"clap",shortcodes:["clap","clapping_hands"],tags:["clap","hand"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f44f.png"},{emoji:"🙌",name:"raised_hands",shortcodes:["raised_hands"],tags:["celebration","gesture","hand","hooray","raised"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64c.png"},{emoji:"🫶",name:"heart_hands",shortcodes:["heart_hands"],tags:["love"],group:"people & body",emoticons:[],version:14},{emoji:"👐",name:"open_hands",shortcodes:["open_hands"],tags:["hand","open"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f450.png"},{emoji:"🤲",name:"palms_up_together",shortcodes:["palms_up_together"],tags:["prayer"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f932.png"},{emoji:"🤝",name:"handshake",shortcodes:["handshake"],tags:["agreement","hand","meeting","shake"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f91d.png"},{emoji:"🙏",name:"pray",shortcodes:["folded_hands","pray"],tags:["ask","hand","high 5","high five","please","pray","thanks"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64f.png"},{emoji:"✍",name:"writing_hand",shortcodes:["writing_hand"],tags:["hand","write"],group:"people & body",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/270d-fe0f.png"},{emoji:"💅",name:"nail_care",shortcodes:["nail_care","nail_polish"],tags:["care","cosmetics","manicure","nail","polish"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f485.png"},{emoji:"🤳",name:"selfie",shortcodes:["selfie"],tags:["camera","phone"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f933.png"},{emoji:"💪",name:"muscle",shortcodes:["muscle","right_bicep"],tags:["biceps","comic","flex","muscle"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4aa.png"},{emoji:"🦾",name:"mechanical_arm",shortcodes:["mechanical_arm"],tags:["accessibility","prosthetic"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9be.png"},{emoji:"🦿",name:"mechanical_leg",shortcodes:["mechanical_leg"],tags:["accessibility","prosthetic"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9bf.png"},{emoji:"🦵",name:"leg",shortcodes:["leg"],tags:["kick","limb"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9b5.png"},{emoji:"🦶",name:"foot",shortcodes:["foot"],tags:["kick","stomp"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9b6.png"},{emoji:"👂",name:"ear",shortcodes:["ear"],tags:["body"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f442.png"},{emoji:"🦻",name:"ear_with_hearing_aid",shortcodes:["ear_with_hearing_aid","hearing_aid"],tags:["accessibility","hard of hearing"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9bb.png"},{emoji:"👃",name:"nose",shortcodes:["nose"],tags:["body"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f443.png"},{emoji:"🧠",name:"brain",shortcodes:["brain"],tags:["intelligent"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9e0.png"},{emoji:"🫀",name:"anatomical_heart",shortcodes:["anatomical_heart"],tags:["anatomical","cardiology","heart","organ","pulse"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fac0.png"},{emoji:"🫁",name:"lungs",shortcodes:["lungs"],tags:["breath","exhalation","inhalation","organ","respiration"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fac1.png"},{emoji:"🦷",name:"tooth",shortcodes:["tooth"],tags:["dentist"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9b7.png"},{emoji:"🦴",name:"bone",shortcodes:["bone"],tags:["skeleton"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9b4.png"},{emoji:"👀",name:"eyes",shortcodes:["eyes"],tags:["eye","face"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f440.png"},{emoji:"👁",name:"eye",shortcodes:["eye"],tags:["body"],group:"people & body",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f441-fe0f.png"},{emoji:"👅",name:"tongue",shortcodes:["tongue"],tags:["body"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f445.png"},{emoji:"👄",name:"lips",shortcodes:["lips","mouth"],tags:["lips"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f444.png"},{emoji:"🫦",name:"biting_lip",shortcodes:["biting_lip"],tags:["anxious","fear","flirting","nervous","uncomfortable","worried"],group:"people & body",emoticons:[],version:14},{emoji:"👶",name:"baby",shortcodes:["baby"],tags:["young"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f476.png"},{emoji:"🧒",name:"child",shortcodes:["child"],tags:["gender-neutral","unspecified gender","young"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d2.png"}
299,{emoji:"👦",name:"boy",shortcodes:["boy"],tags:["young"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f466.png"},{emoji:"👧",name:"girl",shortcodes:["girl"],tags:["virgo","young","zodiac"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f467.png"},{emoji:"🧑",name:"adult",shortcodes:["adult"],tags:["adult","gender-neutral","unspecified gender"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1.png"},{emoji:"👱",name:"blond_haired_person",shortcodes:["blond_haired"],tags:["blond","blond-haired person","hair"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f471.png"},{emoji:"👨",name:"man",shortcodes:["man"],tags:["adult"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468.png"},{emoji:"🧔",name:"bearded_person",shortcodes:["person_bearded"],tags:["beard","person"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d4.png"},{emoji:"🧔‍♂",name:"man_beard",shortcodes:["man_bearded"],tags:["beard","man"],group:"people & body",emoticons:[],version:13.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d4-200d-2642-fe0f.png"},{emoji:"🧔‍♀",name:"woman_beard",shortcodes:["woman_bearded"],tags:["beard","woman"],group:"people & body",emoticons:[],version:13.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d4-200d-2640-fe0f.png"},{emoji:"👨‍🦰",name:"red_haired_man",shortcodes:["man_red_haired"],tags:["adult","man","red hair"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f9b0.png"},{emoji:"👨‍🦱",name:"curly_haired_man",shortcodes:["man_curly_haired"],tags:["adult","curly hair","man"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f9b1.png"},{emoji:"👨‍🦳",name:"white_haired_man",shortcodes:["man_white_haired"],tags:["adult","man","white hair"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f9b3.png"},{emoji:"👨‍🦲",name:"bald_man",shortcodes:["man_bald"],tags:["adult","bald","man"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f9b2.png"},{emoji:"👩",name:"woman",shortcodes:["woman"],tags:["adult"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469.png"},{emoji:"👩‍🦰",name:"red_haired_woman",shortcodes:["woman_red_haired"],tags:["adult","red hair","woman"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f9b0.png"},{emoji:"🧑‍🦰",name:"person_red_hair",shortcodes:["red_haired"],tags:["adult","gender-neutral","person","red hair","unspecified gender"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f9b0.png"},{emoji:"👩‍🦱",name:"curly_haired_woman",shortcodes:["woman_curly_haired"],tags:["adult","curly hair","woman"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f9b1.png"},{emoji:"🧑‍🦱",name:"person_curly_hair",shortcodes:["curly_haired"],tags:["adult","curly hair","gender-neutral","person","unspecified gender"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f9b1.png"},{emoji:"👩‍🦳",name:"white_haired_woman",shortcodes:["woman_white_haired"],tags:["adult","white hair","woman"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f9b3.png"},{emoji:"🧑‍🦳",name:"person_white_hair",shortcodes:["white_haired"],tags:["adult","gender-neutral","person","unspecified gender","white hair"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f9b3.png"}
299,{emoji:"👩‍🦲",name:"bald_woman",shortcodes:["woman_bald"],tags:["adult","bald","woman"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f9b2.png"},{emoji:"🧑‍🦲",name:"person_bald",shortcodes:["bald"],tags:["adult","bald","gender-neutral","person","unspecified gender"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f9b2.png"},{emoji:"👱‍♀",name:"blond_haired_woman",shortcodes:["woman_blond_haired"],tags:["blond-haired woman","blonde","hair","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f471-200d-2640-fe0f.png"},{emoji:"👱‍♂",name:"blond_haired_man",shortcodes:["man_blond_haired"],tags:["blond","blond-haired man","hair","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f471-200d-2642-fe0f.png"},{emoji:"🧓",name:"older_adult",shortcodes:["older_adult"],tags:["adult","gender-neutral","old","unspecified gender"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d3.png"},{emoji:"👴",name:"older_man",shortcodes:["older_man"],tags:["adult","man","old"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f474.png"},{emoji:"👵",name:"older_woman",shortcodes:["older_woman"],tags:["adult","old","woman"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f475.png"},{emoji:"🙍",name:"frowning_person",shortcodes:["person_frowning"],tags:["frown","gesture"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64d.png"},{emoji:"🙍‍♂",name:"frowning_man",shortcodes:["man_frowning"],tags:["frowning","gesture","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64d-200d-2642-fe0f.png"},{emoji:"🙍‍♀",name:"frowning_woman",shortcodes:["woman_frowning"],tags:["frowning","gesture","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64d-200d-2640-fe0f.png"},{emoji:"🙎",name:"pouting_face",shortcodes:["person_pouting","pouting"],tags:["gesture","pouting"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64e.png"},{emoji:"🙎‍♂",name:"pouting_man",shortcodes:["man_pouting"],tags:["gesture","man","pouting"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64e-200d-2642-fe0f.png"},{emoji:"🙎‍♀",name:"pouting_woman",shortcodes:["woman_pouting"],tags:["gesture","pouting","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64e-200d-2640-fe0f.png"},{emoji:"🙅",name:"no_good",shortcodes:["no_good","person_gesturing_no"],tags:["forbidden","gesture","hand","person gesturing no","prohibited"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f645.png"},{emoji:"🙅‍♂",name:"ng_man",shortcodes:["man_gesturing_no"],tags:["forbidden","gesture","hand","man","man gesturing no","prohibited"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f645-200d-2642-fe0f.png"},{emoji:"🙅‍♀",name:"ng_woman",shortcodes:["woman_gesturing_no"],tags:["forbidden","gesture","hand","prohibited","woman","woman gesturing no"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f645-200d-2640-fe0f.png"},{emoji:"🙆",name:"ok_person",shortcodes:["all_good","person_gesturing_ok"],tags:["gesture","hand","ok","person gesturing ok"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f646.png"},{emoji:"🙆‍♂",name:"ok_man",shortcodes:["man_gesturing_ok"],tags:["gesture","hand","man","man gesturing ok","ok"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f646-200d-2642-fe0f.png"},{emoji:"🙆‍♀",name:"ok_woman",shortcodes:["woman_gesturing_ok"],tags:["gesture","hand","ok","woman","woman gesturing ok"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f646-200d-2640-fe0f.png"},{emoji:"💁",name:"information_desk_person",shortcodes:["person_tipping_hand"],tags:["hand","help","information","sassy","tipping"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f481.png"},{emoji:"💁‍♂",name:"sassy_man",shortcodes:["man_tipping_hand"],tags:["man","sassy","tipping hand"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f481-200d-2642-fe0f.png"},{emoji:"💁‍♀",name:"sassy_woman",shortcodes:["woman_tipping_hand"],tags:["sassy","tipping hand","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f481-200d-2640-fe0f.png"},{emoji:"🙋",name:"raising_hand",shortcodes:["person_raising_hand"],tags:["gesture","hand","happy","raised"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64b.png"},{emoji:"🙋‍♂",name:"raising_hand_man",shortcodes:["man_raising_hand"],tags:["gesture","man","raising hand"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64b-200d-2642-fe0f.png"},{emoji:"🙋‍♀",name:"raising_hand_woman",shortcodes:["woman_raising_hand"],tags:["gesture","raising hand","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f64b-200d-2640-fe0f.png"},{emoji:"🧏",name:"deaf_person",shortcodes:["deaf_person"],tags:["accessibility","deaf","ear","hear"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9cf.png"},{emoji:"🧏‍♂",name:"deaf_man",shortcodes:["deaf_man"],tags:["deaf","man"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9cf-200d-2642-fe0f.png"},{emoji:"🧏‍♀",name:"deaf_woman",shortcodes:["deaf_woman"],tags:["deaf","woman"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9cf-200d-2640-fe0f.png"},{emoji:"🙇",name:"bow",shortcodes:["bow","person_bowing"],tags:["apology","bow","gesture","sorry"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f647.png"},{emoji:"🙇‍♂",name:"bowing_man",shortcodes:["man_bowing"],tags:["apology","bowing","favor","gesture","man","sorry"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f647-200d-2642-fe0f.png"},{emoji:"🙇‍♀",name:"bowing_woman",shortcodes:["woman_bowing"],tags:["apology","bowing","favor","gesture","sorry","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f647-200d-2640-fe0f.png"},{emoji:"🤦",name:"facepalm",shortcodes:["facepalm","person_facepalming"],tags:["disbelief","exasperation","face","palm"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f926.png"},{emoji:"🤦‍♂",name:"man_facepalming",shortcodes:["man_facepalming"],tags:["disbelief","exasperation","facepalm","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f926-200d-2642-fe0f.png"},{emoji:"🤦‍♀",name:"woman_facepalming",shortcodes:["woman_facepalming"],tags:["disbelief","exasperation","facepalm","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f926-200d-2640-fe0f.png"},{emoji:"🤷",name:"shrug",shortcodes:["person_shrugging","shrug"],tags:["doubt","ignorance","indifference","shrug"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f937.png"},{emoji:"🤷‍♂",name:"man_shrugging",shortcodes:["man_shrugging"],tags:["doubt","ignorance","indifference","man","shrug"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f937-200d-2642-fe0f.png"},{emoji:"🤷‍♀",name:"woman_shrugging",shortcodes:["woman_shrugging"],tags:["doubt","ignorance","indifference","shrug","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f937-200d-2640-fe0f.png"},{emoji:"🧑‍⚕",name:"health_worker",shortcodes:["health_worker"],tags:["doctor","healthcare","nurse","therapist"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-2695-fe0f.png"},{emoji:"👨‍⚕",name:"man_health_worker",shortcodes:["man_health_worker"],tags:["doctor","healthcare","man","nurse","therapist"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-2
29900d-2695-fe0f.png"},{emoji:"👩‍⚕",name:"woman_health_worker",shortcodes:["woman_health_worker"],tags:["doctor","healthcare","nurse","therapist","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-2695-fe0f.png"},{emoji:"🧑‍🎓",name:"student",shortcodes:["student"],tags:["graduate"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f393.png"},{emoji:"👨‍🎓",name:"man_student",shortcodes:["man_student"],tags:["graduate","man","student"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f393.png"},{emoji:"👩‍🎓",name:"woman_student",shortcodes:["woman_student"],tags:["graduate","student","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f393.png"},{emoji:"🧑‍🏫",name:"teacher",shortcodes:["teacher"],tags:["instructor","lecturer","professor"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f3eb.png"},{emoji:"👨‍🏫",name:"man_teacher",shortcodes:["man_teacher"],tags:["instructor","lecturer","man","professor","teacher"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f3eb.png"},{emoji:"👩‍🏫",name:"woman_teacher",shortcodes:["woman_teacher"],tags:["instructor","lecturer","professor","teacher","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f3eb.png"},{emoji:"🧑‍⚖",name:"judge",shortcodes:["judge"],tags:["justice","law","scales"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-2696-fe0f.png"},{emoji:"👨‍⚖",name:"man_judge",shortcodes:["man_judge"],tags:["judge","justice","law","man","scales"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-2696-fe0f.png"},{emoji:"👩‍⚖",name:"woman_judge",shortcodes:["woman_judge"],tags:["judge","justice","law","scales","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-2696-fe0f.png"},{emoji:"🧑‍🌾",name:"farmer",shortcodes:["farmer"],tags:["gardener","rancher"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f33e.png"},{emoji:"👨‍🌾",name:"man_farmer",shortcodes:["man_farmer"],tags:["farmer","gardener","man","rancher"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f33e.png"},{emoji:"👩‍🌾",name:"woman_farmer",shortcodes:["woman_farmer"],tags:["farmer","gardener","rancher","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f33e.png"},{emoji:"🧑‍🍳",name:"cook",shortcodes:["cook"],tags:["chef"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f373.png"},{emoji:"👨‍🍳",name:"man_cook",shortcodes:["man_cook"],tags:["chef","cook","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f373.png"},{emoji:"👩‍🍳",name:"woman_cook",shortcodes:["woman_cook"],tags:["chef","cook","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f373.png"},{emoji:"🧑‍🔧",name:"mechanic",shortcodes:["mechanic"],tags:["electrician","plumber","tradesperson"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f527.png"},{emoji:"👨‍🔧",name:"man_mechanic",shortcodes:["man_mechanic"],tags:["electrician","man","mechanic","plumber","tradesperson"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-2
29900d-1f527.png"},{emoji:"👩‍🔧",name:"woman_mechanic",shortcodes:["woman_mechanic"],tags:["electrician","mechanic","plumber","tradesperson","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f527.png"},{emoji:"🧑‍🏭",name:"factory_worker",shortcodes:["factory_worker"],tags:["assembly","factory","industrial","worker"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f3ed.png"},{emoji:"👨‍🏭",name:"man_factory_worker",shortcodes:["man_factory_worker"],tags:["assembly","factory","industrial","man","worker"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f3ed.png"},{emoji:"👩‍🏭",name:"woman_factory_worker",shortcodes:["woman_factory_worker"],tags:["assembly","factory","industrial","woman","worker"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f3ed.png"},{emoji:"🧑‍💼",name:"office_worker",shortcodes:["office_worker"],tags:["architect","business","manager","white-collar"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f4bc.png"},{emoji:"👨‍💼",name:"man_office_worker",shortcodes:["man_office_worker"],tags:["architect","business","man","manager","white-collar"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f4bc.png"},{emoji:"👩‍💼",name:"woman_office_worker",shortcodes:["woman_office_worker"],tags:["architect","business","manager","white-collar","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f4bc.png"},{emoji:"🧑‍🔬",name:"scientist",shortcodes:["scientist"],tags:["biologist","chemist","engineer","physicist"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f52c.png"},{emoji:"👨‍🔬",name:"man_scientist",shortcodes:["man_scientist"],tags:["biologist","chemist","engineer","man","physicist","scientist"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f52c.png"},{emoji:"👩‍🔬",name:"woman_scientist",shortcodes:["woman_scientist"],tags:["biologist","chemist","engineer","physicist","scientist","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f52c.png"},{emoji:"🧑‍💻",name:"technologist",shortcodes:["technologist"],tags:["coder","developer","inventor","software"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f4bb.png"},{emoji:"👨‍💻",name:"man_technologist",shortcodes:["man_technologist"],tags:["coder","developer","inventor","man","software","technologist"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f4bb.png"},{emoji:"👩‍💻",name:"woman_technologist",shortcodes:["woman_technologist"],tags:["coder","developer","inventor","software","technologist","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f4bb.png"},{emoji:"🧑‍🎤",name:"singer",shortcodes:["singer"],tags:["actor","entertainer","rock","star"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f3a4.png"},{emoji:"👨‍🎤",name:"man_singer",shortcodes:["man_singer"],tags:["actor","entertainer","man","rock","singer","star"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-2
29900d-1f3a4.png"},{emoji:"👩‍🎤",name:"woman_singer",shortcodes:["woman_singer"],tags:["actor","entertainer","rock","singer","star","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f3a4.png"},{emoji:"🧑‍🎨",name:"artist",shortcodes:["artist"],tags:["palette"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f3a8.png"},{emoji:"👨‍🎨",name:"man_artist",shortcodes:["man_artist"],tags:["artist","man","palette"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f3a8.png"},{emoji:"👩‍🎨",name:"woman_artist",shortcodes:["woman_artist"],tags:["artist","palette","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f3a8.png"},{emoji:"🧑‍✈",name:"pilot",shortcodes:["pilot"],tags:["plane"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-2708-fe0f.png"},{emoji:"👨‍✈",name:"man_pilot",shortcodes:["man_pilot"],tags:["man","pilot","plane"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-2708-fe0f.png"},{emoji:"👩‍✈",name:"woman_pilot",shortcodes:["woman_pilot"],tags:["pilot","plane","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-2708-fe0f.png"},{emoji:"🧑‍🚀",name:"astronaut",shortcodes:["astronaut"],tags:["rocket"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f680.png"},{emoji:"👨‍🚀",name:"man_astronaut",shortcodes:["man_astronaut"],tags:["astronaut","man","rocket"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f680.png"},{emoji:"👩‍🚀",name:"woman_astronaut",shortcodes:["woman_astronaut"],tags:["astronaut","rocket","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f680.png"},{emoji:"🧑‍🚒",name:"firefighter",shortcodes:["firefighter"],tags:["fire","firetruck"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f692.png"},{emoji:"👨‍🚒",name:"man_firefighter",shortcodes:["man_firefighter"],tags:["firefighter","firetruck","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f692.png"},{emoji:"👩‍🚒",name:"woman_firefighter",shortcodes:["woman_firefighter"],tags:["firefighter","firetruck","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f692.png"},{emoji:"👮",name:"cop",shortcodes:["cop","police_officer"],tags:["cop","officer","police"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f46e.png"},{emoji:"👮‍♂",name:"policeman",shortcodes:["man_police_officer"],tags:["cop","man","officer","police"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f46e-200d-2642-fe0f.png"},{emoji:"👮‍♀",name:"policewoman",shortcodes:["woman_police_officer"],tags:["cop","officer","police","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f46e-200d-2640-fe0f.png"},{emoji:"🕵",name:"detective",shortcodes:["detective"],tags:["sleuth","spy"],group:"people & body",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f575-fe0f.png"},{emoji:"🕵‍♂️",name:"male_detective",shortcodes:["man_detective"],tags:["detective","man","sleuth","spy"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f575-fe0f-200d-2642-fe0f.png"},{emoji:"🕵‍♀️",name:"female_detective",shortcodes:["woman_detective"],tags:["detective","sleuth","spy","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f575-fe0f-200d-2640-fe0f.png"},{emoji:"💂",name:"guard",shortcodes:["guard"],tags:["guard"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f482.png"},{emoji:"💂‍♂",name:"guardsman",shortcodes:["man_guard"],tags:["guard","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f482-200d-2642-fe0f.png"},{emoji:"💂‍♀",name:"guardswoman",shortcodes:["woman_guard"],tags:["guard","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f482-200d-2640-fe0f.png"},{emoji:"🥷",name:"ninja",shortcodes:["ninja"],tags:["fighter","hidden","stealth"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f977.png"},{emoji:"👷",name:"construction_worker",shortcodes:["construction_worker"],tags:["construction","hat","worker"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f477.png"},{emoji:"👷‍♂",name:"construction_worker_man",shortcodes:["man_construction_worker"],tags:["construction","man","worker"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f477-200d-2642-fe0f.png"},{emoji:"👷‍♀",name:"construction_worker_woman",shortcodes:["woman_construction_worker"],tags:["construction","woman","worker"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f477-200d-2640-fe0f.png"},{emoji:"🫅",name:"person_with_crown",shortcodes:["person_with_crown","royalty"],tags:["monarch","noble","regal","royalty"],group:"people & body",emoticons:[],version:14},{emoji:"🤴",name:"prince",shortcodes:["prince"],tags:["prince"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f934.png"}
299,{emoji:"👸",name:"princess",shortcodes:["princess"],tags:["fairy tale","fantasy"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f478.png"},{emoji:"👳",name:"person_with_turban",shortcodes:["person_wearing_turban"],tags:["turban"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f473.png"},{emoji:"👳‍♂",name:"man_with_turban",shortcodes:["man_wearing_turban"],tags:["man","turban"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f473-200d-2642-fe0f.png"},{emoji:"👳‍♀",name:"woman_with_turban",shortcodes:["woman_wearing_turban"],tags:["turban","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f473-200d-2640-fe0f.png"},{emoji:"👲",name:"man_with_gua_pi_mao",shortcodes:["person_with_skullcap"],tags:["cap","gua pi mao","hat","person","skullcap"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f472.png"},{emoji:"🧕",name:"woman_with_headscarf",shortcodes:["woman_with_headscarf"],tags:["headscarf","hijab","mantilla","tichel"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d5.png"},{emoji:"🤵",name:"person_in_tuxedo",shortcodes:["person_in_tuxedo"],tags:["groom","person","tuxedo"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f935.png"},{emoji:"🤵‍♂",name:"man_in_tuxedo",shortcodes:["man_in_tuxedo"],tags:["man","tuxedo"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f935-200d-2642-fe0f.png"},{emoji:"🤵‍♀",name:"woman_in_tuxedo",shortcodes:["woman_in_tuxedo"],tags:["tuxedo","woman"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f935-200d-2640-fe0f.png"},{emoji:"👰",name:"person_with_veil",shortcodes:["person_with_veil"],tags:["bride","person","veil","wedding"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f470.png"},{emoji:"👰‍♂",name:"man_with_veil",shortcodes:["man_with_veil"],tags:["man","veil"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f470-200d-2642-fe0f.png"},{emoji:"👰‍♀",name:"bride_with_veil",shortcodes:["woman_with_veil"],tags:["veil","woman"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f470-200d-2640-fe0f.png"},{emoji:"🤰",name:"pregnant_woman",shortcodes:["pregnant_woman"],tags:["pregnant","woman"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f930.png"},{emoji:"🫃",name:"pregnant_man",shortcodes:["pregnant_man"],tags:["belly","bloated","full","pregnant"],group:"people & body",emoticons:[],version:14},{emoji:"🫄",name:"pregnant_person",shortcodes:["pregnant_person"],tags:["belly","bloated","full","pregnant"],group:"people & body",emoticons:[],version:14},{emoji:"🤱",name:"breast_feeding",shortcodes:["breast_feeding"],tags:["baby","breast","nursing"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f931.png"},{emoji:"👩‍🍼",name:"woman_feeding_baby",shortcodes:["woman_feeding_baby"],tags:["baby","feeding","nursing","woman"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f37c.png"},{emoji:"👨‍🍼",name:"man_feeding_baby",shortcodes:["man_feeding_baby"],tags:["baby","feeding","man","nursing"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-2
29900d-1f37c.png"},{emoji:"🧑‍🍼",name:"person_feeding_baby",shortcodes:["person_feeding_baby"],tags:["baby","feeding","nursing","person"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f37c.png"},{emoji:"👼",name:"angel",shortcodes:["angel"],tags:["angel","baby","face","fairy tale","fantasy"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f47c.png"},{emoji:"🎅",name:"santa",shortcodes:["santa"],tags:["celebration","christmas","claus","father","santa"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f385.png"},{emoji:"🤶",name:"mrs_claus",shortcodes:["mrs_claus"],tags:["celebration","christmas","claus","mother","mrs."],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f936.png"},{emoji:"🧑‍🎄",name:"mx_claus",shortcodes:["mx_claus"],tags:["christmas","claus"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f384.png"},{emoji:"🦸",name:"superhero",shortcodes:["superhero"],tags:["good","hero","heroine","superpower"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9b8.png"},{emoji:"🦸‍♂",name:"superhero_man",shortcodes:["man_superhero"],tags:["good","hero","man","superpower"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9b8-200d-2642-fe0f.png"},{emoji:"🦸‍♀",name:"superhero_woman",shortcodes:["woman_superhero"],tags:["good","hero","heroine","superpower","woman"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9b8-200d-2640-fe0f.png"},{emoji:"🦹",name:"supervillain",shortcodes:["supervillain"],tags:["criminal","evil","superpower","villain"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9b9.png"},{emoji:"🦹‍♂",name:"supervillain_man",shortcodes:["man_supervillain"],tags:["criminal","evil","man","superpower","villain"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9b9-200d-2642-fe0f.png"},{emoji:"🦹‍♀",name:"supervillain_woman",shortcodes:["woman_supervillain"],tags:["criminal","evil","superpower","villain","woman"],group:"people & body",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9b9-200d-2640-fe0f.png"},{emoji:"🧙",name:"mage",shortcodes:["mage"],tags:["sorcerer","sorceress","witch","wizard"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d9.png"},{emoji:"🧙‍♂",name:"mage_man",shortcodes:["man_mage"],tags:["sorcerer","wizard"],group:"people & body",emoticons:[":{>"],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d9-200d-2642-fe0f.png"},{emoji:"🧙‍♀",name:"mage_woman",shortcodes:["woman_mage"],tags:["sorceress","witch"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d9-200d-2640-fe0f.png"},{emoji:"🧚",name:"fairy",shortcodes:["fairy"],tags:["oberon","puck","titania"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9da.png"},{emoji:"🧚‍♂",name:"fairy_man",shortcodes:["man_fairy"],tags:["oberon","puck"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9da-200d-2642-fe0f.png"},{emoji:"🧚‍♀",name:"fairy_woman",shortcodes:["woman_fairy"],tags:["titania"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9da-200d-2640-fe0f.png"},{emoji:"🧛",name:"vampire",shortcodes:["vampire"],tags:["dracula","undead"],group:"people & body",emoticons:[":E"],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9db.png"},{emoji:"🧛‍♂",name:"vampire_man",shortcodes:["man_vampire"],tags:["dracula","undead"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9db-200d-2642-fe0f.png"},{emoji:"🧛‍♀",name:"vampire_woman",shortcodes:["woman_vampire"],tags:["undead"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9db-200d-2640-fe0f.png"},{emoji:"🧜",name:"merperson",shortcodes:["merperson"],tags:["mermaid","merman","merwoman"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9dc.png"},{emoji:"🧜‍♂",name:"merman",shortcodes:["merman"],tags:["triton"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9dc-200d-2642-fe0f.png"},{emoji:"🧜‍♀",name:"mermaid",shortcodes:["mermaid"],tags:["merwoman"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9dc-200d-2640-fe0f.png"},{emoji:"🧝",name:"elf",shortcodes:["elf"],tags:["magical"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9dd.png"},{emoji:"🧝‍♂",name:"elf_man",shortcodes:["man_elf"],tags:["magical"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9dd-200d-2642-fe0f.png"},{emoji:"🧝‍♀",name:"elf_woman",shortcodes:["woman_elf"],tags:["magical"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9dd-200d-2640-fe0f.png"},{emoji:"🧞",name:"genie",shortcodes:["genie"],tags:["djinn"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9de.png"},{emoji:"🧞‍♂",name:"genie_man",shortcodes:["man_genie"],tags:["djinn"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9de-200d-2642-fe0f.png"},{emoji:"🧞‍♀",name:"genie_woman",shortcodes:["woman_genie"],tags:["djinn"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9de-200d-2640-fe0f.png"},{emoji:"🧟",name:"zombie",shortcodes:["zombie"],tags:["undead","walking dead"],group:"people & body",emoticons:["8#"],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9df.png"},{emoji:"🧟‍♂",name:"zombie_man",shortcodes:["man_zombie"],tags:["undead","walking dead"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9df-200d-2642-fe0f.png"},{emoji:"🧟‍♀",name:"zombie_woman",shortcodes:["woman_zombie"],tags:["undead","walking dead"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9df-200d-2640-fe0f.png"},{emoji:"🧌",name:"troll",shortcodes:["troll"],tags:["fairy tale","fantasy","monster"],group:"people & body",emoticons:[],version:14},{emoji:"💆",name:"massage",shortcodes:["massage","person_getting_massage"],tags:["face","massage","salon"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f486.png"},{emoji:"💆‍♂",name:"massage_man",shortcodes:["man_getting_massage"],tags:["face","man","massage"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f486-200d-2642-fe0f.png"},{emoji:"💆‍♀",name:"massage_woman",shortcodes:["woman_getting_massage"],tags:["face","massage","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f486-200d-2640-fe0f.png"},{emoji:"💇",name:"haircut",shortcodes:["haircut","person_getting_haircut"],tags:["barber","beauty","haircut","parlor"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f487.png"},{emoji:"💇‍♂",name:"haircut_man",shortcodes:["man_getting_haircut"],tags:["haircut","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f487-200d-2642-fe0f.png"},{emoji:"💇‍♀",name:"haircut_woman",shortcodes:["woman_getting_haircut"],tags:["haircut","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f487-200d-2640-fe0f.png"},{emoji:"🚶",name:"walking",shortcodes:["person_walking","walking"],tags:["hike","walk","walking"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b6.png"},{emoji:"🚶‍♂",name:"walking_man",shortcodes:["man_walking"],tags:["hike","man","walk"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b6-200d-2642-fe0f.png"},{emoji:"🚶‍♀",name:"walking_woman",shortcodes:["woman_walking"],tags:["hike","walk","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b6-200d-2640-fe0f.png"},{emoji:"🚶‍➡",name:"person_walking_right",shortcodes:["person_walking_right"],tags:["hike","person walking","walk","walking"],group:"people & body",emoticons:[],version:15.1},{emoji:"🚶‍♀‍➡️",name:"woman_walking_right",shortcodes:["woman_walking_right"],tags:["hike","walk","woman","woman walking"],group:"people & body",emoticons:[],version:15.1},{emoji:"🚶‍♂‍➡️",name:"man_walking_right",shortcodes:["man_walking_right"],tags:["hike","man","man walking","walk"],group:"people & body",emoticons:[],version:15.1},{emoji:"🧍",name:"standing_person",shortcodes:["person_standing","standing"],tags:["stand","standing"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9cd.png"},{emoji:"🧍‍♂",name:"standing_man",shortcodes:["man_standing"],tags:["man","standing"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9cd-200d-2642-fe0f.png"},{emoji:"🧍‍♀",name:"standing_woman",shortcodes:["woman_standing"],tags:["standing","woman"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9cd-200d-2640-fe0f.png"},{emoji:"🧎",name:"kneeling_person",shortcodes:["kneeling","person_kneeling"],tags:["kneel","kneeling"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ce.png"},{emoji:"🧎‍♂",name:"kneeling_man",shortcodes:["man_kneeling"],tags:["kneeling","man"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ce-200d-2642-fe0f.png"},{emoji:"🧎‍♀",name:"kneeling_woman",shortcodes:["woman_kneeling"],tags:["kneeling","woman"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ce-200d-2640-fe0f.png"},{emoji:"🧎‍➡",name:"person_kneeling_right",shortcodes:["person_kneeling_right"],tags:["kneel","kneeling","person kneeling"],group:"people & body",emoticons:[],version:15.1},{emoji:"🧎‍♀‍➡️",name:"woman_kneeling_right",shortcodes:["woman_kneeling_right"],tags:["kneeling","woman"],group:"people & body",emoticons:[],version:15.1},{emoji:"🧎‍♂‍➡️",name:"man_kneeling_right",shortcodes:["man_kneeling_right"],tags:["kneeling","man"],group:"people & body",emoticons:[],version:15.1},{emoji:"🧑‍🦯",name:"person_with_probing_cane",shortcodes:["person_with_probing_cane","person_with_white_c
299ane"],tags:["accessibility","blind"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f9af.png"},{emoji:"🧑‍🦯‍➡",name:"person_with_white_cane_right",shortcodes:["person_with_white_cane_right"],tags:["accessibility","blind","person with white cane"],group:"people & body",emoticons:[],version:15.1},{emoji:"👨‍🦯",name:"man_with_probing_cane",shortcodes:["man_with_probing_cane","man_with_white_cane"],tags:["accessibility","blind","man"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f9af.png"},{emoji:"👨‍🦯‍➡",name:"man_with_white_cane_right",shortcodes:["man_with_white_cane_right"],tags:["accessibility","blind","man","man with white cane"],group:"people & body",emoticons:[],version:15.1},{emoji:"👩‍🦯",name:"woman_with_probing_cane",shortcodes:["woman_with_probing_cane","woman_with_white_cane"],tags:["accessibility","blind","woman"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f9af.png"},{emoji:"👩‍🦯‍➡",name:"woman_with_white_cane_right",shortcodes:["woman_with_white_cane_right"],tags:["accessibility","blind","woman","woman with white cane"],group:"people & body",emoticons:[],version:15.1},{emoji:"🧑‍🦼",name:"person_in_motorized_wheelchair",shortcodes:["person_in_motorized_wheelchair"],tags:["accessibility","wheelchair"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f9bc.png"},{emoji:"🧑‍🦼‍➡",name:"person_in_motorized_wheelchair_right",shortcodes:["person_in_motorized_wheelchair_right"],tags:["accessibility","person in motorized wheelchair","wheelchair"],group:"people & body",emoticons:[],version:15.1},{emoji:"👨‍🦼",name:"man_in_motorized_wheelchair",shortcodes:["man_in_motorized_wheelchair"],tags:["accessibility","man","wheelchair"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f9bc.png"},{emoji:"👨‍🦼‍➡",name:"man_in_motorized_wheelchair_right",shortcodes:["man_in_motorized_wheelchair_right"],tags:["accessibility","man","man in motorized wheelchair","wheelchair"],group:"people & body",emoticons:[],version:15.1},{emoji:"👩‍🦼",name:"woman_in_motorized_wheelchair",shortcodes:["woman_in_motorized_wheelchair"],tags:["accessibility","wheelchair","woman"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f9bc.png"},{emoji:"👩‍🦼‍➡",name:"woman_in_motorized_wheelchair_right",shortcodes:["woman_in_motorized_wheelchair_right"],tags:["accessibility","wheelchair","woman","woman in motorized wheelchair"],group:"people & body",emoticons:[],version:15.1},{emoji:"🧑‍🦽",name:"person_in_manual_wheelchair",shortcodes:["person_in_manual_wheelchair"],tags:["accessibility","wheelchair"],group:"people & body",emoticons:[],version:12.1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f9bd.png"},{emoji:"🧑‍🦽‍➡",name:"person_in_manual_wheelchair_right",shortcodes:["person_in_manual_wheelchair_right"],tags:["accessibility","person in manual wheelchair","wheelchair"],group:"people & body",emoticons:[],version:15.1},{emoji:"👨‍🦽",name:"man_in_manual_wheelchair",shortcodes:["man_in_manual_wheelchair"],tags:["accessibility","man","wheelchair"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f9bd.png"},{emoji:"👨‍🦽‍➡",name:"man_in_manual_wheelchair_right",shortcodes:["man_in_manual_wheelchair_right"],tags:["accessibility","man","man in manual wheelchair","wheelchair"],group:"people & body",emoticons:[],version:15.1},{emoji:"👩‍🦽",name:"woman_in_manual_wheelchair",shortcodes:["woman_in_manual_wheelchair"],tags:["accessibility","wheelchair","woman"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f9bd.png"},{emoji:"👩‍🦽‍➡",name:"woman_in_manual_wheelchair_right",shortcodes:["woman_in_manual_wheelchair_right"],tags:["accessibility","wheelchair","woman","woman in manual wheelchair"],group:"people & body",emoticons:[],version:15.1},{emoji:"🏃",name:"runner",shortcodes:["person_running","running"],tags:["marathon","running"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c3.png"},{emoji:"🏃‍♂",name:"running_man",shortcodes:["man_running"],tags:["man","marathon","racing","running"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c3-2
29900d-2642-fe0f.png"},{emoji:"🏃‍♀",name:"running_woman",shortcodes:["woman_running"],tags:["marathon","racing","running","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c3-200d-2640-fe0f.png"},{emoji:"🏃‍➡",name:"person_running_right",shortcodes:["person_running_right"],tags:["marathon","person running","running"],group:"people & body",emoticons:[],version:15.1},{emoji:"🏃‍♀‍➡️",name:"woman_running_right",shortcodes:["woman_running_right"],tags:["marathon","racing","running","woman"],group:"people & body",emoticons:[],version:15.1},{emoji:"🏃‍♂‍➡️",name:"man_running_right",shortcodes:["man_running_right"],tags:["man","marathon","racing","running"],group:"people & body",emoticons:[],version:15.1},{emoji:"💃",name:"dancer",shortcodes:["dancer","woman_dancing"],tags:["dance","dancing","woman"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f483.png"},{emoji:"🕺",name:"man_dancing",shortcodes:["man_dancing"],tags:["dance","dancing","man"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f57a.png"},{emoji:"🕴",name:"business_suit_levitating",shortcodes:["levitate","levitating","person_in_suit_levitating"],tags:["business","person","suit"],group:"people & body",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f574-fe0f.png"},{emoji:"👯",name:"dancers",shortcodes:["dancers","people_with_bunny_ears_partying"],tags:["bunny ear","dancer","partying"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f46f.png"},{emoji:"👯‍♂",name:"dancing_men",shortcodes:["men_with_bunny_ears_partying"],tags:["bunny ear","dancer","men","partying"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f46f-200d-2642-fe0f.png"},{emoji:"👯‍♀",name:"dancing_women",shortcodes:["women_with_bunny_ears_partying"],tags:["bunny ear","dancer","partying","women"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f46f-200d-2640-fe0f.png"},{emoji:"🧖",name:"sauna_person",shortcodes:["person_in_steamy_room"],tags:["sauna","steam room"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d6.png"},{emoji:"🧖‍♂",name:"sauna_man",shortcodes:["man_in_steamy_room"],tags:["sauna","steam room"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d6-200d-2642-fe0f.png"},{emoji:"🧖‍♀",name:"sauna_woman",shortcodes:["woman_in_steamy_room"],tags:["sauna","steam room"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d6-200d-2640-fe0f.png"},{emoji:"🧗",name:"climbing",shortcodes:["climbing","person_climbing"],tags:["climber"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d7.png"},{emoji:"🧗‍♂",name:"climbing_man",shortcodes:["man_climbing"],tags:["climber"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d7-200d-2642-fe0f.png"},{emoji:"🧗‍♀",name:"climbing_woman",shortcodes:["woman_climbing"],tags:["climber"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d7-200d-2640-fe0f.png"},{emoji:"🤺",name:"person_fencing",shortcodes:["fencer","fencing","person_fencing"],tags:["fencer","fencing","sword"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93a.png"},{emoji:"🏇",name:"horse_racing",shortcodes:["horse_racing"],tags:["horse","jockey","racehorse","racing"],group:"people & body",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c7.png"},{emoji:"⛷",name:"skier",shortcodes:["person_skiing","skier","skiing"],tags:["ski","snow"],group:"people & body",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f7-fe0f.png"},{emoji:"🏂",name:"snowboarder",shortcodes:["person_snowboarding","snowboarder","snowboarding"],tags:["ski","snow","snowboard"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c2.png"},{emoji:"🏌",name:"golfing",shortcodes:["golfer","golfing","person_golfing"],tags:["ball","golf"],group:"people & body",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3cc-fe0f.png"},{emoji:"🏌‍♂️",name:"golfing_man",shortcodes:["man_golfing"],tags:["golf","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3cc-fe0f-200d-2642-fe0f.png"},{emoji:"🏌‍♀️",name:"golfing_woman",shortcodes:["woman_golfing"],tags:["golf","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3cc-fe0f-200d-2640-fe0f.png"},{emoji:"🏄",name:"surfer",shortcodes:["person_surfing","surfer","surfing"],tags:["surf
299ing"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c4.png"},{emoji:"🏄‍♂",name:"surfing_man",shortcodes:["man_surfing"],tags:["man","surfing"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c4-200d-2642-fe0f.png"},{emoji:"🏄‍♀",name:"surfing_woman",shortcodes:["woman_surfing"],tags:["surfing","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c4-200d-2640-fe0f.png"},{emoji:"🚣",name:"rowboat",shortcodes:["person_rowing_boat","rowboat"],tags:["boat","rowboat"],group:"people & body",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a3.png"},{emoji:"🚣‍♂",name:"rowing_man",shortcodes:["man_rowing_boat"],tags:["boat","man","rowboat"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a3-200d-2642-fe0f.png"},{emoji:"🚣‍♀",name:"rowing_woman",shortcodes:["woman_rowing_boat"],tags:["boat","rowboat","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a3-200d-2640-fe0f.png"},{emoji:"🏊",name:"swimmer",shortcodes:["person_swimming","swimmer","swimming"],tags:["swim"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ca.png"},{emoji:"🏊‍♂",name:"swimming_man",shortcodes:["man_swimming"],tags:["man","swim"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ca-200d-2642-fe0f.png"},{emoji:"🏊‍♀",name:"swimming_woman",shortcodes:["woman_swimming"],tags:["swim","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ca-200d-2640-fe0f.png"},{emoji:"⛹",name:"bouncing_ball_person",shortcodes:["person_bouncing_ball"],tags:["ball"],group:"people & body",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f9-fe0f.png"},{emoji:"⛹‍♂️",name:"basketball_man",shortcodes:["man_bouncing_ball"],tags:["ball","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f9-fe0f-200d-2642-fe0f.png"},{emoji:"⛹‍♀️",name:"basketball_woman",shortcodes:["woman_bouncing_ball"],tags:["ball","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f9-fe0f-200d-2640-fe0f.png"},{emoji:"🏋",name:"weight_lifting",shortcodes:["person_lifting_weights","weight_lifter","weight_lifting"],tags:["lifter","weight"],group:"people & body",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3cb-fe0f.png"},{emoji:"🏋‍♂️",name:"weight_lifting_man",shortcodes:["man_lifting_weights"],tags:["man","weight lifter"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3cb-fe0f-200d-2642-fe0f.png"},{emoji:"🏋‍♀️",name:"weight_lifting_woman",shortcodes:["woman_lifting_weights"],tags:["weight lifter","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3cb-fe0f-200d-2640-fe0f.png"},{emoji:"🚴",name:"bicyclist",shortcodes:["bicyclist","biking","person_biking"],tags:["bicycle","biking","cyclist"],group:"people & body",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b4.png"},{emoji:"🚴‍♂",name:"biking_man",shortcodes:["man_biking"],tags:["bicycle","biking","cyclist","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b4-200d-2642-fe0f.png"},{emoji:"🚴‍♀",name:"biking_woman",shortcodes:["woman_biking"],tags:["bicycle","biking","cyclist","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b4-200d-2640-fe0f.png"},{emoji:"🚵",name:"mountain_bicyclist",shortcodes:["mountain_bicyclist","mountain_biking","person_mountain_biking"],tags:["bicycle","bicyclist","bike","cyclist","mountain"],group:"people & body",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b5.png"},{emoji:"🚵‍♂",name:"mountain_biking_man",shortcodes:["man_mountain_biking"],tags:["bicycle","bike","cyclist","man","mountain"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b5-200d-2642-fe0f.png"},{emoji:"🚵‍♀",name:"mountain_biking_woman",shortcodes:["woman_mountain_biking"],tags:["bicycle","bike","biking","cyclist","mountain","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b5-200d-2640-fe0f.png"},{emoji:"🤸",name:"cartwheeling",shortcodes:["cartwheeling","person_cartwheel"],tags:["cartwheel","gymnastics"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f938.png"},{emoji:"🤸‍♂",name:"man_cartwheeling",shortcodes:["man_cartwheeling"],tags:["cartwheel","gymnastics","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f938-200d-2642-fe0f.png"},{emoji:"🤸‍♀",name:"woman_cartwheeling",shortcodes:["woman_cartwheeling"],tags:["cartwheel","gymnastics","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f938-200d-2640-fe0f.png"},{emoji:"🤼",name:"wrestling",shortcodes:["people_wrestling","wrestlers","wrestling"],tags:["wrestle","wrestler"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93c.png"},{emoji:"🤼‍♂",name:"men_wrestling",shortcodes:["men_wrestling"],tags:["men","wrestle"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93c-200d-2642-fe0f.png"},{emoji:"🤼‍♀",name:"women_wrestling",shortcodes:["women_wrestling"],tags:["women","wrestle"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93c-200d-2640-fe0f.png"},{emoji:"🤽",name:"water_polo",shortcodes:["person_playing_water_polo","water_polo"],tags:["polo","water"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93d.png"},{emoji:"🤽‍♂",name:"man_playing_water_polo",shortcodes:["man_playing_water_polo"],tags:["man","water polo"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93d-200d-2642-fe0f.png"},{emoji:"🤽‍♀",name:"woman_playing_water_polo",shortcodes:["woman_playing_water_polo"],tags:["water polo","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93d-200d-2640-fe0f.png"},{emoji:"🤾",name:"handball_person",shortcodes:["handball","person_playing_handball"],tags:["ball","handball"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93e.png"},{emoji:"🤾‍♂",name:"man_playing_handball",shortcodes:["man_playing_handball"],tags:["handball","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93e-200d-2642-fe0f.png"},{emoji:"🤾‍♀",name:"woman_playing_handball",shortcodes:["woman_playing_handball"],tags:["handball","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93e-200d-2640-fe0f.png"},{emoji:"🤹",name:"juggling_person",shortcodes:["juggler","juggling","person_juggling"],tags:["balance","juggle","multitask","skill"],group:"people & body",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f939.png"},{emoji:"🤹‍♂",name:"man_juggling",shortcodes:["man_juggling"],tags:["juggling","man","multitask"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f939-200d-2642-fe0f.png"}
299,{emoji:"🤹‍♀",name:"woman_juggling",shortcodes:["woman_juggling"],tags:["juggling","multitask","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f939-200d-2640-fe0f.png"},{emoji:"🧘",name:"lotus_position",shortcodes:["person_in_lotus_position"],tags:["meditation","yoga"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d8.png"},{emoji:"🧘‍♂",name:"lotus_position_man",shortcodes:["man_in_lotus_position"],tags:["meditation","yoga"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d8-200d-2642-fe0f.png"},{emoji:"🧘‍♀",name:"lotus_position_woman",shortcodes:["woman_in_lotus_position"],tags:["meditation","yoga"],group:"people & body",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d8-200d-2640-fe0f.png"},{emoji:"🛀",name:"bath",shortcodes:["bath","person_taking_bath"],tags:["bath","bathtub"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6c0.png"},{emoji:"🛌",name:"sleeping_bed",shortcodes:["person_in_bed","sleeping_accommodation"],tags:["good night","hotel","sleep"],group:"people & body",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6cc.png"},{emoji:"🧑‍🤝‍🧑",name:"people_holding_hands",shortcodes:["people_holding_hands"],tags:["couple","hand","hold","holding hands","person"],group:"people & body",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9d1-200d-1f91d-200d-1f9d1.png"},{emoji:"👭",name:"two_women_holding_hands",shortcodes:["two_women_holding_hands"],tags:["couple","hand","holding hands","women"],group:"people & body",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f46d.png"},{emoji:"👫",name:"couple",shortcodes:["couple"],tags:["couple","hand","hold","holding hands","man","woman"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f46b.png"},{emoji:"👬",name:"two_men_holding_hands",shortcodes:["two_men_holding_hands"],tags:["couple","gemini","holding hands","man","men","twins","zodiac"],group:"people & body",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f46c.png"},{emoji:"💏",name:"couplekiss",shortcodes:["couple_kiss","couplekiss"],tags:["couple"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f48f.png"},{emoji:"👩‍❤‍💋‍👨",name:"couplekiss_man_woman",shortcodes:["kiss_mw","kiss_wm"],tags:["couple","kiss","man","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-2764-fe0f-200d-1f48b-200d-1f468.png"},{emoji:"👨‍❤‍💋‍👨",name:"couplekiss_man_man",shortcodes:["kiss_mm"],tags:["couple","kiss","man"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-2764-fe0f-200d-1f48b-200d-1f468.png"},{emoji:"👩‍❤‍💋‍👩",name:"couplekiss_woman_woman",shortcodes:["kiss_ww"],tags:["couple","kiss","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-2764-fe0f-200d-1f48b-200d-1f469.png"},{emoji:"💑",name:"couple_with_heart",shortcodes:["couple_with_heart"],tags:["couple","love"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f491.png"},{emoji:"👩‍❤‍👨",name:"couple_with_heart_woman_man",shortcodes:["couple_with_heart_mw","couple_with_heart_wm"],tags:["couple","couple with heart","love","man","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-2764-fe0f-200d-1f468.png"},{emoji:"👨‍❤‍👨",name:"couple_with_heart_man_man",shortcodes:["couple_with_heart_mm"],tags:["couple","couple with heart","love","man"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-2
29900d-2764-fe0f-200d-1f468.png"},{emoji:"👩‍❤‍👩",name:"couple_with_heart_woman_woman",shortcodes:["couple_with_heart_ww"],tags:["couple","couple with heart","love","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-2764-fe0f-200d-1f469.png"},{emoji:"👨‍👩‍👦",name:"family_man_woman_boy",shortcodes:["family_mwb"],tags:["boy","family","man","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f469-200d-1f466.png"},{emoji:"👨‍👩‍👧",name:"family_man_woman_girl",shortcodes:["family_mwg"],tags:["family","girl","man","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f469-200d-1f467.png"},{emoji:"👨‍👩‍👧‍👦",name:"family_man_woman_girl_boy",shortcodes:["family_mwgb"],tags:["boy","family","girl","man","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f469-200d-1f467-200d-1f466.png"},{emoji:"👨‍👩‍👦‍👦",name:"family_man_woman_boy_boy",shortcodes:["family_mwbb"],tags:["boy","family","man","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f469-200d-1f466-200d-1f466.png"},{emoji:"👨‍👩‍👧‍👧",name:"family_man_woman_girl_girl",shortcodes:["family_mwgg"],tags:["family","girl","man","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f469-200d-1f467-200d-1f467.png"},{emoji:"👨‍👨‍👦",name:"family_man_man_boy",shortcodes:["family_mmb"],tags:["boy","family","man"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f468-200d-1f466.png"},{emoji:"👨‍👨‍👧",name:"family_man_man_girl",shortcodes:["family_mmg"],tags:["family","girl","man"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f468-200d-1f467.png"},{emoji:"👨‍👨‍👧‍👦",name:"family_man_man_girl_boy",shortcodes:["family_mmgb"],tags:["boy","family","girl","man"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f468-200d-1f467-200d-1f466.png"},{emoji:"👨‍👨‍👦‍👦",name:"family_man_man_boy_boy",shortcodes:["family_mmbb"],tags:["boy","family","man"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f468-200d-1f466-200d-1f466.png"},{emoji:"👨‍👨‍👧‍👧",name:"family_man_man_girl_girl",shortcodes:["family_mmgg"],tags:["family","girl","man"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f468-200d-1f467-200d-1f467.png"},{emoji:"👩‍👩‍👦",name:"family_woman_woman_boy",shortcodes:["family_wwb"],tags:["boy","family","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f469-200d-1f466.png"},{emoji:"👩‍👩‍👧",name:"family_woman_woman_girl",shortcodes:["family_wwg"],tags:["family","girl","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f469-200d-1f467.png"},{emoji:"👩‍👩‍👧‍👦",name:"family_woman_woman_girl_boy",shortcodes:["family_wwgb"],tags:["boy","family","girl","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f469-200d-1f467-200d-1f466.png"},{emoji:"👩‍👩‍👦‍👦",name:"family_woman_woman_boy_boy",shortcodes:["family_wwbb"],tags:["boy","family","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f469-200d-1f466-200d-1f466.png"},{emoji:"👩‍👩‍👧‍👧",name:"family_woman_woman_girl_girl",shortcodes:["family_wwgg"],tags:["family","girl","woman"],group:"people & body",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f469-200d-1f467-200d-1f467.png"},{emoji:"👨‍👦",name:"family_man_boy",shortcodes:["family_mb"],tags:["boy","family","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-2
29900d-1f466.png"},{emoji:"👨‍👦‍👦",name:"family_man_boy_boy",shortcodes:["family_mbb"],tags:["boy","family","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f466-200d-1f466.png"},{emoji:"👨‍👧",name:"family_man_girl",shortcodes:["family_mg"],tags:["family","girl","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f467.png"},{emoji:"👨‍👧‍👦",name:"family_man_girl_boy",shortcodes:["family_mgb"],tags:["boy","family","girl","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f467-200d-1f466.png"},{emoji:"👨‍👧‍👧",name:"family_man_girl_girl",shortcodes:["family_mgg"],tags:["family","girl","man"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f468-200d-1f467-200d-1f467.png"},{emoji:"👩‍👦",name:"family_woman_boy",shortcodes:["family_wb"],tags:["boy","family","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f466.png"},{emoji:"👩‍👦‍👦",name:"family_woman_boy_boy",shortcodes:["family_wbb"],tags:["boy","family","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f466-200d-1f466.png"},{emoji:"👩‍👧",name:"family_woman_girl",shortcodes:["family_wg"],tags:["family","girl","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f467.png"},{emoji:"👩‍👧‍👦",name:"family_woman_girl_boy",shortcodes:["family_wgb"],tags:["boy","family","girl","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f467-200d-1f466.png"},{emoji:"👩‍👧‍👧",name:"family_woman_girl_girl",shortcodes:["family_wgg"],tags:["family","girl","woman"],group:"people & body",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f469-200d-1f467-200d-1f467.png"},{emoji:"🗣",name:"speaking_head",shortcodes:["speaking_head"],tags:["face","head","silhouette","speak","speaking"],group:"people & body",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5e3-fe0f.png"},{emoji:"👤",name:"bust_in_silhouette",shortcodes:["bust_in_silhouette"],tags:["bust","silhouette"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f464.png"},{emoji:"👥",name:"busts_in_silhouette",shortcodes:["busts_in_silhouette"],tags:["bust","silhouette"],group:"people & body",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f465.png"},{emoji:"🫂",name:"people_hugging",shortcodes:["people_hugging"],tags:["goodbye","hello","hug","thanks"],group:"people & body",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fac2.png"},{emoji:"👪",name:"family",shortcodes:["family"],tags:["family"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f46a.png"},{emoji:"🧑‍🧑‍🧒",name:"family_aac",shortcodes:["family_aac"],tags:["family: adult, adult, child"],group:"people & body",emoticons:[],version:15.1},{emoji:"🧑‍🧑‍🧒‍🧒",name:"family_aacc",shortcodes:["family_aacc"],tags:["family: adult, adult, child, child"],group:"people & body",emoticons:[],version:15.1},{emoji:"🧑‍🧒",name:"family_ac",shortcodes:["family_ac"],tags:["family: adult, child"],group:"people & body",emoticons:[],version:15.1},{emoji:"🧑‍🧒‍🧒",name:"family_acc",shortcodes:["family_acc"],tags:["family: adult, child, child"],group:"people & body",emoticons:[],version:15.1},{emoji:"👣",name:"footprints",shortcodes:["footprints"],tags:["clothing","footprint","print"],group:"people & body",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f463.png"},{emoji:"🏻",name:"tone1",shortcodes:["tone1","tone_light"],tags:["skin tone","type 1–2"],group:"components",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3fb.png"},{emoji:"🏼",name:"tone2",shortcodes:["tone2","tone_medium_light"],tags:["skin tone","type 3"],group:"components",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3fc.png"},{emoji:"🏽",name:"tone3",shortcodes:["tone3","tone_medium"],tags:["skin tone","type 4"],group:"components",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3fd.png"},{emoji:"🏾",name:"tone4",shortcodes:["tone4","tone_medium_dark"],tags:["skin tone","type 5"],group:"components",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3fe.png"},{emoji:"🏿",name:"tone5",shortcodes:["tone5","tone_dark"],tags:["skin tone","type 6"],group:"components",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ff.png"},{emoji:"🦰",name:"red_hair",shortcodes:["red_hair"],tags:["ginger","redhead"],group:"components",emoticons:[],version:11},{emoji:"🦱",name:"curly_hair",shortcodes:["curly_hair"],tags:["afro","curly","ringlets"],group:"components",emoticons:[],version:11},{emoji:"🦳",name:"white_hair",shortcodes:["white_hair"],tags:["gray","hair","old","white"],group:"components",emoticons:[],version:11},{emoji:"🦲",name:"no_hair",shortcodes:["no_hair"],tags:["chemotherapy","hairless","no hair","shaven"],group:"components",emoticons:[],version:11},{emoji:"🐵",name:"monkey_face",shortcodes:["monkey_face"],tags:["face","monkey"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f435.png"},{emoji:"🐒",name:"monkey",shortcodes:["monkey"],tags:["monkey"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f412.png"}
299,{emoji:"🦍",name:"gorilla",shortcodes:["gorilla"],tags:["gorilla"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f98d.png"},{emoji:"🦧",name:"orangutan",shortcodes:["orangutan"],tags:["ape"],group:"animals & nature",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9a7.png"},{emoji:"🐶",name:"dog",shortcodes:["dog_face"],tags:["dog","face","pet"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f436.png"},{emoji:"🐕",name:"dog2",shortcodes:["dog"],tags:["pet"],group:"animals & nature",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f415.png"},{emoji:"🦮",name:"guide_dog",shortcodes:["guide_dog"],tags:["accessibility","blind","guide"],group:"animals & nature",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ae.png"},{emoji:"🐕‍🦺",name:"service_dog",shortcodes:["service_dog"],tags:["accessibility","assistance","dog","service"],group:"animals & nature",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f415-200d-1f9ba.png"},{emoji:"🐩",name:"poodle",shortcodes:["poodle"],tags:["dog"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f429.png"},{emoji:"🐺",name:"wolf",shortcodes:["wolf","wolf_face"],tags:["face"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f43a.png"},{emoji:"🦊",name:"fox_face",shortcodes:["fox","fox_face"],tags:["face"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f98a.png"},{emoji:"🦝",name:"raccoon",shortcodes:["raccoon"],tags:["curious","sly"],group:"animals & nature",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f99d.png"},{emoji:"🐱",name:"cat",shortcodes:["cat_face"],tags:["cat","face","pet"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f431.png"},{emoji:"🐈",name:"cat2",shortcodes:["cat"],tags:["pet"],group:"animals & nature",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f408.png"},{emoji:"🐈‍⬛",name:"black_cat",shortcodes:["black_cat"],tags:["black","cat","unlucky"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f408-200d-2b1b.png"},{emoji:"🦁",name:"lion",shortcodes:["lion","lion_face"],tags:["face","leo","zodiac"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f981.png"},{emoji:"🐯",name:"tiger",shortcodes:["tiger_face"],tags:["face","tiger"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f42f.png"},{emoji:"🐅",name:"tiger2",shortcodes:["tiger"],tags:["tiger"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f405.png"},{emoji:"🐆",name:"leopard",shortcodes:["leopard"],tags:["leopard"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f406.png"},{emoji:"🐴",name:"horse",shortcodes:["horse_face"],tags:["face","horse"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f434.png"},{emoji:"🫎",name:"moose",shortcodes:["moose"],tags:["animal","antlers","elk","mammal"],group:"animals & nature",emoticons:[],version:15},{emoji:"🫏",name:"donkey",shortcodes:["donkey"],tags:["animal","ass","burro","mammal","mule","stubborn"],group:"animals & nature",emoticons:[],version:15},{emoji:"🐎",name:"racehorse",shortcodes:["horse","racehorse"],tags:["equestr
299ian","racehorse","racing"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f40e.png"},{emoji:"🦄",name:"unicorn",shortcodes:["unicorn","unicorn_face"],tags:["face"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f984.png"},{emoji:"🦓",name:"zebra",shortcodes:["zebra"],tags:["stripe"],group:"animals & nature",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f993.png"},{emoji:"🦌",name:"deer",shortcodes:["deer"],tags:["deer"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f98c.png"},{emoji:"🦬",name:"bison",shortcodes:["bison"],tags:["buffalo","herd","wisent"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ac.png"},{emoji:"🐮",name:"cow",shortcodes:["cow_face"],tags:["cow","face"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f42e.png"},{emoji:"🐂",name:"ox",shortcodes:["ox"],tags:["bull","taurus","zodiac"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f402.png"},{emoji:"🐃",name:"water_buffalo",shortcodes:["water_buffalo"],tags:["buffalo","water"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f403.png"},{emoji:"🐄",name:"cow2",shortcodes:["cow"],tags:["cow"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f404.png"},{emoji:"🐷",name:"pig",shortcodes:["pig_face"],tags:["face","pig"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f437.png"},{emoji:"🐖",name:"pig2",shortcodes:["pig"],tags:["sow"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f416.png"},{emoji:"🐗",name:"boar",shortcodes:["boar"],tags:["pig"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f417.png"},{emoji:"🐽",name:"pig_nose",shortcodes:["pig_nose"],tags:["face","nose","pig"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f43d.png"},{emoji:"🐏",name:"ram",shortcodes:["ram"],tags:["aries","male","sheep","zodiac"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f40f.png"},{emoji:"🐑",name:"sheep",shortcodes:["ewe","sheep"],tags:["female","sheep"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f411.png"},{emoji:"🐐",name:"goat",shortcodes:["goat"],tags:["capricorn","zodiac"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f410.png"},{emoji:"🐪",name:"dromedary_camel",shortcodes:["dromedary_camel"],tags:["dromedary","hump"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f42a.png"},{emoji:"🐫",name:"camel",shortcodes:["camel"],tags:["bactrian","camel","hump"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f42b.png"},{emoji:"🦙",name:"llama",shortcodes:["llama"],tags:["alpaca","guanaco","vicuña","wool"],group:"animals & nature",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f999.png"},{emoji:"🦒",name:"giraffe",shortcodes:["giraffe"],tags:["spots"],group:"animals & nature",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f992.png"},{emoji:"🐘",name:"elephant",shortcodes:["elephant"],tags:["elephant"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f418.png"}
299,{emoji:"🦣",name:"mammoth",shortcodes:["mammoth"],tags:["extinction","large","tusk","woolly"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9a3.png"},{emoji:"🦏",name:"rhinoceros",shortcodes:["rhino","rhinoceros"],tags:["rhinoceros"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f98f.png"},{emoji:"🦛",name:"hippopotamus",shortcodes:["hippo"],tags:["hippo"],group:"animals & nature",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f99b.png"},{emoji:"🐭",name:"mouse",shortcodes:["mouse_face"],tags:["face","mouse"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f42d.png"},{emoji:"🐁",name:"mouse2",shortcodes:["mouse"],tags:["mouse"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f401.png"},{emoji:"🐀",name:"rat",shortcodes:["rat"],tags:["rat"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f400.png"},{emoji:"🐹",name:"hamster",shortcodes:["hamster","hamster_face"],tags:["face","pet"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f439.png"},{emoji:"🐰",name:"rabbit",shortcodes:["rabbit_face"],tags:["bunny","face","pet","rabbit"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f430.png"},{emoji:"🐇",name:"rabbit2",shortcodes:["rabbit"],tags:["bunny","pet"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f407.png"},{emoji:"🐿",name:"chipmunk",shortcodes:["chipmunk"],tags:["squirrel"],group:"animals & nature",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f43f-fe0f.png"},{emoji:"🦫",name:"beaver",shortcodes:["beaver"],tags:["dam"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ab.png"},{emoji:"🦔",name:"hedgehog",shortcodes:["hedgehog"],tags:["spiny"],group:"animals & nature",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f994.png"},{emoji:"🦇",name:"bat",shortcodes:["bat"],tags:["vampire"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f987.png"},{emoji:"🐻",name:"bear",shortcodes:["bear","bear_face"],tags:["face"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f43b.png"},{emoji:"🐻‍❄",name:"polar_bear",shortcodes:["polar_bear","polar_bear_face"],tags:["arctic","bear","white"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f43b-200d-2744-fe0f.png"},{emoji:"🐨",name:"koala",shortcodes:["koala","koala_face"],tags:["face","marsupial"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f428.png"},{emoji:"🐼",name:"panda_face",shortcodes:["panda","panda_face"],tags:["face"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f43c.png"},{emoji:"🦥",name:"sloth",shortcodes:["sloth"],tags:["lazy","slow"],group:"animals & nature",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9a5.png"},{emoji:"🦦",name:"otter",shortcodes:["otter"],tags:["fishing","playful"],group:"animals & nature",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9a6.png"},{emoji:"🦨",name:"skunk",shortcodes:["skunk"],tags:["stink"],group:"animals & nature",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9a8.png"},{emoji:"🦘",name:"kangaroo",shortcodes:["kangaroo"],tags:["joey","jump","marsupial"],group:"animals & nature",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f998.png"},{emoji:"🦡",name:"badger",shortcodes:["badger"],tags:["honey badger","pester"],group:"animals & nature",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9a1.png"},{emoji:"🐾",name:"feet",shortcodes:["paw_prints"],tags:["feet","paw","print"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f43e.png"},{emoji:"🦃",name:"turkey",shortcodes:["turkey"],tags:["bird"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f983.png"},{emoji:"🐔",name:"chicken",shortcodes:["chicken","chicken_face"],tags:["bird"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f414.png"},{emoji:"🐓",name:"rooster",shortcodes:["rooster"],tags:["bird"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f413.png"},{emoji:"🐣",name:"hatching_chick",shortcodes:["hatching_chick"],tags:["baby","bird","chick","hatching"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f423.png"},{emoji:"🐤",name:"baby_chick",shortcodes:["baby_chick"],tags:["baby","bird","chick"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f424.png"},{emoji:"🐥",name:"hatched_chick",shortcodes:["hatched_chick"],tags:["baby","bird","chick"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f425.png"},{emoji:"🐦",name:"bird",shortcodes:["bird","bird_face"],tags:["bird"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f426.png"},{emoji:"🐧",name:"penguin",shortcodes:["penguin","penguin_face"],tags:["bird"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f427.png"},{emoji:"🕊",name:"dove",shortcodes:["dove"],tags:["bird","fly","peace"],group:"animals & nature",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f54a-fe0f.png"},{emoji:"🦅",name:"eagle",shortcodes:["eagle"],tags:["bird"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f985.png"},{emoji:"🦆",name:"duck",shortcodes:["duck"],tags:["bird"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f986.png"}
299,{emoji:"🦢",name:"swan",shortcodes:["swan"],tags:["bird","cygnet","ugly duckling"],group:"animals & nature",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9a2.png"},{emoji:"🦉",name:"owl",shortcodes:["owl"],tags:["bird","wise"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f989.png"},{emoji:"🦤",name:"dodo",shortcodes:["dodo"],tags:["extinction","large","mauritius"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9a4.png"},{emoji:"🪶",name:"feather",shortcodes:["feather"],tags:["bird","flight","light","plumage"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fab6.png"},{emoji:"🦩",name:"flamingo",shortcodes:["flamingo"],tags:["flamboyant","tropical"],group:"animals & nature",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9a9.png"},{emoji:"🦚",name:"peacock",shortcodes:["peacock"],tags:["bird","ostentatious","peahen","proud"],group:"animals & nature",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f99a.png"},{emoji:"🦜",name:"parrot",shortcodes:["parrot"],tags:["bird","pirate","talk"],group:"animals & nature",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f99c.png"},{emoji:"🪽",name:"wing",shortcodes:["wing"],tags:["angelic","aviation","bird","flying","mythology"],group:"animals & nature",emoticons:[],version:15},{emoji:"🐦‍⬛",name:"black_bird",shortcodes:["black_bird"],tags:["bird","black","crow","raven","rook"],group:"animals & nature",emoticons:[],version:15},{emoji:"🪿",name:"goose",shortcodes:["goose"],tags:["bird","fowl","honk","silly"],group:"animals & nature",emoticons:[],version:15},{emoji:"🐦‍🔥",name:"phoenix",shortcodes:["phoenix"],tags:["fantasy","firebird","rebirth","reincarnation"],group:"animals & nature",emoticons:[],version:15.1},{emoji:"🐸",name:"frog",shortcodes:["frog","frog_face"],tags:["face"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f438.png"},{emoji:"🐊",name:"crocodile",shortcodes:["crocodile"],tags:["crocodile"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f40a.png"},{emoji:"🐢",name:"turtle",shortcodes:["turtle"],tags:["terrapin","tortoise"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f422.png"},{emoji:"🦎",name:"lizard",shortcodes:["lizard"],tags:["reptile"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f98e.png"},{emoji:"🐍",name:"snake",shortcodes:["snake"],tags:["bearer","ophiuchus","serpent","zodiac"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f40d.png"},{emoji:"🐲",name:"dragon_face",shortcodes:["dragon_face"],tags:["dragon","face","fairy tale"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f432.png"},{emoji:"🐉",name:"dragon",shortcodes:["dragon"],tags:["fairy tale"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f409.png"},{emoji:"🦕",name:"sauropod",shortcodes:["sauropod"],tags:["brachiosaurus","brontosaurus","diplodocus"],group:"animals & nature",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f995.png"},{emoji:"🦖",name:"t-rex",shortcodes:["t-rex","trex"],tags:["t-rex","tyrannosaurus rex"],group:"animals & nature",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f996.png"},{emoji:"🐳",name:"whale",shortcodes:["spouting_whale"],tags:["face","spouting","whale"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f433.png"},{emoji:"🐋",name:"whale2",shortcodes:["whale"],tags:["whale"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f40b.png"},{emoji:"🐬",name:"dolphin",shortcodes:["dolphin"],tags:["flipper"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f42c.png"},{emoji:"🦭",name:"seal",shortcodes:["seal"],tags:["sea lion"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ad.png"},{emoji:"🐟",name:"fish",shortcodes:["fish"],tags:["pisces","zodiac"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f41f.png"},{emoji:"🐠",name:"tropical_fish",shortcodes:["tropical_fish"],tags:["fish","tropical"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f420.png"},{emoji:"🐡",name:"blowfish",shortcodes:["blowfish"],tags:["fish"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f421.png"},{emoji:"🦈",name:"shark",shortcodes:["shark"],tags:["fish"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f988.png"},{emoji:"🐙",name:"octopus",shortcodes:["octopus"],tags:["octopus"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f419.png"},{emoji:"🐚",name:"shell",shortcodes:["shell"],tags:["shell","spiral"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f41a.png"},{emoji:"🪸",name:"coral",shortcodes:["coral"],tags:["ocean","reef"],group:"animals & nature",emoticons:[],version:14},{emoji:"🪼",name:"jellyfish",shortcodes:["jellyfish"],tags:["burn","invertebrate","jelly","marine","ouch","stinger"],group:"animals & nature",emoticons:[],version:15},{emoji:"🐌",name:"snail",shortcodes:["snail"],tags:["snail"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f40c.png"},{emoji:"🦋",name:"butterfly",shortcodes:["butterfly"],tags:["insect","pretty"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f98b.png"},{emoji:"🐛",name:"bug",shortcodes:["bug"],tags:["insect"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f41b.png"},{emoji:"🐜",name:"ant",shortcodes:["ant"],tags:["insect"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f41c.png"},{emoji:"🐝",name:"bee",shortcodes:["bee"],tags:["bee","insect"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f41d.png"},{emoji:"🪲",name:"beetle",shortcodes:["beetle"],tags:["bug","insect"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fab2.png"},{emoji:"🐞",name:"lady_beetle",shortcodes:["lady_beetle"],tags:["beetle","insect","ladybird","ladybug"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f41e.png"},{emoji:"🦗",name:"cricket",shortcodes:["cricket"],tags:["grass
299hopper"],group:"animals & nature",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f997.png"},{emoji:"🪳",name:"cockroach",shortcodes:["cockroach"],tags:["insect","pest","roach"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fab3.png"},{emoji:"🕷",name:"spider",shortcodes:["spider"],tags:["insect"],group:"animals & nature",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f577-fe0f.png"},{emoji:"🕸",name:"spider_web",shortcodes:["spider_web"],tags:["spider","web"],group:"animals & nature",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f578-fe0f.png"},{emoji:"🦂",name:"scorpion",shortcodes:["scorpion"],tags:["scorpio","zodiac"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f982.png"},{emoji:"🦟",name:"mosquito",shortcodes:["mosquito"],tags:["disease","fever","malaria","pest","virus"],group:"animals & nature",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f99f.png"},{emoji:"🪰",name:"fly",shortcodes:["fly"],tags:["disease","maggot","pest","rotting"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fab0.png"},{emoji:"🪱",name:"worm",shortcodes:["worm"],tags:["annelid","earthworm","parasite"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fab1.png"},{emoji:"🦠",name:"microbe",shortcodes:["microbe"],tags:["amoeba","bacteria","virus"],group:"animals & nature",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9a0.png"},{emoji:"💐",name:"bouquet",shortcodes:["bouquet"],tags:["flower"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f490.png"},{emoji:"🌸",name:"cherry_blossom",shortcodes:["cherry_blossom"],tags:["blossom","cherry","flower"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f338.png"},{emoji:"💮",name:"white_flower",shortcodes:["white_flower"],tags:["flower"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ae.png"},{emoji:"🪷",name:"lotus",shortcodes:["lotus"],tags:["buddhism","flower","hinduism","purity"],group:"animals & nature",emoticons:[],version:14},{emoji:"🏵",name:"rosette",shortcodes:["rosette"],tags:["plant"],group:"animals & nature",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f5-fe0f.png"},{emoji:"🌹",name:"rose",shortcodes:["rose"],tags:["flower"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f339.png"},{emoji:"🥀",name:"wilted_flower",shortcodes:["wilted_flower"],tags:["flower","wilted"],group:"animals & nature",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f940.png"},{emoji:"🌺",name:"hibiscus",shortcodes:["hibiscus"],tags:["flower"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f33a.png"},{emoji:"🌻",name:"sunflower",shortcodes:["sunflower"],tags:["flower","sun"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f33b.png"},{emoji:"🌼",name:"blossom",shortcodes:["blossom"],tags:["flower"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f33c.png"},{emoji:"🌷",name:"tulip",shortcodes:["tulip"],tags:["flower"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f337.png"},{emoji:"🪻",name:"hyacinth",shortcodes:["hyacinth"],tags:["bluebonnet","flower","lavender","lupine","snapdragon"],group:"animals & nature",emoticons:[],version:15},{emoji:"🌱",name:"seedling",shortcodes:["seedling"],tags:["young"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f331.png"},{emoji:"🪴",name:"potted_plant",shortcodes:["potted_plant"],tags:["boring","grow","house","nurturing","plant","useless"],group:"animals & nature",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fab4.png"},{emoji:"🌲",name:"evergreen_tree",shortcodes:["evergreen_tree"],tags:["tree"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f332.png"},{emoji:"🌳",name:"deciduous_tree",shortcodes:["deciduous_tree"],tags:["deciduous","shedding","tree"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f333.png"},{emoji:"🌴",name:"palm_tree",shortcodes:["palm_tree"],tags:["palm","tree"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f334.png"},{emoji:"🌵",name:"cactus",shortcodes:["cactus"],tags:["plant"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f335.png"}
299,{emoji:"🌾",name:"ear_of_rice",shortcodes:["ear_of_rice","sheaf_of_rice"],tags:["ear","grain","rice"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f33e.png"},{emoji:"🌿",name:"herb",shortcodes:["herb"],tags:["leaf"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f33f.png"},{emoji:"☘",name:"shamrock",shortcodes:["shamrock"],tags:["plant"],group:"animals & nature",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2618-fe0f.png"},{emoji:"🍀",name:"four_leaf_clover",shortcodes:["four_leaf_clover"],tags:["4","clover","four","four-leaf clover","leaf"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f340.png"},{emoji:"🍁",name:"maple_leaf",shortcodes:["maple_leaf"],tags:["falling","leaf","maple"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f341.png"},{emoji:"🍂",name:"fallen_leaf",shortcodes:["fallen_leaf"],tags:["falling","leaf"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f342.png"},{emoji:"🍃",name:"leaves",shortcodes:["leaves"],tags:["blow","flutter","leaf","wind"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f343.png"},{emoji:"🪹",name:"empty_nest",shortcodes:["empty_nest","nest"],tags:["nesting"],group:"animals & nature",emoticons:[],version:14},{emoji:"🪺",name:"nest_with_eggs",shortcodes:["nest_with_eggs"],tags:["nesting"],group:"animals & nature",emoticons:[],version:14},{emoji:"🍄",name:"mushroom",shortcodes:["mushroom"],tags:["toadstool"],group:"animals & nature",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f344.png"},{emoji:"🍇",name:"grapes",shortcodes:["grapes"],tags:["fruit","grape"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f347.png"},{emoji:"🍈",name:"melon",shortcodes:["melon"],tags:["fruit"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f348.png"},{emoji:"🍉",name:"watermelon",shortcodes:["watermelon"],tags:["fruit"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f349.png"},{emoji:"🍊",name:"mandarin",shortcodes:["orange","tangerine"],tags:["fruit","orange"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f34a.png"},{emoji:"🍋",name:"lemon",shortcodes:["lemon"],tags:["citrus","fruit"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f34b.png"},{emoji:"🍋‍🟩",name:"lime",shortcodes:["lime"],tags:["citrus","fruit","tropical"],group:"food & drink",emoticons:[],version:15.1},{emoji:"🍌",name:"banana",shortcodes:["banana"],tags:["fruit"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f34c.png"},{emoji:"🍍",name:"pineapple",shortcodes:["pineapple"],tags:["fruit"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f34d.png"},{emoji:"🥭",name:"mango",shortcodes:["mango"],tags:["fruit","tropical"],group:"food & drink",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f96d.png"},{emoji:"🍎",name:"apple",shortcodes:["apple","red_apple"],tags:["apple","fruit","red"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f34e.png"},{emoji:"🍏",name:"green_apple",shortcodes:["green_apple"],tags:["apple","fruit","green"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f34f.png"},{emoji:"🍐",name:"pear",shortcodes:["pear"],tags:["fruit"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f350.png"},{emoji:"🍑",name:"peach",shortcodes:["peach"],tags:["fruit"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f351.png"},{emoji:"🍒",name:"cherries",shortcodes:["cherries"],tags:["berries","cherry","fruit","red"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f352.png"},{emoji:"🍓",name:"strawberry",shortcodes:["strawberry"],tags:["berry","fruit"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f353.png"},{emoji:"🫐",name:"blueberries",shortcodes:["blueberries"],tags:["berry","bilberry","blue","blueberry"],group:"food & drink",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fad0.png"},{emoji:"🥝",name:"kiwi_fruit",shortcodes:["kiwi"],tags:["food","fruit","kiwi"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f95d.png"},{emoji:"🍅",name:"tomato",shortcodes:["tomato"],tags:["fruit","vegetable"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f345.png"},{emoji:"🫒",name:"olive",shortcodes:["olive"],tags:["food"],group:"food & drink",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fad2.png"},{emoji:"🥥",name:"coconut",shortcodes:["coconut"],tags:["palm","piña colada"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f965.png"},{emoji:"🥑",name:"avocado",shortcodes:["avocado"],tags:["food","fruit"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f951.png"},{emoji:"🍆",name:"eggplant",shortcodes:["eggplant"],tags:["aubergine","vegetable"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f346.png"},{emoji:"🥔",name:"potato",shortcodes:["potato"],tags:["food","vegetable"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f954.png"},{emoji:"🥕",name:"carrot",shortcodes:["carrot"],tags:["food","vegetable"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f955.png"},{emoji:"🌽",name:"corn",shortcodes:["corn","ear_of_corn"],tags:["corn","ear","maize","maze"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f33d.png"},{emoji:"🌶",name:"hot_pepper",shortcodes:["hot_pepper"],tags:["hot","pepper"],group:"food & drink",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f336-fe0f.png"},{emoji:"🫑",name:"bell_pepper",shortcodes:["bell_pepper"],tags:["capsicum","pepper","vegetable"],group:"food & drink",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fad1.png"},{emoji:"🥒",name:"cucumber",shortcodes:["cucumber"],tags:["food","pickle","vegetable"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f952.png"},{emoji:"🥬",name:"leafy_green",shortcodes:["leafy_green"],tags:["bok choy","cabbage","kale","lettuce"],group:"food & drink",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f96c.png"},{emoji:"🥦",name:"broccoli",shortcodes:["broccoli"],tags:["wild cabbage"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f966.png"},{emoji:"🧄",name:"garlic",shortcodes:["garlic"],tags:["flavoring"],group:"food & drink",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9c4.png"},{emoji:"🧅",name:"onion",shortcodes:["onion"],tags:["flavoring"],group:"food & drink",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9c5.png"},{emoji:"🥜",name:"peanuts",shortcodes:["peanuts"],tags:["food","nut","peanut","vegetable"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f95c.png"},{emoji:"🫘",name:"beans",shortcodes:["beans"],tags:["food","kidney","legume"],group:"food & drink",emoticons:[],version:14},{emoji:"🌰",name:"chestnut",shortcodes:["chestnut"],tags:["plant"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f330.png"},{emoji:"🫚",name:"ginger_root",shortcodes:["ginger"],tags:["beer","root","spice"],group:"food & drink",emoticons:[],version:15},{emoji:"🫛",name:"pea_pod",shortcodes:["pea"],tags:["beans","edamame","legume","pea","pod","vegetable"],group:"food & drink",emoticons:[],version:15},{emoji:"🍄‍🟫",name:"brown_mushroom",shortcodes:["brown_mushroom"],tags:["food","fungus","nature","vegetable"],group:"food & drink",emoticons:[],version:15.1},{emoji:"🍞",name:"bread",shortcodes:["bread"],tags:["loaf"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f35e.png"}
299,{emoji:"🥐",name:"croissant",shortcodes:["croissant"],tags:["bread","breakfast","food","french","roll"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f950.png"},{emoji:"🥖",name:"baguette_bread",shortcodes:["baguette_bread"],tags:["baguette","bread","food","french"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f956.png"},{emoji:"🫓",name:"flatbread",shortcodes:["flatbread"],tags:["arepa","lavash","naan","pita"],group:"food & drink",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fad3.png"},{emoji:"🥨",name:"pretzel",shortcodes:["pretzel"],tags:["twisted"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f968.png"},{emoji:"🥯",name:"bagel",shortcodes:["bagel"],tags:["bakery","breakfast","schmear"],group:"food & drink",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f96f.png"},{emoji:"🥞",name:"pancakes",shortcodes:["pancakes"],tags:["breakfast","crêpe","food","hotcake","pancake"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f95e.png"},{emoji:"🧇",name:"waffle",shortcodes:["waffle"],tags:["breakfast","indecisive","iron"],group:"food & drink",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9c7.png"},{emoji:"🧀",name:"cheese",shortcodes:["cheese"],tags:["cheese"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9c0.png"},{emoji:"🍖",name:"meat_on_bone",shortcodes:["meat_on_bone"],tags:["bone","meat"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f356.png"},{emoji:"🍗",name:"poultry_leg",shortcodes:["poultry_leg"],tags:["bone","chicken","drumstick","leg","poultry"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f357.png"},{emoji:"🥩",name:"cut_of_meat",shortcodes:["cut_of_meat"],tags:["chop","lambchop","porkchop","steak"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f969.png"},{emoji:"🥓",name:"bacon",shortcodes:["bacon"],tags:["breakfast","food","meat"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f953.png"},{emoji:"🍔",name:"hamburger",shortcodes:["hamburger"],tags:["burger"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f354.png"},{emoji:"🍟",name:"fries",shortcodes:["french_fries","fries"],tags:["french","fries"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f35f.png"},{emoji:"🍕",name:"pizza",shortcodes:["pizza"],tags:["cheese","slice"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f355.png"},{emoji:"🌭",name:"hotdog",shortcodes:["hotdog"],tags:["frankfurter","hotdog","sausage"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f32d.png"},{emoji:"🥪",name:"sandwich",shortcodes:["sandwich"],tags:["bread"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f96a.png"},{emoji:"🌮",name:"taco",shortcodes:["taco"],tags:["mexican"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f32e.png"},{emoji:"🌯",name:"burrito",shortcodes:["burrito"],tags:["mexican","wrap"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f32f.png"},{emoji:"🫔",name:"tamale",shortcodes:["tamale"],tags:["mexican","wrapped"],group:"food & drink",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fad4.png"},{emoji:"🥙",name:"stuffed_flatbread",shortcodes:["stuffed_flatbread"],tags:["falafel","flatbread","food","gyro","kebab","stuffed"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f959.png"},{emoji:"🧆",name:"falafel",shortcodes:["falafel"],tags:["chickpea","meatball"],group:"food & drink",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9c6.png"},{emoji:"🥚",name:"egg",shortcodes:["egg"],tags:["breakfast","food"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f95a.png"},{emoji:"🍳",name:"fried_egg",shortcodes:["cooking","fried_egg"],tags:["breakfast","egg","frying","pan"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f373.png"},{emoji:"🥘",name:"shallow_pan_of_food",shortcodes:["shallow_pan_of_food"],tags:["casserole","food","paella","pan","shallow"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f958.png"},{emoji:"🍲",name:"stew",shortcodes:["pot_of_food","stew"],tags:["pot","stew"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f372.png"},{emoji:"🫕",name:"fondue",shortcodes:["fondue"],tags:["cheese","chocolate","melted","pot","swiss"],group:"food & drink",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fad5.png"},{emoji:"🥣",name:"bowl_with_spoon",shortcodes:["bowl_with_spoon"],tags:["breakfast","cereal","congee"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f963.png"},{emoji:"🥗",name:"green_salad",shortcodes:["green_salad","salad"],tags:["food","green","salad"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f957.png"},{emoji:"🍿",name:"popcorn",shortcodes:["popcorn"],tags:["popcorn"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f37f.png"},{emoji:"🧈",name:"butter",shortcodes:["butter"],tags:["dairy"],group:"food & drink",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9c8.png"},{emoji:"🧂",name:"salt",shortcodes:["salt"],tags:["condiment","shaker"],group:"food & drink",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9c2.png"},{emoji:"🥫",name:"canned_food",shortcodes:["canned_food"],tags:["can"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f96b.png"}
299,{emoji:"🍱",name:"bento",shortcodes:["bento","bento_box"],tags:["bento","box"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f371.png"},{emoji:"🍘",name:"rice_cracker",shortcodes:["rice_cracker"],tags:["cracker","rice"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f358.png"},{emoji:"🍙",name:"rice_ball",shortcodes:["rice_ball"],tags:["ball","japanese","rice"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f359.png"},{emoji:"🍚",name:"rice",shortcodes:["cooked_rice","rice"],tags:["cooked","rice"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f35a.png"},{emoji:"🍛",name:"curry",shortcodes:["curry","curry_rice"],tags:["curry","rice"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f35b.png"},{emoji:"🍜",name:"ramen",shortcodes:["ramen","steaming_bowl"],tags:["bowl","noodle","ramen","steaming"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f35c.png"},{emoji:"🍝",name:"spaghetti",shortcodes:["spaghetti"],tags:["pasta"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f35d.png"},{emoji:"🍠",name:"sweet_potato",shortcodes:["sweet_potato"],tags:["potato","roasted","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f360.png"},{emoji:"🍢",name:"oden",shortcodes:["oden"],tags:["kebab","seafood","skewer","stick"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f362.png"},{emoji:"🍣",name:"sushi",shortcodes:["sushi"],tags:["sushi"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f363.png"},{emoji:"🍤",name:"fried_shrimp",shortcodes:["fried_shrimp"],tags:["fried","prawn","shrimp","tempura"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f364.png"},{emoji:"🍥",name:"fish_cake",shortcodes:["fish_cake"],tags:["cake","fish","pastry","swirl"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f365.png"},{emoji:"🥮",name:"moon_cake",shortcodes:["moon_cake"],tags:["autumn","festival","yuèbǐng"],group:"food & drink",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f96e.png"},{emoji:"🍡",name:"dango",shortcodes:["dango"],tags:["dessert","japanese","skewer","stick","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f361.png"},{emoji:"🥟",name:"dumpling",shortcodes:["dumpling"],tags:["empanada","gyōza","jiaozi","pierogi","potsticker"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f95f.png"},{emoji:"🥠",name:"fortune_cookie",shortcodes:["fortune_cookie"],tags:["prophecy"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f960.png"},{emoji:"🥡",name:"takeout_box",shortcodes:["takeout_box"],tags:["oyster pail"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f961.png"},{emoji:"🦀",name:"crab",shortcodes:["crab"],tags:["cancer","zodiac"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f980.png"},{emoji:"🦞",name:"lobster",shortcodes:["lobster"],tags:["bisque","claws","seafood"],group:"food & drink",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f99e.png"},{emoji:"🦐",name:"shrimp",shortcodes:["shrimp"],tags:["food","shellfish","small"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f990.png"},{emoji:"🦑",name:"squid",shortcodes:["squid"],tags:["food","molusc"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f991.png"},{emoji:"🦪",name:"oyster",shortcodes:["oyster"],tags:["diving","pearl"],group:"food & drink",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9aa.png"},{emoji:"🍦",name:"icecream",shortcodes:["icecream","soft_serve"],tags:["cream","dessert","ice","icecream","soft","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f366.png"},{emoji:"🍧",name:"shaved_ice",shortcodes:["shaved_ice"],tags:["dessert","ice","shaved","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f367.png"},{emoji:"🍨",name:"ice_cream",shortcodes:["ice_cream"],tags:["cream","dessert","ice","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f368.png"},{emoji:"🍩",name:"doughnut",shortcodes:["doughnut"],tags:["breakfast","dessert","donut","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f369.png"},{emoji:"🍪",name:"cookie",shortcodes:["cookie"],tags:["dessert","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f36a.png"},{emoji:"🎂",name:"birthday",shortcodes:["birthday","birthday_cake"],tags:["birthday","cake","celebration","dessert","pastry","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f382.png"},{emoji:"🍰",name:"cake",shortcodes:["cake","shortcake"],tags:["cake","dessert","pastry","slice","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f370.png"},{emoji:"🧁",name:"cupcake",shortcodes:["cupcake"],tags:["bakery","sweet"],group:"food & drink",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9c1.png"},{emoji:"🥧",name:"pie",shortcodes:["pie"],tags:["filling","pastry"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f967.png"},{emoji:"🍫",name:"chocolate_bar",shortcodes:["chocolate_bar"],tags:["bar","chocolate","dessert","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f36b.png"},{emoji:"🍬",name:"candy",shortcodes:["candy"],tags:["dessert","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f36c.png"},{emoji:"🍭",name:"lollipop",shortcodes:["lollipop"],tags:["candy","dessert","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f36d.png"},{emoji:"🍮",name:"custard",shortcodes:["custard"],tags:["dessert","pudding","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f36e.png"},{emoji:"🍯",name:"honey_pot",shortcodes:["honey_pot"],tags:["honey","honeypot","pot","sweet"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f36f.png"},{emoji:"🍼",name:"baby_bottle",shortcodes:["baby_bottle"],tags:["baby","bottle","drink","milk"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f37c.png"},{emoji:"🥛",name:"milk_glass",shortcodes:["glass_of_milk","milk"],tags:["drink","glass","milk"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f95b.png"},{emoji:"☕",name:"coffee",shortcodes:["coffee"],tags:["beverage","coffee","drink","hot","steaming","tea"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2615.png"},{emoji:"🫖",name:"teapot",shortcodes:["teapot"],tags:["drink","pot","tea"],group:"food & drink",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fad6.png"}
299,{emoji:"🍵",name:"tea",shortcodes:["tea"],tags:["beverage","cup","drink","tea","teacup"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f375.png"},{emoji:"🍶",name:"sake",shortcodes:["sake"],tags:["bar","beverage","bottle","cup","drink"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f376.png"},{emoji:"🍾",name:"champagne",shortcodes:["champagne"],tags:["bar","bottle","cork","drink","popping"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f37e.png"},{emoji:"🍷",name:"wine_glass",shortcodes:["wine_glass"],tags:["bar","beverage","drink","glass","wine"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f377.png"},{emoji:"🍸",name:"cocktail",shortcodes:["cocktail"],tags:["bar","cocktail","drink","glass"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f378.png"},{emoji:"🍹",name:"tropical_drink",shortcodes:["tropical_drink"],tags:["bar","drink","tropical"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f379.png"},{emoji:"🍺",name:"beer",shortcodes:["beer"],tags:["bar","beer","drink","mug"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f37a.png"},{emoji:"🍻",name:"beers",shortcodes:["beers"],tags:["bar","beer","clink","drink","mug"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f37b.png"},{emoji:"🥂",name:"clinking_glasses",shortcodes:["clinking_glasses"],tags:["celebrate","clink","drink","glass"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f942.png"},{emoji:"🥃",name:"tumbler_glass",shortcodes:["tumbler_glass","whisky"],tags:["glass","liquor","shot","tumbler","whisky"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f943.png"},{emoji:"🫗",name:"pouring_liquid",shortcodes:["pour","pouring_liquid"],tags:["drink","empty","glass","spill"],group:"food & drink",emoticons:[],version:14},{emoji:"🥤",name:"cup_with_straw",shortcodes:["cup_with_straw"],tags:["juice","soda"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f964.png"},{emoji:"🧋",name:"bubble_tea",shortcodes:["boba_drink","bubble_tea"],tags:["bubble","milk","pearl","tea"],group:"food & drink",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9cb.png"},{emoji:"🧃",name:"beverage_box",shortcodes:["beverage_box","juice_box"],tags:["beverage","box","juice","straw","sweet"],group:"food & drink",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9c3.png"},{emoji:"🧉",name:"mate",shortcodes:["mate"],tags:["drink"],group:"food & drink",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9c9.png"},{emoji:"🧊",name:"ice_cube",shortcodes:["ice","ice_cube"],tags:["cold","ice cube","iceberg"],group:"food & drink",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ca.png"},{emoji:"🥢",name:"chopsticks",shortcodes:["chopsticks"],tags:["hashi"],group:"food & drink",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f962.png"},{emoji:"🍽",name:"plate_with_cutlery",shortcodes:["fork_knife_plate"],tags:["cooking","fork","knife","plate"],group:"food & drink",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f37d-fe0f.png"},{emoji:"🍴",name:"fork_and_knife",shortcodes:["fork_and_knife"],tags:["cooking","cutlery","fork","knife"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f374.png"},{emoji:"🥄",name:"spoon",shortcodes:["spoon"],tags:["tableware"],group:"food & drink",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f944.png"},{emoji:"🔪",name:"hocho",shortcodes:["knife"],tags:["cooking","hocho","knife","tool","weapon"],group:"food & drink",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f52a.png"},{emoji:"🫙",name:"jar",shortcodes:["jar"],tags:["condiment","container","empty","sauce","store"],group:"food & drink",emoticons:[],version:14},{emoji:"🏺",name:"amphora",shortcodes:["amphora"],tags:["aquarius","cooking","drink","jug","zodiac"],group:"food & drink",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3fa.png"},{emoji:"🌍",name:"earth_africa",shortcodes:["earth_africa","earth_europe"],tags:["africa","earth","europe","globe","globe showing europe-africa","world"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f30d.png"},{emoji:"🌎",name:"earth_americas",shortcodes:["earth_americas"],tags:["americas","earth","globe","globe showing americas","world"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f30e.png"},{emoji:"🌏",name:"earth_asia",shortcodes:["earth_asia"],tags:["asia","australia","earth","globe","globe showing asia-australia","world"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f30f.png"}
299,{emoji:"🌐",name:"globe_with_meridians",shortcodes:["globe_with_meridians"],tags:["earth","globe","meridians","world"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f310.png"},{emoji:"🗺",name:"world_map",shortcodes:["world_map"],tags:["map","world"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5fa-fe0f.png"},{emoji:"🗾",name:"japan",shortcodes:["japan_map"],tags:["japan","map","map of japan"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5fe.png"},{emoji:"🧭",name:"compass",shortcodes:["compass"],tags:["magnetic","navigation","orienteering"],group:"travel & places",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ed.png"},{emoji:"🏔",name:"mountain_snow",shortcodes:["mountain_snow"],tags:["cold","mountain","snow"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3d4-fe0f.png"},{emoji:"⛰",name:"mountain",shortcodes:["mountain"],tags:["mountain"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f0-fe0f.png"},{emoji:"🌋",name:"volcano",shortcodes:["volcano"],tags:["eruption","mountain"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f30b.png"},{emoji:"🗻",name:"mount_fuji",shortcodes:["mount_fuji"],tags:["fuji","mountain"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5fb.png"},{emoji:"🏕",name:"camping",shortcodes:["camping"],tags:["camping"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3d5-fe0f.png"},{emoji:"🏖",name:"beach_umbrella",shortcodes:["beach","beach_with_umbrella"],tags:["beach","umbrella"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3d6-fe0f.png"},{emoji:"🏜",name:"desert",shortcodes:["desert"],tags:["desert"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3dc-fe0f.png"},{emoji:"🏝",name:"desert_island",shortcodes:["desert_island","island"],tags:["desert","island"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3dd-fe0f.png"},{emoji:"🏞",name:"national_park",shortcodes:["national_park"],tags:["park"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3de-fe0f.png"},{emoji:"🏟",name:"stadium",shortcodes:["stadium"],tags:["stadium"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3df-fe0f.png"},{emoji:"🏛",name:"classical_building",shortcodes:["classical_building"],tags:["classical"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3db-fe0f.png"},{emoji:"🏗",name:"building_construction",shortcodes:["building_construction","construction_site"],tags:["construction"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3d7-fe0f.png"},{emoji:"🧱",name:"bricks",shortcodes:["bricks"],tags:["bricks","clay","mortar","wall"],group:"travel & places",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9f1.png"},{emoji:"🪨",name:"rock",shortcodes:["rock"],tags:["boulder","heavy","solid","stone"],group:"travel & places",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1faa8.png"},{emoji:"🪵",name:"wood",shortcodes:["wood"],tags:["log","lumber","timber"],group:"travel & places",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fab5.png"},{emoji:"🛖",name:"hut",shortcodes:["hut"],tags:["house","roundhouse","yurt"],group:"travel & places",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6d6.png"},{emoji:"🏘",name:"houses",shortcodes:["homes","houses"],tags:["houses"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3d8-fe0f.png"},{emoji:"🏚",name:"derelict_house",shortcodes:["derelict_house","house_abandoned"],tags:["derelict","house"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3da-fe0f.png"},{emoji:"🏠",name:"house",shortcodes:["house"],tags:["home"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3e0.png"},{emoji:"🏡",name:"house_with_garden",shortcodes:["house_with_garden"],tags:["garden","home","house"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3e1.png"},{emoji:"🏢",name:"office",shortcodes:["office"],tags:["building"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3e2.png"},{emoji:"🏣",name:"post_office",shortcodes:["post_office"],tags:["japanese","japanese post office","post"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3e3.png"},{emoji:"🏤",name:"european_post_office",shortcodes:["european_post_office"],tags:["european","post"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3e4.png"},{emoji:"🏥",name:"hospital",shortcodes:["hospital"],tags:["doctor","medicine"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3e5.png"},{emoji:"🏦",name:"bank",shortcodes:["bank"],tags:["building"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3e6.png"},{emoji:"🏨",name:"hotel",shortcodes:["hotel"],tags:["building"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3e8.png"},{emoji:"🏩",name:"love_hotel",shortcodes:["love_hotel"],tags:["hotel","love"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3e9.png"},{emoji:"🏪",name:"convenience_store",shortcodes:["convenience_store"],tags:["convenience","store"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ea.png"},{emoji:"🏫",name:"school",shortcodes:["school"],tags:["building"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3eb.png"},{emoji:"🏬",name:"department_store",shortcodes:["department_store"],tags:["department","store"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ec.png"},{emoji:"🏭",name:"factory",shortcodes:["factory"],tags:["building"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ed.png"},{emoji:"🏯",name:"japanese_castle",shortcodes:["japanese_castle"],tags:["castle","japanese"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ef.png"},{emoji:"🏰",name:"european_castle",shortcodes:["castle","european_castle"],tags:["european"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f0.png"},{emoji:"💒",name:"wedding",shortcodes:["wedding"],tags:["chapel","romance"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f492.png"},{emoji:"🗼",name:"tokyo_tower",shortcodes:["tokyo_tower"],tags:["tokyo","tower"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5fc.png"},{emoji:"🗽",name:"statue_of_liberty",shortcodes:["statue_of_liberty"],tags:["liberty","statue","statue of liberty"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5fd.png"},{emoji:"⛪",name:"church",shortcodes:["church"],tags:["christian","cross","religion"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26ea.png"},{emoji:"🕌",name:"mosque",shortcodes:["mosque"],tags:["islam","muslim","religion"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f54c.png"},{emoji:"🛕",name:"hindu_temple",shortcodes:["hindu_temple"],tags:["hindu","temple"],group:"travel & places",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6d5.png"},{emoji:"🕍",name:"synagogue",shortcodes:["synagogue"],tags:["jew","jewish","religion","temple"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f54d.png"},{emoji:"⛩",name:"shinto_shrine",shortcodes:["shinto_shrine"],tags:["religion","shinto","shrine"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26e9-fe0f.png"},{emoji:"🕋",name:"kaaba",shortcodes:["kaaba"],tags:["islam","muslim","religion"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f54b.png"},{emoji:"⛲",name:"fountain",shortcodes:["fountain"],tags:["fountain"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f2.png"},{emoji:"⛺",name:"tent",shortcodes:["tent"],tags:["camping"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26fa.png"}
299,{emoji:"🌁",name:"foggy",shortcodes:["foggy"],tags:["fog"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f301.png"},{emoji:"🌃",name:"night_with_stars",shortcodes:["night_with_stars"],tags:["night","star"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f303.png"},{emoji:"🏙",name:"cityscape",shortcodes:["cityscape"],tags:["city"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3d9-fe0f.png"},{emoji:"🌄",name:"sunrise_over_mountains",shortcodes:["sunrise_over_mountains"],tags:["morning","mountain","sun","sunrise"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f304.png"},{emoji:"🌅",name:"sunrise",shortcodes:["sunrise"],tags:["morning","sun"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f305.png"},{emoji:"🌆",name:"city_sunset",shortcodes:["city_dusk"],tags:["city","dusk","evening","landscape","sunset"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f306.png"},{emoji:"🌇",name:"city_sunrise",shortcodes:["city_sunrise","city_sunset"],tags:["dusk","sun"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f307.png"},{emoji:"🌉",name:"bridge_at_night",shortcodes:["bridge_at_night"],tags:["bridge","night"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f309.png"},{emoji:"♨",name:"hotsprings",shortcodes:["hotsprings"],tags:["hot","hotsprings","springs","steaming"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2668-fe0f.png"},{emoji:"🎠",name:"carousel_horse",shortcodes:["carousel_horse"],tags:["carousel","horse"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3a0.png"},{emoji:"🛝",name:"playground_slide",shortcodes:["playground_slide","slide"],tags:["amusement park","play","theme park"],group:"travel & places",emoticons:[],version:14},{emoji:"🎡",name:"ferris_wheel",shortcodes:["ferris_wheel"],tags:["amusement park","ferris","theme park","wheel"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3a1.png"},{emoji:"🎢",name:"roller_coaster",shortcodes:["roller_coaster"],tags:["amusement park","coaster","roller","theme park"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3a2.png"},{emoji:"💈",name:"barber",shortcodes:["barber","barber_pole"],tags:["barber","haircut","pole"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f488.png"},{emoji:"🎪",name:"circus_tent",shortcodes:["circus_tent"],tags:["circus","tent"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3aa.png"},{emoji:"🚂",name:"steam_locomotive",shortcodes:["steam_locomotive"],tags:["engine","railway","steam","train"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f682.png"},{emoji:"🚃",name:"railway_car",shortcodes:["railway_car"],tags:["car","electric","railway","train","tram","trolleybus"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f683.png"},{emoji:"🚄",name:"bullettrain_side",shortcodes:["bullettrain_side"],tags:["railway","shinkansen","speed","train"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f684.png"},{emoji:"🚅",name:"bullettrain_front",shortcodes:["bullettrain_front"],tags:["bullet","railway","shinkansen","speed","train"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f685.png"},{emoji:"🚆",name:"train2",shortcodes:["train"],tags:["railway"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f686.png"},{emoji:"🚇",name:"metro",shortcodes:["metro"],tags:["subway"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f687.png"},{emoji:"🚈",name:"light_rail",shortcodes:["light_rail"],tags:["railway"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f688.png"}
299,{emoji:"🚉",name:"station",shortcodes:["station"],tags:["railway","train"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f689.png"},{emoji:"🚊",name:"tram",shortcodes:["tram"],tags:["trolleybus"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f68a.png"},{emoji:"🚝",name:"monorail",shortcodes:["monorail"],tags:["vehicle"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f69d.png"},{emoji:"🚞",name:"mountain_railway",shortcodes:["mountain_railway"],tags:["car","mountain","railway"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f69e.png"},{emoji:"🚋",name:"train",shortcodes:["tram_car"],tags:["car","tram","trolleybus"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f68b.png"},{emoji:"🚌",name:"bus",shortcodes:["bus"],tags:["vehicle"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f68c.png"},{emoji:"🚍",name:"oncoming_bus",shortcodes:["oncoming_bus"],tags:["bus","oncoming"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f68d.png"},{emoji:"🚎",name:"trolleybus",shortcodes:["trolleybus"],tags:["bus","tram","trolley"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f68e.png"},{emoji:"🚐",name:"minibus",shortcodes:["minibus"],tags:["bus"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f690.png"},{emoji:"🚑",name:"ambulance",shortcodes:["ambulance"],tags:["vehicle"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f691.png"},{emoji:"🚒",name:"fire_engine",shortcodes:["fire_engine"],tags:["engine","fire","truck"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f692.png"},{emoji:"🚓",name:"police_car",shortcodes:["police_car"],tags:["car","patrol","police"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f693.png"},{emoji:"🚔",name:"oncoming_police_car",shortcodes:["oncoming_police_car"],tags:["car","oncoming","police"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f694.png"},{emoji:"🚕",name:"taxi",shortcodes:["taxi"],tags:["vehicle"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f695.png"},{emoji:"🚖",name:"oncoming_taxi",shortcodes:["oncoming_taxi"],tags:["oncoming","taxi"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f696.png"},{emoji:"🚗",name:"car",shortcodes:["car","red_car"],tags:["car"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f697.png"},{emoji:"🚘",name:"oncoming_automobile",shortcodes:["oncoming_automobile"],tags:["automobile","car","oncoming"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f698.png"},{emoji:"🚙",name:"blue_car",shortcodes:["blue_car","suv"],tags:["recreational","sport utility"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f699.png"},{emoji:"🛻",name:"pickup_truck",shortcodes:["pickup_truck"],tags:["pick-up","pickup","truck"],group:"travel & places",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6fb.png"},{emoji:"🚚",name:"truck",shortcodes:["delivery_truck","truck"],tags:["delivery","truck"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f69a.png"},{emoji:"🚛",name:"articulated_lorry",shortcodes:["articulated_lorry"],tags:["lorry","semi","truck"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f69b.png"},{emoji:"🚜",name:"tractor",shortcodes:["tractor"],tags:["vehicle"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f69c.png"},{emoji:"🏎",name:"racing_car",shortcodes:["racing_car"],tags:["car","racing"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ce-fe0f.png"},{emoji:"🏍",name:"motorcycle",shortcodes:["motorcycle"],tags:["racing"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3cd-fe0f.png"},{emoji:"🛵",name:"motor_scooter",shortcodes:["motor_scooter"],tags:["motor","scooter"],group:"travel & places",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6f5.png"},{emoji:"🦽",name:"manual_wheelchair",shortcodes:["manual_wheelchair"],tags:["accessibility"],group:"travel & places",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9bd.png"},{emoji:"🦼",name:"motorized_wheelchair",shortcodes:["motorized_wheelchair"],tags:["accessibility"],group:"travel & places",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9bc.png"},{emoji:"🛺",name:"auto_rickshaw",shortcodes:["auto_rickshaw"],tags:["tuk tuk"],group:"travel & places",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6fa.png"},{emoji:"🚲",name:"bike",shortcodes:["bicycle","bike"],tags:["bike"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b2.png"},{emoji:"🛴",name:"kick_scooter",shortcodes:["scooter"],tags:["kick","scooter"],group:"travel & places",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6f4.png"}
299,{emoji:"🛹",name:"skateboard",shortcodes:["skateboard"],tags:["board"],group:"travel & places",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6f9.png"},{emoji:"🛼",name:"roller_skate",shortcodes:["roller_skate"],tags:["roller","skate"],group:"travel & places",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6fc.png"},{emoji:"🚏",name:"busstop",shortcodes:["busstop"],tags:["bus","stop"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f68f.png"},{emoji:"🛣",name:"motorway",shortcodes:["motorway"],tags:["highway","road"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6e3-fe0f.png"},{emoji:"🛤",name:"railway_track",shortcodes:["railway_track"],tags:["railway","train"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6e4-fe0f.png"},{emoji:"🛢",name:"oil_drum",shortcodes:["oil_drum"],tags:["drum","oil"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6e2-fe0f.png"},{emoji:"⛽",name:"fuelpump",shortcodes:["fuelpump"],tags:["diesel","fuel","fuelpump","gas","pump","station"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26fd.png"},{emoji:"🛞",name:"wheel",shortcodes:["wheel"],tags:["circle","tire","turn"],group:"travel & places",emoticons:[],version:14},{emoji:"🚨",name:"rotating_light",shortcodes:["rotating_light"],tags:["beacon","car","light","police","revolving"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a8.png"},{emoji:"🚥",name:"traffic_light",shortcodes:["traffic_light"],tags:["light","signal","traffic"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a5.png"},{emoji:"🚦",name:"vertical_traffic_light",shortcodes:["vertical_traffic_light"],tags:["light","signal","traffic"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a6.png"},{emoji:"🛑",name:"stop_sign",shortcodes:["octagonal_sign","stop_sign"],tags:["octagonal","sign","stop"],group:"travel & places",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6d1.png"},{emoji:"🚧",name:"construction",shortcodes:["construction"],tags:["barrier"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a7.png"},{emoji:"⚓",name:"anchor",shortcodes:["anchor"],tags:["ship","tool"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2693.png"},{emoji:"🛟",name:"ring_buoy",shortcodes:["lifebuoy","ring_buoy"],tags:["float","life preserver","life saver","rescue","safety"],group:"travel & places",emoticons:[],version:14},{emoji:"⛵",name:"boat",shortcodes:["sailboat"],tags:["boat","resort","sea","yacht"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f5.png"},{emoji:"🛶",name:"canoe",shortcodes:["canoe"],tags:["boat"],group:"travel & places",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6f6.png"},{emoji:"🚤",name:"speedboat",shortcodes:["speedboat"],tags:["boat"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a4.png"},{emoji:"🛳",name:"passenger_ship",shortcodes:["cruise_ship","passenger_ship"],tags:["passenger","ship"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6f3-fe0f.png"},{emoji:"⛴",name:"ferry",shortcodes:["ferry"],tags:["boat","passenger"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f4-fe0f.png"},{emoji:"🛥",name:"motor_boat",shortcodes:["motorboat"],tags:["boat","motorboat"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6e5-fe0f.png"},{emoji:"🚢",name:"ship",shortcodes:["ship"],tags:["boat","passenger"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a2.png"},{emoji:"✈",name:"airplane",shortcodes:["airplane"],tags:["aeroplane"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2708-fe0f.png"},{emoji:"🛩",name:"small_airplane",shortcodes:["small_airplane"],tags:["aeroplane","airplane"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6e9-fe0f.png"},{emoji:"🛫",name:"flight_departure",shortcodes:["airplane_departure"],tags:["aeroplane","airplane","check-in","departure","departures"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6eb.png"},{emoji:"🛬",name:"flight_arrival",shortcodes:["airplane_arriving"],tags:["aeroplane","airplane","arrivals","arriving","landing"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6ec.png"},{emoji:"🪂",name:"parachute",shortcodes:["parachute"],tags:["hang-glide","parasail","skydive"],group:"travel & places",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa82.png"},{emoji:"💺",name:"seat",shortcodes:["seat"],tags:["chair"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ba.png"},{emoji:"🚁",name:"helicopter",shortcodes:["helicopter"],tags:["vehicle"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f681.png"},{emoji:"🚟",name:"suspension_railway",shortcodes:["suspension_railway"],tags:["railway","suspension"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f69f.png"},{emoji:"🚠",name:"mountain_cableway",shortcodes:["mountain_cableway"],tags:["cable","gondola","mountain"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a0.png"},{emoji:"🚡",name:"aerial_tramway",shortcodes:["aerial_tramway"],tags:["aerial","cable","car","gondola","tramway"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a1.png"},{emoji:"🛰",name:"artificial_satellite",shortcodes:["satellite"],tags:["space"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6f0-fe0f.png"},{emoji:"🚀",name:"rocket",shortcodes:["rocket"],tags:["space"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f680.png"},{emoji:"🛸",name:"flying_saucer",shortcodes:["flying_saucer"],tags:["ufo"],group:"travel & places",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6f8.png"},{emoji:"🛎",name:"bellhop_bell",shortcodes:["bellhop"],tags:["bell","bellhop","hotel"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6ce-fe0f.png"},{emoji:"🧳",name:"luggage",shortcodes:["luggage"],tags:["packing","travel"],group:"travel & places",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9f3.png"},{emoji:"⌛",name:"hourglass",shortcodes:["hourglass"],tags:["sand","timer"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/231b.png"},{emoji:"⏳",name:"hourglass_flowing_sand",shortcodes:["hourglass_flowing_sand"],tags:["hourglass","sand","timer"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23f3.png"}
299,{emoji:"⌚",name:"watch",shortcodes:["watch"],tags:["clock"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/231a.png"},{emoji:"⏰",name:"alarm_clock",shortcodes:["alarm_clock"],tags:["alarm","clock"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23f0.png"},{emoji:"⏱",name:"stopwatch",shortcodes:["stopwatch"],tags:["clock"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23f1-fe0f.png"},{emoji:"⏲",name:"timer_clock",shortcodes:["timer_clock"],tags:["clock","timer"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23f2-fe0f.png"},{emoji:"🕰",name:"mantelpiece_clock",shortcodes:["clock"],tags:["clock"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f570-fe0f.png"},{emoji:"🕛",name:"clock12",shortcodes:["clock12"],tags:["00","12","12:00","clock","o’clock","twelve"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f55b.png"},{emoji:"🕧",name:"clock1230",shortcodes:["clock1230"],tags:["12","12:30","clock","thirty","twelve"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f567.png"},{emoji:"🕐",name:"clock1",shortcodes:["clock1"],tags:["00","1","1:00","clock","one","o’clock"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f550.png"},{emoji:"🕜",name:"clock130",shortcodes:["clock130"],tags:["1","1:30","clock","one","thirty"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f55c.png"},{emoji:"🕑",name:"clock2",shortcodes:["clock2"],tags:["00","2","2:00","clock","o’clock","two"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f551.png"},{emoji:"🕝",name:"clock230",shortcodes:["clock230"],tags:["2","2:30","clock","thirty","two"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f55d.png"},{emoji:"🕒",name:"clock3",shortcodes:["clock3"],tags:["00","3","3:00","clock","o’clock","three"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f552.png"},{emoji:"🕞",name:"clock330",shortcodes:["clock330"],tags:["3","3:30","clock","thirty","three"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f55e.png"},{emoji:"🕓",name:"clock4",shortcodes:["clock4"],tags:["00","4","4:00","clock","four","o’clock"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f553.png"},{emoji:"🕟",name:"clock430",shortcodes:["clock430"],tags:["4","4:30","clock","four","thirty"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f55f.png"},{emoji:"🕔",name:"clock5",shortcodes:["clock5"],tags:["00","5","5:00","clock","five","o’clock"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f554.png"},{emoji:"🕠",name:"clock530",shortcodes:["clock530"],tags:["5","5:30","clock","five","thirty"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f560.png"},{emoji:"🕕",name:"clock6",shortcodes:["clock6"],tags:["00","6","6:00","clock","o’clock","six"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f555.png"},{emoji:"🕡",name:"clock630",shortcodes:["clock630"],tags:["6","6:30","clock","six","thirty"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f561.png"},{emoji:"🕖",name:"clock7",shortcodes:["clock7"],tags:["00","7","7:00","clock","o’clock","seven"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f556.png"},{emoji:"🕢",name:"clock730",shortcodes:["clock730"],tags:["7","7:30","clock","seven","thirty"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f562.png"},{emoji:"🕗",name:"clock8",shortcodes:["clock8"],tags:["00","8","8:00","clock","eight","o’clock"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f557.png"},{emoji:"🕣",name:"clock830",shortcodes:["clock830"],tags:["8","8:30","clock","eight","thirty"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f563.png"},{emoji:"🕘",name:"clock9",shortcodes:["clock9"],tags:["00","9","9:00","clock","nine","o’clock"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f558.png"},{emoji:"🕤",name:"clock930",shortcodes:["clock930"],tags:["9","9:30","clock","nine","thirty"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f564.png"},{emoji:"🕙",name:"clock10",shortcodes:["clock10"],tags:["00","10","10:00","clock","o’clock","ten"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f559.png"},{emoji:"🕥",name:"clock1030",shortcodes:["clock1030"],tags:["10","10:30","clock","ten","thirty"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f565.png"},{emoji:"🕚",name:"clock11",shortcodes:["clock11"],tags:["00","11","11:00","clock","eleven","o’clock"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f55a.png"},{emoji:"🕦",name:"clock1130",shortcodes:["clock1130"],tags:["11","11:30","clock","eleven","thirty"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f566.png"},{emoji:"🌑",name:"new_moon",shortcodes:["new_moon"],tags:["dark","moon"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f311.png"},{emoji:"🌒",name:"waxing_crescent_moon",shortcodes:["waxing_crescent_moon"],tags:["crescent","moon","waxing"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f312.png"},{emoji:"🌓",name:"first_quarter_moon",shortcodes:["first_quarter_moon"],tags:["moon","quarter"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f313.png"},{emoji:"🌔",name:"moon",shortcodes:["waxing_gibbous_moon"],tags:["gibbous","moon","waxing"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f314.png"},{emoji:"🌕",name:"full_moon",shortcodes:["full_moon"],tags:["full","moon"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f315.png"},{emoji:"🌖",name:"waning_gibbous_moon",shortcodes:["waning_gibbous_moon"],tags:["gibbous","moon","waning"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f316.png"},{emoji:"🌗",name:"last_quarter_moon",shortcodes:["last_quarter_moon"],tags:["moon","quarter"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f317.png"},{emoji:"🌘",name:"waning_crescent_moon",shortcodes:["waning_crescent_moon"],tags:["crescent","moon","waning"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f318.png"},{emoji:"🌙",name:"crescent_moon",shortcodes:["crescent_moon"],tags:["crescent","moon"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f319.png"}
299,{emoji:"🌚",name:"new_moon_with_face",shortcodes:["new_moon_with_face"],tags:["face","moon"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f31a.png"},{emoji:"🌛",name:"first_quarter_moon_with_face",shortcodes:["first_quarter_moon_with_face"],tags:["face","moon","quarter"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f31b.png"},{emoji:"🌜",name:"last_quarter_moon_with_face",shortcodes:["last_quarter_moon_with_face"],tags:["face","moon","quarter"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f31c.png"},{emoji:"🌡",name:"thermometer",shortcodes:["thermometer"],tags:["weather"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f321-fe0f.png"},{emoji:"☀",name:"sunny",shortcodes:["sun"],tags:["bright","rays","sunny"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2600-fe0f.png"},{emoji:"🌝",name:"full_moon_with_face",shortcodes:["full_moon_with_face"],tags:["bright","face","full","moon"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f31d.png"},{emoji:"🌞",name:"sun_with_face",shortcodes:["sun_with_face"],tags:["bright","face","sun"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f31e.png"},{emoji:"🪐",name:"ringed_planet",shortcodes:["ringed_planet","saturn"],tags:["saturn","saturnine"],group:"travel & places",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa90.png"},{emoji:"⭐",name:"star",shortcodes:["star"],tags:["star"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2b50.png"},{emoji:"🌟",name:"star2",shortcodes:["glowing_star","star2"],tags:["glittery","glow","shining","sparkle","star"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f31f.png"},{emoji:"🌠",name:"stars",shortcodes:["shooting_star","stars"],tags:["falling","shooting","star"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f320.png"},{emoji:"🌌",name:"milky_way",shortcodes:["milky_way"],tags:["space"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f30c.png"},{emoji:"☁",name:"cloud",shortcodes:["cloud"],tags:["weather"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2601-fe0f.png"},{emoji:"⛅",name:"partly_sunny",shortcodes:["partly_sunny","sun_behind_cloud"],tags:["cloud","sun"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26c5.png"},{emoji:"⛈",name:"cloud_with_lightning_and_rain",shortcodes:["stormy","thunder_cloud_and_rain"],tags:["cloud","rain","thunder"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26c8-fe0f.png"},{emoji:"🌤",name:"sun_behind_small_cloud",shortcodes:["sun_behind_small_cloud","sunny"],tags:["cloud","sun"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f324-fe0f.png"},{emoji:"🌥",name:"sun_behind_large_cloud",shortcodes:["cloudy","sun_behind_large_cloud"],tags:["cloud","sun"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f325-fe0f.png"},{emoji:"🌦",name:"sun_behind_rain_cloud",shortcodes:["sun_and_rain","sun_behind_rain_cloud"],tags:["cloud","rain","sun"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f326-fe0f.png"},{emoji:"🌧",name:"cloud_with_rain",shortcodes:["cloud_with_rain","rainy"],tags:["cloud","rain"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f327-fe0f.png"},{emoji:"🌨",name:"cloud_with_snow",shortcodes:["cloud_with_snow","snowy"],tags:["cloud","cold","snow"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f328-fe0f.png"},{emoji:"🌩",name:"cloud_with_lightning",shortcodes:["cloud_with_lightning","lightning"],tags:["cloud","lightning"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f329-fe0f.png"},{emoji:"🌪",name:"tornado",shortcodes:["tornado"],tags:["cloud","whirlwind"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f32a-fe0f.png"},{emoji:"🌫",name:"fog",shortcodes:["fog"],tags:["cloud"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f32b-fe0f.png"},{emoji:"🌬",name:"wind_face",shortcodes:["wind_blowing_face"],tags:["blow","cloud","face","wind"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f32c-fe0f.png"},{emoji:"🌀",name:"cyclone",shortcodes:["cyclone"],tags:["dizzy","hurricane","twister","typhoon"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f300.png"},{emoji:"🌈",name:"rainbow",shortcodes:["rainbow"],tags:["rain"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f308.png"},{emoji:"🌂",name:"closed_umbrella",shortcodes:["closed_umbrella"],tags:["clothing","rain","umbrella"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f302.png"},{emoji:"☂",name:"open_umbrella",shortcodes:["umbrella"],tags:["clothing","rain"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2602-fe0f.png"},{emoji:"☔",name:"umbrella",shortcodes:["umbrella_with_rain"],tags:["clothing","drop","rain","umbrella"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2614.png"},{emoji:"⛱",name:"parasol_on_ground",shortcodes:["beach_umbrella","umbrella_on_ground"],tags:["rain","sun","umbrella"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f1-fe0f.png"},{emoji:"⚡",name:"zap",shortcodes:["high_voltage","zap"],tags:["danger","electric","lightning","voltage","zap"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26a1.png"},{emoji:"❄",name:"snowflake",shortcodes:["snowflake"],tags:["cold","snow"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2744-fe0f.png"},{emoji:"☃",name:"snowman_with_snow",shortcodes:["snowman2"],tags:["cold","snow"],group:"travel & places",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2603-fe0f.png"},{emoji:"⛄",name:"snowman",shortcodes:["snowman"],tags:["cold","snow","snowman"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26c4.png"},{emoji:"☄",name:"comet",shortcodes:["comet"],tags:["space"],group:"travel & places",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2604-fe0f.png"},{emoji:"🔥",name:"fire",shortcodes:["fire"],tags:["flame","tool"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f525.png"},{emoji:"💧",name:"droplet",shortcodes:["droplet"],tags:["cold","comic","drop","sweat"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4a7.png"},{emoji:"🌊",name:"ocean",shortcodes:["ocean","water_wave"],tags:["ocean","water","wave"],group:"travel & places",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f30a.png"},{emoji:"🎃",name:"jack_o_lantern",shortcodes:["jack_o_lantern"],tags:["celebration","halloween","jack","lantern"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f383.png"},{emoji:"🎄",name:"christmas_tree",shortcodes:["christmas_tree"],tags:["celebration","christmas","tree"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f384.png"},{emoji:"🎆",name:"fireworks",shortcodes:["fireworks"],tags:["celebration"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f386.png"},{emoji:"🎇",name:"sparkler",shortcodes:["sparkler"],tags:["celebration","fireworks","
299sparkle"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f387.png"},{emoji:"🧨",name:"firecracker",shortcodes:["firecracker"],tags:["dynamite","explosive","fireworks"],group:"activities",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9e8.png"},{emoji:"✨",name:"sparkles",shortcodes:["sparkles"],tags:["*","sparkle","star"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2728.png"},{emoji:"🎈",name:"balloon",shortcodes:["balloon"],tags:["celebration"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f388.png"},{emoji:"🎉",name:"tada",shortcodes:["party","party_popper","tada"],tags:["celebration","party","popper","tada"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f389.png"},{emoji:"🎊",name:"confetti_ball",shortcodes:["confetti_ball"],tags:["ball","celebration","confetti"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f38a.png"},{emoji:"🎋",name:"tanabata_tree",shortcodes:["tanabata_tree"],tags:["banner","celebration","japanese","tree"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f38b.png"},{emoji:"🎍",name:"bamboo",shortcodes:["bamboo"],tags:["bamboo","celebration","japanese","pine"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f38d.png"},{emoji:"🎎",name:"dolls",shortcodes:["dolls"],tags:["celebration","doll","festival","japanese","japanese dolls"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f38e.png"},{emoji:"🎏",name:"flags",shortcodes:["carp_streamer","flags"],tags:["carp","celebration","streamer"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f38f.png"},{emoji:"🎐",name:"wind_chime",shortcodes:["wind_chime"],tags:["bell","celebration","chime","wind"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f390.png"},{emoji:"🎑",name:"rice_scene",shortcodes:["moon_ceremony","rice_scene"],tags:["celebration","ceremony","moon"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f391.png"},{emoji:"🧧",name:"red_envelope",shortcodes:["red_envelope"],tags:["gift","good luck","hóngbāo","lai see","money"],group:"activities",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9e7.png"},{emoji:"🎀",name:"ribbon",shortcodes:["ribbon"],tags:["celebration"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f380.png"},{emoji:"🎁",name:"gift",shortcodes:["gift"],tags:["box","celebration","gift","present","wrapped"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f381.png"},{emoji:"🎗",name:"reminder_ribbon",shortcodes:["reminder_ribbon"],tags:["celebration","reminder","ribbon"],group:"activities",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f397-fe0f.png"},{emoji:"🎟",name:"tickets",shortcodes:["admission_tickets","tickets"],tags:["admission","ticket"],group:"activities",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f39f-fe0f.png"},{emoji:"🎫",name:"ticket",shortcodes:["ticket"],tags:["admission"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ab.png"},{emoji:"🎖",name:"medal_military",shortcodes:["military_medal"],tags:["celebration","medal","military"],group:"activities",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f396-fe0f.png"},{emoji:"🏆",name:"trophy",shortcodes:["trophy"],tags:["prize"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c6.png"},{emoji:"🏅",name:"medal_sports",shortcodes:["sports_medal"],tags:["medal"],group:"activities",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c5.png"},{emoji:"🥇",name:"1st_place_medal",shortcodes:["1st","first_place_medal"],tags:["first","gold","medal"],group:"activities",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f947.png"},{emoji:"🥈",name:"2nd_place_medal",shortcodes:["2nd","second_place_medal"],tags:["medal","second","silver"],group:"activities",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f948.png"},{emoji:"🥉",name:"3rd_place_medal",shortcodes:["3rd","third_place_medal"],tags:["bronze","medal","third"],group:"activities",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f949.png"},{emoji:"⚽",name:"soccer",shortcodes:["soccer"],tags:["ball","football","soccer"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26bd.png"},{emoji:"⚾",name:"baseball",shortcodes:["baseball"],tags:["ball"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26be.png"},{emoji:"🥎",name:"softball",shortcodes:["softball"],tags:["ball","glove","underarm"],group:"activities",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f94e.png"},{emoji:"🏀",name:"basketball",shortcodes:["basketball"],tags:["ball","hoop"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c0.png"},{emoji:"🏐",name:"volleyball",shortcodes:["volleyball"],tags:["ball","game"],group:"activities",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3d0.png"},{emoji:"🏈",name:"football",shortcodes:["football"],tags:["american","ball","football"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c8.png"},{emoji:"🏉",name:"rugby_football",shortcodes:["rugby_football"],tags:["ball","football","rugby"],group:"activities",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c9.png"},{emoji:"🎾",name:"tennis",shortcodes:["tennis"],tags:["ball","racquet"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3be.png"},{emoji:"🥏",name:"flying_disc",shortcodes:["flying_disc"],tags:["ultimate"],group:"activities",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f94f.png"},{emoji:"🎳",name:"bowling",shortcodes:["bowling"],tags:["ball","game"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3b3.png"},{emoji:"🏏",name:"cricket_game",shortcodes:["cricket_game"],tags:["ball","bat","game"],group:"activities",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3cf.png"},{emoji:"🏑",name:"field_hockey",shortcodes:["field_hockey"],tags:["ball","field","game","hockey","stick"],group:"activities",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3d1.png"},{emoji:"🏒",name:"ice_hockey",shortcodes:["hockey"],tags:["game","hockey","ice","puck","stick"],group:"activities",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3d2.png"},{emoji:"🥍",name:"lacrosse",shortcodes:["lacrosse"],tags:["ball","goal","stick"],group:"activities",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f94d.png"},{emoji:"🏓",name:"ping_pong",shortcodes:["ping_pong"],tags:["ball","bat","game","paddle","table tennis"],group:"activities",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3d3.png"}
299,{emoji:"🏸",name:"badminton",shortcodes:["badminton"],tags:["birdie","game","racquet","shuttlecock"],group:"activities",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f8.png"},{emoji:"🥊",name:"boxing_glove",shortcodes:["boxing_glove"],tags:["boxing","glove"],group:"activities",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f94a.png"},{emoji:"🥋",name:"martial_arts_uniform",shortcodes:["martial_arts_uniform"],tags:["judo","karate","martial arts","taekwondo","uniform"],group:"activities",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f94b.png"},{emoji:"🥅",name:"goal_net",shortcodes:["goal_net"],tags:["goal","net"],group:"activities",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f945.png"},{emoji:"⛳",name:"golf",shortcodes:["golf"],tags:["golf","hole"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f3.png"},{emoji:"⛸",name:"ice_skate",shortcodes:["ice_skate"],tags:["ice","skate"],group:"activities",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26f8-fe0f.png"},{emoji:"🎣",name:"fishing_pole_and_fish",shortcodes:["fishing_pole","fishing_pole_and_fish"],tags:["fish","pole"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3a3.png"},{emoji:"🤿",name:"diving_mask",shortcodes:["diving_mask"],tags:["diving","scuba","snorkeling"],group:"activities",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f93f.png"},{emoji:"🎽",name:"running_shirt_with_sash",shortcodes:["running_shirt","running_shirt_with_sash"],tags:["athletics","running","sash","shirt"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3bd.png"},{emoji:"🎿",name:"ski",shortcodes:["ski"],tags:["ski","snow"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3bf.png"},{emoji:"🛷",name:"sled",shortcodes:["sled"],tags:["sledge","sleigh"],group:"activities",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6f7.png"},{emoji:"🥌",name:"curling_stone",shortcodes:["curling_stone"],tags:["game","rock"],group:"activities",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f94c.png"},{emoji:"🎯",name:"dart",shortcodes:["bullseye","dart","direct_hit"],tags:["dart","direct hit","game","hit","target"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3af.png"},{emoji:"🪀",name:"yo_yo",shortcodes:["yo_yo"],tags:["fluctuate","toy"],group:"activities",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa80.png"},{emoji:"🪁",name:"kite",shortcodes:["kite"],tags:["fly","soar"],group:"activities",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa81.png"},{emoji:"🔫",name:"gun",shortcodes:["gun","pistol"],tags:["gun","handgun","pistol","revolver","tool","water","weapon"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f52b.png"},{emoji:"🎱",name:"8ball",shortcodes:["8ball","billiards"],tags:["8","ball","billiard","eight","game"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3b1.png"},{emoji:"🔮",name:"crystal_ball",shortcodes:["crystal_ball"],tags:["ball","crystal","fairy tale","fantasy","fortune","tool"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f52e.png"},{emoji:"🪄",name:"magic_wand",shortcodes:["magic_wand"],tags:["magic","witch","wizard"],group:"activities",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa84.png"},{emoji:"🎮",name:"video_game",shortcodes:["controller","video_game"],tags:["controller","game"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ae.png"},{emoji:"🕹",name:"joystick",shortcodes:["joystick"],tags:["game","video game"],group:"activities",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f579-fe0f.png"},{emoji:"🎰",name:"slot_machine",shortcodes:["slot_machine"],tags:["game","slot"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3b0.png"},{emoji:"🎲",name:"game_die",shortcodes:["game_die"],tags:["dice","die","game"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3b2.png"},{emoji:"🧩",name:"jigsaw",shortcodes:["jigsaw","puzzle_piece"],tags:["clue","interlocking","jigsaw","piece","puzzle"],group:"activities",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9e9.png"},{emoji:"🧸",name:"teddy_bear",shortcodes:["teddy_bear"],tags:["plaything","plush","stuffed","toy"],group:"activities",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9f8.png"},{emoji:"🪅",name:"pinata",shortcodes:["pinata"],tags:["celebration","party"],group:"activities",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa85.png"},{emoji:"🪩",name:"mirror_ball",shortcodes:["disco","disco_ball","mirror_ball"],tags:["dance","disco","glitter","party"],group:"activities",emoticons:[],version:14},{emoji:"🪆",name:"nesting_dolls",shortcodes:["nesting_dolls"],tags:["doll","nesting","russia"],group:"activities",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa86.png"},{emoji:"♠",name:"spades",shortcodes:["spades"],tags:["card","game"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2660-fe0f.png"},{emoji:"♥",name:"hearts",shortcodes:["hearts"],tags:["card","game"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2665-fe0f.png"},{emoji:"♦",name:"diamonds",shortcodes:["diamonds"],tags:["card","game"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2666-fe0f.png"},{emoji:"♣",name:"clubs",shortcodes:["clubs"],tags:["card","game"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2663-fe0f.png"},{emoji:"♟",name:"chess_pawn",shortcodes:["chess_pawn"],tags:["chess","dupe","expendable"],group:"activities",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/265f-fe0f.png"},{emoji:"🃏",name:"black_joker",shortcodes:["black_joker"],tags:["card","game","wildcard"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f0cf.png"},{emoji:"🀄",name:"mahjong",shortcodes:["mahjong"],tags:["game","mahjong","red"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f004.png"},{emoji:"🎴",name:"flower_playing_cards",shortcodes:["flower_playing_cards"],tags:["card","flower","game","japanese","playing"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3b4.png"},{emoji:"🎭",name:"performing_arts",shortcodes:["performing_arts"],tags:["art","mask","performing","theater","theatre"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ad.png"},{emoji:"🖼",name:"framed_picture",shortcodes:["frame_with_picture","framed_picture"],tags:["art","frame","museum","painting","picture"],group:"activities",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5bc-fe0f.png"},{emoji:"🎨",name:"art",shortcodes:["art","palette"],tags:["art","museum","painting","palette"],group:"activities",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3a8.png"},{emoji:"🧵",name:"thread",shortcodes:["thread"],tags:["needle","sewing","spool","string"],group:"activities",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9f5.png"},{emoji:"🪡",name:"sewing_needle",shortcodes:["sewing_needle"],tags:["embroidery","needle","sewing","stitches","sutures","tailoring"],group:"activities",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1faa1.png"},{emoji:"🧶",name:"yarn",shortcodes:["yarn"],tags:["ball","crochet","knit"],group:"activities",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9f6.png"},{emoji:"🪢",name:"knot",shortcodes:["knot"],tags:["rope","tangled","tie","t
299wine","twist"],group:"activities",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1faa2.png"},{emoji:"👓",name:"eyeglasses",shortcodes:["eyeglasses","glasses"],tags:["clothing","eye","eyeglasses","eyewear"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f453.png"},{emoji:"🕶",name:"dark_sunglasses",shortcodes:["sunglasses"],tags:["dark","eye","eyewear","glasses"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f576-fe0f.png"},{emoji:"🥽",name:"goggles",shortcodes:["goggles"],tags:["eye protection","swimming","welding"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f97d.png"},{emoji:"🥼",name:"lab_coat",shortcodes:["lab_coat"],tags:["doctor","experiment","scientist"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f97c.png"},{emoji:"🦺",name:"safety_vest",shortcodes:["safety_vest"],tags:["emergency","safety","vest"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ba.png"},{emoji:"👔",name:"necktie",shortcodes:["necktie"],tags:["clothing","tie"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f454.png"},{emoji:"👕",name:"shirt",shortcodes:["shirt"],tags:["clothing","shirt","tshirt"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f455.png"},{emoji:"👖",name:"jeans",shortcodes:["jeans"],tags:["clothing","pants","trousers"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f456.png"},{emoji:"🧣",name:"scarf",shortcodes:["scarf"],tags:["neck"],group:"objects",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9e3.png"},{emoji:"🧤",name:"gloves",shortcodes:["gloves"],tags:["hand"],group:"objects",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9e4.png"},{emoji:"🧥",name:"coat",shortcodes:["coat"],tags:["jacket"],group:"objects",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9e5.png"},{emoji:"🧦",name:"socks",shortcodes:["socks"],tags:["stocking"],group:"objects",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9e6.png"},{emoji:"👗",name:"dress",shortcodes:["dress"],tags:["clothing"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f457.png"},{emoji:"👘",name:"kimono",shortcodes:["kimono"],tags:["clothing"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f458.png"},{emoji:"🥻",name:"sari",shortcodes:["sari"],tags:["clothing","dress"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f97b.png"},{emoji:"🩱",name:"one_piece_swimsuit",shortcodes:["one_piece_swimsuit"],tags:["bathing suit"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa71.png"},{emoji:"🩲",name:"swim_brief",shortcodes:["briefs"],tags:["bathing suit","one-piece","swimsuit","underwear"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa72.png"},{emoji:"🩳",name:"shorts",shortcodes:["shorts"],tags:["bathing suit","pants","underwear"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa73.png"},{emoji:"👙",name:"bikini",shortcodes:["bikini"],tags:["clothing","swim"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f459.png"},{emoji:"👚",name:"womans_clothes",shortcodes:["womans_clothes"],tags:["clothing","woman"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f45a.png"},{emoji:"🪭",name:"folding_hand_fan",shortcodes:["folding_fan"],tags:["cooling","dance","fan","flutter","hot","shy"],group:"objects",emoticons:[],version:15}
299,{emoji:"👛",name:"purse",shortcodes:["purse"],tags:["clothing","coin"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f45b.png"},{emoji:"👜",name:"handbag",shortcodes:["handbag"],tags:["bag","clothing","purse"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f45c.png"},{emoji:"👝",name:"pouch",shortcodes:["clutch_bag","pouch"],tags:["bag","clothing","pouch"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f45d.png"},{emoji:"🛍",name:"shopping",shortcodes:["shopping_bags"],tags:["bag","hotel","shopping"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6cd-fe0f.png"},{emoji:"🎒",name:"school_satchel",shortcodes:["backpack","school_satchel"],tags:["bag","rucksack","satchel","school"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f392.png"},{emoji:"🩴",name:"thong_sandal",shortcodes:["thong_sandal"],tags:["beach sandals","sandals","thong sandals","thongs","zōri"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa74.png"},{emoji:"👞",name:"mans_shoe",shortcodes:["mans_shoe"],tags:["clothing","man","shoe"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f45e.png"},{emoji:"👟",name:"athletic_shoe",shortcodes:["athletic_shoe","sneaker"],tags:["athletic","clothing","shoe","sneaker"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f45f.png"},{emoji:"🥾",name:"hiking_boot",shortcodes:["hiking_boot"],tags:["backpacking","boot","camping","hiking"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f97e.png"},{emoji:"🥿",name:"flat_shoe",shortcodes:["flat_shoe","womans_flat_shoe"],tags:["ballet flat","slip-on","slipper"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f97f.png"},{emoji:"👠",name:"high_heel",shortcodes:["high_heel"],tags:["clothing","heel","shoe","woman"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f460.png"},{emoji:"👡",name:"sandal",shortcodes:["sandal"],tags:["clothing","sandal","shoe","woman"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f461.png"},{emoji:"🩰",name:"ballet_shoes",shortcodes:["ballet_shoes"],tags:["ballet","dance"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa70.png"},{emoji:"👢",name:"boot",shortcodes:["boot"],tags:["boot","clothing","shoe","woman"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f462.png"},{emoji:"🪮",name:"hair_pick",shortcodes:["hair_pick"],tags:["afro","comb","hair","pick"],group:"objects",emoticons:[],version:15},{emoji:"👑",name:"crown",shortcodes:["crown"],tags:["clothing","king","queen"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f451.png"},{emoji:"👒",name:"womans_hat",shortcodes:["womans_hat"],tags:["clothing","hat","woman"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f452.png"},{emoji:"🎩",name:"tophat",shortcodes:["top_hat","tophat"],tags:["clothing","hat","top","tophat"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3a9.png"},{emoji:"🎓",name:"mortar_board",shortcodes:["graduation_cap","mortar_board"],tags:["cap","celebration","clothing","graduation","hat"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f393.png"},{emoji:"🧢",name:"billed_cap",shortcodes:["billed_cap"],tags:["baseball cap"],group:"objects",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9e2.png"},{emoji:"🪖",name:"military_helmet",shortcodes:["military_helmet"],tags:["army","helmet","military","soldier","warrior"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa96.png"},{emoji:"⛑",name:"rescue_worker_helmet",shortcodes:["helmet_with_cross","rescue_worker_helmet"],tags:["aid","cross","face","hat","helmet"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26d1-fe0f.png"},{emoji:"📿",name:"prayer_beads",shortcodes:["prayer_beads"],tags:["beads","clothing","necklace","prayer","religion"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ff.png"},{emoji:"💄",name:"lipstick",shortcodes:["lipstick"],tags:["cosmetics","makeup"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f484.png"},{emoji:"💍",name:"ring",shortcodes:["ring"],tags:["diamond"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f48d.png"},{emoji:"💎",name:"gem",shortcodes:["gem"],tags:["diamond","gem","jewel"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f48e.png"},{emoji:"🔇",name:"mute",shortcodes:["mute","no_sound"],tags:["mute","quiet","silent","speaker"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f507.png"},{emoji:"🔈",name:"speaker",shortcodes:["low_volume","quiet_sound","speaker"],tags:["soft"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f508.png"},{emoji:"🔉",name:"sound",shortcodes:["medium_volumne","sound"],tags:["medium"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f509.png"}
299,{emoji:"🔊",name:"loud_sound",shortcodes:["high_volume","loud_sound"],tags:["loud"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f50a.png"},{emoji:"📢",name:"loudspeaker",shortcodes:["loudspeaker"],tags:["loud","public address"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4e2.png"},{emoji:"📣",name:"mega",shortcodes:["mega","megaphone"],tags:["cheering"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4e3.png"},{emoji:"📯",name:"postal_horn",shortcodes:["postal_horn"],tags:["horn","post","postal"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ef.png"},{emoji:"🔔",name:"bell",shortcodes:["bell"],tags:["bell"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f514.png"},{emoji:"🔕",name:"no_bell",shortcodes:["no_bell"],tags:["bell","forbidden","mute","quiet","silent"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f515.png"},{emoji:"🎼",name:"musical_score",shortcodes:["musical_score"],tags:["music","score"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3bc.png"},{emoji:"🎵",name:"musical_note",shortcodes:["musical_note"],tags:["music","note"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3b5.png"},{emoji:"🎶",name:"notes",shortcodes:["musical_notes","notes"],tags:["music","note","notes"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3b6.png"},{emoji:"🎙",name:"studio_microphone",shortcodes:["studio_microphone"],tags:["mic","microphone","music","studio"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f399-fe0f.png"},{emoji:"🎚",name:"level_slider",shortcodes:["level_slider"],tags:["level","music","slider"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f39a-fe0f.png"},{emoji:"🎛",name:"control_knobs",shortcodes:["control_knobs"],tags:["control","knobs","music"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f39b-fe0f.png"},{emoji:"🎤",name:"microphone",shortcodes:["microphone"],tags:["karaoke","mic"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3a4.png"},{emoji:"🎧",name:"headphones",shortcodes:["headphones"],tags:["earbud"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3a7.png"},{emoji:"📻",name:"radio",shortcodes:["radio"],tags:["video"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4fb.png"},{emoji:"🎷",name:"saxophone",shortcodes:["saxophone"],tags:["instrument","music","sax"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3b7.png"},{emoji:"🪗",name:"accordion",shortcodes:["accordion"],tags:["concertina","squeeze box"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa97.png"},{emoji:"🎸",name:"guitar",shortcodes:["guitar"],tags:["instrument","music"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3b8.png"},{emoji:"🎹",name:"musical_keyboard",shortcodes:["musical_keyboard"],tags:["instrument","keyboard","music","piano"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3b9.png"},{emoji:"🎺",name:"trumpet",shortcodes:["trumpet"],tags:["instrument","music"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ba.png"},{emoji:"🎻",name:"violin",shortcodes:["violin"],tags:["instrument","music"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3bb.png"},{emoji:"🪕",name:"banjo",shortcodes:["banjo"],tags:["music","stringed"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa95.png"},{emoji:"🥁",name:"drum",shortcodes:["drum"],tags:["drumsticks","music"],group:"objects",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f941.png"},{emoji:"🪘",name:"long_drum",shortcodes:["long_drum"],tags:["beat","conga","drum","rhythm"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa98.png"},{emoji:"🪇",name:"maracas",shortcodes:["maracas"],tags:["instrument","music","percussion","rattle","shake"],group:"objects",emoticons:[],version:15},{emoji:"🪈",name:"flute",shortcodes:["flute"],tags:["fife","music","pipe","recorder","woodwind"],group:"objects",emoticons:[],version:15},{emoji:"📱",name:"iphone",shortcodes:["android","iphone","mobile_phone"],tags:["cell","mobile","phone","telephone"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4f1.png"},{emoji:"📲",name:"calling",shortcodes:["calling","mobile_phone_arrow"],tags:["arrow","cell","mobile","phone","receive"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4f2.png"},{emoji:"☎",name:"phone",shortcodes:["telephone"],tags:["phone"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/260e-fe0f.png"},{emoji:"📞",name:"telephone_receiver",shortcodes:["telephone_receiver"],tags:["phone","receiver","telephone"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4de.png"},{emoji:"📟",name:"pager",shortcodes:["pager"],tags:["pager"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4df.png"},{emoji:"📠",name:"fax",shortcodes:["fax","fax_machine"],tags:["fax"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4e0.png"},{emoji:"🔋",name:"battery",shortcodes:["battery"],tags:["battery"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f50b.png"},{emoji:"🪫",name:"low_battery",shortcodes:["low_battery"],tags:["electronic","low energy"],group:"objects",emoticons:[],version:14},{emoji:"🔌",name:"electric_plug",shortcodes:["electric_plug"],tags:["electric","electricity","plug"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f50c.png"},{emoji:"💻",name:"computer",shortcodes:["laptop"],tags:["computer","pc","personal"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4bb.png"},{emoji:"🖥",name:"desktop_computer",shortcodes:["computer","desktop_computer"],tags:["computer","desktop"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5a5-fe0f.png"},{emoji:"🖨",name:"printer",shortcodes:["printer"],tags:["computer"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5a8-fe0f.png"},{emoji:"⌨",name:"keyboard",shortcodes:["keyboard"],tags:["computer"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2328-fe0f.png"},{emoji:"🖱",name:"computer_mouse",shortcodes:["computer_mouse"],tags:["computer"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5b1-fe0f.png"},{emoji:"🖲",name:"trackball",shortcodes:["trackball"],tags:["computer"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5b2-fe0f.png"},{emoji:"💽",name:"minidisc",shortcodes:["computer_disk","minidisc"],tags:["computer","disk","minidisk","optical"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4bd.png"}
299,{emoji:"💾",name:"floppy_disk",shortcodes:["floppy_disk"],tags:["computer","disk","floppy"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4be.png"},{emoji:"💿",name:"cd",shortcodes:["cd","optical_disk"],tags:["cd","computer","disk","optical"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4bf.png"},{emoji:"📀",name:"dvd",shortcodes:["dvd"],tags:["blu-ray","computer","disk","optical"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4c0.png"},{emoji:"🧮",name:"abacus",shortcodes:["abacus"],tags:["calculation"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ee.png"},{emoji:"🎥",name:"movie_camera",shortcodes:["movie_camera"],tags:["camera","cinema","movie"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3a5.png"},{emoji:"🎞",name:"film_strip",shortcodes:["film_frames"],tags:["cinema","film","frames","movie"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f39e-fe0f.png"},{emoji:"📽",name:"film_projector",shortcodes:["film_projector"],tags:["cinema","film","movie","projector","video"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4fd-fe0f.png"},{emoji:"🎬",name:"clapper",shortcodes:["clapper"],tags:["clapper","movie"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ac.png"},{emoji:"📺",name:"tv",shortcodes:["tv"],tags:["tv","video"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4fa.png"},{emoji:"📷",name:"camera",shortcodes:["camera"],tags:["video"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4f7.png"},{emoji:"📸",name:"camera_flash",shortcodes:["camera_with_flash"],tags:["camera","flash","video"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4f8.png"},{emoji:"📹",name:"video_camera",shortcodes:["video_camera"],tags:["camera","video"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4f9.png"},{emoji:"📼",name:"vhs",shortcodes:["vhs","videocassette"],tags:["tape","vhs","video"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4fc.png"},{emoji:"🔍",name:"mag",shortcodes:["mag"],tags:["glass","magnifying","search","tool"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f50d.png"},{emoji:"🔎",name:"mag_right",shortcodes:["mag_right"],tags:["glass","magnifying","search","tool"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f50e.png"},{emoji:"🕯",name:"candle",shortcodes:["candle"],tags:["light"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f56f-fe0f.png"},{emoji:"💡",name:"bulb",shortcodes:["bulb","light_bulb"],tags:["bulb","comic","electric","idea","light"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4a1.png"},{emoji:"🔦",name:"flashlight",shortcodes:["flashlight"],tags:["electric","light","tool","torch"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f526.png"},{emoji:"🏮",name:"izakaya_lantern",shortcodes:["izakaya_lantern","red_paper_lantern"],tags:["bar","lantern","light","red"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3ee.png"},{emoji:"🪔",name:"diya_lamp",shortcodes:["diya_lamp"],tags:["diya","lamp","oil"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa94.png"},{emoji:"📔",name:"notebook_with_decorative_cover",shortcodes:["notebook_with_decorative_cover"],tags:["book","cover","decorated","notebook"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4d4.png"},{emoji:"📕",name:"closed_book",shortcodes:["closed_book"],tags:["book","closed"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4d5.png"},{emoji:"📖",name:"book",shortcodes:["book","open_book"],tags:["book","open"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4d6.png"},{emoji:"📗",name:"green_book",shortcodes:["green_book"],tags:["book","green"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4d7.png"},{emoji:"📘",name:"blue_book",shortcodes:["blue_book"],tags:["blue","book"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4d8.png"},{emoji:"📙",name:"orange_book",shortcodes:["orange_book"],tags:["book","orange"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4d9.png"},{emoji:"📚",name:"books",shortcodes:["books"],tags:["book"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4da.png"},{emoji:"📓",name:"notebook",shortcodes:["notebook"],tags:["notebook"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4d3.png"},{emoji:"📒",name:"ledger",shortcodes:["ledger"],tags:["notebook"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4d2.png"},{emoji:"📃",name:"page_with_curl",shortcodes:["page_with_curl"],tags:["curl","document","page"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4c3.png"},{emoji:"📜",name:"scroll",shortcodes:["scroll"],tags:["paper"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4dc.png"},{emoji:"📄",name:"page_facing_up",shortcodes:["page_facing_up"],tags:["document","page"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4c4.png"},{emoji:"📰",name:"newspaper",shortcodes:["newspaper"],tags:["news","paper"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4f0.png"},{emoji:"🗞",name:"newspaper_roll",shortcodes:["rolled_up_newspaper"],tags:["news","newspaper","paper","rolled"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5de-fe0f.png"},{emoji:"📑",name:"bookmark_tabs",shortcodes:["bookmark_tabs"],tags:["bookmark","mark","marker","tabs"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4d1.png"},{emoji:"🔖",name:"bookmark",shortcodes:["bookmark"],tags:["mark"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f516.png"},{emoji:"🏷",name:"label",shortcodes:["label"],tags:["label"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f7-fe0f.png"},{emoji:"💰",name:"moneybag",shortcodes:["moneybag"],tags:["bag","dollar","money","moneybag"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4b0.png"},{emoji:"🪙",name:"coin",shortcodes:["coin"],tags:["gold","metal","money","silver","treasure"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa99.png"},{emoji:"💴",name:"yen",shortcodes:["yen"],tags:["banknote","bill","currency","money","note","yen"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4b4.png"},{emoji:"💵",name:"dollar",shortcodes:["dollar"],tags:["banknote","bill","currency","dollar","money","note"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4b5.png"},{emoji:"💶",name:"euro",shortcodes:["euro"],tags:["banknote","bill","currency","euro","money","note"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4b6.png"},{emoji:"💷",name:"pound",shortcodes:["pound"],tags:["banknote","bill","currency","money","note","pound"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4b7.png"},{emoji:"💸",name:"money_with_wings",shortcodes:["money_with_wings"],tags:["banknote","bill","fly","money","wings"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4b8.png"},{emoji:"💳",name:"credit_card",shortcodes:["credit_card"],tags:["card","credit","money"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4b3.png"},{emoji:"🧾",name:"receipt",shortcodes:["receipt"],tags:["accounting","bookkeeping","evidence","proof"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9fe.png"},{emoji:"💹",name:"chart",shortcodes:["chart"],tags:["chart","graph","growth","money","yen"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4b9.png"},{emoji:"✉",name:"envelope",shortcodes:["envelope"],tags:["email","letter"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2709-fe0f.png"},{emoji:"📧",name:"e-mail",shortcodes:["e-mail","email"],tags:["email","letter","mail"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4e7.png"},{emoji:"📨",name:"incoming_envelope",shortcodes:["incoming_envelope"],tags:["e-mail","email","envelope","incoming","letter","receive"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4e8.png"},{emoji:"📩",name:"envelope_with_arrow",shortcodes:["envelope_with_arrow"],tags:["arrow","e-mail","email","envelope","outgoing"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4e9.png"},{emoji:"📤",name:"outbox_tray",shortcodes:["outbox_tray"],tags:["box","letter","mail","outbox","sent","tray"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4e4.png"},{emoji:"📥",name:"inbox_tray",shortcodes:["inbox_tray"],tags:["box","inbox","letter","mail","receive","tray"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4e5.png"},{emoji:"📦",name:"package",shortcodes:["package"],tags:["box","parcel"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4e6.png"},{emoji:"📫",name:"mailbox",shortcodes:["mailbox"],tags:["closed","mail","mailbox","postbox"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4eb.png"},{emoji:"📪",name:"mailbox_closed",shortcodes:["mailbox_closed"],tags:["closed","lowered","mail","mailbox","postbox"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ea.png"},{emoji:"📬",name:"mailbox_with_mail",shortcodes:["mailbox_with_mail"],tags:["mail","mailbox","open","postbox"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ec.png"},{emoji:"📭",name:"mailbox_with_no_mail",shortcodes:["mailbox_with_no_mail"],tags:["lowered","mail","mailbox","open","postbox"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ed.png"},{emoji:"📮",name:"postbox",shortcodes:["postbox"],tags:["mail","mailbox"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ee.png"},{emoji:"🗳",name:"ballot_box",shortcodes:["ballot_box"],tags:["ballot","box"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5f3-fe0f.png"},{emoji:"✏",name:"pencil2",shortcodes:["pencil"],tags:["pencil"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/270f-fe0f.png"},{emoji:"✒",name:"black_nib",shortcodes:["black_nib"],tags:["nib","pen"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2712-fe0f.png"},{emoji:"🖋",name:"fountain_pen",shortcodes:["fountain_pen"],tags:["fountain","pen"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f58b-fe0f.png"},{emoji:"🖊",name:"pen",shortcodes:["pen"],tags:["ballpoint"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f58a-fe0f.png"},{emoji:"🖌",name:"paintbrush",shortcodes:["paintbrush"],tags:["painting"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f58c-fe0f.png"},{emoji:"🖍",name:"crayon",shortcodes:["crayon"],tags:["crayon"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f58d-fe0f.png"},{emoji:"📝",name:"memo",shortcodes:["memo"],tags:["pencil"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4dd.png"},{emoji:"💼",name:"briefcase",shortcodes:["briefcase"],tags:["briefcase"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4bc.png"},{emoji:"📁",name:"file_folder",shortcodes:["file_folder"],tags:["file","folder"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4c1.png"},{emoji:"📂",name:"open_file_folder",shortcodes:["open_file_folder"],tags:["file","folder","open"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4c2.png"},{emoji:"🗂",name:"card_index_dividers",shortcodes:["card_index_dividers"],tags:["card","dividers","index"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5c2-fe0f.png"},{emoji:"📅",name:"date",shortcodes:["date"],tags:["date"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4c5.png"},{emoji:"📆",name:"calendar",shortcodes:["calendar"],tags:["calendar"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4c6.png"},{emoji:"🗒",name:"spiral_notepad",shortcodes:["notepad_spiral"],tags:["note","pad","spiral"
299],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5d2-fe0f.png"},{emoji:"🗓",name:"spiral_calendar",shortcodes:["calendar_spiral"],tags:["calendar","pad","spiral"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5d3-fe0f.png"},{emoji:"📇",name:"card_index",shortcodes:["card_index"],tags:["card","index","rolodex"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4c7.png"},{emoji:"📈",name:"chart_with_upwards_trend",shortcodes:["chart_increasing","chart_with_upwards_trend"],tags:["chart","graph","growth","trend","upward"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4c8.png"},{emoji:"📉",name:"chart_with_downwards_trend",shortcodes:["chart_decreasing","chart_with_downwards_trend"],tags:["chart","down","graph","trend"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4c9.png"},{emoji:"📊",name:"bar_chart",shortcodes:["bar_chart"],tags:["bar","chart","graph"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ca.png"},{emoji:"📋",name:"clipboard",shortcodes:["clipboard"],tags:["clipboard"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4cb.png"},{emoji:"📌",name:"pushpin",shortcodes:["pushpin"],tags:["pin"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4cc.png"},{emoji:"📍",name:"round_pushpin",shortcodes:["round_pushpin"],tags:["pin","pushpin"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4cd.png"},{emoji:"📎",name:"paperclip",shortcodes:["paperclip"],tags:["paperclip"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4ce.png"},{emoji:"🖇",name:"paperclips",shortcodes:["paperclips"],tags:["link","paperclip"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f587-fe0f.png"},{emoji:"📏",name:"straight_ruler",shortcodes:["straight_ruler"],tags:["ruler","straight edge"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4cf.png"},{emoji:"📐",name:"triangular_ruler",shortcodes:["triangular_ruler"],tags:["ruler","set","triangle"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4d0.png"},{emoji:"✂",name:"scissors",shortcodes:["scissors"],tags:["cutting","tool"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2702-fe0f.png"},{emoji:"🗃",name:"card_file_box",shortcodes:["card_file_box"],tags:["box","card","file"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5c3-fe0f.png"},{emoji:"🗄",name:"file_cabinet",shortcodes:["file_cabinet"],tags:["cabinet","file","filing"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5c4-fe0f.png"},{emoji:"🗑",name:"wastebasket",shortcodes:["trashcan","wastebasket"],tags:["wastebasket"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5d1-fe0f.png"},{emoji:"🔒",name:"lock",shortcodes:["lock","locked"],tags:["closed"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f512.png"},{emoji:"🔓",name:"unlock",shortcodes:["unlock","unlocked"],tags:["lock","open","unlock"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f513.png"}
299,{emoji:"🔏",name:"lock_with_ink_pen",shortcodes:["lock_with_ink_pen","locked_with_pen"],tags:["ink","lock","nib","pen","privacy"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f50f.png"},{emoji:"🔐",name:"closed_lock_with_key",shortcodes:["closed_lock_with_key","locked_with_key"],tags:["closed","key","lock","secure"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f510.png"},{emoji:"🔑",name:"key",shortcodes:["key"],tags:["lock","password"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f511.png"},{emoji:"🗝",name:"old_key",shortcodes:["old_key"],tags:["clue","key","lock","old"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5dd-fe0f.png"},{emoji:"🔨",name:"hammer",shortcodes:["hammer"],tags:["tool"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f528.png"},{emoji:"🪓",name:"axe",shortcodes:["axe"],tags:["chop","hatchet","split","wood"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa93.png"},{emoji:"⛏",name:"pick",shortcodes:["pick"],tags:["mining","tool"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26cf-fe0f.png"},{emoji:"⚒",name:"hammer_and_pick",shortcodes:["hammer_and_pick"],tags:["hammer","pick","tool"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2692-fe0f.png"},{emoji:"🛠",name:"hammer_and_wrench",shortcodes:["hammer_and_wrench"],tags:["hammer","spanner","tool","wrench"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6e0-fe0f.png"},{emoji:"🗡",name:"dagger",shortcodes:["dagger"],tags:["knife","weapon"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5e1-fe0f.png"},{emoji:"⚔",name:"crossed_swords",shortcodes:["crossed_swords"],tags:["crossed","swords","weapon"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2694-fe0f.png"},{emoji:"💣",name:"bomb",shortcodes:["bomb"],tags:["comic"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4a3.png"},{emoji:"🪃",name:"boomerang",shortcodes:["boomerang"],tags:["rebound","repercussion"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa83.png"},{emoji:"🏹",name:"bow_and_arrow",shortcodes:["bow_and_arrow"],tags:["archer","arrow","bow","sagittarius","zodiac"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f9.png"},{emoji:"🛡",name:"shield",shortcodes:["shield"],tags:["weapon"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6e1-fe0f.png"},{emoji:"🪚",name:"carpentry_saw",shortcodes:["carpentry_saw"],tags:["carpenter","lumber","saw","tool"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa9a.png"},{emoji:"🔧",name:"wrench",shortcodes:["wrench"],tags:["spanner","tool"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f527.png"},{emoji:"🪛",name:"screwdriver",shortcodes:["screwdriver"],tags:["screw","tool"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa9b.png"},{emoji:"🔩",name:"nut_and_bolt",shortcodes:["nut_and_bolt"],tags:["bolt","nut","tool"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f529.png"},{emoji:"⚙",name:"gear",shortcodes:["gear"],tags:["cog","cogwheel","tool"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2699-fe0f.png"},{emoji:"🗜",name:"clamp",shortcodes:["clamp","compression"],tags:["compress","tool","vice"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5dc-fe0f.png"},{emoji:"⚖",name:"balance_scale",shortcodes:["scales"],tags:["balance","justice","libra","scale","zodiac"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2696-fe0f.png"},{emoji:"🦯",name:"probing_cane",shortcodes:["probing_cane","white_c
299ane"],tags:["accessibility","blind"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9af.png"},{emoji:"🔗",name:"link",shortcodes:["link"],tags:["link"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f517.png"},{emoji:"⛓‍💥",name:"broken_chain",shortcodes:["broken_chain"],tags:["break","breaking","chain","cuffs","freedom"],group:"objects",emoticons:[],version:15.1},{emoji:"⛓",name:"chains",shortcodes:["chains"],tags:["chain"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26d3-fe0f.png"},{emoji:"🪝",name:"hook",shortcodes:["hook"],tags:["catch","crook","curve","ensnare","selling point"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa9d.png"},{emoji:"🧰",name:"toolbox",shortcodes:["toolbox"],tags:["chest","mechanic","tool"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9f0.png"},{emoji:"🧲",name:"magnet",shortcodes:["magnet"],tags:["attraction","horseshoe","magnetic"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9f2.png"},{emoji:"🪜",name:"ladder",shortcodes:["ladder"],tags:["climb","rung","step"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa9c.png"},{emoji:"⚗",name:"alembic",shortcodes:["alembic"],tags:["chemistry","tool"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2697-fe0f.png"},{emoji:"🧪",name:"test_tube",shortcodes:["test_tube"],tags:["chemist","chemistry","experiment","lab","science"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ea.png"},{emoji:"🧫",name:"petri_dish",shortcodes:["petri_dish"],tags:["bacteria","biologist","biology","culture","lab"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9eb.png"},{emoji:"🧬",name:"dna",shortcodes:["dna","double_helix"],tags:["biologist","evolution","gene","genetics","life"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ec.png"},{emoji:"🔬",name:"microscope",shortcodes:["microscope"],tags:["science","tool"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f52c.png"},{emoji:"🔭",name:"telescope",shortcodes:["telescope"],tags:["science","tool"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f52d.png"},{emoji:"📡",name:"satellite",shortcodes:["satellite_antenna"],tags:["antenna","dish","satellite"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4e1.png"},{emoji:"💉",name:"syringe",shortcodes:["syringe"],tags:["medicine","needle","shot","sick"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f489.png"},{emoji:"🩸",name:"drop_of_blood",shortcodes:["drop_of_blood"],tags:["bleed","blood donation","injury","medicine","menstruation"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa78.png"},{emoji:"💊",name:"pill",shortcodes:["pill"],tags:["doctor","medicine","sick"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f48a.png"},{emoji:"🩹",name:"adhesive_bandage",shortcodes:["adhesive_bandage","bandaid"],tags:["bandage"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa79.png"},{emoji:"🩼",name:"crutch",shortcodes:["crutch"],tags:["cane","disability","hurt","mobility aid","stick"],group:"objects",emoticons:[],version:14},{emoji:"🩺",name:"stethoscope",shortcodes:["stethoscope"],tags:["doctor","heart","medicine"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa7a.png"},{emoji:"🩻",name:"x_ray",shortcodes:["x-ray","xray"],tags:["bones","doctor","medical","skeleton"],group:"objects",emoticons:[],version:14},{emoji:"🚪",name:"door",shortcodes:["door"],tags:["door"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6aa.png"},{emoji:"🛗",name:"elevator",shortcodes:["elevator"],tags:["accessibility","hoist","lift"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6d7.png"},{emoji:"🪞",name:"mirror",shortcodes:["mirror"],tags:["reflection","reflector","speculum"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa9e.png"}
299,{emoji:"🪟",name:"window",shortcodes:["window"],tags:["frame","fresh air","opening","transparent","view"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa9f.png"},{emoji:"🛏",name:"bed",shortcodes:["bed"],tags:["hotel","sleep"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6cf-fe0f.png"},{emoji:"🛋",name:"couch_and_lamp",shortcodes:["couch_and_lamp"],tags:["couch","hotel","lamp"],group:"objects",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6cb-fe0f.png"},{emoji:"🪑",name:"chair",shortcodes:["chair"],tags:["seat","sit"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa91.png"},{emoji:"🚽",name:"toilet",shortcodes:["toilet"],tags:["toilet"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6bd.png"},{emoji:"🪠",name:"plunger",shortcodes:["plunger"],tags:["force cup","plumber","suction","toilet"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1faa0.png"},{emoji:"🚿",name:"shower",shortcodes:["shower"],tags:["water"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6bf.png"},{emoji:"🛁",name:"bathtub",shortcodes:["bathtub"],tags:["bath"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6c1.png"},{emoji:"🪤",name:"mouse_trap",shortcodes:["mouse_trap"],tags:["bait","mousetrap","snare","trap"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1faa4.png"},{emoji:"🪒",name:"razor",shortcodes:["razor"],tags:["sharp","shave"],group:"objects",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1fa92.png"},{emoji:"🧴",name:"lotion_bottle",shortcodes:["lotion_bottle"],tags:["lotion","moisturizer","shampoo","sunscreen"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9f4.png"},{emoji:"🧷",name:"safety_pin",shortcodes:["safety_pin"],tags:["diaper","punk rock"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9f7.png"},{emoji:"🧹",name:"broom",shortcodes:["broom"],tags:["cleaning","sweeping","witch"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9f9.png"},{emoji:"🧺",name:"basket",shortcodes:["basket"],tags:["farming","laundry","picnic"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9fa.png"},{emoji:"🧻",name:"roll_of_paper",shortcodes:["roll_of_paper","toilet_paper"],tags:["paper towels","toilet paper"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9fb.png"},{emoji:"🪣",name:"bucket",shortcodes:["bucket"],tags:["cask","pail","vat"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1faa3.png"},{emoji:"🧼",name:"soap",shortcodes:["soap"],tags:["bar","bathing","cleaning","lather","soapdish"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9fc.png"},{emoji:"🫧",name:"bubbles",shortcodes:["bubbles"],tags:["burp","clean","soap","underwater"],group:"objects",emoticons:[],version:14},{emoji:"🪥",name:"toothbrush",shortcodes:["toothbrush"],tags:["bathroom","brush","clean","dental","hygiene","teeth"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1faa5.png"},{emoji:"🧽",name:"sponge",shortcodes:["sponge"],tags:["absorbing","cleaning","porous"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9fd.png"},{emoji:"🧯",name:"fire_extinguisher",shortcodes:["fire_extinguisher"],tags:["extinguish","fire","quench"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ef.png"},{emoji:"🛒",name:"shopping_cart",shortcodes:["shopping_cart"],tags:["cart","shopping","trolley"],group:"objects",emoticons:[],version:3,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6d2.png"},{emoji:"🚬",name:"smoking",shortcodes:["cigarette","smoking"],tags:["smoking"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6ac.png"},{emoji:"⚰",name:"coffin",shortcodes:["coffin"],tags:["death"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26b0-fe0f.png"},{emoji:"🪦",name:"headstone",shortcodes:["headstone"],tags:["cemetery","grave","graveyard","tombstone"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1faa6.png"},{emoji:"⚱",name:"funeral_urn",shortcodes:["funeral_urn"],tags:["ashes","death","funeral","urn"],group:"objects",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26b1-fe0f.png"},{emoji:"🧿",name:"nazar_amulet",shortcodes:["nazar_amulet"],tags:["bead","charm","evil-eye","nazar","talisman"],group:"objects",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f9ff.png"},{emoji:"🪬",name:"hamsa",shortcodes:["hamsa"],tags:["amulet","fatima","hand","mary","miriam","protection"],group:"objects",emoticons:[],version:14},{emoji:"🗿",name:"moyai",shortcodes:["moai","moyai"],tags:["face","moyai","statue"],group:"objects",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f5ff.png"},{emoji:"🪧",name:"placard",shortcodes:["placard"],tags:["demonstration","picket","protest","sign"],group:"objects",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1faa7.png"},{emoji:"🪪",name:"identification_card",shortcodes:["id_card"],tags:["credentials","id","license","security"],group:"objects",emoticons:[],version:14},{emoji:"🏧",name:"atm",shortcodes:["atm"],tags:["atm","atm sign","automated","bank","teller"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3e7.png"},{emoji:"🚮",name:"put_litter_in_its_place",shortcodes:["litter_bin","put_litter_in_its_place"],tags:["litter","litter bin"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6ae.png"},{emoji:"🚰",name:"potable_water",shortcodes:["potable_water"],tags:["drinking","potable","water"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b0.png"},{emoji:"♿",name:"wheelchair",shortcodes:["handicapped","wheelchair"],tags:["access"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/267f.png"},{emoji:"🚹",name:"mens",shortcodes:["mens"],tags:["bathroom","lavatory","man","restroom","toilet","wc"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b9.png"},{emoji:"🚺",name:"womens",shortcodes:["womens"],tags:["bathroom","lavatory","restroom","toilet","wc","woman"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6ba.png"},{emoji:"🚻",name:"restroom",shortcodes:["bathroom","restroom"],tags:["bathroom","lavatory","toilet","wc"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6bb.png"},{emoji:"🚼",name:"baby_symbol",shortcodes:["baby_symbol"],tags:["baby","changing"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6bc.png"},{emoji:"🚾",name:"wc",shortcodes:["water_closet","wc"],tags:["bathroom","closet","lavatory","restroom","toilet","water","wc"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6be.png"},{emoji:"🛂",name:"passport_control",shortcodes:["passport_control"],tags:["control","passport"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6c2.png"},{emoji:"🛃",name:"customs",shortcodes:["customs"],tags:["customs"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6c3.png"},{emoji:"🛄",name:"baggage_claim",shortcodes:["baggage_claim"],tags:["baggage","claim"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6c4.png"},{emoji:"🛅",name:"left_luggage",shortcodes:["left_luggage"],tags:["baggage","locker","luggage"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6c5.png"},{emoji:"⚠",name:"warning",shortcodes:["warning"],tags:["warning"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26a0-fe0f.png"},{emoji:"🚸",name:"children_crossing",shortcodes:["children_crossing"],tags:["child","crossing","pedestrian","traffic"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b8.png"},{emoji:"⛔",name:"no_entry",shortcodes:["no_entry"],tags:["entry","forbidden","no","not","prohibited","traffic"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26d4.png"},{emoji:"🚫",name:"no_entry_sign",shortcodes:["no_entry_sign"],tags:["entry","forbidden","no","not"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6ab.png"},{emoji:"🚳",name:"no_bicycles",shortcodes:["no_bicycles"],tags:["bicycle","bike","forbidden","no","prohibited"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b3.png"},{emoji:"🚭",name:"no_smoking",shortcodes:["no_smoking"],tags:["forbidden","no","not","prohibited","smoking"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6ad.png"},{emoji:"🚯",name:"do_not_litter",shortcodes:["do_not_litter","no_littering"],tags:["forbidden","litter","no","not","prohibited"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6af.png"},{emoji:"🚱",name:"non-potable_water",shortcodes:["non-potable_water"],tags:["non-drinking","non-potable","water"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b1.png"},{emoji:"🚷",name:"no_pedestrians",shortcodes:["no_pedestrians"],tags:["forbidden","no","not","pedestrian","prohibited"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6b7.png"},{emoji:"📵",name:"no_mobile_phones",shortcodes:["no_mobile_phones"],tags:["cell","forbidden","mobile","no","phone"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4f5.png"},{emoji:"🔞",name:"underage",shortcodes:["no_one_under_18","underage"],tags:["18","age restriction","eighteen","prohibited","underage"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f51e.png"},{emoji:"☢",name:"radioactive",shortcodes:["radioactive"],tags:["sign"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2622-fe0f.png"},{emoji:"☣",name:"biohazard",shortcodes:["biohazard"],tags:["sign"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2623-fe0f.png"},{emoji:"⬆",name:"arrow_up",shortcodes:["arrow_up"],tags:["arrow","cardinal","direction","north"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2b06-fe0f.png"},{emoji:"↗",name:"arrow_upper_right",shortcodes:["arrow_upper_right"],tags:["arrow","direction","intercardinal","northeast"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2197-fe0f.png"},{emoji:"➡",name:"arrow_right",shortcodes:["arrow_right"],tags:["arrow","cardinal","direction","east"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/27a1-fe0f.png"},{emoji:"↘",name:"arrow_lower_right",shortcodes:["arrow_lower_right"],tags:["arrow","direction","intercardinal","southeast"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2198-fe0f.png"},{emoji:"⬇",name:"arrow_down",shortcodes:["arrow_down"],tags:["arrow","cardinal","direction","down","south"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2b07-fe0f.png"},{emoji:"↙",name:"arrow_lower_left",shortcodes:["arrow_lower_left"],tags:["arrow","direction","intercardinal","southwest"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2199-fe0f.png"},{emoji:"⬅",name:"arrow_left",shortcodes:["arrow_left"],tags:["arrow","cardinal","direction","west"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2b05-fe0f.png"},{emoji:"↖",name:"arrow_upper_left",shortcodes:["arrow_upper_left"],tags:["arrow","direction","intercardinal","northwest"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2196-fe0f.png"},{emoji:"↕",name:"arrow_up_down",shortcodes:["arrow_up_down"],tags:["arrow"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2195-fe0f.png"},{emoji:"↔",name:"left_right_arrow",shortcodes:["left_right_arrow"],tags:["arrow"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2194-fe0f.png"},{emoji:"↩",name:"leftwards_arrow_with_hook",shortcodes:["arrow_left_hook","leftwards_arrow_with_hook"],tags:["arrow"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/21
299a9-fe0f.png"},{emoji:"↪",name:"arrow_right_hook",shortcodes:["arrow_right_hook","rightwards_arrow_with_hook"],tags:["arrow"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/21aa-fe0f.png"},{emoji:"⤴",name:"arrow_heading_up",shortcodes:["arrow_heading_up"],tags:["arrow"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2934-fe0f.png"},{emoji:"⤵",name:"arrow_heading_down",shortcodes:["arrow_heading_down"],tags:["arrow","down"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2935-fe0f.png"},{emoji:"🔃",name:"arrows_clockwise",shortcodes:["arrows_clockwise","clockwise"],tags:["arrow","clockwise","reload"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f503.png"},{emoji:"🔄",name:"arrows_counterclockwise",shortcodes:["arrows_counterclockwise","counterclockwise"],tags:["anticlockwise","arrow","counterclockwise","withershins"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f504.png"},{emoji:"🔙",name:"back",shortcodes:["back"],tags:["arrow","back"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f519.png"},{emoji:"🔚",name:"end",shortcodes:["end"],tags:["arrow","end"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f51a.png"},{emoji:"🔛",name:"on",shortcodes:["on"],tags:["arrow","mark","on","on!"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f51b.png"}
299,{emoji:"🔜",name:"soon",shortcodes:["soon"],tags:["arrow","soon"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f51c.png"},{emoji:"🔝",name:"top",shortcodes:["top"],tags:["arrow","top","up"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f51d.png"},{emoji:"🛐",name:"place_of_worship",shortcodes:["place_of_worship"],tags:["religion","worship"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6d0.png"},{emoji:"⚛",name:"atom_symbol",shortcodes:["atom","atom_symbol"],tags:["atheist","atom"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/269b-fe0f.png"},{emoji:"🕉",name:"om",shortcodes:["om"],tags:["hindu","religion"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f549-fe0f.png"},{emoji:"✡",name:"star_of_david",shortcodes:["star_of_david"],tags:["david","jew","jewish","religion","star","star of david"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2721-fe0f.png"},{emoji:"☸",name:"wheel_of_dharma",shortcodes:["wheel_of_dharma"],tags:["buddhist","dharma","religion","wheel"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2638-fe0f.png"},{emoji:"☯",name:"yin_yang",shortcodes:["yin_yang"],tags:["religion","tao","taoist","yang","yin"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/262f-fe0f.png"},{emoji:"✝",name:"latin_cross",shortcodes:["latin_cross"],tags:["christian","cross","religion"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/271d-fe0f.png"},{emoji:"☦",name:"orthodox_cross",shortcodes:["orthodox_cross"],tags:["christian","cross","religion"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2626-fe0f.png"},{emoji:"☪",name:"star_and_crescent",shortcodes:["star_and_crescent"],tags:["islam","muslim","religion"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/262a-fe0f.png"},{emoji:"☮",name:"peace_symbol",shortcodes:["peace","peace_symbol"],tags:["peace"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/262e-fe0f.png"},{emoji:"🕎",name:"menorah",shortcodes:["menorah"],tags:["candelabrum","candlestick","religion"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f54e.png"},{emoji:"🔯",name:"six_pointed_star",shortcodes:["six_pointed_star"],tags:["fortune","star"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f52f.png"},{emoji:"🪯",name:"khanda",shortcodes:["khanda"],tags:["religion","sikh"],group:"symbols",emoticons:[],version:15},{emoji:"♈",name:"aries",shortcodes:["aries"],tags:["aries","ram","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2648.png"},{emoji:"♉",name:"taurus",shortcodes:["taurus"],tags:["bull","ox","taurus","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2649.png"},{emoji:"♊",name:"gemini",shortcodes:["gemini"],tags:["gemini","twins","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/264a.png"},{emoji:"♋",name:"cancer",shortcodes:["cancer"],tags:["cancer","crab","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/264b.png"},{emoji:"♌",name:"leo",shortcodes:["leo"],tags:["leo","lion","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/264c.png"},{emoji:"♍",name:"virgo",shortcodes:["virgo"],tags:["virgo","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/264d.png"},{emoji:"♎",name:"libra",shortcodes:["libra"],tags:["balance","justice","libra","scales","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/264e.png"},{emoji:"♏",name:"scorpius",shortcodes:["scorpius"],tags:["scorpio","scorpion","scorpius","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/264f.png"},{emoji:"♐",name:"sagittarius",shortcodes:["sagittarius"],tags:["archer","sagittarius","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2650.png"},{emoji:"♑",name:"capricorn",shortcodes:["capricorn"],tags:["capricorn","goat","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2651.png"},{emoji:"♒",name:"aquarius",shortcodes:["aquarius"],tags:["aquarius","bearer","water","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2652.png"},{emoji:"♓",name:"pisces",shortcodes:["pisces"],tags:["fish","pisces","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2653.png"},{emoji:"⛎",name:"ophiuchus",shortcodes:["ophiuchus"],tags:["bearer","ophiuchus","serpent","snake","zodiac"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26ce.png"},{emoji:"🔀",name:"twisted_rightwards_arrows",shortcodes:["shuffle","twisted_rightwards_arrows"],tags:["arrow","crossed"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f500.png"},{emoji:"🔁",name:"repeat",shortcodes:["repeat"],tags:["arrow","clockwise","repeat"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f501.png"},{emoji:"🔂",name:"repeat_one",shortcodes:["repeat_one"],tags:["arrow","clockwise","once"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f502.png"},{emoji:"▶",name:"arrow_forward",shortcodes:["arrow_forward","play"],tags:["arrow","play","right","triangle"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/25b6-fe0f.png"},{emoji:"⏩",name:"fast_forward",shortcodes:["fast_forward"],tags:["arrow","double","fast","forward"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23e9.png"},{emoji:"⏭",name:"next_track_button",shortcodes:["next_track"],tags:["arrow","next scene","next track","triangle"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23ed-fe0f.png"},{emoji:"⏯",name:"play_or_pause_button",shortcodes:["play_pause"],tags:["arrow","pause","play","right","triangle"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23ef-fe0f.png"},{emoji:"◀",name:"arrow_backward",shortcodes:["arrow_backward","reverse"],tags:["arrow","left","reverse","triangle"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/25c0-fe0f.png"},{emoji:"⏪",name:"rewind",shortcodes:["fast_reverse","rewind"],tags:["arrow","double","rewind"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23ea.png"},{emoji:"⏮",name:"previous_track_button",shortcodes:["previous_track"],tags:["arrow","previous scene","previous track","triangle"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23ee-fe0f.png"},{emoji:"🔼",name:"arrow_up_small",shortcodes:["arrow_up_small","up"],tags:["arrow","button"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f53c.png"},{emoji:"⏫",name:"arrow_double_up",shortcodes:["arrow_double_up","fast_up"],tags:["arrow","double"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23eb.png"},{emoji:"🔽",name:"arrow_down_small",shortcodes:["arrow_down_small","down"],tags:["arrow","button","down"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f53d.png"},{emoji:"⏬",name:"arrow_double_down",shortcodes:["arrow_double_down","fast_down"],tags:["arrow","double","down"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23ec.png"},{emoji:"⏸",name:"pause_button",shortcodes:["pause"],tags:["bar","double","pause","vertical"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23f8-fe0f.png"},{emoji:"⏹",name:"stop_button",shortcodes:["stop"],tags:["square","stop"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23f9-fe0f.png"},{emoji:"⏺",name:"record_button",shortcodes:["record"],tags:["circle","record"],group:"symbols",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23fa-fe0f.png"},{emoji:"⏏",name:"eject_button",shortcodes:["eject"],tags:["eject"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/23cf-fe0f.png"}
299,{emoji:"🎦",name:"cinema",shortcodes:["cinema"],tags:["camera","film","movie"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3a6.png"},{emoji:"🔅",name:"low_brightness",shortcodes:["dim_button","low_brightness"],tags:["brightness","dim","low"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f505.png"},{emoji:"🔆",name:"high_brightness",shortcodes:["bright_button","high_brightness"],tags:["bright","brightness"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f506.png"},{emoji:"📶",name:"signal_strength",shortcodes:["antenna_bars","signal_strength"],tags:["antenna","bar","cell","mobile","phone"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4f6.png"},{emoji:"🛜",name:"wireless",shortcodes:["wireless"],tags:["computer","internet","network","wi-fi","wifi"],group:"symbols",emoticons:[],version:15},{emoji:"📳",name:"vibration_mode",shortcodes:["vibration_mode"],tags:["cell","mobile","mode","phone","telephone","vibration"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4f3.png"},{emoji:"📴",name:"mobile_phone_off",shortcodes:["mobile_phone_off"],tags:["cell","mobile","off","phone","telephone"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4f4.png"},{emoji:"♀",name:"female_sign",shortcodes:["female","female_sign"],tags:["woman"],group:"symbols",emoticons:[],version:4},{emoji:"♂",name:"male_sign",shortcodes:["male","male_sign"],tags:["man"],group:"symbols",emoticons:[],version:4},{emoji:"⚧",name:"transgender_symbol",shortcodes:["transgender_symbol"],tags:["transgender"],group:"symbols",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26a7-fe0f.png"},{emoji:"✖",name:"heavy_multiplication_x",shortcodes:["multiplication","multiply"],tags:["cancel","multiplication","sign","x","×"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2716-fe0f.png"},{emoji:"➕",name:"heavy_plus_sign",shortcodes:["plus"],tags:["+","math","sign"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2795.png"},{emoji:"➖",name:"heavy_minus_sign",shortcodes:["minus"],tags:["-","math","sign","−"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2796.png"},{emoji:"➗",name:"heavy_division_sign",shortcodes:["divide","division"],tags:["division","math","sign","÷"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2797.png"},{emoji:"🟰",name:"heavy_equals_sign",shortcodes:["heavy_equals_sign"],tags:["equality","math"],group:"symbols",emoticons:[],version:14},{emoji:"♾",name:"infinity",shortcodes:["infinity"],tags:["forever","unbounded","universal"],group:"symbols",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/267e-fe0f.png"},{emoji:"‼",name:"bangbang",shortcodes:["bangbang","double_exclamation"],tags:["!","!!","bangbang","exclamation","mark"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/203c-fe0f.png"},{emoji:"⁉",name:"interrobang",shortcodes:["exclamation_question","interrobang"],tags:["!","!?","?","exclamation","interrobang","mark","punctuation","question"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2049-fe0f.png"},{emoji:"❓",name:"question",shortcodes:["question"],tags:["?","mark","punctuation","question"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2753.png"},{emoji:"❔",name:"grey_question",shortcodes:["white_question"],tags:["?","mark","outlined","punctuation","question"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2754.png"},{emoji:"❕",name:"grey_exclamation",shortcodes:["white_exclamation"],tags:["!","exclamation","mark","outlined","punctuation"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2755.png"},{emoji:"❗",name:"exclamation",shortcodes:["exclamation"],tags:["!","exclamation","mark","punctuation"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2757.png"}
299,{emoji:"〰",name:"wavy_dash",shortcodes:["wavy_dash"],tags:["dash","punctuation","wavy"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/3030-fe0f.png"},{emoji:"💱",name:"currency_exchange",shortcodes:["currency_exchange"],tags:["bank","currency","exchange","money"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4b1.png"},{emoji:"💲",name:"heavy_dollar_sign",shortcodes:["heavy_dollar_sign"],tags:["currency","dollar","money"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4b2.png"},{emoji:"⚕",name:"medical_symbol",shortcodes:["medical","medical_symbol"],tags:["aesculapius","medicine","staff"],group:"symbols",emoticons:[],version:4},{emoji:"♻",name:"recycle",shortcodes:["recycle","recycling_symbol"],tags:["recycle"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/267b-fe0f.png"},{emoji:"⚜",name:"fleur_de_lis",shortcodes:["fleur-de-lis"],tags:["fleur-de-lis"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/269c-fe0f.png"},{emoji:"🔱",name:"trident",shortcodes:["trident"],tags:["anchor","emblem","ship","tool","trident"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f531.png"},{emoji:"📛",name:"name_badge",shortcodes:["name_badge"],tags:["badge","name"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4db.png"},{emoji:"🔰",name:"beginner",shortcodes:["beginner"],tags:["beginner","chevron","japanese","japanese symbol for beginner","leaf"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f530.png"},{emoji:"⭕",name:"o",shortcodes:["hollow_red_circle","red_o"],tags:["circle","large","o","red"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2b55.png"},{emoji:"✅",name:"white_check_mark",shortcodes:["check_mark_button","white_check_mark"],tags:["button","check","mark","✓"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2705.png"},{emoji:"☑",name:"ballot_box_with_check",shortcodes:["ballot_box_with_check"],tags:["box","check","✓"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2611-fe0f.png"},{emoji:"✔",name:"heavy_check_mark",shortcodes:["check_mark","heavy_check_mark"],tags:["check","mark","✓"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2714-fe0f.png"},{emoji:"❌",name:"x",shortcodes:["cross_mark","x"],tags:["cancel","cross","mark","multiplication","multiply","x","×"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/274c.png"},{emoji:"❎",name:"negative_squared_cross_mark",shortcodes:["cross_mark_button","negative_squared_cross_mark"],tags:["mark","square","x","×"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/274e.png"},{emoji:"➰",name:"curly_loop",shortcodes:["curly_loop"],tags:["curl","loop"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/27b0.png"},{emoji:"➿",name:"loop",shortcodes:["double_curly_loop","loop"],tags:["curl","double","loop"],group:"symbols",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/27bf.png"},{emoji:"〽",name:"part_alternation_mark",shortcodes:["part_alternation_mark"],tags:["mark","part"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/303d-fe0f.png"},{emoji:"✳",name:"eight_spoked_asterisk",shortcodes:["eight_spoked_asterisk"],tags:["*","asterisk"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2733-fe0f.png"},{emoji:"✴",name:"eight_pointed_black_star",shortcodes:["eight_pointed_black_star"],tags:["*","star"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2734-fe0f.png"},{emoji:"❇",name:"sparkle",shortcodes:["sparkle"],tags:["*"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2747-fe0f.png"},{emoji:"©",name:"copyright",shortcodes:["copyright"],tags:["c"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/00a9-fe0f.png"}
299,{emoji:"®",name:"registered",shortcodes:["registered"],tags:["r"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/00ae-fe0f.png"},{emoji:"™",name:"tm",shortcodes:["tm","trade_mark"],tags:["mark","tm","trademark"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2122-fe0f.png"},{emoji:"#⃣",name:"hash",shortcodes:["hash","number_sign"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0023-fe0f-20e3.png"},{emoji:"*⃣",name:"asterisk",shortcodes:["asterisk"],tags:["keycap"],group:"symbols",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/002a-fe0f-20e3.png"},{emoji:"0⃣",name:"zero",shortcodes:["zero"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0030-fe0f-20e3.png"},{emoji:"1⃣",name:"one",shortcodes:["one"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0031-fe0f-20e3.png"},{emoji:"2⃣",name:"two",shortcodes:["two"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0032-fe0f-20e3.png"},{emoji:"3⃣",name:"three",shortcodes:["three"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0033-fe0f-20e3.png"},{emoji:"4⃣",name:"four",shortcodes:["four"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0034-fe0f-20e3.png"},{emoji:"5⃣",name:"five",shortcodes:["five"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0035-fe0f-20e3.png"},{emoji:"6⃣",name:"six",shortcodes:["six"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0036-fe0f-20e3.png"},{emoji:"7⃣",name:"seven",shortcodes:["seven"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0037-fe0f-20e3.png"},{emoji:"8⃣",name:"eight",shortcodes:["eight"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0038-fe0f-20e3.png"},{emoji:"9⃣",name:"nine",shortcodes:["nine"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/0039-fe0f-20e3.png"},{emoji:"🔟",name:"keycap_ten",shortcodes:["ten"],tags:["keycap"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f51f.png"},{emoji:"🔠",name:"capital_abcd",shortcodes:["capital_abcd"],tags:["abcd","input","latin","letters","uppercase"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f520.png"},{emoji:"🔡",name:"abcd",shortcodes:["abcd"],tags:["abcd","input","latin","letters","lowercase"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f521.png"},{emoji:"🔢",name:"1234",shortcodes:["1234"],tags:["1234","input","numbers"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f522.png"},{emoji:"🔣",name:"symbols",shortcodes:["symbols"],tags:["input","〒♪&%"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f523.png"},{emoji:"🔤",name:"abc",shortcodes:["abc"],tags:["abc","alphabet","input","latin","letters"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f524.png"},{emoji:"🅰",name:"a",shortcodes:["a","a_blood"],tags:["a","a button (blood type)","blood type"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f170-fe0f.png"},{emoji:"🆎",name:"ab",shortcodes:["ab","ab_blood"],tags:["ab","ab button (blood type)","blood type"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f18e.png"},{emoji:"🅱",name:"b",shortcodes:["b","b_blood"],tags:["b","b button (blood type)","blood type"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f171-fe0f.png"},{emoji:"🆑",name:"cl",shortcodes:["cl"],tags:["cl","cl button"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f191.png"},{emoji:"🆒",name:"cool",shortcodes:["cool"],tags:["cool","cool button"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f192.png"},{emoji:"🆓",name:"free",shortcodes:["free"],tags:["free","free button"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f193.png"},{emoji:"ℹ",name:"information_source",shortcodes:["info","information_source"],tags:["i"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2139-fe0f.png"},{emoji:"🆔",name:"id",shortcodes:["id"],tags:["id","id button","identity"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f194.png"},{emoji:"Ⓜ",name:"m",shortcodes:["m"],tags:["circle","circled m","m"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/24c2-fe0f.png"},{emoji:"🆕",name:"new",shortcodes:["new"],tags:["new","new button"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f195.png"},{emoji:"🆖",name:"ng",shortcodes:["ng"],tags:["ng","ng button"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f196.png"},{emoji:"🅾",name:"o2",shortcodes:["o","o_blood"],tags:["blood type","o","o button (blood type)"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f17e-fe0f.png"},{emoji:"🆗",name:"ok",shortcodes:["ok"],tags:["ok","ok button"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f197.png"},{emoji:"🅿",name:"parking",shortcodes:["parking"],tags:["p","p button","parking"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f17f-fe0f.png"},{emoji:"🆘",name:"sos",shortcodes:["sos"],tags:["help","sos","
299sos button"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f198.png"},{emoji:"🆙",name:"up",shortcodes:["up2"],tags:["mark","up","up!","up! button"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f199.png"},{emoji:"🆚",name:"vs",shortcodes:["vs"],tags:["versus","vs","vs button"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f19a.png"},{emoji:"🈁",name:"koko",shortcodes:["ja_here","koko"],tags:["japanese","japanese “here” button","katakana","“here”","ココ"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f201.png"},{emoji:"🈂",name:"sa",shortcodes:["ja_service_charge"],tags:["japanese","japanese “service charge” button","katakana","“service charge”","サ"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f202-fe0f.png"},{emoji:"🈷",name:"u6708",shortcodes:["ja_monthly_amount"],tags:["ideograph","japanese","japanese “monthly amount” button","“monthly amount”","月"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f237-fe0f.png"},{emoji:"🈶",name:"u6709",shortcodes:["ja_not_free_of_carge"],tags:["ideograph","japanese","japanese “not free of charge” button","“not free of charge”","有"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f236.png"},{emoji:"🈯",name:"u6307",shortcodes:["ja_reserved"],tags:["ideograph","japanese","japanese “reserved” button","“reserved”","指"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f22f.png"},{emoji:"🉐",name:"ideograph_advantage",shortcodes:["ideograph_advantage","ja_bargain"],tags:["ideograph","japanese","japanese “bargain” button","“bargain”","得"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f250.png"},{emoji:"🈹",name:"u5272",shortcodes:["ja_discount"],tags:["ideograph","japanese","japanese “discount” button","“discount”","割"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f239.png"},{emoji:"🈚",name:"u7121",shortcodes:["ja_free_of_charge"],tags:["ideograph","japanese","japanese “free of charge” button","“free of charge”","無"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f21a.png"},{emoji:"🈲",name:"u7981",shortcodes:["ja_prohibited"],tags:["ideograph","japanese","japanese “prohibited” button","“
299prohibited”","禁"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f232.png"},{emoji:"🉑",name:"accept",shortcodes:["accept","ja_acceptable"],tags:["ideograph","japanese","japanese “acceptable” button","“acceptable”","可"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f251.png"},{emoji:"🈸",name:"u7533",shortcodes:["ja_application"],tags:["ideograph","japanese","japanese “application” button","“application”","申"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f238.png"},{emoji:"🈴",name:"u5408",shortcodes:["ja_passing_grade"],tags:["ideograph","japanese","japanese “passing grade” button","“passing grade”","合"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f234.png"},{emoji:"🈳",name:"u7a7a",shortcodes:["ja_vacancy"],tags:["ideograph","japanese","japanese “vacancy” button","“vacancy”","空"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f233.png"},{emoji:"㊗",name:"congratulations",shortcodes:["congratulations","ja_congratulations"],tags:["ideograph","japanese","japanese “congratulations” button","“congratulations”","祝"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/3297-fe0f.png"},{emoji:"㊙",name:"secret",shortcodes:["ja_secret","secret"],tags:["ideograph","japanese","japanese “secret” button","“secret”","秘"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/3299-fe0f.png"},{emoji:"🈺",name:"u55b6",shortcodes:["ja_open_for_business"],tags:["ideograph","japanese","japanese “open for business” button","“open for business”","営"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f23a.png"},{emoji:"🈵",name:"u6e80",shortcodes:["ja_no_vacancy"],tags:["ideograph","japanese","japanese “no vacancy” button","“no vacancy”","満"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f235.png"},{emoji:"🔴",name:"red_circle",shortcodes:["red_circle"],tags:["circle","geometric","red"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f534.png"},{emoji:"🟠",name:"orange_circle",shortcodes:["orange_circle"],tags:["circle","orange"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7e0.png"},{emoji:"🟡",name:"yellow_circle",shortcodes:["yellow_circle"],tags:["circle","yellow"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7e1.png"},{emoji:"🟢",name:"green_circle",shortcodes:["green_circle"],tags:["circle","green"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7e2.png"},{emoji:"🔵",name:"large_blue_circle",shortcodes:["blue_circle"],tags:["blue","circle","geometric"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f535.png"},{emoji:"🟣",name:"purple_circle",shortcodes:["purple_circle"],tags:["circle","purple"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7e3.png"},{emoji:"🟤",name:"brown_circle",shortcodes:["brown_circle"],tags:["brown","circle"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7e4.png"},{emoji:"⚫",name:"black_circle",shortcodes:["black_circle"],tags:["circle","geometric"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26ab.png"},{emoji:"⚪",name:"white_circle",shortcodes:["white_circle"],tags:["circle","geometric"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/26aa.png"},{emoji:"🟥",name:"red_square",shortcodes:["red_square"],tags:["red","square"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7e5.png"},{emoji:"🟧",name:"orange_square",shortcodes:["orange_square"],tags:["orange","square"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7e7.png"},{emoji:"🟨",name:"yellow_square",shortcodes:["yellow_square"],tags:["square","yellow"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7e8.png"},{emoji:"🟩",name:"green_square",shortcodes:["green_square"],tags:["green","square"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7e9.png"},{emoji:"🟦",name:"blue_square",shortcodes:["blue_square"],tags:["blue","square"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7e6.png"},{emoji:"🟪",name:"purple_square",shortcodes:["purple_square"],tags:["purple","square"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7ea.png"},{emoji:"🟫",name:"brown_square",shortcodes:["brown_square"],tags:["brown","square"],group:"symbols",emoticons:[],version:12,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f7eb.png"},{emoji:"⬛",name:"black_large_square",shortcodes:["black_large_square"],tags:["geometric","square"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2b1b.png"},{emoji:"⬜",name:"white_large_square",shortcodes:["white_large_square"],tags:["geometric","square"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/2b1c.png"},{emoji:"◼",name:"black_medium_square",shortcodes:["black_medium_square"],tags:["geometric","square"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/25fc-fe0f.png"},{emoji:"◻",name:"white_medium_square",shortcodes:["white_medium_square"],tags:["geometric","square"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/25fb-fe0f.png"},{emoji:"◾",name:"black_medium_small_square",shortcodes:["black_medium_small_square"],tags:["geometric","square"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/25fe.png"},{emoji:"◽",name:"white_medium_small_square",shortcodes:["white_medium_small_square"],tags:["geometric","square"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/25fd.png"},{emoji:"▪",name:"black_small_square",shortcodes:["black_small_square"],tags:["geometric","square"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/25aa-fe0f.png"},{emoji:"▫",name:"white_small_square",shortcodes:["white_small_square"],tags:["geometric","square"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/25ab-fe0f.png"},{emoji:"🔶",name:"large_orange_diamond",shortcodes:["large_orange_diamond"],tags:["diamond","geometric","orange"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f536.png"},{emoji:"🔷",name:"large_blue_diamond",shortcodes:["large_blue_diamond"],tags:["blue","diamond","geometric"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f537.png"},{emoji:"🔸",name:"small_orange_diamond",shortcodes:["small_orange_diamond"],tags:["diamond","geometric","orange"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f538.png"},{emoji:"🔹",name:"small_blue_diamond",shortcodes:["small_blue_diamond"],tags:["blue","diamond","geometric"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f539.png"},{emoji:"🔺",name:"small_red_triangle",shortcodes:["small_red_triangle"],tags:["geometric","red"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f53a.png"},{emoji:"🔻",name:"small_red_triangle_down",shortcodes:["small_red_triangle_down"],tags:["down","geometric","red"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f53b.png"},{emoji:"💠",name:"diamond_shape_with_a_dot_inside",shortcodes:["diamond_shape_with_a_dot_inside","diamond_with_a_dot"],tags:["comic","diamond","geometric","inside"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f4a0.png"},{emoji:"🔘",name:"radio_button",shortcodes:["radio_button"],tags:["button","geometric","radio"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f518.png"},{emoji:"🔳",name:"white_square_button",shortcodes:["white_square_button"],tags:["button","geometric","outlined","square"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f533.png"},{emoji:"🔲",name:"black_square_button",shortcodes:["black_square_button"],tags:["button","geometric","square"],group:"symbols",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f532.png"}
299,{emoji:"🏁",name:"checkered_flag",shortcodes:["checkered_flag"],tags:["checkered","chequered","racing"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3c1.png"},{emoji:"🚩",name:"triangular_flag_on_post",shortcodes:["triangular_flag","triangular_flag_on_post"],tags:["post"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f6a9.png"},{emoji:"🎌",name:"crossed_flags",shortcodes:["crossed_flags"],tags:["celebration","cross","crossed","japanese"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f38c.png"},{emoji:"🏴",name:"black_flag",shortcodes:["black_flag"],tags:["waving"],group:"flags",emoticons:[],version:1,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f4.png"},{emoji:"🏳",name:"white_flag",shortcodes:["white_flag"],tags:["waving"],group:"flags",emoticons:[],version:.7,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f3-fe0f.png"},{emoji:"🏳‍🌈",name:"rainbow_flag",shortcodes:["rainbow_flag"],tags:["pride","rainbow"],group:"flags",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f3-fe0f-200d-1f308.png"},{emoji:"🏳‍⚧️",name:"transgender_flag",shortcodes:["transgender_flag"],tags:["flag","light blue","pink","transgender","white"],group:"flags",emoticons:[],version:13,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f3-fe0f-200d-26a7-fe0f.png"},{emoji:"🏴‍☠",name:"pirate_flag",shortcodes:["jolly_roger","pirate_flag"],tags:["jolly roger","pirate","plunder","treasure"],group:"flags",emoticons:[],version:11,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f4-200d-2620-fe0f.png"},{emoji:"🇦🇨",name:"ascension_island",shortcodes:["ascension_island","flag_ac"],tags:["AC","flag","flag: ascension island"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1e8.png"},{emoji:"🇦🇩",name:"andorra",shortcodes:["andorra","flag_ad"],tags:["AD","flag","flag: andorra"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1e9.png"},{emoji:"🇦🇪",name:"united_arab_emirates",shortcodes:["flag_ae","united_arab_emirates"],tags:["AE","flag","flag: united arab emirates"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1ea.png"},{emoji:"🇦🇫",name:"afghanistan",shortcodes:["afghanistan","flag_af"],tags:["AF","flag","flag: afghanistan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1eb.png"},{emoji:"🇦🇬",name:"antigua_barbuda",shortcodes:["antigua_barbuda","flag_ag"],tags:["AG","flag","flag: antigua & barbuda"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1ec.png"},{emoji:"🇦🇮",name:"anguilla",shortcodes:["anguilla","flag_ai"],tags:["AI","flag","flag: anguilla"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1ee.png"},{emoji:"🇦🇱",name:"albania",shortcodes:["albania","flag_al"],tags:["AL","flag","flag: albania"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1f1.png"},{emoji:"🇦🇲",name:"armenia",shortcodes:["armenia","flag_am"],tags:["AM","flag","flag: armenia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1f2.png"},{emoji:"🇦🇴",name:"angola",shortcodes:["angola","flag_ao"],tags:["AO","flag","flag: angola"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1f4.png"}
299,{emoji:"🇦🇶",name:"antarctica",shortcodes:["antarctica","flag_aq"],tags:["AQ","flag","flag: antarctica"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1f6.png"},{emoji:"🇦🇷",name:"argentina",shortcodes:["argentina","flag_ar"],tags:["AR","flag","flag: argentina"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1f7.png"},{emoji:"🇦🇸",name:"american_samoa",shortcodes:["american_samoa","flag_as"],tags:["AS","flag","flag: american samoa"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1f8.png"},{emoji:"🇦🇹",name:"austria",shortcodes:["austria","flag_at"],tags:["AT","flag","flag: austria"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1f9.png"},{emoji:"🇦🇺",name:"australia",shortcodes:["australia","flag_au"],tags:["AU","flag","flag: australia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1fa.png"},{emoji:"🇦🇼",name:"aruba",shortcodes:["aruba","flag_aw"],tags:["AW","flag","flag: aruba"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1fc.png"},{emoji:"🇦🇽",name:"aland_islands",shortcodes:["aland_islands","flag_ax"],tags:["AX","flag","flag: åland islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1fd.png"},{emoji:"🇦🇿",name:"azerbaijan",shortcodes:["azerbaijan","flag_az"],tags:["AZ","flag","flag: azerbaijan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e6-1f1ff.png"},{emoji:"🇧🇦",name:"bosnia_herzegovina",shortcodes:["bosnia_herzegovina","flag_ba"],tags:["BA","flag","flag: bosnia & herzegovina"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1e6.png"},{emoji:"🇧🇧",name:"barbados",shortcodes:["barbados","flag_bb"],tags:["BB","flag","flag: barbados"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1e7.png"},{emoji:"🇧🇩",name:"bangladesh",shortcodes:["bangladesh","flag_bd"],tags:["BD","flag","flag: bangladesh"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1e9.png"},{emoji:"🇧🇪",name:"belgium",shortcodes:["belgium","flag_be"],tags:["BE","flag","flag: belgium"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1ea.png"},{emoji:"🇧🇫",name:"burkina_faso",shortcodes:["burkina_faso","flag_bf"],tags:["BF","flag","flag: burkina faso"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1eb.png"},{emoji:"🇧🇬",name:"bulgaria",shortcodes:["bulgaria","flag_bg"],tags:["BG","flag","flag: bulgaria"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1ec.png"},{emoji:"🇧🇭",name:"bahrain",shortcodes:["bahrain","flag_bh"],tags:["BH","flag","flag: bahrain"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1ed.png"},{emoji:"🇧🇮",name:"burundi",shortcodes:["burundi","flag_bi"],tags:["BI","flag","flag: burundi"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1ee.png"},{emoji:"🇧🇯",name:"benin",shortcodes:["benin","flag_bj"],tags:["BJ","flag","flag: benin"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1ef.png"},{emoji:"🇧🇱",name:"st_barthelemy",shortcodes:["flag_bl","st_barthelemy"],tags:["BL","flag","flag: st. barthélemy"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1f1.png"},{emoji:"🇧🇲",name:"bermuda",shortcodes:["bermuda","flag_bm"],tags:["BM","flag","flag: bermuda"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1f2.png"},{emoji:"🇧🇳",name:"brunei",shortcodes:["brunei","flag_bn"],tags:["BN","flag","flag: brunei"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1f3.png"},{emoji:"🇧🇴",name:"bolivia",shortcodes:["bolivia","flag_bo"],tags:["BO","flag","flag: bolivia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1f4.png"},{emoji:"🇧🇶",name:"caribbean_netherlands",shortcodes:["caribbean_netherlands","flag_bq"],tags:["BQ","flag","flag: caribbean netherlands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1f6.png"},{emoji:"🇧🇷",name:"brazil",shortcodes:["brazil","flag_br"],tags:["BR","flag","flag: brazil"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1f7.png"},{emoji:"🇧🇸",name:"bahamas",shortcodes:["bahamas","flag_bs"],tags:["BS","flag","flag: bahamas"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1f8.png"},{emoji:"🇧🇹",name:"bhutan",shortcodes:["bhutan","flag_bt"],tags:["BT","flag","flag: bhutan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1f9.png"},{emoji:"🇧🇻",name:"bouvet_island",shortcodes:["bouvet_island","flag_bv"],tags:["BV","flag","flag: bouvet island"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1fb.png"},{emoji:"🇧🇼",name:"botswana",shortcodes:["botswana","flag_bw"],tags:["BW","flag","flag: botswana"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1fc.png"},{emoji:"🇧🇾",name:"belarus",shortcodes:["belarus","flag_by"],tags:["BY","flag","flag: belarus"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1fe.png"},{emoji:"🇧🇿",name:"belize",shortcodes:["belize","flag_bz"],tags:["BZ","flag","flag: belize"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e7-1f1ff.png"},{emoji:"🇨🇦",name:"canada",shortcodes:["canada","flag_ca"],tags:["CA","flag","flag: canada"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1e6.png"},{emoji:"🇨🇨",name:"cocos_islands",shortcodes:["cocos_islands","flag_cc"],tags:["CC","flag","flag: cocos (keeling) islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1e8.png"}
299,{emoji:"🇨🇩",name:"congo_kinshasa",shortcodes:["congo_kinshasa","flag_cd"],tags:["CD","flag","flag: congo - kinshasa"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1e9.png"},{emoji:"🇨🇫",name:"central_african_republic",shortcodes:["central_african_republic","flag_cf"],tags:["CF","flag","flag: central african republic"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1eb.png"},{emoji:"🇨🇬",name:"congo_brazzaville",shortcodes:["congo_brazzaville","flag_cg"],tags:["CG","flag","flag: congo - brazzaville"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1ec.png"},{emoji:"🇨🇭",name:"switzerland",shortcodes:["flag_ch","switzerland"],tags:["CH","flag","flag: switzerland"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1ed.png"},{emoji:"🇨🇮",name:"cote_divoire",shortcodes:["cote_divoire","flag_ci"],tags:["CI","flag","flag: côte d’ivoire"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1ee.png"},{emoji:"🇨🇰",name:"cook_islands",shortcodes:["cook_islands","flag_ck"],tags:["CK","flag","flag: cook islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1f0.png"},{emoji:"🇨🇱",name:"chile",shortcodes:["chile","flag_cl"],tags:["CL","flag","flag: chile"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1f1.png"},{emoji:"🇨🇲",name:"cameroon",shortcodes:["cameroon","flag_cm"],tags:["CM","flag","flag: cameroon"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1f2.png"},{emoji:"🇨🇳",name:"cn",shortcodes:["china","flag_cn"],tags:["CN","flag","flag: china"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1f3.png"},{emoji:"🇨🇴",name:"colombia",shortcodes:["colombia","flag_co"],tags:["CO","flag","flag: colombia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1f4.png"},{emoji:"🇨🇵",name:"clipperton_island",shortcodes:["clipperton_island","flag_cp"],tags:["CP","flag","flag: clipperton island"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1f5.png"},{emoji:"🇨🇷",name:"costa_rica",shortcodes:["costa_rica","flag_cr"],tags:["CR","flag","flag: costa rica"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1f7.png"},{emoji:"🇨🇺",name:"cuba",shortcodes:["cuba","flag_cu"],tags:["CU","flag","flag: cuba"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1fa.png"},{emoji:"🇨🇻",name:"cape_verde",shortcodes:["cape_verde","flag_cv"],tags:["CV","flag","flag: cape verde"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1fb.png"},{emoji:"🇨🇼",name:"curacao",shortcodes:["curacao","flag_cw"],tags:["CW","flag","flag: curaçao"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1fc.png"},{emoji:"🇨🇽",name:"christmas_island",shortcodes:["christmas_island","flag_cx"],tags:["CX","flag","flag: christmas island"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1fd.png"},{emoji:"🇨🇾",name:"cyprus",shortcodes:["cyprus","flag_cy"],tags:["CY","flag","flag: cyprus"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1fe.png"},{emoji:"🇨🇿",name:"czech_republic",shortcodes:["czech_republic","czechia","flag_cz"],tags:["CZ","flag","flag: czechia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e8-1f1ff.png"},{emoji:"🇩🇪",name:"de",shortcodes:["flag_de","germany"],tags:["DE","flag","flag: germany"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e9-1f1ea.png"},{emoji:"🇩🇬",name:"diego_garcia",shortcodes:["diego_garcia","flag_dg"],tags:["DG","flag","flag: diego garcia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e9-1f1ec.png"},{emoji:"🇩🇯",name:"djibouti",shortcodes:["djibouti","flag_dj"],tags:["DJ","flag","flag: djibouti"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e9-1f1ef.png"},{emoji:"🇩🇰",name:"denmark",shortcodes:["denmark","flag_dk"],tags:["DK","flag","flag: denmark"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e9-1f1f0.png"},{emoji:"🇩🇲",name:"dominica",shortcodes:["dominica","flag_dm"],tags:["DM","flag","flag: dominica"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e9-1f1f2.png"},{emoji:"🇩🇴",name:"dominican_republic",shortcodes:["dominican_republic","flag_do"],tags:["DO","flag","flag: dominican republic"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e9-1f1f4.png"},{emoji:"🇩🇿",name:"algeria",shortcodes:["algeria","flag_dz"],tags:["DZ","flag","flag: algeria"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1e9-1f1ff.png"},{emoji:"🇪🇦",name:"ceuta_melilla",shortcodes:["ceuta_melilla","flag_ea"],tags:["EA","flag","flag: ceuta & melilla"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ea-1f1e6.png"}
299,{emoji:"🇪🇨",name:"ecuador",shortcodes:["ecuador","flag_ec"],tags:["EC","flag","flag: ecuador"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ea-1f1e8.png"},{emoji:"🇪🇪",name:"estonia",shortcodes:["estonia","flag_ee"],tags:["EE","flag","flag: estonia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ea-1f1ea.png"},{emoji:"🇪🇬",name:"egypt",shortcodes:["egypt","flag_eg"],tags:["EG","flag","flag: egypt"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ea-1f1ec.png"},{emoji:"🇪🇭",name:"western_sahara",shortcodes:["flag_eh","western_sahara"],tags:["EH","flag","flag: western sahara"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ea-1f1ed.png"},{emoji:"🇪🇷",name:"eritrea",shortcodes:["eritrea","flag_er"],tags:["ER","flag","flag: eritrea"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ea-1f1f7.png"},{emoji:"🇪🇸",name:"es",shortcodes:["flag_es","spain"],tags:["ES","flag","flag: spain"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ea-1f1f8.png"},{emoji:"🇪🇹",name:"ethiopia",shortcodes:["ethiopia","flag_et"],tags:["ET","flag","flag: ethiopia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ea-1f1f9.png"},{emoji:"🇪🇺",name:"eu",shortcodes:["european_union","flag_eu"],tags:["EU","flag","flag: european union"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ea-1f1fa.png"},{emoji:"🇫🇮",name:"finland",shortcodes:["finland","flag_fi"],tags:["FI","flag","flag: finland"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1eb-1f1ee.png"},{emoji:"🇫🇯",name:"fiji",shortcodes:["fiji","flag_fj"],tags:["FJ","flag","flag: fiji"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1eb-1f1ef.png"},{emoji:"🇫🇰",name:"falkland_islands",shortcodes:["falkland_islands","flag_fk"],tags:["FK","flag","flag: falkland islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1eb-1f1f0.png"},{emoji:"🇫🇲",name:"micronesia",shortcodes:["flag_fm","micronesia"],tags:["FM","flag","flag: micronesia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1eb-1f1f2.png"},{emoji:"🇫🇴",name:"faroe_islands",shortcodes:["faroe_islands","flag_fo"],tags:["FO","flag","flag: faroe islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1eb-1f1f4.png"},{emoji:"🇫🇷",name:"fr",shortcodes:["flag_fr","france"],tags:["FR","flag","flag: france"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1eb-1f1f7.png"},{emoji:"🇬🇦",name:"gabon",shortcodes:["flag_ga","gabon"],tags:["GA","flag","flag: gabon"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1e6.png"},{emoji:"🇬🇧",name:"gb",shortcodes:["flag_gb","uk","united_kingdom"],tags:["GB","flag","flag: united kingdom"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1e7.png"},{emoji:"🇬🇩",name:"grenada",shortcodes:["flag_gd","grenada"],tags:["GD","flag","flag: grenada"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1e9.png"},{emoji:"🇬🇪",name:"georgia",shortcodes:["flag_ge","georgia"],tags:["GE","flag","flag: georgia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1ea.png"},{emoji:"🇬🇫",name:"french_guiana",shortcodes:["flag_gf","french_guiana"],tags:["GF","flag","flag: french guiana"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1eb.png"},{emoji:"🇬🇬",name:"guernsey",shortcodes:["flag_gg","guernsey"],tags:["GG","flag","flag: guernsey"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1ec.png"},{emoji:"🇬🇭",name:"ghana",shortcodes:["flag_gh","ghana"],tags:["GH","flag","flag: ghana"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1ed.png"},{emoji:"🇬🇮",name:"gibraltar",shortcodes:["flag_gi","gibraltar"],tags:["GI","flag","flag: gibraltar"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1ee.png"},{emoji:"🇬🇱",name:"greenland",shortcodes:["flag_gl","greenland"],tags:["GL","flag","flag: greenland"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1f1.png"},{emoji:"🇬🇲",name:"gambia",shortcodes:["flag_gm","gambia"],tags:["GM","flag","flag: gambia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1f2.png"},{emoji:"🇬🇳",name:"guinea",shortcodes:["flag_gn","guinea"],tags:["GN","flag","flag: guinea"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1f3.png"},{emoji:"🇬🇵",name:"guadeloupe",shortcodes:["flag_gp","guadeloupe"],tags:["GP","flag","flag: guadeloupe"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1f5.png"},{emoji:"🇬🇶",name:"equatorial_guinea",shortcodes:["equatorial_guinea","flag_gq"],tags:["GQ","flag","flag: equatorial guinea"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1f
2996.png"},{emoji:"🇬🇷",name:"greece",shortcodes:["flag_gr","greece"],tags:["GR","flag","flag: greece"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1f7.png"},{emoji:"🇬🇸",name:"south_georgia_south_sandwich_islands",shortcodes:["flag_gs","south_georgia_south_sandwich_islands"],tags:["GS","flag","flag: south georgia & south sandwich islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1f8.png"},{emoji:"🇬🇹",name:"guatemala",shortcodes:["flag_gt","guatemala"],tags:["GT","flag","flag: guatemala"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1f9.png"},{emoji:"🇬🇺",name:"guam",shortcodes:["flag_gu","guam"],tags:["GU","flag","flag: guam"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1fa.png"},{emoji:"🇬🇼",name:"guinea_bissau",shortcodes:["flag_gw","guinea_bissau"],tags:["GW","flag","flag: guinea-bissau"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1fc.png"},{emoji:"🇬🇾",name:"guyana",shortcodes:["flag_gy","guyana"],tags:["GY","flag","flag: guyana"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ec-1f1fe.png"},{emoji:"🇭🇰",name:"hong_kong",shortcodes:["flag_hk","hong_kong"],tags:["HK","flag","flag: hong kong sar china"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ed-1f1f0.png"},{emoji:"🇭🇲",name:"heard_mcdonald_islands",shortcodes:["flag_hm","heard_mcdonald_islands"],tags:["HM","flag","flag: heard & mcdonald islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ed-1f1f2.png"},{emoji:"🇭🇳",name:"honduras",shortcodes:["flag_hn","honduras"],tags:["HN","flag","flag: honduras"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ed-1f1f3.png"},{emoji:"🇭🇷",name:"croatia",shortcodes:["croatia","flag_hr"],tags:["HR","flag","flag: croatia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ed-1f1f7.png"},{emoji:"🇭🇹",name:"haiti",shortcodes:["flag_ht","haiti"],tags:["HT","flag","flag: haiti"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ed-1f1f9.png"},{emoji:"🇭🇺",name:"hungary",shortcodes:["flag_hu","hungary"],tags:["HU","flag","flag: hungary"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ed-1f1fa.png"}
299,{emoji:"🇮🇨",name:"canary_islands",shortcodes:["canary_islands","flag_ic"],tags:["IC","flag","flag: canary islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1e8.png"},{emoji:"🇮🇩",name:"indonesia",shortcodes:["flag_id","indonesia"],tags:["ID","flag","flag: indonesia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1e9.png"},{emoji:"🇮🇪",name:"ireland",shortcodes:["flag_ie","ireland"],tags:["IE","flag","flag: ireland"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1ea.png"},{emoji:"🇮🇱",name:"israel",shortcodes:["flag_il","israel"],tags:["IL","flag","flag: israel"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1f1.png"},{emoji:"🇮🇲",name:"isle_of_man",shortcodes:["flag_im","isle_of_man"],tags:["IM","flag","flag: isle of man"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1f2.png"},{emoji:"🇮🇳",name:"india",shortcodes:["flag_in","india"],tags:["IN","flag","flag: india"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1f3.png"},{emoji:"🇮🇴",name:"british_indian_ocean_territory",shortcodes:["british_indian_ocean_territory","flag_io"],tags:["IO","flag","flag: british indian ocean territory"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1f4.png"},{emoji:"🇮🇶",name:"iraq",shortcodes:["flag_iq","iraq"],tags:["IQ","flag","flag: iraq"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1f6.png"},{emoji:"🇮🇷",name:"iran",shortcodes:["flag_ir","iran"],tags:["IR","flag","flag: iran"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1f7.png"},{emoji:"🇮🇸",name:"iceland",shortcodes:["flag_is","iceland"],tags:["IS","flag","flag: iceland"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1f8.png"},{emoji:"🇮🇹",name:"it",shortcodes:["flag_it","italy"],tags:["IT","flag","flag: italy"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ee-1f1f9.png"},{emoji:"🇯🇪",name:"jersey",shortcodes:["flag_je","jersey"],tags:["JE","flag","flag: jersey"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ef-1f1ea.png"},{emoji:"🇯🇲",name:"jamaica",shortcodes:["flag_jm","jamaica"],tags:["JM","flag","flag: jamaica"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ef-1f1f2.png"},{emoji:"🇯🇴",name:"jordan",shortcodes:["flag_jo","jordan"],tags:["JO","flag","flag: jordan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ef-1f1f4.png"},{emoji:"🇯🇵",name:"jp",shortcodes:["flag_jp","japan"],tags:["JP","flag","flag: japan"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ef-1f1f5.png"},{emoji:"🇰🇪",name:"kenya",shortcodes:["flag_ke","kenya"],tags:["KE","flag","flag: kenya"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1ea.png"},{emoji:"🇰🇬",name:"kyrgyzstan",shortcodes:["flag_kg","kyrgyzstan"],tags:["KG","flag","flag: kyrgyzstan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1ec.png"},{emoji:"🇰🇭",name:"cambodia",shortcodes:["cambodia","flag_kh"],tags:["KH","flag","flag: cambodia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1ed.png"},{emoji:"🇰🇮",name:"kiribati",shortcodes:["flag_ki","kiribati"],tags:["KI","flag","flag: kiribati"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1ee.png"},{emoji:"🇰🇲",name:"comoros",shortcodes:["comoros","flag_km"],tags:["KM","flag","flag: comoros"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1f2.png"},{emoji:"🇰🇳",name:"st_kitts_nevis",shortcodes:["flag_kn","st_kitts_nevis"],tags:["KN","flag","flag: st. kitts & nevis"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1f3.png"},{emoji:"🇰🇵",name:"north_korea",shortcodes:["flag_kp","north_korea"],tags:["KP","flag","flag: north korea"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1f5.png"},{emoji:"🇰🇷",name:"kr",shortcodes:["flag_kr","south_korea"],tags:["KR","flag","flag: south korea"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1f7.png"},{emoji:"🇰🇼",name:"kuwait",shortcodes:["flag_kw","kuwait"],tags:["KW","flag","flag: kuwait"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1fc.png"},{emoji:"🇰🇾",name:"cayman_islands",shortcodes:["cayman_islands","flag_ky"],tags:["KY","flag","flag: cayman islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1fe.png"},{emoji:"🇰🇿",name:"kazakhstan",shortcodes:["flag_kz","kazakhstan"],tags:["KZ","flag","flag: kazakhstan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f0-1f1ff.png"},{emoji:"🇱🇦",name:"laos",shortcodes:["flag_la","laos"],tags:["LA","flag","flag: laos"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1e6.png"},{emoji:"🇱🇧",name:"lebanon",shortcodes:["flag_lb","lebanon"],tags:["LB","flag","flag: lebanon"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1e7.png"}
299,{emoji:"🇱🇨",name:"st_lucia",shortcodes:["flag_lc","st_lucia"],tags:["LC","flag","flag: st. lucia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1e8.png"},{emoji:"🇱🇮",name:"liechtenstein",shortcodes:["flag_li","liechtenstein"],tags:["LI","flag","flag: liechtenstein"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1ee.png"},{emoji:"🇱🇰",name:"sri_lanka",shortcodes:["flag_lk","sri_lanka"],tags:["LK","flag","flag: sri lanka"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1f0.png"},{emoji:"🇱🇷",name:"liberia",shortcodes:["flag_lr","liberia"],tags:["LR","flag","flag: liberia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1f7.png"},{emoji:"🇱🇸",name:"lesotho",shortcodes:["flag_ls","lesotho"],tags:["LS","flag","flag: lesotho"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1f8.png"},{emoji:"🇱🇹",name:"lithuania",shortcodes:["flag_lt","lithuania"],tags:["LT","flag","flag: lithuania"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1f9.png"},{emoji:"🇱🇺",name:"luxembourg",shortcodes:["flag_lu","luxembourg"],tags:["LU","flag","flag: luxembourg"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1fa.png"},{emoji:"🇱🇻",name:"latvia",shortcodes:["flag_lv","latvia"],tags:["LV","flag","flag: latvia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1fb.png"},{emoji:"🇱🇾",name:"libya",shortcodes:["flag_ly","libya"],tags:["LY","flag","flag: libya"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f1-1f1fe.png"},{emoji:"🇲🇦",name:"morocco",shortcodes:["flag_ma","morocco"],tags:["MA","flag","flag: morocco"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1e6.png"},{emoji:"🇲🇨",name:"monaco",shortcodes:["flag_mc","monaco"],tags:["MC","flag","flag: monaco"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1e8.png"},{emoji:"🇲🇩",name:"moldova",shortcodes:["flag_md","moldova"],tags:["MD","flag","flag: moldova"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1e9.png"},{emoji:"🇲🇪",name:"montenegro",shortcodes:["flag_me","montenegro"],tags:["ME","flag","flag: montenegro"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1ea.png"},{emoji:"🇲🇫",name:"st_martin",shortcodes:["flag_mf","st_martin"],tags:["MF","flag","flag: st. martin"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1eb.png"},{emoji:"🇲🇬",name:"madagascar",shortcodes:["flag_mg","madagascar"],tags:["MG","flag","flag: madagascar"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1ec.png"},{emoji:"🇲🇭",name:"marshall_islands",shortcodes:["flag_mh","marshall_islands"],tags:["MH","flag","flag: marshall islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1ed.png"},{emoji:"🇲🇰",name:"macedonia",shortcodes:["flag_mk","macedonia"],tags:["MK","flag","flag: north macedonia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1f0.png"},{emoji:"🇲🇱",name:"mali",shortcodes:["flag_ml","mali"],tags:["ML","flag","flag: mali"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1f1.png"},{emoji:"🇲🇲",name:"myanmar",shortcodes:["burma","flag_mm","myanmar"],tags:["MM","flag","flag: myanmar (burma)"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1f2.png"},{emoji:"🇲🇳",name:"mongolia",shortcodes:["flag_mn","mongolia"],tags:["MN","flag","flag: mongolia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1f3.png"},{emoji:"🇲🇴",name:"macau",shortcodes:["flag_mo","macao","macau"],tags:["MO","flag","flag: macao s
299ar china"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1f4.png"},{emoji:"🇲🇵",name:"northern_mariana_islands",shortcodes:["flag_mp","northern_mariana_islands"],tags:["MP","flag","flag: northern mariana islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1f5.png"},{emoji:"🇲🇶",name:"martinique",shortcodes:["flag_mq","martinique"],tags:["MQ","flag","flag: martinique"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1f6.png"},{emoji:"🇲🇷",name:"mauritania",shortcodes:["flag_mr","mauritania"],tags:["MR","flag","flag: mauritania"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1f7.png"},{emoji:"🇲🇸",name:"montserrat",shortcodes:["flag_ms","montserrat"],tags:["MS","flag","flag: montserrat"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1f8.png"},{emoji:"🇲🇹",name:"malta",shortcodes:["flag_mt","malta"],tags:["MT","flag","flag: malta"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1f9.png"},{emoji:"🇲🇺",name:"mauritius",shortcodes:["flag_mu","mauritius"],tags:["MU","flag","flag: mauritius"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1fa.png"},{emoji:"🇲🇻",name:"maldives",shortcodes:["flag_mv","maldives"],tags:["MV","flag","flag: maldives"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1fb.png"},{emoji:"🇲🇼",name:"malawi",shortcodes:["flag_mw","malawi"],tags:["MW","flag","flag: malawi"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1fc.png"},{emoji:"🇲🇽",name:"mexico",shortcodes:["flag_mx","mexico"],tags:["MX","flag","flag: mexico"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1fd.png"},{emoji:"🇲🇾",name:"malaysia",shortcodes:["flag_my","malaysia"],tags:["MY","flag","flag: malaysia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1fe.png"},{emoji:"🇲🇿",name:"mozambique",shortcodes:["flag_mz","mozambique"],tags:["MZ","flag","flag: mozambique"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f2-1f1ff.png"},{emoji:"🇳🇦",name:"namibia",shortcodes:["flag_na","namibia"],tags:["NA","flag","flag: namibia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1e6.png"},{emoji:"🇳🇨",name:"new_caledonia",shortcodes:["flag_nc","new_caledonia"],tags:["NC","flag","flag: new caledonia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1e8.png"},{emoji:"🇳🇪",name:"niger",shortcodes:["flag_ne","niger"],tags:["NE","flag","flag: niger"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1ea.png"},{emoji:"🇳🇫",name:"norfolk_island",shortcodes:["flag_nf","norfolk_island"],tags:["NF","flag","flag: norfolk island"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1eb.png"},{emoji:"🇳🇬",name:"nigeria",shortcodes:["flag_ng","nigeria"],tags:["NG","flag","flag: nigeria"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1ec.png"},{emoji:"🇳🇮",name:"nicaragua",shortcodes:["flag_ni","nicaragua"],tags:["NI","flag","flag: nicaragua"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1ee.png"},{emoji:"🇳🇱",name:"netherlands",shortcodes:["flag_nl","netherlands"],tags:["NL","flag","flag: netherlands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1f1.png"},{emoji:"🇳🇴",name:"norway",shortcodes:["flag_no","norway"],tags:["NO","flag","flag: norway"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1f4.png"},{emoji:"🇳🇵",name:"nepal",shortcodes:["flag_np","nepal"],tags:["NP","flag","flag: nepal"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1f5.png"},{emoji:"🇳🇷",name:"nauru",shortcodes:["flag_nr","nauru"],tags:["NR","flag","flag: nauru"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1f7.png"},{emoji:"🇳🇺",name:"niue",shortcodes:["flag_nu","niue"],tags:["NU","flag","flag: niue"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1fa.png"},{emoji:"🇳🇿",name:"new_zealand",shortcodes:["flag_nz","new_zealand"],tags:["NZ","flag","flag: new zealand"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f3-1f1ff.png"},{emoji:"🇴🇲",name:"oman",shortcodes:["flag_om","oman"],tags:["OM","flag","flag: oman"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f4-1f1f2.png"},{emoji:"🇵🇦",name:"panama",shortcodes:["flag_pa","panama"],tags:["PA","flag","flag: panama"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1e6.png"},{emoji:"🇵🇪",name:"peru",shortcodes:["flag_pe","peru"],tags:["PE","flag","flag: peru"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1ea.png"},{emoji:"🇵🇫",name:"french_polynesia",shortcodes:["flag_pf","french_polynesia"],tags:["PF","flag","flag: french polynesia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1eb.png"},{emoji:"🇵🇬",name:"papua_new_guinea",shortcodes:["flag_pg","papua_new_guinea"],tags:["PG","flag","flag: papua new guinea"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1ec.png"},{emoji:"🇵🇭",name:"philippines",shortcodes:["flag_ph","philippines"],tags:["PH","flag","flag: philippines"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1ed.png"},{emoji:"🇵🇰",name:"pakistan",shortcodes:["flag_pk","pakistan"],tags:["PK","flag","flag: pakistan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1f0.png"},{emoji:"🇵🇱",name:"poland",shortcodes:["flag_pl","poland"],tags:["PL","flag","flag: poland"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1f1.png"},{emoji:"🇵🇲",name:"st_pierre_miquelon",shortcodes:["flag_pm","st_pierre_miquelon"],tags:["PM","flag","flag: st. pierre & miquelon"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1f2.png"},{emoji:"🇵🇳",name:"pitcairn_islands",shortcodes:["flag_pn","pitcairn_islands"],tags:["PN","flag","flag: pitcairn islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1f3.png"},{emoji:"🇵🇷",name:"puerto_rico",shortcodes:["flag_pr","puerto_rico"],tags:["PR","flag","flag: puerto rico"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1f7.png"},{emoji:"🇵🇸",name:"palestinian_territories",shortcodes:["flag_ps","palestinian_territories"],tags:["PS","flag","flag: palestinian territories"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1f8.png"},{emoji:"🇵🇹",name:"portugal",shortcodes:["flag_pt","portugal"],tags:["PT","flag","flag: portugal"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1f9.png"},{emoji:"🇵🇼",name:"palau",shortcodes:["flag_pw","palau"],tags:["PW","flag","flag: palau"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1fc.png"},{emoji:"🇵🇾",name:"paraguay",shortcodes:["flag_py","paraguay"],tags:["PY","flag","flag: paraguay"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f5-1f1fe.png"},{emoji:"🇶🇦",name:"qatar",shortcodes:["flag_qa","qatar"],tags:["QA","flag","flag: qatar"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f
2996-1f1e6.png"},{emoji:"🇷🇪",name:"reunion",shortcodes:["flag_re","reunion"],tags:["RE","flag","flag: réunion"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f7-1f1ea.png"},{emoji:"🇷🇴",name:"romania",shortcodes:["flag_ro","romania"],tags:["RO","flag","flag: romania"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f7-1f1f4.png"},{emoji:"🇷🇸",name:"serbia",shortcodes:["flag_rs","serbia"],tags:["RS","flag","flag: serbia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f7-1f1f8.png"},{emoji:"🇷🇺",name:"ru",shortcodes:["flag_ru","russia"],tags:["RU","flag","flag: russia"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f7-1f1fa.png"},{emoji:"🇷🇼",name:"rwanda",shortcodes:["flag_rw","rwanda"],tags:["RW","flag","flag: rwanda"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f7-1f1fc.png"},{emoji:"🇸🇦",name:"saudi_arabia",shortcodes:["flag_sa","saudi_arabia"],tags:["SA","flag","flag: saudi arabia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1e6.png"},{emoji:"🇸🇧",name:"solomon_islands",shortcodes:["flag_sb","solomon_islands"],tags:["SB","flag","flag: solomon islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1e7.png"},{emoji:"🇸🇨",name:"seychelles",shortcodes:["flag_sc","seychelles"],tags:["SC","flag","flag: seychelles"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1e8.png"},{emoji:"🇸🇩",name:"sudan",shortcodes:["flag_sd","sudan"],tags:["SD","flag","flag: sudan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1e9.png"},{emoji:"🇸🇪",name:"sweden",shortcodes:["flag_se","sweden"],tags:["SE","flag","flag: sweden"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1ea.png"},{emoji:"🇸🇬",name:"singapore",shortcodes:["flag_sg","singapore"],tags:["SG","flag","flag: singapore"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1ec.png"},{emoji:"🇸🇭",name:"st_helena",shortcodes:["flag_sh","st_helena"],tags:["SH","flag","flag: st. helena"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1ed.png"},{emoji:"🇸🇮",name:"slovenia",shortcodes:["flag_si","slovenia"],tags:["SI","flag","flag: slovenia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1ee.png"},{emoji:"🇸🇯",name:"svalbard_jan_mayen",shortcodes:["flag_sj","svalbard_jan_mayen"],tags:["SJ","flag","flag: svalbard & jan mayen"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1ef.png"},{emoji:"🇸🇰",name:"slovakia",shortcodes:["flag_sk","slovakia"],tags:["SK","flag","flag: slovakia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1f0.png"},{emoji:"🇸🇱",name:"sierra_leone",shortcodes:["flag_sl","sierra_leone"],tags:["SL","flag","flag: sierra leone"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1f1.png"},{emoji:"🇸🇲",name:"san_marino",shortcodes:["flag_sm","san_marino"],tags:["SM","flag","flag: san marino"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1f2.png"},{emoji:"🇸🇳",name:"senegal",shortcodes:["flag_sn","senegal"],tags:["SN","flag","flag: senegal"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1f3.png"},{emoji:"🇸🇴",name:"somalia",shortcodes:["flag_so","somalia"],tags:["SO","flag","flag: somalia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1f4.png"},{emoji:"🇸🇷",name:"suriname",shortcodes:["flag_sr","suriname"],tags:["SR","flag","flag: suriname"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1f7.png"},{emoji:"🇸🇸",name:"south_sudan",shortcodes:["flag_ss","south_sudan"],tags:["SS","flag","flag: south sudan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1f8.png"},{emoji:"🇸🇹",name:"sao_tome_principe",shortcodes:["flag_st","sao_tome_principe"],tags:["ST","flag","flag: são tomé & príncipe"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1f9.png"},{emoji:"🇸🇻",name:"el_salvador",shortcodes:["el_salvador","flag_sv"],tags:["SV","flag","flag: el salvador"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1fb.png"}
299,{emoji:"🇸🇽",name:"sint_maarten",shortcodes:["flag_sx","sint_maarten"],tags:["SX","flag","flag: sint maarten"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1fd.png"},{emoji:"🇸🇾",name:"syria",shortcodes:["flag_sy","syria"],tags:["SY","flag","flag: syria"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1fe.png"},{emoji:"🇸🇿",name:"swaziland",shortcodes:["eswatini","flag_sz","swaziland"],tags:["SZ","flag","flag: eswatini"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f8-1f1ff.png"},{emoji:"🇹🇦",name:"tristan_da_cunha",shortcodes:["flag_ta","tristan_da_cunha"],tags:["TA","flag","flag: tristan da cunha"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1e6.png"},{emoji:"🇹🇨",name:"turks_caicos_islands",shortcodes:["flag_tc","turks_caicos_islands"],tags:["TC","flag","flag: turks & caicos islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1e8.png"},{emoji:"🇹🇩",name:"chad",shortcodes:["chad","flag_td"],tags:["TD","flag","flag: chad"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1e9.png"},{emoji:"🇹🇫",name:"french_southern_territories",shortcodes:["flag_tf","french_southern_territories"],tags:["TF","flag","flag: french southern territories"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1eb.png"},{emoji:"🇹🇬",name:"togo",shortcodes:["flag_tg","togo"],tags:["TG","flag","flag: togo"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1ec.png"},{emoji:"🇹🇭",name:"thailand",shortcodes:["flag_th","thailand"],tags:["TH","flag","flag: thailand"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1ed.png"},{emoji:"🇹🇯",name:"tajikistan",shortcodes:["flag_tj","tajikistan"],tags:["TJ","flag","flag: tajikistan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1ef.png"},{emoji:"🇹🇰",name:"tokelau",shortcodes:["flag_tk","tokelau"],tags:["TK","flag","flag: tokelau"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1f0.png"},{emoji:"🇹🇱",name:"timor_leste",shortcodes:["flag_tl","timor_leste"],tags:["TL","flag","flag: timor-leste"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1f1.png"},{emoji:"🇹🇲",name:"turkmenistan",shortcodes:["flag_tm","turkmenistan"],tags:["TM","flag","flag: turkmenistan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1f2.png"},{emoji:"🇹🇳",name:"tunisia",shortcodes:["flag_tn","tunisia"],tags:["TN","flag","flag: tunisia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1f3.png"},{emoji:"🇹🇴",name:"tonga",shortcodes:["flag_to","tonga"],tags:["TO","flag","flag: tonga"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1f4.png"},{emoji:"🇹🇷",name:"tr",shortcodes:["flag_tr","turkey_tr"],tags:["TR","flag","flag: türkiye"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1f7.png"},{emoji:"🇹🇹",name:"trinidad_tobago",shortcodes:["flag_tt","trinidad_tobago"],tags:["TT","flag","flag: trinidad & tobago"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1f9.png"},{emoji:"🇹🇻",name:"tuvalu",shortcodes:["flag_tv","tuvalu"],tags:["TV","flag","flag: tuvalu"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1fb.png"},{emoji:"🇹🇼",name:"taiwan",shortcodes:["flag_tw","taiwan"],tags:["TW","flag","flag: taiwan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1fc.png"},{emoji:"🇹🇿",name:"tanzania",shortcodes:["flag_tz","tanzania"],tags:["TZ","flag","flag: tanzania"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1f9-1f1ff.png"},{emoji:"🇺🇦",name:"ukraine",shortcodes:["flag_ua","ukraine"],tags:["UA","flag","flag: ukraine"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fa-1f1e6.png"},{emoji:"🇺🇬",name:"uganda",shortcodes:["flag_ug","uganda"],tags:["UG","flag","flag: uganda"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fa-1f1ec.png"},{emoji:"🇺🇲",name:"us_outlying_islands",shortcodes:["flag_um","us_outlying_islands"],tags:["UM","flag","flag: u.s. outlying islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fa-1f1f2.png"},{emoji:"🇺🇳",name:"united_nations",shortcodes:["flag_un","un","united_nations"],tags:["UN","flag","flag: united nations"],group:"flags",emoticons:[],version:4,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fa-1f1f3.png"},{emoji:"🇺🇸",name:"us",shortcodes:["flag_us","united_states","usa"],tags:["US","flag","flag: united states"],group:"flags",emoticons:[],version:.6,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fa-1f1f8.png"},{emoji:"🇺🇾",name:"uruguay",shortcodes:["flag_uy","uruguay"],tags:["UY","flag","flag: uruguay"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fa-1f1fe.png"},{emoji:"🇺🇿",name:"uzbekistan",shortcodes:["flag_uz","uzbekistan"],tags:["UZ","flag","flag: uzbekistan"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fa-1f1ff.png"},{emoji:"🇻🇦",name:"vatican_city",shortcodes:["flag_va","vatican_city"],tags:["VA","flag","flag: vatican city"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fb-1f1e6.png"},{emoji:"🇻🇨",name:"st_vincent_grenadines",shortcodes:["flag_vc","st_vincent_grenadines"],tags:["VC","flag","flag: st. vincent & grenadines"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fb-1f1e8.png"},{emoji:"🇻🇪",name:"venezuela",shortcodes:["flag_ve","venezuela"],tags:["VE","flag","flag: venezuela"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fb-1f1ea.png"},{emoji:"🇻🇬",name:"british_virgin_islands",shortcodes:["british_virgin_islands","flag_vg"],tags:["VG","flag","flag: british virgin islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fb-1f1ec.png"},{emoji:"🇻🇮",name:"us_virgin_islands",shortcodes:["flag_vi","us_virgin_islands"],tags:["VI","flag","flag: u.s. virgin islands"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fb-1f1ee.png"},{emoji:"🇻🇳",name:"vietnam",shortcodes:["flag_vn","vietnam"],tags:["VN","flag","flag: vietnam"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fb-1f1f3.png"},{emoji:"🇻🇺",name:"vanuatu",shortcodes:["flag_vu","vanuatu"],tags:["VU","flag","flag: vanuatu"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fb-1f1fa.png"}
299,{emoji:"🇼🇫",name:"wallis_futuna",shortcodes:["flag_wf","wallis_futuna"],tags:["WF","flag","flag: wallis & futuna"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fc-1f1eb.png"},{emoji:"🇼🇸",name:"samoa",shortcodes:["flag_ws","samoa"],tags:["WS","flag","flag: samoa"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fc-1f1f8.png"},{emoji:"🇽🇰",name:"kosovo",shortcodes:["flag_xk","kosovo"],tags:["XK","flag","flag: kosovo"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fd-1f1f0.png"},{emoji:"🇾🇪",name:"yemen",shortcodes:["flag_ye","yemen"],tags:["YE","flag","flag: yemen"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fe-1f1ea.png"},{emoji:"🇾🇹",name:"mayotte",shortcodes:["flag_yt","mayotte"],tags:["YT","flag","flag: mayotte"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1fe-1f1f9.png"},{emoji:"🇿🇦",name:"south_africa",shortcodes:["flag_za","south_africa"],tags:["ZA","flag","flag: south africa"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ff-1f1e6.png"},{emoji:"🇿🇲",name:"zambia",shortcodes:["flag_zm","zambia"],tags:["ZM","flag","flag: zambia"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ff-1f1f2.png"},{emoji:"🇿🇼",name:"zimbabwe",shortcodes:["flag_zw","zimbabwe"],tags:["ZW","flag","flag: zimbabwe"],group:"flags",emoticons:[],version:2,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f1ff-1f1fc.png"},{emoji:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",name:"england",shortcodes:["england","flag_gbeng"],tags:["flag","flag: england","gbeng"],group:"flags",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f4-e0067-e0062-e0065-e006e-e0067-e007f.png"},{emoji:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",name:"scotland",shortcodes:["flag_gbsct","scotland"],tags:["flag","flag: scotland","gbsct"],group:"flags",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f4-e0067-e0062-e0073-e0063-e0074-e007f.png"},{emoji:"🏴󠁧󠁢󠁷󠁬󠁳󠁿",name:"wales",shortcodes:["flag_gbwls","wales"],tags:["flag","flag: wales","gbwls"],group:"flags",emoticons:[],version:5,fallbackImage:"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f3f4-e0067-e0062-e0077-e006c-e0073-e007f.png"}],DW=[{name:"atom",shortcodes:["atom"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/atom.png"},{name:"basecamp",shortcodes:["basecamp"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/basecamp.png"},{name:"basecampy",shortcodes:["basecampy"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/basecampy.png"},{name:"bowtie",shortcodes:["bowtie"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/bowtie.png"},{name:"electron",shortcodes:["electron"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/electron.png"},{name:"feelsgood",shortcodes:["feelsgood"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/feelsgood.png"},{name:"finnadie",shortcodes:["finnadie"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/finnadie.png"},{name:"goberserk",shortcodes:["goberserk"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/goberserk.png"},{name:"godmode",shortcodes:["godmode"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/godmode.png"},{name:"hurtrealbad",shortcodes:["hurtrealbad"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/hurtrealbad.png"},{name:"neckbeard",shortcodes:["neckbeard"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/neckbeard.png"},{name:"octocat",shortcodes:["octocat"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/octocat.png"},{name:"rage1",shortcodes:["rage1"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/rage1.png"},{name:"rage2",shortcodes:["rage2"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/rage2.png"},{name:"rage3",shortcodes:["rage3"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/rage3.png"},{name:"rage4",shortcodes:["rage4"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/rage4.png"},{name:"shipit",shortcodes:["shipit"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/shipit.png"},{name:"suspect",shortcodes:["suspect"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/suspect.png"},{name:"trollface",shortcodes:["trollface"],tags:[],group:"GitHub",fallbackImage:"https://github.githubassets.com/images/icons/emoji/trollface.png"}],FW=[...p_,...DW];function EW(t){return t.replace("︎","").replace("️","")}function IW(t,e){var n;return(n=e.find(o=>o.emoji===EW(t)))==null?void 0:n.shortcodes[0]}function SW(t,e=JSON.stringify){const n={};return t.filter(o=>{const s=e(o);return Object.prototype.hasOwnProperty.call(n,s)?!1:n[s]=!0})}function aa(t,e){return e.find(n=>t===n.name||n.shortcodes.includes(t))}var AW=new we("emojiSuggestion"),MW=/:([a-zA-Z0-9_+-]+):$/,TW=/(^|\s):([a-zA-Z0-9_+-]+):/g,NW=De.create({name:"emoji",inline:!0,group:"inline",selectable:!1,addOptions(){return{HTMLAttributes:{},emojis:p_,enableEmoticons:!1,forceFallbackImages:!1,suggestion:{char:":",pluginKey:AW,command:({editor:t,range:e,props:n})=>{var o;const s=t.view.state.selection.$to.nodeAfter;((o=s?.text)==null?void 0:o.startsWith(" "))&&(e.to+=1),t.chain().focus().insertContentAt(e,[{type:this.name,attrs:n},{type:"text",text:" "}]).command(({tr:a,state:i})=>(a.setStoredMarks(i.doc.resolve(i.selection.to-2).marks()),!0)).run()},allow:({state:t,range:e})=>{const n=t.doc.resolve(e.from),o=t.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(o)}}}},addStorage(){const{emojis:t}=this.options,e=SW(t.map(n=>n.version)).filter(n=>typeof n=="number").reduce((n,o)=>{const s=t.find(r=>r.version===o&&r.emoji);return{...n,[o]:s?xW(s.emoji):!1}},{});return{emojis:this.options.emojis,isSupported:n=>n.version?e[n.version]:!1}},addAttributes(){return{name:{default:null,parseHTML:t=>t.dataset.name,renderHTML:t=>({"data-name":t.name})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]}
299,renderHTML({HTMLAttributes:t,node:e}){const n=aa(e.attrs.name,this.options.emojis),o=ze(t,this.options.HTMLAttributes,{"data-type":this.name});if(!n)return["span",o,`:${e.attrs.name}:`];const s=this.storage.isSupported(n),r=!!n?.emoji,a=!!n?.fallbackImage,i=this.options.forceFallbackImages&&!r||this.options.forceFallbackImages&&a||this.options.forceFallbackImages&&!s&&a||(!s||!r)&&a;return["span",o,i?["img",{src:n.fallbackImage,draggable:"false",loading:"lazy",align:"absmiddle",alt:`${n.name} emoji`}]:n.emoji||`:${n.shortcodes[0]}:`]},renderText({node:t}){const e=aa(t.attrs.name,this.options.emojis);return e?.emoji||`:${t.attrs.name}:`},renderMarkdown:t=>{var e;return(e=t.attrs)!=null&&e.name?`:${t.attrs.name}:`:""},addCommands(){return{setEmoji:t=>({chain:e})=>{const n=aa(t,this.options.emojis);return n?(e().insertContent({type:this.name,attrs:{name:n.name}}).command(({tr:o,state:s})=>(o.setStoredMarks(s.doc.resolve(s.selection.to-1).marks()),!0)).run(),!0):!1}}},addInputRules(){const t=[];if(t.push(new Vr({find:MW,handler:({range:e,match:n,chain:o})=>{const s=n[1];aa(s,this.options.emojis)&&o().insertContentAt(e,{type:this.name,attrs:{name:s}}).command(({tr:r,state:a})=>(r.setStoredMarks(a.doc.resolve(a.selection.to-1).marks()),!0)).run()}})),this.options.enableEmoticons){const e=this.options.emojis.flatMap(o=>o.emoticons).filter(o=>o),n=new RegExp(`(?:^|\\s)(${e.map(o=>K6(o)).join("|")}) $`);
299t.push(Dm({find:n,type:this.type,getAttributes:o=>{const s=this.options.emojis.find(r=>{var a;return(a=r.emoticons)==null?void 0:a.includes(o[1])});if(s)return{name:s.name}}}))}return t},addPasteRules(){return[new N6({find:TW,handler:({range:t,match:e,chain:n})=>{const o=e[1]||"",s=e[2];if(!aa(s,this.options.emojis))return;const r=t.from+o.length,a=t.to;n().insertContentAt({from:r,to:a},{type:this.name,attrs:{name:s}},{updateSelection:!1}).command(({tr:i,state:l})=>(i.setStoredMarks(l.doc.resolve(l.selection.to-1).marks()),!0)).run()}})]},addProseMirrorPlugins(){return[mR({editor:this.editor,...this.options.suggestion}),new xe({key:new we("emoji"),props:{handleDoubleClickOn:(t,e,n)=>{if(n.type!==this.type)return!1;const o=e,s=o+n.nodeSize;return this.editor.commands.setTextSelection({from:o,to:s}),!0}},appendTransaction:(t,e,n)=>{if(this.editor.view.composing||!(t.some(i=>i.docChanged)&&!e.doc.eq(n.doc)))return;const{tr:s}=n,r=Jc(e.doc,t);if(Xc(r).forEach(({newRange:i})=>{if(n.doc.resolve(i.from).parent.type.spec.code)return;km(n.doc,i,c=>c.type.isText).forEach(({node:c,pos:u})=>{if(!c.text)return;[...c.text.matchAll(_W())].forEach(p=>{if(p.index===void 0)return;const m=p[0],h=IW(m,this.options.emojis);if(!h)return;const g=s.mapping.map(u+p.index);if(n.doc.resolve(g).parent.type.spec.code)return;const v=g+m.length,j=this.type.create({name:h});s.replaceRangeWith(g,v,j),s.setStoredMarks(n.doc.resolve(g).marks())})})}),!!s.steps.length)return s}})]}});const f_=[rE.configure({bulletList:!1,orderedList:!1,listItem:!1}),cW.configure({itemTypeName:"listItem"}),uW.configure({itemTypeName:"listItem"}),dW,x4,C4.configure({nested:!0}),OM,hW,u_,wW,j8,R8,aE.configure({types:["heading","paragraph"]}),NW.configure({emojis:FW,enableEmoticons:!0,forceFallbackImages:!1}),sj.configure({html:!0,tightLists:!0,bulletListMarker:"-",linkify:!1,transformPastedText:!1,transformCopiedText:!1})];function x2(t){try{const e=new Cm({extensions:f_,content:t,editable:!1}),n=e.getJSON();return e.destroy(),JSON.stringify(n)}catch(e){return console.error("Failed to convert Markdown to TipTap JSON:",e),JSON.stringify({type:"doc",content:[{type:"paragraph",content:[{type:"text",text:t}]}]})}}function C2(t){let e=null;try{const n=typeof t=="string"?JSON.parse(t):t;return e=new Cm({extensions:f_,content:n,editable:!1}),e.storage.markdown?.getMarkdown?.()??""}catch(n){return console.error("Failed to convert TipTap JSON to Markdown:",n),""}finally{e?.destroy()}}function lp(t){if(!t||typeof t!="string")return!1;const e=t.trim();if(!e.startsWith("{"))return!1;try{const n=JSON.parse(e);return n&&typeof n=="object"&&"type"in n}catch{return!1}}function RW({articleId:t,fromFolder:e}){const{t:n}=oi(),o=F2(),s=v_(),[r,a]=b.useState(""),[i,l]=b.useState(""),[c,u]=b.useState(""),[d,p]=b.useState(null),[m,h]=b.useState("idle"),[g,v]=b.useState(0),{data:j,isLoading:k,error:y,refetch:w}=Hu({queryKey:["article",t],queryFn:()=>Ro.getArticle(t),refetchInterval:S=>S.state.data?.status==="processing"?5e3:!1}),{data:C}=Hu({queryKey:["repurposed-content",t],queryFn:()=>Jq.getArticleRepurposedContent(t),staleTime:1e3*60*5}),{data:x=[]}=Hu({queryKey:["folders"],queryFn:()=>Og.getFolders()});b.useEffect(()=>{if(j){const S=d?d.title??j.title:j.title,I=d?d.content??j.content:j.content,A=d?d.contentFormat??j.contentFormat:j.contentFormat,T=(V,K)=>{const Z=V||"";return Z?K==="tiptap-json"||lp(Z)?Z:x2(Z):""},O=(V,K)=>{const Z=V||"";return Z?K==="tiptap-json"||lp(Z)?C2(Z):Z:""},N=T(I,A),$=O(I,A);a(S||""),l($),u(N),ws("Article Page Viewed",{article_id:t,article_title:j.title,article_status:j.status,has_content:!!j.content,content_length:j.content?.length||0,from_folder:e||null})}},[j,d,t,e]);const{mutate:_}=qu({mutationFn:()=>Ro.updateArticle(t,{title:r,content:i,contentFormat:"markdown"}),onMutate:()=>{h("saving")},onSuccess:()=>{ws("Article Saved",{article_id:t,title_length:r.length,content_length:i.length,has_title_change:j?.title!==r}),s.invalidateQueries({queryKey:["article",t]}),s.invalidateQueries({queryKey:["articles"]}),p(null),h("saved")},onError:()=>{h("failed")}}),{mutate:F,isPending:D}=qu({mutationFn:()=>Ro.deleteArticle(t),onSuccess:()=>{s.invalidateQueries({queryKey:["articles"]}),o({to:"/workspace/content"})}}),M=qu({mutationFn:async S=>{const I=e==="null"?null:e||null;await Og.moveItemsToFolder(I,S,{articleIds:[t]})},onSuccess:(S,I)=>{ws("Article Moved",{article_id:t,from_folder:e||null,to_folder:I}),s.invalidateQueries({queryKey:["article",t],refetchType:"all"}),s.invalidateQueries({queryKey:["articles"],refetchType:"all"}),s.invalidateQueries({queryKey:["content"],refetchType:"all"}),s.invalidateQueries({queryKey:["folder-contents"],refetchType:"all"}),s.invalidateQueries({queryKey:["folder-content"],refetchType:"all"}),s.invalidateQueries({queryKey:["folders"],refetchType:"all"});let A=n("content.folder.uncategorized");if(I){const T=x.find(O=>O.folderId===I);T&&(A=T.name)}
299da.success(n("content.moveSuccess",{folderName:A}))},onError:()=>{da.error(n("content.moveError"))}}),R=()=>{if(!j)return null;const S=d||j,I=S.content||"",A=S.contentFormat;let T="";return A==="tiptap-json"||lp(I)?T=C2(I):T=I,{title:S.title||"",content:T}};b.useEffect(()=>{if(!j)return;const S=setTimeout(()=>{const I=R();if(!I)return;(r!==I.title||i!==I.content)&&(d&&p(null),_())},2e3);return()=>clearTimeout(S)},[r,i,j,d,_]),b.useEffect(()=>{const S=I=>{if((I.metaKey||I.ctrlKey)&&I.key==="s"){I.preventDefault();const A=R();if(!A)return;r!==A.title||i!==A.content?(d&&p(null),_()):(h("saved"),setTimeout(()=>h("idle"),2e3))}};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[_,d,r,i,j]);const P=(S,I)=>{a(S),l(I),u(x2(I)),v(A=>A+1),s.invalidateQueries({queryKey:["article",t]}),da.success(n("chat.regenerationCompleteToast"),{description:n("chat.regenerationCompleteDescription"),duration:3e3})},E=()=>{const I=`${r.replace(/[^\w\s가-힣ㄱ-ㅎㅏ-ㅣ]/g,"").replace(/\s+/g,"_").trim()||"article"}.md`,A=`# ${r}
300
301${i}`,T=new Blob([A],{type:"text/markdown;charset=utf-8"}),O=URL.createObjectURL(T),N=document.createElement("a");N.href=O,N.download=I,document.body.appendChild(N),N.click(),document.body.removeChild(N),URL.revokeObjectURL(O),ws("Article Downloaded",{article_id:t,article_title:r,format:"markdown",content_length:i.length,from_archive:!!d,archive_version:d?.versionNumber})};return{article:j,isLoading:k,error:y,refetch:w,folders:x,repurposedContents:C?.contents||[],editedTitle:r,setEditedTitle:a,editedContent:i,setEditedContent:l,editedContentJson:c,setEditedContentJson:u,activeArchive:d,setActiveArchive:p,saveStatus:m,regenerationCounter:g,updateArticle:_,deleteArticle:F,isDeleting:D,handleMoveArticle:M.mutateAsync,handleRegenerationComplete:P,handleDownloadMarkdown:E}}function OW({article:t,saveStatus:e,folders:n,hasArchives:o,hasRepurposedContent:s,showRepurposePanel:r,onToggleRepurposePanel:a,onOpenVersionsDialog:i,onClose:l,onMoveArticle:c,onDownload:u,enableMultiplatform:d=!1}){const{t:p}=oi();return f.jsxs("div",{className:"w-full px-4 pt-4 pb-2 flex items-center justify-between sticky top-0 bg-background z-10 border-b border-transparent",children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[o&&f.jsxs(Le,{variant:"outline",size:"sm",onClick:i,className:"h-8 text-xs",children:[f.jsx(Cx,{className:"mr-1.5 size-3.5"}),"Versions"]}),d&&s&&f.jsxs(Le,{variant:r?"default":"outline",size:"sm",onClick:a,className:"h-8 text-xs",children:[f.jsx(Ux,{className:"mr-1.5 size-3.5"}),r?"Hide":"Show"," Multi-Platform"]})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[e==="saving"&&f.jsxs(f.Fragment,{children:[f.jsx(Hf,{className:"size-3.5 animate-spin"}),f.jsx("span",{children:p("article.editor.saving")})]}),e==="saved"&&f.jsx("span",{className:"text-green-600",children:p("article.editor.saved")}),e==="failed"&&f.jsx("span",{className:"text-red-600",children:p("article.editor.saveFailed")})]}),f.jsxs(Le,{variant:"ghost",size:"sm",onClick:l,className:"h-8 text-xs",children:[f.jsx(Gf,{className:"mr-1.5 size-3.5"}),p("article.editor.close")]}),f.jsxs($2,{children:[f.jsx(H2,{asChild:!0,children:f.jsx(Le,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:f.jsx(gx,{className:"size-4"})})}),f.jsxs(V2,{align:"end",className:"w-48",children:[f.jsxs(tx,{children:[f.jsxs(nx,{children:[f.jsx(bx,{className:"size-4 mr-2"}),p("content.moveToFolder")]}),f.jsxs(ox,{className:"max-h-[300px] overflow-y-auto",children:[f.jsxs(pa,{onClick:()=>c(null),disabled:t?.folderId===null,className:"flex items-center gap-2",children:[(()=>{const m=Bg();return f.jsx(m,{className:"size-4",style:{color:"hsl(var(--muted-foreground))"}})})(),f.jsx("span",{children:p("content.folder.uncategorized")})]}),n.length>0&&f.jsxs(f.Fragment,{children:[f.jsx(up,{}),n.map(m=>{const h=Bg(m.icon),g=t?.folderId===m.folderId;return f.jsxs(pa,{onClick:()=>c(m.folderId),disabled:g,className:"flex items-center gap-2",children:[f.jsx(h,{className:"size-4",style:{color:m.color||void 0}}),f.jsx("span",{children:m.name})]},m.folderId)})]})]})]}),f.jsx(up,{}),f.jsxs(pa,{onClick:u,children:[f.jsx(kx,{className:"mr-2 size-4"}),p("article.editor.downloadMarkdown")]})]})]})]})]})}function BW({open:t,onOpenChange:e,article:n,activeArchive:o,onSelectArchive:s,onClearArchive:r}){const{t:a}=oi(),i=[...n.archives||[]].sort((l,c)=>c.versionNumber-l.versionNumber);return f.jsx(I2,{open:t,onOpenChange:e,children:f.jsxs(S2,{className:"sm:max-w-[600px] max-h-[80vh] flex flex-col",children:[f.jsxs(C_,{children:[f.jsx(D_,{children:a("article.versions.title")}),f.jsx(F_,{children:a("article.versions.description")})]}),f.jsx("div",{className:"flex-1 overflow-hidden min-h-0 mt-4",children:f.jsx($u,{className:"h-[400px] pr-4",children:f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:`p-4 rounded-lg border transition-colors cursor-pointer ${o?"hover:bg-muted/50 border-border":"bg-primary/5 border-primary"}`,onClick:()=>{r(),e(!1)},children:f.jsxs("div",{className:"flex items-start justify-between",children:[f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-semibold",children:"Current Version"}),!o&&f.jsx(Da,{variant:"default",className:"text-xs",children:"Active"})]}),f.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:n.title||a("article.versions.noTitle")}),f.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[f.jsx(xl,{className:"size-3"}),f.jsx("span",{children:cp(n.updatedAt)})]})]}),!o&&f.jsx(dp,{className:"size-4 text-primary"})]})}
301),i.map(l=>{const c=o?.archiveId===l.archiveId;return f.jsx("div",{className:`p-4 rounded-lg border transition-colors cursor-pointer ${c?"bg-primary/5 border-primary":"hover:bg-muted/50 border-border"}`,onClick:()=>{s(l),e(!1)},children:f.jsxs("div",{className:"flex items-start justify-between",children:[f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs("span",{className:"font-medium",children:["Version ",l.versionNumber]}),c&&f.jsx(Da,{variant:"secondary",className:"text-xs",children:"Viewing"})]}),f.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:l.title||a("article.versions.noTitle")}),f.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[f.jsx(xl,{className:"size-3"}),f.jsx("span",{children:cp(l.createdAt)})]})]}),c?f.jsx(dp,{className:"size-4 text-primary"}):f.jsx(Le,{variant:"ghost",size:"icon",className:"h-8 w-8",children:f.jsx(Zx,{className:"size-4"})})]})},l.archiveId)})]})})})]})})}function xK(){const{t}=oi(),{articleId:e}=Ng.useParams(),{fromFolder:n}=Ng.useSearch(),o=F2(),{article:s,isLoading:r,error:a,refetch:i,folders:l,repurposedContents:c,editedTitle:u,setEditedTitle:d,editedContentJson:p,setEditedContentJson:m,setEditedContent:h,activeArchive:g,setActiveArchive:v,saveStatus:j,regenerationCounter:k,handleMoveArticle:y,handleRegenerationComplete:w,handleDownloadMarkdown:C}=RW({articleId:e,fromFolder:n}),[x,_]=b.useState(!1),[F,D]=b.useState(!0),[M,R]=b.useState(!1),P=!1,E=`tyquill_chat_floating_${e}`,[S,I]=b.useState(()=>{try{const G=localStorage.getItem(E);return G?JSON.parse(G):!1}catch(G){return console.error("Failed to load chat floating state:",G),!1}}),A=b.useRef(null),{showRepurposePanel:T,selectedRepurposeId:O,viewMode:N,toggleRepurposePanel:$,selectRepurposedContent:V,clearSelection:K}=Wq(),Z=c.find(G=>G.id===O)??null,se=c.length>0;b.useEffect(()=>{try{localStorage.setItem(E,JSON.stringify(S))}catch(G){console.error("Failed to save chat floating state:",G)}},[S,E]),b.useEffect(()=>{const G=te=>(te.preventDefault(),te.returnValue="","");return window.addEventListener("beforeunload",G),()=>window.removeEventListener("beforeunload",G)},[]),b.useEffect(()=>{A.current&&(A.current.style.height="auto",A.current.style.height=A.current.scrollHeight+"px")},[u]);const ee=b.useMemo(()=>p,[p]),be=()=>!s?.status||s.status==="completed"?null:f.jsxs(Da,{variant:s.status==="processing"?"secondary":s.status==="failed"?"destructive":"default",children:[s.status==="processing"&&f.jsxs(f.Fragment,{children:[f.jsx(xl,{className:"mr-1 size-4 animate-spin"}),"생성 중"]}),s.status==="failed"&&f.jsxs(f.Fragment,{children:[f.jsx(pp,{className:"mr-1 size-4"}),"생성 실패"]})]});if(r)return f.jsx("div",{className:"flex items-center justify-center py-12",children:f.jsxs("div",{className:"flex flex-col items-center gap-2",children:[f.jsx(Hf,{className:"size-8 animate-spin text-muted-foreground"}),f.jsx("div",{className:"text-sm text-muted-foreground",children:"로딩 중..."})]})});if(a)return f.jsx("div",{className:"px-4 py-8",children:f.jsxs("div",{className:"flex items-center justify-between gap-4 rounded-md border border-red-200 bg-red-50 p-4 text-red-700",children:[f.jsx("div",{children:String(a)}),f.jsx(Le,{variant:"outline",onClick:()=>i(),children:"다시 시도"})]})});if(!s)return f.jsx("div",{className:"px-4 py-8",children:f.jsxs("div",{className:"text-center py-12",children:[f.jsx("p",{className:"text-muted-foreground",children:"아티클을 찾을 수 없습니다."}),f.jsx(Le,{variant:"outline",onClick:()=>o({to:"/workspace/content"}),className:"mt-4",children:"목록으로 돌아가기"})]})});const Oe=s?.archives&&s.archives.length>0?Math.max(...s.archives.map(G=>G.versionNumber)):null,L=!!(g&&Oe&&g.versionNumber!==Oe);return f.jsxs(f.Fragment,{children:[f.jsxs(E_,{direction:"horizontal",className:"h-[calc(100svh-48px)] bg-muted/30 p-4 gap-4",children:[null,f.jsx(Rg,{id:"editor-panel",defaultSize:F&&!S?70:100,minSize:40,children:f.jsxs("div",{className:"h-full flex flex-col overflow-hidden bg-background rounded-2xl shadow-sm border border-border/50",children:[N==="repurpose-view"&&Z&&f.jsx(Xq,{content:Z,onClose:K}
301),L&&f.jsxs(qf,{variant:"warning",className:"shrink-0 mx-4 mt-4 rounded-xl",children:[f.jsx(D2,{className:"size-4"}),f.jsxs("div",{children:[f.jsx(Wf,{children:t("article.versionEdit.title")}),f.jsx(Kf,{children:t("article.versionEdit.message",{version:g.versionNumber})})]})]}),s?.status&&s.status!=="completed"&&f.jsx("div",{className:"shrink-0 px-4 pt-4",children:be()}),N==="edit"?f.jsxs("div",{className:"flex-1 flex flex-col min-h-0 overflow-y-auto relative",children:[f.jsx(OW,{article:s,saveStatus:j,folders:l,hasArchives:!!s.archives&&s.archives.length>0,hasRepurposedContent:se,showRepurposePanel:T,onToggleRepurposePanel:$,onOpenVersionsDialog:()=>R(!0),onClose:()=>{o(n?{to:"/workspace/folder/$folderId",params:{folderId:n}}:{to:"/workspace/content"})},onMoveArticle:y,onDownload:C,enableMultiplatform:P}),f.jsx("div",{className:"flex-1 flex flex-col min-h-0 overflow-y-auto",children:f.jsx(kq,{placeholder:t("article.editor.contentPlaceholder"),initialContent:ee,onUpdate:({markdown:G,json:te})=>{h(G),m(JSON.stringify(te))},titleElement:f.jsx("div",{className:"max-w-[768px] w-full mx-auto px-6 pt-8 pb-4 md:px-12",children:f.jsx("textarea",{ref:A,placeholder:t("article.editor.titlePlaceholder"),value:u,onChange:G=>{d(G.target.value),G.target.style.height="auto",G.target.style.height=G.target.scrollHeight+"px"},onInput:G=>{const te=G.target;te.style.height="auto",te.style.height=te.scrollHeight+"px"},rows:1,className:"w-full text-5xl font-bold border-none outline-none bg-transparent placeholder:text-muted-foreground/30 resize-none overflow-hidden leading-tight"})}),enableSlashMenu:!0,enableDragMenu:!0},g?`archive-${g.archiveId}`:`article-${s.articleId}-regen-${k}`)})]}):f.jsx(lW,{content:Z})]})}),F&&!S&&f.jsxs(f.Fragment,{children:[f.jsx(I_,{withHandle:!0,className:"bg-transparent"}),f.jsx(Rg,{id:"chat-panel",defaultSize:30,minSize:20,maxSize:50,children:f.jsx(y2,{children:f.jsx(k2,{article:s,onClose:()=>D(!1),onMinimize:()=>{I(!0),D(!0)},onRegenerationComplete:w})})})]})]},`no-repurpose-${F&&!S?"with-chat":"no-chat"}`),S&&F&&f.jsx("div",{className:"fixed bottom-8 right-8 w-96 h-[600px] z-50 shadow-2xl rounded-2xl overflow-hidden border-2 border-border bg-background",children:f.jsx(y2,{children:f.jsx(k2,{article:s,onClose:()=>D(!1),onMaximize:()=>{I(!1),D(!0)},isFloating:!0,onRegenerationComplete:w})})}),!F&&f.jsx("button",{onClick:()=>D(!0),className:"fixed bottom-8 right-8 size-14 rounded-full shadow-2xl hover:shadow-gray-400/50 transition-all duration-300 hover:scale-110 active:scale-95 z-50 bg-white flex items-center justify-center border-2 border-border",style:{boxShadow:"0 0 30px rgba(200, 200, 200, 0.5)"},children:f.jsx(dx,{className:"size-7 text-black"})}),f.jsx(I2,{open:x,onOpenChange:_,children:f.jsx(S2,{})}),s&&f.jsx(BW,{open:M,onOpenChange:R,article:s,activeArchive:g,onSelectArchive:v,onClearArchive:()=>v(null)})]})}export{xK as component};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.