@ckeditor/ckeditor5-comments 46.0.0 → 46.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index-editor.css +5 -5
  3. package/dist/index.css +49 -49
  4. package/dist/index.js +11 -11
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +18 -18
  152. package/src/annotations/annotation.js +2 -2
  153. package/src/annotations/annotationcollection.js +1 -1
  154. package/src/annotations/annotations.js +1 -1
  155. package/src/annotations/annotationsuis.js +1 -1
  156. package/src/annotations/editorannotations.js +1 -1
  157. package/src/annotations/inlineannotations.js +1 -1
  158. package/src/annotations/narrowsidebar.js +1 -1
  159. package/src/annotations/sidebar.js +1 -1
  160. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  161. package/src/annotations/view/annotationview.js +1 -1
  162. package/src/annotations/view/sidebaritemview.js +2 -2
  163. package/src/annotations/view/sidebarview.js +2 -2
  164. package/src/annotations/widesidebar.js +1 -1
  165. package/src/comments/addcommentthreadcommand.js +1 -1
  166. package/src/comments/commentsarchive.js +1 -1
  167. package/src/comments/commentsarchiveui.js +1 -1
  168. package/src/comments/commentsediting.d.ts +1 -8
  169. package/src/comments/commentsediting.js +1 -1
  170. package/src/comments/commentsrepository.js +3 -3
  171. package/src/comments/commentsui.js +1 -1
  172. package/src/comments/integrations/clipboard.js +1 -1
  173. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  174. package/src/comments/integrations/importword.js +1 -1
  175. package/src/comments/integrations/showcommenthighlights.js +1 -1
  176. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  177. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  178. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  179. package/src/comments/ui/commentthreadcontroller.js +2 -2
  180. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  181. package/src/comments/ui/view/basecommentview.js +1 -1
  182. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  183. package/src/comments/ui/view/commentcontentview.js +1 -1
  184. package/src/comments/ui/view/commentinputview.js +1 -1
  185. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  186. package/src/comments/ui/view/commentslistview.js +1 -1
  187. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  188. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  189. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  190. package/src/comments/ui/view/commentthreadview.js +2 -2
  191. package/src/comments/ui/view/commentview.js +2 -2
  192. package/src/comments.js +1 -1
  193. package/src/commentsonly.js +1 -1
  194. package/src/index.d.ts +1 -1
  195. package/src/index.js +1 -1
  196. package/src/utils/common-translations.js +1 -1
  197. package/src/utils/createmutationobserver.js +1 -1
  198. package/src/utils/splitmarkername.d.ts +12 -0
  199. package/src/utils/splitmarkername.js +23 -0
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x2d455d,ContextPlugin as _0x2738de,PendingActions as ht,Command as _0x385260,Plugin as _0x5ddc0e,Context as _0x449ace}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x362d6f,uid as _0x58c8cf,KeystrokeHandler as jt,FocusTracker as _0x199d2b,diff as _0x159fc8,Collection as _0x23eb0b,Rect as _0x37570f,CKEditorError as _0x51f518,first as _0x5ae716,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x35e1dc,keyCodes as _0x5b1abd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x5de8e0,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x21109b,trimHtml as ts,LateFocusDropdownButtonView as _0x11425f,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x542398}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as Ct,debounce as _0x40c01b}from'es-toolkit/compat';import{IconUndo as _0x4a17ef,IconCheck as _0x1299c5,IconPencil as _0x7ba0fb,IconRemoveComment as _0x37d2b3,IconThreeVerticalDots as _0x1fc351,IconAddComment as _0x224626,IconCommentsArchive as _0x314692}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x2f1de9,ButtonView as _0x49f2c7,ViewCollection as _0xae5e8b,createDropdown as _0x12ae92,ListView as _0x1a323c,focusChildOnDropdownOpen as _0x4391eb,ListItemView as _0x8512b5,MenuBarMenuListItemButtonView as _0x58cd9a,BodyCollection as _0x5a4cd6,BalloonPanelView as _0x263b66,ContextualBalloon as _0x36b0f0,Dialog as _0xeb9489,DialogViewPosition as _0xd16eae}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0x5d0a9d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Bt,ShiftEnter as Et}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 _0xe143ff}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x1ed711}from'@ckeditor/ckeditor5-widget/dist/index.js';class yt extends/* #__PURE__ -- @preserve */
24
- _0x362d6f(){['model'];['view'];constructor(_0x55c334,_0x449fc9){super(),this['model']=_0x55c334,this['model']['_isAttached']=!0x0,this['view']=_0x449fc9,this['listenTo'](_0x449fc9,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x449fc9,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x449fc9,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x449fc9,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x449fc9,'addComment',(_0x5ae497,_0x159dd3)=>this['addComment'](_0x159dd3)),this['listenTo'](_0x449fc9,'updateComment',(_0x303e82,_0x546d06,_0x3e8ba5)=>this['updateComment'](_0x546d06,_0x3e8ba5)),this['listenTo'](_0x449fc9,'removeComment',(_0x43d7f9,_0x339947)=>this['removeComment'](_0x339947));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x6e2bd8){this['model']['addComment']({'content':_0x6e2bd8,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x1ebe3e,_0xf27533){this['model']['getComment'](_0x1ebe3e)['update']({'content':_0xf27533});}['removeComment'](_0x554edd){this['model']['getComment'](_0x554edd)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x49b7cb,_0x87113a,_0x2c6aaf){const t=_0x49b7cb['t'];switch(_0x87113a){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'},_0x2c6aaf);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'},_0x2c6aaf);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'},_0x2c6aaf);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'},_0x2c6aaf);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2c6aaf);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'},_0x2c6aaf);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'},_0x2c6aaf);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'},_0x2c6aaf);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(_0x2734da,_0x55873c){super(_0x2734da);const _0x5b227f=_0x58c8cf();this['main']=this['createCollection'](),this['editable']=new Vt(_0x2734da,_0x55873c,void 0x0,{'label':()=>N(_0x2734da,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x2734da['uiLanguageDirection'],'lang':_0x2734da['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5b227f},'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 Ft extends Ut{['view'];constructor(_0x2c5580){super(_0x2c5580),this['view']=new Rt(_0x2c5580['locale'],_0x2c5580['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0xe8dded=this['editor']['editing']['view'],_0x1c3235=this['view']['editable'],_0x515c80=_0xe8dded['document']['getRoot']();_0x1c3235['name']=_0x515c80['rootName'],this['view']['render']();const _0x7a2b1=_0x1c3235['element'];this['setEditableElement'](_0x1c3235['name'],_0x7a2b1),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xe8dded['attachDomRoot'](_0x7a2b1),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Nt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Qt extends/* #__PURE__ -- @preserve */
25
- _0x362d6f(_0x2d455d){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Nt)());constructor(_0x28f75e={}){function _0x145755(_0x1386d6){return _0x1386d6['map'](_0x1d46c5=>String['fromCharCode'](_0x1d46c5))['join']('');}(_0x28f75e=Object['assign']({},_0x28f75e))['plugins']||(_0x28f75e['plugins']=Qt['defaultPlugins']),super(_0x28f75e),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x145755([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x145755([0x76,0x69,0x65,0x77])][_0x145755([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x145755([0x61,0x75,0x74,0x6f]),this[_0x145755([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x145755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x145755([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x145755([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x145755([0x6f,0x6b])});}['create'](){const _0x5e6e29=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x5e6e29))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x2f37d2=>{const _0x5ef89a=this['model']['document']['getRoot'](),_0x362fbd=_0x5ef89a&&_0x5ef89a['getChild'](_0x5ef89a['childCount']-0x1);_0x2f37d2['setSelection'](_0x362fbd,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x464082=this['editing']['view'],_0x3e4c85=_0x464082['document']['getRoot'](),_0xea507f=_0x3e4c85['getChild'](0x0);_0x3e4c85['childCount']>0x1||!_0xea507f||'p'!=_0xea507f['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x464082,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0xea507f['placeholder']=this['placeholder']),St({'view':_0x464082,'element':_0xea507f,'keepOnFocus':!0x0}),this['placeholderElement']=_0xea507f);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x1dbf65,_0x541675={}){super(_0x1dbf65),this['editor']=null,this['_editorConfig']=_0x541675,this['set']('value',_0x541675['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x1dbf65,'Reply...')),this['set']('submitLabel',N(_0x1dbf65,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x199d2b(),this['focusCycler']=new _0x2f1de9({'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',(_0x34fbbc,_0x21e0e7)=>{this['cancelButtonView']['fire']('execute'),_0x21e0e7();}),this['keystrokes']['set']('Ctrl+Enter',(_0x27e835,_0x36a8c1)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x36a8c1());}),this['on']('submit',(_0x308dce,_0x7adeba)=>{_0x7adeba['length']>0xfde8?(alert(N(_0x1dbf65,'TOO_LONG_COMMENT_ALERT',[_0x7adeba['length'],0xfde8])),_0x308dce['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Qt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x361965=this['editor'];this['element']['insertBefore'](_0x361965['ui']['element'],this['element']['firstChild']),_0x361965['model']['document']['on']('change',()=>this['value']=_0x361965['getData']()),_0x361965['bind']('placeholder')['to'](this),this['focusables']['add'](_0x361965['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x38b789){-0x1===_0x38b789?(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:_0x296760}=this,_0x2df636=new _0x49f2c7(_0x296760);return _0x2df636['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2df636['withText']=!0x0,_0x2df636['bind']('label')['to'](this,'submitLabel'),_0x2df636['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2df636['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x240c46,_0x3292b4)=>!_0x3292b4&&!!_0x240c46['trim']()),_0x2df636;}['_createCancelButton'](){const {locale:_0x12630d}=this,_0x32aff9=new _0x49f2c7(_0x12630d);return _0x32aff9['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x32aff9['label']=N(_0x12630d,'Cancel'),_0x32aff9['withText']=!0x0,_0x32aff9['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x32aff9;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x1bda23=>{this['focusTracker']['add'](_0x1bda23['element']);}),this['focusables']['on']('change',(_0x4112bb,_0x47ae22)=>{for(const _0x4ec78f of Array['from'](_0x47ae22['added'])['reverse']())this['focusTracker']['add'](_0x4ec78f['element']);});}}class ie extends kt{constructor(_0x2df037,_0x243287,_0x2e8ed1){super(_0x2df037),this['commentInputView']=new es(_0x2df037,_0x2e8ed1),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x3ded75,_0x51f45b)=>_0x3ded75||!!_0x51f45b),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 _0x5de8e0(_0x2df037,_0x243287),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'](_0x30c977){this['commentInputView']['focus'](_0x30c977);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x5a259b,_0x455904)=>{const {submitButtonView:_0x249aaa,cancelButtonView:_0x549bc7,editor:_0x24f419}=this['commentInputView'];[_0x249aaa['element'],_0x549bc7['element'],_0x24f419?_0x24f419['editing']['view']['getDomRoot']():null]['filter'](_0x3834f1=>_0x3834f1)['some'](_0xe07cac=>_0xe07cac['contains'](_0x455904['target']))||(this['focus'](),_0x455904['preventDefault']());});}}class os extends kt{constructor(_0x576298){super(_0x576298);const _0x3e26c0=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x3e26c0['to']('count',_0x5e3a85=>N(_0x576298,'NUMBER_OF_COMMENTS',_0x5e3a85))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2c604d,_0xb84121,_0x6217af){super(_0x2c604d);const _0x27b0da=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0xb84121['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0xb84121,this['_config']=_0x6217af,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x199d2b(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2f1de9({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x174b58=>this['commentViews']['map'](_0x2dc29e=>_0x2dc29e['element'])['includes'](_0x174b58['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new os(_0x2c604d),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x18e6b2=>_0x18e6b2-this['_config']['maxCommentsWhenCollapsed']);for(const _0x1b55e4 of _0xb84121['comments'])this['_handleNewCommentModel'](_0x1b55e4);this['_handleInfoComment'](),this['listenTo'](_0xb84121['comments'],'add',(_0x5bd343,_0x59a9bb)=>{const _0x29502a=this['_calculatePosition'](_0x59a9bb);this['length']++,this['_handleNewCommentModel'](_0x59a9bb,_0x29502a),this['refreshVisibleViews']();}),this['listenTo'](_0xb84121['comments'],'remove',(_0x28dfab,_0x4adf89)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4adf89),this['refreshVisibleViews']();}),this['listenTo'](_0xb84121,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0xb84121,'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',_0x27b0da['if']('length','ck-hidden',_0x3dba85=>!_0x3dba85)],'aria-label':N(_0x2c604d,'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'](_0x6255d7){-0x1===_0x6255d7?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x564f5e of this['commentViews'])_0x564f5e['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x433bf8,_0x5cc075){const _0x497406=new this['_config']['CommentView'](this['locale'],_0x433bf8,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x497406['viewUid']=_0x433bf8['id'],_0x497406['delegate']('removeComment')['to'](this),_0x497406['delegate']('updateComment')['to'](this),_0x497406['delegate']('resolveCommentThread')['to'](this),_0x497406['delegate']('editorReady')['to'](this),_0x497406['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x497406,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x497406,_0x5cc075);}['_calculatePosition'](_0x5a32fa){const _0x1bf155=this['_model']['_findOptimalIndex'](_0x5a32fa);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x5a32fa['authoredAt']?_0x1bf155-0x1:_0x1bf155:_0x1bf155-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x5344f2={'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'],_0x5344f2,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x5344f2));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x3f3870){const _0x16d8c3=this['commentViews']['remove'](_0x3f3870['id']);this['stopListening'](_0x16d8c3),_0x16d8c3['isEditMode']&&this['_updateHasDirtyComment'](),_0x16d8c3['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x5cc5d9=>_0x5cc5d9['isEditMode']);}['_rearrangeCollapse'](){const _0x1c002a=function(_0x248877){const _0x5680a5=new _0x23eb0b();for(const _0x1a4c63 of _0x248877)_0x5680a5['add'](_0x1a4c63);return _0x5680a5;}(this['commentViews']),_0x1ad8f3=this['_collapsedCommentsView']['count'];for(let _0x4a7d7c=0x1;_0x4a7d7c<=_0x1ad8f3;_0x4a7d7c++)_0x1c002a['remove'](0x1);for(const _0x3422ba of _0x1c002a)_0x3422ba['collapse']();_0x1ad8f3>0x0&&_0x1c002a['add'](this['_collapsedCommentsView'],0x1),rs(_0x159fc8(Array['from'](this['visibleViews']),Array['from'](_0x1c002a)),this['visibleViews'],_0x1c002a);}['_rearrangeExpand'](){rs(_0x159fc8(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x3b1939 of this['visibleViews'])_0x3b1939['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x5dd4f2=>{this['focusTracker']['add'](_0x5dd4f2['element']),this['keystrokes']['listenTo'](_0x5dd4f2['element']);}),this['commentViews']['on']('change',(_0x526207,_0x1563b2)=>{for(const _0x1d3d94 of _0x1563b2['removed'])this['focusTracker']['remove'](_0x1d3d94['element']),this['keystrokes']['stopListening'](_0x1d3d94['element']);for(const _0x3b067f of Array['from'](_0x1563b2['added'])['reverse']())this['focusTracker']['add'](_0x3b067f['element']),this['keystrokes']['listenTo'](_0x3b067f['element']);});}}function rs(_0x2310fd,_0x26b676,_0x1afbec){let _0x2af8bc=0x0;for(const _0x9d6cea of _0x2310fd)switch(_0x9d6cea){case'insert':_0x26b676['add'](_0x1afbec['get'](_0x2af8bc),_0x2af8bc),_0x2af8bc++;break;case'delete':_0x26b676['remove'](_0x2af8bc);break;case'equal':_0x2af8bc++;}}class oe extends kt{constructor(_0x34ca81){super(_0x34ca81);const _0x455fa2=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x455fa2['to']('contextValue',_0x34cc5d=>N(_0x34ca81,'THREAD_CONTEXT_LABEL',_0x34cc5d)),'tabindex':-0x1},'children':[{'text':_0x455fa2['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5512ee,_0x2dc581){super(_0x5512ee);const _0x5ed35c=this['bindTemplate'];this['_model']=_0x2dc581,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x199d2b(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2f1de9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x7659d8=>!!_0x7659d8),this['bind']('contextValue')['to'](this['_model'],'context',_0x1dd0ac=>_0x1dd0ac&&_0x1dd0ac['value']?this['_trimContextValue'](_0x1dd0ac['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',_0x5ed35c['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 _0x298ccb=new _0x49f2c7(this['locale']);return _0x298ccb['label']=N(this['locale'],'Reopen'),_0x298ccb['tooltip']=N(this['locale'],'Reopen'),_0x298ccb['icon']=_0x4a17ef,_0x298ccb['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4713fb=>!_0x4713fb),_0x298ccb['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x35aa24,_0x21f43d)=>_0x35aa24&&_0x21f43d),_0x298ccb['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x298ccb;}['_trimContextValue'](_0x40ef82){if(_0x40ef82['length']<0x96)return _0x40ef82;const _0x45ed53=_0x40ef82['lastIndexOf']('\x20',0x93);return _0x40ef82['substring'](0x0,_0x45ed53>-0x1?_0x45ed53:0x93)+'...';}['_attachContextActions'](){const _0x340967=this['element']['querySelector']('.ck-context'),_0x58f9fe=_0x340967['querySelector']('.ck-context__value');this['listenTo'](_0x340967,'mouseenter',()=>{_0x58f9fe['offsetWidth']<_0x58f9fe['scrollWidth']&&_0x340967['classList']['add']('overlay');}),this['listenTo'](_0x340967,'mouseleave',()=>{_0x340967['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x3bd157 of this['focusables'])this['focusTracker']['add'](_0x3bd157['element']),this['keystrokes']['listenTo'](_0x3bd157['element']);}['_createContextView'](){const _0x16228f=new oe(this['locale']);return _0x16228f['bind']('contextValue')['to'](this),_0x16228f;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2eabb3,_0x33d820,_0x355ca5,_0x373df7){super(_0x2eabb3),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x33d820,this['_localUser']=_0x355ca5,this['_config']=_0x373df7,this['commentThreadHeaderView']=new Xt(_0x2eabb3,_0x33d820),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x2eabb3,N(_0x2eabb3,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2eabb3,_0x33d820,Object['assign']({'CommentView':this['_config']['CommentView']},_0x373df7)),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',(_0x423559,_0x23bfcd)=>_0x423559||!!_0x23bfcd),this['bind']('isUnlinked')['to'](_0x33d820,'unlinkedAt',_0x302e37=>!!_0x302e37),this['bind']('ariaLabel')['to'](this,'length',_0x30a5d5=>{const _0x240d6e=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x30a5d5,_0x240d6e]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x199d2b(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2f1de9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3e48e4=>_0x3e48e4['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 _0x2ccb96=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x585086=_0x2ccb96['commentInputView'];return _0x2ccb96['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x585086,'value',(_0x25d42e,_0x309e4f,_0x440391,_0x4e609f,_0x253879)=>!!_0x253879||!!_0x4e609f&&_0x440391&&!_0x309e4f||_0x25d42e&&_0x440391&&!_0x309e4f),_0x585086['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3ba7f2,_0x578048,_0x22261e)=>{let _0x2a2593;return _0x2a2593=_0x22261e&&_0x578048?'Reply\x20to\x20reopen\x20discussion...':_0x3ba7f2?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x2a2593);}),_0x585086['bind']('submitLabel')['to'](this,'length',_0x4dc962=>N(this['locale'],_0x4dc962?'Reply':'Comment')),_0x585086['on']('submit',(_0x32f1f9,_0x22b74f)=>{this['fire']('addComment',_0x22b74f),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x585086['on']('cancel',()=>{this['focus']();}),_0x585086['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x585086['on']('cancel',_0x24be22=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x24be22['stop']());}),this['on']('change:isActive',(_0x330d66,_0xb9c603,_0x5c7b94)=>{_0x5c7b94||this['length']||_0x585086['value']||this['fire']('removeCommentThread');}),_0x2ccb96;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x4397f7,_0x3b760a,_0x476ee8,_0x1c3dec){super(_0x4397f7,_0x3b760a,_0x476ee8,_0x1c3dec),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x4397f7,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x2749f2,_0x4d298a,_0x10fc14)=>{_0x10fc14||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x5039d3,_0x2c888e,_0x381ec8)=>{_0x381ec8&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x4d3e8b=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x4d3e8b['if']('isActive','ck-thread--active'),_0x4d3e8b['if']('isUnlinked','ck-thread--unlinked'),_0x4d3e8b['if']('isConfirm','ck-thread--remove-confirmation'),_0x4d3e8b['to']('actionIndicator',_0xd81804=>_0xd81804?'ck-thread--'+_0xd81804:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4d3e8b['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 _0x4b160d of this['commentsListView']['commentViews'])_0x4b160d['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x31beec}=this,_0x1cde10=this['commentsListView']['commentViews']['get'](0x0);_0x1cde10===this['_boundFirstCommentView']||_0x1cde10['isSystemComment']||(this['_boundFirstCommentView']=_0x1cde10,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x1cde10,'actionIndicator',_0x36ec44=>'remove'===_0x36ec44?'remove':null),_0x1cde10['placeholder']=N(_0x31beec,'Write\x20a\x20comment...'),_0x1cde10['removeButton']['on']('execute',_0x5d6f13=>{_0x5d6f13['stop'](),this['showConfirm'](N(_0x31beec,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x1cde10['focus']();}),_0x1cde10['actionBar']['add'](this['resolveButton'],0x0),_0x1cde10['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x5c39de=new _0x21109b(this['locale']);return _0x5c39de['label']=N(this['locale'],'Resolve'),_0x5c39de['tooltip']=N(this['locale'],'Resolve'),_0x5c39de['icon']=_0x1299c5,_0x5c39de['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x5c39de['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3780ba=>!_0x3780ba),_0x5c39de['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x383af2,_0x4ed226)=>_0x383af2&&!_0x4ed226),_0x5c39de['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x5c39de;}['_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(_0x22d4dd){super(_0x22d4dd),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x40de0a,_0xc0d152,_0x31be35)=>{this['element']['innerHTML']=_0x31be35;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x513146,_0x1f321d,_0x53ae8f){super(_0x513146),this['_model']=_0x1f321d,this['_config']=_0x53ae8f,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x1f321d,'content',_0x1f321d,'authoredAt',(_0x239219,_0x5585e9)=>N(_0x513146,'COMMENT_ARIA_LABEL',[_0x1f321d['author']['name'],_0x53ae8f['formatDateTime'](_0x5585e9),new DOMParser()['parseFromString'](_0x239219,'text/html')['body']['textContent'],_0x1f321d['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x513146,N(_0x513146,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xae5e8b(),this['focusTracker']=new _0x199d2b(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2f1de9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x377930=>_0x377930['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 _0x3b54e5=new is(this['locale']);return _0x3b54e5['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0xd7df45,_0x5931ba)=>_0x5931ba?ts(_0xd7df45,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0xd7df45),_0x3b54e5;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x27c718=new es(this['locale'],this['_config']['editorConfig']);return _0x27c718['value']=this['_model']['content'],_0x27c718['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x27c718['submitLabel']=N(this['locale'],'Save'),_0x27c718['on']('submit',(_0x14a44c,_0x1bf5ac)=>{this['fire']('updateComment',this['_model']['id'],_0x1bf5ac),this['switchToDisplayMode'](),this['focus']();}),_0x27c718['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x27c718['once']('editorReady',()=>{_0x27c718['focus']();}),_0x27c718['createEditor'](),_0x27c718['delegate']('editorReady')['to'](this),_0x27c718['delegate']('editorDestroyed')['to'](this),_0x27c718;}['_setupKeyboardNavigation'](){const _0x15ea07=this['element'];this['keystrokes']['listenTo'](_0x15ea07);for(const _0x4c56a8 of this['focusables'])this['focusTracker']['add'](_0x4c56a8['element']),this['keystrokes']['listenTo'](_0x4c56a8['element']);this['focusables']['on']('change',(_0x51a01d,_0x19ee70)=>{for(const _0x3c297c of _0x19ee70['removed'])this['focusTracker']['remove'](_0x3c297c['element']),this['keystrokes']['stopListening'](_0x3c297c['element']);for(const _0x8c85a9 of _0x19ee70['added'])this['focusTracker']['add'](_0x8c85a9['element']),this['keystrokes']['listenTo'](_0x8c85a9['element']);}),this['keystrokes']['set']('enter',(_0x228b7f,_0x19c401)=>{_0x15ea07===_0x228b7f['target']&&(this['focusCycler']['focusFirst'](),_0x19c401());}),this['keystrokes']['set']('esc',(_0x4f27fd,_0x47f078)=>{_0x15ea07!==_0x4f27fd['target']&&(this['focus'](),_0x47f078());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x18595a,_0xbfce03,_0x5c3863){super(_0x18595a,_0xbfce03,_0x5c3863),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x18595a,'Reply...')),this['bind']('authoredAt')['to'](_0xbfce03),this['bind']('resolvedAt')['to'](_0xbfce03),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 _0x5de8e0(_0x18595a,_0xbfce03['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0xbfce03,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x460cc5=this['bindTemplate'],_0x83f579=[{'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':_0x460cc5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x460cc5['to']('authoredAt',_0x5debba=>this['_config']['formatDateTime'](_0x5debba))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x460cc5['if']('isEditMode','ck-comment__actions--hidden'),_0x460cc5['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']&&_0x83f579['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x460cc5['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x460cc5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x460cc5['if']('isEditMode','ck-comment--edit'),_0x460cc5['if']('isSystemComment','ck-comment--info'),_0x460cc5['to']('actionIndicator',_0x15bfa3=>_0x15bfa3?'ck-comment--'+_0x15bfa3:'')],'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':_0x83f579}]}]};}['_createEditButton'](){const _0x349885=new _0x49f2c7(this['locale']);return _0x349885['label']=N(this['locale'],'Edit'),_0x349885['icon']=_0x7ba0fb,_0x349885['withText']=!0x0,_0x349885['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x349885['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x142603=>!_0x142603),_0x349885['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x349885['on']('execute',()=>this['switchToEditMode']()),_0x349885;}['_createRemoveButton'](){const _0x33cd48=new _0x49f2c7(this['locale']);return _0x33cd48['label']=N(this['locale'],'Remove'),_0x33cd48['icon']=_0x37d2b3,_0x33cd48['withText']=!0x0,_0x33cd48['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x33cd48['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x51cb4e=>!_0x51cb4e),_0x33cd48['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x33cd48['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x33cd48;}['_createDropdown'](){const _0x30eb6f=_0x12ae92(this['locale'],_0x11425f),_0x2bab78=_0x30eb6f['panelView']['children'],_0x1a5f1e=new _0x1a323c(this['locale']),_0x4ec3e0=_0x30eb6f['bindTemplate'];_0x4391eb(_0x30eb6f,()=>this['items']['find'](_0x46180d=>_0x46180d['isVisible'])),_0x30eb6f['extendTemplate']({'attributes':{'class':[_0x4ec3e0['if']('isVisible','ck-hidden',_0x1300c5=>!_0x1300c5)]}});const _0x409b4c=(_0x7a7d61,_0x3bec6d=-0x1)=>{const _0xc7c31f=new _0x8512b5(this['locale']);_0xc7c31f['children']['add'](_0x7a7d61);const _0x5a6b19=_0x3bec6d>-0x1?_0x3bec6d:_0x1a5f1e['items']['length'];_0x1a5f1e['items']['add'](_0xc7c31f,_0x5a6b19);const _0x31638d=Array['from'](this['items']);_0x30eb6f['unbind']('isEnabled','isVisible'),_0x30eb6f['bind']('isEnabled')['toMany'](_0x31638d,'isEnabled',(..._0xab3846)=>_0xab3846['some'](_0x462681=>_0x462681)),_0x30eb6f['bind']('isVisible')['toMany'](_0x31638d,'isVisible',(..._0x21ebde)=>_0x21ebde['some'](_0x3cbe18=>_0x3cbe18));};_0x30eb6f['panelPosition']='sw',_0x30eb6f['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x1fc351});for(const _0x455ac0 of this['items'])_0x409b4c(_0x455ac0);return _0x2bab78['add'](_0x1a5f1e),_0x30eb6f['listenTo'](this['items'],'add',(_0x312499,_0x1e4048,_0x38fde6)=>{_0x409b4c(_0x1e4048,_0x38fde6);}),_0x30eb6f['listenTo'](this['items'],'remove',(_0x3ca9b1,_0x100cc4,_0x5a1082)=>{_0x1a5f1e['items']['remove'](_0x5a1082);}),_0x30eb6f;}['_attachActions'](_0x8c2ce0,_0x136065){const _0x2008a2=_0x8c2ce0&&_0x8c2ce0['element'];_0x2008a2&&(this['listenTo'](_0x2008a2,'mouseenter',()=>this['actionIndicator']=_0x136065),this['listenTo'](_0x2008a2,'focus',()=>this['actionIndicator']=_0x136065),this['listenTo'](_0x2008a2,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x2008a2,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x149edf=super['_createCommentInputView']();return _0x149edf['bind']('placeholder')['to'](this),_0x149edf;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x404d18){const _0x3df5c6=Dt(_0x404d18,0x1e),_0x57af1d=new MutationObserver(_0x14376c=>{for(const _0x4999c4 of _0x14376c)('attributes'==_0x4999c4['type']&&'class'==_0x4999c4['attributeName']||'childList'==_0x4999c4['type']||'characterData'==_0x4999c4['type'])&&_0x3df5c6();});return{'attach'(_0x1f41f9){_0x57af1d['observe'](_0x1f41f9,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x57af1d['disconnect'](),_0x3df5c6['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x2ae51c,_0x4c0900){super(_0x2ae51c),this['id']=_0x58c8cf(),this['focusTracker']=new _0x199d2b(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x9be2f9,_0x16f996)=>this['fire']('Esc',_0x16f996)),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'](_0x4c0900),this['mainView']=_0x4c0900;const _0x256399=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x256399['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 _0x5972a3=this['element']['clientHeight'];_0x5972a3&&(this['height']=_0x5972a3);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x362d6f(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0xabb344,target:_0x57123e,type:_0x10a661,isVisible:_0x584b63=!0x0}){super(),this['view']=_0xabb344,this['view']['element']||this['view']['render'](),this['_type']=_0x10a661,this['_target']=_0x57123e,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x23eb0b([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x24ad5c,_0x3b342d)=>{this['view']['focusTracker']['add'](_0x3b342d);}),this['focusableElements']['on']('remove',(_0x5869bf,_0x58eb43)=>{this['view']['focusTracker']['remove'](_0x58eb43);}),this['set']('isVisible',_0x584b63);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x2d1b8a=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x2d1b8a),_0x2d1b8a;}get['targetRect'](){const _0x2b8eb0=this['target'];if(null===_0x2b8eb0)return null;if(_0x2b8eb0 instanceof _0x37570f)return _0x2b8eb0;const _0x41c2c2=_0x2b8eb0['filter'](_0x4eb7a6=>function(_0x4bea57){const _0x1b3db3=_0x4bea57['offsetParent'];if(_0x1b3db3)return!0x0;const _0x5a825f=_0x4bea57['getClientRects']()['item'](0x0);return!!_0x5a825f;}(_0x4eb7a6));return 0x0===_0x41c2c2['length']?null:new _0x37570f(_0x41c2c2[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x66ba35){this['view']['isActive']=_0x66ba35,this['view']['mainView']['isActive']=_0x66ba35;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3a5d36){if(!(null===_0x3a5d36||_0x3a5d36 instanceof _0x37570f||Array['isArray'](_0x3a5d36)&&_0x3a5d36['every'](_0x113c26=>fi(_0x113c26))))throw new _0x51f518('annotation-invalid-target',null,{'target':_0x3a5d36});}['_getNormalizedTarget'](){const _0x1897b8='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x1897b8)?[_0x1897b8]:_0x1897b8;}}function fi(_0x181e43){return null!==_0x181e43&&'object'==typeof _0x181e43&&'nodeType'in _0x181e43&&0x1===_0x181e43['nodeType'];}class S extends _0x23eb0b{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x51f360=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x199d2b(),this['_focusTracker']['on']('change:isFocused',(_0x45ffad,_0xc44ef7,_0x75255e)=>{_0x75255e||this['fire']('blur');});for(const _0x44814e of _0x51f360)this['add'](_0x44814e);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x4aeb69){if(this['has'](_0x4aeb69))throw new _0x51f518('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x4aeb69['innerView'],_0x4aeb69),this['_viewToAnnotation']['set'](_0x4aeb69['view'],_0x4aeb69);for(const _0x4e42e5 of _0x4aeb69['focusableElements'])this['_focusTracker']['add'](_0x4e42e5);this['listenTo'](_0x4aeb69['focusableElements'],'add',(_0x41ce78,_0x16bdff)=>{this['_focusTracker']['add'](_0x16bdff);}),this['listenTo'](_0x4aeb69['focusableElements'],'remove',(_0x8aef8b,_0x16583f)=>{this['_focusTracker']['remove'](_0x16583f);}),this['listenTo'](_0x4aeb69['view']['focusTracker'],'change:isFocused',(_0x1b7dec,_0x12c2de,_0xada6d5)=>{_0xada6d5&&this['fire']('focus',_0x4aeb69);}),_0x4aeb69['updateTargetRect']();const _0x55ce2e=this['_getOrderInContent'](_0x4aeb69['view']['targetRect']);return super['add'](_0x4aeb69,_0x55ce2e);}['remove'](_0x50b277){if(!this['has'](_0x50b277))throw new _0x51f518('annotationcollection-not-existing-item',null);this['stopListening'](_0x50b277['view']['focusTracker']),this['stopListening'](_0x50b277['focusableElements']);for(const _0x556a16 of _0x50b277['focusableElements'])this['_focusTracker']['remove'](_0x556a16);return this['_viewToAnnotation']['delete'](_0x50b277['view']),this['_innerViewToAnnotation']['delete'](_0x50b277['innerView']),super['remove'](_0x50b277);}['getByInnerView'](_0x2e5f43){return this['_innerViewToAnnotation']['get'](_0x2e5f43);}['getByView'](_0x308293){return this['_viewToAnnotation']['get'](_0x308293);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x36b66a of this)_0x36b66a['updateTargetRect']();this['_sort']();}['_sort'](){const _0x8347e4=Array['from'](this)['sort']((_0x1037ef,_0x16f600)=>w(_0x1037ef['view']['targetRect'],_0x16f600['view']['targetRect']));for(let _0x11727c=_0x8347e4['length']-0x1;_0x11727c>0x0;_0x11727c--){const _0x46ff38=_0x8347e4[_0x11727c];_0x11727c!==this['getIndex'](_0x46ff38)&&(this['remove'](_0x46ff38),this['add'](_0x46ff38));}}['_getOrderInContent'](_0x477153){let _0xd802ce=0x0;if(!_0x477153)return this['length'];for(const _0x35654e of this){const _0x2c0828=_0x35654e['view']['targetRect'];if(_0x2c0828){if(w(_0x477153,_0x2c0828)<0x0)return _0xd802ce;_0xd802ce++;}}return _0xd802ce;}}function v({source:_0xc92d1,target:_0x2b7dfc,filter:_0x8044f3}){for(const _0x289e54 of _0xc92d1)_0x8044f3(_0x289e54)&&_0x2b7dfc['add'](_0x289e54);_0x2b7dfc['listenTo'](_0xc92d1,'add',(_0x9c451d,_0x1648ec)=>{_0x8044f3(_0x1648ec)&&_0x2b7dfc['add'](_0x1648ec);}),_0x2b7dfc['listenTo'](_0xc92d1,'remove',(_0x1497bf,_0x34f95b)=>{_0x2b7dfc['has'](_0x34f95b)&&_0x2b7dfc['remove'](_0x34f95b);});}function w(_0x3706bc,_0x9e6a65){if(null===_0x3706bc&&null===_0x9e6a65)return 0x0;if(null===_0x3706bc)return-0x1;if(null===_0x9e6a65)return 0x1;const _0x48a7f6=_0x3706bc['top']-_0x9e6a65['top'];return 0x0==_0x48a7f6?_0x3706bc['left']-_0x9e6a65['left']:_0x48a7f6;}class y extends _0x2738de{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c1819){if(super(_0x1c1819),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x1c1819 instanceof _0x2d455d){const _0x3184f2=_0x1c1819['locale'];_0x1c1819['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x3184f2,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x3184f2,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x3184f2,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x3184f2,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x3184f2,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x3184f2,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x3184f2,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x558bff){this['collection']['add'](_0x558bff);}['remove'](_0x8a65c4){this['collection']['remove'](_0x8a65c4),_0x8a65c4['destroy']();}['refreshVisibility'](){for(const _0x3cd316 of this['collection'])_0x3cd316['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x3457a6){return this['collection']['getByInnerView'](_0x3457a6);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x14cc2e of this['collection'])_0x14cc2e['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x45995d){this['fire']('_activateAnnotation',_0x45995d);}['createAnnotation'](_0x3e1ec7){return new T(_0x3e1ec7);}['createAnnotationView'](_0x59f401,_0x108475){return new E(_0x59f401,_0x108475);}['_addActiveAnnotation'](_0x35ab62){const _0x1d7b61=new Set(this['activeAnnotations']);_0x1d7b61['add'](_0x35ab62),this['activeAnnotations']=_0x1d7b61;}['_removeActiveAnnotation'](_0x17ba59){const _0x39fff0=new Set(this['activeAnnotations']);_0x39fff0['delete'](_0x17ba59),this['activeAnnotations']=_0x39fff0;}['_bindAnnotationsToVisibleAnnotations'](){const _0x1a2c3e=this['collection'],_0x34640a=this['_visibleAnnotations'];function _0x377b0b(_0x59485b){const _0x503e66=_0x59485b['source'];_0x503e66['isVisible']&&!_0x34640a['has'](_0x503e66)?_0x34640a['add'](_0x503e66):!_0x503e66['isVisible']&&_0x34640a['has'](_0x503e66)&&_0x34640a['remove'](_0x503e66),_0x503e66['view']['focusTracker']['remove'](_0x503e66['view']['element']),_0x503e66['view']['focusTracker']['add'](_0x503e66['view']['element']);}this['listenTo'](_0x1a2c3e,'add',(_0x5853e2,_0x1d2c4b)=>{_0x1d2c4b['isVisible']&&_0x34640a['add'](_0x1d2c4b),this['listenTo'](_0x1d2c4b,'change:isVisible',_0x377b0b);}),this['listenTo'](_0x1a2c3e,'remove',(_0x35eb37,_0x11da15)=>{_0x34640a['has'](_0x11da15)&&_0x34640a['remove'](_0x11da15),this['stopListening'](_0x11da15,'change:isVisible',_0x377b0b);});}['_setupEnterAnnotationKeystroke'](){const _0x5ef4d7=_0x203300=>{_0x203300['on']('ready',()=>{_0x203300['keystrokes']['set'](_0xe143ff,(_0x21f83c,_0x1cc960)=>{const _0x13c99b=_0x5ae716(this['activeAnnotations']['values']());_0x13c99b&&(_0x13c99b['view']['focus'](),_0x1cc960());});});};this['context']instanceof _0x2d455d?_0x5ef4d7(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1dd5b1,_0x49977a)=>{_0x5ef4d7(_0x49977a);});}['_setupEscapeAnnotationHandling'](){const _0x540509=_0x2b4260=>{const _0x527fe6=_0x2b4260['source'],_0x257217=[];let _0x4cc4fe;if(Array['isArray'](_0x527fe6['target'])){_0x4cc4fe=_0x527fe6['target'][0x0],this['context']instanceof _0x2d455d?_0x257217['push'](this['context']):this['context']['editors']&&_0x257217['push'](...this['context']['editors']);for(const _0x1bad81 of _0x257217)for(const _0x58a2f5 of _0x1bad81['editing']['view']['domRoots']['values']())if(_0x58a2f5['contains'](_0x4cc4fe))return void _0x1bad81['editing']['view']['focus']();_0x4cc4fe['focus']();}};this['listenTo'](this['collection'],'add',(_0x434e27,_0x5a5748)=>{this['listenTo'](_0x5a5748,'escape',_0x540509,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1c7268,_0xa3732d)=>{this['stopListening'](_0xa3732d,'escape',_0x540509);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2738de{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2189fb){super(_0x2189fb),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0xf8db43=this['context']['config'];_0xf8db43['define']('comments.maxCommentsWhenCollapsed',0x2),_0xf8db43['define']('comments.maxThreadTotalWeight',0x1f4),_0xf8db43['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0xf8db43['define']('comments.CommentThreadView',vt),_0xf8db43['define']('comments.CommentView',gt),_0xf8db43['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x4637ff=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x25f8f4,_0xfdf477)=>this['_addCommentThread'](_0xfdf477)),this['on']('submitCommentThread',(_0x27e6e7,_0x398aec)=>this['_submitCommentThread'](_0x398aec)),this['on']('resolveCommentThread',(_0x21a241,_0x23e40e)=>this['_resolveCommentThread'](_0x23e40e)),this['on']('resolveCommentThread',(_0x45f8fd,_0x1e5ab3)=>this['_updateActiveAnnotation'](_0x1e5ab3),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x2e693d,_0x488f7d)=>this['_reopenCommentThread'](_0x488f7d)),this['on']('reopenCommentThread',(_0x5acf4f,_0x38be5e)=>this['_updateActiveAnnotation'](_0x38be5e),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x352133,_0x13696f)=>this['_removeCommentThread'](_0x13696f)),this['on']('updateCommentThread',(_0x478c79,_0x377d2c)=>this['_updateCommentThread'](_0x377d2c)),this['on']('updateCommentThread',(_0x49e647,_0x5222e4)=>this['_updateActiveAnnotation'](_0x5222e4),{'priority':'lowest'}),this['on']('addComment',(_0x113143,_0x51fa46)=>this['_addComment'](_0x51fa46)),this['on']('updateComment',(_0x44aa4e,_0x139b07)=>this['_updateComment'](_0x139b07)),this['on']('removeComment',(_0x44d111,_0x35077b)=>this['_removeComment'](_0x35077b)),this['on']('addComment',(_0x4aaa47,{threadId:_0xe666bc,isFromAdapter:_0x323405})=>{if(_0x323405)return;const _0x52afb2=this['getCommentThread'](_0xe666bc),_0x133432=_0x52afb2&&this['_threadToController']['get'](_0x52afb2);_0x133432&&_0x133432['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x4637ff,'change:activeAnnotations',(_0xa43b36,_0x43fad2,_0x5acfed)=>{const _0xabab52=Array['from'](_0x5acfed)['map'](_0x2df9a3=>this['_viewToController']['get'](_0x2df9a3['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xabab52?_0xabab52['model']:null;});}set['adapter'](_0x52bb22){if(this['_adapter'])throw new _0x51f518('commentsrepository-adapter-already-set');this['_adapter']=_0x52bb22;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x14100c=Tt,threadId:_0x3da65b=_0x58c8cf(),comments:_0x36aaf3=[],unlinkedAt:_0x48c557=null,resolvedAt:_0xad02d2=null,resolvedBy:_0x16e0f0=null,target:_0x965374=null,context:_0x519099=null,attributes:_0x3d2bcb={},isResolvable:_0x31ef28=!0x0,isSubmitted:_0x5dd40d=!0x1,isFromAdapter:_0x5b8f79=!0x1}={}){return this['fire'](bt('addCommentThread',_0x14100c),{'channelId':_0x14100c,'threadId':_0x3da65b,'comments':_0x36aaf3,'unlinkedAt':_0x48c557,'resolvedAt':_0xad02d2,'resolvedBy':_0x16e0f0,'target':_0x965374,'context':_0x519099,'attributes':_0x3d2bcb,'isFromAdapter':_0x5b8f79,'isResolvable':_0x31ef28,'isSubmitted':_0x5dd40d}),this['getCommentThread'](_0x3da65b);}['openNewCommentThread']({channelId:_0x41a9d0=Tt,threadId:_0x1402f3=_0x58c8cf(),target:_0x422eaf,context:_0x13ac01=null,isResolvable:_0x2edff3=!0x0}){if(this['_readOnlyChannels']['has'](_0x41a9d0)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x422eaf)throw new _0x51f518('commentsrepository-missing-target');const _0x29b16e=this['addCommentThread']({'channelId':_0x41a9d0,'threadId':_0x1402f3,'target':_0x422eaf,'context':_0x13ac01,'isResolvable':_0x2edff3});if(!_0x29b16e)return null;const _0x241c18=this['_threadToController']['get'](_0x29b16e),_0x2a6222=_0x241c18['view']['commentThreadInputView']['commentInputView'],_0x55fb24=this['context']['plugins']['get'](y),_0x10d919=_0x55fb24['getByInnerView'](_0x241c18['view']);return _0x55fb24['activate'](_0x10d919),_0x2a6222['once']('editorReady',()=>_0x2a6222['focus']()),_0x29b16e;}['hasCommentThread'](_0x25a29d){if('string'!=typeof _0x25a29d)throw new _0x51f518('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x25a29d);}['updateCommentThread']({channelId:_0x233296=Tt,threadId:_0x2e2fd1,context:_0x35dd7d,unlinkedAt:_0x537293,attributes:_0x45ac67,isFromAdapter:_0x23e0cb=!0x1}){return this['fire'](bt('updateCommentThread',_0x233296),{'channelId':_0x233296,'threadId':_0x2e2fd1,'context':_0x35dd7d,'unlinkedAt':_0x537293,'attributes':_0x45ac67,'isFromAdapter':_0x23e0cb}),this['getCommentThread'](_0x2e2fd1);}['getCommentThread'](_0x2c8a31){if('string'!=typeof _0x2c8a31)throw new _0x51f518('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2c8a31);}['fetchCommentThread']({channelId:_0x4bc493,threadId:_0x5bacd2}={}){const _0x4a2731=this['getCommentThread'](_0x5bacd2);if(_0x4a2731)return Promise['resolve'](_0x4a2731);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x51f518('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x4bc493,'threadId':_0x5bacd2})['then'](_0x15a5c5=>this['hasCommentThread'](_0x5bacd2)?this['getCommentThread'](_0x5bacd2):_0x15a5c5?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x4bc493},_0x15a5c5)):void 0x0)['catch'](_0x3372d7=>{throw console['error'](_0x3372d7),new _0x51f518('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x199d77,skipNotAttached:_0xb09ee7=!0x1,skipEmpty:_0x512340=!0x1,toJSON:_0x1d01f8=!0x1}={}){const _0x14ddd4=[];for(const _0x14997b of this['_threads']['values']())_0x199d77&&_0x14997b['channelId']!==_0x199d77||_0xb09ee7&&!_0x14997b['isAttached']||_0x512340&&0x0===_0x14997b['length']||_0x14ddd4['push'](_0x14997b);return _0x1d01f8?_0x14ddd4['map'](_0x472cb1=>_0x472cb1['toJSON']()):_0x14ddd4;}['getAnnotationForCommentThread'](_0x186709){const _0x271c18=this['_threadToController']['get'](_0x186709);if(!_0x271c18)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x271c18['view'])||null;}['getCommentThreadForAnnotation'](_0x2b14c9){const _0xcafdc4=this['_viewToController']['get'](_0x2b14c9['innerView']);return _0xcafdc4?_0xcafdc4['model']:null;}['setActiveCommentThread'](_0x556939){const _0x1c7b7c=this['context']['plugins']['get'](y);if(!_0x556939)return void(this['activeCommentThread']&&_0x1c7b7c['deactivateAll']());const _0xf2d589=this['getCommentThread'](_0x556939);if(!_0xf2d589)throw new _0x51f518('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x556939});if(!this['_threadToController']['has'](_0xf2d589))throw new _0x51f518('commentsrepository-active-not-attached',null,{'threadId':_0x556939});const _0x37e671=_0x1c7b7c['getByInnerView'](this['_threadToController']['get'](_0xf2d589)['view']);_0x1c7b7c['activate'](_0x37e671);}['switchReadOnly'](_0x4f8c3f,_0x1e69a2){_0x4f8c3f?this['_readOnlyChannels']['add'](_0x1e69a2):this['_readOnlyChannels']['delete'](_0x1e69a2),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x57b83a){return this['_readOnlyChannels']['has'](_0x57b83a)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x28507a,_0x172478){return new yt(_0x28507a,_0x172478);}['setPermissions'](_0x140b3d,_0x151f65=Tt){this['_permissions']['set'](_0x151f65,_0x140b3d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4cf6cf=Tt){return this['_permissions']['has'](_0x4cf6cf)?this['_permissions']['get'](_0x4cf6cf):_t;}['_addCommentThread']({channelId:_0x8dac15,threadId:_0x589079,comments:_0x18c7f6,unlinkedAt:_0x157a04,resolvedAt:_0x20a5c8,resolvedBy:_0x48f571,target:_0x53e29c,context:_0x44a01a,attributes:_0x1e5443,isFromAdapter:_0x4db917,isResolvable:_0x13e2cb,isSubmitted:_0x1b175b}){if('string'!=typeof _0x589079)throw new _0x51f518('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x589079});if(this['hasCommentThread'](_0x589079))throw new _0x51f518('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x589079});const _0x182c66=new pi(this,{'channelId':_0x8dac15,'id':_0x589079,'context':_0x44a01a,'attributes':_0x1e5443,'unlinkedAt':_0x157a04,'resolvedAt':_0x20a5c8,'resolvedBy':_0x48f571?this['context']['plugins']['get'](it)['getUser'](_0x48f571):null,'isResolvable':_0x13e2cb,'isSubmitted':_0x1b175b||_0x4db917});this['_threads']['set'](_0x589079,_0x182c66);for(const _0x243f40 of _0x18c7f6)_0x182c66['_add'](this['_createNewComment']({'threadId':_0x589079,..._0x243f40}));return _0x53e29c&&_0x182c66['attachTo'](_0x53e29c),_0x4db917||!_0x182c66['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x8dac15,'threadId':_0x589079});}['_submitCommentThread']({channelId:_0x4b989b,threadId:_0x62ce9e}){if(!this['hasCommentThread'](_0x62ce9e))throw new _0x51f518('commentsrepository-missing-comment-thread',this);const _0x1ba518=this['getCommentThread'](_0x62ce9e);if(_0x1ba518['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x2751f7,comments:_0x52c8b4,resolvedAt:_0x6a4f04,resolvedBy:_0xe23ab,context:_0x537735,attributes:_0xbf8b16}=_0x1ba518,_0x165c5a=this['context']['plugins']['get']('PendingActions'),_0x469060=_0x165c5a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4b989b,'threadId':_0x2751f7,'comments':_0x52c8b4['map'](_0x55f4cd=>_0x55f4cd['toJSON']()),'resolvedAt':_0x6a4f04,'resolvedBy':_0xe23ab?_0xe23ab['id']:_0xe23ab,'context':_0x537735,'attributes':_0xbf8b16})['then'](({comments:_0x306793})=>{_0x165c5a['remove'](_0x469060);for(const _0x8f6322 of _0x306793)this['_updateComment']({'channelId':_0x4b989b,'threadId':_0x62ce9e,'commentId':_0x8f6322['commentId'],'createdAt':_0x8f6322['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x555493=>{throw console['error'](_0x555493),new _0x51f518('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x37518d,target:_0x4dbde1}){const _0xcc32d2=this['getCommentThread'](_0x37518d);if(!_0xcc32d2)throw new _0x51f518('commentsrepository-attach-missing-comment-thread',this);const _0x1420df=this['context']['plugins']['get']('PendingActions'),_0x197b6f=this['context']['plugins']['get'](y),_0x590010=this['_createCommentThreadView'](_0xcc32d2),_0x3e52ca=new yt(_0xcc32d2,_0x590010);let _0x184341=null;_0x590010['on']('change:isDirty',(_0x278e51,_0x23d752,_0x2b068a)=>{_0x2b068a?_0x184341=_0x1420df['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x184341&&(_0x1420df['remove'](_0x184341),_0x184341=null);}),this['_threadToController']['set'](_0xcc32d2,_0x3e52ca),this['_viewToController']['set'](_0x590010,_0x3e52ca);const _0x473377=new E(this['context']['locale'],_0x590010);_0x473377['bind']('length')['to'](_0x590010),_0x473377['bind']('isDirty')['to'](_0x590010,'isDirty',_0x590010,'length',(_0x13872e,_0x1e4a6e)=>_0x13872e||!_0x1e4a6e),_0x473377['bind']('isActive')['to'](_0x590010),_0x473377['type']='comment';const _0x476453=new T({'view':_0x473377,'target':_0x4dbde1,'type':'comment','isVisible':!_0xcc32d2['archivedAt']});return _0x590010['on']('escape',()=>{_0x476453['fire']('escape');}),this['_bindAnnotationToEditors'](_0x590010,_0x476453),_0x197b6f['add'](_0x476453),_0x476453;}['_bindAnnotationToEditors'](_0x205bc0,_0x345069){this['listenTo'](_0x205bc0,'editorReady',(_0xd91161,_0x86fc62)=>{const _0x12fd99=_0x86fc62['ui']['view']['body']['bodyCollectionContainer'];_0x345069['focusableElements']['add'](_0x12fd99),this['context']instanceof _0x2d455d&&this['context']['ui']['focusTracker']['add'](_0x12fd99);},{'priority':'highest'}),this['listenTo'](_0x205bc0,'editorDestroyed',(_0x49cd39,_0x34f75c)=>{const _0x1d16a6=_0x34f75c['ui']['view']['body']['bodyCollectionContainer'];_0x345069['focusableElements']['has'](_0x1d16a6)&&_0x345069['focusableElements']['remove'](_0x1d16a6),this['context']instanceof _0x2d455d&&this['context']['ui']['focusTracker']['remove'](_0x1d16a6);});}['_unbindEditors'](_0x42135e){this['stopListening'](_0x42135e,'editorReady'),this['stopListening'](_0x42135e,'editorDestroyed');}['_createCommentThreadView'](_0x3f5f0a){const _0x41bbb2=this['context']['plugins']['get'](it),{config:_0x4e4c48,locale:_0x5cb05d}=this['context'],_0x227378=lt(_0x4e4c48['get']('locale'),_0x5cb05d);return new(0x0,(_0x4e4c48['get']('comments'))['CommentThreadView'])(_0x5cb05d,_0x3f5f0a,_0x41bbb2['me'],{'editorConfig':{..._0x4e4c48['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4e4c48['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4e4c48['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4e4c48['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4e4c48['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x227378,'CommentView':_0x4e4c48['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x28a9f7,channelId:_0x2cc95a,resolvedAt:_0x4e05dd,resolvedBy:_0x3db949,isFromAdapter:_0x3505c9}){if(!this['hasCommentThread'](_0x28a9f7))throw new _0x51f518('commentsrepository-missing-comment-thread',null,{'threadId':_0x28a9f7});const _0x10ad1f=this['getCommentThread'](_0x28a9f7);if(_0x10ad1f['isResolved'])throw new _0x51f518('commentsrepository-resolved-comment-thread',null,{'threadId':_0x28a9f7});const _0x5d6dc7=this['context']['plugins']['get'](it);if(_0x10ad1f['resolvedBy']=_0x5d6dc7['getUser'](_0x3db949),_0x10ad1f['resolvedAt']=_0x4e05dd,_0x3505c9||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x2844e4=this['context']['plugins']['get']('PendingActions'),_0x24bbec=_0x2844e4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x2cc95a,'threadId':_0x28a9f7})['then'](({resolvedAt:_0x433caf,resolvedBy:_0x2eb714})=>{_0x2844e4['remove'](_0x24bbec),_0x10ad1f['resolvedBy']['id']!==_0x2eb714&&(_0x10ad1f['resolvedBy']=_0x5d6dc7['getUser'](_0x2eb714)),_0x10ad1f['resolvedAt']=_0x433caf;})['catch'](_0x50d21a=>{throw console['error'](_0x50d21a),new _0x51f518('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x592403,channelId:_0x2777a8,isFromAdapter:_0x43a70c}){if(!this['hasCommentThread'](_0x592403))throw new _0x51f518('commentsrepository-missing-comment-thread',null,{'threadId':_0x592403});const _0x5ab5be=this['getCommentThread'](_0x592403);if(!_0x5ab5be['isResolved'])throw new _0x51f518('commentsrepository-reopen-comment-thread',null,{'threadId':_0x592403});if(_0x5ab5be['resolvedBy']=null,_0x5ab5be['resolvedAt']=null,_0x43a70c||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x5cec97=this['context']['plugins']['get']('PendingActions'),_0x405989=_0x5cec97['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x2777a8,'threadId':_0x592403})['then'](()=>_0x5cec97['remove'](_0x405989))['catch'](_0x3305f1=>{throw console['error'](_0x3305f1),new _0x51f518('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x5b3339,isFromAdapter:_0x368ed6}){const _0x45776b=this['getCommentThread'](_0x5b3339);if(!_0x45776b)throw new _0x51f518('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x5b3339),this['_threads']['delete'](_0x5b3339),!_0x45776b['isSubmitted']||_0x368ed6||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x523e56=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3412e2}=_0x45776b,_0x3c6f94=_0x523e56['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x3412e2,'threadId':_0x5b3339})['then'](()=>_0x523e56['remove'](_0x3c6f94))['catch'](_0x15e113=>{throw console['error'](_0x15e113),new _0x51f518('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x21b4f1,unlinkedAt:_0x36cf82,context:_0x2239ac,attributes:_0x1489ac,isFromAdapter:_0x3c3d10}){if('string'!=typeof _0x21b4f1)throw new _0x51f518('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x21b4f1});if(!this['hasCommentThread'](_0x21b4f1))throw new _0x51f518('commentsrepository-missing-comment-thread',null,{'threadId':_0x21b4f1});const _0x5e9681=this['getCommentThread'](_0x21b4f1);let _0x5d2966=!0x1;if(void 0x0!==_0x2239ac&&_0x5e9681['context']!==_0x2239ac&&(_0x5e9681['context']=_0x2239ac,_0x5d2966=!0x0),void 0x0!==_0x36cf82&&_0x5e9681['unlinkedAt']!==_0x36cf82&&(_0x5e9681['unlinkedAt']=_0x36cf82,_0x5d2966=!0x0),_0x1489ac&&!wt(_0x1489ac,_0x5e9681['attributes'])&&(_0x5e9681['attributes']=_0x1489ac,_0x5d2966=!0x0),!_0x5d2966)return Promise['resolve']();if(!_0x5e9681['isSubmitted']||_0x3c3d10||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x5732a8=this['context']['plugins']['get']('PendingActions'),{channelId:_0x180ad2}=_0x5e9681,_0x37a235=_0x5732a8['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x180ad2,'threadId':_0x21b4f1,'context':_0x2239ac,'unlinkedAt':_0x36cf82,'attributes':_0x1489ac})['then'](()=>_0x5732a8['remove'](_0x37a235))['catch'](_0x27e801=>{throw console['error'](_0x27e801),new _0x51f518('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x4cec05){const _0x28b78f=this['context']['plugins']['get'](y),_0x1577b1=this['getCommentThread'](_0x4cec05);if(_0x1577b1['_isAttached']=!0x1,this['_threadToController']['has'](_0x1577b1)){const _0x427069=this['_threadToController']['get'](_0x1577b1),_0x4b5f8d=_0x427069['view'],_0xa718e8=_0x28b78f['getByInnerView'](_0x4b5f8d);this['_threadToController']['delete'](_0x1577b1),this['_viewToController']['delete'](_0x4b5f8d),_0xa718e8&&_0x28b78f['remove'](_0xa718e8),_0x427069['destroy'](),_0x4b5f8d['destroy']()['then'](()=>{this['_unbindEditors'](_0x4b5f8d);});}}['_updateActiveAnnotation']({threadId:_0x1d27a0,resolvedAt:_0x941e35,unlinkedAt:_0x37d818}){const _0x58fcc3=!!_0x941e35,_0x141303=this['context']['plugins']['get'](y),_0x37ec62=this['getCommentThread'](_0x1d27a0);if(this['_threadToController']['has'](_0x37ec62)){const _0xd141f8=this['_threadToController']['get'](_0x37ec62)['view'],_0x3fbe15=_0x141303['getByInnerView'](_0xd141f8);_0x3fbe15&&(_0x58fcc3&&_0x141303['_removeActiveAnnotation'](_0x3fbe15),_0x37d818?_0x3fbe15['isVisible']=!0x1:_0x3fbe15['refreshVisibility']());}}['_getExternalAuthor'](_0x2f46f8){const _0x394c9d=this['context']['plugins']['get'](it),_0x73c7eb=pt('external:'+_0x2f46f8),_0x2fdb3f=_0x394c9d['getUser'](_0x73c7eb);return _0x2fdb3f||_0x394c9d['addUser']({'id':_0x73c7eb,'name':_0x2f46f8});}['_createNewComment']({threadId:_0x2007bc,commentId:_0x215293=_0x58c8cf(),content:_0x1ad48d,authorId:_0x16fb5f,createdAt:_0x4494be,attributes:_0x1f8c0f}){if('string'!=typeof _0x215293)throw new _0x51f518('commentsrepository-invalid-commentid');if('string'!=typeof _0x16fb5f)throw new _0x51f518('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1ad48d||!_0x1ad48d['trim']())throw new _0x51f518('commentsrepository-invalid-comment-content');const _0x2629d5=this['context']['plugins']['get'](it)['getUser'](_0x16fb5f);if(!_0x2629d5)throw new _0x51f518('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x16fb5f});let _0xe07fec=null,_0x123150=_0x4494be;return _0x1f8c0f?.['@external']&&(_0xe07fec=this['_getExternalAuthor'](_0x1f8c0f['@external']['authorName']),_0x123150=new Date(_0x1f8c0f['@external']['createdAt'])),new wi(this,{'threadId':_0x2007bc,'id':_0x215293,'author':_0xe07fec||_0x2629d5,'creator':_0x2629d5,'content':_0x1ad48d,'createdAt':_0x4494be,'authoredAt':_0x123150,'attributes':_0x1f8c0f});}['_addComment'](_0x22f843){let {threadId:_0x524e26,content:_0x151f1c,attributes:_0x3f7499,isFromAdapter:_0x3cefed}=_0x22f843;const _0x13e2d0=this['getCommentThread'](_0x22f843['threadId']);if(!_0x13e2d0)throw new _0x51f518('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x58c2c2=this['_createNewComment'](_0x22f843),{id:_0x1e3c40}=_0x58c2c2;if(_0x13e2d0['_add'](_0x58c2c2),_0x3cefed||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x13e2d0['isSubmitted'])return Promise['resolve']();const _0x32bd43=this['context']['plugins']['get']('PendingActions'),{channelId:_0x398e5c}=_0x13e2d0,_0xb9c047=_0x32bd43['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3f7499||(_0x3f7499={}),this['adapter']['addComment']({'channelId':_0x398e5c,'threadId':_0x524e26,'commentId':_0x1e3c40,'content':_0x151f1c,'attributes':_0x3f7499})['then'](_0x21cd52=>{_0x32bd43['remove'](_0xb9c047),_0x21cd52&&this['_updateComment']({'channelId':_0x398e5c,'threadId':_0x524e26,'commentId':_0x1e3c40,'createdAt':_0x21cd52['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3b93ac=>{throw console['error'](_0x3b93ac),new _0x51f518('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x200dc9,commentId:_0x486670,content:_0x26f6fb,createdAt:_0x3d9c7e,attributes:_0x18908f,isFromAdapter:_0xb0198c}){if(void 0x0!==_0x26f6fb&&('string'!=typeof _0x26f6fb||!_0x26f6fb['trim']()['length']))throw new _0x51f518('commentsrepository-update-comment-invalid-content');const _0x2332a8=this['getCommentThread'](_0x200dc9),_0x36f97e=_0x2332a8['getComment'](_0x486670);if(!_0x36f97e)throw new _0x51f518('commentsrepository-update-missing-comment',this);let _0x598dc7=!0x1;if(_0x26f6fb&&_0x26f6fb!==_0x36f97e['content']&&(_0x36f97e['isEditable']||_0xb0198c)&&(_0x36f97e['content']=_0x26f6fb,_0x598dc7=!0x0),_0x3d9c7e&&_0x3d9c7e!==_0x36f97e['createdAt']&&(_0x36f97e['createdAt']=_0x3d9c7e,_0x36f97e['attributes']&&_0x36f97e['attributes']['@external']||(_0x36f97e['authoredAt']=_0x3d9c7e),_0x598dc7=!0x0),_0x18908f&&!wt(_0x18908f,_0x36f97e['attributes'])&&(_0x36f97e['attributes']=_0x18908f,_0x598dc7=!0x0),!_0x598dc7)return Promise['resolve']();if(_0x2332a8['fire']('commentUpdated'),_0xb0198c||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x4108f4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x56b1c6}=this['getCommentThread'](_0x36f97e['threadId']),_0xa16045=_0x4108f4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x56b1c6,'threadId':_0x200dc9,'commentId':_0x486670,'content':_0x26f6fb,'attributes':_0x18908f})['then'](()=>_0x4108f4['remove'](_0xa16045))['catch'](_0x514714=>{throw console['error'](_0x514714),new _0x51f518('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x9ca79c,commentId:_0x31180a,isFromAdapter:_0x14516d}){const _0x230c98=this['getCommentThread'](_0x9ca79c),_0x53e93b=_0x230c98['getComment'](_0x31180a);if(!_0x53e93b)throw new _0x51f518('commentsrepository-remove-missing-comment',this);if(_0x230c98['_remove'](_0x53e93b),_0x14516d||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x3bd3a4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x57a541}=_0x230c98,_0x2383b0=_0x3bd3a4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x57a541,'threadId':_0x9ca79c,'commentId':_0x31180a})['then'](()=>_0x3bd3a4['remove'](_0x2383b0))['catch'](_0x115f1e=>{throw console['error'](_0x115f1e),new _0x51f518('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x362d6f(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x50ba7e,_0x41a1be){super();const _0x29b2c6=_0x41a1be['isResolvable'];this['channelId']=_0x41a1be['channelId'],this['id']=_0x41a1be['id'],this['comments']=new _0x23eb0b(),this['_repository']=_0x50ba7e,this['_isAttached']=!0x1,this['_isSubmitted']=_0x41a1be['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x50ba7e,'_permissions',_0x50ba7e,'_readOnlyChannels',()=>_0x50ba7e['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x50ba7e,'_permissions',()=>_0x50ba7e['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x50ba7e,'_permissions',()=>{const _0x200de3=_0x50ba7e['getPermissions'](this['channelId']);return _0x200de3['write']||_0x200de3['admin'];}),this['bind']('isResolvable')['to'](_0x50ba7e,'_permissions',()=>_0x29b2c6&&_0x50ba7e['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x41a1be['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x334b79,_0x141efd)=>_0x334b79?_0x141efd?_0x334b79<_0x141efd?_0x334b79:_0x141efd:_0x334b79:_0x141efd),this['set']('unlinkedAt',_0x41a1be['unlinkedAt']||null),this['set']('resolvedAt',_0x41a1be['resolvedAt']||null),this['set']('resolvedBy',_0x41a1be['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x1dd1e5=>!!_0x1dd1e5),this['set']('attributes',_0x41a1be['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x5c2755,_0x63ebe8)=>_0x5c2755+_0x63ebe8['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x480c81,id:_0x44efe0}=this;this['_repository']['fire'](bt('submitCommentThread',_0x480c81),{'channelId':_0x480c81,'threadId':_0x44efe0});}['setUnlinkedAt'](_0x2721f5){this['_update']({'unlinkedAt':_0x2721f5});}['resolve']({resolvedAt:_0x2a02b3=new Date(),resolvedBy:_0x35c720=null,isFromAdapter:_0x56988d=!0x1}={}){const _0x546c68=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x371f5d,id:_0x1787f4}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x371f5d),{'channelId':_0x371f5d,'threadId':_0x1787f4,'resolvedAt':_0x2a02b3,'resolvedBy':_0x35c720||_0x546c68['id'],'isFromAdapter':_0x56988d});}['reopen']({isFromAdapter:_0xeea769=!0x1}={}){const {channelId:_0x4e9bdb,id:_0x48a812}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x4e9bdb),{'channelId':_0x4e9bdb,'threadId':_0x48a812,'isFromAdapter':_0xeea769});}['setContext'](_0x5c0421){this['context']||this['_update']({'context':_0x5c0421});}['setAttribute'](_0x227e25,_0x2b9e4b){const _0x1fd333=It(this['attributes']);At(_0x1fd333,_0x227e25,_0x2b9e4b),this['_update']({'attributes':_0x1fd333});}['removeAttribute'](_0x3e5810){const _0x6d999a=It(this['attributes']);Ct(_0x6d999a,_0x3e5810),this['_update']({'attributes':_0x6d999a});}['remove']({isFromAdapter:_0x4634d0=!0x1}={}){const {channelId:_0x5e6b59,id:_0x51e3e1}=this;this['_repository']['fire'](bt('removeCommentThread',_0x5e6b59),{'channelId':_0x5e6b59,'threadId':_0x51e3e1,'isFromAdapter':_0x4634d0});}['attachTo'](_0x362751){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x362751});}['addComment'](_0x1a1d2a){const {channelId:_0x40c82c,id:_0x55b699}=this;this['_repository']['fire'](bt('addComment',_0x40c82c,_0x55b699),Object['assign']({'channelId':_0x40c82c,'threadId':_0x55b699},_0x1a1d2a));}['getComment'](_0x23abb2){if('string'!=typeof _0x23abb2)throw new _0x51f518('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x23abb2});return this['comments']['get'](_0x23abb2);}['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'](_0x58674c=>_0x58674c['toJSON']()),'attributes':this['attributes']};}['_add'](_0x2c2fd5){return this['listenTo'](_0x2c2fd5,'change:authoredAt',()=>{const _0x6bbbf3=this['_findOptimalIndex'](_0x2c2fd5),_0x39363e=this['comments'];_0x6bbbf3-0x1!=_0x39363e['getIndex'](_0x2c2fd5)&&_0x6bbbf3+0x1!=_0x39363e['getIndex'](_0x2c2fd5)&&(this['_remove'](_0x2c2fd5),this['_add'](_0x2c2fd5));}),this['comments']['add'](_0x2c2fd5,this['_findOptimalIndex'](_0x2c2fd5));}['_update'](_0x406971){const {channelId:_0x3f1016,id:_0x4d51d4}=this;this['_repository']['fire'](bt('updateCommentThread',_0x3f1016),{..._0x406971,'channelId':_0x3f1016,'threadId':_0x4d51d4});}['_remove'](_0x2e1a2f){return this['stopListening'](_0x2e1a2f),_0x2e1a2f['destroy'](),this['comments']['remove'](_0x2e1a2f);}['_findOptimalIndex'](_0x49f395){const _0x4bf8f4=this['comments']['find'](_0x5f4976=>new Date(_0x5f4976['authoredAt'])['getTime']()>new Date(_0x49f395['authoredAt'])['getTime']());return _0x4bf8f4?this['comments']['getIndex'](_0x4bf8f4):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x362d6f(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x4e8fa2,_0x32d484){super();const _0x10952d=_0x4e8fa2['context']['plugins']['get'](it)['me'],_0x412984=_0x4e8fa2['getCommentThread'](_0x32d484['threadId']),_0x5da2e4=0x0===_0x412984['comments']['length'],_0x5a3147=_0x10952d===_0x32d484['author'];this['id']=_0x32d484['id'],this['threadId']=_0x32d484['threadId'],this['author']=_0x32d484['author'],this['creator']=_0x32d484['creator'],this['isExternal']=Boolean(_0x32d484['attributes']&&_0x32d484['attributes']['@external']),this['set']('content',_0x32d484['content']),this['createdAt']=_0x32d484['createdAt']||new Date(),this['set']('authoredAt',_0x32d484['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x412984,'resolvedAt'),this['set']('attributes',_0x32d484['attributes']||{}),this['bind']('isEditable')['to'](_0x4e8fa2,'_permissions',()=>{const _0x37d08a=_0x4e8fa2['getPermissions'](_0x412984['channelId'])['write'],_0x27010a=_0x4e8fa2['getPermissions'](_0x412984['channelId'])['modifyAll'];return _0x5a3147&&_0x37d08a||!_0x5a3147&&_0x27010a;}),this['bind']('isRemovable')['to'](_0x412984,'isRemovable',_0x4e8fa2,'_permissions',_0x226f3e=>{const _0xa20f0b=_0x4e8fa2['getPermissions'](_0x412984['channelId'])['write'],_0x23c255=_0x4e8fa2['getPermissions'](_0x412984['channelId'])['modifyAll'];return _0x5a3147&&_0xa20f0b||_0x226f3e&&_0x5da2e4||!_0x5a3147&&_0x23c255&&!_0x5da2e4;}),this['bind']('isReadOnly')['to'](_0x412984,'isReadOnly'),this['_repository']=_0x4e8fa2;}get['weight'](){return Math['max'](function(_0xd1b2b8){const _0xaa5db1=document['createElement']('div');return _0xaa5db1['innerHTML']=_0xd1b2b8,_0xaa5db1['textContent']['length'];}(this['content']),0xc8);}['update'](_0x14cfd0){const {threadId:_0x5210ab,id:_0x5f4090}=this;if(!this['_repository']['hasCommentThread'](_0x5210ab))throw new _0x51f518('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0xdff328}=this['_repository']['getCommentThread'](_0x5210ab);this['_repository']['fire'](bt('updateComment',_0xdff328,_0x5210ab),{'channelId':_0xdff328,'threadId':_0x5210ab,'commentId':_0x5f4090,..._0x14cfd0});}['setAttribute'](_0x5188fa,_0x2b1154){const _0x3d7d3e=It(this['attributes']);At(_0x3d7d3e,_0x5188fa,_0x2b1154),this['update']({'attributes':_0x3d7d3e});}['removeAttribute'](_0x3a9d76){const _0x9df87=It(this['attributes']);Ct(_0x9df87,_0x3a9d76),this['update']({'attributes':_0x9df87});}['remove'](_0x436dc5={}){if(!_0x436dc5['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x1c4007,id:_0x5d37e4}=this;if(!this['_repository']['hasCommentThread'](_0x1c4007))throw new _0x51f518('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x231feb}=this['_repository']['getCommentThread'](_0x1c4007);this['_repository']['fire'](bt('removeComment',_0x231feb,_0x1c4007),{'channelId':_0x231feb,'threadId':_0x1c4007,'commentId':_0x5d37e4,..._0x436dc5});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x51397c,..._0x1634d0){for(const _0x33d089 of _0x1634d0)void 0x0!==_0x33d089&&(_0x51397c+=':'+String(_0x33d089));return _0x51397c;}class rt extends _0x385260{constructor(_0xdd72f4){super(_0xdd72f4),this['set']('hasContent',!0x1);}['refresh'](){const _0x22d640=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x49be42 of _0x22d640['getRanges']())if(this['_hasContent'](_0x49be42))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x256035=_0x58c8cf(),ranges:_0x13255a,comment:_0x473fb7}={}){const _0x45d5ba=this['editor']['model'],_0x466a08=_0x13255a??Array['from'](_0x45d5ba['document']['selection']['getRanges']()),_0xad719c=[];for(const _0xad5a5b of _0x466a08)this['_hasContent'](_0xad5a5b)&&_0xad719c['push'](this['_trimToContent'](_0xad5a5b));if(!_0xad719c['length'])throw new _0x51f518('addcommentthreadcommand-incorrect-ranges',null);_0x473fb7&&this['_createCommentThread'](_0x256035,_0x473fb7),this['_createMarkersFromRanges'](_0x256035,_0xad719c,!!_0x473fb7);}['_createMarkersFromRanges'](_0x4fc3d8,_0x3f6665,_0x1a2615){this['editor']['model']['change'](_0x44ae27=>{for(const _0x28c806 of _0x3f6665){const _0x3e30b9=_0x58c8cf()['substr'](0x1,0x5),_0x4b665b='comment:'+_0x4fc3d8+':'+_0x3e30b9;_0x44ae27['addMarker'](_0x4b665b,{'range':_0x28c806,'usingOperation':_0x1a2615,'affectsData':_0x1a2615});}});}['_createCommentThread'](_0x38feaa,_0x5170fd){const _0x54d5e0=this['editor']['plugins']['get']('CommentsRepository'),_0x4248c8=this['editor']['config']['get']('collaboration.channelId'),_0x5c6b83=this['editor']['plugins']['get']('Users')['me'];if(!_0x5c6b83)throw new _0x51f518('addcommentthreadcommand-user-not-found',null);_0x54d5e0['addCommentThread']({'threadId':_0x38feaa,'channelId':_0x4248c8,'comments':[{'authorId':_0x5c6b83['id'],'content':_0x5170fd,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x186d1c){for(const _0x59a508 of _0x186d1c['getItems']())if(this['_itemIsContent'](_0x59a508))return!0x0;return!0x1;}['_itemIsContent'](_0x487b60){return _0x487b60['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x487b60)&&!_0x487b60['is']('element','tableCell');}['_trimToContent'](_0x31fc19){const _0x573390=_0x564c19=>!this['_itemIsContent'](_0x564c19['item']),_0x53b99f=_0x31fc19['start']['getLastMatchingPosition'](_0x573390),_0x4f71f4=_0x31fc19['end']['getLastMatchingPosition'](_0x573390,{'direction':'backward'});return this['editor']['model']['createRange'](_0x53b99f,_0x4f71f4);}}class b extends _0x5ddc0e{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3847cf){super(_0x3847cf),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x324714=this['editor'],_0x430c82=_0x324714['model']['document']['selection'],_0x4b9c63=_0x40c01b(()=>this['refreshSelectedViews'](),0xa);_0x430c82['on']('change:range',(_0x374627,_0x533f65)=>{_0x533f65['directChange']&&(_0x4b9c63['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x324714['editing']['view']['document'],'change:isFocused',(_0x5e2fda,_0x2e6bfd,_0x1784b4)=>{_0x1784b4&&_0x4b9c63();}),this['listenTo'](_0x324714['ui']['focusTracker'],'change:isFocused',(_0x5d60b5,_0xc6d935,_0x3e3024)=>{_0x3e3024||_0x324714['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x24cfc4=>this['_editorAnnotationsData']['has'](_0x24cfc4['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x31ae3e){if(this['_editorAnnotations']['has'](_0x31ae3e['view']))return;this['_editorAnnotations']['add'](_0x31ae3e['view']),this['editor']['ui']['focusTracker']['add'](_0x31ae3e['view']['element']);const _0x39266d=this['editor']['plugins']['get'](y);this['listenTo'](_0x39266d['collection'],'remove',(_0x54920b,_0x671cd9)=>{this['editor']['ui']['focusTracker']['remove'](_0x671cd9['view']['element']),this['_editorAnnotations']['delete'](_0x671cd9['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x53a6af){if('function'!=typeof _0x53a6af)throw new _0x51f518('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x53a6af);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x195a8e,annotations:_0x1e63cc}){const _0x592b2f=[],_0x206b50=this['editor']['model']['document']['selection'],_0x2b24b8=Array['from'](_0x206b50['getRanges']());for(const [_0x513bd6,_0x1eec19]of this['_editorAnnotationsData']){const _0x468c38=_0x44737b(_0x1eec19),_0xa1bbe4=_0x1e63cc['getByInnerView'](_0x513bd6);_0x468c38&&_0xa1bbe4&&_0x592b2f['push']({'annotation':_0xa1bbe4,'range':_0x468c38});}function _0x44737b(_0x4ef1f5){for(const _0x106bb0 of _0x4ef1f5)for(const _0x2debab of _0x2b24b8)if(_0x106bb0['containsRange'](_0x2debab,!_0x206b50['isCollapsed']))return _0x106bb0;return null;}return _0x592b2f['sort']((_0x284866,_0x547594)=>{const _0x300178=_0x284866['range'],_0x496c71=_0x547594['range'];if(!_0x300178['isEqual'](_0x496c71)){if(_0x300178['containsRange'](_0x496c71,!0x0))return 0x1;if(_0x496c71['containsRange'](_0x300178,!0x0))return-0x1;}return _0x284866['annotation']==_0x195a8e?-0x1:_0x547594['annotation']==_0x195a8e?0x1:0x0;})['map'](_0xcdeb=>_0xcdeb['annotation']);}get['_editorAnnotationsData'](){const _0x264c0e=new Map();for(const _0x327545 of Array['from'](this['_dataCollectors']))for(const [_0x36009e,_0x4f41b7]of _0x327545())_0x264c0e['set'](_0x36009e,_0x4f41b7);return _0x264c0e;}}class st extends _0x5ddc0e{['afterInit'](){const _0x2c2896=this['editor'];if(!_0x2c2896['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2c2896['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x5ddc0e{constructor(_0x51369d){super(_0x51369d),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x166a06=this['editor'],_0x396bd6=_0x166a06['commands']['get']('importWord'),_0x29d884=_0x166a06['plugins']['get'](it);_0x396bd6&&(_0x396bd6['on']('execute',(_0x341d22,[,_0x4b308])=>{_0x4b308['collaboration_features']={'comments':!0x0,'user_id':_0x29d884['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x396bd6,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0xcfee6f,_0x1925d4){const {comment_threads:_0x3daaf3}=_0x1925d4;_0x3daaf3&&_0x3daaf3['forEach'](({thread_id:_0x5268bf,comments:_0x21a5f9,is_resolved:_0x16f429})=>{const _0x44bcd8=new Date(),_0x3eaaff=_0x21a5f9['map'](({author:_0x14dbb0,content:_0x3fccec,created_at:_0x24d4dc})=>({'content':_0x3fccec,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x44bcd8,'attributes':{'@external':{'authorName':_0x14dbb0,'createdAt':_0x24d4dc?new Date(_0x24d4dc):new Date(),'source':'importWord'}}})),_0x3c7bbc=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3c7bbc,'threadId':_0x5268bf,'comments':_0x3eaaff,'resolvedAt':_0x16f429?_0x44bcd8:null});});}}class at extends _0x5ddc0e{constructor(_0x41b2bc){super(_0x41b2bc),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x2898d9=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x2898d9,'contentInsertion',(_0x1f9f66,_0x15af22)=>this['_removeMarkersWithoutThreads'](_0x15af22['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x270462){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x270462;const _0x3abb2a=this['editor']['plugins']['get']('CommentsRepository');for(const _0x25dd26 of _0x270462['keys']()){const [_0x4ff46c,_0x555ec3]=_0x25dd26['split'](':');'comment'!=_0x4ff46c||_0x3abb2a['hasCommentThread'](_0x555ec3)||_0x270462['delete'](_0x25dd26);}return _0x270462;}['_registerMarkerInClipboardPipeline'](){const _0x337261=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1cc82b=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1cc82b&&_0x337261['_registerMarkerToCopy']('comment',_0x1cc82b);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1ce9c3){switch(_0x1ce9c3){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x5ddc0e{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x376a85,_0x57ac3f)=>{if(!_0x57ac3f['options']['showCommentHighlights'])return null;if(_0x57ac3f['options']['ignoreResolvedComments']){const {id:_0xd1c525}=er(_0x376a85['markerName']),_0x508c3=this['editor']['plugins']['get'](o);if(_0x508c3['getCommentThread'](_0xd1c525)?.['isResolved']&&_0x376a85['item'])return _0x57ac3f['consumable']['consume'](_0x376a85['item'],'addMarker:'+_0x376a85['markerName']),_0x57ac3f['consumable']['consume'](_0x376a85['item'],'removeMarker:'+_0x376a85['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x29dc18=>{_0x29dc18['on']('addMarker:comment',(_0x3a56c3,_0x4a3c65,_0x547f6d)=>{if(!_0x547f6d['options']['showCommentHighlights'])return;const _0x2e5e22=_0x4a3c65['item'];if(!_0x2e5e22)return;const _0x3d4160=_0x547f6d['mapper']['toViewElement'](_0x2e5e22);this['editor']['model']['schema']['isObject'](_0x2e5e22)&&_0x3d4160&&!_0x3d4160['getCustomProperty']('widget')&&_0x3d4160['is']('containerElement')&&_0x1ed711(_0x3d4160,_0x547f6d['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x50f8a8,{writer:_0x196be9,options:_0x337882})=>{if(!_0x337882['showCommentHighlights'])return null;const _0x1a8205=_0x196be9['createContainerElement']('div'),_0x2e0e01=_0x196be9['createEmptyElement']('hr');return _0x196be9['addClass']('ck-horizontal-line',_0x1a8205),_0x196be9['insert'](_0x196be9['createPositionAt'](_0x1a8205,0x0),_0x2e0e01),_0x1a8205;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x990a11,{writer:_0x2aa6ef,options:_0x3c5404})=>{if(!_0x3c5404['showCommentHighlights'])return null;const _0xb6619c=_0x2aa6ef['createContainerElement']('span'),_0x1ab03f=_0x2aa6ef['createEmptyElement']('img');return _0x2aa6ef['addClass']('image-inline',_0xb6619c),_0x2aa6ef['insert'](_0x2aa6ef['createPositionAt'](_0xb6619c,0x0),_0x1ab03f),_0xb6619c;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xddd8d2,{writer:_0x5d8df4,options:_0x3e7143})=>{if(_0x3e7143['showCommentHighlights'])return _0x5d8df4['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x272a84,_0x444675,_0x4cc4eb)=>{_0x4cc4eb['options']['showCommentHighlights']&&_0x272a84['stop']();},{'priority':'high'});}}class r extends _0x5ddc0e{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(_0x229b8b){super(_0x229b8b),this['set']('isThreadsLoadingPaused',!0x0),_0x229b8b['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x5b062f,_0x9f4b7,_0x171ba9,_0x2169cc)=>{const _0x4067ce=_0x229b8b['plugins']['get'](o),_0x534dae=_0x171ba9?er(_0x171ba9)['id']:null;_0x229b8b['model']['change'](()=>{if(_0x534dae){const _0x41ed87=this['getAllMarkersForId'](_0x534dae);for(const _0x3d3f78 of _0x41ed87)_0x229b8b['editing']['reconvertMarker'](_0x3d3f78);}if(_0x2169cc){const {id:_0x4daffc}=er(_0x2169cc),_0x404ec7=_0x4067ce['getCommentThread'](_0x4daffc);if(_0x404ec7&&_0x404ec7['unlinkedAt'])return;if(_0x404ec7&&!_0x404ec7['isAttached'])return;const _0x3f336c=this['getAllMarkersForId'](_0x4daffc);for(const _0x2d40eb of _0x3f336c)_0x229b8b['editing']['reconvertMarker'](_0x2d40eb);}}),_0x534dae&&this['scrollToThreadMarker'](_0x534dae);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x45a649=this['editor'],_0x3c926b=_0x45a649['plugins']['get'](o),_0x499e0f=_0x45a649['config']['get']('collaboration.channelId'),_0x5341cf=_0x3c926b['getCommentThreads']()['filter'](_0x20bcd6=>_0x20bcd6['channelId']!==_0x499e0f);_0x45a649['commands']['add']('addCommentThread',new rt(_0x45a649)),this['listenTo'](_0x45a649,'change:isReadOnly',(_0x5d732b,_0x9de9d4,_0x32c57a)=>{_0x3c926b['switchReadOnly'](_0x32c57a,_0x45a649['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x3c926b,ft('addCommentThread',_0x499e0f),(_0x4a1bde,{threadId:_0x2c5783})=>{const _0x347925=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2c5783);_0x347925?.['unlinkedAt']&&this['_attachArchivedThread'](_0x2c5783);}),this['listenTo'](_0x3c926b,ft('removeCommentThread',_0x499e0f),(_0x2839c0,{threadId:_0x2c3365})=>{_0x45a649['model']['enqueueChange']({'isUndoable':!0x1},_0x466da6=>{const _0x15c9c6=this['getAllMarkersForId'](_0x2c3365);for(const _0x4e2f4c of _0x15c9c6)_0x466da6['removeMarker'](_0x4e2f4c);});}),this['listenTo'](_0x3c926b,ft('resolveCommentThread',_0x499e0f),(_0xd9bede,{threadId:_0x4381c5})=>{(this['_reconvertMarkers'](_0x4381c5),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4381c5)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x3c926b,ft('reopenCommentThread',_0x499e0f),(_0x4c1b05,{threadId:_0xd0dbcb})=>{this['_reconvertMarkers'](_0xd0dbcb);},{'priority':'low'}),this['listenTo'](_0x3c926b,ft('addComment',_0x499e0f),(_0x13a172,{threadId:_0x5db627,isFromAdapter:_0x23ec00})=>{const _0x31124a=this['getAllMarkersForId'](_0x5db627);if(_0x23ec00||0x0==_0x31124a['length']||!_0x3c926b['hasCommentThread'](_0x5db627))return;0x1===_0x3c926b['getCommentThread'](_0x5db627)['length']&&_0x45a649['model']['enqueueChange']({'isUndoable':!0x1},_0x1f54e8=>{for(const _0x5af790 of _0x31124a)_0x1f54e8['updateMarker'](_0x5af790,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x5341cf);}['afterInit'](){!async function(_0x2c96e8){const _0x5292e8=_0x8769d0([0x6c,0x6d,0x53,0x66,0x30,0x6a,0x63,0x70,0x4b,0x78,0x73,0x57,0x37,0x59,0x35,0x45,0x34,0x43,0x4a,0x56,0x55,0x75,0x4d,0x47,0x5a,0x6f,0x76,0x38,0x79,0x7a,0x49,0x72,0x54,0x36,0x67,0x42,0x50,0x48,0x71,0x6e,0x51,0x69,0x65,0x64,0x39,0x4f,0x6b,0x77,0x58,0x74,0x31,0x44,0x52,0x33,0x32,0x62,0x46,0x4e,0x68,0x41,0x61,0x4c]),_0x9c0446=0x2030433b,_0x590306=0x20372e2b^_0x9c0446,_0x4fbf79=window[_0x8769d0([0x44,0x61,0x74,0x65])][_0x8769d0([0x6e,0x6f,0x77])](),_0x2080c3=_0x2c96e8[_0x8769d0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17520a=new window[(_0x8769d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38a7a1=>{_0x2080c3[_0x8769d0([0x6f,0x6e,0x63,0x65])](_0x8769d0([0x72,0x65,0x61,0x64,0x79]),_0x38a7a1);}),_0x13216c={[_0x8769d0([0x6b,0x74,0x79])]:_0x8769d0([0x45,0x43]),[_0x8769d0([0x75,0x73,0x65])]:_0x8769d0([0x73,0x69,0x67]),[_0x8769d0([0x63,0x72,0x76])]:_0x8769d0([0x50,0x2d,0x32,0x35,0x36]),[_0x8769d0([0x78])]:_0x8769d0([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]),[_0x8769d0([0x79])]:_0x8769d0([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]),[_0x8769d0([0x61,0x6c,0x67])]:_0x8769d0([0x45,0x53,0x32,0x35,0x36])},_0x3da15d=_0x2080c3[_0x8769d0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8769d0([0x67,0x65,0x74])](_0x8769d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a0cab(){let _0x33ff57,_0x4dc9d1=null,_0xd2896e=null;try{if(_0x3da15d==_0x8769d0([0x47,0x50,0x4c]))return _0x8769d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33ff57=_0x2687ef(),!_0x33ff57)return _0x8769d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33ff57[_0x8769d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd2896e=_0x5d93cf(_0x33ff57[_0x8769d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33ff57[_0x8769d0([0x6a,0x74,0x69])])),await _0x463720()?_0x4e6b85()?_0x34ff4e()?_0x8769d0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x557918()?(_0x33ff57[_0x8769d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8769d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4dc9d1=_0x49b38d(_0x8769d0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33ff57[_0x8769d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8769d0([0x74,0x72,0x69,0x61,0x6c])&&(_0x4dc9d1=_0x49b38d(_0x8769d0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5cd136()):_0x8769d0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8769d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8769d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8769d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x34ff4e(){const _0x12e002=[_0x8769d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8769d0([0x74,0x72,0x69,0x61,0x6c])][_0x8769d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33ff57[_0x8769d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4fbf79/0x3e8:0xe10*_0x590306;return _0x33ff57[_0x8769d0([0x65,0x78,0x70])]<_0x12e002;}function _0x4e6b85(){const _0x37c1f3=_0x33ff57[_0x8769d0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37c1f3)return!0x1;if(_0x37c1f3[_0x8769d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8769d0([0x2a])))return!0x0;if(_0x37c1f3[_0x8769d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8769d0([0x43,0x4d,0x54])))return!0x0;if(_0x37c1f3[_0x8769d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8769d0([0x52,0x43,0x4d,0x54]))){if(_0x20e5c0())return!0x0;if(_0x4a0039()||_0x3911ec())return!0x0;}return!0x1;}function _0x557918(){const _0x151a37=_0x33ff57[_0x8769d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x151a37||0x0==_0x151a37[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f6e84}=new URL(window[_0x8769d0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x151a37[_0x8769d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f6e84))return!0x0;const _0x3bac7b=_0x3f6e84[_0x8769d0([0x73,0x70,0x6c,0x69,0x74])](_0x8769d0([0x2e]));return _0x151a37[_0x8769d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f4091=>_0x4f4091[_0x8769d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8769d0([0x2a])))[_0x8769d0([0x6d,0x61,0x70])](_0x2291f1=>_0x2291f1[_0x8769d0([0x73,0x70,0x6c,0x69,0x74])](_0x8769d0([0x2e])))[_0x8769d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x570720=>_0x570720[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3bac7b[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8769d0([0x6d,0x61,0x70])](_0x46f3fc=>Array(_0x3bac7b[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x46f3fc[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8769d0([0x66,0x69,0x6c,0x6c])](_0x46f3fc[0x0]===_0x8769d0([0x2a])?_0x8769d0([0x2a]):'')[_0x8769d0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x46f3fc))[_0x8769d0([0x73,0x6f,0x6d,0x65])](_0x2ec2ce=>_0x3bac7b[_0x8769d0([0x65,0x76,0x65,0x72,0x79])]((_0x24a95c,_0x13cb5e)=>_0x2ec2ce[_0x13cb5e]===_0x24a95c||_0x2ec2ce[_0x13cb5e]===_0x8769d0([0x2a])));}function _0x5cd136(){return _0x4dc9d1&&_0xd2896e?new window[(_0x8769d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53945b,_0x38f39b)=>{_0x4dc9d1[_0x8769d0([0x74,0x68,0x65,0x6e])](_0x53945b,_0x38f39b),_0xd2896e[_0x8769d0([0x74,0x68,0x65,0x6e])](_0x26c883=>{_0x26c883!=_0x8769d0([0x56,0x61,0x6c,0x69,0x64])&&_0x53945b(_0x26c883);},_0x38f39b);}):_0x4dc9d1||_0xd2896e||_0x8769d0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d93cf(_0x417fc8,_0x433fe9){return new window[(_0x8769d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x496af1=>{if(_0x3eccea())return _0x496af1(_0x8769d0([0x56,0x61,0x6c,0x69,0x64]));_0x53e749(),_0x2080c3[_0x8769d0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8769d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ece2b=!0x1;const _0x459455=_0x58c8cf();function _0x4ea45f(_0x384439){return!!_0x384439&&(typeof _0x384439===_0x8769d0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x384439===_0x8769d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x384439[_0x8769d0([0x74,0x68,0x65,0x6e])]===_0x8769d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x384439[_0x8769d0([0x63,0x61,0x74,0x63,0x68])]===_0x8769d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x161ced(_0x2672af){_0x2eea4d(_0x2672af)[_0x8769d0([0x74,0x68,0x65,0x6e])](_0x89dbb1=>{if(!_0x89dbb1||_0x89dbb1[_0x8769d0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8769d0([0x6f,0x6b]))return _0x8769d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37d816(_0x349d99(_0x459455+_0x433fe9))!=_0x89dbb1[_0x8769d0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8769d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8769d0([0x56,0x61,0x6c,0x69,0x64]);})[_0x8769d0([0x74,0x68,0x65,0x6e])](_0x5a4fc4=>(_0x1ed2fb(),_0x5a4fc4),()=>{const _0x25c1e3=_0x4a8717();return null==_0x25c1e3?(_0x1ed2fb(),_0x8769d0([0x56,0x61,0x6c,0x69,0x64])):_0x8769d0(_0x4fbf79-_0x25c1e3>(0x43cc73b^_0x9c0446)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8769d0([0x74,0x68,0x65,0x6e])](_0x496af1)[_0x8769d0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x496af1(_0x8769d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x58ee05=0x2006adbb^_0x9c0446;function _0x1ed2fb(){const _0x7babf=_0x8769d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x37d816(_0x349d99(_0x417fc8)),_0x1ef440=_0x5d6554(_0x37d816(window[_0x8769d0([0x4d,0x61,0x74,0x68])][_0x8769d0([0x63,0x65,0x69,0x6c])](_0x4fbf79/_0x58ee05)));window[_0x8769d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8769d0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7babf,_0x1ef440);}function _0x4a8717(){const _0x446609=_0x8769d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x37d816(_0x349d99(_0x417fc8)),_0x44a7bc=window[_0x8769d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8769d0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x446609);return _0x44a7bc?window[_0x8769d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d6554(_0x44a7bc),0x10)*_0x58ee05:null;}function _0x2eea4d(_0x4ae8b7){return new window[(_0x8769d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x464a52,_0x4f4dc6)=>{_0x4ae8b7[_0x8769d0([0x74,0x68,0x65,0x6e])](_0x464a52,_0x4f4dc6),window[_0x8769d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f4dc6,0x203197fb^_0x9c0446);});}}_0x2080c3[_0x8769d0([0x6f,0x6e])](_0x8769d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e9012,_0x1735b8)=>{if(_0x1735b8[0x0]!=_0x417fc8)return _0x496af1(_0x8769d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1735b8[0x1]={..._0x1735b8[0x1],[_0x8769d0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x459455};},{[_0x8769d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8769d0([0x68,0x69,0x67,0x68])}),_0x2080c3[_0x8769d0([0x6f,0x6e])](_0x8769d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45e4ea=>{_0x4ea45f(_0x45e4ea[_0x8769d0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ece2b=!0x0,_0x161ced(_0x45e4ea[_0x8769d0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8769d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8769d0([0x6c,0x6f,0x77])}),_0x17520a[_0x8769d0([0x74,0x68,0x65,0x6e])](()=>{_0x2ece2b||_0x496af1(_0x8769d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3eccea(){return _0x2080c3[_0x8769d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8769d0([0x76,0x69,0x65,0x77])][_0x8769d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8769d0([0x61,0x75,0x74,0x6f]);}function _0x53e749(){_0x2080c3[_0x8769d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8769d0([0x76,0x69,0x65,0x77])][_0x8769d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8769d0([0x61,0x75,0x74,0x6f]);}}function _0x49b38d(_0x58dcd2){const _0x84fca4=[new window[(_0x8769d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x362ce3=>setTimeout(_0x362ce3,0x20397df7^_0x9c0446)),_0x17520a[_0x8769d0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8769d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc13033=>{let _0x42947c=0x0;_0x2080c3[_0x8769d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x8769d0([0x6f,0x6e])](_0x8769d0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1efca4,_0x2f0409)=>{_0x2f0409[0x0][_0x8769d0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42947c++,_0x42947c==(0x203042c3^_0x9c0446)&&(_0xc13033(),_0x1efca4[_0x8769d0([0x6f,0x66,0x66])]());});}))];return window[_0x8769d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8769d0([0x72,0x61,0x63,0x65])](_0x84fca4)[_0x8769d0([0x74,0x68,0x65,0x6e])](()=>_0x58dcd2);}async function _0x227d3d(){await _0x17520a,_0x2080c3[_0x8769d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x8769d0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5557ed,_0x2080c3[_0x8769d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x8769d0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5557ed,_0x2080c3[_0x8769d0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8769d0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20e5c0(){return _0x14b4ba(_0x8769d0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x547a36(_0x8769d0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x8769d0([0x73,0x74,0x61,0x74,0x65])]==_0x8769d0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4a0039(){return _0x14b4ba(_0x8769d0([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 _0x3911ec(){return _0x14b4ba(_0x8769d0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5059ce(_0x533e47){const _0x1986ca=_0x5d1513();_0x2080c3[_0x1986ca]=_0x8769d0([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x533e47,_0x533e47!=_0x8769d0([0x56,0x61,0x6c,0x69,0x64])&&_0x227d3d();}function _0x5d1513(){const _0x1a8613=window[_0x8769d0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8769d0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8769d0([0x6e,0x6f,0x77])]())[_0x8769d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8769d0([0x2e]),'');let _0x183d06=_0x8769d0([0x6c]);for(let _0x410f05=0x0;_0x410f05<_0x1a8613[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x410f05+=0x2){let _0x4450c5=window[_0x8769d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a8613[_0x8769d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x410f05,_0x410f05+0x2));_0x4450c5>=_0x5292e8[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4450c5-=_0x5292e8[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x183d06+=_0x5292e8[_0x4450c5];}return _0x183d06;}function _0x2687ef(){const _0x379929=_0x3da15d[_0x8769d0([0x73,0x70,0x6c,0x69,0x74])](_0x8769d0([0x2e]));if(0x3!=_0x379929[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a4d33(_0x379929[0x1]);function _0x1a4d33(_0x36f10d){const _0xb8a7de=_0x2c3507(_0x36f10d);return _0xb8a7de&&_0x21d112()?_0xb8a7de:null;function _0x21d112(){const _0x2129d7=_0xb8a7de[_0x8769d0([0x6a,0x74,0x69])],_0x351654=window[_0x8769d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2129d7[_0x8769d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2129d7[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d9d2e={..._0xb8a7de,[_0x8769d0([0x6a,0x74,0x69])]:_0x2129d7[_0x8769d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2129d7[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d9d2e[_0x8769d0([0x76,0x63])],_0x349d99(_0x5d9d2e)==_0x351654;}}}async function _0x463720(){let _0x397b17=!0x0;try{const _0x148d73=_0x3da15d[_0x8769d0([0x73,0x70,0x6c,0x69,0x74])](_0x8769d0([0x2e])),[_0x15b71e,_0x29d24f,_0x257684]=_0x148d73;return _0x3b4fcd(_0x15b71e),await _0x2e76f1(_0x15b71e,_0x29d24f,_0x257684),_0x397b17;}catch{return!0x1;}function _0x3b4fcd(_0x1d178d){const _0x34417b=_0x2c3507(_0x1d178d);_0x34417b&&_0x34417b[_0x8769d0([0x61,0x6c,0x67])]==_0x8769d0([0x45,0x53,0x32,0x35,0x36])||(_0x397b17=!0x1);}async function _0x2e76f1(_0x8a4be1,_0x2f1f18,_0x239a9d){const _0xaee6a7=window[_0x8769d0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8769d0([0x66,0x72,0x6f,0x6d])](_0x3e35ba(_0x239a9d),_0x542eef=>_0x542eef[_0x8769d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbd1051=new window[(_0x8769d0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8769d0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8a4be1+_0x8769d0([0x2e])+_0x2f1f18),_0x5ac101=window[_0x8769d0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8769d0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ac101)return;const _0x5a296a=await _0x5ac101[_0x8769d0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8769d0([0x6a,0x77,0x6b]),_0x13216c,{[_0x8769d0([0x6e,0x61,0x6d,0x65])]:_0x8769d0([0x45,0x43,0x44,0x53,0x41]),[_0x8769d0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8769d0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8769d0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ac101[_0x8769d0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8769d0([0x6e,0x61,0x6d,0x65])]:_0x8769d0([0x45,0x43,0x44,0x53,0x41]),[_0x8769d0([0x68,0x61,0x73,0x68])]:{[_0x8769d0([0x6e,0x61,0x6d,0x65])]:_0x8769d0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a296a,_0xaee6a7,_0xbd1051)||(_0x397b17=!0x1);}}function _0x2c3507(_0x317eb1){return _0x317eb1[_0x8769d0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8769d0([0x65,0x79]))?JSON[_0x8769d0([0x70,0x61,0x72,0x73,0x65])](_0x3e35ba(_0x317eb1)):null;}function _0x3e35ba(_0x2e78d8){return window[_0x8769d0([0x61,0x74,0x6f,0x62])](_0x2e78d8[_0x8769d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8769d0([0x2b]))[_0x8769d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8769d0([0x2f])));}function _0x349d99(_0x27df9a){let _0x3b1f67=0x1505;function _0x1af135(_0x33efc5){for(let _0x4d990d=0x0;_0x4d990d<_0x33efc5[_0x8769d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d990d++){const _0x4185d5=_0x33efc5[_0x8769d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d990d);_0x3b1f67=(_0x3b1f67<<0x5)+_0x3b1f67+_0x4185d5,_0x3b1f67&=_0x3b1f67;}}function _0x4d39ab(_0x2253ff){Array[_0x8769d0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2253ff)?_0x2253ff[_0x8769d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d39ab):_0x2253ff&&typeof _0x2253ff==_0x8769d0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8769d0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2253ff)[_0x8769d0([0x73,0x6f,0x72,0x74])]()[_0x8769d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1531cf,_0x31342b])=>{_0x1af135(_0x1531cf),_0x4d39ab(_0x31342b);}):_0x1af135(window[_0x8769d0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2253ff));}return _0x4d39ab(_0x27df9a),_0x3b1f67>>>0x0;}function _0x37d816(_0x558d18){return _0x558d18[_0x8769d0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8769d0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8769d0([0x30]));}function _0x5d6554(_0x4dc589){return _0x4dc589[_0x8769d0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8769d0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8769d0([0x6a,0x6f,0x69,0x6e])]('');}function _0x14b4ba(_0x41d27e){return _0x2080c3[_0x8769d0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x8769d0([0x68,0x61,0x73])](_0x41d27e);}function _0x547a36(_0x3151f0){return _0x2080c3[_0x8769d0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x8769d0([0x67,0x65,0x74])](_0x3151f0);}function _0x5557ed(){}function _0x8769d0(_0x577fa4){return _0x577fa4['map'](_0x281635=>String['fromCharCode'](_0x281635))['join']('');}_0x5059ce(await _0x3a0cab());}(this);}['destroy'](){const _0x553793=this['editor']['plugins']['get'](o),_0x371ae=this['editor']['config']['get']('collaboration.channelId');for(const _0x709a86 of _0x553793['getCommentThreads']({'channelId':_0x371ae}))_0x553793['_detachCommentThread'](_0x709a86['id']),_0x553793['_threads']['delete'](_0x709a86['id']);super['destroy']();}['hasMarkerForId'](_0x4f4123){return this['getAllMarkersForId'](_0x4f4123)['length']>0x0;}['getAllMarkersForId'](_0x3424df){const _0x51fa5a=[];for(const _0x41f3e1 of this['editor']['model']['markers'])_0x41f3e1['name']['startsWith']('comment:'+_0x3424df)&&_0x51fa5a['push'](_0x41f3e1);return _0x51fa5a;}['scrollToThreadMarker'](_0x3ab682){setTimeout(()=>{const _0x3a3261=this['_getTargetForId'](_0x3ab682);if(!_0x3a3261)return;this['activeMarker']&&er(this['activeMarker'])['id']===_0x3ab682&&nt({'target':_0x3a3261[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x445119){this['editor']['model']['change'](()=>{for(const _0x36de90 of this['getAllMarkersForId'](_0x445119))this['editor']['editing']['reconvertMarker'](_0x36de90);});}['_attachArchivedThread'](_0x54a7a1){const _0x3bf04d=this['editor']['plugins']['get'](o),_0x42af9d=this['editor']['plugins']['get'](b),_0x307114=_0x3bf04d['getCommentThread'](_0x54a7a1);if(!_0x307114['isAttached']){const _0x11fb8f=_0x307114['attachTo'](()=>this['_getTargetForId'](_0x307114['id']));_0x42af9d['registerAnnotation'](_0x11fb8f),_0x307114['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x2f1917=this['editor'],_0x21ec8a=_0x2f1917['plugins']['get'](it);_0x2f1917['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x233fec,_0x4de716)=>{const {id:_0x31c7e3}=er(_0x233fec['markerName']),_0x4a515c=_0x2f1917['plugins']['get'](o)['getCommentThread'](_0x31c7e3),_0x3297bd=this['activeMarker']&&er(this['activeMarker'])['id']===_0x31c7e3;let _0xdac5cb;if(_0x4a515c&&_0x4a515c['isResolved']&&!_0x3297bd&&_0x233fec['item'])return _0x4de716['consumable']['consume'](_0x233fec['item'],'addMarker:'+_0x233fec['markerName']),_0x4de716['consumable']['consume'](_0x233fec['item'],'removeMarker:'+_0x233fec['markerName']),null;const _0x331781=['ck-comment-marker'];return _0x3297bd&&_0x331781['push']('ck-comment-marker--active'),_0xdac5cb=_0x4a515c?.['length']?_0x4a515c['comments']['first']['author']['id']:_0x21ec8a['me']['id'],{'classes':_0x331781,'attributes':{'data-comment':_0x31c7e3,'data-author-id':_0xdac5cb}};}}),_0x2f1917['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3f1b47,{options:_0x160373})=>{if(_0x160373['showCommentHighlights'])return null;const _0x23efd7=_0x2f1917['plugins']['get'](o),_0x4b0afc=_0x2f1917['model']['markers']['get'](_0x3f1b47),{id:_0x4e9192,part:_0x103a93}=er(_0x3f1b47);return _0x4b0afc&&!_0x4b0afc['affectsData']||_0x160373['ignoreResolvedComments']&&_0x23efd7['getCommentThread'](_0x4e9192)?.['isResolved']?null:{'group':'comment','name':_0x103a93?_0x4e9192+':'+_0x103a93:_0x4e9192};}}),_0x2f1917['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3b0742,{writer:_0x2347a6})=>_0x2347a6['createElement']('$marker',{'data-name':'comment:'+_0x3b0742['getAttribute']('id')})}),_0x2f1917['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x5160fa=this['editor'],_0x41c4e5=_0x5160fa['plugins']['get'](o),_0x461cc6=new Set(),_0x45c90c=new Set();_0x5160fa['model']['document']['registerPostFixer'](_0xb8027f=>{let _0x5057e3=!0x1;for(const {name:_0x561ce8,data:_0x572eaa}of _0x5160fa['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5164a3,id:_0x2be4ae}=er(_0x561ce8);let _0x3178da=_0x572eaa['newRange'];if('comment'!==_0x5164a3||!_0x3178da)continue;const _0x11c945='$graveyard'===_0x3178da['root']['rootName'];_0x11c945||(_0x3178da=dt(_0x3178da,_0x5160fa['model']),!_0x3178da||_0x3178da['isCollapsed']||!_0x572eaa['newRange']||_0x3178da['isEqual'](_0x572eaa['newRange']))?_0x5160fa['model']['hasContent'](_0x3178da)&&!_0x11c945?this['isThreadsLoadingPaused']?_0x461cc6['add'](_0x561ce8):this['_handleThreadMarker'](_0x561ce8,_0x2be4ae):(_0x45c90c['add'](_0x561ce8),_0x461cc6['delete'](_0x561ce8),_0xb8027f['removeMarker'](_0x561ce8),_0x5057e3=!0x0):(_0xb8027f['updateMarker'](_0x561ce8,{'range':_0x3178da}),_0x5057e3=!0x0);}return _0x5057e3;}),this['on']('change:isThreadsLoadingPaused',(_0x36977b,_0x437df4,_0x4fca1e)=>{if(!_0x4fca1e&&_0x461cc6['size'])for(const _0x3821dc of _0x461cc6){const {id:_0x579bf7}=er(_0x3821dc);_0x461cc6['delete'](_0x3821dc),_0x5160fa['model']['markers']['get'](_0x3821dc)&&this['_handleThreadMarker'](_0x3821dc,_0x579bf7);}}),this['listenTo'](_0x5160fa['model']['document'],'change',()=>{for(const {name:_0x5d234d,data:{newRange:_0x32d64d}}of _0x5160fa['model']['document']['differ']['getChangedMarkers']()){const {group:_0x12628b,id:_0x5ad395}=er(_0x5d234d);if('comment'!==_0x12628b)continue;const _0x22323d=_0x41c4e5['getCommentThread'](_0x5ad395),_0x1bd1b6=this['hasMarkerForId'](_0x5ad395);_0x22323d&&(!_0x22323d['_hasTargetInContent']&&_0x32d64d&&_0x5160fa['editing']['view']['once']('render',()=>{const _0x12e0e7=_0x5160fa['plugins']['get'](y),_0x261a34=_0x41c4e5['_threadToController']['get'](_0x22323d)['view'];_0x12e0e7['getByInnerView'](_0x261a34)['refreshVisibility']();},{'priority':'low'}),_0x22323d['_hasTargetInContent']=_0x1bd1b6||!!_0x32d64d),_0x32d64d||(_0x45c90c['add'](_0x5d234d),_0x461cc6['delete'](_0x5d234d));}for(const _0x4c4e62 of _0x45c90c){const {id:_0x5ef329}=er(_0x4c4e62),_0x480c9f=_0x41c4e5['getCommentThread'](_0x5ef329);if(_0x461cc6['delete'](_0x4c4e62),!_0x480c9f)continue;const _0x4f9df6=this['hasMarkerForId'](_0x5ef329);_0x4f9df6||_0x480c9f['isSubmitted']?_0x4f9df6||_0x480c9f['unlinkedAt']||_0x480c9f['setUnlinkedAt'](new Date()):_0x480c9f['remove']();}_0x45c90c['clear']();});}['_handleInitialThreads'](_0x20058a){_0x20058a['forEach'](_0x593457=>{_0x593457['unlinkedAt']&&this['_attachArchivedThread'](_0x593457['id']);});}['_getTargetForId'](_0x227c6b){const _0x384d02=this['editor'],_0x447811=this['getAllMarkersForId'](_0x227c6b);return et(_0x384d02['editing'],_0x447811);}['_getTextContext'](_0x369105){const _0x1aeea8=this['getAllMarkersForId'](_0x369105);let _0x48e9a0='',_0x58713d=!0x1;for(const _0x65a878 of _0x1aeea8){const _0x9814fe=_0x65a878['getRange']();for(const _0xa286e9 of Array['from'](_0x9814fe['getItems']()))_0xa286e9['is']('$textProxy')?(_0x48e9a0&&_0x58713d&&(_0x48e9a0+='\x20',_0x58713d=!0x1),_0x48e9a0+=_0xa286e9['data']):_0x58713d=!0x0;_0x58713d=!0x0;}return _0x48e9a0['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3810fc,_0x574ccb){const _0x25bfbf=this['editor'],_0x981908=_0x25bfbf['plugins']['get'](o);let _0x53b707=_0x981908['getCommentThread'](_0x574ccb);const _0x137f73=_0x25bfbf['config']['get']('collaboration.channelId'),_0x5228db=_0x25bfbf['plugins']['get'](b);if(_0x53b707&&(_0x53b707['unlinkedAt']&&_0x53b707['setUnlinkedAt'](null),_0x53b707['isAttached']))return _0x53b707;return!this['getAllMarkersForId'](_0x574ccb)[0x0]['managedUsingOperations']?_0x25bfbf['editing']['view']['once']('render',()=>{if(_0x981908['getCommentThread'](_0x574ccb))return;const _0x59e9b7=_0x25bfbf['plugins']['get'](y);_0x53b707=_0x981908['openNewCommentThread']({'channelId':_0x137f73,'threadId':_0x574ccb,'target':()=>this['_getTargetForId'](_0x574ccb),'context':{'type':'text','value':this['_getTextContext'](_0x574ccb)}});const _0x15e980=_0x981908['_threadToController']['get'](_0x53b707)['view'],_0x4a6d93=_0x59e9b7['getByInnerView'](_0x15e980);_0x4a6d93&&_0x5228db['registerAnnotation'](_0x4a6d93);},{'priority':'low'}):_0x981908['fetchCommentThread']({'channelId':_0x137f73,'threadId':_0x574ccb})['then'](_0x1714c1=>{if('destroyed'!==_0x25bfbf['state']){if(_0x53b707=_0x1714c1,_0x53b707&&!_0x53b707['isAttached']){const _0x541939=_0x53b707['attachTo'](()=>this['_getTargetForId'](_0x574ccb));_0x5228db['registerAnnotation'](_0x541939),_0x53b707['isResolved']&&this['_reconvertMarkers'](_0x574ccb);}else{if(!_0x53b707){const _0x28bb9f=this['getAllMarkersForId'](_0x574ccb);_0x25bfbf['model']['change'](_0x25fce5=>{for(const _0x160ec6 of _0x28bb9f)_0x25fce5['removeMarker'](_0x160ec6);});}}}}),_0x53b707;}['_handleThreadMarker'](_0x1ab02b,_0x2b3d9a){const _0x5f1828=this['_attachMarkerToThread'](_0x1ab02b,_0x2b3d9a);_0x5f1828&&!_0x5f1828['context']&&_0x5f1828['setContext']({'type':'text','value':this['_getTextContext'](_0x2b3d9a)});}['_initAriaMarkerChangeAnnouncements'](){const _0xdbec2d=this['editor'];ot(_0xdbec2d['model'],({left:_0x117f19,entered:_0x28d507})=>{for(const _0x197242 of _0x117f19)if(mt(_0x197242)){_0xdbec2d['ui']['ariaLiveAnnouncer']['announce'](N(_0xdbec2d['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x229da9 of _0x28d507)if(mt(_0x229da9)){_0xdbec2d['ui']['ariaLiveAnnouncer']['announce'](N(_0xdbec2d['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x542398)));break;}});}}function ft(_0x3b2f35,_0xc50819){return _0xc50819?_0x3b2f35+':'+_0xc50819:_0x3b2f35;}function er(_0x26783c){const _0x3107fb=_0x26783c['split'](':');return{'group':_0x3107fb[0x0],'id':_0x3107fb[0x1],'part':_0x3107fb[0x2]};}function dt(_0x958c0a,_0x538dbe){const _0x1480c5=_0x538dbe['schema'],_0xa25b31=_0x538dbe['createRange'](_0x958c0a['start']);for(const _0x28be6d of _0x958c0a['getWalker']()){const {type:_0x3aaf04,item:_0x4d409a,nextPosition:_0x223b2a}=_0x28be6d;if('text'===_0x3aaf04||_0x1480c5['isObject'](_0x4d409a)){const _0x54c743=_0x538dbe['createPositionBefore'](_0x4d409a);_0xa25b31['isCollapsed']&&(_0xa25b31['start']=_0x54c743),_0xa25b31['end']=_0x223b2a;}}return _0xa25b31;}function mt(_0x22c7dc){return'comment'===er(_0x22c7dc['name'])['group'];}class s extends _0x5ddc0e{['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 _0x2b07c4=this['editor'],_0x41da01=_0x2b07c4['plugins']['get'](o),_0x5a5c48=_0x2b07c4['plugins']['get'](r),_0x574a9a=_0x2b07c4['plugins']['get'](y),_0x197228=_0x2b07c4['plugins']['get'](b);_0x2b07c4['ui']['componentFactory']['add']('comment',()=>{const _0x298b7b=this['_createUIButton'](_0x49f2c7);return _0x298b7b['tooltip']=!0x0,_0x298b7b;}),_0x2b07c4['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x58cd9a)),_0x197228['addSourceCollector'](()=>{const _0x6b0486=[];for(const [_0x2fd8af,_0x2df56b]of _0x41da01['_threadToController']){const _0x58765c=_0x5a5c48['getAllMarkersForId'](_0x2fd8af['id']),_0x52dafc=_0x58765c['map'](_0x82ee64=>_0x82ee64['getRange']());_0x58765c['length']>0x0&&_0x6b0486['push']([_0x2df56b['view'],_0x52dafc]);}return _0x6b0486;}),this['listenTo'](_0x574a9a,'change:activeAnnotations',(_0x157580,_0x58b561,_0xf11d6b)=>{const _0x9e212f=Array['from'](_0xf11d6b)['map'](_0x53693a=>_0x53693a['innerView'])['find'](_0x2229e2=>_0x41da01['_viewToController']['has'](_0x2229e2));if(!_0x9e212f)return void(_0x5a5c48['activeMarker']=null);const _0x585d14=_0x41da01['_viewToController']['get'](_0x9e212f)['model']['id'],_0x2a803f='comment:'+_0x585d14;_0x585d14&&_0x5a5c48['hasMarkerForId'](_0x585d14)?_0x5a5c48['activeMarker']=_0x2a803f:_0x5a5c48['activeMarker']&&(_0x5a5c48['activeMarker']=null);}),this['listenTo'](_0x41da01,'removeCommentThread',(_0x2b7882,{threadId:_0x4ca2b6,isFromAdapter:_0x8081dd})=>{!_0x8081dd&&_0x2b07c4['ui']['focusTracker']['isFocused']&&_0x5a5c48['hasMarkerForId'](_0x4ca2b6)&&_0x2b07c4['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x41da01,'addComment',(_0x147879,{threadId:_0x5cf2a0,isFromAdapter:_0x3d2b43})=>{if(_0x3d2b43||!_0x5a5c48['hasMarkerForId'](_0x5cf2a0)||!_0x41da01['hasCommentThread'](_0x5cf2a0))return;0x1===_0x41da01['getCommentThread'](_0x5cf2a0)['length']&&(_0x2b07c4['editing']['view']['focus'](),_0x147879['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x472d29=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x49ecc9;for(const _0x1bb05b in _0x472d29){const _0x405d60=_0x1bb05b,_0x5708b0=_0x472d29[_0x405d60];if('commentsLicenseKeyValid'==_0x5708b0||'commentsLicenseKeyInvalid'==_0x5708b0||'commentsLicenseKeyExpired'==_0x5708b0||'commentsLicenseKeyDomainLimit'==_0x5708b0||'commentsLicenseKeyNotAllowed'==_0x5708b0||'commentsLicenseKeyEvaluationLimit'==_0x5708b0||'commentsLicenseKeyTrialLimit'==_0x5708b0||'commentsLicenseKeyUsageLimit'==_0x5708b0){delete _0x472d29[_0x405d60],_0x49ecc9=_0x5708b0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x49ecc9&&_0x472d29['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x49ecc9&&_0x472d29['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x49ecc9&&_0x472d29['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x49ecc9&&_0x472d29['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x49ecc9&&_0x472d29['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x49ecc9&&_0x472d29['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x49ecc9&&_0x472d29['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x4b41ec){const _0x215e3e=this['editor'],_0x2f7f2a=new _0x4b41ec(_0x215e3e['locale']),_0x139d38=_0x215e3e['commands']['get']('addCommentThread');return _0x2f7f2a['set']({'label':N(_0x215e3e['locale'],'Comment'),'icon':_0x224626}),_0x2f7f2a['bind']('isEnabled')['to'](_0x139d38,'hasContent'),this['listenTo'](_0x2f7f2a,'execute',()=>{_0x139d38['execute']();}),_0x2f7f2a;}}class i extends _0x5ddc0e{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x419518){super(_0x419518),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1e6f7f,_0xa67aee,_0x22b27f)=>{_0x22b27f?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x15bf29,_0x462656]of this['editor']['commands'])_0x462656['affectsData']&&'addCommentThread'!==_0x15bf29&&_0x462656['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x4f1353=this['editor']['editing']['view']['document'];this['listenTo'](_0x4f1353,'cut',_0x1f75dc=>_0x1f75dc['stop'](),{'priority':'highest'}),this['listenTo'](_0x4f1353,'clipboardInput',_0x573d61=>_0x573d61['stop'](),{'priority':'highest'}),this['listenTo'](_0x4f1353,'delete',_0x449eb2=>_0x449eb2['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x48422d,_0x53dcb8]of this['editor']['commands'])_0x53dcb8['affectsData']&&'addCommentThread'!==_0x48422d&&_0x53dcb8['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 _0x2738de{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1980b4){super(_0x1980b4),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x345a75=this['context']['plugins']['get'](y);this['listenTo'](_0x345a75,'_activateAnnotation',(_0x275177,_0xfb94c7)=>{for(const _0x3c1743 of this['activeUIs']){const _0x3361e4=this['_uis']['get'](_0x3c1743);(0x0,this['uisData']['get'](_0x3c1743)['filter'])(_0xfb94c7)&&_0x3361e4['setActiveAnnotation'](_0xfb94c7);}}),this['listenTo'](_0x345a75,'_deactivateAllAnnotations',()=>{for(const _0x308d8a of this['activeUIs']){this['_uis']['get'](_0x308d8a)['setActiveAnnotation'](null);}}),this['listenTo'](_0x345a75['_visibleAnnotations'],'add',(_0x2c4fb7,_0x55da1b)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x55da1b);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x545043){return this['activeUIs']['has'](_0x545043);}['activate'](_0x584242,_0x4c599f=this['defaultFilter']){const _0x2bd424=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x584242))throw new _0x51f518('annotationsuis-missing-ui',this,{'uiName':_0x584242});this['isActive'](_0x584242)&&this['deactivate'](_0x584242),this['activeUIs']['add'](_0x584242);const _0x2db359=new S();v({'source':_0x2bd424['_visibleAnnotations'],'target':_0x2db359,'filter':_0x4c599f}),this['uisData']['set'](_0x584242,{'collection':_0x2db359,'filter':_0x4c599f});const _0x2735d4=this['_uis']['get'](_0x584242);_0x2735d4['attach'](_0x2db359),this['listenTo'](_0x2735d4,'change:activeAnnotation',(_0x2cbc73,_0xf3a79f,_0x506373,_0x13c333)=>{_0x13c333&&_0x2bd424['_removeActiveAnnotation'](_0x13c333),_0x506373&&_0x2bd424['_addActiveAnnotation'](_0x506373);});}['deactivate'](_0x4bf071){if(this['activeUIs']['delete'](_0x4bf071),!this['_uis']['has'](_0x4bf071))throw new _0x51f518('annotationsuis-missing-ui',this,{'uiName':_0x4bf071});const _0x4c1232=this['_uis']['get'](_0x4bf071);_0x4c1232['detach'](),this['stopListening'](_0x4c1232),this['uisData']['get'](_0x4bf071)['collection']['destroy'](),this['uisData']['delete'](_0x4bf071);}['switchTo'](_0x49bbb3){if(!this['_uis']['has'](_0x49bbb3))throw new _0x51f518('annotationsuis-missing-ui',this,{'uiName':_0x49bbb3});const _0x278dbc=this['context']['plugins']['get'](y),_0x1d0d02=Array['from'](_0x278dbc['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x49bbb3);const _0x5c9cb5=this['_uis']['get'](_0x49bbb3);_0x5c9cb5['setActiveAnnotation'](_0x1d0d02),_0x5c9cb5['_setSelectedAnnotations']&&_0x1d0d02&&_0x5c9cb5['_setSelectedAnnotations']([_0x1d0d02]);}['deactivateAll'](){for(const _0x31cf25 of this['activeUIs'])this['deactivate'](_0x31cf25);}['register'](_0xc39679,_0x2344b4){if(this['_uis']['has'](_0xc39679))throw new _0x51f518('annotationsuis-register-already-registered');if('function'!=typeof _0x2344b4['attach']||'function'!=typeof _0x2344b4['detach']||'function'!=typeof _0x2344b4['setActiveAnnotation'])throw new _0x51f518('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0xc39679,_0x2344b4);}['refilterAnnotations'](){const _0x1eb502=this['context']['plugins']['get'](y)['collection'],_0x5a360d=new Map(),_0x54266e=Array['from'](this['activeUIs']);for(const _0x2881ba of this['activeUIs']){const _0xbb872c=this['uisData']['get'](_0x2881ba)['collection'];for(const _0x3ac367 of _0xbb872c)_0x5a360d['set'](_0x3ac367,_0x2881ba);}for(const _0x1253f2 of _0x1eb502){const _0x2f7d47=_0x5a360d['get'](_0x1253f2);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1253f2);const _0x8f8b67=_0x54266e['find'](_0x1e80b3=>this['uisData']['get'](_0x1e80b3)['filter'](_0x1253f2));_0x2f7d47!==_0x8f8b67&&(_0x2f7d47&&this['uisData']['get'](_0x2f7d47)['collection']['remove'](_0x1253f2),_0x8f8b67&&this['uisData']['get'](_0x8f8b67)['collection']['add'](_0x1253f2));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1ba032){const _0x31fa6e=[];for(const _0x129ed2 of this['activeUIs']){(0x0,this['uisData']['get'](_0x129ed2)['filter'])(_0x1ba032)&&_0x31fa6e['push'](_0x129ed2);}if(_0x31fa6e['length']>0x1)throw new _0x51f518('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x31fa6e,'annotationType':_0x1ba032['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x1aa6c2){super(_0x1aa6c2);const _0x41ea3f=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 _0x199d2b(),this['focusCycler']=new _0x2f1de9({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x41ea3f['to']('class')],'style':{'minHeight':_0x41ea3f['to']('minHeight',_0x4b42f3=>'number'==typeof _0x4b42f3?_i(_0x4b42f3+0xa):null)},'dir':_0x1aa6c2['uiLanguageDirection'],'role':'application','aria-label':N(_0x1aa6c2,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x1aa6c2,'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',_0x468115=>{this['_updateItemPositionInFocusables'](_0x468115['source']);}),this['list']['forEach'](_0x22883c=>{this['focusTracker']['add'](_0x22883c['element']),this['_updateItemPositionInFocusables'](_0x22883c);}),this['list']['on']('change',(_0x18e67c,_0x146198)=>{for(const _0x4bf144 of _0x146198['removed'])this['focusTracker']['remove'](_0x4bf144['element']),this['focusables']['remove'](_0x4bf144);for(const _0x53a56e of _0x146198['added'])this['focusTracker']['add'](_0x53a56e['element']),this['_updateItemPositionInFocusables'](_0x53a56e);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x5017c4){const _0x4dedce=this['focusables']['getIndex'](_0x5017c4);let _0x1d24f0,_0x2ac519;for(const _0x320e70 of this['focusables'])if(_0x5017c4['top']<_0x320e70['top']){_0x1d24f0=_0x320e70;break;}if(_0x2ac519=_0x1d24f0?this['focusables']['getIndex'](_0x1d24f0):this['focusables']['length'],-0x1!==_0x4dedce){if(_0x4dedce===_0x2ac519-0x1)return;this['focusables']['remove'](_0x5017c4),_0x2ac519=_0x1d24f0?this['focusables']['getIndex'](_0x1d24f0):this['focusables']['length'];}this['focusables']['add'](_0x5017c4,_0x2ac519);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x168556){super(_0x168556),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5c1f3e,_0x238cf6)=>_0x5c1f3e+_0x238cf6),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x136284=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x136284['to']('isAnimationDisabled',_0x7ca701=>_0x7ca701?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x136284['to']('top',_0x1eaf56=>Ot(_0x1eaf56))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x304394=this['element']['clientHeight'];_0x304394&&(this['height']=_0x304394);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2738de{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x91ea16){super(_0x91ea16),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 _0x481fa4=this['context']['config']['get']('sidebar.container');_0x481fa4&&this['setContainer'](_0x481fa4);}['setContainer'](_0xe7c09f){if(!g(_0xe7c09f))throw new _0x51f518('sidebar-setcontainer-invalid-element');this['container']=_0xe7c09f;}['_attachToContainer']({viewClass:_0x2b695d='',spaceBetweenItems:_0xdc8d4d=0x19}={}){if(!g(this['container']))throw new _0x51f518('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x2b695d,this['_spaceBetweenItems']=_0xdc8d4d;}['rearrange']({removedAnnotation:_0x2b89b3,previousAnnotation:_0x7eecc4,nextAnnotation:_0x554e9e}){const _0x21deff=this['getSidebarItemView'](_0x2b89b3);this['view']['list']['remove'](_0x21deff),this['_destroySidebarItemView'](_0x2b89b3),_0x7eecc4&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x7eecc4)),_0x554e9e&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x554e9e)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x55c752,activatedAnnotation:_0x5189ea,disableAnimationOnActivatedAnnotation:_0x21aa9e}){if(this['_activeAnnotation']=_0x5189ea,_0x55c752){_0x55c752['isActive']=!0x1;const _0x13a66a=this['getSidebarItemView'](_0x55c752);_0x13a66a&&_0x21aa9e&&(_0x13a66a['isAnimationDisabled']=!0x1);}if(_0x5189ea){const _0xf139=this['getSidebarItemView'](_0x5189ea);_0xf139&&(_0x5189ea['isActive']=!0x0,_0x21aa9e&&(_0xf139['isAnimationDisabled']=!0x0,_0xf139['top']+=0x1),this['_alignToTargetRect'](_0xf139));}}['_detachFromContainer'](_0x22660d){if(this['view']['element']['remove'](),_0x22660d){for(const _0x2d9524 of _0x22660d)this['_destroySidebarItemView'](_0x2d9524);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x59cc3c,_0x427a9a){_0x427a9a||(_0x427a9a=_0x59cc3c['view']);const _0x3bbeac=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x3bbeac,_0x59cc3c),this['_annotationToSidebarItemView']['set'](_0x59cc3c,_0x3bbeac),_0x3bbeac['content']['add'](_0x427a9a),this['listenTo'](_0x59cc3c['view'],'change:targetRect',(_0x510b6f,_0x401eb3,_0x315e2a)=>{const _0x316a6e=this['_getTargetTop'](_0x59cc3c,_0x315e2a);_0x3bbeac['_targetTop']!=_0x316a6e&&(_0x3bbeac['_targetTop']=_0x316a6e,this['_setItemTop'](_0x3bbeac,_0x316a6e));}),this['listenTo'](_0x3bbeac,'change:top',()=>{this['_recalculate'](_0x3bbeac,'top');}),this['listenTo'](_0x3bbeac,'change:bottom',()=>{this['_recalculate'](_0x3bbeac,'bottom');}),this['_alignToTargetRect'](_0x3bbeac);const _0x27963b=this['_getItemBefore'](_0x3bbeac);if(_0x27963b)this['_alignAfterItem'](_0x27963b,_0x3bbeac)||this['_alignToTargetRect'](_0x3bbeac);else this['_alignToTargetRect'](_0x3bbeac);return this['_updateLastItem'](),this['view']['list']['add'](_0x3bbeac),_0x3bbeac;}['_alignForTopChange'](_0x59a134){if(!_0x59a134['content']['length'])return;const _0x304bb0=this['_getItemBefore'](_0x59a134);if(!_0x304bb0)return;const _0x3011d9=this['_sidebarItemViewToAnnotation']['get'](_0x304bb0),_0x4d9ab6=this['_activeAnnotation'];_0x4d9ab6&&_0x4d9ab6===_0x3011d9?this['_alignAfterItem'](_0x304bb0,_0x59a134):this['_alignBeforeItem'](_0x59a134,_0x304bb0);}['_alignForBottomChange'](_0x31331a){if(!_0x31331a['content']['length'])return;const _0x34907f=this['_getItemAfter'](_0x31331a);if(!_0x34907f)return;const _0x83f92c=this['_sidebarItemViewToAnnotation']['get'](_0x34907f),_0x4abb15=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x5811cc=this['_activeAnnotation'];_0x5811cc&&_0x5811cc===_0x83f92c&&_0x4abb15?(this['_alignBeforeItem'](_0x34907f,_0x31331a),this['_alignAfterItem'](_0x31331a,_0x34907f)):_0x5811cc&&_0x5811cc===_0x83f92c?this['_alignBeforeItem'](_0x34907f,_0x31331a):this['_alignAfterItem'](_0x31331a,_0x34907f);}['_recalculate'](_0x2269a4,_0x39350b){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x4d0d5c,changedProp:_0x1870b4}of this['_recalculateBuffer'])'top'===_0x1870b4?this['_alignForTopChange'](_0x4d0d5c):this['_alignForBottomChange'](_0x4d0d5c);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2269a4,'changedProp':_0x39350b});}['getSidebarItemView'](_0xd1a1e2){return this['_annotationToSidebarItemView']['get'](_0xd1a1e2);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4bd34e){const _0x4a3417=this['getSidebarItemView'](_0x4bd34e);this['stopListening'](_0x4a3417),this['stopListening'](_0x4bd34e['view']),_0x4a3417['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4bd34e),this['_sidebarItemViewToAnnotation']['delete'](_0x4a3417);}['_createSidebarView'](){const _0x5b4ad8=new H(this['context']['locale']);return _0x5b4ad8['render'](),this['on']('change:_lastItem',(_0x42eb7b,_0x243722,_0x18de49,_0x21f530)=>{_0x21f530&&_0x5b4ad8['unbind']('minHeight'),_0x18de49?_0x5b4ad8['bind']('minHeight')['to'](_0x18de49,'bottom'):_0x5b4ad8['minHeight']=null;}),_0x5b4ad8;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x511eb3){const _0x2da19c=this['_sidebarItemViewToAnnotation']['get'](_0x511eb3),_0x5991b1=_0x2da19c&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2da19c)-0x1);return _0x5991b1&&this['getSidebarItemView'](_0x5991b1)||null;}['_getItemAfter'](_0x15bd39){const _0x59d6a6=this['_sidebarItemViewToAnnotation']['get'](_0x15bd39),_0x62749=_0x59d6a6&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x59d6a6)+0x1);return _0x62749&&this['getSidebarItemView'](_0x62749)||null;}['_alignBeforeItem'](_0x1575ae,_0x219c89){_0x1575ae['updateHeight']();const _0x37fa05=G(_0x219c89['bottom']+this['_spaceBetweenItems'],_0x1575ae['top']);return!!_0x37fa05&&(this['_setItemTop'](_0x219c89,_0x219c89['top']-_0x37fa05),!0x0);}['_alignAfterItem'](_0x282f9a,_0x384329){_0x282f9a['updateHeight']();const _0x34b18e=G(_0x282f9a['bottom']+this['_spaceBetweenItems'],_0x384329['top']);return!!_0x34b18e&&(this['_setItemTop'](_0x384329,_0x384329['top']+_0x34b18e,!0x1),!0x0);}['_alignToTargetRect'](_0x121035){const _0x70ea72=this['_sidebarItemViewToAnnotation']['get'](_0x121035);if(!_0x70ea72||!_0x70ea72['target']||!_0x70ea72['targetRect'])return;const _0x41bf60=this['_getTargetTop'](_0x70ea72,_0x70ea72['targetRect']);this['_setItemTop'](_0x121035,_0x41bf60);}['_getTargetTop'](_0x392428,_0x123474){if(null===_0x123474)return 0x0;if(_0x392428['target']instanceof _0x37570f)return _0x123474['top'];{const _0x145394=new _0x37570f(this['view']['element'])['top'];return _0x123474['top']-_0x145394;}}['_setItemTop'](_0x30fd14,_0x2dca40,_0x8b63ba=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x8b63ba&&(_0x2dca40=Math['max'](_0x2dca40,this['_getMaxAvailableTop'](_0x30fd14))),_0x30fd14['top']=_0x2dca40;}['_getMaxAvailableTop'](_0x57cf66){let _0x5cbc5a=this['_getItemBefore'](_0x57cf66),_0x58b2c1=0x0;for(;_0x5cbc5a;)_0x5cbc5a['updateHeight'](),_0x58b2c1+=this['_spaceBetweenItems']+_0x5cbc5a['height'],_0x5cbc5a=this['_getItemBefore'](_0x5cbc5a);return _0x58b2c1;}}function G(_0x235b5a,_0x43e792){return Math['max'](_0x235b5a-_0x43e792,0x0);}function g(_0x21dea4){return null!==_0x21dea4&&'object'==typeof _0x21dea4&&0x1===_0x21dea4['nodeType'];}class e extends _0x2738de{['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(_0x19d2f2){super(_0x19d2f2),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x23eb0b(),this['_refreshPositioningDebounced']=_0x40c01b(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x1ee65b=this['context']['plugins']['get'](j),_0x9be416=this['context']['plugins']['get'](z);_0x1ee65b['register']('wideSidebar',this),_0x9be416['container']&&_0x1ee65b['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x40a9e1){if(_0x40a9e1===this['activeAnnotation'])return;const _0x2a06b6=this['context']['plugins']['get'](z);_0x2a06b6['_activeAnnotation']=_0x40a9e1;const _0x3a907a=this['activeAnnotation'];_0x2a06b6['refresh']({'blurredAnnotation':_0x3a907a,'activatedAnnotation':_0x40a9e1}),this['activeAnnotation']=_0x40a9e1;}['attach'](_0x57ae0e){this['annotations']=_0x57ae0e;const _0x42ce9d=this['context']['plugins']['get'](z);if(_0x42ce9d['_annotations']=_0x57ae0e,this['isAttached'])throw new _0x51f518('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x42ce9d,'set:container',()=>{this['detach'](),this['listenTo'](_0x42ce9d,'change:container',_0x221cfd=>{_0x221cfd['off'](),this['attach'](_0x57ae0e);});}),_0x42ce9d['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2af16a=_0x494b58=>{_0x494b58['updateTargetRect'](),_0x42ce9d['addAnnotation'](_0x494b58);};for(const _0x5b5577 of _0x57ae0e)_0x2af16a(_0x5b5577);this['listenTo'](_0x57ae0e,'add',(_0x4684f7,_0x38bc89)=>{_0x2af16a(_0x38bc89);}),this['listenTo'](_0x57ae0e,'remove',(_0x187e55,_0x13d93e,_0x5d1e52)=>{_0x42ce9d['rearrange']({'removedAnnotation':_0x13d93e,'previousAnnotation':_0x57ae0e['get'](_0x5d1e52-0x1),'nextAnnotation':_0x57ae0e['get'](_0x5d1e52+0x1)}),_0x13d93e===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x57ae0e,'focus',(_0x43e283,_0x11a4d6)=>{this['setActiveAnnotation'](_0x11a4d6);}),this['listenTo'](_0x57ae0e,'blur',()=>{this['setActiveAnnotation'](null);});const _0x1e0b70=this['context']instanceof _0x449ace?this['context']['editors']:new _0x23eb0b([this['context']]);for(const _0xbf8a79 of _0x1e0b70)this['_integrateWithEditorAnnotations'](_0xbf8a79);this['listenTo'](_0x1e0b70,'add',(_0x3f0169,_0x11d864)=>{this['listenTo'](_0x11d864,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x11d864);});}),this['listenTo'](_0x1e0b70,'remove',(_0x2d289e,_0x14266d)=>{_0x14266d['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x14266d['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x51f518('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x50a3f4=this['context']['plugins']['get'](z);_0x50a3f4['_detachFromContainer'](this['annotations']),this['stopListening'](_0x50a3f4),this['stopListening'](this['annotations']),this['context']instanceof _0x449ace&&this['stopListening'](this['context']['editors']);for(const _0x37671e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x37671e);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x40cc8f){if(!_0x40cc8f['plugins']['has']('EditorAnnotations'))return;const _0x61134c=_0x40cc8f['plugins']['get']('EditorAnnotations'),_0xb5f293=()=>{const _0x1fb19e=_0x61134c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x1fb19e[0x0]||null);};this['listenTo'](_0x61134c,'refresh',_0xb5f293),this['listenTo'](_0x61134c,'blur',(_0x7a4414,{isAnnotationTracked:_0x121cd1})=>{this['activeAnnotation']&&_0x121cd1(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x61134c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x10c46a=>{_0x61134c['hasDomSelection']()&&(_0xb5f293(),_0x10c46a['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x61134c);}['_destroyEditorAnnotationsIntegration'](_0x58a2f1){this['stopListening'](_0x58a2f1),this['_editorAnnotations']['remove'](_0x58a2f1);}}class C extends _0x49f2c7{['counterView'];constructor(_0x93d430){super(_0x93d430);const _0x202c79=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x7b783d,_0x2c27d9)=>_0x7b783d?'...':_0x2c27d9['toString']()),this['set']('annotationType',''),this['icon']=_0x224626,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x202c79['to']('annotationType',_0x5d4f51=>'ck-annotation-counter__badge--'+_0x5d4f51),_0x202c79['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x202c79['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2738de{['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(_0x1aa0a4){super(_0x1aa0a4),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x35e1dc())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x23eb0b(),this['_refreshPositioningDebounced']=_0x40c01b(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x5a4cd6(this['context']['locale']),this['balloonPanelView']=new _0x263b66(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3160f5){this['annotations']=_0x3160f5;const _0x4e64ea=this['context']['plugins']['get'](z),_0x23dea4=this['balloonPanelView'];if(_0x4e64ea['_annotations']=_0x3160f5,this['isAttached'])throw new _0x51f518('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4e64ea,'set:container',()=>{this['detach'](),this['listenTo'](_0x4e64ea,'change:container',_0x1d5c06=>{_0x1d5c06['off'](),this['attach'](_0x3160f5);});}),_0x4e64ea['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x523cc7=_0x2ced47=>{const _0x1a8396=new C(this['context']['locale']);_0x4e64ea['addAnnotation'](_0x2ced47,_0x1a8396),this['_annotationToNarrowView']['set'](_0x2ced47,_0x1a8396),_0x1a8396['bind']('isDirty','annotationType','number')['to'](_0x2ced47['view'],'isDirty','type','length'),_0x1a8396['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x23dea4['content']['first']!==_0x2ced47['view']?(this['_showBalloon'](_0x2ced47),_0x2ced47['view']['element']['focus'](),this['setActiveAnnotation'](_0x2ced47)):this['setActiveAnnotation'](null);});};for(const _0xc30771 of _0x3160f5)_0x523cc7(_0xc30771);this['listenTo'](_0x3160f5,'add',(_0x128043,_0x2804be)=>{_0x523cc7(_0x2804be);}),this['listenTo'](_0x3160f5,'remove',(_0x4235c3,_0x1244aa,_0x3e93e3)=>{this['_annotationToNarrowView']['get'](_0x1244aa)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1244aa),_0x4e64ea['rearrange']({'removedAnnotation':_0x1244aa,'previousAnnotation':_0x3160f5['get'](_0x3e93e3-0x1),'nextAnnotation':_0x3160f5['get'](_0x3e93e3+0x1)}),_0x1244aa===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3160f5,'focus',(_0x17118c,_0x50ec33)=>{this['setActiveAnnotation'](_0x50ec33);}),this['listenTo'](_0x3160f5,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x51f116,_0x5446da)=>{_0x5446da['keyCode']===_0x5b1abd['esc']&&_0x23dea4['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x23dea4['content']['first']),this['_hideBalloon'](),_0x5446da['stopPropagation'](),_0x5446da['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x573407,_0x33ba9d)=>{const _0x11efec=_0x33ba9d['target'];_0x23dea4['isVisible']&&_0x23dea4['element']['contains'](_0x11efec)||_0x4e64ea['view']['element']['contains'](_0x11efec)||_0x573407['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x505ade=>_0x505ade['contains'](_0x11efec))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1a5037=this['context']instanceof _0x449ace?this['context']['editors']:new _0x23eb0b([this['context']]);for(const _0x408cd3 of _0x1a5037)this['_integrateWithEditorAnnotations'](_0x408cd3);this['listenTo'](_0x1a5037,'add',(_0xe0af6,_0x323d2f)=>{this['listenTo'](_0x323d2f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x323d2f);});}),this['listenTo'](_0x1a5037,'remove',(_0x2e8b41,_0x37c440)=>{_0x37c440['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x37c440['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5c56d){if(_0x5c56d===this['activeAnnotation'])return;const _0x7d38ae=this['context']['plugins']['get'](z);if(_0x7d38ae['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5c56d,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5c56d)_0x7d38ae['getSidebarItemView'](_0x5c56d)?this['_showBalloon'](_0x5c56d):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5c56d;}['detach'](){if(!this['isAttached'])throw new _0x51f518('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2b6160=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x58432f=>_0x58432f['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2b6160['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x449ace&&this['stopListening'](this['context']['editors']);for(const _0x27ba04 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x27ba04);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'](_0x9a0120){if(!_0x9a0120['plugins']['has']('EditorAnnotations'))return;const _0x36d79c=_0x9a0120['plugins']['get']('EditorAnnotations'),_0x142e00=this['context']['plugins']['get'](z),_0x20e074=this['annotations'],_0xf316ab=this['balloonPanelView'],_0x4c158f=()=>{const _0x180c28=_0x36d79c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x180c28),this['setActiveAnnotation'](_0x180c28[0x0]||null);};this['listenTo'](_0x36d79c,'refresh',_0x4c158f),this['listenTo'](_0x36d79c,'blur',(_0x157131,{isAnnotationTracked:_0x9fa5cc})=>{this['activeAnnotation']&&_0x9fa5cc(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x36d79c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x20e074,'blur',_0x3acfd7=>{_0x36d79c['hasDomSelection']()&&_0x3acfd7['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x4dbc78,_0x3215e5)=>{const _0x5a909b=_0x3215e5['target'];_0xf316ab['isVisible']&&_0xf316ab['element']['contains'](_0x5a909b)||_0x142e00['view']['element']['contains'](_0x5a909b)||this['activeAnnotation']&&_0x36d79c['hasDomSelection']()&&(_0x4c158f(),_0x4dbc78['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x36d79c);}['_destroyEditorAnnotationsIntegration'](_0xbfba6c){_0xbfba6c&&(this['stopListening'](_0xbfba6c),this['_editorAnnotations']['remove'](_0xbfba6c));}['_setSelectedAnnotations'](_0x1d9655){for(const _0x17f5fe of this['_selectedAnnotations'])_0x1d9655['includes'](_0x17f5fe)||this['_manuallyClosedAnnotationViews']['delete'](_0x17f5fe['view']);this['_selectedAnnotations']=_0x1d9655;}['_refreshPositioning'](){const _0x1b06c8=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x1b06c8['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x1b07c9){if(this['_manuallyClosedAnnotationViews']['has'](_0x1b07c9['view']))return;const _0x2c670d=this['balloonPanelView']['content']['first'];_0x2c670d!==_0x1b07c9['view']?(_0x2c670d&&this['_detachListeners'](_0x2c670d),this['_attachListeners'](_0x1b07c9['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x1b07c9['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x35998b=this['balloonPanelView']['content']['first'],_0x3e6677=_0x35998b&&this['annotations']['getByView'](_0x35998b);if(!_0x3e6677||!this['_annotationToNarrowView']['has'](_0x3e6677))return;const _0x34c641=this['_annotationToNarrowView']['get'](_0x3e6677)['element'],_0x23d4f1=(function(){const _0x30cb2d=_0x263b66['defaultPositions'];return[_0x30cb2d['southArrowNorthEast'],_0x30cb2d['northArrowSouthEast'],_0x30cb2d['southArrowNorth'],_0x30cb2d['northArrowSouth'],_0x30cb2d['southArrowNorthWest'],_0x30cb2d['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x34c641,'positions':_0x23d4f1});}['_hideBalloon'](){const _0x592a55=this['balloonPanelView'],_0x3b490c=_0x592a55['content']['first'];_0x3b490c&&(this['_detachListeners'](_0x3b490c),_0x592a55['unpin'](),_0x592a55['content']['clear']());}['_attachListeners'](_0x299963){this['listenTo'](_0x299963,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x299963,'Esc',(_0x41c5b9,_0x30abca)=>{this['_manuallyClosedAnnotationViews']['add'](_0x299963),this['_hideBalloon'](),_0x30abca();});}['_detachListeners'](_0x328d32){this['stopListening'](_0x328d32);}}class c extends _0x5ddc0e{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x36b0f0,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x161f30){super(_0x161f30),_0x161f30['editing']['view']['addObserver'](_0x5d0a9d),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x161f30['plugins']['get'](_0x36b0f0),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x13f758=this['editor']['plugins']['get'](j);_0x13f758['context']===this['editor']&&(_0x13f758['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x77bd22,_0x25c8a0)=>{const _0x2716b3=this['_balloon'];if(this['isAttached']&&_0x2716b3['visibleView']){const _0x54cbd3=this['annotations']['getByView'](_0x2716b3['visibleView']);_0x54cbd3&&this['_closeAnnotation'](_0x54cbd3),_0x25c8a0();}}));}['afterInit'](){const _0x42e82d=this['editor']['plugins']['get'](j);_0x42e82d['context']===this['editor']&&(_0x42e82d['hasActive']()||_0x42e82d['switchTo']('inline'));}['setActiveAnnotation'](_0x33b479){_0x33b479!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x33b479&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x33b479)&&this['_addAnnotationToBalloon'](_0x33b479,!0x0),_0x33b479['isActive']=!0x0),_0x33b479||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x33b479);}['attach'](_0x163189){this['annotations']=_0x163189;const _0x94de34=this['editor']['plugins']['get'](j),_0x5525d7=this['_balloon'];if(this['isAttached'])throw new _0x51f518('inlineannotations-attach-already-attached',this);if(_0x94de34['context']!==this['editor'])throw new _0x51f518('inlineannotations-not-allowed-with-context',this);const _0x4242e2=this['editor']['plugins']['get'](b);this['listenTo'](_0x4242e2,'refresh',()=>{const _0x158829=_0x4242e2['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x4a25c2,_0x3176a9;!this['_forceRefresh']&&(_0x4a25c2=_0x158829,_0x3176a9=this['_selectedAnnotations'],_0x4a25c2['length']===_0x3176a9['length']&&_0x4a25c2['every'](_0x44de80=>_0x3176a9['includes'](_0x44de80)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x158829),this['setActiveAnnotation'](_0x158829[0x0]||null));}),this['listenTo'](_0x4242e2,'blur',(_0x105ac9,{isAnnotationTracked:_0x57185b})=>{this['activeAnnotation']&&_0x57185b(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x5aeb61,_0x2b00d9,_0x1fa878)=>{_0x1fa878||this['setActiveAnnotation'](null);}),this['listenTo'](_0x163189,'remove',(_0x569988,_0x43f348)=>{this['_removeAnnotationFromBalloon'](_0x43f348),_0x43f348===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5525d7,'change:visibleView',(_0x462f89,_0x2e9227,_0x2ff1ac,_0x5585e6)=>{_0x5585e6&&this['stopListening'](_0x5585e6);const _0x50e2dd=_0x163189['getByView'](_0x2ff1ac);_0x2ff1ac&&_0x50e2dd&&(this['listenTo'](_0x2ff1ac,'change:height',()=>{_0x5525d7['updatePosition']();}),this['listenTo'](_0x2ff1ac,'Esc',()=>{this['_closeAnnotation'](_0x50e2dd),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x50e2dd&&this['setActiveAnnotation'](_0x50e2dd));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5525d7['visibleView']&&(_0x163189['getByView'](_0x5525d7['visibleView'])&&_0x5525d7['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 _0x51f518('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x3e7444 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x3e7444);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xc0c724){for(const _0x3c7c41 of this['_selectedAnnotations'])_0xc0c724['includes'](_0x3c7c41)||this['_manuallyClosed']['delete'](_0x3c7c41);for(const _0x4ad342 of this['annotations'])_0xc0c724['includes'](_0x4ad342)||this['_removeAnnotationFromBalloon'](_0x4ad342);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x5e3651 of _0xc0c724)this['_addAnnotationToBalloon'](_0x5e3651);}this['_selectedAnnotations']=_0xc0c724;}['_addAnnotationToBalloon'](_0x24bb88,_0x9b1630=!0x1){this['_manuallyClosed']['has'](_0x24bb88)||(this['_addedAnnotations']['has'](_0x24bb88)||this['_balloon']['hasView'](_0x24bb88['view'])||(this['_addedAnnotations']['add'](_0x24bb88),this['_balloon']['add']({'stackId':_0x24bb88['view']['id'],'view':_0x24bb88['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x24bb88)}})),_0x9b1630&&this['_balloon']['showStack'](_0x24bb88['view']['id']));}['_getBalloonTargetForAnnotation'](_0x33ef18){const _0x5bd83c=_0x33ef18['target'],_0x365ade=this['editor']['editing']['view'],_0x5f36c6=_0x365ade['document']['selection']['getFirstRange'](),_0x1c61ec=_0x365ade['domConverter']['viewRangeToDom'](_0x5f36c6);if(_0x1c61ec['collapse'](!0x0),_0x5bd83c){if(_0x5bd83c instanceof _0x37570f)return _0x5bd83c;let _0xdcd681=[];for(const _0x4a5333 of _0x5bd83c)_0xdcd681['push'](...F(_0x4a5333['getClientRects']()));_0xdcd681=function(_0x3a1457){const _0x5d92e1=[];let _0xf6950e=_0x3a1457[0x0];for(let _0x41e1b9=0x1;_0x41e1b9<_0x3a1457['length'];_0x41e1b9++)P(_0xf6950e,_0x3a1457[_0x41e1b9])?_0xf6950e['width']+=_0x3a1457[_0x41e1b9]['width']:(_0x5d92e1['push'](_0xf6950e),_0xf6950e=_0x3a1457[_0x41e1b9]);return _0x5d92e1['push'](_0xf6950e),_0x5d92e1;}(_0xdcd681);const _0x405339=_0x1c61ec['getBoundingClientRect']();return _0xdcd681['find'](_0x23d6a1=>_0x23d6a1['top']<=_0x405339['top']&&_0x23d6a1['bottom']>=_0x405339['bottom']&&_0x23d6a1['left']<=_0x405339['left']&&_0x23d6a1['right']>=_0x405339['right'])||_0xdcd681[0x0];}return _0x33ef18['targetRect']||_0x1c61ec;}['_removeAnnotationFromBalloon'](_0xb74736){this['_addedAnnotations']['has'](_0xb74736)&&this['_balloon']['hasView'](_0xb74736['view'])&&(this['_addedAnnotations']['delete'](_0xb74736),this['_balloon']['remove'](_0xb74736['view']));}['_closeAnnotation'](_0x2dfef3){this['_manuallyClosed']['add'](_0x2dfef3),this['_removeAnnotationFromBalloon'](_0x2dfef3);}}function F(_0x233a0e){return Array['from'](_0x233a0e)['map'](DOMRect['fromRect']);}function P(_0x3aecec,_0x17396b){return _0x3aecec['top']===_0x17396b['top']&&_0x3aecec['bottom']===_0x17396b['bottom']&&_0x3aecec['right']===_0x17396b['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x5f080c,_0x523549){super(_0x5f080c),this['set']('isEmpty',!_0x523549['length']),this['focusTracker']=new _0x199d2b(),this['_annotationViews']=_0x523549,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x2f1de9({'focusables':_0x523549,'focusTracker':this['focusTracker']}),this['listenTo'](_0x523549,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x523549,'remove',(_0xcaabda,_0x2e9918)=>{_0x2e9918['isActive']&&this['focus'](),_0x523549['length']||(this['isEmpty']=!0x0);});const _0x14040a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x5f080c,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x523549},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x14040a['if']('isEmpty','ck-hidden',_0x280020=>!_0x280020)]},'children':[{'text':N(_0x5f080c,'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 _0xe7d42c of this['_annotationViews'])this['focusTracker']['add'](_0xe7d42c['element']);this['_annotationViews']['on']('change',(_0x384ea5,{added:_0x5e6563,removed:_0x159f72})=>{for(const _0x151136 of _0x5e6563)this['focusTracker']['add'](_0x151136['element']);for(const _0x4ab2fe of _0x159f72)this['focusTracker']['remove'](_0x4ab2fe['element']);});}}class p extends _0x2738de{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x4181d5){super(_0x4181d5),this['archivedThreads']=new _0x23eb0b();}['init'](){const _0x31bc35=this['context'],_0x4c5987=_0x31bc35['plugins']['get'](o),_0x139372=_0x31bc35['plugins']['get'](y);this['listenTo'](_0x4c5987,'addCommentThread',(_0x2d9912,{threadId:_0x1150a2})=>{const _0x273917=_0x4c5987['getCommentThread'](_0x1150a2);_0x273917['archivedAt']&&this['archivedThreads']['add'](_0x273917,this['_calculatePosition'](_0x273917['archivedAt'])),this['listenTo'](_0x273917,'change:archivedAt',(_0x1264c2,_0x2d7bb3,_0x3200e3)=>{_0x3200e3?this['archivedThreads']['has'](_0x273917)||this['archivedThreads']['add'](_0x273917,this['_calculatePosition'](_0x273917['archivedAt'])):this['archivedThreads']['has'](_0x273917)&&this['archivedThreads']['remove'](_0x273917);});}),this['listenTo'](_0x4c5987,'removeCommentThread',(_0x59afa8,{threadId:_0x21708f})=>{const _0x3060a5=_0x4c5987['getCommentThread'](_0x21708f);this['stopListening'](_0x3060a5),this['archivedThreads']['has'](_0x3060a5)&&this['archivedThreads']['remove'](_0x3060a5);},{'priority':'highest'}),this['listenTo'](_0x139372['collection'],'focus',(_0x5324c7,_0x4a6794)=>{_0x4a6794['isVisible']||(_0x4a6794['isActive']=!0x0,_0x139372['activate'](_0x4a6794));});}['_calculatePosition'](_0x3f0625){const _0xa99d10=[...this['archivedThreads']]['findIndex'](_0x2b45b1=>_0x2b45b1['archivedAt']<_0x3f0625);return _0xa99d10>-0x1?_0xa99d10:this['archivedThreads']['length'];}}class a extends _0x5ddc0e{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0xeb9489];}constructor(_0x1de69d){super(_0x1de69d),this['annotationViews']=new _0xae5e8b(),this['_pendingThreads']=[];}['init'](){const _0xac178a=this['editor'],_0x19a937=this['_hideDialogOnAnnotationEscape']['bind'](this);_0xac178a['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x49f2c7,!0x0)),_0xac178a['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x506166=this['_createCommentsArchiveButton'](_0x58cd9a);return _0x506166['set']({'role':'menuitemcheckbox'}),_0x506166;});const _0x10fd63=_0xac178a['plugins']['get'](p),_0x521eb6=_0xac178a['plugins']['get']('Annotations'),_0x3e56a3=_0xac178a['plugins']['get']('CommentsRepository');_0x10fd63['archivedThreads']['forEach'](_0x56ffad=>{this['_handleNewThread'](_0x56ffad);}),this['listenTo'](_0x10fd63['archivedThreads'],'add',(_0xf14f9f,_0x3b16b1)=>{this['_handleNewThread'](_0x3b16b1);}),this['listenTo'](_0x521eb6['collection'],'add',(_0x48c00d,_0x4ecc08)=>{const _0x460226=this['_pendingThreads']['find'](_0x4ccea9=>{const _0x5c43dc=_0x3e56a3['_threadToController']['get'](_0x4ccea9);return _0x5c43dc&&_0x4ecc08['innerView']===_0x5c43dc['view'];});if(_0x460226){const _0x3ae710=this['_calculatePosition'](_0x460226['archivedAt']);this['annotationViews']['add'](_0x4ecc08['view'],_0x3ae710),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x460226),0x1);}}),this['listenTo'](_0x10fd63['archivedThreads'],'remove',(_0x49e375,_0x400b78)=>{const _0x2ce5e8=_0xac178a['config']['get']('collaboration.channelId');if(!_0x2ce5e8||_0x400b78['channelId']===_0x2ce5e8){if(this['_pendingThreads']['includes'](_0x400b78))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x400b78),0x1);else{const _0x3eb78e=_0x3e56a3['_threadToController']['get'](_0x400b78),_0x5998af=_0x521eb6['getByInnerView'](_0x3eb78e['view']);this['annotationViews']['remove'](_0x5998af['view']),this['stopListening'](_0x5998af['focusableElements']);}}}),this['listenTo'](_0x521eb6['collection'],'add',(_0x485cb6,_0x5a072a)=>{this['listenTo'](_0x5a072a,'escape',_0x19a937);}),this['listenTo'](_0x521eb6['collection'],'remove',(_0x876d1f,_0x36d9c9)=>{this['stopListening'](_0x36d9c9,'escape',_0x19a937);});}['_handleNewThread'](_0x965e9e){const _0x20a949=this['editor']['plugins']['get']('CommentsRepository'),_0x454d49=this['editor']['plugins']['get']('Annotations'),_0x499a77=this['editor']['config']['get']('collaboration.channelId');if(!_0x499a77||_0x965e9e['channelId']===_0x499a77){const _0x357fbe=_0x20a949['_threadToController']['get'](_0x965e9e);if(!_0x357fbe)return void this['_pendingThreads']['push'](_0x965e9e);const _0x261180=this['_calculatePosition'](_0x965e9e['archivedAt']),_0x234f43=_0x454d49['getByInnerView'](_0x357fbe['view']);_0x234f43['isVisible']&&_0x454d49['_visibleAnnotations']['remove'](_0x234f43),this['annotationViews']['add'](_0x234f43['view'],_0x261180);}}['_calculatePosition'](_0x5df100){const _0x3e39cb=this['editor']['config']['get']('collaboration.channelId'),_0x1e8964=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x2c32ab=>_0x2c32ab['channelId']===_0x3e39cb)['findIndex'](_0x4393d3=>_0x4393d3['archivedAt']<_0x5df100);return _0x1e8964<0x0||_0x1e8964>this['annotationViews']['length']?this['annotationViews']['length']:_0x1e8964-0x1;}['_toggleDialog'](){const _0x54d8e2=this['editor'],_0x1db34f=_0x54d8e2['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x54d8e2['locale'],this['annotationViews'])),'commentsArchive'===_0x1db34f['id']?_0x1db34f['hide']():_0x1db34f['show']({'id':'commentsArchive','title':N(_0x54d8e2['locale'],'COMMENTS_ARCHIVE'),'icon':_0x314692,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0xd16eae['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x4cb7b7,_0x563f50=!0x1){const _0xccbd10=this['editor']['locale'],_0x51be16=this['editor']['plugins']['get']('Dialog'),_0x55f8fc=new _0x4cb7b7(_0xccbd10);return _0x55f8fc['bind']('isEnabled')['to'](this,'isEnabled'),_0x55f8fc['bind']('isOn')['to'](_0x51be16,'id',_0x57d12d=>'commentsArchive'===_0x57d12d),_0x55f8fc['set']({'label':N(_0xccbd10,'COMMENTS_ARCHIVE'),'icon':_0x314692,'isToggleable':!0x0}),_0x563f50&&(_0x55f8fc['tooltip']=!0x0),this['listenTo'](_0x55f8fc,'execute',()=>this['_toggleDialog']()),_0x55f8fc;}['_hideDialogOnAnnotationEscape']=_0x37476c=>{const _0x1c2293=_0x37476c['source'];if(!this['annotationViews']['has'](_0x1c2293['view']))return;const _0x4a8b37=this['editor']['plugins']['get']('Dialog');_0x4a8b37['isOpen']&&'commentsArchive'===_0x4a8b37['id']&&(_0x4a8b37['hide'](),_0x37476c['stop']());};}class gi extends _0x5ddc0e{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{rt 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,yt as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,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 _0x2e71ba,ContextPlugin as _0x6c42d0,PendingActions as lt,Command as _0x3a2e74,Plugin as _0x48bfeb,Context as _0x2f39eb}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x2f2a56,uid as _0x17bd5b,KeystrokeHandler as jt,FocusTracker as _0x2070b8,diff as _0x340879,Collection as _0x3c8425,Rect as _0x3e90cd,CKEditorError as _0xb7f752,first as _0x318935,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0xa43367,keyCodes as _0x39b8ef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1890da,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0x3ff6e6,trimHtml as _0x34f18f,LateFocusDropdownButtonView as _0xc262ae,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x309bde}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x1cef12}from'es-toolkit/compat';import{IconUndo as _0x4eb55b,IconCheck as _0x137fdd,IconPencil as _0x3dbe32,IconRemoveComment as _0x3acfc0,IconThreeVerticalDots as _0x46270e,IconAddComment as _0x2dc142,IconCommentsArchive as _0x23771b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x2a7d1c,ButtonView as _0x52b512,ViewCollection as _0x20b7d7,createDropdown as _0x5cdcac,ListView as _0x353f83,focusChildOnDropdownOpen as _0x5ce54f,ListItemView as _0x22f455,MenuBarMenuListItemButtonView as _0x13493c,BodyCollection as _0x23aa9b,BalloonPanelView as _0x3f2722,ContextualBalloon as _0x1a8a04,Dialog as _0x3c6c5d,DialogViewPosition as _0x4ff308}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0x584d78}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Bt,ShiftEnter as Et}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 _0x492559}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x32126f}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x2f2a56(){['model'];['view'];constructor(_0x1b986d,_0x454306){super(),this['model']=_0x1b986d,this['model']['_isAttached']=!0x0,this['view']=_0x454306,this['listenTo'](_0x454306,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x454306,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x454306,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x454306,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x454306,'addComment',(_0x47d022,_0x162e71)=>this['addComment'](_0x162e71)),this['listenTo'](_0x454306,'updateComment',(_0xfb8884,_0x43e0c4,_0x472917)=>this['updateComment'](_0x43e0c4,_0x472917)),this['listenTo'](_0x454306,'removeComment',(_0x5e8c69,_0x4a395e)=>this['removeComment'](_0x4a395e));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x49f2bb){this['model']['addComment']({'content':_0x49f2bb,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x1c873a,_0x127ccb){this['model']['getComment'](_0x1c873a)['update']({'content':_0x127ccb});}['removeComment'](_0x16186c){this['model']['getComment'](_0x16186c)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x38ecbf,_0x4c1089,_0x28e51d){const t=_0x38ecbf['t'];switch(_0x4c1089){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'},_0x28e51d);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'},_0x28e51d);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'},_0x28e51d);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'},_0x28e51d);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x28e51d);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'},_0x28e51d);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'},_0x28e51d);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'},_0x28e51d);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 Vt extends Xt{['main'];['editable'];constructor(_0xa14cb0,_0x4a2c07){super(_0xa14cb0);const _0x5e4e77=_0x17bd5b();this['main']=this['createCollection'](),this['editable']=new $t(_0xa14cb0,_0x4a2c07,void 0x0,{'label':()=>N(_0xa14cb0,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xa14cb0['uiLanguageDirection'],'lang':_0xa14cb0['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x5e4e77},'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 Ft extends Ut{['view'];constructor(_0x52c55a){super(_0x52c55a),this['view']=new Vt(_0x52c55a['locale'],_0x52c55a['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x3003e1=this['editor']['editing']['view'],_0x253034=this['view']['editable'],_0x4c10d6=_0x3003e1['document']['getRoot']();_0x253034['name']=_0x4c10d6['rootName'],this['view']['render']();const _0x2f9b40=_0x253034['element'];this['setEditableElement'](_0x253034['name'],_0x2f9b40),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3003e1['attachDomRoot'](_0x2f9b40),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Rt extends/* #__PURE__ -- @preserve */
25
+ _0x2f2a56(_0x2e71ba){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x2e4ece={}){function _0x10ab79(_0x368f8e){return _0x368f8e['map'](_0x41a9e7=>String['fromCharCode'](_0x41a9e7))['join']('');}(_0x2e4ece=Object['assign']({},_0x2e4ece))['plugins']||(_0x2e4ece['plugins']=Rt['defaultPlugins']),super(_0x2e4ece),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x10ab79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10ab79([0x76,0x69,0x65,0x77])][_0x10ab79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10ab79([0x61,0x75,0x74,0x6f]),this[_0x10ab79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x10ab79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10ab79([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x10ab79([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x10ab79([0x6f,0x6b])});}['create'](){const _0x16ead5=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x16ead5))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x26218a=>{const _0x2866c4=this['model']['document']['getRoot'](),_0x24ed98=_0x2866c4&&_0x2866c4['getChild'](_0x2866c4['childCount']-0x1);_0x26218a['setSelection'](_0x24ed98,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x21cec5=this['editing']['view'],_0x24f440=_0x21cec5['document']['getRoot'](),_0x3a76c1=_0x24f440['getChild'](0x0);_0x24f440['childCount']>0x1||!_0x3a76c1||'p'!=_0x3a76c1['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x21cec5,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3a76c1['placeholder']=this['placeholder']),St({'view':_0x21cec5,'element':_0x3a76c1,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3a76c1);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x305d13,_0x180fbc={}){super(_0x305d13),this['editor']=null,this['_editorConfig']=_0x180fbc,this['set']('value',_0x180fbc['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x305d13,'Reply...')),this['set']('submitLabel',N(_0x305d13,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x2070b8(),this['focusCycler']=new _0x2a7d1c({'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',(_0x54c86e,_0x2e4592)=>{this['cancelButtonView']['fire']('execute'),_0x2e4592();}),this['keystrokes']['set']('Ctrl+Enter',(_0x5a995d,_0x36955f)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x36955f());}),this['on']('submit',(_0x955834,_0x392b76)=>{_0x392b76['length']>0xfde8?(alert(N(_0x305d13,'TOO_LONG_COMMENT_ALERT',[_0x392b76['length'],0xfde8])),_0x955834['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x262b02=this['editor'];this['element']['insertBefore'](_0x262b02['ui']['element'],this['element']['firstChild']),_0x262b02['model']['document']['on']('change',()=>this['value']=_0x262b02['getData']()),_0x262b02['bind']('placeholder')['to'](this),this['focusables']['add'](_0x262b02['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1fd375){-0x1===_0x1fd375?(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:_0x531bc2}=this,_0x565551=new _0x52b512(_0x531bc2);return _0x565551['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x565551['withText']=!0x0,_0x565551['bind']('label')['to'](this,'submitLabel'),_0x565551['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x565551['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x4d82bd,_0x41b88b)=>!_0x41b88b&&!!_0x4d82bd['trim']()),_0x565551;}['_createCancelButton'](){const {locale:_0x508219}=this,_0x19c348=new _0x52b512(_0x508219);return _0x19c348['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x19c348['label']=N(_0x508219,'Cancel'),_0x19c348['withText']=!0x0,_0x19c348['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x19c348;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x1b3ea2=>{this['focusTracker']['add'](_0x1b3ea2['element']);}),this['focusables']['on']('change',(_0x115db6,_0x23a2d6)=>{for(const _0x18dda4 of Array['from'](_0x23a2d6['added'])['reverse']())this['focusTracker']['add'](_0x18dda4['element']);});}}class ie extends kt{constructor(_0x5d5ddf,_0x3eb6e5,_0x3f12bb){super(_0x5d5ddf),this['commentInputView']=new os(_0x5d5ddf,_0x3f12bb),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x381453,_0x102b9a)=>_0x381453||!!_0x102b9a),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 _0x1890da(_0x5d5ddf,_0x3eb6e5),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'](_0x430373){this['commentInputView']['focus'](_0x430373);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x5ad5a8,_0x1c1808)=>{const {submitButtonView:_0x6f7fe9,cancelButtonView:_0x493273,editor:_0x31c3dd}=this['commentInputView'];[_0x6f7fe9['element'],_0x493273['element'],_0x31c3dd?_0x31c3dd['editing']['view']['getDomRoot']():null]['filter'](_0x57b22a=>_0x57b22a)['some'](_0x34f3ab=>_0x34f3ab['contains'](_0x1c1808['target']))||(this['focus'](),_0x1c1808['preventDefault']());});}}class rs extends kt{constructor(_0x177193){super(_0x177193);const _0x4db56d=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4db56d['to']('count',_0x153996=>N(_0x177193,'NUMBER_OF_COMMENTS',_0x153996))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x178e04,_0x753887,_0x15c326){super(_0x178e04);const _0x581778=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x753887['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x753887,this['_config']=_0x15c326,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x2070b8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2a7d1c({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4bdd57=>this['commentViews']['map'](_0x5f0dc0=>_0x5f0dc0['element'])['includes'](_0x4bdd57['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x178e04),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x2688cc=>_0x2688cc-this['_config']['maxCommentsWhenCollapsed']);for(const _0x12708d of _0x753887['comments'])this['_handleNewCommentModel'](_0x12708d);this['_handleInfoComment'](),this['listenTo'](_0x753887['comments'],'add',(_0xd921b3,_0x3e827a)=>{const _0x548c4e=this['_calculatePosition'](_0x3e827a);this['length']++,this['_handleNewCommentModel'](_0x3e827a,_0x548c4e),this['refreshVisibleViews']();}),this['listenTo'](_0x753887['comments'],'remove',(_0x2b6ed2,_0x335e17)=>{this['length']--,this['_handleRemoveCommentModel'](_0x335e17),this['refreshVisibleViews']();}),this['listenTo'](_0x753887,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x753887,'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',_0x581778['if']('length','ck-hidden',_0x2dd171=>!_0x2dd171)],'aria-label':N(_0x178e04,'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'](_0x984cb5){-0x1===_0x984cb5?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x42be17 of this['commentViews'])_0x42be17['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x3a082f,_0x2d9e3c){const _0x31ee06=new this['_config']['CommentView'](this['locale'],_0x3a082f,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x31ee06['viewUid']=_0x3a082f['id'],_0x31ee06['delegate']('removeComment')['to'](this),_0x31ee06['delegate']('updateComment')['to'](this),_0x31ee06['delegate']('resolveCommentThread')['to'](this),_0x31ee06['delegate']('editorReady')['to'](this),_0x31ee06['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x31ee06,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x31ee06,_0x2d9e3c);}['_calculatePosition'](_0x47d7e3){const _0x17d9ae=this['_model']['_findOptimalIndex'](_0x47d7e3);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x47d7e3['authoredAt']?_0x17d9ae-0x1:_0x17d9ae:_0x17d9ae-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x35ff3a={'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'],_0x35ff3a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x35ff3a));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x268aa2){const _0x31463f=this['commentViews']['remove'](_0x268aa2['id']);this['stopListening'](_0x31463f),_0x31463f['isEditMode']&&this['_updateHasDirtyComment'](),_0x31463f['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x7428ff=>_0x7428ff['isEditMode']);}['_rearrangeCollapse'](){const _0x12cb33=function(_0x1ca8d3){const _0x53cdec=new _0x3c8425();for(const _0x1a5ea3 of _0x1ca8d3)_0x53cdec['add'](_0x1a5ea3);return _0x53cdec;}(this['commentViews']),_0x41a493=this['_collapsedCommentsView']['count'];for(let _0x47f002=0x1;_0x47f002<=_0x41a493;_0x47f002++)_0x12cb33['remove'](0x1);for(const _0x376358 of _0x12cb33)_0x376358['collapse']();_0x41a493>0x0&&_0x12cb33['add'](this['_collapsedCommentsView'],0x1),ns(_0x340879(Array['from'](this['visibleViews']),Array['from'](_0x12cb33)),this['visibleViews'],_0x12cb33);}['_rearrangeExpand'](){ns(_0x340879(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1c6fea of this['visibleViews'])_0x1c6fea['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x1bcd17=>{this['focusTracker']['add'](_0x1bcd17['element']),this['keystrokes']['listenTo'](_0x1bcd17['element']);}),this['commentViews']['on']('change',(_0x331c38,_0x227660)=>{for(const _0x4afcf2 of _0x227660['removed'])this['focusTracker']['remove'](_0x4afcf2['element']),this['keystrokes']['stopListening'](_0x4afcf2['element']);for(const _0x1222d6 of Array['from'](_0x227660['added'])['reverse']())this['focusTracker']['add'](_0x1222d6['element']),this['keystrokes']['listenTo'](_0x1222d6['element']);});}}function ns(_0xd2b50a,_0x2c30bd,_0x267acb){let _0x246327=0x0;for(const _0x32fa2b of _0xd2b50a)switch(_0x32fa2b){case'insert':_0x2c30bd['add'](_0x267acb['get'](_0x246327),_0x246327),_0x246327++;break;case'delete':_0x2c30bd['remove'](_0x246327);break;case'equal':_0x246327++;}}class oe extends kt{constructor(_0x43f154){super(_0x43f154);const _0x1e7e54=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1e7e54['to']('contextValue',_0x451aa9=>N(_0x43f154,'THREAD_CONTEXT_LABEL',_0x451aa9)),'tabindex':-0x1},'children':[{'text':_0x1e7e54['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1b7bd9,_0x5a4d3a){super(_0x1b7bd9);const _0x50a429=this['bindTemplate'];this['_model']=_0x5a4d3a,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x2070b8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2a7d1c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x88c955=>!!_0x88c955),this['bind']('contextValue')['to'](this['_model'],'context',_0x4b4624=>_0x4b4624&&_0x4b4624['value']?this['_trimContextValue'](_0x4b4624['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',_0x50a429['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 _0x137a82=new _0x52b512(this['locale']);return _0x137a82['label']=N(this['locale'],'Reopen'),_0x137a82['tooltip']=N(this['locale'],'Reopen'),_0x137a82['icon']=_0x4eb55b,_0x137a82['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x28b171=>!_0x28b171),_0x137a82['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3a5bd9,_0x4d28ec)=>_0x3a5bd9&&_0x4d28ec),_0x137a82['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x137a82;}['_trimContextValue'](_0xbcea4b){if(_0xbcea4b['length']<0x96)return _0xbcea4b;const _0x34a097=_0xbcea4b['lastIndexOf']('\x20',0x93);return _0xbcea4b['substring'](0x0,_0x34a097>-0x1?_0x34a097:0x93)+'...';}['_attachContextActions'](){const _0x454961=this['element']['querySelector']('.ck-context'),_0x4b557b=_0x454961['querySelector']('.ck-context__value');this['listenTo'](_0x454961,'mouseenter',()=>{_0x4b557b['offsetWidth']<_0x4b557b['scrollWidth']&&_0x454961['classList']['add']('overlay');}),this['listenTo'](_0x454961,'mouseleave',()=>{_0x454961['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5791d7 of this['focusables'])this['focusTracker']['add'](_0x5791d7['element']),this['keystrokes']['listenTo'](_0x5791d7['element']);}['_createContextView'](){const _0x1a5e71=new oe(this['locale']);return _0x1a5e71['bind']('contextValue')['to'](this),_0x1a5e71;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2783c5,_0x1a9b8c,_0x4886cc,_0xfa9379){super(_0x2783c5),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x1a9b8c,this['_localUser']=_0x4886cc,this['_config']=_0xfa9379,this['commentThreadHeaderView']=new Yt(_0x2783c5,_0x1a9b8c),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x2783c5,N(_0x2783c5,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2783c5,_0x1a9b8c,Object['assign']({'CommentView':this['_config']['CommentView']},_0xfa9379)),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',(_0x4bde17,_0x4c671f)=>_0x4bde17||!!_0x4c671f),this['bind']('isUnlinked')['to'](_0x1a9b8c,'unlinkedAt',_0xc0c1fe=>!!_0xc0c1fe),this['bind']('ariaLabel')['to'](this,'length',_0x5eb08d=>{const _0x525dce=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x5eb08d,_0x525dce]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x2070b8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2a7d1c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xeb248b=>_0xeb248b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0xf6d0ae=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x24ffd4=_0xf6d0ae['commentInputView'];return _0xf6d0ae['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x24ffd4,'value',(_0xd9277f,_0x12f200,_0x5b7c7c,_0x29055c,_0x38cb96)=>!!_0x38cb96||!!_0x29055c&&_0x5b7c7c&&!_0x12f200||_0xd9277f&&_0x5b7c7c&&!_0x12f200),_0x24ffd4['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5b3922,_0x287d98,_0x4ed0fc)=>{let _0x3292f4;return _0x3292f4=_0x4ed0fc&&_0x287d98?'Reply\x20to\x20reopen\x20discussion...':_0x5b3922?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x3292f4);}),_0x24ffd4['bind']('submitLabel')['to'](this,'length',_0x51daf9=>N(this['locale'],_0x51daf9?'Reply':'Comment')),_0x24ffd4['on']('submit',(_0x5a3624,_0x60ab9)=>{this['fire']('addComment',_0x60ab9),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x24ffd4['on']('cancel',()=>{this['focus']();}),_0x24ffd4['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x24ffd4['on']('cancel',_0x2f015d=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x2f015d['stop']());}),this['on']('change:isActive',(_0x54b49b,_0x30f744,_0x1e5065)=>{_0x1e5065||this['length']||_0x24ffd4['value']||this['fire']('removeCommentThread');}),_0xf6d0ae;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x57589f,_0x53094,_0x1258c8,_0x49cb6c){super(_0x57589f,_0x53094,_0x1258c8,_0x49cb6c),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x57589f,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x264185,_0x40483d,_0x248192)=>{_0x248192||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x56296d,_0x38336e,_0x1cb6a6)=>{_0x1cb6a6&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x253dbd=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x253dbd['if']('isActive','ck-thread--active'),_0x253dbd['if']('isUnlinked','ck-thread--unlinked'),_0x253dbd['if']('isConfirm','ck-thread--remove-confirmation'),_0x253dbd['to']('actionIndicator',_0x4ec39d=>_0x4ec39d?'ck-thread--'+_0x4ec39d:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x253dbd['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 _0x57d43c of this['commentsListView']['commentViews'])_0x57d43c['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x96dad5}=this,_0x726f35=this['commentsListView']['commentViews']['get'](0x0);_0x726f35===this['_boundFirstCommentView']||_0x726f35['isSystemComment']||(this['_boundFirstCommentView']=_0x726f35,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x726f35,'actionIndicator',_0x50f74d=>'remove'===_0x50f74d?'remove':null),_0x726f35['placeholder']=N(_0x96dad5,'Write\x20a\x20comment...'),_0x726f35['removeButton']['on']('execute',_0x2f47e0=>{_0x2f47e0['stop'](),this['showConfirm'](N(_0x96dad5,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x726f35['focus']();}),_0x726f35['actionBar']['add'](this['resolveButton'],0x0),_0x726f35['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x326262=new _0x3ff6e6(this['locale']);return _0x326262['label']=N(this['locale'],'Resolve'),_0x326262['tooltip']=N(this['locale'],'Resolve'),_0x326262['icon']=_0x137fdd,_0x326262['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x326262['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xaaa416=>!_0xaaa416),_0x326262['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2f60f4,_0x56bc17)=>_0x2f60f4&&!_0x56bc17),_0x326262['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x326262;}['_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 es extends kt{constructor(_0x7e59a4){super(_0x7e59a4),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x248294,_0x20bcfb,_0x597563)=>{this['element']['innerHTML']=_0x597563;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4590fb,_0x4a2728,_0x148264){super(_0x4590fb),this['_model']=_0x4a2728,this['_config']=_0x148264,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x4a2728,'content',_0x4a2728,'authoredAt',(_0x4f05b6,_0x186e19)=>N(_0x4590fb,'COMMENT_ARIA_LABEL',[_0x4a2728['author']['name'],_0x148264['formatDateTime'](_0x186e19),new DOMParser()['parseFromString'](_0x4f05b6,'text/html')['body']['textContent'],_0x4a2728['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x4590fb,N(_0x4590fb,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x20b7d7(),this['focusTracker']=new _0x2070b8(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2a7d1c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x49e21c=>_0x49e21c['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 _0x2c71ce=new es(this['locale']);return _0x2c71ce['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x154983,_0x55453d)=>_0x55453d?_0x34f18f(_0x154983,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x154983),_0x2c71ce;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1567e1=new os(this['locale'],this['_config']['editorConfig']);return _0x1567e1['value']=this['_model']['content'],_0x1567e1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1567e1['submitLabel']=N(this['locale'],'Save'),_0x1567e1['on']('submit',(_0x592e50,_0x1b4611)=>{this['fire']('updateComment',this['_model']['id'],_0x1b4611),this['switchToDisplayMode'](),this['focus']();}),_0x1567e1['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1567e1['once']('editorReady',()=>{_0x1567e1['focus']();}),_0x1567e1['createEditor'](),_0x1567e1['delegate']('editorReady')['to'](this),_0x1567e1['delegate']('editorDestroyed')['to'](this),_0x1567e1;}['_setupKeyboardNavigation'](){const _0x411bca=this['element'];this['keystrokes']['listenTo'](_0x411bca);for(const _0x1f0e3b of this['focusables'])this['focusTracker']['add'](_0x1f0e3b['element']),this['keystrokes']['listenTo'](_0x1f0e3b['element']);this['focusables']['on']('change',(_0x90abef,_0x4155d2)=>{for(const _0x577eeb of _0x4155d2['removed'])this['focusTracker']['remove'](_0x577eeb['element']),this['keystrokes']['stopListening'](_0x577eeb['element']);for(const _0x320a68 of _0x4155d2['added'])this['focusTracker']['add'](_0x320a68['element']),this['keystrokes']['listenTo'](_0x320a68['element']);}),this['keystrokes']['set']('enter',(_0x543a37,_0x38e1f3)=>{_0x411bca===_0x543a37['target']&&(this['focusCycler']['focusFirst'](),_0x38e1f3());}),this['keystrokes']['set']('esc',(_0x16ac00,_0x195445)=>{_0x411bca!==_0x16ac00['target']&&(this['focus'](),_0x195445());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x105389,_0x8f840e,_0x4519a6){super(_0x105389,_0x8f840e,_0x4519a6),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x105389,'Reply...')),this['bind']('authoredAt')['to'](_0x8f840e),this['bind']('resolvedAt')['to'](_0x8f840e),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 _0x1890da(_0x105389,_0x8f840e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x8f840e,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5b5b86=this['bindTemplate'],_0x183c26=[{'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':_0x5b5b86['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5b5b86['to']('authoredAt',_0x2b7add=>this['_config']['formatDateTime'](_0x2b7add))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x5b5b86['if']('isEditMode','ck-comment__actions--hidden'),_0x5b5b86['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']&&_0x183c26['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5b5b86['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x5b5b86['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x5b5b86['if']('isEditMode','ck-comment--edit'),_0x5b5b86['if']('isSystemComment','ck-comment--info'),_0x5b5b86['to']('actionIndicator',_0x515289=>_0x515289?'ck-comment--'+_0x515289:'')],'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':_0x183c26}]}]};}['_createEditButton'](){const _0x1681f2=new _0x52b512(this['locale']);return _0x1681f2['label']=N(this['locale'],'Edit'),_0x1681f2['icon']=_0x3dbe32,_0x1681f2['withText']=!0x0,_0x1681f2['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1681f2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x239a2f=>!_0x239a2f),_0x1681f2['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1681f2['on']('execute',()=>this['switchToEditMode']()),_0x1681f2;}['_createRemoveButton'](){const _0x23dba9=new _0x52b512(this['locale']);return _0x23dba9['label']=N(this['locale'],'Remove'),_0x23dba9['icon']=_0x3acfc0,_0x23dba9['withText']=!0x0,_0x23dba9['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x23dba9['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x7c6843=>!_0x7c6843),_0x23dba9['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x23dba9['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x23dba9;}['_createDropdown'](){const _0x2f7adc=_0x5cdcac(this['locale'],_0xc262ae),_0x2741fb=_0x2f7adc['panelView']['children'],_0x47f762=new _0x353f83(this['locale']),_0x3c7a22=_0x2f7adc['bindTemplate'];_0x5ce54f(_0x2f7adc,()=>this['items']['find'](_0x27a462=>_0x27a462['isVisible'])),_0x2f7adc['extendTemplate']({'attributes':{'class':[_0x3c7a22['if']('isVisible','ck-hidden',_0x5ecb13=>!_0x5ecb13)]}});const _0x389e08=(_0x4eeaf1,_0xb839a1=-0x1)=>{const _0x48af2b=new _0x22f455(this['locale']);_0x48af2b['children']['add'](_0x4eeaf1);const _0x2d367d=_0xb839a1>-0x1?_0xb839a1:_0x47f762['items']['length'];_0x47f762['items']['add'](_0x48af2b,_0x2d367d);const _0x400f9e=Array['from'](this['items']);_0x2f7adc['unbind']('isEnabled','isVisible'),_0x2f7adc['bind']('isEnabled')['toMany'](_0x400f9e,'isEnabled',(..._0x4fe791)=>_0x4fe791['some'](_0x2ff0c1=>_0x2ff0c1)),_0x2f7adc['bind']('isVisible')['toMany'](_0x400f9e,'isVisible',(..._0x1a806e)=>_0x1a806e['some'](_0x8a2ed6=>_0x8a2ed6));};_0x2f7adc['panelPosition']='sw',_0x2f7adc['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x46270e});for(const _0x4daa57 of this['items'])_0x389e08(_0x4daa57);return _0x2741fb['add'](_0x47f762),_0x2f7adc['listenTo'](this['items'],'add',(_0x1cd32e,_0x480178,_0x44deee)=>{_0x389e08(_0x480178,_0x44deee);}),_0x2f7adc['listenTo'](this['items'],'remove',(_0x1a5245,_0x1a1423,_0x1a318d)=>{_0x47f762['items']['remove'](_0x1a318d);}),_0x2f7adc;}['_attachActions'](_0xbf96e9,_0x562f16){const _0x58588d=_0xbf96e9&&_0xbf96e9['element'];_0x58588d&&(this['listenTo'](_0x58588d,'mouseenter',()=>this['actionIndicator']=_0x562f16),this['listenTo'](_0x58588d,'focus',()=>this['actionIndicator']=_0x562f16),this['listenTo'](_0x58588d,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x58588d,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x5924ee=super['_createCommentInputView']();return _0x5924ee['bind']('placeholder')['to'](this),_0x5924ee;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x45b827){const _0x37e6b8=Dt(_0x45b827,0x1e),_0x58bfc6=new MutationObserver(_0x3a47cb=>{for(const _0x20ae6b of _0x3a47cb)('attributes'==_0x20ae6b['type']&&'class'==_0x20ae6b['attributeName']||'childList'==_0x20ae6b['type']||'characterData'==_0x20ae6b['type'])&&_0x37e6b8();});return{'attach'(_0x2e1e29){_0x58bfc6['observe'](_0x2e1e29,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x58bfc6['disconnect'](),_0x37e6b8['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x2cc9d3,_0x2600e5){super(_0x2cc9d3),this['id']=_0x17bd5b(),this['focusTracker']=new _0x2070b8(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x3f4c7d,_0x5cded9)=>this['fire']('Esc',_0x5cded9)),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'](_0x2600e5),this['mainView']=_0x2600e5;const _0x1490be=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x1490be['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 _0x7abcae=this['element']['clientHeight'];_0x7abcae&&(this['height']=_0x7abcae);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x2f2a56(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0xdf716d,target:_0x12c71d,type:_0x19389e,isVisible:_0x3d07ad=!0x0}){super(),this['view']=_0xdf716d,this['view']['element']||this['view']['render'](),this['_type']=_0x19389e,this['_target']=_0x12c71d,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3c8425([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x28b294,_0x58c36c)=>{this['view']['focusTracker']['add'](_0x58c36c);}),this['focusableElements']['on']('remove',(_0x2b6459,_0x2b3434)=>{this['view']['focusTracker']['remove'](_0x2b3434);}),this['set']('isVisible',_0x3d07ad);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3814e5=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x3814e5),_0x3814e5;}get['targetRect'](){const _0x6fd0bd=this['target'];if(null===_0x6fd0bd)return null;if(_0x6fd0bd instanceof _0x3e90cd)return _0x6fd0bd;const _0x41f67e=_0x6fd0bd['filter'](_0x5a31b3=>function(_0x5135b6){const _0x58a66e=_0x5135b6['offsetParent'];if(_0x58a66e)return!0x0;const _0x4ef429=_0x5135b6['getClientRects']()['item'](0x0);return!!_0x4ef429;}(_0x5a31b3));return 0x0===_0x41f67e['length']?null:new _0x3e90cd(_0x41f67e[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x424bc6){this['view']['isActive']=_0x424bc6,this['view']['mainView']['isActive']=_0x424bc6;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x164685){if(!(null===_0x164685||_0x164685 instanceof _0x3e90cd||Array['isArray'](_0x164685)&&_0x164685['every'](_0x5d0554=>fi(_0x5d0554))))throw new _0xb7f752('annotation-invalid-target',null,{'target':_0x164685});}['_getNormalizedTarget'](){const _0x40b54d='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x40b54d)?[_0x40b54d]:_0x40b54d;}}function fi(_0x41a2c6){return null!==_0x41a2c6&&'object'==typeof _0x41a2c6&&'nodeType'in _0x41a2c6&&0x1===_0x41a2c6['nodeType'];}class S extends _0x3c8425{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0xe753ac=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x2070b8(),this['_focusTracker']['on']('change:isFocused',(_0xeaaefe,_0xa2a37b,_0x51435e)=>{_0x51435e||this['fire']('blur');});for(const _0x568a5f of _0xe753ac)this['add'](_0x568a5f);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x41ea17){if(this['has'](_0x41ea17))throw new _0xb7f752('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x41ea17['innerView'],_0x41ea17),this['_viewToAnnotation']['set'](_0x41ea17['view'],_0x41ea17);for(const _0x6dbfe4 of _0x41ea17['focusableElements'])this['_focusTracker']['add'](_0x6dbfe4);this['listenTo'](_0x41ea17['focusableElements'],'add',(_0x450d11,_0x1f3fa8)=>{this['_focusTracker']['add'](_0x1f3fa8);}),this['listenTo'](_0x41ea17['focusableElements'],'remove',(_0x445103,_0x34b099)=>{this['_focusTracker']['remove'](_0x34b099);}),this['listenTo'](_0x41ea17['view']['focusTracker'],'change:isFocused',(_0x404372,_0x454d14,_0x1cefae)=>{_0x1cefae&&this['fire']('focus',_0x41ea17);}),_0x41ea17['updateTargetRect']();const _0x4d37ed=this['_getOrderInContent'](_0x41ea17['view']['targetRect']);return super['add'](_0x41ea17,_0x4d37ed);}['remove'](_0x28b210){if(!this['has'](_0x28b210))throw new _0xb7f752('annotationcollection-not-existing-item',null);this['stopListening'](_0x28b210['view']['focusTracker']),this['stopListening'](_0x28b210['focusableElements']);for(const _0x3bd565 of _0x28b210['focusableElements'])this['_focusTracker']['remove'](_0x3bd565);return this['_viewToAnnotation']['delete'](_0x28b210['view']),this['_innerViewToAnnotation']['delete'](_0x28b210['innerView']),super['remove'](_0x28b210);}['getByInnerView'](_0x266020){return this['_innerViewToAnnotation']['get'](_0x266020);}['getByView'](_0x4822b2){return this['_viewToAnnotation']['get'](_0x4822b2);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x577817 of this)_0x577817['updateTargetRect']();this['_sort']();}['_sort'](){const _0x1e28b2=Array['from'](this)['sort']((_0x39bb92,_0x28542d)=>w(_0x39bb92['view']['targetRect'],_0x28542d['view']['targetRect']));for(let _0x1a9ee2=_0x1e28b2['length']-0x1;_0x1a9ee2>0x0;_0x1a9ee2--){const _0x426020=_0x1e28b2[_0x1a9ee2];_0x1a9ee2!==this['getIndex'](_0x426020)&&(this['remove'](_0x426020),this['add'](_0x426020));}}['_getOrderInContent'](_0x45d755){let _0x567cc3=0x0;if(!_0x45d755)return this['length'];for(const _0x567639 of this){const _0x2879f0=_0x567639['view']['targetRect'];if(_0x2879f0){if(w(_0x45d755,_0x2879f0)<0x0)return _0x567cc3;_0x567cc3++;}}return _0x567cc3;}}function v({source:_0x357b30,target:_0x403724,filter:_0x415850}){for(const _0xfbc212 of _0x357b30)_0x415850(_0xfbc212)&&_0x403724['add'](_0xfbc212);_0x403724['listenTo'](_0x357b30,'add',(_0x536452,_0x4de14b)=>{_0x415850(_0x4de14b)&&_0x403724['add'](_0x4de14b);}),_0x403724['listenTo'](_0x357b30,'remove',(_0x2549e8,_0x6b6d6a)=>{_0x403724['has'](_0x6b6d6a)&&_0x403724['remove'](_0x6b6d6a);});}function w(_0x5e9817,_0x115ce2){if(null===_0x5e9817&&null===_0x115ce2)return 0x0;if(null===_0x5e9817)return-0x1;if(null===_0x115ce2)return 0x1;const _0x4adad5=_0x5e9817['top']-_0x115ce2['top'];return 0x0==_0x4adad5?_0x5e9817['left']-_0x115ce2['left']:_0x4adad5;}class y extends _0x6c42d0{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2807c7){if(super(_0x2807c7),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2807c7 instanceof _0x2e71ba){const _0x26aa92=_0x2807c7['locale'];_0x2807c7['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x26aa92,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x26aa92,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x26aa92,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x26aa92,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x26aa92,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x26aa92,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x26aa92,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x51ce98){this['collection']['add'](_0x51ce98);}['remove'](_0x52d31d){this['collection']['remove'](_0x52d31d),_0x52d31d['destroy']();}['refreshVisibility'](){for(const _0x1c4df2 of this['collection'])_0x1c4df2['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x4e3fa0){return this['collection']['getByInnerView'](_0x4e3fa0);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0xde9ef2 of this['collection'])_0xde9ef2['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x20733e){this['fire']('_activateAnnotation',_0x20733e);}['createAnnotation'](_0x1dc0da){return new T(_0x1dc0da);}['createAnnotationView'](_0x1a1c45,_0x1782d8){return new E(_0x1a1c45,_0x1782d8);}['_addActiveAnnotation'](_0x2fe885){const _0x362c6b=new Set(this['activeAnnotations']);_0x362c6b['add'](_0x2fe885),this['activeAnnotations']=_0x362c6b;}['_removeActiveAnnotation'](_0x44822a){const _0x362920=new Set(this['activeAnnotations']);_0x362920['delete'](_0x44822a),this['activeAnnotations']=_0x362920;}['_bindAnnotationsToVisibleAnnotations'](){const _0x361f0b=this['collection'],_0x56b1e3=this['_visibleAnnotations'];function _0x1bae0c(_0x196579){const _0x14b86b=_0x196579['source'];_0x14b86b['isVisible']&&!_0x56b1e3['has'](_0x14b86b)?_0x56b1e3['add'](_0x14b86b):!_0x14b86b['isVisible']&&_0x56b1e3['has'](_0x14b86b)&&_0x56b1e3['remove'](_0x14b86b),_0x14b86b['view']['focusTracker']['remove'](_0x14b86b['view']['element']),_0x14b86b['view']['focusTracker']['add'](_0x14b86b['view']['element']);}this['listenTo'](_0x361f0b,'add',(_0xfd5178,_0x5d3f57)=>{_0x5d3f57['isVisible']&&_0x56b1e3['add'](_0x5d3f57),this['listenTo'](_0x5d3f57,'change:isVisible',_0x1bae0c);}),this['listenTo'](_0x361f0b,'remove',(_0x51e1f2,_0x279479)=>{_0x56b1e3['has'](_0x279479)&&_0x56b1e3['remove'](_0x279479),this['stopListening'](_0x279479,'change:isVisible',_0x1bae0c);});}['_setupEnterAnnotationKeystroke'](){const _0x1cf7e7=_0x5920ba=>{_0x5920ba['on']('ready',()=>{_0x5920ba['keystrokes']['set'](_0x492559,(_0x1786b5,_0x485855)=>{const _0x4f7d6b=_0x318935(this['activeAnnotations']['values']());_0x4f7d6b&&(_0x4f7d6b['view']['focus'](),_0x485855());});});};this['context']instanceof _0x2e71ba?_0x1cf7e7(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x276c49,_0x272faa)=>{_0x1cf7e7(_0x272faa);});}['_setupEscapeAnnotationHandling'](){const _0x44289a=_0xdb395a=>{const _0x28a2b2=_0xdb395a['source'],_0x296304=[];let _0x3f9356;if(Array['isArray'](_0x28a2b2['target'])){_0x3f9356=_0x28a2b2['target'][0x0],this['context']instanceof _0x2e71ba?_0x296304['push'](this['context']):this['context']['editors']&&_0x296304['push'](...this['context']['editors']);for(const _0xa2aa75 of _0x296304)for(const _0x4886a4 of _0xa2aa75['editing']['view']['domRoots']['values']())if(_0x4886a4['contains'](_0x3f9356))return void _0xa2aa75['editing']['view']['focus']();_0x3f9356['focus']();}};this['listenTo'](this['collection'],'add',(_0xed2ede,_0x14635d)=>{this['listenTo'](_0x14635d,'escape',_0x44289a,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x4414e7,_0x424107)=>{this['stopListening'](_0x424107,'escape',_0x44289a);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x6c42d0{['_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(_0x1ef2e1){super(_0x1ef2e1),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2d289c=this['context']['config'];_0x2d289c['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2d289c['define']('comments.maxThreadTotalWeight',0x1f4),_0x2d289c['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2d289c['define']('comments.CommentThreadView',gt),_0x2d289c['define']('comments.CommentView',Tt),_0x2d289c['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x11805a=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x38a766,_0x54634c)=>this['_addCommentThread'](_0x54634c)),this['on']('submitCommentThread',(_0x298a70,_0x385732)=>this['_submitCommentThread'](_0x385732)),this['on']('resolveCommentThread',(_0x33e85d,_0x166d31)=>this['_resolveCommentThread'](_0x166d31)),this['on']('resolveCommentThread',(_0x12ed8f,_0x3e1a13)=>this['_updateActiveAnnotation'](_0x3e1a13),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x2b6e33,_0x36df2a)=>this['_reopenCommentThread'](_0x36df2a)),this['on']('reopenCommentThread',(_0x400c80,_0x45c664)=>this['_updateActiveAnnotation'](_0x45c664),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x5a4d1a,_0x33eeb1)=>this['_removeCommentThread'](_0x33eeb1)),this['on']('updateCommentThread',(_0x5bee1d,_0x3df071)=>this['_updateCommentThread'](_0x3df071)),this['on']('updateCommentThread',(_0xe0d7f2,_0x2c1fc1)=>this['_updateActiveAnnotation'](_0x2c1fc1),{'priority':'lowest'}),this['on']('addComment',(_0x21baf7,_0xd430dc)=>this['_addComment'](_0xd430dc)),this['on']('updateComment',(_0x388a01,_0x129731)=>this['_updateComment'](_0x129731)),this['on']('removeComment',(_0x57b1eb,_0xd797de)=>this['_removeComment'](_0xd797de)),this['on']('addComment',(_0x1793b5,{threadId:_0x36aaec,isFromAdapter:_0x444f1d})=>{if(_0x444f1d)return;const _0x442902=this['getCommentThread'](_0x36aaec),_0xcafa02=_0x442902&&this['_threadToController']['get'](_0x442902);_0xcafa02&&_0xcafa02['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x11805a,'change:activeAnnotations',(_0x63b6a7,_0xd9765a,_0x3ae964)=>{const _0x5bb0a7=Array['from'](_0x3ae964)['map'](_0x5c46a4=>this['_viewToController']['get'](_0x5c46a4['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5bb0a7?_0x5bb0a7['model']:null;});}set['adapter'](_0x414a4a){if(this['_adapter'])throw new _0xb7f752('commentsrepository-adapter-already-set');this['_adapter']=_0x414a4a;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x3ef977=_t,threadId:_0x3fafaf=_0x17bd5b(),comments:_0x5bb903=[],unlinkedAt:_0x300df8=null,resolvedAt:_0x1c7c4b=null,resolvedBy:_0x145cd9=null,target:_0x508d74=null,context:_0x269efb=null,attributes:_0x5bb70c={},isResolvable:_0x5a6499=!0x0,isSubmitted:_0x2e2c33=!0x1,isFromAdapter:_0x441fad=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x3ef977),{'channelId':_0x3ef977,'threadId':_0x3fafaf,'comments':_0x5bb903,'unlinkedAt':_0x300df8,'resolvedAt':_0x1c7c4b,'resolvedBy':_0x145cd9,'target':_0x508d74,'context':_0x269efb,'attributes':_0x5bb70c,'isFromAdapter':_0x441fad,'isResolvable':_0x5a6499,'isSubmitted':_0x2e2c33}),this['getCommentThread'](_0x3fafaf);}['openNewCommentThread']({channelId:_0x41f1d9=_t,threadId:_0x3126de=_0x17bd5b(),target:_0x25f069,context:_0x30e90d=null,isResolvable:_0x7f30dc=!0x0}){if(this['_readOnlyChannels']['has'](_0x41f1d9)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x25f069)throw new _0xb7f752('commentsrepository-missing-target');const _0x4c60ee=this['addCommentThread']({'channelId':_0x41f1d9,'threadId':_0x3126de,'target':_0x25f069,'context':_0x30e90d,'isResolvable':_0x7f30dc});if(!_0x4c60ee)return null;const _0x4c9af9=this['_threadToController']['get'](_0x4c60ee),_0x5f235c=_0x4c9af9['view']['commentThreadInputView']['commentInputView'],_0x162b85=this['context']['plugins']['get'](y),_0x49d89e=_0x162b85['getByInnerView'](_0x4c9af9['view']);return _0x162b85['activate'](_0x49d89e),_0x5f235c['once']('editorReady',()=>_0x5f235c['focus']()),_0x4c60ee;}['hasCommentThread'](_0x3b2a74){if('string'!=typeof _0x3b2a74)throw new _0xb7f752('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x3b2a74);}['updateCommentThread']({channelId:_0x2a653f=_t,threadId:_0x5bc7b0,context:_0x3401d5,unlinkedAt:_0x3db89c,attributes:_0x44a2e6,isFromAdapter:_0x18088b=!0x1}){return this['fire'](Nt('updateCommentThread',_0x2a653f),{'channelId':_0x2a653f,'threadId':_0x5bc7b0,'context':_0x3401d5,'unlinkedAt':_0x3db89c,'attributes':_0x44a2e6,'isFromAdapter':_0x18088b}),this['getCommentThread'](_0x5bc7b0);}['getCommentThread'](_0x4dcb22){if('string'!=typeof _0x4dcb22)throw new _0xb7f752('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x4dcb22);}['fetchCommentThread']({channelId:_0x12e3db,threadId:_0xd08e73}={}){const _0x3cebd8=this['getCommentThread'](_0xd08e73);if(_0x3cebd8)return Promise['resolve'](_0x3cebd8);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0xb7f752('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x12e3db,'threadId':_0xd08e73})['then'](_0x59b341=>this['hasCommentThread'](_0xd08e73)?this['getCommentThread'](_0xd08e73):_0x59b341?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x12e3db},_0x59b341)):void 0x0)['catch'](_0x206fbd=>{throw console['error'](_0x206fbd),new _0xb7f752('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1d3690,skipNotAttached:_0x48fbe3=!0x1,skipEmpty:_0x28ff26=!0x1,toJSON:_0x23a8db=!0x1}={}){const _0x231b33=[];for(const _0x1e6581 of this['_threads']['values']())_0x1d3690&&_0x1e6581['channelId']!==_0x1d3690||_0x48fbe3&&!_0x1e6581['isAttached']||_0x28ff26&&0x0===_0x1e6581['length']||_0x231b33['push'](_0x1e6581);return _0x23a8db?_0x231b33['map'](_0x1a1977=>_0x1a1977['toJSON']()):_0x231b33;}['getAnnotationForCommentThread'](_0x337030){const _0x20e589=this['_threadToController']['get'](_0x337030);if(!_0x20e589)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x20e589['view'])||null;}['getCommentThreadForAnnotation'](_0x30c71f){const _0x182759=this['_viewToController']['get'](_0x30c71f['innerView']);return _0x182759?_0x182759['model']:null;}['setActiveCommentThread'](_0x7c75e){const _0x53b2a2=this['context']['plugins']['get'](y);if(!_0x7c75e)return void(this['activeCommentThread']&&_0x53b2a2['deactivateAll']());const _0x9c6b5d=this['getCommentThread'](_0x7c75e);if(!_0x9c6b5d)throw new _0xb7f752('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x7c75e});if(!this['_threadToController']['has'](_0x9c6b5d))throw new _0xb7f752('commentsrepository-active-not-attached',null,{'threadId':_0x7c75e});const _0x3ca6f9=_0x53b2a2['getByInnerView'](this['_threadToController']['get'](_0x9c6b5d)['view']);_0x53b2a2['activate'](_0x3ca6f9);}['switchReadOnly'](_0x29ad93,_0x27446a){_0x29ad93?this['_readOnlyChannels']['add'](_0x27446a):this['_readOnlyChannels']['delete'](_0x27446a),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x4afab6){return this['_readOnlyChannels']['has'](_0x4afab6)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x1579f4,_0x4f01cf){return new vt(_0x1579f4,_0x4f01cf);}['setPermissions'](_0x35151d,_0x191e74=_t){this['_permissions']['set'](_0x191e74,_0x35151d),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x6670d9=_t){return this['_permissions']['has'](_0x6670d9)?this['_permissions']['get'](_0x6670d9):bt;}['_addCommentThread']({channelId:_0x35fad2,threadId:_0x348e2a,comments:_0x51aa0,unlinkedAt:_0x33b546,resolvedAt:_0x18985b,resolvedBy:_0x2c99ba,target:_0x4e67bd,context:_0x288eb2,attributes:_0x19d1c3,isFromAdapter:_0xfc961e,isResolvable:_0x31b8b7,isSubmitted:_0xd3ad15}){if('string'!=typeof _0x348e2a)throw new _0xb7f752('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x348e2a});if(this['hasCommentThread'](_0x348e2a))throw new _0xb7f752('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x348e2a});const _0x4d5b26=new pi(this,{'channelId':_0x35fad2,'id':_0x348e2a,'context':_0x288eb2,'attributes':_0x19d1c3,'unlinkedAt':_0x33b546,'resolvedAt':_0x18985b,'resolvedBy':_0x2c99ba?this['context']['plugins']['get'](it)['getUser'](_0x2c99ba):null,'isResolvable':_0x31b8b7,'isSubmitted':_0xd3ad15||_0xfc961e});this['_threads']['set'](_0x348e2a,_0x4d5b26);for(const _0x295a24 of _0x51aa0)_0x4d5b26['_add'](this['_createNewComment']({'threadId':_0x348e2a,..._0x295a24}));return _0x4e67bd&&_0x4d5b26['attachTo'](_0x4e67bd),_0xfc961e||!_0x4d5b26['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x35fad2,'threadId':_0x348e2a});}['_submitCommentThread']({channelId:_0x58a731,threadId:_0x12a4a7}){if(!this['hasCommentThread'](_0x12a4a7))throw new _0xb7f752('commentsrepository-missing-comment-thread',this);const _0x3c2049=this['getCommentThread'](_0x12a4a7);if(_0x3c2049['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x24aa4f,comments:_0x4aee0d,resolvedAt:_0x4e09c2,resolvedBy:_0x389ce0,context:_0x14376f,attributes:_0x45470f}=_0x3c2049,_0x31d0d4=this['context']['plugins']['get']('PendingActions'),_0x3c1380=_0x31d0d4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x58a731,'threadId':_0x24aa4f,'comments':_0x4aee0d['map'](_0x159310=>_0x159310['toJSON']()),'resolvedAt':_0x4e09c2,'resolvedBy':_0x389ce0?_0x389ce0['id']:_0x389ce0,'context':_0x14376f,'attributes':_0x45470f})['then'](({comments:_0x3c01d5})=>{_0x31d0d4['remove'](_0x3c1380);for(const _0x4838aa of _0x3c01d5)this['_updateComment']({'channelId':_0x58a731,'threadId':_0x12a4a7,'commentId':_0x4838aa['commentId'],'createdAt':_0x4838aa['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2603c8=>{throw console['error'](_0x2603c8),new _0xb7f752('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x556ebf,target:_0x8d9fd2}){const _0x23c25d=this['getCommentThread'](_0x556ebf);if(!_0x23c25d)throw new _0xb7f752('commentsrepository-attach-missing-comment-thread',this);const _0x1b5ffc=this['context']['plugins']['get']('PendingActions'),_0x52e444=this['context']['plugins']['get'](y),_0x432bed=this['_createCommentThreadView'](_0x23c25d),_0x3e74d7=new vt(_0x23c25d,_0x432bed);let _0x545c1f=null;_0x432bed['on']('change:isDirty',(_0x4ddcac,_0x34a469,_0x20b35e)=>{_0x20b35e?_0x545c1f=_0x1b5ffc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x545c1f&&(_0x1b5ffc['remove'](_0x545c1f),_0x545c1f=null);}),this['_threadToController']['set'](_0x23c25d,_0x3e74d7),this['_viewToController']['set'](_0x432bed,_0x3e74d7);const _0x16cf82=new E(this['context']['locale'],_0x432bed);_0x16cf82['bind']('length')['to'](_0x432bed),_0x16cf82['bind']('isDirty')['to'](_0x432bed,'isDirty',_0x432bed,'length',(_0x95f3f0,_0x151bd2)=>_0x95f3f0||!_0x151bd2),_0x16cf82['bind']('isActive')['to'](_0x432bed),_0x16cf82['type']='comment';const _0x5be337=new T({'view':_0x16cf82,'target':_0x8d9fd2,'type':'comment','isVisible':!_0x23c25d['archivedAt']&&!!('function'==typeof _0x8d9fd2?_0x8d9fd2():_0x8d9fd2)});return _0x432bed['on']('escape',()=>{_0x5be337['fire']('escape');}),this['_bindAnnotationToEditors'](_0x432bed,_0x5be337),_0x52e444['add'](_0x5be337),_0x5be337;}['_bindAnnotationToEditors'](_0x367933,_0x35f83d){this['listenTo'](_0x367933,'editorReady',(_0xcc6e58,_0x2252e1)=>{const _0x163e78=_0x2252e1['ui']['view']['body']['bodyCollectionContainer'];_0x35f83d['focusableElements']['add'](_0x163e78),this['context']instanceof _0x2e71ba&&this['context']['ui']['focusTracker']['add'](_0x163e78);},{'priority':'highest'}),this['listenTo'](_0x367933,'editorDestroyed',(_0x110d23,_0x4ff099)=>{const _0x596ae9=_0x4ff099['ui']['view']['body']['bodyCollectionContainer'];_0x35f83d['focusableElements']['has'](_0x596ae9)&&_0x35f83d['focusableElements']['remove'](_0x596ae9),this['context']instanceof _0x2e71ba&&this['context']['ui']['focusTracker']['remove'](_0x596ae9);});}['_unbindEditors'](_0x45ff34){this['stopListening'](_0x45ff34,'editorReady'),this['stopListening'](_0x45ff34,'editorDestroyed');}['_createCommentThreadView'](_0x55aa42){const _0x484283=this['context']['plugins']['get'](it),{config:_0x795d3e,locale:_0x3bf6d2}=this['context'],_0x2e8c25=pt(_0x795d3e['get']('locale'),_0x3bf6d2);return new(0x0,(_0x795d3e['get']('comments'))['CommentThreadView'])(_0x3bf6d2,_0x55aa42,_0x484283['me'],{'editorConfig':{..._0x795d3e['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x795d3e['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x795d3e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x795d3e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x795d3e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2e8c25,'CommentView':_0x795d3e['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3ac673,channelId:_0x349b4e,resolvedAt:_0x1020ae,resolvedBy:_0x3b9549,isFromAdapter:_0x3c22db}){if(!this['hasCommentThread'](_0x3ac673))throw new _0xb7f752('commentsrepository-missing-comment-thread',null,{'threadId':_0x3ac673});const _0x261e31=this['getCommentThread'](_0x3ac673);if(_0x261e31['isResolved'])throw new _0xb7f752('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3ac673});const _0x48bd1b=this['context']['plugins']['get'](it);if(_0x261e31['resolvedBy']=_0x48bd1b['getUser'](_0x3b9549),_0x261e31['resolvedAt']=_0x1020ae,_0x3c22db||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5aaa5d=this['context']['plugins']['get']('PendingActions'),_0x45e481=_0x5aaa5d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x349b4e,'threadId':_0x3ac673})['then'](({resolvedAt:_0x5da1e1,resolvedBy:_0x426f45})=>{_0x5aaa5d['remove'](_0x45e481),_0x261e31['resolvedBy']['id']!==_0x426f45&&(_0x261e31['resolvedBy']=_0x48bd1b['getUser'](_0x426f45)),_0x261e31['resolvedAt']=_0x5da1e1;})['catch'](_0x1262a0=>{throw console['error'](_0x1262a0),new _0xb7f752('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x402286,channelId:_0x2c5819,isFromAdapter:_0x408e97}){if(!this['hasCommentThread'](_0x402286))throw new _0xb7f752('commentsrepository-missing-comment-thread',null,{'threadId':_0x402286});const _0x385a4=this['getCommentThread'](_0x402286);if(!_0x385a4['isResolved'])throw new _0xb7f752('commentsrepository-reopen-comment-thread',null,{'threadId':_0x402286});if(_0x385a4['resolvedBy']=null,_0x385a4['resolvedAt']=null,_0x408e97||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x174d8d=this['context']['plugins']['get']('PendingActions'),_0x157e6f=_0x174d8d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x2c5819,'threadId':_0x402286})['then'](()=>_0x174d8d['remove'](_0x157e6f))['catch'](_0x2af9cc=>{throw console['error'](_0x2af9cc),new _0xb7f752('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x47e65f,isFromAdapter:_0x4378c6}){const _0x5baa74=this['getCommentThread'](_0x47e65f);if(!_0x5baa74)throw new _0xb7f752('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x47e65f),this['_threads']['delete'](_0x47e65f),!_0x5baa74['isSubmitted']||_0x4378c6||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x2c0b20=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2ecfa6}=_0x5baa74,_0x10548f=_0x2c0b20['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x2ecfa6,'threadId':_0x47e65f})['then'](()=>_0x2c0b20['remove'](_0x10548f))['catch'](_0x507f17=>{throw console['error'](_0x507f17),new _0xb7f752('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0xfc2187,unlinkedAt:_0x4efc5a,context:_0x195db2,attributes:_0x4ba6ce,isFromAdapter:_0x1fcdac}){if('string'!=typeof _0xfc2187)throw new _0xb7f752('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0xfc2187});if(!this['hasCommentThread'](_0xfc2187))throw new _0xb7f752('commentsrepository-missing-comment-thread',null,{'threadId':_0xfc2187});const _0x5b856c=this['getCommentThread'](_0xfc2187);let _0x17747a=!0x1;if(void 0x0!==_0x195db2&&_0x5b856c['context']!==_0x195db2&&(_0x5b856c['context']=_0x195db2,_0x17747a=!0x0),void 0x0!==_0x4efc5a&&_0x5b856c['unlinkedAt']!==_0x4efc5a&&(_0x5b856c['unlinkedAt']=_0x4efc5a,_0x17747a=!0x0),_0x4ba6ce&&!At(_0x4ba6ce,_0x5b856c['attributes'])&&(_0x5b856c['attributes']=_0x4ba6ce,_0x17747a=!0x0),!_0x17747a)return Promise['resolve']();if(!_0x5b856c['isSubmitted']||_0x1fcdac||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x374aa9=this['context']['plugins']['get']('PendingActions'),{channelId:_0x304090}=_0x5b856c,_0x4b6075=_0x374aa9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x304090,'threadId':_0xfc2187,'context':_0x195db2,'unlinkedAt':_0x4efc5a,'attributes':_0x4ba6ce})['then'](()=>_0x374aa9['remove'](_0x4b6075))['catch'](_0x50c7de=>{throw console['error'](_0x50c7de),new _0xb7f752('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x2138c7){const _0x2665ae=this['context']['plugins']['get'](y),_0x5651b6=this['getCommentThread'](_0x2138c7);if(_0x5651b6['_isAttached']=!0x1,this['_threadToController']['has'](_0x5651b6)){const _0x4ccbbd=this['_threadToController']['get'](_0x5651b6),_0x4dcf8e=_0x4ccbbd['view'],_0x35a166=_0x2665ae['getByInnerView'](_0x4dcf8e);this['_threadToController']['delete'](_0x5651b6),this['_viewToController']['delete'](_0x4dcf8e),_0x35a166&&_0x2665ae['remove'](_0x35a166),_0x4ccbbd['destroy'](),_0x4dcf8e['destroy']()['then'](()=>{this['_unbindEditors'](_0x4dcf8e);});}}['_updateActiveAnnotation']({threadId:_0x1853a1,resolvedAt:_0x7b0d4f,unlinkedAt:_0x455610}){const _0xfdd8eb=!!_0x7b0d4f,_0x4e0f4d=this['context']['plugins']['get'](y),_0x3d3eba=this['getCommentThread'](_0x1853a1);if(this['_threadToController']['has'](_0x3d3eba)){const _0x4db92a=this['_threadToController']['get'](_0x3d3eba)['view'],_0x60020=_0x4e0f4d['getByInnerView'](_0x4db92a);_0x60020&&(_0xfdd8eb&&_0x4e0f4d['_removeActiveAnnotation'](_0x60020),_0x455610?_0x60020['isVisible']=!0x1:_0x60020['refreshVisibility']());}}['_getExternalAuthor'](_0x1c1cfe){const _0x5cbe71=this['context']['plugins']['get'](it),_0x3b0c95=It('external:'+_0x1c1cfe),_0x5be1b9=_0x5cbe71['getUser'](_0x3b0c95);return _0x5be1b9||_0x5cbe71['addUser']({'id':_0x3b0c95,'name':_0x1c1cfe});}['_createNewComment']({threadId:_0x21e040,commentId:_0x38776d=_0x17bd5b(),content:_0x310779,authorId:_0x50eed7,createdAt:_0x2d1f2b,attributes:_0x50db9e}){if('string'!=typeof _0x38776d)throw new _0xb7f752('commentsrepository-invalid-commentid');if('string'!=typeof _0x50eed7)throw new _0xb7f752('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x310779||!_0x310779['trim']())throw new _0xb7f752('commentsrepository-invalid-comment-content');const _0x1fbabc=this['context']['plugins']['get'](it)['getUser'](_0x50eed7);if(!_0x1fbabc)throw new _0xb7f752('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x50eed7});let _0x298a2b=null,_0x1878e4=_0x2d1f2b;return _0x50db9e?.['@external']&&(_0x298a2b=this['_getExternalAuthor'](_0x50db9e['@external']['authorName']),_0x1878e4=new Date(_0x50db9e['@external']['createdAt'])),new wi(this,{'threadId':_0x21e040,'id':_0x38776d,'author':_0x298a2b||_0x1fbabc,'creator':_0x1fbabc,'content':_0x310779,'createdAt':_0x2d1f2b,'authoredAt':_0x1878e4,'attributes':_0x50db9e});}['_addComment'](_0x328e0d){let {threadId:_0x272c83,content:_0x557ec2,attributes:_0x258aed,isFromAdapter:_0x3ff5b8}=_0x328e0d;const _0x47edfe=this['getCommentThread'](_0x328e0d['threadId']);if(!_0x47edfe)throw new _0xb7f752('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x4e486d=this['_createNewComment'](_0x328e0d),{id:_0x5c4039}=_0x4e486d;if(_0x47edfe['_add'](_0x4e486d),_0x3ff5b8||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x47edfe['isSubmitted'])return Promise['resolve']();const _0x36b52d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x29d822}=_0x47edfe,_0x1c5251=_0x36b52d['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x258aed||(_0x258aed={}),this['adapter']['addComment']({'channelId':_0x29d822,'threadId':_0x272c83,'commentId':_0x5c4039,'content':_0x557ec2,'attributes':_0x258aed})['then'](_0x366650=>{_0x36b52d['remove'](_0x1c5251),_0x366650&&this['_updateComment']({'channelId':_0x29d822,'threadId':_0x272c83,'commentId':_0x5c4039,'createdAt':_0x366650['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4b1fe1=>{throw console['error'](_0x4b1fe1),new _0xb7f752('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x575b08,commentId:_0x4863d7,content:_0x46e42a,createdAt:_0x3f1f51,attributes:_0x7bd84c,isFromAdapter:_0x5451c1}){if(void 0x0!==_0x46e42a&&('string'!=typeof _0x46e42a||!_0x46e42a['trim']()['length']))throw new _0xb7f752('commentsrepository-update-comment-invalid-content');const _0x45f79e=this['getCommentThread'](_0x575b08),_0x1bfdc1=_0x45f79e['getComment'](_0x4863d7);if(!_0x1bfdc1)throw new _0xb7f752('commentsrepository-update-missing-comment',this);let _0x38f046=!0x1;if(_0x46e42a&&_0x46e42a!==_0x1bfdc1['content']&&(_0x1bfdc1['isEditable']||_0x5451c1)&&(_0x1bfdc1['content']=_0x46e42a,_0x38f046=!0x0),_0x3f1f51&&_0x3f1f51!==_0x1bfdc1['createdAt']&&(_0x1bfdc1['createdAt']=_0x3f1f51,_0x1bfdc1['attributes']&&_0x1bfdc1['attributes']['@external']||(_0x1bfdc1['authoredAt']=_0x3f1f51),_0x38f046=!0x0),_0x7bd84c&&!At(_0x7bd84c,_0x1bfdc1['attributes'])&&(_0x1bfdc1['attributes']=_0x7bd84c,_0x38f046=!0x0),!_0x38f046)return Promise['resolve']();if(_0x45f79e['fire']('commentUpdated'),_0x5451c1||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x639f5e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x13cc0c}=this['getCommentThread'](_0x1bfdc1['threadId']),_0x10b78e=_0x639f5e['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x13cc0c,'threadId':_0x575b08,'commentId':_0x4863d7,'content':_0x46e42a,'attributes':_0x7bd84c})['then'](()=>_0x639f5e['remove'](_0x10b78e))['catch'](_0xb78c02=>{throw console['error'](_0xb78c02),new _0xb7f752('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x107efc,commentId:_0x1fb62b,isFromAdapter:_0x314e0e}){const _0x14e5c6=this['getCommentThread'](_0x107efc),_0x2ef18b=_0x14e5c6['getComment'](_0x1fb62b);if(!_0x2ef18b)throw new _0xb7f752('commentsrepository-remove-missing-comment',this);if(_0x14e5c6['_remove'](_0x2ef18b),_0x314e0e||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0xc69f88=this['context']['plugins']['get']('PendingActions'),{channelId:_0x42d0e4}=_0x14e5c6,_0x4df09d=_0xc69f88['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x42d0e4,'threadId':_0x107efc,'commentId':_0x1fb62b})['then'](()=>_0xc69f88['remove'](_0x4df09d))['catch'](_0x56fea9=>{throw console['error'](_0x56fea9),new _0xb7f752('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x2f2a56(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x2b44c6,_0x1948b3){super();const _0x282b84=_0x1948b3['isResolvable'];this['channelId']=_0x1948b3['channelId'],this['id']=_0x1948b3['id'],this['comments']=new _0x3c8425(),this['_repository']=_0x2b44c6,this['_isAttached']=!0x1,this['_isSubmitted']=_0x1948b3['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x2b44c6,'_permissions',_0x2b44c6,'_readOnlyChannels',()=>_0x2b44c6['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x2b44c6,'_permissions',()=>_0x2b44c6['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x2b44c6,'_permissions',()=>{const _0x21ac50=_0x2b44c6['getPermissions'](this['channelId']);return _0x21ac50['write']||_0x21ac50['admin'];}),this['bind']('isResolvable')['to'](_0x2b44c6,'_permissions',()=>_0x282b84&&_0x2b44c6['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x1948b3['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x27369e,_0x2a6dc0)=>_0x27369e?_0x2a6dc0?_0x27369e<_0x2a6dc0?_0x27369e:_0x2a6dc0:_0x27369e:_0x2a6dc0),this['set']('unlinkedAt',_0x1948b3['unlinkedAt']||null),this['set']('resolvedAt',_0x1948b3['resolvedAt']||null),this['set']('resolvedBy',_0x1948b3['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x380a01=>!!_0x380a01),this['set']('attributes',_0x1948b3['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x5d4442,_0x256ecc)=>_0x5d4442+_0x256ecc['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x186998,id:_0x133326}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x186998),{'channelId':_0x186998,'threadId':_0x133326});}['setUnlinkedAt'](_0x4fc116){this['_update']({'unlinkedAt':_0x4fc116});}['resolve']({resolvedAt:_0x3b2c0b=new Date(),resolvedBy:_0x5b3f0f=null,isFromAdapter:_0x39ac29=!0x1}={}){const _0x52fa7a=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x599603,id:_0x4f7aa9}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x599603),{'channelId':_0x599603,'threadId':_0x4f7aa9,'resolvedAt':_0x3b2c0b,'resolvedBy':_0x5b3f0f||_0x52fa7a['id'],'isFromAdapter':_0x39ac29});}['reopen']({isFromAdapter:_0x8c3ef8=!0x1}={}){const {channelId:_0x186895,id:_0x4558af}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x186895),{'channelId':_0x186895,'threadId':_0x4558af,'isFromAdapter':_0x8c3ef8});}['setContext'](_0x2c8ef8){this['context']||this['_update']({'context':_0x2c8ef8});}['setAttribute'](_0x3ef513,_0x1f5684){const _0x413add=wt(this['attributes']);yt(_0x413add,_0x3ef513,_0x1f5684),this['_update']({'attributes':_0x413add});}['removeAttribute'](_0x23a869){const _0x467f00=wt(this['attributes']);Ct(_0x467f00,_0x23a869),this['_update']({'attributes':_0x467f00});}['remove']({isFromAdapter:_0x28d652=!0x1}={}){const {channelId:_0x38cd65,id:_0x51179c}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x38cd65),{'channelId':_0x38cd65,'threadId':_0x51179c,'isFromAdapter':_0x28d652});}['attachTo'](_0x29fecd){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x29fecd});}['addComment'](_0xb476e){const {channelId:_0x158623,id:_0x180763}=this;this['_repository']['fire'](Nt('addComment',_0x158623,_0x180763),Object['assign']({'channelId':_0x158623,'threadId':_0x180763},_0xb476e));}['getComment'](_0x1ade97){if('string'!=typeof _0x1ade97)throw new _0xb7f752('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x1ade97});return this['comments']['get'](_0x1ade97);}['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'](_0xf1abeb=>_0xf1abeb['toJSON']()),'attributes':this['attributes']};}['_add'](_0x54a4cf){return this['listenTo'](_0x54a4cf,'change:authoredAt',()=>{const _0x3dec2d=this['_findOptimalIndex'](_0x54a4cf),_0x47a4fc=this['comments'];_0x3dec2d-0x1!=_0x47a4fc['getIndex'](_0x54a4cf)&&_0x3dec2d+0x1!=_0x47a4fc['getIndex'](_0x54a4cf)&&(this['_remove'](_0x54a4cf),this['_add'](_0x54a4cf));}),this['comments']['add'](_0x54a4cf,this['_findOptimalIndex'](_0x54a4cf));}['_update'](_0x416f15){const {channelId:_0x1e89c7,id:_0x5e6988}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x1e89c7),{..._0x416f15,'channelId':_0x1e89c7,'threadId':_0x5e6988});}['_remove'](_0x4e97a4){return this['stopListening'](_0x4e97a4),_0x4e97a4['destroy'](),this['comments']['remove'](_0x4e97a4);}['_findOptimalIndex'](_0x11e023){const _0x1afb83=this['comments']['find'](_0x43caef=>new Date(_0x43caef['authoredAt'])['getTime']()>new Date(_0x11e023['authoredAt'])['getTime']());return _0x1afb83?this['comments']['getIndex'](_0x1afb83):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x2f2a56(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x17eeaa,_0x29c6e1){super();const _0x2e869c=_0x17eeaa['context']['plugins']['get'](it)['me'],_0x16dd94=_0x17eeaa['getCommentThread'](_0x29c6e1['threadId']),_0xc454cd=0x0===_0x16dd94['comments']['length'],_0x1c7aa4=_0x2e869c===_0x29c6e1['author'];this['id']=_0x29c6e1['id'],this['threadId']=_0x29c6e1['threadId'],this['author']=_0x29c6e1['author'],this['creator']=_0x29c6e1['creator'],this['isExternal']=Boolean(_0x29c6e1['attributes']&&_0x29c6e1['attributes']['@external']),this['set']('content',_0x29c6e1['content']),this['createdAt']=_0x29c6e1['createdAt']||new Date(),this['set']('authoredAt',_0x29c6e1['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x16dd94,'resolvedAt'),this['set']('attributes',_0x29c6e1['attributes']||{}),this['bind']('isEditable')['to'](_0x17eeaa,'_permissions',()=>{const _0x4077a4=_0x17eeaa['getPermissions'](_0x16dd94['channelId'])['write'],_0x14bc82=_0x17eeaa['getPermissions'](_0x16dd94['channelId'])['modifyAll'];return _0x1c7aa4&&_0x4077a4||!_0x1c7aa4&&_0x14bc82;}),this['bind']('isRemovable')['to'](_0x16dd94,'isRemovable',_0x17eeaa,'_permissions',_0x163c31=>{const _0x9fd4e2=_0x17eeaa['getPermissions'](_0x16dd94['channelId'])['write'],_0x48ae9b=_0x17eeaa['getPermissions'](_0x16dd94['channelId'])['modifyAll'];return _0x1c7aa4&&_0x9fd4e2||_0x163c31&&_0xc454cd||!_0x1c7aa4&&_0x48ae9b&&!_0xc454cd;}),this['bind']('isReadOnly')['to'](_0x16dd94,'isReadOnly'),this['_repository']=_0x17eeaa;}get['weight'](){return Math['max'](function(_0xb0a7f7){const _0x2daf1b=document['createElement']('div');return _0x2daf1b['innerHTML']=_0xb0a7f7,_0x2daf1b['textContent']['length'];}(this['content']),0xc8);}['update'](_0x378e21){const {threadId:_0xb384a8,id:_0x3a931f}=this;if(!this['_repository']['hasCommentThread'](_0xb384a8))throw new _0xb7f752('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x43d65f}=this['_repository']['getCommentThread'](_0xb384a8);this['_repository']['fire'](Nt('updateComment',_0x43d65f,_0xb384a8),{'channelId':_0x43d65f,'threadId':_0xb384a8,'commentId':_0x3a931f,..._0x378e21});}['setAttribute'](_0x4beddc,_0x2709ea){const _0x2160a4=wt(this['attributes']);yt(_0x2160a4,_0x4beddc,_0x2709ea),this['update']({'attributes':_0x2160a4});}['removeAttribute'](_0x16095e){const _0x525209=wt(this['attributes']);Ct(_0x525209,_0x16095e),this['update']({'attributes':_0x525209});}['remove'](_0x4c5d75={}){if(!_0x4c5d75['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x2df451,id:_0x2d6ff7}=this;if(!this['_repository']['hasCommentThread'](_0x2df451))throw new _0xb7f752('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1abf85}=this['_repository']['getCommentThread'](_0x2df451);this['_repository']['fire'](Nt('removeComment',_0x1abf85,_0x2df451),{'channelId':_0x1abf85,'threadId':_0x2df451,'commentId':_0x2d6ff7,..._0x4c5d75});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x5d18ba,..._0x3b1940){for(const _0x2cc113 of _0x3b1940)void 0x0!==_0x2cc113&&(_0x5d18ba+=':'+String(_0x2cc113));return _0x5d18ba;}class ot extends _0x3a2e74{constructor(_0x34886e){super(_0x34886e),this['set']('hasContent',!0x1);}['refresh'](){const _0x5ed1b1=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x421264 of _0x5ed1b1['getRanges']())if(this['_hasContent'](_0x421264))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x56e0e1=_0x17bd5b(),ranges:_0x4b7f1d,comment:_0x4e6814}={}){const _0x31bd9a=this['editor']['model'],_0x57ab2b=_0x4b7f1d??Array['from'](_0x31bd9a['document']['selection']['getRanges']()),_0x43a95d=[];for(const _0x54bb97 of _0x57ab2b)this['_hasContent'](_0x54bb97)&&_0x43a95d['push'](this['_trimToContent'](_0x54bb97));if(!_0x43a95d['length'])throw new _0xb7f752('addcommentthreadcommand-incorrect-ranges',null);_0x4e6814&&this['_createCommentThread'](_0x56e0e1,_0x4e6814),this['_createMarkersFromRanges'](_0x56e0e1,_0x43a95d,!!_0x4e6814);}['_createMarkersFromRanges'](_0x149286,_0x5bd795,_0x229a7d){this['editor']['model']['change'](_0x37f737=>{for(const _0x2cc52c of _0x5bd795){const _0x5609b6=_0x17bd5b()['substr'](0x1,0x5),_0x39570d='comment:'+_0x149286+':'+_0x5609b6;_0x37f737['addMarker'](_0x39570d,{'range':_0x2cc52c,'usingOperation':_0x229a7d,'affectsData':_0x229a7d});}});}['_createCommentThread'](_0x1241ee,_0x11e71d){const _0x1ca7a3=this['editor']['plugins']['get']('CommentsRepository'),_0x388f58=this['editor']['config']['get']('collaboration.channelId'),_0x1d2118=this['editor']['plugins']['get']('Users')['me'];if(!_0x1d2118)throw new _0xb7f752('addcommentthreadcommand-user-not-found',null);_0x1ca7a3['addCommentThread']({'threadId':_0x1241ee,'channelId':_0x388f58,'comments':[{'authorId':_0x1d2118['id'],'content':_0x11e71d,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x154189){for(const _0xbe704 of _0x154189['getItems']())if(this['_itemIsContent'](_0xbe704))return!0x0;return!0x1;}['_itemIsContent'](_0x51f47f){return _0x51f47f['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x51f47f)&&!_0x51f47f['is']('element','tableCell');}['_trimToContent'](_0x4eaf93){const _0x4b70ea=_0x5ad897=>!this['_itemIsContent'](_0x5ad897['item']),_0x4a921c=_0x4eaf93['start']['getLastMatchingPosition'](_0x4b70ea),_0x3e41c0=_0x4eaf93['end']['getLastMatchingPosition'](_0x4b70ea,{'direction':'backward'});return this['editor']['model']['createRange'](_0x4a921c,_0x3e41c0);}}class b extends _0x48bfeb{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7fc9d1){super(_0x7fc9d1),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x1780f5=this['editor'],_0xeee8a5=_0x1780f5['model']['document']['selection'],_0x422807=_0x1cef12(()=>this['refreshSelectedViews'](),0xa);_0xeee8a5['on']('change:range',(_0x2f6060,_0x12ffad)=>{_0x12ffad['directChange']&&(_0x422807['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x1780f5['editing']['view']['document'],'change:isFocused',(_0x5da0dd,_0x411158,_0x1cc437)=>{_0x1cc437&&_0x422807();}),this['listenTo'](_0x1780f5['ui']['focusTracker'],'change:isFocused',(_0x5236e0,_0x149378,_0x55068d)=>{_0x55068d||this['fire']('blur',{'isAnnotationTracked':_0x50a6b6=>this['_editorAnnotationsData']['has'](_0x50a6b6['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x444707){if(this['_editorAnnotations']['has'](_0x444707['view']))return;this['_editorAnnotations']['add'](_0x444707['view']),this['editor']['ui']['focusTracker']['add'](_0x444707['view']['element']);const _0x2fa861=this['editor']['plugins']['get'](y);this['listenTo'](_0x2fa861['collection'],'remove',(_0x31eac2,_0x40dfaf)=>{this['editor']['ui']['focusTracker']['remove'](_0x40dfaf['view']['element']),this['_editorAnnotations']['delete'](_0x40dfaf['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x185910){if('function'!=typeof _0x185910)throw new _0xb7f752('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x185910);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4a3e60,annotations:_0x2b89c3}){const _0x1f5309=[],_0x117019=this['editor']['model']['document']['selection'],_0xa57126=Array['from'](_0x117019['getRanges']());for(const [_0x5477ef,_0x492521]of this['_editorAnnotationsData']){const _0x53e99e=_0x1937e6(_0x492521),_0x613c60=_0x2b89c3['getByInnerView'](_0x5477ef);_0x53e99e&&_0x613c60&&_0x1f5309['push']({'annotation':_0x613c60,'range':_0x53e99e});}function _0x1937e6(_0x3995c0){for(const _0x20cce0 of _0x3995c0)for(const _0x6bede0 of _0xa57126)if(_0x20cce0['containsRange'](_0x6bede0,!_0x117019['isCollapsed']))return _0x20cce0;return null;}return _0x1f5309['sort']((_0x24b337,_0x2119f4)=>{const _0x530483=_0x24b337['range'],_0x26e614=_0x2119f4['range'];if(!_0x530483['isEqual'](_0x26e614)){if(_0x530483['containsRange'](_0x26e614,!0x0))return 0x1;if(_0x26e614['containsRange'](_0x530483,!0x0))return-0x1;}return _0x24b337['annotation']==_0x4a3e60?-0x1:_0x2119f4['annotation']==_0x4a3e60?0x1:0x0;})['map'](_0x140597=>_0x140597['annotation']);}get['_editorAnnotationsData'](){const _0x446884=new Map();for(const _0x185d58 of Array['from'](this['_dataCollectors']))for(const [_0x181875,_0x5a1a6d]of _0x185d58())_0x446884['set'](_0x181875,_0x5a1a6d);return _0x446884;}}class st extends _0x48bfeb{['afterInit'](){const _0x19ca06=this['editor'];if(!_0x19ca06['plugins']['has']('RestrictedEditingModeEditing'))return;_0x19ca06['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x48bfeb{constructor(_0x1f8ea0){super(_0x1f8ea0),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x4412d5=this['editor'],_0x4f451b=_0x4412d5['commands']['get']('importWord'),_0x12c82f=_0x4412d5['plugins']['get'](it);_0x4f451b&&(_0x4f451b['on']('execute',(_0x4f32d8,[,_0xbe0679])=>{_0xbe0679['collaboration_features']={'comments':!0x0,'user_id':_0x12c82f['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x4f451b,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x404aae,_0x2e08b4){const {comment_threads:_0x293516}=_0x2e08b4;_0x293516&&_0x293516['forEach'](({thread_id:_0x31f36f,comments:_0x4ae6ea,is_resolved:_0x14e8d6})=>{const _0x4bf05a=new Date(),_0x55a8b1=_0x4ae6ea['map'](({author:_0x380148,content:_0x559359,created_at:_0x3b7466})=>({'content':_0x559359,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x4bf05a,'attributes':{'@external':{'authorName':_0x380148,'createdAt':_0x3b7466?new Date(_0x3b7466):new Date(),'source':'importWord'}}})),_0x1e5227=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x1e5227,'threadId':_0x31f36f,'comments':_0x55a8b1,'resolvedAt':_0x14e8d6?_0x4bf05a:null});});}}class at extends _0x48bfeb{constructor(_0x53afdd){super(_0x53afdd),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x39cbcd=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x39cbcd,'contentInsertion',(_0xeeb085,_0x4d8b29)=>this['_removeMarkersWithoutThreads'](_0x4d8b29['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x33608c){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x33608c;const _0x1d99db=this['editor']['plugins']['get']('CommentsRepository');for(const _0x36829f of _0x33608c['keys']()){const [_0x5a69b4,_0x116f95]=_0x36829f['split'](':');'comment'!=_0x5a69b4||_0x1d99db['hasCommentThread'](_0x116f95)||_0x33608c['delete'](_0x36829f);}return _0x33608c;}['_registerMarkerInClipboardPipeline'](){const _0x34cbb=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x28c86c=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x28c86c&&_0x34cbb['_registerMarkerToCopy']('comment',_0x28c86c);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x79e595){switch(_0x79e595){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x45f3e2){const _0x5497d7=_0x45f3e2['split'](':');return{'group':_0x5497d7[0x0],'id':_0x5497d7[0x1],'part':_0x5497d7[0x2]};}class ut extends _0x48bfeb{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4bc494,_0x53030e)=>{if(!_0x53030e['options']['showCommentHighlights'])return null;if(_0x53030e['options']['ignoreResolvedComments']){const {id:_0x24cf8d}=ft(_0x4bc494['markerName']),_0x3d2e13=this['editor']['plugins']['get'](o);if(_0x3d2e13['getCommentThread'](_0x24cf8d)?.['isResolved']&&_0x4bc494['item'])return _0x53030e['consumable']['consume'](_0x4bc494['item'],'addMarker:'+_0x4bc494['markerName']),_0x53030e['consumable']['consume'](_0x4bc494['item'],'removeMarker:'+_0x4bc494['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x25bd6d=>{_0x25bd6d['on']('addMarker:comment',(_0x1e9af6,_0x541963,_0x136d1b)=>{if(!_0x136d1b['options']['showCommentHighlights'])return;const _0x8ae155=_0x541963['item'];if(!_0x8ae155)return;const _0x4935c9=_0x136d1b['mapper']['toViewElement'](_0x8ae155);this['editor']['model']['schema']['isObject'](_0x8ae155)&&_0x4935c9&&!_0x4935c9['getCustomProperty']('widget')&&_0x4935c9['is']('containerElement')&&_0x32126f(_0x4935c9,_0x136d1b['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2fb567,{writer:_0x651565,options:_0x490702})=>{if(!_0x490702['showCommentHighlights'])return null;const _0x475006=_0x651565['createContainerElement']('div'),_0x594d4a=_0x651565['createEmptyElement']('hr');return _0x651565['addClass']('ck-horizontal-line',_0x475006),_0x651565['insert'](_0x651565['createPositionAt'](_0x475006,0x0),_0x594d4a),_0x475006;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1f8383,{writer:_0x3bbcf3,options:_0x170fd1})=>{if(!_0x170fd1['showCommentHighlights'])return null;const _0x5b3513=_0x3bbcf3['createContainerElement']('span'),_0x11b2ad=_0x3bbcf3['createEmptyElement']('img');return _0x3bbcf3['addClass']('image-inline',_0x5b3513),_0x3bbcf3['insert'](_0x3bbcf3['createPositionAt'](_0x5b3513,0x0),_0x11b2ad),_0x5b3513;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xadcb8d,{writer:_0x386fe,options:_0x166072})=>{if(_0x166072['showCommentHighlights'])return _0x386fe['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x50ba19,_0x574681,_0x5d9951)=>{_0x5d9951['options']['showCommentHighlights']&&_0x50ba19['stop']();},{'priority':'high'});}}class r extends _0x48bfeb{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(_0x4c1cf9){super(_0x4c1cf9),this['set']('isThreadsLoadingPaused',!0x0),_0x4c1cf9['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x3b4036,_0x3bdff7,_0x402a74,_0x440607)=>{const _0x2a7047=_0x4c1cf9['plugins']['get'](o),_0x743607=_0x402a74?ft(_0x402a74)['id']:null;_0x4c1cf9['model']['change'](()=>{if(_0x743607){const _0x4ad405=this['getAllMarkersForId'](_0x743607);for(const _0x2ca8db of _0x4ad405)_0x4c1cf9['editing']['reconvertMarker'](_0x2ca8db);}if(_0x440607){const {id:_0x26e4bc}=ft(_0x440607),_0x8d1011=_0x2a7047['getCommentThread'](_0x26e4bc);if(_0x8d1011&&_0x8d1011['unlinkedAt'])return;if(_0x8d1011&&!_0x8d1011['isAttached'])return;const _0x5775f2=this['getAllMarkersForId'](_0x26e4bc);for(const _0x34d86b of _0x5775f2)_0x4c1cf9['editing']['reconvertMarker'](_0x34d86b);}}),_0x743607&&this['scrollToThreadMarker'](_0x743607);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x20bdfa=this['editor'],_0x4d7661=_0x20bdfa['plugins']['get'](o),_0x29f265=_0x20bdfa['config']['get']('collaboration.channelId'),_0x5e8ab7=_0x4d7661['getCommentThreads']()['filter'](_0x3ead70=>_0x3ead70['channelId']!==_0x29f265);_0x20bdfa['commands']['add']('addCommentThread',new ot(_0x20bdfa)),this['listenTo'](_0x20bdfa,'change:isReadOnly',(_0x1a59ed,_0x29a936,_0x523487)=>{_0x4d7661['switchReadOnly'](_0x523487,_0x20bdfa['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x4d7661,dt('addCommentThread',_0x29f265),(_0x50a428,{threadId:_0xab47d4})=>{const _0x3b6fdd=this['editor']['plugins']['get'](o)['getCommentThread'](_0xab47d4);_0x3b6fdd?.['unlinkedAt']&&this['_attachArchivedThread'](_0xab47d4);}),this['listenTo'](_0x4d7661,dt('removeCommentThread',_0x29f265),(_0x3c10d9,{threadId:_0x3310ff})=>{_0x20bdfa['model']['enqueueChange']({'isUndoable':!0x1},_0x5838df=>{const _0x1cfcf0=this['getAllMarkersForId'](_0x3310ff);for(const _0x16904d of _0x1cfcf0)_0x5838df['removeMarker'](_0x16904d);});}),this['listenTo'](_0x4d7661,dt('resolveCommentThread',_0x29f265),(_0x5e56b4,{threadId:_0x5446c7})=>{(this['_reconvertMarkers'](_0x5446c7),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x5446c7)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x4d7661,dt('reopenCommentThread',_0x29f265),(_0x110004,{threadId:_0x3fd52e})=>{this['_reconvertMarkers'](_0x3fd52e);},{'priority':'low'}),this['listenTo'](_0x4d7661,dt('addComment',_0x29f265),(_0x2f176e,{threadId:_0x305024,isFromAdapter:_0x944a0d})=>{const _0x507ce4=this['getAllMarkersForId'](_0x305024);if(_0x944a0d||0x0==_0x507ce4['length']||!_0x4d7661['hasCommentThread'](_0x305024))return;0x1===_0x4d7661['getCommentThread'](_0x305024)['length']&&_0x20bdfa['model']['enqueueChange']({'isUndoable':!0x1},_0x2352b3=>{for(const _0x2f70f5 of _0x507ce4)_0x2352b3['updateMarker'](_0x2f70f5,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x5e8ab7);}['afterInit'](){!async function(_0xb2026a){const _0x5ced0d=_0x3abd67([0x77,0x48,0x6b,0x68,0x54,0x4c,0x30,0x62,0x6c,0x50,0x63,0x71,0x64,0x78,0x6e,0x31,0x74,0x44,0x41,0x4a,0x55,0x42,0x4d,0x37,0x36,0x4f,0x46,0x43,0x61,0x47,0x79,0x6d,0x65,0x35,0x45,0x34,0x6a,0x59,0x7a,0x73,0x39,0x67,0x38,0x69,0x75,0x33,0x58,0x66,0x49,0x53,0x57,0x56,0x52,0x4e,0x5a,0x51,0x70,0x76,0x6f,0x4b,0x72,0x32]),_0x1a8ac5=0x47373529,_0x19640d=0x47305a21^_0x1a8ac5,_0x150852=window[_0x3abd67([0x44,0x61,0x74,0x65])][_0x3abd67([0x6e,0x6f,0x77])](),_0x262b48=_0xb2026a[_0x3abd67([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a6a74=new window[(_0x3abd67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x543f52=>{_0x262b48[_0x3abd67([0x6f,0x6e,0x63,0x65])](_0x3abd67([0x72,0x65,0x61,0x64,0x79]),_0x543f52);}),_0x1242ed={[_0x3abd67([0x6b,0x74,0x79])]:_0x3abd67([0x45,0x43]),[_0x3abd67([0x75,0x73,0x65])]:_0x3abd67([0x73,0x69,0x67]),[_0x3abd67([0x63,0x72,0x76])]:_0x3abd67([0x50,0x2d,0x32,0x35,0x36]),[_0x3abd67([0x78])]:_0x3abd67([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]),[_0x3abd67([0x79])]:_0x3abd67([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]),[_0x3abd67([0x61,0x6c,0x67])]:_0x3abd67([0x45,0x53,0x32,0x35,0x36])},_0x589003=_0x262b48[_0x3abd67([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3abd67([0x67,0x65,0x74])](_0x3abd67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e6484(){let _0x51d541,_0x24c207=null,_0xf386ac=null;try{if(_0x589003==_0x3abd67([0x47,0x50,0x4c]))return _0x3abd67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51d541=_0x3daf56(),!_0x51d541)return _0x3abd67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51d541[_0x3abd67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf386ac=_0xf15357(_0x51d541[_0x3abd67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51d541[_0x3abd67([0x6a,0x74,0x69])])),await _0x54b958()?_0x39de5c()?_0x16344e()?_0x3abd67([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47aeea()?(_0x51d541[_0x3abd67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3abd67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24c207=_0x31ffc0(_0x3abd67([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51d541[_0x3abd67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3abd67([0x74,0x72,0x69,0x61,0x6c])&&(_0x24c207=_0x31ffc0(_0x3abd67([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18f1ff()):_0x3abd67([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3abd67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3abd67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3abd67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x16344e(){const _0x227afc=[_0x3abd67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3abd67([0x74,0x72,0x69,0x61,0x6c])][_0x3abd67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51d541[_0x3abd67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x150852/0x3e8:0xe10*_0x19640d;return _0x51d541[_0x3abd67([0x65,0x78,0x70])]<_0x227afc;}function _0x39de5c(){const _0x11cf99=_0x51d541[_0x3abd67([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x11cf99)return!0x1;if(_0x11cf99[_0x3abd67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3abd67([0x2a])))return!0x0;if(_0x11cf99[_0x3abd67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3abd67([0x43,0x4d,0x54])))return!0x0;if(_0x11cf99[_0x3abd67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3abd67([0x52,0x43,0x4d,0x54]))){if(_0x316309())return!0x0;if(_0xa35d75()||_0x588eb9())return!0x0;}return!0x1;}function _0x47aeea(){const _0x3c6b8b=_0x51d541[_0x3abd67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c6b8b||0x0==_0x3c6b8b[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a8499}=new URL(window[_0x3abd67([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c6b8b[_0x3abd67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a8499))return!0x0;const _0x3f7558=_0x3a8499[_0x3abd67([0x73,0x70,0x6c,0x69,0x74])](_0x3abd67([0x2e]));return _0x3c6b8b[_0x3abd67([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc5a364=>_0xc5a364[_0x3abd67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3abd67([0x2a])))[_0x3abd67([0x6d,0x61,0x70])](_0x23a3b2=>_0x23a3b2[_0x3abd67([0x73,0x70,0x6c,0x69,0x74])](_0x3abd67([0x2e])))[_0x3abd67([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x189578=>_0x189578[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f7558[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3abd67([0x6d,0x61,0x70])](_0x2df4a2=>Array(_0x3f7558[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2df4a2[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3abd67([0x66,0x69,0x6c,0x6c])](_0x2df4a2[0x0]===_0x3abd67([0x2a])?_0x3abd67([0x2a]):'')[_0x3abd67([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2df4a2))[_0x3abd67([0x73,0x6f,0x6d,0x65])](_0xcadf2e=>_0x3f7558[_0x3abd67([0x65,0x76,0x65,0x72,0x79])]((_0x29ee4f,_0x4749de)=>_0xcadf2e[_0x4749de]===_0x29ee4f||_0xcadf2e[_0x4749de]===_0x3abd67([0x2a])));}function _0x18f1ff(){return _0x24c207&&_0xf386ac?new window[(_0x3abd67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x459d1b,_0x484c7a)=>{_0x24c207[_0x3abd67([0x74,0x68,0x65,0x6e])](_0x459d1b,_0x484c7a),_0xf386ac[_0x3abd67([0x74,0x68,0x65,0x6e])](_0x276fa1=>{_0x276fa1!=_0x3abd67([0x56,0x61,0x6c,0x69,0x64])&&_0x459d1b(_0x276fa1);},_0x484c7a);}):_0x24c207||_0xf386ac||_0x3abd67([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf15357(_0x34f1f4,_0x3a4b6b){return new window[(_0x3abd67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a8e83=>{if(_0x18e2ce())return _0x5a8e83(_0x3abd67([0x56,0x61,0x6c,0x69,0x64]));_0x18acfd(),_0x262b48[_0x3abd67([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3abd67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3665b6=!0x1;const _0x224249=_0x17bd5b();function _0x451b6f(_0x4f1ccc){return!!_0x4f1ccc&&(typeof _0x4f1ccc===_0x3abd67([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f1ccc===_0x3abd67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f1ccc[_0x3abd67([0x74,0x68,0x65,0x6e])]===_0x3abd67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f1ccc[_0x3abd67([0x63,0x61,0x74,0x63,0x68])]===_0x3abd67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1676ad(_0x68bc13){_0x29fff5(_0x68bc13)[_0x3abd67([0x74,0x68,0x65,0x6e])](_0x1a266=>{if(!_0x1a266||_0x1a266[_0x3abd67([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3abd67([0x6f,0x6b]))return _0x3abd67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x485a96(_0xb12289(_0x224249+_0x3a4b6b))!=_0x1a266[_0x3abd67([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3abd67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3abd67([0x56,0x61,0x6c,0x69,0x64]);})[_0x3abd67([0x74,0x68,0x65,0x6e])](_0x2e0989=>(_0x5a4efa(),_0x2e0989),()=>{const _0x28d945=_0x48ac49();return null==_0x28d945?(_0x5a4efa(),_0x3abd67([0x56,0x61,0x6c,0x69,0x64])):_0x3abd67(_0x150852-_0x28d945>(0x633bb129^_0x1a8ac5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3abd67([0x74,0x68,0x65,0x6e])](_0x5a8e83)[_0x3abd67([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a8e83(_0x3abd67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e16d3=0x4701dba9^_0x1a8ac5;function _0x5a4efa(){const _0x77fae1=_0x3abd67([0x6c,0x6c,0x63,0x74,0x2d])+_0x485a96(_0xb12289(_0x34f1f4)),_0x51f5b5=_0x1ad11c(_0x485a96(window[_0x3abd67([0x4d,0x61,0x74,0x68])][_0x3abd67([0x63,0x65,0x69,0x6c])](_0x150852/_0x4e16d3)));window[_0x3abd67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3abd67([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x77fae1,_0x51f5b5);}function _0x48ac49(){const _0x34f3e9=_0x3abd67([0x6c,0x6c,0x63,0x74,0x2d])+_0x485a96(_0xb12289(_0x34f1f4)),_0x4b57f4=window[_0x3abd67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3abd67([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34f3e9);return _0x4b57f4?window[_0x3abd67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ad11c(_0x4b57f4),0x10)*_0x4e16d3:null;}function _0x29fff5(_0x2fc699){return new window[(_0x3abd67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x169635,_0xe559ba)=>{_0x2fc699[_0x3abd67([0x74,0x68,0x65,0x6e])](_0x169635,_0xe559ba),window[_0x3abd67([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe559ba,0x4736e1e9^_0x1a8ac5);});}}_0x262b48[_0x3abd67([0x6f,0x6e])](_0x3abd67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x906122,_0x5afa4c)=>{if(_0x5afa4c[0x0]!=_0x34f1f4)return _0x5a8e83(_0x3abd67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5afa4c[0x1]={..._0x5afa4c[0x1],[_0x3abd67([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x224249};},{[_0x3abd67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3abd67([0x68,0x69,0x67,0x68])}),_0x262b48[_0x3abd67([0x6f,0x6e])](_0x3abd67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x64a84a=>{_0x451b6f(_0x64a84a[_0x3abd67([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3665b6=!0x0,_0x1676ad(_0x64a84a[_0x3abd67([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3abd67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3abd67([0x6c,0x6f,0x77])}),_0x5a6a74[_0x3abd67([0x74,0x68,0x65,0x6e])](()=>{_0x3665b6||_0x5a8e83(_0x3abd67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x18e2ce(){return _0x262b48[_0x3abd67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3abd67([0x76,0x69,0x65,0x77])][_0x3abd67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3abd67([0x61,0x75,0x74,0x6f]);}function _0x18acfd(){_0x262b48[_0x3abd67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3abd67([0x76,0x69,0x65,0x77])][_0x3abd67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3abd67([0x61,0x75,0x74,0x6f]);}}function _0x31ffc0(_0x1c79de){const _0x571f64=[new window[(_0x3abd67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33b40b=>setTimeout(_0x33b40b,0x473e0be5^_0x1a8ac5)),_0x5a6a74[_0x3abd67([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3abd67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d09da=>{let _0x59b6ba=0x0;_0x262b48[_0x3abd67([0x6d,0x6f,0x64,0x65,0x6c])][_0x3abd67([0x6f,0x6e])](_0x3abd67([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50f861,_0x47d645)=>{_0x47d645[0x0][_0x3abd67([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59b6ba++,_0x59b6ba==(0x473734d1^_0x1a8ac5)&&(_0x1d09da(),_0x50f861[_0x3abd67([0x6f,0x66,0x66])]());});}))];return window[_0x3abd67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3abd67([0x72,0x61,0x63,0x65])](_0x571f64)[_0x3abd67([0x74,0x68,0x65,0x6e])](()=>_0x1c79de);}async function _0x1a9b5a(){await _0x5a6a74,_0x262b48[_0x3abd67([0x6d,0x6f,0x64,0x65,0x6c])][_0x3abd67([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20df72,_0x262b48[_0x3abd67([0x6d,0x6f,0x64,0x65,0x6c])][_0x3abd67([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20df72,_0x262b48[_0x3abd67([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3abd67([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x316309(){return _0x50388c(_0x3abd67([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5b7124(_0x3abd67([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3abd67([0x73,0x74,0x61,0x74,0x65])]==_0x3abd67([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa35d75(){return _0x50388c(_0x3abd67([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 _0x588eb9(){return _0x50388c(_0x3abd67([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4b7f7d(_0x514bb0){const _0x51b1ed=_0x2977d1();_0x262b48[_0x51b1ed]=_0x3abd67([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x514bb0,_0x514bb0!=_0x3abd67([0x56,0x61,0x6c,0x69,0x64])&&_0x1a9b5a();}function _0x2977d1(){const _0x136f0e=window[_0x3abd67([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3abd67([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3abd67([0x6e,0x6f,0x77])]())[_0x3abd67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3abd67([0x2e]),'');let _0x45985e=_0x3abd67([0x77]);for(let _0x40d6aa=0x0;_0x40d6aa<_0x136f0e[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40d6aa+=0x2){let _0x2b181e=window[_0x3abd67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x136f0e[_0x3abd67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40d6aa,_0x40d6aa+0x2));_0x2b181e>=_0x5ced0d[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b181e-=_0x5ced0d[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45985e+=_0x5ced0d[_0x2b181e];}return _0x45985e;}function _0x3daf56(){const _0xf90c2c=_0x589003[_0x3abd67([0x73,0x70,0x6c,0x69,0x74])](_0x3abd67([0x2e]));if(0x3!=_0xf90c2c[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57ceb8(_0xf90c2c[0x1]);function _0x57ceb8(_0x434038){const _0x4bcef5=_0x3065d3(_0x434038);return _0x4bcef5&&_0xeaccbb()?_0x4bcef5:null;function _0xeaccbb(){const _0x2d092d=_0x4bcef5[_0x3abd67([0x6a,0x74,0x69])],_0x2730eb=window[_0x3abd67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d092d[_0x3abd67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d092d[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x317098={..._0x4bcef5,[_0x3abd67([0x6a,0x74,0x69])]:_0x2d092d[_0x3abd67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d092d[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x317098[_0x3abd67([0x76,0x63])],_0xb12289(_0x317098)==_0x2730eb;}}}async function _0x54b958(){let _0x38a204=!0x0;try{const _0x584727=_0x589003[_0x3abd67([0x73,0x70,0x6c,0x69,0x74])](_0x3abd67([0x2e])),[_0x25fd92,_0x17555f,_0xae4e62]=_0x584727;return _0x54f683(_0x25fd92),await _0x45c6b0(_0x25fd92,_0x17555f,_0xae4e62),_0x38a204;}catch{return!0x1;}function _0x54f683(_0x7b22f6){const _0x527e18=_0x3065d3(_0x7b22f6);_0x527e18&&_0x527e18[_0x3abd67([0x61,0x6c,0x67])]==_0x3abd67([0x45,0x53,0x32,0x35,0x36])||(_0x38a204=!0x1);}async function _0x45c6b0(_0x52a3f1,_0x2b8a25,_0x196c79){const _0x105f25=window[_0x3abd67([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3abd67([0x66,0x72,0x6f,0x6d])](_0x9afdf1(_0x196c79),_0x1946fd=>_0x1946fd[_0x3abd67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f4479=new window[(_0x3abd67([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3abd67([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52a3f1+_0x3abd67([0x2e])+_0x2b8a25),_0xd1238e=window[_0x3abd67([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3abd67([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd1238e)return;const _0x2170b0=await _0xd1238e[_0x3abd67([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3abd67([0x6a,0x77,0x6b]),_0x1242ed,{[_0x3abd67([0x6e,0x61,0x6d,0x65])]:_0x3abd67([0x45,0x43,0x44,0x53,0x41]),[_0x3abd67([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3abd67([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3abd67([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd1238e[_0x3abd67([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3abd67([0x6e,0x61,0x6d,0x65])]:_0x3abd67([0x45,0x43,0x44,0x53,0x41]),[_0x3abd67([0x68,0x61,0x73,0x68])]:{[_0x3abd67([0x6e,0x61,0x6d,0x65])]:_0x3abd67([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2170b0,_0x105f25,_0x5f4479)||(_0x38a204=!0x1);}}function _0x3065d3(_0x519a14){return _0x519a14[_0x3abd67([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3abd67([0x65,0x79]))?JSON[_0x3abd67([0x70,0x61,0x72,0x73,0x65])](_0x9afdf1(_0x519a14)):null;}function _0x9afdf1(_0x70efb3){return window[_0x3abd67([0x61,0x74,0x6f,0x62])](_0x70efb3[_0x3abd67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3abd67([0x2b]))[_0x3abd67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3abd67([0x2f])));}function _0xb12289(_0x17430a){let _0x30ce84=0x1505;function _0x3c21e0(_0x4d0c8a){for(let _0x1ed1cc=0x0;_0x1ed1cc<_0x4d0c8a[_0x3abd67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ed1cc++){const _0x2ea4a9=_0x4d0c8a[_0x3abd67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ed1cc);_0x30ce84=(_0x30ce84<<0x5)+_0x30ce84+_0x2ea4a9,_0x30ce84&=_0x30ce84;}}function _0x3b7611(_0x10c9fb){Array[_0x3abd67([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10c9fb)?_0x10c9fb[_0x3abd67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b7611):_0x10c9fb&&typeof _0x10c9fb==_0x3abd67([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3abd67([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10c9fb)[_0x3abd67([0x73,0x6f,0x72,0x74])]()[_0x3abd67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a0a75,_0x1b1c81])=>{_0x3c21e0(_0x5a0a75),_0x3b7611(_0x1b1c81);}):_0x3c21e0(window[_0x3abd67([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10c9fb));}return _0x3b7611(_0x17430a),_0x30ce84>>>0x0;}function _0x485a96(_0x10c91f){return _0x10c91f[_0x3abd67([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3abd67([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3abd67([0x30]));}function _0x1ad11c(_0x4ad117){return _0x4ad117[_0x3abd67([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3abd67([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3abd67([0x6a,0x6f,0x69,0x6e])]('');}function _0x50388c(_0x32fcf8){return _0x262b48[_0x3abd67([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3abd67([0x68,0x61,0x73])](_0x32fcf8);}function _0x5b7124(_0x207375){return _0x262b48[_0x3abd67([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3abd67([0x67,0x65,0x74])](_0x207375);}function _0x20df72(){}function _0x3abd67(_0x493513){return _0x493513['map'](_0xc5e95d=>String['fromCharCode'](_0xc5e95d))['join']('');}_0x4b7f7d(await _0x5e6484());}(this);}['destroy'](){const _0x1b95dc=this['editor']['plugins']['get'](o),_0x4e53bd=this['editor']['config']['get']('collaboration.channelId');for(const _0x51d775 of _0x1b95dc['getCommentThreads']({'channelId':_0x4e53bd}))_0x1b95dc['_detachCommentThread'](_0x51d775['id']),_0x1b95dc['_threads']['delete'](_0x51d775['id']);super['destroy']();}['hasMarkerForId'](_0x36687f){return this['getAllMarkersForId'](_0x36687f)['length']>0x0;}['getAllMarkersForId'](_0x33a2b4){const _0x37b48e=[];for(const _0x1723c0 of this['editor']['model']['markers'])_0x1723c0['name']['startsWith']('comment:'+_0x33a2b4)&&_0x37b48e['push'](_0x1723c0);return _0x37b48e;}['scrollToThreadMarker'](_0x5d5013){setTimeout(()=>{const _0x39da48=this['_getTargetForId'](_0x5d5013);if(!_0x39da48)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5d5013&&nt({'target':_0x39da48[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x18c29e){this['editor']['model']['change'](()=>{for(const _0x4bfad4 of this['getAllMarkersForId'](_0x18c29e))this['editor']['editing']['reconvertMarker'](_0x4bfad4);});}['_attachArchivedThread'](_0x24b7a0){const _0x38df84=this['editor']['plugins']['get'](o),_0x5136f2=this['editor']['plugins']['get'](b),_0x38040f=_0x38df84['getCommentThread'](_0x24b7a0);if(!_0x38040f['isAttached']){const _0x415bcf=_0x38040f['attachTo'](()=>this['_getTargetForId'](_0x38040f['id']));_0x5136f2['registerAnnotation'](_0x415bcf),_0x38040f['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1b4709=this['editor'],_0x192d1a=_0x1b4709['plugins']['get'](it);_0x1b4709['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x48fab2,_0x4987dc)=>{const {id:_0x2a5077}=ft(_0x48fab2['markerName']),_0x25c57f=_0x1b4709['plugins']['get'](o)['getCommentThread'](_0x2a5077),_0x1db771=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x2a5077;let _0x472854;if(_0x25c57f&&_0x25c57f['isResolved']&&!_0x1db771&&_0x48fab2['item'])return _0x4987dc['consumable']['consume'](_0x48fab2['item'],'addMarker:'+_0x48fab2['markerName']),_0x4987dc['consumable']['consume'](_0x48fab2['item'],'removeMarker:'+_0x48fab2['markerName']),null;const _0x55f7b6=['ck-comment-marker'];return _0x1db771&&_0x55f7b6['push']('ck-comment-marker--active'),_0x472854=_0x25c57f?.['length']?_0x25c57f['comments']['first']['author']['id']:_0x192d1a['me']['id'],{'classes':_0x55f7b6,'attributes':{'data-comment':_0x2a5077,'data-author-id':_0x472854}};}}),_0x1b4709['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0xda8277,{options:_0x565c5d})=>{if(_0x565c5d['showCommentHighlights'])return null;const _0x3548d4=_0x1b4709['plugins']['get'](o),_0xcbb4d0=_0x1b4709['model']['markers']['get'](_0xda8277),{id:_0x86562b,part:_0x1b5e68}=ft(_0xda8277);return _0xcbb4d0&&!_0xcbb4d0['affectsData']||_0x565c5d['ignoreResolvedComments']&&_0x3548d4['getCommentThread'](_0x86562b)?.['isResolved']?null:{'group':'comment','name':_0x1b5e68?_0x86562b+':'+_0x1b5e68:_0x86562b};}}),_0x1b4709['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x433e4d,{writer:_0x2e1f0d})=>_0x2e1f0d['createElement']('$marker',{'data-name':'comment:'+_0x433e4d['getAttribute']('id')})}),_0x1b4709['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x4c632d=this['editor'],_0x6711e6=_0x4c632d['plugins']['get'](o),_0x518f70=new Set(),_0x446fec=new Set();_0x4c632d['model']['document']['registerPostFixer'](_0x4585b2=>{let _0x5d15f1=!0x1;for(const {name:_0x2ef4c9,data:_0x3a3470}of _0x4c632d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3c0bd8,id:_0x1024b7}=ft(_0x2ef4c9);let _0x1fb179=_0x3a3470['newRange'];if('comment'!==_0x3c0bd8||!_0x1fb179)continue;const _0x1efc60='$graveyard'===_0x1fb179['root']['rootName'];_0x1efc60||(_0x1fb179=ht(_0x1fb179,_0x4c632d['model']),!_0x1fb179||_0x1fb179['isCollapsed']||!_0x3a3470['newRange']||_0x1fb179['isEqual'](_0x3a3470['newRange']))?_0x4c632d['model']['hasContent'](_0x1fb179)&&!_0x1efc60?this['isThreadsLoadingPaused']?_0x518f70['add'](_0x2ef4c9):this['_handleThreadMarker'](_0x2ef4c9,_0x1024b7):(_0x446fec['add'](_0x2ef4c9),_0x518f70['delete'](_0x2ef4c9),_0x4585b2['removeMarker'](_0x2ef4c9),_0x5d15f1=!0x0):(_0x4585b2['updateMarker'](_0x2ef4c9,{'range':_0x1fb179}),_0x5d15f1=!0x0);}return _0x5d15f1;}),this['on']('change:isThreadsLoadingPaused',(_0x43845,_0x51bdf0,_0x1a3e40)=>{if(!_0x1a3e40&&_0x518f70['size'])for(const _0x5ac250 of _0x518f70){const {id:_0x440185}=ft(_0x5ac250);_0x518f70['delete'](_0x5ac250),_0x4c632d['model']['markers']['get'](_0x5ac250)&&this['_handleThreadMarker'](_0x5ac250,_0x440185);}}),this['listenTo'](_0x4c632d['model']['document'],'change',()=>{for(const {name:_0x4d2261,data:{newRange:_0x34a4d5}}of _0x4c632d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x43bfbb,id:_0x537336}=ft(_0x4d2261);if('comment'!==_0x43bfbb)continue;const _0x1b7343=_0x6711e6['getCommentThread'](_0x537336),_0x19ef23=this['hasMarkerForId'](_0x537336);_0x1b7343&&(!_0x1b7343['_hasTargetInContent']&&_0x34a4d5&&_0x4c632d['editing']['view']['once']('render',()=>{const _0x299e26=_0x4c632d['plugins']['get'](y),_0x3044e4=_0x6711e6['_threadToController']['get'](_0x1b7343)['view'];_0x299e26['getByInnerView'](_0x3044e4)['refreshVisibility']();},{'priority':'low'}),_0x1b7343['_hasTargetInContent']=_0x19ef23||!!_0x34a4d5),_0x34a4d5||(_0x446fec['add'](_0x4d2261),_0x518f70['delete'](_0x4d2261));}for(const _0x96ccd7 of _0x446fec){const {id:_0x1b211d}=ft(_0x96ccd7),_0x4a8c5e=_0x6711e6['getCommentThread'](_0x1b211d);if(_0x518f70['delete'](_0x96ccd7),!_0x4a8c5e)continue;const _0x4007c7=this['hasMarkerForId'](_0x1b211d);_0x4007c7||_0x4a8c5e['isSubmitted']?_0x4007c7||_0x4a8c5e['unlinkedAt']||_0x4a8c5e['setUnlinkedAt'](new Date()):_0x4a8c5e['remove']();}_0x446fec['clear']();});}['_handleInitialThreads'](_0x16ef1c){_0x16ef1c['forEach'](_0x1c79c3=>{_0x1c79c3['unlinkedAt']&&this['_attachArchivedThread'](_0x1c79c3['id']);});}['_getTargetForId'](_0x3b97dc){const _0x4ec5c4=this['editor'],_0x51f77a=this['getAllMarkersForId'](_0x3b97dc);return et(_0x4ec5c4['editing'],_0x51f77a);}['_getTextContext'](_0x5d5fec){const _0x515b75=this['getAllMarkersForId'](_0x5d5fec);let _0x38824='',_0x3e17a7=!0x1;for(const _0x994119 of _0x515b75){const _0x1a1726=_0x994119['getRange']();for(const _0x2e12ae of Array['from'](_0x1a1726['getItems']()))_0x2e12ae['is']('$textProxy')?(_0x38824&&_0x3e17a7&&(_0x38824+='\x20',_0x3e17a7=!0x1),_0x38824+=_0x2e12ae['data']):_0x3e17a7=!0x0;_0x3e17a7=!0x0;}return _0x38824['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x3cdad3,_0x3cf2bf){const _0x26cfdd=this['editor'],_0x2a3861=_0x26cfdd['plugins']['get'](o);let _0x395eb9=_0x2a3861['getCommentThread'](_0x3cf2bf);const _0x4b8f3b=_0x26cfdd['config']['get']('collaboration.channelId'),_0x16d519=_0x26cfdd['plugins']['get'](b);if(_0x395eb9&&(_0x395eb9['unlinkedAt']&&_0x395eb9['setUnlinkedAt'](null),_0x395eb9['isAttached']))return _0x395eb9;return!this['getAllMarkersForId'](_0x3cf2bf)[0x0]['managedUsingOperations']?_0x26cfdd['editing']['view']['once']('render',()=>{if(_0x2a3861['getCommentThread'](_0x3cf2bf))return;const _0x1da4f9=_0x26cfdd['plugins']['get'](y);_0x395eb9=_0x2a3861['openNewCommentThread']({'channelId':_0x4b8f3b,'threadId':_0x3cf2bf,'target':()=>this['_getTargetForId'](_0x3cf2bf),'context':{'type':'text','value':this['_getTextContext'](_0x3cf2bf)}});const _0x1f7c46=_0x2a3861['_threadToController']['get'](_0x395eb9)['view'],_0x4cf30b=_0x1da4f9['getByInnerView'](_0x1f7c46);_0x4cf30b&&_0x16d519['registerAnnotation'](_0x4cf30b);},{'priority':'low'}):_0x2a3861['fetchCommentThread']({'channelId':_0x4b8f3b,'threadId':_0x3cf2bf})['then'](_0x35c350=>{if('destroyed'!==_0x26cfdd['state']){if(_0x395eb9=_0x35c350,_0x395eb9&&!_0x395eb9['isAttached']){const _0x2e4f34=_0x395eb9['attachTo'](()=>this['_getTargetForId'](_0x3cf2bf));_0x16d519['registerAnnotation'](_0x2e4f34),_0x395eb9['isResolved']&&this['_reconvertMarkers'](_0x3cf2bf);}else{if(!_0x395eb9){const _0x394843=this['getAllMarkersForId'](_0x3cf2bf);_0x26cfdd['model']['change'](_0x3b9168=>{for(const _0x2fb34b of _0x394843)_0x3b9168['removeMarker'](_0x2fb34b);});}}}}),_0x395eb9;}['_handleThreadMarker'](_0x517437,_0x5aa83a){const _0x5d7011=this['_attachMarkerToThread'](_0x517437,_0x5aa83a);_0x5d7011&&!_0x5d7011['context']&&_0x5d7011['setContext']({'type':'text','value':this['_getTextContext'](_0x5aa83a)});}['_initAriaMarkerChangeAnnouncements'](){const _0x456e09=this['editor'];rt(_0x456e09['model'],({left:_0x137f59,entered:_0x405e81})=>{for(const _0x29b4cf of _0x137f59)if(mt(_0x29b4cf)){_0x456e09['ui']['ariaLiveAnnouncer']['announce'](N(_0x456e09['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x37a081 of _0x405e81)if(mt(_0x37a081)){_0x456e09['ui']['ariaLiveAnnouncer']['announce'](N(_0x456e09['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x309bde)));break;}});}}function dt(_0x311907,_0x335cc0){return _0x335cc0?_0x311907+':'+_0x335cc0:_0x311907;}function ht(_0x400ece,_0x25ed5b){const _0x3fab96=_0x25ed5b['schema'],_0x47b39b=_0x25ed5b['createRange'](_0x400ece['start']);for(const _0x40889f of _0x400ece['getWalker']()){const {type:_0x4adeef,item:_0x5bc81d,nextPosition:_0x4b87e0}=_0x40889f;if('text'===_0x4adeef||_0x3fab96['isObject'](_0x5bc81d)){const _0x148b4b=_0x25ed5b['createPositionBefore'](_0x5bc81d);_0x47b39b['isCollapsed']&&(_0x47b39b['start']=_0x148b4b),_0x47b39b['end']=_0x4b87e0;}}return _0x47b39b;}function mt(_0x4936a3){return'comment'===ft(_0x4936a3['name'])['group'];}class s extends _0x48bfeb{['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 _0x1e8082=this['editor'],_0xa9f72a=_0x1e8082['plugins']['get'](o),_0x2c5eed=_0x1e8082['plugins']['get'](r),_0x4d818e=_0x1e8082['plugins']['get'](y),_0xdd15be=_0x1e8082['plugins']['get'](b);_0x1e8082['ui']['componentFactory']['add']('comment',()=>{const _0x852942=this['_createUIButton'](_0x52b512);return _0x852942['tooltip']=!0x0,_0x852942;}),_0x1e8082['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x13493c)),_0xdd15be['addSourceCollector'](()=>{const _0x36cf55=[];for(const [_0x31a048,_0x58e718]of _0xa9f72a['_threadToController']){const _0x200b2b=_0x2c5eed['getAllMarkersForId'](_0x31a048['id']),_0x2cae83=_0x200b2b['map'](_0x157418=>_0x157418['getRange']());_0x200b2b['length']>0x0&&_0x36cf55['push']([_0x58e718['view'],_0x2cae83]);}return _0x36cf55;}),this['listenTo'](_0x4d818e,'change:activeAnnotations',(_0x24be5d,_0xe024cf,_0x238b8c)=>{const _0x279247=Array['from'](_0x238b8c)['map'](_0x2ef01d=>_0x2ef01d['innerView'])['find'](_0x17f8d2=>_0xa9f72a['_viewToController']['has'](_0x17f8d2));if(!_0x279247)return void(_0x2c5eed['activeMarker']=null);const _0x36f3b9=_0xa9f72a['_viewToController']['get'](_0x279247)['model']['id'],_0x112fe3='comment:'+_0x36f3b9;_0x36f3b9&&_0x2c5eed['hasMarkerForId'](_0x36f3b9)?_0x2c5eed['activeMarker']=_0x112fe3:_0x2c5eed['activeMarker']&&(_0x2c5eed['activeMarker']=null);}),this['listenTo'](_0xa9f72a,'removeCommentThread',(_0x416c37,{threadId:_0x5b38f0,isFromAdapter:_0x3bad2e})=>{!_0x3bad2e&&_0x1e8082['ui']['focusTracker']['isFocused']&&_0x2c5eed['hasMarkerForId'](_0x5b38f0)&&_0x1e8082['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0xa9f72a,'addComment',(_0x42756a,{threadId:_0x57e42f,isFromAdapter:_0x4d399c})=>{if(_0x4d399c||!_0x2c5eed['hasMarkerForId'](_0x57e42f)||!_0xa9f72a['hasCommentThread'](_0x57e42f))return;0x1===_0xa9f72a['getCommentThread'](_0x57e42f)['length']&&(_0x1e8082['editing']['view']['focus'](),_0x42756a['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3afb3d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x16858;for(const _0x18b82b in _0x3afb3d){const _0x391296=_0x18b82b,_0x5160de=_0x3afb3d[_0x391296];if('commentsLicenseKeyValid'==_0x5160de||'commentsLicenseKeyInvalid'==_0x5160de||'commentsLicenseKeyExpired'==_0x5160de||'commentsLicenseKeyDomainLimit'==_0x5160de||'commentsLicenseKeyNotAllowed'==_0x5160de||'commentsLicenseKeyEvaluationLimit'==_0x5160de||'commentsLicenseKeyTrialLimit'==_0x5160de||'commentsLicenseKeyUsageLimit'==_0x5160de){delete _0x3afb3d[_0x391296],_0x16858=_0x5160de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x16858&&_0x3afb3d['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x16858&&_0x3afb3d['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x16858&&_0x3afb3d['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x16858&&_0x3afb3d['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x16858&&_0x3afb3d['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x16858&&_0x3afb3d['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x16858&&_0x3afb3d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x39d7e3){const _0x266b19=this['editor'],_0x5bfee3=new _0x39d7e3(_0x266b19['locale']),_0xd7246e=_0x266b19['commands']['get']('addCommentThread');return _0x5bfee3['set']({'label':N(_0x266b19['locale'],'Comment'),'icon':_0x2dc142}),_0x5bfee3['bind']('isEnabled')['to'](_0xd7246e,'hasContent'),this['listenTo'](_0x5bfee3,'execute',()=>{_0xd7246e['execute']();}),_0x5bfee3;}}class i extends _0x48bfeb{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x2b5ed6){super(_0x2b5ed6),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5b6e00,_0x958f58,_0xf04a74)=>{_0xf04a74?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x2daa4a,_0x46a620]of this['editor']['commands'])_0x46a620['affectsData']&&'addCommentThread'!==_0x2daa4a&&_0x46a620['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x498fe3=this['editor']['editing']['view']['document'];this['listenTo'](_0x498fe3,'cut',_0x510a79=>_0x510a79['stop'](),{'priority':'highest'}),this['listenTo'](_0x498fe3,'clipboardInput',_0x564be2=>_0x564be2['stop'](),{'priority':'highest'}),this['listenTo'](_0x498fe3,'delete',_0x352ba7=>_0x352ba7['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x17af1a,_0x5aebe6]of this['editor']['commands'])_0x5aebe6['affectsData']&&'addCommentThread'!==_0x17af1a&&_0x5aebe6['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 _0x6c42d0{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16ede7){super(_0x16ede7),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x4723d0=this['context']['plugins']['get'](y);this['listenTo'](_0x4723d0,'_activateAnnotation',(_0x47a94a,_0x105e10)=>{for(const _0x347923 of this['activeUIs']){const _0x553892=this['_uis']['get'](_0x347923);(0x0,this['uisData']['get'](_0x347923)['filter'])(_0x105e10)&&_0x553892['setActiveAnnotation'](_0x105e10);}}),this['listenTo'](_0x4723d0,'_deactivateAllAnnotations',()=>{for(const _0x15ce3e of this['activeUIs']){this['_uis']['get'](_0x15ce3e)['setActiveAnnotation'](null);}}),this['listenTo'](_0x4723d0['_visibleAnnotations'],'add',(_0x296be9,_0x43c47e)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x43c47e);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x127139){return this['activeUIs']['has'](_0x127139);}['activate'](_0x1fed50,_0x524fef=this['defaultFilter']){const _0x36373d=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x1fed50))throw new _0xb7f752('annotationsuis-missing-ui',this,{'uiName':_0x1fed50});this['isActive'](_0x1fed50)&&this['deactivate'](_0x1fed50),this['activeUIs']['add'](_0x1fed50);const _0x5aa06b=new S();v({'source':_0x36373d['_visibleAnnotations'],'target':_0x5aa06b,'filter':_0x524fef}),this['uisData']['set'](_0x1fed50,{'collection':_0x5aa06b,'filter':_0x524fef});const _0x4dc7d8=this['_uis']['get'](_0x1fed50);_0x4dc7d8['attach'](_0x5aa06b),this['listenTo'](_0x4dc7d8,'change:activeAnnotation',(_0x26c0a0,_0x599791,_0x27e699,_0x45f7c0)=>{_0x45f7c0&&_0x36373d['_removeActiveAnnotation'](_0x45f7c0),_0x27e699&&_0x36373d['_addActiveAnnotation'](_0x27e699);});}['deactivate'](_0x279fe3){if(this['activeUIs']['delete'](_0x279fe3),!this['_uis']['has'](_0x279fe3))throw new _0xb7f752('annotationsuis-missing-ui',this,{'uiName':_0x279fe3});const _0x2543f1=this['_uis']['get'](_0x279fe3);_0x2543f1['detach'](),this['stopListening'](_0x2543f1),this['uisData']['get'](_0x279fe3)['collection']['destroy'](),this['uisData']['delete'](_0x279fe3);}['switchTo'](_0x194ee6){if(!this['_uis']['has'](_0x194ee6))throw new _0xb7f752('annotationsuis-missing-ui',this,{'uiName':_0x194ee6});const _0x34f539=this['context']['plugins']['get'](y),_0x20341f=Array['from'](_0x34f539['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x194ee6);const _0x2ceaa7=this['_uis']['get'](_0x194ee6);_0x2ceaa7['setActiveAnnotation'](_0x20341f),_0x2ceaa7['_setSelectedAnnotations']&&_0x20341f&&_0x2ceaa7['_setSelectedAnnotations']([_0x20341f]);}['deactivateAll'](){for(const _0x15a16c of this['activeUIs'])this['deactivate'](_0x15a16c);}['register'](_0x36cb82,_0x14006b){if(this['_uis']['has'](_0x36cb82))throw new _0xb7f752('annotationsuis-register-already-registered');if('function'!=typeof _0x14006b['attach']||'function'!=typeof _0x14006b['detach']||'function'!=typeof _0x14006b['setActiveAnnotation'])throw new _0xb7f752('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x36cb82,_0x14006b);}['refilterAnnotations'](){const _0x30c39c=this['context']['plugins']['get'](y)['collection'],_0x33b175=new Map(),_0x47736a=Array['from'](this['activeUIs']);for(const _0x5c1939 of this['activeUIs']){const _0x5d9143=this['uisData']['get'](_0x5c1939)['collection'];for(const _0x259a73 of _0x5d9143)_0x33b175['set'](_0x259a73,_0x5c1939);}for(const _0x50d2ab of _0x30c39c){const _0x5a83fb=_0x33b175['get'](_0x50d2ab);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x50d2ab);const _0x1acc52=_0x47736a['find'](_0xb9f8ea=>this['uisData']['get'](_0xb9f8ea)['filter'](_0x50d2ab));_0x5a83fb!==_0x1acc52&&(_0x5a83fb&&this['uisData']['get'](_0x5a83fb)['collection']['remove'](_0x50d2ab),_0x1acc52&&this['uisData']['get'](_0x1acc52)['collection']['add'](_0x50d2ab));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x45fe94){const _0x4f9d76=[];for(const _0x4448a6 of this['activeUIs']){(0x0,this['uisData']['get'](_0x4448a6)['filter'])(_0x45fe94)&&_0x4f9d76['push'](_0x4448a6);}if(_0x4f9d76['length']>0x1)throw new _0xb7f752('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4f9d76,'annotationType':_0x45fe94['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x378e11){super(_0x378e11);const _0x2d09f9=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 _0x2070b8(),this['focusCycler']=new _0x2a7d1c({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2d09f9['to']('class')],'style':{'minHeight':_0x2d09f9['to']('minHeight',_0xef9f5f=>'number'==typeof _0xef9f5f?_i(_0xef9f5f+0xa):null)},'dir':_0x378e11['uiLanguageDirection'],'role':'application','aria-label':N(_0x378e11,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x378e11,'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',_0x6b114d=>{this['_updateItemPositionInFocusables'](_0x6b114d['source']);}),this['list']['forEach'](_0x39b470=>{this['focusTracker']['add'](_0x39b470['element']),this['_updateItemPositionInFocusables'](_0x39b470);}),this['list']['on']('change',(_0x3678ef,_0x3430fa)=>{for(const _0x212412 of _0x3430fa['removed'])this['focusTracker']['remove'](_0x212412['element']),this['focusables']['remove'](_0x212412);for(const _0x2e7d95 of _0x3430fa['added'])this['focusTracker']['add'](_0x2e7d95['element']),this['_updateItemPositionInFocusables'](_0x2e7d95);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x7c29ca){const _0x30166d=this['focusables']['getIndex'](_0x7c29ca);let _0x339796,_0x260ca8;for(const _0x591db7 of this['focusables'])if(_0x7c29ca['top']<_0x591db7['top']){_0x339796=_0x591db7;break;}if(_0x260ca8=_0x339796?this['focusables']['getIndex'](_0x339796):this['focusables']['length'],-0x1!==_0x30166d){if(_0x30166d===_0x260ca8-0x1)return;this['focusables']['remove'](_0x7c29ca),_0x260ca8=_0x339796?this['focusables']['getIndex'](_0x339796):this['focusables']['length'];}this['focusables']['add'](_0x7c29ca,_0x260ca8);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x41b266){super(_0x41b266),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x929a08,_0x4f1d36)=>_0x929a08+_0x4f1d36),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x100e2a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x100e2a['to']('isAnimationDisabled',_0x3b5ae4=>_0x3b5ae4?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x100e2a['to']('top',_0x123093=>Ot(_0x123093))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x22354b=this['element']['clientHeight'];_0x22354b&&(this['height']=_0x22354b);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x6c42d0{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f8d21){super(_0x1f8d21),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 _0xb91a44=this['context']['config']['get']('sidebar.container');_0xb91a44&&this['setContainer'](_0xb91a44);}['setContainer'](_0x3cd6c3){if(!g(_0x3cd6c3))throw new _0xb7f752('sidebar-setcontainer-invalid-element');this['container']=_0x3cd6c3;}['_attachToContainer']({viewClass:_0xb7e22a='',spaceBetweenItems:_0x1f1ac2=0x19}={}){if(!g(this['container']))throw new _0xb7f752('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0xb7e22a,this['_spaceBetweenItems']=_0x1f1ac2;}['rearrange']({removedAnnotation:_0x91e417,previousAnnotation:_0x3d7927,nextAnnotation:_0x580408}){const _0x11b3a1=this['getSidebarItemView'](_0x91e417);this['view']['list']['remove'](_0x11b3a1),this['_destroySidebarItemView'](_0x91e417),_0x3d7927&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3d7927)),_0x580408&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x580408)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x4eecfc,activatedAnnotation:_0x2e4eb5,disableAnimationOnActivatedAnnotation:_0x55f2fc}){if(this['_activeAnnotation']=_0x2e4eb5,_0x4eecfc){_0x4eecfc['isActive']=!0x1;const _0x4c4314=this['getSidebarItemView'](_0x4eecfc);_0x4c4314&&_0x55f2fc&&(_0x4c4314['isAnimationDisabled']=!0x1);}if(_0x2e4eb5){const _0x10a4fe=this['getSidebarItemView'](_0x2e4eb5);_0x10a4fe&&(_0x2e4eb5['isActive']=!0x0,_0x55f2fc&&(_0x10a4fe['isAnimationDisabled']=!0x0,_0x10a4fe['top']+=0x1),this['_alignToTargetRect'](_0x10a4fe));}}['_detachFromContainer'](_0xc74591){if(this['view']['element']['remove'](),_0xc74591){for(const _0x119df5 of _0xc74591)this['_destroySidebarItemView'](_0x119df5);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x217f49,_0xb53339){_0xb53339||(_0xb53339=_0x217f49['view']);const _0x53af6d=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x53af6d,_0x217f49),this['_annotationToSidebarItemView']['set'](_0x217f49,_0x53af6d),_0x53af6d['content']['add'](_0xb53339),this['listenTo'](_0x217f49['view'],'change:targetRect',(_0x3f5fcd,_0x1a6fa9,_0x19097c)=>{const _0x31f51b=this['_getTargetTop'](_0x217f49,_0x19097c);_0x53af6d['_targetTop']!=_0x31f51b&&(_0x53af6d['_targetTop']=_0x31f51b,this['_setItemTop'](_0x53af6d,_0x31f51b));}),this['listenTo'](_0x53af6d,'change:top',()=>{this['_recalculate'](_0x53af6d,'top');}),this['listenTo'](_0x53af6d,'change:bottom',()=>{this['_recalculate'](_0x53af6d,'bottom');}),this['_alignToTargetRect'](_0x53af6d);const _0x250c09=this['_getItemBefore'](_0x53af6d);if(_0x250c09)this['_alignAfterItem'](_0x250c09,_0x53af6d)||this['_alignToTargetRect'](_0x53af6d);else this['_alignToTargetRect'](_0x53af6d);return this['_updateLastItem'](),this['view']['list']['add'](_0x53af6d),_0x53af6d;}['_alignForTopChange'](_0x3b6452){if(!_0x3b6452['content']['length'])return;const _0x305d6e=this['_getItemBefore'](_0x3b6452);if(!_0x305d6e)return;const _0x36d907=this['_sidebarItemViewToAnnotation']['get'](_0x305d6e),_0xf89d93=this['_activeAnnotation'];_0xf89d93&&_0xf89d93===_0x36d907?this['_alignAfterItem'](_0x305d6e,_0x3b6452):this['_alignBeforeItem'](_0x3b6452,_0x305d6e);}['_alignForBottomChange'](_0x8cfc4e){if(!_0x8cfc4e['content']['length'])return;const _0x2a69b9=this['_getItemAfter'](_0x8cfc4e);if(!_0x2a69b9)return;const _0x21df3d=this['_sidebarItemViewToAnnotation']['get'](_0x2a69b9),_0xbdffac=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x3618b8=this['_activeAnnotation'];_0x3618b8&&_0x3618b8===_0x21df3d&&_0xbdffac?(this['_alignBeforeItem'](_0x2a69b9,_0x8cfc4e),this['_alignAfterItem'](_0x8cfc4e,_0x2a69b9)):_0x3618b8&&_0x3618b8===_0x21df3d?this['_alignBeforeItem'](_0x2a69b9,_0x8cfc4e):this['_alignAfterItem'](_0x8cfc4e,_0x2a69b9);}['_recalculate'](_0x20a58c,_0x12a957){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x3e96b3,changedProp:_0x3c5e41}of this['_recalculateBuffer'])'top'===_0x3c5e41?this['_alignForTopChange'](_0x3e96b3):this['_alignForBottomChange'](_0x3e96b3);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x20a58c,'changedProp':_0x12a957});}['getSidebarItemView'](_0x31836b){return this['_annotationToSidebarItemView']['get'](_0x31836b);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x49ffde){const _0x3e160a=this['getSidebarItemView'](_0x49ffde);this['stopListening'](_0x3e160a),this['stopListening'](_0x49ffde['view']),_0x3e160a['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x49ffde),this['_sidebarItemViewToAnnotation']['delete'](_0x3e160a);}['_createSidebarView'](){const _0x4060c5=new H(this['context']['locale']);return _0x4060c5['render'](),this['on']('change:_lastItem',(_0x510fed,_0x32615d,_0x7990c9,_0x32baca)=>{_0x32baca&&_0x4060c5['unbind']('minHeight'),_0x7990c9?_0x4060c5['bind']('minHeight')['to'](_0x7990c9,'bottom'):_0x4060c5['minHeight']=null;}),_0x4060c5;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x367d2d){const _0x5e55b4=this['_sidebarItemViewToAnnotation']['get'](_0x367d2d),_0x4dd4f1=_0x5e55b4&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5e55b4)-0x1);return _0x4dd4f1&&this['getSidebarItemView'](_0x4dd4f1)||null;}['_getItemAfter'](_0x236251){const _0x2d2e99=this['_sidebarItemViewToAnnotation']['get'](_0x236251),_0x5776d4=_0x2d2e99&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2d2e99)+0x1);return _0x5776d4&&this['getSidebarItemView'](_0x5776d4)||null;}['_alignBeforeItem'](_0x3d6a97,_0x3b0b52){_0x3d6a97['updateHeight']();const _0x242d34=G(_0x3b0b52['bottom']+this['_spaceBetweenItems'],_0x3d6a97['top']);return!!_0x242d34&&(this['_setItemTop'](_0x3b0b52,_0x3b0b52['top']-_0x242d34),!0x0);}['_alignAfterItem'](_0x10058d,_0x5a3f88){_0x10058d['updateHeight']();const _0x2f81fb=G(_0x10058d['bottom']+this['_spaceBetweenItems'],_0x5a3f88['top']);return!!_0x2f81fb&&(this['_setItemTop'](_0x5a3f88,_0x5a3f88['top']+_0x2f81fb,!0x1),!0x0);}['_alignToTargetRect'](_0x53f1b3){const _0x3af62c=this['_sidebarItemViewToAnnotation']['get'](_0x53f1b3);if(!_0x3af62c||!_0x3af62c['target']||!_0x3af62c['targetRect'])return;const _0x3d73f2=this['_getTargetTop'](_0x3af62c,_0x3af62c['targetRect']);this['_setItemTop'](_0x53f1b3,_0x3d73f2);}['_getTargetTop'](_0x20aa49,_0x5e517c){if(null===_0x5e517c)return 0x0;if(_0x20aa49['target']instanceof _0x3e90cd)return _0x5e517c['top'];{const _0x476985=new _0x3e90cd(this['view']['element'])['top'];return _0x5e517c['top']-_0x476985;}}['_setItemTop'](_0x4b07d6,_0x5ba6f3,_0x28b00d=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x28b00d&&(_0x5ba6f3=Math['max'](_0x5ba6f3,this['_getMaxAvailableTop'](_0x4b07d6))),_0x4b07d6['top']=_0x5ba6f3;}['_getMaxAvailableTop'](_0xf5387f){let _0x4eafa1=this['_getItemBefore'](_0xf5387f),_0x47edd1=0x0;for(;_0x4eafa1;)_0x4eafa1['updateHeight'](),_0x47edd1+=this['_spaceBetweenItems']+_0x4eafa1['height'],_0x4eafa1=this['_getItemBefore'](_0x4eafa1);return _0x47edd1;}}function G(_0x3a5164,_0x1bf241){return Math['max'](_0x3a5164-_0x1bf241,0x0);}function g(_0x29b657){return null!==_0x29b657&&'object'==typeof _0x29b657&&0x1===_0x29b657['nodeType'];}class e extends _0x6c42d0{['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(_0x40f6e6){super(_0x40f6e6),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x3c8425(),this['_refreshPositioningDebounced']=_0x1cef12(()=>{_0x40f6e6['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x3bda57=this['context']['plugins']['get'](j),_0x594146=this['context']['plugins']['get'](z);_0x3bda57['register']('wideSidebar',this),_0x594146['container']&&_0x3bda57['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x571f4a){if(_0x571f4a===this['activeAnnotation'])return;const _0x28ba4a=this['context']['plugins']['get'](z);_0x28ba4a['_activeAnnotation']=_0x571f4a;const _0x157c88=this['activeAnnotation'];_0x28ba4a['refresh']({'blurredAnnotation':_0x157c88,'activatedAnnotation':_0x571f4a}),this['activeAnnotation']=_0x571f4a;}['attach'](_0x559c67){this['annotations']=_0x559c67;const _0x223518=this['context']['plugins']['get'](z);if(_0x223518['_annotations']=_0x559c67,this['isAttached'])throw new _0xb7f752('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x223518,'set:container',()=>{this['detach'](),this['listenTo'](_0x223518,'change:container',_0x5e32e2=>{_0x5e32e2['off'](),this['attach'](_0x559c67);});}),_0x223518['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x28ff85=_0x54b049=>{_0x54b049['updateTargetRect'](),_0x223518['addAnnotation'](_0x54b049);};for(const _0x5a5462 of _0x559c67)_0x28ff85(_0x5a5462);this['listenTo'](_0x559c67,'add',(_0x247a0f,_0x42841a)=>{_0x28ff85(_0x42841a);}),this['listenTo'](_0x559c67,'remove',(_0xbfa592,_0x7adcc9,_0x807d4a)=>{_0x223518['rearrange']({'removedAnnotation':_0x7adcc9,'previousAnnotation':_0x559c67['get'](_0x807d4a-0x1),'nextAnnotation':_0x559c67['get'](_0x807d4a+0x1)}),_0x7adcc9===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x559c67,'focus',(_0x15194d,_0x52fdfe)=>{this['setActiveAnnotation'](_0x52fdfe);}),this['listenTo'](_0x559c67,'blur',()=>{this['setActiveAnnotation'](null);});const _0x2a9a59=this['context']instanceof _0x2f39eb?this['context']['editors']:new _0x3c8425([this['context']]);for(const _0x50002a of _0x2a9a59)this['_integrateWithEditorAnnotations'](_0x50002a);this['listenTo'](_0x2a9a59,'add',(_0x2405f2,_0x4dad81)=>{this['listenTo'](_0x4dad81,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4dad81);});}),this['listenTo'](_0x2a9a59,'remove',(_0x241d69,_0x165457)=>{_0x165457['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x165457['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0xb7f752('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x47a00d=this['context']['plugins']['get'](z);_0x47a00d['_detachFromContainer'](this['annotations']),this['stopListening'](_0x47a00d),this['stopListening'](this['annotations']),this['context']instanceof _0x2f39eb&&this['stopListening'](this['context']['editors']);for(const _0x7cc0e7 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x7cc0e7);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x541a80){if(!_0x541a80['plugins']['has']('EditorAnnotations'))return;const _0x57c3ab=_0x541a80['plugins']['get']('EditorAnnotations'),_0x524ee5=()=>{const _0x3e0e78=_0x57c3ab['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3e0e78[0x0]||null);};this['listenTo'](_0x57c3ab,'refresh',_0x524ee5),this['listenTo'](_0x57c3ab,'blur',(_0xa7d131,{isAnnotationTracked:_0x30ad81})=>{this['activeAnnotation']&&_0x30ad81(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x57c3ab,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x13a6e1=>{_0x57c3ab['hasDomSelection']()&&(_0x524ee5(),_0x13a6e1['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x57c3ab);}['_destroyEditorAnnotationsIntegration'](_0x569f9a){this['stopListening'](_0x569f9a),this['_editorAnnotations']['remove'](_0x569f9a);}}class C extends _0x52b512{['counterView'];constructor(_0x15543c){super(_0x15543c);const _0x9c1e54=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x379a84,_0x35c4ba)=>_0x379a84?'...':_0x35c4ba['toString']()),this['set']('annotationType',''),this['icon']=_0x2dc142,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x9c1e54['to']('annotationType',_0x27f041=>'ck-annotation-counter__badge--'+_0x27f041),_0x9c1e54['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x9c1e54['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x6c42d0{['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(_0x243e83){super(_0x243e83),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0xa43367())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x3c8425(),this['_refreshPositioningDebounced']=_0x1cef12(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x23aa9b(this['context']['locale']),this['balloonPanelView']=new _0x3f2722(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x40a394){this['annotations']=_0x40a394;const _0x481931=this['context']['plugins']['get'](z),_0x3800db=this['balloonPanelView'];if(_0x481931['_annotations']=_0x40a394,this['isAttached'])throw new _0xb7f752('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x481931,'set:container',()=>{this['detach'](),this['listenTo'](_0x481931,'change:container',_0x304126=>{_0x304126['off'](),this['attach'](_0x40a394);});}),_0x481931['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x367de5=_0x49c2a4=>{const _0x1bf1bf=new C(this['context']['locale']);_0x481931['addAnnotation'](_0x49c2a4,_0x1bf1bf),this['_annotationToNarrowView']['set'](_0x49c2a4,_0x1bf1bf),_0x1bf1bf['bind']('isDirty','annotationType','number')['to'](_0x49c2a4['view'],'isDirty','type','length'),_0x1bf1bf['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x3800db['content']['first']!==_0x49c2a4['view']?(this['_showBalloon'](_0x49c2a4),_0x49c2a4['view']['element']['focus'](),this['setActiveAnnotation'](_0x49c2a4)):this['setActiveAnnotation'](null);});};for(const _0x1fe18c of _0x40a394)_0x367de5(_0x1fe18c);this['listenTo'](_0x40a394,'add',(_0x320875,_0x1d453d)=>{_0x367de5(_0x1d453d);}),this['listenTo'](_0x40a394,'remove',(_0x123eea,_0x40a15e,_0x455c94)=>{this['_annotationToNarrowView']['get'](_0x40a15e)['destroy'](),this['_annotationToNarrowView']['delete'](_0x40a15e),_0x481931['rearrange']({'removedAnnotation':_0x40a15e,'previousAnnotation':_0x40a394['get'](_0x455c94-0x1),'nextAnnotation':_0x40a394['get'](_0x455c94+0x1)}),_0x40a15e===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x40a394,'focus',(_0xd3d174,_0x15cd9c)=>{this['setActiveAnnotation'](_0x15cd9c);}),this['listenTo'](_0x40a394,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x459b87,_0x6db4d8)=>{_0x6db4d8['keyCode']===_0x39b8ef['esc']&&_0x3800db['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x3800db['content']['first']),this['_hideBalloon'](),_0x6db4d8['stopPropagation'](),_0x6db4d8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x19ac50,_0x34886)=>{const _0x24b231=_0x34886['target'];_0x3800db['isVisible']&&_0x3800db['element']['contains'](_0x24b231)||_0x481931['view']['element']['contains'](_0x24b231)||_0x19ac50['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4d1e6d=>_0x4d1e6d['contains'](_0x24b231))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0xcd4e89=this['context']instanceof _0x2f39eb?this['context']['editors']:new _0x3c8425([this['context']]);for(const _0x3c3bc2 of _0xcd4e89)this['_integrateWithEditorAnnotations'](_0x3c3bc2);this['listenTo'](_0xcd4e89,'add',(_0x4e355f,_0x1af819)=>{this['listenTo'](_0x1af819,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1af819);});}),this['listenTo'](_0xcd4e89,'remove',(_0x3200b9,_0x4aebe8)=>{_0x4aebe8['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4aebe8['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x28eb0e){if(_0x28eb0e===this['activeAnnotation'])return;const _0x22ec2c=this['context']['plugins']['get'](z);if(_0x22ec2c['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x28eb0e,'disableAnimationOnActivatedAnnotation':!0x0}),_0x28eb0e)_0x22ec2c['getSidebarItemView'](_0x28eb0e)?this['_showBalloon'](_0x28eb0e):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x28eb0e;}['detach'](){if(!this['isAttached'])throw new _0xb7f752('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x12ed2e=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x390618=>_0x390618['destroy']()),this['_annotationToNarrowView']['clear'](),_0x12ed2e['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x2f39eb&&this['stopListening'](this['context']['editors']);for(const _0x25da06 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x25da06);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'](_0x1aef64){if(!_0x1aef64['plugins']['has']('EditorAnnotations'))return;const _0x4be8e1=_0x1aef64['plugins']['get']('EditorAnnotations'),_0x5d59df=this['context']['plugins']['get'](z),_0x1a0fa2=this['annotations'],_0x1859f8=this['balloonPanelView'],_0x104ff0=()=>{const _0x2c92f0=_0x4be8e1['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x2c92f0),this['setActiveAnnotation'](_0x2c92f0[0x0]||null);};this['listenTo'](_0x4be8e1,'refresh',_0x104ff0),this['listenTo'](_0x4be8e1,'blur',(_0x4d5545,{isAnnotationTracked:_0x4225b3})=>{this['activeAnnotation']&&_0x4225b3(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4be8e1,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1a0fa2,'blur',_0x467000=>{_0x4be8e1['hasDomSelection']()&&_0x467000['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x49d177,_0x45b930)=>{const _0x46e899=_0x45b930['target'];_0x1859f8['isVisible']&&_0x1859f8['element']['contains'](_0x46e899)||_0x5d59df['view']['element']['contains'](_0x46e899)||this['activeAnnotation']&&_0x4be8e1['hasDomSelection']()&&(_0x104ff0(),_0x49d177['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4be8e1);}['_destroyEditorAnnotationsIntegration'](_0xf183c6){_0xf183c6&&(this['stopListening'](_0xf183c6),this['_editorAnnotations']['remove'](_0xf183c6));}['_setSelectedAnnotations'](_0x67fa2b){for(const _0x23c0a6 of this['_selectedAnnotations'])_0x67fa2b['includes'](_0x23c0a6)||this['_manuallyClosedAnnotationViews']['delete'](_0x23c0a6['view']);this['_selectedAnnotations']=_0x67fa2b;}['_refreshPositioning'](){const _0x311a5b=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x311a5b['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x2ad1bb){if(this['_manuallyClosedAnnotationViews']['has'](_0x2ad1bb['view']))return;const _0x4b1368=this['balloonPanelView']['content']['first'];_0x4b1368!==_0x2ad1bb['view']?(_0x4b1368&&this['_detachListeners'](_0x4b1368),this['_attachListeners'](_0x2ad1bb['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x2ad1bb['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x81fc4d=this['balloonPanelView']['content']['first'],_0x1b9a2a=_0x81fc4d&&this['annotations']['getByView'](_0x81fc4d);if(!_0x1b9a2a||!this['_annotationToNarrowView']['has'](_0x1b9a2a))return;const _0x570939=this['_annotationToNarrowView']['get'](_0x1b9a2a)['element'],_0x1dd64a=(function(){const _0x494dae=_0x3f2722['defaultPositions'];return[_0x494dae['southArrowNorthEast'],_0x494dae['northArrowSouthEast'],_0x494dae['southArrowNorth'],_0x494dae['northArrowSouth'],_0x494dae['southArrowNorthWest'],_0x494dae['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x570939,'positions':_0x1dd64a});}['_hideBalloon'](){const _0xc08cf7=this['balloonPanelView'],_0x36b6de=_0xc08cf7['content']['first'];_0x36b6de&&(this['_detachListeners'](_0x36b6de),_0xc08cf7['unpin'](),_0xc08cf7['content']['clear']());}['_attachListeners'](_0x213837){this['listenTo'](_0x213837,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x213837,'Esc',(_0x2903c9,_0x381711)=>{this['_manuallyClosedAnnotationViews']['add'](_0x213837),this['_hideBalloon'](),_0x381711();});}['_detachListeners'](_0x515f9f){this['stopListening'](_0x515f9f);}}class c extends _0x48bfeb{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x1a8a04,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x477b4c){super(_0x477b4c),_0x477b4c['editing']['view']['addObserver'](_0x584d78),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x477b4c['plugins']['get'](_0x1a8a04),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x406a04=this['editor']['plugins']['get'](j);_0x406a04['context']===this['editor']&&(_0x406a04['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x535cd8,_0x2949da)=>{const _0x25edb0=this['_balloon'];if(this['isAttached']&&_0x25edb0['visibleView']){const _0x18a5f0=this['annotations']['getByView'](_0x25edb0['visibleView']);_0x18a5f0&&this['_closeAnnotation'](_0x18a5f0),_0x2949da();}}));}['afterInit'](){const _0x2342bf=this['editor']['plugins']['get'](j);_0x2342bf['context']===this['editor']&&(_0x2342bf['hasActive']()||_0x2342bf['switchTo']('inline'));}['setActiveAnnotation'](_0x17b14c){_0x17b14c!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x17b14c&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x17b14c)&&this['_addAnnotationToBalloon'](_0x17b14c,!0x0),_0x17b14c['isActive']=!0x0),_0x17b14c||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x17b14c);}['attach'](_0x40f455){this['annotations']=_0x40f455;const _0xad2e71=this['editor']['plugins']['get'](j),_0x498182=this['_balloon'];if(this['isAttached'])throw new _0xb7f752('inlineannotations-attach-already-attached',this);if(_0xad2e71['context']!==this['editor'])throw new _0xb7f752('inlineannotations-not-allowed-with-context',this);const _0x185619=this['editor']['plugins']['get'](b);this['listenTo'](_0x185619,'refresh',()=>{const _0x12ab09=_0x185619['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x2f3da9,_0x26498f;!this['_forceRefresh']&&(_0x2f3da9=_0x12ab09,_0x26498f=this['_selectedAnnotations'],_0x2f3da9['length']===_0x26498f['length']&&_0x2f3da9['every'](_0x55a18e=>_0x26498f['includes'](_0x55a18e)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x12ab09),this['setActiveAnnotation'](_0x12ab09[0x0]||null));}),this['listenTo'](_0x185619,'blur',(_0x178acd,{isAnnotationTracked:_0x3c8af9})=>{this['activeAnnotation']&&_0x3c8af9(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x34a15d,_0x22abc0,_0x315572)=>{_0x315572||this['setActiveAnnotation'](null);}),this['listenTo'](_0x40f455,'remove',(_0x126c08,_0x503f8e)=>{this['_removeAnnotationFromBalloon'](_0x503f8e),_0x503f8e===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x498182,'change:visibleView',(_0x9bffe1,_0x5eeb15,_0x4f342c,_0x22e866)=>{_0x22e866&&this['stopListening'](_0x22e866);const _0xf32a92=_0x40f455['getByView'](_0x4f342c);_0x4f342c&&_0xf32a92&&(this['listenTo'](_0x4f342c,'change:height',()=>{_0x498182['updatePosition']();}),this['listenTo'](_0x4f342c,'Esc',()=>{this['_closeAnnotation'](_0xf32a92),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xf32a92&&this['setActiveAnnotation'](_0xf32a92));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x498182['visibleView']&&(_0x40f455['getByView'](_0x498182['visibleView'])&&_0x498182['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 _0xb7f752('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xfecb22 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xfecb22);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x514700){for(const _0x3d2290 of this['_selectedAnnotations'])_0x514700['includes'](_0x3d2290)||this['_manuallyClosed']['delete'](_0x3d2290);for(const _0x3da9ef of this['annotations'])_0x514700['includes'](_0x3da9ef)||this['_removeAnnotationFromBalloon'](_0x3da9ef);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x432271 of _0x514700)this['_addAnnotationToBalloon'](_0x432271);}this['_selectedAnnotations']=_0x514700;}['_addAnnotationToBalloon'](_0x44e8de,_0x20706a=!0x1){this['_manuallyClosed']['has'](_0x44e8de)||(this['_addedAnnotations']['has'](_0x44e8de)||this['_balloon']['hasView'](_0x44e8de['view'])||(this['_addedAnnotations']['add'](_0x44e8de),this['_balloon']['add']({'stackId':_0x44e8de['view']['id'],'view':_0x44e8de['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x44e8de)}})),_0x20706a&&this['_balloon']['showStack'](_0x44e8de['view']['id']));}['_getBalloonTargetForAnnotation'](_0xf9a756){const _0x5b72a5=_0xf9a756['target'],_0x4ff2e5=this['editor']['editing']['view'],_0x5e8477=_0x4ff2e5['document']['selection']['getFirstRange'](),_0x1db26b=_0x4ff2e5['domConverter']['viewRangeToDom'](_0x5e8477);if(_0x1db26b['collapse'](!0x0),_0x5b72a5){if(_0x5b72a5 instanceof _0x3e90cd)return _0x5b72a5;let _0x2c9013=[];for(const _0x29ea80 of _0x5b72a5)_0x2c9013['push'](...F(_0x29ea80['getClientRects']()));_0x2c9013=function(_0x16828a){const _0x1d39a5=[];let _0x57be6a=_0x16828a[0x0];for(let _0x5a21b2=0x1;_0x5a21b2<_0x16828a['length'];_0x5a21b2++)P(_0x57be6a,_0x16828a[_0x5a21b2])?_0x57be6a['width']+=_0x16828a[_0x5a21b2]['width']:(_0x1d39a5['push'](_0x57be6a),_0x57be6a=_0x16828a[_0x5a21b2]);return _0x1d39a5['push'](_0x57be6a),_0x1d39a5;}(_0x2c9013);const _0x36546b=_0x1db26b['getBoundingClientRect']();return _0x2c9013['find'](_0x14a990=>_0x14a990['top']<=_0x36546b['top']&&_0x14a990['bottom']>=_0x36546b['bottom']&&_0x14a990['left']<=_0x36546b['left']&&_0x14a990['right']>=_0x36546b['right'])||_0x2c9013[0x0];}return _0xf9a756['targetRect']||_0x1db26b;}['_removeAnnotationFromBalloon'](_0x28bd9f){this['_addedAnnotations']['has'](_0x28bd9f)&&this['_balloon']['hasView'](_0x28bd9f['view'])&&(this['_addedAnnotations']['delete'](_0x28bd9f),this['_balloon']['remove'](_0x28bd9f['view']));}['_closeAnnotation'](_0x40d6d8){this['_manuallyClosed']['add'](_0x40d6d8),this['_removeAnnotationFromBalloon'](_0x40d6d8);}}function F(_0x3174ad){return Array['from'](_0x3174ad)['map'](DOMRect['fromRect']);}function P(_0x5070cc,_0x4fa880){return _0x5070cc['top']===_0x4fa880['top']&&_0x5070cc['bottom']===_0x4fa880['bottom']&&_0x5070cc['right']===_0x4fa880['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x136f76,_0x33a133){super(_0x136f76),this['set']('isEmpty',!_0x33a133['length']),this['focusTracker']=new _0x2070b8(),this['_annotationViews']=_0x33a133,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x2a7d1c({'focusables':_0x33a133,'focusTracker':this['focusTracker']}),this['listenTo'](_0x33a133,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x33a133,'remove',(_0x415701,_0xb4c49b)=>{_0xb4c49b['isActive']&&this['focus'](),_0x33a133['length']||(this['isEmpty']=!0x0);});const _0x4b4834=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x136f76,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x33a133},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4b4834['if']('isEmpty','ck-hidden',_0x5ab4ec=>!_0x5ab4ec)]},'children':[{'text':N(_0x136f76,'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 _0x1579a9 of this['_annotationViews'])this['focusTracker']['add'](_0x1579a9['element']);this['_annotationViews']['on']('change',(_0x5352b0,{added:_0x3adfd6,removed:_0x1e1654})=>{for(const _0x2a68fb of _0x3adfd6)this['focusTracker']['add'](_0x2a68fb['element']);for(const _0x3af033 of _0x1e1654)this['focusTracker']['remove'](_0x3af033['element']);});}}class p extends _0x6c42d0{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x446431){super(_0x446431),this['archivedThreads']=new _0x3c8425();}['init'](){const _0x308912=this['context'],_0x3cd0f9=_0x308912['plugins']['get'](o),_0x25176b=_0x308912['plugins']['get'](y);this['listenTo'](_0x3cd0f9,'addCommentThread',(_0x43f024,{threadId:_0x4f1945})=>{const _0x56557d=_0x3cd0f9['getCommentThread'](_0x4f1945);_0x56557d['archivedAt']&&this['archivedThreads']['add'](_0x56557d,this['_calculatePosition'](_0x56557d['archivedAt'])),this['listenTo'](_0x56557d,'change:archivedAt',(_0x4d76a7,_0x5ed03e,_0x5df5eb)=>{_0x5df5eb?this['archivedThreads']['has'](_0x56557d)||this['archivedThreads']['add'](_0x56557d,this['_calculatePosition'](_0x56557d['archivedAt'])):this['archivedThreads']['has'](_0x56557d)&&this['archivedThreads']['remove'](_0x56557d);});}),this['listenTo'](_0x3cd0f9,'removeCommentThread',(_0x28ad95,{threadId:_0x4dc260})=>{const _0x8151e2=_0x3cd0f9['getCommentThread'](_0x4dc260);this['stopListening'](_0x8151e2),this['archivedThreads']['has'](_0x8151e2)&&this['archivedThreads']['remove'](_0x8151e2);},{'priority':'highest'}),this['listenTo'](_0x25176b['collection'],'focus',(_0x5d6597,_0x3ace29)=>{_0x3ace29['isVisible']||(_0x3ace29['isActive']=!0x0,_0x25176b['activate'](_0x3ace29));});}['_calculatePosition'](_0xb836a8){const _0x4e01b3=[...this['archivedThreads']]['findIndex'](_0x50e02b=>_0x50e02b['archivedAt']<_0xb836a8);return _0x4e01b3>-0x1?_0x4e01b3:this['archivedThreads']['length'];}}class a extends _0x48bfeb{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x3c6c5d];}constructor(_0x266241){super(_0x266241),this['annotationViews']=new _0x20b7d7(),this['_pendingThreads']=[];}['init'](){const _0x145b1e=this['editor'],_0x592253=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x145b1e['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x52b512,!0x0)),_0x145b1e['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0xa952e=this['_createCommentsArchiveButton'](_0x13493c);return _0xa952e['set']({'role':'menuitemcheckbox'}),_0xa952e;});const _0x415a01=_0x145b1e['plugins']['get'](p),_0x5d5605=_0x145b1e['plugins']['get']('Annotations'),_0x4c5705=_0x145b1e['plugins']['get']('CommentsRepository');_0x415a01['archivedThreads']['forEach'](_0x5ca2e0=>{this['_handleNewThread'](_0x5ca2e0);}),this['listenTo'](_0x415a01['archivedThreads'],'add',(_0x570dce,_0xfc0d0a)=>{this['_handleNewThread'](_0xfc0d0a);}),this['listenTo'](_0x5d5605['collection'],'add',(_0xcf08b8,_0x18db34)=>{const _0x558bff=this['_pendingThreads']['find'](_0x44eab4=>{const _0x20ac82=_0x4c5705['_threadToController']['get'](_0x44eab4);return _0x20ac82&&_0x18db34['innerView']===_0x20ac82['view'];});if(_0x558bff){const _0x1beed1=this['_calculatePosition'](_0x558bff['archivedAt']);this['annotationViews']['add'](_0x18db34['view'],_0x1beed1),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x558bff),0x1);}}),this['listenTo'](_0x415a01['archivedThreads'],'remove',(_0x2887d9,_0x238c3c)=>{const _0x588556=_0x145b1e['config']['get']('collaboration.channelId');if(!_0x588556||_0x238c3c['channelId']===_0x588556){if(this['_pendingThreads']['includes'](_0x238c3c))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x238c3c),0x1);else{const _0x3eacf5=_0x4c5705['_threadToController']['get'](_0x238c3c),_0x1cecd1=_0x5d5605['getByInnerView'](_0x3eacf5['view']);this['annotationViews']['remove'](_0x1cecd1['view']),this['stopListening'](_0x1cecd1['focusableElements']);}}}),this['listenTo'](_0x5d5605['collection'],'add',(_0x12e8a4,_0x41ef86)=>{this['listenTo'](_0x41ef86,'escape',_0x592253);}),this['listenTo'](_0x5d5605['collection'],'remove',(_0x436a38,_0x56d3c9)=>{this['stopListening'](_0x56d3c9,'escape',_0x592253);});}['_handleNewThread'](_0x46702b){const _0x148613=this['editor']['plugins']['get']('CommentsRepository'),_0x228134=this['editor']['plugins']['get']('Annotations'),_0x25acc1=this['editor']['config']['get']('collaboration.channelId');if(!_0x25acc1||_0x46702b['channelId']===_0x25acc1){const _0x2f26bd=_0x148613['_threadToController']['get'](_0x46702b);if(!_0x2f26bd)return void this['_pendingThreads']['push'](_0x46702b);const _0x2ae9ee=this['_calculatePosition'](_0x46702b['archivedAt']),_0x5e163b=_0x228134['getByInnerView'](_0x2f26bd['view']);_0x5e163b['isVisible']&&_0x228134['_visibleAnnotations']['remove'](_0x5e163b),this['annotationViews']['add'](_0x5e163b['view'],_0x2ae9ee);}}['_calculatePosition'](_0x531267){const _0x286c98=this['editor']['config']['get']('collaboration.channelId'),_0xed6f86=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x4fba3e=>_0x4fba3e['channelId']===_0x286c98)['findIndex'](_0x35f10f=>_0x35f10f['archivedAt']<_0x531267);return _0xed6f86<0x0||_0xed6f86>this['annotationViews']['length']?this['annotationViews']['length']:_0xed6f86-0x1;}['_toggleDialog'](){const _0x32bed2=this['editor'],_0x49f5cc=_0x32bed2['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x32bed2['locale'],this['annotationViews'])),'commentsArchive'===_0x49f5cc['id']?_0x49f5cc['hide']():_0x49f5cc['show']({'id':'commentsArchive','title':N(_0x32bed2['locale'],'COMMENTS_ARCHIVE'),'icon':_0x23771b,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x4ff308['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x3fb4e1,_0x46fe35=!0x1){const _0xf8a6a4=this['editor']['locale'],_0x59f38b=this['editor']['plugins']['get']('Dialog'),_0xf0a73f=new _0x3fb4e1(_0xf8a6a4);return _0xf0a73f['bind']('isEnabled')['to'](this,'isEnabled'),_0xf0a73f['bind']('isOn')['to'](_0x59f38b,'id',_0x324acc=>'commentsArchive'===_0x324acc),_0xf0a73f['set']({'label':N(_0xf8a6a4,'COMMENTS_ARCHIVE'),'icon':_0x23771b,'isToggleable':!0x0}),_0x46fe35&&(_0xf0a73f['tooltip']=!0x0),this['listenTo'](_0xf0a73f,'execute',()=>this['_toggleDialog']()),_0xf0a73f;}['_hideDialogOnAnnotationEscape']=_0x52c0e6=>{const _0x56a7e5=_0x52c0e6['source'];if(!this['annotationViews']['has'](_0x56a7e5['view']))return;const _0xa47832=this['editor']['plugins']['get']('Dialog');_0xa47832['isOpen']&&'commentsArchive'===_0xa47832['id']&&(_0xa47832['hide'](),_0x52c0e6['stop']());};}class gi extends _0x48bfeb{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};