@ckeditor/ckeditor5-comments 47.6.2 → 47.7.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x3280f7,ContextPlugin as _0x4427fc,PendingActions as lt,Command as _0x387361,Plugin as _0x4aad6f,Context as _0x1819ae}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x36733b,uid as _0x49a746,KeystrokeHandler as jt,FocusTracker as _0x1b869f,diff as _0x1f3a01,Collection as _0x359f6f,Rect as _0x482e1e,CKEditorError as _0x1be892,first as _0x1a989f,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x3bfb52,keyCodes as _0x3d471d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x2e6685,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x4d5215,trimHtml as ts,LateFocusDropdownButtonView as _0x5a4470,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x2f354e}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x4d37e2}from'es-toolkit/compat';import{IconUndo as _0x4675ee,IconCheck as _0x2b516d,IconPencil as _0x5bceab,IconRemoveComment as _0x56bdaa,IconThreeVerticalDots as _0x375308,IconAddComment as _0x3065db,IconCommentsArchive as _0x231344}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0xba4b7f,ButtonView as _0x235388,ViewCollection as _0x4b50a2,createDropdown as _0x3ba136,ListView as _0x56a7a9,focusChildOnDropdownOpen as _0x24d5fc,ListItemView as _0x3ef368,MenuBarMenuListItemButtonView as _0xba86ba,BodyCollection as _0x1d7182,BalloonPanelView as _0x1c777c,ContextualBalloon as _0x25f061,Dialog as _0x350d3c,DialogViewPosition as _0x5b66b1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x4749c3}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 _0x221ef1}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x56c570}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x36733b(){['model'];['view'];constructor(_0x4f03b3,_0x43653e){super(),this['model']=_0x4f03b3,this['model']['_isAttached']=!0x0,this['view']=_0x43653e,this['listenTo'](_0x43653e,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x43653e,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x43653e,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x43653e,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x43653e,'addComment',(_0xb407d1,_0x4fd1cc)=>this['addComment'](_0x4fd1cc)),this['listenTo'](_0x43653e,'updateComment',(_0x3bca02,_0x275acb,_0x20cf40)=>this['updateComment'](_0x275acb,_0x20cf40)),this['listenTo'](_0x43653e,'removeComment',(_0x53b052,_0x284fdb)=>this['removeComment'](_0x284fdb));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x3a8756){this['model']['addComment']({'content':_0x3a8756,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x4dd4f7,_0x1d50a8){this['model']['getComment'](_0x4dd4f7)['update']({'content':_0x1d50a8});}['removeComment'](_0x27f8b3){this['model']['getComment'](_0x27f8b3)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x1be046,_0x260646,_0x24919a){const t=_0x1be046['t'];switch(_0x260646){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'},_0x24919a);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'},_0x24919a);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'},_0x24919a);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'},_0x24919a);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x24919a);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'},_0x24919a);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'},_0x24919a);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'},_0x24919a);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(_0x13a93a,_0x524524){super(_0x13a93a);const _0x28b5a6=_0x49a746();this['main']=this['createCollection'](),this['editable']=new Vt(_0x13a93a,_0x524524,void 0x0,{'label':()=>N(_0x13a93a,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x13a93a['uiLanguageDirection'],'lang':_0x13a93a['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x28b5a6},'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(_0x2a720b){super(_0x2a720b),this['view']=new Rt(_0x2a720b['locale'],_0x2a720b['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x2adaa1=this['editor']['editing']['view'],_0x231e2d=this['view']['editable'],_0x4f74ad=_0x2adaa1['document']['getRoot']();_0x231e2d['name']=_0x4f74ad['rootName'],this['view']['render']();const _0xc62c1c=_0x231e2d['element'];this['setEditableElement'](_0x231e2d['name'],_0xc62c1c),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2adaa1['attachDomRoot'](_0xc62c1c),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x36733b(_0x3280f7){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x2784d2={}){function _0x459f38(_0x33817c){return _0x33817c['map'](_0xe4ff71=>String['fromCharCode'](_0xe4ff71))['join']('');}(_0x2784d2=Object['assign']({},_0x2784d2))['plugins']||(_0x2784d2['plugins']=hs['defaultPlugins']),super(_0x2784d2),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[_0x459f38([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x459f38([0x76,0x69,0x65,0x77])][_0x459f38([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x459f38([0x61,0x75,0x74,0x6f]),this[_0x459f38([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x459f38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x459f38([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x459f38([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x459f38([0x6f,0x6b])});}['create'](){const _0x2932c7=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x2932c7))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x3f8b0f=>{const _0x2ebc17=this['model']['document']['getRoot'](),_0x5342b4=_0x2ebc17&&_0x2ebc17['getChild'](_0x2ebc17['childCount']-0x1);_0x3f8b0f['setSelection'](_0x5342b4,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x8a54e=this['editing']['view'],_0x28d717=_0x8a54e['document']['getRoot'](),_0x25ef19=_0x28d717['getChild'](0x0);_0x28d717['childCount']>0x1||!_0x25ef19||'p'!=_0x25ef19['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x8a54e,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x25ef19['placeholder']=this['placeholder']),Ft({'view':_0x8a54e,'element':_0x25ef19,'keepOnFocus':!0x0}),this['placeholderElement']=_0x25ef19);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5d6746,_0x58e3b4={}){super(_0x5d6746),this['editor']=null,this['_editorConfig']=_0x58e3b4,this['set']('value',_0x58e3b4['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x5d6746,'Reply...')),this['set']('submitLabel',N(_0x5d6746,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x1b869f(),this['focusCycler']=new _0xba4b7f({'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',(_0x30bff7,_0xc77c2a)=>{this['cancelButtonView']['fire']('execute'),_0xc77c2a();}),this['keystrokes']['set']('Ctrl+Enter',(_0x5dd052,_0x2f0271)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x2f0271());}),this['on']('submit',(_0x527f31,_0x1bd500)=>{_0x1bd500['length']>0xfde8?(alert(N(_0x5d6746,'TOO_LONG_COMMENT_ALERT',[_0x1bd500['length'],0xfde8])),_0x527f31['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 _0x2bca31=this['editor'];this['element']['insertBefore'](_0x2bca31['ui']['element'],this['element']['firstChild']),_0x2bca31['model']['document']['on']('change',()=>this['value']=_0x2bca31['getData']()),_0x2bca31['bind']('placeholder')['to'](this),this['focusables']['add'](_0x2bca31['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x541423){-0x1===_0x541423?(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:_0x2e4cb4}=this,_0x57daf8=new _0x235388(_0x2e4cb4);return _0x57daf8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x57daf8['withText']=!0x0,_0x57daf8['bind']('label')['to'](this,'submitLabel'),_0x57daf8['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x57daf8['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x20c53a,_0x505e66)=>!_0x505e66&&!!_0x20c53a['trim']()),_0x57daf8;}['_createCancelButton'](){const {locale:_0x3e5917}=this,_0xdf888c=new _0x235388(_0x3e5917);return _0xdf888c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0xdf888c['label']=N(_0x3e5917,'Cancel'),_0xdf888c['withText']=!0x0,_0xdf888c['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0xdf888c;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x43f7ec=>{this['focusTracker']['add'](_0x43f7ec['element']);}),this['focusables']['on']('change',(_0x4cc95f,_0x3bd672)=>{for(const _0xd15b7f of Array['from'](_0x3bd672['added'])['reverse']())this['focusTracker']['add'](_0xd15b7f['element']);});}}class ie extends kt{constructor(_0x4d141e,_0x50364c,_0x500180){super(_0x4d141e),this['commentInputView']=new es(_0x4d141e,_0x500180),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x32de19,_0x17185f)=>_0x32de19||!!_0x17185f),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 _0x2e6685(_0x4d141e,_0x50364c),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'](_0x225444){this['commentInputView']['focus'](_0x225444);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xeaca6f,_0x2ae51f)=>{const {submitButtonView:_0x437c06,cancelButtonView:_0x1f585a,editor:_0x3e9e29}=this['commentInputView'];[_0x437c06['element'],_0x1f585a['element'],_0x3e9e29?_0x3e9e29['editing']['view']['getDomRoot']():null]['filter'](_0x1cf693=>_0x1cf693)['some'](_0x3cbd0b=>_0x3cbd0b['contains'](_0x2ae51f['target']))||(this['focus'](),_0x2ae51f['preventDefault']());});}}class rs extends kt{constructor(_0x39f81c){super(_0x39f81c);const _0x528de9=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x528de9['to']('count',_0x602207=>N(_0x39f81c,'NUMBER_OF_COMMENTS',_0x602207))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5ef660,_0x54990b,_0x4defce){super(_0x5ef660);const _0x394531=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x54990b['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x54990b,this['_config']=_0x4defce,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x1b869f(),this['keystrokes']=new jt(),this['focusCycler']=new _0xba4b7f({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x64342c=>this['commentViews']['map'](_0x523950=>_0x523950['element'])['includes'](_0x64342c['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x5ef660),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x19ec44=>_0x19ec44-this['_config']['maxCommentsWhenCollapsed']);for(const _0x33b514 of _0x54990b['comments'])this['_handleNewCommentModel'](_0x33b514);this['_handleInfoComment'](),this['listenTo'](_0x54990b['comments'],'add',(_0x346a9e,_0x1680c4)=>{const _0x175c55=this['_calculatePosition'](_0x1680c4);this['length']++,this['_handleNewCommentModel'](_0x1680c4,_0x175c55),this['refreshVisibleViews']();}),this['listenTo'](_0x54990b['comments'],'remove',(_0x578065,_0x41b318)=>{this['length']--,this['_handleRemoveCommentModel'](_0x41b318),this['refreshVisibleViews']();}),this['listenTo'](_0x54990b,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x54990b,'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',_0x394531['if']('length','ck-hidden',_0x1a78fd=>!_0x1a78fd)],'aria-label':N(_0x5ef660,'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'](_0x4b8430){-0x1===_0x4b8430?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4d3edf of this['commentViews'])_0x4d3edf['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x168f95,_0x1df325){const _0x244cd8=new this['_config']['CommentView'](this['locale'],_0x168f95,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x244cd8['viewUid']=_0x168f95['id'],_0x244cd8['delegate']('removeComment')['to'](this),_0x244cd8['delegate']('updateComment')['to'](this),_0x244cd8['delegate']('resolveCommentThread')['to'](this),_0x244cd8['delegate']('editorReady')['to'](this),_0x244cd8['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x244cd8,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x244cd8,_0x1df325);}['_calculatePosition'](_0x50398d){const _0xd9841e=this['_model']['_findOptimalIndex'](_0x50398d);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x50398d['authoredAt']?_0xd9841e-0x1:_0xd9841e:_0xd9841e-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x967931={'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'],_0x967931,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x967931));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x58fa5e){const _0x316a5e=this['commentViews']['remove'](_0x58fa5e['id']);this['stopListening'](_0x316a5e),_0x316a5e['isEditMode']&&this['_updateHasDirtyComment'](),_0x316a5e['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2e2ae4=>_0x2e2ae4['isEditMode']);}['_rearrangeCollapse'](){const _0x210be4=function(_0x59e835){const _0xfc2bea=new _0x359f6f();for(const _0x1d1170 of _0x59e835)_0xfc2bea['add'](_0x1d1170);return _0xfc2bea;}(this['commentViews']),_0x38a742=this['_collapsedCommentsView']['count'];for(let _0x3de128=0x1;_0x3de128<=_0x38a742;_0x3de128++)_0x210be4['remove'](0x1);for(const _0x709a3c of _0x210be4)_0x709a3c['collapse']();_0x38a742>0x0&&_0x210be4['add'](this['_collapsedCommentsView'],0x1),ns(_0x1f3a01(Array['from'](this['visibleViews']),Array['from'](_0x210be4)),this['visibleViews'],_0x210be4);}['_rearrangeExpand'](){ns(_0x1f3a01(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1d4802 of this['visibleViews'])_0x1d4802['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x3993da=>{this['focusTracker']['add'](_0x3993da['element']),this['keystrokes']['listenTo'](_0x3993da['element']);}),this['commentViews']['on']('change',(_0x3ed401,_0x5f068f)=>{for(const _0x5019d5 of _0x5f068f['removed'])this['focusTracker']['remove'](_0x5019d5['element']),this['keystrokes']['stopListening'](_0x5019d5['element']);for(const _0x280615 of Array['from'](_0x5f068f['added'])['reverse']())this['focusTracker']['add'](_0x280615['element']),this['keystrokes']['listenTo'](_0x280615['element']);});}}function ns(_0x13c87b,_0x1dda31,_0x43f3f0){let _0x40d98c=0x0;for(const _0x22d8f0 of _0x13c87b)switch(_0x22d8f0){case'insert':_0x1dda31['add'](_0x43f3f0['get'](_0x40d98c),_0x40d98c),_0x40d98c++;break;case'delete':_0x1dda31['remove'](_0x40d98c);break;case'equal':_0x40d98c++;}}class oe extends kt{constructor(_0x75ed3a){super(_0x75ed3a);const _0x3346b6=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3346b6['to']('contextValue',_0x18ec1d=>N(_0x75ed3a,'THREAD_CONTEXT_LABEL',_0x18ec1d)),'tabindex':-0x1},'children':[{'text':_0x3346b6['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x96cb6,_0x10e43e){super(_0x96cb6);const _0x1a6e6c=this['bindTemplate'];this['_model']=_0x10e43e,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x1b869f(),this['keystrokes']=new jt(),this['focusCycler']=new _0xba4b7f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x2e71b4=>!!_0x2e71b4),this['bind']('contextValue')['to'](this['_model'],'context',_0x3f6ae0=>_0x3f6ae0&&_0x3f6ae0['value']?this['_trimContextValue'](_0x3f6ae0['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',_0x1a6e6c['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 _0x44e93a=new _0x235388(this['locale']);return _0x44e93a['label']=N(this['locale'],'Reopen'),_0x44e93a['tooltip']=N(this['locale'],'Reopen'),_0x44e93a['icon']=_0x4675ee,_0x44e93a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3e8061=>!_0x3e8061),_0x44e93a['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x389bcb,_0x37c398)=>_0x389bcb&&_0x37c398),_0x44e93a['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x44e93a;}['_trimContextValue'](_0x163d2a){if(_0x163d2a['length']<0x96)return _0x163d2a;const _0x3a55bb=_0x163d2a['lastIndexOf']('\x20',0x93);return _0x163d2a['substring'](0x0,_0x3a55bb>-0x1?_0x3a55bb:0x93)+'...';}['_attachContextActions'](){const _0x5222da=this['element']['querySelector']('.ck-context'),_0x2a8026=_0x5222da['querySelector']('.ck-context__value');this['listenTo'](_0x5222da,'mouseenter',()=>{_0x2a8026['offsetWidth']<_0x2a8026['scrollWidth']&&_0x5222da['classList']['add']('overlay');}),this['listenTo'](_0x5222da,'mouseleave',()=>{_0x5222da['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5ce4e4 of this['focusables'])this['focusTracker']['add'](_0x5ce4e4['element']),this['keystrokes']['listenTo'](_0x5ce4e4['element']);}['_createContextView'](){const _0x19acc5=new oe(this['locale']);return _0x19acc5['bind']('contextValue')['to'](this),_0x19acc5;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x238426,_0x493bb3,_0xaeb06b,_0x13b0e8){super(_0x238426),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x493bb3,this['_localUser']=_0xaeb06b,this['_config']=_0x13b0e8,this['commentThreadHeaderView']=new Xt(_0x238426,_0x493bb3),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x238426,N(_0x238426,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x238426,_0x493bb3,Object['assign']({'CommentView':this['_config']['CommentView']},_0x13b0e8)),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',(_0x17a5dd,_0x23fb54)=>_0x17a5dd||!!_0x23fb54),this['bind']('isUnlinked')['to'](_0x493bb3,'unlinkedAt',_0x5124a0=>!!_0x5124a0),this['bind']('ariaLabel')['to'](this,'length',_0x3cd0b9=>{const _0x46b3b7=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x3cd0b9,_0x46b3b7]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x1b869f(),this['keystrokes']=new jt(),this['focusCycler']=new _0xba4b7f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ee881=>_0x2ee881['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 _0x44b334=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x57c7c7=_0x44b334['commentInputView'];return _0x44b334['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x57c7c7,'value',(_0x3b5554,_0x136215,_0x45da03,_0x275d84,_0x565c6f)=>!!_0x565c6f||!!_0x275d84&&_0x45da03&&!_0x136215||_0x3b5554&&_0x45da03&&!_0x136215),_0x57c7c7['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1d60d1,_0x127b72,_0xe8a372)=>{let _0xd07fa1;return _0xd07fa1=_0xe8a372&&_0x127b72?'Reply\x20to\x20reopen\x20discussion...':_0x1d60d1?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0xd07fa1);}),_0x57c7c7['bind']('submitLabel')['to'](this,'length',_0x2d6bc9=>N(this['locale'],_0x2d6bc9?'Reply':'Comment')),_0x57c7c7['on']('submit',(_0x5a38f5,_0x251cf8)=>{this['fire']('addComment',_0x251cf8),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x57c7c7['on']('cancel',()=>{this['focus']();}),_0x57c7c7['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x57c7c7['on']('cancel',_0x52583b=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x52583b['stop']());}),this['on']('change:isActive',(_0x40ea07,_0x2ec06f,_0x5286f2)=>{_0x5286f2||this['length']||_0x57c7c7['value']||this['fire']('removeCommentThread');}),_0x44b334;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4f00d4,_0x2be28d,_0x58e797,_0x30d207){super(_0x4f00d4,_0x2be28d,_0x58e797,_0x30d207),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4f00d4,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x73f79d,_0x21e079,_0xa145f2)=>{_0xa145f2||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0xe0d64e,_0x228dee,_0x4bed80)=>{_0x4bed80&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x50aca1=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x50aca1['if']('isActive','ck-thread--active'),_0x50aca1['if']('isUnlinked','ck-thread--unlinked'),_0x50aca1['to']('actionIndicator',_0x1a6037=>_0x1a6037?'ck-thread--'+_0x1a6037:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x50aca1['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 _0x52f37d of this['commentsListView']['commentViews'])_0x52f37d['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x1fd14e}=this,_0x56abbc=this['commentsListView']['commentViews']['get'](0x0);_0x56abbc===this['_boundFirstCommentView']||_0x56abbc['isSystemComment']||(this['_boundFirstCommentView']=_0x56abbc,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x56abbc,'actionIndicator',_0x50aaf5=>'remove'===_0x50aaf5?'remove':null),_0x56abbc['placeholder']=N(_0x1fd14e,'Write\x20a\x20comment...'),_0x56abbc['removeButton']['on']('execute',_0x8f9b70=>{_0x8f9b70['stop'](),this['showConfirm'](N(_0x1fd14e,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x56abbc['focus']();}),_0x56abbc['actionBar']['add'](this['resolveButton'],0x0),_0x56abbc['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x41777d=new _0x4d5215(this['locale']);return _0x41777d['label']=N(this['locale'],'Resolve'),_0x41777d['tooltip']=N(this['locale'],'Resolve'),_0x41777d['icon']=_0x2b516d,_0x41777d['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x41777d['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xeda54c=>!_0xeda54c),_0x41777d['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2ac8ce,_0xe738)=>_0x2ac8ce&&!_0xe738),_0x41777d['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x41777d;}['_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(_0x161f76){super(_0x161f76),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x3eb928,_0x2767c3,_0x19725e)=>{this['element']['innerHTML']=_0x19725e;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x39d342,_0x4a86b3,_0x3187e1){super(_0x39d342),this['_model']=_0x4a86b3,this['_config']=_0x3187e1,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x4a86b3,'content',_0x4a86b3,'authoredAt',(_0x16b655,_0x43a93c)=>N(_0x39d342,'COMMENT_ARIA_LABEL',[_0x4a86b3['author']['name'],_0x3187e1['formatDateTime'](_0x43a93c),new DOMParser()['parseFromString'](_0x16b655,'text/html')['body']['textContent'],_0x4a86b3['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x39d342,N(_0x39d342,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x4b50a2(),this['focusTracker']=new _0x1b869f(),this['keystrokes']=new jt(),this['focusCycler']=new _0xba4b7f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1a6f8a=>_0x1a6f8a['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 _0x47a774=new is(this['locale']);return _0x47a774['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x4f8892,_0x34d4d5)=>_0x34d4d5?ts(_0x4f8892,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x4f8892),_0x47a774;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x477e25=new es(this['locale'],this['_config']['editorConfig']);return _0x477e25['value']=this['_model']['content'],_0x477e25['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x477e25['submitLabel']=N(this['locale'],'Save'),_0x477e25['on']('submit',(_0x4265f8,_0x970847)=>{this['fire']('updateComment',this['_model']['id'],_0x970847),this['switchToDisplayMode'](),this['focus']();}),_0x477e25['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x477e25['once']('editorReady',()=>{_0x477e25['focus']();}),_0x477e25['createEditor'](),_0x477e25['delegate']('editorReady')['to'](this),_0x477e25['delegate']('editorDestroyed')['to'](this),_0x477e25;}['_setupKeyboardNavigation'](){const _0x110f31=this['element'];this['keystrokes']['listenTo'](_0x110f31);for(const _0xd134cd of this['focusables'])this['focusTracker']['add'](_0xd134cd['element']),this['keystrokes']['listenTo'](_0xd134cd['element']);this['focusables']['on']('change',(_0x199a15,_0x523c54)=>{for(const _0x35edaf of _0x523c54['removed'])this['focusTracker']['remove'](_0x35edaf['element']),this['keystrokes']['stopListening'](_0x35edaf['element']);for(const _0x38ff8f of _0x523c54['added'])this['focusTracker']['add'](_0x38ff8f['element']),this['keystrokes']['listenTo'](_0x38ff8f['element']);}),this['keystrokes']['set']('enter',(_0x291947,_0x21ddaa)=>{_0x110f31===_0x291947['target']&&(this['focusCycler']['focusFirst'](),_0x21ddaa());}),this['keystrokes']['set']('esc',(_0x25d0f1,_0x31cfc7)=>{_0x110f31!==_0x25d0f1['target']&&(this['focus'](),_0x31cfc7());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x5d8fd6,_0x53328f,_0x52cc8c){super(_0x5d8fd6,_0x53328f,_0x52cc8c),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x5d8fd6,'Reply...')),this['bind']('authoredAt')['to'](_0x53328f),this['bind']('resolvedAt')['to'](_0x53328f),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 _0x2e6685(_0x5d8fd6,_0x53328f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x53328f,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5af062=this['bindTemplate'],_0x9ea86b=[{'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':_0x5af062['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5af062['to']('authoredAt',_0xd7ed74=>this['_config']['formatDateTime'](_0xd7ed74))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5af062['if']('isEditMode','ck-comment__actions--hidden'),_0x5af062['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']&&_0x9ea86b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x5af062['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5af062['if']('isEditMode','ck-comment--edit'),_0x5af062['if']('isSystemComment','ck-comment--info'),_0x5af062['to']('actionIndicator',_0x577ae2=>_0x577ae2?'ck-comment--'+_0x577ae2:'')],'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':_0x9ea86b}]}]};}['_createEditButton'](){const _0x427b91=new _0x235388(this['locale']);return _0x427b91['label']=N(this['locale'],'Edit'),_0x427b91['icon']=_0x5bceab,_0x427b91['withText']=!0x0,_0x427b91['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x427b91['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1b0d2e=>!_0x1b0d2e),_0x427b91['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x427b91['on']('execute',()=>this['switchToEditMode']()),_0x427b91;}['_createRemoveButton'](){const _0x5b308e=new _0x235388(this['locale']);return _0x5b308e['label']=N(this['locale'],'Remove'),_0x5b308e['icon']=_0x56bdaa,_0x5b308e['withText']=!0x0,_0x5b308e['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5b308e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5c286f=>!_0x5c286f),_0x5b308e['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5b308e['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5b308e;}['_createDropdown'](){const _0x291663=_0x3ba136(this['locale'],_0x5a4470),_0x33b058=_0x291663['panelView']['children'],_0x24e237=new _0x56a7a9(this['locale']),_0x48e08b=_0x291663['bindTemplate'];_0x24d5fc(_0x291663,()=>this['items']['find'](_0x1d97d3=>_0x1d97d3['isVisible'])),_0x291663['extendTemplate']({'attributes':{'class':[_0x48e08b['if']('isVisible','ck-hidden',_0x5107c2=>!_0x5107c2)]}});const _0x4c603d=(_0x5b4feb,_0x27250f=-0x1)=>{const _0x4c5ba8=new _0x3ef368(this['locale']);_0x4c5ba8['children']['add'](_0x5b4feb);const _0x1f2d6d=_0x27250f>-0x1?_0x27250f:_0x24e237['items']['length'];_0x24e237['items']['add'](_0x4c5ba8,_0x1f2d6d);const _0xc386d8=Array['from'](this['items']);_0x291663['unbind']('isEnabled','isVisible'),_0x291663['bind']('isEnabled')['toMany'](_0xc386d8,'isEnabled',(..._0x331d00)=>_0x331d00['some'](_0x2de963=>_0x2de963)),_0x291663['bind']('isVisible')['toMany'](_0xc386d8,'isVisible',(..._0x8344d5)=>_0x8344d5['some'](_0x7b08ec=>_0x7b08ec));};_0x291663['panelPosition']='sw',_0x291663['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x375308});for(const _0x330066 of this['items'])_0x4c603d(_0x330066);return _0x33b058['add'](_0x24e237),_0x291663['listenTo'](this['items'],'add',(_0x45c3f2,_0x12b3b1,_0x172c99)=>{_0x4c603d(_0x12b3b1,_0x172c99);}),_0x291663['listenTo'](this['items'],'remove',(_0xdcc95,_0x2dd6d5,_0x1da1e1)=>{_0x24e237['items']['remove'](_0x1da1e1);}),_0x291663;}['_attachActions'](_0x427470,_0x363ec3){const _0x47b02=_0x427470&&_0x427470['element'];_0x47b02&&(this['listenTo'](_0x47b02,'mouseenter',()=>this['actionIndicator']=_0x363ec3),this['listenTo'](_0x47b02,'focus',()=>this['actionIndicator']=_0x363ec3),this['listenTo'](_0x47b02,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x47b02,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x17f775=super['_createCommentInputView']();return _0x17f775['bind']('placeholder')['to'](this),_0x17f775;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x21888d){const _0x487488=Dt(_0x21888d,0x1e),_0x5c5ca8=new MutationObserver(_0x3181be=>{for(const _0x556357 of _0x3181be)('attributes'==_0x556357['type']&&'class'==_0x556357['attributeName']||'childList'==_0x556357['type']||'characterData'==_0x556357['type'])&&_0x487488();});return{'attach'(_0x5efce7){_0x5c5ca8['observe'](_0x5efce7,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5c5ca8['disconnect'](),_0x487488['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0xf8d9a7,_0x363ed4){super(_0xf8d9a7),this['id']=_0x49a746(),this['focusTracker']=new _0x1b869f(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x5ccc1f,_0x39a24f)=>this['fire']('Esc',_0x39a24f)),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'](_0x363ed4),this['mainView']=_0x363ed4;const _0x269d1f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x269d1f['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 _0x4ee0c7=this['element']['clientHeight'];_0x4ee0c7&&(this['height']=_0x4ee0c7);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x36733b(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x4f95ad,target:_0x5a6298,type:_0x430083,isVisible:_0x366005=!0x0}){super(),this['view']=_0x4f95ad,this['view']['element']||this['view']['render'](),this['_type']=_0x430083,this['_target']=_0x5a6298,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x359f6f([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x52f446,_0x1f9efc)=>{this['view']['focusTracker']['add'](_0x1f9efc);}),this['focusableElements']['on']('remove',(_0x54260e,_0x1bb437)=>{this['view']['focusTracker']['remove'](_0x1bb437);}),this['set']('isVisible',_0x366005);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x575c48=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x575c48),_0x575c48;}get['targetRect'](){const _0x2325a3=this['target'];if(null===_0x2325a3)return null;if(_0x2325a3 instanceof _0x482e1e)return _0x2325a3;const _0x4db358=_0x2325a3['filter'](_0x123bf6=>function(_0x1d48e1){const _0x20f853=_0x1d48e1['offsetParent'];if(_0x20f853)return!0x0;const _0x39836c=_0x1d48e1['getClientRects']()['item'](0x0);return!!_0x39836c;}(_0x123bf6));return 0x0===_0x4db358['length']?null:new _0x482e1e(_0x4db358[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3874d6){this['view']['isActive']=_0x3874d6,this['view']['mainView']['isActive']=_0x3874d6;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3bba8f){if(!(null===_0x3bba8f||_0x3bba8f instanceof _0x482e1e||Array['isArray'](_0x3bba8f)&&_0x3bba8f['every'](_0x3be30b=>fi(_0x3be30b))))throw new _0x1be892('annotation-invalid-target',null,{'target':_0x3bba8f});}['_getNormalizedTarget'](){const _0x576afb='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x576afb)?[_0x576afb]:_0x576afb;}}function fi(_0x2fd1e4){return null!==_0x2fd1e4&&'object'==typeof _0x2fd1e4&&'nodeType'in _0x2fd1e4&&0x1===_0x2fd1e4['nodeType'];}class S extends _0x359f6f{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x515941=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x1b869f(),this['_focusTracker']['on']('change:isFocused',(_0x42d22f,_0x494bda,_0x233a3a)=>{_0x233a3a||this['fire']('blur');});for(const _0x4f6428 of _0x515941)this['add'](_0x4f6428);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x483c15){if(this['has'](_0x483c15))throw new _0x1be892('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x483c15['innerView'],_0x483c15),this['_viewToAnnotation']['set'](_0x483c15['view'],_0x483c15);for(const _0x4fd805 of _0x483c15['focusableElements'])this['_focusTracker']['add'](_0x4fd805);this['listenTo'](_0x483c15['focusableElements'],'add',(_0x58f087,_0x4ddd96)=>{this['_focusTracker']['add'](_0x4ddd96);}),this['listenTo'](_0x483c15['focusableElements'],'remove',(_0x2870c1,_0x1375fb)=>{this['_focusTracker']['remove'](_0x1375fb);}),this['listenTo'](_0x483c15['view']['focusTracker'],'change:isFocused',(_0x46d118,_0x159403,_0x1908cb)=>{_0x1908cb&&this['fire']('focus',_0x483c15);}),_0x483c15['updateTargetRect']();const _0x251eac=this['_getOrderInContent'](_0x483c15['view']['targetRect']);return super['add'](_0x483c15,_0x251eac);}['remove'](_0x4f04fb){if(!this['has'](_0x4f04fb))throw new _0x1be892('annotationcollection-not-existing-item',null);this['stopListening'](_0x4f04fb['view']['focusTracker']),this['stopListening'](_0x4f04fb['focusableElements']);for(const _0x150255 of _0x4f04fb['focusableElements'])this['_focusTracker']['remove'](_0x150255);return this['_viewToAnnotation']['delete'](_0x4f04fb['view']),this['_innerViewToAnnotation']['delete'](_0x4f04fb['innerView']),super['remove'](_0x4f04fb);}['getByInnerView'](_0x1443f9){return this['_innerViewToAnnotation']['get'](_0x1443f9);}['getByView'](_0x3b4f55){return this['_viewToAnnotation']['get'](_0x3b4f55);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x58ba2c of this)_0x58ba2c['updateTargetRect']();this['_sort']();}['_sort'](){const _0x46406e=Array['from'](this)['sort']((_0x129c3a,_0x5ea599)=>w(_0x129c3a['view']['targetRect'],_0x5ea599['view']['targetRect']));for(let _0x4ce23c=_0x46406e['length']-0x1;_0x4ce23c>0x0;_0x4ce23c--){const _0x473703=_0x46406e[_0x4ce23c];_0x4ce23c!==this['getIndex'](_0x473703)&&(this['remove'](_0x473703),this['add'](_0x473703));}}['_getOrderInContent'](_0x503d46){let _0x3df51b=0x0;if(!_0x503d46)return this['length'];for(const _0x5a62e4 of this){const _0x65f21d=_0x5a62e4['view']['targetRect'];if(_0x65f21d){if(w(_0x503d46,_0x65f21d)<0x0)return _0x3df51b;_0x3df51b++;}}return _0x3df51b;}}function v({source:_0xa93f18,target:_0x221fba,filter:_0x2aaae9}){for(const _0x1cd28c of _0xa93f18)_0x2aaae9(_0x1cd28c)&&_0x221fba['add'](_0x1cd28c);_0x221fba['listenTo'](_0xa93f18,'add',(_0x1a4556,_0x2f8e04)=>{_0x2aaae9(_0x2f8e04)&&_0x221fba['add'](_0x2f8e04);}),_0x221fba['listenTo'](_0xa93f18,'remove',(_0x9df389,_0x210bb8)=>{_0x221fba['has'](_0x210bb8)&&_0x221fba['remove'](_0x210bb8);});}function w(_0x445c83,_0x2c81a8){if(null===_0x445c83&&null===_0x2c81a8)return 0x0;if(null===_0x445c83)return-0x1;if(null===_0x2c81a8)return 0x1;const _0x277eed=_0x445c83['top']-_0x2c81a8['top'];return 0x0==_0x277eed?_0x445c83['left']-_0x2c81a8['left']:_0x277eed;}class y extends _0x4427fc{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x541a72){if(super(_0x541a72),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x541a72 instanceof _0x3280f7){const _0x27071b=_0x541a72['locale'];_0x541a72['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x27071b,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x27071b,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x27071b,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x27071b,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x27071b,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x27071b,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x27071b,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2077f5){this['collection']['add'](_0x2077f5);}['remove'](_0x57fe5d){this['collection']['remove'](_0x57fe5d),_0x57fe5d['destroy']();}['refreshVisibility'](){for(const _0x15faae of this['collection'])_0x15faae['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x3ff80d){return this['collection']['getByInnerView'](_0x3ff80d);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x88bafb of this['collection'])_0x88bafb['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x324e90){this['fire']('_activateAnnotation',_0x324e90);}['createAnnotation'](_0x34945e){return new T(_0x34945e);}['createAnnotationView'](_0x39ca6a,_0x1dd223){return new E(_0x39ca6a,_0x1dd223);}['_addActiveAnnotation'](_0x1c347b){const _0x1ca105=new Set(this['activeAnnotations']);_0x1ca105['add'](_0x1c347b),this['activeAnnotations']=_0x1ca105;}['_removeActiveAnnotation'](_0x4ac64b){const _0x4331a1=new Set(this['activeAnnotations']);_0x4331a1['delete'](_0x4ac64b),this['activeAnnotations']=_0x4331a1;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5bd3c8=this['collection'],_0xb790f8=this['_visibleAnnotations'];function _0xac4f8a(_0x1e47f8){const _0x458bb0=_0x1e47f8['source'];_0x458bb0['isVisible']&&!_0xb790f8['has'](_0x458bb0)?_0xb790f8['add'](_0x458bb0):!_0x458bb0['isVisible']&&_0xb790f8['has'](_0x458bb0)&&_0xb790f8['remove'](_0x458bb0),_0x458bb0['view']['focusTracker']['remove'](_0x458bb0['view']['element']),_0x458bb0['view']['focusTracker']['add'](_0x458bb0['view']['element']);}this['listenTo'](_0x5bd3c8,'add',(_0xdad552,_0x41981f)=>{_0x41981f['isVisible']&&_0xb790f8['add'](_0x41981f),this['listenTo'](_0x41981f,'change:isVisible',_0xac4f8a);}),this['listenTo'](_0x5bd3c8,'remove',(_0x2f2403,_0x2d4ea0)=>{_0xb790f8['has'](_0x2d4ea0)&&_0xb790f8['remove'](_0x2d4ea0),this['stopListening'](_0x2d4ea0,'change:isVisible',_0xac4f8a);});}['_setupEnterAnnotationKeystroke'](){const _0x48a66a=_0x564606=>{_0x564606['on']('ready',()=>{_0x564606['keystrokes']['set'](_0x221ef1,(_0x26b6a3,_0x4c921c)=>{const _0x5959f0=_0x1a989f(this['activeAnnotations']['values']());_0x5959f0&&(_0x5959f0['view']['focus'](),_0x4c921c());});});};this['context']instanceof _0x3280f7?_0x48a66a(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x543ec5,_0x3dcd35)=>{_0x48a66a(_0x3dcd35);});}['_setupEscapeAnnotationHandling'](){const _0x522ebb=_0x3ed815=>{const _0x22bb92=_0x3ed815['source'],_0x1dce4d=[];let _0x26ea91;if(Array['isArray'](_0x22bb92['target'])){_0x26ea91=_0x22bb92['target'][0x0],this['context']instanceof _0x3280f7?_0x1dce4d['push'](this['context']):this['context']['editors']&&_0x1dce4d['push'](...this['context']['editors']);for(const _0x2a1066 of _0x1dce4d)for(const _0x323695 of _0x2a1066['editing']['view']['domRoots']['values']())if(_0x323695['contains'](_0x26ea91))return void _0x2a1066['editing']['view']['focus']();_0x26ea91['focus']();}};this['listenTo'](this['collection'],'add',(_0x37831a,_0xa06011)=>{this['listenTo'](_0xa06011,'escape',_0x522ebb,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x318c59,_0x5161ea)=>{this['stopListening'](_0x5161ea,'escape',_0x522ebb);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x4427fc{['_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(_0x3922eb){super(_0x3922eb),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x6d0654=this['context']['config'];_0x6d0654['define']('comments.maxCommentsWhenCollapsed',0x2),_0x6d0654['define']('comments.maxThreadTotalWeight',0x1f4),_0x6d0654['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x6d0654['define']('comments.CommentThreadView',gt),_0x6d0654['define']('comments.CommentView',Tt),_0x6d0654['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0xc752d7=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x703cda,_0x42a6e0)=>this['_addCommentThread'](_0x42a6e0)),this['on']('submitCommentThread',(_0x488101,_0x56b703)=>this['_submitCommentThread'](_0x56b703)),this['on']('resolveCommentThread',(_0x296c69,_0x274c42)=>this['_resolveCommentThread'](_0x274c42)),this['on']('resolveCommentThread',(_0xfedf4d,_0x17788e)=>this['_updateActiveAnnotation'](_0x17788e),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x248040,_0x16fe94)=>this['_reopenCommentThread'](_0x16fe94)),this['on']('reopenCommentThread',(_0x3fae8a,_0x1a0db)=>this['_updateActiveAnnotation'](_0x1a0db),{'priority':'lowest'}),this['on']('removeCommentThread',(_0xba86fb,_0x1b6916)=>this['_removeCommentThread'](_0x1b6916)),this['on']('updateCommentThread',(_0x373341,_0x404532)=>this['_updateCommentThread'](_0x404532)),this['on']('updateCommentThread',(_0x5a3651,_0x396434)=>this['_updateActiveAnnotation'](_0x396434),{'priority':'lowest'}),this['on']('addComment',(_0x40e064,_0x303d72)=>this['_addComment'](_0x303d72)),this['on']('updateComment',(_0x3668c9,_0x41f935)=>this['_updateComment'](_0x41f935)),this['on']('removeComment',(_0x1bd518,_0x2e33c9)=>this['_removeComment'](_0x2e33c9)),this['on']('addComment',(_0x12afd8,{threadId:_0x59d2bf,isFromAdapter:_0x59c0e9})=>{if(_0x59c0e9)return;const _0x5b6e71=this['getCommentThread'](_0x59d2bf),_0x31af9f=_0x5b6e71&&this['_threadToController']['get'](_0x5b6e71);_0x31af9f&&_0x31af9f['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0xc752d7,'change:activeAnnotations',(_0x278eda,_0x13d2cc,_0x27a965)=>{const _0x30aa2f=Array['from'](_0x27a965)['map'](_0x474a95=>this['_viewToController']['get'](_0x474a95['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x30aa2f?_0x30aa2f['model']:null;});}set['adapter'](_0x425e63){if(this['_adapter'])throw new _0x1be892('commentsrepository-adapter-already-set');this['_adapter']=_0x425e63;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x12d5fd=_t,threadId:_0x331432=_0x49a746(),comments:_0x515309=[],unlinkedAt:_0x52cc11=null,resolvedAt:_0x3eb65b=null,resolvedBy:_0x11107a=null,target:_0x5330d0=null,context:_0x48d2e8=null,attributes:_0xafe792={},isResolvable:_0x34e5ed=!0x0,isSubmitted:_0x51c93b=!0x1,isFromAdapter:_0x29bcd5=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x12d5fd),{'channelId':_0x12d5fd,'threadId':_0x331432,'comments':_0x515309,'unlinkedAt':_0x52cc11,'resolvedAt':_0x3eb65b,'resolvedBy':_0x11107a,'target':_0x5330d0,'context':_0x48d2e8,'attributes':_0xafe792,'isFromAdapter':_0x29bcd5,'isResolvable':_0x34e5ed,'isSubmitted':_0x51c93b}),this['getCommentThread'](_0x331432);}['openNewCommentThread']({channelId:_0x7588a4=_t,threadId:_0x416702=_0x49a746(),target:_0x4b4a4f,context:_0x47629e=null,isResolvable:_0x1fbbc4=!0x0}){if(this['_readOnlyChannels']['has'](_0x7588a4)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4b4a4f)throw new _0x1be892('commentsrepository-missing-target');const _0x32bd95=this['addCommentThread']({'channelId':_0x7588a4,'threadId':_0x416702,'target':_0x4b4a4f,'context':_0x47629e,'isResolvable':_0x1fbbc4});if(!_0x32bd95)return null;const _0x4c8d85=this['_threadToController']['get'](_0x32bd95),_0x3964ae=_0x4c8d85['view']['commentThreadInputView']['commentInputView'],_0x2b9427=this['context']['plugins']['get'](y),_0x34fe7d=_0x2b9427['getByInnerView'](_0x4c8d85['view']);return _0x2b9427['activate'](_0x34fe7d),_0x3964ae['once']('editorReady',()=>_0x3964ae['focus']()),_0x32bd95;}['hasCommentThread'](_0x48b758){if('string'!=typeof _0x48b758)throw new _0x1be892('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x48b758);}['updateCommentThread']({channelId:_0x519e7f=_t,threadId:_0x38d2aa,context:_0x4ad803,unlinkedAt:_0x351d54,attributes:_0x1d8527,isFromAdapter:_0x1b78c0=!0x1}){return this['fire'](Nt('updateCommentThread',_0x519e7f),{'channelId':_0x519e7f,'threadId':_0x38d2aa,'context':_0x4ad803,'unlinkedAt':_0x351d54,'attributes':_0x1d8527,'isFromAdapter':_0x1b78c0}),this['getCommentThread'](_0x38d2aa);}['getCommentThread'](_0x6125b9){if('string'!=typeof _0x6125b9)throw new _0x1be892('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x6125b9);}['fetchCommentThread']({channelId:_0x2e5e51,threadId:_0x537d96}={}){const _0x12d60a=this['getCommentThread'](_0x537d96);if(_0x12d60a)return Promise['resolve'](_0x12d60a);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x1be892('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x2e5e51,'threadId':_0x537d96})['then'](_0x947393=>this['hasCommentThread'](_0x537d96)?this['getCommentThread'](_0x537d96):_0x947393?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x2e5e51},_0x947393)):void 0x0)['catch'](_0x55ecf7=>{throw console['error'](_0x55ecf7),new _0x1be892('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x2d1e95,skipNotAttached:_0x223306=!0x1,skipEmpty:_0xf7de61=!0x1,toJSON:_0x567758=!0x1}={}){const _0x10d6a3=[];for(const _0x36367f of this['_threads']['values']())_0x2d1e95&&_0x36367f['channelId']!==_0x2d1e95||_0x223306&&!_0x36367f['isAttached']||_0xf7de61&&0x0===_0x36367f['length']||_0x10d6a3['push'](_0x36367f);return _0x567758?_0x10d6a3['map'](_0x2f3f5f=>_0x2f3f5f['toJSON']()):_0x10d6a3;}['getAnnotationForCommentThread'](_0x22804f){const _0x5456b9=this['_threadToController']['get'](_0x22804f);if(!_0x5456b9)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x5456b9['view'])||null;}['getCommentThreadForAnnotation'](_0x379a34){const _0x2f7544=this['_viewToController']['get'](_0x379a34['innerView']);return _0x2f7544?_0x2f7544['model']:null;}['setActiveCommentThread'](_0x590b61){const _0x45ade9=this['context']['plugins']['get'](y);if(!_0x590b61)return void(this['activeCommentThread']&&_0x45ade9['deactivateAll']());const _0x1e797b=this['getCommentThread'](_0x590b61);if(!_0x1e797b)throw new _0x1be892('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x590b61});if(!this['_threadToController']['has'](_0x1e797b))throw new _0x1be892('commentsrepository-active-not-attached',null,{'threadId':_0x590b61});const _0x4b2fd4=_0x45ade9['getByInnerView'](this['_threadToController']['get'](_0x1e797b)['view']);_0x45ade9['activate'](_0x4b2fd4);}['switchReadOnly'](_0x2dc24a,_0x26a7ea){_0x2dc24a?this['_readOnlyChannels']['add'](_0x26a7ea):this['_readOnlyChannels']['delete'](_0x26a7ea),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x4b5dcc){return this['_readOnlyChannels']['has'](_0x4b5dcc)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x2bed21,_0x1d1233){return new vt(_0x2bed21,_0x1d1233);}['setPermissions'](_0x2273d3,_0x107714=_t){this['_permissions']['set'](_0x107714,_0x2273d3),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2b11ad=_t){return this['_permissions']['has'](_0x2b11ad)?this['_permissions']['get'](_0x2b11ad):bt;}['_addCommentThread']({channelId:_0x16578e,threadId:_0x3c5f53,comments:_0x2031d2,unlinkedAt:_0x515ff2,resolvedAt:_0x236f3f,resolvedBy:_0x27d51e,target:_0x1b2e50,context:_0x34d293,attributes:_0x8f6fa8,isFromAdapter:_0x596141,isResolvable:_0x4b14ce,isSubmitted:_0x15e723}){if('string'!=typeof _0x3c5f53)throw new _0x1be892('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3c5f53});if(this['hasCommentThread'](_0x3c5f53))throw new _0x1be892('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x3c5f53});const _0x546ecb=new pi(this,{'channelId':_0x16578e,'id':_0x3c5f53,'context':_0x34d293,'attributes':_0x8f6fa8,'unlinkedAt':_0x515ff2,'resolvedAt':_0x236f3f,'resolvedBy':_0x27d51e?this['context']['plugins']['get'](it)['getUser'](_0x27d51e):null,'isResolvable':_0x4b14ce,'isSubmitted':_0x15e723||_0x596141});this['_threads']['set'](_0x3c5f53,_0x546ecb);for(const _0x2a54e5 of _0x2031d2)_0x546ecb['_add'](this['_createNewComment']({'threadId':_0x3c5f53,..._0x2a54e5}));return _0x1b2e50&&_0x546ecb['attachTo'](_0x1b2e50),_0x596141||!_0x546ecb['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x16578e,'threadId':_0x3c5f53});}['_submitCommentThread']({channelId:_0x11b01f,threadId:_0x3f1652}){if(!this['hasCommentThread'](_0x3f1652))throw new _0x1be892('commentsrepository-missing-comment-thread',this);const _0x4244c6=this['getCommentThread'](_0x3f1652);if(_0x4244c6['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x3b732f,comments:_0x21e433,resolvedAt:_0x175369,resolvedBy:_0x2e6a6f,context:_0x274fd2,attributes:_0x475c7f}=_0x4244c6,_0x2a5fc6=this['context']['plugins']['get']('PendingActions'),_0x3ebd78=_0x2a5fc6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x11b01f,'threadId':_0x3b732f,'comments':_0x21e433['map'](_0x9a8c9b=>_0x9a8c9b['toJSON']()),'resolvedAt':_0x175369,'resolvedBy':_0x2e6a6f?_0x2e6a6f['id']:_0x2e6a6f,'context':_0x274fd2,'attributes':_0x475c7f})['then'](({comments:_0x4426af})=>{_0x2a5fc6['remove'](_0x3ebd78);for(const _0x25d9f2 of _0x4426af)this['_updateComment']({'channelId':_0x11b01f,'threadId':_0x3f1652,'commentId':_0x25d9f2['commentId'],'createdAt':_0x25d9f2['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x52d15e=>{throw console['error'](_0x52d15e),new _0x1be892('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x5ec87b,target:_0x45731b}){const _0x446361=this['getCommentThread'](_0x5ec87b);if(!_0x446361)throw new _0x1be892('commentsrepository-attach-missing-comment-thread',this);const _0x123b99=this['context']['plugins']['get']('PendingActions'),_0x309335=this['context']['plugins']['get'](y),_0x1ff76a=this['_createCommentThreadView'](_0x446361),_0xe7cf4=new vt(_0x446361,_0x1ff76a);let _0x2c2487=null;_0x1ff76a['on']('change:isDirty',(_0x40dd56,_0x23bc7e,_0x2e8c40)=>{_0x2e8c40?_0x2c2487=_0x123b99['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x2c2487&&(_0x123b99['remove'](_0x2c2487),_0x2c2487=null);}),this['_threadToController']['set'](_0x446361,_0xe7cf4),this['_viewToController']['set'](_0x1ff76a,_0xe7cf4);const _0x129636=new E(this['context']['locale'],_0x1ff76a);_0x129636['bind']('length')['to'](_0x1ff76a),_0x129636['bind']('isDirty')['to'](_0x1ff76a,'isDirty',_0x1ff76a,'length',(_0x5e352b,_0x2887c5)=>_0x5e352b||!_0x2887c5),_0x129636['bind']('isActive')['to'](_0x1ff76a),_0x129636['type']='comment';const _0x4d072d=new T({'view':_0x129636,'target':_0x45731b,'type':'comment','isVisible':!_0x446361['archivedAt']&&!!('function'==typeof _0x45731b?_0x45731b():_0x45731b)});return _0x1ff76a['on']('escape',()=>{_0x4d072d['fire']('escape');}),this['_bindAnnotationToEditors'](_0x1ff76a,_0x4d072d),_0x309335['add'](_0x4d072d),_0x4d072d;}['_bindAnnotationToEditors'](_0x3dcdcd,_0x65c1de){this['listenTo'](_0x3dcdcd,'editorReady',(_0x32f103,_0x508275)=>{const _0x4d3652=_0x508275['ui']['view']['body']['bodyCollectionContainer'];_0x65c1de['focusableElements']['add'](_0x4d3652),this['context']instanceof _0x3280f7&&this['context']['ui']['focusTracker']['add'](_0x4d3652);},{'priority':'highest'}),this['listenTo'](_0x3dcdcd,'editorDestroyed',(_0x4a9f6f,_0x853272)=>{const _0x3b8f90=_0x853272['ui']['view']['body']['bodyCollectionContainer'];_0x65c1de['focusableElements']['has'](_0x3b8f90)&&_0x65c1de['focusableElements']['remove'](_0x3b8f90),this['context']instanceof _0x3280f7&&this['context']['ui']['focusTracker']['remove'](_0x3b8f90);});}['_unbindEditors'](_0xb1766a){this['stopListening'](_0xb1766a,'editorReady'),this['stopListening'](_0xb1766a,'editorDestroyed');}['_createCommentThreadView'](_0xe9a21c){const _0x506fa5=this['context']['plugins']['get'](it),{config:_0x203994,locale:_0x3c7c25}=this['context'],_0x4580b5=pt(_0x203994['get']('locale'),_0x3c7c25);return new(0x0,(_0x203994['get']('comments'))['CommentThreadView'])(_0x3c7c25,_0xe9a21c,_0x506fa5['me'],{'editorConfig':{..._0x203994['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x203994['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x203994['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x203994['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x203994['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4580b5,'CommentView':_0x203994['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x23b6b2,channelId:_0x1eb8ff,resolvedAt:_0x529fc1,resolvedBy:_0x3f93a7,isFromAdapter:_0x5c01e4}){if(!this['hasCommentThread'](_0x23b6b2))throw new _0x1be892('commentsrepository-missing-comment-thread',null,{'threadId':_0x23b6b2});const _0x15ac23=this['getCommentThread'](_0x23b6b2);if(_0x15ac23['isResolved'])throw new _0x1be892('commentsrepository-resolved-comment-thread',null,{'threadId':_0x23b6b2});const _0x2c3ab5=this['context']['plugins']['get'](it);if(_0x15ac23['resolvedBy']=_0x2c3ab5['getUser'](_0x3f93a7),_0x15ac23['resolvedAt']=_0x529fc1,_0x5c01e4||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5223cd=this['context']['plugins']['get']('PendingActions'),_0x5c3e78=_0x5223cd['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1eb8ff,'threadId':_0x23b6b2})['then'](({resolvedAt:_0x3c3e77,resolvedBy:_0x350929})=>{_0x5223cd['remove'](_0x5c3e78),_0x15ac23['resolvedBy']['id']!==_0x350929&&(_0x15ac23['resolvedBy']=_0x2c3ab5['getUser'](_0x350929)),_0x15ac23['resolvedAt']=_0x3c3e77;})['catch'](_0x21054e=>{throw console['error'](_0x21054e),new _0x1be892('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x5327a6,channelId:_0xa39538,isFromAdapter:_0xeb6061}){if(!this['hasCommentThread'](_0x5327a6))throw new _0x1be892('commentsrepository-missing-comment-thread',null,{'threadId':_0x5327a6});const _0x337fae=this['getCommentThread'](_0x5327a6);if(!_0x337fae['isResolved'])throw new _0x1be892('commentsrepository-reopen-comment-thread',null,{'threadId':_0x5327a6});if(_0x337fae['resolvedBy']=null,_0x337fae['resolvedAt']=null,_0xeb6061||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x47e1c9=this['context']['plugins']['get']('PendingActions'),_0x29e49a=_0x47e1c9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0xa39538,'threadId':_0x5327a6})['then'](()=>_0x47e1c9['remove'](_0x29e49a))['catch'](_0xc25ef6=>{throw console['error'](_0xc25ef6),new _0x1be892('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x4a9228,isFromAdapter:_0x50880b}){const _0x2e41f6=this['getCommentThread'](_0x4a9228);if(!_0x2e41f6)throw new _0x1be892('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x4a9228),this['_threads']['delete'](_0x4a9228),!_0x2e41f6['isSubmitted']||_0x50880b||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x143fb8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1372df}=_0x2e41f6,_0x29c5fd=_0x143fb8['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1372df,'threadId':_0x4a9228})['then'](()=>_0x143fb8['remove'](_0x29c5fd))['catch'](_0x2ad45=>{throw console['error'](_0x2ad45),new _0x1be892('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x928fd9,unlinkedAt:_0x2c3e4c,context:_0x3ddd77,attributes:_0x2f1bfd,isFromAdapter:_0x5c98c7}){if('string'!=typeof _0x928fd9)throw new _0x1be892('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x928fd9});if(!this['hasCommentThread'](_0x928fd9))throw new _0x1be892('commentsrepository-missing-comment-thread',null,{'threadId':_0x928fd9});const _0x4f4cd3=this['getCommentThread'](_0x928fd9);let _0x3a5f7e=!0x1;if(void 0x0!==_0x3ddd77&&_0x4f4cd3['context']!==_0x3ddd77&&(_0x4f4cd3['context']=_0x3ddd77,_0x3a5f7e=!0x0),void 0x0!==_0x2c3e4c&&_0x4f4cd3['unlinkedAt']!==_0x2c3e4c&&(_0x4f4cd3['unlinkedAt']=_0x2c3e4c,_0x3a5f7e=!0x0),_0x2f1bfd&&!At(_0x2f1bfd,_0x4f4cd3['attributes'])&&(_0x4f4cd3['attributes']=_0x2f1bfd,_0x3a5f7e=!0x0),!_0x3a5f7e)return Promise['resolve']();if(!_0x4f4cd3['isSubmitted']||_0x5c98c7||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x1e4c0e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x9185}=_0x4f4cd3,_0x446131=_0x1e4c0e['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x9185,'threadId':_0x928fd9,'context':_0x3ddd77,'unlinkedAt':_0x2c3e4c,'attributes':_0x2f1bfd})['then'](()=>_0x1e4c0e['remove'](_0x446131))['catch'](_0x3680c3=>{throw console['error'](_0x3680c3),new _0x1be892('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x2f3929){const _0x24456e=this['context']['plugins']['get'](y),_0x218699=this['getCommentThread'](_0x2f3929);if(_0x218699['_isAttached']=!0x1,this['_threadToController']['has'](_0x218699)){const _0x76a42a=this['_threadToController']['get'](_0x218699),_0x3c68a1=_0x76a42a['view'],_0x208067=_0x24456e['getByInnerView'](_0x3c68a1);this['_threadToController']['delete'](_0x218699),this['_viewToController']['delete'](_0x3c68a1),_0x208067&&_0x24456e['remove'](_0x208067),_0x76a42a['destroy'](),_0x3c68a1['destroy']()['then'](()=>{this['_unbindEditors'](_0x3c68a1);});}}['_updateActiveAnnotation']({threadId:_0x1d80a9,resolvedAt:_0x178b14,unlinkedAt:_0x247e70}){const _0x5328bf=!!_0x178b14,_0x5b0305=this['context']['plugins']['get'](y),_0x2de2be=this['getCommentThread'](_0x1d80a9);if(this['_threadToController']['has'](_0x2de2be)){const _0x588426=this['_threadToController']['get'](_0x2de2be)['view'],_0xfc9400=_0x5b0305['getByInnerView'](_0x588426);_0xfc9400&&(_0x5328bf&&_0x5b0305['_removeActiveAnnotation'](_0xfc9400),_0x247e70?_0xfc9400['isVisible']=!0x1:_0xfc9400['refreshVisibility']());}}['_getExternalAuthor'](_0x4012a2){const _0x3f124a=this['context']['plugins']['get'](it),_0x49990e=It('external:'+_0x4012a2),_0x38dd02=_0x3f124a['getUser'](_0x49990e);return _0x38dd02||_0x3f124a['addUser']({'id':_0x49990e,'name':_0x4012a2});}['_createNewComment']({threadId:_0x3a5e28,commentId:_0x5478e9=_0x49a746(),content:_0x4ee1a9,authorId:_0x272b9f,createdAt:_0x1467b7,attributes:_0xf677c9}){if('string'!=typeof _0x5478e9)throw new _0x1be892('commentsrepository-invalid-commentid');if('string'!=typeof _0x272b9f)throw new _0x1be892('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4ee1a9||!_0x4ee1a9['trim']())throw new _0x1be892('commentsrepository-invalid-comment-content');const _0x3535f8=this['context']['plugins']['get'](it)['getUser'](_0x272b9f);if(!_0x3535f8)throw new _0x1be892('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x272b9f});let _0x27a611=null,_0x30dabb=_0x1467b7;return _0xf677c9?.['@external']&&(_0x27a611=this['_getExternalAuthor'](_0xf677c9['@external']['authorName']),_0x30dabb=new Date(_0xf677c9['@external']['createdAt'])),new wi(this,{'threadId':_0x3a5e28,'id':_0x5478e9,'author':_0x27a611||_0x3535f8,'creator':_0x3535f8,'content':_0x4ee1a9,'createdAt':_0x1467b7,'authoredAt':_0x30dabb,'attributes':_0xf677c9});}['_addComment'](_0x42dfda){let {threadId:_0x4d2e88,content:_0x2733df,attributes:_0x37a1c1,isFromAdapter:_0x22d270}=_0x42dfda;const _0x2824ad=this['getCommentThread'](_0x42dfda['threadId']);if(!_0x2824ad)throw new _0x1be892('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x27d90c=this['_createNewComment'](_0x42dfda),{id:_0x3b5b95}=_0x27d90c;if(_0x2824ad['_add'](_0x27d90c),_0x22d270||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x2824ad['isSubmitted'])return Promise['resolve']();const _0x10c1c4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x219f32}=_0x2824ad,_0x2b771a=_0x10c1c4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x37a1c1||(_0x37a1c1={}),this['adapter']['addComment']({'channelId':_0x219f32,'threadId':_0x4d2e88,'commentId':_0x3b5b95,'content':_0x2733df,'attributes':_0x37a1c1})['then'](_0x297761=>{_0x10c1c4['remove'](_0x2b771a),_0x297761&&this['_updateComment']({'channelId':_0x219f32,'threadId':_0x4d2e88,'commentId':_0x3b5b95,'createdAt':_0x297761['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4039cd=>{throw console['error'](_0x4039cd),new _0x1be892('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x3f6706,commentId:_0x349e83,content:_0x5c2fe2,createdAt:_0x1db468,attributes:_0x336174,isFromAdapter:_0x453716}){if(void 0x0!==_0x5c2fe2&&('string'!=typeof _0x5c2fe2||!_0x5c2fe2['trim']()['length']))throw new _0x1be892('commentsrepository-update-comment-invalid-content');const _0x1f96b2=this['getCommentThread'](_0x3f6706),_0x183bb2=_0x1f96b2['getComment'](_0x349e83);if(!_0x183bb2)throw new _0x1be892('commentsrepository-update-missing-comment',this);let _0x19f35e=!0x1;if(_0x5c2fe2&&_0x5c2fe2!==_0x183bb2['content']&&(_0x183bb2['isEditable']||_0x453716)&&(_0x183bb2['content']=_0x5c2fe2,_0x19f35e=!0x0),_0x1db468&&_0x1db468!==_0x183bb2['createdAt']&&(_0x183bb2['createdAt']=_0x1db468,_0x183bb2['attributes']&&_0x183bb2['attributes']['@external']||(_0x183bb2['authoredAt']=_0x1db468),_0x19f35e=!0x0),_0x336174&&!At(_0x336174,_0x183bb2['attributes'])&&(_0x183bb2['attributes']=_0x336174,_0x19f35e=!0x0),!_0x19f35e)return Promise['resolve']();if(_0x1f96b2['fire']('commentUpdated'),_0x453716||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xd5f9f7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x172337}=this['getCommentThread'](_0x183bb2['threadId']),_0x593343=_0xd5f9f7['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x172337,'threadId':_0x3f6706,'commentId':_0x349e83,'content':_0x5c2fe2,'attributes':_0x336174})['then'](()=>_0xd5f9f7['remove'](_0x593343))['catch'](_0x442119=>{throw console['error'](_0x442119),new _0x1be892('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x48ca18,commentId:_0x48bf2e,isFromAdapter:_0x1e29f5}){const _0x309569=this['getCommentThread'](_0x48ca18),_0x3181c5=_0x309569['getComment'](_0x48bf2e);if(!_0x3181c5)throw new _0x1be892('commentsrepository-remove-missing-comment',this);if(_0x309569['_remove'](_0x3181c5),_0x1e29f5||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4802d6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x693da8}=_0x309569,_0x42eea3=_0x4802d6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x693da8,'threadId':_0x48ca18,'commentId':_0x48bf2e})['then'](()=>_0x4802d6['remove'](_0x42eea3))['catch'](_0x5ca4bc=>{throw console['error'](_0x5ca4bc),new _0x1be892('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x36733b(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x1f36cc,_0x6f51b0){super();const _0x24b526=_0x6f51b0['isResolvable'];this['channelId']=_0x6f51b0['channelId'],this['id']=_0x6f51b0['id'],this['comments']=new _0x359f6f(),this['_repository']=_0x1f36cc,this['_isAttached']=!0x1,this['_isSubmitted']=_0x6f51b0['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x1f36cc,'_permissions',_0x1f36cc,'_readOnlyChannels',()=>_0x1f36cc['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x1f36cc,'_permissions',()=>_0x1f36cc['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x1f36cc,'_permissions',()=>{const _0x4a065d=_0x1f36cc['getPermissions'](this['channelId']);return _0x4a065d['write']||_0x4a065d['admin'];}),this['bind']('isResolvable')['to'](_0x1f36cc,'_permissions',()=>_0x24b526&&_0x1f36cc['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x6f51b0['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x59c207,_0x2356db)=>_0x59c207?_0x2356db?_0x59c207<_0x2356db?_0x59c207:_0x2356db:_0x59c207:_0x2356db),this['set']('unlinkedAt',_0x6f51b0['unlinkedAt']||null),this['set']('resolvedAt',_0x6f51b0['resolvedAt']||null),this['set']('resolvedBy',_0x6f51b0['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x42707d=>!!_0x42707d),this['set']('attributes',_0x6f51b0['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0xec16bb,_0x30e903)=>_0xec16bb+_0x30e903['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2d2b0e,id:_0x2605cc}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x2d2b0e),{'channelId':_0x2d2b0e,'threadId':_0x2605cc});}['setUnlinkedAt'](_0xfab856){this['_update']({'unlinkedAt':_0xfab856});}['resolve']({resolvedAt:_0x1c2fa2=new Date(),resolvedBy:_0x140938='',isFromAdapter:_0x1ceab3=!0x1}={}){const _0xec2166=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x5e942f,id:_0x372bab}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x5e942f),{'channelId':_0x5e942f,'threadId':_0x372bab,'resolvedAt':_0x1c2fa2,'resolvedBy':_0x140938||_0xec2166['id'],'isFromAdapter':_0x1ceab3});}['reopen']({isFromAdapter:_0x31c515=!0x1}={}){const {channelId:_0x409312,id:_0x24495a}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x409312),{'channelId':_0x409312,'threadId':_0x24495a,'isFromAdapter':_0x31c515});}['setContext'](_0x1775b3){this['context']||this['_update']({'context':_0x1775b3});}['setAttribute'](_0x17bb4e,_0x34855e){const _0x426a4f=wt(this['attributes']);yt(_0x426a4f,_0x17bb4e,_0x34855e),this['_update']({'attributes':_0x426a4f});}['removeAttribute'](_0x542f67){const _0x2e8c37=wt(this['attributes']);Ct(_0x2e8c37,_0x542f67),this['_update']({'attributes':_0x2e8c37});}['remove']({isFromAdapter:_0x309ebf=!0x1}={}){const {channelId:_0x32a087,id:_0x489daa}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x32a087),{'channelId':_0x32a087,'threadId':_0x489daa,'isFromAdapter':_0x309ebf});}['attachTo'](_0x2dc267){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x2dc267});}['addComment'](_0x10d989){const {channelId:_0x179593,id:_0x1d59c4}=this;this['_repository']['fire'](Nt('addComment',_0x179593,_0x1d59c4),Object['assign']({'channelId':_0x179593,'threadId':_0x1d59c4},_0x10d989));}['getComment'](_0xe7de4c){if('string'!=typeof _0xe7de4c)throw new _0x1be892('commentsrepository-get-comment-invalid-id',null,{'commentId':_0xe7de4c});return this['comments']['get'](_0xe7de4c);}['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'](_0x2bede5=>_0x2bede5['toJSON']()),'attributes':this['attributes']};}['_add'](_0x4d6119){return this['listenTo'](_0x4d6119,'change:authoredAt',()=>{const _0x1516a4=this['_findOptimalIndex'](_0x4d6119),_0x26057a=this['comments'];_0x1516a4-0x1!=_0x26057a['getIndex'](_0x4d6119)&&_0x1516a4+0x1!=_0x26057a['getIndex'](_0x4d6119)&&(this['_remove'](_0x4d6119),this['_add'](_0x4d6119));}),this['comments']['add'](_0x4d6119,this['_findOptimalIndex'](_0x4d6119));}['_update'](_0x5bb29d){const {channelId:_0x35b2ae,id:_0x8c2f90}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x35b2ae),{..._0x5bb29d,'channelId':_0x35b2ae,'threadId':_0x8c2f90});}['_remove'](_0x2a59fe){return this['stopListening'](_0x2a59fe),_0x2a59fe['destroy'](),this['comments']['remove'](_0x2a59fe);}['_findOptimalIndex'](_0xc97064){const _0x47fa03=this['comments']['find'](_0x3f8a5d=>new Date(_0x3f8a5d['authoredAt'])['getTime']()>new Date(_0xc97064['authoredAt'])['getTime']());return _0x47fa03?this['comments']['getIndex'](_0x47fa03):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x36733b(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3b9ed5,_0x49f5dd){super();const _0x5173d8=_0x3b9ed5['context']['plugins']['get'](it)['me'],_0x422b05=_0x3b9ed5['getCommentThread'](_0x49f5dd['threadId']),_0x27632d=0x0===_0x422b05['comments']['length'],_0x4ea10a=_0x5173d8===_0x49f5dd['author'];this['id']=_0x49f5dd['id'],this['threadId']=_0x49f5dd['threadId'],this['author']=_0x49f5dd['author'],this['creator']=_0x49f5dd['creator'],this['isExternal']=Boolean(_0x49f5dd['attributes']&&_0x49f5dd['attributes']['@external']),this['set']('content',_0x49f5dd['content']),this['createdAt']=_0x49f5dd['createdAt']||new Date(),this['set']('authoredAt',_0x49f5dd['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x422b05,'resolvedAt'),this['set']('attributes',_0x49f5dd['attributes']||{}),this['bind']('isEditable')['to'](_0x3b9ed5,'_permissions',()=>{const _0x136c64=_0x3b9ed5['getPermissions'](_0x422b05['channelId'])['write'],_0x2c54ed=_0x3b9ed5['getPermissions'](_0x422b05['channelId'])['modifyAll'];return _0x4ea10a&&_0x136c64||!_0x4ea10a&&_0x2c54ed;}),this['bind']('isRemovable')['to'](_0x422b05,'isRemovable',_0x3b9ed5,'_permissions',_0x488878=>{const _0x4d3750=_0x3b9ed5['getPermissions'](_0x422b05['channelId'])['write'],_0x72a059=_0x3b9ed5['getPermissions'](_0x422b05['channelId'])['modifyAll'];return _0x4ea10a&&_0x4d3750||_0x488878&&_0x27632d||!_0x4ea10a&&_0x72a059&&!_0x27632d;}),this['bind']('isReadOnly')['to'](_0x422b05,'isReadOnly'),this['_repository']=_0x3b9ed5;}get['weight'](){return Math['max'](function(_0x46dc80){const _0xe51063=document['createElement']('div');return _0xe51063['innerHTML']=_0x46dc80,_0xe51063['textContent']['length'];}(this['content']),0xc8);}['update'](_0x1239e9){const {threadId:_0x58e024,id:_0x574700}=this;if(!this['_repository']['hasCommentThread'](_0x58e024))throw new _0x1be892('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x193912}=this['_repository']['getCommentThread'](_0x58e024);this['_repository']['fire'](Nt('updateComment',_0x193912,_0x58e024),{'channelId':_0x193912,'threadId':_0x58e024,'commentId':_0x574700,..._0x1239e9});}['setAttribute'](_0x45da67,_0x44a22d){const _0x23dfea=wt(this['attributes']);yt(_0x23dfea,_0x45da67,_0x44a22d),this['update']({'attributes':_0x23dfea});}['removeAttribute'](_0x38b873){const _0x58cf88=wt(this['attributes']);Ct(_0x58cf88,_0x38b873),this['update']({'attributes':_0x58cf88});}['remove'](_0x57b027={}){if(!_0x57b027['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x3b83aa,id:_0x3f8c7d}=this;if(!this['_repository']['hasCommentThread'](_0x3b83aa))throw new _0x1be892('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x21411c}=this['_repository']['getCommentThread'](_0x3b83aa);this['_repository']['fire'](Nt('removeComment',_0x21411c,_0x3b83aa),{'channelId':_0x21411c,'threadId':_0x3b83aa,'commentId':_0x3f8c7d,..._0x57b027});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x516650,..._0x21e7fb){for(const _0x52ca91 of _0x21e7fb)void 0x0!==_0x52ca91&&(_0x516650+=':'+String(_0x52ca91));return _0x516650;}class ot extends _0x387361{constructor(_0x11196a){super(_0x11196a),this['set']('hasContent',!0x1);}['refresh'](){const _0x59670d=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x51ffe5 of _0x59670d['getRanges']())if(this['_hasContent'](_0x51ffe5))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x22863d=_0x49a746(),ranges:_0x1b91bc,comment:_0x51357d}={}){const _0x1e21cb=this['editor']['model'],_0x1688a8=_0x1b91bc??Array['from'](_0x1e21cb['document']['selection']['getRanges']()),_0x78b27c=[];for(const _0x4f9948 of _0x1688a8)this['_hasContent'](_0x4f9948)&&_0x78b27c['push'](this['_trimToContent'](_0x4f9948));if(!_0x78b27c['length'])throw new _0x1be892('addcommentthreadcommand-incorrect-ranges',null);_0x51357d&&this['_createCommentThread'](_0x22863d,_0x51357d),this['_createMarkersFromRanges'](_0x22863d,_0x78b27c,!!_0x51357d);}['_createMarkersFromRanges'](_0x28d3c2,_0x146a19,_0x5dcdc6){this['editor']['model']['change'](_0x500efa=>{for(const _0x3fa0d4 of _0x146a19){const _0x231cd0=_0x49a746()['substr'](0x1,0x5),_0x563a39='comment:'+_0x28d3c2+':'+_0x231cd0;_0x500efa['addMarker'](_0x563a39,{'range':_0x3fa0d4,'usingOperation':_0x5dcdc6,'affectsData':_0x5dcdc6});}});}['_createCommentThread'](_0x5e786a,_0x5b5da0){const _0x4df1bc=this['editor']['plugins']['get']('CommentsRepository'),_0x557f04=this['editor']['config']['get']('collaboration.channelId'),_0x4f3b6c=this['editor']['plugins']['get']('Users')['me'];if(!_0x4f3b6c)throw new _0x1be892('addcommentthreadcommand-user-not-found',null);_0x4df1bc['addCommentThread']({'threadId':_0x5e786a,'channelId':_0x557f04,'comments':[{'authorId':_0x4f3b6c['id'],'content':_0x5b5da0,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x18477b){for(const _0x45e8c1 of _0x18477b['getItems']())if(this['_itemIsContent'](_0x45e8c1))return!0x0;return!0x1;}['_itemIsContent'](_0x38b19d){return _0x38b19d['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x38b19d)&&!_0x38b19d['is']('element','tableCell');}['_trimToContent'](_0x4bb3d1){const _0x9b9d7=_0x188323=>!this['_itemIsContent'](_0x188323['item']),_0x58daf4=_0x4bb3d1['start']['getLastMatchingPosition'](_0x9b9d7),_0xfbb04c=_0x4bb3d1['end']['getLastMatchingPosition'](_0x9b9d7,{'direction':'backward'});return this['editor']['model']['createRange'](_0x58daf4,_0xfbb04c);}}class b extends _0x4aad6f{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x457896){super(_0x457896),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x1b1e61=this['editor'],_0x47166f=_0x1b1e61['model']['document']['selection'],_0x8b48a5=_0x4d37e2(()=>this['refreshSelectedViews'](),0xa);_0x47166f['on']('change:range',(_0x5b7cff,_0x54f4db)=>{_0x54f4db['directChange']&&(_0x8b48a5['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x1b1e61['editing']['view']['document'],'change:isFocused',(_0x5f2fc5,_0x344b57,_0x16a8f3)=>{_0x16a8f3&&_0x8b48a5();}),this['listenTo'](_0x1b1e61['ui']['focusTracker'],'change:isFocused',(_0x5f44b4,_0x4e52d5,_0x505086)=>{_0x505086||this['fire']('blur',{'isAnnotationTracked':_0x3f426e=>this['_editorAnnotationsData']['has'](_0x3f426e['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x68e1b){if(this['_editorAnnotations']['has'](_0x68e1b['view']))return;this['_editorAnnotations']['add'](_0x68e1b['view']),this['editor']['ui']['focusTracker']['add'](_0x68e1b['view']['element']);const _0xd19805=this['editor']['plugins']['get'](y);this['listenTo'](_0xd19805['collection'],'remove',(_0x1d2f89,_0x435d53)=>{this['editor']['ui']['focusTracker']['remove'](_0x435d53['view']['element']),this['_editorAnnotations']['delete'](_0x435d53['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x3368b4){if('function'!=typeof _0x3368b4)throw new _0x1be892('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x3368b4);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x54f85e,annotations:_0x5df8b9}){const _0x39aa43=[],_0x332ab7=this['editor']['model']['document']['selection'],_0x1aff2f=Array['from'](_0x332ab7['getRanges']());for(const [_0xd09609,_0x14f08e]of this['_editorAnnotationsData']){const _0xcc4704=_0x33f0e2(_0x14f08e),_0x48b050=_0x5df8b9['getByInnerView'](_0xd09609);_0xcc4704&&_0x48b050&&_0x39aa43['push']({'annotation':_0x48b050,'range':_0xcc4704});}function _0x33f0e2(_0xd169d2){for(const _0x58c802 of _0xd169d2)for(const _0x1dfc8b of _0x1aff2f)if(_0x58c802['containsRange'](_0x1dfc8b,!_0x332ab7['isCollapsed']))return _0x58c802;return null;}return _0x39aa43['sort']((_0x132cd0,_0x37186f)=>{const _0x1a57ce=_0x132cd0['range'],_0x2f2a69=_0x37186f['range'];if(!_0x1a57ce['isEqual'](_0x2f2a69)){if(_0x1a57ce['containsRange'](_0x2f2a69,!0x0))return 0x1;if(_0x2f2a69['containsRange'](_0x1a57ce,!0x0))return-0x1;}return _0x132cd0['annotation']==_0x54f85e?-0x1:_0x37186f['annotation']==_0x54f85e?0x1:0x0;})['map'](_0x5074ae=>_0x5074ae['annotation']);}get['_editorAnnotationsData'](){const _0x57e9c8=new Map();for(const _0x121ed2 of Array['from'](this['_dataCollectors']))for(const [_0x4e0713,_0x119598]of _0x121ed2())_0x57e9c8['set'](_0x4e0713,_0x119598);return _0x57e9c8;}}class st extends _0x4aad6f{['afterInit'](){const _0x43cb7a=this['editor'];if(!_0x43cb7a['plugins']['has']('RestrictedEditingModeEditing'))return;_0x43cb7a['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x4aad6f{constructor(_0x33611d){super(_0x33611d),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x551b0c=this['editor'],_0x1e6f24=_0x551b0c['commands']['get']('importWord'),_0xe5263e=_0x551b0c['plugins']['get'](it);_0x1e6f24&&(_0x1e6f24['on']('execute',(_0x956355,[,_0x1ae02e])=>{_0x1ae02e['collaboration_features']={'comments':!0x0,'user_id':_0xe5263e['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1e6f24,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x204174,_0x561faf){const {comment_threads:_0x54e16b}=_0x561faf;_0x54e16b&&_0x54e16b['forEach'](({thread_id:_0x139a03,comments:_0x27f994,is_resolved:_0x27689b})=>{const _0x4ff988=new Date(),_0x18b1e8=_0x27f994['map'](({author:_0x298d55,content:_0x1795cb,created_at:_0xeeed97})=>({'content':_0x1795cb,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x4ff988,'attributes':{'@external':{'authorName':_0x298d55,'createdAt':_0xeeed97?new Date(_0xeeed97):new Date(),'source':'importWord'}}})),_0x31db6d=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x31db6d,'threadId':_0x139a03,'comments':_0x18b1e8,'resolvedAt':_0x27689b?_0x4ff988:null});});}}class at extends _0x4aad6f{constructor(_0x578518){super(_0x578518),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x177a7e=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x177a7e,'contentInsertion',(_0x1e1246,_0x40d942)=>this['_removeMarkersWithoutThreads'](_0x40d942['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x27807b){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x27807b;const _0x25d641=this['editor']['plugins']['get']('CommentsRepository');for(const _0x657b3c of _0x27807b['keys']()){const [_0x5b1a16,_0x29162d]=_0x657b3c['split'](':');'comment'!=_0x5b1a16||_0x25d641['hasCommentThread'](_0x29162d)||_0x27807b['delete'](_0x657b3c);}return _0x27807b;}['_registerMarkerInClipboardPipeline'](){const _0x468748=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x169971=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x169971&&_0x468748['_registerMarkerToCopy']('comment',_0x169971);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0xaf42ca){switch(_0xaf42ca){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x1f49d1){const _0x31f043=_0x1f49d1['split'](':');return{'group':_0x31f043[0x0],'id':_0x31f043[0x1],'part':_0x31f043[0x2]};}class ut extends _0x4aad6f{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x507748,_0x3b4740)=>{if(!_0x3b4740['options']['showCommentHighlights'])return null;if(_0x3b4740['options']['ignoreResolvedComments']){const {id:_0x5e00ef}=ft(_0x507748['markerName']),_0x4b4a89=this['editor']['plugins']['get'](o);if(_0x4b4a89['getCommentThread'](_0x5e00ef)?.['isResolved']&&_0x507748['item'])return _0x3b4740['consumable']['consume'](_0x507748['item'],'addMarker:'+_0x507748['markerName']),_0x3b4740['consumable']['consume'](_0x507748['item'],'removeMarker:'+_0x507748['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x439e77=>{_0x439e77['on']('addMarker:comment',(_0x240ebb,_0x5a9031,_0x45c854)=>{if(!_0x45c854['options']['showCommentHighlights'])return;const _0x266290=_0x5a9031['item'];if(!_0x266290)return;const _0x28bfa3=_0x45c854['mapper']['toViewElement'](_0x266290);this['editor']['model']['schema']['isObject'](_0x266290)&&_0x28bfa3&&!_0x28bfa3['getCustomProperty']('widget')&&_0x28bfa3['is']('containerElement')&&_0x56c570(_0x28bfa3,_0x45c854['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5e3382,{writer:_0x582c20,options:_0x464f9e})=>{if(!_0x464f9e['showCommentHighlights'])return null;const _0x5adb8f=_0x582c20['createContainerElement']('div'),_0x41f3cc=_0x582c20['createEmptyElement']('hr');return _0x582c20['addClass']('ck-horizontal-line',_0x5adb8f),_0x582c20['insert'](_0x582c20['createPositionAt'](_0x5adb8f,0x0),_0x41f3cc),_0x5adb8f;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x497e60,{writer:_0x531b95,options:_0x4e24fd})=>{if(!_0x4e24fd['showCommentHighlights'])return null;const _0x4fb8ee=_0x531b95['createContainerElement']('span'),_0x437728=_0x531b95['createEmptyElement']('img');return _0x531b95['addClass']('image-inline',_0x4fb8ee),_0x531b95['insert'](_0x531b95['createPositionAt'](_0x4fb8ee,0x0),_0x437728),_0x4fb8ee;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xc87b16,{writer:_0x52de04,options:_0x5320bd})=>{if(_0x5320bd['showCommentHighlights'])return _0x52de04['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3be563,_0x5b095a,_0x58de1a)=>{_0x58de1a['options']['showCommentHighlights']&&_0x3be563['stop']();},{'priority':'high'});}}class r extends _0x4aad6f{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(_0x5d14bf){super(_0x5d14bf),this['set']('isThreadsLoadingPaused',!0x0),_0x5d14bf['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x4bb910,_0x48abb5,_0x4aadd2,_0x2a7ff0)=>{const _0x51a4b4=_0x5d14bf['plugins']['get'](o),_0x3beddf=_0x4aadd2?ft(_0x4aadd2)['id']:null;_0x5d14bf['model']['change'](()=>{if(_0x3beddf){const _0x228b41=this['getAllMarkersForId'](_0x3beddf);for(const _0x1320c5 of _0x228b41)_0x5d14bf['editing']['reconvertMarker'](_0x1320c5);}if(_0x2a7ff0){const {id:_0x49dccf}=ft(_0x2a7ff0),_0x23e4fe=_0x51a4b4['getCommentThread'](_0x49dccf);if(_0x23e4fe&&_0x23e4fe['unlinkedAt'])return;if(_0x23e4fe&&!_0x23e4fe['isAttached'])return;const _0x1192ed=this['getAllMarkersForId'](_0x49dccf);for(const _0x58aa1b of _0x1192ed)_0x5d14bf['editing']['reconvertMarker'](_0x58aa1b);}}),_0x3beddf&&this['scrollToThreadMarker'](_0x3beddf);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x40479a=this['editor'],_0x54b318=_0x40479a['plugins']['get'](o),_0x2ef72f=_0x40479a['config']['get']('collaboration.channelId'),_0x1a762b=_0x54b318['getCommentThreads']()['filter'](_0x294b6f=>_0x294b6f['channelId']!==_0x2ef72f);_0x40479a['commands']['add']('addCommentThread',new ot(_0x40479a)),this['listenTo'](_0x40479a,'change:isReadOnly',(_0x57500f,_0x3640d2,_0x42ea4e)=>{_0x54b318['switchReadOnly'](_0x42ea4e,_0x40479a['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x54b318,dt('addCommentThread',_0x2ef72f),(_0x21d6f4,{threadId:_0x2abe0e})=>{const _0x37ea36=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2abe0e);_0x37ea36?.['unlinkedAt']&&this['_attachArchivedThread'](_0x2abe0e);}),this['listenTo'](_0x54b318,dt('removeCommentThread',_0x2ef72f),(_0x4b738b,{threadId:_0x330bd0})=>{_0x40479a['model']['enqueueChange']({'isUndoable':!0x1},_0x532ee8=>{const _0x18121c=this['getAllMarkersForId'](_0x330bd0);for(const _0x56d14c of _0x18121c)_0x532ee8['removeMarker'](_0x56d14c);});}),this['listenTo'](_0x54b318,dt('resolveCommentThread',_0x2ef72f),(_0x16c096,{threadId:_0x1bf605})=>{(this['_reconvertMarkers'](_0x1bf605),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1bf605)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x54b318,dt('reopenCommentThread',_0x2ef72f),(_0x23db7a,{threadId:_0x6a0c33})=>{this['_reconvertMarkers'](_0x6a0c33);},{'priority':'low'}),this['listenTo'](_0x54b318,dt('addComment',_0x2ef72f),(_0x3f9813,{threadId:_0x800694,isFromAdapter:_0x31af21})=>{const _0x184e2b=this['getAllMarkersForId'](_0x800694);if(_0x31af21||0x0==_0x184e2b['length']||!_0x54b318['hasCommentThread'](_0x800694))return;0x1===_0x54b318['getCommentThread'](_0x800694)['length']&&_0x40479a['model']['enqueueChange']({'isUndoable':!0x1},_0x3bea36=>{for(const _0x50c862 of _0x184e2b)_0x3bea36['updateMarker'](_0x50c862,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x1a762b);}['afterInit'](){!async function(_0x43b491){const _0x287518=_0x44ee48([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]),_0x5c7d8c=0x73460ab3,_0x3b3c9f=0x73418c1b^_0x5c7d8c,_0x209a07=window[_0x44ee48([0x44,0x61,0x74,0x65])][_0x44ee48([0x6e,0x6f,0x77])](),_0x37549c=_0x43b491[_0x44ee48([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xde3012=new window[(_0x44ee48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc1b3e1=>{_0x37549c[_0x44ee48([0x6f,0x6e,0x63,0x65])](_0x44ee48([0x72,0x65,0x61,0x64,0x79]),_0xc1b3e1);}),_0x27eed5={[_0x44ee48([0x6b,0x74,0x79])]:_0x44ee48([0x45,0x43]),[_0x44ee48([0x75,0x73,0x65])]:_0x44ee48([0x73,0x69,0x67]),[_0x44ee48([0x63,0x72,0x76])]:_0x44ee48([0x50,0x2d,0x32,0x35,0x36]),[_0x44ee48([0x78])]:_0x44ee48([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]),[_0x44ee48([0x79])]:_0x44ee48([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]),[_0x44ee48([0x61,0x6c,0x67])]:_0x44ee48([0x45,0x53,0x32,0x35,0x36])},_0x86d9de=_0x37549c[_0x44ee48([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x44ee48([0x67,0x65,0x74])](_0x44ee48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ed61a(){let _0x376e29,_0x328c36=null,_0x124d1c=null;try{if(_0x86d9de==_0x44ee48([0x47,0x50,0x4c]))return _0x44ee48([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x376e29=_0x309e3f(),!_0x376e29)return _0x44ee48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x376e29[_0x44ee48([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x124d1c=_0x294996(_0x376e29[_0x44ee48([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x376e29[_0x44ee48([0x6a,0x74,0x69])])),await _0x1c04e5()?_0x10dcd0()?_0x1c7f60()?_0x44ee48([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31f29d()?(_0x376e29[_0x44ee48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x44ee48([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x328c36=_0x17b820(_0x44ee48([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x471e2b()):_0x44ee48([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x44ee48([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x44ee48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x44ee48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c7f60(){const _0xa29148=[_0x44ee48([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x44ee48([0x74,0x72,0x69,0x61,0x6c])][_0x44ee48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x376e29[_0x44ee48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x209a07/0x3e8:0xe10*_0x3b3c9f;return _0x376e29[_0x44ee48([0x65,0x78,0x70])]<_0xa29148;}function _0x10dcd0(){const _0x2b755c=_0x376e29[_0x44ee48([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2b755c)return!0x1;if(_0x2b755c[_0x44ee48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ee48([0x2a])))return!0x0;if(_0x2b755c[_0x44ee48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ee48([0x43,0x4d,0x54])))return!0x0;if(_0x2b755c[_0x44ee48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ee48([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x1e133e())return!0x0;if(_0x2b755c[_0x44ee48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ee48([0x52,0x43,0x4d,0x54]))){if(_0x4b4d7d())return!0x0;if(_0x252f00()||_0x293fc0())return!0x0;}return!0x1;}function _0x31f29d(){const _0x390b21=_0x376e29[_0x44ee48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x390b21||0x0==_0x390b21[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f780d}=new URL(window[_0x44ee48([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x390b21[_0x44ee48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f780d))return!0x0;const _0x21976c=_0x2f780d[_0x44ee48([0x73,0x70,0x6c,0x69,0x74])](_0x44ee48([0x2e]));return _0x390b21[_0x44ee48([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b9a01=>_0x2b9a01[_0x44ee48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ee48([0x2a])))[_0x44ee48([0x6d,0x61,0x70])](_0x32108b=>_0x32108b[_0x44ee48([0x73,0x70,0x6c,0x69,0x74])](_0x44ee48([0x2e])))[_0x44ee48([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4293d2=>_0x4293d2[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x21976c[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44ee48([0x6d,0x61,0x70])](_0x4f8e5e=>Array(_0x21976c[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f8e5e[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x44ee48([0x66,0x69,0x6c,0x6c])](_0x4f8e5e[0x0]===_0x44ee48([0x2a])?_0x44ee48([0x2a]):'')[_0x44ee48([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f8e5e))[_0x44ee48([0x73,0x6f,0x6d,0x65])](_0xcc89d5=>_0x21976c[_0x44ee48([0x65,0x76,0x65,0x72,0x79])]((_0x5702ea,_0x3c7e90)=>_0xcc89d5[_0x3c7e90]===_0x5702ea||_0xcc89d5[_0x3c7e90]===_0x44ee48([0x2a])));}function _0x471e2b(){return _0x328c36&&_0x124d1c?new window[(_0x44ee48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26b925,_0xfd6335)=>{_0x328c36[_0x44ee48([0x74,0x68,0x65,0x6e])](_0x26b925,_0xfd6335),_0x124d1c[_0x44ee48([0x74,0x68,0x65,0x6e])](_0x4ed1aa=>{_0x4ed1aa!=_0x44ee48([0x56,0x61,0x6c,0x69,0x64])&&_0x26b925(_0x4ed1aa);},_0xfd6335);}):_0x328c36||_0x124d1c||_0x44ee48([0x56,0x61,0x6c,0x69,0x64]);}}function _0x294996(_0x419b6a,_0x168cf2){return new window[(_0x44ee48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x408f24=>{if(_0x10156c())return _0x408f24(_0x44ee48([0x56,0x61,0x6c,0x69,0x64]));_0x5116e6(),_0x37549c[_0x44ee48([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x44ee48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd732b0=!0x1;const _0x595919=_0x49a746();function _0x5e875c(_0x1ad215){return!!_0x1ad215&&(typeof _0x1ad215===_0x44ee48([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ad215===_0x44ee48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ad215[_0x44ee48([0x74,0x68,0x65,0x6e])]===_0x44ee48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ad215[_0x44ee48([0x63,0x61,0x74,0x63,0x68])]===_0x44ee48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe8ff58(_0x5e2b20){_0x1a8d21(_0x5e2b20)[_0x44ee48([0x74,0x68,0x65,0x6e])](_0x200b2d=>{if(!_0x200b2d||_0x200b2d[_0x44ee48([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x44ee48([0x6f,0x6b]))return _0x44ee48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23f969(_0x245ec0(_0x595919+_0x168cf2))!=_0x200b2d[_0x44ee48([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x44ee48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x44ee48([0x56,0x61,0x6c,0x69,0x64]);})[_0x44ee48([0x74,0x68,0x65,0x6e])](_0x4552e9=>(_0x1b2c70(),_0x4552e9),()=>{const _0x1ca8e5=_0x132ce2();return null==_0x1ca8e5?(_0x1b2c70(),_0x44ee48([0x56,0x61,0x6c,0x69,0x64])):_0x44ee48(_0x209a07-_0x1ca8e5>(0x574a8eb3^_0x5c7d8c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x44ee48([0x74,0x68,0x65,0x6e])](_0x408f24)[_0x44ee48([0x63,0x61,0x74,0x63,0x68])](()=>{_0x408f24(_0x44ee48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2acb6c=0x7370e433^_0x5c7d8c;function _0x1b2c70(){const _0x5934f1=_0x44ee48([0x6c,0x6c,0x63,0x74,0x2d])+_0x23f969(_0x245ec0(_0x419b6a)),_0x4e9295=_0x3a14fc(_0x23f969(window[_0x44ee48([0x4d,0x61,0x74,0x68])][_0x44ee48([0x63,0x65,0x69,0x6c])](_0x209a07/_0x2acb6c)));window[_0x44ee48([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44ee48([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5934f1,_0x4e9295);}function _0x132ce2(){const _0x4a4c3d=_0x44ee48([0x6c,0x6c,0x63,0x74,0x2d])+_0x23f969(_0x245ec0(_0x419b6a)),_0x41b4f2=window[_0x44ee48([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x44ee48([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a4c3d);return _0x41b4f2?window[_0x44ee48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a14fc(_0x41b4f2),0x10)*_0x2acb6c:null;}function _0x1a8d21(_0x41d6ae){return new window[(_0x44ee48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43b947,_0x2c3a88)=>{_0x41d6ae[_0x44ee48([0x74,0x68,0x65,0x6e])](_0x43b947,_0x2c3a88),window[_0x44ee48([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c3a88,0x7347de73^_0x5c7d8c);});}}_0x37549c[_0x44ee48([0x6f,0x6e])](_0x44ee48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24ef71,_0x210e6a)=>{if(_0x210e6a[0x0]!=_0x419b6a)return _0x408f24(_0x44ee48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x210e6a[0x1]={..._0x210e6a[0x1],[_0x44ee48([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x595919};},{[_0x44ee48([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44ee48([0x68,0x69,0x67,0x68])}),_0x37549c[_0x44ee48([0x6f,0x6e])](_0x44ee48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5db154=>{_0x5e875c(_0x5db154[_0x44ee48([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd732b0=!0x0,_0xe8ff58(_0x5db154[_0x44ee48([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x44ee48([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x44ee48([0x6c,0x6f,0x77])}),_0xde3012[_0x44ee48([0x74,0x68,0x65,0x6e])](()=>{_0xd732b0||_0x408f24(_0x44ee48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10156c(){return _0x37549c[_0x44ee48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44ee48([0x76,0x69,0x65,0x77])][_0x44ee48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x44ee48([0x61,0x75,0x74,0x6f]);}function _0x5116e6(){_0x37549c[_0x44ee48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44ee48([0x76,0x69,0x65,0x77])][_0x44ee48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44ee48([0x61,0x75,0x74,0x6f]);}}function _0x17b820(_0x2112a0){const _0x14ad6f=[new window[(_0x44ee48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e7bd8=>setTimeout(_0x1e7bd8,0x734f347f^_0x5c7d8c)),_0xde3012[_0x44ee48([0x74,0x68,0x65,0x6e])](()=>new window[(_0x44ee48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f8795=>{let _0x55c50f=0x0;_0x37549c[_0x44ee48([0x6d,0x6f,0x64,0x65,0x6c])][_0x44ee48([0x6f,0x6e])](_0x44ee48([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19c488,_0x1dd18b)=>{_0x1dd18b[0x0][_0x44ee48([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55c50f++,_0x55c50f==(0x73460f5b^_0x5c7d8c)&&(_0x4f8795(),_0x19c488[_0x44ee48([0x6f,0x66,0x66])]());});}))];return window[_0x44ee48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44ee48([0x72,0x61,0x63,0x65])](_0x14ad6f)[_0x44ee48([0x74,0x68,0x65,0x6e])](()=>_0x2112a0);}async function _0x75f240(){await _0xde3012,_0x37549c[_0x44ee48([0x6d,0x6f,0x64,0x65,0x6c])][_0x44ee48([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x8087b4,_0x37549c[_0x44ee48([0x6d,0x6f,0x64,0x65,0x6c])][_0x44ee48([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x8087b4,_0x37549c[_0x44ee48([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x44ee48([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e133e(){return window[_0x44ee48([0x67,0x6c,0x6f,0x62])]&&window[_0x44ee48([0x67,0x6c,0x6f,0x62])][_0x44ee48([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4b4d7d(){return _0x3825b9(_0x44ee48([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x49060d(_0x44ee48([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x44ee48([0x73,0x74,0x61,0x74,0x65])]==_0x44ee48([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x252f00(){return _0x3825b9(_0x44ee48([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 _0x293fc0(){return _0x3825b9(_0x44ee48([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5c3998(_0x4f6cb1){const _0x2b034f=_0x12d7b6();_0x37549c[_0x2b034f]=_0x44ee48([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f6cb1,_0x4f6cb1!=_0x44ee48([0x56,0x61,0x6c,0x69,0x64])&&_0x75f240();}function _0x12d7b6(){const _0x583845=window[_0x44ee48([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x44ee48([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x44ee48([0x6e,0x6f,0x77])]())[_0x44ee48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x44ee48([0x2e]),'');let _0x17c8b1=_0x44ee48([0x4b]);for(let _0x408b70=0x0;_0x408b70<_0x583845[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x408b70+=0x2){let _0xa020d1=window[_0x44ee48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x583845[_0x44ee48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x408b70,_0x408b70+0x2));_0xa020d1>=_0x287518[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa020d1-=_0x287518[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17c8b1+=_0x287518[_0xa020d1];}return _0x17c8b1;}function _0x309e3f(){const _0x2e7e1e=_0x86d9de[_0x44ee48([0x73,0x70,0x6c,0x69,0x74])](_0x44ee48([0x2e]));if(0x3!=_0x2e7e1e[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49858f(_0x2e7e1e[0x1]);function _0x49858f(_0x37baf5){const _0x467a13=_0x58af6d(_0x37baf5);return _0x467a13&&_0x2e3391()?_0x467a13:null;function _0x2e3391(){const _0x30e747=_0x467a13[_0x44ee48([0x6a,0x74,0x69])],_0x5dd93a=window[_0x44ee48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30e747[_0x44ee48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30e747[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x466617={..._0x467a13,[_0x44ee48([0x6a,0x74,0x69])]:_0x30e747[_0x44ee48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30e747[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x466617[_0x44ee48([0x76,0x63])],_0x245ec0(_0x466617)==_0x5dd93a;}}}async function _0x1c04e5(){let _0x6b2f56=!0x0;try{const _0x1b24d0=_0x86d9de[_0x44ee48([0x73,0x70,0x6c,0x69,0x74])](_0x44ee48([0x2e])),[_0x135f4f,_0x347588,_0x47ad96]=_0x1b24d0;return _0x4a95a1(_0x135f4f),await _0x68394e(_0x135f4f,_0x347588,_0x47ad96),_0x6b2f56;}catch{return!0x1;}function _0x4a95a1(_0x5c323d){const _0x448902=_0x58af6d(_0x5c323d);_0x448902&&_0x448902[_0x44ee48([0x61,0x6c,0x67])]==_0x44ee48([0x45,0x53,0x32,0x35,0x36])||(_0x6b2f56=!0x1);}async function _0x68394e(_0x4404cb,_0x11081d,_0x3bebe3){const _0x5ea36f=window[_0x44ee48([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x44ee48([0x66,0x72,0x6f,0x6d])](_0x151d56(_0x3bebe3),_0x4bf592=>_0x4bf592[_0x44ee48([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcf44ae=new window[(_0x44ee48([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x44ee48([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4404cb+_0x44ee48([0x2e])+_0x11081d),_0x4d25e1=window[_0x44ee48([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x44ee48([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d25e1)return;const _0x48e2c1=await _0x4d25e1[_0x44ee48([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x44ee48([0x6a,0x77,0x6b]),_0x27eed5,{[_0x44ee48([0x6e,0x61,0x6d,0x65])]:_0x44ee48([0x45,0x43,0x44,0x53,0x41]),[_0x44ee48([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x44ee48([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x44ee48([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d25e1[_0x44ee48([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x44ee48([0x6e,0x61,0x6d,0x65])]:_0x44ee48([0x45,0x43,0x44,0x53,0x41]),[_0x44ee48([0x68,0x61,0x73,0x68])]:{[_0x44ee48([0x6e,0x61,0x6d,0x65])]:_0x44ee48([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48e2c1,_0x5ea36f,_0xcf44ae)||(_0x6b2f56=!0x1);}}function _0x58af6d(_0x4e3b71){return _0x4e3b71[_0x44ee48([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x44ee48([0x65,0x79]))?JSON[_0x44ee48([0x70,0x61,0x72,0x73,0x65])](_0x151d56(_0x4e3b71)):null;}function _0x151d56(_0x45f8fd){return window[_0x44ee48([0x61,0x74,0x6f,0x62])](_0x45f8fd[_0x44ee48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x44ee48([0x2b]))[_0x44ee48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x44ee48([0x2f])));}function _0x245ec0(_0x5e6776){let _0x42ce67=0x1505;function _0x3041e6(_0x5dc4dd){for(let _0x20c1fb=0x0;_0x20c1fb<_0x5dc4dd[_0x44ee48([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20c1fb++){const _0x36428c=_0x5dc4dd[_0x44ee48([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x20c1fb);_0x42ce67=(_0x42ce67<<0x5)+_0x42ce67+_0x36428c,_0x42ce67&=_0x42ce67;}}function _0x16d11a(_0x429dae){Array[_0x44ee48([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x429dae)?_0x429dae[_0x44ee48([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16d11a):_0x429dae&&typeof _0x429dae==_0x44ee48([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x44ee48([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x429dae)[_0x44ee48([0x73,0x6f,0x72,0x74])]()[_0x44ee48([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9a24ef,_0x16341c])=>{_0x3041e6(_0x9a24ef),_0x16d11a(_0x16341c);}):_0x3041e6(window[_0x44ee48([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x429dae));}return _0x16d11a(_0x5e6776),_0x42ce67>>>0x0;}function _0x23f969(_0x106488){return _0x106488[_0x44ee48([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x44ee48([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x44ee48([0x30]));}function _0x3a14fc(_0x4c7569){return _0x4c7569[_0x44ee48([0x73,0x70,0x6c,0x69,0x74])]('')[_0x44ee48([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x44ee48([0x6a,0x6f,0x69,0x6e])]('');}function _0x3825b9(_0x77a038){return _0x37549c[_0x44ee48([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44ee48([0x68,0x61,0x73])](_0x77a038);}function _0x49060d(_0x1e2edf){return _0x37549c[_0x44ee48([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x44ee48([0x67,0x65,0x74])](_0x1e2edf);}function _0x8087b4(){}function _0x44ee48(_0xda7e0b){return _0xda7e0b['map'](_0x352ffb=>String['fromCharCode'](_0x352ffb))['join']('');}_0x5c3998(await _0x1ed61a());}(this);}['destroy'](){const _0x4d3c36=this['editor']['plugins']['get'](o),_0x1492c8=this['editor']['config']['get']('collaboration.channelId');for(const _0x26f67e of _0x4d3c36['getCommentThreads']({'channelId':_0x1492c8}))_0x4d3c36['_detachCommentThread'](_0x26f67e['id']),_0x4d3c36['_threads']['delete'](_0x26f67e['id']);super['destroy']();}['hasMarkerForId'](_0x282c55){return this['getAllMarkersForId'](_0x282c55)['length']>0x0;}['getAllMarkersForId'](_0x3451a4){const _0x5ba999=[];for(const _0x4b6fa6 of this['editor']['model']['markers'])_0x4b6fa6['name']['startsWith']('comment:'+_0x3451a4)&&_0x5ba999['push'](_0x4b6fa6);return _0x5ba999;}['scrollToThreadMarker'](_0x1c7b70){setTimeout(()=>{const _0x37f479=this['_getTargetForId'](_0x1c7b70);if(!_0x37f479)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x1c7b70&&nt({'target':_0x37f479[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x273948){this['editor']['model']['change'](()=>{for(const _0xeff34d of this['getAllMarkersForId'](_0x273948))this['editor']['editing']['reconvertMarker'](_0xeff34d);});}['_attachArchivedThread'](_0x3b17be){const _0x61b60e=this['editor']['plugins']['get'](o),_0x51a9f0=this['editor']['plugins']['get'](b),_0x1c94bb=_0x61b60e['getCommentThread'](_0x3b17be);if(!_0x1c94bb['isAttached']){const _0x281928=_0x1c94bb['attachTo'](()=>this['_getTargetForId'](_0x1c94bb['id']));_0x51a9f0['registerAnnotation'](_0x281928),_0x1c94bb['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x7293fe=this['editor'],_0x144275=_0x7293fe['plugins']['get'](it);_0x7293fe['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x151f11,_0x5529b2)=>{const {id:_0x24d906}=ft(_0x151f11['markerName']),_0x3c7500=_0x7293fe['plugins']['get'](o)['getCommentThread'](_0x24d906),_0x3c7221=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x24d906;let _0x52e315;if(_0x3c7500&&_0x3c7500['isResolved']&&!_0x3c7221&&_0x151f11['item'])return _0x5529b2['consumable']['consume'](_0x151f11['item'],'addMarker:'+_0x151f11['markerName']),_0x5529b2['consumable']['consume'](_0x151f11['item'],'removeMarker:'+_0x151f11['markerName']),null;const _0x55c69=['ck-comment-marker'];return _0x3c7221&&_0x55c69['push']('ck-comment-marker--active'),_0x52e315=_0x3c7500?.['length']?_0x3c7500['comments']['first']['author']['id']:_0x144275['me']['id'],{'classes':_0x55c69,'attributes':{'data-comment':_0x24d906,'data-author-id':_0x52e315}};}}),_0x7293fe['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x43fd33,{options:_0x3d92f5})=>{if(_0x3d92f5['showCommentHighlights'])return null;const _0x42bb7a=_0x7293fe['plugins']['get'](o),_0x4bb539=_0x7293fe['model']['markers']['get'](_0x43fd33),{id:_0x153046,part:_0x44de65}=ft(_0x43fd33);return _0x4bb539&&!_0x4bb539['affectsData']||_0x3d92f5['ignoreResolvedComments']&&_0x42bb7a['getCommentThread'](_0x153046)?.['isResolved']?null:{'group':'comment','name':_0x44de65?_0x153046+':'+_0x44de65:_0x153046};}}),_0x7293fe['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0xa14f98,{writer:_0x1f6497})=>_0x1f6497['createElement']('$marker',{'data-name':'comment:'+_0xa14f98['getAttribute']('id')})}),_0x7293fe['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x27267b=this['editor'],_0x56b2dd=_0x27267b['plugins']['get'](o),_0x5f0986=new Set(),_0x59c3ad=new Set();_0x27267b['model']['document']['registerPostFixer'](_0x45457c=>{let _0xf92f5c=!0x1;for(const {name:_0x2db8bf,data:_0x39bddd}of _0x27267b['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1dca8b,id:_0x596b5d}=ft(_0x2db8bf);let _0x31b2ca=_0x39bddd['newRange'];if('comment'!==_0x1dca8b||!_0x31b2ca)continue;const _0x51e1d0='$graveyard'===_0x31b2ca['root']['rootName'];_0x51e1d0||(_0x31b2ca=ht(_0x31b2ca,_0x27267b['model']),!_0x31b2ca||_0x31b2ca['isCollapsed']||!_0x39bddd['newRange']||_0x31b2ca['isEqual'](_0x39bddd['newRange']))?_0x27267b['model']['hasContent'](_0x31b2ca)&&!_0x51e1d0?this['isThreadsLoadingPaused']?_0x5f0986['add'](_0x2db8bf):this['_handleThreadMarker'](_0x2db8bf,_0x596b5d):(_0x59c3ad['add'](_0x2db8bf),_0x5f0986['delete'](_0x2db8bf),_0x45457c['removeMarker'](_0x2db8bf),_0xf92f5c=!0x0):(_0x45457c['updateMarker'](_0x2db8bf,{'range':_0x31b2ca}),_0xf92f5c=!0x0);}return _0xf92f5c;}),this['on']('change:isThreadsLoadingPaused',(_0x258144,_0x586937,_0x17cc59)=>{if(!_0x17cc59&&_0x5f0986['size'])for(const _0x171cac of _0x5f0986){const {id:_0x6f6941}=ft(_0x171cac);_0x5f0986['delete'](_0x171cac),_0x27267b['model']['markers']['get'](_0x171cac)&&this['_handleThreadMarker'](_0x171cac,_0x6f6941);}}),this['listenTo'](_0x27267b['model']['document'],'change',()=>{for(const {name:_0x1e12f0,data:{newRange:_0x178402}}of _0x27267b['model']['document']['differ']['getChangedMarkers']()){const {group:_0x219b39,id:_0x43f0da}=ft(_0x1e12f0);if('comment'!==_0x219b39)continue;const _0xf12a09=_0x56b2dd['getCommentThread'](_0x43f0da),_0x529b60=this['hasMarkerForId'](_0x43f0da);_0xf12a09&&(!_0xf12a09['_hasTargetInContent']&&_0x178402&&_0x27267b['editing']['view']['once']('render',()=>{const _0x57234a=_0x27267b['plugins']['get'](y),_0x9cd40c=_0x56b2dd['_threadToController']['get'](_0xf12a09)['view'];_0x57234a['getByInnerView'](_0x9cd40c)['refreshVisibility']();},{'priority':'low'}),_0xf12a09['_hasTargetInContent']=_0x529b60||!!_0x178402),_0x178402||(_0x59c3ad['add'](_0x1e12f0),_0x5f0986['delete'](_0x1e12f0));}for(const _0x4e1318 of _0x59c3ad){const {id:_0x2a717d}=ft(_0x4e1318),_0x323155=_0x56b2dd['getCommentThread'](_0x2a717d);if(_0x5f0986['delete'](_0x4e1318),!_0x323155)continue;const _0x282d8c=this['hasMarkerForId'](_0x2a717d);_0x282d8c||_0x323155['isSubmitted']?_0x282d8c||_0x323155['unlinkedAt']||_0x323155['setUnlinkedAt'](new Date()):_0x323155['remove']();}_0x59c3ad['clear']();});}['_handleInitialThreads'](_0x3b3fde){_0x3b3fde['forEach'](_0x51c2b0=>{_0x51c2b0['unlinkedAt']&&this['_attachArchivedThread'](_0x51c2b0['id']);});}['_getTargetForId'](_0x30371a){const _0xefcd8c=this['editor'],_0x1d7a1c=this['getAllMarkersForId'](_0x30371a);return et(_0xefcd8c['editing'],_0x1d7a1c);}['_getTextContext'](_0x4a7fed){const _0x1c5df4=this['getAllMarkersForId'](_0x4a7fed);let _0x825ae4='',_0x3ee305=!0x1;for(const _0x3b8efe of _0x1c5df4){const _0x4c3be4=_0x3b8efe['getRange']();for(const _0x49c89d of Array['from'](_0x4c3be4['getItems']()))_0x49c89d['is']('$textProxy')?(_0x825ae4&&_0x3ee305&&(_0x825ae4+='\x20',_0x3ee305=!0x1),_0x825ae4+=_0x49c89d['data']):_0x3ee305=!0x0;_0x3ee305=!0x0;}return _0x825ae4['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3a4d53,_0x4cc038){const _0x32ca53=this['editor'],_0x1d6649=_0x32ca53['plugins']['get'](o);let _0x3405e6=_0x1d6649['getCommentThread'](_0x4cc038);const _0x5e53d1=_0x32ca53['config']['get']('collaboration.channelId'),_0x46f504=_0x32ca53['plugins']['get'](b);if(_0x3405e6&&(_0x3405e6['unlinkedAt']&&_0x3405e6['setUnlinkedAt'](null),_0x3405e6['isAttached']))return _0x3405e6;return!this['getAllMarkersForId'](_0x4cc038)[0x0]['managedUsingOperations']?_0x32ca53['editing']['view']['once']('render',()=>{if(_0x1d6649['getCommentThread'](_0x4cc038))return;const _0x330e50=_0x32ca53['plugins']['get'](y);_0x3405e6=_0x1d6649['openNewCommentThread']({'channelId':_0x5e53d1,'threadId':_0x4cc038,'target':()=>this['_getTargetForId'](_0x4cc038),'context':{'type':'text','value':this['_getTextContext'](_0x4cc038)}});const _0x501ae1=_0x1d6649['_threadToController']['get'](_0x3405e6)['view'],_0x434401=_0x330e50['getByInnerView'](_0x501ae1);_0x434401&&_0x46f504['registerAnnotation'](_0x434401);},{'priority':'low'}):_0x1d6649['fetchCommentThread']({'channelId':_0x5e53d1,'threadId':_0x4cc038})['then'](_0x4eea88=>{if('destroyed'!==_0x32ca53['state']){if(_0x3405e6=_0x4eea88,_0x3405e6&&!_0x3405e6['isAttached']){const _0x594a91=_0x3405e6['attachTo'](()=>this['_getTargetForId'](_0x4cc038));_0x46f504['registerAnnotation'](_0x594a91),_0x3405e6['isResolved']&&this['_reconvertMarkers'](_0x4cc038);}else{if(!_0x3405e6){const _0x1e4a00=this['getAllMarkersForId'](_0x4cc038);_0x32ca53['model']['change'](_0xe88996=>{for(const _0x2d6fa0 of _0x1e4a00)_0xe88996['removeMarker'](_0x2d6fa0);});}}}}),_0x3405e6;}['_handleThreadMarker'](_0x27020f,_0x5e0526){const _0x53471b=this['_attachMarkerToThread'](_0x27020f,_0x5e0526);_0x53471b&&!_0x53471b['context']&&_0x53471b['setContext']({'type':'text','value':this['_getTextContext'](_0x5e0526)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4781c5=this['editor'];rt(_0x4781c5['model'],({left:_0x415b8a,entered:_0x2edcca})=>{for(const _0x2d65e7 of _0x415b8a)if(mt(_0x2d65e7)){_0x4781c5['ui']['ariaLiveAnnouncer']['announce'](N(_0x4781c5['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0xf9cf24 of _0x2edcca)if(mt(_0xf9cf24)){_0x4781c5['ui']['ariaLiveAnnouncer']['announce'](N(_0x4781c5['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x2f354e)));break;}});}}function dt(_0x4dc928,_0x194929){return _0x194929?_0x4dc928+':'+_0x194929:_0x4dc928;}function ht(_0x331359,_0x4a7ccd){const _0x429b45=_0x4a7ccd['schema'],_0x19cbd3=_0x4a7ccd['createRange'](_0x331359['start']);for(const _0x42b1e6 of _0x331359['getWalker']()){const {type:_0x1cebe9,item:_0x321721,nextPosition:_0x205483}=_0x42b1e6;if('text'===_0x1cebe9||_0x429b45['isObject'](_0x321721)){const _0x44f12a=_0x4a7ccd['createPositionBefore'](_0x321721);_0x19cbd3['isCollapsed']&&(_0x19cbd3['start']=_0x44f12a),_0x19cbd3['end']=_0x205483;}}return _0x19cbd3;}function mt(_0x265120){return'comment'===ft(_0x265120['name'])['group'];}class s extends _0x4aad6f{['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 _0x268a15=this['editor'],_0x5010b7=_0x268a15['plugins']['get'](o),_0x301890=_0x268a15['plugins']['get'](r),_0x44f499=_0x268a15['plugins']['get'](y),_0x2c64d5=_0x268a15['plugins']['get'](b);_0x268a15['ui']['componentFactory']['add']('comment',()=>{const _0x2a50d4=this['_createUIButton'](_0x235388);return _0x2a50d4['tooltip']=!0x0,_0x2a50d4;}),_0x268a15['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0xba86ba)),_0x2c64d5['addSourceCollector'](()=>{const _0x28a0d4=[];for(const [_0x1c2398,_0x3f443d]of _0x5010b7['_threadToController']){const _0x4e24b8=_0x301890['getAllMarkersForId'](_0x1c2398['id']),_0x107bad=_0x4e24b8['map'](_0x122749=>_0x122749['getRange']());_0x4e24b8['length']>0x0&&_0x28a0d4['push']([_0x3f443d['view'],_0x107bad]);}return _0x28a0d4;}),this['listenTo'](_0x44f499,'change:activeAnnotations',(_0x1ace61,_0x424737,_0x394e30)=>{const _0x5aeb10=Array['from'](_0x394e30)['map'](_0x55d325=>_0x55d325['innerView'])['find'](_0x2f4824=>_0x5010b7['_viewToController']['has'](_0x2f4824));if(!_0x5aeb10)return void(_0x301890['activeMarker']=null);const _0x53dddc=_0x5010b7['_viewToController']['get'](_0x5aeb10)['model']['id'],_0x5f4770='comment:'+_0x53dddc;_0x53dddc&&_0x301890['hasMarkerForId'](_0x53dddc)?_0x301890['activeMarker']=_0x5f4770:_0x301890['activeMarker']&&(_0x301890['activeMarker']=null);}),this['listenTo'](_0x5010b7,'removeCommentThread',(_0x3e105f,{threadId:_0x48a385,isFromAdapter:_0x2390ee})=>{!_0x2390ee&&_0x268a15['ui']['focusTracker']['isFocused']&&_0x301890['hasMarkerForId'](_0x48a385)&&_0x268a15['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x5010b7,'addComment',(_0x5f5c6c,{threadId:_0x5e1a49,isFromAdapter:_0x59a278})=>{if(_0x59a278||!_0x301890['hasMarkerForId'](_0x5e1a49)||!_0x5010b7['hasCommentThread'](_0x5e1a49))return;0x1===_0x5010b7['getCommentThread'](_0x5e1a49)['length']&&(_0x268a15['editing']['view']['focus'](),_0x5f5c6c['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x39cb69=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55fcef;for(const _0x58e3c4 in _0x39cb69){const _0x42877b=_0x58e3c4,_0x240f0a=_0x39cb69[_0x42877b];if('commentsLicenseKeyValid'==_0x240f0a||'commentsLicenseKeyInvalid'==_0x240f0a||'commentsLicenseKeyExpired'==_0x240f0a||'commentsLicenseKeyDomainLimit'==_0x240f0a||'commentsLicenseKeyNotAllowed'==_0x240f0a||'commentsLicenseKeyEvaluationLimit'==_0x240f0a||'commentsLicenseKeyUsageLimit'==_0x240f0a){delete _0x39cb69[_0x42877b],_0x55fcef=_0x240f0a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x55fcef&&_0x39cb69['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x55fcef&&_0x39cb69['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x55fcef&&_0x39cb69['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x55fcef&&_0x39cb69['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x55fcef&&_0x39cb69['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x55fcef&&_0x39cb69['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2e1a88){const _0x502589=this['editor'],_0x2ef420=new _0x2e1a88(_0x502589['locale']),_0x36eebe=_0x502589['commands']['get']('addCommentThread');return _0x2ef420['set']({'label':N(_0x502589['locale'],'Comment'),'icon':_0x3065db}),_0x2ef420['bind']('isEnabled')['to'](_0x36eebe,'isEnabled',_0x36eebe,'hasContent',(_0x3acd9e,_0x38b0fa)=>_0x3acd9e&&_0x38b0fa),this['listenTo'](_0x2ef420,'execute',()=>{_0x36eebe['execute']();}),_0x2ef420;}}class i extends _0x4aad6f{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x13abf2){super(_0x13abf2),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x26d33d,_0x116742,_0x95e9ed)=>{_0x95e9ed?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x50e992,_0x321b96]of this['editor']['commands'])_0x321b96['affectsData']&&'addCommentThread'!==_0x50e992&&_0x321b96['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 _0x26691a=this['editor']['editing']['view']['document'];this['listenTo'](_0x26691a,'cut',_0x54d2a0=>_0x54d2a0['stop'](),{'priority':'highest'}),this['listenTo'](_0x26691a,'clipboardInput',_0x5905c4=>_0x5905c4['stop'](),{'priority':'highest'}),this['listenTo'](_0x26691a,'delete',_0xc116bb=>_0xc116bb['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x1cf7d1,_0x5d624c]of this['editor']['commands'])_0x5d624c['affectsData']&&'addCommentThread'!==_0x1cf7d1&&_0x5d624c['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 _0x4427fc{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51a43c){super(_0x51a43c),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4b48b4=this['context']['plugins']['get'](y);this['listenTo'](_0x4b48b4,'_activateAnnotation',(_0x205401,_0x584840)=>{for(const _0x5d465d of this['activeUIs']){const _0x1f051b=this['_uis']['get'](_0x5d465d);(0x0,this['uisData']['get'](_0x5d465d)['filter'])(_0x584840)&&_0x1f051b['setActiveAnnotation'](_0x584840);}}),this['listenTo'](_0x4b48b4,'_deactivateAllAnnotations',()=>{for(const _0x1bda45 of this['activeUIs']){this['_uis']['get'](_0x1bda45)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4b48b4['_visibleAnnotations'],'add',(_0x114ebc,_0x2d2b57)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2d2b57);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x42f4e6){return this['activeUIs']['has'](_0x42f4e6);}['activate'](_0xdf773e,_0x5b1fb1=this['defaultFilter']){const _0x5b2ffd=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0xdf773e))throw new _0x1be892('annotationsuis-missing-ui',this,{'uiName':_0xdf773e});this['isActive'](_0xdf773e)&&this['deactivate'](_0xdf773e),this['activeUIs']['add'](_0xdf773e);const _0xa3279=new S();v({'source':_0x5b2ffd['_visibleAnnotations'],'target':_0xa3279,'filter':_0x5b1fb1}),this['uisData']['set'](_0xdf773e,{'collection':_0xa3279,'filter':_0x5b1fb1});const _0xde6c0d=this['_uis']['get'](_0xdf773e);_0xde6c0d['attach'](_0xa3279),this['listenTo'](_0xde6c0d,'change:activeAnnotation',(_0x10f459,_0x498580,_0x27be5f,_0x412710)=>{_0x412710&&_0x5b2ffd['_removeActiveAnnotation'](_0x412710),_0x27be5f&&_0x5b2ffd['_addActiveAnnotation'](_0x27be5f);});}['deactivate'](_0x2a9fc6){if(this['activeUIs']['delete'](_0x2a9fc6),!this['_uis']['has'](_0x2a9fc6))throw new _0x1be892('annotationsuis-missing-ui',this,{'uiName':_0x2a9fc6});const _0xdc7571=this['_uis']['get'](_0x2a9fc6);_0xdc7571['detach'](),this['stopListening'](_0xdc7571),this['uisData']['get'](_0x2a9fc6)['collection']['destroy'](),this['uisData']['delete'](_0x2a9fc6);}['switchTo'](_0xb8f76e){if(!this['_uis']['has'](_0xb8f76e))throw new _0x1be892('annotationsuis-missing-ui',this,{'uiName':_0xb8f76e});const _0x201457=this['context']['plugins']['get'](y),_0x4517fe=Array['from'](_0x201457['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0xb8f76e);const _0x16e9a6=this['_uis']['get'](_0xb8f76e);_0x16e9a6['setActiveAnnotation'](_0x4517fe),_0x16e9a6['_setSelectedAnnotations']&&_0x4517fe&&_0x16e9a6['_setSelectedAnnotations']([_0x4517fe]);}['deactivateAll'](){for(const _0x451bc9 of this['activeUIs'])this['deactivate'](_0x451bc9);}['register'](_0x240912,_0x4df160){if(this['_uis']['has'](_0x240912))throw new _0x1be892('annotationsuis-register-already-registered');if('function'!=typeof _0x4df160['attach']||'function'!=typeof _0x4df160['detach']||'function'!=typeof _0x4df160['setActiveAnnotation'])throw new _0x1be892('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x240912,_0x4df160);}['refilterAnnotations'](){const _0x3c84e5=this['context']['plugins']['get'](y)['collection'],_0x4c5aba=new Map(),_0x3e26cd=Array['from'](this['activeUIs']);for(const _0x18b848 of this['activeUIs']){const _0x2c7fd6=this['uisData']['get'](_0x18b848)['collection'];for(const _0x799fd4 of _0x2c7fd6)_0x4c5aba['set'](_0x799fd4,_0x18b848);}for(const _0x974227 of _0x3c84e5){const _0x2f4ac4=_0x4c5aba['get'](_0x974227);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x974227);const _0x4d2d08=_0x3e26cd['find'](_0x295632=>this['uisData']['get'](_0x295632)['filter'](_0x974227));_0x2f4ac4!==_0x4d2d08&&(_0x2f4ac4&&this['uisData']['get'](_0x2f4ac4)['collection']['remove'](_0x974227),_0x4d2d08&&this['uisData']['get'](_0x4d2d08)['collection']['add'](_0x974227));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x349af3){const _0xade07b=[];for(const _0x5f1dd7 of this['activeUIs']){(0x0,this['uisData']['get'](_0x5f1dd7)['filter'])(_0x349af3)&&_0xade07b['push'](_0x5f1dd7);}if(_0xade07b['length']>0x1)throw new _0x1be892('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xade07b,'annotationType':_0x349af3['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x342184){super(_0x342184);const _0x53b281=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 _0x1b869f(),this['focusCycler']=new _0xba4b7f({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x53b281['to']('class')],'style':{'minHeight':_0x53b281['to']('minHeight',_0x50cf61=>'number'==typeof _0x50cf61?_i(_0x50cf61+0xa):null)},'dir':_0x342184['uiLanguageDirection'],'role':'application','aria-label':N(_0x342184,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x342184,'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',_0x2c706d=>{this['_updateItemPositionInFocusables'](_0x2c706d['source']);}),this['list']['forEach'](_0x3315b3=>{this['focusTracker']['add'](_0x3315b3['element']),this['_updateItemPositionInFocusables'](_0x3315b3);}),this['list']['on']('change',(_0x2756e3,_0x5648b1)=>{for(const _0x212617 of _0x5648b1['removed'])this['focusTracker']['remove'](_0x212617['element']),this['focusables']['remove'](_0x212617);for(const _0x3550ea of _0x5648b1['added'])this['focusTracker']['add'](_0x3550ea['element']),this['_updateItemPositionInFocusables'](_0x3550ea);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0xccb204){const _0x5c0db0=this['focusables']['getIndex'](_0xccb204);let _0x311f80,_0x58485d;for(const _0x10fd80 of this['focusables'])if(_0xccb204['top']<_0x10fd80['top']){_0x311f80=_0x10fd80;break;}if(_0x58485d=_0x311f80?this['focusables']['getIndex'](_0x311f80):this['focusables']['length'],-0x1!==_0x5c0db0){if(_0x5c0db0===_0x58485d-0x1)return;this['focusables']['remove'](_0xccb204),_0x58485d=_0x311f80?this['focusables']['getIndex'](_0x311f80):this['focusables']['length'];}this['focusables']['add'](_0xccb204,_0x58485d);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x4b6fa4){super(_0x4b6fa4),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x1e6e7c,_0x3dba17)=>_0x1e6e7c+_0x3dba17),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x163c5f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x163c5f['to']('isAnimationDisabled',_0x29d5c1=>_0x29d5c1?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x163c5f['to']('top',_0x59ffc5=>Ot(_0x59ffc5))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3d96e0=this['element']['clientHeight'];_0x3d96e0&&(this['height']=_0x3d96e0);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x4427fc{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x572498){super(_0x572498),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 _0x43d7c3=this['context']['config']['get']('sidebar.container');_0x43d7c3&&this['setContainer'](_0x43d7c3);}['setContainer'](_0x3ceee8){if(!g(_0x3ceee8))throw new _0x1be892('sidebar-setcontainer-invalid-element');this['container']=_0x3ceee8;}['_attachToContainer']({viewClass:_0x5b9266='',spaceBetweenItems:_0x9504cb=0x19}={}){if(!g(this['container']))throw new _0x1be892('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x5b9266,this['_spaceBetweenItems']=_0x9504cb;}['rearrange']({removedAnnotation:_0x5a3850,previousAnnotation:_0x2084fb,nextAnnotation:_0x2ed52c}){const _0x1bf9c8=this['getSidebarItemView'](_0x5a3850);this['view']['list']['remove'](_0x1bf9c8),this['_destroySidebarItemView'](_0x5a3850),_0x2084fb&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2084fb)),_0x2ed52c&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2ed52c)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x519bdf,activatedAnnotation:_0x28371a,disableAnimationOnActivatedAnnotation:_0x1235a}){if(this['_activeAnnotation']=_0x28371a,_0x519bdf){_0x519bdf['isActive']=!0x1;const _0x55f47f=this['getSidebarItemView'](_0x519bdf);_0x55f47f&&_0x1235a&&(_0x55f47f['isAnimationDisabled']=!0x1);}if(_0x28371a){const _0x35bb81=this['getSidebarItemView'](_0x28371a);_0x35bb81&&(_0x28371a['isActive']=!0x0,_0x1235a&&(_0x35bb81['isAnimationDisabled']=!0x0,_0x35bb81['top']+=0x1),this['_alignToTargetRect'](_0x35bb81));}}['_detachFromContainer'](_0x506d31){if(this['view']['element']['remove'](),_0x506d31){for(const _0x244319 of _0x506d31)this['_destroySidebarItemView'](_0x244319);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x10ebbb,_0x56eb2e){_0x56eb2e||(_0x56eb2e=_0x10ebbb['view']);const _0x10ee67=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x10ee67,_0x10ebbb),this['_annotationToSidebarItemView']['set'](_0x10ebbb,_0x10ee67),_0x10ee67['content']['add'](_0x56eb2e),this['listenTo'](_0x10ebbb['view'],'change:targetRect',(_0x565c92,_0x5ee647,_0x2f4222)=>{const _0xb037dd=this['_getTargetTop'](_0x10ebbb,_0x2f4222);_0x10ee67['_targetTop']!=_0xb037dd&&(_0x10ee67['_targetTop']=_0xb037dd,this['_setItemTop'](_0x10ee67,_0xb037dd));}),this['listenTo'](_0x10ee67,'change:top',()=>{this['_recalculate'](_0x10ee67,'top');}),this['listenTo'](_0x10ee67,'change:bottom',()=>{this['_recalculate'](_0x10ee67,'bottom');}),this['_alignToTargetRect'](_0x10ee67);const _0x203816=this['_getItemBefore'](_0x10ee67);if(_0x203816)this['_alignAfterItem'](_0x203816,_0x10ee67)||this['_alignToTargetRect'](_0x10ee67);else this['_alignToTargetRect'](_0x10ee67);return this['_updateLastItem'](),this['view']['list']['add'](_0x10ee67),_0x10ee67;}['_alignForTopChange'](_0x43fb0f){if(!_0x43fb0f['content']['length'])return;const _0x36e977=this['_getItemBefore'](_0x43fb0f);if(!_0x36e977)return;const _0x1c3c08=this['_sidebarItemViewToAnnotation']['get'](_0x36e977),_0x111340=this['_activeAnnotation'];_0x111340&&_0x111340===_0x1c3c08?this['_alignAfterItem'](_0x36e977,_0x43fb0f):this['_alignBeforeItem'](_0x43fb0f,_0x36e977);}['_alignForBottomChange'](_0x4b6371){if(!_0x4b6371['content']['length'])return;const _0x4b8ab6=this['_getItemAfter'](_0x4b6371);if(!_0x4b8ab6)return;const _0x213f7f=this['_sidebarItemViewToAnnotation']['get'](_0x4b8ab6),_0xf62cba=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x350fe5=this['_activeAnnotation'];_0x350fe5&&_0x350fe5===_0x213f7f&&_0xf62cba?(this['_alignBeforeItem'](_0x4b8ab6,_0x4b6371),this['_alignAfterItem'](_0x4b6371,_0x4b8ab6)):_0x350fe5&&_0x350fe5===_0x213f7f?this['_alignBeforeItem'](_0x4b8ab6,_0x4b6371):this['_alignAfterItem'](_0x4b6371,_0x4b8ab6);}['_recalculate'](_0x23fd99,_0x52cb3b){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x92ff1b,changedProp:_0x5e6a4f}of this['_recalculateBuffer'])'top'===_0x5e6a4f?this['_alignForTopChange'](_0x92ff1b):this['_alignForBottomChange'](_0x92ff1b);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x23fd99,'changedProp':_0x52cb3b});}['getSidebarItemView'](_0x9dd900){return this['_annotationToSidebarItemView']['get'](_0x9dd900);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2fe2ad){const _0xf02ac0=this['getSidebarItemView'](_0x2fe2ad);this['stopListening'](_0xf02ac0),this['stopListening'](_0x2fe2ad['view']),_0xf02ac0['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2fe2ad),this['_sidebarItemViewToAnnotation']['delete'](_0xf02ac0);}['_createSidebarView'](){const _0x420a01=new H(this['context']['locale']);return _0x420a01['render'](),this['on']('change:_lastItem',(_0x48e931,_0x3e10ab,_0x113df1,_0x1aa744)=>{_0x1aa744&&_0x420a01['unbind']('minHeight'),_0x113df1?_0x420a01['bind']('minHeight')['to'](_0x113df1,'bottom'):_0x420a01['minHeight']=null;}),_0x420a01;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3bd121){const _0x4a5d5d=this['_sidebarItemViewToAnnotation']['get'](_0x3bd121),_0x36c64d=_0x4a5d5d&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4a5d5d)-0x1);return _0x36c64d&&this['getSidebarItemView'](_0x36c64d)||null;}['_getItemAfter'](_0x35e837){const _0x5a82f4=this['_sidebarItemViewToAnnotation']['get'](_0x35e837),_0x16dc07=_0x5a82f4&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5a82f4)+0x1);return _0x16dc07&&this['getSidebarItemView'](_0x16dc07)||null;}['_alignBeforeItem'](_0x462731,_0x1daf32){_0x462731['updateHeight']();const _0x3df9b6=G(_0x1daf32['bottom']+this['_spaceBetweenItems'],_0x462731['top']);return!!_0x3df9b6&&(this['_setItemTop'](_0x1daf32,_0x1daf32['top']-_0x3df9b6),!0x0);}['_alignAfterItem'](_0x16d785,_0x13f0c4){_0x16d785['updateHeight']();const _0x262ebb=G(_0x16d785['bottom']+this['_spaceBetweenItems'],_0x13f0c4['top']);return!!_0x262ebb&&(this['_setItemTop'](_0x13f0c4,_0x13f0c4['top']+_0x262ebb,!0x1),!0x0);}['_alignToTargetRect'](_0x3310d4){const _0x1a5ab6=this['_sidebarItemViewToAnnotation']['get'](_0x3310d4);if(!_0x1a5ab6||!_0x1a5ab6['target']||!_0x1a5ab6['targetRect'])return;const _0x4ec188=this['_getTargetTop'](_0x1a5ab6,_0x1a5ab6['targetRect']);this['_setItemTop'](_0x3310d4,_0x4ec188);}['_getTargetTop'](_0x6bd44a,_0x30b25f){if(null===_0x30b25f)return 0x0;if(_0x6bd44a['target']instanceof _0x482e1e)return _0x30b25f['top'];{const _0x38174a=new _0x482e1e(this['view']['element'])['top'];return _0x30b25f['top']-_0x38174a;}}['_setItemTop'](_0x1f0a51,_0x14bef3,_0x421509=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x421509&&(_0x14bef3=Math['max'](_0x14bef3,this['_getMaxAvailableTop'](_0x1f0a51))),_0x1f0a51['top']=_0x14bef3;}['_getMaxAvailableTop'](_0x3775e1){let _0x16ed65=this['_getItemBefore'](_0x3775e1),_0x1e9c7e=0x0;for(;_0x16ed65;)_0x16ed65['updateHeight'](),_0x1e9c7e+=this['_spaceBetweenItems']+_0x16ed65['height'],_0x16ed65=this['_getItemBefore'](_0x16ed65);return _0x1e9c7e;}}function G(_0x185f31,_0x47ff3f){return Math['max'](_0x185f31-_0x47ff3f,0x0);}function g(_0x4fdc0c){return null!==_0x4fdc0c&&'object'==typeof _0x4fdc0c&&0x1===_0x4fdc0c['nodeType'];}class e extends _0x4427fc{['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(_0x3366d0){super(_0x3366d0),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x359f6f(),this['_refreshPositioningDebounced']=_0x4d37e2(()=>{_0x3366d0['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x11d470=this['context']['plugins']['get'](j),_0x27d576=this['context']['plugins']['get'](z);_0x11d470['register']('wideSidebar',this),_0x27d576['container']&&_0x11d470['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x260680){if(_0x260680===this['activeAnnotation'])return;const _0x384c95=this['context']['plugins']['get'](z);_0x384c95['_activeAnnotation']=_0x260680;const _0x28a82b=this['activeAnnotation'];_0x384c95['refresh']({'blurredAnnotation':_0x28a82b,'activatedAnnotation':_0x260680}),this['activeAnnotation']=_0x260680;}['attach'](_0xad9252){this['annotations']=_0xad9252;const _0x1039eb=this['context']['plugins']['get'](z);if(_0x1039eb['_annotations']=_0xad9252,this['isAttached'])throw new _0x1be892('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1039eb,'set:container',()=>{this['detach'](),this['listenTo'](_0x1039eb,'change:container',_0x498690=>{_0x498690['off'](),this['attach'](_0xad9252);});}),_0x1039eb['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3dc3d7=_0x119a56=>{_0x119a56['updateTargetRect'](),_0x1039eb['addAnnotation'](_0x119a56);};for(const _0x43577d of _0xad9252)_0x3dc3d7(_0x43577d);this['listenTo'](_0xad9252,'add',(_0x43b93f,_0x3113a9)=>{_0x3dc3d7(_0x3113a9);}),this['listenTo'](_0xad9252,'remove',(_0x24eef6,_0x16cd44,_0x3f1fa4)=>{_0x1039eb['rearrange']({'removedAnnotation':_0x16cd44,'previousAnnotation':_0xad9252['get'](_0x3f1fa4-0x1),'nextAnnotation':_0xad9252['get'](_0x3f1fa4+0x1)}),_0x16cd44===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0xad9252,'focus',(_0x8bc5e7,_0x1b19d9)=>{this['setActiveAnnotation'](_0x1b19d9);}),this['listenTo'](_0xad9252,'blur',()=>{this['setActiveAnnotation'](null);});const _0x1efdfb=this['context']instanceof _0x1819ae?this['context']['editors']:new _0x359f6f([this['context']]);for(const _0xfccaf7 of _0x1efdfb)this['_integrateWithEditorAnnotations'](_0xfccaf7);this['listenTo'](_0x1efdfb,'add',(_0x5cfbeb,_0x37f914)=>{this['listenTo'](_0x37f914,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x37f914);});}),this['listenTo'](_0x1efdfb,'remove',(_0x4fa726,_0x4fc468)=>{_0x4fc468['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4fc468['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x1be892('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1fdaf1=this['context']['plugins']['get'](z);_0x1fdaf1['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1fdaf1),this['stopListening'](this['annotations']),this['context']instanceof _0x1819ae&&this['stopListening'](this['context']['editors']);for(const _0x5a35de of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5a35de);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2f653b){if(!_0x2f653b['plugins']['has']('EditorAnnotations'))return;const _0xe7d1a9=_0x2f653b['plugins']['get']('EditorAnnotations'),_0x4116a7=()=>{const _0xb29f87=_0xe7d1a9['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0xb29f87[0x0]||null);};this['listenTo'](_0xe7d1a9,'refresh',_0x4116a7),this['listenTo'](_0xe7d1a9,'blur',(_0x38f428,{isAnnotationTracked:_0x29c485})=>{this['activeAnnotation']&&_0x29c485(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0xe7d1a9,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x5daf00=>{_0xe7d1a9['hasDomSelection']()&&(_0x4116a7(),_0x5daf00['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0xe7d1a9);}['_destroyEditorAnnotationsIntegration'](_0x1021ca){this['stopListening'](_0x1021ca),this['_editorAnnotations']['remove'](_0x1021ca);}}class C extends _0x235388{['counterView'];constructor(_0x477754){super(_0x477754);const _0x5b442d=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x388ad8,_0x4863d5)=>_0x388ad8?'...':_0x4863d5['toString']()),this['set']('annotationType',''),this['icon']=_0x3065db,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x5b442d['to']('annotationType',_0x1ce5bc=>'ck-annotation-counter__badge--'+_0x1ce5bc),_0x5b442d['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x5b442d['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x4427fc{['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(_0x2f4c48){super(_0x2f4c48),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x3bfb52())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x359f6f(),this['_refreshPositioningDebounced']=_0x4d37e2(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x1d7182(this['context']['locale']),this['balloonPanelView']=new _0x1c777c(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x2bc813){this['annotations']=_0x2bc813;const _0x40c5a2=this['context']['plugins']['get'](z),_0x33d609=this['balloonPanelView'];if(_0x40c5a2['_annotations']=_0x2bc813,this['isAttached'])throw new _0x1be892('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x40c5a2,'set:container',()=>{this['detach'](),this['listenTo'](_0x40c5a2,'change:container',_0x2b9247=>{_0x2b9247['off'](),this['attach'](_0x2bc813);});}),_0x40c5a2['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x37784b=_0xa5bc99=>{const _0x39e651=new C(this['context']['locale']);_0x40c5a2['addAnnotation'](_0xa5bc99,_0x39e651),this['_annotationToNarrowView']['set'](_0xa5bc99,_0x39e651),_0x39e651['bind']('isDirty','annotationType','number')['to'](_0xa5bc99['view'],'isDirty','type','length'),_0x39e651['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x33d609['content']['first']!==_0xa5bc99['view']?(this['_showBalloon'](_0xa5bc99),_0xa5bc99['view']['element']['focus'](),this['setActiveAnnotation'](_0xa5bc99)):this['setActiveAnnotation'](null);});};for(const _0x33c13d of _0x2bc813)_0x37784b(_0x33c13d);this['listenTo'](_0x2bc813,'add',(_0x502df8,_0x5b30a2)=>{_0x37784b(_0x5b30a2);}),this['listenTo'](_0x2bc813,'remove',(_0xe37158,_0x437950,_0x270005)=>{this['_annotationToNarrowView']['get'](_0x437950)['destroy'](),this['_annotationToNarrowView']['delete'](_0x437950),_0x40c5a2['rearrange']({'removedAnnotation':_0x437950,'previousAnnotation':_0x2bc813['get'](_0x270005-0x1),'nextAnnotation':_0x2bc813['get'](_0x270005+0x1)}),_0x437950===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x2bc813,'focus',(_0x23a927,_0x306f47)=>{this['setActiveAnnotation'](_0x306f47);}),this['listenTo'](_0x2bc813,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x2cb399,_0x1ac7a1)=>{_0x1ac7a1['keyCode']===_0x3d471d['esc']&&_0x33d609['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x33d609['content']['first']),this['_hideBalloon'](),_0x1ac7a1['stopPropagation'](),_0x1ac7a1['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x4d77d9,_0x42f147)=>{const _0xdb88cb=_0x42f147['target'];_0x33d609['isVisible']&&_0x33d609['element']['contains'](_0xdb88cb)||_0x40c5a2['view']['element']['contains'](_0xdb88cb)||_0x4d77d9['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x469d24=>_0x469d24['contains'](_0xdb88cb))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xdb93b2=this['context']instanceof _0x1819ae?this['context']['editors']:new _0x359f6f([this['context']]);for(const _0x514d4f of _0xdb93b2)this['_integrateWithEditorAnnotations'](_0x514d4f);this['listenTo'](_0xdb93b2,'add',(_0x287874,_0x385050)=>{this['listenTo'](_0x385050,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x385050);});}),this['listenTo'](_0xdb93b2,'remove',(_0x471340,_0x43d218)=>{_0x43d218['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x43d218['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x56aca4){if(_0x56aca4===this['activeAnnotation'])return;const _0x5daccf=this['context']['plugins']['get'](z);if(_0x5daccf['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x56aca4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x56aca4)_0x5daccf['getSidebarItemView'](_0x56aca4)?this['_showBalloon'](_0x56aca4):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x56aca4;}['detach'](){if(!this['isAttached'])throw new _0x1be892('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4249af=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x343655=>_0x343655['destroy']()),this['_annotationToNarrowView']['clear'](),_0x4249af['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x1819ae&&this['stopListening'](this['context']['editors']);for(const _0x3ed9fc of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3ed9fc);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'](_0x19eff3){if(!_0x19eff3['plugins']['has']('EditorAnnotations'))return;const _0x4ec7c6=_0x19eff3['plugins']['get']('EditorAnnotations'),_0x1b20cf=this['context']['plugins']['get'](z),_0x31bdb2=this['annotations'],_0x48a1fd=this['balloonPanelView'],_0x648bf3=()=>{const _0x2a7746=_0x4ec7c6['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2a7746),this['setActiveAnnotation'](_0x2a7746[0x0]||null);};this['listenTo'](_0x4ec7c6,'refresh',_0x648bf3),this['listenTo'](_0x4ec7c6,'blur',(_0x4891fd,{isAnnotationTracked:_0x56e859})=>{this['activeAnnotation']&&_0x56e859(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4ec7c6,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x31bdb2,'blur',_0xa2f7d7=>{_0x4ec7c6['hasDomSelection']()&&_0xa2f7d7['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1a5e49,_0x483494)=>{const _0x1f273b=_0x483494['target'];_0x48a1fd['isVisible']&&_0x48a1fd['element']['contains'](_0x1f273b)||_0x1b20cf['view']['element']['contains'](_0x1f273b)||this['activeAnnotation']&&_0x4ec7c6['hasDomSelection']()&&(_0x648bf3(),_0x1a5e49['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4ec7c6);}['_destroyEditorAnnotationsIntegration'](_0x1464de){_0x1464de&&(this['stopListening'](_0x1464de),this['_editorAnnotations']['remove'](_0x1464de));}['_setSelectedAnnotations'](_0x4f3404){for(const _0x3c670f of this['_selectedAnnotations'])_0x4f3404['includes'](_0x3c670f)||this['_manuallyClosedAnnotationViews']['delete'](_0x3c670f['view']);this['_selectedAnnotations']=_0x4f3404;}['_refreshPositioning'](){const _0x5ac714=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x5ac714['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x358623){if(this['_manuallyClosedAnnotationViews']['has'](_0x358623['view']))return;const _0x3c0071=this['balloonPanelView']['content']['first'];_0x3c0071!==_0x358623['view']?(_0x3c0071&&this['_detachListeners'](_0x3c0071),this['_attachListeners'](_0x358623['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x358623['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x321a12=this['balloonPanelView']['content']['first'],_0x37362d=_0x321a12&&this['annotations']['getByView'](_0x321a12);if(!_0x37362d||!this['_annotationToNarrowView']['has'](_0x37362d))return;const _0xa6ae3a=this['_annotationToNarrowView']['get'](_0x37362d)['element'],_0x37f85f=(function(){const _0x387230=_0x1c777c['defaultPositions'];return[_0x387230['southArrowNorthEast'],_0x387230['northArrowSouthEast'],_0x387230['southArrowNorth'],_0x387230['northArrowSouth'],_0x387230['southArrowNorthWest'],_0x387230['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0xa6ae3a,'positions':_0x37f85f});}['_hideBalloon'](){const _0x47e66c=this['balloonPanelView'],_0x1b1389=_0x47e66c['content']['first'];_0x1b1389&&(this['_detachListeners'](_0x1b1389),_0x47e66c['unpin'](),_0x47e66c['content']['clear']());}['_attachListeners'](_0x1c1267){this['listenTo'](_0x1c1267,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x1c1267,'Esc',(_0x424e46,_0x4b087c)=>{this['_manuallyClosedAnnotationViews']['add'](_0x1c1267),this['_hideBalloon'](),_0x4b087c();});}['_detachListeners'](_0x8d3255){this['stopListening'](_0x8d3255);}}class c extends _0x4aad6f{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x25f061,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x473517){super(_0x473517),_0x473517['editing']['view']['addObserver'](_0x4749c3),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x473517['plugins']['get'](_0x25f061),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x4d37e2(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x3a96d4=this['editor']['plugins']['get'](j);_0x3a96d4['context']===this['editor']&&(_0x3a96d4['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x214ad7,_0x47fd76)=>{const _0x4088b2=this['_balloon'];if(this['isAttached']&&_0x4088b2['visibleView']){const _0x9631e6=this['annotations']['getByView'](_0x4088b2['visibleView']);_0x9631e6&&this['_closeAnnotation'](_0x9631e6),_0x47fd76();}}));}['afterInit'](){const _0x5b5699=this['editor']['plugins']['get'](j);_0x5b5699['context']===this['editor']&&(_0x5b5699['hasActive']()||_0x5b5699['switchTo']('inline'));}['setActiveAnnotation'](_0x8ebb24){_0x8ebb24!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x8ebb24&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x8ebb24)&&this['_addAnnotationToBalloon'](_0x8ebb24,!0x0),_0x8ebb24['isActive']=!0x0),_0x8ebb24||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x8ebb24);}['attach'](_0x2127dc){this['annotations']=_0x2127dc;const _0x56aba4=this['editor']['plugins']['get'](j),_0x4c09bb=this['_balloon'];if(this['isAttached'])throw new _0x1be892('inlineannotations-attach-already-attached',this);if(_0x56aba4['context']!==this['editor'])throw new _0x1be892('inlineannotations-not-allowed-with-context',this);const _0x5cc1a0=this['editor']['plugins']['get'](b);this['listenTo'](_0x5cc1a0,'refresh',()=>{const _0x49bdef=_0x5cc1a0['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0xabdaf6,_0x38394d;!this['_forceRefresh']&&(_0xabdaf6=_0x49bdef,_0x38394d=this['_selectedAnnotations'],_0xabdaf6['length']===_0x38394d['length']&&_0xabdaf6['every'](_0x49ea9a=>_0x38394d['includes'](_0x49ea9a)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x49bdef),this['setActiveAnnotation'](_0x49bdef[0x0]||null));}),this['listenTo'](_0x5cc1a0,'blur',(_0x59ed19,{isAnnotationTracked:_0x5ddc38})=>{this['activeAnnotation']&&_0x5ddc38(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x5cc1a0,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x4dd83f,_0x5a7960,_0x1761ec)=>{_0x1761ec||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2127dc,'remove',(_0x121b3b,_0x40b286)=>{this['_removeAnnotationFromBalloon'](_0x40b286),_0x40b286===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4c09bb,'change:visibleView',(_0x5e3236,_0x35bd85,_0x3e67a6,_0x52605b)=>{_0x52605b&&this['stopListening'](_0x52605b);const _0x1f8219=_0x2127dc['getByView'](_0x3e67a6);_0x3e67a6&&_0x1f8219&&(this['listenTo'](_0x3e67a6,'change:height',()=>{_0x4c09bb['updatePosition']();}),this['listenTo'](_0x3e67a6,'Esc',()=>{this['_closeAnnotation'](_0x1f8219),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1f8219&&this['setActiveAnnotation'](_0x1f8219));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4c09bb['visibleView']&&(_0x2127dc['getByView'](_0x4c09bb['visibleView'])&&_0x4c09bb['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 _0x1be892('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x41bbd3 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x41bbd3);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x32e733){for(const _0x544f0e of this['_selectedAnnotations'])_0x32e733['includes'](_0x544f0e)||this['_manuallyClosed']['delete'](_0x544f0e);for(const _0x58db67 of this['annotations'])_0x32e733['includes'](_0x58db67)||this['_removeAnnotationFromBalloon'](_0x58db67);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x147981 of _0x32e733)this['_addAnnotationToBalloon'](_0x147981);}this['_selectedAnnotations']=_0x32e733;}['_addAnnotationToBalloon'](_0x4fa481,_0x30b0ab=!0x1){this['_manuallyClosed']['has'](_0x4fa481)||(this['_addedAnnotations']['has'](_0x4fa481)||this['_balloon']['hasView'](_0x4fa481['view'])||(this['_addedAnnotations']['add'](_0x4fa481),this['_balloon']['add']({'stackId':_0x4fa481['view']['id'],'view':_0x4fa481['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x4fa481)}})),_0x30b0ab&&this['_balloon']['showStack'](_0x4fa481['view']['id']));}['_getBalloonTargetForAnnotation'](_0x4b1f35){const _0x1b3156=_0x4b1f35['target'],_0x3fc65a=this['editor']['editing']['view'],_0x312d56=_0x3fc65a['document']['selection']['getFirstRange'](),_0x3a3d46=_0x3fc65a['domConverter']['viewRangeToDom'](_0x312d56);if(_0x3a3d46['collapse'](!0x0),_0x1b3156){if(_0x1b3156 instanceof _0x482e1e)return _0x1b3156;let _0xc0ac06=[];for(const _0x326bd5 of _0x1b3156)_0xc0ac06['push'](...F(_0x326bd5['getClientRects']()));_0xc0ac06=function(_0x22c475){const _0x163031=[];let _0xd04d55=_0x22c475[0x0];for(let _0x131d43=0x1;_0x131d43<_0x22c475['length'];_0x131d43++)P(_0xd04d55,_0x22c475[_0x131d43])?_0xd04d55['width']+=_0x22c475[_0x131d43]['width']:(_0x163031['push'](_0xd04d55),_0xd04d55=_0x22c475[_0x131d43]);return _0x163031['push'](_0xd04d55),_0x163031;}(_0xc0ac06);const _0x343ddd=_0x3a3d46['getBoundingClientRect']();return _0xc0ac06['find'](_0x2cb5be=>_0x2cb5be['top']<=_0x343ddd['top']&&_0x2cb5be['bottom']>=_0x343ddd['bottom']&&_0x2cb5be['left']<=_0x343ddd['left']&&_0x2cb5be['right']>=_0x343ddd['right'])||_0xc0ac06[0x0];}return _0x4b1f35['targetRect']||_0x3a3d46;}['_removeAnnotationFromBalloon'](_0x1cd590){this['_addedAnnotations']['has'](_0x1cd590)&&this['_balloon']['hasView'](_0x1cd590['view'])&&(this['_addedAnnotations']['delete'](_0x1cd590),this['_balloon']['remove'](_0x1cd590['view']));}['_closeAnnotation'](_0x1c7df9){this['_manuallyClosed']['add'](_0x1c7df9),this['_removeAnnotationFromBalloon'](_0x1c7df9);}}function F(_0x46021d){return Array['from'](_0x46021d)['map'](DOMRect['fromRect']);}function P(_0x414900,_0x2c94a2){return _0x414900['top']===_0x2c94a2['top']&&_0x414900['bottom']===_0x2c94a2['bottom']&&_0x414900['right']===_0x2c94a2['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1fb585,_0x3e6342){super(_0x1fb585),this['set']('isEmpty',!_0x3e6342['length']),this['focusTracker']=new _0x1b869f(),this['_annotationViews']=_0x3e6342,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0xba4b7f({'focusables':_0x3e6342,'focusTracker':this['focusTracker']}),this['listenTo'](_0x3e6342,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x3e6342,'remove',(_0x27bf66,_0x5e88c3)=>{_0x5e88c3['isActive']&&this['focus'](),_0x3e6342['length']||(this['isEmpty']=!0x0);});const _0x3eaa6f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x1fb585,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x3e6342},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x3eaa6f['if']('isEmpty','ck-hidden',_0x15b7fc=>!_0x15b7fc)]},'children':[{'text':N(_0x1fb585,'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 _0x2d5b8a of this['_annotationViews'])this['focusTracker']['add'](_0x2d5b8a['element']);this['_annotationViews']['on']('change',(_0x5b721d,{added:_0x2a2a56,removed:_0x4acc4c})=>{for(const _0x4aa678 of _0x2a2a56)this['focusTracker']['add'](_0x4aa678['element']);for(const _0x34ff8f of _0x4acc4c)this['focusTracker']['remove'](_0x34ff8f['element']);});}}class p extends _0x4427fc{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x5acf4a){super(_0x5acf4a),this['archivedThreads']=new _0x359f6f();}['init'](){const _0x301b1a=this['context'],_0x445906=_0x301b1a['plugins']['get'](o),_0x3cb94b=_0x301b1a['plugins']['get'](y);this['listenTo'](_0x445906,'addCommentThread',(_0x284c59,{threadId:_0x46a048})=>{const _0x4545f7=_0x445906['getCommentThread'](_0x46a048);_0x4545f7['archivedAt']&&this['archivedThreads']['add'](_0x4545f7,this['_calculatePosition'](_0x4545f7['archivedAt'])),this['listenTo'](_0x4545f7,'change:archivedAt',(_0xfb80ac,_0x55eaf8,_0x25ddb6)=>{_0x25ddb6?this['archivedThreads']['has'](_0x4545f7)||this['archivedThreads']['add'](_0x4545f7,this['_calculatePosition'](_0x4545f7['archivedAt'])):this['archivedThreads']['has'](_0x4545f7)&&this['archivedThreads']['remove'](_0x4545f7);});}),this['listenTo'](_0x445906,'removeCommentThread',(_0x2d9e85,{threadId:_0x51607f})=>{const _0x5dec1d=_0x445906['getCommentThread'](_0x51607f);this['stopListening'](_0x5dec1d),this['archivedThreads']['has'](_0x5dec1d)&&this['archivedThreads']['remove'](_0x5dec1d);},{'priority':'highest'}),this['listenTo'](_0x3cb94b['collection'],'focus',(_0x569e8f,_0x1d89cb)=>{_0x1d89cb['isVisible']||(_0x1d89cb['isActive']=!0x0,_0x3cb94b['activate'](_0x1d89cb));});}['_calculatePosition'](_0x438951){const _0x512b79=[...this['archivedThreads']]['findIndex'](_0x183a85=>_0x183a85['archivedAt']<_0x438951);return _0x512b79>-0x1?_0x512b79:this['archivedThreads']['length'];}}class a extends _0x4aad6f{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x350d3c];}constructor(_0x44288e){super(_0x44288e),this['annotationViews']=new _0x4b50a2(),this['_pendingThreads']=[];}['init'](){const _0x2c739a=this['editor'],_0x3bdff7=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x2c739a['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x235388,!0x0)),_0x2c739a['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2546bf=this['_createCommentsArchiveButton'](_0xba86ba);return _0x2546bf['set']({'role':'menuitemcheckbox'}),_0x2546bf;});const _0x8a43db=_0x2c739a['plugins']['get'](p),_0x4be75e=_0x2c739a['plugins']['get']('Annotations'),_0x378848=_0x2c739a['plugins']['get']('CommentsRepository');_0x8a43db['archivedThreads']['forEach'](_0x2dc628=>{this['_handleNewThread'](_0x2dc628);}),this['listenTo'](_0x8a43db['archivedThreads'],'add',(_0x301488,_0x2961ff)=>{this['_handleNewThread'](_0x2961ff);}),this['listenTo'](_0x4be75e['collection'],'add',(_0x153fc1,_0x57f9c8)=>{const _0x52d1e8=this['_pendingThreads']['find'](_0x5833fc=>{const _0x2e1e1b=_0x378848['_threadToController']['get'](_0x5833fc);return _0x2e1e1b&&_0x57f9c8['innerView']===_0x2e1e1b['view'];});if(_0x52d1e8){const _0x129775=this['_calculatePosition'](_0x52d1e8['archivedAt']);this['_addAnnotationToArchive'](_0x57f9c8,_0x129775),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x52d1e8),0x1);}}),this['listenTo'](_0x8a43db['archivedThreads'],'remove',(_0x29495c,_0x3b60c1)=>{const _0x352e67=_0x2c739a['config']['get']('collaboration.channelId');if(!_0x352e67||_0x3b60c1['channelId']===_0x352e67){if(this['_pendingThreads']['includes'](_0x3b60c1))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3b60c1),0x1);else{const _0x43a0f2=_0x378848['_threadToController']['get'](_0x3b60c1),_0x1f182d=_0x4be75e['getByInnerView'](_0x43a0f2['view']);this['annotationViews']['remove'](_0x1f182d['view']),this['stopListening'](_0x1f182d),this['stopListening'](_0x1f182d['focusableElements']);}}}),this['listenTo'](_0x4be75e['collection'],'add',(_0x1ca1c3,_0x466655)=>{this['listenTo'](_0x466655,'escape',_0x3bdff7);}),this['listenTo'](_0x4be75e['collection'],'remove',(_0x17c691,_0x372b39)=>{this['stopListening'](_0x372b39,'escape',_0x3bdff7);});}['_addAnnotationToArchive'](_0x2f2582,_0x6591b0){this['listenTo'](_0x2f2582,'set:isVisible',_0xe1ddc6=>{_0xe1ddc6['return']=!0x1,_0xe1ddc6['stop']();}),this['annotationViews']['add'](_0x2f2582['view'],_0x6591b0);}['_handleNewThread'](_0x48930a){const _0x25f8b3=this['editor']['plugins']['get']('CommentsRepository'),_0x11642b=this['editor']['plugins']['get']('Annotations'),_0x476c35=this['editor']['config']['get']('collaboration.channelId');if(!_0x476c35||_0x48930a['channelId']===_0x476c35){const _0x277535=_0x25f8b3['_threadToController']['get'](_0x48930a);if(!_0x277535)return void this['_pendingThreads']['push'](_0x48930a);const _0x5c0b2b=this['_calculatePosition'](_0x48930a['archivedAt']),_0x4c4f9c=_0x11642b['getByInnerView'](_0x277535['view']);_0x4c4f9c['isVisible']&&_0x11642b['_visibleAnnotations']['remove'](_0x4c4f9c),this['_addAnnotationToArchive'](_0x4c4f9c,_0x5c0b2b);}}['_calculatePosition'](_0x3dc778){const _0x20c576=this['editor']['config']['get']('collaboration.channelId'),_0x103e02=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x2fa5eb=>_0x2fa5eb['channelId']===_0x20c576)['findIndex'](_0xff1f40=>_0xff1f40['archivedAt']<_0x3dc778);return _0x103e02<0x0||_0x103e02>this['annotationViews']['length']?this['annotationViews']['length']:_0x103e02-0x1;}['_toggleDialog'](){const _0x52c7ad=this['editor'],_0x5c9f2e=_0x52c7ad['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x52c7ad['locale'],this['annotationViews'])),'commentsArchive'===_0x5c9f2e['id']?_0x5c9f2e['hide']():_0x5c9f2e['show']({'id':'commentsArchive','title':N(_0x52c7ad['locale'],'COMMENTS_ARCHIVE'),'icon':_0x231344,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x5b66b1['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x2a66ee,_0x1843f7=!0x1){const _0x15a658=this['editor']['locale'],_0x4a91d5=this['editor']['plugins']['get']('Dialog'),_0x4b3838=new _0x2a66ee(_0x15a658);return _0x4b3838['bind']('isEnabled')['to'](this,'isEnabled'),_0x4b3838['bind']('isOn')['to'](_0x4a91d5,'id',_0x594fb8=>'commentsArchive'===_0x594fb8),_0x4b3838['set']({'label':N(_0x15a658,'COMMENTS_ARCHIVE'),'icon':_0x231344,'isToggleable':!0x0}),_0x1843f7&&(_0x4b3838['tooltip']=!0x0),this['listenTo'](_0x4b3838,'execute',()=>this['_toggleDialog']()),_0x4b3838;}['_hideDialogOnAnnotationEscape']=_0x94a4fc=>{const _0x3daef7=_0x94a4fc['source'];if(!this['annotationViews']['has'](_0x3daef7['view']))return;const _0x17e249=this['editor']['plugins']['get']('Dialog');_0x17e249['isOpen']&&'commentsArchive'===_0x17e249['id']&&(_0x17e249['hide'](),_0x94a4fc['stop']());};}class gi extends _0x4aad6f{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 _0x3f6b93,ContextPlugin as _0x4bfeb4,PendingActions as lt,Command as _0x44e473,Plugin as _0x3d3386,Context as _0x2b5820}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x127aff,uid as _0x260e0b,KeystrokeHandler as jt,FocusTracker as _0x4e7aba,diff as _0x391c82,Collection as _0x242e1d,Rect as _0x5c3397,CKEditorError as _0x425354,first as _0x19b567,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x2c5617,keyCodes as _0x3c889a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x472009,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x3d0534,trimHtml as ts,LateFocusDropdownButtonView as _0x316adb,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x57d40e}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x4b297f}from'es-toolkit/compat';import{IconUndo as _0x2ec0bc,IconCheck as _0x29ca5f,IconPencil as _0x45ec97,IconRemoveComment as _0x114411,IconThreeVerticalDots as _0x1ac802,IconAddComment as _0x2853dc,IconCommentsArchive as _0xd8de89}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x540a82,ButtonView as _0x20f04f,ViewCollection as _0x15debb,createDropdown as _0x3140af,ListView as _0x3a0388,focusChildOnDropdownOpen as _0x5e9110,ListItemView as _0x2f9be3,MenuBarMenuListItemButtonView as _0x331cf1,BodyCollection as _0x50dec5,BalloonPanelView as _0x73c1ce,ContextualBalloon as _0x89ec3d,Dialog as _0x114f2b,DialogViewPosition as _0x2443a8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x5a2f6}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 _0x4ac5fe}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x4542ae}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x127aff(){['model'];['view'];constructor(_0xc368e8,_0xe2f0be){super(),this['model']=_0xc368e8,this['model']['_isAttached']=!0x0,this['view']=_0xe2f0be,this['listenTo'](_0xe2f0be,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0xe2f0be,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0xe2f0be,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0xe2f0be,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0xe2f0be,'addComment',(_0x151345,_0x32facd)=>this['addComment'](_0x32facd)),this['listenTo'](_0xe2f0be,'updateComment',(_0x4ee180,_0x13b736,_0x5c181e)=>this['updateComment'](_0x13b736,_0x5c181e)),this['listenTo'](_0xe2f0be,'removeComment',(_0x8c8ac3,_0xe817e0)=>this['removeComment'](_0xe817e0));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x4d2f51){this['model']['addComment']({'content':_0x4d2f51,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x22145b,_0x15bdbc){this['model']['getComment'](_0x22145b)['update']({'content':_0x15bdbc});}['removeComment'](_0x355642){this['model']['getComment'](_0x355642)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x237721,_0x1962f3,_0xfc8c4e){const t=_0x237721['t'];switch(_0x1962f3){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'},_0xfc8c4e);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'},_0xfc8c4e);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'},_0xfc8c4e);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'},_0xfc8c4e);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0xfc8c4e);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'},_0xfc8c4e);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'},_0xfc8c4e);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'},_0xfc8c4e);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(_0x39b403,_0x2f1f86){super(_0x39b403);const _0x45c8d9=_0x260e0b();this['main']=this['createCollection'](),this['editable']=new Vt(_0x39b403,_0x2f1f86,void 0x0,{'label':()=>N(_0x39b403,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x39b403['uiLanguageDirection'],'lang':_0x39b403['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x45c8d9},'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(_0x2bb862){super(_0x2bb862),this['view']=new Rt(_0x2bb862['locale'],_0x2bb862['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x222ebd=this['editor']['editing']['view'],_0x8f8e59=this['view']['editable'],_0x3b8f5c=_0x222ebd['document']['getRoot']();_0x8f8e59['name']=_0x3b8f5c['rootName'],this['view']['render']();const _0x12e11a=_0x8f8e59['element'];this['setEditableElement'](_0x8f8e59['name'],_0x12e11a),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x222ebd['attachDomRoot'](_0x12e11a),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x127aff(_0x3f6b93){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x5845a1={}){function _0x96c70f(_0x4b7273){return _0x4b7273['map'](_0x15cd79=>String['fromCharCode'](_0x15cd79))['join']('');}(_0x5845a1=Object['assign']({},_0x5845a1))['plugins']||(_0x5845a1['plugins']=hs['defaultPlugins']),super(_0x5845a1),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[_0x96c70f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x96c70f([0x76,0x69,0x65,0x77])][_0x96c70f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x96c70f([0x61,0x75,0x74,0x6f]),this[_0x96c70f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x96c70f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x96c70f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x96c70f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x96c70f([0x6f,0x6b])});}['create'](){const _0x2676b6=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x2676b6))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0xe9e876=>{const _0x362586=this['model']['document']['getRoot'](),_0x5989f=_0x362586&&_0x362586['getChild'](_0x362586['childCount']-0x1);_0xe9e876['setSelection'](_0x5989f,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x441585=this['editing']['view'],_0x49fda9=_0x441585['document']['getRoot'](),_0x42c913=_0x49fda9['getChild'](0x0);_0x49fda9['childCount']>0x1||!_0x42c913||'p'!=_0x42c913['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x441585,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x42c913['placeholder']=this['placeholder']),Ft({'view':_0x441585,'element':_0x42c913,'keepOnFocus':!0x0}),this['placeholderElement']=_0x42c913);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x16def2,_0x476f33={}){super(_0x16def2),this['editor']=null,this['_editorConfig']=_0x476f33,this['set']('value',_0x476f33['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x16def2,'Reply...')),this['set']('submitLabel',N(_0x16def2,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x4e7aba(),this['focusCycler']=new _0x540a82({'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',(_0x3bac99,_0x276f15)=>{this['cancelButtonView']['fire']('execute'),_0x276f15();}),this['keystrokes']['set']('Ctrl+Enter',(_0x2023c1,_0xb98933)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0xb98933());}),this['on']('submit',(_0x1634df,_0xc90006)=>{_0xc90006['length']>0xfde8?(alert(N(_0x16def2,'TOO_LONG_COMMENT_ALERT',[_0xc90006['length'],0xfde8])),_0x1634df['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 _0xf33acd=this['editor'];this['element']['insertBefore'](_0xf33acd['ui']['element'],this['element']['firstChild']),_0xf33acd['model']['document']['on']('change',()=>this['value']=_0xf33acd['getData']()),_0xf33acd['bind']('placeholder')['to'](this),this['focusables']['add'](_0xf33acd['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x25c98d){-0x1===_0x25c98d?(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:_0x5e42e3}=this,_0x3217df=new _0x20f04f(_0x5e42e3);return _0x3217df['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3217df['withText']=!0x0,_0x3217df['bind']('label')['to'](this,'submitLabel'),_0x3217df['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3217df['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xe80710,_0x2ef7aa)=>!_0x2ef7aa&&!!_0xe80710['trim']()),_0x3217df;}['_createCancelButton'](){const {locale:_0x5811fe}=this,_0x3cf531=new _0x20f04f(_0x5811fe);return _0x3cf531['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x3cf531['label']=N(_0x5811fe,'Cancel'),_0x3cf531['withText']=!0x0,_0x3cf531['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x3cf531;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4f4b78=>{this['focusTracker']['add'](_0x4f4b78['element']);}),this['focusables']['on']('change',(_0x169b77,_0xba3a21)=>{for(const _0x506ad0 of Array['from'](_0xba3a21['added'])['reverse']())this['focusTracker']['add'](_0x506ad0['element']);});}}class ie extends kt{constructor(_0x71f75e,_0x4cb5bb,_0x49a186){super(_0x71f75e),this['commentInputView']=new es(_0x71f75e,_0x49a186),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4f313b,_0x17c3e7)=>_0x4f313b||!!_0x17c3e7),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 _0x472009(_0x71f75e,_0x4cb5bb),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'](_0x36d2b6){this['commentInputView']['focus'](_0x36d2b6);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x1eca1f,_0x503a87)=>{const {submitButtonView:_0x16da2f,cancelButtonView:_0x102b15,editor:_0x31ee3d}=this['commentInputView'];[_0x16da2f['element'],_0x102b15['element'],_0x31ee3d?_0x31ee3d['editing']['view']['getDomRoot']():null]['filter'](_0x21a34a=>_0x21a34a)['some'](_0x19d034=>_0x19d034['contains'](_0x503a87['target']))||(this['focus'](),_0x503a87['preventDefault']());});}}class rs extends kt{constructor(_0x5014f8){super(_0x5014f8);const _0x4032bd=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4032bd['to']('count',_0x1052c3=>N(_0x5014f8,'NUMBER_OF_COMMENTS',_0x1052c3))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5281e5,_0x456df2,_0x161963){super(_0x5281e5);const _0x1b1d82=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x456df2['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x456df2,this['_config']=_0x161963,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4e7aba(),this['keystrokes']=new jt(),this['focusCycler']=new _0x540a82({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xe6bf84=>this['commentViews']['map'](_0x5211c0=>_0x5211c0['element'])['includes'](_0xe6bf84['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x5281e5),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x5ac783=>_0x5ac783-this['_config']['maxCommentsWhenCollapsed']);for(const _0x4b8bac of _0x456df2['comments'])this['_handleNewCommentModel'](_0x4b8bac);this['_handleInfoComment'](),this['listenTo'](_0x456df2['comments'],'add',(_0x5221c0,_0x497186)=>{const _0x1befe5=this['_calculatePosition'](_0x497186);this['length']++,this['_handleNewCommentModel'](_0x497186,_0x1befe5),this['refreshVisibleViews']();}),this['listenTo'](_0x456df2['comments'],'remove',(_0x20de09,_0x50b0ac)=>{this['length']--,this['_handleRemoveCommentModel'](_0x50b0ac),this['refreshVisibleViews']();}),this['listenTo'](_0x456df2,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x456df2,'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',_0x1b1d82['if']('length','ck-hidden',_0x5aa112=>!_0x5aa112)],'aria-label':N(_0x5281e5,'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'](_0x5a956a){-0x1===_0x5a956a?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x348f6b of this['commentViews'])_0x348f6b['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x543ba7,_0x204852){const _0x45d345=new this['_config']['CommentView'](this['locale'],_0x543ba7,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x45d345['viewUid']=_0x543ba7['id'],_0x45d345['delegate']('removeComment')['to'](this),_0x45d345['delegate']('updateComment')['to'](this),_0x45d345['delegate']('resolveCommentThread')['to'](this),_0x45d345['delegate']('editorReady')['to'](this),_0x45d345['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x45d345,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x45d345,_0x204852);}['_calculatePosition'](_0x504f39){const _0x1a6ad5=this['_model']['_findOptimalIndex'](_0x504f39);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x504f39['authoredAt']?_0x1a6ad5-0x1:_0x1a6ad5:_0x1a6ad5-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4ed3ac={'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'],_0x4ed3ac,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4ed3ac));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x585a2c){const _0x3b4184=this['commentViews']['remove'](_0x585a2c['id']);this['stopListening'](_0x3b4184),_0x3b4184['isEditMode']&&this['_updateHasDirtyComment'](),_0x3b4184['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x4ca833=>_0x4ca833['isEditMode']);}['_rearrangeCollapse'](){const _0x19f00a=function(_0x447aa4){const _0x1aa295=new _0x242e1d();for(const _0x1fba2b of _0x447aa4)_0x1aa295['add'](_0x1fba2b);return _0x1aa295;}(this['commentViews']),_0x5566f9=this['_collapsedCommentsView']['count'];for(let _0x471641=0x1;_0x471641<=_0x5566f9;_0x471641++)_0x19f00a['remove'](0x1);for(const _0x299a89 of _0x19f00a)_0x299a89['collapse']();_0x5566f9>0x0&&_0x19f00a['add'](this['_collapsedCommentsView'],0x1),ns(_0x391c82(Array['from'](this['visibleViews']),Array['from'](_0x19f00a)),this['visibleViews'],_0x19f00a);}['_rearrangeExpand'](){ns(_0x391c82(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x34c6ae of this['visibleViews'])_0x34c6ae['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x45609a=>{this['focusTracker']['add'](_0x45609a['element']),this['keystrokes']['listenTo'](_0x45609a['element']);}),this['commentViews']['on']('change',(_0x58466a,_0x3bec74)=>{for(const _0x9ecd03 of _0x3bec74['removed'])this['focusTracker']['remove'](_0x9ecd03['element']),this['keystrokes']['stopListening'](_0x9ecd03['element']);for(const _0x67dbd3 of Array['from'](_0x3bec74['added'])['reverse']())this['focusTracker']['add'](_0x67dbd3['element']),this['keystrokes']['listenTo'](_0x67dbd3['element']);});}}function ns(_0x474b31,_0x280406,_0x138d73){let _0x499fb6=0x0;for(const _0x4cc19b of _0x474b31)switch(_0x4cc19b){case'insert':_0x280406['add'](_0x138d73['get'](_0x499fb6),_0x499fb6),_0x499fb6++;break;case'delete':_0x280406['remove'](_0x499fb6);break;case'equal':_0x499fb6++;}}class oe extends kt{constructor(_0x3802ff){super(_0x3802ff);const _0x4cc835=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4cc835['to']('contextValue',_0x3c26e8=>N(_0x3802ff,'THREAD_CONTEXT_LABEL',_0x3c26e8)),'tabindex':-0x1},'children':[{'text':_0x4cc835['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x596d67,_0x42e85d){super(_0x596d67);const _0x28aed0=this['bindTemplate'];this['_model']=_0x42e85d,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4e7aba(),this['keystrokes']=new jt(),this['focusCycler']=new _0x540a82({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x5645db=>!!_0x5645db),this['bind']('contextValue')['to'](this['_model'],'context',_0x589172=>_0x589172&&_0x589172['value']?this['_trimContextValue'](_0x589172['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',_0x28aed0['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 _0x2f44f7=new _0x20f04f(this['locale']);return _0x2f44f7['label']=N(this['locale'],'Reopen'),_0x2f44f7['tooltip']=N(this['locale'],'Reopen'),_0x2f44f7['icon']=_0x2ec0bc,_0x2f44f7['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4b9fc0=>!_0x4b9fc0),_0x2f44f7['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x45beb6,_0x16c69f)=>_0x45beb6&&_0x16c69f),_0x2f44f7['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x2f44f7;}['_trimContextValue'](_0x2f0229){if(_0x2f0229['length']<0x96)return _0x2f0229;const _0x419833=_0x2f0229['lastIndexOf']('\x20',0x93);return _0x2f0229['substring'](0x0,_0x419833>-0x1?_0x419833:0x93)+'...';}['_attachContextActions'](){const _0x5a57c8=this['element']['querySelector']('.ck-context'),_0x2da981=_0x5a57c8['querySelector']('.ck-context__value');this['listenTo'](_0x5a57c8,'mouseenter',()=>{_0x2da981['offsetWidth']<_0x2da981['scrollWidth']&&_0x5a57c8['classList']['add']('overlay');}),this['listenTo'](_0x5a57c8,'mouseleave',()=>{_0x5a57c8['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x41660d of this['focusables'])this['focusTracker']['add'](_0x41660d['element']),this['keystrokes']['listenTo'](_0x41660d['element']);}['_createContextView'](){const _0x537108=new oe(this['locale']);return _0x537108['bind']('contextValue')['to'](this),_0x537108;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x28c99e,_0xacb518,_0x17ad22,_0x494817){super(_0x28c99e),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xacb518,this['_localUser']=_0x17ad22,this['_config']=_0x494817,this['commentThreadHeaderView']=new Xt(_0x28c99e,_0xacb518),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x28c99e,N(_0x28c99e,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x28c99e,_0xacb518,Object['assign']({'CommentView':this['_config']['CommentView']},_0x494817)),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',(_0x54a252,_0x12ab22)=>_0x54a252||!!_0x12ab22),this['bind']('isUnlinked')['to'](_0xacb518,'unlinkedAt',_0x18c612=>!!_0x18c612),this['bind']('ariaLabel')['to'](this,'length',_0x2a6e62=>{const _0x38daad=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x2a6e62,_0x38daad]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4e7aba(),this['keystrokes']=new jt(),this['focusCycler']=new _0x540a82({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x27349a=>_0x27349a['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 _0x22df29=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3d365a=_0x22df29['commentInputView'];return _0x22df29['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x3d365a,'value',(_0x841a55,_0x18eda1,_0x1611bb,_0x3e7479,_0x527db5)=>!!_0x527db5||!!_0x3e7479&&_0x1611bb&&!_0x18eda1||_0x841a55&&_0x1611bb&&!_0x18eda1),_0x3d365a['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x172f9c,_0x406de3,_0x56ede3)=>{let _0x529d9d;return _0x529d9d=_0x56ede3&&_0x406de3?'Reply\x20to\x20reopen\x20discussion...':_0x172f9c?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x529d9d);}),_0x3d365a['bind']('submitLabel')['to'](this,'length',_0x2fe337=>N(this['locale'],_0x2fe337?'Reply':'Comment')),_0x3d365a['on']('submit',(_0x32c526,_0x2f5537)=>{this['fire']('addComment',_0x2f5537),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x3d365a['on']('cancel',()=>{this['focus']();}),_0x3d365a['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3d365a['on']('cancel',_0x4654a2=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4654a2['stop']());}),this['on']('change:isActive',(_0x342b45,_0x3aa710,_0x3e55b1)=>{_0x3e55b1||this['length']||_0x3d365a['value']||this['fire']('removeCommentThread');}),_0x22df29;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x3d5878,_0x23670a,_0x524e24,_0x222a00){super(_0x3d5878,_0x23670a,_0x524e24,_0x222a00),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x3d5878,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2decb4,_0x51b712,_0x4c3aec)=>{_0x4c3aec||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x151bb8,_0x3dbbc4,_0x547bd4)=>{_0x547bd4&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x55f32f=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x55f32f['if']('isActive','ck-thread--active'),_0x55f32f['if']('isUnlinked','ck-thread--unlinked'),_0x55f32f['to']('actionIndicator',_0x7c193=>_0x7c193?'ck-thread--'+_0x7c193:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x55f32f['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 _0x3aa751 of this['commentsListView']['commentViews'])_0x3aa751['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x3e8cfe}=this,_0x1ebc49=this['commentsListView']['commentViews']['get'](0x0);_0x1ebc49===this['_boundFirstCommentView']||_0x1ebc49['isSystemComment']||(this['_boundFirstCommentView']=_0x1ebc49,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x1ebc49,'actionIndicator',_0x256bd5=>'remove'===_0x256bd5?'remove':null),_0x1ebc49['placeholder']=N(_0x3e8cfe,'Write\x20a\x20comment...'),_0x1ebc49['removeButton']['on']('execute',_0x5a7a3f=>{_0x5a7a3f['stop'](),this['showConfirm'](N(_0x3e8cfe,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x1ebc49['focus']();}),_0x1ebc49['actionBar']['add'](this['resolveButton'],0x0),_0x1ebc49['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x598925=new _0x3d0534(this['locale']);return _0x598925['label']=N(this['locale'],'Resolve'),_0x598925['tooltip']=N(this['locale'],'Resolve'),_0x598925['icon']=_0x29ca5f,_0x598925['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x598925['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x566a5d=>!_0x566a5d),_0x598925['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4846a5,_0x257736)=>_0x4846a5&&!_0x257736),_0x598925['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x598925;}['_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(_0x3798ca){super(_0x3798ca),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x3cda30,_0x30fd43,_0x2442cd)=>{this['element']['innerHTML']=_0x2442cd;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ccfcf,_0x54c413,_0x4e1d87){super(_0x3ccfcf),this['_model']=_0x54c413,this['_config']=_0x4e1d87,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x54c413,'content',_0x54c413,'authoredAt',(_0x4da95d,_0x288aed)=>N(_0x3ccfcf,'COMMENT_ARIA_LABEL',[_0x54c413['author']['name'],_0x4e1d87['formatDateTime'](_0x288aed),new DOMParser()['parseFromString'](_0x4da95d,'text/html')['body']['textContent'],_0x54c413['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x3ccfcf,N(_0x3ccfcf,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x15debb(),this['focusTracker']=new _0x4e7aba(),this['keystrokes']=new jt(),this['focusCycler']=new _0x540a82({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x26c3b5=>_0x26c3b5['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 _0x5ce3ef=new is(this['locale']);return _0x5ce3ef['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0xf7cd60,_0x1ff137)=>_0x1ff137?ts(_0xf7cd60,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0xf7cd60),_0x5ce3ef;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x4396de=new es(this['locale'],this['_config']['editorConfig']);return _0x4396de['value']=this['_model']['content'],_0x4396de['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4396de['submitLabel']=N(this['locale'],'Save'),_0x4396de['on']('submit',(_0x4dca1d,_0x4a57ca)=>{this['fire']('updateComment',this['_model']['id'],_0x4a57ca),this['switchToDisplayMode'](),this['focus']();}),_0x4396de['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x4396de['once']('editorReady',()=>{_0x4396de['focus']();}),_0x4396de['createEditor'](),_0x4396de['delegate']('editorReady')['to'](this),_0x4396de['delegate']('editorDestroyed')['to'](this),_0x4396de;}['_setupKeyboardNavigation'](){const _0x5a4060=this['element'];this['keystrokes']['listenTo'](_0x5a4060);for(const _0x175664 of this['focusables'])this['focusTracker']['add'](_0x175664['element']),this['keystrokes']['listenTo'](_0x175664['element']);this['focusables']['on']('change',(_0x27d725,_0x3bfa37)=>{for(const _0x14518b of _0x3bfa37['removed'])this['focusTracker']['remove'](_0x14518b['element']),this['keystrokes']['stopListening'](_0x14518b['element']);for(const _0x29cdff of _0x3bfa37['added'])this['focusTracker']['add'](_0x29cdff['element']),this['keystrokes']['listenTo'](_0x29cdff['element']);}),this['keystrokes']['set']('enter',(_0xa4cac3,_0x22bc56)=>{_0x5a4060===_0xa4cac3['target']&&(this['focusCycler']['focusFirst'](),_0x22bc56());}),this['keystrokes']['set']('esc',(_0x54601f,_0x247d88)=>{_0x5a4060!==_0x54601f['target']&&(this['focus'](),_0x247d88());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x231048,_0x221648,_0x252f2f){super(_0x231048,_0x221648,_0x252f2f),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x231048,'Reply...')),this['bind']('authoredAt')['to'](_0x221648),this['bind']('resolvedAt')['to'](_0x221648),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 _0x472009(_0x231048,_0x221648['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x221648,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5aeda7=this['bindTemplate'],_0x3c7001=[{'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':_0x5aeda7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5aeda7['to']('authoredAt',_0x58bee5=>this['_config']['formatDateTime'](_0x58bee5))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5aeda7['if']('isEditMode','ck-comment__actions--hidden'),_0x5aeda7['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']&&_0x3c7001['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x5aeda7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5aeda7['if']('isEditMode','ck-comment--edit'),_0x5aeda7['if']('isSystemComment','ck-comment--info'),_0x5aeda7['to']('actionIndicator',_0x25004c=>_0x25004c?'ck-comment--'+_0x25004c:'')],'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':_0x3c7001}]}]};}['_createEditButton'](){const _0x15e9c2=new _0x20f04f(this['locale']);return _0x15e9c2['label']=N(this['locale'],'Edit'),_0x15e9c2['icon']=_0x45ec97,_0x15e9c2['withText']=!0x0,_0x15e9c2['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x15e9c2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x11fb0d=>!_0x11fb0d),_0x15e9c2['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x15e9c2['on']('execute',()=>this['switchToEditMode']()),_0x15e9c2;}['_createRemoveButton'](){const _0x5ce8ac=new _0x20f04f(this['locale']);return _0x5ce8ac['label']=N(this['locale'],'Remove'),_0x5ce8ac['icon']=_0x114411,_0x5ce8ac['withText']=!0x0,_0x5ce8ac['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5ce8ac['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5a9cfb=>!_0x5a9cfb),_0x5ce8ac['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5ce8ac['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5ce8ac;}['_createDropdown'](){const _0x4560e6=_0x3140af(this['locale'],_0x316adb),_0x204c5a=_0x4560e6['panelView']['children'],_0x5ccec9=new _0x3a0388(this['locale']),_0x25c4c5=_0x4560e6['bindTemplate'];_0x5e9110(_0x4560e6,()=>this['items']['find'](_0x2252e7=>_0x2252e7['isVisible'])),_0x4560e6['extendTemplate']({'attributes':{'class':[_0x25c4c5['if']('isVisible','ck-hidden',_0x10488f=>!_0x10488f)]}});const _0x3b4b26=(_0x4b0938,_0x174d9c=-0x1)=>{const _0x7af25e=new _0x2f9be3(this['locale']);_0x7af25e['children']['add'](_0x4b0938);const _0x964709=_0x174d9c>-0x1?_0x174d9c:_0x5ccec9['items']['length'];_0x5ccec9['items']['add'](_0x7af25e,_0x964709);const _0xa3a522=Array['from'](this['items']);_0x4560e6['unbind']('isEnabled','isVisible'),_0x4560e6['bind']('isEnabled')['toMany'](_0xa3a522,'isEnabled',(..._0x4245e5)=>_0x4245e5['some'](_0x2323ee=>_0x2323ee)),_0x4560e6['bind']('isVisible')['toMany'](_0xa3a522,'isVisible',(..._0x131de2)=>_0x131de2['some'](_0x1176c2=>_0x1176c2));};_0x4560e6['panelPosition']='sw',_0x4560e6['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x1ac802});for(const _0x5a12ea of this['items'])_0x3b4b26(_0x5a12ea);return _0x204c5a['add'](_0x5ccec9),_0x4560e6['listenTo'](this['items'],'add',(_0x195b72,_0x328f5f,_0x543028)=>{_0x3b4b26(_0x328f5f,_0x543028);}),_0x4560e6['listenTo'](this['items'],'remove',(_0x64fc0b,_0x574b4c,_0x438d5d)=>{_0x5ccec9['items']['remove'](_0x438d5d);}),_0x4560e6;}['_attachActions'](_0x1b961a,_0x4df5fc){const _0x558d13=_0x1b961a&&_0x1b961a['element'];_0x558d13&&(this['listenTo'](_0x558d13,'mouseenter',()=>this['actionIndicator']=_0x4df5fc),this['listenTo'](_0x558d13,'focus',()=>this['actionIndicator']=_0x4df5fc),this['listenTo'](_0x558d13,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x558d13,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x51aa3f=super['_createCommentInputView']();return _0x51aa3f['bind']('placeholder')['to'](this),_0x51aa3f;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x5a06a0){const _0x5450ee=Dt(_0x5a06a0,0x1e),_0x110bce=new MutationObserver(_0x48da82=>{for(const _0x52c20a of _0x48da82)('attributes'==_0x52c20a['type']&&'class'==_0x52c20a['attributeName']||'childList'==_0x52c20a['type']||'characterData'==_0x52c20a['type'])&&_0x5450ee();});return{'attach'(_0x34a4a7){_0x110bce['observe'](_0x34a4a7,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x110bce['disconnect'](),_0x5450ee['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x3d6f78,_0x5cd68c){super(_0x3d6f78),this['id']=_0x260e0b(),this['focusTracker']=new _0x4e7aba(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x1e84f5,_0x462ace)=>this['fire']('Esc',_0x462ace)),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'](_0x5cd68c),this['mainView']=_0x5cd68c;const _0x2bb680=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2bb680['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 _0x17967a=this['element']['clientHeight'];_0x17967a&&(this['height']=_0x17967a);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x127aff(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x2534f5,target:_0x21fd4c,type:_0x5d4166,isVisible:_0x12573e=!0x0}){super(),this['view']=_0x2534f5,this['view']['element']||this['view']['render'](),this['_type']=_0x5d4166,this['_target']=_0x21fd4c,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x242e1d([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x602ab9,_0xef5cfe)=>{this['view']['focusTracker']['add'](_0xef5cfe);}),this['focusableElements']['on']('remove',(_0x5c404f,_0x521ddb)=>{this['view']['focusTracker']['remove'](_0x521ddb);}),this['set']('isVisible',_0x12573e);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1d4ba1=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x1d4ba1),_0x1d4ba1;}get['targetRect'](){const _0x256ea6=this['target'];if(null===_0x256ea6)return null;if(_0x256ea6 instanceof _0x5c3397)return _0x256ea6;const _0x21c996=_0x256ea6['filter'](_0x1ab006=>function(_0x1cea1f){const _0x527df9=_0x1cea1f['offsetParent'];if(_0x527df9)return!0x0;const _0x5cc399=_0x1cea1f['getClientRects']()['item'](0x0);return!!_0x5cc399;}(_0x1ab006));return 0x0===_0x21c996['length']?null:new _0x5c3397(_0x21c996[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x28ebf2){this['view']['isActive']=_0x28ebf2,this['view']['mainView']['isActive']=_0x28ebf2;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x441d1d){if(!(null===_0x441d1d||_0x441d1d instanceof _0x5c3397||Array['isArray'](_0x441d1d)&&_0x441d1d['every'](_0x207116=>fi(_0x207116))))throw new _0x425354('annotation-invalid-target',null,{'target':_0x441d1d});}['_getNormalizedTarget'](){const _0x5c5435='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x5c5435)?[_0x5c5435]:_0x5c5435;}}function fi(_0x47e222){return null!==_0x47e222&&'object'==typeof _0x47e222&&'nodeType'in _0x47e222&&0x1===_0x47e222['nodeType'];}class S extends _0x242e1d{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x3426c1=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4e7aba(),this['_focusTracker']['on']('change:isFocused',(_0x54eddd,_0x43609a,_0x4d80e2)=>{_0x4d80e2||this['fire']('blur');});for(const _0x589742 of _0x3426c1)this['add'](_0x589742);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x594536){if(this['has'](_0x594536))throw new _0x425354('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x594536['innerView'],_0x594536),this['_viewToAnnotation']['set'](_0x594536['view'],_0x594536);for(const _0x624cd3 of _0x594536['focusableElements'])this['_focusTracker']['add'](_0x624cd3);this['listenTo'](_0x594536['focusableElements'],'add',(_0x16f68f,_0x39d292)=>{this['_focusTracker']['add'](_0x39d292);}),this['listenTo'](_0x594536['focusableElements'],'remove',(_0x418062,_0x47382f)=>{this['_focusTracker']['remove'](_0x47382f);}),this['listenTo'](_0x594536['view']['focusTracker'],'change:isFocused',(_0x163602,_0x22f409,_0x22eecb)=>{_0x22eecb&&this['fire']('focus',_0x594536);}),_0x594536['updateTargetRect']();const _0x16eabc=this['_getOrderInContent'](_0x594536['view']['targetRect']);return super['add'](_0x594536,_0x16eabc);}['remove'](_0x4474af){if(!this['has'](_0x4474af))throw new _0x425354('annotationcollection-not-existing-item',null);this['stopListening'](_0x4474af['view']['focusTracker']),this['stopListening'](_0x4474af['focusableElements']);for(const _0x22844e of _0x4474af['focusableElements'])this['_focusTracker']['remove'](_0x22844e);return this['_viewToAnnotation']['delete'](_0x4474af['view']),this['_innerViewToAnnotation']['delete'](_0x4474af['innerView']),super['remove'](_0x4474af);}['getByInnerView'](_0x2115c3){return this['_innerViewToAnnotation']['get'](_0x2115c3);}['getByView'](_0x390d3b){return this['_viewToAnnotation']['get'](_0x390d3b);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5b038b of this)_0x5b038b['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2a2b7e=Array['from'](this)['sort']((_0x31de6e,_0x78620a)=>w(_0x31de6e['view']['targetRect'],_0x78620a['view']['targetRect']));for(let _0x399153=_0x2a2b7e['length']-0x1;_0x399153>0x0;_0x399153--){const _0x5a52bb=_0x2a2b7e[_0x399153];_0x399153!==this['getIndex'](_0x5a52bb)&&(this['remove'](_0x5a52bb),this['add'](_0x5a52bb));}}['_getOrderInContent'](_0x3735bf){let _0x2c8a90=0x0;if(!_0x3735bf)return this['length'];for(const _0x4cfd00 of this){const _0x391dfd=_0x4cfd00['view']['targetRect'];if(_0x391dfd){if(w(_0x3735bf,_0x391dfd)<0x0)return _0x2c8a90;_0x2c8a90++;}}return _0x2c8a90;}}function v({source:_0x355ba0,target:_0x28e588,filter:_0x57ada7}){for(const _0x48308f of _0x355ba0)_0x57ada7(_0x48308f)&&_0x28e588['add'](_0x48308f);_0x28e588['listenTo'](_0x355ba0,'add',(_0x3de77e,_0x4463a3)=>{_0x57ada7(_0x4463a3)&&_0x28e588['add'](_0x4463a3);}),_0x28e588['listenTo'](_0x355ba0,'remove',(_0x211b3a,_0x12f1b6)=>{_0x28e588['has'](_0x12f1b6)&&_0x28e588['remove'](_0x12f1b6);});}function w(_0x23a7af,_0x4b9965){if(null===_0x23a7af&&null===_0x4b9965)return 0x0;if(null===_0x23a7af)return-0x1;if(null===_0x4b9965)return 0x1;const _0x29f6b6=_0x23a7af['top']-_0x4b9965['top'];return 0x0==_0x29f6b6?_0x23a7af['left']-_0x4b9965['left']:_0x29f6b6;}class y extends _0x4bfeb4{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3161d9){if(super(_0x3161d9),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x3161d9 instanceof _0x3f6b93){const _0x111e80=_0x3161d9['locale'];_0x3161d9['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x111e80,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x111e80,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x111e80,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x111e80,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x111e80,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x111e80,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x111e80,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x56f31d){this['collection']['add'](_0x56f31d);}['remove'](_0x2f9de3){this['collection']['remove'](_0x2f9de3),_0x2f9de3['destroy']();}['refreshVisibility'](){for(const _0x1bbf5e of this['collection'])_0x1bbf5e['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x3b9db5){return this['collection']['getByInnerView'](_0x3b9db5);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1f9a10 of this['collection'])_0x1f9a10['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x4835ae){this['fire']('_activateAnnotation',_0x4835ae);}['createAnnotation'](_0x5e2095){return new T(_0x5e2095);}['createAnnotationView'](_0x1e0cee,_0x1db3b3){return new E(_0x1e0cee,_0x1db3b3);}['_addActiveAnnotation'](_0x3a3a2b){const _0x5a1d7f=new Set(this['activeAnnotations']);_0x5a1d7f['add'](_0x3a3a2b),this['activeAnnotations']=_0x5a1d7f;}['_removeActiveAnnotation'](_0x106c77){const _0x4cf7cc=new Set(this['activeAnnotations']);_0x4cf7cc['delete'](_0x106c77),this['activeAnnotations']=_0x4cf7cc;}['_bindAnnotationsToVisibleAnnotations'](){const _0x41b111=this['collection'],_0x408b07=this['_visibleAnnotations'];function _0x2041d5(_0xe9b0ba){const _0x33c1af=_0xe9b0ba['source'];_0x33c1af['isVisible']&&!_0x408b07['has'](_0x33c1af)?_0x408b07['add'](_0x33c1af):!_0x33c1af['isVisible']&&_0x408b07['has'](_0x33c1af)&&_0x408b07['remove'](_0x33c1af),_0x33c1af['view']['focusTracker']['remove'](_0x33c1af['view']['element']),_0x33c1af['view']['focusTracker']['add'](_0x33c1af['view']['element']);}this['listenTo'](_0x41b111,'add',(_0x4a1c60,_0x1159a1)=>{_0x1159a1['isVisible']&&_0x408b07['add'](_0x1159a1),this['listenTo'](_0x1159a1,'change:isVisible',_0x2041d5);}),this['listenTo'](_0x41b111,'remove',(_0xb40f3d,_0x2a1985)=>{_0x408b07['has'](_0x2a1985)&&_0x408b07['remove'](_0x2a1985),this['stopListening'](_0x2a1985,'change:isVisible',_0x2041d5);});}['_setupEnterAnnotationKeystroke'](){const _0x4e5ba1=_0x1b8816=>{_0x1b8816['on']('ready',()=>{_0x1b8816['keystrokes']['set'](_0x4ac5fe,(_0x4ef4c0,_0x295269)=>{const _0x47b89b=_0x19b567(this['activeAnnotations']['values']());_0x47b89b&&(_0x47b89b['view']['focus'](),_0x295269());});});};this['context']instanceof _0x3f6b93?_0x4e5ba1(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x45e822,_0x45aa64)=>{_0x4e5ba1(_0x45aa64);});}['_setupEscapeAnnotationHandling'](){const _0xc70462=_0x583078=>{const _0x495b99=_0x583078['source'],_0x5791cc=[];let _0xb32fe1;if(Array['isArray'](_0x495b99['target'])){_0xb32fe1=_0x495b99['target'][0x0],this['context']instanceof _0x3f6b93?_0x5791cc['push'](this['context']):this['context']['editors']&&_0x5791cc['push'](...this['context']['editors']);for(const _0x5e5e6b of _0x5791cc)for(const _0x5a13d1 of _0x5e5e6b['editing']['view']['domRoots']['values']())if(_0x5a13d1['contains'](_0xb32fe1))return void _0x5e5e6b['editing']['view']['focus']();_0xb32fe1['focus']();}};this['listenTo'](this['collection'],'add',(_0x2544ba,_0x4157a7)=>{this['listenTo'](_0x4157a7,'escape',_0xc70462,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x51eae5,_0x8a0b02)=>{this['stopListening'](_0x8a0b02,'escape',_0xc70462);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x4bfeb4{['_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(_0x29bc30){super(_0x29bc30),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x5fcfce=this['context']['config'];_0x5fcfce['define']('comments.maxCommentsWhenCollapsed',0x2),_0x5fcfce['define']('comments.maxThreadTotalWeight',0x1f4),_0x5fcfce['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x5fcfce['define']('comments.CommentThreadView',gt),_0x5fcfce['define']('comments.CommentView',Tt),_0x5fcfce['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x1f7817=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x30ac8c,_0x42db10)=>this['_addCommentThread'](_0x42db10)),this['on']('submitCommentThread',(_0x3367a1,_0x4bd778)=>this['_submitCommentThread'](_0x4bd778)),this['on']('resolveCommentThread',(_0x1d4bc8,_0x1e38e8)=>this['_resolveCommentThread'](_0x1e38e8)),this['on']('resolveCommentThread',(_0x53430f,_0x39b121)=>this['_updateActiveAnnotation'](_0x39b121),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x4a9035,_0x223189)=>this['_reopenCommentThread'](_0x223189)),this['on']('reopenCommentThread',(_0x49bb9a,_0x32336d)=>this['_updateActiveAnnotation'](_0x32336d),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x4fbe01,_0x5704f5)=>this['_removeCommentThread'](_0x5704f5)),this['on']('updateCommentThread',(_0x38d7ed,_0x780d65)=>this['_updateCommentThread'](_0x780d65)),this['on']('updateCommentThread',(_0x30e74f,_0x2e48b7)=>this['_updateActiveAnnotation'](_0x2e48b7),{'priority':'lowest'}),this['on']('addComment',(_0x5e5fc4,_0x323bd3)=>this['_addComment'](_0x323bd3)),this['on']('updateComment',(_0x4926af,_0xf59828)=>this['_updateComment'](_0xf59828)),this['on']('removeComment',(_0xbb32c1,_0x4f05ab)=>this['_removeComment'](_0x4f05ab)),this['on']('addComment',(_0x359e0f,{threadId:_0x72f94,isFromAdapter:_0x39cf14})=>{if(_0x39cf14)return;const _0x2b7c2f=this['getCommentThread'](_0x72f94),_0x46dc55=_0x2b7c2f&&this['_threadToController']['get'](_0x2b7c2f);_0x46dc55&&_0x46dc55['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x1f7817,'change:activeAnnotations',(_0xa7007b,_0x3dad9d,_0x5b2a3b)=>{const _0x446869=Array['from'](_0x5b2a3b)['map'](_0x4d9038=>this['_viewToController']['get'](_0x4d9038['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x446869?_0x446869['model']:null;});}set['adapter'](_0x239ad5){if(this['_adapter'])throw new _0x425354('commentsrepository-adapter-already-set');this['_adapter']=_0x239ad5;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x3001f7=_t,threadId:_0x5913c9=_0x260e0b(),comments:_0x8ecd7=[],unlinkedAt:_0xb4d7ec=null,resolvedAt:_0x5c7fd6=null,resolvedBy:_0x3da836=null,target:_0x11b35a=null,context:_0x2aaea8=null,attributes:_0x46c0bf={},isResolvable:_0x9fe40d=!0x0,isSubmitted:_0x13bf16=!0x1,isFromAdapter:_0xf7bf23=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x3001f7),{'channelId':_0x3001f7,'threadId':_0x5913c9,'comments':_0x8ecd7,'unlinkedAt':_0xb4d7ec,'resolvedAt':_0x5c7fd6,'resolvedBy':_0x3da836,'target':_0x11b35a,'context':_0x2aaea8,'attributes':_0x46c0bf,'isFromAdapter':_0xf7bf23,'isResolvable':_0x9fe40d,'isSubmitted':_0x13bf16}),this['getCommentThread'](_0x5913c9);}['openNewCommentThread']({channelId:_0x308d42=_t,threadId:_0x229847=_0x260e0b(),target:_0x4b1865,context:_0x1bbb68=null,isResolvable:_0x3b16bf=!0x0}){if(this['_readOnlyChannels']['has'](_0x308d42)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4b1865)throw new _0x425354('commentsrepository-missing-target');const _0xc42ba7=this['addCommentThread']({'channelId':_0x308d42,'threadId':_0x229847,'target':_0x4b1865,'context':_0x1bbb68,'isResolvable':_0x3b16bf});if(!_0xc42ba7)return null;const _0x5e2808=this['_threadToController']['get'](_0xc42ba7),_0x2b382b=_0x5e2808['view']['commentThreadInputView']['commentInputView'],_0x39a6f6=this['context']['plugins']['get'](y),_0x1e450b=_0x39a6f6['getByInnerView'](_0x5e2808['view']);return _0x39a6f6['activate'](_0x1e450b),_0x2b382b['once']('editorReady',()=>_0x2b382b['focus']()),_0xc42ba7;}['hasCommentThread'](_0x490005){if('string'!=typeof _0x490005)throw new _0x425354('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x490005);}['updateCommentThread']({channelId:_0x20ddc5=_t,threadId:_0xd842f1,context:_0x2191d4,unlinkedAt:_0x3f62fd,attributes:_0x31bd4f,isFromAdapter:_0x3911a3=!0x1}){return this['fire'](Nt('updateCommentThread',_0x20ddc5),{'channelId':_0x20ddc5,'threadId':_0xd842f1,'context':_0x2191d4,'unlinkedAt':_0x3f62fd,'attributes':_0x31bd4f,'isFromAdapter':_0x3911a3}),this['getCommentThread'](_0xd842f1);}['getCommentThread'](_0x2d51d4){if('string'!=typeof _0x2d51d4)throw new _0x425354('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2d51d4);}['fetchCommentThread']({channelId:_0x5762f3,threadId:_0x20efee}={}){const _0x23d866=this['getCommentThread'](_0x20efee);if(_0x23d866)return Promise['resolve'](_0x23d866);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x425354('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5762f3,'threadId':_0x20efee})['then'](_0x3b7d27=>this['hasCommentThread'](_0x20efee)?this['getCommentThread'](_0x20efee):_0x3b7d27?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5762f3},_0x3b7d27)):void 0x0)['catch'](_0x963a33=>{throw console['error'](_0x963a33),new _0x425354('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x3348b7,skipNotAttached:_0x482c90=!0x1,skipEmpty:_0x4d5757=!0x1,toJSON:_0x322a8c=!0x1}={}){const _0x3e2866=[];for(const _0x4370d1 of this['_threads']['values']())_0x3348b7&&_0x4370d1['channelId']!==_0x3348b7||_0x482c90&&!_0x4370d1['isAttached']||_0x4d5757&&0x0===_0x4370d1['length']||_0x3e2866['push'](_0x4370d1);return _0x322a8c?_0x3e2866['map'](_0x32595b=>_0x32595b['toJSON']()):_0x3e2866;}['getAnnotationForCommentThread'](_0xbad130){const _0x3d13e7=this['_threadToController']['get'](_0xbad130);if(!_0x3d13e7)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x3d13e7['view'])||null;}['getCommentThreadForAnnotation'](_0x5c8d75){const _0x57b7c4=this['_viewToController']['get'](_0x5c8d75['innerView']);return _0x57b7c4?_0x57b7c4['model']:null;}['setActiveCommentThread'](_0x1df1eb){const _0x167883=this['context']['plugins']['get'](y);if(!_0x1df1eb)return void(this['activeCommentThread']&&_0x167883['deactivateAll']());const _0x4188d8=this['getCommentThread'](_0x1df1eb);if(!_0x4188d8)throw new _0x425354('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x1df1eb});if(!this['_threadToController']['has'](_0x4188d8))throw new _0x425354('commentsrepository-active-not-attached',null,{'threadId':_0x1df1eb});const _0x511707=_0x167883['getByInnerView'](this['_threadToController']['get'](_0x4188d8)['view']);_0x167883['activate'](_0x511707);}['switchReadOnly'](_0x3388c0,_0x20191f){_0x3388c0?this['_readOnlyChannels']['add'](_0x20191f):this['_readOnlyChannels']['delete'](_0x20191f),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x15fb17){return this['_readOnlyChannels']['has'](_0x15fb17)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x3c313f,_0x147c86){return new vt(_0x3c313f,_0x147c86);}['setPermissions'](_0xf8a20b,_0x578a7c=_t){this['_permissions']['set'](_0x578a7c,_0xf8a20b),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3091b4=_t){return this['_permissions']['has'](_0x3091b4)?this['_permissions']['get'](_0x3091b4):bt;}['_addCommentThread']({channelId:_0x28afee,threadId:_0xe3b6e6,comments:_0x1044e7,unlinkedAt:_0x38b7b4,resolvedAt:_0x460a38,resolvedBy:_0x713101,target:_0x486232,context:_0x2aa437,attributes:_0x4f8b65,isFromAdapter:_0x28348d,isResolvable:_0x563e0c,isSubmitted:_0x499585}){if('string'!=typeof _0xe3b6e6)throw new _0x425354('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xe3b6e6});if(this['hasCommentThread'](_0xe3b6e6))throw new _0x425354('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0xe3b6e6});const _0x4431de=new pi(this,{'channelId':_0x28afee,'id':_0xe3b6e6,'context':_0x2aa437,'attributes':_0x4f8b65,'unlinkedAt':_0x38b7b4,'resolvedAt':_0x460a38,'resolvedBy':_0x713101?this['context']['plugins']['get'](it)['getUser'](_0x713101):null,'isResolvable':_0x563e0c,'isSubmitted':_0x499585||_0x28348d});this['_threads']['set'](_0xe3b6e6,_0x4431de);for(const _0x2a431a of _0x1044e7)_0x4431de['_add'](this['_createNewComment']({'threadId':_0xe3b6e6,..._0x2a431a}));return _0x486232&&_0x4431de['attachTo'](_0x486232),_0x28348d||!_0x4431de['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x28afee,'threadId':_0xe3b6e6});}['_submitCommentThread']({channelId:_0x5875b0,threadId:_0x18afc9}){if(!this['hasCommentThread'](_0x18afc9))throw new _0x425354('commentsrepository-missing-comment-thread',this);const _0x4a4122=this['getCommentThread'](_0x18afc9);if(_0x4a4122['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x354e47,comments:_0x49b105,resolvedAt:_0x37cc10,resolvedBy:_0x37bd01,context:_0x4f3977,attributes:_0x40abba}=_0x4a4122,_0x32088b=this['context']['plugins']['get']('PendingActions'),_0x1f74f0=_0x32088b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x5875b0,'threadId':_0x354e47,'comments':_0x49b105['map'](_0x413656=>_0x413656['toJSON']()),'resolvedAt':_0x37cc10,'resolvedBy':_0x37bd01?_0x37bd01['id']:_0x37bd01,'context':_0x4f3977,'attributes':_0x40abba})['then'](({comments:_0x400b33})=>{_0x32088b['remove'](_0x1f74f0);for(const _0x44d117 of _0x400b33)this['_updateComment']({'channelId':_0x5875b0,'threadId':_0x18afc9,'commentId':_0x44d117['commentId'],'createdAt':_0x44d117['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xfcc11b=>{throw console['error'](_0xfcc11b),new _0x425354('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x239233,target:_0x5ab59f}){const _0x50fc6c=this['getCommentThread'](_0x239233);if(!_0x50fc6c)throw new _0x425354('commentsrepository-attach-missing-comment-thread',this);const _0x1c3ee9=this['context']['plugins']['get']('PendingActions'),_0x13f40d=this['context']['plugins']['get'](y),_0x57ab3e=this['_createCommentThreadView'](_0x50fc6c),_0x53292d=new vt(_0x50fc6c,_0x57ab3e);let _0x12f79c=null;_0x57ab3e['on']('change:isDirty',(_0x34d447,_0x173719,_0x1efa9e)=>{_0x1efa9e?_0x12f79c=_0x1c3ee9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x12f79c&&(_0x1c3ee9['remove'](_0x12f79c),_0x12f79c=null);}),this['_threadToController']['set'](_0x50fc6c,_0x53292d),this['_viewToController']['set'](_0x57ab3e,_0x53292d);const _0x12743b=new E(this['context']['locale'],_0x57ab3e);_0x12743b['bind']('length')['to'](_0x57ab3e),_0x12743b['bind']('isDirty')['to'](_0x57ab3e,'isDirty',_0x57ab3e,'length',(_0x1f3f95,_0x31b38c)=>_0x1f3f95||!_0x31b38c),_0x12743b['bind']('isActive')['to'](_0x57ab3e),_0x12743b['type']='comment';const _0x46ae76=new T({'view':_0x12743b,'target':_0x5ab59f,'type':'comment','isVisible':!_0x50fc6c['archivedAt']&&!!('function'==typeof _0x5ab59f?_0x5ab59f():_0x5ab59f)});return _0x57ab3e['on']('escape',()=>{_0x46ae76['fire']('escape');}),this['_bindAnnotationToEditors'](_0x57ab3e,_0x46ae76),_0x13f40d['add'](_0x46ae76),_0x46ae76;}['_bindAnnotationToEditors'](_0x32155c,_0x54ea23){this['listenTo'](_0x32155c,'editorReady',(_0x487125,_0x15d9fc)=>{const _0x1ab835=_0x15d9fc['ui']['view']['body']['bodyCollectionContainer'];_0x54ea23['focusableElements']['add'](_0x1ab835),this['context']instanceof _0x3f6b93&&this['context']['ui']['focusTracker']['add'](_0x1ab835);},{'priority':'highest'}),this['listenTo'](_0x32155c,'editorDestroyed',(_0x25e935,_0x328acd)=>{const _0x691253=_0x328acd['ui']['view']['body']['bodyCollectionContainer'];_0x54ea23['focusableElements']['has'](_0x691253)&&_0x54ea23['focusableElements']['remove'](_0x691253),this['context']instanceof _0x3f6b93&&this['context']['ui']['focusTracker']['remove'](_0x691253);});}['_unbindEditors'](_0x435798){this['stopListening'](_0x435798,'editorReady'),this['stopListening'](_0x435798,'editorDestroyed');}['_createCommentThreadView'](_0x164d06){const _0x218882=this['context']['plugins']['get'](it),{config:_0x4b15be,locale:_0x2b1bee}=this['context'],_0x50ec98=pt(_0x4b15be['get']('locale'),_0x2b1bee);return new(0x0,(_0x4b15be['get']('comments'))['CommentThreadView'])(_0x2b1bee,_0x164d06,_0x218882['me'],{'editorConfig':{..._0x4b15be['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4b15be['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4b15be['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4b15be['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4b15be['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x50ec98,'CommentView':_0x4b15be['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x35ae53,channelId:_0x7e03ff,resolvedAt:_0x474bac,resolvedBy:_0x56045d,isFromAdapter:_0x384f78}){if(!this['hasCommentThread'](_0x35ae53))throw new _0x425354('commentsrepository-missing-comment-thread',null,{'threadId':_0x35ae53});const _0xf5fbc0=this['getCommentThread'](_0x35ae53);if(_0xf5fbc0['isResolved'])throw new _0x425354('commentsrepository-resolved-comment-thread',null,{'threadId':_0x35ae53});const _0x18a0ab=this['context']['plugins']['get'](it);if(_0xf5fbc0['resolvedBy']=_0x18a0ab['getUser'](_0x56045d),_0xf5fbc0['resolvedAt']=_0x474bac,_0x384f78||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x63671d=this['context']['plugins']['get']('PendingActions'),_0x5a786a=_0x63671d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x7e03ff,'threadId':_0x35ae53})['then'](({resolvedAt:_0x1e6898,resolvedBy:_0x212da8})=>{_0x63671d['remove'](_0x5a786a),_0xf5fbc0['resolvedBy']['id']!==_0x212da8&&(_0xf5fbc0['resolvedBy']=_0x18a0ab['getUser'](_0x212da8)),_0xf5fbc0['resolvedAt']=_0x1e6898;})['catch'](_0x206b44=>{throw console['error'](_0x206b44),new _0x425354('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x5accfc,channelId:_0xd8bf,isFromAdapter:_0x572162}){if(!this['hasCommentThread'](_0x5accfc))throw new _0x425354('commentsrepository-missing-comment-thread',null,{'threadId':_0x5accfc});const _0x193f66=this['getCommentThread'](_0x5accfc);if(!_0x193f66['isResolved'])throw new _0x425354('commentsrepository-reopen-comment-thread',null,{'threadId':_0x5accfc});if(_0x193f66['resolvedBy']=null,_0x193f66['resolvedAt']=null,_0x572162||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0xc080b5=this['context']['plugins']['get']('PendingActions'),_0x53c7c4=_0xc080b5['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0xd8bf,'threadId':_0x5accfc})['then'](()=>_0xc080b5['remove'](_0x53c7c4))['catch'](_0x3c57fb=>{throw console['error'](_0x3c57fb),new _0x425354('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x37ea2f,isFromAdapter:_0x271378}){const _0x36c91b=this['getCommentThread'](_0x37ea2f);if(!_0x36c91b)throw new _0x425354('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x37ea2f),this['_threads']['delete'](_0x37ea2f),!_0x36c91b['isSubmitted']||_0x271378||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5686c0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5c9b9c}=_0x36c91b,_0x22e40a=_0x5686c0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x5c9b9c,'threadId':_0x37ea2f})['then'](()=>_0x5686c0['remove'](_0x22e40a))['catch'](_0x472fe2=>{throw console['error'](_0x472fe2),new _0x425354('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x2025b8,unlinkedAt:_0x55cecc,context:_0x433693,attributes:_0x4d5f21,isFromAdapter:_0x2a8a1f}){if('string'!=typeof _0x2025b8)throw new _0x425354('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2025b8});if(!this['hasCommentThread'](_0x2025b8))throw new _0x425354('commentsrepository-missing-comment-thread',null,{'threadId':_0x2025b8});const _0x3f32b1=this['getCommentThread'](_0x2025b8);let _0x2b9d17=!0x1;if(void 0x0!==_0x433693&&_0x3f32b1['context']!==_0x433693&&(_0x3f32b1['context']=_0x433693,_0x2b9d17=!0x0),void 0x0!==_0x55cecc&&_0x3f32b1['unlinkedAt']!==_0x55cecc&&(_0x3f32b1['unlinkedAt']=_0x55cecc,_0x2b9d17=!0x0),_0x4d5f21&&!At(_0x4d5f21,_0x3f32b1['attributes'])&&(_0x3f32b1['attributes']=_0x4d5f21,_0x2b9d17=!0x0),!_0x2b9d17)return Promise['resolve']();if(!_0x3f32b1['isSubmitted']||_0x2a8a1f||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0xa23296=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1fafaa}=_0x3f32b1,_0x1062e1=_0xa23296['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1fafaa,'threadId':_0x2025b8,'context':_0x433693,'unlinkedAt':_0x55cecc,'attributes':_0x4d5f21})['then'](()=>_0xa23296['remove'](_0x1062e1))['catch'](_0x4cf349=>{throw console['error'](_0x4cf349),new _0x425354('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x52b9d5){const _0x504868=this['context']['plugins']['get'](y),_0x5e5c1e=this['getCommentThread'](_0x52b9d5);if(_0x5e5c1e['_isAttached']=!0x1,this['_threadToController']['has'](_0x5e5c1e)){const _0xc190bc=this['_threadToController']['get'](_0x5e5c1e),_0xd76218=_0xc190bc['view'],_0x5d067e=_0x504868['getByInnerView'](_0xd76218);this['_threadToController']['delete'](_0x5e5c1e),this['_viewToController']['delete'](_0xd76218),_0x5d067e&&_0x504868['remove'](_0x5d067e),_0xc190bc['destroy'](),_0xd76218['destroy']()['then'](()=>{this['_unbindEditors'](_0xd76218);});}}['_updateActiveAnnotation']({threadId:_0x519fd7,resolvedAt:_0x2cb912,unlinkedAt:_0x275591}){const _0x167f22=!!_0x2cb912,_0x3a8c8a=this['context']['plugins']['get'](y),_0x262b0f=this['getCommentThread'](_0x519fd7);if(this['_threadToController']['has'](_0x262b0f)){const _0x323118=this['_threadToController']['get'](_0x262b0f)['view'],_0x1299f8=_0x3a8c8a['getByInnerView'](_0x323118);_0x1299f8&&(_0x167f22&&_0x3a8c8a['_removeActiveAnnotation'](_0x1299f8),_0x275591?_0x1299f8['isVisible']=!0x1:_0x1299f8['refreshVisibility']());}}['_getExternalAuthor'](_0x390d8d){const _0x4f5652=this['context']['plugins']['get'](it),_0x1dc7e2=It('external:'+_0x390d8d),_0xbecf77=_0x4f5652['getUser'](_0x1dc7e2);return _0xbecf77||_0x4f5652['addUser']({'id':_0x1dc7e2,'name':_0x390d8d});}['_createNewComment']({threadId:_0x1e84a3,commentId:_0x4115e4=_0x260e0b(),content:_0x12bff4,authorId:_0x1da879,createdAt:_0x4d61d9,attributes:_0x567ba2}){if('string'!=typeof _0x4115e4)throw new _0x425354('commentsrepository-invalid-commentid');if('string'!=typeof _0x1da879)throw new _0x425354('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x12bff4||!_0x12bff4['trim']())throw new _0x425354('commentsrepository-invalid-comment-content');const _0x5bae8f=this['context']['plugins']['get'](it)['getUser'](_0x1da879);if(!_0x5bae8f)throw new _0x425354('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1da879});let _0x173ab6=null,_0x2df9fe=_0x4d61d9;return _0x567ba2?.['@external']&&(_0x173ab6=this['_getExternalAuthor'](_0x567ba2['@external']['authorName']),_0x2df9fe=new Date(_0x567ba2['@external']['createdAt'])),new wi(this,{'threadId':_0x1e84a3,'id':_0x4115e4,'author':_0x173ab6||_0x5bae8f,'creator':_0x5bae8f,'content':_0x12bff4,'createdAt':_0x4d61d9,'authoredAt':_0x2df9fe,'attributes':_0x567ba2});}['_addComment'](_0x5a2775){let {threadId:_0x60758a,content:_0x813520,attributes:_0x4dc171,isFromAdapter:_0x171fc9}=_0x5a2775;const _0x5b434d=this['getCommentThread'](_0x5a2775['threadId']);if(!_0x5b434d)throw new _0x425354('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x19e0b3=this['_createNewComment'](_0x5a2775),{id:_0x48254d}=_0x19e0b3;if(_0x5b434d['_add'](_0x19e0b3),_0x171fc9||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5b434d['isSubmitted'])return Promise['resolve']();const _0x2ae762=this['context']['plugins']['get']('PendingActions'),{channelId:_0x270dc0}=_0x5b434d,_0x41e299=_0x2ae762['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x4dc171||(_0x4dc171={}),this['adapter']['addComment']({'channelId':_0x270dc0,'threadId':_0x60758a,'commentId':_0x48254d,'content':_0x813520,'attributes':_0x4dc171})['then'](_0xd6fa94=>{_0x2ae762['remove'](_0x41e299),_0xd6fa94&&this['_updateComment']({'channelId':_0x270dc0,'threadId':_0x60758a,'commentId':_0x48254d,'createdAt':_0xd6fa94['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3808d8=>{throw console['error'](_0x3808d8),new _0x425354('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x4b38d4,commentId:_0x1d3053,content:_0x51be61,createdAt:_0x8d5c7e,attributes:_0x50d972,isFromAdapter:_0x54cd0f}){if(void 0x0!==_0x51be61&&('string'!=typeof _0x51be61||!_0x51be61['trim']()['length']))throw new _0x425354('commentsrepository-update-comment-invalid-content');const _0x32a7b7=this['getCommentThread'](_0x4b38d4),_0x15fdc5=_0x32a7b7['getComment'](_0x1d3053);if(!_0x15fdc5)throw new _0x425354('commentsrepository-update-missing-comment',this);let _0x3129bb=!0x1;if(_0x51be61&&_0x51be61!==_0x15fdc5['content']&&(_0x15fdc5['isEditable']||_0x54cd0f)&&(_0x15fdc5['content']=_0x51be61,_0x3129bb=!0x0),_0x8d5c7e&&_0x8d5c7e!==_0x15fdc5['createdAt']&&(_0x15fdc5['createdAt']=_0x8d5c7e,_0x15fdc5['attributes']&&_0x15fdc5['attributes']['@external']||(_0x15fdc5['authoredAt']=_0x8d5c7e),_0x3129bb=!0x0),_0x50d972&&!At(_0x50d972,_0x15fdc5['attributes'])&&(_0x15fdc5['attributes']=_0x50d972,_0x3129bb=!0x0),!_0x3129bb)return Promise['resolve']();if(_0x32a7b7['fire']('commentUpdated'),_0x54cd0f||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x3c9b4d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1fe132}=this['getCommentThread'](_0x15fdc5['threadId']),_0x41bc29=_0x3c9b4d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x1fe132,'threadId':_0x4b38d4,'commentId':_0x1d3053,'content':_0x51be61,'attributes':_0x50d972})['then'](()=>_0x3c9b4d['remove'](_0x41bc29))['catch'](_0x39b932=>{throw console['error'](_0x39b932),new _0x425354('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3f02b1,commentId:_0x3fe130,isFromAdapter:_0x5198c7}){const _0x2f6b96=this['getCommentThread'](_0x3f02b1),_0x193490=_0x2f6b96['getComment'](_0x3fe130);if(!_0x193490)throw new _0x425354('commentsrepository-remove-missing-comment',this);if(_0x2f6b96['_remove'](_0x193490),_0x5198c7||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x1902f6=this['context']['plugins']['get']('PendingActions'),{channelId:_0xaff7c1}=_0x2f6b96,_0x6e3dce=_0x1902f6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0xaff7c1,'threadId':_0x3f02b1,'commentId':_0x3fe130})['then'](()=>_0x1902f6['remove'](_0x6e3dce))['catch'](_0xb73716=>{throw console['error'](_0xb73716),new _0x425354('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x127aff(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x10c70d,_0x426dfc){super();const _0x1e1684=_0x426dfc['isResolvable'];this['channelId']=_0x426dfc['channelId'],this['id']=_0x426dfc['id'],this['comments']=new _0x242e1d(),this['_repository']=_0x10c70d,this['_isAttached']=!0x1,this['_isSubmitted']=_0x426dfc['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x10c70d,'_permissions',_0x10c70d,'_readOnlyChannels',()=>_0x10c70d['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x10c70d,'_permissions',()=>_0x10c70d['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x10c70d,'_permissions',()=>{const _0x1df3f2=_0x10c70d['getPermissions'](this['channelId']);return _0x1df3f2['write']||_0x1df3f2['admin'];}),this['bind']('isResolvable')['to'](_0x10c70d,'_permissions',()=>_0x1e1684&&_0x10c70d['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x426dfc['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1afc52,_0x1a991d)=>_0x1afc52?_0x1a991d?_0x1afc52<_0x1a991d?_0x1afc52:_0x1a991d:_0x1afc52:_0x1a991d),this['set']('unlinkedAt',_0x426dfc['unlinkedAt']||null),this['set']('resolvedAt',_0x426dfc['resolvedAt']||null),this['set']('resolvedBy',_0x426dfc['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x29bf89=>!!_0x29bf89),this['set']('attributes',_0x426dfc['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x25f182,_0x5edd71)=>_0x25f182+_0x5edd71['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x8b8614,id:_0x218b24}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x8b8614),{'channelId':_0x8b8614,'threadId':_0x218b24});}['setUnlinkedAt'](_0x4c8022){this['_update']({'unlinkedAt':_0x4c8022});}['resolve']({resolvedAt:_0x5de34d=new Date(),resolvedBy:_0x5ab12a='',isFromAdapter:_0x11ab85=!0x1}={}){const _0x2b1e94=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x352c98,id:_0x531a31}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x352c98),{'channelId':_0x352c98,'threadId':_0x531a31,'resolvedAt':_0x5de34d,'resolvedBy':_0x5ab12a||_0x2b1e94['id'],'isFromAdapter':_0x11ab85});}['reopen']({isFromAdapter:_0x4fcd8d=!0x1}={}){const {channelId:_0x566d8b,id:_0x5a3fc6}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x566d8b),{'channelId':_0x566d8b,'threadId':_0x5a3fc6,'isFromAdapter':_0x4fcd8d});}['setContext'](_0x22401a){this['context']||this['_update']({'context':_0x22401a});}['setAttribute'](_0xd521b7,_0x172cd6){const _0x5dfdcf=wt(this['attributes']);yt(_0x5dfdcf,_0xd521b7,_0x172cd6),this['_update']({'attributes':_0x5dfdcf});}['removeAttribute'](_0x99b6d){const _0x3d62cb=wt(this['attributes']);Ct(_0x3d62cb,_0x99b6d),this['_update']({'attributes':_0x3d62cb});}['remove']({isFromAdapter:_0x418258=!0x1}={}){const {channelId:_0x230fad,id:_0x2f7f30}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x230fad),{'channelId':_0x230fad,'threadId':_0x2f7f30,'isFromAdapter':_0x418258});}['attachTo'](_0x23a4dd){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x23a4dd});}['addComment'](_0x451f6f){const {channelId:_0x1cf8d3,id:_0x799aab}=this;this['_repository']['fire'](Nt('addComment',_0x1cf8d3,_0x799aab),Object['assign']({'channelId':_0x1cf8d3,'threadId':_0x799aab},_0x451f6f));}['getComment'](_0x20bb60){if('string'!=typeof _0x20bb60)throw new _0x425354('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x20bb60});return this['comments']['get'](_0x20bb60);}['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'](_0x582008=>_0x582008['toJSON']()),'attributes':this['attributes']};}['_add'](_0x2bd671){return this['listenTo'](_0x2bd671,'change:authoredAt',()=>{const _0x16cc72=this['_findOptimalIndex'](_0x2bd671),_0x52b402=this['comments'];_0x16cc72-0x1!=_0x52b402['getIndex'](_0x2bd671)&&_0x16cc72+0x1!=_0x52b402['getIndex'](_0x2bd671)&&(this['_remove'](_0x2bd671),this['_add'](_0x2bd671));}),this['comments']['add'](_0x2bd671,this['_findOptimalIndex'](_0x2bd671));}['_update'](_0x355b09){const {channelId:_0x547833,id:_0x41a841}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x547833),{..._0x355b09,'channelId':_0x547833,'threadId':_0x41a841});}['_remove'](_0x29bc23){return this['stopListening'](_0x29bc23),_0x29bc23['destroy'](),this['comments']['remove'](_0x29bc23);}['_findOptimalIndex'](_0x3d26e6){const _0x59f02d=this['comments']['find'](_0xf0141e=>new Date(_0xf0141e['authoredAt'])['getTime']()>new Date(_0x3d26e6['authoredAt'])['getTime']());return _0x59f02d?this['comments']['getIndex'](_0x59f02d):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x127aff(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x10f4d8,_0x3489dd){super();const _0x3b5137=_0x10f4d8['context']['plugins']['get'](it)['me'],_0xb9da22=_0x10f4d8['getCommentThread'](_0x3489dd['threadId']),_0x5b36af=0x0===_0xb9da22['comments']['length'],_0x956b3c=_0x3b5137===_0x3489dd['author'];this['id']=_0x3489dd['id'],this['threadId']=_0x3489dd['threadId'],this['author']=_0x3489dd['author'],this['creator']=_0x3489dd['creator'],this['isExternal']=Boolean(_0x3489dd['attributes']&&_0x3489dd['attributes']['@external']),this['set']('content',_0x3489dd['content']),this['createdAt']=_0x3489dd['createdAt']||new Date(),this['set']('authoredAt',_0x3489dd['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0xb9da22,'resolvedAt'),this['set']('attributes',_0x3489dd['attributes']||{}),this['bind']('isEditable')['to'](_0x10f4d8,'_permissions',()=>{const _0x187c56=_0x10f4d8['getPermissions'](_0xb9da22['channelId'])['write'],_0x25c05b=_0x10f4d8['getPermissions'](_0xb9da22['channelId'])['modifyAll'];return _0x956b3c&&_0x187c56||!_0x956b3c&&_0x25c05b;}),this['bind']('isRemovable')['to'](_0xb9da22,'isRemovable',_0x10f4d8,'_permissions',_0x3c3fda=>{const _0x2e7a5f=_0x10f4d8['getPermissions'](_0xb9da22['channelId'])['write'],_0x313e2d=_0x10f4d8['getPermissions'](_0xb9da22['channelId'])['modifyAll'];return _0x956b3c&&_0x2e7a5f||_0x3c3fda&&_0x5b36af||!_0x956b3c&&_0x313e2d&&!_0x5b36af;}),this['bind']('isReadOnly')['to'](_0xb9da22,'isReadOnly'),this['_repository']=_0x10f4d8;}get['weight'](){return Math['max'](function(_0x4641bd){const _0x126636=document['createElement']('div');return _0x126636['innerHTML']=_0x4641bd,_0x126636['textContent']['length'];}(this['content']),0xc8);}['update'](_0x46caef){const {threadId:_0x48307c,id:_0x5b4cc7}=this;if(!this['_repository']['hasCommentThread'](_0x48307c))throw new _0x425354('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x40eb48}=this['_repository']['getCommentThread'](_0x48307c);this['_repository']['fire'](Nt('updateComment',_0x40eb48,_0x48307c),{'channelId':_0x40eb48,'threadId':_0x48307c,'commentId':_0x5b4cc7,..._0x46caef});}['setAttribute'](_0x1defb8,_0x3b9590){const _0x10ec90=wt(this['attributes']);yt(_0x10ec90,_0x1defb8,_0x3b9590),this['update']({'attributes':_0x10ec90});}['removeAttribute'](_0x56febb){const _0x4a0960=wt(this['attributes']);Ct(_0x4a0960,_0x56febb),this['update']({'attributes':_0x4a0960});}['remove'](_0x48a6fb={}){if(!_0x48a6fb['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x1a34cd,id:_0x5a098d}=this;if(!this['_repository']['hasCommentThread'](_0x1a34cd))throw new _0x425354('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0xb804d6}=this['_repository']['getCommentThread'](_0x1a34cd);this['_repository']['fire'](Nt('removeComment',_0xb804d6,_0x1a34cd),{'channelId':_0xb804d6,'threadId':_0x1a34cd,'commentId':_0x5a098d,..._0x48a6fb});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x45f842,..._0x5c6660){for(const _0x484956 of _0x5c6660)void 0x0!==_0x484956&&(_0x45f842+=':'+String(_0x484956));return _0x45f842;}class ot extends _0x44e473{constructor(_0x21fd90){super(_0x21fd90),this['set']('hasContent',!0x1);}['refresh'](){const _0x248693=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x19aa77 of _0x248693['getRanges']())if(this['_hasContent'](_0x19aa77))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x4181dc=_0x260e0b(),ranges:_0x48b806,comment:_0xd265d2}={}){const _0x4135e3=this['editor']['model'],_0x4fa7e5=_0x48b806??Array['from'](_0x4135e3['document']['selection']['getRanges']()),_0x2fe0ed=[];for(const _0x555534 of _0x4fa7e5)this['_hasContent'](_0x555534)&&_0x2fe0ed['push'](this['_trimToContent'](_0x555534));if(!_0x2fe0ed['length'])throw new _0x425354('addcommentthreadcommand-incorrect-ranges',null);_0xd265d2&&this['_createCommentThread'](_0x4181dc,_0xd265d2),this['_createMarkersFromRanges'](_0x4181dc,_0x2fe0ed,!!_0xd265d2);}['_createMarkersFromRanges'](_0x29bd70,_0x1dbf83,_0x262730){this['editor']['model']['change'](_0x1001d5=>{for(const _0x23736e of _0x1dbf83){const _0x4dadda=_0x260e0b()['substr'](0x1,0x5),_0x2ac1ff='comment:'+_0x29bd70+':'+_0x4dadda;_0x1001d5['addMarker'](_0x2ac1ff,{'range':_0x23736e,'usingOperation':_0x262730,'affectsData':_0x262730});}});}['_createCommentThread'](_0x254a3b,_0xca3472){const _0x4a66e7=this['editor']['plugins']['get']('CommentsRepository'),_0x1390e8=this['editor']['config']['get']('collaboration.channelId'),_0x3a1fe6=this['editor']['plugins']['get']('Users')['me'];if(!_0x3a1fe6)throw new _0x425354('addcommentthreadcommand-user-not-found',null);_0x4a66e7['addCommentThread']({'threadId':_0x254a3b,'channelId':_0x1390e8,'comments':[{'authorId':_0x3a1fe6['id'],'content':_0xca3472,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x361664){for(const _0x5490c4 of _0x361664['getItems']())if(this['_itemIsContent'](_0x5490c4))return!0x0;return!0x1;}['_itemIsContent'](_0x242d1a){return _0x242d1a['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x242d1a)&&!_0x242d1a['is']('element','tableCell');}['_trimToContent'](_0x1c10b0){const _0xe4197a=_0x1506c5=>!this['_itemIsContent'](_0x1506c5['item']),_0x341a1f=_0x1c10b0['start']['getLastMatchingPosition'](_0xe4197a),_0x495fda=_0x1c10b0['end']['getLastMatchingPosition'](_0xe4197a,{'direction':'backward'});return this['editor']['model']['createRange'](_0x341a1f,_0x495fda);}}class b extends _0x3d3386{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd9b7ab){super(_0xd9b7ab),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0xb004a5=this['editor'],_0x2616b3=_0xb004a5['model']['document']['selection'],_0x4ede55=_0x4b297f(()=>this['refreshSelectedViews'](),0xa);_0x2616b3['on']('change:range',(_0x1af3f8,_0x1fa9d4)=>{_0x1fa9d4['directChange']&&(_0x4ede55['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0xb004a5['editing']['view']['document'],'change:isFocused',(_0x1ca381,_0x1b9f10,_0xfe8fdd)=>{_0xfe8fdd&&_0x4ede55();}),this['listenTo'](_0xb004a5['ui']['focusTracker'],'change:isFocused',(_0x1fa568,_0x218fc0,_0x710517)=>{_0x710517||this['fire']('blur',{'isAnnotationTracked':_0x11a3d3=>this['_editorAnnotationsData']['has'](_0x11a3d3['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x289b22){if(this['_editorAnnotations']['has'](_0x289b22['view']))return;this['_editorAnnotations']['add'](_0x289b22['view']),this['editor']['ui']['focusTracker']['add'](_0x289b22['view']['element']);const _0x1e9a03=this['editor']['plugins']['get'](y);this['listenTo'](_0x1e9a03['collection'],'remove',(_0x151db0,_0x38a1a3)=>{this['editor']['ui']['focusTracker']['remove'](_0x38a1a3['view']['element']),this['_editorAnnotations']['delete'](_0x38a1a3['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x2af067){if('function'!=typeof _0x2af067)throw new _0x425354('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x2af067);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x29e75f,annotations:_0x39c4d8}){const _0x24c9a4=[],_0x478938=this['editor']['model']['document']['selection'],_0x33d7a1=Array['from'](_0x478938['getRanges']());for(const [_0x1e1b80,_0x1077c7]of this['_editorAnnotationsData']){const _0x487cdc=_0x13820e(_0x1077c7),_0x1c29b3=_0x39c4d8['getByInnerView'](_0x1e1b80);_0x487cdc&&_0x1c29b3&&_0x24c9a4['push']({'annotation':_0x1c29b3,'range':_0x487cdc});}function _0x13820e(_0x37c604){for(const _0x39a1cc of _0x37c604)for(const _0x3e6eb7 of _0x33d7a1)if(_0x39a1cc['containsRange'](_0x3e6eb7,!_0x478938['isCollapsed']))return _0x39a1cc;return null;}return _0x24c9a4['sort']((_0x59468c,_0x38772f)=>{const _0x241243=_0x59468c['range'],_0xb24a9a=_0x38772f['range'];if(!_0x241243['isEqual'](_0xb24a9a)){if(_0x241243['containsRange'](_0xb24a9a,!0x0))return 0x1;if(_0xb24a9a['containsRange'](_0x241243,!0x0))return-0x1;}return _0x59468c['annotation']==_0x29e75f?-0x1:_0x38772f['annotation']==_0x29e75f?0x1:0x0;})['map'](_0x4a61c6=>_0x4a61c6['annotation']);}get['_editorAnnotationsData'](){const _0x2d4013=new Map();for(const _0x160c44 of Array['from'](this['_dataCollectors']))for(const [_0x2b82e6,_0x1600d4]of _0x160c44())_0x2d4013['set'](_0x2b82e6,_0x1600d4);return _0x2d4013;}}class st extends _0x3d3386{['afterInit'](){const _0x46c6c8=this['editor'];if(!_0x46c6c8['plugins']['has']('RestrictedEditingModeEditing'))return;_0x46c6c8['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3d3386{constructor(_0x4578df){super(_0x4578df),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x571d8a=this['editor'],_0x3d60e8=_0x571d8a['commands']['get']('importWord'),_0x2b73a9=_0x571d8a['plugins']['get'](it);_0x3d60e8&&(_0x3d60e8['on']('execute',(_0x5cae00,[,_0x13cee6])=>{_0x13cee6['collaboration_features']={'comments':!0x0,'user_id':_0x2b73a9['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3d60e8,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x1c4304,_0x4fd96f){const {comment_threads:_0x1ebb17}=_0x4fd96f;_0x1ebb17&&_0x1ebb17['forEach'](({thread_id:_0x1cc285,comments:_0x5d659d,is_resolved:_0x3a4c90})=>{const _0x4c6e51=new Date(),_0x1d44a6=_0x5d659d['map'](({author:_0x5cfa12,content:_0x3ab711,created_at:_0xf542e0})=>({'content':_0x3ab711,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x4c6e51,'attributes':{'@external':{'authorName':_0x5cfa12,'createdAt':_0xf542e0?new Date(_0xf542e0):new Date(),'source':'importWord'}}})),_0x378913=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x378913,'threadId':_0x1cc285,'comments':_0x1d44a6,'resolvedAt':_0x3a4c90?_0x4c6e51:null});});}}class at extends _0x3d3386{constructor(_0x1c2c52){super(_0x1c2c52),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x11cd3a=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x11cd3a,'contentInsertion',(_0x3bd75a,_0x2e80f2)=>this['_removeMarkersWithoutThreads'](_0x2e80f2['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x22fc19){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x22fc19;const _0x91715f=this['editor']['plugins']['get']('CommentsRepository');for(const _0x44a5da of _0x22fc19['keys']()){const [_0x531269,_0x507ba3]=_0x44a5da['split'](':');'comment'!=_0x531269||_0x91715f['hasCommentThread'](_0x507ba3)||_0x22fc19['delete'](_0x44a5da);}return _0x22fc19;}['_registerMarkerInClipboardPipeline'](){const _0x16e3ab=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x508aff=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x508aff&&_0x16e3ab['_registerMarkerToCopy']('comment',_0x508aff);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x395b7b){switch(_0x395b7b){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x48de7b){const _0x5c724a=_0x48de7b['split'](':');return{'group':_0x5c724a[0x0],'id':_0x5c724a[0x1],'part':_0x5c724a[0x2]};}class ut extends _0x3d3386{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x455338,_0x11b058)=>{if(!_0x11b058['options']['showCommentHighlights'])return null;if(_0x11b058['options']['ignoreResolvedComments']){const {id:_0x358d22}=ft(_0x455338['markerName']),_0x40492f=this['editor']['plugins']['get'](o);if(_0x40492f['getCommentThread'](_0x358d22)?.['isResolved']&&_0x455338['item'])return _0x11b058['consumable']['consume'](_0x455338['item'],'addMarker:'+_0x455338['markerName']),_0x11b058['consumable']['consume'](_0x455338['item'],'removeMarker:'+_0x455338['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5b5abe=>{_0x5b5abe['on']('addMarker:comment',(_0x1559b9,_0x54cd26,_0x44927e)=>{if(!_0x44927e['options']['showCommentHighlights'])return;const _0x1f82a1=_0x54cd26['item'];if(!_0x1f82a1)return;const _0x4ab8d2=_0x44927e['mapper']['toViewElement'](_0x1f82a1);this['editor']['model']['schema']['isObject'](_0x1f82a1)&&_0x4ab8d2&&!_0x4ab8d2['getCustomProperty']('widget')&&_0x4ab8d2['is']('containerElement')&&_0x4542ae(_0x4ab8d2,_0x44927e['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1c0a96,{writer:_0x5cc05d,options:_0x3e58b9})=>{if(!_0x3e58b9['showCommentHighlights'])return null;const _0x35d5c6=_0x5cc05d['createContainerElement']('div'),_0xd1d52d=_0x5cc05d['createEmptyElement']('hr');return _0x5cc05d['addClass']('ck-horizontal-line',_0x35d5c6),_0x5cc05d['insert'](_0x5cc05d['createPositionAt'](_0x35d5c6,0x0),_0xd1d52d),_0x35d5c6;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1b09af,{writer:_0x48a602,options:_0x545722})=>{if(!_0x545722['showCommentHighlights'])return null;const _0x3d50e0=_0x48a602['createContainerElement']('span'),_0x544af2=_0x48a602['createEmptyElement']('img');return _0x48a602['addClass']('image-inline',_0x3d50e0),_0x48a602['insert'](_0x48a602['createPositionAt'](_0x3d50e0,0x0),_0x544af2),_0x3d50e0;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1a11cf,{writer:_0xd4b895,options:_0x4411c3})=>{if(_0x4411c3['showCommentHighlights'])return _0xd4b895['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5ba7bd,_0x160011,_0x3b1a1e)=>{_0x3b1a1e['options']['showCommentHighlights']&&_0x5ba7bd['stop']();},{'priority':'high'});}}class r extends _0x3d3386{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(_0x4c570b){super(_0x4c570b),this['set']('isThreadsLoadingPaused',!0x0),_0x4c570b['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x29070e,_0xf6820f,_0x2a21fb,_0x1b02bd)=>{const _0x148706=_0x4c570b['plugins']['get'](o),_0x23f20a=_0x2a21fb?ft(_0x2a21fb)['id']:null;_0x4c570b['model']['change'](()=>{if(_0x23f20a){const _0x359963=this['getAllMarkersForId'](_0x23f20a);for(const _0x4953ba of _0x359963)_0x4c570b['editing']['reconvertMarker'](_0x4953ba);}if(_0x1b02bd){const {id:_0x249c6e}=ft(_0x1b02bd),_0x3523da=_0x148706['getCommentThread'](_0x249c6e);if(_0x3523da&&_0x3523da['unlinkedAt'])return;if(_0x3523da&&!_0x3523da['isAttached'])return;const _0xba592b=this['getAllMarkersForId'](_0x249c6e);for(const _0x402ffb of _0xba592b)_0x4c570b['editing']['reconvertMarker'](_0x402ffb);}}),_0x23f20a&&this['scrollToThreadMarker'](_0x23f20a);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x520c88=this['editor'],_0x1a8bbe=_0x520c88['plugins']['get'](o),_0x36f98b=_0x520c88['config']['get']('collaboration.channelId'),_0x46658b=_0x1a8bbe['getCommentThreads']()['filter'](_0x221905=>_0x221905['channelId']!==_0x36f98b);_0x520c88['commands']['add']('addCommentThread',new ot(_0x520c88)),this['listenTo'](_0x520c88,'change:isReadOnly',(_0xfd5aed,_0x3450a4,_0x3f6a5d)=>{_0x1a8bbe['switchReadOnly'](_0x3f6a5d,_0x520c88['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x1a8bbe,dt('addCommentThread',_0x36f98b),(_0x2399cf,{threadId:_0x1cafa7})=>{const _0x420149=this['editor']['plugins']['get'](o)['getCommentThread'](_0x1cafa7);_0x420149?.['unlinkedAt']&&this['_attachArchivedThread'](_0x1cafa7);}),this['listenTo'](_0x1a8bbe,dt('removeCommentThread',_0x36f98b),(_0x5612d9,{threadId:_0x385b6c})=>{_0x520c88['model']['enqueueChange']({'isUndoable':!0x1},_0x5c600b=>{const _0x27d10e=this['getAllMarkersForId'](_0x385b6c);for(const _0x1ed22d of _0x27d10e)_0x5c600b['removeMarker'](_0x1ed22d);});}),this['listenTo'](_0x1a8bbe,dt('resolveCommentThread',_0x36f98b),(_0x53d58e,{threadId:_0x142b42})=>{(this['_reconvertMarkers'](_0x142b42),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x142b42)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x1a8bbe,dt('reopenCommentThread',_0x36f98b),(_0x30cabc,{threadId:_0x26beb9})=>{this['_reconvertMarkers'](_0x26beb9);},{'priority':'low'}),this['listenTo'](_0x1a8bbe,dt('addComment',_0x36f98b),(_0x31abef,{threadId:_0x55cea1,isFromAdapter:_0xe4f80d})=>{const _0x63f14c=this['getAllMarkersForId'](_0x55cea1);if(_0xe4f80d||0x0==_0x63f14c['length']||!_0x1a8bbe['hasCommentThread'](_0x55cea1))return;0x1===_0x1a8bbe['getCommentThread'](_0x55cea1)['length']&&_0x520c88['model']['enqueueChange']({'isUndoable':!0x1},_0x5e6ee3=>{for(const _0x4f9ac7 of _0x63f14c)_0x5e6ee3['updateMarker'](_0x4f9ac7,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x46658b);}['afterInit'](){!async function(_0x13cee5){const _0x3f127f=_0x1fd099([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]),_0x2077ab=0x73460ab3,_0x75db16=0x73418d93^_0x2077ab,_0x5407d4=window[_0x1fd099([0x44,0x61,0x74,0x65])][_0x1fd099([0x6e,0x6f,0x77])](),_0x5da791=_0x13cee5[_0x1fd099([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x34c2d1=new window[(_0x1fd099([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b39d=>{_0x5da791[_0x1fd099([0x6f,0x6e,0x63,0x65])](_0x1fd099([0x72,0x65,0x61,0x64,0x79]),_0x16b39d);}),_0x3e12d4={[_0x1fd099([0x6b,0x74,0x79])]:_0x1fd099([0x45,0x43]),[_0x1fd099([0x75,0x73,0x65])]:_0x1fd099([0x73,0x69,0x67]),[_0x1fd099([0x63,0x72,0x76])]:_0x1fd099([0x50,0x2d,0x32,0x35,0x36]),[_0x1fd099([0x78])]:_0x1fd099([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]),[_0x1fd099([0x79])]:_0x1fd099([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]),[_0x1fd099([0x61,0x6c,0x67])]:_0x1fd099([0x45,0x53,0x32,0x35,0x36])},_0x5cccda=_0x5da791[_0x1fd099([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1fd099([0x67,0x65,0x74])](_0x1fd099([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x21db60(){let _0x31e6ac,_0x2a90ec=null,_0x395fd9=null;try{if(_0x5cccda==_0x1fd099([0x47,0x50,0x4c]))return _0x1fd099([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31e6ac=_0x4c7054(),!_0x31e6ac)return _0x1fd099([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31e6ac[_0x1fd099([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x395fd9=_0x3f9537(_0x31e6ac[_0x1fd099([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31e6ac[_0x1fd099([0x6a,0x74,0x69])])),await _0x2be7e1()?_0x3c432f()?_0x46b83a()?_0x1fd099([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4792be()?(_0x31e6ac[_0x1fd099([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1fd099([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a90ec=_0x4f29c6(_0x1fd099([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f7309()):_0x1fd099([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1fd099([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1fd099([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1fd099([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46b83a(){const _0x1de72a=[_0x1fd099([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1fd099([0x74,0x72,0x69,0x61,0x6c])][_0x1fd099([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31e6ac[_0x1fd099([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5407d4/0x3e8:0xe10*_0x75db16;return _0x31e6ac[_0x1fd099([0x65,0x78,0x70])]<_0x1de72a;}function _0x3c432f(){const _0x2b9e3c=_0x31e6ac[_0x1fd099([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2b9e3c)return!0x1;if(_0x2b9e3c[_0x1fd099([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fd099([0x2a])))return!0x0;if(_0x2b9e3c[_0x1fd099([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fd099([0x43,0x4d,0x54])))return!0x0;if(_0x2b9e3c[_0x1fd099([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fd099([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x4ea714())return!0x0;if(_0x2b9e3c[_0x1fd099([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fd099([0x52,0x43,0x4d,0x54]))){if(_0x277457())return!0x0;if(_0x21490b()||_0x4cabff())return!0x0;}return!0x1;}function _0x4792be(){const _0x4e3663=_0x31e6ac[_0x1fd099([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e3663||0x0==_0x4e3663[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e21e2}=new URL(window[_0x1fd099([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e3663[_0x1fd099([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e21e2))return!0x0;const _0x3c70b0=_0x2e21e2[_0x1fd099([0x73,0x70,0x6c,0x69,0x74])](_0x1fd099([0x2e]));return _0x4e3663[_0x1fd099([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x585576=>_0x585576[_0x1fd099([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fd099([0x2a])))[_0x1fd099([0x6d,0x61,0x70])](_0x43b298=>_0x43b298[_0x1fd099([0x73,0x70,0x6c,0x69,0x74])](_0x1fd099([0x2e])))[_0x1fd099([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46e9a6=>_0x46e9a6[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c70b0[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1fd099([0x6d,0x61,0x70])](_0x2cf39b=>Array(_0x3c70b0[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2cf39b[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1fd099([0x66,0x69,0x6c,0x6c])](_0x2cf39b[0x0]===_0x1fd099([0x2a])?_0x1fd099([0x2a]):'')[_0x1fd099([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2cf39b))[_0x1fd099([0x73,0x6f,0x6d,0x65])](_0x2b8117=>_0x3c70b0[_0x1fd099([0x65,0x76,0x65,0x72,0x79])]((_0x571d02,_0x11b814)=>_0x2b8117[_0x11b814]===_0x571d02||_0x2b8117[_0x11b814]===_0x1fd099([0x2a])));}function _0x1f7309(){return _0x2a90ec&&_0x395fd9?new window[(_0x1fd099([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe21c89,_0xf89424)=>{_0x2a90ec[_0x1fd099([0x74,0x68,0x65,0x6e])](_0xe21c89,_0xf89424),_0x395fd9[_0x1fd099([0x74,0x68,0x65,0x6e])](_0x21311d=>{_0x21311d!=_0x1fd099([0x56,0x61,0x6c,0x69,0x64])&&_0xe21c89(_0x21311d);},_0xf89424);}):_0x2a90ec||_0x395fd9||_0x1fd099([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f9537(_0xe03d62,_0x5d98fc){return new window[(_0x1fd099([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf02539=>{if(_0x52358f())return _0xf02539(_0x1fd099([0x56,0x61,0x6c,0x69,0x64]));_0x4e293c(),_0x5da791[_0x1fd099([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1fd099([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36e108=!0x1;const _0x3e7583=_0x260e0b();function _0x40a6e2(_0x815253){return!!_0x815253&&(typeof _0x815253===_0x1fd099([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x815253===_0x1fd099([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x815253[_0x1fd099([0x74,0x68,0x65,0x6e])]===_0x1fd099([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x815253[_0x1fd099([0x63,0x61,0x74,0x63,0x68])]===_0x1fd099([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d3336(_0x5f57aa){_0x256503(_0x5f57aa)[_0x1fd099([0x74,0x68,0x65,0x6e])](_0x515871=>{if(!_0x515871||_0x515871[_0x1fd099([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1fd099([0x6f,0x6b]))return _0x1fd099([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a901b(_0x46d990(_0x3e7583+_0x5d98fc))!=_0x515871[_0x1fd099([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1fd099([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1fd099([0x56,0x61,0x6c,0x69,0x64]);})[_0x1fd099([0x74,0x68,0x65,0x6e])](_0x3ba86a=>(_0x9426db(),_0x3ba86a),()=>{const _0x1c7c86=_0x1dd2d3();return null==_0x1c7c86?(_0x9426db(),_0x1fd099([0x56,0x61,0x6c,0x69,0x64])):_0x1fd099(_0x5407d4-_0x1c7c86>(0x574a8eb3^_0x2077ab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1fd099([0x74,0x68,0x65,0x6e])](_0xf02539)[_0x1fd099([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf02539(_0x1fd099([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x97cb58=0x7370e433^_0x2077ab;function _0x9426db(){const _0x45c6ac=_0x1fd099([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a901b(_0x46d990(_0xe03d62)),_0x4cd44b=_0x2805d5(_0x4a901b(window[_0x1fd099([0x4d,0x61,0x74,0x68])][_0x1fd099([0x63,0x65,0x69,0x6c])](_0x5407d4/_0x97cb58)));window[_0x1fd099([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1fd099([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45c6ac,_0x4cd44b);}function _0x1dd2d3(){const _0x479095=_0x1fd099([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a901b(_0x46d990(_0xe03d62)),_0x3123f7=window[_0x1fd099([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1fd099([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x479095);return _0x3123f7?window[_0x1fd099([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2805d5(_0x3123f7),0x10)*_0x97cb58:null;}function _0x256503(_0x26b75e){return new window[(_0x1fd099([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45ff26,_0x1a152b)=>{_0x26b75e[_0x1fd099([0x74,0x68,0x65,0x6e])](_0x45ff26,_0x1a152b),window[_0x1fd099([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a152b,0x7347de73^_0x2077ab);});}}_0x5da791[_0x1fd099([0x6f,0x6e])](_0x1fd099([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42b7e5,_0x57cc7e)=>{if(_0x57cc7e[0x0]!=_0xe03d62)return _0xf02539(_0x1fd099([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57cc7e[0x1]={..._0x57cc7e[0x1],[_0x1fd099([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e7583};},{[_0x1fd099([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1fd099([0x68,0x69,0x67,0x68])}),_0x5da791[_0x1fd099([0x6f,0x6e])](_0x1fd099([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e3b0b=>{_0x40a6e2(_0x2e3b0b[_0x1fd099([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36e108=!0x0,_0x5d3336(_0x2e3b0b[_0x1fd099([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1fd099([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1fd099([0x6c,0x6f,0x77])}),_0x34c2d1[_0x1fd099([0x74,0x68,0x65,0x6e])](()=>{_0x36e108||_0xf02539(_0x1fd099([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52358f(){return _0x5da791[_0x1fd099([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1fd099([0x76,0x69,0x65,0x77])][_0x1fd099([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1fd099([0x61,0x75,0x74,0x6f]);}function _0x4e293c(){_0x5da791[_0x1fd099([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1fd099([0x76,0x69,0x65,0x77])][_0x1fd099([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1fd099([0x61,0x75,0x74,0x6f]);}}function _0x4f29c6(_0xc29558){const _0x5d21ae=[new window[(_0x1fd099([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58c5f4=>setTimeout(_0x58c5f4,0x734f347f^_0x2077ab)),_0x34c2d1[_0x1fd099([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1fd099([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x501946=>{let _0x40d606=0x0;_0x5da791[_0x1fd099([0x6d,0x6f,0x64,0x65,0x6c])][_0x1fd099([0x6f,0x6e])](_0x1fd099([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d8053,_0x1c0a47)=>{_0x1c0a47[0x0][_0x1fd099([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40d606++,_0x40d606==(0x73460f5b^_0x2077ab)&&(_0x501946(),_0x1d8053[_0x1fd099([0x6f,0x66,0x66])]());});}))];return window[_0x1fd099([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1fd099([0x72,0x61,0x63,0x65])](_0x5d21ae)[_0x1fd099([0x74,0x68,0x65,0x6e])](()=>_0xc29558);}async function _0xb8a30b(){await _0x34c2d1,_0x5da791[_0x1fd099([0x6d,0x6f,0x64,0x65,0x6c])][_0x1fd099([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7ea7d2,_0x5da791[_0x1fd099([0x6d,0x6f,0x64,0x65,0x6c])][_0x1fd099([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7ea7d2,_0x5da791[_0x1fd099([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1fd099([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ea714(){return window[_0x1fd099([0x67,0x6c,0x6f,0x62])]&&window[_0x1fd099([0x67,0x6c,0x6f,0x62])][_0x1fd099([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x277457(){return _0x104d70(_0x1fd099([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e2217(_0x1fd099([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1fd099([0x73,0x74,0x61,0x74,0x65])]==_0x1fd099([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x21490b(){return _0x104d70(_0x1fd099([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 _0x4cabff(){return _0x104d70(_0x1fd099([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2ab686(_0x689526){const _0x26bfcf=_0x4de54a();_0x5da791[_0x26bfcf]=_0x1fd099([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x689526,_0x689526!=_0x1fd099([0x56,0x61,0x6c,0x69,0x64])&&_0xb8a30b();}function _0x4de54a(){const _0xe58a7d=window[_0x1fd099([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1fd099([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1fd099([0x6e,0x6f,0x77])]())[_0x1fd099([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1fd099([0x2e]),'');let _0x4cc509=_0x1fd099([0x4b]);for(let _0x160406=0x0;_0x160406<_0xe58a7d[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x160406+=0x2){let _0x22d7ae=window[_0x1fd099([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe58a7d[_0x1fd099([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x160406,_0x160406+0x2));_0x22d7ae>=_0x3f127f[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22d7ae-=_0x3f127f[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cc509+=_0x3f127f[_0x22d7ae];}return _0x4cc509;}function _0x4c7054(){const _0x25f71d=_0x5cccda[_0x1fd099([0x73,0x70,0x6c,0x69,0x74])](_0x1fd099([0x2e]));if(0x3!=_0x25f71d[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ecfd4(_0x25f71d[0x1]);function _0x4ecfd4(_0x4a058a){const _0xb675a6=_0x504fa9(_0x4a058a);return _0xb675a6&&_0x15fad3()?_0xb675a6:null;function _0x15fad3(){const _0x1ca598=_0xb675a6[_0x1fd099([0x6a,0x74,0x69])],_0x42c3ac=window[_0x1fd099([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ca598[_0x1fd099([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ca598[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x138a82={..._0xb675a6,[_0x1fd099([0x6a,0x74,0x69])]:_0x1ca598[_0x1fd099([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ca598[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x138a82[_0x1fd099([0x76,0x63])],_0x46d990(_0x138a82)==_0x42c3ac;}}}async function _0x2be7e1(){let _0x548860=!0x0;try{const _0xac1f66=_0x5cccda[_0x1fd099([0x73,0x70,0x6c,0x69,0x74])](_0x1fd099([0x2e])),[_0x5bee77,_0x2ae1e7,_0x1a90d2]=_0xac1f66;return _0xcc6d21(_0x5bee77),await _0x44750e(_0x5bee77,_0x2ae1e7,_0x1a90d2),_0x548860;}catch{return!0x1;}function _0xcc6d21(_0x1e8ce2){const _0x2c04d1=_0x504fa9(_0x1e8ce2);_0x2c04d1&&_0x2c04d1[_0x1fd099([0x61,0x6c,0x67])]==_0x1fd099([0x45,0x53,0x32,0x35,0x36])||(_0x548860=!0x1);}async function _0x44750e(_0x28ad2a,_0x548d21,_0x4f3fcd){const _0x2aba35=window[_0x1fd099([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1fd099([0x66,0x72,0x6f,0x6d])](_0x3a7fb1(_0x4f3fcd),_0x20a7a6=>_0x20a7a6[_0x1fd099([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f1b26=new window[(_0x1fd099([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1fd099([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28ad2a+_0x1fd099([0x2e])+_0x548d21),_0x5ae6d2=window[_0x1fd099([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1fd099([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ae6d2)return;const _0x394f59=await _0x5ae6d2[_0x1fd099([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1fd099([0x6a,0x77,0x6b]),_0x3e12d4,{[_0x1fd099([0x6e,0x61,0x6d,0x65])]:_0x1fd099([0x45,0x43,0x44,0x53,0x41]),[_0x1fd099([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1fd099([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1fd099([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ae6d2[_0x1fd099([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1fd099([0x6e,0x61,0x6d,0x65])]:_0x1fd099([0x45,0x43,0x44,0x53,0x41]),[_0x1fd099([0x68,0x61,0x73,0x68])]:{[_0x1fd099([0x6e,0x61,0x6d,0x65])]:_0x1fd099([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x394f59,_0x2aba35,_0x1f1b26)||(_0x548860=!0x1);}}function _0x504fa9(_0x4b3fbb){return _0x4b3fbb[_0x1fd099([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1fd099([0x65,0x79]))?JSON[_0x1fd099([0x70,0x61,0x72,0x73,0x65])](_0x3a7fb1(_0x4b3fbb)):null;}function _0x3a7fb1(_0x587573){return window[_0x1fd099([0x61,0x74,0x6f,0x62])](_0x587573[_0x1fd099([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1fd099([0x2b]))[_0x1fd099([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1fd099([0x2f])));}function _0x46d990(_0x570944){let _0x5a5216=0x1505;function _0x27222a(_0x2c26b5){for(let _0x431edd=0x0;_0x431edd<_0x2c26b5[_0x1fd099([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x431edd++){const _0x5d2b51=_0x2c26b5[_0x1fd099([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x431edd);_0x5a5216=(_0x5a5216<<0x5)+_0x5a5216+_0x5d2b51,_0x5a5216&=_0x5a5216;}}function _0x2ca031(_0x2b91d9){Array[_0x1fd099([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b91d9)?_0x2b91d9[_0x1fd099([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ca031):_0x2b91d9&&typeof _0x2b91d9==_0x1fd099([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1fd099([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b91d9)[_0x1fd099([0x73,0x6f,0x72,0x74])]()[_0x1fd099([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51560f,_0x371fc1])=>{_0x27222a(_0x51560f),_0x2ca031(_0x371fc1);}):_0x27222a(window[_0x1fd099([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b91d9));}return _0x2ca031(_0x570944),_0x5a5216>>>0x0;}function _0x4a901b(_0x8d1166){return _0x8d1166[_0x1fd099([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1fd099([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1fd099([0x30]));}function _0x2805d5(_0x28c9b3){return _0x28c9b3[_0x1fd099([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1fd099([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1fd099([0x6a,0x6f,0x69,0x6e])]('');}function _0x104d70(_0x27dbdc){return _0x5da791[_0x1fd099([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1fd099([0x68,0x61,0x73])](_0x27dbdc);}function _0x3e2217(_0x915768){return _0x5da791[_0x1fd099([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1fd099([0x67,0x65,0x74])](_0x915768);}function _0x7ea7d2(){}function _0x1fd099(_0x188ac6){return _0x188ac6['map'](_0xff224b=>String['fromCharCode'](_0xff224b))['join']('');}_0x2ab686(await _0x21db60());}(this);}['destroy'](){const _0x458969=this['editor']['plugins']['get'](o),_0x204b94=this['editor']['config']['get']('collaboration.channelId');for(const _0x4964e5 of _0x458969['getCommentThreads']({'channelId':_0x204b94}))_0x458969['_detachCommentThread'](_0x4964e5['id']),_0x458969['_threads']['delete'](_0x4964e5['id']);super['destroy']();}['hasMarkerForId'](_0x3a3297){return this['getAllMarkersForId'](_0x3a3297)['length']>0x0;}['getAllMarkersForId'](_0x189b82){const _0x9b3eb7=[];for(const _0x29ee76 of this['editor']['model']['markers'])_0x29ee76['name']['startsWith']('comment:'+_0x189b82)&&_0x9b3eb7['push'](_0x29ee76);return _0x9b3eb7;}['scrollToThreadMarker'](_0xf546b6){setTimeout(()=>{const _0x359b67=this['_getTargetForId'](_0xf546b6);if(!_0x359b67)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0xf546b6&&nt({'target':_0x359b67[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x43ed94){this['editor']['model']['change'](()=>{for(const _0x315f80 of this['getAllMarkersForId'](_0x43ed94))this['editor']['editing']['reconvertMarker'](_0x315f80);});}['_attachArchivedThread'](_0x59c806){const _0x1f5cd5=this['editor']['plugins']['get'](o),_0x12f37a=this['editor']['plugins']['get'](b),_0x195a65=_0x1f5cd5['getCommentThread'](_0x59c806);if(!_0x195a65['isAttached']){const _0x8dbc42=_0x195a65['attachTo'](()=>this['_getTargetForId'](_0x195a65['id']));_0x12f37a['registerAnnotation'](_0x8dbc42),_0x195a65['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x496dd9=this['editor'],_0x5d1f8f=_0x496dd9['plugins']['get'](it);_0x496dd9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x348ad3,_0x54b187)=>{const {id:_0x8e04c4}=ft(_0x348ad3['markerName']),_0x4ed8e7=_0x496dd9['plugins']['get'](o)['getCommentThread'](_0x8e04c4),_0x191708=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x8e04c4;let _0xf9e2ad;if(_0x4ed8e7&&_0x4ed8e7['isResolved']&&!_0x191708&&_0x348ad3['item'])return _0x54b187['consumable']['consume'](_0x348ad3['item'],'addMarker:'+_0x348ad3['markerName']),_0x54b187['consumable']['consume'](_0x348ad3['item'],'removeMarker:'+_0x348ad3['markerName']),null;const _0x4509c1=['ck-comment-marker'];return _0x191708&&_0x4509c1['push']('ck-comment-marker--active'),_0xf9e2ad=_0x4ed8e7?.['length']?_0x4ed8e7['comments']['first']['author']['id']:_0x5d1f8f['me']['id'],{'classes':_0x4509c1,'attributes':{'data-comment':_0x8e04c4,'data-author-id':_0xf9e2ad}};}}),_0x496dd9['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1e3662,{options:_0x1e9da4})=>{if(_0x1e9da4['showCommentHighlights'])return null;const _0x206234=_0x496dd9['plugins']['get'](o),_0x14095a=_0x496dd9['model']['markers']['get'](_0x1e3662),{id:_0x35f3f0,part:_0x66fc78}=ft(_0x1e3662);return _0x14095a&&!_0x14095a['affectsData']||_0x1e9da4['ignoreResolvedComments']&&_0x206234['getCommentThread'](_0x35f3f0)?.['isResolved']?null:{'group':'comment','name':_0x66fc78?_0x35f3f0+':'+_0x66fc78:_0x35f3f0};}}),_0x496dd9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x492018,{writer:_0x5ecd9e})=>_0x5ecd9e['createElement']('$marker',{'data-name':'comment:'+_0x492018['getAttribute']('id')})}),_0x496dd9['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x954d2b=this['editor'],_0x1a443a=_0x954d2b['plugins']['get'](o),_0x64e2c9=new Set(),_0x2adfce=new Set();_0x954d2b['model']['document']['registerPostFixer'](_0xbc2d24=>{let _0x5f39d5=!0x1;for(const {name:_0x11248d,data:_0x3aec8c}of _0x954d2b['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4c5482,id:_0x48df9b}=ft(_0x11248d);let _0x25528e=_0x3aec8c['newRange'];if('comment'!==_0x4c5482||!_0x25528e)continue;const _0x5e485f='$graveyard'===_0x25528e['root']['rootName'];_0x5e485f||(_0x25528e=ht(_0x25528e,_0x954d2b['model']),!_0x25528e||_0x25528e['isCollapsed']||!_0x3aec8c['newRange']||_0x25528e['isEqual'](_0x3aec8c['newRange']))?_0x954d2b['model']['hasContent'](_0x25528e)&&!_0x5e485f?this['isThreadsLoadingPaused']?_0x64e2c9['add'](_0x11248d):this['_handleThreadMarker'](_0x11248d,_0x48df9b):(_0x2adfce['add'](_0x11248d),_0x64e2c9['delete'](_0x11248d),_0xbc2d24['removeMarker'](_0x11248d),_0x5f39d5=!0x0):(_0xbc2d24['updateMarker'](_0x11248d,{'range':_0x25528e}),_0x5f39d5=!0x0);}return _0x5f39d5;}),this['on']('change:isThreadsLoadingPaused',(_0x539a27,_0x9cf82e,_0x5158f6)=>{if(!_0x5158f6&&_0x64e2c9['size'])for(const _0xaee390 of _0x64e2c9){const {id:_0x2fcf98}=ft(_0xaee390);_0x64e2c9['delete'](_0xaee390),_0x954d2b['model']['markers']['get'](_0xaee390)&&this['_handleThreadMarker'](_0xaee390,_0x2fcf98);}}),this['listenTo'](_0x954d2b['model']['document'],'change',()=>{for(const {name:_0x2b311d,data:{newRange:_0x1303ec}}of _0x954d2b['model']['document']['differ']['getChangedMarkers']()){const {group:_0x37ebab,id:_0x16e66a}=ft(_0x2b311d);if('comment'!==_0x37ebab)continue;const _0x286b32=_0x1a443a['getCommentThread'](_0x16e66a),_0x28f960=this['hasMarkerForId'](_0x16e66a);_0x286b32&&(!_0x286b32['_hasTargetInContent']&&_0x1303ec&&_0x954d2b['editing']['view']['once']('render',()=>{const _0x1ec61a=_0x954d2b['plugins']['get'](y),_0x145d9f=_0x1a443a['_threadToController']['get'](_0x286b32)['view'];_0x1ec61a['getByInnerView'](_0x145d9f)['refreshVisibility']();},{'priority':'low'}),_0x286b32['_hasTargetInContent']=_0x28f960||!!_0x1303ec),_0x1303ec||(_0x2adfce['add'](_0x2b311d),_0x64e2c9['delete'](_0x2b311d));}for(const _0x181e15 of _0x2adfce){const {id:_0xdc3665}=ft(_0x181e15),_0x426ec2=_0x1a443a['getCommentThread'](_0xdc3665);if(_0x64e2c9['delete'](_0x181e15),!_0x426ec2)continue;const _0x454451=this['hasMarkerForId'](_0xdc3665);_0x454451||_0x426ec2['isSubmitted']?_0x454451||_0x426ec2['unlinkedAt']||_0x426ec2['setUnlinkedAt'](new Date()):_0x426ec2['remove']();}_0x2adfce['clear']();});}['_handleInitialThreads'](_0x59f7cc){_0x59f7cc['forEach'](_0x4992a8=>{_0x4992a8['unlinkedAt']&&this['_attachArchivedThread'](_0x4992a8['id']);});}['_getTargetForId'](_0x1eac37){const _0x2556f4=this['editor'],_0x2a04db=this['getAllMarkersForId'](_0x1eac37);return et(_0x2556f4['editing'],_0x2a04db);}['_getTextContext'](_0x299406){const _0x29a56b=this['getAllMarkersForId'](_0x299406);let _0x426b6f='',_0x47c214=!0x1;for(const _0x4c56ba of _0x29a56b){const _0x1f6fef=_0x4c56ba['getRange']();for(const _0x223c98 of Array['from'](_0x1f6fef['getItems']()))_0x223c98['is']('$textProxy')?(_0x426b6f&&_0x47c214&&(_0x426b6f+='\x20',_0x47c214=!0x1),_0x426b6f+=_0x223c98['data']):_0x47c214=!0x0;_0x47c214=!0x0;}return _0x426b6f['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4745e3,_0x5eb8bb){const _0x18a21b=this['editor'],_0x30e997=_0x18a21b['plugins']['get'](o);let _0xe112a5=_0x30e997['getCommentThread'](_0x5eb8bb);const _0x16c2f2=_0x18a21b['config']['get']('collaboration.channelId'),_0x3e71c0=_0x18a21b['plugins']['get'](b);if(_0xe112a5&&(_0xe112a5['unlinkedAt']&&_0xe112a5['setUnlinkedAt'](null),_0xe112a5['isAttached']))return _0xe112a5;return!this['getAllMarkersForId'](_0x5eb8bb)[0x0]['managedUsingOperations']?_0x18a21b['editing']['view']['once']('render',()=>{if(_0x30e997['getCommentThread'](_0x5eb8bb))return;const _0x52346b=_0x18a21b['plugins']['get'](y);_0xe112a5=_0x30e997['openNewCommentThread']({'channelId':_0x16c2f2,'threadId':_0x5eb8bb,'target':()=>this['_getTargetForId'](_0x5eb8bb),'context':{'type':'text','value':this['_getTextContext'](_0x5eb8bb)}});const _0x4abfec=_0x30e997['_threadToController']['get'](_0xe112a5)['view'],_0x4dd37f=_0x52346b['getByInnerView'](_0x4abfec);_0x4dd37f&&_0x3e71c0['registerAnnotation'](_0x4dd37f);},{'priority':'low'}):_0x30e997['fetchCommentThread']({'channelId':_0x16c2f2,'threadId':_0x5eb8bb})['then'](_0xe0263f=>{if('destroyed'!==_0x18a21b['state']){if(_0xe112a5=_0xe0263f,_0xe112a5&&!_0xe112a5['isAttached']){const _0x39e5b7=_0xe112a5['attachTo'](()=>this['_getTargetForId'](_0x5eb8bb));_0x3e71c0['registerAnnotation'](_0x39e5b7),_0xe112a5['isResolved']&&this['_reconvertMarkers'](_0x5eb8bb);}else{if(!_0xe112a5){const _0x4068ec=this['getAllMarkersForId'](_0x5eb8bb);_0x18a21b['model']['change'](_0xdfab5=>{for(const _0x2ec1df of _0x4068ec)_0xdfab5['removeMarker'](_0x2ec1df);});}}}}),_0xe112a5;}['_handleThreadMarker'](_0x56a91b,_0x5bcec5){const _0x213624=this['_attachMarkerToThread'](_0x56a91b,_0x5bcec5);_0x213624&&!_0x213624['context']&&_0x213624['setContext']({'type':'text','value':this['_getTextContext'](_0x5bcec5)});}['_initAriaMarkerChangeAnnouncements'](){const _0x47c4d9=this['editor'];rt(_0x47c4d9['model'],({left:_0x12fe47,entered:_0x530356})=>{for(const _0x5a3e4b of _0x12fe47)if(mt(_0x5a3e4b)){_0x47c4d9['ui']['ariaLiveAnnouncer']['announce'](N(_0x47c4d9['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x392f0e of _0x530356)if(mt(_0x392f0e)){_0x47c4d9['ui']['ariaLiveAnnouncer']['announce'](N(_0x47c4d9['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x57d40e)));break;}});}}function dt(_0x43c7b4,_0x496de3){return _0x496de3?_0x43c7b4+':'+_0x496de3:_0x43c7b4;}function ht(_0x15a775,_0x51a419){const _0x17a1bf=_0x51a419['schema'],_0x1895c1=_0x51a419['createRange'](_0x15a775['start']);for(const _0x20f989 of _0x15a775['getWalker']()){const {type:_0x239dd8,item:_0x3201a2,nextPosition:_0x512e03}=_0x20f989;if('text'===_0x239dd8||_0x17a1bf['isObject'](_0x3201a2)){const _0x262f63=_0x51a419['createPositionBefore'](_0x3201a2);_0x1895c1['isCollapsed']&&(_0x1895c1['start']=_0x262f63),_0x1895c1['end']=_0x512e03;}}return _0x1895c1;}function mt(_0x54d8c9){return'comment'===ft(_0x54d8c9['name'])['group'];}class s extends _0x3d3386{['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 _0x19c787=this['editor'],_0x46f406=_0x19c787['plugins']['get'](o),_0x2999b2=_0x19c787['plugins']['get'](r),_0x59ef62=_0x19c787['plugins']['get'](y),_0x46c603=_0x19c787['plugins']['get'](b);_0x19c787['ui']['componentFactory']['add']('comment',()=>{const _0x25e725=this['_createUIButton'](_0x20f04f);return _0x25e725['tooltip']=!0x0,_0x25e725;}),_0x19c787['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x331cf1)),_0x46c603['addSourceCollector'](()=>{const _0x354fa3=[];for(const [_0x4adac4,_0x2b2853]of _0x46f406['_threadToController']){const _0x3bea4f=_0x2999b2['getAllMarkersForId'](_0x4adac4['id']),_0x1c92ac=_0x3bea4f['map'](_0x3e2399=>_0x3e2399['getRange']());_0x3bea4f['length']>0x0&&_0x354fa3['push']([_0x2b2853['view'],_0x1c92ac]);}return _0x354fa3;}),this['listenTo'](_0x59ef62,'change:activeAnnotations',(_0x20a8c5,_0x334bb9,_0x5426c4)=>{const _0x30cc59=Array['from'](_0x5426c4)['map'](_0x4829ed=>_0x4829ed['innerView'])['find'](_0x4456cd=>_0x46f406['_viewToController']['has'](_0x4456cd));if(!_0x30cc59)return void(_0x2999b2['activeMarker']=null);const _0x5a86b4=_0x46f406['_viewToController']['get'](_0x30cc59)['model']['id'],_0x4fd614='comment:'+_0x5a86b4;_0x5a86b4&&_0x2999b2['hasMarkerForId'](_0x5a86b4)?_0x2999b2['activeMarker']=_0x4fd614:_0x2999b2['activeMarker']&&(_0x2999b2['activeMarker']=null);}),this['listenTo'](_0x46f406,'removeCommentThread',(_0x478ac7,{threadId:_0xb4880e,isFromAdapter:_0x237a12})=>{!_0x237a12&&_0x19c787['ui']['focusTracker']['isFocused']&&_0x2999b2['hasMarkerForId'](_0xb4880e)&&_0x19c787['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x46f406,'addComment',(_0x3564c9,{threadId:_0x336d0f,isFromAdapter:_0x5ebb7d})=>{if(_0x5ebb7d||!_0x2999b2['hasMarkerForId'](_0x336d0f)||!_0x46f406['hasCommentThread'](_0x336d0f))return;0x1===_0x46f406['getCommentThread'](_0x336d0f)['length']&&(_0x19c787['editing']['view']['focus'](),_0x3564c9['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c093a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x459e81;for(const _0x459a75 in _0x4c093a){const _0x2e70ed=_0x459a75,_0x2db920=_0x4c093a[_0x2e70ed];if('commentsLicenseKeyValid'==_0x2db920||'commentsLicenseKeyInvalid'==_0x2db920||'commentsLicenseKeyExpired'==_0x2db920||'commentsLicenseKeyDomainLimit'==_0x2db920||'commentsLicenseKeyNotAllowed'==_0x2db920||'commentsLicenseKeyEvaluationLimit'==_0x2db920||'commentsLicenseKeyUsageLimit'==_0x2db920){delete _0x4c093a[_0x2e70ed],_0x459e81=_0x2db920,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x459e81&&_0x4c093a['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x459e81&&_0x4c093a['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x459e81&&_0x4c093a['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x459e81&&_0x4c093a['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x459e81&&_0x4c093a['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x459e81&&_0x4c093a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x2c1f9e){const _0x4dd3fc=this['editor'],_0x3ca338=new _0x2c1f9e(_0x4dd3fc['locale']),_0x49608f=_0x4dd3fc['commands']['get']('addCommentThread');return _0x3ca338['set']({'label':N(_0x4dd3fc['locale'],'Comment'),'icon':_0x2853dc}),_0x3ca338['bind']('isEnabled')['to'](_0x49608f,'isEnabled',_0x49608f,'hasContent',(_0x4c5bcd,_0x16da55)=>_0x4c5bcd&&_0x16da55),this['listenTo'](_0x3ca338,'execute',()=>{_0x49608f['execute']();}),_0x3ca338;}}class i extends _0x3d3386{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x524b89){super(_0x524b89),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x26936e,_0x43a01a,_0x46942e)=>{_0x46942e?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x423956,_0x2bcda7]of this['editor']['commands'])_0x2bcda7['affectsData']&&'addCommentThread'!==_0x423956&&_0x2bcda7['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 _0x26f718=this['editor']['editing']['view']['document'];this['listenTo'](_0x26f718,'cut',_0x3f0c6d=>_0x3f0c6d['stop'](),{'priority':'highest'}),this['listenTo'](_0x26f718,'clipboardInput',_0x4ad286=>_0x4ad286['stop'](),{'priority':'highest'}),this['listenTo'](_0x26f718,'delete',_0xe215f3=>_0xe215f3['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5b0ef9,_0x41726f]of this['editor']['commands'])_0x41726f['affectsData']&&'addCommentThread'!==_0x5b0ef9&&_0x41726f['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 _0x4bfeb4{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x368ac2){super(_0x368ac2),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x30bd95=this['context']['plugins']['get'](y);this['listenTo'](_0x30bd95,'_activateAnnotation',(_0x4cf320,_0x59b961)=>{for(const _0x4bef7c of this['activeUIs']){const _0x3344ef=this['_uis']['get'](_0x4bef7c);(0x0,this['uisData']['get'](_0x4bef7c)['filter'])(_0x59b961)&&_0x3344ef['setActiveAnnotation'](_0x59b961);}}),this['listenTo'](_0x30bd95,'_deactivateAllAnnotations',()=>{for(const _0x4bf54b of this['activeUIs']){this['_uis']['get'](_0x4bf54b)['setActiveAnnotation'](null);}}),this['listenTo'](_0x30bd95['_visibleAnnotations'],'add',(_0x14976f,_0x3eb528)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3eb528);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x593594){return this['activeUIs']['has'](_0x593594);}['activate'](_0x3bfebb,_0x425835=this['defaultFilter']){const _0x2303e2=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x3bfebb))throw new _0x425354('annotationsuis-missing-ui',this,{'uiName':_0x3bfebb});this['isActive'](_0x3bfebb)&&this['deactivate'](_0x3bfebb),this['activeUIs']['add'](_0x3bfebb);const _0x1d3104=new S();v({'source':_0x2303e2['_visibleAnnotations'],'target':_0x1d3104,'filter':_0x425835}),this['uisData']['set'](_0x3bfebb,{'collection':_0x1d3104,'filter':_0x425835});const _0x235145=this['_uis']['get'](_0x3bfebb);_0x235145['attach'](_0x1d3104),this['listenTo'](_0x235145,'change:activeAnnotation',(_0x5051d2,_0xd2472a,_0x13b10e,_0x323b3a)=>{_0x323b3a&&_0x2303e2['_removeActiveAnnotation'](_0x323b3a),_0x13b10e&&_0x2303e2['_addActiveAnnotation'](_0x13b10e);});}['deactivate'](_0x3a50cd){if(this['activeUIs']['delete'](_0x3a50cd),!this['_uis']['has'](_0x3a50cd))throw new _0x425354('annotationsuis-missing-ui',this,{'uiName':_0x3a50cd});const _0x4b0850=this['_uis']['get'](_0x3a50cd);_0x4b0850['detach'](),this['stopListening'](_0x4b0850),this['uisData']['get'](_0x3a50cd)['collection']['destroy'](),this['uisData']['delete'](_0x3a50cd);}['switchTo'](_0x3589be){if(!this['_uis']['has'](_0x3589be))throw new _0x425354('annotationsuis-missing-ui',this,{'uiName':_0x3589be});const _0x419edf=this['context']['plugins']['get'](y),_0x196e9c=Array['from'](_0x419edf['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x3589be);const _0x448953=this['_uis']['get'](_0x3589be);_0x448953['setActiveAnnotation'](_0x196e9c),_0x448953['_setSelectedAnnotations']&&_0x196e9c&&_0x448953['_setSelectedAnnotations']([_0x196e9c]);}['deactivateAll'](){for(const _0x38b6ac of this['activeUIs'])this['deactivate'](_0x38b6ac);}['register'](_0x75b4e8,_0x13743a){if(this['_uis']['has'](_0x75b4e8))throw new _0x425354('annotationsuis-register-already-registered');if('function'!=typeof _0x13743a['attach']||'function'!=typeof _0x13743a['detach']||'function'!=typeof _0x13743a['setActiveAnnotation'])throw new _0x425354('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x75b4e8,_0x13743a);}['refilterAnnotations'](){const _0x564b70=this['context']['plugins']['get'](y)['collection'],_0x311eee=new Map(),_0x4ad2a1=Array['from'](this['activeUIs']);for(const _0x16dd43 of this['activeUIs']){const _0x1e13c0=this['uisData']['get'](_0x16dd43)['collection'];for(const _0x20c001 of _0x1e13c0)_0x311eee['set'](_0x20c001,_0x16dd43);}for(const _0xdbd174 of _0x564b70){const _0x3bc283=_0x311eee['get'](_0xdbd174);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xdbd174);const _0x88477d=_0x4ad2a1['find'](_0x4f1b1f=>this['uisData']['get'](_0x4f1b1f)['filter'](_0xdbd174));_0x3bc283!==_0x88477d&&(_0x3bc283&&this['uisData']['get'](_0x3bc283)['collection']['remove'](_0xdbd174),_0x88477d&&this['uisData']['get'](_0x88477d)['collection']['add'](_0xdbd174));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3289b3){const _0x15440e=[];for(const _0x3e7ecf of this['activeUIs']){(0x0,this['uisData']['get'](_0x3e7ecf)['filter'])(_0x3289b3)&&_0x15440e['push'](_0x3e7ecf);}if(_0x15440e['length']>0x1)throw new _0x425354('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x15440e,'annotationType':_0x3289b3['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x1dde99){super(_0x1dde99);const _0x420e79=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 _0x4e7aba(),this['focusCycler']=new _0x540a82({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x420e79['to']('class')],'style':{'minHeight':_0x420e79['to']('minHeight',_0xc1338d=>'number'==typeof _0xc1338d?_i(_0xc1338d+0xa):null)},'dir':_0x1dde99['uiLanguageDirection'],'role':'application','aria-label':N(_0x1dde99,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x1dde99,'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',_0x54b47a=>{this['_updateItemPositionInFocusables'](_0x54b47a['source']);}),this['list']['forEach'](_0x24d2e7=>{this['focusTracker']['add'](_0x24d2e7['element']),this['_updateItemPositionInFocusables'](_0x24d2e7);}),this['list']['on']('change',(_0x2432f4,_0x2fb80d)=>{for(const _0x40be0c of _0x2fb80d['removed'])this['focusTracker']['remove'](_0x40be0c['element']),this['focusables']['remove'](_0x40be0c);for(const _0x3ad8c5 of _0x2fb80d['added'])this['focusTracker']['add'](_0x3ad8c5['element']),this['_updateItemPositionInFocusables'](_0x3ad8c5);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x54703e){const _0x2a4a1e=this['focusables']['getIndex'](_0x54703e);let _0x2d9523,_0x2cac03;for(const _0x1c3862 of this['focusables'])if(_0x54703e['top']<_0x1c3862['top']){_0x2d9523=_0x1c3862;break;}if(_0x2cac03=_0x2d9523?this['focusables']['getIndex'](_0x2d9523):this['focusables']['length'],-0x1!==_0x2a4a1e){if(_0x2a4a1e===_0x2cac03-0x1)return;this['focusables']['remove'](_0x54703e),_0x2cac03=_0x2d9523?this['focusables']['getIndex'](_0x2d9523):this['focusables']['length'];}this['focusables']['add'](_0x54703e,_0x2cac03);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x5a8f5b){super(_0x5a8f5b),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x136f91,_0x1510be)=>_0x136f91+_0x1510be),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x2edda0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x2edda0['to']('isAnimationDisabled',_0x4d382e=>_0x4d382e?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x2edda0['to']('top',_0x304b5b=>Ot(_0x304b5b))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x469c9b=this['element']['clientHeight'];_0x469c9b&&(this['height']=_0x469c9b);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x4bfeb4{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f8edc){super(_0x2f8edc),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 _0x4c31d6=this['context']['config']['get']('sidebar.container');_0x4c31d6&&this['setContainer'](_0x4c31d6);}['setContainer'](_0x5af26c){if(!g(_0x5af26c))throw new _0x425354('sidebar-setcontainer-invalid-element');this['container']=_0x5af26c;}['_attachToContainer']({viewClass:_0x14304d='',spaceBetweenItems:_0x5a5f4a=0x19}={}){if(!g(this['container']))throw new _0x425354('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x14304d,this['_spaceBetweenItems']=_0x5a5f4a;}['rearrange']({removedAnnotation:_0x392963,previousAnnotation:_0x3e4ad0,nextAnnotation:_0x15d8e4}){const _0x9b0f91=this['getSidebarItemView'](_0x392963);this['view']['list']['remove'](_0x9b0f91),this['_destroySidebarItemView'](_0x392963),_0x3e4ad0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3e4ad0)),_0x15d8e4&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x15d8e4)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x57cd6e,activatedAnnotation:_0x1d2c65,disableAnimationOnActivatedAnnotation:_0x1035bf}){if(this['_activeAnnotation']=_0x1d2c65,_0x57cd6e){_0x57cd6e['isActive']=!0x1;const _0x31276c=this['getSidebarItemView'](_0x57cd6e);_0x31276c&&_0x1035bf&&(_0x31276c['isAnimationDisabled']=!0x1);}if(_0x1d2c65){const _0x465c87=this['getSidebarItemView'](_0x1d2c65);_0x465c87&&(_0x1d2c65['isActive']=!0x0,_0x1035bf&&(_0x465c87['isAnimationDisabled']=!0x0,_0x465c87['top']+=0x1),this['_alignToTargetRect'](_0x465c87));}}['_detachFromContainer'](_0x5704d3){if(this['view']['element']['remove'](),_0x5704d3){for(const _0x62f567 of _0x5704d3)this['_destroySidebarItemView'](_0x62f567);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5a7caf,_0xe035ec){_0xe035ec||(_0xe035ec=_0x5a7caf['view']);const _0x40a3e2=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x40a3e2,_0x5a7caf),this['_annotationToSidebarItemView']['set'](_0x5a7caf,_0x40a3e2),_0x40a3e2['content']['add'](_0xe035ec),this['listenTo'](_0x5a7caf['view'],'change:targetRect',(_0x479fdd,_0x28b685,_0x24bfab)=>{const _0x1b2fb0=this['_getTargetTop'](_0x5a7caf,_0x24bfab);_0x40a3e2['_targetTop']!=_0x1b2fb0&&(_0x40a3e2['_targetTop']=_0x1b2fb0,this['_setItemTop'](_0x40a3e2,_0x1b2fb0));}),this['listenTo'](_0x40a3e2,'change:top',()=>{this['_recalculate'](_0x40a3e2,'top');}),this['listenTo'](_0x40a3e2,'change:bottom',()=>{this['_recalculate'](_0x40a3e2,'bottom');}),this['_alignToTargetRect'](_0x40a3e2);const _0x494a14=this['_getItemBefore'](_0x40a3e2);if(_0x494a14)this['_alignAfterItem'](_0x494a14,_0x40a3e2)||this['_alignToTargetRect'](_0x40a3e2);else this['_alignToTargetRect'](_0x40a3e2);return this['_updateLastItem'](),this['view']['list']['add'](_0x40a3e2),_0x40a3e2;}['_alignForTopChange'](_0xd9211){if(!_0xd9211['content']['length'])return;const _0x4ccfcc=this['_getItemBefore'](_0xd9211);if(!_0x4ccfcc)return;const _0x11646e=this['_sidebarItemViewToAnnotation']['get'](_0x4ccfcc),_0x1ac89d=this['_activeAnnotation'];_0x1ac89d&&_0x1ac89d===_0x11646e?this['_alignAfterItem'](_0x4ccfcc,_0xd9211):this['_alignBeforeItem'](_0xd9211,_0x4ccfcc);}['_alignForBottomChange'](_0x1a812d){if(!_0x1a812d['content']['length'])return;const _0x31468d=this['_getItemAfter'](_0x1a812d);if(!_0x31468d)return;const _0x2fa488=this['_sidebarItemViewToAnnotation']['get'](_0x31468d),_0x445327=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x59f690=this['_activeAnnotation'];_0x59f690&&_0x59f690===_0x2fa488&&_0x445327?(this['_alignBeforeItem'](_0x31468d,_0x1a812d),this['_alignAfterItem'](_0x1a812d,_0x31468d)):_0x59f690&&_0x59f690===_0x2fa488?this['_alignBeforeItem'](_0x31468d,_0x1a812d):this['_alignAfterItem'](_0x1a812d,_0x31468d);}['_recalculate'](_0xa37129,_0x3c2dec){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5ddd3d,changedProp:_0x22448c}of this['_recalculateBuffer'])'top'===_0x22448c?this['_alignForTopChange'](_0x5ddd3d):this['_alignForBottomChange'](_0x5ddd3d);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0xa37129,'changedProp':_0x3c2dec});}['getSidebarItemView'](_0x368d7f){return this['_annotationToSidebarItemView']['get'](_0x368d7f);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x249986){const _0x220943=this['getSidebarItemView'](_0x249986);this['stopListening'](_0x220943),this['stopListening'](_0x249986['view']),_0x220943['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x249986),this['_sidebarItemViewToAnnotation']['delete'](_0x220943);}['_createSidebarView'](){const _0x8695e1=new H(this['context']['locale']);return _0x8695e1['render'](),this['on']('change:_lastItem',(_0x2b4997,_0x53c7b1,_0x586aed,_0x3435b7)=>{_0x3435b7&&_0x8695e1['unbind']('minHeight'),_0x586aed?_0x8695e1['bind']('minHeight')['to'](_0x586aed,'bottom'):_0x8695e1['minHeight']=null;}),_0x8695e1;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3787fb){const _0x5d75af=this['_sidebarItemViewToAnnotation']['get'](_0x3787fb),_0xbbbe3d=_0x5d75af&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5d75af)-0x1);return _0xbbbe3d&&this['getSidebarItemView'](_0xbbbe3d)||null;}['_getItemAfter'](_0x2ed8f){const _0xfb5d8=this['_sidebarItemViewToAnnotation']['get'](_0x2ed8f),_0x518304=_0xfb5d8&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xfb5d8)+0x1);return _0x518304&&this['getSidebarItemView'](_0x518304)||null;}['_alignBeforeItem'](_0x59b49f,_0x33aa8a){_0x59b49f['updateHeight']();const _0x496a16=G(_0x33aa8a['bottom']+this['_spaceBetweenItems'],_0x59b49f['top']);return!!_0x496a16&&(this['_setItemTop'](_0x33aa8a,_0x33aa8a['top']-_0x496a16),!0x0);}['_alignAfterItem'](_0x27dcfb,_0x322da3){_0x27dcfb['updateHeight']();const _0x2af414=G(_0x27dcfb['bottom']+this['_spaceBetweenItems'],_0x322da3['top']);return!!_0x2af414&&(this['_setItemTop'](_0x322da3,_0x322da3['top']+_0x2af414,!0x1),!0x0);}['_alignToTargetRect'](_0x4d6171){const _0x24c221=this['_sidebarItemViewToAnnotation']['get'](_0x4d6171);if(!_0x24c221||!_0x24c221['target']||!_0x24c221['targetRect'])return;const _0xdbd9a=this['_getTargetTop'](_0x24c221,_0x24c221['targetRect']);this['_setItemTop'](_0x4d6171,_0xdbd9a);}['_getTargetTop'](_0x290f68,_0x11cdbc){if(null===_0x11cdbc)return 0x0;if(_0x290f68['target']instanceof _0x5c3397)return _0x11cdbc['top'];{const _0x2caf40=new _0x5c3397(this['view']['element'])['top'];return _0x11cdbc['top']-_0x2caf40;}}['_setItemTop'](_0x588863,_0x36c7a2,_0x1f4557=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1f4557&&(_0x36c7a2=Math['max'](_0x36c7a2,this['_getMaxAvailableTop'](_0x588863))),_0x588863['top']=_0x36c7a2;}['_getMaxAvailableTop'](_0x43e6af){let _0xd259fb=this['_getItemBefore'](_0x43e6af),_0x49c1d4=0x0;for(;_0xd259fb;)_0xd259fb['updateHeight'](),_0x49c1d4+=this['_spaceBetweenItems']+_0xd259fb['height'],_0xd259fb=this['_getItemBefore'](_0xd259fb);return _0x49c1d4;}}function G(_0x1d18e7,_0x313753){return Math['max'](_0x1d18e7-_0x313753,0x0);}function g(_0x3c082e){return null!==_0x3c082e&&'object'==typeof _0x3c082e&&0x1===_0x3c082e['nodeType'];}class e extends _0x4bfeb4{['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(_0x42d5a4){super(_0x42d5a4),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x242e1d(),this['_refreshPositioningDebounced']=_0x4b297f(()=>{_0x42d5a4['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x258afb=this['context']['plugins']['get'](j),_0x1281c3=this['context']['plugins']['get'](z);_0x258afb['register']('wideSidebar',this),_0x1281c3['container']&&_0x258afb['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x560c07){if(_0x560c07===this['activeAnnotation'])return;const _0x3c08d6=this['context']['plugins']['get'](z);_0x3c08d6['_activeAnnotation']=_0x560c07;const _0x4d92c5=this['activeAnnotation'];_0x3c08d6['refresh']({'blurredAnnotation':_0x4d92c5,'activatedAnnotation':_0x560c07}),this['activeAnnotation']=_0x560c07;}['attach'](_0x48b4b8){this['annotations']=_0x48b4b8;const _0x5d1153=this['context']['plugins']['get'](z);if(_0x5d1153['_annotations']=_0x48b4b8,this['isAttached'])throw new _0x425354('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5d1153,'set:container',()=>{this['detach'](),this['listenTo'](_0x5d1153,'change:container',_0x24a521=>{_0x24a521['off'](),this['attach'](_0x48b4b8);});}),_0x5d1153['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x41b511=_0x155e42=>{_0x155e42['updateTargetRect'](),_0x5d1153['addAnnotation'](_0x155e42);};for(const _0x577b3e of _0x48b4b8)_0x41b511(_0x577b3e);this['listenTo'](_0x48b4b8,'add',(_0x6eb8cc,_0x526bac)=>{_0x41b511(_0x526bac);}),this['listenTo'](_0x48b4b8,'remove',(_0x195225,_0x5edbec,_0x33c11c)=>{_0x5d1153['rearrange']({'removedAnnotation':_0x5edbec,'previousAnnotation':_0x48b4b8['get'](_0x33c11c-0x1),'nextAnnotation':_0x48b4b8['get'](_0x33c11c+0x1)}),_0x5edbec===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x48b4b8,'focus',(_0x3471fe,_0x3c0dcd)=>{this['setActiveAnnotation'](_0x3c0dcd);}),this['listenTo'](_0x48b4b8,'blur',()=>{this['setActiveAnnotation'](null);});const _0x3f84d3=this['context']instanceof _0x2b5820?this['context']['editors']:new _0x242e1d([this['context']]);for(const _0x4a877b of _0x3f84d3)this['_integrateWithEditorAnnotations'](_0x4a877b);this['listenTo'](_0x3f84d3,'add',(_0x54d59c,_0x3dddab)=>{this['listenTo'](_0x3dddab,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3dddab);});}),this['listenTo'](_0x3f84d3,'remove',(_0x6ea0c8,_0x228754)=>{_0x228754['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x228754['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x425354('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3c6693=this['context']['plugins']['get'](z);_0x3c6693['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3c6693),this['stopListening'](this['annotations']),this['context']instanceof _0x2b5820&&this['stopListening'](this['context']['editors']);for(const _0x3612ba of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3612ba);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x312019){if(!_0x312019['plugins']['has']('EditorAnnotations'))return;const _0x4889e9=_0x312019['plugins']['get']('EditorAnnotations'),_0x198e50=()=>{const _0x269a4b=_0x4889e9['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x269a4b[0x0]||null);};this['listenTo'](_0x4889e9,'refresh',_0x198e50),this['listenTo'](_0x4889e9,'blur',(_0x4590b9,{isAnnotationTracked:_0x79f471})=>{this['activeAnnotation']&&_0x79f471(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4889e9,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x16a6ae=>{_0x4889e9['hasDomSelection']()&&(_0x198e50(),_0x16a6ae['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4889e9);}['_destroyEditorAnnotationsIntegration'](_0x2512bf){this['stopListening'](_0x2512bf),this['_editorAnnotations']['remove'](_0x2512bf);}}class C extends _0x20f04f{['counterView'];constructor(_0x229176){super(_0x229176);const _0x4a85f1=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x2eeb9c,_0x1e341b)=>_0x2eeb9c?'...':_0x1e341b['toString']()),this['set']('annotationType',''),this['icon']=_0x2853dc,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4a85f1['to']('annotationType',_0x1c935d=>'ck-annotation-counter__badge--'+_0x1c935d),_0x4a85f1['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4a85f1['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x4bfeb4{['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(_0x160058){super(_0x160058),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x2c5617())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x242e1d(),this['_refreshPositioningDebounced']=_0x4b297f(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x50dec5(this['context']['locale']),this['balloonPanelView']=new _0x73c1ce(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x9075e9){this['annotations']=_0x9075e9;const _0x33faf0=this['context']['plugins']['get'](z),_0x5cae68=this['balloonPanelView'];if(_0x33faf0['_annotations']=_0x9075e9,this['isAttached'])throw new _0x425354('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x33faf0,'set:container',()=>{this['detach'](),this['listenTo'](_0x33faf0,'change:container',_0x4444e2=>{_0x4444e2['off'](),this['attach'](_0x9075e9);});}),_0x33faf0['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x37ea0d=_0x419b17=>{const _0xeb7f92=new C(this['context']['locale']);_0x33faf0['addAnnotation'](_0x419b17,_0xeb7f92),this['_annotationToNarrowView']['set'](_0x419b17,_0xeb7f92),_0xeb7f92['bind']('isDirty','annotationType','number')['to'](_0x419b17['view'],'isDirty','type','length'),_0xeb7f92['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x5cae68['content']['first']!==_0x419b17['view']?(this['_showBalloon'](_0x419b17),_0x419b17['view']['element']['focus'](),this['setActiveAnnotation'](_0x419b17)):this['setActiveAnnotation'](null);});};for(const _0x22926a of _0x9075e9)_0x37ea0d(_0x22926a);this['listenTo'](_0x9075e9,'add',(_0x59d9fd,_0x544ca2)=>{_0x37ea0d(_0x544ca2);}),this['listenTo'](_0x9075e9,'remove',(_0x17ae89,_0x4152a0,_0x229856)=>{this['_annotationToNarrowView']['get'](_0x4152a0)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4152a0),_0x33faf0['rearrange']({'removedAnnotation':_0x4152a0,'previousAnnotation':_0x9075e9['get'](_0x229856-0x1),'nextAnnotation':_0x9075e9['get'](_0x229856+0x1)}),_0x4152a0===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x9075e9,'focus',(_0xaf4eea,_0x1229c0)=>{this['setActiveAnnotation'](_0x1229c0);}),this['listenTo'](_0x9075e9,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x2a46ef,_0x38df51)=>{_0x38df51['keyCode']===_0x3c889a['esc']&&_0x5cae68['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x5cae68['content']['first']),this['_hideBalloon'](),_0x38df51['stopPropagation'](),_0x38df51['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x2e6e89,_0x34a000)=>{const _0x1468f4=_0x34a000['target'];_0x5cae68['isVisible']&&_0x5cae68['element']['contains'](_0x1468f4)||_0x33faf0['view']['element']['contains'](_0x1468f4)||_0x2e6e89['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x849756=>_0x849756['contains'](_0x1468f4))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2b0e22=this['context']instanceof _0x2b5820?this['context']['editors']:new _0x242e1d([this['context']]);for(const _0x4e0194 of _0x2b0e22)this['_integrateWithEditorAnnotations'](_0x4e0194);this['listenTo'](_0x2b0e22,'add',(_0x3e75f6,_0xe65572)=>{this['listenTo'](_0xe65572,'ready',()=>{this['_integrateWithEditorAnnotations'](_0xe65572);});}),this['listenTo'](_0x2b0e22,'remove',(_0x337248,_0x186f07)=>{_0x186f07['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x186f07['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x55f316){if(_0x55f316===this['activeAnnotation'])return;const _0x35b691=this['context']['plugins']['get'](z);if(_0x35b691['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x55f316,'disableAnimationOnActivatedAnnotation':!0x0}),_0x55f316)_0x35b691['getSidebarItemView'](_0x55f316)?this['_showBalloon'](_0x55f316):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x55f316;}['detach'](){if(!this['isAttached'])throw new _0x425354('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2dd0cd=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0xf28596=>_0xf28596['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2dd0cd['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2b5820&&this['stopListening'](this['context']['editors']);for(const _0x4156b6 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4156b6);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'](_0x4acba2){if(!_0x4acba2['plugins']['has']('EditorAnnotations'))return;const _0x3b996d=_0x4acba2['plugins']['get']('EditorAnnotations'),_0x1f786d=this['context']['plugins']['get'](z),_0x158cd7=this['annotations'],_0x260dcd=this['balloonPanelView'],_0x3b6eda=()=>{const _0x19ba6d=_0x3b996d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x19ba6d),this['setActiveAnnotation'](_0x19ba6d[0x0]||null);};this['listenTo'](_0x3b996d,'refresh',_0x3b6eda),this['listenTo'](_0x3b996d,'blur',(_0x208a70,{isAnnotationTracked:_0x449728})=>{this['activeAnnotation']&&_0x449728(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3b996d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x158cd7,'blur',_0x42dd13=>{_0x3b996d['hasDomSelection']()&&_0x42dd13['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1d08a9,_0x1257a4)=>{const _0x1ea72d=_0x1257a4['target'];_0x260dcd['isVisible']&&_0x260dcd['element']['contains'](_0x1ea72d)||_0x1f786d['view']['element']['contains'](_0x1ea72d)||this['activeAnnotation']&&_0x3b996d['hasDomSelection']()&&(_0x3b6eda(),_0x1d08a9['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3b996d);}['_destroyEditorAnnotationsIntegration'](_0x3cb0e3){_0x3cb0e3&&(this['stopListening'](_0x3cb0e3),this['_editorAnnotations']['remove'](_0x3cb0e3));}['_setSelectedAnnotations'](_0x54c27c){for(const _0x3a3a45 of this['_selectedAnnotations'])_0x54c27c['includes'](_0x3a3a45)||this['_manuallyClosedAnnotationViews']['delete'](_0x3a3a45['view']);this['_selectedAnnotations']=_0x54c27c;}['_refreshPositioning'](){const _0x1d5a0e=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x1d5a0e['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x35df3f){if(this['_manuallyClosedAnnotationViews']['has'](_0x35df3f['view']))return;const _0xc11c44=this['balloonPanelView']['content']['first'];_0xc11c44!==_0x35df3f['view']?(_0xc11c44&&this['_detachListeners'](_0xc11c44),this['_attachListeners'](_0x35df3f['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x35df3f['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4b224b=this['balloonPanelView']['content']['first'],_0x348b9a=_0x4b224b&&this['annotations']['getByView'](_0x4b224b);if(!_0x348b9a||!this['_annotationToNarrowView']['has'](_0x348b9a))return;const _0x4db9d7=this['_annotationToNarrowView']['get'](_0x348b9a)['element'],_0x11fcfa=(function(){const _0x2c8a60=_0x73c1ce['defaultPositions'];return[_0x2c8a60['southArrowNorthEast'],_0x2c8a60['northArrowSouthEast'],_0x2c8a60['southArrowNorth'],_0x2c8a60['northArrowSouth'],_0x2c8a60['southArrowNorthWest'],_0x2c8a60['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x4db9d7,'positions':_0x11fcfa});}['_hideBalloon'](){const _0x843a7f=this['balloonPanelView'],_0x4b2c71=_0x843a7f['content']['first'];_0x4b2c71&&(this['_detachListeners'](_0x4b2c71),_0x843a7f['unpin'](),_0x843a7f['content']['clear']());}['_attachListeners'](_0x47eac9){this['listenTo'](_0x47eac9,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x47eac9,'Esc',(_0x320b5b,_0x20d85d)=>{this['_manuallyClosedAnnotationViews']['add'](_0x47eac9),this['_hideBalloon'](),_0x20d85d();});}['_detachListeners'](_0x11d1ee){this['stopListening'](_0x11d1ee);}}class c extends _0x3d3386{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x89ec3d,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3744a7){super(_0x3744a7),_0x3744a7['editing']['view']['addObserver'](_0x5a2f6),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x3744a7['plugins']['get'](_0x89ec3d),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x4b297f(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x514d50=this['editor']['plugins']['get'](j);_0x514d50['context']===this['editor']&&(_0x514d50['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x589916,_0x4512dd)=>{const _0x5c4966=this['_balloon'];if(this['isAttached']&&_0x5c4966['visibleView']){const _0x2c2864=this['annotations']['getByView'](_0x5c4966['visibleView']);_0x2c2864&&this['_closeAnnotation'](_0x2c2864),_0x4512dd();}}));}['afterInit'](){const _0x56f28b=this['editor']['plugins']['get'](j);_0x56f28b['context']===this['editor']&&(_0x56f28b['hasActive']()||_0x56f28b['switchTo']('inline'));}['setActiveAnnotation'](_0x505994){_0x505994!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x505994&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x505994)&&this['_addAnnotationToBalloon'](_0x505994,!0x0),_0x505994['isActive']=!0x0),_0x505994||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x505994);}['attach'](_0x161c38){this['annotations']=_0x161c38;const _0x181ac3=this['editor']['plugins']['get'](j),_0x4523d5=this['_balloon'];if(this['isAttached'])throw new _0x425354('inlineannotations-attach-already-attached',this);if(_0x181ac3['context']!==this['editor'])throw new _0x425354('inlineannotations-not-allowed-with-context',this);const _0x21aea6=this['editor']['plugins']['get'](b);this['listenTo'](_0x21aea6,'refresh',()=>{const _0x19250e=_0x21aea6['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x318ae7,_0x298cef;!this['_forceRefresh']&&(_0x318ae7=_0x19250e,_0x298cef=this['_selectedAnnotations'],_0x318ae7['length']===_0x298cef['length']&&_0x318ae7['every'](_0x4de695=>_0x298cef['includes'](_0x4de695)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x19250e),this['setActiveAnnotation'](_0x19250e[0x0]||null));}),this['listenTo'](_0x21aea6,'blur',(_0x45aa26,{isAnnotationTracked:_0x1cab01})=>{this['activeAnnotation']&&_0x1cab01(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x21aea6,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1cd3fc,_0x2cef4d,_0x2ec0cf)=>{_0x2ec0cf||this['setActiveAnnotation'](null);}),this['listenTo'](_0x161c38,'remove',(_0x8336f1,_0x294244)=>{this['_removeAnnotationFromBalloon'](_0x294244),_0x294244===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4523d5,'change:visibleView',(_0x147f52,_0x21e741,_0xbcfd34,_0x4bbac6)=>{_0x4bbac6&&this['stopListening'](_0x4bbac6);const _0xa2a16d=_0x161c38['getByView'](_0xbcfd34);_0xbcfd34&&_0xa2a16d&&(this['listenTo'](_0xbcfd34,'change:height',()=>{_0x4523d5['updatePosition']();}),this['listenTo'](_0xbcfd34,'Esc',()=>{this['_closeAnnotation'](_0xa2a16d),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xa2a16d&&this['setActiveAnnotation'](_0xa2a16d));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x4523d5['visibleView']&&(_0x161c38['getByView'](_0x4523d5['visibleView'])&&_0x4523d5['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 _0x425354('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x3cdab4 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x3cdab4);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x293a1c){for(const _0x10635c of this['_selectedAnnotations'])_0x293a1c['includes'](_0x10635c)||this['_manuallyClosed']['delete'](_0x10635c);for(const _0x392b54 of this['annotations'])_0x293a1c['includes'](_0x392b54)||this['_removeAnnotationFromBalloon'](_0x392b54);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0xf3a197 of _0x293a1c)this['_addAnnotationToBalloon'](_0xf3a197);}this['_selectedAnnotations']=_0x293a1c;}['_addAnnotationToBalloon'](_0x5c2909,_0x21da0f=!0x1){this['_manuallyClosed']['has'](_0x5c2909)||(this['_addedAnnotations']['has'](_0x5c2909)||this['_balloon']['hasView'](_0x5c2909['view'])||(this['_addedAnnotations']['add'](_0x5c2909),this['_balloon']['add']({'stackId':_0x5c2909['view']['id'],'view':_0x5c2909['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5c2909)}})),_0x21da0f&&this['_balloon']['showStack'](_0x5c2909['view']['id']));}['_getBalloonTargetForAnnotation'](_0x3a4a69){const _0x3f26ad=_0x3a4a69['target'],_0x189f03=this['editor']['editing']['view'],_0x5b7479=_0x189f03['document']['selection']['getFirstRange'](),_0x4e94f4=_0x189f03['domConverter']['viewRangeToDom'](_0x5b7479);if(_0x4e94f4['collapse'](!0x0),_0x3f26ad){if(_0x3f26ad instanceof _0x5c3397)return _0x3f26ad;let _0x52e3c9=[];for(const _0xac9cd1 of _0x3f26ad)_0x52e3c9['push'](...F(_0xac9cd1['getClientRects']()));_0x52e3c9=function(_0x277a33){const _0x2868fa=[];let _0x409a92=_0x277a33[0x0];for(let _0x283889=0x1;_0x283889<_0x277a33['length'];_0x283889++)P(_0x409a92,_0x277a33[_0x283889])?_0x409a92['width']+=_0x277a33[_0x283889]['width']:(_0x2868fa['push'](_0x409a92),_0x409a92=_0x277a33[_0x283889]);return _0x2868fa['push'](_0x409a92),_0x2868fa;}(_0x52e3c9);const _0x538d68=_0x4e94f4['getBoundingClientRect']();return _0x52e3c9['find'](_0x3e42b6=>_0x3e42b6['top']<=_0x538d68['top']&&_0x3e42b6['bottom']>=_0x538d68['bottom']&&_0x3e42b6['left']<=_0x538d68['left']&&_0x3e42b6['right']>=_0x538d68['right'])||_0x52e3c9[0x0];}return _0x3a4a69['targetRect']||_0x4e94f4;}['_removeAnnotationFromBalloon'](_0x22f118){this['_addedAnnotations']['has'](_0x22f118)&&this['_balloon']['hasView'](_0x22f118['view'])&&(this['_addedAnnotations']['delete'](_0x22f118),this['_balloon']['remove'](_0x22f118['view']));}['_closeAnnotation'](_0x37a425){this['_manuallyClosed']['add'](_0x37a425),this['_removeAnnotationFromBalloon'](_0x37a425);}}function F(_0x1e16c0){return Array['from'](_0x1e16c0)['map'](DOMRect['fromRect']);}function P(_0x2d1e4e,_0x464d06){return _0x2d1e4e['top']===_0x464d06['top']&&_0x2d1e4e['bottom']===_0x464d06['bottom']&&_0x2d1e4e['right']===_0x464d06['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x50bb2c,_0x3d0295){super(_0x50bb2c),this['set']('isEmpty',!_0x3d0295['length']),this['focusTracker']=new _0x4e7aba(),this['_annotationViews']=_0x3d0295,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x540a82({'focusables':_0x3d0295,'focusTracker':this['focusTracker']}),this['listenTo'](_0x3d0295,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x3d0295,'remove',(_0x4dc602,_0x54f1fe)=>{_0x54f1fe['isActive']&&this['focus'](),_0x3d0295['length']||(this['isEmpty']=!0x0);});const _0xb9ef66=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x50bb2c,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x3d0295},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0xb9ef66['if']('isEmpty','ck-hidden',_0x17121b=>!_0x17121b)]},'children':[{'text':N(_0x50bb2c,'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 _0xd8550e of this['_annotationViews'])this['focusTracker']['add'](_0xd8550e['element']);this['_annotationViews']['on']('change',(_0x33f162,{added:_0x4519b8,removed:_0x52d632})=>{for(const _0x173a15 of _0x4519b8)this['focusTracker']['add'](_0x173a15['element']);for(const _0x354499 of _0x52d632)this['focusTracker']['remove'](_0x354499['element']);});}}class p extends _0x4bfeb4{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x2e601f){super(_0x2e601f),this['archivedThreads']=new _0x242e1d();}['init'](){const _0x410e62=this['context'],_0x1ea620=_0x410e62['plugins']['get'](o),_0x1a6ad6=_0x410e62['plugins']['get'](y);this['listenTo'](_0x1ea620,'addCommentThread',(_0x5f4d5b,{threadId:_0x204335})=>{const _0x3fa328=_0x1ea620['getCommentThread'](_0x204335);_0x3fa328['archivedAt']&&this['archivedThreads']['add'](_0x3fa328,this['_calculatePosition'](_0x3fa328['archivedAt'])),this['listenTo'](_0x3fa328,'change:archivedAt',(_0x403678,_0x2b4149,_0x5a57aa)=>{_0x5a57aa?this['archivedThreads']['has'](_0x3fa328)||this['archivedThreads']['add'](_0x3fa328,this['_calculatePosition'](_0x3fa328['archivedAt'])):this['archivedThreads']['has'](_0x3fa328)&&this['archivedThreads']['remove'](_0x3fa328);});}),this['listenTo'](_0x1ea620,'removeCommentThread',(_0x392b76,{threadId:_0x1dd9e5})=>{const _0x562012=_0x1ea620['getCommentThread'](_0x1dd9e5);this['stopListening'](_0x562012),this['archivedThreads']['has'](_0x562012)&&this['archivedThreads']['remove'](_0x562012);},{'priority':'highest'}),this['listenTo'](_0x1a6ad6['collection'],'focus',(_0x1b0ac6,_0x32ec9a)=>{_0x32ec9a['isVisible']||(_0x32ec9a['isActive']=!0x0,_0x1a6ad6['activate'](_0x32ec9a));});}['_calculatePosition'](_0x3f13e5){const _0x5b1cd8=[...this['archivedThreads']]['findIndex'](_0x37c29f=>_0x37c29f['archivedAt']<_0x3f13e5);return _0x5b1cd8>-0x1?_0x5b1cd8:this['archivedThreads']['length'];}}class a extends _0x3d3386{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x114f2b];}constructor(_0x50f767){super(_0x50f767),this['annotationViews']=new _0x15debb(),this['_pendingThreads']=[];}['init'](){const _0x4a0626=this['editor'],_0x1879d1=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x4a0626['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x20f04f,!0x0)),_0x4a0626['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2e0ed3=this['_createCommentsArchiveButton'](_0x331cf1);return _0x2e0ed3['set']({'role':'menuitemcheckbox'}),_0x2e0ed3;});const _0x27abef=_0x4a0626['plugins']['get'](p),_0x27f176=_0x4a0626['plugins']['get']('Annotations'),_0x216d40=_0x4a0626['plugins']['get']('CommentsRepository');_0x27abef['archivedThreads']['forEach'](_0x284dac=>{this['_handleNewThread'](_0x284dac);}),this['listenTo'](_0x27abef['archivedThreads'],'add',(_0x480723,_0x4b3eb8)=>{this['_handleNewThread'](_0x4b3eb8);}),this['listenTo'](_0x27f176['collection'],'add',(_0x34c5e6,_0xdd7197)=>{const _0x162a3e=this['_pendingThreads']['find'](_0x31ff8c=>{const _0xc3370=_0x216d40['_threadToController']['get'](_0x31ff8c);return _0xc3370&&_0xdd7197['innerView']===_0xc3370['view'];});if(_0x162a3e){const _0x3c4e40=this['_calculatePosition'](_0x162a3e['archivedAt']);this['_addAnnotationToArchive'](_0xdd7197,_0x3c4e40),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x162a3e),0x1);}}),this['listenTo'](_0x27abef['archivedThreads'],'remove',(_0x21eaff,_0x4f6cc8)=>{const _0x9d3239=_0x4a0626['config']['get']('collaboration.channelId');if(!_0x9d3239||_0x4f6cc8['channelId']===_0x9d3239){if(this['_pendingThreads']['includes'](_0x4f6cc8))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x4f6cc8),0x1);else{const _0x4bd6b2=_0x216d40['_threadToController']['get'](_0x4f6cc8),_0x5100b0=_0x27f176['getByInnerView'](_0x4bd6b2['view']);this['annotationViews']['remove'](_0x5100b0['view']),this['stopListening'](_0x5100b0),this['stopListening'](_0x5100b0['focusableElements']);}}}),this['listenTo'](_0x27f176['collection'],'add',(_0x3a8a6d,_0x103e9c)=>{this['listenTo'](_0x103e9c,'escape',_0x1879d1);}),this['listenTo'](_0x27f176['collection'],'remove',(_0x1181b9,_0x49f562)=>{this['stopListening'](_0x49f562,'escape',_0x1879d1);});}['_addAnnotationToArchive'](_0x5e1d9a,_0x53a349){this['listenTo'](_0x5e1d9a,'set:isVisible',_0x531651=>{_0x531651['return']=!0x1,_0x531651['stop']();}),this['annotationViews']['add'](_0x5e1d9a['view'],_0x53a349);}['_handleNewThread'](_0x5727fa){const _0x54b58e=this['editor']['plugins']['get']('CommentsRepository'),_0x566f17=this['editor']['plugins']['get']('Annotations'),_0x5c0e4b=this['editor']['config']['get']('collaboration.channelId');if(!_0x5c0e4b||_0x5727fa['channelId']===_0x5c0e4b){const _0x5e2e35=_0x54b58e['_threadToController']['get'](_0x5727fa);if(!_0x5e2e35)return void this['_pendingThreads']['push'](_0x5727fa);const _0x160ea0=this['_calculatePosition'](_0x5727fa['archivedAt']),_0x5005b1=_0x566f17['getByInnerView'](_0x5e2e35['view']);_0x5005b1['isVisible']&&_0x566f17['_visibleAnnotations']['remove'](_0x5005b1),this['_addAnnotationToArchive'](_0x5005b1,_0x160ea0);}}['_calculatePosition'](_0x498770){const _0x8d5465=this['editor']['config']['get']('collaboration.channelId'),_0x109d7f=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x422ae0=>_0x422ae0['channelId']===_0x8d5465)['findIndex'](_0x2c020c=>_0x2c020c['archivedAt']<_0x498770);return _0x109d7f<0x0||_0x109d7f>this['annotationViews']['length']?this['annotationViews']['length']:_0x109d7f-0x1;}['_toggleDialog'](){const _0x235bff=this['editor'],_0x28b5b=_0x235bff['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x235bff['locale'],this['annotationViews'])),'commentsArchive'===_0x28b5b['id']?_0x28b5b['hide']():_0x28b5b['show']({'id':'commentsArchive','title':N(_0x235bff['locale'],'COMMENTS_ARCHIVE'),'icon':_0xd8de89,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x2443a8['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x4cba37,_0x5e91e9=!0x1){const _0x5e5101=this['editor']['locale'],_0x55a5f0=this['editor']['plugins']['get']('Dialog'),_0x3240ae=new _0x4cba37(_0x5e5101);return _0x3240ae['bind']('isEnabled')['to'](this,'isEnabled'),_0x3240ae['bind']('isOn')['to'](_0x55a5f0,'id',_0x4e6cb6=>'commentsArchive'===_0x4e6cb6),_0x3240ae['set']({'label':N(_0x5e5101,'COMMENTS_ARCHIVE'),'icon':_0xd8de89,'isToggleable':!0x0}),_0x5e91e9&&(_0x3240ae['tooltip']=!0x0),this['listenTo'](_0x3240ae,'execute',()=>this['_toggleDialog']()),_0x3240ae;}['_hideDialogOnAnnotationEscape']=_0x4298e5=>{const _0x53671c=_0x4298e5['source'];if(!this['annotationViews']['has'](_0x53671c['view']))return;const _0x2560f2=this['editor']['plugins']['get']('Dialog');_0x2560f2['isOpen']&&'commentsArchive'===_0x2560f2['id']&&(_0x2560f2['hide'](),_0x4298e5['stop']());};}class gi extends _0x3d3386{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};