@ckeditor/ckeditor5-operations-compressor 38.2.0-alpha.1 → 39.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +0 -1
  2. package/package.json +4 -4
  3. package/src/actioncompressor/actioncompressor.d.ts +5 -1
  4. package/src/actioncompressor/actioncompressor.js +2 -2
  5. package/src/actioncompressor/deletingactioncompressor.d.ts +6 -2
  6. package/src/actioncompressor/deletingactioncompressor.js +2 -2
  7. package/src/actioncompressor/forwarddeletingactioncompressor.d.ts +6 -2
  8. package/src/actioncompressor/forwarddeletingactioncompressor.js +2 -2
  9. package/src/actioncompressor/typingactioncompressor.d.ts +6 -2
  10. package/src/actioncompressor/typingactioncompressor.js +2 -2
  11. package/src/actioncompressor/userselectionactioncompressor.d.ts +6 -2
  12. package/src/actioncompressor/userselectionactioncompressor.js +2 -2
  13. package/src/compressor.d.ts +4 -0
  14. package/src/compressor.js +2 -2
  15. package/src/lib/compiledmessages.js +2 -2
  16. package/src/operationcompressor/annotationmarkeroperationcompressor.d.ts +8 -4
  17. package/src/operationcompressor/annotationmarkeroperationcompressor.js +2 -2
  18. package/src/operationcompressor/attributeoperationcompressor.d.ts +7 -3
  19. package/src/operationcompressor/attributeoperationcompressor.js +2 -2
  20. package/src/operationcompressor/insertoperationcompressor.d.ts +7 -3
  21. package/src/operationcompressor/insertoperationcompressor.js +2 -2
  22. package/src/operationcompressor/markeroperationcompressor.d.ts +7 -3
  23. package/src/operationcompressor/markeroperationcompressor.js +2 -2
  24. package/src/operationcompressor/nooperationcompressor.d.ts +7 -3
  25. package/src/operationcompressor/nooperationcompressor.js +2 -2
  26. package/src/operationcompressor/operationcompressor.d.ts +7 -3
  27. package/src/operationcompressor/operationcompressor.js +2 -2
  28. package/src/protobufdescriptions.d.ts +2 -10
  29. package/src/protobufdescriptions.js +2 -2
  30. package/src/protobuffactory.d.ts +4 -0
  31. package/src/protobuffactory.js +2 -2
  32. package/src/utils.d.ts +4 -0
  33. package/src/utils.js +2 -2
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # CKEditor 5 operations compressor
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-operations-compressor.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-operations-compressor)
4
- ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-operations-compressor)
5
4
 
6
5
  CKEditor 5 operations compressor is a low-level API that compresses and decompresses operations to a normalized binary format in order to decrease network usage during real-time collaborative editing. It is required by the [CKEditor 5 real-time collaborative editing](https://ckeditor.com/collaboration/real-time/) feature to enable collaboration in [CKEditor 5](https://ckeditor.com/ckeditor-5/).
7
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-operations-compressor",
3
- "version": "38.2.0-alpha.1",
3
+ "version": "39.0.1",
4
4
  "description": "CKEditor 5 operations compressor for real-time collaboration.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://ckeditor.com/collaboration/real-time/",
@@ -30,9 +30,9 @@
30
30
  "url": "https://support.ckeditor.com/hc/en-us/requests/new"
31
31
  },
