@ckeditor/ckeditor5-comments 47.3.0-alpha.0 → 47.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +11 -11
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +19 -19
  150. package/src/annotations/annotation.js +2 -2
  151. package/src/annotations/annotationcollection.js +1 -1
  152. package/src/annotations/annotations.js +1 -1
  153. package/src/annotations/annotationsuis.js +1 -1
  154. package/src/annotations/editorannotations.js +1 -1
  155. package/src/annotations/inlineannotations.js +1 -1
  156. package/src/annotations/narrowsidebar.js +1 -1
  157. package/src/annotations/sidebar.js +1 -1
  158. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  159. package/src/annotations/view/annotationview.js +1 -1
  160. package/src/annotations/view/sidebaritemview.js +2 -2
  161. package/src/annotations/view/sidebarview.js +2 -2
  162. package/src/annotations/widesidebar.js +1 -1
  163. package/src/comments/addcommentthreadcommand.js +1 -1
  164. package/src/comments/commentsarchive.js +1 -1
  165. package/src/comments/commentsarchiveui.js +1 -1
  166. package/src/comments/commentsediting.js +1 -1
  167. package/src/comments/commentsrepository.js +3 -3
  168. package/src/comments/commentsui.js +1 -1
  169. package/src/comments/integrations/clipboard.js +1 -1
  170. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  171. package/src/comments/integrations/importword.js +1 -1
  172. package/src/comments/integrations/showcommenthighlights.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  174. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  175. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  176. package/src/comments/ui/commentthreadcontroller.js +2 -2
  177. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  178. package/src/comments/ui/view/basecommentview.js +1 -1
  179. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  180. package/src/comments/ui/view/commentcontentview.js +1 -1
  181. package/src/comments/ui/view/commentinputview.js +1 -1
  182. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  183. package/src/comments/ui/view/commentslistview.js +1 -1
  184. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  185. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  186. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  187. package/src/comments/ui/view/commentthreadview.js +2 -2
  188. package/src/comments/ui/view/commentview.js +2 -2
  189. package/src/comments.js +1 -1
  190. package/src/commentsonly.js +1 -1
  191. package/src/index.js +1 -1
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.js +1 -1
  194. package/src/utils/splitmarkername.js +1 -1
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x51c211,ContextPlugin as _0x14ca66,PendingActions as lt,Command as _0x490448,Plugin as _0x11f31c,Context as _0x4ba37d}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1abc3e,uid as _0x5357ba,KeystrokeHandler as jt,FocusTracker as _0x478e38,diff as _0x54998c,Collection as _0x1fc4b1,Rect as _0x1a84db,CKEditorError as _0x539fa6,first as _0x53038a,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0xc0fd62,keyCodes as _0x353e30}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x48bfd0,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0xc977cf,trimHtml as ts,LateFocusDropdownButtonView as _0x2f8a2b,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x3c5875}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x20f4e4}from'es-toolkit/compat';import{IconUndo as _0x186169,IconCheck as _0x421c7a,IconPencil as _0x4235ca,IconRemoveComment as _0x336104,IconThreeVerticalDots as _0x515e93,IconAddComment as _0x4cb0aa,IconCommentsArchive as _0xc695b4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x1b9466,ButtonView as _0x47485a,ViewCollection as _0x1619de,createDropdown as _0x5782f1,ListView as _0x3ce8c9,focusChildOnDropdownOpen as _0x5e5aeb,ListItemView as _0xfd3415,MenuBarMenuListItemButtonView as _0x4466f3,BodyCollection as _0xb0e3bf,BalloonPanelView as _0x13573a,ContextualBalloon as _0x54e0dc,Dialog as _0x144c96,DialogViewPosition as _0x37f9c5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x156506}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 _0x284aa9}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x10a8c0}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x1abc3e(){['model'];['view'];constructor(_0x3b188d,_0x4b011d){super(),this['model']=_0x3b188d,this['model']['_isAttached']=!0x0,this['view']=_0x4b011d,this['listenTo'](_0x4b011d,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4b011d,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4b011d,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4b011d,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4b011d,'addComment',(_0x3c293e,_0x557b13)=>this['addComment'](_0x557b13)),this['listenTo'](_0x4b011d,'updateComment',(_0x15bcaf,_0x3535cf,_0x2129d6)=>this['updateComment'](_0x3535cf,_0x2129d6)),this['listenTo'](_0x4b011d,'removeComment',(_0x37d099,_0x49fe51)=>this['removeComment'](_0x49fe51));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x46dd9f){this['model']['addComment']({'content':_0x46dd9f,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x30e2eb,_0x287fe7){this['model']['getComment'](_0x30e2eb)['update']({'content':_0x287fe7});}['removeComment'](_0x53a75b){this['model']['getComment'](_0x53a75b)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x2174b9,_0xea228f,_0x373c90){const t=_0x2174b9['t'];switch(_0xea228f){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'},_0x373c90);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'},_0x373c90);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'},_0x373c90);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'},_0x373c90);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x373c90);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'},_0x373c90);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'},_0x373c90);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'},_0x373c90);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(_0x103b37,_0x253542){super(_0x103b37);const _0x3b89ff=_0x5357ba();this['main']=this['createCollection'](),this['editable']=new Vt(_0x103b37,_0x253542,void 0x0,{'label':()=>N(_0x103b37,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x103b37['uiLanguageDirection'],'lang':_0x103b37['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x3b89ff},'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(_0x333405){super(_0x333405),this['view']=new Rt(_0x333405['locale'],_0x333405['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0xfc94b7=this['editor']['editing']['view'],_0x8a91fc=this['view']['editable'],_0x20151e=_0xfc94b7['document']['getRoot']();_0x8a91fc['name']=_0x20151e['rootName'],this['view']['render']();const _0x1df920=_0x8a91fc['element'];this['setEditableElement'](_0x8a91fc['name'],_0x1df920),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xfc94b7['attachDomRoot'](_0x1df920),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x1abc3e(_0x51c211){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x2f7a77={}){function _0x5aaf15(_0x3979f0){return _0x3979f0['map'](_0x4a4ae0=>String['fromCharCode'](_0x4a4ae0))['join']('');}(_0x2f7a77=Object['assign']({},_0x2f7a77))['plugins']||(_0x2f7a77['plugins']=hs['defaultPlugins']),super(_0x2f7a77),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[_0x5aaf15([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aaf15([0x76,0x69,0x65,0x77])][_0x5aaf15([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5aaf15([0x61,0x75,0x74,0x6f]),this[_0x5aaf15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5aaf15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5aaf15([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5aaf15([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5aaf15([0x6f,0x6b])});}['create'](){const _0x42747c=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x42747c))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x2559a8=>{const _0x5174a6=this['model']['document']['getRoot'](),_0x4033d7=_0x5174a6&&_0x5174a6['getChild'](_0x5174a6['childCount']-0x1);_0x2559a8['setSelection'](_0x4033d7,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x14299e=this['editing']['view'],_0x3eda8d=_0x14299e['document']['getRoot'](),_0xed9dc1=_0x3eda8d['getChild'](0x0);_0x3eda8d['childCount']>0x1||!_0xed9dc1||'p'!=_0xed9dc1['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x14299e,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0xed9dc1['placeholder']=this['placeholder']),Ft({'view':_0x14299e,'element':_0xed9dc1,'keepOnFocus':!0x0}),this['placeholderElement']=_0xed9dc1);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3aed72,_0xa71807={}){super(_0x3aed72),this['editor']=null,this['_editorConfig']=_0xa71807,this['set']('value',_0xa71807['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x3aed72,'Reply...')),this['set']('submitLabel',N(_0x3aed72,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x478e38(),this['focusCycler']=new _0x1b9466({'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',(_0xfe742d,_0xb3924b)=>{this['cancelButtonView']['fire']('execute'),_0xb3924b();}),this['keystrokes']['set']('Ctrl+Enter',(_0x425bec,_0x55249b)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x55249b());}),this['on']('submit',(_0x1ef779,_0x567be5)=>{_0x567be5['length']>0xfde8?(alert(N(_0x3aed72,'TOO_LONG_COMMENT_ALERT',[_0x567be5['length'],0xfde8])),_0x1ef779['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 _0x218882=this['editor'];this['element']['insertBefore'](_0x218882['ui']['element'],this['element']['firstChild']),_0x218882['model']['document']['on']('change',()=>this['value']=_0x218882['getData']()),_0x218882['bind']('placeholder')['to'](this),this['focusables']['add'](_0x218882['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x57043b){-0x1===_0x57043b?(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:_0x3d1a5a}=this,_0x29d7dd=new _0x47485a(_0x3d1a5a);return _0x29d7dd['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x29d7dd['withText']=!0x0,_0x29d7dd['bind']('label')['to'](this,'submitLabel'),_0x29d7dd['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x29d7dd['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2f1320,_0x5ba9d2)=>!_0x5ba9d2&&!!_0x2f1320['trim']()),_0x29d7dd;}['_createCancelButton'](){const {locale:_0x22cb39}=this,_0x109b93=new _0x47485a(_0x22cb39);return _0x109b93['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x109b93['label']=N(_0x22cb39,'Cancel'),_0x109b93['withText']=!0x0,_0x109b93['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x109b93;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0xf8df0d=>{this['focusTracker']['add'](_0xf8df0d['element']);}),this['focusables']['on']('change',(_0x30187a,_0x316c42)=>{for(const _0x3da899 of Array['from'](_0x316c42['added'])['reverse']())this['focusTracker']['add'](_0x3da899['element']);});}}class ie extends kt{constructor(_0x1cd14e,_0x3df8f8,_0x26157a){super(_0x1cd14e),this['commentInputView']=new es(_0x1cd14e,_0x26157a),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x57a877,_0x30e4ad)=>_0x57a877||!!_0x30e4ad),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 _0x48bfd0(_0x1cd14e,_0x3df8f8),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'](_0x1bb931){this['commentInputView']['focus'](_0x1bb931);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x53f387,_0x64e3ab)=>{const {submitButtonView:_0x2134f5,cancelButtonView:_0x4716c2,editor:_0x1d4b11}=this['commentInputView'];[_0x2134f5['element'],_0x4716c2['element'],_0x1d4b11?_0x1d4b11['editing']['view']['getDomRoot']():null]['filter'](_0x1c45f6=>_0x1c45f6)['some'](_0x4ca02b=>_0x4ca02b['contains'](_0x64e3ab['target']))||(this['focus'](),_0x64e3ab['preventDefault']());});}}class rs extends kt{constructor(_0xaf1bb3){super(_0xaf1bb3);const _0x5c5525=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x5c5525['to']('count',_0x5c344=>N(_0xaf1bb3,'NUMBER_OF_COMMENTS',_0x5c344))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x496eaa,_0x46d13e,_0x18a327){super(_0x496eaa);const _0x11eef7=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x46d13e['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x46d13e,this['_config']=_0x18a327,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x478e38(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1b9466({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x165bbc=>this['commentViews']['map'](_0x1c441c=>_0x1c441c['element'])['includes'](_0x165bbc['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x496eaa),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x116084=>_0x116084-this['_config']['maxCommentsWhenCollapsed']);for(const _0x1a5aef of _0x46d13e['comments'])this['_handleNewCommentModel'](_0x1a5aef);this['_handleInfoComment'](),this['listenTo'](_0x46d13e['comments'],'add',(_0x2cb3a7,_0x54486d)=>{const _0x379af0=this['_calculatePosition'](_0x54486d);this['length']++,this['_handleNewCommentModel'](_0x54486d,_0x379af0),this['refreshVisibleViews']();}),this['listenTo'](_0x46d13e['comments'],'remove',(_0x40cd9d,_0x330d3b)=>{this['length']--,this['_handleRemoveCommentModel'](_0x330d3b),this['refreshVisibleViews']();}),this['listenTo'](_0x46d13e,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x46d13e,'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',_0x11eef7['if']('length','ck-hidden',_0x4eca2a=>!_0x4eca2a)],'aria-label':N(_0x496eaa,'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'](_0x36e3ca){-0x1===_0x36e3ca?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x5d9926 of this['commentViews'])_0x5d9926['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x10d2b9,_0x51c939){const _0x586121=new this['_config']['CommentView'](this['locale'],_0x10d2b9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x586121['viewUid']=_0x10d2b9['id'],_0x586121['delegate']('removeComment')['to'](this),_0x586121['delegate']('updateComment')['to'](this),_0x586121['delegate']('resolveCommentThread')['to'](this),_0x586121['delegate']('editorReady')['to'](this),_0x586121['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x586121,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x586121,_0x51c939);}['_calculatePosition'](_0xfbb3cd){const _0x3ea18c=this['_model']['_findOptimalIndex'](_0xfbb3cd);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0xfbb3cd['authoredAt']?_0x3ea18c-0x1:_0x3ea18c:_0x3ea18c-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x12c7da={'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'],_0x12c7da,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x12c7da));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x44d0c0){const _0x111376=this['commentViews']['remove'](_0x44d0c0['id']);this['stopListening'](_0x111376),_0x111376['isEditMode']&&this['_updateHasDirtyComment'](),_0x111376['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1929d1=>_0x1929d1['isEditMode']);}['_rearrangeCollapse'](){const _0x4a3cd9=function(_0x2beb11){const _0x5297c4=new _0x1fc4b1();for(const _0x1a9fde of _0x2beb11)_0x5297c4['add'](_0x1a9fde);return _0x5297c4;}(this['commentViews']),_0x4b89a4=this['_collapsedCommentsView']['count'];for(let _0x365ff4=0x1;_0x365ff4<=_0x4b89a4;_0x365ff4++)_0x4a3cd9['remove'](0x1);for(const _0x38a795 of _0x4a3cd9)_0x38a795['collapse']();_0x4b89a4>0x0&&_0x4a3cd9['add'](this['_collapsedCommentsView'],0x1),ns(_0x54998c(Array['from'](this['visibleViews']),Array['from'](_0x4a3cd9)),this['visibleViews'],_0x4a3cd9);}['_rearrangeExpand'](){ns(_0x54998c(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x29a2f3 of this['visibleViews'])_0x29a2f3['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x28aea3=>{this['focusTracker']['add'](_0x28aea3['element']),this['keystrokes']['listenTo'](_0x28aea3['element']);}),this['commentViews']['on']('change',(_0x4925da,_0x520167)=>{for(const _0x3b43bb of _0x520167['removed'])this['focusTracker']['remove'](_0x3b43bb['element']),this['keystrokes']['stopListening'](_0x3b43bb['element']);for(const _0x181465 of Array['from'](_0x520167['added'])['reverse']())this['focusTracker']['add'](_0x181465['element']),this['keystrokes']['listenTo'](_0x181465['element']);});}}function ns(_0x5b41c0,_0x7b8ae2,_0x968300){let _0x4f37f1=0x0;for(const _0x2b87a6 of _0x5b41c0)switch(_0x2b87a6){case'insert':_0x7b8ae2['add'](_0x968300['get'](_0x4f37f1),_0x4f37f1),_0x4f37f1++;break;case'delete':_0x7b8ae2['remove'](_0x4f37f1);break;case'equal':_0x4f37f1++;}}class oe extends kt{constructor(_0x31feab){super(_0x31feab);const _0x15554a=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x15554a['to']('contextValue',_0x17c0e7=>N(_0x31feab,'THREAD_CONTEXT_LABEL',_0x17c0e7)),'tabindex':-0x1},'children':[{'text':_0x15554a['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4ef5f5,_0x2a0b76){super(_0x4ef5f5);const _0x89d4d8=this['bindTemplate'];this['_model']=_0x2a0b76,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x478e38(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1b9466({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x3382af=>!!_0x3382af),this['bind']('contextValue')['to'](this['_model'],'context',_0x521e4e=>_0x521e4e&&_0x521e4e['value']?this['_trimContextValue'](_0x521e4e['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',_0x89d4d8['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 _0x1b551c=new _0x47485a(this['locale']);return _0x1b551c['label']=N(this['locale'],'Reopen'),_0x1b551c['tooltip']=N(this['locale'],'Reopen'),_0x1b551c['icon']=_0x186169,_0x1b551c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x103af8=>!_0x103af8),_0x1b551c['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x88439,_0x2370f8)=>_0x88439&&_0x2370f8),_0x1b551c['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x1b551c;}['_trimContextValue'](_0x2dbf59){if(_0x2dbf59['length']<0x96)return _0x2dbf59;const _0x505757=_0x2dbf59['lastIndexOf']('\x20',0x93);return _0x2dbf59['substring'](0x0,_0x505757>-0x1?_0x505757:0x93)+'...';}['_attachContextActions'](){const _0x1bcd25=this['element']['querySelector']('.ck-context'),_0x8501f5=_0x1bcd25['querySelector']('.ck-context__value');this['listenTo'](_0x1bcd25,'mouseenter',()=>{_0x8501f5['offsetWidth']<_0x8501f5['scrollWidth']&&_0x1bcd25['classList']['add']('overlay');}),this['listenTo'](_0x1bcd25,'mouseleave',()=>{_0x1bcd25['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3d743e of this['focusables'])this['focusTracker']['add'](_0x3d743e['element']),this['keystrokes']['listenTo'](_0x3d743e['element']);}['_createContextView'](){const _0x319240=new oe(this['locale']);return _0x319240['bind']('contextValue')['to'](this),_0x319240;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1e63b3,_0x457696,_0x833bf1,_0x1ebf29){super(_0x1e63b3),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x457696,this['_localUser']=_0x833bf1,this['_config']=_0x1ebf29,this['commentThreadHeaderView']=new Xt(_0x1e63b3,_0x457696),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x1e63b3,N(_0x1e63b3,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1e63b3,_0x457696,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1ebf29)),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',(_0x1ad6f6,_0x2e8cdd)=>_0x1ad6f6||!!_0x2e8cdd),this['bind']('isUnlinked')['to'](_0x457696,'unlinkedAt',_0xcdf5e3=>!!_0xcdf5e3),this['bind']('ariaLabel')['to'](this,'length',_0x56a3a7=>{const _0x29efc4=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x56a3a7,_0x29efc4]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x478e38(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1b9466({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1c9ed7=>_0x1c9ed7['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 _0x6c6636=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5ab5d6=_0x6c6636['commentInputView'];return _0x6c6636['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5ab5d6,'value',(_0x5504b9,_0x322ecf,_0x10c7c4,_0x5a0731,_0x1aadec)=>!!_0x1aadec||!!_0x5a0731&&_0x10c7c4&&!_0x322ecf||_0x5504b9&&_0x10c7c4&&!_0x322ecf),_0x5ab5d6['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0xbff6ae,_0x56c51c,_0x45151d)=>{let _0x1bb361;return _0x1bb361=_0x45151d&&_0x56c51c?'Reply\x20to\x20reopen\x20discussion...':_0xbff6ae?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x1bb361);}),_0x5ab5d6['bind']('submitLabel')['to'](this,'length',_0x56c8fc=>N(this['locale'],_0x56c8fc?'Reply':'Comment')),_0x5ab5d6['on']('submit',(_0x46a09d,_0xc7c889)=>{this['fire']('addComment',_0xc7c889),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5ab5d6['on']('cancel',()=>{this['focus']();}),_0x5ab5d6['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5ab5d6['on']('cancel',_0x12a85a=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x12a85a['stop']());}),this['on']('change:isActive',(_0x5289fc,_0x552ddd,_0x295a3a)=>{_0x295a3a||this['length']||_0x5ab5d6['value']||this['fire']('removeCommentThread');}),_0x6c6636;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x1c737e,_0x3cdeb5,_0x174800,_0x357c76){super(_0x1c737e,_0x3cdeb5,_0x174800,_0x357c76),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1c737e,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0xd25116,_0x3e7653,_0x1de7a1)=>{_0x1de7a1||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x1ac4bd,_0xbfcb3,_0x2afcbb)=>{_0x2afcbb&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x18e75c=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x18e75c['if']('isActive','ck-thread--active'),_0x18e75c['if']('isUnlinked','ck-thread--unlinked'),_0x18e75c['to']('actionIndicator',_0x2fb124=>_0x2fb124?'ck-thread--'+_0x2fb124:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x18e75c['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 _0x5048c6 of this['commentsListView']['commentViews'])_0x5048c6['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x2fa3be}=this,_0x22d71a=this['commentsListView']['commentViews']['get'](0x0);_0x22d71a===this['_boundFirstCommentView']||_0x22d71a['isSystemComment']||(this['_boundFirstCommentView']=_0x22d71a,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x22d71a,'actionIndicator',_0x5afd5b=>'remove'===_0x5afd5b?'remove':null),_0x22d71a['placeholder']=N(_0x2fa3be,'Write\x20a\x20comment...'),_0x22d71a['removeButton']['on']('execute',_0x37f7f3=>{_0x37f7f3['stop'](),this['showConfirm'](N(_0x2fa3be,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x22d71a['focus']();}),_0x22d71a['actionBar']['add'](this['resolveButton'],0x0),_0x22d71a['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x20f6ac=new _0xc977cf(this['locale']);return _0x20f6ac['label']=N(this['locale'],'Resolve'),_0x20f6ac['tooltip']=N(this['locale'],'Resolve'),_0x20f6ac['icon']=_0x421c7a,_0x20f6ac['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x20f6ac['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x497ae3=>!_0x497ae3),_0x20f6ac['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3abbb8,_0x39aeba)=>_0x3abbb8&&!_0x39aeba),_0x20f6ac['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x20f6ac;}['_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(_0xef8288){super(_0xef8288),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0xd74c35,_0x1adf45,_0x57f17e)=>{this['element']['innerHTML']=_0x57f17e;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3c2ff0,_0x26d841,_0x98fa82){super(_0x3c2ff0),this['_model']=_0x26d841,this['_config']=_0x98fa82,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x26d841,'content',_0x26d841,'authoredAt',(_0x445e6f,_0x302b5f)=>N(_0x3c2ff0,'COMMENT_ARIA_LABEL',[_0x26d841['author']['name'],_0x98fa82['formatDateTime'](_0x302b5f),new DOMParser()['parseFromString'](_0x445e6f,'text/html')['body']['textContent'],_0x26d841['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x3c2ff0,N(_0x3c2ff0,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x1619de(),this['focusTracker']=new _0x478e38(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1b9466({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1ae5df=>_0x1ae5df['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 _0x191cce=new is(this['locale']);return _0x191cce['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x5f23e9,_0x3eeb4f)=>_0x3eeb4f?ts(_0x5f23e9,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x5f23e9),_0x191cce;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1b9f2a=new es(this['locale'],this['_config']['editorConfig']);return _0x1b9f2a['value']=this['_model']['content'],_0x1b9f2a['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1b9f2a['submitLabel']=N(this['locale'],'Save'),_0x1b9f2a['on']('submit',(_0x4efc28,_0x2f209e)=>{this['fire']('updateComment',this['_model']['id'],_0x2f209e),this['switchToDisplayMode'](),this['focus']();}),_0x1b9f2a['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1b9f2a['once']('editorReady',()=>{_0x1b9f2a['focus']();}),_0x1b9f2a['createEditor'](),_0x1b9f2a['delegate']('editorReady')['to'](this),_0x1b9f2a['delegate']('editorDestroyed')['to'](this),_0x1b9f2a;}['_setupKeyboardNavigation'](){const _0x335667=this['element'];this['keystrokes']['listenTo'](_0x335667);for(const _0x556c0c of this['focusables'])this['focusTracker']['add'](_0x556c0c['element']),this['keystrokes']['listenTo'](_0x556c0c['element']);this['focusables']['on']('change',(_0x4187fe,_0x5eeacc)=>{for(const _0x154621 of _0x5eeacc['removed'])this['focusTracker']['remove'](_0x154621['element']),this['keystrokes']['stopListening'](_0x154621['element']);for(const _0x9e6c30 of _0x5eeacc['added'])this['focusTracker']['add'](_0x9e6c30['element']),this['keystrokes']['listenTo'](_0x9e6c30['element']);}),this['keystrokes']['set']('enter',(_0x3b7be9,_0x135147)=>{_0x335667===_0x3b7be9['target']&&(this['focusCycler']['focusFirst'](),_0x135147());}),this['keystrokes']['set']('esc',(_0x55c777,_0x453e03)=>{_0x335667!==_0x55c777['target']&&(this['focus'](),_0x453e03());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x2e8c89,_0x183115,_0x5ae28d){super(_0x2e8c89,_0x183115,_0x5ae28d),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x2e8c89,'Reply...')),this['bind']('authoredAt')['to'](_0x183115),this['bind']('resolvedAt')['to'](_0x183115),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 _0x48bfd0(_0x2e8c89,_0x183115['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x183115,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x225bd1=this['bindTemplate'],_0x41fae4=[{'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':_0x225bd1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x225bd1['to']('authoredAt',_0x394730=>this['_config']['formatDateTime'](_0x394730))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x225bd1['if']('isEditMode','ck-comment__actions--hidden'),_0x225bd1['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']&&_0x41fae4['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x225bd1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x225bd1['if']('isEditMode','ck-comment--edit'),_0x225bd1['if']('isSystemComment','ck-comment--info'),_0x225bd1['to']('actionIndicator',_0x1e351f=>_0x1e351f?'ck-comment--'+_0x1e351f:'')],'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':_0x41fae4}]}]};}['_createEditButton'](){const _0x107a75=new _0x47485a(this['locale']);return _0x107a75['label']=N(this['locale'],'Edit'),_0x107a75['icon']=_0x4235ca,_0x107a75['withText']=!0x0,_0x107a75['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x107a75['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x28ab06=>!_0x28ab06),_0x107a75['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x107a75['on']('execute',()=>this['switchToEditMode']()),_0x107a75;}['_createRemoveButton'](){const _0x425eba=new _0x47485a(this['locale']);return _0x425eba['label']=N(this['locale'],'Remove'),_0x425eba['icon']=_0x336104,_0x425eba['withText']=!0x0,_0x425eba['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x425eba['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x487fac=>!_0x487fac),_0x425eba['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x425eba['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x425eba;}['_createDropdown'](){const _0x51742b=_0x5782f1(this['locale'],_0x2f8a2b),_0x5ccee7=_0x51742b['panelView']['children'],_0x109072=new _0x3ce8c9(this['locale']),_0x18ee0a=_0x51742b['bindTemplate'];_0x5e5aeb(_0x51742b,()=>this['items']['find'](_0x1be5ff=>_0x1be5ff['isVisible'])),_0x51742b['extendTemplate']({'attributes':{'class':[_0x18ee0a['if']('isVisible','ck-hidden',_0x101e9f=>!_0x101e9f)]}});const _0xf41fa=(_0x249cda,_0xda7210=-0x1)=>{const _0x6f707b=new _0xfd3415(this['locale']);_0x6f707b['children']['add'](_0x249cda);const _0x1f9553=_0xda7210>-0x1?_0xda7210:_0x109072['items']['length'];_0x109072['items']['add'](_0x6f707b,_0x1f9553);const _0x181cc3=Array['from'](this['items']);_0x51742b['unbind']('isEnabled','isVisible'),_0x51742b['bind']('isEnabled')['toMany'](_0x181cc3,'isEnabled',(..._0x2b014b)=>_0x2b014b['some'](_0x2382e9=>_0x2382e9)),_0x51742b['bind']('isVisible')['toMany'](_0x181cc3,'isVisible',(..._0x1f4dea)=>_0x1f4dea['some'](_0x5b8f24=>_0x5b8f24));};_0x51742b['panelPosition']='sw',_0x51742b['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x515e93});for(const _0x3aa8fa of this['items'])_0xf41fa(_0x3aa8fa);return _0x5ccee7['add'](_0x109072),_0x51742b['listenTo'](this['items'],'add',(_0x338fb4,_0x20b9f5,_0xcddb14)=>{_0xf41fa(_0x20b9f5,_0xcddb14);}),_0x51742b['listenTo'](this['items'],'remove',(_0x11e692,_0x202d73,_0x3e6766)=>{_0x109072['items']['remove'](_0x3e6766);}),_0x51742b;}['_attachActions'](_0x2ccd85,_0x5b548a){const _0x2a6438=_0x2ccd85&&_0x2ccd85['element'];_0x2a6438&&(this['listenTo'](_0x2a6438,'mouseenter',()=>this['actionIndicator']=_0x5b548a),this['listenTo'](_0x2a6438,'focus',()=>this['actionIndicator']=_0x5b548a),this['listenTo'](_0x2a6438,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x2a6438,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x2bdba9=super['_createCommentInputView']();return _0x2bdba9['bind']('placeholder')['to'](this),_0x2bdba9;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x5cebd2){const _0x2730e6=Dt(_0x5cebd2,0x1e),_0x287ff4=new MutationObserver(_0x240235=>{for(const _0x4ce41e of _0x240235)('attributes'==_0x4ce41e['type']&&'class'==_0x4ce41e['attributeName']||'childList'==_0x4ce41e['type']||'characterData'==_0x4ce41e['type'])&&_0x2730e6();});return{'attach'(_0x117ceb){_0x287ff4['observe'](_0x117ceb,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x287ff4['disconnect'](),_0x2730e6['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x38587e,_0x187a7b){super(_0x38587e),this['id']=_0x5357ba(),this['focusTracker']=new _0x478e38(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x53775c,_0x599aa6)=>this['fire']('Esc',_0x599aa6)),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'](_0x187a7b),this['mainView']=_0x187a7b;const _0x1a19fd=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x1a19fd['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 _0xcda737=this['element']['clientHeight'];_0xcda737&&(this['height']=_0xcda737);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x1abc3e(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x4359a8,target:_0x454e9c,type:_0x4ed8b0,isVisible:_0x2f52b7=!0x0}){super(),this['view']=_0x4359a8,this['view']['element']||this['view']['render'](),this['_type']=_0x4ed8b0,this['_target']=_0x454e9c,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1fc4b1([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x3e086c,_0x3d8c79)=>{this['view']['focusTracker']['add'](_0x3d8c79);}),this['focusableElements']['on']('remove',(_0x54a1c5,_0x2c9b39)=>{this['view']['focusTracker']['remove'](_0x2c9b39);}),this['set']('isVisible',_0x2f52b7);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x49b994=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x49b994),_0x49b994;}get['targetRect'](){const _0x3c6c10=this['target'];if(null===_0x3c6c10)return null;if(_0x3c6c10 instanceof _0x1a84db)return _0x3c6c10;const _0x5f42fa=_0x3c6c10['filter'](_0x5d7fee=>function(_0xd53f1b){const _0x20ce04=_0xd53f1b['offsetParent'];if(_0x20ce04)return!0x0;const _0x278175=_0xd53f1b['getClientRects']()['item'](0x0);return!!_0x278175;}(_0x5d7fee));return 0x0===_0x5f42fa['length']?null:new _0x1a84db(_0x5f42fa[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x51e2a1){this['view']['isActive']=_0x51e2a1,this['view']['mainView']['isActive']=_0x51e2a1;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x14b9ad){if(!(null===_0x14b9ad||_0x14b9ad instanceof _0x1a84db||Array['isArray'](_0x14b9ad)&&_0x14b9ad['every'](_0x2bbd10=>fi(_0x2bbd10))))throw new _0x539fa6('annotation-invalid-target',null,{'target':_0x14b9ad});}['_getNormalizedTarget'](){const _0x360dbd='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x360dbd)?[_0x360dbd]:_0x360dbd;}}function fi(_0x119b93){return null!==_0x119b93&&'object'==typeof _0x119b93&&'nodeType'in _0x119b93&&0x1===_0x119b93['nodeType'];}class S extends _0x1fc4b1{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x82a139=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x478e38(),this['_focusTracker']['on']('change:isFocused',(_0x9c6b4b,_0x475441,_0x4bdfe3)=>{_0x4bdfe3||this['fire']('blur');});for(const _0x4f68f3 of _0x82a139)this['add'](_0x4f68f3);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x1d6c32){if(this['has'](_0x1d6c32))throw new _0x539fa6('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x1d6c32['innerView'],_0x1d6c32),this['_viewToAnnotation']['set'](_0x1d6c32['view'],_0x1d6c32);for(const _0x16bcb4 of _0x1d6c32['focusableElements'])this['_focusTracker']['add'](_0x16bcb4);this['listenTo'](_0x1d6c32['focusableElements'],'add',(_0x2de6a1,_0x368260)=>{this['_focusTracker']['add'](_0x368260);}),this['listenTo'](_0x1d6c32['focusableElements'],'remove',(_0x59e46e,_0x98eda4)=>{this['_focusTracker']['remove'](_0x98eda4);}),this['listenTo'](_0x1d6c32['view']['focusTracker'],'change:isFocused',(_0x6832b0,_0x307a8a,_0x3071dc)=>{_0x3071dc&&this['fire']('focus',_0x1d6c32);}),_0x1d6c32['updateTargetRect']();const _0x4996e3=this['_getOrderInContent'](_0x1d6c32['view']['targetRect']);return super['add'](_0x1d6c32,_0x4996e3);}['remove'](_0x4cb72c){if(!this['has'](_0x4cb72c))throw new _0x539fa6('annotationcollection-not-existing-item',null);this['stopListening'](_0x4cb72c['view']['focusTracker']),this['stopListening'](_0x4cb72c['focusableElements']);for(const _0x312db9 of _0x4cb72c['focusableElements'])this['_focusTracker']['remove'](_0x312db9);return this['_viewToAnnotation']['delete'](_0x4cb72c['view']),this['_innerViewToAnnotation']['delete'](_0x4cb72c['innerView']),super['remove'](_0x4cb72c);}['getByInnerView'](_0x5f385f){return this['_innerViewToAnnotation']['get'](_0x5f385f);}['getByView'](_0x5baca9){return this['_viewToAnnotation']['get'](_0x5baca9);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1aa08c of this)_0x1aa08c['updateTargetRect']();this['_sort']();}['_sort'](){const _0x28d976=Array['from'](this)['sort']((_0x37bd40,_0x5d8494)=>w(_0x37bd40['view']['targetRect'],_0x5d8494['view']['targetRect']));for(let _0x50e305=_0x28d976['length']-0x1;_0x50e305>0x0;_0x50e305--){const _0xe77ced=_0x28d976[_0x50e305];_0x50e305!==this['getIndex'](_0xe77ced)&&(this['remove'](_0xe77ced),this['add'](_0xe77ced));}}['_getOrderInContent'](_0x36f226){let _0x4e6e5=0x0;if(!_0x36f226)return this['length'];for(const _0x1b4a1d of this){const _0x57db3f=_0x1b4a1d['view']['targetRect'];if(_0x57db3f){if(w(_0x36f226,_0x57db3f)<0x0)return _0x4e6e5;_0x4e6e5++;}}return _0x4e6e5;}}function v({source:_0x579f25,target:_0x5615c8,filter:_0x1b849a}){for(const _0x4ea504 of _0x579f25)_0x1b849a(_0x4ea504)&&_0x5615c8['add'](_0x4ea504);_0x5615c8['listenTo'](_0x579f25,'add',(_0x1899c6,_0x5a2464)=>{_0x1b849a(_0x5a2464)&&_0x5615c8['add'](_0x5a2464);}),_0x5615c8['listenTo'](_0x579f25,'remove',(_0x525406,_0x392d6f)=>{_0x5615c8['has'](_0x392d6f)&&_0x5615c8['remove'](_0x392d6f);});}function w(_0x27923a,_0x2c4873){if(null===_0x27923a&&null===_0x2c4873)return 0x0;if(null===_0x27923a)return-0x1;if(null===_0x2c4873)return 0x1;const _0x2bf34a=_0x27923a['top']-_0x2c4873['top'];return 0x0==_0x2bf34a?_0x27923a['left']-_0x2c4873['left']:_0x2bf34a;}class y extends _0x14ca66{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1cc84d){if(super(_0x1cc84d),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1cc84d instanceof _0x51c211){const _0x447884=_0x1cc84d['locale'];_0x1cc84d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x447884,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x447884,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x447884,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x447884,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x447884,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x447884,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x447884,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x489033){this['collection']['add'](_0x489033);}['remove'](_0x50af96){this['collection']['remove'](_0x50af96),_0x50af96['destroy']();}['refreshVisibility'](){for(const _0x417d04 of this['collection'])_0x417d04['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x552647){return this['collection']['getByInnerView'](_0x552647);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3fb183 of this['collection'])_0x3fb183['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x43b452){this['fire']('_activateAnnotation',_0x43b452);}['createAnnotation'](_0x26e40e){return new T(_0x26e40e);}['createAnnotationView'](_0x97cb3,_0x207718){return new E(_0x97cb3,_0x207718);}['_addActiveAnnotation'](_0x4cdbe7){const _0x10b326=new Set(this['activeAnnotations']);_0x10b326['add'](_0x4cdbe7),this['activeAnnotations']=_0x10b326;}['_removeActiveAnnotation'](_0x1c8285){const _0xafd0ad=new Set(this['activeAnnotations']);_0xafd0ad['delete'](_0x1c8285),this['activeAnnotations']=_0xafd0ad;}['_bindAnnotationsToVisibleAnnotations'](){const _0x317b2f=this['collection'],_0x1c724f=this['_visibleAnnotations'];function _0x2fcbd1(_0x3d5200){const _0x27d2ea=_0x3d5200['source'];_0x27d2ea['isVisible']&&!_0x1c724f['has'](_0x27d2ea)?_0x1c724f['add'](_0x27d2ea):!_0x27d2ea['isVisible']&&_0x1c724f['has'](_0x27d2ea)&&_0x1c724f['remove'](_0x27d2ea),_0x27d2ea['view']['focusTracker']['remove'](_0x27d2ea['view']['element']),_0x27d2ea['view']['focusTracker']['add'](_0x27d2ea['view']['element']);}this['listenTo'](_0x317b2f,'add',(_0x740001,_0x4c3640)=>{_0x4c3640['isVisible']&&_0x1c724f['add'](_0x4c3640),this['listenTo'](_0x4c3640,'change:isVisible',_0x2fcbd1);}),this['listenTo'](_0x317b2f,'remove',(_0x4176cf,_0x40928c)=>{_0x1c724f['has'](_0x40928c)&&_0x1c724f['remove'](_0x40928c),this['stopListening'](_0x40928c,'change:isVisible',_0x2fcbd1);});}['_setupEnterAnnotationKeystroke'](){const _0x3fb86c=_0x5cfe01=>{_0x5cfe01['on']('ready',()=>{_0x5cfe01['keystrokes']['set'](_0x284aa9,(_0x22fc7f,_0x9cc065)=>{const _0x58f5f6=_0x53038a(this['activeAnnotations']['values']());_0x58f5f6&&(_0x58f5f6['view']['focus'](),_0x9cc065());});});};this['context']instanceof _0x51c211?_0x3fb86c(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x44e277,_0x113f28)=>{_0x3fb86c(_0x113f28);});}['_setupEscapeAnnotationHandling'](){const _0x55ebc8=_0x4f5d5b=>{const _0x3d2075=_0x4f5d5b['source'],_0x5deb57=[];let _0x8176d2;if(Array['isArray'](_0x3d2075['target'])){_0x8176d2=_0x3d2075['target'][0x0],this['context']instanceof _0x51c211?_0x5deb57['push'](this['context']):this['context']['editors']&&_0x5deb57['push'](...this['context']['editors']);for(const _0x2b66f1 of _0x5deb57)for(const _0x40ff2f of _0x2b66f1['editing']['view']['domRoots']['values']())if(_0x40ff2f['contains'](_0x8176d2))return void _0x2b66f1['editing']['view']['focus']();_0x8176d2['focus']();}};this['listenTo'](this['collection'],'add',(_0x16a276,_0x1d8998)=>{this['listenTo'](_0x1d8998,'escape',_0x55ebc8,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x494b29,_0x5d73a0)=>{this['stopListening'](_0x5d73a0,'escape',_0x55ebc8);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x14ca66{['_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(_0x5721f9){super(_0x5721f9),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0xdb39bd=this['context']['config'];_0xdb39bd['define']('comments.maxCommentsWhenCollapsed',0x2),_0xdb39bd['define']('comments.maxThreadTotalWeight',0x1f4),_0xdb39bd['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0xdb39bd['define']('comments.CommentThreadView',gt),_0xdb39bd['define']('comments.CommentView',Tt),_0xdb39bd['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0xe2d223=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x48110e,_0x1f4489)=>this['_addCommentThread'](_0x1f4489)),this['on']('submitCommentThread',(_0x329202,_0x517259)=>this['_submitCommentThread'](_0x517259)),this['on']('resolveCommentThread',(_0x32a24a,_0x23f862)=>this['_resolveCommentThread'](_0x23f862)),this['on']('resolveCommentThread',(_0x4ef343,_0x52e235)=>this['_updateActiveAnnotation'](_0x52e235),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x1b008f,_0x2cadc4)=>this['_reopenCommentThread'](_0x2cadc4)),this['on']('reopenCommentThread',(_0x5e8e5f,_0x3dd6f3)=>this['_updateActiveAnnotation'](_0x3dd6f3),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x268ff8,_0x20e275)=>this['_removeCommentThread'](_0x20e275)),this['on']('updateCommentThread',(_0x34c517,_0x3b021e)=>this['_updateCommentThread'](_0x3b021e)),this['on']('updateCommentThread',(_0x461eec,_0x278c7a)=>this['_updateActiveAnnotation'](_0x278c7a),{'priority':'lowest'}),this['on']('addComment',(_0x60171,_0x3344d9)=>this['_addComment'](_0x3344d9)),this['on']('updateComment',(_0x18acc9,_0x17faab)=>this['_updateComment'](_0x17faab)),this['on']('removeComment',(_0x323dba,_0x3388ac)=>this['_removeComment'](_0x3388ac)),this['on']('addComment',(_0x569ffa,{threadId:_0x8f3282,isFromAdapter:_0x160b01})=>{if(_0x160b01)return;const _0x50fdd4=this['getCommentThread'](_0x8f3282),_0x3c649c=_0x50fdd4&&this['_threadToController']['get'](_0x50fdd4);_0x3c649c&&_0x3c649c['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0xe2d223,'change:activeAnnotations',(_0x225b74,_0x368430,_0x5bf714)=>{const _0x40adec=Array['from'](_0x5bf714)['map'](_0x3ec657=>this['_viewToController']['get'](_0x3ec657['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x40adec?_0x40adec['model']:null;});}set['adapter'](_0x4e513e){if(this['_adapter'])throw new _0x539fa6('commentsrepository-adapter-already-set');this['_adapter']=_0x4e513e;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x41705c=_t,threadId:_0x4a0bee=_0x5357ba(),comments:_0x4b6d91=[],unlinkedAt:_0x300d37=null,resolvedAt:_0x523b1b=null,resolvedBy:_0x4a26b1=null,target:_0x3d43ed=null,context:_0x101cd1=null,attributes:_0x591d4c={},isResolvable:_0x151fa6=!0x0,isSubmitted:_0x21e108=!0x1,isFromAdapter:_0x27b8a8=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x41705c),{'channelId':_0x41705c,'threadId':_0x4a0bee,'comments':_0x4b6d91,'unlinkedAt':_0x300d37,'resolvedAt':_0x523b1b,'resolvedBy':_0x4a26b1,'target':_0x3d43ed,'context':_0x101cd1,'attributes':_0x591d4c,'isFromAdapter':_0x27b8a8,'isResolvable':_0x151fa6,'isSubmitted':_0x21e108}),this['getCommentThread'](_0x4a0bee);}['openNewCommentThread']({channelId:_0x5708e8=_t,threadId:_0x2e3efc=_0x5357ba(),target:_0x9fac1,context:_0x4dbfdf=null,isResolvable:_0x38d708=!0x0}){if(this['_readOnlyChannels']['has'](_0x5708e8)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x9fac1)throw new _0x539fa6('commentsrepository-missing-target');const _0x12a9ba=this['addCommentThread']({'channelId':_0x5708e8,'threadId':_0x2e3efc,'target':_0x9fac1,'context':_0x4dbfdf,'isResolvable':_0x38d708});if(!_0x12a9ba)return null;const _0x5a4fba=this['_threadToController']['get'](_0x12a9ba),_0x484aff=_0x5a4fba['view']['commentThreadInputView']['commentInputView'],_0x8a9c49=this['context']['plugins']['get'](y),_0xf91b94=_0x8a9c49['getByInnerView'](_0x5a4fba['view']);return _0x8a9c49['activate'](_0xf91b94),_0x484aff['once']('editorReady',()=>_0x484aff['focus']()),_0x12a9ba;}['hasCommentThread'](_0x2022cc){if('string'!=typeof _0x2022cc)throw new _0x539fa6('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2022cc);}['updateCommentThread']({channelId:_0x3165b8=_t,threadId:_0x39709b,context:_0x28d79d,unlinkedAt:_0x1958fc,attributes:_0x50c23b,isFromAdapter:_0x308961=!0x1}){return this['fire'](Nt('updateCommentThread',_0x3165b8),{'channelId':_0x3165b8,'threadId':_0x39709b,'context':_0x28d79d,'unlinkedAt':_0x1958fc,'attributes':_0x50c23b,'isFromAdapter':_0x308961}),this['getCommentThread'](_0x39709b);}['getCommentThread'](_0x1a4ef7){if('string'!=typeof _0x1a4ef7)throw new _0x539fa6('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x1a4ef7);}['fetchCommentThread']({channelId:_0x1ab3b7,threadId:_0x29c50c}={}){const _0x395765=this['getCommentThread'](_0x29c50c);if(_0x395765)return Promise['resolve'](_0x395765);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x539fa6('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x1ab3b7,'threadId':_0x29c50c})['then'](_0x401d86=>this['hasCommentThread'](_0x29c50c)?this['getCommentThread'](_0x29c50c):_0x401d86?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x1ab3b7},_0x401d86)):void 0x0)['catch'](_0x1362aa=>{throw console['error'](_0x1362aa),new _0x539fa6('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1d8566,skipNotAttached:_0x465a16=!0x1,skipEmpty:_0x40764b=!0x1,toJSON:_0x472746=!0x1}={}){const _0x44db0e=[];for(const _0x17716b of this['_threads']['values']())_0x1d8566&&_0x17716b['channelId']!==_0x1d8566||_0x465a16&&!_0x17716b['isAttached']||_0x40764b&&0x0===_0x17716b['length']||_0x44db0e['push'](_0x17716b);return _0x472746?_0x44db0e['map'](_0x534dfc=>_0x534dfc['toJSON']()):_0x44db0e;}['getAnnotationForCommentThread'](_0x42cbc6){const _0x24501a=this['_threadToController']['get'](_0x42cbc6);if(!_0x24501a)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x24501a['view'])||null;}['getCommentThreadForAnnotation'](_0x3977dc){const _0x2d3c16=this['_viewToController']['get'](_0x3977dc['innerView']);return _0x2d3c16?_0x2d3c16['model']:null;}['setActiveCommentThread'](_0x54381c){const _0x257c23=this['context']['plugins']['get'](y);if(!_0x54381c)return void(this['activeCommentThread']&&_0x257c23['deactivateAll']());const _0x4c7121=this['getCommentThread'](_0x54381c);if(!_0x4c7121)throw new _0x539fa6('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x54381c});if(!this['_threadToController']['has'](_0x4c7121))throw new _0x539fa6('commentsrepository-active-not-attached',null,{'threadId':_0x54381c});const _0x29f23f=_0x257c23['getByInnerView'](this['_threadToController']['get'](_0x4c7121)['view']);_0x257c23['activate'](_0x29f23f);}['switchReadOnly'](_0x55ab0c,_0x11d0d5){_0x55ab0c?this['_readOnlyChannels']['add'](_0x11d0d5):this['_readOnlyChannels']['delete'](_0x11d0d5),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x430b91){return this['_readOnlyChannels']['has'](_0x430b91)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x21f7c0,_0x545c2c){return new vt(_0x21f7c0,_0x545c2c);}['setPermissions'](_0x17f619,_0x457ac7=_t){this['_permissions']['set'](_0x457ac7,_0x17f619),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x5b2b7b=_t){return this['_permissions']['has'](_0x5b2b7b)?this['_permissions']['get'](_0x5b2b7b):bt;}['_addCommentThread']({channelId:_0x384a72,threadId:_0x591661,comments:_0x458517,unlinkedAt:_0x4de75f,resolvedAt:_0x456edf,resolvedBy:_0x256da6,target:_0x1a12c7,context:_0xbc427a,attributes:_0x364cf4,isFromAdapter:_0x4299f0,isResolvable:_0x5286b1,isSubmitted:_0x56f24d}){if('string'!=typeof _0x591661)throw new _0x539fa6('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x591661});if(this['hasCommentThread'](_0x591661))throw new _0x539fa6('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x591661});const _0x40c434=new pi(this,{'channelId':_0x384a72,'id':_0x591661,'context':_0xbc427a,'attributes':_0x364cf4,'unlinkedAt':_0x4de75f,'resolvedAt':_0x456edf,'resolvedBy':_0x256da6?this['context']['plugins']['get'](it)['getUser'](_0x256da6):null,'isResolvable':_0x5286b1,'isSubmitted':_0x56f24d||_0x4299f0});this['_threads']['set'](_0x591661,_0x40c434);for(const _0x3d7b0d of _0x458517)_0x40c434['_add'](this['_createNewComment']({'threadId':_0x591661,..._0x3d7b0d}));return _0x1a12c7&&_0x40c434['attachTo'](_0x1a12c7),_0x4299f0||!_0x40c434['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x384a72,'threadId':_0x591661});}['_submitCommentThread']({channelId:_0x5f5aee,threadId:_0x4827da}){if(!this['hasCommentThread'](_0x4827da))throw new _0x539fa6('commentsrepository-missing-comment-thread',this);const _0x4eecd7=this['getCommentThread'](_0x4827da);if(_0x4eecd7['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x2bb8f1,comments:_0x17a2c7,resolvedAt:_0x5b5070,resolvedBy:_0x140be3,context:_0x1354cd,attributes:_0x7e8a98}=_0x4eecd7,_0x2a062a=this['context']['plugins']['get']('PendingActions'),_0x37a422=_0x2a062a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x5f5aee,'threadId':_0x2bb8f1,'comments':_0x17a2c7['map'](_0xff10cb=>_0xff10cb['toJSON']()),'resolvedAt':_0x5b5070,'resolvedBy':_0x140be3?_0x140be3['id']:_0x140be3,'context':_0x1354cd,'attributes':_0x7e8a98})['then'](({comments:_0x120a2d})=>{_0x2a062a['remove'](_0x37a422);for(const _0x3939e3 of _0x120a2d)this['_updateComment']({'channelId':_0x5f5aee,'threadId':_0x4827da,'commentId':_0x3939e3['commentId'],'createdAt':_0x3939e3['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4b4796=>{throw console['error'](_0x4b4796),new _0x539fa6('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x3a6335,target:_0x1b40db}){const _0x1222f1=this['getCommentThread'](_0x3a6335);if(!_0x1222f1)throw new _0x539fa6('commentsrepository-attach-missing-comment-thread',this);const _0x381d74=this['context']['plugins']['get']('PendingActions'),_0x46c803=this['context']['plugins']['get'](y),_0x29dc0=this['_createCommentThreadView'](_0x1222f1),_0x4a38a5=new vt(_0x1222f1,_0x29dc0);let _0xfa29a4=null;_0x29dc0['on']('change:isDirty',(_0x75997a,_0x1ed1a1,_0x353d23)=>{_0x353d23?_0xfa29a4=_0x381d74['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0xfa29a4&&(_0x381d74['remove'](_0xfa29a4),_0xfa29a4=null);}),this['_threadToController']['set'](_0x1222f1,_0x4a38a5),this['_viewToController']['set'](_0x29dc0,_0x4a38a5);const _0x4ca48b=new E(this['context']['locale'],_0x29dc0);_0x4ca48b['bind']('length')['to'](_0x29dc0),_0x4ca48b['bind']('isDirty')['to'](_0x29dc0,'isDirty',_0x29dc0,'length',(_0x2115f3,_0x1b636f)=>_0x2115f3||!_0x1b636f),_0x4ca48b['bind']('isActive')['to'](_0x29dc0),_0x4ca48b['type']='comment';const _0x9925f3=new T({'view':_0x4ca48b,'target':_0x1b40db,'type':'comment','isVisible':!_0x1222f1['archivedAt']&&!!('function'==typeof _0x1b40db?_0x1b40db():_0x1b40db)});return _0x29dc0['on']('escape',()=>{_0x9925f3['fire']('escape');}),this['_bindAnnotationToEditors'](_0x29dc0,_0x9925f3),_0x46c803['add'](_0x9925f3),_0x9925f3;}['_bindAnnotationToEditors'](_0x51cdb8,_0x473b71){this['listenTo'](_0x51cdb8,'editorReady',(_0x1f0bf6,_0x2b9327)=>{const _0x45e86f=_0x2b9327['ui']['view']['body']['bodyCollectionContainer'];_0x473b71['focusableElements']['add'](_0x45e86f),this['context']instanceof _0x51c211&&this['context']['ui']['focusTracker']['add'](_0x45e86f);},{'priority':'highest'}),this['listenTo'](_0x51cdb8,'editorDestroyed',(_0x4ccee8,_0x2ef15d)=>{const _0x34cf5b=_0x2ef15d['ui']['view']['body']['bodyCollectionContainer'];_0x473b71['focusableElements']['has'](_0x34cf5b)&&_0x473b71['focusableElements']['remove'](_0x34cf5b),this['context']instanceof _0x51c211&&this['context']['ui']['focusTracker']['remove'](_0x34cf5b);});}['_unbindEditors'](_0x52bde0){this['stopListening'](_0x52bde0,'editorReady'),this['stopListening'](_0x52bde0,'editorDestroyed');}['_createCommentThreadView'](_0x588e5b){const _0x5248dc=this['context']['plugins']['get'](it),{config:_0x8d4067,locale:_0x319227}=this['context'],_0x2577ef=pt(_0x8d4067['get']('locale'),_0x319227);return new(0x0,(_0x8d4067['get']('comments'))['CommentThreadView'])(_0x319227,_0x588e5b,_0x5248dc['me'],{'editorConfig':{..._0x8d4067['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x8d4067['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x8d4067['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x8d4067['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x8d4067['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2577ef,'CommentView':_0x8d4067['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x26c206,channelId:_0xd4b0c0,resolvedAt:_0xd1061c,resolvedBy:_0x5eb2f5,isFromAdapter:_0x284f06}){if(!this['hasCommentThread'](_0x26c206))throw new _0x539fa6('commentsrepository-missing-comment-thread',null,{'threadId':_0x26c206});const _0xd103fd=this['getCommentThread'](_0x26c206);if(_0xd103fd['isResolved'])throw new _0x539fa6('commentsrepository-resolved-comment-thread',null,{'threadId':_0x26c206});const _0x388371=this['context']['plugins']['get'](it);if(_0xd103fd['resolvedBy']=_0x388371['getUser'](_0x5eb2f5),_0xd103fd['resolvedAt']=_0xd1061c,_0x284f06||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x436dab=this['context']['plugins']['get']('PendingActions'),_0x4aec1f=_0x436dab['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0xd4b0c0,'threadId':_0x26c206})['then'](({resolvedAt:_0x1bec6b,resolvedBy:_0x2ef4f7})=>{_0x436dab['remove'](_0x4aec1f),_0xd103fd['resolvedBy']['id']!==_0x2ef4f7&&(_0xd103fd['resolvedBy']=_0x388371['getUser'](_0x2ef4f7)),_0xd103fd['resolvedAt']=_0x1bec6b;})['catch'](_0x3fe273=>{throw console['error'](_0x3fe273),new _0x539fa6('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x5c72cc,channelId:_0x11a965,isFromAdapter:_0x48b0c7}){if(!this['hasCommentThread'](_0x5c72cc))throw new _0x539fa6('commentsrepository-missing-comment-thread',null,{'threadId':_0x5c72cc});const _0xed7462=this['getCommentThread'](_0x5c72cc);if(!_0xed7462['isResolved'])throw new _0x539fa6('commentsrepository-reopen-comment-thread',null,{'threadId':_0x5c72cc});if(_0xed7462['resolvedBy']=null,_0xed7462['resolvedAt']=null,_0x48b0c7||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5912fb=this['context']['plugins']['get']('PendingActions'),_0x15bced=_0x5912fb['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x11a965,'threadId':_0x5c72cc})['then'](()=>_0x5912fb['remove'](_0x15bced))['catch'](_0x2675a2=>{throw console['error'](_0x2675a2),new _0x539fa6('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x4857a1,isFromAdapter:_0x41d875}){const _0x379320=this['getCommentThread'](_0x4857a1);if(!_0x379320)throw new _0x539fa6('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x4857a1),this['_threads']['delete'](_0x4857a1),!_0x379320['isSubmitted']||_0x41d875||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x103ca6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5b0165}=_0x379320,_0x25c3a6=_0x103ca6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x5b0165,'threadId':_0x4857a1})['then'](()=>_0x103ca6['remove'](_0x25c3a6))['catch'](_0x162748=>{throw console['error'](_0x162748),new _0x539fa6('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1cc999,unlinkedAt:_0x508091,context:_0x425aea,attributes:_0x474472,isFromAdapter:_0x287040}){if('string'!=typeof _0x1cc999)throw new _0x539fa6('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1cc999});if(!this['hasCommentThread'](_0x1cc999))throw new _0x539fa6('commentsrepository-missing-comment-thread',null,{'threadId':_0x1cc999});const _0x378bb8=this['getCommentThread'](_0x1cc999);let _0x491db0=!0x1;if(void 0x0!==_0x425aea&&_0x378bb8['context']!==_0x425aea&&(_0x378bb8['context']=_0x425aea,_0x491db0=!0x0),void 0x0!==_0x508091&&_0x378bb8['unlinkedAt']!==_0x508091&&(_0x378bb8['unlinkedAt']=_0x508091,_0x491db0=!0x0),_0x474472&&!At(_0x474472,_0x378bb8['attributes'])&&(_0x378bb8['attributes']=_0x474472,_0x491db0=!0x0),!_0x491db0)return Promise['resolve']();if(!_0x378bb8['isSubmitted']||_0x287040||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x296c8a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x521180}=_0x378bb8,_0x27c7e8=_0x296c8a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x521180,'threadId':_0x1cc999,'context':_0x425aea,'unlinkedAt':_0x508091,'attributes':_0x474472})['then'](()=>_0x296c8a['remove'](_0x27c7e8))['catch'](_0x325397=>{throw console['error'](_0x325397),new _0x539fa6('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x117399){const _0x3d3379=this['context']['plugins']['get'](y),_0x8accbf=this['getCommentThread'](_0x117399);if(_0x8accbf['_isAttached']=!0x1,this['_threadToController']['has'](_0x8accbf)){const _0x4854e8=this['_threadToController']['get'](_0x8accbf),_0x34e7e6=_0x4854e8['view'],_0x73cce1=_0x3d3379['getByInnerView'](_0x34e7e6);this['_threadToController']['delete'](_0x8accbf),this['_viewToController']['delete'](_0x34e7e6),_0x73cce1&&_0x3d3379['remove'](_0x73cce1),_0x4854e8['destroy'](),_0x34e7e6['destroy']()['then'](()=>{this['_unbindEditors'](_0x34e7e6);});}}['_updateActiveAnnotation']({threadId:_0x339c77,resolvedAt:_0x5a5c1a,unlinkedAt:_0x39d637}){const _0x39740f=!!_0x5a5c1a,_0x8facbd=this['context']['plugins']['get'](y),_0x686ba8=this['getCommentThread'](_0x339c77);if(this['_threadToController']['has'](_0x686ba8)){const _0x56ea38=this['_threadToController']['get'](_0x686ba8)['view'],_0x5b6ddb=_0x8facbd['getByInnerView'](_0x56ea38);_0x5b6ddb&&(_0x39740f&&_0x8facbd['_removeActiveAnnotation'](_0x5b6ddb),_0x39d637?_0x5b6ddb['isVisible']=!0x1:_0x5b6ddb['refreshVisibility']());}}['_getExternalAuthor'](_0x5ef8bc){const _0xcb1e1c=this['context']['plugins']['get'](it),_0x202ff5=It('external:'+_0x5ef8bc),_0x52dc86=_0xcb1e1c['getUser'](_0x202ff5);return _0x52dc86||_0xcb1e1c['addUser']({'id':_0x202ff5,'name':_0x5ef8bc});}['_createNewComment']({threadId:_0x14356c,commentId:_0x48d37c=_0x5357ba(),content:_0x3029b5,authorId:_0x35ede6,createdAt:_0xbd2975,attributes:_0xbfc32}){if('string'!=typeof _0x48d37c)throw new _0x539fa6('commentsrepository-invalid-commentid');if('string'!=typeof _0x35ede6)throw new _0x539fa6('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x3029b5||!_0x3029b5['trim']())throw new _0x539fa6('commentsrepository-invalid-comment-content');const _0x13de64=this['context']['plugins']['get'](it)['getUser'](_0x35ede6);if(!_0x13de64)throw new _0x539fa6('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x35ede6});let _0x470eed=null,_0x207d38=_0xbd2975;return _0xbfc32?.['@external']&&(_0x470eed=this['_getExternalAuthor'](_0xbfc32['@external']['authorName']),_0x207d38=new Date(_0xbfc32['@external']['createdAt'])),new wi(this,{'threadId':_0x14356c,'id':_0x48d37c,'author':_0x470eed||_0x13de64,'creator':_0x13de64,'content':_0x3029b5,'createdAt':_0xbd2975,'authoredAt':_0x207d38,'attributes':_0xbfc32});}['_addComment'](_0x20a3f8){let {threadId:_0x537341,content:_0x5ec017,attributes:_0x2964dc,isFromAdapter:_0x58a7b0}=_0x20a3f8;const _0x4f148c=this['getCommentThread'](_0x20a3f8['threadId']);if(!_0x4f148c)throw new _0x539fa6('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x54f41f=this['_createNewComment'](_0x20a3f8),{id:_0x5e7f16}=_0x54f41f;if(_0x4f148c['_add'](_0x54f41f),_0x58a7b0||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x4f148c['isSubmitted'])return Promise['resolve']();const _0x3f6278=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5835b}=_0x4f148c,_0x467d3a=_0x3f6278['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x2964dc||(_0x2964dc={}),this['adapter']['addComment']({'channelId':_0x5835b,'threadId':_0x537341,'commentId':_0x5e7f16,'content':_0x5ec017,'attributes':_0x2964dc})['then'](_0x3da51d=>{_0x3f6278['remove'](_0x467d3a),_0x3da51d&&this['_updateComment']({'channelId':_0x5835b,'threadId':_0x537341,'commentId':_0x5e7f16,'createdAt':_0x3da51d['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xcf0c25=>{throw console['error'](_0xcf0c25),new _0x539fa6('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x5566a0,commentId:_0x25c68f,content:_0x396f8d,createdAt:_0x40f29c,attributes:_0x2e1018,isFromAdapter:_0x2ce2e5}){if(void 0x0!==_0x396f8d&&('string'!=typeof _0x396f8d||!_0x396f8d['trim']()['length']))throw new _0x539fa6('commentsrepository-update-comment-invalid-content');const _0x5e6da8=this['getCommentThread'](_0x5566a0),_0x3c0e2c=_0x5e6da8['getComment'](_0x25c68f);if(!_0x3c0e2c)throw new _0x539fa6('commentsrepository-update-missing-comment',this);let _0xe95d2e=!0x1;if(_0x396f8d&&_0x396f8d!==_0x3c0e2c['content']&&(_0x3c0e2c['isEditable']||_0x2ce2e5)&&(_0x3c0e2c['content']=_0x396f8d,_0xe95d2e=!0x0),_0x40f29c&&_0x40f29c!==_0x3c0e2c['createdAt']&&(_0x3c0e2c['createdAt']=_0x40f29c,_0x3c0e2c['attributes']&&_0x3c0e2c['attributes']['@external']||(_0x3c0e2c['authoredAt']=_0x40f29c),_0xe95d2e=!0x0),_0x2e1018&&!At(_0x2e1018,_0x3c0e2c['attributes'])&&(_0x3c0e2c['attributes']=_0x2e1018,_0xe95d2e=!0x0),!_0xe95d2e)return Promise['resolve']();if(_0x5e6da8['fire']('commentUpdated'),_0x2ce2e5||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x32c761=this['context']['plugins']['get']('PendingActions'),{channelId:_0x592bcd}=this['getCommentThread'](_0x3c0e2c['threadId']),_0x880629=_0x32c761['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x592bcd,'threadId':_0x5566a0,'commentId':_0x25c68f,'content':_0x396f8d,'attributes':_0x2e1018})['then'](()=>_0x32c761['remove'](_0x880629))['catch'](_0x268ce6=>{throw console['error'](_0x268ce6),new _0x539fa6('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x31d30f,commentId:_0xdc41fb,isFromAdapter:_0x1cb75e}){const _0x1a2472=this['getCommentThread'](_0x31d30f),_0x102df8=_0x1a2472['getComment'](_0xdc41fb);if(!_0x102df8)throw new _0x539fa6('commentsrepository-remove-missing-comment',this);if(_0x1a2472['_remove'](_0x102df8),_0x1cb75e||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x3bcedf=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1d860a}=_0x1a2472,_0x4003d5=_0x3bcedf['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x1d860a,'threadId':_0x31d30f,'commentId':_0xdc41fb})['then'](()=>_0x3bcedf['remove'](_0x4003d5))['catch'](_0x5dce68=>{throw console['error'](_0x5dce68),new _0x539fa6('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x1abc3e(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x2b57c0,_0x173866){super();const _0x1c30ee=_0x173866['isResolvable'];this['channelId']=_0x173866['channelId'],this['id']=_0x173866['id'],this['comments']=new _0x1fc4b1(),this['_repository']=_0x2b57c0,this['_isAttached']=!0x1,this['_isSubmitted']=_0x173866['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x2b57c0,'_permissions',_0x2b57c0,'_readOnlyChannels',()=>_0x2b57c0['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x2b57c0,'_permissions',()=>_0x2b57c0['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x2b57c0,'_permissions',()=>{const _0x4914be=_0x2b57c0['getPermissions'](this['channelId']);return _0x4914be['write']||_0x4914be['admin'];}),this['bind']('isResolvable')['to'](_0x2b57c0,'_permissions',()=>_0x1c30ee&&_0x2b57c0['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x173866['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x282f0c,_0x2635e5)=>_0x282f0c?_0x2635e5?_0x282f0c<_0x2635e5?_0x282f0c:_0x2635e5:_0x282f0c:_0x2635e5),this['set']('unlinkedAt',_0x173866['unlinkedAt']||null),this['set']('resolvedAt',_0x173866['resolvedAt']||null),this['set']('resolvedBy',_0x173866['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x48b0be=>!!_0x48b0be),this['set']('attributes',_0x173866['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x4ff620,_0x5e4cbc)=>_0x4ff620+_0x5e4cbc['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x55e83e,id:_0x4b7fa3}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x55e83e),{'channelId':_0x55e83e,'threadId':_0x4b7fa3});}['setUnlinkedAt'](_0x35c86b){this['_update']({'unlinkedAt':_0x35c86b});}['resolve']({resolvedAt:_0x492e86=new Date(),resolvedBy:_0x380f06='',isFromAdapter:_0x41a5ae=!0x1}={}){const _0x5268cf=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x26c871,id:_0x2d2bd4}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x26c871),{'channelId':_0x26c871,'threadId':_0x2d2bd4,'resolvedAt':_0x492e86,'resolvedBy':_0x380f06||_0x5268cf['id'],'isFromAdapter':_0x41a5ae});}['reopen']({isFromAdapter:_0x1820ca=!0x1}={}){const {channelId:_0x1442c5,id:_0x4df3f3}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x1442c5),{'channelId':_0x1442c5,'threadId':_0x4df3f3,'isFromAdapter':_0x1820ca});}['setContext'](_0x520bc8){this['context']||this['_update']({'context':_0x520bc8});}['setAttribute'](_0x478bd6,_0x832b94){const _0x56e2c2=wt(this['attributes']);yt(_0x56e2c2,_0x478bd6,_0x832b94),this['_update']({'attributes':_0x56e2c2});}['removeAttribute'](_0x294bd5){const _0x56c625=wt(this['attributes']);Ct(_0x56c625,_0x294bd5),this['_update']({'attributes':_0x56c625});}['remove']({isFromAdapter:_0x48e555=!0x1}={}){const {channelId:_0x2c42c9,id:_0x93980}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x2c42c9),{'channelId':_0x2c42c9,'threadId':_0x93980,'isFromAdapter':_0x48e555});}['attachTo'](_0x1c045c){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1c045c});}['addComment'](_0x27f7f2){const {channelId:_0x1cb10c,id:_0x5f00d7}=this;this['_repository']['fire'](Nt('addComment',_0x1cb10c,_0x5f00d7),Object['assign']({'channelId':_0x1cb10c,'threadId':_0x5f00d7},_0x27f7f2));}['getComment'](_0x503e90){if('string'!=typeof _0x503e90)throw new _0x539fa6('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x503e90});return this['comments']['get'](_0x503e90);}['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'](_0x5c83a8=>_0x5c83a8['toJSON']()),'attributes':this['attributes']};}['_add'](_0x590184){return this['listenTo'](_0x590184,'change:authoredAt',()=>{const _0x5d7085=this['_findOptimalIndex'](_0x590184),_0x32a641=this['comments'];_0x5d7085-0x1!=_0x32a641['getIndex'](_0x590184)&&_0x5d7085+0x1!=_0x32a641['getIndex'](_0x590184)&&(this['_remove'](_0x590184),this['_add'](_0x590184));}),this['comments']['add'](_0x590184,this['_findOptimalIndex'](_0x590184));}['_update'](_0x3f71f1){const {channelId:_0xbf564e,id:_0x3b0738}=this;this['_repository']['fire'](Nt('updateCommentThread',_0xbf564e),{..._0x3f71f1,'channelId':_0xbf564e,'threadId':_0x3b0738});}['_remove'](_0xaa0fca){return this['stopListening'](_0xaa0fca),_0xaa0fca['destroy'](),this['comments']['remove'](_0xaa0fca);}['_findOptimalIndex'](_0x183387){const _0x169053=this['comments']['find'](_0x5c9e3e=>new Date(_0x5c9e3e['authoredAt'])['getTime']()>new Date(_0x183387['authoredAt'])['getTime']());return _0x169053?this['comments']['getIndex'](_0x169053):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x1abc3e(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x460cd2,_0x496e00){super();const _0x9014e1=_0x460cd2['context']['plugins']['get'](it)['me'],_0x1d0c19=_0x460cd2['getCommentThread'](_0x496e00['threadId']),_0x11e830=0x0===_0x1d0c19['comments']['length'],_0x1441b8=_0x9014e1===_0x496e00['author'];this['id']=_0x496e00['id'],this['threadId']=_0x496e00['threadId'],this['author']=_0x496e00['author'],this['creator']=_0x496e00['creator'],this['isExternal']=Boolean(_0x496e00['attributes']&&_0x496e00['attributes']['@external']),this['set']('content',_0x496e00['content']),this['createdAt']=_0x496e00['createdAt']||new Date(),this['set']('authoredAt',_0x496e00['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x1d0c19,'resolvedAt'),this['set']('attributes',_0x496e00['attributes']||{}),this['bind']('isEditable')['to'](_0x460cd2,'_permissions',()=>{const _0x102674=_0x460cd2['getPermissions'](_0x1d0c19['channelId'])['write'],_0x4158ca=_0x460cd2['getPermissions'](_0x1d0c19['channelId'])['modifyAll'];return _0x1441b8&&_0x102674||!_0x1441b8&&_0x4158ca;}),this['bind']('isRemovable')['to'](_0x1d0c19,'isRemovable',_0x460cd2,'_permissions',_0x8868a8=>{const _0x35a3f5=_0x460cd2['getPermissions'](_0x1d0c19['channelId'])['write'],_0x23e148=_0x460cd2['getPermissions'](_0x1d0c19['channelId'])['modifyAll'];return _0x1441b8&&_0x35a3f5||_0x8868a8&&_0x11e830||!_0x1441b8&&_0x23e148&&!_0x11e830;}),this['bind']('isReadOnly')['to'](_0x1d0c19,'isReadOnly'),this['_repository']=_0x460cd2;}get['weight'](){return Math['max'](function(_0x20f77b){const _0x243f42=document['createElement']('div');return _0x243f42['innerHTML']=_0x20f77b,_0x243f42['textContent']['length'];}(this['content']),0xc8);}['update'](_0x4c80d5){const {threadId:_0x5535a2,id:_0x69d85c}=this;if(!this['_repository']['hasCommentThread'](_0x5535a2))throw new _0x539fa6('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x146c03}=this['_repository']['getCommentThread'](_0x5535a2);this['_repository']['fire'](Nt('updateComment',_0x146c03,_0x5535a2),{'channelId':_0x146c03,'threadId':_0x5535a2,'commentId':_0x69d85c,..._0x4c80d5});}['setAttribute'](_0x17e7c3,_0x45f67c){const _0x26a579=wt(this['attributes']);yt(_0x26a579,_0x17e7c3,_0x45f67c),this['update']({'attributes':_0x26a579});}['removeAttribute'](_0x3e57a6){const _0x5b9e67=wt(this['attributes']);Ct(_0x5b9e67,_0x3e57a6),this['update']({'attributes':_0x5b9e67});}['remove'](_0x429f39={}){if(!_0x429f39['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x3ca07c,id:_0x37a8a5}=this;if(!this['_repository']['hasCommentThread'](_0x3ca07c))throw new _0x539fa6('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x53c12a}=this['_repository']['getCommentThread'](_0x3ca07c);this['_repository']['fire'](Nt('removeComment',_0x53c12a,_0x3ca07c),{'channelId':_0x53c12a,'threadId':_0x3ca07c,'commentId':_0x37a8a5,..._0x429f39});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x5b3c05,..._0x11655f){for(const _0x47cdfc of _0x11655f)void 0x0!==_0x47cdfc&&(_0x5b3c05+=':'+String(_0x47cdfc));return _0x5b3c05;}class ot extends _0x490448{constructor(_0x10466b){super(_0x10466b),this['set']('hasContent',!0x1);}['refresh'](){const _0x2c5b9a=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0xf842b5 of _0x2c5b9a['getRanges']())if(this['_hasContent'](_0xf842b5))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x38e715=_0x5357ba(),ranges:_0x556a4b,comment:_0x126ef8}={}){const _0x3a7986=this['editor']['model'],_0x3115d6=_0x556a4b??Array['from'](_0x3a7986['document']['selection']['getRanges']()),_0x364949=[];for(const _0x4ee801 of _0x3115d6)this['_hasContent'](_0x4ee801)&&_0x364949['push'](this['_trimToContent'](_0x4ee801));if(!_0x364949['length'])throw new _0x539fa6('addcommentthreadcommand-incorrect-ranges',null);_0x126ef8&&this['_createCommentThread'](_0x38e715,_0x126ef8),this['_createMarkersFromRanges'](_0x38e715,_0x364949,!!_0x126ef8);}['_createMarkersFromRanges'](_0x53baba,_0x3b6cc5,_0x1e864f){this['editor']['model']['change'](_0xe9ffa3=>{for(const _0x45655c of _0x3b6cc5){const _0xe27fbe=_0x5357ba()['substr'](0x1,0x5),_0x19fcbd='comment:'+_0x53baba+':'+_0xe27fbe;_0xe9ffa3['addMarker'](_0x19fcbd,{'range':_0x45655c,'usingOperation':_0x1e864f,'affectsData':_0x1e864f});}});}['_createCommentThread'](_0x591c25,_0x542f8e){const _0x121ec7=this['editor']['plugins']['get']('CommentsRepository'),_0x86bbc8=this['editor']['config']['get']('collaboration.channelId'),_0x2d2022=this['editor']['plugins']['get']('Users')['me'];if(!_0x2d2022)throw new _0x539fa6('addcommentthreadcommand-user-not-found',null);_0x121ec7['addCommentThread']({'threadId':_0x591c25,'channelId':_0x86bbc8,'comments':[{'authorId':_0x2d2022['id'],'content':_0x542f8e,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x18536b){for(const _0x51bce6 of _0x18536b['getItems']())if(this['_itemIsContent'](_0x51bce6))return!0x0;return!0x1;}['_itemIsContent'](_0x43f13b){return _0x43f13b['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x43f13b)&&!_0x43f13b['is']('element','tableCell');}['_trimToContent'](_0x37bc99){const _0x15b163=_0x327a4d=>!this['_itemIsContent'](_0x327a4d['item']),_0x25f9b7=_0x37bc99['start']['getLastMatchingPosition'](_0x15b163),_0x48dfb0=_0x37bc99['end']['getLastMatchingPosition'](_0x15b163,{'direction':'backward'});return this['editor']['model']['createRange'](_0x25f9b7,_0x48dfb0);}}class b extends _0x11f31c{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3924a1){super(_0x3924a1),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5741ae=this['editor'],_0x3f7b25=_0x5741ae['model']['document']['selection'],_0x1f3ffe=_0x20f4e4(()=>this['refreshSelectedViews'](),0xa);_0x3f7b25['on']('change:range',(_0x5c9f95,_0x103836)=>{_0x103836['directChange']&&(_0x1f3ffe['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5741ae['editing']['view']['document'],'change:isFocused',(_0x38225d,_0x5ea984,_0x17caeb)=>{_0x17caeb&&_0x1f3ffe();}),this['listenTo'](_0x5741ae['ui']['focusTracker'],'change:isFocused',(_0x1ed229,_0x132faf,_0x129056)=>{_0x129056||this['fire']('blur',{'isAnnotationTracked':_0x4bda6c=>this['_editorAnnotationsData']['has'](_0x4bda6c['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x2519ca){if(this['_editorAnnotations']['has'](_0x2519ca['view']))return;this['_editorAnnotations']['add'](_0x2519ca['view']),this['editor']['ui']['focusTracker']['add'](_0x2519ca['view']['element']);const _0x25ed07=this['editor']['plugins']['get'](y);this['listenTo'](_0x25ed07['collection'],'remove',(_0x366c17,_0x361584)=>{this['editor']['ui']['focusTracker']['remove'](_0x361584['view']['element']),this['_editorAnnotations']['delete'](_0x361584['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x86467f){if('function'!=typeof _0x86467f)throw new _0x539fa6('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x86467f);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x41817a,annotations:_0x25ad0e}){const _0x267148=[],_0x55c2c4=this['editor']['model']['document']['selection'],_0x5a1e82=Array['from'](_0x55c2c4['getRanges']());for(const [_0x4f2c36,_0x472d3c]of this['_editorAnnotationsData']){const _0x532583=_0x3bdc84(_0x472d3c),_0x2d7b89=_0x25ad0e['getByInnerView'](_0x4f2c36);_0x532583&&_0x2d7b89&&_0x267148['push']({'annotation':_0x2d7b89,'range':_0x532583});}function _0x3bdc84(_0x111ce7){for(const _0xf611f1 of _0x111ce7)for(const _0x2978cc of _0x5a1e82)if(_0xf611f1['containsRange'](_0x2978cc,!_0x55c2c4['isCollapsed']))return _0xf611f1;return null;}return _0x267148['sort']((_0x26feaa,_0x303198)=>{const _0x100497=_0x26feaa['range'],_0x5327b6=_0x303198['range'];if(!_0x100497['isEqual'](_0x5327b6)){if(_0x100497['containsRange'](_0x5327b6,!0x0))return 0x1;if(_0x5327b6['containsRange'](_0x100497,!0x0))return-0x1;}return _0x26feaa['annotation']==_0x41817a?-0x1:_0x303198['annotation']==_0x41817a?0x1:0x0;})['map'](_0x312c81=>_0x312c81['annotation']);}get['_editorAnnotationsData'](){const _0x15bf16=new Map();for(const _0x2fde9b of Array['from'](this['_dataCollectors']))for(const [_0x4f7ada,_0x5210ac]of _0x2fde9b())_0x15bf16['set'](_0x4f7ada,_0x5210ac);return _0x15bf16;}}class st extends _0x11f31c{['afterInit'](){const _0x2d2b1d=this['editor'];if(!_0x2d2b1d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2d2b1d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x11f31c{constructor(_0x283ebc){super(_0x283ebc),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x18d0d2=this['editor'],_0xe3f1df=_0x18d0d2['commands']['get']('importWord'),_0x79eef=_0x18d0d2['plugins']['get'](it);_0xe3f1df&&(_0xe3f1df['on']('execute',(_0x539c66,[,_0x28154d])=>{_0x28154d['collaboration_features']={'comments':!0x0,'user_id':_0x79eef['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0xe3f1df,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x39c296,_0x52d1c7){const {comment_threads:_0x3b647d}=_0x52d1c7;_0x3b647d&&_0x3b647d['forEach'](({thread_id:_0x3dde27,comments:_0x408df5,is_resolved:_0x5a6610})=>{const _0xcf72b9=new Date(),_0x304fa3=_0x408df5['map'](({author:_0x19c109,content:_0x3ebf81,created_at:_0x1e5938})=>({'content':_0x3ebf81,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0xcf72b9,'attributes':{'@external':{'authorName':_0x19c109,'createdAt':_0x1e5938?new Date(_0x1e5938):new Date(),'source':'importWord'}}})),_0x2edfe0=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x2edfe0,'threadId':_0x3dde27,'comments':_0x304fa3,'resolvedAt':_0x5a6610?_0xcf72b9:null});});}}class at extends _0x11f31c{constructor(_0x1db4ad){super(_0x1db4ad),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x3cdef2=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x3cdef2,'contentInsertion',(_0xfde00b,_0x2d88fb)=>this['_removeMarkersWithoutThreads'](_0x2d88fb['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x2bb133){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x2bb133;const _0x3e83e9=this['editor']['plugins']['get']('CommentsRepository');for(const _0x3a4a04 of _0x2bb133['keys']()){const [_0x21ad71,_0x461204]=_0x3a4a04['split'](':');'comment'!=_0x21ad71||_0x3e83e9['hasCommentThread'](_0x461204)||_0x2bb133['delete'](_0x3a4a04);}return _0x2bb133;}['_registerMarkerInClipboardPipeline'](){const _0x579a18=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x201b35=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x201b35&&_0x579a18['_registerMarkerToCopy']('comment',_0x201b35);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x59bd87){switch(_0x59bd87){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x3e1e2b){const _0x3ca18e=_0x3e1e2b['split'](':');return{'group':_0x3ca18e[0x0],'id':_0x3ca18e[0x1],'part':_0x3ca18e[0x2]};}class ut extends _0x11f31c{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x5bc6d7,_0x2406d2)=>{if(!_0x2406d2['options']['showCommentHighlights'])return null;if(_0x2406d2['options']['ignoreResolvedComments']){const {id:_0x3a557b}=ft(_0x5bc6d7['markerName']),_0x4710dc=this['editor']['plugins']['get'](o);if(_0x4710dc['getCommentThread'](_0x3a557b)?.['isResolved']&&_0x5bc6d7['item'])return _0x2406d2['consumable']['consume'](_0x5bc6d7['item'],'addMarker:'+_0x5bc6d7['markerName']),_0x2406d2['consumable']['consume'](_0x5bc6d7['item'],'removeMarker:'+_0x5bc6d7['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x7ff453=>{_0x7ff453['on']('addMarker:comment',(_0x839577,_0x1867c4,_0xd80587)=>{if(!_0xd80587['options']['showCommentHighlights'])return;const _0x135d54=_0x1867c4['item'];if(!_0x135d54)return;const _0x198869=_0xd80587['mapper']['toViewElement'](_0x135d54);this['editor']['model']['schema']['isObject'](_0x135d54)&&_0x198869&&!_0x198869['getCustomProperty']('widget')&&_0x198869['is']('containerElement')&&_0x10a8c0(_0x198869,_0xd80587['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x55b209,{writer:_0x2eaeff,options:_0x485f68})=>{if(!_0x485f68['showCommentHighlights'])return null;const _0x36e735=_0x2eaeff['createContainerElement']('div'),_0xa7554=_0x2eaeff['createEmptyElement']('hr');return _0x2eaeff['addClass']('ck-horizontal-line',_0x36e735),_0x2eaeff['insert'](_0x2eaeff['createPositionAt'](_0x36e735,0x0),_0xa7554),_0x36e735;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x181a24,{writer:_0x1b7919,options:_0x34dca3})=>{if(!_0x34dca3['showCommentHighlights'])return null;const _0x209892=_0x1b7919['createContainerElement']('span'),_0x54ba54=_0x1b7919['createEmptyElement']('img');return _0x1b7919['addClass']('image-inline',_0x209892),_0x1b7919['insert'](_0x1b7919['createPositionAt'](_0x209892,0x0),_0x54ba54),_0x209892;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4154d1,{writer:_0x1db858,options:_0x1fe119})=>{if(_0x1fe119['showCommentHighlights'])return _0x1db858['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5f5a34,_0x510284,_0x53f2e7)=>{_0x53f2e7['options']['showCommentHighlights']&&_0x5f5a34['stop']();},{'priority':'high'});}}class r extends _0x11f31c{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(_0x4b1586){super(_0x4b1586),this['set']('isThreadsLoadingPaused',!0x0),_0x4b1586['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x426b71,_0x3a3f74,_0x4af239,_0x514681)=>{const _0x317951=_0x4b1586['plugins']['get'](o),_0x3a8359=_0x4af239?ft(_0x4af239)['id']:null;_0x4b1586['model']['change'](()=>{if(_0x3a8359){const _0x5d605b=this['getAllMarkersForId'](_0x3a8359);for(const _0x33f526 of _0x5d605b)_0x4b1586['editing']['reconvertMarker'](_0x33f526);}if(_0x514681){const {id:_0x1545fc}=ft(_0x514681),_0x53e672=_0x317951['getCommentThread'](_0x1545fc);if(_0x53e672&&_0x53e672['unlinkedAt'])return;if(_0x53e672&&!_0x53e672['isAttached'])return;const _0x3f3d3d=this['getAllMarkersForId'](_0x1545fc);for(const _0x2f5c1c of _0x3f3d3d)_0x4b1586['editing']['reconvertMarker'](_0x2f5c1c);}}),_0x3a8359&&this['scrollToThreadMarker'](_0x3a8359);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x22c305=this['editor'],_0x28d1e9=_0x22c305['plugins']['get'](o),_0x3edc68=_0x22c305['config']['get']('collaboration.channelId'),_0x342a06=_0x28d1e9['getCommentThreads']()['filter'](_0x2da79a=>_0x2da79a['channelId']!==_0x3edc68);_0x22c305['commands']['add']('addCommentThread',new ot(_0x22c305)),this['listenTo'](_0x22c305,'change:isReadOnly',(_0x5c31da,_0xc7016c,_0xa84deb)=>{_0x28d1e9['switchReadOnly'](_0xa84deb,_0x22c305['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x28d1e9,dt('addCommentThread',_0x3edc68),(_0xa3f396,{threadId:_0x2a9f3b})=>{const _0x56015c=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2a9f3b);_0x56015c?.['unlinkedAt']&&this['_attachArchivedThread'](_0x2a9f3b);}),this['listenTo'](_0x28d1e9,dt('removeCommentThread',_0x3edc68),(_0x3b0939,{threadId:_0x2687f8})=>{_0x22c305['model']['enqueueChange']({'isUndoable':!0x1},_0x2806e1=>{const _0x40a9b1=this['getAllMarkersForId'](_0x2687f8);for(const _0x245159 of _0x40a9b1)_0x2806e1['removeMarker'](_0x245159);});}),this['listenTo'](_0x28d1e9,dt('resolveCommentThread',_0x3edc68),(_0x590ee0,{threadId:_0x11a35d})=>{(this['_reconvertMarkers'](_0x11a35d),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x11a35d)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x28d1e9,dt('reopenCommentThread',_0x3edc68),(_0xe5c76a,{threadId:_0x1b1707})=>{this['_reconvertMarkers'](_0x1b1707);},{'priority':'low'}),this['listenTo'](_0x28d1e9,dt('addComment',_0x3edc68),(_0x401329,{threadId:_0x59e0ba,isFromAdapter:_0x1abde0})=>{const _0x1a2f17=this['getAllMarkersForId'](_0x59e0ba);if(_0x1abde0||0x0==_0x1a2f17['length']||!_0x28d1e9['hasCommentThread'](_0x59e0ba))return;0x1===_0x28d1e9['getCommentThread'](_0x59e0ba)['length']&&_0x22c305['model']['enqueueChange']({'isUndoable':!0x1},_0xeb65a=>{for(const _0xd2dd15 of _0x1a2f17)_0xeb65a['updateMarker'](_0xd2dd15,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x342a06);}['afterInit'](){!async function(_0x5b4418){const _0x25acbe=_0x38a899([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]),_0x1de569=0x73460ab3,_0x3408d7=0x73417083^_0x1de569,_0x1b7dbc=window[_0x38a899([0x44,0x61,0x74,0x65])][_0x38a899([0x6e,0x6f,0x77])](),_0x2666e5=_0x5b4418[_0x38a899([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x244e7c=new window[(_0x38a899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x589f6e=>{_0x2666e5[_0x38a899([0x6f,0x6e,0x63,0x65])](_0x38a899([0x72,0x65,0x61,0x64,0x79]),_0x589f6e);}),_0x18f626={[_0x38a899([0x6b,0x74,0x79])]:_0x38a899([0x45,0x43]),[_0x38a899([0x75,0x73,0x65])]:_0x38a899([0x73,0x69,0x67]),[_0x38a899([0x63,0x72,0x76])]:_0x38a899([0x50,0x2d,0x32,0x35,0x36]),[_0x38a899([0x78])]:_0x38a899([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]),[_0x38a899([0x79])]:_0x38a899([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]),[_0x38a899([0x61,0x6c,0x67])]:_0x38a899([0x45,0x53,0x32,0x35,0x36])},_0x91a631=_0x2666e5[_0x38a899([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38a899([0x67,0x65,0x74])](_0x38a899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x579989(){let _0x42fcaa,_0xd76946=null,_0x5ca099=null;try{if(_0x91a631==_0x38a899([0x47,0x50,0x4c]))return _0x38a899([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42fcaa=_0xd4fbd2(),!_0x42fcaa)return _0x38a899([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42fcaa[_0x38a899([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ca099=_0x546cb6(_0x42fcaa[_0x38a899([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42fcaa[_0x38a899([0x6a,0x74,0x69])])),await _0x5f4239()?_0x32fc55()?_0x2f5706()?_0x38a899([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e4066()?(_0x42fcaa[_0x38a899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38a899([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd76946=_0xc432bf(_0x38a899([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42fcaa[_0x38a899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38a899([0x74,0x72,0x69,0x61,0x6c])&&(_0xd76946=_0xc432bf(_0x38a899([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x548423()):_0x38a899([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38a899([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38a899([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38a899([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f5706(){const _0x587fa3=[_0x38a899([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38a899([0x74,0x72,0x69,0x61,0x6c])][_0x38a899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42fcaa[_0x38a899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b7dbc/0x3e8:0xe10*_0x3408d7;return _0x42fcaa[_0x38a899([0x65,0x78,0x70])]<_0x587fa3;}function _0x32fc55(){const _0x17ca36=_0x42fcaa[_0x38a899([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x17ca36)return!0x1;if(_0x17ca36[_0x38a899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a899([0x2a])))return!0x0;if(_0x17ca36[_0x38a899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a899([0x43,0x4d,0x54])))return!0x0;if(_0x17ca36[_0x38a899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a899([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x453a8b())return!0x0;if(_0x17ca36[_0x38a899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a899([0x52,0x43,0x4d,0x54]))){if(_0x53fda3())return!0x0;if(_0x299f75()||_0xaae315())return!0x0;}return!0x1;}function _0x3e4066(){const _0x36db52=_0x42fcaa[_0x38a899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x36db52||0x0==_0x36db52[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x235033}=new URL(window[_0x38a899([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x36db52[_0x38a899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x235033))return!0x0;const _0x268801=_0x235033[_0x38a899([0x73,0x70,0x6c,0x69,0x74])](_0x38a899([0x2e]));return _0x36db52[_0x38a899([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7b1704=>_0x7b1704[_0x38a899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a899([0x2a])))[_0x38a899([0x6d,0x61,0x70])](_0x2b6222=>_0x2b6222[_0x38a899([0x73,0x70,0x6c,0x69,0x74])](_0x38a899([0x2e])))[_0x38a899([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x436df8=>_0x436df8[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x268801[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38a899([0x6d,0x61,0x70])](_0x28e784=>Array(_0x268801[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x28e784[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38a899([0x66,0x69,0x6c,0x6c])](_0x28e784[0x0]===_0x38a899([0x2a])?_0x38a899([0x2a]):'')[_0x38a899([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x28e784))[_0x38a899([0x73,0x6f,0x6d,0x65])](_0xdf78f9=>_0x268801[_0x38a899([0x65,0x76,0x65,0x72,0x79])]((_0x169ce1,_0x5f1b23)=>_0xdf78f9[_0x5f1b23]===_0x169ce1||_0xdf78f9[_0x5f1b23]===_0x38a899([0x2a])));}function _0x548423(){return _0xd76946&&_0x5ca099?new window[(_0x38a899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2de114,_0x3fd540)=>{_0xd76946[_0x38a899([0x74,0x68,0x65,0x6e])](_0x2de114,_0x3fd540),_0x5ca099[_0x38a899([0x74,0x68,0x65,0x6e])](_0x521e8a=>{_0x521e8a!=_0x38a899([0x56,0x61,0x6c,0x69,0x64])&&_0x2de114(_0x521e8a);},_0x3fd540);}):_0xd76946||_0x5ca099||_0x38a899([0x56,0x61,0x6c,0x69,0x64]);}}function _0x546cb6(_0x4c1c33,_0x562c90){return new window[(_0x38a899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a5dbd=>{if(_0x470a39())return _0x2a5dbd(_0x38a899([0x56,0x61,0x6c,0x69,0x64]));_0x14c7f5(),_0x2666e5[_0x38a899([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38a899([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x357273=!0x1;const _0xbafb9e=_0x5357ba();function _0x12f396(_0xfc5bd3){return!!_0xfc5bd3&&(typeof _0xfc5bd3===_0x38a899([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xfc5bd3===_0x38a899([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xfc5bd3[_0x38a899([0x74,0x68,0x65,0x6e])]===_0x38a899([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xfc5bd3[_0x38a899([0x63,0x61,0x74,0x63,0x68])]===_0x38a899([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x227348(_0x175829){_0x38bb66(_0x175829)[_0x38a899([0x74,0x68,0x65,0x6e])](_0x5f487c=>{if(!_0x5f487c||_0x5f487c[_0x38a899([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38a899([0x6f,0x6b]))return _0x38a899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x414e76(_0x49a778(_0xbafb9e+_0x562c90))!=_0x5f487c[_0x38a899([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38a899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38a899([0x56,0x61,0x6c,0x69,0x64]);})[_0x38a899([0x74,0x68,0x65,0x6e])](_0x318b6d=>(_0x32ad5f(),_0x318b6d),()=>{const _0x1c6fec=_0xcd8352();return null==_0x1c6fec?(_0x32ad5f(),_0x38a899([0x56,0x61,0x6c,0x69,0x64])):_0x38a899(_0x1b7dbc-_0x1c6fec>(0x574a8eb3^_0x1de569)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38a899([0x74,0x68,0x65,0x6e])](_0x2a5dbd)[_0x38a899([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a5dbd(_0x38a899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x58a286=0x7370e433^_0x1de569;function _0x32ad5f(){const _0x433f13=_0x38a899([0x6c,0x6c,0x63,0x74,0x2d])+_0x414e76(_0x49a778(_0x4c1c33)),_0x145e34=_0x438e04(_0x414e76(window[_0x38a899([0x4d,0x61,0x74,0x68])][_0x38a899([0x63,0x65,0x69,0x6c])](_0x1b7dbc/_0x58a286)));window[_0x38a899([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38a899([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x433f13,_0x145e34);}function _0xcd8352(){const _0x51d36e=_0x38a899([0x6c,0x6c,0x63,0x74,0x2d])+_0x414e76(_0x49a778(_0x4c1c33)),_0x3c30af=window[_0x38a899([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38a899([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51d36e);return _0x3c30af?window[_0x38a899([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438e04(_0x3c30af),0x10)*_0x58a286:null;}function _0x38bb66(_0x23a52c){return new window[(_0x38a899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40418f,_0x2acabb)=>{_0x23a52c[_0x38a899([0x74,0x68,0x65,0x6e])](_0x40418f,_0x2acabb),window[_0x38a899([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2acabb,0x7347de73^_0x1de569);});}}_0x2666e5[_0x38a899([0x6f,0x6e])](_0x38a899([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x403c5e,_0x1b36df)=>{if(_0x1b36df[0x0]!=_0x4c1c33)return _0x2a5dbd(_0x38a899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b36df[0x1]={..._0x1b36df[0x1],[_0x38a899([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xbafb9e};},{[_0x38a899([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38a899([0x68,0x69,0x67,0x68])}),_0x2666e5[_0x38a899([0x6f,0x6e])](_0x38a899([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ba03e=>{_0x12f396(_0x5ba03e[_0x38a899([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x357273=!0x0,_0x227348(_0x5ba03e[_0x38a899([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38a899([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38a899([0x6c,0x6f,0x77])}),_0x244e7c[_0x38a899([0x74,0x68,0x65,0x6e])](()=>{_0x357273||_0x2a5dbd(_0x38a899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x470a39(){return _0x2666e5[_0x38a899([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38a899([0x76,0x69,0x65,0x77])][_0x38a899([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38a899([0x61,0x75,0x74,0x6f]);}function _0x14c7f5(){_0x2666e5[_0x38a899([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38a899([0x76,0x69,0x65,0x77])][_0x38a899([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38a899([0x61,0x75,0x74,0x6f]);}}function _0xc432bf(_0x59f39b){const _0x4c5fef=[new window[(_0x38a899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56cd71=>setTimeout(_0x56cd71,0x734f347f^_0x1de569)),_0x244e7c[_0x38a899([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38a899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3330cb=>{let _0x3f08a4=0x0;_0x2666e5[_0x38a899([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a899([0x6f,0x6e])](_0x38a899([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x18066e,_0x3a7a90)=>{_0x3a7a90[0x0][_0x38a899([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f08a4++,_0x3f08a4==(0x73460b4b^_0x1de569)&&(_0x3330cb(),_0x18066e[_0x38a899([0x6f,0x66,0x66])]());});}))];return window[_0x38a899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38a899([0x72,0x61,0x63,0x65])](_0x4c5fef)[_0x38a899([0x74,0x68,0x65,0x6e])](()=>_0x59f39b);}async function _0x3ef65d(){await _0x244e7c,_0x2666e5[_0x38a899([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a899([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37557d,_0x2666e5[_0x38a899([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a899([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37557d,_0x2666e5[_0x38a899([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38a899([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x453a8b(){return window[_0x38a899([0x67,0x6c,0x6f,0x62])]&&window[_0x38a899([0x67,0x6c,0x6f,0x62])][_0x38a899([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x53fda3(){return _0x37ed48(_0x38a899([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x118fc4(_0x38a899([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x38a899([0x73,0x74,0x61,0x74,0x65])]==_0x38a899([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x299f75(){return _0x37ed48(_0x38a899([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 _0xaae315(){return _0x37ed48(_0x38a899([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f4d0f(_0x3f2316){const _0xfa98a6=_0x24e8db();_0x2666e5[_0xfa98a6]=_0x38a899([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f2316,_0x3f2316!=_0x38a899([0x56,0x61,0x6c,0x69,0x64])&&_0x3ef65d();}function _0x24e8db(){const _0x4198f7=window[_0x38a899([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38a899([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38a899([0x6e,0x6f,0x77])]())[_0x38a899([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38a899([0x2e]),'');let _0x38d5bc=_0x38a899([0x4b]);for(let _0x169233=0x0;_0x169233<_0x4198f7[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x169233+=0x2){let _0x4a9829=window[_0x38a899([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4198f7[_0x38a899([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x169233,_0x169233+0x2));_0x4a9829>=_0x25acbe[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a9829-=_0x25acbe[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38d5bc+=_0x25acbe[_0x4a9829];}return _0x38d5bc;}function _0xd4fbd2(){const _0x12ccc5=_0x91a631[_0x38a899([0x73,0x70,0x6c,0x69,0x74])](_0x38a899([0x2e]));if(0x3!=_0x12ccc5[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d79ec(_0x12ccc5[0x1]);function _0x2d79ec(_0x4db0d5){const _0x5b01b7=_0x543ba8(_0x4db0d5);return _0x5b01b7&&_0x5a96d1()?_0x5b01b7:null;function _0x5a96d1(){const _0x4b40cc=_0x5b01b7[_0x38a899([0x6a,0x74,0x69])],_0x189beb=window[_0x38a899([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b40cc[_0x38a899([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b40cc[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe51a68={..._0x5b01b7,[_0x38a899([0x6a,0x74,0x69])]:_0x4b40cc[_0x38a899([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b40cc[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe51a68[_0x38a899([0x76,0x63])],_0x49a778(_0xe51a68)==_0x189beb;}}}async function _0x5f4239(){let _0x2cc289=!0x0;try{const _0x2e1507=_0x91a631[_0x38a899([0x73,0x70,0x6c,0x69,0x74])](_0x38a899([0x2e])),[_0x5ff3d9,_0x111d6a,_0x30e70b]=_0x2e1507;return _0x1c1a99(_0x5ff3d9),await _0x243737(_0x5ff3d9,_0x111d6a,_0x30e70b),_0x2cc289;}catch{return!0x1;}function _0x1c1a99(_0x453db0){const _0x34b57d=_0x543ba8(_0x453db0);_0x34b57d&&_0x34b57d[_0x38a899([0x61,0x6c,0x67])]==_0x38a899([0x45,0x53,0x32,0x35,0x36])||(_0x2cc289=!0x1);}async function _0x243737(_0x5512a3,_0x8c394b,_0x3e4cdf){const _0x477317=window[_0x38a899([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38a899([0x66,0x72,0x6f,0x6d])](_0x2c5163(_0x3e4cdf),_0x1ef1fe=>_0x1ef1fe[_0x38a899([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x209824=new window[(_0x38a899([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38a899([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5512a3+_0x38a899([0x2e])+_0x8c394b),_0x3d8763=window[_0x38a899([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38a899([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d8763)return;const _0x395b72=await _0x3d8763[_0x38a899([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38a899([0x6a,0x77,0x6b]),_0x18f626,{[_0x38a899([0x6e,0x61,0x6d,0x65])]:_0x38a899([0x45,0x43,0x44,0x53,0x41]),[_0x38a899([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38a899([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38a899([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d8763[_0x38a899([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38a899([0x6e,0x61,0x6d,0x65])]:_0x38a899([0x45,0x43,0x44,0x53,0x41]),[_0x38a899([0x68,0x61,0x73,0x68])]:{[_0x38a899([0x6e,0x61,0x6d,0x65])]:_0x38a899([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x395b72,_0x477317,_0x209824)||(_0x2cc289=!0x1);}}function _0x543ba8(_0x4158ac){return _0x4158ac[_0x38a899([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38a899([0x65,0x79]))?JSON[_0x38a899([0x70,0x61,0x72,0x73,0x65])](_0x2c5163(_0x4158ac)):null;}function _0x2c5163(_0x384760){return window[_0x38a899([0x61,0x74,0x6f,0x62])](_0x384760[_0x38a899([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38a899([0x2b]))[_0x38a899([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38a899([0x2f])));}function _0x49a778(_0x1a1ab1){let _0x38414d=0x1505;function _0x4ae546(_0x123573){for(let _0x3b14c2=0x0;_0x3b14c2<_0x123573[_0x38a899([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b14c2++){const _0x3cbfb6=_0x123573[_0x38a899([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b14c2);_0x38414d=(_0x38414d<<0x5)+_0x38414d+_0x3cbfb6,_0x38414d&=_0x38414d;}}function _0x586423(_0x5e875d){Array[_0x38a899([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e875d)?_0x5e875d[_0x38a899([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x586423):_0x5e875d&&typeof _0x5e875d==_0x38a899([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38a899([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e875d)[_0x38a899([0x73,0x6f,0x72,0x74])]()[_0x38a899([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56872f,_0x5545ef])=>{_0x4ae546(_0x56872f),_0x586423(_0x5545ef);}):_0x4ae546(window[_0x38a899([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e875d));}return _0x586423(_0x1a1ab1),_0x38414d>>>0x0;}function _0x414e76(_0x47b6d5){return _0x47b6d5[_0x38a899([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38a899([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38a899([0x30]));}function _0x438e04(_0x44f6fd){return _0x44f6fd[_0x38a899([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38a899([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38a899([0x6a,0x6f,0x69,0x6e])]('');}function _0x37ed48(_0x3b49c8){return _0x2666e5[_0x38a899([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38a899([0x68,0x61,0x73])](_0x3b49c8);}function _0x118fc4(_0x136387){return _0x2666e5[_0x38a899([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38a899([0x67,0x65,0x74])](_0x136387);}function _0x37557d(){}function _0x38a899(_0x2fab55){return _0x2fab55['map'](_0xfe3e96=>String['fromCharCode'](_0xfe3e96))['join']('');}_0x2f4d0f(await _0x579989());}(this);}['destroy'](){const _0x336e18=this['editor']['plugins']['get'](o),_0x3a99c5=this['editor']['config']['get']('collaboration.channelId');for(const _0x43225a of _0x336e18['getCommentThreads']({'channelId':_0x3a99c5}))_0x336e18['_detachCommentThread'](_0x43225a['id']),_0x336e18['_threads']['delete'](_0x43225a['id']);super['destroy']();}['hasMarkerForId'](_0x3638a6){return this['getAllMarkersForId'](_0x3638a6)['length']>0x0;}['getAllMarkersForId'](_0x163374){const _0xfc31c7=[];for(const _0x2b23d8 of this['editor']['model']['markers'])_0x2b23d8['name']['startsWith']('comment:'+_0x163374)&&_0xfc31c7['push'](_0x2b23d8);return _0xfc31c7;}['scrollToThreadMarker'](_0xd4d92a){setTimeout(()=>{const _0x3f98b9=this['_getTargetForId'](_0xd4d92a);if(!_0x3f98b9)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0xd4d92a&&nt({'target':_0x3f98b9[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x546f3c){this['editor']['model']['change'](()=>{for(const _0x21b4c6 of this['getAllMarkersForId'](_0x546f3c))this['editor']['editing']['reconvertMarker'](_0x21b4c6);});}['_attachArchivedThread'](_0x401f89){const _0x339b50=this['editor']['plugins']['get'](o),_0x22e7f3=this['editor']['plugins']['get'](b),_0x4bdaf6=_0x339b50['getCommentThread'](_0x401f89);if(!_0x4bdaf6['isAttached']){const _0x49f77c=_0x4bdaf6['attachTo'](()=>this['_getTargetForId'](_0x4bdaf6['id']));_0x22e7f3['registerAnnotation'](_0x49f77c),_0x4bdaf6['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x5149c1=this['editor'],_0x524a65=_0x5149c1['plugins']['get'](it);_0x5149c1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x602392,_0x2fb7dc)=>{const {id:_0x1b6a12}=ft(_0x602392['markerName']),_0x3f4435=_0x5149c1['plugins']['get'](o)['getCommentThread'](_0x1b6a12),_0x33f3ef=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x1b6a12;let _0x48498b;if(_0x3f4435&&_0x3f4435['isResolved']&&!_0x33f3ef&&_0x602392['item'])return _0x2fb7dc['consumable']['consume'](_0x602392['item'],'addMarker:'+_0x602392['markerName']),_0x2fb7dc['consumable']['consume'](_0x602392['item'],'removeMarker:'+_0x602392['markerName']),null;const _0x29ebde=['ck-comment-marker'];return _0x33f3ef&&_0x29ebde['push']('ck-comment-marker--active'),_0x48498b=_0x3f4435?.['length']?_0x3f4435['comments']['first']['author']['id']:_0x524a65['me']['id'],{'classes':_0x29ebde,'attributes':{'data-comment':_0x1b6a12,'data-author-id':_0x48498b}};}}),_0x5149c1['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0xe1c721,{options:_0x4a43ce})=>{if(_0x4a43ce['showCommentHighlights'])return null;const _0x410a19=_0x5149c1['plugins']['get'](o),_0x30a541=_0x5149c1['model']['markers']['get'](_0xe1c721),{id:_0x3b579b,part:_0x599d28}=ft(_0xe1c721);return _0x30a541&&!_0x30a541['affectsData']||_0x4a43ce['ignoreResolvedComments']&&_0x410a19['getCommentThread'](_0x3b579b)?.['isResolved']?null:{'group':'comment','name':_0x599d28?_0x3b579b+':'+_0x599d28:_0x3b579b};}}),_0x5149c1['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3568bd,{writer:_0x181349})=>_0x181349['createElement']('$marker',{'data-name':'comment:'+_0x3568bd['getAttribute']('id')})}),_0x5149c1['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3e44dd=this['editor'],_0x5e5bb0=_0x3e44dd['plugins']['get'](o),_0x5fc4d8=new Set(),_0x10941e=new Set();_0x3e44dd['model']['document']['registerPostFixer'](_0x2ea7ca=>{let _0x1ff728=!0x1;for(const {name:_0x8a8a16,data:_0x1e31d2}of _0x3e44dd['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3d3422,id:_0x22f0a1}=ft(_0x8a8a16);let _0x167ba2=_0x1e31d2['newRange'];if('comment'!==_0x3d3422||!_0x167ba2)continue;const _0x55ed54='$graveyard'===_0x167ba2['root']['rootName'];_0x55ed54||(_0x167ba2=ht(_0x167ba2,_0x3e44dd['model']),!_0x167ba2||_0x167ba2['isCollapsed']||!_0x1e31d2['newRange']||_0x167ba2['isEqual'](_0x1e31d2['newRange']))?_0x3e44dd['model']['hasContent'](_0x167ba2)&&!_0x55ed54?this['isThreadsLoadingPaused']?_0x5fc4d8['add'](_0x8a8a16):this['_handleThreadMarker'](_0x8a8a16,_0x22f0a1):(_0x10941e['add'](_0x8a8a16),_0x5fc4d8['delete'](_0x8a8a16),_0x2ea7ca['removeMarker'](_0x8a8a16),_0x1ff728=!0x0):(_0x2ea7ca['updateMarker'](_0x8a8a16,{'range':_0x167ba2}),_0x1ff728=!0x0);}return _0x1ff728;}),this['on']('change:isThreadsLoadingPaused',(_0x4adaa2,_0x5bdf79,_0x3acb42)=>{if(!_0x3acb42&&_0x5fc4d8['size'])for(const _0x4bf0d2 of _0x5fc4d8){const {id:_0x493a0a}=ft(_0x4bf0d2);_0x5fc4d8['delete'](_0x4bf0d2),_0x3e44dd['model']['markers']['get'](_0x4bf0d2)&&this['_handleThreadMarker'](_0x4bf0d2,_0x493a0a);}}),this['listenTo'](_0x3e44dd['model']['document'],'change',()=>{for(const {name:_0x2915f0,data:{newRange:_0x41d5ac}}of _0x3e44dd['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2d76ec,id:_0x2540ae}=ft(_0x2915f0);if('comment'!==_0x2d76ec)continue;const _0x4a482a=_0x5e5bb0['getCommentThread'](_0x2540ae),_0x37ff9e=this['hasMarkerForId'](_0x2540ae);_0x4a482a&&(!_0x4a482a['_hasTargetInContent']&&_0x41d5ac&&_0x3e44dd['editing']['view']['once']('render',()=>{const _0x2ec000=_0x3e44dd['plugins']['get'](y),_0x3a3721=_0x5e5bb0['_threadToController']['get'](_0x4a482a)['view'];_0x2ec000['getByInnerView'](_0x3a3721)['refreshVisibility']();},{'priority':'low'}),_0x4a482a['_hasTargetInContent']=_0x37ff9e||!!_0x41d5ac),_0x41d5ac||(_0x10941e['add'](_0x2915f0),_0x5fc4d8['delete'](_0x2915f0));}for(const _0x19c24a of _0x10941e){const {id:_0x16c50c}=ft(_0x19c24a),_0x8fe122=_0x5e5bb0['getCommentThread'](_0x16c50c);if(_0x5fc4d8['delete'](_0x19c24a),!_0x8fe122)continue;const _0x9ccbf0=this['hasMarkerForId'](_0x16c50c);_0x9ccbf0||_0x8fe122['isSubmitted']?_0x9ccbf0||_0x8fe122['unlinkedAt']||_0x8fe122['setUnlinkedAt'](new Date()):_0x8fe122['remove']();}_0x10941e['clear']();});}['_handleInitialThreads'](_0x3a2517){_0x3a2517['forEach'](_0x1e8aa1=>{_0x1e8aa1['unlinkedAt']&&this['_attachArchivedThread'](_0x1e8aa1['id']);});}['_getTargetForId'](_0x3245d8){const _0x519c74=this['editor'],_0x40aed6=this['getAllMarkersForId'](_0x3245d8);return et(_0x519c74['editing'],_0x40aed6);}['_getTextContext'](_0x268e53){const _0x48cf3a=this['getAllMarkersForId'](_0x268e53);let _0x3a2bfc='',_0x3f47ad=!0x1;for(const _0x5dede5 of _0x48cf3a){const _0x40d91b=_0x5dede5['getRange']();for(const _0x2a03d9 of Array['from'](_0x40d91b['getItems']()))_0x2a03d9['is']('$textProxy')?(_0x3a2bfc&&_0x3f47ad&&(_0x3a2bfc+='\x20',_0x3f47ad=!0x1),_0x3a2bfc+=_0x2a03d9['data']):_0x3f47ad=!0x0;_0x3f47ad=!0x0;}return _0x3a2bfc['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x22c415,_0x1fcf10){const _0x49e321=this['editor'],_0x109275=_0x49e321['plugins']['get'](o);let _0x2334cd=_0x109275['getCommentThread'](_0x1fcf10);const _0x4d887d=_0x49e321['config']['get']('collaboration.channelId'),_0x735352=_0x49e321['plugins']['get'](b);if(_0x2334cd&&(_0x2334cd['unlinkedAt']&&_0x2334cd['setUnlinkedAt'](null),_0x2334cd['isAttached']))return _0x2334cd;return!this['getAllMarkersForId'](_0x1fcf10)[0x0]['managedUsingOperations']?_0x49e321['editing']['view']['once']('render',()=>{if(_0x109275['getCommentThread'](_0x1fcf10))return;const _0x115493=_0x49e321['plugins']['get'](y);_0x2334cd=_0x109275['openNewCommentThread']({'channelId':_0x4d887d,'threadId':_0x1fcf10,'target':()=>this['_getTargetForId'](_0x1fcf10),'context':{'type':'text','value':this['_getTextContext'](_0x1fcf10)}});const _0x12f067=_0x109275['_threadToController']['get'](_0x2334cd)['view'],_0x144b14=_0x115493['getByInnerView'](_0x12f067);_0x144b14&&_0x735352['registerAnnotation'](_0x144b14);},{'priority':'low'}):_0x109275['fetchCommentThread']({'channelId':_0x4d887d,'threadId':_0x1fcf10})['then'](_0x1df27e=>{if('destroyed'!==_0x49e321['state']){if(_0x2334cd=_0x1df27e,_0x2334cd&&!_0x2334cd['isAttached']){const _0xfc98f=_0x2334cd['attachTo'](()=>this['_getTargetForId'](_0x1fcf10));_0x735352['registerAnnotation'](_0xfc98f),_0x2334cd['isResolved']&&this['_reconvertMarkers'](_0x1fcf10);}else{if(!_0x2334cd){const _0x40b1e0=this['getAllMarkersForId'](_0x1fcf10);_0x49e321['model']['change'](_0x1fa451=>{for(const _0x3dad63 of _0x40b1e0)_0x1fa451['removeMarker'](_0x3dad63);});}}}}),_0x2334cd;}['_handleThreadMarker'](_0x3a4a3d,_0x1fa79a){const _0x36f0a1=this['_attachMarkerToThread'](_0x3a4a3d,_0x1fa79a);_0x36f0a1&&!_0x36f0a1['context']&&_0x36f0a1['setContext']({'type':'text','value':this['_getTextContext'](_0x1fa79a)});}['_initAriaMarkerChangeAnnouncements'](){const _0x20f6c8=this['editor'];rt(_0x20f6c8['model'],({left:_0x51612c,entered:_0x4c7676})=>{for(const _0x254720 of _0x51612c)if(mt(_0x254720)){_0x20f6c8['ui']['ariaLiveAnnouncer']['announce'](N(_0x20f6c8['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x47f44b of _0x4c7676)if(mt(_0x47f44b)){_0x20f6c8['ui']['ariaLiveAnnouncer']['announce'](N(_0x20f6c8['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x3c5875)));break;}});}}function dt(_0x21e38a,_0xbc78c0){return _0xbc78c0?_0x21e38a+':'+_0xbc78c0:_0x21e38a;}function ht(_0x5ed997,_0xf77f1f){const _0x3b3b55=_0xf77f1f['schema'],_0x6e7781=_0xf77f1f['createRange'](_0x5ed997['start']);for(const _0x12ea0e of _0x5ed997['getWalker']()){const {type:_0x3d7a4b,item:_0x324fd4,nextPosition:_0x536c98}=_0x12ea0e;if('text'===_0x3d7a4b||_0x3b3b55['isObject'](_0x324fd4)){const _0x2174a5=_0xf77f1f['createPositionBefore'](_0x324fd4);_0x6e7781['isCollapsed']&&(_0x6e7781['start']=_0x2174a5),_0x6e7781['end']=_0x536c98;}}return _0x6e7781;}function mt(_0x656da0){return'comment'===ft(_0x656da0['name'])['group'];}class s extends _0x11f31c{['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 _0x1917a2=this['editor'],_0x189cd6=_0x1917a2['plugins']['get'](o),_0x5ad892=_0x1917a2['plugins']['get'](r),_0x4772fd=_0x1917a2['plugins']['get'](y),_0x34a0b8=_0x1917a2['plugins']['get'](b);_0x1917a2['ui']['componentFactory']['add']('comment',()=>{const _0x127fcf=this['_createUIButton'](_0x47485a);return _0x127fcf['tooltip']=!0x0,_0x127fcf;}),_0x1917a2['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x4466f3)),_0x34a0b8['addSourceCollector'](()=>{const _0x242cc7=[];for(const [_0xe0e667,_0x289a3c]of _0x189cd6['_threadToController']){const _0x461a09=_0x5ad892['getAllMarkersForId'](_0xe0e667['id']),_0x142aa4=_0x461a09['map'](_0x3e59f7=>_0x3e59f7['getRange']());_0x461a09['length']>0x0&&_0x242cc7['push']([_0x289a3c['view'],_0x142aa4]);}return _0x242cc7;}),this['listenTo'](_0x4772fd,'change:activeAnnotations',(_0x1e8569,_0x4de523,_0x1a292b)=>{const _0x34c8b3=Array['from'](_0x1a292b)['map'](_0x5277dc=>_0x5277dc['innerView'])['find'](_0x170af9=>_0x189cd6['_viewToController']['has'](_0x170af9));if(!_0x34c8b3)return void(_0x5ad892['activeMarker']=null);const _0x2f0cea=_0x189cd6['_viewToController']['get'](_0x34c8b3)['model']['id'],_0x2028d0='comment:'+_0x2f0cea;_0x2f0cea&&_0x5ad892['hasMarkerForId'](_0x2f0cea)?_0x5ad892['activeMarker']=_0x2028d0:_0x5ad892['activeMarker']&&(_0x5ad892['activeMarker']=null);}),this['listenTo'](_0x189cd6,'removeCommentThread',(_0x2e00a5,{threadId:_0x1653f7,isFromAdapter:_0x3132e4})=>{!_0x3132e4&&_0x1917a2['ui']['focusTracker']['isFocused']&&_0x5ad892['hasMarkerForId'](_0x1653f7)&&_0x1917a2['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x189cd6,'addComment',(_0x1b1182,{threadId:_0x59d9bb,isFromAdapter:_0x47fdcd})=>{if(_0x47fdcd||!_0x5ad892['hasMarkerForId'](_0x59d9bb)||!_0x189cd6['hasCommentThread'](_0x59d9bb))return;0x1===_0x189cd6['getCommentThread'](_0x59d9bb)['length']&&(_0x1917a2['editing']['view']['focus'](),_0x1b1182['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x544d67=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27e9de;for(const _0x4ab034 in _0x544d67){const _0x8bbd59=_0x4ab034,_0x55387c=_0x544d67[_0x8bbd59];if('commentsLicenseKeyValid'==_0x55387c||'commentsLicenseKeyInvalid'==_0x55387c||'commentsLicenseKeyExpired'==_0x55387c||'commentsLicenseKeyDomainLimit'==_0x55387c||'commentsLicenseKeyNotAllowed'==_0x55387c||'commentsLicenseKeyEvaluationLimit'==_0x55387c||'commentsLicenseKeyTrialLimit'==_0x55387c||'commentsLicenseKeyUsageLimit'==_0x55387c){delete _0x544d67[_0x8bbd59],_0x27e9de=_0x55387c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x27e9de&&_0x544d67['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x27e9de&&_0x544d67['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x27e9de&&_0x544d67['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x27e9de&&_0x544d67['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x27e9de&&_0x544d67['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x27e9de&&_0x544d67['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x27e9de&&_0x544d67['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x11cc8d){const _0xf3986e=this['editor'],_0x7f2d5c=new _0x11cc8d(_0xf3986e['locale']),_0x56fd71=_0xf3986e['commands']['get']('addCommentThread');return _0x7f2d5c['set']({'label':N(_0xf3986e['locale'],'Comment'),'icon':_0x4cb0aa}),_0x7f2d5c['bind']('isEnabled')['to'](_0x56fd71,'isEnabled',_0x56fd71,'hasContent',(_0x3f6986,_0x24e8de)=>_0x3f6986&&_0x24e8de),this['listenTo'](_0x7f2d5c,'execute',()=>{_0x56fd71['execute']();}),_0x7f2d5c;}}class i extends _0x11f31c{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x1ed4a5){super(_0x1ed4a5),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x59865c,_0x15cae2,_0x54636c)=>{_0x54636c?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x563f93,_0xc4057a]of this['editor']['commands'])_0xc4057a['affectsData']&&'addCommentThread'!==_0x563f93&&_0xc4057a['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 _0xdd91b3=this['editor']['editing']['view']['document'];this['listenTo'](_0xdd91b3,'cut',_0x14ab66=>_0x14ab66['stop'](),{'priority':'highest'}),this['listenTo'](_0xdd91b3,'clipboardInput',_0x4168dd=>_0x4168dd['stop'](),{'priority':'highest'}),this['listenTo'](_0xdd91b3,'delete',_0x57c5ec=>_0x57c5ec['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x11638a,_0x5660f3]of this['editor']['commands'])_0x5660f3['affectsData']&&'addCommentThread'!==_0x11638a&&_0x5660f3['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 _0x14ca66{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x431c10){super(_0x431c10),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x439818=this['context']['plugins']['get'](y);this['listenTo'](_0x439818,'_activateAnnotation',(_0x1378f3,_0x501fed)=>{for(const _0x21dbff of this['activeUIs']){const _0x159686=this['_uis']['get'](_0x21dbff);(0x0,this['uisData']['get'](_0x21dbff)['filter'])(_0x501fed)&&_0x159686['setActiveAnnotation'](_0x501fed);}}),this['listenTo'](_0x439818,'_deactivateAllAnnotations',()=>{for(const _0x39e95f of this['activeUIs']){this['_uis']['get'](_0x39e95f)['setActiveAnnotation'](null);}}),this['listenTo'](_0x439818['_visibleAnnotations'],'add',(_0x11151b,_0x3b9f02)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3b9f02);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x72696b){return this['activeUIs']['has'](_0x72696b);}['activate'](_0x4b8e62,_0x17cc79=this['defaultFilter']){const _0x4b1aee=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x4b8e62))throw new _0x539fa6('annotationsuis-missing-ui',this,{'uiName':_0x4b8e62});this['isActive'](_0x4b8e62)&&this['deactivate'](_0x4b8e62),this['activeUIs']['add'](_0x4b8e62);const _0x3eb2df=new S();v({'source':_0x4b1aee['_visibleAnnotations'],'target':_0x3eb2df,'filter':_0x17cc79}),this['uisData']['set'](_0x4b8e62,{'collection':_0x3eb2df,'filter':_0x17cc79});const _0x59376a=this['_uis']['get'](_0x4b8e62);_0x59376a['attach'](_0x3eb2df),this['listenTo'](_0x59376a,'change:activeAnnotation',(_0x384f4a,_0x2d17da,_0x22f2e2,_0x22c8ca)=>{_0x22c8ca&&_0x4b1aee['_removeActiveAnnotation'](_0x22c8ca),_0x22f2e2&&_0x4b1aee['_addActiveAnnotation'](_0x22f2e2);});}['deactivate'](_0x4a3621){if(this['activeUIs']['delete'](_0x4a3621),!this['_uis']['has'](_0x4a3621))throw new _0x539fa6('annotationsuis-missing-ui',this,{'uiName':_0x4a3621});const _0x45eff2=this['_uis']['get'](_0x4a3621);_0x45eff2['detach'](),this['stopListening'](_0x45eff2),this['uisData']['get'](_0x4a3621)['collection']['destroy'](),this['uisData']['delete'](_0x4a3621);}['switchTo'](_0x28a76c){if(!this['_uis']['has'](_0x28a76c))throw new _0x539fa6('annotationsuis-missing-ui',this,{'uiName':_0x28a76c});const _0x13e4f3=this['context']['plugins']['get'](y),_0x36c1da=Array['from'](_0x13e4f3['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x28a76c);const _0x376920=this['_uis']['get'](_0x28a76c);_0x376920['setActiveAnnotation'](_0x36c1da),_0x376920['_setSelectedAnnotations']&&_0x36c1da&&_0x376920['_setSelectedAnnotations']([_0x36c1da]);}['deactivateAll'](){for(const _0x22e0fa of this['activeUIs'])this['deactivate'](_0x22e0fa);}['register'](_0x10ae1c,_0x1a6b02){if(this['_uis']['has'](_0x10ae1c))throw new _0x539fa6('annotationsuis-register-already-registered');if('function'!=typeof _0x1a6b02['attach']||'function'!=typeof _0x1a6b02['detach']||'function'!=typeof _0x1a6b02['setActiveAnnotation'])throw new _0x539fa6('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x10ae1c,_0x1a6b02);}['refilterAnnotations'](){const _0x2cf4b4=this['context']['plugins']['get'](y)['collection'],_0xa8386b=new Map(),_0x560200=Array['from'](this['activeUIs']);for(const _0x4e56e7 of this['activeUIs']){const _0x3f6321=this['uisData']['get'](_0x4e56e7)['collection'];for(const _0x22ff58 of _0x3f6321)_0xa8386b['set'](_0x22ff58,_0x4e56e7);}for(const _0x15478a of _0x2cf4b4){const _0x5b7379=_0xa8386b['get'](_0x15478a);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x15478a);const _0x3eeab0=_0x560200['find'](_0x572989=>this['uisData']['get'](_0x572989)['filter'](_0x15478a));_0x5b7379!==_0x3eeab0&&(_0x5b7379&&this['uisData']['get'](_0x5b7379)['collection']['remove'](_0x15478a),_0x3eeab0&&this['uisData']['get'](_0x3eeab0)['collection']['add'](_0x15478a));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1475a7){const _0x31841b=[];for(const _0x1d309f of this['activeUIs']){(0x0,this['uisData']['get'](_0x1d309f)['filter'])(_0x1475a7)&&_0x31841b['push'](_0x1d309f);}if(_0x31841b['length']>0x1)throw new _0x539fa6('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x31841b,'annotationType':_0x1475a7['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x42fec0){super(_0x42fec0);const _0xb039b7=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 _0x478e38(),this['focusCycler']=new _0x1b9466({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0xb039b7['to']('class')],'style':{'minHeight':_0xb039b7['to']('minHeight',_0xc680c8=>'number'==typeof _0xc680c8?_i(_0xc680c8+0xa):null)},'dir':_0x42fec0['uiLanguageDirection'],'role':'application','aria-label':N(_0x42fec0,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x42fec0,'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',_0x40b866=>{this['_updateItemPositionInFocusables'](_0x40b866['source']);}),this['list']['forEach'](_0x550b01=>{this['focusTracker']['add'](_0x550b01['element']),this['_updateItemPositionInFocusables'](_0x550b01);}),this['list']['on']('change',(_0x3bf90d,_0xbde149)=>{for(const _0x48671b of _0xbde149['removed'])this['focusTracker']['remove'](_0x48671b['element']),this['focusables']['remove'](_0x48671b);for(const _0x52d346 of _0xbde149['added'])this['focusTracker']['add'](_0x52d346['element']),this['_updateItemPositionInFocusables'](_0x52d346);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x5836b6){const _0x48ce5b=this['focusables']['getIndex'](_0x5836b6);let _0x236d9b,_0x2b7e89;for(const _0x1589cf of this['focusables'])if(_0x5836b6['top']<_0x1589cf['top']){_0x236d9b=_0x1589cf;break;}if(_0x2b7e89=_0x236d9b?this['focusables']['getIndex'](_0x236d9b):this['focusables']['length'],-0x1!==_0x48ce5b){if(_0x48ce5b===_0x2b7e89-0x1)return;this['focusables']['remove'](_0x5836b6),_0x2b7e89=_0x236d9b?this['focusables']['getIndex'](_0x236d9b):this['focusables']['length'];}this['focusables']['add'](_0x5836b6,_0x2b7e89);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0xb41a68){super(_0xb41a68),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x544055,_0x345d48)=>_0x544055+_0x345d48),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0xd4d489=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0xd4d489['to']('isAnimationDisabled',_0x204412=>_0x204412?'ck-sidebar-item--no-animation':'')],'style':{'top':_0xd4d489['to']('top',_0x68579b=>Ot(_0x68579b))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xe41781=this['element']['clientHeight'];_0xe41781&&(this['height']=_0xe41781);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x14ca66{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f495f){super(_0x4f495f),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 _0x1648ae=this['context']['config']['get']('sidebar.container');_0x1648ae&&this['setContainer'](_0x1648ae);}['setContainer'](_0x58d80a){if(!g(_0x58d80a))throw new _0x539fa6('sidebar-setcontainer-invalid-element');this['container']=_0x58d80a;}['_attachToContainer']({viewClass:_0x54412a='',spaceBetweenItems:_0x204be2=0x19}={}){if(!g(this['container']))throw new _0x539fa6('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x54412a,this['_spaceBetweenItems']=_0x204be2;}['rearrange']({removedAnnotation:_0x5b5660,previousAnnotation:_0x396c5a,nextAnnotation:_0x588a99}){const _0x255257=this['getSidebarItemView'](_0x5b5660);this['view']['list']['remove'](_0x255257),this['_destroySidebarItemView'](_0x5b5660),_0x396c5a&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x396c5a)),_0x588a99&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x588a99)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x11b05c,activatedAnnotation:_0xb0c619,disableAnimationOnActivatedAnnotation:_0x2242a7}){if(this['_activeAnnotation']=_0xb0c619,_0x11b05c){_0x11b05c['isActive']=!0x1;const _0x553af9=this['getSidebarItemView'](_0x11b05c);_0x553af9&&_0x2242a7&&(_0x553af9['isAnimationDisabled']=!0x1);}if(_0xb0c619){const _0x4afa25=this['getSidebarItemView'](_0xb0c619);_0x4afa25&&(_0xb0c619['isActive']=!0x0,_0x2242a7&&(_0x4afa25['isAnimationDisabled']=!0x0,_0x4afa25['top']+=0x1),this['_alignToTargetRect'](_0x4afa25));}}['_detachFromContainer'](_0xb6340){if(this['view']['element']['remove'](),_0xb6340){for(const _0x113b43 of _0xb6340)this['_destroySidebarItemView'](_0x113b43);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0xeff63,_0x39f622){_0x39f622||(_0x39f622=_0xeff63['view']);const _0x5c1132=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x5c1132,_0xeff63),this['_annotationToSidebarItemView']['set'](_0xeff63,_0x5c1132),_0x5c1132['content']['add'](_0x39f622),this['listenTo'](_0xeff63['view'],'change:targetRect',(_0x1a638a,_0x44d525,_0x57e113)=>{const _0x12f43b=this['_getTargetTop'](_0xeff63,_0x57e113);_0x5c1132['_targetTop']!=_0x12f43b&&(_0x5c1132['_targetTop']=_0x12f43b,this['_setItemTop'](_0x5c1132,_0x12f43b));}),this['listenTo'](_0x5c1132,'change:top',()=>{this['_recalculate'](_0x5c1132,'top');}),this['listenTo'](_0x5c1132,'change:bottom',()=>{this['_recalculate'](_0x5c1132,'bottom');}),this['_alignToTargetRect'](_0x5c1132);const _0x8e15f=this['_getItemBefore'](_0x5c1132);if(_0x8e15f)this['_alignAfterItem'](_0x8e15f,_0x5c1132)||this['_alignToTargetRect'](_0x5c1132);else this['_alignToTargetRect'](_0x5c1132);return this['_updateLastItem'](),this['view']['list']['add'](_0x5c1132),_0x5c1132;}['_alignForTopChange'](_0x20e477){if(!_0x20e477['content']['length'])return;const _0x1c1521=this['_getItemBefore'](_0x20e477);if(!_0x1c1521)return;const _0x322adc=this['_sidebarItemViewToAnnotation']['get'](_0x1c1521),_0x287870=this['_activeAnnotation'];_0x287870&&_0x287870===_0x322adc?this['_alignAfterItem'](_0x1c1521,_0x20e477):this['_alignBeforeItem'](_0x20e477,_0x1c1521);}['_alignForBottomChange'](_0x3a82d9){if(!_0x3a82d9['content']['length'])return;const _0x2abc4b=this['_getItemAfter'](_0x3a82d9);if(!_0x2abc4b)return;const _0x3d3c77=this['_sidebarItemViewToAnnotation']['get'](_0x2abc4b),_0x46cf62=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x906fe8=this['_activeAnnotation'];_0x906fe8&&_0x906fe8===_0x3d3c77&&_0x46cf62?(this['_alignBeforeItem'](_0x2abc4b,_0x3a82d9),this['_alignAfterItem'](_0x3a82d9,_0x2abc4b)):_0x906fe8&&_0x906fe8===_0x3d3c77?this['_alignBeforeItem'](_0x2abc4b,_0x3a82d9):this['_alignAfterItem'](_0x3a82d9,_0x2abc4b);}['_recalculate'](_0x728079,_0x585339){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5b7438,changedProp:_0x175386}of this['_recalculateBuffer'])'top'===_0x175386?this['_alignForTopChange'](_0x5b7438):this['_alignForBottomChange'](_0x5b7438);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x728079,'changedProp':_0x585339});}['getSidebarItemView'](_0x2e8961){return this['_annotationToSidebarItemView']['get'](_0x2e8961);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4795f7){const _0x352318=this['getSidebarItemView'](_0x4795f7);this['stopListening'](_0x352318),this['stopListening'](_0x4795f7['view']),_0x352318['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4795f7),this['_sidebarItemViewToAnnotation']['delete'](_0x352318);}['_createSidebarView'](){const _0x5c7d28=new H(this['context']['locale']);return _0x5c7d28['render'](),this['on']('change:_lastItem',(_0x52ef54,_0x4c6aa7,_0x2ddb49,_0x3969ba)=>{_0x3969ba&&_0x5c7d28['unbind']('minHeight'),_0x2ddb49?_0x5c7d28['bind']('minHeight')['to'](_0x2ddb49,'bottom'):_0x5c7d28['minHeight']=null;}),_0x5c7d28;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x24ff13){const _0x3ce31d=this['_sidebarItemViewToAnnotation']['get'](_0x24ff13),_0x48267a=_0x3ce31d&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x3ce31d)-0x1);return _0x48267a&&this['getSidebarItemView'](_0x48267a)||null;}['_getItemAfter'](_0x3b6e17){const _0x412bad=this['_sidebarItemViewToAnnotation']['get'](_0x3b6e17),_0x556910=_0x412bad&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x412bad)+0x1);return _0x556910&&this['getSidebarItemView'](_0x556910)||null;}['_alignBeforeItem'](_0x32a636,_0x1d7799){_0x32a636['updateHeight']();const _0x535f7c=G(_0x1d7799['bottom']+this['_spaceBetweenItems'],_0x32a636['top']);return!!_0x535f7c&&(this['_setItemTop'](_0x1d7799,_0x1d7799['top']-_0x535f7c),!0x0);}['_alignAfterItem'](_0xdc8f41,_0x10e6e3){_0xdc8f41['updateHeight']();const _0x13d852=G(_0xdc8f41['bottom']+this['_spaceBetweenItems'],_0x10e6e3['top']);return!!_0x13d852&&(this['_setItemTop'](_0x10e6e3,_0x10e6e3['top']+_0x13d852,!0x1),!0x0);}['_alignToTargetRect'](_0xa4d523){const _0xbd2070=this['_sidebarItemViewToAnnotation']['get'](_0xa4d523);if(!_0xbd2070||!_0xbd2070['target']||!_0xbd2070['targetRect'])return;const _0x21ce11=this['_getTargetTop'](_0xbd2070,_0xbd2070['targetRect']);this['_setItemTop'](_0xa4d523,_0x21ce11);}['_getTargetTop'](_0x3f00ca,_0x6fe325){if(null===_0x6fe325)return 0x0;if(_0x3f00ca['target']instanceof _0x1a84db)return _0x6fe325['top'];{const _0x2958c3=new _0x1a84db(this['view']['element'])['top'];return _0x6fe325['top']-_0x2958c3;}}['_setItemTop'](_0x3487fc,_0x17c583,_0x51ce11=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x51ce11&&(_0x17c583=Math['max'](_0x17c583,this['_getMaxAvailableTop'](_0x3487fc))),_0x3487fc['top']=_0x17c583;}['_getMaxAvailableTop'](_0x38ea43){let _0x4b75bb=this['_getItemBefore'](_0x38ea43),_0x5ed9eb=0x0;for(;_0x4b75bb;)_0x4b75bb['updateHeight'](),_0x5ed9eb+=this['_spaceBetweenItems']+_0x4b75bb['height'],_0x4b75bb=this['_getItemBefore'](_0x4b75bb);return _0x5ed9eb;}}function G(_0x513c2e,_0x508356){return Math['max'](_0x513c2e-_0x508356,0x0);}function g(_0x231d42){return null!==_0x231d42&&'object'==typeof _0x231d42&&0x1===_0x231d42['nodeType'];}class e extends _0x14ca66{['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(_0x43d6e8){super(_0x43d6e8),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1fc4b1(),this['_refreshPositioningDebounced']=_0x20f4e4(()=>{_0x43d6e8['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x5edc32=this['context']['plugins']['get'](j),_0x39a4a5=this['context']['plugins']['get'](z);_0x5edc32['register']('wideSidebar',this),_0x39a4a5['container']&&_0x5edc32['switchTo']('wideSidebar');}['setActiveAnnotation'](_0xa897ab){if(_0xa897ab===this['activeAnnotation'])return;const _0x26872b=this['context']['plugins']['get'](z);_0x26872b['_activeAnnotation']=_0xa897ab;const _0x789b1c=this['activeAnnotation'];_0x26872b['refresh']({'blurredAnnotation':_0x789b1c,'activatedAnnotation':_0xa897ab}),this['activeAnnotation']=_0xa897ab;}['attach'](_0x38f63c){this['annotations']=_0x38f63c;const _0x20802f=this['context']['plugins']['get'](z);if(_0x20802f['_annotations']=_0x38f63c,this['isAttached'])throw new _0x539fa6('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x20802f,'set:container',()=>{this['detach'](),this['listenTo'](_0x20802f,'change:container',_0x548de6=>{_0x548de6['off'](),this['attach'](_0x38f63c);});}),_0x20802f['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x144e2e=_0x5a70e2=>{_0x5a70e2['updateTargetRect'](),_0x20802f['addAnnotation'](_0x5a70e2);};for(const _0x28a8f8 of _0x38f63c)_0x144e2e(_0x28a8f8);this['listenTo'](_0x38f63c,'add',(_0xccaf37,_0x41040a)=>{_0x144e2e(_0x41040a);}),this['listenTo'](_0x38f63c,'remove',(_0xd8f095,_0x3cb8cd,_0x1cac85)=>{_0x20802f['rearrange']({'removedAnnotation':_0x3cb8cd,'previousAnnotation':_0x38f63c['get'](_0x1cac85-0x1),'nextAnnotation':_0x38f63c['get'](_0x1cac85+0x1)}),_0x3cb8cd===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x38f63c,'focus',(_0x1ec4f0,_0x2bf6a5)=>{this['setActiveAnnotation'](_0x2bf6a5);}),this['listenTo'](_0x38f63c,'blur',()=>{this['setActiveAnnotation'](null);});const _0x15f852=this['context']instanceof _0x4ba37d?this['context']['editors']:new _0x1fc4b1([this['context']]);for(const _0x378462 of _0x15f852)this['_integrateWithEditorAnnotations'](_0x378462);this['listenTo'](_0x15f852,'add',(_0x13a5b4,_0x3f6961)=>{this['listenTo'](_0x3f6961,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3f6961);});}),this['listenTo'](_0x15f852,'remove',(_0x313050,_0x359c2f)=>{_0x359c2f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x359c2f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x539fa6('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x392987=this['context']['plugins']['get'](z);_0x392987['_detachFromContainer'](this['annotations']),this['stopListening'](_0x392987),this['stopListening'](this['annotations']),this['context']instanceof _0x4ba37d&&this['stopListening'](this['context']['editors']);for(const _0x526b8b of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x526b8b);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2a613b){if(!_0x2a613b['plugins']['has']('EditorAnnotations'))return;const _0x568897=_0x2a613b['plugins']['get']('EditorAnnotations'),_0x220c27=()=>{const _0x54af6d=_0x568897['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x54af6d[0x0]||null);};this['listenTo'](_0x568897,'refresh',_0x220c27),this['listenTo'](_0x568897,'blur',(_0x29e242,{isAnnotationTracked:_0x541702})=>{this['activeAnnotation']&&_0x541702(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x568897,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x4bdc0e=>{_0x568897['hasDomSelection']()&&(_0x220c27(),_0x4bdc0e['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x568897);}['_destroyEditorAnnotationsIntegration'](_0x307edb){this['stopListening'](_0x307edb),this['_editorAnnotations']['remove'](_0x307edb);}}class C extends _0x47485a{['counterView'];constructor(_0x61b6c7){super(_0x61b6c7);const _0x2261ff=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x4fe9ed,_0x516c89)=>_0x4fe9ed?'...':_0x516c89['toString']()),this['set']('annotationType',''),this['icon']=_0x4cb0aa,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x2261ff['to']('annotationType',_0x15a716=>'ck-annotation-counter__badge--'+_0x15a716),_0x2261ff['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2261ff['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x14ca66{['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(_0x27363b){super(_0x27363b),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0xc0fd62())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1fc4b1(),this['_refreshPositioningDebounced']=_0x20f4e4(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0xb0e3bf(this['context']['locale']),this['balloonPanelView']=new _0x13573a(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x294a4c){this['annotations']=_0x294a4c;const _0x5cec17=this['context']['plugins']['get'](z),_0x5dc1f1=this['balloonPanelView'];if(_0x5cec17['_annotations']=_0x294a4c,this['isAttached'])throw new _0x539fa6('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5cec17,'set:container',()=>{this['detach'](),this['listenTo'](_0x5cec17,'change:container',_0x2e0e50=>{_0x2e0e50['off'](),this['attach'](_0x294a4c);});}),_0x5cec17['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x10b5b6=_0x205ac2=>{const _0x13654c=new C(this['context']['locale']);_0x5cec17['addAnnotation'](_0x205ac2,_0x13654c),this['_annotationToNarrowView']['set'](_0x205ac2,_0x13654c),_0x13654c['bind']('isDirty','annotationType','number')['to'](_0x205ac2['view'],'isDirty','type','length'),_0x13654c['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x5dc1f1['content']['first']!==_0x205ac2['view']?(this['_showBalloon'](_0x205ac2),_0x205ac2['view']['element']['focus'](),this['setActiveAnnotation'](_0x205ac2)):this['setActiveAnnotation'](null);});};for(const _0x3eab32 of _0x294a4c)_0x10b5b6(_0x3eab32);this['listenTo'](_0x294a4c,'add',(_0x4defe5,_0x4e57e2)=>{_0x10b5b6(_0x4e57e2);}),this['listenTo'](_0x294a4c,'remove',(_0x143204,_0x5f1a54,_0x1d1f4d)=>{this['_annotationToNarrowView']['get'](_0x5f1a54)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5f1a54),_0x5cec17['rearrange']({'removedAnnotation':_0x5f1a54,'previousAnnotation':_0x294a4c['get'](_0x1d1f4d-0x1),'nextAnnotation':_0x294a4c['get'](_0x1d1f4d+0x1)}),_0x5f1a54===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x294a4c,'focus',(_0x55e734,_0x56f86f)=>{this['setActiveAnnotation'](_0x56f86f);}),this['listenTo'](_0x294a4c,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x2f2f8c,_0x38f7d4)=>{_0x38f7d4['keyCode']===_0x353e30['esc']&&_0x5dc1f1['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x5dc1f1['content']['first']),this['_hideBalloon'](),_0x38f7d4['stopPropagation'](),_0x38f7d4['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x4e0090,_0x849c2a)=>{const _0x3bf888=_0x849c2a['target'];_0x5dc1f1['isVisible']&&_0x5dc1f1['element']['contains'](_0x3bf888)||_0x5cec17['view']['element']['contains'](_0x3bf888)||_0x4e0090['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x2f8490=>_0x2f8490['contains'](_0x3bf888))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x368ab7=this['context']instanceof _0x4ba37d?this['context']['editors']:new _0x1fc4b1([this['context']]);for(const _0xb3cd8f of _0x368ab7)this['_integrateWithEditorAnnotations'](_0xb3cd8f);this['listenTo'](_0x368ab7,'add',(_0x25b334,_0x32ed40)=>{this['listenTo'](_0x32ed40,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x32ed40);});}),this['listenTo'](_0x368ab7,'remove',(_0x9b9838,_0x233ee7)=>{_0x233ee7['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x233ee7['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x34ca46){if(_0x34ca46===this['activeAnnotation'])return;const _0x1a0395=this['context']['plugins']['get'](z);if(_0x1a0395['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x34ca46,'disableAnimationOnActivatedAnnotation':!0x0}),_0x34ca46)_0x1a0395['getSidebarItemView'](_0x34ca46)?this['_showBalloon'](_0x34ca46):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x34ca46;}['detach'](){if(!this['isAttached'])throw new _0x539fa6('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x20e798=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x2afcb6=>_0x2afcb6['destroy']()),this['_annotationToNarrowView']['clear'](),_0x20e798['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4ba37d&&this['stopListening'](this['context']['editors']);for(const _0x141145 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x141145);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'](_0x3da5e9){if(!_0x3da5e9['plugins']['has']('EditorAnnotations'))return;const _0x1a5bc5=_0x3da5e9['plugins']['get']('EditorAnnotations'),_0x417584=this['context']['plugins']['get'](z),_0x303b78=this['annotations'],_0x23d3ab=this['balloonPanelView'],_0x466612=()=>{const _0xd474af=_0x1a5bc5['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0xd474af),this['setActiveAnnotation'](_0xd474af[0x0]||null);};this['listenTo'](_0x1a5bc5,'refresh',_0x466612),this['listenTo'](_0x1a5bc5,'blur',(_0x44998a,{isAnnotationTracked:_0x5cbe7d})=>{this['activeAnnotation']&&_0x5cbe7d(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1a5bc5,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x303b78,'blur',_0x58c765=>{_0x1a5bc5['hasDomSelection']()&&_0x58c765['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x27e681,_0x525095)=>{const _0x3e75ae=_0x525095['target'];_0x23d3ab['isVisible']&&_0x23d3ab['element']['contains'](_0x3e75ae)||_0x417584['view']['element']['contains'](_0x3e75ae)||this['activeAnnotation']&&_0x1a5bc5['hasDomSelection']()&&(_0x466612(),_0x27e681['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1a5bc5);}['_destroyEditorAnnotationsIntegration'](_0x173a3f){_0x173a3f&&(this['stopListening'](_0x173a3f),this['_editorAnnotations']['remove'](_0x173a3f));}['_setSelectedAnnotations'](_0x477932){for(const _0x40d127 of this['_selectedAnnotations'])_0x477932['includes'](_0x40d127)||this['_manuallyClosedAnnotationViews']['delete'](_0x40d127['view']);this['_selectedAnnotations']=_0x477932;}['_refreshPositioning'](){const _0x1006f8=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x1006f8['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x32b848){if(this['_manuallyClosedAnnotationViews']['has'](_0x32b848['view']))return;const _0x7dd3d0=this['balloonPanelView']['content']['first'];_0x7dd3d0!==_0x32b848['view']?(_0x7dd3d0&&this['_detachListeners'](_0x7dd3d0),this['_attachListeners'](_0x32b848['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x32b848['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0xf5f9f9=this['balloonPanelView']['content']['first'],_0x481226=_0xf5f9f9&&this['annotations']['getByView'](_0xf5f9f9);if(!_0x481226||!this['_annotationToNarrowView']['has'](_0x481226))return;const _0x33d65e=this['_annotationToNarrowView']['get'](_0x481226)['element'],_0x12e575=(function(){const _0x1224d7=_0x13573a['defaultPositions'];return[_0x1224d7['southArrowNorthEast'],_0x1224d7['northArrowSouthEast'],_0x1224d7['southArrowNorth'],_0x1224d7['northArrowSouth'],_0x1224d7['southArrowNorthWest'],_0x1224d7['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x33d65e,'positions':_0x12e575});}['_hideBalloon'](){const _0x111fef=this['balloonPanelView'],_0x7a1620=_0x111fef['content']['first'];_0x7a1620&&(this['_detachListeners'](_0x7a1620),_0x111fef['unpin'](),_0x111fef['content']['clear']());}['_attachListeners'](_0x1255ee){this['listenTo'](_0x1255ee,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x1255ee,'Esc',(_0x7bd7dd,_0x1eb008)=>{this['_manuallyClosedAnnotationViews']['add'](_0x1255ee),this['_hideBalloon'](),_0x1eb008();});}['_detachListeners'](_0x203b57){this['stopListening'](_0x203b57);}}class c extends _0x11f31c{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x54e0dc,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23d854){super(_0x23d854),_0x23d854['editing']['view']['addObserver'](_0x156506),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x23d854['plugins']['get'](_0x54e0dc),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x5bde38=this['editor']['plugins']['get'](j);_0x5bde38['context']===this['editor']&&(_0x5bde38['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x4426a3,_0x2133b0)=>{const _0x481df2=this['_balloon'];if(this['isAttached']&&_0x481df2['visibleView']){const _0x349d72=this['annotations']['getByView'](_0x481df2['visibleView']);_0x349d72&&this['_closeAnnotation'](_0x349d72),_0x2133b0();}}));}['afterInit'](){const _0x41b32e=this['editor']['plugins']['get'](j);_0x41b32e['context']===this['editor']&&(_0x41b32e['hasActive']()||_0x41b32e['switchTo']('inline'));}['setActiveAnnotation'](_0x209c51){_0x209c51!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x209c51&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x209c51)&&this['_addAnnotationToBalloon'](_0x209c51,!0x0),_0x209c51['isActive']=!0x0),_0x209c51||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x209c51);}['attach'](_0x4a610c){this['annotations']=_0x4a610c;const _0x7bca2e=this['editor']['plugins']['get'](j),_0x183695=this['_balloon'];if(this['isAttached'])throw new _0x539fa6('inlineannotations-attach-already-attached',this);if(_0x7bca2e['context']!==this['editor'])throw new _0x539fa6('inlineannotations-not-allowed-with-context',this);const _0x209575=this['editor']['plugins']['get'](b);this['listenTo'](_0x209575,'refresh',()=>{const _0x331fb8=_0x209575['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x134a37,_0x49274f;!this['_forceRefresh']&&(_0x134a37=_0x331fb8,_0x49274f=this['_selectedAnnotations'],_0x134a37['length']===_0x49274f['length']&&_0x134a37['every'](_0x2f0c4c=>_0x49274f['includes'](_0x2f0c4c)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x331fb8),this['setActiveAnnotation'](_0x331fb8[0x0]||null));}),this['listenTo'](_0x209575,'blur',(_0xa95876,{isAnnotationTracked:_0x18233c})=>{this['activeAnnotation']&&_0x18233c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x2c0d53,_0x30209d,_0x823150)=>{_0x823150||this['setActiveAnnotation'](null);}),this['listenTo'](_0x4a610c,'remove',(_0x4b5fdf,_0x17313e)=>{this['_removeAnnotationFromBalloon'](_0x17313e),_0x17313e===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x183695,'change:visibleView',(_0x49d617,_0xe844ea,_0x37b036,_0x31442a)=>{_0x31442a&&this['stopListening'](_0x31442a);const _0x5be386=_0x4a610c['getByView'](_0x37b036);_0x37b036&&_0x5be386&&(this['listenTo'](_0x37b036,'change:height',()=>{_0x183695['updatePosition']();}),this['listenTo'](_0x37b036,'Esc',()=>{this['_closeAnnotation'](_0x5be386),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x5be386&&this['setActiveAnnotation'](_0x5be386));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x183695['visibleView']&&(_0x4a610c['getByView'](_0x183695['visibleView'])&&_0x183695['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 _0x539fa6('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x143df0 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x143df0);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x29a598){for(const _0x324fc8 of this['_selectedAnnotations'])_0x29a598['includes'](_0x324fc8)||this['_manuallyClosed']['delete'](_0x324fc8);for(const _0x2eb3ef of this['annotations'])_0x29a598['includes'](_0x2eb3ef)||this['_removeAnnotationFromBalloon'](_0x2eb3ef);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x413e3a of _0x29a598)this['_addAnnotationToBalloon'](_0x413e3a);}this['_selectedAnnotations']=_0x29a598;}['_addAnnotationToBalloon'](_0x44bf6d,_0x58ceda=!0x1){this['_manuallyClosed']['has'](_0x44bf6d)||(this['_addedAnnotations']['has'](_0x44bf6d)||this['_balloon']['hasView'](_0x44bf6d['view'])||(this['_addedAnnotations']['add'](_0x44bf6d),this['_balloon']['add']({'stackId':_0x44bf6d['view']['id'],'view':_0x44bf6d['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x44bf6d)}})),_0x58ceda&&this['_balloon']['showStack'](_0x44bf6d['view']['id']));}['_getBalloonTargetForAnnotation'](_0xc7cd0a){const _0xf956c0=_0xc7cd0a['target'],_0x1e2931=this['editor']['editing']['view'],_0x50bc1e=_0x1e2931['document']['selection']['getFirstRange'](),_0x2299ec=_0x1e2931['domConverter']['viewRangeToDom'](_0x50bc1e);if(_0x2299ec['collapse'](!0x0),_0xf956c0){if(_0xf956c0 instanceof _0x1a84db)return _0xf956c0;let _0x410eaf=[];for(const _0x510364 of _0xf956c0)_0x410eaf['push'](...F(_0x510364['getClientRects']()));_0x410eaf=function(_0x23b6ff){const _0x16a03f=[];let _0x2bb35f=_0x23b6ff[0x0];for(let _0x377e60=0x1;_0x377e60<_0x23b6ff['length'];_0x377e60++)P(_0x2bb35f,_0x23b6ff[_0x377e60])?_0x2bb35f['width']+=_0x23b6ff[_0x377e60]['width']:(_0x16a03f['push'](_0x2bb35f),_0x2bb35f=_0x23b6ff[_0x377e60]);return _0x16a03f['push'](_0x2bb35f),_0x16a03f;}(_0x410eaf);const _0x1ee271=_0x2299ec['getBoundingClientRect']();return _0x410eaf['find'](_0x972d13=>_0x972d13['top']<=_0x1ee271['top']&&_0x972d13['bottom']>=_0x1ee271['bottom']&&_0x972d13['left']<=_0x1ee271['left']&&_0x972d13['right']>=_0x1ee271['right'])||_0x410eaf[0x0];}return _0xc7cd0a['targetRect']||_0x2299ec;}['_removeAnnotationFromBalloon'](_0x1e0f64){this['_addedAnnotations']['has'](_0x1e0f64)&&this['_balloon']['hasView'](_0x1e0f64['view'])&&(this['_addedAnnotations']['delete'](_0x1e0f64),this['_balloon']['remove'](_0x1e0f64['view']));}['_closeAnnotation'](_0x29acac){this['_manuallyClosed']['add'](_0x29acac),this['_removeAnnotationFromBalloon'](_0x29acac);}}function F(_0x8057e8){return Array['from'](_0x8057e8)['map'](DOMRect['fromRect']);}function P(_0x3446e7,_0x4f952d){return _0x3446e7['top']===_0x4f952d['top']&&_0x3446e7['bottom']===_0x4f952d['bottom']&&_0x3446e7['right']===_0x4f952d['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x39e3d0,_0x487996){super(_0x39e3d0),this['set']('isEmpty',!_0x487996['length']),this['focusTracker']=new _0x478e38(),this['_annotationViews']=_0x487996,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x1b9466({'focusables':_0x487996,'focusTracker':this['focusTracker']}),this['listenTo'](_0x487996,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x487996,'remove',(_0x150d10,_0x5d182c)=>{_0x5d182c['isActive']&&this['focus'](),_0x487996['length']||(this['isEmpty']=!0x0);});const _0x261df8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x39e3d0,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x487996},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x261df8['if']('isEmpty','ck-hidden',_0x5cb714=>!_0x5cb714)]},'children':[{'text':N(_0x39e3d0,'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 _0x4447c2 of this['_annotationViews'])this['focusTracker']['add'](_0x4447c2['element']);this['_annotationViews']['on']('change',(_0x23ec0d,{added:_0x9b2a8a,removed:_0x30749c})=>{for(const _0x3f1c74 of _0x9b2a8a)this['focusTracker']['add'](_0x3f1c74['element']);for(const _0x385dcd of _0x30749c)this['focusTracker']['remove'](_0x385dcd['element']);});}}class p extends _0x14ca66{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x467a7a){super(_0x467a7a),this['archivedThreads']=new _0x1fc4b1();}['init'](){const _0x51cc3b=this['context'],_0x108818=_0x51cc3b['plugins']['get'](o),_0x24a1eb=_0x51cc3b['plugins']['get'](y);this['listenTo'](_0x108818,'addCommentThread',(_0x517cd0,{threadId:_0x3d18c1})=>{const _0x427eaa=_0x108818['getCommentThread'](_0x3d18c1);_0x427eaa['archivedAt']&&this['archivedThreads']['add'](_0x427eaa,this['_calculatePosition'](_0x427eaa['archivedAt'])),this['listenTo'](_0x427eaa,'change:archivedAt',(_0x10a419,_0x3dd79e,_0x5edafb)=>{_0x5edafb?this['archivedThreads']['has'](_0x427eaa)||this['archivedThreads']['add'](_0x427eaa,this['_calculatePosition'](_0x427eaa['archivedAt'])):this['archivedThreads']['has'](_0x427eaa)&&this['archivedThreads']['remove'](_0x427eaa);});}),this['listenTo'](_0x108818,'removeCommentThread',(_0x4c31c8,{threadId:_0x328eeb})=>{const _0x1894d7=_0x108818['getCommentThread'](_0x328eeb);this['stopListening'](_0x1894d7),this['archivedThreads']['has'](_0x1894d7)&&this['archivedThreads']['remove'](_0x1894d7);},{'priority':'highest'}),this['listenTo'](_0x24a1eb['collection'],'focus',(_0x5b52fd,_0x3b3272)=>{_0x3b3272['isVisible']||(_0x3b3272['isActive']=!0x0,_0x24a1eb['activate'](_0x3b3272));});}['_calculatePosition'](_0x57f895){const _0x10a7f2=[...this['archivedThreads']]['findIndex'](_0x338b17=>_0x338b17['archivedAt']<_0x57f895);return _0x10a7f2>-0x1?_0x10a7f2:this['archivedThreads']['length'];}}class a extends _0x11f31c{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x144c96];}constructor(_0x903591){super(_0x903591),this['annotationViews']=new _0x1619de(),this['_pendingThreads']=[];}['init'](){const _0x29626f=this['editor'],_0x38724c=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x29626f['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x47485a,!0x0)),_0x29626f['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x24c6ea=this['_createCommentsArchiveButton'](_0x4466f3);return _0x24c6ea['set']({'role':'menuitemcheckbox'}),_0x24c6ea;});const _0x58fa3f=_0x29626f['plugins']['get'](p),_0xe3c2e2=_0x29626f['plugins']['get']('Annotations'),_0x44a48d=_0x29626f['plugins']['get']('CommentsRepository');_0x58fa3f['archivedThreads']['forEach'](_0x2b44f5=>{this['_handleNewThread'](_0x2b44f5);}),this['listenTo'](_0x58fa3f['archivedThreads'],'add',(_0x103a4f,_0x3e0da7)=>{this['_handleNewThread'](_0x3e0da7);}),this['listenTo'](_0xe3c2e2['collection'],'add',(_0x5e4193,_0xb1dbff)=>{const _0x38899b=this['_pendingThreads']['find'](_0x4b5c6d=>{const _0x41ecc5=_0x44a48d['_threadToController']['get'](_0x4b5c6d);return _0x41ecc5&&_0xb1dbff['innerView']===_0x41ecc5['view'];});if(_0x38899b){const _0x1502f5=this['_calculatePosition'](_0x38899b['archivedAt']);this['_addAnnotationToArchive'](_0xb1dbff,_0x1502f5),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x38899b),0x1);}}),this['listenTo'](_0x58fa3f['archivedThreads'],'remove',(_0x877de0,_0x3462f6)=>{const _0x1cfff1=_0x29626f['config']['get']('collaboration.channelId');if(!_0x1cfff1||_0x3462f6['channelId']===_0x1cfff1){if(this['_pendingThreads']['includes'](_0x3462f6))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3462f6),0x1);else{const _0x4c3485=_0x44a48d['_threadToController']['get'](_0x3462f6),_0x2ab20f=_0xe3c2e2['getByInnerView'](_0x4c3485['view']);this['annotationViews']['remove'](_0x2ab20f['view']),this['stopListening'](_0x2ab20f),this['stopListening'](_0x2ab20f['focusableElements']);}}}),this['listenTo'](_0xe3c2e2['collection'],'add',(_0x34fe46,_0x183b1d)=>{this['listenTo'](_0x183b1d,'escape',_0x38724c);}),this['listenTo'](_0xe3c2e2['collection'],'remove',(_0x35d9be,_0x2015ba)=>{this['stopListening'](_0x2015ba,'escape',_0x38724c);});}['_addAnnotationToArchive'](_0x528e8d,_0x3f4545){this['listenTo'](_0x528e8d,'set:isVisible',_0x226284=>{_0x226284['return']=!0x1,_0x226284['stop']();}),this['annotationViews']['add'](_0x528e8d['view'],_0x3f4545);}['_handleNewThread'](_0x11dabd){const _0x32a5cc=this['editor']['plugins']['get']('CommentsRepository'),_0x1a5a91=this['editor']['plugins']['get']('Annotations'),_0x20458b=this['editor']['config']['get']('collaboration.channelId');if(!_0x20458b||_0x11dabd['channelId']===_0x20458b){const _0x1a6496=_0x32a5cc['_threadToController']['get'](_0x11dabd);if(!_0x1a6496)return void this['_pendingThreads']['push'](_0x11dabd);const _0x4833d5=this['_calculatePosition'](_0x11dabd['archivedAt']),_0x53c987=_0x1a5a91['getByInnerView'](_0x1a6496['view']);_0x53c987['isVisible']&&_0x1a5a91['_visibleAnnotations']['remove'](_0x53c987),this['_addAnnotationToArchive'](_0x53c987,_0x4833d5);}}['_calculatePosition'](_0x12be79){const _0x1fce3a=this['editor']['config']['get']('collaboration.channelId'),_0x2c9ed5=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x5c8aeb=>_0x5c8aeb['channelId']===_0x1fce3a)['findIndex'](_0x297ee5=>_0x297ee5['archivedAt']<_0x12be79);return _0x2c9ed5<0x0||_0x2c9ed5>this['annotationViews']['length']?this['annotationViews']['length']:_0x2c9ed5-0x1;}['_toggleDialog'](){const _0x201abe=this['editor'],_0x382b1c=_0x201abe['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x201abe['locale'],this['annotationViews'])),'commentsArchive'===_0x382b1c['id']?_0x382b1c['hide']():_0x382b1c['show']({'id':'commentsArchive','title':N(_0x201abe['locale'],'COMMENTS_ARCHIVE'),'icon':_0xc695b4,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x37f9c5['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x2e6847,_0x3b097d=!0x1){const _0x1a0a76=this['editor']['locale'],_0x56b085=this['editor']['plugins']['get']('Dialog'),_0x5a5bdf=new _0x2e6847(_0x1a0a76);return _0x5a5bdf['bind']('isEnabled')['to'](this,'isEnabled'),_0x5a5bdf['bind']('isOn')['to'](_0x56b085,'id',_0x46c20d=>'commentsArchive'===_0x46c20d),_0x5a5bdf['set']({'label':N(_0x1a0a76,'COMMENTS_ARCHIVE'),'icon':_0xc695b4,'isToggleable':!0x0}),_0x3b097d&&(_0x5a5bdf['tooltip']=!0x0),this['listenTo'](_0x5a5bdf,'execute',()=>this['_toggleDialog']()),_0x5a5bdf;}['_hideDialogOnAnnotationEscape']=_0x498d5d=>{const _0xad22ee=_0x498d5d['source'];if(!this['annotationViews']['has'](_0xad22ee['view']))return;const _0x834746=this['editor']['plugins']['get']('Dialog');_0x834746['isOpen']&&'commentsArchive'===_0x834746['id']&&(_0x834746['hide'](),_0x498d5d['stop']());};}class gi extends _0x11f31c{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 _0x15bb05,ContextPlugin as _0x35dfc2,PendingActions as lt,Command as _0x445992,Plugin as _0x3732d9,Context as _0x55e756}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1d2f19,uid as _0x1684c5,KeystrokeHandler as jt,FocusTracker as _0x242e0a,diff as _0x1b3644,Collection as _0x22714a,Rect as _0x5f3a0a,CKEditorError as _0x29e429,first as _0x1b9b5e,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x10f0fb,keyCodes as _0x39b093}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x32d2d9,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x54e09b,trimHtml as ts,LateFocusDropdownButtonView as _0x58b89e,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x333141}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x340747}from'es-toolkit/compat';import{IconUndo as _0x5c7493,IconCheck as _0xfcd11b,IconPencil as _0x2b6859,IconRemoveComment as _0x2395f3,IconThreeVerticalDots as _0x5f16e5,IconAddComment as _0x10df15,IconCommentsArchive as _0x43bc8d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x470c60,ButtonView as _0x222733,ViewCollection as _0xd5b2d1,createDropdown as _0x1e7d35,ListView as _0x25995c,focusChildOnDropdownOpen as _0x1626d8,ListItemView as _0x2937d3,MenuBarMenuListItemButtonView as _0x59a680,BodyCollection as _0x2dc30b,BalloonPanelView as _0x318538,ContextualBalloon as _0x3d3d3f,Dialog as _0x2561e8,DialogViewPosition as _0x9c172b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x3d1846}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 _0x59830c}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x46b3bf}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x1d2f19(){['model'];['view'];constructor(_0x5bd10b,_0x4d6028){super(),this['model']=_0x5bd10b,this['model']['_isAttached']=!0x0,this['view']=_0x4d6028,this['listenTo'](_0x4d6028,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4d6028,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4d6028,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4d6028,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4d6028,'addComment',(_0x538c5b,_0x3718f8)=>this['addComment'](_0x3718f8)),this['listenTo'](_0x4d6028,'updateComment',(_0x3c1c0e,_0x2ab555,_0x3064d3)=>this['updateComment'](_0x2ab555,_0x3064d3)),this['listenTo'](_0x4d6028,'removeComment',(_0x3583ec,_0x402e76)=>this['removeComment'](_0x402e76));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x357289){this['model']['addComment']({'content':_0x357289,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x2c313e,_0x4b5bc6){this['model']['getComment'](_0x2c313e)['update']({'content':_0x4b5bc6});}['removeComment'](_0x237d4b){this['model']['getComment'](_0x237d4b)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x48cb0d,_0x3f6b8b,_0x246c23){const t=_0x48cb0d['t'];switch(_0x3f6b8b){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'},_0x246c23);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'},_0x246c23);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'},_0x246c23);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'},_0x246c23);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x246c23);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'},_0x246c23);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'},_0x246c23);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'},_0x246c23);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(_0x3c96dd,_0x50b514){super(_0x3c96dd);const _0x46bbe2=_0x1684c5();this['main']=this['createCollection'](),this['editable']=new Vt(_0x3c96dd,_0x50b514,void 0x0,{'label':()=>N(_0x3c96dd,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x3c96dd['uiLanguageDirection'],'lang':_0x3c96dd['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x46bbe2},'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(_0x6d546a){super(_0x6d546a),this['view']=new Rt(_0x6d546a['locale'],_0x6d546a['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x4ed6cc=this['editor']['editing']['view'],_0x1d28ff=this['view']['editable'],_0x13e52f=_0x4ed6cc['document']['getRoot']();_0x1d28ff['name']=_0x13e52f['rootName'],this['view']['render']();const _0x35ca69=_0x1d28ff['element'];this['setEditableElement'](_0x1d28ff['name'],_0x35ca69),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4ed6cc['attachDomRoot'](_0x35ca69),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x1d2f19(_0x15bb05){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x1a1cdb={}){function _0x4e168d(_0x18da2a){return _0x18da2a['map'](_0x2be1a1=>String['fromCharCode'](_0x2be1a1))['join']('');}(_0x1a1cdb=Object['assign']({},_0x1a1cdb))['plugins']||(_0x1a1cdb['plugins']=hs['defaultPlugins']),super(_0x1a1cdb),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[_0x4e168d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e168d([0x76,0x69,0x65,0x77])][_0x4e168d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e168d([0x61,0x75,0x74,0x6f]),this[_0x4e168d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4e168d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e168d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4e168d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4e168d([0x6f,0x6b])});}['create'](){const _0xc9147=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xc9147))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x3d3633=>{const _0x1f357d=this['model']['document']['getRoot'](),_0x1d6575=_0x1f357d&&_0x1f357d['getChild'](_0x1f357d['childCount']-0x1);_0x3d3633['setSelection'](_0x1d6575,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2d6e93=this['editing']['view'],_0x47db0f=_0x2d6e93['document']['getRoot'](),_0x1ead01=_0x47db0f['getChild'](0x0);_0x47db0f['childCount']>0x1||!_0x1ead01||'p'!=_0x1ead01['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x2d6e93,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x1ead01['placeholder']=this['placeholder']),Ft({'view':_0x2d6e93,'element':_0x1ead01,'keepOnFocus':!0x0}),this['placeholderElement']=_0x1ead01);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x35c7d2,_0x2a64ce={}){super(_0x35c7d2),this['editor']=null,this['_editorConfig']=_0x2a64ce,this['set']('value',_0x2a64ce['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x35c7d2,'Reply...')),this['set']('submitLabel',N(_0x35c7d2,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x242e0a(),this['focusCycler']=new _0x470c60({'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',(_0x2c2aad,_0x2cd3b7)=>{this['cancelButtonView']['fire']('execute'),_0x2cd3b7();}),this['keystrokes']['set']('Ctrl+Enter',(_0x2eb027,_0x5b7135)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x5b7135());}),this['on']('submit',(_0xb4bde0,_0x4e8698)=>{_0x4e8698['length']>0xfde8?(alert(N(_0x35c7d2,'TOO_LONG_COMMENT_ALERT',[_0x4e8698['length'],0xfde8])),_0xb4bde0['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 _0x46998d=this['editor'];this['element']['insertBefore'](_0x46998d['ui']['element'],this['element']['firstChild']),_0x46998d['model']['document']['on']('change',()=>this['value']=_0x46998d['getData']()),_0x46998d['bind']('placeholder')['to'](this),this['focusables']['add'](_0x46998d['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xe4575){-0x1===_0xe4575?(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:_0xa1c306}=this,_0x55616c=new _0x222733(_0xa1c306);return _0x55616c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x55616c['withText']=!0x0,_0x55616c['bind']('label')['to'](this,'submitLabel'),_0x55616c['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x55616c['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1ab701,_0x368f80)=>!_0x368f80&&!!_0x1ab701['trim']()),_0x55616c;}['_createCancelButton'](){const {locale:_0x54e0b4}=this,_0x3cb205=new _0x222733(_0x54e0b4);return _0x3cb205['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x3cb205['label']=N(_0x54e0b4,'Cancel'),_0x3cb205['withText']=!0x0,_0x3cb205['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x3cb205;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x2facde=>{this['focusTracker']['add'](_0x2facde['element']);}),this['focusables']['on']('change',(_0x5cca09,_0x53dffa)=>{for(const _0x52c6ef of Array['from'](_0x53dffa['added'])['reverse']())this['focusTracker']['add'](_0x52c6ef['element']);});}}class ie extends kt{constructor(_0x37a5e1,_0x117dbe,_0x154715){super(_0x37a5e1),this['commentInputView']=new es(_0x37a5e1,_0x154715),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2b00c6,_0x57e02c)=>_0x2b00c6||!!_0x57e02c),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 _0x32d2d9(_0x37a5e1,_0x117dbe),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'](_0x50ca0a){this['commentInputView']['focus'](_0x50ca0a);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xb5d4b4,_0x393e42)=>{const {submitButtonView:_0x35aac9,cancelButtonView:_0x949d59,editor:_0x332253}=this['commentInputView'];[_0x35aac9['element'],_0x949d59['element'],_0x332253?_0x332253['editing']['view']['getDomRoot']():null]['filter'](_0xe8c435=>_0xe8c435)['some'](_0x172d2b=>_0x172d2b['contains'](_0x393e42['target']))||(this['focus'](),_0x393e42['preventDefault']());});}}class rs extends kt{constructor(_0x50915f){super(_0x50915f);const _0x280492=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x280492['to']('count',_0x4d588a=>N(_0x50915f,'NUMBER_OF_COMMENTS',_0x4d588a))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2f2101,_0x5c9b3b,_0x29c862){super(_0x2f2101);const _0x59dcb2=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x5c9b3b['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x5c9b3b,this['_config']=_0x29c862,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x242e0a(),this['keystrokes']=new jt(),this['focusCycler']=new _0x470c60({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb88673=>this['commentViews']['map'](_0xd79fba=>_0xd79fba['element'])['includes'](_0xb88673['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x2f2101),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x41957d=>_0x41957d-this['_config']['maxCommentsWhenCollapsed']);for(const _0x441392 of _0x5c9b3b['comments'])this['_handleNewCommentModel'](_0x441392);this['_handleInfoComment'](),this['listenTo'](_0x5c9b3b['comments'],'add',(_0x459e70,_0x3f4ecd)=>{const _0x3b8b8f=this['_calculatePosition'](_0x3f4ecd);this['length']++,this['_handleNewCommentModel'](_0x3f4ecd,_0x3b8b8f),this['refreshVisibleViews']();}),this['listenTo'](_0x5c9b3b['comments'],'remove',(_0x4973dd,_0x1e440e)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1e440e),this['refreshVisibleViews']();}),this['listenTo'](_0x5c9b3b,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x5c9b3b,'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',_0x59dcb2['if']('length','ck-hidden',_0x552c82=>!_0x552c82)],'aria-label':N(_0x2f2101,'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'](_0x24e541){-0x1===_0x24e541?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x22af77 of this['commentViews'])_0x22af77['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1be304,_0x3a9dde){const _0x3e2131=new this['_config']['CommentView'](this['locale'],_0x1be304,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x3e2131['viewUid']=_0x1be304['id'],_0x3e2131['delegate']('removeComment')['to'](this),_0x3e2131['delegate']('updateComment')['to'](this),_0x3e2131['delegate']('resolveCommentThread')['to'](this),_0x3e2131['delegate']('editorReady')['to'](this),_0x3e2131['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x3e2131,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x3e2131,_0x3a9dde);}['_calculatePosition'](_0x5058fe){const _0x1f4d3f=this['_model']['_findOptimalIndex'](_0x5058fe);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x5058fe['authoredAt']?_0x1f4d3f-0x1:_0x1f4d3f:_0x1f4d3f-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x10b346={'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'],_0x10b346,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x10b346));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x18439f){const _0x28fca2=this['commentViews']['remove'](_0x18439f['id']);this['stopListening'](_0x28fca2),_0x28fca2['isEditMode']&&this['_updateHasDirtyComment'](),_0x28fca2['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x286f9c=>_0x286f9c['isEditMode']);}['_rearrangeCollapse'](){const _0x5ce691=function(_0x5bd4c8){const _0x52ea3e=new _0x22714a();for(const _0x41905d of _0x5bd4c8)_0x52ea3e['add'](_0x41905d);return _0x52ea3e;}(this['commentViews']),_0x13d9af=this['_collapsedCommentsView']['count'];for(let _0x338493=0x1;_0x338493<=_0x13d9af;_0x338493++)_0x5ce691['remove'](0x1);for(const _0x5eefaa of _0x5ce691)_0x5eefaa['collapse']();_0x13d9af>0x0&&_0x5ce691['add'](this['_collapsedCommentsView'],0x1),ns(_0x1b3644(Array['from'](this['visibleViews']),Array['from'](_0x5ce691)),this['visibleViews'],_0x5ce691);}['_rearrangeExpand'](){ns(_0x1b3644(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1ff63b of this['visibleViews'])_0x1ff63b['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x28564a=>{this['focusTracker']['add'](_0x28564a['element']),this['keystrokes']['listenTo'](_0x28564a['element']);}),this['commentViews']['on']('change',(_0xc0b8bc,_0x51ecc6)=>{for(const _0x4e41c7 of _0x51ecc6['removed'])this['focusTracker']['remove'](_0x4e41c7['element']),this['keystrokes']['stopListening'](_0x4e41c7['element']);for(const _0x2d058b of Array['from'](_0x51ecc6['added'])['reverse']())this['focusTracker']['add'](_0x2d058b['element']),this['keystrokes']['listenTo'](_0x2d058b['element']);});}}function ns(_0x7516f7,_0x36d1ab,_0x12d99d){let _0x20fc15=0x0;for(const _0x3dc7b1 of _0x7516f7)switch(_0x3dc7b1){case'insert':_0x36d1ab['add'](_0x12d99d['get'](_0x20fc15),_0x20fc15),_0x20fc15++;break;case'delete':_0x36d1ab['remove'](_0x20fc15);break;case'equal':_0x20fc15++;}}class oe extends kt{constructor(_0x5828a7){super(_0x5828a7);const _0x5737e1=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x5737e1['to']('contextValue',_0x2c9f7a=>N(_0x5828a7,'THREAD_CONTEXT_LABEL',_0x2c9f7a)),'tabindex':-0x1},'children':[{'text':_0x5737e1['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2704be,_0x3c594f){super(_0x2704be);const _0x32d36f=this['bindTemplate'];this['_model']=_0x3c594f,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x242e0a(),this['keystrokes']=new jt(),this['focusCycler']=new _0x470c60({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x40799e=>!!_0x40799e),this['bind']('contextValue')['to'](this['_model'],'context',_0x72b1e3=>_0x72b1e3&&_0x72b1e3['value']?this['_trimContextValue'](_0x72b1e3['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',_0x32d36f['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 _0x3e4604=new _0x222733(this['locale']);return _0x3e4604['label']=N(this['locale'],'Reopen'),_0x3e4604['tooltip']=N(this['locale'],'Reopen'),_0x3e4604['icon']=_0x5c7493,_0x3e4604['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x26f7da=>!_0x26f7da),_0x3e4604['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x16cfcd,_0x3b747b)=>_0x16cfcd&&_0x3b747b),_0x3e4604['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3e4604;}['_trimContextValue'](_0x4e153c){if(_0x4e153c['length']<0x96)return _0x4e153c;const _0x1bf133=_0x4e153c['lastIndexOf']('\x20',0x93);return _0x4e153c['substring'](0x0,_0x1bf133>-0x1?_0x1bf133:0x93)+'...';}['_attachContextActions'](){const _0x5033f2=this['element']['querySelector']('.ck-context'),_0x13823a=_0x5033f2['querySelector']('.ck-context__value');this['listenTo'](_0x5033f2,'mouseenter',()=>{_0x13823a['offsetWidth']<_0x13823a['scrollWidth']&&_0x5033f2['classList']['add']('overlay');}),this['listenTo'](_0x5033f2,'mouseleave',()=>{_0x5033f2['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0xbbb896 of this['focusables'])this['focusTracker']['add'](_0xbbb896['element']),this['keystrokes']['listenTo'](_0xbbb896['element']);}['_createContextView'](){const _0x3e07d5=new oe(this['locale']);return _0x3e07d5['bind']('contextValue')['to'](this),_0x3e07d5;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1e57e9,_0xa6a4a4,_0x5567f4,_0x3efe99){super(_0x1e57e9),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xa6a4a4,this['_localUser']=_0x5567f4,this['_config']=_0x3efe99,this['commentThreadHeaderView']=new Xt(_0x1e57e9,_0xa6a4a4),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x1e57e9,N(_0x1e57e9,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1e57e9,_0xa6a4a4,Object['assign']({'CommentView':this['_config']['CommentView']},_0x3efe99)),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',(_0x24a8a6,_0x1683bd)=>_0x24a8a6||!!_0x1683bd),this['bind']('isUnlinked')['to'](_0xa6a4a4,'unlinkedAt',_0x377307=>!!_0x377307),this['bind']('ariaLabel')['to'](this,'length',_0x43d02d=>{const _0x510a8a=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x43d02d,_0x510a8a]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x242e0a(),this['keystrokes']=new jt(),this['focusCycler']=new _0x470c60({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4ed622=>_0x4ed622['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 _0x2ab9=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x8aa457=_0x2ab9['commentInputView'];return _0x2ab9['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x8aa457,'value',(_0x24e272,_0xb67687,_0x461593,_0xb22d1e,_0x3dbd0c)=>!!_0x3dbd0c||!!_0xb22d1e&&_0x461593&&!_0xb67687||_0x24e272&&_0x461593&&!_0xb67687),_0x8aa457['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x300eb5,_0x5d1589,_0x110185)=>{let _0x3131c1;return _0x3131c1=_0x110185&&_0x5d1589?'Reply\x20to\x20reopen\x20discussion...':_0x300eb5?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x3131c1);}),_0x8aa457['bind']('submitLabel')['to'](this,'length',_0x30af8f=>N(this['locale'],_0x30af8f?'Reply':'Comment')),_0x8aa457['on']('submit',(_0x596cd1,_0x4d8985)=>{this['fire']('addComment',_0x4d8985),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x8aa457['on']('cancel',()=>{this['focus']();}),_0x8aa457['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x8aa457['on']('cancel',_0x12327d=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x12327d['stop']());}),this['on']('change:isActive',(_0x12b61d,_0x406e01,_0x3bd3d5)=>{_0x3bd3d5||this['length']||_0x8aa457['value']||this['fire']('removeCommentThread');}),_0x2ab9;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x34cb24,_0x217b77,_0x3e87cc,_0x6049c6){super(_0x34cb24,_0x217b77,_0x3e87cc,_0x6049c6),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x34cb24,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x5a2351,_0x15139f,_0x478c6f)=>{_0x478c6f||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x10fcef,_0x53fee7,_0x459a17)=>{_0x459a17&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x39d724=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x39d724['if']('isActive','ck-thread--active'),_0x39d724['if']('isUnlinked','ck-thread--unlinked'),_0x39d724['to']('actionIndicator',_0x229e00=>_0x229e00?'ck-thread--'+_0x229e00:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x39d724['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 _0x320f75 of this['commentsListView']['commentViews'])_0x320f75['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x28dd2c}=this,_0x3e4828=this['commentsListView']['commentViews']['get'](0x0);_0x3e4828===this['_boundFirstCommentView']||_0x3e4828['isSystemComment']||(this['_boundFirstCommentView']=_0x3e4828,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3e4828,'actionIndicator',_0x52b984=>'remove'===_0x52b984?'remove':null),_0x3e4828['placeholder']=N(_0x28dd2c,'Write\x20a\x20comment...'),_0x3e4828['removeButton']['on']('execute',_0x360609=>{_0x360609['stop'](),this['showConfirm'](N(_0x28dd2c,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3e4828['focus']();}),_0x3e4828['actionBar']['add'](this['resolveButton'],0x0),_0x3e4828['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x488ce5=new _0x54e09b(this['locale']);return _0x488ce5['label']=N(this['locale'],'Resolve'),_0x488ce5['tooltip']=N(this['locale'],'Resolve'),_0x488ce5['icon']=_0xfcd11b,_0x488ce5['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x488ce5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x8e492c=>!_0x8e492c),_0x488ce5['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x27950d,_0x439528)=>_0x27950d&&!_0x439528),_0x488ce5['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x488ce5;}['_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(_0x55761b){super(_0x55761b),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x56de2c,_0x1ed984,_0x151eb3)=>{this['element']['innerHTML']=_0x151eb3;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4740a6,_0xdd3fa6,_0x3af06e){super(_0x4740a6),this['_model']=_0xdd3fa6,this['_config']=_0x3af06e,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0xdd3fa6,'content',_0xdd3fa6,'authoredAt',(_0x2d23ea,_0x5a8af9)=>N(_0x4740a6,'COMMENT_ARIA_LABEL',[_0xdd3fa6['author']['name'],_0x3af06e['formatDateTime'](_0x5a8af9),new DOMParser()['parseFromString'](_0x2d23ea,'text/html')['body']['textContent'],_0xdd3fa6['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x4740a6,N(_0x4740a6,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xd5b2d1(),this['focusTracker']=new _0x242e0a(),this['keystrokes']=new jt(),this['focusCycler']=new _0x470c60({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ac730=>_0x2ac730['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 _0x40f2b8=new is(this['locale']);return _0x40f2b8['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x47cfe8,_0x4403fd)=>_0x4403fd?ts(_0x47cfe8,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x47cfe8),_0x40f2b8;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x4b37b9=new es(this['locale'],this['_config']['editorConfig']);return _0x4b37b9['value']=this['_model']['content'],_0x4b37b9['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4b37b9['submitLabel']=N(this['locale'],'Save'),_0x4b37b9['on']('submit',(_0x55ac0e,_0x588812)=>{this['fire']('updateComment',this['_model']['id'],_0x588812),this['switchToDisplayMode'](),this['focus']();}),_0x4b37b9['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x4b37b9['once']('editorReady',()=>{_0x4b37b9['focus']();}),_0x4b37b9['createEditor'](),_0x4b37b9['delegate']('editorReady')['to'](this),_0x4b37b9['delegate']('editorDestroyed')['to'](this),_0x4b37b9;}['_setupKeyboardNavigation'](){const _0x5e3dbb=this['element'];this['keystrokes']['listenTo'](_0x5e3dbb);for(const _0x3c9ff9 of this['focusables'])this['focusTracker']['add'](_0x3c9ff9['element']),this['keystrokes']['listenTo'](_0x3c9ff9['element']);this['focusables']['on']('change',(_0x182aee,_0x3c153f)=>{for(const _0x35a4b2 of _0x3c153f['removed'])this['focusTracker']['remove'](_0x35a4b2['element']),this['keystrokes']['stopListening'](_0x35a4b2['element']);for(const _0x497944 of _0x3c153f['added'])this['focusTracker']['add'](_0x497944['element']),this['keystrokes']['listenTo'](_0x497944['element']);}),this['keystrokes']['set']('enter',(_0xfe7e9c,_0x16cfb6)=>{_0x5e3dbb===_0xfe7e9c['target']&&(this['focusCycler']['focusFirst'](),_0x16cfb6());}),this['keystrokes']['set']('esc',(_0x2be29a,_0xe8ce62)=>{_0x5e3dbb!==_0x2be29a['target']&&(this['focus'](),_0xe8ce62());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x5193d1,_0x3b26b9,_0x52187d){super(_0x5193d1,_0x3b26b9,_0x52187d),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x5193d1,'Reply...')),this['bind']('authoredAt')['to'](_0x3b26b9),this['bind']('resolvedAt')['to'](_0x3b26b9),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 _0x32d2d9(_0x5193d1,_0x3b26b9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3b26b9,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x46e05e=this['bindTemplate'],_0x2d95fc=[{'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':_0x46e05e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46e05e['to']('authoredAt',_0x3bc6ce=>this['_config']['formatDateTime'](_0x3bc6ce))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x46e05e['if']('isEditMode','ck-comment__actions--hidden'),_0x46e05e['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']&&_0x2d95fc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x46e05e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x46e05e['if']('isEditMode','ck-comment--edit'),_0x46e05e['if']('isSystemComment','ck-comment--info'),_0x46e05e['to']('actionIndicator',_0x3e4ade=>_0x3e4ade?'ck-comment--'+_0x3e4ade:'')],'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':_0x2d95fc}]}]};}['_createEditButton'](){const _0xb96adc=new _0x222733(this['locale']);return _0xb96adc['label']=N(this['locale'],'Edit'),_0xb96adc['icon']=_0x2b6859,_0xb96adc['withText']=!0x0,_0xb96adc['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0xb96adc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xfd2666=>!_0xfd2666),_0xb96adc['bind']('isVisible')['to'](this['_model'],'isEditable'),_0xb96adc['on']('execute',()=>this['switchToEditMode']()),_0xb96adc;}['_createRemoveButton'](){const _0x1eef63=new _0x222733(this['locale']);return _0x1eef63['label']=N(this['locale'],'Remove'),_0x1eef63['icon']=_0x2395f3,_0x1eef63['withText']=!0x0,_0x1eef63['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x1eef63['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5c1cce=>!_0x5c1cce),_0x1eef63['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x1eef63['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x1eef63;}['_createDropdown'](){const _0x42a6a6=_0x1e7d35(this['locale'],_0x58b89e),_0x2c60c4=_0x42a6a6['panelView']['children'],_0x201ba4=new _0x25995c(this['locale']),_0x13acab=_0x42a6a6['bindTemplate'];_0x1626d8(_0x42a6a6,()=>this['items']['find'](_0x1d3ada=>_0x1d3ada['isVisible'])),_0x42a6a6['extendTemplate']({'attributes':{'class':[_0x13acab['if']('isVisible','ck-hidden',_0x46411c=>!_0x46411c)]}});const _0x5e2b6d=(_0x3a00d5,_0x2cd24a=-0x1)=>{const _0x4e40a8=new _0x2937d3(this['locale']);_0x4e40a8['children']['add'](_0x3a00d5);const _0xdfc502=_0x2cd24a>-0x1?_0x2cd24a:_0x201ba4['items']['length'];_0x201ba4['items']['add'](_0x4e40a8,_0xdfc502);const _0x53d0dc=Array['from'](this['items']);_0x42a6a6['unbind']('isEnabled','isVisible'),_0x42a6a6['bind']('isEnabled')['toMany'](_0x53d0dc,'isEnabled',(..._0x24b9a5)=>_0x24b9a5['some'](_0x3b97fe=>_0x3b97fe)),_0x42a6a6['bind']('isVisible')['toMany'](_0x53d0dc,'isVisible',(..._0x45e734)=>_0x45e734['some'](_0x5ec05b=>_0x5ec05b));};_0x42a6a6['panelPosition']='sw',_0x42a6a6['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x5f16e5});for(const _0x53ecc8 of this['items'])_0x5e2b6d(_0x53ecc8);return _0x2c60c4['add'](_0x201ba4),_0x42a6a6['listenTo'](this['items'],'add',(_0x2cd40e,_0x59c7f8,_0x32827b)=>{_0x5e2b6d(_0x59c7f8,_0x32827b);}),_0x42a6a6['listenTo'](this['items'],'remove',(_0x825a9a,_0x293daa,_0x33064c)=>{_0x201ba4['items']['remove'](_0x33064c);}),_0x42a6a6;}['_attachActions'](_0x3b6dd1,_0x3ea82b){const _0x54782b=_0x3b6dd1&&_0x3b6dd1['element'];_0x54782b&&(this['listenTo'](_0x54782b,'mouseenter',()=>this['actionIndicator']=_0x3ea82b),this['listenTo'](_0x54782b,'focus',()=>this['actionIndicator']=_0x3ea82b),this['listenTo'](_0x54782b,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x54782b,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x57bdf7=super['_createCommentInputView']();return _0x57bdf7['bind']('placeholder')['to'](this),_0x57bdf7;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x2c08d6){const _0xe4f9cb=Dt(_0x2c08d6,0x1e),_0x3ff573=new MutationObserver(_0x4abb25=>{for(const _0x59ac56 of _0x4abb25)('attributes'==_0x59ac56['type']&&'class'==_0x59ac56['attributeName']||'childList'==_0x59ac56['type']||'characterData'==_0x59ac56['type'])&&_0xe4f9cb();});return{'attach'(_0x43c9f4){_0x3ff573['observe'](_0x43c9f4,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3ff573['disconnect'](),_0xe4f9cb['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x1f7daa,_0x319661){super(_0x1f7daa),this['id']=_0x1684c5(),this['focusTracker']=new _0x242e0a(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x2421c2,_0x3d71ef)=>this['fire']('Esc',_0x3d71ef)),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'](_0x319661),this['mainView']=_0x319661;const _0x93f89a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x93f89a['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 _0x586ee5=this['element']['clientHeight'];_0x586ee5&&(this['height']=_0x586ee5);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x1d2f19(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x475759,target:_0x4e27c3,type:_0x342890,isVisible:_0x41c6b2=!0x0}){super(),this['view']=_0x475759,this['view']['element']||this['view']['render'](),this['_type']=_0x342890,this['_target']=_0x4e27c3,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x22714a([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x478620,_0x5dcfb2)=>{this['view']['focusTracker']['add'](_0x5dcfb2);}),this['focusableElements']['on']('remove',(_0x35a1c4,_0x458dbd)=>{this['view']['focusTracker']['remove'](_0x458dbd);}),this['set']('isVisible',_0x41c6b2);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1b1b69=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x1b1b69),_0x1b1b69;}get['targetRect'](){const _0x2d7515=this['target'];if(null===_0x2d7515)return null;if(_0x2d7515 instanceof _0x5f3a0a)return _0x2d7515;const _0x234a26=_0x2d7515['filter'](_0x533dab=>function(_0x184002){const _0x4304db=_0x184002['offsetParent'];if(_0x4304db)return!0x0;const _0x4cbc2a=_0x184002['getClientRects']()['item'](0x0);return!!_0x4cbc2a;}(_0x533dab));return 0x0===_0x234a26['length']?null:new _0x5f3a0a(_0x234a26[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x51081b){this['view']['isActive']=_0x51081b,this['view']['mainView']['isActive']=_0x51081b;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3e4ebc){if(!(null===_0x3e4ebc||_0x3e4ebc instanceof _0x5f3a0a||Array['isArray'](_0x3e4ebc)&&_0x3e4ebc['every'](_0x1dba6d=>fi(_0x1dba6d))))throw new _0x29e429('annotation-invalid-target',null,{'target':_0x3e4ebc});}['_getNormalizedTarget'](){const _0x35ecf8='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x35ecf8)?[_0x35ecf8]:_0x35ecf8;}}function fi(_0x297c30){return null!==_0x297c30&&'object'==typeof _0x297c30&&'nodeType'in _0x297c30&&0x1===_0x297c30['nodeType'];}class S extends _0x22714a{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x571531=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x242e0a(),this['_focusTracker']['on']('change:isFocused',(_0x45630d,_0x271f71,_0x3e324b)=>{_0x3e324b||this['fire']('blur');});for(const _0x4f6d99 of _0x571531)this['add'](_0x4f6d99);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x491f6a){if(this['has'](_0x491f6a))throw new _0x29e429('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x491f6a['innerView'],_0x491f6a),this['_viewToAnnotation']['set'](_0x491f6a['view'],_0x491f6a);for(const _0x4ba22e of _0x491f6a['focusableElements'])this['_focusTracker']['add'](_0x4ba22e);this['listenTo'](_0x491f6a['focusableElements'],'add',(_0x5ffee0,_0x2a354a)=>{this['_focusTracker']['add'](_0x2a354a);}),this['listenTo'](_0x491f6a['focusableElements'],'remove',(_0x7440ec,_0x3685c5)=>{this['_focusTracker']['remove'](_0x3685c5);}),this['listenTo'](_0x491f6a['view']['focusTracker'],'change:isFocused',(_0x1bfd22,_0x29beaf,_0xa9834)=>{_0xa9834&&this['fire']('focus',_0x491f6a);}),_0x491f6a['updateTargetRect']();const _0x53d425=this['_getOrderInContent'](_0x491f6a['view']['targetRect']);return super['add'](_0x491f6a,_0x53d425);}['remove'](_0x13105c){if(!this['has'](_0x13105c))throw new _0x29e429('annotationcollection-not-existing-item',null);this['stopListening'](_0x13105c['view']['focusTracker']),this['stopListening'](_0x13105c['focusableElements']);for(const _0x193f66 of _0x13105c['focusableElements'])this['_focusTracker']['remove'](_0x193f66);return this['_viewToAnnotation']['delete'](_0x13105c['view']),this['_innerViewToAnnotation']['delete'](_0x13105c['innerView']),super['remove'](_0x13105c);}['getByInnerView'](_0x311587){return this['_innerViewToAnnotation']['get'](_0x311587);}['getByView'](_0xf1d10d){return this['_viewToAnnotation']['get'](_0xf1d10d);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5f15d4 of this)_0x5f15d4['updateTargetRect']();this['_sort']();}['_sort'](){const _0x5a3667=Array['from'](this)['sort']((_0x3315d5,_0x4b0b62)=>w(_0x3315d5['view']['targetRect'],_0x4b0b62['view']['targetRect']));for(let _0x3010d9=_0x5a3667['length']-0x1;_0x3010d9>0x0;_0x3010d9--){const _0x163a47=_0x5a3667[_0x3010d9];_0x3010d9!==this['getIndex'](_0x163a47)&&(this['remove'](_0x163a47),this['add'](_0x163a47));}}['_getOrderInContent'](_0x279ae8){let _0x476451=0x0;if(!_0x279ae8)return this['length'];for(const _0x29af88 of this){const _0x3e8dee=_0x29af88['view']['targetRect'];if(_0x3e8dee){if(w(_0x279ae8,_0x3e8dee)<0x0)return _0x476451;_0x476451++;}}return _0x476451;}}function v({source:_0x8f42e5,target:_0x309cc2,filter:_0x5ccce3}){for(const _0x96fd98 of _0x8f42e5)_0x5ccce3(_0x96fd98)&&_0x309cc2['add'](_0x96fd98);_0x309cc2['listenTo'](_0x8f42e5,'add',(_0x98f593,_0x2133c4)=>{_0x5ccce3(_0x2133c4)&&_0x309cc2['add'](_0x2133c4);}),_0x309cc2['listenTo'](_0x8f42e5,'remove',(_0xde6c4c,_0x2475c3)=>{_0x309cc2['has'](_0x2475c3)&&_0x309cc2['remove'](_0x2475c3);});}function w(_0x151975,_0x188b40){if(null===_0x151975&&null===_0x188b40)return 0x0;if(null===_0x151975)return-0x1;if(null===_0x188b40)return 0x1;const _0x16bdc5=_0x151975['top']-_0x188b40['top'];return 0x0==_0x16bdc5?_0x151975['left']-_0x188b40['left']:_0x16bdc5;}class y extends _0x35dfc2{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x66640){if(super(_0x66640),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x66640 instanceof _0x15bb05){const _0x48f900=_0x66640['locale'];_0x66640['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2dcc4c){this['collection']['add'](_0x2dcc4c);}['remove'](_0x2257e5){this['collection']['remove'](_0x2257e5),_0x2257e5['destroy']();}['refreshVisibility'](){for(const _0x5a2d86 of this['collection'])_0x5a2d86['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x3eed44){return this['collection']['getByInnerView'](_0x3eed44);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x57f578 of this['collection'])_0x57f578['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x4241df){this['fire']('_activateAnnotation',_0x4241df);}['createAnnotation'](_0xe2c3d8){return new T(_0xe2c3d8);}['createAnnotationView'](_0x4308d6,_0x1a6457){return new E(_0x4308d6,_0x1a6457);}['_addActiveAnnotation'](_0x440eb5){const _0x3b4483=new Set(this['activeAnnotations']);_0x3b4483['add'](_0x440eb5),this['activeAnnotations']=_0x3b4483;}['_removeActiveAnnotation'](_0x1783aa){const _0x5e8a2c=new Set(this['activeAnnotations']);_0x5e8a2c['delete'](_0x1783aa),this['activeAnnotations']=_0x5e8a2c;}['_bindAnnotationsToVisibleAnnotations'](){const _0x32eef3=this['collection'],_0x2ec07d=this['_visibleAnnotations'];function _0x288a1c(_0x4a9149){const _0x125e9f=_0x4a9149['source'];_0x125e9f['isVisible']&&!_0x2ec07d['has'](_0x125e9f)?_0x2ec07d['add'](_0x125e9f):!_0x125e9f['isVisible']&&_0x2ec07d['has'](_0x125e9f)&&_0x2ec07d['remove'](_0x125e9f),_0x125e9f['view']['focusTracker']['remove'](_0x125e9f['view']['element']),_0x125e9f['view']['focusTracker']['add'](_0x125e9f['view']['element']);}this['listenTo'](_0x32eef3,'add',(_0xa58c7,_0x412fea)=>{_0x412fea['isVisible']&&_0x2ec07d['add'](_0x412fea),this['listenTo'](_0x412fea,'change:isVisible',_0x288a1c);}),this['listenTo'](_0x32eef3,'remove',(_0x55ad37,_0x10f5dc)=>{_0x2ec07d['has'](_0x10f5dc)&&_0x2ec07d['remove'](_0x10f5dc),this['stopListening'](_0x10f5dc,'change:isVisible',_0x288a1c);});}['_setupEnterAnnotationKeystroke'](){const _0xe47a89=_0x573fba=>{_0x573fba['on']('ready',()=>{_0x573fba['keystrokes']['set'](_0x59830c,(_0x49778d,_0x16cd47)=>{const _0x4e8f80=_0x1b9b5e(this['activeAnnotations']['values']());_0x4e8f80&&(_0x4e8f80['view']['focus'](),_0x16cd47());});});};this['context']instanceof _0x15bb05?_0xe47a89(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1ad7b9,_0x385e64)=>{_0xe47a89(_0x385e64);});}['_setupEscapeAnnotationHandling'](){const _0xe2065d=_0x108021=>{const _0x1080e4=_0x108021['source'],_0xddafca=[];let _0x1ffe7d;if(Array['isArray'](_0x1080e4['target'])){_0x1ffe7d=_0x1080e4['target'][0x0],this['context']instanceof _0x15bb05?_0xddafca['push'](this['context']):this['context']['editors']&&_0xddafca['push'](...this['context']['editors']);for(const _0x186f8c of _0xddafca)for(const _0xa36665 of _0x186f8c['editing']['view']['domRoots']['values']())if(_0xa36665['contains'](_0x1ffe7d))return void _0x186f8c['editing']['view']['focus']();_0x1ffe7d['focus']();}};this['listenTo'](this['collection'],'add',(_0x5b0c82,_0x21503b)=>{this['listenTo'](_0x21503b,'escape',_0xe2065d,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x492cf6,_0x932763)=>{this['stopListening'](_0x932763,'escape',_0xe2065d);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x35dfc2{['_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(_0x378ca8){super(_0x378ca8),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x5127a9=this['context']['config'];_0x5127a9['define']('comments.maxCommentsWhenCollapsed',0x2),_0x5127a9['define']('comments.maxThreadTotalWeight',0x1f4),_0x5127a9['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x5127a9['define']('comments.CommentThreadView',gt),_0x5127a9['define']('comments.CommentView',Tt),_0x5127a9['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x38f883=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x5462dd,_0x1c02cb)=>this['_addCommentThread'](_0x1c02cb)),this['on']('submitCommentThread',(_0x3c34e7,_0x3e0ee6)=>this['_submitCommentThread'](_0x3e0ee6)),this['on']('resolveCommentThread',(_0x55dbdd,_0x1858bb)=>this['_resolveCommentThread'](_0x1858bb)),this['on']('resolveCommentThread',(_0x31f38a,_0x5b9ce9)=>this['_updateActiveAnnotation'](_0x5b9ce9),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3863a5,_0x113d2e)=>this['_reopenCommentThread'](_0x113d2e)),this['on']('reopenCommentThread',(_0x1ca13d,_0x209cb6)=>this['_updateActiveAnnotation'](_0x209cb6),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x18a949,_0x31f443)=>this['_removeCommentThread'](_0x31f443)),this['on']('updateCommentThread',(_0x3f501a,_0x21852d)=>this['_updateCommentThread'](_0x21852d)),this['on']('updateCommentThread',(_0x454acf,_0x4550e5)=>this['_updateActiveAnnotation'](_0x4550e5),{'priority':'lowest'}),this['on']('addComment',(_0x5d7773,_0x4d689b)=>this['_addComment'](_0x4d689b)),this['on']('updateComment',(_0x312121,_0x109cd0)=>this['_updateComment'](_0x109cd0)),this['on']('removeComment',(_0x37452f,_0x485d92)=>this['_removeComment'](_0x485d92)),this['on']('addComment',(_0x1b1d05,{threadId:_0x474cb1,isFromAdapter:_0x495448})=>{if(_0x495448)return;const _0x4ec203=this['getCommentThread'](_0x474cb1),_0x15665a=_0x4ec203&&this['_threadToController']['get'](_0x4ec203);_0x15665a&&_0x15665a['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x38f883,'change:activeAnnotations',(_0x2593ae,_0x20c669,_0x58d2a1)=>{const _0x148e1e=Array['from'](_0x58d2a1)['map'](_0x46bd72=>this['_viewToController']['get'](_0x46bd72['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x148e1e?_0x148e1e['model']:null;});}set['adapter'](_0x2431bf){if(this['_adapter'])throw new _0x29e429('commentsrepository-adapter-already-set');this['_adapter']=_0x2431bf;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4cdd6f=_t,threadId:_0x2997b8=_0x1684c5(),comments:_0x3a5992=[],unlinkedAt:_0x477da5=null,resolvedAt:_0x2c421a=null,resolvedBy:_0x3b820c=null,target:_0x13ac63=null,context:_0x2e3ebb=null,attributes:_0x33fefd={},isResolvable:_0x367101=!0x0,isSubmitted:_0x4f9fdb=!0x1,isFromAdapter:_0x7ee213=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x4cdd6f),{'channelId':_0x4cdd6f,'threadId':_0x2997b8,'comments':_0x3a5992,'unlinkedAt':_0x477da5,'resolvedAt':_0x2c421a,'resolvedBy':_0x3b820c,'target':_0x13ac63,'context':_0x2e3ebb,'attributes':_0x33fefd,'isFromAdapter':_0x7ee213,'isResolvable':_0x367101,'isSubmitted':_0x4f9fdb}),this['getCommentThread'](_0x2997b8);}['openNewCommentThread']({channelId:_0x25d2d7=_t,threadId:_0x2200cd=_0x1684c5(),target:_0x13eeff,context:_0x1caeb9=null,isResolvable:_0x2cffd7=!0x0}){if(this['_readOnlyChannels']['has'](_0x25d2d7)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x13eeff)throw new _0x29e429('commentsrepository-missing-target');const _0x48e739=this['addCommentThread']({'channelId':_0x25d2d7,'threadId':_0x2200cd,'target':_0x13eeff,'context':_0x1caeb9,'isResolvable':_0x2cffd7});if(!_0x48e739)return null;const _0x2ca53b=this['_threadToController']['get'](_0x48e739),_0x4e6117=_0x2ca53b['view']['commentThreadInputView']['commentInputView'],_0x9f2650=this['context']['plugins']['get'](y),_0x3e4fe3=_0x9f2650['getByInnerView'](_0x2ca53b['view']);return _0x9f2650['activate'](_0x3e4fe3),_0x4e6117['once']('editorReady',()=>_0x4e6117['focus']()),_0x48e739;}['hasCommentThread'](_0x5ac5b5){if('string'!=typeof _0x5ac5b5)throw new _0x29e429('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x5ac5b5);}['updateCommentThread']({channelId:_0x1b9707=_t,threadId:_0x32ccb8,context:_0x3609fb,unlinkedAt:_0x2534be,attributes:_0x544fb5,isFromAdapter:_0x57d861=!0x1}){return this['fire'](Nt('updateCommentThread',_0x1b9707),{'channelId':_0x1b9707,'threadId':_0x32ccb8,'context':_0x3609fb,'unlinkedAt':_0x2534be,'attributes':_0x544fb5,'isFromAdapter':_0x57d861}),this['getCommentThread'](_0x32ccb8);}['getCommentThread'](_0x1fb34a){if('string'!=typeof _0x1fb34a)throw new _0x29e429('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x1fb34a);}['fetchCommentThread']({channelId:_0x198ad1,threadId:_0x542140}={}){const _0x4f49c6=this['getCommentThread'](_0x542140);if(_0x4f49c6)return Promise['resolve'](_0x4f49c6);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x29e429('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x198ad1,'threadId':_0x542140})['then'](_0x308aff=>this['hasCommentThread'](_0x542140)?this['getCommentThread'](_0x542140):_0x308aff?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x198ad1},_0x308aff)):void 0x0)['catch'](_0x5db6b2=>{throw console['error'](_0x5db6b2),new _0x29e429('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5830be,skipNotAttached:_0x3140d9=!0x1,skipEmpty:_0x1b00b7=!0x1,toJSON:_0x2b538e=!0x1}={}){const _0x1198c6=[];for(const _0xf43a36 of this['_threads']['values']())_0x5830be&&_0xf43a36['channelId']!==_0x5830be||_0x3140d9&&!_0xf43a36['isAttached']||_0x1b00b7&&0x0===_0xf43a36['length']||_0x1198c6['push'](_0xf43a36);return _0x2b538e?_0x1198c6['map'](_0x5603a8=>_0x5603a8['toJSON']()):_0x1198c6;}['getAnnotationForCommentThread'](_0x5c76af){const _0x2e37bf=this['_threadToController']['get'](_0x5c76af);if(!_0x2e37bf)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x2e37bf['view'])||null;}['getCommentThreadForAnnotation'](_0x58df89){const _0x42a334=this['_viewToController']['get'](_0x58df89['innerView']);return _0x42a334?_0x42a334['model']:null;}['setActiveCommentThread'](_0x3bf568){const _0x47fcd5=this['context']['plugins']['get'](y);if(!_0x3bf568)return void(this['activeCommentThread']&&_0x47fcd5['deactivateAll']());const _0x466862=this['getCommentThread'](_0x3bf568);if(!_0x466862)throw new _0x29e429('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3bf568});if(!this['_threadToController']['has'](_0x466862))throw new _0x29e429('commentsrepository-active-not-attached',null,{'threadId':_0x3bf568});const _0x225237=_0x47fcd5['getByInnerView'](this['_threadToController']['get'](_0x466862)['view']);_0x47fcd5['activate'](_0x225237);}['switchReadOnly'](_0x5227d3,_0x599bc4){_0x5227d3?this['_readOnlyChannels']['add'](_0x599bc4):this['_readOnlyChannels']['delete'](_0x599bc4),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x2da56e){return this['_readOnlyChannels']['has'](_0x2da56e)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x501062,_0x1f5971){return new vt(_0x501062,_0x1f5971);}['setPermissions'](_0x360f0e,_0x13754e=_t){this['_permissions']['set'](_0x13754e,_0x360f0e),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x11dee8=_t){return this['_permissions']['has'](_0x11dee8)?this['_permissions']['get'](_0x11dee8):bt;}['_addCommentThread']({channelId:_0x4b603e,threadId:_0x4fb3bc,comments:_0xf97549,unlinkedAt:_0x213ac6,resolvedAt:_0x1bf8f9,resolvedBy:_0xc2f64b,target:_0x310fa6,context:_0x37f6a5,attributes:_0x5965af,isFromAdapter:_0x2f360f,isResolvable:_0x360ee6,isSubmitted:_0x3ed32e}){if('string'!=typeof _0x4fb3bc)throw new _0x29e429('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4fb3bc});if(this['hasCommentThread'](_0x4fb3bc))throw new _0x29e429('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x4fb3bc});const _0x18bc8a=new pi(this,{'channelId':_0x4b603e,'id':_0x4fb3bc,'context':_0x37f6a5,'attributes':_0x5965af,'unlinkedAt':_0x213ac6,'resolvedAt':_0x1bf8f9,'resolvedBy':_0xc2f64b?this['context']['plugins']['get'](it)['getUser'](_0xc2f64b):null,'isResolvable':_0x360ee6,'isSubmitted':_0x3ed32e||_0x2f360f});this['_threads']['set'](_0x4fb3bc,_0x18bc8a);for(const _0x33e2a2 of _0xf97549)_0x18bc8a['_add'](this['_createNewComment']({'threadId':_0x4fb3bc,..._0x33e2a2}));return _0x310fa6&&_0x18bc8a['attachTo'](_0x310fa6),_0x2f360f||!_0x18bc8a['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4b603e,'threadId':_0x4fb3bc});}['_submitCommentThread']({channelId:_0x57a407,threadId:_0x4817d5}){if(!this['hasCommentThread'](_0x4817d5))throw new _0x29e429('commentsrepository-missing-comment-thread',this);const _0x350eb2=this['getCommentThread'](_0x4817d5);if(_0x350eb2['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x206951,comments:_0x558f2c,resolvedAt:_0xb5169f,resolvedBy:_0x494ed4,context:_0x32dc99,attributes:_0x4dbf46}=_0x350eb2,_0x4a8939=this['context']['plugins']['get']('PendingActions'),_0x4ab284=_0x4a8939['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x57a407,'threadId':_0x206951,'comments':_0x558f2c['map'](_0x587e5d=>_0x587e5d['toJSON']()),'resolvedAt':_0xb5169f,'resolvedBy':_0x494ed4?_0x494ed4['id']:_0x494ed4,'context':_0x32dc99,'attributes':_0x4dbf46})['then'](({comments:_0x2a9f70})=>{_0x4a8939['remove'](_0x4ab284);for(const _0x1c2038 of _0x2a9f70)this['_updateComment']({'channelId':_0x57a407,'threadId':_0x4817d5,'commentId':_0x1c2038['commentId'],'createdAt':_0x1c2038['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4dddaa=>{throw console['error'](_0x4dddaa),new _0x29e429('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x115c42,target:_0x36cf94}){const _0x39c542=this['getCommentThread'](_0x115c42);if(!_0x39c542)throw new _0x29e429('commentsrepository-attach-missing-comment-thread',this);const _0x3f8ec2=this['context']['plugins']['get']('PendingActions'),_0x4a291f=this['context']['plugins']['get'](y),_0x6ea954=this['_createCommentThreadView'](_0x39c542),_0x586a7e=new vt(_0x39c542,_0x6ea954);let _0x4db6f5=null;_0x6ea954['on']('change:isDirty',(_0x2fdc20,_0x3a1cab,_0x1c4975)=>{_0x1c4975?_0x4db6f5=_0x3f8ec2['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4db6f5&&(_0x3f8ec2['remove'](_0x4db6f5),_0x4db6f5=null);}),this['_threadToController']['set'](_0x39c542,_0x586a7e),this['_viewToController']['set'](_0x6ea954,_0x586a7e);const _0x43c2ae=new E(this['context']['locale'],_0x6ea954);_0x43c2ae['bind']('length')['to'](_0x6ea954),_0x43c2ae['bind']('isDirty')['to'](_0x6ea954,'isDirty',_0x6ea954,'length',(_0x1a84e5,_0x347384)=>_0x1a84e5||!_0x347384),_0x43c2ae['bind']('isActive')['to'](_0x6ea954),_0x43c2ae['type']='comment';const _0x51675e=new T({'view':_0x43c2ae,'target':_0x36cf94,'type':'comment','isVisible':!_0x39c542['archivedAt']&&!!('function'==typeof _0x36cf94?_0x36cf94():_0x36cf94)});return _0x6ea954['on']('escape',()=>{_0x51675e['fire']('escape');}),this['_bindAnnotationToEditors'](_0x6ea954,_0x51675e),_0x4a291f['add'](_0x51675e),_0x51675e;}['_bindAnnotationToEditors'](_0x5852a5,_0x86d4dc){this['listenTo'](_0x5852a5,'editorReady',(_0x402c47,_0x55372a)=>{const _0x24c3a9=_0x55372a['ui']['view']['body']['bodyCollectionContainer'];_0x86d4dc['focusableElements']['add'](_0x24c3a9),this['context']instanceof _0x15bb05&&this['context']['ui']['focusTracker']['add'](_0x24c3a9);},{'priority':'highest'}),this['listenTo'](_0x5852a5,'editorDestroyed',(_0x131df7,_0x542a6f)=>{const _0x3c75b4=_0x542a6f['ui']['view']['body']['bodyCollectionContainer'];_0x86d4dc['focusableElements']['has'](_0x3c75b4)&&_0x86d4dc['focusableElements']['remove'](_0x3c75b4),this['context']instanceof _0x15bb05&&this['context']['ui']['focusTracker']['remove'](_0x3c75b4);});}['_unbindEditors'](_0x43530f){this['stopListening'](_0x43530f,'editorReady'),this['stopListening'](_0x43530f,'editorDestroyed');}['_createCommentThreadView'](_0x51f798){const _0x138942=this['context']['plugins']['get'](it),{config:_0x38e89e,locale:_0x345d64}=this['context'],_0x1787c0=pt(_0x38e89e['get']('locale'),_0x345d64);return new(0x0,(_0x38e89e['get']('comments'))['CommentThreadView'])(_0x345d64,_0x51f798,_0x138942['me'],{'editorConfig':{..._0x38e89e['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x38e89e['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x38e89e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x38e89e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x38e89e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1787c0,'CommentView':_0x38e89e['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x2f918d,channelId:_0x2043b0,resolvedAt:_0x9194bb,resolvedBy:_0x5d99ca,isFromAdapter:_0xd075ce}){if(!this['hasCommentThread'](_0x2f918d))throw new _0x29e429('commentsrepository-missing-comment-thread',null,{'threadId':_0x2f918d});const _0x30ebb9=this['getCommentThread'](_0x2f918d);if(_0x30ebb9['isResolved'])throw new _0x29e429('commentsrepository-resolved-comment-thread',null,{'threadId':_0x2f918d});const _0x27499d=this['context']['plugins']['get'](it);if(_0x30ebb9['resolvedBy']=_0x27499d['getUser'](_0x5d99ca),_0x30ebb9['resolvedAt']=_0x9194bb,_0xd075ce||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x3c6f3f=this['context']['plugins']['get']('PendingActions'),_0x3e9eb0=_0x3c6f3f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x2043b0,'threadId':_0x2f918d})['then'](({resolvedAt:_0x1b1a8b,resolvedBy:_0xc1bb78})=>{_0x3c6f3f['remove'](_0x3e9eb0),_0x30ebb9['resolvedBy']['id']!==_0xc1bb78&&(_0x30ebb9['resolvedBy']=_0x27499d['getUser'](_0xc1bb78)),_0x30ebb9['resolvedAt']=_0x1b1a8b;})['catch'](_0x34bff2=>{throw console['error'](_0x34bff2),new _0x29e429('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4b2a4f,channelId:_0x5b2822,isFromAdapter:_0xc0cc56}){if(!this['hasCommentThread'](_0x4b2a4f))throw new _0x29e429('commentsrepository-missing-comment-thread',null,{'threadId':_0x4b2a4f});const _0x157129=this['getCommentThread'](_0x4b2a4f);if(!_0x157129['isResolved'])throw new _0x29e429('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4b2a4f});if(_0x157129['resolvedBy']=null,_0x157129['resolvedAt']=null,_0xc0cc56||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x116db4=this['context']['plugins']['get']('PendingActions'),_0x4f9d10=_0x116db4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5b2822,'threadId':_0x4b2a4f})['then'](()=>_0x116db4['remove'](_0x4f9d10))['catch'](_0x163285=>{throw console['error'](_0x163285),new _0x29e429('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x161b55,isFromAdapter:_0x48067c}){const _0x53a9e5=this['getCommentThread'](_0x161b55);if(!_0x53a9e5)throw new _0x29e429('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x161b55),this['_threads']['delete'](_0x161b55),!_0x53a9e5['isSubmitted']||_0x48067c||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x86832c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1ef680}=_0x53a9e5,_0x2efd5c=_0x86832c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1ef680,'threadId':_0x161b55})['then'](()=>_0x86832c['remove'](_0x2efd5c))['catch'](_0x56d279=>{throw console['error'](_0x56d279),new _0x29e429('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x44c4d8,unlinkedAt:_0xc63c63,context:_0x1b61f8,attributes:_0xdb4bba,isFromAdapter:_0x3b3a0c}){if('string'!=typeof _0x44c4d8)throw new _0x29e429('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x44c4d8});if(!this['hasCommentThread'](_0x44c4d8))throw new _0x29e429('commentsrepository-missing-comment-thread',null,{'threadId':_0x44c4d8});const _0x56e8a3=this['getCommentThread'](_0x44c4d8);let _0x29d568=!0x1;if(void 0x0!==_0x1b61f8&&_0x56e8a3['context']!==_0x1b61f8&&(_0x56e8a3['context']=_0x1b61f8,_0x29d568=!0x0),void 0x0!==_0xc63c63&&_0x56e8a3['unlinkedAt']!==_0xc63c63&&(_0x56e8a3['unlinkedAt']=_0xc63c63,_0x29d568=!0x0),_0xdb4bba&&!At(_0xdb4bba,_0x56e8a3['attributes'])&&(_0x56e8a3['attributes']=_0xdb4bba,_0x29d568=!0x0),!_0x29d568)return Promise['resolve']();if(!_0x56e8a3['isSubmitted']||_0x3b3a0c||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x1571f1=this['context']['plugins']['get']('PendingActions'),{channelId:_0x359561}=_0x56e8a3,_0x281dd6=_0x1571f1['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x359561,'threadId':_0x44c4d8,'context':_0x1b61f8,'unlinkedAt':_0xc63c63,'attributes':_0xdb4bba})['then'](()=>_0x1571f1['remove'](_0x281dd6))['catch'](_0x1224f8=>{throw console['error'](_0x1224f8),new _0x29e429('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xecf025){const _0x1d50c1=this['context']['plugins']['get'](y),_0x1c1849=this['getCommentThread'](_0xecf025);if(_0x1c1849['_isAttached']=!0x1,this['_threadToController']['has'](_0x1c1849)){const _0x43e8a1=this['_threadToController']['get'](_0x1c1849),_0xc374a2=_0x43e8a1['view'],_0x586ace=_0x1d50c1['getByInnerView'](_0xc374a2);this['_threadToController']['delete'](_0x1c1849),this['_viewToController']['delete'](_0xc374a2),_0x586ace&&_0x1d50c1['remove'](_0x586ace),_0x43e8a1['destroy'](),_0xc374a2['destroy']()['then'](()=>{this['_unbindEditors'](_0xc374a2);});}}['_updateActiveAnnotation']({threadId:_0xabb278,resolvedAt:_0x29aeae,unlinkedAt:_0x198aa5}){const _0x145ae1=!!_0x29aeae,_0xca62bc=this['context']['plugins']['get'](y),_0x452900=this['getCommentThread'](_0xabb278);if(this['_threadToController']['has'](_0x452900)){const _0x30cdb4=this['_threadToController']['get'](_0x452900)['view'],_0x3c31a3=_0xca62bc['getByInnerView'](_0x30cdb4);_0x3c31a3&&(_0x145ae1&&_0xca62bc['_removeActiveAnnotation'](_0x3c31a3),_0x198aa5?_0x3c31a3['isVisible']=!0x1:_0x3c31a3['refreshVisibility']());}}['_getExternalAuthor'](_0xffdea7){const _0x2121a2=this['context']['plugins']['get'](it),_0x54ab28=It('external:'+_0xffdea7),_0x216fb7=_0x2121a2['getUser'](_0x54ab28);return _0x216fb7||_0x2121a2['addUser']({'id':_0x54ab28,'name':_0xffdea7});}['_createNewComment']({threadId:_0xdc39e1,commentId:_0x3053d5=_0x1684c5(),content:_0x547536,authorId:_0x3f756c,createdAt:_0x206c4d,attributes:_0x31f93e}){if('string'!=typeof _0x3053d5)throw new _0x29e429('commentsrepository-invalid-commentid');if('string'!=typeof _0x3f756c)throw new _0x29e429('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x547536||!_0x547536['trim']())throw new _0x29e429('commentsrepository-invalid-comment-content');const _0x50be35=this['context']['plugins']['get'](it)['getUser'](_0x3f756c);if(!_0x50be35)throw new _0x29e429('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x3f756c});let _0x5b2865=null,_0x55138a=_0x206c4d;return _0x31f93e?.['@external']&&(_0x5b2865=this['_getExternalAuthor'](_0x31f93e['@external']['authorName']),_0x55138a=new Date(_0x31f93e['@external']['createdAt'])),new wi(this,{'threadId':_0xdc39e1,'id':_0x3053d5,'author':_0x5b2865||_0x50be35,'creator':_0x50be35,'content':_0x547536,'createdAt':_0x206c4d,'authoredAt':_0x55138a,'attributes':_0x31f93e});}['_addComment'](_0x350b83){let {threadId:_0x1baa02,content:_0x287969,attributes:_0x1f9a6c,isFromAdapter:_0x153a76}=_0x350b83;const _0x208719=this['getCommentThread'](_0x350b83['threadId']);if(!_0x208719)throw new _0x29e429('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x3ca48a=this['_createNewComment'](_0x350b83),{id:_0x39fdd7}=_0x3ca48a;if(_0x208719['_add'](_0x3ca48a),_0x153a76||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x208719['isSubmitted'])return Promise['resolve']();const _0x123874=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2cf856}=_0x208719,_0x1412c7=_0x123874['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1f9a6c||(_0x1f9a6c={}),this['adapter']['addComment']({'channelId':_0x2cf856,'threadId':_0x1baa02,'commentId':_0x39fdd7,'content':_0x287969,'attributes':_0x1f9a6c})['then'](_0x29b7d6=>{_0x123874['remove'](_0x1412c7),_0x29b7d6&&this['_updateComment']({'channelId':_0x2cf856,'threadId':_0x1baa02,'commentId':_0x39fdd7,'createdAt':_0x29b7d6['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5b35d4=>{throw console['error'](_0x5b35d4),new _0x29e429('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x4d482f,commentId:_0x485c18,content:_0x1a66d3,createdAt:_0x433a5a,attributes:_0x1dba1b,isFromAdapter:_0x128bfd}){if(void 0x0!==_0x1a66d3&&('string'!=typeof _0x1a66d3||!_0x1a66d3['trim']()['length']))throw new _0x29e429('commentsrepository-update-comment-invalid-content');const _0x2990a8=this['getCommentThread'](_0x4d482f),_0x35c00a=_0x2990a8['getComment'](_0x485c18);if(!_0x35c00a)throw new _0x29e429('commentsrepository-update-missing-comment',this);let _0x575808=!0x1;if(_0x1a66d3&&_0x1a66d3!==_0x35c00a['content']&&(_0x35c00a['isEditable']||_0x128bfd)&&(_0x35c00a['content']=_0x1a66d3,_0x575808=!0x0),_0x433a5a&&_0x433a5a!==_0x35c00a['createdAt']&&(_0x35c00a['createdAt']=_0x433a5a,_0x35c00a['attributes']&&_0x35c00a['attributes']['@external']||(_0x35c00a['authoredAt']=_0x433a5a),_0x575808=!0x0),_0x1dba1b&&!At(_0x1dba1b,_0x35c00a['attributes'])&&(_0x35c00a['attributes']=_0x1dba1b,_0x575808=!0x0),!_0x575808)return Promise['resolve']();if(_0x2990a8['fire']('commentUpdated'),_0x128bfd||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x55ca04=this['context']['plugins']['get']('PendingActions'),{channelId:_0x442605}=this['getCommentThread'](_0x35c00a['threadId']),_0x3a9004=_0x55ca04['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x442605,'threadId':_0x4d482f,'commentId':_0x485c18,'content':_0x1a66d3,'attributes':_0x1dba1b})['then'](()=>_0x55ca04['remove'](_0x3a9004))['catch'](_0x26ac16=>{throw console['error'](_0x26ac16),new _0x29e429('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x166ac5,commentId:_0x11fca8,isFromAdapter:_0x2c66df}){const _0x555ddf=this['getCommentThread'](_0x166ac5),_0x3bde6c=_0x555ddf['getComment'](_0x11fca8);if(!_0x3bde6c)throw new _0x29e429('commentsrepository-remove-missing-comment',this);if(_0x555ddf['_remove'](_0x3bde6c),_0x2c66df||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x322485=this['context']['plugins']['get']('PendingActions'),{channelId:_0x13f9af}=_0x555ddf,_0x2b4c75=_0x322485['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x13f9af,'threadId':_0x166ac5,'commentId':_0x11fca8})['then'](()=>_0x322485['remove'](_0x2b4c75))['catch'](_0x3265e1=>{throw console['error'](_0x3265e1),new _0x29e429('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x1d2f19(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x40d829,_0x3a4104){super();const _0x3cc356=_0x3a4104['isResolvable'];this['channelId']=_0x3a4104['channelId'],this['id']=_0x3a4104['id'],this['comments']=new _0x22714a(),this['_repository']=_0x40d829,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3a4104['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x40d829,'_permissions',_0x40d829,'_readOnlyChannels',()=>_0x40d829['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x40d829,'_permissions',()=>_0x40d829['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x40d829,'_permissions',()=>{const _0x5de796=_0x40d829['getPermissions'](this['channelId']);return _0x5de796['write']||_0x5de796['admin'];}),this['bind']('isResolvable')['to'](_0x40d829,'_permissions',()=>_0x3cc356&&_0x40d829['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3a4104['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x480e51,_0x4af44e)=>_0x480e51?_0x4af44e?_0x480e51<_0x4af44e?_0x480e51:_0x4af44e:_0x480e51:_0x4af44e),this['set']('unlinkedAt',_0x3a4104['unlinkedAt']||null),this['set']('resolvedAt',_0x3a4104['resolvedAt']||null),this['set']('resolvedBy',_0x3a4104['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x2f1adc=>!!_0x2f1adc),this['set']('attributes',_0x3a4104['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0xc51a3e,_0x3a8fee)=>_0xc51a3e+_0x3a8fee['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x5bc1fd,id:_0x3a123b}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x5bc1fd),{'channelId':_0x5bc1fd,'threadId':_0x3a123b});}['setUnlinkedAt'](_0x3ab556){this['_update']({'unlinkedAt':_0x3ab556});}['resolve']({resolvedAt:_0x594c1e=new Date(),resolvedBy:_0xa6f6ef='',isFromAdapter:_0x401f9b=!0x1}={}){const _0x2f9cc2=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4ca547,id:_0x5c6f31}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x4ca547),{'channelId':_0x4ca547,'threadId':_0x5c6f31,'resolvedAt':_0x594c1e,'resolvedBy':_0xa6f6ef||_0x2f9cc2['id'],'isFromAdapter':_0x401f9b});}['reopen']({isFromAdapter:_0x231811=!0x1}={}){const {channelId:_0x331a4e,id:_0x57469d}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x331a4e),{'channelId':_0x331a4e,'threadId':_0x57469d,'isFromAdapter':_0x231811});}['setContext'](_0x131de7){this['context']||this['_update']({'context':_0x131de7});}['setAttribute'](_0x2d0522,_0x255b44){const _0x332122=wt(this['attributes']);yt(_0x332122,_0x2d0522,_0x255b44),this['_update']({'attributes':_0x332122});}['removeAttribute'](_0x1b9aab){const _0x477474=wt(this['attributes']);Ct(_0x477474,_0x1b9aab),this['_update']({'attributes':_0x477474});}['remove']({isFromAdapter:_0x2ffc65=!0x1}={}){const {channelId:_0x3fef0c,id:_0x21c3e6}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x3fef0c),{'channelId':_0x3fef0c,'threadId':_0x21c3e6,'isFromAdapter':_0x2ffc65});}['attachTo'](_0x1cfd71){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1cfd71});}['addComment'](_0x7ab713){const {channelId:_0xfa2a68,id:_0x579136}=this;this['_repository']['fire'](Nt('addComment',_0xfa2a68,_0x579136),Object['assign']({'channelId':_0xfa2a68,'threadId':_0x579136},_0x7ab713));}['getComment'](_0x1f2e24){if('string'!=typeof _0x1f2e24)throw new _0x29e429('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x1f2e24});return this['comments']['get'](_0x1f2e24);}['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'](_0x238341=>_0x238341['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3518d0){return this['listenTo'](_0x3518d0,'change:authoredAt',()=>{const _0x295376=this['_findOptimalIndex'](_0x3518d0),_0x222bcf=this['comments'];_0x295376-0x1!=_0x222bcf['getIndex'](_0x3518d0)&&_0x295376+0x1!=_0x222bcf['getIndex'](_0x3518d0)&&(this['_remove'](_0x3518d0),this['_add'](_0x3518d0));}),this['comments']['add'](_0x3518d0,this['_findOptimalIndex'](_0x3518d0));}['_update'](_0x2d0a8c){const {channelId:_0x47bbf3,id:_0x218b1b}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x47bbf3),{..._0x2d0a8c,'channelId':_0x47bbf3,'threadId':_0x218b1b});}['_remove'](_0x346a6d){return this['stopListening'](_0x346a6d),_0x346a6d['destroy'](),this['comments']['remove'](_0x346a6d);}['_findOptimalIndex'](_0xdbccaa){const _0x3c8dbf=this['comments']['find'](_0x14a11b=>new Date(_0x14a11b['authoredAt'])['getTime']()>new Date(_0xdbccaa['authoredAt'])['getTime']());return _0x3c8dbf?this['comments']['getIndex'](_0x3c8dbf):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x1d2f19(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x29c99d,_0x55ae09){super();const _0x2e489c=_0x29c99d['context']['plugins']['get'](it)['me'],_0x3ed136=_0x29c99d['getCommentThread'](_0x55ae09['threadId']),_0x116f64=0x0===_0x3ed136['comments']['length'],_0x3c2827=_0x2e489c===_0x55ae09['author'];this['id']=_0x55ae09['id'],this['threadId']=_0x55ae09['threadId'],this['author']=_0x55ae09['author'],this['creator']=_0x55ae09['creator'],this['isExternal']=Boolean(_0x55ae09['attributes']&&_0x55ae09['attributes']['@external']),this['set']('content',_0x55ae09['content']),this['createdAt']=_0x55ae09['createdAt']||new Date(),this['set']('authoredAt',_0x55ae09['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x3ed136,'resolvedAt'),this['set']('attributes',_0x55ae09['attributes']||{}),this['bind']('isEditable')['to'](_0x29c99d,'_permissions',()=>{const _0x51c774=_0x29c99d['getPermissions'](_0x3ed136['channelId'])['write'],_0x37db8f=_0x29c99d['getPermissions'](_0x3ed136['channelId'])['modifyAll'];return _0x3c2827&&_0x51c774||!_0x3c2827&&_0x37db8f;}),this['bind']('isRemovable')['to'](_0x3ed136,'isRemovable',_0x29c99d,'_permissions',_0x1d9b5e=>{const _0x14d3c3=_0x29c99d['getPermissions'](_0x3ed136['channelId'])['write'],_0x4dc627=_0x29c99d['getPermissions'](_0x3ed136['channelId'])['modifyAll'];return _0x3c2827&&_0x14d3c3||_0x1d9b5e&&_0x116f64||!_0x3c2827&&_0x4dc627&&!_0x116f64;}),this['bind']('isReadOnly')['to'](_0x3ed136,'isReadOnly'),this['_repository']=_0x29c99d;}get['weight'](){return Math['max'](function(_0x29839c){const _0x334e17=document['createElement']('div');return _0x334e17['innerHTML']=_0x29839c,_0x334e17['textContent']['length'];}(this['content']),0xc8);}['update'](_0x5b369a){const {threadId:_0x302c47,id:_0x57297d}=this;if(!this['_repository']['hasCommentThread'](_0x302c47))throw new _0x29e429('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x27f247}=this['_repository']['getCommentThread'](_0x302c47);this['_repository']['fire'](Nt('updateComment',_0x27f247,_0x302c47),{'channelId':_0x27f247,'threadId':_0x302c47,'commentId':_0x57297d,..._0x5b369a});}['setAttribute'](_0x34f280,_0x46c40f){const _0x519c48=wt(this['attributes']);yt(_0x519c48,_0x34f280,_0x46c40f),this['update']({'attributes':_0x519c48});}['removeAttribute'](_0xe53021){const _0x219764=wt(this['attributes']);Ct(_0x219764,_0xe53021),this['update']({'attributes':_0x219764});}['remove'](_0x49ca51={}){if(!_0x49ca51['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x14601f,id:_0x4b0b43}=this;if(!this['_repository']['hasCommentThread'](_0x14601f))throw new _0x29e429('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x40a6a7}=this['_repository']['getCommentThread'](_0x14601f);this['_repository']['fire'](Nt('removeComment',_0x40a6a7,_0x14601f),{'channelId':_0x40a6a7,'threadId':_0x14601f,'commentId':_0x4b0b43,..._0x49ca51});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x3e3e10,..._0x5693d3){for(const _0x28560c of _0x5693d3)void 0x0!==_0x28560c&&(_0x3e3e10+=':'+String(_0x28560c));return _0x3e3e10;}class ot extends _0x445992{constructor(_0xc91e5c){super(_0xc91e5c),this['set']('hasContent',!0x1);}['refresh'](){const _0x26ce93=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5bc93d of _0x26ce93['getRanges']())if(this['_hasContent'](_0x5bc93d))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x46cbff=_0x1684c5(),ranges:_0x49f3fd,comment:_0x3fbdaa}={}){const _0x2ed229=this['editor']['model'],_0x380f6f=_0x49f3fd??Array['from'](_0x2ed229['document']['selection']['getRanges']()),_0xc9ef73=[];for(const _0x1f41ea of _0x380f6f)this['_hasContent'](_0x1f41ea)&&_0xc9ef73['push'](this['_trimToContent'](_0x1f41ea));if(!_0xc9ef73['length'])throw new _0x29e429('addcommentthreadcommand-incorrect-ranges',null);_0x3fbdaa&&this['_createCommentThread'](_0x46cbff,_0x3fbdaa),this['_createMarkersFromRanges'](_0x46cbff,_0xc9ef73,!!_0x3fbdaa);}['_createMarkersFromRanges'](_0x163e1e,_0x303ab8,_0x346674){this['editor']['model']['change'](_0x35f664=>{for(const _0x1b1d44 of _0x303ab8){const _0x3fdd87=_0x1684c5()['substr'](0x1,0x5),_0x5d2204='comment:'+_0x163e1e+':'+_0x3fdd87;_0x35f664['addMarker'](_0x5d2204,{'range':_0x1b1d44,'usingOperation':_0x346674,'affectsData':_0x346674});}});}['_createCommentThread'](_0xbaf0b4,_0x63f4bf){const _0x6f5fea=this['editor']['plugins']['get']('CommentsRepository'),_0x20bc41=this['editor']['config']['get']('collaboration.channelId'),_0xc8c038=this['editor']['plugins']['get']('Users')['me'];if(!_0xc8c038)throw new _0x29e429('addcommentthreadcommand-user-not-found',null);_0x6f5fea['addCommentThread']({'threadId':_0xbaf0b4,'channelId':_0x20bc41,'comments':[{'authorId':_0xc8c038['id'],'content':_0x63f4bf,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x6ccb18){for(const _0x3f3b05 of _0x6ccb18['getItems']())if(this['_itemIsContent'](_0x3f3b05))return!0x0;return!0x1;}['_itemIsContent'](_0x5bbbad){return _0x5bbbad['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5bbbad)&&!_0x5bbbad['is']('element','tableCell');}['_trimToContent'](_0x336bc9){const _0x2673c0=_0x2667f0=>!this['_itemIsContent'](_0x2667f0['item']),_0x15842a=_0x336bc9['start']['getLastMatchingPosition'](_0x2673c0),_0x3befad=_0x336bc9['end']['getLastMatchingPosition'](_0x2673c0,{'direction':'backward'});return this['editor']['model']['createRange'](_0x15842a,_0x3befad);}}class b extends _0x3732d9{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b08f8){super(_0x2b08f8),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5e02fa=this['editor'],_0x27fb0b=_0x5e02fa['model']['document']['selection'],_0x501d4a=_0x340747(()=>this['refreshSelectedViews'](),0xa);_0x27fb0b['on']('change:range',(_0x264f60,_0x10dcac)=>{_0x10dcac['directChange']&&(_0x501d4a['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5e02fa['editing']['view']['document'],'change:isFocused',(_0x3e413c,_0xae52f7,_0x1047ad)=>{_0x1047ad&&_0x501d4a();}),this['listenTo'](_0x5e02fa['ui']['focusTracker'],'change:isFocused',(_0x12e24d,_0x1f268e,_0x18ae6b)=>{_0x18ae6b||this['fire']('blur',{'isAnnotationTracked':_0x3edb45=>this['_editorAnnotationsData']['has'](_0x3edb45['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1f375c){if(this['_editorAnnotations']['has'](_0x1f375c['view']))return;this['_editorAnnotations']['add'](_0x1f375c['view']),this['editor']['ui']['focusTracker']['add'](_0x1f375c['view']['element']);const _0x79959c=this['editor']['plugins']['get'](y);this['listenTo'](_0x79959c['collection'],'remove',(_0x1ed863,_0x1b34e2)=>{this['editor']['ui']['focusTracker']['remove'](_0x1b34e2['view']['element']),this['_editorAnnotations']['delete'](_0x1b34e2['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x11490b){if('function'!=typeof _0x11490b)throw new _0x29e429('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x11490b);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x5270c1,annotations:_0x2fdcb6}){const _0x46eaa8=[],_0x2c627e=this['editor']['model']['document']['selection'],_0x45d8c1=Array['from'](_0x2c627e['getRanges']());for(const [_0x4f2c11,_0x150b29]of this['_editorAnnotationsData']){const _0x390702=_0x45f1a9(_0x150b29),_0x32c2a9=_0x2fdcb6['getByInnerView'](_0x4f2c11);_0x390702&&_0x32c2a9&&_0x46eaa8['push']({'annotation':_0x32c2a9,'range':_0x390702});}function _0x45f1a9(_0x2132fb){for(const _0x4e9c53 of _0x2132fb)for(const _0x44d830 of _0x45d8c1)if(_0x4e9c53['containsRange'](_0x44d830,!_0x2c627e['isCollapsed']))return _0x4e9c53;return null;}return _0x46eaa8['sort']((_0x7642e,_0x1dd6ec)=>{const _0x4c6c19=_0x7642e['range'],_0x429b77=_0x1dd6ec['range'];if(!_0x4c6c19['isEqual'](_0x429b77)){if(_0x4c6c19['containsRange'](_0x429b77,!0x0))return 0x1;if(_0x429b77['containsRange'](_0x4c6c19,!0x0))return-0x1;}return _0x7642e['annotation']==_0x5270c1?-0x1:_0x1dd6ec['annotation']==_0x5270c1?0x1:0x0;})['map'](_0x5186b8=>_0x5186b8['annotation']);}get['_editorAnnotationsData'](){const _0x363dd0=new Map();for(const _0x2cfe99 of Array['from'](this['_dataCollectors']))for(const [_0x84d8ec,_0x330465]of _0x2cfe99())_0x363dd0['set'](_0x84d8ec,_0x330465);return _0x363dd0;}}class st extends _0x3732d9{['afterInit'](){const _0x3f8c3e=this['editor'];if(!_0x3f8c3e['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3f8c3e['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3732d9{constructor(_0x41c6de){super(_0x41c6de),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x32ba02=this['editor'],_0x58e587=_0x32ba02['commands']['get']('importWord'),_0x4caf3c=_0x32ba02['plugins']['get'](it);_0x58e587&&(_0x58e587['on']('execute',(_0x20f717,[,_0x25793d])=>{_0x25793d['collaboration_features']={'comments':!0x0,'user_id':_0x4caf3c['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x58e587,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0xe169aa,_0x3e7d8f){const {comment_threads:_0x58db26}=_0x3e7d8f;_0x58db26&&_0x58db26['forEach'](({thread_id:_0x591541,comments:_0x2b0e24,is_resolved:_0x122497})=>{const _0x57c6b7=new Date(),_0xd71b80=_0x2b0e24['map'](({author:_0x970922,content:_0x3c4cb4,created_at:_0x4dd203})=>({'content':_0x3c4cb4,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x57c6b7,'attributes':{'@external':{'authorName':_0x970922,'createdAt':_0x4dd203?new Date(_0x4dd203):new Date(),'source':'importWord'}}})),_0x4b566a=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4b566a,'threadId':_0x591541,'comments':_0xd71b80,'resolvedAt':_0x122497?_0x57c6b7:null});});}}class at extends _0x3732d9{constructor(_0x3e3f36){super(_0x3e3f36),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x414939=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x414939,'contentInsertion',(_0x17540c,_0x4599cd)=>this['_removeMarkersWithoutThreads'](_0x4599cd['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x2b0386){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x2b0386;const _0x9bc9f0=this['editor']['plugins']['get']('CommentsRepository');for(const _0x6ec00a of _0x2b0386['keys']()){const [_0x3a15a7,_0x118930]=_0x6ec00a['split'](':');'comment'!=_0x3a15a7||_0x9bc9f0['hasCommentThread'](_0x118930)||_0x2b0386['delete'](_0x6ec00a);}return _0x2b0386;}['_registerMarkerInClipboardPipeline'](){const _0x18ebb9=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x51f4f6=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x51f4f6&&_0x18ebb9['_registerMarkerToCopy']('comment',_0x51f4f6);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x590400){switch(_0x590400){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x9e2f87){const _0x123916=_0x9e2f87['split'](':');return{'group':_0x123916[0x0],'id':_0x123916[0x1],'part':_0x123916[0x2]};}class ut extends _0x3732d9{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x26c40e,_0x5e8693)=>{if(!_0x5e8693['options']['showCommentHighlights'])return null;if(_0x5e8693['options']['ignoreResolvedComments']){const {id:_0x41e9bf}=ft(_0x26c40e['markerName']),_0x2226f2=this['editor']['plugins']['get'](o);if(_0x2226f2['getCommentThread'](_0x41e9bf)?.['isResolved']&&_0x26c40e['item'])return _0x5e8693['consumable']['consume'](_0x26c40e['item'],'addMarker:'+_0x26c40e['markerName']),_0x5e8693['consumable']['consume'](_0x26c40e['item'],'removeMarker:'+_0x26c40e['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x43bd51=>{_0x43bd51['on']('addMarker:comment',(_0x24e32d,_0x443a4f,_0x5b5428)=>{if(!_0x5b5428['options']['showCommentHighlights'])return;const _0x10740d=_0x443a4f['item'];if(!_0x10740d)return;const _0x1f9a7b=_0x5b5428['mapper']['toViewElement'](_0x10740d);this['editor']['model']['schema']['isObject'](_0x10740d)&&_0x1f9a7b&&!_0x1f9a7b['getCustomProperty']('widget')&&_0x1f9a7b['is']('containerElement')&&_0x46b3bf(_0x1f9a7b,_0x5b5428['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x325985,{writer:_0x5b7c5c,options:_0xaab2db})=>{if(!_0xaab2db['showCommentHighlights'])return null;const _0x399772=_0x5b7c5c['createContainerElement']('div'),_0x47c2e2=_0x5b7c5c['createEmptyElement']('hr');return _0x5b7c5c['addClass']('ck-horizontal-line',_0x399772),_0x5b7c5c['insert'](_0x5b7c5c['createPositionAt'](_0x399772,0x0),_0x47c2e2),_0x399772;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x2e8ac4,{writer:_0x259be1,options:_0x590024})=>{if(!_0x590024['showCommentHighlights'])return null;const _0x3e0dad=_0x259be1['createContainerElement']('span'),_0x149881=_0x259be1['createEmptyElement']('img');return _0x259be1['addClass']('image-inline',_0x3e0dad),_0x259be1['insert'](_0x259be1['createPositionAt'](_0x3e0dad,0x0),_0x149881),_0x3e0dad;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xf5e417,{writer:_0x597adb,options:_0x47a470})=>{if(_0x47a470['showCommentHighlights'])return _0x597adb['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x58358e,_0x1a89bc,_0x2f42fd)=>{_0x2f42fd['options']['showCommentHighlights']&&_0x58358e['stop']();},{'priority':'high'});}}class r extends _0x3732d9{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(_0xdb192){super(_0xdb192),this['set']('isThreadsLoadingPaused',!0x0),_0xdb192['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x1dd8cd,_0x17c8ec,_0x9520e2,_0x220696)=>{const _0x1f83be=_0xdb192['plugins']['get'](o),_0x11781a=_0x9520e2?ft(_0x9520e2)['id']:null;_0xdb192['model']['change'](()=>{if(_0x11781a){const _0x50cd0c=this['getAllMarkersForId'](_0x11781a);for(const _0x3cebff of _0x50cd0c)_0xdb192['editing']['reconvertMarker'](_0x3cebff);}if(_0x220696){const {id:_0x98931b}=ft(_0x220696),_0x587aab=_0x1f83be['getCommentThread'](_0x98931b);if(_0x587aab&&_0x587aab['unlinkedAt'])return;if(_0x587aab&&!_0x587aab['isAttached'])return;const _0x420519=this['getAllMarkersForId'](_0x98931b);for(const _0x26f1ed of _0x420519)_0xdb192['editing']['reconvertMarker'](_0x26f1ed);}}),_0x11781a&&this['scrollToThreadMarker'](_0x11781a);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x199682=this['editor'],_0x154ec6=_0x199682['plugins']['get'](o),_0xab42bb=_0x199682['config']['get']('collaboration.channelId'),_0x10f21b=_0x154ec6['getCommentThreads']()['filter'](_0x541877=>_0x541877['channelId']!==_0xab42bb);_0x199682['commands']['add']('addCommentThread',new ot(_0x199682)),this['listenTo'](_0x199682,'change:isReadOnly',(_0x4e294b,_0x239aad,_0x388e4f)=>{_0x154ec6['switchReadOnly'](_0x388e4f,_0x199682['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x154ec6,dt('addCommentThread',_0xab42bb),(_0x1e88c8,{threadId:_0xe2efde})=>{const _0x297657=this['editor']['plugins']['get'](o)['getCommentThread'](_0xe2efde);_0x297657?.['unlinkedAt']&&this['_attachArchivedThread'](_0xe2efde);}),this['listenTo'](_0x154ec6,dt('removeCommentThread',_0xab42bb),(_0xc85ecc,{threadId:_0x4bf05b})=>{_0x199682['model']['enqueueChange']({'isUndoable':!0x1},_0x47b572=>{const _0x1e723e=this['getAllMarkersForId'](_0x4bf05b);for(const _0x48d1ed of _0x1e723e)_0x47b572['removeMarker'](_0x48d1ed);});}),this['listenTo'](_0x154ec6,dt('resolveCommentThread',_0xab42bb),(_0x5aea2d,{threadId:_0x13d8a2})=>{(this['_reconvertMarkers'](_0x13d8a2),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x13d8a2)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x154ec6,dt('reopenCommentThread',_0xab42bb),(_0x297e97,{threadId:_0x1636c3})=>{this['_reconvertMarkers'](_0x1636c3);},{'priority':'low'}),this['listenTo'](_0x154ec6,dt('addComment',_0xab42bb),(_0x540daf,{threadId:_0x2b9671,isFromAdapter:_0x5c54b1})=>{const _0x5c5257=this['getAllMarkersForId'](_0x2b9671);if(_0x5c54b1||0x0==_0x5c5257['length']||!_0x154ec6['hasCommentThread'](_0x2b9671))return;0x1===_0x154ec6['getCommentThread'](_0x2b9671)['length']&&_0x199682['model']['enqueueChange']({'isUndoable':!0x1},_0x1cac3e=>{for(const _0x3eda8e of _0x5c5257)_0x1cac3e['updateMarker'](_0x3eda8e,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x10f21b);}['afterInit'](){!async function(_0x363ae0){const _0x1f7ce9=_0x2dd28b([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]),_0x3e028e=0x73460ab3,_0x1632c8=0x734170d3^_0x3e028e,_0x2dca6f=window[_0x2dd28b([0x44,0x61,0x74,0x65])][_0x2dd28b([0x6e,0x6f,0x77])](),_0x4c4828=_0x363ae0[_0x2dd28b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cdf93=new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10de62=>{_0x4c4828[_0x2dd28b([0x6f,0x6e,0x63,0x65])](_0x2dd28b([0x72,0x65,0x61,0x64,0x79]),_0x10de62);}),_0x3be36d={[_0x2dd28b([0x6b,0x74,0x79])]:_0x2dd28b([0x45,0x43]),[_0x2dd28b([0x75,0x73,0x65])]:_0x2dd28b([0x73,0x69,0x67]),[_0x2dd28b([0x63,0x72,0x76])]:_0x2dd28b([0x50,0x2d,0x32,0x35,0x36]),[_0x2dd28b([0x78])]:_0x2dd28b([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]),[_0x2dd28b([0x79])]:_0x2dd28b([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]),[_0x2dd28b([0x61,0x6c,0x67])]:_0x2dd28b([0x45,0x53,0x32,0x35,0x36])},_0x5506c0=_0x4c4828[_0x2dd28b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dd28b([0x67,0x65,0x74])](_0x2dd28b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18ac9a(){let _0x296438,_0x566c58=null,_0x295882=null;try{if(_0x5506c0==_0x2dd28b([0x47,0x50,0x4c]))return _0x2dd28b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x296438=_0x21c29b(),!_0x296438)return _0x2dd28b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x296438[_0x2dd28b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x295882=_0x35ea6a(_0x296438[_0x2dd28b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x296438[_0x2dd28b([0x6a,0x74,0x69])])),await _0x206fa7()?_0x525d68()?_0x438372()?_0x2dd28b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ce111()?(_0x296438[_0x2dd28b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dd28b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x566c58=_0xa15a63(_0x2dd28b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x296438[_0x2dd28b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dd28b([0x74,0x72,0x69,0x61,0x6c])&&(_0x566c58=_0xa15a63(_0x2dd28b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30d58d()):_0x2dd28b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dd28b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dd28b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2dd28b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x438372(){const _0x4c283f=[_0x2dd28b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dd28b([0x74,0x72,0x69,0x61,0x6c])][_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x296438[_0x2dd28b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2dca6f/0x3e8:0xe10*_0x1632c8;return _0x296438[_0x2dd28b([0x65,0x78,0x70])]<_0x4c283f;}function _0x525d68(){const _0x31cc87=_0x296438[_0x2dd28b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x31cc87)return!0x1;if(_0x31cc87[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd28b([0x2a])))return!0x0;if(_0x31cc87[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd28b([0x43,0x4d,0x54])))return!0x0;if(_0x31cc87[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd28b([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x5e416d())return!0x0;if(_0x31cc87[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd28b([0x52,0x43,0x4d,0x54]))){if(_0x1c731e())return!0x0;if(_0xd21f67()||_0x30837a())return!0x0;}return!0x1;}function _0x5ce111(){const _0x3a1c0a=_0x296438[_0x2dd28b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a1c0a||0x0==_0x3a1c0a[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dd372}=new URL(window[_0x2dd28b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a1c0a[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dd372))return!0x0;const _0x3ff293=_0x5dd372[_0x2dd28b([0x73,0x70,0x6c,0x69,0x74])](_0x2dd28b([0x2e]));return _0x3a1c0a[_0x2dd28b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x373078=>_0x373078[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd28b([0x2a])))[_0x2dd28b([0x6d,0x61,0x70])](_0x147787=>_0x147787[_0x2dd28b([0x73,0x70,0x6c,0x69,0x74])](_0x2dd28b([0x2e])))[_0x2dd28b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47dbb6=>_0x47dbb6[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3ff293[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dd28b([0x6d,0x61,0x70])](_0x17fe3c=>Array(_0x3ff293[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17fe3c[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dd28b([0x66,0x69,0x6c,0x6c])](_0x17fe3c[0x0]===_0x2dd28b([0x2a])?_0x2dd28b([0x2a]):'')[_0x2dd28b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17fe3c))[_0x2dd28b([0x73,0x6f,0x6d,0x65])](_0x31e0cd=>_0x3ff293[_0x2dd28b([0x65,0x76,0x65,0x72,0x79])]((_0x40001c,_0x5067fc)=>_0x31e0cd[_0x5067fc]===_0x40001c||_0x31e0cd[_0x5067fc]===_0x2dd28b([0x2a])));}function _0x30d58d(){return _0x566c58&&_0x295882?new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b042e,_0x425a28)=>{_0x566c58[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0x5b042e,_0x425a28),_0x295882[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0xfbf95a=>{_0xfbf95a!=_0x2dd28b([0x56,0x61,0x6c,0x69,0x64])&&_0x5b042e(_0xfbf95a);},_0x425a28);}):_0x566c58||_0x295882||_0x2dd28b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35ea6a(_0x17d8d8,_0x57e8e7){return new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb857a=>{if(_0x2b994a())return _0xb857a(_0x2dd28b([0x56,0x61,0x6c,0x69,0x64]));_0x4cdaf7(),_0x4c4828[_0x2dd28b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dd28b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23b672=!0x1;const _0x483b0d=_0x1684c5();function _0x202dc7(_0xb6dbb5){return!!_0xb6dbb5&&(typeof _0xb6dbb5===_0x2dd28b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb6dbb5===_0x2dd28b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb6dbb5[_0x2dd28b([0x74,0x68,0x65,0x6e])]===_0x2dd28b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb6dbb5[_0x2dd28b([0x63,0x61,0x74,0x63,0x68])]===_0x2dd28b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x347495(_0x44a5a0){_0x269c3c(_0x44a5a0)[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0x588776=>{if(!_0x588776||_0x588776[_0x2dd28b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dd28b([0x6f,0x6b]))return _0x2dd28b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4671b1(_0x2de16f(_0x483b0d+_0x57e8e7))!=_0x588776[_0x2dd28b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dd28b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dd28b([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0x7e8926=>(_0x367690(),_0x7e8926),()=>{const _0x56bfec=_0x2e9a94();return null==_0x56bfec?(_0x367690(),_0x2dd28b([0x56,0x61,0x6c,0x69,0x64])):_0x2dd28b(_0x2dca6f-_0x56bfec>(0x574a8eb3^_0x3e028e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0xb857a)[_0x2dd28b([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb857a(_0x2dd28b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbacc69=0x7370e433^_0x3e028e;function _0x367690(){const _0x35b6a5=_0x2dd28b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4671b1(_0x2de16f(_0x17d8d8)),_0x4715e8=_0x349ab7(_0x4671b1(window[_0x2dd28b([0x4d,0x61,0x74,0x68])][_0x2dd28b([0x63,0x65,0x69,0x6c])](_0x2dca6f/_0xbacc69)));window[_0x2dd28b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dd28b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35b6a5,_0x4715e8);}function _0x2e9a94(){const _0x2e4d46=_0x2dd28b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4671b1(_0x2de16f(_0x17d8d8)),_0x1bf631=window[_0x2dd28b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dd28b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e4d46);return _0x1bf631?window[_0x2dd28b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x349ab7(_0x1bf631),0x10)*_0xbacc69:null;}function _0x269c3c(_0x183a21){return new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42d2c4,_0x11549f)=>{_0x183a21[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0x42d2c4,_0x11549f),window[_0x2dd28b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11549f,0x7347de73^_0x3e028e);});}}_0x4c4828[_0x2dd28b([0x6f,0x6e])](_0x2dd28b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34a67f,_0x1c7693)=>{if(_0x1c7693[0x0]!=_0x17d8d8)return _0xb857a(_0x2dd28b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c7693[0x1]={..._0x1c7693[0x1],[_0x2dd28b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x483b0d};},{[_0x2dd28b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dd28b([0x68,0x69,0x67,0x68])}),_0x4c4828[_0x2dd28b([0x6f,0x6e])](_0x2dd28b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58a4c3=>{_0x202dc7(_0x58a4c3[_0x2dd28b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23b672=!0x0,_0x347495(_0x58a4c3[_0x2dd28b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dd28b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dd28b([0x6c,0x6f,0x77])}),_0x2cdf93[_0x2dd28b([0x74,0x68,0x65,0x6e])](()=>{_0x23b672||_0xb857a(_0x2dd28b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b994a(){return _0x4c4828[_0x2dd28b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dd28b([0x76,0x69,0x65,0x77])][_0x2dd28b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dd28b([0x61,0x75,0x74,0x6f]);}function _0x4cdaf7(){_0x4c4828[_0x2dd28b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dd28b([0x76,0x69,0x65,0x77])][_0x2dd28b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dd28b([0x61,0x75,0x74,0x6f]);}}function _0xa15a63(_0xb5366){const _0x556348=[new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d79c0=>setTimeout(_0x4d79c0,0x734f347f^_0x3e028e)),_0x2cdf93[_0x2dd28b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6756=>{let _0x2a1ba5=0x0;_0x4c4828[_0x2dd28b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dd28b([0x6f,0x6e])](_0x2dd28b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4788df,_0x30558e)=>{_0x30558e[0x0][_0x2dd28b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a1ba5++,_0x2a1ba5==(0x73460b4b^_0x3e028e)&&(_0x2f6756(),_0x4788df[_0x2dd28b([0x6f,0x66,0x66])]());});}))];return window[_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dd28b([0x72,0x61,0x63,0x65])](_0x556348)[_0x2dd28b([0x74,0x68,0x65,0x6e])](()=>_0xb5366);}async function _0x3472b5(){await _0x2cdf93,_0x4c4828[_0x2dd28b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dd28b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e2fec,_0x4c4828[_0x2dd28b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dd28b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e2fec,_0x4c4828[_0x2dd28b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dd28b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e416d(){return window[_0x2dd28b([0x67,0x6c,0x6f,0x62])]&&window[_0x2dd28b([0x67,0x6c,0x6f,0x62])][_0x2dd28b([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1c731e(){return _0x2ec815(_0x2dd28b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x124407(_0x2dd28b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2dd28b([0x73,0x74,0x61,0x74,0x65])]==_0x2dd28b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xd21f67(){return _0x2ec815(_0x2dd28b([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 _0x30837a(){return _0x2ec815(_0x2dd28b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x25da3c(_0x43e74e){const _0xc0ad9d=_0x30daef();_0x4c4828[_0xc0ad9d]=_0x2dd28b([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43e74e,_0x43e74e!=_0x2dd28b([0x56,0x61,0x6c,0x69,0x64])&&_0x3472b5();}function _0x30daef(){const _0x49c091=window[_0x2dd28b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dd28b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dd28b([0x6e,0x6f,0x77])]())[_0x2dd28b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dd28b([0x2e]),'');let _0x5615ea=_0x2dd28b([0x4b]);for(let _0xbb91e7=0x0;_0xbb91e7<_0x49c091[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbb91e7+=0x2){let _0x5d5bd2=window[_0x2dd28b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49c091[_0x2dd28b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbb91e7,_0xbb91e7+0x2));_0x5d5bd2>=_0x1f7ce9[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d5bd2-=_0x1f7ce9[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5615ea+=_0x1f7ce9[_0x5d5bd2];}return _0x5615ea;}function _0x21c29b(){const _0x27d967=_0x5506c0[_0x2dd28b([0x73,0x70,0x6c,0x69,0x74])](_0x2dd28b([0x2e]));if(0x3!=_0x27d967[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x68f0c1(_0x27d967[0x1]);function _0x68f0c1(_0x4a28de){const _0x4bb004=_0x22c2b5(_0x4a28de);return _0x4bb004&&_0x2b35b4()?_0x4bb004:null;function _0x2b35b4(){const _0x46f7b1=_0x4bb004[_0x2dd28b([0x6a,0x74,0x69])],_0x15c9d2=window[_0x2dd28b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46f7b1[_0x2dd28b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46f7b1[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x400379={..._0x4bb004,[_0x2dd28b([0x6a,0x74,0x69])]:_0x46f7b1[_0x2dd28b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46f7b1[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x400379[_0x2dd28b([0x76,0x63])],_0x2de16f(_0x400379)==_0x15c9d2;}}}async function _0x206fa7(){let _0x2d561f=!0x0;try{const _0x1e32da=_0x5506c0[_0x2dd28b([0x73,0x70,0x6c,0x69,0x74])](_0x2dd28b([0x2e])),[_0x13c6ff,_0x5b9664,_0x550bb3]=_0x1e32da;return _0x1f2e0e(_0x13c6ff),await _0x1c29f0(_0x13c6ff,_0x5b9664,_0x550bb3),_0x2d561f;}catch{return!0x1;}function _0x1f2e0e(_0x272888){const _0x1d1047=_0x22c2b5(_0x272888);_0x1d1047&&_0x1d1047[_0x2dd28b([0x61,0x6c,0x67])]==_0x2dd28b([0x45,0x53,0x32,0x35,0x36])||(_0x2d561f=!0x1);}async function _0x1c29f0(_0x54ceb5,_0x3b7483,_0x3446b0){const _0x3ec528=window[_0x2dd28b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dd28b([0x66,0x72,0x6f,0x6d])](_0x5e9424(_0x3446b0),_0x584c59=>_0x584c59[_0x2dd28b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9b0251=new window[(_0x2dd28b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dd28b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54ceb5+_0x2dd28b([0x2e])+_0x3b7483),_0x37599b=window[_0x2dd28b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dd28b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37599b)return;const _0x29b32f=await _0x37599b[_0x2dd28b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dd28b([0x6a,0x77,0x6b]),_0x3be36d,{[_0x2dd28b([0x6e,0x61,0x6d,0x65])]:_0x2dd28b([0x45,0x43,0x44,0x53,0x41]),[_0x2dd28b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dd28b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dd28b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37599b[_0x2dd28b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dd28b([0x6e,0x61,0x6d,0x65])]:_0x2dd28b([0x45,0x43,0x44,0x53,0x41]),[_0x2dd28b([0x68,0x61,0x73,0x68])]:{[_0x2dd28b([0x6e,0x61,0x6d,0x65])]:_0x2dd28b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29b32f,_0x3ec528,_0x9b0251)||(_0x2d561f=!0x1);}}function _0x22c2b5(_0x5aa52f){return _0x5aa52f[_0x2dd28b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dd28b([0x65,0x79]))?JSON[_0x2dd28b([0x70,0x61,0x72,0x73,0x65])](_0x5e9424(_0x5aa52f)):null;}function _0x5e9424(_0x59a0f4){return window[_0x2dd28b([0x61,0x74,0x6f,0x62])](_0x59a0f4[_0x2dd28b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dd28b([0x2b]))[_0x2dd28b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dd28b([0x2f])));}function _0x2de16f(_0x186885){let _0x8dba=0x1505;function _0x52ea8(_0x1e472e){for(let _0xd6a47c=0x0;_0xd6a47c<_0x1e472e[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd6a47c++){const _0x1a7e69=_0x1e472e[_0x2dd28b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd6a47c);_0x8dba=(_0x8dba<<0x5)+_0x8dba+_0x1a7e69,_0x8dba&=_0x8dba;}}function _0x1623b1(_0x572344){Array[_0x2dd28b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x572344)?_0x572344[_0x2dd28b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1623b1):_0x572344&&typeof _0x572344==_0x2dd28b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dd28b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x572344)[_0x2dd28b([0x73,0x6f,0x72,0x74])]()[_0x2dd28b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x208cfa,_0x5ccb7c])=>{_0x52ea8(_0x208cfa),_0x1623b1(_0x5ccb7c);}):_0x52ea8(window[_0x2dd28b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x572344));}return _0x1623b1(_0x186885),_0x8dba>>>0x0;}function _0x4671b1(_0x5464aa){return _0x5464aa[_0x2dd28b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dd28b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dd28b([0x30]));}function _0x349ab7(_0x30cb6e){return _0x30cb6e[_0x2dd28b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dd28b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dd28b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ec815(_0x1d3845){return _0x4c4828[_0x2dd28b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2dd28b([0x68,0x61,0x73])](_0x1d3845);}function _0x124407(_0x23fe39){return _0x4c4828[_0x2dd28b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2dd28b([0x67,0x65,0x74])](_0x23fe39);}function _0x2e2fec(){}function _0x2dd28b(_0x3b031f){return _0x3b031f['map'](_0x543abc=>String['fromCharCode'](_0x543abc))['join']('');}_0x25da3c(await _0x18ac9a());}(this);}['destroy'](){const _0x3f9a02=this['editor']['plugins']['get'](o),_0x40db8d=this['editor']['config']['get']('collaboration.channelId');for(const _0x56689a of _0x3f9a02['getCommentThreads']({'channelId':_0x40db8d}))_0x3f9a02['_detachCommentThread'](_0x56689a['id']),_0x3f9a02['_threads']['delete'](_0x56689a['id']);super['destroy']();}['hasMarkerForId'](_0xfbdba3){return this['getAllMarkersForId'](_0xfbdba3)['length']>0x0;}['getAllMarkersForId'](_0x314f0c){const _0x304ab0=[];for(const _0x12cb22 of this['editor']['model']['markers'])_0x12cb22['name']['startsWith']('comment:'+_0x314f0c)&&_0x304ab0['push'](_0x12cb22);return _0x304ab0;}['scrollToThreadMarker'](_0x5492b1){setTimeout(()=>{const _0x387dab=this['_getTargetForId'](_0x5492b1);if(!_0x387dab)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5492b1&&nt({'target':_0x387dab[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x2cac90){this['editor']['model']['change'](()=>{for(const _0x50229f of this['getAllMarkersForId'](_0x2cac90))this['editor']['editing']['reconvertMarker'](_0x50229f);});}['_attachArchivedThread'](_0x4e8741){const _0x269276=this['editor']['plugins']['get'](o),_0x480f69=this['editor']['plugins']['get'](b),_0x10b0ef=_0x269276['getCommentThread'](_0x4e8741);if(!_0x10b0ef['isAttached']){const _0x2a8e05=_0x10b0ef['attachTo'](()=>this['_getTargetForId'](_0x10b0ef['id']));_0x480f69['registerAnnotation'](_0x2a8e05),_0x10b0ef['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x287250=this['editor'],_0x348e59=_0x287250['plugins']['get'](it);_0x287250['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x3461e4,_0xedeb3a)=>{const {id:_0x5ebd16}=ft(_0x3461e4['markerName']),_0x5d4210=_0x287250['plugins']['get'](o)['getCommentThread'](_0x5ebd16),_0x282a1a=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5ebd16;let _0x2985ed;if(_0x5d4210&&_0x5d4210['isResolved']&&!_0x282a1a&&_0x3461e4['item'])return _0xedeb3a['consumable']['consume'](_0x3461e4['item'],'addMarker:'+_0x3461e4['markerName']),_0xedeb3a['consumable']['consume'](_0x3461e4['item'],'removeMarker:'+_0x3461e4['markerName']),null;const _0x54fea1=['ck-comment-marker'];return _0x282a1a&&_0x54fea1['push']('ck-comment-marker--active'),_0x2985ed=_0x5d4210?.['length']?_0x5d4210['comments']['first']['author']['id']:_0x348e59['me']['id'],{'classes':_0x54fea1,'attributes':{'data-comment':_0x5ebd16,'data-author-id':_0x2985ed}};}}),_0x287250['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x682cf9,{options:_0x33f253})=>{if(_0x33f253['showCommentHighlights'])return null;const _0x246075=_0x287250['plugins']['get'](o),_0x5a14a9=_0x287250['model']['markers']['get'](_0x682cf9),{id:_0x3c187a,part:_0x19c428}=ft(_0x682cf9);return _0x5a14a9&&!_0x5a14a9['affectsData']||_0x33f253['ignoreResolvedComments']&&_0x246075['getCommentThread'](_0x3c187a)?.['isResolved']?null:{'group':'comment','name':_0x19c428?_0x3c187a+':'+_0x19c428:_0x3c187a};}}),_0x287250['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2aa2ed,{writer:_0x4621e5})=>_0x4621e5['createElement']('$marker',{'data-name':'comment:'+_0x2aa2ed['getAttribute']('id')})}),_0x287250['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x320193=this['editor'],_0x3333eb=_0x320193['plugins']['get'](o),_0x481ee1=new Set(),_0x4bc1a5=new Set();_0x320193['model']['document']['registerPostFixer'](_0xbf72b7=>{let _0x47e8e2=!0x1;for(const {name:_0x1ae8c4,data:_0x47092d}of _0x320193['model']['document']['differ']['getChangedMarkers']()){const {group:_0x43415f,id:_0x46471}=ft(_0x1ae8c4);let _0x38f80d=_0x47092d['newRange'];if('comment'!==_0x43415f||!_0x38f80d)continue;const _0x495565='$graveyard'===_0x38f80d['root']['rootName'];_0x495565||(_0x38f80d=ht(_0x38f80d,_0x320193['model']),!_0x38f80d||_0x38f80d['isCollapsed']||!_0x47092d['newRange']||_0x38f80d['isEqual'](_0x47092d['newRange']))?_0x320193['model']['hasContent'](_0x38f80d)&&!_0x495565?this['isThreadsLoadingPaused']?_0x481ee1['add'](_0x1ae8c4):this['_handleThreadMarker'](_0x1ae8c4,_0x46471):(_0x4bc1a5['add'](_0x1ae8c4),_0x481ee1['delete'](_0x1ae8c4),_0xbf72b7['removeMarker'](_0x1ae8c4),_0x47e8e2=!0x0):(_0xbf72b7['updateMarker'](_0x1ae8c4,{'range':_0x38f80d}),_0x47e8e2=!0x0);}return _0x47e8e2;}),this['on']('change:isThreadsLoadingPaused',(_0x55a96f,_0xf0e647,_0x22eba9)=>{if(!_0x22eba9&&_0x481ee1['size'])for(const _0x5b8d39 of _0x481ee1){const {id:_0x1deb14}=ft(_0x5b8d39);_0x481ee1['delete'](_0x5b8d39),_0x320193['model']['markers']['get'](_0x5b8d39)&&this['_handleThreadMarker'](_0x5b8d39,_0x1deb14);}}),this['listenTo'](_0x320193['model']['document'],'change',()=>{for(const {name:_0x1f0338,data:{newRange:_0x2490c5}}of _0x320193['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3188ff,id:_0x2391a6}=ft(_0x1f0338);if('comment'!==_0x3188ff)continue;const _0x37bb44=_0x3333eb['getCommentThread'](_0x2391a6),_0x4d32a7=this['hasMarkerForId'](_0x2391a6);_0x37bb44&&(!_0x37bb44['_hasTargetInContent']&&_0x2490c5&&_0x320193['editing']['view']['once']('render',()=>{const _0x402ec6=_0x320193['plugins']['get'](y),_0x309ffb=_0x3333eb['_threadToController']['get'](_0x37bb44)['view'];_0x402ec6['getByInnerView'](_0x309ffb)['refreshVisibility']();},{'priority':'low'}),_0x37bb44['_hasTargetInContent']=_0x4d32a7||!!_0x2490c5),_0x2490c5||(_0x4bc1a5['add'](_0x1f0338),_0x481ee1['delete'](_0x1f0338));}for(const _0x9c9af8 of _0x4bc1a5){const {id:_0x3f297a}=ft(_0x9c9af8),_0x41b065=_0x3333eb['getCommentThread'](_0x3f297a);if(_0x481ee1['delete'](_0x9c9af8),!_0x41b065)continue;const _0x487af7=this['hasMarkerForId'](_0x3f297a);_0x487af7||_0x41b065['isSubmitted']?_0x487af7||_0x41b065['unlinkedAt']||_0x41b065['setUnlinkedAt'](new Date()):_0x41b065['remove']();}_0x4bc1a5['clear']();});}['_handleInitialThreads'](_0x28fd6f){_0x28fd6f['forEach'](_0x3625a9=>{_0x3625a9['unlinkedAt']&&this['_attachArchivedThread'](_0x3625a9['id']);});}['_getTargetForId'](_0x2d27e3){const _0x1a6b1a=this['editor'],_0x75b36d=this['getAllMarkersForId'](_0x2d27e3);return et(_0x1a6b1a['editing'],_0x75b36d);}['_getTextContext'](_0x4ec770){const _0x11db6e=this['getAllMarkersForId'](_0x4ec770);let _0x4229a5='',_0x6e9c20=!0x1;for(const _0x411c60 of _0x11db6e){const _0x5d8ab1=_0x411c60['getRange']();for(const _0x16804c of Array['from'](_0x5d8ab1['getItems']()))_0x16804c['is']('$textProxy')?(_0x4229a5&&_0x6e9c20&&(_0x4229a5+='\x20',_0x6e9c20=!0x1),_0x4229a5+=_0x16804c['data']):_0x6e9c20=!0x0;_0x6e9c20=!0x0;}return _0x4229a5['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x46e61f,_0x17e567){const _0x4f9715=this['editor'],_0x4a80e9=_0x4f9715['plugins']['get'](o);let _0x2c4928=_0x4a80e9['getCommentThread'](_0x17e567);const _0xbe414d=_0x4f9715['config']['get']('collaboration.channelId'),_0x46b9b7=_0x4f9715['plugins']['get'](b);if(_0x2c4928&&(_0x2c4928['unlinkedAt']&&_0x2c4928['setUnlinkedAt'](null),_0x2c4928['isAttached']))return _0x2c4928;return!this['getAllMarkersForId'](_0x17e567)[0x0]['managedUsingOperations']?_0x4f9715['editing']['view']['once']('render',()=>{if(_0x4a80e9['getCommentThread'](_0x17e567))return;const _0x3176d1=_0x4f9715['plugins']['get'](y);_0x2c4928=_0x4a80e9['openNewCommentThread']({'channelId':_0xbe414d,'threadId':_0x17e567,'target':()=>this['_getTargetForId'](_0x17e567),'context':{'type':'text','value':this['_getTextContext'](_0x17e567)}});const _0x3e8e72=_0x4a80e9['_threadToController']['get'](_0x2c4928)['view'],_0x8c4868=_0x3176d1['getByInnerView'](_0x3e8e72);_0x8c4868&&_0x46b9b7['registerAnnotation'](_0x8c4868);},{'priority':'low'}):_0x4a80e9['fetchCommentThread']({'channelId':_0xbe414d,'threadId':_0x17e567})['then'](_0x4a528a=>{if('destroyed'!==_0x4f9715['state']){if(_0x2c4928=_0x4a528a,_0x2c4928&&!_0x2c4928['isAttached']){const _0x22516a=_0x2c4928['attachTo'](()=>this['_getTargetForId'](_0x17e567));_0x46b9b7['registerAnnotation'](_0x22516a),_0x2c4928['isResolved']&&this['_reconvertMarkers'](_0x17e567);}else{if(!_0x2c4928){const _0x2e4f66=this['getAllMarkersForId'](_0x17e567);_0x4f9715['model']['change'](_0x141f3d=>{for(const _0x4b0565 of _0x2e4f66)_0x141f3d['removeMarker'](_0x4b0565);});}}}}),_0x2c4928;}['_handleThreadMarker'](_0x433b82,_0x3045e3){const _0x5f158a=this['_attachMarkerToThread'](_0x433b82,_0x3045e3);_0x5f158a&&!_0x5f158a['context']&&_0x5f158a['setContext']({'type':'text','value':this['_getTextContext'](_0x3045e3)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5cd4d4=this['editor'];rt(_0x5cd4d4['model'],({left:_0x139fe3,entered:_0x24cbe7})=>{for(const _0x230388 of _0x139fe3)if(mt(_0x230388)){_0x5cd4d4['ui']['ariaLiveAnnouncer']['announce'](N(_0x5cd4d4['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x33e2ac of _0x24cbe7)if(mt(_0x33e2ac)){_0x5cd4d4['ui']['ariaLiveAnnouncer']['announce'](N(_0x5cd4d4['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x333141)));break;}});}}function dt(_0x155075,_0x1bcc1a){return _0x1bcc1a?_0x155075+':'+_0x1bcc1a:_0x155075;}function ht(_0x34c578,_0x185632){const _0xa1c423=_0x185632['schema'],_0x333c35=_0x185632['createRange'](_0x34c578['start']);for(const _0x591994 of _0x34c578['getWalker']()){const {type:_0x54bf38,item:_0x59d5ff,nextPosition:_0x47d9c2}=_0x591994;if('text'===_0x54bf38||_0xa1c423['isObject'](_0x59d5ff)){const _0x14cb7c=_0x185632['createPositionBefore'](_0x59d5ff);_0x333c35['isCollapsed']&&(_0x333c35['start']=_0x14cb7c),_0x333c35['end']=_0x47d9c2;}}return _0x333c35;}function mt(_0x45dd05){return'comment'===ft(_0x45dd05['name'])['group'];}class s extends _0x3732d9{['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 _0x19d357=this['editor'],_0x4c58cb=_0x19d357['plugins']['get'](o),_0x356c9e=_0x19d357['plugins']['get'](r),_0x24bf37=_0x19d357['plugins']['get'](y),_0x47f87c=_0x19d357['plugins']['get'](b);_0x19d357['ui']['componentFactory']['add']('comment',()=>{const _0x15bff9=this['_createUIButton'](_0x222733);return _0x15bff9['tooltip']=!0x0,_0x15bff9;}),_0x19d357['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x59a680)),_0x47f87c['addSourceCollector'](()=>{const _0x181765=[];for(const [_0x185779,_0x293ce3]of _0x4c58cb['_threadToController']){const _0xe003f4=_0x356c9e['getAllMarkersForId'](_0x185779['id']),_0x177f57=_0xe003f4['map'](_0x2bc304=>_0x2bc304['getRange']());_0xe003f4['length']>0x0&&_0x181765['push']([_0x293ce3['view'],_0x177f57]);}return _0x181765;}),this['listenTo'](_0x24bf37,'change:activeAnnotations',(_0x3a0582,_0x3e8dce,_0x1d6d98)=>{const _0x169dcd=Array['from'](_0x1d6d98)['map'](_0x5ca93f=>_0x5ca93f['innerView'])['find'](_0xac4f00=>_0x4c58cb['_viewToController']['has'](_0xac4f00));if(!_0x169dcd)return void(_0x356c9e['activeMarker']=null);const _0x237a7c=_0x4c58cb['_viewToController']['get'](_0x169dcd)['model']['id'],_0x463d6f='comment:'+_0x237a7c;_0x237a7c&&_0x356c9e['hasMarkerForId'](_0x237a7c)?_0x356c9e['activeMarker']=_0x463d6f:_0x356c9e['activeMarker']&&(_0x356c9e['activeMarker']=null);}),this['listenTo'](_0x4c58cb,'removeCommentThread',(_0x1fa112,{threadId:_0x4f951b,isFromAdapter:_0x3ec240})=>{!_0x3ec240&&_0x19d357['ui']['focusTracker']['isFocused']&&_0x356c9e['hasMarkerForId'](_0x4f951b)&&_0x19d357['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x4c58cb,'addComment',(_0x586a41,{threadId:_0x4c3c02,isFromAdapter:_0x352042})=>{if(_0x352042||!_0x356c9e['hasMarkerForId'](_0x4c3c02)||!_0x4c58cb['hasCommentThread'](_0x4c3c02))return;0x1===_0x4c58cb['getCommentThread'](_0x4c3c02)['length']&&(_0x19d357['editing']['view']['focus'](),_0x586a41['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2c12d1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dfe02;for(const _0x1d0077 in _0x2c12d1){const _0x104ef4=_0x1d0077,_0x3f605c=_0x2c12d1[_0x104ef4];if('commentsLicenseKeyValid'==_0x3f605c||'commentsLicenseKeyInvalid'==_0x3f605c||'commentsLicenseKeyExpired'==_0x3f605c||'commentsLicenseKeyDomainLimit'==_0x3f605c||'commentsLicenseKeyNotAllowed'==_0x3f605c||'commentsLicenseKeyEvaluationLimit'==_0x3f605c||'commentsLicenseKeyTrialLimit'==_0x3f605c||'commentsLicenseKeyUsageLimit'==_0x3f605c){delete _0x2c12d1[_0x104ef4],_0x2dfe02=_0x3f605c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x424f7f){const _0x5f3db6=this['editor'],_0x579021=new _0x424f7f(_0x5f3db6['locale']),_0x5be39b=_0x5f3db6['commands']['get']('addCommentThread');return _0x579021['set']({'label':N(_0x5f3db6['locale'],'Comment'),'icon':_0x10df15}),_0x579021['bind']('isEnabled')['to'](_0x5be39b,'isEnabled',_0x5be39b,'hasContent',(_0x409c77,_0x3f3057)=>_0x409c77&&_0x3f3057),this['listenTo'](_0x579021,'execute',()=>{_0x5be39b['execute']();}),_0x579021;}}class i extends _0x3732d9{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x9063f1){super(_0x9063f1),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x324aca,_0x26704b,_0x1a36ae)=>{_0x1a36ae?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5f5416,_0x32aa15]of this['editor']['commands'])_0x32aa15['affectsData']&&'addCommentThread'!==_0x5f5416&&_0x32aa15['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 _0x305b42=this['editor']['editing']['view']['document'];this['listenTo'](_0x305b42,'cut',_0x49fa51=>_0x49fa51['stop'](),{'priority':'highest'}),this['listenTo'](_0x305b42,'clipboardInput',_0x1fa567=>_0x1fa567['stop'](),{'priority':'highest'}),this['listenTo'](_0x305b42,'delete',_0x3eaeac=>_0x3eaeac['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x229457,_0x4016e7]of this['editor']['commands'])_0x4016e7['affectsData']&&'addCommentThread'!==_0x229457&&_0x4016e7['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 _0x35dfc2{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35f59b){super(_0x35f59b),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x14f506=this['context']['plugins']['get'](y);this['listenTo'](_0x14f506,'_activateAnnotation',(_0x45f1fc,_0x57c65d)=>{for(const _0x4cb4fd of this['activeUIs']){const _0x535573=this['_uis']['get'](_0x4cb4fd);(0x0,this['uisData']['get'](_0x4cb4fd)['filter'])(_0x57c65d)&&_0x535573['setActiveAnnotation'](_0x57c65d);}}),this['listenTo'](_0x14f506,'_deactivateAllAnnotations',()=>{for(const _0x4af139 of this['activeUIs']){this['_uis']['get'](_0x4af139)['setActiveAnnotation'](null);}}),this['listenTo'](_0x14f506['_visibleAnnotations'],'add',(_0x4f6d45,_0x4b53aa)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4b53aa);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x422b12){return this['activeUIs']['has'](_0x422b12);}['activate'](_0x616c65,_0x455aec=this['defaultFilter']){const _0x3a9e39=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x616c65))throw new _0x29e429('annotationsuis-missing-ui',this,{'uiName':_0x616c65});this['isActive'](_0x616c65)&&this['deactivate'](_0x616c65),this['activeUIs']['add'](_0x616c65);const _0x3bdc33=new S();v({'source':_0x3a9e39['_visibleAnnotations'],'target':_0x3bdc33,'filter':_0x455aec}),this['uisData']['set'](_0x616c65,{'collection':_0x3bdc33,'filter':_0x455aec});const _0x24b200=this['_uis']['get'](_0x616c65);_0x24b200['attach'](_0x3bdc33),this['listenTo'](_0x24b200,'change:activeAnnotation',(_0x24ba0b,_0x5cd1b9,_0x25ec7e,_0x489c8d)=>{_0x489c8d&&_0x3a9e39['_removeActiveAnnotation'](_0x489c8d),_0x25ec7e&&_0x3a9e39['_addActiveAnnotation'](_0x25ec7e);});}['deactivate'](_0x5b3ef3){if(this['activeUIs']['delete'](_0x5b3ef3),!this['_uis']['has'](_0x5b3ef3))throw new _0x29e429('annotationsuis-missing-ui',this,{'uiName':_0x5b3ef3});const _0x2d9cf9=this['_uis']['get'](_0x5b3ef3);_0x2d9cf9['detach'](),this['stopListening'](_0x2d9cf9),this['uisData']['get'](_0x5b3ef3)['collection']['destroy'](),this['uisData']['delete'](_0x5b3ef3);}['switchTo'](_0xb00135){if(!this['_uis']['has'](_0xb00135))throw new _0x29e429('annotationsuis-missing-ui',this,{'uiName':_0xb00135});const _0x33fa37=this['context']['plugins']['get'](y),_0x552023=Array['from'](_0x33fa37['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0xb00135);const _0x3ab45e=this['_uis']['get'](_0xb00135);_0x3ab45e['setActiveAnnotation'](_0x552023),_0x3ab45e['_setSelectedAnnotations']&&_0x552023&&_0x3ab45e['_setSelectedAnnotations']([_0x552023]);}['deactivateAll'](){for(const _0x3ea0df of this['activeUIs'])this['deactivate'](_0x3ea0df);}['register'](_0x3985ec,_0x28aa54){if(this['_uis']['has'](_0x3985ec))throw new _0x29e429('annotationsuis-register-already-registered');if('function'!=typeof _0x28aa54['attach']||'function'!=typeof _0x28aa54['detach']||'function'!=typeof _0x28aa54['setActiveAnnotation'])throw new _0x29e429('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3985ec,_0x28aa54);}['refilterAnnotations'](){const _0x1f1934=this['context']['plugins']['get'](y)['collection'],_0x56c86d=new Map(),_0x5a2c7c=Array['from'](this['activeUIs']);for(const _0x29be84 of this['activeUIs']){const _0x40a6fb=this['uisData']['get'](_0x29be84)['collection'];for(const _0x2b159a of _0x40a6fb)_0x56c86d['set'](_0x2b159a,_0x29be84);}for(const _0x20d6db of _0x1f1934){const _0xad8db2=_0x56c86d['get'](_0x20d6db);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x20d6db);const _0x176ef3=_0x5a2c7c['find'](_0x3ba540=>this['uisData']['get'](_0x3ba540)['filter'](_0x20d6db));_0xad8db2!==_0x176ef3&&(_0xad8db2&&this['uisData']['get'](_0xad8db2)['collection']['remove'](_0x20d6db),_0x176ef3&&this['uisData']['get'](_0x176ef3)['collection']['add'](_0x20d6db));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4a37bc){const _0x1be069=[];for(const _0x710338 of this['activeUIs']){(0x0,this['uisData']['get'](_0x710338)['filter'])(_0x4a37bc)&&_0x1be069['push'](_0x710338);}if(_0x1be069['length']>0x1)throw new _0x29e429('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1be069,'annotationType':_0x4a37bc['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4ab863){super(_0x4ab863);const _0x2560a0=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 _0x242e0a(),this['focusCycler']=new _0x470c60({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2560a0['to']('class')],'style':{'minHeight':_0x2560a0['to']('minHeight',_0x1a770b=>'number'==typeof _0x1a770b?_i(_0x1a770b+0xa):null)},'dir':_0x4ab863['uiLanguageDirection'],'role':'application','aria-label':N(_0x4ab863,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x4ab863,'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',_0x3ee6b8=>{this['_updateItemPositionInFocusables'](_0x3ee6b8['source']);}),this['list']['forEach'](_0x426207=>{this['focusTracker']['add'](_0x426207['element']),this['_updateItemPositionInFocusables'](_0x426207);}),this['list']['on']('change',(_0x4244fa,_0x1b48c8)=>{for(const _0x435f1f of _0x1b48c8['removed'])this['focusTracker']['remove'](_0x435f1f['element']),this['focusables']['remove'](_0x435f1f);for(const _0x34200 of _0x1b48c8['added'])this['focusTracker']['add'](_0x34200['element']),this['_updateItemPositionInFocusables'](_0x34200);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x52717a){const _0x45eb04=this['focusables']['getIndex'](_0x52717a);let _0x9af0bd,_0x1a4a95;for(const _0x4cbe7f of this['focusables'])if(_0x52717a['top']<_0x4cbe7f['top']){_0x9af0bd=_0x4cbe7f;break;}if(_0x1a4a95=_0x9af0bd?this['focusables']['getIndex'](_0x9af0bd):this['focusables']['length'],-0x1!==_0x45eb04){if(_0x45eb04===_0x1a4a95-0x1)return;this['focusables']['remove'](_0x52717a),_0x1a4a95=_0x9af0bd?this['focusables']['getIndex'](_0x9af0bd):this['focusables']['length'];}this['focusables']['add'](_0x52717a,_0x1a4a95);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x8f3d3c){super(_0x8f3d3c),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x334f05,_0x304602)=>_0x334f05+_0x304602),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x20b63b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x20b63b['to']('isAnimationDisabled',_0x32db31=>_0x32db31?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x20b63b['to']('top',_0x1df32b=>Ot(_0x1df32b))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x24d71b=this['element']['clientHeight'];_0x24d71b&&(this['height']=_0x24d71b);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x35dfc2{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x349af2){super(_0x349af2),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 _0x6a0baa=this['context']['config']['get']('sidebar.container');_0x6a0baa&&this['setContainer'](_0x6a0baa);}['setContainer'](_0x16f57a){if(!g(_0x16f57a))throw new _0x29e429('sidebar-setcontainer-invalid-element');this['container']=_0x16f57a;}['_attachToContainer']({viewClass:_0x84ee8e='',spaceBetweenItems:_0x1a700a=0x19}={}){if(!g(this['container']))throw new _0x29e429('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x84ee8e,this['_spaceBetweenItems']=_0x1a700a;}['rearrange']({removedAnnotation:_0x56478a,previousAnnotation:_0x3ff94b,nextAnnotation:_0x330a61}){const _0x482554=this['getSidebarItemView'](_0x56478a);this['view']['list']['remove'](_0x482554),this['_destroySidebarItemView'](_0x56478a),_0x3ff94b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3ff94b)),_0x330a61&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x330a61)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x11dd04,activatedAnnotation:_0x486185,disableAnimationOnActivatedAnnotation:_0x5b725e}){if(this['_activeAnnotation']=_0x486185,_0x11dd04){_0x11dd04['isActive']=!0x1;const _0x5cadc0=this['getSidebarItemView'](_0x11dd04);_0x5cadc0&&_0x5b725e&&(_0x5cadc0['isAnimationDisabled']=!0x1);}if(_0x486185){const _0x21bff9=this['getSidebarItemView'](_0x486185);_0x21bff9&&(_0x486185['isActive']=!0x0,_0x5b725e&&(_0x21bff9['isAnimationDisabled']=!0x0,_0x21bff9['top']+=0x1),this['_alignToTargetRect'](_0x21bff9));}}['_detachFromContainer'](_0x287f3b){if(this['view']['element']['remove'](),_0x287f3b){for(const _0x5d2620 of _0x287f3b)this['_destroySidebarItemView'](_0x5d2620);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x58254e,_0x30ec9a){_0x30ec9a||(_0x30ec9a=_0x58254e['view']);const _0x46055a=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x46055a,_0x58254e),this['_annotationToSidebarItemView']['set'](_0x58254e,_0x46055a),_0x46055a['content']['add'](_0x30ec9a),this['listenTo'](_0x58254e['view'],'change:targetRect',(_0x3a7de8,_0xa1cbca,_0x12ec34)=>{const _0x150ef0=this['_getTargetTop'](_0x58254e,_0x12ec34);_0x46055a['_targetTop']!=_0x150ef0&&(_0x46055a['_targetTop']=_0x150ef0,this['_setItemTop'](_0x46055a,_0x150ef0));}),this['listenTo'](_0x46055a,'change:top',()=>{this['_recalculate'](_0x46055a,'top');}),this['listenTo'](_0x46055a,'change:bottom',()=>{this['_recalculate'](_0x46055a,'bottom');}),this['_alignToTargetRect'](_0x46055a);const _0x594337=this['_getItemBefore'](_0x46055a);if(_0x594337)this['_alignAfterItem'](_0x594337,_0x46055a)||this['_alignToTargetRect'](_0x46055a);else this['_alignToTargetRect'](_0x46055a);return this['_updateLastItem'](),this['view']['list']['add'](_0x46055a),_0x46055a;}['_alignForTopChange'](_0x55053b){if(!_0x55053b['content']['length'])return;const _0x13d2c4=this['_getItemBefore'](_0x55053b);if(!_0x13d2c4)return;const _0x163c7d=this['_sidebarItemViewToAnnotation']['get'](_0x13d2c4),_0x3c7ee7=this['_activeAnnotation'];_0x3c7ee7&&_0x3c7ee7===_0x163c7d?this['_alignAfterItem'](_0x13d2c4,_0x55053b):this['_alignBeforeItem'](_0x55053b,_0x13d2c4);}['_alignForBottomChange'](_0x5e9cad){if(!_0x5e9cad['content']['length'])return;const _0x94ad88=this['_getItemAfter'](_0x5e9cad);if(!_0x94ad88)return;const _0xdc6141=this['_sidebarItemViewToAnnotation']['get'](_0x94ad88),_0x5a7a05=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x3b8a24=this['_activeAnnotation'];_0x3b8a24&&_0x3b8a24===_0xdc6141&&_0x5a7a05?(this['_alignBeforeItem'](_0x94ad88,_0x5e9cad),this['_alignAfterItem'](_0x5e9cad,_0x94ad88)):_0x3b8a24&&_0x3b8a24===_0xdc6141?this['_alignBeforeItem'](_0x94ad88,_0x5e9cad):this['_alignAfterItem'](_0x5e9cad,_0x94ad88);}['_recalculate'](_0x1d4c01,_0x25aaf2){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5555b0,changedProp:_0x4915c5}of this['_recalculateBuffer'])'top'===_0x4915c5?this['_alignForTopChange'](_0x5555b0):this['_alignForBottomChange'](_0x5555b0);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x1d4c01,'changedProp':_0x25aaf2});}['getSidebarItemView'](_0x129ab3){return this['_annotationToSidebarItemView']['get'](_0x129ab3);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x252827){const _0x33c235=this['getSidebarItemView'](_0x252827);this['stopListening'](_0x33c235),this['stopListening'](_0x252827['view']),_0x33c235['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x252827),this['_sidebarItemViewToAnnotation']['delete'](_0x33c235);}['_createSidebarView'](){const _0x29d1ee=new H(this['context']['locale']);return _0x29d1ee['render'](),this['on']('change:_lastItem',(_0x190073,_0x3b60be,_0x99c24a,_0x46fde5)=>{_0x46fde5&&_0x29d1ee['unbind']('minHeight'),_0x99c24a?_0x29d1ee['bind']('minHeight')['to'](_0x99c24a,'bottom'):_0x29d1ee['minHeight']=null;}),_0x29d1ee;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x18f978){const _0x9ad9e5=this['_sidebarItemViewToAnnotation']['get'](_0x18f978),_0x16907d=_0x9ad9e5&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x9ad9e5)-0x1);return _0x16907d&&this['getSidebarItemView'](_0x16907d)||null;}['_getItemAfter'](_0xea61b1){const _0x2daf02=this['_sidebarItemViewToAnnotation']['get'](_0xea61b1),_0x16e959=_0x2daf02&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2daf02)+0x1);return _0x16e959&&this['getSidebarItemView'](_0x16e959)||null;}['_alignBeforeItem'](_0x48d677,_0x44a8b7){_0x48d677['updateHeight']();const _0x46ee8b=G(_0x44a8b7['bottom']+this['_spaceBetweenItems'],_0x48d677['top']);return!!_0x46ee8b&&(this['_setItemTop'](_0x44a8b7,_0x44a8b7['top']-_0x46ee8b),!0x0);}['_alignAfterItem'](_0x19b6d3,_0x1bdf69){_0x19b6d3['updateHeight']();const _0x110c05=G(_0x19b6d3['bottom']+this['_spaceBetweenItems'],_0x1bdf69['top']);return!!_0x110c05&&(this['_setItemTop'](_0x1bdf69,_0x1bdf69['top']+_0x110c05,!0x1),!0x0);}['_alignToTargetRect'](_0x148176){const _0x8c56f8=this['_sidebarItemViewToAnnotation']['get'](_0x148176);if(!_0x8c56f8||!_0x8c56f8['target']||!_0x8c56f8['targetRect'])return;const _0x4b2af3=this['_getTargetTop'](_0x8c56f8,_0x8c56f8['targetRect']);this['_setItemTop'](_0x148176,_0x4b2af3);}['_getTargetTop'](_0xb3b15c,_0x52d888){if(null===_0x52d888)return 0x0;if(_0xb3b15c['target']instanceof _0x5f3a0a)return _0x52d888['top'];{const _0xbfa193=new _0x5f3a0a(this['view']['element'])['top'];return _0x52d888['top']-_0xbfa193;}}['_setItemTop'](_0x5e3edb,_0x5597d6,_0x2b5706=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x2b5706&&(_0x5597d6=Math['max'](_0x5597d6,this['_getMaxAvailableTop'](_0x5e3edb))),_0x5e3edb['top']=_0x5597d6;}['_getMaxAvailableTop'](_0xffee03){let _0x31eed7=this['_getItemBefore'](_0xffee03),_0x5a9a19=0x0;for(;_0x31eed7;)_0x31eed7['updateHeight'](),_0x5a9a19+=this['_spaceBetweenItems']+_0x31eed7['height'],_0x31eed7=this['_getItemBefore'](_0x31eed7);return _0x5a9a19;}}function G(_0x432f14,_0x9f6e98){return Math['max'](_0x432f14-_0x9f6e98,0x0);}function g(_0x25cbed){return null!==_0x25cbed&&'object'==typeof _0x25cbed&&0x1===_0x25cbed['nodeType'];}class e extends _0x35dfc2{['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(_0xd0d51a){super(_0xd0d51a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x22714a(),this['_refreshPositioningDebounced']=_0x340747(()=>{_0xd0d51a['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2ddd65=this['context']['plugins']['get'](j),_0x2164e1=this['context']['plugins']['get'](z);_0x2ddd65['register']('wideSidebar',this),_0x2164e1['container']&&_0x2ddd65['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4918ef){if(_0x4918ef===this['activeAnnotation'])return;const _0x12460b=this['context']['plugins']['get'](z);_0x12460b['_activeAnnotation']=_0x4918ef;const _0x779ddb=this['activeAnnotation'];_0x12460b['refresh']({'blurredAnnotation':_0x779ddb,'activatedAnnotation':_0x4918ef}),this['activeAnnotation']=_0x4918ef;}['attach'](_0x562a5c){this['annotations']=_0x562a5c;const _0x4c9aa3=this['context']['plugins']['get'](z);if(_0x4c9aa3['_annotations']=_0x562a5c,this['isAttached'])throw new _0x29e429('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4c9aa3,'set:container',()=>{this['detach'](),this['listenTo'](_0x4c9aa3,'change:container',_0x23b064=>{_0x23b064['off'](),this['attach'](_0x562a5c);});}),_0x4c9aa3['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x1867bc=_0x55934f=>{_0x55934f['updateTargetRect'](),_0x4c9aa3['addAnnotation'](_0x55934f);};for(const _0x22e11a of _0x562a5c)_0x1867bc(_0x22e11a);this['listenTo'](_0x562a5c,'add',(_0xa8f8dc,_0xb46171)=>{_0x1867bc(_0xb46171);}),this['listenTo'](_0x562a5c,'remove',(_0xc8ff91,_0x53ba4a,_0x29a8f7)=>{_0x4c9aa3['rearrange']({'removedAnnotation':_0x53ba4a,'previousAnnotation':_0x562a5c['get'](_0x29a8f7-0x1),'nextAnnotation':_0x562a5c['get'](_0x29a8f7+0x1)}),_0x53ba4a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x562a5c,'focus',(_0x3cb638,_0x4a43ad)=>{this['setActiveAnnotation'](_0x4a43ad);}),this['listenTo'](_0x562a5c,'blur',()=>{this['setActiveAnnotation'](null);});const _0x22018d=this['context']instanceof _0x55e756?this['context']['editors']:new _0x22714a([this['context']]);for(const _0x5b3070 of _0x22018d)this['_integrateWithEditorAnnotations'](_0x5b3070);this['listenTo'](_0x22018d,'add',(_0x15df1a,_0x1681b2)=>{this['listenTo'](_0x1681b2,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1681b2);});}),this['listenTo'](_0x22018d,'remove',(_0x4df974,_0x368e5f)=>{_0x368e5f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x368e5f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x29e429('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3fd5b7=this['context']['plugins']['get'](z);_0x3fd5b7['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3fd5b7),this['stopListening'](this['annotations']),this['context']instanceof _0x55e756&&this['stopListening'](this['context']['editors']);for(const _0x44ab88 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x44ab88);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x11ce55){if(!_0x11ce55['plugins']['has']('EditorAnnotations'))return;const _0x534544=_0x11ce55['plugins']['get']('EditorAnnotations'),_0x896d2d=()=>{const _0x13cafd=_0x534544['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x13cafd[0x0]||null);};this['listenTo'](_0x534544,'refresh',_0x896d2d),this['listenTo'](_0x534544,'blur',(_0x28f467,{isAnnotationTracked:_0x37407e})=>{this['activeAnnotation']&&_0x37407e(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x534544,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x2e45aa=>{_0x534544['hasDomSelection']()&&(_0x896d2d(),_0x2e45aa['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x534544);}['_destroyEditorAnnotationsIntegration'](_0x1c44dc){this['stopListening'](_0x1c44dc),this['_editorAnnotations']['remove'](_0x1c44dc);}}class C extends _0x222733{['counterView'];constructor(_0x4196f9){super(_0x4196f9);const _0x4d9ac7=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1edc87,_0x5f524d)=>_0x1edc87?'...':_0x5f524d['toString']()),this['set']('annotationType',''),this['icon']=_0x10df15,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4d9ac7['to']('annotationType',_0x266980=>'ck-annotation-counter__badge--'+_0x266980),_0x4d9ac7['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4d9ac7['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x35dfc2{['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(_0x9dd79f){super(_0x9dd79f),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x10f0fb())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x22714a(),this['_refreshPositioningDebounced']=_0x340747(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x2dc30b(this['context']['locale']),this['balloonPanelView']=new _0x318538(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3b42ba){this['annotations']=_0x3b42ba;const _0x3a9bba=this['context']['plugins']['get'](z),_0xd409c1=this['balloonPanelView'];if(_0x3a9bba['_annotations']=_0x3b42ba,this['isAttached'])throw new _0x29e429('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3a9bba,'set:container',()=>{this['detach'](),this['listenTo'](_0x3a9bba,'change:container',_0xb8ac6a=>{_0xb8ac6a['off'](),this['attach'](_0x3b42ba);});}),_0x3a9bba['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x555cbf=_0x3d4ce7=>{const _0x2fc754=new C(this['context']['locale']);_0x3a9bba['addAnnotation'](_0x3d4ce7,_0x2fc754),this['_annotationToNarrowView']['set'](_0x3d4ce7,_0x2fc754),_0x2fc754['bind']('isDirty','annotationType','number')['to'](_0x3d4ce7['view'],'isDirty','type','length'),_0x2fc754['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0xd409c1['content']['first']!==_0x3d4ce7['view']?(this['_showBalloon'](_0x3d4ce7),_0x3d4ce7['view']['element']['focus'](),this['setActiveAnnotation'](_0x3d4ce7)):this['setActiveAnnotation'](null);});};for(const _0x8070a5 of _0x3b42ba)_0x555cbf(_0x8070a5);this['listenTo'](_0x3b42ba,'add',(_0x2a9f7a,_0x1dbf1d)=>{_0x555cbf(_0x1dbf1d);}),this['listenTo'](_0x3b42ba,'remove',(_0xeeec30,_0x5c3675,_0x256f48)=>{this['_annotationToNarrowView']['get'](_0x5c3675)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5c3675),_0x3a9bba['rearrange']({'removedAnnotation':_0x5c3675,'previousAnnotation':_0x3b42ba['get'](_0x256f48-0x1),'nextAnnotation':_0x3b42ba['get'](_0x256f48+0x1)}),_0x5c3675===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3b42ba,'focus',(_0x24674a,_0x533ad3)=>{this['setActiveAnnotation'](_0x533ad3);}),this['listenTo'](_0x3b42ba,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x57d0a9,_0x4a2a5c)=>{_0x4a2a5c['keyCode']===_0x39b093['esc']&&_0xd409c1['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0xd409c1['content']['first']),this['_hideBalloon'](),_0x4a2a5c['stopPropagation'](),_0x4a2a5c['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x6735cb,_0x43666e)=>{const _0x1115e2=_0x43666e['target'];_0xd409c1['isVisible']&&_0xd409c1['element']['contains'](_0x1115e2)||_0x3a9bba['view']['element']['contains'](_0x1115e2)||_0x6735cb['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x395b12=>_0x395b12['contains'](_0x1115e2))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x353954=this['context']instanceof _0x55e756?this['context']['editors']:new _0x22714a([this['context']]);for(const _0x524926 of _0x353954)this['_integrateWithEditorAnnotations'](_0x524926);this['listenTo'](_0x353954,'add',(_0x40c81b,_0x356701)=>{this['listenTo'](_0x356701,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x356701);});}),this['listenTo'](_0x353954,'remove',(_0x46c989,_0x5adbf6)=>{_0x5adbf6['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5adbf6['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2be07d){if(_0x2be07d===this['activeAnnotation'])return;const _0x35d67f=this['context']['plugins']['get'](z);if(_0x35d67f['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2be07d,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2be07d)_0x35d67f['getSidebarItemView'](_0x2be07d)?this['_showBalloon'](_0x2be07d):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2be07d;}['detach'](){if(!this['isAttached'])throw new _0x29e429('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x469194=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x3ec5a3=>_0x3ec5a3['destroy']()),this['_annotationToNarrowView']['clear'](),_0x469194['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x55e756&&this['stopListening'](this['context']['editors']);for(const _0x549533 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x549533);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'](_0xdb28df){if(!_0xdb28df['plugins']['has']('EditorAnnotations'))return;const _0x381d4d=_0xdb28df['plugins']['get']('EditorAnnotations'),_0x26fa49=this['context']['plugins']['get'](z),_0x3ee1ea=this['annotations'],_0x2f4eed=this['balloonPanelView'],_0x567316=()=>{const _0x1c9e1a=_0x381d4d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1c9e1a),this['setActiveAnnotation'](_0x1c9e1a[0x0]||null);};this['listenTo'](_0x381d4d,'refresh',_0x567316),this['listenTo'](_0x381d4d,'blur',(_0x315096,{isAnnotationTracked:_0x2e4e38})=>{this['activeAnnotation']&&_0x2e4e38(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x381d4d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3ee1ea,'blur',_0x1f6dfc=>{_0x381d4d['hasDomSelection']()&&_0x1f6dfc['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1f2c6d,_0x4f9533)=>{const _0xb453eb=_0x4f9533['target'];_0x2f4eed['isVisible']&&_0x2f4eed['element']['contains'](_0xb453eb)||_0x26fa49['view']['element']['contains'](_0xb453eb)||this['activeAnnotation']&&_0x381d4d['hasDomSelection']()&&(_0x567316(),_0x1f2c6d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x381d4d);}['_destroyEditorAnnotationsIntegration'](_0x228c4a){_0x228c4a&&(this['stopListening'](_0x228c4a),this['_editorAnnotations']['remove'](_0x228c4a));}['_setSelectedAnnotations'](_0x5d95d8){for(const _0x58a604 of this['_selectedAnnotations'])_0x5d95d8['includes'](_0x58a604)||this['_manuallyClosedAnnotationViews']['delete'](_0x58a604['view']);this['_selectedAnnotations']=_0x5d95d8;}['_refreshPositioning'](){const _0x538e75=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x538e75['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x11d73b){if(this['_manuallyClosedAnnotationViews']['has'](_0x11d73b['view']))return;const _0x567e0c=this['balloonPanelView']['content']['first'];_0x567e0c!==_0x11d73b['view']?(_0x567e0c&&this['_detachListeners'](_0x567e0c),this['_attachListeners'](_0x11d73b['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x11d73b['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4c39d1=this['balloonPanelView']['content']['first'],_0x5c95c3=_0x4c39d1&&this['annotations']['getByView'](_0x4c39d1);if(!_0x5c95c3||!this['_annotationToNarrowView']['has'](_0x5c95c3))return;const _0x5b061e=this['_annotationToNarrowView']['get'](_0x5c95c3)['element'],_0x508ec9=(function(){const _0x1459c1=_0x318538['defaultPositions'];return[_0x1459c1['southArrowNorthEast'],_0x1459c1['northArrowSouthEast'],_0x1459c1['southArrowNorth'],_0x1459c1['northArrowSouth'],_0x1459c1['southArrowNorthWest'],_0x1459c1['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5b061e,'positions':_0x508ec9});}['_hideBalloon'](){const _0x14d290=this['balloonPanelView'],_0x51458c=_0x14d290['content']['first'];_0x51458c&&(this['_detachListeners'](_0x51458c),_0x14d290['unpin'](),_0x14d290['content']['clear']());}['_attachListeners'](_0x5ec958){this['listenTo'](_0x5ec958,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x5ec958,'Esc',(_0x19ab9a,_0x1deb75)=>{this['_manuallyClosedAnnotationViews']['add'](_0x5ec958),this['_hideBalloon'](),_0x1deb75();});}['_detachListeners'](_0x54bc9d){this['stopListening'](_0x54bc9d);}}class c extends _0x3732d9{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x3d3d3f,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x246210){super(_0x246210),_0x246210['editing']['view']['addObserver'](_0x3d1846),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x246210['plugins']['get'](_0x3d3d3f),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x332620=this['editor']['plugins']['get'](j);_0x332620['context']===this['editor']&&(_0x332620['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x26e307,_0x37fcbb)=>{const _0x4dd978=this['_balloon'];if(this['isAttached']&&_0x4dd978['visibleView']){const _0xe8f768=this['annotations']['getByView'](_0x4dd978['visibleView']);_0xe8f768&&this['_closeAnnotation'](_0xe8f768),_0x37fcbb();}}));}['afterInit'](){const _0x4cd17b=this['editor']['plugins']['get'](j);_0x4cd17b['context']===this['editor']&&(_0x4cd17b['hasActive']()||_0x4cd17b['switchTo']('inline'));}['setActiveAnnotation'](_0x3b4d9a){_0x3b4d9a!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x3b4d9a&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x3b4d9a)&&this['_addAnnotationToBalloon'](_0x3b4d9a,!0x0),_0x3b4d9a['isActive']=!0x0),_0x3b4d9a||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3b4d9a);}['attach'](_0x15a53d){this['annotations']=_0x15a53d;const _0x459a86=this['editor']['plugins']['get'](j),_0x3885f5=this['_balloon'];if(this['isAttached'])throw new _0x29e429('inlineannotations-attach-already-attached',this);if(_0x459a86['context']!==this['editor'])throw new _0x29e429('inlineannotations-not-allowed-with-context',this);const _0x524f32=this['editor']['plugins']['get'](b);this['listenTo'](_0x524f32,'refresh',()=>{const _0x2c24fc=_0x524f32['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x16137d,_0x2fca43;!this['_forceRefresh']&&(_0x16137d=_0x2c24fc,_0x2fca43=this['_selectedAnnotations'],_0x16137d['length']===_0x2fca43['length']&&_0x16137d['every'](_0x303d3f=>_0x2fca43['includes'](_0x303d3f)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2c24fc),this['setActiveAnnotation'](_0x2c24fc[0x0]||null));}),this['listenTo'](_0x524f32,'blur',(_0x109aa2,{isAnnotationTracked:_0x41d025})=>{this['activeAnnotation']&&_0x41d025(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x414f1c,_0x52fd32,_0x10ebc2)=>{_0x10ebc2||this['setActiveAnnotation'](null);}),this['listenTo'](_0x15a53d,'remove',(_0xe4b72b,_0x322a51)=>{this['_removeAnnotationFromBalloon'](_0x322a51),_0x322a51===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3885f5,'change:visibleView',(_0x18dd66,_0x142c64,_0x2793d8,_0x59abf0)=>{_0x59abf0&&this['stopListening'](_0x59abf0);const _0x134532=_0x15a53d['getByView'](_0x2793d8);_0x2793d8&&_0x134532&&(this['listenTo'](_0x2793d8,'change:height',()=>{_0x3885f5['updatePosition']();}),this['listenTo'](_0x2793d8,'Esc',()=>{this['_closeAnnotation'](_0x134532),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x134532&&this['setActiveAnnotation'](_0x134532));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x3885f5['visibleView']&&(_0x15a53d['getByView'](_0x3885f5['visibleView'])&&_0x3885f5['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 _0x29e429('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x21044d of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x21044d);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xfc5cbf){for(const _0x6c320e of this['_selectedAnnotations'])_0xfc5cbf['includes'](_0x6c320e)||this['_manuallyClosed']['delete'](_0x6c320e);for(const _0x192062 of this['annotations'])_0xfc5cbf['includes'](_0x192062)||this['_removeAnnotationFromBalloon'](_0x192062);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x2fc22b of _0xfc5cbf)this['_addAnnotationToBalloon'](_0x2fc22b);}this['_selectedAnnotations']=_0xfc5cbf;}['_addAnnotationToBalloon'](_0x3379e0,_0xc6a626=!0x1){this['_manuallyClosed']['has'](_0x3379e0)||(this['_addedAnnotations']['has'](_0x3379e0)||this['_balloon']['hasView'](_0x3379e0['view'])||(this['_addedAnnotations']['add'](_0x3379e0),this['_balloon']['add']({'stackId':_0x3379e0['view']['id'],'view':_0x3379e0['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3379e0)}})),_0xc6a626&&this['_balloon']['showStack'](_0x3379e0['view']['id']));}['_getBalloonTargetForAnnotation'](_0x57ba0a){const _0x3689ff=_0x57ba0a['target'],_0x32639a=this['editor']['editing']['view'],_0x55f8fc=_0x32639a['document']['selection']['getFirstRange'](),_0x4984e1=_0x32639a['domConverter']['viewRangeToDom'](_0x55f8fc);if(_0x4984e1['collapse'](!0x0),_0x3689ff){if(_0x3689ff instanceof _0x5f3a0a)return _0x3689ff;let _0x13f5b7=[];for(const _0x4e376a of _0x3689ff)_0x13f5b7['push'](...F(_0x4e376a['getClientRects']()));_0x13f5b7=function(_0x4a11dc){const _0x17683a=[];let _0x382354=_0x4a11dc[0x0];for(let _0x311496=0x1;_0x311496<_0x4a11dc['length'];_0x311496++)P(_0x382354,_0x4a11dc[_0x311496])?_0x382354['width']+=_0x4a11dc[_0x311496]['width']:(_0x17683a['push'](_0x382354),_0x382354=_0x4a11dc[_0x311496]);return _0x17683a['push'](_0x382354),_0x17683a;}(_0x13f5b7);const _0xd86a96=_0x4984e1['getBoundingClientRect']();return _0x13f5b7['find'](_0x3176a7=>_0x3176a7['top']<=_0xd86a96['top']&&_0x3176a7['bottom']>=_0xd86a96['bottom']&&_0x3176a7['left']<=_0xd86a96['left']&&_0x3176a7['right']>=_0xd86a96['right'])||_0x13f5b7[0x0];}return _0x57ba0a['targetRect']||_0x4984e1;}['_removeAnnotationFromBalloon'](_0x34b73c){this['_addedAnnotations']['has'](_0x34b73c)&&this['_balloon']['hasView'](_0x34b73c['view'])&&(this['_addedAnnotations']['delete'](_0x34b73c),this['_balloon']['remove'](_0x34b73c['view']));}['_closeAnnotation'](_0x6ae19a){this['_manuallyClosed']['add'](_0x6ae19a),this['_removeAnnotationFromBalloon'](_0x6ae19a);}}function F(_0x1d85bb){return Array['from'](_0x1d85bb)['map'](DOMRect['fromRect']);}function P(_0x48415e,_0x32c825){return _0x48415e['top']===_0x32c825['top']&&_0x48415e['bottom']===_0x32c825['bottom']&&_0x48415e['right']===_0x32c825['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x45a4d6,_0x38a80e){super(_0x45a4d6),this['set']('isEmpty',!_0x38a80e['length']),this['focusTracker']=new _0x242e0a(),this['_annotationViews']=_0x38a80e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x470c60({'focusables':_0x38a80e,'focusTracker':this['focusTracker']}),this['listenTo'](_0x38a80e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x38a80e,'remove',(_0x120d2e,_0x28a795)=>{_0x28a795['isActive']&&this['focus'](),_0x38a80e['length']||(this['isEmpty']=!0x0);});const _0x5850ae=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x45a4d6,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x38a80e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x5850ae['if']('isEmpty','ck-hidden',_0x49907c=>!_0x49907c)]},'children':[{'text':N(_0x45a4d6,'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 _0x2549c6 of this['_annotationViews'])this['focusTracker']['add'](_0x2549c6['element']);this['_annotationViews']['on']('change',(_0x5a2b27,{added:_0x227cd2,removed:_0x469a9f})=>{for(const _0x23b6f3 of _0x227cd2)this['focusTracker']['add'](_0x23b6f3['element']);for(const _0x961cab of _0x469a9f)this['focusTracker']['remove'](_0x961cab['element']);});}}class p extends _0x35dfc2{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x2abc82){super(_0x2abc82),this['archivedThreads']=new _0x22714a();}['init'](){const _0x1987e9=this['context'],_0x36badc=_0x1987e9['plugins']['get'](o),_0x2825ac=_0x1987e9['plugins']['get'](y);this['listenTo'](_0x36badc,'addCommentThread',(_0x12bb07,{threadId:_0x4cbf30})=>{const _0x3c0f84=_0x36badc['getCommentThread'](_0x4cbf30);_0x3c0f84['archivedAt']&&this['archivedThreads']['add'](_0x3c0f84,this['_calculatePosition'](_0x3c0f84['archivedAt'])),this['listenTo'](_0x3c0f84,'change:archivedAt',(_0x4090bd,_0xd8b7f8,_0x46f789)=>{_0x46f789?this['archivedThreads']['has'](_0x3c0f84)||this['archivedThreads']['add'](_0x3c0f84,this['_calculatePosition'](_0x3c0f84['archivedAt'])):this['archivedThreads']['has'](_0x3c0f84)&&this['archivedThreads']['remove'](_0x3c0f84);});}),this['listenTo'](_0x36badc,'removeCommentThread',(_0x1f176b,{threadId:_0x22e4d2})=>{const _0x292c3c=_0x36badc['getCommentThread'](_0x22e4d2);this['stopListening'](_0x292c3c),this['archivedThreads']['has'](_0x292c3c)&&this['archivedThreads']['remove'](_0x292c3c);},{'priority':'highest'}),this['listenTo'](_0x2825ac['collection'],'focus',(_0xcf3028,_0x356e0d)=>{_0x356e0d['isVisible']||(_0x356e0d['isActive']=!0x0,_0x2825ac['activate'](_0x356e0d));});}['_calculatePosition'](_0x1ef76f){const _0x9b89fc=[...this['archivedThreads']]['findIndex'](_0x3bb935=>_0x3bb935['archivedAt']<_0x1ef76f);return _0x9b89fc>-0x1?_0x9b89fc:this['archivedThreads']['length'];}}class a extends _0x3732d9{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x2561e8];}constructor(_0x77fb7d){super(_0x77fb7d),this['annotationViews']=new _0xd5b2d1(),this['_pendingThreads']=[];}['init'](){const _0x1ac508=this['editor'],_0x39ca99=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1ac508['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x222733,!0x0)),_0x1ac508['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x201f4f=this['_createCommentsArchiveButton'](_0x59a680);return _0x201f4f['set']({'role':'menuitemcheckbox'}),_0x201f4f;});const _0x45f849=_0x1ac508['plugins']['get'](p),_0x27f97e=_0x1ac508['plugins']['get']('Annotations'),_0x22abc7=_0x1ac508['plugins']['get']('CommentsRepository');_0x45f849['archivedThreads']['forEach'](_0x58fcb2=>{this['_handleNewThread'](_0x58fcb2);}),this['listenTo'](_0x45f849['archivedThreads'],'add',(_0x410d8f,_0xdc3ec0)=>{this['_handleNewThread'](_0xdc3ec0);}),this['listenTo'](_0x27f97e['collection'],'add',(_0x716873,_0x1c40ae)=>{const _0x277768=this['_pendingThreads']['find'](_0x2bb8f3=>{const _0x26413f=_0x22abc7['_threadToController']['get'](_0x2bb8f3);return _0x26413f&&_0x1c40ae['innerView']===_0x26413f['view'];});if(_0x277768){const _0x159667=this['_calculatePosition'](_0x277768['archivedAt']);this['_addAnnotationToArchive'](_0x1c40ae,_0x159667),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x277768),0x1);}}),this['listenTo'](_0x45f849['archivedThreads'],'remove',(_0x151e2f,_0x452fca)=>{const _0x16ce8e=_0x1ac508['config']['get']('collaboration.channelId');if(!_0x16ce8e||_0x452fca['channelId']===_0x16ce8e){if(this['_pendingThreads']['includes'](_0x452fca))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x452fca),0x1);else{const _0x336a25=_0x22abc7['_threadToController']['get'](_0x452fca),_0x27b810=_0x27f97e['getByInnerView'](_0x336a25['view']);this['annotationViews']['remove'](_0x27b810['view']),this['stopListening'](_0x27b810),this['stopListening'](_0x27b810['focusableElements']);}}}),this['listenTo'](_0x27f97e['collection'],'add',(_0x537aa8,_0x289768)=>{this['listenTo'](_0x289768,'escape',_0x39ca99);}),this['listenTo'](_0x27f97e['collection'],'remove',(_0x5e9ecf,_0x2e257e)=>{this['stopListening'](_0x2e257e,'escape',_0x39ca99);});}['_addAnnotationToArchive'](_0x3ef9d2,_0x3937ad){this['listenTo'](_0x3ef9d2,'set:isVisible',_0x423e31=>{_0x423e31['return']=!0x1,_0x423e31['stop']();}),this['annotationViews']['add'](_0x3ef9d2['view'],_0x3937ad);}['_handleNewThread'](_0x227933){const _0x258a14=this['editor']['plugins']['get']('CommentsRepository'),_0x22f549=this['editor']['plugins']['get']('Annotations'),_0x273969=this['editor']['config']['get']('collaboration.channelId');if(!_0x273969||_0x227933['channelId']===_0x273969){const _0x2ecba2=_0x258a14['_threadToController']['get'](_0x227933);if(!_0x2ecba2)return void this['_pendingThreads']['push'](_0x227933);const _0xe242fc=this['_calculatePosition'](_0x227933['archivedAt']),_0x458ee0=_0x22f549['getByInnerView'](_0x2ecba2['view']);_0x458ee0['isVisible']&&_0x22f549['_visibleAnnotations']['remove'](_0x458ee0),this['_addAnnotationToArchive'](_0x458ee0,_0xe242fc);}}['_calculatePosition'](_0x1d4224){const _0x502762=this['editor']['config']['get']('collaboration.channelId'),_0x430044=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x56347e=>_0x56347e['channelId']===_0x502762)['findIndex'](_0x58a2f3=>_0x58a2f3['archivedAt']<_0x1d4224);return _0x430044<0x0||_0x430044>this['annotationViews']['length']?this['annotationViews']['length']:_0x430044-0x1;}['_toggleDialog'](){const _0x15de41=this['editor'],_0x31566e=_0x15de41['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x15de41['locale'],this['annotationViews'])),'commentsArchive'===_0x31566e['id']?_0x31566e['hide']():_0x31566e['show']({'id':'commentsArchive','title':N(_0x15de41['locale'],'COMMENTS_ARCHIVE'),'icon':_0x43bc8d,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x9c172b['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x4062ef,_0x10e2db=!0x1){const _0x4a5c69=this['editor']['locale'],_0x5a624b=this['editor']['plugins']['get']('Dialog'),_0x30d814=new _0x4062ef(_0x4a5c69);return _0x30d814['bind']('isEnabled')['to'](this,'isEnabled'),_0x30d814['bind']('isOn')['to'](_0x5a624b,'id',_0xf108c1=>'commentsArchive'===_0xf108c1),_0x30d814['set']({'label':N(_0x4a5c69,'COMMENTS_ARCHIVE'),'icon':_0x43bc8d,'isToggleable':!0x0}),_0x10e2db&&(_0x30d814['tooltip']=!0x0),this['listenTo'](_0x30d814,'execute',()=>this['_toggleDialog']()),_0x30d814;}['_hideDialogOnAnnotationEscape']=_0xe829cc=>{const _0x1e01e8=_0xe829cc['source'];if(!this['annotationViews']['has'](_0x1e01e8['view']))return;const _0x360207=this['editor']['plugins']['get']('Dialog');_0x360207['isOpen']&&'commentsArchive'===_0x360207['id']&&(_0x360207['hide'](),_0xe829cc['stop']());};}class gi extends _0x3732d9{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};