@ckeditor/ckeditor5-track-changes 39.0.0 → 39.0.2

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 (116) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/track-changes.js +1 -1
  5. package/lang/translations/ar.po +1 -0
  6. package/lang/translations/az.po +1 -0
  7. package/lang/translations/bg.po +1 -0
  8. package/lang/translations/bn.po +1 -0
  9. package/lang/translations/ca.po +1 -0
  10. package/lang/translations/cs.po +1 -0
  11. package/lang/translations/da.po +1 -0
  12. package/lang/translations/de.po +1 -0
  13. package/lang/translations/el.po +1 -0
  14. package/lang/translations/en-au.po +1 -0
  15. package/lang/translations/en.po +1 -0
  16. package/lang/translations/es.po +1 -0
  17. package/lang/translations/et.po +1 -0
  18. package/lang/translations/fi.po +1 -0
  19. package/lang/translations/fr.po +1 -0
  20. package/lang/translations/gl.po +1 -0
  21. package/lang/translations/he.po +1 -0
  22. package/lang/translations/hi.po +1 -0
  23. package/lang/translations/hr.po +1 -0
  24. package/lang/translations/hu.po +1 -0
  25. package/lang/translations/id.po +1 -0
  26. package/lang/translations/it.po +1 -0
  27. package/lang/translations/ja.po +1 -0
  28. package/lang/translations/ko.po +1 -0
  29. package/lang/translations/lt.po +1 -0
  30. package/lang/translations/lv.po +1 -0
  31. package/lang/translations/ms.po +1 -0
  32. package/lang/translations/nl.po +1 -0
  33. package/lang/translations/no.po +1 -0
  34. package/lang/translations/pl.po +1 -0
  35. package/lang/translations/pt-br.po +1 -0
  36. package/lang/translations/pt.po +1 -0
  37. package/lang/translations/ro.po +1 -0
  38. package/lang/translations/ru.po +1 -0
  39. package/lang/translations/sk.po +1 -0
  40. package/lang/translations/sq.po +1 -0
  41. package/lang/translations/sr-latn.po +1 -0
  42. package/lang/translations/sr.po +1 -0
  43. package/lang/translations/sv.po +1 -0
  44. package/lang/translations/th.po +1 -0
  45. package/lang/translations/tk.po +1 -0
  46. package/lang/translations/tr.po +1 -0
  47. package/lang/translations/tt.po +1 -0
  48. package/lang/translations/uk.po +1 -0
  49. package/lang/translations/ur.po +1 -0
  50. package/lang/translations/vi.po +1 -0
  51. package/lang/translations/zh-cn.po +1 -0
  52. package/lang/translations/zh.po +1 -0
  53. package/package.json +3 -7
  54. package/src/commands/acceptsuggestioncommand.js +1 -1
  55. package/src/commands/discardsuggestioncommand.js +1 -1
  56. package/src/commands/executeonallsuggestionscommand.js +1 -1
  57. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  58. package/src/commands/trackchangescommand.js +1 -1
  59. package/src/integrations/alignment.js +1 -1
  60. package/src/integrations/basicstyles.js +1 -1
  61. package/src/integrations/blockquote.js +1 -1
  62. package/src/integrations/ckbox.js +1 -1
  63. package/src/integrations/codeblock.js +1 -1
  64. package/src/integrations/comments.js +1 -1
  65. package/src/integrations/deletecommand.js +1 -1
  66. package/src/integrations/documentlist.js +1 -1
  67. package/src/integrations/documentlistproperties.js +1 -1
  68. package/src/integrations/entercommand.js +1 -1
  69. package/src/integrations/findandreplace.js +1 -1
  70. package/src/integrations/font.js +1 -1
  71. package/src/integrations/formatpainter.js +1 -1
  72. package/src/integrations/heading.js +1 -1
  73. package/src/integrations/highlight.js +1 -1
  74. package/src/integrations/horizontalline.js +1 -1
  75. package/src/integrations/htmlembed.js +1 -1
  76. package/src/integrations/image.js +1 -1
  77. package/src/integrations/imagereplace.js +1 -1
  78. package/src/integrations/importword.js +1 -1
  79. package/src/integrations/indent.js +1 -1
  80. package/src/integrations/inputcommand.js +1 -1
  81. package/src/integrations/link.js +1 -1
  82. package/src/integrations/list.js +1 -1
  83. package/src/integrations/listproperties.js +1 -1
  84. package/src/integrations/mediaembed.js +1 -1
  85. package/src/integrations/mention.js +1 -1
  86. package/src/integrations/pagebreak.js +1 -1
  87. package/src/integrations/paragraph.js +1 -1
  88. package/src/integrations/removeformat.js +1 -1
  89. package/src/integrations/restrictededitingmode.js +1 -1
  90. package/src/integrations/shiftentercommand.js +1 -1
  91. package/src/integrations/standardeditingmode.js +1 -1
  92. package/src/integrations/style.js +1 -1
  93. package/src/integrations/table.js +1 -1
  94. package/src/integrations/tablecaption.js +1 -1
  95. package/src/integrations/tableclipboard.js +1 -1
  96. package/src/integrations/tablecolumnresize.js +1 -1
  97. package/src/integrations/tableheadings.js +1 -1
  98. package/src/integrations/tablemergesplit.js +1 -1
  99. package/src/integrations/tableofcontents.js +1 -1
  100. package/src/integrations/tableproperties.js +1 -1
  101. package/src/integrations/template.js +1 -1
  102. package/src/integrations/title.js +1 -1
  103. package/src/integrations/undo.js +1 -1
  104. package/src/integrations/utils.js +1 -1
  105. package/src/suggestion.js +1 -1
  106. package/src/suggestiondescriptionfactory.js +1 -1
  107. package/src/trackchanges.js +1 -1
  108. package/src/trackchangesdata.js +1 -1
  109. package/src/trackchangesediting.d.ts +29 -1
  110. package/src/trackchangesediting.js +1 -1
  111. package/src/trackchangesui.js +1 -1
  112. package/src/ui/suggestioncontroller.js +1 -1
  113. package/src/ui/view/basesuggestionthreadview.js +1 -1
  114. package/src/ui/view/suggestionthreadview.js +1 -1
  115. package/src/utils/common-translations.js +1 -1
  116. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2865=['getChild','createTableWalker','formatBlock','markerName','value','downcastDispatcher','editing','writer','removeAttribute','FORMAT_HEADER_ROW','addMarker:suggestion','markBlockFormat','findAncestor','nodeAfter','table','removeClass','getCellLocation','setTableRowHeader','getSuggestion','unbindElementFromMarkerName','createPositionBefore','data','start','model','data-suggestion','index','format','name','plugins','cell','nodeBefore','removeMarker:suggestion','commandName','accept','getRowIndexes','get','getColumnIndexes','enableCommand','editor','parent','end','markerRange','getAttribute','bindElementToMarker','TrackChangesEditing','consumable','_acceptFormatSuggestionCallbackFactory','FORMAT_REGULAR_COLUMN','highest','TableEditing','*Format:*\x20%0','mapper','item','options','ck-suggestion-marker--active','has','showSuggestionHighlights','setTableColumnHeader','_suggestionFactory','createRange','commandParams','TableUtils','setAttribute','stop','forceValue','headingRows','from','registerDescriptionCallback','change','_splitMarkerName','selection','includes','document','childCount','afterInit','requires','commands','createPositionAfter','first','getSelectionAffectedTableCells','_descriptionFactory','FORMAT_REGULAR_ROW'];(function(_0x44c09c,_0x2865ce){const _0x541acf=function(_0x541b56){while(--_0x541b56){_0x44c09c['push'](_0x44c09c['shift']());}};_0x541acf(++_0x2865ce);}(_0x2865,0x185));const _0x541a=function(_0x44c09c,_0x2865ce){_0x44c09c=_0x44c09c-0x0;let _0x541acf=_0x2865[_0x44c09c];return _0x541acf;};import{Plugin as _0x5567c6}from'ckeditor5/src/core';import _0x325102 from'./table';import{getTranslation as _0x595569}from'../utils/common-translations';export default class pt extends _0x5567c6{static get[_0x541a('0xe')](){return[_0x325102];}[_0x541a('0xd')](){const _0x246aad=this[_0x541a('0x3b')];if(!_0x246aad['plugins'][_0x541a('0x4c')](_0x541a('0x46')))return;const _0x23dad3=_0x246aad['locale'],_0x2a84a1=_0x246aad[_0x541a('0x31')][_0x541a('0x38')](_0x541a('0x41')),_0x271592=_0x246aad[_0x541a('0x31')][_0x541a('0x38')](_0x541a('0x0')),_0x26bbe8=_0x246aad['plugins'][_0x541a('0x38')](_0x325102);function _0x8b56e({showActiveMarker:_0x382730=!0x0,setDataAttribute:_0x32c310=!0x0}={}){return(_0x354797,_0x27c071,_0x1a01aa)=>{const {type:_0xd5e71f,id:_0x394605}=_0x2a84a1[_0x541a('0x8')](_0x27c071[_0x541a('0x18')]),_0x313226=_0x2a84a1[_0x541a('0x27')](_0x394605);if(!_0x313226[_0x541a('0x2a')]||_0x541a('0x4e')!=_0x313226[_0x541a('0x2a')]['commandName'])return;if(_0x27c071[_0x541a('0x49')])return void _0x354797[_0x541a('0x2')]();if(!_0x1a01aa[_0x541a('0x42')]['consume'](_0x27c071[_0x541a('0x3e')],_0x354797[_0x541a('0x30')]))return;const _0x54031c=_0x27c071['markerRange'][_0x541a('0x2b')][_0x541a('0x22')],_0x3e785d=_0x27c071[_0x541a('0x3e')][_0x541a('0x3d')][_0x541a('0x33')],_0x22d151=_0x54031c[_0x541a('0x3c')][_0x541a('0x3c')],{column:_0xd25088}=_0x271592['getCellLocation'](_0x54031c),{column:_0x3782fa}=_0x271592[_0x541a('0x25')](_0x3e785d);for(let _0x562ccf=_0xd25088;_0x562ccf<=_0x3782fa;_0x562ccf++){const _0x267ef8=_0x271592[_0x541a('0x16')](_0x22d151,{'column':_0x562ccf,'includeAllSlots':!0x1});for(const _0x4e2311 of _0x267ef8){const _0x54020d=_0x4e2311[_0x541a('0x32')],_0x49f19e=_0x1a01aa[_0x541a('0x48')]['toViewElement'](_0x54020d);_0x1a01aa['writer']['addClass']('ck-suggestion-marker-'+_0xd5e71f,_0x49f19e),_0x32c310&&_0x1a01aa['writer'][_0x541a('0x1')](_0x541a('0x2d'),_0x394605,_0x49f19e),_0x1a01aa[_0x541a('0x48')][_0x541a('0x40')](_0x49f19e,_0x27c071[_0x541a('0x18')]),_0x382730&&(_0x2a84a1['activeMarkers'][_0x541a('0xa')](_0x27c071[_0x541a('0x18')])?_0x1a01aa['writer']['addClass'](_0x541a('0x4b'),_0x49f19e):_0x1a01aa['writer'][_0x541a('0x24')]('ck-suggestion-marker--active',_0x49f19e));}}};}_0x2a84a1[_0x541a('0x3a')](_0x541a('0x26'),(_0x43d9f3,_0x12da19)=>{const _0x377f90=_0x271592['getSelectionAffectedTableCells'](_0x246aad[_0x541a('0x2c')][_0x541a('0xb')]['selection']),_0x1f920b=_0x271592[_0x541a('0x37')](_0x377f90),_0x1fb8bd=_0x377f90[0x0][_0x541a('0x21')](_0x541a('0x23')),_0x456a33=_0x1fb8bd[_0x541a('0x3f')](_0x541a('0x4'))||0x0,_0x324951=_0x12da19&&null!==_0x12da19[_0x541a('0x3')]?_0x12da19[_0x541a('0x3')]:!_0x246aad[_0x541a('0xf')][_0x541a('0x38')](_0x541a('0x26'))['value'],_0x188b06=_0x324951?_0x1f920b['last']:_0x1f920b['first'],_0x24190c=_0x1fb8bd[_0x541a('0x15')](_0x188b06);let _0x44215f;if(_0x324951){const _0x1a1529=_0x1fb8bd[_0x541a('0x15')](_0x456a33);if(_0x24190c[_0x541a('0x2e')]<_0x1a1529[_0x541a('0x2e')])return;_0x44215f=_0x246aad[_0x541a('0x2c')][_0x541a('0x50')](_0x246aad[_0x541a('0x2c')][_0x541a('0x29')](_0x1a1529[_0x541a('0x15')](0x0)),_0x246aad[_0x541a('0x2c')][_0x541a('0x10')](_0x24190c[_0x541a('0x15')](_0x24190c[_0x541a('0xc')]-0x1)));}else{const _0x54c420=_0x1fb8bd[_0x541a('0x15')](_0x456a33-0x1);if(!_0x54c420)return;_0x44215f=_0x246aad['model']['createRange'](_0x246aad['model'][_0x541a('0x29')](_0x24190c[_0x541a('0x15')](0x0)),_0x246aad[_0x541a('0x2c')][_0x541a('0x10')](_0x54c420[_0x541a('0x15')](_0x54c420[_0x541a('0xc')]-0x1)));}_0x246aad['model'][_0x541a('0x7')](()=>{_0x2a84a1[_0x541a('0x20')](_0x44215f,{'commandName':_0x541a('0x26'),'commandParams':[{'forceValue':_0x324951}]},[],'setTableRowHeader');});}),_0x2a84a1[_0x541a('0x3a')](_0x541a('0x4e'),(_0x1642ef,_0x3a79ae)=>{const _0x1c18b3=_0x246aad[_0x541a('0x31')]['get']('TableUtils'),_0x138fa6=_0x1c18b3[_0x541a('0x12')](_0x246aad['model']['document'][_0x541a('0x9')]),_0x31a6ab=_0x1c18b3[_0x541a('0x39')](_0x138fa6),_0xcf4bd1=_0x138fa6[0x0]['findAncestor'](_0x541a('0x23')),_0x53df61=_0xcf4bd1[_0x541a('0x3f')]('headingColumns')||0x0,_0x247936=_0x3a79ae&&null!==_0x3a79ae[_0x541a('0x3')]?_0x3a79ae[_0x541a('0x3')]:!_0x246aad[_0x541a('0xf')]['get'](_0x541a('0x4e'))[_0x541a('0x19')];let _0x323b98;const _0x52f132=_0xcf4bd1[_0x541a('0x15')](0x0),_0x21e74b=_0x247936?_0x31a6ab['last']:_0x31a6ab[_0x541a('0x11')],_0x136ea5=_0x1c18b3[_0x541a('0x16')](_0xcf4bd1,{'startRow':0x0,'column':_0x21e74b,'includeAllSlots':!0x1}),_0x20748e=Array[_0x541a('0x5')](_0x136ea5)[0x0][_0x541a('0x32')];if(_0x247936){const _0x3a0af4=_0x52f132['getChild'](_0x53df61);if(_0x20748e['isBefore'](_0x3a0af4))return;_0x323b98=_0x246aad[_0x541a('0x2c')][_0x541a('0x50')](_0x246aad[_0x541a('0x2c')][_0x541a('0x29')](_0x3a0af4),_0x246aad['model'][_0x541a('0x10')](_0x20748e));}else{const _0x27b175=_0x52f132[_0x541a('0x15')](_0x53df61-0x1);if(!_0x27b175)return;_0x323b98=_0x246aad[_0x541a('0x2c')]['createRange'](_0x246aad[_0x541a('0x2c')][_0x541a('0x29')](_0x20748e),_0x246aad[_0x541a('0x2c')][_0x541a('0x10')](_0x27b175));}_0x246aad[_0x541a('0x2c')][_0x541a('0x7')](()=>{_0x2a84a1[_0x541a('0x20')](_0x323b98,{'commandName':_0x541a('0x4e'),'commandParams':[{'forceValue':_0x247936}]},[],'setTableColumnHeader');});}),_0x246aad[_0x541a('0x1b')][_0x541a('0x1a')]['on'](_0x541a('0x1f'),_0x8b56e(),{'priority':_0x541a('0x45')}),_0x246aad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2af489,_0x538e8f,_0x11ea70)=>{_0x11ea70[_0x541a('0x4a')][_0x541a('0x4d')]&&_0x8b56e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2af489,_0x538e8f,_0x11ea70);},{'priority':_0x541a('0x45')}),_0x246aad[_0x541a('0x1b')][_0x541a('0x1a')]['on'](_0x541a('0x34'),(_0x6a157c,_0x4772ee,_0x3e3557)=>{const {type:_0x438648,id:_0xed2e41}=_0x2a84a1['_splitMarkerName'](_0x4772ee[_0x541a('0x18')]),_0x58a75b=_0x2a84a1[_0x541a('0x27')](_0xed2e41);if(!_0x58a75b['data']||_0x541a('0x4e')!=_0x58a75b['data'][_0x541a('0x35')])return;const _0x4d5f94=_0x3e3557[_0x541a('0x48')]['markerNameToElements'](_0x4772ee[_0x541a('0x18')]);if(_0x4d5f94)for(const _0x4c88bf of _0x4d5f94)_0x3e3557[_0x541a('0x1c')][_0x541a('0x24')]('ck-suggestion-marker-'+_0x438648,_0x4c88bf),_0x3e3557['writer'][_0x541a('0x24')](_0x541a('0x4b'),_0x4c88bf),_0x3e3557[_0x541a('0x1c')][_0x541a('0x1d')](_0x541a('0x2d'),_0x4c88bf),_0x3e3557[_0x541a('0x48')][_0x541a('0x28')](_0x4c88bf,_0x4772ee[_0x541a('0x18')]);},{'priority':_0x541a('0x45')}),_0x2a84a1[_0x541a('0x13')][_0x541a('0x6')](_0x372910=>{const {data:_0x326a27}=_0x372910;if(_0x326a27){if(_0x541a('0x26')==_0x326a27['commandName']){const _0x40a97c=_0x326a27[_0x541a('0x51')][0x0]['forceValue'];return _0x31dfed(_0x595569(_0x23dad3,_0x40a97c?_0x541a('0x1e'):_0x541a('0x14')));}if(_0x541a('0x4e')==_0x326a27[_0x541a('0x35')]){const _0x52d296=_0x326a27[_0x541a('0x51')][0x0]['forceValue'];return _0x31dfed(_0x595569(_0x23dad3,_0x52d296?'FORMAT_HEADER_COLUMN':_0x541a('0x44')));}}function _0x31dfed(_0x57f7cb){return{'type':_0x541a('0x2f'),'content':_0x595569(_0x23dad3,_0x541a('0x47'),_0x57f7cb)};}});const _0x2042c1=_0x26bbe8[_0x541a('0x43')]();_0x2a84a1[_0x541a('0x4f')]['registerCustomCallback'](_0x541a('0x17'),_0x541a('0x26'),'accept',_0x2042c1),_0x2a84a1[_0x541a('0x4f')]['registerCustomCallback'](_0x541a('0x17'),_0x541a('0x4e'),_0x541a('0x36'),_0x2042c1);}}
