@ckeditor/ckeditor5-operations-compressor
Version:
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 4.24 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x1433ea=_0x32da;(function(_0xf61cdf,_0x1d977b){const _0xd948f0=_0x32da,_0x54e7bb=_0xf61cdf();while(!![]){try{const _0x583ab8=parseInt(_0xd948f0(0x1d9))/0x1*(parseInt(_0xd948f0(0x1e1))/0x2)+parseInt(_0xd948f0(0x1da))/0x3+-parseInt(_0xd948f0(0x1de))/0x4*(parseInt(_0xd948f0(0x1cd))/0x5)+parseInt(_0xd948f0(0x1d2))/0x6*(parseInt(_0xd948f0(0x1db))/0x7)+-parseInt(_0xd948f0(0x1cc))/0x8+parseInt(_0xd948f0(0x1e5))/0x9+-parseInt(_0xd948f0(0x1e4))/0xa*(-parseInt(_0xd948f0(0x1cb))/0xb);if(_0x583ab8===_0x1d977b)break;else _0x54e7bb['push'](_0x54e7bb['shift']());}catch(_0x4a528a){_0x54e7bb['push'](_0x54e7bb['shift']());}}}(_0x44fd,0xc2e10));import _0x4435ff from'./actioncompressor.js';import{arePositionsEqual as _0x3a9146,getPositionShiftedBy as _0x4f1f0e}from'../utils.js';import{cloneDeep as _0x29d8c6}from'es-toolkit/compat';function _0x44fd(){const _0x4a77ae=['__className','_decompressSingleOperation','7180BtiIEw','_combineNext','_context','34330TxdgZA','8469414nrJOHu','sourcePosition','$graveyard','wasUndone','506kLRedg','8666000xUgLum','1545140bemMss','_compressSingleOperation','targetPosition','root','_checkOperation','29658ctzDEl','_splitCurrent','_compareOperations','buffers','howMany','_getCompressorByName','MoveOperation','134Ogyozc','4219989ecWLuQ','623psThIB','compress','decompress','20IinzCV'];_0x44fd=function(){return _0x4a77ae;};return _0x44fd();}function _0x32da(_0x797dbe,_0x46b7d0){const _0x44fda=_0x44fd();return _0x32da=function(_0x32daee,_0xff9e8e){_0x32daee=_0x32daee-0x1c8;let _0x5505c3=_0x44fda[_0x32daee];return _0x5505c3;},_0x32da(_0x797dbe,_0x46b7d0);}export default class c extends _0x4435ff{[_0x1433ea(0x1e2)](_0x9f1fd8,_0x2de797){const _0x3b4abe=_0x1433ea;return _0x2de797[_0x3b4abe(0x1d6)]++,_0x2de797[_0x3b4abe(0x1c8)]=_0x29d8c6(_0x9f1fd8[_0x3b4abe(0x1c8)]),_0x2de797;}[_0x1433ea(0x1d3)](_0x5d7f0c){const _0x364d6f=_0x1433ea,_0xf084a6=_0x29d8c6(_0x5d7f0c);return _0x5d7f0c[_0x364d6f(0x1d6)]--,_0xf084a6[_0x364d6f(0x1d6)]=0x1,_0xf084a6[_0x364d6f(0x1c8)]=_0x4f1f0e(_0xf084a6[_0x364d6f(0x1c8)],_0x5d7f0c[_0x364d6f(0x1d6)]),_0xf084a6;}[_0x1433ea(0x1d4)](_0x5d69ae,_0x5626bc){const _0x1ee29f=_0x1433ea;return!(!this[_0x1ee29f(0x1d1)](_0x5d69ae)||!this[_0x1ee29f(0x1d1)](_0x5626bc))&&(_0x3a9146(_0x4f1f0e(_0x5d69ae[_0x1ee29f(0x1c8)],-0x1),_0x5626bc[_0x1ee29f(0x1c8)])&&_0x3a9146(_0x5d69ae[_0x1ee29f(0x1cf)],_0x5626bc[_0x1ee29f(0x1cf)]));}[_0x1433ea(0x1ce)](_0x4159cc){const _0x17cab5=_0x1433ea,_0x50f798={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x17cab5(0x1e3)][_0x17cab5(0x1d7)](_0x17cab5(0x1d8))[_0x17cab5(0x1dc)](_0x50f798,[_0x4159cc]),_0x50f798[_0x17cab5(0x1d5)][0x0];}[_0x1433ea(0x1e0)](_0x48d193){const _0x678b22=_0x1433ea,_0x598f3c=[];return this[_0x678b22(0x1e3)][_0x678b22(0x1d7)](_0x678b22(0x1d8))[_0x678b22(0x1dd)](_0x598f3c,_0x48d193),_0x598f3c[0x0];}[_0x1433ea(0x1d1)](_0x1a28a6){const _0x3970bb=_0x1433ea;return _0x3970bb(0x1d8)==_0x1a28a6[_0x3970bb(0x1df)]&&_0x3970bb(0x1c9)==_0x1a28a6[_0x3970bb(0x1cf)][_0x3970bb(0x1d0)]&&0x1==_0x1a28a6[_0x3970bb(0x1d6)]&&!_0x1a28a6[_0x3970bb(0x1ca)];}}