@ckeditor/ckeditor5-operations-compressor
Version:
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 5 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 _0x1b6893=_0x5785;function _0x5785(_0x4f5719,_0x2e56c9){const _0x5189bc=_0x5189();return _0x5785=function(_0x5785e0,_0x378078){_0x5785e0=_0x5785e0-0x139;let _0x2a03b6=_0x5189bc[_0x5785e0];return _0x2a03b6;},_0x5785(_0x4f5719,_0x2e56c9);}function _0x5189(){const _0x4821b9=['toNone','buffers','stickiness','_compareOperations','shift','oldRange','startsWith','_id','MarkerOperation','types','4888884kNwoMq','split','push','newRange','_decompressSingleOperation','_compressSingleOperation','2404917ApXLXG','32LabfRH','2924372IgIBol','start','2091519ZtyDew','271387fPwBmP','user:','end','compress','name','27443600eVbbEf','2zGysWZ','_context','__className','5SLxNRE','_getCompressorByName','decompress','1444878pCdYZM','user:position:'];_0x5189=function(){return _0x4821b9;};return _0x5189();}(function(_0x2fc282,_0x587a32){const _0x1c1081=_0x5785,_0x923eda=_0x2fc282();while(!![]){try{const _0x36d706=-parseInt(_0x1c1081(0x155))/0x1*(parseInt(_0x1c1081(0x15b))/0x2)+-parseInt(_0x1c1081(0x150))/0x3+-parseInt(_0x1c1081(0x152))/0x4*(-parseInt(_0x1c1081(0x13b))/0x5)+-parseInt(_0x1c1081(0x13e))/0x6+-parseInt(_0x1c1081(0x14a))/0x7+-parseInt(_0x1c1081(0x151))/0x8*(parseInt(_0x1c1081(0x154))/0x9)+parseInt(_0x1c1081(0x15a))/0xa;if(_0x36d706===_0x587a32)break;else _0x923eda['push'](_0x923eda['shift']());}catch(_0xe0e3d8){_0x923eda['push'](_0x923eda['shift']());}}}(_0x5189,0x82486));import _0x3b25f4 from'./actioncompressor.js';import{arePositionsEqual as _0x5a00f9}from'../utils.js';import{cloneDeep as _0x1fe513}from'es-toolkit/compat';export default class f extends _0x3b25f4{[_0x1b6893(0x158)](_0x1bb6cb,_0x175238){const _0x3ccb6a=_0x1b6893;if(!this[_0x3ccb6a(0x143)](_0x175238[0x0],_0x175238[0x1]))return!0x1;const _0x2cfa3c=_0x175238[_0x3ccb6a(0x144)]();return _0x2cfa3c[_0x3ccb6a(0x145)]=null,_0x2cfa3c[_0x3ccb6a(0x14d)]&&_0x5a00f9(_0x2cfa3c[_0x3ccb6a(0x14d)][_0x3ccb6a(0x153)],_0x2cfa3c[_0x3ccb6a(0x14d)][_0x3ccb6a(0x157)])&&(_0x2cfa3c[_0x3ccb6a(0x14d)][_0x3ccb6a(0x157)]=null),_0x175238[_0x3ccb6a(0x144)](),_0x1bb6cb[_0x3ccb6a(0x149)][_0x3ccb6a(0x14c)](this[_0x3ccb6a(0x147)]),_0x1bb6cb[_0x3ccb6a(0x149)][_0x3ccb6a(0x14c)](0x0),_0x1bb6cb[_0x3ccb6a(0x141)][_0x3ccb6a(0x14c)](this[_0x3ccb6a(0x14f)](_0x2cfa3c)),!0x0;}[_0x1b6893(0x13d)](_0x29a208,_0x381549){const _0x35260c=_0x1b6893,_0x5e242e=this[_0x35260c(0x14e)](_0x381549);_0x5e242e[_0x35260c(0x14d)]&&!_0x5e242e[_0x35260c(0x14d)][_0x35260c(0x157)]&&(_0x5e242e[_0x35260c(0x14d)][_0x35260c(0x157)]=_0x1fe513(_0x5e242e[_0x35260c(0x14d)][_0x35260c(0x153)]));const _0x5594bd=_0x1fe513(_0x5e242e);_0x5594bd[_0x35260c(0x14d)]&&(_0x5594bd[_0x35260c(0x14d)][_0x35260c(0x153)][_0x35260c(0x142)]=_0x35260c(0x140),_0x5594bd[_0x35260c(0x14d)][_0x35260c(0x157)]=_0x1fe513(_0x5594bd[_0x35260c(0x14d)][_0x35260c(0x153)])),_0x5594bd[_0x35260c(0x159)]=_0x35260c(0x13f)+_0x5594bd[_0x35260c(0x159)][_0x35260c(0x14b)](':')[0x2],_0x381549[_0x35260c(0x149)][_0x35260c(0x144)](),_0x29a208[_0x35260c(0x14c)](_0x5e242e),_0x29a208[_0x35260c(0x14c)](_0x5594bd);}[_0x1b6893(0x14f)](_0x405ced){const _0x509d93=_0x1b6893,_0x1adf26={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x509d93(0x139)][_0x509d93(0x13c)](_0x509d93(0x148))[_0x509d93(0x158)](_0x1adf26,[_0x405ced]),_0x1adf26[_0x509d93(0x141)][0x0];}[_0x1b6893(0x14e)](_0x2dbccf){const _0x5d3010=_0x1b6893,_0x30044f=[];return this[_0x5d3010(0x139)][_0x5d3010(0x13c)](_0x5d3010(0x148))[_0x5d3010(0x13d)](_0x30044f,_0x2dbccf),_0x30044f[0x0];}[_0x1b6893(0x143)](_0x44e57d,_0x55e118){const _0x140e2f=_0x1b6893;return!(!_0x44e57d||!_0x55e118)&&(_0x140e2f(0x148)==_0x44e57d[_0x140e2f(0x13a)]&&_0x140e2f(0x148)==_0x55e118[_0x140e2f(0x13a)]&&!(!_0x44e57d[_0x140e2f(0x159)][_0x140e2f(0x146)](_0x140e2f(0x156))||!_0x55e118[_0x140e2f(0x159)][_0x140e2f(0x146)](_0x140e2f(0x156))||_0x44e57d[_0x140e2f(0x159)]==_0x55e118[_0x140e2f(0x159)]));}}