@ckeditor/ckeditor5-operations-compressor 47.7.2 → 47.7.3-alpha.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/dist/index.js +2 -2
- package/package.json +4 -4
- 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/compressor.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
- package/src/lib/compiledmessages.js +2 -2
- package/src/lib/protobufdescriptions.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/nooperationcompressor.js +1 -1
- package/src/operationcompressor/operationcompressor.js +1 -1
- package/src/protobuffactory.js +1 -1
- package/src/utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-operations-compressor",
|
|
3
|
-
"version": "47.7.
|
|
3
|
+
"version": "47.7.3-alpha.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/",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"main": "src/index.js",
|
|
34
34
|
"types": "src/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ckeditor/ckeditor5-utils": "47.7.
|
|
37
|
-
"ckeditor5": "47.7.
|
|
36
|
+
"@ckeditor/ckeditor5-utils": "47.7.3-alpha.0",
|
|
37
|
+
"ckeditor5": "47.7.3-alpha.0",
|
|
38
38
|
"es-toolkit": "1.39.5",
|
|
39
|
-
"protobufjs": "7.5
|
|
39
|
+
"protobufjs": "7.6.5"
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"dist",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x50f3(){const _0x2f2d89=['_splitCurrent','114528gBjYCp','_combineNext','1133238BWkiDB','_compressSingleOperation','69481hCueoT','12MpnBmr','4YwkTCH','types','buffers','2255128PprcVS','compress','10EowwOl','_decompressSingleOperation','368350DfyDbS','typeIndex','2134JpeqlS','_compareOperations','index','_id','1813590CkCzKS','decompress','operations','4009096mBYYrg','279gTCqmc','_context','push'];_0x50f3=function(){return _0x2f2d89;};return _0x50f3();}function _0x53f4(_0x173764,_0x2b9e2f){const _0x50f3e8=_0x50f3();return _0x53f4=function(_0x53f4b5,_0x286636){_0x53f4b5=_0x53f4b5-0x1d6;let _0x1303c4=_0x50f3e8[_0x53f4b5];return _0x1303c4;},_0x53f4(_0x173764,_0x2b9e2f);}const _0x3d8d1f=_0x53f4;(function(_0x52967b,_0x5a3abd){const _0x5c119b=_0x53f4,_0xe9cc79=_0x52967b();while(!![]){try{const _0x4f09c5=-parseInt(_0x5c119b(0x1df))/0x1*(parseInt(_0x5c119b(0x1e1))/0x2)+parseInt(_0x5c119b(0x1dd))/0x3*(parseInt(_0x5c119b(0x1e0))/0x4)+parseInt(_0x5c119b(0x1e6))/0x5*(parseInt(_0x5c119b(0x1ee))/0x6)+-parseInt(_0x5c119b(0x1d6))/0x7+parseInt(_0x5c119b(0x1e4))/0x8+-parseInt(_0x5c119b(0x1d7))/0x9*(-parseInt(_0x5c119b(0x1e8))/0xa)+parseInt(_0x5c119b(0x1ea))/0xb*(-parseInt(_0x5c119b(0x1db))/0xc);if(_0x4f09c5===_0x5a3abd)break;else _0xe9cc79['push'](_0xe9cc79['shift']());}catch(_0x268a0b){_0xe9cc79['push'](_0xe9cc79['shift']());}}}(_0x50f3,0x9212e));import{cloneDeep as _0x147127}from'es-toolkit/compat';export class ActionCompressor{[_0x3d8d1f(0x1ed)];[_0x3d8d1f(0x1d8)];constructor(_0x188f61,_0x1f52da){const _0x5f4bcc=_0x3d8d1f;this[_0x5f4bcc(0x1ed)]=_0x188f61,this[_0x5f4bcc(0x1d8)]=_0x1f52da;}[_0x3d8d1f(0x1e5)](_0x36d0eb,_0x3e1169){const _0x531406=_0x3d8d1f;let _0x4108b4,_0x1af433=_0x3e1169[_0x531406(0x1f0)][_0x3e1169[_0x531406(0x1ec)]],_0x3ce017=_0x3e1169[_0x531406(0x1f0)][_0x3e1169[_0x531406(0x1ec)]+0x1];for(;_0x3ce017&&this[_0x531406(0x1eb)](_0x1af433,_0x3ce017);)_0x4108b4?(_0x4108b4=this[_0x531406(0x1dc)](_0x1af433,_0x4108b4),_0x36d0eb[_0x531406(0x1e2)][_0x531406(0x1d9)](0x0)):(_0x4108b4=_0x147127(_0x1af433),_0x36d0eb[_0x531406(0x1e2)][_0x531406(0x1d9)](this[_0x531406(0x1ed)])),_0x3e1169[_0x531406(0x1ec)]++,_0x1af433=_0x3e1169[_0x531406(0x1f0)][_0x3e1169[_0x531406(0x1ec)]],_0x3ce017=_0x3e1169[_0x531406(0x1f0)][_0x3e1169[_0x531406(0x1ec)]+0x1];return!!_0x4108b4&&(_0x4108b4=this[_0x531406(0x1dc)](_0x3e1169[_0x531406(0x1f0)][_0x3e1169[_0x531406(0x1ec)]++],_0x4108b4),_0x36d0eb[_0x531406(0x1e2)][_0x531406(0x1d9)](0x0),_0x36d0eb[_0x531406(0x1e3)][_0x531406(0x1d9)](this[_0x531406(0x1de)](_0x4108b4)),!0x0);}[_0x3d8d1f(0x1ef)](_0x180d83,_0x4db188){const _0x564a3e=_0x3d8d1f,_0x18260f=this[_0x564a3e(0x1e7)](_0x4db188);for(;0x0==_0x4db188[_0x564a3e(0x1e2)][_0x4db188[_0x564a3e(0x1e9)]];)_0x4db188[_0x564a3e(0x1e9)]++,_0x180d83[_0x564a3e(0x1d9)](this[_0x564a3e(0x1da)](_0x18260f));_0x180d83[_0x564a3e(0x1d9)](_0x18260f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d0bc3=_0x51fa;(function(_0x2dd5f6,_0x5224b2){const _0x55c77e=_0x51fa,_0x19ff11=_0x2dd5f6();while(!![]){try{const _0x58efe8=-parseInt(_0x55c77e(0x1b5))/0x1+-parseInt(_0x55c77e(0x1ab))/0x2*(parseInt(_0x55c77e(0x1a7))/0x3)+parseInt(_0x55c77e(0x1c3))/0x4+parseInt(_0x55c77e(0x1bc))/0x5*(-parseInt(_0x55c77e(0x1b0))/0x6)+parseInt(_0x55c77e(0x1ac))/0x7+-parseInt(_0x55c77e(0x1bd))/0x8*(parseInt(_0x55c77e(0x1b6))/0x9)+-parseInt(_0x55c77e(0x1b2))/0xa*(-parseInt(_0x55c77e(0x1b3))/0xb);if(_0x58efe8===_0x5224b2)break;else _0x19ff11['push'](_0x19ff11['shift']());}catch(_0x5a0357){_0x19ff11['push'](_0x19ff11['shift']());}}}(_0x54b2,0x7afab));import{ActionCompressor as _0xab6d63}from'./actioncompressor.js';function _0x51fa(_0x3ee8fd,_0x196a96){const _0x54b277=_0x54b2();return _0x51fa=function(_0x51fa91,_0x7ba64b){_0x51fa91=_0x51fa91-0x1a6;let _0x2947ff=_0x54b277[_0x51fa91];return _0x2947ff;},_0x51fa(_0x3ee8fd,_0x196a96);}function _0x54b2(){const _0x27d3a2=['root','39600uBVPNP','buffers','1323640JjGxDo','77xVbbTM','sourcePosition','157776BMtUlE','2979ClyIJt','compress','_getCompressorByName','_compressSingleOperation','$graveyard','_combineNext','270vChHob','20656nHJVJo','__className','_decompressSingleOperation','howMany','_checkOperation','_compareOperations','3891804KXcJpL','wasUndone','1047099SYwwDN','_context','targetPosition','MoveOperation','4qWIoXs','4697756YWJEip','_splitCurrent','decompress'];_0x54b2=function(){return _0x27d3a2;};return _0x54b2();}import{arePositionsEqual as _0x295766,getPositionShiftedBy as _0x39ac06}from'../utils.js';import{cloneDeep as _0x2af42}from'es-toolkit/compat';export class DeletingActionCompressor extends _0xab6d63{[_0x5d0bc3(0x1bb)](_0x16aaf9,_0x1bd51b){const _0x2a02f9=_0x5d0bc3;return _0x1bd51b[_0x2a02f9(0x1c0)]++,_0x1bd51b[_0x2a02f9(0x1b4)]=_0x2af42(_0x16aaf9[_0x2a02f9(0x1b4)]),_0x1bd51b;}[_0x5d0bc3(0x1ad)](_0x4bdf06){const _0x59c3cb=_0x5d0bc3,_0x18a79d=_0x2af42(_0x4bdf06);return _0x4bdf06[_0x59c3cb(0x1c0)]--,_0x18a79d[_0x59c3cb(0x1c0)]=0x1,_0x18a79d[_0x59c3cb(0x1b4)]=_0x39ac06(_0x18a79d[_0x59c3cb(0x1b4)],_0x4bdf06[_0x59c3cb(0x1c0)]),_0x18a79d;}[_0x5d0bc3(0x1c2)](_0x3c3d6c,_0x5b061d){const _0x1e63a1=_0x5d0bc3;return!(!this[_0x1e63a1(0x1c1)](_0x3c3d6c)||!this[_0x1e63a1(0x1c1)](_0x5b061d))&&(_0x295766(_0x39ac06(_0x3c3d6c[_0x1e63a1(0x1b4)],-0x1),_0x5b061d[_0x1e63a1(0x1b4)])&&_0x295766(_0x3c3d6c[_0x1e63a1(0x1a9)],_0x5b061d[_0x1e63a1(0x1a9)]));}[_0x5d0bc3(0x1b9)](_0x12337f){const _0x43b2b5=_0x5d0bc3,_0x5402c2={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x43b2b5(0x1a8)][_0x43b2b5(0x1b8)](_0x43b2b5(0x1aa))[_0x43b2b5(0x1b7)](_0x5402c2,{'operations':[_0x12337f],'index':0x0}),_0x5402c2[_0x43b2b5(0x1b1)][0x0];}[_0x5d0bc3(0x1bf)](_0x3350e3){const _0x18b968=_0x5d0bc3,_0x5d9e7f=[];return this[_0x18b968(0x1a8)][_0x18b968(0x1b8)](_0x18b968(0x1aa))[_0x18b968(0x1ae)](_0x5d9e7f,_0x3350e3),_0x5d9e7f[0x0];}[_0x5d0bc3(0x1c1)](_0x4f492b){const _0x384d3b=_0x5d0bc3;return _0x384d3b(0x1aa)==_0x4f492b[_0x384d3b(0x1be)]&&_0x384d3b(0x1ba)==_0x4f492b[_0x384d3b(0x1a9)][_0x384d3b(0x1af)]&&0x1==_0x4f492b[_0x384d3b(0x1c0)]&&!_0x4f492b[_0x384d3b(0x1a6)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2353(){const _0x4a8a83=['2091380utVItE','_splitCurrent','_checkOperation','_getCompressorByName','_context','buffers','targetPosition','_decompressSingleOperation','_combineNext','compress','howMany','1002ehkfrq','3xRFTxi','sourcePosition','wasUndone','decompress','root','MoveOperation','_compareOperations','24176043JFlySv','39424jXxaKi','5786400jtcxZt','1176401fMhzyN','4357296UcvnML','__className','$graveyard','_compressSingleOperation','1659070jFXBNV'];_0x2353=function(){return _0x4a8a83;};return _0x2353();}const _0x33afa4=_0x1f1f;function _0x1f1f(_0x25346f,_0x33992b){const _0x235367=_0x2353();return _0x1f1f=function(_0x1f1f0f,_0x3dcec4){_0x1f1f0f=_0x1f1f0f-0x82;let _0x424e44=_0x235367[_0x1f1f0f];return _0x424e44;},_0x1f1f(_0x25346f,_0x33992b);}(function(_0x218d3c,_0x37d41d){const _0x2207cf=_0x1f1f,_0x33cb5f=_0x218d3c();while(!![]){try{const _0x15c5df=parseInt(_0x2207cf(0x8e))/0x1+-parseInt(_0x2207cf(0x93))/0x2*(-parseInt(_0x2207cf(0x84))/0x3)+parseInt(_0x2207cf(0x94))/0x4+parseInt(_0x2207cf(0x8d))/0x5+parseInt(_0x2207cf(0x83))/0x6*(-parseInt(_0x2207cf(0x8c))/0x7)+parseInt(_0x2207cf(0x8f))/0x8+-parseInt(_0x2207cf(0x8b))/0x9;if(_0x15c5df===_0x37d41d)break;else _0x33cb5f['push'](_0x33cb5f['shift']());}catch(_0x445b85){_0x33cb5f['push'](_0x33cb5f['shift']());}}}(_0x2353,0x93730));import{ActionCompressor as _0x1cb785}from'./actioncompressor.js';import{arePositionsEqual as _0x156729}from'../utils.js';import{cloneDeep as _0x5d4c23}from'es-toolkit/compat';export class ForwardDeletingActionCompressor extends _0x1cb785{[_0x33afa4(0x9c)](_0x292cfb,_0x11dce1){const _0x221b30=_0x33afa4;return _0x11dce1[_0x221b30(0x82)]++,_0x11dce1;}[_0x33afa4(0x95)](_0x34d3af){const _0x4011e6=_0x33afa4,_0x5b0ecb=_0x5d4c23(_0x34d3af);return _0x5b0ecb[_0x4011e6(0x82)]=0x1,_0x34d3af[_0x4011e6(0x82)]--,_0x5b0ecb;}[_0x33afa4(0x8a)](_0x2eecb1,_0xa58f76){const _0x275f7d=_0x33afa4;return!(!this[_0x275f7d(0x96)](_0x2eecb1)||!this[_0x275f7d(0x96)](_0xa58f76))&&(_0x156729(_0x2eecb1[_0x275f7d(0x85)],_0xa58f76[_0x275f7d(0x85)])&&_0x156729(_0x2eecb1[_0x275f7d(0x9a)],_0xa58f76[_0x275f7d(0x9a)]));}[_0x33afa4(0x92)](_0x7c83c9){const _0x5da4ba=_0x33afa4,_0x2e57f0={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x5da4ba(0x98)][_0x5da4ba(0x97)](_0x5da4ba(0x89))[_0x5da4ba(0x9d)](_0x2e57f0,{'operations':[_0x7c83c9],'index':0x0}),_0x2e57f0[_0x5da4ba(0x99)][0x0];}[_0x33afa4(0x9b)](_0x12b44f){const _0x538236=_0x33afa4,_0x46fd3d=[];return this[_0x538236(0x98)][_0x538236(0x97)](_0x538236(0x89))[_0x538236(0x87)](_0x46fd3d,_0x12b44f),_0x46fd3d[0x0];}[_0x33afa4(0x96)](_0x2d1422){const _0x21806e=_0x33afa4;return _0x21806e(0x89)==_0x2d1422[_0x21806e(0x90)]&&_0x21806e(0x91)==_0x2d1422[_0x21806e(0x9a)][_0x21806e(0x88)]&&0x1==_0x2d1422[_0x21806e(0x82)]&&!_0x2d1422[_0x21806e(0x86)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4c57f7=_0x4536;(function(_0x2c05c,_0x11c00c){const _0x57828c=_0x4536,_0x148f17=_0x2c05c();while(!![]){try{const _0x1db966=parseInt(_0x57828c(0x173))/0x1+-parseInt(_0x57828c(0x15d))/0x2+parseInt(_0x57828c(0x16e))/0x3+-parseInt(_0x57828c(0x167))/0x4*(parseInt(_0x57828c(0x165))/0x5)+parseInt(_0x57828c(0x15b))/0x6+parseInt(_0x57828c(0x157))/0x7*(-parseInt(_0x57828c(0x160))/0x8)+-parseInt(_0x57828c(0x16b))/0x9*(-parseInt(_0x57828c(0x163))/0xa);if(_0x1db966===_0x11c00c)break;else _0x148f17['push'](_0x148f17['shift']());}catch(_0x55eebd){_0x148f17['push'](_0x148f17['shift']());}}}(_0x30a0,0xe08fc));function _0x30a0(){const _0x4ee260=['compress','from','keys','_compareOperations','_context','iterator','_compareAttributes','7byREpf','substr','next','_compressSingleOperation','4354296JJkIre','data','1120776AHhzOU','_getCompressorByName','_checkOperation','5869480KggfAa','_combineNext','value','11687630oqcAny','_splitCurrent','40iPhduR','length','339988rllNIA','_decompressSingleOperation','attributes','__className','9fMPaEC','every','position','63549TfnLqf','decompress','nodes','buffers','InsertOperation','978191VKRkdL','wasUndone'];_0x30a0=function(){return _0x4ee260;};return _0x30a0();}import{ActionCompressor as _0x102a5b}from'./actioncompressor.js';function _0x4536(_0x43c8d3,_0x337f38){const _0x30a0b0=_0x30a0();return _0x4536=function(_0x4536a0,_0x5b0ee1){_0x4536a0=_0x4536a0-0x152;let _0x24033d=_0x30a0b0[_0x4536a0];return _0x24033d;},_0x4536(_0x43c8d3,_0x337f38);}import{arePositionsEqual as _0x1eaf2b,getPositionShiftedBy as _0x19937c}from'../utils.js';import{cloneDeep as _0x1fe1bb}from'es-toolkit/compat';export class TypingActionCompressor extends _0x102a5b{[_0x4c57f7(0x161)](_0x311459,_0x2f2bac){const _0xc70573=_0x4c57f7;return _0x2f2bac[_0xc70573(0x170)][0x0][_0xc70573(0x15c)]+=_0x311459[_0xc70573(0x170)][0x0][_0xc70573(0x15c)],_0x2f2bac;}[_0x4c57f7(0x164)](_0x3bab53){const _0x4f8d81=_0x4c57f7,_0x53fb54=_0x1fe1bb(_0x3bab53),_0x3799b2=_0x53fb54[_0x4f8d81(0x170)][0x0],_0xb0277c=_0x3bab53[_0x4f8d81(0x170)][0x0],_0x237475=_0xb0277c[_0x4f8d81(0x15c)][Symbol[_0x4f8d81(0x155)]]()[_0x4f8d81(0x159)]()[_0x4f8d81(0x162)],_0x34281f=_0x237475[_0x4f8d81(0x166)];return _0x3799b2[_0x4f8d81(0x15c)]=_0x237475,_0xb0277c[_0x4f8d81(0x15c)]=_0xb0277c[_0x4f8d81(0x15c)][_0x4f8d81(0x158)](_0x34281f),_0x3bab53[_0x4f8d81(0x16d)]=_0x19937c(_0x3bab53[_0x4f8d81(0x16d)],_0x34281f),_0x53fb54;}[_0x4c57f7(0x153)](_0x346907,_0x4de741){const _0x51a755=_0x4c57f7;if(this[_0x51a755(0x15f)](_0x346907)&&this[_0x51a755(0x15f)](_0x4de741)){const _0x4f5a8b=_0x346907[_0x51a755(0x170)][0x0][_0x51a755(0x15c)][_0x51a755(0x166)],_0x6fcb67=_0x1eaf2b(_0x19937c(_0x346907[_0x51a755(0x16d)],_0x4f5a8b),_0x4de741[_0x51a755(0x16d)]),_0x1e7859=_0x346907[_0x51a755(0x170)][0x0],_0x223156=_0x4de741[_0x51a755(0x170)][0x0];return _0x6fcb67&&this[_0x51a755(0x156)](_0x1e7859,_0x223156);}return!0x1;}[_0x4c57f7(0x15a)](_0xc7c7ce){const _0x5f220b=_0x4c57f7,_0x5beb70={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x5f220b(0x154)][_0x5f220b(0x15e)](_0x5f220b(0x172))[_0x5f220b(0x175)](_0x5beb70,{'operations':[_0xc7c7ce],'index':0x0}),_0x5beb70[_0x5f220b(0x171)][0x0];}[_0x4c57f7(0x168)](_0x4a4c1f){const _0x57d07d=_0x4c57f7,_0x455d1b=[];return this[_0x57d07d(0x154)][_0x57d07d(0x15e)](_0x57d07d(0x172))[_0x57d07d(0x16f)](_0x455d1b,_0x4a4c1f),_0x455d1b[0x0];}[_0x4c57f7(0x15f)](_0x244489){const _0x310119=_0x4c57f7;return _0x310119(0x172)==_0x244489[_0x310119(0x16a)]&&0x1==_0x244489[_0x310119(0x170)][_0x310119(0x166)]&&_0x244489[_0x310119(0x170)][0x0][_0x310119(0x15c)]&&!_0x244489[_0x310119(0x174)]&&0x1==Array[_0x310119(0x176)](_0x244489[_0x310119(0x170)][0x0][_0x310119(0x15c)])[_0x310119(0x166)];}[_0x4c57f7(0x156)](_0x582f4a,_0x45d53e){const _0x1f150a=_0x4c57f7,_0x4f200a=Object[_0x1f150a(0x152)](_0x582f4a[_0x1f150a(0x169)]||{}),_0x4b0c89=Object[_0x1f150a(0x152)](_0x45d53e[_0x1f150a(0x169)]||{});return _0x4f200a[_0x1f150a(0x166)]===_0x4b0c89[_0x1f150a(0x166)]&&_0x4f200a[_0x1f150a(0x16c)](_0x4f87cf=>_0x45d53e[_0x1f150a(0x169)][_0x4f87cf]&&_0x45d53e[_0x1f150a(0x169)][_0x4f87cf]===_0x582f4a[_0x1f150a(0x169)][_0x4f87cf]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x530c32=_0xdf65;(function(_0x2ad026,_0x12ec7a){const _0xba7719=_0xdf65,_0x4958e5=_0x2ad026();while(!![]){try{const _0x1069c4=-parseInt(_0xba7719(0x1a5))/0x1+parseInt(_0xba7719(0x1b6))/0x2*(-parseInt(_0xba7719(0x1ad))/0x3)+parseInt(_0xba7719(0x1b2))/0x4+parseInt(_0xba7719(0x1b5))/0x5+-parseInt(_0xba7719(0x1c8))/0x6+parseInt(_0xba7719(0x1be))/0x7+parseInt(_0xba7719(0x1a9))/0x8*(parseInt(_0xba7719(0x1bd))/0x9);if(_0x1069c4===_0x12ec7a)break;else _0x4958e5['push'](_0x4958e5['shift']());}catch(_0x4f6358){_0x4958e5['push'](_0x4958e5['shift']());}}}(_0x5472,0x7b4a2));function _0x5472(){const _0x301f7a=['user:','typeIndex','compress','types','push','_context','3769050tgIblD','40446aoyWfS','index','_id','name','16uUqRJF','end','decompress','operations','562725JvuiTj','_compareOperations','buffers','newRange','MarkerOperation','830064OjrSfb','oldRange','start','174305RyNyCQ','2hyPycU','startsWith','_decompressSingleOperation','__className','user:position:','toNone','_compressSingleOperation','3527532oRBwGU','2344419SumPwV','_getCompressorByName','stickiness','split'];_0x5472=function(){return _0x301f7a;};return _0x5472();}import{ActionCompressor as _0x4bd173}from'./actioncompressor.js';import{arePositionsEqual as _0x4b77b2}from'../utils.js';import{cloneDeep as _0x1e4363}from'es-toolkit/compat';function _0xdf65(_0x3a2a6a,_0x1c5554){const _0x547279=_0x5472();return _0xdf65=function(_0xdf65b7,_0x4ee423){_0xdf65b7=_0xdf65b7-0x1a5;let _0x2d4194=_0x547279[_0xdf65b7];return _0x2d4194;},_0xdf65(_0x3a2a6a,_0x1c5554);}export class UserSelectionActionCompressor extends _0x4bd173{[_0x530c32(0x1c4)](_0x477a54,_0x4af3f4){const _0x411992=_0x530c32;if(!this[_0x411992(0x1ae)](_0x4af3f4[_0x411992(0x1ac)][_0x4af3f4[_0x411992(0x1a6)]],_0x4af3f4[_0x411992(0x1ac)][_0x4af3f4[_0x411992(0x1a6)]+0x1]))return!0x1;const _0x1b2437=_0x4af3f4[_0x411992(0x1ac)][_0x4af3f4[_0x411992(0x1a6)]++];return _0x1b2437[_0x411992(0x1b3)]=null,_0x1b2437[_0x411992(0x1b0)]&&_0x4b77b2(_0x1b2437[_0x411992(0x1b0)][_0x411992(0x1b4)],_0x1b2437[_0x411992(0x1b0)][_0x411992(0x1aa)])&&(_0x1b2437[_0x411992(0x1b0)][_0x411992(0x1aa)]=null),_0x4af3f4[_0x411992(0x1a6)]++,_0x477a54[_0x411992(0x1c5)][_0x411992(0x1c6)](this[_0x411992(0x1a7)]),_0x477a54[_0x411992(0x1c5)][_0x411992(0x1c6)](0x0),_0x477a54[_0x411992(0x1af)][_0x411992(0x1c6)](this[_0x411992(0x1bc)](_0x1b2437)),!0x0;}[_0x530c32(0x1ab)](_0xd4d50e,_0x2c27a2){const _0x1e99d0=_0x530c32,_0x3d8ddf=this[_0x1e99d0(0x1b8)](_0x2c27a2);_0x3d8ddf[_0x1e99d0(0x1b0)]&&!_0x3d8ddf[_0x1e99d0(0x1b0)][_0x1e99d0(0x1aa)]&&(_0x3d8ddf[_0x1e99d0(0x1b0)][_0x1e99d0(0x1aa)]=_0x1e4363(_0x3d8ddf[_0x1e99d0(0x1b0)][_0x1e99d0(0x1b4)]));const _0x42e867=_0x1e4363(_0x3d8ddf);_0x42e867[_0x1e99d0(0x1b0)]&&(_0x42e867[_0x1e99d0(0x1b0)][_0x1e99d0(0x1b4)][_0x1e99d0(0x1c0)]=_0x1e99d0(0x1bb),_0x42e867[_0x1e99d0(0x1b0)][_0x1e99d0(0x1aa)]=_0x1e4363(_0x42e867[_0x1e99d0(0x1b0)][_0x1e99d0(0x1b4)])),_0x42e867[_0x1e99d0(0x1a8)]=_0x1e99d0(0x1ba)+_0x42e867[_0x1e99d0(0x1a8)][_0x1e99d0(0x1c1)](':')[0x2],_0x2c27a2[_0x1e99d0(0x1c3)]++,_0xd4d50e[_0x1e99d0(0x1c6)](_0x3d8ddf),_0xd4d50e[_0x1e99d0(0x1c6)](_0x42e867);}[_0x530c32(0x1bc)](_0x350162){const _0x1dfe1e=_0x530c32,_0x5b657d={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x1dfe1e(0x1c7)][_0x1dfe1e(0x1bf)](_0x1dfe1e(0x1b1))[_0x1dfe1e(0x1c4)](_0x5b657d,{'operations':[_0x350162],'index':0x0}),_0x5b657d[_0x1dfe1e(0x1af)][0x0];}[_0x530c32(0x1b8)](_0x3dc9f0){const _0x1decd4=_0x530c32,_0x19201c=[];return this[_0x1decd4(0x1c7)][_0x1decd4(0x1bf)](_0x1decd4(0x1b1))[_0x1decd4(0x1ab)](_0x19201c,_0x3dc9f0),_0x19201c[0x0];}[_0x530c32(0x1ae)](_0x560b69,_0x45f30f){const _0x22df79=_0x530c32;return!(!_0x560b69||!_0x45f30f)&&(_0x22df79(0x1b1)==_0x560b69[_0x22df79(0x1b9)]&&_0x22df79(0x1b1)==_0x45f30f[_0x22df79(0x1b9)]&&!(!_0x560b69[_0x22df79(0x1a8)][_0x22df79(0x1b7)](_0x22df79(0x1c2))||!_0x45f30f[_0x22df79(0x1a8)][_0x22df79(0x1b7)](_0x22df79(0x1c2))||_0x560b69[_0x22df79(0x1a8)]==_0x45f30f[_0x22df79(0x1a8)]));}}
|
package/src/compressor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x23e2(_0x2070ab,_0x1292f7){const _0x5eba4e=_0x5eba();return _0x23e2=function(_0x23e2a7,_0x4b0681){_0x23e2a7=_0x23e2a7-0xec;let _0x466501=_0x5eba4e[_0x23e2a7];return _0x466501;},_0x23e2(_0x2070ab,_0x1292f7);}const _0x41a00a=_0x23e2;(function(_0x2da5c2,_0x1b9d8e){const _0x3a7941=_0x23e2,_0x42aef7=_0x2da5c2();while(!![]){try{const _0x46d1f7=parseInt(_0x3a7941(0x11c))/0x1+parseInt(_0x3a7941(0x10f))/0x2+parseInt(_0x3a7941(0x100))/0x3*(parseInt(_0x3a7941(0x113))/0x4)+-parseInt(_0x3a7941(0x11a))/0x5+parseInt(_0x3a7941(0xfe))/0x6+-parseInt(_0x3a7941(0x11e))/0x7*(-parseInt(_0x3a7941(0xf4))/0x8)+-parseInt(_0x3a7941(0xf7))/0x9*(parseInt(_0x3a7941(0xfd))/0xa);if(_0x46d1f7===_0x1b9d8e)break;else _0x42aef7['push'](_0x42aef7['shift']());}catch(_0x2dd359){_0x42aef7['push'](_0x42aef7['shift']());}}}(_0x5eba,0xe3c30));function _0x5eba(){const _0x3f3139=['buffers','DeletingAction','445575nMShoI','set','1311335eDsORg','InsertOperation','9317959pzFuzL','suggestion','_protobufFactory','_registerOperationCompressor','forEach','_registerActionCompressor','AttributeOperation','MergeOperation','_compressorById','8SJpWRi','comment','RootOperation','27rXWxLy','__className','SuggestionMarkerOperation','compress','get','MoveOperation','12963690avMeTr','4933788DcJLZt','NoOperation','504012xPJVQP','index','RootAttributeOperation','UserSelectionAction','_compressorByName','_getCompressorByName','MarkerOperation','decompress-compressor-not-found','typeIndex','baseVersion','types','SplitOperation','CommentMarkerOperation','TypingAction','length','540672rEbcjc','operations','decompress','ForwardDeletingAction','28QvYsue','_registerCompressor','getDescriptor','no-operations-provided','RenameOperation'];_0x5eba=function(){return _0x3f3139;};return _0x5eba();}import{CKEditorError as _0x5ba627}from'ckeditor5/src/utils.js';import{ProtobufFactory as _0x4ccdd2}from'./protobuffactory.js';import{OperationCompressor as _0x189aec}from'./operationcompressor/operationcompressor.js';import{AttributeOperationCompressor as _0x442d2f}from'./operationcompressor/attributeoperationcompressor.js';import{InsertOperationCompressor as _0x2b023d}from'./operationcompressor/insertoperationcompressor.js';import{MarkerOperationCompressor as _0x47735c}from'./operationcompressor/markeroperationcompressor.js';import{NoOperationCompressor as _0xf9a6ae}from'./operationcompressor/nooperationcompressor.js';import{AnnotationMarkerOperationCompressor as _0x545769}from'./operationcompressor/annotationmarkeroperationcompressor.js';import{TypingActionCompressor as _0x44bf10}from'./actioncompressor/typingactioncompressor.js';import{DeletingActionCompressor as _0x265f61}from'./actioncompressor/deletingactioncompressor.js';import{ForwardDeletingActionCompressor as _0x23c6ce}from'./actioncompressor/forwarddeletingactioncompressor.js';import{UserSelectionActionCompressor as _0x2d9f49}from'./actioncompressor/userselectionactioncompressor.js';export class Compressor{[_0x41a00a(0xf3)];[_0x41a00a(0x104)];[_0x41a00a(0xed)];constructor(){const _0x243777=_0x41a00a;this[_0x243777(0xf3)]=new Map(),this[_0x243777(0x104)]=new Map(),this[_0x243777(0xed)]=new _0x4ccdd2();const _0x5f0af8=this[_0x243777(0xed)][_0x243777(0x115)](_0x243777(0x106));this[_0x243777(0x114)](0x1,_0x243777(0xff),new _0xf9a6ae(0x1,_0x243777(0xff),void 0x0)),this[_0x243777(0xee)](0xa,_0x243777(0xf1),_0x442d2f),this[_0x243777(0xee)](0xb,_0x243777(0x11d),_0x2b023d),this[_0x243777(0xee)](0xc,_0x243777(0x106),_0x47735c),this[_0x243777(0xee)](0xd,_0x243777(0xf2),_0x189aec),this[_0x243777(0xee)](0xe,_0x243777(0xfc),_0x189aec),this[_0x243777(0xee)](0xf,_0x243777(0x117),_0x189aec),this[_0x243777(0xee)](0x10,_0x243777(0x102),_0x442d2f),this[_0x243777(0xee)](0x11,_0x243777(0x10b),_0x189aec),this[_0x243777(0x114)](0x12,_0x243777(0x10c),new _0x545769(0x12,_0x243777(0x106),_0x5f0af8,_0x243777(0xf5))),this[_0x243777(0x114)](0x13,_0x243777(0xf9),new _0x545769(0x13,_0x243777(0x106),_0x5f0af8,_0x243777(0xec))),this[_0x243777(0xee)](0x14,_0x243777(0xf6),_0x189aec),this[_0x243777(0xf0)](0x64,_0x243777(0x10d),_0x44bf10),this[_0x243777(0xf0)](0x65,_0x243777(0x119),_0x265f61),this[_0x243777(0xf0)](0x66,_0x243777(0x112),_0x23c6ce),this[_0x243777(0xf0)](0x67,_0x243777(0x103),_0x2d9f49);}[_0x41a00a(0xfa)](_0x3cbcf3){const _0x5b7f10=_0x41a00a;if(!_0x3cbcf3||!_0x3cbcf3[0x0])throw new _0x5ba627(_0x5b7f10(0x116),this);const _0x2e8b45={'operations':_0x3cbcf3,'index':0x0},_0x3e4e93={'types':[],'buffers':[],'baseVersion':_0x3cbcf3[0x0][_0x5b7f10(0x109)]};for(;_0x2e8b45[_0x5b7f10(0x101)]<_0x2e8b45[_0x5b7f10(0x110)][_0x5b7f10(0x10e)];){if(this[_0x5b7f10(0x105)](_0x5b7f10(0x103))[_0x5b7f10(0xfa)](_0x3e4e93,_0x2e8b45))continue;if(this[_0x5b7f10(0x105)](_0x5b7f10(0x10d))[_0x5b7f10(0xfa)](_0x3e4e93,_0x2e8b45))continue;if(this[_0x5b7f10(0x105)](_0x5b7f10(0x119))[_0x5b7f10(0xfa)](_0x3e4e93,_0x2e8b45))continue;if(this[_0x5b7f10(0x105)](_0x5b7f10(0x112))[_0x5b7f10(0xfa)](_0x3e4e93,_0x2e8b45))continue;if(this[_0x5b7f10(0x105)](_0x5b7f10(0x10c))[_0x5b7f10(0xfa)](_0x3e4e93,_0x2e8b45))continue;if(this[_0x5b7f10(0x105)](_0x5b7f10(0xf9))[_0x5b7f10(0xfa)](_0x3e4e93,_0x2e8b45))continue;const _0x47293f=_0x2e8b45[_0x5b7f10(0x110)][_0x2e8b45[_0x5b7f10(0x101)]][_0x5b7f10(0xf8)];this[_0x5b7f10(0x105)](_0x47293f)[_0x5b7f10(0xfa)](_0x3e4e93,_0x2e8b45);}return _0x3e4e93;}[_0x41a00a(0x111)](_0x17abf9){const _0x593e1c=_0x41a00a,_0x440a73=[],_0x315c9f={'types':_0x17abf9[_0x593e1c(0x10a)],'buffers':_0x17abf9[_0x593e1c(0x118)],'baseVersion':_0x17abf9[_0x593e1c(0x109)],'typeIndex':0x0,'bufferIndex':0x0};for(;_0x315c9f[_0x593e1c(0x108)]<_0x315c9f[_0x593e1c(0x10a)][_0x593e1c(0x10e)];){const _0x5a101f=_0x315c9f[_0x593e1c(0x10a)][_0x315c9f[_0x593e1c(0x108)]],_0x5d6663=this[_0x593e1c(0xf3)][_0x593e1c(0xfb)](_0x5a101f);if(!_0x5d6663)throw new _0x5ba627(_0x593e1c(0x107),this,{'type':_0x5a101f});_0x5d6663[_0x593e1c(0x111)](_0x440a73,_0x315c9f);}return _0x440a73[_0x593e1c(0xef)]((_0x20608f,_0x1b0d55)=>_0x20608f[_0x593e1c(0x109)]=_0x17abf9[_0x593e1c(0x109)]+_0x1b0d55),_0x440a73;}[_0x41a00a(0x105)](_0x3344d0){const _0x44365f=_0x41a00a;return this[_0x44365f(0x104)][_0x44365f(0xfb)](_0x3344d0);}[_0x41a00a(0xee)](_0x127d02,_0x5c987f,_0x49a3e6){const _0x6d2ce2=_0x41a00a,_0x4a99d3=new _0x49a3e6(_0x127d02,_0x5c987f,this[_0x6d2ce2(0xed)][_0x6d2ce2(0x115)](_0x5c987f));this[_0x6d2ce2(0x114)](_0x127d02,_0x5c987f,_0x4a99d3);}[_0x41a00a(0xf0)](_0x534f35,_0x2afbd0,_0x2bbfbb){const _0x4cfa4b=_0x41a00a,_0xd18083=new _0x2bbfbb(_0x534f35,this);this[_0x4cfa4b(0x114)](_0x534f35,_0x2afbd0,_0xd18083);}[_0x41a00a(0x114)](_0x39419a,_0x2867b7,_0x87d384){const _0x1f72ae=_0x41a00a;this[_0x1f72ae(0xf3)][_0x1f72ae(0x11b)](_0x39419a,_0x87d384),this[_0x1f72ae(0x104)][_0x1f72ae(0x11b)](_0x2867b7,_0x87d384);}}
|
package/src/errors.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2d00(_0x516edb,_0x100108){var _0x519b9d=_0x519b();return _0x2d00=function(_0x2d0094,_0x16c2b4){_0x2d0094=_0x2d0094-0x1c5;var _0x481bd3=_0x519b9d[_0x2d0094];return _0x481bd3;},_0x2d00(_0x516edb,_0x100108);}(function(_0x276f47,_0x4019b4){var _0x529697=_0x2d00,_0x4180d7=_0x276f47();while(!![]){try{var _0x4cd5be=parseInt(_0x529697(0x1c9))/0x1*(-parseInt(_0x529697(0x1c7))/0x2)+parseInt(_0x529697(0x1cc))/0x3+parseInt(_0x529697(0x1cd))/0x4*(-parseInt(_0x529697(0x1cb))/0x5)+parseInt(_0x529697(0x1ca))/0x6*(parseInt(_0x529697(0x1ce))/0x7)+-parseInt(_0x529697(0x1c6))/0x8+parseInt(_0x529697(0x1cf))/0x9*(parseInt(_0x529697(0x1c5))/0xa)+parseInt(_0x529697(0x1c8))/0xb*(parseInt(_0x529697(0x1d0))/0xc);if(_0x4cd5be===_0x4019b4)break;else _0x4180d7['push'](_0x4180d7['shift']());}catch(_0x2c0261){_0x4180d7['push'](_0x4180d7['shift']());}}}(_0x519b,0x4ebe3));function _0x519b(){var _0x18963e=['64032FuOQvr','4VdOkYP','56VdJHch','9cFOLln','1073364wxqJtD','645940afLMqU','1716344wkLusD','21466XAMGjT','55dTaJzc','5vOKMBt','80340MlGRCy','247770cpvCSp'];_0x519b=function(){return _0x18963e;};return _0x519b();}import{CKEditorError as _0x29c84f}from'ckeditor5/src/utils.js';
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4d3055,_0x420fb6){var _0x5a3d17=_0x1a81,_0x388081=_0x4d3055();while(!![]){try{var _0x16d06d=-parseInt(_0x5a3d17(0x108))/0x1+-parseInt(_0x5a3d17(0x104))/0x2+-parseInt(_0x5a3d17(0x109))/0x3*(parseInt(_0x5a3d17(0x105))/0x4)+-parseInt(_0x5a3d17(0x10a))/0x5*(parseInt(_0x5a3d17(0x102))/0x6)+-parseInt(_0x5a3d17(0x107))/0x7*(-parseInt(_0x5a3d17(0x106))/0x8)+parseInt(_0x5a3d17(0x103))/0x9+parseInt(_0x5a3d17(0x101))/0xa*(parseInt(_0x5a3d17(0x10b))/0xb);if(_0x16d06d===_0x420fb6)break;else _0x388081['push'](_0x388081['shift']());}catch(_0x2697a3){_0x388081['push'](_0x388081['shift']());}}}(_0x521b,0x71ac8));function _0x1a81(_0x48e922,_0x4cc0f8){var _0x521b91=_0x521b();return _0x1a81=function(_0x1a8119,_0x4433ee){_0x1a8119=_0x1a8119-0x101;var _0x1920c5=_0x521b91[_0x1a8119];return _0x1920c5;},_0x1a81(_0x48e922,_0x4cc0f8);}export{Compressor}from'./compressor.js';function _0x521b(){var _0x4f0bc9=['109370tNyhiQ','42CkajwV','4560066EmJRQp','1053236xuPFxc','4FjKTqc','6234968HcUIbH','7ixRIey','841408MdOLyS','2566314MZGwsk','536830ZvzLkc','2167KpybOj'];_0x521b=function(){return _0x4f0bc9;};return _0x521b();}
|