@ckeditor/ckeditor5-operations-compressor 35.2.1 → 35.3.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/CHANGELOG.md +1 -1
- package/README.md +1 -1
- 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/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
-
All changes in the package are documented at https://
|
|
4
|
+
All changes in the package are documented at https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
|
|
5
5
|
|
|
6
6
|
Changes for the past releases are available below.
|
|
7
7
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ CKEditor 5 operations compressor is a low-level API that compresses and decompre
|
|
|
9
9
|
|
|
10
10
|
For more information about real-time collaboration see the [CKEditor 5 real-time collaboration documentation](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/real-time-collaboration/real-time-collaboration.html).
|
|
11
11
|
|
|
12
|
-
Also, make sure you visit the [CKEditor 5
|
|
12
|
+
Also, make sure you visit the [CKEditor 5 changelog](https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md) whenever a new version of the package is released.
|
|
13
13
|
|
|
14
14
|
## Getting support
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-operations-compressor",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.3.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.3.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 _0x288f=['types','_compressSingleOperation','_decompressSingleOperation','buffers','_compareOperations','compress','push','_splitCurrent','shift','decompress','_combineNext','_context'];(function(_0x56abbd,_0x288f13){const _0x221e94=function(_0x389d5e){while(--_0x389d5e){_0x56abbd['push'](_0x56abbd['shift']());}};_0x221e94(++_0x288f13);}(_0x288f,0x1d0));const _0x221e=function(_0x56abbd,_0x288f13){_0x56abbd=_0x56abbd-0x0;let _0x221e94=_0x288f[_0x56abbd];return _0x221e94;};import{cloneDeep as _0x4dbbec}from'lodash-es';export default class j{constructor(_0x496f0b,_0xb1ef2c){this['id']=_0x496f0b,this[_0x221e('0x3')]=_0xb1ef2c;}[_0x221e('0x9')](_0x29771e,_0x1fc518){let _0x26d6ce;for(;_0x1fc518['length']>0x1&&this[_0x221e('0x8')](_0x1fc518[0x0],_0x1fc518[0x1]);)_0x26d6ce?(_0x26d6ce=this['_combineNext'](_0x1fc518['shift'](),_0x26d6ce),_0x29771e[_0x221e('0x4')][_0x221e('0xa')](0x0)):(_0x26d6ce=_0x4dbbec(_0x1fc518[_0x221e('0x0')]()),_0x29771e[_0x221e('0x4')]['push'](this['id']));return!!_0x26d6ce&&(_0x26d6ce=this[_0x221e('0x2')](_0x1fc518[_0x221e('0x0')](),_0x26d6ce),_0x29771e[_0x221e('0x4')][_0x221e('0xa')](0x0),_0x29771e[_0x221e('0x7')][_0x221e('0xa')](this[_0x221e('0x5')](_0x26d6ce)),!0x0);}[_0x221e('0x1')](_0x41318e,_0x3329cc){const _0x207de5=this[_0x221e('0x6')](_0x3329cc);for(;0x0==_0x3329cc['types'][0x0];)_0x3329cc[_0x221e('0x4')]['shift'](),_0x41318e['push'](this[_0x221e('0xb')](_0x207de5));_0x41318e[_0x221e('0xa')](_0x207de5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d04=['_getCompressorByName','$graveyard','_combineNext','_context','_decompressSingleOperation','sourcePosition','MoveOperation','_compareOperations','targetPosition','_splitCurrent','compress','buffers','_compressSingleOperation','decompress','root','howMany'];(function(_0x5a50ba,_0x1d0458){const _0x1613fb=function(_0x3e99ce){while(--_0x3e99ce){_0x5a50ba['push'](_0x5a50ba['shift']());}};_0x1613fb(++_0x1d0458);}(_0x1d04,0x1df));const _0x1613=function(_0x5a50ba,_0x1d0458){_0x5a50ba=_0x5a50ba-0x0;let _0x1613fb=_0x1d04[_0x5a50ba];return _0x1613fb;};import _0x53f43a from'./actioncompressor';import{arePositionsEqual as _0x1c3921,getPositionShiftedBy as _0x3e8d3a}from'../utils';import{cloneDeep as _0x12d917}from'lodash-es';export default class u extends _0x53f43a{[_0x1613('0x3')](_0x48ea1d,_0x4f2a3c){return _0x4f2a3c[_0x1613('0x0')]++,_0x4f2a3c['sourcePosition']=_0x12d917(_0x48ea1d[_0x1613('0x6')]),_0x4f2a3c;}[_0x1613('0xa')](_0x4dd3a3){const _0xcdd6de=_0x12d917(_0x4dd3a3);return _0x4dd3a3[_0x1613('0x0')]--,_0xcdd6de[_0x1613('0x0')]=0x1,_0xcdd6de['sourcePosition']=_0x3e8d3a(_0xcdd6de['sourcePosition'],_0x4dd3a3[_0x1613('0x0')]),_0xcdd6de;}[_0x1613('0x8')](_0x20e12c,_0x5327b9){return!(!S(_0x20e12c)||!S(_0x5327b9))&&(_0x1c3921(_0x3e8d3a(_0x20e12c[_0x1613('0x6')],-0x1),_0x5327b9[_0x1613('0x6')])&&_0x1c3921(_0x20e12c[_0x1613('0x9')],_0x5327b9['targetPosition']));}[_0x1613('0xd')](_0x309d8a){const _0x4bdfbf={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1613('0x4')][_0x1613('0x1')](_0x1613('0x7'))[_0x1613('0xb')](_0x4bdfbf,[_0x309d8a]),_0x4bdfbf[_0x1613('0xc')][0x0];}[_0x1613('0x5')](_0x4256fb){const _0x3a0830=[];return this[_0x1613('0x4')][_0x1613('0x1')](_0x1613('0x7'))[_0x1613('0xe')](_0x3a0830,_0x4256fb),_0x3a0830[0x0];}}function S(_0x17725e){return _0x1613('0x7')==_0x17725e['__className']&&_0x1613('0x2')==_0x17725e[_0x1613('0x9')][_0x1613('0xf')]&&0x1==_0x17725e[_0x1613('0x0')]&&!_0x17725e['wasUndone'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2385=['wasUndone','sourcePosition','root','buffers','_decompressSingleOperation','_compareOperations','_getCompressorByName','MoveOperation','howMany','compress','decompress','_compressSingleOperation','$graveyard','_splitCurrent','_context','_combineNext'];(function(_0x1cd8f8,_0x23852e){const _0x1d5094=function(_0xd8e85a){while(--_0xd8e85a){_0x1cd8f8['push'](_0x1cd8f8['shift']());}};_0x1d5094(++_0x23852e);}(_0x2385,0xdd));const _0x1d50=function(_0x1cd8f8,_0x23852e){_0x1cd8f8=_0x1cd8f8-0x0;let _0x1d5094=_0x2385[_0x1cd8f8];return _0x1d5094;};import _0x10c7b5 from'./actioncompressor';import{arePositionsEqual as _0x1d4338}from'../utils';import{cloneDeep as _0x267a93}from'lodash-es';export default class l extends _0x10c7b5{[_0x1d50('0x2')](_0xe54b92,_0x53ef8c){return _0x53ef8c[_0x1d50('0xb')]++,_0x53ef8c;}[_0x1d50('0x0')](_0x4d393b){const _0x482239=_0x267a93(_0x4d393b);return _0x482239[_0x1d50('0xb')]=0x1,_0x4d393b['howMany']--,_0x482239;}[_0x1d50('0x8')](_0x33fca9,_0x587e28){return!(!S(_0x33fca9)||!S(_0x587e28))&&(_0x1d4338(_0x33fca9[_0x1d50('0x4')],_0x587e28[_0x1d50('0x4')])&&_0x1d4338(_0x33fca9['targetPosition'],_0x587e28['targetPosition']));}[_0x1d50('0xe')](_0x33011a){const _0x485114={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1d50('0x1')][_0x1d50('0x9')](_0x1d50('0xa'))[_0x1d50('0xc')](_0x485114,[_0x33011a]),_0x485114[_0x1d50('0x6')][0x0];}[_0x1d50('0x7')](_0x5232f){const _0x28d7e3=[];return this['_context']['_getCompressorByName'](_0x1d50('0xa'))[_0x1d50('0xd')](_0x28d7e3,_0x5232f),_0x28d7e3[0x0];}}function S(_0x5c904b){return'MoveOperation'==_0x5c904b['__className']&&_0x1d50('0xf')==_0x5c904b['targetPosition'][_0x1d50('0x5')]&&0x1==_0x5c904b[_0x1d50('0xb')]&&!_0x5c904b[_0x1d50('0x3')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6f41=['wasUndone','length','_splitCurrent','next','_context','_getCompressorByName','InsertOperation','every','__className','from','value','compress','substr','_combineNext','_decompressSingleOperation','iterator','decompress','attributes','nodes','keys','data','_compareOperations','position'];(function(_0xef2a90,_0x6f417b){const _0x722859=function(_0x599538){while(--_0x599538){_0xef2a90['push'](_0xef2a90['shift']());}};_0x722859(++_0x6f417b);}(_0x6f41,0xa2));const _0x7228=function(_0xef2a90,_0x6f417b){_0xef2a90=_0xef2a90-0x0;let _0x722859=_0x6f41[_0xef2a90];return _0x722859;};import _0x37ea36 from'./actioncompressor';import{arePositionsEqual as _0x5328e0,getPositionShiftedBy as _0x38089a}from'../utils';import{cloneDeep as _0xd7c8ee}from'lodash-es';export default class g extends _0x37ea36{[_0x7228('0xc')](_0x146173,_0x4bd802){return _0x4bd802[_0x7228('0x11')][0x0][_0x7228('0x13')]+=_0x146173[_0x7228('0x11')][0x0][_0x7228('0x13')],_0x4bd802;}[_0x7228('0x1')](_0x4846b5){const _0x3d687f=_0xd7c8ee(_0x4846b5),_0x2ab251=_0x3d687f[_0x7228('0x11')][0x0],_0x59c079=_0x4846b5['nodes'][0x0],_0x4cea17=_0x59c079[_0x7228('0x13')][Symbol[_0x7228('0xe')]]()[_0x7228('0x2')]()[_0x7228('0x9')],_0x3dce04=_0x4cea17['length'];return _0x2ab251[_0x7228('0x13')]=_0x4cea17,_0x59c079[_0x7228('0x13')]=_0x59c079[_0x7228('0x13')][_0x7228('0xb')](_0x3dce04),_0x4846b5['position']=_0x38089a(_0x4846b5[_0x7228('0x15')],_0x3dce04),_0x3d687f;}[_0x7228('0x14')](_0x5d0588,_0x20cf73){if(S(_0x5d0588)&&S(_0x20cf73)){const _0x2fdf4d=_0x5d0588[_0x7228('0x11')][0x0][_0x7228('0x13')]['length'],_0x3bb46c=_0x5328e0(_0x38089a(_0x5d0588[_0x7228('0x15')],_0x2fdf4d),_0x20cf73['position']),_0x12aa5d=_0x5d0588[_0x7228('0x11')][0x0],_0x24e8e9=_0x20cf73[_0x7228('0x11')][0x0];return _0x3bb46c&&function(_0xf74d30,_0x1597a8){const _0x159424=Object[_0x7228('0x12')](_0xf74d30[_0x7228('0x10')]||{}),_0x537f16=Object[_0x7228('0x12')](_0x1597a8['attributes']||{});if(_0x159424[_0x7228('0x0')]!==_0x537f16[_0x7228('0x0')])return!0x1;return _0x159424[_0x7228('0x6')](_0x2873e1=>_0x1597a8[_0x7228('0x10')][_0x2873e1]&&_0x1597a8[_0x7228('0x10')][_0x2873e1]===_0xf74d30[_0x7228('0x10')][_0x2873e1]);}(_0x12aa5d,_0x24e8e9);}return!0x1;}['_compressSingleOperation'](_0x183d39){const _0x1ec7ac={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x7228('0x3')][_0x7228('0x4')](_0x7228('0x5'))[_0x7228('0xa')](_0x1ec7ac,[_0x183d39]),_0x1ec7ac['buffers'][0x0];}[_0x7228('0xd')](_0x542c10){const _0x583117=[];return this['_context'][_0x7228('0x4')]('InsertOperation')[_0x7228('0xf')](_0x583117,_0x542c10),_0x583117[0x0];}}function S(_0x2de3f9){return'InsertOperation'==_0x2de3f9[_0x7228('0x7')]&&0x1==_0x2de3f9[_0x7228('0x11')][_0x7228('0x0')]&&_0x2de3f9[_0x7228('0x11')][0x0][_0x7228('0x13')]&&!_0x2de3f9[_0x7228('0x16')]&&0x1==Array[_0x7228('0x8')](_0x2de3f9[_0x7228('0x11')][0x0][_0x7228('0x13')])[_0x7228('0x0')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x72d7=['newRange','user:position:','_context','start','compress','_getCompressorByName','types','__className','shift','decompress','end','toNone','push','MarkerOperation','_compressSingleOperation','user:','oldRange','name','_decompressSingleOperation','startsWith','buffers','split'];(function(_0x61fcce,_0x72d708){const _0x38a919=function(_0x499a30){while(--_0x499a30){_0x61fcce['push'](_0x61fcce['shift']());}};_0x38a919(++_0x72d708);}(_0x72d7,0x7d));const _0x38a9=function(_0x61fcce,_0x72d708){_0x61fcce=_0x61fcce-0x0;let _0x38a919=_0x72d7[_0x61fcce];return _0x38a919;};import _0x312932 from'./actioncompressor';import{arePositionsEqual as _0x37044a}from'../utils';import{cloneDeep as _0x5d61cd}from'lodash-es';export default class M extends _0x312932{[_0x38a9('0xb')](_0x26179c,_0x455957){if(!function(_0x4c0106,_0x58a937){if(!_0x4c0106||!_0x58a937)return!0x1;if('MarkerOperation'!=_0x4c0106['__className']||_0x38a9('0x14')!=_0x58a937[_0x38a9('0xe')])return!0x1;if(_0x4c0106['name'][_0x38a9('0x4')](_0x38a9('0x0'))&&_0x58a937[_0x38a9('0x2')][_0x38a9('0x4')](_0x38a9('0x0'))&&_0x4c0106[_0x38a9('0x2')]!=_0x58a937['name'])return!0x0;return!0x1;}(_0x455957[0x0],_0x455957[0x1]))return!0x1;const _0x2c154c=_0x455957[_0x38a9('0xf')]();return _0x2c154c[_0x38a9('0x1')]=null,_0x2c154c[_0x38a9('0x7')]&&_0x37044a(_0x2c154c['newRange'][_0x38a9('0xa')],_0x2c154c[_0x38a9('0x7')][_0x38a9('0x11')])&&(_0x2c154c['newRange'][_0x38a9('0x11')]=null),_0x455957[_0x38a9('0xf')](),_0x26179c[_0x38a9('0xd')][_0x38a9('0x13')](this['id']),_0x26179c[_0x38a9('0xd')][_0x38a9('0x13')](0x0),_0x26179c[_0x38a9('0x5')][_0x38a9('0x13')](this['_compressSingleOperation'](_0x2c154c)),!0x0;}[_0x38a9('0x10')](_0x186126,_0x1086fa){const _0x1f879d=this[_0x38a9('0x3')](_0x1086fa);_0x1f879d[_0x38a9('0x7')]&&!_0x1f879d['newRange'][_0x38a9('0x11')]&&(_0x1f879d[_0x38a9('0x7')][_0x38a9('0x11')]=_0x5d61cd(_0x1f879d[_0x38a9('0x7')]['start']));const _0x40ba29=_0x5d61cd(_0x1f879d);_0x40ba29[_0x38a9('0x7')]&&(_0x40ba29[_0x38a9('0x7')][_0x38a9('0xa')]['stickiness']=_0x38a9('0x12'),_0x40ba29[_0x38a9('0x7')][_0x38a9('0x11')]=_0x5d61cd(_0x40ba29[_0x38a9('0x7')]['start'])),_0x40ba29[_0x38a9('0x2')]=_0x38a9('0x8')+_0x40ba29['name'][_0x38a9('0x6')](':')[0x2],_0x1086fa[_0x38a9('0xd')][_0x38a9('0xf')](),_0x186126[_0x38a9('0x13')](_0x1f879d),_0x186126[_0x38a9('0x13')](_0x40ba29);}[_0x38a9('0x15')](_0x51f5e4){const _0x29a42d={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x38a9('0x9')][_0x38a9('0xc')](_0x38a9('0x14'))[_0x38a9('0xb')](_0x29a42d,[_0x51f5e4]),_0x29a42d[_0x38a9('0x5')][0x0];}[_0x38a9('0x3')](_0x5f350e){const _0x510c4d=[];return this[_0x38a9('0x9')][_0x38a9('0xc')](_0x38a9('0x14'))[_0x38a9('0x10')](_0x510c4d,_0x5f350e),_0x510c4d[0x0];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1d2d=['Position','Element','bool','uint32','string','repeated'];(function(_0x59cb25,_0x1d2de0){var _0x29df1f=function(_0xff3d4d){while(--_0xff3d4d){_0x59cb25['push'](_0x59cb25['shift']());}};_0x29df1f(++_0x1d2de0);}(_0x1d2d,0x1dd));var _0x29df=function(_0x59cb25,_0x1d2de0){_0x59cb25=_0x59cb25-0x0;var _0x29df1f=_0x1d2d[_0x59cb25];return _0x29df1f;};export default{'Position':{'fields':{'root':{'type':_0x29df('0x1'),'id':0x1},'rootMain':{'type':_0x29df('0x5'),'id':0x2},'rootGraveyard':{'type':'bool','id':0x3},'path':{'rule':_0x29df('0x2'),'type':_0x29df('0x0'),'id':0x4},'stickiness':{'type':_0x29df('0x1'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x29df('0x3'),'id':0x1},'end':{'type':_0x29df('0x3'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x29df('0x1'),'id':0x1},'children':{'rule':_0x29df('0x2'),'type':_0x29df('0x4'),'id':0x2},'data':{'type':_0x29df('0x1'),'id':0x3},'attributesBoolean':{'keyType':_0x29df('0x1'),'type':_0x29df('0x5'),'id':0x4},'attributesJson':{'type':_0x29df('0x1'),'id':0x5}}}};
|
package/src/compressor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f21=['CommentMarkerOperation','set','Element','MarkerOperation','types','suggestion','registerDescriptor','SuggestionMarkerOperation','DeletingAction','_compressorByName','SplitOperation','_protobufFactory','_registerCompressor','baseVersion','getDescriptor','forEach','MoveOperation','decompress','TypingAction','RenameOperation','comment','NoOperation','_registerActionCompressor','_getCompressorByName','AttributeOperation','RootAttributeOperation','__className','_registerOperationCompressor','description','UserSelectionAction','_compressorById','compress','ForwardDeletingAction','Position','length','get','MergeOperation','Range'];(function(_0x58cce4,_0x2f2146){const _0x4755e2=function(_0x4ffee5){while(--_0x4ffee5){_0x58cce4['push'](_0x58cce4['shift']());}};_0x4755e2(++_0x2f2146);}(_0x2f21,0x1d9));const _0x4755=function(_0x58cce4,_0x2f2146){_0x58cce4=_0x58cce4-0x0;let _0x4755e2=_0x2f21[_0x58cce4];return _0x4755e2;};import{CKEditorError as _0x40b607}from'ckeditor5/src/utils';import _0x147488 from'./protobuffactory';import _0xbdc173 from'./commondescriptions';import _0xd842a4 from'./operationcompressor/attributeoperationcompressor';import _0x1d465f from'./operationcompressor/insertoperationcompressor';import _0xe9dc33 from'./operationcompressor/markeroperationcompressor';import _0x34ef91 from'./operationcompressor/mergeoperationcompressor';import _0x1b6385 from'./operationcompressor/moveoperationcompressor';import _0x5b76cf from'./operationcompressor/renameoperationcompressor';import _0x4c812e from'./operationcompressor/rootattributeoperationcompressor';import _0x5a2c7c from'./operationcompressor/splitoperationcompressor';import _0xf021b5 from'./operationcompressor/nooperationcompressor';import _0x34872f from'./operationcompressor/annotationmarkeroperationcompressor';import _0x576b16 from'./actioncompressor/typingactioncompressor';import _0x45efa8 from'./actioncompressor/deletingactioncompressor';import _0xfae49 from'./actioncompressor/forwarddeletingactioncompressor';import _0x4e8cc2 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x4755('0xd')]=new Map(),this[_0x4755('0x1e')]=new Map(),this[_0x4755('0x20')]=new _0x147488(),this['_protobufFactory'][_0x4755('0x1b')]('Position',_0xbdc173[_0x4755('0x10')]),this[_0x4755('0x20')]['registerDescriptor'](_0x4755('0x14'),_0xbdc173[_0x4755('0x14')]),this['_protobufFactory'][_0x4755('0x1b')](_0x4755('0x17'),_0xbdc173[_0x4755('0x17')]),this['_protobufFactory'][_0x4755('0x1b')](_0x4755('0x7'),_0xd842a4[_0x4755('0xb')]),this[_0x4755('0x20')]['registerDescriptor']('InsertOperation',_0x1d465f[_0x4755('0xb')]),this[_0x4755('0x20')]['registerDescriptor'](_0x4755('0x18'),_0xe9dc33[_0x4755('0xb')]),this[_0x4755('0x20')]['registerDescriptor'](_0x4755('0x13'),_0x34ef91[_0x4755('0xb')]),this['_protobufFactory']['registerDescriptor'](_0x4755('0x25'),_0x1b6385['description']),this[_0x4755('0x20')][_0x4755('0x1b')](_0x4755('0x2'),_0x5b76cf[_0x4755('0xb')]),this[_0x4755('0x20')][_0x4755('0x1b')](_0x4755('0x8'),_0x4c812e['description']),this['_protobufFactory']['registerDescriptor'](_0x4755('0x1f'),_0x5a2c7c[_0x4755('0xb')]),this[_0x4755('0x20')]['build'](),this[_0x4755('0x21')](0x1,_0x4755('0x4'),new _0xf021b5(0x1,'NoOperation')),this['_registerOperationCompressor'](0xa,_0x4755('0x7'),_0xd842a4),this['_registerOperationCompressor'](0xb,'InsertOperation',_0x1d465f),this['_registerOperationCompressor'](0xc,'MarkerOperation',_0xe9dc33),this[_0x4755('0xa')](0xd,_0x4755('0x13'),_0x34ef91),this[_0x4755('0xa')](0xe,_0x4755('0x25'),_0x1b6385),this[_0x4755('0xa')](0xf,_0x4755('0x2'),_0x5b76cf),this[_0x4755('0xa')](0x10,_0x4755('0x8'),_0x4c812e),this[_0x4755('0xa')](0x11,_0x4755('0x1f'),_0x5a2c7c);const _0xa77273=this[_0x4755('0x20')][_0x4755('0x23')](_0x4755('0x18'));this[_0x4755('0x21')](0x12,'CommentMarkerOperation',new _0x34872f(0x12,_0x4755('0x18'),_0xa77273,_0x4755('0x3'))),this[_0x4755('0x21')](0x13,_0x4755('0x1c'),new _0x34872f(0x13,'MarkerOperation',_0xa77273,_0x4755('0x1a'))),this['_registerActionCompressor'](0x64,'TypingAction',_0x576b16),this[_0x4755('0x5')](0x65,'DeletingAction',_0x45efa8),this['_registerActionCompressor'](0x66,_0x4755('0xf'),_0xfae49),this[_0x4755('0x5')](0x67,_0x4755('0xc'),_0x4e8cc2);}[_0x4755('0xa')](_0x3cabdd,_0x14612f,_0x1c8b46){const _0x5127f3=new _0x1c8b46(_0x3cabdd,_0x14612f,this[_0x4755('0x20')][_0x4755('0x23')](_0x14612f));this[_0x4755('0x21')](_0x3cabdd,_0x14612f,_0x5127f3);}['_registerActionCompressor'](_0x31a3d2,_0x3b6321,_0x18e31f){const _0x961660=new _0x18e31f(_0x31a3d2,this);this[_0x4755('0x21')](_0x31a3d2,_0x3b6321,_0x961660);}[_0x4755('0x21')](_0x26d240,_0x892c7d,_0x104760){this[_0x4755('0xd')]['set'](_0x26d240,_0x104760),this[_0x4755('0x1e')][_0x4755('0x16')](_0x892c7d,_0x104760);}['_getCompressorByName'](_0x1935bf){return this[_0x4755('0x1e')][_0x4755('0x12')](_0x1935bf);}['compress'](_0x392fcb){if(!_0x392fcb||!_0x392fcb[0x0])throw new _0x40b607('no-operations-provided',this);const _0x41bc70={'types':[],'buffers':[],'baseVersion':_0x392fcb[0x0][_0x4755('0x22')]};for(;_0x392fcb[_0x4755('0x11')];)this[_0x4755('0x6')](_0x4755('0xc'))['compress'](_0x41bc70,_0x392fcb)||this['_getCompressorByName'](_0x4755('0x1'))[_0x4755('0xe')](_0x41bc70,_0x392fcb)||this['_getCompressorByName'](_0x4755('0x1d'))['compress'](_0x41bc70,_0x392fcb)||this[_0x4755('0x6')]('ForwardDeletingAction')[_0x4755('0xe')](_0x41bc70,_0x392fcb)||this[_0x4755('0x6')](_0x4755('0x15'))['compress'](_0x41bc70,_0x392fcb)||this['_getCompressorByName'](_0x4755('0x1c'))[_0x4755('0xe')](_0x41bc70,_0x392fcb)||this[_0x4755('0x6')](_0x392fcb[0x0][_0x4755('0x9')])[_0x4755('0xe')](_0x41bc70,_0x392fcb);return _0x41bc70;}[_0x4755('0x0')](_0xa918ed){const _0x1f9ddc=[];for(;_0xa918ed[_0x4755('0x19')][_0x4755('0x11')];){this[_0x4755('0xd')][_0x4755('0x12')](_0xa918ed['types'][0x0])[_0x4755('0x0')](_0x1f9ddc,_0xa918ed);}return _0x1f9ddc[_0x4755('0x24')]((_0x13fecb,_0x1d8ea6)=>_0x13fecb[_0x4755('0x22')]=_0xa918ed[_0x4755('0x22')]+_0x1d8ea6),_0x1f9ddc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e01=['compress','MarkerOperation','decompress','length','_omittedNamespace','replace','__className','startsWith','name'];(function(_0x35212f,_0x2e0134){const _0x4c2228=function(_0x36bd81){while(--_0x36bd81){_0x35212f['push'](_0x35212f['shift']());}};_0x4c2228(++_0x2e0134);}(_0x2e01,0x143));const _0x4c22=function(_0x35212f,_0x2e0134){_0x35212f=_0x35212f-0x0;let _0x4c2228=_0x2e01[_0x35212f];return _0x4c2228;};import _0x6df5b7 from'./markeroperationcompressor';export default class O extends _0x6df5b7{constructor(_0x39eb18,_0x540c5e,_0x22a8c5,_0x1d8a44){super(_0x39eb18,_0x540c5e,_0x22a8c5),this[_0x4c22('0x5')]=_0x1d8a44+':';}[_0x4c22('0x1')](_0x4bfe00,_0x55624b){return!(_0x4c22('0x2')!=_0x55624b[0x0][_0x4c22('0x7')]||!_0x55624b[0x0][_0x4c22('0x0')][_0x4c22('0x8')](this[_0x4c22('0x5')]))&&(_0x55624b[0x0][_0x4c22('0x0')]=_0x55624b[0x0][_0x4c22('0x0')][_0x4c22('0x6')](new RegExp('^'+this['_omittedNamespace']),''),super[_0x4c22('0x1')](_0x4bfe00,_0x55624b),!0x0);}[_0x4c22('0x3')](_0x5cafb9,_0x4eb8f9){super[_0x4c22('0x3')](_0x5cafb9,_0x4eb8f9);const _0xf7b77d=_0x5cafb9[_0x5cafb9[_0x4c22('0x4')]-0x1];_0xf7b77d[_0x4c22('0x0')]=this[_0x4c22('0x5')]+_0xf7b77d[_0x4c22('0x0')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f86=['operationName','bool','string','types','_protobufDescriptor','description','decompress','newValue','shift','boolean','Json','buffers','push','oldValue','compress','Boolean','__className','Range','parse'];(function(_0x613195,_0x4f86f7){const _0x1041f3=function(_0x31e28c){while(--_0x31e28c){_0x613195['push'](_0x613195['shift']());}};_0x1041f3(++_0x4f86f7);}(_0x4f86,0x7d));const _0x1041=function(_0x613195,_0x4f86f7){_0x613195=_0x613195-0x0;let _0x1041f3=_0x4f86[_0x613195];return _0x1041f3;};import _0x296d20 from'./operationcompressor';import{parsePositionBeforeCompression as _0x100f1f,parsePositionAfterCompression as _0x3f21b9}from'../utils';export default class i extends _0x296d20{static get[_0x1041('0xd')](){return{'fields':{'range':{'type':_0x1041('0x6'),'id':0x1},'key':{'type':_0x1041('0xa'),'id':0x2},'oldValueBoolean':{'type':_0x1041('0x9'),'id':0x3},'oldValueJson':{'type':'string','id':0x4},'newValueBoolean':{'type':_0x1041('0x9'),'id':0x5},'newValueJson':{'type':_0x1041('0xa'),'id':0x6},'wasUndone':{'type':_0x1041('0x9'),'id':0x7}}};}[_0x1041('0x3')](_0x2727cb,_0x89ded1){const _0x531697=_0x89ded1[_0x1041('0x10')]();$(_0x1041('0x2'),_0x531697),$(_0x1041('0xf'),_0x531697),_0x100f1f(_0x531697),_0x2727cb[_0x1041('0x0')][_0x1041('0x1')](this[_0x1041('0xc')][_0x1041('0x3')](_0x531697)),_0x2727cb[_0x1041('0xb')][_0x1041('0x1')](this['id']);}[_0x1041('0xe')](_0x34f91d,_0x790e6e){const {types:_0x4b1f5d,buffers:_0xccea72}=_0x790e6e,_0x58350d=this['_protobufDescriptor'][_0x1041('0xe')](_0xccea72[_0x1041('0x10')]());_0x4b1f5d[_0x1041('0x10')](),N('oldValue',_0x58350d),N('newValue',_0x58350d),_0x3f21b9(_0x58350d),_0x58350d[_0x1041('0x5')]=this[_0x1041('0x8')],_0x34f91d[_0x1041('0x1')](_0x58350d);}}function $(_0x5caf69,_0x3e02ed){const _0x4c75b1=_0x3e02ed[_0x5caf69];_0x1041('0x11')==typeof _0x4c75b1?_0x3e02ed[_0x5caf69+'Boolean']=_0x4c75b1:_0x3e02ed[_0x5caf69+_0x1041('0x12')]=JSON['stringify'](_0x4c75b1);}function N(_0x54255a,_0x41ccac){const _0x47de17=_0x54255a+_0x1041('0x12');_0x41ccac[_0x47de17]?(_0x41ccac[_0x54255a]=JSON[_0x1041('0x7')](_0x41ccac[_0x47de17]),delete _0x41ccac[_0x47de17]):(_0x41ccac[_0x54255a]=_0x41ccac[_0x54255a+'Boolean'],delete _0x41ccac[_0x54255a+_0x1041('0x4')]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x155a=['__className','attributes','attributesJson','shift','stringify','boolean','description','buffers','push','compress','Position','types','keys','bool','decompress','operationName','children','Element','every','nodes','attributesBoolean'];(function(_0x286dc0,_0x155ae2){const _0x570f34=function(_0x335012){while(--_0x335012){_0x286dc0['push'](_0x286dc0['shift']());}};_0x570f34(++_0x155ae2);}(_0x155a,0x10d));const _0x570f=function(_0x286dc0,_0x155ae2){_0x286dc0=_0x286dc0-0x0;let _0x570f34=_0x155a[_0x286dc0];return _0x570f34;};import _0x8987d9 from'./operationcompressor';import{parsePositionBeforeCompression as _0x26efd3,parsePositionAfterCompression as _0x10f747}from'../utils';export default class s extends _0x8987d9{static get[_0x570f('0xa')](){return{'fields':{'position':{'type':_0x570f('0xe'),'id':0x1},'nodes':{'rule':'repeated','type':_0x570f('0x0'),'id':0x2},'shouldReceiveAttributes':{'type':_0x570f('0x11'),'id':0x3},'wasUndone':{'type':_0x570f('0x11'),'id':0x4}}};}[_0x570f('0xd')](_0x38c6bb,_0x5a3ab2){const _0x34df96=_0x5a3ab2[_0x570f('0x7')]();A(_0x34df96[_0x570f('0x2')]),_0x26efd3(_0x34df96),_0x38c6bb[_0x570f('0xb')][_0x570f('0xc')](this['_protobufDescriptor']['compress'](_0x34df96)),_0x38c6bb[_0x570f('0xf')][_0x570f('0xc')](this['id']);}[_0x570f('0x12')](_0x1b9275,_0x2d0026){const {types:_0xcd2b20,buffers:_0x67472a}=_0x2d0026,_0x35edc3=this['_protobufDescriptor'][_0x570f('0x12')](_0x67472a['shift']());_0xcd2b20[_0x570f('0x7')](),_0x35edc3[_0x570f('0x2')]||(_0x35edc3[_0x570f('0x2')]=[]),E(_0x35edc3[_0x570f('0x2')]),_0x10f747(_0x35edc3),_0x35edc3[_0x570f('0x4')]=this[_0x570f('0x13')],_0x1b9275[_0x570f('0xc')](_0x35edc3);}}function A(_0x14ee3f){for(const _0x1444be of _0x14ee3f){if(_0x1444be[_0x570f('0x5')]){const _0x3658a7=_0x1444be[_0x570f('0x5')];R(_0x3658a7)?_0x1444be['attributesBoolean']=_0x3658a7:_0x1444be[_0x570f('0x6')]=JSON[_0x570f('0x8')](_0x3658a7);}_0x1444be[_0x570f('0x14')]&&A(_0x1444be['children']);}}function E(_0x7ceb09){for(const _0x38c7eb of _0x7ceb09)(_0x38c7eb[_0x570f('0x3')]||_0x38c7eb[_0x570f('0x6')])&&(_0x38c7eb['attributesBoolean']?(_0x38c7eb[_0x570f('0x5')]=_0x38c7eb[_0x570f('0x3')],delete _0x38c7eb[_0x570f('0x3')]):(_0x38c7eb['attributes']=JSON['parse'](_0x38c7eb[_0x570f('0x6')]),delete _0x38c7eb['attributesJson'])),_0x38c7eb['children']&&E(_0x38c7eb[_0x570f('0x14')]);}function R(_0x5d369d){return Object[_0x570f('0x10')](_0x5d369d)[_0x570f('0x1')](_0x53c489=>_0x570f('0x9')==typeof _0x5d369d[_0x53c489]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f3d=['Range','bool','description','length','decompress','string'];(function(_0x47cbfd,_0x3f3d51){const _0x3711df=function(_0x2300aa){while(--_0x2300aa){_0x47cbfd['push'](_0x47cbfd['shift']());}};_0x3711df(++_0x3f3d51);}(_0x3f3d,0x191));const _0x3711=function(_0x47cbfd,_0x3f3d51){_0x47cbfd=_0x47cbfd-0x0;let _0x3711df=_0x3f3d[_0x47cbfd];return _0x3711df;};import _0x66ad99 from'./operationcompressor';export default class n extends _0x66ad99{static get[_0x3711('0x3')](){return{'fields':{'name':{'type':_0x3711('0x0'),'id':0x1},'oldRange':{'type':'Range','id':0x2},'newRange':{'type':_0x3711('0x1'),'id':0x3},'affectsData':{'type':_0x3711('0x2'),'id':0x4},'wasUndone':{'type':_0x3711('0x2'),'id':0x5}}};}['decompress'](_0x1d12f1,_0xaa736d){super[_0x3711('0x5')](_0x1d12f1,_0xaa736d);const _0x598bf6=_0x1d12f1[_0x1d12f1[_0x3711('0x4')]-0x1];_0x598bf6['oldRange']||(_0x598bf6['oldRange']=null),_0x598bf6['newRange']||(_0x598bf6['newRange']=null);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x573d=['bool','uint32','Position','description'];(function(_0x3e53a5,_0x573df5){var _0x15b6ac=function(_0x4e0e9d){while(--_0x4e0e9d){_0x3e53a5['push'](_0x3e53a5['shift']());}};_0x15b6ac(++_0x573df5);}(_0x573d,0x16a));var _0x15b6=function(_0x3e53a5,_0x573df5){_0x3e53a5=_0x3e53a5-0x0;var _0x15b6ac=_0x573d[_0x3e53a5];return _0x15b6ac;};import _0x51be83 from'./operationcompressor';export default class p extends _0x51be83{static get[_0x15b6('0x1')](){return{'fields':{'sourcePosition':{'type':_0x15b6('0x0'),'id':0x1},'targetPosition':{'type':'Position','id':0x2},'graveyardPosition':{'type':_0x15b6('0x0'),'id':0x3},'howMany':{'type':_0x15b6('0x3'),'id':0x4},'wasUndone':{'type':_0x15b6('0x2'),'id':0x5}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5124=['uint32','description','Position'];(function(_0xfcc35e,_0x512458){var _0x2e6683=function(_0x89649d){while(--_0x89649d){_0xfcc35e['push'](_0xfcc35e['shift']());}};_0x2e6683(++_0x512458);}(_0x5124,0xa6));var _0x2e66=function(_0xfcc35e,_0x512458){_0xfcc35e=_0xfcc35e-0x0;var _0x2e6683=_0x5124[_0xfcc35e];return _0x2e6683;};import _0x15db88 from'./operationcompressor';export default class m extends _0x15db88{static get[_0x2e66('0x0')](){return{'fields':{'sourcePosition':{'type':_0x2e66('0x1'),'id':0x1},'howMany':{'type':_0x2e66('0x2'),'id':0x2},'targetPosition':{'type':_0x2e66('0x1'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x7e0d=['shift','compress','push','types'];(function(_0x4b0721,_0x7e0dae){var _0x5a3c62=function(_0x2a387e){while(--_0x2a387e){_0x4b0721['push'](_0x4b0721['shift']());}};_0x5a3c62(++_0x7e0dae);}(_0x7e0d,0x77));var _0x5a3c=function(_0x4b0721,_0x7e0dae){_0x4b0721=_0x4b0721-0x0;var _0x5a3c62=_0x7e0d[_0x4b0721];return _0x5a3c62;};import _0x46fb3b from'./operationcompressor';export default class f extends _0x46fb3b{[_0x5a3c('0x2')](_0x1fa894,_0x5f0ec8){_0x5f0ec8[_0x5a3c('0x1')](),_0x1fa894[_0x5a3c('0x0')][_0x5a3c('0x3')](this['id']);}['decompress'](_0xe23fb2,_0x1645e5){_0x1645e5[_0x5a3c('0x0')][_0x5a3c('0x1')](),_0xe23fb2['push']({'__className':this['operationName']});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4858=['operationName','decompress','push','types','__className','compress','shift','buffers','_protobufDescriptor'];(function(_0x597334,_0x4858a0){const _0x193402=function(_0x4d308a){while(--_0x4d308a){_0x597334['push'](_0x597334['shift']());}};_0x193402(++_0x4858a0);}(_0x4858,0x1dc));const _0x1934=function(_0x597334,_0x4858a0){_0x597334=_0x597334-0x0;let _0x193402=_0x4858[_0x597334];return _0x193402;};import{parsePositionBeforeCompression as _0x5aecc7,parsePositionAfterCompression as _0x2371e1}from'../utils';export default class V{constructor(_0x17e471,_0x37299c,_0x3823ec){this['id']=_0x17e471,this[_0x1934('0x1')]=_0x37299c,this['_protobufDescriptor']=_0x3823ec;}[_0x1934('0x6')](_0x129c99,_0x1ab319){const _0x3bae3a=_0x1ab319[_0x1934('0x7')]();_0x5aecc7(_0x3bae3a),_0x129c99[_0x1934('0x8')][_0x1934('0x3')](this[_0x1934('0x0')][_0x1934('0x6')](_0x3bae3a)),_0x129c99[_0x1934('0x4')][_0x1934('0x3')](this['id']);}[_0x1934('0x2')](_0x4e3f2c,_0x598704){_0x598704[_0x1934('0x4')][_0x1934('0x7')]();const _0xa4d464=this[_0x1934('0x0')]['decompress'](_0x598704[_0x1934('0x8')]['shift']());_0x2371e1(_0xa4d464),_0xa4d464[_0x1934('0x5')]=this['operationName'],_0x4e3f2c[_0x1934('0x3')](_0xa4d464);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2946=['description','string','Position'];(function(_0x36e51b,_0x2946d5){var _0x2e37a3=function(_0x6aed10){while(--_0x6aed10){_0x36e51b['push'](_0x36e51b['shift']());}};_0x2e37a3(++_0x2946d5);}(_0x2946,0x14a));var _0x2e37=function(_0x36e51b,_0x2946d5){_0x36e51b=_0x36e51b-0x0;var _0x2e37a3=_0x2946[_0x36e51b];return _0x2e37a3;};import _0x2a074e from'./operationcompressor';export default class a extends _0x2a074e{static get[_0x2e37('0x0')](){return{'fields':{'position':{'type':_0x2e37('0x2'),'id':0x1},'oldName':{'type':_0x2e37('0x1'),'id':0x2},'newName':{'type':_0x2e37('0x1'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfea0=['string','root','fields'];(function(_0x504cc4,_0xfea0cb){const _0x5f5098=function(_0x4dc6ac){while(--_0x4dc6ac){_0x504cc4['push'](_0x504cc4['shift']());}};_0x5f5098(++_0xfea0cb);}(_0xfea0,0x1b5));const _0x5f50=function(_0x504cc4,_0xfea0cb){_0x504cc4=_0x504cc4-0x0;let _0x5f5098=_0xfea0[_0x504cc4];return _0x5f5098;};import _0x51d300 from'./attributeoperationcompressor';export default class c extends _0x51d300{static get['description'](){const _0x535326=_0x51d300['description'];return delete _0x535326[_0x5f50('0x0')]['range'],_0x535326[_0x5f50('0x0')][_0x5f50('0x2')]={'type':_0x5f50('0x1'),'id':0x1},_0x535326;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4ad9=['Position'];(function(_0x14b26d,_0x4ad9c1){var _0xdbaef3=function(_0x2bf752){while(--_0x2bf752){_0x14b26d['push'](_0x14b26d['shift']());}};_0xdbaef3(++_0x4ad9c1);}(_0x4ad9,0xba));var _0xdbae=function(_0x14b26d,_0x4ad9c1){_0x14b26d=_0x14b26d-0x0;var _0xdbaef3=_0x4ad9[_0x14b26d];return _0xdbaef3;};import _0x3572a4 from'./operationcompressor';export default class h extends _0x3572a4{static get['description'](){return{'fields':{'splitPosition':{'type':'Position','id':0x1},'graveyardPosition':{'type':_0xdbae('0x0'),'id':0x2},'howMany':{'type':'uint32','id':0x3},'insertionPosition':{'type':_0xdbae('0x0'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e43=['build','finish','getDescriptor','create','_protobuf','verify','registerDescriptor','toObject','_protobufRoot','decode','encode','nested','_description','fromJSON'];(function(_0x232d90,_0x4e43a2){const _0x4432ee=function(_0x1b16fd){while(--_0x1b16fd){_0x232d90['push'](_0x232d90['shift']());}};_0x4432ee(++_0x4e43a2);}(_0x4e43,0xf7));const _0x4432=function(_0x232d90,_0x4e43a2){_0x232d90=_0x232d90-0x0;let _0x4432ee=_0x4e43[_0x232d90];return _0x4432ee;};import _0x4f3960 from'protobufjs/light';import{CKEditorError as _0x7a76e9}from'ckeditor5/src/utils';import{cloneDeep as _0x59b54e}from'lodash-es';export default class r{constructor(){this[_0x4432('0x3')]={'nested':{}};}[_0x4432('0xb')](_0x55ca5f,_0x589a40){this[_0x4432('0x3')][_0x4432('0x2')][_0x55ca5f]=_0x59b54e(_0x589a40);}[_0x4432('0x5')](){this[_0x4432('0xd')]=_0x4f3960['Root'][_0x4432('0x4')](this[_0x4432('0x3')]);}[_0x4432('0x7')](_0x500cc4){if(!this[_0x4432('0xd')])throw new _0x7a76e9('protobuffactory-cannot-get-descriptor-before-build',this);return new D(this[_0x4432('0xd')]['lookupType'](_0x500cc4));}}class D{constructor(_0x542cc7){this[_0x4432('0x9')]=_0x542cc7;}['compress'](_0xb1e5aa){const _0x8f42a5=this[_0x4432('0x9')][_0x4432('0xa')](_0xb1e5aa);if(_0x8f42a5)throw Error(_0x8f42a5);return this[_0x4432('0x9')][_0x4432('0x1')](this['_protobuf'][_0x4432('0x8')](_0xb1e5aa))[_0x4432('0x6')]();}['decompress'](_0x5200b4){return this['_protobuf'][_0x4432('0xc')](this['_protobuf'][_0x4432('0x0')](_0x5200b4),{'oneofs':!0x0});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a4d=['nodes','main','rootGraveyard','length','root','rootMain','$graveyard','path'];(function(_0x1289cd,_0x1a4d23){const _0x4619f4=function(_0x25fe08){while(--_0x25fe08){_0x1289cd['push'](_0x1289cd['shift']());}};_0x4619f4(++_0x1a4d23);}(_0x1a4d,0xb1));const _0x4619=function(_0x1289cd,_0x1a4d23){_0x1289cd=_0x1289cd-0x0;let _0x4619f4=_0x1a4d[_0x1289cd];return _0x4619f4;};import{cloneDeep as _0x3c8dc6,isEqual as _0x34bf55,isObject as _0x2ecfd4}from'lodash-es';export function getPositionShiftedBy(_0x403a2c,_0x4d657e){const _0x281a8f=_0x3c8dc6(_0x403a2c);return _0x281a8f['path'][_0x281a8f[_0x4619('0x6')][_0x4619('0x2')]-0x1]+=_0x4d657e,_0x281a8f;}export function arePositionsEqual(_0x26ee04,_0xb0e5f4){return _0x26ee04['root']===_0xb0e5f4[_0x4619('0x3')]&&_0x34bf55(_0x26ee04[_0x4619('0x6')],_0xb0e5f4[_0x4619('0x6')]);}export function parsePositionBeforeCompression(_0x1d0707){y(_0x1d0707,_0x2f09f3=>('main'==_0x2f09f3[_0x4619('0x3')]?(_0x2f09f3['rootMain']=!0x0,delete _0x2f09f3[_0x4619('0x3')]):'$graveyard'==_0x2f09f3[_0x4619('0x3')]&&(_0x2f09f3[_0x4619('0x1')]=!0x0,delete _0x2f09f3[_0x4619('0x3')]),_0x2f09f3));}export function parsePositionAfterCompression(_0x33f88d){y(_0x33f88d,_0x34da8f=>(_0x34da8f[_0x4619('0x4')]?(_0x34da8f['root']=_0x4619('0x0'),delete _0x34da8f['rootMain']):_0x34da8f[_0x4619('0x1')]&&(_0x34da8f['root']=_0x4619('0x5'),delete _0x34da8f[_0x4619('0x1')]),_0x34da8f));}function y(_0x460f6a,_0xc28574){for(const _0xd86b77 in _0x460f6a){const _0x1c835b=_0x460f6a[_0xd86b77];_0x4619('0x7')!==_0xd86b77&&_0x2ecfd4(_0x1c835b)&&(_0x1c835b[_0x4619('0x6')]&&(_0x1c835b[_0x4619('0x3')]||_0x1c835b[_0x4619('0x4')]||_0x1c835b[_0x4619('0x1')])?_0x460f6a[_0xd86b77]=_0xc28574(_0x1c835b):y(_0x1c835b,_0xc28574));}return _0x460f6a;}
|