UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 7.18 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 _0x1046b7=_0x52e9;(function(_0x527ca7,_0x834dee){const _0x2d276c=_0x52e9,_0x3aea26=_0x527ca7();while(!![]){try{const _0x3f1ef9=parseInt(_0x2d276c(0x124))/0x1*(parseInt(_0x2d276c(0x13a))/0x2)+parseInt(_0x2d276c(0x11c))/0x3*(-parseInt(_0x2d276c(0x130))/0x4)+parseInt(_0x2d276c(0x128))/0x5*(parseInt(_0x2d276c(0x127))/0x6)+parseInt(_0x2d276c(0x119))/0x7+-parseInt(_0x2d276c(0x125))/0x8+parseInt(_0x2d276c(0x133))/0x9+parseInt(_0x2d276c(0x13f))/0xa*(parseInt(_0x2d276c(0x12a))/0xb);if(_0x3f1ef9===_0x834dee)break;else _0x3aea26['push'](_0x3aea26['shift']());}catch(_0x5a7dfc){_0x3aea26['push'](_0x3aea26['shift']());}}}(_0x452a,0xd7691));import{CKEditorError as _0x35853f}from'ckeditor5/src/utils.js';import _0x3fdd54 from'./protobuffactory.js';import _0x1bde61 from'./operationcompressor/operationcompressor.js';import _0x2dd139 from'./operationcompressor/attributeoperationcompressor.js';function _0x52e9(_0x2554ef,_0x350397){const _0x452a68=_0x452a();return _0x52e9=function(_0x52e9f6,_0x5938d9){_0x52e9f6=_0x52e9f6-0x117;let _0x1d76bc=_0x452a68[_0x52e9f6];return _0x1d76bc;},_0x52e9(_0x2554ef,_0x350397);}import _0x1570af from'./operationcompressor/insertoperationcompressor.js';import _0x3044ba from'./operationcompressor/markeroperationcompressor.js';import _0x5305d4 from'./operationcompressor/nooperationcompressor.js';import _0x50b41a from'./operationcompressor/annotationmarkeroperationcompressor.js';import _0x18a8ef from'./actioncompressor/typingactioncompressor.js';import _0x2657f5 from'./actioncompressor/deletingactioncompressor.js';import _0x57bade from'./actioncompressor/forwarddeletingactioncompressor.js';function _0x452a(){const _0x485e8d=['MoveOperation','SplitOperation','MarkerOperation','CommentMarkerOperation','baseVersion','6EZrupD','_compressorByName','MergeOperation','forEach','NoOperation','1968310JJTzTE','__className','comment','compress','InsertOperation','SuggestionMarkerOperation','_registerOperationCompressor','types','decompress','get','4865483LrqzBj','TypingAction','RenameOperation','5463KptUGm','suggestion','AttributeOperation','_registerCompressor','length','_getCompressorByName','RootOperation','RootAttributeOperation','28643MVKQIg','4983344yzmvrA','decompress-compressor-not-found','814686lEEVqa','15HWXyWc','set','11DTuUpA','_registerActionCompressor','no-operations-provided','ForwardDeletingAction','UserSelectionAction','_compressorById','1480YIhTIj','DeletingAction','_protobufFactory','7144533oSbSUR','getDescriptor'];_0x452a=function(){return _0x485e8d;};return _0x452a();}import _0xcf5f70 from'./actioncompressor/userselectionactioncompressor.js';export default class g{[_0x1046b7(0x12f)];[_0x1046b7(0x13b)];[_0x1046b7(0x132)];constructor(){const _0x4ce5d4=_0x1046b7;this[_0x4ce5d4(0x12f)]=new Map(),this[_0x4ce5d4(0x13b)]=new Map(),this[_0x4ce5d4(0x132)]=new _0x3fdd54();const _0x3a3d17=this[_0x4ce5d4(0x132)][_0x4ce5d4(0x134)](_0x4ce5d4(0x137));this[_0x4ce5d4(0x11f)](0x1,_0x4ce5d4(0x13e),new _0x5305d4(0x1,_0x4ce5d4(0x13e),void 0x0)),this[_0x4ce5d4(0x145)](0xa,_0x4ce5d4(0x11e),_0x2dd139),this[_0x4ce5d4(0x145)](0xb,_0x4ce5d4(0x143),_0x1570af),this[_0x4ce5d4(0x145)](0xc,_0x4ce5d4(0x137),_0x3044ba),this[_0x4ce5d4(0x145)](0xd,_0x4ce5d4(0x13c),_0x1bde61),this[_0x4ce5d4(0x145)](0xe,_0x4ce5d4(0x135),_0x1bde61),this[_0x4ce5d4(0x145)](0xf,_0x4ce5d4(0x11b),_0x1bde61),this[_0x4ce5d4(0x145)](0x10,_0x4ce5d4(0x123),_0x2dd139),this[_0x4ce5d4(0x145)](0x11,_0x4ce5d4(0x136),_0x1bde61),this[_0x4ce5d4(0x11f)](0x12,_0x4ce5d4(0x138),new _0x50b41a(0x12,_0x4ce5d4(0x137),_0x3a3d17,_0x4ce5d4(0x141))),this[_0x4ce5d4(0x11f)](0x13,_0x4ce5d4(0x144),new _0x50b41a(0x13,_0x4ce5d4(0x137),_0x3a3d17,_0x4ce5d4(0x11d))),this[_0x4ce5d4(0x145)](0x14,_0x4ce5d4(0x122),_0x1bde61),this[_0x4ce5d4(0x12b)](0x64,_0x4ce5d4(0x11a),_0x18a8ef),this[_0x4ce5d4(0x12b)](0x65,_0x4ce5d4(0x131),_0x2657f5),this[_0x4ce5d4(0x12b)](0x66,_0x4ce5d4(0x12d),_0x57bade),this[_0x4ce5d4(0x12b)](0x67,_0x4ce5d4(0x12e),_0xcf5f70);}[_0x1046b7(0x142)](_0x5910cb){const _0x1ed2ca=_0x1046b7;if(!_0x5910cb||!_0x5910cb[0x0])throw new _0x35853f(_0x1ed2ca(0x12c),this);const _0x1139f9={'types':[],'buffers':[],'baseVersion':_0x5910cb[0x0][_0x1ed2ca(0x139)]};for(;_0x5910cb[_0x1ed2ca(0x120)];)this[_0x1ed2ca(0x121)](_0x1ed2ca(0x12e))[_0x1ed2ca(0x142)](_0x1139f9,_0x5910cb)||this[_0x1ed2ca(0x121)](_0x1ed2ca(0x11a))[_0x1ed2ca(0x142)](_0x1139f9,_0x5910cb)||this[_0x1ed2ca(0x121)](_0x1ed2ca(0x131))[_0x1ed2ca(0x142)](_0x1139f9,_0x5910cb)||this[_0x1ed2ca(0x121)](_0x1ed2ca(0x12d))[_0x1ed2ca(0x142)](_0x1139f9,_0x5910cb)||this[_0x1ed2ca(0x121)](_0x1ed2ca(0x138))[_0x1ed2ca(0x142)](_0x1139f9,_0x5910cb)||this[_0x1ed2ca(0x121)](_0x1ed2ca(0x144))[_0x1ed2ca(0x142)](_0x1139f9,_0x5910cb)||this[_0x1ed2ca(0x121)](_0x5910cb[0x0][_0x1ed2ca(0x140)])[_0x1ed2ca(0x142)](_0x1139f9,_0x5910cb);return _0x1139f9;}[_0x1046b7(0x117)](_0xbf1e8c){const _0x42702c=_0x1046b7,_0x38b185=[];for(;_0xbf1e8c[_0x42702c(0x146)][_0x42702c(0x120)];){const _0x467e3d=this[_0x42702c(0x12f)][_0x42702c(0x118)](_0xbf1e8c[_0x42702c(0x146)][0x0]);if(!_0x467e3d)throw new _0x35853f(_0x42702c(0x126),this,{'type':_0xbf1e8c[_0x42702c(0x146)][0x0]});_0x467e3d[_0x42702c(0x117)](_0x38b185,_0xbf1e8c);}return _0x38b185[_0x42702c(0x13d)]((_0x2f91b8,_0x26f5c7)=>_0x2f91b8[_0x42702c(0x139)]=_0xbf1e8c[_0x42702c(0x139)]+_0x26f5c7),_0x38b185;}[_0x1046b7(0x121)](_0x395467){const _0x13ff65=_0x1046b7;return this[_0x13ff65(0x13b)][_0x13ff65(0x118)](_0x395467);}[_0x1046b7(0x145)](_0x4685c1,_0x4e4616,_0x54ef05){const _0xd9957b=_0x1046b7,_0xed4f4f=new _0x54ef05(_0x4685c1,_0x4e4616,this[_0xd9957b(0x132)][_0xd9957b(0x134)](_0x4e4616));this[_0xd9957b(0x11f)](_0x4685c1,_0x4e4616,_0xed4f4f);}[_0x1046b7(0x12b)](_0x59cea8,_0x369132,_0x3f3731){const _0x41558e=_0x1046b7,_0x511caa=new _0x3f3731(_0x59cea8,this);this[_0x41558e(0x11f)](_0x59cea8,_0x369132,_0x511caa);}[_0x1046b7(0x11f)](_0x51882b,_0x301a35,_0x1e64e0){const _0x55f662=_0x1046b7;this[_0x55f662(0x12f)][_0x55f662(0x129)](_0x51882b,_0x1e64e0),this[_0x55f662(0x13b)][_0x55f662(0x129)](_0x301a35,_0x1e64e0);}}