@ckeditor/ckeditor5-comments 47.6.0-alpha.5 → 47.6.0-alpha.7

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 (194) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +11 -11
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +19 -19
  150. package/src/annotations/annotation.js +2 -2
  151. package/src/annotations/annotationcollection.js +1 -1
  152. package/src/annotations/annotations.js +1 -1
  153. package/src/annotations/annotationsuis.js +1 -1
  154. package/src/annotations/editorannotations.js +1 -1
  155. package/src/annotations/inlineannotations.js +1 -1
  156. package/src/annotations/narrowsidebar.js +1 -1
  157. package/src/annotations/sidebar.js +1 -1
  158. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  159. package/src/annotations/view/annotationview.js +1 -1
  160. package/src/annotations/view/sidebaritemview.js +2 -2
  161. package/src/annotations/view/sidebarview.js +2 -2
  162. package/src/annotations/widesidebar.js +1 -1
  163. package/src/comments/addcommentthreadcommand.js +1 -1
  164. package/src/comments/commentsarchive.js +1 -1
  165. package/src/comments/commentsarchiveui.js +1 -1
  166. package/src/comments/commentsediting.js +1 -1
  167. package/src/comments/commentsrepository.js +3 -3
  168. package/src/comments/commentsui.js +1 -1
  169. package/src/comments/integrations/clipboard.js +1 -1
  170. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  171. package/src/comments/integrations/importword.js +1 -1
  172. package/src/comments/integrations/showcommenthighlights.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  174. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  175. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  176. package/src/comments/ui/commentthreadcontroller.js +2 -2
  177. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  178. package/src/comments/ui/view/basecommentview.js +1 -1
  179. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  180. package/src/comments/ui/view/commentcontentview.js +1 -1
  181. package/src/comments/ui/view/commentinputview.js +1 -1
  182. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  183. package/src/comments/ui/view/commentslistview.js +1 -1
  184. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  185. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  186. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  187. package/src/comments/ui/view/commentthreadview.js +2 -2
  188. package/src/comments/ui/view/commentview.js +2 -2
  189. package/src/comments.js +1 -1
  190. package/src/commentsonly.js +1 -1
  191. package/src/index.js +1 -1
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.js +1 -1
  194. package/src/utils/splitmarkername.js +1 -1
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x4f4c34,ContextPlugin as _0x545c79,PendingActions as lt,Command as _0x35ae39,Plugin as _0x23cf76,Context as _0x391341}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1f5238,uid as _0x17ea48,KeystrokeHandler as jt,FocusTracker as _0x2b2f3d,diff as _0x3fc1ba,Collection as _0xa3f224,Rect as _0x46af57,CKEditorError as _0x3c6477,first as _0x1de0ec,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x2ad553,keyCodes as _0x12b115}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1d2bdd,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x377dce,trimHtml as ts,LateFocusDropdownButtonView as _0x124d29,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x9ce898}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x5218cd}from'es-toolkit/compat';import{IconUndo as _0x16c8c0,IconCheck as _0x479cba,IconPencil as _0x42d721,IconRemoveComment as _0x2b206f,IconThreeVerticalDots as _0x2665c2,IconAddComment as _0x50c136,IconCommentsArchive as _0x307d20}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0xd32198,ButtonView as _0x28cfbe,ViewCollection as _0x10f58f,createDropdown as _0x1963c6,ListView as _0x2c610f,focusChildOnDropdownOpen as _0x4fd54f,ListItemView as _0x1fbd4b,MenuBarMenuListItemButtonView as _0x371c67,BodyCollection as _0x5b5349,BalloonPanelView as _0x135571,ContextualBalloon as _0xba2018,Dialog as _0x524ca0,DialogViewPosition as _0x1d0d6d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x2660de}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x280a59}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x354115}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x1f5238(){['model'];['view'];constructor(_0x501fed,_0x11d811){super(),this['model']=_0x501fed,this['model']['_isAttached']=!0x0,this['view']=_0x11d811,this['listenTo'](_0x11d811,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x11d811,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x11d811,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x11d811,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x11d811,'addComment',(_0x5af03a,_0x228b31)=>this['addComment'](_0x228b31)),this['listenTo'](_0x11d811,'updateComment',(_0xf28a22,_0x1523d0,_0x3382dc)=>this['updateComment'](_0x1523d0,_0x3382dc)),this['listenTo'](_0x11d811,'removeComment',(_0x3ea1bf,_0x47013c)=>this['removeComment'](_0x47013c));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x3d2a83){this['model']['addComment']({'content':_0x3d2a83,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x1c33d0,_0x5b2bf4){this['model']['getComment'](_0x1c33d0)['update']({'content':_0x5b2bf4});}['removeComment'](_0x2cdd22){this['model']['getComment'](_0x2cdd22)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x4aa764,_0x384644,_0x14c2b0){const t=_0x4aa764['t'];switch(_0x384644){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x14c2b0);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x14c2b0);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x14c2b0);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x14c2b0);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x14c2b0);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x14c2b0);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x14c2b0);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x14c2b0);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x14f49c,_0x452ed3){super(_0x14f49c);const _0x509c2e=_0x17ea48();this['main']=this['createCollection'](),this['editable']=new Vt(_0x14f49c,_0x452ed3,void 0x0,{'label':()=>N(_0x14f49c,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x14f49c['uiLanguageDirection'],'lang':_0x14f49c['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x509c2e},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x2587db){super(_0x2587db),this['view']=new Rt(_0x2587db['locale'],_0x2587db['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x343200=this['editor']['editing']['view'],_0x27777f=this['view']['editable'],_0x26bf9b=_0x343200['document']['getRoot']();_0x27777f['name']=_0x26bf9b['rootName'],this['view']['render']();const _0x7ad8f=_0x27777f['element'];this['setEditableElement'](_0x27777f['name'],_0x7ad8f),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x343200['attachDomRoot'](_0x7ad8f),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x1f5238(_0x4f4c34){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x54b507={}){function _0x219048(_0x47511d){return _0x47511d['map'](_0xa0a5a0=>String['fromCharCode'](_0xa0a5a0))['join']('');}(_0x54b507=Object['assign']({},_0x54b507))['plugins']||(_0x54b507['plugins']=hs['defaultPlugins']),super(_0x54b507),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x219048([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x219048([0x76,0x69,0x65,0x77])][_0x219048([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x219048([0x61,0x75,0x74,0x6f]),this[_0x219048([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x219048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x219048([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x219048([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x219048([0x6f,0x6b])});}['create'](){const _0x2576ec=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x2576ec))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5cb291=>{const _0x395925=this['model']['document']['getRoot'](),_0x142ceb=_0x395925&&_0x395925['getChild'](_0x395925['childCount']-0x1);_0x5cb291['setSelection'](_0x142ceb,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x463f37=this['editing']['view'],_0x586473=_0x463f37['document']['getRoot'](),_0x3ce3a4=_0x586473['getChild'](0x0);_0x586473['childCount']>0x1||!_0x3ce3a4||'p'!=_0x3ce3a4['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x463f37,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3ce3a4['placeholder']=this['placeholder']),Ft({'view':_0x463f37,'element':_0x3ce3a4,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3ce3a4);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4034b5,_0x1ad911={}){super(_0x4034b5),this['editor']=null,this['_editorConfig']=_0x1ad911,this['set']('value',_0x1ad911['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x4034b5,'Reply...')),this['set']('submitLabel',N(_0x4034b5,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x2b2f3d(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x438c17,_0x27d226)=>{this['cancelButtonView']['fire']('execute'),_0x27d226();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4a9e5d,_0x831659)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x831659());}),this['on']('submit',(_0x1eb007,_0x770104)=>{_0x770104['length']>0xfde8?(alert(N(_0x4034b5,'TOO_LONG_COMMENT_ALERT',[_0x770104['length'],0xfde8])),_0x1eb007['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x5eec65=this['editor'];this['element']['insertBefore'](_0x5eec65['ui']['element'],this['element']['firstChild']),_0x5eec65['model']['document']['on']('change',()=>this['value']=_0x5eec65['getData']()),_0x5eec65['bind']('placeholder')['to'](this),this['focusables']['add'](_0x5eec65['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x283021){-0x1===_0x283021?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x4e2acf}=this,_0x377a2e=new _0x28cfbe(_0x4e2acf);return _0x377a2e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x377a2e['withText']=!0x0,_0x377a2e['bind']('label')['to'](this,'submitLabel'),_0x377a2e['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x377a2e['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x5a78ee,_0x4945ab)=>!_0x4945ab&&!!_0x5a78ee['trim']()),_0x377a2e;}['_createCancelButton'](){const {locale:_0x2b0b43}=this,_0x1721c4=new _0x28cfbe(_0x2b0b43);return _0x1721c4['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1721c4['label']=N(_0x2b0b43,'Cancel'),_0x1721c4['withText']=!0x0,_0x1721c4['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1721c4;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4782ee=>{this['focusTracker']['add'](_0x4782ee['element']);}),this['focusables']['on']('change',(_0x472404,_0x3ea552)=>{for(const _0xb9f290 of Array['from'](_0x3ea552['added'])['reverse']())this['focusTracker']['add'](_0xb9f290['element']);});}}class ie extends kt{constructor(_0xca6113,_0xa6f30a,_0x33bfcd){super(_0xca6113),this['commentInputView']=new es(_0xca6113,_0x33bfcd),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x36226c,_0x18e7ba)=>_0x36226c||!!_0x18e7ba),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x1d2bdd(_0xca6113,_0xa6f30a),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x1679c7){this['commentInputView']['focus'](_0x1679c7);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x44f00a,_0x4e15e9)=>{const {submitButtonView:_0x216865,cancelButtonView:_0x3ca0df,editor:_0x392617}=this['commentInputView'];[_0x216865['element'],_0x3ca0df['element'],_0x392617?_0x392617['editing']['view']['getDomRoot']():null]['filter'](_0x24cc53=>_0x24cc53)['some'](_0x5913db=>_0x5913db['contains'](_0x4e15e9['target']))||(this['focus'](),_0x4e15e9['preventDefault']());});}}class rs extends kt{constructor(_0x14faf5){super(_0x14faf5);const _0x449141=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x449141['to']('count',_0x4723e7=>N(_0x14faf5,'NUMBER_OF_COMMENTS',_0x4723e7))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x3c8394,_0xbd4faa,_0x87a23){super(_0x3c8394);const _0x630c2a=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0xbd4faa['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0xbd4faa,this['_config']=_0x87a23,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x907763=>this['commentViews']['map'](_0x3cc7f7=>_0x3cc7f7['element'])['includes'](_0x907763['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x3c8394),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x3b8ebe=>_0x3b8ebe-this['_config']['maxCommentsWhenCollapsed']);for(const _0x46e9e1 of _0xbd4faa['comments'])this['_handleNewCommentModel'](_0x46e9e1);this['_handleInfoComment'](),this['listenTo'](_0xbd4faa['comments'],'add',(_0x319a0c,_0x5f1fe7)=>{const _0x21a2fb=this['_calculatePosition'](_0x5f1fe7);this['length']++,this['_handleNewCommentModel'](_0x5f1fe7,_0x21a2fb),this['refreshVisibleViews']();}),this['listenTo'](_0xbd4faa['comments'],'remove',(_0x47e45f,_0xdbc27b)=>{this['length']--,this['_handleRemoveCommentModel'](_0xdbc27b),this['refreshVisibleViews']();}),this['listenTo'](_0xbd4faa,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0xbd4faa,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x630c2a['if']('length','ck-hidden',_0x1150fa=>!_0x1150fa)],'aria-label':N(_0x3c8394,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x2d7e0c){-0x1===_0x2d7e0c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x310c77 of this['commentViews'])_0x310c77['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x316db1,_0x35df59){const _0x514bb6=new this['_config']['CommentView'](this['locale'],_0x316db1,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x514bb6['viewUid']=_0x316db1['id'],_0x514bb6['delegate']('removeComment')['to'](this),_0x514bb6['delegate']('updateComment')['to'](this),_0x514bb6['delegate']('resolveCommentThread')['to'](this),_0x514bb6['delegate']('editorReady')['to'](this),_0x514bb6['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x514bb6,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x514bb6,_0x35df59);}['_calculatePosition'](_0x11ecc6){const _0x204627=this['_model']['_findOptimalIndex'](_0x11ecc6);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x11ecc6['authoredAt']?_0x204627-0x1:_0x204627:_0x204627-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x2d31e6={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x2d31e6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x2d31e6));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4fd8dc){const _0x31dec9=this['commentViews']['remove'](_0x4fd8dc['id']);this['stopListening'](_0x31dec9),_0x31dec9['isEditMode']&&this['_updateHasDirtyComment'](),_0x31dec9['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2980f0=>_0x2980f0['isEditMode']);}['_rearrangeCollapse'](){const _0x29edfe=function(_0x3a4046){const _0x35672c=new _0xa3f224();for(const _0x86273a of _0x3a4046)_0x35672c['add'](_0x86273a);return _0x35672c;}(this['commentViews']),_0x571c49=this['_collapsedCommentsView']['count'];for(let _0x3e36dc=0x1;_0x3e36dc<=_0x571c49;_0x3e36dc++)_0x29edfe['remove'](0x1);for(const _0x2a4f2b of _0x29edfe)_0x2a4f2b['collapse']();_0x571c49>0x0&&_0x29edfe['add'](this['_collapsedCommentsView'],0x1),ns(_0x3fc1ba(Array['from'](this['visibleViews']),Array['from'](_0x29edfe)),this['visibleViews'],_0x29edfe);}['_rearrangeExpand'](){ns(_0x3fc1ba(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x513fbd of this['visibleViews'])_0x513fbd['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4ad88b=>{this['focusTracker']['add'](_0x4ad88b['element']),this['keystrokes']['listenTo'](_0x4ad88b['element']);}),this['commentViews']['on']('change',(_0x3fa431,_0x5d36a2)=>{for(const _0x153bce of _0x5d36a2['removed'])this['focusTracker']['remove'](_0x153bce['element']),this['keystrokes']['stopListening'](_0x153bce['element']);for(const _0x289f61 of Array['from'](_0x5d36a2['added'])['reverse']())this['focusTracker']['add'](_0x289f61['element']),this['keystrokes']['listenTo'](_0x289f61['element']);});}}function ns(_0x4cd143,_0x2e8b5c,_0xd4cce4){let _0x310b7a=0x0;for(const _0x2ac191 of _0x4cd143)switch(_0x2ac191){case'insert':_0x2e8b5c['add'](_0xd4cce4['get'](_0x310b7a),_0x310b7a),_0x310b7a++;break;case'delete':_0x2e8b5c['remove'](_0x310b7a);break;case'equal':_0x310b7a++;}}class oe extends kt{constructor(_0x36ff7e){super(_0x36ff7e);const _0x3cc328=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3cc328['to']('contextValue',_0x298df1=>N(_0x36ff7e,'THREAD_CONTEXT_LABEL',_0x298df1)),'tabindex':-0x1},'children':[{'text':_0x3cc328['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x503a15,_0x42edbe){super(_0x503a15);const _0x19796f=this['bindTemplate'];this['_model']=_0x42edbe,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x4ff14e=>!!_0x4ff14e),this['bind']('contextValue')['to'](this['_model'],'context',_0x4e4811=>_0x4e4811&&_0x4e4811['value']?this['_trimContextValue'](_0x4e4811['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x19796f['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x51908e=new _0x28cfbe(this['locale']);return _0x51908e['label']=N(this['locale'],'Reopen'),_0x51908e['tooltip']=N(this['locale'],'Reopen'),_0x51908e['icon']=_0x16c8c0,_0x51908e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x597cc2=>!_0x597cc2),_0x51908e['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x18c3cf,_0x3157b2)=>_0x18c3cf&&_0x3157b2),_0x51908e['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x51908e;}['_trimContextValue'](_0x2a2af0){if(_0x2a2af0['length']<0x96)return _0x2a2af0;const _0x3d5581=_0x2a2af0['lastIndexOf']('\x20',0x93);return _0x2a2af0['substring'](0x0,_0x3d5581>-0x1?_0x3d5581:0x93)+'...';}['_attachContextActions'](){const _0x1d471b=this['element']['querySelector']('.ck-context'),_0x2d1917=_0x1d471b['querySelector']('.ck-context__value');this['listenTo'](_0x1d471b,'mouseenter',()=>{_0x2d1917['offsetWidth']<_0x2d1917['scrollWidth']&&_0x1d471b['classList']['add']('overlay');}),this['listenTo'](_0x1d471b,'mouseleave',()=>{_0x1d471b['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x316ae1 of this['focusables'])this['focusTracker']['add'](_0x316ae1['element']),this['keystrokes']['listenTo'](_0x316ae1['element']);}['_createContextView'](){const _0x1947a5=new oe(this['locale']);return _0x1947a5['bind']('contextValue')['to'](this),_0x1947a5;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x18bd09,_0x15b33f,_0xdece42,_0x2f8ba0){super(_0x18bd09),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x15b33f,this['_localUser']=_0xdece42,this['_config']=_0x2f8ba0,this['commentThreadHeaderView']=new Xt(_0x18bd09,_0x15b33f),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x18bd09,N(_0x18bd09,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x18bd09,_0x15b33f,Object['assign']({'CommentView':this['_config']['CommentView']},_0x2f8ba0)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3dc475,_0x560c3b)=>_0x3dc475||!!_0x560c3b),this['bind']('isUnlinked')['to'](_0x15b33f,'unlinkedAt',_0x2466ea=>!!_0x2466ea),this['bind']('ariaLabel')['to'](this,'length',_0x2e4e90=>{const _0x4a5ac2=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x2e4e90,_0x4a5ac2]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2cb4bb=>_0x2cb4bb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4f3086=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x592c9c=_0x4f3086['commentInputView'];return _0x4f3086['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x592c9c,'value',(_0x3b2d1e,_0x251198,_0x45663e,_0x127e18,_0x30625f)=>!!_0x30625f||!!_0x127e18&&_0x45663e&&!_0x251198||_0x3b2d1e&&_0x45663e&&!_0x251198),_0x592c9c['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0xaf84ce,_0x1ce8f3,_0x387c6f)=>{let _0x1ef95e;return _0x1ef95e=_0x387c6f&&_0x1ce8f3?'Reply\x20to\x20reopen\x20discussion...':_0xaf84ce?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x1ef95e);}),_0x592c9c['bind']('submitLabel')['to'](this,'length',_0x22209a=>N(this['locale'],_0x22209a?'Reply':'Comment')),_0x592c9c['on']('submit',(_0x111625,_0x21affd)=>{this['fire']('addComment',_0x21affd),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x592c9c['on']('cancel',()=>{this['focus']();}),_0x592c9c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x592c9c['on']('cancel',_0x436ac0=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x436ac0['stop']());}),this['on']('change:isActive',(_0x33c7f5,_0xe66c25,_0x422d77)=>{_0x422d77||this['length']||_0x592c9c['value']||this['fire']('removeCommentThread');}),_0x4f3086;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x3a70d2,_0x47804b,_0xf3744,_0x5c3d95){super(_0x3a70d2,_0x47804b,_0xf3744,_0x5c3d95),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x3a70d2,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4e661b,_0x5acfc4,_0x38d1d3)=>{_0x38d1d3||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4cd663,_0x58f206,_0x1ca481)=>{_0x1ca481&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x587d97=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x587d97['if']('isActive','ck-thread--active'),_0x587d97['if']('isUnlinked','ck-thread--unlinked'),_0x587d97['to']('actionIndicator',_0x403984=>_0x403984?'ck-thread--'+_0x403984:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x587d97['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x133f6e of this['commentsListView']['commentViews'])_0x133f6e['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x2e702d}=this,_0x31006b=this['commentsListView']['commentViews']['get'](0x0);_0x31006b===this['_boundFirstCommentView']||_0x31006b['isSystemComment']||(this['_boundFirstCommentView']=_0x31006b,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x31006b,'actionIndicator',_0x4d5097=>'remove'===_0x4d5097?'remove':null),_0x31006b['placeholder']=N(_0x2e702d,'Write\x20a\x20comment...'),_0x31006b['removeButton']['on']('execute',_0x2b91fa=>{_0x2b91fa['stop'](),this['showConfirm'](N(_0x2e702d,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x31006b['focus']();}),_0x31006b['actionBar']['add'](this['resolveButton'],0x0),_0x31006b['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2986e0=new _0x377dce(this['locale']);return _0x2986e0['label']=N(this['locale'],'Resolve'),_0x2986e0['tooltip']=N(this['locale'],'Resolve'),_0x2986e0['icon']=_0x479cba,_0x2986e0['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2986e0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xdb9ec7=>!_0xdb9ec7),_0x2986e0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2f0d73,_0x2be2d7)=>_0x2f0d73&&!_0x2be2d7),_0x2986e0['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2986e0;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0x5b001f){super(_0x5b001f),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x2d71ff,_0x3a5bad,_0x4a6154)=>{this['element']['innerHTML']=_0x4a6154;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a0934,_0x5255e5,_0x2067c0){super(_0x2a0934),this['_model']=_0x5255e5,this['_config']=_0x2067c0,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x5255e5,'content',_0x5255e5,'authoredAt',(_0x40a8f9,_0x4e06c6)=>N(_0x2a0934,'COMMENT_ARIA_LABEL',[_0x5255e5['author']['name'],_0x2067c0['formatDateTime'](_0x4e06c6),new DOMParser()['parseFromString'](_0x40a8f9,'text/html')['body']['textContent'],_0x5255e5['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x2a0934,N(_0x2a0934,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x10f58f(),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x21a539=>_0x21a539['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x5b91a1=new is(this['locale']);return _0x5b91a1['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x4b65a0,_0x4a9216)=>_0x4a9216?ts(_0x4b65a0,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x4b65a0),_0x5b91a1;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0xbc45f5=new es(this['locale'],this['_config']['editorConfig']);return _0xbc45f5['value']=this['_model']['content'],_0xbc45f5['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xbc45f5['submitLabel']=N(this['locale'],'Save'),_0xbc45f5['on']('submit',(_0xbac10e,_0x52f248)=>{this['fire']('updateComment',this['_model']['id'],_0x52f248),this['switchToDisplayMode'](),this['focus']();}),_0xbc45f5['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0xbc45f5['once']('editorReady',()=>{_0xbc45f5['focus']();}),_0xbc45f5['createEditor'](),_0xbc45f5['delegate']('editorReady')['to'](this),_0xbc45f5['delegate']('editorDestroyed')['to'](this),_0xbc45f5;}['_setupKeyboardNavigation'](){const _0xdfea49=this['element'];this['keystrokes']['listenTo'](_0xdfea49);for(const _0x2e7d28 of this['focusables'])this['focusTracker']['add'](_0x2e7d28['element']),this['keystrokes']['listenTo'](_0x2e7d28['element']);this['focusables']['on']('change',(_0x3171ab,_0x3b92ac)=>{for(const _0x30fedf of _0x3b92ac['removed'])this['focusTracker']['remove'](_0x30fedf['element']),this['keystrokes']['stopListening'](_0x30fedf['element']);for(const _0xc28f90 of _0x3b92ac['added'])this['focusTracker']['add'](_0xc28f90['element']),this['keystrokes']['listenTo'](_0xc28f90['element']);}),this['keystrokes']['set']('enter',(_0x9bf314,_0x4b256f)=>{_0xdfea49===_0x9bf314['target']&&(this['focusCycler']['focusFirst'](),_0x4b256f());}),this['keystrokes']['set']('esc',(_0x4e5d1f,_0x179571)=>{_0xdfea49!==_0x4e5d1f['target']&&(this['focus'](),_0x179571());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x40c2a3,_0x2906b0,_0x1fd4f1){super(_0x40c2a3,_0x2906b0,_0x1fd4f1),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x40c2a3,'Reply...')),this['bind']('authoredAt')['to'](_0x2906b0),this['bind']('resolvedAt')['to'](_0x2906b0),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x1d2bdd(_0x40c2a3,_0x2906b0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2906b0,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2a055a=this['bindTemplate'],_0x2beb69=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2a055a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a055a['to']('authoredAt',_0x1ec6ac=>this['_config']['formatDateTime'](_0x1ec6ac))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2a055a['if']('isEditMode','ck-comment__actions--hidden'),_0x2a055a['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x2beb69['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x2a055a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2a055a['if']('isEditMode','ck-comment--edit'),_0x2a055a['if']('isSystemComment','ck-comment--info'),_0x2a055a['to']('actionIndicator',_0x5de84f=>_0x5de84f?'ck-comment--'+_0x5de84f:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x2beb69}]}]};}['_createEditButton'](){const _0x5d6c91=new _0x28cfbe(this['locale']);return _0x5d6c91['label']=N(this['locale'],'Edit'),_0x5d6c91['icon']=_0x42d721,_0x5d6c91['withText']=!0x0,_0x5d6c91['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x5d6c91['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x475e73=>!_0x475e73),_0x5d6c91['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x5d6c91['on']('execute',()=>this['switchToEditMode']()),_0x5d6c91;}['_createRemoveButton'](){const _0x30bcf4=new _0x28cfbe(this['locale']);return _0x30bcf4['label']=N(this['locale'],'Remove'),_0x30bcf4['icon']=_0x2b206f,_0x30bcf4['withText']=!0x0,_0x30bcf4['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x30bcf4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xf272fb=>!_0xf272fb),_0x30bcf4['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x30bcf4['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x30bcf4;}['_createDropdown'](){const _0x5f500e=_0x1963c6(this['locale'],_0x124d29),_0x20dcb3=_0x5f500e['panelView']['children'],_0x34ad9b=new _0x2c610f(this['locale']),_0x3fdf3e=_0x5f500e['bindTemplate'];_0x4fd54f(_0x5f500e,()=>this['items']['find'](_0x61b176=>_0x61b176['isVisible'])),_0x5f500e['extendTemplate']({'attributes':{'class':[_0x3fdf3e['if']('isVisible','ck-hidden',_0x4ffbaa=>!_0x4ffbaa)]}});const _0x22bd2c=(_0x58afd6,_0x184e0e=-0x1)=>{const _0x35f24a=new _0x1fbd4b(this['locale']);_0x35f24a['children']['add'](_0x58afd6);const _0x1d196c=_0x184e0e>-0x1?_0x184e0e:_0x34ad9b['items']['length'];_0x34ad9b['items']['add'](_0x35f24a,_0x1d196c);const _0x8e2c2e=Array['from'](this['items']);_0x5f500e['unbind']('isEnabled','isVisible'),_0x5f500e['bind']('isEnabled')['toMany'](_0x8e2c2e,'isEnabled',(..._0x1debec)=>_0x1debec['some'](_0x1ebceb=>_0x1ebceb)),_0x5f500e['bind']('isVisible')['toMany'](_0x8e2c2e,'isVisible',(..._0x2c22c1)=>_0x2c22c1['some'](_0x20bae1=>_0x20bae1));};_0x5f500e['panelPosition']='sw',_0x5f500e['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x2665c2});for(const _0x16ea35 of this['items'])_0x22bd2c(_0x16ea35);return _0x20dcb3['add'](_0x34ad9b),_0x5f500e['listenTo'](this['items'],'add',(_0x35907b,_0x51fe64,_0x4e0dd9)=>{_0x22bd2c(_0x51fe64,_0x4e0dd9);}),_0x5f500e['listenTo'](this['items'],'remove',(_0xb14cc7,_0x1f4ca6,_0x4d4571)=>{_0x34ad9b['items']['remove'](_0x4d4571);}),_0x5f500e;}['_attachActions'](_0x3072d5,_0x270bb5){const _0x404f02=_0x3072d5&&_0x3072d5['element'];_0x404f02&&(this['listenTo'](_0x404f02,'mouseenter',()=>this['actionIndicator']=_0x270bb5),this['listenTo'](_0x404f02,'focus',()=>this['actionIndicator']=_0x270bb5),this['listenTo'](_0x404f02,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x404f02,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x3211b2=super['_createCommentInputView']();return _0x3211b2['bind']('placeholder')['to'](this),_0x3211b2;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x388c29){const _0xf11d5d=Dt(_0x388c29,0x1e),_0x1a3182=new MutationObserver(_0x3262a8=>{for(const _0x58eae7 of _0x3262a8)('attributes'==_0x58eae7['type']&&'class'==_0x58eae7['attributeName']||'childList'==_0x58eae7['type']||'characterData'==_0x58eae7['type'])&&_0xf11d5d();});return{'attach'(_0x5a767c){_0x1a3182['observe'](_0x5a767c,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1a3182['disconnect'](),_0xf11d5d['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x205c04,_0x4a1a87){super(_0x205c04),this['id']=_0x17ea48(),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x282e6c,_0x5ea689)=>this['fire']('Esc',_0x5ea689)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x4a1a87),this['mainView']=_0x4a1a87;const _0x582b0a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x582b0a['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x4a3ea4=this['element']['clientHeight'];_0x4a3ea4&&(this['height']=_0x4a3ea4);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x1f5238(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x495436,target:_0x3f86,type:_0xbdf0eb,isVisible:_0x2986ca=!0x0}){super(),this['view']=_0x495436,this['view']['element']||this['view']['render'](),this['_type']=_0xbdf0eb,this['_target']=_0x3f86,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0xa3f224([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x52863b,_0xed42fe)=>{this['view']['focusTracker']['add'](_0xed42fe);}),this['focusableElements']['on']('remove',(_0x173ad5,_0x299d9b)=>{this['view']['focusTracker']['remove'](_0x299d9b);}),this['set']('isVisible',_0x2986ca);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x445a7a=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x445a7a),_0x445a7a;}get['targetRect'](){const _0xd4bbd8=this['target'];if(null===_0xd4bbd8)return null;if(_0xd4bbd8 instanceof _0x46af57)return _0xd4bbd8;const _0x33f342=_0xd4bbd8['filter'](_0x88254=>function(_0x119e06){const _0x4bfc76=_0x119e06['offsetParent'];if(_0x4bfc76)return!0x0;const _0x3c9b57=_0x119e06['getClientRects']()['item'](0x0);return!!_0x3c9b57;}(_0x88254));return 0x0===_0x33f342['length']?null:new _0x46af57(_0x33f342[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x503ad8){this['view']['isActive']=_0x503ad8,this['view']['mainView']['isActive']=_0x503ad8;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x2e990c){if(!(null===_0x2e990c||_0x2e990c instanceof _0x46af57||Array['isArray'](_0x2e990c)&&_0x2e990c['every'](_0x3a39fa=>fi(_0x3a39fa))))throw new _0x3c6477('annotation-invalid-target',null,{'target':_0x2e990c});}['_getNormalizedTarget'](){const _0x521939='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x521939)?[_0x521939]:_0x521939;}}function fi(_0x2ece13){return null!==_0x2ece13&&'object'==typeof _0x2ece13&&'nodeType'in _0x2ece13&&0x1===_0x2ece13['nodeType'];}class S extends _0xa3f224{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x361c7c=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x2b2f3d(),this['_focusTracker']['on']('change:isFocused',(_0x2fbcd4,_0x12d933,_0x1cbbe6)=>{_0x1cbbe6||this['fire']('blur');});for(const _0x42dd96 of _0x361c7c)this['add'](_0x42dd96);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x60cf87){if(this['has'](_0x60cf87))throw new _0x3c6477('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x60cf87['innerView'],_0x60cf87),this['_viewToAnnotation']['set'](_0x60cf87['view'],_0x60cf87);for(const _0x52f9f2 of _0x60cf87['focusableElements'])this['_focusTracker']['add'](_0x52f9f2);this['listenTo'](_0x60cf87['focusableElements'],'add',(_0x568d11,_0x323324)=>{this['_focusTracker']['add'](_0x323324);}),this['listenTo'](_0x60cf87['focusableElements'],'remove',(_0x205ffc,_0x46de0c)=>{this['_focusTracker']['remove'](_0x46de0c);}),this['listenTo'](_0x60cf87['view']['focusTracker'],'change:isFocused',(_0x2f67b,_0x55c773,_0x23c94b)=>{_0x23c94b&&this['fire']('focus',_0x60cf87);}),_0x60cf87['updateTargetRect']();const _0x2d19cf=this['_getOrderInContent'](_0x60cf87['view']['targetRect']);return super['add'](_0x60cf87,_0x2d19cf);}['remove'](_0x516f47){if(!this['has'](_0x516f47))throw new _0x3c6477('annotationcollection-not-existing-item',null);this['stopListening'](_0x516f47['view']['focusTracker']),this['stopListening'](_0x516f47['focusableElements']);for(const _0x483355 of _0x516f47['focusableElements'])this['_focusTracker']['remove'](_0x483355);return this['_viewToAnnotation']['delete'](_0x516f47['view']),this['_innerViewToAnnotation']['delete'](_0x516f47['innerView']),super['remove'](_0x516f47);}['getByInnerView'](_0x452275){return this['_innerViewToAnnotation']['get'](_0x452275);}['getByView'](_0x5ea5fa){return this['_viewToAnnotation']['get'](_0x5ea5fa);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1a1f41 of this)_0x1a1f41['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3cfc47=Array['from'](this)['sort']((_0x2750b5,_0x52d6fa)=>w(_0x2750b5['view']['targetRect'],_0x52d6fa['view']['targetRect']));for(let _0x14aeb0=_0x3cfc47['length']-0x1;_0x14aeb0>0x0;_0x14aeb0--){const _0x247057=_0x3cfc47[_0x14aeb0];_0x14aeb0!==this['getIndex'](_0x247057)&&(this['remove'](_0x247057),this['add'](_0x247057));}}['_getOrderInContent'](_0x449236){let _0x4b8cb0=0x0;if(!_0x449236)return this['length'];for(const _0x4f953c of this){const _0x1d877=_0x4f953c['view']['targetRect'];if(_0x1d877){if(w(_0x449236,_0x1d877)<0x0)return _0x4b8cb0;_0x4b8cb0++;}}return _0x4b8cb0;}}function v({source:_0x57840f,target:_0x31df8e,filter:_0x16f883}){for(const _0x31abdd of _0x57840f)_0x16f883(_0x31abdd)&&_0x31df8e['add'](_0x31abdd);_0x31df8e['listenTo'](_0x57840f,'add',(_0x2ed925,_0xaaf5ce)=>{_0x16f883(_0xaaf5ce)&&_0x31df8e['add'](_0xaaf5ce);}),_0x31df8e['listenTo'](_0x57840f,'remove',(_0x32dc42,_0x277523)=>{_0x31df8e['has'](_0x277523)&&_0x31df8e['remove'](_0x277523);});}function w(_0x39dd61,_0x191029){if(null===_0x39dd61&&null===_0x191029)return 0x0;if(null===_0x39dd61)return-0x1;if(null===_0x191029)return 0x1;const _0x1287ae=_0x39dd61['top']-_0x191029['top'];return 0x0==_0x1287ae?_0x39dd61['left']-_0x191029['left']:_0x1287ae;}class y extends _0x545c79{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2514f2){if(super(_0x2514f2),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2514f2 instanceof _0x4f4c34){const _0x291b30=_0x2514f2['locale'];_0x2514f2['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3bc582){this['collection']['add'](_0x3bc582);}['remove'](_0x5c1cab){this['collection']['remove'](_0x5c1cab),_0x5c1cab['destroy']();}['refreshVisibility'](){for(const _0x2c978b of this['collection'])_0x2c978b['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x4fbf2b){return this['collection']['getByInnerView'](_0x4fbf2b);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3aac13 of this['collection'])_0x3aac13['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x16e286){this['fire']('_activateAnnotation',_0x16e286);}['createAnnotation'](_0x45837b){return new T(_0x45837b);}['createAnnotationView'](_0x9e8734,_0x37aed6){return new E(_0x9e8734,_0x37aed6);}['_addActiveAnnotation'](_0x20a12b){const _0x1f13ba=new Set(this['activeAnnotations']);_0x1f13ba['add'](_0x20a12b),this['activeAnnotations']=_0x1f13ba;}['_removeActiveAnnotation'](_0x403f4f){const _0x38d2fb=new Set(this['activeAnnotations']);_0x38d2fb['delete'](_0x403f4f),this['activeAnnotations']=_0x38d2fb;}['_bindAnnotationsToVisibleAnnotations'](){const _0x13f540=this['collection'],_0x2a4a91=this['_visibleAnnotations'];function _0x48e2b4(_0x591619){const _0x1ec4d1=_0x591619['source'];_0x1ec4d1['isVisible']&&!_0x2a4a91['has'](_0x1ec4d1)?_0x2a4a91['add'](_0x1ec4d1):!_0x1ec4d1['isVisible']&&_0x2a4a91['has'](_0x1ec4d1)&&_0x2a4a91['remove'](_0x1ec4d1),_0x1ec4d1['view']['focusTracker']['remove'](_0x1ec4d1['view']['element']),_0x1ec4d1['view']['focusTracker']['add'](_0x1ec4d1['view']['element']);}this['listenTo'](_0x13f540,'add',(_0x1cf53a,_0x280d72)=>{_0x280d72['isVisible']&&_0x2a4a91['add'](_0x280d72),this['listenTo'](_0x280d72,'change:isVisible',_0x48e2b4);}),this['listenTo'](_0x13f540,'remove',(_0x18d6d5,_0x460258)=>{_0x2a4a91['has'](_0x460258)&&_0x2a4a91['remove'](_0x460258),this['stopListening'](_0x460258,'change:isVisible',_0x48e2b4);});}['_setupEnterAnnotationKeystroke'](){const _0x518787=_0x1b8131=>{_0x1b8131['on']('ready',()=>{_0x1b8131['keystrokes']['set'](_0x280a59,(_0x3e35dd,_0x1f76b1)=>{const _0x1015c5=_0x1de0ec(this['activeAnnotations']['values']());_0x1015c5&&(_0x1015c5['view']['focus'](),_0x1f76b1());});});};this['context']instanceof _0x4f4c34?_0x518787(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x399b27,_0x398250)=>{_0x518787(_0x398250);});}['_setupEscapeAnnotationHandling'](){const _0x31e212=_0x5e313f=>{const _0x8aab13=_0x5e313f['source'],_0x34fc7b=[];let _0x145523;if(Array['isArray'](_0x8aab13['target'])){_0x145523=_0x8aab13['target'][0x0],this['context']instanceof _0x4f4c34?_0x34fc7b['push'](this['context']):this['context']['editors']&&_0x34fc7b['push'](...this['context']['editors']);for(const _0x304f6a of _0x34fc7b)for(const _0x17f649 of _0x304f6a['editing']['view']['domRoots']['values']())if(_0x17f649['contains'](_0x145523))return void _0x304f6a['editing']['view']['focus']();_0x145523['focus']();}};this['listenTo'](this['collection'],'add',(_0x326b1c,_0x414332)=>{this['listenTo'](_0x414332,'escape',_0x31e212,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x5f3bae,_0xf08573)=>{this['stopListening'](_0xf08573,'escape',_0x31e212);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x545c79{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c170){super(_0x5c170),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2f554f=this['context']['config'];_0x2f554f['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2f554f['define']('comments.maxThreadTotalWeight',0x1f4),_0x2f554f['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2f554f['define']('comments.CommentThreadView',gt),_0x2f554f['define']('comments.CommentView',Tt),_0x2f554f['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3d69f0=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x216fcf,_0x4c0b57)=>this['_addCommentThread'](_0x4c0b57)),this['on']('submitCommentThread',(_0x338126,_0x525777)=>this['_submitCommentThread'](_0x525777)),this['on']('resolveCommentThread',(_0x31813f,_0x34adbc)=>this['_resolveCommentThread'](_0x34adbc)),this['on']('resolveCommentThread',(_0x5a1446,_0x256fa1)=>this['_updateActiveAnnotation'](_0x256fa1),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x274389,_0x5efc60)=>this['_reopenCommentThread'](_0x5efc60)),this['on']('reopenCommentThread',(_0x545a38,_0x2475b0)=>this['_updateActiveAnnotation'](_0x2475b0),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x34bace,_0x1f1600)=>this['_removeCommentThread'](_0x1f1600)),this['on']('updateCommentThread',(_0x476906,_0x592141)=>this['_updateCommentThread'](_0x592141)),this['on']('updateCommentThread',(_0x2f36b0,_0x4e6a9d)=>this['_updateActiveAnnotation'](_0x4e6a9d),{'priority':'lowest'}),this['on']('addComment',(_0x5e9cd4,_0x337d9d)=>this['_addComment'](_0x337d9d)),this['on']('updateComment',(_0x3bd6ee,_0x28c207)=>this['_updateComment'](_0x28c207)),this['on']('removeComment',(_0x5a25e2,_0x330937)=>this['_removeComment'](_0x330937)),this['on']('addComment',(_0x8713b,{threadId:_0x4bf0cf,isFromAdapter:_0x4a3b0a})=>{if(_0x4a3b0a)return;const _0x479347=this['getCommentThread'](_0x4bf0cf),_0x18c42b=_0x479347&&this['_threadToController']['get'](_0x479347);_0x18c42b&&_0x18c42b['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3d69f0,'change:activeAnnotations',(_0x485296,_0x5653df,_0x5cfe71)=>{const _0x19e13b=Array['from'](_0x5cfe71)['map'](_0x1d9f72=>this['_viewToController']['get'](_0x1d9f72['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x19e13b?_0x19e13b['model']:null;});}set['adapter'](_0x59af53){if(this['_adapter'])throw new _0x3c6477('commentsrepository-adapter-already-set');this['_adapter']=_0x59af53;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x1e0631=_t,threadId:_0x3be6e1=_0x17ea48(),comments:_0x4c0660=[],unlinkedAt:_0x1161d3=null,resolvedAt:_0x68c6f3=null,resolvedBy:_0x73f0b3=null,target:_0xcabc8a=null,context:_0x3a6371=null,attributes:_0xc1a444={},isResolvable:_0x3137db=!0x0,isSubmitted:_0x381263=!0x1,isFromAdapter:_0x1cc17e=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x1e0631),{'channelId':_0x1e0631,'threadId':_0x3be6e1,'comments':_0x4c0660,'unlinkedAt':_0x1161d3,'resolvedAt':_0x68c6f3,'resolvedBy':_0x73f0b3,'target':_0xcabc8a,'context':_0x3a6371,'attributes':_0xc1a444,'isFromAdapter':_0x1cc17e,'isResolvable':_0x3137db,'isSubmitted':_0x381263}),this['getCommentThread'](_0x3be6e1);}['openNewCommentThread']({channelId:_0x50c73f=_t,threadId:_0x4be6fb=_0x17ea48(),target:_0x4dc441,context:_0x21420b=null,isResolvable:_0x2c391a=!0x0}){if(this['_readOnlyChannels']['has'](_0x50c73f)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4dc441)throw new _0x3c6477('commentsrepository-missing-target');const _0x50d75d=this['addCommentThread']({'channelId':_0x50c73f,'threadId':_0x4be6fb,'target':_0x4dc441,'context':_0x21420b,'isResolvable':_0x2c391a});if(!_0x50d75d)return null;const _0x20ac21=this['_threadToController']['get'](_0x50d75d),_0x39d63a=_0x20ac21['view']['commentThreadInputView']['commentInputView'],_0x2533e7=this['context']['plugins']['get'](y),_0x568b28=_0x2533e7['getByInnerView'](_0x20ac21['view']);return _0x2533e7['activate'](_0x568b28),_0x39d63a['once']('editorReady',()=>_0x39d63a['focus']()),_0x50d75d;}['hasCommentThread'](_0x28f9f4){if('string'!=typeof _0x28f9f4)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x28f9f4);}['updateCommentThread']({channelId:_0x2c9e4a=_t,threadId:_0x29ba42,context:_0x8fe513,unlinkedAt:_0x9357ac,attributes:_0x118937,isFromAdapter:_0x2571b9=!0x1}){return this['fire'](Nt('updateCommentThread',_0x2c9e4a),{'channelId':_0x2c9e4a,'threadId':_0x29ba42,'context':_0x8fe513,'unlinkedAt':_0x9357ac,'attributes':_0x118937,'isFromAdapter':_0x2571b9}),this['getCommentThread'](_0x29ba42);}['getCommentThread'](_0x18c319){if('string'!=typeof _0x18c319)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x18c319);}['fetchCommentThread']({channelId:_0x177709,threadId:_0x21d591}={}){const _0x1c4093=this['getCommentThread'](_0x21d591);if(_0x1c4093)return Promise['resolve'](_0x1c4093);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3c6477('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x177709,'threadId':_0x21d591})['then'](_0x2ed301=>this['hasCommentThread'](_0x21d591)?this['getCommentThread'](_0x21d591):_0x2ed301?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x177709},_0x2ed301)):void 0x0)['catch'](_0xe35f3e=>{throw console['error'](_0xe35f3e),new _0x3c6477('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x480ee5,skipNotAttached:_0x1fb594=!0x1,skipEmpty:_0x720c55=!0x1,toJSON:_0x4d7fd3=!0x1}={}){const _0x59ffa2=[];for(const _0x1f7cf2 of this['_threads']['values']())_0x480ee5&&_0x1f7cf2['channelId']!==_0x480ee5||_0x1fb594&&!_0x1f7cf2['isAttached']||_0x720c55&&0x0===_0x1f7cf2['length']||_0x59ffa2['push'](_0x1f7cf2);return _0x4d7fd3?_0x59ffa2['map'](_0x4bb61b=>_0x4bb61b['toJSON']()):_0x59ffa2;}['getAnnotationForCommentThread'](_0x2cb50e){const _0x32c827=this['_threadToController']['get'](_0x2cb50e);if(!_0x32c827)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x32c827['view'])||null;}['getCommentThreadForAnnotation'](_0x27f185){const _0x180fa0=this['_viewToController']['get'](_0x27f185['innerView']);return _0x180fa0?_0x180fa0['model']:null;}['setActiveCommentThread'](_0x4891c0){const _0xb70e37=this['context']['plugins']['get'](y);if(!_0x4891c0)return void(this['activeCommentThread']&&_0xb70e37['deactivateAll']());const _0x3006e2=this['getCommentThread'](_0x4891c0);if(!_0x3006e2)throw new _0x3c6477('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4891c0});if(!this['_threadToController']['has'](_0x3006e2))throw new _0x3c6477('commentsrepository-active-not-attached',null,{'threadId':_0x4891c0});const _0x223f62=_0xb70e37['getByInnerView'](this['_threadToController']['get'](_0x3006e2)['view']);_0xb70e37['activate'](_0x223f62);}['switchReadOnly'](_0x58ff87,_0x39fdad){_0x58ff87?this['_readOnlyChannels']['add'](_0x39fdad):this['_readOnlyChannels']['delete'](_0x39fdad),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x521b2c){return this['_readOnlyChannels']['has'](_0x521b2c)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x39699b,_0x1c3de8){return new vt(_0x39699b,_0x1c3de8);}['setPermissions'](_0x1a13fe,_0x22f0d9=_t){this['_permissions']['set'](_0x22f0d9,_0x1a13fe),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2f8487=_t){return this['_permissions']['has'](_0x2f8487)?this['_permissions']['get'](_0x2f8487):bt;}['_addCommentThread']({channelId:_0x3762a9,threadId:_0x7a33d3,comments:_0x6498ac,unlinkedAt:_0x167e59,resolvedAt:_0xe30afd,resolvedBy:_0x18f488,target:_0x48fa16,context:_0x28cff8,attributes:_0x7ad90c,isFromAdapter:_0x4ee3d4,isResolvable:_0xa2f3d2,isSubmitted:_0x19c269}){if('string'!=typeof _0x7a33d3)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x7a33d3});if(this['hasCommentThread'](_0x7a33d3))throw new _0x3c6477('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x7a33d3});const _0x45b1a3=new pi(this,{'channelId':_0x3762a9,'id':_0x7a33d3,'context':_0x28cff8,'attributes':_0x7ad90c,'unlinkedAt':_0x167e59,'resolvedAt':_0xe30afd,'resolvedBy':_0x18f488?this['context']['plugins']['get'](it)['getUser'](_0x18f488):null,'isResolvable':_0xa2f3d2,'isSubmitted':_0x19c269||_0x4ee3d4});this['_threads']['set'](_0x7a33d3,_0x45b1a3);for(const _0x31affe of _0x6498ac)_0x45b1a3['_add'](this['_createNewComment']({'threadId':_0x7a33d3,..._0x31affe}));return _0x48fa16&&_0x45b1a3['attachTo'](_0x48fa16),_0x4ee3d4||!_0x45b1a3['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3762a9,'threadId':_0x7a33d3});}['_submitCommentThread']({channelId:_0x1457e6,threadId:_0x1c5a10}){if(!this['hasCommentThread'](_0x1c5a10))throw new _0x3c6477('commentsrepository-missing-comment-thread',this);const _0x1e56cd=this['getCommentThread'](_0x1c5a10);if(_0x1e56cd['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x21de8a,comments:_0x1aadba,resolvedAt:_0x4d5b5a,resolvedBy:_0x4e09d5,context:_0x5b1d40,attributes:_0x6cb84f}=_0x1e56cd,_0xf481b0=this['context']['plugins']['get']('PendingActions'),_0x1c88c0=_0xf481b0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1457e6,'threadId':_0x21de8a,'comments':_0x1aadba['map'](_0x1f2354=>_0x1f2354['toJSON']()),'resolvedAt':_0x4d5b5a,'resolvedBy':_0x4e09d5?_0x4e09d5['id']:_0x4e09d5,'context':_0x5b1d40,'attributes':_0x6cb84f})['then'](({comments:_0x91480a})=>{_0xf481b0['remove'](_0x1c88c0);for(const _0x3df1d2 of _0x91480a)this['_updateComment']({'channelId':_0x1457e6,'threadId':_0x1c5a10,'commentId':_0x3df1d2['commentId'],'createdAt':_0x3df1d2['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x59e2f3=>{throw console['error'](_0x59e2f3),new _0x3c6477('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x219d1a,target:_0xb58c88}){const _0x490633=this['getCommentThread'](_0x219d1a);if(!_0x490633)throw new _0x3c6477('commentsrepository-attach-missing-comment-thread',this);const _0x129656=this['context']['plugins']['get']('PendingActions'),_0x5b04b8=this['context']['plugins']['get'](y),_0x8f4224=this['_createCommentThreadView'](_0x490633),_0x341a88=new vt(_0x490633,_0x8f4224);let _0x2900ab=null;_0x8f4224['on']('change:isDirty',(_0x14c382,_0x571d4c,_0x4accb8)=>{_0x4accb8?_0x2900ab=_0x129656['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x2900ab&&(_0x129656['remove'](_0x2900ab),_0x2900ab=null);}),this['_threadToController']['set'](_0x490633,_0x341a88),this['_viewToController']['set'](_0x8f4224,_0x341a88);const _0x4ac673=new E(this['context']['locale'],_0x8f4224);_0x4ac673['bind']('length')['to'](_0x8f4224),_0x4ac673['bind']('isDirty')['to'](_0x8f4224,'isDirty',_0x8f4224,'length',(_0x149332,_0x4d6a5e)=>_0x149332||!_0x4d6a5e),_0x4ac673['bind']('isActive')['to'](_0x8f4224),_0x4ac673['type']='comment';const _0x36e071=new T({'view':_0x4ac673,'target':_0xb58c88,'type':'comment','isVisible':!_0x490633['archivedAt']&&!!('function'==typeof _0xb58c88?_0xb58c88():_0xb58c88)});return _0x8f4224['on']('escape',()=>{_0x36e071['fire']('escape');}),this['_bindAnnotationToEditors'](_0x8f4224,_0x36e071),_0x5b04b8['add'](_0x36e071),_0x36e071;}['_bindAnnotationToEditors'](_0x42230d,_0x31e337){this['listenTo'](_0x42230d,'editorReady',(_0x30c14b,_0x338d00)=>{const _0x480fb8=_0x338d00['ui']['view']['body']['bodyCollectionContainer'];_0x31e337['focusableElements']['add'](_0x480fb8),this['context']instanceof _0x4f4c34&&this['context']['ui']['focusTracker']['add'](_0x480fb8);},{'priority':'highest'}),this['listenTo'](_0x42230d,'editorDestroyed',(_0x462436,_0x146fb3)=>{const _0x2039d4=_0x146fb3['ui']['view']['body']['bodyCollectionContainer'];_0x31e337['focusableElements']['has'](_0x2039d4)&&_0x31e337['focusableElements']['remove'](_0x2039d4),this['context']instanceof _0x4f4c34&&this['context']['ui']['focusTracker']['remove'](_0x2039d4);});}['_unbindEditors'](_0x1d1738){this['stopListening'](_0x1d1738,'editorReady'),this['stopListening'](_0x1d1738,'editorDestroyed');}['_createCommentThreadView'](_0x4c8b71){const _0x93516c=this['context']['plugins']['get'](it),{config:_0x4d743b,locale:_0x24e256}=this['context'],_0x3a178e=pt(_0x4d743b['get']('locale'),_0x24e256);return new(0x0,(_0x4d743b['get']('comments'))['CommentThreadView'])(_0x24e256,_0x4c8b71,_0x93516c['me'],{'editorConfig':{..._0x4d743b['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4d743b['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4d743b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4d743b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4d743b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3a178e,'CommentView':_0x4d743b['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x4b3bd4,channelId:_0x4a2118,resolvedAt:_0x43d6e3,resolvedBy:_0xd9f49d,isFromAdapter:_0xcb93e0}){if(!this['hasCommentThread'](_0x4b3bd4))throw new _0x3c6477('commentsrepository-missing-comment-thread',null,{'threadId':_0x4b3bd4});const _0x29777c=this['getCommentThread'](_0x4b3bd4);if(_0x29777c['isResolved'])throw new _0x3c6477('commentsrepository-resolved-comment-thread',null,{'threadId':_0x4b3bd4});const _0x46b48a=this['context']['plugins']['get'](it);if(_0x29777c['resolvedBy']=_0x46b48a['getUser'](_0xd9f49d),_0x29777c['resolvedAt']=_0x43d6e3,_0xcb93e0||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x251010=this['context']['plugins']['get']('PendingActions'),_0x2cd029=_0x251010['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x4a2118,'threadId':_0x4b3bd4})['then'](({resolvedAt:_0x436de3,resolvedBy:_0x4e41e7})=>{_0x251010['remove'](_0x2cd029),_0x29777c['resolvedBy']['id']!==_0x4e41e7&&(_0x29777c['resolvedBy']=_0x46b48a['getUser'](_0x4e41e7)),_0x29777c['resolvedAt']=_0x436de3;})['catch'](_0x3db9de=>{throw console['error'](_0x3db9de),new _0x3c6477('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1d3b00,channelId:_0x882747,isFromAdapter:_0x5cf1a8}){if(!this['hasCommentThread'](_0x1d3b00))throw new _0x3c6477('commentsrepository-missing-comment-thread',null,{'threadId':_0x1d3b00});const _0x1e6b9a=this['getCommentThread'](_0x1d3b00);if(!_0x1e6b9a['isResolved'])throw new _0x3c6477('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1d3b00});if(_0x1e6b9a['resolvedBy']=null,_0x1e6b9a['resolvedAt']=null,_0x5cf1a8||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x49ce1c=this['context']['plugins']['get']('PendingActions'),_0x4d8f40=_0x49ce1c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x882747,'threadId':_0x1d3b00})['then'](()=>_0x49ce1c['remove'](_0x4d8f40))['catch'](_0x289636=>{throw console['error'](_0x289636),new _0x3c6477('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x58d43a,isFromAdapter:_0x15fbd0}){const _0x4ee5c3=this['getCommentThread'](_0x58d43a);if(!_0x4ee5c3)throw new _0x3c6477('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x58d43a),this['_threads']['delete'](_0x58d43a),!_0x4ee5c3['isSubmitted']||_0x15fbd0||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1121dc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x46c31c}=_0x4ee5c3,_0x44d418=_0x1121dc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x46c31c,'threadId':_0x58d43a})['then'](()=>_0x1121dc['remove'](_0x44d418))['catch'](_0x2b709d=>{throw console['error'](_0x2b709d),new _0x3c6477('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x42585f,unlinkedAt:_0x46afd9,context:_0x40857a,attributes:_0x28d61f,isFromAdapter:_0x33b0a8}){if('string'!=typeof _0x42585f)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x42585f});if(!this['hasCommentThread'](_0x42585f))throw new _0x3c6477('commentsrepository-missing-comment-thread',null,{'threadId':_0x42585f});const _0x145963=this['getCommentThread'](_0x42585f);let _0x1115bb=!0x1;if(void 0x0!==_0x40857a&&_0x145963['context']!==_0x40857a&&(_0x145963['context']=_0x40857a,_0x1115bb=!0x0),void 0x0!==_0x46afd9&&_0x145963['unlinkedAt']!==_0x46afd9&&(_0x145963['unlinkedAt']=_0x46afd9,_0x1115bb=!0x0),_0x28d61f&&!At(_0x28d61f,_0x145963['attributes'])&&(_0x145963['attributes']=_0x28d61f,_0x1115bb=!0x0),!_0x1115bb)return Promise['resolve']();if(!_0x145963['isSubmitted']||_0x33b0a8||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x42e85c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2a0908}=_0x145963,_0x1074d5=_0x42e85c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x2a0908,'threadId':_0x42585f,'context':_0x40857a,'unlinkedAt':_0x46afd9,'attributes':_0x28d61f})['then'](()=>_0x42e85c['remove'](_0x1074d5))['catch'](_0x5e348b=>{throw console['error'](_0x5e348b),new _0x3c6477('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x11ae15){const _0x570647=this['context']['plugins']['get'](y),_0x2cfffe=this['getCommentThread'](_0x11ae15);if(_0x2cfffe['_isAttached']=!0x1,this['_threadToController']['has'](_0x2cfffe)){const _0x1995a7=this['_threadToController']['get'](_0x2cfffe),_0x10bc0a=_0x1995a7['view'],_0x2b357b=_0x570647['getByInnerView'](_0x10bc0a);this['_threadToController']['delete'](_0x2cfffe),this['_viewToController']['delete'](_0x10bc0a),_0x2b357b&&_0x570647['remove'](_0x2b357b),_0x1995a7['destroy'](),_0x10bc0a['destroy']()['then'](()=>{this['_unbindEditors'](_0x10bc0a);});}}['_updateActiveAnnotation']({threadId:_0x2e8796,resolvedAt:_0x2b44fd,unlinkedAt:_0x4434e2}){const _0x4a3617=!!_0x2b44fd,_0x4b5694=this['context']['plugins']['get'](y),_0x498924=this['getCommentThread'](_0x2e8796);if(this['_threadToController']['has'](_0x498924)){const _0x455804=this['_threadToController']['get'](_0x498924)['view'],_0x41bb97=_0x4b5694['getByInnerView'](_0x455804);_0x41bb97&&(_0x4a3617&&_0x4b5694['_removeActiveAnnotation'](_0x41bb97),_0x4434e2?_0x41bb97['isVisible']=!0x1:_0x41bb97['refreshVisibility']());}}['_getExternalAuthor'](_0x4f3af6){const _0x1e876e=this['context']['plugins']['get'](it),_0x4145c1=It('external:'+_0x4f3af6),_0x538cf2=_0x1e876e['getUser'](_0x4145c1);return _0x538cf2||_0x1e876e['addUser']({'id':_0x4145c1,'name':_0x4f3af6});}['_createNewComment']({threadId:_0xc2fa6a,commentId:_0x533052=_0x17ea48(),content:_0x4fa64f,authorId:_0x1b9ea6,createdAt:_0x1d823f,attributes:_0x418f17}){if('string'!=typeof _0x533052)throw new _0x3c6477('commentsrepository-invalid-commentid');if('string'!=typeof _0x1b9ea6)throw new _0x3c6477('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4fa64f||!_0x4fa64f['trim']())throw new _0x3c6477('commentsrepository-invalid-comment-content');const _0x2eae58=this['context']['plugins']['get'](it)['getUser'](_0x1b9ea6);if(!_0x2eae58)throw new _0x3c6477('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1b9ea6});let _0x588a27=null,_0x36c41d=_0x1d823f;return _0x418f17?.['@external']&&(_0x588a27=this['_getExternalAuthor'](_0x418f17['@external']['authorName']),_0x36c41d=new Date(_0x418f17['@external']['createdAt'])),new wi(this,{'threadId':_0xc2fa6a,'id':_0x533052,'author':_0x588a27||_0x2eae58,'creator':_0x2eae58,'content':_0x4fa64f,'createdAt':_0x1d823f,'authoredAt':_0x36c41d,'attributes':_0x418f17});}['_addComment'](_0x60d2c8){let {threadId:_0x33f5f7,content:_0x484af0,attributes:_0x43f2d5,isFromAdapter:_0x51686f}=_0x60d2c8;const _0x25cc02=this['getCommentThread'](_0x60d2c8['threadId']);if(!_0x25cc02)throw new _0x3c6477('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x1b0126=this['_createNewComment'](_0x60d2c8),{id:_0x546403}=_0x1b0126;if(_0x25cc02['_add'](_0x1b0126),_0x51686f||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x25cc02['isSubmitted'])return Promise['resolve']();const _0x32ffca=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1845b0}=_0x25cc02,_0x41b556=_0x32ffca['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x43f2d5||(_0x43f2d5={}),this['adapter']['addComment']({'channelId':_0x1845b0,'threadId':_0x33f5f7,'commentId':_0x546403,'content':_0x484af0,'attributes':_0x43f2d5})['then'](_0xbde51c=>{_0x32ffca['remove'](_0x41b556),_0xbde51c&&this['_updateComment']({'channelId':_0x1845b0,'threadId':_0x33f5f7,'commentId':_0x546403,'createdAt':_0xbde51c['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2966d9=>{throw console['error'](_0x2966d9),new _0x3c6477('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x10838c,commentId:_0x27eda2,content:_0x328e2d,createdAt:_0x25e1eb,attributes:_0x342c07,isFromAdapter:_0x3d5cfe}){if(void 0x0!==_0x328e2d&&('string'!=typeof _0x328e2d||!_0x328e2d['trim']()['length']))throw new _0x3c6477('commentsrepository-update-comment-invalid-content');const _0x4efa7b=this['getCommentThread'](_0x10838c),_0x1cd80f=_0x4efa7b['getComment'](_0x27eda2);if(!_0x1cd80f)throw new _0x3c6477('commentsrepository-update-missing-comment',this);let _0x2b21b7=!0x1;if(_0x328e2d&&_0x328e2d!==_0x1cd80f['content']&&(_0x1cd80f['isEditable']||_0x3d5cfe)&&(_0x1cd80f['content']=_0x328e2d,_0x2b21b7=!0x0),_0x25e1eb&&_0x25e1eb!==_0x1cd80f['createdAt']&&(_0x1cd80f['createdAt']=_0x25e1eb,_0x1cd80f['attributes']&&_0x1cd80f['attributes']['@external']||(_0x1cd80f['authoredAt']=_0x25e1eb),_0x2b21b7=!0x0),_0x342c07&&!At(_0x342c07,_0x1cd80f['attributes'])&&(_0x1cd80f['attributes']=_0x342c07,_0x2b21b7=!0x0),!_0x2b21b7)return Promise['resolve']();if(_0x4efa7b['fire']('commentUpdated'),_0x3d5cfe||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x111442=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3a6755}=this['getCommentThread'](_0x1cd80f['threadId']),_0x2c98cd=_0x111442['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x3a6755,'threadId':_0x10838c,'commentId':_0x27eda2,'content':_0x328e2d,'attributes':_0x342c07})['then'](()=>_0x111442['remove'](_0x2c98cd))['catch'](_0x35f1fa=>{throw console['error'](_0x35f1fa),new _0x3c6477('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x84d134,commentId:_0x2e24db,isFromAdapter:_0x40a2fd}){const _0x2c70d5=this['getCommentThread'](_0x84d134),_0x206aed=_0x2c70d5['getComment'](_0x2e24db);if(!_0x206aed)throw new _0x3c6477('commentsrepository-remove-missing-comment',this);if(_0x2c70d5['_remove'](_0x206aed),_0x40a2fd||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x148fac=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3ae6a4}=_0x2c70d5,_0x5cd42d=_0x148fac['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3ae6a4,'threadId':_0x84d134,'commentId':_0x2e24db})['then'](()=>_0x148fac['remove'](_0x5cd42d))['catch'](_0x4f2648=>{throw console['error'](_0x4f2648),new _0x3c6477('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x1f5238(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x5a0583,_0x4f07b3){super();const _0x201fcc=_0x4f07b3['isResolvable'];this['channelId']=_0x4f07b3['channelId'],this['id']=_0x4f07b3['id'],this['comments']=new _0xa3f224(),this['_repository']=_0x5a0583,this['_isAttached']=!0x1,this['_isSubmitted']=_0x4f07b3['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x5a0583,'_permissions',_0x5a0583,'_readOnlyChannels',()=>_0x5a0583['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x5a0583,'_permissions',()=>_0x5a0583['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x5a0583,'_permissions',()=>{const _0x53f8d2=_0x5a0583['getPermissions'](this['channelId']);return _0x53f8d2['write']||_0x53f8d2['admin'];}),this['bind']('isResolvable')['to'](_0x5a0583,'_permissions',()=>_0x201fcc&&_0x5a0583['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x4f07b3['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1da1ec,_0x2f4cd1)=>_0x1da1ec?_0x2f4cd1?_0x1da1ec<_0x2f4cd1?_0x1da1ec:_0x2f4cd1:_0x1da1ec:_0x2f4cd1),this['set']('unlinkedAt',_0x4f07b3['unlinkedAt']||null),this['set']('resolvedAt',_0x4f07b3['resolvedAt']||null),this['set']('resolvedBy',_0x4f07b3['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5eb5fe=>!!_0x5eb5fe),this['set']('attributes',_0x4f07b3['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x5e3a9f,_0x4ff23f)=>_0x5e3a9f+_0x4ff23f['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x511c77,id:_0x5008ae}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x511c77),{'channelId':_0x511c77,'threadId':_0x5008ae});}['setUnlinkedAt'](_0x219256){this['_update']({'unlinkedAt':_0x219256});}['resolve']({resolvedAt:_0x50fc2c=new Date(),resolvedBy:_0x2fd23e='',isFromAdapter:_0x2c9879=!0x1}={}){const _0x1f4dc8=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x23a640,id:_0x172879}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x23a640),{'channelId':_0x23a640,'threadId':_0x172879,'resolvedAt':_0x50fc2c,'resolvedBy':_0x2fd23e||_0x1f4dc8['id'],'isFromAdapter':_0x2c9879});}['reopen']({isFromAdapter:_0x336e1a=!0x1}={}){const {channelId:_0x22443f,id:_0x536658}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x22443f),{'channelId':_0x22443f,'threadId':_0x536658,'isFromAdapter':_0x336e1a});}['setContext'](_0x3db608){this['context']||this['_update']({'context':_0x3db608});}['setAttribute'](_0x38ecd0,_0x5e7d9c){const _0x47ab22=wt(this['attributes']);yt(_0x47ab22,_0x38ecd0,_0x5e7d9c),this['_update']({'attributes':_0x47ab22});}['removeAttribute'](_0x2cc119){const _0x3ac3d1=wt(this['attributes']);Ct(_0x3ac3d1,_0x2cc119),this['_update']({'attributes':_0x3ac3d1});}['remove']({isFromAdapter:_0x4c120e=!0x1}={}){const {channelId:_0x36d427,id:_0x2458fc}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x36d427),{'channelId':_0x36d427,'threadId':_0x2458fc,'isFromAdapter':_0x4c120e});}['attachTo'](_0x57facc){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x57facc});}['addComment'](_0x4645a2){const {channelId:_0xba1ad9,id:_0x165753}=this;this['_repository']['fire'](Nt('addComment',_0xba1ad9,_0x165753),Object['assign']({'channelId':_0xba1ad9,'threadId':_0x165753},_0x4645a2));}['getComment'](_0x30a5ca){if('string'!=typeof _0x30a5ca)throw new _0x3c6477('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x30a5ca});return this['comments']['get'](_0x30a5ca);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x498ed4=>_0x498ed4['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5e3b3c){return this['listenTo'](_0x5e3b3c,'change:authoredAt',()=>{const _0x5da82b=this['_findOptimalIndex'](_0x5e3b3c),_0x5158be=this['comments'];_0x5da82b-0x1!=_0x5158be['getIndex'](_0x5e3b3c)&&_0x5da82b+0x1!=_0x5158be['getIndex'](_0x5e3b3c)&&(this['_remove'](_0x5e3b3c),this['_add'](_0x5e3b3c));}),this['comments']['add'](_0x5e3b3c,this['_findOptimalIndex'](_0x5e3b3c));}['_update'](_0x3f8820){const {channelId:_0x42dd8a,id:_0x56f387}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x42dd8a),{..._0x3f8820,'channelId':_0x42dd8a,'threadId':_0x56f387});}['_remove'](_0xe94759){return this['stopListening'](_0xe94759),_0xe94759['destroy'](),this['comments']['remove'](_0xe94759);}['_findOptimalIndex'](_0x329414){const _0x476ae0=this['comments']['find'](_0x3990b4=>new Date(_0x3990b4['authoredAt'])['getTime']()>new Date(_0x329414['authoredAt'])['getTime']());return _0x476ae0?this['comments']['getIndex'](_0x476ae0):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x1f5238(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5788fb,_0x7f65da){super();const _0x440b48=_0x5788fb['context']['plugins']['get'](it)['me'],_0x2330b4=_0x5788fb['getCommentThread'](_0x7f65da['threadId']),_0x2046de=0x0===_0x2330b4['comments']['length'],_0x49d43c=_0x440b48===_0x7f65da['author'];this['id']=_0x7f65da['id'],this['threadId']=_0x7f65da['threadId'],this['author']=_0x7f65da['author'],this['creator']=_0x7f65da['creator'],this['isExternal']=Boolean(_0x7f65da['attributes']&&_0x7f65da['attributes']['@external']),this['set']('content',_0x7f65da['content']),this['createdAt']=_0x7f65da['createdAt']||new Date(),this['set']('authoredAt',_0x7f65da['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2330b4,'resolvedAt'),this['set']('attributes',_0x7f65da['attributes']||{}),this['bind']('isEditable')['to'](_0x5788fb,'_permissions',()=>{const _0x14dadc=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['write'],_0x57d18c=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['modifyAll'];return _0x49d43c&&_0x14dadc||!_0x49d43c&&_0x57d18c;}),this['bind']('isRemovable')['to'](_0x2330b4,'isRemovable',_0x5788fb,'_permissions',_0x262c76=>{const _0x17a3b0=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['write'],_0x50d7f1=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['modifyAll'];return _0x49d43c&&_0x17a3b0||_0x262c76&&_0x2046de||!_0x49d43c&&_0x50d7f1&&!_0x2046de;}),this['bind']('isReadOnly')['to'](_0x2330b4,'isReadOnly'),this['_repository']=_0x5788fb;}get['weight'](){return Math['max'](function(_0x428f50){const _0x183dde=document['createElement']('div');return _0x183dde['innerHTML']=_0x428f50,_0x183dde['textContent']['length'];}(this['content']),0xc8);}['update'](_0x315250){const {threadId:_0x588bd6,id:_0x1d7c66}=this;if(!this['_repository']['hasCommentThread'](_0x588bd6))throw new _0x3c6477('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x5cc2df}=this['_repository']['getCommentThread'](_0x588bd6);this['_repository']['fire'](Nt('updateComment',_0x5cc2df,_0x588bd6),{'channelId':_0x5cc2df,'threadId':_0x588bd6,'commentId':_0x1d7c66,..._0x315250});}['setAttribute'](_0x371704,_0x56a4ce){const _0x289acc=wt(this['attributes']);yt(_0x289acc,_0x371704,_0x56a4ce),this['update']({'attributes':_0x289acc});}['removeAttribute'](_0x1226c6){const _0x42065f=wt(this['attributes']);Ct(_0x42065f,_0x1226c6),this['update']({'attributes':_0x42065f});}['remove'](_0x417d09={}){if(!_0x417d09['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x2b12f8,id:_0x5ebe76}=this;if(!this['_repository']['hasCommentThread'](_0x2b12f8))throw new _0x3c6477('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1238ae}=this['_repository']['getCommentThread'](_0x2b12f8);this['_repository']['fire'](Nt('removeComment',_0x1238ae,_0x2b12f8),{'channelId':_0x1238ae,'threadId':_0x2b12f8,'commentId':_0x5ebe76,..._0x417d09});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x2b7e56,..._0x185df7){for(const _0x2480fe of _0x185df7)void 0x0!==_0x2480fe&&(_0x2b7e56+=':'+String(_0x2480fe));return _0x2b7e56;}class ot extends _0x35ae39{constructor(_0x37c90d){super(_0x37c90d),this['set']('hasContent',!0x1);}['refresh'](){const _0x2e48ad=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x1cf661 of _0x2e48ad['getRanges']())if(this['_hasContent'](_0x1cf661))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x4216a3=_0x17ea48(),ranges:_0x3aa76f,comment:_0x5d80c2}={}){const _0x18485f=this['editor']['model'],_0x370dbe=_0x3aa76f??Array['from'](_0x18485f['document']['selection']['getRanges']()),_0x3628a4=[];for(const _0x4ee9bf of _0x370dbe)this['_hasContent'](_0x4ee9bf)&&_0x3628a4['push'](this['_trimToContent'](_0x4ee9bf));if(!_0x3628a4['length'])throw new _0x3c6477('addcommentthreadcommand-incorrect-ranges',null);_0x5d80c2&&this['_createCommentThread'](_0x4216a3,_0x5d80c2),this['_createMarkersFromRanges'](_0x4216a3,_0x3628a4,!!_0x5d80c2);}['_createMarkersFromRanges'](_0xada9e1,_0x24d18b,_0xadbbde){this['editor']['model']['change'](_0x273996=>{for(const _0x577a83 of _0x24d18b){const _0x517f4f=_0x17ea48()['substr'](0x1,0x5),_0x4ed0e1='comment:'+_0xada9e1+':'+_0x517f4f;_0x273996['addMarker'](_0x4ed0e1,{'range':_0x577a83,'usingOperation':_0xadbbde,'affectsData':_0xadbbde});}});}['_createCommentThread'](_0x5649c4,_0x34f55c){const _0x4facef=this['editor']['plugins']['get']('CommentsRepository'),_0x3741b9=this['editor']['config']['get']('collaboration.channelId'),_0x152bd7=this['editor']['plugins']['get']('Users')['me'];if(!_0x152bd7)throw new _0x3c6477('addcommentthreadcommand-user-not-found',null);_0x4facef['addCommentThread']({'threadId':_0x5649c4,'channelId':_0x3741b9,'comments':[{'authorId':_0x152bd7['id'],'content':_0x34f55c,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x29b394){for(const _0x45944d of _0x29b394['getItems']())if(this['_itemIsContent'](_0x45944d))return!0x0;return!0x1;}['_itemIsContent'](_0xe3d741){return _0xe3d741['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xe3d741)&&!_0xe3d741['is']('element','tableCell');}['_trimToContent'](_0x2092e7){const _0x2bab8a=_0x522ab3=>!this['_itemIsContent'](_0x522ab3['item']),_0x8323ea=_0x2092e7['start']['getLastMatchingPosition'](_0x2bab8a),_0x5cfed6=_0x2092e7['end']['getLastMatchingPosition'](_0x2bab8a,{'direction':'backward'});return this['editor']['model']['createRange'](_0x8323ea,_0x5cfed6);}}class b extends _0x23cf76{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48cf85){super(_0x48cf85),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x1d7fbd=this['editor'],_0xd590d9=_0x1d7fbd['model']['document']['selection'],_0x3006a8=_0x5218cd(()=>this['refreshSelectedViews'](),0xa);_0xd590d9['on']('change:range',(_0x3b1edf,_0x2784b8)=>{_0x2784b8['directChange']&&(_0x3006a8['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x1d7fbd['editing']['view']['document'],'change:isFocused',(_0x2c0640,_0x20b52a,_0xc66540)=>{_0xc66540&&_0x3006a8();}),this['listenTo'](_0x1d7fbd['ui']['focusTracker'],'change:isFocused',(_0x11c6e7,_0x280d8a,_0x4e4655)=>{_0x4e4655||this['fire']('blur',{'isAnnotationTracked':_0x28ecca=>this['_editorAnnotationsData']['has'](_0x28ecca['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x11cc9a){if(this['_editorAnnotations']['has'](_0x11cc9a['view']))return;this['_editorAnnotations']['add'](_0x11cc9a['view']),this['editor']['ui']['focusTracker']['add'](_0x11cc9a['view']['element']);const _0x223b39=this['editor']['plugins']['get'](y);this['listenTo'](_0x223b39['collection'],'remove',(_0x14b6f3,_0x1a0d56)=>{this['editor']['ui']['focusTracker']['remove'](_0x1a0d56['view']['element']),this['_editorAnnotations']['delete'](_0x1a0d56['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x54c985){if('function'!=typeof _0x54c985)throw new _0x3c6477('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x54c985);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2b7184,annotations:_0x5e596f}){const _0x18a8a8=[],_0xb46670=this['editor']['model']['document']['selection'],_0xca5aee=Array['from'](_0xb46670['getRanges']());for(const [_0x12e503,_0x130198]of this['_editorAnnotationsData']){const _0x4d1769=_0x152124(_0x130198),_0x3f15f8=_0x5e596f['getByInnerView'](_0x12e503);_0x4d1769&&_0x3f15f8&&_0x18a8a8['push']({'annotation':_0x3f15f8,'range':_0x4d1769});}function _0x152124(_0x491d79){for(const _0x59b8d8 of _0x491d79)for(const _0x44b5e6 of _0xca5aee)if(_0x59b8d8['containsRange'](_0x44b5e6,!_0xb46670['isCollapsed']))return _0x59b8d8;return null;}return _0x18a8a8['sort']((_0x4b02a8,_0x857414)=>{const _0x288355=_0x4b02a8['range'],_0x28873e=_0x857414['range'];if(!_0x288355['isEqual'](_0x28873e)){if(_0x288355['containsRange'](_0x28873e,!0x0))return 0x1;if(_0x28873e['containsRange'](_0x288355,!0x0))return-0x1;}return _0x4b02a8['annotation']==_0x2b7184?-0x1:_0x857414['annotation']==_0x2b7184?0x1:0x0;})['map'](_0x37669c=>_0x37669c['annotation']);}get['_editorAnnotationsData'](){const _0xcf7ad4=new Map();for(const _0x1723c1 of Array['from'](this['_dataCollectors']))for(const [_0x2bda08,_0x5f1407]of _0x1723c1())_0xcf7ad4['set'](_0x2bda08,_0x5f1407);return _0xcf7ad4;}}class st extends _0x23cf76{['afterInit'](){const _0x263123=this['editor'];if(!_0x263123['plugins']['has']('RestrictedEditingModeEditing'))return;_0x263123['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x23cf76{constructor(_0x5e41a2){super(_0x5e41a2),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x195a7f=this['editor'],_0x227c1d=_0x195a7f['commands']['get']('importWord'),_0x5ce2ef=_0x195a7f['plugins']['get'](it);_0x227c1d&&(_0x227c1d['on']('execute',(_0x1baa57,[,_0x39e399])=>{_0x39e399['collaboration_features']={'comments':!0x0,'user_id':_0x5ce2ef['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x227c1d,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4edc1f,_0x4fbaae){const {comment_threads:_0x34af58}=_0x4fbaae;_0x34af58&&_0x34af58['forEach'](({thread_id:_0x528b22,comments:_0x5a5a9d,is_resolved:_0x35b69c})=>{const _0x14cc4b=new Date(),_0xce86b6=_0x5a5a9d['map'](({author:_0x1d6ab0,content:_0x30ffac,created_at:_0x32ff4f})=>({'content':_0x30ffac,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x14cc4b,'attributes':{'@external':{'authorName':_0x1d6ab0,'createdAt':_0x32ff4f?new Date(_0x32ff4f):new Date(),'source':'importWord'}}})),_0x26491c=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x26491c,'threadId':_0x528b22,'comments':_0xce86b6,'resolvedAt':_0x35b69c?_0x14cc4b:null});});}}class at extends _0x23cf76{constructor(_0x2435c4){super(_0x2435c4),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0xc09066=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0xc09066,'contentInsertion',(_0x1521ba,_0x2a0fd5)=>this['_removeMarkersWithoutThreads'](_0x2a0fd5['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xc5e262){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xc5e262;const _0x1023d6=this['editor']['plugins']['get']('CommentsRepository');for(const _0x13ccf8 of _0xc5e262['keys']()){const [_0x58423a,_0x6f9b9d]=_0x13ccf8['split'](':');'comment'!=_0x58423a||_0x1023d6['hasCommentThread'](_0x6f9b9d)||_0xc5e262['delete'](_0x13ccf8);}return _0xc5e262;}['_registerMarkerInClipboardPipeline'](){const _0x3fe90c=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3947e1=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3947e1&&_0x3fe90c['_registerMarkerToCopy']('comment',_0x3947e1);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2d9d28){switch(_0x2d9d28){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2628d1){const _0x43f1e9=_0x2628d1['split'](':');return{'group':_0x43f1e9[0x0],'id':_0x43f1e9[0x1],'part':_0x43f1e9[0x2]};}class ut extends _0x23cf76{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1253b5,_0x2dc67f)=>{if(!_0x2dc67f['options']['showCommentHighlights'])return null;if(_0x2dc67f['options']['ignoreResolvedComments']){const {id:_0x385885}=ft(_0x1253b5['markerName']),_0x393f38=this['editor']['plugins']['get'](o);if(_0x393f38['getCommentThread'](_0x385885)?.['isResolved']&&_0x1253b5['item'])return _0x2dc67f['consumable']['consume'](_0x1253b5['item'],'addMarker:'+_0x1253b5['markerName']),_0x2dc67f['consumable']['consume'](_0x1253b5['item'],'removeMarker:'+_0x1253b5['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2fc84b=>{_0x2fc84b['on']('addMarker:comment',(_0x8e7457,_0x289a33,_0x4d51ea)=>{if(!_0x4d51ea['options']['showCommentHighlights'])return;const _0x1c1c6a=_0x289a33['item'];if(!_0x1c1c6a)return;const _0x26b0bd=_0x4d51ea['mapper']['toViewElement'](_0x1c1c6a);this['editor']['model']['schema']['isObject'](_0x1c1c6a)&&_0x26b0bd&&!_0x26b0bd['getCustomProperty']('widget')&&_0x26b0bd['is']('containerElement')&&_0x354115(_0x26b0bd,_0x4d51ea['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x29d812,{writer:_0x56a1b5,options:_0x5f7904})=>{if(!_0x5f7904['showCommentHighlights'])return null;const _0x59ddc3=_0x56a1b5['createContainerElement']('div'),_0x3ac848=_0x56a1b5['createEmptyElement']('hr');return _0x56a1b5['addClass']('ck-horizontal-line',_0x59ddc3),_0x56a1b5['insert'](_0x56a1b5['createPositionAt'](_0x59ddc3,0x0),_0x3ac848),_0x59ddc3;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x22519a,{writer:_0x504563,options:_0x307428})=>{if(!_0x307428['showCommentHighlights'])return null;const _0x14f159=_0x504563['createContainerElement']('span'),_0x3aeeea=_0x504563['createEmptyElement']('img');return _0x504563['addClass']('image-inline',_0x14f159),_0x504563['insert'](_0x504563['createPositionAt'](_0x14f159,0x0),_0x3aeeea),_0x14f159;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x23ee18,{writer:_0x40773e,options:_0x300fd3})=>{if(_0x300fd3['showCommentHighlights'])return _0x40773e['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x203a1e,_0x52523d,_0x40827b)=>{_0x40827b['options']['showCommentHighlights']&&_0x203a1e['stop']();},{'priority':'high'});}}class r extends _0x23cf76{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1601c7){super(_0x1601c7),this['set']('isThreadsLoadingPaused',!0x0),_0x1601c7['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x105d10,_0x2da998,_0x3f9167,_0x3e2dce)=>{const _0x55408d=_0x1601c7['plugins']['get'](o),_0x2d33b6=_0x3f9167?ft(_0x3f9167)['id']:null;_0x1601c7['model']['change'](()=>{if(_0x2d33b6){const _0x44e8c5=this['getAllMarkersForId'](_0x2d33b6);for(const _0x3ba241 of _0x44e8c5)_0x1601c7['editing']['reconvertMarker'](_0x3ba241);}if(_0x3e2dce){const {id:_0x11e8dc}=ft(_0x3e2dce),_0x59427a=_0x55408d['getCommentThread'](_0x11e8dc);if(_0x59427a&&_0x59427a['unlinkedAt'])return;if(_0x59427a&&!_0x59427a['isAttached'])return;const _0x11e122=this['getAllMarkersForId'](_0x11e8dc);for(const _0x527086 of _0x11e122)_0x1601c7['editing']['reconvertMarker'](_0x527086);}}),_0x2d33b6&&this['scrollToThreadMarker'](_0x2d33b6);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1592c6=this['editor'],_0xfdbc3b=_0x1592c6['plugins']['get'](o),_0x34f6cc=_0x1592c6['config']['get']('collaboration.channelId'),_0xc8f308=_0xfdbc3b['getCommentThreads']()['filter'](_0x5675aa=>_0x5675aa['channelId']!==_0x34f6cc);_0x1592c6['commands']['add']('addCommentThread',new ot(_0x1592c6)),this['listenTo'](_0x1592c6,'change:isReadOnly',(_0xe4f874,_0x4df892,_0x42f2ef)=>{_0xfdbc3b['switchReadOnly'](_0x42f2ef,_0x1592c6['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xfdbc3b,dt('addCommentThread',_0x34f6cc),(_0x2d9a2c,{threadId:_0x2222c8})=>{const _0x3a3544=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2222c8);_0x3a3544?.['unlinkedAt']&&this['_attachArchivedThread'](_0x2222c8);}),this['listenTo'](_0xfdbc3b,dt('removeCommentThread',_0x34f6cc),(_0x32b016,{threadId:_0x2c6376})=>{_0x1592c6['model']['enqueueChange']({'isUndoable':!0x1},_0x39fb0f=>{const _0xf606a8=this['getAllMarkersForId'](_0x2c6376);for(const _0x1da15a of _0xf606a8)_0x39fb0f['removeMarker'](_0x1da15a);});}),this['listenTo'](_0xfdbc3b,dt('resolveCommentThread',_0x34f6cc),(_0x4697a9,{threadId:_0x1dc2d7})=>{(this['_reconvertMarkers'](_0x1dc2d7),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1dc2d7)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xfdbc3b,dt('reopenCommentThread',_0x34f6cc),(_0xa19219,{threadId:_0xcffcd9})=>{this['_reconvertMarkers'](_0xcffcd9);},{'priority':'low'}),this['listenTo'](_0xfdbc3b,dt('addComment',_0x34f6cc),(_0x23000b,{threadId:_0x417bb0,isFromAdapter:_0x531da4})=>{const _0x213db6=this['getAllMarkersForId'](_0x417bb0);if(_0x531da4||0x0==_0x213db6['length']||!_0xfdbc3b['hasCommentThread'](_0x417bb0))return;0x1===_0xfdbc3b['getCommentThread'](_0x417bb0)['length']&&_0x1592c6['model']['enqueueChange']({'isUndoable':!0x1},_0x496cb2=>{for(const _0x56da0f of _0x213db6)_0x496cb2['updateMarker'](_0x56da0f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0xc8f308);}['afterInit'](){!async function(_0x108df0){const _0x58ffaa=_0x3ace0a([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x21240e=0x73460ab3,_0x5b5216=0x73418983^_0x21240e,_0x4b2ad0=window[_0x3ace0a([0x44,0x61,0x74,0x65])][_0x3ace0a([0x6e,0x6f,0x77])](),_0x513cfe=_0x108df0[_0x3ace0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30a19f=new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdaa46b=>{_0x513cfe[_0x3ace0a([0x6f,0x6e,0x63,0x65])](_0x3ace0a([0x72,0x65,0x61,0x64,0x79]),_0xdaa46b);}),_0x5df680={[_0x3ace0a([0x6b,0x74,0x79])]:_0x3ace0a([0x45,0x43]),[_0x3ace0a([0x75,0x73,0x65])]:_0x3ace0a([0x73,0x69,0x67]),[_0x3ace0a([0x63,0x72,0x76])]:_0x3ace0a([0x50,0x2d,0x32,0x35,0x36]),[_0x3ace0a([0x78])]:_0x3ace0a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3ace0a([0x79])]:_0x3ace0a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3ace0a([0x61,0x6c,0x67])]:_0x3ace0a([0x45,0x53,0x32,0x35,0x36])},_0x1d83fb=_0x513cfe[_0x3ace0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ace0a([0x67,0x65,0x74])](_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52b5f8(){let _0x2d39c5,_0x171cfc=null,_0x45fe3a=null;try{if(_0x1d83fb==_0x3ace0a([0x47,0x50,0x4c]))return _0x3ace0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d39c5=_0x56998c(),!_0x2d39c5)return _0x3ace0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d39c5[_0x3ace0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45fe3a=_0x387667(_0x2d39c5[_0x3ace0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d39c5[_0x3ace0a([0x6a,0x74,0x69])])),await _0x33ebb3()?_0x5d37cc()?_0x2d8034()?_0x3ace0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5969aa()?(_0x2d39c5[_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ace0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x171cfc=_0x591a5a(_0x3ace0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b0e1f()):_0x3ace0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ace0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ace0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ace0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d8034(){const _0x1bccdb=[_0x3ace0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ace0a([0x74,0x72,0x69,0x61,0x6c])][_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d39c5[_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b2ad0/0x3e8:0xe10*_0x5b5216;return _0x2d39c5[_0x3ace0a([0x65,0x78,0x70])]<_0x1bccdb;}function _0x5d37cc(){const _0x596e0f=_0x2d39c5[_0x3ace0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x596e0f)return!0x1;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x2a])))return!0x0;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x43,0x4d,0x54])))return!0x0;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x2cf891())return!0x0;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x52,0x43,0x4d,0x54]))){if(_0x203efe())return!0x0;if(_0xe6cf55()||_0xcedb0f())return!0x0;}return!0x1;}function _0x5969aa(){const _0x5e6c24=_0x2d39c5[_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e6c24||0x0==_0x5e6c24[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d1707}=new URL(window[_0x3ace0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e6c24[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1707))return!0x0;const _0x307036=_0x5d1707[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e]));return _0x5e6c24[_0x3ace0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21f3b3=>_0x21f3b3[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x2a])))[_0x3ace0a([0x6d,0x61,0x70])](_0x3d3883=>_0x3d3883[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e])))[_0x3ace0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48ddac=>_0x48ddac[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x307036[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ace0a([0x6d,0x61,0x70])](_0x560ad2=>Array(_0x307036[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x560ad2[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ace0a([0x66,0x69,0x6c,0x6c])](_0x560ad2[0x0]===_0x3ace0a([0x2a])?_0x3ace0a([0x2a]):'')[_0x3ace0a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x560ad2))[_0x3ace0a([0x73,0x6f,0x6d,0x65])](_0x3956e5=>_0x307036[_0x3ace0a([0x65,0x76,0x65,0x72,0x79])]((_0x5cc550,_0x48ecdf)=>_0x3956e5[_0x48ecdf]===_0x5cc550||_0x3956e5[_0x48ecdf]===_0x3ace0a([0x2a])));}function _0x5b0e1f(){return _0x171cfc&&_0x45fe3a?new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c17a8,_0x3f2c79)=>{_0x171cfc[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x4c17a8,_0x3f2c79),_0x45fe3a[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x557b40=>{_0x557b40!=_0x3ace0a([0x56,0x61,0x6c,0x69,0x64])&&_0x4c17a8(_0x557b40);},_0x3f2c79);}):_0x171cfc||_0x45fe3a||_0x3ace0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x387667(_0x1facca,_0x25d66a){return new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7018=>{if(_0x8d1820())return _0x3b7018(_0x3ace0a([0x56,0x61,0x6c,0x69,0x64]));_0x11be84(),_0x513cfe[_0x3ace0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ace0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43f051=!0x1;const _0x14088c=_0x17ea48();function _0x344c5a(_0xe0270b){return!!_0xe0270b&&(typeof _0xe0270b===_0x3ace0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe0270b===_0x3ace0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe0270b[_0x3ace0a([0x74,0x68,0x65,0x6e])]===_0x3ace0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe0270b[_0x3ace0a([0x63,0x61,0x74,0x63,0x68])]===_0x3ace0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1434f5(_0x5fce96){_0x312ff2(_0x5fce96)[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x215b5d=>{if(!_0x215b5d||_0x215b5d[_0x3ace0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ace0a([0x6f,0x6b]))return _0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f7ac7(_0xd7559(_0x14088c+_0x25d66a))!=_0x215b5d[_0x3ace0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ace0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x3d4094=>(_0x51f17e(),_0x3d4094),()=>{const _0x3fc833=_0x211bf7();return null==_0x3fc833?(_0x51f17e(),_0x3ace0a([0x56,0x61,0x6c,0x69,0x64])):_0x3ace0a(_0x4b2ad0-_0x3fc833>(0x574a8eb3^_0x21240e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x3b7018)[_0x3ace0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b7018(_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x268401=0x7370e433^_0x21240e;function _0x51f17e(){const _0x4a6dc7=_0x3ace0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f7ac7(_0xd7559(_0x1facca)),_0x508e49=_0x2936db(_0x2f7ac7(window[_0x3ace0a([0x4d,0x61,0x74,0x68])][_0x3ace0a([0x63,0x65,0x69,0x6c])](_0x4b2ad0/_0x268401)));window[_0x3ace0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ace0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a6dc7,_0x508e49);}function _0x211bf7(){const _0x15d7c5=_0x3ace0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f7ac7(_0xd7559(_0x1facca)),_0x55b245=window[_0x3ace0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ace0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15d7c5);return _0x55b245?window[_0x3ace0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2936db(_0x55b245),0x10)*_0x268401:null;}function _0x312ff2(_0x1a5451){return new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44310c,_0x11627f)=>{_0x1a5451[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x44310c,_0x11627f),window[_0x3ace0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11627f,0x7347de73^_0x21240e);});}}_0x513cfe[_0x3ace0a([0x6f,0x6e])](_0x3ace0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x560c9c,_0x1cc0b0)=>{if(_0x1cc0b0[0x0]!=_0x1facca)return _0x3b7018(_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cc0b0[0x1]={..._0x1cc0b0[0x1],[_0x3ace0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14088c};},{[_0x3ace0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ace0a([0x68,0x69,0x67,0x68])}),_0x513cfe[_0x3ace0a([0x6f,0x6e])](_0x3ace0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3884c3=>{_0x344c5a(_0x3884c3[_0x3ace0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43f051=!0x0,_0x1434f5(_0x3884c3[_0x3ace0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ace0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ace0a([0x6c,0x6f,0x77])}),_0x30a19f[_0x3ace0a([0x74,0x68,0x65,0x6e])](()=>{_0x43f051||_0x3b7018(_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8d1820(){return _0x513cfe[_0x3ace0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ace0a([0x76,0x69,0x65,0x77])][_0x3ace0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ace0a([0x61,0x75,0x74,0x6f]);}function _0x11be84(){_0x513cfe[_0x3ace0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ace0a([0x76,0x69,0x65,0x77])][_0x3ace0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ace0a([0x61,0x75,0x74,0x6f]);}}function _0x591a5a(_0x661c12){const _0x2f714d=[new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x511ee2=>setTimeout(_0x511ee2,0x734f347f^_0x21240e)),_0x30a19f[_0x3ace0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ea580=>{let _0x590e5e=0x0;_0x513cfe[_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ace0a([0x6f,0x6e])](_0x3ace0a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24e3f7,_0x515fd8)=>{_0x515fd8[0x0][_0x3ace0a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x590e5e++,_0x590e5e==(0x73460f5b^_0x21240e)&&(_0x5ea580(),_0x24e3f7[_0x3ace0a([0x6f,0x66,0x66])]());});}))];return window[_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ace0a([0x72,0x61,0x63,0x65])](_0x2f714d)[_0x3ace0a([0x74,0x68,0x65,0x6e])](()=>_0x661c12);}async function _0x51e446(){await _0x30a19f,_0x513cfe[_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ace0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47844c,_0x513cfe[_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ace0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47844c,_0x513cfe[_0x3ace0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cf891(){return window[_0x3ace0a([0x67,0x6c,0x6f,0x62])]&&window[_0x3ace0a([0x67,0x6c,0x6f,0x62])][_0x3ace0a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x203efe(){return _0x30508b(_0x3ace0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x17de33(_0x3ace0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ace0a([0x73,0x74,0x61,0x74,0x65])]==_0x3ace0a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe6cf55(){return _0x30508b(_0x3ace0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0xcedb0f(){return _0x30508b(_0x3ace0a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3fcd52(_0x3949c9){const _0x263f17=_0x4e91ed();_0x513cfe[_0x263f17]=_0x3ace0a([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3949c9,_0x3949c9!=_0x3ace0a([0x56,0x61,0x6c,0x69,0x64])&&_0x51e446();}function _0x4e91ed(){const _0x1608db=window[_0x3ace0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ace0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ace0a([0x6e,0x6f,0x77])]())[_0x3ace0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ace0a([0x2e]),'');let _0x28da7a=_0x3ace0a([0x4b]);for(let _0x5c4779=0x0;_0x5c4779<_0x1608db[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c4779+=0x2){let _0x30d80c=window[_0x3ace0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1608db[_0x3ace0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c4779,_0x5c4779+0x2));_0x30d80c>=_0x58ffaa[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30d80c-=_0x58ffaa[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28da7a+=_0x58ffaa[_0x30d80c];}return _0x28da7a;}function _0x56998c(){const _0x3c88ee=_0x1d83fb[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e]));if(0x3!=_0x3c88ee[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16a867(_0x3c88ee[0x1]);function _0x16a867(_0x1fb6e8){const _0x24354a=_0x5a6c2c(_0x1fb6e8);return _0x24354a&&_0x54d4d1()?_0x24354a:null;function _0x54d4d1(){const _0x5f5a95=_0x24354a[_0x3ace0a([0x6a,0x74,0x69])],_0x5691ea=window[_0x3ace0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f5a95[_0x3ace0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f5a95[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39fb37={..._0x24354a,[_0x3ace0a([0x6a,0x74,0x69])]:_0x5f5a95[_0x3ace0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f5a95[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39fb37[_0x3ace0a([0x76,0x63])],_0xd7559(_0x39fb37)==_0x5691ea;}}}async function _0x33ebb3(){let _0x21975e=!0x0;try{const _0x17f150=_0x1d83fb[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e])),[_0x31fc4a,_0x32385f,_0x387fbe]=_0x17f150;return _0x10ec69(_0x31fc4a),await _0xe461e3(_0x31fc4a,_0x32385f,_0x387fbe),_0x21975e;}catch{return!0x1;}function _0x10ec69(_0x19bf2a){const _0x59f338=_0x5a6c2c(_0x19bf2a);_0x59f338&&_0x59f338[_0x3ace0a([0x61,0x6c,0x67])]==_0x3ace0a([0x45,0x53,0x32,0x35,0x36])||(_0x21975e=!0x1);}async function _0xe461e3(_0x3a2b2b,_0x463a2b,_0x23467a){const _0x2dae81=window[_0x3ace0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ace0a([0x66,0x72,0x6f,0x6d])](_0x9f9ae3(_0x23467a),_0x230945=>_0x230945[_0x3ace0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xfc63e=new window[(_0x3ace0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ace0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a2b2b+_0x3ace0a([0x2e])+_0x463a2b),_0x353e2b=window[_0x3ace0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ace0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x353e2b)return;const _0x4e6055=await _0x353e2b[_0x3ace0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ace0a([0x6a,0x77,0x6b]),_0x5df680,{[_0x3ace0a([0x6e,0x61,0x6d,0x65])]:_0x3ace0a([0x45,0x43,0x44,0x53,0x41]),[_0x3ace0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ace0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ace0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x353e2b[_0x3ace0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ace0a([0x6e,0x61,0x6d,0x65])]:_0x3ace0a([0x45,0x43,0x44,0x53,0x41]),[_0x3ace0a([0x68,0x61,0x73,0x68])]:{[_0x3ace0a([0x6e,0x61,0x6d,0x65])]:_0x3ace0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e6055,_0x2dae81,_0xfc63e)||(_0x21975e=!0x1);}}function _0x5a6c2c(_0x1a541b){return _0x1a541b[_0x3ace0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ace0a([0x65,0x79]))?JSON[_0x3ace0a([0x70,0x61,0x72,0x73,0x65])](_0x9f9ae3(_0x1a541b)):null;}function _0x9f9ae3(_0x10cf0f){return window[_0x3ace0a([0x61,0x74,0x6f,0x62])](_0x10cf0f[_0x3ace0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ace0a([0x2b]))[_0x3ace0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ace0a([0x2f])));}function _0xd7559(_0x28f1a0){let _0x2fd63e=0x1505;function _0x3d1ced(_0x3f6173){for(let _0x58b28c=0x0;_0x58b28c<_0x3f6173[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58b28c++){const _0x1f743f=_0x3f6173[_0x3ace0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x58b28c);_0x2fd63e=(_0x2fd63e<<0x5)+_0x2fd63e+_0x1f743f,_0x2fd63e&=_0x2fd63e;}}function _0x1264d4(_0x4ef103){Array[_0x3ace0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ef103)?_0x4ef103[_0x3ace0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1264d4):_0x4ef103&&typeof _0x4ef103==_0x3ace0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ace0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ef103)[_0x3ace0a([0x73,0x6f,0x72,0x74])]()[_0x3ace0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27f68c,_0x5d2c2d])=>{_0x3d1ced(_0x27f68c),_0x1264d4(_0x5d2c2d);}):_0x3d1ced(window[_0x3ace0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ef103));}return _0x1264d4(_0x28f1a0),_0x2fd63e>>>0x0;}function _0x2f7ac7(_0x5b22e2){return _0x5b22e2[_0x3ace0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ace0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ace0a([0x30]));}function _0x2936db(_0x35cd66){return _0x35cd66[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ace0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ace0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x30508b(_0x371dac){return _0x513cfe[_0x3ace0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ace0a([0x68,0x61,0x73])](_0x371dac);}function _0x17de33(_0x50fbf7){return _0x513cfe[_0x3ace0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ace0a([0x67,0x65,0x74])](_0x50fbf7);}function _0x47844c(){}function _0x3ace0a(_0x162aeb){return _0x162aeb['map'](_0x209c73=>String['fromCharCode'](_0x209c73))['join']('');}_0x3fcd52(await _0x52b5f8());}(this);}['destroy'](){const _0x2b2200=this['editor']['plugins']['get'](o),_0x35bd59=this['editor']['config']['get']('collaboration.channelId');for(const _0x37df35 of _0x2b2200['getCommentThreads']({'channelId':_0x35bd59}))_0x2b2200['_detachCommentThread'](_0x37df35['id']),_0x2b2200['_threads']['delete'](_0x37df35['id']);super['destroy']();}['hasMarkerForId'](_0x1ce9d9){return this['getAllMarkersForId'](_0x1ce9d9)['length']>0x0;}['getAllMarkersForId'](_0x1aaf70){const _0x215253=[];for(const _0x133044 of this['editor']['model']['markers'])_0x133044['name']['startsWith']('comment:'+_0x1aaf70)&&_0x215253['push'](_0x133044);return _0x215253;}['scrollToThreadMarker'](_0x3f1754){setTimeout(()=>{const _0x14c6d6=this['_getTargetForId'](_0x3f1754);if(!_0x14c6d6)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x3f1754&&nt({'target':_0x14c6d6[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xf1eb3){this['editor']['model']['change'](()=>{for(const _0x5bae32 of this['getAllMarkersForId'](_0xf1eb3))this['editor']['editing']['reconvertMarker'](_0x5bae32);});}['_attachArchivedThread'](_0x31f878){const _0x318d73=this['editor']['plugins']['get'](o),_0x2ed13f=this['editor']['plugins']['get'](b),_0x24879c=_0x318d73['getCommentThread'](_0x31f878);if(!_0x24879c['isAttached']){const _0x154609=_0x24879c['attachTo'](()=>this['_getTargetForId'](_0x24879c['id']));_0x2ed13f['registerAnnotation'](_0x154609),_0x24879c['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1aa97d=this['editor'],_0x22e6be=_0x1aa97d['plugins']['get'](it);_0x1aa97d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1df99d,_0x26d71b)=>{const {id:_0x4e1fe5}=ft(_0x1df99d['markerName']),_0xcc9149=_0x1aa97d['plugins']['get'](o)['getCommentThread'](_0x4e1fe5),_0x26eb90=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x4e1fe5;let _0x2a612b;if(_0xcc9149&&_0xcc9149['isResolved']&&!_0x26eb90&&_0x1df99d['item'])return _0x26d71b['consumable']['consume'](_0x1df99d['item'],'addMarker:'+_0x1df99d['markerName']),_0x26d71b['consumable']['consume'](_0x1df99d['item'],'removeMarker:'+_0x1df99d['markerName']),null;const _0x484f54=['ck-comment-marker'];return _0x26eb90&&_0x484f54['push']('ck-comment-marker--active'),_0x2a612b=_0xcc9149?.['length']?_0xcc9149['comments']['first']['author']['id']:_0x22e6be['me']['id'],{'classes':_0x484f54,'attributes':{'data-comment':_0x4e1fe5,'data-author-id':_0x2a612b}};}}),_0x1aa97d['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x17e2af,{options:_0x331ddc})=>{if(_0x331ddc['showCommentHighlights'])return null;const _0x4e6a1b=_0x1aa97d['plugins']['get'](o),_0x2c26df=_0x1aa97d['model']['markers']['get'](_0x17e2af),{id:_0x34bddb,part:_0x1cc6b7}=ft(_0x17e2af);return _0x2c26df&&!_0x2c26df['affectsData']||_0x331ddc['ignoreResolvedComments']&&_0x4e6a1b['getCommentThread'](_0x34bddb)?.['isResolved']?null:{'group':'comment','name':_0x1cc6b7?_0x34bddb+':'+_0x1cc6b7:_0x34bddb};}}),_0x1aa97d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3260f9,{writer:_0x15a401})=>_0x15a401['createElement']('$marker',{'data-name':'comment:'+_0x3260f9['getAttribute']('id')})}),_0x1aa97d['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x5c4134=this['editor'],_0x33f9f7=_0x5c4134['plugins']['get'](o),_0x41bc86=new Set(),_0x25ed98=new Set();_0x5c4134['model']['document']['registerPostFixer'](_0x46f205=>{let _0x15230e=!0x1;for(const {name:_0x31978e,data:_0x40d6ce}of _0x5c4134['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3e4dd9,id:_0x50f820}=ft(_0x31978e);let _0x18c4aa=_0x40d6ce['newRange'];if('comment'!==_0x3e4dd9||!_0x18c4aa)continue;const _0x43666b='$graveyard'===_0x18c4aa['root']['rootName'];_0x43666b||(_0x18c4aa=ht(_0x18c4aa,_0x5c4134['model']),!_0x18c4aa||_0x18c4aa['isCollapsed']||!_0x40d6ce['newRange']||_0x18c4aa['isEqual'](_0x40d6ce['newRange']))?_0x5c4134['model']['hasContent'](_0x18c4aa)&&!_0x43666b?this['isThreadsLoadingPaused']?_0x41bc86['add'](_0x31978e):this['_handleThreadMarker'](_0x31978e,_0x50f820):(_0x25ed98['add'](_0x31978e),_0x41bc86['delete'](_0x31978e),_0x46f205['removeMarker'](_0x31978e),_0x15230e=!0x0):(_0x46f205['updateMarker'](_0x31978e,{'range':_0x18c4aa}),_0x15230e=!0x0);}return _0x15230e;}),this['on']('change:isThreadsLoadingPaused',(_0x267475,_0x2aed02,_0x4fa042)=>{if(!_0x4fa042&&_0x41bc86['size'])for(const _0x1f2a59 of _0x41bc86){const {id:_0x591251}=ft(_0x1f2a59);_0x41bc86['delete'](_0x1f2a59),_0x5c4134['model']['markers']['get'](_0x1f2a59)&&this['_handleThreadMarker'](_0x1f2a59,_0x591251);}}),this['listenTo'](_0x5c4134['model']['document'],'change',()=>{for(const {name:_0xe2f669,data:{newRange:_0x313b34}}of _0x5c4134['model']['document']['differ']['getChangedMarkers']()){const {group:_0xd13067,id:_0x48e271}=ft(_0xe2f669);if('comment'!==_0xd13067)continue;const _0x1a1a6c=_0x33f9f7['getCommentThread'](_0x48e271),_0x23d8aa=this['hasMarkerForId'](_0x48e271);_0x1a1a6c&&(!_0x1a1a6c['_hasTargetInContent']&&_0x313b34&&_0x5c4134['editing']['view']['once']('render',()=>{const _0x5ad162=_0x5c4134['plugins']['get'](y),_0x405d9b=_0x33f9f7['_threadToController']['get'](_0x1a1a6c)['view'];_0x5ad162['getByInnerView'](_0x405d9b)['refreshVisibility']();},{'priority':'low'}),_0x1a1a6c['_hasTargetInContent']=_0x23d8aa||!!_0x313b34),_0x313b34||(_0x25ed98['add'](_0xe2f669),_0x41bc86['delete'](_0xe2f669));}for(const _0x227836 of _0x25ed98){const {id:_0x3aa6a2}=ft(_0x227836),_0x296baf=_0x33f9f7['getCommentThread'](_0x3aa6a2);if(_0x41bc86['delete'](_0x227836),!_0x296baf)continue;const _0xffc7d7=this['hasMarkerForId'](_0x3aa6a2);_0xffc7d7||_0x296baf['isSubmitted']?_0xffc7d7||_0x296baf['unlinkedAt']||_0x296baf['setUnlinkedAt'](new Date()):_0x296baf['remove']();}_0x25ed98['clear']();});}['_handleInitialThreads'](_0xd6267d){_0xd6267d['forEach'](_0x31b300=>{_0x31b300['unlinkedAt']&&this['_attachArchivedThread'](_0x31b300['id']);});}['_getTargetForId'](_0x2f2eb8){const _0x18129b=this['editor'],_0x4e4e16=this['getAllMarkersForId'](_0x2f2eb8);return et(_0x18129b['editing'],_0x4e4e16);}['_getTextContext'](_0x2d34c7){const _0x56914c=this['getAllMarkersForId'](_0x2d34c7);let _0x3ead6d='',_0x51c5f9=!0x1;for(const _0x25f20b of _0x56914c){const _0x478fc7=_0x25f20b['getRange']();for(const _0x2ed36e of Array['from'](_0x478fc7['getItems']()))_0x2ed36e['is']('$textProxy')?(_0x3ead6d&&_0x51c5f9&&(_0x3ead6d+='\x20',_0x51c5f9=!0x1),_0x3ead6d+=_0x2ed36e['data']):_0x51c5f9=!0x0;_0x51c5f9=!0x0;}return _0x3ead6d['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x37caa9,_0x3e6215){const _0x27c7f=this['editor'],_0x412b04=_0x27c7f['plugins']['get'](o);let _0x23fd7e=_0x412b04['getCommentThread'](_0x3e6215);const _0x1c68de=_0x27c7f['config']['get']('collaboration.channelId'),_0x53aaa8=_0x27c7f['plugins']['get'](b);if(_0x23fd7e&&(_0x23fd7e['unlinkedAt']&&_0x23fd7e['setUnlinkedAt'](null),_0x23fd7e['isAttached']))return _0x23fd7e;return!this['getAllMarkersForId'](_0x3e6215)[0x0]['managedUsingOperations']?_0x27c7f['editing']['view']['once']('render',()=>{if(_0x412b04['getCommentThread'](_0x3e6215))return;const _0x2c9173=_0x27c7f['plugins']['get'](y);_0x23fd7e=_0x412b04['openNewCommentThread']({'channelId':_0x1c68de,'threadId':_0x3e6215,'target':()=>this['_getTargetForId'](_0x3e6215),'context':{'type':'text','value':this['_getTextContext'](_0x3e6215)}});const _0x11b6be=_0x412b04['_threadToController']['get'](_0x23fd7e)['view'],_0x23fb27=_0x2c9173['getByInnerView'](_0x11b6be);_0x23fb27&&_0x53aaa8['registerAnnotation'](_0x23fb27);},{'priority':'low'}):_0x412b04['fetchCommentThread']({'channelId':_0x1c68de,'threadId':_0x3e6215})['then'](_0x1d25b6=>{if('destroyed'!==_0x27c7f['state']){if(_0x23fd7e=_0x1d25b6,_0x23fd7e&&!_0x23fd7e['isAttached']){const _0x561f4b=_0x23fd7e['attachTo'](()=>this['_getTargetForId'](_0x3e6215));_0x53aaa8['registerAnnotation'](_0x561f4b),_0x23fd7e['isResolved']&&this['_reconvertMarkers'](_0x3e6215);}else{if(!_0x23fd7e){const _0x43c614=this['getAllMarkersForId'](_0x3e6215);_0x27c7f['model']['change'](_0x2c8e46=>{for(const _0x12d8be of _0x43c614)_0x2c8e46['removeMarker'](_0x12d8be);});}}}}),_0x23fd7e;}['_handleThreadMarker'](_0x30f928,_0x44b208){const _0x50476b=this['_attachMarkerToThread'](_0x30f928,_0x44b208);_0x50476b&&!_0x50476b['context']&&_0x50476b['setContext']({'type':'text','value':this['_getTextContext'](_0x44b208)});}['_initAriaMarkerChangeAnnouncements'](){const _0x429406=this['editor'];rt(_0x429406['model'],({left:_0x300f37,entered:_0x3a485e})=>{for(const _0x238271 of _0x300f37)if(mt(_0x238271)){_0x429406['ui']['ariaLiveAnnouncer']['announce'](N(_0x429406['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x390e9d of _0x3a485e)if(mt(_0x390e9d)){_0x429406['ui']['ariaLiveAnnouncer']['announce'](N(_0x429406['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x9ce898)));break;}});}}function dt(_0xa76880,_0x473ffb){return _0x473ffb?_0xa76880+':'+_0x473ffb:_0xa76880;}function ht(_0xaa5df5,_0x249807){const _0xd1f59e=_0x249807['schema'],_0x3d70bd=_0x249807['createRange'](_0xaa5df5['start']);for(const _0x557d56 of _0xaa5df5['getWalker']()){const {type:_0x1dc69b,item:_0x13057c,nextPosition:_0x1866ef}=_0x557d56;if('text'===_0x1dc69b||_0xd1f59e['isObject'](_0x13057c)){const _0x5ba856=_0x249807['createPositionBefore'](_0x13057c);_0x3d70bd['isCollapsed']&&(_0x3d70bd['start']=_0x5ba856),_0x3d70bd['end']=_0x1866ef;}}return _0x3d70bd;}function mt(_0x50d740){return'comment'===ft(_0x50d740['name'])['group'];}class s extends _0x23cf76{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x180b3b=this['editor'],_0x3684cd=_0x180b3b['plugins']['get'](o),_0x3dfbc8=_0x180b3b['plugins']['get'](r),_0x4e07fa=_0x180b3b['plugins']['get'](y),_0xa0ab78=_0x180b3b['plugins']['get'](b);_0x180b3b['ui']['componentFactory']['add']('comment',()=>{const _0xa796a=this['_createUIButton'](_0x28cfbe);return _0xa796a['tooltip']=!0x0,_0xa796a;}),_0x180b3b['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x371c67)),_0xa0ab78['addSourceCollector'](()=>{const _0x3f3562=[];for(const [_0x588502,_0x4cbc9b]of _0x3684cd['_threadToController']){const _0x1eddb3=_0x3dfbc8['getAllMarkersForId'](_0x588502['id']),_0x353a72=_0x1eddb3['map'](_0x242cc4=>_0x242cc4['getRange']());_0x1eddb3['length']>0x0&&_0x3f3562['push']([_0x4cbc9b['view'],_0x353a72]);}return _0x3f3562;}),this['listenTo'](_0x4e07fa,'change:activeAnnotations',(_0x3fb6c6,_0x14d593,_0xf162ec)=>{const _0x592975=Array['from'](_0xf162ec)['map'](_0x1ecd16=>_0x1ecd16['innerView'])['find'](_0x86da57=>_0x3684cd['_viewToController']['has'](_0x86da57));if(!_0x592975)return void(_0x3dfbc8['activeMarker']=null);const _0xff134b=_0x3684cd['_viewToController']['get'](_0x592975)['model']['id'],_0x1961d7='comment:'+_0xff134b;_0xff134b&&_0x3dfbc8['hasMarkerForId'](_0xff134b)?_0x3dfbc8['activeMarker']=_0x1961d7:_0x3dfbc8['activeMarker']&&(_0x3dfbc8['activeMarker']=null);}),this['listenTo'](_0x3684cd,'removeCommentThread',(_0x55a6ad,{threadId:_0x572f75,isFromAdapter:_0x42a1c3})=>{!_0x42a1c3&&_0x180b3b['ui']['focusTracker']['isFocused']&&_0x3dfbc8['hasMarkerForId'](_0x572f75)&&_0x180b3b['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3684cd,'addComment',(_0x45e729,{threadId:_0x41eaae,isFromAdapter:_0x3236bb})=>{if(_0x3236bb||!_0x3dfbc8['hasMarkerForId'](_0x41eaae)||!_0x3684cd['hasCommentThread'](_0x41eaae))return;0x1===_0x3684cd['getCommentThread'](_0x41eaae)['length']&&(_0x180b3b['editing']['view']['focus'](),_0x45e729['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x47599b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a90ad;for(const _0x56f0dd in _0x47599b){const _0x4a6f35=_0x56f0dd,_0x3338d7=_0x47599b[_0x4a6f35];if('commentsLicenseKeyValid'==_0x3338d7||'commentsLicenseKeyInvalid'==_0x3338d7||'commentsLicenseKeyExpired'==_0x3338d7||'commentsLicenseKeyDomainLimit'==_0x3338d7||'commentsLicenseKeyNotAllowed'==_0x3338d7||'commentsLicenseKeyEvaluationLimit'==_0x3338d7||'commentsLicenseKeyUsageLimit'==_0x3338d7){delete _0x47599b[_0x4a6f35],_0x1a90ad=_0x3338d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x1a90ad&&_0x47599b['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x1a90ad&&_0x47599b['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x1a90ad&&_0x47599b['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x1a90ad&&_0x47599b['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x1a90ad&&_0x47599b['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x1a90ad&&_0x47599b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x171f8d){const _0x342c59=this['editor'],_0x113df3=new _0x171f8d(_0x342c59['locale']),_0x1daf3f=_0x342c59['commands']['get']('addCommentThread');return _0x113df3['set']({'label':N(_0x342c59['locale'],'Comment'),'icon':_0x50c136}),_0x113df3['bind']('isEnabled')['to'](_0x1daf3f,'isEnabled',_0x1daf3f,'hasContent',(_0x338152,_0x2a2807)=>_0x338152&&_0x2a2807),this['listenTo'](_0x113df3,'execute',()=>{_0x1daf3f['execute']();}),_0x113df3;}}class i extends _0x23cf76{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x4a9f5d){super(_0x4a9f5d),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1f93d7,_0x79ffe1,_0x3e1755)=>{_0x3e1755?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x404d72,_0x1460d7]of this['editor']['commands'])_0x1460d7['affectsData']&&'addCommentThread'!==_0x404d72&&_0x1460d7['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x1c9afc=this['editor']['editing']['view']['document'];this['listenTo'](_0x1c9afc,'cut',_0xbfc066=>_0xbfc066['stop'](),{'priority':'highest'}),this['listenTo'](_0x1c9afc,'clipboardInput',_0x52a2de=>_0x52a2de['stop'](),{'priority':'highest'}),this['listenTo'](_0x1c9afc,'delete',_0x45ee69=>_0x45ee69['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0xd41426,_0x2858e8]of this['editor']['commands'])_0x2858e8['affectsData']&&'addCommentThread'!==_0xd41426&&_0x2858e8['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x545c79{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x384e01){super(_0x384e01),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0xdf461b=this['context']['plugins']['get'](y);this['listenTo'](_0xdf461b,'_activateAnnotation',(_0x337e53,_0x4458b8)=>{for(const _0x22b11e of this['activeUIs']){const _0x2db77b=this['_uis']['get'](_0x22b11e);(0x0,this['uisData']['get'](_0x22b11e)['filter'])(_0x4458b8)&&_0x2db77b['setActiveAnnotation'](_0x4458b8);}}),this['listenTo'](_0xdf461b,'_deactivateAllAnnotations',()=>{for(const _0x2e84e1 of this['activeUIs']){this['_uis']['get'](_0x2e84e1)['setActiveAnnotation'](null);}}),this['listenTo'](_0xdf461b['_visibleAnnotations'],'add',(_0x192cb5,_0x29e255)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x29e255);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3a3d88){return this['activeUIs']['has'](_0x3a3d88);}['activate'](_0x16765d,_0x3d554e=this['defaultFilter']){const _0xb33df0=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x16765d))throw new _0x3c6477('annotationsuis-missing-ui',this,{'uiName':_0x16765d});this['isActive'](_0x16765d)&&this['deactivate'](_0x16765d),this['activeUIs']['add'](_0x16765d);const _0xfb77b=new S();v({'source':_0xb33df0['_visibleAnnotations'],'target':_0xfb77b,'filter':_0x3d554e}),this['uisData']['set'](_0x16765d,{'collection':_0xfb77b,'filter':_0x3d554e});const _0x23403e=this['_uis']['get'](_0x16765d);_0x23403e['attach'](_0xfb77b),this['listenTo'](_0x23403e,'change:activeAnnotation',(_0x26f244,_0x4b4558,_0x2012ee,_0x271b48)=>{_0x271b48&&_0xb33df0['_removeActiveAnnotation'](_0x271b48),_0x2012ee&&_0xb33df0['_addActiveAnnotation'](_0x2012ee);});}['deactivate'](_0x383bac){if(this['activeUIs']['delete'](_0x383bac),!this['_uis']['has'](_0x383bac))throw new _0x3c6477('annotationsuis-missing-ui',this,{'uiName':_0x383bac});const _0x52e014=this['_uis']['get'](_0x383bac);_0x52e014['detach'](),this['stopListening'](_0x52e014),this['uisData']['get'](_0x383bac)['collection']['destroy'](),this['uisData']['delete'](_0x383bac);}['switchTo'](_0x4ef4f3){if(!this['_uis']['has'](_0x4ef4f3))throw new _0x3c6477('annotationsuis-missing-ui',this,{'uiName':_0x4ef4f3});const _0x369767=this['context']['plugins']['get'](y),_0x37af30=Array['from'](_0x369767['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4ef4f3);const _0x2bab90=this['_uis']['get'](_0x4ef4f3);_0x2bab90['setActiveAnnotation'](_0x37af30),_0x2bab90['_setSelectedAnnotations']&&_0x37af30&&_0x2bab90['_setSelectedAnnotations']([_0x37af30]);}['deactivateAll'](){for(const _0x2415ea of this['activeUIs'])this['deactivate'](_0x2415ea);}['register'](_0x43e854,_0x2252ec){if(this['_uis']['has'](_0x43e854))throw new _0x3c6477('annotationsuis-register-already-registered');if('function'!=typeof _0x2252ec['attach']||'function'!=typeof _0x2252ec['detach']||'function'!=typeof _0x2252ec['setActiveAnnotation'])throw new _0x3c6477('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x43e854,_0x2252ec);}['refilterAnnotations'](){const _0x568945=this['context']['plugins']['get'](y)['collection'],_0x1b1b11=new Map(),_0x3a9256=Array['from'](this['activeUIs']);for(const _0x5b94ac of this['activeUIs']){const _0x13104e=this['uisData']['get'](_0x5b94ac)['collection'];for(const _0x49184a of _0x13104e)_0x1b1b11['set'](_0x49184a,_0x5b94ac);}for(const _0x5b592c of _0x568945){const _0x59164a=_0x1b1b11['get'](_0x5b592c);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5b592c);const _0x12bd19=_0x3a9256['find'](_0x94bc8e=>this['uisData']['get'](_0x94bc8e)['filter'](_0x5b592c));_0x59164a!==_0x12bd19&&(_0x59164a&&this['uisData']['get'](_0x59164a)['collection']['remove'](_0x5b592c),_0x12bd19&&this['uisData']['get'](_0x12bd19)['collection']['add'](_0x5b592c));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x383e2a){const _0xe615aa=[];for(const _0x1d510a of this['activeUIs']){(0x0,this['uisData']['get'](_0x1d510a)['filter'])(_0x383e2a)&&_0xe615aa['push'](_0x1d510a);}if(_0xe615aa['length']>0x1)throw new _0x3c6477('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xe615aa,'annotationType':_0x383e2a['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x54136c){super(_0x54136c);const _0x2c717c=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x2b2f3d(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2c717c['to']('class')],'style':{'minHeight':_0x2c717c['to']('minHeight',_0x142ddd=>'number'==typeof _0x142ddd?_i(_0x142ddd+0xa):null)},'dir':_0x54136c['uiLanguageDirection'],'role':'application','aria-label':N(_0x54136c,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x54136c,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x267937=>{this['_updateItemPositionInFocusables'](_0x267937['source']);}),this['list']['forEach'](_0x1c81aa=>{this['focusTracker']['add'](_0x1c81aa['element']),this['_updateItemPositionInFocusables'](_0x1c81aa);}),this['list']['on']('change',(_0xc2952c,_0x4e7e11)=>{for(const _0x48a6d4 of _0x4e7e11['removed'])this['focusTracker']['remove'](_0x48a6d4['element']),this['focusables']['remove'](_0x48a6d4);for(const _0x2bb7de of _0x4e7e11['added'])this['focusTracker']['add'](_0x2bb7de['element']),this['_updateItemPositionInFocusables'](_0x2bb7de);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x37ab98){const _0x956eed=this['focusables']['getIndex'](_0x37ab98);let _0x2e6869,_0x1aa00b;for(const _0xc4a9d9 of this['focusables'])if(_0x37ab98['top']<_0xc4a9d9['top']){_0x2e6869=_0xc4a9d9;break;}if(_0x1aa00b=_0x2e6869?this['focusables']['getIndex'](_0x2e6869):this['focusables']['length'],-0x1!==_0x956eed){if(_0x956eed===_0x1aa00b-0x1)return;this['focusables']['remove'](_0x37ab98),_0x1aa00b=_0x2e6869?this['focusables']['getIndex'](_0x2e6869):this['focusables']['length'];}this['focusables']['add'](_0x37ab98,_0x1aa00b);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2e9f39){super(_0x2e9f39),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x1d6b4a,_0x194e9a)=>_0x1d6b4a+_0x194e9a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x56cb74=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x56cb74['to']('isAnimationDisabled',_0x181f07=>_0x181f07?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x56cb74['to']('top',_0x38e15d=>Ot(_0x38e15d))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1a9305=this['element']['clientHeight'];_0x1a9305&&(this['height']=_0x1a9305);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x545c79{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x159d51){super(_0x159d51),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x284f70=this['context']['config']['get']('sidebar.container');_0x284f70&&this['setContainer'](_0x284f70);}['setContainer'](_0x8c28){if(!g(_0x8c28))throw new _0x3c6477('sidebar-setcontainer-invalid-element');this['container']=_0x8c28;}['_attachToContainer']({viewClass:_0x748ccf='',spaceBetweenItems:_0x328237=0x19}={}){if(!g(this['container']))throw new _0x3c6477('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x748ccf,this['_spaceBetweenItems']=_0x328237;}['rearrange']({removedAnnotation:_0x1d1bc9,previousAnnotation:_0x23939d,nextAnnotation:_0x29abc9}){const _0xefcfb6=this['getSidebarItemView'](_0x1d1bc9);this['view']['list']['remove'](_0xefcfb6),this['_destroySidebarItemView'](_0x1d1bc9),_0x23939d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x23939d)),_0x29abc9&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x29abc9)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x4cba5f,activatedAnnotation:_0x56437e,disableAnimationOnActivatedAnnotation:_0x19a5c6}){if(this['_activeAnnotation']=_0x56437e,_0x4cba5f){_0x4cba5f['isActive']=!0x1;const _0x2942a0=this['getSidebarItemView'](_0x4cba5f);_0x2942a0&&_0x19a5c6&&(_0x2942a0['isAnimationDisabled']=!0x1);}if(_0x56437e){const _0x3f34c1=this['getSidebarItemView'](_0x56437e);_0x3f34c1&&(_0x56437e['isActive']=!0x0,_0x19a5c6&&(_0x3f34c1['isAnimationDisabled']=!0x0,_0x3f34c1['top']+=0x1),this['_alignToTargetRect'](_0x3f34c1));}}['_detachFromContainer'](_0x5f25e2){if(this['view']['element']['remove'](),_0x5f25e2){for(const _0x3d57f1 of _0x5f25e2)this['_destroySidebarItemView'](_0x3d57f1);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2405bf,_0x5ecf12){_0x5ecf12||(_0x5ecf12=_0x2405bf['view']);const _0x163175=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x163175,_0x2405bf),this['_annotationToSidebarItemView']['set'](_0x2405bf,_0x163175),_0x163175['content']['add'](_0x5ecf12),this['listenTo'](_0x2405bf['view'],'change:targetRect',(_0x3f6436,_0x7997ef,_0x17030a)=>{const _0x505dc8=this['_getTargetTop'](_0x2405bf,_0x17030a);_0x163175['_targetTop']!=_0x505dc8&&(_0x163175['_targetTop']=_0x505dc8,this['_setItemTop'](_0x163175,_0x505dc8));}),this['listenTo'](_0x163175,'change:top',()=>{this['_recalculate'](_0x163175,'top');}),this['listenTo'](_0x163175,'change:bottom',()=>{this['_recalculate'](_0x163175,'bottom');}),this['_alignToTargetRect'](_0x163175);const _0x5dfa9e=this['_getItemBefore'](_0x163175);if(_0x5dfa9e)this['_alignAfterItem'](_0x5dfa9e,_0x163175)||this['_alignToTargetRect'](_0x163175);else this['_alignToTargetRect'](_0x163175);return this['_updateLastItem'](),this['view']['list']['add'](_0x163175),_0x163175;}['_alignForTopChange'](_0x42f71a){if(!_0x42f71a['content']['length'])return;const _0x3601f8=this['_getItemBefore'](_0x42f71a);if(!_0x3601f8)return;const _0x2522cd=this['_sidebarItemViewToAnnotation']['get'](_0x3601f8),_0x3e8985=this['_activeAnnotation'];_0x3e8985&&_0x3e8985===_0x2522cd?this['_alignAfterItem'](_0x3601f8,_0x42f71a):this['_alignBeforeItem'](_0x42f71a,_0x3601f8);}['_alignForBottomChange'](_0x1c7b4c){if(!_0x1c7b4c['content']['length'])return;const _0x5a1733=this['_getItemAfter'](_0x1c7b4c);if(!_0x5a1733)return;const _0xe3a2b9=this['_sidebarItemViewToAnnotation']['get'](_0x5a1733),_0x10515b=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x16cc0b=this['_activeAnnotation'];_0x16cc0b&&_0x16cc0b===_0xe3a2b9&&_0x10515b?(this['_alignBeforeItem'](_0x5a1733,_0x1c7b4c),this['_alignAfterItem'](_0x1c7b4c,_0x5a1733)):_0x16cc0b&&_0x16cc0b===_0xe3a2b9?this['_alignBeforeItem'](_0x5a1733,_0x1c7b4c):this['_alignAfterItem'](_0x1c7b4c,_0x5a1733);}['_recalculate'](_0x2bfa5d,_0x25f146){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x4e5794,changedProp:_0x4f183f}of this['_recalculateBuffer'])'top'===_0x4f183f?this['_alignForTopChange'](_0x4e5794):this['_alignForBottomChange'](_0x4e5794);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2bfa5d,'changedProp':_0x25f146});}['getSidebarItemView'](_0xc21a8e){return this['_annotationToSidebarItemView']['get'](_0xc21a8e);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2826b6){const _0x7b2128=this['getSidebarItemView'](_0x2826b6);this['stopListening'](_0x7b2128),this['stopListening'](_0x2826b6['view']),_0x7b2128['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2826b6),this['_sidebarItemViewToAnnotation']['delete'](_0x7b2128);}['_createSidebarView'](){const _0x4968c9=new H(this['context']['locale']);return _0x4968c9['render'](),this['on']('change:_lastItem',(_0x194890,_0x1cd8f6,_0x175eca,_0x5c1180)=>{_0x5c1180&&_0x4968c9['unbind']('minHeight'),_0x175eca?_0x4968c9['bind']('minHeight')['to'](_0x175eca,'bottom'):_0x4968c9['minHeight']=null;}),_0x4968c9;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x340edb){const _0x19a8b9=this['_sidebarItemViewToAnnotation']['get'](_0x340edb),_0x146c35=_0x19a8b9&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x19a8b9)-0x1);return _0x146c35&&this['getSidebarItemView'](_0x146c35)||null;}['_getItemAfter'](_0x34a136){const _0x11b49b=this['_sidebarItemViewToAnnotation']['get'](_0x34a136),_0x14e2db=_0x11b49b&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x11b49b)+0x1);return _0x14e2db&&this['getSidebarItemView'](_0x14e2db)||null;}['_alignBeforeItem'](_0x30e9a7,_0x25d31b){_0x30e9a7['updateHeight']();const _0x23ed2f=G(_0x25d31b['bottom']+this['_spaceBetweenItems'],_0x30e9a7['top']);return!!_0x23ed2f&&(this['_setItemTop'](_0x25d31b,_0x25d31b['top']-_0x23ed2f),!0x0);}['_alignAfterItem'](_0xbee3f4,_0x2c65b4){_0xbee3f4['updateHeight']();const _0x4a28e3=G(_0xbee3f4['bottom']+this['_spaceBetweenItems'],_0x2c65b4['top']);return!!_0x4a28e3&&(this['_setItemTop'](_0x2c65b4,_0x2c65b4['top']+_0x4a28e3,!0x1),!0x0);}['_alignToTargetRect'](_0x36e478){const _0x274b50=this['_sidebarItemViewToAnnotation']['get'](_0x36e478);if(!_0x274b50||!_0x274b50['target']||!_0x274b50['targetRect'])return;const _0x2b87b5=this['_getTargetTop'](_0x274b50,_0x274b50['targetRect']);this['_setItemTop'](_0x36e478,_0x2b87b5);}['_getTargetTop'](_0x103232,_0x24c9c7){if(null===_0x24c9c7)return 0x0;if(_0x103232['target']instanceof _0x46af57)return _0x24c9c7['top'];{const _0x14c3d0=new _0x46af57(this['view']['element'])['top'];return _0x24c9c7['top']-_0x14c3d0;}}['_setItemTop'](_0x26b574,_0x1f753e,_0x55e944=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x55e944&&(_0x1f753e=Math['max'](_0x1f753e,this['_getMaxAvailableTop'](_0x26b574))),_0x26b574['top']=_0x1f753e;}['_getMaxAvailableTop'](_0x42e0a3){let _0xa8b1eb=this['_getItemBefore'](_0x42e0a3),_0x1ed028=0x0;for(;_0xa8b1eb;)_0xa8b1eb['updateHeight'](),_0x1ed028+=this['_spaceBetweenItems']+_0xa8b1eb['height'],_0xa8b1eb=this['_getItemBefore'](_0xa8b1eb);return _0x1ed028;}}function G(_0x3a5ef7,_0x89df36){return Math['max'](_0x3a5ef7-_0x89df36,0x0);}function g(_0x13de4c){return null!==_0x13de4c&&'object'==typeof _0x13de4c&&0x1===_0x13de4c['nodeType'];}class e extends _0x545c79{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b483a){super(_0x3b483a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0xa3f224(),this['_refreshPositioningDebounced']=_0x5218cd(()=>{_0x3b483a['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x40efab=this['context']['plugins']['get'](j),_0x4def62=this['context']['plugins']['get'](z);_0x40efab['register']('wideSidebar',this),_0x4def62['container']&&_0x40efab['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3d26f6){if(_0x3d26f6===this['activeAnnotation'])return;const _0x175130=this['context']['plugins']['get'](z);_0x175130['_activeAnnotation']=_0x3d26f6;const _0x1fa00f=this['activeAnnotation'];_0x175130['refresh']({'blurredAnnotation':_0x1fa00f,'activatedAnnotation':_0x3d26f6}),this['activeAnnotation']=_0x3d26f6;}['attach'](_0x168ab6){this['annotations']=_0x168ab6;const _0x571791=this['context']['plugins']['get'](z);if(_0x571791['_annotations']=_0x168ab6,this['isAttached'])throw new _0x3c6477('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x571791,'set:container',()=>{this['detach'](),this['listenTo'](_0x571791,'change:container',_0x493f38=>{_0x493f38['off'](),this['attach'](_0x168ab6);});}),_0x571791['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x41f1a6=_0x794782=>{_0x794782['updateTargetRect'](),_0x571791['addAnnotation'](_0x794782);};for(const _0x203ea0 of _0x168ab6)_0x41f1a6(_0x203ea0);this['listenTo'](_0x168ab6,'add',(_0x1f01db,_0x393ae8)=>{_0x41f1a6(_0x393ae8);}),this['listenTo'](_0x168ab6,'remove',(_0x371de3,_0x7ed032,_0x236944)=>{_0x571791['rearrange']({'removedAnnotation':_0x7ed032,'previousAnnotation':_0x168ab6['get'](_0x236944-0x1),'nextAnnotation':_0x168ab6['get'](_0x236944+0x1)}),_0x7ed032===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x168ab6,'focus',(_0x177ad0,_0x287b2f)=>{this['setActiveAnnotation'](_0x287b2f);}),this['listenTo'](_0x168ab6,'blur',()=>{this['setActiveAnnotation'](null);});const _0x37fba5=this['context']instanceof _0x391341?this['context']['editors']:new _0xa3f224([this['context']]);for(const _0x80e72b of _0x37fba5)this['_integrateWithEditorAnnotations'](_0x80e72b);this['listenTo'](_0x37fba5,'add',(_0x528dbb,_0x4ba562)=>{this['listenTo'](_0x4ba562,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4ba562);});}),this['listenTo'](_0x37fba5,'remove',(_0x5b61aa,_0x5d6c08)=>{_0x5d6c08['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5d6c08['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3c6477('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x271fd4=this['context']['plugins']['get'](z);_0x271fd4['_detachFromContainer'](this['annotations']),this['stopListening'](_0x271fd4),this['stopListening'](this['annotations']),this['context']instanceof _0x391341&&this['stopListening'](this['context']['editors']);for(const _0x4198ab of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4198ab);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x5c08a5){if(!_0x5c08a5['plugins']['has']('EditorAnnotations'))return;const _0x53329c=_0x5c08a5['plugins']['get']('EditorAnnotations'),_0xdde19d=()=>{const _0x208a83=_0x53329c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x208a83[0x0]||null);};this['listenTo'](_0x53329c,'refresh',_0xdde19d),this['listenTo'](_0x53329c,'blur',(_0x257c40,{isAnnotationTracked:_0x4a39c5})=>{this['activeAnnotation']&&_0x4a39c5(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x53329c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0xf4b5a6=>{_0x53329c['hasDomSelection']()&&(_0xdde19d(),_0xf4b5a6['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x53329c);}['_destroyEditorAnnotationsIntegration'](_0x254b86){this['stopListening'](_0x254b86),this['_editorAnnotations']['remove'](_0x254b86);}}class C extends _0x28cfbe{['counterView'];constructor(_0x4f2d80){super(_0x4f2d80);const _0x1255f4=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1bde7d,_0x39e761)=>_0x1bde7d?'...':_0x39e761['toString']()),this['set']('annotationType',''),this['icon']=_0x50c136,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x1255f4['to']('annotationType',_0x3f37c9=>'ck-annotation-counter__badge--'+_0x3f37c9),_0x1255f4['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1255f4['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x545c79{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d7759){super(_0x4d7759),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x2ad553())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0xa3f224(),this['_refreshPositioningDebounced']=_0x5218cd(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x5b5349(this['context']['locale']),this['balloonPanelView']=new _0x135571(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x24efa2){this['annotations']=_0x24efa2;const _0x46205f=this['context']['plugins']['get'](z),_0x3cca7f=this['balloonPanelView'];if(_0x46205f['_annotations']=_0x24efa2,this['isAttached'])throw new _0x3c6477('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x46205f,'set:container',()=>{this['detach'](),this['listenTo'](_0x46205f,'change:container',_0x21ba4d=>{_0x21ba4d['off'](),this['attach'](_0x24efa2);});}),_0x46205f['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x282fda=_0x494d70=>{const _0x441c15=new C(this['context']['locale']);_0x46205f['addAnnotation'](_0x494d70,_0x441c15),this['_annotationToNarrowView']['set'](_0x494d70,_0x441c15),_0x441c15['bind']('isDirty','annotationType','number')['to'](_0x494d70['view'],'isDirty','type','length'),_0x441c15['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x3cca7f['content']['first']!==_0x494d70['view']?(this['_showBalloon'](_0x494d70),_0x494d70['view']['element']['focus'](),this['setActiveAnnotation'](_0x494d70)):this['setActiveAnnotation'](null);});};for(const _0x32bdcb of _0x24efa2)_0x282fda(_0x32bdcb);this['listenTo'](_0x24efa2,'add',(_0x310128,_0x21b764)=>{_0x282fda(_0x21b764);}),this['listenTo'](_0x24efa2,'remove',(_0x69ee8f,_0x493850,_0x4cfe0f)=>{this['_annotationToNarrowView']['get'](_0x493850)['destroy'](),this['_annotationToNarrowView']['delete'](_0x493850),_0x46205f['rearrange']({'removedAnnotation':_0x493850,'previousAnnotation':_0x24efa2['get'](_0x4cfe0f-0x1),'nextAnnotation':_0x24efa2['get'](_0x4cfe0f+0x1)}),_0x493850===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x24efa2,'focus',(_0x26ea03,_0x46d87f)=>{this['setActiveAnnotation'](_0x46d87f);}),this['listenTo'](_0x24efa2,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5e0ade,_0x1470c4)=>{_0x1470c4['keyCode']===_0x12b115['esc']&&_0x3cca7f['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x3cca7f['content']['first']),this['_hideBalloon'](),_0x1470c4['stopPropagation'](),_0x1470c4['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1b9ed0,_0x1a0f6e)=>{const _0x161211=_0x1a0f6e['target'];_0x3cca7f['isVisible']&&_0x3cca7f['element']['contains'](_0x161211)||_0x46205f['view']['element']['contains'](_0x161211)||_0x1b9ed0['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x20a9ba=>_0x20a9ba['contains'](_0x161211))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1e623f=this['context']instanceof _0x391341?this['context']['editors']:new _0xa3f224([this['context']]);for(const _0x11191a of _0x1e623f)this['_integrateWithEditorAnnotations'](_0x11191a);this['listenTo'](_0x1e623f,'add',(_0x342d57,_0x3c225f)=>{this['listenTo'](_0x3c225f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3c225f);});}),this['listenTo'](_0x1e623f,'remove',(_0x1b67ac,_0x44d441)=>{_0x44d441['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x44d441['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x53fe03){if(_0x53fe03===this['activeAnnotation'])return;const _0x1bd05d=this['context']['plugins']['get'](z);if(_0x1bd05d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x53fe03,'disableAnimationOnActivatedAnnotation':!0x0}),_0x53fe03)_0x1bd05d['getSidebarItemView'](_0x53fe03)?this['_showBalloon'](_0x53fe03):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x53fe03;}['detach'](){if(!this['isAttached'])throw new _0x3c6477('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x29df97=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x246a91=>_0x246a91['destroy']()),this['_annotationToNarrowView']['clear'](),_0x29df97['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x391341&&this['stopListening'](this['context']['editors']);for(const _0x410ceb of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x410ceb);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x5d7005){if(!_0x5d7005['plugins']['has']('EditorAnnotations'))return;const _0x642766=_0x5d7005['plugins']['get']('EditorAnnotations'),_0x51ba86=this['context']['plugins']['get'](z),_0x72f422=this['annotations'],_0x39763d=this['balloonPanelView'],_0x592d9d=()=>{const _0x444629=_0x642766['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x444629),this['setActiveAnnotation'](_0x444629[0x0]||null);};this['listenTo'](_0x642766,'refresh',_0x592d9d),this['listenTo'](_0x642766,'blur',(_0x17c731,{isAnnotationTracked:_0x1f68ae})=>{this['activeAnnotation']&&_0x1f68ae(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x642766,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x72f422,'blur',_0x481ea2=>{_0x642766['hasDomSelection']()&&_0x481ea2['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0xb947c8,_0x40676c)=>{const _0x59b5bc=_0x40676c['target'];_0x39763d['isVisible']&&_0x39763d['element']['contains'](_0x59b5bc)||_0x51ba86['view']['element']['contains'](_0x59b5bc)||this['activeAnnotation']&&_0x642766['hasDomSelection']()&&(_0x592d9d(),_0xb947c8['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x642766);}['_destroyEditorAnnotationsIntegration'](_0x3409a3){_0x3409a3&&(this['stopListening'](_0x3409a3),this['_editorAnnotations']['remove'](_0x3409a3));}['_setSelectedAnnotations'](_0x4919f6){for(const _0x327901 of this['_selectedAnnotations'])_0x4919f6['includes'](_0x327901)||this['_manuallyClosedAnnotationViews']['delete'](_0x327901['view']);this['_selectedAnnotations']=_0x4919f6;}['_refreshPositioning'](){const _0x170b64=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x170b64['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x12381b){if(this['_manuallyClosedAnnotationViews']['has'](_0x12381b['view']))return;const _0x2503e9=this['balloonPanelView']['content']['first'];_0x2503e9!==_0x12381b['view']?(_0x2503e9&&this['_detachListeners'](_0x2503e9),this['_attachListeners'](_0x12381b['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x12381b['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x25a33e=this['balloonPanelView']['content']['first'],_0x1a6f0f=_0x25a33e&&this['annotations']['getByView'](_0x25a33e);if(!_0x1a6f0f||!this['_annotationToNarrowView']['has'](_0x1a6f0f))return;const _0x7ec920=this['_annotationToNarrowView']['get'](_0x1a6f0f)['element'],_0x4d5b48=(function(){const _0x1a7c00=_0x135571['defaultPositions'];return[_0x1a7c00['southArrowNorthEast'],_0x1a7c00['northArrowSouthEast'],_0x1a7c00['southArrowNorth'],_0x1a7c00['northArrowSouth'],_0x1a7c00['southArrowNorthWest'],_0x1a7c00['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x7ec920,'positions':_0x4d5b48});}['_hideBalloon'](){const _0x4285b1=this['balloonPanelView'],_0x3debf0=_0x4285b1['content']['first'];_0x3debf0&&(this['_detachListeners'](_0x3debf0),_0x4285b1['unpin'](),_0x4285b1['content']['clear']());}['_attachListeners'](_0x3d60f9){this['listenTo'](_0x3d60f9,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x3d60f9,'Esc',(_0x5ce93c,_0x5c2223)=>{this['_manuallyClosedAnnotationViews']['add'](_0x3d60f9),this['_hideBalloon'](),_0x5c2223();});}['_detachListeners'](_0x1840e2){this['stopListening'](_0x1840e2);}}class c extends _0x23cf76{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0xba2018,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x95dda){super(_0x95dda),_0x95dda['editing']['view']['addObserver'](_0x2660de),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x95dda['plugins']['get'](_0xba2018),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x5218cd(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x452a83=this['editor']['plugins']['get'](j);_0x452a83['context']===this['editor']&&(_0x452a83['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x15d5d7,_0x387072)=>{const _0x165c4e=this['_balloon'];if(this['isAttached']&&_0x165c4e['visibleView']){const _0x223626=this['annotations']['getByView'](_0x165c4e['visibleView']);_0x223626&&this['_closeAnnotation'](_0x223626),_0x387072();}}));}['afterInit'](){const _0x245ea8=this['editor']['plugins']['get'](j);_0x245ea8['context']===this['editor']&&(_0x245ea8['hasActive']()||_0x245ea8['switchTo']('inline'));}['setActiveAnnotation'](_0x437827){_0x437827!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x437827&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x437827)&&this['_addAnnotationToBalloon'](_0x437827,!0x0),_0x437827['isActive']=!0x0),_0x437827||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x437827);}['attach'](_0x382d13){this['annotations']=_0x382d13;const _0x130934=this['editor']['plugins']['get'](j),_0x375d01=this['_balloon'];if(this['isAttached'])throw new _0x3c6477('inlineannotations-attach-already-attached',this);if(_0x130934['context']!==this['editor'])throw new _0x3c6477('inlineannotations-not-allowed-with-context',this);const _0x461209=this['editor']['plugins']['get'](b);this['listenTo'](_0x461209,'refresh',()=>{const _0x2e7bb2=_0x461209['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x49d247,_0xbd901d;!this['_forceRefresh']&&(_0x49d247=_0x2e7bb2,_0xbd901d=this['_selectedAnnotations'],_0x49d247['length']===_0xbd901d['length']&&_0x49d247['every'](_0x1878c9=>_0xbd901d['includes'](_0x1878c9)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2e7bb2),this['setActiveAnnotation'](_0x2e7bb2[0x0]||null));}),this['listenTo'](_0x461209,'blur',(_0x27bbf5,{isAnnotationTracked:_0xf81511})=>{this['activeAnnotation']&&_0xf81511(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x461209,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x480cc1,_0x371958,_0x2965f3)=>{_0x2965f3||this['setActiveAnnotation'](null);}),this['listenTo'](_0x382d13,'remove',(_0x864c36,_0x13f25f)=>{this['_removeAnnotationFromBalloon'](_0x13f25f),_0x13f25f===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x375d01,'change:visibleView',(_0x5232e0,_0x492227,_0x28aac0,_0x315e06)=>{_0x315e06&&this['stopListening'](_0x315e06);const _0x40c845=_0x382d13['getByView'](_0x28aac0);_0x28aac0&&_0x40c845&&(this['listenTo'](_0x28aac0,'change:height',()=>{_0x375d01['updatePosition']();}),this['listenTo'](_0x28aac0,'Esc',()=>{this['_closeAnnotation'](_0x40c845),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x40c845&&this['setActiveAnnotation'](_0x40c845));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x375d01['visibleView']&&(_0x382d13['getByView'](_0x375d01['visibleView'])&&_0x375d01['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x3c6477('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1474bd of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1474bd);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x414d34){for(const _0x4bd545 of this['_selectedAnnotations'])_0x414d34['includes'](_0x4bd545)||this['_manuallyClosed']['delete'](_0x4bd545);for(const _0x3aa32c of this['annotations'])_0x414d34['includes'](_0x3aa32c)||this['_removeAnnotationFromBalloon'](_0x3aa32c);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4a2574 of _0x414d34)this['_addAnnotationToBalloon'](_0x4a2574);}this['_selectedAnnotations']=_0x414d34;}['_addAnnotationToBalloon'](_0x283da2,_0x135d0b=!0x1){this['_manuallyClosed']['has'](_0x283da2)||(this['_addedAnnotations']['has'](_0x283da2)||this['_balloon']['hasView'](_0x283da2['view'])||(this['_addedAnnotations']['add'](_0x283da2),this['_balloon']['add']({'stackId':_0x283da2['view']['id'],'view':_0x283da2['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x283da2)}})),_0x135d0b&&this['_balloon']['showStack'](_0x283da2['view']['id']));}['_getBalloonTargetForAnnotation'](_0x58efb7){const _0x17656c=_0x58efb7['target'],_0xe4603b=this['editor']['editing']['view'],_0x529b4c=_0xe4603b['document']['selection']['getFirstRange'](),_0x27c9a0=_0xe4603b['domConverter']['viewRangeToDom'](_0x529b4c);if(_0x27c9a0['collapse'](!0x0),_0x17656c){if(_0x17656c instanceof _0x46af57)return _0x17656c;let _0x391694=[];for(const _0x67c00d of _0x17656c)_0x391694['push'](...F(_0x67c00d['getClientRects']()));_0x391694=function(_0x1adbf8){const _0x563dac=[];let _0x13cf64=_0x1adbf8[0x0];for(let _0x1b9539=0x1;_0x1b9539<_0x1adbf8['length'];_0x1b9539++)P(_0x13cf64,_0x1adbf8[_0x1b9539])?_0x13cf64['width']+=_0x1adbf8[_0x1b9539]['width']:(_0x563dac['push'](_0x13cf64),_0x13cf64=_0x1adbf8[_0x1b9539]);return _0x563dac['push'](_0x13cf64),_0x563dac;}(_0x391694);const _0x4c6ae5=_0x27c9a0['getBoundingClientRect']();return _0x391694['find'](_0x2275d3=>_0x2275d3['top']<=_0x4c6ae5['top']&&_0x2275d3['bottom']>=_0x4c6ae5['bottom']&&_0x2275d3['left']<=_0x4c6ae5['left']&&_0x2275d3['right']>=_0x4c6ae5['right'])||_0x391694[0x0];}return _0x58efb7['targetRect']||_0x27c9a0;}['_removeAnnotationFromBalloon'](_0x5af45a){this['_addedAnnotations']['has'](_0x5af45a)&&this['_balloon']['hasView'](_0x5af45a['view'])&&(this['_addedAnnotations']['delete'](_0x5af45a),this['_balloon']['remove'](_0x5af45a['view']));}['_closeAnnotation'](_0x4b4845){this['_manuallyClosed']['add'](_0x4b4845),this['_removeAnnotationFromBalloon'](_0x4b4845);}}function F(_0x1864b9){return Array['from'](_0x1864b9)['map'](DOMRect['fromRect']);}function P(_0x3392e4,_0x2e815b){return _0x3392e4['top']===_0x2e815b['top']&&_0x3392e4['bottom']===_0x2e815b['bottom']&&_0x3392e4['right']===_0x2e815b['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x657d22,_0x1dc112){super(_0x657d22),this['set']('isEmpty',!_0x1dc112['length']),this['focusTracker']=new _0x2b2f3d(),this['_annotationViews']=_0x1dc112,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0xd32198({'focusables':_0x1dc112,'focusTracker':this['focusTracker']}),this['listenTo'](_0x1dc112,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x1dc112,'remove',(_0x3f2f2b,_0x1e29b7)=>{_0x1e29b7['isActive']&&this['focus'](),_0x1dc112['length']||(this['isEmpty']=!0x0);});const _0x2efdd2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x657d22,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x1dc112},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2efdd2['if']('isEmpty','ck-hidden',_0x4aaf1d=>!_0x4aaf1d)]},'children':[{'text':N(_0x657d22,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x573e64 of this['_annotationViews'])this['focusTracker']['add'](_0x573e64['element']);this['_annotationViews']['on']('change',(_0x44ca2f,{added:_0x146ced,removed:_0x4004c6})=>{for(const _0x2be9c1 of _0x146ced)this['focusTracker']['add'](_0x2be9c1['element']);for(const _0x58c612 of _0x4004c6)this['focusTracker']['remove'](_0x58c612['element']);});}}class p extends _0x545c79{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x4ca135){super(_0x4ca135),this['archivedThreads']=new _0xa3f224();}['init'](){const _0x215a70=this['context'],_0x5acab8=_0x215a70['plugins']['get'](o),_0x2afd18=_0x215a70['plugins']['get'](y);this['listenTo'](_0x5acab8,'addCommentThread',(_0x28d48e,{threadId:_0x1f79d1})=>{const _0x1e9f06=_0x5acab8['getCommentThread'](_0x1f79d1);_0x1e9f06['archivedAt']&&this['archivedThreads']['add'](_0x1e9f06,this['_calculatePosition'](_0x1e9f06['archivedAt'])),this['listenTo'](_0x1e9f06,'change:archivedAt',(_0x5560ea,_0x326add,_0x4587fe)=>{_0x4587fe?this['archivedThreads']['has'](_0x1e9f06)||this['archivedThreads']['add'](_0x1e9f06,this['_calculatePosition'](_0x1e9f06['archivedAt'])):this['archivedThreads']['has'](_0x1e9f06)&&this['archivedThreads']['remove'](_0x1e9f06);});}),this['listenTo'](_0x5acab8,'removeCommentThread',(_0x57ce90,{threadId:_0x250c49})=>{const _0x3e2511=_0x5acab8['getCommentThread'](_0x250c49);this['stopListening'](_0x3e2511),this['archivedThreads']['has'](_0x3e2511)&&this['archivedThreads']['remove'](_0x3e2511);},{'priority':'highest'}),this['listenTo'](_0x2afd18['collection'],'focus',(_0x44b60c,_0x2ed1d1)=>{_0x2ed1d1['isVisible']||(_0x2ed1d1['isActive']=!0x0,_0x2afd18['activate'](_0x2ed1d1));});}['_calculatePosition'](_0x875f6f){const _0x16acd6=[...this['archivedThreads']]['findIndex'](_0x4c6dad=>_0x4c6dad['archivedAt']<_0x875f6f);return _0x16acd6>-0x1?_0x16acd6:this['archivedThreads']['length'];}}class a extends _0x23cf76{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x524ca0];}constructor(_0x4257ea){super(_0x4257ea),this['annotationViews']=new _0x10f58f(),this['_pendingThreads']=[];}['init'](){const _0x34e787=this['editor'],_0x4f5391=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x34e787['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x28cfbe,!0x0)),_0x34e787['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x243c90=this['_createCommentsArchiveButton'](_0x371c67);return _0x243c90['set']({'role':'menuitemcheckbox'}),_0x243c90;});const _0x494c13=_0x34e787['plugins']['get'](p),_0x459123=_0x34e787['plugins']['get']('Annotations'),_0xb13344=_0x34e787['plugins']['get']('CommentsRepository');_0x494c13['archivedThreads']['forEach'](_0x223e6e=>{this['_handleNewThread'](_0x223e6e);}),this['listenTo'](_0x494c13['archivedThreads'],'add',(_0x478eab,_0xb5970f)=>{this['_handleNewThread'](_0xb5970f);}),this['listenTo'](_0x459123['collection'],'add',(_0x246ea9,_0x5572ac)=>{const _0x253932=this['_pendingThreads']['find'](_0x42f449=>{const _0x45457c=_0xb13344['_threadToController']['get'](_0x42f449);return _0x45457c&&_0x5572ac['innerView']===_0x45457c['view'];});if(_0x253932){const _0x595cdc=this['_calculatePosition'](_0x253932['archivedAt']);this['_addAnnotationToArchive'](_0x5572ac,_0x595cdc),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x253932),0x1);}}),this['listenTo'](_0x494c13['archivedThreads'],'remove',(_0x14d177,_0x10542d)=>{const _0x3f9de7=_0x34e787['config']['get']('collaboration.channelId');if(!_0x3f9de7||_0x10542d['channelId']===_0x3f9de7){if(this['_pendingThreads']['includes'](_0x10542d))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x10542d),0x1);else{const _0x7c991d=_0xb13344['_threadToController']['get'](_0x10542d),_0x11f17c=_0x459123['getByInnerView'](_0x7c991d['view']);this['annotationViews']['remove'](_0x11f17c['view']),this['stopListening'](_0x11f17c),this['stopListening'](_0x11f17c['focusableElements']);}}}),this['listenTo'](_0x459123['collection'],'add',(_0x1de8f0,_0x312dec)=>{this['listenTo'](_0x312dec,'escape',_0x4f5391);}),this['listenTo'](_0x459123['collection'],'remove',(_0x2fa815,_0x15df40)=>{this['stopListening'](_0x15df40,'escape',_0x4f5391);});}['_addAnnotationToArchive'](_0x97726f,_0x281cad){this['listenTo'](_0x97726f,'set:isVisible',_0x5361cf=>{_0x5361cf['return']=!0x1,_0x5361cf['stop']();}),this['annotationViews']['add'](_0x97726f['view'],_0x281cad);}['_handleNewThread'](_0x287e6f){const _0x371dd6=this['editor']['plugins']['get']('CommentsRepository'),_0x54390a=this['editor']['plugins']['get']('Annotations'),_0x333549=this['editor']['config']['get']('collaboration.channelId');if(!_0x333549||_0x287e6f['channelId']===_0x333549){const _0x8af813=_0x371dd6['_threadToController']['get'](_0x287e6f);if(!_0x8af813)return void this['_pendingThreads']['push'](_0x287e6f);const _0x12c2ef=this['_calculatePosition'](_0x287e6f['archivedAt']),_0x374d6d=_0x54390a['getByInnerView'](_0x8af813['view']);_0x374d6d['isVisible']&&_0x54390a['_visibleAnnotations']['remove'](_0x374d6d),this['_addAnnotationToArchive'](_0x374d6d,_0x12c2ef);}}['_calculatePosition'](_0x32c581){const _0x503cf5=this['editor']['config']['get']('collaboration.channelId'),_0x5d26c4=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x10e30c=>_0x10e30c['channelId']===_0x503cf5)['findIndex'](_0x182b3f=>_0x182b3f['archivedAt']<_0x32c581);return _0x5d26c4<0x0||_0x5d26c4>this['annotationViews']['length']?this['annotationViews']['length']:_0x5d26c4-0x1;}['_toggleDialog'](){const _0x21faea=this['editor'],_0x30445c=_0x21faea['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x21faea['locale'],this['annotationViews'])),'commentsArchive'===_0x30445c['id']?_0x30445c['hide']():_0x30445c['show']({'id':'commentsArchive','title':N(_0x21faea['locale'],'COMMENTS_ARCHIVE'),'icon':_0x307d20,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x1d0d6d['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x1ff421,_0x495a13=!0x1){const _0x14a946=this['editor']['locale'],_0x3c60f9=this['editor']['plugins']['get']('Dialog'),_0x454ea0=new _0x1ff421(_0x14a946);return _0x454ea0['bind']('isEnabled')['to'](this,'isEnabled'),_0x454ea0['bind']('isOn')['to'](_0x3c60f9,'id',_0x3151a3=>'commentsArchive'===_0x3151a3),_0x454ea0['set']({'label':N(_0x14a946,'COMMENTS_ARCHIVE'),'icon':_0x307d20,'isToggleable':!0x0}),_0x495a13&&(_0x454ea0['tooltip']=!0x0),this['listenTo'](_0x454ea0,'execute',()=>this['_toggleDialog']()),_0x454ea0;}['_hideDialogOnAnnotationEscape']=_0x2345c1=>{const _0x375704=_0x2345c1['source'];if(!this['annotationViews']['has'](_0x375704['view']))return;const _0x52156a=this['editor']['plugins']['get']('Dialog');_0x52156a['isOpen']&&'commentsArchive'===_0x52156a['id']&&(_0x52156a['hide'](),_0x2345c1['stop']());};}class gi extends _0x23cf76{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
23
+ import{Editor as _0x366989,ContextPlugin as _0x37562f,PendingActions as lt,Command as _0x3da5ad,Plugin as _0xa8525f,Context as _0x59e252}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1c0814,uid as _0x235337,KeystrokeHandler as jt,FocusTracker as _0x4a39cb,diff as _0x49cc04,Collection as _0x5bd6e5,Rect as _0x2208d7,CKEditorError as _0x2ac32c,first as _0x1117c7,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x58388a,keyCodes as _0x206db9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5b56e9,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x1b6eb1,trimHtml as ts,LateFocusDropdownButtonView as _0x45b110,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x3ebd47}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x483d8a}from'es-toolkit/compat';import{IconUndo as _0x50ea7c,IconCheck as _0x4dec6b,IconPencil as _0xb61cb2,IconRemoveComment as _0x1db4ed,IconThreeVerticalDots as _0x42e5f3,IconAddComment as _0x49b617,IconCommentsArchive as _0x9a8e51}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x5b7087,ButtonView as _0x4e3d0d,ViewCollection as _0x583bde,createDropdown as _0xc83334,ListView as _0xbd61c1,focusChildOnDropdownOpen as _0x582991,ListItemView as _0x34401b,MenuBarMenuListItemButtonView as _0x237ac4,BodyCollection as _0x207229,BalloonPanelView as _0x507304,ContextualBalloon as _0x10f1b9,Dialog as _0x3d6f58,DialogViewPosition as _0x262205}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x3ccea3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0xc63e21}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x539ec0}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x1c0814(){['model'];['view'];constructor(_0x51c37e,_0xdc3726){super(),this['model']=_0x51c37e,this['model']['_isAttached']=!0x0,this['view']=_0xdc3726,this['listenTo'](_0xdc3726,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0xdc3726,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0xdc3726,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0xdc3726,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0xdc3726,'addComment',(_0x296fb4,_0x1a5029)=>this['addComment'](_0x1a5029)),this['listenTo'](_0xdc3726,'updateComment',(_0xf602d1,_0x2548cb,_0x57e041)=>this['updateComment'](_0x2548cb,_0x57e041)),this['listenTo'](_0xdc3726,'removeComment',(_0x546851,_0x25a661)=>this['removeComment'](_0x25a661));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x103f66){this['model']['addComment']({'content':_0x103f66,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x1cf4cc,_0x4cbe6f){this['model']['getComment'](_0x1cf4cc)['update']({'content':_0x4cbe6f});}['removeComment'](_0x369249){this['model']['getComment'](_0x369249)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x3d4c1b,_0x2f8482,_0x1cf17b){const t=_0x3d4c1b['t'];switch(_0x2f8482){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x1cf17b);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x1cf17b);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x1cf17b);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x1cf17b);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x1cf17b);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x1cf17b);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1cf17b);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1cf17b);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x54ac7c,_0x38664f){super(_0x54ac7c);const _0x12bc52=_0x235337();this['main']=this['createCollection'](),this['editable']=new Vt(_0x54ac7c,_0x38664f,void 0x0,{'label':()=>N(_0x54ac7c,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x54ac7c['uiLanguageDirection'],'lang':_0x54ac7c['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x12bc52},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x49388d){super(_0x49388d),this['view']=new Rt(_0x49388d['locale'],_0x49388d['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1bbc0a=this['editor']['editing']['view'],_0x338d02=this['view']['editable'],_0x210588=_0x1bbc0a['document']['getRoot']();_0x338d02['name']=_0x210588['rootName'],this['view']['render']();const _0xb3d1e2=_0x338d02['element'];this['setEditableElement'](_0x338d02['name'],_0xb3d1e2),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1bbc0a['attachDomRoot'](_0xb3d1e2),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x1c0814(_0x366989){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x4c8ad9={}){function _0x220519(_0x2fab7d){return _0x2fab7d['map'](_0x5d2275=>String['fromCharCode'](_0x5d2275))['join']('');}(_0x4c8ad9=Object['assign']({},_0x4c8ad9))['plugins']||(_0x4c8ad9['plugins']=hs['defaultPlugins']),super(_0x4c8ad9),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x220519([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x220519([0x76,0x69,0x65,0x77])][_0x220519([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x220519([0x61,0x75,0x74,0x6f]),this[_0x220519([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x220519([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x220519([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x220519([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x220519([0x6f,0x6b])});}['create'](){const _0x1529a2=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x1529a2))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x852a33=>{const _0x402819=this['model']['document']['getRoot'](),_0x3b2bed=_0x402819&&_0x402819['getChild'](_0x402819['childCount']-0x1);_0x852a33['setSelection'](_0x3b2bed,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x6bcef4=this['editing']['view'],_0x49270f=_0x6bcef4['document']['getRoot'](),_0x480dc1=_0x49270f['getChild'](0x0);_0x49270f['childCount']>0x1||!_0x480dc1||'p'!=_0x480dc1['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x6bcef4,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x480dc1['placeholder']=this['placeholder']),Ft({'view':_0x6bcef4,'element':_0x480dc1,'keepOnFocus':!0x0}),this['placeholderElement']=_0x480dc1);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x23a7b2,_0x20d70b={}){super(_0x23a7b2),this['editor']=null,this['_editorConfig']=_0x20d70b,this['set']('value',_0x20d70b['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x23a7b2,'Reply...')),this['set']('submitLabel',N(_0x23a7b2,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x4a39cb(),this['focusCycler']=new _0x5b7087({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x58482d,_0x1f8ffa)=>{this['cancelButtonView']['fire']('execute'),_0x1f8ffa();}),this['keystrokes']['set']('Ctrl+Enter',(_0x483e2b,_0x42d527)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x42d527());}),this['on']('submit',(_0x4847a1,_0x511a6f)=>{_0x511a6f['length']>0xfde8?(alert(N(_0x23a7b2,'TOO_LONG_COMMENT_ALERT',[_0x511a6f['length'],0xfde8])),_0x4847a1['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x158842=this['editor'];this['element']['insertBefore'](_0x158842['ui']['element'],this['element']['firstChild']),_0x158842['model']['document']['on']('change',()=>this['value']=_0x158842['getData']()),_0x158842['bind']('placeholder')['to'](this),this['focusables']['add'](_0x158842['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x984996){-0x1===_0x984996?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x5125ee}=this,_0x2f7cb5=new _0x4e3d0d(_0x5125ee);return _0x2f7cb5['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2f7cb5['withText']=!0x0,_0x2f7cb5['bind']('label')['to'](this,'submitLabel'),_0x2f7cb5['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2f7cb5['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2c6583,_0x51926b)=>!_0x51926b&&!!_0x2c6583['trim']()),_0x2f7cb5;}['_createCancelButton'](){const {locale:_0x5cb876}=this,_0xbecfc0=new _0x4e3d0d(_0x5cb876);return _0xbecfc0['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xbecfc0['label']=N(_0x5cb876,'Cancel'),_0xbecfc0['withText']=!0x0,_0xbecfc0['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0xbecfc0;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x43bad7=>{this['focusTracker']['add'](_0x43bad7['element']);}),this['focusables']['on']('change',(_0x518d1d,_0x114666)=>{for(const _0xb2e693 of Array['from'](_0x114666['added'])['reverse']())this['focusTracker']['add'](_0xb2e693['element']);});}}class ie extends kt{constructor(_0x3e665c,_0x44d04f,_0x1d3b7b){super(_0x3e665c),this['commentInputView']=new es(_0x3e665c,_0x1d3b7b),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x16b97b,_0x1a0269)=>_0x16b97b||!!_0x1a0269),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x5b56e9(_0x3e665c,_0x44d04f),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x334203){this['commentInputView']['focus'](_0x334203);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x4b118f,_0x1c06b3)=>{const {submitButtonView:_0x317ce7,cancelButtonView:_0x2de373,editor:_0x28c9cc}=this['commentInputView'];[_0x317ce7['element'],_0x2de373['element'],_0x28c9cc?_0x28c9cc['editing']['view']['getDomRoot']():null]['filter'](_0x22f472=>_0x22f472)['some'](_0x2aafd4=>_0x2aafd4['contains'](_0x1c06b3['target']))||(this['focus'](),_0x1c06b3['preventDefault']());});}}class rs extends kt{constructor(_0x83635){super(_0x83635);const _0x551d64=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x551d64['to']('count',_0x42af68=>N(_0x83635,'NUMBER_OF_COMMENTS',_0x42af68))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x4f54ff,_0x1333af,_0x1c428c){super(_0x4f54ff);const _0x2635f2=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1333af['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1333af,this['_config']=_0x1c428c,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4a39cb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5b7087({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x19221e=>this['commentViews']['map'](_0x32cdf5=>_0x32cdf5['element'])['includes'](_0x19221e['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x4f54ff),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x5c5941=>_0x5c5941-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5b6ced of _0x1333af['comments'])this['_handleNewCommentModel'](_0x5b6ced);this['_handleInfoComment'](),this['listenTo'](_0x1333af['comments'],'add',(_0xfd6ffe,_0x2dece2)=>{const _0x47ebd2=this['_calculatePosition'](_0x2dece2);this['length']++,this['_handleNewCommentModel'](_0x2dece2,_0x47ebd2),this['refreshVisibleViews']();}),this['listenTo'](_0x1333af['comments'],'remove',(_0xaa0e16,_0x454ae7)=>{this['length']--,this['_handleRemoveCommentModel'](_0x454ae7),this['refreshVisibleViews']();}),this['listenTo'](_0x1333af,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1333af,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x2635f2['if']('length','ck-hidden',_0x550c4f=>!_0x550c4f)],'aria-label':N(_0x4f54ff,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x4c8555){-0x1===_0x4c8555?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x5736d4 of this['commentViews'])_0x5736d4['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x569b2b,_0x19ee6f){const _0x284007=new this['_config']['CommentView'](this['locale'],_0x569b2b,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x284007['viewUid']=_0x569b2b['id'],_0x284007['delegate']('removeComment')['to'](this),_0x284007['delegate']('updateComment')['to'](this),_0x284007['delegate']('resolveCommentThread')['to'](this),_0x284007['delegate']('editorReady')['to'](this),_0x284007['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x284007,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x284007,_0x19ee6f);}['_calculatePosition'](_0x521951){const _0x2d80e4=this['_model']['_findOptimalIndex'](_0x521951);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x521951['authoredAt']?_0x2d80e4-0x1:_0x2d80e4:_0x2d80e4-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x2d0fb9={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x2d0fb9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x2d0fb9));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x47cdc2){const _0x50735c=this['commentViews']['remove'](_0x47cdc2['id']);this['stopListening'](_0x50735c),_0x50735c['isEditMode']&&this['_updateHasDirtyComment'](),_0x50735c['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x19f151=>_0x19f151['isEditMode']);}['_rearrangeCollapse'](){const _0x4197ea=function(_0x4c84f9){const _0x4fc84c=new _0x5bd6e5();for(const _0x410b71 of _0x4c84f9)_0x4fc84c['add'](_0x410b71);return _0x4fc84c;}(this['commentViews']),_0x1bb3b9=this['_collapsedCommentsView']['count'];for(let _0x328eec=0x1;_0x328eec<=_0x1bb3b9;_0x328eec++)_0x4197ea['remove'](0x1);for(const _0xe80c9c of _0x4197ea)_0xe80c9c['collapse']();_0x1bb3b9>0x0&&_0x4197ea['add'](this['_collapsedCommentsView'],0x1),ns(_0x49cc04(Array['from'](this['visibleViews']),Array['from'](_0x4197ea)),this['visibleViews'],_0x4197ea);}['_rearrangeExpand'](){ns(_0x49cc04(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x26616d of this['visibleViews'])_0x26616d['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x40e743=>{this['focusTracker']['add'](_0x40e743['element']),this['keystrokes']['listenTo'](_0x40e743['element']);}),this['commentViews']['on']('change',(_0xb6279f,_0x525fcf)=>{for(const _0x271204 of _0x525fcf['removed'])this['focusTracker']['remove'](_0x271204['element']),this['keystrokes']['stopListening'](_0x271204['element']);for(const _0x227684 of Array['from'](_0x525fcf['added'])['reverse']())this['focusTracker']['add'](_0x227684['element']),this['keystrokes']['listenTo'](_0x227684['element']);});}}function ns(_0x4cef23,_0x4126a0,_0x54ac3c){let _0x3007c7=0x0;for(const _0x233a80 of _0x4cef23)switch(_0x233a80){case'insert':_0x4126a0['add'](_0x54ac3c['get'](_0x3007c7),_0x3007c7),_0x3007c7++;break;case'delete':_0x4126a0['remove'](_0x3007c7);break;case'equal':_0x3007c7++;}}class oe extends kt{constructor(_0x1816a6){super(_0x1816a6);const _0x103428=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x103428['to']('contextValue',_0x12dac7=>N(_0x1816a6,'THREAD_CONTEXT_LABEL',_0x12dac7)),'tabindex':-0x1},'children':[{'text':_0x103428['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x64de87,_0x52c7dd){super(_0x64de87);const _0x316092=this['bindTemplate'];this['_model']=_0x52c7dd,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4a39cb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5b7087({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x37e1fd=>!!_0x37e1fd),this['bind']('contextValue')['to'](this['_model'],'context',_0xd797ce=>_0xd797ce&&_0xd797ce['value']?this['_trimContextValue'](_0xd797ce['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x316092['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x1b5c10=new _0x4e3d0d(this['locale']);return _0x1b5c10['label']=N(this['locale'],'Reopen'),_0x1b5c10['tooltip']=N(this['locale'],'Reopen'),_0x1b5c10['icon']=_0x50ea7c,_0x1b5c10['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x288179=>!_0x288179),_0x1b5c10['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x7c909f,_0x3d76c9)=>_0x7c909f&&_0x3d76c9),_0x1b5c10['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x1b5c10;}['_trimContextValue'](_0x43cdf7){if(_0x43cdf7['length']<0x96)return _0x43cdf7;const _0x56dff8=_0x43cdf7['lastIndexOf']('\x20',0x93);return _0x43cdf7['substring'](0x0,_0x56dff8>-0x1?_0x56dff8:0x93)+'...';}['_attachContextActions'](){const _0x4b9750=this['element']['querySelector']('.ck-context'),_0x4627d7=_0x4b9750['querySelector']('.ck-context__value');this['listenTo'](_0x4b9750,'mouseenter',()=>{_0x4627d7['offsetWidth']<_0x4627d7['scrollWidth']&&_0x4b9750['classList']['add']('overlay');}),this['listenTo'](_0x4b9750,'mouseleave',()=>{_0x4b9750['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x472871 of this['focusables'])this['focusTracker']['add'](_0x472871['element']),this['keystrokes']['listenTo'](_0x472871['element']);}['_createContextView'](){const _0x4181f9=new oe(this['locale']);return _0x4181f9['bind']('contextValue')['to'](this),_0x4181f9;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x187082,_0x39f310,_0x556161,_0x3a44ba){super(_0x187082),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x39f310,this['_localUser']=_0x556161,this['_config']=_0x3a44ba,this['commentThreadHeaderView']=new Xt(_0x187082,_0x39f310),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x187082,N(_0x187082,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x187082,_0x39f310,Object['assign']({'CommentView':this['_config']['CommentView']},_0x3a44ba)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2b9a52,_0x1d6d33)=>_0x2b9a52||!!_0x1d6d33),this['bind']('isUnlinked')['to'](_0x39f310,'unlinkedAt',_0x492292=>!!_0x492292),this['bind']('ariaLabel')['to'](this,'length',_0x3fe40c=>{const _0x4a435d=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x3fe40c,_0x4a435d]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4a39cb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5b7087({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4110a3=>_0x4110a3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1b8d43=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c8201=_0x1b8d43['commentInputView'];return _0x1b8d43['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x4c8201,'value',(_0x2a4c43,_0x30c293,_0xf7c5cf,_0x4548f3,_0x33cb5e)=>!!_0x33cb5e||!!_0x4548f3&&_0xf7c5cf&&!_0x30c293||_0x2a4c43&&_0xf7c5cf&&!_0x30c293),_0x4c8201['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3ee8b0,_0x4140f9,_0x3d0c9b)=>{let _0x51afc1;return _0x51afc1=_0x3d0c9b&&_0x4140f9?'Reply\x20to\x20reopen\x20discussion...':_0x3ee8b0?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x51afc1);}),_0x4c8201['bind']('submitLabel')['to'](this,'length',_0x3d381d=>N(this['locale'],_0x3d381d?'Reply':'Comment')),_0x4c8201['on']('submit',(_0x1e640f,_0x4130f3)=>{this['fire']('addComment',_0x4130f3),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x4c8201['on']('cancel',()=>{this['focus']();}),_0x4c8201['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4c8201['on']('cancel',_0x13c1a1=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x13c1a1['stop']());}),this['on']('change:isActive',(_0x53c218,_0x58c4f2,_0x1471cf)=>{_0x1471cf||this['length']||_0x4c8201['value']||this['fire']('removeCommentThread');}),_0x1b8d43;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x42659b,_0x3ccc45,_0x593699,_0x3bd083){super(_0x42659b,_0x3ccc45,_0x593699,_0x3bd083),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x42659b,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x53e19e,_0x4d7b66,_0x3b2955)=>{_0x3b2955||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x51b92e,_0x22f85f,_0x32c8e8)=>{_0x32c8e8&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x48bd7c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x48bd7c['if']('isActive','ck-thread--active'),_0x48bd7c['if']('isUnlinked','ck-thread--unlinked'),_0x48bd7c['to']('actionIndicator',_0x2f25d6=>_0x2f25d6?'ck-thread--'+_0x2f25d6:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x48bd7c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x23b34b of this['commentsListView']['commentViews'])_0x23b34b['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x1f4adc}=this,_0x37ff84=this['commentsListView']['commentViews']['get'](0x0);_0x37ff84===this['_boundFirstCommentView']||_0x37ff84['isSystemComment']||(this['_boundFirstCommentView']=_0x37ff84,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x37ff84,'actionIndicator',_0x4cbc88=>'remove'===_0x4cbc88?'remove':null),_0x37ff84['placeholder']=N(_0x1f4adc,'Write\x20a\x20comment...'),_0x37ff84['removeButton']['on']('execute',_0x529b0b=>{_0x529b0b['stop'](),this['showConfirm'](N(_0x1f4adc,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x37ff84['focus']();}),_0x37ff84['actionBar']['add'](this['resolveButton'],0x0),_0x37ff84['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x4eea51=new _0x1b6eb1(this['locale']);return _0x4eea51['label']=N(this['locale'],'Resolve'),_0x4eea51['tooltip']=N(this['locale'],'Resolve'),_0x4eea51['icon']=_0x4dec6b,_0x4eea51['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x4eea51['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1d804a=>!_0x1d804a),_0x4eea51['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4681cc,_0x598aa0)=>_0x4681cc&&!_0x598aa0),_0x4eea51['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x4eea51;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0x15b29b){super(_0x15b29b),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0xc09552,_0x142a9d,_0x78be92)=>{this['element']['innerHTML']=_0x78be92;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4db1e1,_0x574c76,_0x2a0392){super(_0x4db1e1),this['_model']=_0x574c76,this['_config']=_0x2a0392,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x574c76,'content',_0x574c76,'authoredAt',(_0x459577,_0x441fe2)=>N(_0x4db1e1,'COMMENT_ARIA_LABEL',[_0x574c76['author']['name'],_0x2a0392['formatDateTime'](_0x441fe2),new DOMParser()['parseFromString'](_0x459577,'text/html')['body']['textContent'],_0x574c76['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x4db1e1,N(_0x4db1e1,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x583bde(),this['focusTracker']=new _0x4a39cb(),this['keystrokes']=new jt(),this['focusCycler']=new _0x5b7087({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x38d76d=>_0x38d76d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x34d51c=new is(this['locale']);return _0x34d51c['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x434810,_0x2f6f91)=>_0x2f6f91?ts(_0x434810,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x434810),_0x34d51c;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x4e56e7=new es(this['locale'],this['_config']['editorConfig']);return _0x4e56e7['value']=this['_model']['content'],_0x4e56e7['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4e56e7['submitLabel']=N(this['locale'],'Save'),_0x4e56e7['on']('submit',(_0x36cf45,_0x4379b0)=>{this['fire']('updateComment',this['_model']['id'],_0x4379b0),this['switchToDisplayMode'](),this['focus']();}),_0x4e56e7['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x4e56e7['once']('editorReady',()=>{_0x4e56e7['focus']();}),_0x4e56e7['createEditor'](),_0x4e56e7['delegate']('editorReady')['to'](this),_0x4e56e7['delegate']('editorDestroyed')['to'](this),_0x4e56e7;}['_setupKeyboardNavigation'](){const _0x11f3d0=this['element'];this['keystrokes']['listenTo'](_0x11f3d0);for(const _0x33bcf0 of this['focusables'])this['focusTracker']['add'](_0x33bcf0['element']),this['keystrokes']['listenTo'](_0x33bcf0['element']);this['focusables']['on']('change',(_0x810449,_0x4b07cf)=>{for(const _0x5c6161 of _0x4b07cf['removed'])this['focusTracker']['remove'](_0x5c6161['element']),this['keystrokes']['stopListening'](_0x5c6161['element']);for(const _0x320301 of _0x4b07cf['added'])this['focusTracker']['add'](_0x320301['element']),this['keystrokes']['listenTo'](_0x320301['element']);}),this['keystrokes']['set']('enter',(_0x20b044,_0x17b891)=>{_0x11f3d0===_0x20b044['target']&&(this['focusCycler']['focusFirst'](),_0x17b891());}),this['keystrokes']['set']('esc',(_0x3059e8,_0xcf9b24)=>{_0x11f3d0!==_0x3059e8['target']&&(this['focus'](),_0xcf9b24());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x578638,_0x467f71,_0x92f48a){super(_0x578638,_0x467f71,_0x92f48a),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x578638,'Reply...')),this['bind']('authoredAt')['to'](_0x467f71),this['bind']('resolvedAt')['to'](_0x467f71),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x5b56e9(_0x578638,_0x467f71['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x467f71,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x60e353=this['bindTemplate'],_0x3adaab=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x60e353['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x60e353['to']('authoredAt',_0xa12657=>this['_config']['formatDateTime'](_0xa12657))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x60e353['if']('isEditMode','ck-comment__actions--hidden'),_0x60e353['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x3adaab['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x60e353['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x60e353['if']('isEditMode','ck-comment--edit'),_0x60e353['if']('isSystemComment','ck-comment--info'),_0x60e353['to']('actionIndicator',_0x5c3594=>_0x5c3594?'ck-comment--'+_0x5c3594:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x3adaab}]}]};}['_createEditButton'](){const _0x44c2f8=new _0x4e3d0d(this['locale']);return _0x44c2f8['label']=N(this['locale'],'Edit'),_0x44c2f8['icon']=_0xb61cb2,_0x44c2f8['withText']=!0x0,_0x44c2f8['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x44c2f8['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x540197=>!_0x540197),_0x44c2f8['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x44c2f8['on']('execute',()=>this['switchToEditMode']()),_0x44c2f8;}['_createRemoveButton'](){const _0x2921b4=new _0x4e3d0d(this['locale']);return _0x2921b4['label']=N(this['locale'],'Remove'),_0x2921b4['icon']=_0x1db4ed,_0x2921b4['withText']=!0x0,_0x2921b4['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x2921b4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x42fd6a=>!_0x42fd6a),_0x2921b4['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x2921b4['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x2921b4;}['_createDropdown'](){const _0x4fa700=_0xc83334(this['locale'],_0x45b110),_0x233cf6=_0x4fa700['panelView']['children'],_0xbddd74=new _0xbd61c1(this['locale']),_0x2f50e1=_0x4fa700['bindTemplate'];_0x582991(_0x4fa700,()=>this['items']['find'](_0x584af1=>_0x584af1['isVisible'])),_0x4fa700['extendTemplate']({'attributes':{'class':[_0x2f50e1['if']('isVisible','ck-hidden',_0x81056=>!_0x81056)]}});const _0x286a59=(_0x2a2609,_0x323420=-0x1)=>{const _0x3e8df2=new _0x34401b(this['locale']);_0x3e8df2['children']['add'](_0x2a2609);const _0x1fe183=_0x323420>-0x1?_0x323420:_0xbddd74['items']['length'];_0xbddd74['items']['add'](_0x3e8df2,_0x1fe183);const _0x3a054f=Array['from'](this['items']);_0x4fa700['unbind']('isEnabled','isVisible'),_0x4fa700['bind']('isEnabled')['toMany'](_0x3a054f,'isEnabled',(..._0x23fd76)=>_0x23fd76['some'](_0x1428d1=>_0x1428d1)),_0x4fa700['bind']('isVisible')['toMany'](_0x3a054f,'isVisible',(..._0x405ccc)=>_0x405ccc['some'](_0x9f037f=>_0x9f037f));};_0x4fa700['panelPosition']='sw',_0x4fa700['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x42e5f3});for(const _0x56e5d7 of this['items'])_0x286a59(_0x56e5d7);return _0x233cf6['add'](_0xbddd74),_0x4fa700['listenTo'](this['items'],'add',(_0x15cf0c,_0x5413a0,_0x48d2d6)=>{_0x286a59(_0x5413a0,_0x48d2d6);}),_0x4fa700['listenTo'](this['items'],'remove',(_0xcc3de1,_0x1673a7,_0x1a8eaa)=>{_0xbddd74['items']['remove'](_0x1a8eaa);}),_0x4fa700;}['_attachActions'](_0x2c9dca,_0x5395bc){const _0x535a92=_0x2c9dca&&_0x2c9dca['element'];_0x535a92&&(this['listenTo'](_0x535a92,'mouseenter',()=>this['actionIndicator']=_0x5395bc),this['listenTo'](_0x535a92,'focus',()=>this['actionIndicator']=_0x5395bc),this['listenTo'](_0x535a92,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x535a92,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x15e40e=super['_createCommentInputView']();return _0x15e40e['bind']('placeholder')['to'](this),_0x15e40e;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0xed37fa){const _0x3cb801=Dt(_0xed37fa,0x1e),_0x1d6551=new MutationObserver(_0x52f72b=>{for(const _0x441c09 of _0x52f72b)('attributes'==_0x441c09['type']&&'class'==_0x441c09['attributeName']||'childList'==_0x441c09['type']||'characterData'==_0x441c09['type'])&&_0x3cb801();});return{'attach'(_0x37ee47){_0x1d6551['observe'](_0x37ee47,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1d6551['disconnect'](),_0x3cb801['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x5e4800,_0x2a20b9){super(_0x5e4800),this['id']=_0x235337(),this['focusTracker']=new _0x4a39cb(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x410728,_0x1fc8ee)=>this['fire']('Esc',_0x1fc8ee)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x2a20b9),this['mainView']=_0x2a20b9;const _0x1e0ce6=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x1e0ce6['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x2cfa6b=this['element']['clientHeight'];_0x2cfa6b&&(this['height']=_0x2cfa6b);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x1c0814(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x5e4ddf,target:_0x414ced,type:_0x2335ef,isVisible:_0x22f021=!0x0}){super(),this['view']=_0x5e4ddf,this['view']['element']||this['view']['render'](),this['_type']=_0x2335ef,this['_target']=_0x414ced,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x5bd6e5([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x544e29,_0x1e10e0)=>{this['view']['focusTracker']['add'](_0x1e10e0);}),this['focusableElements']['on']('remove',(_0x3ec692,_0x408588)=>{this['view']['focusTracker']['remove'](_0x408588);}),this['set']('isVisible',_0x22f021);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x280942=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x280942),_0x280942;}get['targetRect'](){const _0x1ae376=this['target'];if(null===_0x1ae376)return null;if(_0x1ae376 instanceof _0x2208d7)return _0x1ae376;const _0x3dcdf4=_0x1ae376['filter'](_0x3304f4=>function(_0x5b8361){const _0x2ff351=_0x5b8361['offsetParent'];if(_0x2ff351)return!0x0;const _0x3f4fec=_0x5b8361['getClientRects']()['item'](0x0);return!!_0x3f4fec;}(_0x3304f4));return 0x0===_0x3dcdf4['length']?null:new _0x2208d7(_0x3dcdf4[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4615a3){this['view']['isActive']=_0x4615a3,this['view']['mainView']['isActive']=_0x4615a3;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x4d9259){if(!(null===_0x4d9259||_0x4d9259 instanceof _0x2208d7||Array['isArray'](_0x4d9259)&&_0x4d9259['every'](_0x25e46a=>fi(_0x25e46a))))throw new _0x2ac32c('annotation-invalid-target',null,{'target':_0x4d9259});}['_getNormalizedTarget'](){const _0x4c044e='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x4c044e)?[_0x4c044e]:_0x4c044e;}}function fi(_0x460c2d){return null!==_0x460c2d&&'object'==typeof _0x460c2d&&'nodeType'in _0x460c2d&&0x1===_0x460c2d['nodeType'];}class S extends _0x5bd6e5{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x2477e4=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4a39cb(),this['_focusTracker']['on']('change:isFocused',(_0x48650d,_0x2fe003,_0x33a6d3)=>{_0x33a6d3||this['fire']('blur');});for(const _0x157147 of _0x2477e4)this['add'](_0x157147);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x14109c){if(this['has'](_0x14109c))throw new _0x2ac32c('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x14109c['innerView'],_0x14109c),this['_viewToAnnotation']['set'](_0x14109c['view'],_0x14109c);for(const _0x338da2 of _0x14109c['focusableElements'])this['_focusTracker']['add'](_0x338da2);this['listenTo'](_0x14109c['focusableElements'],'add',(_0x42ab19,_0x32fe6)=>{this['_focusTracker']['add'](_0x32fe6);}),this['listenTo'](_0x14109c['focusableElements'],'remove',(_0x4a4257,_0x24bf9d)=>{this['_focusTracker']['remove'](_0x24bf9d);}),this['listenTo'](_0x14109c['view']['focusTracker'],'change:isFocused',(_0x39e802,_0x4e72d8,_0x4e080b)=>{_0x4e080b&&this['fire']('focus',_0x14109c);}),_0x14109c['updateTargetRect']();const _0x3b63b7=this['_getOrderInContent'](_0x14109c['view']['targetRect']);return super['add'](_0x14109c,_0x3b63b7);}['remove'](_0x16b6b9){if(!this['has'](_0x16b6b9))throw new _0x2ac32c('annotationcollection-not-existing-item',null);this['stopListening'](_0x16b6b9['view']['focusTracker']),this['stopListening'](_0x16b6b9['focusableElements']);for(const _0x1e0089 of _0x16b6b9['focusableElements'])this['_focusTracker']['remove'](_0x1e0089);return this['_viewToAnnotation']['delete'](_0x16b6b9['view']),this['_innerViewToAnnotation']['delete'](_0x16b6b9['innerView']),super['remove'](_0x16b6b9);}['getByInnerView'](_0x9a6aa0){return this['_innerViewToAnnotation']['get'](_0x9a6aa0);}['getByView'](_0x1a7678){return this['_viewToAnnotation']['get'](_0x1a7678);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1cca0e of this)_0x1cca0e['updateTargetRect']();this['_sort']();}['_sort'](){const _0x4fd834=Array['from'](this)['sort']((_0x3fcd30,_0x204697)=>w(_0x3fcd30['view']['targetRect'],_0x204697['view']['targetRect']));for(let _0x37e95e=_0x4fd834['length']-0x1;_0x37e95e>0x0;_0x37e95e--){const _0x4f2f46=_0x4fd834[_0x37e95e];_0x37e95e!==this['getIndex'](_0x4f2f46)&&(this['remove'](_0x4f2f46),this['add'](_0x4f2f46));}}['_getOrderInContent'](_0x4c2708){let _0x16b22a=0x0;if(!_0x4c2708)return this['length'];for(const _0x5887ac of this){const _0x29512c=_0x5887ac['view']['targetRect'];if(_0x29512c){if(w(_0x4c2708,_0x29512c)<0x0)return _0x16b22a;_0x16b22a++;}}return _0x16b22a;}}function v({source:_0x5dd7a6,target:_0x2178e0,filter:_0xe3a2ae}){for(const _0x5b8aac of _0x5dd7a6)_0xe3a2ae(_0x5b8aac)&&_0x2178e0['add'](_0x5b8aac);_0x2178e0['listenTo'](_0x5dd7a6,'add',(_0x2dbce7,_0x3e332a)=>{_0xe3a2ae(_0x3e332a)&&_0x2178e0['add'](_0x3e332a);}),_0x2178e0['listenTo'](_0x5dd7a6,'remove',(_0x3b9a27,_0x46945c)=>{_0x2178e0['has'](_0x46945c)&&_0x2178e0['remove'](_0x46945c);});}function w(_0x446720,_0x44aca7){if(null===_0x446720&&null===_0x44aca7)return 0x0;if(null===_0x446720)return-0x1;if(null===_0x44aca7)return 0x1;const _0x386373=_0x446720['top']-_0x44aca7['top'];return 0x0==_0x386373?_0x446720['left']-_0x44aca7['left']:_0x386373;}class y extends _0x37562f{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x233f8b){if(super(_0x233f8b),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x233f8b instanceof _0x366989){const _0x214949=_0x233f8b['locale'];_0x233f8b['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x214949,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x214949,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x214949,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x214949,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x214949,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x214949,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x214949,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x404435){this['collection']['add'](_0x404435);}['remove'](_0x151fd4){this['collection']['remove'](_0x151fd4),_0x151fd4['destroy']();}['refreshVisibility'](){for(const _0x39670d of this['collection'])_0x39670d['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2776d6){return this['collection']['getByInnerView'](_0x2776d6);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3e3784 of this['collection'])_0x3e3784['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x28ace1){this['fire']('_activateAnnotation',_0x28ace1);}['createAnnotation'](_0x280cb4){return new T(_0x280cb4);}['createAnnotationView'](_0x3a796b,_0x53802b){return new E(_0x3a796b,_0x53802b);}['_addActiveAnnotation'](_0x7f8733){const _0x2aab6e=new Set(this['activeAnnotations']);_0x2aab6e['add'](_0x7f8733),this['activeAnnotations']=_0x2aab6e;}['_removeActiveAnnotation'](_0x291886){const _0x4af7c9=new Set(this['activeAnnotations']);_0x4af7c9['delete'](_0x291886),this['activeAnnotations']=_0x4af7c9;}['_bindAnnotationsToVisibleAnnotations'](){const _0x24a1d4=this['collection'],_0x5dd7d8=this['_visibleAnnotations'];function _0x2c1b79(_0x2d029c){const _0x41a2ec=_0x2d029c['source'];_0x41a2ec['isVisible']&&!_0x5dd7d8['has'](_0x41a2ec)?_0x5dd7d8['add'](_0x41a2ec):!_0x41a2ec['isVisible']&&_0x5dd7d8['has'](_0x41a2ec)&&_0x5dd7d8['remove'](_0x41a2ec),_0x41a2ec['view']['focusTracker']['remove'](_0x41a2ec['view']['element']),_0x41a2ec['view']['focusTracker']['add'](_0x41a2ec['view']['element']);}this['listenTo'](_0x24a1d4,'add',(_0x27b5a0,_0x5e9e3c)=>{_0x5e9e3c['isVisible']&&_0x5dd7d8['add'](_0x5e9e3c),this['listenTo'](_0x5e9e3c,'change:isVisible',_0x2c1b79);}),this['listenTo'](_0x24a1d4,'remove',(_0x2ccf63,_0x2c6f0e)=>{_0x5dd7d8['has'](_0x2c6f0e)&&_0x5dd7d8['remove'](_0x2c6f0e),this['stopListening'](_0x2c6f0e,'change:isVisible',_0x2c1b79);});}['_setupEnterAnnotationKeystroke'](){const _0x2f3693=_0x65497b=>{_0x65497b['on']('ready',()=>{_0x65497b['keystrokes']['set'](_0xc63e21,(_0x1c0a49,_0x344c81)=>{const _0xc7c1cf=_0x1117c7(this['activeAnnotations']['values']());_0xc7c1cf&&(_0xc7c1cf['view']['focus'](),_0x344c81());});});};this['context']instanceof _0x366989?_0x2f3693(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x7b119f,_0x4fd204)=>{_0x2f3693(_0x4fd204);});}['_setupEscapeAnnotationHandling'](){const _0x18c1eb=_0x2267b1=>{const _0x4ef102=_0x2267b1['source'],_0x1b89a9=[];let _0x1afd77;if(Array['isArray'](_0x4ef102['target'])){_0x1afd77=_0x4ef102['target'][0x0],this['context']instanceof _0x366989?_0x1b89a9['push'](this['context']):this['context']['editors']&&_0x1b89a9['push'](...this['context']['editors']);for(const _0x3f419e of _0x1b89a9)for(const _0x24a8a5 of _0x3f419e['editing']['view']['domRoots']['values']())if(_0x24a8a5['contains'](_0x1afd77))return void _0x3f419e['editing']['view']['focus']();_0x1afd77['focus']();}};this['listenTo'](this['collection'],'add',(_0x668166,_0x29897e)=>{this['listenTo'](_0x29897e,'escape',_0x18c1eb,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x5c2cbd,_0x10406c)=>{this['stopListening'](_0x10406c,'escape',_0x18c1eb);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x37562f{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b2637){super(_0x2b2637),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x5b6db3=this['context']['config'];_0x5b6db3['define']('comments.maxCommentsWhenCollapsed',0x2),_0x5b6db3['define']('comments.maxThreadTotalWeight',0x1f4),_0x5b6db3['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x5b6db3['define']('comments.CommentThreadView',gt),_0x5b6db3['define']('comments.CommentView',Tt),_0x5b6db3['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x13d9e9=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x574917,_0x27e33d)=>this['_addCommentThread'](_0x27e33d)),this['on']('submitCommentThread',(_0x3db433,_0x304c55)=>this['_submitCommentThread'](_0x304c55)),this['on']('resolveCommentThread',(_0x5c0673,_0x1d8e1b)=>this['_resolveCommentThread'](_0x1d8e1b)),this['on']('resolveCommentThread',(_0x59e9f0,_0x398b53)=>this['_updateActiveAnnotation'](_0x398b53),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x2f0eae,_0x25f89d)=>this['_reopenCommentThread'](_0x25f89d)),this['on']('reopenCommentThread',(_0x248ab6,_0x32703c)=>this['_updateActiveAnnotation'](_0x32703c),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x49f12a,_0x245d9d)=>this['_removeCommentThread'](_0x245d9d)),this['on']('updateCommentThread',(_0x4670ae,_0x51f9a7)=>this['_updateCommentThread'](_0x51f9a7)),this['on']('updateCommentThread',(_0x4b7353,_0x38cdc8)=>this['_updateActiveAnnotation'](_0x38cdc8),{'priority':'lowest'}),this['on']('addComment',(_0x537fe1,_0x57c49b)=>this['_addComment'](_0x57c49b)),this['on']('updateComment',(_0x51901d,_0x1df9f9)=>this['_updateComment'](_0x1df9f9)),this['on']('removeComment',(_0xcc1adf,_0x366384)=>this['_removeComment'](_0x366384)),this['on']('addComment',(_0x12048d,{threadId:_0xf9fdfe,isFromAdapter:_0xe3decf})=>{if(_0xe3decf)return;const _0x18425e=this['getCommentThread'](_0xf9fdfe),_0x29478e=_0x18425e&&this['_threadToController']['get'](_0x18425e);_0x29478e&&_0x29478e['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x13d9e9,'change:activeAnnotations',(_0xab99d4,_0x20f849,_0x24d989)=>{const _0x2f12f4=Array['from'](_0x24d989)['map'](_0x17b301=>this['_viewToController']['get'](_0x17b301['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x2f12f4?_0x2f12f4['model']:null;});}set['adapter'](_0x3d5d3e){if(this['_adapter'])throw new _0x2ac32c('commentsrepository-adapter-already-set');this['_adapter']=_0x3d5d3e;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4edd4d=_t,threadId:_0x1f16ca=_0x235337(),comments:_0x1f6310=[],unlinkedAt:_0x29b403=null,resolvedAt:_0x11b4a0=null,resolvedBy:_0x472e40=null,target:_0x41fa30=null,context:_0x1ad52d=null,attributes:_0x5cf401={},isResolvable:_0x49a87d=!0x0,isSubmitted:_0x4626ce=!0x1,isFromAdapter:_0x42431a=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x4edd4d),{'channelId':_0x4edd4d,'threadId':_0x1f16ca,'comments':_0x1f6310,'unlinkedAt':_0x29b403,'resolvedAt':_0x11b4a0,'resolvedBy':_0x472e40,'target':_0x41fa30,'context':_0x1ad52d,'attributes':_0x5cf401,'isFromAdapter':_0x42431a,'isResolvable':_0x49a87d,'isSubmitted':_0x4626ce}),this['getCommentThread'](_0x1f16ca);}['openNewCommentThread']({channelId:_0x14fcb6=_t,threadId:_0x3b76fe=_0x235337(),target:_0x1c61df,context:_0x5e0598=null,isResolvable:_0x27e538=!0x0}){if(this['_readOnlyChannels']['has'](_0x14fcb6)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x1c61df)throw new _0x2ac32c('commentsrepository-missing-target');const _0xed7fab=this['addCommentThread']({'channelId':_0x14fcb6,'threadId':_0x3b76fe,'target':_0x1c61df,'context':_0x5e0598,'isResolvable':_0x27e538});if(!_0xed7fab)return null;const _0x1849f5=this['_threadToController']['get'](_0xed7fab),_0x4b9511=_0x1849f5['view']['commentThreadInputView']['commentInputView'],_0x399a2b=this['context']['plugins']['get'](y),_0x2549cc=_0x399a2b['getByInnerView'](_0x1849f5['view']);return _0x399a2b['activate'](_0x2549cc),_0x4b9511['once']('editorReady',()=>_0x4b9511['focus']()),_0xed7fab;}['hasCommentThread'](_0x3dff38){if('string'!=typeof _0x3dff38)throw new _0x2ac32c('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x3dff38);}['updateCommentThread']({channelId:_0x4ebb28=_t,threadId:_0x57e940,context:_0x3b02d9,unlinkedAt:_0x5a8758,attributes:_0x30523d,isFromAdapter:_0x13a764=!0x1}){return this['fire'](Nt('updateCommentThread',_0x4ebb28),{'channelId':_0x4ebb28,'threadId':_0x57e940,'context':_0x3b02d9,'unlinkedAt':_0x5a8758,'attributes':_0x30523d,'isFromAdapter':_0x13a764}),this['getCommentThread'](_0x57e940);}['getCommentThread'](_0x15ce21){if('string'!=typeof _0x15ce21)throw new _0x2ac32c('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x15ce21);}['fetchCommentThread']({channelId:_0x3e2df5,threadId:_0x5c5579}={}){const _0x427cc7=this['getCommentThread'](_0x5c5579);if(_0x427cc7)return Promise['resolve'](_0x427cc7);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2ac32c('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x3e2df5,'threadId':_0x5c5579})['then'](_0x34c591=>this['hasCommentThread'](_0x5c5579)?this['getCommentThread'](_0x5c5579):_0x34c591?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x3e2df5},_0x34c591)):void 0x0)['catch'](_0x4d55bd=>{throw console['error'](_0x4d55bd),new _0x2ac32c('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1aaf96,skipNotAttached:_0x7f1ab=!0x1,skipEmpty:_0x447510=!0x1,toJSON:_0x473c40=!0x1}={}){const _0x219d09=[];for(const _0x295b2c of this['_threads']['values']())_0x1aaf96&&_0x295b2c['channelId']!==_0x1aaf96||_0x7f1ab&&!_0x295b2c['isAttached']||_0x447510&&0x0===_0x295b2c['length']||_0x219d09['push'](_0x295b2c);return _0x473c40?_0x219d09['map'](_0x454891=>_0x454891['toJSON']()):_0x219d09;}['getAnnotationForCommentThread'](_0x4269b1){const _0x2238b4=this['_threadToController']['get'](_0x4269b1);if(!_0x2238b4)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x2238b4['view'])||null;}['getCommentThreadForAnnotation'](_0x48fde5){const _0x45b03b=this['_viewToController']['get'](_0x48fde5['innerView']);return _0x45b03b?_0x45b03b['model']:null;}['setActiveCommentThread'](_0xd4fac2){const _0x46fc02=this['context']['plugins']['get'](y);if(!_0xd4fac2)return void(this['activeCommentThread']&&_0x46fc02['deactivateAll']());const _0x122941=this['getCommentThread'](_0xd4fac2);if(!_0x122941)throw new _0x2ac32c('commentsrepository-active-missing-comment-thread',null,{'threadId':_0xd4fac2});if(!this['_threadToController']['has'](_0x122941))throw new _0x2ac32c('commentsrepository-active-not-attached',null,{'threadId':_0xd4fac2});const _0x587d61=_0x46fc02['getByInnerView'](this['_threadToController']['get'](_0x122941)['view']);_0x46fc02['activate'](_0x587d61);}['switchReadOnly'](_0x1a425f,_0x2e48df){_0x1a425f?this['_readOnlyChannels']['add'](_0x2e48df):this['_readOnlyChannels']['delete'](_0x2e48df),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x419d04){return this['_readOnlyChannels']['has'](_0x419d04)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x503031,_0x361072){return new vt(_0x503031,_0x361072);}['setPermissions'](_0x11b2bd,_0x29d5d3=_t){this['_permissions']['set'](_0x29d5d3,_0x11b2bd),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x565e58=_t){return this['_permissions']['has'](_0x565e58)?this['_permissions']['get'](_0x565e58):bt;}['_addCommentThread']({channelId:_0x3e12e3,threadId:_0x4b6d85,comments:_0x483014,unlinkedAt:_0x40ee7d,resolvedAt:_0x45e8c9,resolvedBy:_0xba03d3,target:_0x1ca562,context:_0x220e5b,attributes:_0x1a108a,isFromAdapter:_0x4ace3d,isResolvable:_0x59ffe0,isSubmitted:_0x1a3104}){if('string'!=typeof _0x4b6d85)throw new _0x2ac32c('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4b6d85});if(this['hasCommentThread'](_0x4b6d85))throw new _0x2ac32c('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x4b6d85});const _0x55cb36=new pi(this,{'channelId':_0x3e12e3,'id':_0x4b6d85,'context':_0x220e5b,'attributes':_0x1a108a,'unlinkedAt':_0x40ee7d,'resolvedAt':_0x45e8c9,'resolvedBy':_0xba03d3?this['context']['plugins']['get'](it)['getUser'](_0xba03d3):null,'isResolvable':_0x59ffe0,'isSubmitted':_0x1a3104||_0x4ace3d});this['_threads']['set'](_0x4b6d85,_0x55cb36);for(const _0xbce748 of _0x483014)_0x55cb36['_add'](this['_createNewComment']({'threadId':_0x4b6d85,..._0xbce748}));return _0x1ca562&&_0x55cb36['attachTo'](_0x1ca562),_0x4ace3d||!_0x55cb36['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3e12e3,'threadId':_0x4b6d85});}['_submitCommentThread']({channelId:_0x1499df,threadId:_0x1344b2}){if(!this['hasCommentThread'](_0x1344b2))throw new _0x2ac32c('commentsrepository-missing-comment-thread',this);const _0x6e7e9d=this['getCommentThread'](_0x1344b2);if(_0x6e7e9d['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x410156,comments:_0x4e07fa,resolvedAt:_0x52249d,resolvedBy:_0x24b2f5,context:_0x4dade4,attributes:_0x37862d}=_0x6e7e9d,_0x3bc4de=this['context']['plugins']['get']('PendingActions'),_0x4d8522=_0x3bc4de['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1499df,'threadId':_0x410156,'comments':_0x4e07fa['map'](_0x573af1=>_0x573af1['toJSON']()),'resolvedAt':_0x52249d,'resolvedBy':_0x24b2f5?_0x24b2f5['id']:_0x24b2f5,'context':_0x4dade4,'attributes':_0x37862d})['then'](({comments:_0x30fe6c})=>{_0x3bc4de['remove'](_0x4d8522);for(const _0x3269c9 of _0x30fe6c)this['_updateComment']({'channelId':_0x1499df,'threadId':_0x1344b2,'commentId':_0x3269c9['commentId'],'createdAt':_0x3269c9['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2975bb=>{throw console['error'](_0x2975bb),new _0x2ac32c('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x527e0b,target:_0x1b129d}){const _0x314640=this['getCommentThread'](_0x527e0b);if(!_0x314640)throw new _0x2ac32c('commentsrepository-attach-missing-comment-thread',this);const _0xb13716=this['context']['plugins']['get']('PendingActions'),_0xf66f0=this['context']['plugins']['get'](y),_0x570aaf=this['_createCommentThreadView'](_0x314640),_0xe158cc=new vt(_0x314640,_0x570aaf);let _0x2586e1=null;_0x570aaf['on']('change:isDirty',(_0x93b2b,_0x29678a,_0x1341fc)=>{_0x1341fc?_0x2586e1=_0xb13716['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x2586e1&&(_0xb13716['remove'](_0x2586e1),_0x2586e1=null);}),this['_threadToController']['set'](_0x314640,_0xe158cc),this['_viewToController']['set'](_0x570aaf,_0xe158cc);const _0x2294eb=new E(this['context']['locale'],_0x570aaf);_0x2294eb['bind']('length')['to'](_0x570aaf),_0x2294eb['bind']('isDirty')['to'](_0x570aaf,'isDirty',_0x570aaf,'length',(_0x4e4e2c,_0x1023e8)=>_0x4e4e2c||!_0x1023e8),_0x2294eb['bind']('isActive')['to'](_0x570aaf),_0x2294eb['type']='comment';const _0x576577=new T({'view':_0x2294eb,'target':_0x1b129d,'type':'comment','isVisible':!_0x314640['archivedAt']&&!!('function'==typeof _0x1b129d?_0x1b129d():_0x1b129d)});return _0x570aaf['on']('escape',()=>{_0x576577['fire']('escape');}),this['_bindAnnotationToEditors'](_0x570aaf,_0x576577),_0xf66f0['add'](_0x576577),_0x576577;}['_bindAnnotationToEditors'](_0x432c80,_0x209327){this['listenTo'](_0x432c80,'editorReady',(_0x3d5526,_0x47faf1)=>{const _0x3b395d=_0x47faf1['ui']['view']['body']['bodyCollectionContainer'];_0x209327['focusableElements']['add'](_0x3b395d),this['context']instanceof _0x366989&&this['context']['ui']['focusTracker']['add'](_0x3b395d);},{'priority':'highest'}),this['listenTo'](_0x432c80,'editorDestroyed',(_0xcc9672,_0x2a05ea)=>{const _0x3f6da0=_0x2a05ea['ui']['view']['body']['bodyCollectionContainer'];_0x209327['focusableElements']['has'](_0x3f6da0)&&_0x209327['focusableElements']['remove'](_0x3f6da0),this['context']instanceof _0x366989&&this['context']['ui']['focusTracker']['remove'](_0x3f6da0);});}['_unbindEditors'](_0x15ee61){this['stopListening'](_0x15ee61,'editorReady'),this['stopListening'](_0x15ee61,'editorDestroyed');}['_createCommentThreadView'](_0x4a04e4){const _0x546f22=this['context']['plugins']['get'](it),{config:_0x200b04,locale:_0xee22fe}=this['context'],_0x54f64e=pt(_0x200b04['get']('locale'),_0xee22fe);return new(0x0,(_0x200b04['get']('comments'))['CommentThreadView'])(_0xee22fe,_0x4a04e4,_0x546f22['me'],{'editorConfig':{..._0x200b04['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x200b04['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x200b04['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x200b04['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x200b04['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x54f64e,'CommentView':_0x200b04['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x41661d,channelId:_0x17305c,resolvedAt:_0x5cbaab,resolvedBy:_0x4b8175,isFromAdapter:_0x10b6d6}){if(!this['hasCommentThread'](_0x41661d))throw new _0x2ac32c('commentsrepository-missing-comment-thread',null,{'threadId':_0x41661d});const _0xaa4db7=this['getCommentThread'](_0x41661d);if(_0xaa4db7['isResolved'])throw new _0x2ac32c('commentsrepository-resolved-comment-thread',null,{'threadId':_0x41661d});const _0xdb4e38=this['context']['plugins']['get'](it);if(_0xaa4db7['resolvedBy']=_0xdb4e38['getUser'](_0x4b8175),_0xaa4db7['resolvedAt']=_0x5cbaab,_0x10b6d6||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x4c03e0=this['context']['plugins']['get']('PendingActions'),_0x11dd1d=_0x4c03e0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x17305c,'threadId':_0x41661d})['then'](({resolvedAt:_0x2a628b,resolvedBy:_0xa261b9})=>{_0x4c03e0['remove'](_0x11dd1d),_0xaa4db7['resolvedBy']['id']!==_0xa261b9&&(_0xaa4db7['resolvedBy']=_0xdb4e38['getUser'](_0xa261b9)),_0xaa4db7['resolvedAt']=_0x2a628b;})['catch'](_0x20c5a3=>{throw console['error'](_0x20c5a3),new _0x2ac32c('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1cb313,channelId:_0x1e5a28,isFromAdapter:_0x4f9470}){if(!this['hasCommentThread'](_0x1cb313))throw new _0x2ac32c('commentsrepository-missing-comment-thread',null,{'threadId':_0x1cb313});const _0x51194e=this['getCommentThread'](_0x1cb313);if(!_0x51194e['isResolved'])throw new _0x2ac32c('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1cb313});if(_0x51194e['resolvedBy']=null,_0x51194e['resolvedAt']=null,_0x4f9470||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x4286ac=this['context']['plugins']['get']('PendingActions'),_0x16f1d1=_0x4286ac['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x1e5a28,'threadId':_0x1cb313})['then'](()=>_0x4286ac['remove'](_0x16f1d1))['catch'](_0x5dd2e3=>{throw console['error'](_0x5dd2e3),new _0x2ac32c('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x14e93a,isFromAdapter:_0x439381}){const _0x21e40f=this['getCommentThread'](_0x14e93a);if(!_0x21e40f)throw new _0x2ac32c('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x14e93a),this['_threads']['delete'](_0x14e93a),!_0x21e40f['isSubmitted']||_0x439381||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x55c1bc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3c7428}=_0x21e40f,_0x240e1e=_0x55c1bc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3c7428,'threadId':_0x14e93a})['then'](()=>_0x55c1bc['remove'](_0x240e1e))['catch'](_0x33a7ec=>{throw console['error'](_0x33a7ec),new _0x2ac32c('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x387874,unlinkedAt:_0x40bee5,context:_0x41955d,attributes:_0x26f058,isFromAdapter:_0x3fc7a8}){if('string'!=typeof _0x387874)throw new _0x2ac32c('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x387874});if(!this['hasCommentThread'](_0x387874))throw new _0x2ac32c('commentsrepository-missing-comment-thread',null,{'threadId':_0x387874});const _0x83043d=this['getCommentThread'](_0x387874);let _0x31efb9=!0x1;if(void 0x0!==_0x41955d&&_0x83043d['context']!==_0x41955d&&(_0x83043d['context']=_0x41955d,_0x31efb9=!0x0),void 0x0!==_0x40bee5&&_0x83043d['unlinkedAt']!==_0x40bee5&&(_0x83043d['unlinkedAt']=_0x40bee5,_0x31efb9=!0x0),_0x26f058&&!At(_0x26f058,_0x83043d['attributes'])&&(_0x83043d['attributes']=_0x26f058,_0x31efb9=!0x0),!_0x31efb9)return Promise['resolve']();if(!_0x83043d['isSubmitted']||_0x3fc7a8||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4af266=this['context']['plugins']['get']('PendingActions'),{channelId:_0x407332}=_0x83043d,_0x166b33=_0x4af266['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x407332,'threadId':_0x387874,'context':_0x41955d,'unlinkedAt':_0x40bee5,'attributes':_0x26f058})['then'](()=>_0x4af266['remove'](_0x166b33))['catch'](_0x56b70f=>{throw console['error'](_0x56b70f),new _0x2ac32c('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x37a62b){const _0x530b94=this['context']['plugins']['get'](y),_0x553f0d=this['getCommentThread'](_0x37a62b);if(_0x553f0d['_isAttached']=!0x1,this['_threadToController']['has'](_0x553f0d)){const _0x330961=this['_threadToController']['get'](_0x553f0d),_0x21750a=_0x330961['view'],_0x645a28=_0x530b94['getByInnerView'](_0x21750a);this['_threadToController']['delete'](_0x553f0d),this['_viewToController']['delete'](_0x21750a),_0x645a28&&_0x530b94['remove'](_0x645a28),_0x330961['destroy'](),_0x21750a['destroy']()['then'](()=>{this['_unbindEditors'](_0x21750a);});}}['_updateActiveAnnotation']({threadId:_0x3ba1ce,resolvedAt:_0x44e761,unlinkedAt:_0xa52a12}){const _0x269999=!!_0x44e761,_0x19fec1=this['context']['plugins']['get'](y),_0x2b20cd=this['getCommentThread'](_0x3ba1ce);if(this['_threadToController']['has'](_0x2b20cd)){const _0x9d5e71=this['_threadToController']['get'](_0x2b20cd)['view'],_0x1350d6=_0x19fec1['getByInnerView'](_0x9d5e71);_0x1350d6&&(_0x269999&&_0x19fec1['_removeActiveAnnotation'](_0x1350d6),_0xa52a12?_0x1350d6['isVisible']=!0x1:_0x1350d6['refreshVisibility']());}}['_getExternalAuthor'](_0x58cb1d){const _0x464424=this['context']['plugins']['get'](it),_0x129b64=It('external:'+_0x58cb1d),_0x396b4a=_0x464424['getUser'](_0x129b64);return _0x396b4a||_0x464424['addUser']({'id':_0x129b64,'name':_0x58cb1d});}['_createNewComment']({threadId:_0x56a928,commentId:_0xc91950=_0x235337(),content:_0x2fa1b8,authorId:_0x5aa115,createdAt:_0x57df5f,attributes:_0xe049a1}){if('string'!=typeof _0xc91950)throw new _0x2ac32c('commentsrepository-invalid-commentid');if('string'!=typeof _0x5aa115)throw new _0x2ac32c('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2fa1b8||!_0x2fa1b8['trim']())throw new _0x2ac32c('commentsrepository-invalid-comment-content');const _0x1d1881=this['context']['plugins']['get'](it)['getUser'](_0x5aa115);if(!_0x1d1881)throw new _0x2ac32c('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x5aa115});let _0x174b4f=null,_0x55f9d4=_0x57df5f;return _0xe049a1?.['@external']&&(_0x174b4f=this['_getExternalAuthor'](_0xe049a1['@external']['authorName']),_0x55f9d4=new Date(_0xe049a1['@external']['createdAt'])),new wi(this,{'threadId':_0x56a928,'id':_0xc91950,'author':_0x174b4f||_0x1d1881,'creator':_0x1d1881,'content':_0x2fa1b8,'createdAt':_0x57df5f,'authoredAt':_0x55f9d4,'attributes':_0xe049a1});}['_addComment'](_0x55d7c1){let {threadId:_0x437a03,content:_0x486ef7,attributes:_0x200294,isFromAdapter:_0xa84dce}=_0x55d7c1;const _0x3084bf=this['getCommentThread'](_0x55d7c1['threadId']);if(!_0x3084bf)throw new _0x2ac32c('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x36be5f=this['_createNewComment'](_0x55d7c1),{id:_0x37ef46}=_0x36be5f;if(_0x3084bf['_add'](_0x36be5f),_0xa84dce||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x3084bf['isSubmitted'])return Promise['resolve']();const _0x2ec7a4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5e955e}=_0x3084bf,_0x445f50=_0x2ec7a4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x200294||(_0x200294={}),this['adapter']['addComment']({'channelId':_0x5e955e,'threadId':_0x437a03,'commentId':_0x37ef46,'content':_0x486ef7,'attributes':_0x200294})['then'](_0x63c458=>{_0x2ec7a4['remove'](_0x445f50),_0x63c458&&this['_updateComment']({'channelId':_0x5e955e,'threadId':_0x437a03,'commentId':_0x37ef46,'createdAt':_0x63c458['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3776de=>{throw console['error'](_0x3776de),new _0x2ac32c('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x37433e,commentId:_0x271f01,content:_0x2ba9f7,createdAt:_0x2d91b5,attributes:_0x5546ad,isFromAdapter:_0x52a0c0}){if(void 0x0!==_0x2ba9f7&&('string'!=typeof _0x2ba9f7||!_0x2ba9f7['trim']()['length']))throw new _0x2ac32c('commentsrepository-update-comment-invalid-content');const _0x31d84f=this['getCommentThread'](_0x37433e),_0x3285bf=_0x31d84f['getComment'](_0x271f01);if(!_0x3285bf)throw new _0x2ac32c('commentsrepository-update-missing-comment',this);let _0x248a5f=!0x1;if(_0x2ba9f7&&_0x2ba9f7!==_0x3285bf['content']&&(_0x3285bf['isEditable']||_0x52a0c0)&&(_0x3285bf['content']=_0x2ba9f7,_0x248a5f=!0x0),_0x2d91b5&&_0x2d91b5!==_0x3285bf['createdAt']&&(_0x3285bf['createdAt']=_0x2d91b5,_0x3285bf['attributes']&&_0x3285bf['attributes']['@external']||(_0x3285bf['authoredAt']=_0x2d91b5),_0x248a5f=!0x0),_0x5546ad&&!At(_0x5546ad,_0x3285bf['attributes'])&&(_0x3285bf['attributes']=_0x5546ad,_0x248a5f=!0x0),!_0x248a5f)return Promise['resolve']();if(_0x31d84f['fire']('commentUpdated'),_0x52a0c0||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x2331ac=this['context']['plugins']['get']('PendingActions'),{channelId:_0x53d5d8}=this['getCommentThread'](_0x3285bf['threadId']),_0x4cc351=_0x2331ac['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x53d5d8,'threadId':_0x37433e,'commentId':_0x271f01,'content':_0x2ba9f7,'attributes':_0x5546ad})['then'](()=>_0x2331ac['remove'](_0x4cc351))['catch'](_0x463a9c=>{throw console['error'](_0x463a9c),new _0x2ac32c('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x1bfccc,commentId:_0x308855,isFromAdapter:_0x2e7a0d}){const _0x2ad925=this['getCommentThread'](_0x1bfccc),_0x33d41c=_0x2ad925['getComment'](_0x308855);if(!_0x33d41c)throw new _0x2ac32c('commentsrepository-remove-missing-comment',this);if(_0x2ad925['_remove'](_0x33d41c),_0x2e7a0d||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x5320fc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4d11a2}=_0x2ad925,_0x114179=_0x5320fc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x4d11a2,'threadId':_0x1bfccc,'commentId':_0x308855})['then'](()=>_0x5320fc['remove'](_0x114179))['catch'](_0x59b30d=>{throw console['error'](_0x59b30d),new _0x2ac32c('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x1c0814(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4921b1,_0x505e4f){super();const _0xffd0e5=_0x505e4f['isResolvable'];this['channelId']=_0x505e4f['channelId'],this['id']=_0x505e4f['id'],this['comments']=new _0x5bd6e5(),this['_repository']=_0x4921b1,this['_isAttached']=!0x1,this['_isSubmitted']=_0x505e4f['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4921b1,'_permissions',_0x4921b1,'_readOnlyChannels',()=>_0x4921b1['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4921b1,'_permissions',()=>_0x4921b1['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4921b1,'_permissions',()=>{const _0x51ff98=_0x4921b1['getPermissions'](this['channelId']);return _0x51ff98['write']||_0x51ff98['admin'];}),this['bind']('isResolvable')['to'](_0x4921b1,'_permissions',()=>_0xffd0e5&&_0x4921b1['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x505e4f['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x3b5e4b,_0x3cc834)=>_0x3b5e4b?_0x3cc834?_0x3b5e4b<_0x3cc834?_0x3b5e4b:_0x3cc834:_0x3b5e4b:_0x3cc834),this['set']('unlinkedAt',_0x505e4f['unlinkedAt']||null),this['set']('resolvedAt',_0x505e4f['resolvedAt']||null),this['set']('resolvedBy',_0x505e4f['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0xff84e1=>!!_0xff84e1),this['set']('attributes',_0x505e4f['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x5601b2,_0x290a3d)=>_0x5601b2+_0x290a3d['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2dd92c,id:_0x1e6db0}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x2dd92c),{'channelId':_0x2dd92c,'threadId':_0x1e6db0});}['setUnlinkedAt'](_0x390164){this['_update']({'unlinkedAt':_0x390164});}['resolve']({resolvedAt:_0x521058=new Date(),resolvedBy:_0x172001='',isFromAdapter:_0x34fe6e=!0x1}={}){const _0x2185b0=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x29cb89,id:_0xc9760c}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x29cb89),{'channelId':_0x29cb89,'threadId':_0xc9760c,'resolvedAt':_0x521058,'resolvedBy':_0x172001||_0x2185b0['id'],'isFromAdapter':_0x34fe6e});}['reopen']({isFromAdapter:_0x3e539a=!0x1}={}){const {channelId:_0x26c6e0,id:_0x5d1cd1}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x26c6e0),{'channelId':_0x26c6e0,'threadId':_0x5d1cd1,'isFromAdapter':_0x3e539a});}['setContext'](_0x1c4821){this['context']||this['_update']({'context':_0x1c4821});}['setAttribute'](_0x22deef,_0x1aef3b){const _0x5726f6=wt(this['attributes']);yt(_0x5726f6,_0x22deef,_0x1aef3b),this['_update']({'attributes':_0x5726f6});}['removeAttribute'](_0x10e20f){const _0x1ca77b=wt(this['attributes']);Ct(_0x1ca77b,_0x10e20f),this['_update']({'attributes':_0x1ca77b});}['remove']({isFromAdapter:_0xca3908=!0x1}={}){const {channelId:_0x133afc,id:_0x2460e8}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x133afc),{'channelId':_0x133afc,'threadId':_0x2460e8,'isFromAdapter':_0xca3908});}['attachTo'](_0x1260ff){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1260ff});}['addComment'](_0x2e0a31){const {channelId:_0x4af1a5,id:_0x1810ad}=this;this['_repository']['fire'](Nt('addComment',_0x4af1a5,_0x1810ad),Object['assign']({'channelId':_0x4af1a5,'threadId':_0x1810ad},_0x2e0a31));}['getComment'](_0x8488d){if('string'!=typeof _0x8488d)throw new _0x2ac32c('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x8488d});return this['comments']['get'](_0x8488d);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x129b3b=>_0x129b3b['toJSON']()),'attributes':this['attributes']};}['_add'](_0x1211e7){return this['listenTo'](_0x1211e7,'change:authoredAt',()=>{const _0x5819e7=this['_findOptimalIndex'](_0x1211e7),_0x1904e6=this['comments'];_0x5819e7-0x1!=_0x1904e6['getIndex'](_0x1211e7)&&_0x5819e7+0x1!=_0x1904e6['getIndex'](_0x1211e7)&&(this['_remove'](_0x1211e7),this['_add'](_0x1211e7));}),this['comments']['add'](_0x1211e7,this['_findOptimalIndex'](_0x1211e7));}['_update'](_0xb859ff){const {channelId:_0x2a087f,id:_0x1aeab7}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x2a087f),{..._0xb859ff,'channelId':_0x2a087f,'threadId':_0x1aeab7});}['_remove'](_0x255369){return this['stopListening'](_0x255369),_0x255369['destroy'](),this['comments']['remove'](_0x255369);}['_findOptimalIndex'](_0x484b71){const _0x186368=this['comments']['find'](_0x35b628=>new Date(_0x35b628['authoredAt'])['getTime']()>new Date(_0x484b71['authoredAt'])['getTime']());return _0x186368?this['comments']['getIndex'](_0x186368):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x1c0814(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x4f80ee,_0x4d227c){super();const _0x2d9194=_0x4f80ee['context']['plugins']['get'](it)['me'],_0x38ef20=_0x4f80ee['getCommentThread'](_0x4d227c['threadId']),_0x31b4b3=0x0===_0x38ef20['comments']['length'],_0x2f2e56=_0x2d9194===_0x4d227c['author'];this['id']=_0x4d227c['id'],this['threadId']=_0x4d227c['threadId'],this['author']=_0x4d227c['author'],this['creator']=_0x4d227c['creator'],this['isExternal']=Boolean(_0x4d227c['attributes']&&_0x4d227c['attributes']['@external']),this['set']('content',_0x4d227c['content']),this['createdAt']=_0x4d227c['createdAt']||new Date(),this['set']('authoredAt',_0x4d227c['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x38ef20,'resolvedAt'),this['set']('attributes',_0x4d227c['attributes']||{}),this['bind']('isEditable')['to'](_0x4f80ee,'_permissions',()=>{const _0x512e2e=_0x4f80ee['getPermissions'](_0x38ef20['channelId'])['write'],_0x2fb879=_0x4f80ee['getPermissions'](_0x38ef20['channelId'])['modifyAll'];return _0x2f2e56&&_0x512e2e||!_0x2f2e56&&_0x2fb879;}),this['bind']('isRemovable')['to'](_0x38ef20,'isRemovable',_0x4f80ee,'_permissions',_0x1d6876=>{const _0x3c4b2c=_0x4f80ee['getPermissions'](_0x38ef20['channelId'])['write'],_0x1aa9a6=_0x4f80ee['getPermissions'](_0x38ef20['channelId'])['modifyAll'];return _0x2f2e56&&_0x3c4b2c||_0x1d6876&&_0x31b4b3||!_0x2f2e56&&_0x1aa9a6&&!_0x31b4b3;}),this['bind']('isReadOnly')['to'](_0x38ef20,'isReadOnly'),this['_repository']=_0x4f80ee;}get['weight'](){return Math['max'](function(_0x593b04){const _0x4f8b41=document['createElement']('div');return _0x4f8b41['innerHTML']=_0x593b04,_0x4f8b41['textContent']['length'];}(this['content']),0xc8);}['update'](_0x521cd2){const {threadId:_0x561494,id:_0x11d30a}=this;if(!this['_repository']['hasCommentThread'](_0x561494))throw new _0x2ac32c('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x221e49}=this['_repository']['getCommentThread'](_0x561494);this['_repository']['fire'](Nt('updateComment',_0x221e49,_0x561494),{'channelId':_0x221e49,'threadId':_0x561494,'commentId':_0x11d30a,..._0x521cd2});}['setAttribute'](_0x4d9b9a,_0x439a7d){const _0x1fb03b=wt(this['attributes']);yt(_0x1fb03b,_0x4d9b9a,_0x439a7d),this['update']({'attributes':_0x1fb03b});}['removeAttribute'](_0x1dc998){const _0x519bbb=wt(this['attributes']);Ct(_0x519bbb,_0x1dc998),this['update']({'attributes':_0x519bbb});}['remove'](_0x1de534={}){if(!_0x1de534['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x3ee071,id:_0x467ec}=this;if(!this['_repository']['hasCommentThread'](_0x3ee071))throw new _0x2ac32c('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x2cdb80}=this['_repository']['getCommentThread'](_0x3ee071);this['_repository']['fire'](Nt('removeComment',_0x2cdb80,_0x3ee071),{'channelId':_0x2cdb80,'threadId':_0x3ee071,'commentId':_0x467ec,..._0x1de534});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x855d9b,..._0x5db392){for(const _0xbbf99c of _0x5db392)void 0x0!==_0xbbf99c&&(_0x855d9b+=':'+String(_0xbbf99c));return _0x855d9b;}class ot extends _0x3da5ad{constructor(_0x28c14c){super(_0x28c14c),this['set']('hasContent',!0x1);}['refresh'](){const _0x1eaaa0=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x495859 of _0x1eaaa0['getRanges']())if(this['_hasContent'](_0x495859))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x4d4b31=_0x235337(),ranges:_0x56db2b,comment:_0x110028}={}){const _0x28261c=this['editor']['model'],_0x5187a2=_0x56db2b??Array['from'](_0x28261c['document']['selection']['getRanges']()),_0x5570b5=[];for(const _0x25da84 of _0x5187a2)this['_hasContent'](_0x25da84)&&_0x5570b5['push'](this['_trimToContent'](_0x25da84));if(!_0x5570b5['length'])throw new _0x2ac32c('addcommentthreadcommand-incorrect-ranges',null);_0x110028&&this['_createCommentThread'](_0x4d4b31,_0x110028),this['_createMarkersFromRanges'](_0x4d4b31,_0x5570b5,!!_0x110028);}['_createMarkersFromRanges'](_0x37c3b9,_0x1feb68,_0x2fca13){this['editor']['model']['change'](_0x200d2b=>{for(const _0x1f2aed of _0x1feb68){const _0x21d310=_0x235337()['substr'](0x1,0x5),_0x5d06c0='comment:'+_0x37c3b9+':'+_0x21d310;_0x200d2b['addMarker'](_0x5d06c0,{'range':_0x1f2aed,'usingOperation':_0x2fca13,'affectsData':_0x2fca13});}});}['_createCommentThread'](_0x2e3c33,_0x73006e){const _0x52b970=this['editor']['plugins']['get']('CommentsRepository'),_0x3bb1e5=this['editor']['config']['get']('collaboration.channelId'),_0x588978=this['editor']['plugins']['get']('Users')['me'];if(!_0x588978)throw new _0x2ac32c('addcommentthreadcommand-user-not-found',null);_0x52b970['addCommentThread']({'threadId':_0x2e3c33,'channelId':_0x3bb1e5,'comments':[{'authorId':_0x588978['id'],'content':_0x73006e,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x226fd3){for(const _0x42b473 of _0x226fd3['getItems']())if(this['_itemIsContent'](_0x42b473))return!0x0;return!0x1;}['_itemIsContent'](_0x1da974){return _0x1da974['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x1da974)&&!_0x1da974['is']('element','tableCell');}['_trimToContent'](_0x2ca5ea){const _0x158669=_0x55732e=>!this['_itemIsContent'](_0x55732e['item']),_0x5c2a7b=_0x2ca5ea['start']['getLastMatchingPosition'](_0x158669),_0x1065c9=_0x2ca5ea['end']['getLastMatchingPosition'](_0x158669,{'direction':'backward'});return this['editor']['model']['createRange'](_0x5c2a7b,_0x1065c9);}}class b extends _0xa8525f{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x554aa1){super(_0x554aa1),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x10236b=this['editor'],_0x50440a=_0x10236b['model']['document']['selection'],_0x4fc400=_0x483d8a(()=>this['refreshSelectedViews'](),0xa);_0x50440a['on']('change:range',(_0x1f6160,_0xa344d5)=>{_0xa344d5['directChange']&&(_0x4fc400['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x10236b['editing']['view']['document'],'change:isFocused',(_0x5ec2d0,_0x426384,_0x48d8e9)=>{_0x48d8e9&&_0x4fc400();}),this['listenTo'](_0x10236b['ui']['focusTracker'],'change:isFocused',(_0x42c1ef,_0x4464da,_0x5ef610)=>{_0x5ef610||this['fire']('blur',{'isAnnotationTracked':_0x599147=>this['_editorAnnotationsData']['has'](_0x599147['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x2cdfcf){if(this['_editorAnnotations']['has'](_0x2cdfcf['view']))return;this['_editorAnnotations']['add'](_0x2cdfcf['view']),this['editor']['ui']['focusTracker']['add'](_0x2cdfcf['view']['element']);const _0x3d6ef0=this['editor']['plugins']['get'](y);this['listenTo'](_0x3d6ef0['collection'],'remove',(_0x49440e,_0x2dfb3a)=>{this['editor']['ui']['focusTracker']['remove'](_0x2dfb3a['view']['element']),this['_editorAnnotations']['delete'](_0x2dfb3a['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1b9bed){if('function'!=typeof _0x1b9bed)throw new _0x2ac32c('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1b9bed);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4e781b,annotations:_0x546c1d}){const _0x5b9188=[],_0x24acbd=this['editor']['model']['document']['selection'],_0x1c4eb9=Array['from'](_0x24acbd['getRanges']());for(const [_0x293669,_0x14ccd1]of this['_editorAnnotationsData']){const _0x3b58db=_0x533a2c(_0x14ccd1),_0x1b2767=_0x546c1d['getByInnerView'](_0x293669);_0x3b58db&&_0x1b2767&&_0x5b9188['push']({'annotation':_0x1b2767,'range':_0x3b58db});}function _0x533a2c(_0x5007b1){for(const _0x17500e of _0x5007b1)for(const _0x418a09 of _0x1c4eb9)if(_0x17500e['containsRange'](_0x418a09,!_0x24acbd['isCollapsed']))return _0x17500e;return null;}return _0x5b9188['sort']((_0x3e700e,_0x3f7d87)=>{const _0xbb4c74=_0x3e700e['range'],_0x19bddb=_0x3f7d87['range'];if(!_0xbb4c74['isEqual'](_0x19bddb)){if(_0xbb4c74['containsRange'](_0x19bddb,!0x0))return 0x1;if(_0x19bddb['containsRange'](_0xbb4c74,!0x0))return-0x1;}return _0x3e700e['annotation']==_0x4e781b?-0x1:_0x3f7d87['annotation']==_0x4e781b?0x1:0x0;})['map'](_0x432752=>_0x432752['annotation']);}get['_editorAnnotationsData'](){const _0x320091=new Map();for(const _0x4deeeb of Array['from'](this['_dataCollectors']))for(const [_0x12b0aa,_0x4fa7da]of _0x4deeeb())_0x320091['set'](_0x12b0aa,_0x4fa7da);return _0x320091;}}class st extends _0xa8525f{['afterInit'](){const _0x3a1e60=this['editor'];if(!_0x3a1e60['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3a1e60['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0xa8525f{constructor(_0x5add47){super(_0x5add47),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x24a923=this['editor'],_0x3bca92=_0x24a923['commands']['get']('importWord'),_0x370e3c=_0x24a923['plugins']['get'](it);_0x3bca92&&(_0x3bca92['on']('execute',(_0x77d4f,[,_0x33d0fc])=>{_0x33d0fc['collaboration_features']={'comments':!0x0,'user_id':_0x370e3c['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3bca92,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4b7b3c,_0x53bfe3){const {comment_threads:_0x169788}=_0x53bfe3;_0x169788&&_0x169788['forEach'](({thread_id:_0x4e0593,comments:_0x37f56c,is_resolved:_0x3c77b1})=>{const _0x42cb16=new Date(),_0x352a1c=_0x37f56c['map'](({author:_0x47dce0,content:_0x48b0f3,created_at:_0x20be00})=>({'content':_0x48b0f3,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x42cb16,'attributes':{'@external':{'authorName':_0x47dce0,'createdAt':_0x20be00?new Date(_0x20be00):new Date(),'source':'importWord'}}})),_0x3edace=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3edace,'threadId':_0x4e0593,'comments':_0x352a1c,'resolvedAt':_0x3c77b1?_0x42cb16:null});});}}class at extends _0xa8525f{constructor(_0x5beb7a){super(_0x5beb7a),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x458cb8=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x458cb8,'contentInsertion',(_0x3d9aac,_0x31413b)=>this['_removeMarkersWithoutThreads'](_0x31413b['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xaa3722){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xaa3722;const _0x4d8bca=this['editor']['plugins']['get']('CommentsRepository');for(const _0x3133c0 of _0xaa3722['keys']()){const [_0x221b94,_0x36f9eb]=_0x3133c0['split'](':');'comment'!=_0x221b94||_0x4d8bca['hasCommentThread'](_0x36f9eb)||_0xaa3722['delete'](_0x3133c0);}return _0xaa3722;}['_registerMarkerInClipboardPipeline'](){const _0x456dcf=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x35f3fa=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x35f3fa&&_0x456dcf['_registerMarkerToCopy']('comment',_0x35f3fa);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x47c600){switch(_0x47c600){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x5b5f6e){const _0x4e0f90=_0x5b5f6e['split'](':');return{'group':_0x4e0f90[0x0],'id':_0x4e0f90[0x1],'part':_0x4e0f90[0x2]};}class ut extends _0xa8525f{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x426013,_0x6a077f)=>{if(!_0x6a077f['options']['showCommentHighlights'])return null;if(_0x6a077f['options']['ignoreResolvedComments']){const {id:_0x44f252}=ft(_0x426013['markerName']),_0x509f98=this['editor']['plugins']['get'](o);if(_0x509f98['getCommentThread'](_0x44f252)?.['isResolved']&&_0x426013['item'])return _0x6a077f['consumable']['consume'](_0x426013['item'],'addMarker:'+_0x426013['markerName']),_0x6a077f['consumable']['consume'](_0x426013['item'],'removeMarker:'+_0x426013['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2e65b9=>{_0x2e65b9['on']('addMarker:comment',(_0x4919ac,_0x39a57d,_0x310aa6)=>{if(!_0x310aa6['options']['showCommentHighlights'])return;const _0x532539=_0x39a57d['item'];if(!_0x532539)return;const _0x4d8ef5=_0x310aa6['mapper']['toViewElement'](_0x532539);this['editor']['model']['schema']['isObject'](_0x532539)&&_0x4d8ef5&&!_0x4d8ef5['getCustomProperty']('widget')&&_0x4d8ef5['is']('containerElement')&&_0x539ec0(_0x4d8ef5,_0x310aa6['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5f5116,{writer:_0x47ea3e,options:_0x3d3587})=>{if(!_0x3d3587['showCommentHighlights'])return null;const _0x1a1d07=_0x47ea3e['createContainerElement']('div'),_0x2fa7bc=_0x47ea3e['createEmptyElement']('hr');return _0x47ea3e['addClass']('ck-horizontal-line',_0x1a1d07),_0x47ea3e['insert'](_0x47ea3e['createPositionAt'](_0x1a1d07,0x0),_0x2fa7bc),_0x1a1d07;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x42a44b,{writer:_0x277636,options:_0xc89e55})=>{if(!_0xc89e55['showCommentHighlights'])return null;const _0x1f76ad=_0x277636['createContainerElement']('span'),_0x2ee0cf=_0x277636['createEmptyElement']('img');return _0x277636['addClass']('image-inline',_0x1f76ad),_0x277636['insert'](_0x277636['createPositionAt'](_0x1f76ad,0x0),_0x2ee0cf),_0x1f76ad;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5f53e0,{writer:_0x2c8460,options:_0x8d0e0})=>{if(_0x8d0e0['showCommentHighlights'])return _0x2c8460['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x49173d,_0x2b2f98,_0xd36038)=>{_0xd36038['options']['showCommentHighlights']&&_0x49173d['stop']();},{'priority':'high'});}}class r extends _0xa8525f{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x587e62){super(_0x587e62),this['set']('isThreadsLoadingPaused',!0x0),_0x587e62['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x4a007a,_0x34f9ea,_0x49d3b3,_0x2a6571)=>{const _0x5a6821=_0x587e62['plugins']['get'](o),_0x4b4981=_0x49d3b3?ft(_0x49d3b3)['id']:null;_0x587e62['model']['change'](()=>{if(_0x4b4981){const _0x5c2391=this['getAllMarkersForId'](_0x4b4981);for(const _0x548e76 of _0x5c2391)_0x587e62['editing']['reconvertMarker'](_0x548e76);}if(_0x2a6571){const {id:_0x3a7746}=ft(_0x2a6571),_0x41b753=_0x5a6821['getCommentThread'](_0x3a7746);if(_0x41b753&&_0x41b753['unlinkedAt'])return;if(_0x41b753&&!_0x41b753['isAttached'])return;const _0x42df4c=this['getAllMarkersForId'](_0x3a7746);for(const _0x54065a of _0x42df4c)_0x587e62['editing']['reconvertMarker'](_0x54065a);}}),_0x4b4981&&this['scrollToThreadMarker'](_0x4b4981);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3effbd=this['editor'],_0x12cd2b=_0x3effbd['plugins']['get'](o),_0x32280f=_0x3effbd['config']['get']('collaboration.channelId'),_0x298804=_0x12cd2b['getCommentThreads']()['filter'](_0xb62caa=>_0xb62caa['channelId']!==_0x32280f);_0x3effbd['commands']['add']('addCommentThread',new ot(_0x3effbd)),this['listenTo'](_0x3effbd,'change:isReadOnly',(_0x596e13,_0x3661a0,_0x1f0fe4)=>{_0x12cd2b['switchReadOnly'](_0x1f0fe4,_0x3effbd['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x12cd2b,dt('addCommentThread',_0x32280f),(_0x11b234,{threadId:_0x1e2cbe})=>{const _0x439ed2=this['editor']['plugins']['get'](o)['getCommentThread'](_0x1e2cbe);_0x439ed2?.['unlinkedAt']&&this['_attachArchivedThread'](_0x1e2cbe);}),this['listenTo'](_0x12cd2b,dt('removeCommentThread',_0x32280f),(_0xed4368,{threadId:_0xb9287b})=>{_0x3effbd['model']['enqueueChange']({'isUndoable':!0x1},_0x20af67=>{const _0x358b28=this['getAllMarkersForId'](_0xb9287b);for(const _0x18a8c6 of _0x358b28)_0x20af67['removeMarker'](_0x18a8c6);});}),this['listenTo'](_0x12cd2b,dt('resolveCommentThread',_0x32280f),(_0x39652a,{threadId:_0x4c96fe})=>{(this['_reconvertMarkers'](_0x4c96fe),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4c96fe)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x12cd2b,dt('reopenCommentThread',_0x32280f),(_0x379bc1,{threadId:_0x4c6672})=>{this['_reconvertMarkers'](_0x4c6672);},{'priority':'low'}),this['listenTo'](_0x12cd2b,dt('addComment',_0x32280f),(_0x314ca9,{threadId:_0x3e7102,isFromAdapter:_0x46f729})=>{const _0x1e7599=this['getAllMarkersForId'](_0x3e7102);if(_0x46f729||0x0==_0x1e7599['length']||!_0x12cd2b['hasCommentThread'](_0x3e7102))return;0x1===_0x12cd2b['getCommentThread'](_0x3e7102)['length']&&_0x3effbd['model']['enqueueChange']({'isUndoable':!0x1},_0x1f1c33=>{for(const _0x5a04e2 of _0x1e7599)_0x1f1c33['updateMarker'](_0x5a04e2,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x298804);}['afterInit'](){!async function(_0x466087){const _0x255763=_0x49c38c([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x462f49=0x73460ab3,_0xf394cf=0x734189fb^_0x462f49,_0x9fda61=window[_0x49c38c([0x44,0x61,0x74,0x65])][_0x49c38c([0x6e,0x6f,0x77])](),_0x3ad2fd=_0x466087[_0x49c38c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c6bc6=new window[(_0x49c38c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x534f30=>{_0x3ad2fd[_0x49c38c([0x6f,0x6e,0x63,0x65])](_0x49c38c([0x72,0x65,0x61,0x64,0x79]),_0x534f30);}),_0x1723a4={[_0x49c38c([0x6b,0x74,0x79])]:_0x49c38c([0x45,0x43]),[_0x49c38c([0x75,0x73,0x65])]:_0x49c38c([0x73,0x69,0x67]),[_0x49c38c([0x63,0x72,0x76])]:_0x49c38c([0x50,0x2d,0x32,0x35,0x36]),[_0x49c38c([0x78])]:_0x49c38c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x49c38c([0x79])]:_0x49c38c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x49c38c([0x61,0x6c,0x67])]:_0x49c38c([0x45,0x53,0x32,0x35,0x36])},_0x4f5134=_0x3ad2fd[_0x49c38c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49c38c([0x67,0x65,0x74])](_0x49c38c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c20bd(){let _0x3d0387,_0x4cca49=null,_0x3c7449=null;try{if(_0x4f5134==_0x49c38c([0x47,0x50,0x4c]))return _0x49c38c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d0387=_0x3b8f39(),!_0x3d0387)return _0x49c38c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d0387[_0x49c38c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c7449=_0x24def3(_0x3d0387[_0x49c38c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d0387[_0x49c38c([0x6a,0x74,0x69])])),await _0x5c395a()?_0x98d5a9()?_0x3b1a6c()?_0x49c38c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5634b4()?(_0x3d0387[_0x49c38c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49c38c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4cca49=_0x48d366(_0x49c38c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17d377()):_0x49c38c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49c38c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49c38c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x49c38c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b1a6c(){const _0xa1dccb=[_0x49c38c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49c38c([0x74,0x72,0x69,0x61,0x6c])][_0x49c38c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0387[_0x49c38c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9fda61/0x3e8:0xe10*_0xf394cf;return _0x3d0387[_0x49c38c([0x65,0x78,0x70])]<_0xa1dccb;}function _0x98d5a9(){const _0x55026f=_0x3d0387[_0x49c38c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x55026f)return!0x1;if(_0x55026f[_0x49c38c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c38c([0x2a])))return!0x0;if(_0x55026f[_0x49c38c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c38c([0x43,0x4d,0x54])))return!0x0;if(_0x55026f[_0x49c38c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c38c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x1a244c())return!0x0;if(_0x55026f[_0x49c38c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c38c([0x52,0x43,0x4d,0x54]))){if(_0x43ab3c())return!0x0;if(_0x394fe6()||_0x3f5b2b())return!0x0;}return!0x1;}function _0x5634b4(){const _0x280a19=_0x3d0387[_0x49c38c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x280a19||0x0==_0x280a19[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb7117f}=new URL(window[_0x49c38c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x280a19[_0x49c38c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb7117f))return!0x0;const _0x41ff55=_0xb7117f[_0x49c38c([0x73,0x70,0x6c,0x69,0x74])](_0x49c38c([0x2e]));return _0x280a19[_0x49c38c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e5313=>_0x2e5313[_0x49c38c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49c38c([0x2a])))[_0x49c38c([0x6d,0x61,0x70])](_0xa58283=>_0xa58283[_0x49c38c([0x73,0x70,0x6c,0x69,0x74])](_0x49c38c([0x2e])))[_0x49c38c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5291dd=>_0x5291dd[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x41ff55[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49c38c([0x6d,0x61,0x70])](_0x2dbd1b=>Array(_0x41ff55[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2dbd1b[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x49c38c([0x66,0x69,0x6c,0x6c])](_0x2dbd1b[0x0]===_0x49c38c([0x2a])?_0x49c38c([0x2a]):'')[_0x49c38c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2dbd1b))[_0x49c38c([0x73,0x6f,0x6d,0x65])](_0x52f50c=>_0x41ff55[_0x49c38c([0x65,0x76,0x65,0x72,0x79])]((_0x2ca85d,_0x24197b)=>_0x52f50c[_0x24197b]===_0x2ca85d||_0x52f50c[_0x24197b]===_0x49c38c([0x2a])));}function _0x17d377(){return _0x4cca49&&_0x3c7449?new window[(_0x49c38c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd08d53,_0x481762)=>{_0x4cca49[_0x49c38c([0x74,0x68,0x65,0x6e])](_0xd08d53,_0x481762),_0x3c7449[_0x49c38c([0x74,0x68,0x65,0x6e])](_0x3f9373=>{_0x3f9373!=_0x49c38c([0x56,0x61,0x6c,0x69,0x64])&&_0xd08d53(_0x3f9373);},_0x481762);}):_0x4cca49||_0x3c7449||_0x49c38c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x24def3(_0x44797a,_0x38cf97){return new window[(_0x49c38c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583d40=>{if(_0x350b7e())return _0x583d40(_0x49c38c([0x56,0x61,0x6c,0x69,0x64]));_0x2b2c7d(),_0x3ad2fd[_0x49c38c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49c38c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5334e8=!0x1;const _0x5a632b=_0x235337();function _0x2c3d12(_0x2d8e26){return!!_0x2d8e26&&(typeof _0x2d8e26===_0x49c38c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d8e26===_0x49c38c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d8e26[_0x49c38c([0x74,0x68,0x65,0x6e])]===_0x49c38c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d8e26[_0x49c38c([0x63,0x61,0x74,0x63,0x68])]===_0x49c38c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e19ec(_0x671390){_0x57a3d3(_0x671390)[_0x49c38c([0x74,0x68,0x65,0x6e])](_0x3007c8=>{if(!_0x3007c8||_0x3007c8[_0x49c38c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49c38c([0x6f,0x6b]))return _0x49c38c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e9872(_0x360ae0(_0x5a632b+_0x38cf97))!=_0x3007c8[_0x49c38c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49c38c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49c38c([0x56,0x61,0x6c,0x69,0x64]);})[_0x49c38c([0x74,0x68,0x65,0x6e])](_0xcf05ab=>(_0x5a6c1d(),_0xcf05ab),()=>{const _0x436d1a=_0x407911();return null==_0x436d1a?(_0x5a6c1d(),_0x49c38c([0x56,0x61,0x6c,0x69,0x64])):_0x49c38c(_0x9fda61-_0x436d1a>(0x574a8eb3^_0x462f49)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49c38c([0x74,0x68,0x65,0x6e])](_0x583d40)[_0x49c38c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x583d40(_0x49c38c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x361b69=0x7370e433^_0x462f49;function _0x5a6c1d(){const _0x39c894=_0x49c38c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e9872(_0x360ae0(_0x44797a)),_0x5aa368=_0x2cdb84(_0x3e9872(window[_0x49c38c([0x4d,0x61,0x74,0x68])][_0x49c38c([0x63,0x65,0x69,0x6c])](_0x9fda61/_0x361b69)));window[_0x49c38c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49c38c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39c894,_0x5aa368);}function _0x407911(){const _0x1a6a24=_0x49c38c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e9872(_0x360ae0(_0x44797a)),_0x585ae8=window[_0x49c38c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49c38c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a6a24);return _0x585ae8?window[_0x49c38c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cdb84(_0x585ae8),0x10)*_0x361b69:null;}function _0x57a3d3(_0x92f8c4){return new window[(_0x49c38c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41557c,_0x26e4a5)=>{_0x92f8c4[_0x49c38c([0x74,0x68,0x65,0x6e])](_0x41557c,_0x26e4a5),window[_0x49c38c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26e4a5,0x7347de73^_0x462f49);});}}_0x3ad2fd[_0x49c38c([0x6f,0x6e])](_0x49c38c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x33be73,_0x3a6979)=>{if(_0x3a6979[0x0]!=_0x44797a)return _0x583d40(_0x49c38c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a6979[0x1]={..._0x3a6979[0x1],[_0x49c38c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a632b};},{[_0x49c38c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49c38c([0x68,0x69,0x67,0x68])}),_0x3ad2fd[_0x49c38c([0x6f,0x6e])](_0x49c38c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2102ee=>{_0x2c3d12(_0x2102ee[_0x49c38c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5334e8=!0x0,_0x1e19ec(_0x2102ee[_0x49c38c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49c38c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49c38c([0x6c,0x6f,0x77])}),_0x4c6bc6[_0x49c38c([0x74,0x68,0x65,0x6e])](()=>{_0x5334e8||_0x583d40(_0x49c38c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x350b7e(){return _0x3ad2fd[_0x49c38c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49c38c([0x76,0x69,0x65,0x77])][_0x49c38c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49c38c([0x61,0x75,0x74,0x6f]);}function _0x2b2c7d(){_0x3ad2fd[_0x49c38c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49c38c([0x76,0x69,0x65,0x77])][_0x49c38c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49c38c([0x61,0x75,0x74,0x6f]);}}function _0x48d366(_0x47771e){const _0x2a565f=[new window[(_0x49c38c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1be362=>setTimeout(_0x1be362,0x734f347f^_0x462f49)),_0x4c6bc6[_0x49c38c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49c38c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f0e7f=>{let _0x26c6a2=0x0;_0x3ad2fd[_0x49c38c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c38c([0x6f,0x6e])](_0x49c38c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f68c5,_0x57a52e)=>{_0x57a52e[0x0][_0x49c38c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x26c6a2++,_0x26c6a2==(0x73460f5b^_0x462f49)&&(_0x4f0e7f(),_0x1f68c5[_0x49c38c([0x6f,0x66,0x66])]());});}))];return window[_0x49c38c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49c38c([0x72,0x61,0x63,0x65])](_0x2a565f)[_0x49c38c([0x74,0x68,0x65,0x6e])](()=>_0x47771e);}async function _0x429c42(){await _0x4c6bc6,_0x3ad2fd[_0x49c38c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c38c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43dd6d,_0x3ad2fd[_0x49c38c([0x6d,0x6f,0x64,0x65,0x6c])][_0x49c38c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43dd6d,_0x3ad2fd[_0x49c38c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49c38c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1a244c(){return window[_0x49c38c([0x67,0x6c,0x6f,0x62])]&&window[_0x49c38c([0x67,0x6c,0x6f,0x62])][_0x49c38c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x43ab3c(){return _0x53e037(_0x49c38c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x12e87d(_0x49c38c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x49c38c([0x73,0x74,0x61,0x74,0x65])]==_0x49c38c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x394fe6(){return _0x53e037(_0x49c38c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3f5b2b(){return _0x53e037(_0x49c38c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5cb589(_0x5a4c4f){const _0x29e355=_0x5ae5ec();_0x3ad2fd[_0x29e355]=_0x49c38c([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a4c4f,_0x5a4c4f!=_0x49c38c([0x56,0x61,0x6c,0x69,0x64])&&_0x429c42();}function _0x5ae5ec(){const _0x175afc=window[_0x49c38c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49c38c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49c38c([0x6e,0x6f,0x77])]())[_0x49c38c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49c38c([0x2e]),'');let _0x3eb614=_0x49c38c([0x4b]);for(let _0xed1c52=0x0;_0xed1c52<_0x175afc[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xed1c52+=0x2){let _0x25cf78=window[_0x49c38c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x175afc[_0x49c38c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xed1c52,_0xed1c52+0x2));_0x25cf78>=_0x255763[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25cf78-=_0x255763[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3eb614+=_0x255763[_0x25cf78];}return _0x3eb614;}function _0x3b8f39(){const _0x5f2b91=_0x4f5134[_0x49c38c([0x73,0x70,0x6c,0x69,0x74])](_0x49c38c([0x2e]));if(0x3!=_0x5f2b91[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40be22(_0x5f2b91[0x1]);function _0x40be22(_0x1c60d8){const _0x3cb098=_0x501976(_0x1c60d8);return _0x3cb098&&_0x285bea()?_0x3cb098:null;function _0x285bea(){const _0x5010d1=_0x3cb098[_0x49c38c([0x6a,0x74,0x69])],_0x492f00=window[_0x49c38c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5010d1[_0x49c38c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5010d1[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x459031={..._0x3cb098,[_0x49c38c([0x6a,0x74,0x69])]:_0x5010d1[_0x49c38c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5010d1[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x459031[_0x49c38c([0x76,0x63])],_0x360ae0(_0x459031)==_0x492f00;}}}async function _0x5c395a(){let _0x5339b2=!0x0;try{const _0x5b2153=_0x4f5134[_0x49c38c([0x73,0x70,0x6c,0x69,0x74])](_0x49c38c([0x2e])),[_0x5ad296,_0xd6f215,_0x42e649]=_0x5b2153;return _0x192eba(_0x5ad296),await _0x5a021c(_0x5ad296,_0xd6f215,_0x42e649),_0x5339b2;}catch{return!0x1;}function _0x192eba(_0x4126da){const _0x16b899=_0x501976(_0x4126da);_0x16b899&&_0x16b899[_0x49c38c([0x61,0x6c,0x67])]==_0x49c38c([0x45,0x53,0x32,0x35,0x36])||(_0x5339b2=!0x1);}async function _0x5a021c(_0x139276,_0x129753,_0x32d229){const _0x50aa46=window[_0x49c38c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49c38c([0x66,0x72,0x6f,0x6d])](_0x36db4c(_0x32d229),_0x166d21=>_0x166d21[_0x49c38c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f14e0=new window[(_0x49c38c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49c38c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x139276+_0x49c38c([0x2e])+_0x129753),_0x7e613=window[_0x49c38c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49c38c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7e613)return;const _0x56f5ea=await _0x7e613[_0x49c38c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49c38c([0x6a,0x77,0x6b]),_0x1723a4,{[_0x49c38c([0x6e,0x61,0x6d,0x65])]:_0x49c38c([0x45,0x43,0x44,0x53,0x41]),[_0x49c38c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49c38c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49c38c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7e613[_0x49c38c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49c38c([0x6e,0x61,0x6d,0x65])]:_0x49c38c([0x45,0x43,0x44,0x53,0x41]),[_0x49c38c([0x68,0x61,0x73,0x68])]:{[_0x49c38c([0x6e,0x61,0x6d,0x65])]:_0x49c38c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x56f5ea,_0x50aa46,_0x5f14e0)||(_0x5339b2=!0x1);}}function _0x501976(_0x3cf66f){return _0x3cf66f[_0x49c38c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49c38c([0x65,0x79]))?JSON[_0x49c38c([0x70,0x61,0x72,0x73,0x65])](_0x36db4c(_0x3cf66f)):null;}function _0x36db4c(_0x3ed6b2){return window[_0x49c38c([0x61,0x74,0x6f,0x62])](_0x3ed6b2[_0x49c38c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49c38c([0x2b]))[_0x49c38c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49c38c([0x2f])));}function _0x360ae0(_0x4fedb4){let _0x1ef8e6=0x1505;function _0x80d0e9(_0x29f6c7){for(let _0x3c0354=0x0;_0x3c0354<_0x29f6c7[_0x49c38c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c0354++){const _0x17ea6e=_0x29f6c7[_0x49c38c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c0354);_0x1ef8e6=(_0x1ef8e6<<0x5)+_0x1ef8e6+_0x17ea6e,_0x1ef8e6&=_0x1ef8e6;}}function _0x3b8faf(_0x2855dd){Array[_0x49c38c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2855dd)?_0x2855dd[_0x49c38c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b8faf):_0x2855dd&&typeof _0x2855dd==_0x49c38c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49c38c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2855dd)[_0x49c38c([0x73,0x6f,0x72,0x74])]()[_0x49c38c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x280160,_0x5e4a79])=>{_0x80d0e9(_0x280160),_0x3b8faf(_0x5e4a79);}):_0x80d0e9(window[_0x49c38c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2855dd));}return _0x3b8faf(_0x4fedb4),_0x1ef8e6>>>0x0;}function _0x3e9872(_0x4a78a1){return _0x4a78a1[_0x49c38c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49c38c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49c38c([0x30]));}function _0x2cdb84(_0x5e7955){return _0x5e7955[_0x49c38c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49c38c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49c38c([0x6a,0x6f,0x69,0x6e])]('');}function _0x53e037(_0x3d8187){return _0x3ad2fd[_0x49c38c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49c38c([0x68,0x61,0x73])](_0x3d8187);}function _0x12e87d(_0x538b6d){return _0x3ad2fd[_0x49c38c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49c38c([0x67,0x65,0x74])](_0x538b6d);}function _0x43dd6d(){}function _0x49c38c(_0x1db3a0){return _0x1db3a0['map'](_0x2c3f9b=>String['fromCharCode'](_0x2c3f9b))['join']('');}_0x5cb589(await _0x1c20bd());}(this);}['destroy'](){const _0x548553=this['editor']['plugins']['get'](o),_0x21e2cb=this['editor']['config']['get']('collaboration.channelId');for(const _0x45cc1f of _0x548553['getCommentThreads']({'channelId':_0x21e2cb}))_0x548553['_detachCommentThread'](_0x45cc1f['id']),_0x548553['_threads']['delete'](_0x45cc1f['id']);super['destroy']();}['hasMarkerForId'](_0x245d55){return this['getAllMarkersForId'](_0x245d55)['length']>0x0;}['getAllMarkersForId'](_0x838ae8){const _0x1b2fb8=[];for(const _0x12b9c3 of this['editor']['model']['markers'])_0x12b9c3['name']['startsWith']('comment:'+_0x838ae8)&&_0x1b2fb8['push'](_0x12b9c3);return _0x1b2fb8;}['scrollToThreadMarker'](_0x7b7873){setTimeout(()=>{const _0x13e884=this['_getTargetForId'](_0x7b7873);if(!_0x13e884)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x7b7873&&nt({'target':_0x13e884[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x3d60db){this['editor']['model']['change'](()=>{for(const _0x3080e2 of this['getAllMarkersForId'](_0x3d60db))this['editor']['editing']['reconvertMarker'](_0x3080e2);});}['_attachArchivedThread'](_0x5dd131){const _0x745d2=this['editor']['plugins']['get'](o),_0xf8092a=this['editor']['plugins']['get'](b),_0x3f0e30=_0x745d2['getCommentThread'](_0x5dd131);if(!_0x3f0e30['isAttached']){const _0x56886f=_0x3f0e30['attachTo'](()=>this['_getTargetForId'](_0x3f0e30['id']));_0xf8092a['registerAnnotation'](_0x56886f),_0x3f0e30['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x29be86=this['editor'],_0x508d1c=_0x29be86['plugins']['get'](it);_0x29be86['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x405406,_0x4dc4ca)=>{const {id:_0x1f1d14}=ft(_0x405406['markerName']),_0x361001=_0x29be86['plugins']['get'](o)['getCommentThread'](_0x1f1d14),_0x356c41=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x1f1d14;let _0x100335;if(_0x361001&&_0x361001['isResolved']&&!_0x356c41&&_0x405406['item'])return _0x4dc4ca['consumable']['consume'](_0x405406['item'],'addMarker:'+_0x405406['markerName']),_0x4dc4ca['consumable']['consume'](_0x405406['item'],'removeMarker:'+_0x405406['markerName']),null;const _0x1f5f76=['ck-comment-marker'];return _0x356c41&&_0x1f5f76['push']('ck-comment-marker--active'),_0x100335=_0x361001?.['length']?_0x361001['comments']['first']['author']['id']:_0x508d1c['me']['id'],{'classes':_0x1f5f76,'attributes':{'data-comment':_0x1f1d14,'data-author-id':_0x100335}};}}),_0x29be86['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x28a526,{options:_0x2deca3})=>{if(_0x2deca3['showCommentHighlights'])return null;const _0x3f468e=_0x29be86['plugins']['get'](o),_0x53441a=_0x29be86['model']['markers']['get'](_0x28a526),{id:_0x21e1a0,part:_0x31edbf}=ft(_0x28a526);return _0x53441a&&!_0x53441a['affectsData']||_0x2deca3['ignoreResolvedComments']&&_0x3f468e['getCommentThread'](_0x21e1a0)?.['isResolved']?null:{'group':'comment','name':_0x31edbf?_0x21e1a0+':'+_0x31edbf:_0x21e1a0};}}),_0x29be86['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x454e7f,{writer:_0x36f77b})=>_0x36f77b['createElement']('$marker',{'data-name':'comment:'+_0x454e7f['getAttribute']('id')})}),_0x29be86['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x49ed2c=this['editor'],_0x51c4fe=_0x49ed2c['plugins']['get'](o),_0xb01506=new Set(),_0x55d698=new Set();_0x49ed2c['model']['document']['registerPostFixer'](_0x23fc08=>{let _0x32ce60=!0x1;for(const {name:_0x561dda,data:_0x15137c}of _0x49ed2c['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2898ba,id:_0x35decd}=ft(_0x561dda);let _0x455f25=_0x15137c['newRange'];if('comment'!==_0x2898ba||!_0x455f25)continue;const _0x13eeb9='$graveyard'===_0x455f25['root']['rootName'];_0x13eeb9||(_0x455f25=ht(_0x455f25,_0x49ed2c['model']),!_0x455f25||_0x455f25['isCollapsed']||!_0x15137c['newRange']||_0x455f25['isEqual'](_0x15137c['newRange']))?_0x49ed2c['model']['hasContent'](_0x455f25)&&!_0x13eeb9?this['isThreadsLoadingPaused']?_0xb01506['add'](_0x561dda):this['_handleThreadMarker'](_0x561dda,_0x35decd):(_0x55d698['add'](_0x561dda),_0xb01506['delete'](_0x561dda),_0x23fc08['removeMarker'](_0x561dda),_0x32ce60=!0x0):(_0x23fc08['updateMarker'](_0x561dda,{'range':_0x455f25}),_0x32ce60=!0x0);}return _0x32ce60;}),this['on']('change:isThreadsLoadingPaused',(_0x49e5a8,_0x18b53a,_0xa691be)=>{if(!_0xa691be&&_0xb01506['size'])for(const _0x56d556 of _0xb01506){const {id:_0x4baccd}=ft(_0x56d556);_0xb01506['delete'](_0x56d556),_0x49ed2c['model']['markers']['get'](_0x56d556)&&this['_handleThreadMarker'](_0x56d556,_0x4baccd);}}),this['listenTo'](_0x49ed2c['model']['document'],'change',()=>{for(const {name:_0x577570,data:{newRange:_0x4c7adf}}of _0x49ed2c['model']['document']['differ']['getChangedMarkers']()){const {group:_0x35f949,id:_0x585086}=ft(_0x577570);if('comment'!==_0x35f949)continue;const _0x2809cc=_0x51c4fe['getCommentThread'](_0x585086),_0x4bfb51=this['hasMarkerForId'](_0x585086);_0x2809cc&&(!_0x2809cc['_hasTargetInContent']&&_0x4c7adf&&_0x49ed2c['editing']['view']['once']('render',()=>{const _0x4a2b9f=_0x49ed2c['plugins']['get'](y),_0x12384b=_0x51c4fe['_threadToController']['get'](_0x2809cc)['view'];_0x4a2b9f['getByInnerView'](_0x12384b)['refreshVisibility']();},{'priority':'low'}),_0x2809cc['_hasTargetInContent']=_0x4bfb51||!!_0x4c7adf),_0x4c7adf||(_0x55d698['add'](_0x577570),_0xb01506['delete'](_0x577570));}for(const _0x13a6f7 of _0x55d698){const {id:_0x5940c7}=ft(_0x13a6f7),_0x43720f=_0x51c4fe['getCommentThread'](_0x5940c7);if(_0xb01506['delete'](_0x13a6f7),!_0x43720f)continue;const _0x446198=this['hasMarkerForId'](_0x5940c7);_0x446198||_0x43720f['isSubmitted']?_0x446198||_0x43720f['unlinkedAt']||_0x43720f['setUnlinkedAt'](new Date()):_0x43720f['remove']();}_0x55d698['clear']();});}['_handleInitialThreads'](_0x3dd94e){_0x3dd94e['forEach'](_0x1306ef=>{_0x1306ef['unlinkedAt']&&this['_attachArchivedThread'](_0x1306ef['id']);});}['_getTargetForId'](_0x1da721){const _0x1e7027=this['editor'],_0x2e9aa5=this['getAllMarkersForId'](_0x1da721);return et(_0x1e7027['editing'],_0x2e9aa5);}['_getTextContext'](_0x16d525){const _0xee6913=this['getAllMarkersForId'](_0x16d525);let _0x845d66='',_0x1ba82f=!0x1;for(const _0x44d1eb of _0xee6913){const _0x1bbc9b=_0x44d1eb['getRange']();for(const _0x5542a8 of Array['from'](_0x1bbc9b['getItems']()))_0x5542a8['is']('$textProxy')?(_0x845d66&&_0x1ba82f&&(_0x845d66+='\x20',_0x1ba82f=!0x1),_0x845d66+=_0x5542a8['data']):_0x1ba82f=!0x0;_0x1ba82f=!0x0;}return _0x845d66['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x5b9773,_0x42226d){const _0x472207=this['editor'],_0x501fe4=_0x472207['plugins']['get'](o);let _0x1c20ac=_0x501fe4['getCommentThread'](_0x42226d);const _0x4e92f2=_0x472207['config']['get']('collaboration.channelId'),_0xc3a99e=_0x472207['plugins']['get'](b);if(_0x1c20ac&&(_0x1c20ac['unlinkedAt']&&_0x1c20ac['setUnlinkedAt'](null),_0x1c20ac['isAttached']))return _0x1c20ac;return!this['getAllMarkersForId'](_0x42226d)[0x0]['managedUsingOperations']?_0x472207['editing']['view']['once']('render',()=>{if(_0x501fe4['getCommentThread'](_0x42226d))return;const _0x26af4f=_0x472207['plugins']['get'](y);_0x1c20ac=_0x501fe4['openNewCommentThread']({'channelId':_0x4e92f2,'threadId':_0x42226d,'target':()=>this['_getTargetForId'](_0x42226d),'context':{'type':'text','value':this['_getTextContext'](_0x42226d)}});const _0x3f9c73=_0x501fe4['_threadToController']['get'](_0x1c20ac)['view'],_0x4fa0c1=_0x26af4f['getByInnerView'](_0x3f9c73);_0x4fa0c1&&_0xc3a99e['registerAnnotation'](_0x4fa0c1);},{'priority':'low'}):_0x501fe4['fetchCommentThread']({'channelId':_0x4e92f2,'threadId':_0x42226d})['then'](_0x302e86=>{if('destroyed'!==_0x472207['state']){if(_0x1c20ac=_0x302e86,_0x1c20ac&&!_0x1c20ac['isAttached']){const _0x2a33b4=_0x1c20ac['attachTo'](()=>this['_getTargetForId'](_0x42226d));_0xc3a99e['registerAnnotation'](_0x2a33b4),_0x1c20ac['isResolved']&&this['_reconvertMarkers'](_0x42226d);}else{if(!_0x1c20ac){const _0x56ff41=this['getAllMarkersForId'](_0x42226d);_0x472207['model']['change'](_0x297469=>{for(const _0x4c0101 of _0x56ff41)_0x297469['removeMarker'](_0x4c0101);});}}}}),_0x1c20ac;}['_handleThreadMarker'](_0x4d7a,_0x1016a4){const _0x451e88=this['_attachMarkerToThread'](_0x4d7a,_0x1016a4);_0x451e88&&!_0x451e88['context']&&_0x451e88['setContext']({'type':'text','value':this['_getTextContext'](_0x1016a4)});}['_initAriaMarkerChangeAnnouncements'](){const _0x57c626=this['editor'];rt(_0x57c626['model'],({left:_0x333cde,entered:_0x21e9fd})=>{for(const _0x27a7c2 of _0x333cde)if(mt(_0x27a7c2)){_0x57c626['ui']['ariaLiveAnnouncer']['announce'](N(_0x57c626['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x1b8bf9 of _0x21e9fd)if(mt(_0x1b8bf9)){_0x57c626['ui']['ariaLiveAnnouncer']['announce'](N(_0x57c626['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x3ebd47)));break;}});}}function dt(_0x14e4df,_0x12555c){return _0x12555c?_0x14e4df+':'+_0x12555c:_0x14e4df;}function ht(_0x40d1d3,_0x41baf8){const _0xaf9447=_0x41baf8['schema'],_0x5911cc=_0x41baf8['createRange'](_0x40d1d3['start']);for(const _0x22cd77 of _0x40d1d3['getWalker']()){const {type:_0x6b8212,item:_0x164e8b,nextPosition:_0x443741}=_0x22cd77;if('text'===_0x6b8212||_0xaf9447['isObject'](_0x164e8b)){const _0x74c69a=_0x41baf8['createPositionBefore'](_0x164e8b);_0x5911cc['isCollapsed']&&(_0x5911cc['start']=_0x74c69a),_0x5911cc['end']=_0x443741;}}return _0x5911cc;}function mt(_0x3e7326){return'comment'===ft(_0x3e7326['name'])['group'];}class s extends _0xa8525f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0xfcc95c=this['editor'],_0xcfa907=_0xfcc95c['plugins']['get'](o),_0x4aa3de=_0xfcc95c['plugins']['get'](r),_0x3ae263=_0xfcc95c['plugins']['get'](y),_0x46864b=_0xfcc95c['plugins']['get'](b);_0xfcc95c['ui']['componentFactory']['add']('comment',()=>{const _0x4fd18a=this['_createUIButton'](_0x4e3d0d);return _0x4fd18a['tooltip']=!0x0,_0x4fd18a;}),_0xfcc95c['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x237ac4)),_0x46864b['addSourceCollector'](()=>{const _0x2a7cbd=[];for(const [_0x45ec29,_0x47e03f]of _0xcfa907['_threadToController']){const _0x34abdb=_0x4aa3de['getAllMarkersForId'](_0x45ec29['id']),_0x4bbfc2=_0x34abdb['map'](_0x339267=>_0x339267['getRange']());_0x34abdb['length']>0x0&&_0x2a7cbd['push']([_0x47e03f['view'],_0x4bbfc2]);}return _0x2a7cbd;}),this['listenTo'](_0x3ae263,'change:activeAnnotations',(_0x2b54de,_0x5cb326,_0x5b1abb)=>{const _0x171b55=Array['from'](_0x5b1abb)['map'](_0x8251f5=>_0x8251f5['innerView'])['find'](_0x98dda2=>_0xcfa907['_viewToController']['has'](_0x98dda2));if(!_0x171b55)return void(_0x4aa3de['activeMarker']=null);const _0x5cb728=_0xcfa907['_viewToController']['get'](_0x171b55)['model']['id'],_0x919178='comment:'+_0x5cb728;_0x5cb728&&_0x4aa3de['hasMarkerForId'](_0x5cb728)?_0x4aa3de['activeMarker']=_0x919178:_0x4aa3de['activeMarker']&&(_0x4aa3de['activeMarker']=null);}),this['listenTo'](_0xcfa907,'removeCommentThread',(_0x5cb3a1,{threadId:_0x246b98,isFromAdapter:_0x1739d0})=>{!_0x1739d0&&_0xfcc95c['ui']['focusTracker']['isFocused']&&_0x4aa3de['hasMarkerForId'](_0x246b98)&&_0xfcc95c['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0xcfa907,'addComment',(_0x43035b,{threadId:_0xcabc14,isFromAdapter:_0x1f8c3e})=>{if(_0x1f8c3e||!_0x4aa3de['hasMarkerForId'](_0xcabc14)||!_0xcfa907['hasCommentThread'](_0xcabc14))return;0x1===_0xcfa907['getCommentThread'](_0xcabc14)['length']&&(_0xfcc95c['editing']['view']['focus'](),_0x43035b['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xbb4dcd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2bb9ce;for(const _0x12deb2 in _0xbb4dcd){const _0x14614b=_0x12deb2,_0x265e79=_0xbb4dcd[_0x14614b];if('commentsLicenseKeyValid'==_0x265e79||'commentsLicenseKeyInvalid'==_0x265e79||'commentsLicenseKeyExpired'==_0x265e79||'commentsLicenseKeyDomainLimit'==_0x265e79||'commentsLicenseKeyNotAllowed'==_0x265e79||'commentsLicenseKeyEvaluationLimit'==_0x265e79||'commentsLicenseKeyUsageLimit'==_0x265e79){delete _0xbb4dcd[_0x14614b],_0x2bb9ce=_0x265e79,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x2bb9ce&&_0xbb4dcd['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x2bb9ce&&_0xbb4dcd['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x2bb9ce&&_0xbb4dcd['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x2bb9ce&&_0xbb4dcd['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x2bb9ce&&_0xbb4dcd['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x2bb9ce&&_0xbb4dcd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x334332){const _0x1de1da=this['editor'],_0x765ccc=new _0x334332(_0x1de1da['locale']),_0x565d45=_0x1de1da['commands']['get']('addCommentThread');return _0x765ccc['set']({'label':N(_0x1de1da['locale'],'Comment'),'icon':_0x49b617}),_0x765ccc['bind']('isEnabled')['to'](_0x565d45,'isEnabled',_0x565d45,'hasContent',(_0x26a09f,_0x1747e9)=>_0x26a09f&&_0x1747e9),this['listenTo'](_0x765ccc,'execute',()=>{_0x565d45['execute']();}),_0x765ccc;}}class i extends _0xa8525f{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x13234e){super(_0x13234e),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x40fdf2,_0x1ac69e,_0x5ad6e9)=>{_0x5ad6e9?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x50f570,_0x430356]of this['editor']['commands'])_0x430356['affectsData']&&'addCommentThread'!==_0x50f570&&_0x430356['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x21344b=this['editor']['editing']['view']['document'];this['listenTo'](_0x21344b,'cut',_0xb63e8b=>_0xb63e8b['stop'](),{'priority':'highest'}),this['listenTo'](_0x21344b,'clipboardInput',_0x1892f0=>_0x1892f0['stop'](),{'priority':'highest'}),this['listenTo'](_0x21344b,'delete',_0x4de026=>_0x4de026['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x131174,_0x4aea5b]of this['editor']['commands'])_0x4aea5b['affectsData']&&'addCommentThread'!==_0x131174&&_0x4aea5b['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x37562f{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7db6f1){super(_0x7db6f1),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x53d92e=this['context']['plugins']['get'](y);this['listenTo'](_0x53d92e,'_activateAnnotation',(_0x1de1d7,_0x4afbd6)=>{for(const _0x484f58 of this['activeUIs']){const _0xdb40df=this['_uis']['get'](_0x484f58);(0x0,this['uisData']['get'](_0x484f58)['filter'])(_0x4afbd6)&&_0xdb40df['setActiveAnnotation'](_0x4afbd6);}}),this['listenTo'](_0x53d92e,'_deactivateAllAnnotations',()=>{for(const _0x4938af of this['activeUIs']){this['_uis']['get'](_0x4938af)['setActiveAnnotation'](null);}}),this['listenTo'](_0x53d92e['_visibleAnnotations'],'add',(_0x824910,_0x2a4e1b)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2a4e1b);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x85e48e){return this['activeUIs']['has'](_0x85e48e);}['activate'](_0x2305cc,_0x5302e5=this['defaultFilter']){const _0x255dc5=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x2305cc))throw new _0x2ac32c('annotationsuis-missing-ui',this,{'uiName':_0x2305cc});this['isActive'](_0x2305cc)&&this['deactivate'](_0x2305cc),this['activeUIs']['add'](_0x2305cc);const _0x5a6a61=new S();v({'source':_0x255dc5['_visibleAnnotations'],'target':_0x5a6a61,'filter':_0x5302e5}),this['uisData']['set'](_0x2305cc,{'collection':_0x5a6a61,'filter':_0x5302e5});const _0x18fcd2=this['_uis']['get'](_0x2305cc);_0x18fcd2['attach'](_0x5a6a61),this['listenTo'](_0x18fcd2,'change:activeAnnotation',(_0x3bf2e5,_0x14a13a,_0x449338,_0x1f8ab7)=>{_0x1f8ab7&&_0x255dc5['_removeActiveAnnotation'](_0x1f8ab7),_0x449338&&_0x255dc5['_addActiveAnnotation'](_0x449338);});}['deactivate'](_0x197821){if(this['activeUIs']['delete'](_0x197821),!this['_uis']['has'](_0x197821))throw new _0x2ac32c('annotationsuis-missing-ui',this,{'uiName':_0x197821});const _0x438e6c=this['_uis']['get'](_0x197821);_0x438e6c['detach'](),this['stopListening'](_0x438e6c),this['uisData']['get'](_0x197821)['collection']['destroy'](),this['uisData']['delete'](_0x197821);}['switchTo'](_0x4b561f){if(!this['_uis']['has'](_0x4b561f))throw new _0x2ac32c('annotationsuis-missing-ui',this,{'uiName':_0x4b561f});const _0x1c7d6f=this['context']['plugins']['get'](y),_0x2d0551=Array['from'](_0x1c7d6f['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4b561f);const _0x1b6898=this['_uis']['get'](_0x4b561f);_0x1b6898['setActiveAnnotation'](_0x2d0551),_0x1b6898['_setSelectedAnnotations']&&_0x2d0551&&_0x1b6898['_setSelectedAnnotations']([_0x2d0551]);}['deactivateAll'](){for(const _0x2f16e9 of this['activeUIs'])this['deactivate'](_0x2f16e9);}['register'](_0x5dac10,_0x1142f9){if(this['_uis']['has'](_0x5dac10))throw new _0x2ac32c('annotationsuis-register-already-registered');if('function'!=typeof _0x1142f9['attach']||'function'!=typeof _0x1142f9['detach']||'function'!=typeof _0x1142f9['setActiveAnnotation'])throw new _0x2ac32c('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5dac10,_0x1142f9);}['refilterAnnotations'](){const _0x4501a1=this['context']['plugins']['get'](y)['collection'],_0x1d2da0=new Map(),_0x4fc64c=Array['from'](this['activeUIs']);for(const _0x5d29ef of this['activeUIs']){const _0x1e95eb=this['uisData']['get'](_0x5d29ef)['collection'];for(const _0x360da5 of _0x1e95eb)_0x1d2da0['set'](_0x360da5,_0x5d29ef);}for(const _0x46dfb7 of _0x4501a1){const _0x372127=_0x1d2da0['get'](_0x46dfb7);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x46dfb7);const _0x9b9140=_0x4fc64c['find'](_0x538433=>this['uisData']['get'](_0x538433)['filter'](_0x46dfb7));_0x372127!==_0x9b9140&&(_0x372127&&this['uisData']['get'](_0x372127)['collection']['remove'](_0x46dfb7),_0x9b9140&&this['uisData']['get'](_0x9b9140)['collection']['add'](_0x46dfb7));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x47bbe8){const _0x42d118=[];for(const _0xaab5b3 of this['activeUIs']){(0x0,this['uisData']['get'](_0xaab5b3)['filter'])(_0x47bbe8)&&_0x42d118['push'](_0xaab5b3);}if(_0x42d118['length']>0x1)throw new _0x2ac32c('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x42d118,'annotationType':_0x47bbe8['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0xeb3ef8){super(_0xeb3ef8);const _0x54a4e1=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x4a39cb(),this['focusCycler']=new _0x5b7087({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x54a4e1['to']('class')],'style':{'minHeight':_0x54a4e1['to']('minHeight',_0x4015b1=>'number'==typeof _0x4015b1?_i(_0x4015b1+0xa):null)},'dir':_0xeb3ef8['uiLanguageDirection'],'role':'application','aria-label':N(_0xeb3ef8,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0xeb3ef8,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x4cf58b=>{this['_updateItemPositionInFocusables'](_0x4cf58b['source']);}),this['list']['forEach'](_0x34f665=>{this['focusTracker']['add'](_0x34f665['element']),this['_updateItemPositionInFocusables'](_0x34f665);}),this['list']['on']('change',(_0xd736f8,_0x54f8a5)=>{for(const _0x2abd3e of _0x54f8a5['removed'])this['focusTracker']['remove'](_0x2abd3e['element']),this['focusables']['remove'](_0x2abd3e);for(const _0x1778ad of _0x54f8a5['added'])this['focusTracker']['add'](_0x1778ad['element']),this['_updateItemPositionInFocusables'](_0x1778ad);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x922c0b){const _0x396e70=this['focusables']['getIndex'](_0x922c0b);let _0x1c5862,_0x4e9ebc;for(const _0xc3013c of this['focusables'])if(_0x922c0b['top']<_0xc3013c['top']){_0x1c5862=_0xc3013c;break;}if(_0x4e9ebc=_0x1c5862?this['focusables']['getIndex'](_0x1c5862):this['focusables']['length'],-0x1!==_0x396e70){if(_0x396e70===_0x4e9ebc-0x1)return;this['focusables']['remove'](_0x922c0b),_0x4e9ebc=_0x1c5862?this['focusables']['getIndex'](_0x1c5862):this['focusables']['length'];}this['focusables']['add'](_0x922c0b,_0x4e9ebc);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0xdc4869){super(_0xdc4869),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x39df64,_0x20a41c)=>_0x39df64+_0x20a41c),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x3c72ac=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x3c72ac['to']('isAnimationDisabled',_0x52734e=>_0x52734e?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3c72ac['to']('top',_0x1d9575=>Ot(_0x1d9575))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x54a662=this['element']['clientHeight'];_0x54a662&&(this['height']=_0x54a662);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x37562f{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1cc2a2){super(_0x1cc2a2),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x3cde86=this['context']['config']['get']('sidebar.container');_0x3cde86&&this['setContainer'](_0x3cde86);}['setContainer'](_0x2784fa){if(!g(_0x2784fa))throw new _0x2ac32c('sidebar-setcontainer-invalid-element');this['container']=_0x2784fa;}['_attachToContainer']({viewClass:_0x329ce8='',spaceBetweenItems:_0x1a25c6=0x19}={}){if(!g(this['container']))throw new _0x2ac32c('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x329ce8,this['_spaceBetweenItems']=_0x1a25c6;}['rearrange']({removedAnnotation:_0x5ab627,previousAnnotation:_0x39cbdb,nextAnnotation:_0x1144fd}){const _0x2293b4=this['getSidebarItemView'](_0x5ab627);this['view']['list']['remove'](_0x2293b4),this['_destroySidebarItemView'](_0x5ab627),_0x39cbdb&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x39cbdb)),_0x1144fd&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1144fd)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3fb6a1,activatedAnnotation:_0x891be7,disableAnimationOnActivatedAnnotation:_0x58a701}){if(this['_activeAnnotation']=_0x891be7,_0x3fb6a1){_0x3fb6a1['isActive']=!0x1;const _0x3d7da1=this['getSidebarItemView'](_0x3fb6a1);_0x3d7da1&&_0x58a701&&(_0x3d7da1['isAnimationDisabled']=!0x1);}if(_0x891be7){const _0x342533=this['getSidebarItemView'](_0x891be7);_0x342533&&(_0x891be7['isActive']=!0x0,_0x58a701&&(_0x342533['isAnimationDisabled']=!0x0,_0x342533['top']+=0x1),this['_alignToTargetRect'](_0x342533));}}['_detachFromContainer'](_0xb137db){if(this['view']['element']['remove'](),_0xb137db){for(const _0x5ed0f4 of _0xb137db)this['_destroySidebarItemView'](_0x5ed0f4);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x25d0ac,_0x88757e){_0x88757e||(_0x88757e=_0x25d0ac['view']);const _0x5bcd2a=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x5bcd2a,_0x25d0ac),this['_annotationToSidebarItemView']['set'](_0x25d0ac,_0x5bcd2a),_0x5bcd2a['content']['add'](_0x88757e),this['listenTo'](_0x25d0ac['view'],'change:targetRect',(_0x159cd2,_0x269e7c,_0x468f3b)=>{const _0x2a8d86=this['_getTargetTop'](_0x25d0ac,_0x468f3b);_0x5bcd2a['_targetTop']!=_0x2a8d86&&(_0x5bcd2a['_targetTop']=_0x2a8d86,this['_setItemTop'](_0x5bcd2a,_0x2a8d86));}),this['listenTo'](_0x5bcd2a,'change:top',()=>{this['_recalculate'](_0x5bcd2a,'top');}),this['listenTo'](_0x5bcd2a,'change:bottom',()=>{this['_recalculate'](_0x5bcd2a,'bottom');}),this['_alignToTargetRect'](_0x5bcd2a);const _0x25bd3a=this['_getItemBefore'](_0x5bcd2a);if(_0x25bd3a)this['_alignAfterItem'](_0x25bd3a,_0x5bcd2a)||this['_alignToTargetRect'](_0x5bcd2a);else this['_alignToTargetRect'](_0x5bcd2a);return this['_updateLastItem'](),this['view']['list']['add'](_0x5bcd2a),_0x5bcd2a;}['_alignForTopChange'](_0xa8908b){if(!_0xa8908b['content']['length'])return;const _0x294601=this['_getItemBefore'](_0xa8908b);if(!_0x294601)return;const _0x329ed5=this['_sidebarItemViewToAnnotation']['get'](_0x294601),_0x1cf58f=this['_activeAnnotation'];_0x1cf58f&&_0x1cf58f===_0x329ed5?this['_alignAfterItem'](_0x294601,_0xa8908b):this['_alignBeforeItem'](_0xa8908b,_0x294601);}['_alignForBottomChange'](_0x3e23d7){if(!_0x3e23d7['content']['length'])return;const _0x2e7dd0=this['_getItemAfter'](_0x3e23d7);if(!_0x2e7dd0)return;const _0x3414af=this['_sidebarItemViewToAnnotation']['get'](_0x2e7dd0),_0x274687=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2b671f=this['_activeAnnotation'];_0x2b671f&&_0x2b671f===_0x3414af&&_0x274687?(this['_alignBeforeItem'](_0x2e7dd0,_0x3e23d7),this['_alignAfterItem'](_0x3e23d7,_0x2e7dd0)):_0x2b671f&&_0x2b671f===_0x3414af?this['_alignBeforeItem'](_0x2e7dd0,_0x3e23d7):this['_alignAfterItem'](_0x3e23d7,_0x2e7dd0);}['_recalculate'](_0x52ed2a,_0x481f62){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5188cf,changedProp:_0x380c25}of this['_recalculateBuffer'])'top'===_0x380c25?this['_alignForTopChange'](_0x5188cf):this['_alignForBottomChange'](_0x5188cf);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x52ed2a,'changedProp':_0x481f62});}['getSidebarItemView'](_0x35afc0){return this['_annotationToSidebarItemView']['get'](_0x35afc0);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x506a11){const _0x5a021f=this['getSidebarItemView'](_0x506a11);this['stopListening'](_0x5a021f),this['stopListening'](_0x506a11['view']),_0x5a021f['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x506a11),this['_sidebarItemViewToAnnotation']['delete'](_0x5a021f);}['_createSidebarView'](){const _0x41e12c=new H(this['context']['locale']);return _0x41e12c['render'](),this['on']('change:_lastItem',(_0x267d7c,_0x13e039,_0x405cb3,_0x1b9bcc)=>{_0x1b9bcc&&_0x41e12c['unbind']('minHeight'),_0x405cb3?_0x41e12c['bind']('minHeight')['to'](_0x405cb3,'bottom'):_0x41e12c['minHeight']=null;}),_0x41e12c;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x22d905){const _0x4f6d84=this['_sidebarItemViewToAnnotation']['get'](_0x22d905),_0x1e1e16=_0x4f6d84&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4f6d84)-0x1);return _0x1e1e16&&this['getSidebarItemView'](_0x1e1e16)||null;}['_getItemAfter'](_0x7eeb50){const _0x43fece=this['_sidebarItemViewToAnnotation']['get'](_0x7eeb50),_0x2b67c0=_0x43fece&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x43fece)+0x1);return _0x2b67c0&&this['getSidebarItemView'](_0x2b67c0)||null;}['_alignBeforeItem'](_0x1e76ae,_0x26942b){_0x1e76ae['updateHeight']();const _0x43c1a7=G(_0x26942b['bottom']+this['_spaceBetweenItems'],_0x1e76ae['top']);return!!_0x43c1a7&&(this['_setItemTop'](_0x26942b,_0x26942b['top']-_0x43c1a7),!0x0);}['_alignAfterItem'](_0x433b0c,_0x2fc58e){_0x433b0c['updateHeight']();const _0x1beff2=G(_0x433b0c['bottom']+this['_spaceBetweenItems'],_0x2fc58e['top']);return!!_0x1beff2&&(this['_setItemTop'](_0x2fc58e,_0x2fc58e['top']+_0x1beff2,!0x1),!0x0);}['_alignToTargetRect'](_0x39586b){const _0x19770a=this['_sidebarItemViewToAnnotation']['get'](_0x39586b);if(!_0x19770a||!_0x19770a['target']||!_0x19770a['targetRect'])return;const _0x3f5e62=this['_getTargetTop'](_0x19770a,_0x19770a['targetRect']);this['_setItemTop'](_0x39586b,_0x3f5e62);}['_getTargetTop'](_0x3d99b0,_0x354c24){if(null===_0x354c24)return 0x0;if(_0x3d99b0['target']instanceof _0x2208d7)return _0x354c24['top'];{const _0x205c61=new _0x2208d7(this['view']['element'])['top'];return _0x354c24['top']-_0x205c61;}}['_setItemTop'](_0x261e3a,_0x42a16e,_0x60d794=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x60d794&&(_0x42a16e=Math['max'](_0x42a16e,this['_getMaxAvailableTop'](_0x261e3a))),_0x261e3a['top']=_0x42a16e;}['_getMaxAvailableTop'](_0x534769){let _0x4b1d29=this['_getItemBefore'](_0x534769),_0x431f94=0x0;for(;_0x4b1d29;)_0x4b1d29['updateHeight'](),_0x431f94+=this['_spaceBetweenItems']+_0x4b1d29['height'],_0x4b1d29=this['_getItemBefore'](_0x4b1d29);return _0x431f94;}}function G(_0xf8ee81,_0xad6e65){return Math['max'](_0xf8ee81-_0xad6e65,0x0);}function g(_0x1e8a50){return null!==_0x1e8a50&&'object'==typeof _0x1e8a50&&0x1===_0x1e8a50['nodeType'];}class e extends _0x37562f{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13d4f8){super(_0x13d4f8),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x5bd6e5(),this['_refreshPositioningDebounced']=_0x483d8a(()=>{_0x13d4f8['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x52229c=this['context']['plugins']['get'](j),_0x35e956=this['context']['plugins']['get'](z);_0x52229c['register']('wideSidebar',this),_0x35e956['container']&&_0x52229c['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x33b178){if(_0x33b178===this['activeAnnotation'])return;const _0x4973d1=this['context']['plugins']['get'](z);_0x4973d1['_activeAnnotation']=_0x33b178;const _0x47e871=this['activeAnnotation'];_0x4973d1['refresh']({'blurredAnnotation':_0x47e871,'activatedAnnotation':_0x33b178}),this['activeAnnotation']=_0x33b178;}['attach'](_0x17234e){this['annotations']=_0x17234e;const _0x3df907=this['context']['plugins']['get'](z);if(_0x3df907['_annotations']=_0x17234e,this['isAttached'])throw new _0x2ac32c('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3df907,'set:container',()=>{this['detach'](),this['listenTo'](_0x3df907,'change:container',_0x4bfdde=>{_0x4bfdde['off'](),this['attach'](_0x17234e);});}),_0x3df907['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x55f8ab=_0x1fb90e=>{_0x1fb90e['updateTargetRect'](),_0x3df907['addAnnotation'](_0x1fb90e);};for(const _0x1e8bfc of _0x17234e)_0x55f8ab(_0x1e8bfc);this['listenTo'](_0x17234e,'add',(_0x3bc975,_0x57d9f6)=>{_0x55f8ab(_0x57d9f6);}),this['listenTo'](_0x17234e,'remove',(_0x26596e,_0xdc1a3,_0x3c02df)=>{_0x3df907['rearrange']({'removedAnnotation':_0xdc1a3,'previousAnnotation':_0x17234e['get'](_0x3c02df-0x1),'nextAnnotation':_0x17234e['get'](_0x3c02df+0x1)}),_0xdc1a3===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x17234e,'focus',(_0x3bae38,_0x315beb)=>{this['setActiveAnnotation'](_0x315beb);}),this['listenTo'](_0x17234e,'blur',()=>{this['setActiveAnnotation'](null);});const _0x1a9c2e=this['context']instanceof _0x59e252?this['context']['editors']:new _0x5bd6e5([this['context']]);for(const _0x1d9050 of _0x1a9c2e)this['_integrateWithEditorAnnotations'](_0x1d9050);this['listenTo'](_0x1a9c2e,'add',(_0x2d7ba0,_0x339118)=>{this['listenTo'](_0x339118,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x339118);});}),this['listenTo'](_0x1a9c2e,'remove',(_0x37c636,_0xf1964)=>{_0xf1964['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xf1964['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2ac32c('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x7a11ef=this['context']['plugins']['get'](z);_0x7a11ef['_detachFromContainer'](this['annotations']),this['stopListening'](_0x7a11ef),this['stopListening'](this['annotations']),this['context']instanceof _0x59e252&&this['stopListening'](this['context']['editors']);for(const _0x50bb17 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x50bb17);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x5003e3){if(!_0x5003e3['plugins']['has']('EditorAnnotations'))return;const _0x359bd=_0x5003e3['plugins']['get']('EditorAnnotations'),_0x16ae1b=()=>{const _0x286dd7=_0x359bd['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x286dd7[0x0]||null);};this['listenTo'](_0x359bd,'refresh',_0x16ae1b),this['listenTo'](_0x359bd,'blur',(_0x536e50,{isAnnotationTracked:_0xfbafdd})=>{this['activeAnnotation']&&_0xfbafdd(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x359bd,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x578c94=>{_0x359bd['hasDomSelection']()&&(_0x16ae1b(),_0x578c94['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x359bd);}['_destroyEditorAnnotationsIntegration'](_0x31a248){this['stopListening'](_0x31a248),this['_editorAnnotations']['remove'](_0x31a248);}}class C extends _0x4e3d0d{['counterView'];constructor(_0x451653){super(_0x451653);const _0x59850a=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x2a3c2,_0x49b7a8)=>_0x2a3c2?'...':_0x49b7a8['toString']()),this['set']('annotationType',''),this['icon']=_0x49b617,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x59850a['to']('annotationType',_0x4d9d21=>'ck-annotation-counter__badge--'+_0x4d9d21),_0x59850a['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x59850a['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x37562f{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e7c3e){super(_0x5e7c3e),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x58388a())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x5bd6e5(),this['_refreshPositioningDebounced']=_0x483d8a(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x207229(this['context']['locale']),this['balloonPanelView']=new _0x507304(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4524ba){this['annotations']=_0x4524ba;const _0x59e9b2=this['context']['plugins']['get'](z),_0x19fe21=this['balloonPanelView'];if(_0x59e9b2['_annotations']=_0x4524ba,this['isAttached'])throw new _0x2ac32c('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x59e9b2,'set:container',()=>{this['detach'](),this['listenTo'](_0x59e9b2,'change:container',_0x2bff92=>{_0x2bff92['off'](),this['attach'](_0x4524ba);});}),_0x59e9b2['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x425f47=_0x4c1ca8=>{const _0x2af032=new C(this['context']['locale']);_0x59e9b2['addAnnotation'](_0x4c1ca8,_0x2af032),this['_annotationToNarrowView']['set'](_0x4c1ca8,_0x2af032),_0x2af032['bind']('isDirty','annotationType','number')['to'](_0x4c1ca8['view'],'isDirty','type','length'),_0x2af032['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x19fe21['content']['first']!==_0x4c1ca8['view']?(this['_showBalloon'](_0x4c1ca8),_0x4c1ca8['view']['element']['focus'](),this['setActiveAnnotation'](_0x4c1ca8)):this['setActiveAnnotation'](null);});};for(const _0x37de2e of _0x4524ba)_0x425f47(_0x37de2e);this['listenTo'](_0x4524ba,'add',(_0x4bed19,_0x460816)=>{_0x425f47(_0x460816);}),this['listenTo'](_0x4524ba,'remove',(_0x4bbb58,_0x1c9251,_0x5b13ca)=>{this['_annotationToNarrowView']['get'](_0x1c9251)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1c9251),_0x59e9b2['rearrange']({'removedAnnotation':_0x1c9251,'previousAnnotation':_0x4524ba['get'](_0x5b13ca-0x1),'nextAnnotation':_0x4524ba['get'](_0x5b13ca+0x1)}),_0x1c9251===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4524ba,'focus',(_0x221a14,_0x3ee66e)=>{this['setActiveAnnotation'](_0x3ee66e);}),this['listenTo'](_0x4524ba,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x54c028,_0x128a72)=>{_0x128a72['keyCode']===_0x206db9['esc']&&_0x19fe21['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x19fe21['content']['first']),this['_hideBalloon'](),_0x128a72['stopPropagation'](),_0x128a72['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3143b6,_0x2d5be8)=>{const _0x907b4a=_0x2d5be8['target'];_0x19fe21['isVisible']&&_0x19fe21['element']['contains'](_0x907b4a)||_0x59e9b2['view']['element']['contains'](_0x907b4a)||_0x3143b6['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x221aa4=>_0x221aa4['contains'](_0x907b4a))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x402e2f=this['context']instanceof _0x59e252?this['context']['editors']:new _0x5bd6e5([this['context']]);for(const _0x2c98d7 of _0x402e2f)this['_integrateWithEditorAnnotations'](_0x2c98d7);this['listenTo'](_0x402e2f,'add',(_0x1ec5a9,_0x2a6035)=>{this['listenTo'](_0x2a6035,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2a6035);});}),this['listenTo'](_0x402e2f,'remove',(_0x2a5fff,_0x31e108)=>{_0x31e108['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x31e108['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x108463){if(_0x108463===this['activeAnnotation'])return;const _0x3cd0b3=this['context']['plugins']['get'](z);if(_0x3cd0b3['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x108463,'disableAnimationOnActivatedAnnotation':!0x0}),_0x108463)_0x3cd0b3['getSidebarItemView'](_0x108463)?this['_showBalloon'](_0x108463):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x108463;}['detach'](){if(!this['isAttached'])throw new _0x2ac32c('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x7668ff=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x54219c=>_0x54219c['destroy']()),this['_annotationToNarrowView']['clear'](),_0x7668ff['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x59e252&&this['stopListening'](this['context']['editors']);for(const _0x36ec44 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x36ec44);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x4aafee){if(!_0x4aafee['plugins']['has']('EditorAnnotations'))return;const _0x2dfe76=_0x4aafee['plugins']['get']('EditorAnnotations'),_0x3bf6d2=this['context']['plugins']['get'](z),_0x4dec4a=this['annotations'],_0xbb1c9b=this['balloonPanelView'],_0x1d8b8b=()=>{const _0x3aef87=_0x2dfe76['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x3aef87),this['setActiveAnnotation'](_0x3aef87[0x0]||null);};this['listenTo'](_0x2dfe76,'refresh',_0x1d8b8b),this['listenTo'](_0x2dfe76,'blur',(_0x1f5fe8,{isAnnotationTracked:_0x266bcc})=>{this['activeAnnotation']&&_0x266bcc(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2dfe76,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x4dec4a,'blur',_0x15bc6f=>{_0x2dfe76['hasDomSelection']()&&_0x15bc6f['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x349923,_0x20d267)=>{const _0x30d1f2=_0x20d267['target'];_0xbb1c9b['isVisible']&&_0xbb1c9b['element']['contains'](_0x30d1f2)||_0x3bf6d2['view']['element']['contains'](_0x30d1f2)||this['activeAnnotation']&&_0x2dfe76['hasDomSelection']()&&(_0x1d8b8b(),_0x349923['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2dfe76);}['_destroyEditorAnnotationsIntegration'](_0x43d1df){_0x43d1df&&(this['stopListening'](_0x43d1df),this['_editorAnnotations']['remove'](_0x43d1df));}['_setSelectedAnnotations'](_0x24fb42){for(const _0x222794 of this['_selectedAnnotations'])_0x24fb42['includes'](_0x222794)||this['_manuallyClosedAnnotationViews']['delete'](_0x222794['view']);this['_selectedAnnotations']=_0x24fb42;}['_refreshPositioning'](){const _0xe823a=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0xe823a['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3e4ad3){if(this['_manuallyClosedAnnotationViews']['has'](_0x3e4ad3['view']))return;const _0x4b231a=this['balloonPanelView']['content']['first'];_0x4b231a!==_0x3e4ad3['view']?(_0x4b231a&&this['_detachListeners'](_0x4b231a),this['_attachListeners'](_0x3e4ad3['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3e4ad3['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x1ee267=this['balloonPanelView']['content']['first'],_0x38ba30=_0x1ee267&&this['annotations']['getByView'](_0x1ee267);if(!_0x38ba30||!this['_annotationToNarrowView']['has'](_0x38ba30))return;const _0x656148=this['_annotationToNarrowView']['get'](_0x38ba30)['element'],_0x438f0c=(function(){const _0x2dbd7c=_0x507304['defaultPositions'];return[_0x2dbd7c['southArrowNorthEast'],_0x2dbd7c['northArrowSouthEast'],_0x2dbd7c['southArrowNorth'],_0x2dbd7c['northArrowSouth'],_0x2dbd7c['southArrowNorthWest'],_0x2dbd7c['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x656148,'positions':_0x438f0c});}['_hideBalloon'](){const _0x6db13b=this['balloonPanelView'],_0x205e26=_0x6db13b['content']['first'];_0x205e26&&(this['_detachListeners'](_0x205e26),_0x6db13b['unpin'](),_0x6db13b['content']['clear']());}['_attachListeners'](_0x2d6016){this['listenTo'](_0x2d6016,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x2d6016,'Esc',(_0x74dcc5,_0x2ac8db)=>{this['_manuallyClosedAnnotationViews']['add'](_0x2d6016),this['_hideBalloon'](),_0x2ac8db();});}['_detachListeners'](_0x3299e8){this['stopListening'](_0x3299e8);}}class c extends _0xa8525f{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x10f1b9,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a59c7){super(_0x2a59c7),_0x2a59c7['editing']['view']['addObserver'](_0x3ccea3),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x2a59c7['plugins']['get'](_0x10f1b9),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x483d8a(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x153730=this['editor']['plugins']['get'](j);_0x153730['context']===this['editor']&&(_0x153730['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x54556d,_0x29c2ba)=>{const _0x2eedcb=this['_balloon'];if(this['isAttached']&&_0x2eedcb['visibleView']){const _0x40e0f6=this['annotations']['getByView'](_0x2eedcb['visibleView']);_0x40e0f6&&this['_closeAnnotation'](_0x40e0f6),_0x29c2ba();}}));}['afterInit'](){const _0x534c4f=this['editor']['plugins']['get'](j);_0x534c4f['context']===this['editor']&&(_0x534c4f['hasActive']()||_0x534c4f['switchTo']('inline'));}['setActiveAnnotation'](_0x4545e1){_0x4545e1!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4545e1&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4545e1)&&this['_addAnnotationToBalloon'](_0x4545e1,!0x0),_0x4545e1['isActive']=!0x0),_0x4545e1||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4545e1);}['attach'](_0xb3208c){this['annotations']=_0xb3208c;const _0x4292ae=this['editor']['plugins']['get'](j),_0x5f0dd2=this['_balloon'];if(this['isAttached'])throw new _0x2ac32c('inlineannotations-attach-already-attached',this);if(_0x4292ae['context']!==this['editor'])throw new _0x2ac32c('inlineannotations-not-allowed-with-context',this);const _0x4c960e=this['editor']['plugins']['get'](b);this['listenTo'](_0x4c960e,'refresh',()=>{const _0x371106=_0x4c960e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x1eda75,_0x822b65;!this['_forceRefresh']&&(_0x1eda75=_0x371106,_0x822b65=this['_selectedAnnotations'],_0x1eda75['length']===_0x822b65['length']&&_0x1eda75['every'](_0x51795e=>_0x822b65['includes'](_0x51795e)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x371106),this['setActiveAnnotation'](_0x371106[0x0]||null));}),this['listenTo'](_0x4c960e,'blur',(_0x86cabd,{isAnnotationTracked:_0x1e27c2})=>{this['activeAnnotation']&&_0x1e27c2(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4c960e,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x155c52,_0x2bf0c0,_0x74c91d)=>{_0x74c91d||this['setActiveAnnotation'](null);}),this['listenTo'](_0xb3208c,'remove',(_0x36ab15,_0x1c150c)=>{this['_removeAnnotationFromBalloon'](_0x1c150c),_0x1c150c===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5f0dd2,'change:visibleView',(_0xbd6614,_0x33c2bd,_0x104366,_0x29812f)=>{_0x29812f&&this['stopListening'](_0x29812f);const _0x2dd95c=_0xb3208c['getByView'](_0x104366);_0x104366&&_0x2dd95c&&(this['listenTo'](_0x104366,'change:height',()=>{_0x5f0dd2['updatePosition']();}),this['listenTo'](_0x104366,'Esc',()=>{this['_closeAnnotation'](_0x2dd95c),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x2dd95c&&this['setActiveAnnotation'](_0x2dd95c));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5f0dd2['visibleView']&&(_0xb3208c['getByView'](_0x5f0dd2['visibleView'])&&_0x5f0dd2['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x2ac32c('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1f06f7 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1f06f7);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x57cd83){for(const _0x2cd385 of this['_selectedAnnotations'])_0x57cd83['includes'](_0x2cd385)||this['_manuallyClosed']['delete'](_0x2cd385);for(const _0x420618 of this['annotations'])_0x57cd83['includes'](_0x420618)||this['_removeAnnotationFromBalloon'](_0x420618);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x3a8644 of _0x57cd83)this['_addAnnotationToBalloon'](_0x3a8644);}this['_selectedAnnotations']=_0x57cd83;}['_addAnnotationToBalloon'](_0x2bd304,_0x15fc33=!0x1){this['_manuallyClosed']['has'](_0x2bd304)||(this['_addedAnnotations']['has'](_0x2bd304)||this['_balloon']['hasView'](_0x2bd304['view'])||(this['_addedAnnotations']['add'](_0x2bd304),this['_balloon']['add']({'stackId':_0x2bd304['view']['id'],'view':_0x2bd304['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2bd304)}})),_0x15fc33&&this['_balloon']['showStack'](_0x2bd304['view']['id']));}['_getBalloonTargetForAnnotation'](_0x44070e){const _0x220c72=_0x44070e['target'],_0x1c5b62=this['editor']['editing']['view'],_0x5f2ef2=_0x1c5b62['document']['selection']['getFirstRange'](),_0x266d9e=_0x1c5b62['domConverter']['viewRangeToDom'](_0x5f2ef2);if(_0x266d9e['collapse'](!0x0),_0x220c72){if(_0x220c72 instanceof _0x2208d7)return _0x220c72;let _0x2356b9=[];for(const _0x48b32c of _0x220c72)_0x2356b9['push'](...F(_0x48b32c['getClientRects']()));_0x2356b9=function(_0x2c2a10){const _0x3322ee=[];let _0x9735ab=_0x2c2a10[0x0];for(let _0x2a5ab8=0x1;_0x2a5ab8<_0x2c2a10['length'];_0x2a5ab8++)P(_0x9735ab,_0x2c2a10[_0x2a5ab8])?_0x9735ab['width']+=_0x2c2a10[_0x2a5ab8]['width']:(_0x3322ee['push'](_0x9735ab),_0x9735ab=_0x2c2a10[_0x2a5ab8]);return _0x3322ee['push'](_0x9735ab),_0x3322ee;}(_0x2356b9);const _0x378ce5=_0x266d9e['getBoundingClientRect']();return _0x2356b9['find'](_0x2739bc=>_0x2739bc['top']<=_0x378ce5['top']&&_0x2739bc['bottom']>=_0x378ce5['bottom']&&_0x2739bc['left']<=_0x378ce5['left']&&_0x2739bc['right']>=_0x378ce5['right'])||_0x2356b9[0x0];}return _0x44070e['targetRect']||_0x266d9e;}['_removeAnnotationFromBalloon'](_0x2bb4d5){this['_addedAnnotations']['has'](_0x2bb4d5)&&this['_balloon']['hasView'](_0x2bb4d5['view'])&&(this['_addedAnnotations']['delete'](_0x2bb4d5),this['_balloon']['remove'](_0x2bb4d5['view']));}['_closeAnnotation'](_0xd62485){this['_manuallyClosed']['add'](_0xd62485),this['_removeAnnotationFromBalloon'](_0xd62485);}}function F(_0x407490){return Array['from'](_0x407490)['map'](DOMRect['fromRect']);}function P(_0x147dad,_0x417709){return _0x147dad['top']===_0x417709['top']&&_0x147dad['bottom']===_0x417709['bottom']&&_0x147dad['right']===_0x417709['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x537ff3,_0x3d793c){super(_0x537ff3),this['set']('isEmpty',!_0x3d793c['length']),this['focusTracker']=new _0x4a39cb(),this['_annotationViews']=_0x3d793c,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x5b7087({'focusables':_0x3d793c,'focusTracker':this['focusTracker']}),this['listenTo'](_0x3d793c,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x3d793c,'remove',(_0x3ed72b,_0x43acae)=>{_0x43acae['isActive']&&this['focus'](),_0x3d793c['length']||(this['isEmpty']=!0x0);});const _0x3dff24=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x537ff3,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x3d793c},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x3dff24['if']('isEmpty','ck-hidden',_0x11477e=>!_0x11477e)]},'children':[{'text':N(_0x537ff3,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x55681e of this['_annotationViews'])this['focusTracker']['add'](_0x55681e['element']);this['_annotationViews']['on']('change',(_0x5e0636,{added:_0x5bf859,removed:_0x311eca})=>{for(const _0x353594 of _0x5bf859)this['focusTracker']['add'](_0x353594['element']);for(const _0x44acd5 of _0x311eca)this['focusTracker']['remove'](_0x44acd5['element']);});}}class p extends _0x37562f{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x76004e){super(_0x76004e),this['archivedThreads']=new _0x5bd6e5();}['init'](){const _0x2b8f29=this['context'],_0x57a725=_0x2b8f29['plugins']['get'](o),_0x1e4650=_0x2b8f29['plugins']['get'](y);this['listenTo'](_0x57a725,'addCommentThread',(_0x57dfdd,{threadId:_0x4ef55a})=>{const _0x4466db=_0x57a725['getCommentThread'](_0x4ef55a);_0x4466db['archivedAt']&&this['archivedThreads']['add'](_0x4466db,this['_calculatePosition'](_0x4466db['archivedAt'])),this['listenTo'](_0x4466db,'change:archivedAt',(_0x4eb19d,_0x1dcfc7,_0x2f1b6e)=>{_0x2f1b6e?this['archivedThreads']['has'](_0x4466db)||this['archivedThreads']['add'](_0x4466db,this['_calculatePosition'](_0x4466db['archivedAt'])):this['archivedThreads']['has'](_0x4466db)&&this['archivedThreads']['remove'](_0x4466db);});}),this['listenTo'](_0x57a725,'removeCommentThread',(_0x38ad8e,{threadId:_0x575c8a})=>{const _0x5c16c4=_0x57a725['getCommentThread'](_0x575c8a);this['stopListening'](_0x5c16c4),this['archivedThreads']['has'](_0x5c16c4)&&this['archivedThreads']['remove'](_0x5c16c4);},{'priority':'highest'}),this['listenTo'](_0x1e4650['collection'],'focus',(_0x22f654,_0x56fc4c)=>{_0x56fc4c['isVisible']||(_0x56fc4c['isActive']=!0x0,_0x1e4650['activate'](_0x56fc4c));});}['_calculatePosition'](_0x593ea2){const _0x44aac6=[...this['archivedThreads']]['findIndex'](_0x328676=>_0x328676['archivedAt']<_0x593ea2);return _0x44aac6>-0x1?_0x44aac6:this['archivedThreads']['length'];}}class a extends _0xa8525f{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x3d6f58];}constructor(_0x5acce5){super(_0x5acce5),this['annotationViews']=new _0x583bde(),this['_pendingThreads']=[];}['init'](){const _0x4a2cdb=this['editor'],_0x339262=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x4a2cdb['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x4e3d0d,!0x0)),_0x4a2cdb['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x5cf625=this['_createCommentsArchiveButton'](_0x237ac4);return _0x5cf625['set']({'role':'menuitemcheckbox'}),_0x5cf625;});const _0x325726=_0x4a2cdb['plugins']['get'](p),_0x2f5ec7=_0x4a2cdb['plugins']['get']('Annotations'),_0x1f49f8=_0x4a2cdb['plugins']['get']('CommentsRepository');_0x325726['archivedThreads']['forEach'](_0xddbf91=>{this['_handleNewThread'](_0xddbf91);}),this['listenTo'](_0x325726['archivedThreads'],'add',(_0x5c0faf,_0xde14fe)=>{this['_handleNewThread'](_0xde14fe);}),this['listenTo'](_0x2f5ec7['collection'],'add',(_0x410707,_0x1e7a4f)=>{const _0xfc3b7a=this['_pendingThreads']['find'](_0x267501=>{const _0x1e1c95=_0x1f49f8['_threadToController']['get'](_0x267501);return _0x1e1c95&&_0x1e7a4f['innerView']===_0x1e1c95['view'];});if(_0xfc3b7a){const _0x8b44b5=this['_calculatePosition'](_0xfc3b7a['archivedAt']);this['_addAnnotationToArchive'](_0x1e7a4f,_0x8b44b5),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xfc3b7a),0x1);}}),this['listenTo'](_0x325726['archivedThreads'],'remove',(_0x3b4d87,_0xdda4a9)=>{const _0x15c7bf=_0x4a2cdb['config']['get']('collaboration.channelId');if(!_0x15c7bf||_0xdda4a9['channelId']===_0x15c7bf){if(this['_pendingThreads']['includes'](_0xdda4a9))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xdda4a9),0x1);else{const _0x1e85ef=_0x1f49f8['_threadToController']['get'](_0xdda4a9),_0x393b05=_0x2f5ec7['getByInnerView'](_0x1e85ef['view']);this['annotationViews']['remove'](_0x393b05['view']),this['stopListening'](_0x393b05),this['stopListening'](_0x393b05['focusableElements']);}}}),this['listenTo'](_0x2f5ec7['collection'],'add',(_0xe5a24e,_0x33a52c)=>{this['listenTo'](_0x33a52c,'escape',_0x339262);}),this['listenTo'](_0x2f5ec7['collection'],'remove',(_0x3a8137,_0x3e480d)=>{this['stopListening'](_0x3e480d,'escape',_0x339262);});}['_addAnnotationToArchive'](_0x5a7d30,_0x24964a){this['listenTo'](_0x5a7d30,'set:isVisible',_0x1f8d6b=>{_0x1f8d6b['return']=!0x1,_0x1f8d6b['stop']();}),this['annotationViews']['add'](_0x5a7d30['view'],_0x24964a);}['_handleNewThread'](_0x522160){const _0x1a159e=this['editor']['plugins']['get']('CommentsRepository'),_0x42ce43=this['editor']['plugins']['get']('Annotations'),_0xeeff5b=this['editor']['config']['get']('collaboration.channelId');if(!_0xeeff5b||_0x522160['channelId']===_0xeeff5b){const _0x1e6e1c=_0x1a159e['_threadToController']['get'](_0x522160);if(!_0x1e6e1c)return void this['_pendingThreads']['push'](_0x522160);const _0x2f527b=this['_calculatePosition'](_0x522160['archivedAt']),_0x1c543=_0x42ce43['getByInnerView'](_0x1e6e1c['view']);_0x1c543['isVisible']&&_0x42ce43['_visibleAnnotations']['remove'](_0x1c543),this['_addAnnotationToArchive'](_0x1c543,_0x2f527b);}}['_calculatePosition'](_0x294204){const _0x38bf4e=this['editor']['config']['get']('collaboration.channelId'),_0x12c137=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x3ca63a=>_0x3ca63a['channelId']===_0x38bf4e)['findIndex'](_0x2b9e73=>_0x2b9e73['archivedAt']<_0x294204);return _0x12c137<0x0||_0x12c137>this['annotationViews']['length']?this['annotationViews']['length']:_0x12c137-0x1;}['_toggleDialog'](){const _0x2c692e=this['editor'],_0x4f07ae=_0x2c692e['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x2c692e['locale'],this['annotationViews'])),'commentsArchive'===_0x4f07ae['id']?_0x4f07ae['hide']():_0x4f07ae['show']({'id':'commentsArchive','title':N(_0x2c692e['locale'],'COMMENTS_ARCHIVE'),'icon':_0x9a8e51,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x262205['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x5a95ac,_0x3b845c=!0x1){const _0x10b324=this['editor']['locale'],_0x55de38=this['editor']['plugins']['get']('Dialog'),_0x366004=new _0x5a95ac(_0x10b324);return _0x366004['bind']('isEnabled')['to'](this,'isEnabled'),_0x366004['bind']('isOn')['to'](_0x55de38,'id',_0x3591f6=>'commentsArchive'===_0x3591f6),_0x366004['set']({'label':N(_0x10b324,'COMMENTS_ARCHIVE'),'icon':_0x9a8e51,'isToggleable':!0x0}),_0x3b845c&&(_0x366004['tooltip']=!0x0),this['listenTo'](_0x366004,'execute',()=>this['_toggleDialog']()),_0x366004;}['_hideDialogOnAnnotationEscape']=_0x12e76b=>{const _0x532d4b=_0x12e76b['source'];if(!this['annotationViews']['has'](_0x532d4b['view']))return;const _0x3a547b=this['editor']['plugins']['get']('Dialog');_0x3a547b['isOpen']&&'commentsArchive'===_0x3a547b['id']&&(_0x3a547b['hide'](),_0x12e76b['stop']());};}class gi extends _0xa8525f{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};