@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 9.78 kB
JavaScript
/*
* 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 _0x16dc(_0x44550c,_0x250193){const _0x5d5abd=_0x5d5a();return _0x16dc=function(_0x16dcd1,_0x70f0d){_0x16dcd1=_0x16dcd1-0x102;let _0x3618cf=_0x5d5abd[_0x16dcd1];return _0x3618cf;},_0x16dc(_0x44550c,_0x250193);}const _0x261597=_0x16dc;(function(_0x2f070e,_0xdad44a){const _0x31be92=_0x16dc,_0x3af274=_0x2f070e();while(!![]){try{const _0x172588=-parseInt(_0x31be92(0x156))/0x1+-parseInt(_0x31be92(0x146))/0x2*(-parseInt(_0x31be92(0x149))/0x3)+-parseInt(_0x31be92(0x10b))/0x4+-parseInt(_0x31be92(0x12e))/0x5+-parseInt(_0x31be92(0x129))/0x6*(-parseInt(_0x31be92(0x12f))/0x7)+-parseInt(_0x31be92(0x136))/0x8*(parseInt(_0x31be92(0x154))/0x9)+-parseInt(_0x31be92(0x130))/0xa*(-parseInt(_0x31be92(0x12c))/0xb);if(_0x172588===_0xdad44a)break;else _0x3af274['push'](_0x3af274['shift']());}catch(_0x518943){_0x3af274['push'](_0x3af274['shift']());}}}(_0x5d5a,0x4b964));import{Plugin as _0x2c7fba}from'ckeditor5/src/core.js';import{getTranslation as _0x347dc4}from'../utils/common-translations.js';export default class Se extends _0x2c7fba{[_0x261597(0x15b)](){const _0x136243=_0x261597;if(!this[_0x136243(0x15d)][_0x136243(0x108)][_0x136243(0x112)](_0x136243(0x10d)))return;const _0x4c2699=this[_0x136243(0x15d)][_0x136243(0x122)][_0x136243(0x109)](_0x136243(0x12b)),_0x5e3b7a=this[_0x136243(0x15d)][_0x136243(0x108)][_0x136243(0x109)](_0x136243(0x138));_0x4c2699[_0x136243(0x126)]&&(_0x5e3b7a[_0x136243(0x116)](_0x136243(0x14f)),_0x5e3b7a[_0x136243(0x134)](_0x136243(0x14f))),_0x4c2699[_0x136243(0x133)]&&(_0x5e3b7a[_0x136243(0x116)](_0x136243(0x103)),_0x5e3b7a[_0x136243(0x134)](_0x136243(0x103))),_0x4c2699[_0x136243(0x11f)]&&(_0x5e3b7a[_0x136243(0x116)](_0x136243(0x128)),_0x5e3b7a[_0x136243(0x134)](_0x136243(0x128)));const _0x4bce22={'type':_0x136243(0x10e),'content':''};_0x5e3b7a[_0x136243(0x14c)][_0x136243(0x11d)](this[_0x136243(0x158)][_0x136243(0x14b)](this));const _0x5d3b65=this[_0x136243(0x15d)][_0x136243(0x105)];_0x5e3b7a[_0x136243(0x14c)][_0x136243(0x113)](_0x136243(0x103),_0x347dc4(_0x5d3b65,_0x136243(0x15e))),_0x5e3b7a[_0x136243(0x14c)][_0x136243(0x11d)](_0x26e0b2=>{const _0x2109da=_0x136243,{data:_0x47233f}=_0x26e0b2;if(_0x47233f&&_0x2109da(0x103)==_0x47233f[_0x2109da(0x147)])return null==_0x47233f[_0x2109da(0x123)]||0x0==_0x47233f[_0x2109da(0x123)]&&null==_0x47233f[_0x2109da(0x120)]?_0x4bce22:void 0x0;}),_0x5e3b7a[_0x136243(0x14c)][_0x136243(0x113)](_0x136243(0x128),_0x347dc4(_0x5d3b65,_0x136243(0x127))),_0x5e3b7a[_0x136243(0x14c)][_0x136243(0x11d)](_0x46fbbd=>{const _0x1cd2ea=_0x136243,{data:_0x31c1eb}=_0x46fbbd;if(_0x31c1eb&&_0x1cd2ea(0x128)==_0x31c1eb[_0x1cd2ea(0x147)])return null==_0x31c1eb[_0x1cd2ea(0x123)]||0x1==_0x31c1eb[_0x1cd2ea(0x123)]&&null==_0x31c1eb[_0x1cd2ea(0x120)]?_0x4bce22:void 0x0;}),this[_0x136243(0x15d)][_0x136243(0x15c)][_0x136243(0x13e)][_0x136243(0x111)](_0x441bf1=>{const _0x353e6f=_0x136243;if(_0x441bf1[_0x353e6f(0x118)][_0x353e6f(0x14e)])return!0x1;let _0x4464d6=!0x1;const _0x2fd8e1=_0x5e3b7a[_0x353e6f(0x139)]({'skipNotAttached':!0x0})[_0x353e6f(0x153)](_0x30b80f=>{const _0x16dd5e=_0x353e6f,_0xa3e9ef=_0x5e3b7a[_0x16dd5e(0x119)](_0x30b80f);return _0x16dd5e(0x128)==_0xa3e9ef||_0x16dd5e(0x103)==_0xa3e9ef;});for(const _0x22a0dd of _0x2fd8e1){const _0x403342=_0x22a0dd[_0x353e6f(0x106)]()[_0x353e6f(0x121)][_0x353e6f(0x13b)][_0x353e6f(0x142)](_0x353e6f(0x117));if(_0x353e6f(0x151)==_0x403342||_0x353e6f(0x12d)==_0x403342)continue;_0x5e3b7a[_0x353e6f(0x135)](_0x22a0dd[_0x353e6f(0x106)](),_0x353e6f(0x10c))[_0x353e6f(0x11b)](_0x4dbd7c=>_0x353e6f(0x117)==_0x5e3b7a[_0x353e6f(0x119)](_0x4dbd7c[_0x353e6f(0x131)]))||(_0x441bf1[_0x353e6f(0x104)](_0x22a0dd[_0x353e6f(0x14a)]()),_0x4464d6=!0x0);}return _0x4464d6;}),this[_0x136243(0x157)]();}[_0x261597(0x158)](_0x148ea5){const _0x4c30aa=_0x261597,_0x3c700f=this[_0x4c30aa(0x15d)][_0x4c30aa(0x105)],{data:_0x3d72cb}=_0x148ea5,_0x48ad1f={'type':_0x4c30aa(0x10e),'content':''};if(!_0x3d72cb||_0x4c30aa(0x14f)!=_0x3d72cb[_0x4c30aa(0x147)])return;if(!_0x3d72cb[_0x4c30aa(0x120)])return _0x4c30aa(0x155)==_0x3d72cb[_0x4c30aa(0x123)]?_0x48ad1f:{'type':_0x4c30aa(0x10e),'content':''+_0x347dc4(_0x3c700f,_0x4c30aa(0x159),_0x347dc4(_0x3c700f,this[_0x4c30aa(0x114)](_0x3d72cb[_0x4c30aa(0x123)])))};if(!_0x3d72cb[_0x4c30aa(0x123)]){if(_0x4c30aa(0x155)==_0x3d72cb[_0x4c30aa(0x120)])return _0x48ad1f;let _0x545112=_0x148ea5[_0x4c30aa(0x152)];for(;_0x545112;){if(_0x545112[_0x4c30aa(0x107)]&&_0x4c30aa(0x117)==_0x545112[_0x4c30aa(0x107)][_0x4c30aa(0x147)]&&_0x545112[_0x4c30aa(0x107)][_0x4c30aa(0x123)])return _0x48ad1f;_0x545112=_0x545112[_0x4c30aa(0x110)];}return{'type':_0x4c30aa(0x10e),'content':''+_0x347dc4(_0x3c700f,_0x4c30aa(0x102),_0x347dc4(_0x3c700f,this[_0x4c30aa(0x114)](_0x3d72cb[_0x4c30aa(0x120)])))};}if(_0x4c30aa(0x155)!=_0x3d72cb[_0x4c30aa(0x123)])return{'type':_0x4c30aa(0x10e),'content':''+_0x347dc4(_0x3c700f,_0x4c30aa(0x159),_0x347dc4(_0x3c700f,this[_0x4c30aa(0x114)](_0x3d72cb[_0x4c30aa(0x123)])))};let _0x5144d8=_0x148ea5[_0x4c30aa(0x152)];for(;_0x5144d8;){if(_0x5144d8[_0x4c30aa(0x107)]&&_0x4c30aa(0x117)==_0x5144d8[_0x4c30aa(0x107)][_0x4c30aa(0x147)]&&_0x5144d8[_0x4c30aa(0x107)][_0x4c30aa(0x123)]&&_0x5144d8[_0x4c30aa(0x107)][_0x4c30aa(0x120)])return _0x48ad1f;_0x5144d8=_0x5144d8[_0x4c30aa(0x110)];}const _0x44b275=_0x148ea5[_0x4c30aa(0x106)]()[_0x4c30aa(0x121)][_0x4c30aa(0x13b)][_0x4c30aa(0x142)](_0x4c30aa(0x117));return{'type':_0x4c30aa(0x10e),'content':_0x347dc4(_0x3c700f,_0x4c30aa(0x159),_0x347dc4(_0x3c700f,_0x4c30aa(0x124)+_0x44b275[_0x4c30aa(0x148)]()+_0x4c30aa(0x13c)))};}[_0x261597(0x157)](){const _0x299c72=_0x261597,_0x46cc63=this[_0x299c72(0x15d)],_0xbca48c=_0x46cc63[_0x299c72(0x105)];_0x46cc63[_0x299c72(0x108)][_0x299c72(0x109)](_0x299c72(0x138))[_0x299c72(0x14c)][_0x299c72(0x11d)](_0x2439d7=>{const _0x2b2013=_0x299c72;if(_0x2b2013(0x144)!=_0x2439d7[_0x2b2013(0x13f)])return;const {data:_0x47827e}=_0x2439d7;if(!_0x47827e)return;let _0x4630ba,_0x1449b2;switch(_0x47827e[_0x2b2013(0x11a)]){case _0x2b2013(0x14f):_0x4630ba=_0x2b2013(0x10a),_0x1449b2={'type':_0x2b2013(0x10e),'content':_0x347dc4(_0xbca48c,_0x4630ba,_0x347dc4(_0xbca48c,this[_0x2b2013(0x114)](_0x47827e[_0x2b2013(0x15a)][0x0][_0x2b2013(0x13f)])))};break;case _0x2b2013(0x103):_0x4630ba=_0x47827e[_0x2b2013(0x15a)][0x0][_0x2b2013(0x133)]?_0x2b2013(0x13d):_0x2b2013(0x145),_0x1449b2={'type':_0x2b2013(0x10e),'content':_0x347dc4(_0xbca48c,_0x4630ba)};break;case _0x2b2013(0x128):_0x4630ba=_0x2b2013(0x132),_0x1449b2={'type':_0x2b2013(0x10e),'content':_0x347dc4(_0xbca48c,_0x4630ba,_0x47827e[_0x2b2013(0x15a)][0x0][_0x2b2013(0x11f)])};}return _0x1449b2;});}[_0x261597(0x114)](_0x323ee8){const _0xb184c4=_0x261597;return _0xb184c4(0x124)+function(_0x45e05a){const _0x1ba603=_0xb184c4;if(_e[_0x1ba603(0x143)](_0x45e05a))return _0x1ba603(0x115);if(Re[_0x1ba603(0x143)](_0x45e05a))return _0x1ba603(0x151);return null;}(_0x323ee8)[_0xb184c4(0x148)]()+_0xb184c4(0x11c)+_0x323ee8[_0xb184c4(0x148)]()[_0xb184c4(0x125)](/-/g,'_');}}const _e=[_0x261597(0x14d),_0x261597(0x13a),_0x261597(0x12a)],Re=[_0x261597(0x137),_0x261597(0x141),_0x261597(0x10f),_0x261597(0x11e),_0x261597(0x150),_0x261597(0x140)];function _0x5d5a(){const _0x5af0f0=['formatBlock','*Format:*\x20set\x20order\x20to\x20regular','744178dyfyHm','key','toUpperCase','3SyyQFo','getFirstMarker','bind','descriptionFactory','disc','isUndo','listStyle','lower-latin','numbered','head','filter','2571183BRdrNi','default','30723utswqa','_registerLegacyDescription','handleDescriptions','*Set\x20format:*\x20%0','commandParams','afterInit','model','editor','FORMAT_LIST_REVERSED','*Remove\x20format:*\x20%0','listReversed','removeMarker','locale','getFirstRange','data','plugins','get','*Change\x20to:*\x20%0','1488568PSsrPD','attribute','ListPropertiesEditing','format','lower-roman','next','registerPostFixer','has','registerAttributeLabel','_getTranslationKeyForListStyle','bulleted','enableDefaultAttributesIntegration','listType','batch','_getAttributeKey','commandName','find','_LIST_','registerDescriptionCallback','upper-roman','startIndex','oldValue','start','config','newValue','ELEMENT_','replace','styles','FORMAT_LIST_START','listStart','12JWtaiB','square','list.properties','319ftgYJb','customNumbered','368915eztbCY','634858axXFZr','178780zTiomH','suggestion','*Format:*\x20set\x20start\x20index\x20to\x20%0','reversed','registerBlockAttribute','_findSuggestions','8SgTDdf','decimal','TrackChangesEditing','getSuggestions','circle','nodeAfter','_LIST_DEFAULT','*Format:*\x20set\x20order\x20to\x20reversed','document','type','upper-latin','decimal-leading-zero','getAttribute','includes'];_0x5d5a=function(){return _0x5af0f0;};return _0x5d5a();}