@ckeditor/ckeditor5-track-changes 35.3.2 → 35.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/build/track-changes.js +2 -1
  2. package/build/translations/ar.js +1 -0
  3. package/build/translations/az.js +1 -0
  4. package/build/translations/bg.js +1 -0
  5. package/build/translations/bn.js +1 -0
  6. package/build/translations/ca.js +1 -0
  7. package/build/translations/cs.js +1 -0
  8. package/build/translations/da.js +1 -0
  9. package/build/translations/de.js +1 -0
  10. package/build/translations/el.js +1 -0
  11. package/build/translations/en-au.js +1 -0
  12. package/build/translations/es.js +1 -0
  13. package/build/translations/et.js +1 -0
  14. package/build/translations/fi.js +1 -0
  15. package/build/translations/fr.js +1 -0
  16. package/build/translations/gl.js +1 -0
  17. package/build/translations/he.js +1 -0
  18. package/build/translations/hi.js +1 -0
  19. package/build/translations/hr.js +1 -0
  20. package/build/translations/hu.js +1 -0
  21. package/build/translations/id.js +1 -0
  22. package/build/translations/it.js +1 -0
  23. package/build/translations/ja.js +1 -0
  24. package/build/translations/ko.js +1 -0
  25. package/build/translations/lt.js +1 -0
  26. package/build/translations/lv.js +1 -0
  27. package/build/translations/ms.js +1 -0
  28. package/build/translations/nl.js +1 -0
  29. package/build/translations/no.js +1 -0
  30. package/build/translations/pl.js +1 -0
  31. package/build/translations/pt-br.js +1 -0
  32. package/build/translations/pt.js +1 -0
  33. package/build/translations/ro.js +1 -0
  34. package/build/translations/ru.js +1 -0
  35. package/build/translations/sk.js +1 -0
  36. package/build/translations/sr-latn.js +1 -0
  37. package/build/translations/sr.js +1 -0
  38. package/build/translations/sv.js +1 -0
  39. package/build/translations/th.js +1 -0
  40. package/build/translations/tk.js +1 -0
  41. package/build/translations/tr.js +1 -0
  42. package/build/translations/tt.js +1 -0
  43. package/build/translations/uk.js +1 -0
  44. package/build/translations/ur.js +1 -0
  45. package/build/translations/vi.js +1 -0
  46. package/build/translations/zh-cn.js +1 -0
  47. package/build/translations/zh.js +1 -0
  48. package/lang/contexts.json +13 -0
  49. package/lang/translations/ar.po +55 -3
  50. package/lang/translations/az.po +52 -0
  51. package/lang/translations/bg.po +55 -3
  52. package/lang/translations/bn.po +55 -3
  53. package/lang/translations/ca.po +55 -3
  54. package/lang/translations/cs.po +55 -3
  55. package/lang/translations/da.po +55 -3
  56. package/lang/translations/de.po +55 -3
  57. package/lang/translations/el.po +55 -3
  58. package/lang/translations/en-au.po +52 -0
  59. package/lang/translations/en.po +52 -0
  60. package/lang/translations/es.po +55 -3
  61. package/lang/translations/et.po +55 -3
  62. package/lang/translations/fi.po +55 -3
  63. package/lang/translations/fr.po +55 -3
  64. package/lang/translations/gl.po +52 -0
  65. package/lang/translations/he.po +55 -3
  66. package/lang/translations/hi.po +55 -3
  67. package/lang/translations/hr.po +52 -0
  68. package/lang/translations/hu.po +55 -3
  69. package/lang/translations/id.po +55 -3
  70. package/lang/translations/it.po +55 -3
  71. package/lang/translations/ja.po +55 -3
  72. package/lang/translations/ko.po +55 -3
  73. package/lang/translations/lt.po +55 -3
  74. package/lang/translations/lv.po +55 -3
  75. package/lang/translations/ms.po +55 -3
  76. package/lang/translations/nl.po +55 -3
  77. package/lang/translations/no.po +55 -3
  78. package/lang/translations/pl.po +55 -3
  79. package/lang/translations/pt-br.po +55 -3
  80. package/lang/translations/pt.po +55 -3
  81. package/lang/translations/ro.po +55 -3
  82. package/lang/translations/ru.po +55 -3
  83. package/lang/translations/sk.po +55 -3
  84. package/lang/translations/sr-latn.po +52 -0
  85. package/lang/translations/sr.po +55 -3
  86. package/lang/translations/sv.po +55 -3
  87. package/lang/translations/th.po +55 -3
  88. package/lang/translations/tk.po +52 -0
  89. package/lang/translations/tr.po +55 -3
  90. package/lang/translations/tt.po +52 -0
  91. package/lang/translations/uk.po +55 -3
  92. package/lang/translations/ur.po +52 -0
  93. package/lang/translations/vi.po +55 -3
  94. package/lang/translations/zh-cn.po +55 -3
  95. package/lang/translations/zh.po +55 -3
  96. package/package.json +4 -4
  97. package/src/commands/acceptsuggestioncommand.js +1 -1
  98. package/src/commands/discardsuggestioncommand.js +1 -1
  99. package/src/commands/executeonallsuggestionscommand.js +1 -1
  100. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  101. package/src/commands/trackchangescommand.js +1 -1
  102. package/src/integrations/alignment.js +1 -1
  103. package/src/integrations/basicstyles.js +1 -1
  104. package/src/integrations/blockquote.js +1 -1
  105. package/src/integrations/ckbox.js +1 -1
  106. package/src/integrations/codeblock.js +1 -1
  107. package/src/integrations/comments.js +1 -1
  108. package/src/integrations/deletecommand.js +1 -1
  109. package/src/integrations/documentlist.js +1 -1
  110. package/src/integrations/documentlistproperties.js +23 -0
  111. package/src/integrations/entercommand.js +1 -1
  112. package/src/integrations/font.js +1 -1
  113. package/src/integrations/heading.js +1 -1
  114. package/src/integrations/highlight.js +1 -1
  115. package/src/integrations/horizontalline.js +1 -1
  116. package/src/integrations/htmlembed.js +1 -1
  117. package/src/integrations/image.js +1 -1
  118. package/src/integrations/importword.js +1 -1
  119. package/src/integrations/indent.js +1 -1
  120. package/src/integrations/inputcommand.js +1 -1
  121. package/src/integrations/link.js +1 -1
  122. package/src/integrations/list.js +1 -1
  123. package/src/integrations/listproperties.js +23 -0
  124. package/src/integrations/mediaembed.js +1 -1
  125. package/src/integrations/mention.js +1 -1
  126. package/src/integrations/pagebreak.js +1 -1
  127. package/src/integrations/paragraph.js +1 -1
  128. package/src/integrations/removeformat.js +1 -1
  129. package/src/integrations/restrictededitingmode.js +1 -1
  130. package/src/integrations/shiftentercommand.js +1 -1
  131. package/src/integrations/standardeditingmode.js +1 -1
  132. package/src/integrations/style.js +1 -1
  133. package/src/integrations/table.js +1 -1
  134. package/src/integrations/tablecaption.js +1 -1
  135. package/src/integrations/tableclipboard.js +1 -1
  136. package/src/integrations/tablecolumnresize.js +23 -0
  137. package/src/integrations/tableheadings.js +1 -1
  138. package/src/integrations/tablemergesplit.js +1 -1
  139. package/src/integrations/title.js +1 -1
  140. package/src/integrations/undo.js +1 -1
  141. package/src/integrations/utils.js +1 -1
  142. package/src/suggestion.js +1 -1
  143. package/src/suggestiondescriptionfactory.js +1 -1
  144. package/src/trackchanges.js +1 -1
  145. package/src/trackchangesdata.js +1 -1
  146. package/src/trackchangesediting.js +1 -1
  147. package/src/trackchangesui.js +1 -1
  148. package/src/ui/suggestioncontroller.js +1 -1
  149. package/src/ui/view/basesuggestionthreadview.js +1 -1
  150. package/src/ui/view/suggestionthreadview.js +1 -1
  151. package/src/utils/common-translations.js +1 -1
  152. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43ca=['UndoEditing','has','redo','editor','plugins','enableCommand','get','afterInit','undo'];(function(_0x7e077e,_0x43caf6){const _0x22de5c=function(_0x15bdee){while(--_0x15bdee){_0x7e077e['push'](_0x7e077e['shift']());}};_0x22de5c(++_0x43caf6);}(_0x43ca,0x85));const _0x22de=function(_0x7e077e,_0x43caf6){_0x7e077e=_0x7e077e-0x0;let _0x22de5c=_0x43ca[_0x7e077e];return _0x22de5c;};import{Plugin as _0x12e87f}from'ckeditor5/src/core';export default class pt extends _0x12e87f{[_0x22de('0x0')](){const _0x1a9d69=this[_0x22de('0x5')],_0x851338=_0x1a9d69['plugins'][_0x22de('0x8')]('TrackChangesEditing');_0x1a9d69[_0x22de('0x6')][_0x22de('0x3')](_0x22de('0x2'))&&(_0x851338[_0x22de('0x7')](_0x22de('0x1')),_0x851338['enableCommand'](_0x22de('0x4')));}}
