@ckeditor/ckeditor5-operations-compressor
Version:
CKEditor 5 operations compressor for real-time collaboration.
23 lines • 4.05 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x4810(_0x253bd9,_0x4ee34e){const _0x5b1b5e=_0x5b1b();return _0x4810=function(_0x4810d7,_0x4ead30){_0x4810d7=_0x4810d7-0x149;let _0x50d3c1=_0x5b1b5e[_0x4810d7];return _0x50d3c1;},_0x4810(_0x253bd9,_0x4ee34e);}const _0x458674=_0x4810;(function(_0x5ef63c,_0x3b5b70){const _0x368768=_0x4810,_0x5308dc=_0x5ef63c();while(!![]){try{const _0x19cb75=-parseInt(_0x368768(0x157))/0x1+parseInt(_0x368768(0x15f))/0x2+parseInt(_0x368768(0x158))/0x3+parseInt(_0x368768(0x153))/0x4*(parseInt(_0x368768(0x15e))/0x5)+-parseInt(_0x368768(0x15a))/0x6*(-parseInt(_0x368768(0x162))/0x7)+-parseInt(_0x368768(0x14a))/0x8+-parseInt(_0x368768(0x14c))/0x9;if(_0x19cb75===_0x3b5b70)break;else _0x5308dc['push'](_0x5308dc['shift']());}catch(_0xc87251){_0x5308dc['push'](_0x5308dc['shift']());}}}(_0x5b1b,0x6d8e3));import _0x3603f7 from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x2966de,parsePositionAfterCompression as _0x2250f4}from'../utils.js';function _0x5b1b(){const _0x45f8a8=['_id','369825ylCvIs','622122CNSfLG','oldValue','4691532fuRZvs','Json','_deserializeOneOf','_operationName','1562655vKpNkK','570622uAaccY','compress','_serializeOneOf','7AEILBH','buffers','types','boolean','187160rXtzlT','push','6706611Xzrhlp','newValue','stringify','_protobufDescriptor','decompress','__className','shift','4BPlmgR','parse','Boolean'];_0x5b1b=function(){return _0x45f8a8;};return _0x5b1b();}export default class s extends _0x3603f7{[_0x458674(0x160)](_0x3b8aa4,_0x4bc19b){const _0x329aad=_0x458674,_0x485771=_0x4bc19b[_0x329aad(0x152)]();return this[_0x329aad(0x161)](_0x329aad(0x159),_0x485771),this[_0x329aad(0x161)](_0x329aad(0x14d),_0x485771),_0x2966de(_0x485771),_0x3b8aa4[_0x329aad(0x163)][_0x329aad(0x14b)](this[_0x329aad(0x14f)][_0x329aad(0x160)](_0x485771)),_0x3b8aa4[_0x329aad(0x164)][_0x329aad(0x14b)](this[_0x329aad(0x156)]),!0x0;}[_0x458674(0x150)](_0x13ed4b,_0x3e4232){const _0x13ffcf=_0x458674,{types:_0x672377,buffers:_0x3b9b7c}=_0x3e4232,_0x48e4f0=this[_0x13ffcf(0x14f)][_0x13ffcf(0x150)](_0x3b9b7c[_0x13ffcf(0x152)]());_0x672377[_0x13ffcf(0x152)](),this[_0x13ffcf(0x15c)](_0x13ffcf(0x159),_0x48e4f0),this[_0x13ffcf(0x15c)](_0x13ffcf(0x14d),_0x48e4f0),_0x2250f4(_0x48e4f0),_0x48e4f0[_0x13ffcf(0x151)]=this[_0x13ffcf(0x15d)],_0x13ed4b[_0x13ffcf(0x14b)](_0x48e4f0);}[_0x458674(0x161)](_0x165136,_0x14092a){const _0x6368c4=_0x458674,_0x53189b=_0x14092a[_0x165136];_0x6368c4(0x149)==typeof _0x53189b?_0x14092a[_0x165136+_0x6368c4(0x155)]=_0x53189b:_0x14092a[_0x165136+_0x6368c4(0x15b)]=JSON[_0x6368c4(0x14e)](_0x53189b);}[_0x458674(0x15c)](_0x5e53c5,_0x484e90){const _0x2cc62c=_0x458674,_0x3808e4=_0x5e53c5+_0x2cc62c(0x15b);_0x484e90[_0x3808e4]?(_0x484e90[_0x5e53c5]=JSON[_0x2cc62c(0x154)](_0x484e90[_0x3808e4]),delete _0x484e90[_0x3808e4]):(_0x484e90[_0x5e53c5]=_0x484e90[_0x5e53c5+_0x2cc62c(0x155)],delete _0x484e90[_0x5e53c5+_0x2cc62c(0x155)]);}}