@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230807.0 → 0.0.0-nightly-20230809.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.
- package/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1dce=['element','commandParams','*Format:*\x20set\x20order\x20to\x20reversed','forward','length','afterInit','getFirstPosition','getListTypeFromListStyleType','_getSuggestionBlocksForListStyle','selection','map','getSelectedBlocks','format','handleListStartCommand','_getSuggestionBlocks','handleDescriptions','from','backward','enableCommand','getLastPosition','_LIST_','list.properties','reversed','editor','model','unshift','createRange','TrackChangesEditing','flat','handleListStyleCommand','listStart','toUpperCase','listType','styles','bind','startIndex','handleListReversedCommand','_descriptionFactory','change','listStyle','*Format:*\x20set\x20order\x20to\x20regular','getAttribute','getSiblingNodes','listItem','*Change\x20to:*\x20%0','document','push','locale','ListUtils','registerDescriptionCallback','before','get','markMultiRangeBlockFormat','listReversed','_getTranslationKeyForListStyle','plugins','filter','createPositionAt'];(function(_0x173fe7,_0x1dcec4){const _0x1456a5=function(_0x264b90){while(--_0x264b90){_0x173fe7['push'](_0x173fe7['shift']());}};_0x1456a5(++_0x1dcec4);}(_0x1dce,0xc5));const _0x1456=function(_0x173fe7,_0x1dcec4){_0x173fe7=_0x173fe7-0x0;let _0x1456a5=_0x1dce[_0x173fe7];return _0x1456a5;};import{Plugin as _0x2fd069}from'ckeditor5/src/core';import{getTranslation as _0x450dd8}from'../utils/common-translations';export default class nt extends _0x2fd069{[_0x1456('0x28')](){if(!this[_0x1456('0x0')][_0x1456('0x20')]['has']('ListPropertiesEditing'))return;const _0xc64665=this['editor']['config'][_0x1456('0x1c')](_0x1456('0x38')),_0x426555=this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x4'));_0xc64665[_0x1456('0xa')]&&_0x426555[_0x1456('0x35')](_0x1456('0x10'),this[_0x1456('0x6')][_0x1456('0xb')](this)),_0xc64665[_0x1456('0x39')]&&_0x426555['enableCommand']('listReversed',this[_0x1456('0xd')][_0x1456('0xb')](this)),_0xc64665[_0x1456('0xc')]&&_0x426555[_0x1456('0x35')]('listStart',this[_0x1456('0x30')][_0x1456('0xb')](this)),_0x426555[_0x1456('0xe')][_0x1456('0x1a')](this[_0x1456('0x32')]['bind'](this));}[_0x1456('0x6')](_0x11eecb,_0x52c0b8={}){const _0xdbbbc5=this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x4')),_0x331267=this[_0x1456('0x2b')]();this[_0x1456('0x0')][_0x1456('0x1')]['change'](()=>{_0xdbbbc5['markMultiRangeBlockFormat'](_0x331267,{'commandName':_0x1456('0x10'),'commandParams':[{'type':_0x52c0b8['type']}],'formatGroupId':_0x1456('0x10')});});}['handleListReversedCommand'](_0xc5983e,_0x3946c1={}){const _0x34cac3=this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x4')),_0x59995c=this['_getSuggestionBlocks'](_0x578234=>_0x578234['is'](_0x1456('0x23'),_0x1456('0x14'))&&'numbered'===_0x578234[_0x1456('0x12')](_0x1456('0x9')));if(_0x59995c[_0x1456('0x27')]<0x1)return;const _0x16b845=_0x59995c['map'](_0x390fe7=>this[_0x1456('0x0')][_0x1456('0x1')][_0x1456('0x3')](this[_0x1456('0x0')][_0x1456('0x1')]['createPositionAt'](_0x390fe7,_0x1456('0x1b')),this['editor'][_0x1456('0x1')][_0x1456('0x22')](_0x390fe7,0x0)));this[_0x1456('0x0')]['model'][_0x1456('0xf')](()=>{_0x34cac3['markMultiRangeBlockFormat'](_0x16b845,{'commandName':_0x1456('0x1e'),'commandParams':[{'reversed':_0x3946c1[_0x1456('0x39')]}],'formatGroupId':_0x1456('0x1e')});});}[_0x1456('0x30')](_0x21ca9f,_0x311581={}){const _0x230582=this[_0x1456('0x0')]['plugins'][_0x1456('0x1c')]('TrackChangesEditing'),_0x390eab=this[_0x1456('0x31')](_0x45cb4f=>_0x45cb4f['is'](_0x1456('0x23'),_0x1456('0x14'))&&'numbered'===_0x45cb4f[_0x1456('0x12')]('listType'));if(_0x390eab['length']<0x1)return;const _0xfda6b7=_0x390eab[_0x1456('0x2d')](_0x23a3a2=>this[_0x1456('0x0')]['model'][_0x1456('0x3')](this[_0x1456('0x0')]['model'][_0x1456('0x22')](_0x23a3a2,_0x1456('0x1b')),this[_0x1456('0x0')]['model'][_0x1456('0x22')](_0x23a3a2,0x0)));this[_0x1456('0x0')]['model'][_0x1456('0xf')](()=>{_0x230582[_0x1456('0x1d')](_0xfda6b7,{'commandName':_0x1456('0x7'),'commandParams':[{'startIndex':_0x311581[_0x1456('0xc')]}],'formatGroupId':_0x1456('0x7')});});}['handleDescriptions'](_0x262307){const _0x53ed45=this[_0x1456('0x0')][_0x1456('0x18')],{data:_0xdb769c}=_0x262307;if(!_0xdb769c)return;let _0x143c06,_0x352022;switch(_0xdb769c['commandName']){case _0x1456('0x10'):_0x143c06=_0x1456('0x15'),_0x352022={'type':_0x1456('0x2f'),'content':_0x450dd8(_0x53ed45,_0x143c06,_0x450dd8(_0x53ed45,this[_0x1456('0x1f')](_0xdb769c[_0x1456('0x24')][0x0]['type'])))};break;case'listReversed':_0x143c06=_0xdb769c[_0x1456('0x24')][0x0][_0x1456('0x39')]?_0x1456('0x25'):_0x1456('0x11'),_0x352022={'type':'format','content':_0x450dd8(_0x53ed45,_0x143c06)};break;case _0x1456('0x7'):_0x143c06='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x352022={'type':_0x1456('0x2f'),'content':_0x450dd8(_0x53ed45,_0x143c06,_0xdb769c[_0x1456('0x24')][0x0][_0x1456('0xc')])};}return _0x352022;}[_0x1456('0x2b')](){var _0xcf4fa5,_0x1dc632,_0x1e5788,_0x42c0b9;const _0x4ac8ff=this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x19'));let _0x11f71d=Array[_0x1456('0x33')](this[_0x1456('0x0')][_0x1456('0x1')][_0x1456('0x16')][_0x1456('0x2c')]['getSelectedBlocks']());return(null===(_0xcf4fa5=_0x11f71d[0x0])||void 0x0===_0xcf4fa5?void 0x0:_0xcf4fa5['is']('element',_0x1456('0x14')))&&_0x11f71d[_0x1456('0x2')](..._0x4ac8ff[_0x1456('0x13')](this[_0x1456('0x0')][_0x1456('0x1')][_0x1456('0x16')][_0x1456('0x2c')][_0x1456('0x29')](),'backward')),(null===(_0x1dc632=_0x11f71d[_0x11f71d[_0x1456('0x27')]-0x1])||void 0x0===_0x1dc632?void 0x0:_0x1dc632['is'](_0x1456('0x23'),_0x1456('0x14')))&&_0x11f71d[_0x1456('0x17')](..._0x4ac8ff[_0x1456('0x13')](this['editor'][_0x1456('0x1')][_0x1456('0x16')][_0x1456('0x2c')][_0x1456('0x36')](),_0x1456('0x26'))),_0x11f71d=[...new Set(_0x11f71d)],(null===(_0x42c0b9=null===(_0x1e5788=this['editor'][_0x1456('0x1')][_0x1456('0x16')]['selection'][_0x1456('0x29')]())||void 0x0===_0x1e5788?void 0x0:_0x1e5788['parent'])||void 0x0===_0x42c0b9?void 0x0:_0x42c0b9['is'](_0x1456('0x23'),'listItem'))&&(_0x11f71d=_0x11f71d[_0x1456('0x21')](_0x124c65=>_0x124c65['is'](_0x1456('0x23'),_0x1456('0x14')))),_0x11f71d;}[_0x1456('0x31')](_0x19e70f){const _0x18270a=this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x19'));let _0x1fc7a7=Array[_0x1456('0x33')](this[_0x1456('0x0')]['model'][_0x1456('0x16')][_0x1456('0x2c')][_0x1456('0x2e')]())['filter'](_0x19e70f)[_0x1456('0x2d')](_0x438d32=>{const _0x5671dd=this['editor']['model'][_0x1456('0x22')](_0x438d32,0x0);return[..._0x18270a['getSiblingNodes'](_0x5671dd,_0x1456('0x34')),..._0x18270a[_0x1456('0x13')](_0x5671dd,_0x1456('0x26'))];})[_0x1456('0x5')]();return _0x1fc7a7=[...new Set(_0x1fc7a7)],_0x1fc7a7;}[_0x1456('0x1f')](_0x1ec0b7){return'ELEMENT_'+this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x19'))[_0x1456('0x2a')](_0x1ec0b7)[_0x1456('0x8')]()+_0x1456('0x37')+_0x1ec0b7['toUpperCase']()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x326e=['data','MediaEmbedEditing','ELEMENT_MEDIA','options','conversion','mediaEmbed','elementToElement','editor','_descriptionFactory','downcastDispatcher','stop','showSuggestionHighlights','media','afterInit','for','locale','div','dataDowncast','plugins'];(function(_0x2decbe,_0x326ef1){const _0x46ecb5=function(_0x204afb){while(--_0x204afb){_0x2decbe['push'](_0x2decbe['shift']());}};_0x46ecb5(++_0x326ef1);}(_0x326e,0x125));const _0x46ec=function(_0x2decbe,_0x326ef1){_0x2decbe=_0x2decbe-0x0;let _0x46ecb5=_0x326e[_0x2decbe];return _0x46ecb5;};import{Plugin as _0x4ec766}from'ckeditor5/src/core';import{getTranslation as _0x461da4}from'../utils/common-translations';export default class ot extends _0x4ec766{[_0x46ec('0x5')](){const _0x284bc9=this[_0x46ec('0x12')];if(!_0x284bc9[_0x46ec('0xa')]['has'](_0x46ec('0xc')))return;const _0x3ebfc9=_0x284bc9[_0x46ec('0xa')]['get']('TrackChangesEditing'),_0x204b9e=_0x284bc9[_0x46ec('0x7')];_0x3ebfc9['enableCommand'](_0x46ec('0x10')),_0x3ebfc9[_0x46ec('0x0')]['registerElementLabel'](_0x46ec('0x4'),_0x40c885=>_0x461da4(_0x204b9e,_0x46ec('0xd'),_0x40c885)),_0x284bc9[_0x46ec('0xf')][_0x46ec('0x6')](_0x46ec('0x9'))[_0x46ec('0x11')]({'model':_0x46ec('0x4'),'view':(_0x22d3cf,{writer:_0xbe982e,options:_0x2a402b})=>{if(_0x2a402b[_0x46ec('0x3')])return _0xbe982e['createEmptyElement'](_0x46ec('0x8'));},'converterPriority':'high'}),_0x284bc9[_0x46ec('0xb')][_0x46ec('0x1')]['on']('attribute:url:media',(_0x1b64d8,_0xa3114b,_0x1530d7)=>{_0x1530d7[_0x46ec('0xe')][_0x46ec('0x3')]&&_0x1b64d8[_0x46ec('0x2')]();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f1e=['has','MentionEditing','plugins','TrackChangesEditing','editor','enableCommand','afterInit'];(function(_0x9fdcb0,_0x1f1ec6){const _0x33dd0f=function(_0x26e4a8){while(--_0x26e4a8){_0x9fdcb0['push'](_0x9fdcb0['shift']());}};_0x33dd0f(++_0x1f1ec6);}(_0x1f1e,0x8d));const _0x33dd=function(_0x9fdcb0,_0x1f1ec6){_0x9fdcb0=_0x9fdcb0-0x0;let _0x33dd0f=_0x1f1e[_0x9fdcb0];return _0x33dd0f;};import{Plugin as _0x197839}from'ckeditor5/src/core';export default class rt extends _0x197839{[_0x33dd('0x5')](){const _0x461cab=this[_0x33dd('0x3')];_0x461cab[_0x33dd('0x1')][_0x33dd('0x6')](_0x33dd('0x0'))&&_0x461cab['plugins']['get'](_0x33dd('0x2'))[_0x33dd('0x4')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f69=['PageBreakEditing','pageBreak','has','editor','registerElementLabel','TrackChangesEditing','ELEMENT_PAGE_BREAK','_descriptionFactory','get','plugins','locale'];(function(_0x407baf,_0x1f696a){const _0x1a90b9=function(_0x586fa2){while(--_0x586fa2){_0x407baf['push'](_0x407baf['shift']());}};_0x1a90b9(++_0x1f696a);}(_0x1f69,0x173));const _0x1a90=function(_0x407baf,_0x1f696a){_0x407baf=_0x407baf-0x0;let _0x1a90b9=_0x1f69[_0x407baf];return _0x1a90b9;};import{Plugin as _0x33f4bb}from'ckeditor5/src/core';import{getTranslation as _0x59350c}from'../utils/common-translations';export default class at extends _0x33f4bb{['afterInit'](){const _0x2daafd=this[_0x1a90('0x6')];if(!_0x2daafd[_0x1a90('0x1')][_0x1a90('0x5')](_0x1a90('0x3')))return;_0x2daafd[_0x1a90('0x1')][_0x1a90('0x0')](_0x1a90('0x8'))['enableCommand'](_0x1a90('0x4'));const _0x56eafa=_0x2daafd['plugins'][_0x1a90('0x0')](_0x1a90('0x8')),_0xdc994b=_0x2daafd[_0x1a90('0x2')];_0x56eafa[_0x1a90('0xa')][_0x1a90('0x7')](_0x1a90('0x4'),_0x46e556=>_0x59350c(_0xdc994b,_0x1a90('0x9'),_0x46e556));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2009=['plugins','registerElementLabel','selection','enableCommand','schema','addMarker:suggestion:insertion','parent','isBlock','isObject','addClass','includes','markerRange','checkChild','showSuggestionHighlights','name','filter','createUIElement','nodeAfter','downcastDispatcher','*Insert:*\x20%0','blockName','span','markBlockFormat','locale','highest','ck-suggestion-marker--active','insertion','insert','mapper','TrackChangesEditing','ELEMENT_PARAGRAPH','Paragraph','has','isTouching','ck-suggestion-marker-split','getItemLabel','options','activeMarkers','isLimit','insertParagraph','editing','editor','consumable','model','_descriptionFactory','paragraph','change','registerDescriptionCallback','*Change\x20to:*\x20%0','get','getSelectedBlocks','afterInit','end','consume','$text','format','markerName','writer','bindElementToMarker','document'];(function(_0x1e271c,_0x200976){const _0x17954d=function(_0x389dc8){while(--_0x389dc8){_0x1e271c['push'](_0x1e271c['shift']());}};_0x17954d(++_0x200976);}(_0x2009,0xe2));const _0x1795=function(_0x1e271c,_0x200976){_0x1e271c=_0x1e271c-0x0;let _0x17954d=_0x2009[_0x1e271c];return _0x17954d;};import{Plugin as _0x59f063}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x3f38f0}from'./utils';import{getTranslation as _0x4f0cc7}from'../utils/common-translations';export default class ct extends _0x59f063{[_0x1795('0x5')](){const _0x38465d=this[_0x1795('0x37')];if(!_0x38465d[_0x1795('0xe')][_0x1795('0x2e')](_0x1795('0x2d')))return;const _0x33be52=_0x38465d[_0x1795('0x25')],_0xb538d1=_0x38465d[_0x1795('0xe')][_0x1795('0x3')](_0x1795('0x2b'));_0xb538d1['_descriptionFactory'][_0x1795('0xf')](_0x1795('0x3b'),_0x37219e=>_0x4f0cc7(_0x33be52,_0x1795('0x2c'),_0x37219e)),_0xb538d1[_0x1795('0x11')]('paragraph',(_0x5a225a,_0xc6f859={})=>{const _0x212654=_0x38465d[_0x1795('0x39')][_0x1795('0xd')],_0x23144e=_0xc6f859[_0x1795('0x10')]||_0x212654['selection'],_0x40bd4b=Array['from'](_0x23144e[_0x1795('0x4')]())[_0x1795('0x1d')](_0x44a5c5=>function(_0x4f8609,_0x4aaf17){return _0x4aaf17[_0x1795('0x1a')](_0x4f8609[_0x1795('0x14')],'paragraph')&&!_0x4aaf17[_0x1795('0x16')](_0x4f8609)&&_0x1795('0x3b')!=_0x4f8609[_0x1795('0x1c')];}(_0x44a5c5,this[_0x1795('0x37')]['model']['schema']));_0x38465d['model'][_0x1795('0x0')](()=>{for(const _0x33a4d1 of _0x40bd4b)_0xb538d1[_0x1795('0x24')](_0x33a4d1,{'commandName':_0x1795('0x3b'),'commandParams':[],'formatGroupId':_0x1795('0x22')},_0x3f38f0(_0x33a4d1));});}),_0xb538d1['_descriptionFactory'][_0x1795('0x1')](_0x4700e0=>{const {data:_0x94c093}=_0x4700e0;if(_0x94c093&&'paragraph'==_0x94c093['commandName'])return{'type':_0x1795('0x9'),'content':_0x4f0cc7(_0x33be52,_0x1795('0x2'),_0x4f0cc7(_0x33be52,_0x1795('0x2c')))};}),_0xb538d1[_0x1795('0x11')](_0x1795('0x35')),_0x38465d[_0x1795('0x36')][_0x1795('0x20')]['on'](_0x1795('0x13'),ar(_0x38465d),{'priority':_0x1795('0x26')}),_0x38465d['data'][_0x1795('0x20')]['on'](_0x1795('0x13'),(_0x19ea18,_0x43c43a,_0x4fecf4)=>{_0x4fecf4[_0x1795('0x32')][_0x1795('0x1b')]&&ar(_0x38465d,{'showActiveMarker':!0x1})(_0x19ea18,_0x43c43a,_0x4fecf4);},{'priority':_0x1795('0x26')});const _0x221bf3=_0xb538d1[_0x1795('0x3a')];_0x221bf3[_0x1795('0x1')](_0x54e127=>{if(_0x1795('0x28')!==_0x54e127['type'])return;const {start:_0x20b672,end:_0x211ff9}=_0x54e127['getFirstRange']();if(!_0x20b672[_0x1795('0x2f')](_0x211ff9)||!_0x20b672[_0x1795('0x1f')])return;const _0x4f555b=_0x38465d['model'][_0x1795('0x12')],_0x5a7586=_0x20b672['nodeAfter'];return _0x4f555b[_0x1795('0x15')](_0x5a7586)&&!_0x4f555b[_0x1795('0x34')](_0x5a7586)&&_0x4f555b[_0x1795('0x1a')](_0x5a7586,_0x1795('0x8'))?{'type':'insertion','content':_0x4f0cc7(_0x33be52,_0x1795('0x21'),_0x221bf3[_0x1795('0x31')](_0x5a7586,0x1))}:void 0x0;});}}function ar(_0x4dcf81,{showActiveMarker:_0x117618=!0x0}={}){return(_0x5e27ce,_0x227ea3,_0x4d09cc)=>{const _0x40a020=_0x4dcf81[_0x1795('0xe')][_0x1795('0x3')](_0x1795('0x2b')),_0x3e5119=_0x227ea3[_0x1795('0x19')]['start'],_0x282cb9=_0x227ea3['markerRange'][_0x1795('0x6')],_0x103feb=_0x4dcf81[_0x1795('0x39')][_0x1795('0x12')];if(!_0x3e5119[_0x1795('0x2f')](_0x282cb9)||!_0x3e5119['nodeAfter'])return;const _0xb01e83=_0x3e5119[_0x1795('0x1f')];if(_0x103feb[_0x1795('0x15')](_0xb01e83)&&!_0x103feb[_0x1795('0x34')](_0xb01e83)&&_0x103feb['checkChild'](_0xb01e83,_0x1795('0x8'))){if(!_0x4d09cc[_0x1795('0x38')][_0x1795('0x7')](_0x227ea3[_0x1795('0x19')],_0x5e27ce['name']))return;const _0x2d5488=_0x4d09cc['writer'][_0x1795('0x1e')](_0x1795('0x23'),{'class':_0x1795('0x30')}),_0x5081fe=_0x4d09cc[_0x1795('0x2a')]['toViewPosition'](_0x282cb9);_0x117618&&_0x40a020[_0x1795('0x33')][_0x1795('0x18')](_0x227ea3['markerName'])&&_0x4d09cc['writer'][_0x1795('0x17')](_0x1795('0x27'),_0x2d5488),_0x4d09cc[_0x1795('0xb')][_0x1795('0x29')](_0x5081fe,_0x2d5488),_0x4d09cc['mapper'][_0x1795('0xc')](_0x2d5488,_0x227ea3[_0x1795('0xa')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x411a=['getRanges','has','change','createRangeOn','removeFormat','plugins','getAttributeProperties','isFormatting','registerDescriptionCallback','model','commandName','markInlineFormat','get','afterInit','RemoveFormatEditing','TrackChangesEditing','editor','*Remove\x20all\x20formatting*','document','_descriptionFactory','format','getAttributes','schema'];(function(_0x36626a,_0x411a98){const _0x3ab429=function(_0x5e1ee0){while(--_0x5e1ee0){_0x36626a['push'](_0x36626a['shift']());}};_0x3ab429(++_0x411a98);}(_0x411a,0x148));const _0x3ab4=function(_0x36626a,_0x411a98){_0x36626a=_0x36626a-0x0;let _0x3ab429=_0x411a[_0x36626a];return _0x3ab429;};import{Plugin as _0x262263}from'ckeditor5/src/core';import{getTranslation as _0x1f3c38}from'../utils/common-translations';export default class ht extends _0x262263{[_0x3ab4('0x7')](){const _0x2367e2=this[_0x3ab4('0xa')];if(!_0x2367e2[_0x3ab4('0x16')][_0x3ab4('0x12')](_0x3ab4('0x8')))return;const _0x433b47=_0x2367e2[_0x3ab4('0x16')][_0x3ab4('0x6')](_0x3ab4('0x9'));_0x433b47['enableCommand'](_0x3ab4('0x15'),_0x5624b5=>{const _0x3230a5=_0x2367e2[_0x3ab4('0x3')][_0x3ab4('0xc')]['selection'];_0x3230a5['isCollapsed']?_0x5624b5():_0x2367e2[_0x3ab4('0x3')][_0x3ab4('0x13')](()=>{const _0x3b9bf6=Array['from'](_0x3230a5[_0x3ab4('0x11')]());for(const _0x31e66d of _0x3b9bf6)for(const _0x3a9d06 of _0x31e66d['getItems']())eo(_0x3a9d06,_0x2367e2['model'][_0x3ab4('0x10')])&&_0x433b47[_0x3ab4('0x5')](_0x2367e2[_0x3ab4('0x3')][_0x3ab4('0x14')](_0x3a9d06),{'commandName':_0x3ab4('0x15'),'commandParams':[]});});}),_0x433b47[_0x3ab4('0xd')][_0x3ab4('0x2')](_0x40013d=>{const {data:_0x452be9}=_0x40013d;if(_0x452be9&&'removeFormat'==_0x452be9[_0x3ab4('0x4')])return{'type':_0x3ab4('0xe'),'content':_0x1f3c38(_0x2367e2['locale'],_0x3ab4('0xb'))};});}}function eo(_0x24b867,_0x2b6830){for(const [_0x410613]of _0x24b867[_0x3ab4('0xf')]()){const _0x155312=_0x2b6830[_0x3ab4('0x0')](_0x410613);if(_0x155312&&_0x155312[_0x3ab4('0x1')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7c0b=['enableCommand','trackChanges','discardSelectedSuggestions','acceptSuggestion','acceptAllSuggestions','plugins','discardAllSuggestions','goToNextRestrictedEditingException','TrackChangesEditing','RestrictedEditingModeEditing','afterInit','has','discardSuggestion','acceptSelectedSuggestions','get','editor'];(function(_0x2a7002,_0x7c0b40){const _0x3fcf65=function(_0x569173){while(--_0x569173){_0x2a7002['push'](_0x2a7002['shift']());}};_0x3fcf65(++_0x7c0b40);}(_0x7c0b,0x116));const _0x3fcf=function(_0x2a7002,_0x7c0b40){_0x2a7002=_0x2a7002-0x0;let _0x3fcf65=_0x7c0b[_0x2a7002];return _0x3fcf65;};import{Plugin as _0x2d02cb}from'ckeditor5/src/core';export default class ut extends _0x2d02cb{[_0x3fcf('0x4')](){const _0x40e770=this[_0x3fcf('0x9')];if(!_0x40e770[_0x3fcf('0xf')][_0x3fcf('0x5')]('RestrictedEditingModeEditing'))return;const _0x7b262e=_0x40e770[_0x3fcf('0xf')][_0x3fcf('0x8')](_0x3fcf('0x2'));_0x7b262e[_0x3fcf('0xa')]('goToPreviousRestrictedEditingException'),_0x7b262e[_0x3fcf('0xa')](_0x3fcf('0x1'));const _0x5c2f81=_0x40e770[_0x3fcf('0xf')][_0x3fcf('0x8')](_0x3fcf('0x3'));_0x5c2f81[_0x3fcf('0xa')](_0x3fcf('0xb')),_0x5c2f81['enableCommand'](_0x3fcf('0xd')),_0x5c2f81[_0x3fcf('0xa')](_0x3fcf('0x6')),_0x5c2f81['enableCommand'](_0x3fcf('0xe')),_0x5c2f81[_0x3fcf('0xa')](_0x3fcf('0x0')),_0x5c2f81[_0x3fcf('0xa')](_0x3fcf('0x7')),_0x5c2f81[_0x3fcf('0xa')](_0x3fcf('0xc'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4596=['mapper','enableCommand','_descriptionFactory','getItems','ck-suggestion-marker-','options','init','downcastDispatcher','createUIElement','writer','model','span','element','shiftEnter','addMarker:suggestion:insertion','activeMarkers','split','includes','locale','TrackChangesEditing','consumable','addClass','registerElementLabel','get','markerName','name','softBreak','merge','requires','insert','showSuggestionHighlights','createPositionBefore','ck-suggestion-marker--active','editor','data','editing','markerRange','bindElementToMarker','plugins'];(function(_0x1868f6,_0x459695){const _0xfc4aed=function(_0x1866d8){while(--_0x1866d8){_0x1868f6['push'](_0x1868f6['shift']());}};_0xfc4aed(++_0x459695);}(_0x4596,0xca));const _0xfc4a=function(_0x1868f6,_0x459695){_0x1868f6=_0x1868f6-0x0;let _0xfc4aed=_0x4596[_0x1868f6];return _0xfc4aed;};import{Plugin as _0x1fb16b}from'ckeditor5/src/core';import{ShiftEnter as _0x12f698}from'ckeditor5/src/enter';import{getTranslation as _0x23a1dc}from'../utils/common-translations';export default class ft extends _0x1fb16b{static get[_0xfc4a('0x15')](){return[_0x12f698];}[_0xfc4a('0x26')](){const _0x4f47bf=this[_0xfc4a('0x1a')],_0x33a02e=_0x4f47bf[_0xfc4a('0x1f')][_0xfc4a('0x10')](_0xfc4a('0xc'));_0x33a02e[_0xfc4a('0x21')](_0xfc4a('0x6')),_0x4f47bf[_0xfc4a('0x1c')]['downcastDispatcher']['on'](_0xfc4a('0x7'),re(_0x4f47bf),{'priority':'high'}),_0x4f47bf[_0xfc4a('0x1c')][_0xfc4a('0x0')]['on']('addMarker:suggestion:deletion',re(_0x4f47bf),{'priority':'high'}),_0x4f47bf[_0xfc4a('0x1b')][_0xfc4a('0x0')]['on']('addMarker:suggestion',(_0xfbb53c,_0x2119a5,_0x55e7cb)=>{_0x55e7cb[_0xfc4a('0x25')][_0xfc4a('0x17')]&&re(_0x4f47bf,{'showActiveMarker':!0x1})(_0xfbb53c,_0x2119a5,_0x55e7cb);}),_0x33a02e[_0xfc4a('0x22')][_0xfc4a('0xf')](_0xfc4a('0x13'),_0x35263a=>_0x23a1dc(_0x4f47bf[_0xfc4a('0xb')],'ELEMENT_LINE_BREAK',_0x35263a));}}function re(_0x55056d,{showActiveMarker:_0x2623d4=!0x0}={}){return(_0xa9cb59,_0x18a32c,_0x5edee8)=>{const _0x44100c=_0x55056d[_0xfc4a('0x1f')]['get'](_0xfc4a('0xc'));if(!_0x5edee8[_0xfc4a('0xd')]['test'](_0x18a32c[_0xfc4a('0x1d')],_0xa9cb59[_0xfc4a('0x12')]))return;const _0x410685=_0x55056d[_0xfc4a('0x3')];for(const _0x2cf1e4 of _0x18a32c[_0xfc4a('0x1d')][_0xfc4a('0x23')]()){if(!_0x2cf1e4['is'](_0xfc4a('0x5'),_0xfc4a('0x13')))continue;const _0x381829='deletion'==_0x18a32c['markerName'][_0xfc4a('0x9')](':')[0x1]?_0xfc4a('0x14'):_0xfc4a('0x9'),_0x495ed8=_0x5edee8[_0xfc4a('0x2')][_0xfc4a('0x1')](_0xfc4a('0x4'),{'class':_0xfc4a('0x24')+_0x381829}),_0x4b37c2=_0x5edee8[_0xfc4a('0x20')]['toViewPosition'](_0x410685[_0xfc4a('0x18')](_0x2cf1e4));_0x2623d4&&_0x44100c[_0xfc4a('0x8')][_0xfc4a('0xa')](_0x18a32c[_0xfc4a('0x11')])&&_0x5edee8[_0xfc4a('0x2')][_0xfc4a('0xe')](_0xfc4a('0x19'),_0x495ed8),_0x5edee8[_0xfc4a('0x2')][_0xfc4a('0x16')](_0x4b37c2,_0x495ed8),_0x5edee8[_0xfc4a('0x20')][_0xfc4a('0x1e')](_0x495ed8,_0x18a32c[_0xfc4a('0x11')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x380b=['value','commandParams','forceValue','model','afterInit','markInlineFormat','has','enableCommand','registerDescriptionCallback','plugins','format','change','StandardEditingModeEditing','commandName','restrictedEditingException','TrackChangesEditing','FORMAT_RESTRICTED_ENABLED','document','_descriptionFactory','get','from','isCollapsed'];(function(_0x28c08c,_0x380b66){const _0xe6de2e=function(_0x1eb066){while(--_0x1eb066){_0x28c08c['push'](_0x28c08c['shift']());}};_0xe6de2e(++_0x380b66);}(_0x380b,0x10f));const _0xe6de=function(_0x28c08c,_0x380b66){_0x28c08c=_0x28c08c-0x0;let _0xe6de2e=_0x380b[_0x28c08c];return _0xe6de2e;};import{Plugin as _0x401474}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x2f0e40}from'./utils';import{getTranslation as _0xdea1a3}from'../utils/common-translations';export default class lt extends _0x401474{[_0xe6de('0x13')](){const _0x19c168=this['editor'],_0x3b31b1=_0x19c168[_0xe6de('0x12')],_0x10bf51=_0x19c168['locale'];if(!_0x19c168[_0xe6de('0x2')][_0xe6de('0x15')](_0xe6de('0x5')))return;const _0x49c192=_0x19c168[_0xe6de('0x2')]['get'](_0xe6de('0x8')),_0x28032d=_0xe6de('0x7'),_0x4ffd6e=_0x19c168['commands'][_0xe6de('0xc')](_0x28032d);_0x49c192[_0xe6de('0x0')](_0x28032d,(_0x1fe6fd,_0x4b6065={})=>{const _0x1866aa=_0x3b31b1[_0xe6de('0xa')]['selection'];if(_0x1866aa[_0xe6de('0xe')])return void _0x1fe6fd(_0x4b6065);const _0x29da6a=void 0x0!==_0x4b6065[_0xe6de('0x11')]?_0x4b6065['forceValue']:!_0x4ffd6e[_0xe6de('0xf')];_0x3b31b1[_0xe6de('0x4')](()=>{const _0x25f745=Array[_0xe6de('0xd')](_0x1866aa['getRanges']());for(const _0x203e37 of _0x25f745){const _0x4ffd0f=_0x29da6a?[_0x203e37]:_0x2f0e40(_0x28032d,_0x203e37,_0x3b31b1);for(const _0xf97720 of _0x4ffd0f)_0x49c192[_0xe6de('0x14')](_0xf97720,{'commandName':_0x28032d,'commandParams':[{'forceValue':_0x29da6a}]});}});}),_0x49c192[_0xe6de('0xb')][_0xe6de('0x1')](_0x2f8b25=>{const {data:_0x3e4c10}=_0x2f8b25;if(_0x3e4c10&&_0x3e4c10[_0xe6de('0x6')]==_0x28032d)return _0x3e4c10[_0xe6de('0x10')][0x0][_0xe6de('0x11')]?{'type':_0xe6de('0x3'),'content':_0xdea1a3(_0x10bf51,_0xe6de('0x9'))}:{'type':_0xe6de('0x3'),'content':_0xdea1a3(_0x10bf51,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x255e=['name','_getStyleDefinition','style:','add','modelElements','push','styleName','classes','locale','getDefinitionsForView','style.definitions','toLowerCase','change','style','inline','enableCommand','plugins','Style','document','*Remove\x20format:*\x20%0','normalizeConfig','getSelectedBlocks','includes','commandName','model','registerDescriptionCallback','_descriptionFactory','get','commandParams','isBlock','createRangeOn','from','element','afterInit','forceValue','value','editor','enabledStyles','markInlineFormat','find','isCollapsed','commands','config','getAttribute','every','StyleUtils','block','*Format:*\x20%0'];(function(_0x2333f5,_0x255e27){const _0x5a82e3=function(_0x59fffb){while(--_0x59fffb){_0x2333f5['push'](_0x2333f5['shift']());}};_0x5a82e3(++_0x255e27);}(_0x255e,0xf7));const _0x5a82=function(_0x2333f5,_0x255e27){_0x2333f5=_0x2333f5-0x0;let _0x5a82e3=_0x255e[_0x2333f5];return _0x5a82e3;};import{Plugin as _0x399bf0}from'ckeditor5/src/core';import{getTranslation as _0xb81081}from'../utils/common-translations';export default class gt extends _0x399bf0{[_0x5a82('0x1a')](){const _0x31edb5=this[_0x5a82('0x1d')];if(!_0x31edb5[_0x5a82('0x9')]['has'](_0x5a82('0xa')))return;const _0x33ed4c=_0x31edb5[_0x5a82('0x22')]['get'](_0x5a82('0x6')),_0x490bb6=_0x31edb5['plugins'][_0x5a82('0x14')]('TrackChangesEditing'),_0xf5ede1=_0x31edb5[_0x5a82('0x1')],_0x49c390=_0x31edb5[_0x5a82('0x9')][_0x5a82('0x14')]('DataSchema'),_0x262ff6=_0x31edb5['plugins']['get'](_0x5a82('0x26'))[_0x5a82('0xd')](_0x49c390,_0x31edb5[_0x5a82('0x23')]['get'](_0x5a82('0x3')));_0x490bb6[_0x5a82('0x8')]('style',(_0x2db92d,{styleName:_0xbb7633})=>{const _0x43df45=_0x31edb5[_0x5a82('0x11')][_0x5a82('0xb')]['selection'],_0x50b24e=this[_0x5a82('0x2a')](_0xbb7633,_0x262ff6);if(!_0x50b24e)return;if(!_0x33ed4c[_0x5a82('0x1e')][_0x5a82('0xf')](_0xbb7633))return;if(_0x43df45[_0x5a82('0x21')]&&!_0x50b24e[_0x5a82('0x16')])return void _0x2db92d({'styleName':_0xbb7633});const _0x39c37c=!_0x33ed4c[_0x5a82('0x1c')][_0x5a82('0xf')](_0x50b24e['name']);if(_0x50b24e[_0x5a82('0x16')]){const _0x300dfc=function(_0x5254e0,_0x2db20d){const _0x434747=new Set();for(const _0x1356d8 of _0x5254e0){const _0x2c3fe8=_0x1356d8['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x9dd4f5 of _0x2c3fe8)if(_0x2db20d[_0x5a82('0xf')](_0x9dd4f5['name'])){_0x434747[_0x5a82('0x2c')](_0x9dd4f5);break;}}return _0x434747;}(_0x43df45[_0x5a82('0xe')](),_0x50b24e[_0x5a82('0x2d')]);_0x31edb5['model'][_0x5a82('0x5')](()=>{for(const _0x42842d of _0x300dfc)_0x490bb6['markBlockFormat'](_0x42842d,{'commandName':'style','commandParams':[{'styleName':_0xbb7633,'forceValue':_0x39c37c}],'formatGroupId':_0x5a82('0x2b')+_0xbb7633});});}else{let _0x2536ad=Array[_0x5a82('0x18')](_0x43df45['getRanges']());if(!_0x39c37c){const _0x500d62=Array[_0x5a82('0x18')](_0x49c390[_0x5a82('0x2')](_0x50b24e[_0x5a82('0x19')],!0x1))[0x0][_0x5a82('0x11')],_0x3f0351=[];for(const _0x35f8d8 of _0x2536ad){const _0x289679=this['_getRangesWithClasses'](_0x31edb5['model'],_0x35f8d8,_0x50b24e[_0x5a82('0x0')],_0x500d62);_0x3f0351['push'](..._0x289679);}_0x2536ad=_0x3f0351;}_0x31edb5[_0x5a82('0x11')][_0x5a82('0x5')](()=>{for(const _0x3f0326 of _0x2536ad)_0x490bb6[_0x5a82('0x1f')](_0x3f0326,{'commandName':_0x5a82('0x6'),'commandParams':[{'styleName':_0xbb7633,'forceValue':_0x39c37c}]});});}}),_0x490bb6[_0x5a82('0x13')][_0x5a82('0x12')](_0x7a16ad=>{const {data:_0x2b1696}=_0x7a16ad;if(_0x2b1696&&_0x5a82('0x6')===_0x2b1696[_0x5a82('0x10')])return _0x2b1696['commandParams'][0x0][_0x5a82('0x1b')]?{'type':'format','content':_0xb81081(_0xf5ede1,_0x5a82('0x28'),_0x2b1696[_0x5a82('0x15')][0x0][_0x5a82('0x2f')]['toLowerCase']())}:{'type':'format','content':_0xb81081(_0xf5ede1,_0x5a82('0xc'),_0x2b1696[_0x5a82('0x15')][0x0]['styleName'][_0x5a82('0x4')]())};});}['_getStyleDefinition'](_0x17b7e9,_0x3f8ad4){let _0x20a913=_0x3f8ad4[_0x5a82('0x27')]['find'](_0x3d0736=>_0x3d0736[_0x5a82('0x29')]===_0x17b7e9);return _0x20a913||(_0x20a913=_0x3f8ad4[_0x5a82('0x7')][_0x5a82('0x20')](_0x480e5f=>_0x480e5f[_0x5a82('0x29')]===_0x17b7e9)),_0x20a913;}['_getRangesWithClasses'](_0x18f7de,_0x2571da,_0x5e7ac7,_0xa4ed4e){const _0x5ec105=[];for(const _0x43f85e of _0x2571da['getItems']()){const _0x5cf5b8=_0x43f85e[_0x5a82('0x24')](_0xa4ed4e);_0x5cf5b8&&(_0x5e7ac7[_0x5a82('0x25')](_0x2c6a2b=>_0x5cf5b8[_0x5a82('0x0')][_0x5a82('0xf')](_0x2c6a2b))&&_0x5ec105[_0x5a82('0x2e')](_0x18f7de[_0x5a82('0x17')](_0x43f85e)));}return _0x5ec105;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1251=['_tablePostFixingSubtypes','has','TableEditing','plugins','isEqual','execute','name','oldRange','mapper','suggestion','change','findAncestor','markMultiRangeInsertion','registerPostFixer','showSuggestionHighlights','selectTableRow','_descriptionFactory','table','downcastDispatcher','selection','minColumn','insertion','enqueueChange','last','nodeBefore','hasAttribute','max','editor','cell','ELEMENT_TABLE_ROW','values','getSelectionAffectedTableCells','nodeAfter','insertTable','_setupColumnsRowsFixing','_suggestionFactory','differ','insert','addRange','MAX_SAFE_INTEGER','ELEMENT_TABLE','afterInit','fromRange','createPositionAt','document','$graveyard','join','rowspan','substr','registerCustomCallback','highest','toLowerCase','addClass','insertTableRowBelow','first','every','includes','root','min','tableRow','get','getChanges','some','_acceptFormatSuggestionCallbackFactory','rootName','ELEMENT_TABLE_WITH_TEXT','forceValue','subType','insertTableColumnRight','addMarker:suggestion','getSuggestion','_tableSuggestions','batch','length','registerDescriptionCallback','writer','getContainedElement','classes','_getCoordsForCells','isArray','startsWith','MIN_SAFE_INTEGER','isIntersectingWithRange','removeTableColumn','map','order','minRow','low','type','selectTableColumn','$textProxy','position','refresh','createTableWalker','getRowIndexes','enableCommand','locale','_getSuggestionCoords','removeTableRow','tablePaste','setSelection','isTouching','item','element','createRangeIn','model','getItems','getCellLocation','tableCell','tableColumn','getRanges','registerElementLabel','TableUtils','commands','createRangeOn','ELEMENT_TABLE_COLUMN_WITH_TEXT','discard','end','from','*Remove:*\x20%0','TrackChangesEditing','filter','accept','insertTableColumnLeft','maxRow','data','deletion','start','toViewElement','colspan','*Insert:*\x20%0','getAttribute','detach','ELEMENT_TABLE_COLUMN','push'];(function(_0xcd132b,_0x1251ae){const _0x475e3c=function(_0x3172a6){while(--_0x3172a6){_0xcd132b['push'](_0xcd132b['shift']());}};_0x475e3c(++_0x1251ae);}(_0x1251,0x99));const _0x475e=function(_0xcd132b,_0x1251ae){_0xcd132b=_0xcd132b-0x0;let _0x475e3c=_0x1251[_0xcd132b];return _0x475e3c;};import{Plugin as _0x1cdcfd}from'ckeditor5/src/core';import{LiveRange as _0x37b854}from'ckeditor5/src/engine';import{setHighlightHandling as _0x120d8a}from'ckeditor5/src/widget';import{getTranslation as _0x13a608}from'../utils/common-translations';export default class mt extends _0x1cdcfd{constructor(_0x3bd103){super(_0x3bd103),this[_0x475e('0x75')]=[_0x475e('0x29'),_0x475e('0x5b')],this[_0x475e('0x35')]=new Set();}[_0x475e('0x17')](){const _0x3a723a=this[_0x475e('0x9')],_0x3d077b=_0x3a723a[_0x475e('0x57')][_0x475e('0x1a')]['selection'];if(!_0x3a723a[_0x475e('0x78')][_0x475e('0x76')](_0x475e('0x77')))return;const _0x2ef58f=_0x3a723a[_0x475e('0x4e')],_0x594122=_0x3a723a[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x66')),_0x32569e=_0x3a723a[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x5e'));_0x594122[_0x475e('0x85')][_0x475e('0x5d')](_0x475e('0x86'),_0x3166e4=>_0x13a608(_0x2ef58f,_0x475e('0x16'),_0x3166e4)),this[_0x475e('0x10')](),_0x594122[_0x475e('0x4d')](_0x475e('0xf')),_0x594122[_0x475e('0x4d')](_0x475e('0x84')),_0x594122['enableCommand'](_0x475e('0x47'));for(const _0x23439f of['insertTableRowAbove',_0x475e('0x23')]){const _0x2a95b5=_0x3a723a[_0x475e('0x5f')]['get'](_0x23439f);_0x594122[_0x475e('0x4d')](_0x23439f,_0x40e417=>{_0x3a723a['model'][_0x475e('0x7f')](_0x52f005=>{_0x40e417();const _0x18ca26='above'===_0x2a95b5[_0x475e('0x43')],_0x4fa6b9=_0x32569e[_0x475e('0xd')](_0x3d077b),_0x186a7b=_0x32569e[_0x475e('0x4c')](_0x4fa6b9),_0x3eee0c=_0x18ca26?_0x186a7b[_0x475e('0x24')]-0x1:_0x186a7b[_0x475e('0x5')]+0x1,_0x4c11c4=_0x4fa6b9[0x0][_0x475e('0x80')](_0x475e('0x86')),_0x43e5d8=_0x32569e[_0x475e('0x4b')](_0x4c11c4,{'startRow':_0x3eee0c,'endRow':_0x3eee0c}),_0x6155f7=Array['from'](_0x43e5d8)[_0x475e('0x42')](_0x1a6197=>_0x52f005['createRangeOn'](_0x1a6197[_0x475e('0xa')]));_0x594122[_0x475e('0x81')](_0x6155f7,'tableRow');});});}for(const _0x20ba22 of[_0x475e('0x69'),_0x475e('0x32')]){const _0x1413fd=_0x3a723a[_0x475e('0x5f')][_0x475e('0x2a')](_0x20ba22);_0x594122[_0x475e('0x4d')](_0x20ba22,_0x4dfc55=>{_0x3a723a[_0x475e('0x57')]['change'](_0x5bdafb=>{_0x4dfc55();const _0x457224='left'===_0x1413fd[_0x475e('0x43')],_0x293424=_0x32569e[_0x475e('0xd')](_0x3d077b),_0x3a7b87=_0x32569e['getColumnIndexes'](_0x293424),_0x5b235c=_0x457224?_0x3a7b87[_0x475e('0x24')]-0x1:_0x3a7b87[_0x475e('0x5')]+0x1,_0x50b642=_0x293424[0x0]['findAncestor'](_0x475e('0x86')),_0x17520b=_0x32569e[_0x475e('0x4b')](_0x50b642,{'startRow':0x0,'column':_0x5b235c,'includeAllSlots':!0x1}),_0x336418=Array[_0x475e('0x64')](_0x17520b)[_0x475e('0x42')](_0x1a14f9=>_0x5bdafb['createRangeOn'](_0x1a14f9[_0x475e('0xa')]));_0x594122[_0x475e('0x81')](_0x336418,'tableColumn');});});}for(const _0x5e8cec of[_0x475e('0x50'),_0x475e('0x41')]){const _0x25e06f=_0x5e8cec[_0x475e('0x1e')](0xb),_0x468b83=_0x25e06f[_0x475e('0x21')](),_0x15a423=_0x468b83[_0x475e('0x1e')](0x0,0x3)+'span',_0x35936c='table'+_0x25e06f,_0x608f87=_0x475e('0x28')+_0x25e06f,_0x506584=_0x475e('0x8')+_0x25e06f;_0x594122['enableCommand'](_0x5e8cec,()=>{_0x3a723a['model']['change'](_0x17ff86=>{const _0xf16393=_0x32569e[_0x475e('0xd')](_0x3d077b),_0x9e9fc8=_0xf16393[0x0][_0x475e('0x80')]('table');let _0x4621a8;if('removeTableRow'==_0x5e8cec){const _0x4f1f69=_0x32569e[_0x475e('0x4c')](_0xf16393);_0x4621a8={'startRow':_0x4f1f69[_0x475e('0x24')],'endRow':_0x4f1f69[_0x475e('0x5')],'includeAllSlots':!0x0};}else{const _0x42ee3e=_0x32569e['getColumnIndexes'](_0xf16393);_0x4621a8={'startColumn':_0x42ee3e[_0x475e('0x24')],'endColumn':_0x42ee3e[_0x475e('0x5')],'includeAllSlots':!0x0};}const _0x4a9a6e=_0x32569e['createTableWalker'](_0x9e9fc8,_0x4621a8),_0x119151=Array[_0x475e('0x64')](_0x4a9a6e)[_0x475e('0x42')](({cell:_0x3f6335})=>_0x3f6335),_0x32677f=se(_0x119151[_0x475e('0x67')](_0x10672e=>_0x10672e['hasAttribute'](_0x15a423))),_0x2dc2db=se(_0x119151[_0x475e('0x67')](_0x18b435=>!_0x18b435[_0x475e('0x7')](_0x15a423)))[_0x475e('0x42')](_0x5c07ef=>_0x17ff86[_0x475e('0x60')](_0x5c07ef)),_0xcc448e=_0x594122['markMultiRangeDeletion'](_0x2dc2db,_0x35936c);if(_0xcc448e&&(_0x475e('0x29')==_0xcc448e[_0x475e('0x31')]||_0x475e('0x5b')==_0xcc448e[_0x475e('0x31')])){const _0x5a7331=this[_0x475e('0x4f')](_0xcc448e);for(const _0x53d731 of _0x32677f){const _0x49980c=_0x17ff86['createRangeOn'](_0x53d731),_0x468446=_0x32569e[_0x475e('0x59')](_0x53d731),_0xa82df9=_0x53d731[_0x475e('0x71')](_0x15a423)-0x1,_0x3183c0=_0x5a7331[_0x608f87],_0x3babb1=_0x5a7331[_0x506584];_0x3183c0<=_0x468446[_0x468b83]&&_0x468446[_0x468b83]+_0xa82df9<=_0x3babb1&&_0xcc448e[_0x475e('0x14')](_0x49980c);}}});});}function _0x12def0(_0x193379){const _0x4d1cbe=Array[_0x475e('0x64')](_0x3d077b[_0x475e('0x5c')]())[_0x475e('0x42')](_0x8a15e6=>_0x37b854[_0x475e('0x18')](_0x8a15e6));_0x3a723a['model']['change'](_0x26afee=>{const _0x4aa9a4=_0x26afee[_0x475e('0x36')];_0x193379=_0x193379[_0x475e('0x67')](_0x57d4f3=>_0x475e('0x1b')!=_0x57d4f3[_0x475e('0x27')][_0x475e('0x2e')]),_0x26afee['setSelection'](_0x193379),_0x3a723a[_0x475e('0x5f')][_0x475e('0x2a')](_0x475e('0x50'))[_0x475e('0x4a')](),_0x3a723a[_0x475e('0x7a')](_0x475e('0x50'),{'forceDefaultExecution':!0x0}),_0x3a723a[_0x475e('0x57')][_0x475e('0x4')](()=>{_0x3a723a[_0x475e('0x57')]['enqueueChange'](_0x4aa9a4,_0x4c3488=>{const _0x44e587=_0x4d1cbe[_0x475e('0x67')](_0x9b80d8=>'$graveyard'!=_0x9b80d8[_0x475e('0x27')][_0x475e('0x2e')]);_0x44e587[_0x475e('0x37')]>0x0&&_0x4c3488['setSelection'](_0x44e587);for(const _0x9863cb of _0x4d1cbe)_0x9863cb[_0x475e('0x72')]();});});});}function _0x3127fe(_0x33f176){_0x3a723a['model'][_0x475e('0x7f')](_0xc73db7=>{const _0x5dbd09=Array[_0x475e('0x64')](_0x3d077b[_0x475e('0x5c')]())[_0x475e('0x42')](_0x56c503=>_0x37b854[_0x475e('0x18')](_0x56c503)),_0x5a03b6=[];for(const _0x198a2b of _0x33f176)for(const _0x243cc9 of _0x198a2b[_0x475e('0x58')]({'shallow':!0x0}))_0x5a03b6['push'](_0x243cc9);for(const _0x1f9338 of _0x5a03b6)_0x475e('0x1b')!=_0x1f9338[_0x475e('0x27')][_0x475e('0x2e')]&&(_0xc73db7[_0x475e('0x52')](_0xc73db7[_0x475e('0x19')](_0x1f9338,0x0)),_0x3a723a['commands'][_0x475e('0x2a')](_0x475e('0x41'))[_0x475e('0x4a')](),_0x3a723a['execute'](_0x475e('0x41'),{'forceDefaultExecution':!0x0}));const _0x409cfc=_0x5dbd09[_0x475e('0x67')](_0x42c4a4=>_0x475e('0x1b')!=_0x42c4a4['root'][_0x475e('0x2e')]);_0x409cfc[_0x475e('0x37')]>0x0&&_0xc73db7[_0x475e('0x52')](_0x409cfc);for(const _0x5ee700 of _0x5dbd09)_0x5ee700[_0x475e('0x72')]();});}function _0x1129f6(_0x3b8d56,_0x7734aa){return _0x7734aa[_0x475e('0x25')](_0x390677=>_0x3b8d56['some'](_0xac47c1=>_0xac47c1[_0x475e('0x63')][_0x475e('0x79')](_0x390677['start'])||_0x390677[_0x475e('0x63')][_0x475e('0x79')](_0xac47c1[_0x475e('0x6d')])));}function _0x45544d(_0x232ca2,_0x268fdc){return _0x232ca2[_0x475e('0x2c')](_0x1a1de6=>_0x268fdc[_0x475e('0x2c')](_0x150fb0=>_0x1a1de6[_0x475e('0x63')][_0x475e('0x53')](_0x150fb0[_0x475e('0x6d')])));}_0x3a723a[_0x475e('0x6b')][_0x475e('0x0')]['on'](_0x475e('0x33'),(_0x22b356,_0x2b7e42,_0x47c1ff)=>{if(!_0x47c1ff['options'][_0x475e('0x83')])return;const _0x52af56=_0x2b7e42[_0x475e('0x54')];if(!_0x52af56)return;const _0x1cd175=_0x47c1ff[_0x475e('0x7d')][_0x475e('0x6e')](_0x52af56);function _0x1375df(_0x384040){return Array[_0x475e('0x3d')](_0x384040)?_0x384040:[_0x384040];}_0x1cd175&&_0x475e('0x5a')===_0x52af56[_0x475e('0x7b')]&&_0x120d8a(_0x1cd175,_0x47c1ff[_0x475e('0x39')],(_0x276a84,_0x501488,_0x570c8a)=>_0x570c8a[_0x475e('0x22')](_0x1375df(_0x501488[_0x475e('0x3b')]),_0x276a84),(_0x4c0d47,_0x1692b6,_0x3ac287)=>_0x3ac287['removeClass'](_0x1375df(_0x1692b6['classes']),_0x4c0d47));},{'priority':_0x475e('0x20')}),_0x594122['_descriptionFactory'][_0x475e('0x38')](_0x2c2f6b=>{if('insertion'!=_0x2c2f6b[_0x475e('0x46')]&&'deletion'!=_0x2c2f6b[_0x475e('0x46')])return;const _0x34ce67=_0x2c2f6b[_0x475e('0x3a')]();if(null!=_0x34ce67&&_0x34ce67['is'](_0x475e('0x55'),_0x475e('0x86'))){if(_0x475e('0x3')==_0x2c2f6b['type']){const _0x205fca=_0x2c2f6b[_0x475e('0x58')]()[_0x475e('0x67')](_0x40e62c=>_0x40e62c['is'](_0x475e('0x48')))[_0x475e('0x42')](_0x42738c=>_0x42738c[_0x475e('0x6b')]);if(_0x205fca['length'])return{'type':_0x475e('0x3'),'content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,_0x475e('0x2f'),'\x22'+_0x205fca[_0x475e('0x1c')]('\x20')+'\x22'))};}if(_0x475e('0x6c')==_0x2c2f6b[_0x475e('0x46')]){const _0x5963e1=_0x2c2f6b['getItems']()[_0x475e('0x67')](_0x4e71f8=>_0x4e71f8['is'](_0x475e('0x48')))['map'](_0x5c4967=>_0x5c4967[_0x475e('0x6b')]);if(_0x5963e1[_0x475e('0x37')])return{'type':'deletion','content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0x2f'),'\x22'+_0x5963e1['join']('\x20')+'\x22'))};}}}),_0x594122[_0x475e('0x85')][_0x475e('0x38')](_0x13a3b5=>{if('tableRow'==_0x13a3b5[_0x475e('0x31')]){const _0x250216=_0x13a3b5[_0x475e('0x58')]()[_0x475e('0x67')](_0x589541=>_0x589541['is'](_0x475e('0x48')))[_0x475e('0x42')](_0x4b6bd2=>_0x4b6bd2['data']),_0x5dbca8=this['_getSuggestionCoords'](_0x13a3b5),_0x463b49=_0x5dbca8[_0x475e('0x6a')]-_0x5dbca8[_0x475e('0x44')]+0x1;if(_0x475e('0x3')==_0x13a3b5[_0x475e('0x46')])return _0x250216[_0x475e('0x37')]?{'type':'insertion','content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x463b49,'\x22'+_0x250216[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,_0x475e('0xb'),_0x463b49))};if(_0x475e('0x6c')==_0x13a3b5[_0x475e('0x46')])return _0x250216[_0x475e('0x37')]?{'type':_0x475e('0x6c'),'content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x463b49,'\x22'+_0x250216[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':_0x475e('0x6c'),'content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0xb'),_0x463b49))};}if(_0x475e('0x5b')==_0x13a3b5['subType']){const _0x38ffb4=_0x13a3b5[_0x475e('0x58')]()['filter'](_0x2987d4=>_0x2987d4['is'](_0x475e('0x48')))[_0x475e('0x42')](_0x25d358=>_0x25d358[_0x475e('0x6b')]),_0x3f5919=this['_getSuggestionCoords'](_0x13a3b5),_0x3b28bc=_0x3f5919['maxColumn']-_0x3f5919[_0x475e('0x2')]+0x1;if(_0x475e('0x3')==_0x13a3b5['type'])return _0x38ffb4['length']?{'type':_0x475e('0x3'),'content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,_0x475e('0x61'),[_0x3b28bc,'\x22'+_0x38ffb4[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':_0x475e('0x3'),'content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,'ELEMENT_TABLE_COLUMN',_0x3b28bc))};if(_0x475e('0x6c')==_0x13a3b5['type'])return _0x38ffb4[_0x475e('0x37')]?{'type':'deletion','content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0x61'),[_0x3b28bc,'\x22'+_0x38ffb4[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0x73'),_0x3b28bc))};}}),_0x594122[_0x475e('0x11')][_0x475e('0x1f')]('insertion',_0x475e('0x29'),_0x475e('0x62'),_0x12def0),_0x594122[_0x475e('0x11')][_0x475e('0x1f')](_0x475e('0x6c'),'tableRow',_0x475e('0x68'),_0x12def0),_0x594122[_0x475e('0x11')][_0x475e('0x1f')](_0x475e('0x3'),_0x475e('0x5b'),'discard',_0x3127fe),_0x594122['_suggestionFactory']['registerCustomCallback'](_0x475e('0x6c'),_0x475e('0x5b'),'accept',_0x3127fe),_0x594122['_suggestionFactory'][_0x475e('0x1f')](_0x475e('0x3'),_0x475e('0x5b'),_0x475e('0x1c'),_0x1129f6),_0x594122['_suggestionFactory'][_0x475e('0x1f')](_0x475e('0x6c'),'tableColumn',_0x475e('0x1c'),_0x1129f6),_0x594122[_0x475e('0x11')]['registerCustomCallback'](_0x475e('0x3'),_0x475e('0x29'),'join',_0x45544d),_0x594122[_0x475e('0x11')][_0x475e('0x1f')](_0x475e('0x6c'),_0x475e('0x29'),'join',_0x45544d);}[_0x475e('0x2d')](){const _0x3c3357=this['editor'],_0x57ba92=_0x3c3357['model']['document'][_0x475e('0x1')];return(_0x2b4e2f,_0x3c8dc6)=>{_0x3c3357[_0x475e('0x57')][_0x475e('0x7f')](_0x5eb3f5=>{const {commandName:_0x5dad0b,commandParams:_0x347885}=_0x3c8dc6;let _0x38118a=_0x2b4e2f[0x0][_0x475e('0x63')][_0x475e('0x6')];_0x347885&&_0x347885[0x0]&&!0x1===_0x347885[0x0][_0x475e('0x30')]&&(_0x38118a=_0x2b4e2f[0x0][_0x475e('0x6d')][_0x475e('0xe')]);const _0x4f1c36=_0x5eb3f5[_0x475e('0x56')](_0x38118a);if('$graveyard'==_0x4f1c36[_0x475e('0x27')][_0x475e('0x2e')])return;const _0x1a0113=Array[_0x475e('0x64')](_0x57ba92['getRanges']())['map'](_0x2bfd08=>_0x37b854[_0x475e('0x18')](_0x2bfd08));_0x5eb3f5['setSelection'](_0x4f1c36),_0x3c3357[_0x475e('0x5f')]['get'](_0x5dad0b)[_0x475e('0x4a')](),_0x347885[_0x475e('0x74')]({'forceDefaultExecution':!0x0}),_0x3c3357[_0x475e('0x7a')](_0x5dad0b,..._0x347885);const _0x24f0c3=_0x1a0113[_0x475e('0x67')](_0x522d5e=>_0x475e('0x1b')!=_0x522d5e[_0x475e('0x27')][_0x475e('0x2e')]);_0x24f0c3[_0x475e('0x37')]>0x0&&_0x5eb3f5[_0x475e('0x52')](_0x24f0c3);for(const _0x423abc of _0x1a0113)_0x423abc[_0x475e('0x72')]();});};}[_0x475e('0x3c')](_0x227163){const _0xda9254=this[_0x475e('0x9')]['plugins'][_0x475e('0x2a')]('TableUtils');let _0x229a14=Number[_0x475e('0x15')],_0x42a9d4=Number[_0x475e('0x3f')],_0x3749aa=Number[_0x475e('0x15')],_0x33d131=Number[_0x475e('0x3f')];for(const _0x37300c of _0x227163){if('$graveyard'==_0x37300c[_0x475e('0x27')][_0x475e('0x2e')])continue;const {row:_0x20c3ee,column:_0x3dc2ff}=_0xda9254[_0x475e('0x59')](_0x37300c),_0x5a45af=_0x37300c[_0x475e('0x7')](_0x475e('0x1d'))?_0x37300c[_0x475e('0x71')](_0x475e('0x1d'))-0x1:0x0,_0x1b0d73=_0x37300c['hasAttribute'](_0x475e('0x6f'))?_0x37300c[_0x475e('0x71')]('colspan')-0x1:0x0;_0x229a14=_0x20c3ee<_0x229a14?_0x20c3ee:_0x229a14,_0x42a9d4=_0x20c3ee+_0x5a45af>_0x42a9d4?_0x20c3ee+_0x5a45af:_0x42a9d4,_0x3749aa=_0x3dc2ff<_0x3749aa?_0x3dc2ff:_0x3749aa,_0x33d131=_0x3dc2ff+_0x1b0d73>_0x33d131?_0x3dc2ff+_0x1b0d73:_0x33d131;}return{'minRow':_0x229a14,'maxRow':_0x42a9d4,'minColumn':_0x3749aa,'maxColumn':_0x33d131};}[_0x475e('0x10')](){const _0x5d4e6f=this[_0x475e('0x9')],_0x1ce830=_0x5d4e6f[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x66')),_0x467ad4=_0x5d4e6f[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x5e'));_0x5d4e6f[_0x475e('0x57')]['document']['on']('change:data',()=>{const _0x40a495=Array['from'](_0x5d4e6f[_0x475e('0x57')]['document'][_0x475e('0x12')]['getChangedMarkers']());for(const {name:_0x96f05d,data:_0x5d2d1b}of _0x40a495){const {group:_0x1e7e8d,id:_0x548ee3,subType:_0x2dcfee}=_0x1ce830['_splitMarkerName'](_0x96f05d);if(_0x475e('0x7e')!=_0x1e7e8d)continue;if(null!=_0x5d2d1b[_0x475e('0x7c')])continue;const _0x46ff09=_0x1ce830[_0x475e('0x34')](_0x548ee3);this[_0x475e('0x75')][_0x475e('0x26')](_0x2dcfee)&&this[_0x475e('0x35')]['add'](_0x46ff09);}},{'priority':_0x475e('0x45')});const _0x155e86=(_0x5c91c6,_0x364bfe)=>{let _0x3df475=!0x1;const _0x501f1b=_0x364bfe[_0x475e('0x60')](_0x5c91c6),_0x41ddcc=_0x5c91c6['findAncestor'](_0x475e('0x86')),_0x12f849=_0x467ad4[_0x475e('0x59')](_0x5c91c6);for(const _0x12ab94 of this[_0x475e('0x35')]){const _0x2e542a=_0x12ab94[_0x475e('0x31')],_0x4080c4=_0x2e542a[_0x475e('0x3e')](_0x475e('0x51')),_0x4d9ccd=_0x2e542a[_0x475e('0x1e')](_0x4080c4?0xa:0x5),_0x4d47ab=_0x4d9ccd[_0x475e('0x21')](),_0x30f6e9=_0x4d47ab['substr'](0x0,0x3)+'span',_0x181651=_0x475e('0x28')+_0x4d9ccd,_0x4eac47='max'+_0x4d9ccd;if(!_0x12ab94['isInContent'])continue;if(_0x41ddcc!=_0x12ab94['getFirstRange']()[_0x475e('0x6d')][_0x475e('0x80')](_0x475e('0x86')))continue;if(_0x12ab94[_0x475e('0x40')](_0x501f1b))continue;const _0x2f2139=_0x5c91c6[_0x475e('0x7')](_0x30f6e9)?_0x5c91c6[_0x475e('0x71')](_0x30f6e9)-0x1:0x0,_0x470c0b=this[_0x475e('0x4f')](_0x12ab94),_0x5b7286=_0x470c0b[_0x181651],_0x18d381=_0x470c0b[_0x4eac47];_0x5b7286<=_0x12f849[_0x4d47ab]&&_0x12f849[_0x4d47ab]+_0x2f2139<=_0x18d381&&(_0x12ab94[_0x475e('0x14')](_0x501f1b),_0x3df475=!0x0);}return _0x3df475;};_0x5d4e6f[_0x475e('0x57')]['document'][_0x475e('0x82')](_0x8d32bb=>{let _0x307026=!0x1;for(const _0x1ffbdc of _0x5d4e6f[_0x475e('0x57')][_0x475e('0x1a')][_0x475e('0x12')][_0x475e('0x2b')]())if(_0x475e('0x13')==_0x1ffbdc['type']){if(_0x475e('0x29')==_0x1ffbdc[_0x475e('0x7b')])for(const _0xdfe617 of _0x1ffbdc[_0x475e('0x49')][_0x475e('0xe')]['getChildren']())_0x307026=_0x307026||_0x155e86(_0xdfe617,_0x8d32bb);else _0x475e('0x5a')==_0x1ffbdc[_0x475e('0x7b')]&&(_0x307026=_0x307026||_0x155e86(_0x1ffbdc['position'][_0x475e('0xe')],_0x8d32bb));}return _0x307026;});}[_0x475e('0x4f')](_0x55beda){return this[_0x475e('0x3c')](_0x55beda[_0x475e('0x5c')]()[_0x475e('0x42')](_0x28a827=>_0x28a827[_0x475e('0x6d')]['nodeAfter']));}}function se(_0x176719){return Array[_0x475e('0x64')](new Set(_0x176719)[_0x475e('0xc')]());}
|
|
23
|
+
const _0x3330=['addClass','min','*Insert:*\x20%0','tableRow','ELEMENT_TABLE','createPositionAt','colspan','insertTableRowBelow','getAttribute','span','MAX_SAFE_INTEGER','insertTable','getSelectionAffectedTableCells','getContainedElement','classes','ELEMENT_TABLE_COLUMN','_getCoordsForCells','TableEditing','length','order','TableUtils','editor','push','nodeBefore','markMultiRangeDeletion','getChanges','_descriptionFactory','getChangedMarkers','getColumnIndexes','_acceptFormatSuggestionCallbackFactory','start','from','deletion','isTouching','getItems','startsWith','TrackChangesEditing','root','left','nodeAfter','getRanges','type','refresh','add','low','_tableSuggestions','getCellLocation','maxColumn','rowspan','change','change:data','afterInit','highest','toLowerCase','getFirstRange','join','locale','isArray','insertion','substr','element','item','_getSuggestionCoords','maxRow','subType','tablePaste','discard','removeTableRow','registerDescriptionCallback','fromRange','table','enableCommand','insertTableColumnLeft','selectTableRow','addMarker:suggestion','values','isEqual','_suggestionFactory','removeClass','execute','ELEMENT_TABLE_WITH_TEXT','*Remove:*\x20%0','oldRange','name','accept','addRange','last','ELEMENT_TABLE_ROW','batch','insert','createRangeIn','minRow','every','selectTableColumn','registerCustomCallback','_tablePostFixingSubtypes','rootName','writer','selection','plugins','_setupColumnsRowsFixing','enqueueChange','some','tableCell','ELEMENT_TABLE_ROW_WITH_TEXT','end','filter','getRowIndexes','has','findAncestor','cell','commands','mapper','$graveyard','createRangeOn','insertTableRowAbove','model','removeTableColumn','first','minColumn','isIntersectingWithRange','get','getSuggestion','tableColumn','map','$textProxy','hasAttribute','max','setSelection','ELEMENT_TABLE_COLUMN_WITH_TEXT','createTableWalker','data','suggestion','position','document','markMultiRangeInsertion','detach'];(function(_0x45ca6c,_0x333085){const _0x4e2ded=function(_0x5b5fd7){while(--_0x5b5fd7){_0x45ca6c['push'](_0x45ca6c['shift']());}};_0x4e2ded(++_0x333085);}(_0x3330,0x189));const _0x4e2d=function(_0x45ca6c,_0x333085){_0x45ca6c=_0x45ca6c-0x0;let _0x4e2ded=_0x3330[_0x45ca6c];return _0x4e2ded;};import{Plugin as _0x12b2e6}from'ckeditor5/src/core';import{LiveRange as _0x90ec29}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3ec0b5}from'ckeditor5/src/widget';import{getTranslation as _0x44045d}from'../utils/common-translations';export default class mt extends _0x12b2e6{constructor(_0x12d06b){super(_0x12d06b),this[_0x4e2d('0x71')]=[_0x4e2d('0x15'),_0x4e2d('0x4')],this[_0x4e2d('0x3f')]=new Set();}[_0x4e2d('0x45')](){const _0x593b0c=this['editor'],_0x350ce7=_0x593b0c['model'][_0x4e2d('0xf')][_0x4e2d('0x74')];if(!_0x593b0c[_0x4e2d('0x75')][_0x4e2d('0x7e')](_0x4e2d('0x23')))return;const _0x56d02e=_0x593b0c[_0x4e2d('0x4a')],_0x32fed5=_0x593b0c[_0x4e2d('0x75')][_0x4e2d('0x2')](_0x4e2d('0x36')),_0x43ae23=_0x593b0c['plugins']['get'](_0x4e2d('0x26'));_0x32fed5['_descriptionFactory']['registerElementLabel'](_0x4e2d('0x58'),_0x5c6371=>_0x44045d(_0x56d02e,_0x4e2d('0x16'),_0x5c6371)),this[_0x4e2d('0x76')](),_0x32fed5[_0x4e2d('0x59')](_0x4e2d('0x1d')),_0x32fed5[_0x4e2d('0x59')](_0x4e2d('0x5b')),_0x32fed5['enableCommand'](_0x4e2d('0x6f'));for(const _0x4e9a92 of[_0x4e2d('0x85'),_0x4e2d('0x19')]){const _0x12c4ad=_0x593b0c[_0x4e2d('0x81')][_0x4e2d('0x2')](_0x4e9a92);_0x32fed5[_0x4e2d('0x59')](_0x4e9a92,_0x414e0d=>{_0x593b0c['model'][_0x4e2d('0x43')](_0xac3378=>{_0x414e0d();const _0x5d732c='above'===_0x12c4ad[_0x4e2d('0x25')],_0x3f22f3=_0x43ae23[_0x4e2d('0x1e')](_0x350ce7),_0x18a42d=_0x43ae23[_0x4e2d('0x7d')](_0x3f22f3),_0x36277a=_0x5d732c?_0x18a42d[_0x4e2d('0x88')]-0x1:_0x18a42d[_0x4e2d('0x68')]+0x1,_0x3e8290=_0x3f22f3[0x0][_0x4e2d('0x7f')](_0x4e2d('0x58')),_0x5de768=_0x43ae23[_0x4e2d('0xb')](_0x3e8290,{'startRow':_0x36277a,'endRow':_0x36277a}),_0x318274=Array[_0x4e2d('0x31')](_0x5de768)[_0x4e2d('0x5')](_0x45e704=>_0xac3378[_0x4e2d('0x84')](_0x45e704[_0x4e2d('0x80')]));_0x32fed5[_0x4e2d('0x10')](_0x318274,_0x4e2d('0x15'));});});}for(const _0x579dee of[_0x4e2d('0x5a'),'insertTableColumnRight']){const _0x5d972a=_0x593b0c[_0x4e2d('0x81')][_0x4e2d('0x2')](_0x579dee);_0x32fed5[_0x4e2d('0x59')](_0x579dee,_0xf9e746=>{_0x593b0c[_0x4e2d('0x86')][_0x4e2d('0x43')](_0x2eb9d7=>{_0xf9e746();const _0x1740ff=_0x4e2d('0x38')===_0x5d972a['order'],_0x12f21b=_0x43ae23[_0x4e2d('0x1e')](_0x350ce7),_0x39ab7a=_0x43ae23[_0x4e2d('0x2e')](_0x12f21b),_0xa9d830=_0x1740ff?_0x39ab7a[_0x4e2d('0x88')]-0x1:_0x39ab7a['last']+0x1,_0x41343c=_0x12f21b[0x0][_0x4e2d('0x7f')](_0x4e2d('0x58')),_0x48081d=_0x43ae23[_0x4e2d('0xb')](_0x41343c,{'startRow':0x0,'column':_0xa9d830,'includeAllSlots':!0x1}),_0x12e22a=Array[_0x4e2d('0x31')](_0x48081d)[_0x4e2d('0x5')](_0x118141=>_0x2eb9d7['createRangeOn'](_0x118141[_0x4e2d('0x80')]));_0x32fed5[_0x4e2d('0x10')](_0x12e22a,_0x4e2d('0x4'));});});}for(const _0x4599e9 of[_0x4e2d('0x55'),_0x4e2d('0x87')]){const _0x5869b3=_0x4599e9['substr'](0xb),_0x5eec63=_0x5869b3[_0x4e2d('0x47')](),_0x4f5bd3=_0x5eec63[_0x4e2d('0x4d')](0x0,0x3)+_0x4e2d('0x1b'),_0x496bf6=_0x4e2d('0x58')+_0x5869b3,_0x35c0cc=_0x4e2d('0x13')+_0x5869b3,_0x3a844b='max'+_0x5869b3;_0x32fed5[_0x4e2d('0x59')](_0x4599e9,()=>{_0x593b0c[_0x4e2d('0x86')]['change'](_0x5235d4=>{const _0x36be89=_0x43ae23[_0x4e2d('0x1e')](_0x350ce7),_0x398177=_0x36be89[0x0]['findAncestor'](_0x4e2d('0x58'));let _0x2c465e;if(_0x4e2d('0x55')==_0x4599e9){const _0x3fa1d6=_0x43ae23[_0x4e2d('0x7d')](_0x36be89);_0x2c465e={'startRow':_0x3fa1d6[_0x4e2d('0x88')],'endRow':_0x3fa1d6[_0x4e2d('0x68')],'includeAllSlots':!0x0};}else{const _0x1659c6=_0x43ae23[_0x4e2d('0x2e')](_0x36be89);_0x2c465e={'startColumn':_0x1659c6[_0x4e2d('0x88')],'endColumn':_0x1659c6['last'],'includeAllSlots':!0x0};}const _0x3a065d=_0x43ae23['createTableWalker'](_0x398177,_0x2c465e),_0x415041=Array['from'](_0x3a065d)[_0x4e2d('0x5')](({cell:_0x612948})=>_0x612948),_0x31358a=se(_0x415041[_0x4e2d('0x7c')](_0x286c32=>_0x286c32[_0x4e2d('0x7')](_0x4f5bd3))),_0x46795e=se(_0x415041['filter'](_0x5f0b9d=>!_0x5f0b9d[_0x4e2d('0x7')](_0x4f5bd3)))['map'](_0x157757=>_0x5235d4['createRangeOn'](_0x157757)),_0x1939fc=_0x32fed5[_0x4e2d('0x2a')](_0x46795e,_0x496bf6);if(_0x1939fc&&(_0x4e2d('0x15')==_0x1939fc[_0x4e2d('0x52')]||_0x4e2d('0x4')==_0x1939fc[_0x4e2d('0x52')])){const _0x503571=this[_0x4e2d('0x50')](_0x1939fc);for(const _0x106dc0 of _0x31358a){const _0x3f6519=_0x5235d4[_0x4e2d('0x84')](_0x106dc0),_0x311961=_0x43ae23[_0x4e2d('0x40')](_0x106dc0),_0x1a2f95=_0x106dc0[_0x4e2d('0x1a')](_0x4f5bd3)-0x1,_0x4a45be=_0x503571[_0x35c0cc],_0x54961f=_0x503571[_0x3a844b];_0x4a45be<=_0x311961[_0x5eec63]&&_0x311961[_0x5eec63]+_0x1a2f95<=_0x54961f&&_0x1939fc[_0x4e2d('0x67')](_0x3f6519);}}});});}function _0x10540e(_0x12cd48){const _0x3ae834=Array[_0x4e2d('0x31')](_0x350ce7[_0x4e2d('0x3a')]())[_0x4e2d('0x5')](_0x5269e0=>_0x90ec29[_0x4e2d('0x57')](_0x5269e0));_0x593b0c['model']['change'](_0x21388a=>{const _0x5ad863=_0x21388a[_0x4e2d('0x6a')];_0x12cd48=_0x12cd48[_0x4e2d('0x7c')](_0x9686e0=>_0x4e2d('0x83')!=_0x9686e0['root'][_0x4e2d('0x72')]),_0x21388a['setSelection'](_0x12cd48),_0x593b0c[_0x4e2d('0x81')][_0x4e2d('0x2')]('removeTableRow')[_0x4e2d('0x3c')](),_0x593b0c[_0x4e2d('0x61')](_0x4e2d('0x55'),{'forceDefaultExecution':!0x0}),_0x593b0c['model'][_0x4e2d('0x77')](()=>{_0x593b0c[_0x4e2d('0x86')][_0x4e2d('0x77')](_0x5ad863,_0x260e84=>{const _0x1fb827=_0x3ae834['filter'](_0x11ffd6=>_0x4e2d('0x83')!=_0x11ffd6[_0x4e2d('0x37')][_0x4e2d('0x72')]);_0x1fb827[_0x4e2d('0x24')]>0x0&&_0x260e84[_0x4e2d('0x9')](_0x1fb827);for(const _0xc9bad7 of _0x3ae834)_0xc9bad7[_0x4e2d('0x11')]();});});});}function _0x2ab5d5(_0x292acd){_0x593b0c['model'][_0x4e2d('0x43')](_0x335251=>{const _0x4a276d=Array[_0x4e2d('0x31')](_0x350ce7[_0x4e2d('0x3a')]())[_0x4e2d('0x5')](_0x1604e6=>_0x90ec29[_0x4e2d('0x57')](_0x1604e6)),_0x2e0768=[];for(const _0x389053 of _0x292acd)for(const _0xc152be of _0x389053[_0x4e2d('0x34')]({'shallow':!0x0}))_0x2e0768[_0x4e2d('0x28')](_0xc152be);for(const _0x3480de of _0x2e0768)_0x4e2d('0x83')!=_0x3480de['root'][_0x4e2d('0x72')]&&(_0x335251[_0x4e2d('0x9')](_0x335251[_0x4e2d('0x17')](_0x3480de,0x0)),_0x593b0c['commands'][_0x4e2d('0x2')]('removeTableColumn')['refresh'](),_0x593b0c[_0x4e2d('0x61')](_0x4e2d('0x87'),{'forceDefaultExecution':!0x0}));const _0x191f00=_0x4a276d[_0x4e2d('0x7c')](_0x4526de=>_0x4e2d('0x83')!=_0x4526de[_0x4e2d('0x37')]['rootName']);_0x191f00[_0x4e2d('0x24')]>0x0&&_0x335251[_0x4e2d('0x9')](_0x191f00);for(const _0x948ff of _0x4a276d)_0x948ff[_0x4e2d('0x11')]();});}function _0x5c2b57(_0x34f68a,_0x3cba7d){return _0x3cba7d[_0x4e2d('0x6e')](_0x55629d=>_0x34f68a[_0x4e2d('0x78')](_0x39d370=>_0x39d370[_0x4e2d('0x7b')][_0x4e2d('0x5e')](_0x55629d[_0x4e2d('0x30')])||_0x55629d['end'][_0x4e2d('0x5e')](_0x39d370[_0x4e2d('0x30')])));}function _0x3e3298(_0x5ba33e,_0x335141){return _0x5ba33e['some'](_0x42ace2=>_0x335141[_0x4e2d('0x78')](_0x5ce0a2=>_0x42ace2[_0x4e2d('0x7b')][_0x4e2d('0x33')](_0x5ce0a2[_0x4e2d('0x30')])));}_0x593b0c[_0x4e2d('0xc')]['downcastDispatcher']['on'](_0x4e2d('0x5c'),(_0x1bde97,_0x48847e,_0x56f8e6)=>{if(!_0x56f8e6['options']['showSuggestionHighlights'])return;const _0xa612e8=_0x48847e[_0x4e2d('0x4f')];if(!_0xa612e8)return;const _0x4edaa7=_0x56f8e6[_0x4e2d('0x82')]['toViewElement'](_0xa612e8);function _0x13821f(_0x145c43){return Array[_0x4e2d('0x4b')](_0x145c43)?_0x145c43:[_0x145c43];}_0x4edaa7&&_0x4e2d('0x79')===_0xa612e8[_0x4e2d('0x65')]&&_0x3ec0b5(_0x4edaa7,_0x56f8e6[_0x4e2d('0x73')],(_0x6f633d,_0x1771f7,_0x4c70c2)=>_0x4c70c2[_0x4e2d('0x12')](_0x13821f(_0x1771f7[_0x4e2d('0x20')]),_0x6f633d),(_0x2ee56c,_0x5063f8,_0x211912)=>_0x211912[_0x4e2d('0x60')](_0x13821f(_0x5063f8[_0x4e2d('0x20')]),_0x2ee56c));},{'priority':_0x4e2d('0x46')}),_0x32fed5[_0x4e2d('0x2c')][_0x4e2d('0x56')](_0x547784=>{if(_0x4e2d('0x4c')!=_0x547784[_0x4e2d('0x3b')]&&_0x4e2d('0x32')!=_0x547784[_0x4e2d('0x3b')])return;const _0x5c3444=_0x547784[_0x4e2d('0x1f')]();if(null!=_0x5c3444&&_0x5c3444['is'](_0x4e2d('0x4e'),'table')){if(_0x4e2d('0x4c')==_0x547784[_0x4e2d('0x3b')]){const _0x5c06ab=_0x547784[_0x4e2d('0x34')]()['filter'](_0x191757=>_0x191757['is']('$textProxy'))['map'](_0x3e3e90=>_0x3e3e90['data']);if(_0x5c06ab[_0x4e2d('0x24')])return{'type':_0x4e2d('0x4c'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x14'),_0x44045d(_0x56d02e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c06ab[_0x4e2d('0x49')]('\x20')+'\x22'))};}if('deletion'==_0x547784[_0x4e2d('0x3b')]){const _0x1668b5=_0x547784['getItems']()['filter'](_0x427989=>_0x427989['is'](_0x4e2d('0x6')))[_0x4e2d('0x5')](_0x3854c9=>_0x3854c9['data']);if(_0x1668b5[_0x4e2d('0x24')])return{'type':_0x4e2d('0x32'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x63'),_0x44045d(_0x56d02e,_0x4e2d('0x62'),'\x22'+_0x1668b5[_0x4e2d('0x49')]('\x20')+'\x22'))};}}}),_0x32fed5[_0x4e2d('0x2c')][_0x4e2d('0x56')](_0x5a6049=>{if('tableRow'==_0x5a6049[_0x4e2d('0x52')]){const _0x3a1b30=_0x5a6049[_0x4e2d('0x34')]()[_0x4e2d('0x7c')](_0x1431a1=>_0x1431a1['is'](_0x4e2d('0x6')))[_0x4e2d('0x5')](_0x389f55=>_0x389f55[_0x4e2d('0xc')]),_0x37c921=this['_getSuggestionCoords'](_0x5a6049),_0x4e9997=_0x37c921[_0x4e2d('0x51')]-_0x37c921[_0x4e2d('0x6d')]+0x1;if(_0x4e2d('0x4c')==_0x5a6049[_0x4e2d('0x3b')])return _0x3a1b30['length']?{'type':_0x4e2d('0x4c'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x14'),_0x44045d(_0x56d02e,_0x4e2d('0x7a'),[_0x4e9997,'\x22'+_0x3a1b30[_0x4e2d('0x49')]('\x20')+'\x22']))}:{'type':_0x4e2d('0x4c'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x14'),_0x44045d(_0x56d02e,_0x4e2d('0x69'),_0x4e9997))};if(_0x4e2d('0x32')==_0x5a6049[_0x4e2d('0x3b')])return _0x3a1b30['length']?{'type':_0x4e2d('0x32'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x63'),_0x44045d(_0x56d02e,_0x4e2d('0x7a'),[_0x4e9997,'\x22'+_0x3a1b30[_0x4e2d('0x49')]('\x20')+'\x22']))}:{'type':_0x4e2d('0x32'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x63'),_0x44045d(_0x56d02e,'ELEMENT_TABLE_ROW',_0x4e9997))};}if(_0x4e2d('0x4')==_0x5a6049[_0x4e2d('0x52')]){const _0xb78af0=_0x5a6049[_0x4e2d('0x34')]()[_0x4e2d('0x7c')](_0x2bcadc=>_0x2bcadc['is']('$textProxy'))['map'](_0x8b0d0a=>_0x8b0d0a['data']),_0x1ee8b5=this[_0x4e2d('0x50')](_0x5a6049),_0x5a29a6=_0x1ee8b5[_0x4e2d('0x41')]-_0x1ee8b5[_0x4e2d('0x0')]+0x1;if('insertion'==_0x5a6049[_0x4e2d('0x3b')])return _0xb78af0[_0x4e2d('0x24')]?{'type':_0x4e2d('0x4c'),'content':_0x44045d(_0x56d02e,'*Insert:*\x20%0',_0x44045d(_0x56d02e,_0x4e2d('0xa'),[_0x5a29a6,'\x22'+_0xb78af0['join']('\x20')+'\x22']))}:{'type':_0x4e2d('0x4c'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x14'),_0x44045d(_0x56d02e,_0x4e2d('0x21'),_0x5a29a6))};if(_0x4e2d('0x32')==_0x5a6049[_0x4e2d('0x3b')])return _0xb78af0[_0x4e2d('0x24')]?{'type':'deletion','content':_0x44045d(_0x56d02e,_0x4e2d('0x63'),_0x44045d(_0x56d02e,_0x4e2d('0xa'),[_0x5a29a6,'\x22'+_0xb78af0['join']('\x20')+'\x22']))}:{'type':_0x4e2d('0x32'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x63'),_0x44045d(_0x56d02e,_0x4e2d('0x21'),_0x5a29a6))};}}),_0x32fed5['_suggestionFactory'][_0x4e2d('0x70')](_0x4e2d('0x4c'),'tableRow',_0x4e2d('0x54'),_0x10540e),_0x32fed5[_0x4e2d('0x5f')]['registerCustomCallback'](_0x4e2d('0x32'),_0x4e2d('0x15'),_0x4e2d('0x66'),_0x10540e),_0x32fed5[_0x4e2d('0x5f')][_0x4e2d('0x70')]('insertion',_0x4e2d('0x4'),'discard',_0x2ab5d5),_0x32fed5[_0x4e2d('0x5f')][_0x4e2d('0x70')](_0x4e2d('0x32'),'tableColumn','accept',_0x2ab5d5),_0x32fed5['_suggestionFactory'][_0x4e2d('0x70')]('insertion',_0x4e2d('0x4'),_0x4e2d('0x49'),_0x5c2b57),_0x32fed5[_0x4e2d('0x5f')][_0x4e2d('0x70')]('deletion',_0x4e2d('0x4'),'join',_0x5c2b57),_0x32fed5[_0x4e2d('0x5f')]['registerCustomCallback']('insertion',_0x4e2d('0x15'),'join',_0x3e3298),_0x32fed5[_0x4e2d('0x5f')][_0x4e2d('0x70')]('deletion',_0x4e2d('0x15'),_0x4e2d('0x49'),_0x3e3298);}[_0x4e2d('0x2f')](){const _0x3787d9=this[_0x4e2d('0x27')],_0xb121a9=_0x3787d9[_0x4e2d('0x86')][_0x4e2d('0xf')]['selection'];return(_0xb2cef6,_0x4bf417)=>{_0x3787d9['model']['change'](_0x7c9f3e=>{const {commandName:_0x5cf466,commandParams:_0xf6743}=_0x4bf417;let _0x14841a=_0xb2cef6[0x0]['end'][_0x4e2d('0x29')];_0xf6743&&_0xf6743[0x0]&&!0x1===_0xf6743[0x0]['forceValue']&&(_0x14841a=_0xb2cef6[0x0]['start'][_0x4e2d('0x39')]);const _0x931be0=_0x7c9f3e[_0x4e2d('0x6c')](_0x14841a);if(_0x4e2d('0x83')==_0x931be0[_0x4e2d('0x37')][_0x4e2d('0x72')])return;const _0x244921=Array['from'](_0xb121a9[_0x4e2d('0x3a')]())[_0x4e2d('0x5')](_0x17c7c2=>_0x90ec29['fromRange'](_0x17c7c2));_0x7c9f3e['setSelection'](_0x931be0),_0x3787d9[_0x4e2d('0x81')][_0x4e2d('0x2')](_0x5cf466)['refresh'](),_0xf6743[_0x4e2d('0x28')]({'forceDefaultExecution':!0x0}),_0x3787d9['execute'](_0x5cf466,..._0xf6743);const _0x163de2=_0x244921['filter'](_0xfb1c10=>_0x4e2d('0x83')!=_0xfb1c10[_0x4e2d('0x37')][_0x4e2d('0x72')]);_0x163de2[_0x4e2d('0x24')]>0x0&&_0x7c9f3e[_0x4e2d('0x9')](_0x163de2);for(const _0x33930d of _0x244921)_0x33930d[_0x4e2d('0x11')]();});};}[_0x4e2d('0x22')](_0xc17b64){const _0x2e5172=this[_0x4e2d('0x27')][_0x4e2d('0x75')]['get'](_0x4e2d('0x26'));let _0x41075c=Number[_0x4e2d('0x1c')],_0x2e199f=Number['MIN_SAFE_INTEGER'],_0x4dbdcc=Number['MAX_SAFE_INTEGER'],_0x22d02b=Number['MIN_SAFE_INTEGER'];for(const _0x5beed3 of _0xc17b64){if(_0x4e2d('0x83')==_0x5beed3[_0x4e2d('0x37')][_0x4e2d('0x72')])continue;const {row:_0x4d111b,column:_0x2430b9}=_0x2e5172[_0x4e2d('0x40')](_0x5beed3),_0x383de5=_0x5beed3[_0x4e2d('0x7')](_0x4e2d('0x42'))?_0x5beed3[_0x4e2d('0x1a')](_0x4e2d('0x42'))-0x1:0x0,_0x2abae1=_0x5beed3[_0x4e2d('0x7')](_0x4e2d('0x18'))?_0x5beed3['getAttribute'](_0x4e2d('0x18'))-0x1:0x0;_0x41075c=_0x4d111b<_0x41075c?_0x4d111b:_0x41075c,_0x2e199f=_0x4d111b+_0x383de5>_0x2e199f?_0x4d111b+_0x383de5:_0x2e199f,_0x4dbdcc=_0x2430b9<_0x4dbdcc?_0x2430b9:_0x4dbdcc,_0x22d02b=_0x2430b9+_0x2abae1>_0x22d02b?_0x2430b9+_0x2abae1:_0x22d02b;}return{'minRow':_0x41075c,'maxRow':_0x2e199f,'minColumn':_0x4dbdcc,'maxColumn':_0x22d02b};}[_0x4e2d('0x76')](){const _0x5a6bbb=this[_0x4e2d('0x27')],_0x1c3159=_0x5a6bbb[_0x4e2d('0x75')][_0x4e2d('0x2')]('TrackChangesEditing'),_0x133542=_0x5a6bbb['plugins']['get']('TableUtils');_0x5a6bbb[_0x4e2d('0x86')][_0x4e2d('0xf')]['on'](_0x4e2d('0x44'),()=>{const _0x270bd2=Array[_0x4e2d('0x31')](_0x5a6bbb[_0x4e2d('0x86')][_0x4e2d('0xf')]['differ'][_0x4e2d('0x2d')]());for(const {name:_0x5b1e28,data:_0x3d8f98}of _0x270bd2){const {group:_0x183a05,id:_0x1ee920,subType:_0x3cd1e4}=_0x1c3159['_splitMarkerName'](_0x5b1e28);if(_0x4e2d('0xd')!=_0x183a05)continue;if(null!=_0x3d8f98[_0x4e2d('0x64')])continue;const _0x1db258=_0x1c3159[_0x4e2d('0x3')](_0x1ee920);this[_0x4e2d('0x71')]['includes'](_0x3cd1e4)&&this[_0x4e2d('0x3f')][_0x4e2d('0x3d')](_0x1db258);}},{'priority':_0x4e2d('0x3e')});const _0x576dee=(_0x2f1620,_0x5dd9d5)=>{let _0x315df3=!0x1;const _0x975da3=_0x5dd9d5[_0x4e2d('0x84')](_0x2f1620),_0x10639f=_0x2f1620[_0x4e2d('0x7f')](_0x4e2d('0x58')),_0x5c84b7=_0x133542[_0x4e2d('0x40')](_0x2f1620);for(const _0x4477ff of this[_0x4e2d('0x3f')]){const _0x439c1e=_0x4477ff[_0x4e2d('0x52')],_0x152dc3=_0x439c1e[_0x4e2d('0x35')](_0x4e2d('0x53')),_0x22e6ba=_0x439c1e[_0x4e2d('0x4d')](_0x152dc3?0xa:0x5),_0xf200d=_0x22e6ba[_0x4e2d('0x47')](),_0x127d41=_0xf200d['substr'](0x0,0x3)+'span',_0x460b38=_0x4e2d('0x13')+_0x22e6ba,_0x51fb9c=_0x4e2d('0x8')+_0x22e6ba;if(!_0x4477ff['isInContent'])continue;if(_0x10639f!=_0x4477ff[_0x4e2d('0x48')]()[_0x4e2d('0x30')][_0x4e2d('0x7f')]('table'))continue;if(_0x4477ff[_0x4e2d('0x1')](_0x975da3))continue;const _0x470184=_0x2f1620['hasAttribute'](_0x127d41)?_0x2f1620['getAttribute'](_0x127d41)-0x1:0x0,_0x1daa29=this[_0x4e2d('0x50')](_0x4477ff),_0x3ba517=_0x1daa29[_0x460b38],_0x1b207c=_0x1daa29[_0x51fb9c];_0x3ba517<=_0x5c84b7[_0xf200d]&&_0x5c84b7[_0xf200d]+_0x470184<=_0x1b207c&&(_0x4477ff[_0x4e2d('0x67')](_0x975da3),_0x315df3=!0x0);}return _0x315df3;};_0x5a6bbb[_0x4e2d('0x86')]['document']['registerPostFixer'](_0x562f24=>{let _0x788151=!0x1;for(const _0x2e78f9 of _0x5a6bbb['model']['document']['differ'][_0x4e2d('0x2b')]())if(_0x4e2d('0x6b')==_0x2e78f9[_0x4e2d('0x3b')]){if(_0x4e2d('0x15')==_0x2e78f9[_0x4e2d('0x65')])for(const _0x209436 of _0x2e78f9['position'][_0x4e2d('0x39')]['getChildren']())_0x788151=_0x788151||_0x576dee(_0x209436,_0x562f24);else'tableCell'==_0x2e78f9[_0x4e2d('0x65')]&&(_0x788151=_0x788151||_0x576dee(_0x2e78f9[_0x4e2d('0xe')][_0x4e2d('0x39')],_0x562f24));}return _0x788151;});}[_0x4e2d('0x50')](_0x25edec){return this[_0x4e2d('0x22')](_0x25edec['getRanges']()['map'](_0x1fecf6=>_0x1fecf6[_0x4e2d('0x30')][_0x4e2d('0x39')]));}}function se(_0x2538f3){return Array[_0x4e2d('0x31')](new Set(_0x2538f3)[_0x4e2d('0x5d')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfa57=['get','enableCommand','plugins','afterInit','editor','TrackChangesEditing','has','requires','toggleTableCaption'];(function(_0x14470d,_0xfa57c6){const _0x79abad=function(_0x16211c){while(--_0x16211c){_0x14470d['push'](_0x14470d['shift']());}};_0x79abad(++_0xfa57c6);}(_0xfa57,0xb9));const _0x79ab=function(_0x14470d,_0xfa57c6){_0x14470d=_0x14470d-0x0;let _0x79abad=_0xfa57[_0x14470d];return _0x79abad;};import{Plugin as _0x27455c}from'ckeditor5/src/core';import _0x52f356 from'./table';export default class vt extends _0x27455c{static get[_0x79ab('0x2')](){return[_0x52f356];}[_0x79ab('0x7')](){const _0x2babeb=this[_0x79ab('0x8')];if(!_0x2babeb[_0x79ab('0x6')][_0x79ab('0x1')]('TableCaptionEditing'))return;_0x2babeb[_0x79ab('0x6')][_0x79ab('0x4')](_0x79ab('0x0'))[_0x79ab('0x5')](_0x79ab('0x3'));}}
|