UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 4.05 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x2ea751=_0x1f78;(function(_0x21b768,_0x2f7f6e){const _0x24e666=_0x1f78,_0x96816e=_0x21b768();while(!![]){try{const _0x12a411=-parseInt(_0x24e666(0xa7))/0x1*(parseInt(_0x24e666(0x9a))/0x2)+parseInt(_0x24e666(0xac))/0x3+parseInt(_0x24e666(0x9e))/0x4+-parseInt(_0x24e666(0xa4))/0x5+-parseInt(_0x24e666(0xb0))/0x6*(parseInt(_0x24e666(0xa9))/0x7)+parseInt(_0x24e666(0xa1))/0x8*(parseInt(_0x24e666(0xa8))/0x9)+-parseInt(_0x24e666(0xa2))/0xa;if(_0x12a411===_0x2f7f6e)break;else _0x96816e['push'](_0x96816e['shift']());}catch(_0xc60095){_0x96816e['push'](_0x96816e['shift']());}}}(_0x50f9,0xce601));import _0x189ad5 from'./operationcompressor.js';function _0x50f9(){const _0x1d8b26=['_serializeOneOf','stringify','decompress','compress','311306vIVaju','oldValue','shift','buffers','3659804lxCNJZ','_id','Boolean','114248zUtHcY','5162980eMaQxM','__className','1858760UaaYCS','_deserializeOneOf','push','5ntXtVt','585kPtXfG','14IGccoQ','boolean','newValue','4495206qKIcdi','types','_protobufDescriptor','Json','2489970QlGfxV','parse','_operationName'];_0x50f9=function(){return _0x1d8b26;};return _0x50f9();}import{parsePositionBeforeCompression as _0x40e79e,parsePositionAfterCompression as _0x2799e1}from'../utils.js';function _0x1f78(_0x9c0fa6,_0x252ca6){const _0x50f9e6=_0x50f9();return _0x1f78=function(_0x1f7844,_0x308e46){_0x1f7844=_0x1f7844-0x94;let _0x2643f8=_0x50f9e6[_0x1f7844];return _0x2643f8;},_0x1f78(_0x9c0fa6,_0x252ca6);}export default class s extends _0x189ad5{[_0x2ea751(0x99)](_0x5b2bde,_0x22c788){const _0x3c67c1=_0x2ea751,_0x32d47b=_0x22c788[_0x3c67c1(0x9c)]();return this[_0x3c67c1(0x96)](_0x3c67c1(0x9b),_0x32d47b),this[_0x3c67c1(0x96)](_0x3c67c1(0xab),_0x32d47b),_0x40e79e(_0x32d47b),_0x5b2bde[_0x3c67c1(0x9d)][_0x3c67c1(0xa6)](this[_0x3c67c1(0xae)][_0x3c67c1(0x99)](_0x32d47b)),_0x5b2bde[_0x3c67c1(0xad)][_0x3c67c1(0xa6)](this[_0x3c67c1(0x9f)]),!0x0;}[_0x2ea751(0x98)](_0x13a36e,_0xeb4c30){const _0x1de94f=_0x2ea751,{types:_0x264ae1,buffers:_0x11ddc9}=_0xeb4c30,_0x4708de=this[_0x1de94f(0xae)][_0x1de94f(0x98)](_0x11ddc9[_0x1de94f(0x9c)]());_0x264ae1[_0x1de94f(0x9c)](),this[_0x1de94f(0xa5)](_0x1de94f(0x9b),_0x4708de),this[_0x1de94f(0xa5)](_0x1de94f(0xab),_0x4708de),_0x2799e1(_0x4708de),_0x4708de[_0x1de94f(0xa3)]=this[_0x1de94f(0x95)],_0x13a36e[_0x1de94f(0xa6)](_0x4708de);}[_0x2ea751(0x96)](_0x455297,_0x29af7e){const _0x3388c7=_0x2ea751,_0x3a33fc=_0x29af7e[_0x455297];_0x3388c7(0xaa)==typeof _0x3a33fc?_0x29af7e[_0x455297+_0x3388c7(0xa0)]=_0x3a33fc:_0x29af7e[_0x455297+_0x3388c7(0xaf)]=JSON[_0x3388c7(0x97)](_0x3a33fc);}[_0x2ea751(0xa5)](_0x585dfd,_0x28c80d){const _0x2aef1c=_0x2ea751,_0x102f2a=_0x585dfd+_0x2aef1c(0xaf);_0x28c80d[_0x102f2a]?(_0x28c80d[_0x585dfd]=JSON[_0x2aef1c(0x94)](_0x28c80d[_0x102f2a]),delete _0x28c80d[_0x102f2a]):(_0x28c80d[_0x585dfd]=_0x28c80d[_0x585dfd+_0x2aef1c(0xa0)],delete _0x28c80d[_0x585dfd+_0x2aef1c(0xa0)]);}}