@pksep/yui 0.1.248 → 0.1.249

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -739,8 +739,8 @@ const h6 = {
739
739
  style: "line",
740
740
  path: `
741
741
  <g id="info">
742
- <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
743
- <path d="M12 16V12" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
742
+ <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
743
+ <path d="M12 16V12" stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
744
744
  <path d="M12 8H12.01" stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
745
745
  </g>
746
746
  `
@@ -113281,7 +113281,7 @@ const eoI = /* @__PURE__ */ rg({
113281
113281
  const tg = U.lastIndexOf(".");
113282
113282
  if (tg === -1) return U;
113283
113283
  const lg = U.slice(0, tg), Rg = U.slice(tg);
113284
- return lg.length <= 25 ? U : `${lg.slice(0, 22)} ... ${Rg}`;
113284
+ return lg.length <= 30 ? U : `${lg.slice(0, 27)} ... ${Rg}`;
113285
113285
  };
113286
113286
  ig(
113287
113287
  () => Z.value,
@@ -360,8 +360,8 @@
360
360
  <path d="M11 1L14.09 7.26L21 8.27L16 13.14L17.18 20.02L11 16.77L4.82 20.02L6 13.14L1 8.27L7.91 7.26L11 1Z" stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
361
361
  `},Rx={name:"info",style:"line",path:`
362
362
  <g id="info">
363
- <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
364
- <path d="M12 16V12" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
363
+ <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
364
+ <path d="M12 16V12" stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
365
365
  <path d="M12 8H12.01" stroke="currentColor" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
366
366
  </g>
367
367
  `},Xx={name:"files",style:"line",path:`
@@ -1567,4 +1567,4 @@ img.ProseMirror-separator {
1567
1567
  2. Cannot start or end with "-"
1568
1568
  3. "-" cannot repeat`);ye.customSchemes.push([e,g])}function O_g(){ye.scanner=F_g(ye.customSchemes);for(let e=0;e<ye.tokenQueue.length;e++)ye.tokenQueue[e][1]({scanner:ye.scanner});ye.parser=L_g(ye.scanner.tokens);for(let e=0;e<ye.pluginQueue.length;e++)ye.pluginQueue[e][1]({scanner:ye.scanner,parser:ye.parser});return ye.initialized=!0,ye}function QM(e){return ye.initialized||O_g(),T_g(ye.parser.start,e,Hz(ye.scanner.start,e))}QM.scan=Hz;function Jz(e,g=null,I=null){if(g&&typeof g=="object"){if(I)throw Error(`linkifyjs: Invalid link type ${g}; must be a string`);I=g,g=null}const C=new xM(I),t=QM(e),i=[];for(let A=0;A<t.length;A++){const n=t[A];n.isLink&&(!g||n.t===g)&&C.check(n)&&i.push(n.toFormattedObject(C))}return i}var UM="[\0-   ᠎ -\u2029  ]",Q_g=new RegExp(UM),U_g=new RegExp(`${UM}$`),E_g=new RegExp(UM,"g");function P_g(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function __g(e){return new je({key:new XC("autolink"),appendTransaction:(g,I,C)=>{const t=g.some(o=>o.docChanged)&&!I.doc.eq(C.doc),i=g.some(o=>o.getMeta("preventAutolink"));if(!t||i)return;const{tr:A}=C,n=NF(I.doc,[...g]);if(zF(n).forEach(({newRange:o})=>{const a=c6g(C.doc,o,u=>u.isTextblock);let d,m;if(a.length>1)d=a[0],m=C.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(a.length){const u=C.doc.textBetween(o.from,o.to," "," ");if(!U_g.test(u))return;d=a[0],m=C.doc.textBetween(d.pos,o.to,void 0," ")}if(d&&m){const u=m.split(Q_g).filter(Boolean);if(u.length<=0)return!1;const h=u[u.length-1],Z=d.pos+m.lastIndexOf(h);if(!h)return!1;const G=QM(h).map(w=>w.toObject(e.defaultProtocol));if(!P_g(G))return!1;G.filter(w=>w.isLink).map(w=>({...w,from:Z+w.start+1,to:Z+w.end+1})).filter(w=>C.schema.marks.code?!C.doc.rangeHasMark(w.from,w.to,C.schema.marks.code):!0).filter(w=>e.validate(w.value)).filter(w=>e.shouldAutoLink(w.value)).forEach(w=>{dM(w.from,w.to,C.doc).some(W=>W.mark.type===e.type)||A.addMark(w.from,w.to,e.type.create({href:w.href}))})}}),!!A.steps.length)return A}})}function $_g(e){return new je({key:new XC("handleClickLink"),props:{handleClick:(g,I,C)=>{var t,i;if(C.button!==0||!g.editable)return!1;let A=null;if(C.target instanceof HTMLAnchorElement)A=C.target;else{let a=C.target;const d=[];for(;a.nodeName!=="DIV";)d.push(a),a=a.parentNode;A=d.find(m=>m.nodeName==="A")}if(!A)return!1;const n=FF(g.state,e.type.name),l=(t=A==null?void 0:A.href)!=null?t:n.href,o=(i=A==null?void 0:A.target)!=null?i:n.target;return e.enableClickSelection&&e.editor.commands.extendMarkRange(e.type.name),A&&l?(window.open(l,o),!0):!1}}})}function q_g(e){return new je({key:new XC("handlePasteLink"),props:{handlePaste:(g,I,C)=>{const{state:t}=g,{selection:i}=t,{empty:A}=i;if(A)return!1;let n="";C.content.forEach(o=>{n+=o.textContent});const l=Jz(n,{defaultProtocol:e.defaultProtocol}).find(o=>o.isLink&&o.value===n);return!n||!l?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}function kd(e,g){const I=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return g&&g.forEach(C=>{const t=typeof C=="string"?C:C.scheme;t&&I.push(t)}),!e||e.replace(E_g,"").match(new RegExp(`^(?:(?:${I.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var Lz=Rd.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(e=>{if(typeof e=="string"){zz(e);return}zz(e.scheme,e.optionalSlashes)})},onDestroy(){x_g()},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:(e,g)=>!!kd(e,g.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.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:e=>{const g=e.getAttribute("href");return!g||!this.options.isAllowedUri(g,{defaultValidate:I=>!!kd(I,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:g=>!!kd(g,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",IC(this.options.HTMLAttributes,e),0]:["a",IC(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:g})=>{const{href:I}=e;return this.options.isAllowedUri(I,{defaultValidate:C=>!!kd(C,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?g().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:g})=>{const{href:I}=e||{};return I&&!this.options.isAllowedUri(I,{defaultValidate:C=>!!kd(C,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:g().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Xd({find:e=>{const g=[];if(e){const{protocols:I,defaultProtocol:C}=this.options,t=Jz(e).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:A=>!!kd(A,I),protocols:I,defaultProtocol:C}));t.length&&t.forEach(i=>g.push({text:i.value,data:{href:i.href},index:i.start}))}return g},type:this.type,getAttributes:e=>{var g;return{href:(g=e.data)==null?void 0:g.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:g,defaultProtocol:I}=this.options;return this.options.autolink&&e.push(__g({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:C=>this.options.isAllowedUri(C,{defaultValidate:t=>!!kd(t,g),protocols:g,defaultProtocol:I}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&e.push($_g({type:this.type,editor:this.editor,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(q_g({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),g$g=Lz,I$g=Object.defineProperty,e$g=(e,g)=>{for(var I in g)I$g(e,I,{get:g[I],enumerable:!0})},C$g="listItem",Tz="textStyle",vz=/^\s*([-+*])\s$/,jz=Ai.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:e}){return["ul",IC(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:g})=>this.options.keepAttributes?g().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(C$g,this.editor.getAttributes(Tz)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=hm({find:vz,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=hm({find:vz,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Tz),editor:this.editor})),[e]}}),xz=Ai.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",IC(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),t$g={};e$g(t$g,{findListItemPos:()=>Wb,getNextListDepth:()=>EM,handleBackspace:()=>PM,handleDelete:()=>_M,hasListBefore:()=>Oz,hasListItemAfter:()=>i$g,hasListItemBefore:()=>Qz,listItemHasSubList:()=>Uz,nextListIsDeeper:()=>Ez,nextListIsHigher:()=>Pz});var Wb=(e,g)=>{const{$from:I}=g.selection,C=aC(e,g.schema);let t=null,i=I.depth,A=I.pos,n=null;for(;i>0&&n===null;)t=I.node(i),t.type===C?n=i:(i-=1,A-=1);return n===null?null:{$pos:g.doc.resolve(A),depth:n}},EM=(e,g)=>{const I=Wb(e,g);if(!I)return!1;const[,C]=p6g(g,e,I.$pos.pos+4);return C},Oz=(e,g,I)=>{const{$anchor:C}=e.selection,t=Math.max(0,C.pos-2),i=e.doc.resolve(t).node();return!(!i||!I.includes(i.type.name))},Qz=(e,g)=>{var I;const{$anchor:C}=g.selection,t=g.doc.resolve(C.pos-2);return!(t.index()===0||((I=t.nodeBefore)==null?void 0:I.type.name)!==e)},Uz=(e,g,I)=>{if(!I)return!1;const C=aC(e,g.schema);let t=!1;return I.descendants(i=>{i.type===C&&(t=!0)}),t},PM=(e,g,I)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!Yo(e.state,g)&&Oz(e.state,g,I)){const{$anchor:n}=e.state.selection,l=e.state.doc.resolve(n.before()-1),o=[];l.node().descendants((m,u)=>{m.type.name===g&&o.push({node:m,pos:u})});const a=o.at(-1);if(!a)return!1;const d=e.state.doc.resolve(l.start()+a.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},d.end()).joinForward().run()}if(!Yo(e.state,g)||!V6g(e.state))return!1;const C=Wb(g,e.state);if(!C)return!1;const i=e.state.doc.resolve(C.$pos.pos-2).node(C.depth),A=Uz(g,e.state,i);return Qz(g,e.state)&&!A?e.commands.joinItemBackward():e.chain().liftListItem(g).run()},Ez=(e,g)=>{const I=EM(e,g),C=Wb(e,g);return!C||!I?!1:I>C.depth},Pz=(e,g)=>{const I=EM(e,g),C=Wb(e,g);return!C||!I?!1:I<C.depth},_M=(e,g)=>{if(!Yo(e.state,g)||!Y6g(e.state,g))return!1;const{selection:I}=e.state,{$from:C,$to:t}=I;return!I.empty&&C.sameParent(t)?!1:Ez(g,e.state)?e.chain().focus(e.state.selection.from+4).lift(g).joinBackward().run():Pz(g,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},i$g=(e,g)=>{var I;const{$anchor:C}=g.selection,t=g.doc.resolve(C.pos-C.parentOffset-2);return!(t.index()===t.parent.childCount-1||((I=t.nodeAfter)==null?void 0:I.type.name)!==e)},_z=dC.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I})=>{e.state.schema.nodes[I]!==void 0&&_M(e,I)&&(g=!0)}),g},"Mod-Delete":({editor:e})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I})=>{e.state.schema.nodes[I]!==void 0&&_M(e,I)&&(g=!0)}),g},Backspace:({editor:e})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I,wrapperNames:C})=>{e.state.schema.nodes[I]!==void 0&&PM(e,I,C)&&(g=!0)}),g},"Mod-Backspace":({editor:e})=>{let g=!1;return this.options.listTypes.forEach(({itemName:I,wrapperNames:C})=>{e.state.schema.nodes[I]!==void 0&&PM(e,I,C)&&(g=!0)}),g}}}}),A$g="listItem",$z="textStyle",qz=/^(\d+)\.\s$/,gJ=Ai.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:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:g,...I}=e;return g===1?["ol",IC(this.options.HTMLAttributes,I),0]:["ol",IC(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:g})=>this.options.keepAttributes?g().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(A$g,this.editor.getAttributes($z)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=hm({find:qz,type:this.type,getAttributes:g=>({start:+g[1]}),joinPredicate:(g,I)=>I.childCount+I.attrs.start===+g[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=hm({find:qz,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:g=>({start:+g[1],...this.editor.getAttributes($z)}),joinPredicate:(g,I)=>I.childCount+I.attrs.start===+g[1],editor:this.editor})),[e]}}),n$g=/^\s*(\[([( |x])?\])\s$/,l$g=Ai.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:e=>{const g=e.getAttribute("data-checked");return g===""||g==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:g}){return["li",IC(this.options.HTMLAttributes,g,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:g,getPos:I,editor:C})=>{const t=document.createElement("li"),i=document.createElement("label"),A=document.createElement("span"),n=document.createElement("input"),l=document.createElement("div"),o=a=>{var d,m;n.ariaLabel=((m=(d=this.options.a11y)==null?void 0:d.checkboxLabel)==null?void 0:m.call(d,a,n.checked))||`Task item checkbox for ${a.textContent||"empty task item"}`};return o(e),i.contentEditable="false",n.type="checkbox",n.addEventListener("mousedown",a=>a.preventDefault()),n.addEventListener("change",a=>{if(!C.isEditable&&!this.options.onReadOnlyChecked){n.checked=!n.checked;return}const{checked:d}=a.target;C.isEditable&&typeof I=="function"&&C.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:m})=>{const u=I();if(typeof u!="number")return!1;const h=m.doc.nodeAt(u);return m.setNodeMarkup(u,void 0,{...h==null?void 0:h.attrs,checked:d}),!0}).run(),!C.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,d)||(n.checked=!n.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([a,d])=>{t.setAttribute(a,d)}),t.dataset.checked=e.attrs.checked,n.checked=e.attrs.checked,i.append(n,A),t.append(i,l),Object.entries(g).forEach(([a,d])=>{t.setAttribute(a,d)}),{dom:t,contentDOM:l,update:a=>a.type!==this.type?!1:(t.dataset.checked=a.attrs.checked,n.checked=a.attrs.checked,o(a),!0)}}},addInputRules(){return[hm({find:n$g,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}}),s$g=Ai.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:e}){return["ul",IC(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});dC.create({name:"listKit",addExtensions(){const e=[];return this.options.bulletList!==!1&&e.push(jz.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(xz.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(_z.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(gJ.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(l$g.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(s$g.configure(this.options.taskList)),e}});var o$g=Ai.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",IC(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),a$g=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,d$g=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,c$g=Rd.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",IC(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[um({find:a$g,type:this.type})]},addPasteRules(){return[Xd({find:d$g,type:this.type})]}}),r$g=Ai.create({name:"text",group:"inline"}),m$g=Rd.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",IC(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function u$g(e={}){return new je({view(g){return new h$g(g,e)}})}class h$g{constructor(g,I){var C;this.editorView=g,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(C=I.width)!==null&&C!==void 0?C:1,this.color=I.color===!1?void 0:I.color||"black",this.class=I.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let i=A=>{this[t](A)};return g.dom.addEventListener(t,i),{name:t,handler:i}})}destroy(){this.handlers.forEach(({name:g,handler:I})=>this.editorView.dom.removeEventListener(g,I))}update(g,I){this.cursorPos!=null&&I.doc!=g.state.doc&&(this.cursorPos>g.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(g){g!=this.cursorPos&&(this.cursorPos=g,g==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let g=this.editorView.state.doc.resolve(this.cursorPos),I=!g.parent.inlineContent,C,t=this.editorView.dom,i=t.getBoundingClientRect(),A=i.width/t.offsetWidth,n=i.height/t.offsetHeight;if(I){let d=g.nodeBefore,m=g.nodeAfter;if(d||m){let u=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(u){let h=u.getBoundingClientRect(),Z=d?h.bottom:h.top;d&&m&&(Z=(Z+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let G=this.width/2*n;C={left:h.left,right:h.right,top:Z-G,bottom:Z+G}}}}if(!C){let d=this.editorView.coordsAtPos(this.cursorPos),m=this.width/2*A;C={left:d.left-m,right:d.left+m,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",I),this.element.classList.toggle("prosemirror-dropcursor-inline",!I);let o,a;if(!l||l==document.body&&getComputedStyle(l).position=="static")o=-pageXOffset,a=-pageYOffset;else{let d=l.getBoundingClientRect(),m=d.width/l.offsetWidth,u=d.height/l.offsetHeight;o=d.left-l.scrollLeft*m,a=d.top-l.scrollTop*u}this.element.style.left=(C.left-o)/A+"px",this.element.style.top=(C.top-a)/n+"px",this.element.style.width=(C.right-C.left)/A+"px",this.element.style.height=(C.bottom-C.top)/n+"px"}scheduleRemoval(g){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),g)}dragover(g){if(!this.editorView.editable)return;let I=this.editorView.posAtCoords({left:g.clientX,top:g.clientY}),C=I&&I.inside>=0&&this.editorView.state.doc.nodeAt(I.inside),t=C&&C.type.spec.disableDropCursor,i=typeof t=="function"?t(this.editorView,I,g):t;if(I&&!i){let A=I.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let n=vk(this.editorView.state.doc,A,this.editorView.dragging.slice);n!=null&&(A=n)}this.setCursor(A),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(g){this.editorView.dom.contains(g.relatedTarget)||this.setCursor(null)}}class Oe extends mI{constructor(g){super(g,g)}map(g,I){let C=g.resolve(I.map(this.head));return Oe.valid(C)?new Oe(C):mI.near(C)}content(){return Fg.empty}eq(g){return g instanceof Oe&&g.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(g,I){if(typeof I.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Oe(g.resolve(I.pos))}getBookmark(){return new $M(this.anchor)}static valid(g){let I=g.parent;if(I.isTextblock||!b$g(g)||!Z$g(g))return!1;let C=I.type.spec.allowGapCursor;if(C!=null)return C;let t=I.contentMatchAt(g.index()).defaultType;return t&&t.isTextblock}static findGapCursorFrom(g,I,C=!1){g:for(;;){if(!C&&Oe.valid(g))return g;let t=g.pos,i=null;for(let A=g.depth;;A--){let n=g.node(A);if(I>0?g.indexAfter(A)<n.childCount:g.index(A)>0){i=n.child(I>0?g.indexAfter(A):g.index(A)-1);break}else if(A==0)return null;t+=I;let l=g.doc.resolve(t);if(Oe.valid(l))return l}for(;;){let A=I>0?i.firstChild:i.lastChild;if(!A){if(i.isAtom&&!i.isText&&!qg.isSelectable(i)){g=g.doc.resolve(t+i.nodeSize*I),C=!1;continue g}break}i=A,t+=I;let n=g.doc.resolve(t);if(Oe.valid(n))return n}return null}}}Oe.prototype.visible=!1,Oe.findFrom=Oe.findGapCursorFrom,mI.jsonID("gapcursor",Oe);class $M{constructor(g){this.pos=g}map(g){return new $M(g.map(this.pos))}resolve(g){let I=g.resolve(this.pos);return Oe.valid(I)?new Oe(I):mI.near(I)}}function b$g(e){for(let g=e.depth;g>=0;g--){let I=e.index(g),C=e.node(g);if(I==0){if(C.type.spec.isolating)return!0;continue}for(let t=C.child(I-1);;t=t.lastChild){if(t.childCount==0&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}}return!0}function Z$g(e){for(let g=e.depth;g>=0;g--){let I=e.indexAfter(g),C=e.node(g);if(I==C.childCount){if(C.type.spec.isolating)return!0;continue}for(let t=C.child(I);;t=t.firstChild){if(t.childCount==0&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}}return!0}function G$g(){return new je({props:{decorations:B$g,createSelectionBetween(e,g,I){return g.pos==I.pos&&Oe.valid(I)?new Oe(I):null},handleClick:W$g,handleKeyDown:w$g,handleDOMEvents:{beforeinput:p$g}}})}const w$g=ZF({ArrowLeft:kB("horiz",-1),ArrowRight:kB("horiz",1),ArrowUp:kB("vert",-1),ArrowDown:kB("vert",1)});function kB(e,g){const I=e=="vert"?g>0?"down":"up":g>0?"right":"left";return function(C,t,i){let A=C.selection,n=g>0?A.$to:A.$from,l=A.empty;if(A instanceof uI){if(!i.endOfTextblock(I)||n.depth==0)return!1;l=!1,n=C.doc.resolve(g>0?n.after():n.before())}let o=Oe.findGapCursorFrom(n,g,l);return o?(t&&t(C.tr.setSelection(new Oe(o))),!0):!1}}function W$g(e,g,I){if(!e||!e.editable)return!1;let C=e.state.doc.resolve(g);if(!Oe.valid(C))return!1;let t=e.posAtCoords({left:I.clientX,top:I.clientY});return t&&t.inside>-1&&qg.isSelectable(e.state.doc.nodeAt(t.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Oe(C))),!0)}function p$g(e,g){if(g.inputType!="insertCompositionText"||!(e.state.selection instanceof Oe))return!1;let{$from:I}=e.state.selection,C=I.parent.contentMatchAt(I.index()).findWrapping(e.state.schema.nodes.text);if(!C)return!1;let t=pg.empty;for(let A=C.length-1;A>=0;A--)t=pg.from(C[A].createAndFill(null,t));let i=e.state.tr.replace(I.pos,I.pos,new Fg(t,0,0));return i.setSelection(uI.near(i.doc.resolve(I.pos+1))),e.dispatch(i),!1}function B$g(e){if(!(e.selection instanceof Oe))return null;let g=document.createElement("div");return g.className="ProseMirror-gapcursor",ke.create(e.doc,[Ft.widget(e.selection.head,g,{key:"gapcursor"})])}var FB=200,DC=function(){};DC.prototype.append=function(g){return g.length?(g=DC.from(g),!this.length&&g||g.length<FB&&this.leafAppend(g)||this.length<FB&&g.leafPrepend(this)||this.appendInner(g)):this},DC.prototype.prepend=function(g){return g.length?DC.from(g).append(this):this},DC.prototype.appendInner=function(g){return new y$g(this,g)},DC.prototype.slice=function(g,I){return g===void 0&&(g=0),I===void 0&&(I=this.length),g>=I?DC.empty:this.sliceInner(Math.max(0,g),Math.min(this.length,I))},DC.prototype.get=function(g){if(!(g<0||g>=this.length))return this.getInner(g)},DC.prototype.forEach=function(g,I,C){I===void 0&&(I=0),C===void 0&&(C=this.length),I<=C?this.forEachInner(g,I,C,0):this.forEachInvertedInner(g,I,C,0)},DC.prototype.map=function(g,I,C){I===void 0&&(I=0),C===void 0&&(C=this.length);var t=[];return this.forEach(function(i,A){return t.push(g(i,A))},I,C),t},DC.from=function(g){return g instanceof DC?g:g&&g.length?new IJ(g):DC.empty};var IJ=function(e){function g(C){e.call(this),this.values=C}e&&(g.__proto__=e),g.prototype=Object.create(e&&e.prototype),g.prototype.constructor=g;var I={length:{configurable:!0},depth:{configurable:!0}};return g.prototype.flatten=function(){return this.values},g.prototype.sliceInner=function(t,i){return t==0&&i==this.length?this:new g(this.values.slice(t,i))},g.prototype.getInner=function(t){return this.values[t]},g.prototype.forEachInner=function(t,i,A,n){for(var l=i;l<A;l++)if(t(this.values[l],n+l)===!1)return!1},g.prototype.forEachInvertedInner=function(t,i,A,n){for(var l=i-1;l>=A;l--)if(t(this.values[l],n+l)===!1)return!1},g.prototype.leafAppend=function(t){if(this.length+t.length<=FB)return new g(this.values.concat(t.flatten()))},g.prototype.leafPrepend=function(t){if(this.length+t.length<=FB)return new g(t.flatten().concat(this.values))},I.length.get=function(){return this.values.length},I.depth.get=function(){return 0},Object.defineProperties(g.prototype,I),g}(DC);DC.empty=new IJ([]);var y$g=function(e){function g(I,C){e.call(this),this.left=I,this.right=C,this.length=I.length+C.length,this.depth=Math.max(I.depth,C.depth)+1}return e&&(g.__proto__=e),g.prototype=Object.create(e&&e.prototype),g.prototype.constructor=g,g.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},g.prototype.getInner=function(C){return C<this.left.length?this.left.get(C):this.right.get(C-this.left.length)},g.prototype.forEachInner=function(C,t,i,A){var n=this.left.length;if(t<n&&this.left.forEachInner(C,t,Math.min(i,n),A)===!1||i>n&&this.right.forEachInner(C,Math.max(t-n,0),Math.min(this.length,i)-n,A+n)===!1)return!1},g.prototype.forEachInvertedInner=function(C,t,i,A){var n=this.left.length;if(t>n&&this.right.forEachInvertedInner(C,t-n,Math.max(i,n)-n,A+n)===!1||i<n&&this.left.forEachInvertedInner(C,Math.min(t,n),i,A)===!1)return!1},g.prototype.sliceInner=function(C,t){if(C==0&&t==this.length)return this;var i=this.left.length;return t<=i?this.left.slice(C,t):C>=i?this.right.slice(C-i,t-i):this.left.slice(C,i).append(this.right.slice(0,t-i))},g.prototype.leafAppend=function(C){var t=this.right.leafAppend(C);if(t)return new g(this.left,t)},g.prototype.leafPrepend=function(C){var t=this.left.leafPrepend(C);if(t)return new g(t,this.right)},g.prototype.appendInner=function(C){return this.left.depth>=Math.max(this.right.depth,C.depth)+1?new g(this.left,new g(this.right,C)):new g(this,C)},g}(DC);const Y$g=500;class en{constructor(g,I){this.items=g,this.eventCount=I}popEvent(g,I){if(this.eventCount==0)return null;let C=this.items.length;for(;;C--)if(this.items.get(C-1).selection){--C;break}let t,i;I&&(t=this.remapping(C,this.items.length),i=t.maps.length);let A=g.tr,n,l,o=[],a=[];return this.items.forEach((d,m)=>{if(!d.step){t||(t=this.remapping(C,m+1),i=t.maps.length),i--,a.push(d);return}if(t){a.push(new En(d.map));let u=d.step.map(t.slice(i)),h;u&&A.maybeStep(u).doc&&(h=A.mapping.maps[A.mapping.maps.length-1],o.push(new En(h,void 0,void 0,o.length+a.length))),i--,h&&t.appendMap(h,i)}else A.maybeStep(d.step);if(d.selection)return n=t?d.selection.map(t.slice(i)):d.selection,l=new en(this.items.slice(0,C).append(a.reverse().concat(o)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:A,selection:n}}addTransform(g,I,C,t){let i=[],A=this.eventCount,n=this.items,l=!t&&n.length?n.get(n.length-1):null;for(let a=0;a<g.steps.length;a++){let d=g.steps[a].invert(g.docs[a]),m=new En(g.mapping.maps[a],d,I),u;(u=l&&l.merge(m))&&(m=u,a?i.pop():n=n.slice(0,n.length-1)),i.push(m),I&&(A++,I=void 0),t||(l=m)}let o=A-C.depth;return o>N$g&&(n=V$g(n,o),A-=o),new en(n.append(i),A)}remapping(g,I){let C=new U0;return this.items.forEach((t,i)=>{let A=t.mirrorOffset!=null&&i-t.mirrorOffset>=g?C.maps.length-t.mirrorOffset:void 0;C.appendMap(t.map,A)},g,I),C}addMaps(g){return this.eventCount==0?this:new en(this.items.append(g.map(I=>new En(I))),this.eventCount)}rebased(g,I){if(!this.eventCount)return this;let C=[],t=Math.max(0,this.items.length-I),i=g.mapping,A=g.steps.length,n=this.eventCount;this.items.forEach(m=>{m.selection&&n--},t);let l=I;this.items.forEach(m=>{let u=i.getMirror(--l);if(u==null)return;A=Math.min(A,u);let h=i.maps[u];if(m.step){let Z=g.steps[u].invert(g.docs[u]),G=m.selection&&m.selection.map(i.slice(l+1,u));G&&n++,C.push(new En(h,Z,G))}else C.push(new En(h))},t);let o=[];for(let m=I;m<A;m++)o.push(new En(i.maps[m]));let a=this.items.slice(0,t).append(o).append(C),d=new en(a,n);return d.emptyItemCount()>Y$g&&(d=d.compress(this.items.length-C.length)),d}emptyItemCount(){let g=0;return this.items.forEach(I=>{I.step||g++}),g}compress(g=this.items.length){let I=this.remapping(0,g),C=I.maps.length,t=[],i=0;return this.items.forEach((A,n)=>{if(n>=g)t.push(A),A.selection&&i++;else if(A.step){let l=A.step.map(I.slice(C)),o=l&&l.getMap();if(C--,o&&I.appendMap(o,C),l){let a=A.selection&&A.selection.map(I.slice(C));a&&i++;let d=new En(o.invert(),l,a),m,u=t.length-1;(m=t.length&&t[u].merge(d))?t[u]=m:t.push(d)}}else A.map&&C--},this.items.length,0),new en(DC.from(t.reverse()),i)}}en.empty=new en(DC.empty,0);function V$g(e,g){let I;return e.forEach((C,t)=>{if(C.selection&&g--==0)return I=t,!1}),e.slice(I)}class En{constructor(g,I,C,t){this.map=g,this.step=I,this.selection=C,this.mirrorOffset=t}merge(g){if(this.step&&g.step&&!g.selection){let I=g.step.merge(this.step);if(I)return new En(I.getMap().invert(),I,this.selection)}}}class fo{constructor(g,I,C,t,i){this.done=g,this.undone=I,this.prevRanges=C,this.prevTime=t,this.prevComposition=i}}const N$g=20;function M$g(e,g,I,C){let t=I.getMeta(Fd),i;if(t)return t.historyState;I.getMeta(X$g)&&(e=new fo(e.done,e.undone,null,0,-1));let A=I.getMeta("appendedTransaction");if(I.steps.length==0)return e;if(A&&A.getMeta(Fd))return A.getMeta(Fd).redo?new fo(e.done.addTransform(I,void 0,C,zB(g)),e.undone,eJ(I.mapping.maps),e.prevTime,e.prevComposition):new fo(e.done,e.undone.addTransform(I,void 0,C,zB(g)),null,e.prevTime,e.prevComposition);if(I.getMeta("addToHistory")!==!1&&!(A&&A.getMeta("addToHistory")===!1)){let n=I.getMeta("composition"),l=e.prevTime==0||!A&&e.prevComposition!=n&&(e.prevTime<(I.time||0)-C.newGroupDelay||!f$g(I,e.prevRanges)),o=A?qM(e.prevRanges,I.mapping):eJ(I.mapping.maps);return new fo(e.done.addTransform(I,l?g.selection.getBookmark():void 0,C,zB(g)),en.empty,o,I.time,n??e.prevComposition)}else return(i=I.getMeta("rebased"))?new fo(e.done.rebased(I,i),e.undone.rebased(I,i),qM(e.prevRanges,I.mapping),e.prevTime,e.prevComposition):new fo(e.done.addMaps(I.mapping.maps),e.undone.addMaps(I.mapping.maps),qM(e.prevRanges,I.mapping),e.prevTime,e.prevComposition)}function f$g(e,g){if(!g)return!1;if(!e.docChanged)return!0;let I=!1;return e.mapping.maps[0].forEach((C,t)=>{for(let i=0;i<g.length;i+=2)C<=g[i+1]&&t>=g[i]&&(I=!0)}),I}function eJ(e){let g=[];for(let I=e.length-1;I>=0&&g.length==0;I--)e[I].forEach((C,t,i,A)=>g.push(i,A));return g}function qM(e,g){if(!e)return null;let I=[];for(let C=0;C<e.length;C+=2){let t=g.map(e[C],1),i=g.map(e[C+1],-1);t<=i&&I.push(t,i)}return I}function R$g(e,g,I){let C=zB(g),t=Fd.get(g).spec.config,i=(I?e.undone:e.done).popEvent(g,C);if(!i)return null;let A=i.selection.resolve(i.transform.doc),n=(I?e.done:e.undone).addTransform(i.transform,g.selection.getBookmark(),t,C),l=new fo(I?n:i.remaining,I?i.remaining:n,null,0,-1);return i.transform.setSelection(A).setMeta(Fd,{redo:I,historyState:l})}let gf=!1,CJ=null;function zB(e){let g=e.plugins;if(CJ!=g){gf=!1,CJ=g;for(let I=0;I<g.length;I++)if(g[I].spec.historyPreserveItems){gf=!0;break}}return gf}const Fd=new XC("history"),X$g=new XC("closeHistory");function H$g(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new je({key:Fd,state:{init(){return new fo(en.empty,en.empty,null,0,-1)},apply(g,I,C){return M$g(I,C,g,e)}},config:e,props:{handleDOMEvents:{beforeinput(g,I){let C=I.inputType,t=C=="historyUndo"?iJ:C=="historyRedo"?AJ:null;return t?(I.preventDefault(),t(g.state,g.dispatch)):!1}}}})}function tJ(e,g){return(I,C)=>{let t=Fd.getState(I);if(!t||(e?t.undone:t.done).eventCount==0)return!1;if(C){let i=R$g(t,I,e);i&&C(g?i.scrollIntoView():i)}return!0}}const iJ=tJ(!1,!0),AJ=tJ(!0,!0);dC.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(g=>g!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const g=(e==null?void 0:e.node)||this.editor.state.doc;if(((e==null?void 0:e.mode)||this.options.mode)==="textSize"){const C=g.textBetween(0,g.content.size,void 0," ");return this.options.textCounter(C)}return g.nodeSize},this.storage.words=e=>{const g=(e==null?void 0:e.node)||this.editor.state.doc,I=g.textBetween(0,g.content.size," "," ");return this.options.wordCounter(I)}},addProseMirrorPlugins(){let e=!1;return[new je({key:new XC("characterCount"),appendTransaction:(g,I,C)=>{if(e)return;const t=this.options.limit;if(t==null||t===0){e=!0;return}const i=this.storage.characters({node:C.doc});if(i>t){const A=i-t,n=0,l=A;console.warn(`[CharacterCount] Initial content exceeded limit of ${t} characters. Content was automatically trimmed.`);const o=C.tr.deleteRange(n,l);return e=!0,o}e=!0},filterTransaction:(g,I)=>{const C=this.options.limit;if(!g.docChanged||C===0||C===null||C===void 0)return!0;const t=this.storage.characters({node:I.doc}),i=this.storage.characters({node:g.doc});if(i<=C||t>C&&i>C&&i<=t)return!0;if(t>C&&i>C&&i>t||!g.getMeta("paste"))return!1;const n=g.selection.$head.pos,l=i-C,o=n-l,a=n;return g.deleteRange(o,a),!(this.storage.characters({node:g.doc})>C)}})]}});var D$g=dC.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[u$g(this.options)]}});dC.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new je({key:new XC("focus"),props:{decorations:({doc:e,selection:g})=>{const{isEditable:I,isFocused:C}=this.editor,{anchor:t}=g,i=[];if(!I||!C)return ke.create(e,[]);let A=0;this.options.mode==="deepest"&&e.descendants((l,o)=>{if(l.isText)return;if(!(t>=o&&t<=o+l.nodeSize-1))return!1;A+=1});let n=0;return e.descendants((l,o)=>{if(l.isText||!(t>=o&&t<=o+l.nodeSize-1))return!1;if(n+=1,this.options.mode==="deepest"&&A-n>0||this.options.mode==="shallowest"&&n>1)return this.options.mode==="deepest";i.push(Ft.node(o,o+l.nodeSize,{class:this.options.className}))}),ke.create(e,i)}}})]}});var S$g=dC.create({name:"gapCursor",addProseMirrorPlugins(){return[G$g()]},extendNodeSchema(e){var g;const I={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(g=PI(Og(e,"allowGapCursor",I)))!=null?g:null}}}),K$g=dC.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new je({key:new XC("placeholder"),props:{decorations:({doc:e,selection:g})=>{const I=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:C}=g,t=[];if(!I)return null;const i=this.editor.isEmpty;return e.descendants((A,n)=>{const l=C>=n&&C<=n+A.nodeSize,o=!A.isLeaf&&Qp(A);if((l||!this.options.showOnlyCurrent)&&o){const a=[this.options.emptyNodeClass];i&&a.push(this.options.emptyEditorClass);const d=Ft.node(n,n+A.nodeSize,{class:a.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:A,pos:n,hasAnchor:l}):this.options.placeholder});t.push(d)}return this.options.includeChildren}),ke.create(e,t)}}})]}});dC.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:e,options:g}=this;return[new je({key:new XC("selection"),props:{decorations(I){return I.selection.empty||e.isFocused||!e.isEditable||jF(I.selection)||e.view.dragging?null:ke.create(I.doc,[Ft.inline(I.selection.from,I.selection.to,{class:g.className})])}}})]}});function nJ({types:e,node:g}){return g&&Array.isArray(e)&&e.includes(g.type)||(g==null?void 0:g.type)===e}var k$g=dC.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:[]}},addProseMirrorPlugins(){const e=new XC(this.name),g=Object.entries(this.editor.schema.nodes).map(([,I])=>I).filter(I=>(this.options.notAfter||[]).concat(this.options.node).includes(I.name));return[new je({key:e,appendTransaction:(I,C,t)=>{const{doc:i,tr:A,schema:n}=t,l=e.getState(t),o=i.content.size,a=n.nodes[this.options.node];if(l)return A.insert(o,a.create())},state:{init:(I,C)=>{const t=C.tr.doc.lastChild;return!nJ({node:t,types:g})},apply:(I,C)=>{if(!I.docChanged)return C;const t=I.doc.lastChild;return!nJ({node:t,types:g})}}})]}}),F$g=dC.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:g})=>iJ(e,g),redo:()=>({state:e,dispatch:g})=>AJ(e,g)}},addProseMirrorPlugins(){return[H$g(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()}}}),z$g=dC.create({name:"starterKit",addExtensions(){var e,g,I,C;const t=[];return this.options.bold!==!1&&t.push(r_g.configure(this.options.bold)),this.options.blockquote!==!1&&t.push(s_g.configure(this.options.blockquote)),this.options.bulletList!==!1&&t.push(jz.configure(this.options.bulletList)),this.options.code!==!1&&t.push(h_g.configure(this.options.code)),this.options.codeBlock!==!1&&t.push(G_g.configure(this.options.codeBlock)),this.options.document!==!1&&t.push(w_g.configure(this.options.document)),this.options.dropcursor!==!1&&t.push(D$g.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&t.push(S$g.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&t.push(W_g.configure(this.options.hardBreak)),this.options.heading!==!1&&t.push(p_g.configure(this.options.heading)),this.options.undoRedo!==!1&&t.push(F$g.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&t.push(B_g.configure(this.options.horizontalRule)),this.options.italic!==!1&&t.push(M_g.configure(this.options.italic)),this.options.listItem!==!1&&t.push(xz.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(_z.configure((e=this.options)==null?void 0:e.listKeymap)),this.options.link!==!1&&t.push(Lz.configure((g=this.options)==null?void 0:g.link)),this.options.orderedList!==!1&&t.push(gJ.configure(this.options.orderedList)),this.options.paragraph!==!1&&t.push(o$g.configure(this.options.paragraph)),this.options.strike!==!1&&t.push(c$g.configure(this.options.strike)),this.options.text!==!1&&t.push(r$g.configure(this.options.text)),this.options.underline!==!1&&t.push(m$g.configure((I=this.options)==null?void 0:I.underline)),this.options.trailingNode!==!1&&t.push(k$g.configure((C=this.options)==null?void 0:C.trailingNode)),t}}),J$g=z$g,L$g=K$g;const lJ="https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64",sJ={recent:"Recently used",smileys_people:"Smiles & People",animals_nature:"Animals & Nature",food_drink:"Food & Drink",activities:"Activities",travel_places:"Travel places",objects:"Objects",symbols:"Symbols",flags:"Flags"},oJ="u",JB="n",LB="v",pb="r",T$g={[JB]:["grinning face","grinning"],[oJ]:"1f600",[pb]:"1f600"},TB="neutral",v$g=[TB,"1f3fb","1f3fc","1f3fd","1f3fe","1f3ff"],j$g={placeholder:"Search emoji",skinTone:"Skin tone"},x$g=["light","dark","auto"];var O$g={smileys_people:[{n:["grinning face","grinning"],u:"1f600"},{n:["grinning face with smiling eyes","grin"],u:"1f601"},{n:["face with tears of joy","joy"],u:"1f602"},{n:["rolling on the floor laughing","rolling_on_the_floor_laughing"],u:"1f923"},{n:["smiling face with open mouth","smiley"],u:"1f603"},{n:["smiling face with open mouth and smiling eyes","smile"],u:"1f604"},{n:["smiling face with open mouth and cold sweat","sweat_smile"],u:"1f605"},{n:["smiling face with open mouth and tightly-closed eyes","laughing","satisfied"],u:"1f606"},{n:["winking face","wink"],u:"1f609"},{n:["smiling face with smiling eyes","blush"],u:"1f60a"},{n:["face savouring delicious food","yum"],u:"1f60b"},{n:["smiling face with sunglasses","sunglasses"],u:"1f60e"},{n:["smiling face with heart-shaped eyes","heart_eyes"],u:"1f60d"},{n:["face throwing a kiss","kissing_heart"],u:"1f618"},{n:["kissing face","kissing"],u:"1f617"},{n:["kissing face with smiling eyes","kissing_smiling_eyes"],u:"1f619"},{n:["kissing face with closed eyes","kissing_closed_eyes"],u:"1f61a"},{n:["white smiling face","relaxed"],u:"263a-fe0f"},{n:["slightly smiling face","slightly_smiling_face"],u:"1f642"},{n:["hugging face","hugging_face"],u:"1f917"},{n:["grinning face with star eyes","star-struck","grinning_face_with_star_eyes"],u:"1f929"},{n:["thinking face","thinking_face"],u:"1f914"},{n:["face with one eyebrow raised","face_with_raised_eyebrow","face_with_one_eyebrow_raised"],u:"1f928"},{n:["neutral face","neutral_face"],u:"1f610"},{n:["expressionless face","expressionless"],u:"1f611"},{n:["face without mouth","no_mouth"],u:"1f636"},{n:["face with rolling eyes","face_with_rolling_eyes"],u:"1f644"},{n:["smirking face","smirk"],u:"1f60f"},{n:["persevering face","persevere"],u:"1f623"},{n:["disappointed but relieved face","disappointed_relieved"],u:"1f625"},{n:["face with open mouth","open_mouth"],u:"1f62e"},{n:["zipper-mouth face","zipper_mouth_face"],u:"1f910"},{n:["hushed face","hushed"],u:"1f62f"},{n:["sleepy face","sleepy"],u:"1f62a"},{n:["tired face","tired_face"],u:"1f62b"},{n:["sleeping face","sleeping"],u:"1f634"},{n:["relieved face","relieved"],u:"1f60c"},{n:["face with stuck-out tongue","stuck_out_tongue"],u:"1f61b"},{n:["face with stuck-out tongue and winking eye","stuck_out_tongue_winking_eye"],u:"1f61c"},{n:["face with stuck-out tongue and tightly-closed eyes","stuck_out_tongue_closed_eyes"],u:"1f61d"},{n:["drooling face","drooling_face"],u:"1f924"},{n:["unamused face","unamused"],u:"1f612"},{n:["face with cold sweat","sweat"],u:"1f613"},{n:["pensive face","pensive"],u:"1f614"},{n:["confused face","confused"],u:"1f615"},{n:["upside-down face","upside_down_face"],u:"1f643"},{n:["money-mouth face","money_mouth_face"],u:"1f911"},{n:["astonished face","astonished"],u:"1f632"},{n:["white_frowning_face"],u:"2639-fe0f"},{n:["slightly frowning face","slightly_frowning_face"],u:"1f641"},{n:["confounded face","confounded"],u:"1f616"},{n:["disappointed face","disappointed"],u:"1f61e"},{n:["worried face","worried"],u:"1f61f"},{n:["face with look of triumph","triumph"],u:"1f624"},{n:["crying face","cry"],u:"1f622"},{n:["loudly crying face","sob"],u:"1f62d"},{n:["frowning face with open mouth","frowning"],u:"1f626"},{n:["anguished face","anguished"],u:"1f627"},{n:["fearful face","fearful"],u:"1f628"},{n:["weary face","weary"],u:"1f629"},{n:["shocked face with exploding head","exploding_head","shocked_face_with_exploding_head"],u:"1f92f"},{n:["grimacing face","grimacing"],u:"1f62c"},{n:["face with open mouth and cold sweat","cold_sweat"],u:"1f630"},{n:["face screaming in fear","scream"],u:"1f631"},{n:["flushed face","flushed"],u:"1f633"},{n:["grinning face with one large and one small eye","zany_face","grinning_face_with_one_large_and_one_small_eye"],u:"1f92a"},{n:["dizzy face","dizzy_face"],u:"1f635"},{n:["pouting face","rage"],u:"1f621"},{n:["angry face","angry"],u:"1f620"},{n:["serious face with symbols covering mouth","face_with_symbols_on_mouth","serious_face_with_symbols_covering_mouth"],u:"1f92c"},{n:["face with medical mask","mask"],u:"1f637"},{n:["face with thermometer","face_with_thermometer"],u:"1f912"},{n:["face with head-bandage","face_with_head_bandage"],u:"1f915"},{n:["nauseated face","nauseated_face"],u:"1f922"},{n:["face with open mouth vomiting","face_vomiting","face_with_open_mouth_vomiting"],u:"1f92e"},{n:["sneezing face","sneezing_face"],u:"1f927"},{n:["smiling face with halo","innocent"],u:"1f607"},{n:["face with cowboy hat","face_with_cowboy_hat"],u:"1f920"},{n:["clown face","clown_face"],u:"1f921"},{n:["lying face","lying_face"],u:"1f925"},{n:["face with finger covering closed lips","shushing_face","face_with_finger_covering_closed_lips"],u:"1f92b"},{n:["smiling face with smiling eyes and hand covering mouth","face_with_hand_over_mouth","smiling_face_with_smiling_eyes_and_hand_covering_mouth"],u:"1f92d"},{n:["face with monocle","face_with_monocle"],u:"1f9d0"},{n:["nerd face","nerd_face"],u:"1f913"},{n:["smiling face with horns","smiling_imp"],u:"1f608"},{n:["imp"],u:"1f47f"},{n:["japanese ogre","japanese_ogre"],u:"1f479"},{n:["japanese goblin","japanese_goblin"],u:"1f47a"},{n:["skull"],u:"1f480"},{n:["skull_and_crossbones"],u:"2620-fe0f"},{n:["ghost"],u:"1f47b"},{n:["extraterrestrial alien","alien"],u:"1f47d"},{n:["alien monster","space_invader"],u:"1f47e"},{n:["robot face","robot_face"],u:"1f916"},{n:["pile of poo","hankey","poop","shit"],u:"1f4a9"},{n:["smiling cat face with open mouth","smiley_cat"],u:"1f63a"},{n:["grinning cat face with smiling eyes","smile_cat"],u:"1f638"},{n:["cat face with tears of joy","joy_cat"],u:"1f639"},{n:["smiling cat face with heart-shaped eyes","heart_eyes_cat"],u:"1f63b"},{n:["cat face with wry smile","smirk_cat"],u:"1f63c"},{n:["kissing cat face with closed eyes","kissing_cat"],u:"1f63d"},{n:["weary cat face","scream_cat"],u:"1f640"},{n:["crying cat face","crying_cat_face"],u:"1f63f"},{n:["pouting cat face","pouting_cat"],u:"1f63e"},{n:["see-no-evil monkey","see_no_evil"],u:"1f648"},{n:["hear-no-evil monkey","hear_no_evil"],u:"1f649"},{n:["speak-no-evil monkey","speak_no_evil"],u:"1f64a"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"]},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"]},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"]},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"]},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"]},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"]},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"]},{n:["older adult","older_adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"]},{n:["older man","older_man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"]},{n:["older woman","older_woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"]},{n:["male-doctor"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"]},{n:["female-doctor"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"]},{n:["male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"]},{n:["female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"]},{n:["male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"]},{n:["female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"]},{n:["male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"]},{n:["female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"]},{n:["male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"]},{n:["female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"]},{n:["male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"]},{n:["female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"]},{n:["male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"]},{n:["female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"]},{n:["male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"]},{n:["female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"]},{n:["male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"]},{n:["female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"]},{n:["male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"]},{n:["female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"]},{n:["male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"]},{n:["female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"]},{n:["male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"]},{n:["female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"]},{n:["male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"]},{n:["female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"]},{n:["male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"]},{n:["female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"]},{n:["male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"]},{n:["female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"]},{n:["male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"]},{n:["female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"]},{n:["police officer","cop"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"]},{n:["male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"]},{n:["female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"]},{n:["sleuth_or_spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"]},{n:["male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"]},{n:["female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"]},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"]},{n:["male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"]},{n:["female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"]},{n:["construction worker","construction_worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"]},{n:["male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"]},{n:["female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"]},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"]},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"]},{n:["man with turban","man_with_turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"]},{n:["man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"]},{n:["woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"]},{n:["man with gua pi mao","man_with_gua_pi_mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"]},{n:["person with headscarf","person_with_headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"]},{n:["bearded person","bearded_person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"]},{n:["person with blond hair","person_with_blond_hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"]},{n:["blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"]},{n:["blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"]},{n:["man in tuxedo","man_in_tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"]},{n:["bride with veil","bride_with_veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"]},{n:["pregnant woman","pregnant_woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"]},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"]},{n:["baby angel","angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"]},{n:["father christmas","santa"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"]},{n:["mother christmas","mrs_claus","mother_christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"]},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"]},{n:["female_mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"]},{n:["male_mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"]},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"]},{n:["female_fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"]},{n:["male_fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"]},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"]},{n:["female_vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"]},{n:["male_vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"]},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"]},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"]},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"]},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"]},{n:["female_elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"]},{n:["male_elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"]},{n:["genie"],u:"1f9de"},{n:["female_genie"],u:"1f9de-200d-2640-fe0f"},{n:["male_genie"],u:"1f9de-200d-2642-fe0f"},{n:["zombie"],u:"1f9df"},{n:["female_zombie"],u:"1f9df-200d-2640-fe0f"},{n:["male_zombie"],u:"1f9df-200d-2642-fe0f"},{n:["person frowning","person_frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"]},{n:["man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"]},{n:["woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"]},{n:["person with pouting face","person_with_pouting_face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"]},{n:["man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"]},{n:["woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"]},{n:["face with no good gesture","no_good"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"]},{n:["man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"]},{n:["face with ok gesture","ok_woman"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"]},{n:["man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"]},{n:["woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"]},{n:["information desk person","information_desk_person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"]},{n:["man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"]},{n:["woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"]},{n:["happy person raising one hand","raising_hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"]},{n:["man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"]},{n:["woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"]},{n:["person bowing deeply","bow"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"]},{n:["man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"]},{n:["woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"]},{n:["face palm","face_palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"]},{n:["man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"]},{n:["woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"]},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"]},{n:["man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"]},{n:["woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"]},{n:["face massage","massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"]},{n:["man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"]},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"]},{n:["man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"]},{n:["woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"]},{n:["pedestrian","walking"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"]},{n:["man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"]},{n:["woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"]},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"]},{n:["man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"]},{n:["woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"]},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"]},{n:["man dancing","man_dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"]},{n:["woman with bunny ears","dancers"],u:"1f46f"},{n:["man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f"},{n:["woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f"},{n:["person in steamy room","person_in_steamy_room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"]},{n:["woman_in_steamy_room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"]},{n:["man_in_steamy_room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"]},{n:["person climbing","person_climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"]},{n:["woman_climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"]},{n:["man_climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"]},{n:["person in lotus position","person_in_lotus_position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"]},{n:["woman_in_lotus_position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"]},{n:["man_in_lotus_position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"]},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"]},{n:["sleeping accommodation","sleeping_accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"]},{n:["man_in_business_suit_levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"]},{n:["speaking_head_in_silhouette"],u:"1f5e3-fe0f"},{n:["bust in silhouette","bust_in_silhouette"],u:"1f464"},{n:["busts in silhouette","busts_in_silhouette"],u:"1f465"},{n:["fencer"],u:"1f93a"},{n:["horse racing","horse_racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"]},{n:["skier"],u:"26f7-fe0f"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"]},{n:["golfer"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"]},{n:["man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"]},{n:["woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"]},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"]},{n:["man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"]},{n:["woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"]},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"]},{n:["man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"]},{n:["woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"]},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"]},{n:["man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"]},{n:["woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"]},{n:["person_with_ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"]},{n:["man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"]},{n:["woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"]},{n:["weight_lifter"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"]},{n:["man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"]},{n:["woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"]},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"]},{n:["man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"]},{n:["woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"]},{n:["mountain bicyclist","mountain_bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"]},{n:["man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"]},{n:["woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"]},{n:["racing_car"],u:"1f3ce-fe0f"},{n:["racing_motorcycle"],u:"1f3cd-fe0f"},{n:["person doing cartwheel","person_doing_cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"]},{n:["man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"]},{n:["woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"]},{n:["wrestlers"],u:"1f93c"},{n:["man-wrestling"],u:"1f93c-200d-2642-fe0f"},{n:["woman-wrestling"],u:"1f93c-200d-2640-fe0f"},{n:["water polo","water_polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"]},{n:["man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"]},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"]},{n:["man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"]},{n:["woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"]},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"]},{n:["man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"]},{n:["woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"]},{n:["man and woman holding hands","couple","man_and_woman_holding_hands"],u:"1f46b"},{n:["two men holding hands","two_men_holding_hands"],u:"1f46c"},{n:["two women holding hands","two_women_holding_hands"],u:"1f46d"},{n:["kiss","couplekiss"],u:"1f48f"},{n:["woman-kiss-man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["man-kiss-man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468"},{n:["woman-kiss-woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469"},{n:["couple with heart","couple_with_heart"],u:"1f491"},{n:["woman-heart-man"],u:"1f469-200d-2764-fe0f-200d-1f468"},{n:["man-heart-man"],u:"1f468-200d-2764-fe0f-200d-1f468"},{n:["woman-heart-woman"],u:"1f469-200d-2764-fe0f-200d-1f469"},{n:["family","man-woman-boy"],u:"1f46a"},{n:["man-woman-boy","family"],u:"1f468-200d-1f469-200d-1f466"},{n:["man-woman-girl"],u:"1f468-200d-1f469-200d-1f467"},{n:["man-woman-girl-boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466"},{n:["man-woman-boy-boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466"},{n:["man-woman-girl-girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467"},{n:["man-man-boy"],u:"1f468-200d-1f468-200d-1f466"},{n:["man-man-girl"],u:"1f468-200d-1f468-200d-1f467"},{n:["man-man-girl-boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466"},{n:["man-man-boy-boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466"},{n:["man-man-girl-girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467"},{n:["woman-woman-boy"],u:"1f469-200d-1f469-200d-1f466"},{n:["woman-woman-girl"],u:"1f469-200d-1f469-200d-1f467"},{n:["woman-woman-girl-boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466"},{n:["woman-woman-boy-boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466"},{n:["woman-woman-girl-girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467"},{n:["man-boy"],u:"1f468-200d-1f466"},{n:["man-boy-boy"],u:"1f468-200d-1f466-200d-1f466"},{n:["man-girl"],u:"1f468-200d-1f467"},{n:["man-girl-boy"],u:"1f468-200d-1f467-200d-1f466"},{n:["man-girl-girl"],u:"1f468-200d-1f467-200d-1f467"},{n:["woman-boy"],u:"1f469-200d-1f466"},{n:["woman-boy-boy"],u:"1f469-200d-1f466-200d-1f466"},{n:["woman-girl"],u:"1f469-200d-1f467"},{n:["woman-girl-boy"],u:"1f469-200d-1f467-200d-1f466"},{n:["woman-girl-girl"],u:"1f469-200d-1f467-200d-1f467"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"]},{n:["flexed biceps","muscle"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"]},{n:["white left pointing backhand index","point_left"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"]},{n:["white right pointing backhand index","point_right"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"]},{n:["white up pointing index","point_up"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"]},{n:["white up pointing backhand index","point_up_2"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"]},{n:["reversed hand with middle finger extended","middle_finger","reversed_hand_with_middle_finger_extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"]},{n:["white down pointing backhand index","point_down"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"]},{n:["victory hand","v"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"]},{n:["hand with index and middle fingers crossed","crossed_fingers","hand_with_index_and_middle_fingers_crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"]},{n:["raised hand with part between middle and ring fingers","spock-hand"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"]},{n:["sign of the horns","the_horns","sign_of_the_horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"]},{n:["call me hand","call_me_hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"]},{n:["raised_hand_with_fingers_splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"]},{n:["raised hand","hand","raised_hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"]},{n:["ok hand sign","ok_hand"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"]},{n:["thumbs up sign","+1","thumbsup"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"]},{n:["thumbs down sign","-1","thumbsdown"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"]},{n:["raised fist","fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"]},{n:["fisted hand sign","facepunch","punch"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"]},{n:["left-facing fist","left-facing_fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"]},{n:["right-facing fist","right-facing_fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"]},{n:["raised back of hand","raised_back_of_hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"]},{n:["waving hand sign","wave"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"]},{n:["i love you hand sign","i_love_you_hand_sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"]},{n:["writing_hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"]},{n:["clapping hands sign","clap"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"]},{n:["open hands sign","open_hands"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"]},{n:["person raising both hands in celebration","raised_hands"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"]},{n:["palms up together","palms_up_together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"]},{n:["person with folded hands","pray"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"]},{n:["handshake"],u:"1f91d"},{n:["nail polish","nail_care"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"]},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"]},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"]},{n:["footprints"],u:"1f463"},{n:["eyes"],u:"1f440"},{n:["eye"],u:"1f441-fe0f"},{n:["eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f"},{n:["brain"],u:"1f9e0"},{n:["tongue"],u:"1f445"},{n:["mouth","lips"],u:"1f444"},{n:["kiss mark","kiss"],u:"1f48b"},{n:["heart with arrow","cupid"],u:"1f498"},{n:["heavy black heart","heart"],u:"2764-fe0f"},{n:["beating heart","heartbeat"],u:"1f493"},{n:["broken heart","broken_heart"],u:"1f494"},{n:["two hearts","two_hearts"],u:"1f495"},{n:["sparkling heart","sparkling_heart"],u:"1f496"},{n:["growing heart","heartpulse"],u:"1f497"},{n:["blue heart","blue_heart"],u:"1f499"},{n:["green heart","green_heart"],u:"1f49a"},{n:["yellow heart","yellow_heart"],u:"1f49b"},{n:["orange heart","orange_heart"],u:"1f9e1"},{n:["purple heart","purple_heart"],u:"1f49c"},{n:["black heart","black_heart"],u:"1f5a4"},{n:["heart with ribbon","gift_heart"],u:"1f49d"},{n:["revolving hearts","revolving_hearts"],u:"1f49e"},{n:["heart decoration","heart_decoration"],u:"1f49f"},{n:["heavy_heart_exclamation_mark_ornament"],u:"2763-fe0f"},{n:["love letter","love_letter"],u:"1f48c"},{n:["sleeping symbol","zzz"],u:"1f4a4"},{n:["anger symbol","anger"],u:"1f4a2"},{n:["bomb"],u:"1f4a3"},{n:["collision symbol","boom","collision"],u:"1f4a5"},{n:["splashing sweat symbol","sweat_drops"],u:"1f4a6"},{n:["dash symbol","dash"],u:"1f4a8"},{n:["dizzy symbol","dizzy"],u:"1f4ab"},{n:["speech balloon","speech_balloon"],u:"1f4ac"},{n:["left_speech_bubble"],u:"1f5e8-fe0f"},{n:["right_anger_bubble"],u:"1f5ef-fe0f"},{n:["thought balloon","thought_balloon"],u:"1f4ad"},{n:["hole"],u:"1f573-fe0f"},{n:["eyeglasses"],u:"1f453"},{n:["dark_sunglasses"],u:"1f576-fe0f"},{n:["necktie"],u:"1f454"},{n:["t-shirt","shirt","tshirt"],u:"1f455"},{n:["jeans"],u:"1f456"},{n:["scarf"],u:"1f9e3"},{n:["gloves"],u:"1f9e4"},{n:["coat"],u:"1f9e5"},{n:["socks"],u:"1f9e6"},{n:["dress"],u:"1f457"},{n:["kimono"],u:"1f458"},{n:["bikini"],u:"1f459"},{n:["womans clothes","womans_clothes"],u:"1f45a"},{n:["purse"],u:"1f45b"},{n:["handbag"],u:"1f45c"},{n:["pouch"],u:"1f45d"},{n:["shopping_bags"],u:"1f6cd-fe0f"},{n:["school satchel","school_satchel"],u:"1f392"},{n:["mans shoe","mans_shoe","shoe"],u:"1f45e"},{n:["athletic shoe","athletic_shoe"],u:"1f45f"},{n:["high-heeled shoe","high_heel"],u:"1f460"},{n:["womans sandal","sandal"],u:"1f461"},{n:["womans boots","boot"],u:"1f462"},{n:["crown"],u:"1f451"},{n:["womans hat","womans_hat"],u:"1f452"},{n:["top hat","tophat"],u:"1f3a9"},{n:["graduation cap","mortar_board"],u:"1f393"},{n:["billed cap","billed_cap"],u:"1f9e2"},{n:["helmet_with_white_cross"],u:"26d1-fe0f"},{n:["prayer beads","prayer_beads"],u:"1f4ff"},{n:["lipstick"],u:"1f484"},{n:["ring"],u:"1f48d"},{n:["gem stone","gem"],u:"1f48e"}],animals_nature:[{n:["monkey face","monkey_face"],u:"1f435"},{n:["monkey"],u:"1f412"},{n:["gorilla"],u:"1f98d"},{n:["dog face","dog"],u:"1f436"},{n:["dog","dog2"],u:"1f415"},{n:["poodle"],u:"1f429"},{n:["wolf face","wolf"],u:"1f43a"},{n:["fox face","fox_face"],u:"1f98a"},{n:["cat face","cat"],u:"1f431"},{n:["cat","cat2"],u:"1f408"},{n:["lion face","lion_face"],u:"1f981"},{n:["tiger face","tiger"],u:"1f42f"},{n:["tiger","tiger2"],u:"1f405"},{n:["leopard"],u:"1f406"},{n:["horse face","horse"],u:"1f434"},{n:["horse","racehorse"],u:"1f40e"},{n:["unicorn face","unicorn_face"],u:"1f984"},{n:["zebra face","zebra_face"],u:"1f993"},{n:["deer"],u:"1f98c"},{n:["cow face","cow"],u:"1f42e"},{n:["ox"],u:"1f402"},{n:["water buffalo","water_buffalo"],u:"1f403"},{n:["cow","cow2"],u:"1f404"},{n:["pig face","pig"],u:"1f437"},{n:["pig","pig2"],u:"1f416"},{n:["boar"],u:"1f417"},{n:["pig nose","pig_nose"],u:"1f43d"},{n:["ram"],u:"1f40f"},{n:["sheep"],u:"1f411"},{n:["goat"],u:"1f410"},{n:["dromedary camel","dromedary_camel"],u:"1f42a"},{n:["bactrian camel","camel"],u:"1f42b"},{n:["giraffe face","giraffe_face"],u:"1f992"},{n:["elephant"],u:"1f418"},{n:["rhinoceros"],u:"1f98f"},{n:["mouse face","mouse"],u:"1f42d"},{n:["mouse","mouse2"],u:"1f401"},{n:["rat"],u:"1f400"},{n:["hamster face","hamster"],u:"1f439"},{n:["rabbit face","rabbit"],u:"1f430"},{n:["rabbit","rabbit2"],u:"1f407"},{n:["chipmunk"],u:"1f43f-fe0f"},{n:["hedgehog"],u:"1f994"},{n:["bat"],u:"1f987"},{n:["bear face","bear"],u:"1f43b"},{n:["koala"],u:"1f428"},{n:["panda face","panda_face"],u:"1f43c"},{n:["paw prints","feet","paw_prints"],u:"1f43e"},{n:["turkey"],u:"1f983"},{n:["chicken"],u:"1f414"},{n:["rooster"],u:"1f413"},{n:["hatching chick","hatching_chick"],u:"1f423"},{n:["baby chick","baby_chick"],u:"1f424"},{n:["front-facing baby chick","hatched_chick"],u:"1f425"},{n:["bird"],u:"1f426"},{n:["penguin"],u:"1f427"},{n:["dove_of_peace"],u:"1f54a-fe0f"},{n:["eagle"],u:"1f985"},{n:["duck"],u:"1f986"},{n:["owl"],u:"1f989"},{n:["frog face","frog"],u:"1f438"},{n:["crocodile"],u:"1f40a"},{n:["turtle"],u:"1f422"},{n:["lizard"],u:"1f98e"},{n:["snake"],u:"1f40d"},{n:["dragon face","dragon_face"],u:"1f432"},{n:["dragon"],u:"1f409"},{n:["sauropod"],u:"1f995"},{n:["t-rex"],u:"1f996"},{n:["spouting whale","whale"],u:"1f433"},{n:["whale","whale2"],u:"1f40b"},{n:["dolphin","flipper"],u:"1f42c"},{n:["fish"],u:"1f41f"},{n:["tropical fish","tropical_fish"],u:"1f420"},{n:["blowfish"],u:"1f421"},{n:["shark"],u:"1f988"},{n:["octopus"],u:"1f419"},{n:["spiral shell","shell"],u:"1f41a"},{n:["crab"],u:"1f980"},{n:["shrimp"],u:"1f990"},{n:["squid"],u:"1f991"},{n:["snail"],u:"1f40c"},{n:["butterfly"],u:"1f98b"},{n:["bug"],u:"1f41b"},{n:["ant"],u:"1f41c"},{n:["honeybee","bee"],u:"1f41d"},{n:["lady beetle","beetle"],u:"1f41e"},{n:["cricket"],u:"1f997"},{n:["spider"],u:"1f577-fe0f"},{n:["spider_web"],u:"1f578-fe0f"},{n:["scorpion"],u:"1f982"},{n:["bouquet"],u:"1f490"},{n:["cherry blossom","cherry_blossom"],u:"1f338"},{n:["white flower","white_flower"],u:"1f4ae"},{n:["rosette"],u:"1f3f5-fe0f"},{n:["rose"],u:"1f339"},{n:["wilted flower","wilted_flower"],u:"1f940"},{n:["hibiscus"],u:"1f33a"},{n:["sunflower"],u:"1f33b"},{n:["blossom"],u:"1f33c"},{n:["tulip"],u:"1f337"},{n:["seedling"],u:"1f331"},{n:["evergreen tree","evergreen_tree"],u:"1f332"},{n:["deciduous tree","deciduous_tree"],u:"1f333"},{n:["palm tree","palm_tree"],u:"1f334"},{n:["cactus"],u:"1f335"},{n:["ear of rice","ear_of_rice"],u:"1f33e"},{n:["herb"],u:"1f33f"},{n:["shamrock"],u:"2618-fe0f"},{n:["four leaf clover","four_leaf_clover"],u:"1f340"},{n:["maple leaf","maple_leaf"],u:"1f341"},{n:["fallen leaf","fallen_leaf"],u:"1f342"},{n:["leaf fluttering in wind","leaves"],u:"1f343"}],food_drink:[{n:["grapes"],u:"1f347"},{n:["melon"],u:"1f348"},{n:["watermelon"],u:"1f349"},{n:["tangerine"],u:"1f34a"},{n:["lemon"],u:"1f34b"},{n:["banana"],u:"1f34c"},{n:["pineapple"],u:"1f34d"},{n:["red apple","apple"],u:"1f34e"},{n:["green apple","green_apple"],u:"1f34f"},{n:["pear"],u:"1f350"},{n:["peach"],u:"1f351"},{n:["cherries"],u:"1f352"},{n:["strawberry"],u:"1f353"},{n:["kiwifruit"],u:"1f95d"},{n:["tomato"],u:"1f345"},{n:["coconut"],u:"1f965"},{n:["avocado"],u:"1f951"},{n:["aubergine","eggplant"],u:"1f346"},{n:["potato"],u:"1f954"},{n:["carrot"],u:"1f955"},{n:["ear of maize","corn"],u:"1f33d"},{n:["hot_pepper"],u:"1f336-fe0f"},{n:["cucumber"],u:"1f952"},{n:["broccoli"],u:"1f966"},{n:["mushroom"],u:"1f344"},{n:["peanuts"],u:"1f95c"},{n:["chestnut"],u:"1f330"},{n:["bread"],u:"1f35e"},{n:["croissant"],u:"1f950"},{n:["baguette bread","baguette_bread"],u:"1f956"},{n:["pretzel"],u:"1f968"},{n:["pancakes"],u:"1f95e"},{n:["cheese wedge","cheese_wedge"],u:"1f9c0"},{n:["meat on bone","meat_on_bone"],u:"1f356"},{n:["poultry leg","poultry_leg"],u:"1f357"},{n:["cut of meat","cut_of_meat"],u:"1f969"},{n:["bacon"],u:"1f953"},{n:["hamburger"],u:"1f354"},{n:["french fries","fries"],u:"1f35f"},{n:["slice of pizza","pizza"],u:"1f355"},{n:["hot dog","hotdog"],u:"1f32d"},{n:["sandwich"],u:"1f96a"},{n:["taco"],u:"1f32e"},{n:["burrito"],u:"1f32f"},{n:["stuffed flatbread","stuffed_flatbread"],u:"1f959"},{n:["egg"],u:"1f95a"},{n:["cooking","fried_egg"],u:"1f373"},{n:["shallow pan of food","shallow_pan_of_food"],u:"1f958"},{n:["pot of food","stew"],u:"1f372"},{n:["bowl with spoon","bowl_with_spoon"],u:"1f963"},{n:["green salad","green_salad"],u:"1f957"},{n:["popcorn"],u:"1f37f"},{n:["canned food","canned_food"],u:"1f96b"},{n:["bento box","bento"],u:"1f371"},{n:["rice cracker","rice_cracker"],u:"1f358"},{n:["rice ball","rice_ball"],u:"1f359"},{n:["cooked rice","rice"],u:"1f35a"},{n:["curry and rice","curry"],u:"1f35b"},{n:["steaming bowl","ramen"],u:"1f35c"},{n:["spaghetti"],u:"1f35d"},{n:["roasted sweet potato","sweet_potato"],u:"1f360"},{n:["oden"],u:"1f362"},{n:["sushi"],u:"1f363"},{n:["fried shrimp","fried_shrimp"],u:"1f364"},{n:["fish cake with swirl design","fish_cake"],u:"1f365"},{n:["dango"],u:"1f361"},{n:["dumpling"],u:"1f95f"},{n:["fortune cookie","fortune_cookie"],u:"1f960"},{n:["takeout box","takeout_box"],u:"1f961"},{n:["soft ice cream","icecream"],u:"1f366"},{n:["shaved ice","shaved_ice"],u:"1f367"},{n:["ice cream","ice_cream"],u:"1f368"},{n:["doughnut"],u:"1f369"},{n:["cookie"],u:"1f36a"},{n:["birthday cake","birthday"],u:"1f382"},{n:["shortcake","cake"],u:"1f370"},{n:["pie"],u:"1f967"},{n:["chocolate bar","chocolate_bar"],u:"1f36b"},{n:["candy"],u:"1f36c"},{n:["lollipop"],u:"1f36d"},{n:["custard"],u:"1f36e"},{n:["honey pot","honey_pot"],u:"1f36f"},{n:["baby bottle","baby_bottle"],u:"1f37c"},{n:["glass of milk","glass_of_milk"],u:"1f95b"},{n:["hot beverage","coffee"],u:"2615"},{n:["teacup without handle","tea"],u:"1f375"},{n:["sake bottle and cup","sake"],u:"1f376"},{n:["bottle with popping cork","champagne"],u:"1f37e"},{n:["wine glass","wine_glass"],u:"1f377"},{n:["cocktail glass","cocktail"],u:"1f378"},{n:["tropical drink","tropical_drink"],u:"1f379"},{n:["beer mug","beer"],u:"1f37a"},{n:["clinking beer mugs","beers"],u:"1f37b"},{n:["clinking glasses","clinking_glasses"],u:"1f942"},{n:["tumbler glass","tumbler_glass"],u:"1f943"},{n:["cup with straw","cup_with_straw"],u:"1f964"},{n:["chopsticks"],u:"1f962"},{n:["knife_fork_plate"],u:"1f37d-fe0f"},{n:["fork and knife","fork_and_knife"],u:"1f374"},{n:["spoon"],u:"1f944"},{n:["hocho","knife"],u:"1f52a"},{n:["amphora"],u:"1f3fa"}],activities:[{n:["jack-o-lantern","jack_o_lantern"],u:"1f383"},{n:["christmas tree","christmas_tree"],u:"1f384"},{n:["fireworks"],u:"1f386"},{n:["firework sparkler","sparkler"],u:"1f387"},{n:["sparkles"],u:"2728"},{n:["balloon"],u:"1f388"},{n:["party popper","tada"],u:"1f389"},{n:["confetti ball","confetti_ball"],u:"1f38a"},{n:["tanabata tree","tanabata_tree"],u:"1f38b"},{n:["pine decoration","bamboo"],u:"1f38d"},{n:["japanese dolls","dolls"],u:"1f38e"},{n:["carp streamer","flags"],u:"1f38f"},{n:["wind chime","wind_chime"],u:"1f390"},{n:["moon viewing ceremony","rice_scene"],u:"1f391"},{n:["ribbon"],u:"1f380"},{n:["wrapped present","gift"],u:"1f381"},{n:["reminder_ribbon"],u:"1f397-fe0f"},{n:["admission_tickets"],u:"1f39f-fe0f"},{n:["ticket"],u:"1f3ab"},{n:["medal"],u:"1f396-fe0f"},{n:["trophy"],u:"1f3c6"},{n:["sports medal","sports_medal"],u:"1f3c5"},{n:["first place medal","first_place_medal"],u:"1f947"},{n:["second place medal","second_place_medal"],u:"1f948"},{n:["third place medal","third_place_medal"],u:"1f949"},{n:["soccer ball","soccer"],u:"26bd"},{n:["baseball"],u:"26be"},{n:["basketball and hoop","basketball"],u:"1f3c0"},{n:["volleyball"],u:"1f3d0"},{n:["american football","football"],u:"1f3c8"},{n:["rugby football","rugby_football"],u:"1f3c9"},{n:["tennis racquet and ball","tennis"],u:"1f3be"},{n:["billiards","8ball"],u:"1f3b1"},{n:["bowling"],u:"1f3b3"},{n:["cricket bat and ball","cricket_bat_and_ball"],u:"1f3cf"},{n:["field hockey stick and ball","field_hockey_stick_and_ball"],u:"1f3d1"},{n:["ice hockey stick and puck","ice_hockey_stick_and_puck"],u:"1f3d2"},{n:["table tennis paddle and ball","table_tennis_paddle_and_ball"],u:"1f3d3"},{n:["badminton racquet and shuttlecock","badminton_racquet_and_shuttlecock"],u:"1f3f8"},{n:["boxing glove","boxing_glove"],u:"1f94a"},{n:["martial arts uniform","martial_arts_uniform"],u:"1f94b"},{n:["goal net","goal_net"],u:"1f945"},{n:["direct hit","dart"],u:"1f3af"},{n:["flag in hole","golf"],u:"26f3"},{n:["ice_skate"],u:"26f8-fe0f"},{n:["fishing pole and fish","fishing_pole_and_fish"],u:"1f3a3"},{n:["running shirt with sash","running_shirt_with_sash"],u:"1f3bd"},{n:["ski and ski boot","ski"],u:"1f3bf"},{n:["sled"],u:"1f6f7"},{n:["curling stone","curling_stone"],u:"1f94c"},{n:["video game","video_game"],u:"1f3ae"},{n:["joystick"],u:"1f579-fe0f"},{n:["game die","game_die"],u:"1f3b2"},{n:["black spade suit","spades"],u:"2660-fe0f"},{n:["black heart suit","hearts"],u:"2665-fe0f"},{n:["black diamond suit","diamonds"],u:"2666-fe0f"},{n:["black club suit","clubs"],u:"2663-fe0f"},{n:["playing card black joker","black_joker"],u:"1f0cf"},{n:["mahjong tile red dragon","mahjong"],u:"1f004"},{n:["flower playing cards","flower_playing_cards"],u:"1f3b4"}],travel_places:[{n:["earth globe europe-africa","earth_africa"],u:"1f30d"},{n:["earth globe americas","earth_americas"],u:"1f30e"},{n:["earth globe asia-australia","earth_asia"],u:"1f30f"},{n:["globe with meridians","globe_with_meridians"],u:"1f310"},{n:["world_map"],u:"1f5fa-fe0f"},{n:["silhouette of japan","japan"],u:"1f5fe"},{n:["snow_capped_mountain"],u:"1f3d4-fe0f"},{n:["mountain"],u:"26f0-fe0f"},{n:["volcano"],u:"1f30b"},{n:["mount fuji","mount_fuji"],u:"1f5fb"},{n:["camping"],u:"1f3d5-fe0f"},{n:["beach_with_umbrella"],u:"1f3d6-fe0f"},{n:["desert"],u:"1f3dc-fe0f"},{n:["desert_island"],u:"1f3dd-fe0f"},{n:["national_park"],u:"1f3de-fe0f"},{n:["stadium"],u:"1f3df-fe0f"},{n:["classical_building"],u:"1f3db-fe0f"},{n:["building_construction"],u:"1f3d7-fe0f"},{n:["house_buildings"],u:"1f3d8-fe0f"},{n:["cityscape"],u:"1f3d9-fe0f"},{n:["derelict_house_building"],u:"1f3da-fe0f"},{n:["house building","house"],u:"1f3e0"},{n:["house with garden","house_with_garden"],u:"1f3e1"},{n:["office building","office"],u:"1f3e2"},{n:["japanese post office","post_office"],u:"1f3e3"},{n:["european post office","european_post_office"],u:"1f3e4"},{n:["hospital"],u:"1f3e5"},{n:["bank"],u:"1f3e6"},{n:["hotel"],u:"1f3e8"},{n:["love hotel","love_hotel"],u:"1f3e9"},{n:["convenience store","convenience_store"],u:"1f3ea"},{n:["school"],u:"1f3eb"},{n:["department store","department_store"],u:"1f3ec"},{n:["factory"],u:"1f3ed"},{n:["japanese castle","japanese_castle"],u:"1f3ef"},{n:["european castle","european_castle"],u:"1f3f0"},{n:["wedding"],u:"1f492"},{n:["tokyo tower","tokyo_tower"],u:"1f5fc"},{n:["statue of liberty","statue_of_liberty"],u:"1f5fd"},{n:["church"],u:"26ea"},{n:["mosque"],u:"1f54c"},{n:["synagogue"],u:"1f54d"},{n:["shinto_shrine"],u:"26e9-fe0f"},{n:["kaaba"],u:"1f54b"},{n:["fountain"],u:"26f2"},{n:["tent"],u:"26fa"},{n:["foggy"],u:"1f301"},{n:["night with stars","night_with_stars"],u:"1f303"},{n:["sunrise over mountains","sunrise_over_mountains"],u:"1f304"},{n:["sunrise"],u:"1f305"},{n:["cityscape at dusk","city_sunset"],u:"1f306"},{n:["sunset over buildings","city_sunrise"],u:"1f307"},{n:["bridge at night","bridge_at_night"],u:"1f309"},{n:["hot springs","hotsprings"],u:"2668-fe0f"},{n:["milky way","milky_way"],u:"1f30c"},{n:["carousel horse","carousel_horse"],u:"1f3a0"},{n:["ferris wheel","ferris_wheel"],u:"1f3a1"},{n:["roller coaster","roller_coaster"],u:"1f3a2"},{n:["barber pole","barber"],u:"1f488"},{n:["circus tent","circus_tent"],u:"1f3aa"},{n:["performing arts","performing_arts"],u:"1f3ad"},{n:["frame_with_picture"],u:"1f5bc-fe0f"},{n:["artist palette","art"],u:"1f3a8"},{n:["slot machine","slot_machine"],u:"1f3b0"},{n:["steam locomotive","steam_locomotive"],u:"1f682"},{n:["railway car","railway_car"],u:"1f683"},{n:["high-speed train","bullettrain_side"],u:"1f684"},{n:["high-speed train with bullet nose","bullettrain_front"],u:"1f685"},{n:["train","train2"],u:"1f686"},{n:["metro"],u:"1f687"},{n:["light rail","light_rail"],u:"1f688"},{n:["station"],u:"1f689"},{n:["tram"],u:"1f68a"},{n:["monorail"],u:"1f69d"},{n:["mountain railway","mountain_railway"],u:"1f69e"},{n:["tram car","train"],u:"1f68b"},{n:["bus"],u:"1f68c"},{n:["oncoming bus","oncoming_bus"],u:"1f68d"},{n:["trolleybus"],u:"1f68e"},{n:["minibus"],u:"1f690"},{n:["ambulance"],u:"1f691"},{n:["fire engine","fire_engine"],u:"1f692"},{n:["police car","police_car"],u:"1f693"},{n:["oncoming police car","oncoming_police_car"],u:"1f694"},{n:["taxi"],u:"1f695"},{n:["oncoming taxi","oncoming_taxi"],u:"1f696"},{n:["automobile","car","red_car"],u:"1f697"},{n:["oncoming automobile","oncoming_automobile"],u:"1f698"},{n:["recreational vehicle","blue_car"],u:"1f699"},{n:["delivery truck","truck"],u:"1f69a"},{n:["articulated lorry","articulated_lorry"],u:"1f69b"},{n:["tractor"],u:"1f69c"},{n:["bicycle","bike"],u:"1f6b2"},{n:["scooter"],u:"1f6f4"},{n:["motor scooter","motor_scooter"],u:"1f6f5"},{n:["bus stop","busstop"],u:"1f68f"},{n:["motorway"],u:"1f6e3-fe0f"},{n:["railway_track"],u:"1f6e4-fe0f"},{n:["fuel pump","fuelpump"],u:"26fd"},{n:["police cars revolving light","rotating_light"],u:"1f6a8"},{n:["horizontal traffic light","traffic_light"],u:"1f6a5"},{n:["vertical traffic light","vertical_traffic_light"],u:"1f6a6"},{n:["construction sign","construction"],u:"1f6a7"},{n:["octagonal sign","octagonal_sign"],u:"1f6d1"},{n:["anchor"],u:"2693"},{n:["sailboat","boat"],u:"26f5"},{n:["canoe"],u:"1f6f6"},{n:["speedboat"],u:"1f6a4"},{n:["passenger_ship"],u:"1f6f3-fe0f"},{n:["ferry"],u:"26f4-fe0f"},{n:["motor_boat"],u:"1f6e5-fe0f"},{n:["ship"],u:"1f6a2"},{n:["airplane"],u:"2708-fe0f"},{n:["small_airplane"],u:"1f6e9-fe0f"},{n:["airplane departure","airplane_departure"],u:"1f6eb"},{n:["airplane arriving","airplane_arriving"],u:"1f6ec"},{n:["seat"],u:"1f4ba"},{n:["helicopter"],u:"1f681"},{n:["suspension railway","suspension_railway"],u:"1f69f"},{n:["mountain cableway","mountain_cableway"],u:"1f6a0"},{n:["aerial tramway","aerial_tramway"],u:"1f6a1"},{n:["satellite"],u:"1f6f0-fe0f"},{n:["rocket"],u:"1f680"},{n:["flying saucer","flying_saucer"],u:"1f6f8"},{n:["bellhop_bell"],u:"1f6ce-fe0f"},{n:["door"],u:"1f6aa"},{n:["bed"],u:"1f6cf-fe0f"},{n:["couch_and_lamp"],u:"1f6cb-fe0f"},{n:["toilet"],u:"1f6bd"},{n:["shower"],u:"1f6bf"},{n:["bathtub"],u:"1f6c1"},{n:["hourglass"],u:"231b"},{n:["hourglass with flowing sand","hourglass_flowing_sand"],u:"23f3"},{n:["watch"],u:"231a"},{n:["alarm clock","alarm_clock"],u:"23f0"},{n:["stopwatch"],u:"23f1-fe0f"},{n:["timer_clock"],u:"23f2-fe0f"},{n:["mantelpiece_clock"],u:"1f570-fe0f"},{n:["clock face twelve oclock","clock12"],u:"1f55b"},{n:["clock face twelve-thirty","clock1230"],u:"1f567"},{n:["clock face one oclock","clock1"],u:"1f550"},{n:["clock face one-thirty","clock130"],u:"1f55c"},{n:["clock face two oclock","clock2"],u:"1f551"},{n:["clock face two-thirty","clock230"],u:"1f55d"},{n:["clock face three oclock","clock3"],u:"1f552"},{n:["clock face three-thirty","clock330"],u:"1f55e"},{n:["clock face four oclock","clock4"],u:"1f553"},{n:["clock face four-thirty","clock430"],u:"1f55f"},{n:["clock face five oclock","clock5"],u:"1f554"},{n:["clock face five-thirty","clock530"],u:"1f560"},{n:["clock face six oclock","clock6"],u:"1f555"},{n:["clock face six-thirty","clock630"],u:"1f561"},{n:["clock face seven oclock","clock7"],u:"1f556"},{n:["clock face seven-thirty","clock730"],u:"1f562"},{n:["clock face eight oclock","clock8"],u:"1f557"},{n:["clock face eight-thirty","clock830"],u:"1f563"},{n:["clock face nine oclock","clock9"],u:"1f558"},{n:["clock face nine-thirty","clock930"],u:"1f564"},{n:["clock face ten oclock","clock10"],u:"1f559"},{n:["clock face ten-thirty","clock1030"],u:"1f565"},{n:["clock face eleven oclock","clock11"],u:"1f55a"},{n:["clock face eleven-thirty","clock1130"],u:"1f566"},{n:["new moon symbol","new_moon"],u:"1f311"},{n:["waxing crescent moon symbol","waxing_crescent_moon"],u:"1f312"},{n:["first quarter moon symbol","first_quarter_moon"],u:"1f313"},{n:["waxing gibbous moon symbol","moon","waxing_gibbous_moon"],u:"1f314"},{n:["full moon symbol","full_moon"],u:"1f315"},{n:["waning gibbous moon symbol","waning_gibbous_moon"],u:"1f316"},{n:["last quarter moon symbol","last_quarter_moon"],u:"1f317"},{n:["waning crescent moon symbol","waning_crescent_moon"],u:"1f318"},{n:["crescent moon","crescent_moon"],u:"1f319"},{n:["new moon with face","new_moon_with_face"],u:"1f31a"},{n:["first quarter moon with face","first_quarter_moon_with_face"],u:"1f31b"},{n:["last quarter moon with face","last_quarter_moon_with_face"],u:"1f31c"},{n:["thermometer"],u:"1f321-fe0f"},{n:["black sun with rays","sunny"],u:"2600-fe0f"},{n:["full moon with face","full_moon_with_face"],u:"1f31d"},{n:["sun with face","sun_with_face"],u:"1f31e"},{n:["white medium star","star"],u:"2b50"},{n:["glowing star","star2"],u:"1f31f"},{n:["shooting star","stars"],u:"1f320"},{n:["cloud"],u:"2601-fe0f"},{n:["sun behind cloud","partly_sunny"],u:"26c5"},{n:["thunder_cloud_and_rain"],u:"26c8-fe0f"},{n:["mostly_sunny","sun_small_cloud"],u:"1f324-fe0f"},{n:["barely_sunny","sun_behind_cloud"],u:"1f325-fe0f"},{n:["partly_sunny_rain","sun_behind_rain_cloud"],u:"1f326-fe0f"},{n:["rain_cloud"],u:"1f327-fe0f"},{n:["snow_cloud"],u:"1f328-fe0f"},{n:["lightning","lightning_cloud"],u:"1f329-fe0f"},{n:["tornado","tornado_cloud"],u:"1f32a-fe0f"},{n:["fog"],u:"1f32b-fe0f"},{n:["wind_blowing_face"],u:"1f32c-fe0f"},{n:["cyclone"],u:"1f300"},{n:["rainbow"],u:"1f308"},{n:["closed umbrella","closed_umbrella"],u:"1f302"},{n:["umbrella"],u:"2602-fe0f"},{n:["umbrella with rain drops","umbrella_with_rain_drops"],u:"2614"},{n:["umbrella_on_ground"],u:"26f1-fe0f"},{n:["high voltage sign","zap"],u:"26a1"},{n:["snowflake"],u:"2744-fe0f"},{n:["snowman"],u:"2603-fe0f"},{n:["snowman without snow","snowman_without_snow"],u:"26c4"},{n:["comet"],u:"2604-fe0f"},{n:["fire"],u:"1f525"},{n:["droplet"],u:"1f4a7"},{n:["water wave","ocean"],u:"1f30a"}],objects:[{n:["speaker with cancellation stroke","mute"],u:"1f507"},{n:["speaker"],u:"1f508"},{n:["speaker with one sound wave","sound"],u:"1f509"},{n:["speaker with three sound waves","loud_sound"],u:"1f50a"},{n:["public address loudspeaker","loudspeaker"],u:"1f4e2"},{n:["cheering megaphone","mega"],u:"1f4e3"},{n:["postal horn","postal_horn"],u:"1f4ef"},{n:["bell"],u:"1f514"},{n:["bell with cancellation stroke","no_bell"],u:"1f515"},{n:["musical score","musical_score"],u:"1f3bc"},{n:["musical note","musical_note"],u:"1f3b5"},{n:["multiple musical notes","notes"],u:"1f3b6"},{n:["studio_microphone"],u:"1f399-fe0f"},{n:["level_slider"],u:"1f39a-fe0f"},{n:["control_knobs"],u:"1f39b-fe0f"},{n:["microphone"],u:"1f3a4"},{n:["headphone","headphones"],u:"1f3a7"},{n:["radio"],u:"1f4fb"},{n:["saxophone"],u:"1f3b7"},{n:["guitar"],u:"1f3b8"},{n:["musical keyboard","musical_keyboard"],u:"1f3b9"},{n:["trumpet"],u:"1f3ba"},{n:["violin"],u:"1f3bb"},{n:["drum with drumsticks","drum_with_drumsticks"],u:"1f941"},{n:["mobile phone","iphone"],u:"1f4f1"},{n:["mobile phone with rightwards arrow at left","calling"],u:"1f4f2"},{n:["black telephone","phone","telephone"],u:"260e-fe0f"},{n:["telephone receiver","telephone_receiver"],u:"1f4de"},{n:["pager"],u:"1f4df"},{n:["fax machine","fax"],u:"1f4e0"},{n:["battery"],u:"1f50b"},{n:["electric plug","electric_plug"],u:"1f50c"},{n:["personal computer","computer"],u:"1f4bb"},{n:["desktop_computer"],u:"1f5a5-fe0f"},{n:["printer"],u:"1f5a8-fe0f"},{n:["keyboard"],u:"2328-fe0f"},{n:["three_button_mouse"],u:"1f5b1-fe0f"},{n:["trackball"],u:"1f5b2-fe0f"},{n:["minidisc"],u:"1f4bd"},{n:["floppy disk","floppy_disk"],u:"1f4be"},{n:["optical disc","cd"],u:"1f4bf"},{n:["dvd"],u:"1f4c0"},{n:["movie camera","movie_camera"],u:"1f3a5"},{n:["film_frames"],u:"1f39e-fe0f"},{n:["film_projector"],u:"1f4fd-fe0f"},{n:["clapper board","clapper"],u:"1f3ac"},{n:["television","tv"],u:"1f4fa"},{n:["camera"],u:"1f4f7"},{n:["camera with flash","camera_with_flash"],u:"1f4f8"},{n:["video camera","video_camera"],u:"1f4f9"},{n:["videocassette","vhs"],u:"1f4fc"},{n:["left-pointing magnifying glass","mag"],u:"1f50d"},{n:["right-pointing magnifying glass","mag_right"],u:"1f50e"},{n:["microscope"],u:"1f52c"},{n:["telescope"],u:"1f52d"},{n:["satellite antenna","satellite_antenna"],u:"1f4e1"},{n:["candle"],u:"1f56f-fe0f"},{n:["electric light bulb","bulb"],u:"1f4a1"},{n:["electric torch","flashlight"],u:"1f526"},{n:["izakaya lantern","izakaya_lantern","lantern"],u:"1f3ee"},{n:["notebook with decorative cover","notebook_with_decorative_cover"],u:"1f4d4"},{n:["closed book","closed_book"],u:"1f4d5"},{n:["open book","book","open_book"],u:"1f4d6"},{n:["green book","green_book"],u:"1f4d7"},{n:["blue book","blue_book"],u:"1f4d8"},{n:["orange book","orange_book"],u:"1f4d9"},{n:["books"],u:"1f4da"},{n:["notebook"],u:"1f4d3"},{n:["ledger"],u:"1f4d2"},{n:["page with curl","page_with_curl"],u:"1f4c3"},{n:["scroll"],u:"1f4dc"},{n:["page facing up","page_facing_up"],u:"1f4c4"},{n:["newspaper"],u:"1f4f0"},{n:["rolled_up_newspaper"],u:"1f5de-fe0f"},{n:["bookmark tabs","bookmark_tabs"],u:"1f4d1"},{n:["bookmark"],u:"1f516"},{n:["label"],u:"1f3f7-fe0f"},{n:["money bag","moneybag"],u:"1f4b0"},{n:["banknote with yen sign","yen"],u:"1f4b4"},{n:["banknote with dollar sign","dollar"],u:"1f4b5"},{n:["banknote with euro sign","euro"],u:"1f4b6"},{n:["banknote with pound sign","pound"],u:"1f4b7"},{n:["money with wings","money_with_wings"],u:"1f4b8"},{n:["credit card","credit_card"],u:"1f4b3"},{n:["chart with upwards trend and yen sign","chart"],u:"1f4b9"},{n:["currency exchange","currency_exchange"],u:"1f4b1"},{n:["heavy dollar sign","heavy_dollar_sign"],u:"1f4b2"},{n:["envelope","email"],u:"2709-fe0f"},{n:["e-mail symbol","e-mail"],u:"1f4e7"},{n:["incoming envelope","incoming_envelope"],u:"1f4e8"},{n:["envelope with downwards arrow above","envelope_with_arrow"],u:"1f4e9"},{n:["outbox tray","outbox_tray"],u:"1f4e4"},{n:["inbox tray","inbox_tray"],u:"1f4e5"},{n:["package"],u:"1f4e6"},{n:["closed mailbox with raised flag","mailbox"],u:"1f4eb"},{n:["closed mailbox with lowered flag","mailbox_closed"],u:"1f4ea"},{n:["open mailbox with raised flag","mailbox_with_mail"],u:"1f4ec"},{n:["open mailbox with lowered flag","mailbox_with_no_mail"],u:"1f4ed"},{n:["postbox"],u:"1f4ee"},{n:["ballot_box_with_ballot"],u:"1f5f3-fe0f"},{n:["pencil","pencil2"],u:"270f-fe0f"},{n:["black nib","black_nib"],u:"2712-fe0f"},{n:["lower_left_fountain_pen"],u:"1f58b-fe0f"},{n:["lower_left_ballpoint_pen"],u:"1f58a-fe0f"},{n:["lower_left_paintbrush"],u:"1f58c-fe0f"},{n:["lower_left_crayon"],u:"1f58d-fe0f"},{n:["memo","pencil"],u:"1f4dd"},{n:["briefcase"],u:"1f4bc"},{n:["file folder","file_folder"],u:"1f4c1"},{n:["open file folder","open_file_folder"],u:"1f4c2"},{n:["card_index_dividers"],u:"1f5c2-fe0f"},{n:["calendar","date"],u:"1f4c5"},{n:["tear-off calendar","calendar"],u:"1f4c6"},{n:["spiral_note_pad"],u:"1f5d2-fe0f"},{n:["spiral_calendar_pad"],u:"1f5d3-fe0f"},{n:["card index","card_index"],u:"1f4c7"},{n:["chart with upwards trend","chart_with_upwards_trend"],u:"1f4c8"},{n:["chart with downwards trend","chart_with_downwards_trend"],u:"1f4c9"},{n:["bar chart","bar_chart"],u:"1f4ca"},{n:["clipboard"],u:"1f4cb"},{n:["pushpin"],u:"1f4cc"},{n:["round pushpin","round_pushpin"],u:"1f4cd"},{n:["paperclip"],u:"1f4ce"},{n:["linked_paperclips"],u:"1f587-fe0f"},{n:["straight ruler","straight_ruler"],u:"1f4cf"},{n:["triangular ruler","triangular_ruler"],u:"1f4d0"},{n:["black scissors","scissors"],u:"2702-fe0f"},{n:["card_file_box"],u:"1f5c3-fe0f"},{n:["file_cabinet"],u:"1f5c4-fe0f"},{n:["wastebasket"],u:"1f5d1-fe0f"},{n:["lock"],u:"1f512"},{n:["open lock","unlock"],u:"1f513"},{n:["lock with ink pen","lock_with_ink_pen"],u:"1f50f"},{n:["closed lock with key","closed_lock_with_key"],u:"1f510"},{n:["key"],u:"1f511"},{n:["old_key"],u:"1f5dd-fe0f"},{n:["hammer"],u:"1f528"},{n:["pick"],u:"26cf-fe0f"},{n:["hammer_and_pick"],u:"2692-fe0f"},{n:["hammer_and_wrench"],u:"1f6e0-fe0f"},{n:["dagger_knife"],u:"1f5e1-fe0f"},{n:["crossed_swords"],u:"2694-fe0f"},{n:["pistol","gun"],u:"1f52b"},{n:["bow and arrow","bow_and_arrow"],u:"1f3f9"},{n:["shield"],u:"1f6e1-fe0f"},{n:["wrench"],u:"1f527"},{n:["nut and bolt","nut_and_bolt"],u:"1f529"},{n:["gear"],u:"2699-fe0f"},{n:["compression"],u:"1f5dc-fe0f"},{n:["alembic"],u:"2697-fe0f"},{n:["scales"],u:"2696-fe0f"},{n:["link symbol","link"],u:"1f517"},{n:["chains"],u:"26d3-fe0f"},{n:["syringe"],u:"1f489"},{n:["pill"],u:"1f48a"},{n:["smoking symbol","smoking"],u:"1f6ac"},{n:["coffin"],u:"26b0-fe0f"},{n:["funeral_urn"],u:"26b1-fe0f"},{n:["moyai"],u:"1f5ff"},{n:["oil_drum"],u:"1f6e2-fe0f"},{n:["crystal ball","crystal_ball"],u:"1f52e"},{n:["shopping trolley","shopping_trolley"],u:"1f6d2"}],symbols:[{n:["automated teller machine","atm"],u:"1f3e7"},{n:["put litter in its place symbol","put_litter_in_its_place"],u:"1f6ae"},{n:["potable water symbol","potable_water"],u:"1f6b0"},{n:["wheelchair symbol","wheelchair"],u:"267f"},{n:["mens symbol","mens"],u:"1f6b9"},{n:["womens symbol","womens"],u:"1f6ba"},{n:["restroom"],u:"1f6bb"},{n:["baby symbol","baby_symbol"],u:"1f6bc"},{n:["water closet","wc"],u:"1f6be"},{n:["passport control","passport_control"],u:"1f6c2"},{n:["customs"],u:"1f6c3"},{n:["baggage claim","baggage_claim"],u:"1f6c4"},{n:["left luggage","left_luggage"],u:"1f6c5"},{n:["warning sign","warning"],u:"26a0-fe0f"},{n:["children crossing","children_crossing"],u:"1f6b8"},{n:["no entry","no_entry"],u:"26d4"},{n:["no entry sign","no_entry_sign"],u:"1f6ab"},{n:["no bicycles","no_bicycles"],u:"1f6b3"},{n:["no smoking symbol","no_smoking"],u:"1f6ad"},{n:["do not litter symbol","do_not_litter"],u:"1f6af"},{n:["non-potable water symbol","non-potable_water"],u:"1f6b1"},{n:["no pedestrians","no_pedestrians"],u:"1f6b7"},{n:["no mobile phones","no_mobile_phones"],u:"1f4f5"},{n:["no one under eighteen symbol","underage"],u:"1f51e"},{n:["radioactive_sign"],u:"2622-fe0f"},{n:["biohazard_sign"],u:"2623-fe0f"},{n:["upwards black arrow","arrow_up"],u:"2b06-fe0f"},{n:["north east arrow","arrow_upper_right"],u:"2197-fe0f"},{n:["black rightwards arrow","arrow_right"],u:"27a1-fe0f"},{n:["south east arrow","arrow_lower_right"],u:"2198-fe0f"},{n:["downwards black arrow","arrow_down"],u:"2b07-fe0f"},{n:["south west arrow","arrow_lower_left"],u:"2199-fe0f"},{n:["leftwards black arrow","arrow_left"],u:"2b05-fe0f"},{n:["north west arrow","arrow_upper_left"],u:"2196-fe0f"},{n:["up down arrow","arrow_up_down"],u:"2195-fe0f"},{n:["left right arrow","left_right_arrow"],u:"2194-fe0f"},{n:["leftwards arrow with hook","leftwards_arrow_with_hook"],u:"21a9-fe0f"},{n:["rightwards arrow with hook","arrow_right_hook"],u:"21aa-fe0f"},{n:["arrow pointing rightwards then curving upwards","arrow_heading_up"],u:"2934-fe0f"},{n:["arrow pointing rightwards then curving downwards","arrow_heading_down"],u:"2935-fe0f"},{n:["clockwise downwards and upwards open circle arrows","arrows_clockwise"],u:"1f503"},{n:["anticlockwise downwards and upwards open circle arrows","arrows_counterclockwise"],u:"1f504"},{n:["back with leftwards arrow above","back"],u:"1f519"},{n:["end with leftwards arrow above","end"],u:"1f51a"},{n:["on with exclamation mark with left right arrow above","on"],u:"1f51b"},{n:["soon with rightwards arrow above","soon"],u:"1f51c"},{n:["top with upwards arrow above","top"],u:"1f51d"},{n:["place of worship","place_of_worship"],u:"1f6d0"},{n:["atom_symbol"],u:"269b-fe0f"},{n:["om_symbol"],u:"1f549-fe0f"},{n:["star_of_david"],u:"2721-fe0f"},{n:["wheel_of_dharma"],u:"2638-fe0f"},{n:["yin_yang"],u:"262f-fe0f"},{n:["latin_cross"],u:"271d-fe0f"},{n:["orthodox_cross"],u:"2626-fe0f"},{n:["star_and_crescent"],u:"262a-fe0f"},{n:["peace_symbol"],u:"262e-fe0f"},{n:["menorah with nine branches","menorah_with_nine_branches"],u:"1f54e"},{n:["six pointed star with middle dot","six_pointed_star"],u:"1f52f"},{n:["aries"],u:"2648"},{n:["taurus"],u:"2649"},{n:["gemini"],u:"264a"},{n:["cancer"],u:"264b"},{n:["leo"],u:"264c"},{n:["virgo"],u:"264d"},{n:["libra"],u:"264e"},{n:["scorpius"],u:"264f"},{n:["sagittarius"],u:"2650"},{n:["capricorn"],u:"2651"},{n:["aquarius"],u:"2652"},{n:["pisces"],u:"2653"},{n:["ophiuchus"],u:"26ce"},{n:["twisted rightwards arrows","twisted_rightwards_arrows"],u:"1f500"},{n:["clockwise rightwards and leftwards open circle arrows","repeat"],u:"1f501"},{n:["clockwise rightwards and leftwards open circle arrows with circled one overlay","repeat_one"],u:"1f502"},{n:["black right-pointing triangle","arrow_forward"],u:"25b6-fe0f"},{n:["black right-pointing double triangle","fast_forward"],u:"23e9"},{n:["black_right_pointing_double_triangle_with_vertical_bar"],u:"23ed-fe0f"},{n:["black_right_pointing_triangle_with_double_vertical_bar"],u:"23ef-fe0f"},{n:["black left-pointing triangle","arrow_backward"],u:"25c0-fe0f"},{n:["black left-pointing double triangle","rewind"],u:"23ea"},{n:["black_left_pointing_double_triangle_with_vertical_bar"],u:"23ee-fe0f"},{n:["up-pointing small red triangle","arrow_up_small"],u:"1f53c"},{n:["black up-pointing double triangle","arrow_double_up"],u:"23eb"},{n:["down-pointing small red triangle","arrow_down_small"],u:"1f53d"},{n:["black down-pointing double triangle","arrow_double_down"],u:"23ec"},{n:["double_vertical_bar"],u:"23f8-fe0f"},{n:["black_square_for_stop"],u:"23f9-fe0f"},{n:["black_circle_for_record"],u:"23fa-fe0f"},{n:["eject"],u:"23cf-fe0f"},{n:["cinema"],u:"1f3a6"},{n:["low brightness symbol","low_brightness"],u:"1f505"},{n:["high brightness symbol","high_brightness"],u:"1f506"},{n:["antenna with bars","signal_strength"],u:"1f4f6"},{n:["vibration mode","vibration_mode"],u:"1f4f3"},{n:["mobile phone off","mobile_phone_off"],u:"1f4f4"},{n:["female_sign"],u:"2640-fe0f"},{n:["male_sign"],u:"2642-fe0f"},{n:["medical_symbol","staff_of_aesculapius"],u:"2695-fe0f"},{n:["black universal recycling symbol","recycle"],u:"267b-fe0f"},{n:["fleur_de_lis"],u:"269c-fe0f"},{n:["trident emblem","trident"],u:"1f531"},{n:["name badge","name_badge"],u:"1f4db"},{n:["japanese symbol for beginner","beginner"],u:"1f530"},{n:["heavy large circle","o"],u:"2b55"},{n:["white heavy check mark","white_check_mark"],u:"2705"},{n:["ballot box with check","ballot_box_with_check"],u:"2611-fe0f"},{n:["heavy check mark","heavy_check_mark"],u:"2714-fe0f"},{n:["heavy multiplication x","heavy_multiplication_x"],u:"2716-fe0f"},{n:["cross mark","x"],u:"274c"},{n:["negative squared cross mark","negative_squared_cross_mark"],u:"274e"},{n:["heavy plus sign","heavy_plus_sign"],u:"2795"},{n:["heavy minus sign","heavy_minus_sign"],u:"2796"},{n:["heavy division sign","heavy_division_sign"],u:"2797"},{n:["curly loop","curly_loop"],u:"27b0"},{n:["double curly loop","loop"],u:"27bf"},{n:["part alternation mark","part_alternation_mark"],u:"303d-fe0f"},{n:["eight spoked asterisk","eight_spoked_asterisk"],u:"2733-fe0f"},{n:["eight pointed black star","eight_pointed_black_star"],u:"2734-fe0f"},{n:["sparkle"],u:"2747-fe0f"},{n:["double exclamation mark","bangbang"],u:"203c-fe0f"},{n:["exclamation question mark","interrobang"],u:"2049-fe0f"},{n:["black question mark ornament","question"],u:"2753"},{n:["white question mark ornament","grey_question"],u:"2754"},{n:["white exclamation mark ornament","grey_exclamation"],u:"2755"},{n:["heavy exclamation mark symbol","exclamation","heavy_exclamation_mark"],u:"2757"},{n:["wavy dash","wavy_dash"],u:"3030-fe0f"},{n:["copyright sign","copyright"],u:"00a9-fe0f"},{n:["registered sign","registered"],u:"00ae-fe0f"},{n:["trade mark sign","tm"],u:"2122-fe0f"},{n:["hash key","hash"],u:"0023-fe0f-20e3"},{n:["keycap_star"],u:"002a-fe0f-20e3"},{n:["keycap 0","zero"],u:"0030-fe0f-20e3"},{n:["keycap 1","one"],u:"0031-fe0f-20e3"},{n:["keycap 2","two"],u:"0032-fe0f-20e3"},{n:["keycap 3","three"],u:"0033-fe0f-20e3"},{n:["keycap 4","four"],u:"0034-fe0f-20e3"},{n:["keycap 5","five"],u:"0035-fe0f-20e3"},{n:["keycap 6","six"],u:"0036-fe0f-20e3"},{n:["keycap 7","seven"],u:"0037-fe0f-20e3"},{n:["keycap 8","eight"],u:"0038-fe0f-20e3"},{n:["keycap 9","nine"],u:"0039-fe0f-20e3"},{n:["keycap ten","keycap_ten"],u:"1f51f"},{n:["hundred points symbol","100"],u:"1f4af"},{n:["input symbol for latin capital letters","capital_abcd"],u:"1f520"},{n:["input symbol for latin small letters","abcd"],u:"1f521"},{n:["input symbol for numbers","1234"],u:"1f522"},{n:["input symbol for symbols","symbols"],u:"1f523"},{n:["input symbol for latin letters","abc"],u:"1f524"},{n:["negative squared latin capital letter a","a"],u:"1f170-fe0f"},{n:["negative squared ab","ab"],u:"1f18e"},{n:["negative squared latin capital letter b","b"],u:"1f171-fe0f"},{n:["squared cl","cl"],u:"1f191"},{n:["squared cool","cool"],u:"1f192"},{n:["squared free","free"],u:"1f193"},{n:["information source","information_source"],u:"2139-fe0f"},{n:["squared id","id"],u:"1f194"},{n:["circled latin capital letter m","m"],u:"24c2-fe0f"},{n:["squared new","new"],u:"1f195"},{n:["squared ng","ng"],u:"1f196"},{n:["negative squared latin capital letter o","o2"],u:"1f17e-fe0f"},{n:["squared ok","ok"],u:"1f197"},{n:["negative squared latin capital letter p","parking"],u:"1f17f-fe0f"},{n:["squared sos","sos"],u:"1f198"},{n:["squared up with exclamation mark","up"],u:"1f199"},{n:["squared vs","vs"],u:"1f19a"},{n:["squared katakana koko","koko"],u:"1f201"},{n:["squared katakana sa","sa"],u:"1f202-fe0f"},{n:["squared cjk unified ideograph-6708","u6708"],u:"1f237-fe0f"},{n:["squared cjk unified ideograph-6709","u6709"],u:"1f236"},{n:["squared cjk unified ideograph-6307","u6307"],u:"1f22f"},{n:["circled ideograph advantage","ideograph_advantage"],u:"1f250"},{n:["squared cjk unified ideograph-5272","u5272"],u:"1f239"},{n:["squared cjk unified ideograph-7121","u7121"],u:"1f21a"},{n:["squared cjk unified ideograph-7981","u7981"],u:"1f232"},{n:["circled ideograph accept","accept"],u:"1f251"},{n:["squared cjk unified ideograph-7533","u7533"],u:"1f238"},{n:["squared cjk unified ideograph-5408","u5408"],u:"1f234"},{n:["squared cjk unified ideograph-7a7a","u7a7a"],u:"1f233"},{n:["circled ideograph congratulation","congratulations"],u:"3297-fe0f"},{n:["circled ideograph secret","secret"],u:"3299-fe0f"},{n:["squared cjk unified ideograph-55b6","u55b6"],u:"1f23a"},{n:["squared cjk unified ideograph-6e80","u6e80"],u:"1f235"},{n:["black small square","black_small_square"],u:"25aa-fe0f"},{n:["white small square","white_small_square"],u:"25ab-fe0f"},{n:["white medium square","white_medium_square"],u:"25fb-fe0f"},{n:["black medium square","black_medium_square"],u:"25fc-fe0f"},{n:["white medium small square","white_medium_small_square"],u:"25fd"},{n:["black medium small square","black_medium_small_square"],u:"25fe"},{n:["black large square","black_large_square"],u:"2b1b"},{n:["white large square","white_large_square"],u:"2b1c"},{n:["large orange diamond","large_orange_diamond"],u:"1f536"},{n:["large blue diamond","large_blue_diamond"],u:"1f537"},{n:["small orange diamond","small_orange_diamond"],u:"1f538"},{n:["small blue diamond","small_blue_diamond"],u:"1f539"},{n:["up-pointing red triangle","small_red_triangle"],u:"1f53a"},{n:["down-pointing red triangle","small_red_triangle_down"],u:"1f53b"},{n:["diamond shape with a dot inside","diamond_shape_with_a_dot_inside"],u:"1f4a0"},{n:["radio button","radio_button"],u:"1f518"},{n:["black square button","black_square_button"],u:"1f532"},{n:["white square button","white_square_button"],u:"1f533"},{n:["medium white circle","white_circle"],u:"26aa"},{n:["medium black circle","black_circle"],u:"26ab"},{n:["large red circle","red_circle"],u:"1f534"},{n:["large blue circle","large_blue_circle"],u:"1f535"}],flags:[{n:["chequered flag","checkered_flag"],u:"1f3c1"},{n:["triangular flag on post","triangular_flag_on_post"],u:"1f6a9"},{n:["crossed flags","crossed_flags"],u:"1f38c"},{n:["waving black flag","waving_black_flag"],u:"1f3f4"},{n:["waving_white_flag"],u:"1f3f3-fe0f"},{n:["rainbow-flag"],u:"1f3f3-fe0f-200d-1f308"},{n:["ascension island flag","flag-ac"],u:"1f1e6-1f1e8"},{n:["andorra flag","flag-ad"],u:"1f1e6-1f1e9"},{n:["united arab emirates flag","flag-ae"],u:"1f1e6-1f1ea"},{n:["afghanistan flag","flag-af"],u:"1f1e6-1f1eb"},{n:["antigua & barbuda flag","flag-ag"],u:"1f1e6-1f1ec"},{n:["anguilla flag","flag-ai"],u:"1f1e6-1f1ee"},{n:["albania flag","flag-al"],u:"1f1e6-1f1f1"},{n:["armenia flag","flag-am"],u:"1f1e6-1f1f2"},{n:["angola flag","flag-ao"],u:"1f1e6-1f1f4"},{n:["antarctica flag","flag-aq"],u:"1f1e6-1f1f6"},{n:["argentina flag","flag-ar"],u:"1f1e6-1f1f7"},{n:["american samoa flag","flag-as"],u:"1f1e6-1f1f8"},{n:["austria flag","flag-at"],u:"1f1e6-1f1f9"},{n:["australia flag","flag-au"],u:"1f1e6-1f1fa"},{n:["aruba flag","flag-aw"],u:"1f1e6-1f1fc"},{n:["åland islands flag","flag-ax"],u:"1f1e6-1f1fd"},{n:["azerbaijan flag","flag-az"],u:"1f1e6-1f1ff"},{n:["bosnia & herzegovina flag","flag-ba"],u:"1f1e7-1f1e6"},{n:["barbados flag","flag-bb"],u:"1f1e7-1f1e7"},{n:["bangladesh flag","flag-bd"],u:"1f1e7-1f1e9"},{n:["belgium flag","flag-be"],u:"1f1e7-1f1ea"},{n:["burkina faso flag","flag-bf"],u:"1f1e7-1f1eb"},{n:["bulgaria flag","flag-bg"],u:"1f1e7-1f1ec"},{n:["bahrain flag","flag-bh"],u:"1f1e7-1f1ed"},{n:["burundi flag","flag-bi"],u:"1f1e7-1f1ee"},{n:["benin flag","flag-bj"],u:"1f1e7-1f1ef"},{n:["st. barthélemy flag","flag-bl"],u:"1f1e7-1f1f1"},{n:["bermuda flag","flag-bm"],u:"1f1e7-1f1f2"},{n:["brunei flag","flag-bn"],u:"1f1e7-1f1f3"},{n:["bolivia flag","flag-bo"],u:"1f1e7-1f1f4"},{n:["caribbean netherlands flag","flag-bq"],u:"1f1e7-1f1f6"},{n:["brazil flag","flag-br"],u:"1f1e7-1f1f7"},{n:["bahamas flag","flag-bs"],u:"1f1e7-1f1f8"},{n:["bhutan flag","flag-bt"],u:"1f1e7-1f1f9"},{n:["bouvet island flag","flag-bv"],u:"1f1e7-1f1fb"},{n:["botswana flag","flag-bw"],u:"1f1e7-1f1fc"},{n:["belarus flag","flag-by"],u:"1f1e7-1f1fe"},{n:["belize flag","flag-bz"],u:"1f1e7-1f1ff"},{n:["canada flag","flag-ca"],u:"1f1e8-1f1e6"},{n:["cocos (keeling) islands flag","flag-cc"],u:"1f1e8-1f1e8"},{n:["congo - kinshasa flag","flag-cd"],u:"1f1e8-1f1e9"},{n:["central african republic flag","flag-cf"],u:"1f1e8-1f1eb"},{n:["congo - brazzaville flag","flag-cg"],u:"1f1e8-1f1ec"},{n:["switzerland flag","flag-ch"],u:"1f1e8-1f1ed"},{n:["côte d’ivoire flag","flag-ci"],u:"1f1e8-1f1ee"},{n:["cook islands flag","flag-ck"],u:"1f1e8-1f1f0"},{n:["chile flag","flag-cl"],u:"1f1e8-1f1f1"},{n:["cameroon flag","flag-cm"],u:"1f1e8-1f1f2"},{n:["china flag","cn","flag-cn"],u:"1f1e8-1f1f3"},{n:["colombia flag","flag-co"],u:"1f1e8-1f1f4"},{n:["clipperton island flag","flag-cp"],u:"1f1e8-1f1f5"},{n:["costa rica flag","flag-cr"],u:"1f1e8-1f1f7"},{n:["cuba flag","flag-cu"],u:"1f1e8-1f1fa"},{n:["cape verde flag","flag-cv"],u:"1f1e8-1f1fb"},{n:["curaçao flag","flag-cw"],u:"1f1e8-1f1fc"},{n:["christmas island flag","flag-cx"],u:"1f1e8-1f1fd"},{n:["cyprus flag","flag-cy"],u:"1f1e8-1f1fe"},{n:["czechia flag","flag-cz"],u:"1f1e8-1f1ff"},{n:["germany flag","de","flag-de"],u:"1f1e9-1f1ea"},{n:["diego garcia flag","flag-dg"],u:"1f1e9-1f1ec"},{n:["djibouti flag","flag-dj"],u:"1f1e9-1f1ef"},{n:["denmark flag","flag-dk"],u:"1f1e9-1f1f0"},{n:["dominica flag","flag-dm"],u:"1f1e9-1f1f2"},{n:["dominican republic flag","flag-do"],u:"1f1e9-1f1f4"},{n:["algeria flag","flag-dz"],u:"1f1e9-1f1ff"},{n:["ceuta & melilla flag","flag-ea"],u:"1f1ea-1f1e6"},{n:["ecuador flag","flag-ec"],u:"1f1ea-1f1e8"},{n:["estonia flag","flag-ee"],u:"1f1ea-1f1ea"},{n:["egypt flag","flag-eg"],u:"1f1ea-1f1ec"},{n:["western sahara flag","flag-eh"],u:"1f1ea-1f1ed"},{n:["eritrea flag","flag-er"],u:"1f1ea-1f1f7"},{n:["spain flag","es","flag-es"],u:"1f1ea-1f1f8"},{n:["ethiopia flag","flag-et"],u:"1f1ea-1f1f9"},{n:["european union flag","flag-eu"],u:"1f1ea-1f1fa"},{n:["finland flag","flag-fi"],u:"1f1eb-1f1ee"},{n:["fiji flag","flag-fj"],u:"1f1eb-1f1ef"},{n:["falkland islands flag","flag-fk"],u:"1f1eb-1f1f0"},{n:["micronesia flag","flag-fm"],u:"1f1eb-1f1f2"},{n:["faroe islands flag","flag-fo"],u:"1f1eb-1f1f4"},{n:["france flag","fr","flag-fr"],u:"1f1eb-1f1f7"},{n:["gabon flag","flag-ga"],u:"1f1ec-1f1e6"},{n:["united kingdom flag","gb","uk","flag-gb"],u:"1f1ec-1f1e7"},{n:["grenada flag","flag-gd"],u:"1f1ec-1f1e9"},{n:["georgia flag","flag-ge"],u:"1f1ec-1f1ea"},{n:["french guiana flag","flag-gf"],u:"1f1ec-1f1eb"},{n:["guernsey flag","flag-gg"],u:"1f1ec-1f1ec"},{n:["ghana flag","flag-gh"],u:"1f1ec-1f1ed"},{n:["gibraltar flag","flag-gi"],u:"1f1ec-1f1ee"},{n:["greenland flag","flag-gl"],u:"1f1ec-1f1f1"},{n:["gambia flag","flag-gm"],u:"1f1ec-1f1f2"},{n:["guinea flag","flag-gn"],u:"1f1ec-1f1f3"},{n:["guadeloupe flag","flag-gp"],u:"1f1ec-1f1f5"},{n:["equatorial guinea flag","flag-gq"],u:"1f1ec-1f1f6"},{n:["greece flag","flag-gr"],u:"1f1ec-1f1f7"},{n:["south georgia & south sandwich islands flag","flag-gs"],u:"1f1ec-1f1f8"},{n:["guatemala flag","flag-gt"],u:"1f1ec-1f1f9"},{n:["guam flag","flag-gu"],u:"1f1ec-1f1fa"},{n:["guinea-bissau flag","flag-gw"],u:"1f1ec-1f1fc"},{n:["guyana flag","flag-gy"],u:"1f1ec-1f1fe"},{n:["hong kong sar china flag","flag-hk"],u:"1f1ed-1f1f0"},{n:["heard & mcdonald islands flag","flag-hm"],u:"1f1ed-1f1f2"},{n:["honduras flag","flag-hn"],u:"1f1ed-1f1f3"},{n:["croatia flag","flag-hr"],u:"1f1ed-1f1f7"},{n:["haiti flag","flag-ht"],u:"1f1ed-1f1f9"},{n:["hungary flag","flag-hu"],u:"1f1ed-1f1fa"},{n:["canary islands flag","flag-ic"],u:"1f1ee-1f1e8"},{n:["indonesia flag","flag-id"],u:"1f1ee-1f1e9"},{n:["ireland flag","flag-ie"],u:"1f1ee-1f1ea"},{n:["israel flag","flag-il"],u:"1f1ee-1f1f1"},{n:["isle of man flag","flag-im"],u:"1f1ee-1f1f2"},{n:["india flag","flag-in"],u:"1f1ee-1f1f3"},{n:["british indian ocean territory flag","flag-io"],u:"1f1ee-1f1f4"},{n:["iraq flag","flag-iq"],u:"1f1ee-1f1f6"},{n:["iran flag","flag-ir"],u:"1f1ee-1f1f7"},{n:["iceland flag","flag-is"],u:"1f1ee-1f1f8"},{n:["italy flag","it","flag-it"],u:"1f1ee-1f1f9"},{n:["jersey flag","flag-je"],u:"1f1ef-1f1ea"},{n:["jamaica flag","flag-jm"],u:"1f1ef-1f1f2"},{n:["jordan flag","flag-jo"],u:"1f1ef-1f1f4"},{n:["japan flag","jp","flag-jp"],u:"1f1ef-1f1f5"},{n:["kenya flag","flag-ke"],u:"1f1f0-1f1ea"},{n:["kyrgyzstan flag","flag-kg"],u:"1f1f0-1f1ec"},{n:["cambodia flag","flag-kh"],u:"1f1f0-1f1ed"},{n:["kiribati flag","flag-ki"],u:"1f1f0-1f1ee"},{n:["comoros flag","flag-km"],u:"1f1f0-1f1f2"},{n:["st. kitts & nevis flag","flag-kn"],u:"1f1f0-1f1f3"},{n:["north korea flag","flag-kp"],u:"1f1f0-1f1f5"},{n:["south korea flag","kr","flag-kr"],u:"1f1f0-1f1f7"},{n:["kuwait flag","flag-kw"],u:"1f1f0-1f1fc"},{n:["cayman islands flag","flag-ky"],u:"1f1f0-1f1fe"},{n:["kazakhstan flag","flag-kz"],u:"1f1f0-1f1ff"},{n:["laos flag","flag-la"],u:"1f1f1-1f1e6"},{n:["lebanon flag","flag-lb"],u:"1f1f1-1f1e7"},{n:["st. lucia flag","flag-lc"],u:"1f1f1-1f1e8"},{n:["liechtenstein flag","flag-li"],u:"1f1f1-1f1ee"},{n:["sri lanka flag","flag-lk"],u:"1f1f1-1f1f0"},{n:["liberia flag","flag-lr"],u:"1f1f1-1f1f7"},{n:["lesotho flag","flag-ls"],u:"1f1f1-1f1f8"},{n:["lithuania flag","flag-lt"],u:"1f1f1-1f1f9"},{n:["luxembourg flag","flag-lu"],u:"1f1f1-1f1fa"},{n:["latvia flag","flag-lv"],u:"1f1f1-1f1fb"},{n:["libya flag","flag-ly"],u:"1f1f1-1f1fe"},{n:["morocco flag","flag-ma"],u:"1f1f2-1f1e6"},{n:["monaco flag","flag-mc"],u:"1f1f2-1f1e8"},{n:["moldova flag","flag-md"],u:"1f1f2-1f1e9"},{n:["montenegro flag","flag-me"],u:"1f1f2-1f1ea"},{n:["st. martin flag","flag-mf"],u:"1f1f2-1f1eb"},{n:["madagascar flag","flag-mg"],u:"1f1f2-1f1ec"},{n:["marshall islands flag","flag-mh"],u:"1f1f2-1f1ed"},{n:["macedonia flag","flag-mk"],u:"1f1f2-1f1f0"},{n:["mali flag","flag-ml"],u:"1f1f2-1f1f1"},{n:["myanmar (burma) flag","flag-mm"],u:"1f1f2-1f1f2"},{n:["mongolia flag","flag-mn"],u:"1f1f2-1f1f3"},{n:["macau sar china flag","flag-mo"],u:"1f1f2-1f1f4"},{n:["northern mariana islands flag","flag-mp"],u:"1f1f2-1f1f5"},{n:["martinique flag","flag-mq"],u:"1f1f2-1f1f6"},{n:["mauritania flag","flag-mr"],u:"1f1f2-1f1f7"},{n:["montserrat flag","flag-ms"],u:"1f1f2-1f1f8"},{n:["malta flag","flag-mt"],u:"1f1f2-1f1f9"},{n:["mauritius flag","flag-mu"],u:"1f1f2-1f1fa"},{n:["maldives flag","flag-mv"],u:"1f1f2-1f1fb"},{n:["malawi flag","flag-mw"],u:"1f1f2-1f1fc"},{n:["mexico flag","flag-mx"],u:"1f1f2-1f1fd"},{n:["malaysia flag","flag-my"],u:"1f1f2-1f1fe"},{n:["mozambique flag","flag-mz"],u:"1f1f2-1f1ff"},{n:["namibia flag","flag-na"],u:"1f1f3-1f1e6"},{n:["new caledonia flag","flag-nc"],u:"1f1f3-1f1e8"},{n:["niger flag","flag-ne"],u:"1f1f3-1f1ea"},{n:["norfolk island flag","flag-nf"],u:"1f1f3-1f1eb"},{n:["nigeria flag","flag-ng"],u:"1f1f3-1f1ec"},{n:["nicaragua flag","flag-ni"],u:"1f1f3-1f1ee"},{n:["netherlands flag","flag-nl"],u:"1f1f3-1f1f1"},{n:["norway flag","flag-no"],u:"1f1f3-1f1f4"},{n:["nepal flag","flag-np"],u:"1f1f3-1f1f5"},{n:["nauru flag","flag-nr"],u:"1f1f3-1f1f7"},{n:["niue flag","flag-nu"],u:"1f1f3-1f1fa"},{n:["new zealand flag","flag-nz"],u:"1f1f3-1f1ff"},{n:["oman flag","flag-om"],u:"1f1f4-1f1f2"},{n:["panama flag","flag-pa"],u:"1f1f5-1f1e6"},{n:["peru flag","flag-pe"],u:"1f1f5-1f1ea"},{n:["french polynesia flag","flag-pf"],u:"1f1f5-1f1eb"},{n:["papua new guinea flag","flag-pg"],u:"1f1f5-1f1ec"},{n:["philippines flag","flag-ph"],u:"1f1f5-1f1ed"},{n:["pakistan flag","flag-pk"],u:"1f1f5-1f1f0"},{n:["poland flag","flag-pl"],u:"1f1f5-1f1f1"},{n:["st. pierre & miquelon flag","flag-pm"],u:"1f1f5-1f1f2"},{n:["pitcairn islands flag","flag-pn"],u:"1f1f5-1f1f3"},{n:["puerto rico flag","flag-pr"],u:"1f1f5-1f1f7"},{n:["palestinian territories flag","flag-ps"],u:"1f1f5-1f1f8"},{n:["portugal flag","flag-pt"],u:"1f1f5-1f1f9"},{n:["palau flag","flag-pw"],u:"1f1f5-1f1fc"},{n:["paraguay flag","flag-py"],u:"1f1f5-1f1fe"},{n:["qatar flag","flag-qa"],u:"1f1f6-1f1e6"},{n:["réunion flag","flag-re"],u:"1f1f7-1f1ea"},{n:["romania flag","flag-ro"],u:"1f1f7-1f1f4"},{n:["serbia flag","flag-rs"],u:"1f1f7-1f1f8"},{n:["russia flag","ru","flag-ru"],u:"1f1f7-1f1fa"},{n:["rwanda flag","flag-rw"],u:"1f1f7-1f1fc"},{n:["saudi arabia flag","flag-sa"],u:"1f1f8-1f1e6"},{n:["solomon islands flag","flag-sb"],u:"1f1f8-1f1e7"},{n:["seychelles flag","flag-sc"],u:"1f1f8-1f1e8"},{n:["sudan flag","flag-sd"],u:"1f1f8-1f1e9"},{n:["sweden flag","flag-se"],u:"1f1f8-1f1ea"},{n:["singapore flag","flag-sg"],u:"1f1f8-1f1ec"},{n:["st. helena flag","flag-sh"],u:"1f1f8-1f1ed"},{n:["slovenia flag","flag-si"],u:"1f1f8-1f1ee"},{n:["svalbard & jan mayen flag","flag-sj"],u:"1f1f8-1f1ef"},{n:["slovakia flag","flag-sk"],u:"1f1f8-1f1f0"},{n:["sierra leone flag","flag-sl"],u:"1f1f8-1f1f1"},{n:["san marino flag","flag-sm"],u:"1f1f8-1f1f2"},{n:["senegal flag","flag-sn"],u:"1f1f8-1f1f3"},{n:["somalia flag","flag-so"],u:"1f1f8-1f1f4"},{n:["suriname flag","flag-sr"],u:"1f1f8-1f1f7"},{n:["south sudan flag","flag-ss"],u:"1f1f8-1f1f8"},{n:["são tomé & príncipe flag","flag-st"],u:"1f1f8-1f1f9"},{n:["el salvador flag","flag-sv"],u:"1f1f8-1f1fb"},{n:["sint maarten flag","flag-sx"],u:"1f1f8-1f1fd"},{n:["syria flag","flag-sy"],u:"1f1f8-1f1fe"},{n:["swaziland flag","flag-sz"],u:"1f1f8-1f1ff"},{n:["tristan da cunha flag","flag-ta"],u:"1f1f9-1f1e6"},{n:["turks & caicos islands flag","flag-tc"],u:"1f1f9-1f1e8"},{n:["chad flag","flag-td"],u:"1f1f9-1f1e9"},{n:["french southern territories flag","flag-tf"],u:"1f1f9-1f1eb"},{n:["togo flag","flag-tg"],u:"1f1f9-1f1ec"},{n:["thailand flag","flag-th"],u:"1f1f9-1f1ed"},{n:["tajikistan flag","flag-tj"],u:"1f1f9-1f1ef"},{n:["tokelau flag","flag-tk"],u:"1f1f9-1f1f0"},{n:["timor-leste flag","flag-tl"],u:"1f1f9-1f1f1"},{n:["turkmenistan flag","flag-tm"],u:"1f1f9-1f1f2"},{n:["tunisia flag","flag-tn"],u:"1f1f9-1f1f3"},{n:["tonga flag","flag-to"],u:"1f1f9-1f1f4"},{n:["turkey flag","flag-tr"],u:"1f1f9-1f1f7"},{n:["trinidad & tobago flag","flag-tt"],u:"1f1f9-1f1f9"},{n:["tuvalu flag","flag-tv"],u:"1f1f9-1f1fb"},{n:["taiwan flag","flag-tw"],u:"1f1f9-1f1fc"},{n:["tanzania flag","flag-tz"],u:"1f1f9-1f1ff"},{n:["ukraine flag","flag-ua"],u:"1f1fa-1f1e6"},{n:["uganda flag","flag-ug"],u:"1f1fa-1f1ec"},{n:["u.s. outlying islands flag","flag-um"],u:"1f1fa-1f1f2"},{n:["united nations flag","flag-un"],u:"1f1fa-1f1f3"},{n:["united states flag","us","flag-us"],u:"1f1fa-1f1f8"},{n:["uruguay flag","flag-uy"],u:"1f1fa-1f1fe"},{n:["uzbekistan flag","flag-uz"],u:"1f1fa-1f1ff"},{n:["vatican city flag","flag-va"],u:"1f1fb-1f1e6"},{n:["st. vincent & grenadines flag","flag-vc"],u:"1f1fb-1f1e8"},{n:["venezuela flag","flag-ve"],u:"1f1fb-1f1ea"},{n:["british virgin islands flag","flag-vg"],u:"1f1fb-1f1ec"},{n:["u.s. virgin islands flag","flag-vi"],u:"1f1fb-1f1ee"},{n:["vietnam flag","flag-vn"],u:"1f1fb-1f1f3"},{n:["vanuatu flag","flag-vu"],u:"1f1fb-1f1fa"},{n:["wallis & futuna flag","flag-wf"],u:"1f1fc-1f1eb"},{n:["samoa flag","flag-ws"],u:"1f1fc-1f1f8"},{n:["kosovo flag","flag-xk"],u:"1f1fd-1f1f0"},{n:["yemen flag","flag-ye"],u:"1f1fe-1f1ea"},{n:["mayotte flag","flag-yt"],u:"1f1fe-1f1f9"},{n:["south africa flag","flag-za"],u:"1f1ff-1f1e6"},{n:["zambia flag","flag-zm"],u:"1f1ff-1f1f2"},{n:["zimbabwe flag","flag-zw"],u:"1f1ff-1f1fc"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f"}]},aJ=[{key:"recent",title:"Recently Used",u:"1f551"},{key:"smileys_people",title:"Smiles & People",u:"1f600"},{key:"animals_nature",title:"Animals & Nature",u:"1F431"},{key:"food_drink",title:"Food & Drink",u:"2615"},{key:"activities",title:"Activities",u:"26BD"},{key:"travel_places",title:"Travel & Places",u:"1F697"},{key:"objects",title:"Objects",u:"1F4A1"},{key:"symbols",title:"Symbols",u:"1f4af"},{key:"flags",title:"Flags",u:"1f3f3-fe0f"}];const Q$g=(e,g)=>g.some(I=>e instanceof I);let dJ,cJ;function U$g(){return dJ||(dJ=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function E$g(){return cJ||(cJ=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const rJ=new WeakMap,If=new WeakMap,mJ=new WeakMap,ef=new WeakMap,Cf=new WeakMap;function P$g(e){const g=new Promise((I,C)=>{const t=()=>{e.removeEventListener("success",i),e.removeEventListener("error",A)},i=()=>{I(Ro(e.result)),t()},A=()=>{C(e.error),t()};e.addEventListener("success",i),e.addEventListener("error",A)});return g.then(I=>{I instanceof IDBCursor&&rJ.set(I,e)}).catch(()=>{}),Cf.set(g,e),g}function _$g(e){if(If.has(e))return;const g=new Promise((I,C)=>{const t=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",A),e.removeEventListener("abort",A)},i=()=>{I(),t()},A=()=>{C(e.error||new DOMException("AbortError","AbortError")),t()};e.addEventListener("complete",i),e.addEventListener("error",A),e.addEventListener("abort",A)});If.set(e,g)}let tf={get(e,g,I){if(e instanceof IDBTransaction){if(g==="done")return If.get(e);if(g==="objectStoreNames")return e.objectStoreNames||mJ.get(e);if(g==="store")return I.objectStoreNames[1]?void 0:I.objectStore(I.objectStoreNames[0])}return Ro(e[g])},set(e,g,I){return e[g]=I,!0},has(e,g){return e instanceof IDBTransaction&&(g==="done"||g==="store")?!0:g in e}};function $$g(e){tf=e(tf)}function q$g(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(g,...I){const C=e.call(Af(this),g,...I);return mJ.set(C,g.sort?g.sort():[g]),Ro(C)}:E$g().includes(e)?function(...g){return e.apply(Af(this),g),Ro(rJ.get(this))}:function(...g){return Ro(e.apply(Af(this),g))}}function gqg(e){return typeof e=="function"?q$g(e):(e instanceof IDBTransaction&&_$g(e),Q$g(e,U$g())?new Proxy(e,tf):e)}function Ro(e){if(e instanceof IDBRequest)return P$g(e);if(ef.has(e))return ef.get(e);const g=gqg(e);return g!==e&&(ef.set(e,g),Cf.set(g,e)),g}const Af=e=>Cf.get(e);function nf(e,g,{blocked:I,upgrade:C,blocking:t,terminated:i}={}){const A=indexedDB.open(e,g),n=Ro(A);return C&&A.addEventListener("upgradeneeded",l=>{C(Ro(A.result),l.oldVersion,l.newVersion,Ro(A.transaction),l)}),I&&A.addEventListener("blocked",l=>I(l.oldVersion,l.newVersion,l)),n.then(l=>{i&&l.addEventListener("close",()=>i()),t&&l.addEventListener("versionchange",o=>t(o.oldVersion,o.newVersion,o))}).catch(()=>{}),n}const Iqg=["get","getKey","getAll","getAllKeys","count"],eqg=["put","add","delete","clear"],lf=new Map;function uJ(e,g){if(!(e instanceof IDBDatabase&&!(g in e)&&typeof g=="string"))return;if(lf.get(g))return lf.get(g);const I=g.replace(/FromIndex$/,""),C=g!==I,t=eqg.includes(I);if(!(I in(C?IDBIndex:IDBObjectStore).prototype)||!(t||Iqg.includes(I)))return;const i=async function(A,...n){const l=this.transaction(A,t?"readwrite":"readonly");let o=l.store;return C&&(o=o.index(n.shift())),(await Promise.all([o[I](...n),t&&l.done]))[0]};return lf.set(g,i),i}$$g(e=>({...e,get:(g,I,C)=>uJ(g,I)||e.get(g,I,C),has:(g,I)=>!!uJ(g,I)||e.has(g,I)}));const sf="EMJ",wm="emojis",of=3;async function Cqg(){(await nf(sf,of,{upgrade(g,I){g.objectStoreNames.contains(wm)||g.createObjectStore(wm,{keyPath:"id",autoIncrement:!0}).createIndex("id","id",{unique:!0})}})).close()}Cqg();const tqg={native:!1,hideSearch:!0,hideGroupIcons:!1,hideGroupNames:!1,staticTexts:{},disabledGroups:[],groupNames:{},displayRecent:!1,additionalGroups:{},groupOrder:[],groupIcons:{}};async function iqg(){return await(await nf(sf,of)).transaction(wm,"readonly").objectStore(wm).getAll()}function Aqg(){const e=s.reactive({search:"",emoji:T$g,activeGroup:"",skinTone:TB,options:tqg,additionalGroups:{},recent:[],get emojis(){return{recent:this.recent,...this.options.additionalGroups,...O$g}},get disabled(){let d=Array.isArray(this.options.disabledGroups)?this.options.disabledGroups:[];return this.options.displayRecent||(d=["recent",...d]),d},get groups(){return aJ.filter(d=>!this.disabled.includes(d.key))},get orderedGroupKeys(){const d=[...this.options.groupOrder,...Object.keys(this.options.additionalGroups),...aJ.map(m=>m.key)];return[...new Set(d)].filter(m=>!this.disabled.includes(m))}});function g(){e.options.displayRecent&&C()}async function I(){var d;let m=await iqg();return Array.isArray(m)&&m.length?m=JSON.parse(((d=m[0])==null?void 0:d.value)||""):m=[],m}function C(){I().then(d=>{e.recent=d,o()})}const t=d=>{e.search=d},i=d=>{e.emoji=d},A=d=>{e.activeGroup=d},n=(d=TB)=>{e.skinTone=d},l=d=>{e.options=Object.assign({},e.options,d),g()};async function o(){(await nf(sf,of)).transaction(wm,"readwrite").objectStore(wm).put({id:0,value:JSON.stringify(e.recent)})}const a=d=>{if(e.options.displayRecent!==!0)return;const m=e.recent.findIndex(h=>h.u===d.u);if(m>0&&e.recent.splice(m,1),m===0)return;const u={u:d.u,n:s.toRaw(d.n)};e.recent=[u,...e.recent],e.recent.length>24&&(e.recent.length=24),o()};return{state:s.readonly(e),updateSearch:t,updateEmoji:i,updateActiveGroup:A,updateSkinTone:n,updateOptions:l,updateSelect:a}}var li="top",uA="bottom",hA="right",si="left",af="auto",Bb=[li,uA,hA,si],Wm="start",yb="end",nqg="clippingParents",hJ="viewport",Yb="popper",lqg="reference",bJ=Bb.reduce(function(e,g){return e.concat([g+"-"+Wm,g+"-"+yb])},[]),ZJ=[].concat(Bb,[af]).reduce(function(e,g){return e.concat([g,g+"-"+Wm,g+"-"+yb])},[]),sqg="beforeRead",oqg="read",aqg="afterRead",dqg="beforeMain",cqg="main",rqg="afterMain",mqg="beforeWrite",uqg="write",hqg="afterWrite",bqg=[sqg,oqg,aqg,dqg,cqg,rqg,mqg,uqg,hqg];function Pn(e){return e?(e.nodeName||"").toLowerCase():null}function Cn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var g=e.ownerDocument;return g&&g.defaultView||window}return e}function pm(e){var g=Cn(e).Element;return e instanceof g||e instanceof Element}function bA(e){var g=Cn(e).HTMLElement;return e instanceof g||e instanceof HTMLElement}function GJ(e){if(typeof ShadowRoot>"u")return!1;var g=Cn(e).ShadowRoot;return e instanceof g||e instanceof ShadowRoot}function Zqg(e){var g=e.state;Object.keys(g.elements).forEach(function(I){var C=g.styles[I]||{},t=g.attributes[I]||{},i=g.elements[I];!bA(i)||!Pn(i)||(Object.assign(i.style,C),Object.keys(t).forEach(function(A){var n=t[A];n===!1?i.removeAttribute(A):i.setAttribute(A,n===!0?"":n)}))})}function Gqg(e){var g=e.state,I={popper:{position:g.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(g.elements.popper.style,I.popper),g.styles=I,g.elements.arrow&&Object.assign(g.elements.arrow.style,I.arrow),function(){Object.keys(g.elements).forEach(function(C){var t=g.elements[C],i=g.attributes[C]||{},A=Object.keys(g.styles.hasOwnProperty(C)?g.styles[C]:I[C]),n=A.reduce(function(l,o){return l[o]="",l},{});!bA(t)||!Pn(t)||(Object.assign(t.style,n),Object.keys(i).forEach(function(l){t.removeAttribute(l)}))})}}var wqg={name:"applyStyles",enabled:!0,phase:"write",fn:Zqg,effect:Gqg,requires:["computeStyles"]};function _n(e){return e.split("-")[0]}var zd=Math.max,vB=Math.min,Bm=Math.round;function ym(e,g){g===void 0&&(g=!1);var I=e.getBoundingClientRect(),C=1,t=1;if(bA(e)&&g){var i=e.offsetHeight,A=e.offsetWidth;A>0&&(C=Bm(I.width)/A||1),i>0&&(t=Bm(I.height)/i||1)}return{width:I.width/C,height:I.height/t,top:I.top/t,right:I.right/C,bottom:I.bottom/t,left:I.left/C,x:I.left/C,y:I.top/t}}function df(e){var g=ym(e),I=e.offsetWidth,C=e.offsetHeight;return Math.abs(g.width-I)<=1&&(I=g.width),Math.abs(g.height-C)<=1&&(C=g.height),{x:e.offsetLeft,y:e.offsetTop,width:I,height:C}}function wJ(e,g){var I=g.getRootNode&&g.getRootNode();if(e.contains(g))return!0;if(I&&GJ(I)){var C=g;do{if(C&&e.isSameNode(C))return!0;C=C.parentNode||C.host}while(C)}return!1}function $n(e){return Cn(e).getComputedStyle(e)}function Wqg(e){return["table","td","th"].indexOf(Pn(e))>=0}function Xo(e){return((pm(e)?e.ownerDocument:e.document)||window.document).documentElement}function jB(e){return Pn(e)==="html"?e:e.assignedSlot||e.parentNode||(GJ(e)?e.host:null)||Xo(e)}function WJ(e){return!bA(e)||$n(e).position==="fixed"?null:e.offsetParent}function pqg(e){var g=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,I=navigator.userAgent.indexOf("Trident")!==-1;if(I&&bA(e)){var C=$n(e);if(C.position==="fixed")return null}for(var t=jB(e);bA(t)&&["html","body"].indexOf(Pn(t))<0;){var i=$n(t);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||g&&i.willChange==="filter"||g&&i.filter&&i.filter!=="none")return t;t=t.parentNode}return null}function Vb(e){for(var g=Cn(e),I=WJ(e);I&&Wqg(I)&&$n(I).position==="static";)I=WJ(I);return I&&(Pn(I)==="html"||Pn(I)==="body"&&$n(I).position==="static")?g:I||pqg(e)||g}function cf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nb(e,g,I){return zd(e,vB(g,I))}function Bqg(e,g,I){var C=Nb(e,g,I);return C>I?I:C}function pJ(){return{top:0,right:0,bottom:0,left:0}}function BJ(e){return Object.assign({},pJ(),e)}function yJ(e,g){return g.reduce(function(I,C){return I[C]=e,I},{})}var yqg=function(g,I){return g=typeof g=="function"?g(Object.assign({},I.rects,{placement:I.placement})):g,BJ(typeof g!="number"?g:yJ(g,Bb))};function Yqg(e){var g,I=e.state,C=e.name,t=e.options,i=I.elements.arrow,A=I.modifiersData.popperOffsets,n=_n(I.placement),l=cf(n),o=[si,hA].indexOf(n)>=0,a=o?"height":"width";if(!(!i||!A)){var d=yqg(t.padding,I),m=df(i),u=l==="y"?li:si,h=l==="y"?uA:hA,Z=I.rects.reference[a]+I.rects.reference[l]-A[l]-I.rects.popper[a],G=A[l]-I.rects.reference[l],w=Vb(i),W=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,B=Z/2-G/2,y=d[u],Y=W-m[a]-d[h],f=W/2-m[a]/2+B,M=Nb(y,f,Y),K=l;I.modifiersData[C]=(g={},g[K]=M,g.centerOffset=M-f,g)}}function Vqg(e){var g=e.state,I=e.options,C=I.element,t=C===void 0?"[data-popper-arrow]":C;t!=null&&(typeof t=="string"&&(t=g.elements.popper.querySelector(t),!t)||wJ(g.elements.popper,t)&&(g.elements.arrow=t))}var Nqg={name:"arrow",enabled:!0,phase:"main",fn:Yqg,effect:Vqg,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ym(e){return e.split("-")[1]}var Mqg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fqg(e){var g=e.x,I=e.y,C=window,t=C.devicePixelRatio||1;return{x:Bm(g*t)/t||0,y:Bm(I*t)/t||0}}function YJ(e){var g,I=e.popper,C=e.popperRect,t=e.placement,i=e.variation,A=e.offsets,n=e.position,l=e.gpuAcceleration,o=e.adaptive,a=e.roundOffsets,d=e.isFixed,m=a===!0?fqg(A):typeof a=="function"?a(A):A,u=m.x,h=u===void 0?0:u,Z=m.y,G=Z===void 0?0:Z,w=A.hasOwnProperty("x"),W=A.hasOwnProperty("y"),B=si,y=li,Y=window;if(o){var f=Vb(I),M="clientHeight",K="clientWidth";if(f===Cn(I)&&(f=Xo(I),$n(f).position!=="static"&&n==="absolute"&&(M="scrollHeight",K="scrollWidth")),f=f,t===li||(t===si||t===hA)&&i===yb){y=uA;var F=d&&Y.visualViewport?Y.visualViewport.height:f[M];G-=F-C.height,G*=l?1:-1}if(t===si||(t===li||t===uA)&&i===yb){B=hA;var X=d&&Y.visualViewport?Y.visualViewport.width:f[K];h-=X-C.width,h*=l?1:-1}}var z=Object.assign({position:n},o&&Mqg);if(l){var L;return Object.assign({},z,(L={},L[y]=W?"0":"",L[B]=w?"0":"",L.transform=(Y.devicePixelRatio||1)<=1?"translate("+h+"px, "+G+"px)":"translate3d("+h+"px, "+G+"px, 0)",L))}return Object.assign({},z,(g={},g[y]=W?G+"px":"",g[B]=w?h+"px":"",g.transform="",g))}function Rqg(e){var g=e.state,I=e.options,C=I.gpuAcceleration,t=C===void 0?!0:C,i=I.adaptive,A=i===void 0?!0:i,n=I.roundOffsets,l=n===void 0?!0:n,o={placement:_n(g.placement),variation:Ym(g.placement),popper:g.elements.popper,popperRect:g.rects.popper,gpuAcceleration:t,isFixed:g.options.strategy==="fixed"};g.modifiersData.popperOffsets!=null&&(g.styles.popper=Object.assign({},g.styles.popper,YJ(Object.assign({},o,{offsets:g.modifiersData.popperOffsets,position:g.options.strategy,adaptive:A,roundOffsets:l})))),g.modifiersData.arrow!=null&&(g.styles.arrow=Object.assign({},g.styles.arrow,YJ(Object.assign({},o,{offsets:g.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),g.attributes.popper=Object.assign({},g.attributes.popper,{"data-popper-placement":g.placement})}var Xqg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rqg,data:{}},xB={passive:!0};function Hqg(e){var g=e.state,I=e.instance,C=e.options,t=C.scroll,i=t===void 0?!0:t,A=C.resize,n=A===void 0?!0:A,l=Cn(g.elements.popper),o=[].concat(g.scrollParents.reference,g.scrollParents.popper);return i&&o.forEach(function(a){a.addEventListener("scroll",I.update,xB)}),n&&l.addEventListener("resize",I.update,xB),function(){i&&o.forEach(function(a){a.removeEventListener("scroll",I.update,xB)}),n&&l.removeEventListener("resize",I.update,xB)}}var Dqg={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hqg,data:{}},Sqg={left:"right",right:"left",bottom:"top",top:"bottom"};function OB(e){return e.replace(/left|right|bottom|top/g,function(g){return Sqg[g]})}var Kqg={start:"end",end:"start"};function VJ(e){return e.replace(/start|end/g,function(g){return Kqg[g]})}function rf(e){var g=Cn(e),I=g.pageXOffset,C=g.pageYOffset;return{scrollLeft:I,scrollTop:C}}function mf(e){return ym(Xo(e)).left+rf(e).scrollLeft}function kqg(e){var g=Cn(e),I=Xo(e),C=g.visualViewport,t=I.clientWidth,i=I.clientHeight,A=0,n=0;return C&&(t=C.width,i=C.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(A=C.offsetLeft,n=C.offsetTop)),{width:t,height:i,x:A+mf(e),y:n}}function Fqg(e){var g,I=Xo(e),C=rf(e),t=(g=e.ownerDocument)==null?void 0:g.body,i=zd(I.scrollWidth,I.clientWidth,t?t.scrollWidth:0,t?t.clientWidth:0),A=zd(I.scrollHeight,I.clientHeight,t?t.scrollHeight:0,t?t.clientHeight:0),n=-C.scrollLeft+mf(e),l=-C.scrollTop;return $n(t||I).direction==="rtl"&&(n+=zd(I.clientWidth,t?t.clientWidth:0)-i),{width:i,height:A,x:n,y:l}}function uf(e){var g=$n(e),I=g.overflow,C=g.overflowX,t=g.overflowY;return/auto|scroll|overlay|hidden/.test(I+t+C)}function NJ(e){return["html","body","#document"].indexOf(Pn(e))>=0?e.ownerDocument.body:bA(e)&&uf(e)?e:NJ(jB(e))}function Mb(e,g){var I;g===void 0&&(g=[]);var C=NJ(e),t=C===((I=e.ownerDocument)==null?void 0:I.body),i=Cn(C),A=t?[i].concat(i.visualViewport||[],uf(C)?C:[]):C,n=g.concat(A);return t?n:n.concat(Mb(jB(A)))}function hf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zqg(e){var g=ym(e);return g.top=g.top+e.clientTop,g.left=g.left+e.clientLeft,g.bottom=g.top+e.clientHeight,g.right=g.left+e.clientWidth,g.width=e.clientWidth,g.height=e.clientHeight,g.x=g.left,g.y=g.top,g}function MJ(e,g){return g===hJ?hf(kqg(e)):pm(g)?zqg(g):hf(Fqg(Xo(e)))}function Jqg(e){var g=Mb(jB(e)),I=["absolute","fixed"].indexOf($n(e).position)>=0,C=I&&bA(e)?Vb(e):e;return pm(C)?g.filter(function(t){return pm(t)&&wJ(t,C)&&Pn(t)!=="body"&&(I?$n(t).position!=="static":!0)}):[]}function Lqg(e,g,I){var C=g==="clippingParents"?Jqg(e):[].concat(g),t=[].concat(C,[I]),i=t[0],A=t.reduce(function(n,l){var o=MJ(e,l);return n.top=zd(o.top,n.top),n.right=vB(o.right,n.right),n.bottom=vB(o.bottom,n.bottom),n.left=zd(o.left,n.left),n},MJ(e,i));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function fJ(e){var g=e.reference,I=e.element,C=e.placement,t=C?_n(C):null,i=C?Ym(C):null,A=g.x+g.width/2-I.width/2,n=g.y+g.height/2-I.height/2,l;switch(t){case li:l={x:A,y:g.y-I.height};break;case uA:l={x:A,y:g.y+g.height};break;case hA:l={x:g.x+g.width,y:n};break;case si:l={x:g.x-I.width,y:n};break;default:l={x:g.x,y:g.y}}var o=t?cf(t):null;if(o!=null){var a=o==="y"?"height":"width";switch(i){case Wm:l[o]=l[o]-(g[a]/2-I[a]/2);break;case yb:l[o]=l[o]+(g[a]/2-I[a]/2);break}}return l}function fb(e,g){g===void 0&&(g={});var I=g,C=I.placement,t=C===void 0?e.placement:C,i=I.boundary,A=i===void 0?nqg:i,n=I.rootBoundary,l=n===void 0?hJ:n,o=I.elementContext,a=o===void 0?Yb:o,d=I.altBoundary,m=d===void 0?!1:d,u=I.padding,h=u===void 0?0:u,Z=BJ(typeof h!="number"?h:yJ(h,Bb)),G=a===Yb?lqg:Yb,w=e.rects.popper,W=e.elements[m?G:a],B=Lqg(pm(W)?W:W.contextElement||Xo(e.elements.popper),A,l),y=ym(e.elements.reference),Y=fJ({reference:y,element:w,strategy:"absolute",placement:t}),f=hf(Object.assign({},w,Y)),M=a===Yb?f:y,K={top:B.top-M.top+Z.top,bottom:M.bottom-B.bottom+Z.bottom,left:B.left-M.left+Z.left,right:M.right-B.right+Z.right},F=e.modifiersData.offset;if(a===Yb&&F){var X=F[t];Object.keys(K).forEach(function(z){var L=[hA,uA].indexOf(z)>=0?1:-1,O=[li,uA].indexOf(z)>=0?"y":"x";K[z]+=X[O]*L})}return K}function Tqg(e,g){g===void 0&&(g={});var I=g,C=I.placement,t=I.boundary,i=I.rootBoundary,A=I.padding,n=I.flipVariations,l=I.allowedAutoPlacements,o=l===void 0?ZJ:l,a=Ym(C),d=a?n?bJ:bJ.filter(function(h){return Ym(h)===a}):Bb,m=d.filter(function(h){return o.indexOf(h)>=0});m.length===0&&(m=d);var u=m.reduce(function(h,Z){return h[Z]=fb(e,{placement:Z,boundary:t,rootBoundary:i,padding:A})[_n(Z)],h},{});return Object.keys(u).sort(function(h,Z){return u[h]-u[Z]})}function vqg(e){if(_n(e)===af)return[];var g=OB(e);return[VJ(e),g,VJ(g)]}function jqg(e){var g=e.state,I=e.options,C=e.name;if(!g.modifiersData[C]._skip){for(var t=I.mainAxis,i=t===void 0?!0:t,A=I.altAxis,n=A===void 0?!0:A,l=I.fallbackPlacements,o=I.padding,a=I.boundary,d=I.rootBoundary,m=I.altBoundary,u=I.flipVariations,h=u===void 0?!0:u,Z=I.allowedAutoPlacements,G=g.options.placement,w=_n(G),W=w===G,B=l||(W||!h?[OB(G)]:vqg(G)),y=[G].concat(B).reduce(function(Vg,Wg){return Vg.concat(_n(Wg)===af?Tqg(g,{placement:Wg,boundary:a,rootBoundary:d,padding:o,flipVariations:h,allowedAutoPlacements:Z}):Wg)},[]),Y=g.rects.reference,f=g.rects.popper,M=new Map,K=!0,F=y[0],X=0;X<y.length;X++){var z=y[X],L=_n(z),O=Ym(z)===Wm,Ig=[li,uA].indexOf(L)>=0,eg=Ig?"width":"height",Q=fb(g,{placement:z,boundary:a,rootBoundary:d,altBoundary:m,padding:o}),P=Ig?O?hA:si:O?uA:li;Y[eg]>f[eg]&&(P=OB(P));var cg=OB(P),ng=[];if(i&&ng.push(Q[L]<=0),n&&ng.push(Q[P]<=0,Q[cg]<=0),ng.every(function(Vg){return Vg})){F=z,K=!1;break}M.set(z,ng)}if(K)for(var hg=h?3:1,fg=function(Wg){var eI=y.find(function(gI){var TI=M.get(gI);if(TI)return TI.slice(0,Wg).every(function(qI){return qI})});if(eI)return F=eI,"break"},yg=hg;yg>0;yg--){var mg=fg(yg);if(mg==="break")break}g.placement!==F&&(g.modifiersData[C]._skip=!0,g.placement=F,g.reset=!0)}}var xqg={name:"flip",enabled:!0,phase:"main",fn:jqg,requiresIfExists:["offset"],data:{_skip:!1}};function RJ(e,g,I){return I===void 0&&(I={x:0,y:0}),{top:e.top-g.height-I.y,right:e.right-g.width+I.x,bottom:e.bottom-g.height+I.y,left:e.left-g.width-I.x}}function XJ(e){return[li,hA,uA,si].some(function(g){return e[g]>=0})}function Oqg(e){var g=e.state,I=e.name,C=g.rects.reference,t=g.rects.popper,i=g.modifiersData.preventOverflow,A=fb(g,{elementContext:"reference"}),n=fb(g,{altBoundary:!0}),l=RJ(A,C),o=RJ(n,t,i),a=XJ(l),d=XJ(o);g.modifiersData[I]={referenceClippingOffsets:l,popperEscapeOffsets:o,isReferenceHidden:a,hasPopperEscaped:d},g.attributes.popper=Object.assign({},g.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":d})}var Qqg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oqg};function Uqg(e,g,I){var C=_n(e),t=[si,li].indexOf(C)>=0?-1:1,i=typeof I=="function"?I(Object.assign({},g,{placement:e})):I,A=i[0],n=i[1];return A=A||0,n=(n||0)*t,[si,hA].indexOf(C)>=0?{x:n,y:A}:{x:A,y:n}}function Eqg(e){var g=e.state,I=e.options,C=e.name,t=I.offset,i=t===void 0?[0,0]:t,A=ZJ.reduce(function(a,d){return a[d]=Uqg(d,g.rects,i),a},{}),n=A[g.placement],l=n.x,o=n.y;g.modifiersData.popperOffsets!=null&&(g.modifiersData.popperOffsets.x+=l,g.modifiersData.popperOffsets.y+=o),g.modifiersData[C]=A}var Pqg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Eqg};function _qg(e){var g=e.state,I=e.name;g.modifiersData[I]=fJ({reference:g.rects.reference,element:g.rects.popper,strategy:"absolute",placement:g.placement})}var $qg={name:"popperOffsets",enabled:!0,phase:"read",fn:_qg,data:{}};function qqg(e){return e==="x"?"y":"x"}function ggI(e){var g=e.state,I=e.options,C=e.name,t=I.mainAxis,i=t===void 0?!0:t,A=I.altAxis,n=A===void 0?!1:A,l=I.boundary,o=I.rootBoundary,a=I.altBoundary,d=I.padding,m=I.tether,u=m===void 0?!0:m,h=I.tetherOffset,Z=h===void 0?0:h,G=fb(g,{boundary:l,rootBoundary:o,padding:d,altBoundary:a}),w=_n(g.placement),W=Ym(g.placement),B=!W,y=cf(w),Y=qqg(y),f=g.modifiersData.popperOffsets,M=g.rects.reference,K=g.rects.popper,F=typeof Z=="function"?Z(Object.assign({},g.rects,{placement:g.placement})):Z,X=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),z=g.modifiersData.offset?g.modifiersData.offset[g.placement]:null,L={x:0,y:0};if(f){if(i){var O,Ig=y==="y"?li:si,eg=y==="y"?uA:hA,Q=y==="y"?"height":"width",P=f[y],cg=P+G[Ig],ng=P-G[eg],hg=u?-K[Q]/2:0,fg=W===Wm?M[Q]:K[Q],yg=W===Wm?-K[Q]:-M[Q],mg=g.elements.arrow,Vg=u&&mg?df(mg):{width:0,height:0},Wg=g.modifiersData["arrow#persistent"]?g.modifiersData["arrow#persistent"].padding:pJ(),eI=Wg[Ig],gI=Wg[eg],TI=Nb(0,M[Q],Vg[Q]),qI=B?M[Q]/2-hg-TI-eI-X.mainAxis:fg-TI-eI-X.mainAxis,FI=B?-M[Q]/2+hg+TI+gI+X.mainAxis:yg+TI+gI+X.mainAxis,bI=g.elements.arrow&&Vb(g.elements.arrow),Cg=bI?y==="y"?bI.clientTop||0:bI.clientLeft||0:0,Zg=(O=z==null?void 0:z[y])!=null?O:0,Mg=P+qI-Zg-Cg,WI=P+FI-Zg,pI=Nb(u?vB(cg,Mg):cg,P,u?zd(ng,WI):ng);f[y]=pI,L[y]=pI-P}if(n){var KI,ge=y==="x"?li:si,uC=y==="x"?uA:hA,he=f[Y],Ie=Y==="y"?"height":"width",$e=he+G[ge],bt=he-G[uC],HA=[li,si].indexOf(w)!==-1,Zt=(KI=z==null?void 0:z[Y])!=null?KI:0,xt=HA?$e:he-M[Ie]-K[Ie]-Zt+X.altAxis,_i=HA?he+M[Ie]+K[Ie]-Zt-X.altAxis:bt,$i=u&&HA?Bqg(xt,he,_i):Nb(u?xt:$e,he,u?_i:bt);f[Y]=$i,L[Y]=$i-he}g.modifiersData[C]=L}}var IgI={name:"preventOverflow",enabled:!0,phase:"main",fn:ggI,requiresIfExists:["offset"]};function egI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function CgI(e){return e===Cn(e)||!bA(e)?rf(e):egI(e)}function tgI(e){var g=e.getBoundingClientRect(),I=Bm(g.width)/e.offsetWidth||1,C=Bm(g.height)/e.offsetHeight||1;return I!==1||C!==1}function igI(e,g,I){I===void 0&&(I=!1);var C=bA(g),t=bA(g)&&tgI(g),i=Xo(g),A=ym(e,t),n={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(C||!C&&!I)&&((Pn(g)!=="body"||uf(i))&&(n=CgI(g)),bA(g)?(l=ym(g,!0),l.x+=g.clientLeft,l.y+=g.clientTop):i&&(l.x=mf(i))),{x:A.left+n.scrollLeft-l.x,y:A.top+n.scrollTop-l.y,width:A.width,height:A.height}}function AgI(e){var g=new Map,I=new Set,C=[];e.forEach(function(i){g.set(i.name,i)});function t(i){I.add(i.name);var A=[].concat(i.requires||[],i.requiresIfExists||[]);A.forEach(function(n){if(!I.has(n)){var l=g.get(n);l&&t(l)}}),C.push(i)}return e.forEach(function(i){I.has(i.name)||t(i)}),C}function ngI(e){var g=AgI(e);return bqg.reduce(function(I,C){return I.concat(g.filter(function(t){return t.phase===C}))},[])}function lgI(e){var g;return function(){return g||(g=new Promise(function(I){Promise.resolve().then(function(){g=void 0,I(e())})})),g}}function sgI(e){var g=e.reduce(function(I,C){var t=I[C.name];return I[C.name]=t?Object.assign({},t,C,{options:Object.assign({},t.options,C.options),data:Object.assign({},t.data,C.data)}):C,I},{});return Object.keys(g).map(function(I){return g[I]})}var HJ={placement:"bottom",modifiers:[],strategy:"absolute"};function DJ(){for(var e=arguments.length,g=new Array(e),I=0;I<e;I++)g[I]=arguments[I];return!g.some(function(C){return!(C&&typeof C.getBoundingClientRect=="function")})}function ogI(e){e===void 0&&(e={});var g=e,I=g.defaultModifiers,C=I===void 0?[]:I,t=g.defaultOptions,i=t===void 0?HJ:t;return function(n,l,o){o===void 0&&(o=i);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},HJ,i),modifiersData:{},elements:{reference:n,popper:l},attributes:{},styles:{}},d=[],m=!1,u={state:a,setOptions:function(w){var W=typeof w=="function"?w(a.options):w;Z(),a.options=Object.assign({},i,a.options,W),a.scrollParents={reference:pm(n)?Mb(n):n.contextElement?Mb(n.contextElement):[],popper:Mb(l)};var B=ngI(sgI([].concat(C,a.options.modifiers)));return a.orderedModifiers=B.filter(function(y){return y.enabled}),h(),u.update()},forceUpdate:function(){if(!m){var w=a.elements,W=w.reference,B=w.popper;if(DJ(W,B)){a.rects={reference:igI(W,Vb(B),a.options.strategy==="fixed"),popper:df(B)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(X){return a.modifiersData[X.name]=Object.assign({},X.data)});for(var y=0;y<a.orderedModifiers.length;y++){if(a.reset===!0){a.reset=!1,y=-1;continue}var Y=a.orderedModifiers[y],f=Y.fn,M=Y.options,K=M===void 0?{}:M,F=Y.name;typeof f=="function"&&(a=f({state:a,options:K,name:F,instance:u})||a)}}}},update:lgI(function(){return new Promise(function(G){u.forceUpdate(),G(a)})}),destroy:function(){Z(),m=!0}};if(!DJ(n,l))return u;u.setOptions(o).then(function(G){!m&&o.onFirstUpdate&&o.onFirstUpdate(G)});function h(){a.orderedModifiers.forEach(function(G){var w=G.name,W=G.options,B=W===void 0?{}:W,y=G.effect;if(typeof y=="function"){var Y=y({state:a,name:w,instance:u,options:B}),f=function(){};d.push(Y||f)}})}function Z(){d.forEach(function(G){return G()}),d=[]}return u}}var agI=[Dqg,$qg,Xqg,wqg,Pqg,xqg,IgI,Nqg,Qqg],dgI=ogI({defaultModifiers:agI}),SJ="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";function QB(e){return e.split("-").map(g=>parseInt(g,16)).map(g=>String.fromCodePoint(g)).join("")}function cgI(e,g,I,C=[]){const t={};return Object.keys(e).forEach(i=>{if(C.includes(i))return;const A=[];e[i].forEach(n=>{var l;if(n[JB][0].includes(g.toLocaleLowerCase())){let o=n[oJ];if(I!==TB&&Array.isArray(n[LB])){const a=((l=n[LB])==null?void 0:l.findIndex(d=>d.includes(I)))||-1;a!==-1&&n[LB]&&(o=n[LB][a])}return A.push({...n,[pb]:o})}}),A.length&&(t[i]=A)}),t}function KJ(){var e;return(((e=navigator==null?void 0:navigator.userAgentData)==null?void 0:e.platform)||(navigator==null?void 0:navigator.platform)||"unknown").toUpperCase().indexOf("MAC")!==-1}function kJ(e){return e.replace(/^_*(.)|_+(.)/g,(g,I,C)=>I?I.toUpperCase():" "+C.toUpperCase())}var Rb=(e,g)=>{const I=e.__vccOpts||e;for(const[C,t]of g)I[C]=t;return I};const rgI=s.defineComponent({name:"Body",emits:{select:e=>!0},setup(){const{state:e,updateEmoji:g,updateSelect:I}=s.inject("store"),C=s.ref(null),t=s.computed(()=>cgI(e.emojis,e.search,e.skinTone,e.options.disabledGroups)),i=s.getCurrentInstance(),A=s.computed(()=>!e.options.hideGroupNames),n=s.computed(()=>!e.options.disableStickyGroupNames),l=s.toRaw(e.options.groupNames),o=e.orderedGroupKeys;e.options.additionalGroups&&Object.keys(e.options.additionalGroups).map(h=>{e.options.groupNames[h]?l[h]=e.options.groupNames[h]:l[h]=kJ(h)});const a=KJ()?"is-mac":"";function d(h){g(h)}function m(h){I(h),i==null||i.emit("select",{...h,t:e.skinTone,i:QB(h.r)})}function u(h,Z){var G;const w=(G=h==null?void 0:h.target)==null?void 0:G.closest("button");w&&(w.innerHTML=`<span>${QB(Z)}</span>`)}return s.watch(()=>e.activeGroup,()=>{var h;const Z=(h=C.value)==null?void 0:h.querySelector("#"+e.activeGroup);Z&&(Z.parentNode.scrollTop=Z.offsetTop-Z.parentNode.offsetTop)}),{emojis:t,bodyInner:C,EMOJI_REMOTE_SRC:lJ,GROUP_NAMES:sJ,handleClick:m,handleError:u,handleMouseEnter:d,native:e.options.native,unicodeToEmoji:QB,EMOJI_RESULT_KEY:pb,EMOJI_NAME_KEY:JB,hasGroupNames:A,isSticky:n,platform:a,groupNames:l,orderedKeys:o}}}),mgI={class:"v3-body"},ugI=["id"],hgI={class:"v3-emojis"},bgI=["onMouseenter","onClick"],ZgI={key:0},GgI=["src","alt","onError"],wgI={key:1,class:"v3-no-result"};function WgI(e,g,I,C,t,i){return s.openBlock(),s.createElementBlock("div",mgI,[s.createElementVNode("div",{ref:"bodyInner",class:s.normalizeClass([e.platform,"v3-body-inner"])},[e.orderedKeys.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.orderedKeys,A=>(s.openBlock(),s.createElementBlock("div",{id:A,key:A,class:"v3-group"},[e.hasGroupNames?s.withDirectives((s.openBlock(),s.createElementBlock("h5",{key:0,class:s.normalizeClass(e.isSticky?"v3-sticky":"")},s.toDisplayString(e.groupNames[A]),3)),[[s.vShow,e.emojis[A]]]):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("div",hgI,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.emojis[A],n=>(s.openBlock(),s.createElementBlock("button",{key:n.r,type:"button",onMouseenter:l=>e.handleMouseEnter(n),onClick:l=>e.handleClick(n)},[e.native?(s.openBlock(),s.createElementBlock("span",ZgI,s.toDisplayString(e.unicodeToEmoji(n.r)),1)):(s.openBlock(),s.createElementBlock("img",{key:1,src:e.EMOJI_REMOTE_SRC+`/${n.r}.png`,alt:n.n[0],onError:l=>e.handleError(l,n.r)},null,40,GgI))],40,bgI))),128))],512),[[s.vShow,e.emojis[A]]])],8,ugI))),128)):(s.openBlock(),s.createElementBlock("span",wgI," No emoji has been found! "))],2)])}var pgI=Rb(rgI,[["render",WgI]]),BgI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuNjg3NSAxMS43MzQzNzUgMjMgMTAuNjYwMTU2IDIzIDkuNSBDIDIzIDguMzM5ODQ0IDIyLjY4NzUgNy4yNjU2MjUgMjIuMDkzNzUgNi40Mzc1IEMgMjEuNSA1LjYwOTM3NSAyMC41NzAzMTMgNSAxOS41IDUgQyAxOC40Mjk2ODggNSAxNy41IDUuNjA5Mzc1IDE2LjkwNjI1IDYuNDM3NSBDIDE2LjMxMjUgNy4yNjU2MjUgMTYgOC4zMzk4NDQgMTYgOS41IFogTSAxMi41IDcgQyAxMi44MTI1IDcgMTMuMTU2MjUgNy4xNTYyNSAxMy40Njg3NSA3LjU5Mzc1IEMgMTMuNzgxMjUgOC4wMzEyNSAxNCA4LjcyNjU2MyAxNCA5LjUgQyAxNCAxMC4yNzM0MzggMTMuNzgxMjUgMTAuOTY4NzUgMTMuNDY4NzUgMTEuNDA2MjUgQyAxMy4xNTYyNSAxMS44NDM3NSAxMi44MTI1IDEyIDEyLjUgMTIgQyAxMi4xODc1IDEyIDExLjg0Mzc1IDExLjg0Mzc1IDExLjUzMTI1IDExLjQwNjI1IEMgMTEuMjE4NzUgMTAuOTY4NzUgMTEgMTAuMjczNDM4IDExIDkuNSBDIDExIDguNzI2NTYzIDExLjIxODc1IDguMDMxMjUgMTEuNTMxMjUgNy41OTM3NSBDIDExLjg0Mzc1IDcuMTU2MjUgMTIuMTg3NSA3IDEyLjUgNyBaIE0gMTkuNSA3IEMgMTkuODEyNSA3IDIwLjE1NjI1IDcuMTU2MjUgMjAuNDY4NzUgNy41OTM3NSBDIDIwLjc4MTI1IDguMDMxMjUgMjEgOC43MjY1NjMgMjEgOS41IEMgMjEgMTAuMjczNDM4IDIwLjc4MTI1IDEwLjk2ODc1IDIwLjQ2ODc1IDExLjQwNjI1IEMgMjAuMTU2MjUgMTEuODQzNzUgMTkuODEyNSAxMiAxOS41IDEyIEMgMTkuMTg3NSAxMiAxOC44NDM3NSAxMS44NDM3NSAxOC41MzEyNSAxMS40MDYyNSBDIDE4LjIxODc1IDEwLjk2ODc1IDE4IDEwLjI3MzQzOCAxOCA5LjUgQyAxOCA4LjcyNjU2MyAxOC4yMTg3NSA4LjAzMTI1IDE4LjUzMTI1IDcuNTkzNzUgQyAxOC44NDM3NSA3LjE1NjI1IDE5LjE4NzUgNyAxOS41IDcgWiBNIDcuNSAxMiBDIDYuNDI5Njg4IDEyIDUuNSAxMi42MDkzNzUgNC45MDYyNSAxMy40Mzc1IEMgNC4zMTI1IDE0LjI2NTYyNSA0IDE1LjMzOTg0NCA0IDE2LjUgQyA0IDE3LjY2MDE1NiA0LjMxMjUgMTguNzM0Mzc1IDQuOTA2MjUgMTkuNTYyNSBDIDUuNSAyMC4zOTA2MjUgNi40Mjk2ODggMjEgNy41IDIxIEMgOC41NzAzMTMgMjEgOS41IDIwLjM5MDYyNSAxMC4wOTM3NSAxOS41NjI1IEMgMTAuNjg3NSAxOC43MzQzNzUgMTEgMTcuNjYwMTU2IDExIDE2LjUgQyAxMSAxNS4zMzk4NDQgMTAuNjg3NSAxNC4yNjU2MjUgMTAuMDkzNzUgMTMuNDM3NSBDIDkuNSAxMi42MDkzNzUgOC41NzAzMTMgMTIgNy41IDEyIFogTSAyNC41IDEyIEMgMjMuNDI5Njg4IDEyIDIyLjUgMTIuNjA5Mzc1IDIxLjkwNjI1IDEzLjQzNzUgQyAyMS4zMTI1IDE0LjI2NTYyNSAyMSAxNS4zMzk4NDQgMjEgMTYuNSBDIDIxIDE3LjY2MDE1NiAyMS4zMTI1IDE4LjczNDM3NSAyMS45MDYyNSAxOS41NjI1IEMgMjIuNSAyMC4zOTA2MjUgMjMuNDI5Njg4IDIxIDI0LjUgMjEgQyAyNS41NzAzMTMgMjEgMjYuNSAyMC4zOTA2MjUgMjcuMDkzNzUgMTkuNTYyNSBDIDI3LjY4NzUgMTguNzM0Mzc1IDI4IDE3LjY2MDE1NiAyOCAxNi41IEMgMjggMTUuMzM5ODQ0IDI3LjY4NzUgMTQuMjY1NjI1IDI3LjA5Mzc1IDEzLjQzNzUgQyAyNi41IDEyLjYwOTM3NSAyNS41NzAzMTMgMTIgMjQuNSAxMiBaIE0gNy41IDE0IEMgNy44MTI1IDE0IDguMTU2MjUgMTQuMTU2MjUgOC40Njg3NSAxNC41OTM3NSBDIDguNzgxMjUgMTUuMDMxMjUgOSAxNS43MjY1NjMgOSAxNi41IEMgOSAxNy4yNzM0MzggOC43ODEyNSAxNy45Njg3NSA4LjQ2ODc1IDE4LjQwNjI1IEMgOC4xNTYyNSAxOC44NDM3NSA3LjgxMjUgMTkgNy41IDE5IEMgNy4xODc1IDE5IDYuODQzNzUgMTguODQzNzUgNi41MzEyNSAxOC40MDYyNSBDIDYuMjE4NzUgMTcuOTY4NzUgNiAxNy4yNzM0MzggNiAxNi41IEMgNiAxNS43MjY1NjMgNi4yMTg3NSAxNS4wMzEyNSA2LjUzMTI1IDE0LjU5Mzc1IEMgNi44NDM3NSAxNC4xNTYyNSA3LjE4NzUgMTQgNy41IDE0IFogTSAyNC41IDE0IEMgMjQuODEyNSAxNCAyNS4xNTYyNSAxNC4xNTYyNSAyNS40Njg3NSAxNC41OTM3NSBDIDI1Ljc4MTI1IDE1LjAzMTI1IDI2IDE1LjcyNjU2MyAyNiAxNi41IEMgMjYgMTcuMjczNDM4IDI1Ljc4MTI1IDE3Ljk2ODc1IDI1LjQ2ODc1IDE4LjQwNjI1IEMgMjUuMTU2MjUgMTguODQzNzUgMjQuODEyNSAxOSAyNC41IDE5IEMgMjQuMTg3NSAxOSAyMy44NDM3NSAxOC44NDM3NSAyMy41MzEyNSAxOC40MDYyNSBDIDIzLjIxODc1IDE3Ljk2ODc1IDIzIDE3LjI3MzQzOCAyMyAxNi41IEMgMjMgMTUuNzI2NTYzIDIzLjIxODc1IDE1LjAzMTI1IDIzLjUzMTI1IDE0LjU5Mzc1IEMgMjMuODQzNzUgMTQuMTU2MjUgMjQuMTg3NSAxNCAyNC41IDE0IFogTSAxNiAxNiBDIDE0LjY2Nzk2OSAxNiAxMy43MzgyODEgMTYuODY3MTg4IDEzLjI4MTI1IDE3LjYyNSBDIDEyLjgyNDIxOSAxOC4zODI4MTMgMTIuNTQ2ODc1IDE5LjAxNTYyNSAxMi4yODEyNSAxOS4yODEyNSBDIDEyLjEyNSAxOS40Mzc1IDExLjE2MDE1NiAxOS44MDA3ODEgMTAuMTU2MjUgMjAuMzEyNSBDIDkuNjUyMzQ0IDIwLjU3MDMxMyA5LjE0NDUzMSAyMC45MTQwNjMgOC43MTg3NSAyMS40Mzc1IEMgOC4yOTI5NjkgMjEuOTYwOTM4IDggMjIuNjg3NSA4IDIzLjUgQyA4IDI1LjQyMTg3NSA5LjU3ODEyNSAyNyAxMS41IDI3IEMgMTIuMzY3MTg4IDI3IDEzLjI2OTUzMSAyNi43MjI2NTYgMTQuMTU2MjUgMjYuNDY4NzUgQyAxNS4wNDI5NjkgMjYuMjE0ODQ0IDE2IDI2IDE2IDI2IEMgMTYgMjYgMTYuOTU3MDMxIDI2LjIxNDg0NCAxNy44NDM3NSAyNi40Njg3NSBDIDE4LjczMDQ2OSAyNi43MjI2NTYgMTkuNjMyODEzIDI3IDIwLjUgMjcgQyAyMi40MjE4NzUgMjcgMjQgMjUuNDIxODc1IDI0IDIzLjUgQyAyNCAyMi43MDcwMzEgMjMuNzA3MDMxIDIxLjk4MDQ2OSAyMy4yODEyNSAyMS40Njg3NSBDIDIyLjg1NTQ2OSAyMC45NTcwMzEgMjIuMzQzNzUgMjAuNjQwNjI1IDIxLjg0Mzc1IDIwLjM3NSBDIDIwLjg0Mzc1IDE5Ljg0Mzc1IDE5Ljg1OTM3NSAxOS40MjE4NzUgMTkuNzE4NzUgMTkuMjgxMjUgQyAxOS40ODA0NjkgMTkuMDQyOTY5IDE5LjIxMDkzOCAxOC4zOTA2MjUgMTguNzUgMTcuNjI1IEMgMTguMjg5MDYzIDE2Ljg1OTM3NSAxNy4zMzk4NDQgMTYgMTYgMTYgWiBNIDE2IDE4IEMgMTYuNjYwMTU2IDE4IDE2LjczNDM3NSAxOC4xNjAxNTYgMTcuMDMxMjUgMTguNjU2MjUgQyAxNy4zMjgxMjUgMTkuMTUyMzQ0IDE3LjU1NDY4OCAxOS45OTIxODggMTguMjgxMjUgMjAuNzE4NzUgQyAxOS4xMDU0NjkgMjEuNTQyOTY5IDIwLjE0ODQzOCAyMS43MjI2NTYgMjAuOTA2MjUgMjIuMTI1IEMgMjEuMjg1MTU2IDIyLjMyODEyNSAyMS41NzgxMjUgMjIuNTQyOTY5IDIxLjc1IDIyLjc1IEMgMjEuOTIxODc1IDIyLjk1NzAzMSAyMiAyMy4xNDg0MzggMjIgMjMuNSBDIDIyIDI0LjMzOTg0NCAyMS4zMzk4NDQgMjUgMjAuNSAyNSBDIDIwLjIxMDkzOCAyNSAxOS4yNzczNDQgMjQuNzc3MzQ0IDE4LjQwNjI1IDI0LjUzMTI1IEMgMTcuNTM1MTU2IDI0LjI4NTE1NiAxNi44MTY0MDYgMjQgMTYgMjQgQyAxNS4xODM1OTQgMjQgMTQuNDY0ODQ0IDI0LjI4NTE1NiAxMy41OTM3NSAyNC41MzEyNSBDIDEyLjcyMjY1NiAyNC43NzczNDQgMTEuNzg5MDYzIDI1IDExLjUgMjUgQyAxMC42NjAxNTYgMjUgMTAgMjQuMzM5ODQ0IDEwIDIzLjUgQyAxMCAyMy4wOTc2NTYgMTAuMDgyMDMxIDIyLjg5MDYyNSAxMC4yNSAyMi42ODc1IEMgMTAuNDE3OTY5IDIyLjQ4NDM3NSAxMC43MjI2NTYgMjIuMjg1MTU2IDExLjA5Mzc1IDIyLjA5Mzc1IEMgMTEuODM5ODQ0IDIxLjcxNDg0NCAxMi44NzUgMjEuNTYyNSAxMy43MTg3NSAyMC43MTg3NSBDIDE0LjQ1MzEyNSAxOS45ODQzNzUgMTQuNjc1NzgxIDE5LjExNzE4OCAxNC45Njg3NSAxOC42MjUgQyAxNS4yNjE3MTkgMTguMTMyODEzIDE1LjMzMjAzMSAxOCAxNiAxOCBaIi8+PC9zdmc+",ygI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSAzIEwgMTEgNyBMIDEzIDcgTCAxMyAzIFogTSAxNSA0IEwgMTUgNyBMIDE3IDcgTCAxNyA0IFogTSA0Ljg3NSA4IEwgNSA5LjA5Mzc1IEwgNi44MTI1IDI2LjMxMjUgQyA2Ljk3MjY1NiAyNy44MzIwMzEgOC4yODUxNTYgMjkgOS44MTI1IDI5IEwgMTkuMTg3NSAyOSBDIDIwLjcxNDg0NCAyOSAyMi4wMjczNDQgMjcuODMyMDMxIDIyLjE4NzUgMjYuMzEyNSBMIDIyLjY1NjI1IDIyIEwgMjUgMjIgQyAyNi42NDQ1MzEgMjIgMjggMjAuNjQ0NTMxIDI4IDE5IEwgMjggMTYgQyAyOCAxNC4zNTU0NjkgMjYuNjQ0NTMxIDEzIDI1IDEzIEwgMjMuNTkzNzUgMTMgTCAyNCA5LjA5Mzc1IEwgMjQuMTI1IDggWiBNIDcuMTI1IDEwIEwgMjEuODc1IDEwIEwgMjAuMTg3NSAyNi4wOTM3NSBDIDIwLjEzMjgxMyAyNi42MTMyODEgMTkuNzA3MDMxIDI3IDE5LjE4NzUgMjcgTCA5LjgxMjUgMjcgQyA5LjI5Mjk2OSAyNyA4Ljg2NzE4OCAyNi42MTMyODEgOC44MTI1IDI2LjA5Mzc1IFogTSAyMy4zNzUgMTUgTCAyNSAxNSBDIDI1LjU2NjQwNiAxNSAyNiAxNS40MzM1OTQgMjYgMTYgTCAyNiAxOSBDIDI2IDE5LjU2NjQwNiAyNS41NjY0MDYgMjAgMjUgMjAgTCAyMi44NDM3NSAyMCBaIi8+PC9zdmc+",YgI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiAzIEMgOC44MzIwMzEgMyAzIDguODMyMDMxIDMgMTYgQyAzIDIzLjE2Nzk2OSA4LjgzMjAzMSAyOSAxNiAyOSBDIDIzLjE2Nzk2OSAyOSAyOSAyMy4xNjc5NjkgMjkgMTYgQyAyOSA4LjgzMjAzMSAyMy4xNjc5NjkgMyAxNiAzIFogTSAxNiA1IEMgMTYuNjAxNTYzIDUgMTcuMTc1NzgxIDUuMDYyNSAxNy43NSA1LjE1NjI1IEwgMTYgNi40MDYyNSBMIDE0LjI1IDUuMTU2MjUgQyAxNC44MjAzMTMgNS4wNjY0MDYgMTUuNDAyMzQ0IDUgMTYgNSBaIE0gMTEuODEyNSA1Ljg0Mzc1IEwgMTUuNDA2MjUgOC40Njg3NSBMIDE2IDguOTA2MjUgTCAxNi41OTM3NSA4LjQ2ODc1IEwgMjAuMTg3NSA1Ljg0Mzc1IEMgMjEuNzg1MTU2IDYuNTA3ODEzIDIzLjE5NTMxMyA3LjUyMzQzOCAyNC4zMTI1IDguODEyNSBMIDIyLjkzNzUgMTMuMDkzNzUgTCAyMi43MTg3NSAxMy43ODEyNSBMIDIzLjMxMjUgMTQuMTg3NSBMIDI2LjkzNzUgMTYuODQzNzUgQyAyNi44MDQ2ODggMTguNjA1NDY5IDI2LjI2NTYyNSAyMC4yNTc4MTMgMjUuNDA2MjUgMjEuNjg3NSBMIDIwLjEyNSAyMS42ODc1IEwgMTkuOTA2MjUgMjIuMzc1IEwgMTguNSAyNi43MTg3NSBDIDE3LjY5OTIxOSAyNi45MDYyNSAxNi44NTkzNzUgMjcgMTYgMjcgQyAxNS4xMDU0NjkgMjcgMTQuMjM4MjgxIDI2Ljg4NjcxOSAxMy40MDYyNSAyNi42ODc1IEwgMTIuMDMxMjUgMjIuNDA2MjUgTCAxMS44MTI1IDIxLjcxODc1IEwgNi41OTM3NSAyMS43MTg3NSBDIDUuNzE4NzUgMjAuMjgxMjUgNS4xOTkyMTkgMTguNjIxMDk0IDUuMDYyNSAxNi44NDM3NSBMIDguNjU2MjUgMTQuMjE4NzUgTCA5LjI1IDEzLjgxMjUgTCA5LjAzMTI1IDEzLjEyNSBMIDcuNjI1IDguODc1IEMgOC43NSA3LjU1NDY4OCAxMC4xODM1OTQgNi41MTU2MjUgMTEuODEyNSA1Ljg0Mzc1IFogTSAxNiAxMC4wOTM3NSBMIDE1LjQwNjI1IDEwLjUzMTI1IEwgMTAuODQzNzUgMTMuODQzNzUgTCAxMC4yODEyNSAxNC4yODEyNSBMIDEwLjUgMTQuOTY4NzUgTCAxMi4yNSAyMC4zMTI1IEwgMTIuNDY4NzUgMjEgTCAxOS41MzEyNSAyMSBMIDE5Ljc1IDIwLjMxMjUgTCAyMS41IDE0Ljk2ODc1IEwgMjEuNzE4NzUgMTQuMjgxMjUgTCAyMS4xNTYyNSAxMy44NDM3NSBMIDE2LjU5Mzc1IDEwLjUzMTI1IFogTSAyNS43NSAxMC45MDYyNSBDIDI2LjI5Njg3NSAxMS45NTMxMjUgMjYuNjU2MjUgMTMuMTAxNTYzIDI2Ljg0Mzc1IDE0LjMxMjUgTCAyNS4wNjI1IDEzLjAzMTI1IFogTSA2LjIxODc1IDEwLjk2ODc1IEwgNi45MDYyNSAxMy4wMzEyNSBMIDUuMTU2MjUgMTQuMzEyNSBDIDUuMzM5ODQ0IDEzLjEyNSA1LjY4NzUgMTIgNi4yMTg3NSAxMC45Njg3NSBaIE0gMTYgMTIuNTkzNzUgTCAxOS4zNzUgMTUuMDMxMjUgTCAxOC4wOTM3NSAxOSBMIDEzLjkwNjI1IDE5IEwgMTIuNjI1IDE1LjAzMTI1IFogTSAyMS41OTM3NSAyMy42ODc1IEwgMjMuODQzNzUgMjMuNjg3NSBDIDIyLjk5MjE4OCAyNC41NjY0MDYgMjIuMDExNzE5IDI1LjI5Mjk2OSAyMC45MDYyNSAyNS44NDM3NSBaIE0gOC4xNTYyNSAyMy43MTg3NSBMIDEwLjM0Mzc1IDIzLjcxODc1IEwgMTEuMDMxMjUgMjUuODEyNSBDIDkuOTYwOTM4IDI1LjI2OTUzMSA4Ljk4ODI4MSAyNC41NjI1IDguMTU2MjUgMjMuNzE4NzUgWiIvPjwvc3ZnPg==",VgI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5LjUgNiBDIDguMTc5Njg4IDYgNy4wMDM5MDYgNi44NTkzNzUgNi42MjUgOC4xMjUgTCA1LjI1IDEyLjcxODc1IEwgMy4zMTI1IDEyLjA2MjUgTCAyLjY4NzUgMTMuOTM3NSBMIDQuNjU2MjUgMTQuNTkzNzUgTCA0LjAzMTI1IDE2LjcxODc1IEMgNC4wMDc4MTMgMTYuODA4NTk0IDMuOTk2MDk0IDE2LjkwNjI1IDQgMTcgTCA0IDI0IEMgNCAyNC4wMzEyNSA0IDI0LjA2MjUgNCAyNC4wOTM3NSBMIDQgMjUgQyA0IDI1LjU1MDc4MSA0LjQ0OTIxOSAyNiA1IDI2IEwgOCAyNiBMIDguMzQzNzUgMjUgTCAyMy42NTYyNSAyNSBMIDI0IDI2IEwgMjcgMjYgQyAyNy41NTA3ODEgMjYgMjggMjUuNTUwNzgxIDI4IDI1IEwgMjggMjQuMTU2MjUgQyAyOC4wMDM5MDYgMjQuMTA1NDY5IDI4LjAwMzkwNiAyNC4wNTA3ODEgMjggMjQgTCAyOCAxNyBDIDI4LjAwMzkwNiAxNi45MDYyNSAyNy45OTIxODggMTYuODA4NTk0IDI3Ljk2ODc1IDE2LjcxODc1IEwgMjcuMzQzNzUgMTQuNTkzNzUgTCAyOS4zMTI1IDEzLjkzNzUgTCAyOC42ODc1IDEyLjA2MjUgTCAyNi43NSAxMi43MTg3NSBMIDI1LjM3NSA4LjEyNSBDIDI0Ljk5NjA5NCA2Ljg1OTM3NSAyMy44MjAzMTMgNiAyMi41IDYgWiBNIDkuNSA4IEwgMjIuNSA4IEMgMjIuOTQ1MzEzIDggMjMuMzM5ODQ0IDguMjkyOTY5IDIzLjQ2ODc1IDguNzE4NzUgTCAyNC43NSAxMyBMIDcuMjUgMTMgTCA4LjUzMTI1IDguNzE4NzUgQyA4LjY2MDE1NiA4LjI4OTA2MyA5LjA1NDY4OCA4IDkuNSA4IFogTSA2LjY1NjI1IDE1IEwgMjUuMzQzNzUgMTUgTCAyNiAxNy4xODc1IEwgMjYgMjMgTCA2IDIzIEwgNiAxNy4xODc1IFogTSA4LjUgMTYgQyA3LjY3MTg3NSAxNiA3IDE2LjY3MTg3NSA3IDE3LjUgQyA3IDE4LjMyODEyNSA3LjY3MTg3NSAxOSA4LjUgMTkgQyA5LjMyODEyNSAxOSAxMCAxOC4zMjgxMjUgMTAgMTcuNSBDIDEwIDE2LjY3MTg3NSA5LjMyODEyNSAxNiA4LjUgMTYgWiBNIDIzLjUgMTYgQyAyMi42NzE4NzUgMTYgMjIgMTYuNjcxODc1IDIyIDE3LjUgQyAyMiAxOC4zMjgxMjUgMjIuNjcxODc1IDE5IDIzLjUgMTkgQyAyNC4zMjgxMjUgMTkgMjUgMTguMzI4MTI1IDI1IDE3LjUgQyAyNSAxNi42NzE4NzUgMjQuMzI4MTI1IDE2IDIzLjUgMTYgWiBNIDEyIDE5IEwgMTAuNzUgMjIgTCAxMi45MDYyNSAyMiBMIDEzLjM0Mzc1IDIxIEwgMTguNjU2MjUgMjEgTCAxOS4wOTM3NSAyMiBMIDIxLjI1IDIyIEwgMjAgMTkgWiIvPjwvc3ZnPg==",NgI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuMDQyOTY5IDQgNyA4LjA0Mjk2OSA3IDEzIEMgNyAxNC45MTc5NjkgNy44NDM3NSAxNi45MDYyNSA5IDE4LjY4NzUgQyA5Ljg1OTM3NSAyMC4wMTE3MTkgMTAuODg2NzE5IDIxLjIzMDQ2OSAxMiAyMi4xNTYyNSBMIDEyIDI1IEMgMTIgMjYuMDkzNzUgMTIuOTA2MjUgMjcgMTQgMjcgTCAxNSAyOCBMIDE3IDI4IEwgMTggMjcgQyAxOS4wOTM3NSAyNyAyMCAyNi4wOTM3NSAyMCAyNSBMIDIwIDIyLjE1NjI1IEMgMjEuMTEzMjgxIDIxLjIzMDQ2OSAyMi4xNDA2MjUgMjAuMDExNzE5IDIzIDE4LjY4NzUgQyAyNC4xNTYyNSAxNi45MDYyNSAyNSAxNC45MTc5NjkgMjUgMTMgQyAyNSA4LjA0Mjk2OSAyMC45NTcwMzEgNCAxNiA0IFogTSAxNiA2IEMgMTkuODc4OTA2IDYgMjMgOS4xMjEwOTQgMjMgMTMgQyAyMyAxNC4zMDg1OTQgMjIuMzU1NDY5IDE2LjAzNTE1NiAyMS4zNDM3NSAxNy41OTM3NSBDIDIwLjQ0MTQwNiAxOC45ODQzNzUgMTkuMjUzOTA2IDIwLjIyMjY1NiAxOC4xNTYyNSAyMSBMIDEzLjg0Mzc1IDIxIEMgMTIuNzQ2MDk0IDIwLjIyMjY1NiAxMS41NTg1OTQgMTguOTg0Mzc1IDEwLjY1NjI1IDE3LjU5Mzc1IEMgOS42NDQ1MzEgMTYuMDM1MTU2IDkgMTQuMzA4NTk0IDkgMTMgQyA5IDkuMTIxMDk0IDEyLjEyMTA5NCA2IDE2IDYgWiBNIDE0LjI1IDIzIEwgMTcuNzUgMjMgQyAxNy44MjgxMjUgMjMuMDU0Njg4IDE3LjkxMDE1NiAyMy4wOTM3NSAxOCAyMy4xMjUgTCAxOCAyNSBMIDE0IDI1IEwgMTQgMjMuMTI1IEMgMTQuMDg5ODQ0IDIzLjA5Mzc1IDE0LjE3MTg3NSAyMy4wNTQ2ODggMTQuMjUgMjMgWiIvPjwvc3ZnPg==",MgI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMSA1IEwgMTEgMTEgTCA1IDExIEwgNSAxMyBMIDExIDEzIEwgMTEgMTkgTCA1IDE5IEwgNSAyMSBMIDExIDIxIEwgMTEgMjcgTCAxMyAyNyBMIDEzIDIxIEwgMTkgMjEgTCAxOSAyNyBMIDIxIDI3IEwgMjEgMjEgTCAyNyAyMSBMIDI3IDE5IEwgMjEgMTkgTCAyMSAxMyBMIDI3IDEzIEwgMjcgMTEgTCAyMSAxMSBMIDIxIDUgTCAxOSA1IEwgMTkgMTEgTCAxMyAxMSBMIDEzIDUgWiBNIDEzIDEzIEwgMTkgMTMgTCAxOSAxOSBMIDEzIDE5IFoiLz48L3N2Zz4=",fgI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSA5IDQgQyA3LjM0NiA0IDYgNS4zNDYgNiA3IEMgNiA4LjMwMTYwOTQgNi44Mzg3NDg2IDkuNDAyMTM5MSA4IDkuODE2NDA2MiBMIDggMTEuMzA0Njg4IEwgOCAyMy4yMDcwMzEgTCA4IDI3LjAyMzQzOCBDIDggMjcuNTYzNDM4IDguNDM2NTYyNSAyOCA4Ljk3NjU2MjUgMjggTCA5LjAyMzQzNzUgMjggQyA5LjU2MzQzNzUgMjggMTAgMjcuNTYzNDM3IDEwIDI3LjAyMzQzOCBMIDEwIDIyLjIyODUxNiBDIDEwLjMzNDcwNyAyMS44Mzk3NTYgMTEuMTM4NDIzIDIxLjA0Njg3NSAxMy40NDUzMTIgMjEuMDQ2ODc1IEMgMTQuNjY5MzEzIDIxLjA0Njg3NSAxNS42NzA0MjIgMjEuNDczNzgxIDE2LjczMjQyMiAyMS45MjU3ODEgQyAxNy43Njk0MjIgMjIuMzY3NzgxIDE4Ljg0MTg5MSAyMi44MjQyMTkgMjAuMDg3ODkxIDIyLjgyNDIxOSBDIDIyLjQ0Njg5MSAyMi44MjQyMTkgMjQuMDQ5Mzc1IDIxLjU4NDY4OCAyNC43MzQzNzUgMjEuMDU0Njg4IEwgMjQuODg2NzE5IDIwLjkzOTQ1MyBDIDI1LjQzNzcxOSAyMC41NDA0NTMgMjYgMTkuOTk2IDI2IDE5IEwgMjYgMTAuNjc1NzgxIEMgMjYgOS43Njc3ODEyIDI1LjIyMTgyOCA5IDI0LjI5ODgyOCA5IEMgMjMuODAzODI4IDkgMjMuNDQwNDA2IDkuMjg2NTkzNyAyMi45NDE0MDYgOS42ODM1OTM4IEMgMjIuMjc5NDA2IDEwLjIwNzU5NCAyMS4yODA4OTEgMTEgMjAuMDg3ODkxIDExIEMgMTkuMjcyODkxIDExIDE4LjQ3NzY4OCAxMC42MTk3MzQgMTcuNTU0Njg4IDEwLjE3NzczNCBDIDE2LjQwMzY4NyA5LjYyNTczNDQgMTUuMDk4MzU5IDkgMTMuNDQzMzU5IDkgQyAxMi4zMDgyNTcgOSAxMS40MjE2ODcgOS4xODgzMzkzIDEwLjcxMjg5MSA5LjQ1NzAzMTIgQyAxMS40ODkwNzEgOC45MTQxODI0IDEyIDguMDE2NzgwMiAxMiA3IEMgMTIgNS4zNDYgMTAuNjU0IDQgOSA0IHogTSA5IDYgQyA5LjU1MiA2IDEwIDYuNDQ5IDEwIDcgQyAxMCA3LjU1MSA5LjU1MiA4IDkgOCBDIDguNDQ4IDggOCA3LjU1MSA4IDcgQyA4IDYuNDQ5IDguNDQ4IDYgOSA2IHogTSAxMy40NDMzNTkgMTEgQyAxNC42NDUzNTkgMTEgMTUuNjM4NDA2IDExLjQ3NjQ2OSAxNi42OTE0MDYgMTEuOTgwNDY5IEMgMTcuNzM2NDA2IDEyLjQ4MjQ2OSAxOC44MTc4OTEgMTMgMjAuMDg3ODkxIDEzIEMgMjEuODQyODkxIDEzIDIzLjE1ODA0NyAxMi4wNTQ0ODQgMjMuOTk4MDQ3IDExLjM5NjQ4NCBMIDIzLjk5ODA0NyAxOS4wNjY0MDYgQyAyMy45OTcwNDcgMTkuMDcwNDA2IDIzLjk1Mjk4NCAxOS4xNDUyNjYgMjMuNzA4OTg0IDE5LjMyMjI2NiBMIDIzLjUwOTc2NiAxOS40NzQ2MDkgQyAyMi45NDI3NjYgMTkuOTEyNjA5IDIxLjc2Mjg5MSAyMC44MjQyMTkgMjAuMDg3ODkxIDIwLjgyNDIxOSBDIDE5LjI0OTg5MSAyMC44MjQyMTkgMTguNDQ2NjI1IDIwLjQ4MjkzNyAxNy41MTU2MjUgMjAuMDg1OTM4IEMgMTYuMzcyNjI1IDE5LjU5NzkzOCAxNS4wNzYzNTkgMTkuMDQ0OTIyIDEzLjQ0MzM1OSAxOS4wNDQ5MjIgQyAxMS44OTEzNTkgMTkuMDQ0OTIyIDEwLjc4NiAxOS4zNTggMTAgMTkuNzUgTCAxMCAxMi4zNjEzMjggQyAxMC4zNDUgMTEuOTA1MzI4IDExLjEzMjM1OSAxMSAxMy40NDMzNTkgMTEgeiIvPjwvc3ZnPg==",RgI="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";const XgI=s.defineComponent({name:"Header",setup(e){const{state:g,updateSearch:I,updateActiveGroup:C}=s.inject("store"),t=s.computed(()=>!g.options.hideSearch),i=s.computed(()=>!g.options.hideGroupIcons),A=JSON.parse(JSON.stringify(g.orderedGroupKeys)),n=s.computed(()=>g.options.staticTexts.placeholder||""),l=s.computed({get:()=>g.search,set:d=>I(d)}),o=[...g.groups,...Object.keys(g.options.additionalGroups).map(d=>({key:d,title:g.options.groupNames[d]?g.options.groupNames[d]:kJ(d)}))],a=[];return A.forEach(d=>{const m=o.findIndex(u=>u.key===d);m!==-1&&(a.push(o[m]),o.splice(m,1))}),{orderedGroups:a,orderedKeys:A,searchValue:l,updateActiveGroup:C,hasSearch:t,hasGroupIcons:i,placeholder:n,icons:{smileys_people:SJ,animals_nature:BgI,food_drink:ygI,activities:YgI,travel_places:VgI,objects:NgI,symbols:MgI,flags:fgI,...g.options.groupIcons,recent:RgI}}}}),HgI={key:0,class:"v3-header"},DgI={key:0,class:"v3-groups"},SgI=["onClick"],KgI=["title"],kgI=["src"],FgI={key:1,class:"v3-spacing"},zgI={key:2,class:"v3-search"},JgI=["placeholder"];function LgI(e,g,I,C,t,i){return e.hasGroupIcons||e.hasSearch?(s.openBlock(),s.createElementBlock("div",HgI,[e.hasGroupIcons?(s.openBlock(),s.createElementBlock("div",DgI,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.orderedGroups,A=>(s.openBlock(),s.createElementBlock("button",{key:A.key,type:"button",class:s.normalizeClass(["v3-group",{"v3-is-hidden":!e.icons[A.key]}]),onClick:n=>e.updateActiveGroup(A.key)},[s.createElementVNode("span",{title:A.title,class:"v3-icon"},[s.createElementVNode("img",{src:e.icons[A.key],alt:""},null,8,kgI)],8,KgI)],10,SgI))),128))])):s.createCommentVNode("",!0),e.hasGroupIcons&&e.hasSearch?(s.openBlock(),s.createElementBlock("div",FgI)):s.createCommentVNode("",!0),e.hasSearch?(s.openBlock(),s.createElementBlock("div",zgI,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":g[0]||(g[0]=A=>e.searchValue=A),type:"text",placeholder:e.placeholder},null,8,JgI),[[s.vModelText,e.searchValue]])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)}var TgI=Rb(XgI,[["render",LgI]]);const vgI=s.defineComponent({name:"Header",setup(){const{state:e,updateSkinTone:g}=s.inject("store"),I=s.ref(!1),C=s.ref(!1),t=s.computed(()=>e.skinTone),i=s.computed(()=>e.options.staticTexts.skinTone||"Skin tone"),A=s.computed(()=>!e.options.disableSkinTones),n=KJ()?"is-mac":"",l=s.computed(()=>({...e.emoji,src:lJ+"/"+e.emoji[pb]+".png"}));function o(m=!0){I.value=m}function a(){I.value=!I.value}function d(m){g(m),o(!1)}return s.watch(()=>e.emoji,()=>{C.value=!1}),{emoji:l,SKIN_TONES:v$g,updateSkinToneState:o,skinTone:I,stateSkinTone:t,selectSkinTone:d,toggleSkinToneState:a,EMOJI_RESULT_KEY:pb,EMOJI_NAME_KEY:JB,skinToneText:i,hasSkinTones:A,native:e.options.native,unicodeToEmoji:QB,platform:n,hasError:C}}}),jgI={class:"v3-foot-left"},xgI={key:0},OgI=["alt","src"],QgI={class:"v3-text"},UgI={class:"v3-text"},EgI=["onClick"];function PgI(e,g,I,C,t,i){return s.openBlock(),s.createElementBlock("div",{class:"v3-footer",onMouseleave:g[2]||(g[2]=A=>e.updateSkinToneState(!1))},[s.createElementVNode("div",jgI,[s.createElementVNode("span",{class:s.normalizeClass([e.platform,"v3-icon"])},[e.native||e.hasError?(s.openBlock(),s.createElementBlock("span",xgI,s.toDisplayString(e.unicodeToEmoji(e.emoji.r)),1)):(s.openBlock(),s.createElementBlock("img",{key:1,alt:e.unicodeToEmoji(e.emoji.r),src:e.emoji.src,onError:g[0]||(g[0]=A=>e.hasError=!0)},null,40,OgI))],2),s.createElementVNode("span",QgI," :"+s.toDisplayString(e.emoji[e.EMOJI_NAME_KEY][1]||e.emoji[e.EMOJI_NAME_KEY][0])+": ",1)]),e.hasSkinTones?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("button",{type:"button",class:"v3-tone",onClick:g[1]||(g[1]=(...A)=>e.toggleSkinToneState&&e.toggleSkinToneState(...A))},[s.createElementVNode("span",UgI,s.toDisplayString(e.skinToneText),1),s.createElementVNode("span",{class:s.normalizeClass(`v3-icon v3-tone-${e.stateSkinTone}`)},null,2)]),s.createElementVNode("div",{class:s.normalizeClass([e.skinTone?"v3-is-open":"","v3-skin-tones"])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.SKIN_TONES,A=>(s.openBlock(),s.createElementBlock("button",{key:A,type:"button",class:s.normalizeClass(["v3-skin-tone-"+A,"v3-skin-tone"]),onClick:n=>e.selectSkinTone(A)},null,10,EgI))),128))],2)],64)):s.createCommentVNode("",!0)],32)}var _gI=Rb(vgI,[["render",PgI]]);const $gI=s.defineComponent({name:"PickerRoot",components:{Header:TgI,Body:pgI,Footer:_gI},props:{type:{type:String,default:""},text:{type:String,default:""},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},groupNames:{type:Object,default:()=>({})}},emits:{select:e=>!0,"update:text":e=>!0},setup(e,{emit:g}){const I=s.ref(),C=s.ref(),t=s.ref(),i=s.ref(!1),A=s.ref(e.text),n=e.type==="input"||e.type==="textarea";let l=-1;const{state:o}=s.inject("store"),a=s.computed(()=>o.options.colorTheme);function d(G){if(n){const w=o.options.mode;w==="prepend"?A.value=G.i+A.value:w==="insert"&&l!==-1?(A.value=`${A.value.slice(0,l)}${G.i}${A.value.slice(l)}`,l+=G.i.length):A.value+=G.i,g("update:text",A.value)}g("select",G)}function m(){var G;I.value&&(l=((G=I.value)==null?void 0:G.selectionEnd)||-1)}function u(G){var w;!((w=G.target)!=null&&w.closest(".v3-input-picker-wrap"))&&i.value&&(i.value=!1)}function h(){if(C.value&&t.value&&n){let G=o.options.offset;typeof G!="number"&&(G=6),dgI(C.value,t.value,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,G]}}]}),document.body.addEventListener("click",u)}}function Z(G){A.value=G.target.value||"",g("update:text",A.value)}return s.onMounted(()=>{h()}),s.onBeforeUnmount(()=>{document.body.removeEventListener("click",u)}),{face:SJ,open:i,onSelect:d,input:A,elem:I,updateCursor:m,button:C,picker:t,isInputType:n,onChangeText:Z,colorTheme:a}}}),qgI={key:0,class:"v3-input-emoji-picker"},gII={class:"v3-input-picker-root"},III=["value"],eII=["value"],CII=["src"];function tII(e,g,I,C,t,i){const A=s.resolveComponent("Header"),n=s.resolveComponent("Body"),l=s.resolveComponent("Footer");return e.isInputType?(s.openBlock(),s.createElementBlock("div",qgI,[s.createElementVNode("div",gII,[e.type==="input"?(s.openBlock(),s.createElementBlock("input",{key:0,ref:"elem",value:e.input,type:"text",class:"v3-emoji-picker-input",onInput:g[0]||(g[0]=(...o)=>e.onChangeText&&e.onChangeText(...o)),onBlur:g[1]||(g[1]=(...o)=>e.updateCursor&&e.updateCursor(...o))},null,40,III)):(s.openBlock(),s.createElementBlock("textarea",{key:1,ref:"elem",value:e.input,class:"v3-emoji-picker-textarea",onInput:g[2]||(g[2]=(...o)=>e.onChangeText&&e.onChangeText(...o)),onBlur:g[3]||(g[3]=(...o)=>e.updateCursor&&e.updateCursor(...o))},null,40,eII)),s.createElementVNode("div",{class:s.normalizeClass(["v3-input-picker-wrap",e.open?"v3-picker-is-open":""])},[s.createElementVNode("button",{ref:"button",type:"button",class:"v3-input-picker-icon",onClick:g[4]||(g[4]=o=>e.open=!e.open)},[s.createElementVNode("img",{src:e.face,alt:""},null,8,CII)],512),s.createElementVNode("div",{ref:"picker",class:s.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[s.createVNode(A),s.createVNode(n,{onSelect:e.onSelect},null,8,["onSelect"]),s.createVNode(l)],2)],2)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["v3-emoji-picker","v3-color-theme-"+e.colorTheme])},[s.createVNode(A),s.createVNode(n,{onSelect:e.onSelect},null,8,["onSelect"]),s.createVNode(l)],2))}var iII=Rb($gI,[["render",tII]]);const AII=s.defineComponent({name:"Picker",components:{PickerRoot:iII},props:{native:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},hideGroupIcons:{type:Boolean,default:!1},hideGroupNames:{type:Boolean,default:!1},staticTexts:{type:Object,default:()=>({})},disableStickyGroupNames:{type:Boolean,default:!1},disabledGroups:{type:Array,default:()=>[]},groupNames:{type:Object,default:()=>({})},disableSkinTones:{type:Boolean,default:!1},text:{type:String,default:""},mode:{type:String,default:"insert"},offset:{type:Number,default:6},additionalGroups:{type:Object,default:()=>({})},groupOrder:{type:Array,default:()=>[]},groupIcons:{type:Object,default:()=>({})},pickerType:{type:String,default:""},displayRecent:{type:Boolean,default:!1},theme:{type:String,default:"light"}},emits:{"update:text":e=>!0,select:e=>!0},setup(e,{emit:g}){const I=s.ref(e.text);function C(i){I.value=i||"",g("update:text",I.value)}const t=Aqg();return t.updateOptions({native:e.native,hideSearch:e.hideSearch,hideGroupIcons:e.hideGroupIcons,hideGroupNames:e.hideGroupNames,staticTexts:{...j$g,...e.staticTexts},disableStickyGroupNames:e.disableStickyGroupNames,disabledGroups:e.disabledGroups,groupNames:{...sJ,...e.groupNames},disableSkinTones:e.disableSkinTones,displayRecent:e.displayRecent,additionalGroups:e.additionalGroups,mode:e.mode,offset:e.offset,groupOrder:e.groupOrder,groupIcons:e.groupIcons,colorTheme:x$g.includes(e.theme)?e.theme:"light"}),s.provide("store",t),{type:e.pickerType,input:I,onChangeText:C}}});function nII(e,g,I,C,t,i){const A=s.resolveComponent("picker-root");return s.openBlock(),s.createBlock(A,{type:e.type,text:e.input,onSelect:g[0]||(g[0]=n=>e.$emit("select",n)),"onUpdate:text":e.onChangeText},null,8,["type","text","onUpdate:text"])}var bf=Rb(AII,[["render",nII]]),Xb=(e=>(e.primary="primary",e.secondary="secondary",e.red="red",e.green="green",e.yellow="yellow",e.blue="blue",e.white="white",e.black="black",e))(Xb||{});const FJ=zg(s.defineComponent({__name:"DropZone",emits:["files-dropped"],setup(e,{emit:g}){const I=g,C=s.reactive({dragging:!1,hasMedia:!1}),t=G=>new Promise(w=>setTimeout(w,G)),i=G=>G?Array.from(G.items??[]).some(W=>{if(W.kind!=="file")return!1;const B=W.type.toLowerCase();return B.startsWith("image/")||B.startsWith("video/")}):!1,A=G=>{var w;return G?(w=G.types)!=null&&w.includes("Files")?!0:Array.from(G.items??[]).some(W=>W.kind==="file"):!1},n=G=>G.files&&G.files.length>0?Array.from(G.files):Array.from(G.items??[]).filter(w=>w.kind==="file").map(w=>w.getAsFile()).filter(w=>!!w),l=async(G,w=5)=>{for(let W=0;W<=w;W++){const B=n(G);if(B.length||W===w)return B;await t(100)}return[]},o=async(G,w)=>{if(G.preventDefault(),C.dragging=!1,!G.dataTransfer)return;const W=await l(G.dataTransfer);W.length&&I("files-dropped",{files:W,onlyMedia:w})},a=G=>{G.preventDefault(),A(G.dataTransfer)&&(C.dragging=!0,C.hasMedia=i(G.dataTransfer))},d=G=>{G.preventDefault(),C.hasMedia=i(G.dataTransfer)},m=G=>{G.preventDefault(),C.dragging=!1},u=G=>{G.clientX===0&&G.clientY===0&&(C.dragging=!1)},h=()=>{C.dragging=!1},Z=G=>{G.clientX===0&&G.clientY===0&&(C.dragging=!1)};return s.onMounted(()=>{window.addEventListener("dragenter",a),window.addEventListener("dragover",d),window.addEventListener("drop",m),window.addEventListener("dragleave",u),window.addEventListener("dragend",h)}),s.onUnmounted(()=>{window.removeEventListener("dragenter",a),window.removeEventListener("dragover",d),window.removeEventListener("drop",m),window.removeEventListener("dragleave",u),window.removeEventListener("dragend",h)}),(G,w)=>(s.openBlock(),s.createBlock(s.Transition,{name:"drag"},{default:s.withCtx(()=>[C.dragging?(s.openBlock(),s.createElementBlock("div",{key:0,class:"drag-overlay",onDragover:w[3]||(w[3]=s.withModifiers(()=>{},["prevent"]))},[C.hasMedia?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",{class:"drag-overlay__zone",onDragleave:Z,onDrop:w[0]||(w[0]=s.withModifiers(W=>o(W,!1),["prevent"]))},[...w[4]||(w[4]=[s.createElementVNode("div",{class:"drag-overlay__title"},"Загрузить файл",-1)])],32),s.createElementVNode("div",{class:"drag-overlay__zone drag-overlay__zone--media",onDragleave:Z,onDrop:w[1]||(w[1]=s.withModifiers(W=>o(W,!0),["prevent"]))},[...w[5]||(w[5]=[s.createElementVNode("div",{class:"drag-overlay__title"},"Загрузить фото/видео",-1)])],32)],64)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"drag-overlay__zone drag-overlay__zone--full",onDragleave:Z,onDrop:w[2]||(w[2]=s.withModifiers(W=>o(W,!1),["prevent"]))},[...w[6]||(w[6]=[s.createElementVNode("div",{class:"drag-overlay__title"},"Загрузить файл",-1)])],32))],32)):s.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-7c5caf8b"]]),lII=["data-mention-active","onClick"],sII={class:"editor-component__mention-content"},oII={class:"editor-component__mention-label"},aII={key:0,class:"editor-component__mention-subtitle"},dII=zg(s.defineComponent({__name:"ContentEditorMentionList",props:{items:{},selectedIndex:{},isModal:{type:Boolean},isFixed:{type:Boolean},positionStyle:{},getKey:{type:Function},getLabel:{type:Function},getSubtitle:{type:Function},getAvatarUrl:{type:Function},getAvatarInitials:{type:Function},getIsOnline:{type:Function}},emits:["select"],setup(e,{emit:g}){const I=e,C=g;return(t,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["editor-component__mentions",{"editor-component__mentions--modal":I.isModal,"editor-component__mentions--fixed":I.isFixed}]),style:s.normalizeStyle(I.positionStyle)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.items,(A,n)=>(s.openBlock(),s.createElementBlock("button",{key:I.getKey(A,n),type:"button",class:s.normalizeClass(["editor-component__mention-item",{"editor-component__mention-item--active":n===I.selectedIndex}]),"data-mention-active":n===I.selectedIndex,onClick:l=>C("select",A)},[s.createVNode(J0,{class:"editor-component__mention-avatar",url:I.getAvatarUrl(A),initials:I.getAvatarInitials(A),"is-online":I.getIsOnline(A)},null,8,["url","initials","is-online"]),s.createElementVNode("span",sII,[s.createElementVNode("span",oII,s.toDisplayString(I.getLabel(A)),1),I.getSubtitle(A)?(s.openBlock(),s.createElementBlock("span",aII,s.toDisplayString(I.getSubtitle(A)),1)):s.createCommentVNode("",!0)])],10,lII))),128))],6))}}),[["__scopeId","data-v-bd7f46a2"]]),cII={class:"formatting-toolbar__group"},rII=["aria-label","onClick"],mII={class:"formatting-toolbar__group"},uII=["aria-label","onClick"],hII={class:"formatting-toolbar__link-modal"},bII={class:"formatting-toolbar__link-modal-header"},ZII={class:"formatting-toolbar__field"},GII=["onKeydown"],wII={class:"formatting-toolbar__field"},WII=["onKeydown"],Jd=16,pII=zg(s.defineComponent({__name:"ContentEditorFormattingToolbar",props:{editor:{}},setup(e){const g=e,I=s.ref(null),C=s.ref(!1),t=s.ref(!1),i=s.ref(""),A=s.ref(""),n=s.ref(null),l=s.ref({}),o=s.ref(null),a=s.ref("center"),d=s.ref(null),m=s.ref(""),u=s.ref(!1);let h=null;const Z=()=>{t.value=!1,i.value="",A.value="",d.value=null,m.value=""},G=(Cg,Zg)=>Cg.state.doc.textBetween(Zg.from,Zg.to," "),w=(Cg,Zg)=>Cg.state.doc.textBetween(Zg.from,Zg.to,`
1569
1569
  `,`
1570
- `).split(/\r?\n/).map(Mg=>Mg.trim()).filter(Boolean),W=()=>{var Cg;return((Cg=I.value)==null?void 0:Cg.offsetWidth)??0},B=()=>({position:"fixed",left:"0px",top:"0px",transform:"none",visibility:"hidden",pointerEvents:"none",zIndex:"1000"}),y=Cg=>{var Zg;if(!Cg||Cg.isDestroyed)return null;try{return((Zg=Cg.view)==null?void 0:Zg.dom)??null}catch{return null}},Y=(Cg,Zg)=>{if(!Zg)return!1;const Mg=y(Cg);if(!Mg)return!1;const WI=Zg instanceof Element?Zg:Zg.parentElement;return!!WI&&Mg.contains(WI)},f=Cg=>{const Zg=y(Cg),Mg=Zg==null?void 0:Zg.ownerDocument.getSelection();if(!Mg||Mg.rangeCount===0||Mg.isCollapsed||!Y(Cg,Mg.anchorNode)||!Y(Cg,Mg.focusNode))return null;const WI=Mg.getRangeAt(0),pI=Array.from(WI.getClientRects()).filter(ge=>ge.width>0||ge.height>0);if(pI.length>0){const ge=Math.min(...pI.map($e=>$e.left)),uC=Math.max(...pI.map($e=>$e.right)),he=Math.min(...pI.map($e=>$e.top)),Ie=Math.max(...pI.map($e=>$e.bottom));return new DOMRect(ge,he,uC-ge,Ie-he)}const KI=WI.getBoundingClientRect();return KI.width>0||KI.height>0?KI:null},M=Cg=>{const Zg=W();if(!Zg)return Cg;const Mg=window.innerWidth-Zg-Jd;return Mg<=Jd?Math.max((window.innerWidth-Zg)/2,0):Math.min(Math.max(Cg,Jd),Mg)},K=Cg=>{var KI;const Zg=((KI=I.value)==null?void 0:KI.offsetWidth)??0;if(!Zg)return Cg;const Mg=Zg/2,WI=Jd+Mg,pI=window.innerWidth-Jd-Mg;return WI>pI?window.innerWidth/2:Math.min(Math.max(Cg,WI),pI)},F=Cg=>{const Zg=W();if(!Zg)return"center";const Mg=Cg.left-Jd,WI=window.innerWidth-Cg.right-Jd,pI=Zg/2;return WI<pI&&Mg>WI?"right":Mg<pI&&WI>Mg?"left":"center"},X=(Cg,Zg)=>Zg==="left"?{left:M(Cg.left),transform:"none"}:Zg==="right"?{left:M(Cg.right-W()),transform:"none"}:{left:K(Cg.left+Cg.width/2),transform:"translateX(-50%)"},z=(Cg,Zg)=>Zg==="center"?K(Cg):M(Cg),L=()=>{var Cg;return(Cg=g.editor)==null?void 0:Cg.chain().focus()},O=(Cg=d.value)=>{!g.editor||!Cg||g.editor.chain().focus().setTextSelection(Cg).run()},Ig=(Cg={})=>{const Zg=g.editor,Mg=y(Zg);if(!Zg||!Zg.view||!Mg){C.value=!1;return}const{state:WI,view:pI,isEditable:KI}=Zg,{selection:ge}=WI;if(!KI||ge.empty||!pI.hasFocus()||u.value){C.value=!1,l.value=B(),o.value=null,a.value="center";return}const uC=f(Zg)??N6g(pI,ge.from,ge.to);if(!C.value){l.value=B(),C.value=!0,s.nextTick(()=>eg(Cg));return}const he=Cg.preserveHorizontal?a.value:F(uC),Ie=Cg.preserveHorizontal?{left:z(o.value??X(uC,he).left,he),transform:he==="center"?"translateX(-50%)":"none"}:X(uC,he);a.value=he,o.value=Ie.left,l.value={position:"fixed",left:`${Ie.left}px`,top:`${Math.max(uC.top-52,12)}px`,transform:Ie.transform,visibility:"visible",pointerEvents:"auto",zIndex:"1000"}},eg=(Cg={})=>{h!==null&&cancelAnimationFrame(h),h=requestAnimationFrame(()=>{h=null,Ig(Cg)})},Q=()=>eg({preserveHorizontal:!0}),P=()=>{eg()},cg=()=>{eg()},ng=()=>{eg()},hg=()=>{C.value=!1},fg=Cg=>{Cg.button!==0||t.value||(u.value=!0,C.value=!1)},yg=()=>{u.value&&(u.value=!1,eg())},mg=[{key:"bold",icon:rg.bold,hint:"Жирный",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("bold"))??!1},run:()=>{var Cg;return(Cg=L())==null?void 0:Cg.toggleBold().run()}},{key:"italic",icon:rg.italic,hint:"Курсив",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("italic"))??!1},run:()=>{var Cg;return(Cg=L())==null?void 0:Cg.toggleItalic().run()}},{key:"underline",icon:rg.underline,hint:"Подчёркнутый",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("underline"))??!1},run:()=>{var Cg;return(Cg=L())==null?void 0:Cg.toggleUnderline().run()}},{key:"strike",icon:rg.strikethrough,hint:"Зачёркнутый",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("strike"))??!1},run:()=>{var Cg;return(Cg=L())==null?void 0:Cg.toggleStrike().run()}}],Vg=async()=>{var KI,ge,uC;const Cg=g.editor;if(!Cg)return;const{from:Zg,to:Mg,empty:WI}=Cg.state.selection;if(WI)return;d.value={from:Zg,to:Mg},m.value=G(Cg,{from:Zg,to:Mg}),i.value=m.value;const pI=(KI=Cg.getAttributes("link"))==null?void 0:KI.href;A.value=typeof pI=="string"&&pI.trim().length>0?pI:m.value,t.value=!0,await s.nextTick(),(ge=n.value)==null||ge.focus(),(uC=n.value)==null||uC.select()},Wg=()=>{const Cg=g.editor;if(!Cg)return;if(Cg.isActive("orderedList")){Cg.chain().focus().toggleOrderedList().run();return}const{from:Zg,to:Mg,empty:WI}=Cg.state.selection;if(WI){Cg.chain().focus().toggleOrderedList().run();return}const pI=w(Cg,{from:Zg,to:Mg});pI.length&&Cg.chain().focus().insertContentAt({from:Zg,to:Mg},{type:"orderedList",attrs:{start:1},content:pI.map(KI=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:KI}]}]}))}).run()},eI=[{key:"code",icon:rg.code,hint:"Код",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("code"))??!1},run:()=>{var Cg;return(Cg=L())==null?void 0:Cg.toggleCode().run()}},{key:"link",icon:rg.link,hint:"Ссылка",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("link"))??!1},run:()=>{var Cg;if((Cg=g.editor)!=null&&Cg.isActive("link")){g.editor.chain().focus().extendMarkRange("link").unsetLink().run(),Ig({preserveHorizontal:!0});return}Vg()}},{key:"blockquote",icon:rg.blockquote,hint:"Цитата",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("orderedList"))??!1},run:Wg}],gI=Cg=>{const Zg=Cg.trim();return Zg?/^(https?:\/\/|mailto:|tel:)/i.test(Zg)?Zg:`https://${Zg}`:""},TI=()=>{const Cg=g.editor,Zg=d.value;if(!Cg||!Zg)return;const Mg=i.value.trim()||m.value.trim(),WI=gI(A.value);if(!Mg){qI();return}Cg.chain().focus().insertContentAt(Zg,WI?{type:"text",text:Mg,marks:[{type:"link",attrs:{href:WI,class:"link"}}]}:Mg).run();const pI={from:Zg.from,to:Zg.from+Mg.length};Z(),O(pI),Ig({preserveHorizontal:!0})},qI=()=>{const Cg=d.value;Z(),O(Cg),Ig({preserveHorizontal:!0})},FI=Cg=>{const Zg=y(Cg);!Cg||!Zg||(Cg.on("selectionUpdate",P),Cg.on("focus",cg),Cg.on("blur",hg),Cg.on("transaction",ng),Zg.addEventListener("pointerdown",fg))},bI=Cg=>{var Zg;Cg&&(Cg.off("selectionUpdate",P),Cg.off("focus",cg),Cg.off("blur",hg),Cg.off("transaction",ng),(Zg=y(Cg))==null||Zg.removeEventListener("pointerdown",fg))};return s.onMounted(()=>{FI(g.editor),window.addEventListener("resize",Q),window.addEventListener("scroll",Q,!0),window.addEventListener("pointerup",yg,!0)}),s.onBeforeUnmount(()=>{bI(g.editor),window.removeEventListener("resize",Q),window.removeEventListener("scroll",Q,!0),window.removeEventListener("pointerup",yg,!0),h!==null&&cancelAnimationFrame(h)}),s.watch(()=>g.editor,(Cg,Zg)=>{Zg!==Cg&&(bI(Zg),FI(Cg),eg())}),(Cg,Zg)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[C.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"toolbarRef",ref:I,class:"formatting-toolbar",style:s.normalizeStyle(l.value),onMousedown:Zg[0]||(Zg[0]=s.withModifiers(()=>{},["prevent"]))},[s.createElementVNode("div",cII,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(mg,Mg=>s.createVNode(hd,{key:Mg.key,hint:Mg.hint,position:"top-center"},{default:s.withCtx(()=>[s.createElementVNode("button",{type:"button",class:s.normalizeClass(["formatting-toolbar__button",{"formatting-toolbar__button--active":Mg.isActive()}]),"aria-label":Mg.hint,onClick:Mg.run},[s.createVNode(Xg,{name:Mg.icon},null,8,["name"])],10,rII)]),_:2},1032,["hint"])),64))]),Zg[3]||(Zg[3]=s.createElementVNode("div",{class:"formatting-toolbar__divider"},null,-1)),s.createElementVNode("div",mII,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(eI,Mg=>s.createVNode(hd,{key:Mg.key,hint:Mg.hint,position:"top-center"},{default:s.withCtx(()=>[s.createElementVNode("button",{type:"button",class:s.normalizeClass(["formatting-toolbar__button",{"formatting-toolbar__button--active":Mg.isActive()}]),"aria-label":Mg.hint,onClick:Mg.run},[s.createVNode(Xg,{name:Mg.icon},null,8,["name"])],10,uII)]),_:2},1032,["hint"])),64))])],36)):s.createCommentVNode("",!0),t.value?(s.openBlock(),s.createBlock(qW,{key:1,open:t.value,position:"center",width:"min(370px, -45px + 100vw)",height:"auto",class:"formatting-toolbar__link-modal-container",onClose:qI},{default:s.withCtx(()=>[s.createElementVNode("div",hII,[s.createElementVNode("div",bII,[Zg[4]||(Zg[4]=s.createElementVNode("div",{class:"formatting-toolbar__link-modal-title"},"Ссылка",-1)),s.createElementVNode("button",{type:"button",class:"formatting-toolbar__link-modal-close","aria-label":"Закрыть",onClick:qI},[s.createVNode(Xg,{name:s.unref(rg).crossLarge},null,8,["name"])])]),s.createElementVNode("label",ZII,[Zg[5]||(Zg[5]=s.createElementVNode("span",{class:"formatting-toolbar__field-label"},"Текст:",-1)),s.withDirectives(s.createElementVNode("input",{ref_key:"linkTextInputRef",ref:n,"onUpdate:modelValue":Zg[1]||(Zg[1]=Mg=>i.value=Mg),class:"formatting-toolbar__field-input",type:"text",placeholder:"Важная ссылка",onKeydown:[s.withKeys(s.withModifiers(TI,["prevent"]),["enter"]),s.withKeys(s.withModifiers(qI,["prevent"]),["esc"])]},null,40,GII),[[s.vModelText,i.value]])]),s.createElementVNode("label",wII,[Zg[6]||(Zg[6]=s.createElementVNode("span",{class:"formatting-toolbar__field-label"},"Ссылка:",-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":Zg[2]||(Zg[2]=Mg=>A.value=Mg),class:"formatting-toolbar__field-input",type:"text",placeholder:"https://example.com",onKeydown:[s.withKeys(s.withModifiers(TI,["prevent"]),["enter"]),s.withKeys(s.withModifiers(qI,["prevent"]),["esc"])]},null,40,WII),[[s.vModelText,A.value]])]),s.createElementVNode("div",{class:"formatting-toolbar__link-modal-actions"},[s.createElementVNode("button",{type:"button",class:"formatting-toolbar__link-modal-save",onClick:TI}," Сохранить ")])])]),_:1},8,["open"])):s.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-f353dee1"]]),BII={key:0,class:"editor-component-slot"},yII={key:5,class:"right-buttons"},YII={key:6,class:"toolbar"},VII={class:"attach-modal"},NII={class:"attach-modal__header"},MII={key:0,class:"attach-modal__attachments__all"},fII={class:"attach-modal__media-groups"},RII=["src"],XII=["src","alt"],HII={key:0,class:"attach-modal__attachments"},DII={class:"attach-modal__attachment-icon"},SII={class:"attach-modal__attachment-body"},KII={class:"attach-modal__attachment-name"},kII={class:"attach-modal__attachment-size"},FII={key:0,class:"editor-component-slot"},zII={class:"attach-modal__toolbar"},JII={class:"attach-modal__toolbar-left"},LII={class:"camera-selection"},TII={class:"camera-selection-options"},Ho="[ContentEditor]",Zf=s.defineComponent({__name:"ContentEditor",props:s.mergeModels({activeAttachFile:{type:Boolean},activeSelectUser:{type:Boolean},activeSend:{type:Boolean},disableSendOnEnter:{type:Boolean},isMentionModalOpen:{type:Boolean},mentionItems:{},mentionConfig:{},mentionItemKey:{type:Function},mentionItemLabel:{type:Function},mentionItemSubtitle:{type:Function},mentionItemAvatarUrl:{type:Function},mentionItemAvatarInitials:{type:Function},mentionItemIsOnline:{type:Function},mentionInsertLabel:{type:Function},mentionInsertAttrs:{type:Function}},{modelValue:{},modelModifiers:{}}),emits:s.mergeModels(["unmount-send","unmount-attach-file","mention-change"],["update:modelValue"]),setup(e,{expose:g,emit:I}){const C=e,t=s.useModel(e,"modelValue"),i=s.ref(!1),A=s.ref({vertical:"bottom",horizontal:"left"}),n=I,l=s.ref(null),o=s.ref(null),a=s.ref(null),d=s.ref(null),m=s.ref({}),u=s.ref(!1),h=s.ref(!1),Z=s.ref([]),G=s.ref([]),w=s.ref(null),W=s.ref([]),B=s.ref(null),y=s.ref(null),Y=s.ref(0),f=s.computed(()=>Z.value.length>0||G.value.length>0),M=s.computed(()=>{var x;return!C.activeSend&&((x=Jg.value)==null?void 0:x.isEmpty)&&!f.value}),K=s.computed(()=>C.mentionItems??[]),F=s.computed(()=>!!C.activeSelectUser&&B.value!==null&&y.value!==B.value),X=(x,gg)=>{var tg,wg,Qg;return((wg=(tg=C.mentionConfig)==null?void 0:tg.getKey)==null?void 0:wg.call(tg,x,gg))??((Qg=C.mentionItemKey)==null?void 0:Qg.call(C,x,gg))??gg},z=x=>{var gg,tg,wg;return((tg=(gg=C.mentionConfig)==null?void 0:gg.getLabel)==null?void 0:tg.call(gg,x))??((wg=C.mentionItemLabel)==null?void 0:wg.call(C,x))??""},L=x=>{var gg,tg,wg;return((tg=(gg=C.mentionConfig)==null?void 0:gg.getSubtitle)==null?void 0:tg.call(gg,x))??((wg=C.mentionItemSubtitle)==null?void 0:wg.call(C,x))??""},O=x=>{var gg,tg,wg;return((tg=(gg=C.mentionConfig)==null?void 0:gg.getAvatarUrl)==null?void 0:tg.call(gg,x))??((wg=C.mentionItemAvatarUrl)==null?void 0:wg.call(C,x))??""},Ig=x=>{var gg,tg,wg;return((tg=(gg=C.mentionConfig)==null?void 0:gg.getAvatarInitials)==null?void 0:tg.call(gg,x))??((wg=C.mentionItemAvatarInitials)==null?void 0:wg.call(C,x))??z(x)},eg=x=>{var gg,tg,wg;return((tg=(gg=C.mentionConfig)==null?void 0:gg.getIsOnline)==null?void 0:tg.call(gg,x))??((wg=C.mentionItemIsOnline)==null?void 0:wg.call(C,x))??!1},Q=s.computed(()=>["emoji-picker",`emoji-picker-${A.value.vertical}`,`emoji-picker-${A.value.horizontal}`,M.value?"":"translateX"]),P=s.computed(()=>[{value:"Фото или видео",function:()=>wn(!0),iconName:rg.image},{value:"Файл",function:()=>wn(!1),iconName:rg.file}]),cg=s.computed(()=>[{value:"Камера",function:()=>u.value=!0,iconName:rg.camera},...P.value]),ng=s.computed(()=>[...G.value.map((x,gg)=>({id:`media-${x.name}-${x.lastModified}-${gg}`,file:x,kind:"media",index:gg})),...Z.value.map((x,gg)=>({id:`file-${x.name}-${x.lastModified}-${gg}`,file:x,kind:"file",index:gg}))]),hg=s.computed(()=>ng.value.filter(x=>x.kind==="file")),fg=s.computed(()=>G.value.map((x,gg)=>({id:`media-preview-${x.name}-${x.lastModified}-${gg}`,file:x,index:gg,url:W.value[gg]||"",isVideo:pI(x).startsWith("video/")})).filter(x=>!!x.url)),yg=(x,gg)=>{const tg=[];for(let wg=0;wg<x.length;wg+=gg)tg.push(x.slice(wg,wg+gg));return tg},mg=s.computed(()=>yg(fg.value,10)),Vg=s.computed(()=>(h.value?a.value:o.value)??null),Wg=s.computed(()=>{const x=Vg.value;return(x==null?void 0:x.closest("dialog"))??"body"}),eI=()=>{if(!F.value||!K.value.length)return;const x=Vg.value;if(!x)return;const gg=x.getBoundingClientRect(),tg=12,wg=h.value?10:3,Qg=Math.min(gg.width,window.innerWidth-tg*2),iI=window.innerWidth-Qg-tg,bi=Math.min(Math.max(gg.left,tg),iI);m.value={left:`${bi}px`,bottom:`${window.innerHeight-gg.top+wg}px`,width:`${Qg}px`,zIndex:"1001"}},gI=()=>{s.nextTick(()=>{const x=d.value;if(!x)return;const gg=x.querySelector('[data-mention-active="true"]');gg instanceof HTMLElement&&gg.scrollIntoView({block:"nearest"})})},TI=()=>window.innerWidth<=480,qI=()=>window.innerWidth<=480&&window.matchMedia("(hover: none) and (pointer: coarse)").matches,FI=x=>{u.value=!1,wn(!0,x)};let bI=!1,Cg=null;const Zg={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",heic:"image/heic",heif:"image/heif",mov:"video/quicktime",mp4:"video/mp4",m4v:"video/x-m4v",webm:"video/webm"},Mg={"image/png":"png","image/x-png":"png","image/jpeg":"jpg","image/jpg":"jpg","image/pjpeg":"jpg","image/gif":"gif","image/webp":"webp","image/bmp":"bmp","image/x-ms-bmp":"bmp","image/heic":"heic","image/heif":"heif","video/quicktime":"mov","video/mp4":"mp4","video/x-m4v":"m4v","video/webm":"webm"},WI=x=>{var tg;const gg=x.match(/\.([^.]+)$/);return((tg=gg==null?void 0:gg[1])==null?void 0:tg.toLowerCase())??""},pI=x=>{if(x.type)return x.type.toLowerCase();const gg=WI(x.name);return Zg[gg]??""},KI=(x,gg)=>{const tg=x.name.trim(),wg=Mg[gg],Qg=!!WI(tg);if(!tg){const iI=gg.startsWith("image/")?"image":gg.startsWith("video/")?"video":"file";return wg?`${iI}-${Date.now()}.${wg}`:`${iI}-${Date.now()}`}return Qg||!wg?tg:`${tg}.${wg}`},ge=(x,gg=pI(x))=>({fileName:x.name,fileType:x.type,normalizedMimeType:gg,fileSize:x.size,lastModified:x.lastModified}),uC=x=>x.startsWith("image/")||x.startsWith("video/"),he=async x=>{const gg=pI(x),tg=KI(x,gg);if(console.warn(`${Ho} normalize file`,{...ge(x,gg),normalizedFileName:tg,shouldDetach:uC(gg)}),gg===x.type&&tg===x.name&&!uC(gg))return console.warn(`${Ho} keep original file`,ge(x,gg)),x;try{const wg=await x.arrayBuffer();return console.warn(`${Ho} detached file copy created`,{...ge(x,gg),normalizedFileName:tg,bufferSize:wg.byteLength}),new File([wg],tg,{type:gg||x.type,lastModified:x.lastModified})}catch(wg){return console.warn(`${Ho} failed to detach file, using original`,{...ge(x,gg),normalizedFileName:tg,error:wg}),x}},Ie=x=>{const gg=new DataTransfer;return x.forEach(tg=>gg.items.add(tg)),gg.files},$e=async(x,gg)=>{console.warn(`${Ho} emitAttachFiles called`,{inputCount:Array.from(x).length,onlyMedia:gg});const tg=await Promise.all(Array.from(x,he));if(!tg.length){console.warn(`${Ho} no files after normalization`);return}const wg=gg??tg.every(Qg=>{const iI=pI(Qg);return iI.startsWith("image/")||iI.startsWith("video/")});console.warn(`${Ho} emit normalized files`,{files:tg.map(Qg=>ge(Qg)),isOnlyMedia:wg}),n("unmount-attach-file",Ie(tg),wg)},bt=async(x,gg)=>{const tg=await Promise.all(Array.from(x,he));if(tg.length){if(gg){const wg=tg.filter(iI=>uC(pI(iI))),Qg=tg.filter(iI=>!uC(pI(iI)));wg.length&&(G.value=[...G.value,...wg]),Qg.length&&(Z.value=[...Z.value,...Qg])}else Z.value=[...Z.value,...tg];h.value=!0}},HA=()=>{Z.value=[],G.value=[]},Zt=()=>{sg(),h.value=!1,HA()},xt=(x,gg)=>{if(x==="media"){const wg=G.value.filter((Qg,iI)=>iI!==gg);G.value=wg,!wg.length&&!Z.value.length&&Zt();return}const tg=Z.value.filter((wg,Qg)=>Qg!==gg);Z.value=tg,!tg.length&&!G.value.length&&Zt()},_i=async(x,gg)=>{var wg;const tg=x.target;(wg=tg.files)!=null&&wg.length&&(await bt(tg.files,gg),tg.value="")},$i=x=>x<1024?`${x} B`:x<1024*1024?`${(x/1024).toFixed(1)} KB`:`${(x/(1024*1024)).toFixed(1)} MB`,ir=x=>{if(!x)return"";const gg=x.lastIndexOf(".");if(gg===-1)return x;const tg=x.slice(0,gg),wg=x.slice(gg);return tg.length<=25?x:`${tg.slice(0,22)} ... ${wg}`};s.watch(()=>G.value,x=>{W.value.forEach(gg=>URL.revokeObjectURL(gg)),W.value=x.map(gg=>URL.createObjectURL(gg))},{deep:!0}),s.watch(()=>G.value[0],(x,gg)=>{w.value&&(URL.revokeObjectURL(w.value),w.value=null),!(!x||x===gg)&&(w.value=URL.createObjectURL(x))});const Ar=Ai.create({name:"spanNode",inline:!0,group:"inline",atom:!0,selectable:!1,addAttributes(){return{class:{default:"link"},content:{default:""},userId:{default:null,parseHTML:x=>x.getAttribute("data-user-id"),renderHTML:x=>x.userId?{"data-user-id":x.userId}:{}}}},parseHTML(){return[{tag:"span[data-span]"}]},renderHTML({node:x,HTMLAttributes:gg}){return["span",IC(gg,{"data-span":"",contenteditable:"false",class:x==null?void 0:x.attrs.class}),x==null?void 0:x.attrs.content]}}),Jg=e_g({extensions:[J$g.configure({link:!1,heading:!1,blockquote:!1,codeBlock:!1}),g$g.configure({openOnClick:!1,HTMLAttributes:{class:"link"}}),L$g.configure({placeholder:"Начните печатать...",emptyEditorClass:"is-editor-empty"}),Ar],content:t.value,editorProps:{handlePaste(x,gg){const tg=gg.clipboardData;return tg&&tg.files.length>0&&C.activeAttachFile?(gg.preventDefault(),gg.stopPropagation(),bI||(bI=!0,bt(tg.files,!0),setTimeout(()=>{bI=!1},200)),!0):!1}},onUpdate:({editor:x})=>{if(t.value=x.getHTML(),C.activeSelectUser){const{$from:gg}=x.state.selection,tg=Math.max(0,gg.parentOffset-50),Qg=gg.parent.textBetween(tg,gg.parentOffset,null,"").match(/@([^\s]*)$/);if(Qg){const iI=Qg[1].toLowerCase();B.value!==iI&&(Y.value=0),B.value=iI,n("mention-change",iI)}else B.value=null,y.value=null,n("mention-change",null)}},parseOptions:{preserveWhitespace:!0}});s.watch(t,x=>{Jg!=null&&Jg.value&&x!==Jg.value.getHTML()&&Jg.value.commands.setContent(x??"",{parseOptions:{preserveWhitespace:!0}})}),s.watch(K,x=>{if(!x.length){Y.value=0,m.value={};return}Y.value>=x.length&&(Y.value=x.length-1),F.value&&s.nextTick(()=>{eI(),gI()})}),s.watch(Y,()=>{F.value&&s.nextTick(()=>{eI(),gI()})}),s.watch(F,x=>{if(!x){Y.value=0,m.value={};return}y.value=null,s.nextTick(()=>{eI(),gI()})}),s.watch(()=>h.value,()=>{F.value&&s.nextTick(()=>eI())});const Gn=x=>{Jg!=null&&Jg.value&&Jg.value.chain().focus().insertContent(x.i).run()},wn=async(x=!1,gg)=>{if(!(Jg!=null&&Jg.value))return;const tg=document.createElement("input");tg.type="file",gg?(gg==="video"?tg.accept="video/*":gg==="image"?tg.accept="image/*":tg.accept="image/*,video/*",tg.capture="environment",tg.multiple=!1):(tg.multiple=!0,x&&(tg.accept="image/*,video/*")),tg.onchange=()=>{if(!(tg!=null&&tg.files))return;if(TI()&&(x||!!gg)){$e(tg.files,!0);return}bt(tg.files,x)},tg.click()},Va=x=>{console.warn(`${Ho} fileDropped event received`,x.files.map(gg=>ge(gg))),bt(x.files,x.onlyMedia)},Na=()=>{Jg!=null&&Jg.value&&(n("unmount-send",{content:Jg.value.getHTML(),files:Z.value.length?Ie(Z.value):void 0,mediaFiles:G.value.length?Ie(G.value):void 0}),h.value=!1,HA(),sg(),Jg.value.chain().focus())},Wn=()=>{if(Jg!=null&&Jg.value){if(f.value){Na();return}n("unmount-send",{content:Jg.value.getHTML()}),Jg.value.chain().focus()}},Wl=(x,gg)=>{if(!(Jg!=null&&Jg.value))return;const{$from:tg}=Jg.value.state.selection,wg=Math.max(0,tg.parentOffset-50),iI=tg.parent.textBetween(wg,tg.parentOffset,null,"").match(/@([^\s]*)$/);if(iI){const bi=tg.start()+wg+(iI.index||0);Jg.value.chain().focus().insertContentAt({from:bi,to:tg.pos},{type:"spanNode",attrs:{content:x,class:"link",...gg}}).run()}else Jg.value.chain().focus().insertContent({type:"spanNode",attrs:{content:x,class:"link",...gg}}).run()},WG=()=>{B.value=null,y.value=null,Y.value=0,n("mention-change",null)},eh=x=>{var wg,Qg,iI;const gg=((wg=C.mentionConfig)==null?void 0:wg.getInsertLabel)??C.mentionInsertLabel;if(!gg)return;const tg=gg(x);tg&&(Wl(tg,(iI=((Qg=C.mentionConfig)==null?void 0:Qg.getInsertAttrs)??C.mentionInsertAttrs)==null?void 0:iI(x)),WG())},Ch=()=>{if(!(Jg!=null&&Jg.value))return;const{$from:x}=Jg.value.state.selection,gg=Math.max(0,x.parentOffset-50),wg=x.parent.textBetween(gg,x.parentOffset,null,"").match(/@([^\s]*)$/);if(wg){const Qg=x.start()+gg+(wg.index||0);Jg.value.chain().focus().deleteRange({from:Qg,to:x.pos}).run()}else Jg.value.chain().focus().insertContent("@").run()},th=()=>{Jg!=null&&Jg.value&&Jg.value.chain().focus()},Ma=(x,gg=300,tg=260)=>{if(!x)return;const wg=x.getBoundingClientRect(),Qg=window.innerWidth,iI=window.innerHeight;A.value.vertical=wg.bottom+tg>iI?"top":"bottom",A.value.horizontal=wg.left+gg>Qg?"right":"left"},ig=x=>{if(i.value=!i.value,i.value){const gg=x.currentTarget;s.nextTick(()=>{Ma(gg)})}},sg=()=>{i.value=!1},Yg=()=>{const x=document.querySelector(".toolbar-button.smile-button");i.value&&x&&Ma(x),F.value&&eI()},Lg=()=>{if(!Jg.value)return null;const{selection:x,doc:gg}=Jg.value.state;if(!x.empty)return null;const{$from:tg}=x;let wg=-1,Qg=-1;for(let pn=tg.depth;pn>0;pn-=1){const fa=tg.node(pn);if(wg===-1&&fa.type.name==="listItem"&&(wg=pn),fa.type.name==="orderedList"){Qg=pn;break}}if(wg===-1||Qg===-1)return null;const iI=tg.node(Qg),bi=tg.node(wg),qe=tg.index(Qg),YC=tg.after(Qg),pl=tg.parent.isTextblock&&tg.parentOffset===tg.parent.content.size&&tg.index(wg)===bi.childCount-1;return{cursorPos:tg.pos,docSize:gg.content.size,isLastItem:qe===iI.childCount-1,isAtEndOfItem:pl,orderedListAfter:YC}},II=()=>{if(!Jg.value)return;const x=Lg();if(!x)return;const{state:gg,view:tg}=Jg.value,wg=x.orderedListAfter,Qg=gg.doc.resolve(wg).nodeAfter;let iI=gg.tr;if(!Qg||Qg.type.name!=="paragraph"){const bi=gg.schema.nodes.paragraph.create();iI=iI.insert(wg,bi)}iI=iI.setSelection(gn.near(iI.doc.resolve(wg+1))),tg.dispatch(iI.scrollIntoView()),tg.focus()},vI=x=>{var gg;if(!(window.innerWidth<=480)){if(x.key!=="ArrowDown"&&(Cg=null),F.value){if(x.key==="Escape"){x.preventDefault(),x.stopPropagation(),y.value=B.value;return}if(x.key==="Enter"){x.preventDefault(),x.stopPropagation(),Y.value>=0&&Y.value<K.value.length&&eh(K.value[Y.value]);return}if(K.value.length&&(x.key==="ArrowDown"||x.key==="ArrowUp")){x.preventDefault(),x.stopPropagation();const tg=x.key==="ArrowDown"?1:-1;Y.value=(Y.value+tg+K.value.length)%K.value.length;return}}if(x.key==="Enter"&&x.shiftKey&&!(x.ctrlKey||x.metaKey)&&((gg=Jg.value)!=null&&gg.isActive("orderedList"))){x.preventDefault(),x.stopPropagation(),Cg=null,Jg.value.commands.splitListItem("listItem");return}if(x.key==="ArrowDown"){const tg=Lg();if(tg!=null&&tg.isLastItem&&tg.isAtEndOfItem&&tg.orderedListAfter>=tg.docSize){x.preventDefault(),x.stopPropagation();const wg=Date.now();Cg&&Cg.pos===tg.cursorPos&&wg-Cg.timestamp<1200?(Cg=null,II()):Cg={pos:tg.cursorPos,timestamp:wg};return}Cg=null}!C.disableSendOnEnter&&x.key==="Enter"&&x.code&&!(x.shiftKey||x.ctrlKey||x.metaKey)&&(x.preventDefault(),x.stopPropagation(),Wn())}},hC=x=>{qI()&&x.preventDefault()};return s.onMounted(()=>{var x,gg;(gg=(x=Jg==null?void 0:Jg.value)==null?void 0:x.view)!=null&&gg.dom&&(l.value=Jg.value.view.dom,window.addEventListener("resize",Yg),window.addEventListener("scroll",Yg,!0),l.value.addEventListener("keydown",vI,{capture:!0}),l.value.addEventListener("contextmenu",hC))}),s.onBeforeUnmount(()=>{var x;(x=Jg==null?void 0:Jg.value)==null||x.destroy(),l.value&&(l.value.removeEventListener("keydown",vI,{capture:!0}),l.value.removeEventListener("contextmenu",hC)),w.value&&URL.revokeObjectURL(w.value),W.value.forEach(gg=>URL.revokeObjectURL(gg)),window.removeEventListener("resize",Yg),window.removeEventListener("scroll",Yg,!0)}),g({addSpanLink:Wl,focus:th,editor:Jg,emitAttachFiles:$e}),(x,gg)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",{ref_key:"mainMentionAnchorRef",ref:o,class:s.normalizeClass(["editor-component",{"editor-component--mentions-open":F.value}])},[x.$slots.action&&!h.value?(s.openBlock(),s.createElementBlock("div",BII,[s.renderSlot(x.$slots,"action")])):s.createCommentVNode("",!0),C.activeAttachFile?(s.openBlock(),s.createBlock(bd,{key:1,isWCUse:"",options:cg.value,translateY:"calc(-100% - 47px)",class:"mobile-item attach-file-popover"},{trigger:s.withCtx(()=>[s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button attach-file-button mobile-buttons"},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).paperClip},null,8,["name"])]),_:1},8,["type","size"])]),_:1},8,["options"])):s.createCommentVNode("",!0),h.value?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(sz),{key:2,class:"editor-content",editor:s.unref(Jg)},null,8,["editor"])),h.value?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(pII,{key:3,editor:s.unref(Jg)||null},null,8,["editor"])),C.activeAttachFile&&!h.value?(s.openBlock(),s.createBlock(FJ,{key:4,onFilesDropped:Va})):s.createCommentVNode("",!0),h.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",yII,[s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button mobile-buttons smile-button",onClick:s.withModifiers(ig,["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).smile},null,8,["name"]),s.withDirectives(s.createElementVNode("div",{onClick:gg[0]||(gg[0]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass(Q.value)},[s.createVNode(s.unref(bf),{native:!0,onSelect:Gn})],2),[[s.vShow,i.value]])]),_:1},8,["type","size"]),s.withDirectives(s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button right mobile-buttons",onClick:Wn},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).planeRightFill,width:22,height:22,class:"content-editor__save"},null,8,["name"])]),_:1},8,["type","size"]),[[s.vShow,!M.value]])])),h.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",YII,[C.activeAttachFile?(s.openBlock(),s.createBlock(bd,{key:0,isWCUse:"",options:P.value,translateY:"calc(-100% - 47px)"},{trigger:s.withCtx(()=>[s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button attach-file-button"},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])]),_:1},8,["options"])):s.createCommentVNode("",!0),s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button smile-button",onClick:s.withModifiers(ig,["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).smile,width:16,height:16},null,8,["name"]),s.withDirectives(s.createElementVNode("div",{onClick:gg[1]||(gg[1]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass(Q.value)},[s.withDirectives(s.createVNode(s.unref(bf),{native:!0,onSelect:Gn},null,512),[[s.unref(La),sg,void 0,{bubble:!0}]])],2),[[s.vShow,i.value]])]),_:1},8,["type","size"]),C.activeSelectUser?(s.openBlock(),s.createBlock(JI,{key:1,type:s.unref(NI).ghost,class:"toolbar-button",size:s.unref(Le).small,onClick:Ch},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).atSign,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):s.createCommentVNode("",!0),s.createCommentVNode("",!0),s.createVNode(JI,{disabled:M.value,class:"toolbar-button right",size:s.unref(Le).small,onClick:Wn},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).planeRight,color:s.unref(Xb).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])),h.value?(s.openBlock(),s.createBlock(qW,{key:7,open:h.value,onClose:Zt,"disable-close-on-outside-click":"",position:"center",width:"min(430px, calc(100vw - 32px))",height:"auto",class:"attach-modal-container"},{default:s.withCtx(()=>[s.createElementVNode("div",VII,[s.createVNode(FJ,{onFilesDropped:Va}),s.createElementVNode("div",NII,[s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"attach-modal__close",onClick:Zt},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).crossLarge},null,8,["name"])]),_:1},8,["type","size"])]),mg.value.length>0||hg.value.length>0?(s.openBlock(),s.createElementBlock("div",MII,[s.createElementVNode("div",fII,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(mg.value,(tg,wg)=>(s.openBlock(),s.createElementBlock("div",{key:`media-chunk-${wg}`,class:s.normalizeClass(["attach-modal__media-grid",`attach-modal__media-grid-${tg.length}-item`])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(tg,Qg=>(s.openBlock(),s.createElementBlock("div",{key:Qg.id,class:"attach-modal__media-tile"},[Qg.isVideo?(s.openBlock(),s.createElementBlock("video",{key:0,draggable:"false",src:Qg.url,muted:"",playsinline:""},null,8,RII)):(s.openBlock(),s.createElementBlock("img",{key:1,draggable:"false",src:Qg.url,alt:Qg.file.name},null,8,XII)),s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"attach-modal__media-tile-remove",onClick:s.withModifiers(iI=>xt("media",Qg.index),["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).trash,width:24,height:24},null,8,["name"])]),_:1},8,["type","size","onClick"])]))),128))],2))),128)),hg.value.length?(s.openBlock(),s.createElementBlock("div",HII,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(hg.value,tg=>(s.openBlock(),s.createElementBlock("div",{key:tg.id,class:"attach-modal__attachment"},[s.createElementVNode("div",DII,[s.createVNode(Xg,{name:s.unref(rg).fileItem,width:18,height:18},null,8,["name"])]),s.createElementVNode("div",SII,[s.createElementVNode("div",KII,s.toDisplayString(ir(tg.file.name)),1),s.createElementVNode("div",kII,s.toDisplayString($i(tg.file.size)),1)]),s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"attach-modal__attachment-remove",onClick:wg=>xt(tg.kind,tg.index)},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).trash,width:24,height:24},null,8,["name"])]),_:1},8,["type","size","onClick"])]))),128))])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"modalMentionAnchorRef",ref:a,class:"attach-modal__editor"},[x.$slots.action?(s.openBlock(),s.createElementBlock("div",FII,[s.renderSlot(x.$slots,"action")])):s.createCommentVNode("",!0),s.createVNode(s.unref(sz),{class:"editor-content",editor:s.unref(Jg)},null,8,["editor"]),s.createElementVNode("div",zII,[s.createElementVNode("div",JII,[s.createVNode(bd,{isWCUse:"",disabled:!C.activeAttachFile,options:P.value,translateY:"calc(-100% - 47px)"},{trigger:s.withCtx(()=>[s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button attach-file-button",disabled:!C.activeAttachFile},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1},8,["disabled","options"]),s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button smile-button",onClick:s.withModifiers(ig,["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).smile,width:16,height:16},null,8,["name"]),s.withDirectives(s.createElementVNode("div",{onClick:gg[2]||(gg[2]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass(Q.value)},[s.withDirectives(s.createVNode(s.unref(bf),{native:!0,onSelect:Gn},null,512),[[s.unref(La),sg,void 0,{bubble:!0}]])],2),[[s.vShow,i.value]])]),_:1},8,["type","size"]),C.activeSelectUser?(s.openBlock(),s.createBlock(JI,{key:0,type:s.unref(NI).ghost,class:"toolbar-button",size:s.unref(Le).small,onClick:Ch},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).atSign,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):s.createCommentVNode("",!0)]),s.createVNode(JI,{disabled:M.value,class:"toolbar-button right",size:s.unref(Le).small,onClick:Na},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).planeRight,color:s.unref(Xb).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])],512)])]),_:3},8,["open"])):s.createCommentVNode("",!0),u.value?(s.openBlock(),s.createBlock(qW,{key:8,open:u.value,onClose:gg[5]||(gg[5]=tg=>u.value=!1),position:"center",width:"320px",height:"auto"},{default:s.withCtx(()=>[s.createElementVNode("div",LII,[gg[10]||(gg[10]=s.createElementVNode("div",{class:"camera-selection-header"},"Выберите действие",-1)),s.createElementVNode("div",TII,[s.createVNode(JI,{type:s.unref(NI).outline,onClick:gg[3]||(gg[3]=tg=>FI("image")),class:"camera-selection-item"},{default:s.withCtx(()=>[...gg[8]||(gg[8]=[s.createTextVNode(" Сделать фото ",-1)])]),_:1},8,["type"]),s.createVNode(JI,{type:s.unref(NI).outline,onClick:gg[4]||(gg[4]=tg=>FI("video")),class:"camera-selection-item"},{default:s.withCtx(()=>[...gg[9]||(gg[9]=[s.createTextVNode(" Записать видео ",-1)])]),_:1},8,["type"])])])]),_:1},8,["open"])):s.createCommentVNode("",!0),s.createElementVNode("input",{ref:"pendingFileInputRef",type:"file",multiple:"",class:"attach-hidden-input",onChange:gg[6]||(gg[6]=tg=>_i(tg,!1))},null,544),s.createElementVNode("input",{ref:"pendingMediaInputRef",type:"file",accept:"image/*,video/*",multiple:"",class:"attach-hidden-input",onChange:gg[7]||(gg[7]=tg=>_i(tg,!0))},null,544)],2),(s.openBlock(),s.createBlock(s.Teleport,{to:Wg.value},[F.value&&K.value.length?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"mentionListRef",ref:d,class:"editor-component__mentions-portal"},[s.createVNode(dII,{items:K.value,"selected-index":Y.value,"is-fixed":"","position-style":m.value,"get-key":X,"get-label":z,"get-subtitle":L,"get-avatar-url":O,"get-avatar-initials":Ig,"get-is-online":eg,onSelect:eh},null,8,["items","selected-index","position-style"])],512)):s.createCommentVNode("",!0)],8,["to"]))],64))}}),vII=["data-testid"],jII=["data-testid"],Do="[Cropper][BaseCropper]",xII=zg(s.defineComponent({name:"BaseCropper",__name:"BaseCropper",props:{image:{},max:{default:3},min:{default:1},step:{default:.5}},emits:["unmount-scale"],setup(e,{expose:g,emit:I}){const C=e,t=I,i=s.useTemplateRef("canvas"),A=s.useTemplateRef("container"),n=s.reactive({ctx:null,image:null,id:s.useId(),scale:1,position:{x:0,y:0},isDragging:!1,startX:0,startY:0,minScale:C.min,maxScale:C.max,stepScale:C.step});s.watch(()=>C.image,()=>{C.image&&h(C.image)});const l=()=>{i.value&&(n.ctx=i.value.getContext("2d")),o(),window.addEventListener("resize",o)},o=()=>{if(A.value){const{width:F,height:X}=A.value.getBoundingClientRect();i.value&&(i.value.width=F,i.value.height=X),n.image&&a()}},a=()=>{if(n.image){const F=n.ctx,X=i.value;F&&X&&(F.clearRect(0,0,X.width,X.height),F.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale))}},d=F=>new Promise(X=>setTimeout(X,F)),m=F=>["image/png","image/jpeg"].includes(F.type.toLowerCase()),u=F=>({fileName:F.name,fileType:F.type,fileSize:F.size,lastModified:F.lastModified,isScreenshotLike:m(F)}),h=F=>{const X=m(F)?6:3;let z=0;console.warn(`${Do} loadImage start`,{...u(F),maxRetries:X});const L=new FileReader;L.onload=async O=>{var Ig;console.warn(`${Do} FileReader load success`,{...u(F),attempt:z+1}),typeof((Ig=O.target)==null?void 0:Ig.result)=="string"&&(n.image=new Image,n.image.src=O.target.result,n.image.onload=async()=>{if(console.warn(`${Do} image decode success`,u(F)),await s.nextTick(),i.value&&n.image){const eg=i.value.width,Q=i.value.height,P=n.image.width/n.image.height,cg=eg/Q;P>cg?(n.image.width=eg,n.image.height=eg/P):(n.image.height=Q,n.image.width=Q*P),o(),n.position.x=(i.value.width-n.image.width)/2,n.position.y=(i.value.height-n.image.height)/2,a()}})},L.onerror=async()=>{if(console.warn(`${Do} FileReader load error`,{...u(F),attempt:z+1,maxRetries:X,error:L.error}),z>=X){try{console.warn(`${Do} fallback to detached file`,u(F));const Ig=await F.arrayBuffer(),eg=new File([Ig],F.name,{type:F.type||"application/octet-stream",lastModified:F.lastModified});z+=1,console.warn(`${Do} retry readAsDataURL with detached file`,{...u(eg),attempt:z+1}),L.readAsDataURL(eg)}catch(Ig){console.error("Failed to load cropper image",{fileName:F.name,error:Ig})}return}z+=1;const O=(m(F)?180:120)*z;console.warn(`${Do} schedule FileReader retry`,{...u(F),attempt:z+1,retryDelay:O}),await d(O),L.readAsDataURL(F)},console.warn(`${Do} initial readAsDataURL`,u(F)),L.readAsDataURL(F)},Z=F=>{n.isDragging=!0,n.startX=F.clientX-n.position.x,n.startY=F.clientY-n.position.y,window.addEventListener("mousemove",G),window.addEventListener("mouseup",w)},G=F=>{if(!n.isDragging&&!i.value)return;let X=F.clientX-n.startX,z=F.clientY-n.startY;if(i.value&&n.image){const L=i.value.width-n.image.width*n.scale;n.image.width*n.scale<i.value.width?X=Math.min(Math.max(X,0),i.value.width-n.image.width*n.scale):(X>0&&(X=0),X<L&&(X=L));const O=i.value.height-n.image.height*n.scale;n.image.height*n.scale<i.value.height?z=Math.min(Math.max(z,0),i.value.height-n.image.height*n.scale):(z>0&&(z=0),z<O&&(z=O)),n.position.x=X,n.position.y=z}a()},w=()=>{n.isDragging=!1,window.removeEventListener("mousemove",G),window.removeEventListener("mouseup",w)},W=F=>Math.max(n.minScale,Math.min(F,n.maxScale)),B=F=>{if(i.value){const X=i.value.width/2,z=i.value.height/2;n.position.x=X-(X-n.position.x)*F,n.position.y=z-(z-n.position.y)*F}},y=F=>{const X=n.scale,z=n.scale+F.deltaY*-.001;if(X===W(z))return;n.scale=W(z);const L=z/X;B(L),t("unmount-scale",n.scale),a()};return g({cropImage:()=>{if(A.value){const{width:F,height:X}=A.value.getBoundingClientRect(),z=document.createElement("canvas");z.width=F,z.height=X;const L=z.getContext("2d");L&&n.image&&L.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale);const O=z.toDataURL("image/png"),Ig=atob(O.split(",")[1]),eg=new ArrayBuffer(Ig.length),Q=new Uint8Array(eg);for(let cg=0;cg<Ig.length;cg++)Q[cg]=Ig.charCodeAt(cg);const P=new Blob([Q],{type:"image/png"});return C.image?new File([P],C.image.name,{type:"image/png"}):null}return null},scalePlus:()=>{const F=n.scale+n.stepScale;n.scale=W(F),a()},scaleMinus:()=>{const F=n.scale-n.stepScale;n.scale=W(F),a()},setScale:F=>{const X=n.scale,L=F/X;n.scale=W(F),B(L),a()},startMove:Z,scaleImage:y}),s.onMounted(()=>{l(),C.image&&h(C.image)}),(F,X)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"container",ref:A,class:"base-cropper","data-testid":`BaseCropper-${n.id}`},[s.createElementVNode("canvas",{ref_key:"canvas",ref:i,class:"base-cropper__canvas","data-testid":`BaseCropper-${n.id}-canvas`,onMousedown:Z,onWheel:s.withModifiers(y,["prevent"])},null,40,jII)],8,vII))}}),[["__scopeId","data-v-8390bd52"]]),OII=e=>{const g=s.ref(e==null?void 0:e.defaultValue),I=e==null?void 0:e.min,C=e==null?void 0:e.max,t=e==null?void 0:e.step;s.watch(g,A=>{g.value=i(A)});const i=A=>Math.max(I,Math.min(A,C));return{value:g,min:I,max:C,step:t,getCorrectValue:i}},QII=(e,g)=>new File([e],g,{type:e.type}),UII=["data-testid"],EII=["data-testid"],PII=["data-testid"],_II=["data-testid"],$II=["data-testid"],qII=["data-testid"],Gf=zg(s.defineComponent({name:"ModalCroppedAvatar",__name:"ModalCroppedAvatar",props:{image:{},open:{type:Boolean},position:{default:"center"},width:{default:"650px"},height:{default:"auto"},disableCloseOnOutsideClick:{type:Boolean},isResetFocus:{type:Boolean},dataTestid:{}},emits:["unmount-close","unmount-save"],setup(e,{emit:g}){const I=e,C=g,{max:t,min:i,step:A,value:n}=OII({defaultValue:1,max:3,min:1,step:.1}),l=s.useId(),o=s.useTemplateRef("cropper"),a=s.reactive({openModal:!1});s.watch(n,()=>{o.value&&o.value.setScale(n.value)});const d=()=>{a.openModal=!1,C("unmount-close")},m=G=>{n.value=G},u=()=>{n.value=n.value-A},h=()=>{n.value=n.value+A},Z=()=>{if(o.value){const G=o.value.cropImage();if(G){const w=G.name,W=QII(G,w);C("unmount-save",W),d()}}};return s.onUnmounted(()=>{d()}),s.onMounted(()=>{I.open===void 0&&(a.openModal=I.open)}),(G,w)=>(s.openBlock(),s.createBlock(H0,s.mergeProps(I,{class:"modal-cropped-avatar","data-testid":`ModalCroppedAvatar-${s.unref(l)}`,onClose:d}),{default:s.withCtx(()=>[s.createElementVNode("div",{class:"modal-cropped-avatar__content","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content`},[s.createElementVNode("div",{class:"modal-cropped-avatar__title","data-testid":`ModalCroppedAvatar-${s.unref(l)}-title`}," Изменение фото профиля ",8,EII),s.createElementVNode("div",{class:"modal-cropped-avatar__main","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-main`},[s.createElementVNode("div",{class:"modal-cropped-avatar__cropped","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-main-cropped`},[s.createVNode(xII,{ref_key:"cropper",ref:o,image:e.image,max:s.unref(t),min:s.unref(i),step:s.unref(A),class:"modal-cropped-avatar__cropper",onUnmountScale:m},null,8,["image","max","min","step"]),s.createElementVNode("div",{class:"modal-cropped-avatar__tools","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-tools`},[s.createVNode(Xg,{name:s.unref(rg).minus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-iconMinus`,onClick:u},null,8,["name","data-testid"]),s.createVNode(rp,{max:s.unref(t),min:s.unref(i),step:s.unref(A),modelValue:s.unref(n),"onUpdate:modelValue":w[0]||(w[0]=W=>s.isRef(n)?n.value=W:null),"data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-Range`},null,8,["max","min","step","modelValue","data-testid"]),s.createVNode(Xg,{name:s.unref(rg).plus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-IconPlus`,onClick:h},null,8,["name","data-testid"])],8,$II)],8,_II),s.createElementVNode("div",{class:"modal-cropped-avatar__buttons","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-buttons`},[s.createVNode(JI,{type:s.unref(NI).outline,class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-ButtonCancel`,onClick:d},{default:s.withCtx(()=>[...w[1]||(w[1]=[s.createTextVNode(" Отменить ",-1)])]),_:1},8,["type","data-testid"]),s.createVNode(JI,{class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-buttonSave`,onClick:Z},{default:s.withCtx(()=>[...w[2]||(w[2]=[s.createTextVNode(" Сохранить ",-1)])]),_:1},8,["data-testid"])],8,qII)],8,PII)],8,UII)]),_:1},16,["data-testid"]))}}),[["__scopeId","data-v-65b5d91e"]]),wf={install(e,g={enabled:!0}){if(!(g.enabled??!1)){console.info("[removeDataTestidPlugin] Plugin is disabled.");return}const C=t=>{t.removeAttribute("data-testid"),Array.from(t.children).forEach(C)};e.mixin({mounted(){C(this.$el)}})}},geI=["src"],Wf=s.defineComponent({name:"ImagePreview",__name:"ImagePreview",props:{src:{}},emits:["error"],setup(e,{expose:g,emit:I}){const C=e,t=I,i=s.reactive({isError:!1,rotate:0});s.watch(()=>C.src,()=>{i.isError=!1,i.rotate=0,s.nextTick(()=>{n()})});const A=s.ref(null),n=async()=>{try{if(!A.value||!C.src)return;const o=new Image;o.src=C.src,o.addEventListener("load",()=>{var Z;if(!A.value)return;const a=(Z=A.value)==null?void 0:Z.getContext("2d");if(!a)return;const d=o.width,m=o.height;let u=d,h=m;i.rotate%180!==0&&(u=m,h=d),A.value.width=u,A.value.height=h,a.save(),a.clearRect(0,0,u,h),a.translate(u/2,h/2),a.rotate(i.rotate*Math.PI/180),a.drawImage(o,-d/2,-m/2,d,m),a.restore()}),o.addEventListener("error",a=>{i.isError=!0,t("error",a)})}catch{t("error",new Event("error")),i.isError=!0}},l=async o=>{const a=Math.round(o/90)*90;i.rotate+=a,s.nextTick(()=>{n()})};return s.onMounted(()=>{s.nextTick(()=>{n()})}),g({rotateImage:l}),(o,a)=>i.isError?(s.openBlock(),s.createElementBlock("img",{key:1,src:s.unref(zn)},null,8,geI)):(s.openBlock(),s.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:A,class:"image-preview"},null,512))}}),zJ={Accordion:F1,Badges:tt,BreadCrumbs:zy,Dialog:dW,DragAndDrop:z1,Card:J1,Combobox:T1,Calendar:k1,Button:JI,Switch:dw,SelectList:Gr,Dropdown:eY,Textarea:gN,Filter:L1,Icon:Xg,Input:j1,InputNumber:_h,Picture:eN,PushNotification:CN,Scroll:EV,Search:o0,Modal:H0,Slider:UV,Checkbox:PV,Toggle:tp,UserMenu:qV,CopyIcon:tN,Loader:K0,FilterTag:iN,CircularProgress:AN,Popover:bd,Table:nN,TableNew:aN,TableSimple:cN,TableRow:cp,TableRowNew:dN,TableTd:v0,TableTh:em,SectionTableRow:lN,HeadTableRow:L0,HeadTableRowNew:mp,ScrollWrapper:T0,ScrollWrapperNew:OUg,Radio:sN,Tooltip:hd,BaseFilter:oN,Range:rp,Tabs:rN,ContentEditor:Zf,ModalCroppedAvatar:Gf,Avatar:J0,TimePicker:cW,SliderModal:Cp,PdfPreview:Dl,ImagePreview:Wf,VideoPreview:D0,Skeleton:dp},JJ=Object.freeze(Object.defineProperty({__proto__:null,Accordion:F1,Avatar:J0,Badges:tt,BadgesTypeEnum:zI,BaseFilter:oN,BreadCrumbs:zy,Button:JI,ButtonTypeEnum:NI,Calendar:k1,Card:J1,Checkbox:PV,CheckboxCircularEnum:sp,CheckboxSizeEnum:lp,CircularProgress:AN,ColorsEnum:Xb,Combobox:T1,ContentEditor:Zf,CopyIcon:tN,Dialog:dW,DragAndDrop:z1,Dropdown:eY,Filter:L1,FilterTag:iN,HeadTableRow:L0,HeadTableRowNew:mp,Icon:Xg,IconNameEnum:rg,ImageExtensionsEnum:d0,ImagePreview:Wf,Input:j1,InputNumber:_h,InputTypeEnum:v1,Loader:K0,MenuTypeEnum:de,MessageTypeEnum:ap,Modal:H0,ModalCroppedAvatar:Gf,PdfPreview:Dl,Picture:eN,Popover:bd,PushNotification:CN,Radio:sN,Range:rp,Scroll:EV,ScrollWrapper:T0,Search:o0,SectionTableRow:lN,SelectList:Gr,SizesEnum:Le,Skeleton:dp,Slider:UV,SliderModal:Cp,Switch:dw,Table:nN,TableNew:aN,TableRow:cp,TableRowNew:dN,TableSimple:cN,TableTd:v0,TableTh:em,Tabs:rN,TextFieldEnum:pW,Textarea:gN,TextareaTypeEnum:op,TimePicker:cW,Toggle:tp,Tooltip:hd,UserMenu:qV,VideoExtensionsEnum:c0,VideoPreview:D0,default:{install:e=>{Object.keys(zJ).forEach(g=>{e.component("Y"+g,zJ[g])})}},getFirstTime:RS,getLastTime:wW,vuePluginRemoveTestid:wf},Symbol.toStringTag,{value:"Module"})),IeI={install(e){for(const g in JJ){const I=JJ[g];e.use(I).use(wf,{enabled:!1})}}};$.Accordion=F1,$.Avatar=J0,$.Badges=tt,$.BadgesTypeEnum=zI,$.BaseFilter=oN,$.BreadCrumbs=zy,$.Button=JI,$.ButtonTypeEnum=NI,$.Calendar=k1,$.Card=J1,$.Checkbox=PV,$.CheckboxCircularEnum=sp,$.CheckboxSizeEnum=lp,$.CircularProgress=AN,$.ColorsEnum=Xb,$.Combobox=T1,$.ContentEditor=Zf,$.CopyIcon=tN,$.Dialog=dW,$.DragAndDrop=z1,$.Dropdown=eY,$.Filter=L1,$.FilterTag=iN,$.HeadTableRow=L0,$.HeadTableRowNew=mp,$.Icon=Xg,$.IconNameEnum=rg,$.ImageExtensionsEnum=d0,$.ImagePreview=Wf,$.Input=j1,$.InputNumber=_h,$.InputTypeEnum=v1,$.Loader=K0,$.MenuTypeEnum=de,$.MessageTypeEnum=ap,$.Modal=H0,$.ModalCroppedAvatar=Gf,$.OnClickOutside=$Q,$.OnLongPress=CU,$.PdfPreview=Dl,$.Picture=eN,$.Popover=bd,$.PushNotification=CN,$.Radio=sN,$.Range=rp,$.Scroll=EV,$.ScrollWrapper=T0,$.Search=o0,$.SectionTableRow=lN,$.SelectList=Gr,$.SizesEnum=Le,$.Skeleton=dp,$.Slider=UV,$.SliderModal=Cp,$.Switch=dw,$.Table=nN,$.TableNew=aN,$.TableRow=cp,$.TableRowNew=dN,$.TableSimple=cN,$.TableTd=v0,$.TableTh=em,$.Tabs=rN,$.TextFieldEnum=pW,$.Textarea=gN,$.TextareaTypeEnum=op,$.TimePicker=cW,$.Toggle=tp,$.Tooltip=hd,$.UseActiveElement=tU,$.UseBattery=iU,$.UseBrowserLocation=AU,$.UseClipboard=nU,$.UseColorMode=bU,$.UseDark=ZU,$.UseDeviceMotion=GU,$.UseDeviceOrientation=wU,$.UseDevicePixelRatio=WU,$.UseDevicesList=pU,$.UseDocumentVisibility=BU,$.UseDraggable=yU,$.UseElementBounding=YU,$.UseElementSize=NU,$.UseElementVisibility=RU,$.UseEyeDropper=HU,$.UseFullscreen=DU,$.UseGeolocation=SU,$.UseIdle=KU,$.UseImage=JU,$.UseMouse=vU,$.UseMouseInElement=jU,$.UseMousePressed=xU,$.UseNetwork=OU,$.UseNow=QU,$.UseObjectUrl=UU,$.UseOffsetPagination=EU,$.UseOnline=PU,$.UsePageLeave=_U,$.UsePointer=$U,$.UsePointerLock=qU,$.UsePreferredColorScheme=gE,$.UsePreferredContrast=IE,$.UsePreferredDark=eE,$.UsePreferredLanguages=CE,$.UsePreferredReducedMotion=tE,$.UseScreenSafeArea=lE,$.UseTimeAgo=rE,$.UseTimestamp=mE,$.UseVirtualList=uE,$.UseWindowFocus=hE,$.UseWindowSize=bE,$.UserMenu=qV,$.VOnClickOutside=La,$.VOnLongPress=pX,$.VideoExtensionsEnum=c0,$.VideoPreview=D0,$.VueToolsCore=sTg,$.arrow=pvg,$.autoPlacement=yS,$.autoUpdate=pS,$.computePosition=YS,$.default=IeI,$.detectOverflow=rvg,$.flip=uvg,$.getFirstTime=RS,$.getLastTime=wW,$.getOverflowAncestors=Tr,$.hide=bvg,$.inline=Gvg,$.limitShift=wvg,$.offset=BS,$.platform=wS,$.shift=mvg,$.size=hvg,$.useFloating=MS,$.useSearch=XS,$.vElementHover=VU,$.vElementSize=fU,$.vElementVisibility=XU,$.vInfiniteScroll=LU,$.vIntersectionObserver=TU,$.vOnClickOutside=La,$.vOnKeyStroke=gU,$.vOnLongPress=pX,$.vResizeObserver=iE,$.vScroll=sE,$.vScrollLock=cE,$.vuePluginRemoveTestid=wf,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1570
+ `).split(/\r?\n/).map(Mg=>Mg.trim()).filter(Boolean),W=()=>{var Cg;return((Cg=I.value)==null?void 0:Cg.offsetWidth)??0},B=()=>({position:"fixed",left:"0px",top:"0px",transform:"none",visibility:"hidden",pointerEvents:"none",zIndex:"1000"}),y=Cg=>{var Zg;if(!Cg||Cg.isDestroyed)return null;try{return((Zg=Cg.view)==null?void 0:Zg.dom)??null}catch{return null}},Y=(Cg,Zg)=>{if(!Zg)return!1;const Mg=y(Cg);if(!Mg)return!1;const WI=Zg instanceof Element?Zg:Zg.parentElement;return!!WI&&Mg.contains(WI)},f=Cg=>{const Zg=y(Cg),Mg=Zg==null?void 0:Zg.ownerDocument.getSelection();if(!Mg||Mg.rangeCount===0||Mg.isCollapsed||!Y(Cg,Mg.anchorNode)||!Y(Cg,Mg.focusNode))return null;const WI=Mg.getRangeAt(0),pI=Array.from(WI.getClientRects()).filter(ge=>ge.width>0||ge.height>0);if(pI.length>0){const ge=Math.min(...pI.map($e=>$e.left)),uC=Math.max(...pI.map($e=>$e.right)),he=Math.min(...pI.map($e=>$e.top)),Ie=Math.max(...pI.map($e=>$e.bottom));return new DOMRect(ge,he,uC-ge,Ie-he)}const KI=WI.getBoundingClientRect();return KI.width>0||KI.height>0?KI:null},M=Cg=>{const Zg=W();if(!Zg)return Cg;const Mg=window.innerWidth-Zg-Jd;return Mg<=Jd?Math.max((window.innerWidth-Zg)/2,0):Math.min(Math.max(Cg,Jd),Mg)},K=Cg=>{var KI;const Zg=((KI=I.value)==null?void 0:KI.offsetWidth)??0;if(!Zg)return Cg;const Mg=Zg/2,WI=Jd+Mg,pI=window.innerWidth-Jd-Mg;return WI>pI?window.innerWidth/2:Math.min(Math.max(Cg,WI),pI)},F=Cg=>{const Zg=W();if(!Zg)return"center";const Mg=Cg.left-Jd,WI=window.innerWidth-Cg.right-Jd,pI=Zg/2;return WI<pI&&Mg>WI?"right":Mg<pI&&WI>Mg?"left":"center"},X=(Cg,Zg)=>Zg==="left"?{left:M(Cg.left),transform:"none"}:Zg==="right"?{left:M(Cg.right-W()),transform:"none"}:{left:K(Cg.left+Cg.width/2),transform:"translateX(-50%)"},z=(Cg,Zg)=>Zg==="center"?K(Cg):M(Cg),L=()=>{var Cg;return(Cg=g.editor)==null?void 0:Cg.chain().focus()},O=(Cg=d.value)=>{!g.editor||!Cg||g.editor.chain().focus().setTextSelection(Cg).run()},Ig=(Cg={})=>{const Zg=g.editor,Mg=y(Zg);if(!Zg||!Zg.view||!Mg){C.value=!1;return}const{state:WI,view:pI,isEditable:KI}=Zg,{selection:ge}=WI;if(!KI||ge.empty||!pI.hasFocus()||u.value){C.value=!1,l.value=B(),o.value=null,a.value="center";return}const uC=f(Zg)??N6g(pI,ge.from,ge.to);if(!C.value){l.value=B(),C.value=!0,s.nextTick(()=>eg(Cg));return}const he=Cg.preserveHorizontal?a.value:F(uC),Ie=Cg.preserveHorizontal?{left:z(o.value??X(uC,he).left,he),transform:he==="center"?"translateX(-50%)":"none"}:X(uC,he);a.value=he,o.value=Ie.left,l.value={position:"fixed",left:`${Ie.left}px`,top:`${Math.max(uC.top-52,12)}px`,transform:Ie.transform,visibility:"visible",pointerEvents:"auto",zIndex:"1000"}},eg=(Cg={})=>{h!==null&&cancelAnimationFrame(h),h=requestAnimationFrame(()=>{h=null,Ig(Cg)})},Q=()=>eg({preserveHorizontal:!0}),P=()=>{eg()},cg=()=>{eg()},ng=()=>{eg()},hg=()=>{C.value=!1},fg=Cg=>{Cg.button!==0||t.value||(u.value=!0,C.value=!1)},yg=()=>{u.value&&(u.value=!1,eg())},mg=[{key:"bold",icon:rg.bold,hint:"Жирный",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("bold"))??!1},run:()=>{var Cg;return(Cg=L())==null?void 0:Cg.toggleBold().run()}},{key:"italic",icon:rg.italic,hint:"Курсив",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("italic"))??!1},run:()=>{var Cg;return(Cg=L())==null?void 0:Cg.toggleItalic().run()}},{key:"underline",icon:rg.underline,hint:"Подчёркнутый",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("underline"))??!1},run:()=>{var Cg;return(Cg=L())==null?void 0:Cg.toggleUnderline().run()}},{key:"strike",icon:rg.strikethrough,hint:"Зачёркнутый",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("strike"))??!1},run:()=>{var Cg;return(Cg=L())==null?void 0:Cg.toggleStrike().run()}}],Vg=async()=>{var KI,ge,uC;const Cg=g.editor;if(!Cg)return;const{from:Zg,to:Mg,empty:WI}=Cg.state.selection;if(WI)return;d.value={from:Zg,to:Mg},m.value=G(Cg,{from:Zg,to:Mg}),i.value=m.value;const pI=(KI=Cg.getAttributes("link"))==null?void 0:KI.href;A.value=typeof pI=="string"&&pI.trim().length>0?pI:m.value,t.value=!0,await s.nextTick(),(ge=n.value)==null||ge.focus(),(uC=n.value)==null||uC.select()},Wg=()=>{const Cg=g.editor;if(!Cg)return;if(Cg.isActive("orderedList")){Cg.chain().focus().toggleOrderedList().run();return}const{from:Zg,to:Mg,empty:WI}=Cg.state.selection;if(WI){Cg.chain().focus().toggleOrderedList().run();return}const pI=w(Cg,{from:Zg,to:Mg});pI.length&&Cg.chain().focus().insertContentAt({from:Zg,to:Mg},{type:"orderedList",attrs:{start:1},content:pI.map(KI=>({type:"listItem",content:[{type:"paragraph",content:[{type:"text",text:KI}]}]}))}).run()},eI=[{key:"code",icon:rg.code,hint:"Код",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("code"))??!1},run:()=>{var Cg;return(Cg=L())==null?void 0:Cg.toggleCode().run()}},{key:"link",icon:rg.link,hint:"Ссылка",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("link"))??!1},run:()=>{var Cg;if((Cg=g.editor)!=null&&Cg.isActive("link")){g.editor.chain().focus().extendMarkRange("link").unsetLink().run(),Ig({preserveHorizontal:!0});return}Vg()}},{key:"blockquote",icon:rg.blockquote,hint:"Цитата",isActive:()=>{var Cg;return((Cg=g.editor)==null?void 0:Cg.isActive("orderedList"))??!1},run:Wg}],gI=Cg=>{const Zg=Cg.trim();return Zg?/^(https?:\/\/|mailto:|tel:)/i.test(Zg)?Zg:`https://${Zg}`:""},TI=()=>{const Cg=g.editor,Zg=d.value;if(!Cg||!Zg)return;const Mg=i.value.trim()||m.value.trim(),WI=gI(A.value);if(!Mg){qI();return}Cg.chain().focus().insertContentAt(Zg,WI?{type:"text",text:Mg,marks:[{type:"link",attrs:{href:WI,class:"link"}}]}:Mg).run();const pI={from:Zg.from,to:Zg.from+Mg.length};Z(),O(pI),Ig({preserveHorizontal:!0})},qI=()=>{const Cg=d.value;Z(),O(Cg),Ig({preserveHorizontal:!0})},FI=Cg=>{const Zg=y(Cg);!Cg||!Zg||(Cg.on("selectionUpdate",P),Cg.on("focus",cg),Cg.on("blur",hg),Cg.on("transaction",ng),Zg.addEventListener("pointerdown",fg))},bI=Cg=>{var Zg;Cg&&(Cg.off("selectionUpdate",P),Cg.off("focus",cg),Cg.off("blur",hg),Cg.off("transaction",ng),(Zg=y(Cg))==null||Zg.removeEventListener("pointerdown",fg))};return s.onMounted(()=>{FI(g.editor),window.addEventListener("resize",Q),window.addEventListener("scroll",Q,!0),window.addEventListener("pointerup",yg,!0)}),s.onBeforeUnmount(()=>{bI(g.editor),window.removeEventListener("resize",Q),window.removeEventListener("scroll",Q,!0),window.removeEventListener("pointerup",yg,!0),h!==null&&cancelAnimationFrame(h)}),s.watch(()=>g.editor,(Cg,Zg)=>{Zg!==Cg&&(bI(Zg),FI(Cg),eg())}),(Cg,Zg)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[C.value?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"toolbarRef",ref:I,class:"formatting-toolbar",style:s.normalizeStyle(l.value),onMousedown:Zg[0]||(Zg[0]=s.withModifiers(()=>{},["prevent"]))},[s.createElementVNode("div",cII,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(mg,Mg=>s.createVNode(hd,{key:Mg.key,hint:Mg.hint,position:"top-center"},{default:s.withCtx(()=>[s.createElementVNode("button",{type:"button",class:s.normalizeClass(["formatting-toolbar__button",{"formatting-toolbar__button--active":Mg.isActive()}]),"aria-label":Mg.hint,onClick:Mg.run},[s.createVNode(Xg,{name:Mg.icon},null,8,["name"])],10,rII)]),_:2},1032,["hint"])),64))]),Zg[3]||(Zg[3]=s.createElementVNode("div",{class:"formatting-toolbar__divider"},null,-1)),s.createElementVNode("div",mII,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(eI,Mg=>s.createVNode(hd,{key:Mg.key,hint:Mg.hint,position:"top-center"},{default:s.withCtx(()=>[s.createElementVNode("button",{type:"button",class:s.normalizeClass(["formatting-toolbar__button",{"formatting-toolbar__button--active":Mg.isActive()}]),"aria-label":Mg.hint,onClick:Mg.run},[s.createVNode(Xg,{name:Mg.icon},null,8,["name"])],10,uII)]),_:2},1032,["hint"])),64))])],36)):s.createCommentVNode("",!0),t.value?(s.openBlock(),s.createBlock(qW,{key:1,open:t.value,position:"center",width:"min(370px, -45px + 100vw)",height:"auto",class:"formatting-toolbar__link-modal-container",onClose:qI},{default:s.withCtx(()=>[s.createElementVNode("div",hII,[s.createElementVNode("div",bII,[Zg[4]||(Zg[4]=s.createElementVNode("div",{class:"formatting-toolbar__link-modal-title"},"Ссылка",-1)),s.createElementVNode("button",{type:"button",class:"formatting-toolbar__link-modal-close","aria-label":"Закрыть",onClick:qI},[s.createVNode(Xg,{name:s.unref(rg).crossLarge},null,8,["name"])])]),s.createElementVNode("label",ZII,[Zg[5]||(Zg[5]=s.createElementVNode("span",{class:"formatting-toolbar__field-label"},"Текст:",-1)),s.withDirectives(s.createElementVNode("input",{ref_key:"linkTextInputRef",ref:n,"onUpdate:modelValue":Zg[1]||(Zg[1]=Mg=>i.value=Mg),class:"formatting-toolbar__field-input",type:"text",placeholder:"Важная ссылка",onKeydown:[s.withKeys(s.withModifiers(TI,["prevent"]),["enter"]),s.withKeys(s.withModifiers(qI,["prevent"]),["esc"])]},null,40,GII),[[s.vModelText,i.value]])]),s.createElementVNode("label",wII,[Zg[6]||(Zg[6]=s.createElementVNode("span",{class:"formatting-toolbar__field-label"},"Ссылка:",-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":Zg[2]||(Zg[2]=Mg=>A.value=Mg),class:"formatting-toolbar__field-input",type:"text",placeholder:"https://example.com",onKeydown:[s.withKeys(s.withModifiers(TI,["prevent"]),["enter"]),s.withKeys(s.withModifiers(qI,["prevent"]),["esc"])]},null,40,WII),[[s.vModelText,A.value]])]),s.createElementVNode("div",{class:"formatting-toolbar__link-modal-actions"},[s.createElementVNode("button",{type:"button",class:"formatting-toolbar__link-modal-save",onClick:TI}," Сохранить ")])])]),_:1},8,["open"])):s.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-f353dee1"]]),BII={key:0,class:"editor-component-slot"},yII={key:5,class:"right-buttons"},YII={key:6,class:"toolbar"},VII={class:"attach-modal"},NII={class:"attach-modal__header"},MII={key:0,class:"attach-modal__attachments__all"},fII={class:"attach-modal__media-groups"},RII=["src"],XII=["src","alt"],HII={key:0,class:"attach-modal__attachments"},DII={class:"attach-modal__attachment-icon"},SII={class:"attach-modal__attachment-body"},KII={class:"attach-modal__attachment-name"},kII={class:"attach-modal__attachment-size"},FII={key:0,class:"editor-component-slot"},zII={class:"attach-modal__toolbar"},JII={class:"attach-modal__toolbar-left"},LII={class:"camera-selection"},TII={class:"camera-selection-options"},Ho="[ContentEditor]",Zf=s.defineComponent({__name:"ContentEditor",props:s.mergeModels({activeAttachFile:{type:Boolean},activeSelectUser:{type:Boolean},activeSend:{type:Boolean},disableSendOnEnter:{type:Boolean},isMentionModalOpen:{type:Boolean},mentionItems:{},mentionConfig:{},mentionItemKey:{type:Function},mentionItemLabel:{type:Function},mentionItemSubtitle:{type:Function},mentionItemAvatarUrl:{type:Function},mentionItemAvatarInitials:{type:Function},mentionItemIsOnline:{type:Function},mentionInsertLabel:{type:Function},mentionInsertAttrs:{type:Function}},{modelValue:{},modelModifiers:{}}),emits:s.mergeModels(["unmount-send","unmount-attach-file","mention-change"],["update:modelValue"]),setup(e,{expose:g,emit:I}){const C=e,t=s.useModel(e,"modelValue"),i=s.ref(!1),A=s.ref({vertical:"bottom",horizontal:"left"}),n=I,l=s.ref(null),o=s.ref(null),a=s.ref(null),d=s.ref(null),m=s.ref({}),u=s.ref(!1),h=s.ref(!1),Z=s.ref([]),G=s.ref([]),w=s.ref(null),W=s.ref([]),B=s.ref(null),y=s.ref(null),Y=s.ref(0),f=s.computed(()=>Z.value.length>0||G.value.length>0),M=s.computed(()=>{var x;return!C.activeSend&&((x=Jg.value)==null?void 0:x.isEmpty)&&!f.value}),K=s.computed(()=>C.mentionItems??[]),F=s.computed(()=>!!C.activeSelectUser&&B.value!==null&&y.value!==B.value),X=(x,gg)=>{var tg,wg,Qg;return((wg=(tg=C.mentionConfig)==null?void 0:tg.getKey)==null?void 0:wg.call(tg,x,gg))??((Qg=C.mentionItemKey)==null?void 0:Qg.call(C,x,gg))??gg},z=x=>{var gg,tg,wg;return((tg=(gg=C.mentionConfig)==null?void 0:gg.getLabel)==null?void 0:tg.call(gg,x))??((wg=C.mentionItemLabel)==null?void 0:wg.call(C,x))??""},L=x=>{var gg,tg,wg;return((tg=(gg=C.mentionConfig)==null?void 0:gg.getSubtitle)==null?void 0:tg.call(gg,x))??((wg=C.mentionItemSubtitle)==null?void 0:wg.call(C,x))??""},O=x=>{var gg,tg,wg;return((tg=(gg=C.mentionConfig)==null?void 0:gg.getAvatarUrl)==null?void 0:tg.call(gg,x))??((wg=C.mentionItemAvatarUrl)==null?void 0:wg.call(C,x))??""},Ig=x=>{var gg,tg,wg;return((tg=(gg=C.mentionConfig)==null?void 0:gg.getAvatarInitials)==null?void 0:tg.call(gg,x))??((wg=C.mentionItemAvatarInitials)==null?void 0:wg.call(C,x))??z(x)},eg=x=>{var gg,tg,wg;return((tg=(gg=C.mentionConfig)==null?void 0:gg.getIsOnline)==null?void 0:tg.call(gg,x))??((wg=C.mentionItemIsOnline)==null?void 0:wg.call(C,x))??!1},Q=s.computed(()=>["emoji-picker",`emoji-picker-${A.value.vertical}`,`emoji-picker-${A.value.horizontal}`,M.value?"":"translateX"]),P=s.computed(()=>[{value:"Фото или видео",function:()=>wn(!0),iconName:rg.image},{value:"Файл",function:()=>wn(!1),iconName:rg.file}]),cg=s.computed(()=>[{value:"Камера",function:()=>u.value=!0,iconName:rg.camera},...P.value]),ng=s.computed(()=>[...G.value.map((x,gg)=>({id:`media-${x.name}-${x.lastModified}-${gg}`,file:x,kind:"media",index:gg})),...Z.value.map((x,gg)=>({id:`file-${x.name}-${x.lastModified}-${gg}`,file:x,kind:"file",index:gg}))]),hg=s.computed(()=>ng.value.filter(x=>x.kind==="file")),fg=s.computed(()=>G.value.map((x,gg)=>({id:`media-preview-${x.name}-${x.lastModified}-${gg}`,file:x,index:gg,url:W.value[gg]||"",isVideo:pI(x).startsWith("video/")})).filter(x=>!!x.url)),yg=(x,gg)=>{const tg=[];for(let wg=0;wg<x.length;wg+=gg)tg.push(x.slice(wg,wg+gg));return tg},mg=s.computed(()=>yg(fg.value,10)),Vg=s.computed(()=>(h.value?a.value:o.value)??null),Wg=s.computed(()=>{const x=Vg.value;return(x==null?void 0:x.closest("dialog"))??"body"}),eI=()=>{if(!F.value||!K.value.length)return;const x=Vg.value;if(!x)return;const gg=x.getBoundingClientRect(),tg=12,wg=h.value?10:3,Qg=Math.min(gg.width,window.innerWidth-tg*2),iI=window.innerWidth-Qg-tg,bi=Math.min(Math.max(gg.left,tg),iI);m.value={left:`${bi}px`,bottom:`${window.innerHeight-gg.top+wg}px`,width:`${Qg}px`,zIndex:"1001"}},gI=()=>{s.nextTick(()=>{const x=d.value;if(!x)return;const gg=x.querySelector('[data-mention-active="true"]');gg instanceof HTMLElement&&gg.scrollIntoView({block:"nearest"})})},TI=()=>window.innerWidth<=480,qI=()=>window.innerWidth<=480&&window.matchMedia("(hover: none) and (pointer: coarse)").matches,FI=x=>{u.value=!1,wn(!0,x)};let bI=!1,Cg=null;const Zg={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",heic:"image/heic",heif:"image/heif",mov:"video/quicktime",mp4:"video/mp4",m4v:"video/x-m4v",webm:"video/webm"},Mg={"image/png":"png","image/x-png":"png","image/jpeg":"jpg","image/jpg":"jpg","image/pjpeg":"jpg","image/gif":"gif","image/webp":"webp","image/bmp":"bmp","image/x-ms-bmp":"bmp","image/heic":"heic","image/heif":"heif","video/quicktime":"mov","video/mp4":"mp4","video/x-m4v":"m4v","video/webm":"webm"},WI=x=>{var tg;const gg=x.match(/\.([^.]+)$/);return((tg=gg==null?void 0:gg[1])==null?void 0:tg.toLowerCase())??""},pI=x=>{if(x.type)return x.type.toLowerCase();const gg=WI(x.name);return Zg[gg]??""},KI=(x,gg)=>{const tg=x.name.trim(),wg=Mg[gg],Qg=!!WI(tg);if(!tg){const iI=gg.startsWith("image/")?"image":gg.startsWith("video/")?"video":"file";return wg?`${iI}-${Date.now()}.${wg}`:`${iI}-${Date.now()}`}return Qg||!wg?tg:`${tg}.${wg}`},ge=(x,gg=pI(x))=>({fileName:x.name,fileType:x.type,normalizedMimeType:gg,fileSize:x.size,lastModified:x.lastModified}),uC=x=>x.startsWith("image/")||x.startsWith("video/"),he=async x=>{const gg=pI(x),tg=KI(x,gg);if(console.warn(`${Ho} normalize file`,{...ge(x,gg),normalizedFileName:tg,shouldDetach:uC(gg)}),gg===x.type&&tg===x.name&&!uC(gg))return console.warn(`${Ho} keep original file`,ge(x,gg)),x;try{const wg=await x.arrayBuffer();return console.warn(`${Ho} detached file copy created`,{...ge(x,gg),normalizedFileName:tg,bufferSize:wg.byteLength}),new File([wg],tg,{type:gg||x.type,lastModified:x.lastModified})}catch(wg){return console.warn(`${Ho} failed to detach file, using original`,{...ge(x,gg),normalizedFileName:tg,error:wg}),x}},Ie=x=>{const gg=new DataTransfer;return x.forEach(tg=>gg.items.add(tg)),gg.files},$e=async(x,gg)=>{console.warn(`${Ho} emitAttachFiles called`,{inputCount:Array.from(x).length,onlyMedia:gg});const tg=await Promise.all(Array.from(x,he));if(!tg.length){console.warn(`${Ho} no files after normalization`);return}const wg=gg??tg.every(Qg=>{const iI=pI(Qg);return iI.startsWith("image/")||iI.startsWith("video/")});console.warn(`${Ho} emit normalized files`,{files:tg.map(Qg=>ge(Qg)),isOnlyMedia:wg}),n("unmount-attach-file",Ie(tg),wg)},bt=async(x,gg)=>{const tg=await Promise.all(Array.from(x,he));if(tg.length){if(gg){const wg=tg.filter(iI=>uC(pI(iI))),Qg=tg.filter(iI=>!uC(pI(iI)));wg.length&&(G.value=[...G.value,...wg]),Qg.length&&(Z.value=[...Z.value,...Qg])}else Z.value=[...Z.value,...tg];h.value=!0}},HA=()=>{Z.value=[],G.value=[]},Zt=()=>{sg(),h.value=!1,HA()},xt=(x,gg)=>{if(x==="media"){const wg=G.value.filter((Qg,iI)=>iI!==gg);G.value=wg,!wg.length&&!Z.value.length&&Zt();return}const tg=Z.value.filter((wg,Qg)=>Qg!==gg);Z.value=tg,!tg.length&&!G.value.length&&Zt()},_i=async(x,gg)=>{var wg;const tg=x.target;(wg=tg.files)!=null&&wg.length&&(await bt(tg.files,gg),tg.value="")},$i=x=>x<1024?`${x} B`:x<1024*1024?`${(x/1024).toFixed(1)} KB`:`${(x/(1024*1024)).toFixed(1)} MB`,ir=x=>{if(!x)return"";const gg=x.lastIndexOf(".");if(gg===-1)return x;const tg=x.slice(0,gg),wg=x.slice(gg);return tg.length<=30?x:`${tg.slice(0,27)} ... ${wg}`};s.watch(()=>G.value,x=>{W.value.forEach(gg=>URL.revokeObjectURL(gg)),W.value=x.map(gg=>URL.createObjectURL(gg))},{deep:!0}),s.watch(()=>G.value[0],(x,gg)=>{w.value&&(URL.revokeObjectURL(w.value),w.value=null),!(!x||x===gg)&&(w.value=URL.createObjectURL(x))});const Ar=Ai.create({name:"spanNode",inline:!0,group:"inline",atom:!0,selectable:!1,addAttributes(){return{class:{default:"link"},content:{default:""},userId:{default:null,parseHTML:x=>x.getAttribute("data-user-id"),renderHTML:x=>x.userId?{"data-user-id":x.userId}:{}}}},parseHTML(){return[{tag:"span[data-span]"}]},renderHTML({node:x,HTMLAttributes:gg}){return["span",IC(gg,{"data-span":"",contenteditable:"false",class:x==null?void 0:x.attrs.class}),x==null?void 0:x.attrs.content]}}),Jg=e_g({extensions:[J$g.configure({link:!1,heading:!1,blockquote:!1,codeBlock:!1}),g$g.configure({openOnClick:!1,HTMLAttributes:{class:"link"}}),L$g.configure({placeholder:"Начните печатать...",emptyEditorClass:"is-editor-empty"}),Ar],content:t.value,editorProps:{handlePaste(x,gg){const tg=gg.clipboardData;return tg&&tg.files.length>0&&C.activeAttachFile?(gg.preventDefault(),gg.stopPropagation(),bI||(bI=!0,bt(tg.files,!0),setTimeout(()=>{bI=!1},200)),!0):!1}},onUpdate:({editor:x})=>{if(t.value=x.getHTML(),C.activeSelectUser){const{$from:gg}=x.state.selection,tg=Math.max(0,gg.parentOffset-50),Qg=gg.parent.textBetween(tg,gg.parentOffset,null,"").match(/@([^\s]*)$/);if(Qg){const iI=Qg[1].toLowerCase();B.value!==iI&&(Y.value=0),B.value=iI,n("mention-change",iI)}else B.value=null,y.value=null,n("mention-change",null)}},parseOptions:{preserveWhitespace:!0}});s.watch(t,x=>{Jg!=null&&Jg.value&&x!==Jg.value.getHTML()&&Jg.value.commands.setContent(x??"",{parseOptions:{preserveWhitespace:!0}})}),s.watch(K,x=>{if(!x.length){Y.value=0,m.value={};return}Y.value>=x.length&&(Y.value=x.length-1),F.value&&s.nextTick(()=>{eI(),gI()})}),s.watch(Y,()=>{F.value&&s.nextTick(()=>{eI(),gI()})}),s.watch(F,x=>{if(!x){Y.value=0,m.value={};return}y.value=null,s.nextTick(()=>{eI(),gI()})}),s.watch(()=>h.value,()=>{F.value&&s.nextTick(()=>eI())});const Gn=x=>{Jg!=null&&Jg.value&&Jg.value.chain().focus().insertContent(x.i).run()},wn=async(x=!1,gg)=>{if(!(Jg!=null&&Jg.value))return;const tg=document.createElement("input");tg.type="file",gg?(gg==="video"?tg.accept="video/*":gg==="image"?tg.accept="image/*":tg.accept="image/*,video/*",tg.capture="environment",tg.multiple=!1):(tg.multiple=!0,x&&(tg.accept="image/*,video/*")),tg.onchange=()=>{if(!(tg!=null&&tg.files))return;if(TI()&&(x||!!gg)){$e(tg.files,!0);return}bt(tg.files,x)},tg.click()},Va=x=>{console.warn(`${Ho} fileDropped event received`,x.files.map(gg=>ge(gg))),bt(x.files,x.onlyMedia)},Na=()=>{Jg!=null&&Jg.value&&(n("unmount-send",{content:Jg.value.getHTML(),files:Z.value.length?Ie(Z.value):void 0,mediaFiles:G.value.length?Ie(G.value):void 0}),h.value=!1,HA(),sg(),Jg.value.chain().focus())},Wn=()=>{if(Jg!=null&&Jg.value){if(f.value){Na();return}n("unmount-send",{content:Jg.value.getHTML()}),Jg.value.chain().focus()}},Wl=(x,gg)=>{if(!(Jg!=null&&Jg.value))return;const{$from:tg}=Jg.value.state.selection,wg=Math.max(0,tg.parentOffset-50),iI=tg.parent.textBetween(wg,tg.parentOffset,null,"").match(/@([^\s]*)$/);if(iI){const bi=tg.start()+wg+(iI.index||0);Jg.value.chain().focus().insertContentAt({from:bi,to:tg.pos},{type:"spanNode",attrs:{content:x,class:"link",...gg}}).run()}else Jg.value.chain().focus().insertContent({type:"spanNode",attrs:{content:x,class:"link",...gg}}).run()},WG=()=>{B.value=null,y.value=null,Y.value=0,n("mention-change",null)},eh=x=>{var wg,Qg,iI;const gg=((wg=C.mentionConfig)==null?void 0:wg.getInsertLabel)??C.mentionInsertLabel;if(!gg)return;const tg=gg(x);tg&&(Wl(tg,(iI=((Qg=C.mentionConfig)==null?void 0:Qg.getInsertAttrs)??C.mentionInsertAttrs)==null?void 0:iI(x)),WG())},Ch=()=>{if(!(Jg!=null&&Jg.value))return;const{$from:x}=Jg.value.state.selection,gg=Math.max(0,x.parentOffset-50),wg=x.parent.textBetween(gg,x.parentOffset,null,"").match(/@([^\s]*)$/);if(wg){const Qg=x.start()+gg+(wg.index||0);Jg.value.chain().focus().deleteRange({from:Qg,to:x.pos}).run()}else Jg.value.chain().focus().insertContent("@").run()},th=()=>{Jg!=null&&Jg.value&&Jg.value.chain().focus()},Ma=(x,gg=300,tg=260)=>{if(!x)return;const wg=x.getBoundingClientRect(),Qg=window.innerWidth,iI=window.innerHeight;A.value.vertical=wg.bottom+tg>iI?"top":"bottom",A.value.horizontal=wg.left+gg>Qg?"right":"left"},ig=x=>{if(i.value=!i.value,i.value){const gg=x.currentTarget;s.nextTick(()=>{Ma(gg)})}},sg=()=>{i.value=!1},Yg=()=>{const x=document.querySelector(".toolbar-button.smile-button");i.value&&x&&Ma(x),F.value&&eI()},Lg=()=>{if(!Jg.value)return null;const{selection:x,doc:gg}=Jg.value.state;if(!x.empty)return null;const{$from:tg}=x;let wg=-1,Qg=-1;for(let pn=tg.depth;pn>0;pn-=1){const fa=tg.node(pn);if(wg===-1&&fa.type.name==="listItem"&&(wg=pn),fa.type.name==="orderedList"){Qg=pn;break}}if(wg===-1||Qg===-1)return null;const iI=tg.node(Qg),bi=tg.node(wg),qe=tg.index(Qg),YC=tg.after(Qg),pl=tg.parent.isTextblock&&tg.parentOffset===tg.parent.content.size&&tg.index(wg)===bi.childCount-1;return{cursorPos:tg.pos,docSize:gg.content.size,isLastItem:qe===iI.childCount-1,isAtEndOfItem:pl,orderedListAfter:YC}},II=()=>{if(!Jg.value)return;const x=Lg();if(!x)return;const{state:gg,view:tg}=Jg.value,wg=x.orderedListAfter,Qg=gg.doc.resolve(wg).nodeAfter;let iI=gg.tr;if(!Qg||Qg.type.name!=="paragraph"){const bi=gg.schema.nodes.paragraph.create();iI=iI.insert(wg,bi)}iI=iI.setSelection(gn.near(iI.doc.resolve(wg+1))),tg.dispatch(iI.scrollIntoView()),tg.focus()},vI=x=>{var gg;if(!(window.innerWidth<=480)){if(x.key!=="ArrowDown"&&(Cg=null),F.value){if(x.key==="Escape"){x.preventDefault(),x.stopPropagation(),y.value=B.value;return}if(x.key==="Enter"){x.preventDefault(),x.stopPropagation(),Y.value>=0&&Y.value<K.value.length&&eh(K.value[Y.value]);return}if(K.value.length&&(x.key==="ArrowDown"||x.key==="ArrowUp")){x.preventDefault(),x.stopPropagation();const tg=x.key==="ArrowDown"?1:-1;Y.value=(Y.value+tg+K.value.length)%K.value.length;return}}if(x.key==="Enter"&&x.shiftKey&&!(x.ctrlKey||x.metaKey)&&((gg=Jg.value)!=null&&gg.isActive("orderedList"))){x.preventDefault(),x.stopPropagation(),Cg=null,Jg.value.commands.splitListItem("listItem");return}if(x.key==="ArrowDown"){const tg=Lg();if(tg!=null&&tg.isLastItem&&tg.isAtEndOfItem&&tg.orderedListAfter>=tg.docSize){x.preventDefault(),x.stopPropagation();const wg=Date.now();Cg&&Cg.pos===tg.cursorPos&&wg-Cg.timestamp<1200?(Cg=null,II()):Cg={pos:tg.cursorPos,timestamp:wg};return}Cg=null}!C.disableSendOnEnter&&x.key==="Enter"&&x.code&&!(x.shiftKey||x.ctrlKey||x.metaKey)&&(x.preventDefault(),x.stopPropagation(),Wn())}},hC=x=>{qI()&&x.preventDefault()};return s.onMounted(()=>{var x,gg;(gg=(x=Jg==null?void 0:Jg.value)==null?void 0:x.view)!=null&&gg.dom&&(l.value=Jg.value.view.dom,window.addEventListener("resize",Yg),window.addEventListener("scroll",Yg,!0),l.value.addEventListener("keydown",vI,{capture:!0}),l.value.addEventListener("contextmenu",hC))}),s.onBeforeUnmount(()=>{var x;(x=Jg==null?void 0:Jg.value)==null||x.destroy(),l.value&&(l.value.removeEventListener("keydown",vI,{capture:!0}),l.value.removeEventListener("contextmenu",hC)),w.value&&URL.revokeObjectURL(w.value),W.value.forEach(gg=>URL.revokeObjectURL(gg)),window.removeEventListener("resize",Yg),window.removeEventListener("scroll",Yg,!0)}),g({addSpanLink:Wl,focus:th,editor:Jg,emitAttachFiles:$e}),(x,gg)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",{ref_key:"mainMentionAnchorRef",ref:o,class:s.normalizeClass(["editor-component",{"editor-component--mentions-open":F.value}])},[x.$slots.action&&!h.value?(s.openBlock(),s.createElementBlock("div",BII,[s.renderSlot(x.$slots,"action")])):s.createCommentVNode("",!0),C.activeAttachFile?(s.openBlock(),s.createBlock(bd,{key:1,isWCUse:"",options:cg.value,translateY:"calc(-100% - 47px)",class:"mobile-item attach-file-popover"},{trigger:s.withCtx(()=>[s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button attach-file-button mobile-buttons"},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).paperClip},null,8,["name"])]),_:1},8,["type","size"])]),_:1},8,["options"])):s.createCommentVNode("",!0),h.value?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.unref(sz),{key:2,class:"editor-content",editor:s.unref(Jg)},null,8,["editor"])),h.value?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(pII,{key:3,editor:s.unref(Jg)||null},null,8,["editor"])),C.activeAttachFile&&!h.value?(s.openBlock(),s.createBlock(FJ,{key:4,onFilesDropped:Va})):s.createCommentVNode("",!0),h.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",yII,[s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button mobile-buttons smile-button",onClick:s.withModifiers(ig,["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).smile},null,8,["name"]),s.withDirectives(s.createElementVNode("div",{onClick:gg[0]||(gg[0]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass(Q.value)},[s.createVNode(s.unref(bf),{native:!0,onSelect:Gn})],2),[[s.vShow,i.value]])]),_:1},8,["type","size"]),s.withDirectives(s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button right mobile-buttons",onClick:Wn},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).planeRightFill,width:22,height:22,class:"content-editor__save"},null,8,["name"])]),_:1},8,["type","size"]),[[s.vShow,!M.value]])])),h.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",YII,[C.activeAttachFile?(s.openBlock(),s.createBlock(bd,{key:0,isWCUse:"",options:P.value,translateY:"calc(-100% - 47px)"},{trigger:s.withCtx(()=>[s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button attach-file-button"},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])]),_:1},8,["options"])):s.createCommentVNode("",!0),s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button smile-button",onClick:s.withModifiers(ig,["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).smile,width:16,height:16},null,8,["name"]),s.withDirectives(s.createElementVNode("div",{onClick:gg[1]||(gg[1]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass(Q.value)},[s.withDirectives(s.createVNode(s.unref(bf),{native:!0,onSelect:Gn},null,512),[[s.unref(La),sg,void 0,{bubble:!0}]])],2),[[s.vShow,i.value]])]),_:1},8,["type","size"]),C.activeSelectUser?(s.openBlock(),s.createBlock(JI,{key:1,type:s.unref(NI).ghost,class:"toolbar-button",size:s.unref(Le).small,onClick:Ch},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).atSign,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):s.createCommentVNode("",!0),s.createCommentVNode("",!0),s.createVNode(JI,{disabled:M.value,class:"toolbar-button right",size:s.unref(Le).small,onClick:Wn},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).planeRight,color:s.unref(Xb).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])),h.value?(s.openBlock(),s.createBlock(qW,{key:7,open:h.value,onClose:Zt,"disable-close-on-outside-click":"",position:"center",width:"min(430px, calc(100vw - 32px))",height:"auto",class:"attach-modal-container"},{default:s.withCtx(()=>[s.createElementVNode("div",VII,[s.createVNode(FJ,{onFilesDropped:Va}),s.createElementVNode("div",NII,[s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"attach-modal__close",onClick:Zt},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).crossLarge},null,8,["name"])]),_:1},8,["type","size"])]),mg.value.length>0||hg.value.length>0?(s.openBlock(),s.createElementBlock("div",MII,[s.createElementVNode("div",fII,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(mg.value,(tg,wg)=>(s.openBlock(),s.createElementBlock("div",{key:`media-chunk-${wg}`,class:s.normalizeClass(["attach-modal__media-grid",`attach-modal__media-grid-${tg.length}-item`])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(tg,Qg=>(s.openBlock(),s.createElementBlock("div",{key:Qg.id,class:"attach-modal__media-tile"},[Qg.isVideo?(s.openBlock(),s.createElementBlock("video",{key:0,draggable:"false",src:Qg.url,muted:"",playsinline:""},null,8,RII)):(s.openBlock(),s.createElementBlock("img",{key:1,draggable:"false",src:Qg.url,alt:Qg.file.name},null,8,XII)),s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"attach-modal__media-tile-remove",onClick:s.withModifiers(iI=>xt("media",Qg.index),["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).trash,width:24,height:24},null,8,["name"])]),_:1},8,["type","size","onClick"])]))),128))],2))),128)),hg.value.length?(s.openBlock(),s.createElementBlock("div",HII,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(hg.value,tg=>(s.openBlock(),s.createElementBlock("div",{key:tg.id,class:"attach-modal__attachment"},[s.createElementVNode("div",DII,[s.createVNode(Xg,{name:s.unref(rg).fileItem,width:18,height:18},null,8,["name"])]),s.createElementVNode("div",SII,[s.createElementVNode("div",KII,s.toDisplayString(ir(tg.file.name)),1),s.createElementVNode("div",kII,s.toDisplayString($i(tg.file.size)),1)]),s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"attach-modal__attachment-remove",onClick:wg=>xt(tg.kind,tg.index)},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).trash,width:24,height:24},null,8,["name"])]),_:1},8,["type","size","onClick"])]))),128))])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{ref_key:"modalMentionAnchorRef",ref:a,class:"attach-modal__editor"},[x.$slots.action?(s.openBlock(),s.createElementBlock("div",FII,[s.renderSlot(x.$slots,"action")])):s.createCommentVNode("",!0),s.createVNode(s.unref(sz),{class:"editor-content",editor:s.unref(Jg)},null,8,["editor"]),s.createElementVNode("div",zII,[s.createElementVNode("div",JII,[s.createVNode(bd,{isWCUse:"",disabled:!C.activeAttachFile,options:P.value,translateY:"calc(-100% - 47px)"},{trigger:s.withCtx(()=>[s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button attach-file-button",disabled:!C.activeAttachFile},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).paperClip,width:16,height:16},null,8,["name"])]),_:1},8,["type","size","disabled"])]),_:1},8,["disabled","options"]),s.createVNode(JI,{type:s.unref(NI).ghost,size:s.unref(Le).small,class:"toolbar-button smile-button",onClick:s.withModifiers(ig,["stop"])},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).smile,width:16,height:16},null,8,["name"]),s.withDirectives(s.createElementVNode("div",{onClick:gg[2]||(gg[2]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass(Q.value)},[s.withDirectives(s.createVNode(s.unref(bf),{native:!0,onSelect:Gn},null,512),[[s.unref(La),sg,void 0,{bubble:!0}]])],2),[[s.vShow,i.value]])]),_:1},8,["type","size"]),C.activeSelectUser?(s.openBlock(),s.createBlock(JI,{key:0,type:s.unref(NI).ghost,class:"toolbar-button",size:s.unref(Le).small,onClick:Ch},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).atSign,width:16,height:16},null,8,["name"])]),_:1},8,["type","size"])):s.createCommentVNode("",!0)]),s.createVNode(JI,{disabled:M.value,class:"toolbar-button right",size:s.unref(Le).small,onClick:Na},{default:s.withCtx(()=>[s.createVNode(Xg,{name:s.unref(rg).planeRight,color:s.unref(Xb).white,width:16,height:16},null,8,["name","color"])]),_:1},8,["disabled","size"])])],512)])]),_:3},8,["open"])):s.createCommentVNode("",!0),u.value?(s.openBlock(),s.createBlock(qW,{key:8,open:u.value,onClose:gg[5]||(gg[5]=tg=>u.value=!1),position:"center",width:"320px",height:"auto"},{default:s.withCtx(()=>[s.createElementVNode("div",LII,[gg[10]||(gg[10]=s.createElementVNode("div",{class:"camera-selection-header"},"Выберите действие",-1)),s.createElementVNode("div",TII,[s.createVNode(JI,{type:s.unref(NI).outline,onClick:gg[3]||(gg[3]=tg=>FI("image")),class:"camera-selection-item"},{default:s.withCtx(()=>[...gg[8]||(gg[8]=[s.createTextVNode(" Сделать фото ",-1)])]),_:1},8,["type"]),s.createVNode(JI,{type:s.unref(NI).outline,onClick:gg[4]||(gg[4]=tg=>FI("video")),class:"camera-selection-item"},{default:s.withCtx(()=>[...gg[9]||(gg[9]=[s.createTextVNode(" Записать видео ",-1)])]),_:1},8,["type"])])])]),_:1},8,["open"])):s.createCommentVNode("",!0),s.createElementVNode("input",{ref:"pendingFileInputRef",type:"file",multiple:"",class:"attach-hidden-input",onChange:gg[6]||(gg[6]=tg=>_i(tg,!1))},null,544),s.createElementVNode("input",{ref:"pendingMediaInputRef",type:"file",accept:"image/*,video/*",multiple:"",class:"attach-hidden-input",onChange:gg[7]||(gg[7]=tg=>_i(tg,!0))},null,544)],2),(s.openBlock(),s.createBlock(s.Teleport,{to:Wg.value},[F.value&&K.value.length?(s.openBlock(),s.createElementBlock("div",{key:0,ref_key:"mentionListRef",ref:d,class:"editor-component__mentions-portal"},[s.createVNode(dII,{items:K.value,"selected-index":Y.value,"is-fixed":"","position-style":m.value,"get-key":X,"get-label":z,"get-subtitle":L,"get-avatar-url":O,"get-avatar-initials":Ig,"get-is-online":eg,onSelect:eh},null,8,["items","selected-index","position-style"])],512)):s.createCommentVNode("",!0)],8,["to"]))],64))}}),vII=["data-testid"],jII=["data-testid"],Do="[Cropper][BaseCropper]",xII=zg(s.defineComponent({name:"BaseCropper",__name:"BaseCropper",props:{image:{},max:{default:3},min:{default:1},step:{default:.5}},emits:["unmount-scale"],setup(e,{expose:g,emit:I}){const C=e,t=I,i=s.useTemplateRef("canvas"),A=s.useTemplateRef("container"),n=s.reactive({ctx:null,image:null,id:s.useId(),scale:1,position:{x:0,y:0},isDragging:!1,startX:0,startY:0,minScale:C.min,maxScale:C.max,stepScale:C.step});s.watch(()=>C.image,()=>{C.image&&h(C.image)});const l=()=>{i.value&&(n.ctx=i.value.getContext("2d")),o(),window.addEventListener("resize",o)},o=()=>{if(A.value){const{width:F,height:X}=A.value.getBoundingClientRect();i.value&&(i.value.width=F,i.value.height=X),n.image&&a()}},a=()=>{if(n.image){const F=n.ctx,X=i.value;F&&X&&(F.clearRect(0,0,X.width,X.height),F.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale))}},d=F=>new Promise(X=>setTimeout(X,F)),m=F=>["image/png","image/jpeg"].includes(F.type.toLowerCase()),u=F=>({fileName:F.name,fileType:F.type,fileSize:F.size,lastModified:F.lastModified,isScreenshotLike:m(F)}),h=F=>{const X=m(F)?6:3;let z=0;console.warn(`${Do} loadImage start`,{...u(F),maxRetries:X});const L=new FileReader;L.onload=async O=>{var Ig;console.warn(`${Do} FileReader load success`,{...u(F),attempt:z+1}),typeof((Ig=O.target)==null?void 0:Ig.result)=="string"&&(n.image=new Image,n.image.src=O.target.result,n.image.onload=async()=>{if(console.warn(`${Do} image decode success`,u(F)),await s.nextTick(),i.value&&n.image){const eg=i.value.width,Q=i.value.height,P=n.image.width/n.image.height,cg=eg/Q;P>cg?(n.image.width=eg,n.image.height=eg/P):(n.image.height=Q,n.image.width=Q*P),o(),n.position.x=(i.value.width-n.image.width)/2,n.position.y=(i.value.height-n.image.height)/2,a()}})},L.onerror=async()=>{if(console.warn(`${Do} FileReader load error`,{...u(F),attempt:z+1,maxRetries:X,error:L.error}),z>=X){try{console.warn(`${Do} fallback to detached file`,u(F));const Ig=await F.arrayBuffer(),eg=new File([Ig],F.name,{type:F.type||"application/octet-stream",lastModified:F.lastModified});z+=1,console.warn(`${Do} retry readAsDataURL with detached file`,{...u(eg),attempt:z+1}),L.readAsDataURL(eg)}catch(Ig){console.error("Failed to load cropper image",{fileName:F.name,error:Ig})}return}z+=1;const O=(m(F)?180:120)*z;console.warn(`${Do} schedule FileReader retry`,{...u(F),attempt:z+1,retryDelay:O}),await d(O),L.readAsDataURL(F)},console.warn(`${Do} initial readAsDataURL`,u(F)),L.readAsDataURL(F)},Z=F=>{n.isDragging=!0,n.startX=F.clientX-n.position.x,n.startY=F.clientY-n.position.y,window.addEventListener("mousemove",G),window.addEventListener("mouseup",w)},G=F=>{if(!n.isDragging&&!i.value)return;let X=F.clientX-n.startX,z=F.clientY-n.startY;if(i.value&&n.image){const L=i.value.width-n.image.width*n.scale;n.image.width*n.scale<i.value.width?X=Math.min(Math.max(X,0),i.value.width-n.image.width*n.scale):(X>0&&(X=0),X<L&&(X=L));const O=i.value.height-n.image.height*n.scale;n.image.height*n.scale<i.value.height?z=Math.min(Math.max(z,0),i.value.height-n.image.height*n.scale):(z>0&&(z=0),z<O&&(z=O)),n.position.x=X,n.position.y=z}a()},w=()=>{n.isDragging=!1,window.removeEventListener("mousemove",G),window.removeEventListener("mouseup",w)},W=F=>Math.max(n.minScale,Math.min(F,n.maxScale)),B=F=>{if(i.value){const X=i.value.width/2,z=i.value.height/2;n.position.x=X-(X-n.position.x)*F,n.position.y=z-(z-n.position.y)*F}},y=F=>{const X=n.scale,z=n.scale+F.deltaY*-.001;if(X===W(z))return;n.scale=W(z);const L=z/X;B(L),t("unmount-scale",n.scale),a()};return g({cropImage:()=>{if(A.value){const{width:F,height:X}=A.value.getBoundingClientRect(),z=document.createElement("canvas");z.width=F,z.height=X;const L=z.getContext("2d");L&&n.image&&L.drawImage(n.image,n.position.x,n.position.y,n.image.width*n.scale,n.image.height*n.scale);const O=z.toDataURL("image/png"),Ig=atob(O.split(",")[1]),eg=new ArrayBuffer(Ig.length),Q=new Uint8Array(eg);for(let cg=0;cg<Ig.length;cg++)Q[cg]=Ig.charCodeAt(cg);const P=new Blob([Q],{type:"image/png"});return C.image?new File([P],C.image.name,{type:"image/png"}):null}return null},scalePlus:()=>{const F=n.scale+n.stepScale;n.scale=W(F),a()},scaleMinus:()=>{const F=n.scale-n.stepScale;n.scale=W(F),a()},setScale:F=>{const X=n.scale,L=F/X;n.scale=W(F),B(L),a()},startMove:Z,scaleImage:y}),s.onMounted(()=>{l(),C.image&&h(C.image)}),(F,X)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"container",ref:A,class:"base-cropper","data-testid":`BaseCropper-${n.id}`},[s.createElementVNode("canvas",{ref_key:"canvas",ref:i,class:"base-cropper__canvas","data-testid":`BaseCropper-${n.id}-canvas`,onMousedown:Z,onWheel:s.withModifiers(y,["prevent"])},null,40,jII)],8,vII))}}),[["__scopeId","data-v-8390bd52"]]),OII=e=>{const g=s.ref(e==null?void 0:e.defaultValue),I=e==null?void 0:e.min,C=e==null?void 0:e.max,t=e==null?void 0:e.step;s.watch(g,A=>{g.value=i(A)});const i=A=>Math.max(I,Math.min(A,C));return{value:g,min:I,max:C,step:t,getCorrectValue:i}},QII=(e,g)=>new File([e],g,{type:e.type}),UII=["data-testid"],EII=["data-testid"],PII=["data-testid"],_II=["data-testid"],$II=["data-testid"],qII=["data-testid"],Gf=zg(s.defineComponent({name:"ModalCroppedAvatar",__name:"ModalCroppedAvatar",props:{image:{},open:{type:Boolean},position:{default:"center"},width:{default:"650px"},height:{default:"auto"},disableCloseOnOutsideClick:{type:Boolean},isResetFocus:{type:Boolean},dataTestid:{}},emits:["unmount-close","unmount-save"],setup(e,{emit:g}){const I=e,C=g,{max:t,min:i,step:A,value:n}=OII({defaultValue:1,max:3,min:1,step:.1}),l=s.useId(),o=s.useTemplateRef("cropper"),a=s.reactive({openModal:!1});s.watch(n,()=>{o.value&&o.value.setScale(n.value)});const d=()=>{a.openModal=!1,C("unmount-close")},m=G=>{n.value=G},u=()=>{n.value=n.value-A},h=()=>{n.value=n.value+A},Z=()=>{if(o.value){const G=o.value.cropImage();if(G){const w=G.name,W=QII(G,w);C("unmount-save",W),d()}}};return s.onUnmounted(()=>{d()}),s.onMounted(()=>{I.open===void 0&&(a.openModal=I.open)}),(G,w)=>(s.openBlock(),s.createBlock(H0,s.mergeProps(I,{class:"modal-cropped-avatar","data-testid":`ModalCroppedAvatar-${s.unref(l)}`,onClose:d}),{default:s.withCtx(()=>[s.createElementVNode("div",{class:"modal-cropped-avatar__content","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content`},[s.createElementVNode("div",{class:"modal-cropped-avatar__title","data-testid":`ModalCroppedAvatar-${s.unref(l)}-title`}," Изменение фото профиля ",8,EII),s.createElementVNode("div",{class:"modal-cropped-avatar__main","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-main`},[s.createElementVNode("div",{class:"modal-cropped-avatar__cropped","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-main-cropped`},[s.createVNode(xII,{ref_key:"cropper",ref:o,image:e.image,max:s.unref(t),min:s.unref(i),step:s.unref(A),class:"modal-cropped-avatar__cropper",onUnmountScale:m},null,8,["image","max","min","step"]),s.createElementVNode("div",{class:"modal-cropped-avatar__tools","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-tools`},[s.createVNode(Xg,{name:s.unref(rg).minus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-iconMinus`,onClick:u},null,8,["name","data-testid"]),s.createVNode(rp,{max:s.unref(t),min:s.unref(i),step:s.unref(A),modelValue:s.unref(n),"onUpdate:modelValue":w[0]||(w[0]=W=>s.isRef(n)?n.value=W:null),"data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-Range`},null,8,["max","min","step","modelValue","data-testid"]),s.createVNode(Xg,{name:s.unref(rg).plus,class:"modal-cropped-avatar__icon","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-IconPlus`,onClick:h},null,8,["name","data-testid"])],8,$II)],8,_II),s.createElementVNode("div",{class:"modal-cropped-avatar__buttons","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-buttons`},[s.createVNode(JI,{type:s.unref(NI).outline,class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-ButtonCancel`,onClick:d},{default:s.withCtx(()=>[...w[1]||(w[1]=[s.createTextVNode(" Отменить ",-1)])]),_:1},8,["type","data-testid"]),s.createVNode(JI,{class:"modal-cropped-avatar__button","data-testid":`ModalCroppedAvatar-${s.unref(l)}-content-buttonSave`,onClick:Z},{default:s.withCtx(()=>[...w[2]||(w[2]=[s.createTextVNode(" Сохранить ",-1)])]),_:1},8,["data-testid"])],8,qII)],8,PII)],8,UII)]),_:1},16,["data-testid"]))}}),[["__scopeId","data-v-65b5d91e"]]),wf={install(e,g={enabled:!0}){if(!(g.enabled??!1)){console.info("[removeDataTestidPlugin] Plugin is disabled.");return}const C=t=>{t.removeAttribute("data-testid"),Array.from(t.children).forEach(C)};e.mixin({mounted(){C(this.$el)}})}},geI=["src"],Wf=s.defineComponent({name:"ImagePreview",__name:"ImagePreview",props:{src:{}},emits:["error"],setup(e,{expose:g,emit:I}){const C=e,t=I,i=s.reactive({isError:!1,rotate:0});s.watch(()=>C.src,()=>{i.isError=!1,i.rotate=0,s.nextTick(()=>{n()})});const A=s.ref(null),n=async()=>{try{if(!A.value||!C.src)return;const o=new Image;o.src=C.src,o.addEventListener("load",()=>{var Z;if(!A.value)return;const a=(Z=A.value)==null?void 0:Z.getContext("2d");if(!a)return;const d=o.width,m=o.height;let u=d,h=m;i.rotate%180!==0&&(u=m,h=d),A.value.width=u,A.value.height=h,a.save(),a.clearRect(0,0,u,h),a.translate(u/2,h/2),a.rotate(i.rotate*Math.PI/180),a.drawImage(o,-d/2,-m/2,d,m),a.restore()}),o.addEventListener("error",a=>{i.isError=!0,t("error",a)})}catch{t("error",new Event("error")),i.isError=!0}},l=async o=>{const a=Math.round(o/90)*90;i.rotate+=a,s.nextTick(()=>{n()})};return s.onMounted(()=>{s.nextTick(()=>{n()})}),g({rotateImage:l}),(o,a)=>i.isError?(s.openBlock(),s.createElementBlock("img",{key:1,src:s.unref(zn)},null,8,geI)):(s.openBlock(),s.createElementBlock("canvas",{key:0,ref_key:"canvasRef",ref:A,class:"image-preview"},null,512))}}),zJ={Accordion:F1,Badges:tt,BreadCrumbs:zy,Dialog:dW,DragAndDrop:z1,Card:J1,Combobox:T1,Calendar:k1,Button:JI,Switch:dw,SelectList:Gr,Dropdown:eY,Textarea:gN,Filter:L1,Icon:Xg,Input:j1,InputNumber:_h,Picture:eN,PushNotification:CN,Scroll:EV,Search:o0,Modal:H0,Slider:UV,Checkbox:PV,Toggle:tp,UserMenu:qV,CopyIcon:tN,Loader:K0,FilterTag:iN,CircularProgress:AN,Popover:bd,Table:nN,TableNew:aN,TableSimple:cN,TableRow:cp,TableRowNew:dN,TableTd:v0,TableTh:em,SectionTableRow:lN,HeadTableRow:L0,HeadTableRowNew:mp,ScrollWrapper:T0,ScrollWrapperNew:OUg,Radio:sN,Tooltip:hd,BaseFilter:oN,Range:rp,Tabs:rN,ContentEditor:Zf,ModalCroppedAvatar:Gf,Avatar:J0,TimePicker:cW,SliderModal:Cp,PdfPreview:Dl,ImagePreview:Wf,VideoPreview:D0,Skeleton:dp},JJ=Object.freeze(Object.defineProperty({__proto__:null,Accordion:F1,Avatar:J0,Badges:tt,BadgesTypeEnum:zI,BaseFilter:oN,BreadCrumbs:zy,Button:JI,ButtonTypeEnum:NI,Calendar:k1,Card:J1,Checkbox:PV,CheckboxCircularEnum:sp,CheckboxSizeEnum:lp,CircularProgress:AN,ColorsEnum:Xb,Combobox:T1,ContentEditor:Zf,CopyIcon:tN,Dialog:dW,DragAndDrop:z1,Dropdown:eY,Filter:L1,FilterTag:iN,HeadTableRow:L0,HeadTableRowNew:mp,Icon:Xg,IconNameEnum:rg,ImageExtensionsEnum:d0,ImagePreview:Wf,Input:j1,InputNumber:_h,InputTypeEnum:v1,Loader:K0,MenuTypeEnum:de,MessageTypeEnum:ap,Modal:H0,ModalCroppedAvatar:Gf,PdfPreview:Dl,Picture:eN,Popover:bd,PushNotification:CN,Radio:sN,Range:rp,Scroll:EV,ScrollWrapper:T0,Search:o0,SectionTableRow:lN,SelectList:Gr,SizesEnum:Le,Skeleton:dp,Slider:UV,SliderModal:Cp,Switch:dw,Table:nN,TableNew:aN,TableRow:cp,TableRowNew:dN,TableSimple:cN,TableTd:v0,TableTh:em,Tabs:rN,TextFieldEnum:pW,Textarea:gN,TextareaTypeEnum:op,TimePicker:cW,Toggle:tp,Tooltip:hd,UserMenu:qV,VideoExtensionsEnum:c0,VideoPreview:D0,default:{install:e=>{Object.keys(zJ).forEach(g=>{e.component("Y"+g,zJ[g])})}},getFirstTime:RS,getLastTime:wW,vuePluginRemoveTestid:wf},Symbol.toStringTag,{value:"Module"})),IeI={install(e){for(const g in JJ){const I=JJ[g];e.use(I).use(wf,{enabled:!1})}}};$.Accordion=F1,$.Avatar=J0,$.Badges=tt,$.BadgesTypeEnum=zI,$.BaseFilter=oN,$.BreadCrumbs=zy,$.Button=JI,$.ButtonTypeEnum=NI,$.Calendar=k1,$.Card=J1,$.Checkbox=PV,$.CheckboxCircularEnum=sp,$.CheckboxSizeEnum=lp,$.CircularProgress=AN,$.ColorsEnum=Xb,$.Combobox=T1,$.ContentEditor=Zf,$.CopyIcon=tN,$.Dialog=dW,$.DragAndDrop=z1,$.Dropdown=eY,$.Filter=L1,$.FilterTag=iN,$.HeadTableRow=L0,$.HeadTableRowNew=mp,$.Icon=Xg,$.IconNameEnum=rg,$.ImageExtensionsEnum=d0,$.ImagePreview=Wf,$.Input=j1,$.InputNumber=_h,$.InputTypeEnum=v1,$.Loader=K0,$.MenuTypeEnum=de,$.MessageTypeEnum=ap,$.Modal=H0,$.ModalCroppedAvatar=Gf,$.OnClickOutside=$Q,$.OnLongPress=CU,$.PdfPreview=Dl,$.Picture=eN,$.Popover=bd,$.PushNotification=CN,$.Radio=sN,$.Range=rp,$.Scroll=EV,$.ScrollWrapper=T0,$.Search=o0,$.SectionTableRow=lN,$.SelectList=Gr,$.SizesEnum=Le,$.Skeleton=dp,$.Slider=UV,$.SliderModal=Cp,$.Switch=dw,$.Table=nN,$.TableNew=aN,$.TableRow=cp,$.TableRowNew=dN,$.TableSimple=cN,$.TableTd=v0,$.TableTh=em,$.Tabs=rN,$.TextFieldEnum=pW,$.Textarea=gN,$.TextareaTypeEnum=op,$.TimePicker=cW,$.Toggle=tp,$.Tooltip=hd,$.UseActiveElement=tU,$.UseBattery=iU,$.UseBrowserLocation=AU,$.UseClipboard=nU,$.UseColorMode=bU,$.UseDark=ZU,$.UseDeviceMotion=GU,$.UseDeviceOrientation=wU,$.UseDevicePixelRatio=WU,$.UseDevicesList=pU,$.UseDocumentVisibility=BU,$.UseDraggable=yU,$.UseElementBounding=YU,$.UseElementSize=NU,$.UseElementVisibility=RU,$.UseEyeDropper=HU,$.UseFullscreen=DU,$.UseGeolocation=SU,$.UseIdle=KU,$.UseImage=JU,$.UseMouse=vU,$.UseMouseInElement=jU,$.UseMousePressed=xU,$.UseNetwork=OU,$.UseNow=QU,$.UseObjectUrl=UU,$.UseOffsetPagination=EU,$.UseOnline=PU,$.UsePageLeave=_U,$.UsePointer=$U,$.UsePointerLock=qU,$.UsePreferredColorScheme=gE,$.UsePreferredContrast=IE,$.UsePreferredDark=eE,$.UsePreferredLanguages=CE,$.UsePreferredReducedMotion=tE,$.UseScreenSafeArea=lE,$.UseTimeAgo=rE,$.UseTimestamp=mE,$.UseVirtualList=uE,$.UseWindowFocus=hE,$.UseWindowSize=bE,$.UserMenu=qV,$.VOnClickOutside=La,$.VOnLongPress=pX,$.VideoExtensionsEnum=c0,$.VideoPreview=D0,$.VueToolsCore=sTg,$.arrow=pvg,$.autoPlacement=yS,$.autoUpdate=pS,$.computePosition=YS,$.default=IeI,$.detectOverflow=rvg,$.flip=uvg,$.getFirstTime=RS,$.getLastTime=wW,$.getOverflowAncestors=Tr,$.hide=bvg,$.inline=Gvg,$.limitShift=wvg,$.offset=BS,$.platform=wS,$.shift=mvg,$.size=hvg,$.useFloating=MS,$.useSearch=XS,$.vElementHover=VU,$.vElementSize=fU,$.vElementVisibility=XU,$.vInfiniteScroll=LU,$.vIntersectionObserver=TU,$.vOnClickOutside=La,$.vOnKeyStroke=gU,$.vOnLongPress=pX,$.vResizeObserver=iE,$.vScroll=sE,$.vScrollLock=cE,$.vuePluginRemoveTestid=wf,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pksep/yui",
3
3
  "author": "Perov David",
4
- "version": "0.1.248",
4
+ "version": "0.1.249",
5
5
  "packageManager": "pnpm@9.9.0",
6
6
  "main": "./dist/sep-yui.umd.ts",
7
7
  "module": "./dist/sep-yui.ts",