@ckeditor/ckeditor5-operations-compressor 35.1.0 → 35.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/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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-operations-compressor",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.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": "^35.
|
|
30
|
+
"ckeditor5": "^35.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 _0x1017=['decompress','shift','types','compress','push','_decompressSingleOperation','_compareOperations','buffers','length','_context'];(function(_0x339817,_0x101726){const _0x4a660d=function(_0x3954ca){while(--_0x3954ca){_0x339817['push'](_0x339817['shift']());}};_0x4a660d(++_0x101726);}(_0x1017,0x13c));const _0x4a66=function(_0x339817,_0x101726){_0x339817=_0x339817-0x0;let _0x4a660d=_0x1017[_0x339817];return _0x4a660d;};import{cloneDeep as _0x199b3a}from'lodash-es';export default class j{constructor(_0x216d7e,_0x36ff3f){this['id']=_0x216d7e,this[_0x4a66('0x3')]=_0x36ff3f;}[_0x4a66('0x7')](_0x24e523,_0x1a2c57){let _0x1e41c8;for(;_0x1a2c57[_0x4a66('0x2')]>0x1&&this[_0x4a66('0x0')](_0x1a2c57[0x0],_0x1a2c57[0x1]);)_0x1e41c8?(_0x1e41c8=this['_combineNext'](_0x1a2c57['shift'](),_0x1e41c8),_0x24e523[_0x4a66('0x6')][_0x4a66('0x8')](0x0)):(_0x1e41c8=_0x199b3a(_0x1a2c57['shift']()),_0x24e523[_0x4a66('0x6')]['push'](this['id']));return!!_0x1e41c8&&(_0x1e41c8=this['_combineNext'](_0x1a2c57[_0x4a66('0x5')](),_0x1e41c8),_0x24e523['types']['push'](0x0),_0x24e523[_0x4a66('0x1')][_0x4a66('0x8')](this['_compressSingleOperation'](_0x1e41c8)),!0x0);}[_0x4a66('0x4')](_0x2862a2,_0x2219c1){const _0x3c9d56=this[_0x4a66('0x9')](_0x2219c1);for(;0x0==_0x2219c1['types'][0x0];)_0x2219c1[_0x4a66('0x6')][_0x4a66('0x5')](),_0x2862a2[_0x4a66('0x8')](this['_splitCurrent'](_0x3c9d56));_0x2862a2[_0x4a66('0x8')](_0x3c9d56);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb6a2=['howMany','_context','root','_decompressSingleOperation','__className','_combineNext','wasUndone','_getCompressorByName','targetPosition','buffers','MoveOperation','_splitCurrent','compress','_compareOperations','sourcePosition'];(function(_0x58016b,_0xb6a24a){const _0x420b14=function(_0x3fd2e4){while(--_0x3fd2e4){_0x58016b['push'](_0x58016b['shift']());}};_0x420b14(++_0xb6a24a);}(_0xb6a2,0x1d6));const _0x420b=function(_0x58016b,_0xb6a24a){_0x58016b=_0x58016b-0x0;let _0x420b14=_0xb6a2[_0x58016b];return _0x420b14;};import _0x15128a from'./actioncompressor';import{arePositionsEqual as _0x424861,getPositionShiftedBy as _0x52c288}from'../utils';import{cloneDeep as _0x295fb0}from'lodash-es';export default class u extends _0x15128a{[_0x420b('0x0')](_0x4d6e53,_0xd7fe9e){return _0xd7fe9e[_0x420b('0xa')]++,_0xd7fe9e['sourcePosition']=_0x295fb0(_0x4d6e53[_0x420b('0x9')]),_0xd7fe9e;}[_0x420b('0x6')](_0x5a7feb){const _0x61a44d=_0x295fb0(_0x5a7feb);return _0x5a7feb[_0x420b('0xa')]--,_0x61a44d[_0x420b('0xa')]=0x1,_0x61a44d[_0x420b('0x9')]=_0x52c288(_0x61a44d['sourcePosition'],_0x5a7feb['howMany']),_0x61a44d;}[_0x420b('0x8')](_0x4c15b5,_0x534e96){return!(!S(_0x4c15b5)||!S(_0x534e96))&&(_0x424861(_0x52c288(_0x4c15b5[_0x420b('0x9')],-0x1),_0x534e96[_0x420b('0x9')])&&_0x424861(_0x4c15b5[_0x420b('0x3')],_0x534e96[_0x420b('0x3')]));}['_compressSingleOperation'](_0x3b3631){const _0x120e68={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x420b('0xb')][_0x420b('0x2')](_0x420b('0x5'))[_0x420b('0x7')](_0x120e68,[_0x3b3631]),_0x120e68[_0x420b('0x4')][0x0];}[_0x420b('0xd')](_0x4f5470){const _0x321cfd=[];return this[_0x420b('0xb')][_0x420b('0x2')](_0x420b('0x5'))['decompress'](_0x321cfd,_0x4f5470),_0x321cfd[0x0];}}function S(_0x160ec2){return _0x420b('0x5')==_0x160ec2[_0x420b('0xe')]&&'$graveyard'==_0x160ec2[_0x420b('0x3')][_0x420b('0xc')]&&0x1==_0x160ec2[_0x420b('0xa')]&&!_0x160ec2[_0x420b('0x1')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a1f=['buffers','root','_combineNext','_splitCurrent','_compareOperations','MoveOperation','targetPosition','$graveyard','wasUndone','_context','compress','__className','sourcePosition','_decompressSingleOperation','_compressSingleOperation','howMany'];(function(_0x3f56cc,_0x3a1f26){const _0x3f8619=function(_0x445775){while(--_0x445775){_0x3f56cc['push'](_0x3f56cc['shift']());}};_0x3f8619(++_0x3a1f26);}(_0x3a1f,0x16e));const _0x3f86=function(_0x3f56cc,_0x3a1f26){_0x3f56cc=_0x3f56cc-0x0;let _0x3f8619=_0x3a1f[_0x3f56cc];return _0x3f8619;};import _0x4cb423 from'./actioncompressor';import{arePositionsEqual as _0x2ed39b}from'../utils';import{cloneDeep as _0x401759}from'lodash-es';export default class l extends _0x4cb423{[_0x3f86('0x4')](_0x272df4,_0xffb382){return _0xffb382[_0x3f86('0x1')]++,_0xffb382;}[_0x3f86('0x5')](_0x44d489){const _0x2b37e8=_0x401759(_0x44d489);return _0x2b37e8[_0x3f86('0x1')]=0x1,_0x44d489[_0x3f86('0x1')]--,_0x2b37e8;}[_0x3f86('0x6')](_0x259073,_0x3ce466){return!(!S(_0x259073)||!S(_0x3ce466))&&(_0x2ed39b(_0x259073[_0x3f86('0xe')],_0x3ce466[_0x3f86('0xe')])&&_0x2ed39b(_0x259073['targetPosition'],_0x3ce466['targetPosition']));}[_0x3f86('0x0')](_0x42e995){const _0x147640={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x3f86('0xb')]['_getCompressorByName'](_0x3f86('0x7'))[_0x3f86('0xc')](_0x147640,[_0x42e995]),_0x147640[_0x3f86('0x2')][0x0];}[_0x3f86('0xf')](_0x4d6361){const _0x5f2e22=[];return this[_0x3f86('0xb')]['_getCompressorByName'](_0x3f86('0x7'))['decompress'](_0x5f2e22,_0x4d6361),_0x5f2e22[0x0];}}function S(_0x48478d){return _0x3f86('0x7')==_0x48478d[_0x3f86('0xd')]&&_0x3f86('0x9')==_0x48478d[_0x3f86('0x8')][_0x3f86('0x3')]&&0x1==_0x48478d[_0x3f86('0x1')]&&!_0x48478d[_0x3f86('0xa')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4045=['InsertOperation','substr','_context','_compressSingleOperation','keys','iterator','from','wasUndone','decompress','_compareOperations','length','buffers','compress','__className','data','next','position','_getCompressorByName','nodes','_splitCurrent','value','attributes'];(function(_0x46481f,_0x4045f0){const _0x225415=function(_0x4af3da){while(--_0x4af3da){_0x46481f['push'](_0x46481f['shift']());}};_0x225415(++_0x4045f0);}(_0x4045,0x18b));const _0x2254=function(_0x46481f,_0x4045f0){_0x46481f=_0x46481f-0x0;let _0x225415=_0x4045[_0x46481f];return _0x225415;};import _0x2c004a from'./actioncompressor';import{arePositionsEqual as _0x3fb0aa,getPositionShiftedBy as _0x1f1304}from'../utils';import{cloneDeep as _0x5b7dd5}from'lodash-es';export default class g extends _0x2c004a{['_combineNext'](_0x360350,_0x1e057a){return _0x1e057a['nodes'][0x0][_0x2254('0xf')]+=_0x360350[_0x2254('0x13')][0x0][_0x2254('0xf')],_0x1e057a;}[_0x2254('0x14')](_0x200051){const _0x325c5e=_0x5b7dd5(_0x200051),_0x592292=_0x325c5e[_0x2254('0x13')][0x0],_0x27bf2e=_0x200051[_0x2254('0x13')][0x0],_0x56110d=_0x27bf2e[_0x2254('0xf')][Symbol[_0x2254('0x6')]]()[_0x2254('0x10')]()[_0x2254('0x15')],_0x38504e=_0x56110d['length'];return _0x592292[_0x2254('0xf')]=_0x56110d,_0x27bf2e[_0x2254('0xf')]=_0x27bf2e['data'][_0x2254('0x2')](_0x38504e),_0x200051[_0x2254('0x11')]=_0x1f1304(_0x200051[_0x2254('0x11')],_0x38504e),_0x325c5e;}[_0x2254('0xa')](_0x466b08,_0x3004c2){if(S(_0x466b08)&&S(_0x3004c2)){const _0x1bbc3d=_0x466b08['nodes'][0x0][_0x2254('0xf')]['length'],_0x44c840=_0x3fb0aa(_0x1f1304(_0x466b08['position'],_0x1bbc3d),_0x3004c2[_0x2254('0x11')]),_0x4d56ab=_0x466b08[_0x2254('0x13')][0x0],_0x136cd4=_0x3004c2['nodes'][0x0];return _0x44c840&&function(_0x33488e,_0x533288){const _0x25cb8b=Object[_0x2254('0x5')](_0x33488e[_0x2254('0x0')]||{}),_0x2eb2cf=Object[_0x2254('0x5')](_0x533288[_0x2254('0x0')]||{});if(_0x25cb8b['length']!==_0x2eb2cf['length'])return!0x1;return _0x25cb8b['every'](_0x24942c=>_0x533288['attributes'][_0x24942c]&&_0x533288[_0x2254('0x0')][_0x24942c]===_0x33488e[_0x2254('0x0')][_0x24942c]);}(_0x4d56ab,_0x136cd4);}return!0x1;}[_0x2254('0x4')](_0x92e01){const _0x255520={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x2254('0x3')][_0x2254('0x12')](_0x2254('0x1'))[_0x2254('0xd')](_0x255520,[_0x92e01]),_0x255520[_0x2254('0xc')][0x0];}['_decompressSingleOperation'](_0x3633a7){const _0x351fa9=[];return this[_0x2254('0x3')][_0x2254('0x12')](_0x2254('0x1'))[_0x2254('0x9')](_0x351fa9,_0x3633a7),_0x351fa9[0x0];}}function S(_0x38a5ea){return _0x2254('0x1')==_0x38a5ea[_0x2254('0xe')]&&0x1==_0x38a5ea[_0x2254('0x13')][_0x2254('0xb')]&&_0x38a5ea[_0x2254('0x13')][0x0]['data']&&!_0x38a5ea[_0x2254('0x8')]&&0x1==Array[_0x2254('0x7')](_0x38a5ea[_0x2254('0x13')][0x0][_0x2254('0xf')])[_0x2254('0xb')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1817=['name','buffers','oldRange','startsWith','compress','user:','newRange','shift','_decompressSingleOperation','_context','decompress','types','__className','_getCompressorByName','MarkerOperation','push','stickiness','_compressSingleOperation','start','user:position:','end','toNone'];(function(_0x4bca12,_0x18171f){const _0x5bdef4=function(_0x584ff9){while(--_0x584ff9){_0x4bca12['push'](_0x4bca12['shift']());}};_0x5bdef4(++_0x18171f);}(_0x1817,0x1a2));const _0x5bde=function(_0x4bca12,_0x18171f){_0x4bca12=_0x4bca12-0x0;let _0x5bdef4=_0x1817[_0x4bca12];return _0x5bdef4;};import _0x302561 from'./actioncompressor';import{arePositionsEqual as _0x43d1ba}from'../utils';import{cloneDeep as _0x2651cb}from'lodash-es';export default class M extends _0x302561{[_0x5bde('0x4')](_0xe16c3d,_0x2d9a65){if(!function(_0x339f27,_0x57fe9c){if(!_0x339f27||!_0x57fe9c)return!0x1;if(_0x5bde('0xe')!=_0x339f27[_0x5bde('0xc')]||'MarkerOperation'!=_0x57fe9c[_0x5bde('0xc')])return!0x1;if(_0x339f27[_0x5bde('0x0')][_0x5bde('0x3')](_0x5bde('0x5'))&&_0x57fe9c[_0x5bde('0x0')][_0x5bde('0x3')](_0x5bde('0x5'))&&_0x339f27[_0x5bde('0x0')]!=_0x57fe9c[_0x5bde('0x0')])return!0x0;return!0x1;}(_0x2d9a65[0x0],_0x2d9a65[0x1]))return!0x1;const _0x49bfec=_0x2d9a65[_0x5bde('0x7')]();return _0x49bfec[_0x5bde('0x2')]=null,_0x49bfec[_0x5bde('0x6')]&&_0x43d1ba(_0x49bfec[_0x5bde('0x6')][_0x5bde('0x12')],_0x49bfec['newRange']['end'])&&(_0x49bfec[_0x5bde('0x6')]['end']=null),_0x2d9a65[_0x5bde('0x7')](),_0xe16c3d[_0x5bde('0xb')]['push'](this['id']),_0xe16c3d[_0x5bde('0xb')][_0x5bde('0xf')](0x0),_0xe16c3d[_0x5bde('0x1')][_0x5bde('0xf')](this['_compressSingleOperation'](_0x49bfec)),!0x0;}['decompress'](_0x32f324,_0x465b24){const _0x3d2d0e=this[_0x5bde('0x8')](_0x465b24);_0x3d2d0e[_0x5bde('0x6')]&&!_0x3d2d0e[_0x5bde('0x6')]['end']&&(_0x3d2d0e[_0x5bde('0x6')][_0x5bde('0x14')]=_0x2651cb(_0x3d2d0e['newRange'][_0x5bde('0x12')]));const _0x3f6d41=_0x2651cb(_0x3d2d0e);_0x3f6d41[_0x5bde('0x6')]&&(_0x3f6d41['newRange']['start'][_0x5bde('0x10')]=_0x5bde('0x15'),_0x3f6d41[_0x5bde('0x6')][_0x5bde('0x14')]=_0x2651cb(_0x3f6d41[_0x5bde('0x6')][_0x5bde('0x12')])),_0x3f6d41[_0x5bde('0x0')]=_0x5bde('0x13')+_0x3f6d41['name']['split'](':')[0x2],_0x465b24[_0x5bde('0xb')]['shift'](),_0x32f324[_0x5bde('0xf')](_0x3d2d0e),_0x32f324[_0x5bde('0xf')](_0x3f6d41);}[_0x5bde('0x11')](_0xa886af){const _0x580843={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x5bde('0x9')][_0x5bde('0xd')]('MarkerOperation')[_0x5bde('0x4')](_0x580843,[_0xa886af]),_0x580843[_0x5bde('0x1')][0x0];}[_0x5bde('0x8')](_0x3b2e69){const _0x501034=[];return this['_context'][_0x5bde('0xd')](_0x5bde('0xe'))[_0x5bde('0xa')](_0x501034,_0x3b2e69),_0x501034[0x0];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2451=['uint32','bool','string','repeated','Position','Element'];(function(_0x59fb95,_0x2451b6){var _0x29b460=function(_0x3a8255){while(--_0x3a8255){_0x59fb95['push'](_0x59fb95['shift']());}};_0x29b460(++_0x2451b6);}(_0x2451,0x1de));var _0x29b4=function(_0x59fb95,_0x2451b6){_0x59fb95=_0x59fb95-0x0;var _0x29b460=_0x2451[_0x59fb95];return _0x29b460;};export default{'Position':{'fields':{'root':{'type':_0x29b4('0x4'),'id':0x1},'rootMain':{'type':_0x29b4('0x3'),'id':0x2},'rootGraveyard':{'type':_0x29b4('0x3'),'id':0x3},'path':{'rule':_0x29b4('0x5'),'type':_0x29b4('0x2'),'id':0x4},'stickiness':{'type':_0x29b4('0x4'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x29b4('0x0'),'id':0x1},'end':{'type':'Position','id':0x2}}},'Element':{'fields':{'name':{'type':_0x29b4('0x4'),'id':0x1},'children':{'rule':'repeated','type':_0x29b4('0x1'),'id':0x2},'data':{'type':'string','id':0x3},'attributesBoolean':{'keyType':_0x29b4('0x4'),'type':_0x29b4('0x3'),'id':0x4},'attributesJson':{'type':_0x29b4('0x4'),'id':0x5}}}};
|
package/src/compressor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3349=['_compressorByName','types','SplitOperation','baseVersion','getDescriptor','MergeOperation','ForwardDeletingAction','_registerActionCompressor','registerDescriptor','_getCompressorByName','build','suggestion','TypingAction','compress','Position','MarkerOperation','_protobufFactory','UserSelectionAction','MoveOperation','CommentMarkerOperation','comment','no-operations-provided','description','NoOperation','RootAttributeOperation','SuggestionMarkerOperation','_registerOperationCompressor','set','decompress','RenameOperation','AttributeOperation','_compressorById','Element','_registerCompressor','InsertOperation','DeletingAction','forEach','length'];(function(_0x512ff6,_0x3349d1){const _0x50ba65=function(_0x50c01b){while(--_0x50c01b){_0x512ff6['push'](_0x512ff6['shift']());}};_0x50ba65(++_0x3349d1);}(_0x3349,0x1b9));const _0x50ba=function(_0x512ff6,_0x3349d1){_0x512ff6=_0x512ff6-0x0;let _0x50ba65=_0x3349[_0x512ff6];return _0x50ba65;};import{CKEditorError as _0x7ffe3c}from'ckeditor5/src/utils';import _0x106e23 from'./protobuffactory';import _0xd8c9ea from'./commondescriptions';import _0x1f2fc2 from'./operationcompressor/attributeoperationcompressor';import _0x4ed003 from'./operationcompressor/insertoperationcompressor';import _0x3d9bc3 from'./operationcompressor/markeroperationcompressor';import _0x2644f7 from'./operationcompressor/mergeoperationcompressor';import _0x50f071 from'./operationcompressor/moveoperationcompressor';import _0x535980 from'./operationcompressor/renameoperationcompressor';import _0x3148fc from'./operationcompressor/rootattributeoperationcompressor';import _0x19663f from'./operationcompressor/splitoperationcompressor';import _0x566983 from'./operationcompressor/nooperationcompressor';import _0x14011b from'./operationcompressor/annotationmarkeroperationcompressor';import _0x2daaac from'./actioncompressor/typingactioncompressor';import _0x19df93 from'./actioncompressor/deletingactioncompressor';import _0x1f9152 from'./actioncompressor/forwarddeletingactioncompressor';import _0x1e7369 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x50ba('0x8')]=new Map(),this[_0x50ba('0xf')]=new Map(),this[_0x50ba('0x1f')]=new _0x106e23(),this[_0x50ba('0x1f')][_0x50ba('0x17')]('Position',_0xd8c9ea[_0x50ba('0x1d')]),this['_protobufFactory'][_0x50ba('0x17')]('Range',_0xd8c9ea['Range']),this[_0x50ba('0x1f')][_0x50ba('0x17')](_0x50ba('0x9'),_0xd8c9ea[_0x50ba('0x9')]),this[_0x50ba('0x1f')][_0x50ba('0x17')](_0x50ba('0x7'),_0x1f2fc2[_0x50ba('0x25')]),this[_0x50ba('0x1f')][_0x50ba('0x17')](_0x50ba('0xb'),_0x4ed003[_0x50ba('0x25')]),this[_0x50ba('0x1f')]['registerDescriptor'](_0x50ba('0x1e'),_0x3d9bc3['description']),this['_protobufFactory'][_0x50ba('0x17')](_0x50ba('0x14'),_0x2644f7[_0x50ba('0x25')]),this[_0x50ba('0x1f')][_0x50ba('0x17')](_0x50ba('0x21'),_0x50f071[_0x50ba('0x25')]),this[_0x50ba('0x1f')][_0x50ba('0x17')](_0x50ba('0x6'),_0x535980[_0x50ba('0x25')]),this['_protobufFactory'][_0x50ba('0x17')](_0x50ba('0x1'),_0x3148fc[_0x50ba('0x25')]),this[_0x50ba('0x1f')][_0x50ba('0x17')](_0x50ba('0x11'),_0x19663f[_0x50ba('0x25')]),this['_protobufFactory'][_0x50ba('0x19')](),this[_0x50ba('0xa')](0x1,_0x50ba('0x0'),new _0x566983(0x1,_0x50ba('0x0'))),this[_0x50ba('0x3')](0xa,_0x50ba('0x7'),_0x1f2fc2),this[_0x50ba('0x3')](0xb,'InsertOperation',_0x4ed003),this['_registerOperationCompressor'](0xc,_0x50ba('0x1e'),_0x3d9bc3),this[_0x50ba('0x3')](0xd,'MergeOperation',_0x2644f7),this['_registerOperationCompressor'](0xe,_0x50ba('0x21'),_0x50f071),this['_registerOperationCompressor'](0xf,_0x50ba('0x6'),_0x535980),this['_registerOperationCompressor'](0x10,'RootAttributeOperation',_0x3148fc),this[_0x50ba('0x3')](0x11,'SplitOperation',_0x19663f);const _0x250d7c=this[_0x50ba('0x1f')]['getDescriptor']('MarkerOperation');this[_0x50ba('0xa')](0x12,'CommentMarkerOperation',new _0x14011b(0x12,_0x50ba('0x1e'),_0x250d7c,_0x50ba('0x23'))),this[_0x50ba('0xa')](0x13,'SuggestionMarkerOperation',new _0x14011b(0x13,_0x50ba('0x1e'),_0x250d7c,_0x50ba('0x1a'))),this['_registerActionCompressor'](0x64,'TypingAction',_0x2daaac),this[_0x50ba('0x16')](0x65,_0x50ba('0xc'),_0x19df93),this[_0x50ba('0x16')](0x66,'ForwardDeletingAction',_0x1f9152),this[_0x50ba('0x16')](0x67,'UserSelectionAction',_0x1e7369);}['_registerOperationCompressor'](_0x47e123,_0x311ac1,_0x5e01aa){const _0x556729=new _0x5e01aa(_0x47e123,_0x311ac1,this[_0x50ba('0x1f')][_0x50ba('0x13')](_0x311ac1));this['_registerCompressor'](_0x47e123,_0x311ac1,_0x556729);}['_registerActionCompressor'](_0x2aa806,_0x58ba8e,_0x4774af){const _0x5c3c1b=new _0x4774af(_0x2aa806,this);this[_0x50ba('0xa')](_0x2aa806,_0x58ba8e,_0x5c3c1b);}['_registerCompressor'](_0x3fd0c9,_0x6a8a42,_0x3a2570){this[_0x50ba('0x8')][_0x50ba('0x4')](_0x3fd0c9,_0x3a2570),this[_0x50ba('0xf')]['set'](_0x6a8a42,_0x3a2570);}[_0x50ba('0x18')](_0x1b0653){return this[_0x50ba('0xf')]['get'](_0x1b0653);}['compress'](_0x124e03){if(!_0x124e03||!_0x124e03[0x0])throw new _0x7ffe3c(_0x50ba('0x24'),this);const _0x30441e={'types':[],'buffers':[],'baseVersion':_0x124e03[0x0][_0x50ba('0x12')]};for(;_0x124e03[_0x50ba('0xe')];)this[_0x50ba('0x18')](_0x50ba('0x20'))[_0x50ba('0x1c')](_0x30441e,_0x124e03)||this[_0x50ba('0x18')](_0x50ba('0x1b'))[_0x50ba('0x1c')](_0x30441e,_0x124e03)||this[_0x50ba('0x18')](_0x50ba('0xc'))[_0x50ba('0x1c')](_0x30441e,_0x124e03)||this[_0x50ba('0x18')](_0x50ba('0x15'))[_0x50ba('0x1c')](_0x30441e,_0x124e03)||this['_getCompressorByName'](_0x50ba('0x22'))[_0x50ba('0x1c')](_0x30441e,_0x124e03)||this[_0x50ba('0x18')](_0x50ba('0x2'))[_0x50ba('0x1c')](_0x30441e,_0x124e03)||this['_getCompressorByName'](_0x124e03[0x0]['__className'])[_0x50ba('0x1c')](_0x30441e,_0x124e03);return _0x30441e;}['decompress'](_0x29530e){const _0x364dea=[];for(;_0x29530e['types'][_0x50ba('0xe')];){this[_0x50ba('0x8')]['get'](_0x29530e[_0x50ba('0x10')][0x0])[_0x50ba('0x5')](_0x364dea,_0x29530e);}return _0x364dea[_0x50ba('0xd')]((_0x3c3681,_0x1198f3)=>_0x3c3681[_0x50ba('0x12')]=_0x29530e[_0x50ba('0x12')]+_0x1198f3),_0x364dea;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54f1=['compress','_omittedNamespace','startsWith','decompress','name'];(function(_0x295532,_0x54f11b){const _0x24a332=function(_0x5c4974){while(--_0x5c4974){_0x295532['push'](_0x295532['shift']());}};_0x24a332(++_0x54f11b);}(_0x54f1,0x111));const _0x24a3=function(_0x295532,_0x54f11b){_0x295532=_0x295532-0x0;let _0x24a332=_0x54f1[_0x295532];return _0x24a332;};import _0x4af695 from'./markeroperationcompressor';export default class O extends _0x4af695{constructor(_0x6e63cd,_0x50ebb8,_0x3058a1,_0x1da966){super(_0x6e63cd,_0x50ebb8,_0x3058a1),this[_0x24a3('0x3')]=_0x1da966+':';}[_0x24a3('0x2')](_0x336735,_0x249a24){return!('MarkerOperation'!=_0x249a24[0x0]['__className']||!_0x249a24[0x0]['name'][_0x24a3('0x4')](this['_omittedNamespace']))&&(_0x249a24[0x0]['name']=_0x249a24[0x0][_0x24a3('0x1')]['replace'](new RegExp('^'+this[_0x24a3('0x3')]),''),super['compress'](_0x336735,_0x249a24),!0x0);}[_0x24a3('0x0')](_0x454367,_0x1c0b97){super[_0x24a3('0x0')](_0x454367,_0x1c0b97);const _0x172aa7=_0x454367[_0x454367['length']-0x1];_0x172aa7[_0x24a3('0x1')]=this[_0x24a3('0x3')]+_0x172aa7['name'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f27=['__className','Range','_protobufDescriptor','string','Boolean','oldValue','buffers','stringify','bool','compress','description','newValue','Json','decompress','push'];(function(_0x3a21e3,_0x1f2740){const _0x49b4ab=function(_0x3d134c){while(--_0x3d134c){_0x3a21e3['push'](_0x3a21e3['shift']());}};_0x49b4ab(++_0x1f2740);}(_0x1f27,0x158));const _0x49b4=function(_0x3a21e3,_0x1f2740){_0x3a21e3=_0x3a21e3-0x0;let _0x49b4ab=_0x1f27[_0x3a21e3];return _0x49b4ab;};import _0x3731ed from'./operationcompressor';import{parsePositionBeforeCompression as _0x2003ac,parsePositionAfterCompression as _0x50413d}from'../utils';export default class i extends _0x3731ed{static get[_0x49b4('0xb')](){return{'fields':{'range':{'type':_0x49b4('0x2'),'id':0x1},'key':{'type':_0x49b4('0x4'),'id':0x2},'oldValueBoolean':{'type':_0x49b4('0x9'),'id':0x3},'oldValueJson':{'type':_0x49b4('0x4'),'id':0x4},'newValueBoolean':{'type':_0x49b4('0x9'),'id':0x5},'newValueJson':{'type':_0x49b4('0x4'),'id':0x6},'wasUndone':{'type':_0x49b4('0x9'),'id':0x7}}};}[_0x49b4('0xa')](_0x3c1256,_0x46fe69){const _0x5e72b1=_0x46fe69['shift']();$(_0x49b4('0x6'),_0x5e72b1),$(_0x49b4('0xc'),_0x5e72b1),_0x2003ac(_0x5e72b1),_0x3c1256[_0x49b4('0x7')][_0x49b4('0x0')](this[_0x49b4('0x3')][_0x49b4('0xa')](_0x5e72b1)),_0x3c1256['types'][_0x49b4('0x0')](this['id']);}['decompress'](_0x22609b,_0x5de13c){const {types:_0x1b8ce2,buffers:_0x1c2e5a}=_0x5de13c,_0x2b1af2=this['_protobufDescriptor'][_0x49b4('0xe')](_0x1c2e5a['shift']());_0x1b8ce2['shift'](),N(_0x49b4('0x6'),_0x2b1af2),N(_0x49b4('0xc'),_0x2b1af2),_0x50413d(_0x2b1af2),_0x2b1af2[_0x49b4('0x1')]=this['operationName'],_0x22609b[_0x49b4('0x0')](_0x2b1af2);}}function $(_0x247377,_0x5e8f2f){const _0x1029c9=_0x5e8f2f[_0x247377];'boolean'==typeof _0x1029c9?_0x5e8f2f[_0x247377+_0x49b4('0x5')]=_0x1029c9:_0x5e8f2f[_0x247377+_0x49b4('0xd')]=JSON[_0x49b4('0x8')](_0x1029c9);}function N(_0x5b1f7a,_0x47d2df){const _0x3de5c2=_0x5b1f7a+_0x49b4('0xd');_0x47d2df[_0x3de5c2]?(_0x47d2df[_0x5b1f7a]=JSON['parse'](_0x47d2df[_0x3de5c2]),delete _0x47d2df[_0x3de5c2]):(_0x47d2df[_0x5b1f7a]=_0x47d2df[_0x5b1f7a+_0x49b4('0x5')],delete _0x47d2df[_0x5b1f7a+_0x49b4('0x5')]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12ea=['buffers','repeated','nodes','bool','attributes','shift','attributesBoolean','types','Element','description','parse','compress','stringify','Position','children','attributesJson','every','_protobufDescriptor','push','decompress'];(function(_0x1e37c2,_0x12eae9){const _0x5c5a30=function(_0x434bc8){while(--_0x434bc8){_0x1e37c2['push'](_0x1e37c2['shift']());}};_0x5c5a30(++_0x12eae9);}(_0x12ea,0xe3));const _0x5c5a=function(_0x1e37c2,_0x12eae9){_0x1e37c2=_0x1e37c2-0x0;let _0x5c5a30=_0x12ea[_0x1e37c2];return _0x5c5a30;};import _0x421ab6 from'./operationcompressor';import{parsePositionBeforeCompression as _0x4099cd,parsePositionAfterCompression as _0x55ad79}from'../utils';export default class s extends _0x421ab6{static get[_0x5c5a('0x2')](){return{'fields':{'position':{'type':_0x5c5a('0x6'),'id':0x1},'nodes':{'rule':_0x5c5a('0xe'),'type':_0x5c5a('0x1'),'id':0x2},'shouldReceiveAttributes':{'type':_0x5c5a('0x10'),'id':0x3},'wasUndone':{'type':_0x5c5a('0x10'),'id':0x4}}};}[_0x5c5a('0x4')](_0x1e13e4,_0x5e3710){const _0x288808=_0x5e3710[_0x5c5a('0x12')]();A(_0x288808[_0x5c5a('0xf')]),_0x4099cd(_0x288808),_0x1e13e4[_0x5c5a('0xd')][_0x5c5a('0xb')](this[_0x5c5a('0xa')][_0x5c5a('0x4')](_0x288808)),_0x1e13e4[_0x5c5a('0x0')][_0x5c5a('0xb')](this['id']);}[_0x5c5a('0xc')](_0x481dec,_0x337c08){const {types:_0x22a1e9,buffers:_0x20721b}=_0x337c08,_0x3b7391=this['_protobufDescriptor'][_0x5c5a('0xc')](_0x20721b['shift']());_0x22a1e9[_0x5c5a('0x12')](),_0x3b7391[_0x5c5a('0xf')]||(_0x3b7391[_0x5c5a('0xf')]=[]),E(_0x3b7391[_0x5c5a('0xf')]),_0x55ad79(_0x3b7391),_0x3b7391['__className']=this['operationName'],_0x481dec[_0x5c5a('0xb')](_0x3b7391);}}function A(_0x21e531){for(const _0x2e5e25 of _0x21e531){if(_0x2e5e25[_0x5c5a('0x11')]){const _0x23656a=_0x2e5e25[_0x5c5a('0x11')];R(_0x23656a)?_0x2e5e25[_0x5c5a('0x13')]=_0x23656a:_0x2e5e25[_0x5c5a('0x8')]=JSON[_0x5c5a('0x5')](_0x23656a);}_0x2e5e25[_0x5c5a('0x7')]&&A(_0x2e5e25[_0x5c5a('0x7')]);}}function E(_0x2af27d){for(const _0x2bd09c of _0x2af27d)(_0x2bd09c['attributesBoolean']||_0x2bd09c[_0x5c5a('0x8')])&&(_0x2bd09c[_0x5c5a('0x13')]?(_0x2bd09c[_0x5c5a('0x11')]=_0x2bd09c[_0x5c5a('0x13')],delete _0x2bd09c[_0x5c5a('0x13')]):(_0x2bd09c[_0x5c5a('0x11')]=JSON[_0x5c5a('0x3')](_0x2bd09c[_0x5c5a('0x8')]),delete _0x2bd09c['attributesJson'])),_0x2bd09c[_0x5c5a('0x7')]&&E(_0x2bd09c['children']);}function R(_0x185993){return Object['keys'](_0x185993)[_0x5c5a('0x9')](_0x19263e=>'boolean'==typeof _0x185993[_0x19263e]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x367a=['oldRange','description','bool','decompress','newRange','length','Range'];(function(_0x477718,_0x367abb){const _0x1816d6=function(_0x17df65){while(--_0x17df65){_0x477718['push'](_0x477718['shift']());}};_0x1816d6(++_0x367abb);}(_0x367a,0x190));const _0x1816=function(_0x477718,_0x367abb){_0x477718=_0x477718-0x0;let _0x1816d6=_0x367a[_0x477718];return _0x1816d6;};import _0x5e1e9c from'./operationcompressor';export default class n extends _0x5e1e9c{static get[_0x1816('0x0')](){return{'fields':{'name':{'type':'string','id':0x1},'oldRange':{'type':_0x1816('0x5'),'id':0x2},'newRange':{'type':_0x1816('0x5'),'id':0x3},'affectsData':{'type':_0x1816('0x1'),'id':0x4},'wasUndone':{'type':_0x1816('0x1'),'id':0x5}}};}[_0x1816('0x2')](_0x192c2e,_0x5ebf09){super['decompress'](_0x192c2e,_0x5ebf09);const _0x4a229c=_0x192c2e[_0x192c2e[_0x1816('0x4')]-0x1];_0x4a229c[_0x1816('0x6')]||(_0x4a229c['oldRange']=null),_0x4a229c[_0x1816('0x3')]||(_0x4a229c[_0x1816('0x3')]=null);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x22a7=['Position','description','bool'];(function(_0x4ada02,_0x22a755){var _0x1166ff=function(_0x1ec39a){while(--_0x1ec39a){_0x4ada02['push'](_0x4ada02['shift']());}};_0x1166ff(++_0x22a755);}(_0x22a7,0x19e));var _0x1166=function(_0x4ada02,_0x22a755){_0x4ada02=_0x4ada02-0x0;var _0x1166ff=_0x22a7[_0x4ada02];return _0x1166ff;};import _0x595a45 from'./operationcompressor';export default class p extends _0x595a45{static get[_0x1166('0x1')](){return{'fields':{'sourcePosition':{'type':'Position','id':0x1},'targetPosition':{'type':_0x1166('0x0'),'id':0x2},'graveyardPosition':{'type':_0x1166('0x0'),'id':0x3},'howMany':{'type':'uint32','id':0x4},'wasUndone':{'type':_0x1166('0x2'),'id':0x5}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4857=['Position','description','bool'];(function(_0x4a677b,_0x4857cd){var _0x3f43ad=function(_0x3a463a){while(--_0x3a463a){_0x4a677b['push'](_0x4a677b['shift']());}};_0x3f43ad(++_0x4857cd);}(_0x4857,0x19c));var _0x3f43=function(_0x4a677b,_0x4857cd){_0x4a677b=_0x4a677b-0x0;var _0x3f43ad=_0x4857[_0x4a677b];return _0x3f43ad;};import _0x3c3678 from'./operationcompressor';export default class m extends _0x3c3678{static get[_0x3f43('0x0')](){return{'fields':{'sourcePosition':{'type':_0x3f43('0x2'),'id':0x1},'howMany':{'type':'uint32','id':0x2},'targetPosition':{'type':'Position','id':0x3},'wasUndone':{'type':_0x3f43('0x1'),'id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3381=['operationName','decompress','types','compress','push','shift'];(function(_0x12c0fe,_0x33814b){var _0xdc3d27=function(_0x14666f){while(--_0x14666f){_0x12c0fe['push'](_0x12c0fe['shift']());}};_0xdc3d27(++_0x33814b);}(_0x3381,0xb2));var _0xdc3d=function(_0x12c0fe,_0x33814b){_0x12c0fe=_0x12c0fe-0x0;var _0xdc3d27=_0x3381[_0x12c0fe];return _0xdc3d27;};import _0x48d0da from'./operationcompressor';export default class f extends _0x48d0da{[_0xdc3d('0x5')](_0x53431b,_0x5b9f1b){_0x5b9f1b[_0xdc3d('0x1')](),_0x53431b[_0xdc3d('0x4')][_0xdc3d('0x0')](this['id']);}[_0xdc3d('0x3')](_0x52d62c,_0x208c2c){_0x208c2c[_0xdc3d('0x4')][_0xdc3d('0x1')](),_0x52d62c[_0xdc3d('0x0')]({'__className':this[_0xdc3d('0x2')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28e5=['operationName','buffers','shift','decompress','compress','__className','types','_protobufDescriptor','push'];(function(_0x1d068b,_0x28e5bb){const _0xfb25cb=function(_0x361d28){while(--_0x361d28){_0x1d068b['push'](_0x1d068b['shift']());}};_0xfb25cb(++_0x28e5bb);}(_0x28e5,0xde));const _0xfb25=function(_0x1d068b,_0x28e5bb){_0x1d068b=_0x1d068b-0x0;let _0xfb25cb=_0x28e5[_0x1d068b];return _0xfb25cb;};import{parsePositionBeforeCompression as _0x253933,parsePositionAfterCompression as _0x39226a}from'../utils';export default class V{constructor(_0xdb0d50,_0x4599d3,_0x3652de){this['id']=_0xdb0d50,this['operationName']=_0x4599d3,this[_0xfb25('0x1')]=_0x3652de;}['compress'](_0x49cd75,_0x342b1b){const _0x447941=_0x342b1b[_0xfb25('0x5')]();_0x253933(_0x447941),_0x49cd75[_0xfb25('0x4')]['push'](this[_0xfb25('0x1')][_0xfb25('0x7')](_0x447941)),_0x49cd75[_0xfb25('0x0')][_0xfb25('0x2')](this['id']);}[_0xfb25('0x6')](_0x1251ac,_0x560a5a){_0x560a5a[_0xfb25('0x0')][_0xfb25('0x5')]();const _0x2da254=this[_0xfb25('0x1')][_0xfb25('0x6')](_0x560a5a['buffers'][_0xfb25('0x5')]());_0x39226a(_0x2da254),_0x2da254[_0xfb25('0x8')]=this[_0xfb25('0x3')],_0x1251ac[_0xfb25('0x2')](_0x2da254);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x475a=['description','string'];(function(_0x1f2fa2,_0x475a30){var _0x2c476c=function(_0x2f5ef1){while(--_0x2f5ef1){_0x1f2fa2['push'](_0x1f2fa2['shift']());}};_0x2c476c(++_0x475a30);}(_0x475a,0xe7));var _0x2c47=function(_0x1f2fa2,_0x475a30){_0x1f2fa2=_0x1f2fa2-0x0;var _0x2c476c=_0x475a[_0x1f2fa2];return _0x2c476c;};import _0x2f1108 from'./operationcompressor';export default class a extends _0x2f1108{static get[_0x2c47('0x1')](){return{'fields':{'position':{'type':'Position','id':0x1},'oldName':{'type':_0x2c47('0x0'),'id':0x2},'newName':{'type':'string','id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1586=['range','fields','string','description','root'];(function(_0x72078f,_0x15869e){const _0x30a67e=function(_0x1838b2){while(--_0x1838b2){_0x72078f['push'](_0x72078f['shift']());}};_0x30a67e(++_0x15869e);}(_0x1586,0x81));const _0x30a6=function(_0x72078f,_0x15869e){_0x72078f=_0x72078f-0x0;let _0x30a67e=_0x1586[_0x72078f];return _0x30a67e;};import _0x2cbf48 from'./attributeoperationcompressor';export default class c extends _0x2cbf48{static get[_0x30a6('0x4')](){const _0x46ae00=_0x2cbf48['description'];return delete _0x46ae00[_0x30a6('0x2')][_0x30a6('0x1')],_0x46ae00['fields'][_0x30a6('0x0')]={'type':_0x30a6('0x3'),'id':0x1},_0x46ae00;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3970=['description','uint32','bool','Position'];(function(_0x1925f9,_0x3970ca){var _0x2733bd=function(_0x4558bb){while(--_0x4558bb){_0x1925f9['push'](_0x1925f9['shift']());}};_0x2733bd(++_0x3970ca);}(_0x3970,0xcd));var _0x2733=function(_0x1925f9,_0x3970ca){_0x1925f9=_0x1925f9-0x0;var _0x2733bd=_0x3970[_0x1925f9];return _0x2733bd;};import _0x1470b from'./operationcompressor';export default class h extends _0x1470b{static get[_0x2733('0x3')](){return{'fields':{'splitPosition':{'type':_0x2733('0x2'),'id':0x1},'graveyardPosition':{'type':'Position','id':0x2},'howMany':{'type':_0x2733('0x0'),'id':0x3},'insertionPosition':{'type':_0x2733('0x2'),'id':0x4},'wasUndone':{'type':_0x2733('0x1'),'id':0x5}}};}}
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20cb=['nested','create','fromJSON','protobuffactory-cannot-get-descriptor-before-build','finish','_protobuf','decode','toObject','build','decompress','_protobufRoot','_description','encode','getDescriptor','verify'];(function(_0x4ca254,_0x20cb0f){const _0x11dad9=function(_0x3f76ed){while(--_0x3f76ed){_0x4ca254['push'](_0x4ca254['shift']());}};_0x11dad9(++_0x20cb0f);}(_0x20cb,0x1a6));const _0x11da=function(_0x4ca254,_0x20cb0f){_0x4ca254=_0x4ca254-0x0;let _0x11dad9=_0x20cb[_0x4ca254];return _0x11dad9;};import _0x33c784 from'protobufjs/light';import{CKEditorError as _0x43c9e7}from'ckeditor5/src/utils';import{cloneDeep as _0x30b7a0}from'lodash-es';export default class r{constructor(){this['_description']={'nested':{}};}['registerDescriptor'](_0x37d0c6,_0x25e848){this[_0x11da('0x9')][_0x11da('0xd')][_0x37d0c6]=_0x30b7a0(_0x25e848);}[_0x11da('0x6')](){this[_0x11da('0x8')]=_0x33c784['Root'][_0x11da('0x0')](this[_0x11da('0x9')]);}[_0x11da('0xb')](_0x1a4b2b){if(!this[_0x11da('0x8')])throw new _0x43c9e7(_0x11da('0x1'),this);return new D(this[_0x11da('0x8')]['lookupType'](_0x1a4b2b));}}class D{constructor(_0x2e1a4f){this[_0x11da('0x3')]=_0x2e1a4f;}['compress'](_0x275f64){const _0x3181b8=this['_protobuf'][_0x11da('0xc')](_0x275f64);if(_0x3181b8)throw Error(_0x3181b8);return this[_0x11da('0x3')][_0x11da('0xa')](this[_0x11da('0x3')][_0x11da('0xe')](_0x275f64))[_0x11da('0x2')]();}[_0x11da('0x7')](_0x247500){return this[_0x11da('0x3')][_0x11da('0x5')](this['_protobuf'][_0x11da('0x4')](_0x247500),{'oneofs':!0x0});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d02=['nodes','path','rootGraveyard','$graveyard','root','main','rootMain'];(function(_0x18fe8e,_0x1d0228){const _0x2881ea=function(_0x2c4b47){while(--_0x2c4b47){_0x18fe8e['push'](_0x18fe8e['shift']());}};_0x2881ea(++_0x1d0228);}(_0x1d02,0xcd));const _0x2881=function(_0x18fe8e,_0x1d0228){_0x18fe8e=_0x18fe8e-0x0;let _0x2881ea=_0x1d02[_0x18fe8e];return _0x2881ea;};import{cloneDeep as _0x3f0c92,isEqual as _0xc3ed95,isObject as _0x3cac69}from'lodash-es';export function getPositionShiftedBy(_0x46df8a,_0x4602f2){const _0x2d971c=_0x3f0c92(_0x46df8a);return _0x2d971c[_0x2881('0x6')][_0x2d971c[_0x2881('0x6')]['length']-0x1]+=_0x4602f2,_0x2d971c;}export function arePositionsEqual(_0x282d43,_0xe83df5){return _0x282d43[_0x2881('0x2')]===_0xe83df5[_0x2881('0x2')]&&_0xc3ed95(_0x282d43[_0x2881('0x6')],_0xe83df5[_0x2881('0x6')]);}export function parsePositionBeforeCompression(_0x2ba33f){y(_0x2ba33f,_0xf4a29d=>(_0x2881('0x3')==_0xf4a29d[_0x2881('0x2')]?(_0xf4a29d[_0x2881('0x4')]=!0x0,delete _0xf4a29d[_0x2881('0x2')]):'$graveyard'==_0xf4a29d[_0x2881('0x2')]&&(_0xf4a29d[_0x2881('0x0')]=!0x0,delete _0xf4a29d[_0x2881('0x2')]),_0xf4a29d));}export function parsePositionAfterCompression(_0x37aa4e){y(_0x37aa4e,_0x4eac4d=>(_0x4eac4d[_0x2881('0x4')]?(_0x4eac4d[_0x2881('0x2')]=_0x2881('0x3'),delete _0x4eac4d['rootMain']):_0x4eac4d[_0x2881('0x0')]&&(_0x4eac4d[_0x2881('0x2')]=_0x2881('0x1'),delete _0x4eac4d[_0x2881('0x0')]),_0x4eac4d));}function y(_0x3537ab,_0x3034f5){for(const _0x23b9fb in _0x3537ab){const _0x4be0e4=_0x3537ab[_0x23b9fb];_0x2881('0x5')!==_0x23b9fb&&_0x3cac69(_0x4be0e4)&&(_0x4be0e4[_0x2881('0x6')]&&(_0x4be0e4[_0x2881('0x2')]||_0x4be0e4[_0x2881('0x4')]||_0x4be0e4[_0x2881('0x0')])?_0x3537ab[_0x23b9fb]=_0x3034f5(_0x4be0e4):y(_0x4be0e4,_0x3034f5));}return _0x3537ab;}
|