@ckeditor/ckeditor5-collaboration-core
Version:
Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.
23 lines • 4.19 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x3e95(){const _0x25061a=['length','1fxJHtF','pop','startsWith','slice','24rhJBys','103048vPqOCf','23530yyDdhx','16173bLoeTc','6485633ZjTsTB','5594855gSrFZw','match','indexOf','1888622QEXjNV','push','substring','...','join','replace','9819342QtpHwJ','split','5672056CFJsME'];_0x3e95=function(){return _0x25061a;};return _0x3e95();}const _0x4039f3=_0x4ec5;(function(_0x50e3f5,_0x46860b){const _0x54363d=_0x4ec5,_0x22f6ad=_0x50e3f5();while(!![]){try{const _0x1cb690=parseInt(_0x54363d(0x1c5))/0x1*(parseInt(_0x54363d(0x1bb))/0x2)+parseInt(_0x54363d(0x1c9))/0x3*(-parseInt(_0x54363d(0x1ca))/0x4)+parseInt(_0x54363d(0x1b8))/0x5+parseInt(_0x54363d(0x1c1))/0x6+parseInt(_0x54363d(0x1b7))/0x7+parseInt(_0x54363d(0x1c3))/0x8+parseInt(_0x54363d(0x1b6))/0x9*(-parseInt(_0x54363d(0x1cb))/0xa);if(_0x1cb690===_0x46860b)break;else _0x22f6ad['push'](_0x22f6ad['shift']());}catch(_0x3414a6){_0x22f6ad['push'](_0x22f6ad['shift']());}}}(_0x3e95,0xdbf40));function _0x4ec5(_0x4f9276,_0x53baa7){const _0x3e9504=_0x3e95();return _0x4ec5=function(_0x4ec5df,_0x343467){_0x4ec5df=_0x4ec5df-0x1b6;let _0x1b306e=_0x3e9504[_0x4ec5df];return _0x1b306e;},_0x4ec5(_0x4f9276,_0x53baa7);}export default function Z(_0x10376e,{limit:_0x538203,suffix:_0x11d222=_0x4039f3(0x1be)}){const _0x3abbcb=_0x4039f3,_0x5adba6=[];let _0x5d83bb=0x0;const _0x28c6c2=_0x10376e[_0x3abbcb(0x1c0)](/</g,'\x0a<')[_0x3abbcb(0x1c0)](/>/g,'>\x0a')[_0x3abbcb(0x1c0)](/^\n/g,'')[_0x3abbcb(0x1c0)](/\n$/g,'')[_0x3abbcb(0x1c2)]('\x0a');for(let _0x1510f4=0x0;_0x1510f4<_0x28c6c2[_0x3abbcb(0x1c4)];_0x1510f4++){let _0x3d6f0c=_0x28c6c2[_0x1510f4];const _0x51eceb=$(_0x3d6f0c);if(_0x3d6f0c[_0x3abbcb(0x1c7)]('<')){if(_0x5d83bb>=_0x538203){const _0x2e0443=_0x3d6f0c[_0x3abbcb(0x1b9)](/[a-zA-Z]+/);if(!_0x2e0443){_0x28c6c2[_0x1510f4]='';continue;}const _0x136c57=_0x2e0443[0x0];_0x3d6f0c[_0x3abbcb(0x1c7)]('</')?(_0x5adba6[_0x3abbcb(0x1c4)]&&(_0x3d6f0c=''),_0x5adba6[_0x3abbcb(0x1c6)]()):(_0x5adba6[_0x3abbcb(0x1bc)](_0x136c57),_0x3d6f0c='');}}else{if(_0x5d83bb>=_0x538203)_0x3d6f0c='';else{if(_0x5d83bb+_0x51eceb[_0x3abbcb(0x1c4)]>=_0x538203){let _0x393761=_0x538203-_0x5d83bb;if('\x20'===_0x51eceb[_0x393761-0x1])_0x393761--;else{const _0x4f574c=_0x51eceb[_0x3abbcb(0x1c8)](_0x393761)[_0x3abbcb(0x1ba)]('\x20');-0x1!==_0x4f574c?_0x393761+=_0x4f574c:_0x393761=_0x3d6f0c[_0x3abbcb(0x1c4)];}_0x3d6f0c=_0x51eceb[_0x3abbcb(0x1c8)](0x0,_0x393761)[_0x3abbcb(0x1bf)]('')+_0x11d222,_0x5d83bb=_0x538203;}else _0x5d83bb+=_0x51eceb[_0x3abbcb(0x1c4)];}}_0x28c6c2[_0x1510f4]=_0x3d6f0c;}return _0x28c6c2[_0x3abbcb(0x1bf)]('\x0a')[_0x3abbcb(0x1c0)](/\n/g,'');}function $(_0x11a0e0){const _0x25627c=_0x4039f3,_0x2e9dff=[];for(let _0x465677=0x0;_0x465677<_0x11a0e0[_0x25627c(0x1c4)];_0x465677++){const _0x575297=_0x11a0e0[_0x25627c(0x1bd)](_0x465677)[_0x25627c(0x1b9)](/^&[a-z0-9#]+;/);if(_0x575297){const _0x2fa73a=_0x575297[0x0];_0x2e9dff[_0x25627c(0x1bc)](_0x2fa73a),_0x465677+=_0x2fa73a[_0x25627c(0x1c4)]-0x1;}else _0x2e9dff[_0x25627c(0x1bc)](_0x11a0e0[_0x465677]);}return _0x2e9dff;}