@ckeditor/ckeditor5-track-changes 35.3.2 → 36.0.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 (156) hide show
  1. package/build/track-changes.js +3 -2
  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 +16 -0
  49. package/lang/translations/ar.po +68 -4
  50. package/lang/translations/az.po +65 -1
  51. package/lang/translations/bg.po +68 -4
  52. package/lang/translations/bn.po +68 -4
  53. package/lang/translations/ca.po +68 -4
  54. package/lang/translations/cs.po +68 -4
  55. package/lang/translations/da.po +68 -4
  56. package/lang/translations/de.po +68 -4
  57. package/lang/translations/el.po +68 -4
  58. package/lang/translations/en-au.po +65 -1
  59. package/lang/translations/en.po +65 -1
  60. package/lang/translations/es.po +68 -4
  61. package/lang/translations/et.po +68 -4
  62. package/lang/translations/fi.po +68 -4
  63. package/lang/translations/fr.po +68 -4
  64. package/lang/translations/gl.po +65 -1
  65. package/lang/translations/he.po +68 -4
  66. package/lang/translations/hi.po +68 -4
  67. package/lang/translations/hr.po +65 -1
  68. package/lang/translations/hu.po +68 -4
  69. package/lang/translations/id.po +68 -4
  70. package/lang/translations/it.po +68 -4
  71. package/lang/translations/ja.po +68 -4
  72. package/lang/translations/ko.po +68 -4
  73. package/lang/translations/lt.po +68 -4
  74. package/lang/translations/lv.po +68 -4
  75. package/lang/translations/ms.po +68 -4
  76. package/lang/translations/nl.po +68 -4
  77. package/lang/translations/no.po +68 -4
  78. package/lang/translations/pl.po +68 -4
  79. package/lang/translations/pt-br.po +68 -4
  80. package/lang/translations/pt.po +68 -4
  81. package/lang/translations/ro.po +68 -4
  82. package/lang/translations/ru.po +68 -4
  83. package/lang/translations/sk.po +68 -4
  84. package/lang/translations/sr-latn.po +68 -4
  85. package/lang/translations/sr.po +69 -5
  86. package/lang/translations/sv.po +68 -4
  87. package/lang/translations/th.po +68 -4
  88. package/lang/translations/tk.po +65 -1
  89. package/lang/translations/tr.po +68 -4
  90. package/lang/translations/tt.po +65 -1
  91. package/lang/translations/uk.po +68 -4
  92. package/lang/translations/ur.po +65 -1
  93. package/lang/translations/vi.po +68 -4
  94. package/lang/translations/zh-cn.po +68 -4
  95. package/lang/translations/zh.po +68 -4
  96. package/package.json +4 -4
  97. package/src/commands/acceptsuggestioncommand.js +2 -2
  98. package/src/commands/discardsuggestioncommand.js +2 -2
  99. package/src/commands/executeonallsuggestionscommand.js +2 -2
  100. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  101. package/src/commands/trackchangescommand.js +2 -2
  102. package/src/index.js +1 -1
  103. package/src/integrations/alignment.js +2 -2
  104. package/src/integrations/basicstyles.js +2 -2
  105. package/src/integrations/blockquote.js +2 -2
  106. package/src/integrations/ckbox.js +2 -2
  107. package/src/integrations/codeblock.js +2 -2
  108. package/src/integrations/comments.js +2 -2
  109. package/src/integrations/deletecommand.js +2 -2
  110. package/src/integrations/documentlist.js +2 -2
  111. package/src/integrations/documentlistproperties.js +23 -0
  112. package/src/integrations/entercommand.js +2 -2
  113. package/src/integrations/findandreplace.js +23 -0
  114. package/src/integrations/font.js +2 -2
  115. package/src/integrations/heading.js +2 -2
  116. package/src/integrations/highlight.js +2 -2
  117. package/src/integrations/horizontalline.js +2 -2
  118. package/src/integrations/htmlembed.js +2 -2
  119. package/src/integrations/image.js +2 -2
  120. package/src/integrations/imagereplace.js +23 -0
  121. package/src/integrations/importword.js +2 -2
  122. package/src/integrations/indent.js +2 -2
  123. package/src/integrations/inputcommand.js +2 -2
  124. package/src/integrations/link.js +2 -2
  125. package/src/integrations/list.js +2 -2
  126. package/src/integrations/listproperties.js +23 -0
  127. package/src/integrations/mediaembed.js +2 -2
  128. package/src/integrations/mention.js +2 -2
  129. package/src/integrations/pagebreak.js +2 -2
  130. package/src/integrations/paragraph.js +2 -2
  131. package/src/integrations/removeformat.js +2 -2
  132. package/src/integrations/restrictededitingmode.js +2 -2
  133. package/src/integrations/shiftentercommand.js +2 -2
  134. package/src/integrations/standardeditingmode.js +2 -2
  135. package/src/integrations/style.js +2 -2
  136. package/src/integrations/table.js +2 -2
  137. package/src/integrations/tablecaption.js +2 -2
  138. package/src/integrations/tableclipboard.js +2 -2
  139. package/src/integrations/tablecolumnresize.js +23 -0
  140. package/src/integrations/tableheadings.js +2 -2
  141. package/src/integrations/tablemergesplit.js +2 -2
  142. package/src/integrations/tableproperties.js +23 -0
  143. package/src/integrations/title.js +2 -2
  144. package/src/integrations/undo.js +2 -2
  145. package/src/integrations/utils.js +2 -2
  146. package/src/suggestion.js +2 -2
  147. package/src/suggestiondescriptionfactory.js +2 -2
  148. package/src/trackchanges.js +2 -2
  149. package/src/trackchangesdata.js +2 -2
  150. package/src/trackchangesediting.js +2 -2
  151. package/src/trackchangesui.js +2 -2
  152. package/src/ui/suggestioncontroller.js +2 -2
  153. package/src/ui/view/basesuggestionthreadview.js +2 -2
  154. package/src/ui/view/suggestionthreadview.js +2 -2
  155. package/src/utils/common-translations.js +2 -2
  156. package/src/utils/utils.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2124=['map','get','TableEditing','*Split\x20cell:*\x20vertically','refresh','has','document','element','commandName','_areSelectedCellsMergable','commands','TrackChangesEditing','splitTableCellHorizontally','format','isInContent','*Split\x20cell:*\x20horizontally','length','fromRange','tableCell','mergeTableCellRight','mergeTableCells','*Merge\x20cells*','author','enableCommand','registerCustomCallback','change','$graveyard','add','mergeTableCellDown','model','getFirstPosition','rootName','selection','TableUtils','createRangeOn','push','value','markMultiRangeBlockFormat','isEnabled','formatBlock','horizontally','markBlockFormat','_areMergableCells','set:isEnabled','locale','_suggestionFactory','createTableWalker','getRanges','registerDescriptionCallback','trackChanges','getSuggestions','splitTableCellVertically','mergeTableCellLeft','type','find','execute','forceDefaultExecution','_descriptionFactory','_tablePostFixingSubtypes','low','subType','table','from','getAncestors','cell','stop','size','getCellLocation','accept','detach','editor','_acceptFormatSuggestionCallbackFactory','getSelectionAffectedTableCells','insertion','mergeTableCellUp','plugins','highest','return'];(function(_0x2339df,_0x212434){const _0xf0a72d=function(_0x291390){while(--_0x291390){_0x2339df['push'](_0x2339df['shift']());}};_0xf0a72d(++_0x212434);}(_0x2124,0xf8));const _0xf0a7=function(_0x2339df,_0x212434){_0x2339df=_0x2339df-0x0;let _0xf0a72d=_0x2124[_0x2339df];return _0xf0a72d;};import{Plugin as _0x340686}from'ckeditor5/src/core';import _0x55a5a5 from'./table';import{LiveRange as _0x1a2760}from'ckeditor5/src/engine';import{getTranslation as _0x32056a}from'../utils/common-translations';export default class gt extends _0x340686{static get['requires'](){return[_0x55a5a5];}['afterInit'](){const _0x5a9a1b=this[_0xf0a7('0x38')],_0x9aec2f=_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0x46')][_0xf0a7('0x12')],_0x54c674=_0x5a9a1b[_0xf0a7('0x1e')];if(!_0x5a9a1b[_0xf0a7('0x3d')][_0xf0a7('0x45')](_0xf0a7('0x42')))return;const _0x2fb56c=_0x5a9a1b['plugins'][_0xf0a7('0x41')](_0xf0a7('0x4b')),_0x420cbc=_0x5a9a1b[_0xf0a7('0x3d')]['get'](_0xf0a7('0x13')),_0x3e40a5=_0x5a9a1b[_0xf0a7('0x3d')][_0xf0a7('0x41')](_0x55a5a5);_0x3e40a5[_0xf0a7('0x2c')][_0xf0a7('0x15')](_0xf0a7('0x6')),_0x2fb56c['enableCommand'](_0xf0a7('0x6'),()=>{const _0x5ee058=_0x420cbc[_0xf0a7('0x3a')](_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0x46')]['selection']);_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0xb')](()=>{_0x2fb56c[_0xf0a7('0x17')](_0x5ee058,{'commandName':_0xf0a7('0x6'),'commandParams':[]},[],_0xf0a7('0x6'));});}),_0x5a9a1b[_0xf0a7('0x4a')]['get'](_0xf0a7('0x6'))['on'](_0xf0a7('0x29'),(_0x392ec1,_0x155e33)=>{_0x5a9a1b[_0xf0a7('0x4a')][_0xf0a7('0x41')](_0xf0a7('0x23'))[_0xf0a7('0x16')]&&(_0x155e33[_0xf0a7('0x2')]>0x0&&_0x155e33[_0x155e33['length']-0x1]&&_0x155e33[_0x155e33[_0xf0a7('0x2')]-0x1][_0xf0a7('0x2a')]||_0x2fb56c['_isForcedDefaultExecutionBlock']||this[_0xf0a7('0x49')]()||_0x392ec1['stop']());},{'priority':_0xf0a7('0x3e')});for(const _0x59a076 of[_0xf0a7('0x3c'),'mergeTableCellRight',_0xf0a7('0xe'),_0xf0a7('0x26')]){const _0x125bb0=_0x5a9a1b[_0xf0a7('0x4a')][_0xf0a7('0x41')](_0x59a076);_0x2fb56c[_0xf0a7('0x9')](_0x59a076,()=>{const _0x4b59e2=_0x5a9a1b['model'][_0xf0a7('0x46')][_0xf0a7('0x12')][_0xf0a7('0x10')]()[_0xf0a7('0x31')]()[_0xf0a7('0x28')](_0x527dbf=>_0x527dbf['is'](_0xf0a7('0x47'),_0xf0a7('0x4'))),_0x900bbe=_0x125bb0['value'];_0x5a9a1b['model'][_0xf0a7('0xb')](()=>{_0x2fb56c['markMultiRangeBlockFormat']([_0x4b59e2,_0x900bbe],{'commandName':_0xf0a7('0x6'),'commandParams':[]},[],_0xf0a7('0x6'));});});}for(const _0x20bc7f of[_0xf0a7('0x25'),_0xf0a7('0x4c')]){const _0x352489=_0x5a9a1b[_0xf0a7('0x4a')][_0xf0a7('0x41')](_0x20bc7f);_0x2fb56c[_0xf0a7('0x9')](_0x20bc7f,()=>{const _0x3abd0b=_0x420cbc[_0xf0a7('0x3a')](_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0x46')][_0xf0a7('0x12')])[0x0],_0x46967e=_0x3abd0b['findAncestor'](_0xf0a7('0x2f')),{column:_0x572c70,row:_0x40199d}=_0x420cbc[_0xf0a7('0x35')](_0x3abd0b);let _0x2a8e97=[];if(_0xf0a7('0x1a')==_0x352489['direction']){const _0x5a27ba=_0x420cbc[_0xf0a7('0x20')](_0x46967e,{'startRow':_0x40199d,'endRow':_0x40199d,'includeAllSlots':!0x0});_0x2a8e97=Array[_0xf0a7('0x30')](_0x5a27ba)[_0xf0a7('0x40')](_0x216dc6=>_0x216dc6[_0xf0a7('0x32')]);}else{const _0x7c9a0c=_0x420cbc[_0xf0a7('0x20')](_0x46967e,{'column':_0x572c70,'includeAllSlots':!0x0});_0x2a8e97=Array[_0xf0a7('0x30')](_0x7c9a0c)[_0xf0a7('0x40')](_0x4ad4e7=>_0x4ad4e7[_0xf0a7('0x32')]);}_0x5a9a1b['model'][_0xf0a7('0xb')](_0x32e3d0=>{_0x2fb56c[_0xf0a7('0x1b')](_0x32e3d0[_0xf0a7('0x14')](_0x3abd0b),{'commandName':_0x20bc7f,'commandParams':[]},_0x2a8e97,_0x20bc7f);});});}_0x2fb56c['_descriptionFactory'][_0xf0a7('0x22')](_0x321daf=>{const {data:_0x144108}=_0x321daf;if(_0x144108)return _0xf0a7('0x6')==_0x144108[_0xf0a7('0x48')]?{'type':_0xf0a7('0x4d'),'content':_0x32056a(_0x54c674,_0xf0a7('0x7'))}:void 0x0;}),_0x2fb56c[_0xf0a7('0x2b')][_0xf0a7('0x22')](_0x44fb81=>{const {data:_0x4cf0ea}=_0x44fb81;if(_0x4cf0ea)return _0xf0a7('0x25')==_0x4cf0ea['commandName']?{'type':'format','content':_0x32056a(_0x54c674,_0xf0a7('0x43'))}:'splitTableCellHorizontally'==_0x4cf0ea[_0xf0a7('0x48')]?{'type':'format','content':_0x32056a(_0x54c674,_0xf0a7('0x1'))}:void 0x0;});const _0x3ab6dc=_0x3e40a5[_0xf0a7('0x39')]();for(const _0x4784a2 of['mergeTableCellUp',_0xf0a7('0x5'),_0xf0a7('0xe'),_0xf0a7('0x26')])_0x2fb56c[_0xf0a7('0x1f')]['registerCustomCallback'](_0xf0a7('0x19'),_0x4784a2,_0xf0a7('0x36'),_0x3ab6dc);for(const _0x4d8259 of[_0xf0a7('0x25'),_0xf0a7('0x4c')])_0x2fb56c[_0xf0a7('0x1f')]['registerCustomCallback']('formatBlock',_0x4d8259,_0xf0a7('0x36'),_0x3ab6dc);_0x2fb56c[_0xf0a7('0x1f')][_0xf0a7('0xa')](_0xf0a7('0x19'),_0xf0a7('0x6'),'accept',_0x50a118=>{_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0xb')](_0x436591=>{const _0xe2fd05=Array['from'](_0x9aec2f[_0xf0a7('0x21')]())[_0xf0a7('0x40')](_0xfdfcca=>_0x1a2760[_0xf0a7('0x3')](_0xfdfcca));_0x436591['setSelection'](_0x50a118),_0x5a9a1b[_0xf0a7('0x4a')]['get'](_0xf0a7('0x6'))[_0xf0a7('0x44')](),_0x5a9a1b[_0xf0a7('0x29')](_0xf0a7('0x6'),{'forceDefaultExecution':!0x0});const _0x4ae2bf=_0xe2fd05['filter'](_0x4e16ff=>_0xf0a7('0xc')!=_0x4e16ff['root'][_0xf0a7('0x11')]);_0x4ae2bf['length']>0x0&&_0x436591['setSelection'](_0x4ae2bf);for(const _0x145779 of _0xe2fd05)_0x145779[_0xf0a7('0x37')]();});});for(const _0x29d51b of[_0xf0a7('0x3c'),'mergeTableCellDown',_0xf0a7('0x26'),_0xf0a7('0x5')]){const _0x29b14f=_0x5a9a1b[_0xf0a7('0x4a')][_0xf0a7('0x41')](_0x29d51b);_0x29b14f['on'](_0xf0a7('0x1d'),(_0x10875c,_0x4e2665,_0x2180f5)=>{if(_0x2180f5){const _0x557a23=_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0x46')][_0xf0a7('0x12')][_0xf0a7('0x10')]()[_0xf0a7('0x31')]()[_0xf0a7('0x28')](_0x20ca3b=>_0x20ca3b['is'](_0xf0a7('0x47'),_0xf0a7('0x4')));this[_0xf0a7('0x1c')](_0x29b14f[_0xf0a7('0x16')],_0x557a23)||(_0x10875c[_0xf0a7('0x3f')]=!0x1,_0x10875c[_0xf0a7('0x33')]());}},{'priority':_0xf0a7('0x2d')});}}[_0xf0a7('0x49')](){const _0x43340b=this['editor']['commands']['get'](_0xf0a7('0x6')),_0x1fa5b5=this[_0xf0a7('0x38')][_0xf0a7('0x3d')][_0xf0a7('0x41')](_0xf0a7('0x13'));if(!_0x43340b[_0xf0a7('0x18')])return!0x1;const _0x37f6d7=_0x1fa5b5[_0xf0a7('0x3a')](this['editor'][_0xf0a7('0xf')]['document'][_0xf0a7('0x12')]);for(const _0x40375b of _0x37f6d7)for(const _0x2e9b0f of _0x37f6d7)if(_0x40375b!=_0x2e9b0f&&!this[_0xf0a7('0x1c')](_0x40375b,_0x2e9b0f))return!0x1;return!0x0;}[_0xf0a7('0x1c')](_0x50d3f5,_0x5c2a7b){const _0x15eaf3=this['editor'][_0xf0a7('0x3d')][_0xf0a7('0x41')](_0xf0a7('0x4b')),_0x49e271=this['editor'][_0xf0a7('0xf')]['createRangeOn'](_0x50d3f5),_0x2fa16c=this[_0xf0a7('0x38')]['model'][_0xf0a7('0x14')](_0x5c2a7b),_0x4a80a8=new Set(),_0x328dd6=new Set();for(const _0x4641e9 of _0x15eaf3[_0xf0a7('0x24')]())if((_0xf0a7('0x3b')==_0x4641e9[_0xf0a7('0x27')]||'deletion'==_0x4641e9[_0xf0a7('0x27')]||_0xf0a7('0x6')==_0x4641e9[_0xf0a7('0x2e')])&&_0x4641e9[_0xf0a7('0x0')])for(const _0x465fe1 of _0x4641e9['getRanges']())_0x465fe1['containsRange'](_0x49e271,!0x0)&&_0x4a80a8['add'](_0x4641e9[_0xf0a7('0x27')]+':'+_0x4641e9[_0xf0a7('0x8')]['id']),_0x465fe1['containsRange'](_0x2fa16c,!0x0)&&_0x328dd6[_0xf0a7('0xd')](_0x4641e9[_0xf0a7('0x27')]+':'+_0x4641e9[_0xf0a7('0x8')]['id']);if(_0x4a80a8[_0xf0a7('0x34')]!=_0x328dd6[_0xf0a7('0x34')])return!0x1;for(const _0x568e56 of _0x4a80a8)if(!_0x328dd6[_0xf0a7('0x45')](_0x568e56))return!0x1;return!0x0;}}
