@ckeditor/ckeditor5-operations-compressor 40.2.0 → 41.1.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 (34) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +2 -2
  3. package/package.json +3 -2
  4. package/src/actioncompressor/actioncompressor.d.ts +2 -2
  5. package/src/actioncompressor/actioncompressor.js +2 -2
  6. package/src/actioncompressor/deletingactioncompressor.d.ts +3 -3
  7. package/src/actioncompressor/deletingactioncompressor.js +2 -2
  8. package/src/actioncompressor/forwarddeletingactioncompressor.d.ts +3 -3
  9. package/src/actioncompressor/forwarddeletingactioncompressor.js +2 -2
  10. package/src/actioncompressor/typingactioncompressor.d.ts +3 -3
  11. package/src/actioncompressor/typingactioncompressor.js +2 -2
  12. package/src/actioncompressor/userselectionactioncompressor.d.ts +3 -3
  13. package/src/actioncompressor/userselectionactioncompressor.js +2 -2
  14. package/src/compressor.d.ts +1 -1
  15. package/src/compressor.js +2 -2
  16. package/src/lib/compiledmessages.js +2 -2
  17. package/src/operationcompressor/annotationmarkeroperationcompressor.d.ts +5 -5
  18. package/src/operationcompressor/annotationmarkeroperationcompressor.js +2 -2
  19. package/src/operationcompressor/attributeoperationcompressor.d.ts +4 -4
  20. package/src/operationcompressor/attributeoperationcompressor.js +2 -2
  21. package/src/operationcompressor/insertoperationcompressor.d.ts +4 -4
  22. package/src/operationcompressor/insertoperationcompressor.js +2 -2
  23. package/src/operationcompressor/markeroperationcompressor.d.ts +4 -4
  24. package/src/operationcompressor/markeroperationcompressor.js +2 -2
  25. package/src/operationcompressor/nooperationcompressor.d.ts +4 -4
  26. package/src/operationcompressor/nooperationcompressor.js +2 -2
  27. package/src/operationcompressor/operationcompressor.d.ts +4 -4
  28. package/src/operationcompressor/operationcompressor.js +2 -2
  29. package/src/protobufdescriptions.d.ts +1 -1
  30. package/src/protobufdescriptions.js +2 -2
  31. package/src/protobuffactory.d.ts +1 -1
  32. package/src/protobuffactory.js +2 -2
  33. package/src/utils.d.ts +1 -1
  34. package/src/utils.js +2 -2
package/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor&nbsp;5 operations compressor**<br>
5
- Copyright (c) 2003–2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
5
+ Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
6
6
 
7
7
  CKEditor&nbsp;5 operations compressor is licensed under a commercial license and is protected by copyright law.
8
8
  For more details about available licensing options please contact us at sales@cksource.com.
package/README.md CHANGED
@@ -2,7 +2,7 @@
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
4
 
