UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 3.98 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x47021d=_0x39ff;(function(_0x3401ac,_0x17306d){const _0x51b36d=_0x39ff,_0x104f5c=_0x3401ac();while(!![]){try{const _0x5cb267=parseInt(_0x51b36d(0xfa))/0x1+-parseInt(_0x51b36d(0x107))/0x2+-parseInt(_0x51b36d(0x10b))/0x3*(-parseInt(_0x51b36d(0x103))/0x4)+-parseInt(_0x51b36d(0x109))/0x5+-parseInt(_0x51b36d(0x112))/0x6+parseInt(_0x51b36d(0x113))/0x7*(parseInt(_0x51b36d(0x10e))/0x8)+-parseInt(_0x51b36d(0x108))/0x9*(-parseInt(_0x51b36d(0x114))/0xa);if(_0x5cb267===_0x17306d)break;else _0x104f5c['push'](_0x104f5c['shift']());}catch(_0x3a5343){_0x104f5c['push'](_0x104f5c['shift']());}}}(_0x36cf,0xe2e72));import _0x453793 from'./actioncompressor.js';function _0x39ff(_0x1ea330,_0x576c00){const _0x36cfc7=_0x36cf();return _0x39ff=function(_0x39ffe8,_0x1d7130){_0x39ffe8=_0x39ffe8-0xfa;let _0x58cde1=_0x36cfc7[_0x39ffe8];return _0x58cde1;},_0x39ff(_0x1ea330,_0x576c00);}import{arePositionsEqual as _0x189e06}from'../utils.js';function _0x36cf(){const _0x5d6fc1=['668667NHjFal','_compareOperations','_combineNext','178376ufVuDC','howMany','decompress','MoveOperation','9769452HmNRuV','14MPPQMl','170rzKqQi','buffers','_getCompressorByName','1606554XoeVLp','$graveyard','root','compress','wasUndone','_decompressSingleOperation','_compressSingleOperation','_checkOperation','_context','4CYDuWy','__className','sourcePosition','_splitCurrent','1133204IjuXRn','731925noAGZX','661620tLEdrT','targetPosition'];_0x36cf=function(){return _0x5d6fc1;};return _0x36cf();}import{cloneDeep as _0x28aa4c}from'es-toolkit/compat';export default class h extends _0x453793{[_0x47021d(0x10d)](_0xa686ce,_0x3a4d43){const _0x3590aa=_0x47021d;return _0x3a4d43[_0x3590aa(0x10f)]++,_0x3a4d43;}[_0x47021d(0x106)](_0x11a8b7){const _0xc0d536=_0x47021d,_0x186f9b=_0x28aa4c(_0x11a8b7);return _0x186f9b[_0xc0d536(0x10f)]=0x1,_0x11a8b7[_0xc0d536(0x10f)]--,_0x186f9b;}[_0x47021d(0x10c)](_0x555c6c,_0x3c8ac5){const _0x488d45=_0x47021d;return!(!this[_0x488d45(0x101)](_0x555c6c)||!this[_0x488d45(0x101)](_0x3c8ac5))&&(_0x189e06(_0x555c6c[_0x488d45(0x105)],_0x3c8ac5[_0x488d45(0x105)])&&_0x189e06(_0x555c6c[_0x488d45(0x10a)],_0x3c8ac5[_0x488d45(0x10a)]));}[_0x47021d(0x100)](_0x229e8d){const _0x2232eb=_0x47021d,_0x4f3d22={'types':[],'buffers':[],'baseVersion':0x0};return this[_0x2232eb(0x102)][_0x2232eb(0x116)](_0x2232eb(0x111))[_0x2232eb(0xfd)](_0x4f3d22,[_0x229e8d]),_0x4f3d22[_0x2232eb(0x115)][0x0];}[_0x47021d(0xff)](_0x2f994e){const _0x554810=_0x47021d,_0x4fefca=[];return this[_0x554810(0x102)][_0x554810(0x116)](_0x554810(0x111))[_0x554810(0x110)](_0x4fefca,_0x2f994e),_0x4fefca[0x0];}[_0x47021d(0x101)](_0x277290){const _0x214517=_0x47021d;return _0x214517(0x111)==_0x277290[_0x214517(0x104)]&&_0x214517(0xfb)==_0x277290[_0x214517(0x10a)][_0x214517(0xfc)]&&0x1==_0x277290[_0x214517(0x10f)]&&!_0x277290[_0x214517(0xfe)];}}