@ckeditor/ckeditor5-track-changes 35.2.1 → 35.3.1

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 (158) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/build/track-changes.js +2 -2
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/bg.js +1 -1
  7. package/build/translations/bn.js +1 -1
  8. package/build/translations/ca.js +1 -1
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es.js +1 -1
  15. package/build/translations/et.js +1 -1
  16. package/build/translations/fi.js +1 -1
  17. package/build/translations/fr.js +1 -1
  18. package/build/translations/gl.js +1 -1
  19. package/build/translations/he.js +1 -1
  20. package/build/translations/hi.js +1 -1
  21. package/build/translations/hr.js +1 -1
  22. package/build/translations/hu.js +1 -1
  23. package/build/translations/id.js +1 -1
  24. package/build/translations/it.js +1 -1
  25. package/build/translations/ja.js +1 -1
  26. package/build/translations/ko.js +1 -1
  27. package/build/translations/lt.js +1 -1
  28. package/build/translations/lv.js +1 -1
  29. package/build/translations/ms.js +1 -1
  30. package/build/translations/nl.js +1 -1
  31. package/build/translations/no.js +1 -1
  32. package/build/translations/pl.js +1 -1
  33. package/build/translations/pt-br.js +1 -1
  34. package/build/translations/pt.js +1 -1
  35. package/build/translations/ro.js +1 -1
  36. package/build/translations/ru.js +1 -1
  37. package/build/translations/sk.js +1 -1
  38. package/build/translations/sr-latn.js +1 -1
  39. package/build/translations/sr.js +1 -1
  40. package/build/translations/sv.js +1 -1
  41. package/build/translations/th.js +1 -1
  42. package/build/translations/tk.js +1 -1
  43. package/build/translations/tr.js +1 -1
  44. package/build/translations/tt.js +1 -1
  45. package/build/translations/uk.js +1 -1
  46. package/build/translations/ur.js +1 -1
  47. package/build/translations/vi.js +1 -1
  48. package/build/translations/zh-cn.js +1 -1
  49. package/build/translations/zh.js +1 -1
  50. package/lang/contexts.json +4 -1
  51. package/lang/translations/ar.po +12 -0
  52. package/lang/translations/az.po +12 -0
  53. package/lang/translations/bg.po +12 -0
  54. package/lang/translations/bn.po +12 -0
  55. package/lang/translations/ca.po +12 -0
  56. package/lang/translations/cs.po +12 -0
  57. package/lang/translations/da.po +12 -0
  58. package/lang/translations/de.po +12 -0
  59. package/lang/translations/el.po +12 -0
  60. package/lang/translations/en-au.po +12 -0
  61. package/lang/translations/en.po +12 -0
  62. package/lang/translations/es.po +12 -0
  63. package/lang/translations/et.po +12 -0
  64. package/lang/translations/fi.po +12 -0
  65. package/lang/translations/fr.po +12 -0
  66. package/lang/translations/gl.po +12 -0
  67. package/lang/translations/he.po +12 -0
  68. package/lang/translations/hi.po +12 -0
  69. package/lang/translations/hr.po +12 -0
  70. package/lang/translations/hu.po +12 -0
  71. package/lang/translations/id.po +12 -0
  72. package/lang/translations/it.po +12 -0
  73. package/lang/translations/ja.po +12 -0
  74. package/lang/translations/ko.po +12 -0
  75. package/lang/translations/lt.po +12 -0
  76. package/lang/translations/lv.po +12 -0
  77. package/lang/translations/ms.po +12 -0
  78. package/lang/translations/nl.po +12 -0
  79. package/lang/translations/no.po +12 -0
  80. package/lang/translations/pl.po +12 -0
  81. package/lang/translations/pt-br.po +12 -0
  82. package/lang/translations/pt.po +12 -0
  83. package/lang/translations/ro.po +12 -0
  84. package/lang/translations/ru.po +12 -0
  85. package/lang/translations/sk.po +12 -0
  86. package/lang/translations/sr-latn.po +12 -0
  87. package/lang/translations/sr.po +12 -0
  88. package/lang/translations/sv.po +12 -0
  89. package/lang/translations/th.po +12 -0
  90. package/lang/translations/tk.po +12 -0
  91. package/lang/translations/tr.po +12 -0
  92. package/lang/translations/tt.po +12 -0
  93. package/lang/translations/uk.po +12 -0
  94. package/lang/translations/ur.po +12 -0
  95. package/lang/translations/vi.po +12 -0
  96. package/lang/translations/zh-cn.po +12 -0
  97. package/lang/translations/zh.po +12 -0
  98. package/package.json +4 -4
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/{utils/sortsuggestions.js → commands/executeonallsuggestionscommand.js} +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +23 -0
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/integrations/alignment.js +1 -1
  105. package/src/integrations/basicstyles.js +1 -1
  106. package/src/integrations/blockquote.js +1 -1
  107. package/src/integrations/ckbox.js +1 -1
  108. package/src/integrations/codeblock.js +1 -1
  109. package/src/integrations/comments.js +1 -1
  110. package/src/integrations/deletecommand.js +1 -1
  111. package/src/integrations/documentlist.js +23 -0
  112. package/src/integrations/entercommand.js +1 -1
  113. package/src/integrations/font.js +1 -1
  114. package/src/integrations/heading.js +1 -1
  115. package/src/integrations/highlight.js +1 -1
  116. package/src/integrations/horizontalline.js +1 -1
  117. package/src/integrations/htmlembed.js +1 -1
  118. package/src/integrations/image.js +1 -1
  119. package/src/integrations/importword.js +1 -1
  120. package/src/integrations/indent.js +1 -1
  121. package/src/integrations/inputcommand.js +1 -1
  122. package/src/integrations/link.js +1 -1
  123. package/src/integrations/list.js +1 -1
  124. package/src/integrations/mediaembed.js +1 -1
  125. package/src/integrations/mention.js +1 -1
  126. package/src/integrations/pagebreak.js +1 -1
  127. package/src/integrations/paragraph.js +1 -1
  128. package/src/integrations/removeformat.js +1 -1
  129. package/src/integrations/restrictededitingmode.js +1 -1
  130. package/src/integrations/shiftentercommand.js +1 -1
  131. package/src/integrations/standardeditingmode.js +1 -1
  132. package/src/integrations/style.js +1 -1
  133. package/src/integrations/table.js +1 -1
  134. package/src/{utils/normalizedescription.js → integrations/tablecaption.js} +1 -1
  135. package/src/integrations/tableclipboard.js +1 -1
  136. package/src/integrations/tableheadings.js +1 -1
  137. package/src/integrations/tablemergesplit.js +1 -1
  138. package/src/integrations/title.js +1 -1
  139. package/src/integrations/undo.js +1 -1
  140. package/src/integrations/utils.js +1 -1
  141. package/src/suggestion.js +1 -1
  142. package/src/suggestiondescriptionfactory.js +1 -1
  143. package/src/trackchanges.js +1 -1
  144. package/src/trackchangesdata.js +1 -1
  145. package/src/trackchangesediting.js +1 -1
  146. package/src/trackchangesui.js +1 -1
  147. package/src/ui/suggestioncontroller.js +1 -1
  148. package/src/ui/view/basesuggestionthreadview.js +1 -1
  149. package/src/ui/view/suggestionthreadview.js +1 -1
  150. package/src/utils/common-translations.js +1 -1
  151. package/src/utils/utils.js +23 -0
  152. package/src/commands/acceptallsuggestionscommand.js +0 -23
  153. package/src/commands/acceptselectedsuggestionscommand.js +0 -23
  154. package/src/commands/discardallsuggestionscommand.js +0 -23
  155. package/src/commands/discardselectedsuggestionscommand.js +0 -23
  156. package/src/utils/getrangesofblockgroups.js +0 -23
  157. package/src/utils/getselectedsuggestions.js +0 -23
  158. package/src/utils/hashobject.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5873=['forceDefaultExecution','add','size','mergeTableCellLeft','cell','direction','getRanges','type','document','TableEditing','editor','_areMergableCells','afterInit','*Split\x20cell:*\x20horizontally','_isForcedDefaultExecutionBlock','$graveyard','*Merge\x20cells*','stop','return','filter','mergeTableCellUp','findAncestor','_tablePostFixingSubtypes','getSelectionAffectedTableCells','_suggestionFactory','from','mergeTableCellDown','formatBlock','change','containsRange','length','enableCommand','locale','author','plugins','rootName','createTableWalker','highest','TableUtils','_descriptionFactory','mergeTableCellRight','find','getFirstPosition','mergeTableCells','map','commands','root','execute','registerCustomCallback','trackChanges','selection','markBlockFormat','getAncestors','splitTableCellVertically','horizontally','subType','tableCell','createRangeOn','value','element','getCellLocation','refresh','format','commandName','detach','has','requires','fromRange','registerDescriptionCallback','push','low','deletion','markMultiRangeBlockFormat','model','setSelection','accept','_areSelectedCellsMergable','splitTableCellHorizontally','isEnabled','set:isEnabled','get'];(function(_0x5b45bb,_0x58732d){const _0xae00d3=function(_0xc05351){while(--_0xc05351){_0x5b45bb['push'](_0x5b45bb['shift']());}};_0xae00d3(++_0x58732d);}(_0x5873,0x1e3));const _0xae00=function(_0x5b45bb,_0x58732d){_0x5b45bb=_0x5b45bb-0x0;let _0xae00d3=_0x5873[_0x5b45bb];return _0xae00d3;};import{Plugin as _0x1f06c6}from'ckeditor5/src/core';import _0x157129 from'./table';import{LiveRange as _0x569439}from'ckeditor5/src/engine';import{getTranslation as _0x3d0404}from'../utils/common-translations';export default class gt extends _0x1f06c6{static get[_0xae00('0x45')](){return[_0x157129];}[_0xae00('0xf')](){const _0x1b0d99=this[_0xae00('0xd')],_0x4168ac=_0x1b0d99[_0xae00('0x4c')][_0xae00('0xb')]['selection'],_0x5a893f=_0x1b0d99[_0xae00('0x23')];if(!_0x1b0d99['plugins'][_0xae00('0x44')](_0xae00('0xc')))return;const _0x2e5ad0=_0x1b0d99[_0xae00('0x25')][_0xae00('0x2')]('TrackChangesEditing'),_0x5df32e=_0x1b0d99[_0xae00('0x25')][_0xae00('0x2')](_0xae00('0x29')),_0x31be95=_0x1b0d99['plugins'][_0xae00('0x2')](_0x157129);_0x31be95[_0xae00('0x19')][_0xae00('0x48')]('mergeTableCells'),_0x2e5ad0['enableCommand'](_0xae00('0x2e'),()=>{const _0x5023db=_0x5df32e[_0xae00('0x1a')](_0x1b0d99['model'][_0xae00('0xb')]['selection']);_0x1b0d99['model']['change'](()=>{_0x2e5ad0[_0xae00('0x4b')](_0x5023db,{'commandName':_0xae00('0x2e'),'commandParams':[]},[],_0xae00('0x2e'));});}),_0x1b0d99[_0xae00('0x30')][_0xae00('0x2')](_0xae00('0x2e'))['on'](_0xae00('0x32'),(_0x3bcca5,_0x5b7ad9)=>{_0x1b0d99['commands'][_0xae00('0x2')](_0xae00('0x34'))[_0xae00('0x3d')]&&(_0x5b7ad9[_0xae00('0x21')]>0x0&&_0x5b7ad9[_0x5b7ad9[_0xae00('0x21')]-0x1]&&_0x5b7ad9[_0x5b7ad9[_0xae00('0x21')]-0x1][_0xae00('0x3')]||_0x2e5ad0[_0xae00('0x11')]||this[_0xae00('0x4f')]()||_0x3bcca5[_0xae00('0x14')]());},{'priority':_0xae00('0x28')});for(const _0x53681d of[_0xae00('0x17'),_0xae00('0x2b'),_0xae00('0x1d'),_0xae00('0x6')]){const _0x143338=_0x1b0d99['commands'][_0xae00('0x2')](_0x53681d);_0x2e5ad0[_0xae00('0x22')](_0x53681d,()=>{const _0x3d43d5=_0x1b0d99['model'][_0xae00('0xb')][_0xae00('0x35')][_0xae00('0x2d')]()[_0xae00('0x37')]()[_0xae00('0x2c')](_0x57680d=>_0x57680d['is'](_0xae00('0x3e'),'tableCell')),_0x3a0a3a=_0x143338[_0xae00('0x3d')];_0x1b0d99['model'][_0xae00('0x1f')](()=>{_0x2e5ad0[_0xae00('0x4b')]([_0x3d43d5,_0x3a0a3a],{'commandName':_0xae00('0x2e'),'commandParams':[]},[],_0xae00('0x2e'));});});}for(const _0x151a24 of[_0xae00('0x38'),'splitTableCellHorizontally']){const _0x1e54c3=_0x1b0d99[_0xae00('0x30')][_0xae00('0x2')](_0x151a24);_0x2e5ad0[_0xae00('0x22')](_0x151a24,()=>{const _0x48e63e=_0x5df32e[_0xae00('0x1a')](_0x1b0d99['model'][_0xae00('0xb')]['selection'])[0x0],_0x3559e4=_0x48e63e[_0xae00('0x18')]('table'),{column:_0x54984b,row:_0x1ab1e6}=_0x5df32e[_0xae00('0x3f')](_0x48e63e);let _0x2cc86e=[];if(_0xae00('0x39')==_0x1e54c3[_0xae00('0x8')]){const _0x509ce6=_0x5df32e[_0xae00('0x27')](_0x3559e4,{'startRow':_0x1ab1e6,'endRow':_0x1ab1e6,'includeAllSlots':!0x0});_0x2cc86e=Array[_0xae00('0x1c')](_0x509ce6)[_0xae00('0x2f')](_0xcd8618=>_0xcd8618[_0xae00('0x7')]);}else{const _0x6d24df=_0x5df32e[_0xae00('0x27')](_0x3559e4,{'column':_0x54984b,'includeAllSlots':!0x0});_0x2cc86e=Array[_0xae00('0x1c')](_0x6d24df)[_0xae00('0x2f')](_0x5c8b6f=>_0x5c8b6f[_0xae00('0x7')]);}_0x1b0d99[_0xae00('0x4c')]['change'](_0x1732a3=>{_0x2e5ad0[_0xae00('0x36')](_0x1732a3[_0xae00('0x3c')](_0x48e63e),{'commandName':_0x151a24,'commandParams':[]},_0x2cc86e,_0x151a24);});});}_0x2e5ad0[_0xae00('0x2a')][_0xae00('0x47')](_0x56e885=>{const {data:_0x16e3b6}=_0x56e885;if(_0x16e3b6)return _0xae00('0x2e')==_0x16e3b6[_0xae00('0x42')]?{'type':_0xae00('0x41'),'content':_0x3d0404(_0x5a893f,_0xae00('0x13'))}:void 0x0;}),_0x2e5ad0[_0xae00('0x2a')]['registerDescriptionCallback'](_0x538036=>{const {data:_0x52c8b9}=_0x538036;if(_0x52c8b9)return _0xae00('0x38')==_0x52c8b9[_0xae00('0x42')]?{'type':_0xae00('0x41'),'content':_0x3d0404(_0x5a893f,'*Split\x20cell:*\x20vertically')}:_0xae00('0x50')==_0x52c8b9[_0xae00('0x42')]?{'type':'format','content':_0x3d0404(_0x5a893f,_0xae00('0x10'))}:void 0x0;});const _0x1e1b5d=_0x31be95['_acceptFormatSuggestionCallbackFactory']();for(const _0x1ea81d of[_0xae00('0x17'),_0xae00('0x2b'),_0xae00('0x1d'),_0xae00('0x6')])_0x2e5ad0['_suggestionFactory'][_0xae00('0x33')](_0xae00('0x1e'),_0x1ea81d,'accept',_0x1e1b5d);for(const _0x1be6e6 of[_0xae00('0x38'),_0xae00('0x50')])_0x2e5ad0[_0xae00('0x1b')][_0xae00('0x33')](_0xae00('0x1e'),_0x1be6e6,_0xae00('0x4e'),_0x1e1b5d);_0x2e5ad0['_suggestionFactory'][_0xae00('0x33')](_0xae00('0x1e'),_0xae00('0x2e'),_0xae00('0x4e'),_0x5da726=>{_0x1b0d99[_0xae00('0x4c')][_0xae00('0x1f')](_0x36dc0c=>{const _0xc9e791=Array[_0xae00('0x1c')](_0x4168ac[_0xae00('0x9')]())[_0xae00('0x2f')](_0x20c9d5=>_0x569439[_0xae00('0x46')](_0x20c9d5));_0x36dc0c[_0xae00('0x4d')](_0x5da726),_0x1b0d99[_0xae00('0x30')][_0xae00('0x2')](_0xae00('0x2e'))[_0xae00('0x40')](),_0x1b0d99[_0xae00('0x32')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c2e3e=_0xc9e791[_0xae00('0x16')](_0x222f00=>_0xae00('0x12')!=_0x222f00[_0xae00('0x31')][_0xae00('0x26')]);_0x1c2e3e[_0xae00('0x21')]>0x0&&_0x36dc0c[_0xae00('0x4d')](_0x1c2e3e);for(const _0x36d3c9 of _0xc9e791)_0x36d3c9[_0xae00('0x43')]();});});for(const _0x4e3f4b of[_0xae00('0x17'),_0xae00('0x1d'),_0xae00('0x6'),_0xae00('0x2b')]){const _0x53f4f5=_0x1b0d99['commands'][_0xae00('0x2')](_0x4e3f4b);_0x53f4f5['on'](_0xae00('0x1'),(_0x2fc631,_0x3d2447,_0xb76e55)=>{if(_0xb76e55){const _0x1c9caa=_0x1b0d99['model'][_0xae00('0xb')][_0xae00('0x35')][_0xae00('0x2d')]()[_0xae00('0x37')]()[_0xae00('0x2c')](_0x328bbe=>_0x328bbe['is'](_0xae00('0x3e'),_0xae00('0x3b')));this[_0xae00('0xe')](_0x53f4f5[_0xae00('0x3d')],_0x1c9caa)||(_0x2fc631[_0xae00('0x15')]=!0x1,_0x2fc631[_0xae00('0x14')]());}},{'priority':_0xae00('0x49')});}}[_0xae00('0x4f')](){const _0x2497f9=this[_0xae00('0xd')][_0xae00('0x30')]['get'](_0xae00('0x2e')),_0x1e0c4b=this[_0xae00('0xd')][_0xae00('0x25')][_0xae00('0x2')](_0xae00('0x29'));if(!_0x2497f9[_0xae00('0x0')])return!0x1;const _0x56b11f=_0x1e0c4b['getSelectionAffectedTableCells'](this[_0xae00('0xd')][_0xae00('0x4c')][_0xae00('0xb')]['selection']);for(const _0x381f70 of _0x56b11f)for(const _0x277708 of _0x56b11f)if(_0x381f70!=_0x277708&&!this[_0xae00('0xe')](_0x381f70,_0x277708))return!0x1;return!0x0;}[_0xae00('0xe')](_0x243ef7,_0x4e3667){const _0xa56fb=this[_0xae00('0xd')][_0xae00('0x25')]['get']('TrackChangesEditing'),_0x330b15=this['editor']['model']['createRangeOn'](_0x243ef7),_0x34da99=this[_0xae00('0xd')][_0xae00('0x4c')]['createRangeOn'](_0x4e3667),_0x5d073f=new Set(),_0x25887d=new Set();for(const _0x1c2cd8 of _0xa56fb['getSuggestions']())if(('insertion'==_0x1c2cd8[_0xae00('0xa')]||_0xae00('0x4a')==_0x1c2cd8[_0xae00('0xa')]||_0xae00('0x2e')==_0x1c2cd8[_0xae00('0x3a')])&&_0x1c2cd8['isInContent'])for(const _0x514f7c of _0x1c2cd8[_0xae00('0x9')]())_0x514f7c['containsRange'](_0x330b15,!0x0)&&_0x5d073f[_0xae00('0x4')](_0x1c2cd8[_0xae00('0xa')]+':'+_0x1c2cd8[_0xae00('0x24')]['id']),_0x514f7c[_0xae00('0x20')](_0x34da99,!0x0)&&_0x25887d['add'](_0x1c2cd8['type']+':'+_0x1c2cd8[_0xae00('0x24')]['id']);if(_0x5d073f['size']!=_0x25887d[_0xae00('0x5')])return!0x1;for(const _0x4f27a3 of _0x5d073f)if(!_0x25887d[_0xae00('0x44')](_0x4f27a3))return!0x1;return!0x0;}}
23
+ const _0x568c=['commands','TableUtils','length','author','trackChanges','add','deletion','getCellLocation','model','from','mergeTableCellRight','change','document','highest','_tablePostFixingSubtypes','selection','format','table','cell','get','isInContent','_suggestionFactory','has','*Split\x20cell:*\x20horizontally','stop','getSuggestions','getSelectionAffectedTableCells','$graveyard','execute','createTableWalker','splitTableCellVertically','findAncestor','push','mergeTableCellUp','root','mergeTableCellDown','TrackChangesEditing','size','getFirstPosition','mergeTableCellLeft','registerCustomCallback','_areMergableCells','mergeTableCells','type','accept','getRanges','splitTableCellHorizontally','set:isEnabled','locale','getAncestors','plugins','filter','createRangeOn','_descriptionFactory','_areSelectedCellsMergable','insertion','markMultiRangeBlockFormat','formatBlock','subType','enableCommand','value','editor','afterInit','element','setSelection','detach','containsRange','commandName','fromRange','tableCell','map','TableEditing','registerDescriptionCallback','refresh','_isForcedDefaultExecutionBlock','*Split\x20cell:*\x20vertically','find'];(function(_0x425813,_0x568c8c){const _0x25c9fe=function(_0x292eea){while(--_0x292eea){_0x425813['push'](_0x425813['shift']());}};_0x25c9fe(++_0x568c8c);}(_0x568c,0x17a));const _0x25c9=function(_0x425813,_0x568c8c){_0x425813=_0x425813-0x0;let _0x25c9fe=_0x568c[_0x425813];return _0x25c9fe;};import{Plugin as _0x1f3155}from'ckeditor5/src/core';import _0x323306 from'./table';import{LiveRange as _0x3a2684}from'ckeditor5/src/engine';import{getTranslation as _0x5131cf}from'../utils/common-translations';export default class gt extends _0x1f3155{static get['requires'](){return[_0x323306];}[_0x25c9('0x45')](){const _0x343791=this[_0x25c9('0x44')],_0x1dca36=_0x343791[_0x25c9('0xf')][_0x25c9('0x13')][_0x25c9('0x16')],_0x1b0782=_0x343791[_0x25c9('0x37')];if(!_0x343791[_0x25c9('0x39')][_0x25c9('0x1d')](_0x25c9('0x1')))return;const _0x4a921c=_0x343791[_0x25c9('0x39')][_0x25c9('0x1a')](_0x25c9('0x2b')),_0x38176a=_0x343791['plugins'][_0x25c9('0x1a')]('TableUtils'),_0x2739df=_0x343791['plugins']['get'](_0x323306);_0x2739df[_0x25c9('0x15')][_0x25c9('0x27')](_0x25c9('0x31')),_0x4a921c[_0x25c9('0x42')]('mergeTableCells',()=>{const _0x5a8118=_0x38176a[_0x25c9('0x21')](_0x343791[_0x25c9('0xf')][_0x25c9('0x13')][_0x25c9('0x16')]);_0x343791[_0x25c9('0xf')][_0x25c9('0x12')](()=>{_0x4a921c[_0x25c9('0x3f')](_0x5a8118,{'commandName':_0x25c9('0x31'),'commandParams':[]},[],_0x25c9('0x31'));});}),_0x343791[_0x25c9('0x7')]['get'](_0x25c9('0x31'))['on'](_0x25c9('0x23'),(_0x46616f,_0x13ec2d)=>{_0x343791[_0x25c9('0x7')][_0x25c9('0x1a')](_0x25c9('0xb'))[_0x25c9('0x43')]&&(_0x13ec2d[_0x25c9('0x9')]>0x0&&_0x13ec2d[_0x13ec2d[_0x25c9('0x9')]-0x1]&&_0x13ec2d[_0x13ec2d['length']-0x1]['forceDefaultExecution']||_0x4a921c[_0x25c9('0x4')]||this[_0x25c9('0x3d')]()||_0x46616f[_0x25c9('0x1f')]());},{'priority':_0x25c9('0x14')});for(const _0x2c1021 of['mergeTableCellUp',_0x25c9('0x11'),'mergeTableCellDown',_0x25c9('0x2e')]){const _0x363fe2=_0x343791[_0x25c9('0x7')][_0x25c9('0x1a')](_0x2c1021);_0x4a921c['enableCommand'](_0x2c1021,()=>{const _0x44ca3d=_0x343791[_0x25c9('0xf')][_0x25c9('0x13')]['selection']['getFirstPosition']()[_0x25c9('0x38')]()[_0x25c9('0x6')](_0x17f42b=>_0x17f42b['is']('element','tableCell')),_0x394e60=_0x363fe2[_0x25c9('0x43')];_0x343791['model'][_0x25c9('0x12')](()=>{_0x4a921c['markMultiRangeBlockFormat']([_0x44ca3d,_0x394e60],{'commandName':'mergeTableCells','commandParams':[]},[],_0x25c9('0x31'));});});}for(const _0x3e4bad of[_0x25c9('0x25'),_0x25c9('0x35')]){const _0x679544=_0x343791[_0x25c9('0x7')][_0x25c9('0x1a')](_0x3e4bad);_0x4a921c[_0x25c9('0x42')](_0x3e4bad,()=>{const _0x490761=_0x38176a[_0x25c9('0x21')](_0x343791[_0x25c9('0xf')]['document'][_0x25c9('0x16')])[0x0],_0x110ce7=_0x490761[_0x25c9('0x26')](_0x25c9('0x18')),{column:_0x549d6e,row:_0x3db495}=_0x38176a[_0x25c9('0xe')](_0x490761);let _0xd93858=[];if('horizontally'==_0x679544['direction']){const _0x34cbf8=_0x38176a[_0x25c9('0x24')](_0x110ce7,{'startRow':_0x3db495,'endRow':_0x3db495,'includeAllSlots':!0x0});_0xd93858=Array[_0x25c9('0x10')](_0x34cbf8)['map'](_0x1cd17f=>_0x1cd17f[_0x25c9('0x19')]);}else{const _0x211866=_0x38176a[_0x25c9('0x24')](_0x110ce7,{'column':_0x549d6e,'includeAllSlots':!0x0});_0xd93858=Array[_0x25c9('0x10')](_0x211866)[_0x25c9('0x0')](_0x372fec=>_0x372fec['cell']);}_0x343791[_0x25c9('0xf')]['change'](_0x689228=>{_0x4a921c['markBlockFormat'](_0x689228[_0x25c9('0x3b')](_0x490761),{'commandName':_0x3e4bad,'commandParams':[]},_0xd93858,_0x3e4bad);});});}_0x4a921c[_0x25c9('0x3c')][_0x25c9('0x2')](_0x4368cd=>{const {data:_0xa6c06c}=_0x4368cd;if(_0xa6c06c)return _0x25c9('0x31')==_0xa6c06c[_0x25c9('0x4a')]?{'type':_0x25c9('0x17'),'content':_0x5131cf(_0x1b0782,'*Merge\x20cells*')}:void 0x0;}),_0x4a921c[_0x25c9('0x3c')][_0x25c9('0x2')](_0x18bd93=>{const {data:_0x259d5d}=_0x18bd93;if(_0x259d5d)return'splitTableCellVertically'==_0x259d5d['commandName']?{'type':_0x25c9('0x17'),'content':_0x5131cf(_0x1b0782,_0x25c9('0x5'))}:_0x25c9('0x35')==_0x259d5d['commandName']?{'type':_0x25c9('0x17'),'content':_0x5131cf(_0x1b0782,_0x25c9('0x1e'))}:void 0x0;});const _0xff0729=_0x2739df['_acceptFormatSuggestionCallbackFactory']();for(const _0x7eedd5 of[_0x25c9('0x28'),'mergeTableCellRight',_0x25c9('0x2a'),_0x25c9('0x2e')])_0x4a921c[_0x25c9('0x1c')]['registerCustomCallback'](_0x25c9('0x40'),_0x7eedd5,_0x25c9('0x33'),_0xff0729);for(const _0x48f48a of[_0x25c9('0x25'),'splitTableCellHorizontally'])_0x4a921c[_0x25c9('0x1c')][_0x25c9('0x2f')](_0x25c9('0x40'),_0x48f48a,'accept',_0xff0729);_0x4a921c[_0x25c9('0x1c')][_0x25c9('0x2f')](_0x25c9('0x40'),_0x25c9('0x31'),_0x25c9('0x33'),_0x5aaa28=>{_0x343791[_0x25c9('0xf')]['change'](_0x5ad402=>{const _0x5e5077=Array[_0x25c9('0x10')](_0x1dca36[_0x25c9('0x34')]())[_0x25c9('0x0')](_0x2023ae=>_0x3a2684[_0x25c9('0x4b')](_0x2023ae));_0x5ad402['setSelection'](_0x5aaa28),_0x343791[_0x25c9('0x7')]['get'](_0x25c9('0x31'))[_0x25c9('0x3')](),_0x343791[_0x25c9('0x23')](_0x25c9('0x31'),{'forceDefaultExecution':!0x0});const _0x2935b7=_0x5e5077[_0x25c9('0x3a')](_0x556a6b=>_0x25c9('0x22')!=_0x556a6b[_0x25c9('0x29')]['rootName']);_0x2935b7[_0x25c9('0x9')]>0x0&&_0x5ad402[_0x25c9('0x47')](_0x2935b7);for(const _0x4c6693 of _0x5e5077)_0x4c6693[_0x25c9('0x48')]();});});for(const _0x3c73a8 of[_0x25c9('0x28'),_0x25c9('0x2a'),_0x25c9('0x2e'),_0x25c9('0x11')]){const _0xbf0731=_0x343791[_0x25c9('0x7')][_0x25c9('0x1a')](_0x3c73a8);_0xbf0731['on'](_0x25c9('0x36'),(_0x1a62a4,_0x4fedb3,_0x18bc68)=>{if(_0x18bc68){const _0x31fc4f=_0x343791['model'][_0x25c9('0x13')]['selection'][_0x25c9('0x2d')]()[_0x25c9('0x38')]()[_0x25c9('0x6')](_0x44b061=>_0x44b061['is'](_0x25c9('0x46'),_0x25c9('0x4c')));this['_areMergableCells'](_0xbf0731[_0x25c9('0x43')],_0x31fc4f)||(_0x1a62a4['return']=!0x1,_0x1a62a4[_0x25c9('0x1f')]());}},{'priority':'low'});}}[_0x25c9('0x3d')](){const _0x496224=this[_0x25c9('0x44')][_0x25c9('0x7')][_0x25c9('0x1a')](_0x25c9('0x31')),_0x18910f=this[_0x25c9('0x44')][_0x25c9('0x39')][_0x25c9('0x1a')](_0x25c9('0x8'));if(!_0x496224['isEnabled'])return!0x1;const _0x4565be=_0x18910f[_0x25c9('0x21')](this[_0x25c9('0x44')][_0x25c9('0xf')]['document'][_0x25c9('0x16')]);for(const _0x23d1db of _0x4565be)for(const _0x16ca71 of _0x4565be)if(_0x23d1db!=_0x16ca71&&!this[_0x25c9('0x30')](_0x23d1db,_0x16ca71))return!0x1;return!0x0;}['_areMergableCells'](_0x2d9c69,_0x5bbf42){const _0x824934=this[_0x25c9('0x44')][_0x25c9('0x39')][_0x25c9('0x1a')](_0x25c9('0x2b')),_0xd59014=this[_0x25c9('0x44')][_0x25c9('0xf')][_0x25c9('0x3b')](_0x2d9c69),_0x3335f2=this['editor'][_0x25c9('0xf')][_0x25c9('0x3b')](_0x5bbf42),_0x5b5d1c=new Set(),_0x2b2670=new Set();for(const _0x46b607 of _0x824934[_0x25c9('0x20')]())if((_0x25c9('0x3e')==_0x46b607[_0x25c9('0x32')]||_0x25c9('0xd')==_0x46b607[_0x25c9('0x32')]||'mergeTableCells'==_0x46b607[_0x25c9('0x41')])&&_0x46b607[_0x25c9('0x1b')])for(const _0x48e629 of _0x46b607[_0x25c9('0x34')]())_0x48e629[_0x25c9('0x49')](_0xd59014,!0x0)&&_0x5b5d1c[_0x25c9('0xc')](_0x46b607[_0x25c9('0x32')]+':'+_0x46b607[_0x25c9('0xa')]['id']),_0x48e629['containsRange'](_0x3335f2,!0x0)&&_0x2b2670[_0x25c9('0xc')](_0x46b607[_0x25c9('0x32')]+':'+_0x46b607[_0x25c9('0xa')]['id']);if(_0x5b5d1c[_0x25c9('0x2c')]!=_0x2b2670[_0x25c9('0x2c')])return!0x1;for(const _0x5e14bd of _0x5b5d1c)if(!_0x2b2670['has'](_0x5e14bd))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcb89=['locale','document','forward','registerPostFixer','model','isTouching','element','newRange','ELEMENT_TITLE','createRange','isCollapsed','editor','end','registerElementLabel','plugins','afterInit','has','title-content','removeMarker','start','isEqual','get','_descriptionFactory','updateMarker','schema'];(function(_0x99c559,_0xcb89f7){const _0x5893b6=function(_0x53194c){while(--_0x53194c){_0x99c559['push'](_0x99c559['shift']());}};_0x5893b6(++_0xcb89f7);}(_0xcb89,0x8c));const _0x5893=function(_0x99c559,_0xcb89f7){_0x99c559=_0x99c559-0x0;let _0x5893b6=_0xcb89[_0x99c559];return _0x5893b6;};import{Plugin as _0x2479e7}from'ckeditor5/src/core';import{getTranslation as _0x3d10c2}from'../utils/common-translations';export default class dt extends _0x2479e7{[_0x5893('0x0')](){const _0x2347c4=this[_0x5893('0x15')];if(!_0x2347c4[_0x5893('0x18')][_0x5893('0x1')]('Title'))return;const _0x42c880=_0x2347c4[_0x5893('0x18')][_0x5893('0x6')]('TrackChangesEditing');_0x42c880[_0x5893('0x7')][_0x5893('0x17')]('title-content',()=>_0x3d10c2(_0x2347c4[_0x5893('0xa')],_0x5893('0x12'))),_0x2347c4[_0x5893('0xe')][_0x5893('0xb')][_0x5893('0xd')](_0x381fc0=>{let _0x1cee01=!0x1;const _0x183647=Array['from'](_0x2347c4[_0x5893('0xe')][_0x5893('0xb')]['differ']['getChangedMarkers']());for(const {name:_0x214e1d,data:_0x556559}of _0x183647){const {group:_0x42c64f}=_0x42c880['_splitMarkerName'](_0x214e1d);if('suggestion'!==_0x42c64f||!_0x556559[_0x5893('0x11')])continue;const _0x1c2be9=_0x556559[_0x5893('0x11')],_0x2e2736=_0x1c2be9[_0x5893('0x16')]['nodeBefore'];if(!_0x2e2736||!_0x2e2736['is'](_0x5893('0x10'),_0x5893('0x2')))continue;if(!_0x1c2be9[_0x5893('0x4')][_0x5893('0xf')](_0x1c2be9[_0x5893('0x16')]))continue;const _0x2ecfba=_0x2347c4[_0x5893('0xe')][_0x5893('0x9')]['getNearestSelectionRange'](_0x1c2be9['end'],_0x5893('0xc'));if(_0x2ecfba&&_0x2ecfba[_0x5893('0x14')]){const _0x1886df=_0x381fc0[_0x5893('0x13')](_0x1c2be9[_0x5893('0x4')],_0x2ecfba[_0x5893('0x4')]);_0x1886df[_0x5893('0x5')](_0x1c2be9)||(_0x381fc0[_0x5893('0x8')](_0x214e1d,{'range':_0x1886df}),_0x1cee01=!0x0);}_0x1cee01||(_0x381fc0[_0x5893('0x3')](_0x214e1d),_0x1cee01=!0x0);}return _0x1cee01;});}}
23
+ const _0x1658=['document','_descriptionFactory','has','createRange','_splitMarkerName','getChangedMarkers','Title','forward','ELEMENT_TITLE','TrackChangesEditing','model','get','registerElementLabel','from','start','isCollapsed','getNearestSelectionRange','schema','updateMarker','end','newRange','title-content','isTouching','removeMarker','nodeBefore'];(function(_0x34f2ba,_0x1658f5){const _0x473fc6=function(_0x5df86d){while(--_0x5df86d){_0x34f2ba['push'](_0x34f2ba['shift']());}};_0x473fc6(++_0x1658f5);}(_0x1658,0x142));const _0x473f=function(_0x34f2ba,_0x1658f5){_0x34f2ba=_0x34f2ba-0x0;let _0x473fc6=_0x1658[_0x34f2ba];return _0x473fc6;};import{Plugin as _0x4ab924}from'ckeditor5/src/core';import{getTranslation as _0x23f868}from'../utils/common-translations';export default class dt extends _0x4ab924{['afterInit'](){const _0x2deee3=this['editor'];if(!_0x2deee3['plugins'][_0x473f('0x5')](_0x473f('0x9')))return;const _0x3a21f2=_0x2deee3['plugins'][_0x473f('0xe')](_0x473f('0xc'));_0x3a21f2[_0x473f('0x4')][_0x473f('0xf')](_0x473f('0x18'),()=>_0x23f868(_0x2deee3['locale'],_0x473f('0xb'))),_0x2deee3['model'][_0x473f('0x3')]['registerPostFixer'](_0x248c7a=>{let _0x1dc887=!0x1;const _0x514acd=Array[_0x473f('0x10')](_0x2deee3[_0x473f('0xd')]['document']['differ'][_0x473f('0x8')]());for(const {name:_0x7941b6,data:_0xabeef6}of _0x514acd){const {group:_0x59ee50}=_0x3a21f2[_0x473f('0x7')](_0x7941b6);if('suggestion'!==_0x59ee50||!_0xabeef6[_0x473f('0x17')])continue;const _0x2f26e4=_0xabeef6['newRange'],_0x45080f=_0x2f26e4[_0x473f('0x16')][_0x473f('0x2')];if(!_0x45080f||!_0x45080f['is']('element','title-content'))continue;if(!_0x2f26e4[_0x473f('0x11')][_0x473f('0x0')](_0x2f26e4[_0x473f('0x16')]))continue;const _0x3248e4=_0x2deee3[_0x473f('0xd')][_0x473f('0x14')][_0x473f('0x13')](_0x2f26e4['end'],_0x473f('0xa'));if(_0x3248e4&&_0x3248e4[_0x473f('0x12')]){const _0x13cfd3=_0x248c7a[_0x473f('0x6')](_0x2f26e4[_0x473f('0x11')],_0x3248e4['start']);_0x13cfd3['isEqual'](_0x2f26e4)||(_0x248c7a[_0x473f('0x15')](_0x7941b6,{'range':_0x13cfd3}),_0x1dc887=!0x0);}_0x1dc887||(_0x248c7a[_0x473f('0x1')](_0x7941b6),_0x1dc887=!0x0);}return _0x1dc887;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c6a=['afterInit','plugins','undo','redo','enableCommand','editor','get','TrackChangesEditing'];(function(_0x289ad3,_0x2c6a98){const _0x2c38d0=function(_0xe82be5){while(--_0xe82be5){_0x289ad3['push'](_0x289ad3['shift']());}};_0x2c38d0(++_0x2c6a98);}(_0x2c6a,0x10e));const _0x2c38=function(_0x289ad3,_0x2c6a98){_0x289ad3=_0x289ad3-0x0;let _0x2c38d0=_0x2c6a[_0x289ad3];return _0x2c38d0;};import{Plugin as _0xcab034}from'ckeditor5/src/core';export default class pt extends _0xcab034{[_0x2c38('0x2')](){const _0x38c090=this[_0x2c38('0x7')],_0x59c17c=_0x38c090[_0x2c38('0x3')][_0x2c38('0x0')](_0x2c38('0x1'));_0x38c090[_0x2c38('0x3')]['has']('UndoEditing')&&(_0x59c17c[_0x2c38('0x6')](_0x2c38('0x4')),_0x59c17c[_0x2c38('0x6')](_0x2c38('0x5')));}}
23
+ const _0x4ad5=['has','undo','UndoEditing','redo','TrackChangesEditing','editor','get','afterInit','enableCommand'];(function(_0xa65315,_0x4ad5ad){const _0x1286cb=function(_0x1c19a2){while(--_0x1c19a2){_0xa65315['push'](_0xa65315['shift']());}};_0x1286cb(++_0x4ad5ad);}(_0x4ad5,0x8f));const _0x1286=function(_0xa65315,_0x4ad5ad){_0xa65315=_0xa65315-0x0;let _0x1286cb=_0x4ad5[_0xa65315];return _0x1286cb;};import{Plugin as _0x1128f6}from'ckeditor5/src/core';export default class pt extends _0x1128f6{[_0x1286('0x8')](){const _0x38e4f4=this[_0x1286('0x6')],_0x5376ef=_0x38e4f4['plugins'][_0x1286('0x7')](_0x1286('0x5'));_0x38e4f4['plugins'][_0x1286('0x1')](_0x1286('0x3'))&&(_0x5376ef['enableCommand'](_0x1286('0x2')),_0x5376ef[_0x1286('0x0')](_0x1286('0x4')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1819=['elementEnd','writer','bindElementToMarker','markerName','createUIElement','hasAttribute','getItems','nextSibling','type','schema','createRangeOn','span','get','getCustomProperty','isContent','previousPosition','parent','isLimit','item','markerRange','plugins','mapper','element','start','getAttribute','ck-suggestion-marker--active','ck-suggestion-marker-','push','getWalker','listItem','name','activeMarkers'];(function(_0x9ec379,_0x181915){const _0x45c586=function(_0x495de7){while(--_0x495de7){_0x9ec379['push'](_0x9ec379['shift']());}};_0x45c586(++_0x181915);}(_0x1819,0x8d));const _0x45c5=function(_0x9ec379,_0x181915){_0x9ec379=_0x9ec379-0x0;let _0x45c586=_0x1819[_0x9ec379];return _0x45c586;};export function getRangesWithAttribute(_0x573ddc,_0x1f5b7d,_0x32cb4b){const _0x4a1f75=[];for(const _0x4b6768 of _0x1f5b7d[_0x45c5('0x19')]())_0x4b6768[_0x45c5('0x18')](_0x573ddc)&&_0x4a1f75[_0x45c5('0xe')](_0x32cb4b[_0x45c5('0x1d')](_0x4b6768));return _0x4a1f75;}export function getElementsAffectedByListItemRename(_0xddd4c1){const _0x321ba3=[];if(_0xddd4c1['is'](_0x45c5('0x9'),_0x45c5('0x10'))){let _0x58345c=_0xddd4c1[_0x45c5('0x1a')];for(;_0x58345c&&_0x58345c['is'](_0x45c5('0x9'),'listItem')&&_0x58345c[_0x45c5('0xb')]('listIndent')>0x0;)_0x321ba3[_0x45c5('0xe')](_0x58345c),_0x58345c=_0x58345c[_0x45c5('0x1a')];}return _0x321ba3;}export function downcastSplitMergeMarker(_0x10aebe,_0x486f55,{showActiveMarker:_0x307655=!0x0}={}){const _0x3ca3d0=_0x10aebe[_0x45c5('0x7')][_0x45c5('0x1f')]('TrackChangesEditing');return(_0x2fe89b,_0x1df856,_0xaba21)=>{if(!_0xaba21['consumable']['test'](_0x1df856[_0x45c5('0x6')],_0x2fe89b[_0x45c5('0x11')]))return;const _0xfa96a2=_0x1df856['markerRange'][_0x45c5('0xf')](),_0x59b71f=_0x1df856[_0x45c5('0x6')][_0x45c5('0xa')],_0x3c731c=_0x10aebe['model'][_0x45c5('0x1c')];let _0x356c84=null,_0xcc371b=null,_0x121ead=!0x1,_0x347b34=!0x1;for(const _0x4ca767 of _0xfa96a2){const _0x229345=_0x4ca767[_0x45c5('0x5')];_0x121ead=_0x121ead||_0x3c731c[_0x45c5('0x1')](_0x229345);const _0x562c5=_0xaba21[_0x45c5('0x8')]['toViewElement'](_0x229345);if(_0x562c5&&_0x562c5[_0x45c5('0x0')]('addHighlight'))return;_0x45c5('0x13')==_0x4ca767[_0x45c5('0x1b')]&&(_0x3c731c['isBlock'](_0x229345)&&!_0x3c731c[_0x45c5('0x4')](_0x229345)&&(_0x229345[_0x45c5('0x1a')]||_0x59b71f['isAtEnd']?_0x356c84&&_0x356c84[_0x45c5('0x3')]==_0x229345||(_0x356c84=_0x229345,_0x52d3f5(_0x4ca767[_0x45c5('0x2')]),_0x347b34=!0x0):_0xcc371b=_0xcc371b||_0x4ca767[_0x45c5('0x2')]));}function _0x52d3f5(_0x15ad80){const _0x5b4ce4=_0xaba21[_0x45c5('0x14')][_0x45c5('0x17')](_0x45c5('0x1e'),{'class':_0x45c5('0xd')+_0x486f55}),_0x2220b5=_0xaba21[_0x45c5('0x8')]['toViewPosition'](_0x15ad80);_0x307655&&_0x3ca3d0[_0x45c5('0x12')]['includes'](_0x1df856['markerName'])&&_0xaba21[_0x45c5('0x14')]['addClass'](_0x45c5('0xc'),_0x5b4ce4),_0xaba21[_0x45c5('0x14')]['insert'](_0x2220b5,_0x5b4ce4),_0xaba21['mapper'][_0x45c5('0x15')](_0x5b4ce4,_0x1df856[_0x45c5('0x16')]);}_0x121ead||_0x347b34||!_0xcc371b||_0x52d3f5(_0xcc371b);};}
23
+ const _0x13a0=['markerRange','createUIElement','getWalker','isContent','element','TrackChangesEditing','hasAttribute','elementEnd','getItems','start','get','getAttribute','markerName','previousPosition','createRangeOn','name','isLimit','bindElementToMarker','type','activeMarkers','ck-suggestion-marker-','nextSibling','listIndent','test','listItem','writer','plugins','addHighlight','parent','push','item','ck-suggestion-marker--active','mapper','schema','span'];(function(_0x2afbea,_0x13a0ab){const _0x5cb988=function(_0x5ad923){while(--_0x5ad923){_0x2afbea['push'](_0x2afbea['shift']());}};_0x5cb988(++_0x13a0ab);}(_0x13a0,0x118));const _0x5cb9=function(_0x2afbea,_0x13a0ab){_0x2afbea=_0x2afbea-0x0;let _0x5cb988=_0x13a0[_0x2afbea];return _0x5cb988;};export function getRangesWithAttribute(_0x34114a,_0xe006,_0xe31cc1){const _0x22078b=[];for(const _0x129a5e of _0xe006[_0x5cb9('0x8')]())_0x129a5e[_0x5cb9('0x6')](_0x34114a)&&_0x22078b[_0x5cb9('0x1d')](_0xe31cc1[_0x5cb9('0xe')](_0x129a5e));return _0x22078b;}export function getElementsAffectedByListItemRename(_0x4224b3){const _0x13adf5=[];if(_0x4224b3['is']('element',_0x5cb9('0x18'))){let _0x3e0364=_0x4224b3[_0x5cb9('0x15')];for(;_0x3e0364&&_0x3e0364['is'](_0x5cb9('0x4'),'listItem')&&_0x3e0364[_0x5cb9('0xb')](_0x5cb9('0x16'))>0x0;)_0x13adf5['push'](_0x3e0364),_0x3e0364=_0x3e0364[_0x5cb9('0x15')];}return _0x13adf5;}export function downcastSplitMergeMarker(_0x3a680a,_0xc82ef0,{showActiveMarker:_0xe0baa1=!0x0}={}){const _0x3bb192=_0x3a680a[_0x5cb9('0x1a')][_0x5cb9('0xa')](_0x5cb9('0x5'));return(_0xf4d68b,_0x5f2362,_0x77cae3)=>{if(!_0x77cae3['consumable'][_0x5cb9('0x17')](_0x5f2362[_0x5cb9('0x0')],_0xf4d68b[_0x5cb9('0xf')]))return;const _0x253430=_0x5f2362[_0x5cb9('0x0')][_0x5cb9('0x2')](),_0x3a6f6f=_0x5f2362['markerRange'][_0x5cb9('0x9')],_0x1c734e=_0x3a680a['model'][_0x5cb9('0x21')];let _0x1f7da1=null,_0x394592=null,_0x115b5e=!0x1,_0x59fb5b=!0x1;for(const _0x5731d6 of _0x253430){const _0x1d0d8c=_0x5731d6[_0x5cb9('0x1e')];_0x115b5e=_0x115b5e||_0x1c734e[_0x5cb9('0x3')](_0x1d0d8c);const _0x24fea4=_0x77cae3[_0x5cb9('0x20')]['toViewElement'](_0x1d0d8c);if(_0x24fea4&&_0x24fea4['getCustomProperty'](_0x5cb9('0x1b')))return;_0x5cb9('0x7')==_0x5731d6[_0x5cb9('0x12')]&&(_0x1c734e['isBlock'](_0x1d0d8c)&&!_0x1c734e[_0x5cb9('0x10')](_0x1d0d8c)&&(_0x1d0d8c[_0x5cb9('0x15')]||_0x3a6f6f['isAtEnd']?_0x1f7da1&&_0x1f7da1[_0x5cb9('0x1c')]==_0x1d0d8c||(_0x1f7da1=_0x1d0d8c,_0x1ca8cf(_0x5731d6[_0x5cb9('0xd')]),_0x59fb5b=!0x0):_0x394592=_0x394592||_0x5731d6[_0x5cb9('0xd')]));}function _0x1ca8cf(_0x485ea0){const _0x3196e7=_0x77cae3['writer'][_0x5cb9('0x1')](_0x5cb9('0x22'),{'class':_0x5cb9('0x14')+_0xc82ef0}),_0x580e58=_0x77cae3[_0x5cb9('0x20')]['toViewPosition'](_0x485ea0);_0xe0baa1&&_0x3bb192[_0x5cb9('0x13')]['includes'](_0x5f2362[_0x5cb9('0xc')])&&_0x77cae3[_0x5cb9('0x19')]['addClass'](_0x5cb9('0x1f'),_0x3196e7),_0x77cae3['writer']['insert'](_0x580e58,_0x3196e7),_0x77cae3[_0x5cb9('0x20')][_0x5cb9('0x11')](_0x3196e7,_0x5f2362[_0x5cb9('0xc')]);}_0x115b5e||_0x59fb5b||!_0x394592||_0x1ca8cf(_0x394592);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ceb=['author','clear','commentThread','nodeAfter','addMarker','onAccept','accept','type','getItems','head','length','_onDiscard','start','attributes','isInContent','getMarkerNames','_onAccept','getFirstMarker','getMarkers','_saved','_onAttributesChange','getAllAdjacentSuggestions','set','getRanges','split','push','filter','decorate','isIntersecting','getRange','end','getContainedElement','isIntersectingWithRange','size','subType','next','addMarkerName','getMultiRangeId','substr','_model','reduce','_markerNames','data','getFirstRange','from','nodeBefore','markers','map','previous','discard','isMultiRange','removeMarker','get','change','removeMarkers','toJSON','hasComments','removeAttribute'];(function(_0x18957d,_0x3ceb3d){const _0x4c8b56=function(_0x287675){while(--_0x287675){_0x18957d['push'](_0x18957d['shift']());}};_0x4c8b56(++_0x3ceb3d);}(_0x3ceb,0xcb));const _0x4c8b=function(_0x18957d,_0x3ceb3d){_0x18957d=_0x18957d-0x0;let _0x4c8b56=_0x3ceb[_0x18957d];return _0x4c8b56;};import{Element as _0x35b3df}from'ckeditor5/src/engine';import{ObservableMixin as _0x131e64,mix as _0x2e8f74,uid as _0x2cba40}from'ckeditor5/src/utils';import{cloneDeep as _0x357bcf,isEqual as _0x5305f2,set as _0x142d6c,unset as _0x3b3aa5}from'lodash-es';export default class o{constructor(_0x593ca9,_0x1365d0){this['id']=_0x1365d0['id'],this[_0x4c8b('0x24')]=_0x1365d0[_0x4c8b('0x24')],this[_0x4c8b('0x5')]=_0x1365d0[_0x4c8b('0x5')]||null,this[_0x4c8b('0x1d')]=_0x1365d0[_0x4c8b('0x1d')],this['externalAuthor']=_0x1365d0['externalAuthor'],this[_0x4c8b('0xd')]=null,this['_model']=_0x593ca9,this[_0x4c8b('0x2d')]=_0x1365d0[_0x4c8b('0x22')],this['_onDiscard']=_0x1365d0['onDiscard'],this[_0x4c8b('0x31')]=_0x1365d0['onAttributesChange'],this[_0x4c8b('0xc')]=new Set(),this[_0x4c8b('0x33')]('createdAt',null),this[_0x4c8b('0x33')](_0x4c8b('0x2a'),_0x1365d0[_0x4c8b('0x2a')]||{}),this[_0x4c8b('0x33')](_0x4c8b('0x13'),null),this[_0x4c8b('0x33')](_0x4c8b('0x6'),null),this[_0x4c8b('0x33')](_0x4c8b('0x1f'),null),this[_0x4c8b('0x33')](_0x4c8b('0x30'),!0x1),this[_0x4c8b('0x38')](_0x4c8b('0x23')),this[_0x4c8b('0x38')]('discard');}get[_0x4c8b('0x26')](){let _0xd27067=this;for(;_0xd27067[_0x4c8b('0x13')];)_0xd27067=_0xd27067['previous'];return _0xd27067;}get[_0x4c8b('0x1b')](){return!!this[_0x4c8b('0x1f')]&&this[_0x4c8b('0x1f')][_0x4c8b('0x27')]>0x0;}get[_0x4c8b('0x15')](){if(0x0==this[_0x4c8b('0xc')][_0x4c8b('0x4')])return!0x1;return 0x6==Array[_0x4c8b('0xf')](this[_0x4c8b('0xc')])[0x0][_0x4c8b('0x35')](':')[_0x4c8b('0x27')];}get[_0x4c8b('0x2b')](){return null!==this[_0x4c8b('0x2e')]();}[_0x4c8b('0x7')](_0x2e7383){this[_0x4c8b('0xc')]['add'](_0x2e7383);}[_0x4c8b('0x2c')](){return Array[_0x4c8b('0xf')](this[_0x4c8b('0xc')]);}['getMarkers'](){return this[_0x4c8b('0x2c')]()[_0x4c8b('0x12')](_0x416e2b=>this[_0x4c8b('0xa')][_0x4c8b('0x11')][_0x4c8b('0x17')](_0x416e2b))[_0x4c8b('0x37')](_0x1d4b46=>_0x1d4b46);}['getFirstMarker'](){return this[_0x4c8b('0x2f')]()[0x0]||null;}[_0x4c8b('0x19')](){this[_0x4c8b('0xa')]['change'](_0xcf604=>{for(const _0x13ac12 of this[_0x4c8b('0x2f')]())_0xcf604[_0x4c8b('0x16')](_0x13ac12);}),this['_markerNames'][_0x4c8b('0x1e')]();}[_0x4c8b('0x16')](_0x320d24){this[_0x4c8b('0xa')][_0x4c8b('0x18')](_0x2d528c=>{_0x2d528c[_0x4c8b('0x16')](_0x320d24);}),this[_0x4c8b('0xc')]['delete'](_0x320d24);}['addRange'](_0x4c4355){const _0x5e7335='suggestion:'+this[_0x4c8b('0x24')]+':'+this[_0x4c8b('0x5')]+':'+this['id']+':'+this[_0x4c8b('0x1d')]['id']+':'+o[_0x4c8b('0x8')]();this[_0x4c8b('0x7')](_0x5e7335),this[_0x4c8b('0xa')]['change'](_0x505086=>{_0x505086[_0x4c8b('0x21')](_0x5e7335,{'range':_0x4c4355,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4c8b('0x3')](_0x2bb845){for(const _0x3f5472 of this[_0x4c8b('0x34')]())if(_0x3f5472[_0x4c8b('0x39')](_0x2bb845))return!0x0;return!0x1;}[_0x4c8b('0x34')](){return this[_0x4c8b('0x2f')]()[_0x4c8b('0x12')](_0x1a264d=>_0x1a264d[_0x4c8b('0x0')]());}[_0x4c8b('0x25')](){return this[_0x4c8b('0x34')]()[_0x4c8b('0xb')]((_0x184797,_0x267bed)=>[..._0x184797,..._0x267bed[_0x4c8b('0x25')]()],[]);}[_0x4c8b('0xe')](){return this[_0x4c8b('0x2e')]()[_0x4c8b('0x0')]();}[_0x4c8b('0x2')](){const _0xf61b82=this['getRanges']();if(0x1!=_0xf61b82['length'])return null;const _0x3d8661=_0xf61b82[0x0],_0x3b4e15=_0x3d8661[_0x4c8b('0x29')][_0x4c8b('0x20')],_0x5e0f5e=_0x3d8661[_0x4c8b('0x1')][_0x4c8b('0x10')];return _0x3b4e15 instanceof _0x35b3df?_0x3b4e15!=_0x5e0f5e?null:_0x3b4e15:null;}[_0x4c8b('0x23')](){this[_0x4c8b('0x2d')](this[_0x4c8b('0x34')](),this[_0x4c8b('0xd')],this['attributes']),this['removeMarkers']();}[_0x4c8b('0x14')](){this[_0x4c8b('0x28')](this['getRanges'](),this[_0x4c8b('0xd')],this[_0x4c8b('0x2a')]),this[_0x4c8b('0x19')]();}[_0x4c8b('0x32')](){const _0x45d742=[];let _0x4ad1d6=this[_0x4c8b('0x26')];for(;_0x4ad1d6;)_0x45d742[_0x4c8b('0x36')](_0x4ad1d6),_0x4ad1d6=_0x4ad1d6[_0x4c8b('0x6')];return _0x45d742;}['setAttribute'](_0x458eeb,_0x187ed9){const _0x12c31a=_0x357bcf(this[_0x4c8b('0x2a')]);_0x142d6c(_0x12c31a,_0x458eeb,_0x187ed9),_0x5305f2(_0x12c31a,this['attributes'])||(this[_0x4c8b('0x2a')]=_0x12c31a,this[_0x4c8b('0x31')](_0x12c31a));}[_0x4c8b('0x1c')](_0x9d5f30){const _0x5809ca=_0x357bcf(this[_0x4c8b('0x2a')]);_0x3b3aa5(_0x5809ca,_0x9d5f30),_0x5305f2(_0x5809ca,this[_0x4c8b('0x2a')])||(this[_0x4c8b('0x2a')]=_0x5809ca,this['_onAttributesChange'](this['attributes']));}[_0x4c8b('0x1a')](){return{'id':this['id'],'type':this[_0x4c8b('0x5')]?this[_0x4c8b('0x24')]+':'+this['subType']:this['type'],'authorId':this['author']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this[_0x4c8b('0xd')],'attributes':this[_0x4c8b('0x2a')]};}static[_0x4c8b('0x8')](){return _0x2cba40()[_0x4c8b('0x9')](0x1,0x5);}}_0x2e8f74(o,_0x131e64);
23
+ const _0x566a=['subType','_saved','author','isInContent','set','map','toJSON','data','_model','getItems','add','end','accept','previous','isIntersecting','getMarkerNames','addRange','getFirstMarker','onAccept','filter','getMultiRangeId','decorate','_onAccept','get','push','_onAttributesChange','createdAt','change','delete','size','getRange','isMultiRange','creator','split','removeAttribute','removeMarkers','from','getMarkers','removeMarker','getRanges','onAttributesChange','type','@external','next','markers','_onDiscard','length','addMarkerName','suggestion:','getContainedElement','clear','attributes','head','commentThread','_markerNames','start','hasComments','setAttribute','onDiscard','discard','getFirstRange','addMarker'];(function(_0x4364e2,_0x566aad){const _0x374fa3=function(_0x438740){while(--_0x438740){_0x4364e2['push'](_0x4364e2['shift']());}};_0x374fa3(++_0x566aad);}(_0x566a,0x17f));const _0x374f=function(_0x4364e2,_0x566aad){_0x4364e2=_0x4364e2-0x0;let _0x374fa3=_0x566a[_0x4364e2];return _0x374fa3;};import{Element as _0x381cea}from'ckeditor5/src/engine';import{ObservableMixin as _0x2c01aa,mix as _0x59292e,uid as _0x5bb4bc}from'ckeditor5/src/utils';import{cloneDeep as _0x48c9af,isEqual as _0x41bdf9,set as _0x777d35,unset as _0x30208f}from'lodash-es';export default class o{constructor(_0x4e9f3d,_0x75a3e6){this['id']=_0x75a3e6['id'],this[_0x374f('0x1e')]=_0x75a3e6[_0x374f('0x1e')],this[_0x374f('0x33')]=_0x75a3e6[_0x374f('0x33')]||null,this[_0x374f('0x35')]=_0x75a3e6[_0x374f('0x35')],this[_0x374f('0x15')]=_0x75a3e6[_0x374f('0x15')]||_0x75a3e6[_0x374f('0x35')],this['isExternal']=Boolean(_0x75a3e6[_0x374f('0x28')]&&_0x75a3e6[_0x374f('0x28')][_0x374f('0x1f')]),this[_0x374f('0x3a')]=null,this[_0x374f('0x3b')]=_0x4e9f3d,this[_0x374f('0xb')]=_0x75a3e6[_0x374f('0x7')],this[_0x374f('0x22')]=_0x75a3e6[_0x374f('0x2f')],this[_0x374f('0xe')]=_0x75a3e6[_0x374f('0x1d')],this[_0x374f('0x2b')]=new Set(),this[_0x374f('0xf')]=null,this[_0x374f('0x37')]('authoredAt',null),this[_0x374f('0x37')](_0x374f('0x28'),_0x75a3e6[_0x374f('0x28')]||{}),this[_0x374f('0x37')]('previous',null),this[_0x374f('0x37')]('next',null),this[_0x374f('0x37')](_0x374f('0x2a'),null),this[_0x374f('0x37')](_0x374f('0x34'),!0x1),this['decorate'](_0x374f('0x1')),this[_0x374f('0xa')](_0x374f('0x30'));}get['head'](){let _0x187a05=this;for(;_0x187a05[_0x374f('0x2')];)_0x187a05=_0x187a05['previous'];return _0x187a05;}get[_0x374f('0x2d')](){return!!this[_0x374f('0x2a')]&&this['commentThread'][_0x374f('0x23')]>0x0;}get[_0x374f('0x14')](){if(0x0==this['_markerNames'][_0x374f('0x12')])return!0x1;return 0x6==Array[_0x374f('0x19')](this[_0x374f('0x2b')])[0x0][_0x374f('0x16')](':')['length'];}get[_0x374f('0x36')](){return null!==this[_0x374f('0x6')]();}['addMarkerName'](_0x1a87e1){this[_0x374f('0x2b')][_0x374f('0x3d')](_0x1a87e1);}[_0x374f('0x4')](){return Array[_0x374f('0x19')](this[_0x374f('0x2b')]);}['getMarkers'](){return this[_0x374f('0x4')]()[_0x374f('0x38')](_0x4a5869=>this[_0x374f('0x3b')][_0x374f('0x21')][_0x374f('0xc')](_0x4a5869))[_0x374f('0x8')](_0x26596b=>_0x26596b);}['getFirstMarker'](){return this[_0x374f('0x1a')]()[0x0]||null;}[_0x374f('0x18')](){this['_model'][_0x374f('0x10')](_0xf0afd1=>{for(const _0x3817d0 of this[_0x374f('0x1a')]())_0xf0afd1[_0x374f('0x1b')](_0x3817d0);}),this[_0x374f('0x2b')][_0x374f('0x27')]();}[_0x374f('0x1b')](_0x1819f1){this['_model'][_0x374f('0x10')](_0x5b1f09=>{_0x5b1f09['removeMarker'](_0x1819f1);}),this[_0x374f('0x2b')][_0x374f('0x11')](_0x1819f1);}[_0x374f('0x5')](_0x30ebcb){const _0x42b0ea=_0x374f('0x25')+this['type']+':'+this[_0x374f('0x33')]+':'+this['id']+':'+this[_0x374f('0x15')]['id']+':'+o[_0x374f('0x9')]();this[_0x374f('0x24')](_0x42b0ea),this['_model'][_0x374f('0x10')](_0x127c66=>{_0x127c66[_0x374f('0x32')](_0x42b0ea,{'range':_0x30ebcb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1f6d40){for(const _0x169a92 of this[_0x374f('0x1c')]())if(_0x169a92[_0x374f('0x3')](_0x1f6d40))return!0x0;return!0x1;}[_0x374f('0x1c')](){return this['getMarkers']()[_0x374f('0x38')](_0x4ee1da=>_0x4ee1da['getRange']());}[_0x374f('0x3c')](){return this['getRanges']()['reduce']((_0x55761f,_0x166c0c)=>[..._0x55761f,..._0x166c0c[_0x374f('0x3c')]()],[]);}[_0x374f('0x31')](){return this[_0x374f('0x6')]()[_0x374f('0x13')]();}[_0x374f('0x26')](){const _0x4af99f=this['getRanges']();if(0x1!=_0x4af99f[_0x374f('0x23')])return null;const _0x581b26=_0x4af99f[0x0],_0xff0a19=_0x581b26[_0x374f('0x2c')]['nodeAfter'],_0x46b3e4=_0x581b26[_0x374f('0x0')]['nodeBefore'];return _0xff0a19 instanceof _0x381cea?_0xff0a19!=_0x46b3e4?null:_0xff0a19:null;}[_0x374f('0x1')](){this[_0x374f('0xb')](this[_0x374f('0x1c')](),this[_0x374f('0x3a')],this['attributes']),this[_0x374f('0x18')]();}['discard'](){this[_0x374f('0x22')](this[_0x374f('0x1c')](),this[_0x374f('0x3a')],this[_0x374f('0x28')]),this[_0x374f('0x18')]();}['getAllAdjacentSuggestions'](){const _0x10c8d7=[];let _0x42e34c=this[_0x374f('0x29')];for(;_0x42e34c;)_0x10c8d7[_0x374f('0xd')](_0x42e34c),_0x42e34c=_0x42e34c[_0x374f('0x20')];return _0x10c8d7;}[_0x374f('0x2e')](_0x449a87,_0x908522){const _0x32d1ea=_0x48c9af(this[_0x374f('0x28')]);_0x777d35(_0x32d1ea,_0x449a87,_0x908522),_0x41bdf9(_0x32d1ea,this[_0x374f('0x28')])||(this[_0x374f('0x28')]=_0x32d1ea,this[_0x374f('0xe')](_0x32d1ea));}[_0x374f('0x17')](_0x4a53ec){const _0x4a42fa=_0x48c9af(this[_0x374f('0x28')]);_0x30208f(_0x4a42fa,_0x4a53ec),_0x41bdf9(_0x4a42fa,this[_0x374f('0x28')])||(this[_0x374f('0x28')]=_0x4a42fa,this[_0x374f('0xe')](this[_0x374f('0x28')]));}[_0x374f('0x39')](){return{'id':this['id'],'type':this['subType']?this[_0x374f('0x1e')]+':'+this[_0x374f('0x33')]:this[_0x374f('0x1e')],'authorId':this[_0x374f('0x15')]['id'],'createdAt':this[_0x374f('0xf')],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x374f('0x28')]};}static[_0x374f('0x9')](){return _0x5bb4bc()['substr'](0x1,0x5);}}_0x59292e(o,_0x2c01aa);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3eda=['insertion','registerElementLabel','data','_resolveDescriptionItems','*Remove:*\x20%0','_locale','softBreak','item','indexOf','isEqual','addObject','start','pop','isInContent','registerDescriptionCallback','removeObject','removeEmptyContainer','Container','nextSibling','isObject','ELEMENT_SPACE','text','elementEnd','length','deletion','_customCallbacks','removeContainer','_itemLabels','getDescriptions','*Insert:*\x20%0','getFirstRange','set','previousSibling','quantity','_schema','match','$1\x20$2','textProxy','add','remove','push','addEmptyContainer','elementStart','type','Object','*Split:*\x20%0','replace','addContainer','$text','_addDescriptionItems','function','name','end','isEmpty','getItemLabel'];(function(_0x20916c,_0x3eda56){const _0x44891b=function(_0x24426d){while(--_0x24426d){_0x20916c['push'](_0x20916c['shift']());}};_0x44891b(++_0x3eda56);}(_0x3eda,0xec));const _0x4489=function(_0x20916c,_0x3eda56){_0x20916c=_0x20916c-0x0;let _0x44891b=_0x3eda[_0x20916c];return _0x44891b;};import{getTranslation as _0x17a0b7}from'./utils/common-translations';export default class l{constructor(_0x2716a7,_0x1b0b2d){this['_customCallbacks']=[],this[_0x4489('0xb')]=new Map(),this[_0x4489('0x12')]=_0x2716a7,this[_0x4489('0x2c')]=_0x1b0b2d;}[_0x4489('0xc')](_0x4e39c1){const _0x432c3d=[];for(let _0x55459f=0x0;_0x55459f<_0x4e39c1[_0x4489('0x7')];_0x55459f++){const _0x1b8afd=_0x4e39c1[_0x55459f];if(!_0x1b8afd[_0x4489('0x34')])continue;let _0x48bb93=!0x1;for(const _0x1b731d of this[_0x4489('0x9')]){const _0x23fa7e=_0x1b731d(_0x1b8afd);if(_0x23fa7e){_0x23fa7e[_0x4489('0x1b')]&&_0x432c3d['push'](_0x23fa7e),_0x48bb93=!0x0;break;}}if(!_0x48bb93){this[_0x4489('0x21')](_0x432c3d,_0x1b8afd);const _0x33c38f=_0x4e39c1[_0x55459f+0x1];if(_0x33c38f&&!_0x1b8afd[_0x4489('0xe')]()[_0x4489('0x24')][_0x4489('0x30')](_0x33c38f[_0x4489('0xe')]()[_0x4489('0x32')])){const _0xa8552b=_0x432c3d[_0x432c3d['length']-0x1],_0x3c0ff3=_0x4489('0x27')==_0x1b8afd[_0x4489('0x1b')]?_0x4489('0x16'):_0x4489('0x17');_0xa8552b&&'text'==_0xa8552b[_0x4489('0x1b')]&&(_0xa8552b[_0x3c0ff3]+='\x0a');}}}return this[_0x4489('0x2a')](_0x432c3d);}[_0x4489('0x35')](_0x49f93f){this[_0x4489('0x9')][_0x4489('0x18')](_0x49f93f);}[_0x4489('0x28')](_0x31b191,_0xa28b35){this[_0x4489('0xb')][_0x4489('0xf')](_0x31b191,_0xa28b35);}[_0x4489('0x26')](_0x2667ff,_0x3be075=0x1){const _0x4d925a=this[_0x4489('0xb')]['get'](_0x2667ff)||_0x2667ff;return _0x4489('0x22')==typeof _0x4d925a?_0x4d925a(_0x3be075):0x1!==_0x3be075?_0x3be075+'\x20'+_0x4d925a+'s':''+_0x4d925a;}[_0x4489('0x21')](_0x5448e6,_0x16db9e){const _0x95c072=_0x16db9e[_0x4489('0xe')]()['getWalker'](),_0x277561=_0x4489('0x27')==_0x16db9e['type']?'add':_0x4489('0x17');for(const _0x12500b of _0x95c072){const _0x3bd28c=_0x12500b['item'],_0x410fed=_0x5448e6[_0x5448e6[_0x4489('0x7')]-0x1];if(_0x3bd28c['is'](_0x4489('0x15')))_0x410fed&&_0x410fed[_0x4489('0x1b')]['indexOf']('Container')>-0x1&&_0x5448e6[_0x4489('0x33')](),_0x410fed&&_0x4489('0x5')==_0x410fed[_0x4489('0x1b')]?_0x410fed[_0x277561]+=_0x3bd28c[_0x4489('0x29')]:_0x5448e6[_0x4489('0x18')]({'type':_0x4489('0x5'),'add':_0x4489('0x16')==_0x277561?_0x3bd28c[_0x4489('0x29')]:'','remove':_0x4489('0x17')==_0x277561?_0x3bd28c['data']:''});else{if(this['_schema'][_0x4489('0x3')](_0x3bd28c)){if(_0x410fed&&_0x410fed[_0x4489('0x1b')][_0x4489('0x2f')](_0x4489('0x1'))>-0x1&&_0x5448e6[_0x4489('0x33')](),_0x4489('0x6')==_0x12500b[_0x4489('0x1b')])continue;_0x410fed&&_0x410fed[_0x4489('0x1b')]==_0x277561+_0x4489('0x1c')&&_0x410fed[_0x4489('0x23')]==_0x3bd28c[_0x4489('0x23')]?_0x410fed[_0x4489('0x11')]++:_0x5448e6[_0x4489('0x18')]({'type':_0x277561+_0x4489('0x1c'),'name':_0x3bd28c['name'],'quantity':0x1}),_0x95c072['skip'](_0x40d0f2=>!('elementEnd'==_0x40d0f2[_0x4489('0x1b')]&&_0x40d0f2[_0x4489('0x2e')]==_0x3bd28c));}else{if(this['_schema']['checkChild'](_0x3bd28c,_0x4489('0x20'))||_0x3bd28c['is']('element',_0x4489('0x2d'))){if(_0x4489('0x16')==_0x277561&&_0x4489('0x1a')==_0x12500b['type']||_0x4489('0x17')==_0x277561&&'elementEnd'==_0x12500b[_0x4489('0x1b')])continue;if(_0x410fed&&-0x1==_0x410fed[_0x4489('0x1b')]['indexOf'](_0x4489('0x1'))){'text'==_0x410fed['type']&&(_0x410fed[_0x277561]+='\x0a');continue;}let _0x1a2e32;if(_0x1a2e32=_0x4489('0x16')==_0x277561?_0x3bd28c[_0x4489('0x2')]&&!this[_0x4489('0x12')]['isObject'](_0x3bd28c[_0x4489('0x2')])?_0x3bd28c[_0x4489('0x2')]:null:_0x3bd28c[_0x4489('0x10')]&&!this[_0x4489('0x12')][_0x4489('0x3')](_0x3bd28c[_0x4489('0x10')])?_0x3bd28c[_0x4489('0x10')]:null,_0x3bd28c[_0x4489('0x25')]||_0x1a2e32&&_0x1a2e32[_0x4489('0x25')]){const _0x27687f=_0x1a2e32&&_0x1a2e32['isEmpty']?_0x1a2e32[_0x4489('0x23')]:_0x3bd28c['name'];_0x410fed&&_0x410fed[_0x4489('0x1b')]==_0x277561+'EmptyContainer'&&_0x410fed['name']==_0x27687f?_0x410fed[_0x4489('0x11')]++:_0x5448e6['push']({'type':_0x277561+'EmptyContainer','name':_0x27687f,'quantity':0x1});}else _0x5448e6[_0x4489('0x18')]({'type':_0x277561+_0x4489('0x1'),'name':_0x3bd28c['name']});}}}}}[_0x4489('0x2a')](_0x53f08b){const _0x5cffb6=this[_0x4489('0x2c')],_0x20d486=[];for(const _0x474822 of _0x53f08b){switch(_0x474822[_0x4489('0x1b')]){case'text':if(_0x474822['add']=_0x474822[_0x4489('0x16')][_0x4489('0x1e')](/(\S)\u000A+(\S)/g,_0x4489('0x14'))['replace'](/\u000A/g,''),_0x474822['remove']=_0x474822[_0x4489('0x17')][_0x4489('0x1e')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x4489('0x1e')](/\u000A/g,''),''!=_0x474822[_0x4489('0x16')]&&''!=_0x474822[_0x4489('0x17')]){_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x1e'),'content':_0x17a0b7(_0x5cffb6,'REPLACE_TEXT',['\x22'+_0x474822[_0x4489('0x17')]+'\x22','\x22'+_0x474822[_0x4489('0x16')]+'\x22'])});continue;}if(null!=_0x474822[_0x4489('0x16')]['match'](/^ +$/)){_0x20d486['push']({'type':'insertion','content':_0x17a0b7(_0x5cffb6,'*Insert:*\x20%0',_0x17a0b7(_0x5cffb6,_0x4489('0x4'),_0x474822[_0x4489('0x16')][_0x4489('0x7')]))});continue;}if(null!=_0x474822[_0x4489('0x17')][_0x4489('0x13')](/^ +$/)){_0x20d486[_0x4489('0x18')]({'type':'deletion','content':_0x17a0b7(_0x5cffb6,_0x4489('0x2b'),_0x17a0b7(_0x5cffb6,_0x4489('0x4'),_0x474822[_0x4489('0x17')]['length']))});continue;}if(''!=_0x474822[_0x4489('0x16')]){_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x27'),'content':_0x17a0b7(_0x5cffb6,'*Insert:*\x20%0','\x22'+_0x474822[_0x4489('0x16')]+'\x22')});continue;}_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x8'),'content':_0x17a0b7(_0x5cffb6,_0x4489('0x2b'),'\x22'+_0x474822[_0x4489('0x17')]+'\x22')});continue;case _0x4489('0x19'):case _0x4489('0x31'):_0x20d486[_0x4489('0x18')]({'type':'insertion','content':_0x17a0b7(_0x5cffb6,_0x4489('0xd'),this[_0x4489('0x26')](_0x474822['name'],_0x474822[_0x4489('0x11')]))});continue;case _0x4489('0x0'):case _0x4489('0x36'):_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x8'),'content':_0x17a0b7(_0x5cffb6,_0x4489('0x2b'),this[_0x4489('0x26')](_0x474822[_0x4489('0x23')],_0x474822[_0x4489('0x11')]))});continue;case _0x4489('0x1f'):_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x27'),'content':_0x17a0b7(_0x5cffb6,_0x4489('0x1d'),this[_0x4489('0x26')](_0x474822[_0x4489('0x23')],_0x474822[_0x4489('0x11')]))});continue;case _0x4489('0xa'):_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x8'),'content':_0x17a0b7(_0x5cffb6,'*Merge:*\x20%0',this['getItemLabel'](_0x474822[_0x4489('0x23')],_0x474822['quantity']))});continue;}_0x20d486[_0x4489('0x18')](_0x474822);}return _0x20d486;}}
23
+ const _0x251a=['textProxy','matchingCallback','deletion','nextSibling','add','softBreak','removeContainer','replace','_itemLabels','isEqual','label','Object','get','start','addObject','isObject','*Insert:*\x20%0','indexOf','_addDescriptionItems','previousSibling','_itemLabelsCallbacks','elementEnd','match','registerDescriptionCallback','removeEmptyContainer','isEmpty','insertion','quantity','_resolveDescriptionItems','REPLACE_TEXT','_locale','$text','$1\x20$2','getFirstRange','_schema','_customCallbacks','addContainer','push','getWalker','type','end','getItemLabel','element','pop','*Merge:*\x20%0','set','data','name','elementStart','registerElementLabel','isInContent','text','remove','length','checkChild','function','item','skip','EmptyContainer','removeObject','Container','ELEMENT_SPACE','*Split:*\x20%0'];(function(_0x241d9b,_0x251afc){const _0x423609=function(_0x1d4ad8){while(--_0x1d4ad8){_0x241d9b['push'](_0x241d9b['shift']());}};_0x423609(++_0x251afc);}(_0x251a,0xfb));const _0x4236=function(_0x241d9b,_0x251afc){_0x241d9b=_0x241d9b-0x0;let _0x423609=_0x251a[_0x241d9b];return _0x423609;};import{getTranslation as _0x492f79}from'./utils/common-translations';import{priorities as _0x23089b,insertToPriorityArray as _0x1daef4}from'ckeditor5/src/utils';export default class f{constructor(_0x11909e,_0x4bb8ff){this['_customCallbacks']=[],this[_0x4236('0x9')]=new Map(),this[_0x4236('0x15')]=[],this['_schema']=_0x11909e,this[_0x4236('0x1f')]=_0x4bb8ff;}['getDescriptions'](_0x1ec78b){const _0x30fc89=[];for(let _0x39768b=0x0;_0x39768b<_0x1ec78b[_0x4236('0x36')];_0x39768b++){const _0x57b2d8=_0x1ec78b[_0x39768b];if(!_0x57b2d8[_0x4236('0x33')])continue;let _0x3b75a5=!0x1;for(const _0x5ec5b6 of this[_0x4236('0x24')]){const _0x5647c9=_0x5ec5b6(_0x57b2d8);if(_0x5647c9){_0x5647c9[_0x4236('0x28')]&&_0x30fc89[_0x4236('0x26')](_0x5647c9),_0x3b75a5=!0x0;break;}}if(!_0x3b75a5){this[_0x4236('0x13')](_0x30fc89,_0x57b2d8);const _0x1af32f=_0x1ec78b[_0x39768b+0x1];if(_0x1af32f&&!_0x57b2d8[_0x4236('0x22')]()[_0x4236('0x29')][_0x4236('0xa')](_0x1af32f[_0x4236('0x22')]()[_0x4236('0xe')])){const _0x4fb4eb=_0x30fc89[_0x30fc89['length']-0x1],_0x1ee508=_0x4236('0x1b')==_0x57b2d8[_0x4236('0x28')]?_0x4236('0x5'):_0x4236('0x35');_0x4fb4eb&&_0x4236('0x34')==_0x4fb4eb[_0x4236('0x28')]&&(_0x4fb4eb[_0x1ee508]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x30fc89);}[_0x4236('0x18')](_0x145d97){this[_0x4236('0x24')]['push'](_0x145d97);}[_0x4236('0x32')](_0x510889,_0x49ef31,_0x4be1db=_0x23089b['normal']){_0x4236('0x38')==typeof _0x510889?_0x1daef4(this[_0x4236('0x15')],{'matchingCallback':_0x510889,'label':_0x49ef31,'priority':_0x4be1db}):this[_0x4236('0x9')][_0x4236('0x2e')](_0x510889,_0x49ef31);}[_0x4236('0x2a')](_0x24b033,_0x5b4ea8=0x1){let _0x4734f3;for(const _0x48f38f of this['_itemLabelsCallbacks'])if(_0x48f38f[_0x4236('0x2')](_0x24b033)){_0x4734f3=_0x48f38f[_0x4236('0xb')];break;}return _0x4734f3||(_0x4734f3=this[_0x4236('0x9')][_0x4236('0xd')](_0x24b033[_0x4236('0x30')])),_0x4734f3?_0x4734f3(_0x5b4ea8):0x1!==_0x5b4ea8?_0x5b4ea8+'\x20'+_0x24b033[_0x4236('0x30')]+'s':''+_0x24b033[_0x4236('0x30')];}[_0x4236('0x13')](_0x5e1bfa,_0x5a33f9){const _0x222015=_0x5a33f9[_0x4236('0x22')]()[_0x4236('0x27')](),_0x190219='insertion'==_0x5a33f9[_0x4236('0x28')]?'add':_0x4236('0x35');for(const _0x56dcca of _0x222015){const _0x302837=_0x56dcca[_0x4236('0x39')],_0x5c9fc9=_0x5e1bfa[_0x5e1bfa['length']-0x1];if(_0x302837['is'](_0x4236('0x1')))_0x5c9fc9&&_0x5c9fc9[_0x4236('0x28')][_0x4236('0x12')](_0x4236('0x3d'))>-0x1&&_0x5e1bfa[_0x4236('0x2c')](),_0x5c9fc9&&'text'==_0x5c9fc9[_0x4236('0x28')]?_0x5c9fc9[_0x190219]+=_0x302837[_0x4236('0x2f')]:_0x5e1bfa[_0x4236('0x26')]({'type':_0x4236('0x34'),'add':'add'==_0x190219?_0x302837[_0x4236('0x2f')]:'','remove':_0x4236('0x35')==_0x190219?_0x302837['data']:''});else{if(this[_0x4236('0x23')][_0x4236('0x10')](_0x302837)){if(_0x5c9fc9&&_0x5c9fc9[_0x4236('0x28')][_0x4236('0x12')](_0x4236('0x3d'))>-0x1&&_0x5e1bfa[_0x4236('0x2c')](),_0x4236('0x16')==_0x56dcca[_0x4236('0x28')])continue;_0x5c9fc9&&_0x5c9fc9[_0x4236('0x28')]==_0x190219+'Object'&&_0x5c9fc9[_0x4236('0x2b')][_0x4236('0x30')]==_0x302837['name']?_0x5c9fc9[_0x4236('0x1c')]++:_0x5e1bfa[_0x4236('0x26')]({'type':_0x190219+_0x4236('0xc'),'element':_0x302837,'quantity':0x1}),_0x222015[_0x4236('0x3a')](_0x2660e4=>!('elementEnd'==_0x2660e4['type']&&_0x2660e4[_0x4236('0x39')]==_0x302837));}else{if(this['_schema'][_0x4236('0x37')](_0x302837,_0x4236('0x20'))||_0x302837['is'](_0x4236('0x2b'),_0x4236('0x6'))){if('add'==_0x190219&&_0x4236('0x31')==_0x56dcca[_0x4236('0x28')]||_0x4236('0x35')==_0x190219&&_0x4236('0x16')==_0x56dcca[_0x4236('0x28')])continue;if(_0x5c9fc9&&-0x1==_0x5c9fc9[_0x4236('0x28')][_0x4236('0x12')](_0x4236('0x3d'))){_0x4236('0x34')==_0x5c9fc9[_0x4236('0x28')]&&(_0x5c9fc9[_0x190219]+='\x0a');continue;}let _0x22fc60;if(_0x22fc60=_0x4236('0x5')==_0x190219?_0x302837['nextSibling']&&!this['_schema'][_0x4236('0x10')](_0x302837[_0x4236('0x4')])?_0x302837['nextSibling']:null:_0x302837[_0x4236('0x14')]&&!this[_0x4236('0x23')][_0x4236('0x10')](_0x302837[_0x4236('0x14')])?_0x302837[_0x4236('0x14')]:null,_0x302837[_0x4236('0x1a')]||_0x22fc60&&_0x22fc60['isEmpty']){const _0x974379=_0x22fc60&&_0x22fc60[_0x4236('0x1a')]?_0x22fc60:_0x302837;_0x5c9fc9&&_0x5c9fc9[_0x4236('0x28')]==_0x190219+_0x4236('0x3b')&&_0x5c9fc9['element'][_0x4236('0x30')]==_0x974379['name']?_0x5c9fc9['quantity']++:_0x5e1bfa[_0x4236('0x26')]({'type':_0x190219+_0x4236('0x3b'),'element':_0x974379,'quantity':0x1});}else _0x5e1bfa['push']({'type':_0x190219+'Container','element':_0x302837});}}}}}[_0x4236('0x1d')](_0x302bba){const _0x578a8f=this[_0x4236('0x1f')],_0x30adc2=[];for(const _0x1d3dbd of _0x302bba){switch(_0x1d3dbd[_0x4236('0x28')]){case _0x4236('0x34'):if(_0x1d3dbd['add']=_0x1d3dbd['add'][_0x4236('0x8')](/(\S)\u000A+(\S)/g,_0x4236('0x21'))['replace'](/\u000A/g,''),_0x1d3dbd[_0x4236('0x35')]=_0x1d3dbd['remove'][_0x4236('0x8')](/(\S)\u000A+(\S)/g,_0x4236('0x21'))[_0x4236('0x8')](/\u000A/g,''),''!=_0x1d3dbd[_0x4236('0x5')]&&''!=_0x1d3dbd[_0x4236('0x35')]){_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x8'),'content':_0x492f79(_0x578a8f,_0x4236('0x1e'),['\x22'+_0x1d3dbd[_0x4236('0x35')]+'\x22','\x22'+_0x1d3dbd[_0x4236('0x5')]+'\x22'])});continue;}if(null!=_0x1d3dbd[_0x4236('0x5')]['match'](/^ +$/)){_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x1b'),'content':_0x492f79(_0x578a8f,_0x4236('0x11'),_0x492f79(_0x578a8f,'ELEMENT_SPACE',_0x1d3dbd['add'][_0x4236('0x36')]))});continue;}if(null!=_0x1d3dbd[_0x4236('0x35')][_0x4236('0x17')](/^ +$/)){_0x30adc2['push']({'type':_0x4236('0x3'),'content':_0x492f79(_0x578a8f,'*Remove:*\x20%0',_0x492f79(_0x578a8f,_0x4236('0x3e'),_0x1d3dbd[_0x4236('0x35')]['length']))});continue;}if(''!=_0x1d3dbd[_0x4236('0x5')]){_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x1b'),'content':_0x492f79(_0x578a8f,_0x4236('0x11'),'\x22'+_0x1d3dbd[_0x4236('0x5')]+'\x22')});continue;}_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x3'),'content':_0x492f79(_0x578a8f,'*Remove:*\x20%0','\x22'+_0x1d3dbd[_0x4236('0x35')]+'\x22')});continue;case'addEmptyContainer':case _0x4236('0xf'):_0x30adc2[_0x4236('0x26')]({'type':'insertion','content':_0x492f79(_0x578a8f,_0x4236('0x11'),this[_0x4236('0x2a')](_0x1d3dbd[_0x4236('0x2b')],_0x1d3dbd['quantity']))});continue;case _0x4236('0x19'):case _0x4236('0x3c'):_0x30adc2['push']({'type':_0x4236('0x3'),'content':_0x492f79(_0x578a8f,'*Remove:*\x20%0',this['getItemLabel'](_0x1d3dbd['element'],_0x1d3dbd[_0x4236('0x1c')]))});continue;case _0x4236('0x25'):_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x1b'),'content':_0x492f79(_0x578a8f,_0x4236('0x0'),this[_0x4236('0x2a')](_0x1d3dbd[_0x4236('0x2b')],_0x1d3dbd['quantity']))});continue;case _0x4236('0x7'):_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x3'),'content':_0x492f79(_0x578a8f,_0x4236('0x2d'),this[_0x4236('0x2a')](_0x1d3dbd[_0x4236('0x2b')],_0x1d3dbd[_0x4236('0x1c')]))});continue;}_0x30adc2[_0x4236('0x26')](_0x1d3dbd);}return _0x30adc2;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x54b1=['plugins','get','getSuggestions','addSuggestionData','editor','TrackChanges','pluginName','getSuggestion','adapter','addSuggestion'];(function(_0x256965,_0x54b157){var _0x34db0b=function(_0x526a54){while(--_0x526a54){_0x256965['push'](_0x256965['shift']());}};_0x34db0b(++_0x54b157);}(_0x54b1,0x101));var _0x34db=function(_0x256965,_0x54b157){_0x256965=_0x256965-0x0;var _0x34db0b=_0x54b1[_0x256965];return _0x34db0b;};import{Plugin as _0x12f294}from'ckeditor5/src/core';import _0x151fa1 from'./trackchangesui';import _0x4eae77 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0x12f294{static get['requires'](){return[_0x4eae77,_0x151fa1,'Comments'];}static get[_0x34db('0x9')](){return _0x34db('0x8');}set[_0x34db('0x1')](_0x17eff4){this[_0x34db('0x7')][_0x34db('0x3')][_0x34db('0x4')](_0x4eae77)[_0x34db('0x1')]=_0x17eff4;}get[_0x34db('0x1')](){return this['editor'][_0x34db('0x3')][_0x34db('0x4')](_0x4eae77)[_0x34db('0x1')];}[_0x34db('0x2')](_0x1dd4f8){return this[_0x34db('0x7')]['plugins'][_0x34db('0x4')](_0x4eae77)[_0x34db('0x6')](_0x1dd4f8);}['getSuggestions'](_0x94770f){return this[_0x34db('0x7')]['plugins'][_0x34db('0x4')](_0x4eae77)[_0x34db('0x5')](_0x94770f);}[_0x34db('0x0')](_0x1eb1b7){return this[_0x34db('0x7')]['plugins'][_0x34db('0x4')](_0x4eae77)[_0x34db('0x0')](_0x1eb1b7);}}
23
+ var _0x3c0a=['getSuggestion','requires','TrackChanges','get','addSuggestion','editor','addSuggestionData','Comments','getSuggestions','plugins','adapter'];(function(_0x11e46b,_0x3c0ab0){var _0x3fd861=function(_0xe31512){while(--_0xe31512){_0x11e46b['push'](_0x11e46b['shift']());}};_0x3fd861(++_0x3c0ab0);}(_0x3c0a,0xaf));var _0x3fd8=function(_0x11e46b,_0x3c0ab0){_0x11e46b=_0x11e46b-0x0;var _0x3fd861=_0x3c0a[_0x11e46b];return _0x3fd861;};import{Plugin as _0x28e685}from'ckeditor5/src/core';import _0x3ef0a5 from'./trackchangesui';import _0x5b9109 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x28e685{static get[_0x3fd8('0x2')](){return[_0x5b9109,_0x3ef0a5,_0x3fd8('0x8')];}static get['pluginName'](){return _0x3fd8('0x3');}set[_0x3fd8('0x0')](_0x33918d){this[_0x3fd8('0x6')]['plugins'][_0x3fd8('0x4')](_0x5b9109)['adapter']=_0x33918d;}get['adapter'](){return this['editor']['plugins'][_0x3fd8('0x4')](_0x5b9109)[_0x3fd8('0x0')];}[_0x3fd8('0x5')](_0x24808d){return this['editor']['plugins'][_0x3fd8('0x4')](_0x5b9109)[_0x3fd8('0x7')](_0x24808d);}['getSuggestions'](_0x528597){return this[_0x3fd8('0x6')][_0x3fd8('0xa')][_0x3fd8('0x4')](_0x5b9109)[_0x3fd8('0x9')](_0x528597);}[_0x3fd8('0x1')](_0x25a4d6){return this['editor']['plugins']['get'](_0x5b9109)['getSuggestion'](_0x25a4d6);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c42=['RealTimeCollaborativeComments','context','end','trackChangesData','getDataWithDiscardedSuggestions','TrackChangesData','trackChangesData.editorCreator','from','every','model','createDocumentFragment','function','discardAllSuggestions','name','concat','RealTimeCollaborativeTrackChanges','includes','set','push','find','init','requires','addSuggestionData','data','users','destroy','getDataWithAcceptedSuggestions','extraPlugins','addUser','constructor','pluginName','get','createElement','getUser','document','editor','config','TrackChangesDataGetter','RealTimeCollaborativeRevisionHistory','_adapter','TrackChangesEditing','map','appendChild','builtinPlugins','getRootNames','reduce','editorCreator','useAnonymousUser','acceptAllSuggestions','filter','string','Users','plugins','Autosave'];(function(_0x4ce3b9,_0x5c4236){const _0x1e7270=function(_0x24b170){while(--_0x24b170){_0x4ce3b9['push'](_0x4ce3b9['shift']());}};_0x1e7270(++_0x5c4236);}(_0x5c42,0x1a7));const _0x1e72=function(_0x4ce3b9,_0x5c4236){_0x4ce3b9=_0x4ce3b9-0x0;let _0x1e7270=_0x5c42[_0x4ce3b9];return _0x1e7270;};import{Plugin as _0x21e819}from'ckeditor5/src/core';import{CKEditorError as _0x545630}from'ckeditor5/src/utils';import _0x4956b4 from'./trackchangesediting';const C=['initialData',_0x1e72('0xa'),'toolbar'],k=['RealTimeCollaborativeEditing',_0x1e72('0x9'),_0x1e72('0x18'),_0x1e72('0x2f'),_0x1e72('0x8'),'WordCount'];export default class T extends _0x21e819{static get[_0x1e72('0x1e')](){return[_0x4956b4];}static get['pluginName'](){return _0x1e72('0xe');}['init'](){const _0x528359=this[_0x1e72('0x2c')];if(_0x528359[_0x1e72('0x2d')]['define'](_0x1e72('0xf'),_0x5b1445=>_0x528359[_0x1e72('0x26')]['create']('',_0x5b1445)),'function'!=typeof _0x528359[_0x1e72('0x2d')]['get'](_0x1e72('0xc'))[_0x1e72('0x1')])throw new _0x545630('track-changes-data-invalid-editor-creator');}[_0x1e72('0x23')](_0x226b64){return v(this[_0x1e72('0x2c')],!0x0,_0x226b64);}[_0x1e72('0xd')](_0x5b2426){return v(this[_0x1e72('0x2c')],!0x1,_0x5b2426);}}class D extends _0x21e819{static get[_0x1e72('0x27')](){return _0x1e72('0x2e');}[_0x1e72('0x1d')](){this['result']=_0x1e72('0xb'),this['editor'][_0x1e72('0x7')]['get']('CommentsRepository')[_0x1e72('0x30')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x1e72('0x2c')][_0x1e72('0x7')][_0x1e72('0x28')]('TrackChangesEditing')[_0x1e72('0x30')]=null;}}async function v(_0x438b8b,_0x337335,_0x2a9a7a){const _0x5da518=function(_0x3b809e){const _0x2adf62={};for(const _0x2dffc3 of _0x3b809e[_0x1e72('0x2d')]['names']())C[_0x1e72('0x19')](_0x2dffc3)||(_0x2adf62[_0x2dffc3]=_0x3b809e[_0x1e72('0x2d')][_0x1e72('0x28')](_0x2dffc3));const _0x12b35f=_0x3b809e['constructor'][_0x1e72('0x34')]||[],_0x6125e8=_0x2adf62[_0x1e72('0x24')]||[];delete _0x2adf62[_0x1e72('0x24')];const _0x3c9be7=_0x12b35f['concat'](_0x2adf62['plugins'])[_0x1e72('0x17')](_0x6125e8)[_0x1e72('0x32')](_0x2a67df=>_0x1e72('0x5')==typeof _0x2a67df?_0x12b35f[_0x1e72('0x1c')](_0x32ce5f=>_0x32ce5f[_0x1e72('0x27')]==_0x2a67df):_0x2a67df),_0x1f29cb=Array[_0x1e72('0x10')](new Set(_0x3c9be7));return _0x2adf62[_0x1e72('0x7')]=_0x1f29cb[_0x1e72('0x4')](_0x225462=>w(_0x225462,new Set())),_0x2adf62[_0x1e72('0x7')][_0x1e72('0x1b')](D),_0x2adf62[_0x1e72('0x7')]['push'](_0x4956b4),_0x2adf62;}(_0x438b8b),_0x59ed15=document[_0x1e72('0x13')](),_0x5e805e=_0x438b8b['config']['get'](_0x1e72('0xc'))[_0x1e72('0x1')],_0x4d0046=await _0x5e805e(_0x5da518,()=>function(_0x5e42b9){const _0x2f6569=document[_0x1e72('0x29')]('div');return _0x5e42b9[_0x1e72('0x33')](_0x2f6569),_0x2f6569;}(_0x59ed15));!function(_0x30e4a2,_0x5409e8){const _0x561d07=_0x30e4a2[_0x1e72('0x12')][_0x1e72('0x2b')][_0x1e72('0x35')]()[_0x1e72('0x0')]((_0x5b6c47,_0x146502)=>(_0x5b6c47[_0x146502]=_0x30e4a2[_0x1e72('0x20')][_0x1e72('0x28')]({'rootName':_0x146502}),_0x5b6c47),{}),_0x465ad7=_0x30e4a2['plugins'][_0x1e72('0x28')](_0x1e72('0x6'))[_0x1e72('0x21')]['map'](_0x2dd04f=>({'id':_0x2dd04f['id']})),_0x35d5b5=_0x30e4a2[_0x1e72('0x7')]['get'](_0x1e72('0x31'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bb958=_0x5409e8[_0x1e72('0x7')][_0x1e72('0x28')](_0x1e72('0x6')),_0x6423ce=_0x5409e8[_0x1e72('0x7')][_0x1e72('0x28')]('TrackChangesEditing');for(const _0x40237f of _0x465ad7)_0x2bb958[_0x1e72('0x2a')](_0x40237f['id'])||_0x2bb958[_0x1e72('0x25')](_0x40237f);_0x2bb958['me']||_0x2bb958[_0x1e72('0x2')]();for(const _0x5df70b of _0x35d5b5)_0x6423ce[_0x1e72('0x1f')](_0x5df70b);_0x5409e8[_0x1e72('0x20')][_0x1e72('0x1a')](_0x561d07);}(_0x438b8b,_0x4d0046),_0x4d0046['execute'](_0x337335?_0x1e72('0x3'):_0x1e72('0x15'));const _0x35798c=_0x4d0046[_0x1e72('0x20')]['get'](_0x2a9a7a);return await _0x4d0046[_0x1e72('0x22')](),_0x35798c;}function w(_0x187f6c,_0x43cbb4){if(_0x43cbb4['has'](_0x187f6c))return!0x0;_0x43cbb4['add'](_0x187f6c);const _0x282583=_0x1e72('0x14')==typeof _0x187f6c?_0x187f6c[_0x1e72('0x27')]||_0x187f6c[_0x1e72('0x16')]:_0x187f6c;return(!_0x282583||!k[_0x1e72('0x19')](_0x282583))&&(!_0x187f6c[_0x1e72('0x1e')]||_0x187f6c['requires'][_0x1e72('0x11')](_0x124660=>w(_0x124660,_0x43cbb4)));}
23
+ const _0x3323=['getDataWithDiscardedSuggestions','config','set','pluginName','addUser','TrackChangesDataGetter','requires','create','from','concat','RealTimeCollaborativeEditing','discardAllSuggestions','getSuggestions','model','execute','TrackChangesEditing','filter','data','extraPlugins','appendChild','users','has','editor','editorCreator','div','Users','end','CommentsRepository','addSuggestionData','map','push','context','toolbar','name','createElement','RealTimeCollaborativeComments','init','get','result','reduce','document','add','useAnonymousUser','getDataWithAcceptedSuggestions','acceptAllSuggestions','_adapter','define','function','trackChangesData','plugins','createDocumentFragment','initialData'];(function(_0x51e1c8,_0x33236d){const _0x155cd0=function(_0x32fb4d){while(--_0x32fb4d){_0x51e1c8['push'](_0x51e1c8['shift']());}};_0x155cd0(++_0x33236d);}(_0x3323,0x1bc));const _0x155c=function(_0x51e1c8,_0x33236d){_0x51e1c8=_0x51e1c8-0x0;let _0x155cd0=_0x3323[_0x51e1c8];return _0x155cd0;};import{Plugin as _0x5bffdc}from'ckeditor5/src/core';import{CKEditorError as _0x3b5e12}from'ckeditor5/src/utils';import _0x1fbd76 from'./trackchangesediting';const T=[_0x155c('0x17'),_0x155c('0x3'),_0x155c('0x4')],D=[_0x155c('0x22'),_0x155c('0x7'),'RealTimeCollaborativeTrackChanges','RealTimeCollaborativeRevisionHistory','Autosave','WordCount'];export default class v extends _0x5bffdc{static get['requires'](){return[_0x1fbd76];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x208091=this[_0x155c('0x2e')];if(_0x208091['config'][_0x155c('0x12')]('trackChangesData.editorCreator',_0x2b2af5=>_0x208091['constructor'][_0x155c('0x1f')]('',_0x2b2af5)),_0x155c('0x13')!=typeof _0x208091['config'][_0x155c('0x9')](_0x155c('0x14'))[_0x155c('0x2f')])throw new _0x3b5e12('track-changes-data-invalid-editor-creator');}[_0x155c('0xf')](_0x88ba30){return y(this['editor'],!0x0,_0x88ba30);}[_0x155c('0x18')](_0x5e1e41){return y(this['editor'],!0x1,_0x5e1e41);}}class w extends _0x5bffdc{static get['pluginName'](){return _0x155c('0x1d');}[_0x155c('0x8')](){this[_0x155c('0xa')]=_0x155c('0x32'),this[_0x155c('0x2e')]['plugins']['get'](_0x155c('0x33'))[_0x155c('0x11')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x155c('0x2e')]['plugins'][_0x155c('0x9')](_0x155c('0x27'))[_0x155c('0x11')]=null;}}async function y(_0x37d968,_0x53ccbd,_0xad227b){const _0x557252=function(_0x34d82c){const _0x4c6034={};for(const _0x5f4258 of _0x34d82c[_0x155c('0x19')]['names']())T['includes'](_0x5f4258)||(_0x4c6034[_0x5f4258]=_0x34d82c['config']['get'](_0x5f4258));const _0x53096d=_0x34d82c['constructor']['builtinPlugins']||[],_0x55ca3f=_0x4c6034[_0x155c('0x2a')]||[];delete _0x4c6034[_0x155c('0x2a')];const _0xbc1932=_0x53096d[_0x155c('0x21')](_0x4c6034[_0x155c('0x15')])[_0x155c('0x21')](_0x55ca3f)[_0x155c('0x1')](_0x22985c=>'string'==typeof _0x22985c?_0x53096d['find'](_0x364c3a=>_0x364c3a[_0x155c('0x1b')]==_0x22985c):_0x22985c),_0x5b7a73=Array[_0x155c('0x20')](new Set(_0xbc1932));return _0x4c6034[_0x155c('0x15')]=_0x5b7a73[_0x155c('0x28')](_0x466eea=>S(_0x466eea,new Set())),_0x4c6034[_0x155c('0x15')][_0x155c('0x2')](w),_0x4c6034[_0x155c('0x15')]['push'](_0x1fbd76),_0x4c6034;}(_0x37d968),_0x4c0767=document[_0x155c('0x16')](),_0x3a471d=_0x37d968[_0x155c('0x19')]['get']('trackChangesData')['editorCreator'],_0xb0da41=await _0x3a471d(_0x557252,()=>function(_0x5f5b04){const _0x4ee7ae=document[_0x155c('0x6')](_0x155c('0x30'));return _0x5f5b04[_0x155c('0x2b')](_0x4ee7ae),_0x4ee7ae;}(_0x4c0767));!function(_0x396434,_0x1b2e72){const _0x19050e=_0x396434[_0x155c('0x25')][_0x155c('0xc')]['getRootNames']()[_0x155c('0xb')]((_0x27bac9,_0x26f731)=>(_0x27bac9[_0x26f731]=_0x396434['data'][_0x155c('0x9')]({'rootName':_0x26f731}),_0x27bac9),{}),_0x249779=_0x396434['plugins'][_0x155c('0x9')](_0x155c('0x31'))[_0x155c('0x2c')][_0x155c('0x1')](_0x34d7f2=>({'id':_0x34d7f2['id']})),_0x1d8218=_0x396434['plugins'][_0x155c('0x9')](_0x155c('0x27'))[_0x155c('0x24')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c6076=_0x1b2e72['plugins'][_0x155c('0x9')](_0x155c('0x31')),_0xed88d0=_0x1b2e72[_0x155c('0x15')][_0x155c('0x9')](_0x155c('0x27'));for(const _0x3a3be4 of _0x249779)_0x4c6076['getUser'](_0x3a3be4['id'])||_0x4c6076[_0x155c('0x1c')](_0x3a3be4);_0x4c6076['me']||_0x4c6076[_0x155c('0xe')]();for(const _0x59c3d8 of _0x1d8218)_0xed88d0[_0x155c('0x0')](_0x59c3d8);_0x1b2e72[_0x155c('0x29')][_0x155c('0x1a')](_0x19050e);}(_0x37d968,_0xb0da41),_0xb0da41[_0x155c('0x26')](_0x53ccbd?_0x155c('0x10'):_0x155c('0x23'));const _0x2b324b=_0xb0da41['data'][_0x155c('0x9')](_0xad227b);return await _0xb0da41['destroy'](),_0x2b324b;}function S(_0x2abd19,_0x5299ea){if(_0x5299ea[_0x155c('0x2d')](_0x2abd19))return!0x0;_0x5299ea[_0x155c('0xd')](_0x2abd19);const _0x2bae0a=_0x155c('0x13')==typeof _0x2abd19?_0x2abd19[_0x155c('0x1b')]||_0x2abd19[_0x155c('0x5')]:_0x2abd19;return(!_0x2bae0a||!D['includes'](_0x2bae0a))&&(!_0x2abd19[_0x155c('0x1e')]||_0x2abd19[_0x155c('0x1e')]['every'](_0x5aa80d=>S(_0x5aa80d,_0x5299ea)));}