@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 _0x56fff1=_0x58f4;(function(_0x9e1d4b,_0x241420){const _0x34908c=_0x58f4,_0x3400f2=_0x9e1d4b();while(!![]){try{const _0x442054=-parseInt(_0x34908c(0x16f))/0x1*(-parseInt(_0x34908c(0x185))/0x2)+parseInt(_0x34908c(0x171))/0x3+parseInt(_0x34908c(0x181))/0x4*(parseInt(_0x34908c(0x17c))/0x5)+-parseInt(_0x34908c(0x17a))/0x6*(parseInt(_0x34908c(0x183))/0x7)+-parseInt(_0x34908c(0x18a))/0x8+parseInt(_0x34908c(0x176))/0x9+-parseInt(_0x34908c(0x179))/0xa;if(_0x442054===_0x241420)break;else _0x3400f2['push'](_0x3400f2['shift']());}catch(_0x1aaaf7){_0x3400f2['push'](_0x3400f2['shift']());}}}(_0x3e96,0x51c65));import _0x33aa21 from'./actioncompressor.js';import{arePositionsEqual as _0x476a87}from'../utils.js';function _0x58f4(_0x3a2718,_0x1e7650){const _0x3e9627=_0x3e96();return _0x58f4=function(_0x58f4f3,_0x23a5e8){_0x58f4f3=_0x58f4f3-0x169;let _0x3e5dd1=_0x3e9627[_0x58f4f3];return _0x3e5dd1;},_0x58f4(_0x3a2718,_0x1e7650);}function _0x3e96(){const _0x5e1a63=['_compressSingleOperation','oldRange','startsWith','toNone','2606067YKcGLz','user:','types','3690150eLDTMt','522jHpaQS','push','25IbwFpt','__className','_getCompressorByName','stickiness','name','124332kYClsZ','_compareOperations','3521jrStYH','start','2UAtFhI','newRange','_context','user:position:','_decompressSingleOperation','2488328NdbDQA','shift','compress','buffers','decompress','_id','MarkerOperation','split','393149RNTAKE','end','661917gCyxRJ'];_0x3e96=function(){return _0x5e1a63;};return _0x3e96();}import{cloneDeep as _0x296531}from'es-toolkit/compat';export default class f extends _0x33aa21{[_0x56fff1(0x169)](_0x920d0f,_0xd55b34){const _0x31ee63=_0x56fff1;if(!this[_0x31ee63(0x182)](_0xd55b34[0x0],_0xd55b34[0x1]))return!0x1;const _0x474aa7=_0xd55b34[_0x31ee63(0x18b)]();return _0x474aa7[_0x31ee63(0x173)]=null,_0x474aa7[_0x31ee63(0x186)]&&_0x476a87(_0x474aa7[_0x31ee63(0x186)][_0x31ee63(0x184)],_0x474aa7[_0x31ee63(0x186)][_0x31ee63(0x170)])&&(_0x474aa7[_0x31ee63(0x186)][_0x31ee63(0x170)]=null),_0xd55b34[_0x31ee63(0x18b)](),_0x920d0f[_0x31ee63(0x178)][_0x31ee63(0x17b)](this[_0x31ee63(0x16c)]),_0x920d0f[_0x31ee63(0x178)][_0x31ee63(0x17b)](0x0),_0x920d0f[_0x31ee63(0x16a)][_0x31ee63(0x17b)](this[_0x31ee63(0x172)](_0x474aa7)),!0x0;}[_0x56fff1(0x16b)](_0x2957a8,_0x459710){const _0x2128e4=_0x56fff1,_0x5e093b=this[_0x2128e4(0x189)](_0x459710);_0x5e093b[_0x2128e4(0x186)]&&!_0x5e093b[_0x2128e4(0x186)][_0x2128e4(0x170)]&&(_0x5e093b[_0x2128e4(0x186)][_0x2128e4(0x170)]=_0x296531(_0x5e093b[_0x2128e4(0x186)][_0x2128e4(0x184)]));const _0x59ef12=_0x296531(_0x5e093b);_0x59ef12[_0x2128e4(0x186)]&&(_0x59ef12[_0x2128e4(0x186)][_0x2128e4(0x184)][_0x2128e4(0x17f)]=_0x2128e4(0x175),_0x59ef12[_0x2128e4(0x186)][_0x2128e4(0x170)]=_0x296531(_0x59ef12[_0x2128e4(0x186)][_0x2128e4(0x184)])),_0x59ef12[_0x2128e4(0x180)]=_0x2128e4(0x188)+_0x59ef12[_0x2128e4(0x180)][_0x2128e4(0x16e)](':')[0x2],_0x459710[_0x2128e4(0x178)][_0x2128e4(0x18b)](),_0x2957a8[_0x2128e4(0x17b)](_0x5e093b),_0x2957a8[_0x2128e4(0x17b)](_0x59ef12);}[_0x56fff1(0x172)](_0x297a17){const _0xc89127=_0x56fff1,_0x1c040f={'types':[],'buffers':[],'baseVersion':0x0};return this[_0xc89127(0x187)][_0xc89127(0x17e)](_0xc89127(0x16d))[_0xc89127(0x169)](_0x1c040f,[_0x297a17]),_0x1c040f[_0xc89127(0x16a)][0x0];}[_0x56fff1(0x189)](_0x387aab){const _0x2f255e=_0x56fff1,_0x157bd5=[];return this[_0x2f255e(0x187)][_0x2f255e(0x17e)](_0x2f255e(0x16d))[_0x2f255e(0x16b)](_0x157bd5,_0x387aab),_0x157bd5[0x0];}[_0x56fff1(0x182)](_0x262d78,_0xc48d3c){const _0x108a1a=_0x56fff1;return!(!_0x262d78||!_0xc48d3c)&&(_0x108a1a(0x16d)==_0x262d78[_0x108a1a(0x17d)]&&_0x108a1a(0x16d)==_0xc48d3c[_0x108a1a(0x17d)]&&!(!_0x262d78[_0x108a1a(0x180)][_0x108a1a(0x174)](_0x108a1a(0x177))||!_0xc48d3c[_0x108a1a(0x180)][_0x108a1a(0x174)](_0x108a1a(0x177))||_0x262d78[_0x108a1a(0x180)]==_0xc48d3c[_0x108a1a(0x180)]));}}