@ckeditor/ckeditor5-track-changes 35.3.1 → 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.
Files changed (152) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +13 -0
  49. package/lang/translations/ar.po +55 -3
  50. package/lang/translations/az.po +52 -0
  51. package/lang/translations/bg.po +55 -3
  52. package/lang/translations/bn.po +55 -3
  53. package/lang/translations/ca.po +55 -3
  54. package/lang/translations/cs.po +55 -3
  55. package/lang/translations/da.po +55 -3
  56. package/lang/translations/de.po +55 -3
  57. package/lang/translations/el.po +55 -3
  58. package/lang/translations/en-au.po +52 -0
  59. package/lang/translations/en.po +52 -0
  60. package/lang/translations/es.po +55 -3
  61. package/lang/translations/et.po +55 -3
  62. package/lang/translations/fi.po +55 -3
  63. package/lang/translations/fr.po +55 -3
  64. package/lang/translations/gl.po +52 -0
  65. package/lang/translations/he.po +55 -3
  66. package/lang/translations/hi.po +55 -3
  67. package/lang/translations/hr.po +52 -0
  68. package/lang/translations/hu.po +55 -3
  69. package/lang/translations/id.po +55 -3
  70. package/lang/translations/it.po +55 -3
  71. package/lang/translations/ja.po +55 -3
  72. package/lang/translations/ko.po +55 -3
  73. package/lang/translations/lt.po +55 -3
  74. package/lang/translations/lv.po +55 -3
  75. package/lang/translations/ms.po +55 -3
  76. package/lang/translations/nl.po +55 -3
  77. package/lang/translations/no.po +55 -3
  78. package/lang/translations/pl.po +55 -3
  79. package/lang/translations/pt-br.po +55 -3
  80. package/lang/translations/pt.po +55 -3
  81. package/lang/translations/ro.po +55 -3
  82. package/lang/translations/ru.po +55 -3
  83. package/lang/translations/sk.po +55 -3
  84. package/lang/translations/sr-latn.po +52 -0
  85. package/lang/translations/sr.po +55 -3
  86. package/lang/translations/sv.po +55 -3
  87. package/lang/translations/th.po +55 -3
  88. package/lang/translations/tk.po +52 -0
  89. package/lang/translations/tr.po +55 -3
  90. package/lang/translations/tt.po +52 -0
  91. package/lang/translations/uk.po +55 -3
  92. package/lang/translations/ur.po +52 -0
  93. package/lang/translations/vi.po +55 -3
  94. package/lang/translations/zh-cn.po +55 -3
  95. package/lang/translations/zh.po +55 -3
  96. package/package.json +4 -4
  97. package/src/commands/acceptsuggestioncommand.js +1 -1
  98. package/src/commands/discardsuggestioncommand.js +1 -1
  99. package/src/commands/executeonallsuggestionscommand.js +1 -1
  100. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  101. package/src/commands/trackchangescommand.js +1 -1
  102. package/src/integrations/alignment.js +1 -1
  103. package/src/integrations/basicstyles.js +1 -1
  104. package/src/integrations/blockquote.js +1 -1
  105. package/src/integrations/ckbox.js +1 -1
  106. package/src/integrations/codeblock.js +1 -1
  107. package/src/integrations/comments.js +1 -1
  108. package/src/integrations/deletecommand.js +1 -1
  109. package/src/integrations/documentlist.js +1 -1
  110. package/src/integrations/documentlistproperties.js +23 -0
  111. package/src/integrations/entercommand.js +1 -1
  112. package/src/integrations/font.js +1 -1
  113. package/src/integrations/heading.js +1 -1
  114. package/src/integrations/highlight.js +1 -1
  115. package/src/integrations/horizontalline.js +1 -1
  116. package/src/integrations/htmlembed.js +1 -1
  117. package/src/integrations/image.js +1 -1
  118. package/src/integrations/importword.js +1 -1
  119. package/src/integrations/indent.js +1 -1
  120. package/src/integrations/inputcommand.js +1 -1
  121. package/src/integrations/link.js +1 -1
  122. package/src/integrations/list.js +1 -1
  123. package/src/integrations/listproperties.js +23 -0
  124. package/src/integrations/mediaembed.js +1 -1
  125. package/src/integrations/mention.js +1 -1
  126. package/src/integrations/pagebreak.js +1 -1
  127. package/src/integrations/paragraph.js +1 -1
  128. package/src/integrations/removeformat.js +1 -1
  129. package/src/integrations/restrictededitingmode.js +1 -1
  130. package/src/integrations/shiftentercommand.js +1 -1
  131. package/src/integrations/standardeditingmode.js +1 -1
  132. package/src/integrations/style.js +1 -1
  133. package/src/integrations/table.js +1 -1
  134. package/src/integrations/tablecaption.js +1 -1
  135. package/src/integrations/tableclipboard.js +1 -1
  136. package/src/integrations/tablecolumnresize.js +23 -0
  137. package/src/integrations/tableheadings.js +1 -1
  138. package/src/integrations/tablemergesplit.js +1 -1
  139. package/src/integrations/title.js +1 -1
  140. package/src/integrations/undo.js +1 -1
  141. package/src/integrations/utils.js +1 -1
  142. package/src/suggestion.js +1 -1
  143. package/src/suggestiondescriptionfactory.js +1 -1
  144. package/src/trackchanges.js +1 -1
  145. package/src/trackchangesdata.js +1 -1
  146. package/src/trackchangesediting.js +1 -1
  147. package/src/trackchangesui.js +1 -1
  148. package/src/ui/suggestioncontroller.js +1 -1
  149. package/src/ui/view/basesuggestionthreadview.js +1 -1
  150. package/src/ui/view/suggestionthreadview.js +1 -1
  151. package/src/utils/common-translations.js +1 -1
  152. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b63=['editor','change','enableCommand','registerDescriptionCallback','isCollapsed','has','document','_descriptionFactory','selection','FORMAT_RESTRICTED_DISABLED','TrackChangesEditing','StandardEditingModeEditing','commandName','forceValue','afterInit','markInlineFormat','plugins','format','restrictedEditingException','get','commands','FORMAT_RESTRICTED_ENABLED','model'];(function(_0x53ba35,_0x4b63fb){const _0x3d80ba=function(_0x4d64b4){while(--_0x4d64b4){_0x53ba35['push'](_0x53ba35['shift']());}};_0x3d80ba(++_0x4b63fb);}(_0x4b63,0x79));const _0x3d80=function(_0x53ba35,_0x4b63fb){_0x53ba35=_0x53ba35-0x0;let _0x3d80ba=_0x4b63[_0x53ba35];return _0x3d80ba;};import{Plugin as _0x46aa4d}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x304e5f}from'./utils';import{getTranslation as _0x3fe663}from'../utils/common-translations';export default class ht extends _0x46aa4d{[_0x3d80('0x8')](){const _0x508ffa=this[_0x3d80('0x11')],_0x26fbfc=_0x508ffa[_0x3d80('0x10')],_0x174b96=_0x508ffa['locale'];if(!_0x508ffa['plugins'][_0x3d80('0x16')](_0x3d80('0x5')))return;const _0x24708c=_0x508ffa[_0x3d80('0xa')][_0x3d80('0xd')](_0x3d80('0x4')),_0x2d13e3=_0x3d80('0xc'),_0x444546=_0x508ffa[_0x3d80('0xe')]['get'](_0x2d13e3);_0x24708c[_0x3d80('0x13')](_0x2d13e3,(_0x5d6808,_0x19c16d={})=>{const _0x4322d3=_0x26fbfc[_0x3d80('0x0')][_0x3d80('0x2')];if(_0x4322d3[_0x3d80('0x15')])return void _0x5d6808(_0x19c16d);const _0x11099f=void 0x0!==_0x19c16d[_0x3d80('0x7')]?_0x19c16d[_0x3d80('0x7')]:!_0x444546['value'];_0x26fbfc[_0x3d80('0x12')](()=>{const _0x50b0b9=Array['from'](_0x4322d3['getRanges']());for(const _0xaa09cb of _0x50b0b9){const _0x151d0f=_0x11099f?[_0xaa09cb]:_0x304e5f(_0x2d13e3,_0xaa09cb,_0x26fbfc);for(const _0x485c85 of _0x151d0f)_0x24708c[_0x3d80('0x9')](_0x485c85,{'commandName':_0x2d13e3,'commandParams':[{'forceValue':_0x11099f}]});}});}),_0x24708c[_0x3d80('0x1')][_0x3d80('0x14')](_0x394fa8=>{const {data:_0x8305c4}=_0x394fa8;if(_0x8305c4&&_0x8305c4[_0x3d80('0x6')]==_0x2d13e3)return _0x8305c4['commandParams'][0x0][_0x3d80('0x7')]?{'type':_0x3d80('0xb'),'content':_0x3fe663(_0x174b96,_0x3d80('0xf'))}:{'type':_0x3d80('0xb'),'content':_0x3fe663(_0x174b96,_0x3d80('0x3'))};});}}
