var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,c){a.raw=c;return a};Quill.register("modules/mentions",quillMention); var XFQuillMentions={allowedChars:/^[A-Za-z\s\u00c5\u00c4\u00d6\u00e5\u00e4\u00f60-9_-]*$/,mentionDenotationChars:["@"],mentionListClass:"autoCompleteList ql-mention-list",positioningStrategy:"fixed",source:function(a,c,b){2>a.length||XF.ajax("GET",XF.getAutoCompleteUrl(),{q:a},function(e){c(e.results,a)})},renderItem:function(a,c){a.value=a.text;var b=a.iconHtml?''+a.iconHtml+"":"";return b+=a.text}}; Quill.register("modules/mentionsMatcher",function(a,c){a.clipboard.addMatcher("a.username",function(b,e){var d=b.getAttribute("data-username");if(!d)return(new Delta).insert(b.innerText);var f=XFQuillMentions.mentionDenotationChars[0];d={mention:{denotationChar:f,value:d.replace(new RegExp("^"+f),"")}};return(new Delta).insert(d)});a.root.addEventListener("touchstart",function(b){b=b.target.closest("span.mention")||b.target;b.matches("span.mention")&&b.remove()})});