@ckeditor/ckeditor5-operations-compressor 34.0.0 → 35.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/README.md +2 -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
|
@@ -20,11 +20,11 @@ As a licensed CKEditor 5 Collaboration features user you can report bugs and req
|
|
|
20
20
|
## License
|
|
21
21
|
|
|
22
22
|
**CKEditor 5 operations compressor**<br>
|
|
23
|
-
Copyright (c) 2003-2022, [CKSource
|
|
23
|
+
Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
24
24
|
|
|
25
25
|
CKEditor 5 operations compressor is licensed under a commercial license and is protected by copyright law.
|
|
26
26
|
For more details about available licensing options please contact us at sales@cksource.com.
|
|
27
27
|
|
|
28
28
|
### Trademarks
|
|
29
29
|
|
|
30
|
-
**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": "35.0.1",
|
|
4
4
|
"description": "CKEditor 5 operations compressor for real-time collaboration.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://ckeditor.com/collaboration/real-time/",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"author": "CKSource (http://cksource.com/)",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"ckeditor5": "^
|
|
30
|
+
"ckeditor5": "^35.0.1",
|
|
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 _0x14e8=['_combineNext','push','types','_compressSingleOperation','_compareOperations','_context','_decompressSingleOperation','shift','length','_splitCurrent'];(function(_0xfb8733,_0x14e81b){const _0x5d3260=function(_0x2b861a){while(--_0x2b861a){_0xfb8733['push'](_0xfb8733['shift']());}};_0x5d3260(++_0x14e81b);}(_0x14e8,0xa6));const _0x5d32=function(_0xfb8733,_0x14e81b){_0xfb8733=_0xfb8733-0x0;let _0x5d3260=_0x14e8[_0xfb8733];return _0x5d3260;};import{cloneDeep as _0x2cc4f5}from'lodash-es';export default class j{constructor(_0xec50,_0x5325fd){this['id']=_0xec50,this[_0x5d32('0x9')]=_0x5325fd;}['compress'](_0x1fc934,_0x487da5){let _0x74dbc9;for(;_0x487da5[_0x5d32('0x2')]>0x1&&this[_0x5d32('0x8')](_0x487da5[0x0],_0x487da5[0x1]);)_0x74dbc9?(_0x74dbc9=this['_combineNext'](_0x487da5[_0x5d32('0x1')](),_0x74dbc9),_0x1fc934[_0x5d32('0x6')][_0x5d32('0x5')](0x0)):(_0x74dbc9=_0x2cc4f5(_0x487da5['shift']()),_0x1fc934[_0x5d32('0x6')]['push'](this['id']));return!!_0x74dbc9&&(_0x74dbc9=this[_0x5d32('0x4')](_0x487da5[_0x5d32('0x1')](),_0x74dbc9),_0x1fc934['types'][_0x5d32('0x5')](0x0),_0x1fc934['buffers'][_0x5d32('0x5')](this[_0x5d32('0x7')](_0x74dbc9)),!0x0);}['decompress'](_0x23c305,_0x12f8a7){const _0x5a964f=this[_0x5d32('0x0')](_0x12f8a7);for(;0x0==_0x12f8a7[_0x5d32('0x6')][0x0];)_0x12f8a7[_0x5d32('0x6')]['shift'](),_0x23c305[_0x5d32('0x5')](this[_0x5d32('0x3')](_0x5a964f));_0x23c305[_0x5d32('0x5')](_0x5a964f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5440=['sourcePosition','__className','_combineNext','MoveOperation','buffers','wasUndone','compress','_compareOperations','_compressSingleOperation','$graveyard','targetPosition','_getCompressorByName','howMany'];(function(_0x7ec505,_0x544073){const _0x545342=function(_0x2dbb5c){while(--_0x2dbb5c){_0x7ec505['push'](_0x7ec505['shift']());}};_0x545342(++_0x544073);}(_0x5440,0x85));const _0x5453=function(_0x7ec505,_0x544073){_0x7ec505=_0x7ec505-0x0;let _0x545342=_0x5440[_0x7ec505];return _0x545342;};import _0x447127 from'./actioncompressor';import{arePositionsEqual as _0x2484e1,getPositionShiftedBy as _0x22b319}from'../utils';import{cloneDeep as _0x4967b6}from'lodash-es';export default class u extends _0x447127{[_0x5453('0xc')](_0x3ba871,_0x23fb5e){return _0x23fb5e[_0x5453('0x9')]++,_0x23fb5e[_0x5453('0xa')]=_0x4967b6(_0x3ba871[_0x5453('0xa')]),_0x23fb5e;}['_splitCurrent'](_0x4e8d2e){const _0x5028ab=_0x4967b6(_0x4e8d2e);return _0x4e8d2e['howMany']--,_0x5028ab[_0x5453('0x9')]=0x1,_0x5028ab[_0x5453('0xa')]=_0x22b319(_0x5028ab[_0x5453('0xa')],_0x4e8d2e[_0x5453('0x9')]),_0x5028ab;}[_0x5453('0x4')](_0x9b6482,_0x22441f){return!(!S(_0x9b6482)||!S(_0x22441f))&&(_0x2484e1(_0x22b319(_0x9b6482[_0x5453('0xa')],-0x1),_0x22441f[_0x5453('0xa')])&&_0x2484e1(_0x9b6482['targetPosition'],_0x22441f['targetPosition']));}[_0x5453('0x5')](_0x577647){const _0x19c520={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x5453('0x8')]('MoveOperation')[_0x5453('0x3')](_0x19c520,[_0x577647]),_0x19c520[_0x5453('0x1')][0x0];}['_decompressSingleOperation'](_0xb35866){const _0x2958c3=[];return this['_context'][_0x5453('0x8')](_0x5453('0x0'))['decompress'](_0x2958c3,_0xb35866),_0x2958c3[0x0];}}function S(_0x48d929){return'MoveOperation'==_0x48d929[_0x5453('0xb')]&&_0x5453('0x6')==_0x48d929[_0x5453('0x7')]['root']&&0x1==_0x48d929[_0x5453('0x9')]&&!_0x48d929[_0x5453('0x2')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4875=['buffers','_compareOperations','compress','wasUndone','_splitCurrent','decompress','_getCompressorByName','targetPosition','root','sourcePosition','_context','MoveOperation','$graveyard','howMany','_combineNext'];(function(_0x2626c9,_0x4875fe){const _0x5418bc=function(_0x2f04cd){while(--_0x2f04cd){_0x2626c9['push'](_0x2626c9['shift']());}};_0x5418bc(++_0x4875fe);}(_0x4875,0x104));const _0x5418=function(_0x2626c9,_0x4875fe){_0x2626c9=_0x2626c9-0x0;let _0x5418bc=_0x4875[_0x2626c9];return _0x5418bc;};import _0x34a56b from'./actioncompressor';import{arePositionsEqual as _0x5544d9}from'../utils';import{cloneDeep as _0x29cb17}from'lodash-es';export default class l extends _0x34a56b{[_0x5418('0x9')](_0x465136,_0x1a3799){return _0x1a3799[_0x5418('0x8')]++,_0x1a3799;}[_0x5418('0xe')](_0x16a61b){const _0x2a04f6=_0x29cb17(_0x16a61b);return _0x2a04f6[_0x5418('0x8')]=0x1,_0x16a61b[_0x5418('0x8')]--,_0x2a04f6;}[_0x5418('0xb')](_0xa64a8c,_0x4e5b18){return!(!S(_0xa64a8c)||!S(_0x4e5b18))&&(_0x5544d9(_0xa64a8c[_0x5418('0x4')],_0x4e5b18[_0x5418('0x4')])&&_0x5544d9(_0xa64a8c['targetPosition'],_0x4e5b18[_0x5418('0x2')]));}['_compressSingleOperation'](_0x5281db){const _0x6b3712={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x5418('0x5')][_0x5418('0x1')](_0x5418('0x6'))[_0x5418('0xc')](_0x6b3712,[_0x5281db]),_0x6b3712[_0x5418('0xa')][0x0];}['_decompressSingleOperation'](_0x492447){const _0xa8e2ef=[];return this[_0x5418('0x5')]['_getCompressorByName'](_0x5418('0x6'))[_0x5418('0x0')](_0xa8e2ef,_0x492447),_0xa8e2ef[0x0];}}function S(_0x3e9478){return _0x5418('0x6')==_0x3e9478['__className']&&_0x5418('0x7')==_0x3e9478[_0x5418('0x2')][_0x5418('0x3')]&&0x1==_0x3e9478[_0x5418('0x8')]&&!_0x3e9478[_0x5418('0xd')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x234a=['nodes','_getCompressorByName','value','__className','keys','data','_compareOperations','position','iterator','decompress','_compressSingleOperation','attributes','wasUndone','length','substr','from','compress','_splitCurrent','every','next','_combineNext','_context','InsertOperation'];(function(_0x375945,_0x234a82){const _0xaf4f81=function(_0x52a0ac){while(--_0x52a0ac){_0x375945['push'](_0x375945['shift']());}};_0xaf4f81(++_0x234a82);}(_0x234a,0x14c));const _0xaf4f=function(_0x375945,_0x234a82){_0x375945=_0x375945-0x0;let _0xaf4f81=_0x234a[_0x375945];return _0xaf4f81;};import _0xb7265e from'./actioncompressor';import{arePositionsEqual as _0x536dda,getPositionShiftedBy as _0x23ddf6}from'../utils';import{cloneDeep as _0x1675c0}from'lodash-es';export default class g extends _0xb7265e{[_0xaf4f('0xa')](_0x6eced0,_0x17a0ef){return _0x17a0ef['nodes'][0x0][_0xaf4f('0x12')]+=_0x6eced0[_0xaf4f('0xd')][0x0][_0xaf4f('0x12')],_0x17a0ef;}[_0xaf4f('0x7')](_0x3a8298){const _0x496573=_0x1675c0(_0x3a8298),_0x16f9c1=_0x496573['nodes'][0x0],_0x3f59c5=_0x3a8298['nodes'][0x0],_0xeebcf8=_0x3f59c5['data'][Symbol[_0xaf4f('0x15')]]()[_0xaf4f('0x9')]()[_0xaf4f('0xf')],_0x1de7d8=_0xeebcf8['length'];return _0x16f9c1[_0xaf4f('0x12')]=_0xeebcf8,_0x3f59c5[_0xaf4f('0x12')]=_0x3f59c5[_0xaf4f('0x12')][_0xaf4f('0x4')](_0x1de7d8),_0x3a8298[_0xaf4f('0x14')]=_0x23ddf6(_0x3a8298[_0xaf4f('0x14')],_0x1de7d8),_0x496573;}[_0xaf4f('0x13')](_0x39d096,_0x545e67){if(S(_0x39d096)&&S(_0x545e67)){const _0x4d0130=_0x39d096[_0xaf4f('0xd')][0x0][_0xaf4f('0x12')][_0xaf4f('0x3')],_0xaf252b=_0x536dda(_0x23ddf6(_0x39d096[_0xaf4f('0x14')],_0x4d0130),_0x545e67['position']),_0x3e9326=_0x39d096['nodes'][0x0],_0x3d4303=_0x545e67[_0xaf4f('0xd')][0x0];return _0xaf252b&&function(_0x264f59,_0x5d793d){const _0x46bbb2=Object[_0xaf4f('0x11')](_0x264f59[_0xaf4f('0x1')]||{}),_0x24d128=Object['keys'](_0x5d793d['attributes']||{});if(_0x46bbb2[_0xaf4f('0x3')]!==_0x24d128[_0xaf4f('0x3')])return!0x1;return _0x46bbb2[_0xaf4f('0x8')](_0x2d0a4a=>_0x5d793d[_0xaf4f('0x1')][_0x2d0a4a]&&_0x5d793d[_0xaf4f('0x1')][_0x2d0a4a]===_0x264f59['attributes'][_0x2d0a4a]);}(_0x3e9326,_0x3d4303);}return!0x1;}[_0xaf4f('0x0')](_0x2ba9b8){const _0x3d3786={'types':[],'buffers':[],'baseVersion':0x0};return this[_0xaf4f('0xb')][_0xaf4f('0xe')]('InsertOperation')[_0xaf4f('0x6')](_0x3d3786,[_0x2ba9b8]),_0x3d3786['buffers'][0x0];}['_decompressSingleOperation'](_0x34c96c){const _0x333d2a=[];return this[_0xaf4f('0xb')][_0xaf4f('0xe')]('InsertOperation')[_0xaf4f('0x16')](_0x333d2a,_0x34c96c),_0x333d2a[0x0];}}function S(_0x2cfa85){return _0xaf4f('0xc')==_0x2cfa85[_0xaf4f('0x10')]&&0x1==_0x2cfa85[_0xaf4f('0xd')]['length']&&_0x2cfa85['nodes'][0x0]['data']&&!_0x2cfa85[_0xaf4f('0x2')]&&0x1==Array[_0xaf4f('0x5')](_0x2cfa85[_0xaf4f('0xd')][0x0][_0xaf4f('0x12')])[_0xaf4f('0x3')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1de1=['toNone','_compressSingleOperation','decompress','startsWith','start','user:position:','shift','push','MarkerOperation','buffers','_context','stickiness','_decompressSingleOperation','types','user:','_getCompressorByName','name','newRange','__className','end'];(function(_0x267424,_0x1de1ed){const _0x25b512=function(_0x43de16){while(--_0x43de16){_0x267424['push'](_0x267424['shift']());}};_0x25b512(++_0x1de1ed);}(_0x1de1,0x105));const _0x25b5=function(_0x267424,_0x1de1ed){_0x267424=_0x267424-0x0;let _0x25b512=_0x1de1[_0x267424];return _0x25b512;};import _0x22340b from'./actioncompressor';import{arePositionsEqual as _0x1cd106}from'../utils';import{cloneDeep as _0x2278d0}from'lodash-es';export default class M extends _0x22340b{['compress'](_0x3c1b96,_0x303776){if(!function(_0x4e865b,_0x428022){if(!_0x4e865b||!_0x428022)return!0x1;if('MarkerOperation'!=_0x4e865b[_0x25b5('0x11')]||'MarkerOperation'!=_0x428022[_0x25b5('0x11')])return!0x1;if(_0x4e865b[_0x25b5('0xf')][_0x25b5('0x2')](_0x25b5('0xd'))&&_0x428022[_0x25b5('0xf')][_0x25b5('0x2')](_0x25b5('0xd'))&&_0x4e865b['name']!=_0x428022[_0x25b5('0xf')])return!0x0;return!0x1;}(_0x303776[0x0],_0x303776[0x1]))return!0x1;const _0x20de88=_0x303776[_0x25b5('0x5')]();return _0x20de88['oldRange']=null,_0x20de88[_0x25b5('0x10')]&&_0x1cd106(_0x20de88['newRange']['start'],_0x20de88[_0x25b5('0x10')][_0x25b5('0x12')])&&(_0x20de88[_0x25b5('0x10')]['end']=null),_0x303776[_0x25b5('0x5')](),_0x3c1b96['types'][_0x25b5('0x6')](this['id']),_0x3c1b96[_0x25b5('0xc')][_0x25b5('0x6')](0x0),_0x3c1b96['buffers'][_0x25b5('0x6')](this[_0x25b5('0x0')](_0x20de88)),!0x0;}[_0x25b5('0x1')](_0x509dba,_0x4028ec){const _0x2a568a=this[_0x25b5('0xb')](_0x4028ec);_0x2a568a[_0x25b5('0x10')]&&!_0x2a568a['newRange']['end']&&(_0x2a568a[_0x25b5('0x10')][_0x25b5('0x12')]=_0x2278d0(_0x2a568a['newRange']['start']));const _0x547b0c=_0x2278d0(_0x2a568a);_0x547b0c[_0x25b5('0x10')]&&(_0x547b0c[_0x25b5('0x10')][_0x25b5('0x3')][_0x25b5('0xa')]=_0x25b5('0x13'),_0x547b0c[_0x25b5('0x10')][_0x25b5('0x12')]=_0x2278d0(_0x547b0c[_0x25b5('0x10')]['start'])),_0x547b0c['name']=_0x25b5('0x4')+_0x547b0c['name']['split'](':')[0x2],_0x4028ec[_0x25b5('0xc')]['shift'](),_0x509dba['push'](_0x2a568a),_0x509dba['push'](_0x547b0c);}[_0x25b5('0x0')](_0x4f80df){const _0x401512={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x25b5('0x9')][_0x25b5('0xe')](_0x25b5('0x7'))['compress'](_0x401512,[_0x4f80df]),_0x401512[_0x25b5('0x8')][0x0];}[_0x25b5('0xb')](_0x4ac09f){const _0x3ed06b=[];return this[_0x25b5('0x9')][_0x25b5('0xe')](_0x25b5('0x7'))['decompress'](_0x3ed06b,_0x4ac09f),_0x3ed06b[0x0];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1dc7=['string','Position','repeated','uint32','bool'];(function(_0xa72f53,_0x1dc730){var _0x1bec3a=function(_0x49e0ff){while(--_0x49e0ff){_0xa72f53['push'](_0xa72f53['shift']());}};_0x1bec3a(++_0x1dc730);}(_0x1dc7,0x8f));var _0x1bec=function(_0xa72f53,_0x1dc730){_0xa72f53=_0xa72f53-0x0;var _0x1bec3a=_0x1dc7[_0xa72f53];return _0x1bec3a;};export default{'Position':{'fields':{'root':{'type':_0x1bec('0x2'),'id':0x1},'rootMain':{'type':_0x1bec('0x1'),'id':0x2},'rootGraveyard':{'type':_0x1bec('0x1'),'id':0x3},'path':{'rule':_0x1bec('0x4'),'type':_0x1bec('0x0'),'id':0x4},'stickiness':{'type':_0x1bec('0x2'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x1bec('0x3'),'id':0x1},'end':{'type':_0x1bec('0x3'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x1bec('0x2'),'id':0x1},'children':{'rule':'repeated','type':'Element','id':0x2},'data':{'type':'string','id':0x3},'attributesBoolean':{'keyType':_0x1bec('0x2'),'type':_0x1bec('0x1'),'id':0x4},'attributesJson':{'type':_0x1bec('0x2'),'id':0x5}}}};
|
package/src/compressor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f27=['RenameOperation','Position','RootAttributeOperation','InsertOperation','NoOperation','MoveOperation','_registerActionCompressor','TypingAction','compress','baseVersion','_registerCompressor','_getCompressorByName','MergeOperation','SuggestionMarkerOperation','length','no-operations-provided','ForwardDeletingAction','MarkerOperation','_compressorById','comment','description','SplitOperation','_protobufFactory','_compressorByName','types','get','Range','UserSelectionAction','AttributeOperation','Element','set','_registerOperationCompressor','registerDescriptor','decompress','getDescriptor','build','DeletingAction','CommentMarkerOperation'];(function(_0x3889ee,_0x2f279c){const _0x5f1883=function(_0x4ff68c){while(--_0x4ff68c){_0x3889ee['push'](_0x3889ee['shift']());}};_0x5f1883(++_0x2f279c);}(_0x2f27,0x151));const _0x5f18=function(_0x3889ee,_0x2f279c){_0x3889ee=_0x3889ee-0x0;let _0x5f1883=_0x2f27[_0x3889ee];return _0x5f1883;};import{CKEditorError as _0x38bb5e}from'ckeditor5/src/utils';import _0x38b993 from'./protobuffactory';import _0x59717b from'./commondescriptions';import _0x520fd5 from'./operationcompressor/attributeoperationcompressor';import _0x381f28 from'./operationcompressor/insertoperationcompressor';import _0x1b450b from'./operationcompressor/markeroperationcompressor';import _0x4a0dd7 from'./operationcompressor/mergeoperationcompressor';import _0x1c23a3 from'./operationcompressor/moveoperationcompressor';import _0x34a46f from'./operationcompressor/renameoperationcompressor';import _0x457d29 from'./operationcompressor/rootattributeoperationcompressor';import _0x270448 from'./operationcompressor/splitoperationcompressor';import _0x223e29 from'./operationcompressor/nooperationcompressor';import _0x4d46e8 from'./operationcompressor/annotationmarkeroperationcompressor';import _0xdafce from'./actioncompressor/typingactioncompressor';import _0x464f0b from'./actioncompressor/deletingactioncompressor';import _0x2ccb0e from'./actioncompressor/forwarddeletingactioncompressor';import _0x1d75c5 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x5f18('0x17')]=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new _0x38b993(),this[_0x5f18('0x1b')][_0x5f18('0x25')](_0x5f18('0x6'),_0x59717b[_0x5f18('0x6')]),this['_protobufFactory']['registerDescriptor'](_0x5f18('0x1f'),_0x59717b['Range']),this[_0x5f18('0x1b')][_0x5f18('0x25')](_0x5f18('0x22'),_0x59717b['Element']),this[_0x5f18('0x1b')][_0x5f18('0x25')](_0x5f18('0x21'),_0x520fd5[_0x5f18('0x19')]),this[_0x5f18('0x1b')]['registerDescriptor']('InsertOperation',_0x381f28[_0x5f18('0x19')]),this[_0x5f18('0x1b')][_0x5f18('0x25')](_0x5f18('0x16'),_0x1b450b['description']),this[_0x5f18('0x1b')][_0x5f18('0x25')](_0x5f18('0x11'),_0x4a0dd7[_0x5f18('0x19')]),this[_0x5f18('0x1b')][_0x5f18('0x25')]('MoveOperation',_0x1c23a3[_0x5f18('0x19')]),this[_0x5f18('0x1b')][_0x5f18('0x25')](_0x5f18('0x5'),_0x34a46f[_0x5f18('0x19')]),this[_0x5f18('0x1b')][_0x5f18('0x25')](_0x5f18('0x7'),_0x457d29[_0x5f18('0x19')]),this[_0x5f18('0x1b')][_0x5f18('0x25')](_0x5f18('0x1a'),_0x270448[_0x5f18('0x19')]),this[_0x5f18('0x1b')][_0x5f18('0x2')](),this[_0x5f18('0xf')](0x1,_0x5f18('0x9'),new _0x223e29(0x1,'NoOperation')),this[_0x5f18('0x24')](0xa,'AttributeOperation',_0x520fd5),this[_0x5f18('0x24')](0xb,_0x5f18('0x8'),_0x381f28),this['_registerOperationCompressor'](0xc,_0x5f18('0x16'),_0x1b450b),this[_0x5f18('0x24')](0xd,_0x5f18('0x11'),_0x4a0dd7),this[_0x5f18('0x24')](0xe,_0x5f18('0xa'),_0x1c23a3),this[_0x5f18('0x24')](0xf,_0x5f18('0x5'),_0x34a46f),this[_0x5f18('0x24')](0x10,_0x5f18('0x7'),_0x457d29),this[_0x5f18('0x24')](0x11,_0x5f18('0x1a'),_0x270448);const _0x4a4ff5=this['_protobufFactory'][_0x5f18('0x1')]('MarkerOperation');this[_0x5f18('0xf')](0x12,'CommentMarkerOperation',new _0x4d46e8(0x12,_0x5f18('0x16'),_0x4a4ff5,_0x5f18('0x18'))),this[_0x5f18('0xf')](0x13,_0x5f18('0x12'),new _0x4d46e8(0x13,_0x5f18('0x16'),_0x4a4ff5,'suggestion')),this['_registerActionCompressor'](0x64,_0x5f18('0xc'),_0xdafce),this[_0x5f18('0xb')](0x65,'DeletingAction',_0x464f0b),this[_0x5f18('0xb')](0x66,_0x5f18('0x15'),_0x2ccb0e),this[_0x5f18('0xb')](0x67,_0x5f18('0x20'),_0x1d75c5);}[_0x5f18('0x24')](_0x18bc28,_0xd09880,_0x55be81){const _0x13ca4a=new _0x55be81(_0x18bc28,_0xd09880,this[_0x5f18('0x1b')][_0x5f18('0x1')](_0xd09880));this[_0x5f18('0xf')](_0x18bc28,_0xd09880,_0x13ca4a);}['_registerActionCompressor'](_0x3829ed,_0x440e0d,_0x121139){const _0x197a8f=new _0x121139(_0x3829ed,this);this[_0x5f18('0xf')](_0x3829ed,_0x440e0d,_0x197a8f);}[_0x5f18('0xf')](_0x4b0530,_0x34e825,_0x2eaddb){this[_0x5f18('0x17')][_0x5f18('0x23')](_0x4b0530,_0x2eaddb),this[_0x5f18('0x1c')][_0x5f18('0x23')](_0x34e825,_0x2eaddb);}[_0x5f18('0x10')](_0x5a3aea){return this['_compressorByName'][_0x5f18('0x1e')](_0x5a3aea);}[_0x5f18('0xd')](_0x309dc4){if(!_0x309dc4||!_0x309dc4[0x0])throw new _0x38bb5e(_0x5f18('0x14'),this);const _0x80a76a={'types':[],'buffers':[],'baseVersion':_0x309dc4[0x0][_0x5f18('0xe')]};for(;_0x309dc4[_0x5f18('0x13')];)this[_0x5f18('0x10')](_0x5f18('0x20'))['compress'](_0x80a76a,_0x309dc4)||this['_getCompressorByName'](_0x5f18('0xc'))[_0x5f18('0xd')](_0x80a76a,_0x309dc4)||this[_0x5f18('0x10')](_0x5f18('0x3'))[_0x5f18('0xd')](_0x80a76a,_0x309dc4)||this[_0x5f18('0x10')]('ForwardDeletingAction')[_0x5f18('0xd')](_0x80a76a,_0x309dc4)||this[_0x5f18('0x10')](_0x5f18('0x4'))[_0x5f18('0xd')](_0x80a76a,_0x309dc4)||this[_0x5f18('0x10')](_0x5f18('0x12'))['compress'](_0x80a76a,_0x309dc4)||this[_0x5f18('0x10')](_0x309dc4[0x0]['__className'])[_0x5f18('0xd')](_0x80a76a,_0x309dc4);return _0x80a76a;}[_0x5f18('0x0')](_0x147f34){const _0x25daf=[];for(;_0x147f34[_0x5f18('0x1d')][_0x5f18('0x13')];){this['_compressorById'][_0x5f18('0x1e')](_0x147f34[_0x5f18('0x1d')][0x0])[_0x5f18('0x0')](_0x25daf,_0x147f34);}return _0x25daf['forEach']((_0x39e8b5,_0x3fc39f)=>_0x39e8b5[_0x5f18('0xe')]=_0x147f34[_0x5f18('0xe')]+_0x3fc39f),_0x25daf;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x581e=['__className','length','compress','MarkerOperation','startsWith','replace','name','decompress','_omittedNamespace'];(function(_0x2bb955,_0x581eea){const _0x463bb5=function(_0x15a722){while(--_0x15a722){_0x2bb955['push'](_0x2bb955['shift']());}};_0x463bb5(++_0x581eea);}(_0x581e,0x11b));const _0x463b=function(_0x2bb955,_0x581eea){_0x2bb955=_0x2bb955-0x0;let _0x463bb5=_0x581e[_0x2bb955];return _0x463bb5;};import _0x201b10 from'./markeroperationcompressor';export default class O extends _0x201b10{constructor(_0x471f91,_0x18f95e,_0x34584d,_0x48da14){super(_0x471f91,_0x18f95e,_0x34584d),this['_omittedNamespace']=_0x48da14+':';}['compress'](_0x2017ca,_0x19a2f4){return!(_0x463b('0x8')!=_0x19a2f4[0x0][_0x463b('0x5')]||!_0x19a2f4[0x0]['name'][_0x463b('0x0')](this[_0x463b('0x4')]))&&(_0x19a2f4[0x0][_0x463b('0x2')]=_0x19a2f4[0x0][_0x463b('0x2')][_0x463b('0x1')](new RegExp('^'+this[_0x463b('0x4')]),''),super[_0x463b('0x7')](_0x2017ca,_0x19a2f4),!0x0);}[_0x463b('0x3')](_0x5aa17b,_0xe06408){super['decompress'](_0x5aa17b,_0xe06408);const _0x4ae00f=_0x5aa17b[_0x5aa17b[_0x463b('0x6')]-0x1];_0x4ae00f[_0x463b('0x2')]=this[_0x463b('0x4')]+_0x4ae00f[_0x463b('0x2')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2590=['shift','operationName','Range','compress','_protobufDescriptor','newValue','bool','stringify','__className','oldValue','Json','decompress','string','Boolean','description','parse'];(function(_0x23f0c1,_0x259000){const _0x2fae0a=function(_0x292c74){while(--_0x292c74){_0x23f0c1['push'](_0x23f0c1['shift']());}};_0x2fae0a(++_0x259000);}(_0x2590,0x6d));const _0x2fae=function(_0x23f0c1,_0x259000){_0x23f0c1=_0x23f0c1-0x0;let _0x2fae0a=_0x2590[_0x23f0c1];return _0x2fae0a;};import _0xff5e16 from'./operationcompressor';import{parsePositionBeforeCompression as _0x44fe1e,parsePositionAfterCompression as _0x5c7145}from'../utils';export default class i extends _0xff5e16{static get[_0x2fae('0x1')](){return{'fields':{'range':{'type':_0x2fae('0x5'),'id':0x1},'key':{'type':_0x2fae('0xf'),'id':0x2},'oldValueBoolean':{'type':'bool','id':0x3},'oldValueJson':{'type':_0x2fae('0xf'),'id':0x4},'newValueBoolean':{'type':_0x2fae('0x9'),'id':0x5},'newValueJson':{'type':'string','id':0x6},'wasUndone':{'type':_0x2fae('0x9'),'id':0x7}}};}[_0x2fae('0x6')](_0x2eb6f1,_0x6828e1){const _0x302659=_0x6828e1['shift']();$(_0x2fae('0xc'),_0x302659),$(_0x2fae('0x8'),_0x302659),_0x44fe1e(_0x302659),_0x2eb6f1['buffers']['push'](this['_protobufDescriptor'][_0x2fae('0x6')](_0x302659)),_0x2eb6f1['types']['push'](this['id']);}['decompress'](_0x57f318,_0x1c478d){const {types:_0xafc33b,buffers:_0xff36ce}=_0x1c478d,_0x4d5d7c=this[_0x2fae('0x7')][_0x2fae('0xe')](_0xff36ce[_0x2fae('0x3')]());_0xafc33b[_0x2fae('0x3')](),N(_0x2fae('0xc'),_0x4d5d7c),N(_0x2fae('0x8'),_0x4d5d7c),_0x5c7145(_0x4d5d7c),_0x4d5d7c[_0x2fae('0xb')]=this[_0x2fae('0x4')],_0x57f318['push'](_0x4d5d7c);}}function $(_0xd20780,_0x180f98){const _0x215399=_0x180f98[_0xd20780];'boolean'==typeof _0x215399?_0x180f98[_0xd20780+_0x2fae('0x0')]=_0x215399:_0x180f98[_0xd20780+_0x2fae('0xd')]=JSON[_0x2fae('0xa')](_0x215399);}function N(_0xa6996f,_0x2ea762){const _0x3f0261=_0xa6996f+_0x2fae('0xd');_0x2ea762[_0x3f0261]?(_0x2ea762[_0xa6996f]=JSON[_0x2fae('0x2')](_0x2ea762[_0x3f0261]),delete _0x2ea762[_0x3f0261]):(_0x2ea762[_0xa6996f]=_0x2ea762[_0xa6996f+'Boolean'],delete _0x2ea762[_0xa6996f+_0x2fae('0x0')]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xac7e=['_protobufDescriptor','every','operationName','compress','decompress','attributes','boolean','bool','parse','types','Element','shift','repeated','nodes','description','buffers','Position','children','stringify','attributesJson','push','__className','attributesBoolean','keys'];(function(_0x1108bd,_0xac7e93){const _0x26390c=function(_0x5bfd33){while(--_0x5bfd33){_0x1108bd['push'](_0x1108bd['shift']());}};_0x26390c(++_0xac7e93);}(_0xac7e,0xab));const _0x2639=function(_0x1108bd,_0xac7e93){_0x1108bd=_0x1108bd-0x0;let _0x26390c=_0xac7e[_0x1108bd];return _0x26390c;};import _0x59747c from'./operationcompressor';import{parsePositionBeforeCompression as _0x5baf78,parsePositionAfterCompression as _0x4b4a89}from'../utils';export default class s extends _0x59747c{static get[_0x2639('0xb')](){return{'fields':{'position':{'type':_0x2639('0xd'),'id':0x1},'nodes':{'rule':_0x2639('0x9'),'type':_0x2639('0x7'),'id':0x2},'shouldReceiveAttributes':{'type':'bool','id':0x3},'wasUndone':{'type':_0x2639('0x4'),'id':0x4}}};}[_0x2639('0x0')](_0x5512a7,_0x550fa4){const _0x21efbb=_0x550fa4[_0x2639('0x8')]();A(_0x21efbb[_0x2639('0xa')]),_0x5baf78(_0x21efbb),_0x5512a7[_0x2639('0xc')]['push'](this[_0x2639('0x15')]['compress'](_0x21efbb)),_0x5512a7[_0x2639('0x6')][_0x2639('0x11')](this['id']);}[_0x2639('0x1')](_0xf0b677,_0x557142){const {types:_0x558192,buffers:_0x53379b}=_0x557142,_0x585076=this['_protobufDescriptor'][_0x2639('0x1')](_0x53379b['shift']());_0x558192[_0x2639('0x8')](),_0x585076[_0x2639('0xa')]||(_0x585076[_0x2639('0xa')]=[]),E(_0x585076[_0x2639('0xa')]),_0x4b4a89(_0x585076),_0x585076[_0x2639('0x12')]=this[_0x2639('0x17')],_0xf0b677['push'](_0x585076);}}function A(_0x280dc3){for(const _0x37655b of _0x280dc3){if(_0x37655b[_0x2639('0x2')]){const _0x302637=_0x37655b[_0x2639('0x2')];R(_0x302637)?_0x37655b[_0x2639('0x13')]=_0x302637:_0x37655b[_0x2639('0x10')]=JSON[_0x2639('0xf')](_0x302637);}_0x37655b['children']&&A(_0x37655b[_0x2639('0xe')]);}}function E(_0xc13d15){for(const _0x5cd635 of _0xc13d15)(_0x5cd635[_0x2639('0x13')]||_0x5cd635[_0x2639('0x10')])&&(_0x5cd635[_0x2639('0x13')]?(_0x5cd635[_0x2639('0x2')]=_0x5cd635['attributesBoolean'],delete _0x5cd635[_0x2639('0x13')]):(_0x5cd635[_0x2639('0x2')]=JSON[_0x2639('0x5')](_0x5cd635[_0x2639('0x10')]),delete _0x5cd635[_0x2639('0x10')])),_0x5cd635['children']&&E(_0x5cd635[_0x2639('0xe')]);}function R(_0x342fcd){return Object[_0x2639('0x14')](_0x342fcd)[_0x2639('0x16')](_0x1d2450=>_0x2639('0x3')==typeof _0x342fcd[_0x1d2450]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31ac=['decompress','Range','length','bool','newRange','oldRange'];(function(_0x41e58a,_0x31ace6){const _0x459cf4=function(_0x315c35){while(--_0x315c35){_0x41e58a['push'](_0x41e58a['shift']());}};_0x459cf4(++_0x31ace6);}(_0x31ac,0x179));const _0x459c=function(_0x41e58a,_0x31ace6){_0x41e58a=_0x41e58a-0x0;let _0x459cf4=_0x31ac[_0x41e58a];return _0x459cf4;};import _0x3a4753 from'./operationcompressor';export default class n extends _0x3a4753{static get['description'](){return{'fields':{'name':{'type':'string','id':0x1},'oldRange':{'type':_0x459c('0x2'),'id':0x2},'newRange':{'type':'Range','id':0x3},'affectsData':{'type':_0x459c('0x4'),'id':0x4},'wasUndone':{'type':_0x459c('0x4'),'id':0x5}}};}[_0x459c('0x1')](_0x83a2dd,_0x14e0ec){super[_0x459c('0x1')](_0x83a2dd,_0x14e0ec);const _0x1094a1=_0x83a2dd[_0x83a2dd[_0x459c('0x3')]-0x1];_0x1094a1['oldRange']||(_0x1094a1[_0x459c('0x0')]=null),_0x1094a1[_0x459c('0x5')]||(_0x1094a1[_0x459c('0x5')]=null);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x43c4=['bool','Position','uint32'];(function(_0x10325b,_0x43c4f7){var _0x38088c=function(_0x385cc1){while(--_0x385cc1){_0x10325b['push'](_0x10325b['shift']());}};_0x38088c(++_0x43c4f7);}(_0x43c4,0xa8));var _0x3808=function(_0x10325b,_0x43c4f7){_0x10325b=_0x10325b-0x0;var _0x38088c=_0x43c4[_0x10325b];return _0x38088c;};import _0x529f96 from'./operationcompressor';export default class p extends _0x529f96{static get['description'](){return{'fields':{'sourcePosition':{'type':_0x3808('0x1'),'id':0x1},'targetPosition':{'type':'Position','id':0x2},'graveyardPosition':{'type':_0x3808('0x1'),'id':0x3},'howMany':{'type':_0x3808('0x2'),'id':0x4},'wasUndone':{'type':_0x3808('0x0'),'id':0x5}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4fb6=['uint32','Position'];(function(_0x5df086,_0x4fb688){var _0x59c6f2=function(_0x52e31b){while(--_0x52e31b){_0x5df086['push'](_0x5df086['shift']());}};_0x59c6f2(++_0x4fb688);}(_0x4fb6,0x1ee));var _0x59c6=function(_0x5df086,_0x4fb688){_0x5df086=_0x5df086-0x0;var _0x59c6f2=_0x4fb6[_0x5df086];return _0x59c6f2;};import _0x4ec2df from'./operationcompressor';export default class m extends _0x4ec2df{static get['description'](){return{'fields':{'sourcePosition':{'type':'Position','id':0x1},'howMany':{'type':_0x59c6('0x0'),'id':0x2},'targetPosition':{'type':_0x59c6('0x1'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5080=['operationName','compress','types','push','decompress','shift'];(function(_0x4e3131,_0x508012){var _0x542078=function(_0x8c3383){while(--_0x8c3383){_0x4e3131['push'](_0x4e3131['shift']());}};_0x542078(++_0x508012);}(_0x5080,0x1ac));var _0x5420=function(_0x4e3131,_0x508012){_0x4e3131=_0x4e3131-0x0;var _0x542078=_0x5080[_0x4e3131];return _0x542078;};import _0x50bd3b from'./operationcompressor';export default class f extends _0x50bd3b{[_0x5420('0x5')](_0xaebc5f,_0x403f25){_0x403f25[_0x5420('0x3')](),_0xaebc5f['types']['push'](this['id']);}[_0x5420('0x2')](_0x5d2b99,_0x54696f){_0x54696f[_0x5420('0x0')][_0x5420('0x3')](),_0x5d2b99[_0x5420('0x1')]({'__className':this[_0x5420('0x4')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e65=['shift','__className','decompress','_protobufDescriptor','buffers','operationName','types','compress','push'];(function(_0x22dd0c,_0x3e655a){const _0x4fa1a7=function(_0x4b75b5){while(--_0x4b75b5){_0x22dd0c['push'](_0x22dd0c['shift']());}};_0x4fa1a7(++_0x3e655a);}(_0x3e65,0xf6));const _0x4fa1=function(_0x22dd0c,_0x3e655a){_0x22dd0c=_0x22dd0c-0x0;let _0x4fa1a7=_0x3e65[_0x22dd0c];return _0x4fa1a7;};import{parsePositionBeforeCompression as _0x4f99f9,parsePositionAfterCompression as _0x2162a1}from'../utils';export default class V{constructor(_0x5d2e26,_0x35311a,_0x3bd481){this['id']=_0x5d2e26,this[_0x4fa1('0x2')]=_0x35311a,this[_0x4fa1('0x0')]=_0x3bd481;}[_0x4fa1('0x4')](_0x13143c,_0x1ae4e8){const _0x266705=_0x1ae4e8[_0x4fa1('0x6')]();_0x4f99f9(_0x266705),_0x13143c[_0x4fa1('0x1')][_0x4fa1('0x5')](this[_0x4fa1('0x0')][_0x4fa1('0x4')](_0x266705)),_0x13143c[_0x4fa1('0x3')][_0x4fa1('0x5')](this['id']);}[_0x4fa1('0x8')](_0x4bdfe9,_0x17ab78){_0x17ab78[_0x4fa1('0x3')][_0x4fa1('0x6')]();const _0x5bdec4=this[_0x4fa1('0x0')][_0x4fa1('0x8')](_0x17ab78[_0x4fa1('0x1')]['shift']());_0x2162a1(_0x5bdec4),_0x5bdec4[_0x4fa1('0x7')]=this[_0x4fa1('0x2')],_0x4bdfe9[_0x4fa1('0x5')](_0x5bdec4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e38=['bool','description','string'];(function(_0x12832b,_0x5e383e){var _0xf14aaa=function(_0x4a50e0){while(--_0x4a50e0){_0x12832b['push'](_0x12832b['shift']());}};_0xf14aaa(++_0x5e383e);}(_0x5e38,0xb1));var _0xf14a=function(_0x12832b,_0x5e383e){_0x12832b=_0x12832b-0x0;var _0xf14aaa=_0x5e38[_0x12832b];return _0xf14aaa;};import _0x564a24 from'./operationcompressor';export default class a extends _0x564a24{static get[_0xf14a('0x1')](){return{'fields':{'position':{'type':'Position','id':0x1},'oldName':{'type':'string','id':0x2},'newName':{'type':_0xf14a('0x2'),'id':0x3},'wasUndone':{'type':_0xf14a('0x0'),'id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5460=['root','range','string','description','fields'];(function(_0xa7f176,_0x546092){const _0x1a47fa=function(_0x3bc87c){while(--_0x3bc87c){_0xa7f176['push'](_0xa7f176['shift']());}};_0x1a47fa(++_0x546092);}(_0x5460,0x90));const _0x1a47=function(_0xa7f176,_0x546092){_0xa7f176=_0xa7f176-0x0;let _0x1a47fa=_0x5460[_0xa7f176];return _0x1a47fa;};import _0x112332 from'./attributeoperationcompressor';export default class c extends _0x112332{static get[_0x1a47('0x4')](){const _0x4c7ed8=_0x112332[_0x1a47('0x4')];return delete _0x4c7ed8[_0x1a47('0x0')][_0x1a47('0x2')],_0x4c7ed8[_0x1a47('0x0')][_0x1a47('0x1')]={'type':_0x1a47('0x3'),'id':0x1},_0x4c7ed8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf0fb=['description','bool','Position','uint32'];(function(_0x221989,_0xf0fb4e){var _0x2855f4=function(_0x450ec6){while(--_0x450ec6){_0x221989['push'](_0x221989['shift']());}};_0x2855f4(++_0xf0fb4e);}(_0xf0fb,0xf3));var _0x2855=function(_0x221989,_0xf0fb4e){_0x221989=_0x221989-0x0;var _0x2855f4=_0xf0fb[_0x221989];return _0x2855f4;};import _0x36fb6c from'./operationcompressor';export default class h extends _0x36fb6c{static get[_0x2855('0x1')](){return{'fields':{'splitPosition':{'type':_0x2855('0x3'),'id':0x1},'graveyardPosition':{'type':_0x2855('0x3'),'id':0x2},'howMany':{'type':_0x2855('0x0'),'id':0x3},'insertionPosition':{'type':'Position','id':0x4},'wasUndone':{'type':_0x2855('0x2'),'id':0x5}}};}}
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56fc=['build','fromJSON','protobuffactory-cannot-get-descriptor-before-build','Root','_protobuf','finish','getDescriptor','_description','toObject','registerDescriptor','_protobufRoot'];(function(_0x10fe6f,_0x56fc52){const _0x2654fa=function(_0x3785de){while(--_0x3785de){_0x10fe6f['push'](_0x10fe6f['shift']());}};_0x2654fa(++_0x56fc52);}(_0x56fc,0xab));const _0x2654=function(_0x10fe6f,_0x56fc52){_0x10fe6f=_0x10fe6f-0x0;let _0x2654fa=_0x56fc[_0x10fe6f];return _0x2654fa;};import _0x5269d2 from'protobufjs/light';import{CKEditorError as _0x297e70}from'ckeditor5/src/utils';import{cloneDeep as _0x18cdae}from'lodash-es';export default class r{constructor(){this[_0x2654('0x1')]={'nested':{}};}[_0x2654('0x3')](_0x1805c8,_0x54960e){this['_description']['nested'][_0x1805c8]=_0x18cdae(_0x54960e);}[_0x2654('0x5')](){this[_0x2654('0x4')]=_0x5269d2[_0x2654('0x8')][_0x2654('0x6')](this[_0x2654('0x1')]);}[_0x2654('0x0')](_0x2add2d){if(!this[_0x2654('0x4')])throw new _0x297e70(_0x2654('0x7'),this);return new D(this[_0x2654('0x4')]['lookupType'](_0x2add2d));}}class D{constructor(_0x2f5e4f){this['_protobuf']=_0x2f5e4f;}['compress'](_0x5657c8){const _0x4caa50=this[_0x2654('0x9')]['verify'](_0x5657c8);if(_0x4caa50)throw Error(_0x4caa50);return this[_0x2654('0x9')]['encode'](this[_0x2654('0x9')]['create'](_0x5657c8))[_0x2654('0xa')]();}['decompress'](_0x29fba1){return this[_0x2654('0x9')][_0x2654('0x2')](this[_0x2654('0x9')]['decode'](_0x29fba1),{'oneofs':!0x0});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24a6=['rootGraveyard','rootMain','path','$graveyard','nodes','root'];(function(_0x50eb36,_0x24a604){const _0xcb6862=function(_0x5738be){while(--_0x5738be){_0x50eb36['push'](_0x50eb36['shift']());}};_0xcb6862(++_0x24a604);}(_0x24a6,0x1b8));const _0xcb68=function(_0x50eb36,_0x24a604){_0x50eb36=_0x50eb36-0x0;let _0xcb6862=_0x24a6[_0x50eb36];return _0xcb6862;};import{cloneDeep as _0x5e18c5,isEqual as _0x2bc6fd,isObject as _0x15fa2e}from'lodash-es';export function getPositionShiftedBy(_0x299624,_0x4b6fa0){const _0x377a70=_0x5e18c5(_0x299624);return _0x377a70[_0xcb68('0x0')][_0x377a70[_0xcb68('0x0')]['length']-0x1]+=_0x4b6fa0,_0x377a70;}export function arePositionsEqual(_0x26ae22,_0x511640){return _0x26ae22[_0xcb68('0x3')]===_0x511640[_0xcb68('0x3')]&&_0x2bc6fd(_0x26ae22[_0xcb68('0x0')],_0x511640[_0xcb68('0x0')]);}export function parsePositionBeforeCompression(_0x4d8732){y(_0x4d8732,_0x51bbf0=>('main'==_0x51bbf0[_0xcb68('0x3')]?(_0x51bbf0[_0xcb68('0x5')]=!0x0,delete _0x51bbf0['root']):_0xcb68('0x1')==_0x51bbf0[_0xcb68('0x3')]&&(_0x51bbf0[_0xcb68('0x4')]=!0x0,delete _0x51bbf0[_0xcb68('0x3')]),_0x51bbf0));}export function parsePositionAfterCompression(_0x4a82f4){y(_0x4a82f4,_0x192fd4=>(_0x192fd4['rootMain']?(_0x192fd4[_0xcb68('0x3')]='main',delete _0x192fd4[_0xcb68('0x5')]):_0x192fd4[_0xcb68('0x4')]&&(_0x192fd4[_0xcb68('0x3')]=_0xcb68('0x1'),delete _0x192fd4[_0xcb68('0x4')]),_0x192fd4));}function y(_0x39b6bd,_0x335a94){for(const _0x418ead in _0x39b6bd){const _0x4877aa=_0x39b6bd[_0x418ead];_0xcb68('0x2')!==_0x418ead&&_0x15fa2e(_0x4877aa)&&(_0x4877aa[_0xcb68('0x0')]&&(_0x4877aa['root']||_0x4877aa['rootMain']||_0x4877aa[_0xcb68('0x4')])?_0x39b6bd[_0x418ead]=_0x335a94(_0x4877aa):y(_0x4877aa,_0x335a94));}return _0x39b6bd;}
|