UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 3.33 kB
/* * 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 _0x4259(_0x29fdd5,_0x11b0b1){const _0x1c161c=_0x1c16();return _0x4259=function(_0x4259f3,_0x470a3b){_0x4259f3=_0x4259f3-0x13e;let _0x2d8393=_0x1c161c[_0x4259f3];return _0x2d8393;},_0x4259(_0x29fdd5,_0x11b0b1);}const _0x50b193=_0x4259;(function(_0x1f09cb,_0xff87b1){const _0x4c1ce7=_0x4259,_0x218fe0=_0x1f09cb();while(!![]){try{const _0x5c8a39=parseInt(_0x4c1ce7(0x140))/0x1*(parseInt(_0x4c1ce7(0x14e))/0x2)+-parseInt(_0x4c1ce7(0x144))/0x3+-parseInt(_0x4c1ce7(0x13e))/0x4+-parseInt(_0x4c1ce7(0x14b))/0x5+-parseInt(_0x4c1ce7(0x143))/0x6+parseInt(_0x4c1ce7(0x141))/0x7+-parseInt(_0x4c1ce7(0x148))/0x8*(-parseInt(_0x4c1ce7(0x13f))/0x9);if(_0x5c8a39===_0xff87b1)break;else _0x218fe0['push'](_0x218fe0['shift']());}catch(_0x30b348){_0x218fe0['push'](_0x218fe0['shift']());}}}(_0x1c16,0xb6cfc));import{parsePositionBeforeCompression as _0x2383b3,parsePositionAfterCompression as _0x302b56}from'../utils.js';export class OperationCompressor{[_0x50b193(0x147)];[_0x50b193(0x14c)];[_0x50b193(0x142)];constructor(_0x285160,_0xc3f907,_0x23c538){const _0x2e1205=_0x50b193;this[_0x2e1205(0x147)]=_0x285160,this[_0x2e1205(0x14c)]=_0xc3f907,this[_0x2e1205(0x142)]=_0x23c538;}[_0x50b193(0x14a)](_0x1bd212,_0x612435){const _0x1cca7a=_0x50b193,_0x301d6f=_0x612435[_0x1cca7a(0x14f)]();return _0x2383b3(_0x301d6f),_0x1bd212[_0x1cca7a(0x145)][_0x1cca7a(0x150)](this[_0x1cca7a(0x142)][_0x1cca7a(0x14a)](_0x301d6f)),_0x1bd212[_0x1cca7a(0x146)][_0x1cca7a(0x150)](this[_0x1cca7a(0x147)]),!0x0;}[_0x50b193(0x14d)](_0x10c791,_0x3be3ec){const _0x12a769=_0x50b193;_0x3be3ec[_0x12a769(0x146)][_0x12a769(0x14f)]();const _0x37fe84=this[_0x12a769(0x142)][_0x12a769(0x14d)](_0x3be3ec[_0x12a769(0x145)][_0x12a769(0x14f)]());_0x302b56(_0x37fe84),_0x37fe84[_0x12a769(0x149)]=this[_0x12a769(0x14c)],_0x10c791[_0x12a769(0x150)](_0x37fe84);}}function _0x1c16(){const _0x22fd49=['buffers','types','_id','3411416Wtfaab','__className','compress','3843805yhVTXI','_operationName','decompress','60052BSOhPm','shift','push','3225112vvMQci','72JsoKdH','29bpzsAk','2169398HOpmKN','_protobufDescriptor','8214732UHfsOq','2697381VpfAgC'];_0x1c16=function(){return _0x22fd49;};return _0x1c16();}