@ckeditor/ckeditor5-operations-compressor 33.0.0 → 34.2.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.
- package/LICENSE.md +2 -2
- package/README.md +5 -2
- package/package.json +2 -2
- package/src/actioncompressor/actioncompressor.js +1 -1
- package/src/actioncompressor/deletingactioncompressor.js +1 -1
- package/src/actioncompressor/forwarddeletingactioncompressor.js +1 -1
- package/src/actioncompressor/typingactioncompressor.js +1 -1
- package/src/actioncompressor/userselectionactioncompressor.js +1 -1
- package/src/commondescriptions.js +1 -1
- package/src/compressor.js +1 -1
- package/src/operationcompressor/annotationmarkeroperationcompressor.js +1 -1
- package/src/operationcompressor/attributeoperationcompressor.js +1 -1
- package/src/operationcompressor/insertoperationcompressor.js +1 -1
- package/src/operationcompressor/markeroperationcompressor.js +1 -1
- package/src/operationcompressor/mergeoperationcompressor.js +1 -1
- package/src/operationcompressor/moveoperationcompressor.js +1 -1
- package/src/operationcompressor/nooperationcompressor.js +1 -1
- package/src/operationcompressor/operationcompressor.js +1 -1
- package/src/operationcompressor/renameoperationcompressor.js +1 -1
- package/src/operationcompressor/rootattributeoperationcompressor.js +1 -1
- package/src/operationcompressor/splitoperationcompressor.js +1 -1
- package/src/protobuffactory.js +1 -1
- package/src/utils.js +1 -1
package/LICENSE.md
CHANGED
|
@@ -2,7 +2,7 @@ Software License Agreement
|
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
4
|
**CKEditor 5 operations compressor**<br>
|
|
5
|
-
Copyright (c) 2003-2022, [CKSource
|
|
5
|
+
Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
6
|
|
|
7
7
|
CKEditor 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.
|
|
@@ -24,4 +24,4 @@ The following libraries are included in CKEditor 5 Operations Compressor under t
|
|
|
24
24
|
Trademarks
|
|
25
25
|
----------
|
|
26
26
|
|
|
27
|
-
**CKEditor** is a trademark of [CKSource
|
|
27
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# CKEditor 5 operations compressor
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-operations-compressor)
|
|
4
|
+

|
|
5
|
+
|
|
3
6
|
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/).
|
|
4
7
|
|
|
5
8
|
## Documentation
|
|
@@ -17,11 +20,11 @@ As a licensed CKEditor 5 Collaboration features user you can report bugs and req
|
|
|
17
20
|
## License
|
|
18
21
|
|
|
19
22
|
**CKEditor 5 operations compressor**<br>
|
|
20
|
-
Copyright (c) 2003-2022, [CKSource
|
|
23
|
+
Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
21
24
|
|
|
22
25
|
CKEditor 5 operations compressor is licensed under a commercial license and is protected by copyright law.
|
|
23
26
|
For more details about available licensing options please contact us at sales@cksource.com.
|
|
24
27
|
|
|
25
28
|
### Trademarks
|
|
26
29
|
|
|
27
|
-
**CKEditor** is a trademark of [CKSource
|
|
30
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-operations-compressor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.2.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/",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"author": "CKSource (http://cksource.com/)",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"ckeditor5": "^
|
|
30
|
+
"ckeditor5": "^34.2.0",
|
|
31
31
|
"lodash-es": "^4.17.11",
|
|
32
32
|
"protobufjs": "^6.8.8"
|
|
33
33
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36b1=['_compareOperations','length','_splitCurrent','_compressSingleOperation','shift','compress','push','_decompressSingleOperation','types','_combineNext','buffers','_context'];(function(_0x543896,_0x36b1c4){const _0x16d0e0=function(_0x23f17b){while(--_0x23f17b){_0x543896['push'](_0x543896['shift']());}};_0x16d0e0(++_0x36b1c4);}(_0x36b1,0x1c6));const _0x16d0=function(_0x543896,_0x36b1c4){_0x543896=_0x543896-0x0;let _0x16d0e0=_0x36b1[_0x543896];return _0x16d0e0;};import{cloneDeep as _0x56f2cf}from'lodash-es';export default class j{constructor(_0x356b5a,_0x1ad478){this['id']=_0x356b5a,this[_0x16d0('0x1')]=_0x1ad478;}[_0x16d0('0x7')](_0x5d0d95,_0x55473f){let _0x546694;for(;_0x55473f[_0x16d0('0x3')]>0x1&&this[_0x16d0('0x2')](_0x55473f[0x0],_0x55473f[0x1]);)_0x546694?(_0x546694=this[_0x16d0('0xb')](_0x55473f[_0x16d0('0x6')](),_0x546694),_0x5d0d95['types'][_0x16d0('0x8')](0x0)):(_0x546694=_0x56f2cf(_0x55473f[_0x16d0('0x6')]()),_0x5d0d95[_0x16d0('0xa')][_0x16d0('0x8')](this['id']));return!!_0x546694&&(_0x546694=this['_combineNext'](_0x55473f['shift'](),_0x546694),_0x5d0d95[_0x16d0('0xa')][_0x16d0('0x8')](0x0),_0x5d0d95[_0x16d0('0x0')][_0x16d0('0x8')](this[_0x16d0('0x5')](_0x546694)),!0x0);}['decompress'](_0x434c8b,_0x44f9b2){const _0x4a4050=this[_0x16d0('0x9')](_0x44f9b2);for(;0x0==_0x44f9b2[_0x16d0('0xa')][0x0];)_0x44f9b2['types'][_0x16d0('0x6')](),_0x434c8b['push'](this[_0x16d0('0x4')](_0x4a4050));_0x434c8b[_0x16d0('0x8')](_0x4a4050);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f3d=['$graveyard','_combineNext','howMany','_splitCurrent','_compressSingleOperation','_decompressSingleOperation','wasUndone','buffers','_context','_compareOperations','decompress','compress','sourcePosition','targetPosition','_getCompressorByName','root'];(function(_0x52dd8c,_0x5f3dd6){const _0x322462=function(_0x394c53){while(--_0x394c53){_0x52dd8c['push'](_0x52dd8c['shift']());}};_0x322462(++_0x5f3dd6);}(_0x5f3d,0x1c0));const _0x3224=function(_0x52dd8c,_0x5f3dd6){_0x52dd8c=_0x52dd8c-0x0;let _0x322462=_0x5f3d[_0x52dd8c];return _0x322462;};import _0x1b57e1 from'./actioncompressor';import{arePositionsEqual as _0x2e590d,getPositionShiftedBy as _0x2d2373}from'../utils';import{cloneDeep as _0x419c0c}from'lodash-es';export default class u extends _0x1b57e1{[_0x3224('0x1')](_0x4c425c,_0x465d9d){return _0x465d9d['howMany']++,_0x465d9d[_0x3224('0xc')]=_0x419c0c(_0x4c425c[_0x3224('0xc')]),_0x465d9d;}[_0x3224('0x3')](_0xddbda5){const _0x236f31=_0x419c0c(_0xddbda5);return _0xddbda5[_0x3224('0x2')]--,_0x236f31[_0x3224('0x2')]=0x1,_0x236f31[_0x3224('0xc')]=_0x2d2373(_0x236f31[_0x3224('0xc')],_0xddbda5['howMany']),_0x236f31;}[_0x3224('0x9')](_0x4035d0,_0x3f5254){return!(!S(_0x4035d0)||!S(_0x3f5254))&&(_0x2e590d(_0x2d2373(_0x4035d0[_0x3224('0xc')],-0x1),_0x3f5254[_0x3224('0xc')])&&_0x2e590d(_0x4035d0[_0x3224('0xd')],_0x3f5254[_0x3224('0xd')]));}[_0x3224('0x4')](_0x4914b3){const _0x5def55={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x3224('0x8')][_0x3224('0xe')]('MoveOperation')[_0x3224('0xb')](_0x5def55,[_0x4914b3]),_0x5def55[_0x3224('0x7')][0x0];}[_0x3224('0x5')](_0x290074){const _0x19b584=[];return this['_context'][_0x3224('0xe')]('MoveOperation')[_0x3224('0xa')](_0x19b584,_0x290074),_0x19b584[0x0];}}function S(_0x593975){return'MoveOperation'==_0x593975['__className']&&_0x3224('0x0')==_0x593975[_0x3224('0xd')][_0x3224('0xf')]&&0x1==_0x593975[_0x3224('0x2')]&&!_0x593975[_0x3224('0x6')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c80=['_compareOperations','howMany','sourcePosition','buffers','wasUndone','_combineNext','decompress','_context','$graveyard','root','_splitCurrent','targetPosition','MoveOperation','compress','_getCompressorByName'];(function(_0x24dc34,_0x1c8094){const _0x587bbd=function(_0x257692){while(--_0x257692){_0x24dc34['push'](_0x24dc34['shift']());}};_0x587bbd(++_0x1c8094);}(_0x1c80,0xfe));const _0x587b=function(_0x24dc34,_0x1c8094){_0x24dc34=_0x24dc34-0x0;let _0x587bbd=_0x1c80[_0x24dc34];return _0x587bbd;};import _0x363edd from'./actioncompressor';import{arePositionsEqual as _0x2e9dcf}from'../utils';import{cloneDeep as _0x431375}from'lodash-es';export default class l extends _0x363edd{[_0x587b('0x6')](_0x4e5a54,_0x2b87e1){return _0x2b87e1[_0x587b('0x2')]++,_0x2b87e1;}[_0x587b('0xb')](_0x332f01){const _0x1c4795=_0x431375(_0x332f01);return _0x1c4795[_0x587b('0x2')]=0x1,_0x332f01[_0x587b('0x2')]--,_0x1c4795;}[_0x587b('0x1')](_0x4ba54a,_0x5af81a){return!(!S(_0x4ba54a)||!S(_0x5af81a))&&(_0x2e9dcf(_0x4ba54a[_0x587b('0x3')],_0x5af81a[_0x587b('0x3')])&&_0x2e9dcf(_0x4ba54a['targetPosition'],_0x5af81a[_0x587b('0xc')]));}['_compressSingleOperation'](_0x2e4c63){const _0x5c416d={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x587b('0x8')][_0x587b('0x0')](_0x587b('0xd'))[_0x587b('0xe')](_0x5c416d,[_0x2e4c63]),_0x5c416d[_0x587b('0x4')][0x0];}['_decompressSingleOperation'](_0x1484d6){const _0x18210e=[];return this[_0x587b('0x8')][_0x587b('0x0')](_0x587b('0xd'))[_0x587b('0x7')](_0x18210e,_0x1484d6),_0x18210e[0x0];}}function S(_0x4d3afc){return _0x587b('0xd')==_0x4d3afc['__className']&&_0x587b('0x9')==_0x4d3afc[_0x587b('0xc')][_0x587b('0xa')]&&0x1==_0x4d3afc['howMany']&&!_0x4d3afc[_0x587b('0x5')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe5a4=['decompress','_compressSingleOperation','buffers','compress','every','wasUndone','_compareOperations','from','__className','data','keys','position','length','nodes','value','iterator','_splitCurrent','attributes','next','_context','InsertOperation'];(function(_0x487d7e,_0xe5a42f){const _0x5d07e9=function(_0x109a13){while(--_0x109a13){_0x487d7e['push'](_0x487d7e['shift']());}};_0x5d07e9(++_0xe5a42f);}(_0xe5a4,0x194));const _0x5d07=function(_0x487d7e,_0xe5a42f){_0x487d7e=_0x487d7e-0x0;let _0x5d07e9=_0xe5a4[_0x487d7e];return _0x5d07e9;};import _0x36679a from'./actioncompressor';import{arePositionsEqual as _0x36872d,getPositionShiftedBy as _0x5814de}from'../utils';import{cloneDeep as _0x1c730e}from'lodash-es';export default class g extends _0x36679a{['_combineNext'](_0x228d5a,_0xbc03dd){return _0xbc03dd['nodes'][0x0]['data']+=_0x228d5a[_0x5d07('0x8')][0x0][_0x5d07('0x4')],_0xbc03dd;}[_0x5d07('0xb')](_0x41c559){const _0x3f2b18=_0x1c730e(_0x41c559),_0x508c14=_0x3f2b18[_0x5d07('0x8')][0x0],_0x473ee4=_0x41c559['nodes'][0x0],_0x57768f=_0x473ee4[_0x5d07('0x4')][Symbol[_0x5d07('0xa')]]()[_0x5d07('0xd')]()[_0x5d07('0x9')],_0x387467=_0x57768f[_0x5d07('0x7')];return _0x508c14['data']=_0x57768f,_0x473ee4[_0x5d07('0x4')]=_0x473ee4['data']['substr'](_0x387467),_0x41c559['position']=_0x5814de(_0x41c559['position'],_0x387467),_0x3f2b18;}[_0x5d07('0x1')](_0x1484cf,_0x390d79){if(S(_0x1484cf)&&S(_0x390d79)){const _0x3787d4=_0x1484cf[_0x5d07('0x8')][0x0][_0x5d07('0x4')]['length'],_0x2d187a=_0x36872d(_0x5814de(_0x1484cf[_0x5d07('0x6')],_0x3787d4),_0x390d79[_0x5d07('0x6')]),_0x3f2758=_0x1484cf[_0x5d07('0x8')][0x0],_0x4b9d40=_0x390d79[_0x5d07('0x8')][0x0];return _0x2d187a&&function(_0x1be767,_0x56642d){const _0x49bbd9=Object[_0x5d07('0x5')](_0x1be767[_0x5d07('0xc')]||{}),_0x2733e9=Object[_0x5d07('0x5')](_0x56642d[_0x5d07('0xc')]||{});if(_0x49bbd9[_0x5d07('0x7')]!==_0x2733e9[_0x5d07('0x7')])return!0x1;return _0x49bbd9[_0x5d07('0x14')](_0x3fb910=>_0x56642d[_0x5d07('0xc')][_0x3fb910]&&_0x56642d[_0x5d07('0xc')][_0x3fb910]===_0x1be767[_0x5d07('0xc')][_0x3fb910]);}(_0x3f2758,_0x4b9d40);}return!0x1;}[_0x5d07('0x11')](_0x1020cd){const _0x1f8055={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x5d07('0xe')]['_getCompressorByName'](_0x5d07('0xf'))[_0x5d07('0x13')](_0x1f8055,[_0x1020cd]),_0x1f8055[_0x5d07('0x12')][0x0];}['_decompressSingleOperation'](_0x1e5386){const _0x152488=[];return this[_0x5d07('0xe')]['_getCompressorByName'](_0x5d07('0xf'))[_0x5d07('0x10')](_0x152488,_0x1e5386),_0x152488[0x0];}}function S(_0xc192c9){return'InsertOperation'==_0xc192c9[_0x5d07('0x3')]&&0x1==_0xc192c9[_0x5d07('0x8')][_0x5d07('0x7')]&&_0xc192c9['nodes'][0x0][_0x5d07('0x4')]&&!_0xc192c9[_0x5d07('0x0')]&&0x1==Array[_0x5d07('0x2')](_0xc192c9[_0x5d07('0x8')][0x0][_0x5d07('0x4')])[_0x5d07('0x7')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29ec=['shift','split','start','end','user:','buffers','user:position:','_decompressSingleOperation','_context','toNone','MarkerOperation','types','_getCompressorByName','_compressSingleOperation','push','oldRange','compress','stickiness','startsWith','name','newRange','decompress'];(function(_0x2aaf53,_0x29ec5d){const _0x26ff1a=function(_0x377e59){while(--_0x377e59){_0x2aaf53['push'](_0x2aaf53['shift']());}};_0x26ff1a(++_0x29ec5d);}(_0x29ec,0x117));const _0x26ff=function(_0x2aaf53,_0x29ec5d){_0x2aaf53=_0x2aaf53-0x0;let _0x26ff1a=_0x29ec[_0x2aaf53];return _0x26ff1a;};import _0x296587 from'./actioncompressor';import{arePositionsEqual as _0x284156}from'../utils';import{cloneDeep as _0x2171c5}from'lodash-es';export default class M extends _0x296587{[_0x26ff('0x1')](_0x4c2b19,_0xff69c){if(!function(_0x5d0eeb,_0x418a62){if(!_0x5d0eeb||!_0x418a62)return!0x1;if('MarkerOperation'!=_0x5d0eeb['__className']||_0x26ff('0x11')!=_0x418a62['__className'])return!0x1;if(_0x5d0eeb[_0x26ff('0x4')][_0x26ff('0x3')]('user:')&&_0x418a62[_0x26ff('0x4')]['startsWith'](_0x26ff('0xb'))&&_0x5d0eeb[_0x26ff('0x4')]!=_0x418a62[_0x26ff('0x4')])return!0x0;return!0x1;}(_0xff69c[0x0],_0xff69c[0x1]))return!0x1;const _0x5bf9e3=_0xff69c[_0x26ff('0x7')]();return _0x5bf9e3[_0x26ff('0x0')]=null,_0x5bf9e3['newRange']&&_0x284156(_0x5bf9e3[_0x26ff('0x5')][_0x26ff('0x9')],_0x5bf9e3[_0x26ff('0x5')][_0x26ff('0xa')])&&(_0x5bf9e3['newRange'][_0x26ff('0xa')]=null),_0xff69c[_0x26ff('0x7')](),_0x4c2b19[_0x26ff('0x12')][_0x26ff('0x15')](this['id']),_0x4c2b19['types'][_0x26ff('0x15')](0x0),_0x4c2b19[_0x26ff('0xc')]['push'](this[_0x26ff('0x14')](_0x5bf9e3)),!0x0;}['decompress'](_0x53ae23,_0x145c1f){const _0x53912d=this['_decompressSingleOperation'](_0x145c1f);_0x53912d['newRange']&&!_0x53912d['newRange'][_0x26ff('0xa')]&&(_0x53912d[_0x26ff('0x5')][_0x26ff('0xa')]=_0x2171c5(_0x53912d['newRange'][_0x26ff('0x9')]));const _0x4bfb3b=_0x2171c5(_0x53912d);_0x4bfb3b['newRange']&&(_0x4bfb3b[_0x26ff('0x5')]['start'][_0x26ff('0x2')]=_0x26ff('0x10'),_0x4bfb3b[_0x26ff('0x5')][_0x26ff('0xa')]=_0x2171c5(_0x4bfb3b['newRange'][_0x26ff('0x9')])),_0x4bfb3b[_0x26ff('0x4')]=_0x26ff('0xd')+_0x4bfb3b['name'][_0x26ff('0x8')](':')[0x2],_0x145c1f['types']['shift'](),_0x53ae23['push'](_0x53912d),_0x53ae23[_0x26ff('0x15')](_0x4bfb3b);}[_0x26ff('0x14')](_0x5d9fcf){const _0x5a8c25={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x26ff('0xf')]['_getCompressorByName']('MarkerOperation')[_0x26ff('0x1')](_0x5a8c25,[_0x5d9fcf]),_0x5a8c25[_0x26ff('0xc')][0x0];}[_0x26ff('0xe')](_0x490f81){const _0x45c6c2=[];return this[_0x26ff('0xf')][_0x26ff('0x13')](_0x26ff('0x11'))[_0x26ff('0x6')](_0x45c6c2,_0x490f81),_0x45c6c2[0x0];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1ab9=['Element','string','Position','bool','repeated','uint32'];(function(_0x1d3d3e,_0x1ab9ca){var _0x4dd608=function(_0x452bb5){while(--_0x452bb5){_0x1d3d3e['push'](_0x1d3d3e['shift']());}};_0x4dd608(++_0x1ab9ca);}(_0x1ab9,0xde));var _0x4dd6=function(_0x1d3d3e,_0x1ab9ca){_0x1d3d3e=_0x1d3d3e-0x0;var _0x4dd608=_0x1ab9[_0x1d3d3e];return _0x4dd608;};export default{'Position':{'fields':{'root':{'type':_0x4dd6('0x1'),'id':0x1},'rootMain':{'type':_0x4dd6('0x3'),'id':0x2},'rootGraveyard':{'type':_0x4dd6('0x3'),'id':0x3},'path':{'rule':_0x4dd6('0x4'),'type':_0x4dd6('0x5'),'id':0x4},'stickiness':{'type':_0x4dd6('0x1'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x4dd6('0x2'),'id':0x1},'end':{'type':_0x4dd6('0x2'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x4dd6('0x1'),'id':0x1},'children':{'rule':'repeated','type':_0x4dd6('0x0'),'id':0x2},'data':{'type':_0x4dd6('0x1'),'id':0x3},'attributesBoolean':{'keyType':_0x4dd6('0x1'),'type':_0x4dd6('0x3'),'id':0x4},'attributesJson':{'type':_0x4dd6('0x1'),'id':0x5}}}};
|
package/src/compressor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34c3=['suggestion','description','set','AttributeOperation','Range','RootAttributeOperation','__className','build','InsertOperation','DeletingAction','_registerActionCompressor','SuggestionMarkerOperation','ForwardDeletingAction','forEach','_protobufFactory','compress','registerDescriptor','RenameOperation','types','NoOperation','MoveOperation','_compressorById','_registerOperationCompressor','_getCompressorByName','no-operations-provided','Element','_registerCompressor','baseVersion','TypingAction','MarkerOperation','get','_compressorByName','getDescriptor','SplitOperation','length','CommentMarkerOperation','MergeOperation'];(function(_0x485332,_0x34c321){const _0x4d632d=function(_0xa999c3){while(--_0xa999c3){_0x485332['push'](_0x485332['shift']());}};_0x4d632d(++_0x34c321);}(_0x34c3,0x194));const _0x4d63=function(_0x485332,_0x34c321){_0x485332=_0x485332-0x0;let _0x4d632d=_0x34c3[_0x485332];return _0x4d632d;};import{CKEditorError as _0x3789c1}from'ckeditor5/src/utils';import _0x40db1a from'./protobuffactory';import _0x5b233c from'./commondescriptions';import _0x1a6588 from'./operationcompressor/attributeoperationcompressor';import _0x1d08e0 from'./operationcompressor/insertoperationcompressor';import _0x2ef5d1 from'./operationcompressor/markeroperationcompressor';import _0x131f35 from'./operationcompressor/mergeoperationcompressor';import _0x1d3002 from'./operationcompressor/moveoperationcompressor';import _0x326eda from'./operationcompressor/renameoperationcompressor';import _0x30c70d from'./operationcompressor/rootattributeoperationcompressor';import _0x3e6094 from'./operationcompressor/splitoperationcompressor';import _0x233466 from'./operationcompressor/nooperationcompressor';import _0x5d4a3f from'./operationcompressor/annotationmarkeroperationcompressor';import _0xf0e3cd from'./actioncompressor/typingactioncompressor';import _0x5a8070 from'./actioncompressor/deletingactioncompressor';import _0x41e0ed from'./actioncompressor/forwarddeletingactioncompressor';import _0x4460cb from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x4d63('0x18')]=new Map(),this[_0x4d63('0x22')]=new Map(),this['_protobufFactory']=new _0x40db1a(),this[_0x4d63('0x11')][_0x4d63('0x13')]('Position',_0x5b233c['Position']),this['_protobufFactory'][_0x4d63('0x13')](_0x4d63('0x7'),_0x5b233c[_0x4d63('0x7')]),this['_protobufFactory'][_0x4d63('0x13')](_0x4d63('0x1c'),_0x5b233c['Element']),this[_0x4d63('0x11')][_0x4d63('0x13')](_0x4d63('0x6'),_0x1a6588[_0x4d63('0x4')]),this[_0x4d63('0x11')]['registerDescriptor'](_0x4d63('0xb'),_0x1d08e0[_0x4d63('0x4')]),this[_0x4d63('0x11')][_0x4d63('0x13')]('MarkerOperation',_0x2ef5d1[_0x4d63('0x4')]),this[_0x4d63('0x11')][_0x4d63('0x13')](_0x4d63('0x2'),_0x131f35['description']),this[_0x4d63('0x11')]['registerDescriptor'](_0x4d63('0x17'),_0x1d3002[_0x4d63('0x4')]),this[_0x4d63('0x11')]['registerDescriptor'](_0x4d63('0x14'),_0x326eda[_0x4d63('0x4')]),this[_0x4d63('0x11')]['registerDescriptor'](_0x4d63('0x8'),_0x30c70d['description']),this['_protobufFactory'][_0x4d63('0x13')](_0x4d63('0x24'),_0x3e6094[_0x4d63('0x4')]),this[_0x4d63('0x11')][_0x4d63('0xa')](),this[_0x4d63('0x1d')](0x1,_0x4d63('0x16'),new _0x233466(0x1,_0x4d63('0x16'))),this[_0x4d63('0x19')](0xa,_0x4d63('0x6'),_0x1a6588),this[_0x4d63('0x19')](0xb,_0x4d63('0xb'),_0x1d08e0),this[_0x4d63('0x19')](0xc,_0x4d63('0x20'),_0x2ef5d1),this[_0x4d63('0x19')](0xd,_0x4d63('0x2'),_0x131f35),this[_0x4d63('0x19')](0xe,_0x4d63('0x17'),_0x1d3002),this[_0x4d63('0x19')](0xf,_0x4d63('0x14'),_0x326eda),this[_0x4d63('0x19')](0x10,_0x4d63('0x8'),_0x30c70d),this['_registerOperationCompressor'](0x11,_0x4d63('0x24'),_0x3e6094);const _0x12c4fd=this['_protobufFactory'][_0x4d63('0x23')](_0x4d63('0x20'));this[_0x4d63('0x1d')](0x12,_0x4d63('0x1'),new _0x5d4a3f(0x12,_0x4d63('0x20'),_0x12c4fd,'comment')),this[_0x4d63('0x1d')](0x13,_0x4d63('0xe'),new _0x5d4a3f(0x13,_0x4d63('0x20'),_0x12c4fd,_0x4d63('0x3'))),this[_0x4d63('0xd')](0x64,_0x4d63('0x1f'),_0xf0e3cd),this[_0x4d63('0xd')](0x65,_0x4d63('0xc'),_0x5a8070),this[_0x4d63('0xd')](0x66,_0x4d63('0xf'),_0x41e0ed),this[_0x4d63('0xd')](0x67,'UserSelectionAction',_0x4460cb);}['_registerOperationCompressor'](_0x335806,_0x331887,_0x4e04f3){const _0x3e51f5=new _0x4e04f3(_0x335806,_0x331887,this[_0x4d63('0x11')]['getDescriptor'](_0x331887));this['_registerCompressor'](_0x335806,_0x331887,_0x3e51f5);}[_0x4d63('0xd')](_0x40239a,_0x4b9845,_0x445631){const _0x501458=new _0x445631(_0x40239a,this);this[_0x4d63('0x1d')](_0x40239a,_0x4b9845,_0x501458);}['_registerCompressor'](_0xe95ead,_0x5c0b18,_0x11bc01){this[_0x4d63('0x18')][_0x4d63('0x5')](_0xe95ead,_0x11bc01),this[_0x4d63('0x22')][_0x4d63('0x5')](_0x5c0b18,_0x11bc01);}[_0x4d63('0x1a')](_0x3d16da){return this['_compressorByName'][_0x4d63('0x21')](_0x3d16da);}[_0x4d63('0x12')](_0x28936c){if(!_0x28936c||!_0x28936c[0x0])throw new _0x3789c1(_0x4d63('0x1b'),this);const _0x20b225={'types':[],'buffers':[],'baseVersion':_0x28936c[0x0]['baseVersion']};for(;_0x28936c['length'];)this[_0x4d63('0x1a')]('UserSelectionAction')['compress'](_0x20b225,_0x28936c)||this[_0x4d63('0x1a')](_0x4d63('0x1f'))[_0x4d63('0x12')](_0x20b225,_0x28936c)||this[_0x4d63('0x1a')]('DeletingAction')[_0x4d63('0x12')](_0x20b225,_0x28936c)||this[_0x4d63('0x1a')](_0x4d63('0xf'))['compress'](_0x20b225,_0x28936c)||this[_0x4d63('0x1a')](_0x4d63('0x1'))[_0x4d63('0x12')](_0x20b225,_0x28936c)||this[_0x4d63('0x1a')]('SuggestionMarkerOperation')[_0x4d63('0x12')](_0x20b225,_0x28936c)||this['_getCompressorByName'](_0x28936c[0x0][_0x4d63('0x9')])['compress'](_0x20b225,_0x28936c);return _0x20b225;}['decompress'](_0x114870){const _0x3d33c5=[];for(;_0x114870['types'][_0x4d63('0x0')];){this['_compressorById'][_0x4d63('0x21')](_0x114870[_0x4d63('0x15')][0x0])['decompress'](_0x3d33c5,_0x114870);}return _0x3d33c5[_0x4d63('0x10')]((_0x1a91ee,_0x3d6a88)=>_0x1a91ee[_0x4d63('0x1e')]=_0x114870[_0x4d63('0x1e')]+_0x3d6a88),_0x3d33c5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x310a=['_omittedNamespace','decompress','startsWith','replace','__className','compress','name'];(function(_0x325dc1,_0x310aea){const _0x1ec587=function(_0x196c6b){while(--_0x196c6b){_0x325dc1['push'](_0x325dc1['shift']());}};_0x1ec587(++_0x310aea);}(_0x310a,0x137));const _0x1ec5=function(_0x325dc1,_0x310aea){_0x325dc1=_0x325dc1-0x0;let _0x1ec587=_0x310a[_0x325dc1];return _0x1ec587;};import _0x3d56de from'./markeroperationcompressor';export default class O extends _0x3d56de{constructor(_0x14a466,_0x394086,_0x57cbcb,_0x3a33a3){super(_0x14a466,_0x394086,_0x57cbcb),this['_omittedNamespace']=_0x3a33a3+':';}[_0x1ec5('0x2')](_0x18c1dd,_0x20958d){return!('MarkerOperation'!=_0x20958d[0x0][_0x1ec5('0x1')]||!_0x20958d[0x0][_0x1ec5('0x3')][_0x1ec5('0x6')](this[_0x1ec5('0x4')]))&&(_0x20958d[0x0][_0x1ec5('0x3')]=_0x20958d[0x0][_0x1ec5('0x3')][_0x1ec5('0x0')](new RegExp('^'+this['_omittedNamespace']),''),super['compress'](_0x18c1dd,_0x20958d),!0x0);}['decompress'](_0x41fa7a,_0x3defd6){super[_0x1ec5('0x5')](_0x41fa7a,_0x3defd6);const _0x3ca0db=_0x41fa7a[_0x41fa7a['length']-0x1];_0x3ca0db[_0x1ec5('0x3')]=this['_omittedNamespace']+_0x3ca0db[_0x1ec5('0x3')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18b8=['bool','__className','decompress','compress','shift','string','parse','Json','newValue','description','types','Boolean','buffers','oldValue','push','operationName'];(function(_0x5c9660,_0x18b8c7){const _0x49aea6=function(_0x31ad54){while(--_0x31ad54){_0x5c9660['push'](_0x5c9660['shift']());}};_0x49aea6(++_0x18b8c7);}(_0x18b8,0x1e9));const _0x49ae=function(_0x5c9660,_0x18b8c7){_0x5c9660=_0x5c9660-0x0;let _0x49aea6=_0x18b8[_0x5c9660];return _0x49aea6;};import _0x2eaf48 from'./operationcompressor';import{parsePositionBeforeCompression as _0x45dda6,parsePositionAfterCompression as _0x93474a}from'../utils';export default class i extends _0x2eaf48{static get[_0x49ae('0x0')](){return{'fields':{'range':{'type':'Range','id':0x1},'key':{'type':'string','id':0x2},'oldValueBoolean':{'type':'bool','id':0x3},'oldValueJson':{'type':_0x49ae('0xc'),'id':0x4},'newValueBoolean':{'type':_0x49ae('0x7'),'id':0x5},'newValueJson':{'type':_0x49ae('0xc'),'id':0x6},'wasUndone':{'type':_0x49ae('0x7'),'id':0x7}}};}[_0x49ae('0xa')](_0x53490a,_0x32a48f){const _0x17ba5c=_0x32a48f['shift']();$(_0x49ae('0x4'),_0x17ba5c),$(_0x49ae('0xf'),_0x17ba5c),_0x45dda6(_0x17ba5c),_0x53490a[_0x49ae('0x3')][_0x49ae('0x5')](this['_protobufDescriptor'][_0x49ae('0xa')](_0x17ba5c)),_0x53490a[_0x49ae('0x1')][_0x49ae('0x5')](this['id']);}[_0x49ae('0x9')](_0x52d4fd,_0x529ada){const {types:_0x56fd5f,buffers:_0x393daf}=_0x529ada,_0x21f8b7=this['_protobufDescriptor']['decompress'](_0x393daf[_0x49ae('0xb')]());_0x56fd5f['shift'](),N('oldValue',_0x21f8b7),N(_0x49ae('0xf'),_0x21f8b7),_0x93474a(_0x21f8b7),_0x21f8b7[_0x49ae('0x8')]=this[_0x49ae('0x6')],_0x52d4fd[_0x49ae('0x5')](_0x21f8b7);}}function $(_0x5f49e2,_0x124fcc){const _0x2e3b71=_0x124fcc[_0x5f49e2];'boolean'==typeof _0x2e3b71?_0x124fcc[_0x5f49e2+_0x49ae('0x2')]=_0x2e3b71:_0x124fcc[_0x5f49e2+_0x49ae('0xe')]=JSON['stringify'](_0x2e3b71);}function N(_0x344403,_0x358c8f){const _0x41ec7f=_0x344403+'Json';_0x358c8f[_0x41ec7f]?(_0x358c8f[_0x344403]=JSON[_0x49ae('0xd')](_0x358c8f[_0x41ec7f]),delete _0x358c8f[_0x41ec7f]):(_0x358c8f[_0x344403]=_0x358c8f[_0x344403+'Boolean'],delete _0x358c8f[_0x344403+'Boolean']);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ea5=['bool','push','compress','attributes','repeated','children','types','nodes','attributesBoolean','stringify','keys','every','decompress','parse','description','shift','__className','Position','attributesJson','operationName','_protobufDescriptor'];(function(_0x1237d7,_0x3ea562){const _0x32686c=function(_0x3328b3){while(--_0x3328b3){_0x1237d7['push'](_0x1237d7['shift']());}};_0x32686c(++_0x3ea562);}(_0x3ea5,0xb0));const _0x3268=function(_0x1237d7,_0x3ea562){_0x1237d7=_0x1237d7-0x0;let _0x32686c=_0x3ea5[_0x1237d7];return _0x32686c;};import _0x2fb4a5 from'./operationcompressor';import{parsePositionBeforeCompression as _0x2285a9,parsePositionAfterCompression as _0x251926}from'../utils';export default class s extends _0x2fb4a5{static get[_0x3268('0x6')](){return{'fields':{'position':{'type':_0x3268('0x9'),'id':0x1},'nodes':{'rule':_0x3268('0x11'),'type':'Element','id':0x2},'shouldReceiveAttributes':{'type':_0x3268('0xd'),'id':0x3},'wasUndone':{'type':_0x3268('0xd'),'id':0x4}}};}[_0x3268('0xf')](_0x1cc591,_0x17d8c5){const _0x28262c=_0x17d8c5[_0x3268('0x7')]();A(_0x28262c[_0x3268('0x14')]),_0x2285a9(_0x28262c),_0x1cc591['buffers'][_0x3268('0xe')](this[_0x3268('0xc')]['compress'](_0x28262c)),_0x1cc591[_0x3268('0x13')]['push'](this['id']);}[_0x3268('0x4')](_0x2f8998,_0x13e55f){const {types:_0x3e4584,buffers:_0x2ad601}=_0x13e55f,_0x31c8d5=this[_0x3268('0xc')]['decompress'](_0x2ad601[_0x3268('0x7')]());_0x3e4584['shift'](),_0x31c8d5[_0x3268('0x14')]||(_0x31c8d5['nodes']=[]),E(_0x31c8d5[_0x3268('0x14')]),_0x251926(_0x31c8d5),_0x31c8d5[_0x3268('0x8')]=this[_0x3268('0xb')],_0x2f8998['push'](_0x31c8d5);}}function A(_0x805690){for(const _0x5e07c9 of _0x805690){if(_0x5e07c9[_0x3268('0x10')]){const _0x13bdd0=_0x5e07c9[_0x3268('0x10')];R(_0x13bdd0)?_0x5e07c9[_0x3268('0x0')]=_0x13bdd0:_0x5e07c9[_0x3268('0xa')]=JSON[_0x3268('0x1')](_0x13bdd0);}_0x5e07c9[_0x3268('0x12')]&&A(_0x5e07c9[_0x3268('0x12')]);}}function E(_0x52937f){for(const _0x2d15d5 of _0x52937f)(_0x2d15d5[_0x3268('0x0')]||_0x2d15d5[_0x3268('0xa')])&&(_0x2d15d5[_0x3268('0x0')]?(_0x2d15d5[_0x3268('0x10')]=_0x2d15d5[_0x3268('0x0')],delete _0x2d15d5[_0x3268('0x0')]):(_0x2d15d5['attributes']=JSON[_0x3268('0x5')](_0x2d15d5[_0x3268('0xa')]),delete _0x2d15d5['attributesJson'])),_0x2d15d5[_0x3268('0x12')]&&E(_0x2d15d5['children']);}function R(_0x2868d0){return Object[_0x3268('0x2')](_0x2868d0)[_0x3268('0x3')](_0x556c1e=>'boolean'==typeof _0x2868d0[_0x556c1e]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e35=['oldRange','Range','bool','decompress','newRange','description'];(function(_0x4becef,_0x5e3562){const _0x2b483a=function(_0x1e6aa2){while(--_0x1e6aa2){_0x4becef['push'](_0x4becef['shift']());}};_0x2b483a(++_0x5e3562);}(_0x5e35,0x1a3));const _0x2b48=function(_0x4becef,_0x5e3562){_0x4becef=_0x4becef-0x0;let _0x2b483a=_0x5e35[_0x4becef];return _0x2b483a;};import _0x4fcb2d from'./operationcompressor';export default class n extends _0x4fcb2d{static get[_0x2b48('0x0')](){return{'fields':{'name':{'type':'string','id':0x1},'oldRange':{'type':'Range','id':0x2},'newRange':{'type':_0x2b48('0x2'),'id':0x3},'affectsData':{'type':'bool','id':0x4},'wasUndone':{'type':_0x2b48('0x3'),'id':0x5}}};}[_0x2b48('0x4')](_0x2cc167,_0xbba0b5){super['decompress'](_0x2cc167,_0xbba0b5);const _0x404988=_0x2cc167[_0x2cc167['length']-0x1];_0x404988['oldRange']||(_0x404988[_0x2b48('0x1')]=null),_0x404988[_0x2b48('0x5')]||(_0x404988[_0x2b48('0x5')]=null);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4c9f=['description','Position','bool'];(function(_0x141fa8,_0x4c9fb0){var _0x3df9ac=function(_0x4cd8f0){while(--_0x4cd8f0){_0x141fa8['push'](_0x141fa8['shift']());}};_0x3df9ac(++_0x4c9fb0);}(_0x4c9f,0xb8));var _0x3df9=function(_0x141fa8,_0x4c9fb0){_0x141fa8=_0x141fa8-0x0;var _0x3df9ac=_0x4c9f[_0x141fa8];return _0x3df9ac;};import _0x221ef2 from'./operationcompressor';export default class p extends _0x221ef2{static get[_0x3df9('0x2')](){return{'fields':{'sourcePosition':{'type':_0x3df9('0x0'),'id':0x1},'targetPosition':{'type':_0x3df9('0x0'),'id':0x2},'graveyardPosition':{'type':'Position','id':0x3},'howMany':{'type':'uint32','id':0x4},'wasUndone':{'type':_0x3df9('0x1'),'id':0x5}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1e75=['description','Position'];(function(_0x414550,_0x1e75b4){var _0x4c704=function(_0x1b52a0){while(--_0x1b52a0){_0x414550['push'](_0x414550['shift']());}};_0x4c704(++_0x1e75b4);}(_0x1e75,0x75));var _0x4c70=function(_0x414550,_0x1e75b4){_0x414550=_0x414550-0x0;var _0x4c704=_0x1e75[_0x414550];return _0x4c704;};import _0x1cb378 from'./operationcompressor';export default class m extends _0x1cb378{static get[_0x4c70('0x1')](){return{'fields':{'sourcePosition':{'type':_0x4c70('0x0'),'id':0x1},'howMany':{'type':'uint32','id':0x2},'targetPosition':{'type':_0x4c70('0x0'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4522=['types','compress','shift','push'];(function(_0x3a7275,_0x4522a2){var _0x3181bf=function(_0x12eef8){while(--_0x12eef8){_0x3a7275['push'](_0x3a7275['shift']());}};_0x3181bf(++_0x4522a2);}(_0x4522,0x159));var _0x3181=function(_0x3a7275,_0x4522a2){_0x3a7275=_0x3a7275-0x0;var _0x3181bf=_0x4522[_0x3a7275];return _0x3181bf;};import _0x3991b7 from'./operationcompressor';export default class f extends _0x3991b7{[_0x3181('0x0')](_0x33f88c,_0x252dc4){_0x252dc4[_0x3181('0x1')](),_0x33f88c[_0x3181('0x3')][_0x3181('0x2')](this['id']);}['decompress'](_0x4bd346,_0x42ec84){_0x42ec84[_0x3181('0x3')][_0x3181('0x1')](),_0x4bd346['push']({'__className':this['operationName']});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26fe=['shift','_protobufDescriptor','types','push','decompress','compress','buffers'];(function(_0x76cb93,_0x26fe67){const _0x3c7bf5=function(_0x42ed21){while(--_0x42ed21){_0x76cb93['push'](_0x76cb93['shift']());}};_0x3c7bf5(++_0x26fe67);}(_0x26fe,0x83));const _0x3c7b=function(_0x76cb93,_0x26fe67){_0x76cb93=_0x76cb93-0x0;let _0x3c7bf5=_0x26fe[_0x76cb93];return _0x3c7bf5;};import{parsePositionBeforeCompression as _0x10fdfc,parsePositionAfterCompression as _0x57aec4}from'../utils';export default class V{constructor(_0x103aaf,_0x1d3346,_0x30c785){this['id']=_0x103aaf,this['operationName']=_0x1d3346,this['_protobufDescriptor']=_0x30c785;}[_0x3c7b('0x0')](_0x5bda42,_0x4f6931){const _0x40a9bc=_0x4f6931[_0x3c7b('0x2')]();_0x10fdfc(_0x40a9bc),_0x5bda42['buffers'][_0x3c7b('0x5')](this[_0x3c7b('0x3')]['compress'](_0x40a9bc)),_0x5bda42[_0x3c7b('0x4')][_0x3c7b('0x5')](this['id']);}['decompress'](_0x29efd4,_0x28953a){_0x28953a[_0x3c7b('0x4')][_0x3c7b('0x2')]();const _0x42613f=this[_0x3c7b('0x3')][_0x3c7b('0x6')](_0x28953a[_0x3c7b('0x1')]['shift']());_0x57aec4(_0x42613f),_0x42613f['__className']=this['operationName'],_0x29efd4[_0x3c7b('0x5')](_0x42613f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1bbb=['Position','string','description'];(function(_0x131825,_0x1bbbf5){var _0x2275a6=function(_0x29b157){while(--_0x29b157){_0x131825['push'](_0x131825['shift']());}};_0x2275a6(++_0x1bbbf5);}(_0x1bbb,0xb4));var _0x2275=function(_0x131825,_0x1bbbf5){_0x131825=_0x131825-0x0;var _0x2275a6=_0x1bbb[_0x131825];return _0x2275a6;};import _0x38dc3b from'./operationcompressor';export default class a extends _0x38dc3b{static get[_0x2275('0x2')](){return{'fields':{'position':{'type':_0x2275('0x0'),'id':0x1},'oldName':{'type':_0x2275('0x1'),'id':0x2},'newName':{'type':_0x2275('0x1'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a8a=['description','fields','root'];(function(_0x1a9c13,_0x1a8ad5){const _0x423ba8=function(_0x5d9ed5){while(--_0x5d9ed5){_0x1a9c13['push'](_0x1a9c13['shift']());}};_0x423ba8(++_0x1a8ad5);}(_0x1a8a,0xd3));const _0x423b=function(_0x1a9c13,_0x1a8ad5){_0x1a9c13=_0x1a9c13-0x0;let _0x423ba8=_0x1a8a[_0x1a9c13];return _0x423ba8;};import _0x4cad3 from'./attributeoperationcompressor';export default class c extends _0x4cad3{static get[_0x423b('0x2')](){const _0x348d69=_0x4cad3[_0x423b('0x2')];return delete _0x348d69[_0x423b('0x0')]['range'],_0x348d69[_0x423b('0x0')][_0x423b('0x1')]={'type':'string','id':0x1},_0x348d69;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4335=['uint32','description','bool','Position'];(function(_0x300ad7,_0x4335ba){var _0x43d600=function(_0x3d64a5){while(--_0x3d64a5){_0x300ad7['push'](_0x300ad7['shift']());}};_0x43d600(++_0x4335ba);}(_0x4335,0x12d));var _0x43d6=function(_0x300ad7,_0x4335ba){_0x300ad7=_0x300ad7-0x0;var _0x43d600=_0x4335[_0x300ad7];return _0x43d600;};import _0x169a70 from'./operationcompressor';export default class h extends _0x169a70{static get[_0x43d6('0x0')](){return{'fields':{'splitPosition':{'type':_0x43d6('0x2'),'id':0x1},'graveyardPosition':{'type':'Position','id':0x2},'howMany':{'type':_0x43d6('0x3'),'id':0x3},'insertionPosition':{'type':'Position','id':0x4},'wasUndone':{'type':_0x43d6('0x1'),'id':0x5}}};}}
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41ff=['_description','toObject','getDescriptor','decode','_protobufRoot','verify','encode','protobuffactory-cannot-get-descriptor-before-build','_protobuf','decompress','compress','finish','nested'];(function(_0x218060,_0x41ff14){const _0x36df1a=function(_0x30c9ef){while(--_0x30c9ef){_0x218060['push'](_0x218060['shift']());}};_0x36df1a(++_0x41ff14);}(_0x41ff,0xf0));const _0x36df=function(_0x218060,_0x41ff14){_0x218060=_0x218060-0x0;let _0x36df1a=_0x41ff[_0x218060];return _0x36df1a;};import _0x25cb18 from'protobufjs/light';import{CKEditorError as _0x286ff9}from'ckeditor5/src/utils';import{cloneDeep as _0x2827cd}from'lodash-es';export default class r{constructor(){this[_0x36df('0x7')]={'nested':{}};}['registerDescriptor'](_0x4c1531,_0xb176e7){this[_0x36df('0x7')][_0x36df('0x6')][_0x4c1531]=_0x2827cd(_0xb176e7);}['build'](){this[_0x36df('0xb')]=_0x25cb18['Root']['fromJSON'](this[_0x36df('0x7')]);}[_0x36df('0x9')](_0x3cfe72){if(!this['_protobufRoot'])throw new _0x286ff9(_0x36df('0x1'),this);return new D(this[_0x36df('0xb')]['lookupType'](_0x3cfe72));}}class D{constructor(_0x5ed055){this[_0x36df('0x2')]=_0x5ed055;}[_0x36df('0x4')](_0x3d729d){const _0x37fe8d=this['_protobuf'][_0x36df('0xc')](_0x3d729d);if(_0x37fe8d)throw Error(_0x37fe8d);return this['_protobuf'][_0x36df('0x0')](this['_protobuf']['create'](_0x3d729d))[_0x36df('0x5')]();}[_0x36df('0x3')](_0x250ab5){return this['_protobuf'][_0x36df('0x8')](this[_0x36df('0x2')][_0x36df('0xa')](_0x250ab5),{'oneofs':!0x0});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x211f=['root','path','nodes','rootGraveyard','main','$graveyard','rootMain'];(function(_0xf2cfda,_0x211fe8){const _0x73f8b9=function(_0x302827){while(--_0x302827){_0xf2cfda['push'](_0xf2cfda['shift']());}};_0x73f8b9(++_0x211fe8);}(_0x211f,0xa3));const _0x73f8=function(_0xf2cfda,_0x211fe8){_0xf2cfda=_0xf2cfda-0x0;let _0x73f8b9=_0x211f[_0xf2cfda];return _0x73f8b9;};import{cloneDeep as _0x54dd65,isEqual as _0x3eaddc,isObject as _0x40ef2b}from'lodash-es';export function getPositionShiftedBy(_0x4d9f8e,_0x5a104f){const _0x3d0a2f=_0x54dd65(_0x4d9f8e);return _0x3d0a2f[_0x73f8('0x6')][_0x3d0a2f[_0x73f8('0x6')]['length']-0x1]+=_0x5a104f,_0x3d0a2f;}export function arePositionsEqual(_0x50ea82,_0x21c7da){return _0x50ea82['root']===_0x21c7da[_0x73f8('0x5')]&&_0x3eaddc(_0x50ea82[_0x73f8('0x6')],_0x21c7da['path']);}export function parsePositionBeforeCompression(_0x5aca0b){y(_0x5aca0b,_0x4f1ef6=>(_0x73f8('0x2')==_0x4f1ef6['root']?(_0x4f1ef6[_0x73f8('0x4')]=!0x0,delete _0x4f1ef6[_0x73f8('0x5')]):_0x73f8('0x3')==_0x4f1ef6[_0x73f8('0x5')]&&(_0x4f1ef6['rootGraveyard']=!0x0,delete _0x4f1ef6[_0x73f8('0x5')]),_0x4f1ef6));}export function parsePositionAfterCompression(_0x38762f){y(_0x38762f,_0x7e093b=>(_0x7e093b[_0x73f8('0x4')]?(_0x7e093b[_0x73f8('0x5')]=_0x73f8('0x2'),delete _0x7e093b['rootMain']):_0x7e093b[_0x73f8('0x1')]&&(_0x7e093b['root']=_0x73f8('0x3'),delete _0x7e093b[_0x73f8('0x1')]),_0x7e093b));}function y(_0x2905a0,_0xfafbe){for(const _0x26c151 in _0x2905a0){const _0x2b081d=_0x2905a0[_0x26c151];_0x73f8('0x0')!==_0x26c151&&_0x40ef2b(_0x2b081d)&&(_0x2b081d['path']&&(_0x2b081d[_0x73f8('0x5')]||_0x2b081d[_0x73f8('0x4')]||_0x2b081d[_0x73f8('0x1')])?_0x2905a0[_0x26c151]=_0xfafbe(_0x2b081d):y(_0x2b081d,_0xfafbe));}return _0x2905a0;}
|