UNPKG

@ckeditor/ckeditor5-operations-compressor

Version:

CKEditor 5 operations compressor for real-time collaboration.

23 lines 3.89 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ (function(_0x3c6179,_0x3f2e6f){const _0x57b390=_0x10d6,_0x1edff4=_0x3c6179();while(!![]){try{const _0x332492=-parseInt(_0x57b390(0x19f))/0x1+-parseInt(_0x57b390(0x191))/0x2+parseInt(_0x57b390(0x192))/0x3*(-parseInt(_0x57b390(0x199))/0x4)+parseInt(_0x57b390(0x19c))/0x5*(parseInt(_0x57b390(0x197))/0x6)+parseInt(_0x57b390(0x190))/0x7+-parseInt(_0x57b390(0x194))/0x8+-parseInt(_0x57b390(0x193))/0x9*(-parseInt(_0x57b390(0x19d))/0xa);if(_0x332492===_0x3f2e6f)break;else _0x1edff4['push'](_0x1edff4['shift']());}catch(_0x283292){_0x1edff4['push'](_0x1edff4['shift']());}}}(_0x13b0,0xd4cd9));function _0x13b0(){const _0x5c6838=['887411DdiyJN','93370Fgxqrt','63978ApZmXR','87174VqhieM','135000qbMSxT','path','root','9756510FHIRtY','rootGraveyard','244jrDDCo','$graveyard','length','5qrfHZQ','760ztDFCW','main','252907QFIpBS','nodes','rootMain'];_0x13b0=function(){return _0x5c6838;};return _0x13b0();}import{cloneDeep as _0x1efccf,isEqual as _0x4a5f4b,isObject as _0x215b71}from'es-toolkit/compat';export function getPositionShiftedBy(_0xfdf406,_0x24b031){const _0x36c096=_0x10d6,_0x3646d2=_0x1efccf(_0xfdf406);return _0x3646d2[_0x36c096(0x195)][_0x3646d2[_0x36c096(0x195)][_0x36c096(0x19b)]-0x1]+=_0x24b031,_0x3646d2;}function _0x10d6(_0x3ea9ef,_0x392fb7){const _0x13b00f=_0x13b0();return _0x10d6=function(_0x10d6ce,_0x25fb66){_0x10d6ce=_0x10d6ce-0x18e;let _0x15e4bd=_0x13b00f[_0x10d6ce];return _0x15e4bd;},_0x10d6(_0x3ea9ef,_0x392fb7);}export function arePositionsEqual(_0x1d5836,_0x1244c1){const _0xc47e32=_0x10d6;return _0x1d5836[_0xc47e32(0x196)]===_0x1244c1[_0xc47e32(0x196)]&&_0x4a5f4b(_0x1d5836[_0xc47e32(0x195)],_0x1244c1[_0xc47e32(0x195)]);}export function parsePositionBeforeCompression(_0x28c3d6){const _0x135012=_0x10d6;P(_0x28c3d6,_0x341a67=>(_0x135012(0x19e)==_0x341a67[_0x135012(0x196)]?(_0x341a67[_0x135012(0x18f)]=!0x0,delete _0x341a67[_0x135012(0x196)]):_0x135012(0x19a)==_0x341a67[_0x135012(0x196)]&&(_0x341a67[_0x135012(0x198)]=!0x0,delete _0x341a67[_0x135012(0x196)]),_0x341a67));}export function parsePositionAfterCompression(_0x1b0e4c){const _0x185e72=_0x10d6;P(_0x1b0e4c,_0x437b7f=>(_0x437b7f[_0x185e72(0x18f)]?(_0x437b7f[_0x185e72(0x196)]=_0x185e72(0x19e),delete _0x437b7f[_0x185e72(0x18f)]):_0x437b7f[_0x185e72(0x198)]&&(_0x437b7f[_0x185e72(0x196)]=_0x185e72(0x19a),delete _0x437b7f[_0x185e72(0x198)]),_0x437b7f));}function P(_0x32df7d,_0x4473ba){const _0x1c2726=_0x10d6;for(const _0x52d02c in _0x32df7d){const _0x5cafc8=_0x32df7d[_0x52d02c];_0x1c2726(0x18e)!==_0x52d02c&&_0x215b71(_0x5cafc8)&&(_0x5cafc8[_0x1c2726(0x195)]&&(_0x5cafc8[_0x1c2726(0x196)]||_0x5cafc8[_0x1c2726(0x18f)]||_0x5cafc8[_0x1c2726(0x198)])?_0x32df7d[_0x52d02c]=_0x4473ba(_0x5cafc8):P(_0x5cafc8,_0x4473ba));}return _0x32df7d;}