@ckeditor/ckeditor5-operations-compressor 35.3.2 → 36.0.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-operations-compressor",
3
- "version": "35.3.2",
3
+ "version": "36.0.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.3.2",
30
+ "ckeditor5": "^36.0.0",
31
31
  "lodash-es": "^4.17.11",
32
32
  "protobufjs": "^6.8.8"
33
33
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30d5=['_compressSingleOperation','shift','_context','_compareOperations','length','_combineNext','types','push','buffers','compress','_splitCurrent'];(function(_0x139379,_0x30d5ff){const _0x556531=function(_0x23e866){while(--_0x23e866){_0x139379['push'](_0x139379['shift']());}};_0x556531(++_0x30d5ff);}(_0x30d5,0xb6));const _0x5565=function(_0x139379,_0x30d5ff){_0x139379=_0x139379-0x0;let _0x556531=_0x30d5[_0x139379];return _0x556531;};import{cloneDeep as _0x3eef8f}from'lodash-es';export default class j{constructor(_0x21dc8a,_0xed85b7){this['id']=_0x21dc8a,this[_0x5565('0x7')]=_0xed85b7;}[_0x5565('0x3')](_0x1233ba,_0x5c7c53){let _0x2e2e62;for(;_0x5c7c53[_0x5565('0x9')]>0x1&&this[_0x5565('0x8')](_0x5c7c53[0x0],_0x5c7c53[0x1]);)_0x2e2e62?(_0x2e2e62=this[_0x5565('0xa')](_0x5c7c53['shift'](),_0x2e2e62),_0x1233ba['types'][_0x5565('0x1')](0x0)):(_0x2e2e62=_0x3eef8f(_0x5c7c53['shift']()),_0x1233ba[_0x5565('0x0')]['push'](this['id']));return!!_0x2e2e62&&(_0x2e2e62=this['_combineNext'](_0x5c7c53[_0x5565('0x6')](),_0x2e2e62),_0x1233ba[_0x5565('0x0')][_0x5565('0x1')](0x0),_0x1233ba[_0x5565('0x2')][_0x5565('0x1')](this[_0x5565('0x5')](_0x2e2e62)),!0x0);}['decompress'](_0x4a7150,_0x2a33f4){const _0x5ec096=this['_decompressSingleOperation'](_0x2a33f4);for(;0x0==_0x2a33f4[_0x5565('0x0')][0x0];)_0x2a33f4[_0x5565('0x0')][_0x5565('0x6')](),_0x4a7150[_0x5565('0x1')](this[_0x5565('0x4')](_0x5ec096));_0x4a7150[_0x5565('0x1')](_0x5ec096);}}
23
+ const _0x299b=['decompress','_combineNext','_decompressSingleOperation','_splitCurrent','_context','length','types','compress','push','_compressSingleOperation','_compareOperations','shift','buffers'];(function(_0x3a894c,_0x299bab){const _0x2a313d=function(_0x2db042){while(--_0x2db042){_0x3a894c['push'](_0x3a894c['shift']());}};_0x2a313d(++_0x299bab);}(_0x299b,0x15a));const _0x2a31=function(_0x3a894c,_0x299bab){_0x3a894c=_0x3a894c-0x0;let _0x2a313d=_0x299b[_0x3a894c];return _0x2a313d;};import{cloneDeep as _0x5c1935}from'lodash-es';export default class j{constructor(_0x35c0dd,_0x34c6b7){this['id']=_0x35c0dd,this[_0x2a31('0x9')]=_0x34c6b7;}[_0x2a31('0xc')](_0x1c3261,_0x29bed4){let _0x4c15f8;for(;_0x29bed4[_0x2a31('0xa')]>0x1&&this[_0x2a31('0x2')](_0x29bed4[0x0],_0x29bed4[0x1]);)_0x4c15f8?(_0x4c15f8=this[_0x2a31('0x6')](_0x29bed4[_0x2a31('0x3')](),_0x4c15f8),_0x1c3261[_0x2a31('0xb')][_0x2a31('0x0')](0x0)):(_0x4c15f8=_0x5c1935(_0x29bed4[_0x2a31('0x3')]()),_0x1c3261[_0x2a31('0xb')][_0x2a31('0x0')](this['id']));return!!_0x4c15f8&&(_0x4c15f8=this[_0x2a31('0x6')](_0x29bed4[_0x2a31('0x3')](),_0x4c15f8),_0x1c3261[_0x2a31('0xb')][_0x2a31('0x0')](0x0),_0x1c3261[_0x2a31('0x4')][_0x2a31('0x0')](this[_0x2a31('0x1')](_0x4c15f8)),!0x0);}[_0x2a31('0x5')](_0x1cfe20,_0x74aabd){const _0x17b0f8=this[_0x2a31('0x7')](_0x74aabd);for(;0x0==_0x74aabd['types'][0x0];)_0x74aabd['types'][_0x2a31('0x3')](),_0x1cfe20[_0x2a31('0x0')](this[_0x2a31('0x8')](_0x17b0f8));_0x1cfe20['push'](_0x17b0f8);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe340=['__className','_getCompressorByName','sourcePosition','_compressSingleOperation','MoveOperation','_combineNext','decompress','$graveyard','compress','howMany','targetPosition','buffers','root','wasUndone','_context','_splitCurrent'];(function(_0x440446,_0xe340c5){const _0x1bb8c7=function(_0x52951c){while(--_0x52951c){_0x440446['push'](_0x440446['shift']());}};_0x1bb8c7(++_0xe340c5);}(_0xe340,0x75));const _0x1bb8=function(_0x440446,_0xe340c5){_0x440446=_0x440446-0x0;let _0x1bb8c7=_0xe340[_0x440446];return _0x1bb8c7;};import _0x6eb898 from'./actioncompressor';import{arePositionsEqual as _0x38e106,getPositionShiftedBy as _0x20093a}from'../utils';import{cloneDeep as _0x1b215e}from'lodash-es';export default class u extends _0x6eb898{[_0x1bb8('0x0')](_0x1c84f3,_0x510a16){return _0x510a16[_0x1bb8('0x4')]++,_0x510a16['sourcePosition']=_0x1b215e(_0x1c84f3[_0x1bb8('0xd')]),_0x510a16;}[_0x1bb8('0xa')](_0x4f4eb8){const _0x37030d=_0x1b215e(_0x4f4eb8);return _0x4f4eb8[_0x1bb8('0x4')]--,_0x37030d[_0x1bb8('0x4')]=0x1,_0x37030d[_0x1bb8('0xd')]=_0x20093a(_0x37030d[_0x1bb8('0xd')],_0x4f4eb8['howMany']),_0x37030d;}['_compareOperations'](_0x40c1cf,_0x1b22b9){return!(!S(_0x40c1cf)||!S(_0x1b22b9))&&(_0x38e106(_0x20093a(_0x40c1cf[_0x1bb8('0xd')],-0x1),_0x1b22b9[_0x1bb8('0xd')])&&_0x38e106(_0x40c1cf[_0x1bb8('0x5')],_0x1b22b9[_0x1bb8('0x5')]));}[_0x1bb8('0xe')](_0x2be28c){const _0x2ed224={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1bb8('0x9')][_0x1bb8('0xc')](_0x1bb8('0xf'))[_0x1bb8('0x3')](_0x2ed224,[_0x2be28c]),_0x2ed224[_0x1bb8('0x6')][0x0];}['_decompressSingleOperation'](_0x4ded05){const _0x53c6ea=[];return this[_0x1bb8('0x9')]['_getCompressorByName']('MoveOperation')[_0x1bb8('0x1')](_0x53c6ea,_0x4ded05),_0x53c6ea[0x0];}}function S(_0x43762e){return _0x1bb8('0xf')==_0x43762e[_0x1bb8('0xb')]&&_0x1bb8('0x2')==_0x43762e[_0x1bb8('0x5')][_0x1bb8('0x7')]&&0x1==_0x43762e[_0x1bb8('0x4')]&&!_0x43762e[_0x1bb8('0x8')];}
23
+ const _0x2ffe=['_decompressSingleOperation','buffers','_context','howMany','sourcePosition','decompress','_compressSingleOperation','MoveOperation','_splitCurrent','_compareOperations','compress','targetPosition','$graveyard','_getCompressorByName','root'];(function(_0x5c4f9a,_0x2ffecb){const _0x5e0c4b=function(_0x3c9b5e){while(--_0x3c9b5e){_0x5c4f9a['push'](_0x5c4f9a['shift']());}};_0x5e0c4b(++_0x2ffecb);}(_0x2ffe,0x1e8));const _0x5e0c=function(_0x5c4f9a,_0x2ffecb){_0x5c4f9a=_0x5c4f9a-0x0;let _0x5e0c4b=_0x2ffe[_0x5c4f9a];return _0x5e0c4b;};import _0x4577ba from'./actioncompressor';import{arePositionsEqual as _0x368bcd,getPositionShiftedBy as _0x112606}from'../utils';import{cloneDeep as _0x1b188f}from'lodash-es';export default class u extends _0x4577ba{['_combineNext'](_0x5802be,_0x39f52f){return _0x39f52f[_0x5e0c('0xa')]++,_0x39f52f['sourcePosition']=_0x1b188f(_0x5802be[_0x5e0c('0xb')]),_0x39f52f;}[_0x5e0c('0x0')](_0x4bf61f){const _0x14ad07=_0x1b188f(_0x4bf61f);return _0x4bf61f[_0x5e0c('0xa')]--,_0x14ad07[_0x5e0c('0xa')]=0x1,_0x14ad07[_0x5e0c('0xb')]=_0x112606(_0x14ad07[_0x5e0c('0xb')],_0x4bf61f[_0x5e0c('0xa')]),_0x14ad07;}[_0x5e0c('0x1')](_0xdbca8c,_0x436660){return!(!S(_0xdbca8c)||!S(_0x436660))&&(_0x368bcd(_0x112606(_0xdbca8c[_0x5e0c('0xb')],-0x1),_0x436660[_0x5e0c('0xb')])&&_0x368bcd(_0xdbca8c[_0x5e0c('0x3')],_0x436660[_0x5e0c('0x3')]));}[_0x5e0c('0xd')](_0x337750){const _0x5c8fc3={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x5e0c('0x9')][_0x5e0c('0x5')]('MoveOperation')[_0x5e0c('0x2')](_0x5c8fc3,[_0x337750]),_0x5c8fc3[_0x5e0c('0x8')][0x0];}[_0x5e0c('0x7')](_0x534dc7){const _0x4f0bef=[];return this[_0x5e0c('0x9')][_0x5e0c('0x5')]('MoveOperation')[_0x5e0c('0xc')](_0x4f0bef,_0x534dc7),_0x4f0bef[0x0];}}function S(_0x52af66){return _0x5e0c('0xe')==_0x52af66['__className']&&_0x5e0c('0x4')==_0x52af66[_0x5e0c('0x3')][_0x5e0c('0x6')]&&0x1==_0x52af66[_0x5e0c('0xa')]&&!_0x52af66['wasUndone'];}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32e9=['MoveOperation','buffers','sourcePosition','$graveyard','root','_combineNext','_splitCurrent','_decompressSingleOperation','_getCompressorByName','targetPosition','decompress','_compressSingleOperation','howMany','_compareOperations','wasUndone','_context'];(function(_0xe7042f,_0x32e905){const _0x342c88=function(_0x3613b5){while(--_0x3613b5){_0xe7042f['push'](_0xe7042f['shift']());}};_0x342c88(++_0x32e905);}(_0x32e9,0xa0));const _0x342c=function(_0xe7042f,_0x32e905){_0xe7042f=_0xe7042f-0x0;let _0x342c88=_0x32e9[_0xe7042f];return _0x342c88;};import _0x25e64e from'./actioncompressor';import{arePositionsEqual as _0x13e0a7}from'../utils';import{cloneDeep as _0x32ccfe}from'lodash-es';export default class l extends _0x25e64e{[_0x342c('0x5')](_0x1980e4,_0x5d51ac){return _0x5d51ac[_0x342c('0xc')]++,_0x5d51ac;}[_0x342c('0x6')](_0x833f9a){const _0x4a70a8=_0x32ccfe(_0x833f9a);return _0x4a70a8['howMany']=0x1,_0x833f9a['howMany']--,_0x4a70a8;}[_0x342c('0xd')](_0x80c6e7,_0x3b8929){return!(!S(_0x80c6e7)||!S(_0x3b8929))&&(_0x13e0a7(_0x80c6e7['sourcePosition'],_0x3b8929[_0x342c('0x2')])&&_0x13e0a7(_0x80c6e7['targetPosition'],_0x3b8929['targetPosition']));}[_0x342c('0xb')](_0x48dae3){const _0x4e5d13={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x342c('0xf')][_0x342c('0x8')](_0x342c('0x0'))['compress'](_0x4e5d13,[_0x48dae3]),_0x4e5d13[_0x342c('0x1')][0x0];}[_0x342c('0x7')](_0x3c4faf){const _0x284e42=[];return this[_0x342c('0xf')][_0x342c('0x8')](_0x342c('0x0'))[_0x342c('0xa')](_0x284e42,_0x3c4faf),_0x284e42[0x0];}}function S(_0x1fa47d){return _0x342c('0x0')==_0x1fa47d['__className']&&_0x342c('0x3')==_0x1fa47d[_0x342c('0x9')][_0x342c('0x4')]&&0x1==_0x1fa47d[_0x342c('0xc')]&&!_0x1fa47d[_0x342c('0xe')];}
23
+ const _0x2dff=['_getCompressorByName','decompress','_compressSingleOperation','MoveOperation','_splitCurrent','targetPosition','_context','root','__className','_decompressSingleOperation','buffers','sourcePosition','howMany','_combineNext','wasUndone'];(function(_0x2b22a4,_0x2dffda){const _0xae1e2b=function(_0x2c633d){while(--_0x2c633d){_0x2b22a4['push'](_0x2b22a4['shift']());}};_0xae1e2b(++_0x2dffda);}(_0x2dff,0x119));const _0xae1e=function(_0x2b22a4,_0x2dffda){_0x2b22a4=_0x2b22a4-0x0;let _0xae1e2b=_0x2dff[_0x2b22a4];return _0xae1e2b;};import _0x3f38c7 from'./actioncompressor';import{arePositionsEqual as _0x4ff2f2}from'../utils';import{cloneDeep as _0x2a409c}from'lodash-es';export default class l extends _0x3f38c7{[_0xae1e('0x2')](_0x54abfa,_0x285578){return _0x285578[_0xae1e('0x1')]++,_0x285578;}[_0xae1e('0x8')](_0x385147){const _0x526bac=_0x2a409c(_0x385147);return _0x526bac[_0xae1e('0x1')]=0x1,_0x385147[_0xae1e('0x1')]--,_0x526bac;}['_compareOperations'](_0x5f5ba2,_0x342271){return!(!S(_0x5f5ba2)||!S(_0x342271))&&(_0x4ff2f2(_0x5f5ba2[_0xae1e('0x0')],_0x342271[_0xae1e('0x0')])&&_0x4ff2f2(_0x5f5ba2[_0xae1e('0x9')],_0x342271[_0xae1e('0x9')]));}[_0xae1e('0x6')](_0x505f08){const _0x35633a={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0xae1e('0x4')](_0xae1e('0x7'))['compress'](_0x35633a,[_0x505f08]),_0x35633a[_0xae1e('0xe')][0x0];}[_0xae1e('0xd')](_0xe32b1b){const _0xaf2612=[];return this[_0xae1e('0xa')][_0xae1e('0x4')]('MoveOperation')[_0xae1e('0x5')](_0xaf2612,_0xe32b1b),_0xaf2612[0x0];}}function S(_0xef0c6e){return _0xae1e('0x7')==_0xef0c6e[_0xae1e('0xc')]&&'$graveyard'==_0xef0c6e['targetPosition'][_0xae1e('0xb')]&&0x1==_0xef0c6e[_0xae1e('0x1')]&&!_0xef0c6e[_0xae1e('0x3')];}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x307b=['length','_context','_compressSingleOperation','attributes','compress','every','keys','data','_splitCurrent','buffers','substr','_combineNext','value','wasUndone','_getCompressorByName','InsertOperation','position','from','decompress','__className','iterator','nodes'];(function(_0x1bddb9,_0x307b2a){const _0x191bda=function(_0x11e0a3){while(--_0x11e0a3){_0x1bddb9['push'](_0x1bddb9['shift']());}};_0x191bda(++_0x307b2a);}(_0x307b,0xd9));const _0x191b=function(_0x1bddb9,_0x307b2a){_0x1bddb9=_0x1bddb9-0x0;let _0x191bda=_0x307b[_0x1bddb9];return _0x191bda;};import _0x1ef11e from'./actioncompressor';import{arePositionsEqual as _0x405a96,getPositionShiftedBy as _0xe97ee5}from'../utils';import{cloneDeep as _0x400f0b}from'lodash-es';export default class g extends _0x1ef11e{[_0x191b('0xe')](_0x47d954,_0x5d2c3e){return _0x5d2c3e[_0x191b('0x2')][0x0][_0x191b('0xa')]+=_0x47d954['nodes'][0x0]['data'],_0x5d2c3e;}[_0x191b('0xb')](_0x2658d4){const _0x119c06=_0x400f0b(_0x2658d4),_0x28679f=_0x119c06[_0x191b('0x2')][0x0],_0x5de018=_0x2658d4[_0x191b('0x2')][0x0],_0x19f804=_0x5de018[_0x191b('0xa')][Symbol[_0x191b('0x1')]]()['next']()[_0x191b('0xf')],_0x3e732b=_0x19f804[_0x191b('0x3')];return _0x28679f[_0x191b('0xa')]=_0x19f804,_0x5de018[_0x191b('0xa')]=_0x5de018[_0x191b('0xa')][_0x191b('0xd')](_0x3e732b),_0x2658d4['position']=_0xe97ee5(_0x2658d4[_0x191b('0x13')],_0x3e732b),_0x119c06;}['_compareOperations'](_0x25ecdb,_0x146579){if(S(_0x25ecdb)&&S(_0x146579)){const _0x285540=_0x25ecdb['nodes'][0x0]['data'][_0x191b('0x3')],_0x381a4c=_0x405a96(_0xe97ee5(_0x25ecdb[_0x191b('0x13')],_0x285540),_0x146579[_0x191b('0x13')]),_0x1b696c=_0x25ecdb[_0x191b('0x2')][0x0],_0x5533c5=_0x146579[_0x191b('0x2')][0x0];return _0x381a4c&&function(_0x42a981,_0xff34be){const _0x4ef6bf=Object[_0x191b('0x9')](_0x42a981[_0x191b('0x6')]||{}),_0xdc6870=Object['keys'](_0xff34be['attributes']||{});if(_0x4ef6bf['length']!==_0xdc6870[_0x191b('0x3')])return!0x1;return _0x4ef6bf[_0x191b('0x8')](_0x4aa082=>_0xff34be[_0x191b('0x6')][_0x4aa082]&&_0xff34be[_0x191b('0x6')][_0x4aa082]===_0x42a981[_0x191b('0x6')][_0x4aa082]);}(_0x1b696c,_0x5533c5);}return!0x1;}[_0x191b('0x5')](_0x490831){const _0x407ea6={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x191b('0x4')][_0x191b('0x11')](_0x191b('0x12'))[_0x191b('0x7')](_0x407ea6,[_0x490831]),_0x407ea6[_0x191b('0xc')][0x0];}['_decompressSingleOperation'](_0x2eb621){const _0x3cc0e8=[];return this[_0x191b('0x4')]['_getCompressorByName']('InsertOperation')[_0x191b('0x15')](_0x3cc0e8,_0x2eb621),_0x3cc0e8[0x0];}}function S(_0x43e39b){return _0x191b('0x12')==_0x43e39b[_0x191b('0x0')]&&0x1==_0x43e39b[_0x191b('0x2')][_0x191b('0x3')]&&_0x43e39b[_0x191b('0x2')][0x0][_0x191b('0xa')]&&!_0x43e39b[_0x191b('0x10')]&&0x1==Array[_0x191b('0x14')](_0x43e39b['nodes'][0x0][_0x191b('0xa')])[_0x191b('0x3')];}
23
+ const _0x4254=['nodes','next','value','_compareOperations','wasUndone','iterator','_splitCurrent','data','__className','_decompressSingleOperation','_combineNext','InsertOperation','_getCompressorByName','keys','length','_context','decompress','position','from','attributes'];(function(_0x15a653,_0x425454){const _0x30dd84=function(_0x36d687){while(--_0x36d687){_0x15a653['push'](_0x15a653['shift']());}};_0x30dd84(++_0x425454);}(_0x4254,0xbf));const _0x30dd=function(_0x15a653,_0x425454){_0x15a653=_0x15a653-0x0;let _0x30dd84=_0x4254[_0x15a653];return _0x30dd84;};import _0xebc114 from'./actioncompressor';import{arePositionsEqual as _0x4725a9,getPositionShiftedBy as _0x559d10}from'../utils';import{cloneDeep as _0xb7658e}from'lodash-es';export default class g extends _0xebc114{[_0x30dd('0x13')](_0x3195fd,_0x471c32){return _0x471c32[_0x30dd('0x9')][0x0][_0x30dd('0x10')]+=_0x3195fd[_0x30dd('0x9')][0x0][_0x30dd('0x10')],_0x471c32;}[_0x30dd('0xf')](_0xca4b92){const _0x4dbcee=_0xb7658e(_0xca4b92),_0x490719=_0x4dbcee[_0x30dd('0x9')][0x0],_0x5ef229=_0xca4b92['nodes'][0x0],_0x593eab=_0x5ef229[_0x30dd('0x10')][Symbol[_0x30dd('0xe')]]()[_0x30dd('0xa')]()[_0x30dd('0xb')],_0x134d10=_0x593eab['length'];return _0x490719[_0x30dd('0x10')]=_0x593eab,_0x5ef229[_0x30dd('0x10')]=_0x5ef229[_0x30dd('0x10')]['substr'](_0x134d10),_0xca4b92[_0x30dd('0x6')]=_0x559d10(_0xca4b92[_0x30dd('0x6')],_0x134d10),_0x4dbcee;}[_0x30dd('0xc')](_0x4dd982,_0xd25b57){if(S(_0x4dd982)&&S(_0xd25b57)){const _0x5056a3=_0x4dd982[_0x30dd('0x9')][0x0]['data'][_0x30dd('0x3')],_0x4486c2=_0x4725a9(_0x559d10(_0x4dd982[_0x30dd('0x6')],_0x5056a3),_0xd25b57[_0x30dd('0x6')]),_0x39abb1=_0x4dd982[_0x30dd('0x9')][0x0],_0x1dab7c=_0xd25b57['nodes'][0x0];return _0x4486c2&&function(_0x446bf9,_0x28c784){const _0x31b185=Object['keys'](_0x446bf9[_0x30dd('0x8')]||{}),_0x18fac8=Object[_0x30dd('0x2')](_0x28c784[_0x30dd('0x8')]||{});if(_0x31b185[_0x30dd('0x3')]!==_0x18fac8[_0x30dd('0x3')])return!0x1;return _0x31b185['every'](_0x37df8a=>_0x28c784[_0x30dd('0x8')][_0x37df8a]&&_0x28c784[_0x30dd('0x8')][_0x37df8a]===_0x446bf9['attributes'][_0x37df8a]);}(_0x39abb1,_0x1dab7c);}return!0x1;}['_compressSingleOperation'](_0x4eec51){const _0x251b7d={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x30dd('0x1')](_0x30dd('0x0'))['compress'](_0x251b7d,[_0x4eec51]),_0x251b7d['buffers'][0x0];}[_0x30dd('0x12')](_0x556ccf){const _0x4bfec4=[];return this[_0x30dd('0x4')][_0x30dd('0x1')](_0x30dd('0x0'))[_0x30dd('0x5')](_0x4bfec4,_0x556ccf),_0x4bfec4[0x0];}}function S(_0x40c478){return _0x30dd('0x0')==_0x40c478[_0x30dd('0x11')]&&0x1==_0x40c478[_0x30dd('0x9')][_0x30dd('0x3')]&&_0x40c478['nodes'][0x0][_0x30dd('0x10')]&&!_0x40c478[_0x30dd('0xd')]&&0x1==Array[_0x30dd('0x7')](_0x40c478[_0x30dd('0x9')][0x0][_0x30dd('0x10')])['length'];}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9dc8=['oldRange','_compressSingleOperation','decompress','shift','buffers','_context','user:','_decompressSingleOperation','toNone','newRange','end','push','user:position:','stickiness','__className','MarkerOperation','_getCompressorByName','types','start','split','name','startsWith','compress'];(function(_0x5caf76,_0x9dc819){const _0x47b7e4=function(_0x591d91){while(--_0x591d91){_0x5caf76['push'](_0x5caf76['shift']());}};_0x47b7e4(++_0x9dc819);}(_0x9dc8,0x1e9));const _0x47b7=function(_0x5caf76,_0x9dc819){_0x5caf76=_0x5caf76-0x0;let _0x47b7e4=_0x9dc8[_0x5caf76];return _0x47b7e4;};import _0x3dcb4f from'./actioncompressor';import{arePositionsEqual as _0x4b47be}from'../utils';import{cloneDeep as _0x1da5f7}from'lodash-es';export default class M extends _0x3dcb4f{['compress'](_0x272af8,_0x4ed65a){if(!function(_0x22c186,_0x2ff2e1){if(!_0x22c186||!_0x2ff2e1)return!0x1;if('MarkerOperation'!=_0x22c186['__className']||'MarkerOperation'!=_0x2ff2e1[_0x47b7('0x8')])return!0x1;if(_0x22c186['name'][_0x47b7('0xf')](_0x47b7('0x0'))&&_0x2ff2e1[_0x47b7('0xe')][_0x47b7('0xf')](_0x47b7('0x0'))&&_0x22c186[_0x47b7('0xe')]!=_0x2ff2e1[_0x47b7('0xe')])return!0x0;return!0x1;}(_0x4ed65a[0x0],_0x4ed65a[0x1]))return!0x1;const _0x2ac4d6=_0x4ed65a[_0x47b7('0x14')]();return _0x2ac4d6[_0x47b7('0x11')]=null,_0x2ac4d6[_0x47b7('0x3')]&&_0x4b47be(_0x2ac4d6['newRange'][_0x47b7('0xc')],_0x2ac4d6[_0x47b7('0x3')][_0x47b7('0x4')])&&(_0x2ac4d6[_0x47b7('0x3')][_0x47b7('0x4')]=null),_0x4ed65a['shift'](),_0x272af8['types']['push'](this['id']),_0x272af8[_0x47b7('0xb')][_0x47b7('0x5')](0x0),_0x272af8['buffers'][_0x47b7('0x5')](this['_compressSingleOperation'](_0x2ac4d6)),!0x0;}[_0x47b7('0x13')](_0x21041b,_0x508141){const _0x567127=this[_0x47b7('0x1')](_0x508141);_0x567127[_0x47b7('0x3')]&&!_0x567127['newRange'][_0x47b7('0x4')]&&(_0x567127['newRange'][_0x47b7('0x4')]=_0x1da5f7(_0x567127[_0x47b7('0x3')][_0x47b7('0xc')]));const _0x470c56=_0x1da5f7(_0x567127);_0x470c56[_0x47b7('0x3')]&&(_0x470c56[_0x47b7('0x3')][_0x47b7('0xc')][_0x47b7('0x7')]=_0x47b7('0x2'),_0x470c56[_0x47b7('0x3')][_0x47b7('0x4')]=_0x1da5f7(_0x470c56[_0x47b7('0x3')][_0x47b7('0xc')])),_0x470c56['name']=_0x47b7('0x6')+_0x470c56[_0x47b7('0xe')][_0x47b7('0xd')](':')[0x2],_0x508141[_0x47b7('0xb')][_0x47b7('0x14')](),_0x21041b[_0x47b7('0x5')](_0x567127),_0x21041b['push'](_0x470c56);}[_0x47b7('0x12')](_0x523bd9){const _0x3f1505={'types':[],'buffers':[],'baseVersion':0x0};return this['_context'][_0x47b7('0xa')]('MarkerOperation')[_0x47b7('0x10')](_0x3f1505,[_0x523bd9]),_0x3f1505[_0x47b7('0x15')][0x0];}['_decompressSingleOperation'](_0x28912c){const _0x2864f1=[];return this[_0x47b7('0x16')][_0x47b7('0xa')](_0x47b7('0x9'))[_0x47b7('0x13')](_0x2864f1,_0x28912c),_0x2864f1[0x0];}}
23
+ const _0x419e=['startsWith','start','_compressSingleOperation','decompress','MarkerOperation','_decompressSingleOperation','end','_context','oldRange','push','types','__className','user:position:','newRange','split','name','_getCompressorByName','buffers','compress','shift','stickiness'];(function(_0x18500b,_0x419eba){const _0x470702=function(_0x11209e){while(--_0x11209e){_0x18500b['push'](_0x18500b['shift']());}};_0x470702(++_0x419eba);}(_0x419e,0xca));const _0x4707=function(_0x18500b,_0x419eba){_0x18500b=_0x18500b-0x0;let _0x470702=_0x419e[_0x18500b];return _0x470702;};import _0x1af251 from'./actioncompressor';import{arePositionsEqual as _0xe15bea}from'../utils';import{cloneDeep as _0x11ac23}from'lodash-es';export default class M extends _0x1af251{[_0x4707('0x5')](_0x553661,_0xfba7c3){if(!function(_0x2c6ab9,_0x212aa7){if(!_0x2c6ab9||!_0x212aa7)return!0x1;if(_0x4707('0xc')!=_0x2c6ab9[_0x4707('0x13')]||_0x4707('0xc')!=_0x212aa7[_0x4707('0x13')])return!0x1;if(_0x2c6ab9[_0x4707('0x2')]['startsWith']('user:')&&_0x212aa7[_0x4707('0x2')][_0x4707('0x8')]('user:')&&_0x2c6ab9['name']!=_0x212aa7[_0x4707('0x2')])return!0x0;return!0x1;}(_0xfba7c3[0x0],_0xfba7c3[0x1]))return!0x1;const _0x56cbeb=_0xfba7c3[_0x4707('0x6')]();return _0x56cbeb[_0x4707('0x10')]=null,_0x56cbeb[_0x4707('0x0')]&&_0xe15bea(_0x56cbeb[_0x4707('0x0')][_0x4707('0x9')],_0x56cbeb['newRange']['end'])&&(_0x56cbeb['newRange'][_0x4707('0xe')]=null),_0xfba7c3[_0x4707('0x6')](),_0x553661[_0x4707('0x12')][_0x4707('0x11')](this['id']),_0x553661[_0x4707('0x12')][_0x4707('0x11')](0x0),_0x553661['buffers']['push'](this[_0x4707('0xa')](_0x56cbeb)),!0x0;}[_0x4707('0xb')](_0x4fe34b,_0x46a778){const _0x56bd15=this[_0x4707('0xd')](_0x46a778);_0x56bd15[_0x4707('0x0')]&&!_0x56bd15[_0x4707('0x0')][_0x4707('0xe')]&&(_0x56bd15[_0x4707('0x0')][_0x4707('0xe')]=_0x11ac23(_0x56bd15[_0x4707('0x0')][_0x4707('0x9')]));const _0x33c745=_0x11ac23(_0x56bd15);_0x33c745[_0x4707('0x0')]&&(_0x33c745[_0x4707('0x0')][_0x4707('0x9')][_0x4707('0x7')]='toNone',_0x33c745['newRange'][_0x4707('0xe')]=_0x11ac23(_0x33c745[_0x4707('0x0')][_0x4707('0x9')])),_0x33c745[_0x4707('0x2')]=_0x4707('0x14')+_0x33c745[_0x4707('0x2')][_0x4707('0x1')](':')[0x2],_0x46a778['types']['shift'](),_0x4fe34b[_0x4707('0x11')](_0x56bd15),_0x4fe34b[_0x4707('0x11')](_0x33c745);}[_0x4707('0xa')](_0x303132){const _0x338302={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x4707('0xf')][_0x4707('0x3')](_0x4707('0xc'))['compress'](_0x338302,[_0x303132]),_0x338302[_0x4707('0x4')][0x0];}[_0x4707('0xd')](_0x198d58){const _0x5e65fa=[];return this[_0x4707('0xf')][_0x4707('0x3')](_0x4707('0xc'))['decompress'](_0x5e65fa,_0x198d58),_0x5e65fa[0x0];}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1134=['Position','string','repeated','uint32','bool'];(function(_0x13fbdc,_0x1134d7){var _0x37adbe=function(_0x24c496){while(--_0x24c496){_0x13fbdc['push'](_0x13fbdc['shift']());}};_0x37adbe(++_0x1134d7);}(_0x1134,0xb7));var _0x37ad=function(_0x13fbdc,_0x1134d7){_0x13fbdc=_0x13fbdc-0x0;var _0x37adbe=_0x1134[_0x13fbdc];return _0x37adbe;};export default{'Position':{'fields':{'root':{'type':_0x37ad('0x3'),'id':0x1},'rootMain':{'type':_0x37ad('0x1'),'id':0x2},'rootGraveyard':{'type':'bool','id':0x3},'path':{'rule':_0x37ad('0x4'),'type':_0x37ad('0x0'),'id':0x4},'stickiness':{'type':'string','id':0x5}}},'Range':{'fields':{'start':{'type':_0x37ad('0x2'),'id':0x1},'end':{'type':_0x37ad('0x2'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x37ad('0x3'),'id':0x1},'children':{'rule':_0x37ad('0x4'),'type':'Element','id':0x2},'data':{'type':_0x37ad('0x3'),'id':0x3},'attributesBoolean':{'keyType':_0x37ad('0x3'),'type':_0x37ad('0x1'),'id':0x4},'attributesJson':{'type':_0x37ad('0x3'),'id':0x5}}}};
23
+ var _0x5146=['bool','Element','Position','string','repeated','uint32'];(function(_0x416d13,_0x514624){var _0x3cb075=function(_0xfdddab){while(--_0xfdddab){_0x416d13['push'](_0x416d13['shift']());}};_0x3cb075(++_0x514624);}(_0x5146,0x177));var _0x3cb0=function(_0x416d13,_0x514624){_0x416d13=_0x416d13-0x0;var _0x3cb075=_0x5146[_0x416d13];return _0x3cb075;};export default{'Position':{'fields':{'root':{'type':_0x3cb0('0x0'),'id':0x1},'rootMain':{'type':_0x3cb0('0x3'),'id':0x2},'rootGraveyard':{'type':_0x3cb0('0x3'),'id':0x3},'path':{'rule':_0x3cb0('0x1'),'type':_0x3cb0('0x2'),'id':0x4},'stickiness':{'type':'string','id':0x5}}},'Range':{'fields':{'start':{'type':'Position','id':0x1},'end':{'type':_0x3cb0('0x5'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x3cb0('0x0'),'id':0x1},'children':{'rule':_0x3cb0('0x1'),'type':_0x3cb0('0x4'),'id':0x2},'data':{'type':_0x3cb0('0x0'),'id':0x3},'attributesBoolean':{'keyType':_0x3cb0('0x0'),'type':_0x3cb0('0x3'),'id':0x4},'attributesJson':{'type':'string','id':0x5}}}};
package/src/compressor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa80a=['SplitOperation','registerDescriptor','Position','_protobufFactory','TypingAction','_compressorById','_compressorByName','DeletingAction','_registerCompressor','ForwardDeletingAction','decompress','no-operations-provided','set','__className','build','types','CommentMarkerOperation','RenameOperation','SuggestionMarkerOperation','UserSelectionAction','_registerOperationCompressor','baseVersion','AttributeOperation','compress','getDescriptor','Element','get','_registerActionCompressor','NoOperation','RootAttributeOperation','suggestion','MoveOperation','length','_getCompressorByName','MarkerOperation','description'];(function(_0x464c87,_0xa80a69){const _0x57b24d=function(_0xcdf516){while(--_0xcdf516){_0x464c87['push'](_0x464c87['shift']());}};_0x57b24d(++_0xa80a69);}(_0xa80a,0x18b));const _0x57b2=function(_0x464c87,_0xa80a69){_0x464c87=_0x464c87-0x0;let _0x57b24d=_0xa80a[_0x464c87];return _0x57b24d;};import{CKEditorError as _0x2a414d}from'ckeditor5/src/utils';import _0x1015e6 from'./protobuffactory';import _0x103ac9 from'./commondescriptions';import _0x547b0f from'./operationcompressor/attributeoperationcompressor';import _0x5e4a3f from'./operationcompressor/insertoperationcompressor';import _0x33e0c6 from'./operationcompressor/markeroperationcompressor';import _0x363e2c from'./operationcompressor/mergeoperationcompressor';import _0x34145c from'./operationcompressor/moveoperationcompressor';import _0x5827bf from'./operationcompressor/renameoperationcompressor';import _0x5221c5 from'./operationcompressor/rootattributeoperationcompressor';import _0x45257 from'./operationcompressor/splitoperationcompressor';import _0x4ade25 from'./operationcompressor/nooperationcompressor';import _0x4176c0 from'./operationcompressor/annotationmarkeroperationcompressor';import _0x3b21a6 from'./actioncompressor/typingactioncompressor';import _0x35d54f from'./actioncompressor/deletingactioncompressor';import _0x3c3ae2 from'./actioncompressor/forwarddeletingactioncompressor';import _0x4f4936 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x57b2('0x6')]=new Map(),this[_0x57b2('0x7')]=new Map(),this[_0x57b2('0x4')]=new _0x1015e6(),this[_0x57b2('0x4')][_0x57b2('0x2')](_0x57b2('0x3'),_0x103ac9[_0x57b2('0x3')]),this[_0x57b2('0x4')][_0x57b2('0x2')]('Range',_0x103ac9['Range']),this[_0x57b2('0x4')][_0x57b2('0x2')]('Element',_0x103ac9[_0x57b2('0x1a')]),this[_0x57b2('0x4')][_0x57b2('0x2')](_0x57b2('0x17'),_0x547b0f[_0x57b2('0x0')]),this['_protobufFactory'][_0x57b2('0x2')]('InsertOperation',_0x5e4a3f['description']),this['_protobufFactory'][_0x57b2('0x2')](_0x57b2('0x23'),_0x33e0c6[_0x57b2('0x0')]),this[_0x57b2('0x4')]['registerDescriptor']('MergeOperation',_0x363e2c['description']),this[_0x57b2('0x4')][_0x57b2('0x2')](_0x57b2('0x20'),_0x34145c[_0x57b2('0x0')]),this[_0x57b2('0x4')]['registerDescriptor']('RenameOperation',_0x5827bf[_0x57b2('0x0')]),this[_0x57b2('0x4')][_0x57b2('0x2')](_0x57b2('0x1e'),_0x5221c5[_0x57b2('0x0')]),this[_0x57b2('0x4')][_0x57b2('0x2')]('SplitOperation',_0x45257[_0x57b2('0x0')]),this[_0x57b2('0x4')][_0x57b2('0xf')](),this['_registerCompressor'](0x1,'NoOperation',new _0x4ade25(0x1,_0x57b2('0x1d'))),this[_0x57b2('0x15')](0xa,_0x57b2('0x17'),_0x547b0f),this[_0x57b2('0x15')](0xb,'InsertOperation',_0x5e4a3f),this[_0x57b2('0x15')](0xc,_0x57b2('0x23'),_0x33e0c6),this[_0x57b2('0x15')](0xd,'MergeOperation',_0x363e2c),this[_0x57b2('0x15')](0xe,_0x57b2('0x20'),_0x34145c),this['_registerOperationCompressor'](0xf,_0x57b2('0x12'),_0x5827bf),this[_0x57b2('0x15')](0x10,_0x57b2('0x1e'),_0x5221c5),this[_0x57b2('0x15')](0x11,_0x57b2('0x1'),_0x45257);const _0x12fd6a=this[_0x57b2('0x4')][_0x57b2('0x19')](_0x57b2('0x23'));this[_0x57b2('0x9')](0x12,_0x57b2('0x11'),new _0x4176c0(0x12,_0x57b2('0x23'),_0x12fd6a,'comment')),this['_registerCompressor'](0x13,_0x57b2('0x13'),new _0x4176c0(0x13,'MarkerOperation',_0x12fd6a,_0x57b2('0x1f'))),this['_registerActionCompressor'](0x64,_0x57b2('0x5'),_0x3b21a6),this[_0x57b2('0x1c')](0x65,'DeletingAction',_0x35d54f),this[_0x57b2('0x1c')](0x66,'ForwardDeletingAction',_0x3c3ae2),this[_0x57b2('0x1c')](0x67,_0x57b2('0x14'),_0x4f4936);}['_registerOperationCompressor'](_0x1611c6,_0x596c57,_0x2b3c74){const _0x1615c7=new _0x2b3c74(_0x1611c6,_0x596c57,this[_0x57b2('0x4')]['getDescriptor'](_0x596c57));this[_0x57b2('0x9')](_0x1611c6,_0x596c57,_0x1615c7);}[_0x57b2('0x1c')](_0x1b975d,_0x24e71d,_0x98cf0d){const _0x3e4f5b=new _0x98cf0d(_0x1b975d,this);this[_0x57b2('0x9')](_0x1b975d,_0x24e71d,_0x3e4f5b);}['_registerCompressor'](_0x514cfa,_0x3bfaa3,_0x295be3){this[_0x57b2('0x6')]['set'](_0x514cfa,_0x295be3),this[_0x57b2('0x7')][_0x57b2('0xd')](_0x3bfaa3,_0x295be3);}[_0x57b2('0x22')](_0x47669a){return this[_0x57b2('0x7')][_0x57b2('0x1b')](_0x47669a);}[_0x57b2('0x18')](_0x2245e1){if(!_0x2245e1||!_0x2245e1[0x0])throw new _0x2a414d(_0x57b2('0xc'),this);const _0x452569={'types':[],'buffers':[],'baseVersion':_0x2245e1[0x0][_0x57b2('0x16')]};for(;_0x2245e1[_0x57b2('0x21')];)this[_0x57b2('0x22')](_0x57b2('0x14'))['compress'](_0x452569,_0x2245e1)||this[_0x57b2('0x22')](_0x57b2('0x5'))[_0x57b2('0x18')](_0x452569,_0x2245e1)||this['_getCompressorByName'](_0x57b2('0x8'))['compress'](_0x452569,_0x2245e1)||this['_getCompressorByName'](_0x57b2('0xa'))['compress'](_0x452569,_0x2245e1)||this[_0x57b2('0x22')](_0x57b2('0x11'))['compress'](_0x452569,_0x2245e1)||this['_getCompressorByName']('SuggestionMarkerOperation')[_0x57b2('0x18')](_0x452569,_0x2245e1)||this[_0x57b2('0x22')](_0x2245e1[0x0][_0x57b2('0xe')])[_0x57b2('0x18')](_0x452569,_0x2245e1);return _0x452569;}[_0x57b2('0xb')](_0x486189){const _0x78dd90=[];for(;_0x486189[_0x57b2('0x10')][_0x57b2('0x21')];){this[_0x57b2('0x6')]['get'](_0x486189[_0x57b2('0x10')][0x0])[_0x57b2('0xb')](_0x78dd90,_0x486189);}return _0x78dd90['forEach']((_0xd90c3d,_0x396418)=>_0xd90c3d[_0x57b2('0x16')]=_0x486189[_0x57b2('0x16')]+_0x396418),_0x78dd90;}}
23
+ const _0x28f3=['__className','AttributeOperation','CommentMarkerOperation','comment','Position','NoOperation','DeletingAction','Range','description','MarkerOperation','forEach','TypingAction','Element','RenameOperation','MoveOperation','_registerCompressor','baseVersion','SplitOperation','types','RootAttributeOperation','MergeOperation','_compressorById','set','length','_registerActionCompressor','_compressorByName','registerDescriptor','decompress','get','_registerOperationCompressor','SuggestionMarkerOperation','ForwardDeletingAction','_getCompressorByName','no-operations-provided','compress','getDescriptor','build','UserSelectionAction','_protobufFactory'];(function(_0x38f0d0,_0x28f354){const _0x3c3b0c=function(_0x4acb84){while(--_0x4acb84){_0x38f0d0['push'](_0x38f0d0['shift']());}};_0x3c3b0c(++_0x28f354);}(_0x28f3,0x153));const _0x3c3b=function(_0x38f0d0,_0x28f354){_0x38f0d0=_0x38f0d0-0x0;let _0x3c3b0c=_0x28f3[_0x38f0d0];return _0x3c3b0c;};import{CKEditorError as _0x13ec08}from'ckeditor5/src/utils';import _0x2227bf from'./protobuffactory';import _0x2be7ed from'./commondescriptions';import _0x283d8d from'./operationcompressor/attributeoperationcompressor';import _0x4daf9b from'./operationcompressor/insertoperationcompressor';import _0x284750 from'./operationcompressor/markeroperationcompressor';import _0x4e9363 from'./operationcompressor/mergeoperationcompressor';import _0x3dc57c from'./operationcompressor/moveoperationcompressor';import _0x1c5815 from'./operationcompressor/renameoperationcompressor';import _0x339ddd from'./operationcompressor/rootattributeoperationcompressor';import _0x2a0b5f from'./operationcompressor/splitoperationcompressor';import _0x5b20b1 from'./operationcompressor/nooperationcompressor';import _0x27e724 from'./operationcompressor/annotationmarkeroperationcompressor';import _0x18c690 from'./actioncompressor/typingactioncompressor';import _0x3b386c from'./actioncompressor/deletingactioncompressor';import _0x547b75 from'./actioncompressor/forwarddeletingactioncompressor';import _0x4c5e89 from'./actioncompressor/userselectionactioncompressor';export default class w{constructor(){this[_0x3c3b('0x21')]=new Map(),this[_0x3c3b('0x25')]=new Map(),this[_0x3c3b('0xb')]=new _0x2227bf(),this[_0x3c3b('0xb')][_0x3c3b('0x26')](_0x3c3b('0x10'),_0x2be7ed['Position']),this[_0x3c3b('0xb')]['registerDescriptor'](_0x3c3b('0x13'),_0x2be7ed[_0x3c3b('0x13')]),this[_0x3c3b('0xb')][_0x3c3b('0x26')](_0x3c3b('0x18'),_0x2be7ed[_0x3c3b('0x18')]),this[_0x3c3b('0xb')][_0x3c3b('0x26')](_0x3c3b('0xd'),_0x283d8d['description']),this['_protobufFactory'][_0x3c3b('0x26')]('InsertOperation',_0x4daf9b[_0x3c3b('0x14')]),this[_0x3c3b('0xb')]['registerDescriptor'](_0x3c3b('0x15'),_0x284750['description']),this[_0x3c3b('0xb')]['registerDescriptor'](_0x3c3b('0x20'),_0x4e9363[_0x3c3b('0x14')]),this[_0x3c3b('0xb')]['registerDescriptor'](_0x3c3b('0x1a'),_0x3dc57c[_0x3c3b('0x14')]),this[_0x3c3b('0xb')][_0x3c3b('0x26')](_0x3c3b('0x19'),_0x1c5815['description']),this['_protobufFactory'][_0x3c3b('0x26')](_0x3c3b('0x1f'),_0x339ddd[_0x3c3b('0x14')]),this[_0x3c3b('0xb')][_0x3c3b('0x26')](_0x3c3b('0x1d'),_0x2a0b5f[_0x3c3b('0x14')]),this['_protobufFactory'][_0x3c3b('0x9')](),this[_0x3c3b('0x1b')](0x1,'NoOperation',new _0x5b20b1(0x1,_0x3c3b('0x11'))),this['_registerOperationCompressor'](0xa,_0x3c3b('0xd'),_0x283d8d),this[_0x3c3b('0x2')](0xb,'InsertOperation',_0x4daf9b),this[_0x3c3b('0x2')](0xc,_0x3c3b('0x15'),_0x284750),this[_0x3c3b('0x2')](0xd,_0x3c3b('0x20'),_0x4e9363),this['_registerOperationCompressor'](0xe,_0x3c3b('0x1a'),_0x3dc57c),this[_0x3c3b('0x2')](0xf,'RenameOperation',_0x1c5815),this[_0x3c3b('0x2')](0x10,_0x3c3b('0x1f'),_0x339ddd),this[_0x3c3b('0x2')](0x11,_0x3c3b('0x1d'),_0x2a0b5f);const _0x292709=this[_0x3c3b('0xb')][_0x3c3b('0x8')]('MarkerOperation');this[_0x3c3b('0x1b')](0x12,'CommentMarkerOperation',new _0x27e724(0x12,_0x3c3b('0x15'),_0x292709,_0x3c3b('0xf'))),this[_0x3c3b('0x1b')](0x13,_0x3c3b('0x3'),new _0x27e724(0x13,_0x3c3b('0x15'),_0x292709,'suggestion')),this['_registerActionCompressor'](0x64,_0x3c3b('0x17'),_0x18c690),this[_0x3c3b('0x24')](0x65,_0x3c3b('0x12'),_0x3b386c),this[_0x3c3b('0x24')](0x66,_0x3c3b('0x4'),_0x547b75),this[_0x3c3b('0x24')](0x67,_0x3c3b('0xa'),_0x4c5e89);}['_registerOperationCompressor'](_0x31f8e7,_0x55979e,_0x146f3e){const _0x30c815=new _0x146f3e(_0x31f8e7,_0x55979e,this['_protobufFactory'][_0x3c3b('0x8')](_0x55979e));this[_0x3c3b('0x1b')](_0x31f8e7,_0x55979e,_0x30c815);}[_0x3c3b('0x24')](_0x5f2322,_0x76af87,_0x40ebed){const _0x358618=new _0x40ebed(_0x5f2322,this);this['_registerCompressor'](_0x5f2322,_0x76af87,_0x358618);}[_0x3c3b('0x1b')](_0x5e8467,_0x54541b,_0x1d8cb2){this[_0x3c3b('0x21')]['set'](_0x5e8467,_0x1d8cb2),this[_0x3c3b('0x25')][_0x3c3b('0x22')](_0x54541b,_0x1d8cb2);}['_getCompressorByName'](_0x3f9e10){return this[_0x3c3b('0x25')][_0x3c3b('0x1')](_0x3f9e10);}[_0x3c3b('0x7')](_0x45b361){if(!_0x45b361||!_0x45b361[0x0])throw new _0x13ec08(_0x3c3b('0x6'),this);const _0x31340f={'types':[],'buffers':[],'baseVersion':_0x45b361[0x0][_0x3c3b('0x1c')]};for(;_0x45b361[_0x3c3b('0x23')];)this[_0x3c3b('0x5')]('UserSelectionAction')['compress'](_0x31340f,_0x45b361)||this[_0x3c3b('0x5')]('TypingAction')[_0x3c3b('0x7')](_0x31340f,_0x45b361)||this['_getCompressorByName'](_0x3c3b('0x12'))[_0x3c3b('0x7')](_0x31340f,_0x45b361)||this[_0x3c3b('0x5')](_0x3c3b('0x4'))[_0x3c3b('0x7')](_0x31340f,_0x45b361)||this[_0x3c3b('0x5')](_0x3c3b('0xe'))[_0x3c3b('0x7')](_0x31340f,_0x45b361)||this[_0x3c3b('0x5')]('SuggestionMarkerOperation')['compress'](_0x31340f,_0x45b361)||this[_0x3c3b('0x5')](_0x45b361[0x0][_0x3c3b('0xc')])[_0x3c3b('0x7')](_0x31340f,_0x45b361);return _0x31340f;}['decompress'](_0x5d2dbb){const _0x4f2e25=[];for(;_0x5d2dbb[_0x3c3b('0x1e')][_0x3c3b('0x23')];){this[_0x3c3b('0x21')]['get'](_0x5d2dbb[_0x3c3b('0x1e')][0x0])[_0x3c3b('0x0')](_0x4f2e25,_0x5d2dbb);}return _0x4f2e25[_0x3c3b('0x16')]((_0x1cbe31,_0x7b4d0f)=>_0x1cbe31[_0x3c3b('0x1c')]=_0x5d2dbb[_0x3c3b('0x1c')]+_0x7b4d0f),_0x4f2e25;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42ff=['__className','replace','name','compress','_omittedNamespace','length','decompress','startsWith'];(function(_0x158207,_0x42fff9){const _0x36f2fd=function(_0x367d35){while(--_0x367d35){_0x158207['push'](_0x158207['shift']());}};_0x36f2fd(++_0x42fff9);}(_0x42ff,0xbe));const _0x36f2=function(_0x158207,_0x42fff9){_0x158207=_0x158207-0x0;let _0x36f2fd=_0x42ff[_0x158207];return _0x36f2fd;};import _0x3e9426 from'./markeroperationcompressor';export default class O extends _0x3e9426{constructor(_0x494bb9,_0x182f2e,_0x1cfc29,_0xb6f8e7){super(_0x494bb9,_0x182f2e,_0x1cfc29),this[_0x36f2('0x6')]=_0xb6f8e7+':';}[_0x36f2('0x5')](_0x5474ab,_0x31efa1){return!('MarkerOperation'!=_0x31efa1[0x0][_0x36f2('0x2')]||!_0x31efa1[0x0]['name'][_0x36f2('0x1')](this['_omittedNamespace']))&&(_0x31efa1[0x0]['name']=_0x31efa1[0x0][_0x36f2('0x4')][_0x36f2('0x3')](new RegExp('^'+this[_0x36f2('0x6')]),''),super[_0x36f2('0x5')](_0x5474ab,_0x31efa1),!0x0);}[_0x36f2('0x0')](_0x1ba76d,_0x2400ab){super['decompress'](_0x1ba76d,_0x2400ab);const _0xe7f971=_0x1ba76d[_0x1ba76d[_0x36f2('0x7')]-0x1];_0xe7f971[_0x36f2('0x4')]=this[_0x36f2('0x6')]+_0xe7f971[_0x36f2('0x4')];}}
23
+ const _0x3818=['decompress','_omittedNamespace','name','length','compress','replace','MarkerOperation'];(function(_0x209094,_0x3818b7){const _0x4abfcf=function(_0x16147f){while(--_0x16147f){_0x209094['push'](_0x209094['shift']());}};_0x4abfcf(++_0x3818b7);}(_0x3818,0xec));const _0x4abf=function(_0x209094,_0x3818b7){_0x209094=_0x209094-0x0;let _0x4abfcf=_0x3818[_0x209094];return _0x4abfcf;};import _0x2edd9e from'./markeroperationcompressor';export default class O extends _0x2edd9e{constructor(_0x5665b5,_0x14ebfd,_0x436567,_0x487f96){super(_0x5665b5,_0x14ebfd,_0x436567),this[_0x4abf('0x3')]=_0x487f96+':';}[_0x4abf('0x6')](_0x457a2d,_0xa95bd4){return!(_0x4abf('0x1')!=_0xa95bd4[0x0]['__className']||!_0xa95bd4[0x0]['name']['startsWith'](this[_0x4abf('0x3')]))&&(_0xa95bd4[0x0][_0x4abf('0x4')]=_0xa95bd4[0x0]['name'][_0x4abf('0x0')](new RegExp('^'+this[_0x4abf('0x3')]),''),super[_0x4abf('0x6')](_0x457a2d,_0xa95bd4),!0x0);}[_0x4abf('0x2')](_0x222bb3,_0xa97bd2){super[_0x4abf('0x2')](_0x222bb3,_0xa97bd2);const _0x3d9b70=_0x222bb3[_0x222bb3[_0x4abf('0x5')]-0x1];_0x3d9b70[_0x4abf('0x4')]=this[_0x4abf('0x3')]+_0x3d9b70[_0x4abf('0x4')];}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13da=['bool','stringify','Json','push','compress','string','parse','boolean','__className','operationName','Boolean','buffers','description','Range','oldValue','shift','types','_protobufDescriptor','newValue'];(function(_0x53f922,_0x13daba){const _0xd66d=function(_0xabc416){while(--_0xabc416){_0x53f922['push'](_0x53f922['shift']());}};_0xd66d(++_0x13daba);}(_0x13da,0x1c5));const _0xd66d=function(_0x53f922,_0x13daba){_0x53f922=_0x53f922-0x0;let _0xabc416=_0x13da[_0x53f922];return _0xabc416;};import _0x15edd6 from'./operationcompressor';import{parsePositionBeforeCompression as _0x454336,parsePositionAfterCompression as _0x21de3f}from'../utils';export default class i extends _0x15edd6{static get[_0xd66d('0xf')](){return{'fields':{'range':{'type':_0xd66d('0x10'),'id':0x1},'key':{'type':_0xd66d('0x8'),'id':0x2},'oldValueBoolean':{'type':_0xd66d('0x3'),'id':0x3},'oldValueJson':{'type':_0xd66d('0x8'),'id':0x4},'newValueBoolean':{'type':'bool','id':0x5},'newValueJson':{'type':_0xd66d('0x8'),'id':0x6},'wasUndone':{'type':_0xd66d('0x3'),'id':0x7}}};}[_0xd66d('0x7')](_0x47c89e,_0x5182cf){const _0x269ab8=_0x5182cf[_0xd66d('0x12')]();$('oldValue',_0x269ab8),$(_0xd66d('0x2'),_0x269ab8),_0x454336(_0x269ab8),_0x47c89e[_0xd66d('0xe')][_0xd66d('0x6')](this[_0xd66d('0x1')][_0xd66d('0x7')](_0x269ab8)),_0x47c89e[_0xd66d('0x0')][_0xd66d('0x6')](this['id']);}['decompress'](_0x189a4b,_0x4163c4){const {types:_0x24ad2e,buffers:_0x463fab}=_0x4163c4,_0x4f7e65=this[_0xd66d('0x1')]['decompress'](_0x463fab[_0xd66d('0x12')]());_0x24ad2e[_0xd66d('0x12')](),N(_0xd66d('0x11'),_0x4f7e65),N(_0xd66d('0x2'),_0x4f7e65),_0x21de3f(_0x4f7e65),_0x4f7e65[_0xd66d('0xb')]=this[_0xd66d('0xc')],_0x189a4b[_0xd66d('0x6')](_0x4f7e65);}}function $(_0x4d4e33,_0x36ed83){const _0x42969a=_0x36ed83[_0x4d4e33];_0xd66d('0xa')==typeof _0x42969a?_0x36ed83[_0x4d4e33+_0xd66d('0xd')]=_0x42969a:_0x36ed83[_0x4d4e33+_0xd66d('0x5')]=JSON[_0xd66d('0x4')](_0x42969a);}function N(_0x5497a8,_0x408f92){const _0x2e8b32=_0x5497a8+'Json';_0x408f92[_0x2e8b32]?(_0x408f92[_0x5497a8]=JSON[_0xd66d('0x9')](_0x408f92[_0x2e8b32]),delete _0x408f92[_0x2e8b32]):(_0x408f92[_0x5497a8]=_0x408f92[_0x5497a8+_0xd66d('0xd')],delete _0x408f92[_0x5497a8+_0xd66d('0xd')]);}
23
+ const _0x511d=['decompress','oldValue','shift','string','_protobufDescriptor','compress','buffers','push','description','newValue','stringify','Range','Json','Boolean','types','parse','__className','bool','operationName'];(function(_0x46e9ed,_0x511d6e){const _0x26a96d=function(_0x1f5c2a){while(--_0x1f5c2a){_0x46e9ed['push'](_0x46e9ed['shift']());}};_0x26a96d(++_0x511d6e);}(_0x511d,0x18e));const _0x26a9=function(_0x46e9ed,_0x511d6e){_0x46e9ed=_0x46e9ed-0x0;let _0x26a96d=_0x511d[_0x46e9ed];return _0x26a96d;};import _0x234aad from'./operationcompressor';import{parsePositionBeforeCompression as _0x2f70c1,parsePositionAfterCompression as _0x1d3a45}from'../utils';export default class i extends _0x234aad{static get[_0x26a9('0x9')](){return{'fields':{'range':{'type':_0x26a9('0xc'),'id':0x1},'key':{'type':'string','id':0x2},'oldValueBoolean':{'type':_0x26a9('0x12'),'id':0x3},'oldValueJson':{'type':_0x26a9('0x4'),'id':0x4},'newValueBoolean':{'type':_0x26a9('0x12'),'id':0x5},'newValueJson':{'type':_0x26a9('0x4'),'id':0x6},'wasUndone':{'type':_0x26a9('0x12'),'id':0x7}}};}[_0x26a9('0x6')](_0x2df52d,_0x2c7cdb){const _0x2548e4=_0x2c7cdb[_0x26a9('0x3')]();$(_0x26a9('0x2'),_0x2548e4),$('newValue',_0x2548e4),_0x2f70c1(_0x2548e4),_0x2df52d[_0x26a9('0x7')][_0x26a9('0x8')](this[_0x26a9('0x5')][_0x26a9('0x6')](_0x2548e4)),_0x2df52d[_0x26a9('0xf')]['push'](this['id']);}[_0x26a9('0x1')](_0x4bb006,_0x51683b){const {types:_0x945c83,buffers:_0x345ee7}=_0x51683b,_0x4c5ab5=this[_0x26a9('0x5')][_0x26a9('0x1')](_0x345ee7[_0x26a9('0x3')]());_0x945c83['shift'](),N(_0x26a9('0x2'),_0x4c5ab5),N(_0x26a9('0xa'),_0x4c5ab5),_0x1d3a45(_0x4c5ab5),_0x4c5ab5[_0x26a9('0x11')]=this[_0x26a9('0x0')],_0x4bb006[_0x26a9('0x8')](_0x4c5ab5);}}function $(_0x21e311,_0x4de635){const _0x1ec2f0=_0x4de635[_0x21e311];'boolean'==typeof _0x1ec2f0?_0x4de635[_0x21e311+_0x26a9('0xe')]=_0x1ec2f0:_0x4de635[_0x21e311+'Json']=JSON[_0x26a9('0xb')](_0x1ec2f0);}function N(_0x23407e,_0x26cc2b){const _0xc11963=_0x23407e+_0x26a9('0xd');_0x26cc2b[_0xc11963]?(_0x26cc2b[_0x23407e]=JSON[_0x26a9('0x10')](_0x26cc2b[_0xc11963]),delete _0x26cc2b[_0xc11963]):(_0x26cc2b[_0x23407e]=_0x26cc2b[_0x23407e+_0x26a9('0xe')],delete _0x26cc2b[_0x23407e+'Boolean']);}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ce4=['parse','children','shift','_protobufDescriptor','attributesBoolean','stringify','keys','types','__className','compress','operationName','push','bool','decompress','description','attributesJson','attributes','Position','nodes','Element'];(function(_0xd82716,_0x3ce42b){const _0x1be79d=function(_0x2019c8){while(--_0x2019c8){_0xd82716['push'](_0xd82716['shift']());}};_0x1be79d(++_0x3ce42b);}(_0x3ce4,0x9c));const _0x1be7=function(_0xd82716,_0x3ce42b){_0xd82716=_0xd82716-0x0;let _0x1be79d=_0x3ce4[_0xd82716];return _0x1be79d;};import _0x50b049 from'./operationcompressor';import{parsePositionBeforeCompression as _0x2ae15a,parsePositionAfterCompression as _0x1a2147}from'../utils';export default class s extends _0x50b049{static get[_0x1be7('0x12')](){return{'fields':{'position':{'type':_0x1be7('0x1'),'id':0x1},'nodes':{'rule':'repeated','type':_0x1be7('0x3'),'id':0x2},'shouldReceiveAttributes':{'type':'bool','id':0x3},'wasUndone':{'type':_0x1be7('0x10'),'id':0x4}}};}[_0x1be7('0xd')](_0x2071ec,_0x502740){const _0x1fe994=_0x502740[_0x1be7('0x6')]();A(_0x1fe994[_0x1be7('0x2')]),_0x2ae15a(_0x1fe994),_0x2071ec['buffers'][_0x1be7('0xf')](this[_0x1be7('0x7')][_0x1be7('0xd')](_0x1fe994)),_0x2071ec[_0x1be7('0xb')][_0x1be7('0xf')](this['id']);}[_0x1be7('0x11')](_0x477760,_0x18e15f){const {types:_0x318564,buffers:_0x2315eb}=_0x18e15f,_0x292527=this[_0x1be7('0x7')][_0x1be7('0x11')](_0x2315eb['shift']());_0x318564['shift'](),_0x292527[_0x1be7('0x2')]||(_0x292527[_0x1be7('0x2')]=[]),E(_0x292527[_0x1be7('0x2')]),_0x1a2147(_0x292527),_0x292527[_0x1be7('0xc')]=this[_0x1be7('0xe')],_0x477760[_0x1be7('0xf')](_0x292527);}}function A(_0x3a97d1){for(const _0x10506f of _0x3a97d1){if(_0x10506f['attributes']){const _0x21fe92=_0x10506f[_0x1be7('0x0')];R(_0x21fe92)?_0x10506f[_0x1be7('0x8')]=_0x21fe92:_0x10506f[_0x1be7('0x13')]=JSON[_0x1be7('0x9')](_0x21fe92);}_0x10506f[_0x1be7('0x5')]&&A(_0x10506f[_0x1be7('0x5')]);}}function E(_0x5694ac){for(const _0x39d1ac of _0x5694ac)(_0x39d1ac[_0x1be7('0x8')]||_0x39d1ac[_0x1be7('0x13')])&&(_0x39d1ac['attributesBoolean']?(_0x39d1ac[_0x1be7('0x0')]=_0x39d1ac[_0x1be7('0x8')],delete _0x39d1ac['attributesBoolean']):(_0x39d1ac[_0x1be7('0x0')]=JSON[_0x1be7('0x4')](_0x39d1ac['attributesJson']),delete _0x39d1ac[_0x1be7('0x13')])),_0x39d1ac[_0x1be7('0x5')]&&E(_0x39d1ac[_0x1be7('0x5')]);}function R(_0x42268a){return Object[_0x1be7('0xa')](_0x42268a)['every'](_0x56ff3e=>'boolean'==typeof _0x42268a[_0x56ff3e]);}
23
+ const _0x525b=['attributesBoolean','decompress','__className','shift','attributes','attributesJson','description','_protobufDescriptor','types','children','Position','push','buffers','repeated','bool','compress','every','nodes','stringify'];(function(_0x2eb1c4,_0x525b97){const _0x349d87=function(_0x33e222){while(--_0x33e222){_0x2eb1c4['push'](_0x2eb1c4['shift']());}};_0x349d87(++_0x525b97);}(_0x525b,0x128));const _0x349d=function(_0x2eb1c4,_0x525b97){_0x2eb1c4=_0x2eb1c4-0x0;let _0x349d87=_0x525b[_0x2eb1c4];return _0x349d87;};import _0x41f27f from'./operationcompressor';import{parsePositionBeforeCompression as _0x204733,parsePositionAfterCompression as _0x5f775}from'../utils';export default class s extends _0x41f27f{static get[_0x349d('0xe')](){return{'fields':{'position':{'type':_0x349d('0x12'),'id':0x1},'nodes':{'rule':_0x349d('0x2'),'type':'Element','id':0x2},'shouldReceiveAttributes':{'type':_0x349d('0x3'),'id':0x3},'wasUndone':{'type':_0x349d('0x3'),'id':0x4}}};}[_0x349d('0x4')](_0x17f425,_0x458f13){const _0x33b8b0=_0x458f13[_0x349d('0xb')]();A(_0x33b8b0[_0x349d('0x6')]),_0x204733(_0x33b8b0),_0x17f425[_0x349d('0x1')][_0x349d('0x0')](this['_protobufDescriptor'][_0x349d('0x4')](_0x33b8b0)),_0x17f425[_0x349d('0x10')][_0x349d('0x0')](this['id']);}['decompress'](_0x29b99b,_0xf48bb4){const {types:_0x1e1fd8,buffers:_0x2b60ab}=_0xf48bb4,_0x5e0561=this[_0x349d('0xf')][_0x349d('0x9')](_0x2b60ab['shift']());_0x1e1fd8[_0x349d('0xb')](),_0x5e0561[_0x349d('0x6')]||(_0x5e0561[_0x349d('0x6')]=[]),E(_0x5e0561[_0x349d('0x6')]),_0x5f775(_0x5e0561),_0x5e0561[_0x349d('0xa')]=this['operationName'],_0x29b99b[_0x349d('0x0')](_0x5e0561);}}function A(_0x737de8){for(const _0x5ccc8c of _0x737de8){if(_0x5ccc8c[_0x349d('0xc')]){const _0x3e9eeb=_0x5ccc8c[_0x349d('0xc')];R(_0x3e9eeb)?_0x5ccc8c[_0x349d('0x8')]=_0x3e9eeb:_0x5ccc8c['attributesJson']=JSON[_0x349d('0x7')](_0x3e9eeb);}_0x5ccc8c[_0x349d('0x11')]&&A(_0x5ccc8c[_0x349d('0x11')]);}}function E(_0x13a58f){for(const _0x6a2fc of _0x13a58f)(_0x6a2fc[_0x349d('0x8')]||_0x6a2fc[_0x349d('0xd')])&&(_0x6a2fc[_0x349d('0x8')]?(_0x6a2fc[_0x349d('0xc')]=_0x6a2fc[_0x349d('0x8')],delete _0x6a2fc[_0x349d('0x8')]):(_0x6a2fc[_0x349d('0xc')]=JSON['parse'](_0x6a2fc[_0x349d('0xd')]),delete _0x6a2fc[_0x349d('0xd')])),_0x6a2fc[_0x349d('0x11')]&&E(_0x6a2fc[_0x349d('0x11')]);}function R(_0x47d943){return Object['keys'](_0x47d943)[_0x349d('0x5')](_0x38f0d4=>'boolean'==typeof _0x47d943[_0x38f0d4]);}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xab57=['bool','oldRange','newRange','Range','decompress','string'];(function(_0x528047,_0xab57b2){const _0x205d5b=function(_0x1b984a){while(--_0x1b984a){_0x528047['push'](_0x528047['shift']());}};_0x205d5b(++_0xab57b2);}(_0xab57,0x1be));const _0x205d=function(_0x528047,_0xab57b2){_0x528047=_0x528047-0x0;let _0x205d5b=_0xab57[_0x528047];return _0x205d5b;};import _0xc2e1c8 from'./operationcompressor';export default class n extends _0xc2e1c8{static get['description'](){return{'fields':{'name':{'type':_0x205d('0x3'),'id':0x1},'oldRange':{'type':_0x205d('0x1'),'id':0x2},'newRange':{'type':_0x205d('0x1'),'id':0x3},'affectsData':{'type':_0x205d('0x4'),'id':0x4},'wasUndone':{'type':_0x205d('0x4'),'id':0x5}}};}[_0x205d('0x2')](_0x36cdd5,_0x10701d){super[_0x205d('0x2')](_0x36cdd5,_0x10701d);const _0x5c2b5e=_0x36cdd5[_0x36cdd5['length']-0x1];_0x5c2b5e[_0x205d('0x5')]||(_0x5c2b5e['oldRange']=null),_0x5c2b5e['newRange']||(_0x5c2b5e[_0x205d('0x0')]=null);}}
23
+ const _0x4f7b=['Range','string','decompress','bool','newRange','description','oldRange'];(function(_0x3dc9c9,_0x4f7b1f){const _0x27ceee=function(_0x28dd4d){while(--_0x28dd4d){_0x3dc9c9['push'](_0x3dc9c9['shift']());}};_0x27ceee(++_0x4f7b1f);}(_0x4f7b,0x167));const _0x27ce=function(_0x3dc9c9,_0x4f7b1f){_0x3dc9c9=_0x3dc9c9-0x0;let _0x27ceee=_0x4f7b[_0x3dc9c9];return _0x27ceee;};import _0x253246 from'./operationcompressor';export default class n extends _0x253246{static get[_0x27ce('0x3')](){return{'fields':{'name':{'type':_0x27ce('0x6'),'id':0x1},'oldRange':{'type':_0x27ce('0x5'),'id':0x2},'newRange':{'type':_0x27ce('0x5'),'id':0x3},'affectsData':{'type':_0x27ce('0x1'),'id':0x4},'wasUndone':{'type':_0x27ce('0x1'),'id':0x5}}};}[_0x27ce('0x0')](_0x4bcda6,_0x1b43ec){super[_0x27ce('0x0')](_0x4bcda6,_0x1b43ec);const _0xc2adcd=_0x4bcda6[_0x4bcda6['length']-0x1];_0xc2adcd[_0x27ce('0x4')]||(_0xc2adcd[_0x27ce('0x4')]=null),_0xc2adcd[_0x27ce('0x2')]||(_0xc2adcd[_0x27ce('0x2')]=null);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3c3f=['description','Position','bool','uint32'];(function(_0x37e8d0,_0x3c3f9f){var _0x22fa16=function(_0x43c765){while(--_0x43c765){_0x37e8d0['push'](_0x37e8d0['shift']());}};_0x22fa16(++_0x3c3f9f);}(_0x3c3f,0x14f));var _0x22fa=function(_0x37e8d0,_0x3c3f9f){_0x37e8d0=_0x37e8d0-0x0;var _0x22fa16=_0x3c3f[_0x37e8d0];return _0x22fa16;};import _0x133730 from'./operationcompressor';export default class p extends _0x133730{static get[_0x22fa('0x1')](){return{'fields':{'sourcePosition':{'type':_0x22fa('0x2'),'id':0x1},'targetPosition':{'type':_0x22fa('0x2'),'id':0x2},'graveyardPosition':{'type':_0x22fa('0x2'),'id':0x3},'howMany':{'type':_0x22fa('0x0'),'id':0x4},'wasUndone':{'type':_0x22fa('0x3'),'id':0x5}}};}}
23
+ var _0x2bbc=['bool','uint32','Position','description'];(function(_0x3c2eb7,_0x2bbc0f){var _0x4c088e=function(_0x50dc76){while(--_0x50dc76){_0x3c2eb7['push'](_0x3c2eb7['shift']());}};_0x4c088e(++_0x2bbc0f);}(_0x2bbc,0x161));var _0x4c08=function(_0x3c2eb7,_0x2bbc0f){_0x3c2eb7=_0x3c2eb7-0x0;var _0x4c088e=_0x2bbc[_0x3c2eb7];return _0x4c088e;};import _0x2b8a35 from'./operationcompressor';export default class p extends _0x2b8a35{static get[_0x4c08('0x2')](){return{'fields':{'sourcePosition':{'type':'Position','id':0x1},'targetPosition':{'type':_0x4c08('0x1'),'id':0x2},'graveyardPosition':{'type':_0x4c08('0x1'),'id':0x3},'howMany':{'type':_0x4c08('0x0'),'id':0x4},'wasUndone':{'type':_0x4c08('0x3'),'id':0x5}}};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5a87=['bool'];(function(_0x1cb1e8,_0x5a87c8){var _0x2a4e8e=function(_0x1601a6){while(--_0x1601a6){_0x1cb1e8['push'](_0x1cb1e8['shift']());}};_0x2a4e8e(++_0x5a87c8);}(_0x5a87,0xdc));var _0x2a4e=function(_0x1cb1e8,_0x5a87c8){_0x1cb1e8=_0x1cb1e8-0x0;var _0x2a4e8e=_0x5a87[_0x1cb1e8];return _0x2a4e8e;};import _0x1a88bb from'./operationcompressor';export default class m extends _0x1a88bb{static get['description'](){return{'fields':{'sourcePosition':{'type':'Position','id':0x1},'howMany':{'type':'uint32','id':0x2},'targetPosition':{'type':'Position','id':0x3},'wasUndone':{'type':_0x2a4e('0x0'),'id':0x4}}};}}
23
+ var _0x1e0b=['bool','Position'];(function(_0x2872b6,_0x1e0b8a){var _0x398af5=function(_0x102b4f){while(--_0x102b4f){_0x2872b6['push'](_0x2872b6['shift']());}};_0x398af5(++_0x1e0b8a);}(_0x1e0b,0x10e));var _0x398a=function(_0x2872b6,_0x1e0b8a){_0x2872b6=_0x2872b6-0x0;var _0x398af5=_0x1e0b[_0x2872b6];return _0x398af5;};import _0x2c873c from'./operationcompressor';export default class m extends _0x2c873c{static get['description'](){return{'fields':{'sourcePosition':{'type':_0x398a('0x1'),'id':0x1},'howMany':{'type':'uint32','id':0x2},'targetPosition':{'type':_0x398a('0x1'),'id':0x3},'wasUndone':{'type':_0x398a('0x0'),'id':0x4}}};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x47a9=['push','types','operationName','decompress','shift','compress'];(function(_0x1b1e9d,_0x47a974){var _0x5aaa00=function(_0x2dead9){while(--_0x2dead9){_0x1b1e9d['push'](_0x1b1e9d['shift']());}};_0x5aaa00(++_0x47a974);}(_0x47a9,0x6b));var _0x5aaa=function(_0x1b1e9d,_0x47a974){_0x1b1e9d=_0x1b1e9d-0x0;var _0x5aaa00=_0x47a9[_0x1b1e9d];return _0x5aaa00;};import _0x239935 from'./operationcompressor';export default class f extends _0x239935{[_0x5aaa('0x0')](_0x25fd78,_0x5cae9a){_0x5cae9a[_0x5aaa('0x5')](),_0x25fd78[_0x5aaa('0x2')][_0x5aaa('0x1')](this['id']);}[_0x5aaa('0x4')](_0x32a063,_0x4d0b0c){_0x4d0b0c[_0x5aaa('0x2')]['shift'](),_0x32a063[_0x5aaa('0x1')]({'__className':this[_0x5aaa('0x3')]});}}
23
+ var _0x19ff=['shift','compress','decompress','push','types','operationName'];(function(_0x1f4ab3,_0x19ff25){var _0x498e79=function(_0x5c9475){while(--_0x5c9475){_0x1f4ab3['push'](_0x1f4ab3['shift']());}};_0x498e79(++_0x19ff25);}(_0x19ff,0x6c));var _0x498e=function(_0x1f4ab3,_0x19ff25){_0x1f4ab3=_0x1f4ab3-0x0;var _0x498e79=_0x19ff[_0x1f4ab3];return _0x498e79;};import _0x1f0926 from'./operationcompressor';export default class f extends _0x1f0926{[_0x498e('0x1')](_0x57d7f7,_0x394e6e){_0x394e6e['shift'](),_0x57d7f7[_0x498e('0x4')][_0x498e('0x3')](this['id']);}[_0x498e('0x2')](_0x58847c,_0x438325){_0x438325[_0x498e('0x4')][_0x498e('0x0')](),_0x58847c['push']({'__className':this[_0x498e('0x5')]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f12=['operationName','buffers','shift','push','compress','decompress','types','_protobufDescriptor'];(function(_0x124b02,_0x1f120b){const _0x4b03fa=function(_0x500900){while(--_0x500900){_0x124b02['push'](_0x124b02['shift']());}};_0x4b03fa(++_0x1f120b);}(_0x1f12,0xb0));const _0x4b03=function(_0x124b02,_0x1f120b){_0x124b02=_0x124b02-0x0;let _0x4b03fa=_0x1f12[_0x124b02];return _0x4b03fa;};import{parsePositionBeforeCompression as _0x370c2,parsePositionAfterCompression as _0x24bf85}from'../utils';export default class V{constructor(_0x17a3a6,_0x249fcb,_0xff93aa){this['id']=_0x17a3a6,this[_0x4b03('0x0')]=_0x249fcb,this[_0x4b03('0x7')]=_0xff93aa;}[_0x4b03('0x4')](_0x3d2c8e,_0x28854c){const _0x4f4f95=_0x28854c[_0x4b03('0x2')]();_0x370c2(_0x4f4f95),_0x3d2c8e['buffers']['push'](this[_0x4b03('0x7')]['compress'](_0x4f4f95)),_0x3d2c8e[_0x4b03('0x6')][_0x4b03('0x3')](this['id']);}[_0x4b03('0x5')](_0x4fcf97,_0x50760d){_0x50760d[_0x4b03('0x6')][_0x4b03('0x2')]();const _0x87fb20=this[_0x4b03('0x7')]['decompress'](_0x50760d[_0x4b03('0x1')][_0x4b03('0x2')]());_0x24bf85(_0x87fb20),_0x87fb20['__className']=this['operationName'],_0x4fcf97[_0x4b03('0x3')](_0x87fb20);}}
23
+ const _0x4581=['types','buffers','decompress','compress','push','shift','_protobufDescriptor','operationName'];(function(_0x5ba4f2,_0x4581e0){const _0x3b4387=function(_0x5ece80){while(--_0x5ece80){_0x5ba4f2['push'](_0x5ba4f2['shift']());}};_0x3b4387(++_0x4581e0);}(_0x4581,0x1e5));const _0x3b43=function(_0x5ba4f2,_0x4581e0){_0x5ba4f2=_0x5ba4f2-0x0;let _0x3b4387=_0x4581[_0x5ba4f2];return _0x3b4387;};import{parsePositionBeforeCompression as _0x22a681,parsePositionAfterCompression as _0x11f04d}from'../utils';export default class V{constructor(_0x167f26,_0x4dcfdc,_0x227d5a){this['id']=_0x167f26,this['operationName']=_0x4dcfdc,this['_protobufDescriptor']=_0x227d5a;}['compress'](_0x2ecdaf,_0x5ca38f){const _0x241d75=_0x5ca38f[_0x3b43('0x0')]();_0x22a681(_0x241d75),_0x2ecdaf[_0x3b43('0x4')]['push'](this[_0x3b43('0x1')][_0x3b43('0x6')](_0x241d75)),_0x2ecdaf[_0x3b43('0x3')][_0x3b43('0x7')](this['id']);}[_0x3b43('0x5')](_0x2d9228,_0x70871d){_0x70871d[_0x3b43('0x3')]['shift']();const _0x4be5ea=this[_0x3b43('0x1')]['decompress'](_0x70871d[_0x3b43('0x4')][_0x3b43('0x0')]());_0x11f04d(_0x4be5ea),_0x4be5ea['__className']=this[_0x3b43('0x2')],_0x2d9228[_0x3b43('0x7')](_0x4be5ea);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x873c=['Position','description','string'];(function(_0x3f1b1f,_0x873c90){var _0x2f7f1c=function(_0x503347){while(--_0x503347){_0x3f1b1f['push'](_0x3f1b1f['shift']());}};_0x2f7f1c(++_0x873c90);}(_0x873c,0x16d));var _0x2f7f=function(_0x3f1b1f,_0x873c90){_0x3f1b1f=_0x3f1b1f-0x0;var _0x2f7f1c=_0x873c[_0x3f1b1f];return _0x2f7f1c;};import _0x3a814a from'./operationcompressor';export default class a extends _0x3a814a{static get[_0x2f7f('0x2')](){return{'fields':{'position':{'type':_0x2f7f('0x1'),'id':0x1},'oldName':{'type':_0x2f7f('0x0'),'id':0x2},'newName':{'type':_0x2f7f('0x0'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}
23
+ var _0x1d3b=['description','string'];(function(_0x22e6bb,_0x1d3be8){var _0x55d361=function(_0x12eed3){while(--_0x12eed3){_0x22e6bb['push'](_0x22e6bb['shift']());}};_0x55d361(++_0x1d3be8);}(_0x1d3b,0x6d));var _0x55d3=function(_0x22e6bb,_0x1d3be8){_0x22e6bb=_0x22e6bb-0x0;var _0x55d361=_0x1d3b[_0x22e6bb];return _0x55d361;};import _0x496715 from'./operationcompressor';export default class a extends _0x496715{static get[_0x55d3('0x1')](){return{'fields':{'position':{'type':'Position','id':0x1},'oldName':{'type':_0x55d3('0x0'),'id':0x2},'newName':{'type':_0x55d3('0x0'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x379d=['description','root','range','fields'];(function(_0x3594e1,_0x379dd0){const _0x3c062c=function(_0x37d01d){while(--_0x37d01d){_0x3594e1['push'](_0x3594e1['shift']());}};_0x3c062c(++_0x379dd0);}(_0x379d,0x145));const _0x3c06=function(_0x3594e1,_0x379dd0){_0x3594e1=_0x3594e1-0x0;let _0x3c062c=_0x379d[_0x3594e1];return _0x3c062c;};import _0x1d9748 from'./attributeoperationcompressor';export default class c extends _0x1d9748{static get['description'](){const _0x1b4a5e=_0x1d9748[_0x3c06('0x3')];return delete _0x1b4a5e[_0x3c06('0x2')][_0x3c06('0x1')],_0x1b4a5e[_0x3c06('0x2')][_0x3c06('0x0')]={'type':'string','id':0x1},_0x1b4a5e;}}
23
+ const _0x10e8=['root','description','fields','range','string'];(function(_0x251190,_0x10e88c){const _0x3a23f6=function(_0x41c9de){while(--_0x41c9de){_0x251190['push'](_0x251190['shift']());}};_0x3a23f6(++_0x10e88c);}(_0x10e8,0xff));const _0x3a23=function(_0x251190,_0x10e88c){_0x251190=_0x251190-0x0;let _0x3a23f6=_0x10e8[_0x251190];return _0x3a23f6;};import _0x44f8a1 from'./attributeoperationcompressor';export default class c extends _0x44f8a1{static get[_0x3a23('0x1')](){const _0x9c3604=_0x44f8a1[_0x3a23('0x1')];return delete _0x9c3604[_0x3a23('0x2')][_0x3a23('0x3')],_0x9c3604['fields'][_0x3a23('0x0')]={'type':_0x3a23('0x4'),'id':0x1},_0x9c3604;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1774=['uint32','description','Position'];(function(_0x171acb,_0x17740a){var _0x2381ce=function(_0x54ba83){while(--_0x54ba83){_0x171acb['push'](_0x171acb['shift']());}};_0x2381ce(++_0x17740a);}(_0x1774,0xc5));var _0x2381=function(_0x171acb,_0x17740a){_0x171acb=_0x171acb-0x0;var _0x2381ce=_0x1774[_0x171acb];return _0x2381ce;};import _0x35d34f from'./operationcompressor';export default class h extends _0x35d34f{static get[_0x2381('0x2')](){return{'fields':{'splitPosition':{'type':_0x2381('0x0'),'id':0x1},'graveyardPosition':{'type':'Position','id':0x2},'howMany':{'type':_0x2381('0x1'),'id':0x3},'insertionPosition':{'type':_0x2381('0x0'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
23
+ var _0x21af=['description','uint32','Position'];(function(_0x3a6acc,_0x21afba){var _0x3610db=function(_0x4c9aba){while(--_0x4c9aba){_0x3a6acc['push'](_0x3a6acc['shift']());}};_0x3610db(++_0x21afba);}(_0x21af,0x159));var _0x3610=function(_0x3a6acc,_0x21afba){_0x3a6acc=_0x3a6acc-0x0;var _0x3610db=_0x21af[_0x3a6acc];return _0x3610db;};import _0x35aff1 from'./operationcompressor';export default class h extends _0x35aff1{static get[_0x3610('0x0')](){return{'fields':{'splitPosition':{'type':_0x3610('0x2'),'id':0x1},'graveyardPosition':{'type':_0x3610('0x2'),'id':0x2},'howMany':{'type':_0x3610('0x1'),'id':0x3},'insertionPosition':{'type':_0x3610('0x2'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5932=['getDescriptor','registerDescriptor','finish','toObject','fromJSON','create','decompress','compress','_protobuf','build','protobuffactory-cannot-get-descriptor-before-build','decode','Root','_protobufRoot','lookupType'];(function(_0x313bba,_0x593211){const _0x70da99=function(_0x45a659){while(--_0x45a659){_0x313bba['push'](_0x313bba['shift']());}};_0x70da99(++_0x593211);}(_0x5932,0x132));const _0x70da=function(_0x313bba,_0x593211){_0x313bba=_0x313bba-0x0;let _0x70da99=_0x5932[_0x313bba];return _0x70da99;};import _0x307308 from'protobufjs/light';import{CKEditorError as _0x5a7b3f}from'ckeditor5/src/utils';import{cloneDeep as _0x3ae2ca}from'lodash-es';export default class r{constructor(){this['_description']={'nested':{}};}[_0x70da('0xa')](_0x398ea9,_0x116f74){this['_description']['nested'][_0x398ea9]=_0x3ae2ca(_0x116f74);}[_0x70da('0x3')](){this[_0x70da('0x7')]=_0x307308[_0x70da('0x6')][_0x70da('0xd')](this['_description']);}[_0x70da('0x9')](_0x47998b){if(!this[_0x70da('0x7')])throw new _0x5a7b3f(_0x70da('0x4'),this);return new D(this[_0x70da('0x7')][_0x70da('0x8')](_0x47998b));}}class D{constructor(_0xe37a70){this[_0x70da('0x2')]=_0xe37a70;}[_0x70da('0x1')](_0x5aae0f){const _0x1f2f85=this['_protobuf']['verify'](_0x5aae0f);if(_0x1f2f85)throw Error(_0x1f2f85);return this[_0x70da('0x2')]['encode'](this['_protobuf'][_0x70da('0xe')](_0x5aae0f))[_0x70da('0xb')]();}[_0x70da('0x0')](_0x52a29b){return this['_protobuf'][_0x70da('0xc')](this[_0x70da('0x2')][_0x70da('0x5')](_0x52a29b),{'oneofs':!0x0});}}
23
+ const _0x3085=['decompress','registerDescriptor','getDescriptor','nested','decode','compress','_description','build','Root','encode','fromJSON','create','_protobuf','verify','finish','_protobufRoot'];(function(_0x32d633,_0x308585){const _0x1db43b=function(_0x297e73){while(--_0x297e73){_0x32d633['push'](_0x32d633['shift']());}};_0x1db43b(++_0x308585);}(_0x3085,0x139));const _0x1db4=function(_0x32d633,_0x308585){_0x32d633=_0x32d633-0x0;let _0x1db43b=_0x3085[_0x32d633];return _0x1db43b;};import _0x4c8384 from'protobufjs/light';import{CKEditorError as _0x456d47}from'ckeditor5/src/utils';import{cloneDeep as _0x5f395d}from'lodash-es';export default class r{constructor(){this[_0x1db4('0xd')]={'nested':{}};}[_0x1db4('0x8')](_0x598e4e,_0xc3a6be){this[_0x1db4('0xd')][_0x1db4('0xa')][_0x598e4e]=_0x5f395d(_0xc3a6be);}[_0x1db4('0xe')](){this[_0x1db4('0x6')]=_0x4c8384[_0x1db4('0xf')][_0x1db4('0x1')](this[_0x1db4('0xd')]);}[_0x1db4('0x9')](_0x32cc49){if(!this[_0x1db4('0x6')])throw new _0x456d47('protobuffactory-cannot-get-descriptor-before-build',this);return new D(this['_protobufRoot']['lookupType'](_0x32cc49));}}class D{constructor(_0x24b68e){this[_0x1db4('0x3')]=_0x24b68e;}[_0x1db4('0xc')](_0x2f6e9d){const _0x299bb1=this['_protobuf'][_0x1db4('0x4')](_0x2f6e9d);if(_0x299bb1)throw Error(_0x299bb1);return this[_0x1db4('0x3')][_0x1db4('0x0')](this[_0x1db4('0x3')][_0x1db4('0x2')](_0x2f6e9d))[_0x1db4('0x5')]();}[_0x1db4('0x7')](_0x3c8f0d){return this[_0x1db4('0x3')]['toObject'](this[_0x1db4('0x3')][_0x1db4('0xb')](_0x3c8f0d),{'oneofs':!0x0});}}
package/src/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x395b=['path','rootGraveyard','root','rootMain','length','nodes','$graveyard','main'];(function(_0x232ebd,_0x395b95){const _0x3c41e9=function(_0x57e85a){while(--_0x57e85a){_0x232ebd['push'](_0x232ebd['shift']());}};_0x3c41e9(++_0x395b95);}(_0x395b,0xf7));const _0x3c41=function(_0x232ebd,_0x395b95){_0x232ebd=_0x232ebd-0x0;let _0x3c41e9=_0x395b[_0x232ebd];return _0x3c41e9;};import{cloneDeep as _0x470dfa,isEqual as _0x49f637,isObject as _0x36c4a7}from'lodash-es';export function getPositionShiftedBy(_0x1b99e8,_0x265264){const _0x1d4fb5=_0x470dfa(_0x1b99e8);return _0x1d4fb5[_0x3c41('0x1')][_0x1d4fb5[_0x3c41('0x1')][_0x3c41('0x5')]-0x1]+=_0x265264,_0x1d4fb5;}export function arePositionsEqual(_0x12317d,_0x14c8f6){return _0x12317d['root']===_0x14c8f6['root']&&_0x49f637(_0x12317d[_0x3c41('0x1')],_0x14c8f6[_0x3c41('0x1')]);}export function parsePositionBeforeCompression(_0xca1585){y(_0xca1585,_0x58caf5=>('main'==_0x58caf5[_0x3c41('0x3')]?(_0x58caf5[_0x3c41('0x4')]=!0x0,delete _0x58caf5[_0x3c41('0x3')]):_0x3c41('0x7')==_0x58caf5[_0x3c41('0x3')]&&(_0x58caf5['rootGraveyard']=!0x0,delete _0x58caf5[_0x3c41('0x3')]),_0x58caf5));}export function parsePositionAfterCompression(_0x50c514){y(_0x50c514,_0x4de864=>(_0x4de864[_0x3c41('0x4')]?(_0x4de864[_0x3c41('0x3')]=_0x3c41('0x0'),delete _0x4de864['rootMain']):_0x4de864['rootGraveyard']&&(_0x4de864['root']=_0x3c41('0x7'),delete _0x4de864[_0x3c41('0x2')]),_0x4de864));}function y(_0x431ab6,_0x4fdedb){for(const _0x1b363b in _0x431ab6){const _0x118ff5=_0x431ab6[_0x1b363b];_0x3c41('0x6')!==_0x1b363b&&_0x36c4a7(_0x118ff5)&&(_0x118ff5['path']&&(_0x118ff5[_0x3c41('0x3')]||_0x118ff5['rootMain']||_0x118ff5[_0x3c41('0x2')])?_0x431ab6[_0x1b363b]=_0x4fdedb(_0x118ff5):y(_0x118ff5,_0x4fdedb));}return _0x431ab6;}
23
+ const _0x24c7=['nodes','main','root','rootGraveyard','path','rootMain','length','$graveyard'];(function(_0x1b0cb7,_0x24c78d){const _0x1e7d7e=function(_0x5d8266){while(--_0x5d8266){_0x1b0cb7['push'](_0x1b0cb7['shift']());}};_0x1e7d7e(++_0x24c78d);}(_0x24c7,0xd5));const _0x1e7d=function(_0x1b0cb7,_0x24c78d){_0x1b0cb7=_0x1b0cb7-0x0;let _0x1e7d7e=_0x24c7[_0x1b0cb7];return _0x1e7d7e;};import{cloneDeep as _0x558fd6,isEqual as _0x1f36b7,isObject as _0x4ffe67}from'lodash-es';export function getPositionShiftedBy(_0x4d0ef9,_0x1e5398){const _0x3f52e3=_0x558fd6(_0x4d0ef9);return _0x3f52e3[_0x1e7d('0x7')][_0x3f52e3['path'][_0x1e7d('0x1')]-0x1]+=_0x1e5398,_0x3f52e3;}export function arePositionsEqual(_0x2ee4c4,_0x56e67b){return _0x2ee4c4[_0x1e7d('0x5')]===_0x56e67b[_0x1e7d('0x5')]&&_0x1f36b7(_0x2ee4c4[_0x1e7d('0x7')],_0x56e67b['path']);}export function parsePositionBeforeCompression(_0x36e295){y(_0x36e295,_0x4cba47=>(_0x1e7d('0x4')==_0x4cba47['root']?(_0x4cba47['rootMain']=!0x0,delete _0x4cba47[_0x1e7d('0x5')]):_0x1e7d('0x2')==_0x4cba47[_0x1e7d('0x5')]&&(_0x4cba47[_0x1e7d('0x6')]=!0x0,delete _0x4cba47['root']),_0x4cba47));}export function parsePositionAfterCompression(_0x5cbc0f){y(_0x5cbc0f,_0x251c75=>(_0x251c75[_0x1e7d('0x0')]?(_0x251c75[_0x1e7d('0x5')]='main',delete _0x251c75[_0x1e7d('0x0')]):_0x251c75[_0x1e7d('0x6')]&&(_0x251c75[_0x1e7d('0x5')]=_0x1e7d('0x2'),delete _0x251c75[_0x1e7d('0x6')]),_0x251c75));}function y(_0x15cc44,_0x66cc4f){for(const _0x32a32c in _0x15cc44){const _0x130006=_0x15cc44[_0x32a32c];_0x1e7d('0x3')!==_0x32a32c&&_0x4ffe67(_0x130006)&&(_0x130006[_0x1e7d('0x7')]&&(_0x130006[_0x1e7d('0x5')]||_0x130006[_0x1e7d('0x0')]||_0x130006[_0x1e7d('0x6')])?_0x15cc44[_0x32a32c]=_0x66cc4f(_0x130006):y(_0x130006,_0x66cc4f));}return _0x15cc44;}