@bigbinary/neeto-editor 0.9.4 → 0.9.6

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.
package/CHANGELOG.md CHANGED
@@ -22,7 +22,25 @@ Prefix the change with one of these keywords:
22
22
  - *Fixed*: for any bug fixes.
23
23
  - *Security*: in case of vulnerabilities.
24
24
 
25
- ## [Unreleased](https://github.com/bigbinary/neeto-editor/compare/ea5536b2cdd26997549f538af5b399bd268b3187...HEAD)
25
+ ## [Unreleased](https://github.com/bigbinary/neeto-editor/compare/4defcb02234742b1a5fc9fbefa87e44421b7b82c...HEAD)
26
+
27
+ ## [0.9.6](https://github.com/bigbinary/neeto-editor/compare/57c679b576f326e1e1c0110f9ae7665668448cdb...4defcb02234742b1a5fc9fbefa87e44421b7b82c) - 2022-09-26
28
+
29
+ - Updated the `publish` workflow to use `bigbinary/changelog-updater-action@v2`.
30
+ - Moved all the changelog entries at the bottom of the file to the top.
31
+
32
+ ## [0.9.5](https://github.com/bigbinary/neeto-editor/compare/ea5536b2cdd26997549f538af5b399bd268b3187...57c679b576f326e1e1c0110f9ae7665668448cdb) - 2022-09-21
33
+
34
+ - Fixed: prevent clicking of *BubbleMenu* buttons from submitting the form.
35
+
36
+ ## [0.9.4](https://github.com/bigbinary/neeto-editor/compare/b6d908b8c2cd13d0cd16c3714283ffc1ccf329c4...ea5536b2cdd26997549f538af5b399bd268b3187) - 2022-09-21
37
+
38
+ - Fixed: issue with autoFocus prop in conditionally rendered editor
39
+
40
+ ## [0.9.3](https://github.com/bigbinary/neeto-editor/compare/dae456385fb32ecd2af4cd8844bec10d1c65e4c3...b6d908b8c2cd13d0cd16c3714283ffc1ccf329c4) - 2022-09-21
41
+
42
+ - Added: level 3 heading (h3) to the list of default headings.
43
+ - Added: font style dropdown to the bubble menu.
26
44
 
27
45
  ## [0.9.0](https://github.com/bigbinary/neeto-editor/compare/97e0add1b8ecb5de62ebf9984a37b25dbc01bfd0...fb41580bda01e5a63dbd92570bc27a699304653a) - 2022-09-19
28
46
 
@@ -131,12 +149,3 @@ Prefix the change with one of these keywords:
131
149
  ## [0.5.0](https://github.com/bigbinary/neeto-editor/compare/11895239fd8888accbdc2d45473d6d251c55765c...3fec138f2c29a807efcadbbd61df06edd9aeee4b) - 2022-07-21
132
150
 
133
151
  - Fixed: the overlap of placeholder with images.
134
-
135
- ## [0.9.3](https://github.com/bigbinary/neeto-editor/compare/dae456385fb32ecd2af4cd8844bec10d1c65e4c3...b6d908b8c2cd13d0cd16c3714283ffc1ccf329c4) - 2022-09-21
136
-
137
- - Added: level 3 heading (h3) to the list of default headings.
138
- - Added: font style dropdown to the bubble menu.
139
-
140
- ## [0.9.4](https://github.com/bigbinary/neeto-editor/compare/b6d908b8c2cd13d0cd16c3714283ffc1ccf329c4...ea5536b2cdd26997549f538af5b399bd268b3187) - 2022-09-21
141
-
142
- - Fixed: issue with autoFocus prop in conditionally rendered editor
package/build/index.js CHANGED
@@ -29,7 +29,7 @@ od.exports=sd;var $d=od.exports,Hd={exports:{}},Wd={},Vd="function"==typeof Symb
29
29
  * http://jaywcjlove.github.io/hotkeys
30
30
  * Licensed under the MIT license
31
31
  */