5
- CKEditor&nbsp;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&nbsp;5 real-time collaborative editing](https://ckeditor.com/collaboration/real-time/) feature to enable collaboration in [CKEditor&nbsp;5](https://ckeditor.com/ckeditor-5/).
5
+ CKEditor&nbsp;5 operations compressor is a low-level API that compresses and decompresses operations to a normalized binary format to decrease network usage during real-time collaborative editing. It is required by the [CKEditor&nbsp;5 real-time collaborative editing](https://ckeditor.com/collaboration/real-time/) feature to enable collaboration in [CKEditor&nbsp;5](https://ckeditor.com/ckeditor-5/).
6
6
 
7
7
  ## Documentation
8
8
 
@@ -19,7 +19,7 @@ As a licensed CKEditor&nbsp;5 Collaboration features user you can report bugs an
19
19
  ## License
20
20
 
21
21
  **CKEditor&nbsp;5 operations compressor**<br>
22
- Copyright (c) 2003–2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
22
+ Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
23
23
 
24
24
  CKEditor&nbsp;5 operations compressor is licensed under a commercial license and is protected by copyright law.
25
25
  For more details about available licensing options please contact us at sales@cksource.com.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-operations-compressor",
3
- "version": "40.2.0",
3
+ "version": "41.1.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/",
@@ -29,8 +29,9 @@
29
29
  "bugs": {
30
30
  "url": "https://support.ckeditor.com/hc/en-us/requests/new"
31
31
  },
32
+ "type": "module",
32
33
  "dependencies": {
33
- "ckeditor5": "40.2.0",
34
+ "ckeditor5": "41.1.0",
34
35
  "lodash-es": "4.17.21",
35
36
  "protobufjs": "7.2.4"
36
37
  },
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { CompressedOperationsData, default as Compressor } from '../compressor';
5
+ import type { CompressedOperationsData, default as Compressor } from '../compressor.js';
6
6
  /**
7
7
  * * Compresses and decompresses multiple operations into the one buffer.
8
8
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x4311=['types','buffers','compress','_context','_decompressSingleOperation','_splitCurrent','_id','length','_compareOperations','shift','push','_combineNext'];(function(_0xaeaee6,_0x4311ab){const _0x1a6ef6=function(_0x45ef6e){while(--_0x45ef6e){_0xaeaee6['push'](_0xaeaee6['shift']());}};_0x1a6ef6(++_0x4311ab);}(_0x4311,0x91));const _0x1a6e=function(_0xaeaee6,_0x4311ab){_0xaeaee6=_0xaeaee6-0x0;let _0x1a6ef6=_0x4311[_0xaeaee6];return _0x1a6ef6;};import{cloneDeep as _0x5eb656}from'lodash-es';export default class b{constructor(_0x1b9562,_0xe54fbe){this['_id']=_0x1b9562,this[_0x1a6e('0x2')]=_0xe54fbe;}[_0x1a6e('0x1')](_0x494197,_0x5b9ae4){let _0xd49b01;for(;_0x5b9ae4[_0x1a6e('0x6')]>0x1&&this[_0x1a6e('0x7')](_0x5b9ae4[0x0],_0x5b9ae4[0x1]);)_0xd49b01?(_0xd49b01=this[_0x1a6e('0xa')](_0x5b9ae4[_0x1a6e('0x8')](),_0xd49b01),_0x494197[_0x1a6e('0xb')][_0x1a6e('0x9')](0x0)):(_0xd49b01=_0x5eb656(_0x5b9ae4[_0x1a6e('0x8')]()),_0x494197[_0x1a6e('0xb')][_0x1a6e('0x9')](this[_0x1a6e('0x5')]));return!!_0xd49b01&&(_0xd49b01=this[_0x1a6e('0xa')](_0x5b9ae4['shift'](),_0xd49b01),_0x494197[_0x1a6e('0xb')]['push'](0x0),_0x494197[_0x1a6e('0x0')][_0x1a6e('0x9')](this['_compressSingleOperation'](_0xd49b01)),!0x0);}['decompress'](_0x203d47,_0x5b06b1){const _0x727e99=this[_0x1a6e('0x3')](_0x5b06b1);for(;0x0==_0x5b06b1[_0x1a6e('0xb')][0x0];)_0x5b06b1[_0x1a6e('0xb')][_0x1a6e('0x8')](),_0x203d47[_0x1a6e('0x9')](this[_0x1a6e('0x4')](_0x727e99));_0x203d47[_0x1a6e('0x9')](_0x727e99);}}
23
+ const _0x184e=['_splitCurrent','_combineNext','_id','shift','types','push','buffers','compress','_compressSingleOperation','length','_decompressSingleOperation'];(function(_0x4b875c,_0x184e6c){const _0x492122=function(_0x4347f1){while(--_0x4347f1){_0x4b875c['push'](_0x4b875c['shift']());}};_0x492122(++_0x184e6c);}(_0x184e,0x1a1));const _0x4921=function(_0x4b875c,_0x184e6c){_0x4b875c=_0x4b875c-0x0;let _0x492122=_0x184e[_0x4b875c];return _0x492122;};import{cloneDeep as _0x24c57c}from'lodash-es';export default class b{constructor(_0x2239cd,_0x3157d9){this[_0x4921('0x3')]=_0x2239cd,this['_context']=_0x3157d9;}[_0x4921('0x8')](_0x28d307,_0x43c6cf){let _0x36a96b;for(;_0x43c6cf[_0x4921('0xa')]>0x1&&this['_compareOperations'](_0x43c6cf[0x0],_0x43c6cf[0x1]);)_0x36a96b?(_0x36a96b=this[_0x4921('0x2')](_0x43c6cf[_0x4921('0x4')](),_0x36a96b),_0x28d307[_0x4921('0x5')][_0x4921('0x6')](0x0)):(_0x36a96b=_0x24c57c(_0x43c6cf[_0x4921('0x4')]()),_0x28d307[_0x4921('0x5')][_0x4921('0x6')](this[_0x4921('0x3')]));return!!_0x36a96b&&(_0x36a96b=this[_0x4921('0x2')](_0x43c6cf[_0x4921('0x4')](),_0x36a96b),_0x28d307['types'][_0x4921('0x6')](0x0),_0x28d307[_0x4921('0x7')][_0x4921('0x6')](this[_0x4921('0x9')](_0x36a96b)),!0x0);}['decompress'](_0x4a9161,_0x487b9a){const _0x9d2e17=this[_0x4921('0x0')](_0x487b9a);for(;0x0==_0x487b9a[_0x4921('0x5')][0x0];)_0x487b9a[_0x4921('0x5')][_0x4921('0x4')](),_0x4a9161[_0x4921('0x6')](this[_0x4921('0x1')](_0x9d2e17));_0x4a9161[_0x4921('0x6')](_0x9d2e17);}}
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import ActionCompressor from './actioncompressor';
6
- import type { CompressedOperationsData } from '../compressor';
5
+ import ActionCompressor from './actioncompressor.js';
6
+ import type { CompressedOperationsData } from '../compressor.js';
7
7
  export default class DeletingActionCompressor extends ActionCompressor {
8
8
  /**
9
9
  * @inheritDoc
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x2ed6=['_combineNext','sourcePosition','_getCompressorByName','_context','_compareOperations','root','_checkOperation','$graveyard','MoveOperation','decompress','_splitCurrent','targetPosition','compress','wasUndone','__className','howMany'];(function(_0x129133,_0x2ed6c5){const _0x2692ed=function(_0x4e0c7d){while(--_0x4e0c7d){_0x129133['push'](_0x129133['shift']());}};_0x2692ed(++_0x2ed6c5);}(_0x2ed6,0xb2));const _0x2692=function(_0x129133,_0x2ed6c5){_0x129133=_0x129133-0x0;let _0x2692ed=_0x2ed6[_0x129133];return _0x2692ed;};import _0x40e73f from'./actioncompressor';import{arePositionsEqual as _0x107c24,getPositionShiftedBy as _0x2c9db6}from'../utils';import{cloneDeep as _0xd78ea4}from'lodash-es';export default class c extends _0x40e73f{[_0x2692('0xe')](_0x4910b1,_0x486d20){return _0x486d20[_0x2692('0xd')]++,_0x486d20[_0x2692('0xf')]=_0xd78ea4(_0x4910b1['sourcePosition']),_0x486d20;}[_0x2692('0x8')](_0x54a8ad){const _0xb15582=_0xd78ea4(_0x54a8ad);return _0x54a8ad[_0x2692('0xd')]--,_0xb15582[_0x2692('0xd')]=0x1,_0xb15582['sourcePosition']=_0x2c9db6(_0xb15582['sourcePosition'],_0x54a8ad['howMany']),_0xb15582;}[_0x2692('0x2')](_0x21549b,_0x871ee7){return!(!this['_checkOperation'](_0x21549b)||!this[_0x2692('0x4')](_0x871ee7))&&(_0x107c24(_0x2c9db6(_0x21549b[_0x2692('0xf')],-0x1),_0x871ee7[_0x2692('0xf')])&&_0x107c24(_0x21549b[_0x2692('0x9')],_0x871ee7['targetPosition']));}['_compressSingleOperation'](_0x35bc66){const _0x29c154={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x2692('0x1')][_0x2692('0x0')](_0x2692('0x6'))[_0x2692('0xa')](_0x29c154,[_0x35bc66]),_0x29c154['buffers'][0x0];}['_decompressSingleOperation'](_0x17b1ed){const _0x2a4263=[];return this[_0x2692('0x1')][_0x2692('0x0')]('MoveOperation')[_0x2692('0x7')](_0x2a4263,_0x17b1ed),_0x2a4263[0x0];}[_0x2692('0x4')](_0x4bc689){return _0x2692('0x6')==_0x4bc689[_0x2692('0xc')]&&_0x2692('0x5')==_0x4bc689[_0x2692('0x9')][_0x2692('0x3')]&&0x1==_0x4bc689[_0x2692('0xd')]&&!_0x4bc689[_0x2692('0xb')];}}
23
+ const _0x4706=['root','MoveOperation','_checkOperation','howMany','buffers','targetPosition','wasUndone','_splitCurrent','__className','$graveyard','_context','sourcePosition','_getCompressorByName','_combineNext','_compareOperations','_decompressSingleOperation','_compressSingleOperation','compress'];(function(_0x36c05e,_0x4706db){const _0x1970ac=function(_0x2a8a54){while(--_0x2a8a54){_0x36c05e['push'](_0x36c05e['shift']());}};_0x1970ac(++_0x4706db);}(_0x4706,0x14a));const _0x1970=function(_0x36c05e,_0x4706db){_0x36c05e=_0x36c05e-0x0;let _0x1970ac=_0x4706[_0x36c05e];return _0x1970ac;};import _0x616bba from'./actioncompressor.js';import{arePositionsEqual as _0x5c493e,getPositionShiftedBy as _0x6d4fb3}from'../utils.js';import{cloneDeep as _0x5d1d94}from'lodash-es';export default class c extends _0x616bba{[_0x1970('0x7')](_0x594d60,_0x13f104){return _0x13f104[_0x1970('0xf')]++,_0x13f104[_0x1970('0x5')]=_0x5d1d94(_0x594d60['sourcePosition']),_0x13f104;}[_0x1970('0x1')](_0x4c622e){const _0x19a091=_0x5d1d94(_0x4c622e);return _0x4c622e[_0x1970('0xf')]--,_0x19a091[_0x1970('0xf')]=0x1,_0x19a091['sourcePosition']=_0x6d4fb3(_0x19a091['sourcePosition'],_0x4c622e['howMany']),_0x19a091;}[_0x1970('0x8')](_0x397877,_0x502898){return!(!this[_0x1970('0xe')](_0x397877)||!this['_checkOperation'](_0x502898))&&(_0x5c493e(_0x6d4fb3(_0x397877['sourcePosition'],-0x1),_0x502898[_0x1970('0x5')])&&_0x5c493e(_0x397877[_0x1970('0x11')],_0x502898['targetPosition']));}[_0x1970('0xa')](_0x2aec37){const _0x3e5774={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x1970('0x6')](_0x1970('0xd'))[_0x1970('0xb')](_0x3e5774,[_0x2aec37]),_0x3e5774[_0x1970('0x10')][0x0];}[_0x1970('0x9')](_0xcd173f){const _0x71e37f=[];return this[_0x1970('0x4')][_0x1970('0x6')]('MoveOperation')['decompress'](_0x71e37f,_0xcd173f),_0x71e37f[0x0];}['_checkOperation'](_0x417f99){return _0x1970('0xd')==_0x417f99[_0x1970('0x2')]&&_0x1970('0x3')==_0x417f99[_0x1970('0x11')][_0x1970('0xc')]&&0x1==_0x417f99['howMany']&&!_0x417f99[_0x1970('0x0')];}}
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import ActionCompressor from './actioncompressor';
6
- import type { CompressedOperationsData } from '../compressor';
5
+ import ActionCompressor from './actioncompressor.js';
6
+ import type { CompressedOperationsData } from '../compressor.js';
7
7
  export default class ForwardDeletingActionCompressor extends ActionCompressor {
8
8
  /**
9
9
  * @inheritDoc
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0xb4cd=['wasUndone','_compareOperations','_context','_getCompressorByName','__className','root','_compressSingleOperation','MoveOperation','decompress','_checkOperation','sourcePosition','_decompressSingleOperation','compress','howMany','targetPosition'];(function(_0x192fd7,_0xb4cd40){const _0x267200=function(_0x5d3e5e){while(--_0x5d3e5e){_0x192fd7['push'](_0x192fd7['shift']());}};_0x267200(++_0xb4cd40);}(_0xb4cd,0x6a));const _0x2672=function(_0x192fd7,_0xb4cd40){_0x192fd7=_0x192fd7-0x0;let _0x267200=_0xb4cd[_0x192fd7];return _0x267200;};import _0x4957f4 from'./actioncompressor';import{arePositionsEqual as _0x2c6b61}from'../utils';import{cloneDeep as _0x18e53e}from'lodash-es';export default class h extends _0x4957f4{['_combineNext'](_0xf01d0c,_0x30e693){return _0x30e693[_0x2672('0xc')]++,_0x30e693;}['_splitCurrent'](_0x2c786b){const _0x400dda=_0x18e53e(_0x2c786b);return _0x400dda[_0x2672('0xc')]=0x1,_0x2c786b[_0x2672('0xc')]--,_0x400dda;}[_0x2672('0x0')](_0x568b62,_0x55b96d){return!(!this['_checkOperation'](_0x568b62)||!this['_checkOperation'](_0x55b96d))&&(_0x2c6b61(_0x568b62[_0x2672('0x9')],_0x55b96d[_0x2672('0x9')])&&_0x2c6b61(_0x568b62['targetPosition'],_0x55b96d[_0x2672('0xd')]));}[_0x2672('0x5')](_0x264ae6){const _0x1fcf37={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x2672('0x1')]['_getCompressorByName'](_0x2672('0x6'))[_0x2672('0xb')](_0x1fcf37,[_0x264ae6]),_0x1fcf37['buffers'][0x0];}[_0x2672('0xa')](_0x1fc1e3){const _0x1d8c54=[];return this[_0x2672('0x1')][_0x2672('0x2')](_0x2672('0x6'))[_0x2672('0x7')](_0x1d8c54,_0x1fc1e3),_0x1d8c54[0x0];}[_0x2672('0x8')](_0x3dd404){return _0x2672('0x6')==_0x3dd404[_0x2672('0x3')]&&'$graveyard'==_0x3dd404['targetPosition'][_0x2672('0x4')]&&0x1==_0x3dd404[_0x2672('0xc')]&&!_0x3dd404[_0x2672('0xe')];}}
23
+ const _0x52f5=['_compressSingleOperation','__className','_compareOperations','_checkOperation','decompress','buffers','targetPosition','root','MoveOperation','compress','_getCompressorByName','$graveyard','sourcePosition','_combineNext','_splitCurrent','_decompressSingleOperation','_context','howMany'];(function(_0x4929a3,_0x52f540){const _0x2c89e9=function(_0x33f9c4){while(--_0x33f9c4){_0x4929a3['push'](_0x4929a3['shift']());}};_0x2c89e9(++_0x52f540);}(_0x52f5,0x197));const _0x2c89=function(_0x4929a3,_0x52f540){_0x4929a3=_0x4929a3-0x0;let _0x2c89e9=_0x52f5[_0x4929a3];return _0x2c89e9;};import _0x36e367 from'./actioncompressor.js';import{arePositionsEqual as _0x2de4a5}from'../utils.js';import{cloneDeep as _0xda3efa}from'lodash-es';export default class h extends _0x36e367{[_0x2c89('0x2')](_0xee2225,_0x24ba69){return _0x24ba69[_0x2c89('0x6')]++,_0x24ba69;}[_0x2c89('0x3')](_0x303051){const _0x18c131=_0xda3efa(_0x303051);return _0x18c131['howMany']=0x1,_0x303051[_0x2c89('0x6')]--,_0x18c131;}[_0x2c89('0x9')](_0x50831f,_0x29ed4f){return!(!this[_0x2c89('0xa')](_0x50831f)||!this[_0x2c89('0xa')](_0x29ed4f))&&(_0x2de4a5(_0x50831f['sourcePosition'],_0x29ed4f[_0x2c89('0x1')])&&_0x2de4a5(_0x50831f[_0x2c89('0xd')],_0x29ed4f[_0x2c89('0xd')]));}[_0x2c89('0x7')](_0x5d9c08){const _0x495153={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x2c89('0x5')][_0x2c89('0x11')](_0x2c89('0xf'))[_0x2c89('0x10')](_0x495153,[_0x5d9c08]),_0x495153[_0x2c89('0xc')][0x0];}[_0x2c89('0x4')](_0x14ddb7){const _0x55c857=[];return this[_0x2c89('0x5')]['_getCompressorByName'](_0x2c89('0xf'))[_0x2c89('0xb')](_0x55c857,_0x14ddb7),_0x55c857[0x0];}[_0x2c89('0xa')](_0x44306e){return _0x2c89('0xf')==_0x44306e[_0x2c89('0x8')]&&_0x2c89('0x0')==_0x44306e[_0x2c89('0xd')][_0x2c89('0xe')]&&0x1==_0x44306e[_0x2c89('0x6')]&&!_0x44306e['wasUndone'];}}
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import ActionCompressor from './actioncompressor';
6
- import type { CompressedOperationsData } from '../compressor';
5
+ import ActionCompressor from './actioncompressor.js';
6
+ import type { CompressedOperationsData } from '../compressor.js';
7
7
  export default class TypingActionCompressor extends ActionCompressor {
8
8
  /**
9
9
  * @inheritDocs
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x451e=['_combineNext','compress','keys','position','wasUndone','length','_decompressSingleOperation','_compressSingleOperation','_compareOperations','next','_checkOperation','attributes','_compareAttributes','nodes','_context','__className','substr','decompress','InsertOperation','data','from','_getCompressorByName'];(function(_0x230d6c,_0x451e63){const _0xf1eb25=function(_0x5f1225){while(--_0x5f1225){_0x230d6c['push'](_0x230d6c['shift']());}};_0xf1eb25(++_0x451e63);}(_0x451e,0xf7));const _0xf1eb=function(_0x230d6c,_0x451e63){_0x230d6c=_0x230d6c-0x0;let _0xf1eb25=_0x451e[_0x230d6c];return _0xf1eb25;};import _0x54e4a9 from'./actioncompressor';import{arePositionsEqual as _0x14093b,getPositionShiftedBy as _0x176401}from'../utils';import{cloneDeep as _0xad6e31}from'lodash-es';export default class m extends _0x54e4a9{[_0xf1eb('0x11')](_0x47fb04,_0xd72c4b){return _0xd72c4b[_0xf1eb('0x8')][0x0][_0xf1eb('0xe')]+=_0x47fb04[_0xf1eb('0x8')][0x0][_0xf1eb('0xe')],_0xd72c4b;}['_splitCurrent'](_0x547547){const _0x434aa5=_0xad6e31(_0x547547),_0x397d37=_0x434aa5[_0xf1eb('0x8')][0x0],_0x301abf=_0x547547[_0xf1eb('0x8')][0x0],_0x279686=_0x301abf[_0xf1eb('0xe')][Symbol['iterator']]()[_0xf1eb('0x4')]()['value'],_0x187384=_0x279686[_0xf1eb('0x0')];return _0x397d37[_0xf1eb('0xe')]=_0x279686,_0x301abf[_0xf1eb('0xe')]=_0x301abf[_0xf1eb('0xe')][_0xf1eb('0xb')](_0x187384),_0x547547[_0xf1eb('0x14')]=_0x176401(_0x547547[_0xf1eb('0x14')],_0x187384),_0x434aa5;}[_0xf1eb('0x3')](_0xf00abb,_0x509e1b){if(this['_checkOperation'](_0xf00abb)&&this[_0xf1eb('0x5')](_0x509e1b)){const _0x1033be=_0xf00abb[_0xf1eb('0x8')][0x0][_0xf1eb('0xe')][_0xf1eb('0x0')],_0x442fe3=_0x14093b(_0x176401(_0xf00abb[_0xf1eb('0x14')],_0x1033be),_0x509e1b[_0xf1eb('0x14')]),_0x50f5c5=_0xf00abb[_0xf1eb('0x8')][0x0],_0x430edc=_0x509e1b[_0xf1eb('0x8')][0x0];return _0x442fe3&&this[_0xf1eb('0x7')](_0x50f5c5,_0x430edc);}return!0x1;}[_0xf1eb('0x2')](_0x50b5c3){const _0x1891d5={'types':[],'buffers':[],'baseVersion':0x0};return this[_0xf1eb('0x9')][_0xf1eb('0x10')]('InsertOperation')[_0xf1eb('0x12')](_0x1891d5,[_0x50b5c3]),_0x1891d5['buffers'][0x0];}[_0xf1eb('0x1')](_0x5006a7){const _0x457139=[];return this['_context'][_0xf1eb('0x10')](_0xf1eb('0xd'))[_0xf1eb('0xc')](_0x457139,_0x5006a7),_0x457139[0x0];}['_checkOperation'](_0x13c28b){return _0xf1eb('0xd')==_0x13c28b[_0xf1eb('0xa')]&&0x1==_0x13c28b['nodes']['length']&&_0x13c28b['nodes'][0x0][_0xf1eb('0xe')]&&!_0x13c28b[_0xf1eb('0x15')]&&0x1==Array[_0xf1eb('0xf')](_0x13c28b[_0xf1eb('0x8')][0x0][_0xf1eb('0xe')])[_0xf1eb('0x0')];}[_0xf1eb('0x7')](_0x2223dc,_0x45c41f){const _0x43b5f7=Object[_0xf1eb('0x13')](_0x2223dc[_0xf1eb('0x6')]||{}),_0x3f891d=Object[_0xf1eb('0x13')](_0x45c41f[_0xf1eb('0x6')]||{});return _0x43b5f7[_0xf1eb('0x0')]===_0x3f891d['length']&&_0x43b5f7['every'](_0x536b45=>_0x45c41f['attributes'][_0x536b45]&&_0x45c41f[_0xf1eb('0x6')][_0x536b45]===_0x2223dc[_0xf1eb('0x6')][_0x536b45]);}}
23
+ const _0x14eb=['_checkOperation','substr','data','iterator','_compareAttributes','every','next','nodes','_splitCurrent','compress','_decompressSingleOperation','InsertOperation','attributes','from','_context','_compressSingleOperation','_compareOperations','value','position','length','__className'];(function(_0x1d7cf9,_0x14eb9a){const _0x3b24a0=function(_0xe5f9a4){while(--_0xe5f9a4){_0x1d7cf9['push'](_0x1d7cf9['shift']());}};_0x3b24a0(++_0x14eb9a);}(_0x14eb,0xdf));const _0x3b24=function(_0x1d7cf9,_0x14eb9a){_0x1d7cf9=_0x1d7cf9-0x0;let _0x3b24a0=_0x14eb[_0x1d7cf9];return _0x3b24a0;};import _0x44ea55 from'./actioncompressor.js';import{arePositionsEqual as _0x1cbcc8,getPositionShiftedBy as _0x1cc31f}from'../utils.js';import{cloneDeep as _0x57c9d0}from'lodash-es';export default class m extends _0x44ea55{['_combineNext'](_0x208218,_0x5a0212){return _0x5a0212['nodes'][0x0]['data']+=_0x208218[_0x3b24('0xf')][0x0][_0x3b24('0xa')],_0x5a0212;}[_0x3b24('0x10')](_0x2456c8){const _0x5a5030=_0x57c9d0(_0x2456c8),_0x12316b=_0x5a5030[_0x3b24('0xf')][0x0],_0x41ef64=_0x2456c8[_0x3b24('0xf')][0x0],_0x4fbea4=_0x41ef64['data'][Symbol[_0x3b24('0xb')]]()[_0x3b24('0xe')]()[_0x3b24('0x4')],_0x2ba9e2=_0x4fbea4['length'];return _0x12316b['data']=_0x4fbea4,_0x41ef64[_0x3b24('0xa')]=_0x41ef64[_0x3b24('0xa')][_0x3b24('0x9')](_0x2ba9e2),_0x2456c8[_0x3b24('0x5')]=_0x1cc31f(_0x2456c8['position'],_0x2ba9e2),_0x5a5030;}[_0x3b24('0x3')](_0x502e91,_0xfba030){if(this[_0x3b24('0x8')](_0x502e91)&&this[_0x3b24('0x8')](_0xfba030)){const _0x13ac4a=_0x502e91[_0x3b24('0xf')][0x0][_0x3b24('0xa')][_0x3b24('0x6')],_0x1b7a82=_0x1cbcc8(_0x1cc31f(_0x502e91[_0x3b24('0x5')],_0x13ac4a),_0xfba030[_0x3b24('0x5')]),_0x367ea6=_0x502e91[_0x3b24('0xf')][0x0],_0x2fbd2e=_0xfba030[_0x3b24('0xf')][0x0];return _0x1b7a82&&this['_compareAttributes'](_0x367ea6,_0x2fbd2e);}return!0x1;}[_0x3b24('0x2')](_0x59cb06){const _0x525106={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x3b24('0x1')]['_getCompressorByName'](_0x3b24('0x13'))[_0x3b24('0x11')](_0x525106,[_0x59cb06]),_0x525106['buffers'][0x0];}[_0x3b24('0x12')](_0x29ebde){const _0x4792ed=[];return this[_0x3b24('0x1')]['_getCompressorByName'](_0x3b24('0x13'))['decompress'](_0x4792ed,_0x29ebde),_0x4792ed[0x0];}[_0x3b24('0x8')](_0x42f48f){return _0x3b24('0x13')==_0x42f48f[_0x3b24('0x7')]&&0x1==_0x42f48f['nodes'][_0x3b24('0x6')]&&_0x42f48f['nodes'][0x0][_0x3b24('0xa')]&&!_0x42f48f['wasUndone']&&0x1==Array[_0x3b24('0x0')](_0x42f48f['nodes'][0x0]['data'])['length'];}[_0x3b24('0xc')](_0xe90ca0,_0x5447de){const _0x25ce8a=Object['keys'](_0xe90ca0[_0x3b24('0x14')]||{}),_0x3419f8=Object['keys'](_0x5447de['attributes']||{});return _0x25ce8a[_0x3b24('0x6')]===_0x3419f8[_0x3b24('0x6')]&&_0x25ce8a[_0x3b24('0xd')](_0x5a497a=>_0x5447de[_0x3b24('0x14')][_0x5a497a]&&_0x5447de[_0x3b24('0x14')][_0x5a497a]===_0xe90ca0[_0x3b24('0x14')][_0x5a497a]);}}
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import ActionCompressor from './actioncompressor';
6
- import type { CompressedOperationsData } from '../compressor';
5
+ import ActionCompressor from './actioncompressor.js';
6
+ import type { CompressedOperationsData } from '../compressor.js';
7
7
  export default class UserSelectionActionCompressor extends ActionCompressor {
8
8
  /**
9
9
  * @inheritDoc
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x1b1d=['newRange','compress','split','toNone','buffers','startsWith','stickiness','_getCompressorByName','oldRange','__className','MarkerOperation','user:position:','name','start','types','end','_compressSingleOperation','_compareOperations','user:','decompress','_context','push','shift'];(function(_0x91cfda,_0x1b1dce){const _0x52d280=function(_0xbc336c){while(--_0xbc336c){_0x91cfda['push'](_0x91cfda['shift']());}};_0x52d280(++_0x1b1dce);}(_0x1b1d,0x8a));const _0x52d2=function(_0x91cfda,_0x1b1dce){_0x91cfda=_0x91cfda-0x0;let _0x52d280=_0x1b1d[_0x91cfda];return _0x52d280;};import _0x58ddf0 from'./actioncompressor';import{arePositionsEqual as _0x150dba}from'../utils';import{cloneDeep as _0x168330}from'lodash-es';export default class f extends _0x58ddf0{[_0x52d2('0x1')](_0x4612aa,_0x53b885){if(!this[_0x52d2('0x11')](_0x53b885[0x0],_0x53b885[0x1]))return!0x1;const _0x5503c5=_0x53b885[_0x52d2('0x16')]();return _0x5503c5[_0x52d2('0x8')]=null,_0x5503c5[_0x52d2('0x0')]&&_0x150dba(_0x5503c5['newRange'][_0x52d2('0xd')],_0x5503c5[_0x52d2('0x0')]['end'])&&(_0x5503c5[_0x52d2('0x0')]['end']=null),_0x53b885['shift'](),_0x4612aa[_0x52d2('0xe')][_0x52d2('0x15')](this['_id']),_0x4612aa[_0x52d2('0xe')][_0x52d2('0x15')](0x0),_0x4612aa['buffers']['push'](this[_0x52d2('0x10')](_0x5503c5)),!0x0;}['decompress'](_0x41c95f,_0xdf8ef0){const _0x41d565=this['_decompressSingleOperation'](_0xdf8ef0);_0x41d565[_0x52d2('0x0')]&&!_0x41d565[_0x52d2('0x0')][_0x52d2('0xf')]&&(_0x41d565[_0x52d2('0x0')][_0x52d2('0xf')]=_0x168330(_0x41d565[_0x52d2('0x0')]['start']));const _0x137d8d=_0x168330(_0x41d565);_0x137d8d[_0x52d2('0x0')]&&(_0x137d8d['newRange'][_0x52d2('0xd')][_0x52d2('0x6')]=_0x52d2('0x3'),_0x137d8d[_0x52d2('0x0')][_0x52d2('0xf')]=_0x168330(_0x137d8d[_0x52d2('0x0')][_0x52d2('0xd')])),_0x137d8d[_0x52d2('0xc')]=_0x52d2('0xb')+_0x137d8d['name'][_0x52d2('0x2')](':')[0x2],_0xdf8ef0[_0x52d2('0xe')][_0x52d2('0x16')](),_0x41c95f['push'](_0x41d565),_0x41c95f[_0x52d2('0x15')](_0x137d8d);}[_0x52d2('0x10')](_0x4f72ae){const _0x3d8314={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x52d2('0x14')]['_getCompressorByName']('MarkerOperation')[_0x52d2('0x1')](_0x3d8314,[_0x4f72ae]),_0x3d8314[_0x52d2('0x4')][0x0];}['_decompressSingleOperation'](_0x2917ad){const _0x5e4b1a=[];return this[_0x52d2('0x14')][_0x52d2('0x7')](_0x52d2('0xa'))[_0x52d2('0x13')](_0x5e4b1a,_0x2917ad),_0x5e4b1a[0x0];}[_0x52d2('0x11')](_0x4eff88,_0x17aa56){return!(!_0x4eff88||!_0x17aa56)&&(_0x52d2('0xa')==_0x4eff88[_0x52d2('0x9')]&&'MarkerOperation'==_0x17aa56[_0x52d2('0x9')]&&!(!_0x4eff88[_0x52d2('0xc')][_0x52d2('0x5')](_0x52d2('0x12'))||!_0x17aa56['name'][_0x52d2('0x5')](_0x52d2('0x12'))||_0x4eff88[_0x52d2('0xc')]==_0x17aa56[_0x52d2('0xc')]));}}
23
+ const _0x776d=['startsWith','_context','user:position:','types','_decompressSingleOperation','oldRange','buffers','end','MarkerOperation','_compressSingleOperation','decompress','newRange','user:','start','split','__className','name','_getCompressorByName','_compareOperations','toNone','shift','compress','push','_id'];(function(_0xdb0047,_0x776d26){const _0x3ff996=function(_0x50d3d4){while(--_0x50d3d4){_0xdb0047['push'](_0xdb0047['shift']());}};_0x3ff996(++_0x776d26);}(_0x776d,0x9d));const _0x3ff9=function(_0xdb0047,_0x776d26){_0xdb0047=_0xdb0047-0x0;let _0x3ff996=_0x776d[_0xdb0047];return _0x3ff996;};import _0x163ecd from'./actioncompressor.js';import{arePositionsEqual as _0x4ba9f5}from'../utils.js';import{cloneDeep as _0x2692c7}from'lodash-es';export default class f extends _0x163ecd{[_0x3ff9('0x8')](_0x32239a,_0x4f21be){if(!this[_0x3ff9('0x5')](_0x4f21be[0x0],_0x4f21be[0x1]))return!0x1;const _0x19eb0e=_0x4f21be['shift']();return _0x19eb0e[_0x3ff9('0x10')]=null,_0x19eb0e['newRange']&&_0x4ba9f5(_0x19eb0e[_0x3ff9('0x16')][_0x3ff9('0x0')],_0x19eb0e['newRange']['end'])&&(_0x19eb0e[_0x3ff9('0x16')][_0x3ff9('0x12')]=null),_0x4f21be[_0x3ff9('0x7')](),_0x32239a['types'][_0x3ff9('0x9')](this[_0x3ff9('0xa')]),_0x32239a['types'][_0x3ff9('0x9')](0x0),_0x32239a[_0x3ff9('0x11')]['push'](this[_0x3ff9('0x14')](_0x19eb0e)),!0x0;}[_0x3ff9('0x15')](_0x357eda,_0x42a4fe){const _0x30cbc1=this['_decompressSingleOperation'](_0x42a4fe);_0x30cbc1['newRange']&&!_0x30cbc1['newRange'][_0x3ff9('0x12')]&&(_0x30cbc1[_0x3ff9('0x16')][_0x3ff9('0x12')]=_0x2692c7(_0x30cbc1[_0x3ff9('0x16')]['start']));const _0x595771=_0x2692c7(_0x30cbc1);_0x595771[_0x3ff9('0x16')]&&(_0x595771[_0x3ff9('0x16')][_0x3ff9('0x0')]['stickiness']=_0x3ff9('0x6'),_0x595771['newRange']['end']=_0x2692c7(_0x595771['newRange']['start'])),_0x595771[_0x3ff9('0x3')]=_0x3ff9('0xd')+_0x595771[_0x3ff9('0x3')][_0x3ff9('0x1')](':')[0x2],_0x42a4fe[_0x3ff9('0xe')]['shift'](),_0x357eda[_0x3ff9('0x9')](_0x30cbc1),_0x357eda['push'](_0x595771);}[_0x3ff9('0x14')](_0x3ba196){const _0x4e11d1={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x3ff9('0x4')]('MarkerOperation')['compress'](_0x4e11d1,[_0x3ba196]),_0x4e11d1[_0x3ff9('0x11')][0x0];}[_0x3ff9('0xf')](_0x426152){const _0x2bee91=[];return this[_0x3ff9('0xc')]['_getCompressorByName'](_0x3ff9('0x13'))[_0x3ff9('0x15')](_0x2bee91,_0x426152),_0x2bee91[0x0];}[_0x3ff9('0x5')](_0x583800,_0x375676){return!(!_0x583800||!_0x375676)&&('MarkerOperation'==_0x583800[_0x3ff9('0x2')]&&_0x3ff9('0x13')==_0x375676['__className']&&!(!_0x583800[_0x3ff9('0x3')]['startsWith'](_0x3ff9('0x17'))||!_0x375676['name'][_0x3ff9('0xb')]('user:')||_0x583800['name']==_0x375676[_0x3ff9('0x3')]));}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
package/src/compressor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, 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 _0x4d06=['MarkerOperation','CommentMarkerOperation','SplitOperation','getDescriptor','set','_protobufFactory','TypingAction','_getCompressorByName','comment','SuggestionMarkerOperation','DeletingAction','_compressorByName','baseVersion','__className','RootAttributeOperation','forEach','AttributeOperation','_compressorById','NoOperation','suggestion','compress','decompress','_registerActionCompressor','MoveOperation','_registerCompressor','_registerOperationCompressor','RenameOperation','length','types','ForwardDeletingAction','UserSelectionAction','get'];(function(_0x40f043,_0x4d06c1){const _0x37288b=function(_0x1b4c98){while(--_0x1b4c98){_0x40f043['push'](_0x40f043['shift']());}};_0x37288b(++_0x4d06c1);}(_0x4d06,0x75));const _0x3728=function(_0x40f043,_0x4d06c1){_0x40f043=_0x40f043-0x0;let _0x37288b=_0x4d06[_0x40f043];return _0x37288b;};import{CKEditorError as _0xdd095}from'ckeditor5/src/utils';import _0x29d182 from'./protobuffactory';import _0x4aba4d from'./operationcompressor/operationcompressor';import _0x13f5e4 from'./operationcompressor/attributeoperationcompressor';import _0x427809 from'./operationcompressor/insertoperationcompressor';import _0x2c3470 from'./operationcompressor/markeroperationcompressor';import _0x304d59 from'./operationcompressor/nooperationcompressor';import _0x12bc84 from'./operationcompressor/annotationmarkeroperationcompressor';import _0x536f1d from'./actioncompressor/typingactioncompressor';import _0x371bc5 from'./actioncompressor/deletingactioncompressor';import _0x4d7a86 from'./actioncompressor/forwarddeletingactioncompressor';import _0x35c6aa from'./actioncompressor/userselectionactioncompressor';export default class g{constructor(){this[_0x3728('0x1c')]=new Map(),this[_0x3728('0x16')]=new Map(),this[_0x3728('0x10')]=new _0x29d182();const _0x4c54ec=this[_0x3728('0x10')][_0x3728('0xe')](_0x3728('0xb'));this[_0x3728('0x3')](0x1,_0x3728('0x1d'),new _0x304d59(0x1,_0x3728('0x1d'),void 0x0)),this[_0x3728('0x4')](0xa,_0x3728('0x1b'),_0x13f5e4),this[_0x3728('0x4')](0xb,'InsertOperation',_0x427809),this[_0x3728('0x4')](0xc,'MarkerOperation',_0x2c3470),this['_registerOperationCompressor'](0xd,'MergeOperation',_0x4aba4d),this[_0x3728('0x4')](0xe,_0x3728('0x2'),_0x4aba4d),this[_0x3728('0x4')](0xf,_0x3728('0x5'),_0x4aba4d),this[_0x3728('0x4')](0x10,_0x3728('0x19'),_0x13f5e4),this[_0x3728('0x4')](0x11,_0x3728('0xd'),_0x4aba4d),this['_registerCompressor'](0x12,_0x3728('0xc'),new _0x12bc84(0x12,_0x3728('0xb'),_0x4c54ec,_0x3728('0x13'))),this[_0x3728('0x3')](0x13,_0x3728('0x14'),new _0x12bc84(0x13,_0x3728('0xb'),_0x4c54ec,_0x3728('0x1e'))),this[_0x3728('0x4')](0x14,'RootOperation',_0x4aba4d),this['_registerActionCompressor'](0x64,_0x3728('0x11'),_0x536f1d),this[_0x3728('0x1')](0x65,_0x3728('0x15'),_0x371bc5),this[_0x3728('0x1')](0x66,_0x3728('0x8'),_0x4d7a86),this[_0x3728('0x1')](0x67,_0x3728('0x9'),_0x35c6aa);}['compress'](_0x3ce696){if(!_0x3ce696||!_0x3ce696[0x0])throw new _0xdd095('no-operations-provided',this);const _0x12c7c5={'types':[],'buffers':[],'baseVersion':_0x3ce696[0x0]['baseVersion']};for(;_0x3ce696[_0x3728('0x6')];)this['_getCompressorByName'](_0x3728('0x9'))['compress'](_0x12c7c5,_0x3ce696)||this[_0x3728('0x12')](_0x3728('0x11'))[_0x3728('0x1f')](_0x12c7c5,_0x3ce696)||this[_0x3728('0x12')](_0x3728('0x15'))[_0x3728('0x1f')](_0x12c7c5,_0x3ce696)||this[_0x3728('0x12')](_0x3728('0x8'))[_0x3728('0x1f')](_0x12c7c5,_0x3ce696)||this[_0x3728('0x12')]('CommentMarkerOperation')[_0x3728('0x1f')](_0x12c7c5,_0x3ce696)||this[_0x3728('0x12')](_0x3728('0x14'))[_0x3728('0x1f')](_0x12c7c5,_0x3ce696)||this[_0x3728('0x12')](_0x3ce696[0x0][_0x3728('0x18')])['compress'](_0x12c7c5,_0x3ce696);return _0x12c7c5;}[_0x3728('0x0')](_0x2ccf00){const _0x2ebb39=[];for(;_0x2ccf00[_0x3728('0x7')][_0x3728('0x6')];){this['_compressorById'][_0x3728('0xa')](_0x2ccf00[_0x3728('0x7')][0x0])[_0x3728('0x0')](_0x2ebb39,_0x2ccf00);}return _0x2ebb39[_0x3728('0x1a')]((_0x6bc300,_0x1838b7)=>_0x6bc300[_0x3728('0x17')]=_0x2ccf00[_0x3728('0x17')]+_0x1838b7),_0x2ebb39;}[_0x3728('0x12')](_0x479c20){return this['_compressorByName'][_0x3728('0xa')](_0x479c20);}[_0x3728('0x4')](_0x4ad401,_0x525826,_0x335ab5){const _0x4c03b4=new _0x335ab5(_0x4ad401,_0x525826,this[_0x3728('0x10')][_0x3728('0xe')](_0x525826));this[_0x3728('0x3')](_0x4ad401,_0x525826,_0x4c03b4);}[_0x3728('0x1')](_0x45ae5b,_0xb3cf2,_0x301c0b){const _0x9230c7=new _0x301c0b(_0x45ae5b,this);this[_0x3728('0x3')](_0x45ae5b,_0xb3cf2,_0x9230c7);}[_0x3728('0x3')](_0x7d157,_0x58f9ee,_0xc8e4b1){this[_0x3728('0x1c')][_0x3728('0xf')](_0x7d157,_0xc8e4b1),this[_0x3728('0x16')][_0x3728('0xf')](_0x58f9ee,_0xc8e4b1);}}
23
+ const _0x35d9=['MergeOperation','_protobufFactory','getDescriptor','types','ForwardDeletingAction','decompress','length','_getCompressorByName','MarkerOperation','suggestion','SuggestionMarkerOperation','_registerActionCompressor','TypingAction','AttributeOperation','RenameOperation','UserSelectionAction','baseVersion','set','comment','compress','DeletingAction','CommentMarkerOperation','MoveOperation','SplitOperation','_compressorByName','RootOperation','forEach','_registerCompressor','_registerOperationCompressor','NoOperation','_compressorById','get'];(function(_0x340f56,_0x35d9e4){const _0x498eaf=function(_0x3b18a6){while(--_0x3b18a6){_0x340f56['push'](_0x340f56['shift']());}};_0x498eaf(++_0x35d9e4);}(_0x35d9,0x13e));const _0x498e=function(_0x340f56,_0x35d9e4){_0x340f56=_0x340f56-0x0;let _0x498eaf=_0x35d9[_0x340f56];return _0x498eaf;};import{CKEditorError as _0x25e5bf}from'ckeditor5/src/utils.js';import _0x4279d3 from'./protobuffactory.js';import _0x5221e6 from'./operationcompressor/operationcompressor.js';import _0x111b5f from'./operationcompressor/attributeoperationcompressor.js';import _0x442533 from'./operationcompressor/insertoperationcompressor.js';import _0x163ce6 from'./operationcompressor/markeroperationcompressor.js';import _0xe56455 from'./operationcompressor/nooperationcompressor.js';import _0xa8c763 from'./operationcompressor/annotationmarkeroperationcompressor.js';import _0x545a86 from'./actioncompressor/typingactioncompressor.js';import _0x393980 from'./actioncompressor/deletingactioncompressor.js';import _0x31c5ac from'./actioncompressor/forwarddeletingactioncompressor.js';import _0x2bee32 from'./actioncompressor/userselectionactioncompressor.js';export default class g{constructor(){this[_0x498e('0x0')]=new Map(),this[_0x498e('0x1a')]=new Map(),this['_protobufFactory']=new _0x4279d3();const _0x26d320=this['_protobufFactory'][_0x498e('0x4')](_0x498e('0xa'));this[_0x498e('0x1d')](0x1,_0x498e('0x1f'),new _0xe56455(0x1,_0x498e('0x1f'),void 0x0)),this[_0x498e('0x1e')](0xa,_0x498e('0xf'),_0x111b5f),this[_0x498e('0x1e')](0xb,'InsertOperation',_0x442533),this[_0x498e('0x1e')](0xc,'MarkerOperation',_0x163ce6),this[_0x498e('0x1e')](0xd,_0x498e('0x2'),_0x5221e6),this[_0x498e('0x1e')](0xe,_0x498e('0x18'),_0x5221e6),this[_0x498e('0x1e')](0xf,_0x498e('0x10'),_0x5221e6),this[_0x498e('0x1e')](0x10,'RootAttributeOperation',_0x111b5f),this[_0x498e('0x1e')](0x11,_0x498e('0x19'),_0x5221e6),this['_registerCompressor'](0x12,_0x498e('0x17'),new _0xa8c763(0x12,_0x498e('0xa'),_0x26d320,_0x498e('0x14'))),this[_0x498e('0x1d')](0x13,_0x498e('0xc'),new _0xa8c763(0x13,_0x498e('0xa'),_0x26d320,_0x498e('0xb'))),this[_0x498e('0x1e')](0x14,_0x498e('0x1b'),_0x5221e6),this[_0x498e('0xd')](0x64,'TypingAction',_0x545a86),this[_0x498e('0xd')](0x65,_0x498e('0x16'),_0x393980),this[_0x498e('0xd')](0x66,_0x498e('0x6'),_0x31c5ac),this['_registerActionCompressor'](0x67,_0x498e('0x11'),_0x2bee32);}['compress'](_0x32abd3){if(!_0x32abd3||!_0x32abd3[0x0])throw new _0x25e5bf('no-operations-provided',this);const _0x5ca09a={'types':[],'buffers':[],'baseVersion':_0x32abd3[0x0][_0x498e('0x12')]};for(;_0x32abd3[_0x498e('0x8')];)this['_getCompressorByName'](_0x498e('0x11'))[_0x498e('0x15')](_0x5ca09a,_0x32abd3)||this[_0x498e('0x9')](_0x498e('0xe'))[_0x498e('0x15')](_0x5ca09a,_0x32abd3)||this[_0x498e('0x9')](_0x498e('0x16'))[_0x498e('0x15')](_0x5ca09a,_0x32abd3)||this[_0x498e('0x9')](_0x498e('0x6'))[_0x498e('0x15')](_0x5ca09a,_0x32abd3)||this[_0x498e('0x9')](_0x498e('0x17'))['compress'](_0x5ca09a,_0x32abd3)||this[_0x498e('0x9')](_0x498e('0xc'))[_0x498e('0x15')](_0x5ca09a,_0x32abd3)||this[_0x498e('0x9')](_0x32abd3[0x0]['__className'])[_0x498e('0x15')](_0x5ca09a,_0x32abd3);return _0x5ca09a;}[_0x498e('0x7')](_0x38789b){const _0x57814f=[];for(;_0x38789b['types']['length'];){this[_0x498e('0x0')][_0x498e('0x1')](_0x38789b[_0x498e('0x5')][0x0])[_0x498e('0x7')](_0x57814f,_0x38789b);}return _0x57814f[_0x498e('0x1c')]((_0x177eaf,_0x43de0e)=>_0x177eaf[_0x498e('0x12')]=_0x38789b[_0x498e('0x12')]+_0x43de0e),_0x57814f;}['_getCompressorByName'](_0x59c309){return this[_0x498e('0x1a')][_0x498e('0x1')](_0x59c309);}[_0x498e('0x1e')](_0x34bdf3,_0x270387,_0x20c8af){const _0xa714c7=new _0x20c8af(_0x34bdf3,_0x270387,this[_0x498e('0x3')][_0x498e('0x4')](_0x270387));this[_0x498e('0x1d')](_0x34bdf3,_0x270387,_0xa714c7);}[_0x498e('0xd')](_0x3cfbf4,_0x59a0c6,_0x3703c5){const _0x331c6f=new _0x3703c5(_0x3cfbf4,this);this[_0x498e('0x1d')](_0x3cfbf4,_0x59a0c6,_0x331c6f);}[_0x498e('0x1d')](_0x55f3b9,_0x2e7108,_0x55b68c){this['_compressorById'][_0x498e('0x13')](_0x55f3b9,_0x55b68c),this[_0x498e('0x1a')][_0x498e('0x13')](_0x2e7108,_0x55b68c);}}