@ckeditor/ckeditor5-operations-compressor
Version:
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 4.01 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 _0xfca02c=_0x1f7b;function _0x1f7b(_0x274e41,_0x26546a){const _0x9ba1d0=_0x9ba1();return _0x1f7b=function(_0x1f7b46,_0x2aefa9){_0x1f7b46=_0x1f7b46-0xf5;let _0x21f7eb=_0x9ba1d0[_0x1f7b46];return _0x21f7eb;},_0x1f7b(_0x274e41,_0x26546a);}(function(_0x5959a6,_0x45b009){const _0x4ce702=_0x1f7b,_0x3ee9a1=_0x5959a6();while(!![]){try{const _0x500789=-parseInt(_0x4ce702(0x107))/0x1*(parseInt(_0x4ce702(0x108))/0x2)+parseInt(_0x4ce702(0x10b))/0x3*(-parseInt(_0x4ce702(0xfb))/0x4)+parseInt(_0x4ce702(0x112))/0x5+parseInt(_0x4ce702(0xfe))/0x6+-parseInt(_0x4ce702(0x102))/0x7+-parseInt(_0x4ce702(0x106))/0x8*(-parseInt(_0x4ce702(0x103))/0x9)+-parseInt(_0x4ce702(0x101))/0xa*(-parseInt(_0x4ce702(0xf9))/0xb);if(_0x500789===_0x45b009)break;else _0x3ee9a1['push'](_0x3ee9a1['shift']());}catch(_0x2e0ca0){_0x3ee9a1['push'](_0x3ee9a1['shift']());}}}(_0x9ba1,0x9325e));function _0x9ba1(){const _0x2133fa=['10rbxkEW','8060486MBixbe','531slwGWs','decompress','_splitCurrent','79976csnYUK','3OUOhtk','713174NhizRm','buffers','_combineNext','585213JyhHVS','compress','root','wasUndone','howMany','_context','__className','3372925SwVCfB','$graveyard','_compareOperations','_getCompressorByName','_compressSingleOperation','16733651GkzOeT','_decompressSingleOperation','4AGiaTa','sourcePosition','_checkOperation','1400394ARcCTi','targetPosition','MoveOperation'];_0x9ba1=function(){return _0x2133fa;};return _0x9ba1();}import _0x278bc9 from'./actioncompressor.js';import{arePositionsEqual as _0x226de1}from'../utils.js';import{cloneDeep as _0x374353}from'es-toolkit/compat';export default class h extends _0x278bc9{[_0xfca02c(0x10a)](_0x96266c,_0x183761){const _0x54654a=_0xfca02c;return _0x183761[_0x54654a(0x10f)]++,_0x183761;}[_0xfca02c(0x105)](_0x3ee97c){const _0x26ccb2=_0xfca02c,_0x36a427=_0x374353(_0x3ee97c);return _0x36a427[_0x26ccb2(0x10f)]=0x1,_0x3ee97c[_0x26ccb2(0x10f)]--,_0x36a427;}[_0xfca02c(0xf6)](_0x1e27ac,_0x2845ec){const _0x591bb4=_0xfca02c;return!(!this[_0x591bb4(0xfd)](_0x1e27ac)||!this[_0x591bb4(0xfd)](_0x2845ec))&&(_0x226de1(_0x1e27ac[_0x591bb4(0xfc)],_0x2845ec[_0x591bb4(0xfc)])&&_0x226de1(_0x1e27ac[_0x591bb4(0xff)],_0x2845ec[_0x591bb4(0xff)]));}[_0xfca02c(0xf8)](_0x28be91){const _0x51ac2d=_0xfca02c,_0x3465d0={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x51ac2d(0x110)][_0x51ac2d(0xf7)](_0x51ac2d(0x100))[_0x51ac2d(0x10c)](_0x3465d0,[_0x28be91]),_0x3465d0[_0x51ac2d(0x109)][0x0];}[_0xfca02c(0xfa)](_0x504d97){const _0x4107fa=_0xfca02c,_0x24af5a=[];return this[_0x4107fa(0x110)][_0x4107fa(0xf7)](_0x4107fa(0x100))[_0x4107fa(0x104)](_0x24af5a,_0x504d97),_0x24af5a[0x0];}[_0xfca02c(0xfd)](_0x49ec07){const _0x5486f7=_0xfca02c;return _0x5486f7(0x100)==_0x49ec07[_0x5486f7(0x111)]&&_0x5486f7(0xf5)==_0x49ec07[_0x5486f7(0xff)][_0x5486f7(0x10d)]&&0x1==_0x49ec07[_0x5486f7(0x10f)]&&!_0x49ec07[_0x5486f7(0x10e)];}}