@ckeditor/ckeditor5-operations-compressor 44.1.0 → 44.2.0-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.
Files changed (54) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/index-content.css +2 -2
  4. package/dist/index-editor.css +2 -2
  5. package/dist/index.css +2 -2
  6. package/dist/index.js +3 -3
  7. package/package.json +21 -3
  8. package/src/actioncompressor/actioncompressor.d.ts +1 -1
  9. package/src/actioncompressor/actioncompressor.js +2 -2
  10. package/src/actioncompressor/deletingactioncompressor.d.ts +1 -1
  11. package/src/actioncompressor/deletingactioncompressor.js +2 -2
  12. package/src/actioncompressor/forwarddeletingactioncompressor.d.ts +1 -1
  13. package/src/actioncompressor/forwarddeletingactioncompressor.js +2 -2
  14. package/src/actioncompressor/typingactioncompressor.d.ts +1 -1
  15. package/src/actioncompressor/typingactioncompressor.js +2 -2
  16. package/src/actioncompressor/userselectionactioncompressor.d.ts +1 -1
  17. package/src/actioncompressor/userselectionactioncompressor.js +2 -2
  18. package/src/compressor.d.ts +1 -1
  19. package/src/compressor.js +2 -2
  20. package/src/index.d.ts +1 -1
  21. package/src/index.js +2 -2
  22. package/src/lib/compiledmessages.js +3 -3
  23. package/src/lib/protobufdescriptions.js +2 -2
  24. package/src/operationcompressor/annotationmarkeroperationcompressor.d.ts +1 -1
  25. package/src/operationcompressor/annotationmarkeroperationcompressor.js +2 -2
  26. package/src/operationcompressor/attributeoperationcompressor.d.ts +1 -1
  27. package/src/operationcompressor/attributeoperationcompressor.js +2 -2
  28. package/src/operationcompressor/insertoperationcompressor.d.ts +1 -1
  29. package/src/operationcompressor/insertoperationcompressor.js +2 -2
  30. package/src/operationcompressor/markeroperationcompressor.d.ts +1 -1
  31. package/src/operationcompressor/markeroperationcompressor.js +2 -2
  32. package/src/operationcompressor/nooperationcompressor.d.ts +1 -1
  33. package/src/operationcompressor/nooperationcompressor.js +2 -2
  34. package/src/operationcompressor/operationcompressor.d.ts +1 -1
  35. package/src/operationcompressor/operationcompressor.js +2 -2
  36. package/src/protobuffactory.d.ts +1 -1
  37. package/src/protobuffactory.js +2 -2
  38. package/src/utils.d.ts +1 -1
  39. package/src/utils.js +2 -2
  40. package/dist/actioncompressor/actioncompressor.d.ts +0 -64
  41. package/dist/actioncompressor/deletingactioncompressor.d.ts +0 -32
  42. package/dist/actioncompressor/forwarddeletingactioncompressor.d.ts +0 -32
  43. package/dist/actioncompressor/typingactioncompressor.d.ts +0 -32
  44. package/dist/actioncompressor/userselectionactioncompressor.d.ts +0 -20
  45. package/dist/compressor.d.ts +0 -49
  46. package/dist/index.d.ts +0 -9
  47. package/dist/operationcompressor/annotationmarkeroperationcompressor.d.ts +0 -26
  48. package/dist/operationcompressor/attributeoperationcompressor.d.ts +0 -21
  49. package/dist/operationcompressor/insertoperationcompressor.d.ts +0 -21
  50. package/dist/operationcompressor/markeroperationcompressor.d.ts +0 -17
  51. package/dist/operationcompressor/nooperationcompressor.d.ts +0 -24
  52. package/dist/operationcompressor/operationcompressor.d.ts +0 -32
  53. package/dist/protobuffactory.d.ts +0 -9
  54. package/dist/utils.d.ts +0 -34
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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 _0x15b554=_0x4f39;(function(_0x57421c,_0xeb892d){const _0x348bd4=_0x4f39,_0x14ec70=_0x57421c();while(!![]){try{const _0x3895c7=parseInt(_0x348bd4(0x115))/0x1*(parseInt(_0x348bd4(0x12c))/0x2)+parseInt(_0x348bd4(0x117))/0x3+parseInt(_0x348bd4(0x10f))/0x4+-parseInt(_0x348bd4(0x12d))/0x5*(parseInt(_0x348bd4(0x124))/0x6)+parseInt(_0x348bd4(0x119))/0x7+-parseInt(_0x348bd4(0x111))/0x8+parseInt(_0x348bd4(0x11b))/0x9*(-parseInt(_0x348bd4(0x123))/0xa);if(_0x3895c7===_0xeb892d)break;else _0x14ec70['push'](_0x14ec70['shift']());}catch(_0x5521f){_0x14ec70['push'](_0x14ec70['shift']());}}}(_0x21ef,0x6fa03));import _0x2c47f7 from'./operationcompressor.js';function _0x4f39(_0x2f7715,_0x4ee6cb){const _0x21ef38=_0x21ef();return _0x4f39=function(_0x4f3979,_0x3eecce){_0x4f3979=_0x4f3979-0x10d;let _0x4c5f48=_0x21ef38[_0x4f3979];return _0x4c5f48;},_0x4f39(_0x2f7715,_0x4ee6cb);}import{parsePositionBeforeCompression as _0x18b40a,parsePositionAfterCompression as _0x13d839}from'../utils.js';export default class i extends _0x2c47f7{[_0x15b554(0x121)](_0x2b87e7,_0x21e6ae){const _0x5570bc=_0x15b554,_0x5a18c2=_0x21e6ae[_0x5570bc(0x11a)]();return this[_0x5570bc(0x129)](_0x5a18c2[_0x5570bc(0x118)]),_0x18b40a(_0x5a18c2),_0x2b87e7[_0x5570bc(0x12b)][_0x5570bc(0x11f)](this[_0x5570bc(0x126)][_0x5570bc(0x121)](_0x5a18c2)),_0x2b87e7[_0x5570bc(0x112)][_0x5570bc(0x11f)](this[_0x5570bc(0x110)]),!0x0;}[_0x15b554(0x12a)](_0x3db761,_0x1bbcba){const _0x579eb1=_0x15b554,{types:_0x38093f,buffers:_0xb1d4bf}=_0x1bbcba,_0x2fa3b9=this[_0x579eb1(0x126)][_0x579eb1(0x12a)](_0xb1d4bf[_0x579eb1(0x11a)]());_0x38093f[_0x579eb1(0x11a)](),_0x2fa3b9[_0x579eb1(0x118)]||(_0x2fa3b9[_0x579eb1(0x118)]=[]),this[_0x579eb1(0x113)](_0x2fa3b9[_0x579eb1(0x118)]),_0x13d839(_0x2fa3b9),_0x2fa3b9[_0x579eb1(0x127)]=this[_0x579eb1(0x10d)],_0x3db761[_0x579eb1(0x11f)](_0x2fa3b9);}[_0x15b554(0x129)](_0x4784a9){const _0x19838e=_0x15b554;for(const _0x104817 of _0x4784a9){if(_0x104817[_0x19838e(0x128)]){const _0x19e54e=_0x104817[_0x19838e(0x128)];this[_0x19838e(0x120)](_0x19e54e)?_0x104817[_0x19838e(0x114)]=_0x19e54e:_0x104817[_0x19838e(0x11e)]=JSON[_0x19838e(0x116)](_0x19e54e);}_0x104817[_0x19838e(0x11d)]&&this[_0x19838e(0x129)](_0x104817[_0x19838e(0x11d)]);}}[_0x15b554(0x113)](_0x1124c9){const _0x5e03fc=_0x15b554;for(const _0x558658 of _0x1124c9)(_0x558658[_0x5e03fc(0x114)]||_0x558658[_0x5e03fc(0x11e)])&&(_0x558658[_0x5e03fc(0x114)]?(_0x558658[_0x5e03fc(0x128)]=_0x558658[_0x5e03fc(0x114)],delete _0x558658[_0x5e03fc(0x114)]):(_0x558658[_0x5e03fc(0x128)]=JSON[_0x5e03fc(0x122)](_0x558658[_0x5e03fc(0x11e)]),delete _0x558658[_0x5e03fc(0x11e)])),_0x558658[_0x5e03fc(0x11d)]&&this[_0x5e03fc(0x113)](_0x558658[_0x5e03fc(0x11d)]);}[_0x15b554(0x120)](_0x2cb211){const _0x4f8f6e=_0x15b554;return Object[_0x4f8f6e(0x11c)](_0x2cb211)[_0x4f8f6e(0x125)](_0x3b0a3c=>_0x4f8f6e(0x10e)==typeof _0x2cb211[_0x3b0a3c]);}}function _0x21ef(){const _0x141f36=['5QkkMum','_operationName','boolean','2150776TOSKTH','_id','2346584GEkGFG','types','_deserializeNodesAttributes','attributesBoolean','616763xxpgLB','stringify','2420811WbdXTP','nodes','6017872pWHaNq','shift','3905973gjQtHS','keys','children','attributesJson','push','_areValuesBoolean','compress','parse','30dlqwZs','4611342FpCAsQ','every','_protobufDescriptor','__className','attributes','_serializeNodesAttributes','decompress','buffers','2mvpABP'];_0x21ef=function(){return _0x141f36;};return _0x21ef();}
23
+ function _0x3e31(_0x467112,_0x56ca3b){const _0x1ecd95=_0x1ecd();return _0x3e31=function(_0x3e31d0,_0x24d21b){_0x3e31d0=_0x3e31d0-0x1b9;let _0x3455f9=_0x1ecd95[_0x3e31d0];return _0x3455f9;},_0x3e31(_0x467112,_0x56ca3b);}const _0x55d39e=_0x3e31;(function(_0xd6689d,_0x112ff4){const _0x425fc3=_0x3e31,_0x344aef=_0xd6689d();while(!![]){try{const _0x5f0cca=-parseInt(_0x425fc3(0x1b9))/0x1*(parseInt(_0x425fc3(0x1d1))/0x2)+parseInt(_0x425fc3(0x1d3))/0x3+parseInt(_0x425fc3(0x1bd))/0x4*(parseInt(_0x425fc3(0x1bc))/0x5)+-parseInt(_0x425fc3(0x1c4))/0x6*(-parseInt(_0x425fc3(0x1c8))/0x7)+-parseInt(_0x425fc3(0x1d9))/0x8*(parseInt(_0x425fc3(0x1db))/0x9)+-parseInt(_0x425fc3(0x1c3))/0xa+parseInt(_0x425fc3(0x1d6))/0xb*(-parseInt(_0x425fc3(0x1bf))/0xc);if(_0x5f0cca===_0x112ff4)break;else _0x344aef['push'](_0x344aef['shift']());}catch(_0x28f528){_0x344aef['push'](_0x344aef['shift']());}}}(_0x1ecd,0x667b1));import _0x447c96 from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x35ca9c,parsePositionAfterCompression as _0x5b7db8}from'../utils.js';export default class i extends _0x447c96{[_0x55d39e(0x1c9)](_0x300b56,_0x8107f9){const _0x20680e=_0x55d39e,_0x1460b7=_0x8107f9[_0x20680e(0x1d4)]();return this[_0x20680e(0x1c6)](_0x1460b7[_0x20680e(0x1cb)]),_0x35ca9c(_0x1460b7),_0x300b56[_0x20680e(0x1c7)][_0x20680e(0x1d8)](this[_0x20680e(0x1c5)][_0x20680e(0x1c9)](_0x1460b7)),_0x300b56[_0x20680e(0x1ce)][_0x20680e(0x1d8)](this[_0x20680e(0x1d2)]),!0x0;}[_0x55d39e(0x1cc)](_0x21b8a6,_0x25a41c){const _0x47be13=_0x55d39e,{types:_0x4d122d,buffers:_0x2c5d87}=_0x25a41c,_0x34aae6=this[_0x47be13(0x1c5)][_0x47be13(0x1cc)](_0x2c5d87[_0x47be13(0x1d4)]());_0x4d122d[_0x47be13(0x1d4)](),_0x34aae6[_0x47be13(0x1cb)]||(_0x34aae6[_0x47be13(0x1cb)]=[]),this[_0x47be13(0x1c0)](_0x34aae6[_0x47be13(0x1cb)]),_0x5b7db8(_0x34aae6),_0x34aae6[_0x47be13(0x1ba)]=this[_0x47be13(0x1cd)],_0x21b8a6[_0x47be13(0x1d8)](_0x34aae6);}[_0x55d39e(0x1c6)](_0x1e8c71){const _0x32dcca=_0x55d39e;for(const _0x3b72ab of _0x1e8c71){if(_0x3b72ab[_0x32dcca(0x1be)]){const _0x384988=_0x3b72ab[_0x32dcca(0x1be)];this[_0x32dcca(0x1d5)](_0x384988)?_0x3b72ab[_0x32dcca(0x1da)]=_0x384988:_0x3b72ab[_0x32dcca(0x1d7)]=JSON[_0x32dcca(0x1cf)](_0x384988);}_0x3b72ab[_0x32dcca(0x1bb)]&&this[_0x32dcca(0x1c6)](_0x3b72ab[_0x32dcca(0x1bb)]);}}[_0x55d39e(0x1c0)](_0xace7e8){const _0x35458d=_0x55d39e;for(const _0x42b87e of _0xace7e8)(_0x42b87e[_0x35458d(0x1da)]||_0x42b87e[_0x35458d(0x1d7)])&&(_0x42b87e[_0x35458d(0x1da)]?(_0x42b87e[_0x35458d(0x1be)]=_0x42b87e[_0x35458d(0x1da)],delete _0x42b87e[_0x35458d(0x1da)]):(_0x42b87e[_0x35458d(0x1be)]=JSON[_0x35458d(0x1d0)](_0x42b87e[_0x35458d(0x1d7)]),delete _0x42b87e[_0x35458d(0x1d7)])),_0x42b87e[_0x35458d(0x1bb)]&&this[_0x35458d(0x1c0)](_0x42b87e[_0x35458d(0x1bb)]);}[_0x55d39e(0x1d5)](_0x400afe){const _0x4c2c20=_0x55d39e;return Object[_0x4c2c20(0x1ca)](_0x400afe)[_0x4c2c20(0x1c1)](_0x109fb8=>_0x4c2c20(0x1c2)==typeof _0x400afe[_0x109fb8]);}}function _0x1ecd(){const _0x31c2bd=['_operationName','types','stringify','parse','71092CbXPRO','_id','1847271fMKBJv','shift','_areValuesBoolean','22haYIiP','attributesJson','push','440fyVEvi','attributesBoolean','28125oxKAhA','20dExDuD','__className','children','20790RAuBWn','720GIobnm','attributes','1906068NpGrYd','_deserializeNodesAttributes','every','boolean','4480570HFvVDJ','704094GYQLXR','_protobufDescriptor','_serializeNodesAttributes','buffers','42ppMzOq','compress','keys','nodes','decompress'];_0x1ecd=function(){return _0x31c2bd;};return _0x1ecd();}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, 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 OperationCompressor from './operationcompressor.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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 _0x399c(_0x3eb8e4,_0xc72b18){const _0x4f140d=_0x4f14();return _0x399c=function(_0x399ca2,_0x18af74){_0x399ca2=_0x399ca2-0x142;let _0x8b8ad4=_0x4f140d[_0x399ca2];return _0x8b8ad4;},_0x399c(_0x3eb8e4,_0xc72b18);}const _0xcf677e=_0x399c;(function(_0x53fd63,_0x3eeea5){const _0x38b785=_0x399c,_0x11e82d=_0x53fd63();while(!![]){try{const _0x730d6d=-parseInt(_0x38b785(0x142))/0x1+parseInt(_0x38b785(0x14d))/0x2+-parseInt(_0x38b785(0x145))/0x3+parseInt(_0x38b785(0x14c))/0x4+-parseInt(_0x38b785(0x14a))/0x5+parseInt(_0x38b785(0x146))/0x6*(parseInt(_0x38b785(0x149))/0x7)+-parseInt(_0x38b785(0x147))/0x8*(parseInt(_0x38b785(0x148))/0x9);if(_0x730d6d===_0x3eeea5)break;else _0x11e82d['push'](_0x11e82d['shift']());}catch(_0x48dcec){_0x11e82d['push'](_0x11e82d['shift']());}}}(_0x4f14,0xa796b));function _0x4f14(){const _0x3f5eb7=['7983aLSmYx','154REnSRn','562870DSJIvx','decompress','1841400HhDlAo','2741986pBehmr','oldRange','30524sJtXjs','length','newRange','887979OlXjOF','325434axuFiN','17128RBtYkt'];_0x4f14=function(){return _0x3f5eb7;};return _0x4f14();}import _0x222e26 from'./operationcompressor.js';export default class n extends _0x222e26{[_0xcf677e(0x14b)](_0x2aab53,_0x145689){const _0x3ab645=_0xcf677e;super[_0x3ab645(0x14b)](_0x2aab53,_0x145689);const _0x50a0d9=_0x2aab53[_0x2aab53[_0x3ab645(0x143)]-0x1];_0x50a0d9[_0x3ab645(0x14e)]||(_0x50a0d9[_0x3ab645(0x14e)]=null),_0x50a0d9[_0x3ab645(0x144)]||(_0x50a0d9[_0x3ab645(0x144)]=null);}}
23
+ const _0x518d8e=_0x150b;(function(_0x473fd8,_0x169320){const _0x39331f=_0x150b,_0x4ee239=_0x473fd8();while(!![]){try{const _0x544e0c=-parseInt(_0x39331f(0xf6))/0x1+parseInt(_0x39331f(0xea))/0x2*(-parseInt(_0x39331f(0xf3))/0x3)+-parseInt(_0x39331f(0xed))/0x4+parseInt(_0x39331f(0xf2))/0x5*(parseInt(_0x39331f(0xf0))/0x6)+parseInt(_0x39331f(0xf5))/0x7*(-parseInt(_0x39331f(0xf4))/0x8)+parseInt(_0x39331f(0xec))/0x9+parseInt(_0x39331f(0xf7))/0xa;if(_0x544e0c===_0x169320)break;else _0x4ee239['push'](_0x4ee239['shift']());}catch(_0x55c858){_0x4ee239['push'](_0x4ee239['shift']());}}}(_0x1e8e,0x64de0));function _0x150b(_0x3d475d,_0x4a8fc7){const _0x1e8ed9=_0x1e8e();return _0x150b=function(_0x150b01,_0x3eee69){_0x150b01=_0x150b01-0xea;let _0x1b4e8c=_0x1e8ed9[_0x150b01];return _0x1b4e8c;},_0x150b(_0x3d475d,_0x4a8fc7);}import _0x5e991c from'./operationcompressor.js';function _0x1e8e(){const _0x2b9856=['11175970gwWueZ','738134xYvjWJ','oldRange','6008670gzzNRM','2387064QfkeqS','newRange','length','10614Tkalyh','decompress','1335noFCzs','3hwbTFv','5779016VuFrTy','7Kuccol','156188TusHQt'];_0x1e8e=function(){return _0x2b9856;};return _0x1e8e();}export default class n extends _0x5e991c{[_0x518d8e(0xf1)](_0x3479a6,_0xa75d2d){const _0x9404f1=_0x518d8e;super[_0x9404f1(0xf1)](_0x3479a6,_0xa75d2d);const _0x16bdb4=_0x3479a6[_0x3479a6[_0x9404f1(0xef)]-0x1];_0x16bdb4[_0x9404f1(0xeb)]||(_0x16bdb4[_0x9404f1(0xeb)]=null),_0x16bdb4[_0x9404f1(0xee)]||(_0x16bdb4[_0x9404f1(0xee)]=null);}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, 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 OperationCompressor from './operationcompressor.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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 _0x3869fb=_0x4756;(function(_0x1c764d,_0x690924){var _0x14ab02=_0x4756,_0x323f21=_0x1c764d();while(!![]){try{var _0xad0263=-parseInt(_0x14ab02(0x1bf))/0x1*(-parseInt(_0x14ab02(0x1c2))/0x2)+parseInt(_0x14ab02(0x1b4))/0x3+parseInt(_0x14ab02(0x1bb))/0x4+-parseInt(_0x14ab02(0x1be))/0x5*(parseInt(_0x14ab02(0x1b8))/0x6)+parseInt(_0x14ab02(0x1c1))/0x7+-parseInt(_0x14ab02(0x1bd))/0x8+-parseInt(_0x14ab02(0x1b9))/0x9;if(_0xad0263===_0x690924)break;else _0x323f21['push'](_0x323f21['shift']());}catch(_0x2995c9){_0x323f21['push'](_0x323f21['shift']());}}}(_0x27d4,0x83d58));function _0x4756(_0x113abd,_0x42152f){var _0x27d4e6=_0x27d4();return _0x4756=function(_0x4756a5,_0x1f1899){_0x4756a5=_0x4756a5-0x1b4;var _0x329aaa=_0x27d4e6[_0x4756a5];return _0x329aaa;},_0x4756(_0x113abd,_0x42152f);}function _0x27d4(){var _0x156973=['decompress','types','compress','234PevRjO','11851524maATjA','_id','2188028nfNNxh','_operationName','6379208UJPCqZ','34665GdrEnU','16429HHBQIu','push','4374608VcAtNk','108mgGQJw','shift','2596497PRHlpK'];_0x27d4=function(){return _0x156973;};return _0x27d4();}import _0x465622 from'./operationcompressor.js';export default class p extends _0x465622{[_0x3869fb(0x1b7)](_0x171c11,_0xeb00ef){var _0x30b768=_0x3869fb;return _0xeb00ef[_0x30b768(0x1c3)](),_0x171c11[_0x30b768(0x1b6)][_0x30b768(0x1c0)](this[_0x30b768(0x1ba)]),!0x0;}[_0x3869fb(0x1b5)](_0x16ecd5,_0x3bfbbe){var _0x2265d3=_0x3869fb;_0x3bfbbe[_0x2265d3(0x1b6)][_0x2265d3(0x1c3)](),_0x16ecd5[_0x2265d3(0x1c0)]({'__className':this[_0x2265d3(0x1bc)]});}}
23
+ function _0x2d4d(_0x30b774,_0x41aac4){var _0x1b0348=_0x1b03();return _0x2d4d=function(_0x2d4da5,_0x51806f){_0x2d4da5=_0x2d4da5-0x18a;var _0x43bc22=_0x1b0348[_0x2d4da5];return _0x43bc22;},_0x2d4d(_0x30b774,_0x41aac4);}function _0x1b03(){var _0x456c8a=['55657NMKrnV','push','compress','1167166FrMRpV','80649uEJNUT','24aEaDmD','shift','1092462wRJobh','decompress','_id','33465wXlPrT','618ckTcsO','1714788nmroIp','2290piwCSi','_operationName','types','5517576JuXBZd'];_0x1b03=function(){return _0x456c8a;};return _0x1b03();}var _0x573a20=_0x2d4d;(function(_0x2eb62b,_0x101fb7){var _0x403b7b=_0x2d4d,_0x5135ad=_0x2eb62b();while(!![]){try{var _0x2a132f=parseInt(_0x403b7b(0x197))/0x1*(parseInt(_0x403b7b(0x18b))/0x2)+-parseInt(_0x403b7b(0x18d))/0x3+-parseInt(_0x403b7b(0x192))/0x4+-parseInt(_0x403b7b(0x190))/0x5*(parseInt(_0x403b7b(0x191))/0x6)+-parseInt(_0x403b7b(0x19a))/0x7+-parseInt(_0x403b7b(0x196))/0x8+parseInt(_0x403b7b(0x18a))/0x9*(parseInt(_0x403b7b(0x193))/0xa);if(_0x2a132f===_0x101fb7)break;else _0x5135ad['push'](_0x5135ad['shift']());}catch(_0x175060){_0x5135ad['push'](_0x5135ad['shift']());}}}(_0x1b03,0x5d168));import _0x2eea8e from'./operationcompressor.js';export default class p extends _0x2eea8e{[_0x573a20(0x199)](_0x1ccf07,_0x5cc9d9){var _0x26dc90=_0x573a20;return _0x5cc9d9[_0x26dc90(0x18c)](),_0x1ccf07[_0x26dc90(0x195)][_0x26dc90(0x198)](this[_0x26dc90(0x18f)]),!0x0;}[_0x573a20(0x18e)](_0x544f24,_0x40833){var _0x4f2cc9=_0x573a20;_0x40833[_0x4f2cc9(0x195)][_0x4f2cc9(0x18c)](),_0x544f24[_0x4f2cc9(0x198)]({'__className':this[_0x4f2cc9(0x194)]});}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, 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 } from '../compressor.js';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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 _0x184a60=_0x4a3e;(function(_0x5f169c,_0x569a5b){const _0x1887ef=_0x4a3e,_0x1770dd=_0x5f169c();while(!![]){try{const _0x35b29a=-parseInt(_0x1887ef(0xf8))/0x1*(parseInt(_0x1887ef(0xf3))/0x2)+parseInt(_0x1887ef(0xef))/0x3+parseInt(_0x1887ef(0xf1))/0x4*(parseInt(_0x1887ef(0xfc))/0x5)+-parseInt(_0x1887ef(0xff))/0x6*(parseInt(_0x1887ef(0xf5))/0x7)+-parseInt(_0x1887ef(0xf6))/0x8+parseInt(_0x1887ef(0x101))/0x9+parseInt(_0x1887ef(0xf7))/0xa*(-parseInt(_0x1887ef(0xf2))/0xb);if(_0x35b29a===_0x569a5b)break;else _0x1770dd['push'](_0x1770dd['shift']());}catch(_0xc142b){_0x1770dd['push'](_0x1770dd['shift']());}}}(_0x54f9,0xa2da4));function _0x4a3e(_0x1ad3c7,_0x2c88c2){const _0x54f9d6=_0x54f9();return _0x4a3e=function(_0x4a3ea4,_0x2a3817){_0x4a3ea4=_0x4a3ea4-0xef;let _0x5230d3=_0x54f9d6[_0x4a3ea4];return _0x5230d3;},_0x4a3e(_0x1ad3c7,_0x2c88c2);}function _0x54f9(){const _0x12f50f=['11353662BDGeUY','_protobufDescriptor','_operationName','2512842bLNZOj','push','93408oAKGMR','209YKHVSR','2513848kCgfAL','buffers','119yZNEjX','108032RwBRUx','168020GIYAkZ','1fEoLDN','_id','types','__className','180ZcXhqF','compress','decompress','241092bJAshl','shift'];_0x54f9=function(){return _0x12f50f;};return _0x54f9();}import{parsePositionBeforeCompression as _0x42dac9,parsePositionAfterCompression as _0x38bb9f}from'../utils.js';export default class e{constructor(_0x9dedaf,_0x565b58,_0x17bb35){const _0x4e4b8b=_0x4a3e;this[_0x4e4b8b(0xf9)]=_0x9dedaf,this[_0x4e4b8b(0x103)]=_0x565b58,this[_0x4e4b8b(0x102)]=_0x17bb35;}[_0x184a60(0xfd)](_0xcfcf6,_0x2c27f1){const _0xd753aa=_0x184a60,_0x16bab7=_0x2c27f1[_0xd753aa(0x100)]();return _0x42dac9(_0x16bab7),_0xcfcf6[_0xd753aa(0xf4)][_0xd753aa(0xf0)](this[_0xd753aa(0x102)][_0xd753aa(0xfd)](_0x16bab7)),_0xcfcf6[_0xd753aa(0xfa)][_0xd753aa(0xf0)](this[_0xd753aa(0xf9)]),!0x0;}[_0x184a60(0xfe)](_0x34c931,_0x5a1844){const _0x4af2c9=_0x184a60;_0x5a1844[_0x4af2c9(0xfa)][_0x4af2c9(0x100)]();const _0x5c11d0=this[_0x4af2c9(0x102)][_0x4af2c9(0xfe)](_0x5a1844[_0x4af2c9(0xf4)][_0x4af2c9(0x100)]());_0x38bb9f(_0x5c11d0),_0x5c11d0[_0x4af2c9(0xfb)]=this[_0x4af2c9(0x103)],_0x34c931[_0x4af2c9(0xf0)](_0x5c11d0);}}
23
+ const _0x2e0ffa=_0x547d;(function(_0x31958c,_0x490a90){const _0x445bd0=_0x547d,_0x577144=_0x31958c();while(!![]){try{const _0x2659e6=parseInt(_0x445bd0(0x11a))/0x1*(parseInt(_0x445bd0(0x112))/0x2)+parseInt(_0x445bd0(0x121))/0x3+parseInt(_0x445bd0(0x113))/0x4*(parseInt(_0x445bd0(0x11f))/0x5)+parseInt(_0x445bd0(0x119))/0x6*(parseInt(_0x445bd0(0x125))/0x7)+-parseInt(_0x445bd0(0x11b))/0x8*(-parseInt(_0x445bd0(0x114))/0x9)+-parseInt(_0x445bd0(0x116))/0xa+-parseInt(_0x445bd0(0x118))/0xb*(parseInt(_0x445bd0(0x120))/0xc);if(_0x2659e6===_0x490a90)break;else _0x577144['push'](_0x577144['shift']());}catch(_0x2d92f6){_0x577144['push'](_0x577144['shift']());}}}(_0x554a,0x1dfef));function _0x547d(_0xb45b2b,_0x41b491){const _0x554aed=_0x554a();return _0x547d=function(_0x547d8a,_0x47c204){_0x547d8a=_0x547d8a-0x110;let _0x256755=_0x554aed[_0x547d8a];return _0x256755;},_0x547d(_0xb45b2b,_0x41b491);}import{parsePositionBeforeCompression as _0x351fe9,parsePositionAfterCompression as _0x34e01c}from'../utils.js';function _0x554a(){const _0x1cac7d=['21408XvsTRI','45825ZvQWTY','types','_operationName','buffers','49kOkhAL','__className','shift','2iYSDsr','61484SCczMU','18fTneGR','_id','1143330XPqlbF','_protobufDescriptor','1408FEeVBh','55158bzokuS','145509IvgoKn','900168BPtqfj','decompress','compress','push','5UUMjFh'];_0x554a=function(){return _0x1cac7d;};return _0x554a();}export default class e{constructor(_0x26630c,_0x562b11,_0x299f4c){const _0x255209=_0x547d;this[_0x255209(0x115)]=_0x26630c,this[_0x255209(0x123)]=_0x562b11,this[_0x255209(0x117)]=_0x299f4c;}[_0x2e0ffa(0x11d)](_0x32948e,_0x550dd7){const _0x9c41bf=_0x2e0ffa,_0x236fdd=_0x550dd7[_0x9c41bf(0x111)]();return _0x351fe9(_0x236fdd),_0x32948e[_0x9c41bf(0x124)][_0x9c41bf(0x11e)](this[_0x9c41bf(0x117)][_0x9c41bf(0x11d)](_0x236fdd)),_0x32948e[_0x9c41bf(0x122)][_0x9c41bf(0x11e)](this[_0x9c41bf(0x115)]),!0x0;}[_0x2e0ffa(0x11c)](_0x10fa8b,_0x5b8cb1){const _0x4c2c51=_0x2e0ffa;_0x5b8cb1[_0x4c2c51(0x122)][_0x4c2c51(0x111)]();const _0x50d96e=this[_0x4c2c51(0x117)][_0x4c2c51(0x11c)](_0x5b8cb1[_0x4c2c51(0x124)][_0x4c2c51(0x111)]());_0x34e01c(_0x50d96e),_0x50d96e[_0x4c2c51(0x110)]=this[_0x4c2c51(0x123)],_0x10fa8b[_0x4c2c51(0x11e)](_0x50d96e);}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, 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 {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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 _0x4bff71=_0x33f4;function _0x33f4(_0x4b7466,_0x4d01d3){const _0x102a60=_0x102a();return _0x33f4=function(_0x33f42c,_0x2f2e47){_0x33f42c=_0x33f42c-0x162;let _0x22a4b5=_0x102a60[_0x33f42c];return _0x22a4b5;},_0x33f4(_0x4b7466,_0x4d01d3);}(function(_0x490539,_0x2a6e0d){const _0x419a36=_0x33f4,_0x4c5f58=_0x490539();while(!![]){try{const _0x190410=-parseInt(_0x419a36(0x165))/0x1*(-parseInt(_0x419a36(0x164))/0x2)+-parseInt(_0x419a36(0x16f))/0x3+-parseInt(_0x419a36(0x173))/0x4+parseInt(_0x419a36(0x175))/0x5+parseInt(_0x419a36(0x170))/0x6+parseInt(_0x419a36(0x16d))/0x7*(parseInt(_0x419a36(0x16a))/0x8)+-parseInt(_0x419a36(0x16c))/0x9*(parseInt(_0x419a36(0x16e))/0xa);if(_0x190410===_0x2a6e0d)break;else _0x4c5f58['push'](_0x4c5f58['shift']());}catch(_0x17da23){_0x4c5f58['push'](_0x4c5f58['shift']());}}}(_0x102a,0xac5f2));import{messages as _0x51f2e5}from'./lib/compiledmessages.js';export default class r{constructor(){const _0x27ff61=_0x33f4;this[_0x27ff61(0x16b)]=_0x51f2e5;}[_0x4bff71(0x174)](_0x12d28e){const _0x1d2084=_0x4bff71;return new ProtobufDescriptor(this[_0x1d2084(0x16b)][_0x12d28e]);}}export class ProtobufDescriptor{constructor(_0x1e2a41){const _0x38f087=_0x4bff71;this[_0x38f087(0x172)]=_0x1e2a41;}[_0x4bff71(0x163)](_0x108a58){const _0x35127e=_0x4bff71,_0x2cc9ac=this[_0x35127e(0x172)][_0x35127e(0x166)](_0x108a58);if(_0x2cc9ac)throw Error(_0x2cc9ac);return this[_0x35127e(0x172)][_0x35127e(0x162)](this[_0x35127e(0x172)][_0x35127e(0x167)](_0x108a58))[_0x35127e(0x176)]();}[_0x4bff71(0x169)](_0x211c78){const _0x4ac589=_0x4bff71;return this[_0x4ac589(0x172)][_0x4ac589(0x168)](this[_0x4ac589(0x172)][_0x4ac589(0x171)](_0x211c78),{'oneofs':!0x0});}}function _0x102a(){const _0x4b2103=['toObject','decompress','539048wKxqzS','_protobufRoot','759357SpAyLc','112yJqaBq','110HtEgpp','2177229gGrvup','2410110gQmNht','decode','_protobuf','1823052itQioX','getDescriptor','6638495ryusCI','finish','encode','compress','2CYidVO','8163pKjQpk','verify','create'];_0x102a=function(){return _0x4b2103;};return _0x102a();}
23
+ const _0x3b6279=_0x4c08;function _0x4c08(_0x4736b3,_0x4c22d2){const _0x4e7cd6=_0x4e7c();return _0x4c08=function(_0x4c0835,_0x476786){_0x4c0835=_0x4c0835-0x170;let _0x22ba16=_0x4e7cd6[_0x4c0835];return _0x22ba16;},_0x4c08(_0x4736b3,_0x4c22d2);}(function(_0x22509f,_0x1ebe18){const _0x40e83=_0x4c08,_0x4bae23=_0x22509f();while(!![]){try{const _0x4365e0=-parseInt(_0x40e83(0x181))/0x1+parseInt(_0x40e83(0x184))/0x2+parseInt(_0x40e83(0x17d))/0x3+-parseInt(_0x40e83(0x171))/0x4*(-parseInt(_0x40e83(0x183))/0x5)+parseInt(_0x40e83(0x174))/0x6*(parseInt(_0x40e83(0x179))/0x7)+-parseInt(_0x40e83(0x173))/0x8*(parseInt(_0x40e83(0x17f))/0x9)+-parseInt(_0x40e83(0x176))/0xa;if(_0x4365e0===_0x1ebe18)break;else _0x4bae23['push'](_0x4bae23['shift']());}catch(_0x57e35c){_0x4bae23['push'](_0x4bae23['shift']());}}}(_0x4e7c,0xb2635));import{messages as _0x274687}from'./lib/compiledmessages.js';export default class r{constructor(){const _0x393e3c=_0x4c08;this[_0x393e3c(0x170)]=_0x274687;}[_0x3b6279(0x177)](_0x38f956){const _0x20ac8=_0x3b6279;return new ProtobufDescriptor(this[_0x20ac8(0x170)][_0x38f956]);}}function _0x4e7c(){const _0x54f5fb=['4JsBQQZ','encode','752KiXRHk','6FUMxaG','finish','16793270DSFnOf','getDescriptor','decode','3214757YbviFB','compress','verify','create','3135408asOtaf','decompress','27513TiSGIi','toObject','841351MTaklA','_protobuf','6570835oHKNIR','1440318GoNntT','_protobufRoot'];_0x4e7c=function(){return _0x54f5fb;};return _0x4e7c();}export class ProtobufDescriptor{constructor(_0x4fcc2e){const _0xbdbd5d=_0x3b6279;this[_0xbdbd5d(0x182)]=_0x4fcc2e;}[_0x3b6279(0x17a)](_0x42136b){const _0x4fc1fb=_0x3b6279,_0x122a9f=this[_0x4fc1fb(0x182)][_0x4fc1fb(0x17b)](_0x42136b);if(_0x122a9f)throw Error(_0x122a9f);return this[_0x4fc1fb(0x182)][_0x4fc1fb(0x172)](this[_0x4fc1fb(0x182)][_0x4fc1fb(0x17c)](_0x42136b))[_0x4fc1fb(0x175)]();}[_0x3b6279(0x17e)](_0x23ef96){const _0x205eb7=_0x3b6279;return this[_0x205eb7(0x182)][_0x205eb7(0x180)](this[_0x205eb7(0x182)][_0x205eb7(0x178)](_0x23ef96),{'oneofs':!0x0});}}
package/src/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2025, 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/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2025, 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(_0x10a57d,_0x59d072){const _0x3ebe08=_0x8eb2,_0x11a1aa=_0x10a57d();while(!![]){try{const _0x5f2852=-parseInt(_0x3ebe08(0xac))/0x1+-parseInt(_0x3ebe08(0xab))/0x2+parseInt(_0x3ebe08(0xb7))/0x3+-parseInt(_0x3ebe08(0xaa))/0x4+parseInt(_0x3ebe08(0xb4))/0x5*(-parseInt(_0x3ebe08(0xb0))/0x6)+parseInt(_0x3ebe08(0xad))/0x7*(parseInt(_0x3ebe08(0xb5))/0x8)+parseInt(_0x3ebe08(0xb3))/0x9;if(_0x5f2852===_0x59d072)break;else _0x11a1aa['push'](_0x11a1aa['shift']());}catch(_0x52c16f){_0x11a1aa['push'](_0x11a1aa['shift']());}}}(_0x3c19,0x9d582));import{cloneDeep as _0xb2a8de,isEqual as _0x9ace48,isObject as _0xb7b936}from'lodash-es';export function getPositionShiftedBy(_0x3f3766,_0x5c79a0){const _0x18108e=_0x8eb2,_0x22d4be=_0xb2a8de(_0x3f3766);return _0x22d4be[_0x18108e(0xb9)][_0x22d4be[_0x18108e(0xb9)][_0x18108e(0xb1)]-0x1]+=_0x5c79a0,_0x22d4be;}export function arePositionsEqual(_0x3e1c57,_0x2aa12b){const _0x7a75dc=_0x8eb2;return _0x3e1c57[_0x7a75dc(0xb8)]===_0x2aa12b[_0x7a75dc(0xb8)]&&_0x9ace48(_0x3e1c57[_0x7a75dc(0xb9)],_0x2aa12b[_0x7a75dc(0xb9)]);}export function parsePositionBeforeCompression(_0x408e6a){const _0x3286da=_0x8eb2;P(_0x408e6a,_0x2cd6ad=>(_0x3286da(0xae)==_0x2cd6ad[_0x3286da(0xb8)]?(_0x2cd6ad[_0x3286da(0xaf)]=!0x0,delete _0x2cd6ad[_0x3286da(0xb8)]):_0x3286da(0xb2)==_0x2cd6ad[_0x3286da(0xb8)]&&(_0x2cd6ad[_0x3286da(0xb6)]=!0x0,delete _0x2cd6ad[_0x3286da(0xb8)]),_0x2cd6ad));}export function parsePositionAfterCompression(_0x383d05){const _0x6b3dcb=_0x8eb2;P(_0x383d05,_0x21fc81=>(_0x21fc81[_0x6b3dcb(0xaf)]?(_0x21fc81[_0x6b3dcb(0xb8)]=_0x6b3dcb(0xae),delete _0x21fc81[_0x6b3dcb(0xaf)]):_0x21fc81[_0x6b3dcb(0xb6)]&&(_0x21fc81[_0x6b3dcb(0xb8)]=_0x6b3dcb(0xb2),delete _0x21fc81[_0x6b3dcb(0xb6)]),_0x21fc81));}function _0x8eb2(_0xa2cbd7,_0x1bef06){const _0x3c1937=_0x3c19();return _0x8eb2=function(_0x8eb2e5,_0x42044e){_0x8eb2e5=_0x8eb2e5-0xaa;let _0x50a775=_0x3c1937[_0x8eb2e5];return _0x50a775;},_0x8eb2(_0xa2cbd7,_0x1bef06);}function P(_0x5e85dd,_0x2776dd){const _0x15ce07=_0x8eb2;for(const _0x34077e in _0x5e85dd){const _0x23515a=_0x5e85dd[_0x34077e];_0x15ce07(0xba)!==_0x34077e&&_0xb7b936(_0x23515a)&&(_0x23515a[_0x15ce07(0xb9)]&&(_0x23515a[_0x15ce07(0xb8)]||_0x23515a[_0x15ce07(0xaf)]||_0x23515a[_0x15ce07(0xb6)])?_0x5e85dd[_0x34077e]=_0x2776dd(_0x23515a):P(_0x23515a,_0x2776dd));}return _0x5e85dd;}function _0x3c19(){const _0x55b4f6=['nodes','1400480qRsOkC','1259108lYQJwo','622537jPefEV','14rzWRJT','main','rootMain','1734rMdhHJ','length','$graveyard','9292203FKikaH','3090tORTQB','1851368fRbmLu','rootGraveyard','2789958OIKHmO','root','path'];_0x3c19=function(){return _0x55b4f6;};return _0x3c19();}
23
+ function _0x5f02(_0x41aa2f,_0x39bbea){const _0x3f77e2=_0x3f77();return _0x5f02=function(_0x5f02a0,_0x517315){_0x5f02a0=_0x5f02a0-0x17d;let _0x527765=_0x3f77e2[_0x5f02a0];return _0x527765;},_0x5f02(_0x41aa2f,_0x39bbea);}function _0x3f77(){const _0x8ea52e=['main','4011408ReDpHx','1710330AbMIgz','$graveyard','402PwdRDH','path','476532oFjhsS','rootMain','rootGraveyard','10eWBGkc','length','5860rpHnhu','21487884TqHxfj','root','2564oFhdwe','nodes','32QtcCiK','6585XwlWld','9313941bqXmPv'];_0x3f77=function(){return _0x8ea52e;};return _0x3f77();}(function(_0x2b0e4b,_0x584cfb){const _0x7130c7=_0x5f02,_0x1b334d=_0x2b0e4b();while(!![]){try{const _0x481d95=-parseInt(_0x7130c7(0x184))/0x1*(-parseInt(_0x7130c7(0x18a))/0x2)+parseInt(_0x7130c7(0x187))/0x3+-parseInt(_0x7130c7(0x181))/0x4*(parseInt(_0x7130c7(0x17e))/0x5)+-parseInt(_0x7130c7(0x188))/0x6+parseInt(_0x7130c7(0x185))/0x7+-parseInt(_0x7130c7(0x183))/0x8*(parseInt(_0x7130c7(0x18c))/0x9)+parseInt(_0x7130c7(0x18f))/0xa*(-parseInt(_0x7130c7(0x17f))/0xb);if(_0x481d95===_0x584cfb)break;else _0x1b334d['push'](_0x1b334d['shift']());}catch(_0x1d90ee){_0x1b334d['push'](_0x1b334d['shift']());}}}(_0x3f77,0xc0ced));import{cloneDeep as _0x5b2b09,isEqual as _0x4f682c,isObject as _0x2fdd04}from'lodash-es';export function getPositionShiftedBy(_0x24f2d2,_0x5763ac){const _0x5dc5d9=_0x5f02,_0x3e0d48=_0x5b2b09(_0x24f2d2);return _0x3e0d48[_0x5dc5d9(0x18b)][_0x3e0d48[_0x5dc5d9(0x18b)][_0x5dc5d9(0x17d)]-0x1]+=_0x5763ac,_0x3e0d48;}export function arePositionsEqual(_0x32139b,_0x397f92){const _0x726da6=_0x5f02;return _0x32139b[_0x726da6(0x180)]===_0x397f92[_0x726da6(0x180)]&&_0x4f682c(_0x32139b[_0x726da6(0x18b)],_0x397f92[_0x726da6(0x18b)]);}export function parsePositionBeforeCompression(_0x52e5ab){const _0x1c489b=_0x5f02;P(_0x52e5ab,_0x2456e5=>(_0x1c489b(0x186)==_0x2456e5[_0x1c489b(0x180)]?(_0x2456e5[_0x1c489b(0x18d)]=!0x0,delete _0x2456e5[_0x1c489b(0x180)]):_0x1c489b(0x189)==_0x2456e5[_0x1c489b(0x180)]&&(_0x2456e5[_0x1c489b(0x18e)]=!0x0,delete _0x2456e5[_0x1c489b(0x180)]),_0x2456e5));}export function parsePositionAfterCompression(_0x6be95e){const _0x4a6529=_0x5f02;P(_0x6be95e,_0x273ea2=>(_0x273ea2[_0x4a6529(0x18d)]?(_0x273ea2[_0x4a6529(0x180)]=_0x4a6529(0x186),delete _0x273ea2[_0x4a6529(0x18d)]):_0x273ea2[_0x4a6529(0x18e)]&&(_0x273ea2[_0x4a6529(0x180)]=_0x4a6529(0x189),delete _0x273ea2[_0x4a6529(0x18e)]),_0x273ea2));}function P(_0x4ac277,_0x3c32b3){const _0x69ae=_0x5f02;for(const _0x3c0312 in _0x4ac277){const _0x18e8f5=_0x4ac277[_0x3c0312];_0x69ae(0x182)!==_0x3c0312&&_0x2fdd04(_0x18e8f5)&&(_0x18e8f5[_0x69ae(0x18b)]&&(_0x18e8f5[_0x69ae(0x180)]||_0x18e8f5[_0x69ae(0x18d)]||_0x18e8f5[_0x69ae(0x18e)])?_0x4ac277[_0x3c0312]=_0x3c32b3(_0x18e8f5):P(_0x18e8f5,_0x3c32b3));}return _0x4ac277;}
@@ -1,64 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import type { CompressedOperationsData, default as Compressor } from '../compressor.js';
10
- /**
11
- * * Compresses and decompresses multiple operations into the one buffer.
12
- */
13
- export default abstract class ActionCompressor {
14
- constructor(id: number, context: Compressor);
15
- /**
16
- * Combines and compress operations from the list.
17
- * Operations are consumed as long as match this compressor.
18
- *
19
- * @param result Object to which compression result should be added.
20
- * @param operations List of operations in JSON format to compress.
21
- * @returns `true` when operation is consumed `false` otherwise.
22
- */
23
- compress(result: CompressedOperationsData, operations: Array<any>): boolean;
24
- /**
25
- * Decompress and split compressed operations. Decompressed operations are consumed (removed from the input data).
26
- *
27
- * @param result Decompressed operations in JSON format.
28
- * @param data Compressed operations data.
29
- */
30
- decompress(result: Array<any>, data: CompressedOperationsData): void;
31
- /**
32
- * Compresses single operation using a proper compressor.
33
- *
34
- * @param operation Operation in JSON format.
35
- * @returns Operation JSON compressed to the binary format.
36
- */
37
- protected abstract _compressSingleOperation(operation: any): Uint8Array;
38
- /**
39
- * Decompresses combined operation using a proper compressor.
40
- *
41
- * @param data Data to compress.
42
- * @returns Decompressed operation in JSON format.
43
- */
44
- protected abstract _decompressSingleOperation(data: CompressedOperationsData): any;
45
- /**
46
- * Combine next operation into the combined one.
47
- *
48
- * @param nextOperation Operation to combine in JSON format.
49
- * @param combined Combined operation in JSON format.
50
- * @returns Combined operation in JSON format.
51
- */
52
- protected abstract _combineNext(nextOperation: any, combined: any): any;
53
- /**
54
- * Split operation from combined one.
55
- *
56
- * @param combined Combined operation in JSON format.
57
- * @returns Split operation in JSON format.
58
- */
59
- protected abstract _splitCurrent(combined: any): any;
60
- /**
61
- * Checks if two operations can be combined.
62
- */
63
- protected abstract _compareOperations(opA: any, opB: any): boolean;
64
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class DeletingActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDoc
14
- */
15
- protected _combineNext(nextOperation: any, combined: any): any;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _splitCurrent(combined: any): any;
20
- /**
21
- * @inheritDoc
22
- */
23
- protected _compareOperations(opA: any, opB: any): boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- protected _compressSingleOperation(operation: any): Uint8Array;
28
- /**
29
- * @inheritDoc
30
- */
31
- protected _decompressSingleOperation(data: CompressedOperationsData): any;
32
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class ForwardDeletingActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDoc
14
- */
15
- protected _combineNext(nextOperation: any, combined: any): any;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _splitCurrent(combined: any): any;
20
- /**
21
- * @inheritDoc
22
- */
23
- protected _compareOperations(opA: any, opB: any): boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- protected _compressSingleOperation(operation: any): Uint8Array;
28
- /**
29
- * @inheritDoc
30
- */
31
- protected _decompressSingleOperation(data: CompressedOperationsData): any;
32
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class TypingActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDocs
14
- */
15
- protected _combineNext(nextOperation: any, combined: any): any;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _splitCurrent(combined: any): any;
20
- /**
21
- * @inheritDoc
22
- */
23
- protected _compareOperations(opA: any, opB: any): boolean;
24
- /**
25
- * @inheritDoc
26
- */
27
- protected _compressSingleOperation(operation: any): Uint8Array;
28
- /**
29
- * @inheritDoc
30
- */
31
- protected _decompressSingleOperation(data: CompressedOperationsData): any;
32
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import ActionCompressor from './actioncompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- export default class UserSelectionActionCompressor extends ActionCompressor {
12
- /**
13
- * @inheritDoc
14
- */
15
- compress(result: CompressedOperationsData, operations: Array<any>): boolean;
16
- /**
17
- * @inheritDoc
18
- */
19
- decompress(result: Array<any>, data: CompressedOperationsData): void;
20
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- /**
10
- * Compresses and decompresses given set of operations in JSON format to/from the binary format using `Protocol Buffers`.
11
- */
12
- export default class Compressor {
13
- constructor();
14
- /**
15
- * Compress given list of operations in JSON format.
16
- *
17
- * **Note** It tries to combine typing-like or deleting-like operations into the one buffer.
18
- * **Note** Input data will be consumed and modified during compression process. If you need untouched data
19
- * you need to copy it before the compression.
20
- */
21
- compress(operations: Array<any>): CompressedOperationsData;
22
- /**
23
- * Decompress given data to the list of operations in JSON format.
24
- *
25
- * **Note** Input data will be consumed during decompression process. If you need untouched data
26
- * you need to copy it before the decompression.
27
- *
28
- * @param data Compressed operations.
29
- * @returns List of operations in JSON format.
30
- */
31
- decompress(data: CompressedOperationsData): Array<any>;
32
- }
33
- /**
34
- * Compressed operations data.
35
- */
36
- export type CompressedOperationsData = {
37
- /**
38
- * List of operations compressed to the binary format.
39
- */
40
- buffers: Array<Uint8Array>;
41
- /**
42
- * List of compressor identifiers. According to this types a proper compressor will be used for the decompression.
43
- */
44
- types: Array<number>;
45
- /**
46
- * Base version of the first compressed operation.
47
- */
48
- baseVersion: number;
49
- };
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- export { default as Compressor, type CompressedOperationsData } from './compressor.js';
@@ -1,26 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import MarkerOperationCompressor from './markeroperationcompressor.js';
10
- import type { ProtobufDescriptor } from '../protobuffactory.js';
11
- import type { CompressedOperationsData } from '../compressor.js';
12
- import type { MarkerOperation } from 'ckeditor5/src/engine.js';
13
- export default class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor {
14
- /**
15
- * @inheritDoc
16
- */
17
- constructor(id: number, name: string, descriptor: ProtobufDescriptor, namespaceToOmit: string);
18
- /**
19
- * @inheritDoc
20
- */
21
- compress(result: CompressedOperationsData, operations: Array<MarkerOperation>): boolean;
22
- /**
23
- * @inheritDoc
24
- */
25
- decompress(result: Array<MarkerOperation>, data: CompressedOperationsData): void;
26
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { AttributeOperation } from 'ckeditor5/src/engine.js';
12
- export default class AttributeOperationCompressor extends OperationCompressor {
13
- /**
14
- * @inheritDoc
15
- */
16
- compress(result: CompressedOperationsData, operations: Array<AttributeOperation>): boolean;
17
- /**
18
- * @inheritDoc
19
- */
20
- decompress(result: Array<AttributeOperation>, data: CompressedOperationsData): void;
21
- }
@@ -1,21 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { InsertOperation } from 'ckeditor5/src/engine.js';
12
- export default class InsertOperationCompressor extends OperationCompressor {
13
- /**
14
- * @inheritDoc
15
- */
16
- compress(result: CompressedOperationsData, operations: Array<InsertOperation>): boolean;
17
- /**
18
- * @inheritDoc
19
- */
20
- decompress(result: Array<InsertOperation>, data: CompressedOperationsData): void;
21
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { MarkerOperation } from 'ckeditor5/src/engine.js';
12
- export default class MarkerOperationCompressor extends OperationCompressor {
13
- /**
14
- * @inheritDoc
15
- */
16
- decompress(result: Array<MarkerOperation>, data: CompressedOperationsData): void;
17
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import OperationCompressor from './operationcompressor.js';
10
- import type { CompressedOperationsData } from '../compressor.js';
11
- import type { Operation } from 'ckeditor5/src/engine.js';
12
- /**
13
- * @extends OperationCompressor
14
- */
15
- export default class NoOperationCompressor extends OperationCompressor {
16
- /**
17
- * @inheritDoc
18
- */
19
- compress(result: CompressedOperationsData, operations: Array<Operation>): boolean;
20
- /**
21
- * @inheritDoc
22
- */
23
- decompress(result: Array<any>, data: CompressedOperationsData): void;
24
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import type { CompressedOperationsData } from '../compressor.js';
10
- import type { ProtobufDescriptor } from '../protobuffactory.js';
11
- import type { Operation } from 'ckeditor5/src/engine.js';
12
- /**
13
- * Compresses and decompresses single operation to the binary format.
14
- */
15
- export default class OperationCompressor {
16
- constructor(id: number, operationName: string, protobufDescriptor: ProtobufDescriptor);
17
- /**
18
- * Serializes and consumes the first operation from the list.
19
- *
20
- * @param result Object to which compression result will be added.
21
- * @param operations List of operations to compress. The first one will be compressed
22
- * and removed from the list.
23
- */
24
- compress(result: CompressedOperationsData, operations: Array<Operation>): boolean;
25
- /**
26
- * Deserializes and consumes buffered operation.
27
- *
28
- * @param result Decompressed operation.
29
- * @param data Data to decompress.
30
- */
31
- decompress(result: Array<Operation>, data: CompressedOperationsData): void;
32
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- export {};