@ckeditor/ckeditor5-track-changes 35.0.1 → 35.1.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/build/track-changes.js +1 -1
- package/build/translations/tt.js +1 -0
- package/build/translations/ur.js +1 -0
- package/lang/translations/tt.po +379 -0
- package/lang/translations/ur.po +397 -0
- package/package.json +4 -4
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.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/entercommand.js +1 -1
- package/src/integrations/font.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/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/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/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.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/getrangesofblockgroups.js +1 -1
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2287=['plugins','showSuggestionHighlights','conversion','locale','downcastDispatcher','enableCommand','stop','afterInit','TrackChangesEditing','high','has','mediaEmbed','dataDowncast','createEmptyElement','ELEMENT_MEDIA','get','div','media','registerElementLabel','elementToElement'];(function(_0x26f823,_0x228741){const _0x41d2ec=function(_0x1160e4){while(--_0x1160e4){_0x26f823['push'](_0x26f823['shift']());}};_0x41d2ec(++_0x228741);}(_0x2287,0x107));const _0x41d2=function(_0x26f823,_0x228741){_0x26f823=_0x26f823-0x0;let _0x41d2ec=_0x2287[_0x26f823];return _0x41d2ec;};import{Plugin as _0x5abc5f}from'ckeditor5/src/core';import{getTranslation as _0x240845}from'../utils/common-translations';export default class it extends _0x5abc5f{[_0x41d2('0x4')](){const _0x3544a8=this['editor'];if(!_0x3544a8[_0x41d2('0x11')][_0x41d2('0x7')]('MediaEmbedEditing'))return;const _0x5f3a33=_0x3544a8[_0x41d2('0x11')][_0x41d2('0xc')](_0x41d2('0x5')),_0x41efda=_0x3544a8[_0x41d2('0x0')];_0x5f3a33[_0x41d2('0x2')](_0x41d2('0x8')),_0x5f3a33['_descriptionFactory'][_0x41d2('0xf')](_0x41d2('0xe'),_0x237434=>_0x240845(_0x41efda,_0x41d2('0xb'),_0x237434)),_0x3544a8[_0x41d2('0x13')]['for'](_0x41d2('0x9'))[_0x41d2('0x10')]({'model':'media','view':(_0x3c37d8,{writer:_0x3d08e1,options:_0x200166})=>{if(_0x200166[_0x41d2('0x12')])return _0x3d08e1[_0x41d2('0xa')](_0x41d2('0xd'));},'converterPriority':'high'}),_0x3544a8['data'][_0x41d2('0x1')]['on']('attribute:url:media',(_0x26b625,_0x207b20,_0x2e03e6)=>{_0x2e03e6['options'][_0x41d2('0x12')]&&_0x26b625[_0x41d2('0x3')]();},{'priority':_0x41d2('0x6')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c8d=['mention','enableCommand','has','TrackChangesEditing','editor','afterInit','get','MentionEditing'];(function(_0x178a94,_0x1c8d67){const _0x137d2d=function(_0x1464bf){while(--_0x1464bf){_0x178a94['push'](_0x178a94['shift']());}};_0x137d2d(++_0x1c8d67);}(_0x1c8d,0xc6));const _0x137d=function(_0x178a94,_0x1c8d67){_0x178a94=_0x178a94-0x0;let _0x137d2d=_0x1c8d[_0x178a94];return _0x137d2d;};import{Plugin as _0x438177}from'ckeditor5/src/core';export default class st extends _0x438177{[_0x137d('0x7')](){const _0x5e4ae9=this[_0x137d('0x6')];_0x5e4ae9['plugins'][_0x137d('0x4')](_0x137d('0x1'))&&_0x5e4ae9['plugins'][_0x137d('0x0')](_0x137d('0x5'))[_0x137d('0x3')](_0x137d('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bb4=['locale','get','has','TrackChangesEditing','ELEMENT_PAGE_BREAK','registerElementLabel','plugins','_descriptionFactory','afterInit','pageBreak'];(function(_0x22970c,_0x2bb42d){const _0x1abdb4=function(_0x43b3ce){while(--_0x43b3ce){_0x22970c['push'](_0x22970c['shift']());}};_0x1abdb4(++_0x2bb42d);}(_0x2bb4,0xf5));const _0x1abd=function(_0x22970c,_0x2bb42d){_0x22970c=_0x22970c-0x0;let _0x1abdb4=_0x2bb4[_0x22970c];return _0x1abdb4;};import{Plugin as _0x3b0465}from'ckeditor5/src/core';import{getTranslation as _0x4b67b5}from'../utils/common-translations';export default class ot extends _0x3b0465{[_0x1abd('0x3')](){const _0x5527dd=this['editor'];if(!_0x5527dd[_0x1abd('0x1')][_0x1abd('0x7')]('PageBreakEditing'))return;_0x5527dd[_0x1abd('0x1')]['get'](_0x1abd('0x8'))['enableCommand'](_0x1abd('0x4'));const _0x586f7a=_0x5527dd[_0x1abd('0x1')][_0x1abd('0x6')]('TrackChangesEditing'),_0x2f0863=_0x5527dd[_0x1abd('0x5')];_0x586f7a[_0x1abd('0x2')][_0x1abd('0x0')](_0x1abd('0x4'),_0x37fc0b=>_0x4b67b5(_0x2f0863,_0x1abd('0x9'),_0x37fc0b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b43=['highest','writer','_descriptionFactory','editor','*Change\x20to:*\x20%0','selection','*Insert:*\x20%0','change','isBlock','parent','start','model','activeMarkers','markerName','mapper','data','from','paragraph','type','insertion','getSelectedBlocks','checkChild','editing','locale','downcastDispatcher','bindElementToMarker','registerDescriptionCallback','format','commandName','name','nodeAfter','insertParagraph','span','ck-suggestion-marker-split','$text','isLimit','markerRange','showSuggestionHighlights','options','document','afterInit','isTouching','getItemLabel','isObject','blockName','schema','plugins','registerElementLabel','has','includes','getFirstRange','addMarker:suggestion:insertion','get','consumable','TrackChangesEditing','enableCommand','addClass'];(function(_0x56359e,_0x1b43c4){const _0x4d9654=function(_0x3f64a4){while(--_0x3f64a4){_0x56359e['push'](_0x56359e['shift']());}};_0x4d9654(++_0x1b43c4);}(_0x1b43,0x1ce));const _0x4d96=function(_0x56359e,_0x1b43c4){_0x56359e=_0x56359e-0x0;let _0x4d9654=_0x1b43[_0x56359e];return _0x4d9654;};import{Plugin as _0x345479}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x4f3fe2}from'./utils';import{getTranslation as _0x2da1ad}from'../utils/common-translations';export default class nt extends _0x345479{[_0x4d96('0x22')](){const _0x443ecb=this['editor'];if(!_0x443ecb[_0x4d96('0x28')][_0x4d96('0x2a')]('Paragraph'))return;const _0x3cb686=_0x443ecb[_0x4d96('0x11')],_0x4d769a=_0x443ecb[_0x4d96('0x28')]['get'](_0x4d96('0x30'));_0x4d769a[_0x4d96('0x35')][_0x4d96('0x29')]('paragraph',_0x3bdb16=>_0x2da1ad(_0x3cb686,'ELEMENT_PARAGRAPH',_0x3bdb16)),_0x4d769a[_0x4d96('0x31')]('paragraph',(_0x119268,_0x2b5772={})=>{const _0x27069d=_0x443ecb[_0x4d96('0x5')][_0x4d96('0x21')],_0x4ef7fc=_0x2b5772[_0x4d96('0x38')]||_0x27069d['selection'],_0x4ab3df=Array[_0x4d96('0xa')](_0x4ef7fc[_0x4d96('0xe')]())['filter'](_0x57f5bb=>function(_0x589e59,_0x1919c8){return _0x1919c8['checkChild'](_0x589e59[_0x4d96('0x3')],_0x4d96('0xb'))&&!_0x1919c8[_0x4d96('0x25')](_0x589e59)&&_0x4d96('0xb')!=_0x589e59['name'];}(_0x57f5bb,this[_0x4d96('0x36')][_0x4d96('0x5')][_0x4d96('0x27')]));_0x443ecb[_0x4d96('0x5')][_0x4d96('0x1')](()=>{for(const _0x5cf985 of _0x4ab3df)_0x4d769a['markBlockFormat'](_0x5cf985,{'commandName':_0x4d96('0xb'),'commandParams':[],'formatGroupId':_0x4d96('0x26')},_0x4f3fe2(_0x5cf985));});}),_0x4d769a[_0x4d96('0x35')]['registerDescriptionCallback'](_0x254286=>{const {data:_0x1b39d9}=_0x254286;if(_0x1b39d9&&_0x4d96('0xb')==_0x1b39d9[_0x4d96('0x16')])return{'type':_0x4d96('0x15'),'content':_0x2da1ad(_0x3cb686,_0x4d96('0x37'),_0x2da1ad(_0x3cb686,'ELEMENT_PARAGRAPH'))};}),_0x4d769a['enableCommand'](_0x4d96('0x19')),_0x443ecb[_0x4d96('0x10')][_0x4d96('0x12')]['on'](_0x4d96('0x2d'),tr(_0x443ecb),{'priority':_0x4d96('0x33')}),_0x443ecb[_0x4d96('0x9')][_0x4d96('0x12')]['on'](_0x4d96('0x2d'),(_0x521125,_0x2c9d08,_0x7e7579)=>{_0x7e7579[_0x4d96('0x20')][_0x4d96('0x1f')]&&tr(_0x443ecb,{'showActiveMarker':!0x1})(_0x521125,_0x2c9d08,_0x7e7579);},{'priority':_0x4d96('0x33')});const _0x3c5f80=_0x4d769a[_0x4d96('0x35')];_0x3c5f80[_0x4d96('0x14')](_0xc74c40=>{if(_0x4d96('0xd')!==_0xc74c40[_0x4d96('0xc')])return;const {start:_0x3c92f7,end:_0x55b22f}=_0xc74c40[_0x4d96('0x2c')]();if(!_0x3c92f7[_0x4d96('0x23')](_0x55b22f)||!_0x3c92f7[_0x4d96('0x18')])return;const _0x2ce374=_0x443ecb[_0x4d96('0x5')][_0x4d96('0x27')],_0x260569=_0x3c92f7[_0x4d96('0x18')];return _0x2ce374[_0x4d96('0x2')](_0x260569)&&!_0x2ce374[_0x4d96('0x1d')](_0x260569)&&_0x2ce374['checkChild'](_0x260569,_0x4d96('0x1c'))?{'type':_0x4d96('0xd'),'content':_0x2da1ad(_0x3cb686,_0x4d96('0x0'),_0x3c5f80[_0x4d96('0x24')](_0x260569[_0x4d96('0x17')],0x1))}:void 0x0;});}}function tr(_0x595d30,{showActiveMarker:_0x6284b9=!0x0}={}){return(_0x370db2,_0x4279cb,_0x5b5c1e)=>{const _0x1f095e=_0x595d30[_0x4d96('0x28')][_0x4d96('0x2e')](_0x4d96('0x30')),_0x32bc1d=_0x4279cb[_0x4d96('0x1e')][_0x4d96('0x4')],_0x4fa114=_0x4279cb[_0x4d96('0x1e')]['end'],_0x4ef700=_0x595d30[_0x4d96('0x5')]['schema'];if(!_0x32bc1d[_0x4d96('0x23')](_0x4fa114)||!_0x32bc1d[_0x4d96('0x18')])return;const _0x5cfe4c=_0x32bc1d[_0x4d96('0x18')];if(_0x4ef700[_0x4d96('0x2')](_0x5cfe4c)&&!_0x4ef700[_0x4d96('0x1d')](_0x5cfe4c)&&_0x4ef700[_0x4d96('0xf')](_0x5cfe4c,'$text')){if(!_0x5b5c1e[_0x4d96('0x2f')]['consume'](_0x4279cb['markerRange'],_0x370db2['name']))return;const _0x550fd9=_0x5b5c1e[_0x4d96('0x34')]['createUIElement'](_0x4d96('0x1a'),{'class':_0x4d96('0x1b')}),_0x147970=_0x5b5c1e[_0x4d96('0x8')]['toViewPosition'](_0x4fa114);_0x6284b9&&_0x1f095e[_0x4d96('0x6')][_0x4d96('0x2b')](_0x4279cb[_0x4d96('0x7')])&&_0x5b5c1e[_0x4d96('0x34')][_0x4d96('0x32')]('ck-suggestion-marker--active',_0x550fd9),_0x5b5c1e[_0x4d96('0x34')]['insert'](_0x147970,_0x550fd9),_0x5b5c1e[_0x4d96('0x8')][_0x4d96('0x13')](_0x550fd9,_0x4279cb['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d9b=['markInlineFormat','document','getAttributes','RemoveFormatEditing','get','isCollapsed','locale','commandName','has','removeFormat','registerDescriptionCallback','getRanges','from','enableCommand','getItems','isFormatting','getAttributeProperties','plugins','selection'];(function(_0x5514fd,_0x2d9bae){const _0x2b95ec=function(_0x507bea){while(--_0x507bea){_0x5514fd['push'](_0x5514fd['shift']());}};_0x2b95ec(++_0x2d9bae);}(_0x2d9b,0x1c9));const _0x2b95=function(_0x5514fd,_0x2d9bae){_0x5514fd=_0x5514fd-0x0;let _0x2b95ec=_0x2d9b[_0x5514fd];return _0x2b95ec;};import{Plugin as _0x216a2b}from'ckeditor5/src/core';import{getTranslation as _0x44ab0a}from'../utils/common-translations';export default class et extends _0x216a2b{['afterInit'](){const _0x31d424=this['editor'];if(!_0x31d424[_0x2b95('0x10')][_0x2b95('0x7')](_0x2b95('0x2')))return;const _0x3d6313=_0x31d424['plugins'][_0x2b95('0x3')]('TrackChangesEditing');_0x3d6313[_0x2b95('0xc')](_0x2b95('0x8'),_0x2bd246=>{const _0x18334d=_0x31d424['model'][_0x2b95('0x0')][_0x2b95('0x11')];_0x18334d[_0x2b95('0x4')]?_0x2bd246():_0x31d424['model']['change'](()=>{const _0x26b067=Array[_0x2b95('0xb')](_0x18334d[_0x2b95('0xa')]());for(const _0x337173 of _0x26b067)for(const _0x16cb8c of _0x337173[_0x2b95('0xd')]())ro(_0x16cb8c,_0x31d424['model']['schema'])&&_0x3d6313[_0x2b95('0x12')](_0x31d424['model']['createRangeOn'](_0x16cb8c),{'commandName':_0x2b95('0x8'),'commandParams':[]});});}),_0x3d6313['_descriptionFactory'][_0x2b95('0x9')](_0x56fbf0=>{const {data:_0x12c5ab}=_0x56fbf0;if(_0x12c5ab&&_0x2b95('0x8')==_0x12c5ab[_0x2b95('0x6')])return{'type':'format','content':_0x44ab0a(_0x31d424[_0x2b95('0x5')],'*Remove\x20all\x20formatting*')};});}}function ro(_0x272b58,_0x4a6529){for(const [_0xee356e]of _0x272b58[_0x2b95('0x1')]()){const _0x532ebb=_0x4a6529[_0x2b95('0xf')](_0xee356e);if(_0x532ebb&&_0x532ebb[_0x2b95('0xe')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15b3=['discardAllSuggestions','TrackChangesEditing','afterInit','acceptSelectedSuggestions','get','plugins','enableCommand','goToPreviousRestrictedEditingException','RestrictedEditingModeEditing','acceptAllSuggestions','editor','discardSuggestion','trackChanges'];(function(_0x361b58,_0x15b3ad){const _0x26d53c=function(_0x178051){while(--_0x178051){_0x361b58['push'](_0x361b58['shift']());}};_0x26d53c(++_0x15b3ad);}(_0x15b3,0x147));const _0x26d5=function(_0x361b58,_0x15b3ad){_0x361b58=_0x361b58-0x0;let _0x26d53c=_0x15b3[_0x361b58];return _0x26d53c;};import{Plugin as _0x25c9fe}from'ckeditor5/src/core';export default class rt extends _0x25c9fe{[_0x26d5('0x0')](){const _0x5a7a94=this[_0x26d5('0x8')];if(!_0x5a7a94[_0x26d5('0x3')]['has'](_0x26d5('0x6')))return;const _0x35d7c3=_0x5a7a94[_0x26d5('0x3')][_0x26d5('0x2')](_0x26d5('0xc'));_0x35d7c3[_0x26d5('0x4')](_0x26d5('0x5')),_0x35d7c3[_0x26d5('0x4')]('goToNextRestrictedEditingException');const _0x557851=_0x5a7a94['plugins'][_0x26d5('0x2')](_0x26d5('0x6'));_0x557851[_0x26d5('0x4')](_0x26d5('0xa')),_0x557851[_0x26d5('0x4')]('acceptSuggestion'),_0x557851[_0x26d5('0x4')](_0x26d5('0x9')),_0x557851[_0x26d5('0x4')](_0x26d5('0x7')),_0x557851[_0x26d5('0x4')](_0x26d5('0xb')),_0x557851[_0x26d5('0x4')](_0x26d5('0x1')),_0x557851[_0x26d5('0x4')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16af=['insert','requires','consumable','addClass','ELEMENT_LINE_BREAK','writer','addMarker:suggestion','data','bindElementToMarker','toViewPosition','includes','plugins','mapper','createUIElement','softBreak','_descriptionFactory','editing','downcastDispatcher','locale','showSuggestionHighlights','TrackChangesEditing','markerName','split','markerRange','createPositionBefore','deletion','span','ck-suggestion-marker--active','getItems','high','enableCommand','ck-suggestion-marker-'];(function(_0xa64c7d,_0x16afd8){const _0x5ef2a4=function(_0x1ad934){while(--_0x1ad934){_0xa64c7d['push'](_0xa64c7d['shift']());}};_0x5ef2a4(++_0x16afd8);}(_0x16af,0x8f));const _0x5ef2=function(_0xa64c7d,_0x16afd8){_0xa64c7d=_0xa64c7d-0x0;let _0x5ef2a4=_0x16af[_0xa64c7d];return _0x5ef2a4;};import{Plugin as _0x20a2c2}from'ckeditor5/src/core';import{ShiftEnter as _0x144926}from'ckeditor5/src/enter';import{getTranslation as _0x257cdc}from'../utils/common-translations';export default class at extends _0x20a2c2{static get[_0x5ef2('0x12')](){return[_0x144926];}['init'](){const _0x4ea58b=this['editor'],_0x5b7af1=_0x4ea58b[_0x5ef2('0x1c')]['get'](_0x5ef2('0x5'));_0x5b7af1[_0x5ef2('0xf')]('shiftEnter'),_0x4ea58b['editing'][_0x5ef2('0x2')]['on']('addMarker:suggestion:insertion',re(_0x4ea58b),{'priority':_0x5ef2('0xe')}),_0x4ea58b[_0x5ef2('0x1')][_0x5ef2('0x2')]['on']('addMarker:suggestion:deletion',re(_0x4ea58b),{'priority':_0x5ef2('0xe')}),_0x4ea58b[_0x5ef2('0x18')]['downcastDispatcher']['on'](_0x5ef2('0x17'),(_0x462542,_0x21a913,_0x4ec324)=>{_0x4ec324['options'][_0x5ef2('0x4')]&&re(_0x4ea58b,{'showActiveMarker':!0x1})(_0x462542,_0x21a913,_0x4ec324);}),_0x5b7af1[_0x5ef2('0x0')]['registerElementLabel'](_0x5ef2('0x1f'),_0x21ce2b=>_0x257cdc(_0x4ea58b[_0x5ef2('0x3')],_0x5ef2('0x15'),_0x21ce2b));}}function re(_0x287acf,{showActiveMarker:_0x37336a=!0x0}={}){return(_0x5e5736,_0x33db5b,_0x250f79)=>{const _0x472c47=_0x287acf[_0x5ef2('0x1c')]['get']('TrackChangesEditing');if(!_0x250f79[_0x5ef2('0x13')]['test'](_0x33db5b[_0x5ef2('0x8')],_0x5e5736['name']))return;const _0x30d031=_0x287acf['model'];for(const _0x548689 of _0x33db5b['markerRange'][_0x5ef2('0xd')]()){if(!_0x548689['is']('element',_0x5ef2('0x1f')))continue;const _0x942829=_0x5ef2('0xa')==_0x33db5b[_0x5ef2('0x6')][_0x5ef2('0x7')](':')[0x1]?'merge':'split',_0x731310=_0x250f79['writer'][_0x5ef2('0x1e')](_0x5ef2('0xb'),{'class':_0x5ef2('0x10')+_0x942829}),_0x4a0647=_0x250f79[_0x5ef2('0x1d')][_0x5ef2('0x1a')](_0x30d031[_0x5ef2('0x9')](_0x548689));_0x37336a&&_0x472c47['activeMarkers'][_0x5ef2('0x1b')](_0x33db5b[_0x5ef2('0x6')])&&_0x250f79[_0x5ef2('0x16')][_0x5ef2('0x14')](_0x5ef2('0xc'),_0x731310),_0x250f79[_0x5ef2('0x16')][_0x5ef2('0x11')](_0x4a0647,_0x731310),_0x250f79[_0x5ef2('0x1d')][_0x5ef2('0x19')](_0x731310,_0x33db5b[_0x5ef2('0x6')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e40=['commands','get','enableCommand','model','selection','format','plugins','has','FORMAT_RESTRICTED_DISABLED','restrictedEditingException','document','markInlineFormat','TrackChangesEditing','registerDescriptionCallback','commandName','editor','locale','FORMAT_RESTRICTED_ENABLED','from','forceValue'];(function(_0x578c2e,_0x2e4043){const _0x5a35f2=function(_0x133ca7){while(--_0x133ca7){_0x578c2e['push'](_0x578c2e['shift']());}};_0x5a35f2(++_0x2e4043);}(_0x2e40,0x1d4));const _0x5a35=function(_0x578c2e,_0x2e4043){_0x578c2e=_0x578c2e-0x0;let _0x5a35f2=_0x2e40[_0x578c2e];return _0x5a35f2;};import{Plugin as _0x27e7c3}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x4b3d0c}from'./utils';import{getTranslation as _0x3c5ef0}from'../utils/common-translations';export default class ct extends _0x27e7c3{['afterInit'](){const _0x2be7c3=this[_0x5a35('0x7')],_0x1f7003=_0x2be7c3[_0x5a35('0xf')],_0x45e5b4=_0x2be7c3[_0x5a35('0x8')];if(!_0x2be7c3['plugins'][_0x5a35('0x13')]('StandardEditingModeEditing'))return;const _0x4858f1=_0x2be7c3[_0x5a35('0x12')][_0x5a35('0xd')](_0x5a35('0x4')),_0xce95a1=_0x5a35('0x1'),_0x258038=_0x2be7c3[_0x5a35('0xc')][_0x5a35('0xd')](_0xce95a1);_0x4858f1[_0x5a35('0xe')](_0xce95a1,(_0x1377d4,_0x5ed2a5={})=>{const _0x58583a=_0x1f7003[_0x5a35('0x2')][_0x5a35('0x10')];if(_0x58583a['isCollapsed'])return void _0x1377d4(_0x5ed2a5);const _0x1cef2c=void 0x0!==_0x5ed2a5[_0x5a35('0xb')]?_0x5ed2a5['forceValue']:!_0x258038['value'];_0x1f7003['change'](()=>{const _0x21f147=Array[_0x5a35('0xa')](_0x58583a['getRanges']());for(const _0x18a6af of _0x21f147){const _0x3ca1ca=_0x1cef2c?[_0x18a6af]:_0x4b3d0c(_0xce95a1,_0x18a6af,_0x1f7003);for(const _0x6573b6 of _0x3ca1ca)_0x4858f1[_0x5a35('0x3')](_0x6573b6,{'commandName':_0xce95a1,'commandParams':[{'forceValue':_0x1cef2c}]});}});}),_0x4858f1['_descriptionFactory'][_0x5a35('0x5')](_0x13b20d=>{const {data:_0x461180}=_0x13b20d;if(_0x461180&&_0x461180[_0x5a35('0x6')]==_0xce95a1)return _0x461180['commandParams'][0x0][_0x5a35('0xb')]?{'type':_0x5a35('0x11'),'content':_0x3c5ef0(_0x45e5b4,_0x5a35('0x9'))}:{'type':'format','content':_0x3c5ef0(_0x45e5b4,_0x5a35('0x0'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1967=['getDefinitionsForView','styleName','markBlockFormat','includes','push','style','selection','model','afterInit','TrackChangesEditing','value','classes','getRanges','enabledStyles','commandName','config','markInlineFormat','name','_descriptionFactory','modelElements','toLowerCase','block','get','filter','from','commandParams','plugins','inline','DataSchema','enableCommand','forceValue','*Remove\x20format:*\x20%0','change','getSelectedBlocks','format','has','style.definitions','getAttribute','*Format:*\x20%0','find','getItems','getRangesWithClasses','getStyleDefinition','commands','style:'];(function(_0x35f214,_0x196749){const _0x32bcdc=function(_0x4ed95c){while(--_0x4ed95c){_0x35f214['push'](_0x35f214['shift']());}};_0x32bcdc(++_0x196749);}(_0x1967,0x146));const _0x32bc=function(_0x35f214,_0x196749){_0x35f214=_0x35f214-0x0;let _0x32bcdc=_0x1967[_0x35f214];return _0x32bcdc;};import{Plugin as _0x38da07}from'ckeditor5/src/core';import{normalizeConfig as _0x5911ef}from'@ckeditor/ckeditor5-style/src/utils';import{getTranslation as _0x526179}from'../utils/common-translations';import{getRangesOfBlockGroups as _0xd81ba0}from'../utils/getrangesofblockgroups';export default class ht extends _0x38da07{[_0x32bc('0x2a')](){const _0x1bf0ce=this['editor'];if(!_0x1bf0ce['plugins'][_0x32bc('0x18')]('Style'))return;const _0x1682af=_0x1bf0ce[_0x32bc('0x20')]['get'](_0x32bc('0x27')),_0x347ba0=_0x1bf0ce['plugins'][_0x32bc('0xb')](_0x32bc('0x2b')),_0x5b0b0b=_0x1bf0ce['locale'],_0x1a5660=_0x1bf0ce[_0x32bc('0xf')]['get'](_0x32bc('0x11')),_0x2c37fc=_0x5911ef(_0x1a5660,_0x1bf0ce[_0x32bc('0x4')][_0x32bc('0xb')](_0x32bc('0x19')));_0x347ba0[_0x32bc('0x12')](_0x32bc('0x27'),(_0x9b167,{styleName:_0x2dd836})=>{const _0x9afac8=_0x1bf0ce['model']['document'][_0x32bc('0x28')],_0x247090=this[_0x32bc('0x1f')](_0x2dd836,_0x2c37fc);if(!_0x247090)return;if(!_0x1682af[_0x32bc('0x2')]['includes'](_0x2dd836))return;if(_0x9afac8['isCollapsed']&&!_0x247090['isBlock'])return void _0x9b167({'styleName':_0x2dd836});const _0x39fd45=!_0x1682af[_0x32bc('0x2c')][_0x32bc('0x25')](_0x247090['name']);if(_0x247090['isBlock']){const _0x55a2ab=Array[_0x32bc('0xd')](_0x9afac8[_0x32bc('0x16')]())[_0x32bc('0xc')](_0x422f27=>_0x247090[_0x32bc('0x8')][_0x32bc('0x25')](_0x422f27[_0x32bc('0x6')])),_0x4482bf=_0xd81ba0(_0x55a2ab,_0x1bf0ce[_0x32bc('0x29')]);_0x1bf0ce[_0x32bc('0x29')][_0x32bc('0x15')](()=>{for(const _0x4b48e2 of _0x4482bf)_0x347ba0[_0x32bc('0x24')](_0x4b48e2,{'commandName':_0x32bc('0x27'),'commandParams':[{'styleName':_0x2dd836,'forceValue':_0x39fd45}],'formatGroupId':_0x32bc('0x21')+_0x2dd836});});}else{let _0x19570d=Array['from'](_0x9afac8[_0x32bc('0x1')]());if(!_0x39fd45){const _0x6a9b6=Array[_0x32bc('0xd')](_0x1a5660[_0x32bc('0x22')](_0x247090['element'],!0x1))[0x0][_0x32bc('0x29')],_0x5e7654=[];for(const _0x4e8f5b of _0x19570d){const _0x5b4e34=this['getRangesWithClasses'](_0x1bf0ce[_0x32bc('0x29')],_0x4e8f5b,_0x247090[_0x32bc('0x0')],_0x6a9b6);_0x5e7654['push'](..._0x5b4e34);}_0x19570d=_0x5e7654;}_0x1bf0ce[_0x32bc('0x29')][_0x32bc('0x15')](()=>{for(const _0x37c33c of _0x19570d)_0x347ba0[_0x32bc('0x5')](_0x37c33c,{'commandName':_0x32bc('0x27'),'commandParams':[{'styleName':_0x2dd836,'forceValue':_0x39fd45}]});});}}),_0x347ba0[_0x32bc('0x7')]['registerDescriptionCallback'](_0x308b3a=>{const {data:_0x1b3b47}=_0x308b3a;if(_0x1b3b47&&'style'===_0x1b3b47[_0x32bc('0x3')])return _0x1b3b47[_0x32bc('0xe')][0x0][_0x32bc('0x13')]?{'type':_0x32bc('0x17'),'content':_0x526179(_0x5b0b0b,_0x32bc('0x1b'),_0x1b3b47[_0x32bc('0xe')][0x0][_0x32bc('0x23')][_0x32bc('0x9')]())}:{'type':_0x32bc('0x17'),'content':_0x526179(_0x5b0b0b,_0x32bc('0x14'),_0x1b3b47[_0x32bc('0xe')][0x0][_0x32bc('0x23')][_0x32bc('0x9')]())};});}[_0x32bc('0x1f')](_0x187ccd,_0x2e3384){let _0x21f1eb=_0x2e3384[_0x32bc('0xa')]['find'](_0x438fd9=>_0x438fd9[_0x32bc('0x6')]===_0x187ccd);return _0x21f1eb||(_0x21f1eb=_0x2e3384[_0x32bc('0x10')][_0x32bc('0x1c')](_0x440fc2=>_0x440fc2[_0x32bc('0x6')]===_0x187ccd)),_0x21f1eb;}[_0x32bc('0x1e')](_0x5b7f9a,_0x235877,_0xe7b094,_0xd59ed5){const _0x20d602=[];for(const _0x4d4ffb of _0x235877[_0x32bc('0x1d')]()){const _0x37d1dd=_0x4d4ffb[_0x32bc('0x1a')](_0xd59ed5);_0x37d1dd&&(_0xe7b094['every'](_0x1a8820=>_0x37d1dd['classes'][_0x32bc('0x25')](_0x1a8820))&&_0x20d602[_0x32bc('0x26')](_0x5b7f9a['createRangeOn'](_0x4d4ffb)));}return _0x20d602;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3e30=['registerCustomCallback','ELEMENT_TABLE_ROW_WITH_TEXT','insertTableRowAbove','low','setSelection','refresh','discard','getSuggestion','nodeAfter','element','minRow','values','start','execute','isTouching','_tablePostFixingSubtypes','colspan','highest','_tableSuggestions','getAttribute','tableCell','span','rowspan','classes','markMultiRangeDeletion','*Insert:*\x20%0','enqueueChange','maxColumn','hasAttribute','map','locale','insert','ELEMENT_TABLE_COLUMN_WITH_TEXT','get','detach','item','above','addClass','substr','tableRow','createTableWalker','getContainedElement','toViewElement','join','addRange','MAX_SAFE_INTEGER','rootName','$graveyard','root','mapper','getChanges','downcastDispatcher','minColumn','removeClass','length','order','ELEMENT_TABLE_COLUMN','enableCommand','change:data','getFirstRange','max','ELEMENT_TABLE_WITH_TEXT','from','table','MIN_SAFE_INTEGER','data','getSelectionAffectedTableCells','_getSuggestionCoords','getRowIndexes','filter','showSuggestionHighlights','getItems','isArray','toLowerCase','commands','plugins','push','forceValue','isEqual','TableUtils','last','afterInit','maxRow','deletion','insertion','getChangedMarkers','TrackChangesEditing','insertTableColumnLeft','accept','_suggestionFactory','registerDescriptionCallback','min','isInContent','oldRange','getCellLocation','createRangeIn','*Remove:*\x20%0','position','insertTableRowBelow','findAncestor','createRangeOn','editor','name','subType','createPositionAt','type','change','includes','batch','left','tableColumn','isIntersectingWithRange','selection','textProxy','insertTableColumnRight','getRanges','tablePaste','_splitMarkerName','suggestion','registerElementLabel','_setupColumnsRowsFixing','ELEMENT_TABLE_ROW','getChildren','getColumnIndexes','removeTableColumn','end','differ','insertTable','ELEMENT_TABLE','first','removeTableRow','_descriptionFactory','document','fromRange','startsWith','addMarker:suggestion','markMultiRangeInsertion','some','cell','model'];(function(_0x15d7c0,_0x3e302c){const _0x18e770=function(_0xe05f06){while(--_0xe05f06){_0x15d7c0['push'](_0x15d7c0['shift']());}};_0x18e770(++_0x3e302c);}(_0x3e30,0xbf));const _0x18e7=function(_0x15d7c0,_0x3e302c){_0x15d7c0=_0x15d7c0-0x0;let _0x18e770=_0x3e30[_0x15d7c0];return _0x18e770;};import{Plugin as _0x113be8}from'ckeditor5/src/core';import{LiveRange as _0x35ce7b}from'ckeditor5/src/engine';import{setHighlightHandling as _0x346de9}from'ckeditor5/src/widget';import{getTranslation as _0x55c1c5}from'../utils/common-translations';export default class ut extends _0x113be8{constructor(_0x433dbe){super(_0x433dbe),this['_tablePostFixingSubtypes']=[_0x18e7('0x80'),'tableColumn'];}[_0x18e7('0x1e')](){const _0x529f95=this[_0x18e7('0x32')],_0x430316=_0x529f95[_0x18e7('0x58')]['document']['selection'];if(!_0x529f95[_0x18e7('0x18')]['has']('TableEditing'))return;const _0x5adf49=_0x529f95[_0x18e7('0x77')],_0x302e26=_0x529f95[_0x18e7('0x18')][_0x18e7('0x7a')](_0x18e7('0x23')),_0x142045=_0x529f95[_0x18e7('0x18')][_0x18e7('0x7a')](_0x18e7('0x1c'));_0x302e26[_0x18e7('0x50')][_0x18e7('0x44')](_0x18e7('0xc'),_0x42e964=>_0x55c1c5(_0x5adf49,_0x18e7('0x4d'),_0x42e964)),this['_setupColumnsRowsFixing'](),_0x302e26[_0x18e7('0x6')](_0x18e7('0x4c')),_0x302e26['enableCommand']('selectTableRow'),_0x302e26['enableCommand']('selectTableColumn');for(const _0x22e7ec of[_0x18e7('0x5b'),_0x18e7('0x2f')]){const _0x362a2f=_0x529f95[_0x18e7('0x17')][_0x18e7('0x7a')](_0x22e7ec);_0x302e26[_0x18e7('0x6')](_0x22e7ec,_0x40ffed=>{_0x529f95['model'][_0x18e7('0x37')](_0x36ab7e=>{_0x40ffed();const _0x5f0e12=_0x18e7('0x7d')===_0x362a2f[_0x18e7('0x4')],_0x2d2a9b=_0x142045[_0x18e7('0xf')](_0x430316),_0x252e53=_0x142045[_0x18e7('0x11')](_0x2d2a9b),_0x971a2c=_0x5f0e12?_0x252e53['first']-0x1:_0x252e53[_0x18e7('0x1d')]+0x1,_0x45e7c1=_0x2d2a9b[0x0]['findAncestor'](_0x18e7('0xc')),_0x377628=_0x142045[_0x18e7('0x81')](_0x45e7c1,{'startRow':_0x971a2c,'endRow':_0x971a2c}),_0x1e792c=Array['from'](_0x377628)[_0x18e7('0x76')](_0x2968be=>_0x36ab7e[_0x18e7('0x31')](_0x2968be[_0x18e7('0x57')]));_0x302e26[_0x18e7('0x55')](_0x1e792c,_0x18e7('0x80'));});});}for(const _0x3f09ef of[_0x18e7('0x24'),_0x18e7('0x3f')]){const _0xf63eb8=_0x529f95[_0x18e7('0x17')][_0x18e7('0x7a')](_0x3f09ef);_0x302e26[_0x18e7('0x6')](_0x3f09ef,_0x2d3444=>{_0x529f95[_0x18e7('0x58')][_0x18e7('0x37')](_0x38fe21=>{_0x2d3444();const _0x1691d6=_0x18e7('0x3a')===_0xf63eb8[_0x18e7('0x4')],_0x280300=_0x142045[_0x18e7('0xf')](_0x430316),_0x560f3f=_0x142045[_0x18e7('0x48')](_0x280300),_0x105202=_0x1691d6?_0x560f3f[_0x18e7('0x4e')]-0x1:_0x560f3f[_0x18e7('0x1d')]+0x1,_0x2d2464=_0x280300[0x0][_0x18e7('0x30')]('table'),_0x168fa7=_0x142045[_0x18e7('0x81')](_0x2d2464,{'startRow':0x0,'column':_0x105202,'includeAllSlots':!0x1}),_0xb38a4c=Array['from'](_0x168fa7)[_0x18e7('0x76')](_0xceda2e=>_0x38fe21[_0x18e7('0x31')](_0xceda2e[_0x18e7('0x57')]));_0x302e26[_0x18e7('0x55')](_0xb38a4c,'tableColumn');});});}for(const _0x12ad9c of[_0x18e7('0x4f'),_0x18e7('0x49')]){const _0x4d1200=_0x12ad9c[_0x18e7('0x7f')](0xb),_0x18353e=_0x4d1200[_0x18e7('0x16')](),_0x31a5f2=_0x18353e[_0x18e7('0x7f')](0x0,0x3)+_0x18e7('0x6e'),_0x401189=_0x18e7('0xc')+_0x4d1200,_0x314beb=_0x18e7('0x28')+_0x4d1200,_0x5aa661='max'+_0x4d1200;_0x302e26[_0x18e7('0x6')](_0x12ad9c,()=>{_0x529f95[_0x18e7('0x58')][_0x18e7('0x37')](_0x37bb84=>{const _0x587f37=_0x142045['getSelectionAffectedTableCells'](_0x430316),_0x26422b=_0x587f37[0x0]['findAncestor']('table');let _0x487f2d;if(_0x18e7('0x4f')==_0x12ad9c){const _0x245df6=_0x142045[_0x18e7('0x11')](_0x587f37);_0x487f2d={'startRow':_0x245df6[_0x18e7('0x4e')],'endRow':_0x245df6[_0x18e7('0x1d')],'includeAllSlots':!0x0};}else{const _0x1fccb7=_0x142045[_0x18e7('0x48')](_0x587f37);_0x487f2d={'startColumn':_0x1fccb7['first'],'endColumn':_0x1fccb7[_0x18e7('0x1d')],'includeAllSlots':!0x0};}const _0x429c52=_0x142045[_0x18e7('0x81')](_0x26422b,_0x487f2d),_0x2cdded=Array[_0x18e7('0xb')](_0x429c52)[_0x18e7('0x76')](({cell:_0x1a6fc4})=>_0x1a6fc4),_0x22a52a=Xt(_0x2cdded[_0x18e7('0x12')](_0x58d43c=>_0x58d43c[_0x18e7('0x75')](_0x31a5f2))),_0x35f483=Xt(_0x2cdded['filter'](_0x597726=>!_0x597726[_0x18e7('0x75')](_0x31a5f2)))[_0x18e7('0x76')](_0x5c2935=>_0x37bb84['createRangeOn'](_0x5c2935)),_0xb51cf5=_0x302e26[_0x18e7('0x71')](_0x35f483,_0x401189);if(_0xb51cf5&&(_0x18e7('0x80')==_0xb51cf5[_0x18e7('0x34')]||'tableColumn'==_0xb51cf5['subType'])){const _0x315d08=this[_0x18e7('0x10')](_0xb51cf5);for(const _0xf0c868 of _0x22a52a){const _0x36ad83=_0x37bb84[_0x18e7('0x31')](_0xf0c868),_0x34e1be=_0x142045[_0x18e7('0x2b')](_0xf0c868),_0x514b99=_0xf0c868['getAttribute'](_0x31a5f2)-0x1,_0x219ee4=_0x315d08[_0x314beb],_0x35e57e=_0x315d08[_0x5aa661];_0x219ee4<=_0x34e1be[_0x18353e]&&_0x34e1be[_0x18353e]+_0x514b99<=_0x35e57e&&_0xb51cf5[_0x18e7('0x85')](_0x36ad83);}}});});}function _0x33e64b(_0x5742bb){const _0xd1b03b=Array[_0x18e7('0xb')](_0x430316['getRanges']())[_0x18e7('0x76')](_0x4a4060=>_0x35ce7b[_0x18e7('0x52')](_0x4a4060));_0x529f95['model']['change'](_0x18cd6e=>{const _0x443fbd=_0x18cd6e[_0x18e7('0x39')];_0x5742bb=_0x5742bb['filter'](_0x545634=>_0x18e7('0x88')!=_0x545634['root']['rootName']),_0x18cd6e[_0x18e7('0x5d')](_0x5742bb),_0x529f95['commands'][_0x18e7('0x7a')](_0x18e7('0x4f'))[_0x18e7('0x5e')](),_0x529f95[_0x18e7('0x66')](_0x18e7('0x4f'),{'forceDefaultExecution':!0x0}),_0x529f95['model'][_0x18e7('0x73')](()=>{_0x529f95[_0x18e7('0x58')][_0x18e7('0x73')](_0x443fbd,_0x2b39d2=>{const _0x457df1=_0xd1b03b['filter'](_0xec4c3c=>'$graveyard'!=_0xec4c3c[_0x18e7('0x89')][_0x18e7('0x87')]);_0x457df1['length']>0x0&&_0x2b39d2['setSelection'](_0x457df1);for(const _0x28f7e8 of _0xd1b03b)_0x28f7e8[_0x18e7('0x7b')]();});});});}function _0x17e19d(_0x2f7b45){_0x529f95[_0x18e7('0x58')][_0x18e7('0x37')](_0x199296=>{const _0x1aabe0=Array[_0x18e7('0xb')](_0x430316[_0x18e7('0x40')]())[_0x18e7('0x76')](_0x30eab2=>_0x35ce7b['fromRange'](_0x30eab2)),_0x5b104a=[];for(const _0xb352f8 of _0x2f7b45)for(const _0x4d0c98 of _0xb352f8['getItems']({'shallow':!0x0}))_0x5b104a[_0x18e7('0x19')](_0x4d0c98);for(const _0x39b4ae of _0x5b104a)'$graveyard'!=_0x39b4ae[_0x18e7('0x89')]['rootName']&&(_0x199296[_0x18e7('0x5d')](_0x199296[_0x18e7('0x35')](_0x39b4ae,0x0)),_0x529f95[_0x18e7('0x17')]['get'](_0x18e7('0x49'))['refresh'](),_0x529f95[_0x18e7('0x66')](_0x18e7('0x49'),{'forceDefaultExecution':!0x0}));const _0x3859ad=_0x1aabe0[_0x18e7('0x12')](_0x48174c=>_0x18e7('0x88')!=_0x48174c[_0x18e7('0x89')][_0x18e7('0x87')]);_0x3859ad[_0x18e7('0x3')]>0x0&&_0x199296[_0x18e7('0x5d')](_0x3859ad);for(const _0x16b907 of _0x1aabe0)_0x16b907[_0x18e7('0x7b')]();});}function _0x32aa0a(_0x5f445d,_0x4418dd){return _0x4418dd['every'](_0x80ec22=>_0x5f445d[_0x18e7('0x56')](_0x3141fa=>_0x3141fa[_0x18e7('0x4a')][_0x18e7('0x1b')](_0x80ec22[_0x18e7('0x65')])||_0x80ec22[_0x18e7('0x4a')]['isEqual'](_0x3141fa[_0x18e7('0x65')])));}function _0xdb2ab5(_0x48b076,_0x5e0547){return _0x48b076['some'](_0x5c159d=>_0x5e0547[_0x18e7('0x56')](_0x204d17=>_0x5c159d[_0x18e7('0x4a')][_0x18e7('0x67')](_0x204d17['start'])));}_0x529f95[_0x18e7('0xe')][_0x18e7('0x0')]['on'](_0x18e7('0x54'),(_0x748dc3,_0x4299f2,_0x3e3154)=>{if(!_0x3e3154['options'][_0x18e7('0x13')])return;const _0x22137f=_0x4299f2[_0x18e7('0x7c')];if(!_0x22137f)return;const _0x41a5a6=_0x3e3154[_0x18e7('0x8a')][_0x18e7('0x83')](_0x22137f);function _0x10d711(_0x5b756f){return Array[_0x18e7('0x15')](_0x5b756f)?_0x5b756f:[_0x5b756f];}_0x41a5a6&&_0x18e7('0x6d')===_0x22137f[_0x18e7('0x33')]&&_0x346de9(_0x41a5a6,_0x3e3154['writer'],(_0x4f0bf0,_0x114bc7,_0x526e40)=>_0x526e40[_0x18e7('0x7e')](_0x10d711(_0x114bc7[_0x18e7('0x70')]),_0x4f0bf0),(_0x498dc9,_0x588c0c,_0x1733d2)=>_0x1733d2[_0x18e7('0x2')](_0x10d711(_0x588c0c[_0x18e7('0x70')]),_0x498dc9));},{'priority':_0x18e7('0x6a')}),_0x302e26[_0x18e7('0x50')][_0x18e7('0x27')](_0x53aa51=>{if(_0x18e7('0x21')!=_0x53aa51[_0x18e7('0x36')]&&_0x18e7('0x20')!=_0x53aa51['type'])return;const _0x2a6093=_0x53aa51[_0x18e7('0x82')]();if(null!=_0x2a6093&&_0x2a6093['is'](_0x18e7('0x62'),_0x18e7('0xc'))){if(_0x18e7('0x21')==_0x53aa51['type']){const _0x2386da=_0x53aa51[_0x18e7('0x14')]()[_0x18e7('0x12')](_0x32d761=>_0x32d761['is'](_0x18e7('0x3e')))['map'](_0x45fde3=>_0x45fde3[_0x18e7('0xe')]);if(_0x2386da[_0x18e7('0x3')])return{'type':'insertion','content':_0x55c1c5(_0x5adf49,_0x18e7('0x72'),_0x55c1c5(_0x5adf49,_0x18e7('0xa'),'\x22'+_0x2386da[_0x18e7('0x84')]('\x20')+'\x22'))};}if('deletion'==_0x53aa51[_0x18e7('0x36')]){const _0x2717f1=_0x53aa51[_0x18e7('0x14')]()[_0x18e7('0x12')](_0x3daeba=>_0x3daeba['is'](_0x18e7('0x3e')))[_0x18e7('0x76')](_0x5b96be=>_0x5b96be[_0x18e7('0xe')]);if(_0x2717f1[_0x18e7('0x3')])return{'type':_0x18e7('0x20'),'content':_0x55c1c5(_0x5adf49,_0x18e7('0x2d'),_0x55c1c5(_0x5adf49,_0x18e7('0xa'),'\x22'+_0x2717f1[_0x18e7('0x84')]('\x20')+'\x22'))};}}}),_0x302e26['_descriptionFactory'][_0x18e7('0x27')](_0x3fff8f=>{if(_0x18e7('0x80')==_0x3fff8f[_0x18e7('0x34')]){const _0x2fef6b=_0x3fff8f[_0x18e7('0x14')]()[_0x18e7('0x12')](_0x54f0ed=>_0x54f0ed['is']('textProxy'))['map'](_0x5c87be=>_0x5c87be[_0x18e7('0xe')]),_0x1bb97b=this[_0x18e7('0x10')](_0x3fff8f),_0x1c630a=_0x1bb97b[_0x18e7('0x1f')]-_0x1bb97b[_0x18e7('0x63')]+0x1;if(_0x18e7('0x21')==_0x3fff8f[_0x18e7('0x36')])return _0x2fef6b[_0x18e7('0x3')]?{'type':'insertion','content':_0x55c1c5(_0x5adf49,_0x18e7('0x72'),_0x55c1c5(_0x5adf49,_0x18e7('0x5a'),[_0x1c630a,'\x22'+_0x2fef6b[_0x18e7('0x84')]('\x20')+'\x22']))}:{'type':_0x18e7('0x21'),'content':_0x55c1c5(_0x5adf49,_0x18e7('0x72'),_0x55c1c5(_0x5adf49,_0x18e7('0x46'),_0x1c630a))};if('deletion'==_0x3fff8f[_0x18e7('0x36')])return _0x2fef6b['length']?{'type':'deletion','content':_0x55c1c5(_0x5adf49,'*Remove:*\x20%0',_0x55c1c5(_0x5adf49,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c630a,'\x22'+_0x2fef6b['join']('\x20')+'\x22']))}:{'type':_0x18e7('0x20'),'content':_0x55c1c5(_0x5adf49,'*Remove:*\x20%0',_0x55c1c5(_0x5adf49,'ELEMENT_TABLE_ROW',_0x1c630a))};}if(_0x18e7('0x3b')==_0x3fff8f['subType']){const _0x5b52c9=_0x3fff8f[_0x18e7('0x14')]()['filter'](_0x22c911=>_0x22c911['is']('textProxy'))[_0x18e7('0x76')](_0x19530f=>_0x19530f['data']),_0x59735e=this[_0x18e7('0x10')](_0x3fff8f),_0x42be7f=_0x59735e[_0x18e7('0x74')]-_0x59735e[_0x18e7('0x1')]+0x1;if(_0x18e7('0x21')==_0x3fff8f[_0x18e7('0x36')])return _0x5b52c9['length']?{'type':'insertion','content':_0x55c1c5(_0x5adf49,_0x18e7('0x72'),_0x55c1c5(_0x5adf49,_0x18e7('0x79'),[_0x42be7f,'\x22'+_0x5b52c9[_0x18e7('0x84')]('\x20')+'\x22']))}:{'type':_0x18e7('0x21'),'content':_0x55c1c5(_0x5adf49,_0x18e7('0x72'),_0x55c1c5(_0x5adf49,_0x18e7('0x5'),_0x42be7f))};if(_0x18e7('0x20')==_0x3fff8f['type'])return _0x5b52c9[_0x18e7('0x3')]?{'type':_0x18e7('0x20'),'content':_0x55c1c5(_0x5adf49,_0x18e7('0x2d'),_0x55c1c5(_0x5adf49,_0x18e7('0x79'),[_0x42be7f,'\x22'+_0x5b52c9[_0x18e7('0x84')]('\x20')+'\x22']))}:{'type':_0x18e7('0x20'),'content':_0x55c1c5(_0x5adf49,_0x18e7('0x2d'),_0x55c1c5(_0x5adf49,'ELEMENT_TABLE_COLUMN',_0x42be7f))};}}),_0x302e26['_suggestionFactory'][_0x18e7('0x59')]('insertion',_0x18e7('0x80'),_0x18e7('0x5f'),_0x33e64b),_0x302e26[_0x18e7('0x26')][_0x18e7('0x59')](_0x18e7('0x20'),_0x18e7('0x80'),'accept',_0x33e64b),_0x302e26['_suggestionFactory'][_0x18e7('0x59')](_0x18e7('0x21'),'tableColumn',_0x18e7('0x5f'),_0x17e19d),_0x302e26['_suggestionFactory'][_0x18e7('0x59')](_0x18e7('0x20'),_0x18e7('0x3b'),_0x18e7('0x25'),_0x17e19d),_0x302e26[_0x18e7('0x26')][_0x18e7('0x59')]('insertion',_0x18e7('0x3b'),_0x18e7('0x84'),_0x32aa0a),_0x302e26[_0x18e7('0x26')][_0x18e7('0x59')](_0x18e7('0x20'),'tableColumn',_0x18e7('0x84'),_0x32aa0a),_0x302e26[_0x18e7('0x26')]['registerCustomCallback'](_0x18e7('0x21'),_0x18e7('0x80'),_0x18e7('0x84'),_0xdb2ab5),_0x302e26[_0x18e7('0x26')][_0x18e7('0x59')](_0x18e7('0x20'),'tableRow',_0x18e7('0x84'),_0xdb2ab5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x26500f=this[_0x18e7('0x32')],_0x29c868=_0x26500f[_0x18e7('0x58')]['document'][_0x18e7('0x3d')];return(_0x5f4b35,_0xa93590)=>{_0x26500f[_0x18e7('0x58')][_0x18e7('0x37')](_0x52c7a2=>{const {commandName:_0x2f101b,commandParams:_0xeec3a3}=_0xa93590;let _0x26c6d4=_0x5f4b35[0x0]['end']['nodeBefore'];_0xeec3a3&&_0xeec3a3[0x0]&&!0x1===_0xeec3a3[0x0][_0x18e7('0x1a')]&&(_0x26c6d4=_0x5f4b35[0x0][_0x18e7('0x65')][_0x18e7('0x61')]);const _0x2435fc=_0x52c7a2[_0x18e7('0x2c')](_0x26c6d4);if(_0x18e7('0x88')==_0x2435fc[_0x18e7('0x89')]['rootName'])return;const _0x38c47b=Array['from'](_0x29c868[_0x18e7('0x40')]())[_0x18e7('0x76')](_0x4acbae=>_0x35ce7b[_0x18e7('0x52')](_0x4acbae));_0x52c7a2[_0x18e7('0x5d')](_0x2435fc),_0x26500f[_0x18e7('0x17')][_0x18e7('0x7a')](_0x2f101b)['refresh'](),_0xeec3a3['push']({'forceDefaultExecution':!0x0}),_0x26500f[_0x18e7('0x66')](_0x2f101b,..._0xeec3a3);const _0x354372=_0x38c47b['filter'](_0x37425e=>_0x18e7('0x88')!=_0x37425e[_0x18e7('0x89')][_0x18e7('0x87')]);_0x354372[_0x18e7('0x3')]>0x0&&_0x52c7a2[_0x18e7('0x5d')](_0x354372);for(const _0x17c42c of _0x38c47b)_0x17c42c[_0x18e7('0x7b')]();});};}['_getCoordsForCells'](_0x35251b){const _0x109efb=this[_0x18e7('0x32')][_0x18e7('0x18')][_0x18e7('0x7a')]('TableUtils');let _0x17cd80=Number[_0x18e7('0x86')],_0x40d741=Number[_0x18e7('0xd')],_0x2f5b94=Number['MAX_SAFE_INTEGER'],_0x46cebd=Number['MIN_SAFE_INTEGER'];for(const _0x248c2c of _0x35251b){if(_0x18e7('0x88')==_0x248c2c['root'][_0x18e7('0x87')])continue;const {row:_0x594217,column:_0x2a3d08}=_0x109efb[_0x18e7('0x2b')](_0x248c2c),_0xba7e8d=_0x248c2c[_0x18e7('0x75')](_0x18e7('0x6f'))?_0x248c2c[_0x18e7('0x6c')](_0x18e7('0x6f'))-0x1:0x0,_0x592280=_0x248c2c[_0x18e7('0x75')](_0x18e7('0x69'))?_0x248c2c[_0x18e7('0x6c')](_0x18e7('0x69'))-0x1:0x0;_0x17cd80=_0x594217<_0x17cd80?_0x594217:_0x17cd80,_0x40d741=_0x594217+_0xba7e8d>_0x40d741?_0x594217+_0xba7e8d:_0x40d741,_0x2f5b94=_0x2a3d08<_0x2f5b94?_0x2a3d08:_0x2f5b94,_0x46cebd=_0x2a3d08+_0x592280>_0x46cebd?_0x2a3d08+_0x592280:_0x46cebd;}return{'minRow':_0x17cd80,'maxRow':_0x40d741,'minColumn':_0x2f5b94,'maxColumn':_0x46cebd};}[_0x18e7('0x45')](){const _0x17b280=this[_0x18e7('0x32')],_0x54ba74=_0x17b280[_0x18e7('0x18')][_0x18e7('0x7a')](_0x18e7('0x23')),_0x57e2b0=_0x17b280[_0x18e7('0x18')][_0x18e7('0x7a')](_0x18e7('0x1c'));this[_0x18e7('0x6b')]=new Set(),_0x17b280[_0x18e7('0x58')][_0x18e7('0x51')]['on'](_0x18e7('0x7'),()=>{const _0x43bc15=Array[_0x18e7('0xb')](_0x17b280[_0x18e7('0x58')][_0x18e7('0x51')][_0x18e7('0x4b')][_0x18e7('0x22')]());for(const {name:_0x2ebabb,data:_0x478ced}of _0x43bc15){const {group:_0xf97245,id:_0x3798c4,subType:_0x567909}=_0x54ba74[_0x18e7('0x42')](_0x2ebabb);if(_0x18e7('0x43')!=_0xf97245)continue;if(null!=_0x478ced[_0x18e7('0x2a')])continue;const _0xf53728=_0x54ba74[_0x18e7('0x60')](_0x3798c4);this[_0x18e7('0x68')][_0x18e7('0x38')](_0x567909)&&this[_0x18e7('0x6b')]['add'](_0xf53728);}},{'priority':_0x18e7('0x5c')});const _0x5828f0=(_0x15ec21,_0x22b1eb)=>{let _0x253c0a=!0x1;const _0x3900b0=_0x22b1eb['createRangeOn'](_0x15ec21),_0x732c33=_0x15ec21['findAncestor'](_0x18e7('0xc')),_0x1775e7=_0x57e2b0[_0x18e7('0x2b')](_0x15ec21);for(const _0x363a9 of this['_tableSuggestions']){const _0xc03354=_0x363a9[_0x18e7('0x34')],_0x467c31=_0xc03354[_0x18e7('0x53')](_0x18e7('0x41')),_0x4a6e3b=_0xc03354[_0x18e7('0x7f')](_0x467c31?0xa:0x5),_0x55a16c=_0x4a6e3b[_0x18e7('0x16')](),_0x2e659a=_0x55a16c[_0x18e7('0x7f')](0x0,0x3)+'span',_0x155d32=_0x18e7('0x28')+_0x4a6e3b,_0x36b03a=_0x18e7('0x9')+_0x4a6e3b;if(!_0x363a9[_0x18e7('0x29')])continue;if(_0x732c33!=_0x363a9[_0x18e7('0x8')]()['start'][_0x18e7('0x30')](_0x18e7('0xc')))continue;if(_0x363a9[_0x18e7('0x3c')](_0x3900b0))continue;const _0x51b4be=_0x15ec21[_0x18e7('0x75')](_0x2e659a)?_0x15ec21[_0x18e7('0x6c')](_0x2e659a)-0x1:0x0,_0x2e3a55=this[_0x18e7('0x10')](_0x363a9),_0xcc0329=_0x2e3a55[_0x155d32],_0x11480b=_0x2e3a55[_0x36b03a];_0xcc0329<=_0x1775e7[_0x55a16c]&&_0x1775e7[_0x55a16c]+_0x51b4be<=_0x11480b&&(_0x363a9[_0x18e7('0x85')](_0x3900b0),_0x253c0a=!0x0);}return _0x253c0a;};_0x17b280['model'][_0x18e7('0x51')]['registerPostFixer'](_0x28aa85=>{let _0x413336=!0x1;for(const _0x181760 of _0x17b280[_0x18e7('0x58')][_0x18e7('0x51')][_0x18e7('0x4b')][_0x18e7('0x8b')]())if(_0x18e7('0x78')==_0x181760['type']){if('tableRow'==_0x181760[_0x18e7('0x33')])for(const _0x5c7089 of _0x181760[_0x18e7('0x2e')][_0x18e7('0x61')][_0x18e7('0x47')]())_0x413336=_0x413336||_0x5828f0(_0x5c7089,_0x28aa85);else _0x18e7('0x6d')==_0x181760[_0x18e7('0x33')]&&(_0x413336=_0x413336||_0x5828f0(_0x181760['position'][_0x18e7('0x61')],_0x28aa85));}return _0x413336;});}['_getSuggestionCoords'](_0x5d56a3){return this['_getCoordsForCells'](_0x5d56a3['getRanges']()[_0x18e7('0x76')](_0x2d6026=>_0x2d6026[_0x18e7('0x65')]['nodeAfter']));}}function Xt(_0x27bd91){return Array[_0x18e7('0xb')](new Set(_0x27bd91)[_0x18e7('0x64')]());}
|
|
23
|
+
const _0x5974=['cell','markMultiRangeInsertion','getColumnIndexes','join','oldRange','root','getRanges','insertTableColumnRight','showSuggestionHighlights','filter','removeClass','_tablePostFixingSubtypes','discard','data','map','_descriptionFactory','createPositionAt','minColumn','every','*Insert:*\x20%0','rowspan','startsWith','forceValue','toViewElement','order','add','TableUtils','has','max','getCellLocation','writer','batch','insertTableRowBelow','tableCell','span','addRange','accept','end','detach','*Remove:*\x20%0','length','values','ELEMENT_TABLE_WITH_TEXT','MIN_SAFE_INTEGER','tablePaste','low','insert','findAncestor','MAX_SAFE_INTEGER','element','enqueueChange','getItems','isTouching','tableColumn','getRowIndexes','isEqual','nodeAfter','mapper','textProxy','first','maxColumn','deletion','name','TableEditing','maxRow','getChanges','colspan','registerDescriptionCallback','start','hasAttribute','toLowerCase','selection','rootName','tableRow','addMarker:suggestion','fromRange','substr','$graveyard','table','_tableSuggestions','ELEMENT_TABLE_COLUMN_WITH_TEXT','removeTableRow','above','model','item','_setupColumnsRowsFixing','createTableWalker','type','_splitMarkerName','min','commands','TrackChangesEditing','getAttribute','ELEMENT_TABLE_ROW','setSelection','_getCoordsForCells','getFirstRange','get','_getSuggestionCoords','selectTableRow','classes','suggestion','_suggestionFactory','execute','removeTableColumn','push','ELEMENT_TABLE_ROW_WITH_TEXT','left','insertion','getSelectionAffectedTableCells','document','downcastDispatcher','plugins','getSuggestion','getChangedMarkers','ELEMENT_TABLE_COLUMN','change','editor','from','registerCustomCallback','some','createRangeOn','enableCommand','locale','refresh','selectTableColumn','isInContent','last','registerPostFixer','subType','insertTableRowAbove'];(function(_0xd54346,_0x59749f){const _0x5555e2=function(_0x32f790){while(--_0x32f790){_0xd54346['push'](_0xd54346['shift']());}};_0x5555e2(++_0x59749f);}(_0x5974,0x9c));const _0x5555=function(_0xd54346,_0x59749f){_0xd54346=_0xd54346-0x0;let _0x5555e2=_0x5974[_0xd54346];return _0x5555e2;};import{Plugin as _0x39cbce}from'ckeditor5/src/core';import{LiveRange as _0x1fc2a3}from'ckeditor5/src/engine';import{setHighlightHandling as _0x5d2d0f}from'ckeditor5/src/widget';import{getTranslation as _0x19906b}from'../utils/common-translations';export default class ut extends _0x39cbce{constructor(_0x1e63f3){super(_0x1e63f3),this[_0x5555('0x75')]=[_0x5555('0x30'),_0x5555('0x1c')];}['afterInit'](){const _0x33963b=this[_0x5555('0x5c')],_0x3905b0=_0x33963b[_0x5555('0x3a')]['document'][_0x5555('0x2e')];if(!_0x33963b[_0x5555('0x57')][_0x5555('0x2')](_0x5555('0x26')))return;const _0x2f8d0c=_0x33963b[_0x5555('0x62')],_0x598e92=_0x33963b['plugins']['get'](_0x5555('0x42')),_0x1e6d9f=_0x33963b[_0x5555('0x57')][_0x5555('0x48')](_0x5555('0x1'));_0x598e92[_0x5555('0x79')]['registerElementLabel'](_0x5555('0x35'),_0x46ab8e=>_0x19906b(_0x2f8d0c,'ELEMENT_TABLE',_0x46ab8e)),this[_0x5555('0x3c')](),_0x598e92[_0x5555('0x61')]('insertTable'),_0x598e92['enableCommand'](_0x5555('0x4a')),_0x598e92[_0x5555('0x61')](_0x5555('0x64'));for(const _0x2f4003 of[_0x5555('0x69'),_0x5555('0x7')]){const _0x4b2537=_0x33963b[_0x5555('0x41')][_0x5555('0x48')](_0x2f4003);_0x598e92[_0x5555('0x61')](_0x2f4003,_0x2b6819=>{_0x33963b[_0x5555('0x3a')]['change'](_0x53a822=>{_0x2b6819();const _0x354d19=_0x5555('0x39')===_0x4b2537[_0x5555('0x82')],_0x214cab=_0x1e6d9f[_0x5555('0x54')](_0x3905b0),_0x3ca11c=_0x1e6d9f['getRowIndexes'](_0x214cab),_0x101ad3=_0x354d19?_0x3ca11c['first']-0x1:_0x3ca11c[_0x5555('0x66')]+0x1,_0x56474c=_0x214cab[0x0][_0x5555('0x16')](_0x5555('0x35')),_0x5b6bb1=_0x1e6d9f[_0x5555('0x3d')](_0x56474c,{'startRow':_0x101ad3,'endRow':_0x101ad3}),_0x379edc=Array['from'](_0x5b6bb1)['map'](_0x33e586=>_0x53a822['createRangeOn'](_0x33e586[_0x5555('0x6a')]));_0x598e92[_0x5555('0x6b')](_0x379edc,_0x5555('0x30'));});});}for(const _0x344475 of['insertTableColumnLeft',_0x5555('0x71')]){const _0x49b142=_0x33963b[_0x5555('0x41')]['get'](_0x344475);_0x598e92[_0x5555('0x61')](_0x344475,_0x282553=>{_0x33963b['model'][_0x5555('0x5b')](_0x44017a=>{_0x282553();const _0x3063b9=_0x5555('0x52')===_0x49b142['order'],_0x19e8df=_0x1e6d9f['getSelectionAffectedTableCells'](_0x3905b0),_0x2303aa=_0x1e6d9f[_0x5555('0x6c')](_0x19e8df),_0x10da66=_0x3063b9?_0x2303aa[_0x5555('0x22')]-0x1:_0x2303aa[_0x5555('0x66')]+0x1,_0x45406d=_0x19e8df[0x0][_0x5555('0x16')](_0x5555('0x35')),_0xc2dc76=_0x1e6d9f[_0x5555('0x3d')](_0x45406d,{'startRow':0x0,'column':_0x10da66,'includeAllSlots':!0x1}),_0x530865=Array[_0x5555('0x5d')](_0xc2dc76)[_0x5555('0x78')](_0x391cc6=>_0x44017a[_0x5555('0x60')](_0x391cc6[_0x5555('0x6a')]));_0x598e92[_0x5555('0x6b')](_0x530865,_0x5555('0x1c'));});});}for(const _0x53f824 of[_0x5555('0x38'),'removeTableColumn']){const _0x123ff2=_0x53f824['substr'](0xb),_0x5e67c1=_0x123ff2['toLowerCase'](),_0x2dafba=_0x5e67c1[_0x5555('0x33')](0x0,0x3)+_0x5555('0x9'),_0x3f3900=_0x5555('0x35')+_0x123ff2,_0x10c7ed=_0x5555('0x40')+_0x123ff2,_0x5d8444=_0x5555('0x3')+_0x123ff2;_0x598e92[_0x5555('0x61')](_0x53f824,()=>{_0x33963b['model'][_0x5555('0x5b')](_0x30d34e=>{const _0x5b3bac=_0x1e6d9f['getSelectionAffectedTableCells'](_0x3905b0),_0x39e918=_0x5b3bac[0x0]['findAncestor'](_0x5555('0x35'));let _0x2d4759;if(_0x5555('0x38')==_0x53f824){const _0x4fec8d=_0x1e6d9f[_0x5555('0x1d')](_0x5b3bac);_0x2d4759={'startRow':_0x4fec8d['first'],'endRow':_0x4fec8d['last'],'includeAllSlots':!0x0};}else{const _0x30a560=_0x1e6d9f[_0x5555('0x6c')](_0x5b3bac);_0x2d4759={'startColumn':_0x30a560['first'],'endColumn':_0x30a560[_0x5555('0x66')],'includeAllSlots':!0x0};}const _0x1a756d=_0x1e6d9f[_0x5555('0x3d')](_0x39e918,_0x2d4759),_0x41c15a=Array[_0x5555('0x5d')](_0x1a756d)['map'](({cell:_0x291698})=>_0x291698),_0x1a7ab8=Xt(_0x41c15a['filter'](_0x3a3870=>_0x3a3870[_0x5555('0x2c')](_0x2dafba))),_0x39f74d=Xt(_0x41c15a[_0x5555('0x73')](_0x38f796=>!_0x38f796[_0x5555('0x2c')](_0x2dafba)))[_0x5555('0x78')](_0x3f20ab=>_0x30d34e[_0x5555('0x60')](_0x3f20ab)),_0x543587=_0x598e92['markMultiRangeDeletion'](_0x39f74d,_0x3f3900);if(_0x543587&&('tableRow'==_0x543587['subType']||_0x5555('0x1c')==_0x543587[_0x5555('0x68')])){const _0x5955a1=this[_0x5555('0x49')](_0x543587);for(const _0x3e6e01 of _0x1a7ab8){const _0x58032f=_0x30d34e['createRangeOn'](_0x3e6e01),_0x1a0eec=_0x1e6d9f[_0x5555('0x4')](_0x3e6e01),_0x4229ab=_0x3e6e01['getAttribute'](_0x2dafba)-0x1,_0x347816=_0x5955a1[_0x10c7ed],_0x2ad8d9=_0x5955a1[_0x5d8444];_0x347816<=_0x1a0eec[_0x5e67c1]&&_0x1a0eec[_0x5e67c1]+_0x4229ab<=_0x2ad8d9&&_0x543587['addRange'](_0x58032f);}}});});}function _0x3063cc(_0x55b0c9){const _0x26ba09=Array['from'](_0x3905b0[_0x5555('0x70')]())[_0x5555('0x78')](_0x54cc44=>_0x1fc2a3[_0x5555('0x32')](_0x54cc44));_0x33963b[_0x5555('0x3a')][_0x5555('0x5b')](_0x1d7748=>{const _0x213c97=_0x1d7748[_0x5555('0x6')];_0x55b0c9=_0x55b0c9[_0x5555('0x73')](_0x3d91c4=>_0x5555('0x34')!=_0x3d91c4[_0x5555('0x6f')][_0x5555('0x2f')]),_0x1d7748['setSelection'](_0x55b0c9),_0x33963b[_0x5555('0x41')][_0x5555('0x48')](_0x5555('0x38'))[_0x5555('0x63')](),_0x33963b[_0x5555('0x4e')](_0x5555('0x38'),{'forceDefaultExecution':!0x0}),_0x33963b[_0x5555('0x3a')][_0x5555('0x19')](()=>{_0x33963b[_0x5555('0x3a')]['enqueueChange'](_0x213c97,_0x2796be=>{const _0x5bb633=_0x26ba09[_0x5555('0x73')](_0x455366=>_0x5555('0x34')!=_0x455366[_0x5555('0x6f')][_0x5555('0x2f')]);_0x5bb633[_0x5555('0xf')]>0x0&&_0x2796be[_0x5555('0x45')](_0x5bb633);for(const _0x301ca0 of _0x26ba09)_0x301ca0[_0x5555('0xd')]();});});});}function _0x20f625(_0x192a0a){_0x33963b[_0x5555('0x3a')]['change'](_0x35ee84=>{const _0xac8a40=Array['from'](_0x3905b0[_0x5555('0x70')]())[_0x5555('0x78')](_0x262e57=>_0x1fc2a3[_0x5555('0x32')](_0x262e57)),_0xace0c7=[];for(const _0x4ed160 of _0x192a0a)for(const _0x7c6434 of _0x4ed160['getItems']({'shallow':!0x0}))_0xace0c7[_0x5555('0x50')](_0x7c6434);for(const _0x4a3534 of _0xace0c7)'$graveyard'!=_0x4a3534['root']['rootName']&&(_0x35ee84['setSelection'](_0x35ee84[_0x5555('0x7a')](_0x4a3534,0x0)),_0x33963b[_0x5555('0x41')]['get'](_0x5555('0x4f'))[_0x5555('0x63')](),_0x33963b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4fb6a1=_0xac8a40[_0x5555('0x73')](_0x28bb12=>_0x5555('0x34')!=_0x28bb12[_0x5555('0x6f')][_0x5555('0x2f')]);_0x4fb6a1[_0x5555('0xf')]>0x0&&_0x35ee84[_0x5555('0x45')](_0x4fb6a1);for(const _0x542b8e of _0xac8a40)_0x542b8e[_0x5555('0xd')]();});}function _0x11bf36(_0x31efc3,_0x3f14c0){return _0x3f14c0[_0x5555('0x7c')](_0x3e3739=>_0x31efc3[_0x5555('0x5f')](_0x54dddf=>_0x54dddf[_0x5555('0xc')][_0x5555('0x1e')](_0x3e3739['start'])||_0x3e3739['end'][_0x5555('0x1e')](_0x54dddf[_0x5555('0x2b')])));}function _0x3e6018(_0x3490e3,_0x192858){return _0x3490e3[_0x5555('0x5f')](_0xf205a0=>_0x192858[_0x5555('0x5f')](_0x517686=>_0xf205a0['end'][_0x5555('0x1b')](_0x517686[_0x5555('0x2b')])));}_0x33963b[_0x5555('0x77')][_0x5555('0x56')]['on'](_0x5555('0x31'),(_0x801760,_0x57dc88,_0x5240cb)=>{if(!_0x5240cb['options'][_0x5555('0x72')])return;const _0x17c9d8=_0x57dc88[_0x5555('0x3b')];if(!_0x17c9d8)return;const _0x17428b=_0x5240cb[_0x5555('0x20')][_0x5555('0x81')](_0x17c9d8);function _0x8d79cc(_0x94e020){return Array['isArray'](_0x94e020)?_0x94e020:[_0x94e020];}_0x17428b&&'tableCell'===_0x17c9d8[_0x5555('0x25')]&&_0x5d2d0f(_0x17428b,_0x5240cb[_0x5555('0x5')],(_0x11e1f7,_0x1dce90,_0x5d5031)=>_0x5d5031['addClass'](_0x8d79cc(_0x1dce90[_0x5555('0x4b')]),_0x11e1f7),(_0x315ce2,_0x182956,_0xf26f5a)=>_0xf26f5a[_0x5555('0x74')](_0x8d79cc(_0x182956[_0x5555('0x4b')]),_0x315ce2));},{'priority':'highest'}),_0x598e92[_0x5555('0x79')][_0x5555('0x2a')](_0x56ad74=>{if(_0x5555('0x53')!=_0x56ad74['type']&&'deletion'!=_0x56ad74[_0x5555('0x3e')])return;const _0x511b88=_0x56ad74['getContainedElement']();if(null!=_0x511b88&&_0x511b88['is'](_0x5555('0x18'),'table')){if('insertion'==_0x56ad74[_0x5555('0x3e')]){const _0x351049=_0x56ad74['getItems']()['filter'](_0x21b3d2=>_0x21b3d2['is']('textProxy'))[_0x5555('0x78')](_0x4c5b96=>_0x4c5b96[_0x5555('0x77')]);if(_0x351049[_0x5555('0xf')])return{'type':'insertion','content':_0x19906b(_0x2f8d0c,_0x5555('0x7d'),_0x19906b(_0x2f8d0c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x351049['join']('\x20')+'\x22'))};}if(_0x5555('0x24')==_0x56ad74[_0x5555('0x3e')]){const _0x1bb4c0=_0x56ad74[_0x5555('0x1a')]()[_0x5555('0x73')](_0x274f24=>_0x274f24['is'](_0x5555('0x21')))[_0x5555('0x78')](_0x4a6667=>_0x4a6667['data']);if(_0x1bb4c0[_0x5555('0xf')])return{'type':_0x5555('0x24'),'content':_0x19906b(_0x2f8d0c,_0x5555('0xe'),_0x19906b(_0x2f8d0c,_0x5555('0x11'),'\x22'+_0x1bb4c0[_0x5555('0x6d')]('\x20')+'\x22'))};}}}),_0x598e92['_descriptionFactory']['registerDescriptionCallback'](_0x4b9607=>{if(_0x5555('0x30')==_0x4b9607['subType']){const _0x1fe044=_0x4b9607[_0x5555('0x1a')]()['filter'](_0x50ea13=>_0x50ea13['is'](_0x5555('0x21')))[_0x5555('0x78')](_0x1af8cf=>_0x1af8cf['data']),_0x53afea=this[_0x5555('0x49')](_0x4b9607),_0x860225=_0x53afea[_0x5555('0x27')]-_0x53afea['minRow']+0x1;if(_0x5555('0x53')==_0x4b9607[_0x5555('0x3e')])return _0x1fe044[_0x5555('0xf')]?{'type':_0x5555('0x53'),'content':_0x19906b(_0x2f8d0c,_0x5555('0x7d'),_0x19906b(_0x2f8d0c,_0x5555('0x51'),[_0x860225,'\x22'+_0x1fe044['join']('\x20')+'\x22']))}:{'type':_0x5555('0x53'),'content':_0x19906b(_0x2f8d0c,_0x5555('0x7d'),_0x19906b(_0x2f8d0c,_0x5555('0x44'),_0x860225))};if('deletion'==_0x4b9607['type'])return _0x1fe044[_0x5555('0xf')]?{'type':_0x5555('0x24'),'content':_0x19906b(_0x2f8d0c,_0x5555('0xe'),_0x19906b(_0x2f8d0c,_0x5555('0x51'),[_0x860225,'\x22'+_0x1fe044['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x19906b(_0x2f8d0c,_0x5555('0xe'),_0x19906b(_0x2f8d0c,_0x5555('0x44'),_0x860225))};}if('tableColumn'==_0x4b9607[_0x5555('0x68')]){const _0x278257=_0x4b9607[_0x5555('0x1a')]()['filter'](_0x2df71c=>_0x2df71c['is'](_0x5555('0x21')))[_0x5555('0x78')](_0x31798c=>_0x31798c['data']),_0x5405fd=this[_0x5555('0x49')](_0x4b9607),_0x7d50ca=_0x5405fd[_0x5555('0x23')]-_0x5405fd[_0x5555('0x7b')]+0x1;if('insertion'==_0x4b9607[_0x5555('0x3e')])return _0x278257[_0x5555('0xf')]?{'type':_0x5555('0x53'),'content':_0x19906b(_0x2f8d0c,_0x5555('0x7d'),_0x19906b(_0x2f8d0c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x7d50ca,'\x22'+_0x278257['join']('\x20')+'\x22']))}:{'type':_0x5555('0x53'),'content':_0x19906b(_0x2f8d0c,_0x5555('0x7d'),_0x19906b(_0x2f8d0c,'ELEMENT_TABLE_COLUMN',_0x7d50ca))};if(_0x5555('0x24')==_0x4b9607[_0x5555('0x3e')])return _0x278257['length']?{'type':'deletion','content':_0x19906b(_0x2f8d0c,_0x5555('0xe'),_0x19906b(_0x2f8d0c,_0x5555('0x37'),[_0x7d50ca,'\x22'+_0x278257[_0x5555('0x6d')]('\x20')+'\x22']))}:{'type':_0x5555('0x24'),'content':_0x19906b(_0x2f8d0c,'*Remove:*\x20%0',_0x19906b(_0x2f8d0c,_0x5555('0x5a'),_0x7d50ca))};}}),_0x598e92[_0x5555('0x4d')]['registerCustomCallback'](_0x5555('0x53'),_0x5555('0x30'),_0x5555('0x76'),_0x3063cc),_0x598e92['_suggestionFactory'][_0x5555('0x5e')](_0x5555('0x24'),_0x5555('0x30'),_0x5555('0xb'),_0x3063cc),_0x598e92[_0x5555('0x4d')][_0x5555('0x5e')](_0x5555('0x53'),_0x5555('0x1c'),'discard',_0x20f625),_0x598e92[_0x5555('0x4d')][_0x5555('0x5e')]('deletion',_0x5555('0x1c'),_0x5555('0xb'),_0x20f625),_0x598e92['_suggestionFactory']['registerCustomCallback'](_0x5555('0x53'),'tableColumn',_0x5555('0x6d'),_0x11bf36),_0x598e92[_0x5555('0x4d')][_0x5555('0x5e')](_0x5555('0x24'),'tableColumn',_0x5555('0x6d'),_0x11bf36),_0x598e92[_0x5555('0x4d')]['registerCustomCallback'](_0x5555('0x53'),_0x5555('0x30'),'join',_0x3e6018),_0x598e92[_0x5555('0x4d')]['registerCustomCallback'](_0x5555('0x24'),_0x5555('0x30'),_0x5555('0x6d'),_0x3e6018);}['_acceptFormatSuggestionCallbackFactory'](){const _0x30bf3c=this[_0x5555('0x5c')],_0x4ae3b6=_0x30bf3c[_0x5555('0x3a')][_0x5555('0x55')]['selection'];return(_0x24f54e,_0x2b9676)=>{_0x30bf3c[_0x5555('0x3a')][_0x5555('0x5b')](_0x2c1746=>{const {commandName:_0x9c5e62,commandParams:_0x482360}=_0x2b9676;let _0x157d98=_0x24f54e[0x0][_0x5555('0xc')]['nodeBefore'];_0x482360&&_0x482360[0x0]&&!0x1===_0x482360[0x0][_0x5555('0x80')]&&(_0x157d98=_0x24f54e[0x0][_0x5555('0x2b')][_0x5555('0x1f')]);const _0x1683d1=_0x2c1746['createRangeIn'](_0x157d98);if(_0x5555('0x34')==_0x1683d1[_0x5555('0x6f')][_0x5555('0x2f')])return;const _0x1cdf9c=Array['from'](_0x4ae3b6[_0x5555('0x70')]())['map'](_0x10ab02=>_0x1fc2a3['fromRange'](_0x10ab02));_0x2c1746[_0x5555('0x45')](_0x1683d1),_0x30bf3c[_0x5555('0x41')][_0x5555('0x48')](_0x9c5e62)[_0x5555('0x63')](),_0x482360[_0x5555('0x50')]({'forceDefaultExecution':!0x0}),_0x30bf3c[_0x5555('0x4e')](_0x9c5e62,..._0x482360);const _0x208d35=_0x1cdf9c[_0x5555('0x73')](_0xf47676=>_0x5555('0x34')!=_0xf47676[_0x5555('0x6f')][_0x5555('0x2f')]);_0x208d35['length']>0x0&&_0x2c1746['setSelection'](_0x208d35);for(const _0x3c1183 of _0x1cdf9c)_0x3c1183[_0x5555('0xd')]();});};}[_0x5555('0x46')](_0x3a409f){const _0x2e809c=this[_0x5555('0x5c')][_0x5555('0x57')][_0x5555('0x48')]('TableUtils');let _0x18e202=Number['MAX_SAFE_INTEGER'],_0x9914c5=Number[_0x5555('0x12')],_0x387f11=Number[_0x5555('0x17')],_0x107d83=Number[_0x5555('0x12')];for(const _0x662904 of _0x3a409f){if(_0x5555('0x34')==_0x662904[_0x5555('0x6f')][_0x5555('0x2f')])continue;const {row:_0x1b5a59,column:_0x4228d1}=_0x2e809c[_0x5555('0x4')](_0x662904),_0x4bf9e1=_0x662904[_0x5555('0x2c')](_0x5555('0x7e'))?_0x662904[_0x5555('0x43')](_0x5555('0x7e'))-0x1:0x0,_0x24f609=_0x662904[_0x5555('0x2c')](_0x5555('0x29'))?_0x662904[_0x5555('0x43')](_0x5555('0x29'))-0x1:0x0;_0x18e202=_0x1b5a59<_0x18e202?_0x1b5a59:_0x18e202,_0x9914c5=_0x1b5a59+_0x4bf9e1>_0x9914c5?_0x1b5a59+_0x4bf9e1:_0x9914c5,_0x387f11=_0x4228d1<_0x387f11?_0x4228d1:_0x387f11,_0x107d83=_0x4228d1+_0x24f609>_0x107d83?_0x4228d1+_0x24f609:_0x107d83;}return{'minRow':_0x18e202,'maxRow':_0x9914c5,'minColumn':_0x387f11,'maxColumn':_0x107d83};}['_setupColumnsRowsFixing'](){const _0xc0dcd3=this['editor'],_0x12548a=_0xc0dcd3[_0x5555('0x57')][_0x5555('0x48')]('TrackChangesEditing'),_0x20c89b=_0xc0dcd3[_0x5555('0x57')]['get']('TableUtils');this[_0x5555('0x36')]=new Set(),_0xc0dcd3[_0x5555('0x3a')][_0x5555('0x55')]['on']('change:data',()=>{const _0x19cf39=Array[_0x5555('0x5d')](_0xc0dcd3[_0x5555('0x3a')][_0x5555('0x55')]['differ'][_0x5555('0x59')]());for(const {name:_0x1821f1,data:_0x257611}of _0x19cf39){const {group:_0x387ca7,id:_0x401034,subType:_0x17d9f2}=_0x12548a[_0x5555('0x3f')](_0x1821f1);if(_0x5555('0x4c')!=_0x387ca7)continue;if(null!=_0x257611[_0x5555('0x6e')])continue;const _0x8ad63d=_0x12548a[_0x5555('0x58')](_0x401034);this['_tablePostFixingSubtypes']['includes'](_0x17d9f2)&&this[_0x5555('0x36')][_0x5555('0x0')](_0x8ad63d);}},{'priority':_0x5555('0x14')});const _0x57b38e=(_0x10893a,_0x1b34db)=>{let _0x9304b1=!0x1;const _0x33f6f2=_0x1b34db[_0x5555('0x60')](_0x10893a),_0x528a14=_0x10893a[_0x5555('0x16')]('table'),_0x4ca040=_0x20c89b[_0x5555('0x4')](_0x10893a);for(const _0x4077f2 of this[_0x5555('0x36')]){const _0x5944a8=_0x4077f2[_0x5555('0x68')],_0x2cb0e6=_0x5944a8[_0x5555('0x7f')](_0x5555('0x13')),_0x3c2333=_0x5944a8[_0x5555('0x33')](_0x2cb0e6?0xa:0x5),_0x1cf5e6=_0x3c2333[_0x5555('0x2d')](),_0x269d9a=_0x1cf5e6[_0x5555('0x33')](0x0,0x3)+_0x5555('0x9'),_0x588b53='min'+_0x3c2333,_0x2ba764=_0x5555('0x3')+_0x3c2333;if(!_0x4077f2[_0x5555('0x65')])continue;if(_0x528a14!=_0x4077f2[_0x5555('0x47')]()[_0x5555('0x2b')][_0x5555('0x16')]('table'))continue;if(_0x4077f2['isIntersectingWithRange'](_0x33f6f2))continue;const _0x24660=_0x10893a['hasAttribute'](_0x269d9a)?_0x10893a[_0x5555('0x43')](_0x269d9a)-0x1:0x0,_0x3be65d=this[_0x5555('0x49')](_0x4077f2),_0x25c285=_0x3be65d[_0x588b53],_0x106ce4=_0x3be65d[_0x2ba764];_0x25c285<=_0x4ca040[_0x1cf5e6]&&_0x4ca040[_0x1cf5e6]+_0x24660<=_0x106ce4&&(_0x4077f2[_0x5555('0xa')](_0x33f6f2),_0x9304b1=!0x0);}return _0x9304b1;};_0xc0dcd3[_0x5555('0x3a')][_0x5555('0x55')][_0x5555('0x67')](_0x4dca1d=>{let _0x2a0217=!0x1;for(const _0x265163 of _0xc0dcd3['model'][_0x5555('0x55')]['differ'][_0x5555('0x28')]())if(_0x5555('0x15')==_0x265163[_0x5555('0x3e')]){if(_0x5555('0x30')==_0x265163['name'])for(const _0x5da4ac of _0x265163['position'][_0x5555('0x1f')]['getChildren']())_0x2a0217=_0x2a0217||_0x57b38e(_0x5da4ac,_0x4dca1d);else _0x5555('0x8')==_0x265163['name']&&(_0x2a0217=_0x2a0217||_0x57b38e(_0x265163['position'][_0x5555('0x1f')],_0x4dca1d));}return _0x2a0217;});}[_0x5555('0x49')](_0x5b01cb){return this[_0x5555('0x46')](_0x5b01cb[_0x5555('0x70')]()[_0x5555('0x78')](_0x27b51a=>_0x27b51a[_0x5555('0x2b')][_0x5555('0x1f')]));}}function Xt(_0x132ee5){return Array[_0x5555('0x5d')](new Set(_0x132ee5)[_0x5555('0x10')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x23e9=['last','previous','fill','join','getChangedMarkers','accept','TrackChangesEditing','insertContent','getSelectionAffectedTableCells','reduce','batch','tableCellBackgroundColor','TableClipboard','createTableWalker','set','getColumnIndexes','return','getRanges','tablePasteCell','filter','suggestion:formatBlock:tablePasteCell','_getCoordsForCells','afterInit','remove','fromEntries','map','isEqual','_createdBatches','startsWith','insertColumns','markMultiRangeInsertion','editing','isEmpty','from','next','table','clipboardOutput','rootName','tableCellBorderStyle','tablePasteColumn','ck-suggestion-marker--active','markerToHighlight','includes','entries','suggestionUnloaded','dataDowncast','selection','get','getRange','tableCell','markers','setAttributes','tableCellHorizontalAlignment','length','row','every','suggestion','view','options','getAttributes','root','getShiftedBy','for','createRangeIn','registerCustomCallback','high','removeMarker','tablePasteChainId','markMultiRangeBlockFormat','markerName','element','name','register','low','getItems','model','find','removeMarkers','attributes','end','add','setAttribute','keys','value','content','editor','push','markerAttributes','change','columns','findAncestor','move','nextSibling','isInContent','getRowIndexes','endRow','tableCellBorderColor','insertRows','suggestion-td','editingDowncast','plugins','Users','removeRows','tablePasteRow','tableCellPadding','forceDefaultExecution','commands','rowInsertionRanges','insert','deletionRanges','_splitMarkerName','removeColumns','getSuggestions','column','stop','activeMarkers','type','paragraph','getSuggestionCallback','redo','containsRange','rowInsertionIndexes','getSuggestion','author','TableUtils','registerPostFixer','start','suggestionLoaded','insertion','_replaceTableSlotCell','columnInsertionRanges','_isForcedDefaultExecutionBlock','getContainedElement','rows','getChild','unwrap','elementToElement','tablePaste','getMarkers','markMultiRangeDeletion','endColumn','discard','documentSelection','tableCellSuggestion','showSuggestionHighlights','schema','_tablePostFixingSubtypes','first','differ','position','getAllAdjacentSuggestions','requires','listenTo','document','getChildren','_suggestionFactory','deletion','newRange','cells','has','_descriptionFactory','wrap','oldRange','getRows','conversion','subType','createRangeOn'];(function(_0x49b24c,_0x23e9c4){const _0x42b6ca=function(_0x5c0a2b){while(--_0x5c0a2b){_0x49b24c['push'](_0x49b24c['shift']());}};_0x42b6ca(++_0x23e9c4);}(_0x23e9,0x199));const _0x42b6=function(_0x49b24c,_0x23e9c4){_0x49b24c=_0x49b24c-0x0;let _0x42b6ca=_0x23e9[_0x49b24c];return _0x42b6ca;};import{getTranslation as _0x8e66e5}from'../utils/common-translations';import{Plugin as _0x34bbfc}from'ckeditor5/src/core';import _0x601945 from'./table';import{uid as _0x55c53c,priorities as _0x3a171c}from'ckeditor5/src/utils';const le=['tableCellBorderWidth',_0x42b6('0x15'),_0x42b6('0x82'),_0x42b6('0x90'),'tableCellVerticalAlignment',_0x42b6('0x67'),_0x42b6('0x1d')],ce=Object[_0x42b6('0x74')](le['map'](_0x22dc77=>[_0x22dc77,null]));export default class lt extends _0x34bbfc{static get[_0x42b6('0x4c')](){return[_0x601945];}[_0x42b6('0x72')](){const _0x2bc90a=this[_0x42b6('0xa')];if(!_0x2bc90a[_0x42b6('0x19')]['has'](_0x42b6('0x68')))return;const _0x281083=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x62')),_0x3340f3=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x31')),_0x507b34=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x601945),_0x1bfbf3=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x68'));_0x507b34[_0x42b6('0x47')][_0x42b6('0xb')](_0x42b6('0x1c'),_0x42b6('0x83')),_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x46')][_0x42b6('0xa4')](_0x42b6('0x44'),{'allowIn':_0x42b6('0x8d'),'allowContentOf':_0x42b6('0x8d'),'isLimit':!0x0}),_0x2bc90a['conversion'][_0x42b6('0x3d')]({'model':_0x42b6('0x44'),'view':_0x42b6('0x17')});let _0x39a589=null;_0x2bc90a[_0x42b6('0x0')]['on']('insertContent',(_0x4707c5,_0x5ceb29)=>{const [_0x56770d,_0x19fb01]=_0x5ceb29,_0x2dcd9e=_0x5ceb29[_0x5ceb29[_0x42b6('0x91')]-0x1];_0x2dcd9e&&_0x2dcd9e[_0x42b6('0x1e')]||_0x281083[_0x42b6('0x38')]||this['editor'][_0x42b6('0x1f')][_0x42b6('0x8b')]('trackChanges')[_0x42b6('0x8')]&&function(_0x467549,_0x44d6d9,_0x7211c7,_0x29002b,_0x4b1b7b){if(_0x44d6d9&&!_0x44d6d9['is'](_0x42b6('0x43')))return!0x1;const _0x2127ca=_0x4b1b7b['getTableIfOnlyTableInContent'](_0x467549,_0x7211c7);if(!_0x2127ca||!ue(_0x2127ca,null,_0x29002b))return!0x1;const _0x4e61a1=_0x29002b[_0x42b6('0x64')](_0x7211c7[_0x42b6('0x4e')][_0x42b6('0x8a')]);if(!_0x4e61a1['length'])return!0x1;const _0x7dc220=_0x4e61a1[0x0]['findAncestor']('table'),_0x104cf8=_0x29002b[_0x42b6('0x13')](_0x4e61a1),_0x44945a=_0x29002b[_0x42b6('0x6b')](_0x4e61a1),_0x332fa0={'startRow':_0x104cf8[_0x42b6('0x48')],'endRow':_0x104cf8[_0x42b6('0x5c')],'startColumn':_0x44945a['first'],'endColumn':_0x44945a[_0x42b6('0x5c')]};return 0x1==_0x4e61a1[_0x42b6('0x91')]&&(_0x332fa0[_0x42b6('0x14')]+=_0x29002b[_0x42b6('0x58')](_0x2127ca)-0x1,_0x332fa0[_0x42b6('0x41')]+=_0x29002b['getColumns'](_0x2127ca)-0x1),ue(_0x7dc220,_0x332fa0,_0x29002b);}(_0x56770d,_0x19fb01,_0x2bc90a[_0x42b6('0x0')],_0x3340f3,_0x1bfbf3)&&(_0x4707c5[_0x42b6('0x27')](),_0x39a589={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2bc90a[_0x42b6('0x0')][_0x42b6('0xd')](()=>{_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x63')](_0x5ceb29[0x0],_0x5ceb29[0x1],_0x5ceb29[0x2],_0x5ceb29[0x3],{'forceDefaultExecution':!0x0});const _0x5cbddf=_0x55c53c(),{rowInsertionRanges:_0x4f914d,columnInsertionRanges:_0x1787fb,insertionRanges:_0x7f844a,deletionRanges:_0x57a51a,cells:_0x654029}=_0x39a589;_0x4f914d[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x7a')](_0x4f914d,_0x42b6('0x1c'),{'tablePasteChainId':_0x5cbddf}),_0x1787fb[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x7a')](_0x1787fb,_0x42b6('0x83'),{'tablePasteChainId':_0x5cbddf}),_0x7f844a[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x7a')](_0x7f844a,_0x42b6('0x3e'),{'tablePasteChainId':_0x5cbddf,'skipNestingCheck':!0x0}),_0x57a51a[_0x42b6('0x91')]&&_0x281083[_0x42b6('0x40')](_0x57a51a,_0x42b6('0x3e'),{'tablePasteChainId':_0x5cbddf,'skipNestingCheck':!0x0});const _0x202a4d=_0x281083[_0x42b6('0xa0')](_0x654029[_0x42b6('0x75')](({element:_0x5a41b6})=>_0x5a41b6),{'formatGroupId':_0x55c53c()},[],_0x42b6('0x6e'),{'tablePasteChainId':_0x5cbddf});if(_0x202a4d){const _0x4c6e7d=_0x202a4d[_0x42b6('0x3f')](),_0x522070=[];for(const {element:_0x35f25d,attributes:_0x2c98fa}of _0x654029){if(!_0x2c98fa)continue;const _0x44c0d8=_0x2bc90a['model'][_0x42b6('0x5b')](_0x35f25d),_0x4515c6=_0x4c6e7d[_0x42b6('0x1')](_0x45791e=>_0x45791e[_0x42b6('0x8c')]()[_0x42b6('0x76')](_0x44c0d8));_0x4515c6&&_0x522070['push']([_0x4515c6[_0x42b6('0xa3')],_0x2c98fa]);}_0x522070[_0x42b6('0x91')]&&_0x202a4d[_0x42b6('0x6')](_0x42b6('0xc'),Object[_0x42b6('0x74')](_0x522070));}_0x39a589=null;}));},{'priority':_0x3a171c['high']+0xa}),_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x68'))['on'](_0x42b6('0x36'),(_0x3e4638,_0x404487)=>{const [_0x5cc8af,_0x2437fc,,_0x4501a5]=_0x404487;if(!_0x39a589)return;_0x3e4638['stop']();const _0x51c9d5=_0x5cc8af['cell'],_0x4240a0=_0x2437fc,_0x362a56=fe(_0x51c9d5),_0x2a33b4=fe(_0x4240a0);_0x3e4638[_0x42b6('0x6c')]=_0x51c9d5;let _0x4f56d1=null,_0x40e226=null;if(_0x2a33b4||_0x362a56){if(_0x362a56&&!_0x2a33b4){_0x4501a5['remove'](_0x51c9d5[_0x42b6('0x3b')](0x0));for(const _0x4abcf2 of Array[_0x42b6('0x7d')](_0x4240a0[_0x42b6('0x4f')]()))_0x4501a5[_0x42b6('0x21')](_0x4abcf2,_0x51c9d5,_0x42b6('0x4'));const _0x5abb12=_0x39a589[_0x42b6('0x2e')][_0x42b6('0x86')](_0x5cc8af[_0x42b6('0x92')]),_0x2a03f3=_0x39a589['columnInsertionIndexes']['includes'](_0x5cc8af[_0x42b6('0x26')]);_0x5abb12||_0x2a03f3||(_0x4f56d1=_0x4501a5[_0x42b6('0x9b')](_0x51c9d5));}else _0x2a33b4&&!_0x362a56&&(_0x40e226=_0x4501a5[_0x42b6('0x9b')](_0x51c9d5));}else{const _0x326099=_0x4501a5['createElement'](_0x42b6('0x44')),_0x45416a=_0x4501a5['createElement']('tableCellSuggestion');_0x4501a5[_0x42b6('0x56')](_0x4501a5[_0x42b6('0x9b')](_0x51c9d5),_0x45416a),_0x4501a5[_0x42b6('0x21')](_0x326099,_0x51c9d5,0x0);for(const _0x20aebe of Array[_0x42b6('0x7d')](_0x4240a0[_0x42b6('0x4f')]()))_0x4501a5[_0x42b6('0x21')](_0x20aebe,_0x326099,'end');_0x4f56d1=_0x4501a5['createRangeOn'](_0x326099),_0x40e226=_0x4501a5[_0x42b6('0x5b')](_0x45416a);}const _0x48a322=Array[_0x42b6('0x7d')](_0x4240a0[_0x42b6('0x97')]())[_0x42b6('0x6f')](([_0x4d45c7])=>le['includes'](_0x4d45c7));_0x39a589['cells'][_0x42b6('0xb')]({'element':_0x51c9d5,'attributes':_0x48a322[_0x42b6('0x91')]?Object['fromEntries'](_0x48a322):null}),_0x4f56d1&&_0x39a589['insertionRanges'][_0x42b6('0xb')](_0x4f56d1),_0x40e226&&_0x39a589[_0x42b6('0x22')][_0x42b6('0xb')](_0x40e226);},{'priority':'high'}),_0x3340f3['on'](_0x42b6('0x79'),(_0x2c9888,_0x254e77)=>{const [_0x5b3e11,_0x167d35={}]=_0x254e77;if(!_0x39a589)return;const _0x2dcf32=_0x167d35['at']||0x0,_0x2a2f9d=_0x167d35[_0x42b6('0xe')]||0x1;_0x39a589['columnInsertionIndexes']=new Array(_0x2a2f9d)[_0x42b6('0x5e')](_0x2dcf32)[_0x42b6('0x75')]((_0x282c00,_0x513a16)=>_0x282c00+_0x513a16);for(const {cell:_0x37e5ba}of _0x3340f3[_0x42b6('0x69')](_0x5b3e11,{'startColumn':_0x2dcf32,'endColumn':_0x2dcf32+_0x2a2f9d-0x1}))_0x39a589[_0x42b6('0x37')][_0x42b6('0xb')](_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x5b')](_0x37e5ba));},{'priority':_0x42b6('0xa5')}),_0x3340f3['on'](_0x42b6('0x16'),(_0x4b958b,_0x255226)=>{const [_0x301628,_0x4ffc63={}]=_0x255226;if(!_0x39a589)return;const _0x52b7fe=_0x4ffc63['at']||0x0,_0x175079=_0x4ffc63[_0x42b6('0x3a')]||0x1;_0x39a589[_0x42b6('0x2e')]=new Array(_0x175079)[_0x42b6('0x5e')](_0x52b7fe)['map']((_0x1dc609,_0x5805ff)=>_0x1dc609+_0x5805ff);for(const {cell:_0x18ec84}of _0x3340f3[_0x42b6('0x69')](_0x301628,{'startRow':_0x52b7fe,'endRow':_0x52b7fe+_0x175079-0x1}))_0x39a589[_0x42b6('0x20')][_0x42b6('0xb')](_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x5b')](_0x18ec84));},{'priority':_0x42b6('0xa5')}),_0x281083[_0x42b6('0x55')]['registerDescriptionCallback'](_0x54279f=>{if(_0x54279f[_0x42b6('0x5a')]&&_0x54279f['subType'][_0x42b6('0x78')]('tablePaste'))return _0x54279f['previous']?{}:{'type':'insertion','content':_0x8e66e5(_0x2bc90a['locale'],'*Replace\x20table\x20cells*')};});const _0x62ab89=()=>{};for(const _0x266e2e of[_0x42b6('0x3e'),_0x42b6('0x83'),_0x42b6('0x1c'),_0x42b6('0x6e')])_0x281083['_suggestionFactory'][_0x42b6('0x9c')](_0x42b6('0x35'),_0x266e2e,_0x42b6('0x5f'),_0x62ab89),_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')](_0x42b6('0x51'),_0x266e2e,'join',_0x62ab89);_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')]('formatBlock',_0x42b6('0x6e'),'discard',_0x62ab89),_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')]('formatBlock',_0x42b6('0x6e'),'accept',(_0x2df1d0,_0x52fbd1,_0x4d5109)=>{const _0x224131=_0x2df1d0[_0x42b6('0x75')](_0x157393=>_0x157393[_0x42b6('0x39')]())['filter'](_0x13375c=>_0x13375c),_0x5186c2=new Map(_0x224131[_0x42b6('0x75')](_0x1555b4=>[_0x1555b4,null]));if(_0x39a589)for(const {element:_0xa889f7,attributes:_0x3e1bdd}of _0x39a589[_0x42b6('0x53')])_0x3e1bdd&&_0x5186c2[_0x42b6('0x6a')](_0xa889f7,_0x3e1bdd);else{if(_0x4d5109&&_0x4d5109['markerAttributes'])for(const [_0x4eefa3,_0x1df1b1]of Object[_0x42b6('0x87')](_0x4d5109['markerAttributes'])){const _0x148a21=_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x8e')]['get'](_0x4eefa3),_0x36f55b=_0x148a21?_0x148a21[_0x42b6('0x8c')]()['getContainedElement']():null;_0x36f55b&&_0x5186c2[_0x42b6('0x6a')](_0x36f55b,_0x1df1b1);}}_0x2bc90a[_0x42b6('0x0')][_0x42b6('0xd')](_0x59c0b6=>{for(const [_0x4a2aa2,_0xf21325]of _0x5186c2)_0x59c0b6[_0x42b6('0x8f')]({...ce,..._0xf21325},_0x4a2aa2);});});const _0x385c4d=(_0x12cd49,_0x30126e)=>{_0x281083['_suggestionFactory']['registerCustomCallback'](_0x12cd49,_0x42b6('0x3e'),_0x30126e,(_0x264b63,_0x165d1c,_0x11ae3d)=>{_0x2bc90a['model'][_0x42b6('0xd')](_0x13723d=>{const _0x4ba75e=[];for(const _0x7ca36 of _0x264b63){const _0x136982=_0x7ca36[_0x42b6('0x33')]['nodeAfter'];_0x136982['is'](_0x42b6('0xa2'),_0x42b6('0x44'))&&_0x4ba75e[_0x42b6('0xb')](_0x136982);}_0x281083['_suggestionFactory'][_0x42b6('0x2b')](_0x12cd49,null,_0x30126e)(_0x264b63,_0x165d1c,_0x11ae3d);for(const _0x5ef74b of _0x4ba75e)'$graveyard'!=_0x5ef74b[_0x42b6('0x98')][_0x42b6('0x81')]&&_0x13723d[_0x42b6('0x3c')](_0x5ef74b);});});};_0x385c4d(_0x42b6('0x35'),_0x42b6('0x61')),_0x385c4d(_0x42b6('0x35'),_0x42b6('0x42')),_0x385c4d(_0x42b6('0x51'),_0x42b6('0x61')),_0x385c4d(_0x42b6('0x51'),'discard'),_0x281083['_suggestionFactory'][_0x42b6('0x9c')](_0x42b6('0x35'),'tablePasteRow',_0x42b6('0x42'),_0x279c96=>{const _0x2a6952=_0x279c96[_0x42b6('0x75')](_0x1ce40f=>_0x1ce40f[_0x42b6('0x39')]()),_0x54ee75=_0x2a6952[0x0][_0x42b6('0xf')](_0x42b6('0x7f')),{minRow:_0xab9c5d,maxRow:_0x5626c7}=_0x507b34[_0x42b6('0x71')](_0x2a6952);_0x3340f3[_0x42b6('0x1b')](_0x54ee75,{'at':_0xab9c5d,'rows':_0x5626c7-_0xab9c5d+0x1});}),_0x281083[_0x42b6('0x50')][_0x42b6('0x9c')](_0x42b6('0x35'),_0x42b6('0x83'),_0x42b6('0x42'),_0x339cfb=>{const _0x2768a0=_0x339cfb[_0x42b6('0x75')](_0xd047fd=>_0xd047fd[_0x42b6('0x39')]()),_0x2df974=_0x2768a0[0x0][_0x42b6('0xf')](_0x42b6('0x7f')),{minColumn:_0xdeb7b1,maxColumn:_0x5da46a}=_0x507b34[_0x42b6('0x71')](_0x2768a0);_0x3340f3[_0x42b6('0x24')](_0x2df974,{'at':_0xdeb7b1,'columns':_0x5da46a-_0xdeb7b1+0x1});});const _0x5573f4=(_0x136d88,_0x3beb92)=>{if(!_0x3beb92[_0x42b6('0x5a')]||!_0x3beb92[_0x42b6('0x5a')][_0x42b6('0x78')](_0x42b6('0x3e')))return;const _0x4a1baa=_0x3beb92[_0x42b6('0x3')][_0x42b6('0x9f')],_0x39ade0=_0x281083[_0x42b6('0x25')]()[_0x42b6('0x6f')](_0x316b23=>_0x316b23['isInContent']&&_0x316b23[_0x42b6('0x3')]&&_0x316b23[_0x42b6('0x3')][_0x42b6('0x9f')]==_0x4a1baa);_0x39ade0[_0x42b6('0x91')]&&_0x3beb92[_0x42b6('0x4b')]()[_0x42b6('0x91')]!=_0x39ade0[_0x42b6('0x91')]&&_0x39ade0[_0x42b6('0x65')]((_0x37f236,_0x2ba30c)=>(_0x37f236[_0x42b6('0x7e')]=_0x2ba30c,_0x2ba30c[_0x42b6('0x5d')]=_0x37f236,_0x2ba30c));};function _0x229f52(_0x1cb283,{showActiveMarker:_0x5f42e4=!0x0}={}){const {id:_0x44e635}=_0x281083['_splitMarkerName'](_0x1cb283['markerName']),_0x1044ef=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d79cf=_0x281083[_0x42b6('0x28')][_0x42b6('0x86')](_0x1cb283[_0x42b6('0xa1')]);return _0x1d79cf&&_0x1044ef['push'](_0x42b6('0x84')),{'classes':_0x1044ef,'attributes':{'data-suggestion':_0x44e635},'priority':_0x1d79cf&&_0x5f42e4?0xbc2:0xbb8};}_0x281083['on'](_0x42b6('0x34'),_0x5573f4,{'priority':'high'}),_0x281083['on'](_0x42b6('0x88'),_0x5573f4,{'priority':_0x42b6('0x9d')}),_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x4e')]['registerPostFixer'](()=>{let _0xfc7ca6=!0x1;const _0x13e65b=Array[_0x42b6('0x7d')](_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x4e')]['differ'][_0x42b6('0x60')]());for(const {name:_0x41f20e,data:_0x2fd3ea}of _0x13e65b){const {group:_0x1555cc,type:_0x4a2c49,id:_0x2984f6}=_0x281083[_0x42b6('0x23')](_0x41f20e);if(_0x42b6('0x94')!=_0x1555cc||_0x42b6('0x51')!=_0x4a2c49||_0x2fd3ea[_0x42b6('0x57')])continue;if(!_0x281083['hasSuggestion'](_0x2984f6))continue;const _0x28be12=_0x281083[_0x42b6('0x2f')](_0x2984f6)[_0x42b6('0x6d')](),_0x26f847=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')]('Users')['me'];for(const _0x5ebf99 of _0x281083[_0x42b6('0x25')]()){if(!_0x5ebf99['isInContent']||_0x5ebf99[_0x42b6('0x30')]!=_0x26f847)continue;if('formatBlock'!=_0x5ebf99[_0x42b6('0x29')]||'tablePasteCell'!=_0x5ebf99['subType'])continue;if(_0x5ebf99[_0x42b6('0x6d')]()[_0x42b6('0x93')](_0xd60028=>_0x28be12['some'](_0x5da1a4=>_0x5da1a4[_0x42b6('0x2d')](_0xd60028,!0x0))))for(const _0x31de09 of _0x5ebf99[_0x42b6('0x4b')]())_0x31de09[_0x42b6('0x12')]&&(_0x31de09[_0x42b6('0x42')](),_0xfc7ca6=!0x0);}}return _0xfc7ca6;}),_0x2bc90a[_0x42b6('0x0')][_0x42b6('0x4e')][_0x42b6('0x32')](_0x3abf3c=>{const _0x28905e=_0x2bc90a[_0x42b6('0x1f')]['get'](_0x42b6('0x2c'));if(!_0x28905e||!_0x28905e[_0x42b6('0x77')][_0x42b6('0x54')](_0x3abf3c[_0x42b6('0x66')]))return!0x1;let _0x233f31=!0x1;const _0x4109db=_0x2bc90a[_0x42b6('0x19')][_0x42b6('0x8b')](_0x42b6('0x1a'))['me'],_0x4561bd=_0x2bc90a[_0x42b6('0x0')]['document']['differ']['getChanges'](),_0x39dcd0=Array['from'](_0x2bc90a['model']['document'][_0x42b6('0x49')][_0x42b6('0x60')]())[_0x42b6('0x6f')](({name:_0x312ba1,data:_0x31f633})=>{const {group:_0x2e71f1,subType:_0x1690c1,authorId:_0x21d88b}=_0x281083['_splitMarkerName'](_0x312ba1);return _0x42b6('0x94')==_0x2e71f1&&_0x42b6('0x3e')==_0x1690c1&&_0x21d88b==_0x4109db['id']&&!_0x31f633[_0x42b6('0x57')];});for(const _0x471ef3 of _0x4561bd){if(_0x42b6('0x21')!=_0x471ef3[_0x42b6('0x29')]||'tableCellSuggestion'!=_0x471ef3[_0x42b6('0xa3')]||0x1!=_0x471ef3['length'])continue;const _0x6facf9=_0x3abf3c['createRange'](_0x471ef3[_0x42b6('0x4a')],_0x471ef3[_0x42b6('0x4a')][_0x42b6('0x99')](0x1));if(!_0x39dcd0[_0x42b6('0x1')](({data:_0x1e0f02})=>_0x1e0f02[_0x42b6('0x52')][_0x42b6('0x76')](_0x6facf9)))for(const {name:_0x471cfd,data:_0x2c602c}of _0x39dcd0)if(_0x6facf9[_0x42b6('0x2d')](_0x2c602c[_0x42b6('0x52')])){_0x3abf3c['updateMarker'](_0x471cfd,{'range':_0x6facf9}),_0x233f31=!0x0;break;}}return _0x233f31;}),_0x2bc90a['model'][_0x42b6('0x4e')]['registerPostFixer'](_0x4ff9ba=>{let _0x7bfe78=!0x1;const _0x18eb3e=_0x2bc90a['plugins']['get'](_0x42b6('0x1a'))['me'],_0x5c5214=_0x281083[_0x42b6('0x25')]()[_0x42b6('0x6f')](_0x2eabe5=>_0x2eabe5[_0x42b6('0x12')]&&_0x2eabe5[_0x42b6('0x30')]==_0x18eb3e),_0x417e6b=new Set(),_0x540923=new Set();for(const _0x29b9bf of _0x5c5214)if(_0x42b6('0x3e')==_0x29b9bf[_0x42b6('0x5a')])for(const _0x58a542 of _0x29b9bf[_0x42b6('0x3f')]()){const _0x4d5bf2=_0x58a542[_0x42b6('0x8c')]()[_0x42b6('0x39')]();if(_0x4d5bf2){if(_0x4d5bf2['is'](_0x42b6('0xa2'),_0x42b6('0x44'))&&fe(_0x4d5bf2)){_0x29b9bf[_0x42b6('0x9e')](_0x58a542['name']),_0x417e6b[_0x42b6('0x5')](_0x4d5bf2),_0x7bfe78=!0x0;const _0x394069=_0x4d5bf2[_0x42b6('0x11')],_0x29235e=_0x4d5bf2['previousSibling'],_0x28a405=_0x394069&&_0x394069['is'](_0x42b6('0xa2'),_0x42b6('0x44')),_0x3590e3=_0x29235e&&_0x29235e['is'](_0x42b6('0xa2'),_0x42b6('0x44'));_0x28a405&&!_0x417e6b['has'](_0x394069)&&_0x540923[_0x42b6('0x5')](_0x394069),_0x3590e3&&!_0x417e6b['has'](_0x29235e)&&_0x540923[_0x42b6('0x5')](_0x29235e);}else _0x4d5bf2['is']('element','paragraph')&&_0x4d5bf2[_0x42b6('0x7c')]&&(_0x29b9bf[_0x42b6('0x9e')](_0x58a542[_0x42b6('0xa3')]),_0x7bfe78=!0x0);}}else{if(_0x42b6('0x6e')==_0x29b9bf[_0x42b6('0x5a')]){if(!_0x29b9bf['attributes']||!_0x29b9bf[_0x42b6('0x3')]['tablePasteChainId'])continue;const _0x38bdaf=_0x29b9bf[_0x42b6('0x3')][_0x42b6('0xc')];if(_0x38bdaf&&Object[_0x42b6('0x7')](_0x38bdaf)[_0x42b6('0x91')])continue;const _0x469519=_0x29b9bf[_0x42b6('0x3')]['tablePasteChainId'];let _0x14e568=!0x0,_0x36c75c=!0x0;for(const _0x3422f4 of _0x5c5214)if(_0x3422f4[_0x42b6('0x5a')]&&_0x3422f4[_0x42b6('0x5a')]['startsWith'](_0x42b6('0x3e'))){if(!_0x3422f4[_0x42b6('0x3')][_0x42b6('0x9f')]){_0x36c75c=!0x1;break;}if(_0x3422f4['id']!=_0x29b9bf['id']&&_0x3422f4[_0x42b6('0x3')][_0x42b6('0x9f')]==_0x469519){_0x14e568=!0x1;break;}}_0x36c75c&&_0x14e568&&(_0x29b9bf[_0x42b6('0x2')](),_0x7bfe78=!0x0);}}for(const _0x243e34 of _0x417e6b)_0x4ff9ba[_0x42b6('0x73')](_0x243e34);for(const _0x3482cd of _0x540923)_0x4ff9ba['unwrap'](_0x3482cd);return _0x7bfe78;}),_0x2bc90a[_0x42b6('0x59')][_0x42b6('0x9a')](_0x42b6('0x18'))['markerToHighlight']({'model':_0x42b6('0x70'),'view':_0x229f52,'converterPriority':_0x42b6('0x9d')}),_0x2bc90a[_0x42b6('0x59')][_0x42b6('0x9a')](_0x42b6('0x89'))[_0x42b6('0x85')]({'model':_0x42b6('0x70'),'view':(_0x1a179c,_0x364ded)=>{if(_0x364ded[_0x42b6('0x96')][_0x42b6('0x45')])return _0x229f52(_0x1a179c,{'showActiveMarker':!0x1});},'converterPriority':_0x42b6('0x9d')});const _0x26937b=_0x2bc90a[_0x42b6('0x7b')][_0x42b6('0x95')];this[_0x42b6('0x4d')](_0x26937b[_0x42b6('0x4e')],_0x42b6('0x80'),(_0x2452ba,_0x49a547)=>{const _0x577555=[];for(const _0x376697 of _0x26937b[_0x42b6('0x9b')](_0x49a547[_0x42b6('0x9')])[_0x42b6('0xa6')]())_0x376697['is']('element',_0x42b6('0x17'))&&_0x577555['push'](_0x376697);_0x26937b[_0x42b6('0xd')](_0x5a23c4=>{for(const _0x1bcc1f of _0x577555)_0x5a23c4[_0x42b6('0x10')](_0x5a23c4[_0x42b6('0x9b')](_0x1bcc1f),_0x5a23c4['createPositionBefore'](_0x1bcc1f)),_0x5a23c4[_0x42b6('0x73')](_0x1bcc1f);});});}}function fe(_0x4e342a){if(_0x4e342a[_0x42b6('0x7c')])return!0x0;const _0x45bcfe=_0x4e342a[_0x42b6('0x3b')](0x0);return _0x45bcfe['is'](_0x42b6('0xa2'),_0x42b6('0x2a'))&&_0x45bcfe[_0x42b6('0x7c')];}function ue(_0x3a864e,_0x36065c={},_0x13e79f){for(const {isAnchor:_0x18f632,cellHeight:_0x5328d2,cellWidth:_0x3d6100}of _0x13e79f[_0x42b6('0x69')](_0x3a864e,{'includeAllSlots':!0x0,..._0x36065c}))if(!_0x18f632||0x1!=_0x5328d2||0x1!=_0x3d6100)return!0x1;return!0x0;}
|
|
23
|
+
const _0x248c=['editing','ck-suggestion-marker','push','tablePasteColumn','deletionRanges','getSuggestions','wrap','createRange','tablePasteCell','registerCustomCallback','suggestion-td','markerToHighlight','from','removeMarker','columnInsertionIndexes','dataDowncast','has','document','add','some','remove','createPositionBefore','tableCellBorderColor','getAttributes','low','getChild','reduce','redo','deletion','_splitMarkerName','end','selection','isEqual','clipboardOutput','high','_createdBatches','stop','map','updateMarker','*Replace\x20table\x20cells*','differ','suggestionUnloaded','model','schema','ck-suggestion-marker--active','options','root','length','getRange','tableCellSuggestion','element','every','removeRows','getAllAdjacentSuggestions','getContainedElement','set','tableCell','insertion','nextSibling','entries','for','return','TableClipboard','discard','locale','_getCoordsForCells','get','next','fromEntries','requires','join','start','getChildren','register','move','endColumn','plugins','includes','author','getColumns','getSelectionAffectedTableCells','filter','fill','attributes','type','oldRange','activeMarkers','getColumnIndexes','rowInsertionIndexes','cells','isInContent','first','name','formatBlock','hasSuggestion','createRangeOn','tablePaste','_tablePostFixingSubtypes','findAncestor','value','createRangeIn','suggestion:formatBlock:tablePasteCell','_isForcedDefaultExecutionBlock','markerName','tablePasteRow','removeColumns','getRanges','accept','getChangedMarkers','forceDefaultExecution','insertContent','getMarkers','cell','getChanges','listenTo','previousSibling','insert','tableCellHorizontalAlignment','tableCellPadding','tableCellBackgroundColor','keys','startsWith','editor','Users','insertColumns','containsRange','tablePasteChainId','getSuggestionCallback','_suggestionFactory','find','row','createTableWalker','afterInit','nodeAfter','rows','commands','ck-suggestion-marker-insertion','createElement','suggestion','previous','last','registerDescriptionCallback','insertionRanges','getItems','isEmpty','tableCellBorderWidth','$graveyard','markMultiRangeInsertion','trackChanges','unwrap','table','change','columns','position','registerPostFixer','getRows','_replaceTableSlotCell','getRowIndexes','markerAttributes','setAttribute','conversion','editingDowncast','newRange','subType','setAttributes'];(function(_0x3b84d2,_0x248ca2){const _0x591f38=function(_0x6d9624){while(--_0x6d9624){_0x3b84d2['push'](_0x3b84d2['shift']());}};_0x591f38(++_0x248ca2);}(_0x248c,0x15e));const _0x591f=function(_0x3b84d2,_0x248ca2){_0x3b84d2=_0x3b84d2-0x0;let _0x591f38=_0x248c[_0x3b84d2];return _0x591f38;};import{getTranslation as _0x12b938}from'../utils/common-translations';import{Plugin as _0x29f0b1}from'ckeditor5/src/core';import _0x5e4f7b from'./table';import{uid as _0xe3e488,priorities as _0x550201}from'ckeditor5/src/utils';const oe=[_0x591f('0x7d'),_0x591f('0x2'),'tableCellBorderStyle',_0x591f('0x61'),'tableCellVerticalAlignment',_0x591f('0x63'),_0x591f('0x62')],ne=Object[_0x591f('0x30')](oe['map'](_0x28f6dc=>[_0x28f6dc,null]));export default class lt extends _0x29f0b1{static get[_0x591f('0x31')](){return[_0x5e4f7b];}[_0x591f('0x70')](){const _0x1eb6a0=this[_0x591f('0x66')];if(!_0x1eb6a0[_0x591f('0x38')][_0x591f('0xa1')]('TableClipboard'))return;const _0x552750=_0x1eb6a0['plugins'][_0x591f('0x2e')]('TrackChangesEditing'),_0x3efc54=_0x1eb6a0[_0x591f('0x38')][_0x591f('0x2e')]('TableUtils'),_0x33f279=_0x1eb6a0['plugins'][_0x591f('0x2e')](_0x5e4f7b),_0x531494=_0x1eb6a0[_0x591f('0x38')][_0x591f('0x2e')](_0x591f('0x2a'));_0x33f279[_0x591f('0x4d')]['push'](_0x591f('0x54'),'tablePasteColumn'),_0x1eb6a0['model'][_0x591f('0x17')][_0x591f('0x35')](_0x591f('0x1d'),{'allowIn':'tableCell','allowContentOf':_0x591f('0x24'),'isLimit':!0x0}),_0x1eb6a0[_0x591f('0x8c')]['elementToElement']({'model':_0x591f('0x1d'),'view':_0x591f('0x9b')});let _0xfe0770=null;_0x1eb6a0[_0x591f('0x16')]['on'](_0x591f('0x5a'),(_0x11e7b7,_0x4261fb)=>{const [_0x93026c,_0x57c001]=_0x4261fb,_0x459b50=_0x4261fb[_0x4261fb['length']-0x1];_0x459b50&&_0x459b50[_0x591f('0x59')]||_0x552750[_0x591f('0x52')]||this[_0x591f('0x66')][_0x591f('0x73')]['get'](_0x591f('0x80'))[_0x591f('0x4f')]&&function(_0x798638,_0x583773,_0xe8de6e,_0x5f5878,_0x30595b){if(_0x583773&&!_0x583773['is']('documentSelection'))return!0x1;const _0x2307cb=_0x30595b['getTableIfOnlyTableInContent'](_0x798638,_0xe8de6e);if(!_0x2307cb||!se(_0x2307cb,null,_0x5f5878))return!0x1;const _0x43c22d=_0x5f5878[_0x591f('0x3c')](_0xe8de6e[_0x591f('0xa2')][_0x591f('0xb')]);if(!_0x43c22d[_0x591f('0x1b')])return!0x1;const _0x409d71=_0x43c22d[0x0][_0x591f('0x4e')](_0x591f('0x82')),_0x297745=_0x5f5878[_0x591f('0x89')](_0x43c22d),_0x56bec9=_0x5f5878[_0x591f('0x43')](_0x43c22d),_0x370d41={'startRow':_0x297745[_0x591f('0x47')],'endRow':_0x297745[_0x591f('0x78')],'startColumn':_0x56bec9[_0x591f('0x47')],'endColumn':_0x56bec9[_0x591f('0x78')]};return 0x1==_0x43c22d[_0x591f('0x1b')]&&(_0x370d41['endRow']+=_0x5f5878[_0x591f('0x87')](_0x2307cb)-0x1,_0x370d41[_0x591f('0x37')]+=_0x5f5878[_0x591f('0x3b')](_0x2307cb)-0x1),se(_0x409d71,_0x370d41,_0x5f5878);}(_0x93026c,_0x57c001,_0x1eb6a0[_0x591f('0x16')],_0x3efc54,_0x531494)&&(_0x11e7b7[_0x591f('0x10')](),_0xfe0770={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1eb6a0['model'][_0x591f('0x83')](()=>{_0x1eb6a0[_0x591f('0x16')][_0x591f('0x5a')](_0x4261fb[0x0],_0x4261fb[0x1],_0x4261fb[0x2],_0x4261fb[0x3],{'forceDefaultExecution':!0x0});const _0x566a0f=_0xe3e488(),{rowInsertionRanges:_0x17f918,columnInsertionRanges:_0x4788da,insertionRanges:_0x1bdb2e,deletionRanges:_0x36eaa0,cells:_0x151c55}=_0xfe0770;_0x17f918['length']&&_0x552750[_0x591f('0x7f')](_0x17f918,_0x591f('0x54'),{'tablePasteChainId':_0x566a0f}),_0x4788da['length']&&_0x552750['markMultiRangeInsertion'](_0x4788da,_0x591f('0x94'),{'tablePasteChainId':_0x566a0f}),_0x1bdb2e[_0x591f('0x1b')]&&_0x552750[_0x591f('0x7f')](_0x1bdb2e,_0x591f('0x4c'),{'tablePasteChainId':_0x566a0f,'skipNestingCheck':!0x0}),_0x36eaa0[_0x591f('0x1b')]&&_0x552750['markMultiRangeDeletion'](_0x36eaa0,_0x591f('0x4c'),{'tablePasteChainId':_0x566a0f,'skipNestingCheck':!0x0});const _0x256507=_0x552750['markMultiRangeBlockFormat'](_0x151c55[_0x591f('0x11')](({element:_0x531c17})=>_0x531c17),{'formatGroupId':_0xe3e488()},[],_0x591f('0x99'),{'tablePasteChainId':_0x566a0f});if(_0x256507){const _0x950231=_0x256507[_0x591f('0x5b')](),_0x592da7=[];for(const {element:_0x1032a2,attributes:_0xf945bc}of _0x151c55){if(!_0xf945bc)continue;const _0xaa4ae5=_0x1eb6a0[_0x591f('0x16')][_0x591f('0x4b')](_0x1032a2),_0x3c0d00=_0x950231[_0x591f('0x6d')](_0x40e610=>_0x40e610[_0x591f('0x1c')]()[_0x591f('0xc')](_0xaa4ae5));_0x3c0d00&&_0x592da7['push']([_0x3c0d00[_0x591f('0x48')],_0xf945bc]);}_0x592da7[_0x591f('0x1b')]&&_0x256507[_0x591f('0x8b')]('markerAttributes',Object[_0x591f('0x30')](_0x592da7));}_0xfe0770=null;}));},{'priority':_0x550201['high']+0xa}),_0x1eb6a0[_0x591f('0x38')][_0x591f('0x2e')](_0x591f('0x2a'))['on'](_0x591f('0x88'),(_0x489223,_0x1ed45f)=>{const [_0x19631f,_0x5952b4,,_0x2b586e]=_0x1ed45f;if(!_0xfe0770)return;_0x489223[_0x591f('0x10')]();const _0x13e551=_0x19631f[_0x591f('0x5c')],_0x2296ba=_0x5952b4,_0xdb453f=le(_0x13e551),_0x3793dd=le(_0x2296ba);_0x489223[_0x591f('0x29')]=_0x13e551;let _0xbeea0f=null,_0x5869f2=null;if(_0x3793dd||_0xdb453f){if(_0xdb453f&&!_0x3793dd){_0x2b586e[_0x591f('0x0')](_0x13e551[_0x591f('0x5')](0x0));for(const _0x331a7b of Array[_0x591f('0x9d')](_0x2296ba['getChildren']()))_0x2b586e[_0x591f('0x60')](_0x331a7b,_0x13e551,_0x591f('0xa'));const _0x51273c=_0xfe0770[_0x591f('0x44')][_0x591f('0x39')](_0x19631f[_0x591f('0x6e')]),_0x283ac9=_0xfe0770[_0x591f('0x9f')]['includes'](_0x19631f['column']);_0x51273c||_0x283ac9||(_0xbeea0f=_0x2b586e[_0x591f('0x50')](_0x13e551));}else _0x3793dd&&!_0xdb453f&&(_0x5869f2=_0x2b586e[_0x591f('0x50')](_0x13e551));}else{const _0x24da61=_0x2b586e['createElement'](_0x591f('0x1d')),_0x1864c0=_0x2b586e[_0x591f('0x75')](_0x591f('0x1d'));_0x2b586e[_0x591f('0x97')](_0x2b586e[_0x591f('0x50')](_0x13e551),_0x1864c0),_0x2b586e[_0x591f('0x60')](_0x24da61,_0x13e551,0x0);for(const _0x38f149 of Array[_0x591f('0x9d')](_0x2296ba[_0x591f('0x34')]()))_0x2b586e[_0x591f('0x60')](_0x38f149,_0x24da61,_0x591f('0xa'));_0xbeea0f=_0x2b586e[_0x591f('0x4b')](_0x24da61),_0x5869f2=_0x2b586e[_0x591f('0x4b')](_0x1864c0);}const _0x228cd9=Array[_0x591f('0x9d')](_0x2296ba[_0x591f('0x3')]())[_0x591f('0x3d')](([_0x4048f5])=>oe[_0x591f('0x39')](_0x4048f5));_0xfe0770[_0x591f('0x45')]['push']({'element':_0x13e551,'attributes':_0x228cd9[_0x591f('0x1b')]?Object[_0x591f('0x30')](_0x228cd9):null}),_0xbeea0f&&_0xfe0770[_0x591f('0x7a')]['push'](_0xbeea0f),_0x5869f2&&_0xfe0770[_0x591f('0x95')][_0x591f('0x93')](_0x5869f2);},{'priority':_0x591f('0xe')}),_0x3efc54['on'](_0x591f('0x68'),(_0x5d624a,_0x58dba2)=>{const [_0x430292,_0x395b62={}]=_0x58dba2;if(!_0xfe0770)return;const _0x1163ff=_0x395b62['at']||0x0,_0x57361d=_0x395b62[_0x591f('0x84')]||0x1;_0xfe0770[_0x591f('0x9f')]=new Array(_0x57361d)[_0x591f('0x3e')](_0x1163ff)[_0x591f('0x11')]((_0x5d461c,_0x4d03d3)=>_0x5d461c+_0x4d03d3);for(const {cell:_0x44cea4}of _0x3efc54['createTableWalker'](_0x430292,{'startColumn':_0x1163ff,'endColumn':_0x1163ff+_0x57361d-0x1}))_0xfe0770['columnInsertionRanges']['push'](_0x1eb6a0['model']['createRangeOn'](_0x44cea4));},{'priority':_0x591f('0x4')}),_0x3efc54['on']('insertRows',(_0x57b313,_0x4f4f3b)=>{const [_0x2f8ece,_0x4483cb={}]=_0x4f4f3b;if(!_0xfe0770)return;const _0x2abcea=_0x4483cb['at']||0x0,_0x2d9b45=_0x4483cb[_0x591f('0x72')]||0x1;_0xfe0770[_0x591f('0x44')]=new Array(_0x2d9b45)[_0x591f('0x3e')](_0x2abcea)['map']((_0x4f12f3,_0x3bd55a)=>_0x4f12f3+_0x3bd55a);for(const {cell:_0xb5f29c}of _0x3efc54[_0x591f('0x6f')](_0x2f8ece,{'startRow':_0x2abcea,'endRow':_0x2abcea+_0x2d9b45-0x1}))_0xfe0770['rowInsertionRanges'][_0x591f('0x93')](_0x1eb6a0[_0x591f('0x16')][_0x591f('0x4b')](_0xb5f29c));},{'priority':_0x591f('0x4')}),_0x552750['_descriptionFactory'][_0x591f('0x79')](_0x3c550e=>{if(_0x3c550e[_0x591f('0x8f')]&&_0x3c550e[_0x591f('0x8f')][_0x591f('0x65')](_0x591f('0x4c')))return _0x3c550e['previous']?{}:{'type':'insertion','content':_0x12b938(_0x1eb6a0[_0x591f('0x2c')],_0x591f('0x13'))};});const _0x43a301=()=>{};for(const _0x2682d6 of['tablePaste',_0x591f('0x94'),'tablePasteRow',_0x591f('0x99')])_0x552750['_suggestionFactory'][_0x591f('0x9a')](_0x591f('0x25'),_0x2682d6,_0x591f('0x32'),_0x43a301),_0x552750[_0x591f('0x6c')][_0x591f('0x9a')](_0x591f('0x8'),_0x2682d6,'join',_0x43a301);_0x552750[_0x591f('0x6c')]['registerCustomCallback'](_0x591f('0x49'),_0x591f('0x99'),_0x591f('0x2b'),_0x43a301),_0x552750[_0x591f('0x6c')][_0x591f('0x9a')](_0x591f('0x49'),'tablePasteCell','accept',(_0x49a36a,_0x19c635,_0x5be9f4)=>{const _0x87e493=_0x49a36a[_0x591f('0x11')](_0x4f9ff2=>_0x4f9ff2['getContainedElement']())[_0x591f('0x3d')](_0x4bfd13=>_0x4bfd13),_0x162918=new Map(_0x87e493[_0x591f('0x11')](_0x4a1681=>[_0x4a1681,null]));if(_0xfe0770)for(const {element:_0x2e9f5b,attributes:_0x39608}of _0xfe0770[_0x591f('0x45')])_0x39608&&_0x162918['set'](_0x2e9f5b,_0x39608);else{if(_0x5be9f4&&_0x5be9f4[_0x591f('0x8a')])for(const [_0x419df4,_0x1044ab]of Object[_0x591f('0x27')](_0x5be9f4['markerAttributes'])){const _0x23b32e=_0x1eb6a0['model']['markers'][_0x591f('0x2e')](_0x419df4),_0x2b5815=_0x23b32e?_0x23b32e[_0x591f('0x1c')]()['getContainedElement']():null;_0x2b5815&&_0x162918[_0x591f('0x23')](_0x2b5815,_0x1044ab);}}_0x1eb6a0[_0x591f('0x16')][_0x591f('0x83')](_0x128772=>{for(const [_0x472cd2,_0x49740e]of _0x162918)_0x128772[_0x591f('0x90')]({...ne,..._0x49740e},_0x472cd2);});});const _0x329902=(_0x5c06c9,_0x19a0c6)=>{_0x552750[_0x591f('0x6c')][_0x591f('0x9a')](_0x5c06c9,_0x591f('0x4c'),_0x19a0c6,(_0x921c0b,_0x47919f,_0x455475)=>{_0x1eb6a0[_0x591f('0x16')][_0x591f('0x83')](_0x5d031b=>{const _0x1dadc5=[];for(const _0x25aea2 of _0x921c0b){const _0x133a72=_0x25aea2[_0x591f('0x33')][_0x591f('0x71')];_0x133a72['is'](_0x591f('0x1e'),_0x591f('0x1d'))&&_0x1dadc5['push'](_0x133a72);}_0x552750[_0x591f('0x6c')][_0x591f('0x6b')](_0x5c06c9,null,_0x19a0c6)(_0x921c0b,_0x47919f,_0x455475);for(const _0x3d1fec of _0x1dadc5)_0x591f('0x7e')!=_0x3d1fec[_0x591f('0x1a')]['rootName']&&_0x5d031b[_0x591f('0x81')](_0x3d1fec);});});};_0x329902(_0x591f('0x25'),'accept'),_0x329902(_0x591f('0x25'),_0x591f('0x2b')),_0x329902(_0x591f('0x8'),_0x591f('0x57')),_0x329902('deletion','discard'),_0x552750[_0x591f('0x6c')]['registerCustomCallback'](_0x591f('0x25'),_0x591f('0x54'),_0x591f('0x2b'),_0x55fd76=>{const _0x3720ad=_0x55fd76['map'](_0xa91ffa=>_0xa91ffa[_0x591f('0x22')]()),_0x42ea47=_0x3720ad[0x0][_0x591f('0x4e')]('table'),{minRow:_0x9e86fc,maxRow:_0x5f4161}=_0x33f279[_0x591f('0x2d')](_0x3720ad);_0x3efc54[_0x591f('0x20')](_0x42ea47,{'at':_0x9e86fc,'rows':_0x5f4161-_0x9e86fc+0x1});}),_0x552750['_suggestionFactory'][_0x591f('0x9a')](_0x591f('0x25'),_0x591f('0x94'),_0x591f('0x2b'),_0x1d8176=>{const _0x550120=_0x1d8176[_0x591f('0x11')](_0x253d11=>_0x253d11[_0x591f('0x22')]()),_0x26ff6b=_0x550120[0x0]['findAncestor'](_0x591f('0x82')),{minColumn:_0x2fd80d,maxColumn:_0x5ae055}=_0x33f279[_0x591f('0x2d')](_0x550120);_0x3efc54[_0x591f('0x55')](_0x26ff6b,{'at':_0x2fd80d,'columns':_0x5ae055-_0x2fd80d+0x1});});const _0xe65957=(_0x1ad402,_0x467669)=>{if(!_0x467669[_0x591f('0x8f')]||!_0x467669['subType'][_0x591f('0x65')](_0x591f('0x4c')))return;const _0x1e7244=_0x467669[_0x591f('0x3f')][_0x591f('0x6a')],_0x154762=_0x552750[_0x591f('0x96')]()[_0x591f('0x3d')](_0x17400c=>_0x17400c[_0x591f('0x46')]&&_0x17400c[_0x591f('0x3f')]&&_0x17400c[_0x591f('0x3f')][_0x591f('0x6a')]==_0x1e7244);_0x154762[_0x591f('0x1b')]&&_0x467669[_0x591f('0x21')]()['length']!=_0x154762[_0x591f('0x1b')]&&_0x154762[_0x591f('0x6')]((_0x3318c1,_0x4591ea)=>(_0x3318c1[_0x591f('0x2f')]=_0x4591ea,_0x4591ea[_0x591f('0x77')]=_0x3318c1,_0x4591ea));};function _0x56eab2(_0x84d4a2,{showActiveMarker:_0x121ad7=!0x0}={}){const {id:_0x27e554}=_0x552750[_0x591f('0x9')](_0x84d4a2[_0x591f('0x53')]),_0x3fd6a5=[_0x591f('0x92'),_0x591f('0x74')],_0x24db52=_0x552750[_0x591f('0x42')][_0x591f('0x39')](_0x84d4a2[_0x591f('0x53')]);return _0x24db52&&_0x3fd6a5['push'](_0x591f('0x18')),{'classes':_0x3fd6a5,'attributes':{'data-suggestion':_0x27e554},'priority':_0x24db52&&_0x121ad7?0xbc2:0xbb8};}_0x552750['on']('suggestionLoaded',_0xe65957,{'priority':'high'}),_0x552750['on'](_0x591f('0x15'),_0xe65957,{'priority':_0x591f('0xe')}),_0x1eb6a0[_0x591f('0x16')][_0x591f('0xa2')][_0x591f('0x86')](()=>{let _0x4fd931=!0x1;const _0x5387ae=Array[_0x591f('0x9d')](_0x1eb6a0[_0x591f('0x16')][_0x591f('0xa2')][_0x591f('0x14')][_0x591f('0x58')]());for(const {name:_0x490b76,data:_0x3e5395}of _0x5387ae){const {group:_0x5b23f3,type:_0x202cb3,id:_0x465ed1}=_0x552750[_0x591f('0x9')](_0x490b76);if(_0x591f('0x76')!=_0x5b23f3||_0x591f('0x8')!=_0x202cb3||_0x3e5395[_0x591f('0x41')])continue;if(!_0x552750[_0x591f('0x4a')](_0x465ed1))continue;const _0x3cb96c=_0x552750['getSuggestion'](_0x465ed1)[_0x591f('0x56')](),_0xa9a961=_0x1eb6a0[_0x591f('0x38')]['get'](_0x591f('0x67'))['me'];for(const _0x38f5ce of _0x552750[_0x591f('0x96')]()){if(!_0x38f5ce[_0x591f('0x46')]||_0x38f5ce[_0x591f('0x3a')]!=_0xa9a961)continue;if(_0x591f('0x49')!=_0x38f5ce[_0x591f('0x40')]||'tablePasteCell'!=_0x38f5ce[_0x591f('0x8f')])continue;if(_0x38f5ce[_0x591f('0x56')]()[_0x591f('0x1f')](_0x3cafcb=>_0x3cb96c[_0x591f('0xa4')](_0x4f1735=>_0x4f1735[_0x591f('0x69')](_0x3cafcb,!0x0))))for(const _0x187a19 of _0x38f5ce['getAllAdjacentSuggestions']())_0x187a19[_0x591f('0x46')]&&(_0x187a19[_0x591f('0x2b')](),_0x4fd931=!0x0);}}return _0x4fd931;}),_0x1eb6a0['model'][_0x591f('0xa2')]['registerPostFixer'](_0x7d9674=>{const _0x73547c=_0x1eb6a0['commands'][_0x591f('0x2e')](_0x591f('0x7'));if(!_0x73547c||!_0x73547c[_0x591f('0xf')][_0x591f('0xa1')](_0x7d9674['batch']))return!0x1;let _0x33bcde=!0x1;const _0x434168=_0x1eb6a0['plugins'][_0x591f('0x2e')]('Users')['me'],_0x10cb0d=_0x1eb6a0['model'][_0x591f('0xa2')][_0x591f('0x14')][_0x591f('0x5d')](),_0xeb7848=Array['from'](_0x1eb6a0[_0x591f('0x16')][_0x591f('0xa2')][_0x591f('0x14')][_0x591f('0x58')]())[_0x591f('0x3d')](({name:_0x31ce05,data:_0x25e848})=>{const {group:_0x59a1da,subType:_0x4bb704,authorId:_0x446e6e}=_0x552750['_splitMarkerName'](_0x31ce05);return _0x591f('0x76')==_0x59a1da&&'tablePaste'==_0x4bb704&&_0x446e6e==_0x434168['id']&&!_0x25e848[_0x591f('0x41')];});for(const _0x4db6c1 of _0x10cb0d){if('insert'!=_0x4db6c1[_0x591f('0x40')]||_0x591f('0x1d')!=_0x4db6c1['name']||0x1!=_0x4db6c1[_0x591f('0x1b')])continue;const _0x3ce5ec=_0x7d9674[_0x591f('0x98')](_0x4db6c1[_0x591f('0x85')],_0x4db6c1[_0x591f('0x85')]['getShiftedBy'](0x1));if(!_0xeb7848[_0x591f('0x6d')](({data:_0x424d17})=>_0x424d17[_0x591f('0x8e')][_0x591f('0xc')](_0x3ce5ec)))for(const {name:_0x2db0e7,data:_0x560fe9}of _0xeb7848)if(_0x3ce5ec[_0x591f('0x69')](_0x560fe9[_0x591f('0x8e')])){_0x7d9674[_0x591f('0x12')](_0x2db0e7,{'range':_0x3ce5ec}),_0x33bcde=!0x0;break;}}return _0x33bcde;}),_0x1eb6a0[_0x591f('0x16')]['document'][_0x591f('0x86')](_0xd35451=>{let _0x45e933=!0x1;const _0x45f864=_0x1eb6a0[_0x591f('0x38')]['get'](_0x591f('0x67'))['me'],_0x35adda=_0x552750[_0x591f('0x96')]()['filter'](_0x15b719=>_0x15b719[_0x591f('0x46')]&&_0x15b719[_0x591f('0x3a')]==_0x45f864),_0x5b0b49=new Set(),_0x55786c=new Set();for(const _0xb87d42 of _0x35adda)if('tablePaste'==_0xb87d42[_0x591f('0x8f')])for(const _0x1ae4ac of _0xb87d42['getMarkers']()){const _0x184806=_0x1ae4ac[_0x591f('0x1c')]()['getContainedElement']();if(_0x184806){if(_0x184806['is']('element','tableCellSuggestion')&&le(_0x184806)){_0xb87d42['removeMarker'](_0x1ae4ac[_0x591f('0x48')]),_0x5b0b49[_0x591f('0xa3')](_0x184806),_0x45e933=!0x0;const _0x403807=_0x184806[_0x591f('0x26')],_0x17738a=_0x184806[_0x591f('0x5f')],_0x528d3e=_0x403807&&_0x403807['is'](_0x591f('0x1e'),_0x591f('0x1d')),_0x1ca085=_0x17738a&&_0x17738a['is'](_0x591f('0x1e'),'tableCellSuggestion');_0x528d3e&&!_0x5b0b49[_0x591f('0xa1')](_0x403807)&&_0x55786c[_0x591f('0xa3')](_0x403807),_0x1ca085&&!_0x5b0b49[_0x591f('0xa1')](_0x17738a)&&_0x55786c['add'](_0x17738a);}else _0x184806['is'](_0x591f('0x1e'),'paragraph')&&_0x184806[_0x591f('0x7c')]&&(_0xb87d42[_0x591f('0x9e')](_0x1ae4ac[_0x591f('0x48')]),_0x45e933=!0x0);}}else{if(_0x591f('0x99')==_0xb87d42[_0x591f('0x8f')]){if(!_0xb87d42['attributes']||!_0xb87d42[_0x591f('0x3f')][_0x591f('0x6a')])continue;const _0x522a23=_0xb87d42[_0x591f('0x3f')][_0x591f('0x8a')];if(_0x522a23&&Object[_0x591f('0x64')](_0x522a23)[_0x591f('0x1b')])continue;const _0x3f4ce7=_0xb87d42['attributes'][_0x591f('0x6a')];let _0x215f12=!0x0,_0x186df3=!0x0;for(const _0x24836f of _0x35adda)if(_0x24836f['subType']&&_0x24836f[_0x591f('0x8f')][_0x591f('0x65')](_0x591f('0x4c'))){if(!_0x24836f[_0x591f('0x3f')]['tablePasteChainId']){_0x186df3=!0x1;break;}if(_0x24836f['id']!=_0xb87d42['id']&&_0x24836f[_0x591f('0x3f')][_0x591f('0x6a')]==_0x3f4ce7){_0x215f12=!0x1;break;}}_0x186df3&&_0x215f12&&(_0xb87d42['removeMarkers'](),_0x45e933=!0x0);}}for(const _0x3db823 of _0x5b0b49)_0xd35451[_0x591f('0x0')](_0x3db823);for(const _0x589a80 of _0x55786c)_0xd35451['unwrap'](_0x589a80);return _0x45e933;}),_0x1eb6a0[_0x591f('0x8c')][_0x591f('0x28')](_0x591f('0x8d'))['markerToHighlight']({'model':_0x591f('0x51'),'view':_0x56eab2,'converterPriority':_0x591f('0xe')}),_0x1eb6a0[_0x591f('0x8c')]['for'](_0x591f('0xa0'))[_0x591f('0x9c')]({'model':_0x591f('0x51'),'view':(_0x2bff7e,_0x4209a3)=>{if(_0x4209a3[_0x591f('0x19')]['showSuggestionHighlights'])return _0x56eab2(_0x2bff7e,{'showActiveMarker':!0x1});},'converterPriority':_0x591f('0xe')});const _0x3476b3=_0x1eb6a0[_0x591f('0x91')]['view'];this[_0x591f('0x5e')](_0x3476b3[_0x591f('0xa2')],_0x591f('0xd'),(_0x4848a9,_0x27af41)=>{const _0x1207cd=[];for(const _0x534664 of _0x3476b3[_0x591f('0x50')](_0x27af41['content'])[_0x591f('0x7b')]())_0x534664['is'](_0x591f('0x1e'),_0x591f('0x9b'))&&_0x1207cd[_0x591f('0x93')](_0x534664);_0x3476b3[_0x591f('0x83')](_0x3278cd=>{for(const _0x97f29b of _0x1207cd)_0x3278cd[_0x591f('0x36')](_0x3278cd[_0x591f('0x50')](_0x97f29b),_0x3278cd[_0x591f('0x1')](_0x97f29b)),_0x3278cd[_0x591f('0x0')](_0x97f29b);});});}}function le(_0x5cf0f9){if(_0x5cf0f9[_0x591f('0x7c')])return!0x0;const _0x132e39=_0x5cf0f9['getChild'](0x0);return _0x132e39['is'](_0x591f('0x1e'),'paragraph')&&_0x132e39[_0x591f('0x7c')];}function se(_0x407b1a,_0x15a325={},_0x2338da){for(const {isAnchor:_0x30ab71,cellHeight:_0x446ef0,cellWidth:_0x1c4342}of _0x2338da[_0x591f('0x6f')](_0x407b1a,{'includeAllSlots':!0x0,..._0x15a325}))if(!_0x30ab71||0x1!=_0x446ef0||0x1!=_0x1c4342)return!0x1;return!0x0;}
|