23
+ const _0x61a8=['getColumnIndexes','registerCustomCallback','consumable','TableEditing','writer','plugins','setAttribute','downcastDispatcher','index','nodeAfter','value','highest','start','bindElementToMarker','childCount','markerName','last','locale','requires','editing','removeClass','removeMarker:suggestion','editor','item','markerRange','has','stop','setTableColumnHeader','createTableWalker','getRowIndexes','commandName','FORMAT_REGULAR_ROW','_descriptionFactory','TableUtils','getSuggestion','markerNameToElements','data','TrackChangesEditing','table','cell','addMarker:suggestion','unbindElementFromMarkerName','model','createPositionBefore','document','isBefore','change','mapper','FORMAT_HEADER_COLUMN','_splitMarkerName','ck-suggestion-marker--active','setTableRowHeader','nodeBefore','createRange','ck-suggestion-marker-','first','end','includes','parent','data-suggestion','createPositionAfter','FORMAT_HEADER_ROW','findAncestor','*Format:*\x20%0','showSuggestionHighlights','getSelectionAffectedTableCells','selection','getAttribute','formatBlock','getCellLocation','name','get','commands','headingRows','addClass','accept','removeAttribute','forceValue','markBlockFormat','getChild'];(function(_0xcd00f4,_0x61a81a){const _0xd83182=function(_0x387829){while(--_0x387829){_0xcd00f4['push'](_0xcd00f4['shift']());}};_0xd83182(++_0x61a81a);}(_0x61a8,0x99));const _0xd831=function(_0xcd00f4,_0x61a81a){_0xcd00f4=_0xcd00f4-0x0;let _0xd83182=_0x61a8[_0xcd00f4];return _0xd83182;};import{Plugin as _0x220e0a}from'ckeditor5/src/core';import _0x2aa8e8 from'./table';import{getTranslation as _0x31ad43}from'../utils/common-translations';export default class pt extends _0x220e0a{static get[_0xd831('0x19')](){return[_0x2aa8e8];}['afterInit'](){const _0x44a036=this[_0xd831('0x1d')];if(!_0x44a036['plugins'][_0xd831('0x20')](_0xd831('0xa')))return;const _0x30ca7d=_0x44a036[_0xd831('0x18')],_0x318b6e=_0x44a036[_0xd831('0xc')][_0xd831('0x4e')](_0xd831('0x2c')),_0x4c25a4=_0x44a036[_0xd831('0xc')][_0xd831('0x4e')](_0xd831('0x28')),_0x3d3884=_0x44a036[_0xd831('0xc')][_0xd831('0x4e')](_0x2aa8e8);function _0x194402({showActiveMarker:_0x52eb84=!0x0,setDataAttribute:_0x409d99=!0x0}={}){return(_0x89fea2,_0x142108,_0xb802ca)=>{const {type:_0x1d9792,id:_0x44f35f}=_0x318b6e[_0xd831('0x38')](_0x142108[_0xd831('0x16')]),_0x19eb92=_0x318b6e['getSuggestion'](_0x44f35f);if(!_0x19eb92[_0xd831('0x2b')]||'setTableColumnHeader'!=_0x19eb92[_0xd831('0x2b')]['commandName'])return;if(_0x142108[_0xd831('0x1e')])return void _0x89fea2[_0xd831('0x21')]();if(!_0xb802ca[_0xd831('0x9')]['consume'](_0x142108[_0xd831('0x1f')],_0x89fea2[_0xd831('0x4d')]))return;const _0x59f32a=_0x142108[_0xd831('0x1f')][_0xd831('0x13')][_0xd831('0x10')],_0x329716=_0x142108[_0xd831('0x1f')][_0xd831('0x3f')][_0xd831('0x3b')],_0xd23bd0=_0x59f32a[_0xd831('0x41')][_0xd831('0x41')],{column:_0x33e79d}=_0x4c25a4[_0xd831('0x4c')](_0x59f32a),{column:_0x21b971}=_0x4c25a4[_0xd831('0x4c')](_0x329716);for(let _0x28919f=_0x33e79d;_0x28919f<=_0x21b971;_0x28919f++){const _0xd03442=_0x4c25a4[_0xd831('0x23')](_0xd23bd0,{'column':_0x28919f,'includeAllSlots':!0x1});for(const _0xeea827 of _0xd03442){const _0x226d02=_0xeea827[_0xd831('0x2e')],_0x5eb75c=_0xb802ca[_0xd831('0x36')]['toViewElement'](_0x226d02);_0xb802ca[_0xd831('0xb')][_0xd831('0x1')](_0xd831('0x3d')+_0x1d9792,_0x5eb75c),_0x409d99&&_0xb802ca['writer'][_0xd831('0xd')](_0xd831('0x42'),_0x44f35f,_0x5eb75c),_0xb802ca[_0xd831('0x36')][_0xd831('0x14')](_0x5eb75c,_0x142108[_0xd831('0x16')]),_0x52eb84&&(_0x318b6e['activeMarkers'][_0xd831('0x40')](_0x142108[_0xd831('0x16')])?_0xb802ca[_0xd831('0xb')][_0xd831('0x1')]('ck-suggestion-marker--active',_0x5eb75c):_0xb802ca['writer'][_0xd831('0x1b')](_0xd831('0x39'),_0x5eb75c));}}};}_0x318b6e['enableCommand'](_0xd831('0x3a'),(_0x2de095,_0x2513b4)=>{const _0x585365=_0x4c25a4[_0xd831('0x48')](_0x44a036[_0xd831('0x31')][_0xd831('0x33')][_0xd831('0x49')]),_0x3de822=_0x4c25a4[_0xd831('0x24')](_0x585365),_0x5c3a8a=_0x585365[0x0][_0xd831('0x45')](_0xd831('0x2d')),_0x23d914=_0x5c3a8a[_0xd831('0x4a')](_0xd831('0x0'))||0x0,_0xa165d0=_0x2513b4&&null!==_0x2513b4[_0xd831('0x4')]?_0x2513b4[_0xd831('0x4')]:!_0x44a036[_0xd831('0x4f')]['get'](_0xd831('0x3a'))[_0xd831('0x11')],_0xeb01ad=_0xa165d0?_0x3de822[_0xd831('0x17')]:_0x3de822['first'],_0x4c44f1=_0x5c3a8a[_0xd831('0x6')](_0xeb01ad);let _0x1a9696;if(_0xa165d0){const _0x3a81fd=_0x5c3a8a[_0xd831('0x6')](_0x23d914);if(_0x4c44f1[_0xd831('0xf')]<_0x3a81fd[_0xd831('0xf')])return;_0x1a9696=_0x44a036['model'][_0xd831('0x3c')](_0x44a036[_0xd831('0x31')][_0xd831('0x32')](_0x3a81fd[_0xd831('0x6')](0x0)),_0x44a036[_0xd831('0x31')][_0xd831('0x43')](_0x4c44f1[_0xd831('0x6')](_0x4c44f1[_0xd831('0x15')]-0x1)));}else{const _0x56a73d=_0x5c3a8a[_0xd831('0x6')](_0x23d914-0x1);if(!_0x56a73d)return;_0x1a9696=_0x44a036[_0xd831('0x31')][_0xd831('0x3c')](_0x44a036['model'][_0xd831('0x32')](_0x4c44f1[_0xd831('0x6')](0x0)),_0x44a036['model']['createPositionAfter'](_0x56a73d[_0xd831('0x6')](_0x56a73d['childCount']-0x1)));}_0x44a036[_0xd831('0x31')][_0xd831('0x35')](()=>{_0x318b6e['markBlockFormat'](_0x1a9696,{'commandName':_0xd831('0x3a'),'commandParams':[{'forceValue':_0xa165d0}]},[],_0xd831('0x3a'));});}),_0x318b6e['enableCommand'](_0xd831('0x22'),(_0x268a8d,_0x5b7510)=>{const _0x2e45d7=_0x44a036['plugins'][_0xd831('0x4e')]('TableUtils'),_0x46759d=_0x2e45d7[_0xd831('0x48')](_0x44a036[_0xd831('0x31')]['document'][_0xd831('0x49')]),_0x5e3601=_0x2e45d7[_0xd831('0x7')](_0x46759d),_0x2762eb=_0x46759d[0x0][_0xd831('0x45')](_0xd831('0x2d')),_0x52eca9=_0x2762eb[_0xd831('0x4a')]('headingColumns')||0x0,_0x38b369=_0x5b7510&&null!==_0x5b7510[_0xd831('0x4')]?_0x5b7510['forceValue']:!_0x44a036[_0xd831('0x4f')][_0xd831('0x4e')]('setTableColumnHeader')[_0xd831('0x11')];let _0x3b8928;const _0x4d40de=_0x2762eb[_0xd831('0x6')](0x0),_0xf0f9d6=_0x38b369?_0x5e3601[_0xd831('0x17')]:_0x5e3601[_0xd831('0x3e')],_0x2f62f0=_0x2e45d7[_0xd831('0x23')](_0x2762eb,{'startRow':0x0,'column':_0xf0f9d6,'includeAllSlots':!0x1}),_0x1e09db=Array['from'](_0x2f62f0)[0x0][_0xd831('0x2e')];if(_0x38b369){const _0x5c0a09=_0x4d40de[_0xd831('0x6')](_0x52eca9);if(_0x1e09db[_0xd831('0x34')](_0x5c0a09))return;_0x3b8928=_0x44a036[_0xd831('0x31')]['createRange'](_0x44a036['model'][_0xd831('0x32')](_0x5c0a09),_0x44a036[_0xd831('0x31')][_0xd831('0x43')](_0x1e09db));}else{const _0x163f80=_0x4d40de[_0xd831('0x6')](_0x52eca9-0x1);if(!_0x163f80)return;_0x3b8928=_0x44a036[_0xd831('0x31')][_0xd831('0x3c')](_0x44a036[_0xd831('0x31')][_0xd831('0x32')](_0x1e09db),_0x44a036['model'][_0xd831('0x43')](_0x163f80));}_0x44a036[_0xd831('0x31')]['change'](()=>{_0x318b6e[_0xd831('0x5')](_0x3b8928,{'commandName':_0xd831('0x22'),'commandParams':[{'forceValue':_0x38b369}]},[],_0xd831('0x22'));});}),_0x44a036[_0xd831('0x1a')]['downcastDispatcher']['on'](_0xd831('0x2f'),_0x194402(),{'priority':_0xd831('0x12')}),_0x44a036['data'][_0xd831('0xe')]['on'](_0xd831('0x2f'),(_0x41c5b3,_0xb8c8ae,_0x24283c)=>{_0x24283c['options'][_0xd831('0x47')]&&_0x194402({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x41c5b3,_0xb8c8ae,_0x24283c);},{'priority':_0xd831('0x12')}),_0x44a036[_0xd831('0x1a')][_0xd831('0xe')]['on'](_0xd831('0x1c'),(_0x3b6c1a,_0x263a23,_0x16942c)=>{const {type:_0x59a349,id:_0x3563fd}=_0x318b6e[_0xd831('0x38')](_0x263a23['markerName']),_0x4357ca=_0x318b6e[_0xd831('0x29')](_0x3563fd);if(!_0x4357ca['data']||_0xd831('0x22')!=_0x4357ca['data'][_0xd831('0x25')])return;const _0x5f0a9c=_0x16942c[_0xd831('0x36')][_0xd831('0x2a')](_0x263a23[_0xd831('0x16')]);if(_0x5f0a9c)for(const _0x30e276 of _0x5f0a9c)_0x16942c[_0xd831('0xb')][_0xd831('0x1b')]('ck-suggestion-marker-'+_0x59a349,_0x30e276),_0x16942c[_0xd831('0xb')][_0xd831('0x1b')]('ck-suggestion-marker--active',_0x30e276),_0x16942c[_0xd831('0xb')][_0xd831('0x3')]('data-suggestion',_0x30e276),_0x16942c[_0xd831('0x36')][_0xd831('0x30')](_0x30e276,_0x263a23[_0xd831('0x16')]);},{'priority':'highest'}),_0x318b6e[_0xd831('0x27')]['registerDescriptionCallback'](_0x54a3ab=>{const {data:_0x18f67e}=_0x54a3ab;if(_0x18f67e){if('setTableRowHeader'==_0x18f67e[_0xd831('0x25')]){const _0x47f6ed=_0x18f67e['commandParams'][0x0][_0xd831('0x4')];return _0x5d361e(_0x31ad43(_0x30ca7d,_0x47f6ed?_0xd831('0x44'):_0xd831('0x26')));}if(_0xd831('0x22')==_0x18f67e[_0xd831('0x25')]){const _0x27e659=_0x18f67e['commandParams'][0x0][_0xd831('0x4')];return _0x5d361e(_0x31ad43(_0x30ca7d,_0x27e659?_0xd831('0x37'):'FORMAT_REGULAR_COLUMN'));}}function _0x5d361e(_0x4473fd){return{'type':'format','content':_0x31ad43(_0x30ca7d,_0xd831('0x46'),_0x4473fd)};}});const _0xaa450f=_0x3d3884['_acceptFormatSuggestionCallbackFactory']();_0x318b6e['_suggestionFactory'][_0xd831('0x8')]('formatBlock',_0xd831('0x3a'),_0xd831('0x2'),_0xaa450f),_0x318b6e['_suggestionFactory'][_0xd831('0x8')](_0xd831('0x4b'),'setTableColumnHeader','accept',_0xaa450f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2275=['change','mergeTableCells','push','accept','trackChanges','splitTableCellHorizontally','containsRange','enableCommand','registerDescriptionCallback','low','afterInit','mergeTableCellUp','getSuggestions','editor','author','isEnabled','setSelection','getFirstPosition','TableUtils','getSelectionAffectedTableCells','from','TableEditing','*Split\x20cell:*\x20horizontally','TrackChangesEditing','map','filter','table','splitTableCellVertically','set:isEnabled','document','mergeTableCellRight','type','add','plugins','refresh','stop','has','_acceptFormatSuggestionCallbackFactory','markMultiRangeBlockFormat','commands','insertion','size','createTableWalker','value','$graveyard','cell','length','fromRange','element','requires','mergeTableCellDown','model','format','detach','find','direction','forceDefaultExecution','isInContent','selection','mergeTableCellLeft','formatBlock','highest','root','_descriptionFactory','commandName','getAncestors','getRanges','locale','createRangeOn','getCellLocation','_areMergableCells','horizontally','_tablePostFixingSubtypes','_suggestionFactory','_areSelectedCellsMergable','execute','get'];(function(_0x146a77,_0x2275bb){const _0x2b9004=function(_0x2260ef){while(--_0x2260ef){_0x146a77['push'](_0x146a77['shift']());}};_0x2b9004(++_0x2275bb);}(_0x2275,0xb9));const _0x2b90=function(_0x146a77,_0x2275bb){_0x146a77=_0x146a77-0x0;let _0x2b9004=_0x2275[_0x146a77];return _0x2b9004;};import{Plugin as _0xa1ccec}from'ckeditor5/src/core';import _0x351fbc from'./table';import{LiveRange as _0x568f5d}from'ckeditor5/src/engine';import{getTranslation as _0x150c1b}from'../utils/common-translations';export default class dt extends _0xa1ccec{static get[_0x2b90('0x12')](){return[_0x351fbc];}[_0x2b90('0x38')](){const _0x4c0d73=this[_0x2b90('0x3b')],_0x291e3c=_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x4b')][_0x2b90('0x1b')],_0x2326cd=_0x4c0d73[_0x2b90('0x24')];if(!_0x4c0d73[_0x2b90('0x2')][_0x2b90('0x5')](_0x2b90('0x43')))return;const _0x5cffa1=_0x4c0d73['plugins'][_0x2b90('0x2d')](_0x2b90('0x45')),_0x4d45c7=_0x4c0d73[_0x2b90('0x2')][_0x2b90('0x2d')]('TableUtils'),_0x245faf=_0x4c0d73[_0x2b90('0x2')][_0x2b90('0x2d')](_0x351fbc);_0x245faf[_0x2b90('0x29')][_0x2b90('0x30')]('mergeTableCells'),_0x5cffa1[_0x2b90('0x35')](_0x2b90('0x2f'),()=>{const _0x32331d=_0x4d45c7['getSelectionAffectedTableCells'](_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x4b')][_0x2b90('0x1b')]);_0x4c0d73['model'][_0x2b90('0x2e')](()=>{_0x5cffa1[_0x2b90('0x7')](_0x32331d,{'commandName':_0x2b90('0x2f'),'commandParams':[]},[],_0x2b90('0x2f'));});}),_0x4c0d73[_0x2b90('0x8')][_0x2b90('0x2d')]('mergeTableCells')['on'](_0x2b90('0x2c'),(_0x58620f,_0x273665)=>{_0x4c0d73[_0x2b90('0x8')]['get'](_0x2b90('0x32'))[_0x2b90('0xc')]&&(_0x273665[_0x2b90('0xf')]>0x0&&_0x273665[_0x273665[_0x2b90('0xf')]-0x1]&&_0x273665[_0x273665[_0x2b90('0xf')]-0x1][_0x2b90('0x19')]||_0x5cffa1['_isForcedDefaultExecutionBlock']||this[_0x2b90('0x2b')]()||_0x58620f[_0x2b90('0x4')]());},{'priority':_0x2b90('0x1e')});for(const _0x2efea2 of[_0x2b90('0x39'),'mergeTableCellRight',_0x2b90('0x13'),_0x2b90('0x1c')]){const _0x53b15e=_0x4c0d73[_0x2b90('0x8')][_0x2b90('0x2d')](_0x2efea2);_0x5cffa1[_0x2b90('0x35')](_0x2efea2,()=>{const _0x39abf1=_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x4b')][_0x2b90('0x1b')][_0x2b90('0x3f')]()[_0x2b90('0x22')]()[_0x2b90('0x17')](_0x59dd9e=>_0x59dd9e['is'](_0x2b90('0x11'),'tableCell')),_0x17c9db=_0x53b15e[_0x2b90('0xc')];_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x2e')](()=>{_0x5cffa1[_0x2b90('0x7')]([_0x39abf1,_0x17c9db],{'commandName':'mergeTableCells','commandParams':[]},[],_0x2b90('0x2f'));});});}for(const _0x4294ae of[_0x2b90('0x49'),_0x2b90('0x33')]){const _0x560949=_0x4c0d73[_0x2b90('0x8')][_0x2b90('0x2d')](_0x4294ae);_0x5cffa1[_0x2b90('0x35')](_0x4294ae,()=>{const _0x24c75d=_0x4d45c7[_0x2b90('0x41')](_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x4b')][_0x2b90('0x1b')])[0x0],_0x52cdce=_0x24c75d['findAncestor'](_0x2b90('0x48')),{column:_0x1686f9,row:_0xc87f22}=_0x4d45c7[_0x2b90('0x26')](_0x24c75d);let _0x48e3f8=[];if(_0x2b90('0x28')==_0x560949[_0x2b90('0x18')]){const _0x160e21=_0x4d45c7[_0x2b90('0xb')](_0x52cdce,{'startRow':_0xc87f22,'endRow':_0xc87f22,'includeAllSlots':!0x0});_0x48e3f8=Array['from'](_0x160e21)[_0x2b90('0x46')](_0x34c29c=>_0x34c29c[_0x2b90('0xe')]);}else{const _0x3558f8=_0x4d45c7[_0x2b90('0xb')](_0x52cdce,{'column':_0x1686f9,'includeAllSlots':!0x0});_0x48e3f8=Array['from'](_0x3558f8)[_0x2b90('0x46')](_0x2baab8=>_0x2baab8[_0x2b90('0xe')]);}_0x4c0d73['model'][_0x2b90('0x2e')](_0xad188=>{_0x5cffa1['markBlockFormat'](_0xad188[_0x2b90('0x25')](_0x24c75d),{'commandName':_0x4294ae,'commandParams':[]},_0x48e3f8,_0x4294ae);});});}_0x5cffa1[_0x2b90('0x20')][_0x2b90('0x36')](_0x19243f=>{const {data:_0x7bde98}=_0x19243f;if(_0x7bde98)return'mergeTableCells'==_0x7bde98[_0x2b90('0x21')]?{'type':'format','content':_0x150c1b(_0x2326cd,'*Merge\x20cells*')}:void 0x0;}),_0x5cffa1[_0x2b90('0x20')][_0x2b90('0x36')](_0x32b4b0=>{const {data:_0x3e604f}=_0x32b4b0;if(_0x3e604f)return'splitTableCellVertically'==_0x3e604f['commandName']?{'type':_0x2b90('0x15'),'content':_0x150c1b(_0x2326cd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3e604f['commandName']?{'type':'format','content':_0x150c1b(_0x2326cd,_0x2b90('0x44'))}:void 0x0;});const _0x312499=_0x245faf[_0x2b90('0x6')]();for(const _0x45aea5 of[_0x2b90('0x39'),_0x2b90('0x4c'),_0x2b90('0x13'),_0x2b90('0x1c')])_0x5cffa1[_0x2b90('0x2a')]['registerCustomCallback'](_0x2b90('0x1d'),_0x45aea5,'accept',_0x312499);for(const _0x198d5e of['splitTableCellVertically','splitTableCellHorizontally'])_0x5cffa1[_0x2b90('0x2a')]['registerCustomCallback'](_0x2b90('0x1d'),_0x198d5e,'accept',_0x312499);_0x5cffa1[_0x2b90('0x2a')]['registerCustomCallback']('formatBlock',_0x2b90('0x2f'),_0x2b90('0x31'),_0x2f1713=>{_0x4c0d73[_0x2b90('0x14')][_0x2b90('0x2e')](_0x17b7f0=>{const _0x1ef690=Array[_0x2b90('0x42')](_0x291e3c['getRanges']())['map'](_0x45d101=>_0x568f5d[_0x2b90('0x10')](_0x45d101));_0x17b7f0[_0x2b90('0x3e')](_0x2f1713),_0x4c0d73[_0x2b90('0x8')][_0x2b90('0x2d')](_0x2b90('0x2f'))[_0x2b90('0x3')](),_0x4c0d73['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c45bc=_0x1ef690[_0x2b90('0x47')](_0x21c769=>_0x2b90('0xd')!=_0x21c769[_0x2b90('0x1f')]['rootName']);_0x1c45bc[_0x2b90('0xf')]>0x0&&_0x17b7f0[_0x2b90('0x3e')](_0x1c45bc);for(const _0x7371a9 of _0x1ef690)_0x7371a9[_0x2b90('0x16')]();});});for(const _0x4622ea of[_0x2b90('0x39'),_0x2b90('0x13'),_0x2b90('0x1c'),_0x2b90('0x4c')]){const _0x5a2a63=_0x4c0d73[_0x2b90('0x8')][_0x2b90('0x2d')](_0x4622ea);_0x5a2a63['on'](_0x2b90('0x4a'),(_0x565a60,_0x433d41,_0x3f29a2)=>{if(_0x3f29a2){const _0x59ffea=_0x4c0d73[_0x2b90('0x14')]['document'][_0x2b90('0x1b')][_0x2b90('0x3f')]()[_0x2b90('0x22')]()[_0x2b90('0x17')](_0xcdf9cf=>_0xcdf9cf['is'](_0x2b90('0x11'),'tableCell'));this['_areMergableCells'](_0x5a2a63[_0x2b90('0xc')],_0x59ffea)||(_0x565a60['return']=!0x1,_0x565a60['stop']());}},{'priority':_0x2b90('0x37')});}}[_0x2b90('0x2b')](){const _0x1be891=this[_0x2b90('0x3b')]['commands'][_0x2b90('0x2d')]('mergeTableCells'),_0x3dee9e=this[_0x2b90('0x3b')][_0x2b90('0x2')][_0x2b90('0x2d')](_0x2b90('0x40'));if(!_0x1be891[_0x2b90('0x3d')])return!0x1;const _0x196422=_0x3dee9e[_0x2b90('0x41')](this[_0x2b90('0x3b')][_0x2b90('0x14')][_0x2b90('0x4b')][_0x2b90('0x1b')]);for(const _0x9438f5 of _0x196422)for(const _0x1922ed of _0x196422)if(_0x9438f5!=_0x1922ed&&!this[_0x2b90('0x27')](_0x9438f5,_0x1922ed))return!0x1;return!0x0;}[_0x2b90('0x27')](_0x4d67e0,_0x53bf30){const _0x1c650a=this['editor'][_0x2b90('0x2')]['get'](_0x2b90('0x45')),_0xdd6aaf=this['editor'][_0x2b90('0x14')][_0x2b90('0x25')](_0x4d67e0),_0x1b9653=this['editor'][_0x2b90('0x14')][_0x2b90('0x25')](_0x53bf30),_0xb69dec=new Set(),_0xc77dab=new Set();for(const _0x246c88 of _0x1c650a[_0x2b90('0x3a')]())if((_0x2b90('0x9')==_0x246c88[_0x2b90('0x0')]||'deletion'==_0x246c88['type']||_0x2b90('0x2f')==_0x246c88['subType'])&&_0x246c88[_0x2b90('0x1a')])for(const _0x20f56e of _0x246c88[_0x2b90('0x23')]())_0x20f56e[_0x2b90('0x34')](_0xdd6aaf,!0x0)&&_0xb69dec[_0x2b90('0x1')](_0x246c88[_0x2b90('0x0')]+':'+_0x246c88['author']['id']),_0x20f56e[_0x2b90('0x34')](_0x1b9653,!0x0)&&_0xc77dab[_0x2b90('0x1')](_0x246c88[_0x2b90('0x0')]+':'+_0x246c88[_0x2b90('0x3c')]['id']);if(_0xb69dec[_0x2b90('0xa')]!=_0xc77dab[_0x2b90('0xa')])return!0x1;for(const _0x46aec2 of _0xb69dec)if(!_0xc77dab['has'](_0x46aec2))return!0x1;return!0x0;}}
23
+ const _0x32fc=['mergeTableCellLeft','mergeTableCellRight','has','find','_isForcedDefaultExecutionBlock','formatBlock','tableCell','*Merge\x20cells*','horizontally','get','element','value','setSelection','_acceptFormatSuggestionCallbackFactory','getAncestors','getSuggestions','commandName','_areSelectedCellsMergable','change','type','size','findAncestor','deletion','length','editor','stop','mergeTableCellUp','splitTableCellHorizontally','model','TrackChangesEditing','document','markBlockFormat','registerCustomCallback','detach','highest','markMultiRangeBlockFormat','enableCommand','createTableWalker','splitTableCellVertically','author','plugins','direction','selection','format','TableEditing','from','createRangeOn','_areMergableCells','requires','mergeTableCellDown','push','commands','trackChanges','getRanges','cell','getFirstPosition','add','afterInit','containsRange','accept','mergeTableCells','locale','insertion','_tablePostFixingSubtypes','TableUtils','registerDescriptionCallback','subType','execute','refresh','isInContent','_suggestionFactory','fromRange','rootName','map','low','getSelectionAffectedTableCells','*Split\x20cell:*\x20vertically'];(function(_0x43991f,_0x32fce6){const _0x1def32=function(_0x261750){while(--_0x261750){_0x43991f['push'](_0x43991f['shift']());}};_0x1def32(++_0x32fce6);}(_0x32fc,0x180));const _0x1def=function(_0x43991f,_0x32fce6){_0x43991f=_0x43991f-0x0;let _0x1def32=_0x32fc[_0x43991f];return _0x1def32;};import{Plugin as _0x1c99b2}from'ckeditor5/src/core';import _0x4cdabb from'./table';import{LiveRange as _0x2df9e5}from'ckeditor5/src/engine';import{getTranslation as _0x3b6c68}from'../utils/common-translations';export default class dt extends _0x1c99b2{static get[_0x1def('0x31')](){return[_0x4cdabb];}[_0x1def('0x3a')](){const _0x12172b=this[_0x1def('0x19')],_0xc2aeb1=_0x12172b[_0x1def('0x1d')][_0x1def('0x1f')][_0x1def('0x2b')],_0x3c38b8=_0x12172b[_0x1def('0x3e')];if(!_0x12172b[_0x1def('0x29')][_0x1def('0x3')](_0x1def('0x2d')))return;const _0x1a001a=_0x12172b[_0x1def('0x29')][_0x1def('0xa')](_0x1def('0x1e')),_0x318cf7=_0x12172b[_0x1def('0x29')]['get'](_0x1def('0x41')),_0xcb5888=_0x12172b['plugins'][_0x1def('0xa')](_0x4cdabb);_0xcb5888[_0x1def('0x40')][_0x1def('0x33')]('mergeTableCells'),_0x1a001a[_0x1def('0x25')](_0x1def('0x3d'),()=>{const _0xc3f9a1=_0x318cf7['getSelectionAffectedTableCells'](_0x12172b['model']['document'][_0x1def('0x2b')]);_0x12172b[_0x1def('0x1d')][_0x1def('0x13')](()=>{_0x1a001a[_0x1def('0x24')](_0xc3f9a1,{'commandName':_0x1def('0x3d'),'commandParams':[]},[],_0x1def('0x3d'));});}),_0x12172b['commands'][_0x1def('0xa')](_0x1def('0x3d'))['on'](_0x1def('0x44'),(_0x21a497,_0x569b4e)=>{_0x12172b['commands'][_0x1def('0xa')](_0x1def('0x35'))[_0x1def('0xc')]&&(_0x569b4e[_0x1def('0x18')]>0x0&&_0x569b4e[_0x569b4e[_0x1def('0x18')]-0x1]&&_0x569b4e[_0x569b4e['length']-0x1]['forceDefaultExecution']||_0x1a001a[_0x1def('0x5')]||this[_0x1def('0x12')]()||_0x21a497[_0x1def('0x1a')]());},{'priority':_0x1def('0x23')});for(const _0x57b502 of[_0x1def('0x1b'),_0x1def('0x2'),_0x1def('0x32'),_0x1def('0x1')]){const _0x112e9d=_0x12172b[_0x1def('0x34')][_0x1def('0xa')](_0x57b502);_0x1a001a[_0x1def('0x25')](_0x57b502,()=>{const _0x4e6d72=_0x12172b[_0x1def('0x1d')][_0x1def('0x1f')]['selection']['getFirstPosition']()['getAncestors']()['find'](_0xba405b=>_0xba405b['is'](_0x1def('0xb'),_0x1def('0x7'))),_0xc7351=_0x112e9d[_0x1def('0xc')];_0x12172b[_0x1def('0x1d')][_0x1def('0x13')](()=>{_0x1a001a['markMultiRangeBlockFormat']([_0x4e6d72,_0xc7351],{'commandName':_0x1def('0x3d'),'commandParams':[]},[],_0x1def('0x3d'));});});}for(const _0x185cdd of[_0x1def('0x27'),'splitTableCellHorizontally']){const _0x71c60f=_0x12172b[_0x1def('0x34')][_0x1def('0xa')](_0x185cdd);_0x1a001a[_0x1def('0x25')](_0x185cdd,()=>{const _0x2800c8=_0x318cf7[_0x1def('0x4c')](_0x12172b['model'][_0x1def('0x1f')]['selection'])[0x0],_0x37e889=_0x2800c8[_0x1def('0x16')]('table'),{column:_0x4be12c,row:_0x364652}=_0x318cf7['getCellLocation'](_0x2800c8);let _0x19f11e=[];if(_0x1def('0x9')==_0x71c60f[_0x1def('0x2a')]){const _0x21ba43=_0x318cf7[_0x1def('0x26')](_0x37e889,{'startRow':_0x364652,'endRow':_0x364652,'includeAllSlots':!0x0});_0x19f11e=Array[_0x1def('0x2e')](_0x21ba43)['map'](_0x4daaab=>_0x4daaab[_0x1def('0x37')]);}else{const _0x2aa8cd=_0x318cf7['createTableWalker'](_0x37e889,{'column':_0x4be12c,'includeAllSlots':!0x0});_0x19f11e=Array[_0x1def('0x2e')](_0x2aa8cd)[_0x1def('0x4a')](_0x50296a=>_0x50296a[_0x1def('0x37')]);}_0x12172b[_0x1def('0x1d')]['change'](_0x3f0670=>{_0x1a001a[_0x1def('0x20')](_0x3f0670[_0x1def('0x2f')](_0x2800c8),{'commandName':_0x185cdd,'commandParams':[]},_0x19f11e,_0x185cdd);});});}_0x1a001a['_descriptionFactory'][_0x1def('0x42')](_0x2e3a2e=>{const {data:_0x47c288}=_0x2e3a2e;if(_0x47c288)return'mergeTableCells'==_0x47c288['commandName']?{'type':'format','content':_0x3b6c68(_0x3c38b8,_0x1def('0x8'))}:void 0x0;}),_0x1a001a['_descriptionFactory'][_0x1def('0x42')](_0x22267b=>{const {data:_0x3a733e}=_0x22267b;if(_0x3a733e)return _0x1def('0x27')==_0x3a733e[_0x1def('0x11')]?{'type':_0x1def('0x2c'),'content':_0x3b6c68(_0x3c38b8,_0x1def('0x0'))}:'splitTableCellHorizontally'==_0x3a733e[_0x1def('0x11')]?{'type':_0x1def('0x2c'),'content':_0x3b6c68(_0x3c38b8,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x77d5b3=_0xcb5888[_0x1def('0xe')]();for(const _0xfdb85d of['mergeTableCellUp',_0x1def('0x2'),_0x1def('0x32'),_0x1def('0x1')])_0x1a001a[_0x1def('0x47')]['registerCustomCallback']('formatBlock',_0xfdb85d,_0x1def('0x3c'),_0x77d5b3);for(const _0x2327ba of[_0x1def('0x27'),_0x1def('0x1c')])_0x1a001a[_0x1def('0x47')][_0x1def('0x21')](_0x1def('0x6'),_0x2327ba,_0x1def('0x3c'),_0x77d5b3);_0x1a001a['_suggestionFactory'][_0x1def('0x21')]('formatBlock','mergeTableCells',_0x1def('0x3c'),_0x3f40c4=>{_0x12172b[_0x1def('0x1d')]['change'](_0x2e30f2=>{const _0x56b6f8=Array[_0x1def('0x2e')](_0xc2aeb1[_0x1def('0x36')]())['map'](_0x4eaaa9=>_0x2df9e5[_0x1def('0x48')](_0x4eaaa9));_0x2e30f2[_0x1def('0xd')](_0x3f40c4),_0x12172b[_0x1def('0x34')]['get']('mergeTableCells')[_0x1def('0x45')](),_0x12172b[_0x1def('0x44')](_0x1def('0x3d'),{'forceDefaultExecution':!0x0});const _0xcddf64=_0x56b6f8['filter'](_0x13e320=>'$graveyard'!=_0x13e320['root'][_0x1def('0x49')]);_0xcddf64[_0x1def('0x18')]>0x0&&_0x2e30f2['setSelection'](_0xcddf64);for(const _0x59051c of _0x56b6f8)_0x59051c[_0x1def('0x22')]();});});for(const _0x4edc9d of['mergeTableCellUp','mergeTableCellDown',_0x1def('0x1'),_0x1def('0x2')]){const _0x2cd553=_0x12172b[_0x1def('0x34')][_0x1def('0xa')](_0x4edc9d);_0x2cd553['on']('set:isEnabled',(_0xbafbfc,_0x43c63c,_0x500192)=>{if(_0x500192){const _0x371767=_0x12172b[_0x1def('0x1d')]['document']['selection'][_0x1def('0x38')]()[_0x1def('0xf')]()[_0x1def('0x4')](_0x3d3b7c=>_0x3d3b7c['is']('element',_0x1def('0x7')));this[_0x1def('0x30')](_0x2cd553[_0x1def('0xc')],_0x371767)||(_0xbafbfc['return']=!0x1,_0xbafbfc[_0x1def('0x1a')]());}},{'priority':_0x1def('0x4b')});}}[_0x1def('0x12')](){const _0x57e7bb=this['editor']['commands'][_0x1def('0xa')](_0x1def('0x3d')),_0x26cca1=this['editor'][_0x1def('0x29')][_0x1def('0xa')]('TableUtils');if(!_0x57e7bb['isEnabled'])return!0x1;const _0x4ef94c=_0x26cca1[_0x1def('0x4c')](this[_0x1def('0x19')][_0x1def('0x1d')][_0x1def('0x1f')]['selection']);for(const _0x17212a of _0x4ef94c)for(const _0x1efab1 of _0x4ef94c)if(_0x17212a!=_0x1efab1&&!this[_0x1def('0x30')](_0x17212a,_0x1efab1))return!0x1;return!0x0;}[_0x1def('0x30')](_0x786cfa,_0x228f58){const _0xc99711=this[_0x1def('0x19')]['plugins']['get'](_0x1def('0x1e')),_0x1a3f96=this[_0x1def('0x19')][_0x1def('0x1d')][_0x1def('0x2f')](_0x786cfa),_0x55f31c=this[_0x1def('0x19')][_0x1def('0x1d')][_0x1def('0x2f')](_0x228f58),_0x1c0e25=new Set(),_0x7f331b=new Set();for(const _0x3ba037 of _0xc99711[_0x1def('0x10')]())if((_0x1def('0x3f')==_0x3ba037[_0x1def('0x14')]||_0x1def('0x17')==_0x3ba037['type']||_0x1def('0x3d')==_0x3ba037[_0x1def('0x43')])&&_0x3ba037[_0x1def('0x46')])for(const _0x1ddebc of _0x3ba037[_0x1def('0x36')]())_0x1ddebc[_0x1def('0x3b')](_0x1a3f96,!0x0)&&_0x1c0e25[_0x1def('0x39')](_0x3ba037[_0x1def('0x14')]+':'+_0x3ba037[_0x1def('0x28')]['id']),_0x1ddebc[_0x1def('0x3b')](_0x55f31c,!0x0)&&_0x7f331b[_0x1def('0x39')](_0x3ba037[_0x1def('0x14')]+':'+_0x3ba037[_0x1def('0x28')]['id']);if(_0x1c0e25[_0x1def('0x15')]!=_0x7f331b[_0x1def('0x15')])return!0x1;for(const _0x104a6 of _0x1c0e25)if(!_0x7f331b[_0x1def('0x3')](_0x104a6))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59f1=['TrackChangesEditing','locale','_descriptionFactory','plugins','get','ELEMENT_TABLE_OF_CONTENTS','enableCommand','afterInit','commands','editor','registerElementLabel','insertTableOfContents','tableOfContents'];(function(_0x26537a,_0x59f155){const _0x1d8c4b=function(_0x28a133){while(--_0x28a133){_0x26537a['push'](_0x26537a['shift']());}};_0x1d8c4b(++_0x59f155);}(_0x59f1,0x105));const _0x1d8c=function(_0x26537a,_0x59f155){_0x26537a=_0x26537a-0x0;let _0x1d8c4b=_0x59f1[_0x26537a];return _0x1d8c4b;};import{Plugin as _0x4526a7}from'ckeditor5/src/core';import{getTranslation as _0x1086b5}from'../utils/common-translations';export default class bt extends _0x4526a7{[_0x1d8c('0x6')](){const _0x24fbab=this[_0x1d8c('0x8')];if(!_0x24fbab[_0x1d8c('0x7')][_0x1d8c('0x3')]('insertTableOfContents'))return;_0x24fbab['plugins'][_0x1d8c('0x3')](_0x1d8c('0xc'))[_0x1d8c('0x5')](_0x1d8c('0xa'));const _0x479cf2=_0x24fbab[_0x1d8c('0x2')][_0x1d8c('0x3')](_0x1d8c('0xc')),_0x20a42f=_0x24fbab[_0x1d8c('0x0')];_0x479cf2[_0x1d8c('0x1')][_0x1d8c('0x9')](_0x1d8c('0xb'),_0x18b75e=>_0x1086b5(_0x20a42f,_0x1d8c('0x4'),_0x18b75e));}}
23
+ const _0x1a9f=['tableOfContents','_descriptionFactory','insertTableOfContents','TrackChangesEditing','plugins','editor','ELEMENT_TABLE_OF_CONTENTS','enableCommand','afterInit','get','commands'];(function(_0x5c1925,_0x1a9f5d){const _0x241e29=function(_0x2d75f4){while(--_0x2d75f4){_0x5c1925['push'](_0x5c1925['shift']());}};_0x241e29(++_0x1a9f5d);}(_0x1a9f,0x1e7));const _0x241e=function(_0x5c1925,_0x1a9f5d){_0x5c1925=_0x5c1925-0x0;let _0x241e29=_0x1a9f[_0x5c1925];return _0x241e29;};import{Plugin as _0x883976}from'ckeditor5/src/core';import{getTranslation as _0x1e0a6f}from'../utils/common-translations';export default class bt extends _0x883976{[_0x241e('0x5')](){const _0x13f134=this[_0x241e('0x2')];if(!_0x13f134[_0x241e('0x7')]['get'](_0x241e('0xa')))return;_0x13f134['plugins']['get'](_0x241e('0x0'))[_0x241e('0x4')]('insertTableOfContents');const _0x5d2385=_0x13f134[_0x241e('0x1')][_0x241e('0x6')]('TrackChangesEditing'),_0x45073d=_0x13f134['locale'];_0x5d2385[_0x241e('0x9')]['registerElementLabel'](_0x241e('0x8'),_0x40ab2b=>_0x1e0a6f(_0x45073d,_0x241e('0x3'),_0x40ab2b));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ee1=['registerCustomCallback','commandParams','TrackChangesEditing','tableCellHeight','_descriptionFactory','nodeAfter','getSuggestions','selection','discard','change','_suggestionFactory','getContainedElement','tableWidth','tableCellBorderStyle','handleDiscardAction','_getSuggestion','locale','tableCellVerticalAlignment','format','handleSuggestionDescription','tableCellBackgroundColor','TablePropertiesEditing','join','TrackChangesTableProperties','enqueueChange','has','tableProperties','removeAttribute','document','tableCellProperties','model','table','tableBorderColor','get','tableCellBorderWidth','tableBackgroundColor','plugins','registerDescriptionCallback','setAttribute','TableUtils','getAttribute','_handlePropertyChange','formatBlock','markBlockFormat','enableCommand','pluginName','afterInit','*Format:*\x20change\x20table\x20properties','editor','tableCellWidth'];(function(_0x107f2c,_0x5ee136){const _0x4f29af=function(_0x2b1a44){while(--_0x2b1a44){_0x107f2c['push'](_0x107f2c['shift']());}};_0x4f29af(++_0x5ee136);}(_0x5ee1,0xa9));const _0x4f29=function(_0x107f2c,_0x5ee136){_0x107f2c=_0x107f2c-0x0;let _0x4f29af=_0x5ee1[_0x107f2c];return _0x4f29af;};import{Plugin as _0x48849a}from'ckeditor5/src/core';import{getTranslation as _0x453e3e}from'../utils/common-translations';export default class Ct extends _0x48849a{constructor(_0x351fd2){super(_0x351fd2),this[_0x4f29('0x7')]=[_0x4f29('0xd'),'tableBorderStyle','tableBorderWidth','tableAlignment',_0x4f29('0x2b'),'tableHeight',_0x4f29('0x10')],this[_0x4f29('0xa')]=['tableCellBorderColor',_0x4f29('0x2c'),_0x4f29('0xf'),'tableCellPadding',_0x4f29('0x1e'),_0x4f29('0x22'),_0x4f29('0x1'),'tableCellHorizontalAlignment',_0x4f29('0x30')];}static get[_0x4f29('0x1a')](){return _0x4f29('0x4');}[_0x4f29('0x1b')](){const _0x1851d5=this['editor']['plugins'][_0x4f29('0xe')](_0x4f29('0x21'));if(this[_0x4f29('0x1d')][_0x4f29('0x11')][_0x4f29('0x6')](_0x4f29('0x2'))){for(const _0x1e54a1 of this[_0x4f29('0x7')])_0x1851d5['enableCommand'](_0x1e54a1,(_0x43808f,_0x23d1b3)=>{const _0x5c4943=this[_0x4f29('0x1d')][_0x4f29('0xb')]['document'][_0x4f29('0x26')]['getFirstPosition']()['findAncestor'](_0x4f29('0xc'));this[_0x4f29('0x16')](_0x1e54a1,[_0x5c4943],this[_0x4f29('0x7')],_0x4f29('0x7'),_0x43808f,_0x23d1b3);});_0x1851d5[_0x4f29('0x29')]['registerCustomCallback']('formatBlock',_0x4f29('0x7'),'accept',_0x1851d5[_0x4f29('0x29')]['getSuggestionCallback'](_0x4f29('0x17'),null,_0x4f29('0x27'))),_0x1851d5['_suggestionFactory']['registerCustomCallback'](_0x4f29('0x17'),'tableProperties',_0x4f29('0x27'),(_0x4e329a,_0x5da964)=>this[_0x4f29('0x2d')](this[_0x4f29('0x7')],_0x4e329a,_0x5da964)),_0x1851d5[_0x4f29('0x29')][_0x4f29('0x1f')](_0x4f29('0x17'),_0x4f29('0x7'),_0x4f29('0x3'),()=>!0x1);}if(this[_0x4f29('0x1d')][_0x4f29('0x11')][_0x4f29('0x6')]('TableCellPropertiesEditing')){for(const _0x4b4f45 of this[_0x4f29('0xa')])_0x1851d5[_0x4f29('0x19')](_0x4b4f45,(_0x5abef9,_0xac08ce)=>{const _0x52a99c=this[_0x4f29('0x1d')][_0x4f29('0x11')][_0x4f29('0xe')](_0x4f29('0x14'))['getSelectionAffectedTableCells'](this[_0x4f29('0x1d')][_0x4f29('0xb')][_0x4f29('0x9')][_0x4f29('0x26')]);this[_0x4f29('0x16')](_0x4b4f45,_0x52a99c,this[_0x4f29('0xa')],'tableCellProperties',_0x5abef9,_0xac08ce);});_0x1851d5[_0x4f29('0x29')][_0x4f29('0x1f')](_0x4f29('0x17'),'tableCellProperties','accept',_0x1851d5[_0x4f29('0x29')]['getSuggestionCallback'](_0x4f29('0x17'),null,_0x4f29('0x27'))),_0x1851d5[_0x4f29('0x29')][_0x4f29('0x1f')](_0x4f29('0x17'),_0x4f29('0xa'),_0x4f29('0x27'),(_0x3535b4,_0x577011)=>this[_0x4f29('0x2d')](this['tableCellProperties'],_0x3535b4,_0x577011)),_0x1851d5[_0x4f29('0x29')][_0x4f29('0x1f')]('formatBlock',_0x4f29('0xa'),'join',()=>!0x1);}_0x1851d5[_0x4f29('0x23')][_0x4f29('0x12')](_0x4194d5=>this[_0x4f29('0x0')](_0x4194d5));}[_0x4f29('0x16')](_0x43bf57,_0x2ed874,_0x28a86e,_0x40540d,_0x501cc1,_0x5abe11){const _0x4f5227=this['editor']['plugins'][_0x4f29('0xe')]('TrackChangesEditing');this['editor'][_0x4f29('0xb')][_0x4f29('0x5')](_0x5abe11['batch'],()=>{for(const _0x2dee8a of _0x2ed874){if(this[_0x4f29('0x2e')](_0x2dee8a,_0x40540d))_0x501cc1(_0x5abe11);else{const _0x4dc06c={};for(const _0x510abb of _0x28a86e){const _0x41482b=_0x2dee8a[_0x4f29('0x15')](_0x510abb);void 0x0!==_0x41482b&&(_0x4dc06c[_0x510abb]=_0x41482b);}_0x501cc1(_0x5abe11),_0x4f5227[_0x4f29('0x18')](_0x2dee8a,{'commandParams':[_0x4dc06c]},[],_0x40540d);}}});}[_0x4f29('0x2d')](_0x55b533,_0xc7138e,_0x36453b){const _0x478551=_0xc7138e[0x0]['start'][_0x4f29('0x24')],_0x1c8153=_0x36453b[_0x4f29('0x20')][0x0];this[_0x4f29('0x1d')][_0x4f29('0xb')][_0x4f29('0x28')](_0x5d5706=>{for(const _0x2c9e97 of _0x55b533)void 0x0!==_0x1c8153[_0x2c9e97]?_0x5d5706[_0x4f29('0x13')](_0x2c9e97,_0x1c8153[_0x2c9e97],_0x478551):_0x5d5706[_0x4f29('0x8')](_0x2c9e97,_0x478551);});}['handleSuggestionDescription'](_0x54302a){if(_0x54302a['data'])switch(_0x54302a['subType']){case _0x4f29('0x7'):return{'type':_0x4f29('0x31'),'content':_0x453e3e(this[_0x4f29('0x1d')][_0x4f29('0x2f')],_0x4f29('0x1c'))};case _0x4f29('0xa'):return{'type':_0x4f29('0x31'),'content':_0x453e3e(this[_0x4f29('0x1d')][_0x4f29('0x2f')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x4f29('0x2e')](_0x14e42c,_0x2506d4){const _0x396dd1=this[_0x4f29('0x1d')][_0x4f29('0x11')]['get'](_0x4f29('0x21'));for(const _0x5328c9 of _0x396dd1[_0x4f29('0x25')]({'skipNotAttached':!0x0})){const _0x46a3ec=_0x5328c9[_0x4f29('0x2a')]();if(_0x5328c9['subType']===_0x2506d4&&_0x46a3ec===_0x14e42c)return _0x5328c9;}return null;}}
23
+ const _0xf0b2=['_getSuggestion','tableCellProperties','commandParams','registerCustomCallback','document','*Format:*\x20change\x20table\x20cell\x20properties','afterInit','locale','handleDiscardAction','tableCellVerticalAlignment','setAttribute','tableCellPadding','enableCommand','data','nodeAfter','change','findAncestor','accept','tableWidth','subType','tableCellHeight','plugins','_descriptionFactory','tableBorderStyle','tableCellBorderWidth','*Format:*\x20change\x20table\x20properties','model','tableAlignment','has','tableCellBorderStyle','_handlePropertyChange','tableBackgroundColor','tableBorderWidth','getSuggestionCallback','tableProperties','discard','tableCellWidth','getContainedElement','TableUtils','TablePropertiesEditing','formatBlock','removeAttribute','editor','get','batch','pluginName','handleSuggestionDescription','_suggestionFactory','enqueueChange','selection','getFirstPosition','tableCellBackgroundColor','TrackChangesEditing','join','TrackChangesTableProperties','table'];(function(_0x32c8f7,_0xf0b233){const _0x4aadca=function(_0x546365){while(--_0x546365){_0x32c8f7['push'](_0x32c8f7['shift']());}};_0x4aadca(++_0xf0b233);}(_0xf0b2,0x139));const _0x4aad=function(_0x32c8f7,_0xf0b233){_0x32c8f7=_0x32c8f7-0x0;let _0x4aadca=_0xf0b2[_0x32c8f7];return _0x4aadca;};import{Plugin as _0x305669}from'ckeditor5/src/core';import{getTranslation as _0x678263}from'../utils/common-translations';export default class Ct extends _0x305669{constructor(_0x4f4fbd){super(_0x4f4fbd),this['tableProperties']=['tableBorderColor',_0x4aad('0x2e'),_0x4aad('0x37'),_0x4aad('0x32'),_0x4aad('0x29'),'tableHeight',_0x4aad('0x36')],this[_0x4aad('0x18')]=['tableCellBorderColor',_0x4aad('0x34'),_0x4aad('0x2f'),_0x4aad('0x22'),_0x4aad('0x3'),_0x4aad('0x2b'),_0x4aad('0x12'),'tableCellHorizontalAlignment',_0x4aad('0x20')];}static get[_0x4aad('0xc')](){return _0x4aad('0x15');}[_0x4aad('0x1d')](){const _0x430211=this[_0x4aad('0x9')][_0x4aad('0x2c')]['get'](_0x4aad('0x13'));if(this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0x33')](_0x4aad('0x6'))){for(const _0x59343a of this[_0x4aad('0x1')])_0x430211[_0x4aad('0x23')](_0x59343a,(_0x4d7d35,_0xfc0243)=>{const _0x5d0868=this[_0x4aad('0x9')][_0x4aad('0x31')][_0x4aad('0x1b')][_0x4aad('0x10')][_0x4aad('0x11')]()[_0x4aad('0x27')](_0x4aad('0x16'));this[_0x4aad('0x35')](_0x59343a,[_0x5d0868],this['tableProperties'],_0x4aad('0x1'),_0x4d7d35,_0xfc0243);});_0x430211['_suggestionFactory'][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x1'),_0x4aad('0x28'),_0x430211['_suggestionFactory'][_0x4aad('0x0')]('formatBlock',null,'discard')),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x1'),_0x4aad('0x2'),(_0x136f31,_0x34597b)=>this[_0x4aad('0x1f')](this[_0x4aad('0x1')],_0x136f31,_0x34597b)),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')]('formatBlock',_0x4aad('0x1'),_0x4aad('0x14'),()=>!0x1);}if(this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0x33')]('TableCellPropertiesEditing')){for(const _0x5f2646 of this['tableCellProperties'])_0x430211[_0x4aad('0x23')](_0x5f2646,(_0x10c7f7,_0xce761a)=>{const _0x55e792=this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0xa')](_0x4aad('0x5'))['getSelectionAffectedTableCells'](this['editor'][_0x4aad('0x31')][_0x4aad('0x1b')]['selection']);this[_0x4aad('0x35')](_0x5f2646,_0x55e792,this[_0x4aad('0x18')],_0x4aad('0x18'),_0x10c7f7,_0xce761a);});_0x430211['_suggestionFactory'][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x18'),'accept',_0x430211[_0x4aad('0xe')][_0x4aad('0x0')](_0x4aad('0x7'),null,_0x4aad('0x2'))),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')]('formatBlock',_0x4aad('0x18'),_0x4aad('0x2'),(_0x2df51f,_0x552f2b)=>this[_0x4aad('0x1f')](this[_0x4aad('0x18')],_0x2df51f,_0x552f2b)),_0x430211[_0x4aad('0xe')][_0x4aad('0x1a')](_0x4aad('0x7'),_0x4aad('0x18'),'join',()=>!0x1);}_0x430211[_0x4aad('0x2d')]['registerDescriptionCallback'](_0xa488a6=>this['handleSuggestionDescription'](_0xa488a6));}[_0x4aad('0x35')](_0x497d61,_0x3f06cd,_0x245f73,_0x4e474d,_0x189a76,_0x2e5d4f){const _0x29737f=this[_0x4aad('0x9')]['plugins'][_0x4aad('0xa')](_0x4aad('0x13'));this['editor'][_0x4aad('0x31')][_0x4aad('0xf')](_0x2e5d4f[_0x4aad('0xb')],()=>{for(const _0x5bebd2 of _0x3f06cd){if(this[_0x4aad('0x17')](_0x5bebd2,_0x4e474d))_0x189a76(_0x2e5d4f);else{const _0x355da2={};for(const _0x2344d9 of _0x245f73){const _0x29df9f=_0x5bebd2['getAttribute'](_0x2344d9);void 0x0!==_0x29df9f&&(_0x355da2[_0x2344d9]=_0x29df9f);}_0x189a76(_0x2e5d4f),_0x29737f['markBlockFormat'](_0x5bebd2,{'commandParams':[_0x355da2]},[],_0x4e474d);}}});}[_0x4aad('0x1f')](_0x169122,_0x555e8d,_0x38d78e){const _0x4911f3=_0x555e8d[0x0]['start'][_0x4aad('0x25')],_0x5dcf6d=_0x38d78e[_0x4aad('0x19')][0x0];this[_0x4aad('0x9')]['model'][_0x4aad('0x26')](_0x52fc80=>{for(const _0x99aac5 of _0x169122)void 0x0!==_0x5dcf6d[_0x99aac5]?_0x52fc80[_0x4aad('0x21')](_0x99aac5,_0x5dcf6d[_0x99aac5],_0x4911f3):_0x52fc80[_0x4aad('0x8')](_0x99aac5,_0x4911f3);});}[_0x4aad('0xd')](_0x1fe363){if(_0x1fe363[_0x4aad('0x24')])switch(_0x1fe363[_0x4aad('0x2a')]){case _0x4aad('0x1'):return{'type':'format','content':_0x678263(this[_0x4aad('0x9')][_0x4aad('0x1e')],_0x4aad('0x30'))};case _0x4aad('0x18'):return{'type':'format','content':_0x678263(this[_0x4aad('0x9')][_0x4aad('0x1e')],_0x4aad('0x1c'))};}}[_0x4aad('0x17')](_0x496426,_0x235484){const _0x28013d=this[_0x4aad('0x9')][_0x4aad('0x2c')][_0x4aad('0xa')](_0x4aad('0x13'));for(const _0x5242e8 of _0x28013d['getSuggestions']({'skipNotAttached':!0x0})){const _0xbeef78=_0x5242e8[_0x4aad('0x4')]();if(_0x5242e8[_0x4aad('0x2a')]===_0x235484&&_0xbeef78===_0x496426)return _0x5242e8;}return null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1adc=['afterInit','editor','TrackChangesEditing','plugins','get','Template'];(function(_0xc45a04,_0x1adc03){const _0x51f092=function(_0x41efd8){while(--_0x41efd8){_0xc45a04['push'](_0xc45a04['shift']());}};_0x51f092(++_0x1adc03);}(_0x1adc,0x97));const _0x51f0=function(_0xc45a04,_0x1adc03){_0xc45a04=_0xc45a04-0x0;let _0x51f092=_0x1adc[_0xc45a04];return _0x51f092;};import{Plugin as _0x45ebac}from'ckeditor5/src/core';export default class yt extends _0x45ebac{[_0x51f0('0x5')](){const _0x44c1e6=this[_0x51f0('0x0')];_0x44c1e6[_0x51f0('0x2')]['has'](_0x51f0('0x4'))&&_0x44c1e6['plugins'][_0x51f0('0x3')](_0x51f0('0x1'))['enableCommand']('insertTemplate');}}
23
+ const _0x4657=['TrackChangesEditing','has','editor','plugins','afterInit','Template','insertTemplate'];(function(_0x114d6a,_0x46573e){const _0x37d67b=function(_0x529d09){while(--_0x529d09){_0x114d6a['push'](_0x114d6a['shift']());}};_0x37d67b(++_0x46573e);}(_0x4657,0xac));const _0x37d6=function(_0x114d6a,_0x46573e){_0x114d6a=_0x114d6a-0x0;let _0x37d67b=_0x4657[_0x114d6a];return _0x37d67b;};import{Plugin as _0x26b39b}from'ckeditor5/src/core';export default class yt extends _0x26b39b{[_0x37d6('0x0')](){const _0x2f911f=this[_0x37d6('0x5')];_0x2f911f['plugins'][_0x37d6('0x4')](_0x37d6('0x1'))&&_0x2f911f[_0x37d6('0x6')]['get'](_0x37d6('0x3'))['enableCommand'](_0x37d6('0x2'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x375e=['title-content','isCollapsed','removeMarker','differ','isEqual','start','plugins','nodeBefore','from','locale','Title','getChangedMarkers','_descriptionFactory','TrackChangesEditing','has','getNearestSelectionRange','newRange','afterInit','model','document','end','ELEMENT_TITLE','updateMarker','element','get','editor','createRange','suggestion'];(function(_0x59f51a,_0x375e0b){const _0x1701b7=function(_0x26974d){while(--_0x26974d){_0x59f51a['push'](_0x59f51a['shift']());}};_0x1701b7(++_0x375e0b);}(_0x375e,0x1de));const _0x1701=function(_0x59f51a,_0x375e0b){_0x59f51a=_0x59f51a-0x0;let _0x1701b7=_0x375e[_0x59f51a];return _0x1701b7;};import{Plugin as _0x26b2e0}from'ckeditor5/src/core';import{getTranslation as _0x30334d}from'../utils/common-translations';export default class St extends _0x26b2e0{[_0x1701('0xf')](){const _0x4b9041=this[_0x1701('0x17')];if(!_0x4b9041['plugins'][_0x1701('0xc')](_0x1701('0x8')))return;const _0x1752e0=_0x4b9041[_0x1701('0x4')][_0x1701('0x16')](_0x1701('0xb'));_0x1752e0[_0x1701('0xa')]['registerElementLabel']('title-content',()=>_0x30334d(_0x4b9041[_0x1701('0x7')],_0x1701('0x13'))),_0x4b9041[_0x1701('0x10')][_0x1701('0x11')]['registerPostFixer'](_0x126219=>{let _0x4b1055=!0x1;const _0x2d8aba=Array[_0x1701('0x6')](_0x4b9041[_0x1701('0x10')][_0x1701('0x11')][_0x1701('0x1')][_0x1701('0x9')]());for(const {name:_0x16c1db,data:_0xeab9f2}of _0x2d8aba){const {group:_0x1517b0}=_0x1752e0['_splitMarkerName'](_0x16c1db);if(_0x1701('0x19')!==_0x1517b0||!_0xeab9f2['newRange'])continue;const _0x9b8314=_0xeab9f2[_0x1701('0xe')],_0x5c1537=_0x9b8314[_0x1701('0x12')][_0x1701('0x5')];if(!_0x5c1537||!_0x5c1537['is'](_0x1701('0x15'),_0x1701('0x1a')))continue;if(!_0x9b8314['start']['isTouching'](_0x9b8314[_0x1701('0x12')]))continue;const _0x17fe05=_0x4b9041[_0x1701('0x10')]['schema'][_0x1701('0xd')](_0x9b8314[_0x1701('0x12')],'forward');if(_0x17fe05&&_0x17fe05[_0x1701('0x1b')]){const _0x433320=_0x126219[_0x1701('0x18')](_0x9b8314[_0x1701('0x3')],_0x17fe05[_0x1701('0x3')]);_0x433320[_0x1701('0x2')](_0x9b8314)||(_0x126219[_0x1701('0x14')](_0x16c1db,{'range':_0x433320}),_0x4b1055=!0x0);}_0x4b1055||(_0x126219[_0x1701('0x0')](_0x16c1db),_0x4b1055=!0x0);}return _0x4b1055;});}}
23
+ const _0x3d87=['document','registerElementLabel','locale','forward','has','title-content','ELEMENT_TITLE','TrackChangesEditing','nodeBefore','removeMarker','isTouching','from','Title','registerPostFixer','_descriptionFactory','newRange','editor','isCollapsed','differ','end','isEqual','get','model','afterInit','element','suggestion','start','plugins'];(function(_0x3fcf64,_0x3d8708){const _0x56dcc=function(_0x4ebb49){while(--_0x4ebb49){_0x3fcf64['push'](_0x3fcf64['shift']());}};_0x56dcc(++_0x3d8708);}(_0x3d87,0x170));const _0x56dc=function(_0x3fcf64,_0x3d8708){_0x3fcf64=_0x3fcf64-0x0;let _0x56dcc=_0x3d87[_0x3fcf64];return _0x56dcc;};import{Plugin as _0x2fcf20}from'ckeditor5/src/core';import{getTranslation as _0x1d6015}from'../utils/common-translations';export default class St extends _0x2fcf20{[_0x56dc('0x13')](){const _0x2d262e=this[_0x56dc('0xc')];if(!_0x2d262e[_0x56dc('0x17')][_0x56dc('0x0')](_0x56dc('0x8')))return;const _0x4477fc=_0x2d262e[_0x56dc('0x17')][_0x56dc('0x11')](_0x56dc('0x3'));_0x4477fc[_0x56dc('0xa')][_0x56dc('0x19')](_0x56dc('0x1'),()=>_0x1d6015(_0x2d262e[_0x56dc('0x1a')],_0x56dc('0x2'))),_0x2d262e[_0x56dc('0x12')]['document'][_0x56dc('0x9')](_0x1504f8=>{let _0x2c8eb1=!0x1;const _0xaba6a0=Array[_0x56dc('0x7')](_0x2d262e[_0x56dc('0x12')][_0x56dc('0x18')][_0x56dc('0xe')]['getChangedMarkers']());for(const {name:_0x5a3525,data:_0x58f086}of _0xaba6a0){const {group:_0x591c84}=_0x4477fc['_splitMarkerName'](_0x5a3525);if(_0x56dc('0x15')!==_0x591c84||!_0x58f086['newRange'])continue;const _0x22e7cd=_0x58f086[_0x56dc('0xb')],_0x336648=_0x22e7cd[_0x56dc('0xf')][_0x56dc('0x4')];if(!_0x336648||!_0x336648['is'](_0x56dc('0x14'),_0x56dc('0x1')))continue;if(!_0x22e7cd[_0x56dc('0x16')][_0x56dc('0x6')](_0x22e7cd['end']))continue;const _0xdce3a8=_0x2d262e[_0x56dc('0x12')]['schema']['getNearestSelectionRange'](_0x22e7cd['end'],_0x56dc('0x1b'));if(_0xdce3a8&&_0xdce3a8[_0x56dc('0xd')]){const _0x37fba5=_0x1504f8['createRange'](_0x22e7cd['start'],_0xdce3a8['start']);_0x37fba5[_0x56dc('0x10')](_0x22e7cd)||(_0x1504f8['updateMarker'](_0x5a3525,{'range':_0x37fba5}),_0x2c8eb1=!0x0);}_0x2c8eb1||(_0x1504f8[_0x56dc('0x5')](_0x5a3525),_0x2c8eb1=!0x0);}return _0x2c8eb1;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x313f=['undo','redo','get','plugins','editor','enableCommand'];(function(_0x35e011,_0x313f21){const _0x47b6ea=function(_0x2ba9ff){while(--_0x2ba9ff){_0x35e011['push'](_0x35e011['shift']());}};_0x47b6ea(++_0x313f21);}(_0x313f,0x146));const _0x47b6=function(_0x35e011,_0x313f21){_0x35e011=_0x35e011-0x0;let _0x47b6ea=_0x313f[_0x35e011];return _0x47b6ea;};import{Plugin as _0x44babe}from'ckeditor5/src/core';export default class It extends _0x44babe{['afterInit'](){const _0x4521ea=this[_0x47b6('0x2')],_0x1bb8dc=_0x4521ea[_0x47b6('0x1')][_0x47b6('0x0')]('TrackChangesEditing');_0x4521ea[_0x47b6('0x1')]['has']('UndoEditing')&&(_0x1bb8dc[_0x47b6('0x3')](_0x47b6('0x4')),_0x1bb8dc['enableCommand'](_0x47b6('0x5')));}}
23
+ const _0x1ebd=['TrackChangesEditing','UndoEditing','editor','redo','plugins','afterInit','get','undo'];(function(_0x313d30,_0x1ebd47){const _0x24a89f=function(_0x2665d2){while(--_0x2665d2){_0x313d30['push'](_0x313d30['shift']());}};_0x24a89f(++_0x1ebd47);}(_0x1ebd,0x133));const _0x24a8=function(_0x313d30,_0x1ebd47){_0x313d30=_0x313d30-0x0;let _0x24a89f=_0x1ebd[_0x313d30];return _0x24a89f;};import{Plugin as _0x344ed2}from'ckeditor5/src/core';export default class It extends _0x344ed2{[_0x24a8('0x2')](){const _0x3000d5=this[_0x24a8('0x7')],_0x34e8b2=_0x3000d5['plugins'][_0x24a8('0x3')](_0x24a8('0x5'));_0x3000d5[_0x24a8('0x1')]['has'](_0x24a8('0x6'))&&(_0x34e8b2['enableCommand'](_0x24a8('0x4')),_0x34e8b2['enableCommand'](_0x24a8('0x0')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4289=['isAtEnd','test','markerName','markerRange','mapper','hasAttribute','element','ck-suggestion-marker-','includes','listItem','model','push','item','toViewPosition','isBlock','activeMarkers','plugins','getWalker','getCustomProperty','getAttribute','parent','bindElementToMarker','start','listIndent','writer','nextSibling','schema','getItems','isLimit','name','consumable','ck-suggestion-marker--active','createRangeOn','previousPosition','isContent'];(function(_0x34e364,_0x4289a4){const _0x66c2b=function(_0x38da51){while(--_0x38da51){_0x34e364['push'](_0x34e364['shift']());}};_0x66c2b(++_0x4289a4);}(_0x4289,0x142));const _0x66c2=function(_0x34e364,_0x4289a4){_0x34e364=_0x34e364-0x0;let _0x66c2b=_0x4289[_0x34e364];return _0x66c2b;};export function getRangesWithAttribute(_0x35fae0,_0x1db88d,_0x570ce4){const _0x544429=[];for(const _0x72f457 of _0x1db88d[_0x66c2('0x14')]())_0x72f457[_0x66c2('0x21')](_0x35fae0)&&_0x544429[_0x66c2('0x4')](_0x570ce4[_0x66c2('0x19')](_0x72f457));return _0x544429;}export function getElementsAffectedByListItemRename(_0x22bb69){const _0x3cdc3d=[];if(_0x22bb69['is'](_0x66c2('0x22'),'listItem')){let _0x133b7e=_0x22bb69['nextSibling'];for(;_0x133b7e&&_0x133b7e['is'](_0x66c2('0x22'),_0x66c2('0x2'))&&_0x133b7e[_0x66c2('0xc')](_0x66c2('0x10'))>0x0;)_0x3cdc3d[_0x66c2('0x4')](_0x133b7e),_0x133b7e=_0x133b7e['nextSibling'];}return _0x3cdc3d;}export function downcastSplitMergeMarker(_0xde3d26,_0x6d7bb5,{showActiveMarker:_0x4f01f4=!0x0}={}){const _0x389e05=_0xde3d26[_0x66c2('0x9')]['get']('TrackChangesEditing');return(_0xc36558,_0xf073ad,_0x534d7f)=>{if(!_0x534d7f[_0x66c2('0x17')][_0x66c2('0x1d')](_0xf073ad[_0x66c2('0x1f')],_0xc36558[_0x66c2('0x16')]))return;const _0x3720e1=_0xf073ad[_0x66c2('0x1f')][_0x66c2('0xa')](),_0x53a043=_0xf073ad[_0x66c2('0x1f')][_0x66c2('0xf')],_0x1714c9=_0xde3d26[_0x66c2('0x3')][_0x66c2('0x13')];let _0x1022ea=null,_0x22ce3e=null,_0x1b928b=!0x1,_0x3727c7=!0x1;for(const _0x28db81 of _0x3720e1){const _0x5eb45f=_0x28db81[_0x66c2('0x5')];_0x1b928b=_0x1b928b||_0x1714c9[_0x66c2('0x1b')](_0x5eb45f);const _0x302f61=_0x534d7f[_0x66c2('0x20')]['toViewElement'](_0x5eb45f);if(_0x302f61&&_0x302f61[_0x66c2('0xb')]('addHighlight'))return;'elementEnd'==_0x28db81['type']&&(_0x1714c9[_0x66c2('0x7')](_0x5eb45f)&&!_0x1714c9[_0x66c2('0x15')](_0x5eb45f)&&(_0x5eb45f[_0x66c2('0x12')]||_0x53a043[_0x66c2('0x1c')]?_0x1022ea&&_0x1022ea[_0x66c2('0xd')]==_0x5eb45f||(_0x1022ea=_0x5eb45f,_0x1fcd49(_0x28db81['previousPosition']),_0x3727c7=!0x0):_0x22ce3e=_0x22ce3e||_0x28db81[_0x66c2('0x1a')]));}function _0x1fcd49(_0x12a0a0){const _0x1f8e81=_0x534d7f[_0x66c2('0x11')]['createUIElement']('span',{'class':_0x66c2('0x0')+_0x6d7bb5}),_0x275890=_0x534d7f['mapper'][_0x66c2('0x6')](_0x12a0a0);_0x4f01f4&&_0x389e05[_0x66c2('0x8')][_0x66c2('0x1')](_0xf073ad['markerName'])&&_0x534d7f[_0x66c2('0x11')]['addClass'](_0x66c2('0x18'),_0x1f8e81),_0x534d7f['writer']['insert'](_0x275890,_0x1f8e81),_0x534d7f[_0x66c2('0x20')][_0x66c2('0xe')](_0x1f8e81,_0xf073ad[_0x66c2('0x1e')]);}_0x1b928b||_0x3727c7||!_0x22ce3e||_0x1fcd49(_0x22ce3e);};}
23
+ const _0x9f27=['listIndent','getItems','get','includes','isBlock','markerName','isAtEnd','start','ck-suggestion-marker--active','listItem','span','push','markerRange','nextSibling','item','getCustomProperty','parent','type','name','toViewElement','createUIElement','element','getAttribute','ck-suggestion-marker-','toViewPosition','model','consumable','getWalker','createRangeOn','elementEnd','test','mapper','TrackChangesEditing','isLimit','plugins','previousPosition','addHighlight','writer'];(function(_0x2d6408,_0x9f276d){const _0xcd7ee=function(_0x45c551){while(--_0x45c551){_0x2d6408['push'](_0x2d6408['shift']());}};_0xcd7ee(++_0x9f276d);}(_0x9f27,0x122));const _0xcd7e=function(_0x2d6408,_0x9f276d){_0x2d6408=_0x2d6408-0x0;let _0xcd7ee=_0x9f27[_0x2d6408];return _0xcd7ee;};export function getRangesWithAttribute(_0x528b30,_0xb1d76f,_0x3da9ac){const _0xa61494=[];for(const _0x5edac6 of _0xb1d76f[_0xcd7e('0xf')]())_0x5edac6['hasAttribute'](_0x528b30)&&_0xa61494['push'](_0x3da9ac[_0xcd7e('0x4')](_0x5edac6));return _0xa61494;}export function getElementsAffectedByListItemRename(_0x5c3d39){const _0x35a013=[];if(_0x5c3d39['is'](_0xcd7e('0x23'),_0xcd7e('0x17'))){let _0x2df31d=_0x5c3d39[_0xcd7e('0x1b')];for(;_0x2df31d&&_0x2df31d['is']('element',_0xcd7e('0x17'))&&_0x2df31d[_0xcd7e('0x24')](_0xcd7e('0xe'))>0x0;)_0x35a013[_0xcd7e('0x19')](_0x2df31d),_0x2df31d=_0x2df31d[_0xcd7e('0x1b')];}return _0x35a013;}export function downcastSplitMergeMarker(_0x360a8e,_0x5a4da7,{showActiveMarker:_0x17feea=!0x0}={}){const _0x2fcb06=_0x360a8e[_0xcd7e('0xa')][_0xcd7e('0x10')](_0xcd7e('0x8'));return(_0x1e24ff,_0x3d0d77,_0x58b914)=>{if(!_0x58b914[_0xcd7e('0x2')][_0xcd7e('0x6')](_0x3d0d77[_0xcd7e('0x1a')],_0x1e24ff[_0xcd7e('0x20')]))return;const _0x33e7a0=_0x3d0d77['markerRange'][_0xcd7e('0x3')](),_0x56a5ca=_0x3d0d77[_0xcd7e('0x1a')][_0xcd7e('0x15')],_0x387a13=_0x360a8e[_0xcd7e('0x1')]['schema'];let _0x4e443c=null,_0x472367=null,_0xb47ae9=!0x1,_0x43be66=!0x1;for(const _0x4d516e of _0x33e7a0){const _0x1c6712=_0x4d516e[_0xcd7e('0x1c')];_0xb47ae9=_0xb47ae9||_0x387a13['isContent'](_0x1c6712);const _0x111194=_0x58b914['mapper'][_0xcd7e('0x21')](_0x1c6712);if(_0x111194&&_0x111194[_0xcd7e('0x1d')](_0xcd7e('0xc')))return;_0xcd7e('0x5')==_0x4d516e[_0xcd7e('0x1f')]&&(_0x387a13[_0xcd7e('0x12')](_0x1c6712)&&!_0x387a13[_0xcd7e('0x9')](_0x1c6712)&&(_0x1c6712['nextSibling']||_0x56a5ca[_0xcd7e('0x14')]?_0x4e443c&&_0x4e443c[_0xcd7e('0x1e')]==_0x1c6712||(_0x4e443c=_0x1c6712,_0x1dc389(_0x4d516e[_0xcd7e('0xb')]),_0x43be66=!0x0):_0x472367=_0x472367||_0x4d516e[_0xcd7e('0xb')]));}function _0x1dc389(_0x2f894e){const _0x5defb3=_0x58b914[_0xcd7e('0xd')][_0xcd7e('0x22')](_0xcd7e('0x18'),{'class':_0xcd7e('0x25')+_0x5a4da7}),_0x4403f9=_0x58b914[_0xcd7e('0x7')][_0xcd7e('0x0')](_0x2f894e);_0x17feea&&_0x2fcb06['activeMarkers'][_0xcd7e('0x11')](_0x3d0d77[_0xcd7e('0x13')])&&_0x58b914[_0xcd7e('0xd')]['addClass'](_0xcd7e('0x16'),_0x5defb3),_0x58b914['writer']['insert'](_0x4403f9,_0x5defb3),_0x58b914[_0xcd7e('0x7')]['bindElementToMarker'](_0x5defb3,_0x3d0d77[_0xcd7e('0x13')]);}_0xb47ae9||_0x43be66||!_0x472367||_0x1dc389(_0x472367);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c06=['getRange','addMarker','subType','head','decorate','createdAt','setAttribute','_markerNames','removeAttribute','getItems','removeMarker','removeMarkers','markers','previous','clear','next','discard','length','getMarkers','substr','_onDiscard','getRanges','suggestion:','isMultiRange','accept','onDiscard','nodeBefore','isIntersecting','data','getMarkerNames','getFirstMarker','commentThread','start','set','creator','change','reduce','_onAccept','hasComments','get','authoredAt','filter','from','size','getAllAdjacentSuggestions','type','end','getMultiRangeId','onAttributesChange','addRange','_saved','push','add','isIntersectingWithRange','_onAttributesChange','author','delete','_model','addMarkerName','isInContent','isExternal','nodeAfter','@external','attributes'];(function(_0x2aca96,_0x1c063d){const _0x53ca83=function(_0x30951d){while(--_0x30951d){_0x2aca96['push'](_0x2aca96['shift']());}};_0x53ca83(++_0x1c063d);}(_0x1c06,0x117));const _0x53ca=function(_0x2aca96,_0x1c063d){_0x2aca96=_0x2aca96-0x0;let _0x53ca83=_0x1c06[_0x2aca96];return _0x53ca83;};import{Element as _0x47430e}from'ckeditor5/src/engine';import{ObservableMixin as _0x361ecc,uid as _0x38a428}from'ckeditor5/src/utils';import{cloneDeep as _0x4a2893,isEqual as _0x4c63b5,set as _0x2a11a3,unset as _0xaf0b80}from'lodash-es';export default class u extends _0x361ecc(){constructor(_0x59b1f0,_0x1883b6){super(),this['id']=_0x1883b6['id'],this[_0x53ca('0x16')]=_0x1883b6[_0x53ca('0x16')],this[_0x53ca('0x2b')]=_0x1883b6[_0x53ca('0x2b')]||null,this[_0x53ca('0x20')]=_0x1883b6[_0x53ca('0x20')],this['creator']=_0x1883b6[_0x53ca('0xb')]||_0x1883b6[_0x53ca('0x20')],this[_0x53ca('0x25')]=Boolean(_0x1883b6['attributes']&&_0x1883b6[_0x53ca('0x28')][_0x53ca('0x27')]),this[_0x53ca('0x5')]=null,this[_0x53ca('0x22')]=_0x59b1f0,this[_0x53ca('0xe')]=_0x1883b6['onAccept'],this[_0x53ca('0x3d')]=_0x1883b6[_0x53ca('0x2')],this[_0x53ca('0x1f')]=_0x1883b6[_0x53ca('0x19')],this[_0x53ca('0x30')]=new Set(),this[_0x53ca('0x2e')]=null,this['set'](_0x53ca('0x11'),null),this[_0x53ca('0xa')](_0x53ca('0x28'),_0x1883b6[_0x53ca('0x28')]||{}),this[_0x53ca('0xa')](_0x53ca('0x36'),null),this[_0x53ca('0xa')](_0x53ca('0x38'),null),this[_0x53ca('0xa')](_0x53ca('0x8'),null),this[_0x53ca('0xa')](_0x53ca('0x1b'),!0x1),this[_0x53ca('0x2d')](_0x53ca('0x1')),this[_0x53ca('0x2d')](_0x53ca('0x39'));}get[_0x53ca('0x2c')](){let _0x1c2396=this;for(;_0x1c2396[_0x53ca('0x36')];)_0x1c2396=_0x1c2396[_0x53ca('0x36')];return _0x1c2396;}get[_0x53ca('0xf')](){return!!this[_0x53ca('0x8')]&&this[_0x53ca('0x8')][_0x53ca('0x3a')]>0x0;}get[_0x53ca('0x0')](){if(0x0==this[_0x53ca('0x30')][_0x53ca('0x14')])return!0x1;return 0x6==Array['from'](this[_0x53ca('0x30')])[0x0]['split'](':')[_0x53ca('0x3a')];}get[_0x53ca('0x24')](){return null!==this[_0x53ca('0x7')]();}[_0x53ca('0x23')](_0x22ea62){this['_markerNames'][_0x53ca('0x1d')](_0x22ea62);}['getMarkerNames'](){return Array[_0x53ca('0x13')](this[_0x53ca('0x30')]);}['getMarkers'](){return this[_0x53ca('0x6')]()['map'](_0x42b9c8=>this[_0x53ca('0x22')][_0x53ca('0x35')][_0x53ca('0x10')](_0x42b9c8))[_0x53ca('0x12')](_0x283c33=>_0x283c33);}[_0x53ca('0x7')](){return this[_0x53ca('0x3b')]()[0x0]||null;}['removeMarkers'](){this[_0x53ca('0x22')][_0x53ca('0xc')](_0x3f7102=>{for(const _0x30e042 of this[_0x53ca('0x3b')]())_0x3f7102[_0x53ca('0x33')](_0x30e042);}),this[_0x53ca('0x30')][_0x53ca('0x37')]();}[_0x53ca('0x33')](_0x20c8b0){this[_0x53ca('0x22')][_0x53ca('0xc')](_0xf970a9=>{_0xf970a9[_0x53ca('0x33')](_0x20c8b0);}),this[_0x53ca('0x30')][_0x53ca('0x21')](_0x20c8b0);}[_0x53ca('0x1a')](_0x4d271d){const _0x356533=_0x53ca('0x3f')+this[_0x53ca('0x16')]+':'+this['subType']+':'+this['id']+':'+this[_0x53ca('0xb')]['id']+':'+u[_0x53ca('0x18')]();this[_0x53ca('0x23')](_0x356533),this[_0x53ca('0x22')][_0x53ca('0xc')](_0x31e20e=>{_0x31e20e[_0x53ca('0x2a')](_0x356533,{'range':_0x4d271d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x53ca('0x1e')](_0x29b616){for(const _0x5de822 of this[_0x53ca('0x3e')]())if(_0x5de822[_0x53ca('0x4')](_0x29b616))return!0x0;return!0x1;}[_0x53ca('0x3e')](){return this['getMarkers']()['map'](_0x54078a=>_0x54078a[_0x53ca('0x29')]());}[_0x53ca('0x32')](){return this[_0x53ca('0x3e')]()[_0x53ca('0xd')]((_0x42a4ab,_0x551c0d)=>[..._0x42a4ab,..._0x551c0d[_0x53ca('0x32')]()],[]);}['getFirstRange'](){var _0xaa54e2;return(null===(_0xaa54e2=this[_0x53ca('0x7')]())||void 0x0===_0xaa54e2?void 0x0:_0xaa54e2[_0x53ca('0x29')]())||null;}['getContainedElement'](){const _0x2420be=this[_0x53ca('0x3e')]();if(0x1!=_0x2420be[_0x53ca('0x3a')])return null;const _0x3af658=_0x2420be[0x0],_0x14cbf4=_0x3af658[_0x53ca('0x9')][_0x53ca('0x26')],_0x33e57f=_0x3af658[_0x53ca('0x17')][_0x53ca('0x3')];return _0x14cbf4 instanceof _0x47430e?_0x14cbf4!=_0x33e57f?null:_0x14cbf4:null;}[_0x53ca('0x1')](){this[_0x53ca('0xe')](this['getRanges'](),this[_0x53ca('0x5')],this[_0x53ca('0x28')]),this['removeMarkers']();}['discard'](){this[_0x53ca('0x3d')](this[_0x53ca('0x3e')](),this[_0x53ca('0x5')],this['attributes']),this[_0x53ca('0x34')]();}[_0x53ca('0x15')](){const _0x11688f=[];let _0x4974ec=this[_0x53ca('0x2c')];for(;_0x4974ec;)_0x11688f[_0x53ca('0x1c')](_0x4974ec),_0x4974ec=_0x4974ec[_0x53ca('0x38')];return _0x11688f;}[_0x53ca('0x2f')](_0xaf0ab1,_0x55da48){const _0x276e62=_0x4a2893(this['attributes']);_0x2a11a3(_0x276e62,_0xaf0ab1,_0x55da48),_0x4c63b5(_0x276e62,this['attributes'])||(this[_0x53ca('0x28')]=_0x276e62,this[_0x53ca('0x1f')](_0x276e62));}[_0x53ca('0x31')](_0x1b00a0){const _0x32e940=_0x4a2893(this[_0x53ca('0x28')]);_0xaf0b80(_0x32e940,_0x1b00a0),_0x4c63b5(_0x32e940,this[_0x53ca('0x28')])||(this[_0x53ca('0x28')]=_0x32e940,this[_0x53ca('0x1f')](this[_0x53ca('0x28')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x53ca('0x2b')]?this['type']+':'+this[_0x53ca('0x2b')]:this[_0x53ca('0x16')],'authorId':this[_0x53ca('0xb')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x53ca('0x28')]};}static[_0x53ca('0x18')](){return _0x38a428()[_0x53ca('0x3c')](0x1,0x5);}}
23
+ const _0x25f9=['author','nodeAfter','get','_markerNames','createdAt','authoredAt','attributes','toJSON','hasComments','getMarkers','next','length','getRange','creator','commentThread','map','onAttributesChange','previous','discard','getContainedElement','end','set','_isDataLoaded','onDiscard','split','head','delete','getItems','addMarkerName','isIntersecting','_saved','reduce','addRange','getMultiRangeId','data','_model','setAttribute','add','isExternal','change','from','nodeBefore','removeAttribute','substr','decorate','getFirstMarker','type','accept','_onAccept','removeMarker','getMarkerNames','clear','subType','isIntersectingWithRange','size','getAllAdjacentSuggestions','markers','@external','removeMarkers','_onDiscard','filter','_onAttributesChange','getRanges'];(function(_0x3d4d1d,_0x25f9dd){const _0x2bafac=function(_0xbb8e1c){while(--_0xbb8e1c){_0x3d4d1d['push'](_0x3d4d1d['shift']());}};_0x2bafac(++_0x25f9dd);}(_0x25f9,0x165));const _0x2baf=function(_0x3d4d1d,_0x25f9dd){_0x3d4d1d=_0x3d4d1d-0x0;let _0x2bafac=_0x25f9[_0x3d4d1d];return _0x2bafac;};import{Element as _0x194ccb}from'ckeditor5/src/engine';import{ObservableMixin as _0x411fc0,uid as _0xd8f5c4}from'ckeditor5/src/utils';import{cloneDeep as _0x2c855c,isEqual as _0x59a9e2,set as _0x547294,unset as _0x3164c1}from'lodash-es';export default class u extends _0x411fc0(){constructor(_0x4a9210,_0x19e273){super(),this[_0x2baf('0x2b')]=!0x1,this['id']=_0x19e273['id'],this[_0x2baf('0x4')]=_0x19e273[_0x2baf('0x4')],this['subType']=_0x19e273[_0x2baf('0xa')]||null,this[_0x2baf('0x15')]=_0x19e273[_0x2baf('0x15')],this['creator']=_0x19e273[_0x2baf('0x22')]||_0x19e273['author'],this[_0x2baf('0x3b')]=Boolean(_0x19e273[_0x2baf('0x1b')]&&_0x19e273[_0x2baf('0x1b')][_0x2baf('0xf')]),this[_0x2baf('0x37')]=null,this[_0x2baf('0x38')]=_0x4a9210,this[_0x2baf('0x6')]=_0x19e273['onAccept'],this[_0x2baf('0x11')]=_0x19e273[_0x2baf('0x2c')],this[_0x2baf('0x13')]=_0x19e273[_0x2baf('0x25')],this[_0x2baf('0x18')]=new Set(),this[_0x2baf('0x19')]=null,this[_0x2baf('0x2a')](_0x2baf('0x1a'),null),this[_0x2baf('0x2a')]('attributes',_0x19e273[_0x2baf('0x1b')]||{}),this[_0x2baf('0x2a')]('previous',null),this[_0x2baf('0x2a')](_0x2baf('0x1f'),null),this[_0x2baf('0x2a')](_0x2baf('0x23'),null),this['set'](_0x2baf('0x33'),!0x1),this[_0x2baf('0x2')](_0x2baf('0x5')),this[_0x2baf('0x2')](_0x2baf('0x27'));}get[_0x2baf('0x2e')](){let _0x979603=this;for(;_0x979603[_0x2baf('0x26')];)_0x979603=_0x979603[_0x2baf('0x26')];return _0x979603;}get[_0x2baf('0x1d')](){return!!this[_0x2baf('0x23')]&&this[_0x2baf('0x23')][_0x2baf('0x20')]>0x0;}get['isMultiRange'](){if(0x0==this[_0x2baf('0x18')][_0x2baf('0xc')])return!0x1;return 0x6==Array['from'](this[_0x2baf('0x18')])[0x0][_0x2baf('0x2d')](':')[_0x2baf('0x20')];}get['isInContent'](){return null!==this['getFirstMarker']();}[_0x2baf('0x31')](_0x3b2c78){this[_0x2baf('0x18')][_0x2baf('0x3a')](_0x3b2c78);}[_0x2baf('0x8')](){return Array[_0x2baf('0x3d')](this[_0x2baf('0x18')]);}['getMarkers'](){return this[_0x2baf('0x8')]()[_0x2baf('0x24')](_0x5e4dda=>this[_0x2baf('0x38')][_0x2baf('0xe')][_0x2baf('0x17')](_0x5e4dda))[_0x2baf('0x12')](_0xe1c696=>_0xe1c696);}[_0x2baf('0x3')](){return this[_0x2baf('0x1e')]()[0x0]||null;}[_0x2baf('0x10')](){this[_0x2baf('0x38')][_0x2baf('0x3c')](_0x178c42=>{for(const _0x4716f4 of this['getMarkers']())_0x178c42[_0x2baf('0x7')](_0x4716f4);}),this[_0x2baf('0x18')][_0x2baf('0x9')]();}[_0x2baf('0x7')](_0x5437ea){this[_0x2baf('0x38')][_0x2baf('0x3c')](_0x10e6dd=>{_0x10e6dd[_0x2baf('0x7')](_0x5437ea);}),this[_0x2baf('0x18')][_0x2baf('0x2f')](_0x5437ea);}[_0x2baf('0x35')](_0xf401e7){const _0x39c097='suggestion:'+this[_0x2baf('0x4')]+':'+this['subType']+':'+this['id']+':'+this[_0x2baf('0x22')]['id']+':'+u[_0x2baf('0x36')]();this[_0x2baf('0x31')](_0x39c097),this['_model'][_0x2baf('0x3c')](_0x2aae07=>{_0x2aae07['addMarker'](_0x39c097,{'range':_0xf401e7,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2baf('0xb')](_0x29f23a){for(const _0x1bbbf2 of this[_0x2baf('0x14')]())if(_0x1bbbf2[_0x2baf('0x32')](_0x29f23a))return!0x0;return!0x1;}[_0x2baf('0x14')](){return this[_0x2baf('0x1e')]()[_0x2baf('0x24')](_0x47504d=>_0x47504d[_0x2baf('0x21')]());}[_0x2baf('0x30')](){return this[_0x2baf('0x14')]()[_0x2baf('0x34')]((_0x4f2ae9,_0xf4ba7f)=>[..._0x4f2ae9,..._0xf4ba7f[_0x2baf('0x30')]()],[]);}['getFirstRange'](){var _0x5ba773;return(null===(_0x5ba773=this['getFirstMarker']())||void 0x0===_0x5ba773?void 0x0:_0x5ba773[_0x2baf('0x21')]())||null;}[_0x2baf('0x28')](){const _0x3d5eee=this[_0x2baf('0x14')]();if(0x1!=_0x3d5eee[_0x2baf('0x20')])return null;const _0x1615e4=_0x3d5eee[0x0],_0x39c5d0=_0x1615e4['start'][_0x2baf('0x16')],_0x567d71=_0x1615e4[_0x2baf('0x29')][_0x2baf('0x3e')];return _0x39c5d0 instanceof _0x194ccb?_0x39c5d0!=_0x567d71?null:_0x39c5d0:null;}['accept'](){this[_0x2baf('0x6')](this['getRanges'](),this[_0x2baf('0x37')],this[_0x2baf('0x1b')]),this['removeMarkers']();}[_0x2baf('0x27')](){this['_onDiscard'](this[_0x2baf('0x14')](),this['data'],this[_0x2baf('0x1b')]),this['removeMarkers']();}[_0x2baf('0xd')](){const _0x13f31c=[];let _0x428e13=this[_0x2baf('0x2e')];for(;_0x428e13;)_0x13f31c['push'](_0x428e13),_0x428e13=_0x428e13[_0x2baf('0x1f')];return _0x13f31c;}[_0x2baf('0x39')](_0x5944aa,_0xcfdb20){const _0x3bbaf6=_0x2c855c(this['attributes']);_0x547294(_0x3bbaf6,_0x5944aa,_0xcfdb20),_0x59a9e2(_0x3bbaf6,this[_0x2baf('0x1b')])||(this[_0x2baf('0x1b')]=_0x3bbaf6,this['_onAttributesChange'](_0x3bbaf6));}[_0x2baf('0x0')](_0x33f811){const _0x309a9e=_0x2c855c(this['attributes']);_0x3164c1(_0x309a9e,_0x33f811),_0x59a9e2(_0x309a9e,this[_0x2baf('0x1b')])||(this[_0x2baf('0x1b')]=_0x309a9e,this[_0x2baf('0x13')](this['attributes']));}[_0x2baf('0x1c')](){return{'id':this['id'],'type':this[_0x2baf('0xa')]?this[_0x2baf('0x4')]+':'+this[_0x2baf('0xa')]:this[_0x2baf('0x4')],'authorId':this[_0x2baf('0x22')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x2baf('0x1d')],'data':this[_0x2baf('0x37')],'attributes':this['attributes']};}static[_0x2baf('0x36')](){return _0xd8f5c4()[_0x2baf('0x1')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13eb=['softBreak','getFirstRange','addObject','insertion','quantity','checkChild','type','REPLACE_TEXT','matchingCallback','getDescriptions','Container','data','_customCallbacks','skip','_itemLabels','pop','_locale','text','removeContainer','EmptyContainer','remove','isEqual','normal','end','indexOf','replace','get','push','element','$textProxy','$text','item','elementEnd','_schema','function','match','removeObject','start','_itemLabelsCallbacks','nextSibling','elementStart','isEmpty','getItemLabel','set','getWalker','_addDescriptionItems','name','_resolveDescriptionItems','removeEmptyContainer','deletion','isObject','*Insert:*\x20%0','add','label','addContainer','$1\x20$2','addEmptyContainer','previousSibling','length','*Remove:*\x20%0'];(function(_0x1b4d6b,_0x13eb70){const _0x22b95b=function(_0x2b8908){while(--_0x2b8908){_0x1b4d6b['push'](_0x1b4d6b['shift']());}};_0x22b95b(++_0x13eb70);}(_0x13eb,0xd6));const _0x22b9=function(_0x1b4d6b,_0x13eb70){_0x1b4d6b=_0x1b4d6b-0x0;let _0x22b95b=_0x13eb[_0x1b4d6b];return _0x22b95b;};import{getTranslation as _0xc80be1}from'./utils/common-translations';import{priorities as _0x172f6c,insertToPriorityArray as _0x29964d}from'ckeditor5/src/utils';export default class m{constructor(_0x176283,_0x201fd4){this['_customCallbacks']=[],this[_0x22b9('0x28')]=new Map(),this[_0x22b9('0x4')]=[],this['_schema']=_0x176283,this[_0x22b9('0x2a')]=_0x201fd4;}[_0x22b9('0x23')](_0x2be0d5){const _0x5842cf=[];for(let _0x425d46=0x0;_0x425d46<_0x2be0d5[_0x22b9('0x18')];_0x425d46++){const _0xc9757d=_0x2be0d5[_0x425d46];if(!_0xc9757d['isInContent'])continue;let _0x2b4c91=!0x1;for(const _0x58e059 of this[_0x22b9('0x26')]){const _0x4d8fa9=_0x58e059(_0xc9757d);if(_0x4d8fa9){'type'in _0x4d8fa9&&_0x5842cf[_0x22b9('0x35')](_0x4d8fa9),_0x2b4c91=!0x0;break;}}if(!_0x2b4c91){this[_0x22b9('0xb')](_0x5842cf,_0xc9757d);const _0x324a37=_0x2be0d5[_0x425d46+0x1];if(_0x324a37&&!_0xc9757d[_0x22b9('0x1b')]()[_0x22b9('0x31')][_0x22b9('0x2f')](_0x324a37[_0x22b9('0x1b')]()[_0x22b9('0x3')])){const _0x1a1214=_0x5842cf[_0x5842cf[_0x22b9('0x18')]-0x1],_0x2337f6=_0x22b9('0x1d')==_0xc9757d[_0x22b9('0x20')]?_0x22b9('0x12'):'remove';_0x1a1214&&'text'==_0x1a1214[_0x22b9('0x20')]&&(_0x1a1214[_0x2337f6]+='\x0a');}}}return this[_0x22b9('0xd')](_0x5842cf);}['registerDescriptionCallback'](_0x1a2e13){this[_0x22b9('0x26')][_0x22b9('0x35')](_0x1a2e13);}['registerElementLabel'](_0x119c31,_0x16039d,_0x66c711=_0x172f6c[_0x22b9('0x30')]){_0x22b9('0x0')==typeof _0x119c31?_0x29964d(this[_0x22b9('0x4')],{'matchingCallback':_0x119c31,'label':_0x16039d,'priority':_0x66c711}):this[_0x22b9('0x28')][_0x22b9('0x9')](_0x119c31,_0x16039d);}[_0x22b9('0x8')](_0x123cb9,_0x5e481a=0x1){let _0x5413e4;for(const _0x54577a of this[_0x22b9('0x4')])if(_0x54577a[_0x22b9('0x22')](_0x123cb9)){_0x5413e4=_0x54577a[_0x22b9('0x13')];break;}return _0x5413e4||(_0x5413e4=this[_0x22b9('0x28')][_0x22b9('0x34')](_0x123cb9[_0x22b9('0xc')])),_0x5413e4?_0x5413e4(_0x5e481a):0x1!==_0x5e481a?_0x5e481a+'\x20'+_0x123cb9[_0x22b9('0xc')]+'s':''+_0x123cb9[_0x22b9('0xc')];}[_0x22b9('0xb')](_0x312f2d,_0x5302fd){const _0x2df4d8=_0x5302fd[_0x22b9('0x1b')]()[_0x22b9('0xa')](),_0x332a12='insertion'==_0x5302fd[_0x22b9('0x20')]?_0x22b9('0x12'):'remove';for(const _0x4df153 of _0x2df4d8){const _0x2257b1=_0x4df153[_0x22b9('0x39')],_0x293c36=_0x312f2d[_0x312f2d[_0x22b9('0x18')]-0x1];if(_0x2257b1['is'](_0x22b9('0x37')))_0x293c36&&_0x293c36[_0x22b9('0x20')][_0x22b9('0x32')](_0x22b9('0x24'))>-0x1&&_0x312f2d[_0x22b9('0x29')](),_0x293c36&&'text'==_0x293c36['type']?_0x293c36[_0x332a12]+=_0x2257b1['data']:_0x312f2d[_0x22b9('0x35')]({'type':'text','add':_0x22b9('0x12')==_0x332a12?_0x2257b1[_0x22b9('0x25')]:'','remove':_0x22b9('0x2e')==_0x332a12?_0x2257b1[_0x22b9('0x25')]:''});else{if(this['_schema'][_0x22b9('0x10')](_0x2257b1)){const _0x14ca36=_0x2257b1;if(_0x293c36&&_0x293c36[_0x22b9('0x20')]['indexOf'](_0x22b9('0x24'))>-0x1&&_0x312f2d[_0x22b9('0x29')](),'elementEnd'==_0x4df153[_0x22b9('0x20')])continue;_0x293c36&&_0x293c36[_0x22b9('0x20')]==_0x332a12+'Object'&&_0x293c36['element'][_0x22b9('0xc')]==_0x14ca36[_0x22b9('0xc')]?_0x293c36['quantity']++:_0x312f2d[_0x22b9('0x35')]({'type':_0x332a12+'Object','element':_0x14ca36,'quantity':0x1}),_0x2df4d8[_0x22b9('0x27')](_0x5318a6=>!(_0x22b9('0x3a')==_0x5318a6[_0x22b9('0x20')]&&_0x5318a6[_0x22b9('0x39')]==_0x2257b1));}else{if(this[_0x22b9('0x3b')][_0x22b9('0x1f')](_0x2257b1,_0x22b9('0x38'))||_0x2257b1['is']('element',_0x22b9('0x1a'))){const _0x112aa3=_0x2257b1;if(_0x22b9('0x12')==_0x332a12&&_0x22b9('0x6')==_0x4df153['type']||_0x22b9('0x2e')==_0x332a12&&_0x22b9('0x3a')==_0x4df153[_0x22b9('0x20')])continue;if(_0x293c36&&-0x1==_0x293c36[_0x22b9('0x20')]['indexOf'](_0x22b9('0x24'))){_0x22b9('0x2b')==_0x293c36[_0x22b9('0x20')]&&(_0x293c36[_0x332a12]+='\x0a');continue;}let _0x1b6238;if(_0x1b6238=_0x22b9('0x12')==_0x332a12?_0x112aa3['nextSibling']&&!this[_0x22b9('0x3b')][_0x22b9('0x10')](_0x112aa3[_0x22b9('0x5')])?_0x112aa3[_0x22b9('0x5')]:null:_0x112aa3['previousSibling']&&!this[_0x22b9('0x3b')][_0x22b9('0x10')](_0x112aa3[_0x22b9('0x17')])?_0x112aa3[_0x22b9('0x17')]:null,_0x112aa3[_0x22b9('0x7')]||_0x1b6238&&_0x1b6238[_0x22b9('0x7')]){const _0x1bfb37=_0x1b6238&&_0x1b6238[_0x22b9('0x7')]?_0x1b6238:_0x112aa3;_0x293c36&&_0x293c36['type']==_0x332a12+_0x22b9('0x2d')&&_0x293c36[_0x22b9('0x36')][_0x22b9('0xc')]==_0x1bfb37[_0x22b9('0xc')]?_0x293c36['quantity']++:_0x312f2d[_0x22b9('0x35')]({'type':_0x332a12+_0x22b9('0x2d'),'element':_0x1bfb37,'quantity':0x1});}else _0x312f2d[_0x22b9('0x35')]({'type':_0x332a12+'Container','element':_0x112aa3});}}}}}[_0x22b9('0xd')](_0x161390){const _0x449c0d=this[_0x22b9('0x2a')],_0x5ce354=[];for(const _0x2f8b70 of _0x161390){switch(_0x2f8b70['type']){case _0x22b9('0x2b'):if(_0x2f8b70[_0x22b9('0x12')]=_0x2f8b70['add'][_0x22b9('0x33')](/(\S)\u000A+(\S)/g,_0x22b9('0x15'))[_0x22b9('0x33')](/\u000A/g,''),_0x2f8b70[_0x22b9('0x2e')]=_0x2f8b70[_0x22b9('0x2e')]['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x22b9('0x33')](/\u000A/g,''),''!=_0x2f8b70[_0x22b9('0x12')]&&''!=_0x2f8b70[_0x22b9('0x2e')]){_0x5ce354[_0x22b9('0x35')]({'type':'replace','content':_0xc80be1(_0x449c0d,_0x22b9('0x21'),['\x22'+_0x2f8b70['remove']+'\x22','\x22'+_0x2f8b70[_0x22b9('0x12')]+'\x22'])});continue;}if(null!=_0x2f8b70[_0x22b9('0x12')][_0x22b9('0x1')](/^ +$/)){_0x5ce354['push']({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,_0x22b9('0x11'),_0xc80be1(_0x449c0d,'ELEMENT_SPACE',_0x2f8b70['add'][_0x22b9('0x18')]))});continue;}if(null!=_0x2f8b70[_0x22b9('0x2e')]['match'](/^ +$/)){_0x5ce354['push']({'type':_0x22b9('0xf'),'content':_0xc80be1(_0x449c0d,_0x22b9('0x19'),_0xc80be1(_0x449c0d,'ELEMENT_SPACE',_0x2f8b70[_0x22b9('0x2e')]['length']))});continue;}if(''!=_0x2f8b70['add']){_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,'*Insert:*\x20%0','\x22'+_0x2f8b70[_0x22b9('0x12')]+'\x22')});continue;}_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0xf'),'content':_0xc80be1(_0x449c0d,'*Remove:*\x20%0','\x22'+_0x2f8b70['remove']+'\x22')});continue;case _0x22b9('0x16'):case _0x22b9('0x1c'):_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,_0x22b9('0x11'),this['getItemLabel'](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;case _0x22b9('0xe'):case _0x22b9('0x2'):_0x5ce354[_0x22b9('0x35')]({'type':_0x22b9('0xf'),'content':_0xc80be1(_0x449c0d,'*Remove:*\x20%0',this[_0x22b9('0x8')](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;case _0x22b9('0x14'):_0x5ce354['push']({'type':_0x22b9('0x1d'),'content':_0xc80be1(_0x449c0d,'*Split:*\x20%0',this[_0x22b9('0x8')](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;case _0x22b9('0x2c'):_0x5ce354[_0x22b9('0x35')]({'type':'deletion','content':_0xc80be1(_0x449c0d,'*Merge:*\x20%0',this[_0x22b9('0x8')](_0x2f8b70[_0x22b9('0x36')],_0x2f8b70[_0x22b9('0x1e')]))});continue;}_0x5ce354[_0x22b9('0x35')](_0x2f8b70);}return _0x5ce354;}}
23
+ const _0x3ba2=['previousSibling','registerDescriptionCallback','pop','quantity','Object','add','push','function','_resolveDescriptionItems','_itemLabelsCallbacks','$1\x20$2','text','getFirstRange','Container','*Merge:*\x20%0','replace','deletion','isEqual','addEmptyContainer','removeEmptyContainer','_schema','type','data','checkChild','name','remove','matchingCallback','_itemLabels','nextSibling','addContainer','isEmpty','elementEnd','_addDescriptionItems','insertion','isInContent','_customCallbacks','label','normal','getItemLabel','registerElementLabel','get','softBreak','isObject','elementStart','*Insert:*\x20%0','EmptyContainer','length','*Remove:*\x20%0','end','*Split:*\x20%0','start','ELEMENT_SPACE','match','indexOf','element','_locale'];(function(_0x3fcb39,_0x3ba227){const _0x322b00=function(_0x4a9913){while(--_0x4a9913){_0x3fcb39['push'](_0x3fcb39['shift']());}};_0x322b00(++_0x3ba227);}(_0x3ba2,0x170));const _0x322b=function(_0x3fcb39,_0x3ba227){_0x3fcb39=_0x3fcb39-0x0;let _0x322b00=_0x3ba2[_0x3fcb39];return _0x322b00;};import{getTranslation as _0x3b225d}from'./utils/common-translations';import{priorities as _0x51e3da,insertToPriorityArray as _0x50678a}from'ckeditor5/src/utils';export default class m{constructor(_0x4f182a,_0x47632d){this[_0x322b('0x3')]=[],this[_0x322b('0x33')]=new Map(),this['_itemLabelsCallbacks']=[],this[_0x322b('0x2c')]=_0x4f182a,this[_0x322b('0x17')]=_0x47632d;}['getDescriptions'](_0x36f7e1){const _0x4829e2=[];for(let _0x183e96=0x0;_0x183e96<_0x36f7e1[_0x322b('0xe')];_0x183e96++){const _0x31deb3=_0x36f7e1[_0x183e96];if(!_0x31deb3[_0x322b('0x2')])continue;let _0x1ded54=!0x1;for(const _0x83374a of this[_0x322b('0x3')]){const _0x57159c=_0x83374a(_0x31deb3);if(_0x57159c){_0x322b('0x2d')in _0x57159c&&_0x4829e2[_0x322b('0x1e')](_0x57159c),_0x1ded54=!0x0;break;}}if(!_0x1ded54){this[_0x322b('0x0')](_0x4829e2,_0x31deb3);const _0x5cdc17=_0x36f7e1[_0x183e96+0x1];if(_0x5cdc17&&!_0x31deb3[_0x322b('0x24')]()[_0x322b('0x10')][_0x322b('0x29')](_0x5cdc17[_0x322b('0x24')]()[_0x322b('0x12')])){const _0x465a8e=_0x4829e2[_0x4829e2['length']-0x1],_0x8d2766=_0x322b('0x1')==_0x31deb3['type']?_0x322b('0x1d'):'remove';_0x465a8e&&_0x322b('0x23')==_0x465a8e[_0x322b('0x2d')]&&(_0x465a8e[_0x8d2766]+='\x0a');}}}return this[_0x322b('0x20')](_0x4829e2);}[_0x322b('0x19')](_0x570019){this[_0x322b('0x3')][_0x322b('0x1e')](_0x570019);}[_0x322b('0x7')](_0x160fe,_0x51b9f5,_0x541b57=_0x51e3da[_0x322b('0x5')]){_0x322b('0x1f')==typeof _0x160fe?_0x50678a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x160fe,'label':_0x51b9f5,'priority':_0x541b57}):this[_0x322b('0x33')]['set'](_0x160fe,_0x51b9f5);}[_0x322b('0x6')](_0x156505,_0x3ba74c=0x1){let _0x514952;for(const _0x792dc8 of this[_0x322b('0x21')])if(_0x792dc8[_0x322b('0x32')](_0x156505)){_0x514952=_0x792dc8[_0x322b('0x4')];break;}return _0x514952||(_0x514952=this[_0x322b('0x33')][_0x322b('0x8')](_0x156505['name'])),_0x514952?_0x514952(_0x3ba74c):0x1!==_0x3ba74c?_0x3ba74c+'\x20'+_0x156505['name']+'s':''+_0x156505[_0x322b('0x30')];}[_0x322b('0x0')](_0x56113c,_0x36b72a){const _0x3744f4=_0x36b72a['getFirstRange']()['getWalker'](),_0x59bc60=_0x322b('0x1')==_0x36b72a[_0x322b('0x2d')]?_0x322b('0x1d'):'remove';for(const _0x32362d of _0x3744f4){const _0x371263=_0x32362d['item'],_0x1233f5=_0x56113c[_0x56113c[_0x322b('0xe')]-0x1];if(_0x371263['is']('$textProxy'))_0x1233f5&&_0x1233f5[_0x322b('0x2d')][_0x322b('0x15')]('Container')>-0x1&&_0x56113c[_0x322b('0x1a')](),_0x1233f5&&_0x322b('0x23')==_0x1233f5[_0x322b('0x2d')]?_0x1233f5[_0x59bc60]+=_0x371263[_0x322b('0x2e')]:_0x56113c['push']({'type':_0x322b('0x23'),'add':_0x322b('0x1d')==_0x59bc60?_0x371263['data']:'','remove':_0x322b('0x31')==_0x59bc60?_0x371263['data']:''});else{if(this[_0x322b('0x2c')][_0x322b('0xa')](_0x371263)){const _0xb90fda=_0x371263;if(_0x1233f5&&_0x1233f5[_0x322b('0x2d')][_0x322b('0x15')](_0x322b('0x25'))>-0x1&&_0x56113c[_0x322b('0x1a')](),_0x322b('0x37')==_0x32362d[_0x322b('0x2d')])continue;_0x1233f5&&_0x1233f5[_0x322b('0x2d')]==_0x59bc60+'Object'&&_0x1233f5[_0x322b('0x16')]['name']==_0xb90fda[_0x322b('0x30')]?_0x1233f5[_0x322b('0x1b')]++:_0x56113c[_0x322b('0x1e')]({'type':_0x59bc60+_0x322b('0x1c'),'element':_0xb90fda,'quantity':0x1}),_0x3744f4['skip'](_0x2a6932=>!('elementEnd'==_0x2a6932['type']&&_0x2a6932['item']==_0x371263));}else{if(this['_schema'][_0x322b('0x2f')](_0x371263,'$text')||_0x371263['is'](_0x322b('0x16'),_0x322b('0x9'))){const _0xacd1f=_0x371263;if(_0x322b('0x1d')==_0x59bc60&&_0x322b('0xb')==_0x32362d[_0x322b('0x2d')]||_0x322b('0x31')==_0x59bc60&&_0x322b('0x37')==_0x32362d[_0x322b('0x2d')])continue;if(_0x1233f5&&-0x1==_0x1233f5[_0x322b('0x2d')][_0x322b('0x15')]('Container')){_0x322b('0x23')==_0x1233f5[_0x322b('0x2d')]&&(_0x1233f5[_0x59bc60]+='\x0a');continue;}let _0xadb7cc;if(_0xadb7cc=_0x322b('0x1d')==_0x59bc60?_0xacd1f['nextSibling']&&!this[_0x322b('0x2c')][_0x322b('0xa')](_0xacd1f[_0x322b('0x34')])?_0xacd1f['nextSibling']:null:_0xacd1f[_0x322b('0x18')]&&!this[_0x322b('0x2c')]['isObject'](_0xacd1f[_0x322b('0x18')])?_0xacd1f['previousSibling']:null,_0xacd1f[_0x322b('0x36')]||_0xadb7cc&&_0xadb7cc['isEmpty']){const _0x111759=_0xadb7cc&&_0xadb7cc[_0x322b('0x36')]?_0xadb7cc:_0xacd1f;_0x1233f5&&_0x1233f5[_0x322b('0x2d')]==_0x59bc60+_0x322b('0xd')&&_0x1233f5[_0x322b('0x16')][_0x322b('0x30')]==_0x111759[_0x322b('0x30')]?_0x1233f5[_0x322b('0x1b')]++:_0x56113c[_0x322b('0x1e')]({'type':_0x59bc60+_0x322b('0xd'),'element':_0x111759,'quantity':0x1});}else _0x56113c[_0x322b('0x1e')]({'type':_0x59bc60+'Container','element':_0xacd1f});}}}}}[_0x322b('0x20')](_0x4dea54){const _0x4e07e1=this[_0x322b('0x17')],_0x2d5b62=[];for(const _0x3bc475 of _0x4dea54){switch(_0x3bc475['type']){case _0x322b('0x23'):if(_0x3bc475[_0x322b('0x1d')]=_0x3bc475[_0x322b('0x1d')]['replace'](/(\S)\u000A+(\S)/g,_0x322b('0x22'))[_0x322b('0x27')](/\u000A/g,''),_0x3bc475[_0x322b('0x31')]=_0x3bc475[_0x322b('0x31')]['replace'](/(\S)\u000A+(\S)/g,_0x322b('0x22'))[_0x322b('0x27')](/\u000A/g,''),''!=_0x3bc475[_0x322b('0x1d')]&&''!=_0x3bc475[_0x322b('0x31')]){_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x27'),'content':_0x3b225d(_0x4e07e1,'REPLACE_TEXT',['\x22'+_0x3bc475[_0x322b('0x31')]+'\x22','\x22'+_0x3bc475[_0x322b('0x1d')]+'\x22'])});continue;}if(null!=_0x3bc475[_0x322b('0x1d')][_0x322b('0x14')](/^ +$/)){_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x1'),'content':_0x3b225d(_0x4e07e1,_0x322b('0xc'),_0x3b225d(_0x4e07e1,_0x322b('0x13'),_0x3bc475[_0x322b('0x1d')][_0x322b('0xe')]))});continue;}if(null!=_0x3bc475[_0x322b('0x31')][_0x322b('0x14')](/^ +$/)){_0x2d5b62[_0x322b('0x1e')]({'type':'deletion','content':_0x3b225d(_0x4e07e1,_0x322b('0xf'),_0x3b225d(_0x4e07e1,_0x322b('0x13'),_0x3bc475[_0x322b('0x31')]['length']))});continue;}if(''!=_0x3bc475[_0x322b('0x1d')]){_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x1'),'content':_0x3b225d(_0x4e07e1,_0x322b('0xc'),'\x22'+_0x3bc475['add']+'\x22')});continue;}_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x28'),'content':_0x3b225d(_0x4e07e1,_0x322b('0xf'),'\x22'+_0x3bc475[_0x322b('0x31')]+'\x22')});continue;case _0x322b('0x2a'):case'addObject':_0x2d5b62['push']({'type':_0x322b('0x1'),'content':_0x3b225d(_0x4e07e1,'*Insert:*\x20%0',this[_0x322b('0x6')](_0x3bc475[_0x322b('0x16')],_0x3bc475[_0x322b('0x1b')]))});continue;case _0x322b('0x2b'):case'removeObject':_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x28'),'content':_0x3b225d(_0x4e07e1,'*Remove:*\x20%0',this[_0x322b('0x6')](_0x3bc475['element'],_0x3bc475['quantity']))});continue;case _0x322b('0x35'):_0x2d5b62[_0x322b('0x1e')]({'type':_0x322b('0x1'),'content':_0x3b225d(_0x4e07e1,_0x322b('0x11'),this[_0x322b('0x6')](_0x3bc475[_0x322b('0x16')],_0x3bc475[_0x322b('0x1b')]))});continue;case'removeContainer':_0x2d5b62['push']({'type':'deletion','content':_0x3b225d(_0x4e07e1,_0x322b('0x26'),this[_0x322b('0x6')](_0x3bc475[_0x322b('0x16')],_0x3bc475[_0x322b('0x1b')]))});continue;}_0x2d5b62[_0x322b('0x1e')](_0x3bc475);}return _0x2d5b62;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5b7f=['pluginName','get','TrackChanges','getSuggestions','getSuggestion','plugins','editor','Comments','requires','adapter','addSuggestionData','addSuggestion'];(function(_0x4daa4c,_0x5b7faf){var _0xe82806=function(_0xd25933){while(--_0xd25933){_0x4daa4c['push'](_0x4daa4c['shift']());}};_0xe82806(++_0x5b7faf);}(_0x5b7f,0x1aa));var _0xe828=function(_0x4daa4c,_0x5b7faf){_0x4daa4c=_0x4daa4c-0x0;var _0xe82806=_0x5b7f[_0x4daa4c];return _0xe82806;};import{Plugin as _0x3ed5fa}from'ckeditor5/src/core';import _0x2dfe86 from'./trackchangesui';import _0x1c7fe4 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x3ed5fa{static get[_0xe828('0x2')](){return[_0x1c7fe4,_0x2dfe86,_0xe828('0x1')];}static get[_0xe828('0x6')](){return _0xe828('0x8');}set[_0xe828('0x3')](_0x4b2c7f){this[_0xe828('0x0')]['plugins']['get'](_0x1c7fe4)[_0xe828('0x3')]=_0x4b2c7f;}get['adapter'](){return this[_0xe828('0x0')]['plugins']['get'](_0x1c7fe4)[_0xe828('0x3')];}[_0xe828('0x5')](_0x141b1b){return this[_0xe828('0x0')][_0xe828('0xb')][_0xe828('0x7')](_0x1c7fe4)[_0xe828('0x4')](_0x141b1b);}[_0xe828('0x9')]({skipNotAttached:_0x20446c=!0x1,toJSON:_0x36bb9f=!0x1}={}){return this[_0xe828('0x0')][_0xe828('0xb')]['get'](_0x1c7fe4)[_0xe828('0x9')]({'skipNotAttached':_0x20446c,'toJSON':_0x36bb9f});}[_0xe828('0xa')](_0x350305){return this[_0xe828('0x0')][_0xe828('0xb')][_0xe828('0x7')](_0x1c7fe4)[_0xe828('0xa')](_0x350305);}}
23
+ var _0x1848=['plugins','pluginName','getSuggestions','Comments','editor','adapter','addSuggestionData','get','addSuggestion'];(function(_0x298b0b,_0x184805){var _0x1f9fe9=function(_0x144e7e){while(--_0x144e7e){_0x298b0b['push'](_0x298b0b['shift']());}};_0x1f9fe9(++_0x184805);}(_0x1848,0x112));var _0x1f9f=function(_0x298b0b,_0x184805){_0x298b0b=_0x298b0b-0x0;var _0x1f9fe9=_0x1848[_0x298b0b];return _0x1f9fe9;};import{Plugin as _0x283f1a}from'ckeditor5/src/core';import _0x314c8c from'./trackchangesui';import _0x3dfd88 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x283f1a{static get['requires'](){return[_0x3dfd88,_0x314c8c,_0x1f9f('0x8')];}static get[_0x1f9f('0x6')](){return'TrackChanges';}set[_0x1f9f('0x1')](_0x243281){this['editor'][_0x1f9f('0x5')][_0x1f9f('0x3')](_0x3dfd88)[_0x1f9f('0x1')]=_0x243281;}get[_0x1f9f('0x1')](){return this[_0x1f9f('0x0')][_0x1f9f('0x5')][_0x1f9f('0x3')](_0x3dfd88)[_0x1f9f('0x1')];}[_0x1f9f('0x4')](_0x2051e2){return this['editor'][_0x1f9f('0x5')][_0x1f9f('0x3')](_0x3dfd88)[_0x1f9f('0x2')](_0x2051e2);}[_0x1f9f('0x7')]({skipNotAttached:_0x3eaf36=!0x1,toJSON:_0x243c99=!0x1}={}){return this[_0x1f9f('0x0')][_0x1f9f('0x5')][_0x1f9f('0x3')](_0x3dfd88)[_0x1f9f('0x7')]({'skipNotAttached':_0x3eaf36,'toJSON':_0x243c99});}['getSuggestion'](_0x5ce496){return this[_0x1f9f('0x0')][_0x1f9f('0x5')][_0x1f9f('0x3')](_0x3dfd88)['getSuggestion'](_0x5ce496);}}