@ckeditor/ckeditor5-track-changes 35.3.2 → 35.4.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 +2 -1
- package/build/translations/ar.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/contexts.json +13 -0
- package/lang/translations/ar.po +55 -3
- package/lang/translations/az.po +52 -0
- package/lang/translations/bg.po +55 -3
- package/lang/translations/bn.po +55 -3
- package/lang/translations/ca.po +55 -3
- package/lang/translations/cs.po +55 -3
- package/lang/translations/da.po +55 -3
- package/lang/translations/de.po +55 -3
- package/lang/translations/el.po +55 -3
- package/lang/translations/en-au.po +52 -0
- package/lang/translations/en.po +52 -0
- package/lang/translations/es.po +55 -3
- package/lang/translations/et.po +55 -3
- package/lang/translations/fi.po +55 -3
- package/lang/translations/fr.po +55 -3
- package/lang/translations/gl.po +52 -0
- package/lang/translations/he.po +55 -3
- package/lang/translations/hi.po +55 -3
- package/lang/translations/hr.po +52 -0
- package/lang/translations/hu.po +55 -3
- package/lang/translations/id.po +55 -3
- package/lang/translations/it.po +55 -3
- package/lang/translations/ja.po +55 -3
- package/lang/translations/ko.po +55 -3
- package/lang/translations/lt.po +55 -3
- package/lang/translations/lv.po +55 -3
- package/lang/translations/ms.po +55 -3
- package/lang/translations/nl.po +55 -3
- package/lang/translations/no.po +55 -3
- package/lang/translations/pl.po +55 -3
- package/lang/translations/pt-br.po +55 -3
- package/lang/translations/pt.po +55 -3
- package/lang/translations/ro.po +55 -3
- package/lang/translations/ru.po +55 -3
- package/lang/translations/sk.po +55 -3
- package/lang/translations/sr-latn.po +52 -0
- package/lang/translations/sr.po +55 -3
- package/lang/translations/sv.po +55 -3
- package/lang/translations/th.po +55 -3
- package/lang/translations/tk.po +52 -0
- package/lang/translations/tr.po +55 -3
- package/lang/translations/tt.po +52 -0
- package/lang/translations/uk.po +55 -3
- package/lang/translations/ur.po +52 -0
- package/lang/translations/vi.po +55 -3
- package/lang/translations/zh-cn.po +55 -3
- package/lang/translations/zh.po +55 -3
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +23 -0
- 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/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +23 -0
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +23 -0
- 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/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x376b=['config','*Remove\x20format:*\x20%0','forceValue','getRangesWithClasses','classes','block','modelElements','commandName','style.definitions','includes','createRangeOn','enableCommand','isCollapsed','getRanges','find','from','inline','styleName','format','plugins','TrackChangesEditing','style:','_descriptionFactory','registerDescriptionCallback','style','document','markInlineFormat','getItems','*Format:*\x20%0','selection','name','getAncestors','isBlock','get','Style','markBlockFormat','afterInit','toLowerCase','value','change','element','commandParams','push','model','enabledStyles','getStyleDefinition','commands'];(function(_0x263c83,_0x376bad){const _0x2017b9=function(_0x41ef93){while(--_0x41ef93){_0x263c83['push'](_0x263c83['shift']());}};_0x2017b9(++_0x376bad);}(_0x376b,0x104));const _0x2017=function(_0x263c83,_0x376bad){_0x263c83=_0x263c83-0x0;let _0x2017b9=_0x376b[_0x263c83];return _0x2017b9;};import{Plugin as _0x162f23}from'ckeditor5/src/core';import{normalizeConfig as _0x21dbdc}from'@ckeditor/ckeditor5-style/src/utils';import{getTranslation as _0x319111}from'../utils/common-translations';export default class gt extends _0x162f23{[_0x2017('0xb')](){const _0x5b8f30=this['editor'];if(!_0x5b8f30[_0x2017('0x29')]['has'](_0x2017('0x9')))return;const _0x2f2a07=_0x5b8f30[_0x2017('0x15')][_0x2017('0x8')](_0x2017('0x2e')),_0x17378b=_0x5b8f30['plugins'][_0x2017('0x8')](_0x2017('0x2a')),_0x5ce19c=_0x5b8f30['locale'],_0xe33746=_0x5b8f30[_0x2017('0x29')]['get']('DataSchema'),_0x4bf06c=_0x21dbdc(_0xe33746,_0x5b8f30[_0x2017('0x16')][_0x2017('0x8')](_0x2017('0x1e')));_0x17378b[_0x2017('0x21')](_0x2017('0x2e'),(_0x226375,{styleName:_0x5bbac1})=>{const _0x141791=_0x5b8f30['model'][_0x2017('0x0')][_0x2017('0x4')],_0xb886fb=this[_0x2017('0x14')](_0x5bbac1,_0x4bf06c);if(!_0xb886fb)return;if(!_0x2f2a07[_0x2017('0x13')][_0x2017('0x1f')](_0x5bbac1))return;if(_0x141791[_0x2017('0x22')]&&!_0xb886fb[_0x2017('0x7')])return void _0x226375({'styleName':_0x5bbac1});const _0x4ad09=!_0x2f2a07[_0x2017('0xd')][_0x2017('0x1f')](_0xb886fb['name']);if(_0xb886fb[_0x2017('0x7')]){const _0x34a407=function(_0x2c819d,_0x531f8e){const _0x140982=new Set();for(const _0x17d203 of _0x2c819d){const _0x25d2d5=_0x17d203[_0x2017('0x6')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x2ee90f of _0x25d2d5)if(_0x531f8e['includes'](_0x2ee90f['name'])){_0x140982['add'](_0x2ee90f);break;}}return _0x140982;}(_0x141791['getSelectedBlocks'](),_0xb886fb[_0x2017('0x1c')]);_0x5b8f30['model'][_0x2017('0xe')](()=>{for(const _0x4a3050 of _0x34a407)_0x17378b[_0x2017('0xa')](_0x4a3050,{'commandName':_0x2017('0x2e'),'commandParams':[{'styleName':_0x5bbac1,'forceValue':_0x4ad09}],'formatGroupId':_0x2017('0x2b')+_0x5bbac1});});}else{let _0x59cdf5=Array[_0x2017('0x25')](_0x141791[_0x2017('0x23')]());if(!_0x4ad09){const _0x3cb783=Array[_0x2017('0x25')](_0xe33746['getDefinitionsForView'](_0xb886fb[_0x2017('0xf')],!0x1))[0x0]['model'],_0x41b1c6=[];for(const _0x541b47 of _0x59cdf5){const _0x4dfe62=this[_0x2017('0x19')](_0x5b8f30[_0x2017('0x12')],_0x541b47,_0xb886fb[_0x2017('0x1a')],_0x3cb783);_0x41b1c6[_0x2017('0x11')](..._0x4dfe62);}_0x59cdf5=_0x41b1c6;}_0x5b8f30['model'][_0x2017('0xe')](()=>{for(const _0xefcb08 of _0x59cdf5)_0x17378b[_0x2017('0x1')](_0xefcb08,{'commandName':'style','commandParams':[{'styleName':_0x5bbac1,'forceValue':_0x4ad09}]});});}}),_0x17378b[_0x2017('0x2c')][_0x2017('0x2d')](_0x2427ed=>{const {data:_0x5ebcb4}=_0x2427ed;if(_0x5ebcb4&&_0x2017('0x2e')===_0x5ebcb4[_0x2017('0x1d')])return _0x5ebcb4['commandParams'][0x0][_0x2017('0x18')]?{'type':_0x2017('0x28'),'content':_0x319111(_0x5ce19c,_0x2017('0x3'),_0x5ebcb4[_0x2017('0x10')][0x0][_0x2017('0x27')][_0x2017('0xc')]())}:{'type':_0x2017('0x28'),'content':_0x319111(_0x5ce19c,_0x2017('0x17'),_0x5ebcb4[_0x2017('0x10')][0x0][_0x2017('0x27')][_0x2017('0xc')]())};});}['getStyleDefinition'](_0x1ae50d,_0x45bbb1){let _0x38fdc8=_0x45bbb1[_0x2017('0x1b')][_0x2017('0x24')](_0x25cfa4=>_0x25cfa4[_0x2017('0x5')]===_0x1ae50d);return _0x38fdc8||(_0x38fdc8=_0x45bbb1[_0x2017('0x26')]['find'](_0x382ab5=>_0x382ab5[_0x2017('0x5')]===_0x1ae50d)),_0x38fdc8;}['getRangesWithClasses'](_0x30ff05,_0x30fbb,_0xd8c3ac,_0x3458bd){const _0x3b2643=[];for(const _0x3a6644 of _0x30fbb[_0x2017('0x2')]()){const _0x4a1723=_0x3a6644['getAttribute'](_0x3458bd);_0x4a1723&&(_0xd8c3ac['every'](_0x1b4045=>_0x4a1723[_0x2017('0x1a')][_0x2017('0x1f')](_0x1b4045))&&_0x3b2643['push'](_0x30ff05[_0x2017('0x20')](_0x3a6644)));}return _0x3b2643;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5864=['showSuggestionHighlights','getRanges','_acceptFormatSuggestionCallbackFactory','min','selectTableColumn','insertion','afterInit','insertTableRowBelow','registerCustomCallback','getItems','getColumnIndexes','commands','root','end','join','createRangeOn','data','tableCell','rowspan','$graveyard','element','MIN_SAFE_INTEGER','enableCommand','selection','insertTableColumnRight','*Remove:*\x20%0','nodeBefore','name','batch','ELEMENT_TABLE_WITH_TEXT','createTableWalker','execute','createPositionAt','addMarker:suggestion','maxRow','length','cell','ELEMENT_TABLE_ROW_WITH_TEXT','getContainedElement','deletion','getAttribute','change:data','ELEMENT_TABLE_COLUMN_WITH_TEXT','first','markMultiRangeInsertion','classes','getRowIndexes','getChangedMarkers','tableRow','accept','plugins','type','selectTableRow','get','registerPostFixer','values','_splitMarkerName','toLowerCase','removeTableColumn','start','insertTableRowAbove','options','getChanges','addRange','position','textProxy','discard','isIntersectingWithRange','TableEditing','insertTableColumnLeft','isArray','_getSuggestionCoords','ELEMENT_TABLE_ROW','_suggestionFactory','createRangeIn','above','model','colspan','fromRange','max','_setupColumnsRowsFixing','insert','findAncestor','oldRange','from','getSelectionAffectedTableCells','substr','markMultiRangeDeletion','differ','has','rootName','maxColumn','nodeAfter','ELEMENT_TABLE_COLUMN','some','change','locale','table','forceValue','addClass','getCellLocation','isInContent','_tableSuggestions','suggestion','MAX_SAFE_INTEGER','setSelection','add','_descriptionFactory','filter','writer','subType','order','detach','includes','refresh','toViewElement','removeTableRow','isEqual','enqueueChange','getChildren','_getCoordsForCells','last','map','TrackChangesEditing','_tablePostFixingSubtypes','*Insert:*\x20%0','editor','highest','span','minColumn','hasAttribute','minRow','getSuggestion','document','tableColumn','left','removeClass'];(function(_0x20a10e,_0x5864d7){const _0x51223a=function(_0xa908d8){while(--_0xa908d8){_0x20a10e['push'](_0x20a10e['shift']());}};_0x51223a(++_0x5864d7);}(_0x5864,0xed));const _0x5122=function(_0x20a10e,_0x5864d7){_0x20a10e=_0x20a10e-0x0;let _0x51223a=_0x5864[_0x20a10e];return _0x51223a;};import{Plugin as _0x208c04}from'ckeditor5/src/core';import{LiveRange as _0x2f294c}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3ca9e5}from'ckeditor5/src/widget';import{getTranslation as _0x5a6c0f}from'../utils/common-translations';export default class ft extends _0x208c04{constructor(_0xa5de45){super(_0xa5de45),this[_0x5122('0x18')]=[_0x5122('0x55'),_0x5122('0x22')];}[_0x5122('0x2b')](){const _0x505e0b=this[_0x5122('0x1a')],_0x407a9f=_0x505e0b[_0x5122('0x71')][_0x5122('0x21')][_0x5122('0x3c')];if(!_0x505e0b[_0x5122('0x57')][_0x5122('0x7e')](_0x5122('0x69')))return;const _0x720761=_0x505e0b[_0x5122('0x85')],_0x54d845=_0x505e0b[_0x5122('0x57')]['get'](_0x5122('0x17')),_0x568726=_0x505e0b['plugins'][_0x5122('0x5a')]('TableUtils');_0x54d845[_0x5122('0x7')]['registerElementLabel']('table',_0x1194a3=>_0x5a6c0f(_0x720761,'ELEMENT_TABLE',_0x1194a3)),this['_setupColumnsRowsFixing'](),_0x54d845['enableCommand']('insertTable'),_0x54d845[_0x5122('0x3b')](_0x5122('0x59')),_0x54d845[_0x5122('0x3b')](_0x5122('0x29'));for(const _0x4b0885 of[_0x5122('0x61'),_0x5122('0x2c')]){const _0x2832eb=_0x505e0b[_0x5122('0x30')]['get'](_0x4b0885);_0x54d845[_0x5122('0x3b')](_0x4b0885,_0x39c120=>{_0x505e0b[_0x5122('0x71')][_0x5122('0x84')](_0xc874b=>{_0x39c120();const _0x180737=_0x5122('0x70')===_0x2832eb[_0x5122('0xb')],_0x5d5113=_0x568726[_0x5122('0x7a')](_0x407a9f),_0x24fa66=_0x568726[_0x5122('0x53')](_0x5d5113),_0x1b8fcf=_0x180737?_0x24fa66[_0x5122('0x50')]-0x1:_0x24fa66['last']+0x1,_0x47345e=_0x5d5113[0x0]['findAncestor'](_0x5122('0x86')),_0x216455=_0x568726['createTableWalker'](_0x47345e,{'startRow':_0x1b8fcf,'endRow':_0x1b8fcf}),_0xe8ab34=Array[_0x5122('0x79')](_0x216455)['map'](_0xd619c5=>_0xc874b[_0x5122('0x34')](_0xd619c5[_0x5122('0x49')]));_0x54d845[_0x5122('0x51')](_0xe8ab34,_0x5122('0x55'));});});}for(const _0x3dfae6 of[_0x5122('0x6a'),_0x5122('0x3d')]){const _0x17b126=_0x505e0b['commands'][_0x5122('0x5a')](_0x3dfae6);_0x54d845['enableCommand'](_0x3dfae6,_0x41b734=>{_0x505e0b['model']['change'](_0x180a8f=>{_0x41b734();const _0x12f6cf=_0x5122('0x23')===_0x17b126[_0x5122('0xb')],_0x34de81=_0x568726['getSelectionAffectedTableCells'](_0x407a9f),_0x5a6eab=_0x568726[_0x5122('0x2f')](_0x34de81),_0x481c02=_0x12f6cf?_0x5a6eab['first']-0x1:_0x5a6eab[_0x5122('0x15')]+0x1,_0x321978=_0x34de81[0x0][_0x5122('0x77')](_0x5122('0x86')),_0x1d1997=_0x568726[_0x5122('0x43')](_0x321978,{'startRow':0x0,'column':_0x481c02,'includeAllSlots':!0x1}),_0x34b682=Array['from'](_0x1d1997)[_0x5122('0x16')](_0x118cef=>_0x180a8f[_0x5122('0x34')](_0x118cef['cell']));_0x54d845[_0x5122('0x51')](_0x34b682,_0x5122('0x22'));});});}for(const _0x324b4f of[_0x5122('0x10'),'removeTableColumn']){const _0x5894f4=_0x324b4f['substr'](0xb),_0x1eceb6=_0x5894f4['toLowerCase'](),_0x2f5940=_0x1eceb6[_0x5122('0x7b')](0x0,0x3)+_0x5122('0x1c'),_0xac7cec='table'+_0x5894f4,_0x3a1808=_0x5122('0x28')+_0x5894f4,_0xbeaf9f=_0x5122('0x74')+_0x5894f4;_0x54d845[_0x5122('0x3b')](_0x324b4f,()=>{_0x505e0b['model'][_0x5122('0x84')](_0x4dc7d4=>{const _0x314ef3=_0x568726[_0x5122('0x7a')](_0x407a9f),_0x51988e=_0x314ef3[0x0][_0x5122('0x77')](_0x5122('0x86'));let _0x526bbd;if(_0x5122('0x10')==_0x324b4f){const _0x4f26ca=_0x568726[_0x5122('0x53')](_0x314ef3);_0x526bbd={'startRow':_0x4f26ca[_0x5122('0x50')],'endRow':_0x4f26ca[_0x5122('0x15')],'includeAllSlots':!0x0};}else{const _0x25e103=_0x568726['getColumnIndexes'](_0x314ef3);_0x526bbd={'startColumn':_0x25e103[_0x5122('0x50')],'endColumn':_0x25e103[_0x5122('0x15')],'includeAllSlots':!0x0};}const _0x36c6c1=_0x568726[_0x5122('0x43')](_0x51988e,_0x526bbd),_0x23bfa6=Array[_0x5122('0x79')](_0x36c6c1)['map'](({cell:_0x15621b})=>_0x15621b),_0x447fb0=oe(_0x23bfa6['filter'](_0x146157=>_0x146157['hasAttribute'](_0x2f5940))),_0x4ab0f1=oe(_0x23bfa6['filter'](_0x49ea5b=>!_0x49ea5b['hasAttribute'](_0x2f5940)))[_0x5122('0x16')](_0xc6239e=>_0x4dc7d4['createRangeOn'](_0xc6239e)),_0x8d84fa=_0x54d845[_0x5122('0x7c')](_0x4ab0f1,_0xac7cec);if(_0x8d84fa&&(_0x5122('0x55')==_0x8d84fa[_0x5122('0xa')]||'tableColumn'==_0x8d84fa[_0x5122('0xa')])){const _0x1ee52e=this['_getSuggestionCoords'](_0x8d84fa);for(const _0xfc5fc1 of _0x447fb0){const _0x3e4043=_0x4dc7d4[_0x5122('0x34')](_0xfc5fc1),_0xe921d1=_0x568726['getCellLocation'](_0xfc5fc1),_0x41189e=_0xfc5fc1['getAttribute'](_0x2f5940)-0x1,_0x143a8e=_0x1ee52e[_0x3a1808],_0x5dc162=_0x1ee52e[_0xbeaf9f];_0x143a8e<=_0xe921d1[_0x1eceb6]&&_0xe921d1[_0x1eceb6]+_0x41189e<=_0x5dc162&&_0x8d84fa[_0x5122('0x64')](_0x3e4043);}}});});}function _0x13a5dc(_0x237626){const _0x2ffd03=Array['from'](_0x407a9f['getRanges']())[_0x5122('0x16')](_0x1d225a=>_0x2f294c[_0x5122('0x73')](_0x1d225a));_0x505e0b[_0x5122('0x71')][_0x5122('0x84')](_0x2ffd45=>{const _0x281c52=_0x2ffd45[_0x5122('0x41')];_0x237626=_0x237626[_0x5122('0x8')](_0x314e07=>_0x5122('0x38')!=_0x314e07[_0x5122('0x31')][_0x5122('0x7f')]),_0x2ffd45[_0x5122('0x5')](_0x237626),_0x505e0b['commands'][_0x5122('0x5a')](_0x5122('0x10'))['refresh'](),_0x505e0b[_0x5122('0x44')](_0x5122('0x10'),{'forceDefaultExecution':!0x0}),_0x505e0b[_0x5122('0x71')]['enqueueChange'](()=>{_0x505e0b['model'][_0x5122('0x12')](_0x281c52,_0xc4c2a=>{const _0x288f90=_0x2ffd03['filter'](_0x914dbb=>_0x5122('0x38')!=_0x914dbb[_0x5122('0x31')][_0x5122('0x7f')]);_0x288f90[_0x5122('0x48')]>0x0&&_0xc4c2a[_0x5122('0x5')](_0x288f90);for(const _0x4844e6 of _0x2ffd03)_0x4844e6[_0x5122('0xc')]();});});});}function _0x1b11dd(_0x24650f){_0x505e0b[_0x5122('0x71')][_0x5122('0x84')](_0x134416=>{const _0x5721c5=Array[_0x5122('0x79')](_0x407a9f[_0x5122('0x26')]())[_0x5122('0x16')](_0x1ebd6b=>_0x2f294c[_0x5122('0x73')](_0x1ebd6b)),_0x4fe07e=[];for(const _0x9a64c1 of _0x24650f)for(const _0x13dd6c of _0x9a64c1['getItems']({'shallow':!0x0}))_0x4fe07e['push'](_0x13dd6c);for(const _0x51e17d of _0x4fe07e)_0x5122('0x38')!=_0x51e17d[_0x5122('0x31')][_0x5122('0x7f')]&&(_0x134416['setSelection'](_0x134416[_0x5122('0x45')](_0x51e17d,0x0)),_0x505e0b[_0x5122('0x30')][_0x5122('0x5a')](_0x5122('0x5f'))[_0x5122('0xe')](),_0x505e0b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4d6a83=_0x5721c5[_0x5122('0x8')](_0x9ddf16=>_0x5122('0x38')!=_0x9ddf16[_0x5122('0x31')]['rootName']);_0x4d6a83['length']>0x0&&_0x134416[_0x5122('0x5')](_0x4d6a83);for(const _0x5dff35 of _0x5721c5)_0x5dff35['detach']();});}function _0x2e21ae(_0x73be21,_0x4f40bb){return _0x4f40bb['every'](_0x6a8b3=>_0x73be21['some'](_0x1069bb=>_0x1069bb[_0x5122('0x32')][_0x5122('0x11')](_0x6a8b3[_0x5122('0x60')])||_0x6a8b3['end'][_0x5122('0x11')](_0x1069bb[_0x5122('0x60')])));}function _0xbf2ecb(_0x24ad88,_0xe18ea9){return _0x24ad88[_0x5122('0x83')](_0x33d20e=>_0xe18ea9[_0x5122('0x83')](_0x270bb8=>_0x33d20e[_0x5122('0x32')]['isTouching'](_0x270bb8[_0x5122('0x60')])));}_0x505e0b[_0x5122('0x35')]['downcastDispatcher']['on'](_0x5122('0x46'),(_0x50a1ae,_0xe7c5e2,_0x210ad7)=>{if(!_0x210ad7[_0x5122('0x62')][_0x5122('0x25')])return;const _0x3eb079=_0xe7c5e2['item'];if(!_0x3eb079)return;const _0x1322ad=_0x210ad7['mapper'][_0x5122('0xf')](_0x3eb079);function _0x465a48(_0xbdb571){return Array[_0x5122('0x6b')](_0xbdb571)?_0xbdb571:[_0xbdb571];}_0x1322ad&&'tableCell'===_0x3eb079[_0x5122('0x40')]&&_0x3ca9e5(_0x1322ad,_0x210ad7[_0x5122('0x9')],(_0x441709,_0x164a1e,_0x4ad64a)=>_0x4ad64a[_0x5122('0x88')](_0x465a48(_0x164a1e['classes']),_0x441709),(_0x1df8a7,_0x30a744,_0x3cbcb1)=>_0x3cbcb1[_0x5122('0x24')](_0x465a48(_0x30a744[_0x5122('0x52')]),_0x1df8a7));},{'priority':_0x5122('0x1b')}),_0x54d845[_0x5122('0x7')]['registerDescriptionCallback'](_0x8de01b=>{if('insertion'!=_0x8de01b[_0x5122('0x58')]&&_0x5122('0x4c')!=_0x8de01b[_0x5122('0x58')])return;const _0x5a0efa=_0x8de01b[_0x5122('0x4b')]();if(null!=_0x5a0efa&&_0x5a0efa['is'](_0x5122('0x39'),_0x5122('0x86'))){if('insertion'==_0x8de01b[_0x5122('0x58')]){const _0x43cc90=_0x8de01b[_0x5122('0x2e')]()[_0x5122('0x8')](_0x1dd729=>_0x1dd729['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x5945f9=>_0x5945f9[_0x5122('0x35')]);if(_0x43cc90[_0x5122('0x48')])return{'type':_0x5122('0x2a'),'content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x42'),'\x22'+_0x43cc90[_0x5122('0x33')]('\x20')+'\x22'))};}if(_0x5122('0x4c')==_0x8de01b[_0x5122('0x58')]){const _0x52abe2=_0x8de01b[_0x5122('0x2e')]()['filter'](_0x3b397b=>_0x3b397b['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x19e670=>_0x19e670[_0x5122('0x35')]);if(_0x52abe2[_0x5122('0x48')])return{'type':_0x5122('0x4c'),'content':_0x5a6c0f(_0x720761,_0x5122('0x3e'),_0x5a6c0f(_0x720761,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x52abe2[_0x5122('0x33')]('\x20')+'\x22'))};}}}),_0x54d845[_0x5122('0x7')]['registerDescriptionCallback'](_0x369517=>{if(_0x5122('0x55')==_0x369517[_0x5122('0xa')]){const _0x7378de=_0x369517[_0x5122('0x2e')]()[_0x5122('0x8')](_0x49229b=>_0x49229b['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x5b7ffe=>_0x5b7ffe['data']),_0x4c347a=this[_0x5122('0x6c')](_0x369517),_0x7d8f21=_0x4c347a[_0x5122('0x47')]-_0x4c347a[_0x5122('0x1f')]+0x1;if(_0x5122('0x2a')==_0x369517[_0x5122('0x58')])return _0x7378de[_0x5122('0x48')]?{'type':_0x5122('0x2a'),'content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x4a'),[_0x7d8f21,'\x22'+_0x7378de[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x6d'),_0x7d8f21))};if(_0x5122('0x4c')==_0x369517[_0x5122('0x58')])return _0x7378de[_0x5122('0x48')]?{'type':_0x5122('0x4c'),'content':_0x5a6c0f(_0x720761,_0x5122('0x3e'),_0x5a6c0f(_0x720761,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7d8f21,'\x22'+_0x7378de[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x5a6c0f(_0x720761,'*Remove:*\x20%0',_0x5a6c0f(_0x720761,_0x5122('0x6d'),_0x7d8f21))};}if(_0x5122('0x22')==_0x369517[_0x5122('0xa')]){const _0x4b4948=_0x369517[_0x5122('0x2e')]()['filter'](_0x24901a=>_0x24901a['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x4e57f3=>_0x4e57f3[_0x5122('0x35')]),_0x1c64c1=this[_0x5122('0x6c')](_0x369517),_0x35d952=_0x1c64c1[_0x5122('0x80')]-_0x1c64c1[_0x5122('0x1d')]+0x1;if('insertion'==_0x369517[_0x5122('0x58')])return _0x4b4948[_0x5122('0x48')]?{'type':'insertion','content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x4f'),[_0x35d952,'\x22'+_0x4b4948[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':_0x5122('0x2a'),'content':_0x5a6c0f(_0x720761,'*Insert:*\x20%0',_0x5a6c0f(_0x720761,_0x5122('0x82'),_0x35d952))};if(_0x5122('0x4c')==_0x369517[_0x5122('0x58')])return _0x4b4948[_0x5122('0x48')]?{'type':_0x5122('0x4c'),'content':_0x5a6c0f(_0x720761,'*Remove:*\x20%0',_0x5a6c0f(_0x720761,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35d952,'\x22'+_0x4b4948[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x5a6c0f(_0x720761,'*Remove:*\x20%0',_0x5a6c0f(_0x720761,_0x5122('0x82'),_0x35d952))};}}),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x2a'),_0x5122('0x55'),_0x5122('0x67'),_0x13a5dc),_0x54d845['_suggestionFactory']['registerCustomCallback'](_0x5122('0x4c'),_0x5122('0x55'),_0x5122('0x56'),_0x13a5dc),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x2a'),_0x5122('0x22'),_0x5122('0x67'),_0x1b11dd),_0x54d845['_suggestionFactory']['registerCustomCallback']('deletion',_0x5122('0x22'),'accept',_0x1b11dd),_0x54d845[_0x5122('0x6e')]['registerCustomCallback'](_0x5122('0x2a'),_0x5122('0x22'),'join',_0x2e21ae),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x4c'),_0x5122('0x22'),'join',_0x2e21ae),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')]('insertion','tableRow',_0x5122('0x33'),_0xbf2ecb),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x4c'),'tableRow','join',_0xbf2ecb);}[_0x5122('0x27')](){const _0x36bc76=this[_0x5122('0x1a')],_0x26a64f=_0x36bc76[_0x5122('0x71')][_0x5122('0x21')]['selection'];return(_0xc2d5bc,_0x1cb86b)=>{_0x36bc76[_0x5122('0x71')]['change'](_0x50f705=>{const {commandName:_0x2bb597,commandParams:_0x563e1d}=_0x1cb86b;let _0x12deae=_0xc2d5bc[0x0][_0x5122('0x32')][_0x5122('0x3f')];_0x563e1d&&_0x563e1d[0x0]&&!0x1===_0x563e1d[0x0][_0x5122('0x87')]&&(_0x12deae=_0xc2d5bc[0x0][_0x5122('0x60')][_0x5122('0x81')]);const _0x29f14d=_0x50f705[_0x5122('0x6f')](_0x12deae);if('$graveyard'==_0x29f14d[_0x5122('0x31')][_0x5122('0x7f')])return;const _0x3aeddb=Array[_0x5122('0x79')](_0x26a64f['getRanges']())[_0x5122('0x16')](_0x5c8ab5=>_0x2f294c[_0x5122('0x73')](_0x5c8ab5));_0x50f705[_0x5122('0x5')](_0x29f14d),_0x36bc76[_0x5122('0x30')][_0x5122('0x5a')](_0x2bb597)[_0x5122('0xe')](),_0x563e1d['push']({'forceDefaultExecution':!0x0}),_0x36bc76[_0x5122('0x44')](_0x2bb597,..._0x563e1d);const _0x488876=_0x3aeddb['filter'](_0x280e75=>_0x5122('0x38')!=_0x280e75[_0x5122('0x31')][_0x5122('0x7f')]);_0x488876[_0x5122('0x48')]>0x0&&_0x50f705['setSelection'](_0x488876);for(const _0x169f62 of _0x3aeddb)_0x169f62['detach']();});};}['_getCoordsForCells'](_0x471ff5){const _0x22d1f6=this[_0x5122('0x1a')]['plugins'][_0x5122('0x5a')]('TableUtils');let _0x4d5e20=Number[_0x5122('0x4')],_0x32b8ac=Number['MIN_SAFE_INTEGER'],_0x1c50d3=Number[_0x5122('0x4')],_0x37fe7e=Number[_0x5122('0x3a')];for(const _0x5b819c of _0x471ff5){if('$graveyard'==_0x5b819c[_0x5122('0x31')][_0x5122('0x7f')])continue;const {row:_0x22be42,column:_0x3b01d1}=_0x22d1f6[_0x5122('0x0')](_0x5b819c),_0x2e26d3=_0x5b819c['hasAttribute'](_0x5122('0x37'))?_0x5b819c[_0x5122('0x4d')](_0x5122('0x37'))-0x1:0x0,_0x1c9853=_0x5b819c[_0x5122('0x1e')](_0x5122('0x72'))?_0x5b819c[_0x5122('0x4d')](_0x5122('0x72'))-0x1:0x0;_0x4d5e20=_0x22be42<_0x4d5e20?_0x22be42:_0x4d5e20,_0x32b8ac=_0x22be42+_0x2e26d3>_0x32b8ac?_0x22be42+_0x2e26d3:_0x32b8ac,_0x1c50d3=_0x3b01d1<_0x1c50d3?_0x3b01d1:_0x1c50d3,_0x37fe7e=_0x3b01d1+_0x1c9853>_0x37fe7e?_0x3b01d1+_0x1c9853:_0x37fe7e;}return{'minRow':_0x4d5e20,'maxRow':_0x32b8ac,'minColumn':_0x1c50d3,'maxColumn':_0x37fe7e};}[_0x5122('0x75')](){const _0x3b53dd=this[_0x5122('0x1a')],_0x348af8=_0x3b53dd[_0x5122('0x57')][_0x5122('0x5a')](_0x5122('0x17')),_0x2719fb=_0x3b53dd['plugins'][_0x5122('0x5a')]('TableUtils');this[_0x5122('0x2')]=new Set(),_0x3b53dd[_0x5122('0x71')][_0x5122('0x21')]['on'](_0x5122('0x4e'),()=>{const _0xfc194b=Array[_0x5122('0x79')](_0x3b53dd[_0x5122('0x71')]['document']['differ'][_0x5122('0x54')]());for(const {name:_0x19523e,data:_0x4c8785}of _0xfc194b){const {group:_0x50e927,id:_0x149be4,subType:_0x4e76d8}=_0x348af8[_0x5122('0x5d')](_0x19523e);if(_0x5122('0x3')!=_0x50e927)continue;if(null!=_0x4c8785[_0x5122('0x78')])continue;const _0x517868=_0x348af8[_0x5122('0x20')](_0x149be4);this[_0x5122('0x18')][_0x5122('0xd')](_0x4e76d8)&&this[_0x5122('0x2')][_0x5122('0x6')](_0x517868);}},{'priority':'low'});const _0x23206a=(_0x261749,_0x25ab4a)=>{let _0x5307f3=!0x1;const _0x530351=_0x25ab4a['createRangeOn'](_0x261749),_0x44d717=_0x261749['findAncestor'](_0x5122('0x86')),_0x47dba8=_0x2719fb[_0x5122('0x0')](_0x261749);for(const _0x312dd3 of this[_0x5122('0x2')]){const _0x50856e=_0x312dd3[_0x5122('0xa')],_0x5bbb87=_0x50856e['startsWith']('tablePaste'),_0x5881e0=_0x50856e[_0x5122('0x7b')](_0x5bbb87?0xa:0x5),_0x10aea1=_0x5881e0[_0x5122('0x5e')](),_0x23c0b2=_0x10aea1['substr'](0x0,0x3)+'span',_0x1d033e=_0x5122('0x28')+_0x5881e0,_0x4cf195='max'+_0x5881e0;if(!_0x312dd3[_0x5122('0x1')])continue;if(_0x44d717!=_0x312dd3['getFirstRange']()[_0x5122('0x60')]['findAncestor'](_0x5122('0x86')))continue;if(_0x312dd3[_0x5122('0x68')](_0x530351))continue;const _0x5bfa33=_0x261749['hasAttribute'](_0x23c0b2)?_0x261749[_0x5122('0x4d')](_0x23c0b2)-0x1:0x0,_0x1cba5a=this[_0x5122('0x6c')](_0x312dd3),_0x220f04=_0x1cba5a[_0x1d033e],_0x1e2343=_0x1cba5a[_0x4cf195];_0x220f04<=_0x47dba8[_0x10aea1]&&_0x47dba8[_0x10aea1]+_0x5bfa33<=_0x1e2343&&(_0x312dd3[_0x5122('0x64')](_0x530351),_0x5307f3=!0x0);}return _0x5307f3;};_0x3b53dd[_0x5122('0x71')][_0x5122('0x21')][_0x5122('0x5b')](_0x1e340b=>{let _0x1309e8=!0x1;for(const _0x3cba40 of _0x3b53dd[_0x5122('0x71')][_0x5122('0x21')][_0x5122('0x7d')][_0x5122('0x63')]())if(_0x5122('0x76')==_0x3cba40['type']){if(_0x5122('0x55')==_0x3cba40[_0x5122('0x40')])for(const _0x550bfe of _0x3cba40[_0x5122('0x65')]['nodeAfter'][_0x5122('0x13')]())_0x1309e8=_0x1309e8||_0x23206a(_0x550bfe,_0x1e340b);else _0x5122('0x36')==_0x3cba40[_0x5122('0x40')]&&(_0x1309e8=_0x1309e8||_0x23206a(_0x3cba40[_0x5122('0x65')][_0x5122('0x81')],_0x1e340b));}return _0x1309e8;});}[_0x5122('0x6c')](_0x29a8c3){return this[_0x5122('0x14')](_0x29a8c3[_0x5122('0x26')]()[_0x5122('0x16')](_0x385686=>_0x385686[_0x5122('0x60')][_0x5122('0x81')]));}}function oe(_0x1299a8){return Array[_0x5122('0x79')](new Set(_0x1299a8)[_0x5122('0x5c')]());}
|
|
23
|
+
const _0x1eb5=['has','end','filter','nodeBefore','data','addRange','refresh','insertion','colspan','getChangedMarkers','last','fromRange','detach','from','textProxy','minRow','ELEMENT_TABLE_ROW_WITH_TEXT','some','addClass','batch','showSuggestionHighlights','registerDescriptionCallback','model','commands','toLowerCase','element','MIN_SAFE_INTEGER','*Remove:*\x20%0','mapper','findAncestor','root','writer','_setupColumnsRowsFixing','hasAttribute','options','ELEMENT_TABLE_WITH_TEXT','maxColumn','getAttribute','type','length','TableUtils','max','rootName','tablePaste','afterInit','differ','createTableWalker','map','table','_acceptFormatSuggestionCallbackFactory','tableColumn','order','selectTableColumn','nodeAfter','removeTableRow','ELEMENT_TABLE','toViewElement','registerCustomCallback','locale','document','change:data','name','tableRow','isArray','execute','get','item','editor','cell','getSelectionAffectedTableCells','getChildren','values','join','substr','ELEMENT_TABLE_COLUMN','first','setSelection','startsWith','removeClass','discard','getCellLocation','MAX_SAFE_INTEGER','_tableSuggestions','ELEMENT_TABLE_ROW','subType','oldRange','enqueueChange','$graveyard','getItems','registerPostFixer','_suggestionFactory','accept','insertTableRowBelow','isEqual','minColumn','enableCommand','createPositionAt','selection','_getSuggestionCoords','removeTableColumn','above','getRanges','getRowIndexes','tableCell','classes','push','TrackChangesEditing','plugins','change','_descriptionFactory','span','getChanges','insert','registerElementLabel','add','downcastDispatcher','_tablePostFixingSubtypes','*Insert:*\x20%0','markMultiRangeInsertion','createRangeOn','low','rowspan','ELEMENT_TABLE_COLUMN_WITH_TEXT','selectTableRow','start','getFirstRange','_splitMarkerName','position','highest','getColumnIndexes','insertTableColumnRight','min','deletion','_getCoordsForCells'];(function(_0x5ecf66,_0x1eb539){const _0x282046=function(_0xfd028b){while(--_0xfd028b){_0x5ecf66['push'](_0x5ecf66['shift']());}};_0x282046(++_0x1eb539);}(_0x1eb5,0x1f2));const _0x2820=function(_0x5ecf66,_0x1eb539){_0x5ecf66=_0x5ecf66-0x0;let _0x282046=_0x1eb5[_0x5ecf66];return _0x282046;};import{Plugin as _0x3f257e}from'ckeditor5/src/core';import{LiveRange as _0x3a116c}from'ckeditor5/src/engine';import{setHighlightHandling as _0xb8b6e8}from'ckeditor5/src/widget';import{getTranslation as _0x374bfe}from'../utils/common-translations';export default class lt extends _0x3f257e{constructor(_0x1bbc71){super(_0x1bbc71),this['_tablePostFixingSubtypes']=[_0x2820('0x64'),'tableColumn'];}[_0x2820('0x52')](){const _0x566efc=this[_0x2820('0x69')],_0x306e74=_0x566efc[_0x2820('0x3c')][_0x2820('0x61')]['selection'];if(!_0x566efc[_0x2820('0xb')][_0x2820('0x26')]('TableEditing'))return;const _0x47f24f=_0x566efc[_0x2820('0x60')],_0x39ecf5=_0x566efc[_0x2820('0xb')][_0x2820('0x67')](_0x2820('0xa')),_0x4781a4=_0x566efc[_0x2820('0xb')]['get'](_0x2820('0x4e'));_0x39ecf5[_0x2820('0xd')][_0x2820('0x11')]('table',_0x3bc4ff=>_0x374bfe(_0x47f24f,_0x2820('0x5d'),_0x3bc4ff)),this[_0x2820('0x46')](),_0x39ecf5[_0x2820('0x85')]('insertTable'),_0x39ecf5['enableCommand'](_0x2820('0x1b')),_0x39ecf5[_0x2820('0x85')](_0x2820('0x5a'));for(const _0x709dbb of['insertTableRowAbove',_0x2820('0x82')]){const _0x1f585a=_0x566efc[_0x2820('0x3d')]['get'](_0x709dbb);_0x39ecf5[_0x2820('0x85')](_0x709dbb,_0x517b40=>{_0x566efc[_0x2820('0x3c')]['change'](_0x3cae51=>{_0x517b40();const _0x12acdc=_0x2820('0x4')===_0x1f585a[_0x2820('0x59')],_0x31100c=_0x4781a4['getSelectionAffectedTableCells'](_0x306e74),_0x1d266c=_0x4781a4['getRowIndexes'](_0x31100c),_0x52c2a8=_0x12acdc?_0x1d266c[_0x2820('0x71')]-0x1:_0x1d266c[_0x2820('0x30')]+0x1,_0x14c7dd=_0x31100c[0x0]['findAncestor']('table'),_0x2430cb=_0x4781a4[_0x2820('0x54')](_0x14c7dd,{'startRow':_0x52c2a8,'endRow':_0x52c2a8}),_0x38ad07=Array[_0x2820('0x33')](_0x2430cb)['map'](_0x1a29bf=>_0x3cae51['createRangeOn'](_0x1a29bf[_0x2820('0x6a')]));_0x39ecf5[_0x2820('0x16')](_0x38ad07,'tableRow');});});}for(const _0x38414d of['insertTableColumnLeft',_0x2820('0x22')]){const _0x4c9a05=_0x566efc[_0x2820('0x3d')][_0x2820('0x67')](_0x38414d);_0x39ecf5[_0x2820('0x85')](_0x38414d,_0x38fe06=>{_0x566efc[_0x2820('0x3c')][_0x2820('0xc')](_0x4fee51=>{_0x38fe06();const _0x3aeba9='left'===_0x4c9a05[_0x2820('0x59')],_0x370ce0=_0x4781a4[_0x2820('0x6b')](_0x306e74),_0x2daa69=_0x4781a4[_0x2820('0x21')](_0x370ce0),_0x219d48=_0x3aeba9?_0x2daa69[_0x2820('0x71')]-0x1:_0x2daa69[_0x2820('0x30')]+0x1,_0x22f224=_0x370ce0[0x0][_0x2820('0x43')](_0x2820('0x56')),_0x11eccd=_0x4781a4['createTableWalker'](_0x22f224,{'startRow':0x0,'column':_0x219d48,'includeAllSlots':!0x1}),_0x1d5ba7=Array[_0x2820('0x33')](_0x11eccd)['map'](_0x2f94b3=>_0x4fee51[_0x2820('0x17')](_0x2f94b3[_0x2820('0x6a')]));_0x39ecf5['markMultiRangeInsertion'](_0x1d5ba7,_0x2820('0x58'));});});}for(const _0xf320ea of[_0x2820('0x5c'),_0x2820('0x3')]){const _0x33f0e1=_0xf320ea[_0x2820('0x6f')](0xb),_0x5e0f6b=_0x33f0e1['toLowerCase'](),_0x27973a=_0x5e0f6b['substr'](0x0,0x3)+_0x2820('0xe'),_0x13107d=_0x2820('0x56')+_0x33f0e1,_0x15362b='min'+_0x33f0e1,_0x161b89=_0x2820('0x4f')+_0x33f0e1;_0x39ecf5[_0x2820('0x85')](_0xf320ea,()=>{_0x566efc[_0x2820('0x3c')][_0x2820('0xc')](_0x387b14=>{const _0xd46883=_0x4781a4[_0x2820('0x6b')](_0x306e74),_0x535499=_0xd46883[0x0]['findAncestor']('table');let _0x2819c2;if(_0x2820('0x5c')==_0xf320ea){const _0x29f3b9=_0x4781a4[_0x2820('0x6')](_0xd46883);_0x2819c2={'startRow':_0x29f3b9[_0x2820('0x71')],'endRow':_0x29f3b9[_0x2820('0x30')],'includeAllSlots':!0x0};}else{const _0x54d59d=_0x4781a4[_0x2820('0x21')](_0xd46883);_0x2819c2={'startColumn':_0x54d59d[_0x2820('0x71')],'endColumn':_0x54d59d['last'],'includeAllSlots':!0x0};}const _0x123a9c=_0x4781a4[_0x2820('0x54')](_0x535499,_0x2819c2),_0x489c46=Array[_0x2820('0x33')](_0x123a9c)[_0x2820('0x55')](({cell:_0x15fa14})=>_0x15fa14),_0x141aa9=se(_0x489c46['filter'](_0x17057d=>_0x17057d['hasAttribute'](_0x27973a))),_0x240d44=se(_0x489c46[_0x2820('0x28')](_0x6da111=>!_0x6da111[_0x2820('0x47')](_0x27973a)))['map'](_0x49b223=>_0x387b14[_0x2820('0x17')](_0x49b223)),_0x3571df=_0x39ecf5['markMultiRangeDeletion'](_0x240d44,_0x13107d);if(_0x3571df&&('tableRow'==_0x3571df[_0x2820('0x7a')]||_0x2820('0x58')==_0x3571df[_0x2820('0x7a')])){const _0x192d64=this['_getSuggestionCoords'](_0x3571df);for(const _0x336c60 of _0x141aa9){const _0x5c394d=_0x387b14[_0x2820('0x17')](_0x336c60),_0x1b2c9f=_0x4781a4[_0x2820('0x76')](_0x336c60),_0x33d6a8=_0x336c60[_0x2820('0x4b')](_0x27973a)-0x1,_0x4cd5c8=_0x192d64[_0x15362b],_0x423756=_0x192d64[_0x161b89];_0x4cd5c8<=_0x1b2c9f[_0x5e0f6b]&&_0x1b2c9f[_0x5e0f6b]+_0x33d6a8<=_0x423756&&_0x3571df[_0x2820('0x2b')](_0x5c394d);}}});});}function _0x41f0f1(_0x50b99a){const _0x2aaf97=Array[_0x2820('0x33')](_0x306e74[_0x2820('0x5')]())['map'](_0x568617=>_0x3a116c[_0x2820('0x31')](_0x568617));_0x566efc[_0x2820('0x3c')][_0x2820('0xc')](_0x24de09=>{const _0x4a0aaf=_0x24de09[_0x2820('0x39')];_0x50b99a=_0x50b99a[_0x2820('0x28')](_0x51db03=>'$graveyard'!=_0x51db03['root'][_0x2820('0x50')]),_0x24de09['setSelection'](_0x50b99a),_0x566efc['commands']['get'](_0x2820('0x5c'))[_0x2820('0x2c')](),_0x566efc[_0x2820('0x66')](_0x2820('0x5c'),{'forceDefaultExecution':!0x0}),_0x566efc[_0x2820('0x3c')][_0x2820('0x7c')](()=>{_0x566efc[_0x2820('0x3c')][_0x2820('0x7c')](_0x4a0aaf,_0x462c85=>{const _0x546b38=_0x2aaf97[_0x2820('0x28')](_0x3bc2c9=>_0x2820('0x7d')!=_0x3bc2c9[_0x2820('0x44')]['rootName']);_0x546b38[_0x2820('0x4d')]>0x0&&_0x462c85[_0x2820('0x72')](_0x546b38);for(const _0x33ae1f of _0x2aaf97)_0x33ae1f[_0x2820('0x32')]();});});});}function _0x32687e(_0x34f0d0){_0x566efc[_0x2820('0x3c')][_0x2820('0xc')](_0x2ac751=>{const _0x20ffc0=Array[_0x2820('0x33')](_0x306e74[_0x2820('0x5')]())[_0x2820('0x55')](_0x145e02=>_0x3a116c['fromRange'](_0x145e02)),_0x39c319=[];for(const _0x8512db of _0x34f0d0)for(const _0x391759 of _0x8512db[_0x2820('0x7e')]({'shallow':!0x0}))_0x39c319[_0x2820('0x9')](_0x391759);for(const _0x56016d of _0x39c319)_0x2820('0x7d')!=_0x56016d['root'][_0x2820('0x50')]&&(_0x2ac751[_0x2820('0x72')](_0x2ac751[_0x2820('0x0')](_0x56016d,0x0)),_0x566efc[_0x2820('0x3d')]['get']('removeTableColumn')[_0x2820('0x2c')](),_0x566efc[_0x2820('0x66')](_0x2820('0x3'),{'forceDefaultExecution':!0x0}));const _0x380a4c=_0x20ffc0[_0x2820('0x28')](_0x13ae5f=>_0x2820('0x7d')!=_0x13ae5f[_0x2820('0x44')][_0x2820('0x50')]);_0x380a4c['length']>0x0&&_0x2ac751['setSelection'](_0x380a4c);for(const _0x140cb5 of _0x20ffc0)_0x140cb5[_0x2820('0x32')]();});}function _0x1da6e7(_0x193027,_0x5157bf){return _0x5157bf['every'](_0x171309=>_0x193027[_0x2820('0x37')](_0x2937ed=>_0x2937ed[_0x2820('0x27')][_0x2820('0x83')](_0x171309['start'])||_0x171309['end'][_0x2820('0x83')](_0x2937ed[_0x2820('0x1c')])));}function _0xd931cd(_0x3d076e,_0xf0811e){return _0x3d076e[_0x2820('0x37')](_0x59a9e6=>_0xf0811e[_0x2820('0x37')](_0x3fa82a=>_0x59a9e6[_0x2820('0x27')]['isTouching'](_0x3fa82a['start'])));}_0x566efc[_0x2820('0x2a')][_0x2820('0x13')]['on']('addMarker:suggestion',(_0x5d3ec3,_0x39d229,_0x436cc8)=>{if(!_0x436cc8[_0x2820('0x48')][_0x2820('0x3a')])return;const _0xfd4397=_0x39d229[_0x2820('0x68')];if(!_0xfd4397)return;const _0x392299=_0x436cc8[_0x2820('0x42')][_0x2820('0x5e')](_0xfd4397);function _0x6bbb97(_0x48fcc7){return Array[_0x2820('0x65')](_0x48fcc7)?_0x48fcc7:[_0x48fcc7];}_0x392299&&_0x2820('0x7')===_0xfd4397[_0x2820('0x63')]&&_0xb8b6e8(_0x392299,_0x436cc8[_0x2820('0x45')],(_0x144d96,_0xbfcab8,_0x28bacc)=>_0x28bacc[_0x2820('0x38')](_0x6bbb97(_0xbfcab8[_0x2820('0x8')]),_0x144d96),(_0x375275,_0x4b9aa1,_0x4f4fc3)=>_0x4f4fc3[_0x2820('0x74')](_0x6bbb97(_0x4b9aa1[_0x2820('0x8')]),_0x375275));},{'priority':_0x2820('0x20')}),_0x39ecf5[_0x2820('0xd')]['registerDescriptionCallback'](_0x326f54=>{if('insertion'!=_0x326f54[_0x2820('0x4c')]&&_0x2820('0x24')!=_0x326f54[_0x2820('0x4c')])return;const _0x3b1bf6=_0x326f54['getContainedElement']();if(null!=_0x3b1bf6&&_0x3b1bf6['is'](_0x2820('0x3f'),_0x2820('0x56'))){if(_0x2820('0x2d')==_0x326f54[_0x2820('0x4c')]){const _0x188923=_0x326f54[_0x2820('0x7e')]()[_0x2820('0x28')](_0x55f41b=>_0x55f41b['is'](_0x2820('0x34')))[_0x2820('0x55')](_0x4bd545=>_0x4bd545[_0x2820('0x2a')]);if(_0x188923[_0x2820('0x4d')])return{'type':'insertion','content':_0x374bfe(_0x47f24f,_0x2820('0x15'),_0x374bfe(_0x47f24f,_0x2820('0x49'),'\x22'+_0x188923[_0x2820('0x6e')]('\x20')+'\x22'))};}if(_0x2820('0x24')==_0x326f54[_0x2820('0x4c')]){const _0x528fe3=_0x326f54['getItems']()[_0x2820('0x28')](_0x569bcd=>_0x569bcd['is'](_0x2820('0x34')))[_0x2820('0x55')](_0x586d19=>_0x586d19[_0x2820('0x2a')]);if(_0x528fe3[_0x2820('0x4d')])return{'type':'deletion','content':_0x374bfe(_0x47f24f,_0x2820('0x41'),_0x374bfe(_0x47f24f,_0x2820('0x49'),'\x22'+_0x528fe3[_0x2820('0x6e')]('\x20')+'\x22'))};}}}),_0x39ecf5[_0x2820('0xd')][_0x2820('0x3b')](_0x4d84b5=>{if('tableRow'==_0x4d84b5['subType']){const _0x415bfe=_0x4d84b5['getItems']()[_0x2820('0x28')](_0x4134e0=>_0x4134e0['is'](_0x2820('0x34')))[_0x2820('0x55')](_0x44f063=>_0x44f063[_0x2820('0x2a')]),_0x2a6c89=this[_0x2820('0x2')](_0x4d84b5),_0x227185=_0x2a6c89['maxRow']-_0x2a6c89[_0x2820('0x35')]+0x1;if(_0x2820('0x2d')==_0x4d84b5[_0x2820('0x4c')])return _0x415bfe[_0x2820('0x4d')]?{'type':_0x2820('0x2d'),'content':_0x374bfe(_0x47f24f,'*Insert:*\x20%0',_0x374bfe(_0x47f24f,_0x2820('0x36'),[_0x227185,'\x22'+_0x415bfe[_0x2820('0x6e')]('\x20')+'\x22']))}:{'type':_0x2820('0x2d'),'content':_0x374bfe(_0x47f24f,_0x2820('0x15'),_0x374bfe(_0x47f24f,_0x2820('0x79'),_0x227185))};if('deletion'==_0x4d84b5['type'])return _0x415bfe[_0x2820('0x4d')]?{'type':_0x2820('0x24'),'content':_0x374bfe(_0x47f24f,'*Remove:*\x20%0',_0x374bfe(_0x47f24f,_0x2820('0x36'),[_0x227185,'\x22'+_0x415bfe[_0x2820('0x6e')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x374bfe(_0x47f24f,_0x2820('0x41'),_0x374bfe(_0x47f24f,'ELEMENT_TABLE_ROW',_0x227185))};}if(_0x2820('0x58')==_0x4d84b5[_0x2820('0x7a')]){const _0x1cde4a=_0x4d84b5[_0x2820('0x7e')]()['filter'](_0x1229c9=>_0x1229c9['is'](_0x2820('0x34')))[_0x2820('0x55')](_0x386218=>_0x386218[_0x2820('0x2a')]),_0x4c011e=this['_getSuggestionCoords'](_0x4d84b5),_0x3a0205=_0x4c011e[_0x2820('0x4a')]-_0x4c011e[_0x2820('0x84')]+0x1;if(_0x2820('0x2d')==_0x4d84b5[_0x2820('0x4c')])return _0x1cde4a[_0x2820('0x4d')]?{'type':_0x2820('0x2d'),'content':_0x374bfe(_0x47f24f,'*Insert:*\x20%0',_0x374bfe(_0x47f24f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a0205,'\x22'+_0x1cde4a[_0x2820('0x6e')]('\x20')+'\x22']))}:{'type':_0x2820('0x2d'),'content':_0x374bfe(_0x47f24f,_0x2820('0x15'),_0x374bfe(_0x47f24f,_0x2820('0x70'),_0x3a0205))};if(_0x2820('0x24')==_0x4d84b5['type'])return _0x1cde4a[_0x2820('0x4d')]?{'type':_0x2820('0x24'),'content':_0x374bfe(_0x47f24f,'*Remove:*\x20%0',_0x374bfe(_0x47f24f,_0x2820('0x1a'),[_0x3a0205,'\x22'+_0x1cde4a[_0x2820('0x6e')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x374bfe(_0x47f24f,_0x2820('0x41'),_0x374bfe(_0x47f24f,_0x2820('0x70'),_0x3a0205))};}}),_0x39ecf5[_0x2820('0x80')][_0x2820('0x5f')](_0x2820('0x2d'),'tableRow','discard',_0x41f0f1),_0x39ecf5[_0x2820('0x80')][_0x2820('0x5f')](_0x2820('0x24'),'tableRow',_0x2820('0x81'),_0x41f0f1),_0x39ecf5['_suggestionFactory']['registerCustomCallback']('insertion',_0x2820('0x58'),_0x2820('0x75'),_0x32687e),_0x39ecf5[_0x2820('0x80')]['registerCustomCallback'](_0x2820('0x24'),_0x2820('0x58'),_0x2820('0x81'),_0x32687e),_0x39ecf5[_0x2820('0x80')][_0x2820('0x5f')](_0x2820('0x2d'),_0x2820('0x58'),'join',_0x1da6e7),_0x39ecf5[_0x2820('0x80')][_0x2820('0x5f')](_0x2820('0x24'),_0x2820('0x58'),_0x2820('0x6e'),_0x1da6e7),_0x39ecf5[_0x2820('0x80')]['registerCustomCallback']('insertion',_0x2820('0x64'),_0x2820('0x6e'),_0xd931cd),_0x39ecf5[_0x2820('0x80')][_0x2820('0x5f')](_0x2820('0x24'),_0x2820('0x64'),'join',_0xd931cd);}[_0x2820('0x57')](){const _0x5ecc71=this[_0x2820('0x69')],_0x23b244=_0x5ecc71[_0x2820('0x3c')][_0x2820('0x61')][_0x2820('0x1')];return(_0x27a263,_0x11d987)=>{_0x5ecc71[_0x2820('0x3c')][_0x2820('0xc')](_0x178663=>{const {commandName:_0x547d67,commandParams:_0x5eaff8}=_0x11d987;let _0x1022be=_0x27a263[0x0][_0x2820('0x27')][_0x2820('0x29')];_0x5eaff8&&_0x5eaff8[0x0]&&!0x1===_0x5eaff8[0x0]['forceValue']&&(_0x1022be=_0x27a263[0x0][_0x2820('0x1c')][_0x2820('0x5b')]);const _0x4a9e9b=_0x178663['createRangeIn'](_0x1022be);if('$graveyard'==_0x4a9e9b[_0x2820('0x44')]['rootName'])return;const _0x2d2ce4=Array[_0x2820('0x33')](_0x23b244['getRanges']())['map'](_0x2d5569=>_0x3a116c['fromRange'](_0x2d5569));_0x178663[_0x2820('0x72')](_0x4a9e9b),_0x5ecc71['commands'][_0x2820('0x67')](_0x547d67)['refresh'](),_0x5eaff8[_0x2820('0x9')]({'forceDefaultExecution':!0x0}),_0x5ecc71[_0x2820('0x66')](_0x547d67,..._0x5eaff8);const _0x1d25d6=_0x2d2ce4['filter'](_0x15ef7b=>_0x2820('0x7d')!=_0x15ef7b['root']['rootName']);_0x1d25d6[_0x2820('0x4d')]>0x0&&_0x178663[_0x2820('0x72')](_0x1d25d6);for(const _0x477137 of _0x2d2ce4)_0x477137[_0x2820('0x32')]();});};}[_0x2820('0x25')](_0x5d5da2){const _0x2464fa=this[_0x2820('0x69')][_0x2820('0xb')][_0x2820('0x67')](_0x2820('0x4e'));let _0x1dbdf4=Number[_0x2820('0x77')],_0x1b6fb1=Number[_0x2820('0x40')],_0x5a5148=Number[_0x2820('0x77')],_0x39260a=Number[_0x2820('0x40')];for(const _0x319b4c of _0x5d5da2){if(_0x2820('0x7d')==_0x319b4c[_0x2820('0x44')][_0x2820('0x50')])continue;const {row:_0x1ce506,column:_0x2073ed}=_0x2464fa['getCellLocation'](_0x319b4c),_0x244a3b=_0x319b4c[_0x2820('0x47')](_0x2820('0x19'))?_0x319b4c['getAttribute'](_0x2820('0x19'))-0x1:0x0,_0x2137d1=_0x319b4c[_0x2820('0x47')](_0x2820('0x2e'))?_0x319b4c[_0x2820('0x4b')](_0x2820('0x2e'))-0x1:0x0;_0x1dbdf4=_0x1ce506<_0x1dbdf4?_0x1ce506:_0x1dbdf4,_0x1b6fb1=_0x1ce506+_0x244a3b>_0x1b6fb1?_0x1ce506+_0x244a3b:_0x1b6fb1,_0x5a5148=_0x2073ed<_0x5a5148?_0x2073ed:_0x5a5148,_0x39260a=_0x2073ed+_0x2137d1>_0x39260a?_0x2073ed+_0x2137d1:_0x39260a;}return{'minRow':_0x1dbdf4,'maxRow':_0x1b6fb1,'minColumn':_0x5a5148,'maxColumn':_0x39260a};}[_0x2820('0x46')](){const _0x3bf833=this[_0x2820('0x69')],_0x31841c=_0x3bf833[_0x2820('0xb')]['get'](_0x2820('0xa')),_0x31d9eb=_0x3bf833[_0x2820('0xb')][_0x2820('0x67')]('TableUtils');this[_0x2820('0x78')]=new Set(),_0x3bf833[_0x2820('0x3c')][_0x2820('0x61')]['on'](_0x2820('0x62'),()=>{const _0x55619a=Array[_0x2820('0x33')](_0x3bf833[_0x2820('0x3c')][_0x2820('0x61')][_0x2820('0x53')][_0x2820('0x2f')]());for(const {name:_0x17c584,data:_0x5ae759}of _0x55619a){const {group:_0x1e834d,id:_0x4c4ea2,subType:_0xf2706c}=_0x31841c[_0x2820('0x1e')](_0x17c584);if('suggestion'!=_0x1e834d)continue;if(null!=_0x5ae759[_0x2820('0x7b')])continue;const _0x40e8a8=_0x31841c['getSuggestion'](_0x4c4ea2);this[_0x2820('0x14')]['includes'](_0xf2706c)&&this[_0x2820('0x78')][_0x2820('0x12')](_0x40e8a8);}},{'priority':_0x2820('0x18')});const _0x4942a4=(_0x5f2f56,_0x324be4)=>{let _0x2e6c9f=!0x1;const _0x2cb253=_0x324be4[_0x2820('0x17')](_0x5f2f56),_0x3d74c6=_0x5f2f56['findAncestor'](_0x2820('0x56')),_0x34b28e=_0x31d9eb[_0x2820('0x76')](_0x5f2f56);for(const _0x2154dc of this['_tableSuggestions']){const _0x397a6b=_0x2154dc[_0x2820('0x7a')],_0x5c504a=_0x397a6b[_0x2820('0x73')](_0x2820('0x51')),_0x231037=_0x397a6b[_0x2820('0x6f')](_0x5c504a?0xa:0x5),_0x396014=_0x231037[_0x2820('0x3e')](),_0x5cf069=_0x396014[_0x2820('0x6f')](0x0,0x3)+_0x2820('0xe'),_0x12d9bf=_0x2820('0x23')+_0x231037,_0x3351a7=_0x2820('0x4f')+_0x231037;if(!_0x2154dc['isInContent'])continue;if(_0x3d74c6!=_0x2154dc[_0x2820('0x1d')]()[_0x2820('0x1c')][_0x2820('0x43')](_0x2820('0x56')))continue;if(_0x2154dc['isIntersectingWithRange'](_0x2cb253))continue;const _0x5953ab=_0x5f2f56[_0x2820('0x47')](_0x5cf069)?_0x5f2f56[_0x2820('0x4b')](_0x5cf069)-0x1:0x0,_0x2a496f=this[_0x2820('0x2')](_0x2154dc),_0xf9fa45=_0x2a496f[_0x12d9bf],_0x1d2674=_0x2a496f[_0x3351a7];_0xf9fa45<=_0x34b28e[_0x396014]&&_0x34b28e[_0x396014]+_0x5953ab<=_0x1d2674&&(_0x2154dc[_0x2820('0x2b')](_0x2cb253),_0x2e6c9f=!0x0);}return _0x2e6c9f;};_0x3bf833[_0x2820('0x3c')]['document'][_0x2820('0x7f')](_0x32292d=>{let _0x5cc759=!0x1;for(const _0x116123 of _0x3bf833[_0x2820('0x3c')][_0x2820('0x61')][_0x2820('0x53')][_0x2820('0xf')]())if(_0x2820('0x10')==_0x116123['type']){if('tableRow'==_0x116123['name'])for(const _0x4b492d of _0x116123[_0x2820('0x1f')][_0x2820('0x5b')][_0x2820('0x6c')]())_0x5cc759=_0x5cc759||_0x4942a4(_0x4b492d,_0x32292d);else'tableCell'==_0x116123[_0x2820('0x63')]&&(_0x5cc759=_0x5cc759||_0x4942a4(_0x116123[_0x2820('0x1f')][_0x2820('0x5b')],_0x32292d));}return _0x5cc759;});}[_0x2820('0x2')](_0x3114c0){return this['_getCoordsForCells'](_0x3114c0['getRanges']()[_0x2820('0x55')](_0x5f5a0e=>_0x5f5a0e[_0x2820('0x1c')]['nodeAfter']));}}function se(_0x111810){return Array[_0x2820('0x33')](new Set(_0x111810)[_0x2820('0x6d')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25f0=['TableCaptionEditing','get','toggleTableCaption','afterInit','TrackChangesEditing','plugins','enableCommand','editor','requires','has'];(function(_0x3c41f3,_0x25f020){const _0x5b9cea=function(_0x453a7c){while(--_0x453a7c){_0x3c41f3['push'](_0x3c41f3['shift']());}};_0x5b9cea(++_0x25f020);}(_0x25f0,0x161));const _0x5b9c=function(_0x3c41f3,_0x25f020){_0x3c41f3=_0x3c41f3-0x0;let _0x5b9cea=_0x25f0[_0x3c41f3];return _0x5b9cea;};import{Plugin as _0x250d69}from'ckeditor5/src/core';import _0xc0c2e9 from'./table';export default class bt extends _0x250d69{static get[_0x5b9c('0x5')](){return[_0xc0c2e9];}[_0x5b9c('0x0')](){const _0x4f0d6f=this[_0x5b9c('0x4')];if(!_0x4f0d6f['plugins'][_0x5b9c('0x6')](_0x5b9c('0x7')))return;_0x4f0d6f[_0x5b9c('0x2')][_0x5b9c('0x8')](_0x5b9c('0x1'))[_0x5b9c('0x3')](_0x5b9c('0x9'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4b03=['nodeAfter','*Replace\x20table\x20cells*','isEmpty','tablePasteChainId','insertionRanges','createTableWalker','element','row','removeMarker','deletion','_suggestionFactory','removeColumns','ck-suggestion-marker--active','getRanges','trackChanges','name','tableCellBorderStyle','suggestion','getItems','getColumns','clipboardOutput','markerName','documentSelection','set','registerDescriptionCallback','registerPostFixer','change','getChangedMarkers','getSelectionAffectedTableCells','getRowIndexes','end','some','type','_createdBatches','insert','paragraph','differ','getContainedElement','markerAttributes','subType','return','first','document','discard','endRow','tablePasteCell','tableCellBorderColor','TrackChangesEditing','rowInsertionIndexes','listenTo','view','plugins','containsRange','markerToHighlight','previousSibling','nextSibling','schema','getChanges','start','suggestionLoaded','getRange','redo','requires','updateMarker','showSuggestionHighlights','removeMarkers','getShiftedBy','formatBlock','accept','$graveyard','rowInsertionRanges','getSuggestions','stop','cell','oldRange','attributes','low','previous','forceDefaultExecution','getChildren','tableCell','last','wrap','tableCellVerticalAlignment','tableCellSuggestion','tablePasteRow','tablePaste','filter','high','rows','tablePasteColumn','suggestion-td','reduce','includes','_descriptionFactory','insertRows','position','_isForcedDefaultExecutionBlock','getTableIfOnlyTableInContent','commands','map','_replaceTableSlotCell','createRangeIn','getChild','table','push','root','tableCellHorizontalAlignment','get','newRange','markMultiRangeDeletion','elementToElement','move','fill','getRows','startsWith','createPositionBefore','Users','fromEntries','isInContent','rootName','columnInsertionRanges','from','hasSuggestion','author','_splitMarkerName','columnInsertionIndexes','removeRows','TableUtils','deletionRanges','find','suggestion:formatBlock:tablePasteCell','insertColumns','getAttributes','has','register','markMultiRangeInsertion','getAllAdjacentSuggestions','tableCellBorderWidth','options','createRange','findAncestor','remove','getSuggestionCallback','createElement','columns','createRangeOn','getColumnIndexes','length','keys','for','cells','tableCellPadding','dataDowncast','registerCustomCallback','getMarkers','insertion','insertContent','markMultiRangeBlockFormat','editor','TableClipboard','unwrap','add','content','join','isEqual','setAttributes','value','model','conversion'];(function(_0x56a170,_0x4b0376){const _0x34b1c2=function(_0xd499d2){while(--_0xd499d2){_0x56a170['push'](_0x56a170['shift']());}};_0x34b1c2(++_0x4b0376);}(_0x4b03,0x1d0));const _0x34b1=function(_0x56a170,_0x4b0376){_0x56a170=_0x56a170-0x0;let _0x34b1c2=_0x4b03[_0x56a170];return _0x34b1c2;};import{getTranslation as _0x224e57}from'../utils/common-translations';import{Plugin as _0xa3052f}from'ckeditor5/src/core';import _0x3dac4d from'./table';import{uid as _0x27d298,priorities as _0x14a098}from'ckeditor5/src/utils';const ne=[_0x34b1('0xe'),_0x34b1('0x5c'),_0x34b1('0x3e'),_0x34b1('0x99'),_0x34b1('0x81'),'tableCellBackgroundColor',_0x34b1('0x1c')],le=Object[_0x34b1('0xa4')](ne[_0x34b1('0x92')](_0x3d9584=>[_0x3d9584,null]));export default class mt extends _0xa3052f{static get[_0x34b1('0x6c')](){return[_0x3dac4d];}['afterInit'](){const _0x1a2db5=this[_0x34b1('0x23')];if(!_0x1a2db5[_0x34b1('0x61')][_0x34b1('0xa')](_0x34b1('0x24')))return;const _0x5ce15c=_0x1a2db5[_0x34b1('0x61')]['get'](_0x34b1('0x5d')),_0xaeac72=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0x4')),_0x33a721=_0x1a2db5['plugins'][_0x34b1('0x9a')](_0x3dac4d),_0x5af848=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0x24'));_0x33a721['_tablePostFixingSubtypes'][_0x34b1('0x97')]('tablePasteRow',_0x34b1('0x88')),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x66')][_0x34b1('0xb')](_0x34b1('0x82'),{'allowIn':_0x34b1('0x7e'),'allowContentOf':_0x34b1('0x7e'),'isLimit':!0x0}),_0x1a2db5[_0x34b1('0x2d')][_0x34b1('0x9d')]({'model':_0x34b1('0x82'),'view':_0x34b1('0x89')});let _0x1508b3=null;_0x1a2db5['model']['on'](_0x34b1('0x21'),(_0xb3a8ec,_0x26d01a)=>{const [_0x2d7e33,_0x26a530]=_0x26d01a,_0x3fa77d=_0x26d01a[_0x26d01a[_0x34b1('0x18')]-0x1];_0x3fa77d&&_0x3fa77d[_0x34b1('0x7c')]||_0x5ce15c[_0x34b1('0x8f')]||this[_0x34b1('0x23')][_0x34b1('0x91')]['get'](_0x34b1('0x3c'))[_0x34b1('0x2b')]&&function(_0x2de4c5,_0x21ddd9,_0x57cb00,_0x509381,_0x50e655){if(_0x21ddd9&&!_0x21ddd9['is'](_0x34b1('0x44')))return!0x1;const _0x2e7cd6=_0x50e655[_0x34b1('0x90')](_0x2de4c5,_0x57cb00);if(!_0x2e7cd6||!ae(_0x2e7cd6,null,_0x509381))return!0x1;const _0x39687c=_0x509381[_0x34b1('0x4a')](_0x57cb00[_0x34b1('0x58')]['selection']);if(!_0x39687c[_0x34b1('0x18')])return!0x1;const _0x7ae198=_0x39687c[0x0][_0x34b1('0x11')](_0x34b1('0x96')),_0xfce058=_0x509381[_0x34b1('0x4b')](_0x39687c),_0x118557=_0x509381[_0x34b1('0x17')](_0x39687c),_0x29b6b1={'startRow':_0xfce058[_0x34b1('0x57')],'endRow':_0xfce058[_0x34b1('0x7f')],'startColumn':_0x118557[_0x34b1('0x57')],'endColumn':_0x118557[_0x34b1('0x7f')]};return 0x1==_0x39687c[_0x34b1('0x18')]&&(_0x29b6b1[_0x34b1('0x5a')]+=_0x509381[_0x34b1('0xa0')](_0x2e7cd6)-0x1,_0x29b6b1['endColumn']+=_0x509381[_0x34b1('0x41')](_0x2e7cd6)-0x1),ae(_0x7ae198,_0x29b6b1,_0x509381);}(_0x2d7e33,_0x26a530,_0x1a2db5[_0x34b1('0x2c')],_0xaeac72,_0x5af848)&&(_0xb3a8ec['stop'](),_0x1508b3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1a2db5['model'][_0x34b1('0x48')](()=>{_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x21')](_0x26d01a[0x0],_0x26d01a[0x1],_0x26d01a[0x2],_0x26d01a[0x3],{'forceDefaultExecution':!0x0});const _0x3d34f5=_0x27d298(),{rowInsertionRanges:_0x15761a,columnInsertionRanges:_0x1a952f,insertionRanges:_0x12b284,deletionRanges:_0x4993ee,cells:_0x228af0}=_0x1508b3;_0x15761a[_0x34b1('0x18')]&&_0x5ce15c[_0x34b1('0xc')](_0x15761a,_0x34b1('0x83'),{'tablePasteChainId':_0x3d34f5}),_0x1a952f[_0x34b1('0x18')]&&_0x5ce15c[_0x34b1('0xc')](_0x1a952f,_0x34b1('0x88'),{'tablePasteChainId':_0x3d34f5}),_0x12b284['length']&&_0x5ce15c[_0x34b1('0xc')](_0x12b284,'tablePaste',{'tablePasteChainId':_0x3d34f5,'skipNestingCheck':!0x0}),_0x4993ee[_0x34b1('0x18')]&&_0x5ce15c[_0x34b1('0x9c')](_0x4993ee,'tablePaste',{'tablePasteChainId':_0x3d34f5,'skipNestingCheck':!0x0});const _0x5dd8cd=_0x5ce15c[_0x34b1('0x22')](_0x228af0['map'](({element:_0x4878a7})=>_0x4878a7),{'formatGroupId':_0x27d298()},[],_0x34b1('0x5b'),{'tablePasteChainId':_0x3d34f5});if(_0x5dd8cd){const _0x3d475e=_0x5dd8cd[_0x34b1('0x1f')](),_0x5928e2=[];for(const {element:_0x56908b,attributes:_0x184555}of _0x228af0){if(!_0x184555)continue;const _0x4d36ec=_0x1a2db5['model'][_0x34b1('0x16')](_0x56908b),_0xa7dd22=_0x3d475e['find'](_0x131d35=>_0x131d35[_0x34b1('0x6a')]()[_0x34b1('0x29')](_0x4d36ec));_0xa7dd22&&_0x5928e2['push']([_0xa7dd22[_0x34b1('0x3d')],_0x184555]);}_0x5928e2['length']&&_0x5dd8cd['setAttribute'](_0x34b1('0x54'),Object[_0x34b1('0xa4')](_0x5928e2));}_0x1508b3=null;}));},{'priority':_0x14a098[_0x34b1('0x86')]+0xa}),_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0x24'))['on'](_0x34b1('0x93'),(_0x1559ba,_0x105870)=>{const [_0x2de128,_0x1c6ec6,,_0x3581fa]=_0x105870;if(!_0x1508b3)return;_0x1559ba[_0x34b1('0x76')]();const _0x1fb37a=_0x2de128[_0x34b1('0x77')],_0x4f8e2e=_0x1c6ec6,_0x5cff53=se(_0x1fb37a),_0x7e6d7f=se(_0x4f8e2e);_0x1559ba[_0x34b1('0x56')]=_0x1fb37a;let _0x53f802=null,_0x4f8107=null;if(_0x7e6d7f||_0x5cff53){if(_0x5cff53&&!_0x7e6d7f){_0x3581fa['remove'](_0x1fb37a['getChild'](0x0));for(const _0x5a2957 of Array[_0x34b1('0xa8')](_0x4f8e2e[_0x34b1('0x7d')]()))_0x3581fa[_0x34b1('0x50')](_0x5a2957,_0x1fb37a,'end');const _0x40e56e=_0x1508b3[_0x34b1('0x5e')]['includes'](_0x2de128[_0x34b1('0x35')]),_0x3c0322=_0x1508b3[_0x34b1('0x2')][_0x34b1('0x8b')](_0x2de128['column']);_0x40e56e||_0x3c0322||(_0x53f802=_0x3581fa[_0x34b1('0x94')](_0x1fb37a));}else _0x7e6d7f&&!_0x5cff53&&(_0x4f8107=_0x3581fa[_0x34b1('0x94')](_0x1fb37a));}else{const _0x42a8ed=_0x3581fa[_0x34b1('0x14')]('tableCellSuggestion'),_0x5c0372=_0x3581fa['createElement'](_0x34b1('0x82'));_0x3581fa[_0x34b1('0x80')](_0x3581fa[_0x34b1('0x94')](_0x1fb37a),_0x5c0372),_0x3581fa['insert'](_0x42a8ed,_0x1fb37a,0x0);for(const _0xc7d27 of Array[_0x34b1('0xa8')](_0x4f8e2e[_0x34b1('0x7d')]()))_0x3581fa[_0x34b1('0x50')](_0xc7d27,_0x42a8ed,_0x34b1('0x4c'));_0x53f802=_0x3581fa[_0x34b1('0x16')](_0x42a8ed),_0x4f8107=_0x3581fa['createRangeOn'](_0x5c0372);}const _0x68318f=Array[_0x34b1('0xa8')](_0x4f8e2e[_0x34b1('0x9')]())[_0x34b1('0x85')](([_0x4242e0])=>ne[_0x34b1('0x8b')](_0x4242e0));_0x1508b3[_0x34b1('0x1b')][_0x34b1('0x97')]({'element':_0x1fb37a,'attributes':_0x68318f[_0x34b1('0x18')]?Object[_0x34b1('0xa4')](_0x68318f):null}),_0x53f802&&_0x1508b3[_0x34b1('0x32')][_0x34b1('0x97')](_0x53f802),_0x4f8107&&_0x1508b3[_0x34b1('0x5')][_0x34b1('0x97')](_0x4f8107);},{'priority':_0x34b1('0x86')}),_0xaeac72['on'](_0x34b1('0x8'),(_0x34ce12,_0x13e536)=>{const [_0x11195e,_0x5cdd33={}]=_0x13e536;if(!_0x1508b3)return;const _0x34a920=_0x5cdd33['at']||0x0,_0x5be945=_0x5cdd33[_0x34b1('0x15')]||0x1;_0x1508b3[_0x34b1('0x2')]=new Array(_0x5be945)[_0x34b1('0x9f')](_0x34a920)[_0x34b1('0x92')]((_0x29a551,_0x322fbd)=>_0x29a551+_0x322fbd);for(const {cell:_0x562fb1}of _0xaeac72['createTableWalker'](_0x11195e,{'startColumn':_0x34a920,'endColumn':_0x34a920+_0x5be945-0x1}))_0x1508b3[_0x34b1('0xa7')][_0x34b1('0x97')](_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x16')](_0x562fb1));},{'priority':_0x34b1('0x7a')}),_0xaeac72['on'](_0x34b1('0x8d'),(_0x12001c,_0x53522e)=>{const [_0x56b2a3,_0x1b398d={}]=_0x53522e;if(!_0x1508b3)return;const _0x52a775=_0x1b398d['at']||0x0,_0x1b4f4d=_0x1b398d[_0x34b1('0x87')]||0x1;_0x1508b3[_0x34b1('0x5e')]=new Array(_0x1b4f4d)[_0x34b1('0x9f')](_0x52a775)[_0x34b1('0x92')]((_0x5714b6,_0x542a49)=>_0x5714b6+_0x542a49);for(const {cell:_0x2b7263}of _0xaeac72[_0x34b1('0x33')](_0x56b2a3,{'startRow':_0x52a775,'endRow':_0x52a775+_0x1b4f4d-0x1}))_0x1508b3[_0x34b1('0x74')][_0x34b1('0x97')](_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x16')](_0x2b7263));},{'priority':_0x34b1('0x7a')}),_0x5ce15c[_0x34b1('0x8c')][_0x34b1('0x46')](_0x314ea2=>{if(_0x314ea2['subType']&&_0x314ea2[_0x34b1('0x55')]['startsWith'](_0x34b1('0x84')))return _0x314ea2['previous']?{}:{'type':_0x34b1('0x20'),'content':_0x224e57(_0x1a2db5['locale'],_0x34b1('0x2f'))};});const _0x210324=()=>{};for(const _0x2879c9 of['tablePaste',_0x34b1('0x88'),_0x34b1('0x83'),'tablePasteCell'])_0x5ce15c['_suggestionFactory'][_0x34b1('0x1e')](_0x34b1('0x20'),_0x2879c9,_0x34b1('0x28'),_0x210324),_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')]('deletion',_0x2879c9,'join',_0x210324);_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')]('formatBlock','tablePasteCell',_0x34b1('0x59'),_0x210324),_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')](_0x34b1('0x71'),_0x34b1('0x5b'),_0x34b1('0x72'),(_0x406f1a,_0x477505,_0x26b9ec)=>{const _0x1bb5a6=_0x406f1a[_0x34b1('0x92')](_0x2d30d5=>_0x2d30d5[_0x34b1('0x53')]())[_0x34b1('0x85')](_0x3b54e8=>_0x3b54e8),_0x2528fb=new Map(_0x1bb5a6['map'](_0x3a364d=>[_0x3a364d,null]));if(_0x1508b3)for(const {element:_0x2a3a1d,attributes:_0x1b98d8}of _0x1508b3[_0x34b1('0x1b')])_0x1b98d8&&_0x2528fb[_0x34b1('0x45')](_0x2a3a1d,_0x1b98d8);else{if(_0x26b9ec&&_0x26b9ec['markerAttributes'])for(const [_0xac8a10,_0x4a7550]of Object['entries'](_0x26b9ec[_0x34b1('0x54')])){const _0x30571c=_0x1a2db5['model']['markers'][_0x34b1('0x9a')](_0xac8a10),_0x2882f1=_0x30571c?_0x30571c['getRange']()[_0x34b1('0x53')]():null;_0x2882f1&&_0x2528fb[_0x34b1('0x45')](_0x2882f1,_0x4a7550);}}_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x48')](_0x572ae2=>{for(const [_0x2bba89,_0xef5825]of _0x2528fb)_0x572ae2[_0x34b1('0x2a')]({...le,..._0xef5825},_0x2bba89);});});const _0x51544e=(_0x228933,_0x4aa192)=>{_0x5ce15c[_0x34b1('0x38')]['registerCustomCallback'](_0x228933,'tablePaste',_0x4aa192,(_0x4ab897,_0xc3ca8d,_0x2ddb28)=>{_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x48')](_0x302a05=>{const _0x4f52c5=[];for(const _0x51ff3e of _0x4ab897){const _0x394f9f=_0x51ff3e[_0x34b1('0x68')][_0x34b1('0x2e')];_0x394f9f['is']('element','tableCellSuggestion')&&_0x4f52c5['push'](_0x394f9f);}_0x5ce15c['_suggestionFactory'][_0x34b1('0x13')](_0x228933,null,_0x4aa192)(_0x4ab897,_0xc3ca8d,_0x2ddb28);for(const _0xb2b877 of _0x4f52c5)_0x34b1('0x73')!=_0xb2b877[_0x34b1('0x98')][_0x34b1('0xa6')]&&_0x302a05[_0x34b1('0x25')](_0xb2b877);});});};_0x51544e(_0x34b1('0x20'),_0x34b1('0x72')),_0x51544e(_0x34b1('0x20'),'discard'),_0x51544e('deletion',_0x34b1('0x72')),_0x51544e(_0x34b1('0x37'),_0x34b1('0x59')),_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')](_0x34b1('0x20'),_0x34b1('0x83'),_0x34b1('0x59'),_0x1c50a9=>{const _0x3af8d0=_0x1c50a9[_0x34b1('0x92')](_0x19e832=>_0x19e832[_0x34b1('0x53')]()),_0x2b0e19=_0x3af8d0[0x0]['findAncestor'](_0x34b1('0x96')),{minRow:_0x5c03fa,maxRow:_0x5134e0}=_0x33a721['_getCoordsForCells'](_0x3af8d0);_0xaeac72[_0x34b1('0x3')](_0x2b0e19,{'at':_0x5c03fa,'rows':_0x5134e0-_0x5c03fa+0x1});}),_0x5ce15c['_suggestionFactory'][_0x34b1('0x1e')]('insertion',_0x34b1('0x88'),_0x34b1('0x59'),_0x277ef3=>{const _0x4fe0c5=_0x277ef3[_0x34b1('0x92')](_0x48710d=>_0x48710d[_0x34b1('0x53')]()),_0x586137=_0x4fe0c5[0x0][_0x34b1('0x11')](_0x34b1('0x96')),{minColumn:_0x13a5f6,maxColumn:_0x529267}=_0x33a721['_getCoordsForCells'](_0x4fe0c5);_0xaeac72[_0x34b1('0x39')](_0x586137,{'at':_0x13a5f6,'columns':_0x529267-_0x13a5f6+0x1});});const _0x31c0d4=(_0x19abde,_0x59cb01)=>{if(!_0x59cb01[_0x34b1('0x55')]||!_0x59cb01[_0x34b1('0x55')]['startsWith']('tablePaste'))return;const _0x32416e=_0x59cb01[_0x34b1('0x79')]['tablePasteChainId'],_0xc77285=_0x5ce15c[_0x34b1('0x75')]()[_0x34b1('0x85')](_0x1171ff=>_0x1171ff[_0x34b1('0xa5')]&&_0x1171ff[_0x34b1('0x79')]&&_0x1171ff[_0x34b1('0x79')]['tablePasteChainId']==_0x32416e);_0xc77285['length']&&_0x59cb01[_0x34b1('0xd')]()[_0x34b1('0x18')]!=_0xc77285[_0x34b1('0x18')]&&_0xc77285[_0x34b1('0x8a')]((_0x1fc5be,_0x1ebf1a)=>(_0x1fc5be['next']=_0x1ebf1a,_0x1ebf1a[_0x34b1('0x7b')]=_0x1fc5be,_0x1ebf1a));};function _0x311b80(_0x145cce,{showActiveMarker:_0x31d76=!0x0}={}){const {id:_0x5c3509}=_0x5ce15c['_splitMarkerName'](_0x145cce[_0x34b1('0x43')]),_0x5d8010=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x32086e=_0x5ce15c['activeMarkers'][_0x34b1('0x8b')](_0x145cce[_0x34b1('0x43')]);return _0x32086e&&_0x5d8010[_0x34b1('0x97')](_0x34b1('0x3a')),{'classes':_0x5d8010,'attributes':{'data-suggestion':_0x5c3509},'priority':_0x32086e&&_0x31d76?0xbc2:0xbb8};}_0x5ce15c['on'](_0x34b1('0x69'),_0x31c0d4,{'priority':_0x34b1('0x86')}),_0x5ce15c['on']('suggestionUnloaded',_0x31c0d4,{'priority':_0x34b1('0x86')}),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')]['registerPostFixer'](()=>{let _0x485393=!0x1;const _0x5e522a=Array[_0x34b1('0xa8')](_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')][_0x34b1('0x52')][_0x34b1('0x49')]());for(const {name:_0x3b0fb0,data:_0x42d58f}of _0x5e522a){const {group:_0x3b7585,type:_0x52df8e,id:_0x5adf52}=_0x5ce15c[_0x34b1('0x1')](_0x3b0fb0);if(_0x34b1('0x3f')!=_0x3b7585||_0x34b1('0x37')!=_0x52df8e||_0x42d58f['oldRange'])continue;if(!_0x5ce15c[_0x34b1('0xa9')](_0x5adf52))continue;const _0xdcf5a=_0x5ce15c['getSuggestion'](_0x5adf52)[_0x34b1('0x3b')](),_0x12c3f6=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0xa3'))['me'];for(const _0xa37f87 of _0x5ce15c[_0x34b1('0x75')]()){if(!_0xa37f87[_0x34b1('0xa5')]||_0xa37f87['author']!=_0x12c3f6)continue;if('formatBlock'!=_0xa37f87[_0x34b1('0x4e')]||_0x34b1('0x5b')!=_0xa37f87[_0x34b1('0x55')])continue;if(_0xa37f87['getRanges']()['every'](_0x480560=>_0xdcf5a[_0x34b1('0x4d')](_0x77e562=>_0x77e562['containsRange'](_0x480560,!0x0))))for(const _0xb76e72 of _0xa37f87[_0x34b1('0xd')]())_0xb76e72[_0x34b1('0xa5')]&&(_0xb76e72['discard'](),_0x485393=!0x0);}}return _0x485393;}),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')][_0x34b1('0x47')](_0x53b311=>{const _0x4d7e0c=_0x1a2db5[_0x34b1('0x91')]['get'](_0x34b1('0x6b'));if(!_0x4d7e0c||!_0x4d7e0c[_0x34b1('0x4f')]['has'](_0x53b311['batch']))return!0x1;let _0x1cffc7=!0x1;const _0xd44fc4=_0x1a2db5['plugins'][_0x34b1('0x9a')](_0x34b1('0xa3'))['me'],_0x28b985=_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')]['differ'][_0x34b1('0x67')](),_0x4c3a19=Array[_0x34b1('0xa8')](_0x1a2db5[_0x34b1('0x2c')]['document'][_0x34b1('0x52')][_0x34b1('0x49')]())[_0x34b1('0x85')](({name:_0x5eb327,data:_0x25f8d6})=>{const {group:_0x394501,subType:_0x185ff2,authorId:_0x1fd069}=_0x5ce15c[_0x34b1('0x1')](_0x5eb327);return'suggestion'==_0x394501&&_0x34b1('0x84')==_0x185ff2&&_0x1fd069==_0xd44fc4['id']&&!_0x25f8d6[_0x34b1('0x78')];});for(const _0x2804a0 of _0x28b985){if(_0x34b1('0x50')!=_0x2804a0[_0x34b1('0x4e')]||_0x34b1('0x82')!=_0x2804a0[_0x34b1('0x3d')]||0x1!=_0x2804a0[_0x34b1('0x18')])continue;const _0x1e1c1c=_0x53b311[_0x34b1('0x10')](_0x2804a0['position'],_0x2804a0[_0x34b1('0x8e')][_0x34b1('0x70')](0x1));if(!_0x4c3a19[_0x34b1('0x6')](({data:_0x514646})=>_0x514646[_0x34b1('0x9b')][_0x34b1('0x29')](_0x1e1c1c)))for(const {name:_0x43b4e7,data:_0x3e1fc3}of _0x4c3a19)if(_0x1e1c1c[_0x34b1('0x62')](_0x3e1fc3[_0x34b1('0x9b')])){_0x53b311[_0x34b1('0x6d')](_0x43b4e7,{'range':_0x1e1c1c}),_0x1cffc7=!0x0;break;}}return _0x1cffc7;}),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')]['registerPostFixer'](_0x556f51=>{let _0x5ed4cf=!0x1;const _0x1ba57a=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0xa3'))['me'],_0x295d17=_0x5ce15c['getSuggestions']()[_0x34b1('0x85')](_0x46a9f6=>_0x46a9f6[_0x34b1('0xa5')]&&_0x46a9f6[_0x34b1('0x0')]==_0x1ba57a),_0x589141=new Set(),_0x2d8887=new Set();for(const _0x598e48 of _0x295d17)if(_0x34b1('0x84')==_0x598e48[_0x34b1('0x55')])for(const _0xaf15f2 of _0x598e48[_0x34b1('0x1f')]()){const _0x2cf568=_0xaf15f2['getRange']()[_0x34b1('0x53')]();if(_0x2cf568){if(_0x2cf568['is'](_0x34b1('0x34'),_0x34b1('0x82'))&&se(_0x2cf568)){_0x598e48[_0x34b1('0x36')](_0xaf15f2['name']),_0x589141[_0x34b1('0x26')](_0x2cf568),_0x5ed4cf=!0x0;const _0x438b32=_0x2cf568[_0x34b1('0x65')],_0x54ea5d=_0x2cf568[_0x34b1('0x64')],_0x4fab5b=_0x438b32&&_0x438b32['is'](_0x34b1('0x34'),_0x34b1('0x82')),_0x2d4efe=_0x54ea5d&&_0x54ea5d['is'](_0x34b1('0x34'),_0x34b1('0x82'));_0x4fab5b&&!_0x589141['has'](_0x438b32)&&_0x2d8887['add'](_0x438b32),_0x2d4efe&&!_0x589141[_0x34b1('0xa')](_0x54ea5d)&&_0x2d8887[_0x34b1('0x26')](_0x54ea5d);}else _0x2cf568['is']('element','paragraph')&&_0x2cf568[_0x34b1('0x30')]&&(_0x598e48['removeMarker'](_0xaf15f2[_0x34b1('0x3d')]),_0x5ed4cf=!0x0);}}else{if(_0x34b1('0x5b')==_0x598e48[_0x34b1('0x55')]){if(!_0x598e48[_0x34b1('0x79')]||!_0x598e48[_0x34b1('0x79')][_0x34b1('0x31')])continue;const _0x2bf9be=_0x598e48[_0x34b1('0x79')][_0x34b1('0x54')];if(_0x2bf9be&&Object[_0x34b1('0x19')](_0x2bf9be)[_0x34b1('0x18')])continue;const _0x52497d=_0x598e48[_0x34b1('0x79')][_0x34b1('0x31')];let _0x3d26a7=!0x0,_0x361805=!0x0;for(const _0x4b0280 of _0x295d17)if(_0x4b0280[_0x34b1('0x55')]&&_0x4b0280['subType'][_0x34b1('0xa1')](_0x34b1('0x84'))){if(!_0x4b0280[_0x34b1('0x79')]['tablePasteChainId']){_0x361805=!0x1;break;}if(_0x4b0280['id']!=_0x598e48['id']&&_0x4b0280[_0x34b1('0x79')][_0x34b1('0x31')]==_0x52497d){_0x3d26a7=!0x1;break;}}_0x361805&&_0x3d26a7&&(_0x598e48[_0x34b1('0x6f')](),_0x5ed4cf=!0x0);}}for(const _0x2fc8c2 of _0x589141)_0x556f51[_0x34b1('0x12')](_0x2fc8c2);for(const _0x119c5f of _0x2d8887)_0x556f51[_0x34b1('0x25')](_0x119c5f);return _0x5ed4cf;}),_0x1a2db5[_0x34b1('0x2d')]['for']('editingDowncast')[_0x34b1('0x63')]({'model':_0x34b1('0x7'),'view':_0x311b80,'converterPriority':'high'}),_0x1a2db5['conversion'][_0x34b1('0x1a')](_0x34b1('0x1d'))[_0x34b1('0x63')]({'model':_0x34b1('0x7'),'view':(_0x3b05da,_0x153708)=>{if(_0x153708[_0x34b1('0xf')][_0x34b1('0x6e')])return _0x311b80(_0x3b05da,{'showActiveMarker':!0x1});},'converterPriority':_0x34b1('0x86')});const _0x226789=_0x1a2db5['editing'][_0x34b1('0x60')];this[_0x34b1('0x5f')](_0x226789[_0x34b1('0x58')],_0x34b1('0x42'),(_0x4c37a4,_0x3aea1c)=>{const _0x4f25ff=[];for(const _0x565cd6 of _0x226789['createRangeIn'](_0x3aea1c[_0x34b1('0x27')])[_0x34b1('0x40')]())_0x565cd6['is'](_0x34b1('0x34'),_0x34b1('0x89'))&&_0x4f25ff[_0x34b1('0x97')](_0x565cd6);_0x226789[_0x34b1('0x48')](_0x41bfa0=>{for(const _0x5112fb of _0x4f25ff)_0x41bfa0[_0x34b1('0x9e')](_0x41bfa0['createRangeIn'](_0x5112fb),_0x41bfa0[_0x34b1('0xa2')](_0x5112fb)),_0x41bfa0['remove'](_0x5112fb);});});}}function se(_0x1cddaa){if(_0x1cddaa[_0x34b1('0x30')])return!0x0;const _0x427475=_0x1cddaa[_0x34b1('0x95')](0x0);return _0x427475['is'](_0x34b1('0x34'),_0x34b1('0x51'))&&_0x427475[_0x34b1('0x30')];}function ae(_0x1cc8b6,_0x212e9a={},_0x45beee){for(const {isAnchor:_0xa4faf,cellHeight:_0x1aa8e6,cellWidth:_0xa713d7}of _0x45beee[_0x34b1('0x33')](_0x1cc8b6,{'includeAllSlots':!0x0,..._0x212e9a}))if(!_0xa4faf||0x1!=_0x1aa8e6||0x1!=_0xa713d7)return!0x1;return!0x0;}
|
|
23
|
+
const _0x2e09=['reduce','has','redo','suggestion','findAncestor','deletionRanges','isInContent','tablePaste','differ','deletion','getRanges','documentSelection','clipboardOutput','activeMarkers','insertRows','next','setAttributes','createRange','isEqual','batch','options','columns','remove','change','elementToElement','insertion','_getCoordsForCells','_tablePostFixingSubtypes','markers','set','selection','oldRange','rows','_replaceTableSlotCell','tableCellBorderColor','getColumns','getContainedElement','columnInsertionIndexes','previous','createRangeIn','trackChanges','showSuggestionHighlights','_splitMarkerName','discard','registerPostFixer','isEmpty','tablePasteChainId','fill','plugins','first','tablePasteColumn','push','registerCustomCallback','subType','join','for','rootName','insertContent','ck-suggestion-marker--active','ck-suggestion-marker-insertion','afterInit','view','getItems','endRow','model','every','getMarkers','cell','suggestionLoaded','getChildren','_isForcedDefaultExecutionBlock','markerName','table','root','formatBlock','insert','registerDescriptionCallback','rowInsertionIndexes','removeMarker','get','row','locale','editor','editing','getChangedMarkers','editingDowncast','register','markMultiRangeDeletion','tableCellSuggestion','forceDefaultExecution','getSuggestion','createElement','length','filter','markMultiRangeInsertion','name','getAttributes','document','type','newRange','listenTo','element','from','high','removeColumns','getRange','accept','map','Users','TrackChangesEditing','dataDowncast','createRangeOn','paragraph','getSuggestions','attributes','startsWith','author','commands','low','tablePasteRow','find','position','tablePasteCell','return','updateMarker','createTableWalker','some','tableCellVerticalAlignment','getChild','getAllAdjacentSuggestions','_suggestionFactory','tableCellBackgroundColor','start','nextSibling','getTableIfOnlyTableInContent','suggestion:formatBlock:tablePasteCell','cells','*Replace\x20table\x20cells*','content','getShiftedBy','tableCellBorderStyle','includes','getColumnIndexes','fromEntries','$graveyard','tableCellPadding','add','last','TableClipboard','tableCell','unwrap','suggestion-td','insertColumns','tableCellBorderWidth','createPositionBefore','_createdBatches','conversion','getRows','getRowIndexes','hasSuggestion','requires','columnInsertionRanges','value','end','markerAttributes'];(function(_0x49b3a2,_0x2e0908){const _0x35db68=function(_0x2d5e73){while(--_0x2d5e73){_0x49b3a2['push'](_0x49b3a2['shift']());}};_0x35db68(++_0x2e0908);}(_0x2e09,0x199));const _0x35db=function(_0x49b3a2,_0x2e0908){_0x49b3a2=_0x49b3a2-0x0;let _0x35db68=_0x2e09[_0x49b3a2];return _0x35db68;};import{getTranslation as _0x305469}from'../utils/common-translations';import{Plugin as _0x28fe40}from'ckeditor5/src/core';import _0x3178ed from'./table';import{uid as _0x1dfe82,priorities as _0x4dc299}from'ckeditor5/src/utils';const le=[_0x35db('0x4a'),_0x35db('0x78'),_0x35db('0x3d'),'tableCellHorizontalAlignment',_0x35db('0x30'),_0x35db('0x34'),_0x35db('0x42')],ae=Object[_0x35db('0x40')](le[_0x35db('0x1c')](_0xadfbe6=>[_0xadfbe6,null]));export default class pt extends _0x28fe40{static get[_0x35db('0x51')](){return[_0x3178ed];}[_0x35db('0x92')](){const _0x55617f=this[_0x35db('0x3')];if(!_0x55617f[_0x35db('0x86')]['has'](_0x35db('0x45')))return;const _0xc47c7b=_0x55617f['plugins'][_0x35db('0x0')](_0x35db('0x1e')),_0xb69154=_0x55617f['plugins']['get']('TableUtils'),_0x26e2e9=_0x55617f['plugins'][_0x35db('0x0')](_0x3178ed),_0x575eba=_0x55617f[_0x35db('0x86')][_0x35db('0x0')](_0x35db('0x45'));_0x26e2e9[_0x35db('0x71')]['push'](_0x35db('0x28'),_0x35db('0x88')),_0x55617f[_0x35db('0x96')]['schema'][_0x35db('0x7')]('tableCellSuggestion',{'allowIn':_0x35db('0x46'),'allowContentOf':_0x35db('0x46'),'isLimit':!0x0}),_0x55617f[_0x35db('0x4d')][_0x35db('0x6e')]({'model':'tableCellSuggestion','view':_0x35db('0x48')});let _0x1452e6=null;_0x55617f[_0x35db('0x96')]['on'](_0x35db('0x8f'),(_0x2f239d,_0x415a35)=>{const [_0x1c71e1,_0x2e2761]=_0x415a35,_0x4f70b3=_0x415a35[_0x415a35[_0x35db('0xd')]-0x1];_0x4f70b3&&_0x4f70b3[_0x35db('0xa')]||_0xc47c7b[_0x35db('0x9c')]||this[_0x35db('0x3')][_0x35db('0x26')][_0x35db('0x0')](_0x35db('0x7e'))[_0x35db('0x53')]&&function(_0x17b42b,_0x46f660,_0x350c44,_0x1d6728,_0x5694be){if(_0x46f660&&!_0x46f660['is'](_0x35db('0x61')))return!0x1;const _0x5edb22=_0x5694be[_0x35db('0x37')](_0x17b42b,_0x350c44);if(!_0x5edb22||!fe(_0x5edb22,null,_0x1d6728))return!0x1;const _0x3d2c64=_0x1d6728['getSelectionAffectedTableCells'](_0x350c44['document'][_0x35db('0x74')]);if(!_0x3d2c64[_0x35db('0xd')])return!0x1;const _0x51c5aa=_0x3d2c64[0x0][_0x35db('0x5a')]('table'),_0x2210b6=_0x1d6728[_0x35db('0x4f')](_0x3d2c64),_0xdbbad7=_0x1d6728[_0x35db('0x3f')](_0x3d2c64),_0x295750={'startRow':_0x2210b6[_0x35db('0x87')],'endRow':_0x2210b6['last'],'startColumn':_0xdbbad7[_0x35db('0x87')],'endColumn':_0xdbbad7[_0x35db('0x44')]};return 0x1==_0x3d2c64[_0x35db('0xd')]&&(_0x295750[_0x35db('0x95')]+=_0x1d6728[_0x35db('0x4e')](_0x5edb22)-0x1,_0x295750['endColumn']+=_0x1d6728[_0x35db('0x79')](_0x5edb22)-0x1),fe(_0x51c5aa,_0x295750,_0x1d6728);}(_0x1c71e1,_0x2e2761,_0x55617f['model'],_0xb69154,_0x575eba)&&(_0x2f239d['stop'](),_0x1452e6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55617f[_0x35db('0x96')][_0x35db('0x6d')](()=>{_0x55617f[_0x35db('0x96')][_0x35db('0x8f')](_0x415a35[0x0],_0x415a35[0x1],_0x415a35[0x2],_0x415a35[0x3],{'forceDefaultExecution':!0x0});const _0x371e19=_0x1dfe82(),{rowInsertionRanges:_0x2c89ad,columnInsertionRanges:_0x5ac65a,insertionRanges:_0x2fc5f9,deletionRanges:_0x4cdf35,cells:_0x4ce2ec}=_0x1452e6;_0x2c89ad['length']&&_0xc47c7b[_0x35db('0xf')](_0x2c89ad,_0x35db('0x28'),{'tablePasteChainId':_0x371e19}),_0x5ac65a[_0x35db('0xd')]&&_0xc47c7b[_0x35db('0xf')](_0x5ac65a,'tablePasteColumn',{'tablePasteChainId':_0x371e19}),_0x2fc5f9[_0x35db('0xd')]&&_0xc47c7b[_0x35db('0xf')](_0x2fc5f9,'tablePaste',{'tablePasteChainId':_0x371e19,'skipNestingCheck':!0x0}),_0x4cdf35[_0x35db('0xd')]&&_0xc47c7b[_0x35db('0x8')](_0x4cdf35,_0x35db('0x5d'),{'tablePasteChainId':_0x371e19,'skipNestingCheck':!0x0});const _0x105b43=_0xc47c7b['markMultiRangeBlockFormat'](_0x4ce2ec[_0x35db('0x1c')](({element:_0xa8f72a})=>_0xa8f72a),{'formatGroupId':_0x1dfe82()},[],_0x35db('0x2b'),{'tablePasteChainId':_0x371e19});if(_0x105b43){const _0x90a2b2=_0x105b43['getMarkers'](),_0x513059=[];for(const {element:_0x1a3f79,attributes:_0x520f02}of _0x4ce2ec){if(!_0x520f02)continue;const _0x247f48=_0x55617f[_0x35db('0x96')][_0x35db('0x20')](_0x1a3f79),_0xd67f9c=_0x90a2b2[_0x35db('0x29')](_0x3f9242=>_0x3f9242[_0x35db('0x1a')]()[_0x35db('0x68')](_0x247f48));_0xd67f9c&&_0x513059[_0x35db('0x89')]([_0xd67f9c[_0x35db('0x10')],_0x520f02]);}_0x513059[_0x35db('0xd')]&&_0x105b43['setAttribute'](_0x35db('0x55'),Object[_0x35db('0x40')](_0x513059));}_0x1452e6=null;}));},{'priority':_0x4dc299[_0x35db('0x18')]+0xa}),_0x55617f[_0x35db('0x86')][_0x35db('0x0')]('TableClipboard')['on'](_0x35db('0x77'),(_0xcba8d0,_0x59b53f)=>{const [_0xdbb9a9,_0x54dfcf,,_0x5f40a0]=_0x59b53f;if(!_0x1452e6)return;_0xcba8d0['stop']();const _0x4e52fb=_0xdbb9a9[_0x35db('0x99')],_0x50a15b=_0x54dfcf,_0xefa11f=ce(_0x4e52fb),_0x2136ac=ce(_0x50a15b);_0xcba8d0[_0x35db('0x2c')]=_0x4e52fb;let _0x585976=null,_0x42bbcc=null;if(_0x2136ac||_0xefa11f){if(_0xefa11f&&!_0x2136ac){_0x5f40a0[_0x35db('0x6c')](_0x4e52fb[_0x35db('0x31')](0x0));for(const _0x2c2c9f of Array['from'](_0x50a15b[_0x35db('0x9b')]()))_0x5f40a0['insert'](_0x2c2c9f,_0x4e52fb,'end');const _0x333ae1=_0x1452e6[_0x35db('0xa3')][_0x35db('0x3e')](_0xdbb9a9[_0x35db('0x1')]),_0xa6d334=_0x1452e6[_0x35db('0x7b')][_0x35db('0x3e')](_0xdbb9a9['column']);_0x333ae1||_0xa6d334||(_0x585976=_0x5f40a0[_0x35db('0x7d')](_0x4e52fb));}else _0x2136ac&&!_0xefa11f&&(_0x42bbcc=_0x5f40a0[_0x35db('0x7d')](_0x4e52fb));}else{const _0x3c3b0f=_0x5f40a0[_0x35db('0xc')](_0x35db('0x9')),_0x2aed02=_0x5f40a0[_0x35db('0xc')](_0x35db('0x9'));_0x5f40a0['wrap'](_0x5f40a0[_0x35db('0x7d')](_0x4e52fb),_0x2aed02),_0x5f40a0[_0x35db('0xa1')](_0x3c3b0f,_0x4e52fb,0x0);for(const _0x2952d4 of Array[_0x35db('0x17')](_0x50a15b[_0x35db('0x9b')]()))_0x5f40a0['insert'](_0x2952d4,_0x3c3b0f,_0x35db('0x54'));_0x585976=_0x5f40a0[_0x35db('0x20')](_0x3c3b0f),_0x42bbcc=_0x5f40a0[_0x35db('0x20')](_0x2aed02);}const _0x5171d0=Array[_0x35db('0x17')](_0x50a15b[_0x35db('0x11')]())['filter'](([_0x4d497e])=>le[_0x35db('0x3e')](_0x4d497e));_0x1452e6[_0x35db('0x39')][_0x35db('0x89')]({'element':_0x4e52fb,'attributes':_0x5171d0['length']?Object[_0x35db('0x40')](_0x5171d0):null}),_0x585976&&_0x1452e6['insertionRanges'][_0x35db('0x89')](_0x585976),_0x42bbcc&&_0x1452e6[_0x35db('0x5b')][_0x35db('0x89')](_0x42bbcc);},{'priority':_0x35db('0x18')}),_0xb69154['on'](_0x35db('0x49'),(_0x20a995,_0x54ed9b)=>{const [_0xe8dbf4,_0x1374da={}]=_0x54ed9b;if(!_0x1452e6)return;const _0x1d1282=_0x1374da['at']||0x0,_0x38444c=_0x1374da[_0x35db('0x6b')]||0x1;_0x1452e6[_0x35db('0x7b')]=new Array(_0x38444c)['fill'](_0x1d1282)[_0x35db('0x1c')]((_0x2028f4,_0x15205c)=>_0x2028f4+_0x15205c);for(const {cell:_0x491b1a}of _0xb69154[_0x35db('0x2e')](_0xe8dbf4,{'startColumn':_0x1d1282,'endColumn':_0x1d1282+_0x38444c-0x1}))_0x1452e6[_0x35db('0x52')]['push'](_0x55617f[_0x35db('0x96')][_0x35db('0x20')](_0x491b1a));},{'priority':'low'}),_0xb69154['on'](_0x35db('0x64'),(_0x4bbb58,_0x281a6c)=>{const [_0x3589be,_0x23c201={}]=_0x281a6c;if(!_0x1452e6)return;const _0x3930ab=_0x23c201['at']||0x0,_0x2d82fa=_0x23c201[_0x35db('0x76')]||0x1;_0x1452e6['rowInsertionIndexes']=new Array(_0x2d82fa)[_0x35db('0x85')](_0x3930ab)['map']((_0x21cf6c,_0x2ecbd3)=>_0x21cf6c+_0x2ecbd3);for(const {cell:_0x71ead7}of _0xb69154['createTableWalker'](_0x3589be,{'startRow':_0x3930ab,'endRow':_0x3930ab+_0x2d82fa-0x1}))_0x1452e6['rowInsertionRanges'][_0x35db('0x89')](_0x55617f[_0x35db('0x96')]['createRangeOn'](_0x71ead7));},{'priority':_0x35db('0x27')}),_0xc47c7b['_descriptionFactory'][_0x35db('0xa2')](_0x5aff06=>{if(_0x5aff06[_0x35db('0x8b')]&&_0x5aff06[_0x35db('0x8b')][_0x35db('0x24')]('tablePaste'))return _0x5aff06['previous']?{}:{'type':_0x35db('0x6f'),'content':_0x305469(_0x55617f[_0x35db('0x2')],_0x35db('0x3a'))};});const _0x18541f=()=>{};for(const _0x45c9ec of[_0x35db('0x5d'),_0x35db('0x88'),_0x35db('0x28'),_0x35db('0x2b')])_0xc47c7b['_suggestionFactory'][_0x35db('0x8a')](_0x35db('0x6f'),_0x45c9ec,'join',_0x18541f),_0xc47c7b['_suggestionFactory'][_0x35db('0x8a')](_0x35db('0x5f'),_0x45c9ec,_0x35db('0x8c'),_0x18541f);_0xc47c7b[_0x35db('0x33')][_0x35db('0x8a')](_0x35db('0xa0'),'tablePasteCell',_0x35db('0x81'),_0x18541f),_0xc47c7b['_suggestionFactory'][_0x35db('0x8a')](_0x35db('0xa0'),'tablePasteCell',_0x35db('0x1b'),(_0x5384ee,_0x7963ba,_0x2841ad)=>{const _0x1c6458=_0x5384ee['map'](_0x731b97=>_0x731b97[_0x35db('0x7a')]())['filter'](_0x317edc=>_0x317edc),_0x3359eb=new Map(_0x1c6458[_0x35db('0x1c')](_0x259429=>[_0x259429,null]));if(_0x1452e6)for(const {element:_0x333ef6,attributes:_0x2ae4e2}of _0x1452e6[_0x35db('0x39')])_0x2ae4e2&&_0x3359eb[_0x35db('0x73')](_0x333ef6,_0x2ae4e2);else{if(_0x2841ad&&_0x2841ad[_0x35db('0x55')])for(const [_0x414c31,_0x12f469]of Object['entries'](_0x2841ad[_0x35db('0x55')])){const _0x29f529=_0x55617f[_0x35db('0x96')][_0x35db('0x72')]['get'](_0x414c31),_0x20f67c=_0x29f529?_0x29f529[_0x35db('0x1a')]()[_0x35db('0x7a')]():null;_0x20f67c&&_0x3359eb[_0x35db('0x73')](_0x20f67c,_0x12f469);}}_0x55617f[_0x35db('0x96')][_0x35db('0x6d')](_0x41f749=>{for(const [_0x34107a,_0x2bd5d8]of _0x3359eb)_0x41f749[_0x35db('0x66')]({...ae,..._0x2bd5d8},_0x34107a);});});const _0x3734fd=(_0x5d3d83,_0x5d4006)=>{_0xc47c7b['_suggestionFactory'][_0x35db('0x8a')](_0x5d3d83,_0x35db('0x5d'),_0x5d4006,(_0x296c98,_0x3ea29d,_0x522c3d)=>{_0x55617f['model'][_0x35db('0x6d')](_0x50991f=>{const _0x34a89c=[];for(const _0x2e6449 of _0x296c98){const _0x24c5b1=_0x2e6449[_0x35db('0x35')]['nodeAfter'];_0x24c5b1['is'](_0x35db('0x16'),_0x35db('0x9'))&&_0x34a89c[_0x35db('0x89')](_0x24c5b1);}_0xc47c7b[_0x35db('0x33')]['getSuggestionCallback'](_0x5d3d83,null,_0x5d4006)(_0x296c98,_0x3ea29d,_0x522c3d);for(const _0x348a14 of _0x34a89c)_0x35db('0x41')!=_0x348a14[_0x35db('0x9f')][_0x35db('0x8e')]&&_0x50991f[_0x35db('0x47')](_0x348a14);});});};_0x3734fd(_0x35db('0x6f'),_0x35db('0x1b')),_0x3734fd(_0x35db('0x6f'),_0x35db('0x81')),_0x3734fd(_0x35db('0x5f'),'accept'),_0x3734fd(_0x35db('0x5f'),_0x35db('0x81')),_0xc47c7b['_suggestionFactory'][_0x35db('0x8a')](_0x35db('0x6f'),_0x35db('0x28'),_0x35db('0x81'),_0xf04e0b=>{const _0x4cd2b2=_0xf04e0b[_0x35db('0x1c')](_0x418326=>_0x418326[_0x35db('0x7a')]()),_0x4338a5=_0x4cd2b2[0x0][_0x35db('0x5a')](_0x35db('0x9e')),{minRow:_0x47964d,maxRow:_0x486855}=_0x26e2e9['_getCoordsForCells'](_0x4cd2b2);_0xb69154['removeRows'](_0x4338a5,{'at':_0x47964d,'rows':_0x486855-_0x47964d+0x1});}),_0xc47c7b[_0x35db('0x33')][_0x35db('0x8a')](_0x35db('0x6f'),_0x35db('0x88'),_0x35db('0x81'),_0x4bb2e5=>{const _0xec0c59=_0x4bb2e5[_0x35db('0x1c')](_0x157915=>_0x157915[_0x35db('0x7a')]()),_0x42ed5b=_0xec0c59[0x0][_0x35db('0x5a')](_0x35db('0x9e')),{minColumn:_0x63965f,maxColumn:_0x1b6fc2}=_0x26e2e9[_0x35db('0x70')](_0xec0c59);_0xb69154[_0x35db('0x19')](_0x42ed5b,{'at':_0x63965f,'columns':_0x1b6fc2-_0x63965f+0x1});});const _0x5a1b72=(_0x4c0aa8,_0x41a84c)=>{if(!_0x41a84c[_0x35db('0x8b')]||!_0x41a84c[_0x35db('0x8b')][_0x35db('0x24')]('tablePaste'))return;const _0x1ca691=_0x41a84c['attributes'][_0x35db('0x84')],_0x14c894=_0xc47c7b[_0x35db('0x22')]()['filter'](_0x2ba2fb=>_0x2ba2fb[_0x35db('0x5c')]&&_0x2ba2fb[_0x35db('0x23')]&&_0x2ba2fb[_0x35db('0x23')][_0x35db('0x84')]==_0x1ca691);_0x14c894['length']&&_0x41a84c[_0x35db('0x32')]()[_0x35db('0xd')]!=_0x14c894['length']&&_0x14c894[_0x35db('0x56')]((_0x2d835a,_0x429793)=>(_0x2d835a[_0x35db('0x65')]=_0x429793,_0x429793[_0x35db('0x7c')]=_0x2d835a,_0x429793));};function _0xc97f1d(_0x1427b0,{showActiveMarker:_0x25c69b=!0x0}={}){const {id:_0x512e9d}=_0xc47c7b[_0x35db('0x80')](_0x1427b0[_0x35db('0x9d')]),_0x470303=['ck-suggestion-marker',_0x35db('0x91')],_0xbda9c3=_0xc47c7b[_0x35db('0x63')][_0x35db('0x3e')](_0x1427b0[_0x35db('0x9d')]);return _0xbda9c3&&_0x470303[_0x35db('0x89')](_0x35db('0x90')),{'classes':_0x470303,'attributes':{'data-suggestion':_0x512e9d},'priority':_0xbda9c3&&_0x25c69b?0xbc2:0xbb8};}_0xc47c7b['on'](_0x35db('0x9a'),_0x5a1b72,{'priority':'high'}),_0xc47c7b['on']('suggestionUnloaded',_0x5a1b72,{'priority':_0x35db('0x18')}),_0x55617f['model']['document'][_0x35db('0x82')](()=>{let _0x402255=!0x1;const _0x4a940d=Array['from'](_0x55617f['model'][_0x35db('0x12')]['differ'][_0x35db('0x5')]());for(const {name:_0x422e45,data:_0x5d8dc1}of _0x4a940d){const {group:_0xce6ba1,type:_0x367d82,id:_0x1a1d2f}=_0xc47c7b[_0x35db('0x80')](_0x422e45);if(_0x35db('0x59')!=_0xce6ba1||'deletion'!=_0x367d82||_0x5d8dc1[_0x35db('0x75')])continue;if(!_0xc47c7b[_0x35db('0x50')](_0x1a1d2f))continue;const _0x4eb251=_0xc47c7b[_0x35db('0xb')](_0x1a1d2f)[_0x35db('0x60')](),_0x29cc3b=_0x55617f[_0x35db('0x86')][_0x35db('0x0')](_0x35db('0x1d'))['me'];for(const _0xb78eb6 of _0xc47c7b[_0x35db('0x22')]()){if(!_0xb78eb6[_0x35db('0x5c')]||_0xb78eb6[_0x35db('0x25')]!=_0x29cc3b)continue;if(_0x35db('0xa0')!=_0xb78eb6['type']||_0x35db('0x2b')!=_0xb78eb6[_0x35db('0x8b')])continue;if(_0xb78eb6[_0x35db('0x60')]()[_0x35db('0x97')](_0x4919d5=>_0x4eb251[_0x35db('0x2f')](_0x2d56d2=>_0x2d56d2['containsRange'](_0x4919d5,!0x0))))for(const _0x13dff2 of _0xb78eb6[_0x35db('0x32')]())_0x13dff2['isInContent']&&(_0x13dff2['discard'](),_0x402255=!0x0);}}return _0x402255;}),_0x55617f['model'][_0x35db('0x12')][_0x35db('0x82')](_0x48578e=>{const _0x562450=_0x55617f[_0x35db('0x26')]['get'](_0x35db('0x58'));if(!_0x562450||!_0x562450[_0x35db('0x4c')][_0x35db('0x57')](_0x48578e[_0x35db('0x69')]))return!0x1;let _0x29c0f0=!0x1;const _0x278d2b=_0x55617f['plugins'][_0x35db('0x0')](_0x35db('0x1d'))['me'],_0x1f0ef9=_0x55617f[_0x35db('0x96')]['document'][_0x35db('0x5e')]['getChanges'](),_0xa2b3a3=Array['from'](_0x55617f[_0x35db('0x96')][_0x35db('0x12')][_0x35db('0x5e')][_0x35db('0x5')]())[_0x35db('0xe')](({name:_0xfeb551,data:_0x58fa60})=>{const {group:_0x27215f,subType:_0x515674,authorId:_0x56a597}=_0xc47c7b[_0x35db('0x80')](_0xfeb551);return _0x35db('0x59')==_0x27215f&&_0x35db('0x5d')==_0x515674&&_0x56a597==_0x278d2b['id']&&!_0x58fa60[_0x35db('0x75')];});for(const _0x3bf32f of _0x1f0ef9){if(_0x35db('0xa1')!=_0x3bf32f[_0x35db('0x13')]||_0x35db('0x9')!=_0x3bf32f['name']||0x1!=_0x3bf32f[_0x35db('0xd')])continue;const _0x40c14c=_0x48578e[_0x35db('0x67')](_0x3bf32f['position'],_0x3bf32f[_0x35db('0x2a')][_0x35db('0x3c')](0x1));if(!_0xa2b3a3[_0x35db('0x29')](({data:_0x1b4e84})=>_0x1b4e84[_0x35db('0x14')][_0x35db('0x68')](_0x40c14c)))for(const {name:_0x3b67ee,data:_0x22a0a8}of _0xa2b3a3)if(_0x40c14c['containsRange'](_0x22a0a8['newRange'])){_0x48578e[_0x35db('0x2d')](_0x3b67ee,{'range':_0x40c14c}),_0x29c0f0=!0x0;break;}}return _0x29c0f0;}),_0x55617f[_0x35db('0x96')][_0x35db('0x12')]['registerPostFixer'](_0x2900bd=>{let _0x235f83=!0x1;const _0x1ee48c=_0x55617f[_0x35db('0x86')][_0x35db('0x0')](_0x35db('0x1d'))['me'],_0x6f18bf=_0xc47c7b['getSuggestions']()['filter'](_0x22c7b8=>_0x22c7b8[_0x35db('0x5c')]&&_0x22c7b8[_0x35db('0x25')]==_0x1ee48c),_0x4b71ab=new Set(),_0x54e5e7=new Set();for(const _0x698fae of _0x6f18bf)if(_0x35db('0x5d')==_0x698fae[_0x35db('0x8b')])for(const _0x1da382 of _0x698fae[_0x35db('0x98')]()){const _0xf3eb85=_0x1da382['getRange']()[_0x35db('0x7a')]();if(_0xf3eb85){if(_0xf3eb85['is'](_0x35db('0x16'),'tableCellSuggestion')&&ce(_0xf3eb85)){_0x698fae[_0x35db('0xa4')](_0x1da382[_0x35db('0x10')]),_0x4b71ab[_0x35db('0x43')](_0xf3eb85),_0x235f83=!0x0;const _0x12c073=_0xf3eb85[_0x35db('0x36')],_0x5e0139=_0xf3eb85['previousSibling'],_0x21d509=_0x12c073&&_0x12c073['is']('element',_0x35db('0x9')),_0x5e15c6=_0x5e0139&&_0x5e0139['is'](_0x35db('0x16'),'tableCellSuggestion');_0x21d509&&!_0x4b71ab['has'](_0x12c073)&&_0x54e5e7[_0x35db('0x43')](_0x12c073),_0x5e15c6&&!_0x4b71ab[_0x35db('0x57')](_0x5e0139)&&_0x54e5e7[_0x35db('0x43')](_0x5e0139);}else _0xf3eb85['is'](_0x35db('0x16'),'paragraph')&&_0xf3eb85[_0x35db('0x83')]&&(_0x698fae[_0x35db('0xa4')](_0x1da382[_0x35db('0x10')]),_0x235f83=!0x0);}}else{if(_0x35db('0x2b')==_0x698fae[_0x35db('0x8b')]){if(!_0x698fae[_0x35db('0x23')]||!_0x698fae[_0x35db('0x23')][_0x35db('0x84')])continue;const _0x2bcb32=_0x698fae[_0x35db('0x23')]['markerAttributes'];if(_0x2bcb32&&Object['keys'](_0x2bcb32)[_0x35db('0xd')])continue;const _0x26d9db=_0x698fae[_0x35db('0x23')][_0x35db('0x84')];let _0x23b496=!0x0,_0x255676=!0x0;for(const _0x3b5d60 of _0x6f18bf)if(_0x3b5d60[_0x35db('0x8b')]&&_0x3b5d60['subType'][_0x35db('0x24')](_0x35db('0x5d'))){if(!_0x3b5d60[_0x35db('0x23')][_0x35db('0x84')]){_0x255676=!0x1;break;}if(_0x3b5d60['id']!=_0x698fae['id']&&_0x3b5d60[_0x35db('0x23')]['tablePasteChainId']==_0x26d9db){_0x23b496=!0x1;break;}}_0x255676&&_0x23b496&&(_0x698fae['removeMarkers'](),_0x235f83=!0x0);}}for(const _0x1d44c0 of _0x4b71ab)_0x2900bd['remove'](_0x1d44c0);for(const _0x3c94e4 of _0x54e5e7)_0x2900bd[_0x35db('0x47')](_0x3c94e4);return _0x235f83;}),_0x55617f[_0x35db('0x4d')][_0x35db('0x8d')](_0x35db('0x6'))['markerToHighlight']({'model':_0x35db('0x38'),'view':_0xc97f1d,'converterPriority':_0x35db('0x18')}),_0x55617f[_0x35db('0x4d')]['for'](_0x35db('0x1f'))['markerToHighlight']({'model':_0x35db('0x38'),'view':(_0x450790,_0x1b4cb2)=>{if(_0x1b4cb2[_0x35db('0x6a')][_0x35db('0x7f')])return _0xc97f1d(_0x450790,{'showActiveMarker':!0x1});},'converterPriority':'high'});const _0xfc084f=_0x55617f[_0x35db('0x4')][_0x35db('0x93')];this[_0x35db('0x15')](_0xfc084f[_0x35db('0x12')],_0x35db('0x62'),(_0x1da648,_0x22fd89)=>{const _0x37167d=[];for(const _0xb6d5c3 of _0xfc084f['createRangeIn'](_0x22fd89[_0x35db('0x3b')])[_0x35db('0x94')]())_0xb6d5c3['is'](_0x35db('0x16'),'suggestion-td')&&_0x37167d[_0x35db('0x89')](_0xb6d5c3);_0xfc084f[_0x35db('0x6d')](_0x15e53c=>{for(const _0x5b817b of _0x37167d)_0x15e53c['move'](_0x15e53c['createRangeIn'](_0x5b817b),_0x15e53c[_0x35db('0x4b')](_0x5b817b)),_0x15e53c[_0x35db('0x6c')](_0x5b817b);});});}}function ce(_0xc82e7b){if(_0xc82e7b[_0x35db('0x83')])return!0x0;const _0x501896=_0xc82e7b['getChild'](0x0);return _0x501896['is'](_0x35db('0x16'),_0x35db('0x21'))&&_0x501896[_0x35db('0x83')];}function fe(_0x47cd71,_0x59785d={},_0xd72996){for(const {isAnchor:_0x1a306f,cellHeight:_0x26512f,cellWidth:_0x3de25e}of _0xd72996[_0x35db('0x2e')](_0x47cd71,{'includeAllSlots':!0x0,..._0x59785d}))if(!_0x1a306f||0x1!=_0x26512f||0x1!=_0x3de25e)return!0x1;return!0x0;}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x3717=['editor','change','registerCustomCallback','subType','setAttribute','*Format:*\x20resize\x20table','TableColumnResizeEditing','discard','bind','accept','handleResizeTableWidthCommand','commandParams','model','get','locale','selection','_suggestionFactory','data','resizeColumnWidths','plugins','getSuggestionCallback','tableWidth','table','resizeTableWidth','document','getContainedElement','resizeTable','author','formatBlock','_descriptionFactory','TrackChangesEditing','handleSuggestionDescription','afterInit','getAttribute','columnWidths'];(function(_0x19e0d9,_0x371790){const _0x30fe78=function(_0x2cf129){while(--_0x2cf129){_0x19e0d9['push'](_0x19e0d9['shift']());}};_0x30fe78(++_0x371790);}(_0x3717,0xd0));const _0x30fe=function(_0x19e0d9,_0x371790){_0x19e0d9=_0x19e0d9-0x0;let _0x30fe78=_0x3717[_0x19e0d9];return _0x30fe78;};import{Plugin as _0x192c9f}from'ckeditor5/src/core';import{getTranslation as _0x18885e}from'../utils/common-translations';export default class kt extends _0x192c9f{[_0x30fe('0x22')](){if(!this[_0x30fe('0x2')][_0x30fe('0x15')]['has'](_0x30fe('0x8')))return;const _0x2c6dfe=this[_0x30fe('0x2')]['plugins'][_0x30fe('0xf')](_0x30fe('0x20'));_0x2c6dfe['enableCommand'](_0x30fe('0x19'),this[_0x30fe('0xc')][_0x30fe('0xa')](this)),_0x2c6dfe['enableCommand'](_0x30fe('0x14'),this[_0x30fe('0xc')][_0x30fe('0xa')](this)),_0x2c6dfe[_0x30fe('0x12')][_0x30fe('0x4')](_0x30fe('0x1e'),_0x30fe('0x1c'),'accept',_0x2c6dfe['_suggestionFactory']['getSuggestionCallback'](_0x30fe('0x1e'),null,_0x30fe('0x9'))),_0x2c6dfe[_0x30fe('0x12')][_0x30fe('0x4')]('formatBlock','resizeTable',_0x30fe('0x9'),_0x2c6dfe[_0x30fe('0x12')][_0x30fe('0x16')](_0x30fe('0x1e'),null,_0x30fe('0xb'))),_0x2c6dfe[_0x30fe('0x1f')]['registerDescriptionCallback'](this[_0x30fe('0x21')][_0x30fe('0xa')](this));}[_0x30fe('0xc')](_0x4185a5,_0x47ac52){const _0x4ea5a8=this[_0x30fe('0x2')][_0x30fe('0x15')]['get']('TrackChangesEditing'),_0x3ad982=_0x47ac52[_0x30fe('0x18')]||this[_0x30fe('0x2')][_0x30fe('0xe')][_0x30fe('0x1a')][_0x30fe('0x11')]['getSelectedElement']();this[_0x30fe('0x2')]['model'][_0x30fe('0x3')](_0x1b7eae=>{let _0x1ecead=_0x3ad982[_0x30fe('0x0')](_0x30fe('0x17'))||null,_0x5b7dad=_0x3ad982[_0x30fe('0x0')]('columnWidths')||null;const _0x37f065=_0x47ac52[_0x30fe('0x17')]||_0x1ecead,_0x40afe2=_0x47ac52[_0x30fe('0x1')]||_0x5b7dad,_0x750c2a=this[_0x30fe('0x2')][_0x30fe('0x15')][_0x30fe('0xf')]('Users')['me'];for(const _0x496d43 of _0x4ea5a8['getSuggestions']()){const _0x156538=_0x496d43[_0x30fe('0x1b')]();if(_0x30fe('0x1c')===_0x496d43[_0x30fe('0x5')]&&_0x156538===_0x3ad982){_0x496d43[_0x30fe('0x1d')]!==_0x750c2a&&_0x496d43[_0x30fe('0x9')](),_0x1ecead=_0x496d43[_0x30fe('0x13')][_0x30fe('0xd')][0x0][_0x30fe('0x17')],_0x5b7dad=_0x496d43[_0x30fe('0x13')][_0x30fe('0xd')][0x0][_0x30fe('0x1')];break;}}_0x1b7eae[_0x30fe('0x6')](_0x30fe('0x17'),_0x37f065,_0x3ad982),_0x1b7eae['setAttribute'](_0x30fe('0x1'),_0x40afe2,_0x3ad982),_0x4ea5a8['markBlockFormat'](_0x3ad982,{'commandName':_0x30fe('0x19'),'commandParams':[{'tableWidth':_0x1ecead,'columnWidths':_0x5b7dad}],'formatGroupId':_0x30fe('0x1c')},[],_0x30fe('0x1c'));});}[_0x30fe('0x21')](_0x58e09e){const {data:_0x51ed87}=_0x58e09e;if(_0x51ed87&&_0x30fe('0x1c')===_0x51ed87['formatGroupId']){const _0x1cc70e=_0x30fe('0x7');return{'type':'format','content':_0x18885e(this[_0x30fe('0x2')][_0x30fe('0x10')],_0x1cc70e)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x293d=['data-suggestion','change','getCellLocation','TableUtils','createPositionAfter','registerDescriptionCallback','writer','data','setTableColumnHeader','childCount','markBlockFormat','createPositionBefore','parent','format','FORMAT_HEADER_ROW','ck-suggestion-marker-','plugins','selection','showSuggestionHighlights','commandName','headingColumns','last','ck-suggestion-marker--active','model','_splitMarkerName','FORMAT_HEADER_COLUMN','options','setTableRowHeader','has','table','getAttribute','item','getChild','TableEditing','toViewElement','setAttribute','getSelectionAffectedTableCells','activeMarkers','downcastDispatcher','accept','afterInit','first','start','nodeBefore','addClass','editing','*Format:*\x20%0','index','markerNameToElements','markerName','registerCustomCallback','getColumnIndexes','includes','commands','removeClass','mapper','removeAttribute','createTableWalker','editor','enableCommand','cell','bindElementToMarker','headingRows','FORMAT_REGULAR_COLUMN','nodeAfter','stop','document','forceValue','createRange','markerRange','requires','formatBlock','getSuggestion','commandParams','_suggestionFactory','get','value','unbindElementFromMarkerName','isBefore','locale','_acceptFormatSuggestionCallbackFactory','consumable','TrackChangesEditing','findAncestor','highest'];(function(_0x461f6f,_0x293d90){const _0x12690c=function(_0x2c05ea){while(--_0x2c05ea){_0x461f6f['push'](_0x461f6f['shift']());}};_0x12690c(++_0x293d90);}(_0x293d,0x18a));const _0x1269=function(_0x461f6f,_0x293d90){_0x461f6f=_0x461f6f-0x0;let _0x12690c=_0x293d[_0x461f6f];return _0x12690c;};import{Plugin as _0xa10528}from'ckeditor5/src/core';import _0x40344c from'./table';import{getTranslation as _0x453f69}from'../utils/common-translations';export default class dt extends _0xa10528{static get[_0x1269('0x10')](){return[_0x40344c];}[_0x1269('0x47')](){const _0x2f6471=this[_0x1269('0x4')];if(!_0x2f6471['plugins'][_0x1269('0x3b')](_0x1269('0x40')))return;const _0x4667d6=_0x2f6471[_0x1269('0x19')],_0x116198=_0x2f6471[_0x1269('0x2f')]['get'](_0x1269('0x1c')),_0x544c4b=_0x2f6471[_0x1269('0x2f')][_0x1269('0x15')](_0x1269('0x22')),_0x2070dd=_0x2f6471['plugins'][_0x1269('0x15')](_0x40344c);function _0x56b638({showActiveMarker:_0x5d2fa6=!0x0,setDataAttribute:_0x335a7f=!0x0}={}){return(_0xe95927,_0x3669ad,_0x4de9c8)=>{const {type:_0x26fc3e,id:_0x435e40}=_0x116198[_0x1269('0x37')](_0x3669ad[_0x1269('0x50')]),_0x4a3b73=_0x116198[_0x1269('0x12')](_0x435e40);if(!_0x4a3b73[_0x1269('0x26')]||_0x1269('0x27')!=_0x4a3b73[_0x1269('0x26')][_0x1269('0x32')])return;if(_0x3669ad[_0x1269('0x3e')])return void _0xe95927[_0x1269('0xb')]();if(!_0x4de9c8[_0x1269('0x1b')]['consume'](_0x3669ad[_0x1269('0xf')],_0xe95927['name']))return;const _0x2c39e8=_0x3669ad[_0x1269('0xf')][_0x1269('0x49')][_0x1269('0xa')],_0x181323=_0x3669ad[_0x1269('0xf')]['end'][_0x1269('0x4a')],_0x428e52=_0x2c39e8[_0x1269('0x2b')][_0x1269('0x2b')],{column:_0x1c736d}=_0x544c4b[_0x1269('0x21')](_0x2c39e8),{column:_0x2b8bd8}=_0x544c4b[_0x1269('0x21')](_0x181323);for(let _0x178ca4=_0x1c736d;_0x178ca4<=_0x2b8bd8;_0x178ca4++){const _0x2106f4=_0x544c4b[_0x1269('0x3')](_0x428e52,{'column':_0x178ca4,'includeAllSlots':!0x1});for(const _0x418407 of _0x2106f4){const _0x29bd91=_0x418407[_0x1269('0x6')],_0x3bd8df=_0x4de9c8[_0x1269('0x1')][_0x1269('0x41')](_0x29bd91);_0x4de9c8[_0x1269('0x25')][_0x1269('0x4b')](_0x1269('0x2e')+_0x26fc3e,_0x3bd8df),_0x335a7f&&_0x4de9c8['writer'][_0x1269('0x42')](_0x1269('0x1f'),_0x435e40,_0x3bd8df),_0x4de9c8[_0x1269('0x1')][_0x1269('0x7')](_0x3bd8df,_0x3669ad['markerName']),_0x5d2fa6&&(_0x116198[_0x1269('0x44')][_0x1269('0x53')](_0x3669ad['markerName'])?_0x4de9c8[_0x1269('0x25')][_0x1269('0x4b')](_0x1269('0x35'),_0x3bd8df):_0x4de9c8['writer']['removeClass'](_0x1269('0x35'),_0x3bd8df));}}};}_0x116198[_0x1269('0x5')](_0x1269('0x3a'),(_0x20bd36,_0x24ec1a)=>{const _0x2ea962=_0x544c4b[_0x1269('0x43')](_0x2f6471[_0x1269('0x36')][_0x1269('0xc')]['selection']),_0xb58bd2=_0x544c4b['getRowIndexes'](_0x2ea962),_0x848b7f=_0x2ea962[0x0][_0x1269('0x1d')](_0x1269('0x3c')),_0x1784bd=_0x848b7f[_0x1269('0x3d')](_0x1269('0x8'))||0x0,_0x4acc6f=_0x24ec1a&&null!==_0x24ec1a[_0x1269('0xd')]?_0x24ec1a[_0x1269('0xd')]:!_0x2f6471[_0x1269('0x54')]['get']('setTableRowHeader')[_0x1269('0x16')],_0x3b4006=_0x4acc6f?_0xb58bd2[_0x1269('0x34')]:_0xb58bd2[_0x1269('0x48')],_0x1a820b=_0x848b7f[_0x1269('0x3f')](_0x3b4006);let _0x2e37d3;if(_0x4acc6f){const _0x29d5d5=_0x848b7f[_0x1269('0x3f')](_0x1784bd);if(_0x1a820b[_0x1269('0x4e')]<_0x29d5d5[_0x1269('0x4e')])return;_0x2e37d3=_0x2f6471[_0x1269('0x36')][_0x1269('0xe')](_0x2f6471[_0x1269('0x36')]['createPositionBefore'](_0x29d5d5['getChild'](0x0)),_0x2f6471[_0x1269('0x36')][_0x1269('0x23')](_0x1a820b[_0x1269('0x3f')](_0x1a820b[_0x1269('0x28')]-0x1)));}else{const _0x4d64fc=_0x848b7f['getChild'](_0x1784bd-0x1);if(!_0x4d64fc)return;_0x2e37d3=_0x2f6471['model']['createRange'](_0x2f6471[_0x1269('0x36')]['createPositionBefore'](_0x1a820b[_0x1269('0x3f')](0x0)),_0x2f6471['model'][_0x1269('0x23')](_0x4d64fc['getChild'](_0x4d64fc['childCount']-0x1)));}_0x2f6471['model'][_0x1269('0x20')](()=>{_0x116198[_0x1269('0x29')](_0x2e37d3,{'commandName':_0x1269('0x3a'),'commandParams':[{'forceValue':_0x4acc6f}]},[],_0x1269('0x3a'));});}),_0x116198['enableCommand'](_0x1269('0x27'),(_0x644a2a,_0x4e5580)=>{const _0x16f820=_0x2f6471[_0x1269('0x2f')][_0x1269('0x15')]('TableUtils'),_0x1b95eb=_0x16f820[_0x1269('0x43')](_0x2f6471['model'][_0x1269('0xc')][_0x1269('0x30')]),_0x4ca4dd=_0x16f820[_0x1269('0x52')](_0x1b95eb),_0x125b7a=_0x1b95eb[0x0][_0x1269('0x1d')](_0x1269('0x3c')),_0x242b4f=_0x125b7a['getAttribute'](_0x1269('0x33'))||0x0,_0x8cbf42=_0x4e5580&&null!==_0x4e5580[_0x1269('0xd')]?_0x4e5580[_0x1269('0xd')]:!_0x2f6471[_0x1269('0x54')][_0x1269('0x15')](_0x1269('0x27'))[_0x1269('0x16')];let _0x34e941;const _0x1c98f7=_0x125b7a['getChild'](0x0),_0x5f569c=_0x8cbf42?_0x4ca4dd[_0x1269('0x34')]:_0x4ca4dd[_0x1269('0x48')],_0x5275e3=_0x16f820[_0x1269('0x3')](_0x125b7a,{'startRow':0x0,'column':_0x5f569c,'includeAllSlots':!0x1}),_0x45907a=Array['from'](_0x5275e3)[0x0][_0x1269('0x6')];if(_0x8cbf42){const _0x3650f6=_0x1c98f7[_0x1269('0x3f')](_0x242b4f);if(_0x45907a[_0x1269('0x18')](_0x3650f6))return;_0x34e941=_0x2f6471[_0x1269('0x36')]['createRange'](_0x2f6471[_0x1269('0x36')]['createPositionBefore'](_0x3650f6),_0x2f6471[_0x1269('0x36')][_0x1269('0x23')](_0x45907a));}else{const _0x2548cb=_0x1c98f7[_0x1269('0x3f')](_0x242b4f-0x1);if(!_0x2548cb)return;_0x34e941=_0x2f6471[_0x1269('0x36')][_0x1269('0xe')](_0x2f6471[_0x1269('0x36')][_0x1269('0x2a')](_0x45907a),_0x2f6471[_0x1269('0x36')][_0x1269('0x23')](_0x2548cb));}_0x2f6471['model']['change'](()=>{_0x116198[_0x1269('0x29')](_0x34e941,{'commandName':_0x1269('0x27'),'commandParams':[{'forceValue':_0x8cbf42}]},[],_0x1269('0x27'));});}),_0x2f6471[_0x1269('0x4c')][_0x1269('0x45')]['on']('addMarker:suggestion',_0x56b638(),{'priority':_0x1269('0x1e')}),_0x2f6471[_0x1269('0x26')][_0x1269('0x45')]['on']('addMarker:suggestion',(_0x512e87,_0x1b7202,_0x2e82a9)=>{_0x2e82a9[_0x1269('0x39')][_0x1269('0x31')]&&_0x56b638({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x512e87,_0x1b7202,_0x2e82a9);},{'priority':'highest'}),_0x2f6471[_0x1269('0x4c')][_0x1269('0x45')]['on']('removeMarker:suggestion',(_0x3dfa1d,_0x193b52,_0x3149cd)=>{const {type:_0x3a4927,id:_0x315441}=_0x116198['_splitMarkerName'](_0x193b52['markerName']),_0x2b5e97=_0x116198['getSuggestion'](_0x315441);if(!_0x2b5e97['data']||'setTableColumnHeader'!=_0x2b5e97[_0x1269('0x26')][_0x1269('0x32')])return;const _0x346062=_0x3149cd['mapper'][_0x1269('0x4f')](_0x193b52[_0x1269('0x50')]);if(_0x346062)for(const _0xbc60e1 of _0x346062)_0x3149cd[_0x1269('0x25')][_0x1269('0x0')](_0x1269('0x2e')+_0x3a4927,_0xbc60e1),_0x3149cd['writer'][_0x1269('0x0')](_0x1269('0x35'),_0xbc60e1),_0x3149cd['writer'][_0x1269('0x2')](_0x1269('0x1f'),_0xbc60e1),_0x3149cd[_0x1269('0x1')][_0x1269('0x17')](_0xbc60e1,_0x193b52[_0x1269('0x50')]);},{'priority':_0x1269('0x1e')}),_0x116198['_descriptionFactory'][_0x1269('0x24')](_0x33aa6a=>{const {data:_0x164ac6}=_0x33aa6a;if(_0x164ac6){if(_0x1269('0x3a')==_0x164ac6[_0x1269('0x32')]){const _0x32d47f=_0x164ac6[_0x1269('0x13')][0x0][_0x1269('0xd')];return _0x544f15(_0x453f69(_0x4667d6,_0x32d47f?_0x1269('0x2d'):'FORMAT_REGULAR_ROW'));}if(_0x1269('0x27')==_0x164ac6[_0x1269('0x32')]){const _0x2ef184=_0x164ac6[_0x1269('0x13')][0x0][_0x1269('0xd')];return _0x544f15(_0x453f69(_0x4667d6,_0x2ef184?_0x1269('0x38'):_0x1269('0x9')));}}function _0x544f15(_0x13a0b0){return{'type':_0x1269('0x2c'),'content':_0x453f69(_0x4667d6,_0x1269('0x4d'),_0x13a0b0)};}});const _0x518182=_0x2070dd[_0x1269('0x1a')]();_0x116198[_0x1269('0x14')]['registerCustomCallback'](_0x1269('0x11'),'setTableRowHeader',_0x1269('0x46'),_0x518182),_0x116198[_0x1269('0x14')][_0x1269('0x51')](_0x1269('0x11'),_0x1269('0x27'),'accept',_0x518182);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d8f=['registerCustomCallback','rootName','refresh','selection','findAncestor','_areSelectedCellsMergable','_acceptFormatSuggestionCallbackFactory','highest','size','TrackChangesEditing','containsRange','tableCell','getCellLocation','getAncestors','horizontally','type','splitTableCellHorizontally','setSelection','mergeTableCellDown','commandName','enableCommand','push','_tablePostFixingSubtypes','createRangeOn','TableEditing','_suggestionFactory','get','TableUtils','registerDescriptionCallback','filter','mergeTableCellLeft','from','editor','detach','_areMergableCells','plugins','add','isEnabled','getSuggestions','trackChanges','deletion','getSelectionAffectedTableCells','mergeTableCellUp','change','*Split\x20cell:*\x20horizontally','root','forceDefaultExecution','*Merge\x20cells*','value','format','createTableWalker','splitTableCellVertically','*Split\x20cell:*\x20vertically','execute','_isForcedDefaultExecutionBlock','mergeTableCellRight','map','element','accept','$graveyard','afterInit','model','has','low','cell','document','commands','mergeTableCells','return','length','getFirstPosition','markMultiRangeBlockFormat','set:isEnabled','find','formatBlock','_descriptionFactory','insertion','requires'];(function(_0xd0dc32,_0x3d8f94){const _0x5e9ea9=function(_0x31afd0){while(--_0x31afd0){_0xd0dc32['push'](_0xd0dc32['shift']());}};_0x5e9ea9(++_0x3d8f94);}(_0x3d8f,0x9a));const _0x5e9e=function(_0xd0dc32,_0x3d8f94){_0xd0dc32=_0xd0dc32-0x0;let _0x5e9ea9=_0x3d8f[_0xd0dc32];return _0x5e9ea9;};import{Plugin as _0xfe3c5}from'ckeditor5/src/core';import _0x26bff5 from'./table';import{LiveRange as _0x2bda53}from'ckeditor5/src/engine';import{getTranslation as _0x4dda51}from'../utils/common-translations';export default class mt extends _0xfe3c5{static get[_0x5e9e('0x1')](){return[_0x26bff5];}[_0x5e9e('0x3e')](){const _0x4aaf89=this['editor'],_0x1be8ae=_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x43')][_0x5e9e('0x5')],_0x217f30=_0x4aaf89['locale'];if(!_0x4aaf89[_0x5e9e('0x25')][_0x5e9e('0x40')](_0x5e9e('0x1a')))return;const _0x44733c=_0x4aaf89['plugins'][_0x5e9e('0x1c')](_0x5e9e('0xb')),_0x404699=_0x4aaf89[_0x5e9e('0x25')][_0x5e9e('0x1c')](_0x5e9e('0x1d')),_0x32e785=_0x4aaf89[_0x5e9e('0x25')][_0x5e9e('0x1c')](_0x26bff5);_0x32e785[_0x5e9e('0x18')][_0x5e9e('0x17')](_0x5e9e('0x45')),_0x44733c[_0x5e9e('0x16')](_0x5e9e('0x45'),()=>{const _0x36c409=_0x404699[_0x5e9e('0x2b')](_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x43')][_0x5e9e('0x5')]);_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x2d')](()=>{_0x44733c['markMultiRangeBlockFormat'](_0x36c409,{'commandName':_0x5e9e('0x45'),'commandParams':[]},[],_0x5e9e('0x45'));});}),_0x4aaf89[_0x5e9e('0x44')]['get'](_0x5e9e('0x45'))['on'](_0x5e9e('0x37'),(_0xefc29c,_0x48c17e)=>{_0x4aaf89[_0x5e9e('0x44')][_0x5e9e('0x1c')](_0x5e9e('0x29'))[_0x5e9e('0x32')]&&(_0x48c17e[_0x5e9e('0x47')]>0x0&&_0x48c17e[_0x48c17e['length']-0x1]&&_0x48c17e[_0x48c17e[_0x5e9e('0x47')]-0x1][_0x5e9e('0x30')]||_0x44733c[_0x5e9e('0x38')]||this['_areSelectedCellsMergable']()||_0xefc29c['stop']());},{'priority':_0x5e9e('0x9')});for(const _0x52df09 of[_0x5e9e('0x2c'),_0x5e9e('0x39'),_0x5e9e('0x14'),_0x5e9e('0x20')]){const _0x389547=_0x4aaf89[_0x5e9e('0x44')]['get'](_0x52df09);_0x44733c[_0x5e9e('0x16')](_0x52df09,()=>{const _0x265a97=_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x43')][_0x5e9e('0x5')][_0x5e9e('0x48')]()['getAncestors']()[_0x5e9e('0x4b')](_0x5ed2f4=>_0x5ed2f4['is']('element',_0x5e9e('0xd'))),_0x1e0981=_0x389547[_0x5e9e('0x32')];_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x2d')](()=>{_0x44733c[_0x5e9e('0x49')]([_0x265a97,_0x1e0981],{'commandName':_0x5e9e('0x45'),'commandParams':[]},[],_0x5e9e('0x45'));});});}for(const _0x255c6c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x35142c=_0x4aaf89[_0x5e9e('0x44')][_0x5e9e('0x1c')](_0x255c6c);_0x44733c['enableCommand'](_0x255c6c,()=>{const _0x36a39b=_0x404699[_0x5e9e('0x2b')](_0x4aaf89['model'][_0x5e9e('0x43')][_0x5e9e('0x5')])[0x0],_0x598145=_0x36a39b[_0x5e9e('0x6')]('table'),{column:_0x352cb3,row:_0x5a4e11}=_0x404699[_0x5e9e('0xe')](_0x36a39b);let _0x7a0f8d=[];if(_0x5e9e('0x10')==_0x35142c['direction']){const _0x454287=_0x404699[_0x5e9e('0x34')](_0x598145,{'startRow':_0x5a4e11,'endRow':_0x5a4e11,'includeAllSlots':!0x0});_0x7a0f8d=Array[_0x5e9e('0x21')](_0x454287)[_0x5e9e('0x3a')](_0x1564f8=>_0x1564f8[_0x5e9e('0x42')]);}else{const _0x589cfa=_0x404699[_0x5e9e('0x34')](_0x598145,{'column':_0x352cb3,'includeAllSlots':!0x0});_0x7a0f8d=Array['from'](_0x589cfa)['map'](_0x375b58=>_0x375b58[_0x5e9e('0x42')]);}_0x4aaf89[_0x5e9e('0x3f')]['change'](_0x521912=>{_0x44733c['markBlockFormat'](_0x521912[_0x5e9e('0x19')](_0x36a39b),{'commandName':_0x255c6c,'commandParams':[]},_0x7a0f8d,_0x255c6c);});});}_0x44733c[_0x5e9e('0x4d')][_0x5e9e('0x1e')](_0x16cb43=>{const {data:_0x175c78}=_0x16cb43;if(_0x175c78)return _0x5e9e('0x45')==_0x175c78[_0x5e9e('0x15')]?{'type':_0x5e9e('0x33'),'content':_0x4dda51(_0x217f30,_0x5e9e('0x31'))}:void 0x0;}),_0x44733c[_0x5e9e('0x4d')][_0x5e9e('0x1e')](_0x202a2e=>{const {data:_0x5b8bc3}=_0x202a2e;if(_0x5b8bc3)return _0x5e9e('0x35')==_0x5b8bc3[_0x5e9e('0x15')]?{'type':_0x5e9e('0x33'),'content':_0x4dda51(_0x217f30,_0x5e9e('0x36'))}:'splitTableCellHorizontally'==_0x5b8bc3[_0x5e9e('0x15')]?{'type':_0x5e9e('0x33'),'content':_0x4dda51(_0x217f30,_0x5e9e('0x2e'))}:void 0x0;});const _0x25ffc5=_0x32e785[_0x5e9e('0x8')]();for(const _0x49a150 of[_0x5e9e('0x2c'),_0x5e9e('0x39'),_0x5e9e('0x14'),_0x5e9e('0x20')])_0x44733c[_0x5e9e('0x1b')]['registerCustomCallback'](_0x5e9e('0x4c'),_0x49a150,'accept',_0x25ffc5);for(const _0x537964 of[_0x5e9e('0x35'),_0x5e9e('0x12')])_0x44733c[_0x5e9e('0x1b')][_0x5e9e('0x2')](_0x5e9e('0x4c'),_0x537964,_0x5e9e('0x3c'),_0x25ffc5);_0x44733c[_0x5e9e('0x1b')][_0x5e9e('0x2')](_0x5e9e('0x4c'),'mergeTableCells','accept',_0x2565bb=>{_0x4aaf89[_0x5e9e('0x3f')][_0x5e9e('0x2d')](_0x4c84fd=>{const _0x5ccb4d=Array[_0x5e9e('0x21')](_0x1be8ae['getRanges']())[_0x5e9e('0x3a')](_0xa0e8e0=>_0x2bda53['fromRange'](_0xa0e8e0));_0x4c84fd[_0x5e9e('0x13')](_0x2565bb),_0x4aaf89['commands']['get']('mergeTableCells')[_0x5e9e('0x4')](),_0x4aaf89[_0x5e9e('0x37')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x20f13e=_0x5ccb4d[_0x5e9e('0x1f')](_0x4c2f7b=>_0x5e9e('0x3d')!=_0x4c2f7b[_0x5e9e('0x2f')][_0x5e9e('0x3')]);_0x20f13e['length']>0x0&&_0x4c84fd['setSelection'](_0x20f13e);for(const _0x1f9ec3 of _0x5ccb4d)_0x1f9ec3[_0x5e9e('0x23')]();});});for(const _0x18810a of['mergeTableCellUp',_0x5e9e('0x14'),_0x5e9e('0x20'),_0x5e9e('0x39')]){const _0x17923e=_0x4aaf89[_0x5e9e('0x44')]['get'](_0x18810a);_0x17923e['on'](_0x5e9e('0x4a'),(_0x37ec6f,_0x51f313,_0xd89e07)=>{if(_0xd89e07){const _0x1ac284=_0x4aaf89['model']['document'][_0x5e9e('0x5')][_0x5e9e('0x48')]()[_0x5e9e('0xf')]()[_0x5e9e('0x4b')](_0x3ce8ac=>_0x3ce8ac['is'](_0x5e9e('0x3b'),_0x5e9e('0xd')));this['_areMergableCells'](_0x17923e[_0x5e9e('0x32')],_0x1ac284)||(_0x37ec6f[_0x5e9e('0x46')]=!0x1,_0x37ec6f['stop']());}},{'priority':_0x5e9e('0x41')});}}[_0x5e9e('0x7')](){const _0x3d9be7=this[_0x5e9e('0x22')]['commands']['get'](_0x5e9e('0x45')),_0x52489c=this[_0x5e9e('0x22')][_0x5e9e('0x25')][_0x5e9e('0x1c')](_0x5e9e('0x1d'));if(!_0x3d9be7[_0x5e9e('0x27')])return!0x1;const _0x5d9b8e=_0x52489c[_0x5e9e('0x2b')](this[_0x5e9e('0x22')][_0x5e9e('0x3f')]['document'][_0x5e9e('0x5')]);for(const _0x7011ba of _0x5d9b8e)for(const _0x4e5bde of _0x5d9b8e)if(_0x7011ba!=_0x4e5bde&&!this[_0x5e9e('0x24')](_0x7011ba,_0x4e5bde))return!0x1;return!0x0;}[_0x5e9e('0x24')](_0x1bb651,_0x3c2ea5){const _0x5bb8bc=this[_0x5e9e('0x22')]['plugins'][_0x5e9e('0x1c')]('TrackChangesEditing'),_0x5eeabd=this['editor'][_0x5e9e('0x3f')][_0x5e9e('0x19')](_0x1bb651),_0x26c1ba=this['editor'][_0x5e9e('0x3f')][_0x5e9e('0x19')](_0x3c2ea5),_0x5f1638=new Set(),_0x4b1c9d=new Set();for(const _0x392414 of _0x5bb8bc[_0x5e9e('0x28')]())if((_0x5e9e('0x0')==_0x392414[_0x5e9e('0x11')]||_0x5e9e('0x2a')==_0x392414[_0x5e9e('0x11')]||'mergeTableCells'==_0x392414['subType'])&&_0x392414['isInContent'])for(const _0x3a4038 of _0x392414['getRanges']())_0x3a4038['containsRange'](_0x5eeabd,!0x0)&&_0x5f1638[_0x5e9e('0x26')](_0x392414['type']+':'+_0x392414['author']['id']),_0x3a4038[_0x5e9e('0xc')](_0x26c1ba,!0x0)&&_0x4b1c9d[_0x5e9e('0x26')](_0x392414[_0x5e9e('0x11')]+':'+_0x392414['author']['id']);if(_0x5f1638[_0x5e9e('0xa')]!=_0x4b1c9d[_0x5e9e('0xa')])return!0x1;for(const _0x119b0e of _0x5f1638)if(!_0x4b1c9d[_0x5e9e('0x40')](_0x119b0e))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2440=['updateMarker','has','get','Title','nodeBefore','element','start','ELEMENT_TITLE','title-content','schema','locale','end','isTouching','forward','removeMarker','_descriptionFactory','document','plugins','registerPostFixer','TrackChangesEditing','suggestion','newRange','isCollapsed','model','afterInit','from'];(function(_0x44728,_0x2440b5){const _0x4d47b2=function(_0x247d6f){while(--_0x247d6f){_0x44728['push'](_0x44728['shift']());}};_0x4d47b2(++_0x2440b5);}(_0x2440,0x65));const _0x4d47=function(_0x44728,_0x2440b5){_0x44728=_0x44728-0x0;let _0x4d47b2=_0x2440[_0x44728];return _0x4d47b2;};import{Plugin as _0x593aec}from'ckeditor5/src/core';import{getTranslation as _0x1acea1}from'../utils/common-translations';export default class wt extends _0x593aec{[_0x4d47('0x1')](){const _0x575dd6=this['editor'];if(!_0x575dd6[_0x4d47('0x14')][_0x4d47('0x4')](_0x4d47('0x6')))return;const _0x2c47a5=_0x575dd6[_0x4d47('0x14')][_0x4d47('0x5')](_0x4d47('0x16'));_0x2c47a5[_0x4d47('0x12')]['registerElementLabel'](_0x4d47('0xb'),()=>_0x1acea1(_0x575dd6[_0x4d47('0xd')],_0x4d47('0xa'))),_0x575dd6[_0x4d47('0x0')][_0x4d47('0x13')][_0x4d47('0x15')](_0xdb6a35=>{let _0x30108c=!0x1;const _0x42fe59=Array[_0x4d47('0x2')](_0x575dd6[_0x4d47('0x0')][_0x4d47('0x13')]['differ']['getChangedMarkers']());for(const {name:_0x3ad1d9,data:_0x5e4ab0}of _0x42fe59){const {group:_0xcf7715}=_0x2c47a5['_splitMarkerName'](_0x3ad1d9);if(_0x4d47('0x17')!==_0xcf7715||!_0x5e4ab0[_0x4d47('0x18')])continue;const _0x41080a=_0x5e4ab0[_0x4d47('0x18')],_0x244b4e=_0x41080a['end'][_0x4d47('0x7')];if(!_0x244b4e||!_0x244b4e['is'](_0x4d47('0x8'),_0x4d47('0xb')))continue;if(!_0x41080a['start'][_0x4d47('0xf')](_0x41080a[_0x4d47('0xe')]))continue;const _0x2cd4e1=_0x575dd6[_0x4d47('0x0')][_0x4d47('0xc')]['getNearestSelectionRange'](_0x41080a[_0x4d47('0xe')],_0x4d47('0x10'));if(_0x2cd4e1&&_0x2cd4e1[_0x4d47('0x19')]){const _0x14a276=_0xdb6a35['createRange'](_0x41080a[_0x4d47('0x9')],_0x2cd4e1[_0x4d47('0x9')]);_0x14a276['isEqual'](_0x41080a)||(_0xdb6a35[_0x4d47('0x3')](_0x3ad1d9,{'range':_0x14a276}),_0x30108c=!0x0);}_0x30108c||(_0xdb6a35[_0x4d47('0x11')](_0x3ad1d9),_0x30108c=!0x0);}return _0x30108c;});}}
|