UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 3.78 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 _0x4344b2=_0x3604;(function(_0x19fbad,_0x4cc1ba){const _0x547363=_0x3604,_0x33cc2f=_0x19fbad();while(!![]){try{const _0x331fa8=parseInt(_0x547363(0x1b5))/0x1*(parseInt(_0x547363(0x1a4))/0x2)+parseInt(_0x547363(0x1a3))/0x3*(-parseInt(_0x547363(0x1b0))/0x4)+-parseInt(_0x547363(0x1a7))/0x5*(-parseInt(_0x547363(0x1b7))/0x6)+parseInt(_0x547363(0x1b6))/0x7+parseInt(_0x547363(0x1a2))/0x8*(parseInt(_0x547363(0x1ae))/0x9)+-parseInt(_0x547363(0x1af))/0xa*(-parseInt(_0x547363(0x1b3))/0xb)+-parseInt(_0x547363(0x1a6))/0xc*(parseInt(_0x547363(0x1aa))/0xd);if(_0x331fa8===_0x4cc1ba)break;else _0x33cc2f['push'](_0x33cc2f['shift']());}catch(_0x310bba){_0x33cc2f['push'](_0x33cc2f['shift']());}}}(_0x2010,0x3fe5d));function _0x3604(_0x1e5403,_0x4f6de8){const _0x2010ad=_0x2010();return _0x3604=function(_0x360462,_0x18a796){_0x360462=_0x360462-0x1a1;let _0x413f1f=_0x2010ad[_0x360462];return _0x413f1f;},_0x3604(_0x1e5403,_0x4f6de8);}function _0x2010(){const _0x25f514=['1132269iDqjnz','2ojrgEk','length','552Oazsbt','20470AkOAHc','_compareOperations','compress','203866dyZPGK','buffers','_compressSingleOperation','types','1380042SaaFpl','891490krYjdy','4zykDLF','push','_combineNext','11hkOiYa','_decompressSingleOperation','404417XuVleo','798224iWUrdi','654FoAXTA','_splitCurrent','_id','_context','shift','decompress','16YwrFFA'];_0x2010=function(){return _0x25f514;};return _0x2010();}import{cloneDeep as _0x141046}from'es-toolkit/compat';export class ActionCompressor{[_0x4344b2(0x1b9)];[_0x4344b2(0x1ba)];constructor(_0x343fa5,_0x128c84){const _0x3f6dcd=_0x4344b2;this[_0x3f6dcd(0x1b9)]=_0x343fa5,this[_0x3f6dcd(0x1ba)]=_0x128c84;}[_0x4344b2(0x1a9)](_0xa633c4,_0x215e4c){const _0x214eb2=_0x4344b2;let _0x172b65;for(;_0x215e4c[_0x214eb2(0x1a5)]>0x1&&this[_0x214eb2(0x1a8)](_0x215e4c[0x0],_0x215e4c[0x1]);)_0x172b65?(_0x172b65=this[_0x214eb2(0x1b2)](_0x215e4c[_0x214eb2(0x1bb)](),_0x172b65),_0xa633c4[_0x214eb2(0x1ad)][_0x214eb2(0x1b1)](0x0)):(_0x172b65=_0x141046(_0x215e4c[_0x214eb2(0x1bb)]()),_0xa633c4[_0x214eb2(0x1ad)][_0x214eb2(0x1b1)](this[_0x214eb2(0x1b9)]));return!!_0x172b65&&(_0x172b65=this[_0x214eb2(0x1b2)](_0x215e4c[_0x214eb2(0x1bb)](),_0x172b65),_0xa633c4[_0x214eb2(0x1ad)][_0x214eb2(0x1b1)](0x0),_0xa633c4[_0x214eb2(0x1ab)][_0x214eb2(0x1b1)](this[_0x214eb2(0x1ac)](_0x172b65)),!0x0);}[_0x4344b2(0x1a1)](_0x53fd77,_0x8aadca){const _0x343918=_0x4344b2,_0x2be20f=this[_0x343918(0x1b4)](_0x8aadca);for(;0x0==_0x8aadca[_0x343918(0x1ad)][0x0];)_0x8aadca[_0x343918(0x1ad)][_0x343918(0x1bb)](),_0x53fd77[_0x343918(0x1b1)](this[_0x343918(0x1b8)](_0x2be20f));_0x53fd77[_0x343918(0x1b1)](_0x2be20f);}}