23
+ const _0x579d=['plugins','editor','redo','has','get','UndoEditing','TrackChangesEditing','afterInit'];(function(_0x222c9c,_0x579d23){const _0x2d7d15=function(_0xab18d){while(--_0xab18d){_0x222c9c['push'](_0x222c9c['shift']());}};_0x2d7d15(++_0x579d23);}(_0x579d,0xf3));const _0x2d7d=function(_0x222c9c,_0x579d23){_0x222c9c=_0x222c9c-0x0;let _0x2d7d15=_0x579d[_0x222c9c];return _0x2d7d15;};import{Plugin as _0x540257}from'ckeditor5/src/core';export default class yt extends _0x540257{[_0x2d7d('0x4')](){const _0x151dc2=this[_0x2d7d('0x6')],_0x2bf193=_0x151dc2[_0x2d7d('0x5')][_0x2d7d('0x1')](_0x2d7d('0x3'));_0x151dc2[_0x2d7d('0x5')][_0x2d7d('0x0')](_0x2d7d('0x2'))&&(_0x2bf193['enableCommand']('undo'),_0x2bf193['enableCommand'](_0x2d7d('0x7')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5310=['markerRange','markerName','push','model','getCustomProperty','listItem','ck-suggestion-marker--active','plugins','test','listIndent','insert','addClass','consumable','span','hasAttribute','element','getWalker','bindElementToMarker','activeMarkers','getItems','createRangeOn','getAttribute','isBlock','item','isAtEnd','parent','type','includes','previousPosition','nextSibling','isLimit','get','createUIElement','writer','elementEnd','mapper'];(function(_0x4afd16,_0x531052){const _0x5778a9=function(_0x55a72e){while(--_0x55a72e){_0x4afd16['push'](_0x4afd16['shift']());}};_0x5778a9(++_0x531052);}(_0x5310,0x19f));const _0x5778=function(_0x4afd16,_0x531052){_0x4afd16=_0x4afd16-0x0;let _0x5778a9=_0x5310[_0x4afd16];return _0x5778a9;};export function getRangesWithAttribute(_0xd96e99,_0x2a7c55,_0x496964){const _0x4225ba=[];for(const _0x479214 of _0x2a7c55[_0x5778('0x0')]())_0x479214[_0x5778('0x1f')](_0xd96e99)&&_0x4225ba[_0x5778('0x13')](_0x496964[_0x5778('0x1')](_0x479214));return _0x4225ba;}export function getElementsAffectedByListItemRename(_0x497bde){const _0x587a7d=[];if(_0x497bde['is'](_0x5778('0x20'),_0x5778('0x16'))){let _0x282b6b=_0x497bde['nextSibling'];for(;_0x282b6b&&_0x282b6b['is'](_0x5778('0x20'),_0x5778('0x16'))&&_0x282b6b[_0x5778('0x2')](_0x5778('0x1a'))>0x0;)_0x587a7d['push'](_0x282b6b),_0x282b6b=_0x282b6b[_0x5778('0xa')];}return _0x587a7d;}export function downcastSplitMergeMarker(_0x2ce541,_0x41aa4e,{showActiveMarker:_0x30ddc1=!0x0}={}){const _0x2b85c4=_0x2ce541[_0x5778('0x18')][_0x5778('0xc')]('TrackChangesEditing');return(_0x10f1e7,_0x578ea9,_0x1d9032)=>{if(!_0x1d9032[_0x5778('0x1d')][_0x5778('0x19')](_0x578ea9['markerRange'],_0x10f1e7['name']))return;const _0x2831f5=_0x578ea9[_0x5778('0x11')][_0x5778('0x21')](),_0x24ce38=_0x578ea9[_0x5778('0x11')]['start'],_0x5ceff6=_0x2ce541[_0x5778('0x14')]['schema'];let _0x1fc1a4=null,_0x4fc279=null,_0x112c7a=!0x1,_0x5769e0=!0x1;for(const _0x4650c8 of _0x2831f5){const _0x4867a4=_0x4650c8[_0x5778('0x4')];_0x112c7a=_0x112c7a||_0x5ceff6['isContent'](_0x4867a4);const _0x738b29=_0x1d9032[_0x5778('0x10')]['toViewElement'](_0x4867a4);if(_0x738b29&&_0x738b29[_0x5778('0x15')]('addHighlight'))return;_0x5778('0xf')==_0x4650c8[_0x5778('0x7')]&&(_0x5ceff6[_0x5778('0x3')](_0x4867a4)&&!_0x5ceff6[_0x5778('0xb')](_0x4867a4)&&(_0x4867a4['nextSibling']||_0x24ce38[_0x5778('0x5')]?_0x1fc1a4&&_0x1fc1a4[_0x5778('0x6')]==_0x4867a4||(_0x1fc1a4=_0x4867a4,_0x37b655(_0x4650c8['previousPosition']),_0x5769e0=!0x0):_0x4fc279=_0x4fc279||_0x4650c8[_0x5778('0x9')]));}function _0x37b655(_0x4af961){const _0x56485a=_0x1d9032[_0x5778('0xe')][_0x5778('0xd')](_0x5778('0x1e'),{'class':'ck-suggestion-marker-'+_0x41aa4e}),_0x59aaae=_0x1d9032[_0x5778('0x10')]['toViewPosition'](_0x4af961);_0x30ddc1&&_0x2b85c4[_0x5778('0x23')][_0x5778('0x8')](_0x578ea9[_0x5778('0x12')])&&_0x1d9032[_0x5778('0xe')][_0x5778('0x1c')](_0x5778('0x17'),_0x56485a),_0x1d9032[_0x5778('0xe')][_0x5778('0x1b')](_0x59aaae,_0x56485a),_0x1d9032[_0x5778('0x10')][_0x5778('0x22')](_0x56485a,_0x578ea9[_0x5778('0x12')]);}_0x112c7a||_0x5769e0||!_0x4fc279||_0x37b655(_0x4fc279);};}
23
+ const _0x2a5e=['isContent','test','getItems','ck-suggestion-marker--active','bindElementToMarker','listItem','markerRange','writer','ck-suggestion-marker-','nextSibling','addHighlight','schema','hasAttribute','plugins','element','getWalker','addClass','elementEnd','span','type','item','consumable','activeMarkers','toViewPosition','start','isLimit','model','TrackChangesEditing','markerName','previousPosition','toViewElement','mapper','parent','push','get','getAttribute'];(function(_0x325be4,_0x2a5e6a){const _0x9db3bc=function(_0x1d3db4){while(--_0x1d3db4){_0x325be4['push'](_0x325be4['shift']());}};_0x9db3bc(++_0x2a5e6a);}(_0x2a5e,0x137));const _0x9db3=function(_0x325be4,_0x2a5e6a){_0x325be4=_0x325be4-0x0;let _0x9db3bc=_0x2a5e[_0x325be4];return _0x9db3bc;};export function getRangesWithAttribute(_0x2a4f3f,_0x2d69be,_0x491eb8){const _0x5a0bb9=[];for(const _0x50c25b of _0x2d69be[_0x9db3('0xf')]())_0x50c25b[_0x9db3('0x19')](_0x2a4f3f)&&_0x5a0bb9['push'](_0x491eb8['createRangeOn'](_0x50c25b));return _0x5a0bb9;}export function getElementsAffectedByListItemRename(_0x2ed107){const _0x262bcc=[];if(_0x2ed107['is'](_0x9db3('0x1b'),_0x9db3('0x12'))){let _0xa0fd74=_0x2ed107[_0x9db3('0x16')];for(;_0xa0fd74&&_0xa0fd74['is'](_0x9db3('0x1b'),'listItem')&&_0xa0fd74[_0x9db3('0xc')]('listIndent')>0x0;)_0x262bcc[_0x9db3('0xa')](_0xa0fd74),_0xa0fd74=_0xa0fd74[_0x9db3('0x16')];}return _0x262bcc;}export function downcastSplitMergeMarker(_0xa8188,_0x56fa21,{showActiveMarker:_0x380e8f=!0x0}={}){const _0x432425=_0xa8188[_0x9db3('0x1a')][_0x9db3('0xb')](_0x9db3('0x4'));return(_0x268951,_0x4762b1,_0x1c3e84)=>{if(!_0x1c3e84[_0x9db3('0x22')][_0x9db3('0xe')](_0x4762b1[_0x9db3('0x13')],_0x268951['name']))return;const _0x7898a3=_0x4762b1[_0x9db3('0x13')][_0x9db3('0x1c')](),_0x4e5dbe=_0x4762b1['markerRange'][_0x9db3('0x1')],_0x2b97c6=_0xa8188[_0x9db3('0x3')][_0x9db3('0x18')];let _0x3f4506=null,_0x3a6994=null,_0x20a929=!0x1,_0x16c7fa=!0x1;for(const _0xc67671 of _0x7898a3){const _0x1b69ca=_0xc67671[_0x9db3('0x21')];_0x20a929=_0x20a929||_0x2b97c6[_0x9db3('0xd')](_0x1b69ca);const _0x317175=_0x1c3e84[_0x9db3('0x8')][_0x9db3('0x7')](_0x1b69ca);if(_0x317175&&_0x317175['getCustomProperty'](_0x9db3('0x17')))return;_0x9db3('0x1e')==_0xc67671[_0x9db3('0x20')]&&(_0x2b97c6['isBlock'](_0x1b69ca)&&!_0x2b97c6[_0x9db3('0x2')](_0x1b69ca)&&(_0x1b69ca[_0x9db3('0x16')]||_0x4e5dbe['isAtEnd']?_0x3f4506&&_0x3f4506[_0x9db3('0x9')]==_0x1b69ca||(_0x3f4506=_0x1b69ca,_0x575fac(_0xc67671[_0x9db3('0x6')]),_0x16c7fa=!0x0):_0x3a6994=_0x3a6994||_0xc67671[_0x9db3('0x6')]));}function _0x575fac(_0x13c728){const _0x50a3a6=_0x1c3e84[_0x9db3('0x14')]['createUIElement'](_0x9db3('0x1f'),{'class':_0x9db3('0x15')+_0x56fa21}),_0x45046b=_0x1c3e84[_0x9db3('0x8')][_0x9db3('0x0')](_0x13c728);_0x380e8f&&_0x432425[_0x9db3('0x23')]['includes'](_0x4762b1[_0x9db3('0x5')])&&_0x1c3e84[_0x9db3('0x14')][_0x9db3('0x1d')](_0x9db3('0x10'),_0x50a3a6),_0x1c3e84['writer']['insert'](_0x45046b,_0x50a3a6),_0x1c3e84['mapper'][_0x9db3('0x11')](_0x50a3a6,_0x4762b1[_0x9db3('0x5')]);}_0x20a929||_0x16c7fa||!_0x3a6994||_0x575fac(_0x3a6994);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3767=['isInContent','onAccept','previous','authoredAt','creator','filter','accept','subType','removeMarker','_model','nodeAfter','setAttribute','getItems','isIntersecting','isExternal','from','getRanges','toJSON','getMarkerNames','getAllAdjacentSuggestions','end','getMarkers','createdAt','_markerNames','getRange','discard','start','getMultiRangeId','_saved','set','markers','commentThread','getContainedElement','removeAttribute','attributes','clear','_onAttributesChange','addMarkerName','addMarker','length','removeMarkers','isMultiRange','suggestion:','getFirstMarker','substr','delete','hasComments','author','nodeBefore','onDiscard','head','change','next','isIntersectingWithRange','decorate','onAttributesChange','type','_onDiscard','map','data','size'];(function(_0x4b1f35,_0x376728){const _0x29596d=function(_0x445e51){while(--_0x445e51){_0x4b1f35['push'](_0x4b1f35['shift']());}};_0x29596d(++_0x376728);}(_0x3767,0x19f));const _0x2959=function(_0x4b1f35,_0x376728){_0x4b1f35=_0x4b1f35-0x0;let _0x29596d=_0x3767[_0x4b1f35];return _0x29596d;};import{Element as _0x2502b8}from'ckeditor5/src/engine';import{ObservableMixin as _0x5cd926,mix as _0x3426cc,uid as _0x29ae32}from'ckeditor5/src/utils';import{cloneDeep as _0x3282af,isEqual as _0x282d57,set as _0x451929,unset as _0x1e2876}from'lodash-es';export default class o{constructor(_0x2da945,_0x7f11a1){this['id']=_0x7f11a1['id'],this[_0x2959('0x7')]=_0x7f11a1[_0x2959('0x7')],this[_0x2959('0x13')]=_0x7f11a1[_0x2959('0x13')]||null,this['author']=_0x7f11a1[_0x2959('0x3b')],this[_0x2959('0x10')]=_0x7f11a1[_0x2959('0x10')]||_0x7f11a1['author'],this[_0x2959('0x1a')]=Boolean(_0x7f11a1[_0x2959('0x2e')]&&_0x7f11a1[_0x2959('0x2e')]['@external']),this[_0x2959('0xa')]=null,this[_0x2959('0x15')]=_0x2da945,this['_onAccept']=_0x7f11a1[_0x2959('0xd')],this['_onDiscard']=_0x7f11a1[_0x2959('0x0')],this['_onAttributesChange']=_0x7f11a1[_0x2959('0x6')],this[_0x2959('0x23')]=new Set(),this[_0x2959('0x22')]=null,this[_0x2959('0x29')](_0x2959('0xf'),null),this[_0x2959('0x29')](_0x2959('0x2e'),_0x7f11a1['attributes']||{}),this['set'](_0x2959('0xe'),null),this[_0x2959('0x29')]('next',null),this[_0x2959('0x29')](_0x2959('0x2b'),null),this[_0x2959('0x29')](_0x2959('0x28'),!0x1),this[_0x2959('0x5')](_0x2959('0x12')),this['decorate'](_0x2959('0x25'));}get[_0x2959('0x1')](){let _0x196f24=this;for(;_0x196f24[_0x2959('0xe')];)_0x196f24=_0x196f24[_0x2959('0xe')];return _0x196f24;}get[_0x2959('0x3a')](){return!!this[_0x2959('0x2b')]&&this[_0x2959('0x2b')]['length']>0x0;}get[_0x2959('0x35')](){if(0x0==this['_markerNames'][_0x2959('0xb')])return!0x1;return 0x6==Array[_0x2959('0x1b')](this[_0x2959('0x23')])[0x0]['split'](':')[_0x2959('0x33')];}get[_0x2959('0xc')](){return null!==this[_0x2959('0x37')]();}[_0x2959('0x31')](_0x5cc5c8){this[_0x2959('0x23')]['add'](_0x5cc5c8);}[_0x2959('0x1e')](){return Array[_0x2959('0x1b')](this['_markerNames']);}[_0x2959('0x21')](){return this[_0x2959('0x1e')]()[_0x2959('0x9')](_0x6e7a2d=>this[_0x2959('0x15')][_0x2959('0x2a')]['get'](_0x6e7a2d))[_0x2959('0x11')](_0x2fe7e7=>_0x2fe7e7);}['getFirstMarker'](){return this[_0x2959('0x21')]()[0x0]||null;}[_0x2959('0x34')](){this[_0x2959('0x15')][_0x2959('0x2')](_0x41492d=>{for(const _0x168e8f of this['getMarkers']())_0x41492d[_0x2959('0x14')](_0x168e8f);}),this[_0x2959('0x23')][_0x2959('0x2f')]();}['removeMarker'](_0x2e8bb2){this['_model'][_0x2959('0x2')](_0x3ba5c5=>{_0x3ba5c5['removeMarker'](_0x2e8bb2);}),this['_markerNames'][_0x2959('0x39')](_0x2e8bb2);}['addRange'](_0x276983){const _0x333c20=_0x2959('0x36')+this[_0x2959('0x7')]+':'+this[_0x2959('0x13')]+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this[_0x2959('0x31')](_0x333c20),this[_0x2959('0x15')][_0x2959('0x2')](_0x45a250=>{_0x45a250[_0x2959('0x32')](_0x333c20,{'range':_0x276983,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2959('0x4')](_0x5198d0){for(const _0x20a714 of this['getRanges']())if(_0x20a714[_0x2959('0x19')](_0x5198d0))return!0x0;return!0x1;}['getRanges'](){return this[_0x2959('0x21')]()[_0x2959('0x9')](_0x25ad0f=>_0x25ad0f[_0x2959('0x24')]());}['getItems'](){return this[_0x2959('0x1c')]()['reduce']((_0x289cae,_0x353bd1)=>[..._0x289cae,..._0x353bd1[_0x2959('0x18')]()],[]);}['getFirstRange'](){return this['getFirstMarker']()['getRange']();}[_0x2959('0x2c')](){const _0x29d882=this[_0x2959('0x1c')]();if(0x1!=_0x29d882[_0x2959('0x33')])return null;const _0x4ee1f7=_0x29d882[0x0],_0x4c0e70=_0x4ee1f7[_0x2959('0x26')][_0x2959('0x16')],_0xb0259c=_0x4ee1f7[_0x2959('0x20')][_0x2959('0x3c')];return _0x4c0e70 instanceof _0x2502b8?_0x4c0e70!=_0xb0259c?null:_0x4c0e70:null;}[_0x2959('0x12')](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this[_0x2959('0x34')]();}[_0x2959('0x25')](){this[_0x2959('0x8')](this[_0x2959('0x1c')](),this['data'],this['attributes']),this[_0x2959('0x34')]();}[_0x2959('0x1f')](){const _0x8f684c=[];let _0x3a39dd=this[_0x2959('0x1')];for(;_0x3a39dd;)_0x8f684c['push'](_0x3a39dd),_0x3a39dd=_0x3a39dd[_0x2959('0x3')];return _0x8f684c;}[_0x2959('0x17')](_0x1fa0b5,_0x26a7e1){const _0x48d6ed=_0x3282af(this[_0x2959('0x2e')]);_0x451929(_0x48d6ed,_0x1fa0b5,_0x26a7e1),_0x282d57(_0x48d6ed,this[_0x2959('0x2e')])||(this[_0x2959('0x2e')]=_0x48d6ed,this['_onAttributesChange'](_0x48d6ed));}[_0x2959('0x2d')](_0x13d24f){const _0x50922f=_0x3282af(this[_0x2959('0x2e')]);_0x1e2876(_0x50922f,_0x13d24f),_0x282d57(_0x50922f,this[_0x2959('0x2e')])||(this[_0x2959('0x2e')]=_0x50922f,this[_0x2959('0x30')](this['attributes']));}[_0x2959('0x1d')](){return{'id':this['id'],'type':this[_0x2959('0x13')]?this[_0x2959('0x7')]+':'+this[_0x2959('0x13')]:this[_0x2959('0x7')],'authorId':this[_0x2959('0x10')]['id'],'createdAt':this[_0x2959('0x22')],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x2959('0x2e')]};}static[_0x2959('0x27')](){return _0x29ae32()[_0x2959('0x38')](0x1,0x5);}}_0x3426cc(o,_0x5cd926);
23
+ const _0x1312=['get','suggestion:','_saved','removeAttribute','change','head','reduce','getContainedElement','data','length','onAttributesChange','toJSON','from','previous','isIntersecting','creator','@external','isInContent','isExternal','getItems','clear','next','_markerNames','attributes','onDiscard','hasComments','createdAt','decorate','author','addRange','map','accept','removeMarker','getMarkers','set','push','addMarkerName','onAccept','discard','size','type','_model','getRange','getMultiRangeId','_onAccept','_onDiscard','filter','getMarkerNames','subType','nodeAfter','getRanges','end','getFirstMarker','commentThread','substr','add','removeMarkers','setAttribute','_onAttributesChange','delete'];(function(_0x1bd61a,_0x131276){const _0x374109=function(_0x234c6b){while(--_0x234c6b){_0x1bd61a['push'](_0x1bd61a['shift']());}};_0x374109(++_0x131276);}(_0x1312,0xd9));const _0x3741=function(_0x1bd61a,_0x131276){_0x1bd61a=_0x1bd61a-0x0;let _0x374109=_0x1312[_0x1bd61a];return _0x374109;};import{Element as _0x5de625}from'ckeditor5/src/engine';import{ObservableMixin as _0x36f049,mix as _0x479369,uid as _0x4cc549}from'ckeditor5/src/utils';import{cloneDeep as _0x2db8da,isEqual as _0x4a72ac,set as _0x18238c,unset as _0x1a5a4b}from'lodash-es';export default class o{constructor(_0x1e5d2d,_0x2acd78){this['id']=_0x2acd78['id'],this[_0x3741('0x3')]=_0x2acd78[_0x3741('0x3')],this['subType']=_0x2acd78[_0x3741('0xb')]||null,this['author']=_0x2acd78[_0x3741('0x33')],this[_0x3741('0x26')]=_0x2acd78[_0x3741('0x26')]||_0x2acd78['author'],this[_0x3741('0x29')]=Boolean(_0x2acd78['attributes']&&_0x2acd78[_0x3741('0x2e')][_0x3741('0x27')]),this[_0x3741('0x1f')]=null,this[_0x3741('0x4')]=_0x1e5d2d,this[_0x3741('0x7')]=_0x2acd78[_0x3741('0x0')],this['_onDiscard']=_0x2acd78[_0x3741('0x2f')],this[_0x3741('0x15')]=_0x2acd78[_0x3741('0x21')],this[_0x3741('0x2d')]=new Set(),this[_0x3741('0x31')]=null,this['set']('authoredAt',null),this['set'](_0x3741('0x2e'),_0x2acd78['attributes']||{}),this[_0x3741('0x39')](_0x3741('0x24'),null),this[_0x3741('0x39')](_0x3741('0x2c'),null),this[_0x3741('0x39')](_0x3741('0x10'),null),this[_0x3741('0x39')](_0x3741('0x19'),!0x1),this[_0x3741('0x32')]('accept'),this[_0x3741('0x32')](_0x3741('0x1'));}get['head'](){let _0x850334=this;for(;_0x850334[_0x3741('0x24')];)_0x850334=_0x850334[_0x3741('0x24')];return _0x850334;}get[_0x3741('0x30')](){return!!this[_0x3741('0x10')]&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames'][_0x3741('0x2')])return!0x1;return 0x6==Array[_0x3741('0x23')](this[_0x3741('0x2d')])[0x0]['split'](':')[_0x3741('0x20')];}get[_0x3741('0x28')](){return null!==this[_0x3741('0xf')]();}['addMarkerName'](_0x16914d){this[_0x3741('0x2d')][_0x3741('0x12')](_0x16914d);}[_0x3741('0xa')](){return Array['from'](this[_0x3741('0x2d')]);}[_0x3741('0x38')](){return this[_0x3741('0xa')]()[_0x3741('0x35')](_0x8885da=>this[_0x3741('0x4')]['markers'][_0x3741('0x17')](_0x8885da))[_0x3741('0x9')](_0x27f4cb=>_0x27f4cb);}[_0x3741('0xf')](){return this[_0x3741('0x38')]()[0x0]||null;}[_0x3741('0x13')](){this['_model'][_0x3741('0x1b')](_0x5eb833=>{for(const _0x1de3e1 of this['getMarkers']())_0x5eb833['removeMarker'](_0x1de3e1);}),this['_markerNames'][_0x3741('0x2b')]();}['removeMarker'](_0x5689a2){this[_0x3741('0x4')][_0x3741('0x1b')](_0x12e6eb=>{_0x12e6eb[_0x3741('0x37')](_0x5689a2);}),this[_0x3741('0x2d')][_0x3741('0x16')](_0x5689a2);}[_0x3741('0x34')](_0x477329){const _0x3eb92c=_0x3741('0x18')+this[_0x3741('0x3')]+':'+this[_0x3741('0xb')]+':'+this['id']+':'+this['creator']['id']+':'+o[_0x3741('0x6')]();this[_0x3741('0x3b')](_0x3eb92c),this[_0x3741('0x4')][_0x3741('0x1b')](_0x1643b9=>{_0x1643b9['addMarker'](_0x3eb92c,{'range':_0x477329,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7f5402){for(const _0x4683c5 of this['getRanges']())if(_0x4683c5[_0x3741('0x25')](_0x7f5402))return!0x0;return!0x1;}[_0x3741('0xd')](){return this['getMarkers']()[_0x3741('0x35')](_0x251500=>_0x251500[_0x3741('0x5')]());}[_0x3741('0x2a')](){return this[_0x3741('0xd')]()[_0x3741('0x1d')]((_0x11b5f5,_0x21ae8e)=>[..._0x11b5f5,..._0x21ae8e[_0x3741('0x2a')]()],[]);}['getFirstRange'](){return this[_0x3741('0xf')]()[_0x3741('0x5')]();}[_0x3741('0x1e')](){const _0x2e6047=this['getRanges']();if(0x1!=_0x2e6047['length'])return null;const _0x16664f=_0x2e6047[0x0],_0xf2e107=_0x16664f['start'][_0x3741('0xc')],_0x3d147a=_0x16664f[_0x3741('0xe')]['nodeBefore'];return _0xf2e107 instanceof _0x5de625?_0xf2e107!=_0x3d147a?null:_0xf2e107:null;}[_0x3741('0x36')](){this[_0x3741('0x7')](this[_0x3741('0xd')](),this['data'],this[_0x3741('0x2e')]),this[_0x3741('0x13')]();}[_0x3741('0x1')](){this[_0x3741('0x8')](this[_0x3741('0xd')](),this[_0x3741('0x1f')],this[_0x3741('0x2e')]),this[_0x3741('0x13')]();}['getAllAdjacentSuggestions'](){const _0x4a47db=[];let _0x1cf0ed=this[_0x3741('0x1c')];for(;_0x1cf0ed;)_0x4a47db[_0x3741('0x3a')](_0x1cf0ed),_0x1cf0ed=_0x1cf0ed[_0x3741('0x2c')];return _0x4a47db;}[_0x3741('0x14')](_0x55949a,_0x3a4d24){const _0xee7735=_0x2db8da(this[_0x3741('0x2e')]);_0x18238c(_0xee7735,_0x55949a,_0x3a4d24),_0x4a72ac(_0xee7735,this[_0x3741('0x2e')])||(this['attributes']=_0xee7735,this[_0x3741('0x15')](_0xee7735));}[_0x3741('0x1a')](_0x4418ea){const _0x3c1ae8=_0x2db8da(this[_0x3741('0x2e')]);_0x1a5a4b(_0x3c1ae8,_0x4418ea),_0x4a72ac(_0x3c1ae8,this[_0x3741('0x2e')])||(this[_0x3741('0x2e')]=_0x3c1ae8,this[_0x3741('0x15')](this[_0x3741('0x2e')]));}[_0x3741('0x22')](){return{'id':this['id'],'type':this[_0x3741('0xb')]?this['type']+':'+this['subType']:this[_0x3741('0x3')],'authorId':this[_0x3741('0x26')]['id'],'createdAt':this[_0x3741('0x31')],'hasComments':this['hasComments'],'data':this[_0x3741('0x1f')],'attributes':this[_0x3741('0x2e')]};}static[_0x3741('0x6')](){return _0x4cc549()[_0x3741('0x11')](0x1,0x5);}}_0x479369(o,_0x36f049);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48c4=['deletion','$1\x20$2','$text','textProxy','registerDescriptionCallback','isInContent','pop','quantity','function','getWalker','_addDescriptionItems','get','*Remove:*\x20%0','_schema','nextSibling','matchingCallback','EmptyContainer','removeContainer','getFirstRange','name','normal','_itemLabels','label','_itemLabelsCallbacks','elementEnd','*Split:*\x20%0','ELEMENT_SPACE','remove','item','_resolveDescriptionItems','_locale','length','add','end','match','text','skip','Container','Object','data','set','element','indexOf','isEmpty','getDescriptions','type','removeObject','push','_customCallbacks','*Insert:*\x20%0','getItemLabel','isObject','replace','previousSibling','softBreak','removeEmptyContainer','REPLACE_TEXT','addObject','insertion'];(function(_0x5a1cb8,_0x48c454){const _0x5e5776=function(_0x53a3f1){while(--_0x53a3f1){_0x5a1cb8['push'](_0x5a1cb8['shift']());}};_0x5e5776(++_0x48c454);}(_0x48c4,0x1de));const _0x5e57=function(_0x5a1cb8,_0x48c454){_0x5a1cb8=_0x5a1cb8-0x0;let _0x5e5776=_0x48c4[_0x5a1cb8];return _0x5e5776;};import{getTranslation as _0x1898f4}from'./utils/common-translations';import{priorities as _0x562344,insertToPriorityArray as _0x564e67}from'ckeditor5/src/utils';export default class f{constructor(_0x3c43dd,_0x31db6d){this[_0x5e57('0x2a')]=[],this[_0x5e57('0xf')]=new Map(),this['_itemLabelsCallbacks']=[],this[_0x5e57('0x7')]=_0x3c43dd,this[_0x5e57('0x18')]=_0x31db6d;}[_0x5e57('0x26')](_0x41fcc6){const _0x1d23b5=[];for(let _0x3db677=0x0;_0x3db677<_0x41fcc6['length'];_0x3db677++){const _0x52dc34=_0x41fcc6[_0x3db677];if(!_0x52dc34[_0x5e57('0x3a')])continue;let _0x9c4f1f=!0x1;for(const _0x12f36e of this[_0x5e57('0x2a')]){const _0x1fda45=_0x12f36e(_0x52dc34);if(_0x1fda45){_0x1fda45['type']&&_0x1d23b5[_0x5e57('0x29')](_0x1fda45),_0x9c4f1f=!0x0;break;}}if(!_0x9c4f1f){this[_0x5e57('0x4')](_0x1d23b5,_0x52dc34);const _0x2dc117=_0x41fcc6[_0x3db677+0x1];if(_0x2dc117&&!_0x52dc34['getFirstRange']()[_0x5e57('0x1b')]['isEqual'](_0x2dc117[_0x5e57('0xc')]()['start'])){const _0x4626c3=_0x1d23b5[_0x1d23b5['length']-0x1],_0x24b5db=_0x5e57('0x34')==_0x52dc34['type']?'add':_0x5e57('0x15');_0x4626c3&&_0x5e57('0x1d')==_0x4626c3['type']&&(_0x4626c3[_0x24b5db]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x1d23b5);}[_0x5e57('0x39')](_0x1a852a){this['_customCallbacks'][_0x5e57('0x29')](_0x1a852a);}['registerElementLabel'](_0x1e717a,_0x3f49cb,_0x3f5141=_0x562344[_0x5e57('0xe')]){_0x5e57('0x2')==typeof _0x1e717a?_0x564e67(this[_0x5e57('0x11')],{'matchingCallback':_0x1e717a,'label':_0x3f49cb,'priority':_0x3f5141}):this[_0x5e57('0xf')][_0x5e57('0x22')](_0x1e717a,_0x3f49cb);}[_0x5e57('0x2c')](_0x30a797,_0x1f06d3=0x1){let _0x510d24;for(const _0x27a91b of this[_0x5e57('0x11')])if(_0x27a91b[_0x5e57('0x9')](_0x30a797)){_0x510d24=_0x27a91b[_0x5e57('0x10')];break;}return _0x510d24||(_0x510d24=this[_0x5e57('0xf')][_0x5e57('0x5')](_0x30a797[_0x5e57('0xd')])),_0x510d24?_0x510d24(_0x1f06d3):0x1!==_0x1f06d3?_0x1f06d3+'\x20'+_0x30a797[_0x5e57('0xd')]+'s':''+_0x30a797['name'];}[_0x5e57('0x4')](_0x2e68ee,_0xaf12d6){const _0x5ed9ec=_0xaf12d6['getFirstRange']()[_0x5e57('0x3')](),_0x6627d2='insertion'==_0xaf12d6[_0x5e57('0x27')]?_0x5e57('0x1a'):'remove';for(const _0x4c7d33 of _0x5ed9ec){const _0x478b48=_0x4c7d33[_0x5e57('0x16')],_0x3e8e3a=_0x2e68ee[_0x2e68ee['length']-0x1];if(_0x478b48['is'](_0x5e57('0x38')))_0x3e8e3a&&_0x3e8e3a[_0x5e57('0x27')][_0x5e57('0x24')](_0x5e57('0x1f'))>-0x1&&_0x2e68ee[_0x5e57('0x0')](),_0x3e8e3a&&_0x5e57('0x1d')==_0x3e8e3a[_0x5e57('0x27')]?_0x3e8e3a[_0x6627d2]+=_0x478b48['data']:_0x2e68ee[_0x5e57('0x29')]({'type':'text','add':_0x5e57('0x1a')==_0x6627d2?_0x478b48[_0x5e57('0x21')]:'','remove':_0x5e57('0x15')==_0x6627d2?_0x478b48[_0x5e57('0x21')]:''});else{if(this[_0x5e57('0x7')]['isObject'](_0x478b48)){if(_0x3e8e3a&&_0x3e8e3a[_0x5e57('0x27')][_0x5e57('0x24')](_0x5e57('0x1f'))>-0x1&&_0x2e68ee['pop'](),_0x5e57('0x12')==_0x4c7d33['type'])continue;_0x3e8e3a&&_0x3e8e3a['type']==_0x6627d2+_0x5e57('0x20')&&_0x3e8e3a[_0x5e57('0x23')]['name']==_0x478b48[_0x5e57('0xd')]?_0x3e8e3a[_0x5e57('0x1')]++:_0x2e68ee[_0x5e57('0x29')]({'type':_0x6627d2+_0x5e57('0x20'),'element':_0x478b48,'quantity':0x1}),_0x5ed9ec[_0x5e57('0x1e')](_0x3a11b1=>!(_0x5e57('0x12')==_0x3a11b1['type']&&_0x3a11b1[_0x5e57('0x16')]==_0x478b48));}else{if(this['_schema']['checkChild'](_0x478b48,_0x5e57('0x37'))||_0x478b48['is']('element',_0x5e57('0x30'))){if(_0x5e57('0x1a')==_0x6627d2&&'elementStart'==_0x4c7d33[_0x5e57('0x27')]||'remove'==_0x6627d2&&_0x5e57('0x12')==_0x4c7d33[_0x5e57('0x27')])continue;if(_0x3e8e3a&&-0x1==_0x3e8e3a[_0x5e57('0x27')][_0x5e57('0x24')]('Container')){_0x5e57('0x1d')==_0x3e8e3a['type']&&(_0x3e8e3a[_0x6627d2]+='\x0a');continue;}let _0x206c2e;if(_0x206c2e=_0x5e57('0x1a')==_0x6627d2?_0x478b48[_0x5e57('0x8')]&&!this[_0x5e57('0x7')][_0x5e57('0x2d')](_0x478b48[_0x5e57('0x8')])?_0x478b48[_0x5e57('0x8')]:null:_0x478b48[_0x5e57('0x2f')]&&!this[_0x5e57('0x7')]['isObject'](_0x478b48['previousSibling'])?_0x478b48['previousSibling']:null,_0x478b48[_0x5e57('0x25')]||_0x206c2e&&_0x206c2e[_0x5e57('0x25')]){const _0xfcd514=_0x206c2e&&_0x206c2e['isEmpty']?_0x206c2e:_0x478b48;_0x3e8e3a&&_0x3e8e3a[_0x5e57('0x27')]==_0x6627d2+_0x5e57('0xa')&&_0x3e8e3a[_0x5e57('0x23')][_0x5e57('0xd')]==_0xfcd514[_0x5e57('0xd')]?_0x3e8e3a[_0x5e57('0x1')]++:_0x2e68ee[_0x5e57('0x29')]({'type':_0x6627d2+_0x5e57('0xa'),'element':_0xfcd514,'quantity':0x1});}else _0x2e68ee[_0x5e57('0x29')]({'type':_0x6627d2+'Container','element':_0x478b48});}}}}}[_0x5e57('0x17')](_0x2b4df2){const _0x4835ab=this[_0x5e57('0x18')],_0x507d75=[];for(const _0x5010ce of _0x2b4df2){switch(_0x5010ce[_0x5e57('0x27')]){case _0x5e57('0x1d'):if(_0x5010ce['add']=_0x5010ce[_0x5e57('0x1a')][_0x5e57('0x2e')](/(\S)\u000A+(\S)/g,_0x5e57('0x36'))[_0x5e57('0x2e')](/\u000A/g,''),_0x5010ce[_0x5e57('0x15')]=_0x5010ce[_0x5e57('0x15')][_0x5e57('0x2e')](/(\S)\u000A+(\S)/g,_0x5e57('0x36'))['replace'](/\u000A/g,''),''!=_0x5010ce[_0x5e57('0x1a')]&&''!=_0x5010ce[_0x5e57('0x15')]){_0x507d75[_0x5e57('0x29')]({'type':'replace','content':_0x1898f4(_0x4835ab,_0x5e57('0x32'),['\x22'+_0x5010ce[_0x5e57('0x15')]+'\x22','\x22'+_0x5010ce[_0x5e57('0x1a')]+'\x22'])});continue;}if(null!=_0x5010ce[_0x5e57('0x1a')][_0x5e57('0x1c')](/^ +$/)){_0x507d75['push']({'type':_0x5e57('0x34'),'content':_0x1898f4(_0x4835ab,_0x5e57('0x2b'),_0x1898f4(_0x4835ab,_0x5e57('0x14'),_0x5010ce[_0x5e57('0x1a')][_0x5e57('0x19')]))});continue;}if(null!=_0x5010ce[_0x5e57('0x15')][_0x5e57('0x1c')](/^ +$/)){_0x507d75['push']({'type':_0x5e57('0x35'),'content':_0x1898f4(_0x4835ab,_0x5e57('0x6'),_0x1898f4(_0x4835ab,_0x5e57('0x14'),_0x5010ce[_0x5e57('0x15')][_0x5e57('0x19')]))});continue;}if(''!=_0x5010ce[_0x5e57('0x1a')]){_0x507d75['push']({'type':_0x5e57('0x34'),'content':_0x1898f4(_0x4835ab,'*Insert:*\x20%0','\x22'+_0x5010ce[_0x5e57('0x1a')]+'\x22')});continue;}_0x507d75[_0x5e57('0x29')]({'type':_0x5e57('0x35'),'content':_0x1898f4(_0x4835ab,_0x5e57('0x6'),'\x22'+_0x5010ce[_0x5e57('0x15')]+'\x22')});continue;case'addEmptyContainer':case _0x5e57('0x33'):_0x507d75[_0x5e57('0x29')]({'type':_0x5e57('0x34'),'content':_0x1898f4(_0x4835ab,_0x5e57('0x2b'),this['getItemLabel'](_0x5010ce[_0x5e57('0x23')],_0x5010ce[_0x5e57('0x1')]))});continue;case _0x5e57('0x31'):case _0x5e57('0x28'):_0x507d75['push']({'type':_0x5e57('0x35'),'content':_0x1898f4(_0x4835ab,_0x5e57('0x6'),this[_0x5e57('0x2c')](_0x5010ce[_0x5e57('0x23')],_0x5010ce[_0x5e57('0x1')]))});continue;case'addContainer':_0x507d75[_0x5e57('0x29')]({'type':'insertion','content':_0x1898f4(_0x4835ab,_0x5e57('0x13'),this[_0x5e57('0x2c')](_0x5010ce[_0x5e57('0x23')],_0x5010ce[_0x5e57('0x1')]))});continue;case _0x5e57('0xb'):_0x507d75[_0x5e57('0x29')]({'type':'deletion','content':_0x1898f4(_0x4835ab,'*Merge:*\x20%0',this[_0x5e57('0x2c')](_0x5010ce[_0x5e57('0x23')],_0x5010ce[_0x5e57('0x1')]))});continue;}_0x507d75[_0x5e57('0x29')](_0x5010ce);}return _0x507d75;}}
23
+ const _0x44ed=['registerElementLabel','EmptyContainer','item','softBreak','remove','deletion','pop','replace','type','isEmpty','_itemLabelsCallbacks','addContainer','*Merge:*\x20%0','isInContent','*Remove:*\x20%0','add','elementStart','start','_addDescriptionItems','textProxy','text','quantity','indexOf','*Insert:*\x20%0','registerDescriptionCallback','previousSibling','label','Container','removeObject','Object','getFirstRange','insertion','length','_itemLabels','addEmptyContainer','normal','$text','elementEnd','_schema','get','_locale','push','*Split:*\x20%0','_customCallbacks','removeContainer','$1\x20$2','skip','isObject','getWalker','data','element','REPLACE_TEXT','getItemLabel','end','isEqual','checkChild','nextSibling','match','name'];(function(_0xe0764,_0x44edc7){const _0x23acc7=function(_0x36e42b){while(--_0x36e42b){_0xe0764['push'](_0xe0764['shift']());}};_0x23acc7(++_0x44edc7);}(_0x44ed,0x67));const _0x23ac=function(_0xe0764,_0x44edc7){_0xe0764=_0xe0764-0x0;let _0x23acc7=_0x44ed[_0xe0764];return _0x23acc7;};import{getTranslation as _0x274c2e}from'./utils/common-translations';import{priorities as _0x5eb1c5,insertToPriorityArray as _0x25be2b}from'ckeditor5/src/utils';export default class f{constructor(_0x328dfa,_0x45c86d){this[_0x23ac('0x3a')]=[],this[_0x23ac('0x30')]=new Map(),this[_0x23ac('0x19')]=[],this[_0x23ac('0x35')]=_0x328dfa,this[_0x23ac('0x37')]=_0x45c86d;}['getDescriptions'](_0x49d28c){const _0x256c17=[];for(let _0x1abdfd=0x0;_0x1abdfd<_0x49d28c[_0x23ac('0x2f')];_0x1abdfd++){const _0x544d3d=_0x49d28c[_0x1abdfd];if(!_0x544d3d[_0x23ac('0x1c')])continue;let _0x52a398=!0x1;for(const _0x2eba6f of this['_customCallbacks']){const _0x42157f=_0x2eba6f(_0x544d3d);if(_0x42157f){_0x42157f['type']&&_0x256c17[_0x23ac('0x38')](_0x42157f),_0x52a398=!0x0;break;}}if(!_0x52a398){this[_0x23ac('0x21')](_0x256c17,_0x544d3d);const _0xac5ea4=_0x49d28c[_0x1abdfd+0x1];if(_0xac5ea4&&!_0x544d3d[_0x23ac('0x2d')]()[_0x23ac('0x9')][_0x23ac('0xa')](_0xac5ea4[_0x23ac('0x2d')]()[_0x23ac('0x20')])){const _0x39e7e4=_0x256c17[_0x256c17[_0x23ac('0x2f')]-0x1],_0x22eeda='insertion'==_0x544d3d['type']?'add':'remove';_0x39e7e4&&_0x23ac('0x23')==_0x39e7e4['type']&&(_0x39e7e4[_0x22eeda]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x256c17);}[_0x23ac('0x27')](_0x3c2cf5){this[_0x23ac('0x3a')][_0x23ac('0x38')](_0x3c2cf5);}[_0x23ac('0xf')](_0x37ce11,_0x5e6909,_0x428d5b=_0x5eb1c5[_0x23ac('0x32')]){'function'==typeof _0x37ce11?_0x25be2b(this[_0x23ac('0x19')],{'matchingCallback':_0x37ce11,'label':_0x5e6909,'priority':_0x428d5b}):this['_itemLabels']['set'](_0x37ce11,_0x5e6909);}[_0x23ac('0x8')](_0x36ac7f,_0x2bc7ab=0x1){let _0x388187;for(const _0x198bcb of this[_0x23ac('0x19')])if(_0x198bcb['matchingCallback'](_0x36ac7f)){_0x388187=_0x198bcb[_0x23ac('0x29')];break;}return _0x388187||(_0x388187=this[_0x23ac('0x30')][_0x23ac('0x36')](_0x36ac7f[_0x23ac('0xe')])),_0x388187?_0x388187(_0x2bc7ab):0x1!==_0x2bc7ab?_0x2bc7ab+'\x20'+_0x36ac7f[_0x23ac('0xe')]+'s':''+_0x36ac7f[_0x23ac('0xe')];}[_0x23ac('0x21')](_0x2c46,_0x29fab2){const _0x34b271=_0x29fab2[_0x23ac('0x2d')]()[_0x23ac('0x4')](),_0x94dcb3=_0x23ac('0x2e')==_0x29fab2[_0x23ac('0x17')]?_0x23ac('0x1e'):_0x23ac('0x13');for(const _0x79c24b of _0x34b271){const _0x2b0496=_0x79c24b[_0x23ac('0x11')],_0x24e2b8=_0x2c46[_0x2c46['length']-0x1];if(_0x2b0496['is'](_0x23ac('0x22')))_0x24e2b8&&_0x24e2b8[_0x23ac('0x17')][_0x23ac('0x25')](_0x23ac('0x2a'))>-0x1&&_0x2c46['pop'](),_0x24e2b8&&_0x23ac('0x23')==_0x24e2b8[_0x23ac('0x17')]?_0x24e2b8[_0x94dcb3]+=_0x2b0496[_0x23ac('0x5')]:_0x2c46[_0x23ac('0x38')]({'type':_0x23ac('0x23'),'add':_0x23ac('0x1e')==_0x94dcb3?_0x2b0496[_0x23ac('0x5')]:'','remove':_0x23ac('0x13')==_0x94dcb3?_0x2b0496[_0x23ac('0x5')]:''});else{if(this['_schema'][_0x23ac('0x3')](_0x2b0496)){if(_0x24e2b8&&_0x24e2b8[_0x23ac('0x17')][_0x23ac('0x25')](_0x23ac('0x2a'))>-0x1&&_0x2c46[_0x23ac('0x15')](),'elementEnd'==_0x79c24b[_0x23ac('0x17')])continue;_0x24e2b8&&_0x24e2b8[_0x23ac('0x17')]==_0x94dcb3+_0x23ac('0x2c')&&_0x24e2b8[_0x23ac('0x6')][_0x23ac('0xe')]==_0x2b0496[_0x23ac('0xe')]?_0x24e2b8[_0x23ac('0x24')]++:_0x2c46[_0x23ac('0x38')]({'type':_0x94dcb3+_0x23ac('0x2c'),'element':_0x2b0496,'quantity':0x1}),_0x34b271[_0x23ac('0x2')](_0x107b62=>!(_0x23ac('0x34')==_0x107b62[_0x23ac('0x17')]&&_0x107b62['item']==_0x2b0496));}else{if(this[_0x23ac('0x35')][_0x23ac('0xb')](_0x2b0496,_0x23ac('0x33'))||_0x2b0496['is'](_0x23ac('0x6'),_0x23ac('0x12'))){if(_0x23ac('0x1e')==_0x94dcb3&&_0x23ac('0x1f')==_0x79c24b[_0x23ac('0x17')]||_0x23ac('0x13')==_0x94dcb3&&_0x23ac('0x34')==_0x79c24b[_0x23ac('0x17')])continue;if(_0x24e2b8&&-0x1==_0x24e2b8[_0x23ac('0x17')]['indexOf'](_0x23ac('0x2a'))){_0x23ac('0x23')==_0x24e2b8[_0x23ac('0x17')]&&(_0x24e2b8[_0x94dcb3]+='\x0a');continue;}let _0x5e4146;if(_0x5e4146='add'==_0x94dcb3?_0x2b0496['nextSibling']&&!this[_0x23ac('0x35')]['isObject'](_0x2b0496[_0x23ac('0xc')])?_0x2b0496[_0x23ac('0xc')]:null:_0x2b0496[_0x23ac('0x28')]&&!this['_schema'][_0x23ac('0x3')](_0x2b0496['previousSibling'])?_0x2b0496[_0x23ac('0x28')]:null,_0x2b0496[_0x23ac('0x18')]||_0x5e4146&&_0x5e4146[_0x23ac('0x18')]){const _0x12adf7=_0x5e4146&&_0x5e4146[_0x23ac('0x18')]?_0x5e4146:_0x2b0496;_0x24e2b8&&_0x24e2b8['type']==_0x94dcb3+_0x23ac('0x10')&&_0x24e2b8[_0x23ac('0x6')][_0x23ac('0xe')]==_0x12adf7[_0x23ac('0xe')]?_0x24e2b8[_0x23ac('0x24')]++:_0x2c46[_0x23ac('0x38')]({'type':_0x94dcb3+_0x23ac('0x10'),'element':_0x12adf7,'quantity':0x1});}else _0x2c46[_0x23ac('0x38')]({'type':_0x94dcb3+_0x23ac('0x2a'),'element':_0x2b0496});}}}}}['_resolveDescriptionItems'](_0x293102){const _0x35c225=this['_locale'],_0x4a25af=[];for(const _0x14d733 of _0x293102){switch(_0x14d733[_0x23ac('0x17')]){case _0x23ac('0x23'):if(_0x14d733[_0x23ac('0x1e')]=_0x14d733[_0x23ac('0x1e')][_0x23ac('0x16')](/(\S)\u000A+(\S)/g,_0x23ac('0x1'))['replace'](/\u000A/g,''),_0x14d733[_0x23ac('0x13')]=_0x14d733[_0x23ac('0x13')]['replace'](/(\S)\u000A+(\S)/g,_0x23ac('0x1'))[_0x23ac('0x16')](/\u000A/g,''),''!=_0x14d733[_0x23ac('0x1e')]&&''!=_0x14d733[_0x23ac('0x13')]){_0x4a25af[_0x23ac('0x38')]({'type':'replace','content':_0x274c2e(_0x35c225,_0x23ac('0x7'),['\x22'+_0x14d733[_0x23ac('0x13')]+'\x22','\x22'+_0x14d733['add']+'\x22'])});continue;}if(null!=_0x14d733['add'][_0x23ac('0xd')](/^ +$/)){_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x26'),_0x274c2e(_0x35c225,'ELEMENT_SPACE',_0x14d733[_0x23ac('0x1e')][_0x23ac('0x2f')]))});continue;}if(null!=_0x14d733['remove'][_0x23ac('0xd')](/^ +$/)){_0x4a25af['push']({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1d'),_0x274c2e(_0x35c225,'ELEMENT_SPACE',_0x14d733[_0x23ac('0x13')][_0x23ac('0x2f')]))});continue;}if(''!=_0x14d733['add']){_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x26'),'\x22'+_0x14d733['add']+'\x22')});continue;}_0x4a25af['push']({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1d'),'\x22'+_0x14d733[_0x23ac('0x13')]+'\x22')});continue;case _0x23ac('0x31'):case'addObject':_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x26'),this[_0x23ac('0x8')](_0x14d733['element'],_0x14d733[_0x23ac('0x24')]))});continue;case'removeEmptyContainer':case _0x23ac('0x2b'):_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1d'),this[_0x23ac('0x8')](_0x14d733[_0x23ac('0x6')],_0x14d733[_0x23ac('0x24')]))});continue;case _0x23ac('0x1a'):_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x39'),this[_0x23ac('0x8')](_0x14d733[_0x23ac('0x6')],_0x14d733[_0x23ac('0x24')]))});continue;case _0x23ac('0x0'):_0x4a25af['push']({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1b'),this[_0x23ac('0x8')](_0x14d733[_0x23ac('0x6')],_0x14d733[_0x23ac('0x24')]))});continue;}_0x4a25af[_0x23ac('0x38')](_0x14d733);}return _0x4a25af;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x146e=['adapter','pluginName','getSuggestions','editor','Comments','addSuggestionData','getSuggestion','addSuggestion','TrackChanges','get','plugins'];(function(_0x4829ba,_0x146e20){var _0x4491cd=function(_0x29273c){while(--_0x29273c){_0x4829ba['push'](_0x4829ba['shift']());}};_0x4491cd(++_0x146e20);}(_0x146e,0x193));var _0x4491=function(_0x4829ba,_0x146e20){_0x4829ba=_0x4829ba-0x0;var _0x4491cd=_0x146e[_0x4829ba];return _0x4491cd;};import{Plugin as _0x2cf061}from'ckeditor5/src/core';import _0x28c5fb from'./trackchangesui';import _0x43ab58 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x2cf061{static get['requires'](){return[_0x43ab58,_0x28c5fb,_0x4491('0x8')];}static get[_0x4491('0x5')](){return _0x4491('0x1');}set[_0x4491('0x4')](_0x2b8d38){this['editor'][_0x4491('0x3')][_0x4491('0x2')](_0x43ab58)['adapter']=_0x2b8d38;}get[_0x4491('0x4')](){return this[_0x4491('0x7')][_0x4491('0x3')][_0x4491('0x2')](_0x43ab58)[_0x4491('0x4')];}[_0x4491('0x0')](_0x249473){return this[_0x4491('0x7')][_0x4491('0x3')]['get'](_0x43ab58)[_0x4491('0x9')](_0x249473);}[_0x4491('0x6')](_0x15bc00){return this[_0x4491('0x7')][_0x4491('0x3')]['get'](_0x43ab58)[_0x4491('0x6')](_0x15bc00);}[_0x4491('0xa')](_0x4eff6d){return this[_0x4491('0x7')]['plugins'][_0x4491('0x2')](_0x43ab58)['getSuggestion'](_0x4eff6d);}}
23
+ var _0xba4c=['addSuggestionData','editor','getSuggestion','getSuggestions','requires','get','plugins','Comments','adapter','addSuggestion','TrackChanges','pluginName'];(function(_0x3d772b,_0xba4c16){var _0x53fb93=function(_0x222c31){while(--_0x222c31){_0x3d772b['push'](_0x3d772b['shift']());}};_0x53fb93(++_0xba4c16);}(_0xba4c,0x166));var _0x53fb=function(_0x3d772b,_0xba4c16){_0x3d772b=_0x3d772b-0x0;var _0x53fb93=_0xba4c[_0x3d772b];return _0x53fb93;};import{Plugin as _0x4faa4d}from'ckeditor5/src/core';import _0x70925 from'./trackchangesui';import _0x379619 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x4faa4d{static get[_0x53fb('0x6')](){return[_0x379619,_0x70925,_0x53fb('0x9')];}static get[_0x53fb('0x1')](){return _0x53fb('0x0');}set[_0x53fb('0xa')](_0x11f7bc){this[_0x53fb('0x3')][_0x53fb('0x8')]['get'](_0x379619)[_0x53fb('0xa')]=_0x11f7bc;}get[_0x53fb('0xa')](){return this[_0x53fb('0x3')][_0x53fb('0x8')]['get'](_0x379619)[_0x53fb('0xa')];}[_0x53fb('0xb')](_0x189c19){return this[_0x53fb('0x3')][_0x53fb('0x8')][_0x53fb('0x7')](_0x379619)[_0x53fb('0x2')](_0x189c19);}[_0x53fb('0x5')](_0x35522c){return this[_0x53fb('0x3')][_0x53fb('0x8')]['get'](_0x379619)['getSuggestions'](_0x35522c);}['getSuggestion'](_0x444f42){return this[_0x53fb('0x3')][_0x53fb('0x8')][_0x53fb('0x7')](_0x379619)[_0x53fb('0x4')](_0x444f42);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1881=['getDataWithDiscardedSuggestions','destroy','string','CommentsRepository','document','getUser','RealTimeCollaborativeComments','every','plugins','find','TrackChangesEditing','includes','execute','model','RealTimeCollaborativeRevisionHistory','useAnonymousUser','map','name','WordCount','pluginName','editor','toolbar','TrackChangesData','filter','initialData','set','users','getSuggestions','requires','extraPlugins','trackChangesData','RealTimeCollaborativeEditing','div','context','trackChangesData.editorCreator','push','init','discardAllSuggestions','constructor','data','function','end','createElement','editorCreator','reduce','get','result','createDocumentFragment','define','addSuggestionData','config','addUser','concat','getRootNames','TrackChangesDataGetter','_adapter','getDataWithAcceptedSuggestions'];(function(_0x8edb0,_0x1881ea){const _0xec1248=function(_0xb2d772){while(--_0xb2d772){_0x8edb0['push'](_0x8edb0['shift']());}};_0xec1248(++_0x1881ea);}(_0x1881,0x66));const _0xec12=function(_0x8edb0,_0x1881ea){_0x8edb0=_0x8edb0-0x0;let _0xec1248=_0x1881[_0x8edb0];return _0xec1248;};import{Plugin as _0x1a1943}from'ckeditor5/src/core';import{CKEditorError as _0xa96633}from'ckeditor5/src/utils';import _0x3afff2 from'./trackchangesediting';const T=[_0xec12('0x24'),_0xec12('0x2d'),_0xec12('0x21')],D=[_0xec12('0x2b'),_0xec12('0x12'),'RealTimeCollaborativeTrackChanges',_0xec12('0x1a'),'Autosave',_0xec12('0x1e')];export default class v extends _0x1a1943{static get[_0xec12('0x28')](){return[_0x3afff2];}static get[_0xec12('0x1f')](){return _0xec12('0x22');}['init'](){const _0x9abb8d=this[_0xec12('0x20')];if(_0x9abb8d['config'][_0xec12('0x3')](_0xec12('0x2e'),_0x3df3a0=>_0x9abb8d[_0xec12('0x32')]['create']('',_0x3df3a0)),_0xec12('0x34')!=typeof _0x9abb8d['config'][_0xec12('0x0')](_0xec12('0x2a'))[_0xec12('0x37')])throw new _0xa96633('track-changes-data-invalid-editor-creator');}[_0xec12('0xb')](_0x43f122){return y(this['editor'],!0x0,_0x43f122);}[_0xec12('0xc')](_0x533ac2){return y(this[_0xec12('0x20')],!0x1,_0x533ac2);}}class w extends _0x1a1943{static get[_0xec12('0x1f')](){return _0xec12('0x9');}[_0xec12('0x30')](){this[_0xec12('0x1')]=_0xec12('0x35'),this['editor'][_0xec12('0x14')][_0xec12('0x0')](_0xec12('0xf'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this['editor'][_0xec12('0x14')]['get']('TrackChangesEditing')[_0xec12('0xa')]=null;}}async function y(_0x37d0cb,_0x4a40a8,_0x1562a6){const _0xcb5329=function(_0x5e8402){const _0x1296c5={};for(const _0x262c76 of _0x5e8402[_0xec12('0x5')]['names']())T[_0xec12('0x17')](_0x262c76)||(_0x1296c5[_0x262c76]=_0x5e8402[_0xec12('0x5')]['get'](_0x262c76));const _0x246e7b=_0x5e8402[_0xec12('0x32')]['builtinPlugins']||[],_0x305acb=_0x1296c5['extraPlugins']||[];delete _0x1296c5[_0xec12('0x29')];const _0x444e2e=_0x246e7b[_0xec12('0x7')](_0x1296c5[_0xec12('0x14')])[_0xec12('0x7')](_0x305acb)[_0xec12('0x1c')](_0x138aa9=>_0xec12('0xe')==typeof _0x138aa9?_0x246e7b[_0xec12('0x15')](_0x5f4c4e=>_0x5f4c4e[_0xec12('0x1f')]==_0x138aa9):_0x138aa9),_0x412ca0=Array['from'](new Set(_0x444e2e));return _0x1296c5[_0xec12('0x14')]=_0x412ca0[_0xec12('0x23')](_0x55d6d8=>S(_0x55d6d8,new Set())),_0x1296c5[_0xec12('0x14')]['push'](w),_0x1296c5[_0xec12('0x14')][_0xec12('0x2f')](_0x3afff2),_0x1296c5;}(_0x37d0cb),_0x7fac70=document[_0xec12('0x2')](),_0x17ec12=_0x37d0cb['config']['get'](_0xec12('0x2a'))[_0xec12('0x37')],_0x151057=await _0x17ec12(_0xcb5329,()=>function(_0x2549e5){const _0x271b3d=document[_0xec12('0x36')](_0xec12('0x2c'));return _0x2549e5['appendChild'](_0x271b3d),_0x271b3d;}(_0x7fac70));!function(_0x4603ee,_0x56bd3c){const _0x4ae09e=_0x4603ee[_0xec12('0x19')][_0xec12('0x10')][_0xec12('0x8')]()[_0xec12('0x38')]((_0x549eb4,_0x362eae)=>(_0x549eb4[_0x362eae]=_0x4603ee[_0xec12('0x33')][_0xec12('0x0')]({'rootName':_0x362eae}),_0x549eb4),{}),_0x987dbf=_0x4603ee[_0xec12('0x14')]['get']('Users')[_0xec12('0x26')]['map'](_0xdeab8b=>({'id':_0xdeab8b['id']})),_0x3c6732=_0x4603ee[_0xec12('0x14')][_0xec12('0x0')](_0xec12('0x16'))[_0xec12('0x27')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5eadd8=_0x56bd3c[_0xec12('0x14')][_0xec12('0x0')]('Users'),_0x1f1657=_0x56bd3c[_0xec12('0x14')][_0xec12('0x0')]('TrackChangesEditing');for(const _0x328bf3 of _0x987dbf)_0x5eadd8[_0xec12('0x11')](_0x328bf3['id'])||_0x5eadd8[_0xec12('0x6')](_0x328bf3);_0x5eadd8['me']||_0x5eadd8[_0xec12('0x1b')]();for(const _0x643685 of _0x3c6732)_0x1f1657[_0xec12('0x4')](_0x643685);_0x56bd3c['data'][_0xec12('0x25')](_0x4ae09e);}(_0x37d0cb,_0x151057),_0x151057[_0xec12('0x18')](_0x4a40a8?'acceptAllSuggestions':_0xec12('0x31'));const _0x117046=_0x151057['data']['get'](_0x1562a6);return await _0x151057[_0xec12('0xd')](),_0x117046;}function S(_0xe68a79,_0x4029f2){if(_0x4029f2['has'](_0xe68a79))return!0x0;_0x4029f2['add'](_0xe68a79);const _0x1aa87b=_0xec12('0x34')==typeof _0xe68a79?_0xe68a79[_0xec12('0x1f')]||_0xe68a79[_0xec12('0x1d')]:_0xe68a79;return(!_0x1aa87b||!D['includes'](_0x1aa87b))&&(!_0xe68a79[_0xec12('0x28')]||_0xe68a79[_0xec12('0x28')][_0xec12('0x13')](_0x3953f0=>S(_0x3953f0,_0x4029f2)));}
23
+ const _0x42c6=['pluginName','addSuggestionData','define','model','getDataWithDiscardedSuggestions','init','div','createDocumentFragment','includes','get','plugins','map','constructor','set','requires','getRootNames','filter','Autosave','reduce','has','RevisionTracker','Pagination','TrackChangesEditing','every','names','users','editor','data','getDataWithAcceptedSuggestions','create','WebSocketGateway','getUser','config','string','TrackChangesData','concat','extraPlugins','find','from','createElement','name','Users','trackChangesData','function','initialData','acceptAllSuggestions','push','appendChild','_adapter','editorCreator','toolbar','builtinPlugins','useAnonymousUser','context'];(function(_0x4e5e6f,_0x42c6f2){const _0x3b5ddd=function(_0x25eb6b){while(--_0x25eb6b){_0x4e5e6f['push'](_0x4e5e6f['shift']());}};_0x3b5ddd(++_0x42c6f2);}(_0x42c6,0x78));const _0x3b5d=function(_0x4e5e6f,_0x42c6f2){_0x4e5e6f=_0x4e5e6f-0x0;let _0x3b5ddd=_0x42c6[_0x4e5e6f];return _0x3b5ddd;};import{Plugin as _0x178703}from'ckeditor5/src/core';import{CKEditorError as _0x55f34f}from'ckeditor5/src/utils';import _0x239dde from'./trackchangesediting';const D=[_0x3b5d('0x20'),_0x3b5d('0x29'),_0x3b5d('0x26')],w=[_0x3b5d('0x12'),_0x3b5d('0x8'),_0x3b5d('0x5'),'WordCount',_0x3b5d('0x9')];export default class y extends _0x178703{static get['requires'](){return[_0x239dde];}static get['pluginName'](){return _0x3b5d('0x16');}[_0x3b5d('0x2f')](){const _0x2b93e7=this[_0x3b5d('0xe')];if(_0x2b93e7['config'][_0x3b5d('0x2c')]('trackChangesData.editorCreator',_0x5e83c9=>_0x2b93e7[_0x3b5d('0x0')][_0x3b5d('0x11')]('',_0x5e83c9)),'function'!=typeof _0x2b93e7[_0x3b5d('0x14')][_0x3b5d('0x33')]('trackChangesData')[_0x3b5d('0x25')])throw new _0x55f34f('track-changes-data-invalid-editor-creator');}[_0x3b5d('0x10')](_0x5b3eaf){return T(this[_0x3b5d('0xe')],!0x0,_0x5b3eaf);}[_0x3b5d('0x2e')](_0x22c6c9){return T(this[_0x3b5d('0xe')],!0x1,_0x22c6c9);}}class S extends _0x178703{static get['pluginName'](){return'TrackChangesDataGetter';}['init'](){this['result']='end',this[_0x3b5d('0xe')][_0x3b5d('0x34')][_0x3b5d('0x33')]('CommentsRepository')[_0x3b5d('0x24')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x3b5d('0xe')][_0x3b5d('0x34')]['get'](_0x3b5d('0xa'))[_0x3b5d('0x24')]=null;}}async function T(_0x1cba50,_0x2fdf77,_0x1f56a3){const _0x20d6d3=function(_0x4175e1){const _0x2562fd={};for(const _0x3d4eee of _0x4175e1['config'][_0x3b5d('0xc')]())D[_0x3b5d('0x32')](_0x3d4eee)||(_0x2562fd[_0x3d4eee]=_0x4175e1[_0x3b5d('0x14')][_0x3b5d('0x33')](_0x3d4eee));const _0x5b4476=_0x4175e1[_0x3b5d('0x0')][_0x3b5d('0x27')]||[],_0x47d1c1=_0x2562fd[_0x3b5d('0x18')]||[];delete _0x2562fd[_0x3b5d('0x18')];const _0x429a15=_0x5b4476[_0x3b5d('0x17')](_0x2562fd[_0x3b5d('0x34')])['concat'](_0x47d1c1)[_0x3b5d('0x35')](_0x3dcc09=>_0x3b5d('0x15')==typeof _0x3dcc09?_0x5b4476[_0x3b5d('0x19')](_0x21bdcd=>_0x21bdcd['pluginName']==_0x3dcc09):_0x3dcc09),_0x5d48e4=Array[_0x3b5d('0x1a')](new Set(_0x429a15)),_0x1aad6e=new Map();return _0x2562fd[_0x3b5d('0x34')]=_0x5d48e4[_0x3b5d('0x4')](_0x1efdb4=>A(_0x1efdb4,_0x1aad6e)),_0x2562fd[_0x3b5d('0x34')][_0x3b5d('0x22')](S),_0x2562fd[_0x3b5d('0x34')][_0x3b5d('0x22')](_0x239dde),_0x2562fd;}(_0x1cba50),_0x3beb0a=document[_0x3b5d('0x31')](),_0x659ec0=_0x1cba50[_0x3b5d('0x14')][_0x3b5d('0x33')](_0x3b5d('0x1e'))[_0x3b5d('0x25')],_0x1c3bb4=await _0x659ec0(_0x20d6d3,()=>function(_0x3ad5ba){const _0x2e831d=document[_0x3b5d('0x1b')](_0x3b5d('0x30'));return _0x3ad5ba[_0x3b5d('0x23')](_0x2e831d),_0x2e831d;}(_0x3beb0a));!function(_0x1bfc8d,_0x1ce165){const _0x5b75fd=_0x1bfc8d[_0x3b5d('0x2d')]['document'][_0x3b5d('0x3')]()[_0x3b5d('0x6')]((_0x10e270,_0x10fd44)=>(_0x10e270[_0x10fd44]=_0x1bfc8d[_0x3b5d('0xf')]['get']({'rootName':_0x10fd44}),_0x10e270),{}),_0x187601=_0x1bfc8d['plugins'][_0x3b5d('0x33')](_0x3b5d('0x1d'))[_0x3b5d('0xd')][_0x3b5d('0x35')](_0x50c9de=>({'id':_0x50c9de['id']})),_0x361655=_0x1bfc8d[_0x3b5d('0x34')][_0x3b5d('0x33')](_0x3b5d('0xa'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3dc890=_0x1ce165[_0x3b5d('0x34')]['get'](_0x3b5d('0x1d')),_0x570d33=_0x1ce165[_0x3b5d('0x34')][_0x3b5d('0x33')]('TrackChangesEditing');for(const _0x4c3c79 of _0x187601)_0x3dc890[_0x3b5d('0x13')](_0x4c3c79['id'])||_0x3dc890['addUser'](_0x4c3c79);_0x3dc890['me']||_0x3dc890[_0x3b5d('0x28')]();for(const _0x48be9e of _0x361655)_0x570d33[_0x3b5d('0x2b')](_0x48be9e);_0x1ce165[_0x3b5d('0xf')][_0x3b5d('0x1')](_0x5b75fd);}(_0x1cba50,_0x1c3bb4),_0x1c3bb4['execute'](_0x2fdf77?_0x3b5d('0x21'):'discardAllSuggestions');const _0x2b73a0=_0x1c3bb4[_0x3b5d('0xf')][_0x3b5d('0x33')](_0x1f56a3);return await _0x1c3bb4['destroy'](),_0x2b73a0;}function A(_0x2869b4,_0x157d54){const _0x1de378=_0x3b5d('0x1f')==typeof _0x2869b4?_0x2869b4[_0x3b5d('0x2a')]||_0x2869b4[_0x3b5d('0x1c')]:_0x2869b4;if(_0x157d54[_0x3b5d('0x7')](_0x1de378))return _0x157d54[_0x3b5d('0x33')](_0x1de378);if(_0x157d54['set'](_0x1de378,!0x0),_0x1de378&&w['includes'](_0x1de378))return _0x157d54[_0x3b5d('0x1')](_0x1de378,!0x1),!0x1;if(!_0x2869b4[_0x3b5d('0x2')])return _0x157d54[_0x3b5d('0x1')](_0x1de378,!0x0),!0x0;const _0x415705=_0x2869b4['requires'][_0x3b5d('0xb')](_0x2c5dae=>A(_0x2c5dae,_0x157d54));return _0x157d54[_0x3b5d('0x1')](_0x1de378,_0x415705),_0x415705;}