32
- var xh="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Eh(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function Mh(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function kh(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var _h={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":xh?173:189,"=":xh?61:187,";":xh?59:186,"'":222,"[":219,"]":221,"\\":220},Dh={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Ch={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Oh={16:!1,18:!1,17:!1,91:!1},Nh={},Th=1;Th<20;Th++)_h["f".concat(Th)]=111+Th;var Sh=[],Ah=!1,Ih="all",Lh=[],jh=function(e){return _h[e.toLowerCase()]||Dh[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function zh(e){Ih=e||"all"}function Fh(){return Ih||"all"}var Ph=function(e){var t=e.key,n=e.scope,r=e.method,i=e.splitKey,o=void 0===i?"+":i;kh(t).forEach((function(e){var t=e.split(o),i=t.length,s=t[i-1],a="*"===s?"*":jh(s);if(Nh[a]){n||(n=Fh());var l=i>1?Mh(Dh,t):[];Nh[a]=Nh[a].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,o=0;o<n.length;o++)-1===r.indexOf(n[o])&&(i=!1);return i}(e.mods,l))}))}}))};function Rh(e,t,n,r){var i;if(t.element===r&&(t.scope===n||"all"===t.scope)){for(var o in i=t.mods.length>0,Oh)Object.prototype.hasOwnProperty.call(Oh,o)&&(!Oh[o]&&t.mods.indexOf(+o)>-1||Oh[o]&&-1===t.mods.indexOf(+o))&&(i=!1);(0!==t.mods.length||Oh[16]||Oh[18]||Oh[17]||Oh[91])&&!i&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function Bh(e,t){var n=Nh["*"],r=e.keyCode||e.which||e.charCode;if(Uh.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===Sh.indexOf(r)&&229!==r&&Sh.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=Ch[t];e[t]&&-1===Sh.indexOf(n)?Sh.push(n):!e[t]&&Sh.indexOf(n)>-1?Sh.splice(Sh.indexOf(n),1):"metaKey"===t&&e[t]&&3===Sh.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Sh=Sh.slice(Sh.indexOf(n))))})),r in Oh){for(var i in Oh[r]=!0,Dh)Dh[i]===r&&(Uh[i]=!0);if(!n)return}for(var o in Oh)Object.prototype.hasOwnProperty.call(Oh,o)&&(Oh[o]=e[Ch[o]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Sh.indexOf(17)&&Sh.push(17),-1===Sh.indexOf(18)&&Sh.push(18),Oh[17]=!0,Oh[18]=!0);var s=Fh();if(n)for(var a=0;a<n.length;a++)n[a].scope===s&&("keydown"===e.type&&n[a].keydown||"keyup"===e.type&&n[a].keyup)&&Rh(e,n[a],s,t);if(r in Nh)for(var l=0;l<Nh[r].length;l++)if(("keydown"===e.type&&Nh[r][l].keydown||"keyup"===e.type&&Nh[r][l].keyup)&&Nh[r][l].key){for(var c=Nh[r][l],u=c.splitKey,d=c.key.split(u),p=[],h=0;h<d.length;h++)p.push(jh(d[h]));p.sort().join("")===Sh.sort().join("")&&Rh(e,c,s,t)}}}function Uh(e,t,n){Sh=[];var r=kh(e),i=[],o="all",s=document,a=0,l=!1,c=!0,u="+",d=!1;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(o=t.scope),t.element&&(s=t.element),t.keyup&&(l=t.keyup),void 0!==t.keydown&&(c=t.keydown),void 0!==t.capture&&(d=t.capture),"string"==typeof t.splitKey&&(u=t.splitKey)),"string"==typeof t&&(o=t);a<r.length;a++)i=[],(e=r[a].split(u)).length>1&&(i=Mh(Dh,e)),(e="*"===(e=e[e.length-1])?"*":jh(e))in Nh||(Nh[e]=[]),Nh[e].push({keyup:l,keydown:c,scope:o,mods:i,shortcut:r[a],method:n,key:r[a],splitKey:u,element:s});void 0!==s&&!function(e){return Lh.indexOf(e)>-1}(s)&&window&&(Lh.push(s),Eh(s,"keydown",(function(e){Bh(e,s)}),d),Ah||(Ah=!0,Eh(window,"focus",(function(){Sh=[]}),d)),Eh(s,"keyup",(function(e){Bh(e,s),function(e){var t=e.keyCode||e.which||e.charCode,n=Sh.indexOf(t);if(n>=0&&Sh.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&Sh.splice(0,Sh.length),93!==t&&224!==t||(t=91),t in Oh)for(var r in Oh[t]=!1,Dh)Dh[r]===t&&(Uh[r]=!1)}(e)}),d))}var $h={setScope:zh,getScope:Fh,deleteScope:function(e,t){var n,r;for(var i in e||(e=Fh()),Nh)if(Object.prototype.hasOwnProperty.call(Nh,i))for(n=Nh[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;Fh()===e&&zh(t||"all")},getPressedKeyCodes:function(){return Sh.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=jh(e)),-1!==Sh.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(Nh).forEach((function(n){var r=Nh[n].find((function(n){return n.scope===t&&n.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&Ph(e)}));else if("object"==typeof e)e.key&&Ph(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],o=n[1];"function"==typeof i&&(o=i,i=""),Ph({key:e,scope:i,method:o,splitKey:"+"})}}else Object.keys(Nh).forEach((function(e){return delete Nh[e]}))},keyMap:_h,modifier:Dh,modifierMap:Ch};for(var Hh in $h)Object.prototype.hasOwnProperty.call($h,Hh)&&(Uh[Hh]=$h[Hh]);if("undefined"!=typeof window){var Wh=window.hotkeys;Uh.noConflict=function(e){return e&&window.hotkeys===Uh&&(window.hotkeys=Wh),Uh},window.hotkeys=Uh}Uh.filter=function(){return!0};var Vh=function(e,t){var n=e.target,r=n&&n.tagName;return Boolean(r&&t&&t.includes(r))};function qh(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,a=i.filter,l=i.keyup,d=i.keydown,p=i.filterPreventDefault,h=void 0===p||p,f=i.enabled,m=void 0===f||f,g=i.enableOnContentEditable,b=void 0!==g&&g,y=c(null),v=u((function(e,n){var r;return a&&!a(e)?!h:!!(Vh(e,["INPUT","TEXTAREA","SELECT"])&&!Vh(e,s)||null!=(r=e.target)&&r.isContentEditable&&!b)||(null===y.current||document.activeElement===y.current)&&(t(e,n),!0)}),r?[y,s,a].concat(r):[y,s,a]);return o((function(){if(m)return l&&!0!==d&&(n.keydown=!1),Uh(e,n||{},v),function(){return Uh.unbind(e,v)};Uh.unbind(e,v)}),[v,e,m]),y}Uh.isPressed;const Yh=()=>{},Kh="xs",Qh="sm",Gh="md",Zh=e=>{let{size:n="sm",isOpen:r=!1,onClose:i=Yh,loading:o=!1,children:s,className:a="",closeOnEsc:l=!0,closeButton:u=!0,backdropClassName:d="",closeOnOutsideClick:p=!0,...h}=e;const f=c();return nd(f,p?i:Yh),qh("esc",l?i:Yh),t.createElement(td,{className:"ne-portal"},r&&t.createElement(zu,{key:"modal-backdrop",className:Sc("ne-modal__backdrop",d)},t.createElement("div",x({ref:f,key:"modal-wrapper",className:Sc("ne-modal__wrapper",{"ne-modal__wrapper--xs":n===Kh,"ne-modal__wrapper--sm":n===Qh,"ne-modal__wrapper--md":n===Gh,[a]:a})},h),u&&t.createElement(ed,{style:"text",icon:Ep,className:"ne-modal__close",onClick:i}),o?"":s)))},Jh=e=>{let{children:n,className:r="",required:i=!1,helpIconProps:o=null,...s}=e;const{onClick:a,icon:l,tooltipProps:c,className:u,...d}=o||{},p=l||zp;return t.createElement("label",x({className:Sc("ne-label flex items-center",r)},s),n,i&&t.createElement("span",{"aria-hidden":!0},"*"),o&&t.createElement(Qu,x({},c,{disabled:!c}),t.createElement("span",{className:Sc("ml-1",{[u]:u}),onClick:a},t.createElement(p,x({size:16},d)))))},Xh=s(((e,n)=>{const{id:r,size:i="small",type:o="text",label:s,error:a=null,suffix:l=null,prefix:c=null,disabled:u=!1,helpText:d="",className:p="",nakedInput:h=!1,contentSize:f=null,required:m=!1,...g}=e;return t.createElement("div",{className:Sc(["ne-input__wrapper",p])},s&&t.createElement(Jh,{required:m,"data-cy":"neeto-editor-".concat(Su(s),"-input-label"),htmlFor:r},s),t.createElement("div",{className:Sc("ne-input",{"ne-input--naked":!!h,"ne-input--error":!!a,"ne-input--disabled":!!u,"ne-input--small":"small"===i})},c&&t.createElement("div",{className:"ne-input__prefix"},c),t.createElement("input",x({ref:n,type:o,disabled:u,size:f,required:m,"aria-invalid":!!a,"data-cy":"".concat(Su(s),"-input-field")},g)),l&&t.createElement("div",{className:"ne-input__suffix"},l)),!!a&&t.createElement("p",{"data-cy":"".concat(Su(s),"-input-error"),className:"ne-input__error"},a),d&&t.createElement("p",{className:"ne-input__help-text"},d))}));Xh.displayName="Input";const ef=e=>{let{url:n,editor:r,onClose:o,alt:s}=e;const[a,l]=i(s||""),[c,u]=i(!1),d=()=>{r.chain().focus().setImage({src:n,alt:a}).run(),o()};return t.createElement("div",{className:"neeto-editor-image-editor",onKeyDown:e=>{"Enter"===e.key&&d()}},c?t.createElement("div",{className:"neeto-editor-image-editor__error"},t.createElement("h2",null,"Something Went Wrong!"),t.createElement("p",null,"The selected image cannot be displayed. Please try again using another image.")):t.createElement(t.Fragment,null,t.createElement("figure",null,t.createElement("img",{src:n,loading:"lazy",onError:e=>{let{currentTarget:t}=e;u(!0),t.onerror=null}})),t.createElement(Xh,{autoFocus:!0,value:a,onChange:e=>l(e.target.value),placeholder:"Brand Image",label:"Caption"})),t.createElement("div",{className:"neeto-editor-image-editor__footer"},t.createElement(ed,{size:"large",label:"Proceed",disabled:c,onClick:d}),t.createElement(ed,{size:"large",label:"Cancel",style:"text",onClick:o})))},tf=e=>{let{editor:n,isOpen:r,onClose:i}=e;const o=n&&n.view.state.selection.node;return t.createElement(Zh,{isOpen:r,onClose:i},t.createElement("div",{className:"neeto-editor-image-uploader"},t.createElement("div",{className:"neeto-editor-image-uploader__content"},t.createElement(ef,{editor:n,onClose:i,url:null==o?void 0:o.attrs.src,alt:null==o?void 0:o.attrs.alt}))))},nf=e=>{let{editor:t,isImageEditorModalOpen:n,setIsImageEditorModalOpen:r}=e;return[{Icon:Pp,command:()=>t.chain().focus().setImageAttributes({float:"left",align:"none"}).run(),active:t.isActive("image",{float:"left",align:"none"}),optionName:"Float Left"},{Icon:wp,command:()=>t.chain().focus().setImageAttributes({float:"none",align:"center"}).run(),active:t.isActive("image",{float:"none",align:"center"}),optionName:"Align Center"},{Icon:eh,command:()=>t.chain().focus().setImageAttributes({float:"right",align:"none"}).run(),active:t.isActive("image",{float:"right",align:"center"}),optionName:"Float Right"},{Icon:Op,command:()=>r(!0),active:n,optionName:"Caption"},{Icon:Ep,command:()=>t.commands.deleteSelection(),active:!1,optionName:"Remove"}]},rf=e=>{let{Icon:n,command:r,active:i,optionName:o}=e;return t.createElement(Qu,{content:Tu(o),position:"top",delay:[500]},t.createElement("div",{className:Sc("neeto-editor-bubble-menu__item",{active:i}),onClick:r,"data-cy":"neeto-editor-bubble-menu-".concat(o,"-option")},t.createElement(n,{size:20})))},of=e=>{let{editor:n,isImageEditorModalOpen:r,setIsImageEditorModalOpen:i}=e;return nf({editor:n,isImageEditorModalOpen:r,setIsImageEditorModalOpen:i}).map((e=>t.createElement(rf,x({key:e.optionName},e))))},sf=/[(http(s)?)://(www.)?a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/,af=/^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/,lf=/((?:http|https):\/\/)?(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|(?:manage\/)?videos?\/|)(\d+)(?:(?:\/|\?h=)(\w+))?(?:|\/\?)/,cf=e=>{let{editor:n,handleClose:r,handleAnimateInvalidLink:s}=e;const[a,l]=i("");o((()=>{l(n.getAttributes("link").href||"")}),[]);const c=()=>{sf.test(a)?(n.chain().focus().setLink({href:a}).run(),r()):Iu(a)?(n.chain().focus().unsetLink().run(),r()):(l(""),s())};return t.createElement("div",{onKeyDown:e=>{"Escape"===e.key?r():"Enter"===e.key&&c()},className:"neeto-editor-bubble-menu__link"},t.createElement("input",{autoFocus:!0,name:"url",value:a,placeholder:"Paste or type a link...",onChange:e=>{let{target:{value:t}}=e;return l(t)},className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input"}),t.createElement(ed,{style:"icon",icon:Ep,onClick:()=>{a?(l(""),n.chain().focus().unsetLink().run()):r()},"data-cy":"neeto-editor-link-cancel-button"}))},uf=e=>{let{editor:n,options:r,setIsInvalidLink:o,isLinkOptionActive:s,setIsLinkOptionActive:a}=e;const[l,c]=i(!1),u=(e=>{let{editor:t,setIsLinkOptionActive:n}=e;return[{Icon:ih,command:()=>t.chain().focus().toggleBold().run(),active:t.isActive("bold"),optionName:"bold"},{Icon:ph,command:()=>t.chain().focus().toggleItalic().run(),active:t.isActive("italic"),optionName:"italic"},{Icon:yh,command:()=>t.chain().focus().toggleUnderline().run(),active:t.isActive("underline"),optionName:"underline"},{Icon:sh,command:()=>t.chain().focus().toggleStrike().run(),active:t.isActive("strike"),optionName:"strike"},{Icon:Bp,command:()=>n(!0),active:t.isActive("link"),optionName:"link"},{Icon:kp,command:()=>t.chain().focus().toggleCode().run(),active:t.isActive("code"),optionName:"code-block"},{Icon:Ap,command:()=>t.chain().focus().toggleHighlight().run(),active:t.isActive("highlight"),optionName:"highlight"}]})({editor:n,setIsLinkOptionActive:a}).filter((e=>{let{optionName:t}=e;return r.includes(t)})),d=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Paragraph",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:n}),p=(e=>{var t;return(null===(t=e.find((e=>e.active)))||void 0===t?void 0:t.optionName)||"Paragraph"})(d),h=()=>{o(!0),setTimeout((()=>{o(!1)}),1e3)},f=()=>c(!1);return s?t.createElement(cf,{editor:n,handleClose:()=>a(!1),handleAnimateInvalidLink:h}):t.createElement(t.Fragment,null,t.createElement(Ku,{interactive:!0,placement:"bottom",visible:l,onClickOutside:f,content:d.map((e=>{let{optionName:n,command:r}=e;return t.createElement("button",{key:n,onClick:()=>{r(),f()},className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown"},n)}))},t.createElement("button",{onClick:()=>c((e=>!e)),className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-target"},p,t.createElement(Dp,{size:14}))),u.map((e=>t.createElement(rf,x({},e,{key:e.optionName})))))},df=e=>{let{editor:n,options:r}=e;const[o,s]=i(!1),[a,l]=i(!1),[c,u]=i(!1),d=n&&n.view.state.selection.node,p=d&&"image"===d.type.name,h=[C.BOLD,C.ITALIC,C.UNDERLINE,C.STRIKETHROUGH,C.LINK],f=Iu(r.filter((e=>h.includes(e))));return!n||!p&&f?null:t.createElement("div",null,t.createElement(hc,{editor:n,tippyOptions:{arrow:ml,zIndex:99999,onHide:()=>l(!1)},className:Sc("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":o})},p?t.createElement(of,{editor:n,isImageEditorModalOpen:c,setIsImageEditorModalOpen:u}):t.createElement(uf,{editor:n,options:r,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l})),t.createElement(tf,{editor:n,isOpen:c,onClose:()=>u(!1)}))},pf=e=>{let{count:n,limit:r,strategy:i}=e;const o="limit"===i&&r;return t.createElement("p",{className:"neeto-editor-character-count","data-cy":"neeto-editor-character-count"},o?"".concat(r-n," characters remaining"):"".concat(n," characters"))};var hf={exports:{}},ff="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function mf(){}function gf(){}gf.resetWarningCache=mf;hf.exports=function(){function e(e,t,n,r,i,o){if(o!==ff){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. "+"Use PropTypes.checkPropTypes() to call them. "+"Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:gf,resetWarningCache:mf};return n.PropTypes=n,n}();const bf=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),yf=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),vf={onMouseEnter:bf,onMouseLeave:yf},wf=20,xf="#2F3941",Ef="#87929D",Mf=e=>{let{icon:n,iconActive:r=!0,tooltipProps:i,highlight:o=!1,...s}=e;return t.createElement(Qu,i,t.createElement("button",x({className:"neeto-editor-fixed-menu__item",type:"button"},function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?vf:{}}(o),s),t.createElement(n,{color:r?xf:Ef,size:wf})))};Mf.propTypes={icon:hf.exports.oneOfType([hf.exports.element,hf.exports.func]),iconActive:hf.exports.bool,onClick:hf.exports.func,tooltipProps:hf.exports.object},e.createContext(),e.createContext();var kf=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},_f="undefined"!=typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Df="undefined"!=typeof Element,Cf="function"==typeof Map,Of="function"==typeof Set,Nf="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Tf(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Tf(e[r],t[r]))return!1;return!0}if(Cf&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Tf(r.value[1],t.get(r.value[0])))return!1;return!0}if(Of&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Nf&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Df&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==i[r]&&"__v"!==i[r]&&"__o"!==i[r]||!e.$$typeof)&&!Tf(e[i[r]],t[i[r]]))return!1;return!0}return e!=e&&t!=t}var Sf=function(e,t){try{return Tf(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},Af=[];const If=()=>{},Lf=(n,r)=>{let{label:s,isOpen:a,onVisible:l=If,onClose:u=If,ulProps:h,position:f,children:m,className:g,customTarget:b,closeOnEsc:y=!0,closeOnSelect:v=!0,closeOnOutsideClick:w=!0,dropdownModifiers:E=[],...M}=n;const k=c(),_=b(),D=!(null==a),[C,O]=i(!1),[N,T]=i(null),[S,A]=i(null),{styles:I,attributes:L}=function(t,n,r){void 0===r&&(r={});var i=e.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Af},s=e.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=s[0],l=s[1],c=e.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);p.flushSync((function(){l({styles:kf(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:kf(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=e.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Sf(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),d=e.useRef();return _f((function(){d.current&&d.current.setOptions(u)}),[u]),_f((function(){if(null!=t&&null!=n){var e=(r.createPopper||fl)(t,n,u);return d.current=e,function(){e.destroy(),d.current=null}}}),[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}(N,S,{placement:f||"bottom-end",modifiers:E});d(r,(()=>({close:()=>O(!1),visible:C})));const j=()=>{D||O(!1),u()};return qh("esc",y?j:If),nd(k,w?j:If),o((()=>{D&&O(a)}),[a]),o((()=>{C&&l()}),[C]),t.createElement("div",x({ref:k,className:Sc("ne-dropdown__wrapper",{[g]:g})},M),b?t.createElement("div",{ref:T,onClick:()=>{!D&&O(!C)}},_):t.createElement("div",null,s,t.createElement(Dp,null)),C&&t.createElement("ul",x({className:"ne-dropdown__popup",ref:A,onClick:()=>{v&&j()},"data-cy":"neeto-editor-".concat(Su(s),"-dropdown-container")},h,{style:{display:"block",...I.offset,...I.popper}},L.popper),m))};Lf.displayName="Dropdown";var jf=s(Lf);function zf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ff,Pf={exports:{}},Rf={exports:{}},Bf=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},Uf=Bf,$f=Object.prototype.toString,Hf=(Ff=Object.create(null),function(e){var t=$f.call(e);return Ff[t]||(Ff[t]=t.slice(8,-1).toLowerCase())});function Wf(e){return e=e.toLowerCase(),function(t){return Hf(t)===e}}function Vf(e){return Array.isArray(e)}function qf(e){return void 0===e}var Yf=Wf("ArrayBuffer");function Kf(e){return null!==e&&"object"==typeof e}function Qf(e){if("object"!==Hf(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var Gf=Wf("Date"),Zf=Wf("File"),Jf=Wf("Blob"),Xf=Wf("FileList");function em(e){return"[object Function]"===$f.call(e)}var tm=Wf("URLSearchParams");function nm(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Vf(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var rm,im=(rm="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return rm&&e instanceof rm}),om={isArray:Vf,isArrayBuffer:Yf,isBuffer:function(e){return null!==e&&!qf(e)&&null!==e.constructor&&!qf(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||$f.call(e)===t||em(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Yf(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Kf,isPlainObject:Qf,isUndefined:qf,isDate:Gf,isFile:Zf,isBlob:Jf,isFunction:em,isStream:function(e){return Kf(e)&&em(e.pipe)},isURLSearchParams:tm,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:nm,merge:function e(){var t={};function n(n,r){Qf(t[r])&&Qf(n)?t[r]=e(t[r],n):Qf(n)?t[r]=e({},n):Vf(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)nm(arguments[r],n);return t},extend:function(e,t,n){return nm(t,(function(t,r){e[r]=n&&"function"==typeof t?Uf(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,s={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)s[o=r[i]]||(t[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Hf,kindOfTest:Wf,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(qf(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:im,isFileList:Xf},sm=om;function am(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var lm=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(sm.isURLSearchParams(t))r=t.toString();else{var i=[];sm.forEach(t,(function(e,t){null!=e&&(sm.isArray(e)?t+="[]":e=[e],sm.forEach(e,(function(e){sm.isDate(e)?e=e.toISOString():sm.isObject(e)&&(e=JSON.stringify(e)),i.push(am(t)+"="+am(e))})))})),r=i.join("&")}if(r){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},cm=om;function um(){this.handlers=[]}um.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},um.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},um.prototype.forEach=function(e){cm.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var dm,pm,hm=um,fm=om;function mm(){if(pm)return dm;pm=1;var e=om;function t(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}e.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var n=t.prototype,r={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){r[e]={value:e}})),Object.defineProperties(t,r),Object.defineProperty(n,"isAxiosError",{value:!0}),t.from=function(r,i,o,s,a,l){var c=Object.create(n);return e.toFlatObject(r,c,(function(e){return e!==Error.prototype})),t.call(c,r.message,i,o,s,a),c.name=r.name,l&&Object.assign(c,l),c},dm=t}var gm,bm,ym,vm,wm,xm,Em={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function Mm(){if(bm)return gm;bm=1;var e=om;return gm=function(t,n){n=n||new FormData;var r=[];function i(t){return null===t?"":e.isDate(t)?t.toISOString():e.isArrayBuffer(t)||e.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(o,s){if(e.isPlainObject(o)||e.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+s);r.push(o),e.forEach(o,(function(r,o){if(!e.isUndefined(r)){var a,l=s?s+"."+o:o;if(r&&!s&&"object"==typeof r)if(e.endsWith(o,"{}"))r=JSON.stringify(r);else if(e.endsWith(o,"[]")&&(a=e.toArray(r)))return void a.forEach((function(t){!e.isUndefined(t)&&n.append(l,i(t))}));t(r,l)}})),r.pop()}else n.append(s,i(o))}(t),n},gm}function km(){if(vm)return ym;vm=1;var e=mm();return ym=function(t,n,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?n(new e("Request failed with status code "+r.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}}function _m(){if(xm)return wm;xm=1;var e=om;return wm=e.isStandardBrowserEnv()?{write:function(t,n,r,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(n)),e.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),e.isString(i)&&a.push("path="+i),e.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},wm}var Dm,Cm,Om,Nm,Tm,Sm,Am,Im,Lm,jm,zm,Fm,Pm=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Rm=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Bm=function(e,t){return e&&!Pm(t)?Rm(e,t):t};function Um(){if(Cm)return Dm;Cm=1;var e=om,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Dm=function(n){var r,i,o,s={};return n?(e.forEach(n.split("\n"),(function(n){if(o=n.indexOf(":"),r=e.trim(n.substr(0,o)).toLowerCase(),i=e.trim(n.substr(o+1)),r){if(s[r]&&t.indexOf(r)>=0)return;s[r]="set-cookie"===r?(s[r]?s[r]:[]).concat([i]):s[r]?s[r]+", "+i:i}})),s):s},Dm}function $m(){if(Nm)return Om;Nm=1;var e=om;return Om=e.isStandardBrowserEnv()?function(){var t,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var t=e;return n&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(n){var r=e.isString(n)?i(n):n;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}}function Hm(){if(Sm)return Tm;Sm=1;var e=mm();function t(t){e.call(this,null==t?"canceled":t,e.ERR_CANCELED),this.name="CanceledError"}return om.inherits(t,e,{__CANCEL__:!0}),Tm=t}function Wm(){return Im||(Im=1,Am=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}),Am}function Vm(){if(jm)return Lm;jm=1;var e=om,t=km(),n=_m(),r=lm,i=Bm,o=Um(),s=$m(),a=Em,l=mm(),c=Hm(),u=Wm();return Lm=function(d){return new Promise((function(p,h){var f,m=d.data,g=d.headers,b=d.responseType;function y(){d.cancelToken&&d.cancelToken.unsubscribe(f),d.signal&&d.signal.removeEventListener("abort",f)}e.isFormData(m)&&e.isStandardBrowserEnv()&&delete g["Content-Type"];var v=new XMLHttpRequest;if(d.auth){var w=d.auth.username||"",x=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+x)}var E=i(d.baseURL,d.url);function M(){if(v){var e="getAllResponseHeaders"in v?o(v.getAllResponseHeaders()):null,n={data:b&&"text"!==b&&"json"!==b?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:e,config:d,request:v};t((function(e){p(e),y()}),(function(e){h(e),y()}),n),v=null}}if(v.open(d.method.toUpperCase(),r(E,d.params,d.paramsSerializer),!0),v.timeout=d.timeout,"onloadend"in v?v.onloadend=M:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(M)},v.onabort=function(){v&&(h(new l("Request aborted",l.ECONNABORTED,d,v)),v=null)},v.onerror=function(){h(new l("Network Error",l.ERR_NETWORK,d,v,v)),v=null},v.ontimeout=function(){var e=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",t=d.transitional||a;d.timeoutErrorMessage&&(e=d.timeoutErrorMessage),h(new l(e,t.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,d,v)),v=null},e.isStandardBrowserEnv()){var k=(d.withCredentials||s(E))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;k&&(g[d.xsrfHeaderName]=k)}"setRequestHeader"in v&&e.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:v.setRequestHeader(t,e)})),e.isUndefined(d.withCredentials)||(v.withCredentials=!!d.withCredentials),b&&"json"!==b&&(v.responseType=d.responseType),"function"==typeof d.onDownloadProgress&&v.addEventListener("progress",d.onDownloadProgress),"function"==typeof d.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(f=function(e){v&&(h(!e||e&&e.type?new c:e),v.abort(),v=null)},d.cancelToken&&d.cancelToken.subscribe(f),d.signal&&(d.signal.aborted?f():d.signal.addEventListener("abort",f))),m||(m=null);var _=u(E);_&&-1===["http","https","file"].indexOf(_)?h(new l("Unsupported protocol "+_+":",l.ERR_BAD_REQUEST,d)):v.send(m)}))},Lm}var qm=om,Ym=function(e,t){fm.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Km=mm(),Qm=Em,Gm=Mm(),Zm={"Content-Type":"application/x-www-form-urlencoded"};function Jm(e,t){!qm.isUndefined(e)&&qm.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Xm,eg={transitional:Qm,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Xm=Vm()),Xm),transformRequest:[function(e,t){if(Ym(t,"Accept"),Ym(t,"Content-Type"),qm.isFormData(e)||qm.isArrayBuffer(e)||qm.isBuffer(e)||qm.isStream(e)||qm.isFile(e)||qm.isBlob(e))return e;if(qm.isArrayBufferView(e))return e.buffer;if(qm.isURLSearchParams(e))return Jm(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=qm.isObject(e),i=t&&t["Content-Type"];if((n=qm.isFileList(e))||r&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return Gm(n?{"files[]":e}:e,o&&new o)}return r||"application/json"===i?(Jm(t,"application/json"),function(e,t,n){if(qm.isString(e))try{return(t||JSON.parse)(e),qm.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||eg.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&qm.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw Km.from(e,Km.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fm?zm:(Fm=1,zm=null)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};qm.forEach(["delete","get","head"],(function(e){eg.headers[e]={}})),qm.forEach(["post","put","patch"],(function(e){eg.headers[e]=qm.merge(Zm)}));var tg,ng,rg=eg,ig=om,og=rg;function sg(){return ng?tg:(ng=1,tg=function(e){return!(!e||!e.__CANCEL__)})}var ag=om,lg=function(e,t,n){var r=this||og;return ig.forEach(n,(function(n){e=n.call(r,e,t)})),e},cg=sg(),ug=rg,dg=Hm();function pg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dg}var hg,fg,mg=om,gg=function(e,t){t=t||{};var n={};function r(e,t){return mg.isPlainObject(e)&&mg.isPlainObject(t)?mg.merge(e,t):mg.isPlainObject(t)?mg.merge({},t):mg.isArray(t)?t.slice():t}function i(n){return mg.isUndefined(t[n])?mg.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function o(e){if(!mg.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return mg.isUndefined(t[n])?mg.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function a(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return mg.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||i,r=t(e);mg.isUndefined(r)&&t!==a||(n[e]=r)})),n};function bg(){return fg?hg:(fg=1,hg={version:"0.27.2"})}var yg=bg().version,vg=mm(),wg={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){wg[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var xg={};wg.transitional=function(e,t,n){function r(e,t){return"[Axios v"+yg+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new vg(r(i," has been removed"+(t?" in "+t:"")),vg.ERR_DEPRECATED);return t&&!xg[i]&&(xg[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var Eg,Mg,kg,_g,Dg,Cg,Og={assertOptions:function(e,t,n){if("object"!=typeof e)throw new vg("options must be an object",vg.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],l=void 0===a||s(a,o,e);if(!0!==l)throw new vg("option "+o+" must be "+l,vg.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new vg("Unknown option "+o,vg.ERR_BAD_OPTION)}},validators:wg},Ng=om,Tg=lm,Sg=hm,Ag=function(e){return pg(e),e.headers=e.headers||{},e.data=lg.call(e,e.data,e.headers,e.transformRequest),e.headers=ag.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ag.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||ug.adapter)(e).then((function(t){return pg(e),t.data=lg.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return cg(t)||(pg(e),t&&t.response&&(t.response.data=lg.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Ig=gg,Lg=Bm,jg=Og,zg=jg.validators;function Fg(e){this.defaults=e,this.interceptors={request:new Sg,response:new Sg}}Fg.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Ig(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&jg.assertOptions(n,{silentJSONParsing:zg.transitional(zg.boolean),forcedJSONParsing:zg.transitional(zg.boolean),clarifyTimeoutError:zg.transitional(zg.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!i){var a=[Ag,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),o=Promise.resolve(t);a.length;)o=o.then(a.shift(),a.shift());return o}for(var l=t;r.length;){var c=r.shift(),u=r.shift();try{l=c(l)}catch(e){u(e);break}}try{o=Ag(l)}catch(e){return Promise.reject(e)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},Fg.prototype.getUri=function(e){e=Ig(this.defaults,e);var t=Lg(e.baseURL,e.url);return Tg(t,e.params,e.paramsSerializer)},Ng.forEach(["delete","get","head","options"],(function(e){Fg.prototype[e]=function(t,n){return this.request(Ig(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ng.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Ig(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Fg.prototype[e]=t(),Fg.prototype[e+"Form"]=t(!0)}));var Pg=om,Rg=Bf,Bg=Fg,Ug=gg;var $g=function e(t){var n=new Bg(t),r=Rg(Bg.prototype.request,n);return Pg.extend(r,Bg.prototype,n),Pg.extend(r,n),r.create=function(n){return e(Ug(t,n))},r}(rg);$g.Axios=Bg,$g.CanceledError=Hm(),$g.CancelToken=function(){if(Mg)return Eg;Mg=1;var e=Hm();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(t){r.reason||(r.reason=new e(t),n(r.reason))}))}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},t.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},t.source=function(){var e,n=new t((function(t){e=t}));return{token:n,cancel:e}},Eg=t}(),$g.isCancel=sg(),$g.VERSION=bg().version,$g.toFormData=Mm(),$g.AxiosError=mm(),$g.Cancel=$g.CanceledError,$g.all=function(e){return Promise.all(e)},$g.spread=_g?kg:(_g=1,kg=function(e){return function(t){return e.apply(null,t)}}),$g.isAxiosError=function(){if(Cg)return Dg;Cg=1;var e=om;return Dg=function(t){return e.isObject(t)&&!0===t.isAxiosError}}(),Rf.exports=$g,Rf.exports.default=$g;var Hg=Cc(Pf.exports=Rf.exports);function Wg(e){return e&&e.__esModule?e.default:e}function Vg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qg,Yg,Kg,Qg,Gg,Zg,Jg={},Xg=[],eb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function tb(e,t){for(var n in t)e[n]=t[n];return e}function nb(e){var t=e.parentNode;t&&t.removeChild(e)}function rb(e,t,n){var r,i,o,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?qg.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return ib(e,s,r,i,null)}function ib(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++Kg:i};return null==i&&null!=Yg.vnode&&Yg.vnode(o),o}function ob(e){return e.children}function sb(e,t){this.props=e,this.context=t}function ab(e,t){if(null==t)return e.__?ab(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?ab(e):null}function lb(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return lb(e)}}function cb(e){(!e.__d&&(e.__d=!0)&&Qg.push(e)&&!ub.__r++||Zg!==Yg.debounceRendering)&&((Zg=Yg.debounceRendering)||Gg)(ub)}function ub(){for(var e;ub.__r=Qg.length;)e=Qg.sort((function(e,t){return e.__v.__b-t.__v.__b})),Qg=[],e.some((function(e){var t,n,r,i,o,s;e.__d&&(o=(i=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=tb({},i)).__v=i.__v+1,vb(s,i,r,t.__n,void 0!==s.ownerSVGElement,null!=i.__h?[o]:null,n,null==o?ab(i):o,i.__h),wb(n,i),i.__e!=o&&lb(i)))}))}function db(e,t,n,r,i,o,s,a,l,c){var u,d,p,h,f,m,g,b=r&&r.__k||Xg,y=b.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?ib(null,h,null,null,h):Array.isArray(h)?ib(ob,{children:h},null,null,null):h.__b>0?ib(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(p=b[u])||p&&h.key==p.key&&h.type===p.type)b[u]=void 0;else for(d=0;d<y;d++){if((p=b[d])&&h.key==p.key&&h.type===p.type){b[d]=void 0;break}p=null}vb(e,h,p=p||Jg,i,o,s,a,l,c),f=h.__e,(d=h.ref)&&p.ref!=d&&(g||(g=[]),p.ref&&g.push(p.ref,null,h),g.push(d,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===p.__k?h.__d=l=pb(h,l,e):l=fb(e,h,p,b,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=ab(p))}for(n.__e=m,u=y;u--;)null!=b[u]&&("function"==typeof n.type&&null!=b[u].__e&&b[u].__e==n.__d&&(n.__d=ab(r,u+1)),Eb(b[u],b[u]));if(g)for(u=0;u<g.length;u++)xb(g[u],g[++u],g[++u])}function pb(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t="function"==typeof r.type?pb(r,t,n):fb(n,r,r,i,r.__e,t));return t}function hb(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){hb(e,t)})):t.push(e)),t}function fb(e,t,n,r,i,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<r.length;l+=2)if(a==i)break e;e.insertBefore(i,o),s=o}return void 0!==s?s:i.nextSibling}function mb(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||eb.test(t)?n:n+"px"}function gb(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||mb(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||mb(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?yb:bb,o):e.removeEventListener(t,o?yb:bb,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function bb(e){this.l[e.type+!1](Yg.event?Yg.event(e):e)}function yb(e){this.l[e.type+!0](Yg.event?Yg.event(e):e)}function vb(e,t,n,r,i,o,s,a,l){var c,u,d,p,h,f,m,g,b,y,v,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Yg.__b)&&c(t);try{e:if("function"==typeof w){if(g=t.props,b=(c=w.contextType)&&r[c.__c],y=c?b?b.props.value:c.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in w&&w.prototype.render?t.__c=u=new w(g,y):(t.__c=u=new sb(g,y),u.constructor=w,u.render=Mb),b&&b.sub(u),u.props=g,u.state||(u.state={}),u.context=y,u.__n=r,d=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=w.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=tb({},u.__s)),tb(u.__s,w.getDerivedStateFromProps(g,u.__s))),p=u.props,h=u.state,d)null==w.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==w.getDerivedStateFromProps&&g!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,y)||t.__v===n.__v){u.props=g,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),u.__h.length&&s.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,y),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(p,h,f)}))}u.context=y,u.props=g,u.state=u.__s,(c=Yg.__r)&&c(t),u.__d=!1,u.__v=t,u.__P=e,c=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(r=tb(tb({},r),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(p,h)),v=null!=c&&c.type===ob&&null==c.key?c.props.children:c,db(e,Array.isArray(v)?v:[v],t,n,r,i,o,s,a,l),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,s,a){var l,c,u,d=n.props,p=t.props,h=t.type,f=0;if("svg"===h&&(i=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),o=null,a=!1}if(null===h)d===p||a&&e.data===p||(e.data=p);else{if(o=o&&qg.call(e.childNodes),c=(d=n.props||Jg).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!a){if(null!=o)for(d={},f=0;f<e.attributes.length;f++)d[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||gb(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||gb(e,o,t[o],n[o],r)}(e,p,d,i,a),u)t.__k=[];else if(f=t.props.children,db(e,Array.isArray(f)?f:[f],t,n,r,i&&"foreignObject"!==h,o,s,o?o[0]:n.__k&&ab(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&nb(o[f]);a||("value"in p&&void 0!==(f=p.value)&&(f!==d.value||f!==e.value||"progress"===h&&!f)&&gb(e,"value",f,d.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&gb(e,"checked",f,d.checked,!1))}return e}(n.__e,t,n,r,i,o,s,l);(c=Yg.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),Yg.__e(e,t,n)}}function wb(e,t){Yg.__c&&Yg.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Yg.__e(e,t.__v)}}))}function xb(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Yg.__e(e,n)}}function Eb(e,t,n){var r,i;if(Yg.unmount&&Yg.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||xb(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Yg.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Eb(r[i],t,"function"!=typeof e.type);n||null==e.__e||nb(e.__e),e.__e=e.__d=void 0}function Mb(e,t,n){return this.constructor(e,n)}function kb(e,t,n){var r,i,o;Yg.__&&Yg.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],vb(t,e=(!r&&n||t).__k=rb(ob,null,[e]),i||Jg,Jg,void 0!==t.ownerSVGElement,!r&&n?[n]:i?null:t.firstChild?qg.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),wb(o,e)}qg=Xg.slice,Yg={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},Kg=0,sb.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=tb({},this.state),"function"==typeof e&&(e=e(tb({},n),this.props)),e&&tb(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),cb(this))},sb.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cb(this))},sb.prototype.render=ob,Qg=[],Gg="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ub.__r=0;var _b=0;function Db(e,t,n,r,i){var o,s,a={};for(s in t)"ref"==s?o=t[s]:a[s]=t[s];var l={type:e,props:a,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--_b,__source:r,__self:i};if("function"==typeof e&&(o=e.defaultProps))for(s in o)void 0===a[s]&&(a[s]=o[s]);return Yg.vnode&&Yg.vnode(l),l}var Cb;Cb=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Ob={autoFocus:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:14,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","de","es","fa","fr","it","ja","nl","pl","pt","ru","uk","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};var Nb={set:function(e,t){try{window.localStorage[`emoji-mart.${e}`]=JSON.stringify(t)}catch(e){}},get:function(e){try{const t=window.localStorage[`emoji-mart.${e}`];if(t)return JSON.parse(t)}catch(e){}}},Tb=new Map;function Sb(e){if(Tb.has(e))return Tb.get(e);var t=Ab(e);return Tb.set(e,t),t}var Ab=function(){var e=null;try{e=document.createElement("canvas").getContext("2d")}catch(e){}if(!e)return function(){return!1};var t=25,n=20,r=Math.floor(t/2);return e.font=r+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=2*n,e.canvas.height=t,function(r){e.clearRect(0,0,2*n,t),e.fillStyle="#FF0000",e.fillText(r,0,22),e.fillStyle="#0000FF",e.fillText(r,n,22);for(var i=e.getImageData(0,0,n,t).data,o=i.length,s=0;s<o&&!i[s+3];s+=4);if(s>=o)return!1;var a=n+s/4%n,l=Math.floor(s/4/n),c=e.getImageData(a,l,1,1).data;return i[s]===c[0]&&i[s+2]===c[2]&&!(e.measureText(r).width>=n)}}();const Ib=[{v:14,emoji:"🫠"},{v:13.1,emoji:"😶‍🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑‍🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱‍♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];var Lb={latestVersion:function(){for(const{v:e,emoji:t}of Ib)if(Sb(t))return e},noCountryFlags:function(){return!Sb("🇨🇦")}};const jb=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let zb=null;var Fb={add:function(e){zb||(zb=Nb.get("frequently")||{});const t=e.id||e;t&&(zb[t]||(zb[t]=0),zb[t]+=1,Nb.set("last",t),Nb.set("frequently",zb))},get:function({maxFrequentRows:e,perLine:t}){if(!e)return[];zb||(zb=Nb.get("frequently"));let n=[];if(!zb){zb={};for(let e in jb.slice(0,t)){const r=jb[e];zb[r]=t-e,n.push(r)}return n}const r=e*t,i=Nb.get("last");for(let e in zb)n.push(e);if(n.sort(((e,t)=>{const n=zb[t],r=zb[e];return n==r?e.localeCompare(t):n-r})),n.length>r){const e=n.slice(r);n=n.slice(0,r);for(let t of e)t!=i&&delete zb[t];i&&-1==n.indexOf(i)&&(delete zb[n[n.length-1]],n.splice(-1,1,i)),Nb.set("frequently",zb)}return n}};let Pb=null;var Rb={search:async function(e,{maxResults:t}={}){if(!e||!e.trim().length)return null;t||(t=90),await qb();const n=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter(((e,t,n)=>e.trim()&&n.indexOf(e)==t));if(!n.length)return;let r,i,o=Pb||(Pb=Object.values($b.emojis));for(const e of n){if(!o.length)break;r=[],i={};for(const t of o){if(!t.search)continue;const n=t.search.indexOf(`,${e}`);-1!=n&&(r.push(t),i[t.id]||(i[t.id]=0),i[t.id]+=t.id==e?0:n+1)}o=r}return r.length<2||(r.sort(((e,t)=>{const n=i[e.id],r=i[t.id];return n==r?e.id.localeCompare(t.id):n-r})),r.length>t&&(r=r.slice(0,t))),r},get:function(e){return e.id?e:$b.emojis[e]||$b.emojis[$b.aliases[e]]||$b.emojis[$b.natives[e]]},reset:function(){Pb=null},SHORTCODES_REGEX:/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/};const Bb=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];let Ub=null,$b=null;async function Hb(e){const t=await fetch(e);return await t.json()}let Wb=null,Vb=null;function qb(e){return Wb||(Wb=new Promise((e=>{Vb=e}))),e&&async function(e){let{emojiVersion:t,set:n,locale:r}=e;if(t||(t=Ob.emojiVersion.value),n||(n=Ob.set.value),r||(r=Ob.locale.value),$b)$b.categories=$b.categories.filter((e=>!!!e.name));else{$b=("function"==typeof e.data?await e.data():e.data)||await Hb(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),$b.emoticons={},$b.natives={},$b.categories.unshift({id:"frequent",emojis:[]});for(const e in $b.aliases){const t=$b.aliases[e],n=$b.emojis[t];n&&(n.aliases||(n.aliases=[]),n.aliases.push(e))}}Ub||(Ub=("function"==typeof e.i18n?await e.i18n():e.i18n)||("en"==r?Wg(Cb):await Hb(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)));if(e.custom)for(let t in e.custom){t=parseInt(t);const n=e.custom[t],r=e.custom[t-1];if(!n.emojis||!n.emojis.length)continue;n.id||(n.id=`custom_${t+1}`),n.name||(n.name=Ub.categories.custom),r&&!n.icon&&(n.target=r.target||r),$b.categories.push(n);const i=[];for(const e of n.emojis)i.indexOf(e.id)>-1||($b.emojis[e.id]=e,i.push(e.id));n.emojis=i}e.categories&&($b.categories=$b.categories.filter((t=>-1!=e.categories.indexOf(t.id))).sort(((t,n)=>e.categories.indexOf(t.id)-e.categories.indexOf(n.id))));let i=null,o=null;"native"==n&&(i=Lb.latestVersion(),o=e.noCountryFlags||Lb.noCountryFlags());let s=$b.categories.length,a=!1;for(;s--;){const t=$b.categories[s];if("frequent"==t.id&&(t.emojis=Fb.get(e)),!t.emojis||!t.emojis.length){$b.categories.splice(s,1);continue}const{categoryIcons:n}=e;if(n){const e=n[t.id];e&&!t.icon&&(t.icon=e)}let r=t.emojis.length;for(;r--;){const e=$b.emojis[t.emojis[r]],n=()=>{t.emojis.splice(r,1)};if(e)if(i&&e.version>i)n();else if(!o||"flags"!=t.id||Bb.includes(e.id)){if(!e.search){if(a=!0,e.search=","+[[e.id,!1],[e.name,!0],[e.keywords,!1],[e.emoticons,!1]].map((([e,t])=>{if(e)return(Array.isArray(e)?e:[e]).map((e=>(t?e.split(/[-|_|\s]+/):[e]).map((e=>e.toLowerCase())))).flat()})).flat().filter((e=>e&&e.trim())).join(","),e.emoticons)for(const t of e.emoticons)$b.emoticons[t]||($b.emoticons[t]=e.id);let t=0;for(const n of e.skins){if(!n)continue;t++;const{native:r}=n;r&&($b.natives[r]=e.id,e.search+=`,${r}`);const i=1==t?"":`:skin-tone-${t}:`;n.shortcodes=`:${e.id}:${i}`}}}else n();else n()}}a&&Rb.reset();Vb()}(e),Wb}function Yb(e,t,n){e||(e={});const r={};for(let i in t)r[i]=Kb(i,e,t,n);return r}function Kb(e,t,n,r){const i=n[e];let o=r&&r.getAttribute(e)||(null!=t[e]&&null!=t[e]?t[e]:null);return i?(null!=o&&i.value&&typeof i.value!=typeof o&&(o="boolean"==typeof i.value?"false"!=o:i.value.constructor(o)),(null==o||i.choices&&-1==i.choices.indexOf(o))&&(o=i.value),o):o}var Qb={categories:{activity:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Db("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:Db("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Db("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Db("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Db("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),Db("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Db("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),Db("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:Db("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Db("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),Db("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:Db("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Db("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),Db("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Db("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),Db("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Db("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},search:{loupe:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:Db("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:Db("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})}};function Gb(e){let{id:t,skin:n,emoji:r}=e;if(e.shortcodes){const r=e.shortcodes.match(Rb.SHORTCODES_REGEX);r&&(t=r[1],r[2]&&(n=r[2]))}if(r||(r=Rb.get(t||e.native)),!r)return e.fallback;const i=r.skins[n-1]||r.skins[0],o=i.src||("native"==e.set||e.spritesheet?void 0:"function"==typeof e.getImageURL?e.getImageURL(e.set,i.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/64/${i.unified}.png`),s="function"==typeof e.getSpritesheetURL?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/sheets-256/64.png`;return Db("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:o?Db("img",{style:{height:e.size||"1em",width:"auto",display:"inline-block",position:"relative",top:".1em"},alt:i.native||i.shortcodes,src:o}):"native"==e.set?Db("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:i.native}):Db("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${s})`,backgroundSize:`${100*$b.sheet.cols}% ${100*$b.sheet.rows}%`,backgroundPosition:`${100/($b.sheet.cols-1)*i.x}% ${100/($b.sheet.rows-1)*i.y}%`}})})}const Zb="undefined"!=typeof window?window.HTMLElement:Object;class Jb extends Zb{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let t in e)this.attributeChangedCallback(t,null,e[t])}attributeChangedCallback(e,t,n){if(!this.component)return;const r=Kb(e,{[e]:n},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let t=null;const n=e.parent||(t=e.ref&&e.ref.current);t&&(t.innerHTML=""),n&&n.appendChild(this)}}}class Xb extends Jb{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const t=document.createElement("style");t.textContent=e,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(e,{styles:t}={}){super(e),this.setShadow(),this.injectStyles(t)}}var ey={fallback:"",id:"",native:"",shortcodes:"",size:"",set:Ob.set,skin:Ob.skin};class ty extends Jb{async connectedCallback(){const e=Yb(this.props,ey,this);e.element=this,e.ref=e=>{this.component=e},await qb(),kb(Db(Gb,{...e}),this)}constructor(e){super(e)}}Vg(ty,"Props",ey),"undefined"==typeof customElements||customElements.get("em-emoji")||customElements.define("em-emoji",ty);var ny,ry=[],iy=Yg.__b,oy=Yg.__r,sy=Yg.diffed,ay=Yg.__c,ly=Yg.unmount;function cy(){var e;for(ry.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=ry.pop();)if(e.__P)try{e.__H.__h.forEach(dy),e.__H.__h.forEach(py),e.__H.__h=[]}catch(t){e.__H.__h=[],Yg.__e(t,e.__v)}}Yg.__b=function(e){iy&&iy(e)},Yg.__r=function(e){oy&&oy(e);var t=e.__c.__H;t&&(t.__h.forEach(dy),t.__h.forEach(py),t.__h=[])},Yg.diffed=function(e){sy&&sy(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==ry.push(t)&&ny===Yg.requestAnimationFrame||((ny=Yg.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),uy&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);uy&&(t=requestAnimationFrame(n))})(cy))},Yg.__c=function(e,t){t.some((function(e){try{e.__h.forEach(dy),e.__h=e.__h.filter((function(e){return!e.__||py(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Yg.__e(n,e.__v)}})),ay&&ay(e,t)},Yg.unmount=function(e){ly&&ly(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{dy(e)}catch(e){t=e}})),t&&Yg.__e(t,n.__v))};var uy="function"==typeof requestAnimationFrame;function dy(e){var t=e.__c;"function"==typeof t&&(e.__c=void 0,t())}function py(e){e.__c=e.__()}function hy(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function fy(e){this.props=e}(fy.prototype=new sb).isPureReactComponent=!0,fy.prototype.shouldComponentUpdate=function(e,t){return hy(this.props,e)||hy(this.state,t)};var my=Yg.__b;Yg.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),my&&my(e)};var gy=Yg.__e;Yg.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);gy(e,t,n)};var by=Yg.unmount;function yy(){this.__u=0,this.t=null,this.__b=null}function vy(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function wy(){this.u=null,this.o=null}Yg.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),by&&by(e)},(yy.prototype=new sb).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=vy(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},yy.prototype.componentWillUnmount=function(){this.t=[]},yy.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&rb(ob,null,e.fallback);return i&&(i.__h=null),[rb(ob,null,t.__e?null:e.children),i]};var xy=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(wy.prototype=new sb).__e=function(e){var t=this,n=vy(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),xy(t,e,r)):i()};n?n(o):o()}},wy.prototype.render=function(e){this.u=null,this.o=new Map;var t=hb(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},wy.prototype.componentDidUpdate=wy.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){xy(e,n,t)}))};var Ey="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,My=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ky="undefined"!=typeof document,_y=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};sb.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(sb.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Dy=Yg.event;function Cy(){}function Oy(){return this.cancelBubble}function Ny(){return this.defaultPrevented}Yg.event=function(e){return Dy&&(e=Dy(e)),e.persist=Cy,e.isPropagationStopped=Oy,e.isDefaultPrevented=Ny,e.nativeEvent=e};var Ty={configurable:!0,get:function(){return this.class}},Sy=Yg.vnode;Yg.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var o in r={},n){var s=n[o];ky&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==s||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===s?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!_y(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():i&&My.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),r[o]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=hb(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=hb(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Ty.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Ty))}e.$$typeof=Ey,Sy&&Sy(e)};var Ay=Yg.__r;Yg.__r=function(e){Ay&&Ay(e),e.__c};const Iy={light:"outline",dark:"solid"};class Ly extends fy{renderIcon(e){const{icon:t}=e;if(t){if(t.svg)return Db("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return Db("img",{src:t.src})}const n=Qb.categories[e.id]||Qb.categories.custom;return n["auto"==this.props.icons?Iy[this.props.theme]:this.props.icons]||n}render(){let e=null;return Db("nav",{id:"nav",class:"padding","data-position":this.props.position,children:Db("div",{class:"flex relative",children:[this.categories.map(((t,n)=>{const r=t.name||Ub.categories[t.id],i=!this.props.unfocused&&t.id==this.state.categoryId;return i&&(e=n),Db("button",{"aria-label":r,"aria-selected":i||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:e=>e.preventDefault(),onClick:()=>{this.props.onClick({category:t,i:n})},children:this.renderIcon(t)})})),Db("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:null==e?0:1,transform:`translateX(${100*e}%)`}})]})})}constructor(){super(),this.categories=$b.categories.filter((e=>!e.target)),this.state={categoryId:this.categories[0].id}}}class jy extends fy{shouldComponentUpdate(e){for(let t in e)if("children"!=t&&e[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}const zy=10;class Fy extends sb{getInitialState(e=this.props){return{skin:Nb.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.observers=[],this.dir=Ub.rtl?"rtl":"ltr",this.refs={menu:{current:null},navigation:{current:null},scroll:{current:null},search:{current:null},searchInput:{current:null},skinToneButton:{current:null},skinToneRadio:{current:null}},this.initGrid(),0==this.props.stickySearch&&"sticky"==this.props.searchPosition&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){let t=null;for(const n in e)this.props[n]=e[n],"custom"===n||"categories"===n?this.reset():n in this.state&&(t||(t=this.getInitialState()),this.setState({[n]:t[n]}))}componentWillUnmount(){this.unregister()}reset(){qb(this.props),this.initGrid(),this.unobserve(),this.forceUpdate((()=>{this.observeCategories(),this.observeRows()}))}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){document.removeEventListener("click",this.handleClickOutside),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve(){for(const e of this.observers)e.disconnect()}initGrid(){const{categories:e}=$b;this.refs.categories=new Map;const t=$b.categories.map((e=>e.id)).join(",");this.navKey&&this.navKey!=t&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=t,this.grid=[],this.grid.setsize=0;const n=(e,t)=>{const n=[];n.__categoryId=t.id,n.__index=e.length,this.grid.push(n);const r=this.grid.length-1,i=r%zy?{}:{current:null};return i.index=r,i.posinset=this.grid.setsize+1,e.push(i),n};for(let t of e){const e=[];let r=n(e,t);for(let i of t.emojis)r.length==this.props.perLine&&(r=n(e,t)),this.grid.setsize+=1,r.push(i);this.refs.categories.set(t.id,{root:{current:null},rows:e})}}initTheme(e){if("auto"!=e)return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addListener((()=>{"auto"==this.props.theme&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}))}return this.darkMedia.matches?"dark":"light"}getEmojiByPos([e,t]){const n=this.state.searchResults||this.grid,r=n[e]&&n[e][t];if(r)return Rb.get(r)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const t=new Map,n=t=>{t!=e.state.categoryId&&e.setState({categoryId:t})},r={root:this.refs.scroll.current,threshold:[0,1]},i=new IntersectionObserver((e=>{for(const n of e){const e=n.target.dataset.id;t.set(e,n.intersectionRatio)}const r=[...t],i=r[r.length-1];if(1==i[1])return n(i[0]);for(const[e,t]of r)if(t){n(e);break}}),r);for(const{root:e}of this.refs.categories.values())i.observe(e.current);this.observers.push(i)}observeRows(){const e={...this.state.visibleRows},t=new IntersectionObserver((t=>{for(const n of t){const t=parseInt(n.target.dataset.index);n.isIntersecting?e[t]=!0:delete e[t]}this.setState({visibleRows:e})}),{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(zy+5)}px 0px ${this.props.emojiButtonSize*zy}px`});for(const{rows:e}of this.refs.categories.values())for(const n of e)n.current&&t.observe(n.current);this.observers.push(t)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e:e,input:t,left:n,right:r,up:i,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[a,l]=this.state.pos;const c=(()=>{if(0==a&&0==l&&!e.repeat&&(n||i))return null;if(-1==a)return e.repeat||!r&&!o||t.selectionStart!=t.value.length?null:[0,0];if(n||r){let e=s[a];const t=n?-1:1;if(l+=t,!e[l]){if(a+=t,e=s[a],!e)return a=n?0:s.length-1,l=n?0:s[a].length-1,[a,l];l=n?e.length-1:0}return[a,l]}if(i||o){a+=i?-1:1;const e=s[a];return e?(e[l]||(l=e.length-1),[a,l]):(a=i?0:s.length-1,l=i?0:s[a].length-1,[a,l])}})();c?(e.preventDefault(),this.setState({pos:c,keyboard:!0},(()=>{this.scrollTo({row:c[0]})}))):this.state.pos[0]>-1&&this.setState({pos:[-1,-1]})}scrollTo({categoryId:e,row:t}){const n=this.state.searchResults||this.grid;if(!n.length)return;const r=this.refs.scroll.current,i=r.getBoundingClientRect();let o=0;if(t>=0&&(e=n[t].__categoryId),e){o=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(i.top-r.scrollTop)+1}if(t>=0)if(t){const e=o+n[t].__index*this.props.emojiButtonSize,s=e+this.props.emojiButtonSize+.88*this.props.emojiButtonSize;if(e<r.scrollTop)o=e;else{if(!(s>r.scrollTop+i.height))return;o=s-i.height}}else o=0;this.ignoreMouse(),r.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout((()=>{delete this.mouseIsIgnored}),100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({emoji:e,pos:t}){if(this.props.onEmojiSelect&&(!e&&t&&(e=this.getEmojiByPos(t)),e)){const t=e.skins[this.state.skin-1]||e.skins[0],n={id:e.id,name:e.name,native:t.native,unified:t.unified,keywords:e.keywords,shortcodes:t.shortcodes||e.shortcodes};t.src&&(n.src=t.src),e.aliases&&e.aliases.length&&(n.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(n.emoticons=e.emoticons),this.props.maxFrequentRows&&Fb.add(n,this.props),this.props.onEmojiSelect(n)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),Nb.set("skin",e)}renderNav(){return Db(Ly,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return Db("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[Db("div",{class:"flex flex-middle flex-grow",children:[Db("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:Db(Gb,{emoji:e,id:t?this.props.noResultsEmoji||"cry":this.props.previewEmoji||("top"==this.props.previewPosition?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),Db("div",{class:`margin-${this.dir[0]}`,children:Db("div",e?{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[Db("div",{class:"ellipsis",style:{fontSize:"1.1em"},children:e.name}),Db("div",{class:"ellipsis color-c",style:{fontSize:".9em"},children:e.skins[0].shortcodes})]}:t?{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[Db("div",{class:"ellipsis",style:{fontSize:"1.1em"},children:Ub.search_no_results_1}),Db("div",{class:"ellipsis color-c",style:{fontSize:".9em"},children:Ub.search_no_results_2})]}:{class:"color-c",style:{fontSize:21},children:Ub.pick})})]}),!e&&"preview"==this.props.skinTonePosition&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:t,posinset:n,grid:r}){const i=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,s=(e.skins[o-1]||e.skins[0]).native,a=function(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>e==t[n]))}(this.state.pos,t),l=t.concat(e.id).join("");return Db(jy,{selected:a,skin:o,size:i,children:Db("button",{"aria-label":s,"aria-selected":a||void 0,"aria-posinset":n,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:"none"==this.props.previewPosition?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:()=>this.handleEmojiClick({emoji:e}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[Db("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(n-1)%this.props.emojiButtonColors.length]:void 0}}),Db(Gb,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},l)}renderSearch(){const e="none"==this.props.previewPosition||"search"==this.props.skinTonePosition;return Db("div",{children:[Db("div",{class:"spacer"}),Db("div",{class:"flex flex-middle",children:[e&&"rtl"==this.dir&&this.renderSkinToneButton(),Db("div",{class:"search relative flex-grow",children:[Db("input",{type:"search",ref:this.refs.searchInput,placeholder:Ub.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown}),Db("span",{class:"icon loupe flex",children:Qb.search.loupe}),this.state.searchResults&&Db("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Qb.search.delete})]}),e&&"ltr"==this.dir&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?Db("div",{class:"category",ref:this.refs.search,children:[Db("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Ub.categories.search}),Db("div",{children:e.length?e.map(((t,n)=>Db("div",{class:"flex",children:t.map(((t,r)=>this.renderEmojiButton(t,{pos:[n,r],posinset:n*this.props.perLine+r+1,grid:e})))}))):Db("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&Db("a",{onClick:this.props.onAddCustomEmoji,children:Ub.add_custom})})})]}):null}renderCategories(){const{categories:e}=$b,t=!!this.state.searchResults;return Db("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0},children:e.map((e=>{const{root:t,rows:n}=this.refs.categories.get(e.id);return Db("div",{"data-id":e.target?e.target.id:e.id,class:"category",ref:t,children:[Db("div",{class:`sticky padding-small align-${this.dir[0]}`,children:e.name||Ub.categories[e.id]}),Db("div",{class:"relative",style:{height:n.length*this.props.emojiButtonSize},children:n.map(((t,n)=>{const r=t.index-t.index%zy,i=this.state.visibleRows[r],o="current"in t?t:void 0;if(!i&&!o)return null;const s=n*this.props.perLine,a=s+this.props.perLine,l=e.emojis.slice(s,a);return Db("div",{"data-index":t.index,ref:o,class:"flex row",style:{top:n*this.props.emojiButtonSize},children:i&&l.map(((e,n)=>{const r=Rb.get(e);return this.renderEmojiButton(r,{pos:[t.index,n],posinset:t.posinset+n,grid:this.grid})}))},t.index)}))})]})}))})}renderSkinToneButton(){return"none"==this.props.skinTonePosition?null:Db("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:Db("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Ub.skins.choose,title:Ub.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:Db("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderSkins(){const e=this.refs.skinToneButton.current.getBoundingClientRect(),t=this.base.getBoundingClientRect(),n={};return"ltr"==this.dir?n.right=t.right-e.right-3:n.left=e.left-t.left-3,"bottom"==this.props.previewPosition&&"preview"==this.props.skinTonePosition?n.bottom=t.bottom-e.top+6:(n.top=e.bottom-t.top+3,n.bottom="auto"),Db("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Ub.skins.choose,class:"menu hidden","data-position":n.top?"top":"bottom",style:n,children:[...Array(6).keys()].map((e=>{const t=e+1,n=this.state.skin==t;return Db("div",{children:[Db("input",{type:"radio",name:"skin-tone",value:t,"aria-label":Ub.skins[t],ref:n?this.refs.skinToneRadio:null,defaultChecked:n,onChange:()=>this.handleSkinMouseOver(t),onKeyDown:e=>{"Enter"!=e.code&&"Space"!=e.code&&"Tab"!=e.code||(e.preventDefault(),this.handleSkinClick(t))}}),Db("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(t),onMouseEnter:()=>this.handleSkinMouseOver(t),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[Db("span",{class:`skin-tone skin-tone-${t}`}),Db("span",{class:"margin-small-lr",children:Ub.skins[t]})]})]})}))})}render(){return Db("section",{id:"root",class:"flex flex-column",style:{width:this.props.perLine*this.props.emojiButtonSize+28},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:["top"==this.props.previewPosition&&this.renderPreview(),"top"==this.props.navPosition&&this.renderNav(),"sticky"==this.props.searchPosition&&Db("div",{class:"padding-lr",children:this.renderSearch()}),Db("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:Db("div",{style:{width:this.props.perLine*this.props.emojiButtonSize},children:["static"==this.props.searchPosition&&this.renderSearch(),this.renderSearchResults(),this.renderCategories(),Db("div",{class:"spacer"})]})}),"bottom"==this.props.navPosition&&this.renderNav(),"bottom"==this.props.previewPosition&&this.renderPreview(),this.state.showSkins&&this.renderSkins()]})}constructor(e){super(),Vg(this,"handleClickOutside",(e=>{const{element:t}=this.props;e.target!=t&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside())})),Vg(this,"handleBaseClick",(e=>{this.state.showSkins&&(e.target.closest(".menu")||(e.preventDefault(),e.stopImmediatePropagation(),this.closeSkins()))})),Vg(this,"handleBaseKeydown",(e=>{this.state.showSkins&&"Escape"==e.key&&(e.preventDefault(),e.stopImmediatePropagation(),this.closeSkins())})),Vg(this,"handleSearchClick",(()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})})),Vg(this,"handleSearchInput",(async()=>{const e=this.refs.searchInput.current;if(!e)return;const{value:t}=e,n=await Rb.search(t),r=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!n)return this.setState({searchResults:n,pos:[-1,-1]},r);const i=e.selectionStart==e.value.length?[0,0]:[-1,-1],o=[];o.setsize=n.length;let s=null;for(let e of n)o.length&&s.length!=this.props.perLine||(s=[],s.__categoryId="search",s.__index=o.length,o.push(s)),s.push(e);this.ignoreMouse(),this.setState({searchResults:o,pos:i},r)})),Vg(this,"handleSearchKeyDown",(e=>{const t=e.currentTarget;switch(e.stopImmediatePropagation(),e.key){case"ArrowLeft":this.navigate({e:e,input:t,left:!0});break;case"ArrowRight":this.navigate({e:e,input:t,right:!0});break;case"ArrowUp":this.navigate({e:e,input:t,up:!0});break;case"ArrowDown":this.navigate({e:e,input:t,down:!0});break;case"Enter":e.preventDefault(),this.handleEmojiClick({pos:this.state.pos});break;case"Escape":e.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch()}})),Vg(this,"clearSearch",(()=>{const e=this.refs.searchInput.current;e&&(e.value="",e.focus(),this.handleSearchInput())})),Vg(this,"handleCategoryClick",(({category:e,i:t})=>{this.scrollTo(0==t?{row:-1}:{categoryId:e.id})})),Vg(this,"openSkins",(e=>{const{currentTarget:t}=e,n=t.getBoundingClientRect();this.setState({showSkins:n},(async()=>{await async function(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}(2);const e=this.refs.menu.current;e&&(e.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))}))})),this.state={pos:[-1,-1],visibleRows:{0:!0},...this.getInitialState(e)}}}class Py extends Xb{async connectedCallback(){const e=Yb(this.props,Ob,this);e.element=this,e.ref=e=>{this.component=e},await qb(e),kb(Db(Fy,{...e}),this.shadowRoot)}disconnectedCallback(){this.component&&this.component.unregister()}constructor(e){super(e,{styles:Wg(Ry)})}}Vg(Py,"Props",Ob),"undefined"==typeof customElements||customElements.get("em-emoji-picker")||customElements.define("em-emoji-picker",Py);var Ry={};Ry=':host {\n display: flex;\n width: -webkit-min-content;\n width: -moz-min-content;\n width: min-content;\n height: 435px;\n min-height: 230px;\n border-radius: var(--border-radius);\n box-shadow: var(--shadow);\n --border-radius: 10px;\n --category-icon-size: 18px;\n --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;\n --font-size: 15px;\n --shadow-color: 0deg 0% 0%;\n --shadow:\n 0.3px 0.5px 2.7px hsl(var(--shadow-color) / 0.14),\n 0.4px 0.8px 1px -3.2px hsl(var(--shadow-color) / 0.14),\n 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / 0.14);\n}\n\n[data-theme=light] {\n --em-rgb-color: var(--rgb-color, 34, 36, 39);\n --em-rgb-accent: var(--rgb-accent, 34, 102, 237);\n --em-rgb-background: var(--rgb-background, 255, 255, 255);\n --em-rgb-input: var(--rgb-input, 255, 255, 255);\n --em-color-border: var(--color-border, rgba(0, 0, 0, .05));\n --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1));\n}\n\n[data-theme=dark] {\n --em-rgb-color: var(--rgb-color, 222, 222, 221);\n --em-rgb-accent: var(--rgb-accent, 58, 130, 247);\n --em-rgb-background: var(--rgb-background, 21, 22, 23);\n --em-rgb-input: var(--rgb-input, 0, 0, 0);\n --em-color-border: var(--color-border, rgba(255, 255, 255, .1));\n --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));\n}\n\n#root {\n --color-a: rgb(var(--em-rgb-color));\n --color-b: rgba(var(--em-rgb-color), .65);\n --color-c: rgba(var(--em-rgb-color), .45);\n --padding: 12px;\n --padding-small: calc(var(--padding) / 2);\n --sidebar-width: 16px;\n --duration: 225ms;\n --duration-fast: 125ms;\n --duration-instant: 50ms;\n --easing: cubic-bezier(.4, .0, .2, 1);\n position: relative;\n width: 100%;\n text-align: left;\n border-radius: var(--border-radius);\n background-color: rgb(var(--em-rgb-background));\n}\n\n@media (prefers-reduced-motion) {\n #root {\n --duration: 0;\n --duration-fast: 0;\n --duration-instant: 0;\n }\n}\n\n#root[data-menu] button {\n cursor: auto;\n}\n\n#root[data-menu] .menu button {\n cursor: pointer;\n}\n\n:host, #root, input, button {\n color: rgb(var(--em-rgb-color));\n font-family: var(--font-family);\n font-size: var(--font-size);\n line-height: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n*, *:before, *:after {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n min-width: 0;\n}\n\n.relative {\n position: relative;\n}\n\n.flex {\n display: flex;\n}\n\n.flex-auto {\n flex: 0 0 auto;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-column {\n flex-direction: column;\n}\n\n.flex-grow {\n flex: 1 1 auto;\n}\n\n.flex-middle {\n align-items: center;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.padding {\n padding: var(--padding);\n}\n\n.padding-t {\n padding-top: var(--padding);\n}\n\n.padding-lr {\n padding-left: var(--padding);\n padding-right: var(--padding);\n}\n\n.padding-r {\n padding-right: var(--padding);\n}\n\n.padding-small {\n padding: var(--padding-small);\n}\n\n.padding-small-b {\n padding-bottom: var(--padding-small);\n}\n\n.padding-small-lr {\n padding-left: var(--padding-small);\n padding-right: var(--padding-small);\n}\n\n.margin {\n margin: var(--padding);\n}\n\n.margin-r {\n margin-right: var(--padding);\n}\n\n.margin-l {\n margin-left: var(--padding);\n}\n\n.margin-small-l {\n margin-left: var(--padding-small);\n}\n\n.margin-small-lr {\n margin-left: var(--padding-small);\n margin-right: var(--padding-small);\n}\n\n.align-l {\n text-align: left;\n}\n\n.align-r {\n text-align: right;\n}\n\n.color-a {\n color: var(--color-a);\n}\n\n.color-b {\n color: var(--color-b);\n}\n\n.color-c {\n color: var(--color-c);\n}\n\n.ellipsis {\n white-space: nowrap;\n max-width: 100%;\n width: auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\na {\n cursor: pointer;\n color: rgb(var(--em-rgb-accent));\n}\n\na:hover {\n text-decoration: underline;\n}\n\n.spacer {\n height: 10px;\n}\n\n.scroll {\n overflow: auto;\n overflow-x: hidden;\n padding-right: 0;\n}\n\n.scroll::-webkit-scrollbar {\n width: var(--sidebar-width);\n height: var(--sidebar-width);\n}\n\n.scroll::-webkit-scrollbar-track {\n border: 0;\n}\n\n.scroll::-webkit-scrollbar-button {\n width: 0;\n height: 0;\n display: none;\n}\n\n.scroll::-webkit-scrollbar-corner {\n background-color: transparent;\n}\n\n.scroll::-webkit-scrollbar-thumb {\n min-height: 20%;\n min-height: 65px;\n border: 4px solid rgb(var(--em-rgb-background));\n border-radius: 8px;\n}\n\n.scroll::-webkit-scrollbar-thumb:hover {\n background-color: var(--em-color-border-over) !important;\n}\n\n.scroll:hover::-webkit-scrollbar-thumb {\n background-color: var(--em-color-border);\n}\n\n.sticky {\n position: -webkit-sticky;\n position: sticky;\n z-index: 1;\n top: -1px;\n font-weight: 500;\n background-color: rgba(var(--em-rgb-background), 0.9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n}\n\n.search {\n z-index: 2;\n position: relative;\n}\n\n.search input, .search button {\n font-size: calc(var(--font-size) - 1px);\n}\n\n.search input[type=search] {\n display: block;\n border: 0;\n outline: 0;\n width: 100%;\n padding: 10px 2em 10px 2.2em;\n border-radius: 10px;\n background-color: var(--em-color-border);\n transition-duration: var(--duration);\n transition-property: background-color, box-shadow;\n transition-timing-function: var(--easing);\n}\n\n.search input[type=search]::-moz-placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search]:-ms-input-placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search]::placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search], .search input[type=search]::-webkit-search-decoration, .search input[type=search]::-webkit-search-cancel-button, .search input[type=search]::-webkit-search-results-button, .search input[type=search]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n appearance: none;\n}\n\n.search input[type=search]:focus {\n background-color: rgb(var(--em-rgb-input));\n box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, 0.2);\n}\n\n.search .icon {\n z-index: 1;\n position: absolute;\n top: 50%;\n color: rgba(var(--em-rgb-color), 0.7);\n transform: translateY(-50%);\n}\n\n.search .loupe {\n left: 0.7em;\n pointer-events: none;\n}\n\n.search .delete {\n right: 0.7em;\n}\n\nsvg {\n fill: currentColor;\n width: 1em;\n height: 1em;\n}\n\nbutton {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n cursor: pointer;\n color: currentColor;\n border: 0;\n background-color: transparent;\n}\n\n#nav {\n z-index: 2;\n position: relative;\n padding-top: 12px;\n padding-bottom: 12px;\n padding-right: var(--sidebar-width);\n}\n\n#nav button {\n color: var(--color-b);\n transition: color var(--duration) var(--easing);\n}\n\n#nav button:hover {\n color: var(--color-a);\n}\n\n#nav svg, #nav img {\n width: var(--category-icon-size);\n height: var(--category-icon-size);\n}\n\n#nav .bar {\n position: absolute;\n bottom: -12px;\n left: 0;\n width: 100%;\n height: 3px;\n background-color: rgb(var(--em-rgb-accent));\n border-radius: 3px 3px 0 0;\n transition: transform var(--duration) var(--easing);\n}\n\n#nav button[aria-selected] {\n color: rgb(var(--em-rgb-accent));\n}\n\n#preview {\n z-index: 2;\n position: relative;\n padding: calc(var(--padding) + 4px) var(--padding);\n padding-right: var(--sidebar-width);\n}\n\n#nav:before, #preview:before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n}\n\n#nav[data-position=top]:before, #preview[data-position=top]:before {\n top: 100%;\n background: linear-gradient(to bottom, var(--em-color-border), transparent);\n}\n\n#nav[data-position=bottom]:before, #preview[data-position=bottom]:before {\n bottom: 100%;\n background: linear-gradient(to top, var(--em-color-border), transparent);\n}\n\n.category button {\n position: relative;\n font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;\n}\n\n.category button > * {\n position: relative;\n}\n\n.category button .background {\n position: absolute;\n inset: 0;\n opacity: 0;\n background-color: var(--em-color-border);\n transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);\n}\n\n.category button:hover .background {\n transition-duration: var(--duration-instant);\n transition-delay: 0ms;\n}\n\n.category button[aria-selected] .background {\n opacity: 1;\n}\n\n.category button[data-keyboard] .background {\n transition: none;\n}\n\n.row {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n}\n\n.skin-tone-button {\n border-radius: 100%;\n border: 1px solid transparent;\n}\n\n.skin-tone-button:hover {\n border-color: var(--em-color-border);\n}\n\n.skin-tone-button:active .skin-tone {\n transform: scale(0.85) !important;\n}\n\n.skin-tone-button .skin-tone {\n transition: transform var(--duration) var(--easing);\n}\n\n.skin-tone-button[aria-selected] {\n border-left-width: 0;\n border-right-width: 0;\n border-top-color: rgba(0, 0, 0, 0.05);\n border-bottom-color: transparent;\n background-color: var(--em-color-border);\n}\n\n.skin-tone-button[aria-selected] .skin-tone {\n transform: scale(0.9);\n}\n\n.menu {\n z-index: 2;\n position: absolute;\n white-space: nowrap;\n padding: 4px;\n border: 1px solid var(--em-color-border);\n background-color: rgba(var(--em-rgb-background), 0.9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n border-radius: 10px;\n box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.05);\n transition-property: opacity, transform;\n transition-duration: var(--duration);\n transition-timing-function: var(--easing);\n}\n\n.menu.hidden {\n opacity: 0;\n}\n\n.menu[data-position=bottom] {\n transform-origin: bottom right;\n}\n\n.menu[data-position=bottom].hidden {\n transform: scale(0.9) rotate(-3deg) translateY(5%);\n}\n\n.menu[data-position=top] {\n transform-origin: top right;\n}\n\n.menu[data-position=top].hidden {\n transform: scale(0.9) rotate(3deg) translateY(-5%);\n}\n\n.menu input[type=radio] {\n position: absolute;\n overflow: hidden;\n clip: rect(0 0 0 0);\n width: 1px;\n height: 1px;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\n.menu input[type=radio]:checked + .option {\n box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));\n}\n\n.option {\n width: 100%;\n padding: 4px 6px;\n border-radius: 6px;\n}\n\n.option:hover {\n color: #fff;\n background-color: rgb(var(--em-rgb-accent));\n}\n\n.skin-tone {\n position: relative;\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 100%;\n overflow: hidden;\n}\n\n.skin-tone:after {\n content: "";\n position: absolute;\n inset: 0;\n border-radius: 100%;\n border: 1px solid rgba(0, 0, 0, 0.8);\n mix-blend-mode: overlay;\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);\n}\n\n.skin-tone-1 {\n background-color: #ffc93a;\n}\n\n.skin-tone-2 {\n background-color: #ffdab7;\n}\n\n.skin-tone-3 {\n background-color: #e7b98f;\n}\n\n.skin-tone-4 {\n background-color: #c88c61;\n}\n\n.skin-tone-5 {\n background-color: #a46134;\n}\n\n.skin-tone-6 {\n background-color: #5d4437;\n}\n\n[data-emoji-set=twitter] .skin-tone:after {\n border-color: rgba(0, 0, 0, 0.5);\n box-shadow: none;\n}\n\n[data-emoji-set=twitter] .skin-tone-1 {\n background-color: #FADE72;\n}\n\n[data-emoji-set=twitter] .skin-tone-2 {\n background-color: #F3DFD0;\n}\n\n[data-emoji-set=twitter] .skin-tone-3 {\n background-color: #EED3A8;\n}\n\n[data-emoji-set=twitter] .skin-tone-4 {\n background-color: #CFAD8D;\n}\n\n[data-emoji-set=twitter] .skin-tone-5 {\n background-color: #A8805D;\n}\n\n[data-emoji-set=twitter] .skin-tone-6 {\n background-color: #765542;\n}\n\n[data-emoji-set=google] .skin-tone:after {\n box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.4);\n}\n\n[data-emoji-set=google] .skin-tone-1 {\n background-color: #F5C748;\n}\n\n[data-emoji-set=google] .skin-tone-2 {\n background-color: #F1D5AA;\n}\n\n[data-emoji-set=google] .skin-tone-3 {\n background-color: #D4B48D;\n}\n\n[data-emoji-set=google] .skin-tone-4 {\n background-color: #AA876B;\n}\n\n[data-emoji-set=google] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set=google] .skin-tone-6 {\n background-color: #61493F;\n}\n\n[data-emoji-set=facebook] .skin-tone:after {\n border-color: rgba(0, 0, 0, 0.4);\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;\n}\n\n[data-emoji-set=facebook] .skin-tone-1 {\n background-color: #F5C748;\n}\n\n[data-emoji-set=facebook] .skin-tone-2 {\n background-color: #F1D5AA;\n}\n\n[data-emoji-set=facebook] .skin-tone-3 {\n background-color: #D4B48D;\n}\n\n[data-emoji-set=facebook] .skin-tone-4 {\n background-color: #AA876B;\n}\n\n[data-emoji-set=facebook] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set=facebook] .skin-tone-6 {\n background-color: #61493F;\n}\n';class By extends t.Component{constructor(){super(...arguments),zf(this,"ref",t.createRef()),zf(this,"fetchEmojiData",(async()=>{try{const{data:e}=await Hg.get("https://cdn.jsdelivr.net/npm/@emoji-mart/data");return e}catch(e){return{}}})),zf(this,"onKeyDown",(e=>{let{event:t}=e;return"Escape"===t.key&&(this.props.editor.chain().focus().deleteRange(this.props.range).run(),!0)})),zf(this,"handleSelect",(e=>{this.props.editor.chain().focus().deleteRange(this.props.range).setEmoji(e).run()}))}componentDidMount(){new Py({...this.props,onEmojiSelect:this.handleSelect,style:{maxWidth:"100%"},theme:"light",native:!0,previewPosition:"none",showSkinTones:!1,data:this.fetchEmojiData,ref:this.ref})}render(){return t.createElement("div",{ref:this.ref,"data-cy":"neeto-editor-emoji-picker"})}}By.defaultProps={editor:{},range:{}},By.propTypes={editor:hf.exports.object.isRequired,range:hf.exports.object};const Uy=e=>{let{editor:n}=e;const r=c();return t.createElement(jf,{ref:r,closeOnSelect:!1,customTarget:()=>{var e;return t.createElement(Mf,{icon:nh,iconActive:null==r||null===(e=r.current)||void 0===e?void 0:e.visible,tooltipProps:{content:"Emoji",position:"bottom",delay:[500]},"data-cy":"neeto-editor-fixed-menu-emoji-option-button"})},position:"bottom-start"},t.createElement(By,{editor:n}))},$y=e=>{let{editor:n}=e;return t.createElement(jf,{customTarget:()=>t.createElement(Mf,{icon:gh,iconActive:n.isActive("heading"),tooltipProps:{content:"Font Size",position:"bottom",delay:[500]},"data-cy":"neeto-editor-fixed-menu-font-size-option"}),className:"neeto-editor-font-size-wrapper",placement:"bottom"},O.map((e=>{let{label:r,value:i}=e;return t.createElement("li",{onClick:()=>{return e=i,n.chain().focus().toggleHeading({level:e}).run();var e},key:i,className:Sc({active:(o=i,n.isActive("heading",{level:o}))}),"data-cy":"neeto-editor-fixed-menu-font-size-option-".concat(r)},r);var o})))},Hy=e=>{let{editor:n}=e;const r=c(),o=c(),[s,a]=i(""),[l,u]=i(""),d=n.isActive("link"),p=()=>{u(n.getAttributes("link").href||"")},h=()=>{var e;sf.test(l)?(n.chain().focus().setLink({href:l}).run(),null===(e=r.current)||void 0===e||e.close()):a("Please enter a valid url")};return t.createElement(jf,{ref:r,onVisible:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus({preventScroll:!0})},customTarget:()=>t.createElement(Mf,{icon:Bp,iconActive:d,onClick:p,tooltipProps:{content:"Link",position:"bottom",delay:[500]},"data-cy":"neeto-editor-fixed-menu-link-option"}),className:"neeto-editor-link-wrapper",closeOnSelect:!1,position:"bottom"},t.createElement("div",{onKeyDown:e=>{"Escape"===e.key?r.current.close():"Enter"===e.key&&h()},className:"neeto-editor-link__item"},t.createElement(Xh,{ref:o,name:"url",value:l,placeholder:"Paste URL",onFocus:()=>a(""),error:s,onChange:e=>{let{target:{value:t}}=e;return u(t)},"data-cy":"neeto-editor-fixed-menu-link-option-input"}),t.createElement(ed,{label:"Link",onClick:h,"data-cy":"neeto-editor-fixed-menu-link-option-link-button"}),d&&t.createElement(ed,{label:"Unlink",onClick:()=>{var e;n.chain().focus().unsetLink().run(),null===(e=r.current)||void 0===e||e.close()},"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button"})))};var Wy=Lc((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}));const Vy=e=>{let{editor:t,options:n,setImageUploadVisible:r}=e;const i=((e,t)=>({font:[{Icon:ih,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:ph,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:yh,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:sh,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Ap,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:Jp,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:kp,command:()=>e.chain().focus().toggleCodeBlock().run(),active:e.isActive("codeBlock"),optionName:"code-block",highlight:!0},{Icon:Lp,command:()=>t(!0),active:e.isActive("imageUpload"),optionName:"image-upload"}],list:[{Icon:$p,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:Wp,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}]}))(t,r);return Wy(["font","block","list"].map((e=>[e,i[e].filter((e=>n.includes(e.optionName)))])))},qy={small:24,medium:32,large:40,xlarge:64},Yy=["#E5E7EB","#FECACA","#FDE68A","#A7F3D0","#BFDBFE","#C7D2FE","#DDD6FE","#FBCFE8"],Ky=e=>{let{size:n,user:r,isSquare:o,status:s,onClick:a,className:l,...c}=e;const[u,d]=i(!1),{name:p="",imageUrl:h}=r,f="medium"===n,m="large"===n,g="xlarge"===n,b=(e=>{const t=e.trim().split(" "),n=t.reduce(((e,n,r)=>(0!==r&&r!==t.length-1||(e="".concat(e).concat(n.charAt(0).toUpperCase())),e)),"");return n})(p),y={height:qy[n],width:qy[n],backgroundColor:(()=>{const e=(b.charCodeAt(0)||0)+(b.charCodeAt(1)||0);return Yy[e%65%Yy.length]||Yy[0]})()},v=Sc("ne-avatar",{"ne-avatar--medium":f,"ne-avatar--large":m,"ne-avatar--xlarge":g,"ne-avatar--round":!o,hidden:!u}),w=Sc("ne-avatar__text",{"ne-avatar__text-medium":f,"ne-avatar__text-large":m,"ne-avatar__text-xlarge":g}),E=Sc("ne-avatar__status","".concat(s),{"ne-avatar__status-medium":f,"ne-avatar__status-large":m,"ne-avatar__status-xlarge":g,"ne-avatar__status-square":o}),M=()=>null==s?t.Fragment:t.createElement("span",{className:E}),k=()=>t.createElement("span",{className:w},b),_=b&&!h&&!u;return t.createElement("div",x({onClick:a,style:y,className:Sc("ne-avatar--container",{"ne-avatar--container-round":!o},l)},c),t.createElement(M,null),_?t.createElement(k,null):t.createElement("img",{className:v,onLoad:()=>d(!0),onError:()=>d(!1),src:h,alt:"avatar-".concat(b)}))};Ky.defaultProps={size:"medium",user:{imageUrl:"",name:""},isSquare:!1,onClick:()=>{},status:null},Ky.propTypes={size:hf.exports.oneOf(Object.keys(qy)),user:hf.exports.shape({imageUrl:hf.exports.string,name:hf.exports.string}),isSquare:hf.exports.bool,onClick:hf.exports.func,status:hf.exports.oneOf(Object.keys({online:"online",idle:"idle",offline:"offline"})),className:hf.exports.string};var Qy=Rc;var Gy="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var i=arguments[n];if(null!=i)for(var o in i)Qy(o,i)&&(t[o]=i[o]);n+=1}return t},Zy=Gy,Jy=Fc((function(e,t){return Zy({},t,e)})),Xy=Jy;const ev=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map(((e,n)=>Xy(e,{showImage:t,key:"".concat(Su(e.name),"-").concat(n)}))).sort(((e,t)=>e.name.localeCompare(t.name)))},tv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=ev(e,t);return e=>{let{query:t}=e;return n.filter((e=>{let{name:n}=e;return n.toLocaleLowerCase().includes(t.toLocaleLowerCase())}))}},nv=e=>{let{editor:n,mentions:r,showImageInMention:i}=e;const o=c(),s=ev(r,i);return Cu(s)?null:t.createElement(jf,{ref:o,customTarget:()=>{var e;return t.createElement(Mf,{icon:Tp,iconActive:null===(e=o.current)||void 0===e?void 0:e.visible,tooltipProps:{content:"Mention",position:"bottom",delay:[500]},"data-cy":"neeto-editor-mention-option"})}},t.createElement("div",{className:"neeto-editor-mentions__wrapper neeto-editor-mentions__wrapper--small"},s.map((e=>{let{key:r,name:o,imageUrl:s}=e;return t.createElement("button",{className:"neeto-editor-mentions__item neeto-editor-mentions__item--light",key:r,onClick:()=>n.commands.setMention({id:r,label:o}),type:"button","data-cy":"neeto-editor-mention-option-".concat(r)},i&&t.createElement(Ky,{size:"small",user:{name:o,imageUrl:s}}),t.createElement("p",null,o))}))))},rv=e=>{let{onClickVariable:n,variables:r}=e;const i=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:r,category_label:i,variables:o}=n;if(r&&o){const e=o.map((e=>({...e,category_key:r})));t.push({label:i,variables:e})}else e.push(n)})),e.length&&t.push({label:t.length?"Others":null,variables:e}),t}(r);return r&&r.length?t.createElement("div",{className:"neeto-editor-variables-list"},i.map(((e,r)=>{let{label:i,variables:o}=e;return t.createElement(iv,{key:r,index:r,title:i,variables:o,onClickItem:n})}))):null},iv=e=>{let{index:n,title:r,variables:i,onClickItem:o}=e;return t.createElement("div",{className:"neeto-editor-variables-block","data-cy":"neeto-editor-variable-option-category-".concat(n)},r&&t.createElement("h6",null,r),t.createElement("div",{className:"neeto-editor-variables-row"},i.map((e=>t.createElement("button",{type:"button",onClick:()=>o(e),key:"".concat(e.label,"--").concat(e.value),className:"neeto-editor-variable","data-cy":"neeto-editor-variable-option-item-".concat(e.label,"--").concat(e.value)},e.label)))))},ov=e=>{let{editor:n,variables:r}=e;const i=c();return r&&r.length?t.createElement(jf,{ref:i,customTarget:()=>{var e;return t.createElement(Mf,{icon:yp,iconActive:null===(e=i.current)||void 0===e?void 0:e.visible,tooltipProps:{content:"Variables",position:"bottom",delay:[500]},"data-cy":"neeto-editor-variable-option"})}},t.createElement(rv,{onClickVariable:e=>{const{category_key:t,key:r}=e,i=t?"".concat(t,".").concat(r):r;n.chain().focus().setVariable({label:i}).run()},variables:r})):null},sv=e=>{let{editor:n,variables:r,setImageUploadVisible:o,options:s,mentions:a,showImageInMention:l}=e;const[c,u]=i(!1),d=n&&n.view.state.selection.node,p=d&&"image"===d.type.name;if(!n)return null;const{font:h,block:f,list:m}=Vy({editor:n,options:s,setImageUploadVisible:o}),g=s.filter((e=>e.match(/^h[1-6]$/))).length>0,b=s.includes(C.EMOJI),y=s.includes(C.LINK),v=(e,n)=>{let{Icon:r,command:i,active:o,optionName:s,highlight:a}=e;return t.createElement(Mf,{key:n,icon:r,iconActive:o,highlight:a,onClick:i,tooltipProps:{content:Tu(s),position:"bottom",delay:[500]},"data-cy":"neeto-editor-fixed-menu-".concat(s,"-option")})};return t.createElement("div",{className:"neeto-editor-fixed-menu"},g&&t.createElement($y,{editor:n}),h.map(v),b&&t.createElement(Uy,{editor:n}),y&&t.createElement(Hy,{editor:n}),f.map(v),m.map(v),p&&nf({editor:n,isImageEditorModalOpen:c,setIsImageEditorModalOpen:u}).map(((e,n)=>{let{Icon:r,command:i,active:o,optionName:s}=e;return t.createElement(Mf,{key:n,icon:r,iconActive:o,onClick:i,tooltipProps:{content:Tu(s),position:"bottom",delay:[500]},"data-cy":"neeto-editor-fixed-menu-".concat(s,"-option")})})),t.createElement("div",{className:"neeto-editor-fixed-menu-addons"},t.createElement(ov,{editor:n,variables:r}),t.createElement(nv,{editor:n,mentions:a,showImageInMention:l})),t.createElement(Zh,{isOpen:c,onClose:()=>u(!1)},t.createElement("div",{className:"neeto-editor-image-uploader"},t.createElement("div",{className:"neeto-editor-image-uploader__content"},t.createElement(ef,{editor:n,onClose:()=>u(!1),url:null==d?void 0:d.attrs.src,alt:null==d?void 0:d.attrs.alt})))))},av=()=>{},lv="large",cv=e=>{let{children:n,size:r,noUnderline:i,className:o="",...s}=e;return t.createElement("div",x({className:Sc({"ne-tab__wrapper":!0},{"ne-tab__wrapper--size-large":r===lv},{"ne-tab__wrapper--underline-none":i},[o]),"data-cy":"tab-container"},s),n)};cv.Item=e=>{let{active:n,className:r="",children:i,icon:o=null,onClick:s=av,...a}=e;const l="button",c="string"==typeof o?()=>t.createElement("i",{className:o,"data-cy":"tab-item-icon"}):o||t.Fragment;return t.createElement(l,x({className:Sc(["ne-tab flex select-none items-center justify-center",r],{active:n}),onClick:s,"data-cy":"tab-item"},a),o&&t.createElement(c,{className:"ne-tab__icon"}),i)};const uv={autoProceed:!0,allowMultipleUploads:!1,restrictions:{maxFileSize:5*1024*1024,allowedFileTypes:[".jpg",".jpeg",".png",".gif"]}},dv={formData:!0,fieldName:"blob"},pv=[{title:"Upload",key:"local"},{title:"Link",key:"link"},{title:"Unsplash",key:"unsplash"}];var hv={exports:{}},fv={};function mv(e){return e<10?`0${e}`:e.toString()}var gv=function(){const e=new Date;return`${mv(e.getHours())}:${mv(e.getMinutes())}:${mv(e.getSeconds())}`};Object.defineProperty(fv,"__esModule",{value:!0}),fv.justErrorsLogger=fv.debugLogger=void 0;const bv=gv,yv={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${bv()}]`,...t)}};fv.justErrorsLogger=yv;const vv={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${bv()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${bv()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${bv()}]`,...t)}};fv.debugLogger=vv;let wv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var xv={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+=wv[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}},Ev={},Mv=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i};function kv(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}kv.prototype.match=function(e){var t,n,r=!0,i=this.parts,o=i.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<o;t++)"*"!==i[t]&&(r=t<n.length&&i[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var s in r={},e)this.match(s)&&(r[s]=e[s]);return r};var _v=function(e,t,n){var r=new kv(e,n||/[\/\.]/);return void 0!==t?r.match(t):r},Dv=/[\/\+\.]/;Object.defineProperty(Ev,"__esModule",{value:!0}),Ev.defaultOptions=Ev.RestrictionError=Ev.Restricter=void 0;const Cv=Mv,Ov=function(e,t){function n(t){var n=_v(t,e,Dv);return n&&n.length>=2}return t?n(t.split(";")[0]):n};Ev.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Nv extends Error{constructor(){super(...arguments),this.isRestriction=!0}}Ev.RestrictionError=Nv,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});function Tv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Ev.Restricter=class{constructor(e,t){this.i18n=t,this.getOpts=()=>{const t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){const{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:s}=this.getOpts().restrictions;if(o&&t.length+1>o)throw new Nv(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(s){const t=s.some((t=>t.includes("/")?!!e.type&&Ov(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()));if(!t){const e=s.join(", ");throw new Nv(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(i&&null!=e.size){const n=t.reduce(((e,t)=>e+t.size),e.size);if(n>i)throw new Nv(this.i18n("exceedsSize",{size:Cv(i),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Nv(this.i18n("exceedsSize",{size:Cv(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Nv(this.i18n("inferiorSize",{size:Cv(r)}))}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(Object.keys(e).length<t)throw new Nv(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new Nv(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:n}=this.getOpts().restrictions,r=Object.prototype.hasOwnProperty,i=[];for(const t of n)r.call(e.meta,t)&&""!==e.meta[t]||i.push(t);return{missingFields:i,error:t}}};var Sv=0;function Av(e){return"__private_"+Sv+++"_"+e}const Iv=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function Lv(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,i)=>{""!==e&&r.push(e),t<i.length-1&&r.push(n)})))),r}
32
+ var xh="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Eh(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function Mh(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function kh(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var _h={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":xh?173:189,"=":xh?61:187,";":xh?59:186,"'":222,"[":219,"]":221,"\\":220},Dh={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Ch={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Oh={16:!1,18:!1,17:!1,91:!1},Nh={},Th=1;Th<20;Th++)_h["f".concat(Th)]=111+Th;var Sh=[],Ah=!1,Ih="all",Lh=[],jh=function(e){return _h[e.toLowerCase()]||Dh[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function zh(e){Ih=e||"all"}function Fh(){return Ih||"all"}var Ph=function(e){var t=e.key,n=e.scope,r=e.method,i=e.splitKey,o=void 0===i?"+":i;kh(t).forEach((function(e){var t=e.split(o),i=t.length,s=t[i-1],a="*"===s?"*":jh(s);if(Nh[a]){n||(n=Fh());var l=i>1?Mh(Dh,t):[];Nh[a]=Nh[a].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,o=0;o<n.length;o++)-1===r.indexOf(n[o])&&(i=!1);return i}(e.mods,l))}))}}))};function Rh(e,t,n,r){var i;if(t.element===r&&(t.scope===n||"all"===t.scope)){for(var o in i=t.mods.length>0,Oh)Object.prototype.hasOwnProperty.call(Oh,o)&&(!Oh[o]&&t.mods.indexOf(+o)>-1||Oh[o]&&-1===t.mods.indexOf(+o))&&(i=!1);(0!==t.mods.length||Oh[16]||Oh[18]||Oh[17]||Oh[91])&&!i&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function Bh(e,t){var n=Nh["*"],r=e.keyCode||e.which||e.charCode;if(Uh.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===Sh.indexOf(r)&&229!==r&&Sh.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=Ch[t];e[t]&&-1===Sh.indexOf(n)?Sh.push(n):!e[t]&&Sh.indexOf(n)>-1?Sh.splice(Sh.indexOf(n),1):"metaKey"===t&&e[t]&&3===Sh.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Sh=Sh.slice(Sh.indexOf(n))))})),r in Oh){for(var i in Oh[r]=!0,Dh)Dh[i]===r&&(Uh[i]=!0);if(!n)return}for(var o in Oh)Object.prototype.hasOwnProperty.call(Oh,o)&&(Oh[o]=e[Ch[o]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Sh.indexOf(17)&&Sh.push(17),-1===Sh.indexOf(18)&&Sh.push(18),Oh[17]=!0,Oh[18]=!0);var s=Fh();if(n)for(var a=0;a<n.length;a++)n[a].scope===s&&("keydown"===e.type&&n[a].keydown||"keyup"===e.type&&n[a].keyup)&&Rh(e,n[a],s,t);if(r in Nh)for(var l=0;l<Nh[r].length;l++)if(("keydown"===e.type&&Nh[r][l].keydown||"keyup"===e.type&&Nh[r][l].keyup)&&Nh[r][l].key){for(var c=Nh[r][l],u=c.splitKey,d=c.key.split(u),p=[],h=0;h<d.length;h++)p.push(jh(d[h]));p.sort().join("")===Sh.sort().join("")&&Rh(e,c,s,t)}}}function Uh(e,t,n){Sh=[];var r=kh(e),i=[],o="all",s=document,a=0,l=!1,c=!0,u="+",d=!1;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(o=t.scope),t.element&&(s=t.element),t.keyup&&(l=t.keyup),void 0!==t.keydown&&(c=t.keydown),void 0!==t.capture&&(d=t.capture),"string"==typeof t.splitKey&&(u=t.splitKey)),"string"==typeof t&&(o=t);a<r.length;a++)i=[],(e=r[a].split(u)).length>1&&(i=Mh(Dh,e)),(e="*"===(e=e[e.length-1])?"*":jh(e))in Nh||(Nh[e]=[]),Nh[e].push({keyup:l,keydown:c,scope:o,mods:i,shortcut:r[a],method:n,key:r[a],splitKey:u,element:s});void 0!==s&&!function(e){return Lh.indexOf(e)>-1}(s)&&window&&(Lh.push(s),Eh(s,"keydown",(function(e){Bh(e,s)}),d),Ah||(Ah=!0,Eh(window,"focus",(function(){Sh=[]}),d)),Eh(s,"keyup",(function(e){Bh(e,s),function(e){var t=e.keyCode||e.which||e.charCode,n=Sh.indexOf(t);if(n>=0&&Sh.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&Sh.splice(0,Sh.length),93!==t&&224!==t||(t=91),t in Oh)for(var r in Oh[t]=!1,Dh)Dh[r]===t&&(Uh[r]=!1)}(e)}),d))}var $h={setScope:zh,getScope:Fh,deleteScope:function(e,t){var n,r;for(var i in e||(e=Fh()),Nh)if(Object.prototype.hasOwnProperty.call(Nh,i))for(n=Nh[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;Fh()===e&&zh(t||"all")},getPressedKeyCodes:function(){return Sh.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=jh(e)),-1!==Sh.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(Nh).forEach((function(n){var r=Nh[n].find((function(n){return n.scope===t&&n.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&Ph(e)}));else if("object"==typeof e)e.key&&Ph(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],o=n[1];"function"==typeof i&&(o=i,i=""),Ph({key:e,scope:i,method:o,splitKey:"+"})}}else Object.keys(Nh).forEach((function(e){return delete Nh[e]}))},keyMap:_h,modifier:Dh,modifierMap:Ch};for(var Hh in $h)Object.prototype.hasOwnProperty.call($h,Hh)&&(Uh[Hh]=$h[Hh]);if("undefined"!=typeof window){var Wh=window.hotkeys;Uh.noConflict=function(e){return e&&window.hotkeys===Uh&&(window.hotkeys=Wh),Uh},window.hotkeys=Uh}Uh.filter=function(){return!0};var Vh=function(e,t){var n=e.target,r=n&&n.tagName;return Boolean(r&&t&&t.includes(r))};function qh(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,a=i.filter,l=i.keyup,d=i.keydown,p=i.filterPreventDefault,h=void 0===p||p,f=i.enabled,m=void 0===f||f,g=i.enableOnContentEditable,b=void 0!==g&&g,y=c(null),v=u((function(e,n){var r;return a&&!a(e)?!h:!!(Vh(e,["INPUT","TEXTAREA","SELECT"])&&!Vh(e,s)||null!=(r=e.target)&&r.isContentEditable&&!b)||(null===y.current||document.activeElement===y.current)&&(t(e,n),!0)}),r?[y,s,a].concat(r):[y,s,a]);return o((function(){if(m)return l&&!0!==d&&(n.keydown=!1),Uh(e,n||{},v),function(){return Uh.unbind(e,v)};Uh.unbind(e,v)}),[v,e,m]),y}Uh.isPressed;const Yh=()=>{},Kh="xs",Qh="sm",Gh="md",Zh=e=>{let{size:n="sm",isOpen:r=!1,onClose:i=Yh,loading:o=!1,children:s,className:a="",closeOnEsc:l=!0,closeButton:u=!0,backdropClassName:d="",closeOnOutsideClick:p=!0,...h}=e;const f=c();return nd(f,p?i:Yh),qh("esc",l?i:Yh),t.createElement(td,{className:"ne-portal"},r&&t.createElement(zu,{key:"modal-backdrop",className:Sc("ne-modal__backdrop",d)},t.createElement("div",x({ref:f,key:"modal-wrapper",className:Sc("ne-modal__wrapper",{"ne-modal__wrapper--xs":n===Kh,"ne-modal__wrapper--sm":n===Qh,"ne-modal__wrapper--md":n===Gh,[a]:a})},h),u&&t.createElement(ed,{style:"text",icon:Ep,className:"ne-modal__close",onClick:i}),o?"":s)))},Jh=e=>{let{children:n,className:r="",required:i=!1,helpIconProps:o=null,...s}=e;const{onClick:a,icon:l,tooltipProps:c,className:u,...d}=o||{},p=l||zp;return t.createElement("label",x({className:Sc("ne-label flex items-center",r)},s),n,i&&t.createElement("span",{"aria-hidden":!0},"*"),o&&t.createElement(Qu,x({},c,{disabled:!c}),t.createElement("span",{className:Sc("ml-1",{[u]:u}),onClick:a},t.createElement(p,x({size:16},d)))))},Xh=s(((e,n)=>{const{id:r,size:i="small",type:o="text",label:s,error:a=null,suffix:l=null,prefix:c=null,disabled:u=!1,helpText:d="",className:p="",nakedInput:h=!1,contentSize:f=null,required:m=!1,...g}=e;return t.createElement("div",{className:Sc(["ne-input__wrapper",p])},s&&t.createElement(Jh,{required:m,"data-cy":"neeto-editor-".concat(Su(s),"-input-label"),htmlFor:r},s),t.createElement("div",{className:Sc("ne-input",{"ne-input--naked":!!h,"ne-input--error":!!a,"ne-input--disabled":!!u,"ne-input--small":"small"===i})},c&&t.createElement("div",{className:"ne-input__prefix"},c),t.createElement("input",x({ref:n,type:o,disabled:u,size:f,required:m,"aria-invalid":!!a,"data-cy":"".concat(Su(s),"-input-field")},g)),l&&t.createElement("div",{className:"ne-input__suffix"},l)),!!a&&t.createElement("p",{"data-cy":"".concat(Su(s),"-input-error"),className:"ne-input__error"},a),d&&t.createElement("p",{className:"ne-input__help-text"},d))}));Xh.displayName="Input";const ef=e=>{let{url:n,editor:r,onClose:o,alt:s}=e;const[a,l]=i(s||""),[c,u]=i(!1),d=()=>{r.chain().focus().setImage({src:n,alt:a}).run(),o()};return t.createElement("div",{className:"neeto-editor-image-editor",onKeyDown:e=>{"Enter"===e.key&&d()}},c?t.createElement("div",{className:"neeto-editor-image-editor__error"},t.createElement("h2",null,"Something Went Wrong!"),t.createElement("p",null,"The selected image cannot be displayed. Please try again using another image.")):t.createElement(t.Fragment,null,t.createElement("figure",null,t.createElement("img",{src:n,loading:"lazy",onError:e=>{let{currentTarget:t}=e;u(!0),t.onerror=null}})),t.createElement(Xh,{autoFocus:!0,value:a,onChange:e=>l(e.target.value),placeholder:"Brand Image",label:"Caption"})),t.createElement("div",{className:"neeto-editor-image-editor__footer"},t.createElement(ed,{size:"large",label:"Proceed",disabled:c,onClick:d}),t.createElement(ed,{size:"large",label:"Cancel",style:"text",onClick:o})))},tf=e=>{let{editor:n,isOpen:r,onClose:i}=e;const o=n&&n.view.state.selection.node;return t.createElement(Zh,{isOpen:r,onClose:i},t.createElement("div",{className:"neeto-editor-image-uploader"},t.createElement("div",{className:"neeto-editor-image-uploader__content"},t.createElement(ef,{editor:n,onClose:i,url:null==o?void 0:o.attrs.src,alt:null==o?void 0:o.attrs.alt}))))},nf=e=>{let{editor:t,isImageEditorModalOpen:n,setIsImageEditorModalOpen:r}=e;return[{Icon:Pp,command:()=>t.chain().focus().setImageAttributes({float:"left",align:"none"}).run(),active:t.isActive("image",{float:"left",align:"none"}),optionName:"Float Left"},{Icon:wp,command:()=>t.chain().focus().setImageAttributes({float:"none",align:"center"}).run(),active:t.isActive("image",{float:"none",align:"center"}),optionName:"Align Center"},{Icon:eh,command:()=>t.chain().focus().setImageAttributes({float:"right",align:"none"}).run(),active:t.isActive("image",{float:"right",align:"center"}),optionName:"Float Right"},{Icon:Op,command:()=>r(!0),active:n,optionName:"Caption"},{Icon:Ep,command:()=>t.commands.deleteSelection(),active:!1,optionName:"Remove"}]},rf=e=>{let{Icon:n,command:r,active:i,optionName:o}=e;return t.createElement(Qu,{content:Tu(o),position:"top",delay:[500]},t.createElement("div",{className:Sc("neeto-editor-bubble-menu__item",{active:i}),onClick:r,"data-cy":"neeto-editor-bubble-menu-".concat(o,"-option")},t.createElement(n,{size:20})))},of=e=>{let{editor:n,isImageEditorModalOpen:r,setIsImageEditorModalOpen:i}=e;return nf({editor:n,isImageEditorModalOpen:r,setIsImageEditorModalOpen:i}).map((e=>t.createElement(rf,x({key:e.optionName},e))))},sf=/[(http(s)?)://(www.)?a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/,af=/^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/,lf=/((?:http|https):\/\/)?(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|(?:manage\/)?videos?\/|)(\d+)(?:(?:\/|\?h=)(\w+))?(?:|\/\?)/,cf=e=>{let{editor:n,handleClose:r,handleAnimateInvalidLink:s}=e;const[a,l]=i("");o((()=>{l(n.getAttributes("link").href||"")}),[]);const c=()=>{sf.test(a)?(n.chain().focus().setLink({href:a}).run(),r()):Iu(a)?(n.chain().focus().unsetLink().run(),r()):(l(""),s())};return t.createElement("div",{onKeyDown:e=>{"Escape"===e.key?r():"Enter"===e.key&&c()},className:"neeto-editor-bubble-menu__link"},t.createElement("input",{autoFocus:!0,name:"url",value:a,placeholder:"Paste or type a link...",onChange:e=>{let{target:{value:t}}=e;return l(t)},className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input"}),t.createElement(ed,{style:"icon",icon:Ep,onClick:()=>{a?(l(""),n.chain().focus().unsetLink().run()):r()},"data-cy":"neeto-editor-link-cancel-button"}))},uf=e=>{let{editor:n,options:r,setIsInvalidLink:o,isLinkOptionActive:s,setIsLinkOptionActive:a}=e;const[l,c]=i(!1),u=(e=>{let{editor:t,setIsLinkOptionActive:n}=e;return[{Icon:ih,command:()=>t.chain().focus().toggleBold().run(),active:t.isActive("bold"),optionName:"bold"},{Icon:ph,command:()=>t.chain().focus().toggleItalic().run(),active:t.isActive("italic"),optionName:"italic"},{Icon:yh,command:()=>t.chain().focus().toggleUnderline().run(),active:t.isActive("underline"),optionName:"underline"},{Icon:sh,command:()=>t.chain().focus().toggleStrike().run(),active:t.isActive("strike"),optionName:"strike"},{Icon:Bp,command:()=>n(!0),active:t.isActive("link"),optionName:"link"},{Icon:kp,command:()=>t.chain().focus().toggleCode().run(),active:t.isActive("code"),optionName:"code-block"},{Icon:Ap,command:()=>t.chain().focus().toggleHighlight().run(),active:t.isActive("highlight"),optionName:"highlight"}]})({editor:n,setIsLinkOptionActive:a}).filter((e=>{let{optionName:t}=e;return r.includes(t)})),d=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Paragraph",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:n}),p=(e=>{var t;return(null===(t=e.find((e=>e.active)))||void 0===t?void 0:t.optionName)||"Paragraph"})(d),h=()=>{o(!0),setTimeout((()=>{o(!1)}),1e3)},f=()=>c(!1);return s?t.createElement(cf,{editor:n,handleClose:()=>a(!1),handleAnimateInvalidLink:h}):t.createElement(t.Fragment,null,t.createElement(Ku,{interactive:!0,placement:"bottom",visible:l,onClickOutside:f,content:d.map((e=>{let{optionName:n,command:r}=e;return t.createElement("button",{type:"button",key:n,onClick:()=>{r(),f()},className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown"},n)}))},t.createElement("button",{type:"button",onClick:()=>c((e=>!e)),className:"neeto-editor-bubble-menu__item neeto-editor-bubble-menu__dropdown-target"},p,t.createElement(Dp,{size:14}))),u.map((e=>t.createElement(rf,x({},e,{key:e.optionName})))))},df=e=>{let{editor:n,options:r}=e;const[o,s]=i(!1),[a,l]=i(!1),[c,u]=i(!1),d=n&&n.view.state.selection.node,p=d&&"image"===d.type.name,h=[C.BOLD,C.ITALIC,C.UNDERLINE,C.STRIKETHROUGH,C.LINK],f=Iu(r.filter((e=>h.includes(e))));return!n||!p&&f?null:t.createElement("div",null,t.createElement(hc,{editor:n,tippyOptions:{arrow:ml,zIndex:99999,onHide:()=>l(!1)},className:Sc("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":o})},p?t.createElement(of,{editor:n,isImageEditorModalOpen:c,setIsImageEditorModalOpen:u}):t.createElement(uf,{editor:n,options:r,setIsInvalidLink:s,isLinkOptionActive:a,setIsLinkOptionActive:l})),t.createElement(tf,{editor:n,isOpen:c,onClose:()=>u(!1)}))},pf=e=>{let{count:n,limit:r,strategy:i}=e;const o="limit"===i&&r;return t.createElement("p",{className:"neeto-editor-character-count","data-cy":"neeto-editor-character-count"},o?"".concat(r-n," characters remaining"):"".concat(n," characters"))};var hf={exports:{}},ff="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function mf(){}function gf(){}gf.resetWarningCache=mf;hf.exports=function(){function e(e,t,n,r,i,o){if(o!==ff){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. "+"Use PropTypes.checkPropTypes() to call them. "+"Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:gf,resetWarningCache:mf};return n.PropTypes=n,n}();const bf=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),yf=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),vf={onMouseEnter:bf,onMouseLeave:yf},wf=20,xf="#2F3941",Ef="#87929D",Mf=e=>{let{icon:n,iconActive:r=!0,tooltipProps:i,highlight:o=!1,...s}=e;return t.createElement(Qu,i,t.createElement("button",x({className:"neeto-editor-fixed-menu__item",type:"button"},function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?vf:{}}(o),s),t.createElement(n,{color:r?xf:Ef,size:wf})))};Mf.propTypes={icon:hf.exports.oneOfType([hf.exports.element,hf.exports.func]),iconActive:hf.exports.bool,onClick:hf.exports.func,tooltipProps:hf.exports.object},e.createContext(),e.createContext();var kf=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},_f="undefined"!=typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Df="undefined"!=typeof Element,Cf="function"==typeof Map,Of="function"==typeof Set,Nf="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Tf(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Tf(e[r],t[r]))return!1;return!0}if(Cf&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Tf(r.value[1],t.get(r.value[0])))return!1;return!0}if(Of&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Nf&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Df&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==i[r]&&"__v"!==i[r]&&"__o"!==i[r]||!e.$$typeof)&&!Tf(e[i[r]],t[i[r]]))return!1;return!0}return e!=e&&t!=t}var Sf=function(e,t){try{return Tf(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},Af=[];const If=()=>{},Lf=(n,r)=>{let{label:s,isOpen:a,onVisible:l=If,onClose:u=If,ulProps:h,position:f,children:m,className:g,customTarget:b,closeOnEsc:y=!0,closeOnSelect:v=!0,closeOnOutsideClick:w=!0,dropdownModifiers:E=[],...M}=n;const k=c(),_=b(),D=!(null==a),[C,O]=i(!1),[N,T]=i(null),[S,A]=i(null),{styles:I,attributes:L}=function(t,n,r){void 0===r&&(r={});var i=e.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Af},s=e.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=s[0],l=s[1],c=e.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);p.flushSync((function(){l({styles:kf(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:kf(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=e.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return Sf(i.current,e)?i.current||e:(i.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),d=e.useRef();return _f((function(){d.current&&d.current.setOptions(u)}),[u]),_f((function(){if(null!=t&&null!=n){var e=(r.createPopper||fl)(t,n,u);return d.current=e,function(){e.destroy(),d.current=null}}}),[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}(N,S,{placement:f||"bottom-end",modifiers:E});d(r,(()=>({close:()=>O(!1),visible:C})));const j=()=>{D||O(!1),u()};return qh("esc",y?j:If),nd(k,w?j:If),o((()=>{D&&O(a)}),[a]),o((()=>{C&&l()}),[C]),t.createElement("div",x({ref:k,className:Sc("ne-dropdown__wrapper",{[g]:g})},M),b?t.createElement("div",{ref:T,onClick:()=>{!D&&O(!C)}},_):t.createElement("div",null,s,t.createElement(Dp,null)),C&&t.createElement("ul",x({className:"ne-dropdown__popup",ref:A,onClick:()=>{v&&j()},"data-cy":"neeto-editor-".concat(Su(s),"-dropdown-container")},h,{style:{display:"block",...I.offset,...I.popper}},L.popper),m))};Lf.displayName="Dropdown";var jf=s(Lf);function zf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ff,Pf={exports:{}},Rf={exports:{}},Bf=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},Uf=Bf,$f=Object.prototype.toString,Hf=(Ff=Object.create(null),function(e){var t=$f.call(e);return Ff[t]||(Ff[t]=t.slice(8,-1).toLowerCase())});function Wf(e){return e=e.toLowerCase(),function(t){return Hf(t)===e}}function Vf(e){return Array.isArray(e)}function qf(e){return void 0===e}var Yf=Wf("ArrayBuffer");function Kf(e){return null!==e&&"object"==typeof e}function Qf(e){if("object"!==Hf(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var Gf=Wf("Date"),Zf=Wf("File"),Jf=Wf("Blob"),Xf=Wf("FileList");function em(e){return"[object Function]"===$f.call(e)}var tm=Wf("URLSearchParams");function nm(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Vf(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var rm,im=(rm="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return rm&&e instanceof rm}),om={isArray:Vf,isArrayBuffer:Yf,isBuffer:function(e){return null!==e&&!qf(e)&&null!==e.constructor&&!qf(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||$f.call(e)===t||em(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Yf(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Kf,isPlainObject:Qf,isUndefined:qf,isDate:Gf,isFile:Zf,isBlob:Jf,isFunction:em,isStream:function(e){return Kf(e)&&em(e.pipe)},isURLSearchParams:tm,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:nm,merge:function e(){var t={};function n(n,r){Qf(t[r])&&Qf(n)?t[r]=e(t[r],n):Qf(n)?t[r]=e({},n):Vf(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)nm(arguments[r],n);return t},extend:function(e,t,n){return nm(t,(function(t,r){e[r]=n&&"function"==typeof t?Uf(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,s={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)s[o=r[i]]||(t[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Hf,kindOfTest:Wf,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(qf(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:im,isFileList:Xf},sm=om;function am(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var lm=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(sm.isURLSearchParams(t))r=t.toString();else{var i=[];sm.forEach(t,(function(e,t){null!=e&&(sm.isArray(e)?t+="[]":e=[e],sm.forEach(e,(function(e){sm.isDate(e)?e=e.toISOString():sm.isObject(e)&&(e=JSON.stringify(e)),i.push(am(t)+"="+am(e))})))})),r=i.join("&")}if(r){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},cm=om;function um(){this.handlers=[]}um.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},um.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},um.prototype.forEach=function(e){cm.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var dm,pm,hm=um,fm=om;function mm(){if(pm)return dm;pm=1;var e=om;function t(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}e.inherits(t,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var n=t.prototype,r={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){r[e]={value:e}})),Object.defineProperties(t,r),Object.defineProperty(n,"isAxiosError",{value:!0}),t.from=function(r,i,o,s,a,l){var c=Object.create(n);return e.toFlatObject(r,c,(function(e){return e!==Error.prototype})),t.call(c,r.message,i,o,s,a),c.name=r.name,l&&Object.assign(c,l),c},dm=t}var gm,bm,ym,vm,wm,xm,Em={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};function Mm(){if(bm)return gm;bm=1;var e=om;return gm=function(t,n){n=n||new FormData;var r=[];function i(t){return null===t?"":e.isDate(t)?t.toISOString():e.isArrayBuffer(t)||e.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}return function t(o,s){if(e.isPlainObject(o)||e.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+s);r.push(o),e.forEach(o,(function(r,o){if(!e.isUndefined(r)){var a,l=s?s+"."+o:o;if(r&&!s&&"object"==typeof r)if(e.endsWith(o,"{}"))r=JSON.stringify(r);else if(e.endsWith(o,"[]")&&(a=e.toArray(r)))return void a.forEach((function(t){!e.isUndefined(t)&&n.append(l,i(t))}));t(r,l)}})),r.pop()}else n.append(s,i(o))}(t),n},gm}function km(){if(vm)return ym;vm=1;var e=mm();return ym=function(t,n,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?n(new e("Request failed with status code "+r.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}}function _m(){if(xm)return wm;xm=1;var e=om;return wm=e.isStandardBrowserEnv()?{write:function(t,n,r,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(n)),e.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),e.isString(i)&&a.push("path="+i),e.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},wm}var Dm,Cm,Om,Nm,Tm,Sm,Am,Im,Lm,jm,zm,Fm,Pm=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Rm=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Bm=function(e,t){return e&&!Pm(t)?Rm(e,t):t};function Um(){if(Cm)return Dm;Cm=1;var e=om,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Dm=function(n){var r,i,o,s={};return n?(e.forEach(n.split("\n"),(function(n){if(o=n.indexOf(":"),r=e.trim(n.substr(0,o)).toLowerCase(),i=e.trim(n.substr(o+1)),r){if(s[r]&&t.indexOf(r)>=0)return;s[r]="set-cookie"===r?(s[r]?s[r]:[]).concat([i]):s[r]?s[r]+", "+i:i}})),s):s},Dm}function $m(){if(Nm)return Om;Nm=1;var e=om;return Om=e.isStandardBrowserEnv()?function(){var t,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var t=e;return n&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(n){var r=e.isString(n)?i(n):n;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}}function Hm(){if(Sm)return Tm;Sm=1;var e=mm();function t(t){e.call(this,null==t?"canceled":t,e.ERR_CANCELED),this.name="CanceledError"}return om.inherits(t,e,{__CANCEL__:!0}),Tm=t}function Wm(){return Im||(Im=1,Am=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}),Am}function Vm(){if(jm)return Lm;jm=1;var e=om,t=km(),n=_m(),r=lm,i=Bm,o=Um(),s=$m(),a=Em,l=mm(),c=Hm(),u=Wm();return Lm=function(d){return new Promise((function(p,h){var f,m=d.data,g=d.headers,b=d.responseType;function y(){d.cancelToken&&d.cancelToken.unsubscribe(f),d.signal&&d.signal.removeEventListener("abort",f)}e.isFormData(m)&&e.isStandardBrowserEnv()&&delete g["Content-Type"];var v=new XMLHttpRequest;if(d.auth){var w=d.auth.username||"",x=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+x)}var E=i(d.baseURL,d.url);function M(){if(v){var e="getAllResponseHeaders"in v?o(v.getAllResponseHeaders()):null,n={data:b&&"text"!==b&&"json"!==b?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:e,config:d,request:v};t((function(e){p(e),y()}),(function(e){h(e),y()}),n),v=null}}if(v.open(d.method.toUpperCase(),r(E,d.params,d.paramsSerializer),!0),v.timeout=d.timeout,"onloadend"in v?v.onloadend=M:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(M)},v.onabort=function(){v&&(h(new l("Request aborted",l.ECONNABORTED,d,v)),v=null)},v.onerror=function(){h(new l("Network Error",l.ERR_NETWORK,d,v,v)),v=null},v.ontimeout=function(){var e=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",t=d.transitional||a;d.timeoutErrorMessage&&(e=d.timeoutErrorMessage),h(new l(e,t.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,d,v)),v=null},e.isStandardBrowserEnv()){var k=(d.withCredentials||s(E))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;k&&(g[d.xsrfHeaderName]=k)}"setRequestHeader"in v&&e.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:v.setRequestHeader(t,e)})),e.isUndefined(d.withCredentials)||(v.withCredentials=!!d.withCredentials),b&&"json"!==b&&(v.responseType=d.responseType),"function"==typeof d.onDownloadProgress&&v.addEventListener("progress",d.onDownloadProgress),"function"==typeof d.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(f=function(e){v&&(h(!e||e&&e.type?new c:e),v.abort(),v=null)},d.cancelToken&&d.cancelToken.subscribe(f),d.signal&&(d.signal.aborted?f():d.signal.addEventListener("abort",f))),m||(m=null);var _=u(E);_&&-1===["http","https","file"].indexOf(_)?h(new l("Unsupported protocol "+_+":",l.ERR_BAD_REQUEST,d)):v.send(m)}))},Lm}var qm=om,Ym=function(e,t){fm.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Km=mm(),Qm=Em,Gm=Mm(),Zm={"Content-Type":"application/x-www-form-urlencoded"};function Jm(e,t){!qm.isUndefined(e)&&qm.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Xm,eg={transitional:Qm,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Xm=Vm()),Xm),transformRequest:[function(e,t){if(Ym(t,"Accept"),Ym(t,"Content-Type"),qm.isFormData(e)||qm.isArrayBuffer(e)||qm.isBuffer(e)||qm.isStream(e)||qm.isFile(e)||qm.isBlob(e))return e;if(qm.isArrayBufferView(e))return e.buffer;if(qm.isURLSearchParams(e))return Jm(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=qm.isObject(e),i=t&&t["Content-Type"];if((n=qm.isFileList(e))||r&&"multipart/form-data"===i){var o=this.env&&this.env.FormData;return Gm(n?{"files[]":e}:e,o&&new o)}return r||"application/json"===i?(Jm(t,"application/json"),function(e,t,n){if(qm.isString(e))try{return(t||JSON.parse)(e),qm.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||eg.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&qm.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw Km.from(e,Km.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fm?zm:(Fm=1,zm=null)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};qm.forEach(["delete","get","head"],(function(e){eg.headers[e]={}})),qm.forEach(["post","put","patch"],(function(e){eg.headers[e]=qm.merge(Zm)}));var tg,ng,rg=eg,ig=om,og=rg;function sg(){return ng?tg:(ng=1,tg=function(e){return!(!e||!e.__CANCEL__)})}var ag=om,lg=function(e,t,n){var r=this||og;return ig.forEach(n,(function(n){e=n.call(r,e,t)})),e},cg=sg(),ug=rg,dg=Hm();function pg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dg}var hg,fg,mg=om,gg=function(e,t){t=t||{};var n={};function r(e,t){return mg.isPlainObject(e)&&mg.isPlainObject(t)?mg.merge(e,t):mg.isPlainObject(t)?mg.merge({},t):mg.isArray(t)?t.slice():t}function i(n){return mg.isUndefined(t[n])?mg.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function o(e){if(!mg.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return mg.isUndefined(t[n])?mg.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function a(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return mg.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||i,r=t(e);mg.isUndefined(r)&&t!==a||(n[e]=r)})),n};function bg(){return fg?hg:(fg=1,hg={version:"0.27.2"})}var yg=bg().version,vg=mm(),wg={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){wg[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var xg={};wg.transitional=function(e,t,n){function r(e,t){return"[Axios v"+yg+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new vg(r(i," has been removed"+(t?" in "+t:"")),vg.ERR_DEPRECATED);return t&&!xg[i]&&(xg[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var Eg,Mg,kg,_g,Dg,Cg,Og={assertOptions:function(e,t,n){if("object"!=typeof e)throw new vg("options must be an object",vg.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],l=void 0===a||s(a,o,e);if(!0!==l)throw new vg("option "+o+" must be "+l,vg.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new vg("Unknown option "+o,vg.ERR_BAD_OPTION)}},validators:wg},Ng=om,Tg=lm,Sg=hm,Ag=function(e){return pg(e),e.headers=e.headers||{},e.data=lg.call(e,e.data,e.headers,e.transformRequest),e.headers=ag.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ag.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||ug.adapter)(e).then((function(t){return pg(e),t.data=lg.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return cg(t)||(pg(e),t&&t.response&&(t.response.data=lg.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Ig=gg,Lg=Bm,jg=Og,zg=jg.validators;function Fg(e){this.defaults=e,this.interceptors={request:new Sg,response:new Sg}}Fg.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Ig(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&jg.assertOptions(n,{silentJSONParsing:zg.transitional(zg.boolean),forcedJSONParsing:zg.transitional(zg.boolean),clarifyTimeoutError:zg.transitional(zg.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!i){var a=[Ag,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),o=Promise.resolve(t);a.length;)o=o.then(a.shift(),a.shift());return o}for(var l=t;r.length;){var c=r.shift(),u=r.shift();try{l=c(l)}catch(e){u(e);break}}try{o=Ag(l)}catch(e){return Promise.reject(e)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},Fg.prototype.getUri=function(e){e=Ig(this.defaults,e);var t=Lg(e.baseURL,e.url);return Tg(t,e.params,e.paramsSerializer)},Ng.forEach(["delete","get","head","options"],(function(e){Fg.prototype[e]=function(t,n){return this.request(Ig(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ng.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Ig(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Fg.prototype[e]=t(),Fg.prototype[e+"Form"]=t(!0)}));var Pg=om,Rg=Bf,Bg=Fg,Ug=gg;var $g=function e(t){var n=new Bg(t),r=Rg(Bg.prototype.request,n);return Pg.extend(r,Bg.prototype,n),Pg.extend(r,n),r.create=function(n){return e(Ug(t,n))},r}(rg);$g.Axios=Bg,$g.CanceledError=Hm(),$g.CancelToken=function(){if(Mg)return Eg;Mg=1;var e=Hm();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(t){r.reason||(r.reason=new e(t),n(r.reason))}))}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},t.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},t.source=function(){var e,n=new t((function(t){e=t}));return{token:n,cancel:e}},Eg=t}(),$g.isCancel=sg(),$g.VERSION=bg().version,$g.toFormData=Mm(),$g.AxiosError=mm(),$g.Cancel=$g.CanceledError,$g.all=function(e){return Promise.all(e)},$g.spread=_g?kg:(_g=1,kg=function(e){return function(t){return e.apply(null,t)}}),$g.isAxiosError=function(){if(Cg)return Dg;Cg=1;var e=om;return Dg=function(t){return e.isObject(t)&&!0===t.isAxiosError}}(),Rf.exports=$g,Rf.exports.default=$g;var Hg=Cc(Pf.exports=Rf.exports);function Wg(e){return e&&e.__esModule?e.default:e}function Vg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qg,Yg,Kg,Qg,Gg,Zg,Jg={},Xg=[],eb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function tb(e,t){for(var n in t)e[n]=t[n];return e}function nb(e){var t=e.parentNode;t&&t.removeChild(e)}function rb(e,t,n){var r,i,o,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?qg.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return ib(e,s,r,i,null)}function ib(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++Kg:i};return null==i&&null!=Yg.vnode&&Yg.vnode(o),o}function ob(e){return e.children}function sb(e,t){this.props=e,this.context=t}function ab(e,t){if(null==t)return e.__?ab(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?ab(e):null}function lb(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return lb(e)}}function cb(e){(!e.__d&&(e.__d=!0)&&Qg.push(e)&&!ub.__r++||Zg!==Yg.debounceRendering)&&((Zg=Yg.debounceRendering)||Gg)(ub)}function ub(){for(var e;ub.__r=Qg.length;)e=Qg.sort((function(e,t){return e.__v.__b-t.__v.__b})),Qg=[],e.some((function(e){var t,n,r,i,o,s;e.__d&&(o=(i=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=tb({},i)).__v=i.__v+1,vb(s,i,r,t.__n,void 0!==s.ownerSVGElement,null!=i.__h?[o]:null,n,null==o?ab(i):o,i.__h),wb(n,i),i.__e!=o&&lb(i)))}))}function db(e,t,n,r,i,o,s,a,l,c){var u,d,p,h,f,m,g,b=r&&r.__k||Xg,y=b.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?ib(null,h,null,null,h):Array.isArray(h)?ib(ob,{children:h},null,null,null):h.__b>0?ib(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(p=b[u])||p&&h.key==p.key&&h.type===p.type)b[u]=void 0;else for(d=0;d<y;d++){if((p=b[d])&&h.key==p.key&&h.type===p.type){b[d]=void 0;break}p=null}vb(e,h,p=p||Jg,i,o,s,a,l,c),f=h.__e,(d=h.ref)&&p.ref!=d&&(g||(g=[]),p.ref&&g.push(p.ref,null,h),g.push(d,h.__c||f,h)),null!=f?(null==m&&(m=f),"function"==typeof h.type&&h.__k===p.__k?h.__d=l=pb(h,l,e):l=fb(e,h,p,b,f,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=ab(p))}for(n.__e=m,u=y;u--;)null!=b[u]&&("function"==typeof n.type&&null!=b[u].__e&&b[u].__e==n.__d&&(n.__d=ab(r,u+1)),Eb(b[u],b[u]));if(g)for(u=0;u<g.length;u++)xb(g[u],g[++u],g[++u])}function pb(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t="function"==typeof r.type?pb(r,t,n):fb(n,r,r,i,r.__e,t));return t}function hb(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){hb(e,t)})):t.push(e)),t}function fb(e,t,n,r,i,o){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<r.length;l+=2)if(a==i)break e;e.insertBefore(i,o),s=o}return void 0!==s?s:i.nextSibling}function mb(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||eb.test(t)?n:n+"px"}function gb(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||mb(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||mb(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?yb:bb,o):e.removeEventListener(t,o?yb:bb,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function bb(e){this.l[e.type+!1](Yg.event?Yg.event(e):e)}function yb(e){this.l[e.type+!0](Yg.event?Yg.event(e):e)}function vb(e,t,n,r,i,o,s,a,l){var c,u,d,p,h,f,m,g,b,y,v,w=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Yg.__b)&&c(t);try{e:if("function"==typeof w){if(g=t.props,b=(c=w.contextType)&&r[c.__c],y=c?b?b.props.value:c.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in w&&w.prototype.render?t.__c=u=new w(g,y):(t.__c=u=new sb(g,y),u.constructor=w,u.render=Mb),b&&b.sub(u),u.props=g,u.state||(u.state={}),u.context=y,u.__n=r,d=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=w.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=tb({},u.__s)),tb(u.__s,w.getDerivedStateFromProps(g,u.__s))),p=u.props,h=u.state,d)null==w.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==w.getDerivedStateFromProps&&g!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(g,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(g,u.__s,y)||t.__v===n.__v){u.props=g,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),u.__h.length&&s.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(g,u.__s,y),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(p,h,f)}))}u.context=y,u.props=g,u.state=u.__s,(c=Yg.__r)&&c(t),u.__d=!1,u.__v=t,u.__P=e,c=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(r=tb(tb({},r),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(p,h)),v=null!=c&&c.type===ob&&null==c.key?c.props.children:c,db(e,Array.isArray(v)?v:[v],t,n,r,i,o,s,a,l),u.base=t.__e,t.__h=null,u.__h.length&&s.push(u),m&&(u.__E=u.__=null),u.__e=!1}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,s,a){var l,c,u,d=n.props,p=t.props,h=t.type,f=0;if("svg"===h&&(i=!0),null!=o)for(;f<o.length;f++)if((l=o[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,o[f]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),o=null,a=!1}if(null===h)d===p||a&&e.data===p||(e.data=p);else{if(o=o&&qg.call(e.childNodes),c=(d=n.props||Jg).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!a){if(null!=o)for(d={},f=0;f<e.attributes.length;f++)d[e.attributes[f].name]=e.attributes[f].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||gb(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||gb(e,o,t[o],n[o],r)}(e,p,d,i,a),u)t.__k=[];else if(f=t.props.children,db(e,Array.isArray(f)?f:[f],t,n,r,i&&"foreignObject"!==h,o,s,o?o[0]:n.__k&&ab(n,0),a),null!=o)for(f=o.length;f--;)null!=o[f]&&nb(o[f]);a||("value"in p&&void 0!==(f=p.value)&&(f!==d.value||f!==e.value||"progress"===h&&!f)&&gb(e,"value",f,d.value,!1),"checked"in p&&void 0!==(f=p.checked)&&f!==e.checked&&gb(e,"checked",f,d.checked,!1))}return e}(n.__e,t,n,r,i,o,s,l);(c=Yg.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=o)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),Yg.__e(e,t,n)}}function wb(e,t){Yg.__c&&Yg.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Yg.__e(e,t.__v)}}))}function xb(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Yg.__e(e,n)}}function Eb(e,t,n){var r,i;if(Yg.unmount&&Yg.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||xb(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Yg.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Eb(r[i],t,"function"!=typeof e.type);n||null==e.__e||nb(e.__e),e.__e=e.__d=void 0}function Mb(e,t,n){return this.constructor(e,n)}function kb(e,t,n){var r,i,o;Yg.__&&Yg.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],vb(t,e=(!r&&n||t).__k=rb(ob,null,[e]),i||Jg,Jg,void 0!==t.ownerSVGElement,!r&&n?[n]:i?null:t.firstChild?qg.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),wb(o,e)}qg=Xg.slice,Yg={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},Kg=0,sb.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=tb({},this.state),"function"==typeof e&&(e=e(tb({},n),this.props)),e&&tb(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),cb(this))},sb.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cb(this))},sb.prototype.render=ob,Qg=[],Gg="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ub.__r=0;var _b=0;function Db(e,t,n,r,i){var o,s,a={};for(s in t)"ref"==s?o=t[s]:a[s]=t[s];var l={type:e,props:a,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--_b,__source:r,__self:i};if("function"==typeof e&&(o=e.defaultProps))for(s in o)void 0===a[s]&&(a[s]=o[s]);return Yg.vnode&&Yg.vnode(l),l}var Cb;Cb=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Ob={autoFocus:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:14,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","de","es","fa","fr","it","ja","nl","pl","pt","ru","uk","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};var Nb={set:function(e,t){try{window.localStorage[`emoji-mart.${e}`]=JSON.stringify(t)}catch(e){}},get:function(e){try{const t=window.localStorage[`emoji-mart.${e}`];if(t)return JSON.parse(t)}catch(e){}}},Tb=new Map;function Sb(e){if(Tb.has(e))return Tb.get(e);var t=Ab(e);return Tb.set(e,t),t}var Ab=function(){var e=null;try{e=document.createElement("canvas").getContext("2d")}catch(e){}if(!e)return function(){return!1};var t=25,n=20,r=Math.floor(t/2);return e.font=r+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=2*n,e.canvas.height=t,function(r){e.clearRect(0,0,2*n,t),e.fillStyle="#FF0000",e.fillText(r,0,22),e.fillStyle="#0000FF",e.fillText(r,n,22);for(var i=e.getImageData(0,0,n,t).data,o=i.length,s=0;s<o&&!i[s+3];s+=4);if(s>=o)return!1;var a=n+s/4%n,l=Math.floor(s/4/n),c=e.getImageData(a,l,1,1).data;return i[s]===c[0]&&i[s+2]===c[2]&&!(e.measureText(r).width>=n)}}();const Ib=[{v:14,emoji:"🫠"},{v:13.1,emoji:"😶‍🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑‍🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱‍♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];var Lb={latestVersion:function(){for(const{v:e,emoji:t}of Ib)if(Sb(t))return e},noCountryFlags:function(){return!Sb("🇨🇦")}};const jb=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let zb=null;var Fb={add:function(e){zb||(zb=Nb.get("frequently")||{});const t=e.id||e;t&&(zb[t]||(zb[t]=0),zb[t]+=1,Nb.set("last",t),Nb.set("frequently",zb))},get:function({maxFrequentRows:e,perLine:t}){if(!e)return[];zb||(zb=Nb.get("frequently"));let n=[];if(!zb){zb={};for(let e in jb.slice(0,t)){const r=jb[e];zb[r]=t-e,n.push(r)}return n}const r=e*t,i=Nb.get("last");for(let e in zb)n.push(e);if(n.sort(((e,t)=>{const n=zb[t],r=zb[e];return n==r?e.localeCompare(t):n-r})),n.length>r){const e=n.slice(r);n=n.slice(0,r);for(let t of e)t!=i&&delete zb[t];i&&-1==n.indexOf(i)&&(delete zb[n[n.length-1]],n.splice(-1,1,i)),Nb.set("frequently",zb)}return n}};let Pb=null;var Rb={search:async function(e,{maxResults:t}={}){if(!e||!e.trim().length)return null;t||(t=90),await qb();const n=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter(((e,t,n)=>e.trim()&&n.indexOf(e)==t));if(!n.length)return;let r,i,o=Pb||(Pb=Object.values($b.emojis));for(const e of n){if(!o.length)break;r=[],i={};for(const t of o){if(!t.search)continue;const n=t.search.indexOf(`,${e}`);-1!=n&&(r.push(t),i[t.id]||(i[t.id]=0),i[t.id]+=t.id==e?0:n+1)}o=r}return r.length<2||(r.sort(((e,t)=>{const n=i[e.id],r=i[t.id];return n==r?e.id.localeCompare(t.id):n-r})),r.length>t&&(r=r.slice(0,t))),r},get:function(e){return e.id?e:$b.emojis[e]||$b.emojis[$b.aliases[e]]||$b.emojis[$b.natives[e]]},reset:function(){Pb=null},SHORTCODES_REGEX:/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/};const Bb=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];let Ub=null,$b=null;async function Hb(e){const t=await fetch(e);return await t.json()}let Wb=null,Vb=null;function qb(e){return Wb||(Wb=new Promise((e=>{Vb=e}))),e&&async function(e){let{emojiVersion:t,set:n,locale:r}=e;if(t||(t=Ob.emojiVersion.value),n||(n=Ob.set.value),r||(r=Ob.locale.value),$b)$b.categories=$b.categories.filter((e=>!!!e.name));else{$b=("function"==typeof e.data?await e.data():e.data)||await Hb(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),$b.emoticons={},$b.natives={},$b.categories.unshift({id:"frequent",emojis:[]});for(const e in $b.aliases){const t=$b.aliases[e],n=$b.emojis[t];n&&(n.aliases||(n.aliases=[]),n.aliases.push(e))}}Ub||(Ub=("function"==typeof e.i18n?await e.i18n():e.i18n)||("en"==r?Wg(Cb):await Hb(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)));if(e.custom)for(let t in e.custom){t=parseInt(t);const n=e.custom[t],r=e.custom[t-1];if(!n.emojis||!n.emojis.length)continue;n.id||(n.id=`custom_${t+1}`),n.name||(n.name=Ub.categories.custom),r&&!n.icon&&(n.target=r.target||r),$b.categories.push(n);const i=[];for(const e of n.emojis)i.indexOf(e.id)>-1||($b.emojis[e.id]=e,i.push(e.id));n.emojis=i}e.categories&&($b.categories=$b.categories.filter((t=>-1!=e.categories.indexOf(t.id))).sort(((t,n)=>e.categories.indexOf(t.id)-e.categories.indexOf(n.id))));let i=null,o=null;"native"==n&&(i=Lb.latestVersion(),o=e.noCountryFlags||Lb.noCountryFlags());let s=$b.categories.length,a=!1;for(;s--;){const t=$b.categories[s];if("frequent"==t.id&&(t.emojis=Fb.get(e)),!t.emojis||!t.emojis.length){$b.categories.splice(s,1);continue}const{categoryIcons:n}=e;if(n){const e=n[t.id];e&&!t.icon&&(t.icon=e)}let r=t.emojis.length;for(;r--;){const e=$b.emojis[t.emojis[r]],n=()=>{t.emojis.splice(r,1)};if(e)if(i&&e.version>i)n();else if(!o||"flags"!=t.id||Bb.includes(e.id)){if(!e.search){if(a=!0,e.search=","+[[e.id,!1],[e.name,!0],[e.keywords,!1],[e.emoticons,!1]].map((([e,t])=>{if(e)return(Array.isArray(e)?e:[e]).map((e=>(t?e.split(/[-|_|\s]+/):[e]).map((e=>e.toLowerCase())))).flat()})).flat().filter((e=>e&&e.trim())).join(","),e.emoticons)for(const t of e.emoticons)$b.emoticons[t]||($b.emoticons[t]=e.id);let t=0;for(const n of e.skins){if(!n)continue;t++;const{native:r}=n;r&&($b.natives[r]=e.id,e.search+=`,${r}`);const i=1==t?"":`:skin-tone-${t}:`;n.shortcodes=`:${e.id}:${i}`}}}else n();else n()}}a&&Rb.reset();Vb()}(e),Wb}function Yb(e,t,n){e||(e={});const r={};for(let i in t)r[i]=Kb(i,e,t,n);return r}function Kb(e,t,n,r){const i=n[e];let o=r&&r.getAttribute(e)||(null!=t[e]&&null!=t[e]?t[e]:null);return i?(null!=o&&i.value&&typeof i.value!=typeof o&&(o="boolean"==typeof i.value?"false"!=o:i.value.constructor(o)),(null==o||i.choices&&-1==i.choices.indexOf(o))&&(o=i.value),o):o}var Qb={categories:{activity:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Db("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:Db("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Db("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Db("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Db("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),Db("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Db("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),Db("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:Db("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Db("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),Db("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:Db("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Db("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),Db("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Db("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),Db("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Db("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Db("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},search:{loupe:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:Db("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:Db("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:Db("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})}};function Gb(e){let{id:t,skin:n,emoji:r}=e;if(e.shortcodes){const r=e.shortcodes.match(Rb.SHORTCODES_REGEX);r&&(t=r[1],r[2]&&(n=r[2]))}if(r||(r=Rb.get(t||e.native)),!r)return e.fallback;const i=r.skins[n-1]||r.skins[0],o=i.src||("native"==e.set||e.spritesheet?void 0:"function"==typeof e.getImageURL?e.getImageURL(e.set,i.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/64/${i.unified}.png`),s="function"==typeof e.getSpritesheetURL?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/sheets-256/64.png`;return Db("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:o?Db("img",{style:{height:e.size||"1em",width:"auto",display:"inline-block",position:"relative",top:".1em"},alt:i.native||i.shortcodes,src:o}):"native"==e.set?Db("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:i.native}):Db("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${s})`,backgroundSize:`${100*$b.sheet.cols}% ${100*$b.sheet.rows}%`,backgroundPosition:`${100/($b.sheet.cols-1)*i.x}% ${100/($b.sheet.rows-1)*i.y}%`}})})}const Zb="undefined"!=typeof window?window.HTMLElement:Object;class Jb extends Zb{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let t in e)this.attributeChangedCallback(t,null,e[t])}attributeChangedCallback(e,t,n){if(!this.component)return;const r=Kb(e,{[e]:n},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let t=null;const n=e.parent||(t=e.ref&&e.ref.current);t&&(t.innerHTML=""),n&&n.appendChild(this)}}}class Xb extends Jb{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const t=document.createElement("style");t.textContent=e,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(e,{styles:t}={}){super(e),this.setShadow(),this.injectStyles(t)}}var ey={fallback:"",id:"",native:"",shortcodes:"",size:"",set:Ob.set,skin:Ob.skin};class ty extends Jb{async connectedCallback(){const e=Yb(this.props,ey,this);e.element=this,e.ref=e=>{this.component=e},await qb(),kb(Db(Gb,{...e}),this)}constructor(e){super(e)}}Vg(ty,"Props",ey),"undefined"==typeof customElements||customElements.get("em-emoji")||customElements.define("em-emoji",ty);var ny,ry=[],iy=Yg.__b,oy=Yg.__r,sy=Yg.diffed,ay=Yg.__c,ly=Yg.unmount;function cy(){var e;for(ry.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=ry.pop();)if(e.__P)try{e.__H.__h.forEach(dy),e.__H.__h.forEach(py),e.__H.__h=[]}catch(t){e.__H.__h=[],Yg.__e(t,e.__v)}}Yg.__b=function(e){iy&&iy(e)},Yg.__r=function(e){oy&&oy(e);var t=e.__c.__H;t&&(t.__h.forEach(dy),t.__h.forEach(py),t.__h=[])},Yg.diffed=function(e){sy&&sy(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==ry.push(t)&&ny===Yg.requestAnimationFrame||((ny=Yg.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),uy&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);uy&&(t=requestAnimationFrame(n))})(cy))},Yg.__c=function(e,t){t.some((function(e){try{e.__h.forEach(dy),e.__h=e.__h.filter((function(e){return!e.__||py(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Yg.__e(n,e.__v)}})),ay&&ay(e,t)},Yg.unmount=function(e){ly&&ly(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{dy(e)}catch(e){t=e}})),t&&Yg.__e(t,n.__v))};var uy="function"==typeof requestAnimationFrame;function dy(e){var t=e.__c;"function"==typeof t&&(e.__c=void 0,t())}function py(e){e.__c=e.__()}function hy(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function fy(e){this.props=e}(fy.prototype=new sb).isPureReactComponent=!0,fy.prototype.shouldComponentUpdate=function(e,t){return hy(this.props,e)||hy(this.state,t)};var my=Yg.__b;Yg.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),my&&my(e)};var gy=Yg.__e;Yg.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);gy(e,t,n)};var by=Yg.unmount;function yy(){this.__u=0,this.t=null,this.__b=null}function vy(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function wy(){this.u=null,this.o=null}Yg.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),by&&by(e)},(yy.prototype=new sb).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=vy(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},yy.prototype.componentWillUnmount=function(){this.t=[]},yy.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&rb(ob,null,e.fallback);return i&&(i.__h=null),[rb(ob,null,t.__e?null:e.children),i]};var xy=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(wy.prototype=new sb).__e=function(e){var t=this,n=vy(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),xy(t,e,r)):i()};n?n(o):o()}},wy.prototype.render=function(e){this.u=null,this.o=new Map;var t=hb(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},wy.prototype.componentDidUpdate=wy.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){xy(e,n,t)}))};var Ey="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,My=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ky="undefined"!=typeof document,_y=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};sb.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(sb.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Dy=Yg.event;function Cy(){}function Oy(){return this.cancelBubble}function Ny(){return this.defaultPrevented}Yg.event=function(e){return Dy&&(e=Dy(e)),e.persist=Cy,e.isPropagationStopped=Oy,e.isDefaultPrevented=Ny,e.nativeEvent=e};var Ty={configurable:!0,get:function(){return this.class}},Sy=Yg.vnode;Yg.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var o in r={},n){var s=n[o];ky&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==s||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===s?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!_y(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():i&&My.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),r[o]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=hb(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=hb(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Ty.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Ty))}e.$$typeof=Ey,Sy&&Sy(e)};var Ay=Yg.__r;Yg.__r=function(e){Ay&&Ay(e),e.__c};const Iy={light:"outline",dark:"solid"};class Ly extends fy{renderIcon(e){const{icon:t}=e;if(t){if(t.svg)return Db("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return Db("img",{src:t.src})}const n=Qb.categories[e.id]||Qb.categories.custom;return n["auto"==this.props.icons?Iy[this.props.theme]:this.props.icons]||n}render(){let e=null;return Db("nav",{id:"nav",class:"padding","data-position":this.props.position,children:Db("div",{class:"flex relative",children:[this.categories.map(((t,n)=>{const r=t.name||Ub.categories[t.id],i=!this.props.unfocused&&t.id==this.state.categoryId;return i&&(e=n),Db("button",{"aria-label":r,"aria-selected":i||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:e=>e.preventDefault(),onClick:()=>{this.props.onClick({category:t,i:n})},children:this.renderIcon(t)})})),Db("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:null==e?0:1,transform:`translateX(${100*e}%)`}})]})})}constructor(){super(),this.categories=$b.categories.filter((e=>!e.target)),this.state={categoryId:this.categories[0].id}}}class jy extends fy{shouldComponentUpdate(e){for(let t in e)if("children"!=t&&e[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}const zy=10;class Fy extends sb{getInitialState(e=this.props){return{skin:Nb.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.observers=[],this.dir=Ub.rtl?"rtl":"ltr",this.refs={menu:{current:null},navigation:{current:null},scroll:{current:null},search:{current:null},searchInput:{current:null},skinToneButton:{current:null},skinToneRadio:{current:null}},this.initGrid(),0==this.props.stickySearch&&"sticky"==this.props.searchPosition&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){let t=null;for(const n in e)this.props[n]=e[n],"custom"===n||"categories"===n?this.reset():n in this.state&&(t||(t=this.getInitialState()),this.setState({[n]:t[n]}))}componentWillUnmount(){this.unregister()}reset(){qb(this.props),this.initGrid(),this.unobserve(),this.forceUpdate((()=>{this.observeCategories(),this.observeRows()}))}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){document.removeEventListener("click",this.handleClickOutside),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve(){for(const e of this.observers)e.disconnect()}initGrid(){const{categories:e}=$b;this.refs.categories=new Map;const t=$b.categories.map((e=>e.id)).join(",");this.navKey&&this.navKey!=t&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=t,this.grid=[],this.grid.setsize=0;const n=(e,t)=>{const n=[];n.__categoryId=t.id,n.__index=e.length,this.grid.push(n);const r=this.grid.length-1,i=r%zy?{}:{current:null};return i.index=r,i.posinset=this.grid.setsize+1,e.push(i),n};for(let t of e){const e=[];let r=n(e,t);for(let i of t.emojis)r.length==this.props.perLine&&(r=n(e,t)),this.grid.setsize+=1,r.push(i);this.refs.categories.set(t.id,{root:{current:null},rows:e})}}initTheme(e){if("auto"!=e)return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addListener((()=>{"auto"==this.props.theme&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}))}return this.darkMedia.matches?"dark":"light"}getEmojiByPos([e,t]){const n=this.state.searchResults||this.grid,r=n[e]&&n[e][t];if(r)return Rb.get(r)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const t=new Map,n=t=>{t!=e.state.categoryId&&e.setState({categoryId:t})},r={root:this.refs.scroll.current,threshold:[0,1]},i=new IntersectionObserver((e=>{for(const n of e){const e=n.target.dataset.id;t.set(e,n.intersectionRatio)}const r=[...t],i=r[r.length-1];if(1==i[1])return n(i[0]);for(const[e,t]of r)if(t){n(e);break}}),r);for(const{root:e}of this.refs.categories.values())i.observe(e.current);this.observers.push(i)}observeRows(){const e={...this.state.visibleRows},t=new IntersectionObserver((t=>{for(const n of t){const t=parseInt(n.target.dataset.index);n.isIntersecting?e[t]=!0:delete e[t]}this.setState({visibleRows:e})}),{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(zy+5)}px 0px ${this.props.emojiButtonSize*zy}px`});for(const{rows:e}of this.refs.categories.values())for(const n of e)n.current&&t.observe(n.current);this.observers.push(t)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e:e,input:t,left:n,right:r,up:i,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[a,l]=this.state.pos;const c=(()=>{if(0==a&&0==l&&!e.repeat&&(n||i))return null;if(-1==a)return e.repeat||!r&&!o||t.selectionStart!=t.value.length?null:[0,0];if(n||r){let e=s[a];const t=n?-1:1;if(l+=t,!e[l]){if(a+=t,e=s[a],!e)return a=n?0:s.length-1,l=n?0:s[a].length-1,[a,l];l=n?e.length-1:0}return[a,l]}if(i||o){a+=i?-1:1;const e=s[a];return e?(e[l]||(l=e.length-1),[a,l]):(a=i?0:s.length-1,l=i?0:s[a].length-1,[a,l])}})();c?(e.preventDefault(),this.setState({pos:c,keyboard:!0},(()=>{this.scrollTo({row:c[0]})}))):this.state.pos[0]>-1&&this.setState({pos:[-1,-1]})}scrollTo({categoryId:e,row:t}){const n=this.state.searchResults||this.grid;if(!n.length)return;const r=this.refs.scroll.current,i=r.getBoundingClientRect();let o=0;if(t>=0&&(e=n[t].__categoryId),e){o=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(i.top-r.scrollTop)+1}if(t>=0)if(t){const e=o+n[t].__index*this.props.emojiButtonSize,s=e+this.props.emojiButtonSize+.88*this.props.emojiButtonSize;if(e<r.scrollTop)o=e;else{if(!(s>r.scrollTop+i.height))return;o=s-i.height}}else o=0;this.ignoreMouse(),r.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout((()=>{delete this.mouseIsIgnored}),100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({emoji:e,pos:t}){if(this.props.onEmojiSelect&&(!e&&t&&(e=this.getEmojiByPos(t)),e)){const t=e.skins[this.state.skin-1]||e.skins[0],n={id:e.id,name:e.name,native:t.native,unified:t.unified,keywords:e.keywords,shortcodes:t.shortcodes||e.shortcodes};t.src&&(n.src=t.src),e.aliases&&e.aliases.length&&(n.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(n.emoticons=e.emoticons),this.props.maxFrequentRows&&Fb.add(n,this.props),this.props.onEmojiSelect(n)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),Nb.set("skin",e)}renderNav(){return Db(Ly,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return Db("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[Db("div",{class:"flex flex-middle flex-grow",children:[Db("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:Db(Gb,{emoji:e,id:t?this.props.noResultsEmoji||"cry":this.props.previewEmoji||("top"==this.props.previewPosition?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),Db("div",{class:`margin-${this.dir[0]}`,children:Db("div",e?{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[Db("div",{class:"ellipsis",style:{fontSize:"1.1em"},children:e.name}),Db("div",{class:"ellipsis color-c",style:{fontSize:".9em"},children:e.skins[0].shortcodes})]}:t?{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[Db("div",{class:"ellipsis",style:{fontSize:"1.1em"},children:Ub.search_no_results_1}),Db("div",{class:"ellipsis color-c",style:{fontSize:".9em"},children:Ub.search_no_results_2})]}:{class:"color-c",style:{fontSize:21},children:Ub.pick})})]}),!e&&"preview"==this.props.skinTonePosition&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:t,posinset:n,grid:r}){const i=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,s=(e.skins[o-1]||e.skins[0]).native,a=function(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>e==t[n]))}(this.state.pos,t),l=t.concat(e.id).join("");return Db(jy,{selected:a,skin:o,size:i,children:Db("button",{"aria-label":s,"aria-selected":a||void 0,"aria-posinset":n,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:"none"==this.props.previewPosition?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:()=>this.handleEmojiClick({emoji:e}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[Db("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(n-1)%this.props.emojiButtonColors.length]:void 0}}),Db(Gb,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},l)}renderSearch(){const e="none"==this.props.previewPosition||"search"==this.props.skinTonePosition;return Db("div",{children:[Db("div",{class:"spacer"}),Db("div",{class:"flex flex-middle",children:[e&&"rtl"==this.dir&&this.renderSkinToneButton(),Db("div",{class:"search relative flex-grow",children:[Db("input",{type:"search",ref:this.refs.searchInput,placeholder:Ub.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown}),Db("span",{class:"icon loupe flex",children:Qb.search.loupe}),this.state.searchResults&&Db("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Qb.search.delete})]}),e&&"ltr"==this.dir&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?Db("div",{class:"category",ref:this.refs.search,children:[Db("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Ub.categories.search}),Db("div",{children:e.length?e.map(((t,n)=>Db("div",{class:"flex",children:t.map(((t,r)=>this.renderEmojiButton(t,{pos:[n,r],posinset:n*this.props.perLine+r+1,grid:e})))}))):Db("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&Db("a",{onClick:this.props.onAddCustomEmoji,children:Ub.add_custom})})})]}):null}renderCategories(){const{categories:e}=$b,t=!!this.state.searchResults;return Db("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0},children:e.map((e=>{const{root:t,rows:n}=this.refs.categories.get(e.id);return Db("div",{"data-id":e.target?e.target.id:e.id,class:"category",ref:t,children:[Db("div",{class:`sticky padding-small align-${this.dir[0]}`,children:e.name||Ub.categories[e.id]}),Db("div",{class:"relative",style:{height:n.length*this.props.emojiButtonSize},children:n.map(((t,n)=>{const r=t.index-t.index%zy,i=this.state.visibleRows[r],o="current"in t?t:void 0;if(!i&&!o)return null;const s=n*this.props.perLine,a=s+this.props.perLine,l=e.emojis.slice(s,a);return Db("div",{"data-index":t.index,ref:o,class:"flex row",style:{top:n*this.props.emojiButtonSize},children:i&&l.map(((e,n)=>{const r=Rb.get(e);return this.renderEmojiButton(r,{pos:[t.index,n],posinset:t.posinset+n,grid:this.grid})}))},t.index)}))})]})}))})}renderSkinToneButton(){return"none"==this.props.skinTonePosition?null:Db("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:Db("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Ub.skins.choose,title:Ub.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:Db("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderSkins(){const e=this.refs.skinToneButton.current.getBoundingClientRect(),t=this.base.getBoundingClientRect(),n={};return"ltr"==this.dir?n.right=t.right-e.right-3:n.left=e.left-t.left-3,"bottom"==this.props.previewPosition&&"preview"==this.props.skinTonePosition?n.bottom=t.bottom-e.top+6:(n.top=e.bottom-t.top+3,n.bottom="auto"),Db("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Ub.skins.choose,class:"menu hidden","data-position":n.top?"top":"bottom",style:n,children:[...Array(6).keys()].map((e=>{const t=e+1,n=this.state.skin==t;return Db("div",{children:[Db("input",{type:"radio",name:"skin-tone",value:t,"aria-label":Ub.skins[t],ref:n?this.refs.skinToneRadio:null,defaultChecked:n,onChange:()=>this.handleSkinMouseOver(t),onKeyDown:e=>{"Enter"!=e.code&&"Space"!=e.code&&"Tab"!=e.code||(e.preventDefault(),this.handleSkinClick(t))}}),Db("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(t),onMouseEnter:()=>this.handleSkinMouseOver(t),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[Db("span",{class:`skin-tone skin-tone-${t}`}),Db("span",{class:"margin-small-lr",children:Ub.skins[t]})]})]})}))})}render(){return Db("section",{id:"root",class:"flex flex-column",style:{width:this.props.perLine*this.props.emojiButtonSize+28},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:["top"==this.props.previewPosition&&this.renderPreview(),"top"==this.props.navPosition&&this.renderNav(),"sticky"==this.props.searchPosition&&Db("div",{class:"padding-lr",children:this.renderSearch()}),Db("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:Db("div",{style:{width:this.props.perLine*this.props.emojiButtonSize},children:["static"==this.props.searchPosition&&this.renderSearch(),this.renderSearchResults(),this.renderCategories(),Db("div",{class:"spacer"})]})}),"bottom"==this.props.navPosition&&this.renderNav(),"bottom"==this.props.previewPosition&&this.renderPreview(),this.state.showSkins&&this.renderSkins()]})}constructor(e){super(),Vg(this,"handleClickOutside",(e=>{const{element:t}=this.props;e.target!=t&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside())})),Vg(this,"handleBaseClick",(e=>{this.state.showSkins&&(e.target.closest(".menu")||(e.preventDefault(),e.stopImmediatePropagation(),this.closeSkins()))})),Vg(this,"handleBaseKeydown",(e=>{this.state.showSkins&&"Escape"==e.key&&(e.preventDefault(),e.stopImmediatePropagation(),this.closeSkins())})),Vg(this,"handleSearchClick",(()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})})),Vg(this,"handleSearchInput",(async()=>{const e=this.refs.searchInput.current;if(!e)return;const{value:t}=e,n=await Rb.search(t),r=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!n)return this.setState({searchResults:n,pos:[-1,-1]},r);const i=e.selectionStart==e.value.length?[0,0]:[-1,-1],o=[];o.setsize=n.length;let s=null;for(let e of n)o.length&&s.length!=this.props.perLine||(s=[],s.__categoryId="search",s.__index=o.length,o.push(s)),s.push(e);this.ignoreMouse(),this.setState({searchResults:o,pos:i},r)})),Vg(this,"handleSearchKeyDown",(e=>{const t=e.currentTarget;switch(e.stopImmediatePropagation(),e.key){case"ArrowLeft":this.navigate({e:e,input:t,left:!0});break;case"ArrowRight":this.navigate({e:e,input:t,right:!0});break;case"ArrowUp":this.navigate({e:e,input:t,up:!0});break;case"ArrowDown":this.navigate({e:e,input:t,down:!0});break;case"Enter":e.preventDefault(),this.handleEmojiClick({pos:this.state.pos});break;case"Escape":e.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch()}})),Vg(this,"clearSearch",(()=>{const e=this.refs.searchInput.current;e&&(e.value="",e.focus(),this.handleSearchInput())})),Vg(this,"handleCategoryClick",(({category:e,i:t})=>{this.scrollTo(0==t?{row:-1}:{categoryId:e.id})})),Vg(this,"openSkins",(e=>{const{currentTarget:t}=e,n=t.getBoundingClientRect();this.setState({showSkins:n},(async()=>{await async function(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}(2);const e=this.refs.menu.current;e&&(e.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))}))})),this.state={pos:[-1,-1],visibleRows:{0:!0},...this.getInitialState(e)}}}class Py extends Xb{async connectedCallback(){const e=Yb(this.props,Ob,this);e.element=this,e.ref=e=>{this.component=e},await qb(e),kb(Db(Fy,{...e}),this.shadowRoot)}disconnectedCallback(){this.component&&this.component.unregister()}constructor(e){super(e,{styles:Wg(Ry)})}}Vg(Py,"Props",Ob),"undefined"==typeof customElements||customElements.get("em-emoji-picker")||customElements.define("em-emoji-picker",Py);var Ry={};Ry=':host {\n display: flex;\n width: -webkit-min-content;\n width: -moz-min-content;\n width: min-content;\n height: 435px;\n min-height: 230px;\n border-radius: var(--border-radius);\n box-shadow: var(--shadow);\n --border-radius: 10px;\n --category-icon-size: 18px;\n --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;\n --font-size: 15px;\n --shadow-color: 0deg 0% 0%;\n --shadow:\n 0.3px 0.5px 2.7px hsl(var(--shadow-color) / 0.14),\n 0.4px 0.8px 1px -3.2px hsl(var(--shadow-color) / 0.14),\n 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / 0.14);\n}\n\n[data-theme=light] {\n --em-rgb-color: var(--rgb-color, 34, 36, 39);\n --em-rgb-accent: var(--rgb-accent, 34, 102, 237);\n --em-rgb-background: var(--rgb-background, 255, 255, 255);\n --em-rgb-input: var(--rgb-input, 255, 255, 255);\n --em-color-border: var(--color-border, rgba(0, 0, 0, .05));\n --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1));\n}\n\n[data-theme=dark] {\n --em-rgb-color: var(--rgb-color, 222, 222, 221);\n --em-rgb-accent: var(--rgb-accent, 58, 130, 247);\n --em-rgb-background: var(--rgb-background, 21, 22, 23);\n --em-rgb-input: var(--rgb-input, 0, 0, 0);\n --em-color-border: var(--color-border, rgba(255, 255, 255, .1));\n --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));\n}\n\n#root {\n --color-a: rgb(var(--em-rgb-color));\n --color-b: rgba(var(--em-rgb-color), .65);\n --color-c: rgba(var(--em-rgb-color), .45);\n --padding: 12px;\n --padding-small: calc(var(--padding) / 2);\n --sidebar-width: 16px;\n --duration: 225ms;\n --duration-fast: 125ms;\n --duration-instant: 50ms;\n --easing: cubic-bezier(.4, .0, .2, 1);\n position: relative;\n width: 100%;\n text-align: left;\n border-radius: var(--border-radius);\n background-color: rgb(var(--em-rgb-background));\n}\n\n@media (prefers-reduced-motion) {\n #root {\n --duration: 0;\n --duration-fast: 0;\n --duration-instant: 0;\n }\n}\n\n#root[data-menu] button {\n cursor: auto;\n}\n\n#root[data-menu] .menu button {\n cursor: pointer;\n}\n\n:host, #root, input, button {\n color: rgb(var(--em-rgb-color));\n font-family: var(--font-family);\n font-size: var(--font-size);\n line-height: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n*, *:before, *:after {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n min-width: 0;\n}\n\n.relative {\n position: relative;\n}\n\n.flex {\n display: flex;\n}\n\n.flex-auto {\n flex: 0 0 auto;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-column {\n flex-direction: column;\n}\n\n.flex-grow {\n flex: 1 1 auto;\n}\n\n.flex-middle {\n align-items: center;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.padding {\n padding: var(--padding);\n}\n\n.padding-t {\n padding-top: var(--padding);\n}\n\n.padding-lr {\n padding-left: var(--padding);\n padding-right: var(--padding);\n}\n\n.padding-r {\n padding-right: var(--padding);\n}\n\n.padding-small {\n padding: var(--padding-small);\n}\n\n.padding-small-b {\n padding-bottom: var(--padding-small);\n}\n\n.padding-small-lr {\n padding-left: var(--padding-small);\n padding-right: var(--padding-small);\n}\n\n.margin {\n margin: var(--padding);\n}\n\n.margin-r {\n margin-right: var(--padding);\n}\n\n.margin-l {\n margin-left: var(--padding);\n}\n\n.margin-small-l {\n margin-left: var(--padding-small);\n}\n\n.margin-small-lr {\n margin-left: var(--padding-small);\n margin-right: var(--padding-small);\n}\n\n.align-l {\n text-align: left;\n}\n\n.align-r {\n text-align: right;\n}\n\n.color-a {\n color: var(--color-a);\n}\n\n.color-b {\n color: var(--color-b);\n}\n\n.color-c {\n color: var(--color-c);\n}\n\n.ellipsis {\n white-space: nowrap;\n max-width: 100%;\n width: auto;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\na {\n cursor: pointer;\n color: rgb(var(--em-rgb-accent));\n}\n\na:hover {\n text-decoration: underline;\n}\n\n.spacer {\n height: 10px;\n}\n\n.scroll {\n overflow: auto;\n overflow-x: hidden;\n padding-right: 0;\n}\n\n.scroll::-webkit-scrollbar {\n width: var(--sidebar-width);\n height: var(--sidebar-width);\n}\n\n.scroll::-webkit-scrollbar-track {\n border: 0;\n}\n\n.scroll::-webkit-scrollbar-button {\n width: 0;\n height: 0;\n display: none;\n}\n\n.scroll::-webkit-scrollbar-corner {\n background-color: transparent;\n}\n\n.scroll::-webkit-scrollbar-thumb {\n min-height: 20%;\n min-height: 65px;\n border: 4px solid rgb(var(--em-rgb-background));\n border-radius: 8px;\n}\n\n.scroll::-webkit-scrollbar-thumb:hover {\n background-color: var(--em-color-border-over) !important;\n}\n\n.scroll:hover::-webkit-scrollbar-thumb {\n background-color: var(--em-color-border);\n}\n\n.sticky {\n position: -webkit-sticky;\n position: sticky;\n z-index: 1;\n top: -1px;\n font-weight: 500;\n background-color: rgba(var(--em-rgb-background), 0.9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n}\n\n.search {\n z-index: 2;\n position: relative;\n}\n\n.search input, .search button {\n font-size: calc(var(--font-size) - 1px);\n}\n\n.search input[type=search] {\n display: block;\n border: 0;\n outline: 0;\n width: 100%;\n padding: 10px 2em 10px 2.2em;\n border-radius: 10px;\n background-color: var(--em-color-border);\n transition-duration: var(--duration);\n transition-property: background-color, box-shadow;\n transition-timing-function: var(--easing);\n}\n\n.search input[type=search]::-moz-placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search]:-ms-input-placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search]::placeholder {\n color: inherit;\n opacity: 0.6;\n}\n\n.search input[type=search], .search input[type=search]::-webkit-search-decoration, .search input[type=search]::-webkit-search-cancel-button, .search input[type=search]::-webkit-search-results-button, .search input[type=search]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n appearance: none;\n}\n\n.search input[type=search]:focus {\n background-color: rgb(var(--em-rgb-input));\n box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, 0.2);\n}\n\n.search .icon {\n z-index: 1;\n position: absolute;\n top: 50%;\n color: rgba(var(--em-rgb-color), 0.7);\n transform: translateY(-50%);\n}\n\n.search .loupe {\n left: 0.7em;\n pointer-events: none;\n}\n\n.search .delete {\n right: 0.7em;\n}\n\nsvg {\n fill: currentColor;\n width: 1em;\n height: 1em;\n}\n\nbutton {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n cursor: pointer;\n color: currentColor;\n border: 0;\n background-color: transparent;\n}\n\n#nav {\n z-index: 2;\n position: relative;\n padding-top: 12px;\n padding-bottom: 12px;\n padding-right: var(--sidebar-width);\n}\n\n#nav button {\n color: var(--color-b);\n transition: color var(--duration) var(--easing);\n}\n\n#nav button:hover {\n color: var(--color-a);\n}\n\n#nav svg, #nav img {\n width: var(--category-icon-size);\n height: var(--category-icon-size);\n}\n\n#nav .bar {\n position: absolute;\n bottom: -12px;\n left: 0;\n width: 100%;\n height: 3px;\n background-color: rgb(var(--em-rgb-accent));\n border-radius: 3px 3px 0 0;\n transition: transform var(--duration) var(--easing);\n}\n\n#nav button[aria-selected] {\n color: rgb(var(--em-rgb-accent));\n}\n\n#preview {\n z-index: 2;\n position: relative;\n padding: calc(var(--padding) + 4px) var(--padding);\n padding-right: var(--sidebar-width);\n}\n\n#nav:before, #preview:before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n}\n\n#nav[data-position=top]:before, #preview[data-position=top]:before {\n top: 100%;\n background: linear-gradient(to bottom, var(--em-color-border), transparent);\n}\n\n#nav[data-position=bottom]:before, #preview[data-position=bottom]:before {\n bottom: 100%;\n background: linear-gradient(to top, var(--em-color-border), transparent);\n}\n\n.category button {\n position: relative;\n font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;\n}\n\n.category button > * {\n position: relative;\n}\n\n.category button .background {\n position: absolute;\n inset: 0;\n opacity: 0;\n background-color: var(--em-color-border);\n transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);\n}\n\n.category button:hover .background {\n transition-duration: var(--duration-instant);\n transition-delay: 0ms;\n}\n\n.category button[aria-selected] .background {\n opacity: 1;\n}\n\n.category button[data-keyboard] .background {\n transition: none;\n}\n\n.row {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n}\n\n.skin-tone-button {\n border-radius: 100%;\n border: 1px solid transparent;\n}\n\n.skin-tone-button:hover {\n border-color: var(--em-color-border);\n}\n\n.skin-tone-button:active .skin-tone {\n transform: scale(0.85) !important;\n}\n\n.skin-tone-button .skin-tone {\n transition: transform var(--duration) var(--easing);\n}\n\n.skin-tone-button[aria-selected] {\n border-left-width: 0;\n border-right-width: 0;\n border-top-color: rgba(0, 0, 0, 0.05);\n border-bottom-color: transparent;\n background-color: var(--em-color-border);\n}\n\n.skin-tone-button[aria-selected] .skin-tone {\n transform: scale(0.9);\n}\n\n.menu {\n z-index: 2;\n position: absolute;\n white-space: nowrap;\n padding: 4px;\n border: 1px solid var(--em-color-border);\n background-color: rgba(var(--em-rgb-background), 0.9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n border-radius: 10px;\n box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.05);\n transition-property: opacity, transform;\n transition-duration: var(--duration);\n transition-timing-function: var(--easing);\n}\n\n.menu.hidden {\n opacity: 0;\n}\n\n.menu[data-position=bottom] {\n transform-origin: bottom right;\n}\n\n.menu[data-position=bottom].hidden {\n transform: scale(0.9) rotate(-3deg) translateY(5%);\n}\n\n.menu[data-position=top] {\n transform-origin: top right;\n}\n\n.menu[data-position=top].hidden {\n transform: scale(0.9) rotate(3deg) translateY(-5%);\n}\n\n.menu input[type=radio] {\n position: absolute;\n overflow: hidden;\n clip: rect(0 0 0 0);\n width: 1px;\n height: 1px;\n padding: 0;\n margin: 0;\n border: 0;\n}\n\n.menu input[type=radio]:checked + .option {\n box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));\n}\n\n.option {\n width: 100%;\n padding: 4px 6px;\n border-radius: 6px;\n}\n\n.option:hover {\n color: #fff;\n background-color: rgb(var(--em-rgb-accent));\n}\n\n.skin-tone {\n position: relative;\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 100%;\n overflow: hidden;\n}\n\n.skin-tone:after {\n content: "";\n position: absolute;\n inset: 0;\n border-radius: 100%;\n border: 1px solid rgba(0, 0, 0, 0.8);\n mix-blend-mode: overlay;\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);\n}\n\n.skin-tone-1 {\n background-color: #ffc93a;\n}\n\n.skin-tone-2 {\n background-color: #ffdab7;\n}\n\n.skin-tone-3 {\n background-color: #e7b98f;\n}\n\n.skin-tone-4 {\n background-color: #c88c61;\n}\n\n.skin-tone-5 {\n background-color: #a46134;\n}\n\n.skin-tone-6 {\n background-color: #5d4437;\n}\n\n[data-emoji-set=twitter] .skin-tone:after {\n border-color: rgba(0, 0, 0, 0.5);\n box-shadow: none;\n}\n\n[data-emoji-set=twitter] .skin-tone-1 {\n background-color: #FADE72;\n}\n\n[data-emoji-set=twitter] .skin-tone-2 {\n background-color: #F3DFD0;\n}\n\n[data-emoji-set=twitter] .skin-tone-3 {\n background-color: #EED3A8;\n}\n\n[data-emoji-set=twitter] .skin-tone-4 {\n background-color: #CFAD8D;\n}\n\n[data-emoji-set=twitter] .skin-tone-5 {\n background-color: #A8805D;\n}\n\n[data-emoji-set=twitter] .skin-tone-6 {\n background-color: #765542;\n}\n\n[data-emoji-set=google] .skin-tone:after {\n box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.4);\n}\n\n[data-emoji-set=google] .skin-tone-1 {\n background-color: #F5C748;\n}\n\n[data-emoji-set=google] .skin-tone-2 {\n background-color: #F1D5AA;\n}\n\n[data-emoji-set=google] .skin-tone-3 {\n background-color: #D4B48D;\n}\n\n[data-emoji-set=google] .skin-tone-4 {\n background-color: #AA876B;\n}\n\n[data-emoji-set=google] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set=google] .skin-tone-6 {\n background-color: #61493F;\n}\n\n[data-emoji-set=facebook] .skin-tone:after {\n border-color: rgba(0, 0, 0, 0.4);\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;\n}\n\n[data-emoji-set=facebook] .skin-tone-1 {\n background-color: #F5C748;\n}\n\n[data-emoji-set=facebook] .skin-tone-2 {\n background-color: #F1D5AA;\n}\n\n[data-emoji-set=facebook] .skin-tone-3 {\n background-color: #D4B48D;\n}\n\n[data-emoji-set=facebook] .skin-tone-4 {\n background-color: #AA876B;\n}\n\n[data-emoji-set=facebook] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set=facebook] .skin-tone-6 {\n background-color: #61493F;\n}\n';class By extends t.Component{constructor(){super(...arguments),zf(this,"ref",t.createRef()),zf(this,"fetchEmojiData",(async()=>{try{const{data:e}=await Hg.get("https://cdn.jsdelivr.net/npm/@emoji-mart/data");return e}catch(e){return{}}})),zf(this,"onKeyDown",(e=>{let{event:t}=e;return"Escape"===t.key&&(this.props.editor.chain().focus().deleteRange(this.props.range).run(),!0)})),zf(this,"handleSelect",(e=>{this.props.editor.chain().focus().deleteRange(this.props.range).setEmoji(e).run()}))}componentDidMount(){new Py({...this.props,onEmojiSelect:this.handleSelect,style:{maxWidth:"100%"},theme:"light",native:!0,previewPosition:"none",showSkinTones:!1,data:this.fetchEmojiData,ref:this.ref})}render(){return t.createElement("div",{ref:this.ref,"data-cy":"neeto-editor-emoji-picker"})}}By.defaultProps={editor:{},range:{}},By.propTypes={editor:hf.exports.object.isRequired,range:hf.exports.object};const Uy=e=>{let{editor:n}=e;const r=c();return t.createElement(jf,{ref:r,closeOnSelect:!1,customTarget:()=>{var e;return t.createElement(Mf,{icon:nh,iconActive:null==r||null===(e=r.current)||void 0===e?void 0:e.visible,tooltipProps:{content:"Emoji",position:"bottom",delay:[500]},"data-cy":"neeto-editor-fixed-menu-emoji-option-button"})},position:"bottom-start"},t.createElement(By,{editor:n}))},$y=e=>{let{editor:n}=e;return t.createElement(jf,{customTarget:()=>t.createElement(Mf,{icon:gh,iconActive:n.isActive("heading"),tooltipProps:{content:"Font Size",position:"bottom",delay:[500]},"data-cy":"neeto-editor-fixed-menu-font-size-option"}),className:"neeto-editor-font-size-wrapper",placement:"bottom"},O.map((e=>{let{label:r,value:i}=e;return t.createElement("li",{onClick:()=>{return e=i,n.chain().focus().toggleHeading({level:e}).run();var e},key:i,className:Sc({active:(o=i,n.isActive("heading",{level:o}))}),"data-cy":"neeto-editor-fixed-menu-font-size-option-".concat(r)},r);var o})))},Hy=e=>{let{editor:n}=e;const r=c(),o=c(),[s,a]=i(""),[l,u]=i(""),d=n.isActive("link"),p=()=>{u(n.getAttributes("link").href||"")},h=()=>{var e;sf.test(l)?(n.chain().focus().setLink({href:l}).run(),null===(e=r.current)||void 0===e||e.close()):a("Please enter a valid url")};return t.createElement(jf,{ref:r,onVisible:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus({preventScroll:!0})},customTarget:()=>t.createElement(Mf,{icon:Bp,iconActive:d,onClick:p,tooltipProps:{content:"Link",position:"bottom",delay:[500]},"data-cy":"neeto-editor-fixed-menu-link-option"}),className:"neeto-editor-link-wrapper",closeOnSelect:!1,position:"bottom"},t.createElement("div",{onKeyDown:e=>{"Escape"===e.key?r.current.close():"Enter"===e.key&&h()},className:"neeto-editor-link__item"},t.createElement(Xh,{ref:o,name:"url",value:l,placeholder:"Paste URL",onFocus:()=>a(""),error:s,onChange:e=>{let{target:{value:t}}=e;return u(t)},"data-cy":"neeto-editor-fixed-menu-link-option-input"}),t.createElement(ed,{label:"Link",onClick:h,"data-cy":"neeto-editor-fixed-menu-link-option-link-button"}),d&&t.createElement(ed,{label:"Unlink",onClick:()=>{var e;n.chain().focus().unsetLink().run(),null===(e=r.current)||void 0===e||e.close()},"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button"})))};var Wy=Lc((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t}));const Vy=e=>{let{editor:t,options:n,setImageUploadVisible:r}=e;const i=((e,t)=>({font:[{Icon:ih,command:()=>e.chain().focus().toggleBold().run(),active:e.isActive("bold"),optionName:"bold"},{Icon:ph,command:()=>e.chain().focus().toggleItalic().run(),active:e.isActive("italic"),optionName:"italic"},{Icon:yh,command:()=>e.chain().focus().toggleUnderline().run(),active:e.isActive("underline"),optionName:"underline"},{Icon:sh,command:()=>e.chain().focus().toggleStrike().run(),active:e.isActive("strike"),optionName:"strike"},{Icon:Ap,command:()=>e.chain().focus().toggleHighlight().run(),active:e.isActive("highlight"),optionName:"highlight"}],block:[{Icon:Jp,command:()=>e.chain().focus().toggleBlockquote().run(),active:e.isActive("blockquote"),optionName:"block-quote",highlight:!0},{Icon:kp,command:()=>e.chain().focus().toggleCodeBlock().run(),active:e.isActive("codeBlock"),optionName:"code-block",highlight:!0},{Icon:Lp,command:()=>t(!0),active:e.isActive("imageUpload"),optionName:"image-upload"}],list:[{Icon:$p,command:()=>e.chain().focus().toggleBulletList().run(),active:e.isActive("bulletList"),optionName:"bullet-list",highlight:!0},{Icon:Wp,command:()=>e.chain().focus().toggleOrderedList().run(),active:e.isActive("orderedList"),optionName:"ordered-list",highlight:!0}]}))(t,r);return Wy(["font","block","list"].map((e=>[e,i[e].filter((e=>n.includes(e.optionName)))])))},qy={small:24,medium:32,large:40,xlarge:64},Yy=["#E5E7EB","#FECACA","#FDE68A","#A7F3D0","#BFDBFE","#C7D2FE","#DDD6FE","#FBCFE8"],Ky=e=>{let{size:n,user:r,isSquare:o,status:s,onClick:a,className:l,...c}=e;const[u,d]=i(!1),{name:p="",imageUrl:h}=r,f="medium"===n,m="large"===n,g="xlarge"===n,b=(e=>{const t=e.trim().split(" "),n=t.reduce(((e,n,r)=>(0!==r&&r!==t.length-1||(e="".concat(e).concat(n.charAt(0).toUpperCase())),e)),"");return n})(p),y={height:qy[n],width:qy[n],backgroundColor:(()=>{const e=(b.charCodeAt(0)||0)+(b.charCodeAt(1)||0);return Yy[e%65%Yy.length]||Yy[0]})()},v=Sc("ne-avatar",{"ne-avatar--medium":f,"ne-avatar--large":m,"ne-avatar--xlarge":g,"ne-avatar--round":!o,hidden:!u}),w=Sc("ne-avatar__text",{"ne-avatar__text-medium":f,"ne-avatar__text-large":m,"ne-avatar__text-xlarge":g}),E=Sc("ne-avatar__status","".concat(s),{"ne-avatar__status-medium":f,"ne-avatar__status-large":m,"ne-avatar__status-xlarge":g,"ne-avatar__status-square":o}),M=()=>null==s?t.Fragment:t.createElement("span",{className:E}),k=()=>t.createElement("span",{className:w},b),_=b&&!h&&!u;return t.createElement("div",x({onClick:a,style:y,className:Sc("ne-avatar--container",{"ne-avatar--container-round":!o},l)},c),t.createElement(M,null),_?t.createElement(k,null):t.createElement("img",{className:v,onLoad:()=>d(!0),onError:()=>d(!1),src:h,alt:"avatar-".concat(b)}))};Ky.defaultProps={size:"medium",user:{imageUrl:"",name:""},isSquare:!1,onClick:()=>{},status:null},Ky.propTypes={size:hf.exports.oneOf(Object.keys(qy)),user:hf.exports.shape({imageUrl:hf.exports.string,name:hf.exports.string}),isSquare:hf.exports.bool,onClick:hf.exports.func,status:hf.exports.oneOf(Object.keys({online:"online",idle:"idle",offline:"offline"})),className:hf.exports.string};var Qy=Rc;var Gy="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var i=arguments[n];if(null!=i)for(var o in i)Qy(o,i)&&(t[o]=i[o]);n+=1}return t},Zy=Gy,Jy=Fc((function(e,t){return Zy({},t,e)})),Xy=Jy;const ev=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map(((e,n)=>Xy(e,{showImage:t,key:"".concat(Su(e.name),"-").concat(n)}))).sort(((e,t)=>e.name.localeCompare(t.name)))},tv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=ev(e,t);return e=>{let{query:t}=e;return n.filter((e=>{let{name:n}=e;return n.toLocaleLowerCase().includes(t.toLocaleLowerCase())}))}},nv=e=>{let{editor:n,mentions:r,showImageInMention:i}=e;const o=c(),s=ev(r,i);return Cu(s)?null:t.createElement(jf,{ref:o,customTarget:()=>{var e;return t.createElement(Mf,{icon:Tp,iconActive:null===(e=o.current)||void 0===e?void 0:e.visible,tooltipProps:{content:"Mention",position:"bottom",delay:[500]},"data-cy":"neeto-editor-mention-option"})}},t.createElement("div",{className:"neeto-editor-mentions__wrapper neeto-editor-mentions__wrapper--small"},s.map((e=>{let{key:r,name:o,imageUrl:s}=e;return t.createElement("button",{className:"neeto-editor-mentions__item neeto-editor-mentions__item--light",key:r,onClick:()=>n.commands.setMention({id:r,label:o}),type:"button","data-cy":"neeto-editor-mention-option-".concat(r)},i&&t.createElement(Ky,{size:"small",user:{name:o,imageUrl:s}}),t.createElement("p",null,o))}))))},rv=e=>{let{onClickVariable:n,variables:r}=e;const i=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:r,category_label:i,variables:o}=n;if(r&&o){const e=o.map((e=>({...e,category_key:r})));t.push({label:i,variables:e})}else e.push(n)})),e.length&&t.push({label:t.length?"Others":null,variables:e}),t}(r);return r&&r.length?t.createElement("div",{className:"neeto-editor-variables-list"},i.map(((e,r)=>{let{label:i,variables:o}=e;return t.createElement(iv,{key:r,index:r,title:i,variables:o,onClickItem:n})}))):null},iv=e=>{let{index:n,title:r,variables:i,onClickItem:o}=e;return t.createElement("div",{className:"neeto-editor-variables-block","data-cy":"neeto-editor-variable-option-category-".concat(n)},r&&t.createElement("h6",null,r),t.createElement("div",{className:"neeto-editor-variables-row"},i.map((e=>t.createElement("button",{type:"button",onClick:()=>o(e),key:"".concat(e.label,"--").concat(e.value),className:"neeto-editor-variable","data-cy":"neeto-editor-variable-option-item-".concat(e.label,"--").concat(e.value)},e.label)))))},ov=e=>{let{editor:n,variables:r}=e;const i=c();return r&&r.length?t.createElement(jf,{ref:i,customTarget:()=>{var e;return t.createElement(Mf,{icon:yp,iconActive:null===(e=i.current)||void 0===e?void 0:e.visible,tooltipProps:{content:"Variables",position:"bottom",delay:[500]},"data-cy":"neeto-editor-variable-option"})}},t.createElement(rv,{onClickVariable:e=>{const{category_key:t,key:r}=e,i=t?"".concat(t,".").concat(r):r;n.chain().focus().setVariable({label:i}).run()},variables:r})):null},sv=e=>{let{editor:n,variables:r,setImageUploadVisible:o,options:s,mentions:a,showImageInMention:l}=e;const[c,u]=i(!1),d=n&&n.view.state.selection.node,p=d&&"image"===d.type.name;if(!n)return null;const{font:h,block:f,list:m}=Vy({editor:n,options:s,setImageUploadVisible:o}),g=s.filter((e=>e.match(/^h[1-6]$/))).length>0,b=s.includes(C.EMOJI),y=s.includes(C.LINK),v=(e,n)=>{let{Icon:r,command:i,active:o,optionName:s,highlight:a}=e;return t.createElement(Mf,{key:n,icon:r,iconActive:o,highlight:a,onClick:i,tooltipProps:{content:Tu(s),position:"bottom",delay:[500]},"data-cy":"neeto-editor-fixed-menu-".concat(s,"-option")})};return t.createElement("div",{className:"neeto-editor-fixed-menu"},g&&t.createElement($y,{editor:n}),h.map(v),b&&t.createElement(Uy,{editor:n}),y&&t.createElement(Hy,{editor:n}),f.map(v),m.map(v),p&&nf({editor:n,isImageEditorModalOpen:c,setIsImageEditorModalOpen:u}).map(((e,n)=>{let{Icon:r,command:i,active:o,optionName:s}=e;return t.createElement(Mf,{key:n,icon:r,iconActive:o,onClick:i,tooltipProps:{content:Tu(s),position:"bottom",delay:[500]},"data-cy":"neeto-editor-fixed-menu-".concat(s,"-option")})})),t.createElement("div",{className:"neeto-editor-fixed-menu-addons"},t.createElement(ov,{editor:n,variables:r}),t.createElement(nv,{editor:n,mentions:a,showImageInMention:l})),t.createElement(Zh,{isOpen:c,onClose:()=>u(!1)},t.createElement("div",{className:"neeto-editor-image-uploader"},t.createElement("div",{className:"neeto-editor-image-uploader__content"},t.createElement(ef,{editor:n,onClose:()=>u(!1),url:null==d?void 0:d.attrs.src,alt:null==d?void 0:d.attrs.alt})))))},av=()=>{},lv="large",cv=e=>{let{children:n,size:r,noUnderline:i,className:o="",...s}=e;return t.createElement("div",x({className:Sc({"ne-tab__wrapper":!0},{"ne-tab__wrapper--size-large":r===lv},{"ne-tab__wrapper--underline-none":i},[o]),"data-cy":"tab-container"},s),n)};cv.Item=e=>{let{active:n,className:r="",children:i,icon:o=null,onClick:s=av,...a}=e;const l="button",c="string"==typeof o?()=>t.createElement("i",{className:o,"data-cy":"tab-item-icon"}):o||t.Fragment;return t.createElement(l,x({className:Sc(["ne-tab flex select-none items-center justify-center",r],{active:n}),onClick:s,"data-cy":"tab-item"},a),o&&t.createElement(c,{className:"ne-tab__icon"}),i)};const uv={autoProceed:!0,allowMultipleUploads:!1,restrictions:{maxFileSize:5*1024*1024,allowedFileTypes:[".jpg",".jpeg",".png",".gif"]}},dv={formData:!0,fieldName:"blob"},pv=[{title:"Upload",key:"local"},{title:"Link",key:"link"},{title:"Unsplash",key:"unsplash"}];var hv={exports:{}},fv={};function mv(e){return e<10?`0${e}`:e.toString()}var gv=function(){const e=new Date;return`${mv(e.getHours())}:${mv(e.getMinutes())}:${mv(e.getSeconds())}`};Object.defineProperty(fv,"__esModule",{value:!0}),fv.justErrorsLogger=fv.debugLogger=void 0;const bv=gv,yv={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${bv()}]`,...t)}};fv.justErrorsLogger=yv;const vv={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${bv()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${bv()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${bv()}]`,...t)}};fv.debugLogger=vv;let wv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var xv={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+=wv[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}},Ev={},Mv=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i};function kv(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}kv.prototype.match=function(e){var t,n,r=!0,i=this.parts,o=i.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<o;t++)"*"!==i[t]&&(r=t<n.length&&i[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var s in r={},e)this.match(s)&&(r[s]=e[s]);return r};var _v=function(e,t,n){var r=new kv(e,n||/[\/\.]/);return void 0!==t?r.match(t):r},Dv=/[\/\+\.]/;Object.defineProperty(Ev,"__esModule",{value:!0}),Ev.defaultOptions=Ev.RestrictionError=Ev.Restricter=void 0;const Cv=Mv,Ov=function(e,t){function n(t){var n=_v(t,e,Dv);return n&&n.length>=2}return t?n(t.split(";")[0]):n};Ev.defaultOptions={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Nv extends Error{constructor(){super(...arguments),this.isRestriction=!0}}Ev.RestrictionError=Nv,"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});function Tv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Ev.Restricter=class{constructor(e,t){this.i18n=t,this.getOpts=()=>{const t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){const{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:s}=this.getOpts().restrictions;if(o&&t.length+1>o)throw new Nv(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(s){const t=s.some((t=>t.includes("/")?!!e.type&&Ov(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()));if(!t){const e=s.join(", ");throw new Nv(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(i&&null!=e.size){const n=t.reduce(((e,t)=>e+t.size),e.size);if(n>i)throw new Nv(this.i18n("exceedsSize",{size:Cv(i),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Nv(this.i18n("exceedsSize",{size:Cv(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Nv(this.i18n("inferiorSize",{size:Cv(r)}))}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(Object.keys(e).length<t)throw new Nv(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new Nv(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:n}=this.getOpts().restrictions,r=Object.prototype.hasOwnProperty,i=[];for(const t of n)r.call(e.meta,t)&&""!==e.meta[t]||i.push(t);return{missingFields:i,error:t}}};var Sv=0;function Av(e){return"__private_"+Sv+++"_"+e}const Iv=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function Lv(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,i)=>{""!==e&&r.push(e),t<i.length-1&&r.push(n)})))),r}
33
33
  /**
34
34
  * Takes a string with placeholder variables like `%{smart_count} file selected`
35
35
  * and replaces it with values from options `{smart_count: 5}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-editor",
3
- "version": "0.9.4",
3
+ "version": "0.9.6",
4
4
  "main": "./build/index.js",
5
5
  "types": "./types.d.ts",
6
6
  "description": "neetoEditor is the library that drives the rich text experience in all neeto products built at BigBinary",