23
+ const _0x246e=['has','createTableWalker','$graveyard','document','_areSelectedCellsMergable','commands','find','_acceptFormatSuggestionCallbackFactory','format','_suggestionFactory','*Split\x20cell:*\x20vertically','_areMergableCells','rootName','_isForcedDefaultExecutionBlock','trackChanges','markMultiRangeBlockFormat','afterInit','filter','table','push','tableCell','enableCommand','detach','mergeTableCells','formatBlock','execute','setSelection','refresh','plugins','*Merge\x20cells*','mergeTableCellLeft','getAncestors','getSuggestions','element','author','change','splitTableCellVertically','return','mergeTableCellDown','direction','size','map','getCellLocation','editor','TrackChangesEditing','splitTableCellHorizontally','registerDescriptionCallback','getFirstPosition','TableUtils','deletion','getRanges','length','model','containsRange','_tablePostFixingSubtypes','markBlockFormat','type','createRangeOn','commandName','_descriptionFactory','TableEditing','findAncestor','*Split\x20cell:*\x20horizontally','horizontally','highest','cell','set:isEnabled','mergeTableCellRight','mergeTableCellUp','isEnabled','stop','root','getSelectionAffectedTableCells','requires','subType','insertion','from','get','locale','accept','fromRange','selection','value','add'];(function(_0x3b66ef,_0x246ec2){const _0x2fe05b=function(_0x151669){while(--_0x151669){_0x3b66ef['push'](_0x3b66ef['shift']());}};_0x2fe05b(++_0x246ec2);}(_0x246e,0x15d));const _0x2fe0=function(_0x3b66ef,_0x246ec2){_0x3b66ef=_0x3b66ef-0x0;let _0x2fe05b=_0x246e[_0x3b66ef];return _0x2fe05b;};import{Plugin as _0x169fcf}from'ckeditor5/src/core';import _0x59f489 from'./table';import{LiveRange as _0x45b102}from'ckeditor5/src/engine';import{getTranslation as _0x5e55d5}from'../utils/common-translations';export default class pt extends _0x169fcf{static get[_0x2fe0('0x3c')](){return[_0x59f489];}[_0x2fe0('0x3')](){const _0x279e69=this[_0x2fe0('0x1e')],_0x3d3e54=_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x4a')][_0x2fe0('0x44')],_0x54b434=_0x279e69[_0x2fe0('0x41')];if(!_0x279e69[_0x2fe0('0xf')]['has'](_0x2fe0('0x2f')))return;const _0x5384a2=_0x279e69['plugins']['get'](_0x2fe0('0x1f')),_0x556e0d=_0x279e69[_0x2fe0('0xf')]['get'](_0x2fe0('0x23')),_0x21b99f=_0x279e69[_0x2fe0('0xf')]['get'](_0x59f489);_0x21b99f[_0x2fe0('0x29')][_0x2fe0('0x6')](_0x2fe0('0xa')),_0x5384a2[_0x2fe0('0x8')](_0x2fe0('0xa'),()=>{const _0x18e87f=_0x556e0d[_0x2fe0('0x3b')](_0x279e69['model'][_0x2fe0('0x4a')][_0x2fe0('0x44')]);_0x279e69['model'][_0x2fe0('0x16')](()=>{_0x5384a2[_0x2fe0('0x2')](_0x18e87f,{'commandName':_0x2fe0('0xa'),'commandParams':[]},[],'mergeTableCells');});}),_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x2fe0('0xa'))['on'](_0x2fe0('0xc'),(_0x32a233,_0x415674)=>{_0x279e69['commands'][_0x2fe0('0x40')](_0x2fe0('0x1'))[_0x2fe0('0x45')]&&(_0x415674['length']>0x0&&_0x415674[_0x415674[_0x2fe0('0x26')]-0x1]&&_0x415674[_0x415674['length']-0x1]['forceDefaultExecution']||_0x5384a2[_0x2fe0('0x0')]||this[_0x2fe0('0x4b')]()||_0x32a233['stop']());},{'priority':_0x2fe0('0x33')});for(const _0x1888ce of[_0x2fe0('0x37'),_0x2fe0('0x36'),_0x2fe0('0x19'),_0x2fe0('0x11')]){const _0x104dab=_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x1888ce);_0x5384a2['enableCommand'](_0x1888ce,()=>{const _0x2deb63=_0x279e69[_0x2fe0('0x27')]['document'][_0x2fe0('0x44')][_0x2fe0('0x22')]()[_0x2fe0('0x12')]()[_0x2fe0('0x4d')](_0x92a2c0=>_0x92a2c0['is'](_0x2fe0('0x14'),_0x2fe0('0x7'))),_0x48c944=_0x104dab[_0x2fe0('0x45')];_0x279e69['model']['change'](()=>{_0x5384a2[_0x2fe0('0x2')]([_0x2deb63,_0x48c944],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a7511 of['splitTableCellVertically',_0x2fe0('0x20')]){const _0x323bd1=_0x279e69['commands'][_0x2fe0('0x40')](_0x1a7511);_0x5384a2[_0x2fe0('0x8')](_0x1a7511,()=>{const _0x50ea1b=_0x556e0d[_0x2fe0('0x3b')](_0x279e69[_0x2fe0('0x27')]['document']['selection'])[0x0],_0x17a142=_0x50ea1b[_0x2fe0('0x30')](_0x2fe0('0x5')),{column:_0x5c4b9e,row:_0x37bf37}=_0x556e0d[_0x2fe0('0x1d')](_0x50ea1b);let _0x560d1f=[];if(_0x2fe0('0x32')==_0x323bd1[_0x2fe0('0x1a')]){const _0x4a467f=_0x556e0d[_0x2fe0('0x48')](_0x17a142,{'startRow':_0x37bf37,'endRow':_0x37bf37,'includeAllSlots':!0x0});_0x560d1f=Array[_0x2fe0('0x3f')](_0x4a467f)[_0x2fe0('0x1c')](_0x160e2c=>_0x160e2c['cell']);}else{const _0x514eb0=_0x556e0d['createTableWalker'](_0x17a142,{'column':_0x5c4b9e,'includeAllSlots':!0x0});_0x560d1f=Array[_0x2fe0('0x3f')](_0x514eb0)[_0x2fe0('0x1c')](_0x4c3cf7=>_0x4c3cf7[_0x2fe0('0x34')]);}_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x16')](_0x499a4d=>{_0x5384a2[_0x2fe0('0x2a')](_0x499a4d['createRangeOn'](_0x50ea1b),{'commandName':_0x1a7511,'commandParams':[]},_0x560d1f,_0x1a7511);});});}_0x5384a2[_0x2fe0('0x2e')]['registerDescriptionCallback'](_0x7f74e8=>{const {data:_0x16b11a}=_0x7f74e8;if(_0x16b11a)return _0x2fe0('0xa')==_0x16b11a['commandName']?{'type':'format','content':_0x5e55d5(_0x54b434,_0x2fe0('0x10'))}:void 0x0;}),_0x5384a2[_0x2fe0('0x2e')][_0x2fe0('0x21')](_0x1e54ac=>{const {data:_0x5e8db2}=_0x1e54ac;if(_0x5e8db2)return _0x2fe0('0x17')==_0x5e8db2['commandName']?{'type':_0x2fe0('0x4f'),'content':_0x5e55d5(_0x54b434,_0x2fe0('0x51'))}:_0x2fe0('0x20')==_0x5e8db2[_0x2fe0('0x2d')]?{'type':_0x2fe0('0x4f'),'content':_0x5e55d5(_0x54b434,_0x2fe0('0x31'))}:void 0x0;});const _0x36e10c=_0x21b99f[_0x2fe0('0x4e')]();for(const _0x5591ad of[_0x2fe0('0x37'),_0x2fe0('0x36'),_0x2fe0('0x19'),_0x2fe0('0x11')])_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback'](_0x2fe0('0xb'),_0x5591ad,_0x2fe0('0x42'),_0x36e10c);for(const _0x289e35 of[_0x2fe0('0x17'),_0x2fe0('0x20')])_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback'](_0x2fe0('0xb'),_0x289e35,'accept',_0x36e10c);_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback']('formatBlock',_0x2fe0('0xa'),_0x2fe0('0x42'),_0x6fd5f8=>{_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x16')](_0x474036=>{const _0x3dc55c=Array['from'](_0x3d3e54[_0x2fe0('0x25')]())[_0x2fe0('0x1c')](_0x2d1f17=>_0x45b102[_0x2fe0('0x43')](_0x2d1f17));_0x474036['setSelection'](_0x6fd5f8),_0x279e69['commands'][_0x2fe0('0x40')](_0x2fe0('0xa'))[_0x2fe0('0xe')](),_0x279e69[_0x2fe0('0xc')](_0x2fe0('0xa'),{'forceDefaultExecution':!0x0});const _0x29180b=_0x3dc55c[_0x2fe0('0x4')](_0x35e613=>_0x2fe0('0x49')!=_0x35e613[_0x2fe0('0x3a')][_0x2fe0('0x53')]);_0x29180b[_0x2fe0('0x26')]>0x0&&_0x474036[_0x2fe0('0xd')](_0x29180b);for(const _0x3e197e of _0x3dc55c)_0x3e197e[_0x2fe0('0x9')]();});});for(const _0x35a749 of[_0x2fe0('0x37'),_0x2fe0('0x19'),_0x2fe0('0x11'),_0x2fe0('0x36')]){const _0x5e87b6=_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x35a749);_0x5e87b6['on'](_0x2fe0('0x35'),(_0x158f9b,_0x574b5a,_0x5ef03f)=>{if(_0x5ef03f){const _0x4ed3ab=_0x279e69[_0x2fe0('0x27')]['document'][_0x2fe0('0x44')][_0x2fe0('0x22')]()[_0x2fe0('0x12')]()[_0x2fe0('0x4d')](_0x49234e=>_0x49234e['is']('element',_0x2fe0('0x7')));this['_areMergableCells'](_0x5e87b6[_0x2fe0('0x45')],_0x4ed3ab)||(_0x158f9b[_0x2fe0('0x18')]=!0x1,_0x158f9b[_0x2fe0('0x39')]());}},{'priority':'low'});}}[_0x2fe0('0x4b')](){const _0xa33e22=this[_0x2fe0('0x1e')]['commands'][_0x2fe0('0x40')]('mergeTableCells'),_0x1c27af=this[_0x2fe0('0x1e')][_0x2fe0('0xf')][_0x2fe0('0x40')]('TableUtils');if(!_0xa33e22[_0x2fe0('0x38')])return!0x1;const _0x3edd93=_0x1c27af[_0x2fe0('0x3b')](this[_0x2fe0('0x1e')][_0x2fe0('0x27')][_0x2fe0('0x4a')][_0x2fe0('0x44')]);for(const _0x51ecfb of _0x3edd93)for(const _0x2313b0 of _0x3edd93)if(_0x51ecfb!=_0x2313b0&&!this[_0x2fe0('0x52')](_0x51ecfb,_0x2313b0))return!0x1;return!0x0;}[_0x2fe0('0x52')](_0x252a92,_0x1f3d60){const _0x12e1c7=this[_0x2fe0('0x1e')][_0x2fe0('0xf')][_0x2fe0('0x40')](_0x2fe0('0x1f')),_0x17e77b=this['editor']['model'][_0x2fe0('0x2c')](_0x252a92),_0xbfc4a3=this[_0x2fe0('0x1e')][_0x2fe0('0x27')]['createRangeOn'](_0x1f3d60),_0x49f07e=new Set(),_0x2f076a=new Set();for(const _0x34b70c of _0x12e1c7[_0x2fe0('0x13')]())if((_0x2fe0('0x3e')==_0x34b70c[_0x2fe0('0x2b')]||_0x2fe0('0x24')==_0x34b70c['type']||'mergeTableCells'==_0x34b70c[_0x2fe0('0x3d')])&&_0x34b70c['isInContent'])for(const _0x1dac62 of _0x34b70c[_0x2fe0('0x25')]())_0x1dac62[_0x2fe0('0x28')](_0x17e77b,!0x0)&&_0x49f07e[_0x2fe0('0x46')](_0x34b70c['type']+':'+_0x34b70c[_0x2fe0('0x15')]['id']),_0x1dac62[_0x2fe0('0x28')](_0xbfc4a3,!0x0)&&_0x2f076a[_0x2fe0('0x46')](_0x34b70c[_0x2fe0('0x2b')]+':'+_0x34b70c[_0x2fe0('0x15')]['id']);if(_0x49f07e[_0x2fe0('0x1b')]!=_0x2f076a[_0x2fe0('0x1b')])return!0x1;for(const _0x2967d0 of _0x49f07e)if(!_0x2f076a[_0x2fe0('0x47')](_0x2967d0))return!0x1;return!0x0;}}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x190a=['registerDescriptionCallback','TrackChangesTableProperties','enableCommand','tableCellBorderStyle','TableUtils','afterInit','handleDiscardAction','TrackChangesEditing','TableCellPropertiesEditing','document','markBlockFormat','_handlePropertyChange','setAttribute','selection','table','getSuggestions','_descriptionFactory','enqueueChange','tableCellBorderWidth','tableCellHorizontalAlignment','_getSuggestion','tableCellVerticalAlignment','get','tableProperties','tableWidth','getFirstPosition','formatBlock','tableBorderStyle','tableCellBackgroundColor','subType','tableBorderColor','tableCellBorderColor','start','discard','editor','getContainedElement','commandParams','tableCellProperties','tableCellPadding','tableCellWidth','accept','findAncestor','getAttribute','getSuggestionCallback','tableBorderWidth','plugins','_suggestionFactory','change','handleSuggestionDescription','format','*Format:*\x20change\x20table\x20cell\x20properties','registerCustomCallback','batch','pluginName','tableCellHeight','model','nodeAfter'];(function(_0x5e5192,_0x190aac){const _0x2ca38e=function(_0x544e4a){while(--_0x544e4a){_0x5e5192['push'](_0x5e5192['shift']());}};_0x2ca38e(++_0x190aac);}(_0x190a,0x1f0));const _0x2ca3=function(_0x5e5192,_0x190aac){_0x5e5192=_0x5e5192-0x0;let _0x2ca38e=_0x190a[_0x5e5192];return _0x2ca38e;};import{Plugin as _0x14c5a8}from'ckeditor5/src/core';import{getTranslation as _0x59db7b}from'../utils/common-translations';export default class At extends _0x14c5a8{static get[_0x2ca3('0xd')](){return _0x2ca3('0x12');}[_0x2ca3('0x16')](){const _0x6bfa97=this[_0x2ca3('0x33')][_0x2ca3('0x5')]['get']('TrackChangesEditing');if(this[_0x2ca3('0x33')][_0x2ca3('0x5')]['has']('TablePropertiesEditing')){this[_0x2ca3('0x28')]=[_0x2ca3('0x2f'),_0x2ca3('0x2c'),_0x2ca3('0x4'),'tableAlignment',_0x2ca3('0x29'),'tableHeight','tableBackgroundColor'];for(const _0x391e7d of this[_0x2ca3('0x28')])_0x6bfa97[_0x2ca3('0x13')](_0x391e7d,(_0x2da5cb,_0x403094)=>{const _0xf101be=this[_0x2ca3('0x33')]['model'][_0x2ca3('0x1a')][_0x2ca3('0x1e')][_0x2ca3('0x2a')]()[_0x2ca3('0x1')](_0x2ca3('0x1f'));this['_handlePropertyChange'](_0x391e7d,[_0xf101be],this[_0x2ca3('0x28')],'tableProperties',_0x2da5cb,_0x403094);});_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),_0x2ca3('0x0'),_0x6bfa97[_0x2ca3('0x6')]['getSuggestionCallback'](_0x2ca3('0x2b'),null,_0x2ca3('0x32'))),_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),_0x2ca3('0x32'),(_0x1e55f1,_0x49c58d)=>this[_0x2ca3('0x17')](this[_0x2ca3('0x28')],_0x1e55f1,_0x49c58d)),_0x6bfa97['_suggestionFactory'][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),'join',()=>!0x1);}if(this[_0x2ca3('0x33')]['plugins']['has'](_0x2ca3('0x19'))){this[_0x2ca3('0x36')]=[_0x2ca3('0x30'),_0x2ca3('0x14'),_0x2ca3('0x23'),_0x2ca3('0x37'),_0x2ca3('0x38'),_0x2ca3('0xe'),_0x2ca3('0x2d'),_0x2ca3('0x24'),_0x2ca3('0x26')];for(const _0x35cf29 of this['tableCellProperties'])_0x6bfa97[_0x2ca3('0x13')](_0x35cf29,(_0x5e11be,_0x376194)=>{const _0x62f47d=this[_0x2ca3('0x33')]['plugins']['get'](_0x2ca3('0x15'))['getSelectionAffectedTableCells'](this[_0x2ca3('0x33')][_0x2ca3('0xf')][_0x2ca3('0x1a')][_0x2ca3('0x1e')]);this[_0x2ca3('0x1c')](_0x35cf29,_0x62f47d,this[_0x2ca3('0x36')],_0x2ca3('0x36'),_0x5e11be,_0x376194);});_0x6bfa97['_suggestionFactory']['registerCustomCallback'](_0x2ca3('0x2b'),_0x2ca3('0x36'),'accept',_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0x3')](_0x2ca3('0x2b'),null,'discard')),_0x6bfa97['_suggestionFactory'][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x36'),_0x2ca3('0x32'),(_0x220313,_0x11f51c)=>this[_0x2ca3('0x17')](this[_0x2ca3('0x36')],_0x220313,_0x11f51c)),_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x36'),'join',()=>!0x1);}_0x6bfa97[_0x2ca3('0x21')][_0x2ca3('0x11')](_0x5478a7=>this[_0x2ca3('0x8')](_0x5478a7));}['_handlePropertyChange'](_0x4a24a5,_0x4c5638,_0x7adbde,_0xdc0776,_0x31e6d8,_0x5bef19){const _0x10d68c=this[_0x2ca3('0x33')][_0x2ca3('0x5')][_0x2ca3('0x27')](_0x2ca3('0x18'));this['editor'][_0x2ca3('0xf')][_0x2ca3('0x22')](_0x5bef19[_0x2ca3('0xc')],()=>{for(const _0x10c894 of _0x4c5638){if(this['_getSuggestion'](_0x10c894,_0xdc0776))_0x31e6d8(_0x5bef19);else{const _0xdce01e={};for(const _0x41016a of _0x7adbde){const _0x235d9c=_0x10c894[_0x2ca3('0x2')](_0x41016a);void 0x0!==_0x235d9c&&(_0xdce01e[_0x41016a]=_0x235d9c);}_0x31e6d8(_0x5bef19),_0x10d68c[_0x2ca3('0x1b')](_0x10c894,{'commandParams':[_0xdce01e]},[],_0xdc0776);}}});}[_0x2ca3('0x17')](_0xb79ed8,_0x25c89c,_0x45c60a){const _0x86de88=_0x25c89c[0x0][_0x2ca3('0x31')][_0x2ca3('0x10')],_0x556c2c=_0x45c60a[_0x2ca3('0x35')][0x0];this[_0x2ca3('0x33')][_0x2ca3('0xf')][_0x2ca3('0x7')](_0xcf3b14=>{for(const _0x5ef3c1 of _0xb79ed8)void 0x0!==_0x556c2c[_0x5ef3c1]?_0xcf3b14[_0x2ca3('0x1d')](_0x5ef3c1,_0x556c2c[_0x5ef3c1],_0x86de88):_0xcf3b14['removeAttribute'](_0x5ef3c1,_0x86de88);});}[_0x2ca3('0x8')](_0xc8afec){if(_0xc8afec['data'])switch(_0xc8afec[_0x2ca3('0x2e')]){case'tableProperties':return{'type':_0x2ca3('0x9'),'content':_0x59db7b(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case _0x2ca3('0x36'):return{'type':_0x2ca3('0x9'),'content':_0x59db7b(this[_0x2ca3('0x33')]['locale'],_0x2ca3('0xa'))};}}[_0x2ca3('0x25')](_0x53d019,_0x26e68e){const _0x3ebbad=this['editor'][_0x2ca3('0x5')]['get'](_0x2ca3('0x18'));for(const _0xdf9792 of _0x3ebbad[_0x2ca3('0x20')]({'skipNotAttached':!0x0})){const _0x44e528=_0xdf9792[_0x2ca3('0x34')]();if(_0xdf9792[_0x2ca3('0x2e')]===_0x26e68e&&_0x44e528===_0x53d019)return _0xdf9792;}return null;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31cb=['newRange','differ','afterInit','from','end','_descriptionFactory','get','ELEMENT_TITLE','locale','isTouching','title-content','plugins','model','isEqual','nodeBefore','getChangedMarkers','removeMarker','isCollapsed','document','forward','registerElementLabel','schema','Title','suggestion','start','element','TrackChangesEditing'];(function(_0x23a213,_0x31cb41){const _0x10c383=function(_0x486505){while(--_0x486505){_0x23a213['push'](_0x23a213['shift']());}};_0x10c383(++_0x31cb41);}(_0x31cb,0xf9));const _0x10c3=function(_0x23a213,_0x31cb41){_0x23a213=_0x23a213-0x0;let _0x10c383=_0x31cb[_0x23a213];return _0x10c383;};import{Plugin as _0x33de1c}from'ckeditor5/src/core';import{getTranslation as _0xb90678}from'../utils/common-translations';export default class dt extends _0x33de1c{[_0x10c3('0x17')](){const _0x154702=this['editor'];if(!_0x154702['plugins']['has'](_0x10c3('0x10')))return;const _0x307d1c=_0x154702[_0x10c3('0x5')][_0x10c3('0x0')](_0x10c3('0x14'));_0x307d1c[_0x10c3('0x1a')][_0x10c3('0xe')](_0x10c3('0x4'),()=>_0xb90678(_0x154702[_0x10c3('0x2')],_0x10c3('0x1'))),_0x154702[_0x10c3('0x6')][_0x10c3('0xc')]['registerPostFixer'](_0x16c4e9=>{let _0x298e77=!0x1;const _0x49442b=Array[_0x10c3('0x18')](_0x154702[_0x10c3('0x6')][_0x10c3('0xc')][_0x10c3('0x16')][_0x10c3('0x9')]());for(const {name:_0x298da2,data:_0x2a01fa}of _0x49442b){const {group:_0x49620e}=_0x307d1c['_splitMarkerName'](_0x298da2);if(_0x10c3('0x11')!==_0x49620e||!_0x2a01fa[_0x10c3('0x15')])continue;const _0x5bc934=_0x2a01fa[_0x10c3('0x15')],_0x5be08e=_0x5bc934[_0x10c3('0x19')][_0x10c3('0x8')];if(!_0x5be08e||!_0x5be08e['is'](_0x10c3('0x13'),_0x10c3('0x4')))continue;if(!_0x5bc934[_0x10c3('0x12')][_0x10c3('0x3')](_0x5bc934['end']))continue;const _0x4bde98=_0x154702[_0x10c3('0x6')][_0x10c3('0xf')]['getNearestSelectionRange'](_0x5bc934[_0x10c3('0x19')],_0x10c3('0xd'));if(_0x4bde98&&_0x4bde98[_0x10c3('0xb')]){const _0x5458f3=_0x16c4e9['createRange'](_0x5bc934['start'],_0x4bde98[_0x10c3('0x12')]);_0x5458f3[_0x10c3('0x7')](_0x5bc934)||(_0x16c4e9['updateMarker'](_0x298da2,{'range':_0x5458f3}),_0x298e77=!0x0);}_0x298e77||(_0x16c4e9[_0x10c3('0xa')](_0x298da2),_0x298e77=!0x0);}return _0x298e77;});}}
23
+ const _0x1120=['TrackChangesEditing','_descriptionFactory','createRange','updateMarker','Title','get','forward','registerPostFixer','getChangedMarkers','removeMarker','model','editor','end','plugins','from','locale','getNearestSelectionRange','title-content','has','start','isTouching','registerElementLabel','document','element','afterInit','schema','suggestion','differ','isCollapsed','newRange'];(function(_0x353a0f,_0x112058){const _0x3f4cb9=function(_0xbd409d){while(--_0xbd409d){_0x353a0f['push'](_0x353a0f['shift']());}};_0x3f4cb9(++_0x112058);}(_0x1120,0x143));const _0x3f4c=function(_0x353a0f,_0x112058){_0x353a0f=_0x353a0f-0x0;let _0x3f4cb9=_0x1120[_0x353a0f];return _0x3f4cb9;};import{Plugin as _0x1123aa}from'ckeditor5/src/core';import{getTranslation as _0x3d2f7f}from'../utils/common-translations';export default class bt extends _0x1123aa{[_0x3f4c('0x1')](){const _0x113081=this[_0x3f4c('0x12')];if(!_0x113081[_0x3f4c('0x14')][_0x3f4c('0x19')](_0x3f4c('0xb')))return;const _0x596d11=_0x113081[_0x3f4c('0x14')][_0x3f4c('0xc')](_0x3f4c('0x7'));_0x596d11[_0x3f4c('0x8')][_0x3f4c('0x1c')](_0x3f4c('0x18'),()=>_0x3d2f7f(_0x113081[_0x3f4c('0x16')],'ELEMENT_TITLE')),_0x113081[_0x3f4c('0x11')][_0x3f4c('0x1d')][_0x3f4c('0xe')](_0x1d3db3=>{let _0x59c9b2=!0x1;const _0x3d94d8=Array[_0x3f4c('0x15')](_0x113081[_0x3f4c('0x11')][_0x3f4c('0x1d')][_0x3f4c('0x4')][_0x3f4c('0xf')]());for(const {name:_0x542ea0,data:_0x45d6fc}of _0x3d94d8){const {group:_0x27cf07}=_0x596d11['_splitMarkerName'](_0x542ea0);if(_0x3f4c('0x3')!==_0x27cf07||!_0x45d6fc[_0x3f4c('0x6')])continue;const _0x3c2e61=_0x45d6fc[_0x3f4c('0x6')],_0x35200b=_0x3c2e61[_0x3f4c('0x13')]['nodeBefore'];if(!_0x35200b||!_0x35200b['is'](_0x3f4c('0x0'),_0x3f4c('0x18')))continue;if(!_0x3c2e61[_0x3f4c('0x1a')][_0x3f4c('0x1b')](_0x3c2e61[_0x3f4c('0x13')]))continue;const _0x101aae=_0x113081[_0x3f4c('0x11')][_0x3f4c('0x2')][_0x3f4c('0x17')](_0x3c2e61[_0x3f4c('0x13')],_0x3f4c('0xd'));if(_0x101aae&&_0x101aae[_0x3f4c('0x5')]){const _0x88c3f=_0x1d3db3[_0x3f4c('0x9')](_0x3c2e61[_0x3f4c('0x1a')],_0x101aae[_0x3f4c('0x1a')]);_0x88c3f['isEqual'](_0x3c2e61)||(_0x1d3db3[_0x3f4c('0xa')](_0x542ea0,{'range':_0x88c3f}),_0x59c9b2=!0x0);}_0x59c9b2||(_0x1d3db3[_0x3f4c('0x10')](_0x542ea0),_0x59c9b2=!0x0);}return _0x59c9b2;});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -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 _0x5a2b=['afterInit','editor','enableCommand','plugins','UndoEditing','redo','get'];(function(_0xc4f9db,_0x5a2b96){const _0x216ac0=function(_0x2b084c){while(--_0x2b084c){_0xc4f9db['push'](_0xc4f9db['shift']());}};_0x216ac0(++_0x5a2b96);}(_0x5a2b,0x97));const _0x216a=function(_0xc4f9db,_0x5a2b96){_0xc4f9db=_0xc4f9db-0x0;let _0x216ac0=_0x5a2b[_0xc4f9db];return _0x216ac0;};import{Plugin as _0x22cb3a}from'ckeditor5/src/core';export default class St extends _0x22cb3a{[_0x216a('0x3')](){const _0x28b7cb=this[_0x216a('0x4')],_0x4b2408=_0x28b7cb[_0x216a('0x6')][_0x216a('0x2')]('TrackChangesEditing');_0x28b7cb['plugins']['has'](_0x216a('0x0'))&&(_0x4b2408[_0x216a('0x5')]('undo'),_0x4b2408[_0x216a('0x5')](_0x216a('0x1')));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -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 _0x249d=['createRangeOn','span','markerName','name','mapper','consumable','isContent','nextSibling','element','createUIElement','getItems','addClass','toViewPosition','get','push','TrackChangesEditing','toViewElement','isBlock','type','listItem','test','includes','start','getWalker','markerRange','addHighlight','previousPosition','elementEnd','writer','ck-suggestion-marker-','item','listIndent','activeMarkers','bindElementToMarker','getAttribute'];(function(_0x210e01,_0x249d30){const _0x15ebb2=function(_0x196545){while(--_0x196545){_0x210e01['push'](_0x210e01['shift']());}};_0x15ebb2(++_0x249d30);}(_0x249d,0xee));const _0x15eb=function(_0x210e01,_0x249d30){_0x210e01=_0x210e01-0x0;let _0x15ebb2=_0x249d[_0x210e01];return _0x15ebb2;};export function getRangesWithAttribute(_0x6dc7cf,_0x2a1d98,_0x5e88e2){const _0x562b2b=[];for(const _0x487368 of _0x2a1d98[_0x15eb('0x11')]())_0x487368['hasAttribute'](_0x6dc7cf)&&_0x562b2b[_0x15eb('0x15')](_0x5e88e2[_0x15eb('0x7')](_0x487368));return _0x562b2b;}export function getElementsAffectedByListItemRename(_0x5b5b56){const _0x4963ff=[];if(_0x5b5b56['is'](_0x15eb('0xf'),_0x15eb('0x1a'))){let _0x1a7577=_0x5b5b56[_0x15eb('0xe')];for(;_0x1a7577&&_0x1a7577['is'](_0x15eb('0xf'),_0x15eb('0x1a'))&&_0x1a7577[_0x15eb('0x6')](_0x15eb('0x3'))>0x0;)_0x4963ff[_0x15eb('0x15')](_0x1a7577),_0x1a7577=_0x1a7577[_0x15eb('0xe')];}return _0x4963ff;}export function downcastSplitMergeMarker(_0x55f953,_0x303bbf,{showActiveMarker:_0x1cad8f=!0x0}={}){const _0x3483c3=_0x55f953['plugins'][_0x15eb('0x14')](_0x15eb('0x16'));return(_0x3ce661,_0x154006,_0x39221a)=>{if(!_0x39221a[_0x15eb('0xc')][_0x15eb('0x1b')](_0x154006[_0x15eb('0x1f')],_0x3ce661[_0x15eb('0xa')]))return;const _0x27a0b1=_0x154006[_0x15eb('0x1f')][_0x15eb('0x1e')](),_0x135278=_0x154006[_0x15eb('0x1f')][_0x15eb('0x1d')],_0x80dada=_0x55f953['model']['schema'];let _0x3b0233=null,_0x8d5002=null,_0x12fda4=!0x1,_0x4f715d=!0x1;for(const _0x7af28d of _0x27a0b1){const _0x284369=_0x7af28d[_0x15eb('0x2')];_0x12fda4=_0x12fda4||_0x80dada[_0x15eb('0xd')](_0x284369);const _0x5ef84c=_0x39221a[_0x15eb('0xb')][_0x15eb('0x17')](_0x284369);if(_0x5ef84c&&_0x5ef84c['getCustomProperty'](_0x15eb('0x20')))return;_0x15eb('0x22')==_0x7af28d[_0x15eb('0x19')]&&(_0x80dada[_0x15eb('0x18')](_0x284369)&&!_0x80dada['isLimit'](_0x284369)&&(_0x284369[_0x15eb('0xe')]||_0x135278['isAtEnd']?_0x3b0233&&_0x3b0233['parent']==_0x284369||(_0x3b0233=_0x284369,_0x3db27d(_0x7af28d[_0x15eb('0x21')]),_0x4f715d=!0x0):_0x8d5002=_0x8d5002||_0x7af28d[_0x15eb('0x21')]));}function _0x3db27d(_0x498dcc){const _0x166bdf=_0x39221a[_0x15eb('0x0')][_0x15eb('0x10')](_0x15eb('0x8'),{'class':_0x15eb('0x1')+_0x303bbf}),_0x373473=_0x39221a[_0x15eb('0xb')][_0x15eb('0x13')](_0x498dcc);_0x1cad8f&&_0x3483c3[_0x15eb('0x4')][_0x15eb('0x1c')](_0x154006[_0x15eb('0x9')])&&_0x39221a[_0x15eb('0x0')][_0x15eb('0x12')]('ck-suggestion-marker--active',_0x166bdf),_0x39221a[_0x15eb('0x0')]['insert'](_0x373473,_0x166bdf),_0x39221a['mapper'][_0x15eb('0x5')](_0x166bdf,_0x154006['markerName']);}_0x12fda4||_0x4f715d||!_0x8d5002||_0x3db27d(_0x8d5002);};}
package/src/suggestion.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -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 _0x4ca7=['start','addMarkerName','subType','addMarker','_model','data','next','hasComments','onAccept','getMarkers','attributes','_onDiscard','createdAt','getAllAdjacentSuggestions','getMarkerNames','filter','@external','_markerNames','addRange','accept','isIntersecting','nodeBefore','get','nodeAfter','getRanges','getContainedElement','markers','commentThread','end','getRange','clear','toJSON','isInContent','isIntersectingWithRange','decorate','_onAccept','removeMarkers','authoredAt','map','type','isMultiRange','getFirstMarker','head','isExternal','suggestion:','split','set','removeMarker','discard','creator','add','_onAttributesChange','author','onAttributesChange','push'];(function(_0x2c8a61,_0x4ca73d){const _0x2f55ae=function(_0x6e38e4){while(--_0x6e38e4){_0x2c8a61['push'](_0x2c8a61['shift']());}};_0x2f55ae(++_0x4ca73d);}(_0x4ca7,0x11f));const _0x2f55=function(_0x2c8a61,_0x4ca73d){_0x2c8a61=_0x2c8a61-0x0;let _0x2f55ae=_0x4ca7[_0x2c8a61];return _0x2f55ae;};import{Element as _0x3a47a1}from'ckeditor5/src/engine';import{ObservableMixin as _0x45ddf8,mix as _0x10b0bf,uid as _0x41f425}from'ckeditor5/src/utils';import{cloneDeep as _0x493417,isEqual as _0x4e7721,set as _0x1b5b7a,unset as _0x17a8d6}from'lodash-es';export default class o{constructor(_0x1a4f9a,_0x2b05f3){this['id']=_0x2b05f3['id'],this[_0x2f55('0x1b')]=_0x2b05f3[_0x2f55('0x1b')],this[_0x2f55('0x2d')]=_0x2b05f3[_0x2f55('0x2d')]||null,this[_0x2f55('0x28')]=_0x2b05f3[_0x2f55('0x28')],this['creator']=_0x2b05f3[_0x2f55('0x25')]||_0x2b05f3[_0x2f55('0x28')],this[_0x2f55('0x1f')]=Boolean(_0x2b05f3[_0x2f55('0x35')]&&_0x2b05f3[_0x2f55('0x35')][_0x2f55('0x4')]),this[_0x2f55('0x30')]=null,this[_0x2f55('0x2f')]=_0x1a4f9a,this[_0x2f55('0x17')]=_0x2b05f3[_0x2f55('0x33')],this[_0x2f55('0x36')]=_0x2b05f3['onDiscard'],this[_0x2f55('0x27')]=_0x2b05f3[_0x2f55('0x29')],this[_0x2f55('0x5')]=new Set(),this[_0x2f55('0x0')]=null,this['set'](_0x2f55('0x19'),null),this[_0x2f55('0x22')](_0x2f55('0x35'),_0x2b05f3[_0x2f55('0x35')]||{}),this['set']('previous',null),this['set']('next',null),this[_0x2f55('0x22')](_0x2f55('0xf'),null),this[_0x2f55('0x22')]('_saved',!0x1),this[_0x2f55('0x16')](_0x2f55('0x7')),this[_0x2f55('0x16')](_0x2f55('0x24'));}get[_0x2f55('0x1e')](){let _0x1ef8ff=this;for(;_0x1ef8ff['previous'];)_0x1ef8ff=_0x1ef8ff['previous'];return _0x1ef8ff;}get[_0x2f55('0x32')](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get[_0x2f55('0x1c')](){if(0x0==this[_0x2f55('0x5')]['size'])return!0x1;return 0x6==Array['from'](this[_0x2f55('0x5')])[0x0][_0x2f55('0x21')](':')['length'];}get[_0x2f55('0x14')](){return null!==this[_0x2f55('0x1d')]();}[_0x2f55('0x2c')](_0x219c05){this['_markerNames'][_0x2f55('0x26')](_0x219c05);}[_0x2f55('0x2')](){return Array['from'](this[_0x2f55('0x5')]);}[_0x2f55('0x34')](){return this[_0x2f55('0x2')]()[_0x2f55('0x1a')](_0x6847c6=>this[_0x2f55('0x2f')][_0x2f55('0xe')][_0x2f55('0xa')](_0x6847c6))[_0x2f55('0x3')](_0x43c4b5=>_0x43c4b5);}[_0x2f55('0x1d')](){return this[_0x2f55('0x34')]()[0x0]||null;}[_0x2f55('0x18')](){this[_0x2f55('0x2f')]['change'](_0x3d9f9e=>{for(const _0x32db39 of this[_0x2f55('0x34')]())_0x3d9f9e[_0x2f55('0x23')](_0x32db39);}),this[_0x2f55('0x5')][_0x2f55('0x12')]();}['removeMarker'](_0x3f44dc){this[_0x2f55('0x2f')]['change'](_0x4f8791=>{_0x4f8791['removeMarker'](_0x3f44dc);}),this[_0x2f55('0x5')]['delete'](_0x3f44dc);}[_0x2f55('0x6')](_0x32219c){const _0xf2b618=_0x2f55('0x20')+this['type']+':'+this[_0x2f55('0x2d')]+':'+this['id']+':'+this[_0x2f55('0x25')]['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xf2b618),this[_0x2f55('0x2f')]['change'](_0x4cfd29=>{_0x4cfd29[_0x2f55('0x2e')](_0xf2b618,{'range':_0x32219c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2f55('0x15')](_0x5b978a){for(const _0x5ae994 of this[_0x2f55('0xc')]())if(_0x5ae994[_0x2f55('0x8')](_0x5b978a))return!0x0;return!0x1;}[_0x2f55('0xc')](){return this[_0x2f55('0x34')]()[_0x2f55('0x1a')](_0x32b761=>_0x32b761['getRange']());}['getItems'](){return this[_0x2f55('0xc')]()['reduce']((_0x47bd24,_0x56ab84)=>[..._0x47bd24,..._0x56ab84['getItems']()],[]);}['getFirstRange'](){return this[_0x2f55('0x1d')]()[_0x2f55('0x11')]();}[_0x2f55('0xd')](){const _0x3e80ba=this['getRanges']();if(0x1!=_0x3e80ba['length'])return null;const _0x584516=_0x3e80ba[0x0],_0x2c6b71=_0x584516[_0x2f55('0x2b')][_0x2f55('0xb')],_0x409339=_0x584516[_0x2f55('0x10')][_0x2f55('0x9')];return _0x2c6b71 instanceof _0x3a47a1?_0x2c6b71!=_0x409339?null:_0x2c6b71:null;}[_0x2f55('0x7')](){this[_0x2f55('0x17')](this['getRanges'](),this[_0x2f55('0x30')],this[_0x2f55('0x35')]),this[_0x2f55('0x18')]();}[_0x2f55('0x24')](){this['_onDiscard'](this['getRanges'](),this[_0x2f55('0x30')],this[_0x2f55('0x35')]),this[_0x2f55('0x18')]();}[_0x2f55('0x1')](){const _0x2717fa=[];let _0x578f16=this[_0x2f55('0x1e')];for(;_0x578f16;)_0x2717fa[_0x2f55('0x2a')](_0x578f16),_0x578f16=_0x578f16[_0x2f55('0x31')];return _0x2717fa;}['setAttribute'](_0x3e7d17,_0x9c110c){const _0x3561bb=_0x493417(this[_0x2f55('0x35')]);_0x1b5b7a(_0x3561bb,_0x3e7d17,_0x9c110c),_0x4e7721(_0x3561bb,this['attributes'])||(this['attributes']=_0x3561bb,this[_0x2f55('0x27')](_0x3561bb));}['removeAttribute'](_0x1cec75){const _0x1be117=_0x493417(this[_0x2f55('0x35')]);_0x17a8d6(_0x1be117,_0x1cec75),_0x4e7721(_0x1be117,this[_0x2f55('0x35')])||(this[_0x2f55('0x35')]=_0x1be117,this['_onAttributesChange'](this[_0x2f55('0x35')]));}[_0x2f55('0x13')](){return{'id':this['id'],'type':this['subType']?this[_0x2f55('0x1b')]+':'+this[_0x2f55('0x2d')]:this[_0x2f55('0x1b')],'authorId':this[_0x2f55('0x25')]['id'],'createdAt':this[_0x2f55('0x0')],'hasComments':this['hasComments'],'data':this[_0x2f55('0x30')],'attributes':this[_0x2f55('0x35')]};}static['getMultiRangeId'](){return _0x41f425()['substr'](0x1,0x5);}}_0x10b0bf(o,_0x45ddf8);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -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 _0x2b48=['deletion','remove','_customCallbacks','*Split:*\x20%0','removeContainer','getFirstRange','normal','nextSibling','_addDescriptionItems','REPLACE_TEXT','isEmpty','*Remove:*\x20%0','matchingCallback','removeObject','*Merge:*\x20%0','softBreak','element','function','type','previousSibling','_schema','length','elementStart','add','text','label','removeEmptyContainer','getItemLabel','replace','isEqual','name','isObject','push','EmptyContainer','_itemLabelsCallbacks','addObject','_itemLabels','$1\x20$2','_resolveDescriptionItems','ELEMENT_SPACE','quantity','indexOf','skip','pop','Container','checkChild','elementEnd','match','*Insert:*\x20%0','getDescriptions','Object','registerElementLabel','get','data','addContainer','start','_locale','addEmptyContainer','insertion'];(function(_0x174c4e,_0x2b487e){const _0x473e87=function(_0x185f6b){while(--_0x185f6b){_0x174c4e['push'](_0x174c4e['shift']());}};_0x473e87(++_0x2b487e);}(_0x2b48,0xc5));const _0x473e=function(_0x174c4e,_0x2b487e){_0x174c4e=_0x174c4e-0x0;let _0x473e87=_0x2b48[_0x174c4e];return _0x473e87;};import{getTranslation as _0x2611e1}from'./utils/common-translations';import{priorities as _0x5e1d08,insertToPriorityArray as _0x13462c}from'ckeditor5/src/utils';export default class f{constructor(_0x56de77,_0x1dec71){this[_0x473e('0x29')]=[],this['_itemLabels']=new Map(),this[_0x473e('0xe')]=[],this[_0x473e('0x0')]=_0x56de77,this[_0x473e('0x24')]=_0x1dec71;}[_0x473e('0x1d')](_0xb9965c){const _0x144cc7=[];for(let _0x3cbba2=0x0;_0x3cbba2<_0xb9965c[_0x473e('0x1')];_0x3cbba2++){const _0x2c6dc3=_0xb9965c[_0x3cbba2];if(!_0x2c6dc3['isInContent'])continue;let _0x525177=!0x1;for(const _0x5dbe51 of this[_0x473e('0x29')]){const _0x3e64c3=_0x5dbe51(_0x2c6dc3);if(_0x3e64c3){_0x3e64c3['type']&&_0x144cc7[_0x473e('0xc')](_0x3e64c3),_0x525177=!0x0;break;}}if(!_0x525177){this[_0x473e('0x2f')](_0x144cc7,_0x2c6dc3);const _0xa8d758=_0xb9965c[_0x3cbba2+0x1];if(_0xa8d758&&!_0x2c6dc3['getFirstRange']()['end'][_0x473e('0x9')](_0xa8d758[_0x473e('0x2c')]()[_0x473e('0x23')])){const _0x3a7634=_0x144cc7[_0x144cc7[_0x473e('0x1')]-0x1],_0xb829d5=_0x473e('0x26')==_0x2c6dc3[_0x473e('0x39')]?_0x473e('0x3'):_0x473e('0x28');_0x3a7634&&'text'==_0x3a7634[_0x473e('0x39')]&&(_0x3a7634[_0xb829d5]+='\x0a');}}}return this[_0x473e('0x12')](_0x144cc7);}['registerDescriptionCallback'](_0x1b5fbe){this[_0x473e('0x29')][_0x473e('0xc')](_0x1b5fbe);}[_0x473e('0x1f')](_0x757c08,_0x2c14f6,_0x222c8e=_0x5e1d08[_0x473e('0x2d')]){_0x473e('0x38')==typeof _0x757c08?_0x13462c(this[_0x473e('0xe')],{'matchingCallback':_0x757c08,'label':_0x2c14f6,'priority':_0x222c8e}):this[_0x473e('0x10')]['set'](_0x757c08,_0x2c14f6);}[_0x473e('0x7')](_0x5dcdf4,_0x374eb9=0x1){let _0x22ce06;for(const _0x5f0eb7 of this[_0x473e('0xe')])if(_0x5f0eb7[_0x473e('0x33')](_0x5dcdf4)){_0x22ce06=_0x5f0eb7[_0x473e('0x5')];break;}return _0x22ce06||(_0x22ce06=this[_0x473e('0x10')][_0x473e('0x20')](_0x5dcdf4[_0x473e('0xa')])),_0x22ce06?_0x22ce06(_0x374eb9):0x1!==_0x374eb9?_0x374eb9+'\x20'+_0x5dcdf4[_0x473e('0xa')]+'s':''+_0x5dcdf4['name'];}[_0x473e('0x2f')](_0x4a955a,_0x59fc78){const _0x579d1f=_0x59fc78[_0x473e('0x2c')]()['getWalker'](),_0x324484=_0x473e('0x26')==_0x59fc78[_0x473e('0x39')]?_0x473e('0x3'):_0x473e('0x28');for(const _0x5cb0cf of _0x579d1f){const _0xea7cf1=_0x5cb0cf['item'],_0x286f80=_0x4a955a[_0x4a955a[_0x473e('0x1')]-0x1];if(_0xea7cf1['is']('textProxy'))_0x286f80&&_0x286f80[_0x473e('0x39')]['indexOf'](_0x473e('0x18'))>-0x1&&_0x4a955a[_0x473e('0x17')](),_0x286f80&&'text'==_0x286f80['type']?_0x286f80[_0x324484]+=_0xea7cf1[_0x473e('0x21')]:_0x4a955a[_0x473e('0xc')]({'type':_0x473e('0x4'),'add':_0x473e('0x3')==_0x324484?_0xea7cf1['data']:'','remove':_0x473e('0x28')==_0x324484?_0xea7cf1[_0x473e('0x21')]:''});else{if(this[_0x473e('0x0')][_0x473e('0xb')](_0xea7cf1)){if(_0x286f80&&_0x286f80[_0x473e('0x39')][_0x473e('0x15')]('Container')>-0x1&&_0x4a955a['pop'](),_0x473e('0x1a')==_0x5cb0cf[_0x473e('0x39')])continue;_0x286f80&&_0x286f80[_0x473e('0x39')]==_0x324484+_0x473e('0x1e')&&_0x286f80[_0x473e('0x37')][_0x473e('0xa')]==_0xea7cf1[_0x473e('0xa')]?_0x286f80['quantity']++:_0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0x1e'),'element':_0xea7cf1,'quantity':0x1}),_0x579d1f[_0x473e('0x16')](_0x9ea3ca=>!(_0x473e('0x1a')==_0x9ea3ca[_0x473e('0x39')]&&_0x9ea3ca['item']==_0xea7cf1));}else{if(this['_schema'][_0x473e('0x19')](_0xea7cf1,'$text')||_0xea7cf1['is'](_0x473e('0x37'),_0x473e('0x36'))){if(_0x473e('0x3')==_0x324484&&_0x473e('0x2')==_0x5cb0cf[_0x473e('0x39')]||_0x473e('0x28')==_0x324484&&_0x473e('0x1a')==_0x5cb0cf[_0x473e('0x39')])continue;if(_0x286f80&&-0x1==_0x286f80['type'][_0x473e('0x15')](_0x473e('0x18'))){_0x473e('0x4')==_0x286f80[_0x473e('0x39')]&&(_0x286f80[_0x324484]+='\x0a');continue;}let _0x11656c;if(_0x11656c=_0x473e('0x3')==_0x324484?_0xea7cf1[_0x473e('0x2e')]&&!this['_schema'][_0x473e('0xb')](_0xea7cf1[_0x473e('0x2e')])?_0xea7cf1[_0x473e('0x2e')]:null:_0xea7cf1[_0x473e('0x3a')]&&!this[_0x473e('0x0')][_0x473e('0xb')](_0xea7cf1[_0x473e('0x3a')])?_0xea7cf1[_0x473e('0x3a')]:null,_0xea7cf1[_0x473e('0x31')]||_0x11656c&&_0x11656c[_0x473e('0x31')]){const _0x53c51a=_0x11656c&&_0x11656c[_0x473e('0x31')]?_0x11656c:_0xea7cf1;_0x286f80&&_0x286f80[_0x473e('0x39')]==_0x324484+_0x473e('0xd')&&_0x286f80[_0x473e('0x37')]['name']==_0x53c51a['name']?_0x286f80[_0x473e('0x14')]++:_0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0xd'),'element':_0x53c51a,'quantity':0x1});}else _0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0x18'),'element':_0xea7cf1});}}}}}[_0x473e('0x12')](_0x32670d){const _0xea4979=this['_locale'],_0x1cc8ea=[];for(const _0x1d835c of _0x32670d){switch(_0x1d835c[_0x473e('0x39')]){case _0x473e('0x4'):if(_0x1d835c['add']=_0x1d835c[_0x473e('0x3')][_0x473e('0x8')](/(\S)\u000A+(\S)/g,_0x473e('0x11'))[_0x473e('0x8')](/\u000A/g,''),_0x1d835c[_0x473e('0x28')]=_0x1d835c[_0x473e('0x28')]['replace'](/(\S)\u000A+(\S)/g,_0x473e('0x11'))[_0x473e('0x8')](/\u000A/g,''),''!=_0x1d835c[_0x473e('0x3')]&&''!=_0x1d835c[_0x473e('0x28')]){_0x1cc8ea['push']({'type':_0x473e('0x8'),'content':_0x2611e1(_0xea4979,_0x473e('0x30'),['\x22'+_0x1d835c['remove']+'\x22','\x22'+_0x1d835c[_0x473e('0x3')]+'\x22'])});continue;}if(null!=_0x1d835c[_0x473e('0x3')]['match'](/^ +$/)){_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x1c'),_0x2611e1(_0xea4979,'ELEMENT_SPACE',_0x1d835c[_0x473e('0x3')][_0x473e('0x1')]))});continue;}if(null!=_0x1d835c[_0x473e('0x28')][_0x473e('0x1b')](/^ +$/)){_0x1cc8ea['push']({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x32'),_0x2611e1(_0xea4979,_0x473e('0x13'),_0x1d835c[_0x473e('0x28')][_0x473e('0x1')]))});continue;}if(''!=_0x1d835c[_0x473e('0x3')]){_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x1c'),'\x22'+_0x1d835c[_0x473e('0x3')]+'\x22')});continue;}_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x32'),'\x22'+_0x1d835c[_0x473e('0x28')]+'\x22')});continue;case _0x473e('0x25'):case _0x473e('0xf'):_0x1cc8ea[_0x473e('0xc')]({'type':'insertion','content':_0x2611e1(_0xea4979,_0x473e('0x1c'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;case _0x473e('0x6'):case _0x473e('0x34'):_0x1cc8ea['push']({'type':'deletion','content':_0x2611e1(_0xea4979,_0x473e('0x32'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;case _0x473e('0x22'):_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x2a'),this['getItemLabel'](_0x1d835c[_0x473e('0x37')],_0x1d835c['quantity']))});continue;case _0x473e('0x2b'):_0x1cc8ea['push']({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x35'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;}_0x1cc8ea[_0x473e('0xc')](_0x1d835c);}return _0x1cc8ea;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -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 _0x2ec9=['TrackChanges','getSuggestions','pluginName','requires','editor','adapter','plugins','Comments','addSuggestionData','get'];(function(_0x5e54a3,_0x2ec938){var _0x34f74d=function(_0x151d42){while(--_0x151d42){_0x5e54a3['push'](_0x5e54a3['shift']());}};_0x34f74d(++_0x2ec938);}(_0x2ec9,0x1f0));var _0x34f7=function(_0x5e54a3,_0x2ec938){_0x5e54a3=_0x5e54a3-0x0;var _0x34f74d=_0x2ec9[_0x5e54a3];return _0x34f74d;};import{Plugin as _0x392369}from'ckeditor5/src/core';import _0x25cbda from'./trackchangesui';import _0x169b85 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x392369{static get[_0x34f7('0x7')](){return[_0x169b85,_0x25cbda,_0x34f7('0x1')];}static get[_0x34f7('0x6')](){return _0x34f7('0x4');}set[_0x34f7('0x9')](_0x371ce6){this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)[_0x34f7('0x9')]=_0x371ce6;}get[_0x34f7('0x9')](){return this[_0x34f7('0x8')][_0x34f7('0x0')][_0x34f7('0x3')](_0x169b85)[_0x34f7('0x9')];}['addSuggestion'](_0x4dcca9){return this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)[_0x34f7('0x2')](_0x4dcca9);}[_0x34f7('0x5')](_0x1ab63a){return this['editor']['plugins'][_0x34f7('0x3')](_0x169b85)[_0x34f7('0x5')](_0x1ab63a);}['getSuggestion'](_0xcdddb){return this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)['getSuggestion'](_0xcdddb);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -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 _0x37b8=['data','_adapter','find','getUser','get','init','names','editorCreator','config','plugins','TrackChangesEditing','WordCount','execute','reduce','trackChangesData','discardAllSuggestions','push','initialData','RevisionTracker','concat','create','extraPlugins','map','CommentsRepository','acceptAllSuggestions','includes','trackChangesData.editorCreator','model','TrackChangesDataGetter','getDataWithDiscardedSuggestions','Users','every','addSuggestionData','result','users','set','document','string','WebSocketGateway','getSuggestions','editor','appendChild','Pagination','destroy','pluginName','builtinPlugins','context','useAnonymousUser','requires','TrackChangesData','define','toolbar','function','getDataWithAcceptedSuggestions'];(function(_0x3c9e6c,_0x37b8e1){const _0x2ea25f=function(_0x3fc7a){while(--_0x3fc7a){_0x3c9e6c['push'](_0x3c9e6c['shift']());}};_0x2ea25f(++_0x37b8e1);}(_0x37b8,0x162));const _0x2ea2=function(_0x3c9e6c,_0x37b8e1){_0x3c9e6c=_0x3c9e6c-0x0;let _0x2ea25f=_0x37b8[_0x3c9e6c];return _0x2ea25f;};import{Plugin as _0x2eeda3}from'ckeditor5/src/core';import{CKEditorError as _0x2c1ed2}from'ckeditor5/src/utils';import _0x2023c7 from'./trackchangesediting';const D=[_0x2ea2('0x29'),_0x2ea2('0x10'),_0x2ea2('0x15')],w=[_0x2ea2('0x8'),_0x2ea2('0x2a'),'Autosave',_0x2ea2('0x23'),_0x2ea2('0xc')];export default class y extends _0x2eeda3{static get['requires'](){return[_0x2023c7];}static get['pluginName'](){return _0x2ea2('0x13');}[_0x2ea2('0x1d')](){const _0x4bf28e=this[_0x2ea2('0xa')];if(_0x4bf28e[_0x2ea2('0x20')][_0x2ea2('0x14')](_0x2ea2('0x32'),_0x572127=>_0x4bf28e['constructor'][_0x2ea2('0x2c')]('',_0x572127)),_0x2ea2('0x16')!=typeof _0x4bf28e[_0x2ea2('0x20')][_0x2ea2('0x1c')]('trackChangesData')[_0x2ea2('0x1f')])throw new _0x2c1ed2('track-changes-data-invalid-editor-creator');}[_0x2ea2('0x17')](_0x4bf57d){return T(this['editor'],!0x0,_0x4bf57d);}[_0x2ea2('0x35')](_0x4ce19a){return T(this[_0x2ea2('0xa')],!0x1,_0x4ce19a);}}class S extends _0x2eeda3{static get['pluginName'](){return _0x2ea2('0x34');}['init'](){this[_0x2ea2('0x3')]='end',this['editor'][_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x2f'))[_0x2ea2('0x19')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x2ea2('0xa')][_0x2ea2('0x21')]['get'](_0x2ea2('0x22'))[_0x2ea2('0x19')]=null;}}async function T(_0xd9027,_0x78d933,_0x429ddc){const _0x5af8a2=function(_0x39717a){const _0x3aea50={};for(const _0x2825d8 of _0x39717a[_0x2ea2('0x20')][_0x2ea2('0x1e')]())D[_0x2ea2('0x31')](_0x2825d8)||(_0x3aea50[_0x2825d8]=_0x39717a[_0x2ea2('0x20')][_0x2ea2('0x1c')](_0x2825d8));const _0x320336=_0x39717a['constructor'][_0x2ea2('0xf')]||[],_0xf0aca4=_0x3aea50[_0x2ea2('0x2d')]||[];delete _0x3aea50['extraPlugins'];const _0x5c50b7=_0x320336[_0x2ea2('0x2b')](_0x3aea50[_0x2ea2('0x21')])[_0x2ea2('0x2b')](_0xf0aca4)[_0x2ea2('0x2e')](_0x239d6c=>_0x2ea2('0x7')==typeof _0x239d6c?_0x320336[_0x2ea2('0x1a')](_0x5d8f73=>_0x5d8f73['pluginName']==_0x239d6c):_0x239d6c),_0x46567f=Array['from'](new Set(_0x5c50b7)),_0x101e98=new Map();return _0x3aea50[_0x2ea2('0x21')]=_0x46567f['filter'](_0x3ad78a=>A(_0x3ad78a,_0x101e98)),_0x3aea50[_0x2ea2('0x21')][_0x2ea2('0x28')](S),_0x3aea50[_0x2ea2('0x21')]['push'](_0x2023c7),_0x3aea50;}(_0xd9027),_0x1c3f39=document['createDocumentFragment'](),_0x2d8b71=_0xd9027[_0x2ea2('0x20')][_0x2ea2('0x1c')](_0x2ea2('0x26'))[_0x2ea2('0x1f')],_0x27bb97=await _0x2d8b71(_0x5af8a2,()=>function(_0x4e1717){const _0x4cfcd3=document['createElement']('div');return _0x4e1717[_0x2ea2('0xb')](_0x4cfcd3),_0x4cfcd3;}(_0x1c3f39));!function(_0x307099,_0x46de50){const _0x2870ba=_0x307099[_0x2ea2('0x33')][_0x2ea2('0x6')]['getRootNames']()[_0x2ea2('0x25')]((_0x13dcde,_0x13b71d)=>(_0x13dcde[_0x13b71d]=_0x307099['data']['get']({'rootName':_0x13b71d}),_0x13dcde),{}),_0x4ac16f=_0x307099['plugins'][_0x2ea2('0x1c')](_0x2ea2('0x0'))[_0x2ea2('0x4')][_0x2ea2('0x2e')](_0x58baad=>({'id':_0x58baad['id']})),_0x3827ac=_0x307099[_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x22'))[_0x2ea2('0x9')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5690bc=_0x46de50['plugins'][_0x2ea2('0x1c')](_0x2ea2('0x0')),_0x3f59bd=_0x46de50[_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x22'));for(const _0x1ad55d of _0x4ac16f)_0x5690bc[_0x2ea2('0x1b')](_0x1ad55d['id'])||_0x5690bc['addUser'](_0x1ad55d);_0x5690bc['me']||_0x5690bc[_0x2ea2('0x11')]();for(const _0x5720ef of _0x3827ac)_0x3f59bd[_0x2ea2('0x2')](_0x5720ef);_0x46de50[_0x2ea2('0x18')][_0x2ea2('0x5')](_0x2870ba);}(_0xd9027,_0x27bb97),_0x27bb97[_0x2ea2('0x24')](_0x78d933?_0x2ea2('0x30'):_0x2ea2('0x27'));const _0x45cbd9=_0x27bb97[_0x2ea2('0x18')]['get'](_0x429ddc);return await _0x27bb97[_0x2ea2('0xd')](),_0x45cbd9;}function A(_0x23d0e5,_0x49a90b){const _0x1d5932='function'==typeof _0x23d0e5?_0x23d0e5[_0x2ea2('0xe')]||_0x23d0e5['name']:_0x23d0e5;if(_0x49a90b['has'](_0x1d5932))return _0x49a90b['get'](_0x1d5932);if(_0x49a90b['set'](_0x1d5932,!0x0),_0x1d5932&&w[_0x2ea2('0x31')](_0x1d5932))return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,!0x1),!0x1;if(!_0x23d0e5[_0x2ea2('0x12')])return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,!0x0),!0x0;const _0x3274d0=_0x23d0e5[_0x2ea2('0x12')][_0x2ea2('0x1')](_0xc2f404=>A(_0xc2f404,_0x49a90b));return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,_0x3274d0),_0x3274d0;}