PageSourceSearch

https://truliki.cc/js/bs/quill_editor/mentions.min.js?_v=760a75de

js truliki.cc collected 2026-10-05 07:03:39 UTC 6,014 bytes, 15 lines download raw bytes

1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var c=0;return function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var c="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(c)return c.call(a);if("number"==typeof a.length)return $jscomp.arrayIterator(a);throw Error(String(a)+" is not an iterable or ArrayLike");};
2$jscomp.arrayFromIterator=function(a){for(var c,b=[];!(c=a.next()).done;)b.push(c.value);return b};$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
3$jscomp.objectCreate=$jscomp.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(a){var c=function(){};c.prototype=a;return new c};$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){if(a==Array.prototype||a==Object.prototype)return a;a[c]=b.value;return a};
4$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<a.length;++c){var b=a[c];if(b&&b.Math==Math)return b}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
5$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,c,b){if(!b||null!=a){b=$jscomp.propertyToPolyfillSymbol[c];if(null==b)return a[c];b=a[b];return void 0!==b?b:a[c]}};
5$jscomp.polyfill=function(a,c,b,d){c&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,c,b,d):$jscomp.polyfillUnisolated(a,c,b,d))};
6$jscomp.polyfillUnisolated=function(a,c,b,d){b=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];if(!(e in b))return;b=b[e]}a=a[a.length-1];d=b[a];c=c(d);c!=d&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})};
7$jscomp.polyfillIsolated=function(a,c,b,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var g=e[f];if(!(g in d))return;d=d[g]}e=e[e.length-1];b=$jscomp.IS_SYMBOL_NATIVE&&"es6"===b?d[e]:null;c=c(b);null!=c&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:c}):c!==b&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(b=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?
8$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+b+"$"+e),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:c})))};
9$jscomp.getConstructImplementation=function(){function a(){function b(){}new b;Reflect.construct(b,[],function(){});return new b instanceof b}if($jscomp.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var c=Reflect.construct;return function(b,d,e){b=c(b,d);e&&Reflect.setPrototypeOf(b,e.prototype);return b}}return function(b,d,e){void 0===e&&(e=b);e=$jscomp.objectCreate(e.prototype||Object.prototype);return Function.prototype.apply.call(b,e,d)||
10e}};$jscomp.construct={valueOf:$jscomp.getConstructImplementation}.valueOf();$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},c={};try{return c.__proto__=a,c.a}catch(b){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,c){a.__proto__=c;if(a.__proto__!==c)throw new TypeError(a+" is not extensible");return a}:null;
11$jscomp.inherits=function(a,c){a.prototype=$jscomp.objectCreate(c.prototype);a.prototype.constructor=a;if($jscomp.setPrototypeOf){var b=$jscomp.setPrototypeOf;b(a,c)}else for(b in c)if("prototype"!=b)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(c,b);d&&Object.defineProperty(a,b,d)}else a[b]=c[b];a.superClass_=c.prototype};Quill.register("modules/mentions",quillMention);
12var MentionBlot=Quill["import"]("blots/mention"),XFMentionBlot=function(){return MentionBlot.apply(this,arguments)||this};$jscomp.inherits(XFMentionBlot,MentionBlot);XFMentionBlot.render=function(a){var c=document.createElement("span");c.classList.add("mention");c.innerText=a.id;return c};XFMentionBlot.blotName="mention";Quill.register(XFMentionBlot);
13var XFQuillMentions={allowedChars:/^[A-Za-z\s\u00c5\u00c4\u00d6\u00e5\u00e4\u00f60-9_-]*$/,mentionDenotationChars:["@"],mentionListClass:"autoCompleteList ql-mention-list",positioningStrategy:"fixed",blotName:"mention",source:function(a,c,b){2>a.length||XF.ajax("GET",XF.getAutoCompleteUrl(),{q:a},function(d){c(d.results,a)})},renderItem:function(a,c){var b=document.createElement("span");b.innerText=a.text;if(a.iconHtml){var d=document.createElement("span");d.classList.add("autoCompleteList-icon");
14d.innerHTML=a.iconHtml;b.appendChild(d)}return b},onOpen:function(){if(XF.isRtl()){var a=this.mentionContainer,c=this.quill.container.getBoundingClientRect(),b=this.quill.getBounds(this.mentionCharPos);a.style.left=c.left+b.left-a.offsetWidth+"px"}}};
15Quill.register("modules/mentionsMatcher",function(a,c){a.clipboard.addMatcher("a.username",function(b,d){var e=b.getAttribute("data-username");if(!e)return(new Delta).insert(b.innerText);var f=XFQuillMentions.mentionDenotationChars[0];e={mention:{denotationChar:f,id:e.replace(new RegExp("^"+f),"")}};return(new Delta).insert(e)});a.root.addEventListener("touchstart",function(b){b=b.target.closest("span.mention")||b.target;b.matches("span.mention")&&b.remove()})});

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