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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +11 -11
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +19 -19
  150. package/src/annotations/annotation.js +2 -2
  151. package/src/annotations/annotationcollection.js +1 -1
  152. package/src/annotations/annotations.js +1 -1
  153. package/src/annotations/annotationsuis.js +1 -1
  154. package/src/annotations/editorannotations.js +1 -1
  155. package/src/annotations/inlineannotations.js +1 -1
  156. package/src/annotations/narrowsidebar.js +1 -1
  157. package/src/annotations/sidebar.js +1 -1
  158. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  159. package/src/annotations/view/annotationview.js +1 -1
  160. package/src/annotations/view/sidebaritemview.js +2 -2
  161. package/src/annotations/view/sidebarview.js +2 -2
  162. package/src/annotations/widesidebar.js +1 -1
  163. package/src/comments/addcommentthreadcommand.js +1 -1
  164. package/src/comments/commentsarchive.js +1 -1
  165. package/src/comments/commentsarchiveui.js +1 -1
  166. package/src/comments/commentsediting.js +1 -1
  167. package/src/comments/commentsrepository.js +3 -3
  168. package/src/comments/commentsui.js +1 -1
  169. package/src/comments/integrations/clipboard.js +1 -1
  170. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  171. package/src/comments/integrations/importword.js +1 -1
  172. package/src/comments/integrations/showcommenthighlights.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  174. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  175. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  176. package/src/comments/ui/commentthreadcontroller.js +2 -2
  177. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  178. package/src/comments/ui/view/basecommentview.js +1 -1
  179. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  180. package/src/comments/ui/view/commentcontentview.js +1 -1
  181. package/src/comments/ui/view/commentinputview.js +1 -1
  182. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  183. package/src/comments/ui/view/commentslistview.js +1 -1
  184. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  185. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  186. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  187. package/src/comments/ui/view/commentthreadview.js +2 -2
  188. package/src/comments/ui/view/commentview.js +2 -2
  189. package/src/comments.js +1 -1
  190. package/src/commentsonly.js +1 -1
  191. package/src/index.js +1 -1
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.js +1 -1
  194. package/src/utils/splitmarkername.js +1 -1
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x15bb05,ContextPlugin as _0x35dfc2,PendingActions as lt,Command as _0x445992,Plugin as _0x3732d9,Context as _0x55e756}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1d2f19,uid as _0x1684c5,KeystrokeHandler as jt,FocusTracker as _0x242e0a,diff as _0x1b3644,Collection as _0x22714a,Rect as _0x5f3a0a,CKEditorError as _0x29e429,first as _0x1b9b5e,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x10f0fb,keyCodes as _0x39b093}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x32d2d9,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x54e09b,trimHtml as ts,LateFocusDropdownButtonView as _0x58b89e,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x333141}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x340747}from'es-toolkit/compat';import{IconUndo as _0x5c7493,IconCheck as _0xfcd11b,IconPencil as _0x2b6859,IconRemoveComment as _0x2395f3,IconThreeVerticalDots as _0x5f16e5,IconAddComment as _0x10df15,IconCommentsArchive as _0x43bc8d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x470c60,ButtonView as _0x222733,ViewCollection as _0xd5b2d1,createDropdown as _0x1e7d35,ListView as _0x25995c,focusChildOnDropdownOpen as _0x1626d8,ListItemView as _0x2937d3,MenuBarMenuListItemButtonView as _0x59a680,BodyCollection as _0x2dc30b,BalloonPanelView as _0x318538,ContextualBalloon as _0x3d3d3f,Dialog as _0x2561e8,DialogViewPosition as _0x9c172b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x3d1846}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x59830c}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x46b3bf}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
- _0x1d2f19(){['model'];['view'];constructor(_0x5bd10b,_0x4d6028){super(),this['model']=_0x5bd10b,this['model']['_isAttached']=!0x0,this['view']=_0x4d6028,this['listenTo'](_0x4d6028,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x4d6028,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x4d6028,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x4d6028,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x4d6028,'addComment',(_0x538c5b,_0x3718f8)=>this['addComment'](_0x3718f8)),this['listenTo'](_0x4d6028,'updateComment',(_0x3c1c0e,_0x2ab555,_0x3064d3)=>this['updateComment'](_0x2ab555,_0x3064d3)),this['listenTo'](_0x4d6028,'removeComment',(_0x3583ec,_0x402e76)=>this['removeComment'](_0x402e76));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x357289){this['model']['addComment']({'content':_0x357289,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x2c313e,_0x4b5bc6){this['model']['getComment'](_0x2c313e)['update']({'content':_0x4b5bc6});}['removeComment'](_0x237d4b){this['model']['getComment'](_0x237d4b)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x48cb0d,_0x3f6b8b,_0x246c23){const t=_0x48cb0d['t'];switch(_0x3f6b8b){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x246c23);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x246c23);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x246c23);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x246c23);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x246c23);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x246c23);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x246c23);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x246c23);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x3c96dd,_0x50b514){super(_0x3c96dd);const _0x46bbe2=_0x1684c5();this['main']=this['createCollection'](),this['editable']=new Vt(_0x3c96dd,_0x50b514,void 0x0,{'label':()=>N(_0x3c96dd,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x3c96dd['uiLanguageDirection'],'lang':_0x3c96dd['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x46bbe2},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x6d546a){super(_0x6d546a),this['view']=new Rt(_0x6d546a['locale'],_0x6d546a['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x4ed6cc=this['editor']['editing']['view'],_0x1d28ff=this['view']['editable'],_0x13e52f=_0x4ed6cc['document']['getRoot']();_0x1d28ff['name']=_0x13e52f['rootName'],this['view']['render']();const _0x35ca69=_0x1d28ff['element'];this['setEditableElement'](_0x1d28ff['name'],_0x35ca69),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4ed6cc['attachDomRoot'](_0x35ca69),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
- _0x1d2f19(_0x15bb05){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Qt)());constructor(_0x1a1cdb={}){function _0x4e168d(_0x18da2a){return _0x18da2a['map'](_0x2be1a1=>String['fromCharCode'](_0x2be1a1))['join']('');}(_0x1a1cdb=Object['assign']({},_0x1a1cdb))['plugins']||(_0x1a1cdb['plugins']=hs['defaultPlugins']),super(_0x1a1cdb),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x4e168d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e168d([0x76,0x69,0x65,0x77])][_0x4e168d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e168d([0x61,0x75,0x74,0x6f]),this[_0x4e168d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4e168d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e168d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4e168d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4e168d([0x6f,0x6b])});}['create'](){const _0xc9147=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xc9147))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x3d3633=>{const _0x1f357d=this['model']['document']['getRoot'](),_0x1d6575=_0x1f357d&&_0x1f357d['getChild'](_0x1f357d['childCount']-0x1);_0x3d3633['setSelection'](_0x1d6575,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2d6e93=this['editing']['view'],_0x47db0f=_0x2d6e93['document']['getRoot'](),_0x1ead01=_0x47db0f['getChild'](0x0);_0x47db0f['childCount']>0x1||!_0x1ead01||'p'!=_0x1ead01['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x2d6e93,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x1ead01['placeholder']=this['placeholder']),Ft({'view':_0x2d6e93,'element':_0x1ead01,'keepOnFocus':!0x0}),this['placeholderElement']=_0x1ead01);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x35c7d2,_0x2a64ce={}){super(_0x35c7d2),this['editor']=null,this['_editorConfig']=_0x2a64ce,this['set']('value',_0x2a64ce['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x35c7d2,'Reply...')),this['set']('submitLabel',N(_0x35c7d2,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x242e0a(),this['focusCycler']=new _0x470c60({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x2c2aad,_0x2cd3b7)=>{this['cancelButtonView']['fire']('execute'),_0x2cd3b7();}),this['keystrokes']['set']('Ctrl+Enter',(_0x2eb027,_0x5b7135)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x5b7135());}),this['on']('submit',(_0xb4bde0,_0x4e8698)=>{_0x4e8698['length']>0xfde8?(alert(N(_0x35c7d2,'TOO_LONG_COMMENT_ALERT',[_0x4e8698['length'],0xfde8])),_0xb4bde0['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x46998d=this['editor'];this['element']['insertBefore'](_0x46998d['ui']['element'],this['element']['firstChild']),_0x46998d['model']['document']['on']('change',()=>this['value']=_0x46998d['getData']()),_0x46998d['bind']('placeholder')['to'](this),this['focusables']['add'](_0x46998d['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0xe4575){-0x1===_0xe4575?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0xa1c306}=this,_0x55616c=new _0x222733(_0xa1c306);return _0x55616c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x55616c['withText']=!0x0,_0x55616c['bind']('label')['to'](this,'submitLabel'),_0x55616c['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x55616c['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1ab701,_0x368f80)=>!_0x368f80&&!!_0x1ab701['trim']()),_0x55616c;}['_createCancelButton'](){const {locale:_0x54e0b4}=this,_0x3cb205=new _0x222733(_0x54e0b4);return _0x3cb205['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x3cb205['label']=N(_0x54e0b4,'Cancel'),_0x3cb205['withText']=!0x0,_0x3cb205['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x3cb205;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x2facde=>{this['focusTracker']['add'](_0x2facde['element']);}),this['focusables']['on']('change',(_0x5cca09,_0x53dffa)=>{for(const _0x52c6ef of Array['from'](_0x53dffa['added'])['reverse']())this['focusTracker']['add'](_0x52c6ef['element']);});}}class ie extends kt{constructor(_0x37a5e1,_0x117dbe,_0x154715){super(_0x37a5e1),this['commentInputView']=new es(_0x37a5e1,_0x154715),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2b00c6,_0x57e02c)=>_0x2b00c6||!!_0x57e02c),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x32d2d9(_0x37a5e1,_0x117dbe),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x50ca0a){this['commentInputView']['focus'](_0x50ca0a);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0xb5d4b4,_0x393e42)=>{const {submitButtonView:_0x35aac9,cancelButtonView:_0x949d59,editor:_0x332253}=this['commentInputView'];[_0x35aac9['element'],_0x949d59['element'],_0x332253?_0x332253['editing']['view']['getDomRoot']():null]['filter'](_0xe8c435=>_0xe8c435)['some'](_0x172d2b=>_0x172d2b['contains'](_0x393e42['target']))||(this['focus'](),_0x393e42['preventDefault']());});}}class rs extends kt{constructor(_0x50915f){super(_0x50915f);const _0x280492=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x280492['to']('count',_0x4d588a=>N(_0x50915f,'NUMBER_OF_COMMENTS',_0x4d588a))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x2f2101,_0x5c9b3b,_0x29c862){super(_0x2f2101);const _0x59dcb2=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x5c9b3b['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x5c9b3b,this['_config']=_0x29c862,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x242e0a(),this['keystrokes']=new jt(),this['focusCycler']=new _0x470c60({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb88673=>this['commentViews']['map'](_0xd79fba=>_0xd79fba['element'])['includes'](_0xb88673['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x2f2101),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x41957d=>_0x41957d-this['_config']['maxCommentsWhenCollapsed']);for(const _0x441392 of _0x5c9b3b['comments'])this['_handleNewCommentModel'](_0x441392);this['_handleInfoComment'](),this['listenTo'](_0x5c9b3b['comments'],'add',(_0x459e70,_0x3f4ecd)=>{const _0x3b8b8f=this['_calculatePosition'](_0x3f4ecd);this['length']++,this['_handleNewCommentModel'](_0x3f4ecd,_0x3b8b8f),this['refreshVisibleViews']();}),this['listenTo'](_0x5c9b3b['comments'],'remove',(_0x4973dd,_0x1e440e)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1e440e),this['refreshVisibleViews']();}),this['listenTo'](_0x5c9b3b,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x5c9b3b,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x59dcb2['if']('length','ck-hidden',_0x552c82=>!_0x552c82)],'aria-label':N(_0x2f2101,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x24e541){-0x1===_0x24e541?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x22af77 of this['commentViews'])_0x22af77['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x1be304,_0x3a9dde){const _0x3e2131=new this['_config']['CommentView'](this['locale'],_0x1be304,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x3e2131['viewUid']=_0x1be304['id'],_0x3e2131['delegate']('removeComment')['to'](this),_0x3e2131['delegate']('updateComment')['to'](this),_0x3e2131['delegate']('resolveCommentThread')['to'](this),_0x3e2131['delegate']('editorReady')['to'](this),_0x3e2131['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x3e2131,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x3e2131,_0x3a9dde);}['_calculatePosition'](_0x5058fe){const _0x1f4d3f=this['_model']['_findOptimalIndex'](_0x5058fe);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x5058fe['authoredAt']?_0x1f4d3f-0x1:_0x1f4d3f:_0x1f4d3f-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x10b346={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x10b346,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x10b346));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x18439f){const _0x28fca2=this['commentViews']['remove'](_0x18439f['id']);this['stopListening'](_0x28fca2),_0x28fca2['isEditMode']&&this['_updateHasDirtyComment'](),_0x28fca2['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x286f9c=>_0x286f9c['isEditMode']);}['_rearrangeCollapse'](){const _0x5ce691=function(_0x5bd4c8){const _0x52ea3e=new _0x22714a();for(const _0x41905d of _0x5bd4c8)_0x52ea3e['add'](_0x41905d);return _0x52ea3e;}(this['commentViews']),_0x13d9af=this['_collapsedCommentsView']['count'];for(let _0x338493=0x1;_0x338493<=_0x13d9af;_0x338493++)_0x5ce691['remove'](0x1);for(const _0x5eefaa of _0x5ce691)_0x5eefaa['collapse']();_0x13d9af>0x0&&_0x5ce691['add'](this['_collapsedCommentsView'],0x1),ns(_0x1b3644(Array['from'](this['visibleViews']),Array['from'](_0x5ce691)),this['visibleViews'],_0x5ce691);}['_rearrangeExpand'](){ns(_0x1b3644(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1ff63b of this['visibleViews'])_0x1ff63b['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x28564a=>{this['focusTracker']['add'](_0x28564a['element']),this['keystrokes']['listenTo'](_0x28564a['element']);}),this['commentViews']['on']('change',(_0xc0b8bc,_0x51ecc6)=>{for(const _0x4e41c7 of _0x51ecc6['removed'])this['focusTracker']['remove'](_0x4e41c7['element']),this['keystrokes']['stopListening'](_0x4e41c7['element']);for(const _0x2d058b of Array['from'](_0x51ecc6['added'])['reverse']())this['focusTracker']['add'](_0x2d058b['element']),this['keystrokes']['listenTo'](_0x2d058b['element']);});}}function ns(_0x7516f7,_0x36d1ab,_0x12d99d){let _0x20fc15=0x0;for(const _0x3dc7b1 of _0x7516f7)switch(_0x3dc7b1){case'insert':_0x36d1ab['add'](_0x12d99d['get'](_0x20fc15),_0x20fc15),_0x20fc15++;break;case'delete':_0x36d1ab['remove'](_0x20fc15);break;case'equal':_0x20fc15++;}}class oe extends kt{constructor(_0x5828a7){super(_0x5828a7);const _0x5737e1=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x5737e1['to']('contextValue',_0x2c9f7a=>N(_0x5828a7,'THREAD_CONTEXT_LABEL',_0x2c9f7a)),'tabindex':-0x1},'children':[{'text':_0x5737e1['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2704be,_0x3c594f){super(_0x2704be);const _0x32d36f=this['bindTemplate'];this['_model']=_0x3c594f,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x242e0a(),this['keystrokes']=new jt(),this['focusCycler']=new _0x470c60({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x40799e=>!!_0x40799e),this['bind']('contextValue')['to'](this['_model'],'context',_0x72b1e3=>_0x72b1e3&&_0x72b1e3['value']?this['_trimContextValue'](_0x72b1e3['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x32d36f['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x3e4604=new _0x222733(this['locale']);return _0x3e4604['label']=N(this['locale'],'Reopen'),_0x3e4604['tooltip']=N(this['locale'],'Reopen'),_0x3e4604['icon']=_0x5c7493,_0x3e4604['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x26f7da=>!_0x26f7da),_0x3e4604['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x16cfcd,_0x3b747b)=>_0x16cfcd&&_0x3b747b),_0x3e4604['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3e4604;}['_trimContextValue'](_0x4e153c){if(_0x4e153c['length']<0x96)return _0x4e153c;const _0x1bf133=_0x4e153c['lastIndexOf']('\x20',0x93);return _0x4e153c['substring'](0x0,_0x1bf133>-0x1?_0x1bf133:0x93)+'...';}['_attachContextActions'](){const _0x5033f2=this['element']['querySelector']('.ck-context'),_0x13823a=_0x5033f2['querySelector']('.ck-context__value');this['listenTo'](_0x5033f2,'mouseenter',()=>{_0x13823a['offsetWidth']<_0x13823a['scrollWidth']&&_0x5033f2['classList']['add']('overlay');}),this['listenTo'](_0x5033f2,'mouseleave',()=>{_0x5033f2['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0xbbb896 of this['focusables'])this['focusTracker']['add'](_0xbbb896['element']),this['keystrokes']['listenTo'](_0xbbb896['element']);}['_createContextView'](){const _0x3e07d5=new oe(this['locale']);return _0x3e07d5['bind']('contextValue')['to'](this),_0x3e07d5;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1e57e9,_0xa6a4a4,_0x5567f4,_0x3efe99){super(_0x1e57e9),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xa6a4a4,this['_localUser']=_0x5567f4,this['_config']=_0x3efe99,this['commentThreadHeaderView']=new Xt(_0x1e57e9,_0xa6a4a4),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x1e57e9,N(_0x1e57e9,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1e57e9,_0xa6a4a4,Object['assign']({'CommentView':this['_config']['CommentView']},_0x3efe99)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x24a8a6,_0x1683bd)=>_0x24a8a6||!!_0x1683bd),this['bind']('isUnlinked')['to'](_0xa6a4a4,'unlinkedAt',_0x377307=>!!_0x377307),this['bind']('ariaLabel')['to'](this,'length',_0x43d02d=>{const _0x510a8a=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x43d02d,_0x510a8a]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x242e0a(),this['keystrokes']=new jt(),this['focusCycler']=new _0x470c60({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4ed622=>_0x4ed622['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x2ab9=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x8aa457=_0x2ab9['commentInputView'];return _0x2ab9['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x8aa457,'value',(_0x24e272,_0xb67687,_0x461593,_0xb22d1e,_0x3dbd0c)=>!!_0x3dbd0c||!!_0xb22d1e&&_0x461593&&!_0xb67687||_0x24e272&&_0x461593&&!_0xb67687),_0x8aa457['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x300eb5,_0x5d1589,_0x110185)=>{let _0x3131c1;return _0x3131c1=_0x110185&&_0x5d1589?'Reply\x20to\x20reopen\x20discussion...':_0x300eb5?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x3131c1);}),_0x8aa457['bind']('submitLabel')['to'](this,'length',_0x30af8f=>N(this['locale'],_0x30af8f?'Reply':'Comment')),_0x8aa457['on']('submit',(_0x596cd1,_0x4d8985)=>{this['fire']('addComment',_0x4d8985),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x8aa457['on']('cancel',()=>{this['focus']();}),_0x8aa457['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x8aa457['on']('cancel',_0x12327d=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x12327d['stop']());}),this['on']('change:isActive',(_0x12b61d,_0x406e01,_0x3bd3d5)=>{_0x3bd3d5||this['length']||_0x8aa457['value']||this['fire']('removeCommentThread');}),_0x2ab9;}}class gt extends/* #__PURE__ -- @preserve */
27
- ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x34cb24,_0x217b77,_0x3e87cc,_0x6049c6){super(_0x34cb24,_0x217b77,_0x3e87cc,_0x6049c6),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x34cb24,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x5a2351,_0x15139f,_0x478c6f)=>{_0x478c6f||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x10fcef,_0x53fee7,_0x459a17)=>{_0x459a17&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x39d724=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x39d724['if']('isActive','ck-thread--active'),_0x39d724['if']('isUnlinked','ck-thread--unlinked'),_0x39d724['to']('actionIndicator',_0x229e00=>_0x229e00?'ck-thread--'+_0x229e00:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x39d724['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x320f75 of this['commentsListView']['commentViews'])_0x320f75['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x28dd2c}=this,_0x3e4828=this['commentsListView']['commentViews']['get'](0x0);_0x3e4828===this['_boundFirstCommentView']||_0x3e4828['isSystemComment']||(this['_boundFirstCommentView']=_0x3e4828,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x3e4828,'actionIndicator',_0x52b984=>'remove'===_0x52b984?'remove':null),_0x3e4828['placeholder']=N(_0x28dd2c,'Write\x20a\x20comment...'),_0x3e4828['removeButton']['on']('execute',_0x360609=>{_0x360609['stop'](),this['showConfirm'](N(_0x28dd2c,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x3e4828['focus']();}),_0x3e4828['actionBar']['add'](this['resolveButton'],0x0),_0x3e4828['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x488ce5=new _0x54e09b(this['locale']);return _0x488ce5['label']=N(this['locale'],'Resolve'),_0x488ce5['tooltip']=N(this['locale'],'Resolve'),_0x488ce5['icon']=_0xfcd11b,_0x488ce5['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x488ce5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x8e492c=>!_0x8e492c),_0x488ce5['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x27950d,_0x439528)=>_0x27950d&&!_0x439528),_0x488ce5['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x488ce5;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0x55761b){super(_0x55761b),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x56de2c,_0x1ed984,_0x151eb3)=>{this['element']['innerHTML']=_0x151eb3;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4740a6,_0xdd3fa6,_0x3af06e){super(_0x4740a6),this['_model']=_0xdd3fa6,this['_config']=_0x3af06e,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0xdd3fa6,'content',_0xdd3fa6,'authoredAt',(_0x2d23ea,_0x5a8af9)=>N(_0x4740a6,'COMMENT_ARIA_LABEL',[_0xdd3fa6['author']['name'],_0x3af06e['formatDateTime'](_0x5a8af9),new DOMParser()['parseFromString'](_0x2d23ea,'text/html')['body']['textContent'],_0xdd3fa6['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x4740a6,N(_0x4740a6,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0xd5b2d1(),this['focusTracker']=new _0x242e0a(),this['keystrokes']=new jt(),this['focusCycler']=new _0x470c60({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ac730=>_0x2ac730['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x40f2b8=new is(this['locale']);return _0x40f2b8['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x47cfe8,_0x4403fd)=>_0x4403fd?ts(_0x47cfe8,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x47cfe8),_0x40f2b8;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x4b37b9=new es(this['locale'],this['_config']['editorConfig']);return _0x4b37b9['value']=this['_model']['content'],_0x4b37b9['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4b37b9['submitLabel']=N(this['locale'],'Save'),_0x4b37b9['on']('submit',(_0x55ac0e,_0x588812)=>{this['fire']('updateComment',this['_model']['id'],_0x588812),this['switchToDisplayMode'](),this['focus']();}),_0x4b37b9['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x4b37b9['once']('editorReady',()=>{_0x4b37b9['focus']();}),_0x4b37b9['createEditor'](),_0x4b37b9['delegate']('editorReady')['to'](this),_0x4b37b9['delegate']('editorDestroyed')['to'](this),_0x4b37b9;}['_setupKeyboardNavigation'](){const _0x5e3dbb=this['element'];this['keystrokes']['listenTo'](_0x5e3dbb);for(const _0x3c9ff9 of this['focusables'])this['focusTracker']['add'](_0x3c9ff9['element']),this['keystrokes']['listenTo'](_0x3c9ff9['element']);this['focusables']['on']('change',(_0x182aee,_0x3c153f)=>{for(const _0x35a4b2 of _0x3c153f['removed'])this['focusTracker']['remove'](_0x35a4b2['element']),this['keystrokes']['stopListening'](_0x35a4b2['element']);for(const _0x497944 of _0x3c153f['added'])this['focusTracker']['add'](_0x497944['element']),this['keystrokes']['listenTo'](_0x497944['element']);}),this['keystrokes']['set']('enter',(_0xfe7e9c,_0x16cfb6)=>{_0x5e3dbb===_0xfe7e9c['target']&&(this['focusCycler']['focusFirst'](),_0x16cfb6());}),this['keystrokes']['set']('esc',(_0x2be29a,_0xe8ce62)=>{_0x5e3dbb!==_0x2be29a['target']&&(this['focus'](),_0xe8ce62());});}}class Tt extends/* #__PURE__ -- @preserve */
28
- ti(di){['actionBar'];['userView'];constructor(_0x5193d1,_0x3b26b9,_0x52187d){super(_0x5193d1,_0x3b26b9,_0x52187d),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x5193d1,'Reply...')),this['bind']('authoredAt')['to'](_0x3b26b9),this['bind']('resolvedAt')['to'](_0x3b26b9),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x32d2d9(_0x5193d1,_0x3b26b9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3b26b9,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x46e05e=this['bindTemplate'],_0x2d95fc=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x46e05e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46e05e['to']('authoredAt',_0x3bc6ce=>this['_config']['formatDateTime'](_0x3bc6ce))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x46e05e['if']('isEditMode','ck-comment__actions--hidden'),_0x46e05e['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x2d95fc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x46e05e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x46e05e['if']('isEditMode','ck-comment--edit'),_0x46e05e['if']('isSystemComment','ck-comment--info'),_0x46e05e['to']('actionIndicator',_0x3e4ade=>_0x3e4ade?'ck-comment--'+_0x3e4ade:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x2d95fc}]}]};}['_createEditButton'](){const _0xb96adc=new _0x222733(this['locale']);return _0xb96adc['label']=N(this['locale'],'Edit'),_0xb96adc['icon']=_0x2b6859,_0xb96adc['withText']=!0x0,_0xb96adc['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0xb96adc['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xfd2666=>!_0xfd2666),_0xb96adc['bind']('isVisible')['to'](this['_model'],'isEditable'),_0xb96adc['on']('execute',()=>this['switchToEditMode']()),_0xb96adc;}['_createRemoveButton'](){const _0x1eef63=new _0x222733(this['locale']);return _0x1eef63['label']=N(this['locale'],'Remove'),_0x1eef63['icon']=_0x2395f3,_0x1eef63['withText']=!0x0,_0x1eef63['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x1eef63['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5c1cce=>!_0x5c1cce),_0x1eef63['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x1eef63['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x1eef63;}['_createDropdown'](){const _0x42a6a6=_0x1e7d35(this['locale'],_0x58b89e),_0x2c60c4=_0x42a6a6['panelView']['children'],_0x201ba4=new _0x25995c(this['locale']),_0x13acab=_0x42a6a6['bindTemplate'];_0x1626d8(_0x42a6a6,()=>this['items']['find'](_0x1d3ada=>_0x1d3ada['isVisible'])),_0x42a6a6['extendTemplate']({'attributes':{'class':[_0x13acab['if']('isVisible','ck-hidden',_0x46411c=>!_0x46411c)]}});const _0x5e2b6d=(_0x3a00d5,_0x2cd24a=-0x1)=>{const _0x4e40a8=new _0x2937d3(this['locale']);_0x4e40a8['children']['add'](_0x3a00d5);const _0xdfc502=_0x2cd24a>-0x1?_0x2cd24a:_0x201ba4['items']['length'];_0x201ba4['items']['add'](_0x4e40a8,_0xdfc502);const _0x53d0dc=Array['from'](this['items']);_0x42a6a6['unbind']('isEnabled','isVisible'),_0x42a6a6['bind']('isEnabled')['toMany'](_0x53d0dc,'isEnabled',(..._0x24b9a5)=>_0x24b9a5['some'](_0x3b97fe=>_0x3b97fe)),_0x42a6a6['bind']('isVisible')['toMany'](_0x53d0dc,'isVisible',(..._0x45e734)=>_0x45e734['some'](_0x5ec05b=>_0x5ec05b));};_0x42a6a6['panelPosition']='sw',_0x42a6a6['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x5f16e5});for(const _0x53ecc8 of this['items'])_0x5e2b6d(_0x53ecc8);return _0x2c60c4['add'](_0x201ba4),_0x42a6a6['listenTo'](this['items'],'add',(_0x2cd40e,_0x59c7f8,_0x32827b)=>{_0x5e2b6d(_0x59c7f8,_0x32827b);}),_0x42a6a6['listenTo'](this['items'],'remove',(_0x825a9a,_0x293daa,_0x33064c)=>{_0x201ba4['items']['remove'](_0x33064c);}),_0x42a6a6;}['_attachActions'](_0x3b6dd1,_0x3ea82b){const _0x54782b=_0x3b6dd1&&_0x3b6dd1['element'];_0x54782b&&(this['listenTo'](_0x54782b,'mouseenter',()=>this['actionIndicator']=_0x3ea82b),this['listenTo'](_0x54782b,'focus',()=>this['actionIndicator']=_0x3ea82b),this['listenTo'](_0x54782b,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x54782b,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x57bdf7=super['_createCommentInputView']();return _0x57bdf7['bind']('placeholder')['to'](this),_0x57bdf7;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x2c08d6){const _0xe4f9cb=Dt(_0x2c08d6,0x1e),_0x3ff573=new MutationObserver(_0x4abb25=>{for(const _0x59ac56 of _0x4abb25)('attributes'==_0x59ac56['type']&&'class'==_0x59ac56['attributeName']||'childList'==_0x59ac56['type']||'characterData'==_0x59ac56['type'])&&_0xe4f9cb();});return{'attach'(_0x43c9f4){_0x3ff573['observe'](_0x43c9f4,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3ff573['disconnect'](),_0xe4f9cb['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x1f7daa,_0x319661){super(_0x1f7daa),this['id']=_0x1684c5(),this['focusTracker']=new _0x242e0a(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x2421c2,_0x3d71ef)=>this['fire']('Esc',_0x3d71ef)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x319661),this['mainView']=_0x319661;const _0x93f89a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x93f89a['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x586ee5=this['element']['clientHeight'];_0x586ee5&&(this['height']=_0x586ee5);}}class T extends/* #__PURE__ -- @preserve */
29
- _0x1d2f19(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x475759,target:_0x4e27c3,type:_0x342890,isVisible:_0x41c6b2=!0x0}){super(),this['view']=_0x475759,this['view']['element']||this['view']['render'](),this['_type']=_0x342890,this['_target']=_0x4e27c3,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x22714a([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x478620,_0x5dcfb2)=>{this['view']['focusTracker']['add'](_0x5dcfb2);}),this['focusableElements']['on']('remove',(_0x35a1c4,_0x458dbd)=>{this['view']['focusTracker']['remove'](_0x458dbd);}),this['set']('isVisible',_0x41c6b2);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1b1b69=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x1b1b69),_0x1b1b69;}get['targetRect'](){const _0x2d7515=this['target'];if(null===_0x2d7515)return null;if(_0x2d7515 instanceof _0x5f3a0a)return _0x2d7515;const _0x234a26=_0x2d7515['filter'](_0x533dab=>function(_0x184002){const _0x4304db=_0x184002['offsetParent'];if(_0x4304db)return!0x0;const _0x4cbc2a=_0x184002['getClientRects']()['item'](0x0);return!!_0x4cbc2a;}(_0x533dab));return 0x0===_0x234a26['length']?null:new _0x5f3a0a(_0x234a26[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x51081b){this['view']['isActive']=_0x51081b,this['view']['mainView']['isActive']=_0x51081b;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3e4ebc){if(!(null===_0x3e4ebc||_0x3e4ebc instanceof _0x5f3a0a||Array['isArray'](_0x3e4ebc)&&_0x3e4ebc['every'](_0x1dba6d=>fi(_0x1dba6d))))throw new _0x29e429('annotation-invalid-target',null,{'target':_0x3e4ebc});}['_getNormalizedTarget'](){const _0x35ecf8='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x35ecf8)?[_0x35ecf8]:_0x35ecf8;}}function fi(_0x297c30){return null!==_0x297c30&&'object'==typeof _0x297c30&&'nodeType'in _0x297c30&&0x1===_0x297c30['nodeType'];}class S extends _0x22714a{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x571531=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x242e0a(),this['_focusTracker']['on']('change:isFocused',(_0x45630d,_0x271f71,_0x3e324b)=>{_0x3e324b||this['fire']('blur');});for(const _0x4f6d99 of _0x571531)this['add'](_0x4f6d99);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x491f6a){if(this['has'](_0x491f6a))throw new _0x29e429('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x491f6a['innerView'],_0x491f6a),this['_viewToAnnotation']['set'](_0x491f6a['view'],_0x491f6a);for(const _0x4ba22e of _0x491f6a['focusableElements'])this['_focusTracker']['add'](_0x4ba22e);this['listenTo'](_0x491f6a['focusableElements'],'add',(_0x5ffee0,_0x2a354a)=>{this['_focusTracker']['add'](_0x2a354a);}),this['listenTo'](_0x491f6a['focusableElements'],'remove',(_0x7440ec,_0x3685c5)=>{this['_focusTracker']['remove'](_0x3685c5);}),this['listenTo'](_0x491f6a['view']['focusTracker'],'change:isFocused',(_0x1bfd22,_0x29beaf,_0xa9834)=>{_0xa9834&&this['fire']('focus',_0x491f6a);}),_0x491f6a['updateTargetRect']();const _0x53d425=this['_getOrderInContent'](_0x491f6a['view']['targetRect']);return super['add'](_0x491f6a,_0x53d425);}['remove'](_0x13105c){if(!this['has'](_0x13105c))throw new _0x29e429('annotationcollection-not-existing-item',null);this['stopListening'](_0x13105c['view']['focusTracker']),this['stopListening'](_0x13105c['focusableElements']);for(const _0x193f66 of _0x13105c['focusableElements'])this['_focusTracker']['remove'](_0x193f66);return this['_viewToAnnotation']['delete'](_0x13105c['view']),this['_innerViewToAnnotation']['delete'](_0x13105c['innerView']),super['remove'](_0x13105c);}['getByInnerView'](_0x311587){return this['_innerViewToAnnotation']['get'](_0x311587);}['getByView'](_0xf1d10d){return this['_viewToAnnotation']['get'](_0xf1d10d);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x5f15d4 of this)_0x5f15d4['updateTargetRect']();this['_sort']();}['_sort'](){const _0x5a3667=Array['from'](this)['sort']((_0x3315d5,_0x4b0b62)=>w(_0x3315d5['view']['targetRect'],_0x4b0b62['view']['targetRect']));for(let _0x3010d9=_0x5a3667['length']-0x1;_0x3010d9>0x0;_0x3010d9--){const _0x163a47=_0x5a3667[_0x3010d9];_0x3010d9!==this['getIndex'](_0x163a47)&&(this['remove'](_0x163a47),this['add'](_0x163a47));}}['_getOrderInContent'](_0x279ae8){let _0x476451=0x0;if(!_0x279ae8)return this['length'];for(const _0x29af88 of this){const _0x3e8dee=_0x29af88['view']['targetRect'];if(_0x3e8dee){if(w(_0x279ae8,_0x3e8dee)<0x0)return _0x476451;_0x476451++;}}return _0x476451;}}function v({source:_0x8f42e5,target:_0x309cc2,filter:_0x5ccce3}){for(const _0x96fd98 of _0x8f42e5)_0x5ccce3(_0x96fd98)&&_0x309cc2['add'](_0x96fd98);_0x309cc2['listenTo'](_0x8f42e5,'add',(_0x98f593,_0x2133c4)=>{_0x5ccce3(_0x2133c4)&&_0x309cc2['add'](_0x2133c4);}),_0x309cc2['listenTo'](_0x8f42e5,'remove',(_0xde6c4c,_0x2475c3)=>{_0x309cc2['has'](_0x2475c3)&&_0x309cc2['remove'](_0x2475c3);});}function w(_0x151975,_0x188b40){if(null===_0x151975&&null===_0x188b40)return 0x0;if(null===_0x151975)return-0x1;if(null===_0x188b40)return 0x1;const _0x16bdc5=_0x151975['top']-_0x188b40['top'];return 0x0==_0x16bdc5?_0x151975['left']-_0x188b40['left']:_0x16bdc5;}class y extends _0x35dfc2{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x66640){if(super(_0x66640),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x66640 instanceof _0x15bb05){const _0x48f900=_0x66640['locale'];_0x66640['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x48f900,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2dcc4c){this['collection']['add'](_0x2dcc4c);}['remove'](_0x2257e5){this['collection']['remove'](_0x2257e5),_0x2257e5['destroy']();}['refreshVisibility'](){for(const _0x5a2d86 of this['collection'])_0x5a2d86['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x3eed44){return this['collection']['getByInnerView'](_0x3eed44);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x57f578 of this['collection'])_0x57f578['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x4241df){this['fire']('_activateAnnotation',_0x4241df);}['createAnnotation'](_0xe2c3d8){return new T(_0xe2c3d8);}['createAnnotationView'](_0x4308d6,_0x1a6457){return new E(_0x4308d6,_0x1a6457);}['_addActiveAnnotation'](_0x440eb5){const _0x3b4483=new Set(this['activeAnnotations']);_0x3b4483['add'](_0x440eb5),this['activeAnnotations']=_0x3b4483;}['_removeActiveAnnotation'](_0x1783aa){const _0x5e8a2c=new Set(this['activeAnnotations']);_0x5e8a2c['delete'](_0x1783aa),this['activeAnnotations']=_0x5e8a2c;}['_bindAnnotationsToVisibleAnnotations'](){const _0x32eef3=this['collection'],_0x2ec07d=this['_visibleAnnotations'];function _0x288a1c(_0x4a9149){const _0x125e9f=_0x4a9149['source'];_0x125e9f['isVisible']&&!_0x2ec07d['has'](_0x125e9f)?_0x2ec07d['add'](_0x125e9f):!_0x125e9f['isVisible']&&_0x2ec07d['has'](_0x125e9f)&&_0x2ec07d['remove'](_0x125e9f),_0x125e9f['view']['focusTracker']['remove'](_0x125e9f['view']['element']),_0x125e9f['view']['focusTracker']['add'](_0x125e9f['view']['element']);}this['listenTo'](_0x32eef3,'add',(_0xa58c7,_0x412fea)=>{_0x412fea['isVisible']&&_0x2ec07d['add'](_0x412fea),this['listenTo'](_0x412fea,'change:isVisible',_0x288a1c);}),this['listenTo'](_0x32eef3,'remove',(_0x55ad37,_0x10f5dc)=>{_0x2ec07d['has'](_0x10f5dc)&&_0x2ec07d['remove'](_0x10f5dc),this['stopListening'](_0x10f5dc,'change:isVisible',_0x288a1c);});}['_setupEnterAnnotationKeystroke'](){const _0xe47a89=_0x573fba=>{_0x573fba['on']('ready',()=>{_0x573fba['keystrokes']['set'](_0x59830c,(_0x49778d,_0x16cd47)=>{const _0x4e8f80=_0x1b9b5e(this['activeAnnotations']['values']());_0x4e8f80&&(_0x4e8f80['view']['focus'](),_0x16cd47());});});};this['context']instanceof _0x15bb05?_0xe47a89(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1ad7b9,_0x385e64)=>{_0xe47a89(_0x385e64);});}['_setupEscapeAnnotationHandling'](){const _0xe2065d=_0x108021=>{const _0x1080e4=_0x108021['source'],_0xddafca=[];let _0x1ffe7d;if(Array['isArray'](_0x1080e4['target'])){_0x1ffe7d=_0x1080e4['target'][0x0],this['context']instanceof _0x15bb05?_0xddafca['push'](this['context']):this['context']['editors']&&_0xddafca['push'](...this['context']['editors']);for(const _0x186f8c of _0xddafca)for(const _0xa36665 of _0x186f8c['editing']['view']['domRoots']['values']())if(_0xa36665['contains'](_0x1ffe7d))return void _0x186f8c['editing']['view']['focus']();_0x1ffe7d['focus']();}};this['listenTo'](this['collection'],'add',(_0x5b0c82,_0x21503b)=>{this['listenTo'](_0x21503b,'escape',_0xe2065d,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x492cf6,_0x932763)=>{this['stopListening'](_0x932763,'escape',_0xe2065d);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x35dfc2{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x378ca8){super(_0x378ca8),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x5127a9=this['context']['config'];_0x5127a9['define']('comments.maxCommentsWhenCollapsed',0x2),_0x5127a9['define']('comments.maxThreadTotalWeight',0x1f4),_0x5127a9['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x5127a9['define']('comments.CommentThreadView',gt),_0x5127a9['define']('comments.CommentView',Tt),_0x5127a9['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x38f883=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x5462dd,_0x1c02cb)=>this['_addCommentThread'](_0x1c02cb)),this['on']('submitCommentThread',(_0x3c34e7,_0x3e0ee6)=>this['_submitCommentThread'](_0x3e0ee6)),this['on']('resolveCommentThread',(_0x55dbdd,_0x1858bb)=>this['_resolveCommentThread'](_0x1858bb)),this['on']('resolveCommentThread',(_0x31f38a,_0x5b9ce9)=>this['_updateActiveAnnotation'](_0x5b9ce9),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x3863a5,_0x113d2e)=>this['_reopenCommentThread'](_0x113d2e)),this['on']('reopenCommentThread',(_0x1ca13d,_0x209cb6)=>this['_updateActiveAnnotation'](_0x209cb6),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x18a949,_0x31f443)=>this['_removeCommentThread'](_0x31f443)),this['on']('updateCommentThread',(_0x3f501a,_0x21852d)=>this['_updateCommentThread'](_0x21852d)),this['on']('updateCommentThread',(_0x454acf,_0x4550e5)=>this['_updateActiveAnnotation'](_0x4550e5),{'priority':'lowest'}),this['on']('addComment',(_0x5d7773,_0x4d689b)=>this['_addComment'](_0x4d689b)),this['on']('updateComment',(_0x312121,_0x109cd0)=>this['_updateComment'](_0x109cd0)),this['on']('removeComment',(_0x37452f,_0x485d92)=>this['_removeComment'](_0x485d92)),this['on']('addComment',(_0x1b1d05,{threadId:_0x474cb1,isFromAdapter:_0x495448})=>{if(_0x495448)return;const _0x4ec203=this['getCommentThread'](_0x474cb1),_0x15665a=_0x4ec203&&this['_threadToController']['get'](_0x4ec203);_0x15665a&&_0x15665a['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x38f883,'change:activeAnnotations',(_0x2593ae,_0x20c669,_0x58d2a1)=>{const _0x148e1e=Array['from'](_0x58d2a1)['map'](_0x46bd72=>this['_viewToController']['get'](_0x46bd72['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x148e1e?_0x148e1e['model']:null;});}set['adapter'](_0x2431bf){if(this['_adapter'])throw new _0x29e429('commentsrepository-adapter-already-set');this['_adapter']=_0x2431bf;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4cdd6f=_t,threadId:_0x2997b8=_0x1684c5(),comments:_0x3a5992=[],unlinkedAt:_0x477da5=null,resolvedAt:_0x2c421a=null,resolvedBy:_0x3b820c=null,target:_0x13ac63=null,context:_0x2e3ebb=null,attributes:_0x33fefd={},isResolvable:_0x367101=!0x0,isSubmitted:_0x4f9fdb=!0x1,isFromAdapter:_0x7ee213=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x4cdd6f),{'channelId':_0x4cdd6f,'threadId':_0x2997b8,'comments':_0x3a5992,'unlinkedAt':_0x477da5,'resolvedAt':_0x2c421a,'resolvedBy':_0x3b820c,'target':_0x13ac63,'context':_0x2e3ebb,'attributes':_0x33fefd,'isFromAdapter':_0x7ee213,'isResolvable':_0x367101,'isSubmitted':_0x4f9fdb}),this['getCommentThread'](_0x2997b8);}['openNewCommentThread']({channelId:_0x25d2d7=_t,threadId:_0x2200cd=_0x1684c5(),target:_0x13eeff,context:_0x1caeb9=null,isResolvable:_0x2cffd7=!0x0}){if(this['_readOnlyChannels']['has'](_0x25d2d7)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x13eeff)throw new _0x29e429('commentsrepository-missing-target');const _0x48e739=this['addCommentThread']({'channelId':_0x25d2d7,'threadId':_0x2200cd,'target':_0x13eeff,'context':_0x1caeb9,'isResolvable':_0x2cffd7});if(!_0x48e739)return null;const _0x2ca53b=this['_threadToController']['get'](_0x48e739),_0x4e6117=_0x2ca53b['view']['commentThreadInputView']['commentInputView'],_0x9f2650=this['context']['plugins']['get'](y),_0x3e4fe3=_0x9f2650['getByInnerView'](_0x2ca53b['view']);return _0x9f2650['activate'](_0x3e4fe3),_0x4e6117['once']('editorReady',()=>_0x4e6117['focus']()),_0x48e739;}['hasCommentThread'](_0x5ac5b5){if('string'!=typeof _0x5ac5b5)throw new _0x29e429('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x5ac5b5);}['updateCommentThread']({channelId:_0x1b9707=_t,threadId:_0x32ccb8,context:_0x3609fb,unlinkedAt:_0x2534be,attributes:_0x544fb5,isFromAdapter:_0x57d861=!0x1}){return this['fire'](Nt('updateCommentThread',_0x1b9707),{'channelId':_0x1b9707,'threadId':_0x32ccb8,'context':_0x3609fb,'unlinkedAt':_0x2534be,'attributes':_0x544fb5,'isFromAdapter':_0x57d861}),this['getCommentThread'](_0x32ccb8);}['getCommentThread'](_0x1fb34a){if('string'!=typeof _0x1fb34a)throw new _0x29e429('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x1fb34a);}['fetchCommentThread']({channelId:_0x198ad1,threadId:_0x542140}={}){const _0x4f49c6=this['getCommentThread'](_0x542140);if(_0x4f49c6)return Promise['resolve'](_0x4f49c6);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x29e429('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x198ad1,'threadId':_0x542140})['then'](_0x308aff=>this['hasCommentThread'](_0x542140)?this['getCommentThread'](_0x542140):_0x308aff?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x198ad1},_0x308aff)):void 0x0)['catch'](_0x5db6b2=>{throw console['error'](_0x5db6b2),new _0x29e429('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5830be,skipNotAttached:_0x3140d9=!0x1,skipEmpty:_0x1b00b7=!0x1,toJSON:_0x2b538e=!0x1}={}){const _0x1198c6=[];for(const _0xf43a36 of this['_threads']['values']())_0x5830be&&_0xf43a36['channelId']!==_0x5830be||_0x3140d9&&!_0xf43a36['isAttached']||_0x1b00b7&&0x0===_0xf43a36['length']||_0x1198c6['push'](_0xf43a36);return _0x2b538e?_0x1198c6['map'](_0x5603a8=>_0x5603a8['toJSON']()):_0x1198c6;}['getAnnotationForCommentThread'](_0x5c76af){const _0x2e37bf=this['_threadToController']['get'](_0x5c76af);if(!_0x2e37bf)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x2e37bf['view'])||null;}['getCommentThreadForAnnotation'](_0x58df89){const _0x42a334=this['_viewToController']['get'](_0x58df89['innerView']);return _0x42a334?_0x42a334['model']:null;}['setActiveCommentThread'](_0x3bf568){const _0x47fcd5=this['context']['plugins']['get'](y);if(!_0x3bf568)return void(this['activeCommentThread']&&_0x47fcd5['deactivateAll']());const _0x466862=this['getCommentThread'](_0x3bf568);if(!_0x466862)throw new _0x29e429('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3bf568});if(!this['_threadToController']['has'](_0x466862))throw new _0x29e429('commentsrepository-active-not-attached',null,{'threadId':_0x3bf568});const _0x225237=_0x47fcd5['getByInnerView'](this['_threadToController']['get'](_0x466862)['view']);_0x47fcd5['activate'](_0x225237);}['switchReadOnly'](_0x5227d3,_0x599bc4){_0x5227d3?this['_readOnlyChannels']['add'](_0x599bc4):this['_readOnlyChannels']['delete'](_0x599bc4),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x2da56e){return this['_readOnlyChannels']['has'](_0x2da56e)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x501062,_0x1f5971){return new vt(_0x501062,_0x1f5971);}['setPermissions'](_0x360f0e,_0x13754e=_t){this['_permissions']['set'](_0x13754e,_0x360f0e),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x11dee8=_t){return this['_permissions']['has'](_0x11dee8)?this['_permissions']['get'](_0x11dee8):bt;}['_addCommentThread']({channelId:_0x4b603e,threadId:_0x4fb3bc,comments:_0xf97549,unlinkedAt:_0x213ac6,resolvedAt:_0x1bf8f9,resolvedBy:_0xc2f64b,target:_0x310fa6,context:_0x37f6a5,attributes:_0x5965af,isFromAdapter:_0x2f360f,isResolvable:_0x360ee6,isSubmitted:_0x3ed32e}){if('string'!=typeof _0x4fb3bc)throw new _0x29e429('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4fb3bc});if(this['hasCommentThread'](_0x4fb3bc))throw new _0x29e429('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x4fb3bc});const _0x18bc8a=new pi(this,{'channelId':_0x4b603e,'id':_0x4fb3bc,'context':_0x37f6a5,'attributes':_0x5965af,'unlinkedAt':_0x213ac6,'resolvedAt':_0x1bf8f9,'resolvedBy':_0xc2f64b?this['context']['plugins']['get'](it)['getUser'](_0xc2f64b):null,'isResolvable':_0x360ee6,'isSubmitted':_0x3ed32e||_0x2f360f});this['_threads']['set'](_0x4fb3bc,_0x18bc8a);for(const _0x33e2a2 of _0xf97549)_0x18bc8a['_add'](this['_createNewComment']({'threadId':_0x4fb3bc,..._0x33e2a2}));return _0x310fa6&&_0x18bc8a['attachTo'](_0x310fa6),_0x2f360f||!_0x18bc8a['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4b603e,'threadId':_0x4fb3bc});}['_submitCommentThread']({channelId:_0x57a407,threadId:_0x4817d5}){if(!this['hasCommentThread'](_0x4817d5))throw new _0x29e429('commentsrepository-missing-comment-thread',this);const _0x350eb2=this['getCommentThread'](_0x4817d5);if(_0x350eb2['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x206951,comments:_0x558f2c,resolvedAt:_0xb5169f,resolvedBy:_0x494ed4,context:_0x32dc99,attributes:_0x4dbf46}=_0x350eb2,_0x4a8939=this['context']['plugins']['get']('PendingActions'),_0x4ab284=_0x4a8939['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x57a407,'threadId':_0x206951,'comments':_0x558f2c['map'](_0x587e5d=>_0x587e5d['toJSON']()),'resolvedAt':_0xb5169f,'resolvedBy':_0x494ed4?_0x494ed4['id']:_0x494ed4,'context':_0x32dc99,'attributes':_0x4dbf46})['then'](({comments:_0x2a9f70})=>{_0x4a8939['remove'](_0x4ab284);for(const _0x1c2038 of _0x2a9f70)this['_updateComment']({'channelId':_0x57a407,'threadId':_0x4817d5,'commentId':_0x1c2038['commentId'],'createdAt':_0x1c2038['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4dddaa=>{throw console['error'](_0x4dddaa),new _0x29e429('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x115c42,target:_0x36cf94}){const _0x39c542=this['getCommentThread'](_0x115c42);if(!_0x39c542)throw new _0x29e429('commentsrepository-attach-missing-comment-thread',this);const _0x3f8ec2=this['context']['plugins']['get']('PendingActions'),_0x4a291f=this['context']['plugins']['get'](y),_0x6ea954=this['_createCommentThreadView'](_0x39c542),_0x586a7e=new vt(_0x39c542,_0x6ea954);let _0x4db6f5=null;_0x6ea954['on']('change:isDirty',(_0x2fdc20,_0x3a1cab,_0x1c4975)=>{_0x1c4975?_0x4db6f5=_0x3f8ec2['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4db6f5&&(_0x3f8ec2['remove'](_0x4db6f5),_0x4db6f5=null);}),this['_threadToController']['set'](_0x39c542,_0x586a7e),this['_viewToController']['set'](_0x6ea954,_0x586a7e);const _0x43c2ae=new E(this['context']['locale'],_0x6ea954);_0x43c2ae['bind']('length')['to'](_0x6ea954),_0x43c2ae['bind']('isDirty')['to'](_0x6ea954,'isDirty',_0x6ea954,'length',(_0x1a84e5,_0x347384)=>_0x1a84e5||!_0x347384),_0x43c2ae['bind']('isActive')['to'](_0x6ea954),_0x43c2ae['type']='comment';const _0x51675e=new T({'view':_0x43c2ae,'target':_0x36cf94,'type':'comment','isVisible':!_0x39c542['archivedAt']&&!!('function'==typeof _0x36cf94?_0x36cf94():_0x36cf94)});return _0x6ea954['on']('escape',()=>{_0x51675e['fire']('escape');}),this['_bindAnnotationToEditors'](_0x6ea954,_0x51675e),_0x4a291f['add'](_0x51675e),_0x51675e;}['_bindAnnotationToEditors'](_0x5852a5,_0x86d4dc){this['listenTo'](_0x5852a5,'editorReady',(_0x402c47,_0x55372a)=>{const _0x24c3a9=_0x55372a['ui']['view']['body']['bodyCollectionContainer'];_0x86d4dc['focusableElements']['add'](_0x24c3a9),this['context']instanceof _0x15bb05&&this['context']['ui']['focusTracker']['add'](_0x24c3a9);},{'priority':'highest'}),this['listenTo'](_0x5852a5,'editorDestroyed',(_0x131df7,_0x542a6f)=>{const _0x3c75b4=_0x542a6f['ui']['view']['body']['bodyCollectionContainer'];_0x86d4dc['focusableElements']['has'](_0x3c75b4)&&_0x86d4dc['focusableElements']['remove'](_0x3c75b4),this['context']instanceof _0x15bb05&&this['context']['ui']['focusTracker']['remove'](_0x3c75b4);});}['_unbindEditors'](_0x43530f){this['stopListening'](_0x43530f,'editorReady'),this['stopListening'](_0x43530f,'editorDestroyed');}['_createCommentThreadView'](_0x51f798){const _0x138942=this['context']['plugins']['get'](it),{config:_0x38e89e,locale:_0x345d64}=this['context'],_0x1787c0=pt(_0x38e89e['get']('locale'),_0x345d64);return new(0x0,(_0x38e89e['get']('comments'))['CommentThreadView'])(_0x345d64,_0x51f798,_0x138942['me'],{'editorConfig':{..._0x38e89e['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x38e89e['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x38e89e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x38e89e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x38e89e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1787c0,'CommentView':_0x38e89e['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x2f918d,channelId:_0x2043b0,resolvedAt:_0x9194bb,resolvedBy:_0x5d99ca,isFromAdapter:_0xd075ce}){if(!this['hasCommentThread'](_0x2f918d))throw new _0x29e429('commentsrepository-missing-comment-thread',null,{'threadId':_0x2f918d});const _0x30ebb9=this['getCommentThread'](_0x2f918d);if(_0x30ebb9['isResolved'])throw new _0x29e429('commentsrepository-resolved-comment-thread',null,{'threadId':_0x2f918d});const _0x27499d=this['context']['plugins']['get'](it);if(_0x30ebb9['resolvedBy']=_0x27499d['getUser'](_0x5d99ca),_0x30ebb9['resolvedAt']=_0x9194bb,_0xd075ce||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x3c6f3f=this['context']['plugins']['get']('PendingActions'),_0x3e9eb0=_0x3c6f3f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x2043b0,'threadId':_0x2f918d})['then'](({resolvedAt:_0x1b1a8b,resolvedBy:_0xc1bb78})=>{_0x3c6f3f['remove'](_0x3e9eb0),_0x30ebb9['resolvedBy']['id']!==_0xc1bb78&&(_0x30ebb9['resolvedBy']=_0x27499d['getUser'](_0xc1bb78)),_0x30ebb9['resolvedAt']=_0x1b1a8b;})['catch'](_0x34bff2=>{throw console['error'](_0x34bff2),new _0x29e429('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4b2a4f,channelId:_0x5b2822,isFromAdapter:_0xc0cc56}){if(!this['hasCommentThread'](_0x4b2a4f))throw new _0x29e429('commentsrepository-missing-comment-thread',null,{'threadId':_0x4b2a4f});const _0x157129=this['getCommentThread'](_0x4b2a4f);if(!_0x157129['isResolved'])throw new _0x29e429('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4b2a4f});if(_0x157129['resolvedBy']=null,_0x157129['resolvedAt']=null,_0xc0cc56||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x116db4=this['context']['plugins']['get']('PendingActions'),_0x4f9d10=_0x116db4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5b2822,'threadId':_0x4b2a4f})['then'](()=>_0x116db4['remove'](_0x4f9d10))['catch'](_0x163285=>{throw console['error'](_0x163285),new _0x29e429('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x161b55,isFromAdapter:_0x48067c}){const _0x53a9e5=this['getCommentThread'](_0x161b55);if(!_0x53a9e5)throw new _0x29e429('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x161b55),this['_threads']['delete'](_0x161b55),!_0x53a9e5['isSubmitted']||_0x48067c||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x86832c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1ef680}=_0x53a9e5,_0x2efd5c=_0x86832c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1ef680,'threadId':_0x161b55})['then'](()=>_0x86832c['remove'](_0x2efd5c))['catch'](_0x56d279=>{throw console['error'](_0x56d279),new _0x29e429('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x44c4d8,unlinkedAt:_0xc63c63,context:_0x1b61f8,attributes:_0xdb4bba,isFromAdapter:_0x3b3a0c}){if('string'!=typeof _0x44c4d8)throw new _0x29e429('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x44c4d8});if(!this['hasCommentThread'](_0x44c4d8))throw new _0x29e429('commentsrepository-missing-comment-thread',null,{'threadId':_0x44c4d8});const _0x56e8a3=this['getCommentThread'](_0x44c4d8);let _0x29d568=!0x1;if(void 0x0!==_0x1b61f8&&_0x56e8a3['context']!==_0x1b61f8&&(_0x56e8a3['context']=_0x1b61f8,_0x29d568=!0x0),void 0x0!==_0xc63c63&&_0x56e8a3['unlinkedAt']!==_0xc63c63&&(_0x56e8a3['unlinkedAt']=_0xc63c63,_0x29d568=!0x0),_0xdb4bba&&!At(_0xdb4bba,_0x56e8a3['attributes'])&&(_0x56e8a3['attributes']=_0xdb4bba,_0x29d568=!0x0),!_0x29d568)return Promise['resolve']();if(!_0x56e8a3['isSubmitted']||_0x3b3a0c||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x1571f1=this['context']['plugins']['get']('PendingActions'),{channelId:_0x359561}=_0x56e8a3,_0x281dd6=_0x1571f1['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x359561,'threadId':_0x44c4d8,'context':_0x1b61f8,'unlinkedAt':_0xc63c63,'attributes':_0xdb4bba})['then'](()=>_0x1571f1['remove'](_0x281dd6))['catch'](_0x1224f8=>{throw console['error'](_0x1224f8),new _0x29e429('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xecf025){const _0x1d50c1=this['context']['plugins']['get'](y),_0x1c1849=this['getCommentThread'](_0xecf025);if(_0x1c1849['_isAttached']=!0x1,this['_threadToController']['has'](_0x1c1849)){const _0x43e8a1=this['_threadToController']['get'](_0x1c1849),_0xc374a2=_0x43e8a1['view'],_0x586ace=_0x1d50c1['getByInnerView'](_0xc374a2);this['_threadToController']['delete'](_0x1c1849),this['_viewToController']['delete'](_0xc374a2),_0x586ace&&_0x1d50c1['remove'](_0x586ace),_0x43e8a1['destroy'](),_0xc374a2['destroy']()['then'](()=>{this['_unbindEditors'](_0xc374a2);});}}['_updateActiveAnnotation']({threadId:_0xabb278,resolvedAt:_0x29aeae,unlinkedAt:_0x198aa5}){const _0x145ae1=!!_0x29aeae,_0xca62bc=this['context']['plugins']['get'](y),_0x452900=this['getCommentThread'](_0xabb278);if(this['_threadToController']['has'](_0x452900)){const _0x30cdb4=this['_threadToController']['get'](_0x452900)['view'],_0x3c31a3=_0xca62bc['getByInnerView'](_0x30cdb4);_0x3c31a3&&(_0x145ae1&&_0xca62bc['_removeActiveAnnotation'](_0x3c31a3),_0x198aa5?_0x3c31a3['isVisible']=!0x1:_0x3c31a3['refreshVisibility']());}}['_getExternalAuthor'](_0xffdea7){const _0x2121a2=this['context']['plugins']['get'](it),_0x54ab28=It('external:'+_0xffdea7),_0x216fb7=_0x2121a2['getUser'](_0x54ab28);return _0x216fb7||_0x2121a2['addUser']({'id':_0x54ab28,'name':_0xffdea7});}['_createNewComment']({threadId:_0xdc39e1,commentId:_0x3053d5=_0x1684c5(),content:_0x547536,authorId:_0x3f756c,createdAt:_0x206c4d,attributes:_0x31f93e}){if('string'!=typeof _0x3053d5)throw new _0x29e429('commentsrepository-invalid-commentid');if('string'!=typeof _0x3f756c)throw new _0x29e429('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x547536||!_0x547536['trim']())throw new _0x29e429('commentsrepository-invalid-comment-content');const _0x50be35=this['context']['plugins']['get'](it)['getUser'](_0x3f756c);if(!_0x50be35)throw new _0x29e429('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x3f756c});let _0x5b2865=null,_0x55138a=_0x206c4d;return _0x31f93e?.['@external']&&(_0x5b2865=this['_getExternalAuthor'](_0x31f93e['@external']['authorName']),_0x55138a=new Date(_0x31f93e['@external']['createdAt'])),new wi(this,{'threadId':_0xdc39e1,'id':_0x3053d5,'author':_0x5b2865||_0x50be35,'creator':_0x50be35,'content':_0x547536,'createdAt':_0x206c4d,'authoredAt':_0x55138a,'attributes':_0x31f93e});}['_addComment'](_0x350b83){let {threadId:_0x1baa02,content:_0x287969,attributes:_0x1f9a6c,isFromAdapter:_0x153a76}=_0x350b83;const _0x208719=this['getCommentThread'](_0x350b83['threadId']);if(!_0x208719)throw new _0x29e429('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x3ca48a=this['_createNewComment'](_0x350b83),{id:_0x39fdd7}=_0x3ca48a;if(_0x208719['_add'](_0x3ca48a),_0x153a76||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x208719['isSubmitted'])return Promise['resolve']();const _0x123874=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2cf856}=_0x208719,_0x1412c7=_0x123874['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1f9a6c||(_0x1f9a6c={}),this['adapter']['addComment']({'channelId':_0x2cf856,'threadId':_0x1baa02,'commentId':_0x39fdd7,'content':_0x287969,'attributes':_0x1f9a6c})['then'](_0x29b7d6=>{_0x123874['remove'](_0x1412c7),_0x29b7d6&&this['_updateComment']({'channelId':_0x2cf856,'threadId':_0x1baa02,'commentId':_0x39fdd7,'createdAt':_0x29b7d6['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5b35d4=>{throw console['error'](_0x5b35d4),new _0x29e429('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x4d482f,commentId:_0x485c18,content:_0x1a66d3,createdAt:_0x433a5a,attributes:_0x1dba1b,isFromAdapter:_0x128bfd}){if(void 0x0!==_0x1a66d3&&('string'!=typeof _0x1a66d3||!_0x1a66d3['trim']()['length']))throw new _0x29e429('commentsrepository-update-comment-invalid-content');const _0x2990a8=this['getCommentThread'](_0x4d482f),_0x35c00a=_0x2990a8['getComment'](_0x485c18);if(!_0x35c00a)throw new _0x29e429('commentsrepository-update-missing-comment',this);let _0x575808=!0x1;if(_0x1a66d3&&_0x1a66d3!==_0x35c00a['content']&&(_0x35c00a['isEditable']||_0x128bfd)&&(_0x35c00a['content']=_0x1a66d3,_0x575808=!0x0),_0x433a5a&&_0x433a5a!==_0x35c00a['createdAt']&&(_0x35c00a['createdAt']=_0x433a5a,_0x35c00a['attributes']&&_0x35c00a['attributes']['@external']||(_0x35c00a['authoredAt']=_0x433a5a),_0x575808=!0x0),_0x1dba1b&&!At(_0x1dba1b,_0x35c00a['attributes'])&&(_0x35c00a['attributes']=_0x1dba1b,_0x575808=!0x0),!_0x575808)return Promise['resolve']();if(_0x2990a8['fire']('commentUpdated'),_0x128bfd||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x55ca04=this['context']['plugins']['get']('PendingActions'),{channelId:_0x442605}=this['getCommentThread'](_0x35c00a['threadId']),_0x3a9004=_0x55ca04['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x442605,'threadId':_0x4d482f,'commentId':_0x485c18,'content':_0x1a66d3,'attributes':_0x1dba1b})['then'](()=>_0x55ca04['remove'](_0x3a9004))['catch'](_0x26ac16=>{throw console['error'](_0x26ac16),new _0x29e429('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x166ac5,commentId:_0x11fca8,isFromAdapter:_0x2c66df}){const _0x555ddf=this['getCommentThread'](_0x166ac5),_0x3bde6c=_0x555ddf['getComment'](_0x11fca8);if(!_0x3bde6c)throw new _0x29e429('commentsrepository-remove-missing-comment',this);if(_0x555ddf['_remove'](_0x3bde6c),_0x2c66df||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x322485=this['context']['plugins']['get']('PendingActions'),{channelId:_0x13f9af}=_0x555ddf,_0x2b4c75=_0x322485['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x13f9af,'threadId':_0x166ac5,'commentId':_0x11fca8})['then'](()=>_0x322485['remove'](_0x2b4c75))['catch'](_0x3265e1=>{throw console['error'](_0x3265e1),new _0x29e429('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
- _0x1d2f19(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x40d829,_0x3a4104){super();const _0x3cc356=_0x3a4104['isResolvable'];this['channelId']=_0x3a4104['channelId'],this['id']=_0x3a4104['id'],this['comments']=new _0x22714a(),this['_repository']=_0x40d829,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3a4104['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x40d829,'_permissions',_0x40d829,'_readOnlyChannels',()=>_0x40d829['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x40d829,'_permissions',()=>_0x40d829['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x40d829,'_permissions',()=>{const _0x5de796=_0x40d829['getPermissions'](this['channelId']);return _0x5de796['write']||_0x5de796['admin'];}),this['bind']('isResolvable')['to'](_0x40d829,'_permissions',()=>_0x3cc356&&_0x40d829['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3a4104['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x480e51,_0x4af44e)=>_0x480e51?_0x4af44e?_0x480e51<_0x4af44e?_0x480e51:_0x4af44e:_0x480e51:_0x4af44e),this['set']('unlinkedAt',_0x3a4104['unlinkedAt']||null),this['set']('resolvedAt',_0x3a4104['resolvedAt']||null),this['set']('resolvedBy',_0x3a4104['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x2f1adc=>!!_0x2f1adc),this['set']('attributes',_0x3a4104['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0xc51a3e,_0x3a8fee)=>_0xc51a3e+_0x3a8fee['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x5bc1fd,id:_0x3a123b}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x5bc1fd),{'channelId':_0x5bc1fd,'threadId':_0x3a123b});}['setUnlinkedAt'](_0x3ab556){this['_update']({'unlinkedAt':_0x3ab556});}['resolve']({resolvedAt:_0x594c1e=new Date(),resolvedBy:_0xa6f6ef='',isFromAdapter:_0x401f9b=!0x1}={}){const _0x2f9cc2=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x4ca547,id:_0x5c6f31}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x4ca547),{'channelId':_0x4ca547,'threadId':_0x5c6f31,'resolvedAt':_0x594c1e,'resolvedBy':_0xa6f6ef||_0x2f9cc2['id'],'isFromAdapter':_0x401f9b});}['reopen']({isFromAdapter:_0x231811=!0x1}={}){const {channelId:_0x331a4e,id:_0x57469d}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x331a4e),{'channelId':_0x331a4e,'threadId':_0x57469d,'isFromAdapter':_0x231811});}['setContext'](_0x131de7){this['context']||this['_update']({'context':_0x131de7});}['setAttribute'](_0x2d0522,_0x255b44){const _0x332122=wt(this['attributes']);yt(_0x332122,_0x2d0522,_0x255b44),this['_update']({'attributes':_0x332122});}['removeAttribute'](_0x1b9aab){const _0x477474=wt(this['attributes']);Ct(_0x477474,_0x1b9aab),this['_update']({'attributes':_0x477474});}['remove']({isFromAdapter:_0x2ffc65=!0x1}={}){const {channelId:_0x3fef0c,id:_0x21c3e6}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x3fef0c),{'channelId':_0x3fef0c,'threadId':_0x21c3e6,'isFromAdapter':_0x2ffc65});}['attachTo'](_0x1cfd71){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1cfd71});}['addComment'](_0x7ab713){const {channelId:_0xfa2a68,id:_0x579136}=this;this['_repository']['fire'](Nt('addComment',_0xfa2a68,_0x579136),Object['assign']({'channelId':_0xfa2a68,'threadId':_0x579136},_0x7ab713));}['getComment'](_0x1f2e24){if('string'!=typeof _0x1f2e24)throw new _0x29e429('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x1f2e24});return this['comments']['get'](_0x1f2e24);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x238341=>_0x238341['toJSON']()),'attributes':this['attributes']};}['_add'](_0x3518d0){return this['listenTo'](_0x3518d0,'change:authoredAt',()=>{const _0x295376=this['_findOptimalIndex'](_0x3518d0),_0x222bcf=this['comments'];_0x295376-0x1!=_0x222bcf['getIndex'](_0x3518d0)&&_0x295376+0x1!=_0x222bcf['getIndex'](_0x3518d0)&&(this['_remove'](_0x3518d0),this['_add'](_0x3518d0));}),this['comments']['add'](_0x3518d0,this['_findOptimalIndex'](_0x3518d0));}['_update'](_0x2d0a8c){const {channelId:_0x47bbf3,id:_0x218b1b}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x47bbf3),{..._0x2d0a8c,'channelId':_0x47bbf3,'threadId':_0x218b1b});}['_remove'](_0x346a6d){return this['stopListening'](_0x346a6d),_0x346a6d['destroy'](),this['comments']['remove'](_0x346a6d);}['_findOptimalIndex'](_0xdbccaa){const _0x3c8dbf=this['comments']['find'](_0x14a11b=>new Date(_0x14a11b['authoredAt'])['getTime']()>new Date(_0xdbccaa['authoredAt'])['getTime']());return _0x3c8dbf?this['comments']['getIndex'](_0x3c8dbf):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
- _0x1d2f19(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x29c99d,_0x55ae09){super();const _0x2e489c=_0x29c99d['context']['plugins']['get'](it)['me'],_0x3ed136=_0x29c99d['getCommentThread'](_0x55ae09['threadId']),_0x116f64=0x0===_0x3ed136['comments']['length'],_0x3c2827=_0x2e489c===_0x55ae09['author'];this['id']=_0x55ae09['id'],this['threadId']=_0x55ae09['threadId'],this['author']=_0x55ae09['author'],this['creator']=_0x55ae09['creator'],this['isExternal']=Boolean(_0x55ae09['attributes']&&_0x55ae09['attributes']['@external']),this['set']('content',_0x55ae09['content']),this['createdAt']=_0x55ae09['createdAt']||new Date(),this['set']('authoredAt',_0x55ae09['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x3ed136,'resolvedAt'),this['set']('attributes',_0x55ae09['attributes']||{}),this['bind']('isEditable')['to'](_0x29c99d,'_permissions',()=>{const _0x51c774=_0x29c99d['getPermissions'](_0x3ed136['channelId'])['write'],_0x37db8f=_0x29c99d['getPermissions'](_0x3ed136['channelId'])['modifyAll'];return _0x3c2827&&_0x51c774||!_0x3c2827&&_0x37db8f;}),this['bind']('isRemovable')['to'](_0x3ed136,'isRemovable',_0x29c99d,'_permissions',_0x1d9b5e=>{const _0x14d3c3=_0x29c99d['getPermissions'](_0x3ed136['channelId'])['write'],_0x4dc627=_0x29c99d['getPermissions'](_0x3ed136['channelId'])['modifyAll'];return _0x3c2827&&_0x14d3c3||_0x1d9b5e&&_0x116f64||!_0x3c2827&&_0x4dc627&&!_0x116f64;}),this['bind']('isReadOnly')['to'](_0x3ed136,'isReadOnly'),this['_repository']=_0x29c99d;}get['weight'](){return Math['max'](function(_0x29839c){const _0x334e17=document['createElement']('div');return _0x334e17['innerHTML']=_0x29839c,_0x334e17['textContent']['length'];}(this['content']),0xc8);}['update'](_0x5b369a){const {threadId:_0x302c47,id:_0x57297d}=this;if(!this['_repository']['hasCommentThread'](_0x302c47))throw new _0x29e429('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x27f247}=this['_repository']['getCommentThread'](_0x302c47);this['_repository']['fire'](Nt('updateComment',_0x27f247,_0x302c47),{'channelId':_0x27f247,'threadId':_0x302c47,'commentId':_0x57297d,..._0x5b369a});}['setAttribute'](_0x34f280,_0x46c40f){const _0x519c48=wt(this['attributes']);yt(_0x519c48,_0x34f280,_0x46c40f),this['update']({'attributes':_0x519c48});}['removeAttribute'](_0xe53021){const _0x219764=wt(this['attributes']);Ct(_0x219764,_0xe53021),this['update']({'attributes':_0x219764});}['remove'](_0x49ca51={}){if(!_0x49ca51['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x14601f,id:_0x4b0b43}=this;if(!this['_repository']['hasCommentThread'](_0x14601f))throw new _0x29e429('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x40a6a7}=this['_repository']['getCommentThread'](_0x14601f);this['_repository']['fire'](Nt('removeComment',_0x40a6a7,_0x14601f),{'channelId':_0x40a6a7,'threadId':_0x14601f,'commentId':_0x4b0b43,..._0x49ca51});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x3e3e10,..._0x5693d3){for(const _0x28560c of _0x5693d3)void 0x0!==_0x28560c&&(_0x3e3e10+=':'+String(_0x28560c));return _0x3e3e10;}class ot extends _0x445992{constructor(_0xc91e5c){super(_0xc91e5c),this['set']('hasContent',!0x1);}['refresh'](){const _0x26ce93=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5bc93d of _0x26ce93['getRanges']())if(this['_hasContent'](_0x5bc93d))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x46cbff=_0x1684c5(),ranges:_0x49f3fd,comment:_0x3fbdaa}={}){const _0x2ed229=this['editor']['model'],_0x380f6f=_0x49f3fd??Array['from'](_0x2ed229['document']['selection']['getRanges']()),_0xc9ef73=[];for(const _0x1f41ea of _0x380f6f)this['_hasContent'](_0x1f41ea)&&_0xc9ef73['push'](this['_trimToContent'](_0x1f41ea));if(!_0xc9ef73['length'])throw new _0x29e429('addcommentthreadcommand-incorrect-ranges',null);_0x3fbdaa&&this['_createCommentThread'](_0x46cbff,_0x3fbdaa),this['_createMarkersFromRanges'](_0x46cbff,_0xc9ef73,!!_0x3fbdaa);}['_createMarkersFromRanges'](_0x163e1e,_0x303ab8,_0x346674){this['editor']['model']['change'](_0x35f664=>{for(const _0x1b1d44 of _0x303ab8){const _0x3fdd87=_0x1684c5()['substr'](0x1,0x5),_0x5d2204='comment:'+_0x163e1e+':'+_0x3fdd87;_0x35f664['addMarker'](_0x5d2204,{'range':_0x1b1d44,'usingOperation':_0x346674,'affectsData':_0x346674});}});}['_createCommentThread'](_0xbaf0b4,_0x63f4bf){const _0x6f5fea=this['editor']['plugins']['get']('CommentsRepository'),_0x20bc41=this['editor']['config']['get']('collaboration.channelId'),_0xc8c038=this['editor']['plugins']['get']('Users')['me'];if(!_0xc8c038)throw new _0x29e429('addcommentthreadcommand-user-not-found',null);_0x6f5fea['addCommentThread']({'threadId':_0xbaf0b4,'channelId':_0x20bc41,'comments':[{'authorId':_0xc8c038['id'],'content':_0x63f4bf,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x6ccb18){for(const _0x3f3b05 of _0x6ccb18['getItems']())if(this['_itemIsContent'](_0x3f3b05))return!0x0;return!0x1;}['_itemIsContent'](_0x5bbbad){return _0x5bbbad['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x5bbbad)&&!_0x5bbbad['is']('element','tableCell');}['_trimToContent'](_0x336bc9){const _0x2673c0=_0x2667f0=>!this['_itemIsContent'](_0x2667f0['item']),_0x15842a=_0x336bc9['start']['getLastMatchingPosition'](_0x2673c0),_0x3befad=_0x336bc9['end']['getLastMatchingPosition'](_0x2673c0,{'direction':'backward'});return this['editor']['model']['createRange'](_0x15842a,_0x3befad);}}class b extends _0x3732d9{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b08f8){super(_0x2b08f8),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5e02fa=this['editor'],_0x27fb0b=_0x5e02fa['model']['document']['selection'],_0x501d4a=_0x340747(()=>this['refreshSelectedViews'](),0xa);_0x27fb0b['on']('change:range',(_0x264f60,_0x10dcac)=>{_0x10dcac['directChange']&&(_0x501d4a['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5e02fa['editing']['view']['document'],'change:isFocused',(_0x3e413c,_0xae52f7,_0x1047ad)=>{_0x1047ad&&_0x501d4a();}),this['listenTo'](_0x5e02fa['ui']['focusTracker'],'change:isFocused',(_0x12e24d,_0x1f268e,_0x18ae6b)=>{_0x18ae6b||this['fire']('blur',{'isAnnotationTracked':_0x3edb45=>this['_editorAnnotationsData']['has'](_0x3edb45['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1f375c){if(this['_editorAnnotations']['has'](_0x1f375c['view']))return;this['_editorAnnotations']['add'](_0x1f375c['view']),this['editor']['ui']['focusTracker']['add'](_0x1f375c['view']['element']);const _0x79959c=this['editor']['plugins']['get'](y);this['listenTo'](_0x79959c['collection'],'remove',(_0x1ed863,_0x1b34e2)=>{this['editor']['ui']['focusTracker']['remove'](_0x1b34e2['view']['element']),this['_editorAnnotations']['delete'](_0x1b34e2['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x11490b){if('function'!=typeof _0x11490b)throw new _0x29e429('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x11490b);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x5270c1,annotations:_0x2fdcb6}){const _0x46eaa8=[],_0x2c627e=this['editor']['model']['document']['selection'],_0x45d8c1=Array['from'](_0x2c627e['getRanges']());for(const [_0x4f2c11,_0x150b29]of this['_editorAnnotationsData']){const _0x390702=_0x45f1a9(_0x150b29),_0x32c2a9=_0x2fdcb6['getByInnerView'](_0x4f2c11);_0x390702&&_0x32c2a9&&_0x46eaa8['push']({'annotation':_0x32c2a9,'range':_0x390702});}function _0x45f1a9(_0x2132fb){for(const _0x4e9c53 of _0x2132fb)for(const _0x44d830 of _0x45d8c1)if(_0x4e9c53['containsRange'](_0x44d830,!_0x2c627e['isCollapsed']))return _0x4e9c53;return null;}return _0x46eaa8['sort']((_0x7642e,_0x1dd6ec)=>{const _0x4c6c19=_0x7642e['range'],_0x429b77=_0x1dd6ec['range'];if(!_0x4c6c19['isEqual'](_0x429b77)){if(_0x4c6c19['containsRange'](_0x429b77,!0x0))return 0x1;if(_0x429b77['containsRange'](_0x4c6c19,!0x0))return-0x1;}return _0x7642e['annotation']==_0x5270c1?-0x1:_0x1dd6ec['annotation']==_0x5270c1?0x1:0x0;})['map'](_0x5186b8=>_0x5186b8['annotation']);}get['_editorAnnotationsData'](){const _0x363dd0=new Map();for(const _0x2cfe99 of Array['from'](this['_dataCollectors']))for(const [_0x84d8ec,_0x330465]of _0x2cfe99())_0x363dd0['set'](_0x84d8ec,_0x330465);return _0x363dd0;}}class st extends _0x3732d9{['afterInit'](){const _0x3f8c3e=this['editor'];if(!_0x3f8c3e['plugins']['has']('RestrictedEditingModeEditing'))return;_0x3f8c3e['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3732d9{constructor(_0x41c6de){super(_0x41c6de),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x32ba02=this['editor'],_0x58e587=_0x32ba02['commands']['get']('importWord'),_0x4caf3c=_0x32ba02['plugins']['get'](it);_0x58e587&&(_0x58e587['on']('execute',(_0x20f717,[,_0x25793d])=>{_0x25793d['collaboration_features']={'comments':!0x0,'user_id':_0x4caf3c['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x58e587,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0xe169aa,_0x3e7d8f){const {comment_threads:_0x58db26}=_0x3e7d8f;_0x58db26&&_0x58db26['forEach'](({thread_id:_0x591541,comments:_0x2b0e24,is_resolved:_0x122497})=>{const _0x57c6b7=new Date(),_0xd71b80=_0x2b0e24['map'](({author:_0x970922,content:_0x3c4cb4,created_at:_0x4dd203})=>({'content':_0x3c4cb4,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x57c6b7,'attributes':{'@external':{'authorName':_0x970922,'createdAt':_0x4dd203?new Date(_0x4dd203):new Date(),'source':'importWord'}}})),_0x4b566a=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4b566a,'threadId':_0x591541,'comments':_0xd71b80,'resolvedAt':_0x122497?_0x57c6b7:null});});}}class at extends _0x3732d9{constructor(_0x3e3f36){super(_0x3e3f36),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x414939=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x414939,'contentInsertion',(_0x17540c,_0x4599cd)=>this['_removeMarkersWithoutThreads'](_0x4599cd['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x2b0386){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x2b0386;const _0x9bc9f0=this['editor']['plugins']['get']('CommentsRepository');for(const _0x6ec00a of _0x2b0386['keys']()){const [_0x3a15a7,_0x118930]=_0x6ec00a['split'](':');'comment'!=_0x3a15a7||_0x9bc9f0['hasCommentThread'](_0x118930)||_0x2b0386['delete'](_0x6ec00a);}return _0x2b0386;}['_registerMarkerInClipboardPipeline'](){const _0x18ebb9=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x51f4f6=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x51f4f6&&_0x18ebb9['_registerMarkerToCopy']('comment',_0x51f4f6);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x590400){switch(_0x590400){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x9e2f87){const _0x123916=_0x9e2f87['split'](':');return{'group':_0x123916[0x0],'id':_0x123916[0x1],'part':_0x123916[0x2]};}class ut extends _0x3732d9{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x26c40e,_0x5e8693)=>{if(!_0x5e8693['options']['showCommentHighlights'])return null;if(_0x5e8693['options']['ignoreResolvedComments']){const {id:_0x41e9bf}=ft(_0x26c40e['markerName']),_0x2226f2=this['editor']['plugins']['get'](o);if(_0x2226f2['getCommentThread'](_0x41e9bf)?.['isResolved']&&_0x26c40e['item'])return _0x5e8693['consumable']['consume'](_0x26c40e['item'],'addMarker:'+_0x26c40e['markerName']),_0x5e8693['consumable']['consume'](_0x26c40e['item'],'removeMarker:'+_0x26c40e['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x43bd51=>{_0x43bd51['on']('addMarker:comment',(_0x24e32d,_0x443a4f,_0x5b5428)=>{if(!_0x5b5428['options']['showCommentHighlights'])return;const _0x10740d=_0x443a4f['item'];if(!_0x10740d)return;const _0x1f9a7b=_0x5b5428['mapper']['toViewElement'](_0x10740d);this['editor']['model']['schema']['isObject'](_0x10740d)&&_0x1f9a7b&&!_0x1f9a7b['getCustomProperty']('widget')&&_0x1f9a7b['is']('containerElement')&&_0x46b3bf(_0x1f9a7b,_0x5b5428['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x325985,{writer:_0x5b7c5c,options:_0xaab2db})=>{if(!_0xaab2db['showCommentHighlights'])return null;const _0x399772=_0x5b7c5c['createContainerElement']('div'),_0x47c2e2=_0x5b7c5c['createEmptyElement']('hr');return _0x5b7c5c['addClass']('ck-horizontal-line',_0x399772),_0x5b7c5c['insert'](_0x5b7c5c['createPositionAt'](_0x399772,0x0),_0x47c2e2),_0x399772;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x2e8ac4,{writer:_0x259be1,options:_0x590024})=>{if(!_0x590024['showCommentHighlights'])return null;const _0x3e0dad=_0x259be1['createContainerElement']('span'),_0x149881=_0x259be1['createEmptyElement']('img');return _0x259be1['addClass']('image-inline',_0x3e0dad),_0x259be1['insert'](_0x259be1['createPositionAt'](_0x3e0dad,0x0),_0x149881),_0x3e0dad;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xf5e417,{writer:_0x597adb,options:_0x47a470})=>{if(_0x47a470['showCommentHighlights'])return _0x597adb['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x58358e,_0x1a89bc,_0x2f42fd)=>{_0x2f42fd['options']['showCommentHighlights']&&_0x58358e['stop']();},{'priority':'high'});}}class r extends _0x3732d9{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdb192){super(_0xdb192),this['set']('isThreadsLoadingPaused',!0x0),_0xdb192['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x1dd8cd,_0x17c8ec,_0x9520e2,_0x220696)=>{const _0x1f83be=_0xdb192['plugins']['get'](o),_0x11781a=_0x9520e2?ft(_0x9520e2)['id']:null;_0xdb192['model']['change'](()=>{if(_0x11781a){const _0x50cd0c=this['getAllMarkersForId'](_0x11781a);for(const _0x3cebff of _0x50cd0c)_0xdb192['editing']['reconvertMarker'](_0x3cebff);}if(_0x220696){const {id:_0x98931b}=ft(_0x220696),_0x587aab=_0x1f83be['getCommentThread'](_0x98931b);if(_0x587aab&&_0x587aab['unlinkedAt'])return;if(_0x587aab&&!_0x587aab['isAttached'])return;const _0x420519=this['getAllMarkersForId'](_0x98931b);for(const _0x26f1ed of _0x420519)_0xdb192['editing']['reconvertMarker'](_0x26f1ed);}}),_0x11781a&&this['scrollToThreadMarker'](_0x11781a);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x199682=this['editor'],_0x154ec6=_0x199682['plugins']['get'](o),_0xab42bb=_0x199682['config']['get']('collaboration.channelId'),_0x10f21b=_0x154ec6['getCommentThreads']()['filter'](_0x541877=>_0x541877['channelId']!==_0xab42bb);_0x199682['commands']['add']('addCommentThread',new ot(_0x199682)),this['listenTo'](_0x199682,'change:isReadOnly',(_0x4e294b,_0x239aad,_0x388e4f)=>{_0x154ec6['switchReadOnly'](_0x388e4f,_0x199682['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x154ec6,dt('addCommentThread',_0xab42bb),(_0x1e88c8,{threadId:_0xe2efde})=>{const _0x297657=this['editor']['plugins']['get'](o)['getCommentThread'](_0xe2efde);_0x297657?.['unlinkedAt']&&this['_attachArchivedThread'](_0xe2efde);}),this['listenTo'](_0x154ec6,dt('removeCommentThread',_0xab42bb),(_0xc85ecc,{threadId:_0x4bf05b})=>{_0x199682['model']['enqueueChange']({'isUndoable':!0x1},_0x47b572=>{const _0x1e723e=this['getAllMarkersForId'](_0x4bf05b);for(const _0x48d1ed of _0x1e723e)_0x47b572['removeMarker'](_0x48d1ed);});}),this['listenTo'](_0x154ec6,dt('resolveCommentThread',_0xab42bb),(_0x5aea2d,{threadId:_0x13d8a2})=>{(this['_reconvertMarkers'](_0x13d8a2),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x13d8a2)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x154ec6,dt('reopenCommentThread',_0xab42bb),(_0x297e97,{threadId:_0x1636c3})=>{this['_reconvertMarkers'](_0x1636c3);},{'priority':'low'}),this['listenTo'](_0x154ec6,dt('addComment',_0xab42bb),(_0x540daf,{threadId:_0x2b9671,isFromAdapter:_0x5c54b1})=>{const _0x5c5257=this['getAllMarkersForId'](_0x2b9671);if(_0x5c54b1||0x0==_0x5c5257['length']||!_0x154ec6['hasCommentThread'](_0x2b9671))return;0x1===_0x154ec6['getCommentThread'](_0x2b9671)['length']&&_0x199682['model']['enqueueChange']({'isUndoable':!0x1},_0x1cac3e=>{for(const _0x3eda8e of _0x5c5257)_0x1cac3e['updateMarker'](_0x3eda8e,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x10f21b);}['afterInit'](){!async function(_0x363ae0){const _0x1f7ce9=_0x2dd28b([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x3e028e=0x73460ab3,_0x1632c8=0x734170d3^_0x3e028e,_0x2dca6f=window[_0x2dd28b([0x44,0x61,0x74,0x65])][_0x2dd28b([0x6e,0x6f,0x77])](),_0x4c4828=_0x363ae0[_0x2dd28b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cdf93=new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10de62=>{_0x4c4828[_0x2dd28b([0x6f,0x6e,0x63,0x65])](_0x2dd28b([0x72,0x65,0x61,0x64,0x79]),_0x10de62);}),_0x3be36d={[_0x2dd28b([0x6b,0x74,0x79])]:_0x2dd28b([0x45,0x43]),[_0x2dd28b([0x75,0x73,0x65])]:_0x2dd28b([0x73,0x69,0x67]),[_0x2dd28b([0x63,0x72,0x76])]:_0x2dd28b([0x50,0x2d,0x32,0x35,0x36]),[_0x2dd28b([0x78])]:_0x2dd28b([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2dd28b([0x79])]:_0x2dd28b([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2dd28b([0x61,0x6c,0x67])]:_0x2dd28b([0x45,0x53,0x32,0x35,0x36])},_0x5506c0=_0x4c4828[_0x2dd28b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dd28b([0x67,0x65,0x74])](_0x2dd28b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18ac9a(){let _0x296438,_0x566c58=null,_0x295882=null;try{if(_0x5506c0==_0x2dd28b([0x47,0x50,0x4c]))return _0x2dd28b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x296438=_0x21c29b(),!_0x296438)return _0x2dd28b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x296438[_0x2dd28b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x295882=_0x35ea6a(_0x296438[_0x2dd28b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x296438[_0x2dd28b([0x6a,0x74,0x69])])),await _0x206fa7()?_0x525d68()?_0x438372()?_0x2dd28b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ce111()?(_0x296438[_0x2dd28b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dd28b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x566c58=_0xa15a63(_0x2dd28b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x296438[_0x2dd28b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dd28b([0x74,0x72,0x69,0x61,0x6c])&&(_0x566c58=_0xa15a63(_0x2dd28b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30d58d()):_0x2dd28b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dd28b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dd28b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2dd28b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x438372(){const _0x4c283f=[_0x2dd28b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dd28b([0x74,0x72,0x69,0x61,0x6c])][_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x296438[_0x2dd28b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2dca6f/0x3e8:0xe10*_0x1632c8;return _0x296438[_0x2dd28b([0x65,0x78,0x70])]<_0x4c283f;}function _0x525d68(){const _0x31cc87=_0x296438[_0x2dd28b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x31cc87)return!0x1;if(_0x31cc87[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd28b([0x2a])))return!0x0;if(_0x31cc87[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd28b([0x43,0x4d,0x54])))return!0x0;if(_0x31cc87[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd28b([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x5e416d())return!0x0;if(_0x31cc87[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd28b([0x52,0x43,0x4d,0x54]))){if(_0x1c731e())return!0x0;if(_0xd21f67()||_0x30837a())return!0x0;}return!0x1;}function _0x5ce111(){const _0x3a1c0a=_0x296438[_0x2dd28b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a1c0a||0x0==_0x3a1c0a[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dd372}=new URL(window[_0x2dd28b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a1c0a[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dd372))return!0x0;const _0x3ff293=_0x5dd372[_0x2dd28b([0x73,0x70,0x6c,0x69,0x74])](_0x2dd28b([0x2e]));return _0x3a1c0a[_0x2dd28b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x373078=>_0x373078[_0x2dd28b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd28b([0x2a])))[_0x2dd28b([0x6d,0x61,0x70])](_0x147787=>_0x147787[_0x2dd28b([0x73,0x70,0x6c,0x69,0x74])](_0x2dd28b([0x2e])))[_0x2dd28b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47dbb6=>_0x47dbb6[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3ff293[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dd28b([0x6d,0x61,0x70])](_0x17fe3c=>Array(_0x3ff293[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17fe3c[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dd28b([0x66,0x69,0x6c,0x6c])](_0x17fe3c[0x0]===_0x2dd28b([0x2a])?_0x2dd28b([0x2a]):'')[_0x2dd28b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17fe3c))[_0x2dd28b([0x73,0x6f,0x6d,0x65])](_0x31e0cd=>_0x3ff293[_0x2dd28b([0x65,0x76,0x65,0x72,0x79])]((_0x40001c,_0x5067fc)=>_0x31e0cd[_0x5067fc]===_0x40001c||_0x31e0cd[_0x5067fc]===_0x2dd28b([0x2a])));}function _0x30d58d(){return _0x566c58&&_0x295882?new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b042e,_0x425a28)=>{_0x566c58[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0x5b042e,_0x425a28),_0x295882[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0xfbf95a=>{_0xfbf95a!=_0x2dd28b([0x56,0x61,0x6c,0x69,0x64])&&_0x5b042e(_0xfbf95a);},_0x425a28);}):_0x566c58||_0x295882||_0x2dd28b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35ea6a(_0x17d8d8,_0x57e8e7){return new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb857a=>{if(_0x2b994a())return _0xb857a(_0x2dd28b([0x56,0x61,0x6c,0x69,0x64]));_0x4cdaf7(),_0x4c4828[_0x2dd28b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dd28b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23b672=!0x1;const _0x483b0d=_0x1684c5();function _0x202dc7(_0xb6dbb5){return!!_0xb6dbb5&&(typeof _0xb6dbb5===_0x2dd28b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb6dbb5===_0x2dd28b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb6dbb5[_0x2dd28b([0x74,0x68,0x65,0x6e])]===_0x2dd28b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb6dbb5[_0x2dd28b([0x63,0x61,0x74,0x63,0x68])]===_0x2dd28b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x347495(_0x44a5a0){_0x269c3c(_0x44a5a0)[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0x588776=>{if(!_0x588776||_0x588776[_0x2dd28b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dd28b([0x6f,0x6b]))return _0x2dd28b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4671b1(_0x2de16f(_0x483b0d+_0x57e8e7))!=_0x588776[_0x2dd28b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dd28b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dd28b([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0x7e8926=>(_0x367690(),_0x7e8926),()=>{const _0x56bfec=_0x2e9a94();return null==_0x56bfec?(_0x367690(),_0x2dd28b([0x56,0x61,0x6c,0x69,0x64])):_0x2dd28b(_0x2dca6f-_0x56bfec>(0x574a8eb3^_0x3e028e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0xb857a)[_0x2dd28b([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb857a(_0x2dd28b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbacc69=0x7370e433^_0x3e028e;function _0x367690(){const _0x35b6a5=_0x2dd28b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4671b1(_0x2de16f(_0x17d8d8)),_0x4715e8=_0x349ab7(_0x4671b1(window[_0x2dd28b([0x4d,0x61,0x74,0x68])][_0x2dd28b([0x63,0x65,0x69,0x6c])](_0x2dca6f/_0xbacc69)));window[_0x2dd28b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dd28b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35b6a5,_0x4715e8);}function _0x2e9a94(){const _0x2e4d46=_0x2dd28b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4671b1(_0x2de16f(_0x17d8d8)),_0x1bf631=window[_0x2dd28b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dd28b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e4d46);return _0x1bf631?window[_0x2dd28b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x349ab7(_0x1bf631),0x10)*_0xbacc69:null;}function _0x269c3c(_0x183a21){return new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42d2c4,_0x11549f)=>{_0x183a21[_0x2dd28b([0x74,0x68,0x65,0x6e])](_0x42d2c4,_0x11549f),window[_0x2dd28b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11549f,0x7347de73^_0x3e028e);});}}_0x4c4828[_0x2dd28b([0x6f,0x6e])](_0x2dd28b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34a67f,_0x1c7693)=>{if(_0x1c7693[0x0]!=_0x17d8d8)return _0xb857a(_0x2dd28b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c7693[0x1]={..._0x1c7693[0x1],[_0x2dd28b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x483b0d};},{[_0x2dd28b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dd28b([0x68,0x69,0x67,0x68])}),_0x4c4828[_0x2dd28b([0x6f,0x6e])](_0x2dd28b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58a4c3=>{_0x202dc7(_0x58a4c3[_0x2dd28b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23b672=!0x0,_0x347495(_0x58a4c3[_0x2dd28b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dd28b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dd28b([0x6c,0x6f,0x77])}),_0x2cdf93[_0x2dd28b([0x74,0x68,0x65,0x6e])](()=>{_0x23b672||_0xb857a(_0x2dd28b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b994a(){return _0x4c4828[_0x2dd28b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dd28b([0x76,0x69,0x65,0x77])][_0x2dd28b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dd28b([0x61,0x75,0x74,0x6f]);}function _0x4cdaf7(){_0x4c4828[_0x2dd28b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dd28b([0x76,0x69,0x65,0x77])][_0x2dd28b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dd28b([0x61,0x75,0x74,0x6f]);}}function _0xa15a63(_0xb5366){const _0x556348=[new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d79c0=>setTimeout(_0x4d79c0,0x734f347f^_0x3e028e)),_0x2cdf93[_0x2dd28b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6756=>{let _0x2a1ba5=0x0;_0x4c4828[_0x2dd28b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dd28b([0x6f,0x6e])](_0x2dd28b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4788df,_0x30558e)=>{_0x30558e[0x0][_0x2dd28b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a1ba5++,_0x2a1ba5==(0x73460b4b^_0x3e028e)&&(_0x2f6756(),_0x4788df[_0x2dd28b([0x6f,0x66,0x66])]());});}))];return window[_0x2dd28b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dd28b([0x72,0x61,0x63,0x65])](_0x556348)[_0x2dd28b([0x74,0x68,0x65,0x6e])](()=>_0xb5366);}async function _0x3472b5(){await _0x2cdf93,_0x4c4828[_0x2dd28b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dd28b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e2fec,_0x4c4828[_0x2dd28b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dd28b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e2fec,_0x4c4828[_0x2dd28b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dd28b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e416d(){return window[_0x2dd28b([0x67,0x6c,0x6f,0x62])]&&window[_0x2dd28b([0x67,0x6c,0x6f,0x62])][_0x2dd28b([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x1c731e(){return _0x2ec815(_0x2dd28b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x124407(_0x2dd28b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2dd28b([0x73,0x74,0x61,0x74,0x65])]==_0x2dd28b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xd21f67(){return _0x2ec815(_0x2dd28b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x30837a(){return _0x2ec815(_0x2dd28b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x25da3c(_0x43e74e){const _0xc0ad9d=_0x30daef();_0x4c4828[_0xc0ad9d]=_0x2dd28b([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43e74e,_0x43e74e!=_0x2dd28b([0x56,0x61,0x6c,0x69,0x64])&&_0x3472b5();}function _0x30daef(){const _0x49c091=window[_0x2dd28b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dd28b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dd28b([0x6e,0x6f,0x77])]())[_0x2dd28b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dd28b([0x2e]),'');let _0x5615ea=_0x2dd28b([0x4b]);for(let _0xbb91e7=0x0;_0xbb91e7<_0x49c091[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbb91e7+=0x2){let _0x5d5bd2=window[_0x2dd28b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49c091[_0x2dd28b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbb91e7,_0xbb91e7+0x2));_0x5d5bd2>=_0x1f7ce9[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d5bd2-=_0x1f7ce9[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5615ea+=_0x1f7ce9[_0x5d5bd2];}return _0x5615ea;}function _0x21c29b(){const _0x27d967=_0x5506c0[_0x2dd28b([0x73,0x70,0x6c,0x69,0x74])](_0x2dd28b([0x2e]));if(0x3!=_0x27d967[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x68f0c1(_0x27d967[0x1]);function _0x68f0c1(_0x4a28de){const _0x4bb004=_0x22c2b5(_0x4a28de);return _0x4bb004&&_0x2b35b4()?_0x4bb004:null;function _0x2b35b4(){const _0x46f7b1=_0x4bb004[_0x2dd28b([0x6a,0x74,0x69])],_0x15c9d2=window[_0x2dd28b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46f7b1[_0x2dd28b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46f7b1[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x400379={..._0x4bb004,[_0x2dd28b([0x6a,0x74,0x69])]:_0x46f7b1[_0x2dd28b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46f7b1[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x400379[_0x2dd28b([0x76,0x63])],_0x2de16f(_0x400379)==_0x15c9d2;}}}async function _0x206fa7(){let _0x2d561f=!0x0;try{const _0x1e32da=_0x5506c0[_0x2dd28b([0x73,0x70,0x6c,0x69,0x74])](_0x2dd28b([0x2e])),[_0x13c6ff,_0x5b9664,_0x550bb3]=_0x1e32da;return _0x1f2e0e(_0x13c6ff),await _0x1c29f0(_0x13c6ff,_0x5b9664,_0x550bb3),_0x2d561f;}catch{return!0x1;}function _0x1f2e0e(_0x272888){const _0x1d1047=_0x22c2b5(_0x272888);_0x1d1047&&_0x1d1047[_0x2dd28b([0x61,0x6c,0x67])]==_0x2dd28b([0x45,0x53,0x32,0x35,0x36])||(_0x2d561f=!0x1);}async function _0x1c29f0(_0x54ceb5,_0x3b7483,_0x3446b0){const _0x3ec528=window[_0x2dd28b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dd28b([0x66,0x72,0x6f,0x6d])](_0x5e9424(_0x3446b0),_0x584c59=>_0x584c59[_0x2dd28b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9b0251=new window[(_0x2dd28b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dd28b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54ceb5+_0x2dd28b([0x2e])+_0x3b7483),_0x37599b=window[_0x2dd28b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dd28b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37599b)return;const _0x29b32f=await _0x37599b[_0x2dd28b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dd28b([0x6a,0x77,0x6b]),_0x3be36d,{[_0x2dd28b([0x6e,0x61,0x6d,0x65])]:_0x2dd28b([0x45,0x43,0x44,0x53,0x41]),[_0x2dd28b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dd28b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dd28b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37599b[_0x2dd28b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dd28b([0x6e,0x61,0x6d,0x65])]:_0x2dd28b([0x45,0x43,0x44,0x53,0x41]),[_0x2dd28b([0x68,0x61,0x73,0x68])]:{[_0x2dd28b([0x6e,0x61,0x6d,0x65])]:_0x2dd28b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29b32f,_0x3ec528,_0x9b0251)||(_0x2d561f=!0x1);}}function _0x22c2b5(_0x5aa52f){return _0x5aa52f[_0x2dd28b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dd28b([0x65,0x79]))?JSON[_0x2dd28b([0x70,0x61,0x72,0x73,0x65])](_0x5e9424(_0x5aa52f)):null;}function _0x5e9424(_0x59a0f4){return window[_0x2dd28b([0x61,0x74,0x6f,0x62])](_0x59a0f4[_0x2dd28b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dd28b([0x2b]))[_0x2dd28b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dd28b([0x2f])));}function _0x2de16f(_0x186885){let _0x8dba=0x1505;function _0x52ea8(_0x1e472e){for(let _0xd6a47c=0x0;_0xd6a47c<_0x1e472e[_0x2dd28b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd6a47c++){const _0x1a7e69=_0x1e472e[_0x2dd28b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd6a47c);_0x8dba=(_0x8dba<<0x5)+_0x8dba+_0x1a7e69,_0x8dba&=_0x8dba;}}function _0x1623b1(_0x572344){Array[_0x2dd28b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x572344)?_0x572344[_0x2dd28b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1623b1):_0x572344&&typeof _0x572344==_0x2dd28b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dd28b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x572344)[_0x2dd28b([0x73,0x6f,0x72,0x74])]()[_0x2dd28b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x208cfa,_0x5ccb7c])=>{_0x52ea8(_0x208cfa),_0x1623b1(_0x5ccb7c);}):_0x52ea8(window[_0x2dd28b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x572344));}return _0x1623b1(_0x186885),_0x8dba>>>0x0;}function _0x4671b1(_0x5464aa){return _0x5464aa[_0x2dd28b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dd28b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dd28b([0x30]));}function _0x349ab7(_0x30cb6e){return _0x30cb6e[_0x2dd28b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dd28b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dd28b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ec815(_0x1d3845){return _0x4c4828[_0x2dd28b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2dd28b([0x68,0x61,0x73])](_0x1d3845);}function _0x124407(_0x23fe39){return _0x4c4828[_0x2dd28b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2dd28b([0x67,0x65,0x74])](_0x23fe39);}function _0x2e2fec(){}function _0x2dd28b(_0x3b031f){return _0x3b031f['map'](_0x543abc=>String['fromCharCode'](_0x543abc))['join']('');}_0x25da3c(await _0x18ac9a());}(this);}['destroy'](){const _0x3f9a02=this['editor']['plugins']['get'](o),_0x40db8d=this['editor']['config']['get']('collaboration.channelId');for(const _0x56689a of _0x3f9a02['getCommentThreads']({'channelId':_0x40db8d}))_0x3f9a02['_detachCommentThread'](_0x56689a['id']),_0x3f9a02['_threads']['delete'](_0x56689a['id']);super['destroy']();}['hasMarkerForId'](_0xfbdba3){return this['getAllMarkersForId'](_0xfbdba3)['length']>0x0;}['getAllMarkersForId'](_0x314f0c){const _0x304ab0=[];for(const _0x12cb22 of this['editor']['model']['markers'])_0x12cb22['name']['startsWith']('comment:'+_0x314f0c)&&_0x304ab0['push'](_0x12cb22);return _0x304ab0;}['scrollToThreadMarker'](_0x5492b1){setTimeout(()=>{const _0x387dab=this['_getTargetForId'](_0x5492b1);if(!_0x387dab)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5492b1&&nt({'target':_0x387dab[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x2cac90){this['editor']['model']['change'](()=>{for(const _0x50229f of this['getAllMarkersForId'](_0x2cac90))this['editor']['editing']['reconvertMarker'](_0x50229f);});}['_attachArchivedThread'](_0x4e8741){const _0x269276=this['editor']['plugins']['get'](o),_0x480f69=this['editor']['plugins']['get'](b),_0x10b0ef=_0x269276['getCommentThread'](_0x4e8741);if(!_0x10b0ef['isAttached']){const _0x2a8e05=_0x10b0ef['attachTo'](()=>this['_getTargetForId'](_0x10b0ef['id']));_0x480f69['registerAnnotation'](_0x2a8e05),_0x10b0ef['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x287250=this['editor'],_0x348e59=_0x287250['plugins']['get'](it);_0x287250['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x3461e4,_0xedeb3a)=>{const {id:_0x5ebd16}=ft(_0x3461e4['markerName']),_0x5d4210=_0x287250['plugins']['get'](o)['getCommentThread'](_0x5ebd16),_0x282a1a=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5ebd16;let _0x2985ed;if(_0x5d4210&&_0x5d4210['isResolved']&&!_0x282a1a&&_0x3461e4['item'])return _0xedeb3a['consumable']['consume'](_0x3461e4['item'],'addMarker:'+_0x3461e4['markerName']),_0xedeb3a['consumable']['consume'](_0x3461e4['item'],'removeMarker:'+_0x3461e4['markerName']),null;const _0x54fea1=['ck-comment-marker'];return _0x282a1a&&_0x54fea1['push']('ck-comment-marker--active'),_0x2985ed=_0x5d4210?.['length']?_0x5d4210['comments']['first']['author']['id']:_0x348e59['me']['id'],{'classes':_0x54fea1,'attributes':{'data-comment':_0x5ebd16,'data-author-id':_0x2985ed}};}}),_0x287250['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x682cf9,{options:_0x33f253})=>{if(_0x33f253['showCommentHighlights'])return null;const _0x246075=_0x287250['plugins']['get'](o),_0x5a14a9=_0x287250['model']['markers']['get'](_0x682cf9),{id:_0x3c187a,part:_0x19c428}=ft(_0x682cf9);return _0x5a14a9&&!_0x5a14a9['affectsData']||_0x33f253['ignoreResolvedComments']&&_0x246075['getCommentThread'](_0x3c187a)?.['isResolved']?null:{'group':'comment','name':_0x19c428?_0x3c187a+':'+_0x19c428:_0x3c187a};}}),_0x287250['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2aa2ed,{writer:_0x4621e5})=>_0x4621e5['createElement']('$marker',{'data-name':'comment:'+_0x2aa2ed['getAttribute']('id')})}),_0x287250['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x320193=this['editor'],_0x3333eb=_0x320193['plugins']['get'](o),_0x481ee1=new Set(),_0x4bc1a5=new Set();_0x320193['model']['document']['registerPostFixer'](_0xbf72b7=>{let _0x47e8e2=!0x1;for(const {name:_0x1ae8c4,data:_0x47092d}of _0x320193['model']['document']['differ']['getChangedMarkers']()){const {group:_0x43415f,id:_0x46471}=ft(_0x1ae8c4);let _0x38f80d=_0x47092d['newRange'];if('comment'!==_0x43415f||!_0x38f80d)continue;const _0x495565='$graveyard'===_0x38f80d['root']['rootName'];_0x495565||(_0x38f80d=ht(_0x38f80d,_0x320193['model']),!_0x38f80d||_0x38f80d['isCollapsed']||!_0x47092d['newRange']||_0x38f80d['isEqual'](_0x47092d['newRange']))?_0x320193['model']['hasContent'](_0x38f80d)&&!_0x495565?this['isThreadsLoadingPaused']?_0x481ee1['add'](_0x1ae8c4):this['_handleThreadMarker'](_0x1ae8c4,_0x46471):(_0x4bc1a5['add'](_0x1ae8c4),_0x481ee1['delete'](_0x1ae8c4),_0xbf72b7['removeMarker'](_0x1ae8c4),_0x47e8e2=!0x0):(_0xbf72b7['updateMarker'](_0x1ae8c4,{'range':_0x38f80d}),_0x47e8e2=!0x0);}return _0x47e8e2;}),this['on']('change:isThreadsLoadingPaused',(_0x55a96f,_0xf0e647,_0x22eba9)=>{if(!_0x22eba9&&_0x481ee1['size'])for(const _0x5b8d39 of _0x481ee1){const {id:_0x1deb14}=ft(_0x5b8d39);_0x481ee1['delete'](_0x5b8d39),_0x320193['model']['markers']['get'](_0x5b8d39)&&this['_handleThreadMarker'](_0x5b8d39,_0x1deb14);}}),this['listenTo'](_0x320193['model']['document'],'change',()=>{for(const {name:_0x1f0338,data:{newRange:_0x2490c5}}of _0x320193['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3188ff,id:_0x2391a6}=ft(_0x1f0338);if('comment'!==_0x3188ff)continue;const _0x37bb44=_0x3333eb['getCommentThread'](_0x2391a6),_0x4d32a7=this['hasMarkerForId'](_0x2391a6);_0x37bb44&&(!_0x37bb44['_hasTargetInContent']&&_0x2490c5&&_0x320193['editing']['view']['once']('render',()=>{const _0x402ec6=_0x320193['plugins']['get'](y),_0x309ffb=_0x3333eb['_threadToController']['get'](_0x37bb44)['view'];_0x402ec6['getByInnerView'](_0x309ffb)['refreshVisibility']();},{'priority':'low'}),_0x37bb44['_hasTargetInContent']=_0x4d32a7||!!_0x2490c5),_0x2490c5||(_0x4bc1a5['add'](_0x1f0338),_0x481ee1['delete'](_0x1f0338));}for(const _0x9c9af8 of _0x4bc1a5){const {id:_0x3f297a}=ft(_0x9c9af8),_0x41b065=_0x3333eb['getCommentThread'](_0x3f297a);if(_0x481ee1['delete'](_0x9c9af8),!_0x41b065)continue;const _0x487af7=this['hasMarkerForId'](_0x3f297a);_0x487af7||_0x41b065['isSubmitted']?_0x487af7||_0x41b065['unlinkedAt']||_0x41b065['setUnlinkedAt'](new Date()):_0x41b065['remove']();}_0x4bc1a5['clear']();});}['_handleInitialThreads'](_0x28fd6f){_0x28fd6f['forEach'](_0x3625a9=>{_0x3625a9['unlinkedAt']&&this['_attachArchivedThread'](_0x3625a9['id']);});}['_getTargetForId'](_0x2d27e3){const _0x1a6b1a=this['editor'],_0x75b36d=this['getAllMarkersForId'](_0x2d27e3);return et(_0x1a6b1a['editing'],_0x75b36d);}['_getTextContext'](_0x4ec770){const _0x11db6e=this['getAllMarkersForId'](_0x4ec770);let _0x4229a5='',_0x6e9c20=!0x1;for(const _0x411c60 of _0x11db6e){const _0x5d8ab1=_0x411c60['getRange']();for(const _0x16804c of Array['from'](_0x5d8ab1['getItems']()))_0x16804c['is']('$textProxy')?(_0x4229a5&&_0x6e9c20&&(_0x4229a5+='\x20',_0x6e9c20=!0x1),_0x4229a5+=_0x16804c['data']):_0x6e9c20=!0x0;_0x6e9c20=!0x0;}return _0x4229a5['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x46e61f,_0x17e567){const _0x4f9715=this['editor'],_0x4a80e9=_0x4f9715['plugins']['get'](o);let _0x2c4928=_0x4a80e9['getCommentThread'](_0x17e567);const _0xbe414d=_0x4f9715['config']['get']('collaboration.channelId'),_0x46b9b7=_0x4f9715['plugins']['get'](b);if(_0x2c4928&&(_0x2c4928['unlinkedAt']&&_0x2c4928['setUnlinkedAt'](null),_0x2c4928['isAttached']))return _0x2c4928;return!this['getAllMarkersForId'](_0x17e567)[0x0]['managedUsingOperations']?_0x4f9715['editing']['view']['once']('render',()=>{if(_0x4a80e9['getCommentThread'](_0x17e567))return;const _0x3176d1=_0x4f9715['plugins']['get'](y);_0x2c4928=_0x4a80e9['openNewCommentThread']({'channelId':_0xbe414d,'threadId':_0x17e567,'target':()=>this['_getTargetForId'](_0x17e567),'context':{'type':'text','value':this['_getTextContext'](_0x17e567)}});const _0x3e8e72=_0x4a80e9['_threadToController']['get'](_0x2c4928)['view'],_0x8c4868=_0x3176d1['getByInnerView'](_0x3e8e72);_0x8c4868&&_0x46b9b7['registerAnnotation'](_0x8c4868);},{'priority':'low'}):_0x4a80e9['fetchCommentThread']({'channelId':_0xbe414d,'threadId':_0x17e567})['then'](_0x4a528a=>{if('destroyed'!==_0x4f9715['state']){if(_0x2c4928=_0x4a528a,_0x2c4928&&!_0x2c4928['isAttached']){const _0x22516a=_0x2c4928['attachTo'](()=>this['_getTargetForId'](_0x17e567));_0x46b9b7['registerAnnotation'](_0x22516a),_0x2c4928['isResolved']&&this['_reconvertMarkers'](_0x17e567);}else{if(!_0x2c4928){const _0x2e4f66=this['getAllMarkersForId'](_0x17e567);_0x4f9715['model']['change'](_0x141f3d=>{for(const _0x4b0565 of _0x2e4f66)_0x141f3d['removeMarker'](_0x4b0565);});}}}}),_0x2c4928;}['_handleThreadMarker'](_0x433b82,_0x3045e3){const _0x5f158a=this['_attachMarkerToThread'](_0x433b82,_0x3045e3);_0x5f158a&&!_0x5f158a['context']&&_0x5f158a['setContext']({'type':'text','value':this['_getTextContext'](_0x3045e3)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5cd4d4=this['editor'];rt(_0x5cd4d4['model'],({left:_0x139fe3,entered:_0x24cbe7})=>{for(const _0x230388 of _0x139fe3)if(mt(_0x230388)){_0x5cd4d4['ui']['ariaLiveAnnouncer']['announce'](N(_0x5cd4d4['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x33e2ac of _0x24cbe7)if(mt(_0x33e2ac)){_0x5cd4d4['ui']['ariaLiveAnnouncer']['announce'](N(_0x5cd4d4['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x333141)));break;}});}}function dt(_0x155075,_0x1bcc1a){return _0x1bcc1a?_0x155075+':'+_0x1bcc1a:_0x155075;}function ht(_0x34c578,_0x185632){const _0xa1c423=_0x185632['schema'],_0x333c35=_0x185632['createRange'](_0x34c578['start']);for(const _0x591994 of _0x34c578['getWalker']()){const {type:_0x54bf38,item:_0x59d5ff,nextPosition:_0x47d9c2}=_0x591994;if('text'===_0x54bf38||_0xa1c423['isObject'](_0x59d5ff)){const _0x14cb7c=_0x185632['createPositionBefore'](_0x59d5ff);_0x333c35['isCollapsed']&&(_0x333c35['start']=_0x14cb7c),_0x333c35['end']=_0x47d9c2;}}return _0x333c35;}function mt(_0x45dd05){return'comment'===ft(_0x45dd05['name'])['group'];}class s extends _0x3732d9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x19d357=this['editor'],_0x4c58cb=_0x19d357['plugins']['get'](o),_0x356c9e=_0x19d357['plugins']['get'](r),_0x24bf37=_0x19d357['plugins']['get'](y),_0x47f87c=_0x19d357['plugins']['get'](b);_0x19d357['ui']['componentFactory']['add']('comment',()=>{const _0x15bff9=this['_createUIButton'](_0x222733);return _0x15bff9['tooltip']=!0x0,_0x15bff9;}),_0x19d357['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x59a680)),_0x47f87c['addSourceCollector'](()=>{const _0x181765=[];for(const [_0x185779,_0x293ce3]of _0x4c58cb['_threadToController']){const _0xe003f4=_0x356c9e['getAllMarkersForId'](_0x185779['id']),_0x177f57=_0xe003f4['map'](_0x2bc304=>_0x2bc304['getRange']());_0xe003f4['length']>0x0&&_0x181765['push']([_0x293ce3['view'],_0x177f57]);}return _0x181765;}),this['listenTo'](_0x24bf37,'change:activeAnnotations',(_0x3a0582,_0x3e8dce,_0x1d6d98)=>{const _0x169dcd=Array['from'](_0x1d6d98)['map'](_0x5ca93f=>_0x5ca93f['innerView'])['find'](_0xac4f00=>_0x4c58cb['_viewToController']['has'](_0xac4f00));if(!_0x169dcd)return void(_0x356c9e['activeMarker']=null);const _0x237a7c=_0x4c58cb['_viewToController']['get'](_0x169dcd)['model']['id'],_0x463d6f='comment:'+_0x237a7c;_0x237a7c&&_0x356c9e['hasMarkerForId'](_0x237a7c)?_0x356c9e['activeMarker']=_0x463d6f:_0x356c9e['activeMarker']&&(_0x356c9e['activeMarker']=null);}),this['listenTo'](_0x4c58cb,'removeCommentThread',(_0x1fa112,{threadId:_0x4f951b,isFromAdapter:_0x3ec240})=>{!_0x3ec240&&_0x19d357['ui']['focusTracker']['isFocused']&&_0x356c9e['hasMarkerForId'](_0x4f951b)&&_0x19d357['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x4c58cb,'addComment',(_0x586a41,{threadId:_0x4c3c02,isFromAdapter:_0x352042})=>{if(_0x352042||!_0x356c9e['hasMarkerForId'](_0x4c3c02)||!_0x4c58cb['hasCommentThread'](_0x4c3c02))return;0x1===_0x4c58cb['getCommentThread'](_0x4c3c02)['length']&&(_0x19d357['editing']['view']['focus'](),_0x586a41['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2c12d1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dfe02;for(const _0x1d0077 in _0x2c12d1){const _0x104ef4=_0x1d0077,_0x3f605c=_0x2c12d1[_0x104ef4];if('commentsLicenseKeyValid'==_0x3f605c||'commentsLicenseKeyInvalid'==_0x3f605c||'commentsLicenseKeyExpired'==_0x3f605c||'commentsLicenseKeyDomainLimit'==_0x3f605c||'commentsLicenseKeyNotAllowed'==_0x3f605c||'commentsLicenseKeyEvaluationLimit'==_0x3f605c||'commentsLicenseKeyTrialLimit'==_0x3f605c||'commentsLicenseKeyUsageLimit'==_0x3f605c){delete _0x2c12d1[_0x104ef4],_0x2dfe02=_0x3f605c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x2dfe02&&_0x2c12d1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x424f7f){const _0x5f3db6=this['editor'],_0x579021=new _0x424f7f(_0x5f3db6['locale']),_0x5be39b=_0x5f3db6['commands']['get']('addCommentThread');return _0x579021['set']({'label':N(_0x5f3db6['locale'],'Comment'),'icon':_0x10df15}),_0x579021['bind']('isEnabled')['to'](_0x5be39b,'isEnabled',_0x5be39b,'hasContent',(_0x409c77,_0x3f3057)=>_0x409c77&&_0x3f3057),this['listenTo'](_0x579021,'execute',()=>{_0x5be39b['execute']();}),_0x579021;}}class i extends _0x3732d9{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x9063f1){super(_0x9063f1),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x324aca,_0x26704b,_0x1a36ae)=>{_0x1a36ae?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5f5416,_0x32aa15]of this['editor']['commands'])_0x32aa15['affectsData']&&'addCommentThread'!==_0x5f5416&&_0x32aa15['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x305b42=this['editor']['editing']['view']['document'];this['listenTo'](_0x305b42,'cut',_0x49fa51=>_0x49fa51['stop'](),{'priority':'highest'}),this['listenTo'](_0x305b42,'clipboardInput',_0x1fa567=>_0x1fa567['stop'](),{'priority':'highest'}),this['listenTo'](_0x305b42,'delete',_0x3eaeac=>_0x3eaeac['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x229457,_0x4016e7]of this['editor']['commands'])_0x4016e7['affectsData']&&'addCommentThread'!==_0x229457&&_0x4016e7['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x35dfc2{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35f59b){super(_0x35f59b),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x14f506=this['context']['plugins']['get'](y);this['listenTo'](_0x14f506,'_activateAnnotation',(_0x45f1fc,_0x57c65d)=>{for(const _0x4cb4fd of this['activeUIs']){const _0x535573=this['_uis']['get'](_0x4cb4fd);(0x0,this['uisData']['get'](_0x4cb4fd)['filter'])(_0x57c65d)&&_0x535573['setActiveAnnotation'](_0x57c65d);}}),this['listenTo'](_0x14f506,'_deactivateAllAnnotations',()=>{for(const _0x4af139 of this['activeUIs']){this['_uis']['get'](_0x4af139)['setActiveAnnotation'](null);}}),this['listenTo'](_0x14f506['_visibleAnnotations'],'add',(_0x4f6d45,_0x4b53aa)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4b53aa);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x422b12){return this['activeUIs']['has'](_0x422b12);}['activate'](_0x616c65,_0x455aec=this['defaultFilter']){const _0x3a9e39=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x616c65))throw new _0x29e429('annotationsuis-missing-ui',this,{'uiName':_0x616c65});this['isActive'](_0x616c65)&&this['deactivate'](_0x616c65),this['activeUIs']['add'](_0x616c65);const _0x3bdc33=new S();v({'source':_0x3a9e39['_visibleAnnotations'],'target':_0x3bdc33,'filter':_0x455aec}),this['uisData']['set'](_0x616c65,{'collection':_0x3bdc33,'filter':_0x455aec});const _0x24b200=this['_uis']['get'](_0x616c65);_0x24b200['attach'](_0x3bdc33),this['listenTo'](_0x24b200,'change:activeAnnotation',(_0x24ba0b,_0x5cd1b9,_0x25ec7e,_0x489c8d)=>{_0x489c8d&&_0x3a9e39['_removeActiveAnnotation'](_0x489c8d),_0x25ec7e&&_0x3a9e39['_addActiveAnnotation'](_0x25ec7e);});}['deactivate'](_0x5b3ef3){if(this['activeUIs']['delete'](_0x5b3ef3),!this['_uis']['has'](_0x5b3ef3))throw new _0x29e429('annotationsuis-missing-ui',this,{'uiName':_0x5b3ef3});const _0x2d9cf9=this['_uis']['get'](_0x5b3ef3);_0x2d9cf9['detach'](),this['stopListening'](_0x2d9cf9),this['uisData']['get'](_0x5b3ef3)['collection']['destroy'](),this['uisData']['delete'](_0x5b3ef3);}['switchTo'](_0xb00135){if(!this['_uis']['has'](_0xb00135))throw new _0x29e429('annotationsuis-missing-ui',this,{'uiName':_0xb00135});const _0x33fa37=this['context']['plugins']['get'](y),_0x552023=Array['from'](_0x33fa37['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0xb00135);const _0x3ab45e=this['_uis']['get'](_0xb00135);_0x3ab45e['setActiveAnnotation'](_0x552023),_0x3ab45e['_setSelectedAnnotations']&&_0x552023&&_0x3ab45e['_setSelectedAnnotations']([_0x552023]);}['deactivateAll'](){for(const _0x3ea0df of this['activeUIs'])this['deactivate'](_0x3ea0df);}['register'](_0x3985ec,_0x28aa54){if(this['_uis']['has'](_0x3985ec))throw new _0x29e429('annotationsuis-register-already-registered');if('function'!=typeof _0x28aa54['attach']||'function'!=typeof _0x28aa54['detach']||'function'!=typeof _0x28aa54['setActiveAnnotation'])throw new _0x29e429('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x3985ec,_0x28aa54);}['refilterAnnotations'](){const _0x1f1934=this['context']['plugins']['get'](y)['collection'],_0x56c86d=new Map(),_0x5a2c7c=Array['from'](this['activeUIs']);for(const _0x29be84 of this['activeUIs']){const _0x40a6fb=this['uisData']['get'](_0x29be84)['collection'];for(const _0x2b159a of _0x40a6fb)_0x56c86d['set'](_0x2b159a,_0x29be84);}for(const _0x20d6db of _0x1f1934){const _0xad8db2=_0x56c86d['get'](_0x20d6db);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x20d6db);const _0x176ef3=_0x5a2c7c['find'](_0x3ba540=>this['uisData']['get'](_0x3ba540)['filter'](_0x20d6db));_0xad8db2!==_0x176ef3&&(_0xad8db2&&this['uisData']['get'](_0xad8db2)['collection']['remove'](_0x20d6db),_0x176ef3&&this['uisData']['get'](_0x176ef3)['collection']['add'](_0x20d6db));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4a37bc){const _0x1be069=[];for(const _0x710338 of this['activeUIs']){(0x0,this['uisData']['get'](_0x710338)['filter'])(_0x4a37bc)&&_0x1be069['push'](_0x710338);}if(_0x1be069['length']>0x1)throw new _0x29e429('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1be069,'annotationType':_0x4a37bc['type']});}}const _i=/* #__PURE__ -- @preserve */
32
- Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4ab863){super(_0x4ab863);const _0x2560a0=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x242e0a(),this['focusCycler']=new _0x470c60({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2560a0['to']('class')],'style':{'minHeight':_0x2560a0['to']('minHeight',_0x1a770b=>'number'==typeof _0x1a770b?_i(_0x1a770b+0xa):null)},'dir':_0x4ab863['uiLanguageDirection'],'role':'application','aria-label':N(_0x4ab863,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x4ab863,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x3ee6b8=>{this['_updateItemPositionInFocusables'](_0x3ee6b8['source']);}),this['list']['forEach'](_0x426207=>{this['focusTracker']['add'](_0x426207['element']),this['_updateItemPositionInFocusables'](_0x426207);}),this['list']['on']('change',(_0x4244fa,_0x1b48c8)=>{for(const _0x435f1f of _0x1b48c8['removed'])this['focusTracker']['remove'](_0x435f1f['element']),this['focusables']['remove'](_0x435f1f);for(const _0x34200 of _0x1b48c8['added'])this['focusTracker']['add'](_0x34200['element']),this['_updateItemPositionInFocusables'](_0x34200);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x52717a){const _0x45eb04=this['focusables']['getIndex'](_0x52717a);let _0x9af0bd,_0x1a4a95;for(const _0x4cbe7f of this['focusables'])if(_0x52717a['top']<_0x4cbe7f['top']){_0x9af0bd=_0x4cbe7f;break;}if(_0x1a4a95=_0x9af0bd?this['focusables']['getIndex'](_0x9af0bd):this['focusables']['length'],-0x1!==_0x45eb04){if(_0x45eb04===_0x1a4a95-0x1)return;this['focusables']['remove'](_0x52717a),_0x1a4a95=_0x9af0bd?this['focusables']['getIndex'](_0x9af0bd):this['focusables']['length'];}this['focusables']['add'](_0x52717a,_0x1a4a95);}}const Ot=/* #__PURE__ -- @preserve */
33
- Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x8f3d3c){super(_0x8f3d3c),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x334f05,_0x304602)=>_0x334f05+_0x304602),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x20b63b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x20b63b['to']('isAnimationDisabled',_0x32db31=>_0x32db31?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x20b63b['to']('top',_0x1df32b=>Ot(_0x1df32b))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x24d71b=this['element']['clientHeight'];_0x24d71b&&(this['height']=_0x24d71b);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x35dfc2{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x349af2){super(_0x349af2),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x6a0baa=this['context']['config']['get']('sidebar.container');_0x6a0baa&&this['setContainer'](_0x6a0baa);}['setContainer'](_0x16f57a){if(!g(_0x16f57a))throw new _0x29e429('sidebar-setcontainer-invalid-element');this['container']=_0x16f57a;}['_attachToContainer']({viewClass:_0x84ee8e='',spaceBetweenItems:_0x1a700a=0x19}={}){if(!g(this['container']))throw new _0x29e429('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x84ee8e,this['_spaceBetweenItems']=_0x1a700a;}['rearrange']({removedAnnotation:_0x56478a,previousAnnotation:_0x3ff94b,nextAnnotation:_0x330a61}){const _0x482554=this['getSidebarItemView'](_0x56478a);this['view']['list']['remove'](_0x482554),this['_destroySidebarItemView'](_0x56478a),_0x3ff94b&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3ff94b)),_0x330a61&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x330a61)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x11dd04,activatedAnnotation:_0x486185,disableAnimationOnActivatedAnnotation:_0x5b725e}){if(this['_activeAnnotation']=_0x486185,_0x11dd04){_0x11dd04['isActive']=!0x1;const _0x5cadc0=this['getSidebarItemView'](_0x11dd04);_0x5cadc0&&_0x5b725e&&(_0x5cadc0['isAnimationDisabled']=!0x1);}if(_0x486185){const _0x21bff9=this['getSidebarItemView'](_0x486185);_0x21bff9&&(_0x486185['isActive']=!0x0,_0x5b725e&&(_0x21bff9['isAnimationDisabled']=!0x0,_0x21bff9['top']+=0x1),this['_alignToTargetRect'](_0x21bff9));}}['_detachFromContainer'](_0x287f3b){if(this['view']['element']['remove'](),_0x287f3b){for(const _0x5d2620 of _0x287f3b)this['_destroySidebarItemView'](_0x5d2620);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x58254e,_0x30ec9a){_0x30ec9a||(_0x30ec9a=_0x58254e['view']);const _0x46055a=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x46055a,_0x58254e),this['_annotationToSidebarItemView']['set'](_0x58254e,_0x46055a),_0x46055a['content']['add'](_0x30ec9a),this['listenTo'](_0x58254e['view'],'change:targetRect',(_0x3a7de8,_0xa1cbca,_0x12ec34)=>{const _0x150ef0=this['_getTargetTop'](_0x58254e,_0x12ec34);_0x46055a['_targetTop']!=_0x150ef0&&(_0x46055a['_targetTop']=_0x150ef0,this['_setItemTop'](_0x46055a,_0x150ef0));}),this['listenTo'](_0x46055a,'change:top',()=>{this['_recalculate'](_0x46055a,'top');}),this['listenTo'](_0x46055a,'change:bottom',()=>{this['_recalculate'](_0x46055a,'bottom');}),this['_alignToTargetRect'](_0x46055a);const _0x594337=this['_getItemBefore'](_0x46055a);if(_0x594337)this['_alignAfterItem'](_0x594337,_0x46055a)||this['_alignToTargetRect'](_0x46055a);else this['_alignToTargetRect'](_0x46055a);return this['_updateLastItem'](),this['view']['list']['add'](_0x46055a),_0x46055a;}['_alignForTopChange'](_0x55053b){if(!_0x55053b['content']['length'])return;const _0x13d2c4=this['_getItemBefore'](_0x55053b);if(!_0x13d2c4)return;const _0x163c7d=this['_sidebarItemViewToAnnotation']['get'](_0x13d2c4),_0x3c7ee7=this['_activeAnnotation'];_0x3c7ee7&&_0x3c7ee7===_0x163c7d?this['_alignAfterItem'](_0x13d2c4,_0x55053b):this['_alignBeforeItem'](_0x55053b,_0x13d2c4);}['_alignForBottomChange'](_0x5e9cad){if(!_0x5e9cad['content']['length'])return;const _0x94ad88=this['_getItemAfter'](_0x5e9cad);if(!_0x94ad88)return;const _0xdc6141=this['_sidebarItemViewToAnnotation']['get'](_0x94ad88),_0x5a7a05=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x3b8a24=this['_activeAnnotation'];_0x3b8a24&&_0x3b8a24===_0xdc6141&&_0x5a7a05?(this['_alignBeforeItem'](_0x94ad88,_0x5e9cad),this['_alignAfterItem'](_0x5e9cad,_0x94ad88)):_0x3b8a24&&_0x3b8a24===_0xdc6141?this['_alignBeforeItem'](_0x94ad88,_0x5e9cad):this['_alignAfterItem'](_0x5e9cad,_0x94ad88);}['_recalculate'](_0x1d4c01,_0x25aaf2){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5555b0,changedProp:_0x4915c5}of this['_recalculateBuffer'])'top'===_0x4915c5?this['_alignForTopChange'](_0x5555b0):this['_alignForBottomChange'](_0x5555b0);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x1d4c01,'changedProp':_0x25aaf2});}['getSidebarItemView'](_0x129ab3){return this['_annotationToSidebarItemView']['get'](_0x129ab3);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x252827){const _0x33c235=this['getSidebarItemView'](_0x252827);this['stopListening'](_0x33c235),this['stopListening'](_0x252827['view']),_0x33c235['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x252827),this['_sidebarItemViewToAnnotation']['delete'](_0x33c235);}['_createSidebarView'](){const _0x29d1ee=new H(this['context']['locale']);return _0x29d1ee['render'](),this['on']('change:_lastItem',(_0x190073,_0x3b60be,_0x99c24a,_0x46fde5)=>{_0x46fde5&&_0x29d1ee['unbind']('minHeight'),_0x99c24a?_0x29d1ee['bind']('minHeight')['to'](_0x99c24a,'bottom'):_0x29d1ee['minHeight']=null;}),_0x29d1ee;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x18f978){const _0x9ad9e5=this['_sidebarItemViewToAnnotation']['get'](_0x18f978),_0x16907d=_0x9ad9e5&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x9ad9e5)-0x1);return _0x16907d&&this['getSidebarItemView'](_0x16907d)||null;}['_getItemAfter'](_0xea61b1){const _0x2daf02=this['_sidebarItemViewToAnnotation']['get'](_0xea61b1),_0x16e959=_0x2daf02&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2daf02)+0x1);return _0x16e959&&this['getSidebarItemView'](_0x16e959)||null;}['_alignBeforeItem'](_0x48d677,_0x44a8b7){_0x48d677['updateHeight']();const _0x46ee8b=G(_0x44a8b7['bottom']+this['_spaceBetweenItems'],_0x48d677['top']);return!!_0x46ee8b&&(this['_setItemTop'](_0x44a8b7,_0x44a8b7['top']-_0x46ee8b),!0x0);}['_alignAfterItem'](_0x19b6d3,_0x1bdf69){_0x19b6d3['updateHeight']();const _0x110c05=G(_0x19b6d3['bottom']+this['_spaceBetweenItems'],_0x1bdf69['top']);return!!_0x110c05&&(this['_setItemTop'](_0x1bdf69,_0x1bdf69['top']+_0x110c05,!0x1),!0x0);}['_alignToTargetRect'](_0x148176){const _0x8c56f8=this['_sidebarItemViewToAnnotation']['get'](_0x148176);if(!_0x8c56f8||!_0x8c56f8['target']||!_0x8c56f8['targetRect'])return;const _0x4b2af3=this['_getTargetTop'](_0x8c56f8,_0x8c56f8['targetRect']);this['_setItemTop'](_0x148176,_0x4b2af3);}['_getTargetTop'](_0xb3b15c,_0x52d888){if(null===_0x52d888)return 0x0;if(_0xb3b15c['target']instanceof _0x5f3a0a)return _0x52d888['top'];{const _0xbfa193=new _0x5f3a0a(this['view']['element'])['top'];return _0x52d888['top']-_0xbfa193;}}['_setItemTop'](_0x5e3edb,_0x5597d6,_0x2b5706=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x2b5706&&(_0x5597d6=Math['max'](_0x5597d6,this['_getMaxAvailableTop'](_0x5e3edb))),_0x5e3edb['top']=_0x5597d6;}['_getMaxAvailableTop'](_0xffee03){let _0x31eed7=this['_getItemBefore'](_0xffee03),_0x5a9a19=0x0;for(;_0x31eed7;)_0x31eed7['updateHeight'](),_0x5a9a19+=this['_spaceBetweenItems']+_0x31eed7['height'],_0x31eed7=this['_getItemBefore'](_0x31eed7);return _0x5a9a19;}}function G(_0x432f14,_0x9f6e98){return Math['max'](_0x432f14-_0x9f6e98,0x0);}function g(_0x25cbed){return null!==_0x25cbed&&'object'==typeof _0x25cbed&&0x1===_0x25cbed['nodeType'];}class e extends _0x35dfc2{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd0d51a){super(_0xd0d51a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x22714a(),this['_refreshPositioningDebounced']=_0x340747(()=>{_0xd0d51a['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2ddd65=this['context']['plugins']['get'](j),_0x2164e1=this['context']['plugins']['get'](z);_0x2ddd65['register']('wideSidebar',this),_0x2164e1['container']&&_0x2ddd65['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4918ef){if(_0x4918ef===this['activeAnnotation'])return;const _0x12460b=this['context']['plugins']['get'](z);_0x12460b['_activeAnnotation']=_0x4918ef;const _0x779ddb=this['activeAnnotation'];_0x12460b['refresh']({'blurredAnnotation':_0x779ddb,'activatedAnnotation':_0x4918ef}),this['activeAnnotation']=_0x4918ef;}['attach'](_0x562a5c){this['annotations']=_0x562a5c;const _0x4c9aa3=this['context']['plugins']['get'](z);if(_0x4c9aa3['_annotations']=_0x562a5c,this['isAttached'])throw new _0x29e429('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x4c9aa3,'set:container',()=>{this['detach'](),this['listenTo'](_0x4c9aa3,'change:container',_0x23b064=>{_0x23b064['off'](),this['attach'](_0x562a5c);});}),_0x4c9aa3['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x1867bc=_0x55934f=>{_0x55934f['updateTargetRect'](),_0x4c9aa3['addAnnotation'](_0x55934f);};for(const _0x22e11a of _0x562a5c)_0x1867bc(_0x22e11a);this['listenTo'](_0x562a5c,'add',(_0xa8f8dc,_0xb46171)=>{_0x1867bc(_0xb46171);}),this['listenTo'](_0x562a5c,'remove',(_0xc8ff91,_0x53ba4a,_0x29a8f7)=>{_0x4c9aa3['rearrange']({'removedAnnotation':_0x53ba4a,'previousAnnotation':_0x562a5c['get'](_0x29a8f7-0x1),'nextAnnotation':_0x562a5c['get'](_0x29a8f7+0x1)}),_0x53ba4a===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x562a5c,'focus',(_0x3cb638,_0x4a43ad)=>{this['setActiveAnnotation'](_0x4a43ad);}),this['listenTo'](_0x562a5c,'blur',()=>{this['setActiveAnnotation'](null);});const _0x22018d=this['context']instanceof _0x55e756?this['context']['editors']:new _0x22714a([this['context']]);for(const _0x5b3070 of _0x22018d)this['_integrateWithEditorAnnotations'](_0x5b3070);this['listenTo'](_0x22018d,'add',(_0x15df1a,_0x1681b2)=>{this['listenTo'](_0x1681b2,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1681b2);});}),this['listenTo'](_0x22018d,'remove',(_0x4df974,_0x368e5f)=>{_0x368e5f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x368e5f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x29e429('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3fd5b7=this['context']['plugins']['get'](z);_0x3fd5b7['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3fd5b7),this['stopListening'](this['annotations']),this['context']instanceof _0x55e756&&this['stopListening'](this['context']['editors']);for(const _0x44ab88 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x44ab88);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x11ce55){if(!_0x11ce55['plugins']['has']('EditorAnnotations'))return;const _0x534544=_0x11ce55['plugins']['get']('EditorAnnotations'),_0x896d2d=()=>{const _0x13cafd=_0x534544['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x13cafd[0x0]||null);};this['listenTo'](_0x534544,'refresh',_0x896d2d),this['listenTo'](_0x534544,'blur',(_0x28f467,{isAnnotationTracked:_0x37407e})=>{this['activeAnnotation']&&_0x37407e(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x534544,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x2e45aa=>{_0x534544['hasDomSelection']()&&(_0x896d2d(),_0x2e45aa['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x534544);}['_destroyEditorAnnotationsIntegration'](_0x1c44dc){this['stopListening'](_0x1c44dc),this['_editorAnnotations']['remove'](_0x1c44dc);}}class C extends _0x222733{['counterView'];constructor(_0x4196f9){super(_0x4196f9);const _0x4d9ac7=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1edc87,_0x5f524d)=>_0x1edc87?'...':_0x5f524d['toString']()),this['set']('annotationType',''),this['icon']=_0x10df15,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4d9ac7['to']('annotationType',_0x266980=>'ck-annotation-counter__badge--'+_0x266980),_0x4d9ac7['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4d9ac7['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x35dfc2{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9dd79f){super(_0x9dd79f),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x10f0fb())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x22714a(),this['_refreshPositioningDebounced']=_0x340747(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x2dc30b(this['context']['locale']),this['balloonPanelView']=new _0x318538(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x3b42ba){this['annotations']=_0x3b42ba;const _0x3a9bba=this['context']['plugins']['get'](z),_0xd409c1=this['balloonPanelView'];if(_0x3a9bba['_annotations']=_0x3b42ba,this['isAttached'])throw new _0x29e429('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3a9bba,'set:container',()=>{this['detach'](),this['listenTo'](_0x3a9bba,'change:container',_0xb8ac6a=>{_0xb8ac6a['off'](),this['attach'](_0x3b42ba);});}),_0x3a9bba['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x555cbf=_0x3d4ce7=>{const _0x2fc754=new C(this['context']['locale']);_0x3a9bba['addAnnotation'](_0x3d4ce7,_0x2fc754),this['_annotationToNarrowView']['set'](_0x3d4ce7,_0x2fc754),_0x2fc754['bind']('isDirty','annotationType','number')['to'](_0x3d4ce7['view'],'isDirty','type','length'),_0x2fc754['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0xd409c1['content']['first']!==_0x3d4ce7['view']?(this['_showBalloon'](_0x3d4ce7),_0x3d4ce7['view']['element']['focus'](),this['setActiveAnnotation'](_0x3d4ce7)):this['setActiveAnnotation'](null);});};for(const _0x8070a5 of _0x3b42ba)_0x555cbf(_0x8070a5);this['listenTo'](_0x3b42ba,'add',(_0x2a9f7a,_0x1dbf1d)=>{_0x555cbf(_0x1dbf1d);}),this['listenTo'](_0x3b42ba,'remove',(_0xeeec30,_0x5c3675,_0x256f48)=>{this['_annotationToNarrowView']['get'](_0x5c3675)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5c3675),_0x3a9bba['rearrange']({'removedAnnotation':_0x5c3675,'previousAnnotation':_0x3b42ba['get'](_0x256f48-0x1),'nextAnnotation':_0x3b42ba['get'](_0x256f48+0x1)}),_0x5c3675===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3b42ba,'focus',(_0x24674a,_0x533ad3)=>{this['setActiveAnnotation'](_0x533ad3);}),this['listenTo'](_0x3b42ba,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x57d0a9,_0x4a2a5c)=>{_0x4a2a5c['keyCode']===_0x39b093['esc']&&_0xd409c1['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0xd409c1['content']['first']),this['_hideBalloon'](),_0x4a2a5c['stopPropagation'](),_0x4a2a5c['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x6735cb,_0x43666e)=>{const _0x1115e2=_0x43666e['target'];_0xd409c1['isVisible']&&_0xd409c1['element']['contains'](_0x1115e2)||_0x3a9bba['view']['element']['contains'](_0x1115e2)||_0x6735cb['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x395b12=>_0x395b12['contains'](_0x1115e2))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x353954=this['context']instanceof _0x55e756?this['context']['editors']:new _0x22714a([this['context']]);for(const _0x524926 of _0x353954)this['_integrateWithEditorAnnotations'](_0x524926);this['listenTo'](_0x353954,'add',(_0x40c81b,_0x356701)=>{this['listenTo'](_0x356701,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x356701);});}),this['listenTo'](_0x353954,'remove',(_0x46c989,_0x5adbf6)=>{_0x5adbf6['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5adbf6['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2be07d){if(_0x2be07d===this['activeAnnotation'])return;const _0x35d67f=this['context']['plugins']['get'](z);if(_0x35d67f['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2be07d,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2be07d)_0x35d67f['getSidebarItemView'](_0x2be07d)?this['_showBalloon'](_0x2be07d):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2be07d;}['detach'](){if(!this['isAttached'])throw new _0x29e429('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x469194=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x3ec5a3=>_0x3ec5a3['destroy']()),this['_annotationToNarrowView']['clear'](),_0x469194['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x55e756&&this['stopListening'](this['context']['editors']);for(const _0x549533 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x549533);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0xdb28df){if(!_0xdb28df['plugins']['has']('EditorAnnotations'))return;const _0x381d4d=_0xdb28df['plugins']['get']('EditorAnnotations'),_0x26fa49=this['context']['plugins']['get'](z),_0x3ee1ea=this['annotations'],_0x2f4eed=this['balloonPanelView'],_0x567316=()=>{const _0x1c9e1a=_0x381d4d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1c9e1a),this['setActiveAnnotation'](_0x1c9e1a[0x0]||null);};this['listenTo'](_0x381d4d,'refresh',_0x567316),this['listenTo'](_0x381d4d,'blur',(_0x315096,{isAnnotationTracked:_0x2e4e38})=>{this['activeAnnotation']&&_0x2e4e38(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x381d4d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3ee1ea,'blur',_0x1f6dfc=>{_0x381d4d['hasDomSelection']()&&_0x1f6dfc['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1f2c6d,_0x4f9533)=>{const _0xb453eb=_0x4f9533['target'];_0x2f4eed['isVisible']&&_0x2f4eed['element']['contains'](_0xb453eb)||_0x26fa49['view']['element']['contains'](_0xb453eb)||this['activeAnnotation']&&_0x381d4d['hasDomSelection']()&&(_0x567316(),_0x1f2c6d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x381d4d);}['_destroyEditorAnnotationsIntegration'](_0x228c4a){_0x228c4a&&(this['stopListening'](_0x228c4a),this['_editorAnnotations']['remove'](_0x228c4a));}['_setSelectedAnnotations'](_0x5d95d8){for(const _0x58a604 of this['_selectedAnnotations'])_0x5d95d8['includes'](_0x58a604)||this['_manuallyClosedAnnotationViews']['delete'](_0x58a604['view']);this['_selectedAnnotations']=_0x5d95d8;}['_refreshPositioning'](){const _0x538e75=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x538e75['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x11d73b){if(this['_manuallyClosedAnnotationViews']['has'](_0x11d73b['view']))return;const _0x567e0c=this['balloonPanelView']['content']['first'];_0x567e0c!==_0x11d73b['view']?(_0x567e0c&&this['_detachListeners'](_0x567e0c),this['_attachListeners'](_0x11d73b['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x11d73b['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4c39d1=this['balloonPanelView']['content']['first'],_0x5c95c3=_0x4c39d1&&this['annotations']['getByView'](_0x4c39d1);if(!_0x5c95c3||!this['_annotationToNarrowView']['has'](_0x5c95c3))return;const _0x5b061e=this['_annotationToNarrowView']['get'](_0x5c95c3)['element'],_0x508ec9=(function(){const _0x1459c1=_0x318538['defaultPositions'];return[_0x1459c1['southArrowNorthEast'],_0x1459c1['northArrowSouthEast'],_0x1459c1['southArrowNorth'],_0x1459c1['northArrowSouth'],_0x1459c1['southArrowNorthWest'],_0x1459c1['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5b061e,'positions':_0x508ec9});}['_hideBalloon'](){const _0x14d290=this['balloonPanelView'],_0x51458c=_0x14d290['content']['first'];_0x51458c&&(this['_detachListeners'](_0x51458c),_0x14d290['unpin'](),_0x14d290['content']['clear']());}['_attachListeners'](_0x5ec958){this['listenTo'](_0x5ec958,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x5ec958,'Esc',(_0x19ab9a,_0x1deb75)=>{this['_manuallyClosedAnnotationViews']['add'](_0x5ec958),this['_hideBalloon'](),_0x1deb75();});}['_detachListeners'](_0x54bc9d){this['stopListening'](_0x54bc9d);}}class c extends _0x3732d9{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x3d3d3f,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x246210){super(_0x246210),_0x246210['editing']['view']['addObserver'](_0x3d1846),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x246210['plugins']['get'](_0x3d3d3f),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x332620=this['editor']['plugins']['get'](j);_0x332620['context']===this['editor']&&(_0x332620['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x26e307,_0x37fcbb)=>{const _0x4dd978=this['_balloon'];if(this['isAttached']&&_0x4dd978['visibleView']){const _0xe8f768=this['annotations']['getByView'](_0x4dd978['visibleView']);_0xe8f768&&this['_closeAnnotation'](_0xe8f768),_0x37fcbb();}}));}['afterInit'](){const _0x4cd17b=this['editor']['plugins']['get'](j);_0x4cd17b['context']===this['editor']&&(_0x4cd17b['hasActive']()||_0x4cd17b['switchTo']('inline'));}['setActiveAnnotation'](_0x3b4d9a){_0x3b4d9a!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x3b4d9a&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x3b4d9a)&&this['_addAnnotationToBalloon'](_0x3b4d9a,!0x0),_0x3b4d9a['isActive']=!0x0),_0x3b4d9a||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3b4d9a);}['attach'](_0x15a53d){this['annotations']=_0x15a53d;const _0x459a86=this['editor']['plugins']['get'](j),_0x3885f5=this['_balloon'];if(this['isAttached'])throw new _0x29e429('inlineannotations-attach-already-attached',this);if(_0x459a86['context']!==this['editor'])throw new _0x29e429('inlineannotations-not-allowed-with-context',this);const _0x524f32=this['editor']['plugins']['get'](b);this['listenTo'](_0x524f32,'refresh',()=>{const _0x2c24fc=_0x524f32['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x16137d,_0x2fca43;!this['_forceRefresh']&&(_0x16137d=_0x2c24fc,_0x2fca43=this['_selectedAnnotations'],_0x16137d['length']===_0x2fca43['length']&&_0x16137d['every'](_0x303d3f=>_0x2fca43['includes'](_0x303d3f)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2c24fc),this['setActiveAnnotation'](_0x2c24fc[0x0]||null));}),this['listenTo'](_0x524f32,'blur',(_0x109aa2,{isAnnotationTracked:_0x41d025})=>{this['activeAnnotation']&&_0x41d025(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x414f1c,_0x52fd32,_0x10ebc2)=>{_0x10ebc2||this['setActiveAnnotation'](null);}),this['listenTo'](_0x15a53d,'remove',(_0xe4b72b,_0x322a51)=>{this['_removeAnnotationFromBalloon'](_0x322a51),_0x322a51===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3885f5,'change:visibleView',(_0x18dd66,_0x142c64,_0x2793d8,_0x59abf0)=>{_0x59abf0&&this['stopListening'](_0x59abf0);const _0x134532=_0x15a53d['getByView'](_0x2793d8);_0x2793d8&&_0x134532&&(this['listenTo'](_0x2793d8,'change:height',()=>{_0x3885f5['updatePosition']();}),this['listenTo'](_0x2793d8,'Esc',()=>{this['_closeAnnotation'](_0x134532),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x134532&&this['setActiveAnnotation'](_0x134532));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x3885f5['visibleView']&&(_0x15a53d['getByView'](_0x3885f5['visibleView'])&&_0x3885f5['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x29e429('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x21044d of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x21044d);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xfc5cbf){for(const _0x6c320e of this['_selectedAnnotations'])_0xfc5cbf['includes'](_0x6c320e)||this['_manuallyClosed']['delete'](_0x6c320e);for(const _0x192062 of this['annotations'])_0xfc5cbf['includes'](_0x192062)||this['_removeAnnotationFromBalloon'](_0x192062);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x2fc22b of _0xfc5cbf)this['_addAnnotationToBalloon'](_0x2fc22b);}this['_selectedAnnotations']=_0xfc5cbf;}['_addAnnotationToBalloon'](_0x3379e0,_0xc6a626=!0x1){this['_manuallyClosed']['has'](_0x3379e0)||(this['_addedAnnotations']['has'](_0x3379e0)||this['_balloon']['hasView'](_0x3379e0['view'])||(this['_addedAnnotations']['add'](_0x3379e0),this['_balloon']['add']({'stackId':_0x3379e0['view']['id'],'view':_0x3379e0['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3379e0)}})),_0xc6a626&&this['_balloon']['showStack'](_0x3379e0['view']['id']));}['_getBalloonTargetForAnnotation'](_0x57ba0a){const _0x3689ff=_0x57ba0a['target'],_0x32639a=this['editor']['editing']['view'],_0x55f8fc=_0x32639a['document']['selection']['getFirstRange'](),_0x4984e1=_0x32639a['domConverter']['viewRangeToDom'](_0x55f8fc);if(_0x4984e1['collapse'](!0x0),_0x3689ff){if(_0x3689ff instanceof _0x5f3a0a)return _0x3689ff;let _0x13f5b7=[];for(const _0x4e376a of _0x3689ff)_0x13f5b7['push'](...F(_0x4e376a['getClientRects']()));_0x13f5b7=function(_0x4a11dc){const _0x17683a=[];let _0x382354=_0x4a11dc[0x0];for(let _0x311496=0x1;_0x311496<_0x4a11dc['length'];_0x311496++)P(_0x382354,_0x4a11dc[_0x311496])?_0x382354['width']+=_0x4a11dc[_0x311496]['width']:(_0x17683a['push'](_0x382354),_0x382354=_0x4a11dc[_0x311496]);return _0x17683a['push'](_0x382354),_0x17683a;}(_0x13f5b7);const _0xd86a96=_0x4984e1['getBoundingClientRect']();return _0x13f5b7['find'](_0x3176a7=>_0x3176a7['top']<=_0xd86a96['top']&&_0x3176a7['bottom']>=_0xd86a96['bottom']&&_0x3176a7['left']<=_0xd86a96['left']&&_0x3176a7['right']>=_0xd86a96['right'])||_0x13f5b7[0x0];}return _0x57ba0a['targetRect']||_0x4984e1;}['_removeAnnotationFromBalloon'](_0x34b73c){this['_addedAnnotations']['has'](_0x34b73c)&&this['_balloon']['hasView'](_0x34b73c['view'])&&(this['_addedAnnotations']['delete'](_0x34b73c),this['_balloon']['remove'](_0x34b73c['view']));}['_closeAnnotation'](_0x6ae19a){this['_manuallyClosed']['add'](_0x6ae19a),this['_removeAnnotationFromBalloon'](_0x6ae19a);}}function F(_0x1d85bb){return Array['from'](_0x1d85bb)['map'](DOMRect['fromRect']);}function P(_0x48415e,_0x32c825){return _0x48415e['top']===_0x32c825['top']&&_0x48415e['bottom']===_0x32c825['bottom']&&_0x48415e['right']===_0x32c825['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x45a4d6,_0x38a80e){super(_0x45a4d6),this['set']('isEmpty',!_0x38a80e['length']),this['focusTracker']=new _0x242e0a(),this['_annotationViews']=_0x38a80e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x470c60({'focusables':_0x38a80e,'focusTracker':this['focusTracker']}),this['listenTo'](_0x38a80e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x38a80e,'remove',(_0x120d2e,_0x28a795)=>{_0x28a795['isActive']&&this['focus'](),_0x38a80e['length']||(this['isEmpty']=!0x0);});const _0x5850ae=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x45a4d6,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x38a80e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x5850ae['if']('isEmpty','ck-hidden',_0x49907c=>!_0x49907c)]},'children':[{'text':N(_0x45a4d6,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x2549c6 of this['_annotationViews'])this['focusTracker']['add'](_0x2549c6['element']);this['_annotationViews']['on']('change',(_0x5a2b27,{added:_0x227cd2,removed:_0x469a9f})=>{for(const _0x23b6f3 of _0x227cd2)this['focusTracker']['add'](_0x23b6f3['element']);for(const _0x961cab of _0x469a9f)this['focusTracker']['remove'](_0x961cab['element']);});}}class p extends _0x35dfc2{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x2abc82){super(_0x2abc82),this['archivedThreads']=new _0x22714a();}['init'](){const _0x1987e9=this['context'],_0x36badc=_0x1987e9['plugins']['get'](o),_0x2825ac=_0x1987e9['plugins']['get'](y);this['listenTo'](_0x36badc,'addCommentThread',(_0x12bb07,{threadId:_0x4cbf30})=>{const _0x3c0f84=_0x36badc['getCommentThread'](_0x4cbf30);_0x3c0f84['archivedAt']&&this['archivedThreads']['add'](_0x3c0f84,this['_calculatePosition'](_0x3c0f84['archivedAt'])),this['listenTo'](_0x3c0f84,'change:archivedAt',(_0x4090bd,_0xd8b7f8,_0x46f789)=>{_0x46f789?this['archivedThreads']['has'](_0x3c0f84)||this['archivedThreads']['add'](_0x3c0f84,this['_calculatePosition'](_0x3c0f84['archivedAt'])):this['archivedThreads']['has'](_0x3c0f84)&&this['archivedThreads']['remove'](_0x3c0f84);});}),this['listenTo'](_0x36badc,'removeCommentThread',(_0x1f176b,{threadId:_0x22e4d2})=>{const _0x292c3c=_0x36badc['getCommentThread'](_0x22e4d2);this['stopListening'](_0x292c3c),this['archivedThreads']['has'](_0x292c3c)&&this['archivedThreads']['remove'](_0x292c3c);},{'priority':'highest'}),this['listenTo'](_0x2825ac['collection'],'focus',(_0xcf3028,_0x356e0d)=>{_0x356e0d['isVisible']||(_0x356e0d['isActive']=!0x0,_0x2825ac['activate'](_0x356e0d));});}['_calculatePosition'](_0x1ef76f){const _0x9b89fc=[...this['archivedThreads']]['findIndex'](_0x3bb935=>_0x3bb935['archivedAt']<_0x1ef76f);return _0x9b89fc>-0x1?_0x9b89fc:this['archivedThreads']['length'];}}class a extends _0x3732d9{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x2561e8];}constructor(_0x77fb7d){super(_0x77fb7d),this['annotationViews']=new _0xd5b2d1(),this['_pendingThreads']=[];}['init'](){const _0x1ac508=this['editor'],_0x39ca99=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1ac508['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x222733,!0x0)),_0x1ac508['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x201f4f=this['_createCommentsArchiveButton'](_0x59a680);return _0x201f4f['set']({'role':'menuitemcheckbox'}),_0x201f4f;});const _0x45f849=_0x1ac508['plugins']['get'](p),_0x27f97e=_0x1ac508['plugins']['get']('Annotations'),_0x22abc7=_0x1ac508['plugins']['get']('CommentsRepository');_0x45f849['archivedThreads']['forEach'](_0x58fcb2=>{this['_handleNewThread'](_0x58fcb2);}),this['listenTo'](_0x45f849['archivedThreads'],'add',(_0x410d8f,_0xdc3ec0)=>{this['_handleNewThread'](_0xdc3ec0);}),this['listenTo'](_0x27f97e['collection'],'add',(_0x716873,_0x1c40ae)=>{const _0x277768=this['_pendingThreads']['find'](_0x2bb8f3=>{const _0x26413f=_0x22abc7['_threadToController']['get'](_0x2bb8f3);return _0x26413f&&_0x1c40ae['innerView']===_0x26413f['view'];});if(_0x277768){const _0x159667=this['_calculatePosition'](_0x277768['archivedAt']);this['_addAnnotationToArchive'](_0x1c40ae,_0x159667),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x277768),0x1);}}),this['listenTo'](_0x45f849['archivedThreads'],'remove',(_0x151e2f,_0x452fca)=>{const _0x16ce8e=_0x1ac508['config']['get']('collaboration.channelId');if(!_0x16ce8e||_0x452fca['channelId']===_0x16ce8e){if(this['_pendingThreads']['includes'](_0x452fca))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x452fca),0x1);else{const _0x336a25=_0x22abc7['_threadToController']['get'](_0x452fca),_0x27b810=_0x27f97e['getByInnerView'](_0x336a25['view']);this['annotationViews']['remove'](_0x27b810['view']),this['stopListening'](_0x27b810),this['stopListening'](_0x27b810['focusableElements']);}}}),this['listenTo'](_0x27f97e['collection'],'add',(_0x537aa8,_0x289768)=>{this['listenTo'](_0x289768,'escape',_0x39ca99);}),this['listenTo'](_0x27f97e['collection'],'remove',(_0x5e9ecf,_0x2e257e)=>{this['stopListening'](_0x2e257e,'escape',_0x39ca99);});}['_addAnnotationToArchive'](_0x3ef9d2,_0x3937ad){this['listenTo'](_0x3ef9d2,'set:isVisible',_0x423e31=>{_0x423e31['return']=!0x1,_0x423e31['stop']();}),this['annotationViews']['add'](_0x3ef9d2['view'],_0x3937ad);}['_handleNewThread'](_0x227933){const _0x258a14=this['editor']['plugins']['get']('CommentsRepository'),_0x22f549=this['editor']['plugins']['get']('Annotations'),_0x273969=this['editor']['config']['get']('collaboration.channelId');if(!_0x273969||_0x227933['channelId']===_0x273969){const _0x2ecba2=_0x258a14['_threadToController']['get'](_0x227933);if(!_0x2ecba2)return void this['_pendingThreads']['push'](_0x227933);const _0xe242fc=this['_calculatePosition'](_0x227933['archivedAt']),_0x458ee0=_0x22f549['getByInnerView'](_0x2ecba2['view']);_0x458ee0['isVisible']&&_0x22f549['_visibleAnnotations']['remove'](_0x458ee0),this['_addAnnotationToArchive'](_0x458ee0,_0xe242fc);}}['_calculatePosition'](_0x1d4224){const _0x502762=this['editor']['config']['get']('collaboration.channelId'),_0x430044=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x56347e=>_0x56347e['channelId']===_0x502762)['findIndex'](_0x58a2f3=>_0x58a2f3['archivedAt']<_0x1d4224);return _0x430044<0x0||_0x430044>this['annotationViews']['length']?this['annotationViews']['length']:_0x430044-0x1;}['_toggleDialog'](){const _0x15de41=this['editor'],_0x31566e=_0x15de41['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x15de41['locale'],this['annotationViews'])),'commentsArchive'===_0x31566e['id']?_0x31566e['hide']():_0x31566e['show']({'id':'commentsArchive','title':N(_0x15de41['locale'],'COMMENTS_ARCHIVE'),'icon':_0x43bc8d,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x9c172b['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x4062ef,_0x10e2db=!0x1){const _0x4a5c69=this['editor']['locale'],_0x5a624b=this['editor']['plugins']['get']('Dialog'),_0x30d814=new _0x4062ef(_0x4a5c69);return _0x30d814['bind']('isEnabled')['to'](this,'isEnabled'),_0x30d814['bind']('isOn')['to'](_0x5a624b,'id',_0xf108c1=>'commentsArchive'===_0xf108c1),_0x30d814['set']({'label':N(_0x4a5c69,'COMMENTS_ARCHIVE'),'icon':_0x43bc8d,'isToggleable':!0x0}),_0x10e2db&&(_0x30d814['tooltip']=!0x0),this['listenTo'](_0x30d814,'execute',()=>this['_toggleDialog']()),_0x30d814;}['_hideDialogOnAnnotationEscape']=_0xe829cc=>{const _0x1e01e8=_0xe829cc['source'];if(!this['annotationViews']['has'](_0x1e01e8['view']))return;const _0x360207=this['editor']['plugins']['get']('Dialog');_0x360207['isOpen']&&'commentsArchive'===_0x360207['id']&&(_0x360207['hide'](),_0xe829cc['stop']());};}class gi extends _0x3732d9{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
23
+ import{Editor as _0x4e31ca,ContextPlugin as _0x1ea55c,PendingActions as lt,Command as _0x3c84c7,Plugin as _0x49dc60,Context as _0x5615d3}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x28df92,uid as _0x549422,KeystrokeHandler as jt,FocusTracker as _0x3af043,diff as _0x194f01,Collection as _0x15ba5f,Rect as _0x247ddb,CKEditorError as _0x3ca26a,first as _0x1a9975,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x244d46,keyCodes as _0x5c1ee6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x23f446,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x445976,trimHtml as ts,LateFocusDropdownButtonView as _0x17b0e6,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x35044a}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x4f76db}from'es-toolkit/compat';import{IconUndo as _0x4f63b3,IconCheck as _0x365699,IconPencil as _0x3082d4,IconRemoveComment as _0x53d013,IconThreeVerticalDots as _0x4af346,IconAddComment as _0x58c113,IconCommentsArchive as _0x37b4e5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0x19c4d9,ButtonView as _0x48fd4a,ViewCollection as _0x53d65b,createDropdown as _0x19bb9b,ListView as _0x542ff5,focusChildOnDropdownOpen as _0x5d72a6,ListItemView as _0x496a60,MenuBarMenuListItemButtonView as _0xd96c20,BodyCollection as _0x1d59a6,BalloonPanelView as _0x33a601,ContextualBalloon as _0x2e1933,Dialog as _0x53b91c,DialogViewPosition as _0x2d15a8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x14a44e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x54c0f0}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x424caf}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
24
+ _0x28df92(){['model'];['view'];constructor(_0x45d727,_0x2c8948){super(),this['model']=_0x45d727,this['model']['_isAttached']=!0x0,this['view']=_0x2c8948,this['listenTo'](_0x2c8948,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x2c8948,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x2c8948,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x2c8948,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x2c8948,'addComment',(_0x206cb8,_0x4a986c)=>this['addComment'](_0x4a986c)),this['listenTo'](_0x2c8948,'updateComment',(_0x190ee4,_0x3510f2,_0x24fffd)=>this['updateComment'](_0x3510f2,_0x24fffd)),this['listenTo'](_0x2c8948,'removeComment',(_0x38052f,_0x1c63fe)=>this['removeComment'](_0x1c63fe));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x1d448e){this['model']['addComment']({'content':_0x1d448e,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x36bc26,_0x101110){this['model']['getComment'](_0x36bc26)['update']({'content':_0x101110});}['removeComment'](_0x55517f){this['model']['getComment'](_0x55517f)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x3d205,_0xb74371,_0x32ad3b){const t=_0x3d205['t'];switch(_0xb74371){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'},_0x32ad3b);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'},_0x32ad3b);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'},_0x32ad3b);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'},_0x32ad3b);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x32ad3b);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'},_0x32ad3b);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'},_0x32ad3b);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'},_0x32ad3b);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(_0x28c62b,_0x4c7f3c){super(_0x28c62b);const _0x8ec6bc=_0x549422();this['main']=this['createCollection'](),this['editable']=new Vt(_0x28c62b,_0x4c7f3c,void 0x0,{'label':()=>N(_0x28c62b,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x28c62b['uiLanguageDirection'],'lang':_0x28c62b['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x8ec6bc},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x4747ae){super(_0x4747ae),this['view']=new Rt(_0x4747ae['locale'],_0x4747ae['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1c6dc6=this['editor']['editing']['view'],_0x1c8679=this['view']['editable'],_0xdd732c=_0x1c6dc6['document']['getRoot']();_0x1c8679['name']=_0xdd732c['rootName'],this['view']['render']();const _0x23036c=_0x1c8679['element'];this['setEditableElement'](_0x1c8679['name'],_0x23036c),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1c6dc6['attachDomRoot'](_0x23036c),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
25
+ _0x28df92(_0x4e31ca){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Qt)());constructor(_0x1ff68b={}){function _0x27cfcd(_0x244b11){return _0x244b11['map'](_0x2f07a4=>String['fromCharCode'](_0x2f07a4))['join']('');}(_0x1ff68b=Object['assign']({},_0x1ff68b))['plugins']||(_0x1ff68b['plugins']=hs['defaultPlugins']),super(_0x1ff68b),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x27cfcd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27cfcd([0x76,0x69,0x65,0x77])][_0x27cfcd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27cfcd([0x61,0x75,0x74,0x6f]),this[_0x27cfcd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x27cfcd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27cfcd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x27cfcd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x27cfcd([0x6f,0x6b])});}['create'](){const _0x41f8d0=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x41f8d0))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x21e06d=>{const _0x39060c=this['model']['document']['getRoot'](),_0x289b68=_0x39060c&&_0x39060c['getChild'](_0x39060c['childCount']-0x1);_0x21e06d['setSelection'](_0x289b68,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x5bd8db=this['editing']['view'],_0x1fc23c=_0x5bd8db['document']['getRoot'](),_0x731274=_0x1fc23c['getChild'](0x0);_0x1fc23c['childCount']>0x1||!_0x731274||'p'!=_0x731274['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x5bd8db,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x731274['placeholder']=this['placeholder']),Ft({'view':_0x5bd8db,'element':_0x731274,'keepOnFocus':!0x0}),this['placeholderElement']=_0x731274);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x307c69,_0x44429c={}){super(_0x307c69),this['editor']=null,this['_editorConfig']=_0x44429c,this['set']('value',_0x44429c['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x307c69,'Reply...')),this['set']('submitLabel',N(_0x307c69,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x3af043(),this['focusCycler']=new _0x19c4d9({'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',(_0x4e8374,_0x44925c)=>{this['cancelButtonView']['fire']('execute'),_0x44925c();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3171a5,_0x155c2f)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x155c2f());}),this['on']('submit',(_0x406c9a,_0x4e4941)=>{_0x4e4941['length']>0xfde8?(alert(N(_0x307c69,'TOO_LONG_COMMENT_ALERT',[_0x4e4941['length'],0xfde8])),_0x406c9a['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x37c260=this['editor'];this['element']['insertBefore'](_0x37c260['ui']['element'],this['element']['firstChild']),_0x37c260['model']['document']['on']('change',()=>this['value']=_0x37c260['getData']()),_0x37c260['bind']('placeholder')['to'](this),this['focusables']['add'](_0x37c260['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x383571){-0x1===_0x383571?(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:_0x1d98c3}=this,_0x4c19d6=new _0x48fd4a(_0x1d98c3);return _0x4c19d6['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4c19d6['withText']=!0x0,_0x4c19d6['bind']('label')['to'](this,'submitLabel'),_0x4c19d6['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4c19d6['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x3a7794,_0x197781)=>!_0x197781&&!!_0x3a7794['trim']()),_0x4c19d6;}['_createCancelButton'](){const {locale:_0x36516f}=this,_0x4785b5=new _0x48fd4a(_0x36516f);return _0x4785b5['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x4785b5['label']=N(_0x36516f,'Cancel'),_0x4785b5['withText']=!0x0,_0x4785b5['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x4785b5;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3d6e84=>{this['focusTracker']['add'](_0x3d6e84['element']);}),this['focusables']['on']('change',(_0x16f239,_0x593ad0)=>{for(const _0x46f0e1 of Array['from'](_0x593ad0['added'])['reverse']())this['focusTracker']['add'](_0x46f0e1['element']);});}}class ie extends kt{constructor(_0x1b317a,_0x2f0d34,_0x7734f1){super(_0x1b317a),this['commentInputView']=new es(_0x1b317a,_0x7734f1),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x5de8e9,_0x1b562c)=>_0x5de8e9||!!_0x1b562c),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 _0x23f446(_0x1b317a,_0x2f0d34),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'](_0x17c71f){this['commentInputView']['focus'](_0x17c71f);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x530b97,_0x1f06f8)=>{const {submitButtonView:_0x4cedb9,cancelButtonView:_0x5cdc09,editor:_0x15eea2}=this['commentInputView'];[_0x4cedb9['element'],_0x5cdc09['element'],_0x15eea2?_0x15eea2['editing']['view']['getDomRoot']():null]['filter'](_0x177fc3=>_0x177fc3)['some'](_0x38e4db=>_0x38e4db['contains'](_0x1f06f8['target']))||(this['focus'](),_0x1f06f8['preventDefault']());});}}class rs extends kt{constructor(_0x522c56){super(_0x522c56);const _0x5a4297=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x5a4297['to']('count',_0x49c49d=>N(_0x522c56,'NUMBER_OF_COMMENTS',_0x49c49d))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x1abe51,_0x1fd795,_0x1e260f){super(_0x1abe51);const _0x164415=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1fd795['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1fd795,this['_config']=_0x1e260f,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x3af043(),this['keystrokes']=new jt(),this['focusCycler']=new _0x19c4d9({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4c7806=>this['commentViews']['map'](_0x161028=>_0x161028['element'])['includes'](_0x4c7806['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x1abe51),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x4fd4c3=>_0x4fd4c3-this['_config']['maxCommentsWhenCollapsed']);for(const _0xa64a43 of _0x1fd795['comments'])this['_handleNewCommentModel'](_0xa64a43);this['_handleInfoComment'](),this['listenTo'](_0x1fd795['comments'],'add',(_0x10151f,_0x1861b6)=>{const _0x3f37b7=this['_calculatePosition'](_0x1861b6);this['length']++,this['_handleNewCommentModel'](_0x1861b6,_0x3f37b7),this['refreshVisibleViews']();}),this['listenTo'](_0x1fd795['comments'],'remove',(_0x42f666,_0x3d4a1f)=>{this['length']--,this['_handleRemoveCommentModel'](_0x3d4a1f),this['refreshVisibleViews']();}),this['listenTo'](_0x1fd795,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1fd795,'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',_0x164415['if']('length','ck-hidden',_0x249874=>!_0x249874)],'aria-label':N(_0x1abe51,'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'](_0x28c2dc){-0x1===_0x28c2dc?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x59965b of this['commentViews'])_0x59965b['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x29ba0a,_0x10a8f0){const _0x539698=new this['_config']['CommentView'](this['locale'],_0x29ba0a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x539698['viewUid']=_0x29ba0a['id'],_0x539698['delegate']('removeComment')['to'](this),_0x539698['delegate']('updateComment')['to'](this),_0x539698['delegate']('resolveCommentThread')['to'](this),_0x539698['delegate']('editorReady')['to'](this),_0x539698['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x539698,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x539698,_0x10a8f0);}['_calculatePosition'](_0x6a755f){const _0x3db026=this['_model']['_findOptimalIndex'](_0x6a755f);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x6a755f['authoredAt']?_0x3db026-0x1:_0x3db026:_0x3db026-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x10224a={'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'],_0x10224a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x10224a));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x1e79b2){const _0xda85c9=this['commentViews']['remove'](_0x1e79b2['id']);this['stopListening'](_0xda85c9),_0xda85c9['isEditMode']&&this['_updateHasDirtyComment'](),_0xda85c9['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x4975e6=>_0x4975e6['isEditMode']);}['_rearrangeCollapse'](){const _0x28bd2f=function(_0x4a6084){const _0x35f15b=new _0x15ba5f();for(const _0x49fd3a of _0x4a6084)_0x35f15b['add'](_0x49fd3a);return _0x35f15b;}(this['commentViews']),_0x3b9b44=this['_collapsedCommentsView']['count'];for(let _0x52ae1f=0x1;_0x52ae1f<=_0x3b9b44;_0x52ae1f++)_0x28bd2f['remove'](0x1);for(const _0x2dedd5 of _0x28bd2f)_0x2dedd5['collapse']();_0x3b9b44>0x0&&_0x28bd2f['add'](this['_collapsedCommentsView'],0x1),ns(_0x194f01(Array['from'](this['visibleViews']),Array['from'](_0x28bd2f)),this['visibleViews'],_0x28bd2f);}['_rearrangeExpand'](){ns(_0x194f01(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x331e3f of this['visibleViews'])_0x331e3f['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0xceaac0=>{this['focusTracker']['add'](_0xceaac0['element']),this['keystrokes']['listenTo'](_0xceaac0['element']);}),this['commentViews']['on']('change',(_0x255b36,_0x5d1495)=>{for(const _0x65ea16 of _0x5d1495['removed'])this['focusTracker']['remove'](_0x65ea16['element']),this['keystrokes']['stopListening'](_0x65ea16['element']);for(const _0x41788a of Array['from'](_0x5d1495['added'])['reverse']())this['focusTracker']['add'](_0x41788a['element']),this['keystrokes']['listenTo'](_0x41788a['element']);});}}function ns(_0x3527f0,_0x1d6a00,_0x233167){let _0x3f2ed4=0x0;for(const _0x2ea0d0 of _0x3527f0)switch(_0x2ea0d0){case'insert':_0x1d6a00['add'](_0x233167['get'](_0x3f2ed4),_0x3f2ed4),_0x3f2ed4++;break;case'delete':_0x1d6a00['remove'](_0x3f2ed4);break;case'equal':_0x3f2ed4++;}}class oe extends kt{constructor(_0x58fb55){super(_0x58fb55);const _0x29f994=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x29f994['to']('contextValue',_0x3c25a9=>N(_0x58fb55,'THREAD_CONTEXT_LABEL',_0x3c25a9)),'tabindex':-0x1},'children':[{'text':_0x29f994['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x283071,_0x4f006c){super(_0x283071);const _0x120baa=this['bindTemplate'];this['_model']=_0x4f006c,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x3af043(),this['keystrokes']=new jt(),this['focusCycler']=new _0x19c4d9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x1fc32a=>!!_0x1fc32a),this['bind']('contextValue')['to'](this['_model'],'context',_0x9a20c2=>_0x9a20c2&&_0x9a20c2['value']?this['_trimContextValue'](_0x9a20c2['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',_0x120baa['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 _0x9ae4a=new _0x48fd4a(this['locale']);return _0x9ae4a['label']=N(this['locale'],'Reopen'),_0x9ae4a['tooltip']=N(this['locale'],'Reopen'),_0x9ae4a['icon']=_0x4f63b3,_0x9ae4a['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x271a3c=>!_0x271a3c),_0x9ae4a['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5d9194,_0x494fd1)=>_0x5d9194&&_0x494fd1),_0x9ae4a['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x9ae4a;}['_trimContextValue'](_0x32d00b){if(_0x32d00b['length']<0x96)return _0x32d00b;const _0x2c5fbe=_0x32d00b['lastIndexOf']('\x20',0x93);return _0x32d00b['substring'](0x0,_0x2c5fbe>-0x1?_0x2c5fbe:0x93)+'...';}['_attachContextActions'](){const _0x4455f8=this['element']['querySelector']('.ck-context'),_0x5b6f21=_0x4455f8['querySelector']('.ck-context__value');this['listenTo'](_0x4455f8,'mouseenter',()=>{_0x5b6f21['offsetWidth']<_0x5b6f21['scrollWidth']&&_0x4455f8['classList']['add']('overlay');}),this['listenTo'](_0x4455f8,'mouseleave',()=>{_0x4455f8['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x9d5982 of this['focusables'])this['focusTracker']['add'](_0x9d5982['element']),this['keystrokes']['listenTo'](_0x9d5982['element']);}['_createContextView'](){const _0x47a143=new oe(this['locale']);return _0x47a143['bind']('contextValue')['to'](this),_0x47a143;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x408d11,_0x5602f3,_0x1d93cb,_0x173a53){super(_0x408d11),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x5602f3,this['_localUser']=_0x1d93cb,this['_config']=_0x173a53,this['commentThreadHeaderView']=new Xt(_0x408d11,_0x5602f3),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x408d11,N(_0x408d11,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x408d11,_0x5602f3,Object['assign']({'CommentView':this['_config']['CommentView']},_0x173a53)),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',(_0x55c834,_0x8fa8df)=>_0x55c834||!!_0x8fa8df),this['bind']('isUnlinked')['to'](_0x5602f3,'unlinkedAt',_0x5a9973=>!!_0x5a9973),this['bind']('ariaLabel')['to'](this,'length',_0x225eee=>{const _0x57149e=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x225eee,_0x57149e]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x3af043(),this['keystrokes']=new jt(),this['focusCycler']=new _0x19c4d9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x500388=>_0x500388['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 _0xe34b60=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x510cc3=_0xe34b60['commentInputView'];return _0xe34b60['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x510cc3,'value',(_0x1cc28c,_0x44c36d,_0x50466c,_0x29c0f5,_0x44f74c)=>!!_0x44f74c||!!_0x29c0f5&&_0x50466c&&!_0x44c36d||_0x1cc28c&&_0x50466c&&!_0x44c36d),_0x510cc3['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2f821b,_0x4f895b,_0x2db3bf)=>{let _0x2a40bd;return _0x2a40bd=_0x2db3bf&&_0x4f895b?'Reply\x20to\x20reopen\x20discussion...':_0x2f821b?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x2a40bd);}),_0x510cc3['bind']('submitLabel')['to'](this,'length',_0x5ecbaa=>N(this['locale'],_0x5ecbaa?'Reply':'Comment')),_0x510cc3['on']('submit',(_0x2cb499,_0x385b05)=>{this['fire']('addComment',_0x385b05),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x510cc3['on']('cancel',()=>{this['focus']();}),_0x510cc3['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x510cc3['on']('cancel',_0x4c741e=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4c741e['stop']());}),this['on']('change:isActive',(_0x462c88,_0x993704,_0x124a19)=>{_0x124a19||this['length']||_0x510cc3['value']||this['fire']('removeCommentThread');}),_0xe34b60;}}class gt extends/* #__PURE__ -- @preserve */
27
+ ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x1f3678,_0x1c266e,_0xba7e05,_0x2f8622){super(_0x1f3678,_0x1c266e,_0xba7e05,_0x2f8622),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x1f3678,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x1ddfe9,_0x3c4024,_0x3dd47c)=>{_0x3dd47c||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x330548,_0x4ca4bb,_0x42154f)=>{_0x42154f&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x595e33=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x595e33['if']('isActive','ck-thread--active'),_0x595e33['if']('isUnlinked','ck-thread--unlinked'),_0x595e33['to']('actionIndicator',_0x2c97f4=>_0x2c97f4?'ck-thread--'+_0x2c97f4:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x595e33['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 _0x52e42b of this['commentsListView']['commentViews'])_0x52e42b['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x474134}=this,_0x32b6b3=this['commentsListView']['commentViews']['get'](0x0);_0x32b6b3===this['_boundFirstCommentView']||_0x32b6b3['isSystemComment']||(this['_boundFirstCommentView']=_0x32b6b3,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x32b6b3,'actionIndicator',_0x447f30=>'remove'===_0x447f30?'remove':null),_0x32b6b3['placeholder']=N(_0x474134,'Write\x20a\x20comment...'),_0x32b6b3['removeButton']['on']('execute',_0x76bf61=>{_0x76bf61['stop'](),this['showConfirm'](N(_0x474134,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x32b6b3['focus']();}),_0x32b6b3['actionBar']['add'](this['resolveButton'],0x0),_0x32b6b3['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x1cfb7b=new _0x445976(this['locale']);return _0x1cfb7b['label']=N(this['locale'],'Resolve'),_0x1cfb7b['tooltip']=N(this['locale'],'Resolve'),_0x1cfb7b['icon']=_0x365699,_0x1cfb7b['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x1cfb7b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x36f230=>!_0x36f230),_0x1cfb7b['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x33d80d,_0x5215e4)=>_0x33d80d&&!_0x5215e4),_0x1cfb7b['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x1cfb7b;}['_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(_0x57422d){super(_0x57422d),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x44b7af,_0x45a808,_0x184630)=>{this['element']['innerHTML']=_0x184630;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6e87b5,_0x537260,_0x47fca8){super(_0x6e87b5),this['_model']=_0x537260,this['_config']=_0x47fca8,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x537260,'content',_0x537260,'authoredAt',(_0x98abfe,_0x15a03e)=>N(_0x6e87b5,'COMMENT_ARIA_LABEL',[_0x537260['author']['name'],_0x47fca8['formatDateTime'](_0x15a03e),new DOMParser()['parseFromString'](_0x98abfe,'text/html')['body']['textContent'],_0x537260['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x6e87b5,N(_0x6e87b5,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x53d65b(),this['focusTracker']=new _0x3af043(),this['keystrokes']=new jt(),this['focusCycler']=new _0x19c4d9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xe6bf3c=>_0xe6bf3c['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 _0x5843f8=new is(this['locale']);return _0x5843f8['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x33db03,_0x2fe80c)=>_0x2fe80c?ts(_0x33db03,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x33db03),_0x5843f8;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x314603=new es(this['locale'],this['_config']['editorConfig']);return _0x314603['value']=this['_model']['content'],_0x314603['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x314603['submitLabel']=N(this['locale'],'Save'),_0x314603['on']('submit',(_0x53edf8,_0x12fc6d)=>{this['fire']('updateComment',this['_model']['id'],_0x12fc6d),this['switchToDisplayMode'](),this['focus']();}),_0x314603['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x314603['once']('editorReady',()=>{_0x314603['focus']();}),_0x314603['createEditor'](),_0x314603['delegate']('editorReady')['to'](this),_0x314603['delegate']('editorDestroyed')['to'](this),_0x314603;}['_setupKeyboardNavigation'](){const _0xad83ab=this['element'];this['keystrokes']['listenTo'](_0xad83ab);for(const _0x1e6d45 of this['focusables'])this['focusTracker']['add'](_0x1e6d45['element']),this['keystrokes']['listenTo'](_0x1e6d45['element']);this['focusables']['on']('change',(_0x216181,_0x167c0f)=>{for(const _0x34e5ea of _0x167c0f['removed'])this['focusTracker']['remove'](_0x34e5ea['element']),this['keystrokes']['stopListening'](_0x34e5ea['element']);for(const _0x2a0e5c of _0x167c0f['added'])this['focusTracker']['add'](_0x2a0e5c['element']),this['keystrokes']['listenTo'](_0x2a0e5c['element']);}),this['keystrokes']['set']('enter',(_0x6f83e9,_0x25c0ad)=>{_0xad83ab===_0x6f83e9['target']&&(this['focusCycler']['focusFirst'](),_0x25c0ad());}),this['keystrokes']['set']('esc',(_0x410b35,_0x5152eb)=>{_0xad83ab!==_0x410b35['target']&&(this['focus'](),_0x5152eb());});}}class Tt extends/* #__PURE__ -- @preserve */
28
+ ti(di){['actionBar'];['userView'];constructor(_0x39bb2a,_0x29361f,_0x4e9bb9){super(_0x39bb2a,_0x29361f,_0x4e9bb9),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x39bb2a,'Reply...')),this['bind']('authoredAt')['to'](_0x29361f),this['bind']('resolvedAt')['to'](_0x29361f),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 _0x23f446(_0x39bb2a,_0x29361f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x29361f,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x24314c=this['bindTemplate'],_0xc643e6=[{'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':_0x24314c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x24314c['to']('authoredAt',_0x5bf2e9=>this['_config']['formatDateTime'](_0x5bf2e9))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x24314c['if']('isEditMode','ck-comment__actions--hidden'),_0x24314c['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']&&_0xc643e6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x24314c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x24314c['if']('isEditMode','ck-comment--edit'),_0x24314c['if']('isSystemComment','ck-comment--info'),_0x24314c['to']('actionIndicator',_0x328d37=>_0x328d37?'ck-comment--'+_0x328d37:'')],'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':_0xc643e6}]}]};}['_createEditButton'](){const _0x4e19a2=new _0x48fd4a(this['locale']);return _0x4e19a2['label']=N(this['locale'],'Edit'),_0x4e19a2['icon']=_0x3082d4,_0x4e19a2['withText']=!0x0,_0x4e19a2['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x4e19a2['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x44913a=>!_0x44913a),_0x4e19a2['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x4e19a2['on']('execute',()=>this['switchToEditMode']()),_0x4e19a2;}['_createRemoveButton'](){const _0xdd49d6=new _0x48fd4a(this['locale']);return _0xdd49d6['label']=N(this['locale'],'Remove'),_0xdd49d6['icon']=_0x53d013,_0xdd49d6['withText']=!0x0,_0xdd49d6['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xdd49d6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2f891d=>!_0x2f891d),_0xdd49d6['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xdd49d6['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xdd49d6;}['_createDropdown'](){const _0x16b291=_0x19bb9b(this['locale'],_0x17b0e6),_0x1acad7=_0x16b291['panelView']['children'],_0x1fb2e4=new _0x542ff5(this['locale']),_0x5a85f4=_0x16b291['bindTemplate'];_0x5d72a6(_0x16b291,()=>this['items']['find'](_0x2f3f11=>_0x2f3f11['isVisible'])),_0x16b291['extendTemplate']({'attributes':{'class':[_0x5a85f4['if']('isVisible','ck-hidden',_0x479694=>!_0x479694)]}});const _0x53b2c5=(_0x36c917,_0x59d3d9=-0x1)=>{const _0x3e35f7=new _0x496a60(this['locale']);_0x3e35f7['children']['add'](_0x36c917);const _0x27a0ee=_0x59d3d9>-0x1?_0x59d3d9:_0x1fb2e4['items']['length'];_0x1fb2e4['items']['add'](_0x3e35f7,_0x27a0ee);const _0x347c78=Array['from'](this['items']);_0x16b291['unbind']('isEnabled','isVisible'),_0x16b291['bind']('isEnabled')['toMany'](_0x347c78,'isEnabled',(..._0xa1df1b)=>_0xa1df1b['some'](_0x55be51=>_0x55be51)),_0x16b291['bind']('isVisible')['toMany'](_0x347c78,'isVisible',(..._0x191ec0)=>_0x191ec0['some'](_0x5bd9e5=>_0x5bd9e5));};_0x16b291['panelPosition']='sw',_0x16b291['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x4af346});for(const _0x45b05d of this['items'])_0x53b2c5(_0x45b05d);return _0x1acad7['add'](_0x1fb2e4),_0x16b291['listenTo'](this['items'],'add',(_0x3ed4f1,_0x4c9523,_0xd73e0f)=>{_0x53b2c5(_0x4c9523,_0xd73e0f);}),_0x16b291['listenTo'](this['items'],'remove',(_0x378430,_0x842369,_0x901ee2)=>{_0x1fb2e4['items']['remove'](_0x901ee2);}),_0x16b291;}['_attachActions'](_0x2a758a,_0x34423c){const _0x54e48a=_0x2a758a&&_0x2a758a['element'];_0x54e48a&&(this['listenTo'](_0x54e48a,'mouseenter',()=>this['actionIndicator']=_0x34423c),this['listenTo'](_0x54e48a,'focus',()=>this['actionIndicator']=_0x34423c),this['listenTo'](_0x54e48a,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x54e48a,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x134c20=super['_createCommentInputView']();return _0x134c20['bind']('placeholder')['to'](this),_0x134c20;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x49906a){const _0x3aacd7=Dt(_0x49906a,0x1e),_0x49bf94=new MutationObserver(_0x2f3031=>{for(const _0xdf916c of _0x2f3031)('attributes'==_0xdf916c['type']&&'class'==_0xdf916c['attributeName']||'childList'==_0xdf916c['type']||'characterData'==_0xdf916c['type'])&&_0x3aacd7();});return{'attach'(_0x54b3e6){_0x49bf94['observe'](_0x54b3e6,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x49bf94['disconnect'](),_0x3aacd7['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x54aa5e,_0x341062){super(_0x54aa5e),this['id']=_0x549422(),this['focusTracker']=new _0x3af043(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x4f1afb,_0x19bc7f)=>this['fire']('Esc',_0x19bc7f)),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'](_0x341062),this['mainView']=_0x341062;const _0x14b91c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x14b91c['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 _0x501031=this['element']['clientHeight'];_0x501031&&(this['height']=_0x501031);}}class T extends/* #__PURE__ -- @preserve */
29
+ _0x28df92(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x35092a,target:_0xc0b0d1,type:_0x3bd954,isVisible:_0x1030e7=!0x0}){super(),this['view']=_0x35092a,this['view']['element']||this['view']['render'](),this['_type']=_0x3bd954,this['_target']=_0xc0b0d1,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x15ba5f([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x593daf,_0x30def1)=>{this['view']['focusTracker']['add'](_0x30def1);}),this['focusableElements']['on']('remove',(_0x29ab15,_0x81795)=>{this['view']['focusTracker']['remove'](_0x81795);}),this['set']('isVisible',_0x1030e7);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x5d5875=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x5d5875),_0x5d5875;}get['targetRect'](){const _0x5337c4=this['target'];if(null===_0x5337c4)return null;if(_0x5337c4 instanceof _0x247ddb)return _0x5337c4;const _0x465c9a=_0x5337c4['filter'](_0x176dff=>function(_0x151530){const _0x17660d=_0x151530['offsetParent'];if(_0x17660d)return!0x0;const _0xb77325=_0x151530['getClientRects']()['item'](0x0);return!!_0xb77325;}(_0x176dff));return 0x0===_0x465c9a['length']?null:new _0x247ddb(_0x465c9a[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x44dc97){this['view']['isActive']=_0x44dc97,this['view']['mainView']['isActive']=_0x44dc97;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x1d4948){if(!(null===_0x1d4948||_0x1d4948 instanceof _0x247ddb||Array['isArray'](_0x1d4948)&&_0x1d4948['every'](_0x226b34=>fi(_0x226b34))))throw new _0x3ca26a('annotation-invalid-target',null,{'target':_0x1d4948});}['_getNormalizedTarget'](){const _0x25e0fd='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x25e0fd)?[_0x25e0fd]:_0x25e0fd;}}function fi(_0x1f881e){return null!==_0x1f881e&&'object'==typeof _0x1f881e&&'nodeType'in _0x1f881e&&0x1===_0x1f881e['nodeType'];}class S extends _0x15ba5f{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x4b6762=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x3af043(),this['_focusTracker']['on']('change:isFocused',(_0x96fe7e,_0x3eb05a,_0x1dcf85)=>{_0x1dcf85||this['fire']('blur');});for(const _0x5e80d7 of _0x4b6762)this['add'](_0x5e80d7);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x51afd4){if(this['has'](_0x51afd4))throw new _0x3ca26a('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x51afd4['innerView'],_0x51afd4),this['_viewToAnnotation']['set'](_0x51afd4['view'],_0x51afd4);for(const _0x53242c of _0x51afd4['focusableElements'])this['_focusTracker']['add'](_0x53242c);this['listenTo'](_0x51afd4['focusableElements'],'add',(_0x44cd4a,_0xa312af)=>{this['_focusTracker']['add'](_0xa312af);}),this['listenTo'](_0x51afd4['focusableElements'],'remove',(_0x14a3b9,_0x2e06d6)=>{this['_focusTracker']['remove'](_0x2e06d6);}),this['listenTo'](_0x51afd4['view']['focusTracker'],'change:isFocused',(_0x5c74c6,_0x4d6407,_0x153f23)=>{_0x153f23&&this['fire']('focus',_0x51afd4);}),_0x51afd4['updateTargetRect']();const _0x3bd016=this['_getOrderInContent'](_0x51afd4['view']['targetRect']);return super['add'](_0x51afd4,_0x3bd016);}['remove'](_0x483aa5){if(!this['has'](_0x483aa5))throw new _0x3ca26a('annotationcollection-not-existing-item',null);this['stopListening'](_0x483aa5['view']['focusTracker']),this['stopListening'](_0x483aa5['focusableElements']);for(const _0x4b33d2 of _0x483aa5['focusableElements'])this['_focusTracker']['remove'](_0x4b33d2);return this['_viewToAnnotation']['delete'](_0x483aa5['view']),this['_innerViewToAnnotation']['delete'](_0x483aa5['innerView']),super['remove'](_0x483aa5);}['getByInnerView'](_0x45e4fc){return this['_innerViewToAnnotation']['get'](_0x45e4fc);}['getByView'](_0x256797){return this['_viewToAnnotation']['get'](_0x256797);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x18ad44 of this)_0x18ad44['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2dc985=Array['from'](this)['sort']((_0x1a2ecc,_0x177326)=>w(_0x1a2ecc['view']['targetRect'],_0x177326['view']['targetRect']));for(let _0x25c087=_0x2dc985['length']-0x1;_0x25c087>0x0;_0x25c087--){const _0x3c2b74=_0x2dc985[_0x25c087];_0x25c087!==this['getIndex'](_0x3c2b74)&&(this['remove'](_0x3c2b74),this['add'](_0x3c2b74));}}['_getOrderInContent'](_0x28352a){let _0x58f265=0x0;if(!_0x28352a)return this['length'];for(const _0x14cfd9 of this){const _0x2cf31c=_0x14cfd9['view']['targetRect'];if(_0x2cf31c){if(w(_0x28352a,_0x2cf31c)<0x0)return _0x58f265;_0x58f265++;}}return _0x58f265;}}function v({source:_0x93e032,target:_0x39e0cf,filter:_0x23b4e0}){for(const _0x11aa58 of _0x93e032)_0x23b4e0(_0x11aa58)&&_0x39e0cf['add'](_0x11aa58);_0x39e0cf['listenTo'](_0x93e032,'add',(_0x17b1fd,_0x439622)=>{_0x23b4e0(_0x439622)&&_0x39e0cf['add'](_0x439622);}),_0x39e0cf['listenTo'](_0x93e032,'remove',(_0xd3c8a4,_0x3cf63e)=>{_0x39e0cf['has'](_0x3cf63e)&&_0x39e0cf['remove'](_0x3cf63e);});}function w(_0x302bfa,_0x184c98){if(null===_0x302bfa&&null===_0x184c98)return 0x0;if(null===_0x302bfa)return-0x1;if(null===_0x184c98)return 0x1;const _0x44f9e4=_0x302bfa['top']-_0x184c98['top'];return 0x0==_0x44f9e4?_0x302bfa['left']-_0x184c98['left']:_0x44f9e4;}class y extends _0x1ea55c{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x178905){if(super(_0x178905),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x178905 instanceof _0x4e31ca){const _0x230d25=_0x178905['locale'];_0x178905['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x230d25,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x230d25,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x230d25,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x230d25,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x230d25,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x230d25,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x230d25,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x16565c){this['collection']['add'](_0x16565c);}['remove'](_0x29f117){this['collection']['remove'](_0x29f117),_0x29f117['destroy']();}['refreshVisibility'](){for(const _0x87e9b0 of this['collection'])_0x87e9b0['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2e3bf5){return this['collection']['getByInnerView'](_0x2e3bf5);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0xd91105 of this['collection'])_0xd91105['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x19e5f6){this['fire']('_activateAnnotation',_0x19e5f6);}['createAnnotation'](_0x279cd6){return new T(_0x279cd6);}['createAnnotationView'](_0x3c707c,_0x17aa16){return new E(_0x3c707c,_0x17aa16);}['_addActiveAnnotation'](_0x55c53b){const _0x2e8947=new Set(this['activeAnnotations']);_0x2e8947['add'](_0x55c53b),this['activeAnnotations']=_0x2e8947;}['_removeActiveAnnotation'](_0xd0bb39){const _0x5e6d64=new Set(this['activeAnnotations']);_0x5e6d64['delete'](_0xd0bb39),this['activeAnnotations']=_0x5e6d64;}['_bindAnnotationsToVisibleAnnotations'](){const _0x575b99=this['collection'],_0x1f3068=this['_visibleAnnotations'];function _0x3dcbdf(_0x432d41){const _0x44347a=_0x432d41['source'];_0x44347a['isVisible']&&!_0x1f3068['has'](_0x44347a)?_0x1f3068['add'](_0x44347a):!_0x44347a['isVisible']&&_0x1f3068['has'](_0x44347a)&&_0x1f3068['remove'](_0x44347a),_0x44347a['view']['focusTracker']['remove'](_0x44347a['view']['element']),_0x44347a['view']['focusTracker']['add'](_0x44347a['view']['element']);}this['listenTo'](_0x575b99,'add',(_0x32ccc8,_0x40710a)=>{_0x40710a['isVisible']&&_0x1f3068['add'](_0x40710a),this['listenTo'](_0x40710a,'change:isVisible',_0x3dcbdf);}),this['listenTo'](_0x575b99,'remove',(_0x39e6b0,_0x3571b1)=>{_0x1f3068['has'](_0x3571b1)&&_0x1f3068['remove'](_0x3571b1),this['stopListening'](_0x3571b1,'change:isVisible',_0x3dcbdf);});}['_setupEnterAnnotationKeystroke'](){const _0x490e7e=_0x35ee8e=>{_0x35ee8e['on']('ready',()=>{_0x35ee8e['keystrokes']['set'](_0x54c0f0,(_0x51ffca,_0x122fa6)=>{const _0x383826=_0x1a9975(this['activeAnnotations']['values']());_0x383826&&(_0x383826['view']['focus'](),_0x122fa6());});});};this['context']instanceof _0x4e31ca?_0x490e7e(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x49ce1e,_0x4dbe4f)=>{_0x490e7e(_0x4dbe4f);});}['_setupEscapeAnnotationHandling'](){const _0x18ba1c=_0x1782a1=>{const _0x36c059=_0x1782a1['source'],_0x26e20a=[];let _0x41f65b;if(Array['isArray'](_0x36c059['target'])){_0x41f65b=_0x36c059['target'][0x0],this['context']instanceof _0x4e31ca?_0x26e20a['push'](this['context']):this['context']['editors']&&_0x26e20a['push'](...this['context']['editors']);for(const _0x5b905d of _0x26e20a)for(const _0x1f68ab of _0x5b905d['editing']['view']['domRoots']['values']())if(_0x1f68ab['contains'](_0x41f65b))return void _0x5b905d['editing']['view']['focus']();_0x41f65b['focus']();}};this['listenTo'](this['collection'],'add',(_0x8d1ece,_0x351252)=>{this['listenTo'](_0x351252,'escape',_0x18ba1c,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x171d87,_0x10f954)=>{this['stopListening'](_0x10f954,'escape',_0x18ba1c);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x1ea55c{['_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(_0x165620){super(_0x165620),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x3988f7=this['context']['config'];_0x3988f7['define']('comments.maxCommentsWhenCollapsed',0x2),_0x3988f7['define']('comments.maxThreadTotalWeight',0x1f4),_0x3988f7['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x3988f7['define']('comments.CommentThreadView',gt),_0x3988f7['define']('comments.CommentView',Tt),_0x3988f7['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x528f9e=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x1164ed,_0x30ede4)=>this['_addCommentThread'](_0x30ede4)),this['on']('submitCommentThread',(_0x16e350,_0x348514)=>this['_submitCommentThread'](_0x348514)),this['on']('resolveCommentThread',(_0x28616a,_0x20cb6d)=>this['_resolveCommentThread'](_0x20cb6d)),this['on']('resolveCommentThread',(_0x2749ca,_0x575f0b)=>this['_updateActiveAnnotation'](_0x575f0b),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x380760,_0x5b1832)=>this['_reopenCommentThread'](_0x5b1832)),this['on']('reopenCommentThread',(_0x3b1202,_0x58e47a)=>this['_updateActiveAnnotation'](_0x58e47a),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x581c94,_0x21d685)=>this['_removeCommentThread'](_0x21d685)),this['on']('updateCommentThread',(_0x490f8b,_0x586fe7)=>this['_updateCommentThread'](_0x586fe7)),this['on']('updateCommentThread',(_0x176319,_0x46abf9)=>this['_updateActiveAnnotation'](_0x46abf9),{'priority':'lowest'}),this['on']('addComment',(_0x1f0f51,_0x5d23dd)=>this['_addComment'](_0x5d23dd)),this['on']('updateComment',(_0x592351,_0x3e0960)=>this['_updateComment'](_0x3e0960)),this['on']('removeComment',(_0x12a9b8,_0xd718ba)=>this['_removeComment'](_0xd718ba)),this['on']('addComment',(_0x4d23f4,{threadId:_0xa42ce4,isFromAdapter:_0x5b2e5f})=>{if(_0x5b2e5f)return;const _0x216e0e=this['getCommentThread'](_0xa42ce4),_0x420f38=_0x216e0e&&this['_threadToController']['get'](_0x216e0e);_0x420f38&&_0x420f38['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x528f9e,'change:activeAnnotations',(_0x207fa4,_0x57d806,_0x15f00a)=>{const _0x51e4ae=Array['from'](_0x15f00a)['map'](_0x4c6466=>this['_viewToController']['get'](_0x4c6466['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x51e4ae?_0x51e4ae['model']:null;});}set['adapter'](_0x2001d7){if(this['_adapter'])throw new _0x3ca26a('commentsrepository-adapter-already-set');this['_adapter']=_0x2001d7;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x24dfe3=_t,threadId:_0x2c6458=_0x549422(),comments:_0xb07672=[],unlinkedAt:_0x4d6bff=null,resolvedAt:_0x1da535=null,resolvedBy:_0x4a3e1a=null,target:_0x58666d=null,context:_0x3994d9=null,attributes:_0x5b7ddf={},isResolvable:_0x22dc0b=!0x0,isSubmitted:_0x387b3e=!0x1,isFromAdapter:_0x568b17=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x24dfe3),{'channelId':_0x24dfe3,'threadId':_0x2c6458,'comments':_0xb07672,'unlinkedAt':_0x4d6bff,'resolvedAt':_0x1da535,'resolvedBy':_0x4a3e1a,'target':_0x58666d,'context':_0x3994d9,'attributes':_0x5b7ddf,'isFromAdapter':_0x568b17,'isResolvable':_0x22dc0b,'isSubmitted':_0x387b3e}),this['getCommentThread'](_0x2c6458);}['openNewCommentThread']({channelId:_0x2447c5=_t,threadId:_0x4cef2e=_0x549422(),target:_0x5b0138,context:_0x3e0a3e=null,isResolvable:_0x25255d=!0x0}){if(this['_readOnlyChannels']['has'](_0x2447c5)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x5b0138)throw new _0x3ca26a('commentsrepository-missing-target');const _0x50dcb5=this['addCommentThread']({'channelId':_0x2447c5,'threadId':_0x4cef2e,'target':_0x5b0138,'context':_0x3e0a3e,'isResolvable':_0x25255d});if(!_0x50dcb5)return null;const _0x4cdfac=this['_threadToController']['get'](_0x50dcb5),_0x4c2f84=_0x4cdfac['view']['commentThreadInputView']['commentInputView'],_0x3b80c6=this['context']['plugins']['get'](y),_0x35dd4b=_0x3b80c6['getByInnerView'](_0x4cdfac['view']);return _0x3b80c6['activate'](_0x35dd4b),_0x4c2f84['once']('editorReady',()=>_0x4c2f84['focus']()),_0x50dcb5;}['hasCommentThread'](_0x24a10f){if('string'!=typeof _0x24a10f)throw new _0x3ca26a('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x24a10f);}['updateCommentThread']({channelId:_0xcab642=_t,threadId:_0x2efcea,context:_0x10f3d4,unlinkedAt:_0xa6817,attributes:_0x1cbfea,isFromAdapter:_0x4a772c=!0x1}){return this['fire'](Nt('updateCommentThread',_0xcab642),{'channelId':_0xcab642,'threadId':_0x2efcea,'context':_0x10f3d4,'unlinkedAt':_0xa6817,'attributes':_0x1cbfea,'isFromAdapter':_0x4a772c}),this['getCommentThread'](_0x2efcea);}['getCommentThread'](_0x332e49){if('string'!=typeof _0x332e49)throw new _0x3ca26a('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x332e49);}['fetchCommentThread']({channelId:_0x16cf08,threadId:_0x1a0a32}={}){const _0xe3f3ca=this['getCommentThread'](_0x1a0a32);if(_0xe3f3ca)return Promise['resolve'](_0xe3f3ca);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3ca26a('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x16cf08,'threadId':_0x1a0a32})['then'](_0x4ea35f=>this['hasCommentThread'](_0x1a0a32)?this['getCommentThread'](_0x1a0a32):_0x4ea35f?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x16cf08},_0x4ea35f)):void 0x0)['catch'](_0x88ce99=>{throw console['error'](_0x88ce99),new _0x3ca26a('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x2e7aa0,skipNotAttached:_0x1fd20c=!0x1,skipEmpty:_0x44e004=!0x1,toJSON:_0x718a73=!0x1}={}){const _0x17ec16=[];for(const _0x4f4a6a of this['_threads']['values']())_0x2e7aa0&&_0x4f4a6a['channelId']!==_0x2e7aa0||_0x1fd20c&&!_0x4f4a6a['isAttached']||_0x44e004&&0x0===_0x4f4a6a['length']||_0x17ec16['push'](_0x4f4a6a);return _0x718a73?_0x17ec16['map'](_0x18c559=>_0x18c559['toJSON']()):_0x17ec16;}['getAnnotationForCommentThread'](_0x21fbe9){const _0x134a6c=this['_threadToController']['get'](_0x21fbe9);if(!_0x134a6c)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x134a6c['view'])||null;}['getCommentThreadForAnnotation'](_0x10a36c){const _0x1bac97=this['_viewToController']['get'](_0x10a36c['innerView']);return _0x1bac97?_0x1bac97['model']:null;}['setActiveCommentThread'](_0x246750){const _0x537c08=this['context']['plugins']['get'](y);if(!_0x246750)return void(this['activeCommentThread']&&_0x537c08['deactivateAll']());const _0x2101f3=this['getCommentThread'](_0x246750);if(!_0x2101f3)throw new _0x3ca26a('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x246750});if(!this['_threadToController']['has'](_0x2101f3))throw new _0x3ca26a('commentsrepository-active-not-attached',null,{'threadId':_0x246750});const _0x1731ca=_0x537c08['getByInnerView'](this['_threadToController']['get'](_0x2101f3)['view']);_0x537c08['activate'](_0x1731ca);}['switchReadOnly'](_0x3f1fe,_0x1a9d5d){_0x3f1fe?this['_readOnlyChannels']['add'](_0x1a9d5d):this['_readOnlyChannels']['delete'](_0x1a9d5d),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x5470fe){return this['_readOnlyChannels']['has'](_0x5470fe)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0xb40e9e,_0x2a8681){return new vt(_0xb40e9e,_0x2a8681);}['setPermissions'](_0x30e073,_0x2306be=_t){this['_permissions']['set'](_0x2306be,_0x30e073),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4bd022=_t){return this['_permissions']['has'](_0x4bd022)?this['_permissions']['get'](_0x4bd022):bt;}['_addCommentThread']({channelId:_0x337053,threadId:_0x586798,comments:_0x3f3ab7,unlinkedAt:_0x2f7acc,resolvedAt:_0x3bcb92,resolvedBy:_0x5ba08c,target:_0x498581,context:_0x24964b,attributes:_0x358b21,isFromAdapter:_0x511c83,isResolvable:_0xcde7cf,isSubmitted:_0x3a2234}){if('string'!=typeof _0x586798)throw new _0x3ca26a('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x586798});if(this['hasCommentThread'](_0x586798))throw new _0x3ca26a('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x586798});const _0x188db3=new pi(this,{'channelId':_0x337053,'id':_0x586798,'context':_0x24964b,'attributes':_0x358b21,'unlinkedAt':_0x2f7acc,'resolvedAt':_0x3bcb92,'resolvedBy':_0x5ba08c?this['context']['plugins']['get'](it)['getUser'](_0x5ba08c):null,'isResolvable':_0xcde7cf,'isSubmitted':_0x3a2234||_0x511c83});this['_threads']['set'](_0x586798,_0x188db3);for(const _0x1dd0ff of _0x3f3ab7)_0x188db3['_add'](this['_createNewComment']({'threadId':_0x586798,..._0x1dd0ff}));return _0x498581&&_0x188db3['attachTo'](_0x498581),_0x511c83||!_0x188db3['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x337053,'threadId':_0x586798});}['_submitCommentThread']({channelId:_0x152005,threadId:_0x204e15}){if(!this['hasCommentThread'](_0x204e15))throw new _0x3ca26a('commentsrepository-missing-comment-thread',this);const _0x50faf3=this['getCommentThread'](_0x204e15);if(_0x50faf3['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x11afb3,comments:_0x39d171,resolvedAt:_0x4e784a,resolvedBy:_0x17bd2e,context:_0x4219d9,attributes:_0x5f33db}=_0x50faf3,_0x4d35e3=this['context']['plugins']['get']('PendingActions'),_0x44cd6c=_0x4d35e3['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x152005,'threadId':_0x11afb3,'comments':_0x39d171['map'](_0x4d521d=>_0x4d521d['toJSON']()),'resolvedAt':_0x4e784a,'resolvedBy':_0x17bd2e?_0x17bd2e['id']:_0x17bd2e,'context':_0x4219d9,'attributes':_0x5f33db})['then'](({comments:_0x2ebde7})=>{_0x4d35e3['remove'](_0x44cd6c);for(const _0x4eb54e of _0x2ebde7)this['_updateComment']({'channelId':_0x152005,'threadId':_0x204e15,'commentId':_0x4eb54e['commentId'],'createdAt':_0x4eb54e['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x45e5ab=>{throw console['error'](_0x45e5ab),new _0x3ca26a('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0xff7608,target:_0x4452c5}){const _0x2bde2f=this['getCommentThread'](_0xff7608);if(!_0x2bde2f)throw new _0x3ca26a('commentsrepository-attach-missing-comment-thread',this);const _0x59f9a5=this['context']['plugins']['get']('PendingActions'),_0xc74709=this['context']['plugins']['get'](y),_0x1f6dd5=this['_createCommentThreadView'](_0x2bde2f),_0x2ea651=new vt(_0x2bde2f,_0x1f6dd5);let _0x4cde27=null;_0x1f6dd5['on']('change:isDirty',(_0x28aecd,_0x20b63b,_0x3edd64)=>{_0x3edd64?_0x4cde27=_0x59f9a5['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4cde27&&(_0x59f9a5['remove'](_0x4cde27),_0x4cde27=null);}),this['_threadToController']['set'](_0x2bde2f,_0x2ea651),this['_viewToController']['set'](_0x1f6dd5,_0x2ea651);const _0x284552=new E(this['context']['locale'],_0x1f6dd5);_0x284552['bind']('length')['to'](_0x1f6dd5),_0x284552['bind']('isDirty')['to'](_0x1f6dd5,'isDirty',_0x1f6dd5,'length',(_0x305524,_0x2b8cca)=>_0x305524||!_0x2b8cca),_0x284552['bind']('isActive')['to'](_0x1f6dd5),_0x284552['type']='comment';const _0x4839ae=new T({'view':_0x284552,'target':_0x4452c5,'type':'comment','isVisible':!_0x2bde2f['archivedAt']&&!!('function'==typeof _0x4452c5?_0x4452c5():_0x4452c5)});return _0x1f6dd5['on']('escape',()=>{_0x4839ae['fire']('escape');}),this['_bindAnnotationToEditors'](_0x1f6dd5,_0x4839ae),_0xc74709['add'](_0x4839ae),_0x4839ae;}['_bindAnnotationToEditors'](_0x580532,_0x1b9bad){this['listenTo'](_0x580532,'editorReady',(_0x3877c9,_0x1f82e7)=>{const _0x32a4e7=_0x1f82e7['ui']['view']['body']['bodyCollectionContainer'];_0x1b9bad['focusableElements']['add'](_0x32a4e7),this['context']instanceof _0x4e31ca&&this['context']['ui']['focusTracker']['add'](_0x32a4e7);},{'priority':'highest'}),this['listenTo'](_0x580532,'editorDestroyed',(_0x2c1362,_0x34ba04)=>{const _0x46cd8a=_0x34ba04['ui']['view']['body']['bodyCollectionContainer'];_0x1b9bad['focusableElements']['has'](_0x46cd8a)&&_0x1b9bad['focusableElements']['remove'](_0x46cd8a),this['context']instanceof _0x4e31ca&&this['context']['ui']['focusTracker']['remove'](_0x46cd8a);});}['_unbindEditors'](_0x18566c){this['stopListening'](_0x18566c,'editorReady'),this['stopListening'](_0x18566c,'editorDestroyed');}['_createCommentThreadView'](_0x1330c2){const _0xfb9a=this['context']['plugins']['get'](it),{config:_0xb8d9f3,locale:_0x552560}=this['context'],_0x2fa25d=pt(_0xb8d9f3['get']('locale'),_0x552560);return new(0x0,(_0xb8d9f3['get']('comments'))['CommentThreadView'])(_0x552560,_0x1330c2,_0xfb9a['me'],{'editorConfig':{..._0xb8d9f3['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0xb8d9f3['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0xb8d9f3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xb8d9f3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xb8d9f3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2fa25d,'CommentView':_0xb8d9f3['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3b0480,channelId:_0x557ca2,resolvedAt:_0x3a3ca2,resolvedBy:_0x533a72,isFromAdapter:_0x52fde7}){if(!this['hasCommentThread'](_0x3b0480))throw new _0x3ca26a('commentsrepository-missing-comment-thread',null,{'threadId':_0x3b0480});const _0x2da79d=this['getCommentThread'](_0x3b0480);if(_0x2da79d['isResolved'])throw new _0x3ca26a('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3b0480});const _0x282f32=this['context']['plugins']['get'](it);if(_0x2da79d['resolvedBy']=_0x282f32['getUser'](_0x533a72),_0x2da79d['resolvedAt']=_0x3a3ca2,_0x52fde7||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x32ab60=this['context']['plugins']['get']('PendingActions'),_0x40556c=_0x32ab60['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x557ca2,'threadId':_0x3b0480})['then'](({resolvedAt:_0xfc10e1,resolvedBy:_0xaaf37e})=>{_0x32ab60['remove'](_0x40556c),_0x2da79d['resolvedBy']['id']!==_0xaaf37e&&(_0x2da79d['resolvedBy']=_0x282f32['getUser'](_0xaaf37e)),_0x2da79d['resolvedAt']=_0xfc10e1;})['catch'](_0x98f92c=>{throw console['error'](_0x98f92c),new _0x3ca26a('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x31443c,channelId:_0x2a4307,isFromAdapter:_0x8bdb90}){if(!this['hasCommentThread'](_0x31443c))throw new _0x3ca26a('commentsrepository-missing-comment-thread',null,{'threadId':_0x31443c});const _0x386cb0=this['getCommentThread'](_0x31443c);if(!_0x386cb0['isResolved'])throw new _0x3ca26a('commentsrepository-reopen-comment-thread',null,{'threadId':_0x31443c});if(_0x386cb0['resolvedBy']=null,_0x386cb0['resolvedAt']=null,_0x8bdb90||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3eb362=this['context']['plugins']['get']('PendingActions'),_0xd274ff=_0x3eb362['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x2a4307,'threadId':_0x31443c})['then'](()=>_0x3eb362['remove'](_0xd274ff))['catch'](_0x3b9eae=>{throw console['error'](_0x3b9eae),new _0x3ca26a('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x4504a9,isFromAdapter:_0x365d06}){const _0xd43521=this['getCommentThread'](_0x4504a9);if(!_0xd43521)throw new _0x3ca26a('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x4504a9),this['_threads']['delete'](_0x4504a9),!_0xd43521['isSubmitted']||_0x365d06||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x578cbe=this['context']['plugins']['get']('PendingActions'),{channelId:_0x565bfb}=_0xd43521,_0x349f25=_0x578cbe['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x565bfb,'threadId':_0x4504a9})['then'](()=>_0x578cbe['remove'](_0x349f25))['catch'](_0x2a4c5a=>{throw console['error'](_0x2a4c5a),new _0x3ca26a('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4d4607,unlinkedAt:_0x2ea79e,context:_0x198e4b,attributes:_0x5cad93,isFromAdapter:_0x240b92}){if('string'!=typeof _0x4d4607)throw new _0x3ca26a('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4d4607});if(!this['hasCommentThread'](_0x4d4607))throw new _0x3ca26a('commentsrepository-missing-comment-thread',null,{'threadId':_0x4d4607});const _0x2bf9f0=this['getCommentThread'](_0x4d4607);let _0x258cce=!0x1;if(void 0x0!==_0x198e4b&&_0x2bf9f0['context']!==_0x198e4b&&(_0x2bf9f0['context']=_0x198e4b,_0x258cce=!0x0),void 0x0!==_0x2ea79e&&_0x2bf9f0['unlinkedAt']!==_0x2ea79e&&(_0x2bf9f0['unlinkedAt']=_0x2ea79e,_0x258cce=!0x0),_0x5cad93&&!At(_0x5cad93,_0x2bf9f0['attributes'])&&(_0x2bf9f0['attributes']=_0x5cad93,_0x258cce=!0x0),!_0x258cce)return Promise['resolve']();if(!_0x2bf9f0['isSubmitted']||_0x240b92||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x573182=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4a68c9}=_0x2bf9f0,_0x17c266=_0x573182['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4a68c9,'threadId':_0x4d4607,'context':_0x198e4b,'unlinkedAt':_0x2ea79e,'attributes':_0x5cad93})['then'](()=>_0x573182['remove'](_0x17c266))['catch'](_0x13749c=>{throw console['error'](_0x13749c),new _0x3ca26a('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x248b4e){const _0x5d1196=this['context']['plugins']['get'](y),_0x370dad=this['getCommentThread'](_0x248b4e);if(_0x370dad['_isAttached']=!0x1,this['_threadToController']['has'](_0x370dad)){const _0x38d25a=this['_threadToController']['get'](_0x370dad),_0x15be5e=_0x38d25a['view'],_0x6bc6de=_0x5d1196['getByInnerView'](_0x15be5e);this['_threadToController']['delete'](_0x370dad),this['_viewToController']['delete'](_0x15be5e),_0x6bc6de&&_0x5d1196['remove'](_0x6bc6de),_0x38d25a['destroy'](),_0x15be5e['destroy']()['then'](()=>{this['_unbindEditors'](_0x15be5e);});}}['_updateActiveAnnotation']({threadId:_0x3eaaa2,resolvedAt:_0x14f45e,unlinkedAt:_0x189bee}){const _0x166705=!!_0x14f45e,_0x565ed2=this['context']['plugins']['get'](y),_0x1e0ccf=this['getCommentThread'](_0x3eaaa2);if(this['_threadToController']['has'](_0x1e0ccf)){const _0x3f38ef=this['_threadToController']['get'](_0x1e0ccf)['view'],_0x26cda4=_0x565ed2['getByInnerView'](_0x3f38ef);_0x26cda4&&(_0x166705&&_0x565ed2['_removeActiveAnnotation'](_0x26cda4),_0x189bee?_0x26cda4['isVisible']=!0x1:_0x26cda4['refreshVisibility']());}}['_getExternalAuthor'](_0xe2de92){const _0x203c52=this['context']['plugins']['get'](it),_0x43dea2=It('external:'+_0xe2de92),_0x242c6e=_0x203c52['getUser'](_0x43dea2);return _0x242c6e||_0x203c52['addUser']({'id':_0x43dea2,'name':_0xe2de92});}['_createNewComment']({threadId:_0x99f93f,commentId:_0xe242c3=_0x549422(),content:_0x3db1cc,authorId:_0x1b4bbb,createdAt:_0x199dfd,attributes:_0x56e4a5}){if('string'!=typeof _0xe242c3)throw new _0x3ca26a('commentsrepository-invalid-commentid');if('string'!=typeof _0x1b4bbb)throw new _0x3ca26a('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x3db1cc||!_0x3db1cc['trim']())throw new _0x3ca26a('commentsrepository-invalid-comment-content');const _0x3af220=this['context']['plugins']['get'](it)['getUser'](_0x1b4bbb);if(!_0x3af220)throw new _0x3ca26a('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1b4bbb});let _0x2bef5e=null,_0x2a27b8=_0x199dfd;return _0x56e4a5?.['@external']&&(_0x2bef5e=this['_getExternalAuthor'](_0x56e4a5['@external']['authorName']),_0x2a27b8=new Date(_0x56e4a5['@external']['createdAt'])),new wi(this,{'threadId':_0x99f93f,'id':_0xe242c3,'author':_0x2bef5e||_0x3af220,'creator':_0x3af220,'content':_0x3db1cc,'createdAt':_0x199dfd,'authoredAt':_0x2a27b8,'attributes':_0x56e4a5});}['_addComment'](_0xc45f0e){let {threadId:_0x120f1d,content:_0x23ff73,attributes:_0x42e813,isFromAdapter:_0x30965d}=_0xc45f0e;const _0x4b1070=this['getCommentThread'](_0xc45f0e['threadId']);if(!_0x4b1070)throw new _0x3ca26a('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x49636a=this['_createNewComment'](_0xc45f0e),{id:_0x9de77e}=_0x49636a;if(_0x4b1070['_add'](_0x49636a),_0x30965d||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x4b1070['isSubmitted'])return Promise['resolve']();const _0x544111=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1f8422}=_0x4b1070,_0x57844c=_0x544111['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x42e813||(_0x42e813={}),this['adapter']['addComment']({'channelId':_0x1f8422,'threadId':_0x120f1d,'commentId':_0x9de77e,'content':_0x23ff73,'attributes':_0x42e813})['then'](_0x25848c=>{_0x544111['remove'](_0x57844c),_0x25848c&&this['_updateComment']({'channelId':_0x1f8422,'threadId':_0x120f1d,'commentId':_0x9de77e,'createdAt':_0x25848c['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x285062=>{throw console['error'](_0x285062),new _0x3ca26a('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x1182be,commentId:_0x3b071f,content:_0x4b0799,createdAt:_0x49adc6,attributes:_0x116695,isFromAdapter:_0x36f29b}){if(void 0x0!==_0x4b0799&&('string'!=typeof _0x4b0799||!_0x4b0799['trim']()['length']))throw new _0x3ca26a('commentsrepository-update-comment-invalid-content');const _0x54e4d8=this['getCommentThread'](_0x1182be),_0x387cbf=_0x54e4d8['getComment'](_0x3b071f);if(!_0x387cbf)throw new _0x3ca26a('commentsrepository-update-missing-comment',this);let _0x150b31=!0x1;if(_0x4b0799&&_0x4b0799!==_0x387cbf['content']&&(_0x387cbf['isEditable']||_0x36f29b)&&(_0x387cbf['content']=_0x4b0799,_0x150b31=!0x0),_0x49adc6&&_0x49adc6!==_0x387cbf['createdAt']&&(_0x387cbf['createdAt']=_0x49adc6,_0x387cbf['attributes']&&_0x387cbf['attributes']['@external']||(_0x387cbf['authoredAt']=_0x49adc6),_0x150b31=!0x0),_0x116695&&!At(_0x116695,_0x387cbf['attributes'])&&(_0x387cbf['attributes']=_0x116695,_0x150b31=!0x0),!_0x150b31)return Promise['resolve']();if(_0x54e4d8['fire']('commentUpdated'),_0x36f29b||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x4f66b9=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3339bf}=this['getCommentThread'](_0x387cbf['threadId']),_0x110e59=_0x4f66b9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x3339bf,'threadId':_0x1182be,'commentId':_0x3b071f,'content':_0x4b0799,'attributes':_0x116695})['then'](()=>_0x4f66b9['remove'](_0x110e59))['catch'](_0x59882a=>{throw console['error'](_0x59882a),new _0x3ca26a('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x4e25c7,commentId:_0x4d1267,isFromAdapter:_0x148d2e}){const _0x4e2a47=this['getCommentThread'](_0x4e25c7),_0x4ec7e0=_0x4e2a47['getComment'](_0x4d1267);if(!_0x4ec7e0)throw new _0x3ca26a('commentsrepository-remove-missing-comment',this);if(_0x4e2a47['_remove'](_0x4ec7e0),_0x148d2e||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x3f1ac6=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3200a5}=_0x4e2a47,_0x44b8c5=_0x3f1ac6['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3200a5,'threadId':_0x4e25c7,'commentId':_0x4d1267})['then'](()=>_0x3f1ac6['remove'](_0x44b8c5))['catch'](_0x207cf0=>{throw console['error'](_0x207cf0),new _0x3ca26a('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
30
+ _0x28df92(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x497b93,_0x46b2d1){super();const _0x8c77ce=_0x46b2d1['isResolvable'];this['channelId']=_0x46b2d1['channelId'],this['id']=_0x46b2d1['id'],this['comments']=new _0x15ba5f(),this['_repository']=_0x497b93,this['_isAttached']=!0x1,this['_isSubmitted']=_0x46b2d1['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x497b93,'_permissions',_0x497b93,'_readOnlyChannels',()=>_0x497b93['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x497b93,'_permissions',()=>_0x497b93['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x497b93,'_permissions',()=>{const _0x26b469=_0x497b93['getPermissions'](this['channelId']);return _0x26b469['write']||_0x26b469['admin'];}),this['bind']('isResolvable')['to'](_0x497b93,'_permissions',()=>_0x8c77ce&&_0x497b93['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x46b2d1['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1c6d17,_0x56c6cd)=>_0x1c6d17?_0x56c6cd?_0x1c6d17<_0x56c6cd?_0x1c6d17:_0x56c6cd:_0x1c6d17:_0x56c6cd),this['set']('unlinkedAt',_0x46b2d1['unlinkedAt']||null),this['set']('resolvedAt',_0x46b2d1['resolvedAt']||null),this['set']('resolvedBy',_0x46b2d1['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x79b5af=>!!_0x79b5af),this['set']('attributes',_0x46b2d1['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x434b36,_0x531a71)=>_0x434b36+_0x531a71['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2e2f12,id:_0x3d8415}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x2e2f12),{'channelId':_0x2e2f12,'threadId':_0x3d8415});}['setUnlinkedAt'](_0x1e32dd){this['_update']({'unlinkedAt':_0x1e32dd});}['resolve']({resolvedAt:_0x1308f3=new Date(),resolvedBy:_0x38e605='',isFromAdapter:_0x41d305=!0x1}={}){const _0x50927e=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x140c9d,id:_0x4a5d49}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x140c9d),{'channelId':_0x140c9d,'threadId':_0x4a5d49,'resolvedAt':_0x1308f3,'resolvedBy':_0x38e605||_0x50927e['id'],'isFromAdapter':_0x41d305});}['reopen']({isFromAdapter:_0xbfbb19=!0x1}={}){const {channelId:_0x159598,id:_0x3253ec}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x159598),{'channelId':_0x159598,'threadId':_0x3253ec,'isFromAdapter':_0xbfbb19});}['setContext'](_0x151e6b){this['context']||this['_update']({'context':_0x151e6b});}['setAttribute'](_0xb0546b,_0xa176a8){const _0x24ceb3=wt(this['attributes']);yt(_0x24ceb3,_0xb0546b,_0xa176a8),this['_update']({'attributes':_0x24ceb3});}['removeAttribute'](_0x5a70fb){const _0x5a02ea=wt(this['attributes']);Ct(_0x5a02ea,_0x5a70fb),this['_update']({'attributes':_0x5a02ea});}['remove']({isFromAdapter:_0x2ab29a=!0x1}={}){const {channelId:_0x18b679,id:_0x4c7d06}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x18b679),{'channelId':_0x18b679,'threadId':_0x4c7d06,'isFromAdapter':_0x2ab29a});}['attachTo'](_0xb30e31){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0xb30e31});}['addComment'](_0x372637){const {channelId:_0x292efe,id:_0x13617d}=this;this['_repository']['fire'](Nt('addComment',_0x292efe,_0x13617d),Object['assign']({'channelId':_0x292efe,'threadId':_0x13617d},_0x372637));}['getComment'](_0x477b55){if('string'!=typeof _0x477b55)throw new _0x3ca26a('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x477b55});return this['comments']['get'](_0x477b55);}['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'](_0xfe7b79=>_0xfe7b79['toJSON']()),'attributes':this['attributes']};}['_add'](_0x35b38a){return this['listenTo'](_0x35b38a,'change:authoredAt',()=>{const _0x3364b8=this['_findOptimalIndex'](_0x35b38a),_0x13a7fb=this['comments'];_0x3364b8-0x1!=_0x13a7fb['getIndex'](_0x35b38a)&&_0x3364b8+0x1!=_0x13a7fb['getIndex'](_0x35b38a)&&(this['_remove'](_0x35b38a),this['_add'](_0x35b38a));}),this['comments']['add'](_0x35b38a,this['_findOptimalIndex'](_0x35b38a));}['_update'](_0x433782){const {channelId:_0x20f074,id:_0x46b518}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x20f074),{..._0x433782,'channelId':_0x20f074,'threadId':_0x46b518});}['_remove'](_0x4a20aa){return this['stopListening'](_0x4a20aa),_0x4a20aa['destroy'](),this['comments']['remove'](_0x4a20aa);}['_findOptimalIndex'](_0x29b30a){const _0x4a9a0a=this['comments']['find'](_0x28e15c=>new Date(_0x28e15c['authoredAt'])['getTime']()>new Date(_0x29b30a['authoredAt'])['getTime']());return _0x4a9a0a?this['comments']['getIndex'](_0x4a9a0a):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
31
+ _0x28df92(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x3adb19,_0x4fd2c8){super();const _0x1b98b7=_0x3adb19['context']['plugins']['get'](it)['me'],_0x2697be=_0x3adb19['getCommentThread'](_0x4fd2c8['threadId']),_0x27686e=0x0===_0x2697be['comments']['length'],_0x144fb4=_0x1b98b7===_0x4fd2c8['author'];this['id']=_0x4fd2c8['id'],this['threadId']=_0x4fd2c8['threadId'],this['author']=_0x4fd2c8['author'],this['creator']=_0x4fd2c8['creator'],this['isExternal']=Boolean(_0x4fd2c8['attributes']&&_0x4fd2c8['attributes']['@external']),this['set']('content',_0x4fd2c8['content']),this['createdAt']=_0x4fd2c8['createdAt']||new Date(),this['set']('authoredAt',_0x4fd2c8['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2697be,'resolvedAt'),this['set']('attributes',_0x4fd2c8['attributes']||{}),this['bind']('isEditable')['to'](_0x3adb19,'_permissions',()=>{const _0x5a27db=_0x3adb19['getPermissions'](_0x2697be['channelId'])['write'],_0x522ea0=_0x3adb19['getPermissions'](_0x2697be['channelId'])['modifyAll'];return _0x144fb4&&_0x5a27db||!_0x144fb4&&_0x522ea0;}),this['bind']('isRemovable')['to'](_0x2697be,'isRemovable',_0x3adb19,'_permissions',_0x4fdee2=>{const _0x3d56a2=_0x3adb19['getPermissions'](_0x2697be['channelId'])['write'],_0x53ea1f=_0x3adb19['getPermissions'](_0x2697be['channelId'])['modifyAll'];return _0x144fb4&&_0x3d56a2||_0x4fdee2&&_0x27686e||!_0x144fb4&&_0x53ea1f&&!_0x27686e;}),this['bind']('isReadOnly')['to'](_0x2697be,'isReadOnly'),this['_repository']=_0x3adb19;}get['weight'](){return Math['max'](function(_0x486cc7){const _0x37459f=document['createElement']('div');return _0x37459f['innerHTML']=_0x486cc7,_0x37459f['textContent']['length'];}(this['content']),0xc8);}['update'](_0x12faed){const {threadId:_0xf493ca,id:_0x3a5418}=this;if(!this['_repository']['hasCommentThread'](_0xf493ca))throw new _0x3ca26a('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x3bd21c}=this['_repository']['getCommentThread'](_0xf493ca);this['_repository']['fire'](Nt('updateComment',_0x3bd21c,_0xf493ca),{'channelId':_0x3bd21c,'threadId':_0xf493ca,'commentId':_0x3a5418,..._0x12faed});}['setAttribute'](_0x452bc7,_0x16aee5){const _0x24e1d0=wt(this['attributes']);yt(_0x24e1d0,_0x452bc7,_0x16aee5),this['update']({'attributes':_0x24e1d0});}['removeAttribute'](_0x5b0181){const _0x197330=wt(this['attributes']);Ct(_0x197330,_0x5b0181),this['update']({'attributes':_0x197330});}['remove'](_0x348827={}){if(!_0x348827['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x2e94b5,id:_0x1feeab}=this;if(!this['_repository']['hasCommentThread'](_0x2e94b5))throw new _0x3ca26a('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x16982b}=this['_repository']['getCommentThread'](_0x2e94b5);this['_repository']['fire'](Nt('removeComment',_0x16982b,_0x2e94b5),{'channelId':_0x16982b,'threadId':_0x2e94b5,'commentId':_0x1feeab,..._0x348827});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x34c773,..._0x2ba9e9){for(const _0x2d7d79 of _0x2ba9e9)void 0x0!==_0x2d7d79&&(_0x34c773+=':'+String(_0x2d7d79));return _0x34c773;}class ot extends _0x3c84c7{constructor(_0x4b5a8c){super(_0x4b5a8c),this['set']('hasContent',!0x1);}['refresh'](){const _0x1f2995=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x409bef of _0x1f2995['getRanges']())if(this['_hasContent'](_0x409bef))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x25f3da=_0x549422(),ranges:_0x2229ff,comment:_0x29e672}={}){const _0x5cb275=this['editor']['model'],_0x2c6ff9=_0x2229ff??Array['from'](_0x5cb275['document']['selection']['getRanges']()),_0x2af49e=[];for(const _0x50c197 of _0x2c6ff9)this['_hasContent'](_0x50c197)&&_0x2af49e['push'](this['_trimToContent'](_0x50c197));if(!_0x2af49e['length'])throw new _0x3ca26a('addcommentthreadcommand-incorrect-ranges',null);_0x29e672&&this['_createCommentThread'](_0x25f3da,_0x29e672),this['_createMarkersFromRanges'](_0x25f3da,_0x2af49e,!!_0x29e672);}['_createMarkersFromRanges'](_0x31f8e1,_0x47993a,_0x3381af){this['editor']['model']['change'](_0x290414=>{for(const _0x329ad3 of _0x47993a){const _0x2af837=_0x549422()['substr'](0x1,0x5),_0xa2715f='comment:'+_0x31f8e1+':'+_0x2af837;_0x290414['addMarker'](_0xa2715f,{'range':_0x329ad3,'usingOperation':_0x3381af,'affectsData':_0x3381af});}});}['_createCommentThread'](_0x94a950,_0x33e722){const _0x161057=this['editor']['plugins']['get']('CommentsRepository'),_0x43a6e2=this['editor']['config']['get']('collaboration.channelId'),_0xa574ee=this['editor']['plugins']['get']('Users')['me'];if(!_0xa574ee)throw new _0x3ca26a('addcommentthreadcommand-user-not-found',null);_0x161057['addCommentThread']({'threadId':_0x94a950,'channelId':_0x43a6e2,'comments':[{'authorId':_0xa574ee['id'],'content':_0x33e722,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x1d8824){for(const _0x25bd0f of _0x1d8824['getItems']())if(this['_itemIsContent'](_0x25bd0f))return!0x0;return!0x1;}['_itemIsContent'](_0x230f35){return _0x230f35['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x230f35)&&!_0x230f35['is']('element','tableCell');}['_trimToContent'](_0x4ba1f4){const _0x3aacca=_0x5e5ea6=>!this['_itemIsContent'](_0x5e5ea6['item']),_0x12fe66=_0x4ba1f4['start']['getLastMatchingPosition'](_0x3aacca),_0x3c7977=_0x4ba1f4['end']['getLastMatchingPosition'](_0x3aacca,{'direction':'backward'});return this['editor']['model']['createRange'](_0x12fe66,_0x3c7977);}}class b extends _0x49dc60{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24831e){super(_0x24831e),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5114ca=this['editor'],_0x10fd03=_0x5114ca['model']['document']['selection'],_0x4b0af8=_0x4f76db(()=>this['refreshSelectedViews'](),0xa);_0x10fd03['on']('change:range',(_0x357078,_0x420c8d)=>{_0x420c8d['directChange']&&(_0x4b0af8['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5114ca['editing']['view']['document'],'change:isFocused',(_0x18a3db,_0x35b931,_0x5a949f)=>{_0x5a949f&&_0x4b0af8();}),this['listenTo'](_0x5114ca['ui']['focusTracker'],'change:isFocused',(_0x42ceaf,_0x206be4,_0x271958)=>{_0x271958||this['fire']('blur',{'isAnnotationTracked':_0x2778a9=>this['_editorAnnotationsData']['has'](_0x2778a9['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x1dd700){if(this['_editorAnnotations']['has'](_0x1dd700['view']))return;this['_editorAnnotations']['add'](_0x1dd700['view']),this['editor']['ui']['focusTracker']['add'](_0x1dd700['view']['element']);const _0x17be62=this['editor']['plugins']['get'](y);this['listenTo'](_0x17be62['collection'],'remove',(_0x5dba4a,_0x25a8e5)=>{this['editor']['ui']['focusTracker']['remove'](_0x25a8e5['view']['element']),this['_editorAnnotations']['delete'](_0x25a8e5['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x175953){if('function'!=typeof _0x175953)throw new _0x3ca26a('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x175953);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x26ba13,annotations:_0x22ad41}){const _0x37f8a6=[],_0x4f9d5a=this['editor']['model']['document']['selection'],_0x293d45=Array['from'](_0x4f9d5a['getRanges']());for(const [_0x5ce535,_0x4a1a9b]of this['_editorAnnotationsData']){const _0x20aa1d=_0x10799a(_0x4a1a9b),_0x32d60f=_0x22ad41['getByInnerView'](_0x5ce535);_0x20aa1d&&_0x32d60f&&_0x37f8a6['push']({'annotation':_0x32d60f,'range':_0x20aa1d});}function _0x10799a(_0x352d61){for(const _0x3c1ef5 of _0x352d61)for(const _0x3f686c of _0x293d45)if(_0x3c1ef5['containsRange'](_0x3f686c,!_0x4f9d5a['isCollapsed']))return _0x3c1ef5;return null;}return _0x37f8a6['sort']((_0x34f01f,_0x6aaef)=>{const _0x384de1=_0x34f01f['range'],_0xbbf239=_0x6aaef['range'];if(!_0x384de1['isEqual'](_0xbbf239)){if(_0x384de1['containsRange'](_0xbbf239,!0x0))return 0x1;if(_0xbbf239['containsRange'](_0x384de1,!0x0))return-0x1;}return _0x34f01f['annotation']==_0x26ba13?-0x1:_0x6aaef['annotation']==_0x26ba13?0x1:0x0;})['map'](_0x9ae96d=>_0x9ae96d['annotation']);}get['_editorAnnotationsData'](){const _0x1e7d38=new Map();for(const _0x1b7f64 of Array['from'](this['_dataCollectors']))for(const [_0x5dae31,_0x564cc4]of _0x1b7f64())_0x1e7d38['set'](_0x5dae31,_0x564cc4);return _0x1e7d38;}}class st extends _0x49dc60{['afterInit'](){const _0x26cdc5=this['editor'];if(!_0x26cdc5['plugins']['has']('RestrictedEditingModeEditing'))return;_0x26cdc5['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x49dc60{constructor(_0x245adc){super(_0x245adc),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x3fe22e=this['editor'],_0x2bb204=_0x3fe22e['commands']['get']('importWord'),_0x44d3fd=_0x3fe22e['plugins']['get'](it);_0x2bb204&&(_0x2bb204['on']('execute',(_0x183068,[,_0x5d0b69])=>{_0x5d0b69['collaboration_features']={'comments':!0x0,'user_id':_0x44d3fd['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x2bb204,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x2dd7b3,_0x449fe2){const {comment_threads:_0x2f2d00}=_0x449fe2;_0x2f2d00&&_0x2f2d00['forEach'](({thread_id:_0x20ba7c,comments:_0x16a811,is_resolved:_0x18c0f4})=>{const _0x53b966=new Date(),_0x171f3b=_0x16a811['map'](({author:_0x5c4091,content:_0x3fb125,created_at:_0x2a8480})=>({'content':_0x3fb125,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x53b966,'attributes':{'@external':{'authorName':_0x5c4091,'createdAt':_0x2a8480?new Date(_0x2a8480):new Date(),'source':'importWord'}}})),_0x3763c0=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x3763c0,'threadId':_0x20ba7c,'comments':_0x171f3b,'resolvedAt':_0x18c0f4?_0x53b966:null});});}}class at extends _0x49dc60{constructor(_0x5cd35c){super(_0x5cd35c),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x48b0ff=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x48b0ff,'contentInsertion',(_0x1e650c,_0x502181)=>this['_removeMarkersWithoutThreads'](_0x502181['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4695b0){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4695b0;const _0x5e4ead=this['editor']['plugins']['get']('CommentsRepository');for(const _0x12af15 of _0x4695b0['keys']()){const [_0x13aacc,_0x1fab07]=_0x12af15['split'](':');'comment'!=_0x13aacc||_0x5e4ead['hasCommentThread'](_0x1fab07)||_0x4695b0['delete'](_0x12af15);}return _0x4695b0;}['_registerMarkerInClipboardPipeline'](){const _0x5aa52c=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x67dc96=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x67dc96&&_0x5aa52c['_registerMarkerToCopy']('comment',_0x67dc96);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x4aeef9){switch(_0x4aeef9){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x7ec1e3){const _0x1118db=_0x7ec1e3['split'](':');return{'group':_0x1118db[0x0],'id':_0x1118db[0x1],'part':_0x1118db[0x2]};}class ut extends _0x49dc60{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0xcc8913,_0x1aac63)=>{if(!_0x1aac63['options']['showCommentHighlights'])return null;if(_0x1aac63['options']['ignoreResolvedComments']){const {id:_0x3e6b37}=ft(_0xcc8913['markerName']),_0x36321a=this['editor']['plugins']['get'](o);if(_0x36321a['getCommentThread'](_0x3e6b37)?.['isResolved']&&_0xcc8913['item'])return _0x1aac63['consumable']['consume'](_0xcc8913['item'],'addMarker:'+_0xcc8913['markerName']),_0x1aac63['consumable']['consume'](_0xcc8913['item'],'removeMarker:'+_0xcc8913['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x54192e=>{_0x54192e['on']('addMarker:comment',(_0x3f46b8,_0x3c63be,_0x36740a)=>{if(!_0x36740a['options']['showCommentHighlights'])return;const _0x4f7c2f=_0x3c63be['item'];if(!_0x4f7c2f)return;const _0x5ab12f=_0x36740a['mapper']['toViewElement'](_0x4f7c2f);this['editor']['model']['schema']['isObject'](_0x4f7c2f)&&_0x5ab12f&&!_0x5ab12f['getCustomProperty']('widget')&&_0x5ab12f['is']('containerElement')&&_0x424caf(_0x5ab12f,_0x36740a['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x7bb7fc,{writer:_0x12dcab,options:_0x423706})=>{if(!_0x423706['showCommentHighlights'])return null;const _0x175a98=_0x12dcab['createContainerElement']('div'),_0x142cb5=_0x12dcab['createEmptyElement']('hr');return _0x12dcab['addClass']('ck-horizontal-line',_0x175a98),_0x12dcab['insert'](_0x12dcab['createPositionAt'](_0x175a98,0x0),_0x142cb5),_0x175a98;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x324d25,{writer:_0xf73046,options:_0x492902})=>{if(!_0x492902['showCommentHighlights'])return null;const _0x32db22=_0xf73046['createContainerElement']('span'),_0x120e62=_0xf73046['createEmptyElement']('img');return _0xf73046['addClass']('image-inline',_0x32db22),_0xf73046['insert'](_0xf73046['createPositionAt'](_0x32db22,0x0),_0x120e62),_0x32db22;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xadafbb,{writer:_0x5082cd,options:_0x3a45c9})=>{if(_0x3a45c9['showCommentHighlights'])return _0x5082cd['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x83787a,_0x2d3959,_0x188d73)=>{_0x188d73['options']['showCommentHighlights']&&_0x83787a['stop']();},{'priority':'high'});}}class r extends _0x49dc60{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(_0x3457a9){super(_0x3457a9),this['set']('isThreadsLoadingPaused',!0x0),_0x3457a9['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x5e629d,_0x2e8cb7,_0x45c180,_0x42d499)=>{const _0x538c74=_0x3457a9['plugins']['get'](o),_0x43e18f=_0x45c180?ft(_0x45c180)['id']:null;_0x3457a9['model']['change'](()=>{if(_0x43e18f){const _0x6b9585=this['getAllMarkersForId'](_0x43e18f);for(const _0x5e14c5 of _0x6b9585)_0x3457a9['editing']['reconvertMarker'](_0x5e14c5);}if(_0x42d499){const {id:_0x38b4d5}=ft(_0x42d499),_0x40f112=_0x538c74['getCommentThread'](_0x38b4d5);if(_0x40f112&&_0x40f112['unlinkedAt'])return;if(_0x40f112&&!_0x40f112['isAttached'])return;const _0x33b435=this['getAllMarkersForId'](_0x38b4d5);for(const _0x275cdd of _0x33b435)_0x3457a9['editing']['reconvertMarker'](_0x275cdd);}}),_0x43e18f&&this['scrollToThreadMarker'](_0x43e18f);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b5596=this['editor'],_0x383798=_0x1b5596['plugins']['get'](o),_0x4078e2=_0x1b5596['config']['get']('collaboration.channelId'),_0x31a692=_0x383798['getCommentThreads']()['filter'](_0x5bf55c=>_0x5bf55c['channelId']!==_0x4078e2);_0x1b5596['commands']['add']('addCommentThread',new ot(_0x1b5596)),this['listenTo'](_0x1b5596,'change:isReadOnly',(_0xf7a7bb,_0x18c8ae,_0xbbc8db)=>{_0x383798['switchReadOnly'](_0xbbc8db,_0x1b5596['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x383798,dt('addCommentThread',_0x4078e2),(_0x5ccb15,{threadId:_0x2c752a})=>{const _0x4a9a18=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2c752a);_0x4a9a18?.['unlinkedAt']&&this['_attachArchivedThread'](_0x2c752a);}),this['listenTo'](_0x383798,dt('removeCommentThread',_0x4078e2),(_0x519ed7,{threadId:_0x1c964b})=>{_0x1b5596['model']['enqueueChange']({'isUndoable':!0x1},_0x32516c=>{const _0x3a3499=this['getAllMarkersForId'](_0x1c964b);for(const _0x54f11d of _0x3a3499)_0x32516c['removeMarker'](_0x54f11d);});}),this['listenTo'](_0x383798,dt('resolveCommentThread',_0x4078e2),(_0x254ba7,{threadId:_0xe8d6f3})=>{(this['_reconvertMarkers'](_0xe8d6f3),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xe8d6f3)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x383798,dt('reopenCommentThread',_0x4078e2),(_0x3d2030,{threadId:_0x481741})=>{this['_reconvertMarkers'](_0x481741);},{'priority':'low'}),this['listenTo'](_0x383798,dt('addComment',_0x4078e2),(_0x1a071a,{threadId:_0x192ae2,isFromAdapter:_0x3ddd9b})=>{const _0x5c9e26=this['getAllMarkersForId'](_0x192ae2);if(_0x3ddd9b||0x0==_0x5c9e26['length']||!_0x383798['hasCommentThread'](_0x192ae2))return;0x1===_0x383798['getCommentThread'](_0x192ae2)['length']&&_0x1b5596['model']['enqueueChange']({'isUndoable':!0x1},_0x1a8942=>{for(const _0x10858f of _0x5c9e26)_0x1a8942['updateMarker'](_0x10858f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x31a692);}['afterInit'](){!async function(_0x19441f){const _0x364400=_0x51989b([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x1b0761=0x73460ab3,_0x4cc6e3=0x734170cb^_0x1b0761,_0xd46d5a=window[_0x51989b([0x44,0x61,0x74,0x65])][_0x51989b([0x6e,0x6f,0x77])](),_0x3adfc8=_0x19441f[_0x51989b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x520c3d=new window[(_0x51989b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c3a02=>{_0x3adfc8[_0x51989b([0x6f,0x6e,0x63,0x65])](_0x51989b([0x72,0x65,0x61,0x64,0x79]),_0x4c3a02);}),_0x1cb483={[_0x51989b([0x6b,0x74,0x79])]:_0x51989b([0x45,0x43]),[_0x51989b([0x75,0x73,0x65])]:_0x51989b([0x73,0x69,0x67]),[_0x51989b([0x63,0x72,0x76])]:_0x51989b([0x50,0x2d,0x32,0x35,0x36]),[_0x51989b([0x78])]:_0x51989b([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]),[_0x51989b([0x79])]:_0x51989b([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]),[_0x51989b([0x61,0x6c,0x67])]:_0x51989b([0x45,0x53,0x32,0x35,0x36])},_0x147319=_0x3adfc8[_0x51989b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51989b([0x67,0x65,0x74])](_0x51989b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d6030(){let _0x5e3d5e,_0x41ac88=null,_0x30aff6=null;try{if(_0x147319==_0x51989b([0x47,0x50,0x4c]))return _0x51989b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e3d5e=_0x5df71e(),!_0x5e3d5e)return _0x51989b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e3d5e[_0x51989b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30aff6=_0x5cda09(_0x5e3d5e[_0x51989b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e3d5e[_0x51989b([0x6a,0x74,0x69])])),await _0x331367()?_0x191f41()?_0x26b081()?_0x51989b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ffd0a()?(_0x5e3d5e[_0x51989b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51989b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41ac88=_0x8e29a3(_0x51989b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5e3d5e[_0x51989b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51989b([0x74,0x72,0x69,0x61,0x6c])&&(_0x41ac88=_0x8e29a3(_0x51989b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x55b286()):_0x51989b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51989b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51989b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51989b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26b081(){const _0x2dedab=[_0x51989b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51989b([0x74,0x72,0x69,0x61,0x6c])][_0x51989b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e3d5e[_0x51989b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd46d5a/0x3e8:0xe10*_0x4cc6e3;return _0x5e3d5e[_0x51989b([0x65,0x78,0x70])]<_0x2dedab;}function _0x191f41(){const _0x658bc9=_0x5e3d5e[_0x51989b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x658bc9)return!0x1;if(_0x658bc9[_0x51989b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51989b([0x2a])))return!0x0;if(_0x658bc9[_0x51989b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51989b([0x43,0x4d,0x54])))return!0x0;if(_0x658bc9[_0x51989b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51989b([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0xcd45c2())return!0x0;if(_0x658bc9[_0x51989b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51989b([0x52,0x43,0x4d,0x54]))){if(_0x570f8a())return!0x0;if(_0x43cf89()||_0x702433())return!0x0;}return!0x1;}function _0x4ffd0a(){const _0x438782=_0x5e3d5e[_0x51989b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x438782||0x0==_0x438782[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x257a51}=new URL(window[_0x51989b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x438782[_0x51989b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x257a51))return!0x0;const _0x3ada68=_0x257a51[_0x51989b([0x73,0x70,0x6c,0x69,0x74])](_0x51989b([0x2e]));return _0x438782[_0x51989b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x128e7e=>_0x128e7e[_0x51989b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51989b([0x2a])))[_0x51989b([0x6d,0x61,0x70])](_0x508886=>_0x508886[_0x51989b([0x73,0x70,0x6c,0x69,0x74])](_0x51989b([0x2e])))[_0x51989b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20e2d1=>_0x20e2d1[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3ada68[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51989b([0x6d,0x61,0x70])](_0x1702a8=>Array(_0x3ada68[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1702a8[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51989b([0x66,0x69,0x6c,0x6c])](_0x1702a8[0x0]===_0x51989b([0x2a])?_0x51989b([0x2a]):'')[_0x51989b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1702a8))[_0x51989b([0x73,0x6f,0x6d,0x65])](_0x4c0011=>_0x3ada68[_0x51989b([0x65,0x76,0x65,0x72,0x79])]((_0x28bef5,_0x5bea9b)=>_0x4c0011[_0x5bea9b]===_0x28bef5||_0x4c0011[_0x5bea9b]===_0x51989b([0x2a])));}function _0x55b286(){return _0x41ac88&&_0x30aff6?new window[(_0x51989b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x213961,_0x36191a)=>{_0x41ac88[_0x51989b([0x74,0x68,0x65,0x6e])](_0x213961,_0x36191a),_0x30aff6[_0x51989b([0x74,0x68,0x65,0x6e])](_0x2ac83f=>{_0x2ac83f!=_0x51989b([0x56,0x61,0x6c,0x69,0x64])&&_0x213961(_0x2ac83f);},_0x36191a);}):_0x41ac88||_0x30aff6||_0x51989b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5cda09(_0x1ebf35,_0x372485){return new window[(_0x51989b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x132784=>{if(_0x1306a4())return _0x132784(_0x51989b([0x56,0x61,0x6c,0x69,0x64]));_0x1bb659(),_0x3adfc8[_0x51989b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51989b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x355d01=!0x1;const _0x4eb205=_0x549422();function _0x48a8dc(_0x49f662){return!!_0x49f662&&(typeof _0x49f662===_0x51989b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49f662===_0x51989b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49f662[_0x51989b([0x74,0x68,0x65,0x6e])]===_0x51989b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49f662[_0x51989b([0x63,0x61,0x74,0x63,0x68])]===_0x51989b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf906b1(_0xdfb2b6){_0x23a769(_0xdfb2b6)[_0x51989b([0x74,0x68,0x65,0x6e])](_0xe1aab3=>{if(!_0xe1aab3||_0xe1aab3[_0x51989b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51989b([0x6f,0x6b]))return _0x51989b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa094ce(_0x55f98a(_0x4eb205+_0x372485))!=_0xe1aab3[_0x51989b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51989b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51989b([0x56,0x61,0x6c,0x69,0x64]);})[_0x51989b([0x74,0x68,0x65,0x6e])](_0x4781a8=>(_0x452f49(),_0x4781a8),()=>{const _0x143914=_0x3d3728();return null==_0x143914?(_0x452f49(),_0x51989b([0x56,0x61,0x6c,0x69,0x64])):_0x51989b(_0xd46d5a-_0x143914>(0x574a8eb3^_0x1b0761)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51989b([0x74,0x68,0x65,0x6e])](_0x132784)[_0x51989b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x132784(_0x51989b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c74ce=0x7370e433^_0x1b0761;function _0x452f49(){const _0x31fabc=_0x51989b([0x6c,0x6c,0x63,0x74,0x2d])+_0xa094ce(_0x55f98a(_0x1ebf35)),_0x274e9c=_0x217036(_0xa094ce(window[_0x51989b([0x4d,0x61,0x74,0x68])][_0x51989b([0x63,0x65,0x69,0x6c])](_0xd46d5a/_0x3c74ce)));window[_0x51989b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51989b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31fabc,_0x274e9c);}function _0x3d3728(){const _0x43ec85=_0x51989b([0x6c,0x6c,0x63,0x74,0x2d])+_0xa094ce(_0x55f98a(_0x1ebf35)),_0x2d9c84=window[_0x51989b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51989b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43ec85);return _0x2d9c84?window[_0x51989b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x217036(_0x2d9c84),0x10)*_0x3c74ce:null;}function _0x23a769(_0x1baae9){return new window[(_0x51989b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b8e15,_0x4917af)=>{_0x1baae9[_0x51989b([0x74,0x68,0x65,0x6e])](_0x2b8e15,_0x4917af),window[_0x51989b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4917af,0x7347de73^_0x1b0761);});}}_0x3adfc8[_0x51989b([0x6f,0x6e])](_0x51989b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38c574,_0x1401d0)=>{if(_0x1401d0[0x0]!=_0x1ebf35)return _0x132784(_0x51989b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1401d0[0x1]={..._0x1401d0[0x1],[_0x51989b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4eb205};},{[_0x51989b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51989b([0x68,0x69,0x67,0x68])}),_0x3adfc8[_0x51989b([0x6f,0x6e])](_0x51989b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43911c=>{_0x48a8dc(_0x43911c[_0x51989b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x355d01=!0x0,_0xf906b1(_0x43911c[_0x51989b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51989b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51989b([0x6c,0x6f,0x77])}),_0x520c3d[_0x51989b([0x74,0x68,0x65,0x6e])](()=>{_0x355d01||_0x132784(_0x51989b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1306a4(){return _0x3adfc8[_0x51989b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51989b([0x76,0x69,0x65,0x77])][_0x51989b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51989b([0x61,0x75,0x74,0x6f]);}function _0x1bb659(){_0x3adfc8[_0x51989b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51989b([0x76,0x69,0x65,0x77])][_0x51989b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51989b([0x61,0x75,0x74,0x6f]);}}function _0x8e29a3(_0x4360f3){const _0x4ac9d3=[new window[(_0x51989b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc3e61f=>setTimeout(_0xc3e61f,0x734f347f^_0x1b0761)),_0x520c3d[_0x51989b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51989b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ece1c=>{let _0xd46071=0x0;_0x3adfc8[_0x51989b([0x6d,0x6f,0x64,0x65,0x6c])][_0x51989b([0x6f,0x6e])](_0x51989b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fa1dc,_0x33e654)=>{_0x33e654[0x0][_0x51989b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd46071++,_0xd46071==(0x73460b4b^_0x1b0761)&&(_0x3ece1c(),_0x4fa1dc[_0x51989b([0x6f,0x66,0x66])]());});}))];return window[_0x51989b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51989b([0x72,0x61,0x63,0x65])](_0x4ac9d3)[_0x51989b([0x74,0x68,0x65,0x6e])](()=>_0x4360f3);}async function _0x47f713(){await _0x520c3d,_0x3adfc8[_0x51989b([0x6d,0x6f,0x64,0x65,0x6c])][_0x51989b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42c040,_0x3adfc8[_0x51989b([0x6d,0x6f,0x64,0x65,0x6c])][_0x51989b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42c040,_0x3adfc8[_0x51989b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51989b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xcd45c2(){return window[_0x51989b([0x67,0x6c,0x6f,0x62])]&&window[_0x51989b([0x67,0x6c,0x6f,0x62])][_0x51989b([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x570f8a(){return _0x42634e(_0x51989b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x133b93(_0x51989b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x51989b([0x73,0x74,0x61,0x74,0x65])]==_0x51989b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x43cf89(){return _0x42634e(_0x51989b([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 _0x702433(){return _0x42634e(_0x51989b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f7d20(_0x1081a4){const _0x2c816a=_0x456af7();_0x3adfc8[_0x2c816a]=_0x51989b([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1081a4,_0x1081a4!=_0x51989b([0x56,0x61,0x6c,0x69,0x64])&&_0x47f713();}function _0x456af7(){const _0x12faf4=window[_0x51989b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51989b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51989b([0x6e,0x6f,0x77])]())[_0x51989b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51989b([0x2e]),'');let _0x54bbcd=_0x51989b([0x4b]);for(let _0x49ed31=0x0;_0x49ed31<_0x12faf4[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49ed31+=0x2){let _0x2be245=window[_0x51989b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12faf4[_0x51989b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49ed31,_0x49ed31+0x2));_0x2be245>=_0x364400[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2be245-=_0x364400[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54bbcd+=_0x364400[_0x2be245];}return _0x54bbcd;}function _0x5df71e(){const _0x4aac11=_0x147319[_0x51989b([0x73,0x70,0x6c,0x69,0x74])](_0x51989b([0x2e]));if(0x3!=_0x4aac11[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c00ee(_0x4aac11[0x1]);function _0x5c00ee(_0x51748a){const _0x56595b=_0x401ba1(_0x51748a);return _0x56595b&&_0x1ed744()?_0x56595b:null;function _0x1ed744(){const _0x24b53e=_0x56595b[_0x51989b([0x6a,0x74,0x69])],_0x343de8=window[_0x51989b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24b53e[_0x51989b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24b53e[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b8724={..._0x56595b,[_0x51989b([0x6a,0x74,0x69])]:_0x24b53e[_0x51989b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24b53e[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b8724[_0x51989b([0x76,0x63])],_0x55f98a(_0x1b8724)==_0x343de8;}}}async function _0x331367(){let _0x9022e5=!0x0;try{const _0x5221fa=_0x147319[_0x51989b([0x73,0x70,0x6c,0x69,0x74])](_0x51989b([0x2e])),[_0x514581,_0x277f75,_0x1f635]=_0x5221fa;return _0x196d00(_0x514581),await _0x4ea767(_0x514581,_0x277f75,_0x1f635),_0x9022e5;}catch{return!0x1;}function _0x196d00(_0x51cad9){const _0x36732b=_0x401ba1(_0x51cad9);_0x36732b&&_0x36732b[_0x51989b([0x61,0x6c,0x67])]==_0x51989b([0x45,0x53,0x32,0x35,0x36])||(_0x9022e5=!0x1);}async function _0x4ea767(_0x19e734,_0x1db01a,_0x17aa90){const _0x6a8ee3=window[_0x51989b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51989b([0x66,0x72,0x6f,0x6d])](_0x18bc66(_0x17aa90),_0xe2f0f6=>_0xe2f0f6[_0x51989b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x247437=new window[(_0x51989b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51989b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19e734+_0x51989b([0x2e])+_0x1db01a),_0x56d99d=window[_0x51989b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51989b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56d99d)return;const _0x1ba17b=await _0x56d99d[_0x51989b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51989b([0x6a,0x77,0x6b]),_0x1cb483,{[_0x51989b([0x6e,0x61,0x6d,0x65])]:_0x51989b([0x45,0x43,0x44,0x53,0x41]),[_0x51989b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51989b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51989b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56d99d[_0x51989b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51989b([0x6e,0x61,0x6d,0x65])]:_0x51989b([0x45,0x43,0x44,0x53,0x41]),[_0x51989b([0x68,0x61,0x73,0x68])]:{[_0x51989b([0x6e,0x61,0x6d,0x65])]:_0x51989b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ba17b,_0x6a8ee3,_0x247437)||(_0x9022e5=!0x1);}}function _0x401ba1(_0xe9922){return _0xe9922[_0x51989b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51989b([0x65,0x79]))?JSON[_0x51989b([0x70,0x61,0x72,0x73,0x65])](_0x18bc66(_0xe9922)):null;}function _0x18bc66(_0x32766a){return window[_0x51989b([0x61,0x74,0x6f,0x62])](_0x32766a[_0x51989b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51989b([0x2b]))[_0x51989b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51989b([0x2f])));}function _0x55f98a(_0x233cf1){let _0x2187b8=0x1505;function _0x414b69(_0x33c863){for(let _0x5d37d9=0x0;_0x5d37d9<_0x33c863[_0x51989b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d37d9++){const _0x2abd3f=_0x33c863[_0x51989b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5d37d9);_0x2187b8=(_0x2187b8<<0x5)+_0x2187b8+_0x2abd3f,_0x2187b8&=_0x2187b8;}}function _0x94a880(_0x49d586){Array[_0x51989b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x49d586)?_0x49d586[_0x51989b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x94a880):_0x49d586&&typeof _0x49d586==_0x51989b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51989b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x49d586)[_0x51989b([0x73,0x6f,0x72,0x74])]()[_0x51989b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59db69,_0x44eeb5])=>{_0x414b69(_0x59db69),_0x94a880(_0x44eeb5);}):_0x414b69(window[_0x51989b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x49d586));}return _0x94a880(_0x233cf1),_0x2187b8>>>0x0;}function _0xa094ce(_0x470f3b){return _0x470f3b[_0x51989b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51989b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51989b([0x30]));}function _0x217036(_0x4f6189){return _0x4f6189[_0x51989b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51989b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51989b([0x6a,0x6f,0x69,0x6e])]('');}function _0x42634e(_0xad3657){return _0x3adfc8[_0x51989b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x51989b([0x68,0x61,0x73])](_0xad3657);}function _0x133b93(_0x572715){return _0x3adfc8[_0x51989b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x51989b([0x67,0x65,0x74])](_0x572715);}function _0x42c040(){}function _0x51989b(_0x3ddf00){return _0x3ddf00['map'](_0x25246e=>String['fromCharCode'](_0x25246e))['join']('');}_0x2f7d20(await _0x1d6030());}(this);}['destroy'](){const _0x3dd3ff=this['editor']['plugins']['get'](o),_0x33c68e=this['editor']['config']['get']('collaboration.channelId');for(const _0x14feed of _0x3dd3ff['getCommentThreads']({'channelId':_0x33c68e}))_0x3dd3ff['_detachCommentThread'](_0x14feed['id']),_0x3dd3ff['_threads']['delete'](_0x14feed['id']);super['destroy']();}['hasMarkerForId'](_0x475dd8){return this['getAllMarkersForId'](_0x475dd8)['length']>0x0;}['getAllMarkersForId'](_0x5b6431){const _0x347c99=[];for(const _0x1fc996 of this['editor']['model']['markers'])_0x1fc996['name']['startsWith']('comment:'+_0x5b6431)&&_0x347c99['push'](_0x1fc996);return _0x347c99;}['scrollToThreadMarker'](_0x2c7ca3){setTimeout(()=>{const _0x2569a4=this['_getTargetForId'](_0x2c7ca3);if(!_0x2569a4)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x2c7ca3&&nt({'target':_0x2569a4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4df574){this['editor']['model']['change'](()=>{for(const _0x26137e of this['getAllMarkersForId'](_0x4df574))this['editor']['editing']['reconvertMarker'](_0x26137e);});}['_attachArchivedThread'](_0xf59860){const _0x14262e=this['editor']['plugins']['get'](o),_0x1d78ad=this['editor']['plugins']['get'](b),_0x13b11b=_0x14262e['getCommentThread'](_0xf59860);if(!_0x13b11b['isAttached']){const _0x9a456b=_0x13b11b['attachTo'](()=>this['_getTargetForId'](_0x13b11b['id']));_0x1d78ad['registerAnnotation'](_0x9a456b),_0x13b11b['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x29b702=this['editor'],_0x2784e2=_0x29b702['plugins']['get'](it);_0x29b702['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x44621c,_0x4cf97f)=>{const {id:_0x53345}=ft(_0x44621c['markerName']),_0x4c0f70=_0x29b702['plugins']['get'](o)['getCommentThread'](_0x53345),_0x4bb082=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x53345;let _0x10af0e;if(_0x4c0f70&&_0x4c0f70['isResolved']&&!_0x4bb082&&_0x44621c['item'])return _0x4cf97f['consumable']['consume'](_0x44621c['item'],'addMarker:'+_0x44621c['markerName']),_0x4cf97f['consumable']['consume'](_0x44621c['item'],'removeMarker:'+_0x44621c['markerName']),null;const _0x353e42=['ck-comment-marker'];return _0x4bb082&&_0x353e42['push']('ck-comment-marker--active'),_0x10af0e=_0x4c0f70?.['length']?_0x4c0f70['comments']['first']['author']['id']:_0x2784e2['me']['id'],{'classes':_0x353e42,'attributes':{'data-comment':_0x53345,'data-author-id':_0x10af0e}};}}),_0x29b702['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x3bcb3c,{options:_0x5da093})=>{if(_0x5da093['showCommentHighlights'])return null;const _0x1487b6=_0x29b702['plugins']['get'](o),_0x17271b=_0x29b702['model']['markers']['get'](_0x3bcb3c),{id:_0x3d5f44,part:_0x30b0bb}=ft(_0x3bcb3c);return _0x17271b&&!_0x17271b['affectsData']||_0x5da093['ignoreResolvedComments']&&_0x1487b6['getCommentThread'](_0x3d5f44)?.['isResolved']?null:{'group':'comment','name':_0x30b0bb?_0x3d5f44+':'+_0x30b0bb:_0x3d5f44};}}),_0x29b702['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x292b2d,{writer:_0x2c612e})=>_0x2c612e['createElement']('$marker',{'data-name':'comment:'+_0x292b2d['getAttribute']('id')})}),_0x29b702['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x513e80=this['editor'],_0x539037=_0x513e80['plugins']['get'](o),_0x2b8854=new Set(),_0x14d546=new Set();_0x513e80['model']['document']['registerPostFixer'](_0x5dc6aa=>{let _0x297f83=!0x1;for(const {name:_0x26e45,data:_0x4a6537}of _0x513e80['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3453e6,id:_0x1d3501}=ft(_0x26e45);let _0x571083=_0x4a6537['newRange'];if('comment'!==_0x3453e6||!_0x571083)continue;const _0x2b734e='$graveyard'===_0x571083['root']['rootName'];_0x2b734e||(_0x571083=ht(_0x571083,_0x513e80['model']),!_0x571083||_0x571083['isCollapsed']||!_0x4a6537['newRange']||_0x571083['isEqual'](_0x4a6537['newRange']))?_0x513e80['model']['hasContent'](_0x571083)&&!_0x2b734e?this['isThreadsLoadingPaused']?_0x2b8854['add'](_0x26e45):this['_handleThreadMarker'](_0x26e45,_0x1d3501):(_0x14d546['add'](_0x26e45),_0x2b8854['delete'](_0x26e45),_0x5dc6aa['removeMarker'](_0x26e45),_0x297f83=!0x0):(_0x5dc6aa['updateMarker'](_0x26e45,{'range':_0x571083}),_0x297f83=!0x0);}return _0x297f83;}),this['on']('change:isThreadsLoadingPaused',(_0x3ec925,_0x2b9570,_0x84b96)=>{if(!_0x84b96&&_0x2b8854['size'])for(const _0x300e7b of _0x2b8854){const {id:_0x246e88}=ft(_0x300e7b);_0x2b8854['delete'](_0x300e7b),_0x513e80['model']['markers']['get'](_0x300e7b)&&this['_handleThreadMarker'](_0x300e7b,_0x246e88);}}),this['listenTo'](_0x513e80['model']['document'],'change',()=>{for(const {name:_0x16e501,data:{newRange:_0x47e094}}of _0x513e80['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5a7a78,id:_0x1744df}=ft(_0x16e501);if('comment'!==_0x5a7a78)continue;const _0x5dab2e=_0x539037['getCommentThread'](_0x1744df),_0x276bb4=this['hasMarkerForId'](_0x1744df);_0x5dab2e&&(!_0x5dab2e['_hasTargetInContent']&&_0x47e094&&_0x513e80['editing']['view']['once']('render',()=>{const _0x5e69e0=_0x513e80['plugins']['get'](y),_0x5da457=_0x539037['_threadToController']['get'](_0x5dab2e)['view'];_0x5e69e0['getByInnerView'](_0x5da457)['refreshVisibility']();},{'priority':'low'}),_0x5dab2e['_hasTargetInContent']=_0x276bb4||!!_0x47e094),_0x47e094||(_0x14d546['add'](_0x16e501),_0x2b8854['delete'](_0x16e501));}for(const _0x4e5dba of _0x14d546){const {id:_0x2aa786}=ft(_0x4e5dba),_0x19a2e8=_0x539037['getCommentThread'](_0x2aa786);if(_0x2b8854['delete'](_0x4e5dba),!_0x19a2e8)continue;const _0x8f0ae8=this['hasMarkerForId'](_0x2aa786);_0x8f0ae8||_0x19a2e8['isSubmitted']?_0x8f0ae8||_0x19a2e8['unlinkedAt']||_0x19a2e8['setUnlinkedAt'](new Date()):_0x19a2e8['remove']();}_0x14d546['clear']();});}['_handleInitialThreads'](_0x49387b){_0x49387b['forEach'](_0x329e34=>{_0x329e34['unlinkedAt']&&this['_attachArchivedThread'](_0x329e34['id']);});}['_getTargetForId'](_0x4cc43b){const _0x3815ea=this['editor'],_0x56b52c=this['getAllMarkersForId'](_0x4cc43b);return et(_0x3815ea['editing'],_0x56b52c);}['_getTextContext'](_0xedee74){const _0x40047a=this['getAllMarkersForId'](_0xedee74);let _0x5842ac='',_0x4caf8f=!0x1;for(const _0x4fa3b2 of _0x40047a){const _0x1111b8=_0x4fa3b2['getRange']();for(const _0x4af518 of Array['from'](_0x1111b8['getItems']()))_0x4af518['is']('$textProxy')?(_0x5842ac&&_0x4caf8f&&(_0x5842ac+='\x20',_0x4caf8f=!0x1),_0x5842ac+=_0x4af518['data']):_0x4caf8f=!0x0;_0x4caf8f=!0x0;}return _0x5842ac['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x436064,_0x1d1e81){const _0x35f0c0=this['editor'],_0xd07f6e=_0x35f0c0['plugins']['get'](o);let _0x286d10=_0xd07f6e['getCommentThread'](_0x1d1e81);const _0x376599=_0x35f0c0['config']['get']('collaboration.channelId'),_0x5c1b46=_0x35f0c0['plugins']['get'](b);if(_0x286d10&&(_0x286d10['unlinkedAt']&&_0x286d10['setUnlinkedAt'](null),_0x286d10['isAttached']))return _0x286d10;return!this['getAllMarkersForId'](_0x1d1e81)[0x0]['managedUsingOperations']?_0x35f0c0['editing']['view']['once']('render',()=>{if(_0xd07f6e['getCommentThread'](_0x1d1e81))return;const _0x2e5724=_0x35f0c0['plugins']['get'](y);_0x286d10=_0xd07f6e['openNewCommentThread']({'channelId':_0x376599,'threadId':_0x1d1e81,'target':()=>this['_getTargetForId'](_0x1d1e81),'context':{'type':'text','value':this['_getTextContext'](_0x1d1e81)}});const _0x1f8d56=_0xd07f6e['_threadToController']['get'](_0x286d10)['view'],_0x4e30d5=_0x2e5724['getByInnerView'](_0x1f8d56);_0x4e30d5&&_0x5c1b46['registerAnnotation'](_0x4e30d5);},{'priority':'low'}):_0xd07f6e['fetchCommentThread']({'channelId':_0x376599,'threadId':_0x1d1e81})['then'](_0x290cfa=>{if('destroyed'!==_0x35f0c0['state']){if(_0x286d10=_0x290cfa,_0x286d10&&!_0x286d10['isAttached']){const _0x5e0485=_0x286d10['attachTo'](()=>this['_getTargetForId'](_0x1d1e81));_0x5c1b46['registerAnnotation'](_0x5e0485),_0x286d10['isResolved']&&this['_reconvertMarkers'](_0x1d1e81);}else{if(!_0x286d10){const _0x21105d=this['getAllMarkersForId'](_0x1d1e81);_0x35f0c0['model']['change'](_0x2fbddb=>{for(const _0x5b2e5d of _0x21105d)_0x2fbddb['removeMarker'](_0x5b2e5d);});}}}}),_0x286d10;}['_handleThreadMarker'](_0x5719f8,_0x5e6263){const _0x9ffc5c=this['_attachMarkerToThread'](_0x5719f8,_0x5e6263);_0x9ffc5c&&!_0x9ffc5c['context']&&_0x9ffc5c['setContext']({'type':'text','value':this['_getTextContext'](_0x5e6263)});}['_initAriaMarkerChangeAnnouncements'](){const _0x182676=this['editor'];rt(_0x182676['model'],({left:_0x3ded0e,entered:_0x2685ba})=>{for(const _0x5c8cc8 of _0x3ded0e)if(mt(_0x5c8cc8)){_0x182676['ui']['ariaLiveAnnouncer']['announce'](N(_0x182676['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x42b77c of _0x2685ba)if(mt(_0x42b77c)){_0x182676['ui']['ariaLiveAnnouncer']['announce'](N(_0x182676['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x35044a)));break;}});}}function dt(_0x415030,_0x4bd4b4){return _0x4bd4b4?_0x415030+':'+_0x4bd4b4:_0x415030;}function ht(_0xdd8918,_0x1c6b61){const _0x43cd05=_0x1c6b61['schema'],_0x33b10a=_0x1c6b61['createRange'](_0xdd8918['start']);for(const _0x2e6450 of _0xdd8918['getWalker']()){const {type:_0x4f7047,item:_0x4e737e,nextPosition:_0x32fc44}=_0x2e6450;if('text'===_0x4f7047||_0x43cd05['isObject'](_0x4e737e)){const _0x52543d=_0x1c6b61['createPositionBefore'](_0x4e737e);_0x33b10a['isCollapsed']&&(_0x33b10a['start']=_0x52543d),_0x33b10a['end']=_0x32fc44;}}return _0x33b10a;}function mt(_0x38b953){return'comment'===ft(_0x38b953['name'])['group'];}class s extends _0x49dc60{['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 _0x9a503e=this['editor'],_0x2212e3=_0x9a503e['plugins']['get'](o),_0x2f5205=_0x9a503e['plugins']['get'](r),_0x36d16b=_0x9a503e['plugins']['get'](y),_0x6a0c77=_0x9a503e['plugins']['get'](b);_0x9a503e['ui']['componentFactory']['add']('comment',()=>{const _0x4db446=this['_createUIButton'](_0x48fd4a);return _0x4db446['tooltip']=!0x0,_0x4db446;}),_0x9a503e['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0xd96c20)),_0x6a0c77['addSourceCollector'](()=>{const _0xbe7816=[];for(const [_0x7e6c3,_0xd1a4f7]of _0x2212e3['_threadToController']){const _0x285029=_0x2f5205['getAllMarkersForId'](_0x7e6c3['id']),_0x13e902=_0x285029['map'](_0x4c217e=>_0x4c217e['getRange']());_0x285029['length']>0x0&&_0xbe7816['push']([_0xd1a4f7['view'],_0x13e902]);}return _0xbe7816;}),this['listenTo'](_0x36d16b,'change:activeAnnotations',(_0x6fcca8,_0x33fcbe,_0x1b9e42)=>{const _0x528baf=Array['from'](_0x1b9e42)['map'](_0x5b6a4=>_0x5b6a4['innerView'])['find'](_0x229359=>_0x2212e3['_viewToController']['has'](_0x229359));if(!_0x528baf)return void(_0x2f5205['activeMarker']=null);const _0x2f4b63=_0x2212e3['_viewToController']['get'](_0x528baf)['model']['id'],_0x9e7268='comment:'+_0x2f4b63;_0x2f4b63&&_0x2f5205['hasMarkerForId'](_0x2f4b63)?_0x2f5205['activeMarker']=_0x9e7268:_0x2f5205['activeMarker']&&(_0x2f5205['activeMarker']=null);}),this['listenTo'](_0x2212e3,'removeCommentThread',(_0xabc4a5,{threadId:_0x13cbad,isFromAdapter:_0x3f78dd})=>{!_0x3f78dd&&_0x9a503e['ui']['focusTracker']['isFocused']&&_0x2f5205['hasMarkerForId'](_0x13cbad)&&_0x9a503e['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2212e3,'addComment',(_0x4604a6,{threadId:_0x264377,isFromAdapter:_0x3e4c3})=>{if(_0x3e4c3||!_0x2f5205['hasMarkerForId'](_0x264377)||!_0x2212e3['hasCommentThread'](_0x264377))return;0x1===_0x2212e3['getCommentThread'](_0x264377)['length']&&(_0x9a503e['editing']['view']['focus'](),_0x4604a6['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x349149=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x259d75;for(const _0x3b766e in _0x349149){const _0x16129c=_0x3b766e,_0x218325=_0x349149[_0x16129c];if('commentsLicenseKeyValid'==_0x218325||'commentsLicenseKeyInvalid'==_0x218325||'commentsLicenseKeyExpired'==_0x218325||'commentsLicenseKeyDomainLimit'==_0x218325||'commentsLicenseKeyNotAllowed'==_0x218325||'commentsLicenseKeyEvaluationLimit'==_0x218325||'commentsLicenseKeyTrialLimit'==_0x218325||'commentsLicenseKeyUsageLimit'==_0x218325){delete _0x349149[_0x16129c],_0x259d75=_0x218325,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x259d75&&_0x349149['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x259d75&&_0x349149['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x259d75&&_0x349149['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x259d75&&_0x349149['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x259d75&&_0x349149['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x259d75&&_0x349149['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x259d75&&_0x349149['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x25ab45){const _0x476792=this['editor'],_0x2daebb=new _0x25ab45(_0x476792['locale']),_0x19b689=_0x476792['commands']['get']('addCommentThread');return _0x2daebb['set']({'label':N(_0x476792['locale'],'Comment'),'icon':_0x58c113}),_0x2daebb['bind']('isEnabled')['to'](_0x19b689,'isEnabled',_0x19b689,'hasContent',(_0x10c8f0,_0x56cce1)=>_0x10c8f0&&_0x56cce1),this['listenTo'](_0x2daebb,'execute',()=>{_0x19b689['execute']();}),_0x2daebb;}}class i extends _0x49dc60{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x305c1f){super(_0x305c1f),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x46ae84,_0x42f609,_0x361e5a)=>{_0x361e5a?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x53ed79,_0x5e63fa]of this['editor']['commands'])_0x5e63fa['affectsData']&&'addCommentThread'!==_0x53ed79&&_0x5e63fa['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x144664=this['editor']['editing']['view']['document'];this['listenTo'](_0x144664,'cut',_0x4b0671=>_0x4b0671['stop'](),{'priority':'highest'}),this['listenTo'](_0x144664,'clipboardInput',_0x274d8b=>_0x274d8b['stop'](),{'priority':'highest'}),this['listenTo'](_0x144664,'delete',_0x1f0f58=>_0x1f0f58['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5e3fbe,_0x43b441]of this['editor']['commands'])_0x43b441['affectsData']&&'addCommentThread'!==_0x5e3fbe&&_0x43b441['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x1ea55c{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2aa295){super(_0x2aa295),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x222af4=this['context']['plugins']['get'](y);this['listenTo'](_0x222af4,'_activateAnnotation',(_0xa70852,_0x3d7d60)=>{for(const _0x3b1c11 of this['activeUIs']){const _0x5326e7=this['_uis']['get'](_0x3b1c11);(0x0,this['uisData']['get'](_0x3b1c11)['filter'])(_0x3d7d60)&&_0x5326e7['setActiveAnnotation'](_0x3d7d60);}}),this['listenTo'](_0x222af4,'_deactivateAllAnnotations',()=>{for(const _0x5bfd47 of this['activeUIs']){this['_uis']['get'](_0x5bfd47)['setActiveAnnotation'](null);}}),this['listenTo'](_0x222af4['_visibleAnnotations'],'add',(_0x5d8498,_0x50b09b)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x50b09b);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x59dfa0){return this['activeUIs']['has'](_0x59dfa0);}['activate'](_0x1d4124,_0x28c819=this['defaultFilter']){const _0x54abff=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x1d4124))throw new _0x3ca26a('annotationsuis-missing-ui',this,{'uiName':_0x1d4124});this['isActive'](_0x1d4124)&&this['deactivate'](_0x1d4124),this['activeUIs']['add'](_0x1d4124);const _0x4bd620=new S();v({'source':_0x54abff['_visibleAnnotations'],'target':_0x4bd620,'filter':_0x28c819}),this['uisData']['set'](_0x1d4124,{'collection':_0x4bd620,'filter':_0x28c819});const _0x31bab0=this['_uis']['get'](_0x1d4124);_0x31bab0['attach'](_0x4bd620),this['listenTo'](_0x31bab0,'change:activeAnnotation',(_0xcb20ef,_0x8cdb09,_0x219fcc,_0x4e1a46)=>{_0x4e1a46&&_0x54abff['_removeActiveAnnotation'](_0x4e1a46),_0x219fcc&&_0x54abff['_addActiveAnnotation'](_0x219fcc);});}['deactivate'](_0x103184){if(this['activeUIs']['delete'](_0x103184),!this['_uis']['has'](_0x103184))throw new _0x3ca26a('annotationsuis-missing-ui',this,{'uiName':_0x103184});const _0x3c165d=this['_uis']['get'](_0x103184);_0x3c165d['detach'](),this['stopListening'](_0x3c165d),this['uisData']['get'](_0x103184)['collection']['destroy'](),this['uisData']['delete'](_0x103184);}['switchTo'](_0x2523a3){if(!this['_uis']['has'](_0x2523a3))throw new _0x3ca26a('annotationsuis-missing-ui',this,{'uiName':_0x2523a3});const _0x20567d=this['context']['plugins']['get'](y),_0x35b6a3=Array['from'](_0x20567d['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x2523a3);const _0x5ef584=this['_uis']['get'](_0x2523a3);_0x5ef584['setActiveAnnotation'](_0x35b6a3),_0x5ef584['_setSelectedAnnotations']&&_0x35b6a3&&_0x5ef584['_setSelectedAnnotations']([_0x35b6a3]);}['deactivateAll'](){for(const _0x4ea88d of this['activeUIs'])this['deactivate'](_0x4ea88d);}['register'](_0x1173a6,_0x1a32ae){if(this['_uis']['has'](_0x1173a6))throw new _0x3ca26a('annotationsuis-register-already-registered');if('function'!=typeof _0x1a32ae['attach']||'function'!=typeof _0x1a32ae['detach']||'function'!=typeof _0x1a32ae['setActiveAnnotation'])throw new _0x3ca26a('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1173a6,_0x1a32ae);}['refilterAnnotations'](){const _0x9ac02e=this['context']['plugins']['get'](y)['collection'],_0x26d811=new Map(),_0x167027=Array['from'](this['activeUIs']);for(const _0x58bbec of this['activeUIs']){const _0x51108c=this['uisData']['get'](_0x58bbec)['collection'];for(const _0x2f12c3 of _0x51108c)_0x26d811['set'](_0x2f12c3,_0x58bbec);}for(const _0x50947b of _0x9ac02e){const _0x62be3f=_0x26d811['get'](_0x50947b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x50947b);const _0x20b836=_0x167027['find'](_0x443680=>this['uisData']['get'](_0x443680)['filter'](_0x50947b));_0x62be3f!==_0x20b836&&(_0x62be3f&&this['uisData']['get'](_0x62be3f)['collection']['remove'](_0x50947b),_0x20b836&&this['uisData']['get'](_0x20b836)['collection']['add'](_0x50947b));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x8feb0e){const _0x400075=[];for(const _0x497985 of this['activeUIs']){(0x0,this['uisData']['get'](_0x497985)['filter'])(_0x8feb0e)&&_0x400075['push'](_0x497985);}if(_0x400075['length']>0x1)throw new _0x3ca26a('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x400075,'annotationType':_0x8feb0e['type']});}}const _i=/* #__PURE__ -- @preserve */
32
+ Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x58eaff){super(_0x58eaff);const _0xc424ed=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 _0x3af043(),this['focusCycler']=new _0x19c4d9({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0xc424ed['to']('class')],'style':{'minHeight':_0xc424ed['to']('minHeight',_0x24b5a8=>'number'==typeof _0x24b5a8?_i(_0x24b5a8+0xa):null)},'dir':_0x58eaff['uiLanguageDirection'],'role':'application','aria-label':N(_0x58eaff,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x58eaff,'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',_0x81f7b0=>{this['_updateItemPositionInFocusables'](_0x81f7b0['source']);}),this['list']['forEach'](_0x46e5c0=>{this['focusTracker']['add'](_0x46e5c0['element']),this['_updateItemPositionInFocusables'](_0x46e5c0);}),this['list']['on']('change',(_0x374234,_0xb425c7)=>{for(const _0x316ea8 of _0xb425c7['removed'])this['focusTracker']['remove'](_0x316ea8['element']),this['focusables']['remove'](_0x316ea8);for(const _0x23fa54 of _0xb425c7['added'])this['focusTracker']['add'](_0x23fa54['element']),this['_updateItemPositionInFocusables'](_0x23fa54);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0xc4c12e){const _0x39ac85=this['focusables']['getIndex'](_0xc4c12e);let _0x519e7f,_0x16b429;for(const _0x2058e2 of this['focusables'])if(_0xc4c12e['top']<_0x2058e2['top']){_0x519e7f=_0x2058e2;break;}if(_0x16b429=_0x519e7f?this['focusables']['getIndex'](_0x519e7f):this['focusables']['length'],-0x1!==_0x39ac85){if(_0x39ac85===_0x16b429-0x1)return;this['focusables']['remove'](_0xc4c12e),_0x16b429=_0x519e7f?this['focusables']['getIndex'](_0x519e7f):this['focusables']['length'];}this['focusables']['add'](_0xc4c12e,_0x16b429);}}const Ot=/* #__PURE__ -- @preserve */
33
+ Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x159907){super(_0x159907),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x5b8d94,_0x28b3b7)=>_0x5b8d94+_0x28b3b7),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x48551b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x48551b['to']('isAnimationDisabled',_0x53f30b=>_0x53f30b?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x48551b['to']('top',_0x4cec4e=>Ot(_0x4cec4e))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3988a1=this['element']['clientHeight'];_0x3988a1&&(this['height']=_0x3988a1);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x1ea55c{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35a6df){super(_0x35a6df),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 _0x411bdf=this['context']['config']['get']('sidebar.container');_0x411bdf&&this['setContainer'](_0x411bdf);}['setContainer'](_0x5c176f){if(!g(_0x5c176f))throw new _0x3ca26a('sidebar-setcontainer-invalid-element');this['container']=_0x5c176f;}['_attachToContainer']({viewClass:_0x12b5fc='',spaceBetweenItems:_0xb5885d=0x19}={}){if(!g(this['container']))throw new _0x3ca26a('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x12b5fc,this['_spaceBetweenItems']=_0xb5885d;}['rearrange']({removedAnnotation:_0x5612a3,previousAnnotation:_0x5b8237,nextAnnotation:_0x2467ce}){const _0x3b70a1=this['getSidebarItemView'](_0x5612a3);this['view']['list']['remove'](_0x3b70a1),this['_destroySidebarItemView'](_0x5612a3),_0x5b8237&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5b8237)),_0x2467ce&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2467ce)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x116654,activatedAnnotation:_0x12f140,disableAnimationOnActivatedAnnotation:_0x291000}){if(this['_activeAnnotation']=_0x12f140,_0x116654){_0x116654['isActive']=!0x1;const _0x429ee0=this['getSidebarItemView'](_0x116654);_0x429ee0&&_0x291000&&(_0x429ee0['isAnimationDisabled']=!0x1);}if(_0x12f140){const _0x5645fd=this['getSidebarItemView'](_0x12f140);_0x5645fd&&(_0x12f140['isActive']=!0x0,_0x291000&&(_0x5645fd['isAnimationDisabled']=!0x0,_0x5645fd['top']+=0x1),this['_alignToTargetRect'](_0x5645fd));}}['_detachFromContainer'](_0x4eb1e7){if(this['view']['element']['remove'](),_0x4eb1e7){for(const _0x3c9ab3 of _0x4eb1e7)this['_destroySidebarItemView'](_0x3c9ab3);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x4ed53b,_0x3a99d8){_0x3a99d8||(_0x3a99d8=_0x4ed53b['view']);const _0x4d4463=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x4d4463,_0x4ed53b),this['_annotationToSidebarItemView']['set'](_0x4ed53b,_0x4d4463),_0x4d4463['content']['add'](_0x3a99d8),this['listenTo'](_0x4ed53b['view'],'change:targetRect',(_0x560553,_0x42f638,_0x58ac79)=>{const _0x1cd440=this['_getTargetTop'](_0x4ed53b,_0x58ac79);_0x4d4463['_targetTop']!=_0x1cd440&&(_0x4d4463['_targetTop']=_0x1cd440,this['_setItemTop'](_0x4d4463,_0x1cd440));}),this['listenTo'](_0x4d4463,'change:top',()=>{this['_recalculate'](_0x4d4463,'top');}),this['listenTo'](_0x4d4463,'change:bottom',()=>{this['_recalculate'](_0x4d4463,'bottom');}),this['_alignToTargetRect'](_0x4d4463);const _0x41b6e8=this['_getItemBefore'](_0x4d4463);if(_0x41b6e8)this['_alignAfterItem'](_0x41b6e8,_0x4d4463)||this['_alignToTargetRect'](_0x4d4463);else this['_alignToTargetRect'](_0x4d4463);return this['_updateLastItem'](),this['view']['list']['add'](_0x4d4463),_0x4d4463;}['_alignForTopChange'](_0xd83f9b){if(!_0xd83f9b['content']['length'])return;const _0x36575e=this['_getItemBefore'](_0xd83f9b);if(!_0x36575e)return;const _0x273068=this['_sidebarItemViewToAnnotation']['get'](_0x36575e),_0x1121cf=this['_activeAnnotation'];_0x1121cf&&_0x1121cf===_0x273068?this['_alignAfterItem'](_0x36575e,_0xd83f9b):this['_alignBeforeItem'](_0xd83f9b,_0x36575e);}['_alignForBottomChange'](_0x41fc8a){if(!_0x41fc8a['content']['length'])return;const _0x1f375a=this['_getItemAfter'](_0x41fc8a);if(!_0x1f375a)return;const _0x200ee7=this['_sidebarItemViewToAnnotation']['get'](_0x1f375a),_0x50f083=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x13c81b=this['_activeAnnotation'];_0x13c81b&&_0x13c81b===_0x200ee7&&_0x50f083?(this['_alignBeforeItem'](_0x1f375a,_0x41fc8a),this['_alignAfterItem'](_0x41fc8a,_0x1f375a)):_0x13c81b&&_0x13c81b===_0x200ee7?this['_alignBeforeItem'](_0x1f375a,_0x41fc8a):this['_alignAfterItem'](_0x41fc8a,_0x1f375a);}['_recalculate'](_0x27fe01,_0x251acf){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x464330,changedProp:_0x1ef7b7}of this['_recalculateBuffer'])'top'===_0x1ef7b7?this['_alignForTopChange'](_0x464330):this['_alignForBottomChange'](_0x464330);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x27fe01,'changedProp':_0x251acf});}['getSidebarItemView'](_0x2cf815){return this['_annotationToSidebarItemView']['get'](_0x2cf815);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2781ce){const _0x4d7da7=this['getSidebarItemView'](_0x2781ce);this['stopListening'](_0x4d7da7),this['stopListening'](_0x2781ce['view']),_0x4d7da7['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2781ce),this['_sidebarItemViewToAnnotation']['delete'](_0x4d7da7);}['_createSidebarView'](){const _0x1f29f7=new H(this['context']['locale']);return _0x1f29f7['render'](),this['on']('change:_lastItem',(_0x2ad807,_0x567167,_0xa3ac1d,_0x4f6f3f)=>{_0x4f6f3f&&_0x1f29f7['unbind']('minHeight'),_0xa3ac1d?_0x1f29f7['bind']('minHeight')['to'](_0xa3ac1d,'bottom'):_0x1f29f7['minHeight']=null;}),_0x1f29f7;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x2c400a){const _0x49cb96=this['_sidebarItemViewToAnnotation']['get'](_0x2c400a),_0x5ccc31=_0x49cb96&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x49cb96)-0x1);return _0x5ccc31&&this['getSidebarItemView'](_0x5ccc31)||null;}['_getItemAfter'](_0x32b2c6){const _0x4139f3=this['_sidebarItemViewToAnnotation']['get'](_0x32b2c6),_0xe12a4c=_0x4139f3&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x4139f3)+0x1);return _0xe12a4c&&this['getSidebarItemView'](_0xe12a4c)||null;}['_alignBeforeItem'](_0x526c6c,_0x6dfa61){_0x526c6c['updateHeight']();const _0x4a0823=G(_0x6dfa61['bottom']+this['_spaceBetweenItems'],_0x526c6c['top']);return!!_0x4a0823&&(this['_setItemTop'](_0x6dfa61,_0x6dfa61['top']-_0x4a0823),!0x0);}['_alignAfterItem'](_0x3aa2c0,_0x3d7e72){_0x3aa2c0['updateHeight']();const _0x26b7e9=G(_0x3aa2c0['bottom']+this['_spaceBetweenItems'],_0x3d7e72['top']);return!!_0x26b7e9&&(this['_setItemTop'](_0x3d7e72,_0x3d7e72['top']+_0x26b7e9,!0x1),!0x0);}['_alignToTargetRect'](_0x51648f){const _0x4c18cb=this['_sidebarItemViewToAnnotation']['get'](_0x51648f);if(!_0x4c18cb||!_0x4c18cb['target']||!_0x4c18cb['targetRect'])return;const _0x292020=this['_getTargetTop'](_0x4c18cb,_0x4c18cb['targetRect']);this['_setItemTop'](_0x51648f,_0x292020);}['_getTargetTop'](_0x2db241,_0x1427a9){if(null===_0x1427a9)return 0x0;if(_0x2db241['target']instanceof _0x247ddb)return _0x1427a9['top'];{const _0x515d73=new _0x247ddb(this['view']['element'])['top'];return _0x1427a9['top']-_0x515d73;}}['_setItemTop'](_0x35b37d,_0xc17e35,_0x319560=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x319560&&(_0xc17e35=Math['max'](_0xc17e35,this['_getMaxAvailableTop'](_0x35b37d))),_0x35b37d['top']=_0xc17e35;}['_getMaxAvailableTop'](_0x1c6902){let _0x4ae115=this['_getItemBefore'](_0x1c6902),_0x402b0d=0x0;for(;_0x4ae115;)_0x4ae115['updateHeight'](),_0x402b0d+=this['_spaceBetweenItems']+_0x4ae115['height'],_0x4ae115=this['_getItemBefore'](_0x4ae115);return _0x402b0d;}}function G(_0x4d50a1,_0xe5f3b5){return Math['max'](_0x4d50a1-_0xe5f3b5,0x0);}function g(_0x147fef){return null!==_0x147fef&&'object'==typeof _0x147fef&&0x1===_0x147fef['nodeType'];}class e extends _0x1ea55c{['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(_0x4b3570){super(_0x4b3570),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x15ba5f(),this['_refreshPositioningDebounced']=_0x4f76db(()=>{_0x4b3570['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x1d58cd=this['context']['plugins']['get'](j),_0x43a668=this['context']['plugins']['get'](z);_0x1d58cd['register']('wideSidebar',this),_0x43a668['container']&&_0x1d58cd['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x1d8462){if(_0x1d8462===this['activeAnnotation'])return;const _0x5c5e21=this['context']['plugins']['get'](z);_0x5c5e21['_activeAnnotation']=_0x1d8462;const _0x59b4b4=this['activeAnnotation'];_0x5c5e21['refresh']({'blurredAnnotation':_0x59b4b4,'activatedAnnotation':_0x1d8462}),this['activeAnnotation']=_0x1d8462;}['attach'](_0x581727){this['annotations']=_0x581727;const _0x5a873b=this['context']['plugins']['get'](z);if(_0x5a873b['_annotations']=_0x581727,this['isAttached'])throw new _0x3ca26a('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5a873b,'set:container',()=>{this['detach'](),this['listenTo'](_0x5a873b,'change:container',_0x5ab785=>{_0x5ab785['off'](),this['attach'](_0x581727);});}),_0x5a873b['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x4bf7a6=_0x107d35=>{_0x107d35['updateTargetRect'](),_0x5a873b['addAnnotation'](_0x107d35);};for(const _0x3e263d of _0x581727)_0x4bf7a6(_0x3e263d);this['listenTo'](_0x581727,'add',(_0x16bbf8,_0x5cdaff)=>{_0x4bf7a6(_0x5cdaff);}),this['listenTo'](_0x581727,'remove',(_0x53c883,_0x35582b,_0x2f3ca9)=>{_0x5a873b['rearrange']({'removedAnnotation':_0x35582b,'previousAnnotation':_0x581727['get'](_0x2f3ca9-0x1),'nextAnnotation':_0x581727['get'](_0x2f3ca9+0x1)}),_0x35582b===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x581727,'focus',(_0x3ed234,_0x3bee29)=>{this['setActiveAnnotation'](_0x3bee29);}),this['listenTo'](_0x581727,'blur',()=>{this['setActiveAnnotation'](null);});const _0x26d01f=this['context']instanceof _0x5615d3?this['context']['editors']:new _0x15ba5f([this['context']]);for(const _0x499a30 of _0x26d01f)this['_integrateWithEditorAnnotations'](_0x499a30);this['listenTo'](_0x26d01f,'add',(_0x73e9c8,_0x242de9)=>{this['listenTo'](_0x242de9,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x242de9);});}),this['listenTo'](_0x26d01f,'remove',(_0x27ec4e,_0x24cff4)=>{_0x24cff4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x24cff4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3ca26a('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3bff65=this['context']['plugins']['get'](z);_0x3bff65['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3bff65),this['stopListening'](this['annotations']),this['context']instanceof _0x5615d3&&this['stopListening'](this['context']['editors']);for(const _0x5d1acb of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5d1acb);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x55903d){if(!_0x55903d['plugins']['has']('EditorAnnotations'))return;const _0x19e118=_0x55903d['plugins']['get']('EditorAnnotations'),_0x5291ec=()=>{const _0x421064=_0x19e118['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x421064[0x0]||null);};this['listenTo'](_0x19e118,'refresh',_0x5291ec),this['listenTo'](_0x19e118,'blur',(_0x3586b0,{isAnnotationTracked:_0x1ffb6d})=>{this['activeAnnotation']&&_0x1ffb6d(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x19e118,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x5dce1e=>{_0x19e118['hasDomSelection']()&&(_0x5291ec(),_0x5dce1e['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x19e118);}['_destroyEditorAnnotationsIntegration'](_0x56b451){this['stopListening'](_0x56b451),this['_editorAnnotations']['remove'](_0x56b451);}}class C extends _0x48fd4a{['counterView'];constructor(_0x44240d){super(_0x44240d);const _0x4a018d=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x47ac98,_0x17ab15)=>_0x47ac98?'...':_0x17ab15['toString']()),this['set']('annotationType',''),this['icon']=_0x58c113,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4a018d['to']('annotationType',_0x241b7e=>'ck-annotation-counter__badge--'+_0x241b7e),_0x4a018d['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4a018d['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x1ea55c{['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(_0x527e48){super(_0x527e48),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x244d46())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x15ba5f(),this['_refreshPositioningDebounced']=_0x4f76db(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x1d59a6(this['context']['locale']),this['balloonPanelView']=new _0x33a601(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x454e9e){this['annotations']=_0x454e9e;const _0x37d793=this['context']['plugins']['get'](z),_0x1f4039=this['balloonPanelView'];if(_0x37d793['_annotations']=_0x454e9e,this['isAttached'])throw new _0x3ca26a('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x37d793,'set:container',()=>{this['detach'](),this['listenTo'](_0x37d793,'change:container',_0x5a4aac=>{_0x5a4aac['off'](),this['attach'](_0x454e9e);});}),_0x37d793['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x190109=_0x506a4c=>{const _0x23ce3a=new C(this['context']['locale']);_0x37d793['addAnnotation'](_0x506a4c,_0x23ce3a),this['_annotationToNarrowView']['set'](_0x506a4c,_0x23ce3a),_0x23ce3a['bind']('isDirty','annotationType','number')['to'](_0x506a4c['view'],'isDirty','type','length'),_0x23ce3a['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1f4039['content']['first']!==_0x506a4c['view']?(this['_showBalloon'](_0x506a4c),_0x506a4c['view']['element']['focus'](),this['setActiveAnnotation'](_0x506a4c)):this['setActiveAnnotation'](null);});};for(const _0x43ad14 of _0x454e9e)_0x190109(_0x43ad14);this['listenTo'](_0x454e9e,'add',(_0x66222c,_0x5a7d8)=>{_0x190109(_0x5a7d8);}),this['listenTo'](_0x454e9e,'remove',(_0x31de3f,_0x573980,_0x4d1d79)=>{this['_annotationToNarrowView']['get'](_0x573980)['destroy'](),this['_annotationToNarrowView']['delete'](_0x573980),_0x37d793['rearrange']({'removedAnnotation':_0x573980,'previousAnnotation':_0x454e9e['get'](_0x4d1d79-0x1),'nextAnnotation':_0x454e9e['get'](_0x4d1d79+0x1)}),_0x573980===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x454e9e,'focus',(_0x28dfd1,_0x5e95da)=>{this['setActiveAnnotation'](_0x5e95da);}),this['listenTo'](_0x454e9e,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x3a010b,_0x4317ed)=>{_0x4317ed['keyCode']===_0x5c1ee6['esc']&&_0x1f4039['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1f4039['content']['first']),this['_hideBalloon'](),_0x4317ed['stopPropagation'](),_0x4317ed['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0xf5804c,_0x16acba)=>{const _0x3458ae=_0x16acba['target'];_0x1f4039['isVisible']&&_0x1f4039['element']['contains'](_0x3458ae)||_0x37d793['view']['element']['contains'](_0x3458ae)||_0xf5804c['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4778b7=>_0x4778b7['contains'](_0x3458ae))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1c6a45=this['context']instanceof _0x5615d3?this['context']['editors']:new _0x15ba5f([this['context']]);for(const _0x36b5ba of _0x1c6a45)this['_integrateWithEditorAnnotations'](_0x36b5ba);this['listenTo'](_0x1c6a45,'add',(_0x4ffc4f,_0x594aab)=>{this['listenTo'](_0x594aab,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x594aab);});}),this['listenTo'](_0x1c6a45,'remove',(_0x1a4d86,_0x46d658)=>{_0x46d658['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x46d658['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1ef3b9){if(_0x1ef3b9===this['activeAnnotation'])return;const _0x4a8b4d=this['context']['plugins']['get'](z);if(_0x4a8b4d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1ef3b9,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1ef3b9)_0x4a8b4d['getSidebarItemView'](_0x1ef3b9)?this['_showBalloon'](_0x1ef3b9):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x1ef3b9;}['detach'](){if(!this['isAttached'])throw new _0x3ca26a('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x261b0c=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x23cfdb=>_0x23cfdb['destroy']()),this['_annotationToNarrowView']['clear'](),_0x261b0c['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x5615d3&&this['stopListening'](this['context']['editors']);for(const _0x63d4a of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x63d4a);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'](_0x1e4a54){if(!_0x1e4a54['plugins']['has']('EditorAnnotations'))return;const _0x4d8990=_0x1e4a54['plugins']['get']('EditorAnnotations'),_0x2ca272=this['context']['plugins']['get'](z),_0x5064cd=this['annotations'],_0x13cb5e=this['balloonPanelView'],_0x24af81=()=>{const _0xe44a9b=_0x4d8990['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0xe44a9b),this['setActiveAnnotation'](_0xe44a9b[0x0]||null);};this['listenTo'](_0x4d8990,'refresh',_0x24af81),this['listenTo'](_0x4d8990,'blur',(_0x272bd5,{isAnnotationTracked:_0xd277ed})=>{this['activeAnnotation']&&_0xd277ed(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x4d8990,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5064cd,'blur',_0x54c480=>{_0x4d8990['hasDomSelection']()&&_0x54c480['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1b7e42,_0x370b84)=>{const _0x3a7cee=_0x370b84['target'];_0x13cb5e['isVisible']&&_0x13cb5e['element']['contains'](_0x3a7cee)||_0x2ca272['view']['element']['contains'](_0x3a7cee)||this['activeAnnotation']&&_0x4d8990['hasDomSelection']()&&(_0x24af81(),_0x1b7e42['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4d8990);}['_destroyEditorAnnotationsIntegration'](_0x2af4ed){_0x2af4ed&&(this['stopListening'](_0x2af4ed),this['_editorAnnotations']['remove'](_0x2af4ed));}['_setSelectedAnnotations'](_0x97119c){for(const _0x5bfd9c of this['_selectedAnnotations'])_0x97119c['includes'](_0x5bfd9c)||this['_manuallyClosedAnnotationViews']['delete'](_0x5bfd9c['view']);this['_selectedAnnotations']=_0x97119c;}['_refreshPositioning'](){const _0xe86186=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0xe86186['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xfa4b44){if(this['_manuallyClosedAnnotationViews']['has'](_0xfa4b44['view']))return;const _0x7c2487=this['balloonPanelView']['content']['first'];_0x7c2487!==_0xfa4b44['view']?(_0x7c2487&&this['_detachListeners'](_0x7c2487),this['_attachListeners'](_0xfa4b44['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xfa4b44['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4083dd=this['balloonPanelView']['content']['first'],_0x59932a=_0x4083dd&&this['annotations']['getByView'](_0x4083dd);if(!_0x59932a||!this['_annotationToNarrowView']['has'](_0x59932a))return;const _0x5c64ea=this['_annotationToNarrowView']['get'](_0x59932a)['element'],_0x2d9528=(function(){const _0x1e6430=_0x33a601['defaultPositions'];return[_0x1e6430['southArrowNorthEast'],_0x1e6430['northArrowSouthEast'],_0x1e6430['southArrowNorth'],_0x1e6430['northArrowSouth'],_0x1e6430['southArrowNorthWest'],_0x1e6430['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5c64ea,'positions':_0x2d9528});}['_hideBalloon'](){const _0x5711c2=this['balloonPanelView'],_0x115cc6=_0x5711c2['content']['first'];_0x115cc6&&(this['_detachListeners'](_0x115cc6),_0x5711c2['unpin'](),_0x5711c2['content']['clear']());}['_attachListeners'](_0xdfb481){this['listenTo'](_0xdfb481,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0xdfb481,'Esc',(_0x143b4b,_0x500e0a)=>{this['_manuallyClosedAnnotationViews']['add'](_0xdfb481),this['_hideBalloon'](),_0x500e0a();});}['_detachListeners'](_0x28120c){this['stopListening'](_0x28120c);}}class c extends _0x49dc60{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x2e1933,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20ee81){super(_0x20ee81),_0x20ee81['editing']['view']['addObserver'](_0x14a44e),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x20ee81['plugins']['get'](_0x2e1933),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x1ad127=this['editor']['plugins']['get'](j);_0x1ad127['context']===this['editor']&&(_0x1ad127['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x238b56,_0x198afe)=>{const _0x12b5c1=this['_balloon'];if(this['isAttached']&&_0x12b5c1['visibleView']){const _0x5e2d79=this['annotations']['getByView'](_0x12b5c1['visibleView']);_0x5e2d79&&this['_closeAnnotation'](_0x5e2d79),_0x198afe();}}));}['afterInit'](){const _0x2bbe27=this['editor']['plugins']['get'](j);_0x2bbe27['context']===this['editor']&&(_0x2bbe27['hasActive']()||_0x2bbe27['switchTo']('inline'));}['setActiveAnnotation'](_0x3a8b28){_0x3a8b28!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x3a8b28&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x3a8b28)&&this['_addAnnotationToBalloon'](_0x3a8b28,!0x0),_0x3a8b28['isActive']=!0x0),_0x3a8b28||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3a8b28);}['attach'](_0x2737bc){this['annotations']=_0x2737bc;const _0x4fae66=this['editor']['plugins']['get'](j),_0x183b4b=this['_balloon'];if(this['isAttached'])throw new _0x3ca26a('inlineannotations-attach-already-attached',this);if(_0x4fae66['context']!==this['editor'])throw new _0x3ca26a('inlineannotations-not-allowed-with-context',this);const _0x5c0c38=this['editor']['plugins']['get'](b);this['listenTo'](_0x5c0c38,'refresh',()=>{const _0x3a19ae=_0x5c0c38['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x457e8b,_0x2a07e7;!this['_forceRefresh']&&(_0x457e8b=_0x3a19ae,_0x2a07e7=this['_selectedAnnotations'],_0x457e8b['length']===_0x2a07e7['length']&&_0x457e8b['every'](_0x2abce1=>_0x2a07e7['includes'](_0x2abce1)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x3a19ae),this['setActiveAnnotation'](_0x3a19ae[0x0]||null));}),this['listenTo'](_0x5c0c38,'blur',(_0x1d139d,{isAnnotationTracked:_0x39b902})=>{this['activeAnnotation']&&_0x39b902(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x17953d,_0x5b0e56,_0xa6b385)=>{_0xa6b385||this['setActiveAnnotation'](null);}),this['listenTo'](_0x2737bc,'remove',(_0x6bfbaf,_0x4742db)=>{this['_removeAnnotationFromBalloon'](_0x4742db),_0x4742db===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x183b4b,'change:visibleView',(_0x325b12,_0x35efd1,_0x2fb576,_0x59f107)=>{_0x59f107&&this['stopListening'](_0x59f107);const _0x50998c=_0x2737bc['getByView'](_0x2fb576);_0x2fb576&&_0x50998c&&(this['listenTo'](_0x2fb576,'change:height',()=>{_0x183b4b['updatePosition']();}),this['listenTo'](_0x2fb576,'Esc',()=>{this['_closeAnnotation'](_0x50998c),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x50998c&&this['setActiveAnnotation'](_0x50998c));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x183b4b['visibleView']&&(_0x2737bc['getByView'](_0x183b4b['visibleView'])&&_0x183b4b['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 _0x3ca26a('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x346e61 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x346e61);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x3563bd){for(const _0x84a18 of this['_selectedAnnotations'])_0x3563bd['includes'](_0x84a18)||this['_manuallyClosed']['delete'](_0x84a18);for(const _0x42802c of this['annotations'])_0x3563bd['includes'](_0x42802c)||this['_removeAnnotationFromBalloon'](_0x42802c);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x20d03f of _0x3563bd)this['_addAnnotationToBalloon'](_0x20d03f);}this['_selectedAnnotations']=_0x3563bd;}['_addAnnotationToBalloon'](_0x4e5591,_0x58aeab=!0x1){this['_manuallyClosed']['has'](_0x4e5591)||(this['_addedAnnotations']['has'](_0x4e5591)||this['_balloon']['hasView'](_0x4e5591['view'])||(this['_addedAnnotations']['add'](_0x4e5591),this['_balloon']['add']({'stackId':_0x4e5591['view']['id'],'view':_0x4e5591['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x4e5591)}})),_0x58aeab&&this['_balloon']['showStack'](_0x4e5591['view']['id']));}['_getBalloonTargetForAnnotation'](_0x5d817c){const _0x38799f=_0x5d817c['target'],_0x276857=this['editor']['editing']['view'],_0x5a3b45=_0x276857['document']['selection']['getFirstRange'](),_0x339be1=_0x276857['domConverter']['viewRangeToDom'](_0x5a3b45);if(_0x339be1['collapse'](!0x0),_0x38799f){if(_0x38799f instanceof _0x247ddb)return _0x38799f;let _0x501fc9=[];for(const _0x2d3575 of _0x38799f)_0x501fc9['push'](...F(_0x2d3575['getClientRects']()));_0x501fc9=function(_0x364692){const _0x27aedd=[];let _0x48ff69=_0x364692[0x0];for(let _0x4c88d3=0x1;_0x4c88d3<_0x364692['length'];_0x4c88d3++)P(_0x48ff69,_0x364692[_0x4c88d3])?_0x48ff69['width']+=_0x364692[_0x4c88d3]['width']:(_0x27aedd['push'](_0x48ff69),_0x48ff69=_0x364692[_0x4c88d3]);return _0x27aedd['push'](_0x48ff69),_0x27aedd;}(_0x501fc9);const _0x162c15=_0x339be1['getBoundingClientRect']();return _0x501fc9['find'](_0x475b45=>_0x475b45['top']<=_0x162c15['top']&&_0x475b45['bottom']>=_0x162c15['bottom']&&_0x475b45['left']<=_0x162c15['left']&&_0x475b45['right']>=_0x162c15['right'])||_0x501fc9[0x0];}return _0x5d817c['targetRect']||_0x339be1;}['_removeAnnotationFromBalloon'](_0x2d96fb){this['_addedAnnotations']['has'](_0x2d96fb)&&this['_balloon']['hasView'](_0x2d96fb['view'])&&(this['_addedAnnotations']['delete'](_0x2d96fb),this['_balloon']['remove'](_0x2d96fb['view']));}['_closeAnnotation'](_0x3a843a){this['_manuallyClosed']['add'](_0x3a843a),this['_removeAnnotationFromBalloon'](_0x3a843a);}}function F(_0x470705){return Array['from'](_0x470705)['map'](DOMRect['fromRect']);}function P(_0x94c387,_0xa91b1b){return _0x94c387['top']===_0xa91b1b['top']&&_0x94c387['bottom']===_0xa91b1b['bottom']&&_0x94c387['right']===_0xa91b1b['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x56b252,_0x5b8131){super(_0x56b252),this['set']('isEmpty',!_0x5b8131['length']),this['focusTracker']=new _0x3af043(),this['_annotationViews']=_0x5b8131,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x19c4d9({'focusables':_0x5b8131,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5b8131,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5b8131,'remove',(_0xcb34eb,_0x5582c9)=>{_0x5582c9['isActive']&&this['focus'](),_0x5b8131['length']||(this['isEmpty']=!0x0);});const _0xb1ea02=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x56b252,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5b8131},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0xb1ea02['if']('isEmpty','ck-hidden',_0x59f9c5=>!_0x59f9c5)]},'children':[{'text':N(_0x56b252,'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 _0x161020 of this['_annotationViews'])this['focusTracker']['add'](_0x161020['element']);this['_annotationViews']['on']('change',(_0x20e0ef,{added:_0x14ff5c,removed:_0x4cd4d5})=>{for(const _0x5d1195 of _0x14ff5c)this['focusTracker']['add'](_0x5d1195['element']);for(const _0x24e512 of _0x4cd4d5)this['focusTracker']['remove'](_0x24e512['element']);});}}class p extends _0x1ea55c{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0xf9173b){super(_0xf9173b),this['archivedThreads']=new _0x15ba5f();}['init'](){const _0x4c8120=this['context'],_0x3bb6fb=_0x4c8120['plugins']['get'](o),_0x564b41=_0x4c8120['plugins']['get'](y);this['listenTo'](_0x3bb6fb,'addCommentThread',(_0x1705ea,{threadId:_0x1666ce})=>{const _0x1979d3=_0x3bb6fb['getCommentThread'](_0x1666ce);_0x1979d3['archivedAt']&&this['archivedThreads']['add'](_0x1979d3,this['_calculatePosition'](_0x1979d3['archivedAt'])),this['listenTo'](_0x1979d3,'change:archivedAt',(_0x57441c,_0x9468e2,_0x3c9ff8)=>{_0x3c9ff8?this['archivedThreads']['has'](_0x1979d3)||this['archivedThreads']['add'](_0x1979d3,this['_calculatePosition'](_0x1979d3['archivedAt'])):this['archivedThreads']['has'](_0x1979d3)&&this['archivedThreads']['remove'](_0x1979d3);});}),this['listenTo'](_0x3bb6fb,'removeCommentThread',(_0x39595d,{threadId:_0x64e23a})=>{const _0x1f77fb=_0x3bb6fb['getCommentThread'](_0x64e23a);this['stopListening'](_0x1f77fb),this['archivedThreads']['has'](_0x1f77fb)&&this['archivedThreads']['remove'](_0x1f77fb);},{'priority':'highest'}),this['listenTo'](_0x564b41['collection'],'focus',(_0xacd32a,_0x29612e)=>{_0x29612e['isVisible']||(_0x29612e['isActive']=!0x0,_0x564b41['activate'](_0x29612e));});}['_calculatePosition'](_0x2b2216){const _0x1931ac=[...this['archivedThreads']]['findIndex'](_0x4ddb4b=>_0x4ddb4b['archivedAt']<_0x2b2216);return _0x1931ac>-0x1?_0x1931ac:this['archivedThreads']['length'];}}class a extends _0x49dc60{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x53b91c];}constructor(_0x457c5d){super(_0x457c5d),this['annotationViews']=new _0x53d65b(),this['_pendingThreads']=[];}['init'](){const _0x25cb43=this['editor'],_0x5766d9=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x25cb43['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x48fd4a,!0x0)),_0x25cb43['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x235c19=this['_createCommentsArchiveButton'](_0xd96c20);return _0x235c19['set']({'role':'menuitemcheckbox'}),_0x235c19;});const _0x7c381d=_0x25cb43['plugins']['get'](p),_0x3ebf64=_0x25cb43['plugins']['get']('Annotations'),_0x1f53b1=_0x25cb43['plugins']['get']('CommentsRepository');_0x7c381d['archivedThreads']['forEach'](_0x5bd889=>{this['_handleNewThread'](_0x5bd889);}),this['listenTo'](_0x7c381d['archivedThreads'],'add',(_0x4df205,_0x209307)=>{this['_handleNewThread'](_0x209307);}),this['listenTo'](_0x3ebf64['collection'],'add',(_0x13b54b,_0x2bd24a)=>{const _0x35dd25=this['_pendingThreads']['find'](_0x3bfc99=>{const _0x428a41=_0x1f53b1['_threadToController']['get'](_0x3bfc99);return _0x428a41&&_0x2bd24a['innerView']===_0x428a41['view'];});if(_0x35dd25){const _0x26086f=this['_calculatePosition'](_0x35dd25['archivedAt']);this['_addAnnotationToArchive'](_0x2bd24a,_0x26086f),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x35dd25),0x1);}}),this['listenTo'](_0x7c381d['archivedThreads'],'remove',(_0x1f30fa,_0x4d43f9)=>{const _0xd3c707=_0x25cb43['config']['get']('collaboration.channelId');if(!_0xd3c707||_0x4d43f9['channelId']===_0xd3c707){if(this['_pendingThreads']['includes'](_0x4d43f9))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x4d43f9),0x1);else{const _0x4ee1bc=_0x1f53b1['_threadToController']['get'](_0x4d43f9),_0xc9b9bf=_0x3ebf64['getByInnerView'](_0x4ee1bc['view']);this['annotationViews']['remove'](_0xc9b9bf['view']),this['stopListening'](_0xc9b9bf),this['stopListening'](_0xc9b9bf['focusableElements']);}}}),this['listenTo'](_0x3ebf64['collection'],'add',(_0x119e74,_0x278590)=>{this['listenTo'](_0x278590,'escape',_0x5766d9);}),this['listenTo'](_0x3ebf64['collection'],'remove',(_0xff4945,_0x3f2318)=>{this['stopListening'](_0x3f2318,'escape',_0x5766d9);});}['_addAnnotationToArchive'](_0x7aafe1,_0x1050f7){this['listenTo'](_0x7aafe1,'set:isVisible',_0x437518=>{_0x437518['return']=!0x1,_0x437518['stop']();}),this['annotationViews']['add'](_0x7aafe1['view'],_0x1050f7);}['_handleNewThread'](_0x59fa67){const _0xd5cea1=this['editor']['plugins']['get']('CommentsRepository'),_0x58198d=this['editor']['plugins']['get']('Annotations'),_0x332e23=this['editor']['config']['get']('collaboration.channelId');if(!_0x332e23||_0x59fa67['channelId']===_0x332e23){const _0x244a97=_0xd5cea1['_threadToController']['get'](_0x59fa67);if(!_0x244a97)return void this['_pendingThreads']['push'](_0x59fa67);const _0x2d14a7=this['_calculatePosition'](_0x59fa67['archivedAt']),_0x2137eb=_0x58198d['getByInnerView'](_0x244a97['view']);_0x2137eb['isVisible']&&_0x58198d['_visibleAnnotations']['remove'](_0x2137eb),this['_addAnnotationToArchive'](_0x2137eb,_0x2d14a7);}}['_calculatePosition'](_0x4d1a75){const _0x3bcc68=this['editor']['config']['get']('collaboration.channelId'),_0x2bbd6c=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x4398f4=>_0x4398f4['channelId']===_0x3bcc68)['findIndex'](_0x1a57df=>_0x1a57df['archivedAt']<_0x4d1a75);return _0x2bbd6c<0x0||_0x2bbd6c>this['annotationViews']['length']?this['annotationViews']['length']:_0x2bbd6c-0x1;}['_toggleDialog'](){const _0x4e1eca=this['editor'],_0x527a3c=_0x4e1eca['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x4e1eca['locale'],this['annotationViews'])),'commentsArchive'===_0x527a3c['id']?_0x527a3c['hide']():_0x527a3c['show']({'id':'commentsArchive','title':N(_0x4e1eca['locale'],'COMMENTS_ARCHIVE'),'icon':_0x37b4e5,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x2d15a8['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x1afa81,_0x2d1265=!0x1){const _0x3b7029=this['editor']['locale'],_0x2a42f6=this['editor']['plugins']['get']('Dialog'),_0x4addb9=new _0x1afa81(_0x3b7029);return _0x4addb9['bind']('isEnabled')['to'](this,'isEnabled'),_0x4addb9['bind']('isOn')['to'](_0x2a42f6,'id',_0x4b51c2=>'commentsArchive'===_0x4b51c2),_0x4addb9['set']({'label':N(_0x3b7029,'COMMENTS_ARCHIVE'),'icon':_0x37b4e5,'isToggleable':!0x0}),_0x2d1265&&(_0x4addb9['tooltip']=!0x0),this['listenTo'](_0x4addb9,'execute',()=>this['_toggleDialog']()),_0x4addb9;}['_hideDialogOnAnnotationEscape']=_0x4bf859=>{const _0x5f10a0=_0x4bf859['source'];if(!this['annotationViews']['has'](_0x5f10a0['view']))return;const _0x16b6a6=this['editor']['plugins']['get']('Dialog');_0x16b6a6['isOpen']&&'commentsArchive'===_0x16b6a6['id']&&(_0x16b6a6['hide'](),_0x4bf859['stop']());};}class gi extends _0x49dc60{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};