23
+ const _0xcc1b=['isCollapsed','get','getRanges','_descriptionFactory','markInlineFormat','TrackChangesEditing','registerDescriptionCallback','commandName','format','FORMAT_RESTRICTED_ENABLED','forceValue','enableCommand','change','plugins','model','value','StandardEditingModeEditing','from'];(function(_0x58184e,_0xcc1b8d){const _0x4c8af6=function(_0x35bf27){while(--_0x35bf27){_0x58184e['push'](_0x58184e['shift']());}};_0x4c8af6(++_0xcc1b8d);}(_0xcc1b,0x1d6));const _0x4c8a=function(_0x58184e,_0xcc1b8d){_0x58184e=_0x58184e-0x0;let _0x4c8af6=_0xcc1b[_0x58184e];return _0x4c8af6;};import{Plugin as _0x101a2a}from'ckeditor5/src/core';import{getRangesWithAttribute as _0xadfdcf}from'./utils';import{getTranslation as _0x504ce6}from'../utils/common-translations';export default class ft extends _0x101a2a{['afterInit'](){const _0x3d6b1e=this['editor'],_0x916b84=_0x3d6b1e[_0x4c8a('0xc')],_0x32d7ee=_0x3d6b1e['locale'];if(!_0x3d6b1e['plugins']['has'](_0x4c8a('0xe')))return;const _0x1f972a=_0x3d6b1e[_0x4c8a('0xb')][_0x4c8a('0x11')](_0x4c8a('0x3')),_0x523b46='restrictedEditingException',_0xf6f10b=_0x3d6b1e['commands'][_0x4c8a('0x11')](_0x523b46);_0x1f972a[_0x4c8a('0x9')](_0x523b46,(_0x2a8940,_0x2b6edc={})=>{const _0x3480b1=_0x916b84['document']['selection'];if(_0x3480b1[_0x4c8a('0x10')])return void _0x2a8940(_0x2b6edc);const _0x3323ca=void 0x0!==_0x2b6edc[_0x4c8a('0x8')]?_0x2b6edc[_0x4c8a('0x8')]:!_0xf6f10b[_0x4c8a('0xd')];_0x916b84[_0x4c8a('0xa')](()=>{const _0x568612=Array[_0x4c8a('0xf')](_0x3480b1[_0x4c8a('0x0')]());for(const _0x55ca32 of _0x568612){const _0x1a0287=_0x3323ca?[_0x55ca32]:_0xadfdcf(_0x523b46,_0x55ca32,_0x916b84);for(const _0x411d7f of _0x1a0287)_0x1f972a[_0x4c8a('0x2')](_0x411d7f,{'commandName':_0x523b46,'commandParams':[{'forceValue':_0x3323ca}]});}});}),_0x1f972a[_0x4c8a('0x1')][_0x4c8a('0x4')](_0x5d3a5f=>{const {data:_0x443c5f}=_0x5d3a5f;if(_0x443c5f&&_0x443c5f[_0x4c8a('0x5')]==_0x523b46)return _0x443c5f['commandParams'][0x0][_0x4c8a('0x8')]?{'type':_0x4c8a('0x6'),'content':_0x504ce6(_0x32d7ee,_0x4c8a('0x7'))}:{'type':'format','content':_0x504ce6(_0x32d7ee,'FORMAT_RESTRICTED_DISABLED')};});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d4f=['find','locale','getRanges','format','from','commandName','has','style:','change','get','push','*Remove\x20format:*\x20%0','style.definitions','createRangeOn','style','classes','editor','styleName','registerDescriptionCallback','includes','document','model','afterInit','config','selection','toLowerCase','isCollapsed','TrackChangesEditing','markInlineFormat','getAttribute','getDefinitionsForView','_descriptionFactory','getStyleDefinition','getSelectedBlocks','commandParams','name','forceValue','isBlock','DataSchema','block','getRangesWithClasses','plugins','enabledStyles','markBlockFormat','*Format:*\x20%0'];(function(_0x33710e,_0x5d4fad){const _0x11889a=function(_0x100b79){while(--_0x100b79){_0x33710e['push'](_0x33710e['shift']());}};_0x11889a(++_0x5d4fad);}(_0x5d4f,0x13c));const _0x1188=function(_0x33710e,_0x5d4fad){_0x33710e=_0x33710e-0x0;let _0x11889a=_0x5d4f[_0x33710e];return _0x11889a;};import{Plugin as _0x5f82cc}from'ckeditor5/src/core';import{normalizeConfig as _0x2c387d}from'@ckeditor/ckeditor5-style/src/utils';import{getTranslation as _0x2b2186}from'../utils/common-translations';export default class ut extends _0x5f82cc{[_0x1188('0x15')](){const _0xa8e178=this[_0x1188('0xf')];if(!_0xa8e178[_0x1188('0x28')][_0x1188('0x5')]('Style'))return;const _0x888dac=_0xa8e178['commands'][_0x1188('0x8')](_0x1188('0xd')),_0xb312a6=_0xa8e178[_0x1188('0x28')][_0x1188('0x8')](_0x1188('0x1a')),_0x574b90=_0xa8e178[_0x1188('0x0')],_0x12489f=_0xa8e178[_0x1188('0x28')]['get'](_0x1188('0x25')),_0xfeeb0e=_0x2c387d(_0x12489f,_0xa8e178[_0x1188('0x16')][_0x1188('0x8')](_0x1188('0xb')));_0xb312a6['enableCommand'](_0x1188('0xd'),(_0x52e3cd,{styleName:_0x57714b})=>{const _0x48b081=_0xa8e178[_0x1188('0x14')][_0x1188('0x13')][_0x1188('0x17')],_0xe20ff3=this[_0x1188('0x1f')](_0x57714b,_0xfeeb0e);if(!_0xe20ff3)return;if(!_0x888dac[_0x1188('0x29')]['includes'](_0x57714b))return;if(_0x48b081[_0x1188('0x19')]&&!_0xe20ff3[_0x1188('0x24')])return void _0x52e3cd({'styleName':_0x57714b});const _0x5a4598=!_0x888dac['value'][_0x1188('0x12')](_0xe20ff3[_0x1188('0x22')]);if(_0xe20ff3[_0x1188('0x24')]){const _0x596e30=function(_0x2ecfcc,_0x8d4fa6){const _0x1cf272=new Set();for(const _0x454e78 of _0x2ecfcc){const _0x26feae=_0x454e78['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x581f19 of _0x26feae)if(_0x8d4fa6[_0x1188('0x12')](_0x581f19[_0x1188('0x22')])){_0x1cf272['add'](_0x581f19);break;}}return _0x1cf272;}(_0x48b081[_0x1188('0x20')](),_0xe20ff3['modelElements']);_0xa8e178[_0x1188('0x14')][_0x1188('0x7')](()=>{for(const _0x4018a9 of _0x596e30)_0xb312a6[_0x1188('0x2a')](_0x4018a9,{'commandName':_0x1188('0xd'),'commandParams':[{'styleName':_0x57714b,'forceValue':_0x5a4598}],'formatGroupId':_0x1188('0x6')+_0x57714b});});}else{let _0x5714df=Array[_0x1188('0x3')](_0x48b081[_0x1188('0x1')]());if(!_0x5a4598){const _0x12d5bd=Array[_0x1188('0x3')](_0x12489f[_0x1188('0x1d')](_0xe20ff3['element'],!0x1))[0x0][_0x1188('0x14')],_0x3e0474=[];for(const _0xe638c9 of _0x5714df){const _0x55a4f9=this[_0x1188('0x27')](_0xa8e178[_0x1188('0x14')],_0xe638c9,_0xe20ff3[_0x1188('0xe')],_0x12d5bd);_0x3e0474[_0x1188('0x9')](..._0x55a4f9);}_0x5714df=_0x3e0474;}_0xa8e178[_0x1188('0x14')][_0x1188('0x7')](()=>{for(const _0x3efe5b of _0x5714df)_0xb312a6[_0x1188('0x1b')](_0x3efe5b,{'commandName':_0x1188('0xd'),'commandParams':[{'styleName':_0x57714b,'forceValue':_0x5a4598}]});});}}),_0xb312a6[_0x1188('0x1e')][_0x1188('0x11')](_0x4b5edc=>{const {data:_0x4c1d45}=_0x4b5edc;if(_0x4c1d45&&'style'===_0x4c1d45[_0x1188('0x4')])return _0x4c1d45[_0x1188('0x21')][0x0][_0x1188('0x23')]?{'type':'format','content':_0x2b2186(_0x574b90,_0x1188('0x2b'),_0x4c1d45['commandParams'][0x0][_0x1188('0x10')][_0x1188('0x18')]())}:{'type':_0x1188('0x2'),'content':_0x2b2186(_0x574b90,_0x1188('0xa'),_0x4c1d45[_0x1188('0x21')][0x0][_0x1188('0x10')][_0x1188('0x18')]())};});}[_0x1188('0x1f')](_0x503a4f,_0x1804d0){let _0x3ec084=_0x1804d0[_0x1188('0x26')][_0x1188('0x2c')](_0x8e7e23=>_0x8e7e23['name']===_0x503a4f);return _0x3ec084||(_0x3ec084=_0x1804d0['inline'][_0x1188('0x2c')](_0x487a04=>_0x487a04['name']===_0x503a4f)),_0x3ec084;}[_0x1188('0x27')](_0x4a6d8f,_0x297555,_0x5f0758,_0x512f62){const _0x1a27e7=[];for(const _0x9ce017 of _0x297555['getItems']()){const _0x39ef2b=_0x9ce017[_0x1188('0x1c')](_0x512f62);_0x39ef2b&&(_0x5f0758['every'](_0x24668f=>_0x39ef2b['classes']['includes'](_0x24668f))&&_0x1a27e7[_0x1188('0x9')](_0x4a6d8f[_0x1188('0xc')](_0x9ce017)));}return _0x1a27e7;}}
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 _0x3aa9=['nodeAfter','fromRange','_setupColumnsRowsFixing','getChangedMarkers','setSelection','type','registerDescriptionCallback','tableColumn','isIntersectingWithRange','getCellLocation','data','deletion','afterInit','minRow','detach','downcastDispatcher','root','plugins','addMarker:suggestion','TrackChangesEditing','*Insert:*\x20%0','isEqual','insertTable','document','last','maxColumn','includes','TableEditing','left','span','writer','table','ELEMENT_TABLE_COLUMN_WITH_TEXT','removeTableColumn','some','getSelectionAffectedTableCells','_getCoordsForCells','subType','get','discard','element','from','getSuggestion','locale','minColumn','insertTableColumnLeft','batch','insertion','map','execute','above','hasAttribute','$graveyard','TableUtils','createPositionAt','editor','rowspan','getChanges','mapper','isInContent','item','ELEMENT_TABLE','insert','model','getRowIndexes','getItems','position','nodeBefore','classes','tableRow','getColumnIndexes','length','insertTableRowBelow','commands','end','getFirstRange','_tableSuggestions','ELEMENT_TABLE_ROW','registerCustomCallback','change','startsWith','differ','refresh','createRangeIn','createTableWalker','textProxy','toLowerCase','getChildren','ELEMENT_TABLE_WITH_TEXT','MAX_SAFE_INTEGER','removeTableRow','push','name','_tablePostFixingSubtypes','highest','add','enqueueChange','addRange','addClass','start','order','markMultiRangeInsertion','_acceptFormatSuggestionCallbackFactory','getContainedElement','substr','colspan','accept','min','tableCell','registerElementLabel','_suggestionFactory','findAncestor','*Remove:*\x20%0','_descriptionFactory','selectTableColumn','markMultiRangeDeletion','_getSuggestionCoords','enableCommand','ELEMENT_TABLE_COLUMN','filter','first','max','options','toViewElement','rootName','_splitMarkerName','cell','showSuggestionHighlights','getAttribute','getRanges','insertTableRowAbove','MIN_SAFE_INTEGER','low','maxRow','createRangeOn','join','insertTableColumnRight'];(function(_0x17dbfe,_0x3aa9c1){const _0x3f3ec2=function(_0x5d1229){while(--_0x5d1229){_0x17dbfe['push'](_0x17dbfe['shift']());}};_0x3f3ec2(++_0x3aa9c1);}(_0x3aa9,0xc8));const _0x3f3e=function(_0x17dbfe,_0x3aa9c1){_0x17dbfe=_0x17dbfe-0x0;let _0x3f3ec2=_0x3aa9[_0x17dbfe];return _0x3f3ec2;};import{Plugin as _0x3c99ea}from'ckeditor5/src/core';import{LiveRange as _0x173c35}from'ckeditor5/src/engine';import{setHighlightHandling as _0x6ae0f7}from'ckeditor5/src/widget';import{getTranslation as _0x2ce532}from'../utils/common-translations';export default class ft extends _0x3c99ea{constructor(_0x585709){super(_0x585709),this[_0x3f3e('0x1e')]=[_0x3f3e('0x6'),_0x3f3e('0x51')];}[_0x3f3e('0x56')](){const _0x70d02c=this[_0x3f3e('0x81')],_0x2f3a6d=_0x70d02c['model'][_0x3f3e('0x61')]['selection'];if(!_0x70d02c[_0x3f3e('0x5b')]['has'](_0x3f3e('0x65')))return;const _0x5ddf85=_0x70d02c[_0x3f3e('0x75')],_0x28e424=_0x70d02c[_0x3f3e('0x5b')][_0x3f3e('0x70')](_0x3f3e('0x5d')),_0x48b49f=_0x70d02c[_0x3f3e('0x5b')][_0x3f3e('0x70')](_0x3f3e('0x7f'));_0x28e424[_0x3f3e('0x32')][_0x3f3e('0x2e')](_0x3f3e('0x69'),_0x2fa18a=>_0x2ce532(_0x5ddf85,_0x3f3e('0x87'),_0x2fa18a)),this[_0x3f3e('0x4c')](),_0x28e424['enableCommand'](_0x3f3e('0x60')),_0x28e424[_0x3f3e('0x36')]('selectTableRow'),_0x28e424[_0x3f3e('0x36')](_0x3f3e('0x33'));for(const _0x351bb2 of[_0x3f3e('0x43'),_0x3f3e('0x9')]){const _0x3c5466=_0x70d02c['commands']['get'](_0x351bb2);_0x28e424[_0x3f3e('0x36')](_0x351bb2,_0x525e8e=>{_0x70d02c[_0x3f3e('0x0')][_0x3f3e('0x10')](_0x27aec1=>{_0x525e8e();const _0x3e325a=_0x3f3e('0x7c')===_0x3c5466[_0x3f3e('0x25')],_0x48636b=_0x48b49f[_0x3f3e('0x6d')](_0x2f3a6d),_0x5e02bf=_0x48b49f[_0x3f3e('0x1')](_0x48636b),_0x2615a6=_0x3e325a?_0x5e02bf['first']-0x1:_0x5e02bf[_0x3f3e('0x62')]+0x1,_0x5049fa=_0x48636b[0x0][_0x3f3e('0x30')](_0x3f3e('0x69')),_0x22f95a=_0x48b49f[_0x3f3e('0x15')](_0x5049fa,{'startRow':_0x2615a6,'endRow':_0x2615a6}),_0x27db20=Array['from'](_0x22f95a)[_0x3f3e('0x7a')](_0x22a541=>_0x27aec1['createRangeOn'](_0x22a541[_0x3f3e('0x3f')]));_0x28e424['markMultiRangeInsertion'](_0x27db20,'tableRow');});});}for(const _0x1884d1 of[_0x3f3e('0x77'),_0x3f3e('0x49')]){const _0x43092e=_0x70d02c[_0x3f3e('0xa')][_0x3f3e('0x70')](_0x1884d1);_0x28e424['enableCommand'](_0x1884d1,_0x1a5a89=>{_0x70d02c[_0x3f3e('0x0')][_0x3f3e('0x10')](_0x1d165d=>{_0x1a5a89();const _0x40f994=_0x3f3e('0x66')===_0x43092e[_0x3f3e('0x25')],_0x5024e4=_0x48b49f[_0x3f3e('0x6d')](_0x2f3a6d),_0x439ac4=_0x48b49f[_0x3f3e('0x7')](_0x5024e4),_0x136f6f=_0x40f994?_0x439ac4[_0x3f3e('0x39')]-0x1:_0x439ac4['last']+0x1,_0x6ca8d=_0x5024e4[0x0]['findAncestor']('table'),_0x149f31=_0x48b49f[_0x3f3e('0x15')](_0x6ca8d,{'startRow':0x0,'column':_0x136f6f,'includeAllSlots':!0x1}),_0x1dc831=Array[_0x3f3e('0x73')](_0x149f31)['map'](_0x5c413d=>_0x1d165d[_0x3f3e('0x47')](_0x5c413d['cell']));_0x28e424[_0x3f3e('0x26')](_0x1dc831,'tableColumn');});});}for(const _0x150cd4 of['removeTableRow','removeTableColumn']){const _0x115d42=_0x150cd4[_0x3f3e('0x29')](0xb),_0x1071b0=_0x115d42['toLowerCase'](),_0x2fc61e=_0x1071b0[_0x3f3e('0x29')](0x0,0x3)+_0x3f3e('0x67'),_0x650f3d=_0x3f3e('0x69')+_0x115d42,_0x4a02d6=_0x3f3e('0x2c')+_0x115d42,_0x46c6d4=_0x3f3e('0x3a')+_0x115d42;_0x28e424['enableCommand'](_0x150cd4,()=>{_0x70d02c[_0x3f3e('0x0')][_0x3f3e('0x10')](_0x2b1375=>{const _0x1121a4=_0x48b49f['getSelectionAffectedTableCells'](_0x2f3a6d),_0x38b0e6=_0x1121a4[0x0][_0x3f3e('0x30')](_0x3f3e('0x69'));let _0x27d519;if(_0x3f3e('0x1b')==_0x150cd4){const _0x52678e=_0x48b49f[_0x3f3e('0x1')](_0x1121a4);_0x27d519={'startRow':_0x52678e['first'],'endRow':_0x52678e[_0x3f3e('0x62')],'includeAllSlots':!0x0};}else{const _0x1b2443=_0x48b49f[_0x3f3e('0x7')](_0x1121a4);_0x27d519={'startColumn':_0x1b2443[_0x3f3e('0x39')],'endColumn':_0x1b2443['last'],'includeAllSlots':!0x0};}const _0x1d8a3e=_0x48b49f[_0x3f3e('0x15')](_0x38b0e6,_0x27d519),_0x365658=Array[_0x3f3e('0x73')](_0x1d8a3e)[_0x3f3e('0x7a')](({cell:_0x11dbbd})=>_0x11dbbd),_0x43529a=oe(_0x365658['filter'](_0x5b713b=>_0x5b713b[_0x3f3e('0x7d')](_0x2fc61e))),_0x5df89b=oe(_0x365658[_0x3f3e('0x38')](_0x516d94=>!_0x516d94[_0x3f3e('0x7d')](_0x2fc61e)))[_0x3f3e('0x7a')](_0x12c53e=>_0x2b1375[_0x3f3e('0x47')](_0x12c53e)),_0x2c4865=_0x28e424[_0x3f3e('0x34')](_0x5df89b,_0x650f3d);if(_0x2c4865&&(_0x3f3e('0x6')==_0x2c4865['subType']||_0x3f3e('0x51')==_0x2c4865[_0x3f3e('0x6f')])){const _0x160add=this[_0x3f3e('0x35')](_0x2c4865);for(const _0x2f0b4a of _0x43529a){const _0x5e1395=_0x2b1375[_0x3f3e('0x47')](_0x2f0b4a),_0x140332=_0x48b49f['getCellLocation'](_0x2f0b4a),_0xc32575=_0x2f0b4a[_0x3f3e('0x41')](_0x2fc61e)-0x1,_0xf27c38=_0x160add[_0x4a02d6],_0x340faf=_0x160add[_0x46c6d4];_0xf27c38<=_0x140332[_0x1071b0]&&_0x140332[_0x1071b0]+_0xc32575<=_0x340faf&&_0x2c4865[_0x3f3e('0x22')](_0x5e1395);}}});});}function _0x13a96b(_0x1c9658){const _0x454857=Array[_0x3f3e('0x73')](_0x2f3a6d[_0x3f3e('0x42')]())[_0x3f3e('0x7a')](_0x471b9e=>_0x173c35['fromRange'](_0x471b9e));_0x70d02c['model'][_0x3f3e('0x10')](_0x20f953=>{const _0x3dae41=_0x20f953[_0x3f3e('0x78')];_0x1c9658=_0x1c9658[_0x3f3e('0x38')](_0x4ae64e=>'$graveyard'!=_0x4ae64e[_0x3f3e('0x5a')]['rootName']),_0x20f953[_0x3f3e('0x4e')](_0x1c9658),_0x70d02c[_0x3f3e('0xa')][_0x3f3e('0x70')]('removeTableRow')[_0x3f3e('0x13')](),_0x70d02c[_0x3f3e('0x7b')](_0x3f3e('0x1b'),{'forceDefaultExecution':!0x0}),_0x70d02c[_0x3f3e('0x0')]['enqueueChange'](()=>{_0x70d02c['model'][_0x3f3e('0x21')](_0x3dae41,_0x1ee2e2=>{const _0xecf0a0=_0x454857[_0x3f3e('0x38')](_0x29206c=>'$graveyard'!=_0x29206c['root']['rootName']);_0xecf0a0[_0x3f3e('0x8')]>0x0&&_0x1ee2e2[_0x3f3e('0x4e')](_0xecf0a0);for(const _0xd97c97 of _0x454857)_0xd97c97[_0x3f3e('0x58')]();});});});}function _0x4ec45a(_0x181502){_0x70d02c[_0x3f3e('0x0')][_0x3f3e('0x10')](_0x3d4438=>{const _0x1598e2=Array['from'](_0x2f3a6d['getRanges']())[_0x3f3e('0x7a')](_0x28f28e=>_0x173c35['fromRange'](_0x28f28e)),_0x47f38=[];for(const _0xaeeba6 of _0x181502)for(const _0x232688 of _0xaeeba6[_0x3f3e('0x2')]({'shallow':!0x0}))_0x47f38[_0x3f3e('0x1c')](_0x232688);for(const _0x2b608e of _0x47f38)_0x3f3e('0x7e')!=_0x2b608e['root'][_0x3f3e('0x3d')]&&(_0x3d4438['setSelection'](_0x3d4438[_0x3f3e('0x80')](_0x2b608e,0x0)),_0x70d02c[_0x3f3e('0xa')][_0x3f3e('0x70')](_0x3f3e('0x6b'))['refresh'](),_0x70d02c[_0x3f3e('0x7b')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x21b2f1=_0x1598e2[_0x3f3e('0x38')](_0x1d6364=>_0x3f3e('0x7e')!=_0x1d6364[_0x3f3e('0x5a')]['rootName']);_0x21b2f1['length']>0x0&&_0x3d4438['setSelection'](_0x21b2f1);for(const _0x8886ef of _0x1598e2)_0x8886ef[_0x3f3e('0x58')]();});}function _0x384969(_0x228957,_0x35e51b){return _0x35e51b['every'](_0x5c6552=>_0x228957['some'](_0x14fbe5=>_0x14fbe5[_0x3f3e('0xb')][_0x3f3e('0x5f')](_0x5c6552[_0x3f3e('0x24')])||_0x5c6552[_0x3f3e('0xb')][_0x3f3e('0x5f')](_0x14fbe5[_0x3f3e('0x24')])));}function _0x3acd1c(_0x491726,_0x13489e){return _0x491726[_0x3f3e('0x6c')](_0x28247b=>_0x13489e[_0x3f3e('0x6c')](_0x22b6c3=>_0x28247b['end']['isTouching'](_0x22b6c3[_0x3f3e('0x24')])));}_0x70d02c[_0x3f3e('0x54')][_0x3f3e('0x59')]['on'](_0x3f3e('0x5c'),(_0x5f3354,_0x4e10cb,_0x4313fc)=>{if(!_0x4313fc[_0x3f3e('0x3b')][_0x3f3e('0x40')])return;const _0x215d83=_0x4e10cb[_0x3f3e('0x86')];if(!_0x215d83)return;const _0x3853a4=_0x4313fc[_0x3f3e('0x84')][_0x3f3e('0x3c')](_0x215d83);function _0x13ac93(_0x324bb1){return Array['isArray'](_0x324bb1)?_0x324bb1:[_0x324bb1];}_0x3853a4&&_0x3f3e('0x2d')===_0x215d83['name']&&_0x6ae0f7(_0x3853a4,_0x4313fc[_0x3f3e('0x68')],(_0x5a83d8,_0x38a041,_0x77dc66)=>_0x77dc66[_0x3f3e('0x23')](_0x13ac93(_0x38a041['classes']),_0x5a83d8),(_0x224fdf,_0x582c48,_0x7725d)=>_0x7725d['removeClass'](_0x13ac93(_0x582c48[_0x3f3e('0x5')]),_0x224fdf));},{'priority':_0x3f3e('0x1f')}),_0x28e424[_0x3f3e('0x32')]['registerDescriptionCallback'](_0xb18d54=>{if(_0x3f3e('0x79')!=_0xb18d54['type']&&'deletion'!=_0xb18d54[_0x3f3e('0x4f')])return;const _0x553767=_0xb18d54[_0x3f3e('0x28')]();if(null!=_0x553767&&_0x553767['is'](_0x3f3e('0x72'),_0x3f3e('0x69'))){if(_0x3f3e('0x79')==_0xb18d54['type']){const _0x3f57da=_0xb18d54[_0x3f3e('0x2')]()[_0x3f3e('0x38')](_0x16fd71=>_0x16fd71['is'](_0x3f3e('0x16')))['map'](_0x142498=>_0x142498[_0x3f3e('0x54')]);if(_0x3f57da['length'])return{'type':_0x3f3e('0x79'),'content':_0x2ce532(_0x5ddf85,_0x3f3e('0x5e'),_0x2ce532(_0x5ddf85,_0x3f3e('0x19'),'\x22'+_0x3f57da[_0x3f3e('0x48')]('\x20')+'\x22'))};}if(_0x3f3e('0x55')==_0xb18d54[_0x3f3e('0x4f')]){const _0x23f475=_0xb18d54['getItems']()[_0x3f3e('0x38')](_0x1ffe1e=>_0x1ffe1e['is']('textProxy'))[_0x3f3e('0x7a')](_0x5a11fa=>_0x5a11fa[_0x3f3e('0x54')]);if(_0x23f475[_0x3f3e('0x8')])return{'type':'deletion','content':_0x2ce532(_0x5ddf85,'*Remove:*\x20%0',_0x2ce532(_0x5ddf85,_0x3f3e('0x19'),'\x22'+_0x23f475[_0x3f3e('0x48')]('\x20')+'\x22'))};}}}),_0x28e424[_0x3f3e('0x32')][_0x3f3e('0x50')](_0x5d83a1=>{if(_0x3f3e('0x6')==_0x5d83a1[_0x3f3e('0x6f')]){const _0x259a6a=_0x5d83a1[_0x3f3e('0x2')]()['filter'](_0x4d7e2e=>_0x4d7e2e['is'](_0x3f3e('0x16')))['map'](_0x39b4a9=>_0x39b4a9['data']),_0x4a3693=this['_getSuggestionCoords'](_0x5d83a1),_0x2fa08f=_0x4a3693[_0x3f3e('0x46')]-_0x4a3693[_0x3f3e('0x57')]+0x1;if(_0x3f3e('0x79')==_0x5d83a1[_0x3f3e('0x4f')])return _0x259a6a['length']?{'type':_0x3f3e('0x79'),'content':_0x2ce532(_0x5ddf85,'*Insert:*\x20%0',_0x2ce532(_0x5ddf85,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fa08f,'\x22'+_0x259a6a[_0x3f3e('0x48')]('\x20')+'\x22']))}:{'type':_0x3f3e('0x79'),'content':_0x2ce532(_0x5ddf85,'*Insert:*\x20%0',_0x2ce532(_0x5ddf85,'ELEMENT_TABLE_ROW',_0x2fa08f))};if(_0x3f3e('0x55')==_0x5d83a1[_0x3f3e('0x4f')])return _0x259a6a[_0x3f3e('0x8')]?{'type':_0x3f3e('0x55'),'content':_0x2ce532(_0x5ddf85,_0x3f3e('0x31'),_0x2ce532(_0x5ddf85,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2fa08f,'\x22'+_0x259a6a[_0x3f3e('0x48')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x2ce532(_0x5ddf85,_0x3f3e('0x31'),_0x2ce532(_0x5ddf85,_0x3f3e('0xe'),_0x2fa08f))};}if(_0x3f3e('0x51')==_0x5d83a1[_0x3f3e('0x6f')]){const _0x4142ad=_0x5d83a1[_0x3f3e('0x2')]()[_0x3f3e('0x38')](_0x113bc2=>_0x113bc2['is'](_0x3f3e('0x16')))[_0x3f3e('0x7a')](_0x5ae2a3=>_0x5ae2a3['data']),_0x2fa4c3=this[_0x3f3e('0x35')](_0x5d83a1),_0x27634f=_0x2fa4c3[_0x3f3e('0x63')]-_0x2fa4c3[_0x3f3e('0x76')]+0x1;if('insertion'==_0x5d83a1[_0x3f3e('0x4f')])return _0x4142ad[_0x3f3e('0x8')]?{'type':_0x3f3e('0x79'),'content':_0x2ce532(_0x5ddf85,_0x3f3e('0x5e'),_0x2ce532(_0x5ddf85,_0x3f3e('0x6a'),[_0x27634f,'\x22'+_0x4142ad['join']('\x20')+'\x22']))}:{'type':_0x3f3e('0x79'),'content':_0x2ce532(_0x5ddf85,_0x3f3e('0x5e'),_0x2ce532(_0x5ddf85,'ELEMENT_TABLE_COLUMN',_0x27634f))};if(_0x3f3e('0x55')==_0x5d83a1[_0x3f3e('0x4f')])return _0x4142ad[_0x3f3e('0x8')]?{'type':_0x3f3e('0x55'),'content':_0x2ce532(_0x5ddf85,_0x3f3e('0x31'),_0x2ce532(_0x5ddf85,_0x3f3e('0x6a'),[_0x27634f,'\x22'+_0x4142ad[_0x3f3e('0x48')]('\x20')+'\x22']))}:{'type':_0x3f3e('0x55'),'content':_0x2ce532(_0x5ddf85,_0x3f3e('0x31'),_0x2ce532(_0x5ddf85,_0x3f3e('0x37'),_0x27634f))};}}),_0x28e424[_0x3f3e('0x2f')][_0x3f3e('0xf')](_0x3f3e('0x79'),'tableRow',_0x3f3e('0x71'),_0x13a96b),_0x28e424[_0x3f3e('0x2f')][_0x3f3e('0xf')]('deletion',_0x3f3e('0x6'),_0x3f3e('0x2b'),_0x13a96b),_0x28e424['_suggestionFactory'][_0x3f3e('0xf')]('insertion',_0x3f3e('0x51'),_0x3f3e('0x71'),_0x4ec45a),_0x28e424['_suggestionFactory'][_0x3f3e('0xf')](_0x3f3e('0x55'),'tableColumn',_0x3f3e('0x2b'),_0x4ec45a),_0x28e424[_0x3f3e('0x2f')]['registerCustomCallback'](_0x3f3e('0x79'),'tableColumn',_0x3f3e('0x48'),_0x384969),_0x28e424['_suggestionFactory']['registerCustomCallback'](_0x3f3e('0x55'),_0x3f3e('0x51'),'join',_0x384969),_0x28e424['_suggestionFactory']['registerCustomCallback']('insertion','tableRow',_0x3f3e('0x48'),_0x3acd1c),_0x28e424['_suggestionFactory'][_0x3f3e('0xf')](_0x3f3e('0x55'),_0x3f3e('0x6'),_0x3f3e('0x48'),_0x3acd1c);}[_0x3f3e('0x27')](){const _0x123c94=this[_0x3f3e('0x81')],_0x3e8167=_0x123c94[_0x3f3e('0x0')]['document']['selection'];return(_0x116122,_0x3d872d)=>{_0x123c94[_0x3f3e('0x0')][_0x3f3e('0x10')](_0x3da5d7=>{const {commandName:_0x298b7d,commandParams:_0x5f357f}=_0x3d872d;let _0x47de8b=_0x116122[0x0][_0x3f3e('0xb')][_0x3f3e('0x4')];_0x5f357f&&_0x5f357f[0x0]&&!0x1===_0x5f357f[0x0]['forceValue']&&(_0x47de8b=_0x116122[0x0]['start'][_0x3f3e('0x4a')]);const _0x151b50=_0x3da5d7[_0x3f3e('0x14')](_0x47de8b);if('$graveyard'==_0x151b50[_0x3f3e('0x5a')][_0x3f3e('0x3d')])return;const _0x9d170a=Array['from'](_0x3e8167[_0x3f3e('0x42')]())[_0x3f3e('0x7a')](_0x591385=>_0x173c35[_0x3f3e('0x4b')](_0x591385));_0x3da5d7[_0x3f3e('0x4e')](_0x151b50),_0x123c94[_0x3f3e('0xa')][_0x3f3e('0x70')](_0x298b7d)[_0x3f3e('0x13')](),_0x5f357f[_0x3f3e('0x1c')]({'forceDefaultExecution':!0x0}),_0x123c94[_0x3f3e('0x7b')](_0x298b7d,..._0x5f357f);const _0x3b39ff=_0x9d170a[_0x3f3e('0x38')](_0x1b01cc=>_0x3f3e('0x7e')!=_0x1b01cc[_0x3f3e('0x5a')]['rootName']);_0x3b39ff[_0x3f3e('0x8')]>0x0&&_0x3da5d7[_0x3f3e('0x4e')](_0x3b39ff);for(const _0x284567 of _0x9d170a)_0x284567['detach']();});};}[_0x3f3e('0x6e')](_0x502908){const _0x52766a=this['editor'][_0x3f3e('0x5b')][_0x3f3e('0x70')](_0x3f3e('0x7f'));let _0x2dd73d=Number[_0x3f3e('0x1a')],_0x4f5bfe=Number[_0x3f3e('0x44')],_0x548ec3=Number['MAX_SAFE_INTEGER'],_0x1c0ebc=Number[_0x3f3e('0x44')];for(const _0x45ce3b of _0x502908){if(_0x3f3e('0x7e')==_0x45ce3b[_0x3f3e('0x5a')][_0x3f3e('0x3d')])continue;const {row:_0x54a41a,column:_0x319b21}=_0x52766a[_0x3f3e('0x53')](_0x45ce3b),_0x54235d=_0x45ce3b[_0x3f3e('0x7d')](_0x3f3e('0x82'))?_0x45ce3b['getAttribute'](_0x3f3e('0x82'))-0x1:0x0,_0x50412f=_0x45ce3b[_0x3f3e('0x7d')](_0x3f3e('0x2a'))?_0x45ce3b[_0x3f3e('0x41')](_0x3f3e('0x2a'))-0x1:0x0;_0x2dd73d=_0x54a41a<_0x2dd73d?_0x54a41a:_0x2dd73d,_0x4f5bfe=_0x54a41a+_0x54235d>_0x4f5bfe?_0x54a41a+_0x54235d:_0x4f5bfe,_0x548ec3=_0x319b21<_0x548ec3?_0x319b21:_0x548ec3,_0x1c0ebc=_0x319b21+_0x50412f>_0x1c0ebc?_0x319b21+_0x50412f:_0x1c0ebc;}return{'minRow':_0x2dd73d,'maxRow':_0x4f5bfe,'minColumn':_0x548ec3,'maxColumn':_0x1c0ebc};}['_setupColumnsRowsFixing'](){const _0xc5e428=this['editor'],_0x1226b1=_0xc5e428['plugins'][_0x3f3e('0x70')](_0x3f3e('0x5d')),_0x26a90b=_0xc5e428[_0x3f3e('0x5b')][_0x3f3e('0x70')](_0x3f3e('0x7f'));this[_0x3f3e('0xd')]=new Set(),_0xc5e428['model']['document']['on']('change:data',()=>{const _0x4292ab=Array[_0x3f3e('0x73')](_0xc5e428[_0x3f3e('0x0')][_0x3f3e('0x61')][_0x3f3e('0x12')][_0x3f3e('0x4d')]());for(const {name:_0x40f829,data:_0x5838d6}of _0x4292ab){const {group:_0x432d28,id:_0xbb5f2a,subType:_0x2b7e93}=_0x1226b1[_0x3f3e('0x3e')](_0x40f829);if('suggestion'!=_0x432d28)continue;if(null!=_0x5838d6['oldRange'])continue;const _0x577da4=_0x1226b1[_0x3f3e('0x74')](_0xbb5f2a);this[_0x3f3e('0x1e')][_0x3f3e('0x64')](_0x2b7e93)&&this[_0x3f3e('0xd')][_0x3f3e('0x20')](_0x577da4);}},{'priority':_0x3f3e('0x45')});const _0x52db95=(_0x400b55,_0x1641e4)=>{let _0x2852d6=!0x1;const _0x323a08=_0x1641e4[_0x3f3e('0x47')](_0x400b55),_0x41b8a7=_0x400b55[_0x3f3e('0x30')](_0x3f3e('0x69')),_0x285bbe=_0x26a90b[_0x3f3e('0x53')](_0x400b55);for(const _0x45764a of this[_0x3f3e('0xd')]){const _0x1fc23a=_0x45764a[_0x3f3e('0x6f')],_0x57e8d6=_0x1fc23a[_0x3f3e('0x11')]('tablePaste'),_0x105aa1=_0x1fc23a['substr'](_0x57e8d6?0xa:0x5),_0x53ed40=_0x105aa1[_0x3f3e('0x17')](),_0x4bd829=_0x53ed40[_0x3f3e('0x29')](0x0,0x3)+'span',_0x2e7281='min'+_0x105aa1,_0x2597ce=_0x3f3e('0x3a')+_0x105aa1;if(!_0x45764a[_0x3f3e('0x85')])continue;if(_0x41b8a7!=_0x45764a[_0x3f3e('0xc')]()[_0x3f3e('0x24')]['findAncestor'](_0x3f3e('0x69')))continue;if(_0x45764a[_0x3f3e('0x52')](_0x323a08))continue;const _0x33ad26=_0x400b55[_0x3f3e('0x7d')](_0x4bd829)?_0x400b55[_0x3f3e('0x41')](_0x4bd829)-0x1:0x0,_0x4124df=this[_0x3f3e('0x35')](_0x45764a),_0x24e606=_0x4124df[_0x2e7281],_0x287e53=_0x4124df[_0x2597ce];_0x24e606<=_0x285bbe[_0x53ed40]&&_0x285bbe[_0x53ed40]+_0x33ad26<=_0x287e53&&(_0x45764a[_0x3f3e('0x22')](_0x323a08),_0x2852d6=!0x0);}return _0x2852d6;};_0xc5e428['model'][_0x3f3e('0x61')]['registerPostFixer'](_0x59deba=>{let _0x4944d1=!0x1;for(const _0x349411 of _0xc5e428[_0x3f3e('0x0')][_0x3f3e('0x61')][_0x3f3e('0x12')][_0x3f3e('0x83')]())if(_0x3f3e('0x88')==_0x349411[_0x3f3e('0x4f')]){if(_0x3f3e('0x6')==_0x349411[_0x3f3e('0x1d')])for(const _0x1e8396 of _0x349411['position'][_0x3f3e('0x4a')][_0x3f3e('0x18')]())_0x4944d1=_0x4944d1||_0x52db95(_0x1e8396,_0x59deba);else _0x3f3e('0x2d')==_0x349411['name']&&(_0x4944d1=_0x4944d1||_0x52db95(_0x349411[_0x3f3e('0x3')][_0x3f3e('0x4a')],_0x59deba));}return _0x4944d1;});}['_getSuggestionCoords'](_0x2fa648){return this[_0x3f3e('0x6e')](_0x2fa648[_0x3f3e('0x42')]()['map'](_0x547807=>_0x547807[_0x3f3e('0x24')]['nodeAfter']));}}function oe(_0x12d69e){return Array[_0x3f3e('0x73')](new Set(_0x12d69e)['values']());}
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 _0x1cba=['editor','plugins','requires','get','TableCaptionEditing','TrackChangesEditing'];(function(_0x3ebd05,_0x1cbab1){const _0xe6f0d0=function(_0x1f72a2){while(--_0x1f72a2){_0x3ebd05['push'](_0x3ebd05['shift']());}};_0xe6f0d0(++_0x1cbab1);}(_0x1cba,0x16b));const _0xe6f0=function(_0x3ebd05,_0x1cbab1){_0x3ebd05=_0x3ebd05-0x0;let _0xe6f0d0=_0x1cba[_0x3ebd05];return _0xe6f0d0;};import{Plugin as _0x21b2c8}from'ckeditor5/src/core';import _0x5decf5 from'./table';export default class wt extends _0x21b2c8{static get[_0xe6f0('0x5')](){return[_0x5decf5];}['afterInit'](){const _0x460c60=this[_0xe6f0('0x3')];if(!_0x460c60[_0xe6f0('0x4')]['has'](_0xe6f0('0x1')))return;_0x460c60[_0xe6f0('0x4')][_0xe6f0('0x0')](_0xe6f0('0x2'))['enableCommand']('toggleTableCaption');}}
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 _0x4965=['root','markerAttributes','suggestion:formatBlock:tablePasteCell','tablePaste','stop','differ','column','elementToElement','insertRows','keys','$graveyard','editingDowncast','registerCustomCallback','tableCellBorderColor','isEqual','markerName','previous','forceDefaultExecution','tablePasteChainId','commands','markMultiRangeInsertion','getSuggestions','getChild','start','endRow','_suggestionFactory','tableCell','setAttribute','removeMarker','end','tableCellSuggestion','locale','markMultiRangeDeletion','suggestionUnloaded','suggestion-td','_getCoordsForCells','columnInsertionRanges','rowInsertionRanges','cell','getMarkers','author','insertContent','rootName','filter','position','getItems','plugins','_splitMarkerName','setAttributes','removeMarkers','findAncestor','oldRange','insert','deletion','getShiftedBy','registerDescriptionCallback','options','ck-suggestion-marker','attributes','trackChanges','removeRows','subType','tableCellBackgroundColor','first','row','markerToHighlight','find','insertColumns','getRows','content','rows','model','tablePasteRow','activeMarkers','length','editor','getAttributes','tablePasteColumn','change','getColumnIndexes','from','markMultiRangeBlockFormat','createTableWalker','deletionRanges','set','getSelectionAffectedTableCells','register','paragraph','*Replace\x20table\x20cells*','listenTo','suggestionLoaded','containsRange','add','push','some','remove','low','createRangeOn','redo','hasSuggestion','for','_tablePostFixingSubtypes','tableCellBorderStyle','fill','documentSelection','endColumn','batch','selection','registerPostFixer','_replaceTableSlotCell','getSuggestionCallback','insertion','getChangedMarkers','getRange','getRowIndexes','getContainedElement','entries','high','discard','map','tableCellPadding','previousSibling','conversion','_createdBatches','createRange','getChanges','document','columnInsertionIndexes','getRanges','TableClipboard','formatBlock','afterInit','getChildren','TableUtils','getAllAdjacentSuggestions','rowInsertionIndexes','fromEntries','cells','get','isInContent','updateMarker','next','last','startsWith','element','name','createRangeIn','suggestion','Users','TrackChangesEditing','tableCellVerticalAlignment','value','_descriptionFactory','tablePasteCell','includes','ck-suggestion-marker--active','isEmpty','accept','newRange','tableCellBorderWidth','table','type','has','columns','move'];(function(_0x549487,_0x4965c9){const _0x37e9b0=function(_0xea6451){while(--_0xea6451){_0x549487['push'](_0x549487['shift']());}};_0x37e9b0(++_0x4965c9);}(_0x4965,0x1c7));const _0x37e9=function(_0x549487,_0x4965c9){_0x549487=_0x549487-0x0;let _0x37e9b0=_0x4965[_0x549487];return _0x37e9b0;};import{getTranslation as _0x5eb071}from'../utils/common-translations';import{Plugin as _0x3db960}from'ckeditor5/src/core';import _0x24a371 from'./table';import{uid as _0x4e8dfa,priorities as _0x40eb59}from'ckeditor5/src/utils';const ne=[_0x37e9('0x22'),_0x37e9('0x35'),_0x37e9('0x8e'),'tableCellHorizontalAlignment',_0x37e9('0x19'),_0x37e9('0x66'),_0x37e9('0xa0')],le=Object[_0x37e9('0xb')](ne[_0x37e9('0x9f')](_0x4f20ae=>[_0x4f20ae,null]));export default class mt extends _0x3db960{static get['requires'](){return[_0x24a371];}[_0x37e9('0x6')](){const _0x4253ce=this[_0x37e9('0x73')];if(!_0x4253ce[_0x37e9('0x56')]['has']('TableClipboard'))return;const _0x2e279c=_0x4253ce[_0x37e9('0x56')]['get'](_0x37e9('0x18')),_0x1e5ab3=_0x4253ce[_0x37e9('0x56')][_0x37e9('0xd')](_0x37e9('0x8')),_0x1a74b1=_0x4253ce[_0x37e9('0x56')]['get'](_0x24a371),_0x288fe6=_0x4253ce[_0x37e9('0x56')][_0x37e9('0xd')](_0x37e9('0x4'));_0x1a74b1[_0x37e9('0x8d')][_0x37e9('0x85')](_0x37e9('0x70'),'tablePasteColumn'),_0x4253ce['model']['schema'][_0x37e9('0x7e')](_0x37e9('0x46'),{'allowIn':'tableCell','allowContentOf':_0x37e9('0x42'),'isLimit':!0x0}),_0x4253ce[_0x37e9('0xa2')][_0x37e9('0x2f')]({'model':_0x37e9('0x46'),'view':'suggestion-td'});let _0x5916e8=null;_0x4253ce['model']['on'](_0x37e9('0x51'),(_0x24d3dd,_0x25556e)=>{const [_0x3b4ac0,_0x581407]=_0x25556e,_0x1b5117=_0x25556e[_0x25556e[_0x37e9('0x72')]-0x1];_0x1b5117&&_0x1b5117[_0x37e9('0x39')]||_0x2e279c['_isForcedDefaultExecutionBlock']||this[_0x37e9('0x73')]['commands'][_0x37e9('0xd')](_0x37e9('0x63'))[_0x37e9('0x1a')]&&function(_0x143d52,_0x1c2e53,_0x180aee,_0x18fce9,_0x11e8b6){if(_0x1c2e53&&!_0x1c2e53['is'](_0x37e9('0x90')))return!0x1;const _0x435b79=_0x11e8b6['getTableIfOnlyTableInContent'](_0x143d52,_0x180aee);if(!_0x435b79||!ae(_0x435b79,null,_0x18fce9))return!0x1;const _0x23533b=_0x18fce9[_0x37e9('0x7d')](_0x180aee[_0x37e9('0x1')][_0x37e9('0x93')]);if(!_0x23533b['length'])return!0x1;const _0x462111=_0x23533b[0x0][_0x37e9('0x5a')](_0x37e9('0x23')),_0x280b2f=_0x18fce9[_0x37e9('0x9a')](_0x23533b),_0x2005a6=_0x18fce9[_0x37e9('0x77')](_0x23533b),_0x3487b9={'startRow':_0x280b2f[_0x37e9('0x67')],'endRow':_0x280b2f[_0x37e9('0x11')],'startColumn':_0x2005a6['first'],'endColumn':_0x2005a6[_0x37e9('0x11')]};return 0x1==_0x23533b[_0x37e9('0x72')]&&(_0x3487b9[_0x37e9('0x40')]+=_0x18fce9[_0x37e9('0x6c')](_0x435b79)-0x1,_0x3487b9[_0x37e9('0x91')]+=_0x18fce9['getColumns'](_0x435b79)-0x1),ae(_0x462111,_0x3487b9,_0x18fce9);}(_0x3b4ac0,_0x581407,_0x4253ce['model'],_0x1e5ab3,_0x288fe6)&&(_0x24d3dd[_0x37e9('0x2c')](),_0x5916e8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4253ce['model'][_0x37e9('0x76')](()=>{_0x4253ce[_0x37e9('0x6f')]['insertContent'](_0x25556e[0x0],_0x25556e[0x1],_0x25556e[0x2],_0x25556e[0x3],{'forceDefaultExecution':!0x0});const _0x7fd24e=_0x4e8dfa(),{rowInsertionRanges:_0x56c02e,columnInsertionRanges:_0x63746c,insertionRanges:_0x3c71e0,deletionRanges:_0x227316,cells:_0x23951a}=_0x5916e8;_0x56c02e[_0x37e9('0x72')]&&_0x2e279c[_0x37e9('0x3c')](_0x56c02e,_0x37e9('0x70'),{'tablePasteChainId':_0x7fd24e}),_0x63746c[_0x37e9('0x72')]&&_0x2e279c[_0x37e9('0x3c')](_0x63746c,'tablePasteColumn',{'tablePasteChainId':_0x7fd24e}),_0x3c71e0[_0x37e9('0x72')]&&_0x2e279c['markMultiRangeInsertion'](_0x3c71e0,'tablePaste',{'tablePasteChainId':_0x7fd24e,'skipNestingCheck':!0x0}),_0x227316['length']&&_0x2e279c[_0x37e9('0x48')](_0x227316,_0x37e9('0x2b'),{'tablePasteChainId':_0x7fd24e,'skipNestingCheck':!0x0});const _0x656f2a=_0x2e279c[_0x37e9('0x79')](_0x23951a[_0x37e9('0x9f')](({element:_0x35016a})=>_0x35016a),{'formatGroupId':_0x4e8dfa()},[],_0x37e9('0x1c'),{'tablePasteChainId':_0x7fd24e});if(_0x656f2a){const _0x2ea1fd=_0x656f2a['getMarkers'](),_0x475ee8=[];for(const {element:_0x986f8f,attributes:_0x3083cf}of _0x23951a){if(!_0x3083cf)continue;const _0x176c13=_0x4253ce['model'][_0x37e9('0x89')](_0x986f8f),_0x5b0695=_0x2ea1fd[_0x37e9('0x6a')](_0x4f072f=>_0x4f072f['getRange']()[_0x37e9('0x36')](_0x176c13));_0x5b0695&&_0x475ee8[_0x37e9('0x85')]([_0x5b0695['name'],_0x3083cf]);}_0x475ee8[_0x37e9('0x72')]&&_0x656f2a[_0x37e9('0x43')]('markerAttributes',Object[_0x37e9('0xb')](_0x475ee8));}_0x5916e8=null;}));},{'priority':_0x40eb59['high']+0xa}),_0x4253ce[_0x37e9('0x56')][_0x37e9('0xd')](_0x37e9('0x4'))['on'](_0x37e9('0x95'),(_0x1cb7b4,_0xc04fbd)=>{const [_0x38e5f3,_0x349ecc,,_0x491140]=_0xc04fbd;if(!_0x5916e8)return;_0x1cb7b4[_0x37e9('0x2c')]();const _0x35b300=_0x38e5f3[_0x37e9('0x4e')],_0x318c71=_0x349ecc,_0x5a11f9=se(_0x35b300),_0x3e9ab7=se(_0x318c71);_0x1cb7b4['return']=_0x35b300;let _0x34bff6=null,_0xa5f95c=null;if(_0x3e9ab7||_0x5a11f9){if(_0x5a11f9&&!_0x3e9ab7){_0x491140[_0x37e9('0x87')](_0x35b300[_0x37e9('0x3e')](0x0));for(const _0x2aa121 of Array[_0x37e9('0x78')](_0x318c71[_0x37e9('0x7')]()))_0x491140[_0x37e9('0x5c')](_0x2aa121,_0x35b300,'end');const _0x5e0f65=_0x5916e8[_0x37e9('0xa')][_0x37e9('0x1d')](_0x38e5f3[_0x37e9('0x68')]),_0x35aba1=_0x5916e8['columnInsertionIndexes']['includes'](_0x38e5f3[_0x37e9('0x2e')]);_0x5e0f65||_0x35aba1||(_0x34bff6=_0x491140[_0x37e9('0x15')](_0x35b300));}else _0x3e9ab7&&!_0x5a11f9&&(_0xa5f95c=_0x491140[_0x37e9('0x15')](_0x35b300));}else{const _0x429a57=_0x491140['createElement'](_0x37e9('0x46')),_0x33ec43=_0x491140['createElement'](_0x37e9('0x46'));_0x491140['wrap'](_0x491140[_0x37e9('0x15')](_0x35b300),_0x33ec43),_0x491140[_0x37e9('0x5c')](_0x429a57,_0x35b300,0x0);for(const _0x3d74ba of Array[_0x37e9('0x78')](_0x318c71[_0x37e9('0x7')]()))_0x491140[_0x37e9('0x5c')](_0x3d74ba,_0x429a57,_0x37e9('0x45'));_0x34bff6=_0x491140[_0x37e9('0x89')](_0x429a57),_0xa5f95c=_0x491140[_0x37e9('0x89')](_0x33ec43);}const _0x294ed6=Array[_0x37e9('0x78')](_0x318c71[_0x37e9('0x74')]())[_0x37e9('0x53')](([_0x3d855e])=>ne[_0x37e9('0x1d')](_0x3d855e));_0x5916e8[_0x37e9('0xc')][_0x37e9('0x85')]({'element':_0x35b300,'attributes':_0x294ed6[_0x37e9('0x72')]?Object['fromEntries'](_0x294ed6):null}),_0x34bff6&&_0x5916e8['insertionRanges']['push'](_0x34bff6),_0xa5f95c&&_0x5916e8[_0x37e9('0x7b')][_0x37e9('0x85')](_0xa5f95c);},{'priority':_0x37e9('0x9d')}),_0x1e5ab3['on'](_0x37e9('0x6b'),(_0x18ea41,_0x5d4ccd)=>{const [_0x21c536,_0xff1713={}]=_0x5d4ccd;if(!_0x5916e8)return;const _0x1b4a21=_0xff1713['at']||0x0,_0x531b26=_0xff1713[_0x37e9('0x26')]||0x1;_0x5916e8[_0x37e9('0x2')]=new Array(_0x531b26)[_0x37e9('0x8f')](_0x1b4a21)[_0x37e9('0x9f')]((_0x229cae,_0x4ae602)=>_0x229cae+_0x4ae602);for(const {cell:_0x4d8a35}of _0x1e5ab3[_0x37e9('0x7a')](_0x21c536,{'startColumn':_0x1b4a21,'endColumn':_0x1b4a21+_0x531b26-0x1}))_0x5916e8[_0x37e9('0x4c')][_0x37e9('0x85')](_0x4253ce[_0x37e9('0x6f')][_0x37e9('0x89')](_0x4d8a35));},{'priority':_0x37e9('0x88')}),_0x1e5ab3['on'](_0x37e9('0x30'),(_0x57451,_0x12e903)=>{const [_0x4e78fd,_0x7a28b4={}]=_0x12e903;if(!_0x5916e8)return;const _0x51901b=_0x7a28b4['at']||0x0,_0x62b8f3=_0x7a28b4[_0x37e9('0x6e')]||0x1;_0x5916e8[_0x37e9('0xa')]=new Array(_0x62b8f3)[_0x37e9('0x8f')](_0x51901b)[_0x37e9('0x9f')]((_0x34fe3e,_0x2b9303)=>_0x34fe3e+_0x2b9303);for(const {cell:_0x2dc90e}of _0x1e5ab3['createTableWalker'](_0x4e78fd,{'startRow':_0x51901b,'endRow':_0x51901b+_0x62b8f3-0x1}))_0x5916e8[_0x37e9('0x4d')][_0x37e9('0x85')](_0x4253ce['model']['createRangeOn'](_0x2dc90e));},{'priority':_0x37e9('0x88')}),_0x2e279c[_0x37e9('0x1b')][_0x37e9('0x5f')](_0x491bd7=>{if(_0x491bd7[_0x37e9('0x65')]&&_0x491bd7[_0x37e9('0x65')][_0x37e9('0x12')](_0x37e9('0x2b')))return _0x491bd7['previous']?{}:{'type':_0x37e9('0x97'),'content':_0x5eb071(_0x4253ce[_0x37e9('0x47')],_0x37e9('0x80'))};});const _0xb2809c=()=>{};for(const _0x32d296 of[_0x37e9('0x2b'),'tablePasteColumn',_0x37e9('0x70'),_0x37e9('0x1c')])_0x2e279c[_0x37e9('0x41')][_0x37e9('0x34')](_0x37e9('0x97'),_0x32d296,'join',_0xb2809c),_0x2e279c[_0x37e9('0x41')]['registerCustomCallback'](_0x37e9('0x5d'),_0x32d296,'join',_0xb2809c);_0x2e279c['_suggestionFactory']['registerCustomCallback'](_0x37e9('0x5'),_0x37e9('0x1c'),'discard',_0xb2809c),_0x2e279c[_0x37e9('0x41')]['registerCustomCallback']('formatBlock',_0x37e9('0x1c'),_0x37e9('0x20'),(_0x48e2c3,_0x18a823,_0x10422b)=>{const _0x580989=_0x48e2c3[_0x37e9('0x9f')](_0xcf75be=>_0xcf75be['getContainedElement']())['filter'](_0x480b94=>_0x480b94),_0x527031=new Map(_0x580989[_0x37e9('0x9f')](_0xa38a70=>[_0xa38a70,null]));if(_0x5916e8)for(const {element:_0x15763a,attributes:_0x1778b9}of _0x5916e8[_0x37e9('0xc')])_0x1778b9&&_0x527031[_0x37e9('0x7c')](_0x15763a,_0x1778b9);else{if(_0x10422b&&_0x10422b['markerAttributes'])for(const [_0x2fa651,_0x3edb90]of Object[_0x37e9('0x9c')](_0x10422b[_0x37e9('0x29')])){const _0x13416a=_0x4253ce['model']['markers']['get'](_0x2fa651),_0x4a41d8=_0x13416a?_0x13416a[_0x37e9('0x99')]()['getContainedElement']():null;_0x4a41d8&&_0x527031['set'](_0x4a41d8,_0x3edb90);}}_0x4253ce[_0x37e9('0x6f')][_0x37e9('0x76')](_0x268acb=>{for(const [_0x2bd061,_0x48e5e8]of _0x527031)_0x268acb[_0x37e9('0x58')]({...le,..._0x48e5e8},_0x2bd061);});});const _0x1f2807=(_0x1457b0,_0x30bd47)=>{_0x2e279c[_0x37e9('0x41')][_0x37e9('0x34')](_0x1457b0,_0x37e9('0x2b'),_0x30bd47,(_0x2c9be5,_0x461b13,_0x2c16f5)=>{_0x4253ce[_0x37e9('0x6f')]['change'](_0x3929a9=>{const _0x116561=[];for(const _0x29c513 of _0x2c9be5){const _0x3b976c=_0x29c513[_0x37e9('0x3f')]['nodeAfter'];_0x3b976c['is'](_0x37e9('0x13'),_0x37e9('0x46'))&&_0x116561[_0x37e9('0x85')](_0x3b976c);}_0x2e279c[_0x37e9('0x41')][_0x37e9('0x96')](_0x1457b0,null,_0x30bd47)(_0x2c9be5,_0x461b13,_0x2c16f5);for(const _0x5746ea of _0x116561)_0x37e9('0x32')!=_0x5746ea[_0x37e9('0x28')][_0x37e9('0x52')]&&_0x3929a9['unwrap'](_0x5746ea);});});};_0x1f2807('insertion',_0x37e9('0x20')),_0x1f2807(_0x37e9('0x97'),_0x37e9('0x9e')),_0x1f2807('deletion',_0x37e9('0x20')),_0x1f2807(_0x37e9('0x5d'),_0x37e9('0x9e')),_0x2e279c[_0x37e9('0x41')][_0x37e9('0x34')](_0x37e9('0x97'),_0x37e9('0x70'),_0x37e9('0x9e'),_0x234fc1=>{const _0x2f7c4=_0x234fc1[_0x37e9('0x9f')](_0x574493=>_0x574493[_0x37e9('0x9b')]()),_0x3e82be=_0x2f7c4[0x0][_0x37e9('0x5a')](_0x37e9('0x23')),{minRow:_0x2bf49e,maxRow:_0x5c11b5}=_0x1a74b1[_0x37e9('0x4b')](_0x2f7c4);_0x1e5ab3[_0x37e9('0x64')](_0x3e82be,{'at':_0x2bf49e,'rows':_0x5c11b5-_0x2bf49e+0x1});}),_0x2e279c['_suggestionFactory'][_0x37e9('0x34')]('insertion',_0x37e9('0x75'),_0x37e9('0x9e'),_0x15ca62=>{const _0x5b3e17=_0x15ca62['map'](_0xcc8af9=>_0xcc8af9['getContainedElement']()),_0x7e3c67=_0x5b3e17[0x0][_0x37e9('0x5a')]('table'),{minColumn:_0x5e8890,maxColumn:_0x2a7919}=_0x1a74b1[_0x37e9('0x4b')](_0x5b3e17);_0x1e5ab3['removeColumns'](_0x7e3c67,{'at':_0x5e8890,'columns':_0x2a7919-_0x5e8890+0x1});});const _0x1a887e=(_0x1012a3,_0x3db8a7)=>{if(!_0x3db8a7['subType']||!_0x3db8a7[_0x37e9('0x65')][_0x37e9('0x12')](_0x37e9('0x2b')))return;const _0x3e3574=_0x3db8a7['attributes'][_0x37e9('0x3a')],_0x140a41=_0x2e279c[_0x37e9('0x3d')]()[_0x37e9('0x53')](_0x255f73=>_0x255f73[_0x37e9('0xe')]&&_0x255f73[_0x37e9('0x62')]&&_0x255f73['attributes'][_0x37e9('0x3a')]==_0x3e3574);_0x140a41[_0x37e9('0x72')]&&_0x3db8a7['getAllAdjacentSuggestions']()[_0x37e9('0x72')]!=_0x140a41[_0x37e9('0x72')]&&_0x140a41['reduce']((_0x6a499c,_0x39388f)=>(_0x6a499c[_0x37e9('0x10')]=_0x39388f,_0x39388f[_0x37e9('0x38')]=_0x6a499c,_0x39388f));};function _0x20e094(_0x1734d6,{showActiveMarker:_0x2510bc=!0x0}={}){const {id:_0x388a3b}=_0x2e279c['_splitMarkerName'](_0x1734d6['markerName']),_0x1e6cf2=[_0x37e9('0x61'),'ck-suggestion-marker-insertion'],_0xa3a81d=_0x2e279c[_0x37e9('0x71')][_0x37e9('0x1d')](_0x1734d6[_0x37e9('0x37')]);return _0xa3a81d&&_0x1e6cf2[_0x37e9('0x85')](_0x37e9('0x1e')),{'classes':_0x1e6cf2,'attributes':{'data-suggestion':_0x388a3b},'priority':_0xa3a81d&&_0x2510bc?0xbc2:0xbb8};}_0x2e279c['on'](_0x37e9('0x82'),_0x1a887e,{'priority':_0x37e9('0x9d')}),_0x2e279c['on'](_0x37e9('0x49'),_0x1a887e,{'priority':'high'}),_0x4253ce[_0x37e9('0x6f')][_0x37e9('0x1')][_0x37e9('0x94')](()=>{let _0x496c3d=!0x1;const _0x554180=Array[_0x37e9('0x78')](_0x4253ce[_0x37e9('0x6f')][_0x37e9('0x1')]['differ'][_0x37e9('0x98')]());for(const {name:_0x3587c6,data:_0x13218d}of _0x554180){const {group:_0x518e3b,type:_0x5a7f17,id:_0x5afa7a}=_0x2e279c[_0x37e9('0x57')](_0x3587c6);if(_0x37e9('0x16')!=_0x518e3b||_0x37e9('0x5d')!=_0x5a7f17||_0x13218d[_0x37e9('0x5b')])continue;if(!_0x2e279c[_0x37e9('0x8b')](_0x5afa7a))continue;const _0x25b74b=_0x2e279c['getSuggestion'](_0x5afa7a)[_0x37e9('0x3')](),_0x761f66=_0x4253ce[_0x37e9('0x56')]['get'](_0x37e9('0x17'))['me'];for(const _0x56249e of _0x2e279c['getSuggestions']()){if(!_0x56249e[_0x37e9('0xe')]||_0x56249e[_0x37e9('0x50')]!=_0x761f66)continue;if(_0x37e9('0x5')!=_0x56249e[_0x37e9('0x24')]||'tablePasteCell'!=_0x56249e[_0x37e9('0x65')])continue;if(_0x56249e['getRanges']()['every'](_0x4747e6=>_0x25b74b[_0x37e9('0x86')](_0x3f7c19=>_0x3f7c19[_0x37e9('0x83')](_0x4747e6,!0x0))))for(const _0x3d7bd6 of _0x56249e[_0x37e9('0x9')]())_0x3d7bd6[_0x37e9('0xe')]&&(_0x3d7bd6[_0x37e9('0x9e')](),_0x496c3d=!0x0);}}return _0x496c3d;}),_0x4253ce[_0x37e9('0x6f')]['document'][_0x37e9('0x94')](_0x5974c2=>{const _0x57932a=_0x4253ce[_0x37e9('0x3b')][_0x37e9('0xd')](_0x37e9('0x8a'));if(!_0x57932a||!_0x57932a[_0x37e9('0xa3')][_0x37e9('0x25')](_0x5974c2[_0x37e9('0x92')]))return!0x1;let _0x2fa8ee=!0x1;const _0x153775=_0x4253ce['plugins'][_0x37e9('0xd')](_0x37e9('0x17'))['me'],_0x5d0d2d=_0x4253ce['model']['document'][_0x37e9('0x2d')][_0x37e9('0x0')](),_0x24be8d=Array[_0x37e9('0x78')](_0x4253ce['model'][_0x37e9('0x1')][_0x37e9('0x2d')][_0x37e9('0x98')]())[_0x37e9('0x53')](({name:_0x259e13,data:_0x53d742})=>{const {group:_0x2d48b0,subType:_0x1fbced,authorId:_0x1f3ac5}=_0x2e279c[_0x37e9('0x57')](_0x259e13);return'suggestion'==_0x2d48b0&&_0x37e9('0x2b')==_0x1fbced&&_0x1f3ac5==_0x153775['id']&&!_0x53d742[_0x37e9('0x5b')];});for(const _0x1b08c4 of _0x5d0d2d){if(_0x37e9('0x5c')!=_0x1b08c4[_0x37e9('0x24')]||_0x37e9('0x46')!=_0x1b08c4[_0x37e9('0x14')]||0x1!=_0x1b08c4[_0x37e9('0x72')])continue;const _0x153b45=_0x5974c2[_0x37e9('0xa4')](_0x1b08c4['position'],_0x1b08c4[_0x37e9('0x54')][_0x37e9('0x5e')](0x1));if(!_0x24be8d[_0x37e9('0x6a')](({data:_0x543480})=>_0x543480[_0x37e9('0x21')][_0x37e9('0x36')](_0x153b45)))for(const {name:_0x1ebe52,data:_0x17a5d4}of _0x24be8d)if(_0x153b45['containsRange'](_0x17a5d4['newRange'])){_0x5974c2[_0x37e9('0xf')](_0x1ebe52,{'range':_0x153b45}),_0x2fa8ee=!0x0;break;}}return _0x2fa8ee;}),_0x4253ce['model']['document'][_0x37e9('0x94')](_0x38e943=>{let _0x2f168c=!0x1;const _0x26c79e=_0x4253ce['plugins'][_0x37e9('0xd')](_0x37e9('0x17'))['me'],_0x11163c=_0x2e279c[_0x37e9('0x3d')]()['filter'](_0x2bc92c=>_0x2bc92c[_0x37e9('0xe')]&&_0x2bc92c['author']==_0x26c79e),_0x4a607c=new Set(),_0x1421a7=new Set();for(const _0x2c96df of _0x11163c)if('tablePaste'==_0x2c96df[_0x37e9('0x65')])for(const _0x4b93ce of _0x2c96df[_0x37e9('0x4f')]()){const _0x5dbfbf=_0x4b93ce[_0x37e9('0x99')]()[_0x37e9('0x9b')]();if(_0x5dbfbf){if(_0x5dbfbf['is'](_0x37e9('0x13'),_0x37e9('0x46'))&&se(_0x5dbfbf)){_0x2c96df[_0x37e9('0x44')](_0x4b93ce[_0x37e9('0x14')]),_0x4a607c[_0x37e9('0x84')](_0x5dbfbf),_0x2f168c=!0x0;const _0x168a69=_0x5dbfbf['nextSibling'],_0x5ecf2d=_0x5dbfbf[_0x37e9('0xa1')],_0x1bfee1=_0x168a69&&_0x168a69['is'](_0x37e9('0x13'),_0x37e9('0x46')),_0x1a099b=_0x5ecf2d&&_0x5ecf2d['is'](_0x37e9('0x13'),_0x37e9('0x46'));_0x1bfee1&&!_0x4a607c['has'](_0x168a69)&&_0x1421a7[_0x37e9('0x84')](_0x168a69),_0x1a099b&&!_0x4a607c['has'](_0x5ecf2d)&&_0x1421a7[_0x37e9('0x84')](_0x5ecf2d);}else _0x5dbfbf['is'](_0x37e9('0x13'),'paragraph')&&_0x5dbfbf[_0x37e9('0x1f')]&&(_0x2c96df[_0x37e9('0x44')](_0x4b93ce[_0x37e9('0x14')]),_0x2f168c=!0x0);}}else{if(_0x37e9('0x1c')==_0x2c96df['subType']){if(!_0x2c96df[_0x37e9('0x62')]||!_0x2c96df['attributes']['tablePasteChainId'])continue;const _0x2601a9=_0x2c96df['attributes'][_0x37e9('0x29')];if(_0x2601a9&&Object[_0x37e9('0x31')](_0x2601a9)[_0x37e9('0x72')])continue;const _0x2d8362=_0x2c96df[_0x37e9('0x62')][_0x37e9('0x3a')];let _0x36b22d=!0x0,_0x5b167d=!0x0;for(const _0x40f51e of _0x11163c)if(_0x40f51e[_0x37e9('0x65')]&&_0x40f51e[_0x37e9('0x65')][_0x37e9('0x12')](_0x37e9('0x2b'))){if(!_0x40f51e[_0x37e9('0x62')][_0x37e9('0x3a')]){_0x5b167d=!0x1;break;}if(_0x40f51e['id']!=_0x2c96df['id']&&_0x40f51e[_0x37e9('0x62')]['tablePasteChainId']==_0x2d8362){_0x36b22d=!0x1;break;}}_0x5b167d&&_0x36b22d&&(_0x2c96df[_0x37e9('0x59')](),_0x2f168c=!0x0);}}for(const _0x57b896 of _0x4a607c)_0x38e943[_0x37e9('0x87')](_0x57b896);for(const _0x423758 of _0x1421a7)_0x38e943['unwrap'](_0x423758);return _0x2f168c;}),_0x4253ce[_0x37e9('0xa2')][_0x37e9('0x8c')](_0x37e9('0x33'))[_0x37e9('0x69')]({'model':_0x37e9('0x2a'),'view':_0x20e094,'converterPriority':_0x37e9('0x9d')}),_0x4253ce['conversion'][_0x37e9('0x8c')]('dataDowncast')[_0x37e9('0x69')]({'model':_0x37e9('0x2a'),'view':(_0x216283,_0x818373)=>{if(_0x818373[_0x37e9('0x60')]['showSuggestionHighlights'])return _0x20e094(_0x216283,{'showActiveMarker':!0x1});},'converterPriority':'high'});const _0x1a4a1d=_0x4253ce['editing']['view'];this[_0x37e9('0x81')](_0x1a4a1d['document'],'clipboardOutput',(_0x4f5f72,_0x68ae16)=>{const _0x201a20=[];for(const _0x4df24d of _0x1a4a1d['createRangeIn'](_0x68ae16[_0x37e9('0x6d')])[_0x37e9('0x55')]())_0x4df24d['is']('element',_0x37e9('0x4a'))&&_0x201a20['push'](_0x4df24d);_0x1a4a1d[_0x37e9('0x76')](_0x278d20=>{for(const _0x57ff8f of _0x201a20)_0x278d20[_0x37e9('0x27')](_0x278d20['createRangeIn'](_0x57ff8f),_0x278d20['createPositionBefore'](_0x57ff8f)),_0x278d20[_0x37e9('0x87')](_0x57ff8f);});});}}function se(_0x457520){if(_0x457520['isEmpty'])return!0x0;const _0x1ab9e1=_0x457520[_0x37e9('0x3e')](0x0);return _0x1ab9e1['is'](_0x37e9('0x13'),_0x37e9('0x7f'))&&_0x1ab9e1[_0x37e9('0x1f')];}function ae(_0x29eec7,_0xe9ad11={},_0x4f57fc){for(const {isAnchor:_0xd74ae6,cellHeight:_0x294f22,cellWidth:_0x46256a}of _0x4f57fc[_0x37e9('0x7a')](_0x29eec7,{'includeAllSlots':!0x0,..._0xe9ad11}))if(!_0xd74ae6||0x1!=_0x294f22||0x1!=_0x46256a)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 _0xc27b=['stop','removeAttribute','from','markerNameToElements','createRange','commandName','getSuggestion','options','value','activeMarkers','plugins','editing','writer','item','index','first','getAttribute','editor','childCount','ck-suggestion-marker--active','showSuggestionHighlights','addClass','createPositionAfter','ck-suggestion-marker-','headingColumns','TrackChangesEditing','consume','forceValue','parent','mapper','getCellLocation','format','document','getColumnIndexes','registerDescriptionCallback','data','downcastDispatcher','bindElementToMarker','registerCustomCallback','FORMAT_HEADER_ROW','FORMAT_REGULAR_COLUMN','markBlockFormat','toViewElement','TableUtils','cell','setAttribute','formatBlock','last','end','commands','setTableColumnHeader','_acceptFormatSuggestionCallbackFactory','_suggestionFactory','markerName','removeClass','has','get','_descriptionFactory','removeMarker:suggestion','createPositionBefore','unbindElementFromMarkerName','getChild','setTableRowHeader','commandParams','markerRange','start','TableEditing','isBefore','locale','selection','data-suggestion','FORMAT_REGULAR_ROW','nodeAfter','change','nodeBefore','highest','addMarker:suggestion','enableCommand','getSelectionAffectedTableCells','includes','model','_splitMarkerName'];(function(_0x4fbfff,_0xc27b0c){const _0x58d270=function(_0xd89335){while(--_0xd89335){_0x4fbfff['push'](_0x4fbfff['shift']());}};_0x58d270(++_0xc27b0c);}(_0xc27b,0x1b3));const _0x58d2=function(_0x4fbfff,_0xc27b0c){_0x4fbfff=_0x4fbfff-0x0;let _0x58d270=_0xc27b[_0x4fbfff];return _0x58d270;};import{Plugin as _0x50960e}from'ckeditor5/src/core';import _0x4c3b87 from'./table';import{getTranslation as _0x28223f}from'../utils/common-translations';export default class lt extends _0x50960e{static get['requires'](){return[_0x4c3b87];}['afterInit'](){const _0x8a490a=this[_0x58d2('0x4a')];if(!_0x8a490a[_0x58d2('0x43')][_0x58d2('0x1e')](_0x58d2('0x29')))return;const _0x33e578=_0x8a490a[_0x58d2('0x2b')],_0x35fec0=_0x8a490a[_0x58d2('0x43')][_0x58d2('0x1f')](_0x58d2('0x0')),_0x3f1d78=_0x8a490a['plugins']['get'](_0x58d2('0x12')),_0x5d1360=_0x8a490a[_0x58d2('0x43')][_0x58d2('0x1f')](_0x4c3b87);function _0x348943({showActiveMarker:_0x5b5716=!0x0,setDataAttribute:_0xac96ea=!0x0}={}){return(_0x44aa88,_0x561795,_0x298495)=>{const {type:_0x21afe7,id:_0xde6682}=_0x35fec0[_0x58d2('0x38')](_0x561795['markerName']),_0x10ff88=_0x35fec0[_0x58d2('0x3f')](_0xde6682);if(!_0x10ff88[_0x58d2('0xa')]||_0x58d2('0x19')!=_0x10ff88[_0x58d2('0xa')][_0x58d2('0x3e')])return;if(_0x561795[_0x58d2('0x46')])return void _0x44aa88[_0x58d2('0x39')]();if(!_0x298495['consumable'][_0x58d2('0x1')](_0x561795[_0x58d2('0x27')],_0x44aa88['name']))return;const _0x2cf89b=_0x561795[_0x58d2('0x27')][_0x58d2('0x28')][_0x58d2('0x2f')],_0x58fc67=_0x561795[_0x58d2('0x27')][_0x58d2('0x17')][_0x58d2('0x31')],_0x18a71f=_0x2cf89b[_0x58d2('0x3')][_0x58d2('0x3')],{column:_0x11b992}=_0x3f1d78['getCellLocation'](_0x2cf89b),{column:_0x4d9a9a}=_0x3f1d78[_0x58d2('0x5')](_0x58fc67);for(let _0x319ebe=_0x11b992;_0x319ebe<=_0x4d9a9a;_0x319ebe++){const _0x2bc82b=_0x3f1d78['createTableWalker'](_0x18a71f,{'column':_0x319ebe,'includeAllSlots':!0x1});for(const _0x17a04c of _0x2bc82b){const _0x47cea2=_0x17a04c[_0x58d2('0x13')],_0x154701=_0x298495[_0x58d2('0x4')][_0x58d2('0x11')](_0x47cea2);_0x298495[_0x58d2('0x45')][_0x58d2('0x4e')](_0x58d2('0x50')+_0x21afe7,_0x154701),_0xac96ea&&_0x298495[_0x58d2('0x45')][_0x58d2('0x14')]('data-suggestion',_0xde6682,_0x154701),_0x298495[_0x58d2('0x4')][_0x58d2('0xc')](_0x154701,_0x561795[_0x58d2('0x1c')]),_0x5b5716&&(_0x35fec0[_0x58d2('0x42')][_0x58d2('0x36')](_0x561795[_0x58d2('0x1c')])?_0x298495[_0x58d2('0x45')][_0x58d2('0x4e')](_0x58d2('0x4c'),_0x154701):_0x298495[_0x58d2('0x45')][_0x58d2('0x1d')]('ck-suggestion-marker--active',_0x154701));}}};}_0x35fec0['enableCommand'](_0x58d2('0x25'),(_0x2f0793,_0x2c5cdb)=>{const _0x522a9c=_0x3f1d78[_0x58d2('0x35')](_0x8a490a[_0x58d2('0x37')]['document']['selection']),_0x5f178f=_0x3f1d78['getRowIndexes'](_0x522a9c),_0x1440bb=_0x522a9c[0x0]['findAncestor']('table'),_0x140163=_0x1440bb[_0x58d2('0x49')]('headingRows')||0x0,_0x5aeb1a=_0x2c5cdb&&null!==_0x2c5cdb['forceValue']?_0x2c5cdb['forceValue']:!_0x8a490a[_0x58d2('0x18')][_0x58d2('0x1f')](_0x58d2('0x25'))[_0x58d2('0x41')],_0x4c43f0=_0x5aeb1a?_0x5f178f[_0x58d2('0x16')]:_0x5f178f[_0x58d2('0x48')],_0x441b80=_0x1440bb[_0x58d2('0x24')](_0x4c43f0);let _0x51c332;if(_0x5aeb1a){const _0xa20f0e=_0x1440bb['getChild'](_0x140163);if(_0x441b80[_0x58d2('0x47')]<_0xa20f0e[_0x58d2('0x47')])return;_0x51c332=_0x8a490a[_0x58d2('0x37')]['createRange'](_0x8a490a['model'][_0x58d2('0x22')](_0xa20f0e[_0x58d2('0x24')](0x0)),_0x8a490a['model'][_0x58d2('0x4f')](_0x441b80[_0x58d2('0x24')](_0x441b80[_0x58d2('0x4b')]-0x1)));}else{const _0x3f026f=_0x1440bb['getChild'](_0x140163-0x1);if(!_0x3f026f)return;_0x51c332=_0x8a490a['model']['createRange'](_0x8a490a['model'][_0x58d2('0x22')](_0x441b80['getChild'](0x0)),_0x8a490a[_0x58d2('0x37')]['createPositionAfter'](_0x3f026f[_0x58d2('0x24')](_0x3f026f['childCount']-0x1)));}_0x8a490a[_0x58d2('0x37')][_0x58d2('0x30')](()=>{_0x35fec0[_0x58d2('0x10')](_0x51c332,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x5aeb1a}]},[],_0x58d2('0x25'));});}),_0x35fec0[_0x58d2('0x34')](_0x58d2('0x19'),(_0x5e7136,_0xf16269)=>{const _0xddc4c9=_0x8a490a[_0x58d2('0x43')][_0x58d2('0x1f')](_0x58d2('0x12')),_0x21b96b=_0xddc4c9[_0x58d2('0x35')](_0x8a490a[_0x58d2('0x37')][_0x58d2('0x7')][_0x58d2('0x2c')]),_0x3a319a=_0xddc4c9[_0x58d2('0x8')](_0x21b96b),_0x5d2536=_0x21b96b[0x0]['findAncestor']('table'),_0x4ca885=_0x5d2536['getAttribute'](_0x58d2('0x51'))||0x0,_0x227936=_0xf16269&&null!==_0xf16269[_0x58d2('0x2')]?_0xf16269[_0x58d2('0x2')]:!_0x8a490a[_0x58d2('0x18')][_0x58d2('0x1f')](_0x58d2('0x19'))['value'];let _0x143c31;const _0x353c9b=_0x5d2536[_0x58d2('0x24')](0x0),_0x3fe4e0=_0x227936?_0x3a319a[_0x58d2('0x16')]:_0x3a319a[_0x58d2('0x48')],_0x27d670=_0xddc4c9['createTableWalker'](_0x5d2536,{'startRow':0x0,'column':_0x3fe4e0,'includeAllSlots':!0x1}),_0x5dc0f3=Array[_0x58d2('0x3b')](_0x27d670)[0x0][_0x58d2('0x13')];if(_0x227936){const _0x428bfc=_0x353c9b['getChild'](_0x4ca885);if(_0x5dc0f3[_0x58d2('0x2a')](_0x428bfc))return;_0x143c31=_0x8a490a[_0x58d2('0x37')][_0x58d2('0x3d')](_0x8a490a[_0x58d2('0x37')][_0x58d2('0x22')](_0x428bfc),_0x8a490a[_0x58d2('0x37')][_0x58d2('0x4f')](_0x5dc0f3));}else{const _0x8ad23a=_0x353c9b['getChild'](_0x4ca885-0x1);if(!_0x8ad23a)return;_0x143c31=_0x8a490a[_0x58d2('0x37')][_0x58d2('0x3d')](_0x8a490a[_0x58d2('0x37')]['createPositionBefore'](_0x5dc0f3),_0x8a490a[_0x58d2('0x37')]['createPositionAfter'](_0x8ad23a));}_0x8a490a['model']['change'](()=>{_0x35fec0['markBlockFormat'](_0x143c31,{'commandName':_0x58d2('0x19'),'commandParams':[{'forceValue':_0x227936}]},[],_0x58d2('0x19'));});}),_0x8a490a[_0x58d2('0x44')][_0x58d2('0xb')]['on']('addMarker:suggestion',_0x348943(),{'priority':_0x58d2('0x32')}),_0x8a490a[_0x58d2('0xa')]['downcastDispatcher']['on'](_0x58d2('0x33'),(_0x51ed2d,_0x5b9eeb,_0x2be7f7)=>{_0x2be7f7[_0x58d2('0x40')][_0x58d2('0x4d')]&&_0x348943({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x51ed2d,_0x5b9eeb,_0x2be7f7);},{'priority':_0x58d2('0x32')}),_0x8a490a[_0x58d2('0x44')]['downcastDispatcher']['on'](_0x58d2('0x21'),(_0x2c1f0a,_0x524abe,_0x3a04de)=>{const {type:_0x41fe44,id:_0x5886bb}=_0x35fec0[_0x58d2('0x38')](_0x524abe[_0x58d2('0x1c')]),_0x22242a=_0x35fec0[_0x58d2('0x3f')](_0x5886bb);if(!_0x22242a[_0x58d2('0xa')]||_0x58d2('0x19')!=_0x22242a[_0x58d2('0xa')]['commandName'])return;const _0x3e1f13=_0x3a04de[_0x58d2('0x4')][_0x58d2('0x3c')](_0x524abe[_0x58d2('0x1c')]);if(_0x3e1f13)for(const _0x44cea4 of _0x3e1f13)_0x3a04de['writer'][_0x58d2('0x1d')](_0x58d2('0x50')+_0x41fe44,_0x44cea4),_0x3a04de[_0x58d2('0x45')][_0x58d2('0x1d')]('ck-suggestion-marker--active',_0x44cea4),_0x3a04de['writer'][_0x58d2('0x3a')](_0x58d2('0x2d'),_0x44cea4),_0x3a04de[_0x58d2('0x4')][_0x58d2('0x23')](_0x44cea4,_0x524abe[_0x58d2('0x1c')]);},{'priority':_0x58d2('0x32')}),_0x35fec0[_0x58d2('0x20')][_0x58d2('0x9')](_0x8db9c3=>{const {data:_0x4ea25d}=_0x8db9c3;if(_0x4ea25d){if('setTableRowHeader'==_0x4ea25d['commandName']){const _0x496a55=_0x4ea25d[_0x58d2('0x26')][0x0][_0x58d2('0x2')];return _0x11ac09(_0x28223f(_0x33e578,_0x496a55?_0x58d2('0xe'):_0x58d2('0x2e')));}if(_0x58d2('0x19')==_0x4ea25d[_0x58d2('0x3e')]){const _0x1d5399=_0x4ea25d['commandParams'][0x0][_0x58d2('0x2')];return _0x11ac09(_0x28223f(_0x33e578,_0x1d5399?'FORMAT_HEADER_COLUMN':_0x58d2('0xf')));}}function _0x11ac09(_0x224bd8){return{'type':_0x58d2('0x6'),'content':_0x28223f(_0x33e578,'*Format:*\x20%0',_0x224bd8)};}});const _0xddb052=_0x5d1360[_0x58d2('0x1a')]();_0x35fec0['_suggestionFactory'][_0x58d2('0xd')](_0x58d2('0x15'),'setTableRowHeader','accept',_0xddb052),_0x35fec0[_0x58d2('0x1b')]['registerCustomCallback'](_0x58d2('0x15'),_0x58d2('0x19'),'accept',_0xddb052);}}
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 _0x568c=['commands','TableUtils','length','author','trackChanges','add','deletion','getCellLocation','model','from','mergeTableCellRight','change','document','highest','_tablePostFixingSubtypes','selection','format','table','cell','get','isInContent','_suggestionFactory','has','*Split\x20cell:*\x20horizontally','stop','getSuggestions','getSelectionAffectedTableCells','$graveyard','execute','createTableWalker','splitTableCellVertically','findAncestor','push','mergeTableCellUp','root','mergeTableCellDown','TrackChangesEditing','size','getFirstPosition','mergeTableCellLeft','registerCustomCallback','_areMergableCells','mergeTableCells','type','accept','getRanges','splitTableCellHorizontally','set:isEnabled','locale','getAncestors','plugins','filter','createRangeOn','_descriptionFactory','_areSelectedCellsMergable','insertion','markMultiRangeBlockFormat','formatBlock','subType','enableCommand','value','editor','afterInit','element','setSelection','detach','containsRange','commandName','fromRange','tableCell','map','TableEditing','registerDescriptionCallback','refresh','_isForcedDefaultExecutionBlock','*Split\x20cell:*\x20vertically','find'];(function(_0x425813,_0x568c8c){const _0x25c9fe=function(_0x292eea){while(--_0x292eea){_0x425813['push'](_0x425813['shift']());}};_0x25c9fe(++_0x568c8c);}(_0x568c,0x17a));const _0x25c9=function(_0x425813,_0x568c8c){_0x425813=_0x425813-0x0;let _0x25c9fe=_0x568c[_0x425813];return _0x25c9fe;};import{Plugin as _0x1f3155}from'ckeditor5/src/core';import _0x323306 from'./table';import{LiveRange as _0x3a2684}from'ckeditor5/src/engine';import{getTranslation as _0x5131cf}from'../utils/common-translations';export default class gt extends _0x1f3155{static get['requires'](){return[_0x323306];}[_0x25c9('0x45')](){const _0x343791=this[_0x25c9('0x44')],_0x1dca36=_0x343791[_0x25c9('0xf')][_0x25c9('0x13')][_0x25c9('0x16')],_0x1b0782=_0x343791[_0x25c9('0x37')];if(!_0x343791[_0x25c9('0x39')][_0x25c9('0x1d')](_0x25c9('0x1')))return;const _0x4a921c=_0x343791[_0x25c9('0x39')][_0x25c9('0x1a')](_0x25c9('0x2b')),_0x38176a=_0x343791['plugins'][_0x25c9('0x1a')]('TableUtils'),_0x2739df=_0x343791['plugins']['get'](_0x323306);_0x2739df[_0x25c9('0x15')][_0x25c9('0x27')](_0x25c9('0x31')),_0x4a921c[_0x25c9('0x42')]('mergeTableCells',()=>{const _0x5a8118=_0x38176a[_0x25c9('0x21')](_0x343791[_0x25c9('0xf')][_0x25c9('0x13')][_0x25c9('0x16')]);_0x343791[_0x25c9('0xf')][_0x25c9('0x12')](()=>{_0x4a921c[_0x25c9('0x3f')](_0x5a8118,{'commandName':_0x25c9('0x31'),'commandParams':[]},[],_0x25c9('0x31'));});}),_0x343791[_0x25c9('0x7')]['get'](_0x25c9('0x31'))['on'](_0x25c9('0x23'),(_0x46616f,_0x13ec2d)=>{_0x343791[_0x25c9('0x7')][_0x25c9('0x1a')](_0x25c9('0xb'))[_0x25c9('0x43')]&&(_0x13ec2d[_0x25c9('0x9')]>0x0&&_0x13ec2d[_0x13ec2d[_0x25c9('0x9')]-0x1]&&_0x13ec2d[_0x13ec2d['length']-0x1]['forceDefaultExecution']||_0x4a921c[_0x25c9('0x4')]||this[_0x25c9('0x3d')]()||_0x46616f[_0x25c9('0x1f')]());},{'priority':_0x25c9('0x14')});for(const _0x2c1021 of['mergeTableCellUp',_0x25c9('0x11'),'mergeTableCellDown',_0x25c9('0x2e')]){const _0x363fe2=_0x343791[_0x25c9('0x7')][_0x25c9('0x1a')](_0x2c1021);_0x4a921c['enableCommand'](_0x2c1021,()=>{const _0x44ca3d=_0x343791[_0x25c9('0xf')][_0x25c9('0x13')]['selection']['getFirstPosition']()[_0x25c9('0x38')]()[_0x25c9('0x6')](_0x17f42b=>_0x17f42b['is']('element','tableCell')),_0x394e60=_0x363fe2[_0x25c9('0x43')];_0x343791['model'][_0x25c9('0x12')](()=>{_0x4a921c['markMultiRangeBlockFormat']([_0x44ca3d,_0x394e60],{'commandName':'mergeTableCells','commandParams':[]},[],_0x25c9('0x31'));});});}for(const _0x3e4bad of[_0x25c9('0x25'),_0x25c9('0x35')]){const _0x679544=_0x343791[_0x25c9('0x7')][_0x25c9('0x1a')](_0x3e4bad);_0x4a921c[_0x25c9('0x42')](_0x3e4bad,()=>{const _0x490761=_0x38176a[_0x25c9('0x21')](_0x343791[_0x25c9('0xf')]['document'][_0x25c9('0x16')])[0x0],_0x110ce7=_0x490761[_0x25c9('0x26')](_0x25c9('0x18')),{column:_0x549d6e,row:_0x3db495}=_0x38176a[_0x25c9('0xe')](_0x490761);let _0xd93858=[];if('horizontally'==_0x679544['direction']){const _0x34cbf8=_0x38176a[_0x25c9('0x24')](_0x110ce7,{'startRow':_0x3db495,'endRow':_0x3db495,'includeAllSlots':!0x0});_0xd93858=Array[_0x25c9('0x10')](_0x34cbf8)['map'](_0x1cd17f=>_0x1cd17f[_0x25c9('0x19')]);}else{const _0x211866=_0x38176a[_0x25c9('0x24')](_0x110ce7,{'column':_0x549d6e,'includeAllSlots':!0x0});_0xd93858=Array[_0x25c9('0x10')](_0x211866)[_0x25c9('0x0')](_0x372fec=>_0x372fec['cell']);}_0x343791[_0x25c9('0xf')]['change'](_0x689228=>{_0x4a921c['markBlockFormat'](_0x689228[_0x25c9('0x3b')](_0x490761),{'commandName':_0x3e4bad,'commandParams':[]},_0xd93858,_0x3e4bad);});});}_0x4a921c[_0x25c9('0x3c')][_0x25c9('0x2')](_0x4368cd=>{const {data:_0xa6c06c}=_0x4368cd;if(_0xa6c06c)return _0x25c9('0x31')==_0xa6c06c[_0x25c9('0x4a')]?{'type':_0x25c9('0x17'),'content':_0x5131cf(_0x1b0782,'*Merge\x20cells*')}:void 0x0;}),_0x4a921c[_0x25c9('0x3c')][_0x25c9('0x2')](_0x18bd93=>{const {data:_0x259d5d}=_0x18bd93;if(_0x259d5d)return'splitTableCellVertically'==_0x259d5d['commandName']?{'type':_0x25c9('0x17'),'content':_0x5131cf(_0x1b0782,_0x25c9('0x5'))}:_0x25c9('0x35')==_0x259d5d['commandName']?{'type':_0x25c9('0x17'),'content':_0x5131cf(_0x1b0782,_0x25c9('0x1e'))}:void 0x0;});const _0xff0729=_0x2739df['_acceptFormatSuggestionCallbackFactory']();for(const _0x7eedd5 of[_0x25c9('0x28'),'mergeTableCellRight',_0x25c9('0x2a'),_0x25c9('0x2e')])_0x4a921c[_0x25c9('0x1c')]['registerCustomCallback'](_0x25c9('0x40'),_0x7eedd5,_0x25c9('0x33'),_0xff0729);for(const _0x48f48a of[_0x25c9('0x25'),'splitTableCellHorizontally'])_0x4a921c[_0x25c9('0x1c')][_0x25c9('0x2f')](_0x25c9('0x40'),_0x48f48a,'accept',_0xff0729);_0x4a921c[_0x25c9('0x1c')][_0x25c9('0x2f')](_0x25c9('0x40'),_0x25c9('0x31'),_0x25c9('0x33'),_0x5aaa28=>{_0x343791[_0x25c9('0xf')]['change'](_0x5ad402=>{const _0x5e5077=Array[_0x25c9('0x10')](_0x1dca36[_0x25c9('0x34')]())[_0x25c9('0x0')](_0x2023ae=>_0x3a2684[_0x25c9('0x4b')](_0x2023ae));_0x5ad402['setSelection'](_0x5aaa28),_0x343791[_0x25c9('0x7')]['get'](_0x25c9('0x31'))[_0x25c9('0x3')](),_0x343791[_0x25c9('0x23')](_0x25c9('0x31'),{'forceDefaultExecution':!0x0});const _0x2935b7=_0x5e5077[_0x25c9('0x3a')](_0x556a6b=>_0x25c9('0x22')!=_0x556a6b[_0x25c9('0x29')]['rootName']);_0x2935b7[_0x25c9('0x9')]>0x0&&_0x5ad402[_0x25c9('0x47')](_0x2935b7);for(const _0x4c6693 of _0x5e5077)_0x4c6693[_0x25c9('0x48')]();});});for(const _0x3c73a8 of[_0x25c9('0x28'),_0x25c9('0x2a'),_0x25c9('0x2e'),_0x25c9('0x11')]){const _0xbf0731=_0x343791[_0x25c9('0x7')][_0x25c9('0x1a')](_0x3c73a8);_0xbf0731['on'](_0x25c9('0x36'),(_0x1a62a4,_0x4fedb3,_0x18bc68)=>{if(_0x18bc68){const _0x31fc4f=_0x343791['model'][_0x25c9('0x13')]['selection'][_0x25c9('0x2d')]()[_0x25c9('0x38')]()[_0x25c9('0x6')](_0x44b061=>_0x44b061['is'](_0x25c9('0x46'),_0x25c9('0x4c')));this['_areMergableCells'](_0xbf0731[_0x25c9('0x43')],_0x31fc4f)||(_0x1a62a4['return']=!0x1,_0x1a62a4[_0x25c9('0x1f')]());}},{'priority':'low'});}}[_0x25c9('0x3d')](){const _0x496224=this[_0x25c9('0x44')][_0x25c9('0x7')][_0x25c9('0x1a')](_0x25c9('0x31')),_0x18910f=this[_0x25c9('0x44')][_0x25c9('0x39')][_0x25c9('0x1a')](_0x25c9('0x8'));if(!_0x496224['isEnabled'])return!0x1;const _0x4565be=_0x18910f[_0x25c9('0x21')](this[_0x25c9('0x44')][_0x25c9('0xf')]['document'][_0x25c9('0x16')]);for(const _0x23d1db of _0x4565be)for(const _0x16ca71 of _0x4565be)if(_0x23d1db!=_0x16ca71&&!this[_0x25c9('0x30')](_0x23d1db,_0x16ca71))return!0x1;return!0x0;}['_areMergableCells'](_0x2d9c69,_0x5bbf42){const _0x824934=this[_0x25c9('0x44')][_0x25c9('0x39')][_0x25c9('0x1a')](_0x25c9('0x2b')),_0xd59014=this[_0x25c9('0x44')][_0x25c9('0xf')][_0x25c9('0x3b')](_0x2d9c69),_0x3335f2=this['editor'][_0x25c9('0xf')][_0x25c9('0x3b')](_0x5bbf42),_0x5b5d1c=new Set(),_0x2b2670=new Set();for(const _0x46b607 of _0x824934[_0x25c9('0x20')]())if((_0x25c9('0x3e')==_0x46b607[_0x25c9('0x32')]||_0x25c9('0xd')==_0x46b607[_0x25c9('0x32')]||'mergeTableCells'==_0x46b607[_0x25c9('0x41')])&&_0x46b607[_0x25c9('0x1b')])for(const _0x48e629 of _0x46b607[_0x25c9('0x34')]())_0x48e629[_0x25c9('0x49')](_0xd59014,!0x0)&&_0x5b5d1c[_0x25c9('0xc')](_0x46b607[_0x25c9('0x32')]+':'+_0x46b607[_0x25c9('0xa')]['id']),_0x48e629['containsRange'](_0x3335f2,!0x0)&&_0x2b2670[_0x25c9('0xc')](_0x46b607[_0x25c9('0x32')]+':'+_0x46b607[_0x25c9('0xa')]['id']);if(_0x5b5d1c[_0x25c9('0x2c')]!=_0x2b2670[_0x25c9('0x2c')])return!0x1;for(const _0x5e14bd of _0x5b5d1c)if(!_0x2b2670['has'](_0x5e14bd))return!0x1;return!0x0;}}
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;}}