@ckeditor/ckeditor5-comments 47.4.0 → 47.5.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 +20 -20
  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 _0x1f8384,ContextPlugin as _0x152fb7,PendingActions as lt,Command as _0x39b56b,Plugin as _0x165a5f,Context as _0x4eea4a}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x41c8cb,uid as _0x4c5e37,KeystrokeHandler as jt,FocusTracker as _0x5f5319,diff as _0x52b175,Collection as _0x139e96,Rect as _0x3f14b6,CKEditorError as _0x266f92,first as _0x49bf05,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x2bb24d,keyCodes as _0x63f92}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x193858,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x188cb3,trimHtml as ts,LateFocusDropdownButtonView as _0x539736,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x355e93}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x3b904d}from'es-toolkit/compat';import{IconUndo as _0x130a47,IconCheck as _0x2a328a,IconPencil as _0x5939de,IconRemoveComment as _0x92b88,IconThreeVerticalDots as _0x44b678,IconAddComment as _0x1b49ba,IconCommentsArchive as _0x54b5f6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x140f1f,ButtonView as _0x47a354,ViewCollection as _0x577399,createDropdown as _0x3deee8,ListView as _0x5ca25c,focusChildOnDropdownOpen as _0x1518f9,ListItemView as _0x365663,MenuBarMenuListItemButtonView as _0x320df3,BodyCollection as _0x530e58,BalloonPanelView as _0x4534d9,ContextualBalloon as _0x15b3ff,Dialog as _0x20864c,DialogViewPosition as _0x22636}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x1cac50}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 _0x3b0de7}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x4359cf}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x41c8cb(){['model'];['view'];constructor(_0x35177d,_0x61bc16){super(),this['model']=_0x35177d,this['model']['_isAttached']=!0x0,this['view']=_0x61bc16,this['listenTo'](_0x61bc16,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x61bc16,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x61bc16,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x61bc16,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x61bc16,'addComment',(_0x5e0975,_0xb98570)=>this['addComment'](_0xb98570)),this['listenTo'](_0x61bc16,'updateComment',(_0x5c2753,_0x5dc974,_0x5ecfdc)=>this['updateComment'](_0x5dc974,_0x5ecfdc)),this['listenTo'](_0x61bc16,'removeComment',(_0x133a12,_0x3cd7c4)=>this['removeComment'](_0x3cd7c4));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x1ffbf4){this['model']['addComment']({'content':_0x1ffbf4,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x2def70,_0x14031d){this['model']['getComment'](_0x2def70)['update']({'content':_0x14031d});}['removeComment'](_0x900bb7){this['model']['getComment'](_0x900bb7)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x14d22b,_0x58bdc0,_0x149b13){const t=_0x14d22b['t'];switch(_0x58bdc0){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'},_0x149b13);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'},_0x149b13);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'},_0x149b13);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'},_0x149b13);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x149b13);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'},_0x149b13);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'},_0x149b13);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'},_0x149b13);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(_0x923db3,_0x1d166b){super(_0x923db3);const _0x2cf00b=_0x4c5e37();this['main']=this['createCollection'](),this['editable']=new Vt(_0x923db3,_0x1d166b,void 0x0,{'label':()=>N(_0x923db3,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x923db3['uiLanguageDirection'],'lang':_0x923db3['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x2cf00b},'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(_0x51911d){super(_0x51911d),this['view']=new Rt(_0x51911d['locale'],_0x51911d['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x317777=this['editor']['editing']['view'],_0xb9bd04=this['view']['editable'],_0x2e7663=_0x317777['document']['getRoot']();_0xb9bd04['name']=_0x2e7663['rootName'],this['view']['render']();const _0x3d5294=_0xb9bd04['element'];this['setEditableElement'](_0xb9bd04['name'],_0x3d5294),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x317777['attachDomRoot'](_0x3d5294),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x41c8cb(_0x1f8384){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x3c4fe9={}){function _0x3cddeb(_0x4d3ce4){return _0x4d3ce4['map'](_0x285a6a=>String['fromCharCode'](_0x285a6a))['join']('');}(_0x3c4fe9=Object['assign']({},_0x3c4fe9))['plugins']||(_0x3c4fe9['plugins']=hs['defaultPlugins']),super(_0x3c4fe9),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[_0x3cddeb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cddeb([0x76,0x69,0x65,0x77])][_0x3cddeb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cddeb([0x61,0x75,0x74,0x6f]),this[_0x3cddeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3cddeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cddeb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3cddeb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3cddeb([0x6f,0x6b])});}['create'](){const _0x5e5868=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5e5868))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0xc18d11=>{const _0x3ef22d=this['model']['document']['getRoot'](),_0x4879d3=_0x3ef22d&&_0x3ef22d['getChild'](_0x3ef22d['childCount']-0x1);_0xc18d11['setSelection'](_0x4879d3,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x44bae1=this['editing']['view'],_0x49cd6b=_0x44bae1['document']['getRoot'](),_0x524568=_0x49cd6b['getChild'](0x0);_0x49cd6b['childCount']>0x1||!_0x524568||'p'!=_0x524568['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x44bae1,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x524568['placeholder']=this['placeholder']),Ft({'view':_0x44bae1,'element':_0x524568,'keepOnFocus':!0x0}),this['placeholderElement']=_0x524568);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x532e96,_0x3375e1={}){super(_0x532e96),this['editor']=null,this['_editorConfig']=_0x3375e1,this['set']('value',_0x3375e1['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x532e96,'Reply...')),this['set']('submitLabel',N(_0x532e96,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x5f5319(),this['focusCycler']=new _0x140f1f({'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',(_0x24dd75,_0x24ba18)=>{this['cancelButtonView']['fire']('execute'),_0x24ba18();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3b56d0,_0x3ee3b5)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3ee3b5());}),this['on']('submit',(_0x34139d,_0x31e5db)=>{_0x31e5db['length']>0xfde8?(alert(N(_0x532e96,'TOO_LONG_COMMENT_ALERT',[_0x31e5db['length'],0xfde8])),_0x34139d['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 _0x16aa56=this['editor'];this['element']['insertBefore'](_0x16aa56['ui']['element'],this['element']['firstChild']),_0x16aa56['model']['document']['on']('change',()=>this['value']=_0x16aa56['getData']()),_0x16aa56['bind']('placeholder')['to'](this),this['focusables']['add'](_0x16aa56['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4638a8){-0x1===_0x4638a8?(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:_0x9d630}=this,_0x52d7e6=new _0x47a354(_0x9d630);return _0x52d7e6['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x52d7e6['withText']=!0x0,_0x52d7e6['bind']('label')['to'](this,'submitLabel'),_0x52d7e6['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x52d7e6['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x536e64,_0x168a8c)=>!_0x168a8c&&!!_0x536e64['trim']()),_0x52d7e6;}['_createCancelButton'](){const {locale:_0x4b32b5}=this,_0x33c61f=new _0x47a354(_0x4b32b5);return _0x33c61f['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x33c61f['label']=N(_0x4b32b5,'Cancel'),_0x33c61f['withText']=!0x0,_0x33c61f['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x33c61f;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x5d789f=>{this['focusTracker']['add'](_0x5d789f['element']);}),this['focusables']['on']('change',(_0x46e03d,_0x472025)=>{for(const _0x1a79cd of Array['from'](_0x472025['added'])['reverse']())this['focusTracker']['add'](_0x1a79cd['element']);});}}class ie extends kt{constructor(_0x186388,_0x4c9eb5,_0x28ca93){super(_0x186388),this['commentInputView']=new es(_0x186388,_0x28ca93),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4adc72,_0x2d4e40)=>_0x4adc72||!!_0x2d4e40),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 _0x193858(_0x186388,_0x4c9eb5),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'](_0x32f95c){this['commentInputView']['focus'](_0x32f95c);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x21b9a3,_0x2ee8cd)=>{const {submitButtonView:_0x464707,cancelButtonView:_0x16df27,editor:_0x3386de}=this['commentInputView'];[_0x464707['element'],_0x16df27['element'],_0x3386de?_0x3386de['editing']['view']['getDomRoot']():null]['filter'](_0x4c0274=>_0x4c0274)['some'](_0xe054f=>_0xe054f['contains'](_0x2ee8cd['target']))||(this['focus'](),_0x2ee8cd['preventDefault']());});}}class rs extends kt{constructor(_0x22f4cc){super(_0x22f4cc);const _0x50de5d=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x50de5d['to']('count',_0x143643=>N(_0x22f4cc,'NUMBER_OF_COMMENTS',_0x143643))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2f4030,_0x9ab699,_0x5781f3){super(_0x2f4030);const _0x3343b3=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x9ab699['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x9ab699,this['_config']=_0x5781f3,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x5f5319(),this['keystrokes']=new jt(),this['focusCycler']=new _0x140f1f({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x360176=>this['commentViews']['map'](_0x571d04=>_0x571d04['element'])['includes'](_0x360176['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x2f4030),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x239242=>_0x239242-this['_config']['maxCommentsWhenCollapsed']);for(const _0x4eb311 of _0x9ab699['comments'])this['_handleNewCommentModel'](_0x4eb311);this['_handleInfoComment'](),this['listenTo'](_0x9ab699['comments'],'add',(_0x3514,_0x49de90)=>{const _0x1906df=this['_calculatePosition'](_0x49de90);this['length']++,this['_handleNewCommentModel'](_0x49de90,_0x1906df),this['refreshVisibleViews']();}),this['listenTo'](_0x9ab699['comments'],'remove',(_0x5994c5,_0x4e5a28)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4e5a28),this['refreshVisibleViews']();}),this['listenTo'](_0x9ab699,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x9ab699,'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',_0x3343b3['if']('length','ck-hidden',_0x2f3031=>!_0x2f3031)],'aria-label':N(_0x2f4030,'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'](_0x2e1e2b){-0x1===_0x2e1e2b?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x33cfd2 of this['commentViews'])_0x33cfd2['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x5a1b5f,_0x39fb16){const _0x133917=new this['_config']['CommentView'](this['locale'],_0x5a1b5f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x133917['viewUid']=_0x5a1b5f['id'],_0x133917['delegate']('removeComment')['to'](this),_0x133917['delegate']('updateComment')['to'](this),_0x133917['delegate']('resolveCommentThread')['to'](this),_0x133917['delegate']('editorReady')['to'](this),_0x133917['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x133917,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x133917,_0x39fb16);}['_calculatePosition'](_0x4ca0e7){const _0xaaee6c=this['_model']['_findOptimalIndex'](_0x4ca0e7);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x4ca0e7['authoredAt']?_0xaaee6c-0x1:_0xaaee6c:_0xaaee6c-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x56eb59={'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'],_0x56eb59,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x56eb59));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x232955){const _0xe272c2=this['commentViews']['remove'](_0x232955['id']);this['stopListening'](_0xe272c2),_0xe272c2['isEditMode']&&this['_updateHasDirtyComment'](),_0xe272c2['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1ea64c=>_0x1ea64c['isEditMode']);}['_rearrangeCollapse'](){const _0x3aef9a=function(_0x381723){const _0xc579d=new _0x139e96();for(const _0x29819c of _0x381723)_0xc579d['add'](_0x29819c);return _0xc579d;}(this['commentViews']),_0x3a6c23=this['_collapsedCommentsView']['count'];for(let _0x39bf2f=0x1;_0x39bf2f<=_0x3a6c23;_0x39bf2f++)_0x3aef9a['remove'](0x1);for(const _0x4b8a0b of _0x3aef9a)_0x4b8a0b['collapse']();_0x3a6c23>0x0&&_0x3aef9a['add'](this['_collapsedCommentsView'],0x1),ns(_0x52b175(Array['from'](this['visibleViews']),Array['from'](_0x3aef9a)),this['visibleViews'],_0x3aef9a);}['_rearrangeExpand'](){ns(_0x52b175(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x111ed6 of this['visibleViews'])_0x111ed6['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x539bcb=>{this['focusTracker']['add'](_0x539bcb['element']),this['keystrokes']['listenTo'](_0x539bcb['element']);}),this['commentViews']['on']('change',(_0x1ae5d9,_0x47aafd)=>{for(const _0x328654 of _0x47aafd['removed'])this['focusTracker']['remove'](_0x328654['element']),this['keystrokes']['stopListening'](_0x328654['element']);for(const _0x4cf4f1 of Array['from'](_0x47aafd['added'])['reverse']())this['focusTracker']['add'](_0x4cf4f1['element']),this['keystrokes']['listenTo'](_0x4cf4f1['element']);});}}function ns(_0xdd8c44,_0x49dbe2,_0x273ecf){let _0x5e87b8=0x0;for(const _0x5bb72a of _0xdd8c44)switch(_0x5bb72a){case'insert':_0x49dbe2['add'](_0x273ecf['get'](_0x5e87b8),_0x5e87b8),_0x5e87b8++;break;case'delete':_0x49dbe2['remove'](_0x5e87b8);break;case'equal':_0x5e87b8++;}}class oe extends kt{constructor(_0x4a4f13){super(_0x4a4f13);const _0x4e6007=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4e6007['to']('contextValue',_0x127637=>N(_0x4a4f13,'THREAD_CONTEXT_LABEL',_0x127637)),'tabindex':-0x1},'children':[{'text':_0x4e6007['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2b150d,_0x377fa5){super(_0x2b150d);const _0x2bcdcd=this['bindTemplate'];this['_model']=_0x377fa5,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x5f5319(),this['keystrokes']=new jt(),this['focusCycler']=new _0x140f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x5a6a75=>!!_0x5a6a75),this['bind']('contextValue')['to'](this['_model'],'context',_0x3b46ea=>_0x3b46ea&&_0x3b46ea['value']?this['_trimContextValue'](_0x3b46ea['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',_0x2bcdcd['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 _0x172aaa=new _0x47a354(this['locale']);return _0x172aaa['label']=N(this['locale'],'Reopen'),_0x172aaa['tooltip']=N(this['locale'],'Reopen'),_0x172aaa['icon']=_0x130a47,_0x172aaa['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x54f77=>!_0x54f77),_0x172aaa['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x42ec5c,_0x194a95)=>_0x42ec5c&&_0x194a95),_0x172aaa['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x172aaa;}['_trimContextValue'](_0x5c18a5){if(_0x5c18a5['length']<0x96)return _0x5c18a5;const _0x161674=_0x5c18a5['lastIndexOf']('\x20',0x93);return _0x5c18a5['substring'](0x0,_0x161674>-0x1?_0x161674:0x93)+'...';}['_attachContextActions'](){const _0x247bca=this['element']['querySelector']('.ck-context'),_0x465291=_0x247bca['querySelector']('.ck-context__value');this['listenTo'](_0x247bca,'mouseenter',()=>{_0x465291['offsetWidth']<_0x465291['scrollWidth']&&_0x247bca['classList']['add']('overlay');}),this['listenTo'](_0x247bca,'mouseleave',()=>{_0x247bca['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x47fa2b of this['focusables'])this['focusTracker']['add'](_0x47fa2b['element']),this['keystrokes']['listenTo'](_0x47fa2b['element']);}['_createContextView'](){const _0x16c793=new oe(this['locale']);return _0x16c793['bind']('contextValue')['to'](this),_0x16c793;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x54b277,_0x2705b5,_0x44f53d,_0x225fb5){super(_0x54b277),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x2705b5,this['_localUser']=_0x44f53d,this['_config']=_0x225fb5,this['commentThreadHeaderView']=new Xt(_0x54b277,_0x2705b5),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x54b277,N(_0x54b277,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x54b277,_0x2705b5,Object['assign']({'CommentView':this['_config']['CommentView']},_0x225fb5)),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',(_0x4b933c,_0x1dd826)=>_0x4b933c||!!_0x1dd826),this['bind']('isUnlinked')['to'](_0x2705b5,'unlinkedAt',_0x2bbc7b=>!!_0x2bbc7b),this['bind']('ariaLabel')['to'](this,'length',_0x49ad7a=>{const _0x9f9537=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x49ad7a,_0x9f9537]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x5f5319(),this['keystrokes']=new jt(),this['focusCycler']=new _0x140f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x356ad7=>_0x356ad7['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 _0x21e3fd=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x48f60a=_0x21e3fd['commentInputView'];return _0x21e3fd['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x48f60a,'value',(_0x2c1a97,_0x1b4dd2,_0x44448c,_0x171611,_0x161c98)=>!!_0x161c98||!!_0x171611&&_0x44448c&&!_0x1b4dd2||_0x2c1a97&&_0x44448c&&!_0x1b4dd2),_0x48f60a['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5d3337,_0x4174bc,_0x4d3357)=>{let _0x1b215d;return _0x1b215d=_0x4d3357&&_0x4174bc?'Reply\x20to\x20reopen\x20discussion...':_0x5d3337?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x1b215d);}),_0x48f60a['bind']('submitLabel')['to'](this,'length',_0x40baca=>N(this['locale'],_0x40baca?'Reply':'Comment')),_0x48f60a['on']('submit',(_0x2c77b1,_0xa60ad6)=>{this['fire']('addComment',_0xa60ad6),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x48f60a['on']('cancel',()=>{this['focus']();}),_0x48f60a['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x48f60a['on']('cancel',_0x86753a=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x86753a['stop']());}),this['on']('change:isActive',(_0x59ea1d,_0x11da3f,_0x12bd8a)=>{_0x12bd8a||this['length']||_0x48f60a['value']||this['fire']('removeCommentThread');}),_0x21e3fd;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x40ae74,_0x50e3d,_0x38a291,_0x558856){super(_0x40ae74,_0x50e3d,_0x38a291,_0x558856),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x40ae74,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x330c17,_0x341fbd,_0x201b9b)=>{_0x201b9b||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x308a97,_0x89e4f,_0x2f80d8)=>{_0x2f80d8&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x34d771=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x34d771['if']('isActive','ck-thread--active'),_0x34d771['if']('isUnlinked','ck-thread--unlinked'),_0x34d771['to']('actionIndicator',_0x54d1e8=>_0x54d1e8?'ck-thread--'+_0x54d1e8:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x34d771['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 _0x31b5c6 of this['commentsListView']['commentViews'])_0x31b5c6['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x648028}=this,_0x3007ba=this['commentsListView']['commentViews']['get'](0x0);_0x3007ba===this['_boundFirstCommentView']||_0x3007ba['isSystemComment']||(this['_boundFirstCommentView']=_0x3007ba,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3007ba,'actionIndicator',_0x400930=>'remove'===_0x400930?'remove':null),_0x3007ba['placeholder']=N(_0x648028,'Write\x20a\x20comment...'),_0x3007ba['removeButton']['on']('execute',_0x7183d5=>{_0x7183d5['stop'](),this['showConfirm'](N(_0x648028,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3007ba['focus']();}),_0x3007ba['actionBar']['add'](this['resolveButton'],0x0),_0x3007ba['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2d4084=new _0x188cb3(this['locale']);return _0x2d4084['label']=N(this['locale'],'Resolve'),_0x2d4084['tooltip']=N(this['locale'],'Resolve'),_0x2d4084['icon']=_0x2a328a,_0x2d4084['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2d4084['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x415828=>!_0x415828),_0x2d4084['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0xea1c2b,_0x558482)=>_0xea1c2b&&!_0x558482),_0x2d4084['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2d4084;}['_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(_0xd808c1){super(_0xd808c1),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x1bc05d,_0x427bf7,_0x5f100c)=>{this['element']['innerHTML']=_0x5f100c;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x57563c,_0x3ae401,_0x3fb87c){super(_0x57563c),this['_model']=_0x3ae401,this['_config']=_0x3fb87c,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3ae401,'content',_0x3ae401,'authoredAt',(_0x53a348,_0x1d4ba0)=>N(_0x57563c,'COMMENT_ARIA_LABEL',[_0x3ae401['author']['name'],_0x3fb87c['formatDateTime'](_0x1d4ba0),new DOMParser()['parseFromString'](_0x53a348,'text/html')['body']['textContent'],_0x3ae401['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x57563c,N(_0x57563c,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x577399(),this['focusTracker']=new _0x5f5319(),this['keystrokes']=new jt(),this['focusCycler']=new _0x140f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1a8b3d=>_0x1a8b3d['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 _0x3063f2=new is(this['locale']);return _0x3063f2['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x3b8e17,_0x1ef626)=>_0x1ef626?ts(_0x3b8e17,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x3b8e17),_0x3063f2;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x5387b2=new es(this['locale'],this['_config']['editorConfig']);return _0x5387b2['value']=this['_model']['content'],_0x5387b2['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5387b2['submitLabel']=N(this['locale'],'Save'),_0x5387b2['on']('submit',(_0x104525,_0x54d33d)=>{this['fire']('updateComment',this['_model']['id'],_0x54d33d),this['switchToDisplayMode'](),this['focus']();}),_0x5387b2['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x5387b2['once']('editorReady',()=>{_0x5387b2['focus']();}),_0x5387b2['createEditor'](),_0x5387b2['delegate']('editorReady')['to'](this),_0x5387b2['delegate']('editorDestroyed')['to'](this),_0x5387b2;}['_setupKeyboardNavigation'](){const _0x5e7a2b=this['element'];this['keystrokes']['listenTo'](_0x5e7a2b);for(const _0x38dd59 of this['focusables'])this['focusTracker']['add'](_0x38dd59['element']),this['keystrokes']['listenTo'](_0x38dd59['element']);this['focusables']['on']('change',(_0x57c64f,_0x103357)=>{for(const _0x3749ee of _0x103357['removed'])this['focusTracker']['remove'](_0x3749ee['element']),this['keystrokes']['stopListening'](_0x3749ee['element']);for(const _0x578dcc of _0x103357['added'])this['focusTracker']['add'](_0x578dcc['element']),this['keystrokes']['listenTo'](_0x578dcc['element']);}),this['keystrokes']['set']('enter',(_0x389905,_0x493482)=>{_0x5e7a2b===_0x389905['target']&&(this['focusCycler']['focusFirst'](),_0x493482());}),this['keystrokes']['set']('esc',(_0x51809c,_0xed9c8e)=>{_0x5e7a2b!==_0x51809c['target']&&(this['focus'](),_0xed9c8e());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x4d7379,_0x49c673,_0x1a2f64){super(_0x4d7379,_0x49c673,_0x1a2f64),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x4d7379,'Reply...')),this['bind']('authoredAt')['to'](_0x49c673),this['bind']('resolvedAt')['to'](_0x49c673),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 _0x193858(_0x4d7379,_0x49c673['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x49c673,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1b5272=this['bindTemplate'],_0x48068a=[{'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':_0x1b5272['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1b5272['to']('authoredAt',_0x4f024e=>this['_config']['formatDateTime'](_0x4f024e))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x1b5272['if']('isEditMode','ck-comment__actions--hidden'),_0x1b5272['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']&&_0x48068a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x1b5272['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x1b5272['if']('isEditMode','ck-comment--edit'),_0x1b5272['if']('isSystemComment','ck-comment--info'),_0x1b5272['to']('actionIndicator',_0x19d792=>_0x19d792?'ck-comment--'+_0x19d792:'')],'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':_0x48068a}]}]};}['_createEditButton'](){const _0xf4fe27=new _0x47a354(this['locale']);return _0xf4fe27['label']=N(this['locale'],'Edit'),_0xf4fe27['icon']=_0x5939de,_0xf4fe27['withText']=!0x0,_0xf4fe27['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0xf4fe27['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x55e0a1=>!_0x55e0a1),_0xf4fe27['bind']('isVisible')['to'](this['_model'],'isEditable'),_0xf4fe27['on']('execute',()=>this['switchToEditMode']()),_0xf4fe27;}['_createRemoveButton'](){const _0x31516f=new _0x47a354(this['locale']);return _0x31516f['label']=N(this['locale'],'Remove'),_0x31516f['icon']=_0x92b88,_0x31516f['withText']=!0x0,_0x31516f['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x31516f['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xf033ae=>!_0xf033ae),_0x31516f['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x31516f['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x31516f;}['_createDropdown'](){const _0x535109=_0x3deee8(this['locale'],_0x539736),_0x7dcfcd=_0x535109['panelView']['children'],_0x433d3f=new _0x5ca25c(this['locale']),_0x88c7ed=_0x535109['bindTemplate'];_0x1518f9(_0x535109,()=>this['items']['find'](_0x44d54c=>_0x44d54c['isVisible'])),_0x535109['extendTemplate']({'attributes':{'class':[_0x88c7ed['if']('isVisible','ck-hidden',_0xe60691=>!_0xe60691)]}});const _0x4b1e0b=(_0x5acd43,_0x38479b=-0x1)=>{const _0x3ea0bd=new _0x365663(this['locale']);_0x3ea0bd['children']['add'](_0x5acd43);const _0x55f01f=_0x38479b>-0x1?_0x38479b:_0x433d3f['items']['length'];_0x433d3f['items']['add'](_0x3ea0bd,_0x55f01f);const _0x16e998=Array['from'](this['items']);_0x535109['unbind']('isEnabled','isVisible'),_0x535109['bind']('isEnabled')['toMany'](_0x16e998,'isEnabled',(..._0x51a35c)=>_0x51a35c['some'](_0x3214ad=>_0x3214ad)),_0x535109['bind']('isVisible')['toMany'](_0x16e998,'isVisible',(..._0x5390b0)=>_0x5390b0['some'](_0x9fac88=>_0x9fac88));};_0x535109['panelPosition']='sw',_0x535109['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x44b678});for(const _0x27dad0 of this['items'])_0x4b1e0b(_0x27dad0);return _0x7dcfcd['add'](_0x433d3f),_0x535109['listenTo'](this['items'],'add',(_0x6ac6d0,_0x550cd2,_0xc88233)=>{_0x4b1e0b(_0x550cd2,_0xc88233);}),_0x535109['listenTo'](this['items'],'remove',(_0x5508d7,_0x135aaa,_0x596809)=>{_0x433d3f['items']['remove'](_0x596809);}),_0x535109;}['_attachActions'](_0x18dd8e,_0x5e77a4){const _0x48482f=_0x18dd8e&&_0x18dd8e['element'];_0x48482f&&(this['listenTo'](_0x48482f,'mouseenter',()=>this['actionIndicator']=_0x5e77a4),this['listenTo'](_0x48482f,'focus',()=>this['actionIndicator']=_0x5e77a4),this['listenTo'](_0x48482f,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x48482f,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x46a7ef=super['_createCommentInputView']();return _0x46a7ef['bind']('placeholder')['to'](this),_0x46a7ef;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x2ee6d5){const _0x1bf762=Dt(_0x2ee6d5,0x1e),_0x19f99d=new MutationObserver(_0x1ed9e4=>{for(const _0x572cee of _0x1ed9e4)('attributes'==_0x572cee['type']&&'class'==_0x572cee['attributeName']||'childList'==_0x572cee['type']||'characterData'==_0x572cee['type'])&&_0x1bf762();});return{'attach'(_0x448b45){_0x19f99d['observe'](_0x448b45,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x19f99d['disconnect'](),_0x1bf762['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x117a1e,_0x52f251){super(_0x117a1e),this['id']=_0x4c5e37(),this['focusTracker']=new _0x5f5319(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x200bf5,_0x24b16f)=>this['fire']('Esc',_0x24b16f)),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'](_0x52f251),this['mainView']=_0x52f251;const _0x178025=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x178025['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 _0x1098c5=this['element']['clientHeight'];_0x1098c5&&(this['height']=_0x1098c5);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x41c8cb(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x26e44a,target:_0x235b72,type:_0x3f76fa,isVisible:_0x53b625=!0x0}){super(),this['view']=_0x26e44a,this['view']['element']||this['view']['render'](),this['_type']=_0x3f76fa,this['_target']=_0x235b72,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x139e96([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x56b5ba,_0x943a83)=>{this['view']['focusTracker']['add'](_0x943a83);}),this['focusableElements']['on']('remove',(_0x2e2dbc,_0x528803)=>{this['view']['focusTracker']['remove'](_0x528803);}),this['set']('isVisible',_0x53b625);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3d1708=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x3d1708),_0x3d1708;}get['targetRect'](){const _0x5b0d29=this['target'];if(null===_0x5b0d29)return null;if(_0x5b0d29 instanceof _0x3f14b6)return _0x5b0d29;const _0x194a5f=_0x5b0d29['filter'](_0x305ed7=>function(_0x186e1f){const _0x3ae0a6=_0x186e1f['offsetParent'];if(_0x3ae0a6)return!0x0;const _0x1b39eb=_0x186e1f['getClientRects']()['item'](0x0);return!!_0x1b39eb;}(_0x305ed7));return 0x0===_0x194a5f['length']?null:new _0x3f14b6(_0x194a5f[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5271b4){this['view']['isActive']=_0x5271b4,this['view']['mainView']['isActive']=_0x5271b4;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x2d3153){if(!(null===_0x2d3153||_0x2d3153 instanceof _0x3f14b6||Array['isArray'](_0x2d3153)&&_0x2d3153['every'](_0x5f575a=>fi(_0x5f575a))))throw new _0x266f92('annotation-invalid-target',null,{'target':_0x2d3153});}['_getNormalizedTarget'](){const _0x56af1b='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x56af1b)?[_0x56af1b]:_0x56af1b;}}function fi(_0x4ba54e){return null!==_0x4ba54e&&'object'==typeof _0x4ba54e&&'nodeType'in _0x4ba54e&&0x1===_0x4ba54e['nodeType'];}class S extends _0x139e96{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x9890f7=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x5f5319(),this['_focusTracker']['on']('change:isFocused',(_0x30bd59,_0x594026,_0x5af28a)=>{_0x5af28a||this['fire']('blur');});for(const _0x5de883 of _0x9890f7)this['add'](_0x5de883);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x3e24a9){if(this['has'](_0x3e24a9))throw new _0x266f92('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x3e24a9['innerView'],_0x3e24a9),this['_viewToAnnotation']['set'](_0x3e24a9['view'],_0x3e24a9);for(const _0x4c2cca of _0x3e24a9['focusableElements'])this['_focusTracker']['add'](_0x4c2cca);this['listenTo'](_0x3e24a9['focusableElements'],'add',(_0x3ac30b,_0x1a8a90)=>{this['_focusTracker']['add'](_0x1a8a90);}),this['listenTo'](_0x3e24a9['focusableElements'],'remove',(_0x1db501,_0x121890)=>{this['_focusTracker']['remove'](_0x121890);}),this['listenTo'](_0x3e24a9['view']['focusTracker'],'change:isFocused',(_0x435344,_0x4eb7e8,_0x53eabb)=>{_0x53eabb&&this['fire']('focus',_0x3e24a9);}),_0x3e24a9['updateTargetRect']();const _0x5554f2=this['_getOrderInContent'](_0x3e24a9['view']['targetRect']);return super['add'](_0x3e24a9,_0x5554f2);}['remove'](_0x23f535){if(!this['has'](_0x23f535))throw new _0x266f92('annotationcollection-not-existing-item',null);this['stopListening'](_0x23f535['view']['focusTracker']),this['stopListening'](_0x23f535['focusableElements']);for(const _0x2909ca of _0x23f535['focusableElements'])this['_focusTracker']['remove'](_0x2909ca);return this['_viewToAnnotation']['delete'](_0x23f535['view']),this['_innerViewToAnnotation']['delete'](_0x23f535['innerView']),super['remove'](_0x23f535);}['getByInnerView'](_0x3877e6){return this['_innerViewToAnnotation']['get'](_0x3877e6);}['getByView'](_0x1cee72){return this['_viewToAnnotation']['get'](_0x1cee72);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x10fdb0 of this)_0x10fdb0['updateTargetRect']();this['_sort']();}['_sort'](){const _0x1b969a=Array['from'](this)['sort']((_0x162dd9,_0x305661)=>w(_0x162dd9['view']['targetRect'],_0x305661['view']['targetRect']));for(let _0x224b0f=_0x1b969a['length']-0x1;_0x224b0f>0x0;_0x224b0f--){const _0x3cf51c=_0x1b969a[_0x224b0f];_0x224b0f!==this['getIndex'](_0x3cf51c)&&(this['remove'](_0x3cf51c),this['add'](_0x3cf51c));}}['_getOrderInContent'](_0x40eb1e){let _0x35c4e6=0x0;if(!_0x40eb1e)return this['length'];for(const _0x112845 of this){const _0x36abbf=_0x112845['view']['targetRect'];if(_0x36abbf){if(w(_0x40eb1e,_0x36abbf)<0x0)return _0x35c4e6;_0x35c4e6++;}}return _0x35c4e6;}}function v({source:_0x6f27d,target:_0x13cddc,filter:_0x3ee75c}){for(const _0x1e80b4 of _0x6f27d)_0x3ee75c(_0x1e80b4)&&_0x13cddc['add'](_0x1e80b4);_0x13cddc['listenTo'](_0x6f27d,'add',(_0x1bdede,_0x360a17)=>{_0x3ee75c(_0x360a17)&&_0x13cddc['add'](_0x360a17);}),_0x13cddc['listenTo'](_0x6f27d,'remove',(_0x5ee66e,_0x948477)=>{_0x13cddc['has'](_0x948477)&&_0x13cddc['remove'](_0x948477);});}function w(_0x2c340e,_0x416a54){if(null===_0x2c340e&&null===_0x416a54)return 0x0;if(null===_0x2c340e)return-0x1;if(null===_0x416a54)return 0x1;const _0xa8b561=_0x2c340e['top']-_0x416a54['top'];return 0x0==_0xa8b561?_0x2c340e['left']-_0x416a54['left']:_0xa8b561;}class y extends _0x152fb7{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d4089){if(super(_0x1d4089),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1d4089 instanceof _0x1f8384){const _0xe0325a=_0x1d4089['locale'];_0x1d4089['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0xe0325a,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x1d658b){this['collection']['add'](_0x1d658b);}['remove'](_0x495b04){this['collection']['remove'](_0x495b04),_0x495b04['destroy']();}['refreshVisibility'](){for(const _0x386924 of this['collection'])_0x386924['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x514cce){return this['collection']['getByInnerView'](_0x514cce);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x273d25 of this['collection'])_0x273d25['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x61a3cb){this['fire']('_activateAnnotation',_0x61a3cb);}['createAnnotation'](_0x1f55b3){return new T(_0x1f55b3);}['createAnnotationView'](_0x33209d,_0x4fd0ee){return new E(_0x33209d,_0x4fd0ee);}['_addActiveAnnotation'](_0xcbbd74){const _0x1cba97=new Set(this['activeAnnotations']);_0x1cba97['add'](_0xcbbd74),this['activeAnnotations']=_0x1cba97;}['_removeActiveAnnotation'](_0x5b7a5c){const _0x66b187=new Set(this['activeAnnotations']);_0x66b187['delete'](_0x5b7a5c),this['activeAnnotations']=_0x66b187;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3f3188=this['collection'],_0x4a705a=this['_visibleAnnotations'];function _0x169e85(_0x547d23){const _0x5c8f8b=_0x547d23['source'];_0x5c8f8b['isVisible']&&!_0x4a705a['has'](_0x5c8f8b)?_0x4a705a['add'](_0x5c8f8b):!_0x5c8f8b['isVisible']&&_0x4a705a['has'](_0x5c8f8b)&&_0x4a705a['remove'](_0x5c8f8b),_0x5c8f8b['view']['focusTracker']['remove'](_0x5c8f8b['view']['element']),_0x5c8f8b['view']['focusTracker']['add'](_0x5c8f8b['view']['element']);}this['listenTo'](_0x3f3188,'add',(_0x1ec58b,_0x445f20)=>{_0x445f20['isVisible']&&_0x4a705a['add'](_0x445f20),this['listenTo'](_0x445f20,'change:isVisible',_0x169e85);}),this['listenTo'](_0x3f3188,'remove',(_0x7c7076,_0x578846)=>{_0x4a705a['has'](_0x578846)&&_0x4a705a['remove'](_0x578846),this['stopListening'](_0x578846,'change:isVisible',_0x169e85);});}['_setupEnterAnnotationKeystroke'](){const _0x1b84ec=_0xee9c7d=>{_0xee9c7d['on']('ready',()=>{_0xee9c7d['keystrokes']['set'](_0x3b0de7,(_0x46ec73,_0x29a075)=>{const _0x41f3fd=_0x49bf05(this['activeAnnotations']['values']());_0x41f3fd&&(_0x41f3fd['view']['focus'](),_0x29a075());});});};this['context']instanceof _0x1f8384?_0x1b84ec(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x58554c,_0x50917f)=>{_0x1b84ec(_0x50917f);});}['_setupEscapeAnnotationHandling'](){const _0x36e238=_0x303133=>{const _0x394015=_0x303133['source'],_0x24ed0a=[];let _0xa0d7c7;if(Array['isArray'](_0x394015['target'])){_0xa0d7c7=_0x394015['target'][0x0],this['context']instanceof _0x1f8384?_0x24ed0a['push'](this['context']):this['context']['editors']&&_0x24ed0a['push'](...this['context']['editors']);for(const _0x501be8 of _0x24ed0a)for(const _0x14f96e of _0x501be8['editing']['view']['domRoots']['values']())if(_0x14f96e['contains'](_0xa0d7c7))return void _0x501be8['editing']['view']['focus']();_0xa0d7c7['focus']();}};this['listenTo'](this['collection'],'add',(_0x2d2a6e,_0x42a7d8)=>{this['listenTo'](_0x42a7d8,'escape',_0x36e238,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x25b4bd,_0x5740b9)=>{this['stopListening'](_0x5740b9,'escape',_0x36e238);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x152fb7{['_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(_0x45a819){super(_0x45a819),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1afdf2=this['context']['config'];_0x1afdf2['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1afdf2['define']('comments.maxThreadTotalWeight',0x1f4),_0x1afdf2['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1afdf2['define']('comments.CommentThreadView',gt),_0x1afdf2['define']('comments.CommentView',Tt),_0x1afdf2['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3b6858=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x26bed8,_0x358865)=>this['_addCommentThread'](_0x358865)),this['on']('submitCommentThread',(_0x3d5b8c,_0xca3659)=>this['_submitCommentThread'](_0xca3659)),this['on']('resolveCommentThread',(_0x98e652,_0x510851)=>this['_resolveCommentThread'](_0x510851)),this['on']('resolveCommentThread',(_0x3e5909,_0x4e7135)=>this['_updateActiveAnnotation'](_0x4e7135),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x10458a,_0x222265)=>this['_reopenCommentThread'](_0x222265)),this['on']('reopenCommentThread',(_0x562fd3,_0x2addf4)=>this['_updateActiveAnnotation'](_0x2addf4),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x14d8c6,_0x179bd6)=>this['_removeCommentThread'](_0x179bd6)),this['on']('updateCommentThread',(_0x163e98,_0x24705d)=>this['_updateCommentThread'](_0x24705d)),this['on']('updateCommentThread',(_0x5d217a,_0x394959)=>this['_updateActiveAnnotation'](_0x394959),{'priority':'lowest'}),this['on']('addComment',(_0x36b483,_0x3db42f)=>this['_addComment'](_0x3db42f)),this['on']('updateComment',(_0x44db19,_0x3879d3)=>this['_updateComment'](_0x3879d3)),this['on']('removeComment',(_0x2da261,_0x186a63)=>this['_removeComment'](_0x186a63)),this['on']('addComment',(_0x4ad97d,{threadId:_0x16c377,isFromAdapter:_0x160743})=>{if(_0x160743)return;const _0x180dc8=this['getCommentThread'](_0x16c377),_0x147fd7=_0x180dc8&&this['_threadToController']['get'](_0x180dc8);_0x147fd7&&_0x147fd7['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3b6858,'change:activeAnnotations',(_0x2838bb,_0x31fae9,_0x1d7e6c)=>{const _0x5a0b68=Array['from'](_0x1d7e6c)['map'](_0x4521cb=>this['_viewToController']['get'](_0x4521cb['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5a0b68?_0x5a0b68['model']:null;});}set['adapter'](_0x21050d){if(this['_adapter'])throw new _0x266f92('commentsrepository-adapter-already-set');this['_adapter']=_0x21050d;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5dee48=_t,threadId:_0x30743f=_0x4c5e37(),comments:_0x1e216d=[],unlinkedAt:_0x20ecef=null,resolvedAt:_0x1aa1e0=null,resolvedBy:_0x6b63f6=null,target:_0x462fb8=null,context:_0x501e16=null,attributes:_0x406d2c={},isResolvable:_0x5387f6=!0x0,isSubmitted:_0x38d16c=!0x1,isFromAdapter:_0xb222a5=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x5dee48),{'channelId':_0x5dee48,'threadId':_0x30743f,'comments':_0x1e216d,'unlinkedAt':_0x20ecef,'resolvedAt':_0x1aa1e0,'resolvedBy':_0x6b63f6,'target':_0x462fb8,'context':_0x501e16,'attributes':_0x406d2c,'isFromAdapter':_0xb222a5,'isResolvable':_0x5387f6,'isSubmitted':_0x38d16c}),this['getCommentThread'](_0x30743f);}['openNewCommentThread']({channelId:_0x415aec=_t,threadId:_0x504516=_0x4c5e37(),target:_0x2dd969,context:_0x1af586=null,isResolvable:_0x39d693=!0x0}){if(this['_readOnlyChannels']['has'](_0x415aec)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x2dd969)throw new _0x266f92('commentsrepository-missing-target');const _0x1036d3=this['addCommentThread']({'channelId':_0x415aec,'threadId':_0x504516,'target':_0x2dd969,'context':_0x1af586,'isResolvable':_0x39d693});if(!_0x1036d3)return null;const _0x1e2098=this['_threadToController']['get'](_0x1036d3),_0x2ede26=_0x1e2098['view']['commentThreadInputView']['commentInputView'],_0x34858b=this['context']['plugins']['get'](y),_0x59f928=_0x34858b['getByInnerView'](_0x1e2098['view']);return _0x34858b['activate'](_0x59f928),_0x2ede26['once']('editorReady',()=>_0x2ede26['focus']()),_0x1036d3;}['hasCommentThread'](_0x46faf5){if('string'!=typeof _0x46faf5)throw new _0x266f92('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x46faf5);}['updateCommentThread']({channelId:_0x2b9a48=_t,threadId:_0xbb1bfc,context:_0x2ae7b5,unlinkedAt:_0x6e375b,attributes:_0x10298c,isFromAdapter:_0x5c4fc3=!0x1}){return this['fire'](Nt('updateCommentThread',_0x2b9a48),{'channelId':_0x2b9a48,'threadId':_0xbb1bfc,'context':_0x2ae7b5,'unlinkedAt':_0x6e375b,'attributes':_0x10298c,'isFromAdapter':_0x5c4fc3}),this['getCommentThread'](_0xbb1bfc);}['getCommentThread'](_0x41b4ec){if('string'!=typeof _0x41b4ec)throw new _0x266f92('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x41b4ec);}['fetchCommentThread']({channelId:_0x5d5f38,threadId:_0x57a1b1}={}){const _0x2d42b6=this['getCommentThread'](_0x57a1b1);if(_0x2d42b6)return Promise['resolve'](_0x2d42b6);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x266f92('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x5d5f38,'threadId':_0x57a1b1})['then'](_0x5f4e64=>this['hasCommentThread'](_0x57a1b1)?this['getCommentThread'](_0x57a1b1):_0x5f4e64?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x5d5f38},_0x5f4e64)):void 0x0)['catch'](_0x37437d=>{throw console['error'](_0x37437d),new _0x266f92('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x289e1d,skipNotAttached:_0x3b54ad=!0x1,skipEmpty:_0x4cd618=!0x1,toJSON:_0x4d1f4b=!0x1}={}){const _0x432217=[];for(const _0x292905 of this['_threads']['values']())_0x289e1d&&_0x292905['channelId']!==_0x289e1d||_0x3b54ad&&!_0x292905['isAttached']||_0x4cd618&&0x0===_0x292905['length']||_0x432217['push'](_0x292905);return _0x4d1f4b?_0x432217['map'](_0x43868e=>_0x43868e['toJSON']()):_0x432217;}['getAnnotationForCommentThread'](_0x5c2b64){const _0x1f3f5c=this['_threadToController']['get'](_0x5c2b64);if(!_0x1f3f5c)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x1f3f5c['view'])||null;}['getCommentThreadForAnnotation'](_0x76df22){const _0x46aaf2=this['_viewToController']['get'](_0x76df22['innerView']);return _0x46aaf2?_0x46aaf2['model']:null;}['setActiveCommentThread'](_0x478fd3){const _0x47c65d=this['context']['plugins']['get'](y);if(!_0x478fd3)return void(this['activeCommentThread']&&_0x47c65d['deactivateAll']());const _0x4dd6a1=this['getCommentThread'](_0x478fd3);if(!_0x4dd6a1)throw new _0x266f92('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x478fd3});if(!this['_threadToController']['has'](_0x4dd6a1))throw new _0x266f92('commentsrepository-active-not-attached',null,{'threadId':_0x478fd3});const _0x1d5574=_0x47c65d['getByInnerView'](this['_threadToController']['get'](_0x4dd6a1)['view']);_0x47c65d['activate'](_0x1d5574);}['switchReadOnly'](_0x579e2d,_0x385760){_0x579e2d?this['_readOnlyChannels']['add'](_0x385760):this['_readOnlyChannels']['delete'](_0x385760),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x420004){return this['_readOnlyChannels']['has'](_0x420004)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x32d6be,_0xb24d2b){return new vt(_0x32d6be,_0xb24d2b);}['setPermissions'](_0x3f786d,_0x2481e7=_t){this['_permissions']['set'](_0x2481e7,_0x3f786d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x5b9a43=_t){return this['_permissions']['has'](_0x5b9a43)?this['_permissions']['get'](_0x5b9a43):bt;}['_addCommentThread']({channelId:_0x283e10,threadId:_0x3985f0,comments:_0x327482,unlinkedAt:_0x5d6eae,resolvedAt:_0x57f75a,resolvedBy:_0x3c1442,target:_0x5aea21,context:_0x568af2,attributes:_0x4e61d4,isFromAdapter:_0x3cbaea,isResolvable:_0x24598e,isSubmitted:_0x197be6}){if('string'!=typeof _0x3985f0)throw new _0x266f92('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3985f0});if(this['hasCommentThread'](_0x3985f0))throw new _0x266f92('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x3985f0});const _0xef0aa4=new pi(this,{'channelId':_0x283e10,'id':_0x3985f0,'context':_0x568af2,'attributes':_0x4e61d4,'unlinkedAt':_0x5d6eae,'resolvedAt':_0x57f75a,'resolvedBy':_0x3c1442?this['context']['plugins']['get'](it)['getUser'](_0x3c1442):null,'isResolvable':_0x24598e,'isSubmitted':_0x197be6||_0x3cbaea});this['_threads']['set'](_0x3985f0,_0xef0aa4);for(const _0x146615 of _0x327482)_0xef0aa4['_add'](this['_createNewComment']({'threadId':_0x3985f0,..._0x146615}));return _0x5aea21&&_0xef0aa4['attachTo'](_0x5aea21),_0x3cbaea||!_0xef0aa4['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x283e10,'threadId':_0x3985f0});}['_submitCommentThread']({channelId:_0x288f59,threadId:_0x44e7ff}){if(!this['hasCommentThread'](_0x44e7ff))throw new _0x266f92('commentsrepository-missing-comment-thread',this);const _0x2ec2aa=this['getCommentThread'](_0x44e7ff);if(_0x2ec2aa['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x19ae11,comments:_0x306d74,resolvedAt:_0x318d40,resolvedBy:_0xcbdda4,context:_0x21efa0,attributes:_0x5691eb}=_0x2ec2aa,_0x1e6486=this['context']['plugins']['get']('PendingActions'),_0x59fd79=_0x1e6486['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x288f59,'threadId':_0x19ae11,'comments':_0x306d74['map'](_0x4b5426=>_0x4b5426['toJSON']()),'resolvedAt':_0x318d40,'resolvedBy':_0xcbdda4?_0xcbdda4['id']:_0xcbdda4,'context':_0x21efa0,'attributes':_0x5691eb})['then'](({comments:_0x886b3b})=>{_0x1e6486['remove'](_0x59fd79);for(const _0x37b7e9 of _0x886b3b)this['_updateComment']({'channelId':_0x288f59,'threadId':_0x44e7ff,'commentId':_0x37b7e9['commentId'],'createdAt':_0x37b7e9['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x278143=>{throw console['error'](_0x278143),new _0x266f92('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x13d471,target:_0x280d2b}){const _0x2fa642=this['getCommentThread'](_0x13d471);if(!_0x2fa642)throw new _0x266f92('commentsrepository-attach-missing-comment-thread',this);const _0x1ca8d1=this['context']['plugins']['get']('PendingActions'),_0x19e333=this['context']['plugins']['get'](y),_0x49cacc=this['_createCommentThreadView'](_0x2fa642),_0x20d4f6=new vt(_0x2fa642,_0x49cacc);let _0x5c31c6=null;_0x49cacc['on']('change:isDirty',(_0x22de24,_0xc8dc69,_0xc4638b)=>{_0xc4638b?_0x5c31c6=_0x1ca8d1['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5c31c6&&(_0x1ca8d1['remove'](_0x5c31c6),_0x5c31c6=null);}),this['_threadToController']['set'](_0x2fa642,_0x20d4f6),this['_viewToController']['set'](_0x49cacc,_0x20d4f6);const _0x11d77f=new E(this['context']['locale'],_0x49cacc);_0x11d77f['bind']('length')['to'](_0x49cacc),_0x11d77f['bind']('isDirty')['to'](_0x49cacc,'isDirty',_0x49cacc,'length',(_0x51ce5e,_0x15267f)=>_0x51ce5e||!_0x15267f),_0x11d77f['bind']('isActive')['to'](_0x49cacc),_0x11d77f['type']='comment';const _0xb8208=new T({'view':_0x11d77f,'target':_0x280d2b,'type':'comment','isVisible':!_0x2fa642['archivedAt']&&!!('function'==typeof _0x280d2b?_0x280d2b():_0x280d2b)});return _0x49cacc['on']('escape',()=>{_0xb8208['fire']('escape');}),this['_bindAnnotationToEditors'](_0x49cacc,_0xb8208),_0x19e333['add'](_0xb8208),_0xb8208;}['_bindAnnotationToEditors'](_0x5c4f18,_0x67191){this['listenTo'](_0x5c4f18,'editorReady',(_0x1421bc,_0xf5a1a4)=>{const _0x16c8b7=_0xf5a1a4['ui']['view']['body']['bodyCollectionContainer'];_0x67191['focusableElements']['add'](_0x16c8b7),this['context']instanceof _0x1f8384&&this['context']['ui']['focusTracker']['add'](_0x16c8b7);},{'priority':'highest'}),this['listenTo'](_0x5c4f18,'editorDestroyed',(_0x40229d,_0x6c60f)=>{const _0x2016f4=_0x6c60f['ui']['view']['body']['bodyCollectionContainer'];_0x67191['focusableElements']['has'](_0x2016f4)&&_0x67191['focusableElements']['remove'](_0x2016f4),this['context']instanceof _0x1f8384&&this['context']['ui']['focusTracker']['remove'](_0x2016f4);});}['_unbindEditors'](_0x455496){this['stopListening'](_0x455496,'editorReady'),this['stopListening'](_0x455496,'editorDestroyed');}['_createCommentThreadView'](_0x2d52df){const _0x5235b0=this['context']['plugins']['get'](it),{config:_0xc032d,locale:_0x4da7ed}=this['context'],_0x2361de=pt(_0xc032d['get']('locale'),_0x4da7ed);return new(0x0,(_0xc032d['get']('comments'))['CommentThreadView'])(_0x4da7ed,_0x2d52df,_0x5235b0['me'],{'editorConfig':{..._0xc032d['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0xc032d['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0xc032d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xc032d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xc032d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2361de,'CommentView':_0xc032d['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3ac328,channelId:_0x5a0482,resolvedAt:_0x2221eb,resolvedBy:_0x372a67,isFromAdapter:_0x20de7d}){if(!this['hasCommentThread'](_0x3ac328))throw new _0x266f92('commentsrepository-missing-comment-thread',null,{'threadId':_0x3ac328});const _0x30bf4a=this['getCommentThread'](_0x3ac328);if(_0x30bf4a['isResolved'])throw new _0x266f92('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3ac328});const _0x25e3f3=this['context']['plugins']['get'](it);if(_0x30bf4a['resolvedBy']=_0x25e3f3['getUser'](_0x372a67),_0x30bf4a['resolvedAt']=_0x2221eb,_0x20de7d||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x255913=this['context']['plugins']['get']('PendingActions'),_0x1410b1=_0x255913['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x5a0482,'threadId':_0x3ac328})['then'](({resolvedAt:_0x40b8a3,resolvedBy:_0x1e0d03})=>{_0x255913['remove'](_0x1410b1),_0x30bf4a['resolvedBy']['id']!==_0x1e0d03&&(_0x30bf4a['resolvedBy']=_0x25e3f3['getUser'](_0x1e0d03)),_0x30bf4a['resolvedAt']=_0x40b8a3;})['catch'](_0x2bebe0=>{throw console['error'](_0x2bebe0),new _0x266f92('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3c184e,channelId:_0x4c0a49,isFromAdapter:_0x15ef49}){if(!this['hasCommentThread'](_0x3c184e))throw new _0x266f92('commentsrepository-missing-comment-thread',null,{'threadId':_0x3c184e});const _0x5372d6=this['getCommentThread'](_0x3c184e);if(!_0x5372d6['isResolved'])throw new _0x266f92('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3c184e});if(_0x5372d6['resolvedBy']=null,_0x5372d6['resolvedAt']=null,_0x15ef49||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x46aa3d=this['context']['plugins']['get']('PendingActions'),_0x2834a3=_0x46aa3d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x4c0a49,'threadId':_0x3c184e})['then'](()=>_0x46aa3d['remove'](_0x2834a3))['catch'](_0x2c2360=>{throw console['error'](_0x2c2360),new _0x266f92('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5367bb,isFromAdapter:_0x1cd28a}){const _0x5b8ef7=this['getCommentThread'](_0x5367bb);if(!_0x5b8ef7)throw new _0x266f92('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5367bb),this['_threads']['delete'](_0x5367bb),!_0x5b8ef7['isSubmitted']||_0x1cd28a||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x457292=this['context']['plugins']['get']('PendingActions'),{channelId:_0x714ad6}=_0x5b8ef7,_0x54593a=_0x457292['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x714ad6,'threadId':_0x5367bb})['then'](()=>_0x457292['remove'](_0x54593a))['catch'](_0x2ef7b9=>{throw console['error'](_0x2ef7b9),new _0x266f92('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1f1b3f,unlinkedAt:_0x2849f6,context:_0x2cc1ec,attributes:_0x4ec564,isFromAdapter:_0x3671dd}){if('string'!=typeof _0x1f1b3f)throw new _0x266f92('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1f1b3f});if(!this['hasCommentThread'](_0x1f1b3f))throw new _0x266f92('commentsrepository-missing-comment-thread',null,{'threadId':_0x1f1b3f});const _0x55b32d=this['getCommentThread'](_0x1f1b3f);let _0x1a868c=!0x1;if(void 0x0!==_0x2cc1ec&&_0x55b32d['context']!==_0x2cc1ec&&(_0x55b32d['context']=_0x2cc1ec,_0x1a868c=!0x0),void 0x0!==_0x2849f6&&_0x55b32d['unlinkedAt']!==_0x2849f6&&(_0x55b32d['unlinkedAt']=_0x2849f6,_0x1a868c=!0x0),_0x4ec564&&!At(_0x4ec564,_0x55b32d['attributes'])&&(_0x55b32d['attributes']=_0x4ec564,_0x1a868c=!0x0),!_0x1a868c)return Promise['resolve']();if(!_0x55b32d['isSubmitted']||_0x3671dd||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x5df204=this['context']['plugins']['get']('PendingActions'),{channelId:_0xd37b37}=_0x55b32d,_0x125d45=_0x5df204['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0xd37b37,'threadId':_0x1f1b3f,'context':_0x2cc1ec,'unlinkedAt':_0x2849f6,'attributes':_0x4ec564})['then'](()=>_0x5df204['remove'](_0x125d45))['catch'](_0x5ba4df=>{throw console['error'](_0x5ba4df),new _0x266f92('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x45d827){const _0x328fda=this['context']['plugins']['get'](y),_0x28411e=this['getCommentThread'](_0x45d827);if(_0x28411e['_isAttached']=!0x1,this['_threadToController']['has'](_0x28411e)){const _0x4386d1=this['_threadToController']['get'](_0x28411e),_0x33bee4=_0x4386d1['view'],_0x4b2804=_0x328fda['getByInnerView'](_0x33bee4);this['_threadToController']['delete'](_0x28411e),this['_viewToController']['delete'](_0x33bee4),_0x4b2804&&_0x328fda['remove'](_0x4b2804),_0x4386d1['destroy'](),_0x33bee4['destroy']()['then'](()=>{this['_unbindEditors'](_0x33bee4);});}}['_updateActiveAnnotation']({threadId:_0x28ed8e,resolvedAt:_0x6bbe5e,unlinkedAt:_0x30f530}){const _0x44de3e=!!_0x6bbe5e,_0x6ef0a9=this['context']['plugins']['get'](y),_0x4d148a=this['getCommentThread'](_0x28ed8e);if(this['_threadToController']['has'](_0x4d148a)){const _0x2e3e08=this['_threadToController']['get'](_0x4d148a)['view'],_0x42f331=_0x6ef0a9['getByInnerView'](_0x2e3e08);_0x42f331&&(_0x44de3e&&_0x6ef0a9['_removeActiveAnnotation'](_0x42f331),_0x30f530?_0x42f331['isVisible']=!0x1:_0x42f331['refreshVisibility']());}}['_getExternalAuthor'](_0x536535){const _0x1ceabf=this['context']['plugins']['get'](it),_0x4c6005=It('external:'+_0x536535),_0x152f1d=_0x1ceabf['getUser'](_0x4c6005);return _0x152f1d||_0x1ceabf['addUser']({'id':_0x4c6005,'name':_0x536535});}['_createNewComment']({threadId:_0x3cba43,commentId:_0x1dbe6d=_0x4c5e37(),content:_0x5337af,authorId:_0x844a4f,createdAt:_0x410d07,attributes:_0x3594b7}){if('string'!=typeof _0x1dbe6d)throw new _0x266f92('commentsrepository-invalid-commentid');if('string'!=typeof _0x844a4f)throw new _0x266f92('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x5337af||!_0x5337af['trim']())throw new _0x266f92('commentsrepository-invalid-comment-content');const _0x315394=this['context']['plugins']['get'](it)['getUser'](_0x844a4f);if(!_0x315394)throw new _0x266f92('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x844a4f});let _0x27aee9=null,_0x477470=_0x410d07;return _0x3594b7?.['@external']&&(_0x27aee9=this['_getExternalAuthor'](_0x3594b7['@external']['authorName']),_0x477470=new Date(_0x3594b7['@external']['createdAt'])),new wi(this,{'threadId':_0x3cba43,'id':_0x1dbe6d,'author':_0x27aee9||_0x315394,'creator':_0x315394,'content':_0x5337af,'createdAt':_0x410d07,'authoredAt':_0x477470,'attributes':_0x3594b7});}['_addComment'](_0x232ccf){let {threadId:_0x11131d,content:_0x11f64c,attributes:_0x22c7a1,isFromAdapter:_0xbcfbb4}=_0x232ccf;const _0x37166e=this['getCommentThread'](_0x232ccf['threadId']);if(!_0x37166e)throw new _0x266f92('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x5ea40c=this['_createNewComment'](_0x232ccf),{id:_0x179db0}=_0x5ea40c;if(_0x37166e['_add'](_0x5ea40c),_0xbcfbb4||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x37166e['isSubmitted'])return Promise['resolve']();const _0x931b1c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1cdc92}=_0x37166e,_0x671a2e=_0x931b1c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x22c7a1||(_0x22c7a1={}),this['adapter']['addComment']({'channelId':_0x1cdc92,'threadId':_0x11131d,'commentId':_0x179db0,'content':_0x11f64c,'attributes':_0x22c7a1})['then'](_0x570ddd=>{_0x931b1c['remove'](_0x671a2e),_0x570ddd&&this['_updateComment']({'channelId':_0x1cdc92,'threadId':_0x11131d,'commentId':_0x179db0,'createdAt':_0x570ddd['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x345e9a=>{throw console['error'](_0x345e9a),new _0x266f92('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0xd09fad,commentId:_0x5e7942,content:_0x3eb182,createdAt:_0x597b58,attributes:_0x309ba5,isFromAdapter:_0x910cc3}){if(void 0x0!==_0x3eb182&&('string'!=typeof _0x3eb182||!_0x3eb182['trim']()['length']))throw new _0x266f92('commentsrepository-update-comment-invalid-content');const _0x1f2197=this['getCommentThread'](_0xd09fad),_0x34afe5=_0x1f2197['getComment'](_0x5e7942);if(!_0x34afe5)throw new _0x266f92('commentsrepository-update-missing-comment',this);let _0x34468a=!0x1;if(_0x3eb182&&_0x3eb182!==_0x34afe5['content']&&(_0x34afe5['isEditable']||_0x910cc3)&&(_0x34afe5['content']=_0x3eb182,_0x34468a=!0x0),_0x597b58&&_0x597b58!==_0x34afe5['createdAt']&&(_0x34afe5['createdAt']=_0x597b58,_0x34afe5['attributes']&&_0x34afe5['attributes']['@external']||(_0x34afe5['authoredAt']=_0x597b58),_0x34468a=!0x0),_0x309ba5&&!At(_0x309ba5,_0x34afe5['attributes'])&&(_0x34afe5['attributes']=_0x309ba5,_0x34468a=!0x0),!_0x34468a)return Promise['resolve']();if(_0x1f2197['fire']('commentUpdated'),_0x910cc3||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x58e8f4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x532436}=this['getCommentThread'](_0x34afe5['threadId']),_0x2b6520=_0x58e8f4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x532436,'threadId':_0xd09fad,'commentId':_0x5e7942,'content':_0x3eb182,'attributes':_0x309ba5})['then'](()=>_0x58e8f4['remove'](_0x2b6520))['catch'](_0x214aa0=>{throw console['error'](_0x214aa0),new _0x266f92('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0xa5a5e3,commentId:_0x5c95e1,isFromAdapter:_0x4111ab}){const _0x4fa818=this['getCommentThread'](_0xa5a5e3),_0x598d3a=_0x4fa818['getComment'](_0x5c95e1);if(!_0x598d3a)throw new _0x266f92('commentsrepository-remove-missing-comment',this);if(_0x4fa818['_remove'](_0x598d3a),_0x4111ab||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4c1f50=this['context']['plugins']['get']('PendingActions'),{channelId:_0x325ee6}=_0x4fa818,_0x177e94=_0x4c1f50['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x325ee6,'threadId':_0xa5a5e3,'commentId':_0x5c95e1})['then'](()=>_0x4c1f50['remove'](_0x177e94))['catch'](_0x46f143=>{throw console['error'](_0x46f143),new _0x266f92('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x41c8cb(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x463732,_0x5b5307){super();const _0x4594c5=_0x5b5307['isResolvable'];this['channelId']=_0x5b5307['channelId'],this['id']=_0x5b5307['id'],this['comments']=new _0x139e96(),this['_repository']=_0x463732,this['_isAttached']=!0x1,this['_isSubmitted']=_0x5b5307['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x463732,'_permissions',_0x463732,'_readOnlyChannels',()=>_0x463732['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x463732,'_permissions',()=>_0x463732['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x463732,'_permissions',()=>{const _0x248742=_0x463732['getPermissions'](this['channelId']);return _0x248742['write']||_0x248742['admin'];}),this['bind']('isResolvable')['to'](_0x463732,'_permissions',()=>_0x4594c5&&_0x463732['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x5b5307['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x5e4f37,_0x2b6d30)=>_0x5e4f37?_0x2b6d30?_0x5e4f37<_0x2b6d30?_0x5e4f37:_0x2b6d30:_0x5e4f37:_0x2b6d30),this['set']('unlinkedAt',_0x5b5307['unlinkedAt']||null),this['set']('resolvedAt',_0x5b5307['resolvedAt']||null),this['set']('resolvedBy',_0x5b5307['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x362260=>!!_0x362260),this['set']('attributes',_0x5b5307['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x2d1fe2,_0x563613)=>_0x2d1fe2+_0x563613['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0xb0f67e,id:_0x4de3bf}=this;this['_repository']['fire'](Nt('submitCommentThread',_0xb0f67e),{'channelId':_0xb0f67e,'threadId':_0x4de3bf});}['setUnlinkedAt'](_0x1d5fc6){this['_update']({'unlinkedAt':_0x1d5fc6});}['resolve']({resolvedAt:_0x1f6396=new Date(),resolvedBy:_0xaf6cb3='',isFromAdapter:_0x18e17e=!0x1}={}){const _0x19ff08=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4877e3,id:_0x5759cf}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x4877e3),{'channelId':_0x4877e3,'threadId':_0x5759cf,'resolvedAt':_0x1f6396,'resolvedBy':_0xaf6cb3||_0x19ff08['id'],'isFromAdapter':_0x18e17e});}['reopen']({isFromAdapter:_0x2763de=!0x1}={}){const {channelId:_0x2eb75b,id:_0x475555}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x2eb75b),{'channelId':_0x2eb75b,'threadId':_0x475555,'isFromAdapter':_0x2763de});}['setContext'](_0x5c8797){this['context']||this['_update']({'context':_0x5c8797});}['setAttribute'](_0x149c92,_0x32e73f){const _0x1916fc=wt(this['attributes']);yt(_0x1916fc,_0x149c92,_0x32e73f),this['_update']({'attributes':_0x1916fc});}['removeAttribute'](_0x45747e){const _0xa63b45=wt(this['attributes']);Ct(_0xa63b45,_0x45747e),this['_update']({'attributes':_0xa63b45});}['remove']({isFromAdapter:_0x2e1543=!0x1}={}){const {channelId:_0x4cf2d1,id:_0xc1d9a0}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x4cf2d1),{'channelId':_0x4cf2d1,'threadId':_0xc1d9a0,'isFromAdapter':_0x2e1543});}['attachTo'](_0x249330){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x249330});}['addComment'](_0xc03726){const {channelId:_0xfb6475,id:_0x1573ef}=this;this['_repository']['fire'](Nt('addComment',_0xfb6475,_0x1573ef),Object['assign']({'channelId':_0xfb6475,'threadId':_0x1573ef},_0xc03726));}['getComment'](_0x181dae){if('string'!=typeof _0x181dae)throw new _0x266f92('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x181dae});return this['comments']['get'](_0x181dae);}['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'](_0x2f7d49=>_0x2f7d49['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5e7c20){return this['listenTo'](_0x5e7c20,'change:authoredAt',()=>{const _0x35c8ac=this['_findOptimalIndex'](_0x5e7c20),_0x22e75e=this['comments'];_0x35c8ac-0x1!=_0x22e75e['getIndex'](_0x5e7c20)&&_0x35c8ac+0x1!=_0x22e75e['getIndex'](_0x5e7c20)&&(this['_remove'](_0x5e7c20),this['_add'](_0x5e7c20));}),this['comments']['add'](_0x5e7c20,this['_findOptimalIndex'](_0x5e7c20));}['_update'](_0x93aa3){const {channelId:_0x21b026,id:_0x2058dd}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x21b026),{..._0x93aa3,'channelId':_0x21b026,'threadId':_0x2058dd});}['_remove'](_0x53df1a){return this['stopListening'](_0x53df1a),_0x53df1a['destroy'](),this['comments']['remove'](_0x53df1a);}['_findOptimalIndex'](_0x7034c1){const _0x32771c=this['comments']['find'](_0x4aeb3e=>new Date(_0x4aeb3e['authoredAt'])['getTime']()>new Date(_0x7034c1['authoredAt'])['getTime']());return _0x32771c?this['comments']['getIndex'](_0x32771c):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x41c8cb(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x165742,_0x343b2f){super();const _0x6f28a4=_0x165742['context']['plugins']['get'](it)['me'],_0x385da6=_0x165742['getCommentThread'](_0x343b2f['threadId']),_0x4b1fc9=0x0===_0x385da6['comments']['length'],_0x39aa94=_0x6f28a4===_0x343b2f['author'];this['id']=_0x343b2f['id'],this['threadId']=_0x343b2f['threadId'],this['author']=_0x343b2f['author'],this['creator']=_0x343b2f['creator'],this['isExternal']=Boolean(_0x343b2f['attributes']&&_0x343b2f['attributes']['@external']),this['set']('content',_0x343b2f['content']),this['createdAt']=_0x343b2f['createdAt']||new Date(),this['set']('authoredAt',_0x343b2f['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x385da6,'resolvedAt'),this['set']('attributes',_0x343b2f['attributes']||{}),this['bind']('isEditable')['to'](_0x165742,'_permissions',()=>{const _0x58d095=_0x165742['getPermissions'](_0x385da6['channelId'])['write'],_0xd0f70a=_0x165742['getPermissions'](_0x385da6['channelId'])['modifyAll'];return _0x39aa94&&_0x58d095||!_0x39aa94&&_0xd0f70a;}),this['bind']('isRemovable')['to'](_0x385da6,'isRemovable',_0x165742,'_permissions',_0x128571=>{const _0xd25c19=_0x165742['getPermissions'](_0x385da6['channelId'])['write'],_0x1c27d4=_0x165742['getPermissions'](_0x385da6['channelId'])['modifyAll'];return _0x39aa94&&_0xd25c19||_0x128571&&_0x4b1fc9||!_0x39aa94&&_0x1c27d4&&!_0x4b1fc9;}),this['bind']('isReadOnly')['to'](_0x385da6,'isReadOnly'),this['_repository']=_0x165742;}get['weight'](){return Math['max'](function(_0x21f458){const _0x5166fe=document['createElement']('div');return _0x5166fe['innerHTML']=_0x21f458,_0x5166fe['textContent']['length'];}(this['content']),0xc8);}['update'](_0x3023f1){const {threadId:_0x5e92ae,id:_0xebb2e1}=this;if(!this['_repository']['hasCommentThread'](_0x5e92ae))throw new _0x266f92('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x4718bb}=this['_repository']['getCommentThread'](_0x5e92ae);this['_repository']['fire'](Nt('updateComment',_0x4718bb,_0x5e92ae),{'channelId':_0x4718bb,'threadId':_0x5e92ae,'commentId':_0xebb2e1,..._0x3023f1});}['setAttribute'](_0x490532,_0x486eb6){const _0x1054df=wt(this['attributes']);yt(_0x1054df,_0x490532,_0x486eb6),this['update']({'attributes':_0x1054df});}['removeAttribute'](_0x130208){const _0x236046=wt(this['attributes']);Ct(_0x236046,_0x130208),this['update']({'attributes':_0x236046});}['remove'](_0x5ba015={}){if(!_0x5ba015['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x4739e5,id:_0x58a187}=this;if(!this['_repository']['hasCommentThread'](_0x4739e5))throw new _0x266f92('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x4b0a9c}=this['_repository']['getCommentThread'](_0x4739e5);this['_repository']['fire'](Nt('removeComment',_0x4b0a9c,_0x4739e5),{'channelId':_0x4b0a9c,'threadId':_0x4739e5,'commentId':_0x58a187,..._0x5ba015});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0xb0d342,..._0x1845dc){for(const _0x448dcd of _0x1845dc)void 0x0!==_0x448dcd&&(_0xb0d342+=':'+String(_0x448dcd));return _0xb0d342;}class ot extends _0x39b56b{constructor(_0x2e4d4b){super(_0x2e4d4b),this['set']('hasContent',!0x1);}['refresh'](){const _0x48325c=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5c89b8 of _0x48325c['getRanges']())if(this['_hasContent'](_0x5c89b8))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x47600e=_0x4c5e37(),ranges:_0x336abb,comment:_0x1e5ec8}={}){const _0x1ed3dc=this['editor']['model'],_0x24c7a7=_0x336abb??Array['from'](_0x1ed3dc['document']['selection']['getRanges']()),_0x3feadc=[];for(const _0x5d2ab5 of _0x24c7a7)this['_hasContent'](_0x5d2ab5)&&_0x3feadc['push'](this['_trimToContent'](_0x5d2ab5));if(!_0x3feadc['length'])throw new _0x266f92('addcommentthreadcommand-incorrect-ranges',null);_0x1e5ec8&&this['_createCommentThread'](_0x47600e,_0x1e5ec8),this['_createMarkersFromRanges'](_0x47600e,_0x3feadc,!!_0x1e5ec8);}['_createMarkersFromRanges'](_0xe3ed2e,_0x2f1153,_0x86b529){this['editor']['model']['change'](_0x43b635=>{for(const _0x178666 of _0x2f1153){const _0x2c4eb6=_0x4c5e37()['substr'](0x1,0x5),_0x1b37c6='comment:'+_0xe3ed2e+':'+_0x2c4eb6;_0x43b635['addMarker'](_0x1b37c6,{'range':_0x178666,'usingOperation':_0x86b529,'affectsData':_0x86b529});}});}['_createCommentThread'](_0x33e6dc,_0x19df70){const _0x1d266d=this['editor']['plugins']['get']('CommentsRepository'),_0x2f8b40=this['editor']['config']['get']('collaboration.channelId'),_0x569b0a=this['editor']['plugins']['get']('Users')['me'];if(!_0x569b0a)throw new _0x266f92('addcommentthreadcommand-user-not-found',null);_0x1d266d['addCommentThread']({'threadId':_0x33e6dc,'channelId':_0x2f8b40,'comments':[{'authorId':_0x569b0a['id'],'content':_0x19df70,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x51153b){for(const _0x4ab971 of _0x51153b['getItems']())if(this['_itemIsContent'](_0x4ab971))return!0x0;return!0x1;}['_itemIsContent'](_0xba4120){return _0xba4120['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xba4120)&&!_0xba4120['is']('element','tableCell');}['_trimToContent'](_0x5305fe){const _0x3a3d6b=_0x3e2c34=>!this['_itemIsContent'](_0x3e2c34['item']),_0x279cc3=_0x5305fe['start']['getLastMatchingPosition'](_0x3a3d6b),_0xd97db5=_0x5305fe['end']['getLastMatchingPosition'](_0x3a3d6b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x279cc3,_0xd97db5);}}class b extends _0x165a5f{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f6b2f){super(_0x4f6b2f),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x53a06e=this['editor'],_0x339cca=_0x53a06e['model']['document']['selection'],_0x361729=_0x3b904d(()=>this['refreshSelectedViews'](),0xa);_0x339cca['on']('change:range',(_0x3441c9,_0x32f185)=>{_0x32f185['directChange']&&(_0x361729['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x53a06e['editing']['view']['document'],'change:isFocused',(_0x67676b,_0x4068b1,_0x4d498e)=>{_0x4d498e&&_0x361729();}),this['listenTo'](_0x53a06e['ui']['focusTracker'],'change:isFocused',(_0x53cee6,_0x3334ce,_0x174eaa)=>{_0x174eaa||this['fire']('blur',{'isAnnotationTracked':_0x3ed08d=>this['_editorAnnotationsData']['has'](_0x3ed08d['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x455526){if(this['_editorAnnotations']['has'](_0x455526['view']))return;this['_editorAnnotations']['add'](_0x455526['view']),this['editor']['ui']['focusTracker']['add'](_0x455526['view']['element']);const _0x16d102=this['editor']['plugins']['get'](y);this['listenTo'](_0x16d102['collection'],'remove',(_0x1b5647,_0x212dd3)=>{this['editor']['ui']['focusTracker']['remove'](_0x212dd3['view']['element']),this['_editorAnnotations']['delete'](_0x212dd3['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x405134){if('function'!=typeof _0x405134)throw new _0x266f92('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x405134);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x54d19a,annotations:_0x282c3b}){const _0x28ffa6=[],_0xd15654=this['editor']['model']['document']['selection'],_0x3df471=Array['from'](_0xd15654['getRanges']());for(const [_0x47f9d1,_0x252682]of this['_editorAnnotationsData']){const _0xbb3600=_0x1c8d36(_0x252682),_0x323395=_0x282c3b['getByInnerView'](_0x47f9d1);_0xbb3600&&_0x323395&&_0x28ffa6['push']({'annotation':_0x323395,'range':_0xbb3600});}function _0x1c8d36(_0x5e5bb8){for(const _0x54e22f of _0x5e5bb8)for(const _0x19dfae of _0x3df471)if(_0x54e22f['containsRange'](_0x19dfae,!_0xd15654['isCollapsed']))return _0x54e22f;return null;}return _0x28ffa6['sort']((_0x5bc535,_0x3afb64)=>{const _0x404fbb=_0x5bc535['range'],_0xdf429b=_0x3afb64['range'];if(!_0x404fbb['isEqual'](_0xdf429b)){if(_0x404fbb['containsRange'](_0xdf429b,!0x0))return 0x1;if(_0xdf429b['containsRange'](_0x404fbb,!0x0))return-0x1;}return _0x5bc535['annotation']==_0x54d19a?-0x1:_0x3afb64['annotation']==_0x54d19a?0x1:0x0;})['map'](_0x5506b4=>_0x5506b4['annotation']);}get['_editorAnnotationsData'](){const _0x4f1852=new Map();for(const _0x43b99f of Array['from'](this['_dataCollectors']))for(const [_0x52c435,_0x7ae8a3]of _0x43b99f())_0x4f1852['set'](_0x52c435,_0x7ae8a3);return _0x4f1852;}}class st extends _0x165a5f{['afterInit'](){const _0x50e059=this['editor'];if(!_0x50e059['plugins']['has']('RestrictedEditingModeEditing'))return;_0x50e059['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x165a5f{constructor(_0x1fa356){super(_0x1fa356),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2b620a=this['editor'],_0x5f492d=_0x2b620a['commands']['get']('importWord'),_0x3e8a8c=_0x2b620a['plugins']['get'](it);_0x5f492d&&(_0x5f492d['on']('execute',(_0x1b9dbe,[,_0x360dab])=>{_0x360dab['collaboration_features']={'comments':!0x0,'user_id':_0x3e8a8c['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x5f492d,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x56c900,_0x4ef799){const {comment_threads:_0x1777f5}=_0x4ef799;_0x1777f5&&_0x1777f5['forEach'](({thread_id:_0x5e835c,comments:_0x5d1fca,is_resolved:_0x22b735})=>{const _0x41a999=new Date(),_0x373023=_0x5d1fca['map'](({author:_0x4b3fe7,content:_0x2f7944,created_at:_0x60dfe0})=>({'content':_0x2f7944,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x41a999,'attributes':{'@external':{'authorName':_0x4b3fe7,'createdAt':_0x60dfe0?new Date(_0x60dfe0):new Date(),'source':'importWord'}}})),_0x1bf232=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x1bf232,'threadId':_0x5e835c,'comments':_0x373023,'resolvedAt':_0x22b735?_0x41a999:null});});}}class at extends _0x165a5f{constructor(_0x25e460){super(_0x25e460),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2c6d34=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2c6d34,'contentInsertion',(_0x278834,_0x15d455)=>this['_removeMarkersWithoutThreads'](_0x15d455['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xc447d4){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xc447d4;const _0x46c128=this['editor']['plugins']['get']('CommentsRepository');for(const _0x415a44 of _0xc447d4['keys']()){const [_0x1338c3,_0x217f6c]=_0x415a44['split'](':');'comment'!=_0x1338c3||_0x46c128['hasCommentThread'](_0x217f6c)||_0xc447d4['delete'](_0x415a44);}return _0xc447d4;}['_registerMarkerInClipboardPipeline'](){const _0xda8b54=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x2401c2=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x2401c2&&_0xda8b54['_registerMarkerToCopy']('comment',_0x2401c2);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x322d5c){switch(_0x322d5c){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x4bf466){const _0x25a445=_0x4bf466['split'](':');return{'group':_0x25a445[0x0],'id':_0x25a445[0x1],'part':_0x25a445[0x2]};}class ut extends _0x165a5f{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x31ed13,_0x4cd0e6)=>{if(!_0x4cd0e6['options']['showCommentHighlights'])return null;if(_0x4cd0e6['options']['ignoreResolvedComments']){const {id:_0x41190b}=ft(_0x31ed13['markerName']),_0x14f620=this['editor']['plugins']['get'](o);if(_0x14f620['getCommentThread'](_0x41190b)?.['isResolved']&&_0x31ed13['item'])return _0x4cd0e6['consumable']['consume'](_0x31ed13['item'],'addMarker:'+_0x31ed13['markerName']),_0x4cd0e6['consumable']['consume'](_0x31ed13['item'],'removeMarker:'+_0x31ed13['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5fba0b=>{_0x5fba0b['on']('addMarker:comment',(_0x2078cf,_0x1fc61b,_0x249b1d)=>{if(!_0x249b1d['options']['showCommentHighlights'])return;const _0x49d80b=_0x1fc61b['item'];if(!_0x49d80b)return;const _0x1a89e5=_0x249b1d['mapper']['toViewElement'](_0x49d80b);this['editor']['model']['schema']['isObject'](_0x49d80b)&&_0x1a89e5&&!_0x1a89e5['getCustomProperty']('widget')&&_0x1a89e5['is']('containerElement')&&_0x4359cf(_0x1a89e5,_0x249b1d['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4b58a4,{writer:_0x1df54d,options:_0x527ed1})=>{if(!_0x527ed1['showCommentHighlights'])return null;const _0x3b8efd=_0x1df54d['createContainerElement']('div'),_0x505878=_0x1df54d['createEmptyElement']('hr');return _0x1df54d['addClass']('ck-horizontal-line',_0x3b8efd),_0x1df54d['insert'](_0x1df54d['createPositionAt'](_0x3b8efd,0x0),_0x505878),_0x3b8efd;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x4e3b99,{writer:_0x1855a0,options:_0x188bb4})=>{if(!_0x188bb4['showCommentHighlights'])return null;const _0x4188f6=_0x1855a0['createContainerElement']('span'),_0x17725c=_0x1855a0['createEmptyElement']('img');return _0x1855a0['addClass']('image-inline',_0x4188f6),_0x1855a0['insert'](_0x1855a0['createPositionAt'](_0x4188f6,0x0),_0x17725c),_0x4188f6;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x372951,{writer:_0x328fcb,options:_0x40f126})=>{if(_0x40f126['showCommentHighlights'])return _0x328fcb['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1a7d7b,_0x47c896,_0xe37a3b)=>{_0xe37a3b['options']['showCommentHighlights']&&_0x1a7d7b['stop']();},{'priority':'high'});}}class r extends _0x165a5f{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(_0x474004){super(_0x474004),this['set']('isThreadsLoadingPaused',!0x0),_0x474004['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2df79b,_0x1e1f31,_0xded7c6,_0x39900d)=>{const _0x3107fd=_0x474004['plugins']['get'](o),_0x5b45c0=_0xded7c6?ft(_0xded7c6)['id']:null;_0x474004['model']['change'](()=>{if(_0x5b45c0){const _0x363dbe=this['getAllMarkersForId'](_0x5b45c0);for(const _0x5317d7 of _0x363dbe)_0x474004['editing']['reconvertMarker'](_0x5317d7);}if(_0x39900d){const {id:_0x1a6568}=ft(_0x39900d),_0x381465=_0x3107fd['getCommentThread'](_0x1a6568);if(_0x381465&&_0x381465['unlinkedAt'])return;if(_0x381465&&!_0x381465['isAttached'])return;const _0x1bba49=this['getAllMarkersForId'](_0x1a6568);for(const _0x238422 of _0x1bba49)_0x474004['editing']['reconvertMarker'](_0x238422);}}),_0x5b45c0&&this['scrollToThreadMarker'](_0x5b45c0);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b2e01=this['editor'],_0x2ba296=_0x1b2e01['plugins']['get'](o),_0x364bd2=_0x1b2e01['config']['get']('collaboration.channelId'),_0x345fa4=_0x2ba296['getCommentThreads']()['filter'](_0x9c5227=>_0x9c5227['channelId']!==_0x364bd2);_0x1b2e01['commands']['add']('addCommentThread',new ot(_0x1b2e01)),this['listenTo'](_0x1b2e01,'change:isReadOnly',(_0x1d863b,_0x2a6f01,_0x48e844)=>{_0x2ba296['switchReadOnly'](_0x48e844,_0x1b2e01['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x2ba296,dt('addCommentThread',_0x364bd2),(_0x43ec00,{threadId:_0xdd9a37})=>{const _0x163e11=this['editor']['plugins']['get'](o)['getCommentThread'](_0xdd9a37);_0x163e11?.['unlinkedAt']&&this['_attachArchivedThread'](_0xdd9a37);}),this['listenTo'](_0x2ba296,dt('removeCommentThread',_0x364bd2),(_0x2c7c29,{threadId:_0x190a69})=>{_0x1b2e01['model']['enqueueChange']({'isUndoable':!0x1},_0x22ded9=>{const _0x547053=this['getAllMarkersForId'](_0x190a69);for(const _0x4af547 of _0x547053)_0x22ded9['removeMarker'](_0x4af547);});}),this['listenTo'](_0x2ba296,dt('resolveCommentThread',_0x364bd2),(_0x45910b,{threadId:_0x1904a2})=>{(this['_reconvertMarkers'](_0x1904a2),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1904a2)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x2ba296,dt('reopenCommentThread',_0x364bd2),(_0x544e33,{threadId:_0x37503c})=>{this['_reconvertMarkers'](_0x37503c);},{'priority':'low'}),this['listenTo'](_0x2ba296,dt('addComment',_0x364bd2),(_0x4d4542,{threadId:_0x411107,isFromAdapter:_0x10355f})=>{const _0xa8e4da=this['getAllMarkersForId'](_0x411107);if(_0x10355f||0x0==_0xa8e4da['length']||!_0x2ba296['hasCommentThread'](_0x411107))return;0x1===_0x2ba296['getCommentThread'](_0x411107)['length']&&_0x1b2e01['model']['enqueueChange']({'isUndoable':!0x1},_0x13d392=>{for(const _0x339338 of _0xa8e4da)_0x13d392['updateMarker'](_0x339338,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x345fa4);}['afterInit'](){!async function(_0x260844){const _0x332e45=_0x309b49([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]),_0x1137e9=0x73460ab3,_0x279822=0x7341747b^_0x1137e9,_0x14ca18=window[_0x309b49([0x44,0x61,0x74,0x65])][_0x309b49([0x6e,0x6f,0x77])](),_0x560007=_0x260844[_0x309b49([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59b04d=new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d6385=>{_0x560007[_0x309b49([0x6f,0x6e,0x63,0x65])](_0x309b49([0x72,0x65,0x61,0x64,0x79]),_0x4d6385);}),_0x46117e={[_0x309b49([0x6b,0x74,0x79])]:_0x309b49([0x45,0x43]),[_0x309b49([0x75,0x73,0x65])]:_0x309b49([0x73,0x69,0x67]),[_0x309b49([0x63,0x72,0x76])]:_0x309b49([0x50,0x2d,0x32,0x35,0x36]),[_0x309b49([0x78])]:_0x309b49([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]),[_0x309b49([0x79])]:_0x309b49([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]),[_0x309b49([0x61,0x6c,0x67])]:_0x309b49([0x45,0x53,0x32,0x35,0x36])},_0x35345a=_0x560007[_0x309b49([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x309b49([0x67,0x65,0x74])](_0x309b49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23fd15(){let _0x2cf608,_0x145eca=null,_0xd59f10=null;try{if(_0x35345a==_0x309b49([0x47,0x50,0x4c]))return _0x309b49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2cf608=_0x26ed33(),!_0x2cf608)return _0x309b49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2cf608[_0x309b49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd59f10=_0x399ecc(_0x2cf608[_0x309b49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2cf608[_0x309b49([0x6a,0x74,0x69])])),await _0x4724f0()?_0x5b4b56()?_0x30b98b()?_0x309b49([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18031f()?(_0x2cf608[_0x309b49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x309b49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x145eca=_0x44a297(_0x309b49([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59543f()):_0x309b49([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x309b49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x309b49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x309b49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30b98b(){const _0x315608=[_0x309b49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x309b49([0x74,0x72,0x69,0x61,0x6c])][_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cf608[_0x309b49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14ca18/0x3e8:0xe10*_0x279822;return _0x2cf608[_0x309b49([0x65,0x78,0x70])]<_0x315608;}function _0x5b4b56(){const _0xc1c408=_0x2cf608[_0x309b49([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xc1c408)return!0x1;if(_0xc1c408[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309b49([0x2a])))return!0x0;if(_0xc1c408[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309b49([0x43,0x4d,0x54])))return!0x0;if(_0xc1c408[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309b49([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x4af233())return!0x0;if(_0xc1c408[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309b49([0x52,0x43,0x4d,0x54]))){if(_0x1ba01e())return!0x0;if(_0x277bd8()||_0x664143())return!0x0;}return!0x1;}function _0x18031f(){const _0x187d30=_0x2cf608[_0x309b49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x187d30||0x0==_0x187d30[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x77d41b}=new URL(window[_0x309b49([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x187d30[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77d41b))return!0x0;const _0x33fb68=_0x77d41b[_0x309b49([0x73,0x70,0x6c,0x69,0x74])](_0x309b49([0x2e]));return _0x187d30[_0x309b49([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x508cf8=>_0x508cf8[_0x309b49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309b49([0x2a])))[_0x309b49([0x6d,0x61,0x70])](_0x39448e=>_0x39448e[_0x309b49([0x73,0x70,0x6c,0x69,0x74])](_0x309b49([0x2e])))[_0x309b49([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a48af=>_0x5a48af[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33fb68[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x309b49([0x6d,0x61,0x70])](_0x28915d=>Array(_0x33fb68[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x28915d[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x309b49([0x66,0x69,0x6c,0x6c])](_0x28915d[0x0]===_0x309b49([0x2a])?_0x309b49([0x2a]):'')[_0x309b49([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x28915d))[_0x309b49([0x73,0x6f,0x6d,0x65])](_0x3c9767=>_0x33fb68[_0x309b49([0x65,0x76,0x65,0x72,0x79])]((_0x5aaf75,_0x131565)=>_0x3c9767[_0x131565]===_0x5aaf75||_0x3c9767[_0x131565]===_0x309b49([0x2a])));}function _0x59543f(){return _0x145eca&&_0xd59f10?new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x186a25,_0x1c151c)=>{_0x145eca[_0x309b49([0x74,0x68,0x65,0x6e])](_0x186a25,_0x1c151c),_0xd59f10[_0x309b49([0x74,0x68,0x65,0x6e])](_0x5f26f9=>{_0x5f26f9!=_0x309b49([0x56,0x61,0x6c,0x69,0x64])&&_0x186a25(_0x5f26f9);},_0x1c151c);}):_0x145eca||_0xd59f10||_0x309b49([0x56,0x61,0x6c,0x69,0x64]);}}function _0x399ecc(_0x6141a9,_0x25b768){return new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38721e=>{if(_0x418288())return _0x38721e(_0x309b49([0x56,0x61,0x6c,0x69,0x64]));_0x4545e2(),_0x560007[_0x309b49([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x309b49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c687b=!0x1;const _0x5e4263=_0x4c5e37();function _0x376c6b(_0xf46531){return!!_0xf46531&&(typeof _0xf46531===_0x309b49([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf46531===_0x309b49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf46531[_0x309b49([0x74,0x68,0x65,0x6e])]===_0x309b49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf46531[_0x309b49([0x63,0x61,0x74,0x63,0x68])]===_0x309b49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x162874(_0x3609ce){_0x1dc8f6(_0x3609ce)[_0x309b49([0x74,0x68,0x65,0x6e])](_0x305fa6=>{if(!_0x305fa6||_0x305fa6[_0x309b49([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x309b49([0x6f,0x6b]))return _0x309b49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1061f9(_0x589f8c(_0x5e4263+_0x25b768))!=_0x305fa6[_0x309b49([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x309b49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x309b49([0x56,0x61,0x6c,0x69,0x64]);})[_0x309b49([0x74,0x68,0x65,0x6e])](_0x3d0440=>(_0x40ad74(),_0x3d0440),()=>{const _0x3c12cd=_0x416add();return null==_0x3c12cd?(_0x40ad74(),_0x309b49([0x56,0x61,0x6c,0x69,0x64])):_0x309b49(_0x14ca18-_0x3c12cd>(0x574a8eb3^_0x1137e9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x309b49([0x74,0x68,0x65,0x6e])](_0x38721e)[_0x309b49([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38721e(_0x309b49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb05495=0x7370e433^_0x1137e9;function _0x40ad74(){const _0xebcc83=_0x309b49([0x6c,0x6c,0x63,0x74,0x2d])+_0x1061f9(_0x589f8c(_0x6141a9)),_0x3ec57a=_0xf8b9c7(_0x1061f9(window[_0x309b49([0x4d,0x61,0x74,0x68])][_0x309b49([0x63,0x65,0x69,0x6c])](_0x14ca18/_0xb05495)));window[_0x309b49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x309b49([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xebcc83,_0x3ec57a);}function _0x416add(){const _0xef83b7=_0x309b49([0x6c,0x6c,0x63,0x74,0x2d])+_0x1061f9(_0x589f8c(_0x6141a9)),_0xb1cea=window[_0x309b49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x309b49([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xef83b7);return _0xb1cea?window[_0x309b49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf8b9c7(_0xb1cea),0x10)*_0xb05495:null;}function _0x1dc8f6(_0x2378ce){return new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x577d7b,_0x4710cb)=>{_0x2378ce[_0x309b49([0x74,0x68,0x65,0x6e])](_0x577d7b,_0x4710cb),window[_0x309b49([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4710cb,0x7347de73^_0x1137e9);});}}_0x560007[_0x309b49([0x6f,0x6e])](_0x309b49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c3dfb,_0x44c7ff)=>{if(_0x44c7ff[0x0]!=_0x6141a9)return _0x38721e(_0x309b49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44c7ff[0x1]={..._0x44c7ff[0x1],[_0x309b49([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e4263};},{[_0x309b49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x309b49([0x68,0x69,0x67,0x68])}),_0x560007[_0x309b49([0x6f,0x6e])](_0x309b49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7909ba=>{_0x376c6b(_0x7909ba[_0x309b49([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c687b=!0x0,_0x162874(_0x7909ba[_0x309b49([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x309b49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x309b49([0x6c,0x6f,0x77])}),_0x59b04d[_0x309b49([0x74,0x68,0x65,0x6e])](()=>{_0x5c687b||_0x38721e(_0x309b49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x418288(){return _0x560007[_0x309b49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x309b49([0x76,0x69,0x65,0x77])][_0x309b49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x309b49([0x61,0x75,0x74,0x6f]);}function _0x4545e2(){_0x560007[_0x309b49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x309b49([0x76,0x69,0x65,0x77])][_0x309b49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x309b49([0x61,0x75,0x74,0x6f]);}}function _0x44a297(_0xef9a93){const _0x435d58=[new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107d4d=>setTimeout(_0x107d4d,0x734f347f^_0x1137e9)),_0x59b04d[_0x309b49([0x74,0x68,0x65,0x6e])](()=>new window[(_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd156=>{let _0x4f87fe=0x0;_0x560007[_0x309b49([0x6d,0x6f,0x64,0x65,0x6c])][_0x309b49([0x6f,0x6e])](_0x309b49([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d832d,_0x52d791)=>{_0x52d791[0x0][_0x309b49([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f87fe++,_0x4f87fe==(0x73460f5b^_0x1137e9)&&(_0x2dd156(),_0x2d832d[_0x309b49([0x6f,0x66,0x66])]());});}))];return window[_0x309b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x309b49([0x72,0x61,0x63,0x65])](_0x435d58)[_0x309b49([0x74,0x68,0x65,0x6e])](()=>_0xef9a93);}async function _0x5e525a(){await _0x59b04d,_0x560007[_0x309b49([0x6d,0x6f,0x64,0x65,0x6c])][_0x309b49([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23627a,_0x560007[_0x309b49([0x6d,0x6f,0x64,0x65,0x6c])][_0x309b49([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23627a,_0x560007[_0x309b49([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x309b49([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4af233(){return window[_0x309b49([0x67,0x6c,0x6f,0x62])]&&window[_0x309b49([0x67,0x6c,0x6f,0x62])][_0x309b49([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1ba01e(){return _0x153ae7(_0x309b49([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3d4f13(_0x309b49([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x309b49([0x73,0x74,0x61,0x74,0x65])]==_0x309b49([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x277bd8(){return _0x153ae7(_0x309b49([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 _0x664143(){return _0x153ae7(_0x309b49([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4399f6(_0xe2ebac){const _0x5a7c02=_0x25ef81();_0x560007[_0x5a7c02]=_0x309b49([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe2ebac,_0xe2ebac!=_0x309b49([0x56,0x61,0x6c,0x69,0x64])&&_0x5e525a();}function _0x25ef81(){const _0x34d98e=window[_0x309b49([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x309b49([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x309b49([0x6e,0x6f,0x77])]())[_0x309b49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x309b49([0x2e]),'');let _0x230672=_0x309b49([0x4b]);for(let _0x5b6c82=0x0;_0x5b6c82<_0x34d98e[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b6c82+=0x2){let _0x284d5a=window[_0x309b49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34d98e[_0x309b49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b6c82,_0x5b6c82+0x2));_0x284d5a>=_0x332e45[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x284d5a-=_0x332e45[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x230672+=_0x332e45[_0x284d5a];}return _0x230672;}function _0x26ed33(){const _0x35c964=_0x35345a[_0x309b49([0x73,0x70,0x6c,0x69,0x74])](_0x309b49([0x2e]));if(0x3!=_0x35c964[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bbf91(_0x35c964[0x1]);function _0x2bbf91(_0x1dc22e){const _0xdcbbb2=_0x36a44e(_0x1dc22e);return _0xdcbbb2&&_0x45426d()?_0xdcbbb2:null;function _0x45426d(){const _0x4667ce=_0xdcbbb2[_0x309b49([0x6a,0x74,0x69])],_0x37f1be=window[_0x309b49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4667ce[_0x309b49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4667ce[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a378e={..._0xdcbbb2,[_0x309b49([0x6a,0x74,0x69])]:_0x4667ce[_0x309b49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4667ce[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a378e[_0x309b49([0x76,0x63])],_0x589f8c(_0x2a378e)==_0x37f1be;}}}async function _0x4724f0(){let _0x315989=!0x0;try{const _0x7d9e3=_0x35345a[_0x309b49([0x73,0x70,0x6c,0x69,0x74])](_0x309b49([0x2e])),[_0x1f1130,_0x5745e4,_0x530c72]=_0x7d9e3;return _0x81836a(_0x1f1130),await _0x560922(_0x1f1130,_0x5745e4,_0x530c72),_0x315989;}catch{return!0x1;}function _0x81836a(_0x15257d){const _0x832ece=_0x36a44e(_0x15257d);_0x832ece&&_0x832ece[_0x309b49([0x61,0x6c,0x67])]==_0x309b49([0x45,0x53,0x32,0x35,0x36])||(_0x315989=!0x1);}async function _0x560922(_0x39984d,_0x21b50a,_0x17048f){const _0xd9281b=window[_0x309b49([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x309b49([0x66,0x72,0x6f,0x6d])](_0x232309(_0x17048f),_0xee21bc=>_0xee21bc[_0x309b49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d436a=new window[(_0x309b49([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x309b49([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39984d+_0x309b49([0x2e])+_0x21b50a),_0x537e9a=window[_0x309b49([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x309b49([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x537e9a)return;const _0x1dbcb9=await _0x537e9a[_0x309b49([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x309b49([0x6a,0x77,0x6b]),_0x46117e,{[_0x309b49([0x6e,0x61,0x6d,0x65])]:_0x309b49([0x45,0x43,0x44,0x53,0x41]),[_0x309b49([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x309b49([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x309b49([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x537e9a[_0x309b49([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x309b49([0x6e,0x61,0x6d,0x65])]:_0x309b49([0x45,0x43,0x44,0x53,0x41]),[_0x309b49([0x68,0x61,0x73,0x68])]:{[_0x309b49([0x6e,0x61,0x6d,0x65])]:_0x309b49([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1dbcb9,_0xd9281b,_0x2d436a)||(_0x315989=!0x1);}}function _0x36a44e(_0xe5fe53){return _0xe5fe53[_0x309b49([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x309b49([0x65,0x79]))?JSON[_0x309b49([0x70,0x61,0x72,0x73,0x65])](_0x232309(_0xe5fe53)):null;}function _0x232309(_0x5de894){return window[_0x309b49([0x61,0x74,0x6f,0x62])](_0x5de894[_0x309b49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x309b49([0x2b]))[_0x309b49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x309b49([0x2f])));}function _0x589f8c(_0x136379){let _0x37b2d9=0x1505;function _0x227874(_0x19daa6){for(let _0x4b4e29=0x0;_0x4b4e29<_0x19daa6[_0x309b49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b4e29++){const _0x3b23a1=_0x19daa6[_0x309b49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b4e29);_0x37b2d9=(_0x37b2d9<<0x5)+_0x37b2d9+_0x3b23a1,_0x37b2d9&=_0x37b2d9;}}function _0x399a80(_0x382da1){Array[_0x309b49([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x382da1)?_0x382da1[_0x309b49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x399a80):_0x382da1&&typeof _0x382da1==_0x309b49([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x309b49([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x382da1)[_0x309b49([0x73,0x6f,0x72,0x74])]()[_0x309b49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x398112,_0x351cf1])=>{_0x227874(_0x398112),_0x399a80(_0x351cf1);}):_0x227874(window[_0x309b49([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x382da1));}return _0x399a80(_0x136379),_0x37b2d9>>>0x0;}function _0x1061f9(_0x17c1c6){return _0x17c1c6[_0x309b49([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x309b49([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x309b49([0x30]));}function _0xf8b9c7(_0x4d66f8){return _0x4d66f8[_0x309b49([0x73,0x70,0x6c,0x69,0x74])]('')[_0x309b49([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x309b49([0x6a,0x6f,0x69,0x6e])]('');}function _0x153ae7(_0x17eedc){return _0x560007[_0x309b49([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x309b49([0x68,0x61,0x73])](_0x17eedc);}function _0x3d4f13(_0x43d418){return _0x560007[_0x309b49([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x309b49([0x67,0x65,0x74])](_0x43d418);}function _0x23627a(){}function _0x309b49(_0x2b5dee){return _0x2b5dee['map'](_0x555e75=>String['fromCharCode'](_0x555e75))['join']('');}_0x4399f6(await _0x23fd15());}(this);}['destroy'](){const _0x8c0c64=this['editor']['plugins']['get'](o),_0x24c872=this['editor']['config']['get']('collaboration.channelId');for(const _0x5351a9 of _0x8c0c64['getCommentThreads']({'channelId':_0x24c872}))_0x8c0c64['_detachCommentThread'](_0x5351a9['id']),_0x8c0c64['_threads']['delete'](_0x5351a9['id']);super['destroy']();}['hasMarkerForId'](_0x59abe3){return this['getAllMarkersForId'](_0x59abe3)['length']>0x0;}['getAllMarkersForId'](_0x5f2fd3){const _0x17a2fb=[];for(const _0x1bcb7a of this['editor']['model']['markers'])_0x1bcb7a['name']['startsWith']('comment:'+_0x5f2fd3)&&_0x17a2fb['push'](_0x1bcb7a);return _0x17a2fb;}['scrollToThreadMarker'](_0x3c6d14){setTimeout(()=>{const _0x8288d0=this['_getTargetForId'](_0x3c6d14);if(!_0x8288d0)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x3c6d14&&nt({'target':_0x8288d0[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x20bf60){this['editor']['model']['change'](()=>{for(const _0x3d5c84 of this['getAllMarkersForId'](_0x20bf60))this['editor']['editing']['reconvertMarker'](_0x3d5c84);});}['_attachArchivedThread'](_0x2b0bef){const _0x4f98c0=this['editor']['plugins']['get'](o),_0x5d20a4=this['editor']['plugins']['get'](b),_0x1d3438=_0x4f98c0['getCommentThread'](_0x2b0bef);if(!_0x1d3438['isAttached']){const _0x11ff0f=_0x1d3438['attachTo'](()=>this['_getTargetForId'](_0x1d3438['id']));_0x5d20a4['registerAnnotation'](_0x11ff0f),_0x1d3438['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0xddded9=this['editor'],_0x516d79=_0xddded9['plugins']['get'](it);_0xddded9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1c25ee,_0x3bc33b)=>{const {id:_0x9219e9}=ft(_0x1c25ee['markerName']),_0x1687fe=_0xddded9['plugins']['get'](o)['getCommentThread'](_0x9219e9),_0x2f5873=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x9219e9;let _0x581ea0;if(_0x1687fe&&_0x1687fe['isResolved']&&!_0x2f5873&&_0x1c25ee['item'])return _0x3bc33b['consumable']['consume'](_0x1c25ee['item'],'addMarker:'+_0x1c25ee['markerName']),_0x3bc33b['consumable']['consume'](_0x1c25ee['item'],'removeMarker:'+_0x1c25ee['markerName']),null;const _0xc63909=['ck-comment-marker'];return _0x2f5873&&_0xc63909['push']('ck-comment-marker--active'),_0x581ea0=_0x1687fe?.['length']?_0x1687fe['comments']['first']['author']['id']:_0x516d79['me']['id'],{'classes':_0xc63909,'attributes':{'data-comment':_0x9219e9,'data-author-id':_0x581ea0}};}}),_0xddded9['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x2e7ff0,{options:_0x2581c2})=>{if(_0x2581c2['showCommentHighlights'])return null;const _0x51291f=_0xddded9['plugins']['get'](o),_0x238014=_0xddded9['model']['markers']['get'](_0x2e7ff0),{id:_0x112c35,part:_0x174905}=ft(_0x2e7ff0);return _0x238014&&!_0x238014['affectsData']||_0x2581c2['ignoreResolvedComments']&&_0x51291f['getCommentThread'](_0x112c35)?.['isResolved']?null:{'group':'comment','name':_0x174905?_0x112c35+':'+_0x174905:_0x112c35};}}),_0xddded9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5a654e,{writer:_0x49627b})=>_0x49627b['createElement']('$marker',{'data-name':'comment:'+_0x5a654e['getAttribute']('id')})}),_0xddded9['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x97d80a=this['editor'],_0x34a28a=_0x97d80a['plugins']['get'](o),_0x5c6374=new Set(),_0x5b46e5=new Set();_0x97d80a['model']['document']['registerPostFixer'](_0x41b94d=>{let _0x23a3e6=!0x1;for(const {name:_0x4b9efa,data:_0x2e47d4}of _0x97d80a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x107f48,id:_0x2f3923}=ft(_0x4b9efa);let _0x5cde94=_0x2e47d4['newRange'];if('comment'!==_0x107f48||!_0x5cde94)continue;const _0x116696='$graveyard'===_0x5cde94['root']['rootName'];_0x116696||(_0x5cde94=ht(_0x5cde94,_0x97d80a['model']),!_0x5cde94||_0x5cde94['isCollapsed']||!_0x2e47d4['newRange']||_0x5cde94['isEqual'](_0x2e47d4['newRange']))?_0x97d80a['model']['hasContent'](_0x5cde94)&&!_0x116696?this['isThreadsLoadingPaused']?_0x5c6374['add'](_0x4b9efa):this['_handleThreadMarker'](_0x4b9efa,_0x2f3923):(_0x5b46e5['add'](_0x4b9efa),_0x5c6374['delete'](_0x4b9efa),_0x41b94d['removeMarker'](_0x4b9efa),_0x23a3e6=!0x0):(_0x41b94d['updateMarker'](_0x4b9efa,{'range':_0x5cde94}),_0x23a3e6=!0x0);}return _0x23a3e6;}),this['on']('change:isThreadsLoadingPaused',(_0x4d9f2b,_0x15b6de,_0x5cfe6a)=>{if(!_0x5cfe6a&&_0x5c6374['size'])for(const _0x4727fc of _0x5c6374){const {id:_0x413cd1}=ft(_0x4727fc);_0x5c6374['delete'](_0x4727fc),_0x97d80a['model']['markers']['get'](_0x4727fc)&&this['_handleThreadMarker'](_0x4727fc,_0x413cd1);}}),this['listenTo'](_0x97d80a['model']['document'],'change',()=>{for(const {name:_0x462f43,data:{newRange:_0x422f62}}of _0x97d80a['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4b0537,id:_0x5119ad}=ft(_0x462f43);if('comment'!==_0x4b0537)continue;const _0x278285=_0x34a28a['getCommentThread'](_0x5119ad),_0xa3aaf0=this['hasMarkerForId'](_0x5119ad);_0x278285&&(!_0x278285['_hasTargetInContent']&&_0x422f62&&_0x97d80a['editing']['view']['once']('render',()=>{const _0x264163=_0x97d80a['plugins']['get'](y),_0x2f84ad=_0x34a28a['_threadToController']['get'](_0x278285)['view'];_0x264163['getByInnerView'](_0x2f84ad)['refreshVisibility']();},{'priority':'low'}),_0x278285['_hasTargetInContent']=_0xa3aaf0||!!_0x422f62),_0x422f62||(_0x5b46e5['add'](_0x462f43),_0x5c6374['delete'](_0x462f43));}for(const _0x46bbd2 of _0x5b46e5){const {id:_0x11ef85}=ft(_0x46bbd2),_0x570459=_0x34a28a['getCommentThread'](_0x11ef85);if(_0x5c6374['delete'](_0x46bbd2),!_0x570459)continue;const _0x5e2c70=this['hasMarkerForId'](_0x11ef85);_0x5e2c70||_0x570459['isSubmitted']?_0x5e2c70||_0x570459['unlinkedAt']||_0x570459['setUnlinkedAt'](new Date()):_0x570459['remove']();}_0x5b46e5['clear']();});}['_handleInitialThreads'](_0x4b0290){_0x4b0290['forEach'](_0x4f89ce=>{_0x4f89ce['unlinkedAt']&&this['_attachArchivedThread'](_0x4f89ce['id']);});}['_getTargetForId'](_0x38f216){const _0xd3896=this['editor'],_0xad15db=this['getAllMarkersForId'](_0x38f216);return et(_0xd3896['editing'],_0xad15db);}['_getTextContext'](_0x41b7f0){const _0x4f8d8c=this['getAllMarkersForId'](_0x41b7f0);let _0x1b8985='',_0x2ea24b=!0x1;for(const _0x1051d4 of _0x4f8d8c){const _0x4e0e70=_0x1051d4['getRange']();for(const _0x4e5ca2 of Array['from'](_0x4e0e70['getItems']()))_0x4e5ca2['is']('$textProxy')?(_0x1b8985&&_0x2ea24b&&(_0x1b8985+='\x20',_0x2ea24b=!0x1),_0x1b8985+=_0x4e5ca2['data']):_0x2ea24b=!0x0;_0x2ea24b=!0x0;}return _0x1b8985['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x50f55e,_0x5ce882){const _0x4c4faa=this['editor'],_0x2bfa57=_0x4c4faa['plugins']['get'](o);let _0x2c3693=_0x2bfa57['getCommentThread'](_0x5ce882);const _0x5a0bd6=_0x4c4faa['config']['get']('collaboration.channelId'),_0x36a3e3=_0x4c4faa['plugins']['get'](b);if(_0x2c3693&&(_0x2c3693['unlinkedAt']&&_0x2c3693['setUnlinkedAt'](null),_0x2c3693['isAttached']))return _0x2c3693;return!this['getAllMarkersForId'](_0x5ce882)[0x0]['managedUsingOperations']?_0x4c4faa['editing']['view']['once']('render',()=>{if(_0x2bfa57['getCommentThread'](_0x5ce882))return;const _0x561bcc=_0x4c4faa['plugins']['get'](y);_0x2c3693=_0x2bfa57['openNewCommentThread']({'channelId':_0x5a0bd6,'threadId':_0x5ce882,'target':()=>this['_getTargetForId'](_0x5ce882),'context':{'type':'text','value':this['_getTextContext'](_0x5ce882)}});const _0x5f3cc8=_0x2bfa57['_threadToController']['get'](_0x2c3693)['view'],_0x4ea022=_0x561bcc['getByInnerView'](_0x5f3cc8);_0x4ea022&&_0x36a3e3['registerAnnotation'](_0x4ea022);},{'priority':'low'}):_0x2bfa57['fetchCommentThread']({'channelId':_0x5a0bd6,'threadId':_0x5ce882})['then'](_0x290d1a=>{if('destroyed'!==_0x4c4faa['state']){if(_0x2c3693=_0x290d1a,_0x2c3693&&!_0x2c3693['isAttached']){const _0x491bb7=_0x2c3693['attachTo'](()=>this['_getTargetForId'](_0x5ce882));_0x36a3e3['registerAnnotation'](_0x491bb7),_0x2c3693['isResolved']&&this['_reconvertMarkers'](_0x5ce882);}else{if(!_0x2c3693){const _0x500a15=this['getAllMarkersForId'](_0x5ce882);_0x4c4faa['model']['change'](_0xca3faf=>{for(const _0x39f045 of _0x500a15)_0xca3faf['removeMarker'](_0x39f045);});}}}}),_0x2c3693;}['_handleThreadMarker'](_0x18cd7c,_0x42276d){const _0x1bb942=this['_attachMarkerToThread'](_0x18cd7c,_0x42276d);_0x1bb942&&!_0x1bb942['context']&&_0x1bb942['setContext']({'type':'text','value':this['_getTextContext'](_0x42276d)});}['_initAriaMarkerChangeAnnouncements'](){const _0x11f521=this['editor'];rt(_0x11f521['model'],({left:_0x194cff,entered:_0x74afa1})=>{for(const _0x34eed1 of _0x194cff)if(mt(_0x34eed1)){_0x11f521['ui']['ariaLiveAnnouncer']['announce'](N(_0x11f521['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x28f9e9 of _0x74afa1)if(mt(_0x28f9e9)){_0x11f521['ui']['ariaLiveAnnouncer']['announce'](N(_0x11f521['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x355e93)));break;}});}}function dt(_0x1ed3d7,_0x41a147){return _0x41a147?_0x1ed3d7+':'+_0x41a147:_0x1ed3d7;}function ht(_0x1253ba,_0x543b67){const _0x449b59=_0x543b67['schema'],_0x4f1cad=_0x543b67['createRange'](_0x1253ba['start']);for(const _0x2dcde5 of _0x1253ba['getWalker']()){const {type:_0x51b491,item:_0x5c9182,nextPosition:_0x41f447}=_0x2dcde5;if('text'===_0x51b491||_0x449b59['isObject'](_0x5c9182)){const _0x4ea900=_0x543b67['createPositionBefore'](_0x5c9182);_0x4f1cad['isCollapsed']&&(_0x4f1cad['start']=_0x4ea900),_0x4f1cad['end']=_0x41f447;}}return _0x4f1cad;}function mt(_0x425fdc){return'comment'===ft(_0x425fdc['name'])['group'];}class s extends _0x165a5f{['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 _0x43deca=this['editor'],_0x4178ba=_0x43deca['plugins']['get'](o),_0x26cc1a=_0x43deca['plugins']['get'](r),_0x501bc8=_0x43deca['plugins']['get'](y),_0x2cc0f3=_0x43deca['plugins']['get'](b);_0x43deca['ui']['componentFactory']['add']('comment',()=>{const _0x13722d=this['_createUIButton'](_0x47a354);return _0x13722d['tooltip']=!0x0,_0x13722d;}),_0x43deca['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x320df3)),_0x2cc0f3['addSourceCollector'](()=>{const _0x44d005=[];for(const [_0x48391e,_0x845901]of _0x4178ba['_threadToController']){const _0x554e19=_0x26cc1a['getAllMarkersForId'](_0x48391e['id']),_0x3a427c=_0x554e19['map'](_0xa4054d=>_0xa4054d['getRange']());_0x554e19['length']>0x0&&_0x44d005['push']([_0x845901['view'],_0x3a427c]);}return _0x44d005;}),this['listenTo'](_0x501bc8,'change:activeAnnotations',(_0x45c256,_0x1f0a98,_0x33db2b)=>{const _0x27803f=Array['from'](_0x33db2b)['map'](_0x7d3fcd=>_0x7d3fcd['innerView'])['find'](_0x17b742=>_0x4178ba['_viewToController']['has'](_0x17b742));if(!_0x27803f)return void(_0x26cc1a['activeMarker']=null);const _0x2af08b=_0x4178ba['_viewToController']['get'](_0x27803f)['model']['id'],_0x29433a='comment:'+_0x2af08b;_0x2af08b&&_0x26cc1a['hasMarkerForId'](_0x2af08b)?_0x26cc1a['activeMarker']=_0x29433a:_0x26cc1a['activeMarker']&&(_0x26cc1a['activeMarker']=null);}),this['listenTo'](_0x4178ba,'removeCommentThread',(_0x53f75f,{threadId:_0x3cc957,isFromAdapter:_0x4702f8})=>{!_0x4702f8&&_0x43deca['ui']['focusTracker']['isFocused']&&_0x26cc1a['hasMarkerForId'](_0x3cc957)&&_0x43deca['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x4178ba,'addComment',(_0x562542,{threadId:_0x166469,isFromAdapter:_0x45eb1a})=>{if(_0x45eb1a||!_0x26cc1a['hasMarkerForId'](_0x166469)||!_0x4178ba['hasCommentThread'](_0x166469))return;0x1===_0x4178ba['getCommentThread'](_0x166469)['length']&&(_0x43deca['editing']['view']['focus'](),_0x562542['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3f4589=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23e5f8;for(const _0x374aaa in _0x3f4589){const _0x80b60f=_0x374aaa,_0x1bbf79=_0x3f4589[_0x80b60f];if('commentsLicenseKeyValid'==_0x1bbf79||'commentsLicenseKeyInvalid'==_0x1bbf79||'commentsLicenseKeyExpired'==_0x1bbf79||'commentsLicenseKeyDomainLimit'==_0x1bbf79||'commentsLicenseKeyNotAllowed'==_0x1bbf79||'commentsLicenseKeyEvaluationLimit'==_0x1bbf79||'commentsLicenseKeyUsageLimit'==_0x1bbf79){delete _0x3f4589[_0x80b60f],_0x23e5f8=_0x1bbf79,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x23e5f8&&_0x3f4589['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x23e5f8&&_0x3f4589['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x23e5f8&&_0x3f4589['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x23e5f8&&_0x3f4589['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x23e5f8&&_0x3f4589['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x23e5f8&&_0x3f4589['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xae8be2){const _0x27dc66=this['editor'],_0x571250=new _0xae8be2(_0x27dc66['locale']),_0x4a598d=_0x27dc66['commands']['get']('addCommentThread');return _0x571250['set']({'label':N(_0x27dc66['locale'],'Comment'),'icon':_0x1b49ba}),_0x571250['bind']('isEnabled')['to'](_0x4a598d,'isEnabled',_0x4a598d,'hasContent',(_0x3406a6,_0x838ca8)=>_0x3406a6&&_0x838ca8),this['listenTo'](_0x571250,'execute',()=>{_0x4a598d['execute']();}),_0x571250;}}class i extends _0x165a5f{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2605f6){super(_0x2605f6),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x399dee,_0x53af3c,_0x1c675d)=>{_0x1c675d?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x29ee31,_0x51a944]of this['editor']['commands'])_0x51a944['affectsData']&&'addCommentThread'!==_0x29ee31&&_0x51a944['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 _0x1bbb7b=this['editor']['editing']['view']['document'];this['listenTo'](_0x1bbb7b,'cut',_0x3fa220=>_0x3fa220['stop'](),{'priority':'highest'}),this['listenTo'](_0x1bbb7b,'clipboardInput',_0xef4259=>_0xef4259['stop'](),{'priority':'highest'}),this['listenTo'](_0x1bbb7b,'delete',_0x2111f3=>_0x2111f3['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x582215,_0x26b83a]of this['editor']['commands'])_0x26b83a['affectsData']&&'addCommentThread'!==_0x582215&&_0x26b83a['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 _0x152fb7{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d4173){super(_0x3d4173),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4d41ab=this['context']['plugins']['get'](y);this['listenTo'](_0x4d41ab,'_activateAnnotation',(_0x5163bd,_0x118da0)=>{for(const _0x5a76f4 of this['activeUIs']){const _0x3a3ba2=this['_uis']['get'](_0x5a76f4);(0x0,this['uisData']['get'](_0x5a76f4)['filter'])(_0x118da0)&&_0x3a3ba2['setActiveAnnotation'](_0x118da0);}}),this['listenTo'](_0x4d41ab,'_deactivateAllAnnotations',()=>{for(const _0x3339cd of this['activeUIs']){this['_uis']['get'](_0x3339cd)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4d41ab['_visibleAnnotations'],'add',(_0x1a5e33,_0x3841ff)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3841ff);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x2c1259){return this['activeUIs']['has'](_0x2c1259);}['activate'](_0x4d208e,_0x2fa776=this['defaultFilter']){const _0x493b88=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x4d208e))throw new _0x266f92('annotationsuis-missing-ui',this,{'uiName':_0x4d208e});this['isActive'](_0x4d208e)&&this['deactivate'](_0x4d208e),this['activeUIs']['add'](_0x4d208e);const _0x5b978e=new S();v({'source':_0x493b88['_visibleAnnotations'],'target':_0x5b978e,'filter':_0x2fa776}),this['uisData']['set'](_0x4d208e,{'collection':_0x5b978e,'filter':_0x2fa776});const _0x5f2485=this['_uis']['get'](_0x4d208e);_0x5f2485['attach'](_0x5b978e),this['listenTo'](_0x5f2485,'change:activeAnnotation',(_0x5363fe,_0x3bbdcd,_0x2b5fe5,_0x364878)=>{_0x364878&&_0x493b88['_removeActiveAnnotation'](_0x364878),_0x2b5fe5&&_0x493b88['_addActiveAnnotation'](_0x2b5fe5);});}['deactivate'](_0x120ca2){if(this['activeUIs']['delete'](_0x120ca2),!this['_uis']['has'](_0x120ca2))throw new _0x266f92('annotationsuis-missing-ui',this,{'uiName':_0x120ca2});const _0x7e01d2=this['_uis']['get'](_0x120ca2);_0x7e01d2['detach'](),this['stopListening'](_0x7e01d2),this['uisData']['get'](_0x120ca2)['collection']['destroy'](),this['uisData']['delete'](_0x120ca2);}['switchTo'](_0x245650){if(!this['_uis']['has'](_0x245650))throw new _0x266f92('annotationsuis-missing-ui',this,{'uiName':_0x245650});const _0x2ebdd8=this['context']['plugins']['get'](y),_0x33d54f=Array['from'](_0x2ebdd8['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x245650);const _0x3242df=this['_uis']['get'](_0x245650);_0x3242df['setActiveAnnotation'](_0x33d54f),_0x3242df['_setSelectedAnnotations']&&_0x33d54f&&_0x3242df['_setSelectedAnnotations']([_0x33d54f]);}['deactivateAll'](){for(const _0x42136e of this['activeUIs'])this['deactivate'](_0x42136e);}['register'](_0x143161,_0x30944f){if(this['_uis']['has'](_0x143161))throw new _0x266f92('annotationsuis-register-already-registered');if('function'!=typeof _0x30944f['attach']||'function'!=typeof _0x30944f['detach']||'function'!=typeof _0x30944f['setActiveAnnotation'])throw new _0x266f92('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x143161,_0x30944f);}['refilterAnnotations'](){const _0x34125f=this['context']['plugins']['get'](y)['collection'],_0x15b6fc=new Map(),_0x4e33dc=Array['from'](this['activeUIs']);for(const _0x151fb4 of this['activeUIs']){const _0x13dbd4=this['uisData']['get'](_0x151fb4)['collection'];for(const _0xf67328 of _0x13dbd4)_0x15b6fc['set'](_0xf67328,_0x151fb4);}for(const _0x26bb57 of _0x34125f){const _0x8ed9d0=_0x15b6fc['get'](_0x26bb57);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x26bb57);const _0x45b312=_0x4e33dc['find'](_0x47317e=>this['uisData']['get'](_0x47317e)['filter'](_0x26bb57));_0x8ed9d0!==_0x45b312&&(_0x8ed9d0&&this['uisData']['get'](_0x8ed9d0)['collection']['remove'](_0x26bb57),_0x45b312&&this['uisData']['get'](_0x45b312)['collection']['add'](_0x26bb57));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x568dff){const _0x3ae80d=[];for(const _0xbaf593 of this['activeUIs']){(0x0,this['uisData']['get'](_0xbaf593)['filter'])(_0x568dff)&&_0x3ae80d['push'](_0xbaf593);}if(_0x3ae80d['length']>0x1)throw new _0x266f92('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3ae80d,'annotationType':_0x568dff['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x17a9e3){super(_0x17a9e3);const _0x4693ad=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 _0x5f5319(),this['focusCycler']=new _0x140f1f({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x4693ad['to']('class')],'style':{'minHeight':_0x4693ad['to']('minHeight',_0x29c5e4=>'number'==typeof _0x29c5e4?_i(_0x29c5e4+0xa):null)},'dir':_0x17a9e3['uiLanguageDirection'],'role':'application','aria-label':N(_0x17a9e3,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x17a9e3,'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',_0x3a840f=>{this['_updateItemPositionInFocusables'](_0x3a840f['source']);}),this['list']['forEach'](_0x20b79c=>{this['focusTracker']['add'](_0x20b79c['element']),this['_updateItemPositionInFocusables'](_0x20b79c);}),this['list']['on']('change',(_0x512d56,_0x4a0d8c)=>{for(const _0x561889 of _0x4a0d8c['removed'])this['focusTracker']['remove'](_0x561889['element']),this['focusables']['remove'](_0x561889);for(const _0xded53c of _0x4a0d8c['added'])this['focusTracker']['add'](_0xded53c['element']),this['_updateItemPositionInFocusables'](_0xded53c);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3ad96a){const _0x2c3ef7=this['focusables']['getIndex'](_0x3ad96a);let _0x113903,_0x25af27;for(const _0x10c589 of this['focusables'])if(_0x3ad96a['top']<_0x10c589['top']){_0x113903=_0x10c589;break;}if(_0x25af27=_0x113903?this['focusables']['getIndex'](_0x113903):this['focusables']['length'],-0x1!==_0x2c3ef7){if(_0x2c3ef7===_0x25af27-0x1)return;this['focusables']['remove'](_0x3ad96a),_0x25af27=_0x113903?this['focusables']['getIndex'](_0x113903):this['focusables']['length'];}this['focusables']['add'](_0x3ad96a,_0x25af27);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x4ff66a){super(_0x4ff66a),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5d2e75,_0x175694)=>_0x5d2e75+_0x175694),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1c94bb=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1c94bb['to']('isAnimationDisabled',_0x53f06b=>_0x53f06b?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1c94bb['to']('top',_0x538c72=>Ot(_0x538c72))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x5c21da=this['element']['clientHeight'];_0x5c21da&&(this['height']=_0x5c21da);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x152fb7{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f9e48){super(_0x3f9e48),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 _0x1f4e94=this['context']['config']['get']('sidebar.container');_0x1f4e94&&this['setContainer'](_0x1f4e94);}['setContainer'](_0x371bfe){if(!g(_0x371bfe))throw new _0x266f92('sidebar-setcontainer-invalid-element');this['container']=_0x371bfe;}['_attachToContainer']({viewClass:_0x2defaa='',spaceBetweenItems:_0x10b2c8=0x19}={}){if(!g(this['container']))throw new _0x266f92('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x2defaa,this['_spaceBetweenItems']=_0x10b2c8;}['rearrange']({removedAnnotation:_0x53e5f9,previousAnnotation:_0x3eb88e,nextAnnotation:_0x1fcb0e}){const _0x253955=this['getSidebarItemView'](_0x53e5f9);this['view']['list']['remove'](_0x253955),this['_destroySidebarItemView'](_0x53e5f9),_0x3eb88e&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3eb88e)),_0x1fcb0e&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1fcb0e)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3632b4,activatedAnnotation:_0x55bc34,disableAnimationOnActivatedAnnotation:_0x1fbb8a}){if(this['_activeAnnotation']=_0x55bc34,_0x3632b4){_0x3632b4['isActive']=!0x1;const _0x56c1ce=this['getSidebarItemView'](_0x3632b4);_0x56c1ce&&_0x1fbb8a&&(_0x56c1ce['isAnimationDisabled']=!0x1);}if(_0x55bc34){const _0xbcff16=this['getSidebarItemView'](_0x55bc34);_0xbcff16&&(_0x55bc34['isActive']=!0x0,_0x1fbb8a&&(_0xbcff16['isAnimationDisabled']=!0x0,_0xbcff16['top']+=0x1),this['_alignToTargetRect'](_0xbcff16));}}['_detachFromContainer'](_0x2eb341){if(this['view']['element']['remove'](),_0x2eb341){for(const _0x492411 of _0x2eb341)this['_destroySidebarItemView'](_0x492411);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x45d106,_0x11158d){_0x11158d||(_0x11158d=_0x45d106['view']);const _0x209e47=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x209e47,_0x45d106),this['_annotationToSidebarItemView']['set'](_0x45d106,_0x209e47),_0x209e47['content']['add'](_0x11158d),this['listenTo'](_0x45d106['view'],'change:targetRect',(_0x387bc5,_0x1af19f,_0x212d6e)=>{const _0x3845c0=this['_getTargetTop'](_0x45d106,_0x212d6e);_0x209e47['_targetTop']!=_0x3845c0&&(_0x209e47['_targetTop']=_0x3845c0,this['_setItemTop'](_0x209e47,_0x3845c0));}),this['listenTo'](_0x209e47,'change:top',()=>{this['_recalculate'](_0x209e47,'top');}),this['listenTo'](_0x209e47,'change:bottom',()=>{this['_recalculate'](_0x209e47,'bottom');}),this['_alignToTargetRect'](_0x209e47);const _0x43bda1=this['_getItemBefore'](_0x209e47);if(_0x43bda1)this['_alignAfterItem'](_0x43bda1,_0x209e47)||this['_alignToTargetRect'](_0x209e47);else this['_alignToTargetRect'](_0x209e47);return this['_updateLastItem'](),this['view']['list']['add'](_0x209e47),_0x209e47;}['_alignForTopChange'](_0x29a34b){if(!_0x29a34b['content']['length'])return;const _0x4bcfd9=this['_getItemBefore'](_0x29a34b);if(!_0x4bcfd9)return;const _0x475004=this['_sidebarItemViewToAnnotation']['get'](_0x4bcfd9),_0x51bd29=this['_activeAnnotation'];_0x51bd29&&_0x51bd29===_0x475004?this['_alignAfterItem'](_0x4bcfd9,_0x29a34b):this['_alignBeforeItem'](_0x29a34b,_0x4bcfd9);}['_alignForBottomChange'](_0x38eb5c){if(!_0x38eb5c['content']['length'])return;const _0x40018e=this['_getItemAfter'](_0x38eb5c);if(!_0x40018e)return;const _0x428ab3=this['_sidebarItemViewToAnnotation']['get'](_0x40018e),_0x1c2963=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x58d81f=this['_activeAnnotation'];_0x58d81f&&_0x58d81f===_0x428ab3&&_0x1c2963?(this['_alignBeforeItem'](_0x40018e,_0x38eb5c),this['_alignAfterItem'](_0x38eb5c,_0x40018e)):_0x58d81f&&_0x58d81f===_0x428ab3?this['_alignBeforeItem'](_0x40018e,_0x38eb5c):this['_alignAfterItem'](_0x38eb5c,_0x40018e);}['_recalculate'](_0x3a7f9f,_0x4a7728){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x3923a4,changedProp:_0x5b7c2e}of this['_recalculateBuffer'])'top'===_0x5b7c2e?this['_alignForTopChange'](_0x3923a4):this['_alignForBottomChange'](_0x3923a4);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x3a7f9f,'changedProp':_0x4a7728});}['getSidebarItemView'](_0x4ec154){return this['_annotationToSidebarItemView']['get'](_0x4ec154);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x41c80b){const _0x4ee44a=this['getSidebarItemView'](_0x41c80b);this['stopListening'](_0x4ee44a),this['stopListening'](_0x41c80b['view']),_0x4ee44a['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x41c80b),this['_sidebarItemViewToAnnotation']['delete'](_0x4ee44a);}['_createSidebarView'](){const _0x142143=new H(this['context']['locale']);return _0x142143['render'](),this['on']('change:_lastItem',(_0x343f17,_0x125429,_0x2ac625,_0x43e426)=>{_0x43e426&&_0x142143['unbind']('minHeight'),_0x2ac625?_0x142143['bind']('minHeight')['to'](_0x2ac625,'bottom'):_0x142143['minHeight']=null;}),_0x142143;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x477db4){const _0xd7c305=this['_sidebarItemViewToAnnotation']['get'](_0x477db4),_0x106364=_0xd7c305&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0xd7c305)-0x1);return _0x106364&&this['getSidebarItemView'](_0x106364)||null;}['_getItemAfter'](_0x2072d2){const _0x2c8871=this['_sidebarItemViewToAnnotation']['get'](_0x2072d2),_0x221839=_0x2c8871&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2c8871)+0x1);return _0x221839&&this['getSidebarItemView'](_0x221839)||null;}['_alignBeforeItem'](_0x329c8c,_0x4b1d31){_0x329c8c['updateHeight']();const _0x40bed9=G(_0x4b1d31['bottom']+this['_spaceBetweenItems'],_0x329c8c['top']);return!!_0x40bed9&&(this['_setItemTop'](_0x4b1d31,_0x4b1d31['top']-_0x40bed9),!0x0);}['_alignAfterItem'](_0x73af74,_0x3cdae9){_0x73af74['updateHeight']();const _0xccff07=G(_0x73af74['bottom']+this['_spaceBetweenItems'],_0x3cdae9['top']);return!!_0xccff07&&(this['_setItemTop'](_0x3cdae9,_0x3cdae9['top']+_0xccff07,!0x1),!0x0);}['_alignToTargetRect'](_0x576a1b){const _0x48e529=this['_sidebarItemViewToAnnotation']['get'](_0x576a1b);if(!_0x48e529||!_0x48e529['target']||!_0x48e529['targetRect'])return;const _0x1183bb=this['_getTargetTop'](_0x48e529,_0x48e529['targetRect']);this['_setItemTop'](_0x576a1b,_0x1183bb);}['_getTargetTop'](_0x44a53d,_0x503c52){if(null===_0x503c52)return 0x0;if(_0x44a53d['target']instanceof _0x3f14b6)return _0x503c52['top'];{const _0x5633f4=new _0x3f14b6(this['view']['element'])['top'];return _0x503c52['top']-_0x5633f4;}}['_setItemTop'](_0x3416e1,_0x27a754,_0x2dfb0e=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x2dfb0e&&(_0x27a754=Math['max'](_0x27a754,this['_getMaxAvailableTop'](_0x3416e1))),_0x3416e1['top']=_0x27a754;}['_getMaxAvailableTop'](_0x30409a){let _0x17baa9=this['_getItemBefore'](_0x30409a),_0x37fdbd=0x0;for(;_0x17baa9;)_0x17baa9['updateHeight'](),_0x37fdbd+=this['_spaceBetweenItems']+_0x17baa9['height'],_0x17baa9=this['_getItemBefore'](_0x17baa9);return _0x37fdbd;}}function G(_0x27fb07,_0x1800ec){return Math['max'](_0x27fb07-_0x1800ec,0x0);}function g(_0x53c9ee){return null!==_0x53c9ee&&'object'==typeof _0x53c9ee&&0x1===_0x53c9ee['nodeType'];}class e extends _0x152fb7{['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(_0x1708ed){super(_0x1708ed),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x139e96(),this['_refreshPositioningDebounced']=_0x3b904d(()=>{_0x1708ed['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x34e961=this['context']['plugins']['get'](j),_0x128866=this['context']['plugins']['get'](z);_0x34e961['register']('wideSidebar',this),_0x128866['container']&&_0x34e961['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x1f5a9e){if(_0x1f5a9e===this['activeAnnotation'])return;const _0xc97a08=this['context']['plugins']['get'](z);_0xc97a08['_activeAnnotation']=_0x1f5a9e;const _0xfc210d=this['activeAnnotation'];_0xc97a08['refresh']({'blurredAnnotation':_0xfc210d,'activatedAnnotation':_0x1f5a9e}),this['activeAnnotation']=_0x1f5a9e;}['attach'](_0x4d3532){this['annotations']=_0x4d3532;const _0x11ea36=this['context']['plugins']['get'](z);if(_0x11ea36['_annotations']=_0x4d3532,this['isAttached'])throw new _0x266f92('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x11ea36,'set:container',()=>{this['detach'](),this['listenTo'](_0x11ea36,'change:container',_0x34ec17=>{_0x34ec17['off'](),this['attach'](_0x4d3532);});}),_0x11ea36['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x21b425=_0x13cb16=>{_0x13cb16['updateTargetRect'](),_0x11ea36['addAnnotation'](_0x13cb16);};for(const _0x2ccd0a of _0x4d3532)_0x21b425(_0x2ccd0a);this['listenTo'](_0x4d3532,'add',(_0x1204c8,_0x480482)=>{_0x21b425(_0x480482);}),this['listenTo'](_0x4d3532,'remove',(_0x535e7f,_0x47a3b1,_0x45167e)=>{_0x11ea36['rearrange']({'removedAnnotation':_0x47a3b1,'previousAnnotation':_0x4d3532['get'](_0x45167e-0x1),'nextAnnotation':_0x4d3532['get'](_0x45167e+0x1)}),_0x47a3b1===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4d3532,'focus',(_0x277f3c,_0x3d4134)=>{this['setActiveAnnotation'](_0x3d4134);}),this['listenTo'](_0x4d3532,'blur',()=>{this['setActiveAnnotation'](null);});const _0x75d15c=this['context']instanceof _0x4eea4a?this['context']['editors']:new _0x139e96([this['context']]);for(const _0x3cfec4 of _0x75d15c)this['_integrateWithEditorAnnotations'](_0x3cfec4);this['listenTo'](_0x75d15c,'add',(_0x3fc75d,_0x4856b3)=>{this['listenTo'](_0x4856b3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4856b3);});}),this['listenTo'](_0x75d15c,'remove',(_0x483845,_0x4fa230)=>{_0x4fa230['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4fa230['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x266f92('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1094e1=this['context']['plugins']['get'](z);_0x1094e1['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1094e1),this['stopListening'](this['annotations']),this['context']instanceof _0x4eea4a&&this['stopListening'](this['context']['editors']);for(const _0x446de1 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x446de1);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x1e6f6b){if(!_0x1e6f6b['plugins']['has']('EditorAnnotations'))return;const _0x2fdfae=_0x1e6f6b['plugins']['get']('EditorAnnotations'),_0x1e3388=()=>{const _0x4fab5c=_0x2fdfae['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4fab5c[0x0]||null);};this['listenTo'](_0x2fdfae,'refresh',_0x1e3388),this['listenTo'](_0x2fdfae,'blur',(_0x2f97f9,{isAnnotationTracked:_0x4a74b6})=>{this['activeAnnotation']&&_0x4a74b6(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2fdfae,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x49a168=>{_0x2fdfae['hasDomSelection']()&&(_0x1e3388(),_0x49a168['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2fdfae);}['_destroyEditorAnnotationsIntegration'](_0x5235c2){this['stopListening'](_0x5235c2),this['_editorAnnotations']['remove'](_0x5235c2);}}class C extends _0x47a354{['counterView'];constructor(_0xb8ace9){super(_0xb8ace9);const _0x4ded26=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x5cbfbc,_0xebab28)=>_0x5cbfbc?'...':_0xebab28['toString']()),this['set']('annotationType',''),this['icon']=_0x1b49ba,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4ded26['to']('annotationType',_0x91c3fc=>'ck-annotation-counter__badge--'+_0x91c3fc),_0x4ded26['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4ded26['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x152fb7{['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(_0x326f93){super(_0x326f93),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x2bb24d())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x139e96(),this['_refreshPositioningDebounced']=_0x3b904d(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x530e58(this['context']['locale']),this['balloonPanelView']=new _0x4534d9(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x43127f){this['annotations']=_0x43127f;const _0x34ae74=this['context']['plugins']['get'](z),_0x16b0fe=this['balloonPanelView'];if(_0x34ae74['_annotations']=_0x43127f,this['isAttached'])throw new _0x266f92('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x34ae74,'set:container',()=>{this['detach'](),this['listenTo'](_0x34ae74,'change:container',_0x5ed163=>{_0x5ed163['off'](),this['attach'](_0x43127f);});}),_0x34ae74['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2ba996=_0x5545cb=>{const _0x1b639d=new C(this['context']['locale']);_0x34ae74['addAnnotation'](_0x5545cb,_0x1b639d),this['_annotationToNarrowView']['set'](_0x5545cb,_0x1b639d),_0x1b639d['bind']('isDirty','annotationType','number')['to'](_0x5545cb['view'],'isDirty','type','length'),_0x1b639d['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x16b0fe['content']['first']!==_0x5545cb['view']?(this['_showBalloon'](_0x5545cb),_0x5545cb['view']['element']['focus'](),this['setActiveAnnotation'](_0x5545cb)):this['setActiveAnnotation'](null);});};for(const _0x49b229 of _0x43127f)_0x2ba996(_0x49b229);this['listenTo'](_0x43127f,'add',(_0x2269ee,_0x5c881b)=>{_0x2ba996(_0x5c881b);}),this['listenTo'](_0x43127f,'remove',(_0x2a9c6f,_0x1f1e1d,_0x40c2fe)=>{this['_annotationToNarrowView']['get'](_0x1f1e1d)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1f1e1d),_0x34ae74['rearrange']({'removedAnnotation':_0x1f1e1d,'previousAnnotation':_0x43127f['get'](_0x40c2fe-0x1),'nextAnnotation':_0x43127f['get'](_0x40c2fe+0x1)}),_0x1f1e1d===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x43127f,'focus',(_0x4f370f,_0x199380)=>{this['setActiveAnnotation'](_0x199380);}),this['listenTo'](_0x43127f,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xef12b6,_0x2990b1)=>{_0x2990b1['keyCode']===_0x63f92['esc']&&_0x16b0fe['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x16b0fe['content']['first']),this['_hideBalloon'](),_0x2990b1['stopPropagation'](),_0x2990b1['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3119fe,_0x1771bb)=>{const _0x2c89f3=_0x1771bb['target'];_0x16b0fe['isVisible']&&_0x16b0fe['element']['contains'](_0x2c89f3)||_0x34ae74['view']['element']['contains'](_0x2c89f3)||_0x3119fe['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x110c04=>_0x110c04['contains'](_0x2c89f3))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x15b295=this['context']instanceof _0x4eea4a?this['context']['editors']:new _0x139e96([this['context']]);for(const _0x50495d of _0x15b295)this['_integrateWithEditorAnnotations'](_0x50495d);this['listenTo'](_0x15b295,'add',(_0x2a978d,_0x29fb4f)=>{this['listenTo'](_0x29fb4f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x29fb4f);});}),this['listenTo'](_0x15b295,'remove',(_0x3dff87,_0x1881c2)=>{_0x1881c2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1881c2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2f4073){if(_0x2f4073===this['activeAnnotation'])return;const _0x568480=this['context']['plugins']['get'](z);if(_0x568480['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2f4073,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2f4073)_0x568480['getSidebarItemView'](_0x2f4073)?this['_showBalloon'](_0x2f4073):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2f4073;}['detach'](){if(!this['isAttached'])throw new _0x266f92('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x402249=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x4b30fd=>_0x4b30fd['destroy']()),this['_annotationToNarrowView']['clear'](),_0x402249['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4eea4a&&this['stopListening'](this['context']['editors']);for(const _0x35163b of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x35163b);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'](_0x3eecc3){if(!_0x3eecc3['plugins']['has']('EditorAnnotations'))return;const _0x2361d8=_0x3eecc3['plugins']['get']('EditorAnnotations'),_0x48f32e=this['context']['plugins']['get'](z),_0x19dd01=this['annotations'],_0x39daa8=this['balloonPanelView'],_0x3a8337=()=>{const _0x41cdf0=_0x2361d8['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x41cdf0),this['setActiveAnnotation'](_0x41cdf0[0x0]||null);};this['listenTo'](_0x2361d8,'refresh',_0x3a8337),this['listenTo'](_0x2361d8,'blur',(_0x13b557,{isAnnotationTracked:_0x56feb6})=>{this['activeAnnotation']&&_0x56feb6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2361d8,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x19dd01,'blur',_0x269a25=>{_0x2361d8['hasDomSelection']()&&_0x269a25['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x509542,_0xcf9a16)=>{const _0x8dd852=_0xcf9a16['target'];_0x39daa8['isVisible']&&_0x39daa8['element']['contains'](_0x8dd852)||_0x48f32e['view']['element']['contains'](_0x8dd852)||this['activeAnnotation']&&_0x2361d8['hasDomSelection']()&&(_0x3a8337(),_0x509542['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2361d8);}['_destroyEditorAnnotationsIntegration'](_0x384c9d){_0x384c9d&&(this['stopListening'](_0x384c9d),this['_editorAnnotations']['remove'](_0x384c9d));}['_setSelectedAnnotations'](_0x33d229){for(const _0x1210be of this['_selectedAnnotations'])_0x33d229['includes'](_0x1210be)||this['_manuallyClosedAnnotationViews']['delete'](_0x1210be['view']);this['_selectedAnnotations']=_0x33d229;}['_refreshPositioning'](){const _0x291afa=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x291afa['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x484575){if(this['_manuallyClosedAnnotationViews']['has'](_0x484575['view']))return;const _0x5c174=this['balloonPanelView']['content']['first'];_0x5c174!==_0x484575['view']?(_0x5c174&&this['_detachListeners'](_0x5c174),this['_attachListeners'](_0x484575['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x484575['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x397c90=this['balloonPanelView']['content']['first'],_0x1ed207=_0x397c90&&this['annotations']['getByView'](_0x397c90);if(!_0x1ed207||!this['_annotationToNarrowView']['has'](_0x1ed207))return;const _0x2acb29=this['_annotationToNarrowView']['get'](_0x1ed207)['element'],_0x5f34cd=(function(){const _0x259491=_0x4534d9['defaultPositions'];return[_0x259491['southArrowNorthEast'],_0x259491['northArrowSouthEast'],_0x259491['southArrowNorth'],_0x259491['northArrowSouth'],_0x259491['southArrowNorthWest'],_0x259491['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x2acb29,'positions':_0x5f34cd});}['_hideBalloon'](){const _0x3360eb=this['balloonPanelView'],_0x311070=_0x3360eb['content']['first'];_0x311070&&(this['_detachListeners'](_0x311070),_0x3360eb['unpin'](),_0x3360eb['content']['clear']());}['_attachListeners'](_0x30b2d5){this['listenTo'](_0x30b2d5,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x30b2d5,'Esc',(_0x1f92da,_0x4c50b8)=>{this['_manuallyClosedAnnotationViews']['add'](_0x30b2d5),this['_hideBalloon'](),_0x4c50b8();});}['_detachListeners'](_0x5d56ba){this['stopListening'](_0x5d56ba);}}class c extends _0x165a5f{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x15b3ff,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1585d9){super(_0x1585d9),_0x1585d9['editing']['view']['addObserver'](_0x1cac50),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1585d9['plugins']['get'](_0x15b3ff),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x5edefe=this['editor']['plugins']['get'](j);_0x5edefe['context']===this['editor']&&(_0x5edefe['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x400e15,_0x4aad76)=>{const _0xe88c78=this['_balloon'];if(this['isAttached']&&_0xe88c78['visibleView']){const _0x325791=this['annotations']['getByView'](_0xe88c78['visibleView']);_0x325791&&this['_closeAnnotation'](_0x325791),_0x4aad76();}}));}['afterInit'](){const _0x2d74c8=this['editor']['plugins']['get'](j);_0x2d74c8['context']===this['editor']&&(_0x2d74c8['hasActive']()||_0x2d74c8['switchTo']('inline'));}['setActiveAnnotation'](_0x38ba14){_0x38ba14!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x38ba14&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x38ba14)&&this['_addAnnotationToBalloon'](_0x38ba14,!0x0),_0x38ba14['isActive']=!0x0),_0x38ba14||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x38ba14);}['attach'](_0x2bc726){this['annotations']=_0x2bc726;const _0x40e6d5=this['editor']['plugins']['get'](j),_0x173247=this['_balloon'];if(this['isAttached'])throw new _0x266f92('inlineannotations-attach-already-attached',this);if(_0x40e6d5['context']!==this['editor'])throw new _0x266f92('inlineannotations-not-allowed-with-context',this);const _0x12891c=this['editor']['plugins']['get'](b);this['listenTo'](_0x12891c,'refresh',()=>{const _0x2bd135=_0x12891c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x1fe0ec,_0x315f82;!this['_forceRefresh']&&(_0x1fe0ec=_0x2bd135,_0x315f82=this['_selectedAnnotations'],_0x1fe0ec['length']===_0x315f82['length']&&_0x1fe0ec['every'](_0x41e78b=>_0x315f82['includes'](_0x41e78b)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2bd135),this['setActiveAnnotation'](_0x2bd135[0x0]||null));}),this['listenTo'](_0x12891c,'blur',(_0x1107d8,{isAnnotationTracked:_0x449984})=>{this['activeAnnotation']&&_0x449984(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x48c8a7,_0x511009,_0x23afe8)=>{_0x23afe8||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2bc726,'remove',(_0x3cd5b0,_0x11036d)=>{this['_removeAnnotationFromBalloon'](_0x11036d),_0x11036d===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x173247,'change:visibleView',(_0x3fbd28,_0x20e337,_0x45121e,_0x456854)=>{_0x456854&&this['stopListening'](_0x456854);const _0x1ec205=_0x2bc726['getByView'](_0x45121e);_0x45121e&&_0x1ec205&&(this['listenTo'](_0x45121e,'change:height',()=>{_0x173247['updatePosition']();}),this['listenTo'](_0x45121e,'Esc',()=>{this['_closeAnnotation'](_0x1ec205),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x1ec205&&this['setActiveAnnotation'](_0x1ec205));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x173247['visibleView']&&(_0x2bc726['getByView'](_0x173247['visibleView'])&&_0x173247['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 _0x266f92('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xd5d70e of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xd5d70e);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x5afc71){for(const _0x45196e of this['_selectedAnnotations'])_0x5afc71['includes'](_0x45196e)||this['_manuallyClosed']['delete'](_0x45196e);for(const _0x59501d of this['annotations'])_0x5afc71['includes'](_0x59501d)||this['_removeAnnotationFromBalloon'](_0x59501d);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x322323 of _0x5afc71)this['_addAnnotationToBalloon'](_0x322323);}this['_selectedAnnotations']=_0x5afc71;}['_addAnnotationToBalloon'](_0x26c70f,_0x54c86d=!0x1){this['_manuallyClosed']['has'](_0x26c70f)||(this['_addedAnnotations']['has'](_0x26c70f)||this['_balloon']['hasView'](_0x26c70f['view'])||(this['_addedAnnotations']['add'](_0x26c70f),this['_balloon']['add']({'stackId':_0x26c70f['view']['id'],'view':_0x26c70f['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x26c70f)}})),_0x54c86d&&this['_balloon']['showStack'](_0x26c70f['view']['id']));}['_getBalloonTargetForAnnotation'](_0xa1de){const _0x350c4f=_0xa1de['target'],_0x286144=this['editor']['editing']['view'],_0x438078=_0x286144['document']['selection']['getFirstRange'](),_0x3d8a2d=_0x286144['domConverter']['viewRangeToDom'](_0x438078);if(_0x3d8a2d['collapse'](!0x0),_0x350c4f){if(_0x350c4f instanceof _0x3f14b6)return _0x350c4f;let _0x482857=[];for(const _0x1ef7b5 of _0x350c4f)_0x482857['push'](...F(_0x1ef7b5['getClientRects']()));_0x482857=function(_0x1b5b81){const _0x1dd50e=[];let _0x42633d=_0x1b5b81[0x0];for(let _0x3023af=0x1;_0x3023af<_0x1b5b81['length'];_0x3023af++)P(_0x42633d,_0x1b5b81[_0x3023af])?_0x42633d['width']+=_0x1b5b81[_0x3023af]['width']:(_0x1dd50e['push'](_0x42633d),_0x42633d=_0x1b5b81[_0x3023af]);return _0x1dd50e['push'](_0x42633d),_0x1dd50e;}(_0x482857);const _0x5cb912=_0x3d8a2d['getBoundingClientRect']();return _0x482857['find'](_0x48dcc3=>_0x48dcc3['top']<=_0x5cb912['top']&&_0x48dcc3['bottom']>=_0x5cb912['bottom']&&_0x48dcc3['left']<=_0x5cb912['left']&&_0x48dcc3['right']>=_0x5cb912['right'])||_0x482857[0x0];}return _0xa1de['targetRect']||_0x3d8a2d;}['_removeAnnotationFromBalloon'](_0x229d38){this['_addedAnnotations']['has'](_0x229d38)&&this['_balloon']['hasView'](_0x229d38['view'])&&(this['_addedAnnotations']['delete'](_0x229d38),this['_balloon']['remove'](_0x229d38['view']));}['_closeAnnotation'](_0x1958bf){this['_manuallyClosed']['add'](_0x1958bf),this['_removeAnnotationFromBalloon'](_0x1958bf);}}function F(_0x55472e){return Array['from'](_0x55472e)['map'](DOMRect['fromRect']);}function P(_0x2d7a5d,_0x1df71c){return _0x2d7a5d['top']===_0x1df71c['top']&&_0x2d7a5d['bottom']===_0x1df71c['bottom']&&_0x2d7a5d['right']===_0x1df71c['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x18a561,_0x52c6db){super(_0x18a561),this['set']('isEmpty',!_0x52c6db['length']),this['focusTracker']=new _0x5f5319(),this['_annotationViews']=_0x52c6db,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x140f1f({'focusables':_0x52c6db,'focusTracker':this['focusTracker']}),this['listenTo'](_0x52c6db,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x52c6db,'remove',(_0x1e9a5e,_0x454156)=>{_0x454156['isActive']&&this['focus'](),_0x52c6db['length']||(this['isEmpty']=!0x0);});const _0x310a6c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x18a561,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x52c6db},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x310a6c['if']('isEmpty','ck-hidden',_0x48152c=>!_0x48152c)]},'children':[{'text':N(_0x18a561,'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 _0x4801c4 of this['_annotationViews'])this['focusTracker']['add'](_0x4801c4['element']);this['_annotationViews']['on']('change',(_0x173443,{added:_0x5a5d1a,removed:_0x3e5a28})=>{for(const _0x502019 of _0x5a5d1a)this['focusTracker']['add'](_0x502019['element']);for(const _0xa52059 of _0x3e5a28)this['focusTracker']['remove'](_0xa52059['element']);});}}class p extends _0x152fb7{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x282968){super(_0x282968),this['archivedThreads']=new _0x139e96();}['init'](){const _0x734b8e=this['context'],_0xefeb7d=_0x734b8e['plugins']['get'](o),_0x2c0f75=_0x734b8e['plugins']['get'](y);this['listenTo'](_0xefeb7d,'addCommentThread',(_0x3c4991,{threadId:_0x6c3112})=>{const _0x264975=_0xefeb7d['getCommentThread'](_0x6c3112);_0x264975['archivedAt']&&this['archivedThreads']['add'](_0x264975,this['_calculatePosition'](_0x264975['archivedAt'])),this['listenTo'](_0x264975,'change:archivedAt',(_0x2523e1,_0x418d48,_0x278cdb)=>{_0x278cdb?this['archivedThreads']['has'](_0x264975)||this['archivedThreads']['add'](_0x264975,this['_calculatePosition'](_0x264975['archivedAt'])):this['archivedThreads']['has'](_0x264975)&&this['archivedThreads']['remove'](_0x264975);});}),this['listenTo'](_0xefeb7d,'removeCommentThread',(_0x52fc35,{threadId:_0xc17bad})=>{const _0x48f85b=_0xefeb7d['getCommentThread'](_0xc17bad);this['stopListening'](_0x48f85b),this['archivedThreads']['has'](_0x48f85b)&&this['archivedThreads']['remove'](_0x48f85b);},{'priority':'highest'}),this['listenTo'](_0x2c0f75['collection'],'focus',(_0xdb94d6,_0x2db1d5)=>{_0x2db1d5['isVisible']||(_0x2db1d5['isActive']=!0x0,_0x2c0f75['activate'](_0x2db1d5));});}['_calculatePosition'](_0x449ebc){const _0x2ed4ba=[...this['archivedThreads']]['findIndex'](_0x321d17=>_0x321d17['archivedAt']<_0x449ebc);return _0x2ed4ba>-0x1?_0x2ed4ba:this['archivedThreads']['length'];}}class a extends _0x165a5f{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x20864c];}constructor(_0x119b35){super(_0x119b35),this['annotationViews']=new _0x577399(),this['_pendingThreads']=[];}['init'](){const _0xa30389=this['editor'],_0x1746e4=this['_hideDialogOnAnnotationEscape']['bind'](this);_0xa30389['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x47a354,!0x0)),_0xa30389['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x34100c=this['_createCommentsArchiveButton'](_0x320df3);return _0x34100c['set']({'role':'menuitemcheckbox'}),_0x34100c;});const _0x38bab9=_0xa30389['plugins']['get'](p),_0x16c1cb=_0xa30389['plugins']['get']('Annotations'),_0xc0c8a3=_0xa30389['plugins']['get']('CommentsRepository');_0x38bab9['archivedThreads']['forEach'](_0x81437a=>{this['_handleNewThread'](_0x81437a);}),this['listenTo'](_0x38bab9['archivedThreads'],'add',(_0x331d43,_0x5db006)=>{this['_handleNewThread'](_0x5db006);}),this['listenTo'](_0x16c1cb['collection'],'add',(_0x23c7f0,_0x3a96cc)=>{const _0xc9d807=this['_pendingThreads']['find'](_0x1b4c9d=>{const _0x1ff848=_0xc0c8a3['_threadToController']['get'](_0x1b4c9d);return _0x1ff848&&_0x3a96cc['innerView']===_0x1ff848['view'];});if(_0xc9d807){const _0x324808=this['_calculatePosition'](_0xc9d807['archivedAt']);this['_addAnnotationToArchive'](_0x3a96cc,_0x324808),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xc9d807),0x1);}}),this['listenTo'](_0x38bab9['archivedThreads'],'remove',(_0x35c7f9,_0x4486ec)=>{const _0x3af432=_0xa30389['config']['get']('collaboration.channelId');if(!_0x3af432||_0x4486ec['channelId']===_0x3af432){if(this['_pendingThreads']['includes'](_0x4486ec))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x4486ec),0x1);else{const _0x22b33b=_0xc0c8a3['_threadToController']['get'](_0x4486ec),_0x6862cb=_0x16c1cb['getByInnerView'](_0x22b33b['view']);this['annotationViews']['remove'](_0x6862cb['view']),this['stopListening'](_0x6862cb),this['stopListening'](_0x6862cb['focusableElements']);}}}),this['listenTo'](_0x16c1cb['collection'],'add',(_0x3e21d5,_0x303c63)=>{this['listenTo'](_0x303c63,'escape',_0x1746e4);}),this['listenTo'](_0x16c1cb['collection'],'remove',(_0x2b86f0,_0x16097b)=>{this['stopListening'](_0x16097b,'escape',_0x1746e4);});}['_addAnnotationToArchive'](_0x49392e,_0x57946a){this['listenTo'](_0x49392e,'set:isVisible',_0x571a07=>{_0x571a07['return']=!0x1,_0x571a07['stop']();}),this['annotationViews']['add'](_0x49392e['view'],_0x57946a);}['_handleNewThread'](_0x369f7a){const _0x387417=this['editor']['plugins']['get']('CommentsRepository'),_0x357724=this['editor']['plugins']['get']('Annotations'),_0x5465be=this['editor']['config']['get']('collaboration.channelId');if(!_0x5465be||_0x369f7a['channelId']===_0x5465be){const _0x4cc054=_0x387417['_threadToController']['get'](_0x369f7a);if(!_0x4cc054)return void this['_pendingThreads']['push'](_0x369f7a);const _0x4b2bf5=this['_calculatePosition'](_0x369f7a['archivedAt']),_0x10abc=_0x357724['getByInnerView'](_0x4cc054['view']);_0x10abc['isVisible']&&_0x357724['_visibleAnnotations']['remove'](_0x10abc),this['_addAnnotationToArchive'](_0x10abc,_0x4b2bf5);}}['_calculatePosition'](_0x168796){const _0xcbf0bf=this['editor']['config']['get']('collaboration.channelId'),_0x132722=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x26e0e2=>_0x26e0e2['channelId']===_0xcbf0bf)['findIndex'](_0x5beb65=>_0x5beb65['archivedAt']<_0x168796);return _0x132722<0x0||_0x132722>this['annotationViews']['length']?this['annotationViews']['length']:_0x132722-0x1;}['_toggleDialog'](){const _0x551687=this['editor'],_0x250c2b=_0x551687['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x551687['locale'],this['annotationViews'])),'commentsArchive'===_0x250c2b['id']?_0x250c2b['hide']():_0x250c2b['show']({'id':'commentsArchive','title':N(_0x551687['locale'],'COMMENTS_ARCHIVE'),'icon':_0x54b5f6,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x22636['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x2355d6,_0x23b4a8=!0x1){const _0x3a0df2=this['editor']['locale'],_0x568991=this['editor']['plugins']['get']('Dialog'),_0x3080e4=new _0x2355d6(_0x3a0df2);return _0x3080e4['bind']('isEnabled')['to'](this,'isEnabled'),_0x3080e4['bind']('isOn')['to'](_0x568991,'id',_0x8b4472=>'commentsArchive'===_0x8b4472),_0x3080e4['set']({'label':N(_0x3a0df2,'COMMENTS_ARCHIVE'),'icon':_0x54b5f6,'isToggleable':!0x0}),_0x23b4a8&&(_0x3080e4['tooltip']=!0x0),this['listenTo'](_0x3080e4,'execute',()=>this['_toggleDialog']()),_0x3080e4;}['_hideDialogOnAnnotationEscape']=_0x480dbb=>{const _0x55d7a5=_0x480dbb['source'];if(!this['annotationViews']['has'](_0x55d7a5['view']))return;const _0x2ed053=this['editor']['plugins']['get']('Dialog');_0x2ed053['isOpen']&&'commentsArchive'===_0x2ed053['id']&&(_0x2ed053['hide'](),_0x480dbb['stop']());};}class gi extends _0x165a5f{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 _0x11ef4e,ContextPlugin as _0x580786,PendingActions as lt,Command as _0x179b85,Plugin as _0x135745,Context as _0x1f5efe}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x595bc0,uid as _0x4072c6,KeystrokeHandler as jt,FocusTracker as _0x23562f,diff as _0xa755bc,Collection as _0x28871e,Rect as _0x4c8bc4,CKEditorError as _0x3721e2,first as _0x33ebc3,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x15b50d,keyCodes as _0x19f0ea}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x2509f5,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x185d4e,trimHtml as ts,LateFocusDropdownButtonView as _0x549565,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x3a89f8}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x3f3a2f}from'es-toolkit/compat';import{IconUndo as _0x3c0260,IconCheck as _0x1452ef,IconPencil as _0x3d5a3d,IconRemoveComment as _0x4e7f57,IconThreeVerticalDots as _0x5287d5,IconAddComment as _0x34195b,IconCommentsArchive as _0x1a26bf}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x2ee504,ButtonView as _0x39adad,ViewCollection as _0x39512e,createDropdown as _0x3908c1,ListView as _0x5e726e,focusChildOnDropdownOpen as _0x59d35d,ListItemView as _0x5b8748,MenuBarMenuListItemButtonView as _0x3fc650,BodyCollection as _0x528b57,BalloonPanelView as _0x4222f3,ContextualBalloon as _0x3ce6fa,Dialog as _0x447fc9,DialogViewPosition as _0x549ba5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x4382bb}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 _0x20271b}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x32eaaa}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x595bc0(){['model'];['view'];constructor(_0xaa4502,_0x499ec0){super(),this['model']=_0xaa4502,this['model']['_isAttached']=!0x0,this['view']=_0x499ec0,this['listenTo'](_0x499ec0,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x499ec0,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x499ec0,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x499ec0,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x499ec0,'addComment',(_0x7f5197,_0x5197c8)=>this['addComment'](_0x5197c8)),this['listenTo'](_0x499ec0,'updateComment',(_0x25f3fd,_0x5c9d2a,_0x52ba4e)=>this['updateComment'](_0x5c9d2a,_0x52ba4e)),this['listenTo'](_0x499ec0,'removeComment',(_0x16bf9f,_0x327239)=>this['removeComment'](_0x327239));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x295440){this['model']['addComment']({'content':_0x295440,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x4fbc4c,_0xb96d12){this['model']['getComment'](_0x4fbc4c)['update']({'content':_0xb96d12});}['removeComment'](_0x1b39ee){this['model']['getComment'](_0x1b39ee)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x17df34,_0x5a609d,_0x5f31bd){const t=_0x17df34['t'];switch(_0x5a609d){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'},_0x5f31bd);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'},_0x5f31bd);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'},_0x5f31bd);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'},_0x5f31bd);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5f31bd);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'},_0x5f31bd);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'},_0x5f31bd);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'},_0x5f31bd);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(_0x23c674,_0x1bf4dc){super(_0x23c674);const _0x1751fc=_0x4072c6();this['main']=this['createCollection'](),this['editable']=new Vt(_0x23c674,_0x1bf4dc,void 0x0,{'label':()=>N(_0x23c674,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x23c674['uiLanguageDirection'],'lang':_0x23c674['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1751fc},'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(_0x1586c8){super(_0x1586c8),this['view']=new Rt(_0x1586c8['locale'],_0x1586c8['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x17291d=this['editor']['editing']['view'],_0xcb34d5=this['view']['editable'],_0x2fb806=_0x17291d['document']['getRoot']();_0xcb34d5['name']=_0x2fb806['rootName'],this['view']['render']();const _0x5698a3=_0xcb34d5['element'];this['setEditableElement'](_0xcb34d5['name'],_0x5698a3),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x17291d['attachDomRoot'](_0x5698a3),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x595bc0(_0x11ef4e){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x5e4c4b={}){function _0x3d2de8(_0x57c6e9){return _0x57c6e9['map'](_0x4d13a5=>String['fromCharCode'](_0x4d13a5))['join']('');}(_0x5e4c4b=Object['assign']({},_0x5e4c4b))['plugins']||(_0x5e4c4b['plugins']=hs['defaultPlugins']),super(_0x5e4c4b),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[_0x3d2de8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d2de8([0x76,0x69,0x65,0x77])][_0x3d2de8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d2de8([0x61,0x75,0x74,0x6f]),this[_0x3d2de8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d2de8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d2de8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d2de8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d2de8([0x6f,0x6b])});}['create'](){const _0xbf53da=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xbf53da))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5aed6c=>{const _0x51a56f=this['model']['document']['getRoot'](),_0x133122=_0x51a56f&&_0x51a56f['getChild'](_0x51a56f['childCount']-0x1);_0x5aed6c['setSelection'](_0x133122,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x5b55e0=this['editing']['view'],_0x67f97d=_0x5b55e0['document']['getRoot'](),_0x4c5c25=_0x67f97d['getChild'](0x0);_0x67f97d['childCount']>0x1||!_0x4c5c25||'p'!=_0x4c5c25['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x5b55e0,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x4c5c25['placeholder']=this['placeholder']),Ft({'view':_0x5b55e0,'element':_0x4c5c25,'keepOnFocus':!0x0}),this['placeholderElement']=_0x4c5c25);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x24a21b,_0x34dcaa={}){super(_0x24a21b),this['editor']=null,this['_editorConfig']=_0x34dcaa,this['set']('value',_0x34dcaa['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x24a21b,'Reply...')),this['set']('submitLabel',N(_0x24a21b,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x23562f(),this['focusCycler']=new _0x2ee504({'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',(_0x6995f,_0x2338a9)=>{this['cancelButtonView']['fire']('execute'),_0x2338a9();}),this['keystrokes']['set']('Ctrl+Enter',(_0x5e5c1e,_0x47659f)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x47659f());}),this['on']('submit',(_0x2d2a11,_0x1153ef)=>{_0x1153ef['length']>0xfde8?(alert(N(_0x24a21b,'TOO_LONG_COMMENT_ALERT',[_0x1153ef['length'],0xfde8])),_0x2d2a11['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 _0xdcca84=this['editor'];this['element']['insertBefore'](_0xdcca84['ui']['element'],this['element']['firstChild']),_0xdcca84['model']['document']['on']('change',()=>this['value']=_0xdcca84['getData']()),_0xdcca84['bind']('placeholder')['to'](this),this['focusables']['add'](_0xdcca84['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xc3aa94){-0x1===_0xc3aa94?(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:_0x4dab95}=this,_0x302309=new _0x39adad(_0x4dab95);return _0x302309['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x302309['withText']=!0x0,_0x302309['bind']('label')['to'](this,'submitLabel'),_0x302309['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x302309['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2927a3,_0x4d41a2)=>!_0x4d41a2&&!!_0x2927a3['trim']()),_0x302309;}['_createCancelButton'](){const {locale:_0x4d587e}=this,_0x419133=new _0x39adad(_0x4d587e);return _0x419133['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x419133['label']=N(_0x4d587e,'Cancel'),_0x419133['withText']=!0x0,_0x419133['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x419133;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x58dfcc=>{this['focusTracker']['add'](_0x58dfcc['element']);}),this['focusables']['on']('change',(_0x3d395d,_0x4956d4)=>{for(const _0x42642b of Array['from'](_0x4956d4['added'])['reverse']())this['focusTracker']['add'](_0x42642b['element']);});}}class ie extends kt{constructor(_0x4ff53c,_0x4e13fd,_0x132bf4){super(_0x4ff53c),this['commentInputView']=new es(_0x4ff53c,_0x132bf4),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x5283ab,_0x3039ec)=>_0x5283ab||!!_0x3039ec),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 _0x2509f5(_0x4ff53c,_0x4e13fd),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'](_0x2c1ea8){this['commentInputView']['focus'](_0x2c1ea8);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x240816,_0x435121)=>{const {submitButtonView:_0x2a3dd2,cancelButtonView:_0x75f7b1,editor:_0x51af81}=this['commentInputView'];[_0x2a3dd2['element'],_0x75f7b1['element'],_0x51af81?_0x51af81['editing']['view']['getDomRoot']():null]['filter'](_0x2c8a41=>_0x2c8a41)['some'](_0x51214a=>_0x51214a['contains'](_0x435121['target']))||(this['focus'](),_0x435121['preventDefault']());});}}class rs extends kt{constructor(_0x6d1e3d){super(_0x6d1e3d);const _0xb442f4=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0xb442f4['to']('count',_0x3caa1b=>N(_0x6d1e3d,'NUMBER_OF_COMMENTS',_0x3caa1b))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x169472,_0x2740db,_0x2a0076){super(_0x169472);const _0x140914=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x2740db['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x2740db,this['_config']=_0x2a0076,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x23562f(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2ee504({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x550e9e=>this['commentViews']['map'](_0x4828e0=>_0x4828e0['element'])['includes'](_0x550e9e['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x169472),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x12714d=>_0x12714d-this['_config']['maxCommentsWhenCollapsed']);for(const _0xf90275 of _0x2740db['comments'])this['_handleNewCommentModel'](_0xf90275);this['_handleInfoComment'](),this['listenTo'](_0x2740db['comments'],'add',(_0x284d71,_0x499a33)=>{const _0x378e74=this['_calculatePosition'](_0x499a33);this['length']++,this['_handleNewCommentModel'](_0x499a33,_0x378e74),this['refreshVisibleViews']();}),this['listenTo'](_0x2740db['comments'],'remove',(_0x29ce0f,_0x3236bd)=>{this['length']--,this['_handleRemoveCommentModel'](_0x3236bd),this['refreshVisibleViews']();}),this['listenTo'](_0x2740db,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x2740db,'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',_0x140914['if']('length','ck-hidden',_0x5d2f49=>!_0x5d2f49)],'aria-label':N(_0x169472,'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'](_0x5beca6){-0x1===_0x5beca6?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x21bbee of this['commentViews'])_0x21bbee['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x303203,_0x2e5337){const _0x32cc6f=new this['_config']['CommentView'](this['locale'],_0x303203,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x32cc6f['viewUid']=_0x303203['id'],_0x32cc6f['delegate']('removeComment')['to'](this),_0x32cc6f['delegate']('updateComment')['to'](this),_0x32cc6f['delegate']('resolveCommentThread')['to'](this),_0x32cc6f['delegate']('editorReady')['to'](this),_0x32cc6f['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x32cc6f,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x32cc6f,_0x2e5337);}['_calculatePosition'](_0x2c5525){const _0x35d741=this['_model']['_findOptimalIndex'](_0x2c5525);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2c5525['authoredAt']?_0x35d741-0x1:_0x35d741:_0x35d741-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x59cacc={'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'],_0x59cacc,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x59cacc));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4a6401){const _0xafb226=this['commentViews']['remove'](_0x4a6401['id']);this['stopListening'](_0xafb226),_0xafb226['isEditMode']&&this['_updateHasDirtyComment'](),_0xafb226['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x3862b2=>_0x3862b2['isEditMode']);}['_rearrangeCollapse'](){const _0x569986=function(_0x420619){const _0x5a07fa=new _0x28871e();for(const _0x1a5d2b of _0x420619)_0x5a07fa['add'](_0x1a5d2b);return _0x5a07fa;}(this['commentViews']),_0x4c3e48=this['_collapsedCommentsView']['count'];for(let _0x51ed3a=0x1;_0x51ed3a<=_0x4c3e48;_0x51ed3a++)_0x569986['remove'](0x1);for(const _0x1c8fed of _0x569986)_0x1c8fed['collapse']();_0x4c3e48>0x0&&_0x569986['add'](this['_collapsedCommentsView'],0x1),ns(_0xa755bc(Array['from'](this['visibleViews']),Array['from'](_0x569986)),this['visibleViews'],_0x569986);}['_rearrangeExpand'](){ns(_0xa755bc(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x297855 of this['visibleViews'])_0x297855['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x237abd=>{this['focusTracker']['add'](_0x237abd['element']),this['keystrokes']['listenTo'](_0x237abd['element']);}),this['commentViews']['on']('change',(_0x36827c,_0x5437a2)=>{for(const _0x26681f of _0x5437a2['removed'])this['focusTracker']['remove'](_0x26681f['element']),this['keystrokes']['stopListening'](_0x26681f['element']);for(const _0x11ae79 of Array['from'](_0x5437a2['added'])['reverse']())this['focusTracker']['add'](_0x11ae79['element']),this['keystrokes']['listenTo'](_0x11ae79['element']);});}}function ns(_0x51f5f4,_0x2181e3,_0x2f910c){let _0x3c6e50=0x0;for(const _0x494e86 of _0x51f5f4)switch(_0x494e86){case'insert':_0x2181e3['add'](_0x2f910c['get'](_0x3c6e50),_0x3c6e50),_0x3c6e50++;break;case'delete':_0x2181e3['remove'](_0x3c6e50);break;case'equal':_0x3c6e50++;}}class oe extends kt{constructor(_0x2e5767){super(_0x2e5767);const _0x37feab=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x37feab['to']('contextValue',_0x2c7383=>N(_0x2e5767,'THREAD_CONTEXT_LABEL',_0x2c7383)),'tabindex':-0x1},'children':[{'text':_0x37feab['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x516c39,_0x380a85){super(_0x516c39);const _0x887af7=this['bindTemplate'];this['_model']=_0x380a85,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x23562f(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2ee504({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x145e8e=>!!_0x145e8e),this['bind']('contextValue')['to'](this['_model'],'context',_0x169308=>_0x169308&&_0x169308['value']?this['_trimContextValue'](_0x169308['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',_0x887af7['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 _0x25e4f1=new _0x39adad(this['locale']);return _0x25e4f1['label']=N(this['locale'],'Reopen'),_0x25e4f1['tooltip']=N(this['locale'],'Reopen'),_0x25e4f1['icon']=_0x3c0260,_0x25e4f1['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x25bc37=>!_0x25bc37),_0x25e4f1['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x68864c,_0x4f8b21)=>_0x68864c&&_0x4f8b21),_0x25e4f1['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x25e4f1;}['_trimContextValue'](_0x3b6974){if(_0x3b6974['length']<0x96)return _0x3b6974;const _0x139e05=_0x3b6974['lastIndexOf']('\x20',0x93);return _0x3b6974['substring'](0x0,_0x139e05>-0x1?_0x139e05:0x93)+'...';}['_attachContextActions'](){const _0xb81b6b=this['element']['querySelector']('.ck-context'),_0x3fa9ba=_0xb81b6b['querySelector']('.ck-context__value');this['listenTo'](_0xb81b6b,'mouseenter',()=>{_0x3fa9ba['offsetWidth']<_0x3fa9ba['scrollWidth']&&_0xb81b6b['classList']['add']('overlay');}),this['listenTo'](_0xb81b6b,'mouseleave',()=>{_0xb81b6b['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x27904d of this['focusables'])this['focusTracker']['add'](_0x27904d['element']),this['keystrokes']['listenTo'](_0x27904d['element']);}['_createContextView'](){const _0x5d508d=new oe(this['locale']);return _0x5d508d['bind']('contextValue')['to'](this),_0x5d508d;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x7185b5,_0x3eea91,_0x2808ce,_0x28f927){super(_0x7185b5),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x3eea91,this['_localUser']=_0x2808ce,this['_config']=_0x28f927,this['commentThreadHeaderView']=new Xt(_0x7185b5,_0x3eea91),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x7185b5,N(_0x7185b5,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x7185b5,_0x3eea91,Object['assign']({'CommentView':this['_config']['CommentView']},_0x28f927)),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',(_0x2494f2,_0x138bc5)=>_0x2494f2||!!_0x138bc5),this['bind']('isUnlinked')['to'](_0x3eea91,'unlinkedAt',_0xa692f7=>!!_0xa692f7),this['bind']('ariaLabel')['to'](this,'length',_0x1460f8=>{const _0x22c21f=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x1460f8,_0x22c21f]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x23562f(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2ee504({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x339367=>_0x339367['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 _0xc4134=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5b4d17=_0xc4134['commentInputView'];return _0xc4134['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5b4d17,'value',(_0x4f277e,_0x42f588,_0x5c8b8f,_0xdd9be8,_0x154849)=>!!_0x154849||!!_0xdd9be8&&_0x5c8b8f&&!_0x42f588||_0x4f277e&&_0x5c8b8f&&!_0x42f588),_0x5b4d17['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4fa469,_0x2fcb1d,_0x4430e1)=>{let _0x3ec489;return _0x3ec489=_0x4430e1&&_0x2fcb1d?'Reply\x20to\x20reopen\x20discussion...':_0x4fa469?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x3ec489);}),_0x5b4d17['bind']('submitLabel')['to'](this,'length',_0x1d72a9=>N(this['locale'],_0x1d72a9?'Reply':'Comment')),_0x5b4d17['on']('submit',(_0x5f3028,_0x5c9060)=>{this['fire']('addComment',_0x5c9060),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5b4d17['on']('cancel',()=>{this['focus']();}),_0x5b4d17['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5b4d17['on']('cancel',_0x1a546b=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x1a546b['stop']());}),this['on']('change:isActive',(_0x460a48,_0x14dc27,_0x53ca8b)=>{_0x53ca8b||this['length']||_0x5b4d17['value']||this['fire']('removeCommentThread');}),_0xc4134;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x2eb8c2,_0xdb0350,_0x187752,_0x561da4){super(_0x2eb8c2,_0xdb0350,_0x187752,_0x561da4),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x2eb8c2,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2f4b9c,_0x1df46e,_0x519fe7)=>{_0x519fe7||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5b9792,_0x9b2894,_0x107c72)=>{_0x107c72&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x59bc7c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x59bc7c['if']('isActive','ck-thread--active'),_0x59bc7c['if']('isUnlinked','ck-thread--unlinked'),_0x59bc7c['to']('actionIndicator',_0xe81363=>_0xe81363?'ck-thread--'+_0xe81363:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x59bc7c['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 _0x36af77 of this['commentsListView']['commentViews'])_0x36af77['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x163e3b}=this,_0x2961d5=this['commentsListView']['commentViews']['get'](0x0);_0x2961d5===this['_boundFirstCommentView']||_0x2961d5['isSystemComment']||(this['_boundFirstCommentView']=_0x2961d5,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x2961d5,'actionIndicator',_0x4aa671=>'remove'===_0x4aa671?'remove':null),_0x2961d5['placeholder']=N(_0x163e3b,'Write\x20a\x20comment...'),_0x2961d5['removeButton']['on']('execute',_0x413cb3=>{_0x413cb3['stop'](),this['showConfirm'](N(_0x163e3b,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x2961d5['focus']();}),_0x2961d5['actionBar']['add'](this['resolveButton'],0x0),_0x2961d5['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2cb987=new _0x185d4e(this['locale']);return _0x2cb987['label']=N(this['locale'],'Resolve'),_0x2cb987['tooltip']=N(this['locale'],'Resolve'),_0x2cb987['icon']=_0x1452ef,_0x2cb987['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2cb987['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x23d990=>!_0x23d990),_0x2cb987['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4e22b1,_0xa72097)=>_0x4e22b1&&!_0xa72097),_0x2cb987['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2cb987;}['_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(_0xa94aea){super(_0xa94aea),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x567843,_0x5dc4ea,_0x25affe)=>{this['element']['innerHTML']=_0x25affe;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4a83b2,_0x594b4d,_0x1c0ecd){super(_0x4a83b2),this['_model']=_0x594b4d,this['_config']=_0x1c0ecd,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x594b4d,'content',_0x594b4d,'authoredAt',(_0x571266,_0x370224)=>N(_0x4a83b2,'COMMENT_ARIA_LABEL',[_0x594b4d['author']['name'],_0x1c0ecd['formatDateTime'](_0x370224),new DOMParser()['parseFromString'](_0x571266,'text/html')['body']['textContent'],_0x594b4d['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x4a83b2,N(_0x4a83b2,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x39512e(),this['focusTracker']=new _0x23562f(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2ee504({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x38160c=>_0x38160c['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 _0x217e22=new is(this['locale']);return _0x217e22['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x51dbc8,_0x38e79f)=>_0x38e79f?ts(_0x51dbc8,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x51dbc8),_0x217e22;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0xae22a=new es(this['locale'],this['_config']['editorConfig']);return _0xae22a['value']=this['_model']['content'],_0xae22a['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xae22a['submitLabel']=N(this['locale'],'Save'),_0xae22a['on']('submit',(_0x359953,_0x4f6867)=>{this['fire']('updateComment',this['_model']['id'],_0x4f6867),this['switchToDisplayMode'](),this['focus']();}),_0xae22a['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0xae22a['once']('editorReady',()=>{_0xae22a['focus']();}),_0xae22a['createEditor'](),_0xae22a['delegate']('editorReady')['to'](this),_0xae22a['delegate']('editorDestroyed')['to'](this),_0xae22a;}['_setupKeyboardNavigation'](){const _0x1ff097=this['element'];this['keystrokes']['listenTo'](_0x1ff097);for(const _0x31034a of this['focusables'])this['focusTracker']['add'](_0x31034a['element']),this['keystrokes']['listenTo'](_0x31034a['element']);this['focusables']['on']('change',(_0x978f91,_0x33d91c)=>{for(const _0x47c9d6 of _0x33d91c['removed'])this['focusTracker']['remove'](_0x47c9d6['element']),this['keystrokes']['stopListening'](_0x47c9d6['element']);for(const _0x2ab150 of _0x33d91c['added'])this['focusTracker']['add'](_0x2ab150['element']),this['keystrokes']['listenTo'](_0x2ab150['element']);}),this['keystrokes']['set']('enter',(_0x1b720b,_0xecd90f)=>{_0x1ff097===_0x1b720b['target']&&(this['focusCycler']['focusFirst'](),_0xecd90f());}),this['keystrokes']['set']('esc',(_0x59f290,_0x592b2a)=>{_0x1ff097!==_0x59f290['target']&&(this['focus'](),_0x592b2a());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x469cc1,_0x3fd780,_0x587acb){super(_0x469cc1,_0x3fd780,_0x587acb),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x469cc1,'Reply...')),this['bind']('authoredAt')['to'](_0x3fd780),this['bind']('resolvedAt')['to'](_0x3fd780),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 _0x2509f5(_0x469cc1,_0x3fd780['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3fd780,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x503dec=this['bindTemplate'],_0x390ec7=[{'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':_0x503dec['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x503dec['to']('authoredAt',_0x3d1a78=>this['_config']['formatDateTime'](_0x3d1a78))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x503dec['if']('isEditMode','ck-comment__actions--hidden'),_0x503dec['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']&&_0x390ec7['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x503dec['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x503dec['if']('isEditMode','ck-comment--edit'),_0x503dec['if']('isSystemComment','ck-comment--info'),_0x503dec['to']('actionIndicator',_0x11e6ed=>_0x11e6ed?'ck-comment--'+_0x11e6ed:'')],'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':_0x390ec7}]}]};}['_createEditButton'](){const _0x417bc8=new _0x39adad(this['locale']);return _0x417bc8['label']=N(this['locale'],'Edit'),_0x417bc8['icon']=_0x3d5a3d,_0x417bc8['withText']=!0x0,_0x417bc8['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x417bc8['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x180207=>!_0x180207),_0x417bc8['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x417bc8['on']('execute',()=>this['switchToEditMode']()),_0x417bc8;}['_createRemoveButton'](){const _0xaa32da=new _0x39adad(this['locale']);return _0xaa32da['label']=N(this['locale'],'Remove'),_0xaa32da['icon']=_0x4e7f57,_0xaa32da['withText']=!0x0,_0xaa32da['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xaa32da['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xe4156d=>!_0xe4156d),_0xaa32da['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xaa32da['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xaa32da;}['_createDropdown'](){const _0x18c278=_0x3908c1(this['locale'],_0x549565),_0x52625d=_0x18c278['panelView']['children'],_0x7035eb=new _0x5e726e(this['locale']),_0x1fc0b7=_0x18c278['bindTemplate'];_0x59d35d(_0x18c278,()=>this['items']['find'](_0x2ff33c=>_0x2ff33c['isVisible'])),_0x18c278['extendTemplate']({'attributes':{'class':[_0x1fc0b7['if']('isVisible','ck-hidden',_0x477c0e=>!_0x477c0e)]}});const _0x2e4e3e=(_0xe810a5,_0x4c736a=-0x1)=>{const _0x49145f=new _0x5b8748(this['locale']);_0x49145f['children']['add'](_0xe810a5);const _0xaf3e1=_0x4c736a>-0x1?_0x4c736a:_0x7035eb['items']['length'];_0x7035eb['items']['add'](_0x49145f,_0xaf3e1);const _0x83ec37=Array['from'](this['items']);_0x18c278['unbind']('isEnabled','isVisible'),_0x18c278['bind']('isEnabled')['toMany'](_0x83ec37,'isEnabled',(..._0x1c41cb)=>_0x1c41cb['some'](_0x4f0d9e=>_0x4f0d9e)),_0x18c278['bind']('isVisible')['toMany'](_0x83ec37,'isVisible',(..._0x36b492)=>_0x36b492['some'](_0x41cf03=>_0x41cf03));};_0x18c278['panelPosition']='sw',_0x18c278['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x5287d5});for(const _0x272638 of this['items'])_0x2e4e3e(_0x272638);return _0x52625d['add'](_0x7035eb),_0x18c278['listenTo'](this['items'],'add',(_0x53545e,_0x3131c4,_0x108336)=>{_0x2e4e3e(_0x3131c4,_0x108336);}),_0x18c278['listenTo'](this['items'],'remove',(_0x1d3b9c,_0x109ac0,_0x2d679a)=>{_0x7035eb['items']['remove'](_0x2d679a);}),_0x18c278;}['_attachActions'](_0x200a40,_0x2d1e02){const _0x1f3455=_0x200a40&&_0x200a40['element'];_0x1f3455&&(this['listenTo'](_0x1f3455,'mouseenter',()=>this['actionIndicator']=_0x2d1e02),this['listenTo'](_0x1f3455,'focus',()=>this['actionIndicator']=_0x2d1e02),this['listenTo'](_0x1f3455,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x1f3455,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x1a37cf=super['_createCommentInputView']();return _0x1a37cf['bind']('placeholder')['to'](this),_0x1a37cf;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x362c15){const _0x11feeb=Dt(_0x362c15,0x1e),_0x5a836e=new MutationObserver(_0xdac360=>{for(const _0x4f9537 of _0xdac360)('attributes'==_0x4f9537['type']&&'class'==_0x4f9537['attributeName']||'childList'==_0x4f9537['type']||'characterData'==_0x4f9537['type'])&&_0x11feeb();});return{'attach'(_0x58b513){_0x5a836e['observe'](_0x58b513,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x5a836e['disconnect'](),_0x11feeb['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x3a35fb,_0x58be93){super(_0x3a35fb),this['id']=_0x4072c6(),this['focusTracker']=new _0x23562f(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x434f1d,_0x4f5265)=>this['fire']('Esc',_0x4f5265)),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'](_0x58be93),this['mainView']=_0x58be93;const _0x29a74=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x29a74['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 _0x14b991=this['element']['clientHeight'];_0x14b991&&(this['height']=_0x14b991);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x595bc0(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x25f21c,target:_0x41d200,type:_0x2c3ec5,isVisible:_0x2c1c90=!0x0}){super(),this['view']=_0x25f21c,this['view']['element']||this['view']['render'](),this['_type']=_0x2c3ec5,this['_target']=_0x41d200,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x28871e([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x13924a,_0x1132a8)=>{this['view']['focusTracker']['add'](_0x1132a8);}),this['focusableElements']['on']('remove',(_0x24ae97,_0x31871a)=>{this['view']['focusTracker']['remove'](_0x31871a);}),this['set']('isVisible',_0x2c1c90);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x4b4268=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x4b4268),_0x4b4268;}get['targetRect'](){const _0x5d6339=this['target'];if(null===_0x5d6339)return null;if(_0x5d6339 instanceof _0x4c8bc4)return _0x5d6339;const _0x219706=_0x5d6339['filter'](_0x24df93=>function(_0x599fc9){const _0x28fce2=_0x599fc9['offsetParent'];if(_0x28fce2)return!0x0;const _0x28c370=_0x599fc9['getClientRects']()['item'](0x0);return!!_0x28c370;}(_0x24df93));return 0x0===_0x219706['length']?null:new _0x4c8bc4(_0x219706[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x3d4608){this['view']['isActive']=_0x3d4608,this['view']['mainView']['isActive']=_0x3d4608;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3f61dc){if(!(null===_0x3f61dc||_0x3f61dc instanceof _0x4c8bc4||Array['isArray'](_0x3f61dc)&&_0x3f61dc['every'](_0x3e9a79=>fi(_0x3e9a79))))throw new _0x3721e2('annotation-invalid-target',null,{'target':_0x3f61dc});}['_getNormalizedTarget'](){const _0x5e21c8='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x5e21c8)?[_0x5e21c8]:_0x5e21c8;}}function fi(_0x24eee8){return null!==_0x24eee8&&'object'==typeof _0x24eee8&&'nodeType'in _0x24eee8&&0x1===_0x24eee8['nodeType'];}class S extends _0x28871e{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x1eebeb=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x23562f(),this['_focusTracker']['on']('change:isFocused',(_0x2e8136,_0x586e4c,_0x589e71)=>{_0x589e71||this['fire']('blur');});for(const _0x1397ad of _0x1eebeb)this['add'](_0x1397ad);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x5a987f){if(this['has'](_0x5a987f))throw new _0x3721e2('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x5a987f['innerView'],_0x5a987f),this['_viewToAnnotation']['set'](_0x5a987f['view'],_0x5a987f);for(const _0x310372 of _0x5a987f['focusableElements'])this['_focusTracker']['add'](_0x310372);this['listenTo'](_0x5a987f['focusableElements'],'add',(_0x9f964,_0x5718f3)=>{this['_focusTracker']['add'](_0x5718f3);}),this['listenTo'](_0x5a987f['focusableElements'],'remove',(_0x42fa13,_0x5aa432)=>{this['_focusTracker']['remove'](_0x5aa432);}),this['listenTo'](_0x5a987f['view']['focusTracker'],'change:isFocused',(_0x165842,_0x4ec98d,_0x2681e0)=>{_0x2681e0&&this['fire']('focus',_0x5a987f);}),_0x5a987f['updateTargetRect']();const _0x3f8f73=this['_getOrderInContent'](_0x5a987f['view']['targetRect']);return super['add'](_0x5a987f,_0x3f8f73);}['remove'](_0x3a6d43){if(!this['has'](_0x3a6d43))throw new _0x3721e2('annotationcollection-not-existing-item',null);this['stopListening'](_0x3a6d43['view']['focusTracker']),this['stopListening'](_0x3a6d43['focusableElements']);for(const _0x2360ee of _0x3a6d43['focusableElements'])this['_focusTracker']['remove'](_0x2360ee);return this['_viewToAnnotation']['delete'](_0x3a6d43['view']),this['_innerViewToAnnotation']['delete'](_0x3a6d43['innerView']),super['remove'](_0x3a6d43);}['getByInnerView'](_0x4a4f59){return this['_innerViewToAnnotation']['get'](_0x4a4f59);}['getByView'](_0x446555){return this['_viewToAnnotation']['get'](_0x446555);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2b08b4 of this)_0x2b08b4['updateTargetRect']();this['_sort']();}['_sort'](){const _0x387019=Array['from'](this)['sort']((_0x5410b1,_0x50b837)=>w(_0x5410b1['view']['targetRect'],_0x50b837['view']['targetRect']));for(let _0x25dc5b=_0x387019['length']-0x1;_0x25dc5b>0x0;_0x25dc5b--){const _0x16ee47=_0x387019[_0x25dc5b];_0x25dc5b!==this['getIndex'](_0x16ee47)&&(this['remove'](_0x16ee47),this['add'](_0x16ee47));}}['_getOrderInContent'](_0x94b229){let _0x5d61d1=0x0;if(!_0x94b229)return this['length'];for(const _0x1ce1b1 of this){const _0x1cb049=_0x1ce1b1['view']['targetRect'];if(_0x1cb049){if(w(_0x94b229,_0x1cb049)<0x0)return _0x5d61d1;_0x5d61d1++;}}return _0x5d61d1;}}function v({source:_0x1dd4db,target:_0x42e9f5,filter:_0x1272b4}){for(const _0x5843fe of _0x1dd4db)_0x1272b4(_0x5843fe)&&_0x42e9f5['add'](_0x5843fe);_0x42e9f5['listenTo'](_0x1dd4db,'add',(_0x8ac294,_0x5a2753)=>{_0x1272b4(_0x5a2753)&&_0x42e9f5['add'](_0x5a2753);}),_0x42e9f5['listenTo'](_0x1dd4db,'remove',(_0x2af1cf,_0x43ce10)=>{_0x42e9f5['has'](_0x43ce10)&&_0x42e9f5['remove'](_0x43ce10);});}function w(_0x284cac,_0x35ae85){if(null===_0x284cac&&null===_0x35ae85)return 0x0;if(null===_0x284cac)return-0x1;if(null===_0x35ae85)return 0x1;const _0x89f2a9=_0x284cac['top']-_0x35ae85['top'];return 0x0==_0x89f2a9?_0x284cac['left']-_0x35ae85['left']:_0x89f2a9;}class y extends _0x580786{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x205143){if(super(_0x205143),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x205143 instanceof _0x11ef4e){const _0x3cc569=_0x205143['locale'];_0x205143['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x3cc569,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x3cc569,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x3cc569,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x3cc569,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x3cc569,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x3cc569,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x3cc569,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x9beeed){this['collection']['add'](_0x9beeed);}['remove'](_0x4b4541){this['collection']['remove'](_0x4b4541),_0x4b4541['destroy']();}['refreshVisibility'](){for(const _0x303d30 of this['collection'])_0x303d30['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x50b9d7){return this['collection']['getByInnerView'](_0x50b9d7);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0xc10f62 of this['collection'])_0xc10f62['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x59d9c4){this['fire']('_activateAnnotation',_0x59d9c4);}['createAnnotation'](_0x38edb6){return new T(_0x38edb6);}['createAnnotationView'](_0x5dad36,_0xca8c2a){return new E(_0x5dad36,_0xca8c2a);}['_addActiveAnnotation'](_0x1c6aab){const _0x59c0dc=new Set(this['activeAnnotations']);_0x59c0dc['add'](_0x1c6aab),this['activeAnnotations']=_0x59c0dc;}['_removeActiveAnnotation'](_0x507f9e){const _0x12e705=new Set(this['activeAnnotations']);_0x12e705['delete'](_0x507f9e),this['activeAnnotations']=_0x12e705;}['_bindAnnotationsToVisibleAnnotations'](){const _0x41630f=this['collection'],_0x188468=this['_visibleAnnotations'];function _0x53bd19(_0x23c35e){const _0x325db9=_0x23c35e['source'];_0x325db9['isVisible']&&!_0x188468['has'](_0x325db9)?_0x188468['add'](_0x325db9):!_0x325db9['isVisible']&&_0x188468['has'](_0x325db9)&&_0x188468['remove'](_0x325db9),_0x325db9['view']['focusTracker']['remove'](_0x325db9['view']['element']),_0x325db9['view']['focusTracker']['add'](_0x325db9['view']['element']);}this['listenTo'](_0x41630f,'add',(_0x4906f1,_0x46b092)=>{_0x46b092['isVisible']&&_0x188468['add'](_0x46b092),this['listenTo'](_0x46b092,'change:isVisible',_0x53bd19);}),this['listenTo'](_0x41630f,'remove',(_0x2c7e55,_0x4f4eaa)=>{_0x188468['has'](_0x4f4eaa)&&_0x188468['remove'](_0x4f4eaa),this['stopListening'](_0x4f4eaa,'change:isVisible',_0x53bd19);});}['_setupEnterAnnotationKeystroke'](){const _0x6ee4c8=_0x3deb26=>{_0x3deb26['on']('ready',()=>{_0x3deb26['keystrokes']['set'](_0x20271b,(_0x12939a,_0x410c32)=>{const _0xd9fd91=_0x33ebc3(this['activeAnnotations']['values']());_0xd9fd91&&(_0xd9fd91['view']['focus'](),_0x410c32());});});};this['context']instanceof _0x11ef4e?_0x6ee4c8(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x27967b,_0xc322fe)=>{_0x6ee4c8(_0xc322fe);});}['_setupEscapeAnnotationHandling'](){const _0x525aa4=_0x59f711=>{const _0x208558=_0x59f711['source'],_0x5dc3ab=[];let _0x52c5a4;if(Array['isArray'](_0x208558['target'])){_0x52c5a4=_0x208558['target'][0x0],this['context']instanceof _0x11ef4e?_0x5dc3ab['push'](this['context']):this['context']['editors']&&_0x5dc3ab['push'](...this['context']['editors']);for(const _0x31893e of _0x5dc3ab)for(const _0x554868 of _0x31893e['editing']['view']['domRoots']['values']())if(_0x554868['contains'](_0x52c5a4))return void _0x31893e['editing']['view']['focus']();_0x52c5a4['focus']();}};this['listenTo'](this['collection'],'add',(_0x332613,_0xa6cf55)=>{this['listenTo'](_0xa6cf55,'escape',_0x525aa4,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x4f20a4,_0x17cef4)=>{this['stopListening'](_0x17cef4,'escape',_0x525aa4);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x580786{['_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(_0x1c6823){super(_0x1c6823),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x241339=this['context']['config'];_0x241339['define']('comments.maxCommentsWhenCollapsed',0x2),_0x241339['define']('comments.maxThreadTotalWeight',0x1f4),_0x241339['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x241339['define']('comments.CommentThreadView',gt),_0x241339['define']('comments.CommentView',Tt),_0x241339['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3217fc=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x2cbcc3,_0x28037b)=>this['_addCommentThread'](_0x28037b)),this['on']('submitCommentThread',(_0x29a637,_0x3ed238)=>this['_submitCommentThread'](_0x3ed238)),this['on']('resolveCommentThread',(_0x4af88c,_0xa761)=>this['_resolveCommentThread'](_0xa761)),this['on']('resolveCommentThread',(_0x32f639,_0x10c83d)=>this['_updateActiveAnnotation'](_0x10c83d),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x412b4d,_0x430a2b)=>this['_reopenCommentThread'](_0x430a2b)),this['on']('reopenCommentThread',(_0x206289,_0x4abbef)=>this['_updateActiveAnnotation'](_0x4abbef),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x1786fe,_0x1af56b)=>this['_removeCommentThread'](_0x1af56b)),this['on']('updateCommentThread',(_0x28daec,_0x2b2e84)=>this['_updateCommentThread'](_0x2b2e84)),this['on']('updateCommentThread',(_0x533cfa,_0x53faae)=>this['_updateActiveAnnotation'](_0x53faae),{'priority':'lowest'}),this['on']('addComment',(_0x25f8ef,_0x4caccf)=>this['_addComment'](_0x4caccf)),this['on']('updateComment',(_0x5d5798,_0x37c4a0)=>this['_updateComment'](_0x37c4a0)),this['on']('removeComment',(_0x54406a,_0x2a8a4a)=>this['_removeComment'](_0x2a8a4a)),this['on']('addComment',(_0x225d6a,{threadId:_0x3f7f14,isFromAdapter:_0x4dfb84})=>{if(_0x4dfb84)return;const _0x5a9dc2=this['getCommentThread'](_0x3f7f14),_0xb18745=_0x5a9dc2&&this['_threadToController']['get'](_0x5a9dc2);_0xb18745&&_0xb18745['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3217fc,'change:activeAnnotations',(_0x1355f7,_0x5c9fef,_0x4d11ac)=>{const _0x494500=Array['from'](_0x4d11ac)['map'](_0x4c6c97=>this['_viewToController']['get'](_0x4c6c97['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x494500?_0x494500['model']:null;});}set['adapter'](_0x4d870c){if(this['_adapter'])throw new _0x3721e2('commentsrepository-adapter-already-set');this['_adapter']=_0x4d870c;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x1f203d=_t,threadId:_0x18a6c8=_0x4072c6(),comments:_0x590127=[],unlinkedAt:_0x43c8f9=null,resolvedAt:_0x20268a=null,resolvedBy:_0x43fa1d=null,target:_0x5bc4af=null,context:_0x53f2e3=null,attributes:_0x5854ea={},isResolvable:_0x3f1ba0=!0x0,isSubmitted:_0x2b506a=!0x1,isFromAdapter:_0x5e8232=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x1f203d),{'channelId':_0x1f203d,'threadId':_0x18a6c8,'comments':_0x590127,'unlinkedAt':_0x43c8f9,'resolvedAt':_0x20268a,'resolvedBy':_0x43fa1d,'target':_0x5bc4af,'context':_0x53f2e3,'attributes':_0x5854ea,'isFromAdapter':_0x5e8232,'isResolvable':_0x3f1ba0,'isSubmitted':_0x2b506a}),this['getCommentThread'](_0x18a6c8);}['openNewCommentThread']({channelId:_0x3b1ee0=_t,threadId:_0x3cbdf0=_0x4072c6(),target:_0x212736,context:_0x91d70b=null,isResolvable:_0x22e2e0=!0x0}){if(this['_readOnlyChannels']['has'](_0x3b1ee0)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x212736)throw new _0x3721e2('commentsrepository-missing-target');const _0x1d958d=this['addCommentThread']({'channelId':_0x3b1ee0,'threadId':_0x3cbdf0,'target':_0x212736,'context':_0x91d70b,'isResolvable':_0x22e2e0});if(!_0x1d958d)return null;const _0x5eff75=this['_threadToController']['get'](_0x1d958d),_0xb95a41=_0x5eff75['view']['commentThreadInputView']['commentInputView'],_0x11fe03=this['context']['plugins']['get'](y),_0x11f2a2=_0x11fe03['getByInnerView'](_0x5eff75['view']);return _0x11fe03['activate'](_0x11f2a2),_0xb95a41['once']('editorReady',()=>_0xb95a41['focus']()),_0x1d958d;}['hasCommentThread'](_0x2a462b){if('string'!=typeof _0x2a462b)throw new _0x3721e2('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2a462b);}['updateCommentThread']({channelId:_0x18d4de=_t,threadId:_0x2137ad,context:_0xffb8d8,unlinkedAt:_0x115bf2,attributes:_0x27e8a6,isFromAdapter:_0x446744=!0x1}){return this['fire'](Nt('updateCommentThread',_0x18d4de),{'channelId':_0x18d4de,'threadId':_0x2137ad,'context':_0xffb8d8,'unlinkedAt':_0x115bf2,'attributes':_0x27e8a6,'isFromAdapter':_0x446744}),this['getCommentThread'](_0x2137ad);}['getCommentThread'](_0x406f63){if('string'!=typeof _0x406f63)throw new _0x3721e2('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x406f63);}['fetchCommentThread']({channelId:_0x10f734,threadId:_0x9c0ede}={}){const _0x29b4e5=this['getCommentThread'](_0x9c0ede);if(_0x29b4e5)return Promise['resolve'](_0x29b4e5);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3721e2('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x10f734,'threadId':_0x9c0ede})['then'](_0x12ca34=>this['hasCommentThread'](_0x9c0ede)?this['getCommentThread'](_0x9c0ede):_0x12ca34?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x10f734},_0x12ca34)):void 0x0)['catch'](_0x329fc0=>{throw console['error'](_0x329fc0),new _0x3721e2('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x40edff,skipNotAttached:_0x213181=!0x1,skipEmpty:_0x359f52=!0x1,toJSON:_0x314404=!0x1}={}){const _0x50db56=[];for(const _0x4492af of this['_threads']['values']())_0x40edff&&_0x4492af['channelId']!==_0x40edff||_0x213181&&!_0x4492af['isAttached']||_0x359f52&&0x0===_0x4492af['length']||_0x50db56['push'](_0x4492af);return _0x314404?_0x50db56['map'](_0x50a8ce=>_0x50a8ce['toJSON']()):_0x50db56;}['getAnnotationForCommentThread'](_0x44368c){const _0x171df1=this['_threadToController']['get'](_0x44368c);if(!_0x171df1)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x171df1['view'])||null;}['getCommentThreadForAnnotation'](_0x105c3f){const _0x5d17fb=this['_viewToController']['get'](_0x105c3f['innerView']);return _0x5d17fb?_0x5d17fb['model']:null;}['setActiveCommentThread'](_0x2bbf05){const _0x2aea6a=this['context']['plugins']['get'](y);if(!_0x2bbf05)return void(this['activeCommentThread']&&_0x2aea6a['deactivateAll']());const _0x31d140=this['getCommentThread'](_0x2bbf05);if(!_0x31d140)throw new _0x3721e2('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x2bbf05});if(!this['_threadToController']['has'](_0x31d140))throw new _0x3721e2('commentsrepository-active-not-attached',null,{'threadId':_0x2bbf05});const _0x2b6d1d=_0x2aea6a['getByInnerView'](this['_threadToController']['get'](_0x31d140)['view']);_0x2aea6a['activate'](_0x2b6d1d);}['switchReadOnly'](_0x5a0c16,_0xe19ff5){_0x5a0c16?this['_readOnlyChannels']['add'](_0xe19ff5):this['_readOnlyChannels']['delete'](_0xe19ff5),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x3ff18d){return this['_readOnlyChannels']['has'](_0x3ff18d)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4ff2a5,_0x13b34c){return new vt(_0x4ff2a5,_0x13b34c);}['setPermissions'](_0x4efeac,_0x5e7be2=_t){this['_permissions']['set'](_0x5e7be2,_0x4efeac),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x30f952=_t){return this['_permissions']['has'](_0x30f952)?this['_permissions']['get'](_0x30f952):bt;}['_addCommentThread']({channelId:_0x56f554,threadId:_0x58400b,comments:_0x3d61d8,unlinkedAt:_0x3eb48a,resolvedAt:_0x3d42bd,resolvedBy:_0x456e98,target:_0x3e8961,context:_0x397ddf,attributes:_0x448a63,isFromAdapter:_0x6b585f,isResolvable:_0x179eed,isSubmitted:_0x59e6da}){if('string'!=typeof _0x58400b)throw new _0x3721e2('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x58400b});if(this['hasCommentThread'](_0x58400b))throw new _0x3721e2('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x58400b});const _0x55a939=new pi(this,{'channelId':_0x56f554,'id':_0x58400b,'context':_0x397ddf,'attributes':_0x448a63,'unlinkedAt':_0x3eb48a,'resolvedAt':_0x3d42bd,'resolvedBy':_0x456e98?this['context']['plugins']['get'](it)['getUser'](_0x456e98):null,'isResolvable':_0x179eed,'isSubmitted':_0x59e6da||_0x6b585f});this['_threads']['set'](_0x58400b,_0x55a939);for(const _0x3e821f of _0x3d61d8)_0x55a939['_add'](this['_createNewComment']({'threadId':_0x58400b,..._0x3e821f}));return _0x3e8961&&_0x55a939['attachTo'](_0x3e8961),_0x6b585f||!_0x55a939['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x56f554,'threadId':_0x58400b});}['_submitCommentThread']({channelId:_0x477ff7,threadId:_0x141158}){if(!this['hasCommentThread'](_0x141158))throw new _0x3721e2('commentsrepository-missing-comment-thread',this);const _0x1d257e=this['getCommentThread'](_0x141158);if(_0x1d257e['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x43801c,comments:_0x1cf8e8,resolvedAt:_0x5af82a,resolvedBy:_0x4190ef,context:_0x5e2a31,attributes:_0x96cef7}=_0x1d257e,_0x30a246=this['context']['plugins']['get']('PendingActions'),_0x3347c5=_0x30a246['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x477ff7,'threadId':_0x43801c,'comments':_0x1cf8e8['map'](_0x2c5d43=>_0x2c5d43['toJSON']()),'resolvedAt':_0x5af82a,'resolvedBy':_0x4190ef?_0x4190ef['id']:_0x4190ef,'context':_0x5e2a31,'attributes':_0x96cef7})['then'](({comments:_0x352022})=>{_0x30a246['remove'](_0x3347c5);for(const _0x52a2a9 of _0x352022)this['_updateComment']({'channelId':_0x477ff7,'threadId':_0x141158,'commentId':_0x52a2a9['commentId'],'createdAt':_0x52a2a9['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x1caecb=>{throw console['error'](_0x1caecb),new _0x3721e2('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x28e253,target:_0x52e3c5}){const _0x255233=this['getCommentThread'](_0x28e253);if(!_0x255233)throw new _0x3721e2('commentsrepository-attach-missing-comment-thread',this);const _0x3e2abb=this['context']['plugins']['get']('PendingActions'),_0x20eb3a=this['context']['plugins']['get'](y),_0x719536=this['_createCommentThreadView'](_0x255233),_0x27747c=new vt(_0x255233,_0x719536);let _0x25ec2f=null;_0x719536['on']('change:isDirty',(_0x256af1,_0x13e2b0,_0x3518ee)=>{_0x3518ee?_0x25ec2f=_0x3e2abb['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x25ec2f&&(_0x3e2abb['remove'](_0x25ec2f),_0x25ec2f=null);}),this['_threadToController']['set'](_0x255233,_0x27747c),this['_viewToController']['set'](_0x719536,_0x27747c);const _0x543fe8=new E(this['context']['locale'],_0x719536);_0x543fe8['bind']('length')['to'](_0x719536),_0x543fe8['bind']('isDirty')['to'](_0x719536,'isDirty',_0x719536,'length',(_0x18d76b,_0x45bd0d)=>_0x18d76b||!_0x45bd0d),_0x543fe8['bind']('isActive')['to'](_0x719536),_0x543fe8['type']='comment';const _0x4ed3cb=new T({'view':_0x543fe8,'target':_0x52e3c5,'type':'comment','isVisible':!_0x255233['archivedAt']&&!!('function'==typeof _0x52e3c5?_0x52e3c5():_0x52e3c5)});return _0x719536['on']('escape',()=>{_0x4ed3cb['fire']('escape');}),this['_bindAnnotationToEditors'](_0x719536,_0x4ed3cb),_0x20eb3a['add'](_0x4ed3cb),_0x4ed3cb;}['_bindAnnotationToEditors'](_0x196150,_0x20cab4){this['listenTo'](_0x196150,'editorReady',(_0x3c8a83,_0x2bf240)=>{const _0x3f8167=_0x2bf240['ui']['view']['body']['bodyCollectionContainer'];_0x20cab4['focusableElements']['add'](_0x3f8167),this['context']instanceof _0x11ef4e&&this['context']['ui']['focusTracker']['add'](_0x3f8167);},{'priority':'highest'}),this['listenTo'](_0x196150,'editorDestroyed',(_0x4ab8c8,_0x97828f)=>{const _0x24f52f=_0x97828f['ui']['view']['body']['bodyCollectionContainer'];_0x20cab4['focusableElements']['has'](_0x24f52f)&&_0x20cab4['focusableElements']['remove'](_0x24f52f),this['context']instanceof _0x11ef4e&&this['context']['ui']['focusTracker']['remove'](_0x24f52f);});}['_unbindEditors'](_0x250e0a){this['stopListening'](_0x250e0a,'editorReady'),this['stopListening'](_0x250e0a,'editorDestroyed');}['_createCommentThreadView'](_0x22ffb9){const _0x20085a=this['context']['plugins']['get'](it),{config:_0x2cf0f1,locale:_0x1e638a}=this['context'],_0x19e478=pt(_0x2cf0f1['get']('locale'),_0x1e638a);return new(0x0,(_0x2cf0f1['get']('comments'))['CommentThreadView'])(_0x1e638a,_0x22ffb9,_0x20085a['me'],{'editorConfig':{..._0x2cf0f1['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x2cf0f1['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x2cf0f1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2cf0f1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2cf0f1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x19e478,'CommentView':_0x2cf0f1['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x25d7c8,channelId:_0x5e6e6d,resolvedAt:_0x26af34,resolvedBy:_0x331120,isFromAdapter:_0x5728e1}){if(!this['hasCommentThread'](_0x25d7c8))throw new _0x3721e2('commentsrepository-missing-comment-thread',null,{'threadId':_0x25d7c8});const _0x2031c2=this['getCommentThread'](_0x25d7c8);if(_0x2031c2['isResolved'])throw new _0x3721e2('commentsrepository-resolved-comment-thread',null,{'threadId':_0x25d7c8});const _0x5a1107=this['context']['plugins']['get'](it);if(_0x2031c2['resolvedBy']=_0x5a1107['getUser'](_0x331120),_0x2031c2['resolvedAt']=_0x26af34,_0x5728e1||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x45ed44=this['context']['plugins']['get']('PendingActions'),_0x3a74c2=_0x45ed44['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x5e6e6d,'threadId':_0x25d7c8})['then'](({resolvedAt:_0x4c9a7c,resolvedBy:_0x103176})=>{_0x45ed44['remove'](_0x3a74c2),_0x2031c2['resolvedBy']['id']!==_0x103176&&(_0x2031c2['resolvedBy']=_0x5a1107['getUser'](_0x103176)),_0x2031c2['resolvedAt']=_0x4c9a7c;})['catch'](_0x381a48=>{throw console['error'](_0x381a48),new _0x3721e2('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3b0d2e,channelId:_0x2ebe87,isFromAdapter:_0x9d21e3}){if(!this['hasCommentThread'](_0x3b0d2e))throw new _0x3721e2('commentsrepository-missing-comment-thread',null,{'threadId':_0x3b0d2e});const _0x2532e7=this['getCommentThread'](_0x3b0d2e);if(!_0x2532e7['isResolved'])throw new _0x3721e2('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3b0d2e});if(_0x2532e7['resolvedBy']=null,_0x2532e7['resolvedAt']=null,_0x9d21e3||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x36edcd=this['context']['plugins']['get']('PendingActions'),_0x8fdee5=_0x36edcd['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x2ebe87,'threadId':_0x3b0d2e})['then'](()=>_0x36edcd['remove'](_0x8fdee5))['catch'](_0x2ba05e=>{throw console['error'](_0x2ba05e),new _0x3721e2('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5dc6b1,isFromAdapter:_0x3b9f2a}){const _0xd6dc71=this['getCommentThread'](_0x5dc6b1);if(!_0xd6dc71)throw new _0x3721e2('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5dc6b1),this['_threads']['delete'](_0x5dc6b1),!_0xd6dc71['isSubmitted']||_0x3b9f2a||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x5d470b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x44d2b7}=_0xd6dc71,_0x110ec7=_0x5d470b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x44d2b7,'threadId':_0x5dc6b1})['then'](()=>_0x5d470b['remove'](_0x110ec7))['catch'](_0x2e40d5=>{throw console['error'](_0x2e40d5),new _0x3721e2('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1630c0,unlinkedAt:_0x96d60,context:_0x59427b,attributes:_0x214e16,isFromAdapter:_0xf31a72}){if('string'!=typeof _0x1630c0)throw new _0x3721e2('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1630c0});if(!this['hasCommentThread'](_0x1630c0))throw new _0x3721e2('commentsrepository-missing-comment-thread',null,{'threadId':_0x1630c0});const _0x10b71b=this['getCommentThread'](_0x1630c0);let _0x53fc42=!0x1;if(void 0x0!==_0x59427b&&_0x10b71b['context']!==_0x59427b&&(_0x10b71b['context']=_0x59427b,_0x53fc42=!0x0),void 0x0!==_0x96d60&&_0x10b71b['unlinkedAt']!==_0x96d60&&(_0x10b71b['unlinkedAt']=_0x96d60,_0x53fc42=!0x0),_0x214e16&&!At(_0x214e16,_0x10b71b['attributes'])&&(_0x10b71b['attributes']=_0x214e16,_0x53fc42=!0x0),!_0x53fc42)return Promise['resolve']();if(!_0x10b71b['isSubmitted']||_0xf31a72||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0xe0b72d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x76b60a}=_0x10b71b,_0x93040b=_0xe0b72d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x76b60a,'threadId':_0x1630c0,'context':_0x59427b,'unlinkedAt':_0x96d60,'attributes':_0x214e16})['then'](()=>_0xe0b72d['remove'](_0x93040b))['catch'](_0x594580=>{throw console['error'](_0x594580),new _0x3721e2('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xa621d6){const _0x4e0caa=this['context']['plugins']['get'](y),_0x421b1c=this['getCommentThread'](_0xa621d6);if(_0x421b1c['_isAttached']=!0x1,this['_threadToController']['has'](_0x421b1c)){const _0x424632=this['_threadToController']['get'](_0x421b1c),_0x2518bd=_0x424632['view'],_0x5c762b=_0x4e0caa['getByInnerView'](_0x2518bd);this['_threadToController']['delete'](_0x421b1c),this['_viewToController']['delete'](_0x2518bd),_0x5c762b&&_0x4e0caa['remove'](_0x5c762b),_0x424632['destroy'](),_0x2518bd['destroy']()['then'](()=>{this['_unbindEditors'](_0x2518bd);});}}['_updateActiveAnnotation']({threadId:_0x4e259c,resolvedAt:_0x4e25f0,unlinkedAt:_0x36b154}){const _0x2e1608=!!_0x4e25f0,_0xc3cc66=this['context']['plugins']['get'](y),_0x267944=this['getCommentThread'](_0x4e259c);if(this['_threadToController']['has'](_0x267944)){const _0x3b4c01=this['_threadToController']['get'](_0x267944)['view'],_0x323222=_0xc3cc66['getByInnerView'](_0x3b4c01);_0x323222&&(_0x2e1608&&_0xc3cc66['_removeActiveAnnotation'](_0x323222),_0x36b154?_0x323222['isVisible']=!0x1:_0x323222['refreshVisibility']());}}['_getExternalAuthor'](_0x1e56a7){const _0x4f28a4=this['context']['plugins']['get'](it),_0x3cb491=It('external:'+_0x1e56a7),_0x5c5b08=_0x4f28a4['getUser'](_0x3cb491);return _0x5c5b08||_0x4f28a4['addUser']({'id':_0x3cb491,'name':_0x1e56a7});}['_createNewComment']({threadId:_0x45416f,commentId:_0x67d982=_0x4072c6(),content:_0x1bc759,authorId:_0x1079c3,createdAt:_0x3782e3,attributes:_0x3c2a34}){if('string'!=typeof _0x67d982)throw new _0x3721e2('commentsrepository-invalid-commentid');if('string'!=typeof _0x1079c3)throw new _0x3721e2('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1bc759||!_0x1bc759['trim']())throw new _0x3721e2('commentsrepository-invalid-comment-content');const _0xadcc16=this['context']['plugins']['get'](it)['getUser'](_0x1079c3);if(!_0xadcc16)throw new _0x3721e2('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1079c3});let _0x175e1e=null,_0x503126=_0x3782e3;return _0x3c2a34?.['@external']&&(_0x175e1e=this['_getExternalAuthor'](_0x3c2a34['@external']['authorName']),_0x503126=new Date(_0x3c2a34['@external']['createdAt'])),new wi(this,{'threadId':_0x45416f,'id':_0x67d982,'author':_0x175e1e||_0xadcc16,'creator':_0xadcc16,'content':_0x1bc759,'createdAt':_0x3782e3,'authoredAt':_0x503126,'attributes':_0x3c2a34});}['_addComment'](_0x25dea8){let {threadId:_0xe9e627,content:_0x1c9f44,attributes:_0x1c7ee1,isFromAdapter:_0xce5a77}=_0x25dea8;const _0x22e349=this['getCommentThread'](_0x25dea8['threadId']);if(!_0x22e349)throw new _0x3721e2('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x5d36cd=this['_createNewComment'](_0x25dea8),{id:_0x1e7352}=_0x5d36cd;if(_0x22e349['_add'](_0x5d36cd),_0xce5a77||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x22e349['isSubmitted'])return Promise['resolve']();const _0x299e01=this['context']['plugins']['get']('PendingActions'),{channelId:_0x20a1d2}=_0x22e349,_0x3432b1=_0x299e01['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1c7ee1||(_0x1c7ee1={}),this['adapter']['addComment']({'channelId':_0x20a1d2,'threadId':_0xe9e627,'commentId':_0x1e7352,'content':_0x1c9f44,'attributes':_0x1c7ee1})['then'](_0x3223fb=>{_0x299e01['remove'](_0x3432b1),_0x3223fb&&this['_updateComment']({'channelId':_0x20a1d2,'threadId':_0xe9e627,'commentId':_0x1e7352,'createdAt':_0x3223fb['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2ae8c1=>{throw console['error'](_0x2ae8c1),new _0x3721e2('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x17cf73,commentId:_0x4162c4,content:_0x264a4a,createdAt:_0x134cdc,attributes:_0x4435cb,isFromAdapter:_0xf7ea8a}){if(void 0x0!==_0x264a4a&&('string'!=typeof _0x264a4a||!_0x264a4a['trim']()['length']))throw new _0x3721e2('commentsrepository-update-comment-invalid-content');const _0x30a7d3=this['getCommentThread'](_0x17cf73),_0x5a26d1=_0x30a7d3['getComment'](_0x4162c4);if(!_0x5a26d1)throw new _0x3721e2('commentsrepository-update-missing-comment',this);let _0x53f1ec=!0x1;if(_0x264a4a&&_0x264a4a!==_0x5a26d1['content']&&(_0x5a26d1['isEditable']||_0xf7ea8a)&&(_0x5a26d1['content']=_0x264a4a,_0x53f1ec=!0x0),_0x134cdc&&_0x134cdc!==_0x5a26d1['createdAt']&&(_0x5a26d1['createdAt']=_0x134cdc,_0x5a26d1['attributes']&&_0x5a26d1['attributes']['@external']||(_0x5a26d1['authoredAt']=_0x134cdc),_0x53f1ec=!0x0),_0x4435cb&&!At(_0x4435cb,_0x5a26d1['attributes'])&&(_0x5a26d1['attributes']=_0x4435cb,_0x53f1ec=!0x0),!_0x53f1ec)return Promise['resolve']();if(_0x30a7d3['fire']('commentUpdated'),_0xf7ea8a||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x242347=this['context']['plugins']['get']('PendingActions'),{channelId:_0x27ea8a}=this['getCommentThread'](_0x5a26d1['threadId']),_0x110c4d=_0x242347['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x27ea8a,'threadId':_0x17cf73,'commentId':_0x4162c4,'content':_0x264a4a,'attributes':_0x4435cb})['then'](()=>_0x242347['remove'](_0x110c4d))['catch'](_0x2093e0=>{throw console['error'](_0x2093e0),new _0x3721e2('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x49ccfd,commentId:_0x2cb62f,isFromAdapter:_0x3f5517}){const _0xf2171=this['getCommentThread'](_0x49ccfd),_0x4207bd=_0xf2171['getComment'](_0x2cb62f);if(!_0x4207bd)throw new _0x3721e2('commentsrepository-remove-missing-comment',this);if(_0xf2171['_remove'](_0x4207bd),_0x3f5517||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x9a547b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x46d73a}=_0xf2171,_0x161b35=_0x9a547b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x46d73a,'threadId':_0x49ccfd,'commentId':_0x2cb62f})['then'](()=>_0x9a547b['remove'](_0x161b35))['catch'](_0x182b8f=>{throw console['error'](_0x182b8f),new _0x3721e2('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x595bc0(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x781ff3,_0x4b13da){super();const _0x24abf7=_0x4b13da['isResolvable'];this['channelId']=_0x4b13da['channelId'],this['id']=_0x4b13da['id'],this['comments']=new _0x28871e(),this['_repository']=_0x781ff3,this['_isAttached']=!0x1,this['_isSubmitted']=_0x4b13da['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x781ff3,'_permissions',_0x781ff3,'_readOnlyChannels',()=>_0x781ff3['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x781ff3,'_permissions',()=>_0x781ff3['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x781ff3,'_permissions',()=>{const _0x556524=_0x781ff3['getPermissions'](this['channelId']);return _0x556524['write']||_0x556524['admin'];}),this['bind']('isResolvable')['to'](_0x781ff3,'_permissions',()=>_0x24abf7&&_0x781ff3['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x4b13da['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x4fc967,_0x25904c)=>_0x4fc967?_0x25904c?_0x4fc967<_0x25904c?_0x4fc967:_0x25904c:_0x4fc967:_0x25904c),this['set']('unlinkedAt',_0x4b13da['unlinkedAt']||null),this['set']('resolvedAt',_0x4b13da['resolvedAt']||null),this['set']('resolvedBy',_0x4b13da['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5b2167=>!!_0x5b2167),this['set']('attributes',_0x4b13da['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x21613c,_0x25d31b)=>_0x21613c+_0x25d31b['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x20af3c,id:_0x5a881d}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x20af3c),{'channelId':_0x20af3c,'threadId':_0x5a881d});}['setUnlinkedAt'](_0x365557){this['_update']({'unlinkedAt':_0x365557});}['resolve']({resolvedAt:_0x4d4e66=new Date(),resolvedBy:_0x1e1e13='',isFromAdapter:_0x18372a=!0x1}={}){const _0x41f5bb=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x42d693,id:_0x285806}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x42d693),{'channelId':_0x42d693,'threadId':_0x285806,'resolvedAt':_0x4d4e66,'resolvedBy':_0x1e1e13||_0x41f5bb['id'],'isFromAdapter':_0x18372a});}['reopen']({isFromAdapter:_0x589c3c=!0x1}={}){const {channelId:_0x1f2c2a,id:_0x2b0219}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x1f2c2a),{'channelId':_0x1f2c2a,'threadId':_0x2b0219,'isFromAdapter':_0x589c3c});}['setContext'](_0x1a4e09){this['context']||this['_update']({'context':_0x1a4e09});}['setAttribute'](_0x20c83e,_0x906c9f){const _0x293149=wt(this['attributes']);yt(_0x293149,_0x20c83e,_0x906c9f),this['_update']({'attributes':_0x293149});}['removeAttribute'](_0x3094ea){const _0x4ef102=wt(this['attributes']);Ct(_0x4ef102,_0x3094ea),this['_update']({'attributes':_0x4ef102});}['remove']({isFromAdapter:_0xd2a6ef=!0x1}={}){const {channelId:_0x2628a1,id:_0x235e25}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x2628a1),{'channelId':_0x2628a1,'threadId':_0x235e25,'isFromAdapter':_0xd2a6ef});}['attachTo'](_0x8841bb){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x8841bb});}['addComment'](_0x14383e){const {channelId:_0x169110,id:_0x3f4bcd}=this;this['_repository']['fire'](Nt('addComment',_0x169110,_0x3f4bcd),Object['assign']({'channelId':_0x169110,'threadId':_0x3f4bcd},_0x14383e));}['getComment'](_0x9a45a6){if('string'!=typeof _0x9a45a6)throw new _0x3721e2('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x9a45a6});return this['comments']['get'](_0x9a45a6);}['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'](_0x72937d=>_0x72937d['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5980a9){return this['listenTo'](_0x5980a9,'change:authoredAt',()=>{const _0x14ab0a=this['_findOptimalIndex'](_0x5980a9),_0x2647c6=this['comments'];_0x14ab0a-0x1!=_0x2647c6['getIndex'](_0x5980a9)&&_0x14ab0a+0x1!=_0x2647c6['getIndex'](_0x5980a9)&&(this['_remove'](_0x5980a9),this['_add'](_0x5980a9));}),this['comments']['add'](_0x5980a9,this['_findOptimalIndex'](_0x5980a9));}['_update'](_0x1198d6){const {channelId:_0x2d9e38,id:_0x1d53d3}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x2d9e38),{..._0x1198d6,'channelId':_0x2d9e38,'threadId':_0x1d53d3});}['_remove'](_0x12acf2){return this['stopListening'](_0x12acf2),_0x12acf2['destroy'](),this['comments']['remove'](_0x12acf2);}['_findOptimalIndex'](_0x5a348c){const _0x916c31=this['comments']['find'](_0x541190=>new Date(_0x541190['authoredAt'])['getTime']()>new Date(_0x5a348c['authoredAt'])['getTime']());return _0x916c31?this['comments']['getIndex'](_0x916c31):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x595bc0(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x8a23a8,_0x4c732d){super();const _0x3b0652=_0x8a23a8['context']['plugins']['get'](it)['me'],_0x3fc731=_0x8a23a8['getCommentThread'](_0x4c732d['threadId']),_0x2a3c92=0x0===_0x3fc731['comments']['length'],_0x55e3a5=_0x3b0652===_0x4c732d['author'];this['id']=_0x4c732d['id'],this['threadId']=_0x4c732d['threadId'],this['author']=_0x4c732d['author'],this['creator']=_0x4c732d['creator'],this['isExternal']=Boolean(_0x4c732d['attributes']&&_0x4c732d['attributes']['@external']),this['set']('content',_0x4c732d['content']),this['createdAt']=_0x4c732d['createdAt']||new Date(),this['set']('authoredAt',_0x4c732d['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x3fc731,'resolvedAt'),this['set']('attributes',_0x4c732d['attributes']||{}),this['bind']('isEditable')['to'](_0x8a23a8,'_permissions',()=>{const _0x231ebc=_0x8a23a8['getPermissions'](_0x3fc731['channelId'])['write'],_0x37fde8=_0x8a23a8['getPermissions'](_0x3fc731['channelId'])['modifyAll'];return _0x55e3a5&&_0x231ebc||!_0x55e3a5&&_0x37fde8;}),this['bind']('isRemovable')['to'](_0x3fc731,'isRemovable',_0x8a23a8,'_permissions',_0x5bb235=>{const _0x58d145=_0x8a23a8['getPermissions'](_0x3fc731['channelId'])['write'],_0x58937e=_0x8a23a8['getPermissions'](_0x3fc731['channelId'])['modifyAll'];return _0x55e3a5&&_0x58d145||_0x5bb235&&_0x2a3c92||!_0x55e3a5&&_0x58937e&&!_0x2a3c92;}),this['bind']('isReadOnly')['to'](_0x3fc731,'isReadOnly'),this['_repository']=_0x8a23a8;}get['weight'](){return Math['max'](function(_0x9e6e02){const _0x3df12f=document['createElement']('div');return _0x3df12f['innerHTML']=_0x9e6e02,_0x3df12f['textContent']['length'];}(this['content']),0xc8);}['update'](_0x1c7e65){const {threadId:_0x1033ba,id:_0x2ea4bb}=this;if(!this['_repository']['hasCommentThread'](_0x1033ba))throw new _0x3721e2('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x31dc06}=this['_repository']['getCommentThread'](_0x1033ba);this['_repository']['fire'](Nt('updateComment',_0x31dc06,_0x1033ba),{'channelId':_0x31dc06,'threadId':_0x1033ba,'commentId':_0x2ea4bb,..._0x1c7e65});}['setAttribute'](_0x369cb7,_0x137483){const _0x360a1b=wt(this['attributes']);yt(_0x360a1b,_0x369cb7,_0x137483),this['update']({'attributes':_0x360a1b});}['removeAttribute'](_0x333d8f){const _0x1dbe65=wt(this['attributes']);Ct(_0x1dbe65,_0x333d8f),this['update']({'attributes':_0x1dbe65});}['remove'](_0x1c6d9a={}){if(!_0x1c6d9a['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x41fd86,id:_0x55c565}=this;if(!this['_repository']['hasCommentThread'](_0x41fd86))throw new _0x3721e2('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x28703}=this['_repository']['getCommentThread'](_0x41fd86);this['_repository']['fire'](Nt('removeComment',_0x28703,_0x41fd86),{'channelId':_0x28703,'threadId':_0x41fd86,'commentId':_0x55c565,..._0x1c6d9a});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x94c343,..._0x11fcca){for(const _0x2c2389 of _0x11fcca)void 0x0!==_0x2c2389&&(_0x94c343+=':'+String(_0x2c2389));return _0x94c343;}class ot extends _0x179b85{constructor(_0x36828e){super(_0x36828e),this['set']('hasContent',!0x1);}['refresh'](){const _0x7ffbf6=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x610f1a of _0x7ffbf6['getRanges']())if(this['_hasContent'](_0x610f1a))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x335c5c=_0x4072c6(),ranges:_0x3fab02,comment:_0x5ca0d9}={}){const _0x293e7a=this['editor']['model'],_0x399a70=_0x3fab02??Array['from'](_0x293e7a['document']['selection']['getRanges']()),_0x3269de=[];for(const _0x23fc2f of _0x399a70)this['_hasContent'](_0x23fc2f)&&_0x3269de['push'](this['_trimToContent'](_0x23fc2f));if(!_0x3269de['length'])throw new _0x3721e2('addcommentthreadcommand-incorrect-ranges',null);_0x5ca0d9&&this['_createCommentThread'](_0x335c5c,_0x5ca0d9),this['_createMarkersFromRanges'](_0x335c5c,_0x3269de,!!_0x5ca0d9);}['_createMarkersFromRanges'](_0x5f07c8,_0x45ee59,_0x741154){this['editor']['model']['change'](_0x4712fe=>{for(const _0x44496a of _0x45ee59){const _0x259706=_0x4072c6()['substr'](0x1,0x5),_0x18529d='comment:'+_0x5f07c8+':'+_0x259706;_0x4712fe['addMarker'](_0x18529d,{'range':_0x44496a,'usingOperation':_0x741154,'affectsData':_0x741154});}});}['_createCommentThread'](_0x1a36a2,_0xf36d5a){const _0x55f7c9=this['editor']['plugins']['get']('CommentsRepository'),_0x50d9c2=this['editor']['config']['get']('collaboration.channelId'),_0x78e631=this['editor']['plugins']['get']('Users')['me'];if(!_0x78e631)throw new _0x3721e2('addcommentthreadcommand-user-not-found',null);_0x55f7c9['addCommentThread']({'threadId':_0x1a36a2,'channelId':_0x50d9c2,'comments':[{'authorId':_0x78e631['id'],'content':_0xf36d5a,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x20ab79){for(const _0x1ab107 of _0x20ab79['getItems']())if(this['_itemIsContent'](_0x1ab107))return!0x0;return!0x1;}['_itemIsContent'](_0x5c75b2){return _0x5c75b2['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5c75b2)&&!_0x5c75b2['is']('element','tableCell');}['_trimToContent'](_0x3ea86f){const _0x39561a=_0x4ac7ae=>!this['_itemIsContent'](_0x4ac7ae['item']),_0x1b7936=_0x3ea86f['start']['getLastMatchingPosition'](_0x39561a),_0x506b17=_0x3ea86f['end']['getLastMatchingPosition'](_0x39561a,{'direction':'backward'});return this['editor']['model']['createRange'](_0x1b7936,_0x506b17);}}class b extends _0x135745{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c37f0){super(_0x5c37f0),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x29e3cf=this['editor'],_0x271404=_0x29e3cf['model']['document']['selection'],_0x257d65=_0x3f3a2f(()=>this['refreshSelectedViews'](),0xa);_0x271404['on']('change:range',(_0x43f4ff,_0x4d3de9)=>{_0x4d3de9['directChange']&&(_0x257d65['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x29e3cf['editing']['view']['document'],'change:isFocused',(_0x4a89a9,_0x4f879d,_0x4b2989)=>{_0x4b2989&&_0x257d65();}),this['listenTo'](_0x29e3cf['ui']['focusTracker'],'change:isFocused',(_0x26bd06,_0x85949d,_0x500aa2)=>{_0x500aa2||this['fire']('blur',{'isAnnotationTracked':_0x1cf853=>this['_editorAnnotationsData']['has'](_0x1cf853['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x2fe2ec){if(this['_editorAnnotations']['has'](_0x2fe2ec['view']))return;this['_editorAnnotations']['add'](_0x2fe2ec['view']),this['editor']['ui']['focusTracker']['add'](_0x2fe2ec['view']['element']);const _0x5558b1=this['editor']['plugins']['get'](y);this['listenTo'](_0x5558b1['collection'],'remove',(_0x527744,_0x1161e5)=>{this['editor']['ui']['focusTracker']['remove'](_0x1161e5['view']['element']),this['_editorAnnotations']['delete'](_0x1161e5['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x3a1f93){if('function'!=typeof _0x3a1f93)throw new _0x3721e2('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x3a1f93);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2ecfa5,annotations:_0x54748c}){const _0x2796dd=[],_0x5940b5=this['editor']['model']['document']['selection'],_0x31700b=Array['from'](_0x5940b5['getRanges']());for(const [_0x331fa7,_0x4459b8]of this['_editorAnnotationsData']){const _0x3aaa36=_0x18b5d1(_0x4459b8),_0x426020=_0x54748c['getByInnerView'](_0x331fa7);_0x3aaa36&&_0x426020&&_0x2796dd['push']({'annotation':_0x426020,'range':_0x3aaa36});}function _0x18b5d1(_0x51c2da){for(const _0x47ce15 of _0x51c2da)for(const _0x7b873c of _0x31700b)if(_0x47ce15['containsRange'](_0x7b873c,!_0x5940b5['isCollapsed']))return _0x47ce15;return null;}return _0x2796dd['sort']((_0x44b85e,_0x4d54aa)=>{const _0x344266=_0x44b85e['range'],_0x3531d1=_0x4d54aa['range'];if(!_0x344266['isEqual'](_0x3531d1)){if(_0x344266['containsRange'](_0x3531d1,!0x0))return 0x1;if(_0x3531d1['containsRange'](_0x344266,!0x0))return-0x1;}return _0x44b85e['annotation']==_0x2ecfa5?-0x1:_0x4d54aa['annotation']==_0x2ecfa5?0x1:0x0;})['map'](_0x115e3b=>_0x115e3b['annotation']);}get['_editorAnnotationsData'](){const _0x32f1a6=new Map();for(const _0x5b752a of Array['from'](this['_dataCollectors']))for(const [_0x2c47c0,_0x530010]of _0x5b752a())_0x32f1a6['set'](_0x2c47c0,_0x530010);return _0x32f1a6;}}class st extends _0x135745{['afterInit'](){const _0x2aaebe=this['editor'];if(!_0x2aaebe['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2aaebe['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x135745{constructor(_0x4d681a){super(_0x4d681a),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x5f5da1=this['editor'],_0x589534=_0x5f5da1['commands']['get']('importWord'),_0x554e2a=_0x5f5da1['plugins']['get'](it);_0x589534&&(_0x589534['on']('execute',(_0x40f2f2,[,_0x1fa77d])=>{_0x1fa77d['collaboration_features']={'comments':!0x0,'user_id':_0x554e2a['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x589534,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x44102d,_0x41944c){const {comment_threads:_0x2d77c7}=_0x41944c;_0x2d77c7&&_0x2d77c7['forEach'](({thread_id:_0x56a3df,comments:_0x1ee953,is_resolved:_0x36b7ca})=>{const _0x5543e5=new Date(),_0x4608db=_0x1ee953['map'](({author:_0x408d2c,content:_0xa1a85a,created_at:_0x60d4f2})=>({'content':_0xa1a85a,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x5543e5,'attributes':{'@external':{'authorName':_0x408d2c,'createdAt':_0x60d4f2?new Date(_0x60d4f2):new Date(),'source':'importWord'}}})),_0x431478=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x431478,'threadId':_0x56a3df,'comments':_0x4608db,'resolvedAt':_0x36b7ca?_0x5543e5:null});});}}class at extends _0x135745{constructor(_0x154a4b){super(_0x154a4b),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x1de590=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x1de590,'contentInsertion',(_0x37d1d0,_0x4b7fdb)=>this['_removeMarkersWithoutThreads'](_0x4b7fdb['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x115105){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x115105;const _0xd2a4e2=this['editor']['plugins']['get']('CommentsRepository');for(const _0x347329 of _0x115105['keys']()){const [_0x254c86,_0x3293e4]=_0x347329['split'](':');'comment'!=_0x254c86||_0xd2a4e2['hasCommentThread'](_0x3293e4)||_0x115105['delete'](_0x347329);}return _0x115105;}['_registerMarkerInClipboardPipeline'](){const _0x5ea22c=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x215dc0=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x215dc0&&_0x5ea22c['_registerMarkerToCopy']('comment',_0x215dc0);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x7c3859){switch(_0x7c3859){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x147857){const _0x48861d=_0x147857['split'](':');return{'group':_0x48861d[0x0],'id':_0x48861d[0x1],'part':_0x48861d[0x2]};}class ut extends _0x135745{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4effb1,_0x551ddc)=>{if(!_0x551ddc['options']['showCommentHighlights'])return null;if(_0x551ddc['options']['ignoreResolvedComments']){const {id:_0x30d2db}=ft(_0x4effb1['markerName']),_0x12447e=this['editor']['plugins']['get'](o);if(_0x12447e['getCommentThread'](_0x30d2db)?.['isResolved']&&_0x4effb1['item'])return _0x551ddc['consumable']['consume'](_0x4effb1['item'],'addMarker:'+_0x4effb1['markerName']),_0x551ddc['consumable']['consume'](_0x4effb1['item'],'removeMarker:'+_0x4effb1['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x54463a=>{_0x54463a['on']('addMarker:comment',(_0x451bbc,_0x47af9b,_0x527ae4)=>{if(!_0x527ae4['options']['showCommentHighlights'])return;const _0x2449cc=_0x47af9b['item'];if(!_0x2449cc)return;const _0x390cbd=_0x527ae4['mapper']['toViewElement'](_0x2449cc);this['editor']['model']['schema']['isObject'](_0x2449cc)&&_0x390cbd&&!_0x390cbd['getCustomProperty']('widget')&&_0x390cbd['is']('containerElement')&&_0x32eaaa(_0x390cbd,_0x527ae4['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5eaa22,{writer:_0x20765a,options:_0x12282f})=>{if(!_0x12282f['showCommentHighlights'])return null;const _0x409df3=_0x20765a['createContainerElement']('div'),_0x5eb6cf=_0x20765a['createEmptyElement']('hr');return _0x20765a['addClass']('ck-horizontal-line',_0x409df3),_0x20765a['insert'](_0x20765a['createPositionAt'](_0x409df3,0x0),_0x5eb6cf),_0x409df3;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x3c1c06,{writer:_0x538bc5,options:_0x44a662})=>{if(!_0x44a662['showCommentHighlights'])return null;const _0x1ec92f=_0x538bc5['createContainerElement']('span'),_0x5963c3=_0x538bc5['createEmptyElement']('img');return _0x538bc5['addClass']('image-inline',_0x1ec92f),_0x538bc5['insert'](_0x538bc5['createPositionAt'](_0x1ec92f,0x0),_0x5963c3),_0x1ec92f;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x10206a,{writer:_0x38d48d,options:_0x1d7d10})=>{if(_0x1d7d10['showCommentHighlights'])return _0x38d48d['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x49e048,_0x2152db,_0x27f45c)=>{_0x27f45c['options']['showCommentHighlights']&&_0x49e048['stop']();},{'priority':'high'});}}class r extends _0x135745{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(_0x107b03){super(_0x107b03),this['set']('isThreadsLoadingPaused',!0x0),_0x107b03['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x254b31,_0x4157bd,_0x15aa36,_0x18dc48)=>{const _0x7f4df0=_0x107b03['plugins']['get'](o),_0x132c35=_0x15aa36?ft(_0x15aa36)['id']:null;_0x107b03['model']['change'](()=>{if(_0x132c35){const _0x6ef79e=this['getAllMarkersForId'](_0x132c35);for(const _0x5e0a2e of _0x6ef79e)_0x107b03['editing']['reconvertMarker'](_0x5e0a2e);}if(_0x18dc48){const {id:_0x9f8cbf}=ft(_0x18dc48),_0x390a2c=_0x7f4df0['getCommentThread'](_0x9f8cbf);if(_0x390a2c&&_0x390a2c['unlinkedAt'])return;if(_0x390a2c&&!_0x390a2c['isAttached'])return;const _0x56a93f=this['getAllMarkersForId'](_0x9f8cbf);for(const _0x1ef0cb of _0x56a93f)_0x107b03['editing']['reconvertMarker'](_0x1ef0cb);}}),_0x132c35&&this['scrollToThreadMarker'](_0x132c35);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x358233=this['editor'],_0xb40909=_0x358233['plugins']['get'](o),_0x330c68=_0x358233['config']['get']('collaboration.channelId'),_0x21525f=_0xb40909['getCommentThreads']()['filter'](_0x291e74=>_0x291e74['channelId']!==_0x330c68);_0x358233['commands']['add']('addCommentThread',new ot(_0x358233)),this['listenTo'](_0x358233,'change:isReadOnly',(_0x408c58,_0x47ac80,_0x2dc8d7)=>{_0xb40909['switchReadOnly'](_0x2dc8d7,_0x358233['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xb40909,dt('addCommentThread',_0x330c68),(_0x260d3d,{threadId:_0x32d05a})=>{const _0x2076fb=this['editor']['plugins']['get'](o)['getCommentThread'](_0x32d05a);_0x2076fb?.['unlinkedAt']&&this['_attachArchivedThread'](_0x32d05a);}),this['listenTo'](_0xb40909,dt('removeCommentThread',_0x330c68),(_0x4e0940,{threadId:_0x3cc96c})=>{_0x358233['model']['enqueueChange']({'isUndoable':!0x1},_0x5b6090=>{const _0x53ab85=this['getAllMarkersForId'](_0x3cc96c);for(const _0x210a22 of _0x53ab85)_0x5b6090['removeMarker'](_0x210a22);});}),this['listenTo'](_0xb40909,dt('resolveCommentThread',_0x330c68),(_0xec11f0,{threadId:_0x23c970})=>{(this['_reconvertMarkers'](_0x23c970),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x23c970)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xb40909,dt('reopenCommentThread',_0x330c68),(_0x227299,{threadId:_0x421156})=>{this['_reconvertMarkers'](_0x421156);},{'priority':'low'}),this['listenTo'](_0xb40909,dt('addComment',_0x330c68),(_0x4b98d5,{threadId:_0x99f257,isFromAdapter:_0x4437d1})=>{const _0x4a8781=this['getAllMarkersForId'](_0x99f257);if(_0x4437d1||0x0==_0x4a8781['length']||!_0xb40909['hasCommentThread'](_0x99f257))return;0x1===_0xb40909['getCommentThread'](_0x99f257)['length']&&_0x358233['model']['enqueueChange']({'isUndoable':!0x1},_0x284682=>{for(const _0x5a9629 of _0x4a8781)_0x284682['updateMarker'](_0x5a9629,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x21525f);}['afterInit'](){!async function(_0x3aea66){const _0x135076=_0x389c4f([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]),_0x251995=0x73460ab3,_0x404d1b=0x73418a6b^_0x251995,_0x2066f8=window[_0x389c4f([0x44,0x61,0x74,0x65])][_0x389c4f([0x6e,0x6f,0x77])](),_0x4693d8=_0x3aea66[_0x389c4f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c7e84=new window[(_0x389c4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d4e4e=>{_0x4693d8[_0x389c4f([0x6f,0x6e,0x63,0x65])](_0x389c4f([0x72,0x65,0x61,0x64,0x79]),_0x3d4e4e);}),_0x50968f={[_0x389c4f([0x6b,0x74,0x79])]:_0x389c4f([0x45,0x43]),[_0x389c4f([0x75,0x73,0x65])]:_0x389c4f([0x73,0x69,0x67]),[_0x389c4f([0x63,0x72,0x76])]:_0x389c4f([0x50,0x2d,0x32,0x35,0x36]),[_0x389c4f([0x78])]:_0x389c4f([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]),[_0x389c4f([0x79])]:_0x389c4f([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]),[_0x389c4f([0x61,0x6c,0x67])]:_0x389c4f([0x45,0x53,0x32,0x35,0x36])},_0x2c9253=_0x4693d8[_0x389c4f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x389c4f([0x67,0x65,0x74])](_0x389c4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2df18b(){let _0x5a10df,_0x5e0f6f=null,_0x17b35f=null;try{if(_0x2c9253==_0x389c4f([0x47,0x50,0x4c]))return _0x389c4f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a10df=_0x4397e4(),!_0x5a10df)return _0x389c4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a10df[_0x389c4f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17b35f=_0x468b2a(_0x5a10df[_0x389c4f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a10df[_0x389c4f([0x6a,0x74,0x69])])),await _0x20d2aa()?_0x2c3d3a()?_0x2ae9e2()?_0x389c4f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x146b8()?(_0x5a10df[_0x389c4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x389c4f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e0f6f=_0x247fff(_0x389c4f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1af410()):_0x389c4f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x389c4f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x389c4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x389c4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ae9e2(){const _0x139dba=[_0x389c4f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x389c4f([0x74,0x72,0x69,0x61,0x6c])][_0x389c4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a10df[_0x389c4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2066f8/0x3e8:0xe10*_0x404d1b;return _0x5a10df[_0x389c4f([0x65,0x78,0x70])]<_0x139dba;}function _0x2c3d3a(){const _0x47a3b3=_0x5a10df[_0x389c4f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x47a3b3)return!0x1;if(_0x47a3b3[_0x389c4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389c4f([0x2a])))return!0x0;if(_0x47a3b3[_0x389c4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389c4f([0x43,0x4d,0x54])))return!0x0;if(_0x47a3b3[_0x389c4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389c4f([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x2afc5f())return!0x0;if(_0x47a3b3[_0x389c4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389c4f([0x52,0x43,0x4d,0x54]))){if(_0x4e2da9())return!0x0;if(_0x3c3cc5()||_0x592233())return!0x0;}return!0x1;}function _0x146b8(){const _0x3d276a=_0x5a10df[_0x389c4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d276a||0x0==_0x3d276a[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3203d8}=new URL(window[_0x389c4f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d276a[_0x389c4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3203d8))return!0x0;const _0x2067b8=_0x3203d8[_0x389c4f([0x73,0x70,0x6c,0x69,0x74])](_0x389c4f([0x2e]));return _0x3d276a[_0x389c4f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c79f7=>_0x5c79f7[_0x389c4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389c4f([0x2a])))[_0x389c4f([0x6d,0x61,0x70])](_0x48c72c=>_0x48c72c[_0x389c4f([0x73,0x70,0x6c,0x69,0x74])](_0x389c4f([0x2e])))[_0x389c4f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54a398=>_0x54a398[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2067b8[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389c4f([0x6d,0x61,0x70])](_0x14a3ab=>Array(_0x2067b8[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14a3ab[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389c4f([0x66,0x69,0x6c,0x6c])](_0x14a3ab[0x0]===_0x389c4f([0x2a])?_0x389c4f([0x2a]):'')[_0x389c4f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14a3ab))[_0x389c4f([0x73,0x6f,0x6d,0x65])](_0x345680=>_0x2067b8[_0x389c4f([0x65,0x76,0x65,0x72,0x79])]((_0x1c52e2,_0x438334)=>_0x345680[_0x438334]===_0x1c52e2||_0x345680[_0x438334]===_0x389c4f([0x2a])));}function _0x1af410(){return _0x5e0f6f&&_0x17b35f?new window[(_0x389c4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x68765e,_0x2a1925)=>{_0x5e0f6f[_0x389c4f([0x74,0x68,0x65,0x6e])](_0x68765e,_0x2a1925),_0x17b35f[_0x389c4f([0x74,0x68,0x65,0x6e])](_0x2af911=>{_0x2af911!=_0x389c4f([0x56,0x61,0x6c,0x69,0x64])&&_0x68765e(_0x2af911);},_0x2a1925);}):_0x5e0f6f||_0x17b35f||_0x389c4f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x468b2a(_0x366704,_0x1cbbeb){return new window[(_0x389c4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329063=>{if(_0x56d9d4())return _0x329063(_0x389c4f([0x56,0x61,0x6c,0x69,0x64]));_0xfe6b1d(),_0x4693d8[_0x389c4f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x389c4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b5389=!0x1;const _0x1c4a1a=_0x4072c6();function _0x2b4aab(_0x151ba9){return!!_0x151ba9&&(typeof _0x151ba9===_0x389c4f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x151ba9===_0x389c4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x151ba9[_0x389c4f([0x74,0x68,0x65,0x6e])]===_0x389c4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x151ba9[_0x389c4f([0x63,0x61,0x74,0x63,0x68])]===_0x389c4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x469610(_0x6e8b26){_0x4f421c(_0x6e8b26)[_0x389c4f([0x74,0x68,0x65,0x6e])](_0x4689e2=>{if(!_0x4689e2||_0x4689e2[_0x389c4f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x389c4f([0x6f,0x6b]))return _0x389c4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11e23e(_0x3326c8(_0x1c4a1a+_0x1cbbeb))!=_0x4689e2[_0x389c4f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x389c4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x389c4f([0x56,0x61,0x6c,0x69,0x64]);})[_0x389c4f([0x74,0x68,0x65,0x6e])](_0x5894d4=>(_0x3c6b3(),_0x5894d4),()=>{const _0x2f88ae=_0x33b74b();return null==_0x2f88ae?(_0x3c6b3(),_0x389c4f([0x56,0x61,0x6c,0x69,0x64])):_0x389c4f(_0x2066f8-_0x2f88ae>(0x574a8eb3^_0x251995)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x389c4f([0x74,0x68,0x65,0x6e])](_0x329063)[_0x389c4f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x329063(_0x389c4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x342338=0x7370e433^_0x251995;function _0x3c6b3(){const _0x5cdc63=_0x389c4f([0x6c,0x6c,0x63,0x74,0x2d])+_0x11e23e(_0x3326c8(_0x366704)),_0xce66fe=_0x5d3259(_0x11e23e(window[_0x389c4f([0x4d,0x61,0x74,0x68])][_0x389c4f([0x63,0x65,0x69,0x6c])](_0x2066f8/_0x342338)));window[_0x389c4f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389c4f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cdc63,_0xce66fe);}function _0x33b74b(){const _0x348b96=_0x389c4f([0x6c,0x6c,0x63,0x74,0x2d])+_0x11e23e(_0x3326c8(_0x366704)),_0x5dcf52=window[_0x389c4f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389c4f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x348b96);return _0x5dcf52?window[_0x389c4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d3259(_0x5dcf52),0x10)*_0x342338:null;}function _0x4f421c(_0x16724b){return new window[(_0x389c4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e43b0,_0x345fef)=>{_0x16724b[_0x389c4f([0x74,0x68,0x65,0x6e])](_0x4e43b0,_0x345fef),window[_0x389c4f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x345fef,0x7347de73^_0x251995);});}}_0x4693d8[_0x389c4f([0x6f,0x6e])](_0x389c4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c3405,_0x279002)=>{if(_0x279002[0x0]!=_0x366704)return _0x329063(_0x389c4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x279002[0x1]={..._0x279002[0x1],[_0x389c4f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c4a1a};},{[_0x389c4f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389c4f([0x68,0x69,0x67,0x68])}),_0x4693d8[_0x389c4f([0x6f,0x6e])](_0x389c4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x320209=>{_0x2b4aab(_0x320209[_0x389c4f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b5389=!0x0,_0x469610(_0x320209[_0x389c4f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x389c4f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389c4f([0x6c,0x6f,0x77])}),_0x3c7e84[_0x389c4f([0x74,0x68,0x65,0x6e])](()=>{_0x2b5389||_0x329063(_0x389c4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56d9d4(){return _0x4693d8[_0x389c4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389c4f([0x76,0x69,0x65,0x77])][_0x389c4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x389c4f([0x61,0x75,0x74,0x6f]);}function _0xfe6b1d(){_0x4693d8[_0x389c4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389c4f([0x76,0x69,0x65,0x77])][_0x389c4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x389c4f([0x61,0x75,0x74,0x6f]);}}function _0x247fff(_0xd9a0ef){const _0x773c2c=[new window[(_0x389c4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x428e4d=>setTimeout(_0x428e4d,0x734f347f^_0x251995)),_0x3c7e84[_0x389c4f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x389c4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11941b=>{let _0x3b55c9=0x0;_0x4693d8[_0x389c4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x389c4f([0x6f,0x6e])](_0x389c4f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38bd87,_0x3a4ae0)=>{_0x3a4ae0[0x0][_0x389c4f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b55c9++,_0x3b55c9==(0x73460f5b^_0x251995)&&(_0x11941b(),_0x38bd87[_0x389c4f([0x6f,0x66,0x66])]());});}))];return window[_0x389c4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x389c4f([0x72,0x61,0x63,0x65])](_0x773c2c)[_0x389c4f([0x74,0x68,0x65,0x6e])](()=>_0xd9a0ef);}async function _0x5f1fca(){await _0x3c7e84,_0x4693d8[_0x389c4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x389c4f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b7769,_0x4693d8[_0x389c4f([0x6d,0x6f,0x64,0x65,0x6c])][_0x389c4f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b7769,_0x4693d8[_0x389c4f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x389c4f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2afc5f(){return window[_0x389c4f([0x67,0x6c,0x6f,0x62])]&&window[_0x389c4f([0x67,0x6c,0x6f,0x62])][_0x389c4f([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4e2da9(){return _0x3dec4e(_0x389c4f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x54512e(_0x389c4f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x389c4f([0x73,0x74,0x61,0x74,0x65])]==_0x389c4f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3c3cc5(){return _0x3dec4e(_0x389c4f([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 _0x592233(){return _0x3dec4e(_0x389c4f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x51478e(_0x37f516){const _0x198034=_0x338c2b();_0x4693d8[_0x198034]=_0x389c4f([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37f516,_0x37f516!=_0x389c4f([0x56,0x61,0x6c,0x69,0x64])&&_0x5f1fca();}function _0x338c2b(){const _0x33a3dc=window[_0x389c4f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x389c4f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x389c4f([0x6e,0x6f,0x77])]())[_0x389c4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x389c4f([0x2e]),'');let _0x4b6ea8=_0x389c4f([0x4b]);for(let _0x239687=0x0;_0x239687<_0x33a3dc[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x239687+=0x2){let _0x42633d=window[_0x389c4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33a3dc[_0x389c4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x239687,_0x239687+0x2));_0x42633d>=_0x135076[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42633d-=_0x135076[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b6ea8+=_0x135076[_0x42633d];}return _0x4b6ea8;}function _0x4397e4(){const _0x311b5b=_0x2c9253[_0x389c4f([0x73,0x70,0x6c,0x69,0x74])](_0x389c4f([0x2e]));if(0x3!=_0x311b5b[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x46723c(_0x311b5b[0x1]);function _0x46723c(_0x117076){const _0x4c3585=_0x27a24a(_0x117076);return _0x4c3585&&_0x5e9134()?_0x4c3585:null;function _0x5e9134(){const _0x488cf0=_0x4c3585[_0x389c4f([0x6a,0x74,0x69])],_0x5c5078=window[_0x389c4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x488cf0[_0x389c4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x488cf0[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc04f0={..._0x4c3585,[_0x389c4f([0x6a,0x74,0x69])]:_0x488cf0[_0x389c4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x488cf0[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc04f0[_0x389c4f([0x76,0x63])],_0x3326c8(_0xc04f0)==_0x5c5078;}}}async function _0x20d2aa(){let _0x3ea506=!0x0;try{const _0x10cf2e=_0x2c9253[_0x389c4f([0x73,0x70,0x6c,0x69,0x74])](_0x389c4f([0x2e])),[_0x643cf9,_0x2d6765,_0xe9f368]=_0x10cf2e;return _0x3d2752(_0x643cf9),await _0x35f8b3(_0x643cf9,_0x2d6765,_0xe9f368),_0x3ea506;}catch{return!0x1;}function _0x3d2752(_0x4717e7){const _0x29dce6=_0x27a24a(_0x4717e7);_0x29dce6&&_0x29dce6[_0x389c4f([0x61,0x6c,0x67])]==_0x389c4f([0x45,0x53,0x32,0x35,0x36])||(_0x3ea506=!0x1);}async function _0x35f8b3(_0x488ec3,_0xe5c95,_0x50ee52){const _0x383463=window[_0x389c4f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x389c4f([0x66,0x72,0x6f,0x6d])](_0x18b638(_0x50ee52),_0x3ff135=>_0x3ff135[_0x389c4f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5be0f9=new window[(_0x389c4f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x389c4f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x488ec3+_0x389c4f([0x2e])+_0xe5c95),_0x22e076=window[_0x389c4f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x389c4f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22e076)return;const _0x2cf921=await _0x22e076[_0x389c4f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x389c4f([0x6a,0x77,0x6b]),_0x50968f,{[_0x389c4f([0x6e,0x61,0x6d,0x65])]:_0x389c4f([0x45,0x43,0x44,0x53,0x41]),[_0x389c4f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x389c4f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x389c4f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22e076[_0x389c4f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x389c4f([0x6e,0x61,0x6d,0x65])]:_0x389c4f([0x45,0x43,0x44,0x53,0x41]),[_0x389c4f([0x68,0x61,0x73,0x68])]:{[_0x389c4f([0x6e,0x61,0x6d,0x65])]:_0x389c4f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cf921,_0x383463,_0x5be0f9)||(_0x3ea506=!0x1);}}function _0x27a24a(_0x2a5785){return _0x2a5785[_0x389c4f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x389c4f([0x65,0x79]))?JSON[_0x389c4f([0x70,0x61,0x72,0x73,0x65])](_0x18b638(_0x2a5785)):null;}function _0x18b638(_0x17dd17){return window[_0x389c4f([0x61,0x74,0x6f,0x62])](_0x17dd17[_0x389c4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x389c4f([0x2b]))[_0x389c4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x389c4f([0x2f])));}function _0x3326c8(_0x1a8923){let _0xf7c5c5=0x1505;function _0x171e53(_0x3c7cd9){for(let _0x516ab2=0x0;_0x516ab2<_0x3c7cd9[_0x389c4f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x516ab2++){const _0x56c551=_0x3c7cd9[_0x389c4f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x516ab2);_0xf7c5c5=(_0xf7c5c5<<0x5)+_0xf7c5c5+_0x56c551,_0xf7c5c5&=_0xf7c5c5;}}function _0x7adc19(_0x1954c){Array[_0x389c4f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1954c)?_0x1954c[_0x389c4f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7adc19):_0x1954c&&typeof _0x1954c==_0x389c4f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x389c4f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1954c)[_0x389c4f([0x73,0x6f,0x72,0x74])]()[_0x389c4f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6b080c,_0x323c2c])=>{_0x171e53(_0x6b080c),_0x7adc19(_0x323c2c);}):_0x171e53(window[_0x389c4f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1954c));}return _0x7adc19(_0x1a8923),_0xf7c5c5>>>0x0;}function _0x11e23e(_0x4702bc){return _0x4702bc[_0x389c4f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x389c4f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x389c4f([0x30]));}function _0x5d3259(_0x12ee1e){return _0x12ee1e[_0x389c4f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x389c4f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x389c4f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3dec4e(_0x2cb4ea){return _0x4693d8[_0x389c4f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x389c4f([0x68,0x61,0x73])](_0x2cb4ea);}function _0x54512e(_0x12aefd){return _0x4693d8[_0x389c4f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x389c4f([0x67,0x65,0x74])](_0x12aefd);}function _0x4b7769(){}function _0x389c4f(_0x5710fe){return _0x5710fe['map'](_0x2e7ff0=>String['fromCharCode'](_0x2e7ff0))['join']('');}_0x51478e(await _0x2df18b());}(this);}['destroy'](){const _0x5b90f0=this['editor']['plugins']['get'](o),_0x562ad1=this['editor']['config']['get']('collaboration.channelId');for(const _0x1f0d53 of _0x5b90f0['getCommentThreads']({'channelId':_0x562ad1}))_0x5b90f0['_detachCommentThread'](_0x1f0d53['id']),_0x5b90f0['_threads']['delete'](_0x1f0d53['id']);super['destroy']();}['hasMarkerForId'](_0x2533c1){return this['getAllMarkersForId'](_0x2533c1)['length']>0x0;}['getAllMarkersForId'](_0x1ec742){const _0x56ba03=[];for(const _0x57bfd2 of this['editor']['model']['markers'])_0x57bfd2['name']['startsWith']('comment:'+_0x1ec742)&&_0x56ba03['push'](_0x57bfd2);return _0x56ba03;}['scrollToThreadMarker'](_0x4bae95){setTimeout(()=>{const _0x2bdf31=this['_getTargetForId'](_0x4bae95);if(!_0x2bdf31)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x4bae95&&nt({'target':_0x2bdf31[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xeefc5c){this['editor']['model']['change'](()=>{for(const _0x3262e1 of this['getAllMarkersForId'](_0xeefc5c))this['editor']['editing']['reconvertMarker'](_0x3262e1);});}['_attachArchivedThread'](_0x352d40){const _0x3a94c8=this['editor']['plugins']['get'](o),_0x30c170=this['editor']['plugins']['get'](b),_0x26a8b3=_0x3a94c8['getCommentThread'](_0x352d40);if(!_0x26a8b3['isAttached']){const _0x14e7e9=_0x26a8b3['attachTo'](()=>this['_getTargetForId'](_0x26a8b3['id']));_0x30c170['registerAnnotation'](_0x14e7e9),_0x26a8b3['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1c7725=this['editor'],_0x209904=_0x1c7725['plugins']['get'](it);_0x1c7725['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1b248e,_0x263236)=>{const {id:_0x41b0eb}=ft(_0x1b248e['markerName']),_0x295ac4=_0x1c7725['plugins']['get'](o)['getCommentThread'](_0x41b0eb),_0x13816b=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x41b0eb;let _0x28cb0b;if(_0x295ac4&&_0x295ac4['isResolved']&&!_0x13816b&&_0x1b248e['item'])return _0x263236['consumable']['consume'](_0x1b248e['item'],'addMarker:'+_0x1b248e['markerName']),_0x263236['consumable']['consume'](_0x1b248e['item'],'removeMarker:'+_0x1b248e['markerName']),null;const _0x30b44d=['ck-comment-marker'];return _0x13816b&&_0x30b44d['push']('ck-comment-marker--active'),_0x28cb0b=_0x295ac4?.['length']?_0x295ac4['comments']['first']['author']['id']:_0x209904['me']['id'],{'classes':_0x30b44d,'attributes':{'data-comment':_0x41b0eb,'data-author-id':_0x28cb0b}};}}),_0x1c7725['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x48f5fa,{options:_0x39cc04})=>{if(_0x39cc04['showCommentHighlights'])return null;const _0x3cf83d=_0x1c7725['plugins']['get'](o),_0x5305ac=_0x1c7725['model']['markers']['get'](_0x48f5fa),{id:_0x465e1e,part:_0x3e1dc0}=ft(_0x48f5fa);return _0x5305ac&&!_0x5305ac['affectsData']||_0x39cc04['ignoreResolvedComments']&&_0x3cf83d['getCommentThread'](_0x465e1e)?.['isResolved']?null:{'group':'comment','name':_0x3e1dc0?_0x465e1e+':'+_0x3e1dc0:_0x465e1e};}}),_0x1c7725['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x4a71f6,{writer:_0x223ea9})=>_0x223ea9['createElement']('$marker',{'data-name':'comment:'+_0x4a71f6['getAttribute']('id')})}),_0x1c7725['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x4035a8=this['editor'],_0x3663df=_0x4035a8['plugins']['get'](o),_0x3b9ec3=new Set(),_0x498700=new Set();_0x4035a8['model']['document']['registerPostFixer'](_0x190f19=>{let _0xd32454=!0x1;for(const {name:_0x2e9463,data:_0x52ed95}of _0x4035a8['model']['document']['differ']['getChangedMarkers']()){const {group:_0x54fe94,id:_0x47ba46}=ft(_0x2e9463);let _0x2789bb=_0x52ed95['newRange'];if('comment'!==_0x54fe94||!_0x2789bb)continue;const _0x58c496='$graveyard'===_0x2789bb['root']['rootName'];_0x58c496||(_0x2789bb=ht(_0x2789bb,_0x4035a8['model']),!_0x2789bb||_0x2789bb['isCollapsed']||!_0x52ed95['newRange']||_0x2789bb['isEqual'](_0x52ed95['newRange']))?_0x4035a8['model']['hasContent'](_0x2789bb)&&!_0x58c496?this['isThreadsLoadingPaused']?_0x3b9ec3['add'](_0x2e9463):this['_handleThreadMarker'](_0x2e9463,_0x47ba46):(_0x498700['add'](_0x2e9463),_0x3b9ec3['delete'](_0x2e9463),_0x190f19['removeMarker'](_0x2e9463),_0xd32454=!0x0):(_0x190f19['updateMarker'](_0x2e9463,{'range':_0x2789bb}),_0xd32454=!0x0);}return _0xd32454;}),this['on']('change:isThreadsLoadingPaused',(_0x2c1daa,_0x3db358,_0x24a9eb)=>{if(!_0x24a9eb&&_0x3b9ec3['size'])for(const _0x138842 of _0x3b9ec3){const {id:_0x4e0994}=ft(_0x138842);_0x3b9ec3['delete'](_0x138842),_0x4035a8['model']['markers']['get'](_0x138842)&&this['_handleThreadMarker'](_0x138842,_0x4e0994);}}),this['listenTo'](_0x4035a8['model']['document'],'change',()=>{for(const {name:_0x3edac2,data:{newRange:_0x41ca20}}of _0x4035a8['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3452c1,id:_0x115760}=ft(_0x3edac2);if('comment'!==_0x3452c1)continue;const _0xe7d8a2=_0x3663df['getCommentThread'](_0x115760),_0x2f32d0=this['hasMarkerForId'](_0x115760);_0xe7d8a2&&(!_0xe7d8a2['_hasTargetInContent']&&_0x41ca20&&_0x4035a8['editing']['view']['once']('render',()=>{const _0x555568=_0x4035a8['plugins']['get'](y),_0x346443=_0x3663df['_threadToController']['get'](_0xe7d8a2)['view'];_0x555568['getByInnerView'](_0x346443)['refreshVisibility']();},{'priority':'low'}),_0xe7d8a2['_hasTargetInContent']=_0x2f32d0||!!_0x41ca20),_0x41ca20||(_0x498700['add'](_0x3edac2),_0x3b9ec3['delete'](_0x3edac2));}for(const _0x3c8960 of _0x498700){const {id:_0x2d21b9}=ft(_0x3c8960),_0x2ef828=_0x3663df['getCommentThread'](_0x2d21b9);if(_0x3b9ec3['delete'](_0x3c8960),!_0x2ef828)continue;const _0x425945=this['hasMarkerForId'](_0x2d21b9);_0x425945||_0x2ef828['isSubmitted']?_0x425945||_0x2ef828['unlinkedAt']||_0x2ef828['setUnlinkedAt'](new Date()):_0x2ef828['remove']();}_0x498700['clear']();});}['_handleInitialThreads'](_0x2d466c){_0x2d466c['forEach'](_0x5e1a43=>{_0x5e1a43['unlinkedAt']&&this['_attachArchivedThread'](_0x5e1a43['id']);});}['_getTargetForId'](_0x50dc08){const _0x26019a=this['editor'],_0x44a7f3=this['getAllMarkersForId'](_0x50dc08);return et(_0x26019a['editing'],_0x44a7f3);}['_getTextContext'](_0x5e94ad){const _0x4377ca=this['getAllMarkersForId'](_0x5e94ad);let _0x4282a6='',_0x71d02d=!0x1;for(const _0x55c97b of _0x4377ca){const _0x1f7597=_0x55c97b['getRange']();for(const _0x2194c8 of Array['from'](_0x1f7597['getItems']()))_0x2194c8['is']('$textProxy')?(_0x4282a6&&_0x71d02d&&(_0x4282a6+='\x20',_0x71d02d=!0x1),_0x4282a6+=_0x2194c8['data']):_0x71d02d=!0x0;_0x71d02d=!0x0;}return _0x4282a6['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4f1e94,_0x50b94c){const _0x1cc01a=this['editor'],_0x1865bf=_0x1cc01a['plugins']['get'](o);let _0x3b3cfe=_0x1865bf['getCommentThread'](_0x50b94c);const _0x514f20=_0x1cc01a['config']['get']('collaboration.channelId'),_0x180818=_0x1cc01a['plugins']['get'](b);if(_0x3b3cfe&&(_0x3b3cfe['unlinkedAt']&&_0x3b3cfe['setUnlinkedAt'](null),_0x3b3cfe['isAttached']))return _0x3b3cfe;return!this['getAllMarkersForId'](_0x50b94c)[0x0]['managedUsingOperations']?_0x1cc01a['editing']['view']['once']('render',()=>{if(_0x1865bf['getCommentThread'](_0x50b94c))return;const _0x11e1dd=_0x1cc01a['plugins']['get'](y);_0x3b3cfe=_0x1865bf['openNewCommentThread']({'channelId':_0x514f20,'threadId':_0x50b94c,'target':()=>this['_getTargetForId'](_0x50b94c),'context':{'type':'text','value':this['_getTextContext'](_0x50b94c)}});const _0x51b667=_0x1865bf['_threadToController']['get'](_0x3b3cfe)['view'],_0x33bb45=_0x11e1dd['getByInnerView'](_0x51b667);_0x33bb45&&_0x180818['registerAnnotation'](_0x33bb45);},{'priority':'low'}):_0x1865bf['fetchCommentThread']({'channelId':_0x514f20,'threadId':_0x50b94c})['then'](_0x3b84fb=>{if('destroyed'!==_0x1cc01a['state']){if(_0x3b3cfe=_0x3b84fb,_0x3b3cfe&&!_0x3b3cfe['isAttached']){const _0x3c083f=_0x3b3cfe['attachTo'](()=>this['_getTargetForId'](_0x50b94c));_0x180818['registerAnnotation'](_0x3c083f),_0x3b3cfe['isResolved']&&this['_reconvertMarkers'](_0x50b94c);}else{if(!_0x3b3cfe){const _0x47e66=this['getAllMarkersForId'](_0x50b94c);_0x1cc01a['model']['change'](_0xc347b0=>{for(const _0x2d4bce of _0x47e66)_0xc347b0['removeMarker'](_0x2d4bce);});}}}}),_0x3b3cfe;}['_handleThreadMarker'](_0x69fa45,_0x4b8e84){const _0x3f295e=this['_attachMarkerToThread'](_0x69fa45,_0x4b8e84);_0x3f295e&&!_0x3f295e['context']&&_0x3f295e['setContext']({'type':'text','value':this['_getTextContext'](_0x4b8e84)});}['_initAriaMarkerChangeAnnouncements'](){const _0x51c7df=this['editor'];rt(_0x51c7df['model'],({left:_0x5f135b,entered:_0x5c6688})=>{for(const _0x518550 of _0x5f135b)if(mt(_0x518550)){_0x51c7df['ui']['ariaLiveAnnouncer']['announce'](N(_0x51c7df['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x19112e of _0x5c6688)if(mt(_0x19112e)){_0x51c7df['ui']['ariaLiveAnnouncer']['announce'](N(_0x51c7df['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x3a89f8)));break;}});}}function dt(_0x2d1fa8,_0x88e0d2){return _0x88e0d2?_0x2d1fa8+':'+_0x88e0d2:_0x2d1fa8;}function ht(_0x5f01a4,_0x136ebb){const _0x192f92=_0x136ebb['schema'],_0x3075f0=_0x136ebb['createRange'](_0x5f01a4['start']);for(const _0x3d1e38 of _0x5f01a4['getWalker']()){const {type:_0x4d1280,item:_0xadf3f5,nextPosition:_0x52c187}=_0x3d1e38;if('text'===_0x4d1280||_0x192f92['isObject'](_0xadf3f5)){const _0x76160e=_0x136ebb['createPositionBefore'](_0xadf3f5);_0x3075f0['isCollapsed']&&(_0x3075f0['start']=_0x76160e),_0x3075f0['end']=_0x52c187;}}return _0x3075f0;}function mt(_0xa19e5a){return'comment'===ft(_0xa19e5a['name'])['group'];}class s extends _0x135745{['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 _0x5274d=this['editor'],_0x571eaa=_0x5274d['plugins']['get'](o),_0x2a5c40=_0x5274d['plugins']['get'](r),_0x3a39bc=_0x5274d['plugins']['get'](y),_0x410d81=_0x5274d['plugins']['get'](b);_0x5274d['ui']['componentFactory']['add']('comment',()=>{const _0x3b8750=this['_createUIButton'](_0x39adad);return _0x3b8750['tooltip']=!0x0,_0x3b8750;}),_0x5274d['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x3fc650)),_0x410d81['addSourceCollector'](()=>{const _0x420000=[];for(const [_0x182f99,_0x12d811]of _0x571eaa['_threadToController']){const _0x4e8cd3=_0x2a5c40['getAllMarkersForId'](_0x182f99['id']),_0x3e25c5=_0x4e8cd3['map'](_0x22fce1=>_0x22fce1['getRange']());_0x4e8cd3['length']>0x0&&_0x420000['push']([_0x12d811['view'],_0x3e25c5]);}return _0x420000;}),this['listenTo'](_0x3a39bc,'change:activeAnnotations',(_0x525792,_0x57d21d,_0xe69e48)=>{const _0x22bdc1=Array['from'](_0xe69e48)['map'](_0x33bb42=>_0x33bb42['innerView'])['find'](_0xb520cb=>_0x571eaa['_viewToController']['has'](_0xb520cb));if(!_0x22bdc1)return void(_0x2a5c40['activeMarker']=null);const _0xf9e68=_0x571eaa['_viewToController']['get'](_0x22bdc1)['model']['id'],_0x19e7e8='comment:'+_0xf9e68;_0xf9e68&&_0x2a5c40['hasMarkerForId'](_0xf9e68)?_0x2a5c40['activeMarker']=_0x19e7e8:_0x2a5c40['activeMarker']&&(_0x2a5c40['activeMarker']=null);}),this['listenTo'](_0x571eaa,'removeCommentThread',(_0x24c2ab,{threadId:_0x475c0a,isFromAdapter:_0x12ce57})=>{!_0x12ce57&&_0x5274d['ui']['focusTracker']['isFocused']&&_0x2a5c40['hasMarkerForId'](_0x475c0a)&&_0x5274d['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x571eaa,'addComment',(_0x11abc7,{threadId:_0x15822b,isFromAdapter:_0x132e9a})=>{if(_0x132e9a||!_0x2a5c40['hasMarkerForId'](_0x15822b)||!_0x571eaa['hasCommentThread'](_0x15822b))return;0x1===_0x571eaa['getCommentThread'](_0x15822b)['length']&&(_0x5274d['editing']['view']['focus'](),_0x11abc7['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x94dd71=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x966ac0;for(const _0x5e334e in _0x94dd71){const _0x1fa5a3=_0x5e334e,_0x3dbb18=_0x94dd71[_0x1fa5a3];if('commentsLicenseKeyValid'==_0x3dbb18||'commentsLicenseKeyInvalid'==_0x3dbb18||'commentsLicenseKeyExpired'==_0x3dbb18||'commentsLicenseKeyDomainLimit'==_0x3dbb18||'commentsLicenseKeyNotAllowed'==_0x3dbb18||'commentsLicenseKeyEvaluationLimit'==_0x3dbb18||'commentsLicenseKeyUsageLimit'==_0x3dbb18){delete _0x94dd71[_0x1fa5a3],_0x966ac0=_0x3dbb18,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x966ac0&&_0x94dd71['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x966ac0&&_0x94dd71['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x966ac0&&_0x94dd71['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x966ac0&&_0x94dd71['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x966ac0&&_0x94dd71['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x966ac0&&_0x94dd71['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x4c1d31){const _0x1efb83=this['editor'],_0x3e7cbb=new _0x4c1d31(_0x1efb83['locale']),_0x337cc0=_0x1efb83['commands']['get']('addCommentThread');return _0x3e7cbb['set']({'label':N(_0x1efb83['locale'],'Comment'),'icon':_0x34195b}),_0x3e7cbb['bind']('isEnabled')['to'](_0x337cc0,'isEnabled',_0x337cc0,'hasContent',(_0x6b7aa2,_0x5182af)=>_0x6b7aa2&&_0x5182af),this['listenTo'](_0x3e7cbb,'execute',()=>{_0x337cc0['execute']();}),_0x3e7cbb;}}class i extends _0x135745{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2e5555){super(_0x2e5555),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x207486,_0x488542,_0x58ef95)=>{_0x58ef95?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x3bf19f,_0xcc1b07]of this['editor']['commands'])_0xcc1b07['affectsData']&&'addCommentThread'!==_0x3bf19f&&_0xcc1b07['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 _0x2116a2=this['editor']['editing']['view']['document'];this['listenTo'](_0x2116a2,'cut',_0x737638=>_0x737638['stop'](),{'priority':'highest'}),this['listenTo'](_0x2116a2,'clipboardInput',_0x3bb9a5=>_0x3bb9a5['stop'](),{'priority':'highest'}),this['listenTo'](_0x2116a2,'delete',_0xf40590=>_0xf40590['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0xa001ef,_0xf1b18a]of this['editor']['commands'])_0xf1b18a['affectsData']&&'addCommentThread'!==_0xa001ef&&_0xf1b18a['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 _0x580786{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3dde82){super(_0x3dde82),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x2716d8=this['context']['plugins']['get'](y);this['listenTo'](_0x2716d8,'_activateAnnotation',(_0x18e64b,_0x1d79f7)=>{for(const _0x1c573f of this['activeUIs']){const _0x960730=this['_uis']['get'](_0x1c573f);(0x0,this['uisData']['get'](_0x1c573f)['filter'])(_0x1d79f7)&&_0x960730['setActiveAnnotation'](_0x1d79f7);}}),this['listenTo'](_0x2716d8,'_deactivateAllAnnotations',()=>{for(const _0x2f986e of this['activeUIs']){this['_uis']['get'](_0x2f986e)['setActiveAnnotation'](null);}}),this['listenTo'](_0x2716d8['_visibleAnnotations'],'add',(_0x3dacc1,_0x26692a)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x26692a);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3e41a3){return this['activeUIs']['has'](_0x3e41a3);}['activate'](_0x5b97b6,_0x322f84=this['defaultFilter']){const _0x1cc6cd=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x5b97b6))throw new _0x3721e2('annotationsuis-missing-ui',this,{'uiName':_0x5b97b6});this['isActive'](_0x5b97b6)&&this['deactivate'](_0x5b97b6),this['activeUIs']['add'](_0x5b97b6);const _0x41ba93=new S();v({'source':_0x1cc6cd['_visibleAnnotations'],'target':_0x41ba93,'filter':_0x322f84}),this['uisData']['set'](_0x5b97b6,{'collection':_0x41ba93,'filter':_0x322f84});const _0x366510=this['_uis']['get'](_0x5b97b6);_0x366510['attach'](_0x41ba93),this['listenTo'](_0x366510,'change:activeAnnotation',(_0x4125ba,_0x13925b,_0x1bed3f,_0xd47e19)=>{_0xd47e19&&_0x1cc6cd['_removeActiveAnnotation'](_0xd47e19),_0x1bed3f&&_0x1cc6cd['_addActiveAnnotation'](_0x1bed3f);});}['deactivate'](_0x55f05a){if(this['activeUIs']['delete'](_0x55f05a),!this['_uis']['has'](_0x55f05a))throw new _0x3721e2('annotationsuis-missing-ui',this,{'uiName':_0x55f05a});const _0x4c5f36=this['_uis']['get'](_0x55f05a);_0x4c5f36['detach'](),this['stopListening'](_0x4c5f36),this['uisData']['get'](_0x55f05a)['collection']['destroy'](),this['uisData']['delete'](_0x55f05a);}['switchTo'](_0x6327de){if(!this['_uis']['has'](_0x6327de))throw new _0x3721e2('annotationsuis-missing-ui',this,{'uiName':_0x6327de});const _0x4722ed=this['context']['plugins']['get'](y),_0x49c09a=Array['from'](_0x4722ed['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x6327de);const _0x479ca6=this['_uis']['get'](_0x6327de);_0x479ca6['setActiveAnnotation'](_0x49c09a),_0x479ca6['_setSelectedAnnotations']&&_0x49c09a&&_0x479ca6['_setSelectedAnnotations']([_0x49c09a]);}['deactivateAll'](){for(const _0x40c52e of this['activeUIs'])this['deactivate'](_0x40c52e);}['register'](_0x2b6b05,_0x21fe15){if(this['_uis']['has'](_0x2b6b05))throw new _0x3721e2('annotationsuis-register-already-registered');if('function'!=typeof _0x21fe15['attach']||'function'!=typeof _0x21fe15['detach']||'function'!=typeof _0x21fe15['setActiveAnnotation'])throw new _0x3721e2('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x2b6b05,_0x21fe15);}['refilterAnnotations'](){const _0x226334=this['context']['plugins']['get'](y)['collection'],_0x55c9ac=new Map(),_0x50b673=Array['from'](this['activeUIs']);for(const _0x24d364 of this['activeUIs']){const _0x4f5639=this['uisData']['get'](_0x24d364)['collection'];for(const _0x7617ab of _0x4f5639)_0x55c9ac['set'](_0x7617ab,_0x24d364);}for(const _0x413517 of _0x226334){const _0x153fbd=_0x55c9ac['get'](_0x413517);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x413517);const _0x1e22e2=_0x50b673['find'](_0x40f33a=>this['uisData']['get'](_0x40f33a)['filter'](_0x413517));_0x153fbd!==_0x1e22e2&&(_0x153fbd&&this['uisData']['get'](_0x153fbd)['collection']['remove'](_0x413517),_0x1e22e2&&this['uisData']['get'](_0x1e22e2)['collection']['add'](_0x413517));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2d09fe){const _0x1aa546=[];for(const _0x588a18 of this['activeUIs']){(0x0,this['uisData']['get'](_0x588a18)['filter'])(_0x2d09fe)&&_0x1aa546['push'](_0x588a18);}if(_0x1aa546['length']>0x1)throw new _0x3721e2('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1aa546,'annotationType':_0x2d09fe['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x13291f){super(_0x13291f);const _0x31ba80=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 _0x23562f(),this['focusCycler']=new _0x2ee504({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x31ba80['to']('class')],'style':{'minHeight':_0x31ba80['to']('minHeight',_0xe47f78=>'number'==typeof _0xe47f78?_i(_0xe47f78+0xa):null)},'dir':_0x13291f['uiLanguageDirection'],'role':'application','aria-label':N(_0x13291f,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x13291f,'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',_0x4a50e5=>{this['_updateItemPositionInFocusables'](_0x4a50e5['source']);}),this['list']['forEach'](_0x7bdf52=>{this['focusTracker']['add'](_0x7bdf52['element']),this['_updateItemPositionInFocusables'](_0x7bdf52);}),this['list']['on']('change',(_0x1e0a1f,_0x3d6fef)=>{for(const _0x250be5 of _0x3d6fef['removed'])this['focusTracker']['remove'](_0x250be5['element']),this['focusables']['remove'](_0x250be5);for(const _0x5014da of _0x3d6fef['added'])this['focusTracker']['add'](_0x5014da['element']),this['_updateItemPositionInFocusables'](_0x5014da);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x4e9521){const _0x2dc6b8=this['focusables']['getIndex'](_0x4e9521);let _0x58db03,_0x45b7b9;for(const _0x28f86f of this['focusables'])if(_0x4e9521['top']<_0x28f86f['top']){_0x58db03=_0x28f86f;break;}if(_0x45b7b9=_0x58db03?this['focusables']['getIndex'](_0x58db03):this['focusables']['length'],-0x1!==_0x2dc6b8){if(_0x2dc6b8===_0x45b7b9-0x1)return;this['focusables']['remove'](_0x4e9521),_0x45b7b9=_0x58db03?this['focusables']['getIndex'](_0x58db03):this['focusables']['length'];}this['focusables']['add'](_0x4e9521,_0x45b7b9);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x399901){super(_0x399901),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x3c95fd,_0x26c3ce)=>_0x3c95fd+_0x26c3ce),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0xdf83ea=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0xdf83ea['to']('isAnimationDisabled',_0x8e6830=>_0x8e6830?'ck-sidebar-item--no-animation':'')],'style':{'top':_0xdf83ea['to']('top',_0x45de61=>Ot(_0x45de61))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x16c34b=this['element']['clientHeight'];_0x16c34b&&(this['height']=_0x16c34b);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x580786{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b8fa3){super(_0x4b8fa3),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 _0x15377f=this['context']['config']['get']('sidebar.container');_0x15377f&&this['setContainer'](_0x15377f);}['setContainer'](_0x5e294a){if(!g(_0x5e294a))throw new _0x3721e2('sidebar-setcontainer-invalid-element');this['container']=_0x5e294a;}['_attachToContainer']({viewClass:_0x3aede3='',spaceBetweenItems:_0x40b373=0x19}={}){if(!g(this['container']))throw new _0x3721e2('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3aede3,this['_spaceBetweenItems']=_0x40b373;}['rearrange']({removedAnnotation:_0x399e45,previousAnnotation:_0x2d2851,nextAnnotation:_0x3784b5}){const _0x17a4cd=this['getSidebarItemView'](_0x399e45);this['view']['list']['remove'](_0x17a4cd),this['_destroySidebarItemView'](_0x399e45),_0x2d2851&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2d2851)),_0x3784b5&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3784b5)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x5cbead,activatedAnnotation:_0x559b93,disableAnimationOnActivatedAnnotation:_0x569077}){if(this['_activeAnnotation']=_0x559b93,_0x5cbead){_0x5cbead['isActive']=!0x1;const _0x42f4d0=this['getSidebarItemView'](_0x5cbead);_0x42f4d0&&_0x569077&&(_0x42f4d0['isAnimationDisabled']=!0x1);}if(_0x559b93){const _0x2e3861=this['getSidebarItemView'](_0x559b93);_0x2e3861&&(_0x559b93['isActive']=!0x0,_0x569077&&(_0x2e3861['isAnimationDisabled']=!0x0,_0x2e3861['top']+=0x1),this['_alignToTargetRect'](_0x2e3861));}}['_detachFromContainer'](_0x5a897a){if(this['view']['element']['remove'](),_0x5a897a){for(const _0x60ff1d of _0x5a897a)this['_destroySidebarItemView'](_0x60ff1d);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x785fe6,_0x4c6df4){_0x4c6df4||(_0x4c6df4=_0x785fe6['view']);const _0x29f8b9=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x29f8b9,_0x785fe6),this['_annotationToSidebarItemView']['set'](_0x785fe6,_0x29f8b9),_0x29f8b9['content']['add'](_0x4c6df4),this['listenTo'](_0x785fe6['view'],'change:targetRect',(_0x3891a4,_0x3bee55,_0x5206ba)=>{const _0x2ea9d3=this['_getTargetTop'](_0x785fe6,_0x5206ba);_0x29f8b9['_targetTop']!=_0x2ea9d3&&(_0x29f8b9['_targetTop']=_0x2ea9d3,this['_setItemTop'](_0x29f8b9,_0x2ea9d3));}),this['listenTo'](_0x29f8b9,'change:top',()=>{this['_recalculate'](_0x29f8b9,'top');}),this['listenTo'](_0x29f8b9,'change:bottom',()=>{this['_recalculate'](_0x29f8b9,'bottom');}),this['_alignToTargetRect'](_0x29f8b9);const _0x2ca000=this['_getItemBefore'](_0x29f8b9);if(_0x2ca000)this['_alignAfterItem'](_0x2ca000,_0x29f8b9)||this['_alignToTargetRect'](_0x29f8b9);else this['_alignToTargetRect'](_0x29f8b9);return this['_updateLastItem'](),this['view']['list']['add'](_0x29f8b9),_0x29f8b9;}['_alignForTopChange'](_0x210bb8){if(!_0x210bb8['content']['length'])return;const _0x35f9ec=this['_getItemBefore'](_0x210bb8);if(!_0x35f9ec)return;const _0x577c5b=this['_sidebarItemViewToAnnotation']['get'](_0x35f9ec),_0x4629ed=this['_activeAnnotation'];_0x4629ed&&_0x4629ed===_0x577c5b?this['_alignAfterItem'](_0x35f9ec,_0x210bb8):this['_alignBeforeItem'](_0x210bb8,_0x35f9ec);}['_alignForBottomChange'](_0x567602){if(!_0x567602['content']['length'])return;const _0x41a2cb=this['_getItemAfter'](_0x567602);if(!_0x41a2cb)return;const _0xff366a=this['_sidebarItemViewToAnnotation']['get'](_0x41a2cb),_0x1bea4b=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2d5a90=this['_activeAnnotation'];_0x2d5a90&&_0x2d5a90===_0xff366a&&_0x1bea4b?(this['_alignBeforeItem'](_0x41a2cb,_0x567602),this['_alignAfterItem'](_0x567602,_0x41a2cb)):_0x2d5a90&&_0x2d5a90===_0xff366a?this['_alignBeforeItem'](_0x41a2cb,_0x567602):this['_alignAfterItem'](_0x567602,_0x41a2cb);}['_recalculate'](_0x4a37cd,_0x4b5e95){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x35a2c3,changedProp:_0x3e4b71}of this['_recalculateBuffer'])'top'===_0x3e4b71?this['_alignForTopChange'](_0x35a2c3):this['_alignForBottomChange'](_0x35a2c3);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4a37cd,'changedProp':_0x4b5e95});}['getSidebarItemView'](_0x53e857){return this['_annotationToSidebarItemView']['get'](_0x53e857);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x36faba){const _0x353060=this['getSidebarItemView'](_0x36faba);this['stopListening'](_0x353060),this['stopListening'](_0x36faba['view']),_0x353060['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x36faba),this['_sidebarItemViewToAnnotation']['delete'](_0x353060);}['_createSidebarView'](){const _0x51d74a=new H(this['context']['locale']);return _0x51d74a['render'](),this['on']('change:_lastItem',(_0x39decf,_0x2c5aa0,_0x55a6a1,_0x231618)=>{_0x231618&&_0x51d74a['unbind']('minHeight'),_0x55a6a1?_0x51d74a['bind']('minHeight')['to'](_0x55a6a1,'bottom'):_0x51d74a['minHeight']=null;}),_0x51d74a;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x4702c7){const _0x1fc531=this['_sidebarItemViewToAnnotation']['get'](_0x4702c7),_0x10180c=_0x1fc531&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1fc531)-0x1);return _0x10180c&&this['getSidebarItemView'](_0x10180c)||null;}['_getItemAfter'](_0x5629e0){const _0x14d6f0=this['_sidebarItemViewToAnnotation']['get'](_0x5629e0),_0x227ff9=_0x14d6f0&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x14d6f0)+0x1);return _0x227ff9&&this['getSidebarItemView'](_0x227ff9)||null;}['_alignBeforeItem'](_0x12980e,_0x196765){_0x12980e['updateHeight']();const _0xe2015c=G(_0x196765['bottom']+this['_spaceBetweenItems'],_0x12980e['top']);return!!_0xe2015c&&(this['_setItemTop'](_0x196765,_0x196765['top']-_0xe2015c),!0x0);}['_alignAfterItem'](_0x55dfa8,_0x518ad4){_0x55dfa8['updateHeight']();const _0x6e20c8=G(_0x55dfa8['bottom']+this['_spaceBetweenItems'],_0x518ad4['top']);return!!_0x6e20c8&&(this['_setItemTop'](_0x518ad4,_0x518ad4['top']+_0x6e20c8,!0x1),!0x0);}['_alignToTargetRect'](_0x3e7196){const _0x4a68bc=this['_sidebarItemViewToAnnotation']['get'](_0x3e7196);if(!_0x4a68bc||!_0x4a68bc['target']||!_0x4a68bc['targetRect'])return;const _0x548192=this['_getTargetTop'](_0x4a68bc,_0x4a68bc['targetRect']);this['_setItemTop'](_0x3e7196,_0x548192);}['_getTargetTop'](_0x1505d5,_0x21d12a){if(null===_0x21d12a)return 0x0;if(_0x1505d5['target']instanceof _0x4c8bc4)return _0x21d12a['top'];{const _0x4c07cf=new _0x4c8bc4(this['view']['element'])['top'];return _0x21d12a['top']-_0x4c07cf;}}['_setItemTop'](_0x3a0624,_0x11c08e,_0x2c947d=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x2c947d&&(_0x11c08e=Math['max'](_0x11c08e,this['_getMaxAvailableTop'](_0x3a0624))),_0x3a0624['top']=_0x11c08e;}['_getMaxAvailableTop'](_0x4ef44c){let _0x1f5cce=this['_getItemBefore'](_0x4ef44c),_0xc98832=0x0;for(;_0x1f5cce;)_0x1f5cce['updateHeight'](),_0xc98832+=this['_spaceBetweenItems']+_0x1f5cce['height'],_0x1f5cce=this['_getItemBefore'](_0x1f5cce);return _0xc98832;}}function G(_0x5e7b2d,_0x51da4b){return Math['max'](_0x5e7b2d-_0x51da4b,0x0);}function g(_0x37fa8b){return null!==_0x37fa8b&&'object'==typeof _0x37fa8b&&0x1===_0x37fa8b['nodeType'];}class e extends _0x580786{['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(_0xfe7fb9){super(_0xfe7fb9),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x28871e(),this['_refreshPositioningDebounced']=_0x3f3a2f(()=>{_0xfe7fb9['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x153d0f=this['context']['plugins']['get'](j),_0x1d77ff=this['context']['plugins']['get'](z);_0x153d0f['register']('wideSidebar',this),_0x1d77ff['container']&&_0x153d0f['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x32a625){if(_0x32a625===this['activeAnnotation'])return;const _0x2f870d=this['context']['plugins']['get'](z);_0x2f870d['_activeAnnotation']=_0x32a625;const _0x646ab2=this['activeAnnotation'];_0x2f870d['refresh']({'blurredAnnotation':_0x646ab2,'activatedAnnotation':_0x32a625}),this['activeAnnotation']=_0x32a625;}['attach'](_0x246f61){this['annotations']=_0x246f61;const _0x4b0e0f=this['context']['plugins']['get'](z);if(_0x4b0e0f['_annotations']=_0x246f61,this['isAttached'])throw new _0x3721e2('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4b0e0f,'set:container',()=>{this['detach'](),this['listenTo'](_0x4b0e0f,'change:container',_0x441039=>{_0x441039['off'](),this['attach'](_0x246f61);});}),_0x4b0e0f['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x16a8df=_0x428258=>{_0x428258['updateTargetRect'](),_0x4b0e0f['addAnnotation'](_0x428258);};for(const _0x25dbba of _0x246f61)_0x16a8df(_0x25dbba);this['listenTo'](_0x246f61,'add',(_0x5569fa,_0x1da9e4)=>{_0x16a8df(_0x1da9e4);}),this['listenTo'](_0x246f61,'remove',(_0xabcea1,_0x2b586d,_0x9c5a5c)=>{_0x4b0e0f['rearrange']({'removedAnnotation':_0x2b586d,'previousAnnotation':_0x246f61['get'](_0x9c5a5c-0x1),'nextAnnotation':_0x246f61['get'](_0x9c5a5c+0x1)}),_0x2b586d===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x246f61,'focus',(_0x47fb4d,_0x94e121)=>{this['setActiveAnnotation'](_0x94e121);}),this['listenTo'](_0x246f61,'blur',()=>{this['setActiveAnnotation'](null);});const _0x119222=this['context']instanceof _0x1f5efe?this['context']['editors']:new _0x28871e([this['context']]);for(const _0x5b2940 of _0x119222)this['_integrateWithEditorAnnotations'](_0x5b2940);this['listenTo'](_0x119222,'add',(_0x4541b2,_0x4cd559)=>{this['listenTo'](_0x4cd559,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4cd559);});}),this['listenTo'](_0x119222,'remove',(_0x40b000,_0x4b65c1)=>{_0x4b65c1['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4b65c1['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3721e2('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x44f4ba=this['context']['plugins']['get'](z);_0x44f4ba['_detachFromContainer'](this['annotations']),this['stopListening'](_0x44f4ba),this['stopListening'](this['annotations']),this['context']instanceof _0x1f5efe&&this['stopListening'](this['context']['editors']);for(const _0x15bad4 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x15bad4);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2fd324){if(!_0x2fd324['plugins']['has']('EditorAnnotations'))return;const _0x399494=_0x2fd324['plugins']['get']('EditorAnnotations'),_0x460ea1=()=>{const _0x39ee4a=_0x399494['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x39ee4a[0x0]||null);};this['listenTo'](_0x399494,'refresh',_0x460ea1),this['listenTo'](_0x399494,'blur',(_0x42d86f,{isAnnotationTracked:_0x49fdd1})=>{this['activeAnnotation']&&_0x49fdd1(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x399494,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0xc70882=>{_0x399494['hasDomSelection']()&&(_0x460ea1(),_0xc70882['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x399494);}['_destroyEditorAnnotationsIntegration'](_0x58c651){this['stopListening'](_0x58c651),this['_editorAnnotations']['remove'](_0x58c651);}}class C extends _0x39adad{['counterView'];constructor(_0x44b3f9){super(_0x44b3f9);const _0x85cc4b=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1fff8d,_0x128e73)=>_0x1fff8d?'...':_0x128e73['toString']()),this['set']('annotationType',''),this['icon']=_0x34195b,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x85cc4b['to']('annotationType',_0x185f09=>'ck-annotation-counter__badge--'+_0x185f09),_0x85cc4b['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x85cc4b['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x580786{['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(_0x5e259a){super(_0x5e259a),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x15b50d())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x28871e(),this['_refreshPositioningDebounced']=_0x3f3a2f(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x528b57(this['context']['locale']),this['balloonPanelView']=new _0x4222f3(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4c37bb){this['annotations']=_0x4c37bb;const _0x51b9fa=this['context']['plugins']['get'](z),_0x76d6c7=this['balloonPanelView'];if(_0x51b9fa['_annotations']=_0x4c37bb,this['isAttached'])throw new _0x3721e2('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x51b9fa,'set:container',()=>{this['detach'](),this['listenTo'](_0x51b9fa,'change:container',_0x450bd9=>{_0x450bd9['off'](),this['attach'](_0x4c37bb);});}),_0x51b9fa['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x356c81=_0x4f965a=>{const _0x5d7511=new C(this['context']['locale']);_0x51b9fa['addAnnotation'](_0x4f965a,_0x5d7511),this['_annotationToNarrowView']['set'](_0x4f965a,_0x5d7511),_0x5d7511['bind']('isDirty','annotationType','number')['to'](_0x4f965a['view'],'isDirty','type','length'),_0x5d7511['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x76d6c7['content']['first']!==_0x4f965a['view']?(this['_showBalloon'](_0x4f965a),_0x4f965a['view']['element']['focus'](),this['setActiveAnnotation'](_0x4f965a)):this['setActiveAnnotation'](null);});};for(const _0x50d53a of _0x4c37bb)_0x356c81(_0x50d53a);this['listenTo'](_0x4c37bb,'add',(_0x118cdb,_0x120e4d)=>{_0x356c81(_0x120e4d);}),this['listenTo'](_0x4c37bb,'remove',(_0x5332f7,_0x324f50,_0x302a60)=>{this['_annotationToNarrowView']['get'](_0x324f50)['destroy'](),this['_annotationToNarrowView']['delete'](_0x324f50),_0x51b9fa['rearrange']({'removedAnnotation':_0x324f50,'previousAnnotation':_0x4c37bb['get'](_0x302a60-0x1),'nextAnnotation':_0x4c37bb['get'](_0x302a60+0x1)}),_0x324f50===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4c37bb,'focus',(_0x12b006,_0x331270)=>{this['setActiveAnnotation'](_0x331270);}),this['listenTo'](_0x4c37bb,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x8967d9,_0x5a822d)=>{_0x5a822d['keyCode']===_0x19f0ea['esc']&&_0x76d6c7['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x76d6c7['content']['first']),this['_hideBalloon'](),_0x5a822d['stopPropagation'](),_0x5a822d['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x144fbb,_0x1d82c8)=>{const _0x45c9dd=_0x1d82c8['target'];_0x76d6c7['isVisible']&&_0x76d6c7['element']['contains'](_0x45c9dd)||_0x51b9fa['view']['element']['contains'](_0x45c9dd)||_0x144fbb['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x38769c=>_0x38769c['contains'](_0x45c9dd))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x5b5253=this['context']instanceof _0x1f5efe?this['context']['editors']:new _0x28871e([this['context']]);for(const _0x2ca037 of _0x5b5253)this['_integrateWithEditorAnnotations'](_0x2ca037);this['listenTo'](_0x5b5253,'add',(_0x59c929,_0x3e9341)=>{this['listenTo'](_0x3e9341,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3e9341);});}),this['listenTo'](_0x5b5253,'remove',(_0x15acf3,_0x11a82b)=>{_0x11a82b['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x11a82b['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x502d26){if(_0x502d26===this['activeAnnotation'])return;const _0x1cea72=this['context']['plugins']['get'](z);if(_0x1cea72['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x502d26,'disableAnimationOnActivatedAnnotation':!0x0}),_0x502d26)_0x1cea72['getSidebarItemView'](_0x502d26)?this['_showBalloon'](_0x502d26):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x502d26;}['detach'](){if(!this['isAttached'])throw new _0x3721e2('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x9c8424=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x22ec46=>_0x22ec46['destroy']()),this['_annotationToNarrowView']['clear'](),_0x9c8424['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x1f5efe&&this['stopListening'](this['context']['editors']);for(const _0x98d30c of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x98d30c);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'](_0xc16b27){if(!_0xc16b27['plugins']['has']('EditorAnnotations'))return;const _0x479f50=_0xc16b27['plugins']['get']('EditorAnnotations'),_0x3b8c63=this['context']['plugins']['get'](z),_0x1f0155=this['annotations'],_0x184c91=this['balloonPanelView'],_0x33e30c=()=>{const _0x263eb4=_0x479f50['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x263eb4),this['setActiveAnnotation'](_0x263eb4[0x0]||null);};this['listenTo'](_0x479f50,'refresh',_0x33e30c),this['listenTo'](_0x479f50,'blur',(_0x50ce39,{isAnnotationTracked:_0x5bfe82})=>{this['activeAnnotation']&&_0x5bfe82(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x479f50,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1f0155,'blur',_0x2b67d8=>{_0x479f50['hasDomSelection']()&&_0x2b67d8['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x434a47,_0x4a4765)=>{const _0x221551=_0x4a4765['target'];_0x184c91['isVisible']&&_0x184c91['element']['contains'](_0x221551)||_0x3b8c63['view']['element']['contains'](_0x221551)||this['activeAnnotation']&&_0x479f50['hasDomSelection']()&&(_0x33e30c(),_0x434a47['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x479f50);}['_destroyEditorAnnotationsIntegration'](_0x510e2c){_0x510e2c&&(this['stopListening'](_0x510e2c),this['_editorAnnotations']['remove'](_0x510e2c));}['_setSelectedAnnotations'](_0x3bbbca){for(const _0x5b6cb4 of this['_selectedAnnotations'])_0x3bbbca['includes'](_0x5b6cb4)||this['_manuallyClosedAnnotationViews']['delete'](_0x5b6cb4['view']);this['_selectedAnnotations']=_0x3bbbca;}['_refreshPositioning'](){const _0x328343=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x328343['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x14b768){if(this['_manuallyClosedAnnotationViews']['has'](_0x14b768['view']))return;const _0x4fd0e2=this['balloonPanelView']['content']['first'];_0x4fd0e2!==_0x14b768['view']?(_0x4fd0e2&&this['_detachListeners'](_0x4fd0e2),this['_attachListeners'](_0x14b768['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x14b768['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4cd852=this['balloonPanelView']['content']['first'],_0x34214d=_0x4cd852&&this['annotations']['getByView'](_0x4cd852);if(!_0x34214d||!this['_annotationToNarrowView']['has'](_0x34214d))return;const _0x8b3de9=this['_annotationToNarrowView']['get'](_0x34214d)['element'],_0x46fbde=(function(){const _0x4715fd=_0x4222f3['defaultPositions'];return[_0x4715fd['southArrowNorthEast'],_0x4715fd['northArrowSouthEast'],_0x4715fd['southArrowNorth'],_0x4715fd['northArrowSouth'],_0x4715fd['southArrowNorthWest'],_0x4715fd['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x8b3de9,'positions':_0x46fbde});}['_hideBalloon'](){const _0x4c2afd=this['balloonPanelView'],_0x1f2b0b=_0x4c2afd['content']['first'];_0x1f2b0b&&(this['_detachListeners'](_0x1f2b0b),_0x4c2afd['unpin'](),_0x4c2afd['content']['clear']());}['_attachListeners'](_0x49509a){this['listenTo'](_0x49509a,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x49509a,'Esc',(_0x5ce173,_0x444a71)=>{this['_manuallyClosedAnnotationViews']['add'](_0x49509a),this['_hideBalloon'](),_0x444a71();});}['_detachListeners'](_0x8742a1){this['stopListening'](_0x8742a1);}}class c extends _0x135745{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x3ce6fa,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d93cc){super(_0x4d93cc),_0x4d93cc['editing']['view']['addObserver'](_0x4382bb),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4d93cc['plugins']['get'](_0x3ce6fa),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x3f3a2f(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x58cdf0=this['editor']['plugins']['get'](j);_0x58cdf0['context']===this['editor']&&(_0x58cdf0['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x37f1cc,_0x5df13d)=>{const _0x51c487=this['_balloon'];if(this['isAttached']&&_0x51c487['visibleView']){const _0x5d6c5b=this['annotations']['getByView'](_0x51c487['visibleView']);_0x5d6c5b&&this['_closeAnnotation'](_0x5d6c5b),_0x5df13d();}}));}['afterInit'](){const _0x303743=this['editor']['plugins']['get'](j);_0x303743['context']===this['editor']&&(_0x303743['hasActive']()||_0x303743['switchTo']('inline'));}['setActiveAnnotation'](_0x1daa9e){_0x1daa9e!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1daa9e&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1daa9e)&&this['_addAnnotationToBalloon'](_0x1daa9e,!0x0),_0x1daa9e['isActive']=!0x0),_0x1daa9e||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1daa9e);}['attach'](_0x56cf95){this['annotations']=_0x56cf95;const _0x3a1bd9=this['editor']['plugins']['get'](j),_0x49a55d=this['_balloon'];if(this['isAttached'])throw new _0x3721e2('inlineannotations-attach-already-attached',this);if(_0x3a1bd9['context']!==this['editor'])throw new _0x3721e2('inlineannotations-not-allowed-with-context',this);const _0x5bf52c=this['editor']['plugins']['get'](b);this['listenTo'](_0x5bf52c,'refresh',()=>{const _0x2da092=_0x5bf52c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x93727e,_0x36d4e6;!this['_forceRefresh']&&(_0x93727e=_0x2da092,_0x36d4e6=this['_selectedAnnotations'],_0x93727e['length']===_0x36d4e6['length']&&_0x93727e['every'](_0x17e45b=>_0x36d4e6['includes'](_0x17e45b)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2da092),this['setActiveAnnotation'](_0x2da092[0x0]||null));}),this['listenTo'](_0x5bf52c,'blur',(_0x42d115,{isAnnotationTracked:_0x39c32e})=>{this['activeAnnotation']&&_0x39c32e(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x5bf52c,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x25f524,_0x14676,_0x47b478)=>{_0x47b478||this['setActiveAnnotation'](null);}),this['listenTo'](_0x56cf95,'remove',(_0x1704cc,_0x41d53a)=>{this['_removeAnnotationFromBalloon'](_0x41d53a),_0x41d53a===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x49a55d,'change:visibleView',(_0x3545af,_0x378caa,_0x1df703,_0x291ff6)=>{_0x291ff6&&this['stopListening'](_0x291ff6);const _0x41fde6=_0x56cf95['getByView'](_0x1df703);_0x1df703&&_0x41fde6&&(this['listenTo'](_0x1df703,'change:height',()=>{_0x49a55d['updatePosition']();}),this['listenTo'](_0x1df703,'Esc',()=>{this['_closeAnnotation'](_0x41fde6),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x41fde6&&this['setActiveAnnotation'](_0x41fde6));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x49a55d['visibleView']&&(_0x56cf95['getByView'](_0x49a55d['visibleView'])&&_0x49a55d['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 _0x3721e2('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xd0ab74 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xd0ab74);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x2f33c2){for(const _0x21f2be of this['_selectedAnnotations'])_0x2f33c2['includes'](_0x21f2be)||this['_manuallyClosed']['delete'](_0x21f2be);for(const _0x514a15 of this['annotations'])_0x2f33c2['includes'](_0x514a15)||this['_removeAnnotationFromBalloon'](_0x514a15);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x52077e of _0x2f33c2)this['_addAnnotationToBalloon'](_0x52077e);}this['_selectedAnnotations']=_0x2f33c2;}['_addAnnotationToBalloon'](_0x522063,_0x523ca5=!0x1){this['_manuallyClosed']['has'](_0x522063)||(this['_addedAnnotations']['has'](_0x522063)||this['_balloon']['hasView'](_0x522063['view'])||(this['_addedAnnotations']['add'](_0x522063),this['_balloon']['add']({'stackId':_0x522063['view']['id'],'view':_0x522063['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x522063)}})),_0x523ca5&&this['_balloon']['showStack'](_0x522063['view']['id']));}['_getBalloonTargetForAnnotation'](_0x57ccea){const _0xa30d80=_0x57ccea['target'],_0x30f8ec=this['editor']['editing']['view'],_0x12787e=_0x30f8ec['document']['selection']['getFirstRange'](),_0x4d7fee=_0x30f8ec['domConverter']['viewRangeToDom'](_0x12787e);if(_0x4d7fee['collapse'](!0x0),_0xa30d80){if(_0xa30d80 instanceof _0x4c8bc4)return _0xa30d80;let _0x329ce5=[];for(const _0x35dd09 of _0xa30d80)_0x329ce5['push'](...F(_0x35dd09['getClientRects']()));_0x329ce5=function(_0x340f76){const _0x20fe0b=[];let _0x40b658=_0x340f76[0x0];for(let _0x27132c=0x1;_0x27132c<_0x340f76['length'];_0x27132c++)P(_0x40b658,_0x340f76[_0x27132c])?_0x40b658['width']+=_0x340f76[_0x27132c]['width']:(_0x20fe0b['push'](_0x40b658),_0x40b658=_0x340f76[_0x27132c]);return _0x20fe0b['push'](_0x40b658),_0x20fe0b;}(_0x329ce5);const _0x1e9870=_0x4d7fee['getBoundingClientRect']();return _0x329ce5['find'](_0xb1c4af=>_0xb1c4af['top']<=_0x1e9870['top']&&_0xb1c4af['bottom']>=_0x1e9870['bottom']&&_0xb1c4af['left']<=_0x1e9870['left']&&_0xb1c4af['right']>=_0x1e9870['right'])||_0x329ce5[0x0];}return _0x57ccea['targetRect']||_0x4d7fee;}['_removeAnnotationFromBalloon'](_0x31813f){this['_addedAnnotations']['has'](_0x31813f)&&this['_balloon']['hasView'](_0x31813f['view'])&&(this['_addedAnnotations']['delete'](_0x31813f),this['_balloon']['remove'](_0x31813f['view']));}['_closeAnnotation'](_0x20d662){this['_manuallyClosed']['add'](_0x20d662),this['_removeAnnotationFromBalloon'](_0x20d662);}}function F(_0x5cdbc4){return Array['from'](_0x5cdbc4)['map'](DOMRect['fromRect']);}function P(_0x23dd10,_0xe56dc0){return _0x23dd10['top']===_0xe56dc0['top']&&_0x23dd10['bottom']===_0xe56dc0['bottom']&&_0x23dd10['right']===_0xe56dc0['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x53b00f,_0xca5fa1){super(_0x53b00f),this['set']('isEmpty',!_0xca5fa1['length']),this['focusTracker']=new _0x23562f(),this['_annotationViews']=_0xca5fa1,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x2ee504({'focusables':_0xca5fa1,'focusTracker':this['focusTracker']}),this['listenTo'](_0xca5fa1,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0xca5fa1,'remove',(_0x418137,_0x5a7e5f)=>{_0x5a7e5f['isActive']&&this['focus'](),_0xca5fa1['length']||(this['isEmpty']=!0x0);});const _0x42c51b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x53b00f,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0xca5fa1},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x42c51b['if']('isEmpty','ck-hidden',_0x2db145=>!_0x2db145)]},'children':[{'text':N(_0x53b00f,'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 _0x820208 of this['_annotationViews'])this['focusTracker']['add'](_0x820208['element']);this['_annotationViews']['on']('change',(_0x357326,{added:_0x40859b,removed:_0x1cf6af})=>{for(const _0x46bab7 of _0x40859b)this['focusTracker']['add'](_0x46bab7['element']);for(const _0x358d8f of _0x1cf6af)this['focusTracker']['remove'](_0x358d8f['element']);});}}class p extends _0x580786{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x16c1a5){super(_0x16c1a5),this['archivedThreads']=new _0x28871e();}['init'](){const _0x23f79c=this['context'],_0xc9b225=_0x23f79c['plugins']['get'](o),_0x3c21d3=_0x23f79c['plugins']['get'](y);this['listenTo'](_0xc9b225,'addCommentThread',(_0x455a5d,{threadId:_0x7af36})=>{const _0x2f26c5=_0xc9b225['getCommentThread'](_0x7af36);_0x2f26c5['archivedAt']&&this['archivedThreads']['add'](_0x2f26c5,this['_calculatePosition'](_0x2f26c5['archivedAt'])),this['listenTo'](_0x2f26c5,'change:archivedAt',(_0x3ca4ec,_0x97fce5,_0xc389e4)=>{_0xc389e4?this['archivedThreads']['has'](_0x2f26c5)||this['archivedThreads']['add'](_0x2f26c5,this['_calculatePosition'](_0x2f26c5['archivedAt'])):this['archivedThreads']['has'](_0x2f26c5)&&this['archivedThreads']['remove'](_0x2f26c5);});}),this['listenTo'](_0xc9b225,'removeCommentThread',(_0x459798,{threadId:_0x1e9b6c})=>{const _0x47eb44=_0xc9b225['getCommentThread'](_0x1e9b6c);this['stopListening'](_0x47eb44),this['archivedThreads']['has'](_0x47eb44)&&this['archivedThreads']['remove'](_0x47eb44);},{'priority':'highest'}),this['listenTo'](_0x3c21d3['collection'],'focus',(_0x56cbce,_0x3b0482)=>{_0x3b0482['isVisible']||(_0x3b0482['isActive']=!0x0,_0x3c21d3['activate'](_0x3b0482));});}['_calculatePosition'](_0x43eb45){const _0x28149c=[...this['archivedThreads']]['findIndex'](_0x129a58=>_0x129a58['archivedAt']<_0x43eb45);return _0x28149c>-0x1?_0x28149c:this['archivedThreads']['length'];}}class a extends _0x135745{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x447fc9];}constructor(_0x5f7b86){super(_0x5f7b86),this['annotationViews']=new _0x39512e(),this['_pendingThreads']=[];}['init'](){const _0x35e770=this['editor'],_0x4e898a=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x35e770['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x39adad,!0x0)),_0x35e770['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x41ecda=this['_createCommentsArchiveButton'](_0x3fc650);return _0x41ecda['set']({'role':'menuitemcheckbox'}),_0x41ecda;});const _0x2b0a0d=_0x35e770['plugins']['get'](p),_0x37ef28=_0x35e770['plugins']['get']('Annotations'),_0x58d0ae=_0x35e770['plugins']['get']('CommentsRepository');_0x2b0a0d['archivedThreads']['forEach'](_0x1e89cf=>{this['_handleNewThread'](_0x1e89cf);}),this['listenTo'](_0x2b0a0d['archivedThreads'],'add',(_0x5bfea6,_0x2f2566)=>{this['_handleNewThread'](_0x2f2566);}),this['listenTo'](_0x37ef28['collection'],'add',(_0x225a9e,_0x12f76c)=>{const _0x40b2a8=this['_pendingThreads']['find'](_0x20e665=>{const _0x50ba49=_0x58d0ae['_threadToController']['get'](_0x20e665);return _0x50ba49&&_0x12f76c['innerView']===_0x50ba49['view'];});if(_0x40b2a8){const _0x373fea=this['_calculatePosition'](_0x40b2a8['archivedAt']);this['_addAnnotationToArchive'](_0x12f76c,_0x373fea),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x40b2a8),0x1);}}),this['listenTo'](_0x2b0a0d['archivedThreads'],'remove',(_0x294920,_0x3b817c)=>{const _0xf32f43=_0x35e770['config']['get']('collaboration.channelId');if(!_0xf32f43||_0x3b817c['channelId']===_0xf32f43){if(this['_pendingThreads']['includes'](_0x3b817c))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3b817c),0x1);else{const _0x5d34f2=_0x58d0ae['_threadToController']['get'](_0x3b817c),_0xd95ec4=_0x37ef28['getByInnerView'](_0x5d34f2['view']);this['annotationViews']['remove'](_0xd95ec4['view']),this['stopListening'](_0xd95ec4),this['stopListening'](_0xd95ec4['focusableElements']);}}}),this['listenTo'](_0x37ef28['collection'],'add',(_0x55df00,_0x332051)=>{this['listenTo'](_0x332051,'escape',_0x4e898a);}),this['listenTo'](_0x37ef28['collection'],'remove',(_0x5f0ee8,_0x34bc61)=>{this['stopListening'](_0x34bc61,'escape',_0x4e898a);});}['_addAnnotationToArchive'](_0x55acb5,_0x3226db){this['listenTo'](_0x55acb5,'set:isVisible',_0x736705=>{_0x736705['return']=!0x1,_0x736705['stop']();}),this['annotationViews']['add'](_0x55acb5['view'],_0x3226db);}['_handleNewThread'](_0x43fe03){const _0x6567c9=this['editor']['plugins']['get']('CommentsRepository'),_0x2864d0=this['editor']['plugins']['get']('Annotations'),_0x32f734=this['editor']['config']['get']('collaboration.channelId');if(!_0x32f734||_0x43fe03['channelId']===_0x32f734){const _0xe6836a=_0x6567c9['_threadToController']['get'](_0x43fe03);if(!_0xe6836a)return void this['_pendingThreads']['push'](_0x43fe03);const _0x461011=this['_calculatePosition'](_0x43fe03['archivedAt']),_0x76c007=_0x2864d0['getByInnerView'](_0xe6836a['view']);_0x76c007['isVisible']&&_0x2864d0['_visibleAnnotations']['remove'](_0x76c007),this['_addAnnotationToArchive'](_0x76c007,_0x461011);}}['_calculatePosition'](_0x1be2fa){const _0x47da27=this['editor']['config']['get']('collaboration.channelId'),_0x4745b5=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x50d6d3=>_0x50d6d3['channelId']===_0x47da27)['findIndex'](_0x26fe64=>_0x26fe64['archivedAt']<_0x1be2fa);return _0x4745b5<0x0||_0x4745b5>this['annotationViews']['length']?this['annotationViews']['length']:_0x4745b5-0x1;}['_toggleDialog'](){const _0x17f7fd=this['editor'],_0x18bce0=_0x17f7fd['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x17f7fd['locale'],this['annotationViews'])),'commentsArchive'===_0x18bce0['id']?_0x18bce0['hide']():_0x18bce0['show']({'id':'commentsArchive','title':N(_0x17f7fd['locale'],'COMMENTS_ARCHIVE'),'icon':_0x1a26bf,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x549ba5['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x53e212,_0x2443aa=!0x1){const _0xf5e966=this['editor']['locale'],_0x1c3f36=this['editor']['plugins']['get']('Dialog'),_0x4b0c41=new _0x53e212(_0xf5e966);return _0x4b0c41['bind']('isEnabled')['to'](this,'isEnabled'),_0x4b0c41['bind']('isOn')['to'](_0x1c3f36,'id',_0x18fdd5=>'commentsArchive'===_0x18fdd5),_0x4b0c41['set']({'label':N(_0xf5e966,'COMMENTS_ARCHIVE'),'icon':_0x1a26bf,'isToggleable':!0x0}),_0x2443aa&&(_0x4b0c41['tooltip']=!0x0),this['listenTo'](_0x4b0c41,'execute',()=>this['_toggleDialog']()),_0x4b0c41;}['_hideDialogOnAnnotationEscape']=_0x46ef30=>{const _0x35a62a=_0x46ef30['source'];if(!this['annotationViews']['has'](_0x35a62a['view']))return;const _0x3c7d2e=this['editor']['plugins']['get']('Dialog');_0x3c7d2e['isOpen']&&'commentsArchive'===_0x3c7d2e['id']&&(_0x3c7d2e['hide'](),_0x46ef30['stop']());};}class gi extends _0x135745{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};