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

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.0",
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.0",
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 _0x3541=['_compressSingleOperation','buffers','_decompressSingleOperation','_context','_combineNext','types','shift','length','_id','push','decompress','_compareOperations'];(function(_0x1dd4c8,_0x354135){const _0x332841=function(_0x2b06c7){while(--_0x2b06c7){_0x1dd4c8['push'](_0x1dd4c8['shift']());}};_0x332841(++_0x354135);}(_0x3541,0xe1));const _0x3328=function(_0x1dd4c8,_0x354135){_0x1dd4c8=_0x1dd4c8-0x0;let _0x332841=_0x3541[_0x1dd4c8];return _0x332841;};import{cloneDeep as _0x311edf}from'lodash-es';export default class b{constructor(_0x85c9b7,_0x355272){this[_0x3328('0xb')]=_0x85c9b7,this[_0x3328('0x6')]=_0x355272;}['compress'](_0x5e0261,_0x44df5b){let _0x3db5d2;for(;_0x44df5b[_0x3328('0xa')]>0x1&&this[_0x3328('0x2')](_0x44df5b[0x0],_0x44df5b[0x1]);)_0x3db5d2?(_0x3db5d2=this['_combineNext'](_0x44df5b[_0x3328('0x9')](),_0x3db5d2),_0x5e0261[_0x3328('0x8')]['push'](0x0)):(_0x3db5d2=_0x311edf(_0x44df5b['shift']()),_0x5e0261[_0x3328('0x8')][_0x3328('0x0')](this[_0x3328('0xb')]));return!!_0x3db5d2&&(_0x3db5d2=this[_0x3328('0x7')](_0x44df5b['shift'](),_0x3db5d2),_0x5e0261[_0x3328('0x8')]['push'](0x0),_0x5e0261[_0x3328('0x4')][_0x3328('0x0')](this[_0x3328('0x3')](_0x3db5d2)),!0x0);}[_0x3328('0x1')](_0x3673e0,_0x29f7a2){const _0x295e84=this[_0x3328('0x5')](_0x29f7a2);for(;0x0==_0x29f7a2[_0x3328('0x8')][0x0];)_0x29f7a2[_0x3328('0x8')]['shift'](),_0x3673e0[_0x3328('0x0')](this['_splitCurrent'](_0x295e84));_0x3673e0[_0x3328('0x0')](_0x295e84);}}
@@ -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 _0x44fb=['MoveOperation','compress','targetPosition','decompress','_combineNext','_getCompressorByName','_compressSingleOperation','howMany','_checkOperation','_context','sourcePosition','wasUndone','_decompressSingleOperation','_splitCurrent'];(function(_0x5a1629,_0x44fba8){const _0x497324=function(_0x59f6e5){while(--_0x59f6e5){_0x5a1629['push'](_0x5a1629['shift']());}};_0x497324(++_0x44fba8);}(_0x44fb,0x1de));const _0x4973=function(_0x5a1629,_0x44fba8){_0x5a1629=_0x5a1629-0x0;let _0x497324=_0x44fb[_0x5a1629];return _0x497324;};import _0x5c028d from'./actioncompressor';import{arePositionsEqual as _0x51a062,getPositionShiftedBy as _0x392a9d}from'../utils';import{cloneDeep as _0x5797c7}from'lodash-es';export default class c extends _0x5c028d{[_0x4973('0x2')](_0x55bbc0,_0x28105a){return _0x28105a['howMany']++,_0x28105a['sourcePosition']=_0x5797c7(_0x55bbc0['sourcePosition']),_0x28105a;}[_0x4973('0xb')](_0x1cacae){const _0x380caa=_0x5797c7(_0x1cacae);return _0x1cacae['howMany']--,_0x380caa[_0x4973('0x5')]=0x1,_0x380caa[_0x4973('0x8')]=_0x392a9d(_0x380caa['sourcePosition'],_0x1cacae['howMany']),_0x380caa;}['_compareOperations'](_0x3ad8df,_0x3eef03){return!(!this[_0x4973('0x6')](_0x3ad8df)||!this['_checkOperation'](_0x3eef03))&&(_0x51a062(_0x392a9d(_0x3ad8df[_0x4973('0x8')],-0x1),_0x3eef03[_0x4973('0x8')])&&_0x51a062(_0x3ad8df['targetPosition'],_0x3eef03['targetPosition']));}[_0x4973('0x4')](_0x349610){const _0x2a914b={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x4973('0x7')][_0x4973('0x3')](_0x4973('0xc'))[_0x4973('0xd')](_0x2a914b,[_0x349610]),_0x2a914b['buffers'][0x0];}[_0x4973('0xa')](_0x59bc0e){const _0x3df65d=[];return this[_0x4973('0x7')]['_getCompressorByName'](_0x4973('0xc'))[_0x4973('0x1')](_0x3df65d,_0x59bc0e),_0x3df65d[0x0];}['_checkOperation'](_0x511dad){return _0x4973('0xc')==_0x511dad['__className']&&'$graveyard'==_0x511dad[_0x4973('0x0')]['root']&&0x1==_0x511dad[_0x4973('0x5')]&&!_0x511dad[_0x4973('0x9')];}}
@@ -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 _0x1ac9=['howMany','buffers','_getCompressorByName','_checkOperation','compress','$graveyard','__className','wasUndone','root','_context','targetPosition','MoveOperation','_splitCurrent','sourcePosition'];(function(_0x36f995,_0x1ac99b){const _0x3e14b4=function(_0x43c5ed){while(--_0x43c5ed){_0x36f995['push'](_0x36f995['shift']());}};_0x3e14b4(++_0x1ac99b);}(_0x1ac9,0x14b));const _0x3e14=function(_0x36f995,_0x1ac99b){_0x36f995=_0x36f995-0x0;let _0x3e14b4=_0x1ac9[_0x36f995];return _0x3e14b4;};import _0x3adc66 from'./actioncompressor';import{arePositionsEqual as _0x3af255}from'../utils';import{cloneDeep as _0xc9796d}from'lodash-es';export default class h extends _0x3adc66{['_combineNext'](_0x2cc298,_0x307658){return _0x307658[_0x3e14('0x5')]++,_0x307658;}[_0x3e14('0x3')](_0x317cfa){const _0x5e6885=_0xc9796d(_0x317cfa);return _0x5e6885['howMany']=0x1,_0x317cfa[_0x3e14('0x5')]--,_0x5e6885;}['_compareOperations'](_0x5a873e,_0x73f4b4){return!(!this[_0x3e14('0x8')](_0x5a873e)||!this[_0x3e14('0x8')](_0x73f4b4))&&(_0x3af255(_0x5a873e[_0x3e14('0x4')],_0x73f4b4[_0x3e14('0x4')])&&_0x3af255(_0x5a873e[_0x3e14('0x1')],_0x73f4b4['targetPosition']));}['_compressSingleOperation'](_0x71c628){const _0x41b426={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x3e14('0x0')]['_getCompressorByName'](_0x3e14('0x2'))[_0x3e14('0x9')](_0x41b426,[_0x71c628]),_0x41b426[_0x3e14('0x6')][0x0];}['_decompressSingleOperation'](_0x5a6a3d){const _0xfaaaf1=[];return this[_0x3e14('0x0')][_0x3e14('0x7')]('MoveOperation')['decompress'](_0xfaaaf1,_0x5a6a3d),_0xfaaaf1[0x0];}[_0x3e14('0x8')](_0x2858a5){return _0x3e14('0x2')==_0x2858a5[_0x3e14('0xb')]&&_0x3e14('0xa')==_0x2858a5[_0x3e14('0x1')][_0x3e14('0xd')]&&0x1==_0x2858a5['howMany']&&!_0x2858a5[_0x3e14('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 _0x4e0e=['next','compress','attributes','from','wasUndone','keys','length','InsertOperation','position','substr','_splitCurrent','every','__className','_getCompressorByName','_context','nodes','_compressSingleOperation','buffers','data','_compareOperations','_combineNext','value','_compareAttributes','_checkOperation'];(function(_0x1cafc4,_0x4e0ebc){const _0x5c8855=function(_0x98c35d){while(--_0x98c35d){_0x1cafc4['push'](_0x1cafc4['shift']());}};_0x5c8855(++_0x4e0ebc);}(_0x4e0e,0xdc));const _0x5c88=function(_0x1cafc4,_0x4e0ebc){_0x1cafc4=_0x1cafc4-0x0;let _0x5c8855=_0x4e0e[_0x1cafc4];return _0x5c8855;};import _0x4e6893 from'./actioncompressor';import{arePositionsEqual as _0x25bc79,getPositionShiftedBy as _0x246578}from'../utils';import{cloneDeep as _0x5ab85e}from'lodash-es';export default class m extends _0x4e6893{[_0x5c88('0x10')](_0x1716be,_0xbb174d){return _0xbb174d[_0x5c88('0xb')][0x0][_0x5c88('0xe')]+=_0x1716be['nodes'][0x0][_0x5c88('0xe')],_0xbb174d;}[_0x5c88('0x6')](_0x5049b5){const _0x4d59f9=_0x5ab85e(_0x5049b5),_0x1e16e5=_0x4d59f9[_0x5c88('0xb')][0x0],_0x3fc9f7=_0x5049b5[_0x5c88('0xb')][0x0],_0x340d75=_0x3fc9f7[_0x5c88('0xe')][Symbol['iterator']]()[_0x5c88('0x14')]()[_0x5c88('0x11')],_0x309eed=_0x340d75[_0x5c88('0x2')];return _0x1e16e5[_0x5c88('0xe')]=_0x340d75,_0x3fc9f7[_0x5c88('0xe')]=_0x3fc9f7[_0x5c88('0xe')][_0x5c88('0x5')](_0x309eed),_0x5049b5[_0x5c88('0x4')]=_0x246578(_0x5049b5[_0x5c88('0x4')],_0x309eed),_0x4d59f9;}[_0x5c88('0xf')](_0x28bb05,_0x52bc3f){if(this['_checkOperation'](_0x28bb05)&&this[_0x5c88('0x13')](_0x52bc3f)){const _0x2b19f9=_0x28bb05[_0x5c88('0xb')][0x0][_0x5c88('0xe')][_0x5c88('0x2')],_0x3eef21=_0x25bc79(_0x246578(_0x28bb05[_0x5c88('0x4')],_0x2b19f9),_0x52bc3f[_0x5c88('0x4')]),_0x4f188e=_0x28bb05[_0x5c88('0xb')][0x0],_0x4b19f6=_0x52bc3f[_0x5c88('0xb')][0x0];return _0x3eef21&&this[_0x5c88('0x12')](_0x4f188e,_0x4b19f6);}return!0x1;}[_0x5c88('0xc')](_0x23b2fe){const _0x24e79a={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName'](_0x5c88('0x3'))[_0x5c88('0x15')](_0x24e79a,[_0x23b2fe]),_0x24e79a[_0x5c88('0xd')][0x0];}['_decompressSingleOperation'](_0x4ed1d0){const _0x13f75d=[];return this[_0x5c88('0xa')][_0x5c88('0x9')](_0x5c88('0x3'))['decompress'](_0x13f75d,_0x4ed1d0),_0x13f75d[0x0];}['_checkOperation'](_0x4ced88){return _0x5c88('0x3')==_0x4ced88[_0x5c88('0x8')]&&0x1==_0x4ced88['nodes'][_0x5c88('0x2')]&&_0x4ced88['nodes'][0x0][_0x5c88('0xe')]&&!_0x4ced88[_0x5c88('0x0')]&&0x1==Array[_0x5c88('0x17')](_0x4ced88['nodes'][0x0][_0x5c88('0xe')])[_0x5c88('0x2')];}['_compareAttributes'](_0x2e3339,_0x3f6f0c){const _0x38accd=Object[_0x5c88('0x1')](_0x2e3339[_0x5c88('0x16')]||{}),_0x1ae979=Object[_0x5c88('0x1')](_0x3f6f0c['attributes']||{});return _0x38accd[_0x5c88('0x2')]===_0x1ae979[_0x5c88('0x2')]&&_0x38accd[_0x5c88('0x7')](_0x7e57f1=>_0x3f6f0c[_0x5c88('0x16')][_0x7e57f1]&&_0x3f6f0c[_0x5c88('0x16')][_0x7e57f1]===_0x2e3339[_0x5c88('0x16')][_0x7e57f1]);}}
@@ -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 _0x35ce=['decompress','push','buffers','_context','startsWith','oldRange','name','_getCompressorByName','__className','_id','start','end','MarkerOperation','toNone','newRange','stickiness','_compressSingleOperation','split','_decompressSingleOperation','shift','user:position:','types','compress','_compareOperations'];(function(_0xfafb2,_0x35ce8d){const _0x209689=function(_0x259c5f){while(--_0x259c5f){_0xfafb2['push'](_0xfafb2['shift']());}};_0x209689(++_0x35ce8d);}(_0x35ce,0x68));const _0x2096=function(_0xfafb2,_0x35ce8d){_0xfafb2=_0xfafb2-0x0;let _0x209689=_0x35ce[_0xfafb2];return _0x209689;};import _0x4cb46c from'./actioncompressor';import{arePositionsEqual as _0x521376}from'../utils';import{cloneDeep as _0x470191}from'lodash-es';export default class f extends _0x4cb46c{[_0x2096('0xe')](_0x32e734,_0x3e609c){if(!this[_0x2096('0xf')](_0x3e609c[0x0],_0x3e609c[0x1]))return!0x1;const _0x29c4ae=_0x3e609c[_0x2096('0xb')]();return _0x29c4ae[_0x2096('0x15')]=null,_0x29c4ae[_0x2096('0x6')]&&_0x521376(_0x29c4ae[_0x2096('0x6')][_0x2096('0x2')],_0x29c4ae['newRange'][_0x2096('0x3')])&&(_0x29c4ae[_0x2096('0x6')][_0x2096('0x3')]=null),_0x3e609c['shift'](),_0x32e734[_0x2096('0xd')]['push'](this[_0x2096('0x1')]),_0x32e734[_0x2096('0xd')]['push'](0x0),_0x32e734[_0x2096('0x12')][_0x2096('0x11')](this[_0x2096('0x8')](_0x29c4ae)),!0x0;}[_0x2096('0x10')](_0x65690f,_0x1fd9b0){const _0x45e7bb=this[_0x2096('0xa')](_0x1fd9b0);_0x45e7bb[_0x2096('0x6')]&&!_0x45e7bb[_0x2096('0x6')][_0x2096('0x3')]&&(_0x45e7bb[_0x2096('0x6')]['end']=_0x470191(_0x45e7bb[_0x2096('0x6')]['start']));const _0x2f1981=_0x470191(_0x45e7bb);_0x2f1981[_0x2096('0x6')]&&(_0x2f1981[_0x2096('0x6')][_0x2096('0x2')][_0x2096('0x7')]=_0x2096('0x5'),_0x2f1981['newRange']['end']=_0x470191(_0x2f1981[_0x2096('0x6')][_0x2096('0x2')])),_0x2f1981[_0x2096('0x16')]=_0x2096('0xc')+_0x2f1981[_0x2096('0x16')][_0x2096('0x9')](':')[0x2],_0x1fd9b0[_0x2096('0xd')][_0x2096('0xb')](),_0x65690f[_0x2096('0x11')](_0x45e7bb),_0x65690f[_0x2096('0x11')](_0x2f1981);}[_0x2096('0x8')](_0x5af24d){const _0x315a18={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x2096('0x13')][_0x2096('0x17')](_0x2096('0x4'))['compress'](_0x315a18,[_0x5af24d]),_0x315a18[_0x2096('0x12')][0x0];}[_0x2096('0xa')](_0x27ac3c){const _0x31a659=[];return this[_0x2096('0x13')][_0x2096('0x17')](_0x2096('0x4'))[_0x2096('0x10')](_0x31a659,_0x27ac3c),_0x31a659[0x0];}[_0x2096('0xf')](_0x581639,_0xfeff3f){return!(!_0x581639||!_0xfeff3f)&&(_0x2096('0x4')==_0x581639['__className']&&'MarkerOperation'==_0xfeff3f[_0x2096('0x0')]&&!(!_0x581639[_0x2096('0x16')][_0x2096('0x14')]('user:')||!_0xfeff3f['name'][_0x2096('0x14')]('user:')||_0x581639['name']==_0xfeff3f['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 _0x10b4=['_protobufFactory','suggestion','forEach','InsertOperation','MoveOperation','NoOperation','MergeOperation','RenameOperation','baseVersion','no-operations-provided','compress','_registerCompressor','_compressorById','_compressorByName','SplitOperation','AttributeOperation','_getCompressorByName','CommentMarkerOperation','DeletingAction','MarkerOperation','ForwardDeletingAction','_registerOperationCompressor','length','decompress','_registerActionCompressor','set','types','SuggestionMarkerOperation','RootOperation','TypingAction','UserSelectionAction','getDescriptor','__className'];(function(_0x1ffa18,_0x10b40a){const _0x5deb19=function(_0x1ec4f7){while(--_0x1ec4f7){_0x1ffa18['push'](_0x1ffa18['shift']());}};_0x5deb19(++_0x10b40a);}(_0x10b4,0xea));const _0x5deb=function(_0x1ffa18,_0x10b40a){_0x1ffa18=_0x1ffa18-0x0;let _0x5deb19=_0x10b4[_0x1ffa18];return _0x5deb19;};import{CKEditorError as _0x35864d}from'ckeditor5/src/utils';import _0x361b66 from'./protobuffactory';import _0x4dad20 from'./operationcompressor/operationcompressor';import _0x47e3ed from'./operationcompressor/attributeoperationcompressor';import _0x62115e from'./operationcompressor/insertoperationcompressor';import _0x2bfed1 from'./operationcompressor/markeroperationcompressor';import _0x1156ca from'./operationcompressor/nooperationcompressor';import _0x440012 from'./operationcompressor/annotationmarkeroperationcompressor';import _0x52372c from'./actioncompressor/typingactioncompressor';import _0x8856b8 from'./actioncompressor/deletingactioncompressor';import _0x136d1a from'./actioncompressor/forwarddeletingactioncompressor';import _0xcf3bd5 from'./actioncompressor/userselectionactioncompressor';export default class g{constructor(){this[_0x5deb('0x9')]=new Map(),this[_0x5deb('0xa')]=new Map(),this['_protobufFactory']=new _0x361b66();const _0x15d8b4=this[_0x5deb('0x1e')]['getDescriptor'](_0x5deb('0x10'));this['_registerCompressor'](0x1,_0x5deb('0x2'),new _0x1156ca(0x1,_0x5deb('0x2'),void 0x0)),this[_0x5deb('0x12')](0xa,_0x5deb('0xc'),_0x47e3ed),this['_registerOperationCompressor'](0xb,_0x5deb('0x0'),_0x62115e),this[_0x5deb('0x12')](0xc,_0x5deb('0x10'),_0x2bfed1),this[_0x5deb('0x12')](0xd,_0x5deb('0x3'),_0x4dad20),this[_0x5deb('0x12')](0xe,_0x5deb('0x1'),_0x4dad20),this[_0x5deb('0x12')](0xf,_0x5deb('0x4'),_0x4dad20),this['_registerOperationCompressor'](0x10,'RootAttributeOperation',_0x47e3ed),this['_registerOperationCompressor'](0x11,_0x5deb('0xb'),_0x4dad20),this['_registerCompressor'](0x12,'CommentMarkerOperation',new _0x440012(0x12,_0x5deb('0x10'),_0x15d8b4,'comment')),this[_0x5deb('0x8')](0x13,_0x5deb('0x18'),new _0x440012(0x13,'MarkerOperation',_0x15d8b4,_0x5deb('0x1f'))),this['_registerOperationCompressor'](0x14,_0x5deb('0x19'),_0x4dad20),this['_registerActionCompressor'](0x64,_0x5deb('0x1a'),_0x52372c),this[_0x5deb('0x15')](0x65,_0x5deb('0xf'),_0x8856b8),this[_0x5deb('0x15')](0x66,_0x5deb('0x11'),_0x136d1a),this[_0x5deb('0x15')](0x67,_0x5deb('0x1b'),_0xcf3bd5);}[_0x5deb('0x7')](_0x264d94){if(!_0x264d94||!_0x264d94[0x0])throw new _0x35864d(_0x5deb('0x6'),this);const _0x410a51={'types':[],'buffers':[],'baseVersion':_0x264d94[0x0][_0x5deb('0x5')]};for(;_0x264d94[_0x5deb('0x13')];)this['_getCompressorByName']('UserSelectionAction')[_0x5deb('0x7')](_0x410a51,_0x264d94)||this[_0x5deb('0xd')](_0x5deb('0x1a'))['compress'](_0x410a51,_0x264d94)||this['_getCompressorByName'](_0x5deb('0xf'))[_0x5deb('0x7')](_0x410a51,_0x264d94)||this['_getCompressorByName'](_0x5deb('0x11'))['compress'](_0x410a51,_0x264d94)||this[_0x5deb('0xd')](_0x5deb('0xe'))[_0x5deb('0x7')](_0x410a51,_0x264d94)||this[_0x5deb('0xd')](_0x5deb('0x18'))[_0x5deb('0x7')](_0x410a51,_0x264d94)||this[_0x5deb('0xd')](_0x264d94[0x0][_0x5deb('0x1d')])['compress'](_0x410a51,_0x264d94);return _0x410a51;}[_0x5deb('0x14')](_0x2c8f87){const _0x260ba5=[];for(;_0x2c8f87['types'][_0x5deb('0x13')];){this[_0x5deb('0x9')]['get'](_0x2c8f87[_0x5deb('0x17')][0x0])[_0x5deb('0x14')](_0x260ba5,_0x2c8f87);}return _0x260ba5[_0x5deb('0x20')]((_0x118052,_0x12b5f2)=>_0x118052[_0x5deb('0x5')]=_0x2c8f87[_0x5deb('0x5')]+_0x12b5f2),_0x260ba5;}[_0x5deb('0xd')](_0x945b99){return this['_compressorByName']['get'](_0x945b99);}[_0x5deb('0x12')](_0xb4dff3,_0x5e3245,_0x394c21){const _0x569b9b=new _0x394c21(_0xb4dff3,_0x5e3245,this['_protobufFactory'][_0x5deb('0x1c')](_0x5e3245));this[_0x5deb('0x8')](_0xb4dff3,_0x5e3245,_0x569b9b);}[_0x5deb('0x15')](_0xbb119,_0x5c34d5,_0x3e6c9c){const _0x142ef3=new _0x3e6c9c(_0xbb119,this);this['_registerCompressor'](_0xbb119,_0x5c34d5,_0x142ef3);}[_0x5deb('0x8')](_0x30cc8b,_0x28e261,_0x417a29){this[_0x5deb('0x9')][_0x5deb('0x16')](_0x30cc8b,_0x417a29),this['_compressorByName']['set'](_0x28e261,_0x417a29);}}