@ckeditor/ckeditor5-operations-compressor 47.3.0 → 47.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/dist/index-content.css +1 -1
- package/dist/index-editor.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +3 -3
- package/package.json +4 -4
- package/src/actioncompressor/actioncompressor.d.ts +1 -1
- package/src/actioncompressor/actioncompressor.js +2 -2
- package/src/actioncompressor/deletingactioncompressor.d.ts +1 -1
- package/src/actioncompressor/deletingactioncompressor.js +2 -2
- package/src/actioncompressor/forwarddeletingactioncompressor.d.ts +1 -1
- package/src/actioncompressor/forwarddeletingactioncompressor.js +2 -2
- package/src/actioncompressor/typingactioncompressor.d.ts +1 -1
- package/src/actioncompressor/typingactioncompressor.js +2 -2
- package/src/actioncompressor/userselectionactioncompressor.d.ts +1 -1
- package/src/actioncompressor/userselectionactioncompressor.js +2 -2
- package/src/compressor.d.ts +1 -1
- package/src/compressor.js +2 -2
- package/src/index.d.ts +1 -1
- package/src/index.js +2 -2
- package/src/lib/compiledmessages.js +3 -3
- package/src/lib/protobufdescriptions.js +2 -2
- package/src/operationcompressor/annotationmarkeroperationcompressor.d.ts +1 -1
- package/src/operationcompressor/annotationmarkeroperationcompressor.js +2 -2
- package/src/operationcompressor/attributeoperationcompressor.d.ts +1 -1
- package/src/operationcompressor/attributeoperationcompressor.js +2 -2
- package/src/operationcompressor/insertoperationcompressor.d.ts +1 -1
- package/src/operationcompressor/insertoperationcompressor.js +2 -2
- package/src/operationcompressor/markeroperationcompressor.d.ts +1 -1
- package/src/operationcompressor/markeroperationcompressor.js +2 -2
- package/src/operationcompressor/nooperationcompressor.d.ts +1 -1
- package/src/operationcompressor/nooperationcompressor.js +2 -2
- package/src/operationcompressor/operationcompressor.d.ts +1 -1
- package/src/operationcompressor/operationcompressor.js +2 -2
- package/src/protobuffactory.d.ts +1 -1
- package/src/protobuffactory.js +2 -2
- package/src/utils.d.ts +1 -1
- package/src/utils.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-operations-compressor",
|
|
3
|
-
"version": "47.
|
|
3
|
+
"version": "47.4.0-alpha.1",
|
|
4
4
|
"description": "CKEditor 5 operations compressor for real-time collaboration.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://ckeditor.com/collaboration/real-time/",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"main": "src/index.js",
|
|
34
34
|
"types": "src/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ckeditor/ckeditor5-utils": "47.
|
|
37
|
-
"ckeditor5": "47.
|
|
36
|
+
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.1",
|
|
37
|
+
"ckeditor5": "47.4.0-alpha.1",
|
|
38
38
|
"es-toolkit": "1.39.5",
|
|
39
39
|
"protobufjs": "7.5.0"
|
|
40
40
|
},
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
"./package.json": "./package.json"
|
|
64
64
|
},
|
|
65
65
|
"obfuscated": true
|
|
66
|
-
}
|
|
66
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import type { CompressedOperationsData, Compressor } from '../compressor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, 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
|
|
23
|
+
const _0x560003=_0x5ea4;(function(_0x543839,_0x414425){const _0x32e36b=_0x5ea4,_0x2b0b0f=_0x543839();while(!![]){try{const _0x47d5fe=-parseInt(_0x32e36b(0x100))/0x1*(parseInt(_0x32e36b(0xfd))/0x2)+-parseInt(_0x32e36b(0xf9))/0x3+-parseInt(_0x32e36b(0xfb))/0x4*(-parseInt(_0x32e36b(0x10a))/0x5)+parseInt(_0x32e36b(0x107))/0x6+-parseInt(_0x32e36b(0x104))/0x7*(-parseInt(_0x32e36b(0xfe))/0x8)+-parseInt(_0x32e36b(0x103))/0x9*(parseInt(_0x32e36b(0xf1))/0xa)+parseInt(_0x32e36b(0xf3))/0xb*(-parseInt(_0x32e36b(0xf5))/0xc);if(_0x47d5fe===_0x414425)break;else _0x2b0b0f['push'](_0x2b0b0f['shift']());}catch(_0x184f6d){_0x2b0b0f['push'](_0x2b0b0f['shift']());}}}(_0x54a1,0xa1fef));import{cloneDeep as _0x3d597f}from'es-toolkit/compat';function _0x54a1(){const _0x1c190c=['8977168kVuqcS','length','1LunsTu','_context','compress','844173CsulHV','7ylJmfe','_splitCurrent','_decompressSingleOperation','7016298JnKEnx','_combineNext','_compareOperations','1881890oKoSmj','50mFlThS','_id','11LSRQxY','decompress','16633380XeyHml','shift','_compressSingleOperation','buffers','2209989WJsphK','push','12KFOlwz','types','330730eYCQZq'];_0x54a1=function(){return _0x1c190c;};return _0x54a1();}function _0x5ea4(_0x28f231,_0x13867a){const _0x54a13f=_0x54a1();return _0x5ea4=function(_0x5ea4d2,_0x3c72d1){_0x5ea4d2=_0x5ea4d2-0xf1;let _0x554140=_0x54a13f[_0x5ea4d2];return _0x554140;},_0x5ea4(_0x28f231,_0x13867a);}export class ActionCompressor{[_0x560003(0xf2)];[_0x560003(0x101)];constructor(_0xe88ba4,_0x27ff0a){const _0x2f0f94=_0x560003;this[_0x2f0f94(0xf2)]=_0xe88ba4,this[_0x2f0f94(0x101)]=_0x27ff0a;}[_0x560003(0x102)](_0x1b11df,_0x3dc2a2){const _0x4d54e4=_0x560003;let _0x126988;for(;_0x3dc2a2[_0x4d54e4(0xff)]>0x1&&this[_0x4d54e4(0x109)](_0x3dc2a2[0x0],_0x3dc2a2[0x1]);)_0x126988?(_0x126988=this[_0x4d54e4(0x108)](_0x3dc2a2[_0x4d54e4(0xf6)](),_0x126988),_0x1b11df[_0x4d54e4(0xfc)][_0x4d54e4(0xfa)](0x0)):(_0x126988=_0x3d597f(_0x3dc2a2[_0x4d54e4(0xf6)]()),_0x1b11df[_0x4d54e4(0xfc)][_0x4d54e4(0xfa)](this[_0x4d54e4(0xf2)]));return!!_0x126988&&(_0x126988=this[_0x4d54e4(0x108)](_0x3dc2a2[_0x4d54e4(0xf6)](),_0x126988),_0x1b11df[_0x4d54e4(0xfc)][_0x4d54e4(0xfa)](0x0),_0x1b11df[_0x4d54e4(0xf8)][_0x4d54e4(0xfa)](this[_0x4d54e4(0xf7)](_0x126988)),!0x0);}[_0x560003(0xf4)](_0x35c369,_0x1051b5){const _0x5795ac=_0x560003,_0xcdfe76=this[_0x5795ac(0x106)](_0x1051b5);for(;0x0==_0x1051b5[_0x5795ac(0xfc)][0x0];)_0x1051b5[_0x5795ac(0xfc)][_0x5795ac(0xf6)](),_0x35c369[_0x5795ac(0xfa)](this[_0x5795ac(0x105)](_0xcdfe76));_0x35c369[_0x5795ac(0xfa)](_0xcdfe76);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { ActionCompressor } from './actioncompressor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, 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
|
-
|
|
23
|
+
function _0x4ddc(){const _0x5180ad=['sourcePosition','buffers','24vTROVi','howMany','_decompressSingleOperation','_context','decompress','root','_combineNext','1cakxhK','wasUndone','3924152rFwPZw','5543468iJABvX','370KJkvji','1521WQFnGV','2782209SjGEue','44300kIkcsX','compress','_getCompressorByName','MoveOperation','_compressSingleOperation','45906YAZqCE','$graveyard','__className','4nkyNXW','targetPosition','13767853rVzvkE','_checkOperation','10274giTTQn','_splitCurrent','_compareOperations'];_0x4ddc=function(){return _0x5180ad;};return _0x4ddc();}const _0x557f82=_0x1c47;(function(_0x7f8b6b,_0x5f7c17){const _0x585164=_0x1c47,_0x4c743c=_0x7f8b6b();while(!![]){try{const _0x4f4a6f=-parseInt(_0x585164(0xbd))/0x1*(parseInt(_0x585164(0xb1))/0x2)+parseInt(_0x585164(0xc3))/0x3*(-parseInt(_0x585164(0xcc))/0x4)+parseInt(_0x585164(0xc1))/0x5*(-parseInt(_0x585164(0xc9))/0x6)+-parseInt(_0x585164(0xc0))/0x7+-parseInt(_0x585164(0xbf))/0x8+-parseInt(_0x585164(0xc2))/0x9*(-parseInt(_0x585164(0xc4))/0xa)+parseInt(_0x585164(0xce))/0xb*(parseInt(_0x585164(0xb6))/0xc);if(_0x4f4a6f===_0x5f7c17)break;else _0x4c743c['push'](_0x4c743c['shift']());}catch(_0xf8a4a6){_0x4c743c['push'](_0x4c743c['shift']());}}}(_0x4ddc,0x72ee7));import{ActionCompressor as _0x2d1971}from'./actioncompressor.js';import{arePositionsEqual as _0x42de9e,getPositionShiftedBy as _0x201bcc}from'../utils.js';function _0x1c47(_0x2bae41,_0x62b2dc){const _0x4ddc4b=_0x4ddc();return _0x1c47=function(_0x1c4738,_0x4d151a){_0x1c4738=_0x1c4738-0xb1;let _0x2a343b=_0x4ddc4b[_0x1c4738];return _0x2a343b;},_0x1c47(_0x2bae41,_0x62b2dc);}import{cloneDeep as _0x553b11}from'es-toolkit/compat';export class DeletingActionCompressor extends _0x2d1971{[_0x557f82(0xbc)](_0x288121,_0x8929b0){const _0x44f67f=_0x557f82;return _0x8929b0[_0x44f67f(0xb7)]++,_0x8929b0[_0x44f67f(0xb4)]=_0x553b11(_0x288121[_0x44f67f(0xb4)]),_0x8929b0;}[_0x557f82(0xb2)](_0xd06fb8){const _0x538491=_0x557f82,_0x39adce=_0x553b11(_0xd06fb8);return _0xd06fb8[_0x538491(0xb7)]--,_0x39adce[_0x538491(0xb7)]=0x1,_0x39adce[_0x538491(0xb4)]=_0x201bcc(_0x39adce[_0x538491(0xb4)],_0xd06fb8[_0x538491(0xb7)]),_0x39adce;}[_0x557f82(0xb3)](_0x31bca7,_0x14c9e8){const _0x5a5229=_0x557f82;return!(!this[_0x5a5229(0xcf)](_0x31bca7)||!this[_0x5a5229(0xcf)](_0x14c9e8))&&(_0x42de9e(_0x201bcc(_0x31bca7[_0x5a5229(0xb4)],-0x1),_0x14c9e8[_0x5a5229(0xb4)])&&_0x42de9e(_0x31bca7[_0x5a5229(0xcd)],_0x14c9e8[_0x5a5229(0xcd)]));}[_0x557f82(0xc8)](_0x227cfb){const _0x2966c3=_0x557f82,_0x2213d0={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x2966c3(0xb9)][_0x2966c3(0xc6)](_0x2966c3(0xc7))[_0x2966c3(0xc5)](_0x2213d0,[_0x227cfb]),_0x2213d0[_0x2966c3(0xb5)][0x0];}[_0x557f82(0xb8)](_0x2ed976){const _0x4e977a=_0x557f82,_0x27ff52=[];return this[_0x4e977a(0xb9)][_0x4e977a(0xc6)](_0x4e977a(0xc7))[_0x4e977a(0xba)](_0x27ff52,_0x2ed976),_0x27ff52[0x0];}[_0x557f82(0xcf)](_0x1932e6){const _0x340559=_0x557f82;return _0x340559(0xc7)==_0x1932e6[_0x340559(0xcb)]&&_0x340559(0xca)==_0x1932e6[_0x340559(0xcd)][_0x340559(0xbb)]&&0x1==_0x1932e6[_0x340559(0xb7)]&&!_0x1932e6[_0x340559(0xbe)];}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { ActionCompressor } from './actioncompressor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, 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
|
|
23
|
+
const _0xe71bd=_0x2194;(function(_0x5288e1,_0x50f3cc){const _0x5c0d42=_0x2194,_0x51da0d=_0x5288e1();while(!![]){try{const _0x4013ca=-parseInt(_0x5c0d42(0x151))/0x1*(-parseInt(_0x5c0d42(0x140))/0x2)+parseInt(_0x5c0d42(0x152))/0x3+-parseInt(_0x5c0d42(0x154))/0x4*(-parseInt(_0x5c0d42(0x148))/0x5)+parseInt(_0x5c0d42(0x13f))/0x6*(parseInt(_0x5c0d42(0x14f))/0x7)+-parseInt(_0x5c0d42(0x14e))/0x8*(parseInt(_0x5c0d42(0x158))/0x9)+-parseInt(_0x5c0d42(0x143))/0xa+-parseInt(_0x5c0d42(0x14c))/0xb;if(_0x4013ca===_0x50f3cc)break;else _0x51da0d['push'](_0x51da0d['shift']());}catch(_0x3e99f4){_0x51da0d['push'](_0x51da0d['shift']());}}}(_0x72f8,0x55a26));import{ActionCompressor as _0x705076}from'./actioncompressor.js';import{arePositionsEqual as _0x33a4d2}from'../utils.js';function _0x72f8(){const _0x3753a3=['_combineNext','compress','3437990FdOfZf','$graveyard','howMany','root','_getCompressorByName','30QLVdBT','__className','decompress','_compressSingleOperation','2032657fhbWsW','_splitCurrent','96FRmixs','14EqzECp','_compareOperations','2302AcvgQB','1367808eBKRUQ','wasUndone','432464LnsPXo','_context','MoveOperation','targetPosition','416322Unznyb','_decompressSingleOperation','sourcePosition','buffers','_checkOperation','982518IJctPz','2VNENug'];_0x72f8=function(){return _0x3753a3;};return _0x72f8();}function _0x2194(_0x3aa96c,_0x139cd4){const _0x72f80e=_0x72f8();return _0x2194=function(_0x219466,_0x232c6a){_0x219466=_0x219466-0x13c;let _0x80dd9a=_0x72f80e[_0x219466];return _0x80dd9a;},_0x2194(_0x3aa96c,_0x139cd4);}import{cloneDeep as _0x29a7f1}from'es-toolkit/compat';export class ForwardDeletingActionCompressor extends _0x705076{[_0xe71bd(0x141)](_0x5366de,_0x52e869){const _0x3a256c=_0xe71bd;return _0x52e869[_0x3a256c(0x145)]++,_0x52e869;}[_0xe71bd(0x14d)](_0x47d891){const _0x257fd7=_0xe71bd,_0x48a6a8=_0x29a7f1(_0x47d891);return _0x48a6a8[_0x257fd7(0x145)]=0x1,_0x47d891[_0x257fd7(0x145)]--,_0x48a6a8;}[_0xe71bd(0x150)](_0x170341,_0x2fb35c){const _0x34de3d=_0xe71bd;return!(!this[_0x34de3d(0x13e)](_0x170341)||!this[_0x34de3d(0x13e)](_0x2fb35c))&&(_0x33a4d2(_0x170341[_0x34de3d(0x13c)],_0x2fb35c[_0x34de3d(0x13c)])&&_0x33a4d2(_0x170341[_0x34de3d(0x157)],_0x2fb35c[_0x34de3d(0x157)]));}[_0xe71bd(0x14b)](_0x31c370){const _0x723fe4=_0xe71bd,_0x598aa8={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x723fe4(0x155)][_0x723fe4(0x147)](_0x723fe4(0x156))[_0x723fe4(0x142)](_0x598aa8,[_0x31c370]),_0x598aa8[_0x723fe4(0x13d)][0x0];}[_0xe71bd(0x159)](_0x5e9fb5){const _0x3c623a=_0xe71bd,_0x2c26c4=[];return this[_0x3c623a(0x155)][_0x3c623a(0x147)](_0x3c623a(0x156))[_0x3c623a(0x14a)](_0x2c26c4,_0x5e9fb5),_0x2c26c4[0x0];}[_0xe71bd(0x13e)](_0x1d4a41){const _0x408b35=_0xe71bd;return _0x408b35(0x156)==_0x1d4a41[_0x408b35(0x149)]&&_0x408b35(0x144)==_0x1d4a41[_0x408b35(0x157)][_0x408b35(0x146)]&&0x1==_0x1d4a41[_0x408b35(0x145)]&&!_0x1d4a41[_0x408b35(0x153)];}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { ActionCompressor } from './actioncompressor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, 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
|
|
23
|
+
const _0x28c3f7=_0x4346;(function(_0x275736,_0x2d3870){const _0x3c358a=_0x4346,_0x1beb9c=_0x275736();while(!![]){try{const _0x570f25=-parseInt(_0x3c358a(0xee))/0x1*(-parseInt(_0x3c358a(0xe0))/0x2)+parseInt(_0x3c358a(0xfc))/0x3+-parseInt(_0x3c358a(0xf7))/0x4+parseInt(_0x3c358a(0xe1))/0x5*(parseInt(_0x3c358a(0x104))/0x6)+parseInt(_0x3c358a(0xf4))/0x7*(-parseInt(_0x3c358a(0xe4))/0x8)+-parseInt(_0x3c358a(0xed))/0x9+parseInt(_0x3c358a(0xf3))/0xa*(parseInt(_0x3c358a(0xfb))/0xb);if(_0x570f25===_0x2d3870)break;else _0x1beb9c['push'](_0x1beb9c['shift']());}catch(_0x2b8f25){_0x1beb9c['push'](_0x1beb9c['shift']());}}}(_0x570d,0x1a51e));import{ActionCompressor as _0x562a7e}from'./actioncompressor.js';import{arePositionsEqual as _0x10bfa5,getPositionShiftedBy as _0x21432f}from'../utils.js';import{cloneDeep as _0x2334a6}from'es-toolkit/compat';function _0x570d(){const _0x1b039a=['from','_compareOperations','24ZhCoCd','value','102URajkH','36885TLHKkn','__className','substr','1208wndRbh','_context','length','keys','next','_compressSingleOperation','attributes','wasUndone','nodes','578826efFrOe','905OshaMC','data','_splitCurrent','iterator','_compareAttributes','290Bqpnzo','2065YVgFfJ','_getCompressorByName','every','121444lvfuKF','compress','InsertOperation','_combineNext','8107IgsPYB','449970DEoRwy','_checkOperation','decompress','_decompressSingleOperation','position','buffers'];_0x570d=function(){return _0x1b039a;};return _0x570d();}function _0x4346(_0x3ac844,_0x45c281){const _0x570ddf=_0x570d();return _0x4346=function(_0x4346ad,_0xf539e7){_0x4346ad=_0x4346ad-0xdf;let _0x3776ae=_0x570ddf[_0x4346ad];return _0x3776ae;},_0x4346(_0x3ac844,_0x45c281);}export class TypingActionCompressor extends _0x562a7e{[_0x28c3f7(0xfa)](_0x5c810d,_0xe8bfa6){const _0x24b10d=_0x28c3f7;return _0xe8bfa6[_0x24b10d(0xec)][0x0][_0x24b10d(0xef)]+=_0x5c810d[_0x24b10d(0xec)][0x0][_0x24b10d(0xef)],_0xe8bfa6;}[_0x28c3f7(0xf0)](_0x28e3e7){const _0x3f6202=_0x28c3f7,_0x1dfe2b=_0x2334a6(_0x28e3e7),_0x254d3a=_0x1dfe2b[_0x3f6202(0xec)][0x0],_0x689b5=_0x28e3e7[_0x3f6202(0xec)][0x0],_0x5eef27=_0x689b5[_0x3f6202(0xef)][Symbol[_0x3f6202(0xf1)]]()[_0x3f6202(0xe8)]()[_0x3f6202(0xdf)],_0x4a2c2d=_0x5eef27[_0x3f6202(0xe6)];return _0x254d3a[_0x3f6202(0xef)]=_0x5eef27,_0x689b5[_0x3f6202(0xef)]=_0x689b5[_0x3f6202(0xef)][_0x3f6202(0xe3)](_0x4a2c2d),_0x28e3e7[_0x3f6202(0x100)]=_0x21432f(_0x28e3e7[_0x3f6202(0x100)],_0x4a2c2d),_0x1dfe2b;}[_0x28c3f7(0x103)](_0x310c0b,_0xebd0ad){const _0xd26f3c=_0x28c3f7;if(this[_0xd26f3c(0xfd)](_0x310c0b)&&this[_0xd26f3c(0xfd)](_0xebd0ad)){const _0x196b2b=_0x310c0b[_0xd26f3c(0xec)][0x0][_0xd26f3c(0xef)][_0xd26f3c(0xe6)],_0x40faaf=_0x10bfa5(_0x21432f(_0x310c0b[_0xd26f3c(0x100)],_0x196b2b),_0xebd0ad[_0xd26f3c(0x100)]),_0x3ede8c=_0x310c0b[_0xd26f3c(0xec)][0x0],_0x127e3d=_0xebd0ad[_0xd26f3c(0xec)][0x0];return _0x40faaf&&this[_0xd26f3c(0xf2)](_0x3ede8c,_0x127e3d);}return!0x1;}[_0x28c3f7(0xe9)](_0x42c43b){const _0xbaaf4b=_0x28c3f7,_0x11e745={'types':[],'buffers':[],'baseVersion':0x0};return this[_0xbaaf4b(0xe5)][_0xbaaf4b(0xf5)](_0xbaaf4b(0xf9))[_0xbaaf4b(0xf8)](_0x11e745,[_0x42c43b]),_0x11e745[_0xbaaf4b(0x101)][0x0];}[_0x28c3f7(0xff)](_0x1f601a){const _0x1677de=_0x28c3f7,_0x5c5795=[];return this[_0x1677de(0xe5)][_0x1677de(0xf5)](_0x1677de(0xf9))[_0x1677de(0xfe)](_0x5c5795,_0x1f601a),_0x5c5795[0x0];}[_0x28c3f7(0xfd)](_0x89971d){const _0x3e2a50=_0x28c3f7;return _0x3e2a50(0xf9)==_0x89971d[_0x3e2a50(0xe2)]&&0x1==_0x89971d[_0x3e2a50(0xec)][_0x3e2a50(0xe6)]&&_0x89971d[_0x3e2a50(0xec)][0x0][_0x3e2a50(0xef)]&&!_0x89971d[_0x3e2a50(0xeb)]&&0x1==Array[_0x3e2a50(0x102)](_0x89971d[_0x3e2a50(0xec)][0x0][_0x3e2a50(0xef)])[_0x3e2a50(0xe6)];}[_0x28c3f7(0xf2)](_0x264f00,_0x587e32){const _0x43fd67=_0x28c3f7,_0x386908=Object[_0x43fd67(0xe7)](_0x264f00[_0x43fd67(0xea)]||{}),_0x7bdaa3=Object[_0x43fd67(0xe7)](_0x587e32[_0x43fd67(0xea)]||{});return _0x386908[_0x43fd67(0xe6)]===_0x7bdaa3[_0x43fd67(0xe6)]&&_0x386908[_0x43fd67(0xf6)](_0x546d50=>_0x587e32[_0x43fd67(0xea)][_0x546d50]&&_0x587e32[_0x43fd67(0xea)][_0x546d50]===_0x264f00[_0x43fd67(0xea)][_0x546d50]);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { ActionCompressor } from './actioncompressor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, 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
|
|
23
|
+
const _0x8fac14=_0x24cf;(function(_0x372ca0,_0x1df3ad){const _0x2993ad=_0x24cf,_0x35d4c2=_0x372ca0();while(!![]){try{const _0x33f14e=-parseInt(_0x2993ad(0x1e3))/0x1+parseInt(_0x2993ad(0x1d3))/0x2+parseInt(_0x2993ad(0x1dc))/0x3+-parseInt(_0x2993ad(0x1d4))/0x4+parseInt(_0x2993ad(0x1e8))/0x5*(parseInt(_0x2993ad(0x1cd))/0x6)+-parseInt(_0x2993ad(0x1d5))/0x7*(parseInt(_0x2993ad(0x1e5))/0x8)+-parseInt(_0x2993ad(0x1e6))/0x9;if(_0x33f14e===_0x1df3ad)break;else _0x35d4c2['push'](_0x35d4c2['shift']());}catch(_0x146b00){_0x35d4c2['push'](_0x35d4c2['shift']());}}}(_0x5843,0xeff8f));import{ActionCompressor as _0x230e7c}from'./actioncompressor.js';function _0x24cf(_0xde8336,_0x43a8ba){const _0x584301=_0x5843();return _0x24cf=function(_0x24cf03,_0x439c93){_0x24cf03=_0x24cf03-0x1cd;let _0x20e4bc=_0x584301[_0x24cf03];return _0x20e4bc;},_0x24cf(_0xde8336,_0x43a8ba);}import{arePositionsEqual as _0x2e3cb3}from'../utils.js';function _0x5843(){const _0x2ece2b=['user:','3258872chEjQv','5416404kHKznN','21LIvaVf','compress','decompress','oldRange','shift','_id','user:position:','3838509jjpdQK','types','start','push','buffers','_decompressSingleOperation','toNone','494728bbRNuq','_context','119704maxIrz','17773056TRKIIO','newRange','971245ZJfcJE','_compareOperations','_compressSingleOperation','_getCompressorByName','end','__className','name','60nszUUt','split','MarkerOperation','stickiness','startsWith'];_0x5843=function(){return _0x2ece2b;};return _0x5843();}import{cloneDeep as _0x33ac2f}from'es-toolkit/compat';export class UserSelectionActionCompressor extends _0x230e7c{[_0x8fac14(0x1d6)](_0x2baab7,_0x54a406){const _0xa37360=_0x8fac14;if(!this[_0xa37360(0x1e9)](_0x54a406[0x0],_0x54a406[0x1]))return!0x1;const _0x2e68c2=_0x54a406[_0xa37360(0x1d9)]();return _0x2e68c2[_0xa37360(0x1d8)]=null,_0x2e68c2[_0xa37360(0x1e7)]&&_0x2e3cb3(_0x2e68c2[_0xa37360(0x1e7)][_0xa37360(0x1de)],_0x2e68c2[_0xa37360(0x1e7)][_0xa37360(0x1ec)])&&(_0x2e68c2[_0xa37360(0x1e7)][_0xa37360(0x1ec)]=null),_0x54a406[_0xa37360(0x1d9)](),_0x2baab7[_0xa37360(0x1dd)][_0xa37360(0x1df)](this[_0xa37360(0x1da)]),_0x2baab7[_0xa37360(0x1dd)][_0xa37360(0x1df)](0x0),_0x2baab7[_0xa37360(0x1e0)][_0xa37360(0x1df)](this[_0xa37360(0x1ea)](_0x2e68c2)),!0x0;}[_0x8fac14(0x1d7)](_0xd8a3fa,_0x3ee577){const _0x538e6d=_0x8fac14,_0x1a005e=this[_0x538e6d(0x1e1)](_0x3ee577);_0x1a005e[_0x538e6d(0x1e7)]&&!_0x1a005e[_0x538e6d(0x1e7)][_0x538e6d(0x1ec)]&&(_0x1a005e[_0x538e6d(0x1e7)][_0x538e6d(0x1ec)]=_0x33ac2f(_0x1a005e[_0x538e6d(0x1e7)][_0x538e6d(0x1de)]));const _0x35d45b=_0x33ac2f(_0x1a005e);_0x35d45b[_0x538e6d(0x1e7)]&&(_0x35d45b[_0x538e6d(0x1e7)][_0x538e6d(0x1de)][_0x538e6d(0x1d0)]=_0x538e6d(0x1e2),_0x35d45b[_0x538e6d(0x1e7)][_0x538e6d(0x1ec)]=_0x33ac2f(_0x35d45b[_0x538e6d(0x1e7)][_0x538e6d(0x1de)])),_0x35d45b[_0x538e6d(0x1ee)]=_0x538e6d(0x1db)+_0x35d45b[_0x538e6d(0x1ee)][_0x538e6d(0x1ce)](':')[0x2],_0x3ee577[_0x538e6d(0x1dd)][_0x538e6d(0x1d9)](),_0xd8a3fa[_0x538e6d(0x1df)](_0x1a005e),_0xd8a3fa[_0x538e6d(0x1df)](_0x35d45b);}[_0x8fac14(0x1ea)](_0x4d18b5){const _0x3b4356=_0x8fac14,_0xdea0f3={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x3b4356(0x1e4)][_0x3b4356(0x1eb)](_0x3b4356(0x1cf))[_0x3b4356(0x1d6)](_0xdea0f3,[_0x4d18b5]),_0xdea0f3[_0x3b4356(0x1e0)][0x0];}[_0x8fac14(0x1e1)](_0x47b403){const _0x503f72=_0x8fac14,_0x5e4013=[];return this[_0x503f72(0x1e4)][_0x503f72(0x1eb)](_0x503f72(0x1cf))[_0x503f72(0x1d7)](_0x5e4013,_0x47b403),_0x5e4013[0x0];}[_0x8fac14(0x1e9)](_0x4babf4,_0x53004c){const _0x15a01e=_0x8fac14;return!(!_0x4babf4||!_0x53004c)&&(_0x15a01e(0x1cf)==_0x4babf4[_0x15a01e(0x1ed)]&&_0x15a01e(0x1cf)==_0x53004c[_0x15a01e(0x1ed)]&&!(!_0x4babf4[_0x15a01e(0x1ee)][_0x15a01e(0x1d1)](_0x15a01e(0x1d2))||!_0x53004c[_0x15a01e(0x1ee)][_0x15a01e(0x1d1)](_0x15a01e(0x1d2))||_0x4babf4[_0x15a01e(0x1ee)]==_0x53004c[_0x15a01e(0x1ee)]));}}
|
package/src/compressor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/compressor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, 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
|
|
23
|
+
const _0x5934dd=_0x2682;function _0x325c(){const _0x3e77e3=['_compressorById','_registerOperationCompressor','5225898wvRFcB','2171871jznPsE','1718210CRviGu','_compressorByName','decompress','UserSelectionAction','RenameOperation','DeletingAction','MoveOperation','SuggestionMarkerOperation','4795350VeCbdw','43132056vEadba','22psUTsD','getDescriptor','no-operations-provided','NoOperation','TypingAction','forEach','set','85283hixjkG','InsertOperation','suggestion','length','2Plqpvf','159xIpoeL','_protobufFactory','__className','16kfnENS','decompress-compressor-not-found','_registerActionCompressor','baseVersion','comment','ForwardDeletingAction','compress','RootOperation','MergeOperation','get','7xTriJm','MarkerOperation','_getCompressorByName','AttributeOperation','CommentMarkerOperation','66872ywkDRc','SplitOperation','_registerCompressor','types','RootAttributeOperation'];_0x325c=function(){return _0x3e77e3;};return _0x325c();}(function(_0x4b74dc,_0x481234){const _0xe7170e=_0x2682,_0x3cdf08=_0x4b74dc();while(!![]){try{const _0x1511dd=parseInt(_0xe7170e(0x10a))/0x1*(-parseInt(_0xe7170e(0x10e))/0x2)+parseInt(_0xe7170e(0x10f))/0x3*(-parseInt(_0xe7170e(0x121))/0x4)+parseInt(_0xe7170e(0x12a))/0x5+-parseInt(_0xe7170e(0x128))/0x6*(parseInt(_0xe7170e(0x11c))/0x7)+parseInt(_0xe7170e(0x112))/0x8*(-parseInt(_0xe7170e(0x129))/0x9)+parseInt(_0xe7170e(0x101))/0xa*(-parseInt(_0xe7170e(0x103))/0xb)+parseInt(_0xe7170e(0x102))/0xc;if(_0x1511dd===_0x481234)break;else _0x3cdf08['push'](_0x3cdf08['shift']());}catch(_0xc87c38){_0x3cdf08['push'](_0x3cdf08['shift']());}}}(_0x325c,0x9fa80));import{CKEditorError as _0x57854c}from'ckeditor5/src/utils.js';import{ProtobufFactory as _0x4f71a4}from'./protobuffactory.js';import{OperationCompressor as _0x1c43cd}from'./operationcompressor/operationcompressor.js';import{AttributeOperationCompressor as _0x28dd17}from'./operationcompressor/attributeoperationcompressor.js';import{InsertOperationCompressor as _0x3bdb11}from'./operationcompressor/insertoperationcompressor.js';import{MarkerOperationCompressor as _0x2020d3}from'./operationcompressor/markeroperationcompressor.js';import{NoOperationCompressor as _0x53468d}from'./operationcompressor/nooperationcompressor.js';import{AnnotationMarkerOperationCompressor as _0x32cc45}from'./operationcompressor/annotationmarkeroperationcompressor.js';import{TypingActionCompressor as _0x3d3a2f}from'./actioncompressor/typingactioncompressor.js';import{DeletingActionCompressor as _0x51b624}from'./actioncompressor/deletingactioncompressor.js';import{ForwardDeletingActionCompressor as _0x505f18}from'./actioncompressor/forwarddeletingactioncompressor.js';import{UserSelectionActionCompressor as _0x16ee48}from'./actioncompressor/userselectionactioncompressor.js';function _0x2682(_0x1d103a,_0x4ba88a){const _0x325cd0=_0x325c();return _0x2682=function(_0x268256,_0x1f9242){_0x268256=_0x268256-0xff;let _0x340cb4=_0x325cd0[_0x268256];return _0x340cb4;},_0x2682(_0x1d103a,_0x4ba88a);}export class Compressor{[_0x5934dd(0x126)];[_0x5934dd(0x12b)];[_0x5934dd(0x110)];constructor(){const _0x5777b7=_0x5934dd;this[_0x5777b7(0x126)]=new Map(),this[_0x5777b7(0x12b)]=new Map(),this[_0x5777b7(0x110)]=new _0x4f71a4();const _0x56fb3b=this[_0x5777b7(0x110)][_0x5777b7(0x104)](_0x5777b7(0x11d));this[_0x5777b7(0x123)](0x1,_0x5777b7(0x106),new _0x53468d(0x1,_0x5777b7(0x106),void 0x0)),this[_0x5777b7(0x127)](0xa,_0x5777b7(0x11f),_0x28dd17),this[_0x5777b7(0x127)](0xb,_0x5777b7(0x10b),_0x3bdb11),this[_0x5777b7(0x127)](0xc,_0x5777b7(0x11d),_0x2020d3),this[_0x5777b7(0x127)](0xd,_0x5777b7(0x11a),_0x1c43cd),this[_0x5777b7(0x127)](0xe,_0x5777b7(0xff),_0x1c43cd),this[_0x5777b7(0x127)](0xf,_0x5777b7(0x12e),_0x1c43cd),this[_0x5777b7(0x127)](0x10,_0x5777b7(0x125),_0x28dd17),this[_0x5777b7(0x127)](0x11,_0x5777b7(0x122),_0x1c43cd),this[_0x5777b7(0x123)](0x12,_0x5777b7(0x120),new _0x32cc45(0x12,_0x5777b7(0x11d),_0x56fb3b,_0x5777b7(0x116))),this[_0x5777b7(0x123)](0x13,_0x5777b7(0x100),new _0x32cc45(0x13,_0x5777b7(0x11d),_0x56fb3b,_0x5777b7(0x10c))),this[_0x5777b7(0x127)](0x14,_0x5777b7(0x119),_0x1c43cd),this[_0x5777b7(0x114)](0x64,_0x5777b7(0x107),_0x3d3a2f),this[_0x5777b7(0x114)](0x65,_0x5777b7(0x12f),_0x51b624),this[_0x5777b7(0x114)](0x66,_0x5777b7(0x117),_0x505f18),this[_0x5777b7(0x114)](0x67,_0x5777b7(0x12d),_0x16ee48);}[_0x5934dd(0x118)](_0xdbfd98){const _0x4baaae=_0x5934dd;if(!_0xdbfd98||!_0xdbfd98[0x0])throw new _0x57854c(_0x4baaae(0x105),this);const _0x5cb41d={'types':[],'buffers':[],'baseVersion':_0xdbfd98[0x0][_0x4baaae(0x115)]};for(;_0xdbfd98[_0x4baaae(0x10d)];)this[_0x4baaae(0x11e)](_0x4baaae(0x12d))[_0x4baaae(0x118)](_0x5cb41d,_0xdbfd98)||this[_0x4baaae(0x11e)](_0x4baaae(0x107))[_0x4baaae(0x118)](_0x5cb41d,_0xdbfd98)||this[_0x4baaae(0x11e)](_0x4baaae(0x12f))[_0x4baaae(0x118)](_0x5cb41d,_0xdbfd98)||this[_0x4baaae(0x11e)](_0x4baaae(0x117))[_0x4baaae(0x118)](_0x5cb41d,_0xdbfd98)||this[_0x4baaae(0x11e)](_0x4baaae(0x120))[_0x4baaae(0x118)](_0x5cb41d,_0xdbfd98)||this[_0x4baaae(0x11e)](_0x4baaae(0x100))[_0x4baaae(0x118)](_0x5cb41d,_0xdbfd98)||this[_0x4baaae(0x11e)](_0xdbfd98[0x0][_0x4baaae(0x111)])[_0x4baaae(0x118)](_0x5cb41d,_0xdbfd98);return _0x5cb41d;}[_0x5934dd(0x12c)](_0x53812a){const _0x43e079=_0x5934dd,_0x329240=[];for(;_0x53812a[_0x43e079(0x124)][_0x43e079(0x10d)];){const _0x491bd1=this[_0x43e079(0x126)][_0x43e079(0x11b)](_0x53812a[_0x43e079(0x124)][0x0]);if(!_0x491bd1)throw new _0x57854c(_0x43e079(0x113),this,{'type':_0x53812a[_0x43e079(0x124)][0x0]});_0x491bd1[_0x43e079(0x12c)](_0x329240,_0x53812a);}return _0x329240[_0x43e079(0x108)]((_0x2df938,_0x5cf783)=>_0x2df938[_0x43e079(0x115)]=_0x53812a[_0x43e079(0x115)]+_0x5cf783),_0x329240;}[_0x5934dd(0x11e)](_0x5bf432){const _0x48386c=_0x5934dd;return this[_0x48386c(0x12b)][_0x48386c(0x11b)](_0x5bf432);}[_0x5934dd(0x127)](_0x5cbf5b,_0x130a0c,_0x4594ff){const _0x42b84a=_0x5934dd,_0x4946ef=new _0x4594ff(_0x5cbf5b,_0x130a0c,this[_0x42b84a(0x110)][_0x42b84a(0x104)](_0x130a0c));this[_0x42b84a(0x123)](_0x5cbf5b,_0x130a0c,_0x4946ef);}[_0x5934dd(0x114)](_0x127ca9,_0x2414b9,_0x5c16b5){const _0x4b1224=_0x5934dd,_0x2eab48=new _0x5c16b5(_0x127ca9,this);this[_0x4b1224(0x123)](_0x127ca9,_0x2414b9,_0x2eab48);}[_0x5934dd(0x123)](_0x32340d,_0x26e98c,_0x46e1b7){const _0x430fe0=_0x5934dd;this[_0x430fe0(0x126)][_0x430fe0(0x109)](_0x32340d,_0x46e1b7),this[_0x430fe0(0x12b)][_0x430fe0(0x109)](_0x26e98c,_0x46e1b7);}}
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
export { Compressor, type CompressedOperationsData } from './compressor.js';
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, 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
|
-
(function(
|
|
23
|
+
function _0x4de2(){var _0x370db9=['856JJkZeW','1397024dWSrtu','200egbjSR','5436306XKTLNi','14029719FFkBHV','2331HpFthq','8CFKAkx','190272OEOdRi','3097749GynAmr','5jfUuaY','371736hdIkph'];_0x4de2=function(){return _0x370db9;};return _0x4de2();}function _0x5bd1(_0x9a05b,_0x235255){var _0x4de253=_0x4de2();return _0x5bd1=function(_0x5bd1ff,_0x15e06c){_0x5bd1ff=_0x5bd1ff-0x8e;var _0x433b34=_0x4de253[_0x5bd1ff];return _0x433b34;},_0x5bd1(_0x9a05b,_0x235255);}(function(_0x4b59b4,_0x1bc24c){var _0x25e6d5=_0x5bd1,_0x366f79=_0x4b59b4();while(!![]){try{var _0x53212f=-parseInt(_0x25e6d5(0x91))/0x1*(-parseInt(_0x25e6d5(0x90))/0x2)+-parseInt(_0x25e6d5(0x92))/0x3+parseInt(_0x25e6d5(0x96))/0x4+-parseInt(_0x25e6d5(0x93))/0x5*(-parseInt(_0x25e6d5(0x98))/0x6)+parseInt(_0x25e6d5(0x8f))/0x7*(parseInt(_0x25e6d5(0x95))/0x8)+parseInt(_0x25e6d5(0x94))/0x9*(parseInt(_0x25e6d5(0x97))/0xa)+-parseInt(_0x25e6d5(0x8e))/0xb;if(_0x53212f===_0x1bc24c)break;else _0x366f79['push'](_0x366f79['shift']());}catch(_0x8a956f){_0x366f79['push'](_0x366f79['shift']());}}}(_0x4de2,0x8b2ee));export{Compressor}from'./compressor.js';
|