@ckeditor/ckeditor5-operations-compressor
Version:
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 3.41 kB
JavaScript
/*
* Copyright (c) 2003-2026, 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 _0x3589(){const _0x506a86=['decompress','_protobufDescriptor','shift','93cLcpNx','11368350xlSfWS','push','18569848svxFVp','1709pFhosr','_id','129236CTLnAB','12709416SrxeEI','484zTsVpc','buffers','__className','3350MwxsUs','3260390YloQUt','2586FMxmNp','types','_operationName','27zDenXZ','compress'];_0x3589=function(){return _0x506a86;};return _0x3589();}const _0x5f3003=_0x392a;(function(_0x3cbbaf,_0xbb0708){const _0x44edbd=_0x392a,_0x229bbb=_0x3cbbaf();while(!![]){try{const _0x4b60ff=parseInt(_0x44edbd(0x1cd))/0x1*(-parseInt(_0x44edbd(0x1d1))/0x2)+parseInt(_0x44edbd(0x1c9))/0x3*(parseInt(_0x44edbd(0x1cf))/0x4)+-parseInt(_0x44edbd(0x1d4))/0x5*(parseInt(_0x44edbd(0x1c1))/0x6)+-parseInt(_0x44edbd(0x1ca))/0x7+parseInt(_0x44edbd(0x1d0))/0x8+-parseInt(_0x44edbd(0x1c4))/0x9*(parseInt(_0x44edbd(0x1d5))/0xa)+parseInt(_0x44edbd(0x1cc))/0xb;if(_0x4b60ff===_0xbb0708)break;else _0x229bbb['push'](_0x229bbb['shift']());}catch(_0x43eb11){_0x229bbb['push'](_0x229bbb['shift']());}}}(_0x3589,0xedc55));import{parsePositionBeforeCompression as _0x4fa890,parsePositionAfterCompression as _0x2c2620}from'../utils.js';function _0x392a(_0xf9f0f1,_0x498223){const _0x3589e6=_0x3589();return _0x392a=function(_0x392a7d,_0x8b9f33){_0x392a7d=_0x392a7d-0x1c1;let _0x56d6e6=_0x3589e6[_0x392a7d];return _0x56d6e6;},_0x392a(_0xf9f0f1,_0x498223);}export class OperationCompressor{[_0x5f3003(0x1ce)];[_0x5f3003(0x1c3)];[_0x5f3003(0x1c7)];constructor(_0x351def,_0x4fe6db,_0x3a92d5){const _0x1737ab=_0x5f3003;this[_0x1737ab(0x1ce)]=_0x351def,this[_0x1737ab(0x1c3)]=_0x4fe6db,this[_0x1737ab(0x1c7)]=_0x3a92d5;}[_0x5f3003(0x1c5)](_0x15c779,_0x23fb05){const _0x34d4a8=_0x5f3003,_0x332750=_0x23fb05[_0x34d4a8(0x1c8)]();return _0x4fa890(_0x332750),_0x15c779[_0x34d4a8(0x1d2)][_0x34d4a8(0x1cb)](this[_0x34d4a8(0x1c7)][_0x34d4a8(0x1c5)](_0x332750)),_0x15c779[_0x34d4a8(0x1c2)][_0x34d4a8(0x1cb)](this[_0x34d4a8(0x1ce)]),!0x0;}[_0x5f3003(0x1c6)](_0x574353,_0x1b70b2){const _0x4644cd=_0x5f3003;_0x1b70b2[_0x4644cd(0x1c2)][_0x4644cd(0x1c8)]();const _0x4bf0b7=this[_0x4644cd(0x1c7)][_0x4644cd(0x1c6)](_0x1b70b2[_0x4644cd(0x1d2)][_0x4644cd(0x1c8)]());_0x2c2620(_0x4bf0b7),_0x4bf0b7[_0x4644cd(0x1d3)]=this[_0x4644cd(0x1c3)],_0x574353[_0x4644cd(0x1cb)](_0x4bf0b7);}}