32
32
  "dependencies": {
33
- "ckeditor5": "38.2.0-alpha.1",
34
- "lodash-es": "^4.17.11",
35
- "protobufjs": "^7.0.0"
33
+ "ckeditor5": "39.0.1",
34
+ "lodash-es": "4.17.21",
35
+ "protobufjs": "7.2.4"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=16.0.0",
@@ -1,4 +1,8 @@
1
- import type { CompressedOperationsData, default as Compressor } from '../compressor.js';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import type { CompressedOperationsData, default as Compressor } from '../compressor';
2
6
  /**
3
7
  * * Compresses and decompresses multiple operations into the one buffer.
4
8
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30ad=['push','_compressSingleOperation','buffers','_splitCurrent','shift','_compareOperations','types','_id','_decompressSingleOperation','_combineNext'];(function(_0x36ee0b,_0x30ad8c){const _0x1dd4cc=function(_0x95d9a2){while(--_0x95d9a2){_0x36ee0b['push'](_0x36ee0b['shift']());}};_0x1dd4cc(++_0x30ad8c);}(_0x30ad,0x14a));const _0x1dd4=function(_0x36ee0b,_0x30ad8c){_0x36ee0b=_0x36ee0b-0x0;let _0x1dd4cc=_0x30ad[_0x36ee0b];return _0x1dd4cc;};import{cloneDeep as _0x3ca784}from'lodash-es';export default class b{constructor(_0x46cdb2,_0x7783f4){this[_0x1dd4('0x7')]=_0x46cdb2,this['_context']=_0x7783f4;}['compress'](_0x18435a,_0x1c8f5f){let _0x1d87bb;for(;_0x1c8f5f['length']>0x1&&this[_0x1dd4('0x5')](_0x1c8f5f[0x0],_0x1c8f5f[0x1]);)_0x1d87bb?(_0x1d87bb=this[_0x1dd4('0x9')](_0x1c8f5f[_0x1dd4('0x4')](),_0x1d87bb),_0x18435a[_0x1dd4('0x6')]['push'](0x0)):(_0x1d87bb=_0x3ca784(_0x1c8f5f[_0x1dd4('0x4')]()),_0x18435a[_0x1dd4('0x6')][_0x1dd4('0x0')](this[_0x1dd4('0x7')]));return!!_0x1d87bb&&(_0x1d87bb=this[_0x1dd4('0x9')](_0x1c8f5f[_0x1dd4('0x4')](),_0x1d87bb),_0x18435a[_0x1dd4('0x6')]['push'](0x0),_0x18435a[_0x1dd4('0x2')][_0x1dd4('0x0')](this[_0x1dd4('0x1')](_0x1d87bb)),!0x0);}['decompress'](_0x56e1d5,_0x2e48fd){const _0x3a31c5=this[_0x1dd4('0x8')](_0x2e48fd);for(;0x0==_0x2e48fd[_0x1dd4('0x6')][0x0];)_0x2e48fd['types'][_0x1dd4('0x4')](),_0x56e1d5[_0x1dd4('0x0')](this[_0x1dd4('0x3')](_0x3a31c5));_0x56e1d5[_0x1dd4('0x0')](_0x3a31c5);}}
23
+ const _0x1573=['_compressSingleOperation','_compareOperations','types','compress','shift','_combineNext','_splitCurrent','_id','push','_decompressSingleOperation'];(function(_0x18ee09,_0x15737f){const _0x35ce97=function(_0x30b7ec){while(--_0x30b7ec){_0x18ee09['push'](_0x18ee09['shift']());}};_0x35ce97(++_0x15737f);}(_0x1573,0xcc));const _0x35ce=function(_0x18ee09,_0x15737f){_0x18ee09=_0x18ee09-0x0;let _0x35ce97=_0x1573[_0x18ee09];return _0x35ce97;};import{cloneDeep as _0x264606}from'lodash-es';export default class b{constructor(_0x4309fa,_0x45830b){this[_0x35ce('0x3')]=_0x4309fa,this['_context']=_0x45830b;}[_0x35ce('0x9')](_0x3ece8f,_0x22335c){let _0x34902f;for(;_0x22335c['length']>0x1&&this[_0x35ce('0x7')](_0x22335c[0x0],_0x22335c[0x1]);)_0x34902f?(_0x34902f=this['_combineNext'](_0x22335c['shift'](),_0x34902f),_0x3ece8f['types'][_0x35ce('0x4')](0x0)):(_0x34902f=_0x264606(_0x22335c[_0x35ce('0x0')]()),_0x3ece8f['types'][_0x35ce('0x4')](this[_0x35ce('0x3')]));return!!_0x34902f&&(_0x34902f=this[_0x35ce('0x1')](_0x22335c[_0x35ce('0x0')](),_0x34902f),_0x3ece8f[_0x35ce('0x8')][_0x35ce('0x4')](0x0),_0x3ece8f['buffers'][_0x35ce('0x4')](this[_0x35ce('0x6')](_0x34902f)),!0x0);}['decompress'](_0x1626cc,_0x40f076){const _0x303b7b=this[_0x35ce('0x5')](_0x40f076);for(;0x0==_0x40f076[_0x35ce('0x8')][0x0];)_0x40f076[_0x35ce('0x8')]['shift'](),_0x1626cc[_0x35ce('0x4')](this[_0x35ce('0x2')](_0x303b7b));_0x1626cc[_0x35ce('0x4')](_0x303b7b);}}
@@ -1,5 +1,9 @@
1
- import ActionCompressor from './actioncompressor.js';
2
- import type { CompressedOperationsData } from '../compressor.js';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import ActionCompressor from './actioncompressor';
6
+ import type { CompressedOperationsData } from '../compressor';
3
7
  export default class DeletingActionCompressor extends ActionCompressor {
4
8
  /**
5
9
  * @inheritDoc
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ef3=['_getCompressorByName','_decompressSingleOperation','MoveOperation','_context','$graveyard','__className','wasUndone','sourcePosition','root','howMany','_splitCurrent','_checkOperation','_compressSingleOperation','targetPosition','_combineNext'];(function(_0x5a48a9,_0x5ef3d6){const _0x5ae12f=function(_0x3d714e){while(--_0x3d714e){_0x5a48a9['push'](_0x5a48a9['shift']());}};_0x5ae12f(++_0x5ef3d6);}(_0x5ef3,0x1df));const _0x5ae1=function(_0x5a48a9,_0x5ef3d6){_0x5a48a9=_0x5a48a9-0x0;let _0x5ae12f=_0x5ef3[_0x5a48a9];return _0x5ae12f;};import _0x1bbf01 from'./actioncompressor.js';import{arePositionsEqual as _0xa47abd,getPositionShiftedBy as _0x209e43}from'../utils.js';import{cloneDeep as _0x47df12}from'lodash-es';export default class c extends _0x1bbf01{[_0x5ae1('0x0')](_0x20e974,_0x3f3bc7){return _0x3f3bc7[_0x5ae1('0xa')]++,_0x3f3bc7['sourcePosition']=_0x47df12(_0x20e974['sourcePosition']),_0x3f3bc7;}[_0x5ae1('0xb')](_0x16d9f8){const _0x5e3335=_0x47df12(_0x16d9f8);return _0x16d9f8[_0x5ae1('0xa')]--,_0x5e3335['howMany']=0x1,_0x5e3335[_0x5ae1('0x8')]=_0x209e43(_0x5e3335[_0x5ae1('0x8')],_0x16d9f8[_0x5ae1('0xa')]),_0x5e3335;}['_compareOperations'](_0x49f30d,_0x46e9f6){return!(!this[_0x5ae1('0xc')](_0x49f30d)||!this[_0x5ae1('0xc')](_0x46e9f6))&&(_0xa47abd(_0x209e43(_0x49f30d[_0x5ae1('0x8')],-0x1),_0x46e9f6[_0x5ae1('0x8')])&&_0xa47abd(_0x49f30d[_0x5ae1('0xe')],_0x46e9f6[_0x5ae1('0xe')]));}[_0x5ae1('0xd')](_0x2115fd){const _0x8a033e={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x5ae1('0x4')]['_getCompressorByName']('MoveOperation')['compress'](_0x8a033e,[_0x2115fd]),_0x8a033e['buffers'][0x0];}[_0x5ae1('0x2')](_0x1d67bf){const _0x283111=[];return this[_0x5ae1('0x4')][_0x5ae1('0x1')](_0x5ae1('0x3'))['decompress'](_0x283111,_0x1d67bf),_0x283111[0x0];}[_0x5ae1('0xc')](_0x2c792c){return _0x5ae1('0x3')==_0x2c792c[_0x5ae1('0x6')]&&_0x5ae1('0x5')==_0x2c792c[_0x5ae1('0xe')][_0x5ae1('0x9')]&&0x1==_0x2c792c[_0x5ae1('0xa')]&&!_0x2c792c[_0x5ae1('0x7')];}}
23
+ const _0x308a=['__className','_compressSingleOperation','_getCompressorByName','howMany','targetPosition','MoveOperation','sourcePosition','_combineNext','wasUndone','_splitCurrent','_compareOperations','decompress','_checkOperation','root','_context'];(function(_0x543cb0,_0x308ac2){const _0xd8c292=function(_0x1cf398){while(--_0x1cf398){_0x543cb0['push'](_0x543cb0['shift']());}};_0xd8c292(++_0x308ac2);}(_0x308a,0x1c6));const _0xd8c2=function(_0x543cb0,_0x308ac2){_0x543cb0=_0x543cb0-0x0;let _0xd8c292=_0x308a[_0x543cb0];return _0xd8c292;};import _0x18aaac from'./actioncompressor';import{arePositionsEqual as _0x379d94,getPositionShiftedBy as _0x1220a2}from'../utils';import{cloneDeep as _0x5e1c44}from'lodash-es';export default class c extends _0x18aaac{[_0xd8c2('0x3')](_0x1bec46,_0x4ea2ca){return _0x4ea2ca['howMany']++,_0x4ea2ca['sourcePosition']=_0x5e1c44(_0x1bec46[_0xd8c2('0x2')]),_0x4ea2ca;}[_0xd8c2('0x5')](_0x446104){const _0x1650bc=_0x5e1c44(_0x446104);return _0x446104[_0xd8c2('0xe')]--,_0x1650bc[_0xd8c2('0xe')]=0x1,_0x1650bc[_0xd8c2('0x2')]=_0x1220a2(_0x1650bc['sourcePosition'],_0x446104[_0xd8c2('0xe')]),_0x1650bc;}[_0xd8c2('0x6')](_0x1602cd,_0x3f6867){return!(!this[_0xd8c2('0x8')](_0x1602cd)||!this['_checkOperation'](_0x3f6867))&&(_0x379d94(_0x1220a2(_0x1602cd[_0xd8c2('0x2')],-0x1),_0x3f6867[_0xd8c2('0x2')])&&_0x379d94(_0x1602cd[_0xd8c2('0x0')],_0x3f6867[_0xd8c2('0x0')]));}[_0xd8c2('0xc')](_0x5bdd5e){const _0x24eee0={'types':[],'buffers':[],'baseVersion':0x0};return this[_0xd8c2('0xa')][_0xd8c2('0xd')](_0xd8c2('0x1'))['compress'](_0x24eee0,[_0x5bdd5e]),_0x24eee0['buffers'][0x0];}['_decompressSingleOperation'](_0x5e7053){const _0x3a25dd=[];return this[_0xd8c2('0xa')]['_getCompressorByName'](_0xd8c2('0x1'))[_0xd8c2('0x7')](_0x3a25dd,_0x5e7053),_0x3a25dd[0x0];}[_0xd8c2('0x8')](_0x7f7271){return _0xd8c2('0x1')==_0x7f7271[_0xd8c2('0xb')]&&'$graveyard'==_0x7f7271[_0xd8c2('0x0')][_0xd8c2('0x9')]&&0x1==_0x7f7271['howMany']&&!_0x7f7271[_0xd8c2('0x4')];}}
@@ -1,5 +1,9 @@
1
- import ActionCompressor from './actioncompressor.js';
2
- import type { CompressedOperationsData } from '../compressor.js';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import ActionCompressor from './actioncompressor';
6
+ import type { CompressedOperationsData } from '../compressor';
3
7
  export default class ForwardDeletingActionCompressor extends ActionCompressor {
4
8
  /**
5
9
  * @inheritDoc
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a58=['__className','_context','sourcePosition','decompress','MoveOperation','_compressSingleOperation','targetPosition','_splitCurrent','buffers','_compareOperations','_checkOperation','_getCompressorByName','_decompressSingleOperation','howMany'];(function(_0x3ab03a,_0x5a5804){const _0x1bffcc=function(_0x24e6c4){while(--_0x24e6c4){_0x3ab03a['push'](_0x3ab03a['shift']());}};_0x1bffcc(++_0x5a5804);}(_0x5a58,0x15a));const _0x1bff=function(_0x3ab03a,_0x5a5804){_0x3ab03a=_0x3ab03a-0x0;let _0x1bffcc=_0x5a58[_0x3ab03a];return _0x1bffcc;};import _0x22375e from'./actioncompressor.js';import{arePositionsEqual as _0x3082e8}from'../utils.js';import{cloneDeep as _0x1fca41}from'lodash-es';export default class h extends _0x22375e{['_combineNext'](_0x477d0f,_0x42c30a){return _0x42c30a[_0x1bff('0x3')]++,_0x42c30a;}[_0x1bff('0xb')](_0x498b63){const _0x2deee3=_0x1fca41(_0x498b63);return _0x2deee3[_0x1bff('0x3')]=0x1,_0x498b63[_0x1bff('0x3')]--,_0x2deee3;}[_0x1bff('0xd')](_0x28d478,_0x352859){return!(!this[_0x1bff('0x0')](_0x28d478)||!this[_0x1bff('0x0')](_0x352859))&&(_0x3082e8(_0x28d478['sourcePosition'],_0x352859[_0x1bff('0x6')])&&_0x3082e8(_0x28d478['targetPosition'],_0x352859['targetPosition']));}[_0x1bff('0x9')](_0x1c97c9){const _0xa3c8c8={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x1bff('0x1')](_0x1bff('0x8'))['compress'](_0xa3c8c8,[_0x1c97c9]),_0xa3c8c8[_0x1bff('0xc')][0x0];}[_0x1bff('0x2')](_0x3d02a0){const _0x379469=[];return this[_0x1bff('0x5')][_0x1bff('0x1')](_0x1bff('0x8'))[_0x1bff('0x7')](_0x379469,_0x3d02a0),_0x379469[0x0];}['_checkOperation'](_0x52898f){return _0x1bff('0x8')==_0x52898f[_0x1bff('0x4')]&&'$graveyard'==_0x52898f[_0x1bff('0xa')]['root']&&0x1==_0x52898f['howMany']&&!_0x52898f['wasUndone'];}}
23
+ const _0x1874=['_getCompressorByName','MoveOperation','_combineNext','_compareOperations','$graveyard','root','targetPosition','__className','sourcePosition','decompress','buffers','wasUndone','howMany','_checkOperation','_compressSingleOperation'];(function(_0x4883b3,_0x1874a6){const _0x3c45a4=function(_0x20380e){while(--_0x20380e){_0x4883b3['push'](_0x4883b3['shift']());}};_0x3c45a4(++_0x1874a6);}(_0x1874,0x194));const _0x3c45=function(_0x4883b3,_0x1874a6){_0x4883b3=_0x4883b3-0x0;let _0x3c45a4=_0x1874[_0x4883b3];return _0x3c45a4;};import _0x572f30 from'./actioncompressor';import{arePositionsEqual as _0x5bf6ad}from'../utils';import{cloneDeep as _0x3655e8}from'lodash-es';export default class h extends _0x572f30{[_0x3c45('0x3')](_0x13c980,_0x24621b){return _0x24621b[_0x3c45('0xd')]++,_0x24621b;}['_splitCurrent'](_0x3d66b5){const _0x5f1fdb=_0x3655e8(_0x3d66b5);return _0x5f1fdb[_0x3c45('0xd')]=0x1,_0x3d66b5['howMany']--,_0x5f1fdb;}[_0x3c45('0x4')](_0x5f68f1,_0x3eb25f){return!(!this[_0x3c45('0xe')](_0x5f68f1)||!this['_checkOperation'](_0x3eb25f))&&(_0x5bf6ad(_0x5f68f1[_0x3c45('0x9')],_0x3eb25f[_0x3c45('0x9')])&&_0x5bf6ad(_0x5f68f1[_0x3c45('0x7')],_0x3eb25f[_0x3c45('0x7')]));}[_0x3c45('0x0')](_0x3118a4){const _0x3bfc4b={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x3c45('0x1')](_0x3c45('0x2'))['compress'](_0x3bfc4b,[_0x3118a4]),_0x3bfc4b[_0x3c45('0xb')][0x0];}['_decompressSingleOperation'](_0x122941){const _0x19b6a9=[];return this['_context'][_0x3c45('0x1')](_0x3c45('0x2'))[_0x3c45('0xa')](_0x19b6a9,_0x122941),_0x19b6a9[0x0];}[_0x3c45('0xe')](_0xccf5a7){return'MoveOperation'==_0xccf5a7[_0x3c45('0x8')]&&_0x3c45('0x5')==_0xccf5a7['targetPosition'][_0x3c45('0x6')]&&0x1==_0xccf5a7['howMany']&&!_0xccf5a7[_0x3c45('0xc')];}}
@@ -1,5 +1,9 @@
1
- import ActionCompressor from './actioncompressor.js';
2
- import type { CompressedOperationsData } from '../compressor.js';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import ActionCompressor from './actioncompressor';
6
+ import type { CompressedOperationsData } from '../compressor';
3
7
  export default class TypingActionCompressor extends ActionCompressor {
4
8
  /**
5
9
  * @inheritDocs
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5334=['_decompressSingleOperation','InsertOperation','decompress','keys','iterator','wasUndone','_splitCurrent','__className','value','from','_context','substr','position','length','every','data','attributes','nodes','next','_combineNext','_compressSingleOperation','_compareAttributes','_checkOperation','_getCompressorByName'];(function(_0x220b97,_0x5334c0){const _0x53c02c=function(_0x2a55f4){while(--_0x2a55f4){_0x220b97['push'](_0x220b97['shift']());}};_0x53c02c(++_0x5334c0);}(_0x5334,0xf3));const _0x53c0=function(_0x220b97,_0x5334c0){_0x220b97=_0x220b97-0x0;let _0x53c02c=_0x5334[_0x220b97];return _0x53c02c;};import _0x1aec44 from'./actioncompressor.js';import{arePositionsEqual as _0x5dc8e6,getPositionShiftedBy as _0x3155bc}from'../utils.js';import{cloneDeep as _0x5e10b4}from'lodash-es';export default class m extends _0x1aec44{[_0x53c0('0x10')](_0x1e9f59,_0x5ef98e){return _0x5ef98e['nodes'][0x0][_0x53c0('0xc')]+=_0x1e9f59[_0x53c0('0xe')][0x0]['data'],_0x5ef98e;}[_0x53c0('0x3')](_0x3c0dc3){const _0x40e7e1=_0x5e10b4(_0x3c0dc3),_0x11bc49=_0x40e7e1[_0x53c0('0xe')][0x0],_0x44864a=_0x3c0dc3[_0x53c0('0xe')][0x0],_0x150305=_0x44864a[_0x53c0('0xc')][Symbol[_0x53c0('0x1')]]()[_0x53c0('0xf')]()[_0x53c0('0x5')],_0x2df48c=_0x150305[_0x53c0('0xa')];return _0x11bc49[_0x53c0('0xc')]=_0x150305,_0x44864a[_0x53c0('0xc')]=_0x44864a[_0x53c0('0xc')][_0x53c0('0x8')](_0x2df48c),_0x3c0dc3[_0x53c0('0x9')]=_0x3155bc(_0x3c0dc3[_0x53c0('0x9')],_0x2df48c),_0x40e7e1;}['_compareOperations'](_0x1b3069,_0x15d208){if(this['_checkOperation'](_0x1b3069)&&this[_0x53c0('0x13')](_0x15d208)){const _0x5c69cd=_0x1b3069[_0x53c0('0xe')][0x0][_0x53c0('0xc')]['length'],_0x12fb9e=_0x5dc8e6(_0x3155bc(_0x1b3069['position'],_0x5c69cd),_0x15d208[_0x53c0('0x9')]),_0x185514=_0x1b3069[_0x53c0('0xe')][0x0],_0x4b305a=_0x15d208[_0x53c0('0xe')][0x0];return _0x12fb9e&&this[_0x53c0('0x12')](_0x185514,_0x4b305a);}return!0x1;}[_0x53c0('0x11')](_0x1cde56){const _0x5d4789={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x53c0('0x7')][_0x53c0('0x14')](_0x53c0('0x16'))['compress'](_0x5d4789,[_0x1cde56]),_0x5d4789['buffers'][0x0];}[_0x53c0('0x15')](_0x3eab4a){const _0xb2b812=[];return this[_0x53c0('0x7')]['_getCompressorByName'](_0x53c0('0x16'))[_0x53c0('0x17')](_0xb2b812,_0x3eab4a),_0xb2b812[0x0];}['_checkOperation'](_0x165d88){return _0x53c0('0x16')==_0x165d88[_0x53c0('0x4')]&&0x1==_0x165d88['nodes'][_0x53c0('0xa')]&&_0x165d88[_0x53c0('0xe')][0x0][_0x53c0('0xc')]&&!_0x165d88[_0x53c0('0x2')]&&0x1==Array[_0x53c0('0x6')](_0x165d88[_0x53c0('0xe')][0x0][_0x53c0('0xc')])[_0x53c0('0xa')];}[_0x53c0('0x12')](_0x275782,_0x5a50f5){const _0x554be2=Object[_0x53c0('0x0')](_0x275782[_0x53c0('0xd')]||{}),_0x4b3bff=Object[_0x53c0('0x0')](_0x5a50f5[_0x53c0('0xd')]||{});return _0x554be2[_0x53c0('0xa')]===_0x4b3bff['length']&&_0x554be2[_0x53c0('0xb')](_0x374cfa=>_0x5a50f5[_0x53c0('0xd')][_0x374cfa]&&_0x5a50f5[_0x53c0('0xd')][_0x374cfa]===_0x275782[_0x53c0('0xd')][_0x374cfa]);}}
23
+ const _0x2918=['_context','substr','data','attributes','nodes','__className','from','keys','buffers','_compareAttributes','_compressSingleOperation','_getCompressorByName','_decompressSingleOperation','next','wasUndone','iterator','position','_splitCurrent','_combineNext','decompress','length','InsertOperation','_checkOperation','compress'];(function(_0x3782a8,_0x291897){const _0x574bdc=function(_0x1b63e7){while(--_0x1b63e7){_0x3782a8['push'](_0x3782a8['shift']());}};_0x574bdc(++_0x291897);}(_0x2918,0x14d));const _0x574b=function(_0x3782a8,_0x291897){_0x3782a8=_0x3782a8-0x0;let _0x574bdc=_0x2918[_0x3782a8];return _0x574bdc;};import _0x2cdf33 from'./actioncompressor';import{arePositionsEqual as _0x1184a9,getPositionShiftedBy as _0x321c28}from'../utils';import{cloneDeep as _0x50c35c}from'lodash-es';export default class m extends _0x2cdf33{[_0x574b('0x15')](_0x13dd3e,_0x497e0b){return _0x497e0b[_0x574b('0x7')][0x0][_0x574b('0x5')]+=_0x13dd3e[_0x574b('0x7')][0x0]['data'],_0x497e0b;}[_0x574b('0x14')](_0x241b51){const _0x52dc73=_0x50c35c(_0x241b51),_0x169a55=_0x52dc73['nodes'][0x0],_0x1f1082=_0x241b51[_0x574b('0x7')][0x0],_0x537d34=_0x1f1082[_0x574b('0x5')][Symbol[_0x574b('0x12')]]()[_0x574b('0x10')]()['value'],_0x1265b5=_0x537d34[_0x574b('0x17')];return _0x169a55['data']=_0x537d34,_0x1f1082[_0x574b('0x5')]=_0x1f1082[_0x574b('0x5')][_0x574b('0x4')](_0x1265b5),_0x241b51[_0x574b('0x13')]=_0x321c28(_0x241b51[_0x574b('0x13')],_0x1265b5),_0x52dc73;}['_compareOperations'](_0x59c941,_0x3efc36){if(this[_0x574b('0x1')](_0x59c941)&&this['_checkOperation'](_0x3efc36)){const _0x32409f=_0x59c941[_0x574b('0x7')][0x0]['data'][_0x574b('0x17')],_0x3a3a58=_0x1184a9(_0x321c28(_0x59c941[_0x574b('0x13')],_0x32409f),_0x3efc36[_0x574b('0x13')]),_0x724446=_0x59c941[_0x574b('0x7')][0x0],_0x485d95=_0x3efc36[_0x574b('0x7')][0x0];return _0x3a3a58&&this[_0x574b('0xc')](_0x724446,_0x485d95);}return!0x1;}[_0x574b('0xd')](_0x54e56e){const _0x56ab9e={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')[_0x574b('0x2')](_0x56ab9e,[_0x54e56e]),_0x56ab9e[_0x574b('0xb')][0x0];}[_0x574b('0xf')](_0x3098be){const _0x28b300=[];return this[_0x574b('0x3')][_0x574b('0xe')](_0x574b('0x0'))[_0x574b('0x16')](_0x28b300,_0x3098be),_0x28b300[0x0];}[_0x574b('0x1')](_0x4a0227){return _0x574b('0x0')==_0x4a0227[_0x574b('0x8')]&&0x1==_0x4a0227[_0x574b('0x7')][_0x574b('0x17')]&&_0x4a0227[_0x574b('0x7')][0x0]['data']&&!_0x4a0227[_0x574b('0x11')]&&0x1==Array[_0x574b('0x9')](_0x4a0227['nodes'][0x0][_0x574b('0x5')])[_0x574b('0x17')];}[_0x574b('0xc')](_0x39e7cf,_0x1d6424){const _0x4632cd=Object['keys'](_0x39e7cf[_0x574b('0x6')]||{}),_0x313949=Object[_0x574b('0xa')](_0x1d6424['attributes']||{});return _0x4632cd['length']===_0x313949['length']&&_0x4632cd['every'](_0x48526d=>_0x1d6424[_0x574b('0x6')][_0x48526d]&&_0x1d6424['attributes'][_0x48526d]===_0x39e7cf['attributes'][_0x48526d]);}}
@@ -1,5 +1,9 @@
1
- import ActionCompressor from './actioncompressor.js';
2
- import type { CompressedOperationsData } from '../compressor.js';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import ActionCompressor from './actioncompressor';
6
+ import type { CompressedOperationsData } from '../compressor';
3
7
  export default class UserSelectionActionCompressor extends ActionCompressor {
4
8
  /**
5
9
  * @inheritDoc
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b64=['name','types','toNone','user:position:','__className','newRange','_decompressSingleOperation','_compareOperations','_context','buffers','MarkerOperation','_getCompressorByName','shift','_compressSingleOperation','compress','push','end','startsWith','decompress','start','oldRange','_id','user:'];(function(_0x5cf6a6,_0x2b645e){const _0x2097ef=function(_0x694b61){while(--_0x694b61){_0x5cf6a6['push'](_0x5cf6a6['shift']());}};_0x2097ef(++_0x2b645e);}(_0x2b64,0x1ea));const _0x2097=function(_0x5cf6a6,_0x2b645e){_0x5cf6a6=_0x5cf6a6-0x0;let _0x2097ef=_0x2b64[_0x5cf6a6];return _0x2097ef;};import _0x167a77 from'./actioncompressor.js';import{arePositionsEqual as _0xb1a147}from'../utils.js';import{cloneDeep as _0x79678b}from'lodash-es';export default class f extends _0x167a77{[_0x2097('0x7')](_0x3019e7,_0x1f06b0){if(!this[_0x2097('0x0')](_0x1f06b0[0x0],_0x1f06b0[0x1]))return!0x1;const _0x2e83cb=_0x1f06b0['shift']();return _0x2e83cb[_0x2097('0xd')]=null,_0x2e83cb[_0x2097('0x15')]&&_0xb1a147(_0x2e83cb[_0x2097('0x15')][_0x2097('0xc')],_0x2e83cb[_0x2097('0x15')][_0x2097('0x9')])&&(_0x2e83cb[_0x2097('0x15')][_0x2097('0x9')]=null),_0x1f06b0[_0x2097('0x5')](),_0x3019e7[_0x2097('0x11')]['push'](this[_0x2097('0xe')]),_0x3019e7[_0x2097('0x11')]['push'](0x0),_0x3019e7[_0x2097('0x2')]['push'](this[_0x2097('0x6')](_0x2e83cb)),!0x0;}[_0x2097('0xb')](_0x192641,_0x4492d7){const _0x3605cc=this[_0x2097('0x16')](_0x4492d7);_0x3605cc[_0x2097('0x15')]&&!_0x3605cc[_0x2097('0x15')]['end']&&(_0x3605cc[_0x2097('0x15')]['end']=_0x79678b(_0x3605cc[_0x2097('0x15')]['start']));const _0x14f95e=_0x79678b(_0x3605cc);_0x14f95e[_0x2097('0x15')]&&(_0x14f95e[_0x2097('0x15')][_0x2097('0xc')]['stickiness']=_0x2097('0x12'),_0x14f95e[_0x2097('0x15')]['end']=_0x79678b(_0x14f95e[_0x2097('0x15')][_0x2097('0xc')])),_0x14f95e[_0x2097('0x10')]=_0x2097('0x13')+_0x14f95e[_0x2097('0x10')]['split'](':')[0x2],_0x4492d7[_0x2097('0x11')]['shift'](),_0x192641[_0x2097('0x8')](_0x3605cc),_0x192641[_0x2097('0x8')](_0x14f95e);}[_0x2097('0x6')](_0x29f656){const _0x16823a={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x2097('0x1')][_0x2097('0x4')](_0x2097('0x3'))[_0x2097('0x7')](_0x16823a,[_0x29f656]),_0x16823a[_0x2097('0x2')][0x0];}[_0x2097('0x16')](_0x42826c){const _0x41eef0=[];return this[_0x2097('0x1')][_0x2097('0x4')](_0x2097('0x3'))[_0x2097('0xb')](_0x41eef0,_0x42826c),_0x41eef0[0x0];}[_0x2097('0x0')](_0x3da0ce,_0x5e1219){return!(!_0x3da0ce||!_0x5e1219)&&(_0x2097('0x3')==_0x3da0ce[_0x2097('0x14')]&&_0x2097('0x3')==_0x5e1219[_0x2097('0x14')]&&!(!_0x3da0ce[_0x2097('0x10')]['startsWith'](_0x2097('0xf'))||!_0x5e1219[_0x2097('0x10')][_0x2097('0xa')](_0x2097('0xf'))||_0x3da0ce['name']==_0x5e1219[_0x2097('0x10')]));}}
23
+ const _0x3364=['shift','buffers','_compareOperations','_id','_decompressSingleOperation','_context','start','user:position:','MarkerOperation','types','user:','oldRange','newRange','startsWith','_compressSingleOperation','name','_getCompressorByName','push','end','compress','decompress','split'];(function(_0x172d66,_0x3364af){const _0x54ca38=function(_0x1a37f0){while(--_0x1a37f0){_0x172d66['push'](_0x172d66['shift']());}};_0x54ca38(++_0x3364af);}(_0x3364,0xc5));const _0x54ca=function(_0x172d66,_0x3364af){_0x172d66=_0x172d66-0x0;let _0x54ca38=_0x3364[_0x172d66];return _0x54ca38;};import _0x5955ee from'./actioncompressor';import{arePositionsEqual as _0x2a9621}from'../utils';import{cloneDeep as _0x57b57e}from'lodash-es';export default class f extends _0x5955ee{[_0x54ca('0x14')](_0xc0c697,_0x3e9d02){if(!this[_0x54ca('0x3')](_0x3e9d02[0x0],_0x3e9d02[0x1]))return!0x1;const _0x12ca26=_0x3e9d02[_0x54ca('0x1')]();return _0x12ca26[_0x54ca('0xc')]=null,_0x12ca26[_0x54ca('0xd')]&&_0x2a9621(_0x12ca26['newRange']['start'],_0x12ca26[_0x54ca('0xd')]['end'])&&(_0x12ca26['newRange'][_0x54ca('0x13')]=null),_0x3e9d02[_0x54ca('0x1')](),_0xc0c697[_0x54ca('0xa')][_0x54ca('0x12')](this[_0x54ca('0x4')]),_0xc0c697['types'][_0x54ca('0x12')](0x0),_0xc0c697['buffers'][_0x54ca('0x12')](this[_0x54ca('0xf')](_0x12ca26)),!0x0;}['decompress'](_0x3469a8,_0x1aa875){const _0xedcadc=this[_0x54ca('0x5')](_0x1aa875);_0xedcadc[_0x54ca('0xd')]&&!_0xedcadc[_0x54ca('0xd')][_0x54ca('0x13')]&&(_0xedcadc[_0x54ca('0xd')]['end']=_0x57b57e(_0xedcadc[_0x54ca('0xd')][_0x54ca('0x7')]));const _0x57adf1=_0x57b57e(_0xedcadc);_0x57adf1[_0x54ca('0xd')]&&(_0x57adf1[_0x54ca('0xd')]['start']['stickiness']='toNone',_0x57adf1[_0x54ca('0xd')][_0x54ca('0x13')]=_0x57b57e(_0x57adf1[_0x54ca('0xd')][_0x54ca('0x7')])),_0x57adf1['name']=_0x54ca('0x8')+_0x57adf1[_0x54ca('0x10')][_0x54ca('0x0')](':')[0x2],_0x1aa875[_0x54ca('0xa')][_0x54ca('0x1')](),_0x3469a8[_0x54ca('0x12')](_0xedcadc),_0x3469a8['push'](_0x57adf1);}['_compressSingleOperation'](_0x245bcd){const _0x5ac0f5={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x54ca('0x6')][_0x54ca('0x11')](_0x54ca('0x9'))[_0x54ca('0x14')](_0x5ac0f5,[_0x245bcd]),_0x5ac0f5[_0x54ca('0x2')][0x0];}[_0x54ca('0x5')](_0x517213){const _0x5f72e9=[];return this['_context'][_0x54ca('0x11')]('MarkerOperation')[_0x54ca('0x15')](_0x5f72e9,_0x517213),_0x5f72e9[0x0];}[_0x54ca('0x3')](_0x457d3a,_0x4bebf2){return!(!_0x457d3a||!_0x4bebf2)&&(_0x54ca('0x9')==_0x457d3a['__className']&&_0x54ca('0x9')==_0x4bebf2['__className']&&!(!_0x457d3a[_0x54ca('0x10')][_0x54ca('0xe')]('user:')||!_0x4bebf2['name'][_0x54ca('0xe')](_0x54ca('0xb'))||_0x457d3a[_0x54ca('0x10')]==_0x4bebf2['name']));}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * Compresses and decompresses given set of operations in JSON format to/from the binary format using `Protocol Buffers`.
3
7
  */
package/src/compressor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4160=['getDescriptor','_compressorByName','_getCompressorByName','SplitOperation','__className','InsertOperation','MarkerOperation','RenameOperation','set','_registerActionCompressor','suggestion','_registerCompressor','UserSelectionAction','_registerOperationCompressor','TypingAction','NoOperation','RootAttributeOperation','CommentMarkerOperation','DeletingAction','decompress','_protobufFactory','ForwardDeletingAction','SuggestionMarkerOperation','forEach','compress','MergeOperation','_compressorById','RootOperation','types','no-operations-provided','AttributeOperation','get','MoveOperation','baseVersion'];(function(_0x54c608,_0x41605f){const _0x4e254a=function(_0x3a2165){while(--_0x3a2165){_0x54c608['push'](_0x54c608['shift']());}};_0x4e254a(++_0x41605f);}(_0x4160,0x1c8));const _0x4e25=function(_0x54c608,_0x41605f){_0x54c608=_0x54c608-0x0;let _0x4e254a=_0x4160[_0x54c608];return _0x4e254a;};import{CKEditorError as _0x5e7228}from'ckeditor5/src/utils.js';import _0x23986c from'./protobuffactory.js';import _0x3e05e9 from'./operationcompressor/operationcompressor.js';import _0x55e120 from'./operationcompressor/attributeoperationcompressor.js';import _0x39272a from'./operationcompressor/insertoperationcompressor.js';import _0x29980e from'./operationcompressor/markeroperationcompressor.js';import _0x4f5902 from'./operationcompressor/nooperationcompressor.js';import _0x32d2b3 from'./operationcompressor/annotationmarkeroperationcompressor.js';import _0x54fae0 from'./actioncompressor/typingactioncompressor.js';import _0x4312ca from'./actioncompressor/deletingactioncompressor.js';import _0x55ab38 from'./actioncompressor/forwarddeletingactioncompressor.js';import _0x55ed00 from'./actioncompressor/userselectionactioncompressor.js';export default class g{constructor(){this[_0x4e25('0xc')]=new Map(),this[_0x4e25('0x15')]=new Map(),this[_0x4e25('0x6')]=new _0x23986c();const _0x595e84=this[_0x4e25('0x6')][_0x4e25('0x14')]('MarkerOperation');this[_0x4e25('0x1f')](0x1,_0x4e25('0x1'),new _0x4f5902(0x1,_0x4e25('0x1'),void 0x0)),this[_0x4e25('0x21')](0xa,_0x4e25('0x10'),_0x55e120),this[_0x4e25('0x21')](0xb,_0x4e25('0x19'),_0x39272a),this[_0x4e25('0x21')](0xc,_0x4e25('0x1a'),_0x29980e),this[_0x4e25('0x21')](0xd,_0x4e25('0xb'),_0x3e05e9),this[_0x4e25('0x21')](0xe,_0x4e25('0x12'),_0x3e05e9),this[_0x4e25('0x21')](0xf,_0x4e25('0x1b'),_0x3e05e9),this[_0x4e25('0x21')](0x10,_0x4e25('0x2'),_0x55e120),this[_0x4e25('0x21')](0x11,_0x4e25('0x17'),_0x3e05e9),this[_0x4e25('0x1f')](0x12,_0x4e25('0x3'),new _0x32d2b3(0x12,_0x4e25('0x1a'),_0x595e84,'comment')),this['_registerCompressor'](0x13,_0x4e25('0x8'),new _0x32d2b3(0x13,_0x4e25('0x1a'),_0x595e84,_0x4e25('0x1e'))),this[_0x4e25('0x21')](0x14,_0x4e25('0xd'),_0x3e05e9),this['_registerActionCompressor'](0x64,_0x4e25('0x0'),_0x54fae0),this[_0x4e25('0x1d')](0x65,'DeletingAction',_0x4312ca),this['_registerActionCompressor'](0x66,_0x4e25('0x7'),_0x55ab38),this[_0x4e25('0x1d')](0x67,_0x4e25('0x20'),_0x55ed00);}[_0x4e25('0xa')](_0x4907d0){if(!_0x4907d0||!_0x4907d0[0x0])throw new _0x5e7228(_0x4e25('0xf'),this);const _0x4dc8e0={'types':[],'buffers':[],'baseVersion':_0x4907d0[0x0][_0x4e25('0x13')]};for(;_0x4907d0['length'];)this['_getCompressorByName'](_0x4e25('0x20'))['compress'](_0x4dc8e0,_0x4907d0)||this['_getCompressorByName'](_0x4e25('0x0'))[_0x4e25('0xa')](_0x4dc8e0,_0x4907d0)||this[_0x4e25('0x16')](_0x4e25('0x4'))[_0x4e25('0xa')](_0x4dc8e0,_0x4907d0)||this[_0x4e25('0x16')]('ForwardDeletingAction')[_0x4e25('0xa')](_0x4dc8e0,_0x4907d0)||this[_0x4e25('0x16')](_0x4e25('0x3'))['compress'](_0x4dc8e0,_0x4907d0)||this[_0x4e25('0x16')](_0x4e25('0x8'))['compress'](_0x4dc8e0,_0x4907d0)||this[_0x4e25('0x16')](_0x4907d0[0x0][_0x4e25('0x18')])['compress'](_0x4dc8e0,_0x4907d0);return _0x4dc8e0;}['decompress'](_0x952cec){const _0x1d9124=[];for(;_0x952cec[_0x4e25('0xe')]['length'];){this[_0x4e25('0xc')][_0x4e25('0x11')](_0x952cec['types'][0x0])[_0x4e25('0x5')](_0x1d9124,_0x952cec);}return _0x1d9124[_0x4e25('0x9')]((_0x46f730,_0x5735c8)=>_0x46f730[_0x4e25('0x13')]=_0x952cec[_0x4e25('0x13')]+_0x5735c8),_0x1d9124;}[_0x4e25('0x16')](_0x3dcd8a){return this['_compressorByName']['get'](_0x3dcd8a);}['_registerOperationCompressor'](_0x27d4d,_0x533a38,_0x17f1eb){const _0x48329f=new _0x17f1eb(_0x27d4d,_0x533a38,this[_0x4e25('0x6')][_0x4e25('0x14')](_0x533a38));this[_0x4e25('0x1f')](_0x27d4d,_0x533a38,_0x48329f);}[_0x4e25('0x1d')](_0xc47502,_0x409d8e,_0x4a3a96){const _0x42cd83=new _0x4a3a96(_0xc47502,this);this[_0x4e25('0x1f')](_0xc47502,_0x409d8e,_0x42cd83);}[_0x4e25('0x1f')](_0x43a8eb,_0x424b1d,_0x13d166){this[_0x4e25('0xc')][_0x4e25('0x1c')](_0x43a8eb,_0x13d166),this[_0x4e25('0x15')][_0x4e25('0x1c')](_0x424b1d,_0x13d166);}}
23
+ const _0x3e32=['RenameOperation','no-operations-provided','ForwardDeletingAction','SuggestionMarkerOperation','_compressorById','get','_registerActionCompressor','RootAttributeOperation','InsertOperation','suggestion','types','decompress','comment','_protobufFactory','_compressorByName','DeletingAction','_registerOperationCompressor','length','__className','forEach','NoOperation','getDescriptor','MarkerOperation','set','compress','_registerCompressor','MergeOperation','UserSelectionAction','AttributeOperation','SplitOperation','_getCompressorByName','baseVersion'];(function(_0x3fa424,_0x3e3273){const _0xf017fa=function(_0x51bfd6){while(--_0x51bfd6){_0x3fa424['push'](_0x3fa424['shift']());}};_0xf017fa(++_0x3e3273);}(_0x3e32,0x16f));const _0xf017=function(_0x3fa424,_0x3e3273){_0x3fa424=_0x3fa424-0x0;let _0xf017fa=_0x3e32[_0x3fa424];return _0xf017fa;};import{CKEditorError as _0x4a57b0}from'ckeditor5/src/utils';import _0x305e20 from'./protobuffactory';import _0x1faa85 from'./operationcompressor/operationcompressor';import _0x492834 from'./operationcompressor/attributeoperationcompressor';import _0x2301b4 from'./operationcompressor/insertoperationcompressor';import _0x4ae45d from'./operationcompressor/markeroperationcompressor';import _0x536fdc from'./operationcompressor/nooperationcompressor';import _0x2761a8 from'./operationcompressor/annotationmarkeroperationcompressor';import _0x5575e9 from'./actioncompressor/typingactioncompressor';import _0x3cd53f from'./actioncompressor/deletingactioncompressor';import _0x476257 from'./actioncompressor/forwarddeletingactioncompressor';import _0x3a56a1 from'./actioncompressor/userselectionactioncompressor';export default class g{constructor(){this[_0xf017('0x15')]=new Map(),this[_0xf017('0x1f')]=new Map(),this[_0xf017('0x1e')]=new _0x305e20();const _0x35d721=this['_protobufFactory']['getDescriptor']('MarkerOperation');this['_registerCompressor'](0x1,'NoOperation',new _0x536fdc(0x1,_0xf017('0x5'),void 0x0)),this[_0xf017('0x1')](0xa,_0xf017('0xd'),_0x492834),this[_0xf017('0x1')](0xb,_0xf017('0x19'),_0x2301b4),this[_0xf017('0x1')](0xc,_0xf017('0x7'),_0x4ae45d),this[_0xf017('0x1')](0xd,_0xf017('0xb'),_0x1faa85),this[_0xf017('0x1')](0xe,'MoveOperation',_0x1faa85),this[_0xf017('0x1')](0xf,_0xf017('0x11'),_0x1faa85),this['_registerOperationCompressor'](0x10,_0xf017('0x18'),_0x492834),this[_0xf017('0x1')](0x11,_0xf017('0xe'),_0x1faa85),this[_0xf017('0xa')](0x12,'CommentMarkerOperation',new _0x2761a8(0x12,'MarkerOperation',_0x35d721,_0xf017('0x1d'))),this['_registerCompressor'](0x13,_0xf017('0x14'),new _0x2761a8(0x13,'MarkerOperation',_0x35d721,_0xf017('0x1a'))),this[_0xf017('0x1')](0x14,'RootOperation',_0x1faa85),this[_0xf017('0x17')](0x64,'TypingAction',_0x5575e9),this[_0xf017('0x17')](0x65,_0xf017('0x0'),_0x3cd53f),this['_registerActionCompressor'](0x66,_0xf017('0x13'),_0x476257),this[_0xf017('0x17')](0x67,_0xf017('0xc'),_0x3a56a1);}[_0xf017('0x9')](_0x16f826){if(!_0x16f826||!_0x16f826[0x0])throw new _0x4a57b0(_0xf017('0x12'),this);const _0x11d184={'types':[],'buffers':[],'baseVersion':_0x16f826[0x0][_0xf017('0x10')]};for(;_0x16f826[_0xf017('0x2')];)this[_0xf017('0xf')](_0xf017('0xc'))[_0xf017('0x9')](_0x11d184,_0x16f826)||this['_getCompressorByName']('TypingAction')[_0xf017('0x9')](_0x11d184,_0x16f826)||this['_getCompressorByName'](_0xf017('0x0'))[_0xf017('0x9')](_0x11d184,_0x16f826)||this[_0xf017('0xf')](_0xf017('0x13'))['compress'](_0x11d184,_0x16f826)||this[_0xf017('0xf')]('CommentMarkerOperation')[_0xf017('0x9')](_0x11d184,_0x16f826)||this[_0xf017('0xf')]('SuggestionMarkerOperation')['compress'](_0x11d184,_0x16f826)||this[_0xf017('0xf')](_0x16f826[0x0][_0xf017('0x3')])[_0xf017('0x9')](_0x11d184,_0x16f826);return _0x11d184;}['decompress'](_0x2a5506){const _0x94b3ff=[];for(;_0x2a5506[_0xf017('0x1b')]['length'];){this['_compressorById'][_0xf017('0x16')](_0x2a5506['types'][0x0])[_0xf017('0x1c')](_0x94b3ff,_0x2a5506);}return _0x94b3ff[_0xf017('0x4')]((_0x1ec71a,_0x36517a)=>_0x1ec71a['baseVersion']=_0x2a5506['baseVersion']+_0x36517a),_0x94b3ff;}[_0xf017('0xf')](_0x58b413){return this[_0xf017('0x1f')][_0xf017('0x16')](_0x58b413);}['_registerOperationCompressor'](_0x2f91d0,_0xecc7ac,_0x4e2586){const _0xe145a0=new _0x4e2586(_0x2f91d0,_0xecc7ac,this[_0xf017('0x1e')][_0xf017('0x6')](_0xecc7ac));this['_registerCompressor'](_0x2f91d0,_0xecc7ac,_0xe145a0);}['_registerActionCompressor'](_0x2ea79f,_0x1931c2,_0x35ae10){const _0x35ebbb=new _0x35ae10(_0x2ea79f,this);this['_registerCompressor'](_0x2ea79f,_0x1931c2,_0x35ebbb);}['_registerCompressor'](_0x23d7f9,_0xfbce7,_0x3d618d){this[_0xf017('0x15')][_0xf017('0x8')](_0x23d7f9,_0x3d618d),this['_compressorByName'][_0xf017('0x8')](_0xfbce7,_0x3d618d);}}