@ckeditor/ckeditor5-comments 44.2.0-alpha.16 → 44.2.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 (191) hide show
  1. package/build/comments.js +1 -1
  2. package/dist/index.js +9 -9
  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/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +17 -17
  148. package/src/annotations/annotation.js +2 -2
  149. package/src/annotations/annotationcollection.js +1 -1
  150. package/src/annotations/annotations.js +1 -1
  151. package/src/annotations/annotationsuis.js +1 -1
  152. package/src/annotations/editorannotations.js +1 -1
  153. package/src/annotations/inlineannotations.js +1 -1
  154. package/src/annotations/narrowsidebar.js +1 -1
  155. package/src/annotations/sidebar.js +1 -1
  156. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  157. package/src/annotations/view/annotationview.js +1 -1
  158. package/src/annotations/view/sidebaritemview.js +1 -1
  159. package/src/annotations/view/sidebarview.js +1 -1
  160. package/src/annotations/widesidebar.js +1 -1
  161. package/src/comments/addcommentthreadcommand.js +1 -1
  162. package/src/comments/commentsarchive.js +1 -1
  163. package/src/comments/commentsarchiveui.js +1 -1
  164. package/src/comments/commentsediting.js +1 -1
  165. package/src/comments/commentsrepository.js +3 -3
  166. package/src/comments/commentsui.js +1 -1
  167. package/src/comments/integrations/clipboard.js +1 -1
  168. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  169. package/src/comments/integrations/importword.js +1 -1
  170. package/src/comments/integrations/showcommenthighlights.js +1 -1
  171. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  172. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  173. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  174. package/src/comments/ui/commentthreadcontroller.js +2 -2
  175. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  176. package/src/comments/ui/view/basecommentview.js +1 -1
  177. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  178. package/src/comments/ui/view/commentcontentview.js +1 -1
  179. package/src/comments/ui/view/commentinputview.js +1 -1
  180. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  181. package/src/comments/ui/view/commentslistview.js +1 -1
  182. package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
  183. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  184. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  185. package/src/comments/ui/view/commentthreadview.js +2 -2
  186. package/src/comments/ui/view/commentview.js +2 -2
  187. package/src/comments.js +1 -1
  188. package/src/commentsonly.js +1 -1
  189. package/src/index.js +1 -1
  190. package/src/utils/common-translations.js +1 -1
  191. package/src/utils/createmutationobserver.js +1 -1
package/dist/index.js CHANGED
@@ -20,12 +20,12 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Editor as _0x330d17,icons as _0x1c4b06,ContextPlugin as _0x990b8c,PendingActions as ht,Command as _0x3805d3,Plugin as _0x5ed257,Context as _0x37e3fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x11850d,uid as _0x3dd4f9,KeystrokeHandler as jt,FocusTracker as _0x3063bc,diff as _0x2b0115,Collection as _0x4f7a0b,Rect as _0x572963,CKEditorError as _0x2c2a61,first as _0x4294c5,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x45ec30,keyCodes as _0x27de6b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0xf339d0,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x662b08,ConfirmMixin as ti,LateFocusButtonView as _0x1a6d8e,trimHtml as _0x380949,LateFocusDropdownButtonView as _0x2174ec,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x4407fb}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x497022}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x4231dd,ViewCollection as _0x42f832,createDropdown as _0x10e593,ListView as _0x1261ac,focusChildOnDropdownOpen as _0x4218ce,ListItemView as _0xab93ff,MenuBarMenuListItemButtonView as _0x479457,BodyCollection as _0x71b0c4,BalloonPanelView as _0x2a8ac2,ContextualBalloon as _0x35e8a1,Dialog as _0x572c38,DialogViewPosition as _0x3905e1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x38a0a1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x45618f}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x578851}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
- _0x11850d(){['model'];['view'];constructor(_0x344dff,_0x1882a9){super(),this['model']=_0x344dff,this['model']['_isAttached']=!0x0,this['view']=_0x1882a9,this['listenTo'](_0x1882a9,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x1882a9,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x1882a9,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x1882a9,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x1882a9,'addComment',(_0x2e8237,_0x56bbb4)=>this['addComment'](_0x56bbb4)),this['listenTo'](_0x1882a9,'updateComment',(_0x23696d,_0x358e9c,_0x20b562)=>this['updateComment'](_0x358e9c,_0x20b562)),this['listenTo'](_0x1882a9,'removeComment',(_0x5e47d6,_0x150b45)=>this['removeComment'](_0x150b45));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x2d66c7){this['model']['addComment']({'content':_0x2d66c7,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x152389,_0x130e0d){this['model']['getComment'](_0x152389)['update']({'content':_0x130e0d});}['removeComment'](_0x5e864d){this['model']['getComment'](_0x5e864d)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x21b1d5,_0x17ec7a,_0x30640a){const t=_0x21b1d5['t'];switch(_0x17ec7a){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'},_0x30640a);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'},_0x30640a);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'},_0x30640a);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'},_0x30640a);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x30640a);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'},_0x30640a);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'},_0x30640a);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'},_0x30640a);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 Xt extends Yt{['main'];['editable'];constructor(_0x546ccc,_0x1a9427){super(_0x546ccc);const _0x8ba135=_0x3dd4f9();this['main']=this['createCollection'](),this['editable']=new $t(_0x546ccc,_0x1a9427,void 0x0,{'label':()=>S(_0x546ccc,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x546ccc['uiLanguageDirection'],'lang':_0x546ccc['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x8ba135},'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 Ot extends Vt{['view'];constructor(_0x1359c1){super(_0x1359c1),this['view']=new Xt(_0x1359c1['locale'],_0x1359c1['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x4f0564=this['editor']['editing']['view'],_0x56a374=this['view']['editable'],_0x5b16c3=_0x4f0564['document']['getRoot']();_0x56a374['name']=_0x5b16c3['rootName'],this['view']['render']();const _0x5dd964=_0x56a374['element'];this['setEditableElement'](_0x56a374['name'],_0x5dd964),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4f0564['attachDomRoot'](_0x5dd964),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
- _0x11850d(_0x330d17){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
- ((()=>Rt)());constructor(_0x2a7aa8={}){function _0x495212(_0x171a5d){return _0x171a5d['map'](_0x56c9a5=>String['fromCharCode'](_0x56c9a5))['join']('');}(_0x2a7aa8=Object['assign']({},_0x2a7aa8))['plugins']||(_0x2a7aa8['plugins']=Ut['defaultPlugins']),super(_0x2a7aa8),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x495212([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x495212([0x76,0x69,0x65,0x77])][_0x495212([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x495212([0x61,0x75,0x74,0x6f]),this[_0x495212([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x495212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x495212([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x495212([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x495212([0x6f,0x6b])});}['create'](){const _0x48cd98=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x48cd98))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5418db=>{const _0x2b667f=this['model']['document']['getRoot'](),_0x2d8a18=_0x2b667f&&_0x2b667f['getChild'](_0x2b667f['childCount']-0x1);_0x5418db['setSelection'](_0x2d8a18,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x20acf0=this['editing']['view'],_0x5bb294=_0x20acf0['document']['getRoot'](),_0x24e32d=_0x5bb294['getChild'](0x0);_0x5bb294['childCount']>0x1||!_0x24e32d||'p'!=_0x24e32d['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x20acf0,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x24e32d['placeholder']=this['placeholder']),St({'view':_0x20acf0,'element':_0x24e32d,'keepOnFocus':!0x0}),this['placeholderElement']=_0x24e32d);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x367120,_0x26cb86={}){super(_0x367120),this['editor']=null,this['_editorConfig']=_0x26cb86,this['set']('value',_0x26cb86['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x367120,'Reply...')),this['set']('submitLabel',S(_0x367120,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x3063bc(),this['focusCycler']=new Ft({'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',(_0xe8f93b,_0x2ed2d8)=>{this['cancelButtonView']['fire']('execute'),_0x2ed2d8();}),this['keystrokes']['set']('Ctrl+Enter',(_0x279e8e,_0x73f161)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x73f161());}),this['on']('submit',(_0x6b1e30,_0x2ee494)=>{_0x2ee494['length']>0xfde8?(alert(S(_0x367120,'TOO_LONG_COMMENT_ALERT',[_0x2ee494['length'],0xfde8])),_0x6b1e30['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x82739b=this['editor'];this['element']['insertBefore'](_0x82739b['ui']['element'],this['element']['firstChild']),_0x82739b['model']['document']['on']('change',()=>this['value']=_0x82739b['getData']()),_0x82739b['bind']('placeholder')['to'](this),this['focusables']['add'](_0x82739b['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x3220cb){-0x1===_0x3220cb?(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:_0x1882c9}=this,_0xb12149=new _0x4231dd(_0x1882c9);return _0xb12149['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xb12149['withText']=!0x0,_0xb12149['bind']('label')['to'](this,'submitLabel'),_0xb12149['on']('execute',()=>{this['fire']('submit',this['value']);}),_0xb12149['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x40c37c,_0x2c19c9)=>!_0x2c19c9&&!!_0x40c37c['trim']()),_0xb12149;}['_createCancelButton'](){const {locale:_0x2fe056}=this,_0x34c3e4=new _0x4231dd(_0x2fe056);return _0x34c3e4['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x34c3e4['label']=S(_0x2fe056,'Cancel'),_0x34c3e4['withText']=!0x0,_0x34c3e4['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x34c3e4;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x376549=>{this['focusTracker']['add'](_0x376549['element']);}),this['focusables']['on']('change',(_0x4eb367,_0x37920b)=>{for(const _0x586f33 of Array['from'](_0x37920b['added'])['reverse']())this['focusTracker']['add'](_0x586f33['element']);});}}class ie extends kt{constructor(_0x9f8eb9,_0x20ff28,_0x258d9e){super(_0x9f8eb9),this['commentInputView']=new os(_0x9f8eb9,_0x258d9e),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2e2e5f,_0x5a8c81)=>_0x2e2e5f||!!_0x5a8c81),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 _0xf339d0(_0x9f8eb9,_0x20ff28),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'](_0x2fb47a){this['commentInputView']['focus'](_0x2fb47a);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x4a5e55,_0x103ed1)=>{const {submitButtonView:_0x499a98,cancelButtonView:_0x1eca45,editor:_0x34d41d}=this['commentInputView'];[_0x499a98['element'],_0x1eca45['element'],_0x34d41d?_0x34d41d['editing']['view']['getDomRoot']():null]['filter'](_0xfc3bc3=>_0xfc3bc3)['some'](_0x57bf10=>_0x57bf10['contains'](_0x103ed1['target']))||(this['focus'](),_0x103ed1['preventDefault']());});}}class cs extends kt{constructor(_0xa86883){super(_0xa86883);const _0x186449=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x186449['to']('count',_0x594cc9=>S(_0xa86883,'NUMBER_OF_COMMENTS',_0x594cc9))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x28a4d4,_0x19a5d8,_0x1c7a58){super(_0x28a4d4);const _0x8e5582=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x19a5d8['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x19a5d8,this['_config']=_0x1c7a58,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x3063bc(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2646ce=>this['commentViews']['map'](_0x4ae66f=>_0x4ae66f['element'])['includes'](_0x2646ce['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x28a4d4),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x184fc9=>_0x184fc9-this['_config']['maxCommentsWhenCollapsed']);for(const _0x2a2fcf of _0x19a5d8['comments'])this['_handleNewCommentModel'](_0x2a2fcf);this['_handleInfoComment'](),this['listenTo'](_0x19a5d8['comments'],'add',(_0x1f8d08,_0x15ea21)=>{const _0x75e5a4=this['_calculatePosition'](_0x15ea21);this['length']++,this['_handleNewCommentModel'](_0x15ea21,_0x75e5a4),this['refreshVisibleViews']();}),this['listenTo'](_0x19a5d8['comments'],'remove',(_0x1cc6cc,_0x5bd19d)=>{this['length']--,this['_handleRemoveCommentModel'](_0x5bd19d),this['refreshVisibleViews']();}),this['listenTo'](_0x19a5d8,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x19a5d8,'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',_0x8e5582['if']('length','ck-hidden',_0x1533b4=>!_0x1533b4)],'aria-label':S(_0x28a4d4,'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'](_0x37b923){-0x1===_0x37b923?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x250148 of this['commentViews'])_0x250148['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x24b3a9,_0x541e11){const _0x16bb60=new this['_config']['CommentView'](this['locale'],_0x24b3a9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x16bb60['viewUid']=_0x24b3a9['id'],_0x16bb60['delegate']('removeComment')['to'](this),_0x16bb60['delegate']('updateComment')['to'](this),_0x16bb60['delegate']('resolveCommentThread')['to'](this),_0x16bb60['delegate']('editorReady')['to'](this),_0x16bb60['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x16bb60,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x16bb60,_0x541e11);}['_calculatePosition'](_0x4cbd5b){const _0x3d26d0=this['_model']['_findOptimalIndex'](_0x4cbd5b);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x4cbd5b['authoredAt']?_0x3d26d0-0x1:_0x3d26d0:_0x3d26d0-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x494c85={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x494c85,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x494c85));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0xdc660e){const _0x1285dd=this['commentViews']['remove'](_0xdc660e['id']);this['stopListening'](_0x1285dd),_0x1285dd['isEditMode']&&this['_updateHasDirtyComment'](),_0x1285dd['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x49f43c=>_0x49f43c['isEditMode']);}['_rearrangeCollapse'](){const _0x109bf9=function(_0x4890da){const _0x4f5e50=new _0x4f7a0b();for(const _0x2666aa of _0x4890da)_0x4f5e50['add'](_0x2666aa);return _0x4f5e50;}(this['commentViews']),_0x40931f=this['_collapsedCommentsView']['count'];for(let _0x21d33a=0x1;_0x21d33a<=_0x40931f;_0x21d33a++)_0x109bf9['remove'](0x1);for(const _0x1ec726 of _0x109bf9)_0x1ec726['collapse']();_0x40931f>0x0&&_0x109bf9['add'](this['_collapsedCommentsView'],0x1),as(_0x2b0115(Array['from'](this['visibleViews']),Array['from'](_0x109bf9)),this['visibleViews'],_0x109bf9);}['_rearrangeExpand'](){as(_0x2b0115(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x146ddc of this['visibleViews'])_0x146ddc['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x1742db=>{this['focusTracker']['add'](_0x1742db['element']),this['keystrokes']['listenTo'](_0x1742db['element']);}),this['commentViews']['on']('change',(_0x4a9784,_0x5684df)=>{for(const _0x4c711c of _0x5684df['removed'])this['focusTracker']['remove'](_0x4c711c['element']),this['keystrokes']['stopListening'](_0x4c711c['element']);for(const _0xdf62c7 of Array['from'](_0x5684df['added'])['reverse']())this['focusTracker']['add'](_0xdf62c7['element']),this['keystrokes']['listenTo'](_0xdf62c7['element']);});}}function as(_0x274dc9,_0x13fdf9,_0x5246d3){let _0x157e93=0x0;for(const _0x14c54a of _0x274dc9)switch(_0x14c54a){case'insert':_0x13fdf9['add'](_0x5246d3['get'](_0x157e93),_0x157e93),_0x157e93++;break;case'delete':_0x13fdf9['remove'](_0x157e93);break;case'equal':_0x157e93++;}}class ls extends kt{constructor(_0x1aec6c){super(_0x1aec6c);const _0x1b4cb5=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x1b4cb5['to']('contextValue',_0x58a662=>S(_0x1aec6c,'THREAD_CONTEXT_LABEL',_0x58a662)),'tabindex':-0x1},'children':[{'text':_0x1b4cb5['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x378631,_0x2f8a91){super(_0x378631);const _0x4ac89d=this['bindTemplate'];this['_model']=_0x2f8a91,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x3063bc(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x2ef5ba=>!!_0x2ef5ba),this['bind']('contextValue')['to'](this['_model'],'context',_0x37906a=>_0x37906a&&_0x37906a['value']?this['_trimContextValue'](_0x37906a['value']):S(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',_0x4ac89d['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 _0x288b00=new _0x4231dd(this['locale']);return _0x288b00['label']=S(this['locale'],'Reopen'),_0x288b00['tooltip']=S(this['locale'],'Reopen'),_0x288b00['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x288b00['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x18ece2=>!_0x18ece2),_0x288b00['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5d7ba2,_0x10a439)=>_0x5d7ba2&&_0x10a439),_0x288b00['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x288b00;}['_trimContextValue'](_0x552601){if(_0x552601['length']<0x96)return _0x552601;const _0x1ed462=_0x552601['lastIndexOf']('\x20',0x93);return _0x552601['substring'](0x0,_0x1ed462>-0x1?_0x1ed462:0x93)+'...';}['_attachContextActions'](){const _0x564512=this['element']['querySelector']('.ck-context'),_0x6acfef=_0x564512['querySelector']('.ck-context__value');this['listenTo'](_0x564512,'mouseenter',()=>{_0x6acfef['offsetWidth']<_0x6acfef['scrollWidth']&&_0x564512['classList']['add']('overlay');}),this['listenTo'](_0x564512,'mouseleave',()=>{_0x564512['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x4c22c4 of this['focusables'])this['focusTracker']['add'](_0x4c22c4['element']),this['keystrokes']['listenTo'](_0x4c22c4['element']);}['_createContextView'](){const _0x318c11=new ls(this['locale']);return _0x318c11['bind']('contextValue')['to'](this),_0x318c11;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2fbca2,_0x283beb,_0xbee36b,_0x342e9c){super(_0x2fbca2),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x283beb,this['_localUser']=_0xbee36b,this['_config']=_0x342e9c,this['commentThreadHeaderView']=new Zt(_0x2fbca2,_0x283beb),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x2fbca2,S(_0x2fbca2,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2fbca2,_0x283beb,Object['assign']({'CommentView':this['_config']['CommentView']},_0x342e9c)),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',(_0x14c9c1,_0x149d56)=>_0x14c9c1||!!_0x149d56),this['bind']('isUnlinked')['to'](_0x283beb,'unlinkedAt',_0x113fbc=>!!_0x113fbc),this['bind']('ariaLabel')['to'](this,'length',_0x1a1da3=>{const _0xea6822=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x1a1da3,_0xea6822]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x3063bc(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5b5c5f=>_0x5b5c5f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x662b08(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x8e4804=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5581d3=_0x8e4804['commentInputView'];return _0x8e4804['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x5581d3,'value',(_0x18118a,_0x27bf03,_0x72edb,_0x55afe1,_0xce6545)=>!!_0xce6545||!!_0x55afe1&&_0x72edb&&!_0x27bf03||_0x18118a&&_0x72edb&&!_0x27bf03),_0x5581d3['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1cb42f,_0x240838,_0x72a4c5)=>{let _0x492b4a;return _0x492b4a=_0x72a4c5&&_0x240838?'Reply\x20to\x20reopen\x20discussion...':_0x1cb42f?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x492b4a);}),_0x5581d3['bind']('submitLabel')['to'](this,'length',_0x4abf01=>S(this['locale'],_0x4abf01?'Reply':'Comment')),_0x5581d3['on']('submit',(_0xc6e1d6,_0x502da3)=>{this['fire']('addComment',_0x502da3),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x5581d3['on']('cancel',()=>{this['focus']();}),_0x5581d3['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5581d3['on']('cancel',_0x5e7f4a=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x5e7f4a['stop']());}),this['on']('change:isActive',(_0x1752d3,_0x1c1489,_0x9c752)=>{_0x9c752||this['length']||_0x5581d3['value']||this['fire']('removeCommentThread');}),_0x8e4804;}}class vt extends/* #__PURE__ -- @preserve */
27
- ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x245e50,_0x117057,_0x4b21e0,_0x5022ab){super(_0x245e50,_0x117057,_0x4b21e0,_0x5022ab),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x245e50,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x1cdd40,_0x18b652,_0x80d65f)=>{_0x80d65f||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x22750a,_0x202584,_0x3f12c9)=>{_0x3f12c9&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5b9415=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x5b9415['if']('isActive','ck-thread--active'),_0x5b9415['if']('isUnlinked','ck-thread--unlinked'),_0x5b9415['if']('isConfirm','ck-thread--remove-confirmation'),_0x5b9415['to']('actionIndicator',_0x5c07cb=>_0x5c07cb?'ck-thread--'+_0x5c07cb:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x5b9415['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 _0x5d26de of this['commentsListView']['commentViews'])_0x5d26de['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x5f3852}=this,_0x5c874f=this['commentsListView']['commentViews']['get'](0x0);_0x5c874f===this['_boundFirstCommentView']||_0x5c874f['isSystemComment']||(this['_boundFirstCommentView']=_0x5c874f,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x5c874f,'actionIndicator',_0x2026e9=>'remove'===_0x2026e9?'remove':null),_0x5c874f['placeholder']=S(_0x5f3852,'Write\x20a\x20comment...'),_0x5c874f['removeButton']['on']('execute',_0x258139=>{_0x258139['stop'](),this['showConfirm'](S(_0x5f3852,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x5c874f['focus']();}),_0x5c874f['actionBar']['add'](this['resolveButton'],0x0),_0x5c874f['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x286d7e=new _0x1a6d8e(this['locale']);return _0x286d7e['label']=S(this['locale'],'Resolve'),_0x286d7e['tooltip']=S(this['locale'],'Resolve'),_0x286d7e['icon']=_0x1c4b06['check'],_0x286d7e['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x286d7e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x34704f=>!_0x34704f),_0x286d7e['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2e9fb4,_0x549d2b)=>_0x2e9fb4&&!_0x549d2b),_0x286d7e['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x286d7e;}['_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 hs extends kt{constructor(_0x3c2b82){super(_0x3c2b82),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x382875,_0x582a2f,_0x5407ca)=>{this['element']['innerHTML']=_0x5407ca;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x559815,_0x16b5bd,_0x30db87){super(_0x559815),this['_model']=_0x16b5bd,this['_config']=_0x30db87,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x16b5bd,'content',_0x16b5bd,'authoredAt',(_0x44ddec,_0x3f8548)=>S(_0x559815,'COMMENT_ARIA_LABEL',[_0x16b5bd['author']['name'],_0x30db87['formatDateTime'](_0x3f8548),new DOMParser()['parseFromString'](_0x44ddec,'text/html')['body']['textContent'],_0x16b5bd['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x559815,S(_0x559815,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x42f832(),this['focusTracker']=new _0x3063bc(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3791d1=>_0x3791d1['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']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x19b444=new hs(this['locale']);return _0x19b444['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x462339,_0x45d61c)=>_0x45d61c?_0x380949(_0x462339,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x462339),_0x19b444;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x3dc7d0=new os(this['locale'],this['_config']['editorConfig']);return _0x3dc7d0['value']=this['_model']['content'],_0x3dc7d0['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3dc7d0['submitLabel']=S(this['locale'],'Save'),_0x3dc7d0['on']('submit',(_0x49f65,_0x2d1152)=>{this['fire']('updateComment',this['_model']['id'],_0x2d1152),this['switchToDisplayMode'](),this['focus']();}),_0x3dc7d0['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x3dc7d0['once']('editorReady',()=>{_0x3dc7d0['focus']();}),_0x3dc7d0['createEditor'](),_0x3dc7d0['delegate']('editorReady')['to'](this),_0x3dc7d0['delegate']('editorDestroyed')['to'](this),_0x3dc7d0;}['_setupKeyboardNavigation'](){const _0xef9871=this['element'];this['keystrokes']['listenTo'](_0xef9871);for(const _0x569e4e of this['focusables'])this['focusTracker']['add'](_0x569e4e['element']),this['keystrokes']['listenTo'](_0x569e4e['element']);this['focusables']['on']('change',(_0xb69c25,_0x3f99e5)=>{for(const _0x5c8377 of _0x3f99e5['removed'])this['focusTracker']['remove'](_0x5c8377['element']),this['keystrokes']['stopListening'](_0x5c8377['element']);for(const _0x10d6d6 of _0x3f99e5['added'])this['focusTracker']['add'](_0x10d6d6['element']),this['keystrokes']['listenTo'](_0x10d6d6['element']);}),this['keystrokes']['set']('enter',(_0x5e560d,_0x3c9e33)=>{_0xef9871===_0x5e560d['target']&&(this['focusCycler']['focusFirst'](),_0x3c9e33());}),this['keystrokes']['set']('esc',(_0x54965b,_0x5ed4da)=>{_0xef9871!==_0x54965b['target']&&(this['focus'](),_0x5ed4da());});}}class gt extends/* #__PURE__ -- @preserve */
28
- ti(rs){['actionBar'];['userView'];constructor(_0x2e7970,_0x2abf00,_0x98c19c){super(_0x2e7970,_0x2abf00,_0x98c19c),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x2e7970,'Reply...')),this['bind']('authoredAt')['to'](_0x2abf00),this['bind']('resolvedAt')['to'](_0x2abf00),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 _0xf339d0(_0x2e7970,_0x2abf00['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2abf00,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2b820c=this['bindTemplate'],_0x2f284c=[{'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':_0x2b820c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b820c['to']('authoredAt',_0x267985=>this['_config']['formatDateTime'](_0x267985))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2b820c['if']('isEditMode','ck-comment__actions--hidden'),_0x2b820c['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']&&_0x2f284c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x2b820c['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x2b820c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2b820c['if']('isEditMode','ck-comment--edit'),_0x2b820c['if']('isSystemComment','ck-comment--info'),_0x2b820c['to']('actionIndicator',_0x8a2b87=>_0x8a2b87?'ck-comment--'+_0x8a2b87:'')],'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':_0x2f284c}]}]};}['_createEditButton'](){const _0x327bf7=new _0x4231dd(this['locale']);return _0x327bf7['label']=S(this['locale'],'Edit'),_0x327bf7['icon']=_0x1c4b06['pencil'],_0x327bf7['withText']=!0x0,_0x327bf7['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x327bf7['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x555e34=>!_0x555e34),_0x327bf7['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x327bf7['on']('execute',()=>this['switchToEditMode']()),_0x327bf7;}['_createRemoveButton'](){const _0x4f9899=new _0x4231dd(this['locale']);return _0x4f9899['label']=S(this['locale'],'Remove'),_0x4f9899['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x4f9899['withText']=!0x0,_0x4f9899['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x4f9899['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xe9f1c4=>!_0xe9f1c4),_0x4f9899['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x4f9899['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x4f9899;}['_createDropdown'](){const _0x184c3f=_0x10e593(this['locale'],_0x2174ec),_0x3386d9=_0x184c3f['panelView']['children'],_0x178df0=new _0x1261ac(this['locale']),_0x383156=_0x184c3f['bindTemplate'];_0x4218ce(_0x184c3f,()=>this['items']['find'](_0x4c0cfa=>_0x4c0cfa['isVisible'])),_0x184c3f['extendTemplate']({'attributes':{'class':[_0x383156['if']('isVisible','ck-hidden',_0x8523cd=>!_0x8523cd)]}});const _0x1dfeac=(_0x242fbd,_0x501763=-0x1)=>{const _0x578494=new _0xab93ff(this['locale']);_0x578494['children']['add'](_0x242fbd);const _0x3e97ba=_0x501763>-0x1?_0x501763:_0x178df0['items']['length'];_0x178df0['items']['add'](_0x578494,_0x3e97ba);const _0x35106a=Array['from'](this['items']);_0x184c3f['unbind']('isEnabled','isVisible'),_0x184c3f['bind']('isEnabled')['toMany'](_0x35106a,'isEnabled',(..._0x50d644)=>_0x50d644['some'](_0x307e4a=>_0x307e4a)),_0x184c3f['bind']('isVisible')['toMany'](_0x35106a,'isVisible',(..._0x29dc8c)=>_0x29dc8c['some'](_0x7c07c4=>_0x7c07c4));};_0x184c3f['panelPosition']='sw',_0x184c3f['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x1c4b06['threeVerticalDots']});for(const _0x5891df of this['items'])_0x1dfeac(_0x5891df);return _0x3386d9['add'](_0x178df0),_0x184c3f['listenTo'](this['items'],'add',(_0x556879,_0x2102a3,_0x1dca19)=>{_0x1dfeac(_0x2102a3,_0x1dca19);}),_0x184c3f['listenTo'](this['items'],'remove',(_0x3c1a76,_0x285755,_0x403a4f)=>{_0x178df0['items']['remove'](_0x403a4f);}),_0x184c3f;}['_attachActions'](_0x45534e,_0x3d8eb8){const _0x50cf4e=_0x45534e&&_0x45534e['element'];_0x50cf4e&&(this['listenTo'](_0x50cf4e,'mouseenter',()=>this['actionIndicator']=_0x3d8eb8),this['listenTo'](_0x50cf4e,'focus',()=>this['actionIndicator']=_0x3d8eb8),this['listenTo'](_0x50cf4e,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x50cf4e,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x9f5447=super['_createCommentInputView']();return _0x9f5447['bind']('placeholder')['to'](this),_0x9f5447;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x44151c){const _0x1e8985=Dt(_0x44151c,0x1e),_0x2c1c68=new MutationObserver(_0x5bcee5=>{for(const _0x114e28 of _0x5bcee5)('attributes'==_0x114e28['type']&&'class'==_0x114e28['attributeName']||'childList'==_0x114e28['type']||'characterData'==_0x114e28['type'])&&_0x1e8985();});return{'attach'(_0x45a4a9){_0x2c1c68['observe'](_0x45a4a9,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2c1c68['disconnect'](),_0x1e8985['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x304aa9,_0x1c24d2){super(_0x304aa9),this['id']=_0x3dd4f9(),this['focusTracker']=new _0x3063bc(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x2b04dd,_0x2e60e8)=>this['fire']('Esc',_0x2e60e8)),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']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x1c24d2),this['mainView']=_0x1c24d2;const _0x3d572f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x3d572f['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 _0x561fd1=this['element']['clientHeight'];_0x561fd1&&(this['height']=_0x561fd1);}}class d extends/* #__PURE__ -- @preserve */
29
- _0x11850d(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x565d96,target:_0x3ae4e2,type:_0x3c549b,isVisible:_0x47f0bf=!0x0}){super(),this['view']=_0x565d96,this['view']['element']||this['view']['render'](),this['_type']=_0x3c549b,this['_target']=_0x3ae4e2,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x4f7a0b([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x564b74,_0x570478)=>{this['view']['focusTracker']['add'](_0x570478);}),this['focusableElements']['on']('remove',(_0x51683d,_0x17d762)=>{this['view']['focusTracker']['remove'](_0x17d762);}),this['set']('isVisible',_0x47f0bf);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x500ac2=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x500ac2),_0x500ac2;}get['targetRect'](){const _0x4d6013=this['target'];if(null===_0x4d6013)return null;if(_0x4d6013 instanceof _0x572963)return _0x4d6013;const _0xccf969=_0x4d6013['filter'](_0x211ad8=>function(_0x3e2e85){const _0x3b734b=_0x3e2e85['offsetParent'];if(_0x3b734b)return!0x0;const _0x526a95=_0x3e2e85['getClientRects']()['item'](0x0);return!!_0x526a95;}(_0x211ad8));return 0x0===_0xccf969['length']?null:new _0x572963(_0xccf969[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5b4405){this['view']['isActive']=_0x5b4405,this['view']['mainView']['isActive']=_0x5b4405;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x5a65d5){if(!(null===_0x5a65d5||_0x5a65d5 instanceof _0x572963||Array['isArray'](_0x5a65d5)&&_0x5a65d5['every'](_0x1cc278=>ne(_0x1cc278))))throw new _0x2c2a61('annotation-invalid-target',null,{'target':_0x5a65d5});}['_getNormalizedTarget'](){const _0x1d3ba5='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x1d3ba5)?[_0x1d3ba5]:_0x1d3ba5;}}function ne(_0x53d899){return null!==_0x53d899&&'object'==typeof _0x53d899&&'nodeType'in _0x53d899&&0x1===_0x53d899['nodeType'];}class x extends _0x4f7a0b{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x5ba22d=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x3063bc(),this['_focusTracker']['on']('change:isFocused',(_0x2812a7,_0x9e4d7c,_0x5d86bc)=>{_0x5d86bc||this['fire']('blur');});for(const _0x1f83c6 of _0x5ba22d)this['add'](_0x1f83c6);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x3f099c){if(this['has'](_0x3f099c))throw new _0x2c2a61('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x3f099c['innerView'],_0x3f099c),this['_viewToAnnotation']['set'](_0x3f099c['view'],_0x3f099c);for(const _0x1c9260 of _0x3f099c['focusableElements'])this['_focusTracker']['add'](_0x1c9260);this['listenTo'](_0x3f099c['focusableElements'],'add',(_0x1e8486,_0x4d50aa)=>{this['_focusTracker']['add'](_0x4d50aa);}),this['listenTo'](_0x3f099c['focusableElements'],'remove',(_0x258a47,_0x2ec8a3)=>{this['_focusTracker']['remove'](_0x2ec8a3);}),this['listenTo'](_0x3f099c['view']['focusTracker'],'change:isFocused',(_0x3d09c8,_0xcee32b,_0x2dff00)=>{_0x2dff00&&this['fire']('focus',_0x3f099c);}),_0x3f099c['updateTargetRect']();const _0x3939b1=this['_getOrderInContent'](_0x3f099c['view']['targetRect']);return super['add'](_0x3f099c,_0x3939b1);}['remove'](_0x499316){if(!this['has'](_0x499316))throw new _0x2c2a61('annotationcollection-not-existing-item',null);this['stopListening'](_0x499316['view']['focusTracker']),this['stopListening'](_0x499316['focusableElements']);for(const _0x256960 of _0x499316['focusableElements'])this['_focusTracker']['remove'](_0x256960);return this['_viewToAnnotation']['delete'](_0x499316['view']),this['_innerViewToAnnotation']['delete'](_0x499316['innerView']),super['remove'](_0x499316);}['getByInnerView'](_0x208e18){return this['_innerViewToAnnotation']['get'](_0x208e18);}['getByView'](_0x1e485a){return this['_viewToAnnotation']['get'](_0x1e485a);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x4cc04b of this)_0x4cc04b['updateTargetRect']();this['_sort']();}['_sort'](){const _0x27d2be=Array['from'](this)['sort']((_0x5f3807,_0x5eeac3)=>v(_0x5f3807['view']['targetRect'],_0x5eeac3['view']['targetRect']));for(let _0x24cf23=_0x27d2be['length']-0x1;_0x24cf23>0x0;_0x24cf23--){const _0x21ed7f=_0x27d2be[_0x24cf23];_0x24cf23!==this['getIndex'](_0x21ed7f)&&(this['remove'](_0x21ed7f),this['add'](_0x21ed7f));}}['_getOrderInContent'](_0x4a0770){let _0x5b94fe=0x0;if(!_0x4a0770)return this['length'];for(const _0x58ce4a of this){const _0x4e0ddf=_0x58ce4a['view']['targetRect'];if(_0x4e0ddf){if(v(_0x4a0770,_0x4e0ddf)<0x0)return _0x5b94fe;_0x5b94fe++;}}return _0x5b94fe;}}function v(_0x351e64,_0x4ed126){if(null===_0x351e64&&null===_0x4ed126)return 0x0;if(null===_0x351e64)return-0x1;if(null===_0x4ed126)return 0x1;const _0x357dc8=_0x351e64['top']-_0x4ed126['top'];return 0x0==_0x357dc8?_0x351e64['left']-_0x4ed126['left']:_0x357dc8;}class N extends _0x990b8c{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29d65a){if(super(_0x29d65a),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x29d65a instanceof _0x330d17){const _0x440926=_0x29d65a['locale'];_0x29d65a['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x440926,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x440926,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x440926,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x440926,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x440926,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x440926,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x440926,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x4b43ac){this['collection']['add'](_0x4b43ac);}['remove'](_0x259021){this['collection']['remove'](_0x259021),_0x259021['destroy']();}['refreshVisibility'](){for(const _0x5724a6 of this['collection'])_0x5724a6['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x412244){return this['collection']['getByInnerView'](_0x412244);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x431aa6 of this['collection'])_0x431aa6['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x4b09fc){this['fire']('_activateAnnotation',_0x4b09fc);}['createAnnotation'](_0x2e230e){return new d(_0x2e230e);}['createAnnotationView'](_0x5233dd,_0x11ae91){return new T(_0x5233dd,_0x11ae91);}['_addActiveAnnotation'](_0x8adf80){const _0x2fb076=new Set(this['activeAnnotations']);_0x2fb076['add'](_0x8adf80),this['activeAnnotations']=_0x2fb076;}['_removeActiveAnnotation'](_0x5443dd){const _0x2b0947=new Set(this['activeAnnotations']);_0x2b0947['delete'](_0x5443dd),this['activeAnnotations']=_0x2b0947;}['_bindAnnotationsToVisibleAnnotations'](){const _0x20fbbb=this['collection'],_0x1c77db=this['_visibleAnnotations'];function _0xb74a52(_0x49bfed){const _0x308148=_0x49bfed['source'];_0x308148['isVisible']&&!_0x1c77db['has'](_0x308148)?_0x1c77db['add'](_0x308148):!_0x308148['isVisible']&&_0x1c77db['has'](_0x308148)&&_0x1c77db['remove'](_0x308148),_0x308148['view']['focusTracker']['remove'](_0x308148['view']['element']),_0x308148['view']['focusTracker']['add'](_0x308148['view']['element']);}this['listenTo'](_0x20fbbb,'add',(_0x539698,_0x388df5)=>{_0x388df5['isVisible']&&_0x1c77db['add'](_0x388df5),this['listenTo'](_0x388df5,'change:isVisible',_0xb74a52);}),this['listenTo'](_0x20fbbb,'remove',(_0x1a9860,_0x2b43b4)=>{_0x1c77db['has'](_0x2b43b4)&&_0x1c77db['remove'](_0x2b43b4),this['stopListening'](_0x2b43b4,'change:isVisible',_0xb74a52);});}['_setupEnterAnnotationKeystroke'](){const _0x1c86c2=_0x8bbf78=>{_0x8bbf78['on']('ready',()=>{_0x8bbf78['keystrokes']['set'](_0x45618f,(_0x54982e,_0x1825e8)=>{const _0x5aa96a=_0x4294c5(this['activeAnnotations']['values']());_0x5aa96a&&(_0x5aa96a['view']['focus'](),_0x1825e8());});});};this['context']instanceof _0x330d17?_0x1c86c2(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x1f6a1d,_0x2d701e)=>{_0x1c86c2(_0x2d701e);});}['_setupEscapeAnnotationHandling'](){const _0x171174=_0x47bdf5=>{const _0x1accdb=_0x47bdf5['source'],_0xa64b97=[];let _0x2705d0;if(Array['isArray'](_0x1accdb['target'])){_0x2705d0=_0x1accdb['target'][0x0],this['context']instanceof _0x330d17?_0xa64b97['push'](this['context']):this['context']['editors']&&_0xa64b97['push'](...this['context']['editors']);for(const _0x175cda of _0xa64b97)for(const _0x1ac851 of _0x175cda['editing']['view']['domRoots']['values']())if(_0x1ac851['contains'](_0x2705d0))return void _0x175cda['editing']['view']['focus']();_0x2705d0['focus']();}};this['listenTo'](this['collection'],'add',(_0x568ae1,_0x110a6a)=>{this['listenTo'](_0x110a6a,'escape',_0x171174,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x41c82c,_0x123b7f)=>{this['stopListening'](_0x123b7f,'escape',_0x171174);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x990b8c{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28b798){super(_0x28b798),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x39ff0a=this['context']['config'];_0x39ff0a['define']('comments.maxCommentsWhenCollapsed',0x2),_0x39ff0a['define']('comments.maxThreadTotalWeight',0x1f4),_0x39ff0a['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x39ff0a['define']('comments.CommentThreadView',vt),_0x39ff0a['define']('comments.CommentView',gt),_0x39ff0a['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x5431fd=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x1c924f,_0x13a85a)=>this['_addCommentThread'](_0x13a85a)),this['on']('submitCommentThread',(_0x2815c0,_0x30757d)=>this['_submitCommentThread'](_0x30757d)),this['on']('resolveCommentThread',(_0x430100,_0x2cc623)=>this['_resolveCommentThread'](_0x2cc623)),this['on']('resolveCommentThread',(_0x393bfa,_0xf2ce7a)=>this['_updateActiveAnnotation'](_0xf2ce7a),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x70f259,_0x5ab581)=>this['_reopenCommentThread'](_0x5ab581)),this['on']('reopenCommentThread',(_0x528ee3,_0x427238)=>this['_updateActiveAnnotation'](_0x427238),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x272173,_0x5c12e9)=>this['_removeCommentThread'](_0x5c12e9)),this['on']('updateCommentThread',(_0x1ea5bc,_0x171518)=>this['_updateCommentThread'](_0x171518)),this['on']('updateCommentThread',(_0x3dcfec,_0x5f1227)=>this['_updateActiveAnnotation'](_0x5f1227),{'priority':'lowest'}),this['on']('addComment',(_0x47db70,_0x3da1b9)=>this['_addComment'](_0x3da1b9)),this['on']('updateComment',(_0x4b77b8,_0x1f5964)=>this['_updateComment'](_0x1f5964)),this['on']('removeComment',(_0x142a3c,_0xd74170)=>this['_removeComment'](_0xd74170)),this['on']('addComment',(_0x3dd32a,{threadId:_0xb428a4,isFromAdapter:_0x366320})=>{if(_0x366320)return;const _0x522767=this['getCommentThread'](_0xb428a4),_0x4e6c0b=_0x522767&&this['_threadToController']['get'](_0x522767);_0x4e6c0b&&_0x4e6c0b['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x5431fd,'change:activeAnnotations',(_0x3a6c1a,_0x13406c,_0x403fe2)=>{const _0x5eee8b=Array['from'](_0x403fe2)['map'](_0x1bede2=>this['_viewToController']['get'](_0x1bede2['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x5eee8b?_0x5eee8b['model']:null;});}set['adapter'](_0x1fa2d6){if(this['_adapter'])throw new _0x2c2a61('commentsrepository-adapter-already-set');this['_adapter']=_0x1fa2d6;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x42cf2a=Tt,threadId:_0x4b1185=_0x3dd4f9(),comments:_0x3482ce=[],unlinkedAt:_0x101cdd=null,resolvedAt:_0x171bca=null,resolvedBy:_0x122b40=null,target:_0x58d679=null,context:_0x191f74=null,attributes:_0x354188={},isResolvable:_0x5354df=!0x0,isSubmitted:_0x17bb89=!0x1,isFromAdapter:_0xc035a2=!0x1}={}){return this['fire'](bt('addCommentThread',_0x42cf2a),{'channelId':_0x42cf2a,'threadId':_0x4b1185,'comments':_0x3482ce,'unlinkedAt':_0x101cdd,'resolvedAt':_0x171bca,'resolvedBy':_0x122b40,'target':_0x58d679,'context':_0x191f74,'attributes':_0x354188,'isFromAdapter':_0xc035a2,'isResolvable':_0x5354df,'isSubmitted':_0x17bb89}),this['getCommentThread'](_0x4b1185);}['openNewCommentThread']({channelId:_0x53a9aa=Tt,threadId:_0x438dc5=_0x3dd4f9(),target:_0xbe563,context:_0x500bba=null,isResolvable:_0x154101=!0x0}){if(this['_readOnlyChannels']['has'](_0x53a9aa)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0xbe563)throw new _0x2c2a61('commentsrepository-missing-target');const _0x4da50f=this['addCommentThread']({'channelId':_0x53a9aa,'threadId':_0x438dc5,'target':_0xbe563,'context':_0x500bba,'isResolvable':_0x154101});if(!_0x4da50f)return null;const _0x9b1024=this['_threadToController']['get'](_0x4da50f),_0x1b6f54=_0x9b1024['view']['commentThreadInputView']['commentInputView'],_0x4f2ff8=this['context']['plugins']['get'](N),_0x27e159=_0x4f2ff8['getByInnerView'](_0x9b1024['view']);return _0x4f2ff8['activate'](_0x27e159),_0x1b6f54['once']('editorReady',()=>_0x1b6f54['focus']()),_0x4da50f;}['hasCommentThread'](_0x2b304b){if('string'!=typeof _0x2b304b)throw new _0x2c2a61('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2b304b);}['updateCommentThread']({channelId:_0x52c87f=Tt,threadId:_0x18db2c,context:_0x345ee1,unlinkedAt:_0x19a749,attributes:_0x1195ff,isFromAdapter:_0x4a6e90=!0x1}){return this['fire'](bt('updateCommentThread',_0x52c87f),{'channelId':_0x52c87f,'threadId':_0x18db2c,'context':_0x345ee1,'unlinkedAt':_0x19a749,'attributes':_0x1195ff,'isFromAdapter':_0x4a6e90}),this['getCommentThread'](_0x18db2c);}['getCommentThread'](_0x151318){if('string'!=typeof _0x151318)throw new _0x2c2a61('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x151318);}['fetchCommentThread']({channelId:_0x299bd8,threadId:_0x32e2e6}={}){const _0x119a15=this['getCommentThread'](_0x32e2e6);if(_0x119a15)return Promise['resolve'](_0x119a15);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2c2a61('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x299bd8,'threadId':_0x32e2e6})['then'](_0x48e57e=>this['hasCommentThread'](_0x32e2e6)?this['getCommentThread'](_0x32e2e6):_0x48e57e?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x299bd8},_0x48e57e)):void 0x0)['catch'](_0x38f874=>{throw console['error'](_0x38f874),new _0x2c2a61('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x1f4e0d,skipNotAttached:_0x2793ab=!0x1,skipEmpty:_0xf69e3b=!0x1,toJSON:_0x51678a=!0x1}={}){const _0x34cf9c=[];for(const _0x12348f of this['_threads']['values']())_0x1f4e0d&&_0x12348f['channelId']!==_0x1f4e0d||_0x2793ab&&!_0x12348f['isAttached']||_0xf69e3b&&0x0===_0x12348f['length']||_0x34cf9c['push'](_0x12348f);return _0x51678a?_0x34cf9c['map'](_0xb270b6=>_0xb270b6['toJSON']()):_0x34cf9c;}['setActiveCommentThread'](_0x3613e5){const _0x54ab03=this['context']['plugins']['get'](N);if(!_0x3613e5)return void(this['activeCommentThread']&&_0x54ab03['deactivateAll']());const _0x4cd6f1=this['getCommentThread'](_0x3613e5);if(!_0x4cd6f1)throw new _0x2c2a61('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x3613e5});if(!this['_threadToController']['has'](_0x4cd6f1))throw new _0x2c2a61('commentsrepository-active-not-attached',null,{'threadId':_0x3613e5});const _0x4c59a5=_0x54ab03['getByInnerView'](this['_threadToController']['get'](_0x4cd6f1)['view']);_0x54ab03['activate'](_0x4c59a5);}['switchReadOnly'](_0x2dd3fa,_0x46c553){_0x2dd3fa?this['_readOnlyChannels']['add'](_0x46c553):this['_readOnlyChannels']['delete'](_0x46c553),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x59cc00){return this['_readOnlyChannels']['has'](_0x59cc00)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x44edc0,_0x2eff13){return new Ct(_0x44edc0,_0x2eff13);}['setPermissions'](_0x2e6515,_0x354436=Tt){this['_permissions']['set'](_0x354436,_0x2e6515),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x1eeb9e=Tt){return this['_permissions']['has'](_0x1eeb9e)?this['_permissions']['get'](_0x1eeb9e):_t;}['_addCommentThread']({channelId:_0x291bcb,threadId:_0x270254,comments:_0x10a58e,unlinkedAt:_0x1e0738,resolvedAt:_0x56c45e,resolvedBy:_0x476b27,target:_0x2cc9e1,context:_0x223122,attributes:_0x42126c,isFromAdapter:_0x21a962,isResolvable:_0x56fa11,isSubmitted:_0x3e291b}){if('string'!=typeof _0x270254)throw new _0x2c2a61('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x270254});if(this['hasCommentThread'](_0x270254))throw new _0x2c2a61('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x270254});const _0x4c3ec6=new oe(this,{'channelId':_0x291bcb,'id':_0x270254,'context':_0x223122,'attributes':_0x42126c,'unlinkedAt':_0x1e0738,'resolvedAt':_0x56c45e,'resolvedBy':_0x476b27?this['context']['plugins']['get'](it)['getUser'](_0x476b27):null,'isResolvable':_0x56fa11,'isSubmitted':_0x3e291b||_0x21a962});this['_threads']['set'](_0x270254,_0x4c3ec6);for(const _0x5f593e of _0x10a58e)_0x4c3ec6['_add'](this['_createNewComment']({'threadId':_0x270254,..._0x5f593e}));return _0x2cc9e1&&_0x4c3ec6['attachTo'](_0x2cc9e1),_0x21a962||!_0x4c3ec6['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x291bcb,'threadId':_0x270254});}['_submitCommentThread']({channelId:_0x147594,threadId:_0x4c23f8}){if(!this['hasCommentThread'](_0x4c23f8))throw new _0x2c2a61('commentsrepository-missing-comment-thread',this);const _0x3ffcb5=this['getCommentThread'](_0x4c23f8);if(_0x3ffcb5['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x1482bf,comments:_0x320e30,resolvedAt:_0x22ac56,resolvedBy:_0x445e05,context:_0x59c6cd,attributes:_0x3ae857}=_0x3ffcb5,_0x44fce3=this['context']['plugins']['get']('PendingActions'),_0x104c31=_0x44fce3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x147594,'threadId':_0x1482bf,'comments':_0x320e30['map'](_0x1eee17=>_0x1eee17['toJSON']()),'resolvedAt':_0x22ac56,'resolvedBy':_0x445e05?_0x445e05['id']:_0x445e05,'context':_0x59c6cd,'attributes':_0x3ae857})['then'](({comments:_0x286951})=>{_0x44fce3['remove'](_0x104c31);for(const _0x322e1a of _0x286951)this['_updateComment']({'channelId':_0x147594,'threadId':_0x4c23f8,'commentId':_0x322e1a['commentId'],'createdAt':_0x322e1a['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x787707=>{throw console['error'](_0x787707),new _0x2c2a61('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x38ec1f,target:_0x4d4f54}){const _0x4b773d=this['getCommentThread'](_0x38ec1f);if(!_0x4b773d)throw new _0x2c2a61('commentsrepository-attach-missing-comment-thread',this);const _0x36eabf=this['context']['plugins']['get']('PendingActions'),_0xc2f45c=this['context']['plugins']['get'](N),_0x101913=this['_createCommentThreadView'](_0x4b773d),_0xa9004d=new Ct(_0x4b773d,_0x101913);let _0x5f0d51=null;_0x101913['on']('change:isDirty',(_0x356c3e,_0x38a6f4,_0x3fc5f8)=>{_0x3fc5f8?_0x5f0d51=_0x36eabf['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5f0d51&&(_0x36eabf['remove'](_0x5f0d51),_0x5f0d51=null);}),this['_threadToController']['set'](_0x4b773d,_0xa9004d),this['_viewToController']['set'](_0x101913,_0xa9004d);const _0x39cab0=new T(this['context']['locale'],_0x101913);_0x39cab0['bind']('length')['to'](_0x101913),_0x39cab0['bind']('isDirty')['to'](_0x101913,'isDirty',_0x101913,'length',(_0x475509,_0xc3d620)=>_0x475509||!_0xc3d620),_0x39cab0['bind']('isActive')['to'](_0x101913),_0x39cab0['type']='comment';const _0x561882=new d({'view':_0x39cab0,'target':_0x4d4f54,'type':'comment','isVisible':!_0x4b773d['archivedAt']});return _0x101913['on']('escape',()=>{_0x561882['fire']('escape');}),this['_bindAnnotationToEditors'](_0x101913,_0x561882),_0xc2f45c['add'](_0x561882),_0x561882;}['_bindAnnotationToEditors'](_0x3db819,_0x4f0d32){this['listenTo'](_0x3db819,'editorReady',(_0x20ad46,_0x15c9d7)=>{const _0x255eba=_0x15c9d7['ui']['view']['body']['bodyCollectionContainer'];_0x4f0d32['focusableElements']['add'](_0x255eba),this['context']instanceof _0x330d17&&this['context']['ui']['focusTracker']['add'](_0x255eba);},{'priority':'highest'}),this['listenTo'](_0x3db819,'editorDestroyed',(_0x4b65c3,_0xc3530)=>{const _0x2ff694=_0xc3530['ui']['view']['body']['bodyCollectionContainer'];_0x4f0d32['focusableElements']['has'](_0x2ff694)&&_0x4f0d32['focusableElements']['remove'](_0x2ff694),this['context']instanceof _0x330d17&&this['context']['ui']['focusTracker']['remove'](_0x2ff694);});}['_unbindEditors'](_0x59fc38){this['stopListening'](_0x59fc38,'editorReady'),this['stopListening'](_0x59fc38,'editorDestroyed');}['_createCommentThreadView'](_0x2e9870){const _0x4aed44=this['context']['plugins']['get'](it),{config:_0x2d0cc0,locale:_0x343ed3}=this['context'],_0xfe7b96=lt(_0x2d0cc0['get']('locale'));return new(0x0,(_0x2d0cc0['get']('comments'))['CommentThreadView'])(_0x343ed3,_0x2e9870,_0x4aed44['me'],{'editorConfig':{..._0x2d0cc0['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x2d0cc0['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x2d0cc0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2d0cc0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2d0cc0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xfe7b96,'CommentView':_0x2d0cc0['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5d0946,channelId:_0xb1ed69,resolvedAt:_0xbb524,resolvedBy:_0xfe5975,isFromAdapter:_0x4c008a}){if(!this['hasCommentThread'](_0x5d0946))throw new _0x2c2a61('commentsrepository-missing-comment-thread',null,{'threadId':_0x5d0946});const _0x30ee48=this['getCommentThread'](_0x5d0946);if(_0x30ee48['isResolved'])throw new _0x2c2a61('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5d0946});const _0x256ec4=this['context']['plugins']['get'](it);if(_0x30ee48['resolvedBy']=_0x256ec4['getUser'](_0xfe5975),_0x30ee48['resolvedAt']=_0xbb524,_0x4c008a||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x144941=this['context']['plugins']['get']('PendingActions'),_0x5a4c1e=_0x144941['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0xb1ed69,'threadId':_0x5d0946})['then'](({resolvedAt:_0x285fb4,resolvedBy:_0x262514})=>{_0x144941['remove'](_0x5a4c1e),_0x30ee48['resolvedBy']['id']!==_0x262514&&(_0x30ee48['resolvedBy']=_0x256ec4['getUser'](_0x262514)),_0x30ee48['resolvedAt']=_0x285fb4;})['catch'](_0x248431=>{throw console['error'](_0x248431),new _0x2c2a61('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x189603,channelId:_0x179156,isFromAdapter:_0x39a2e1}){if(!this['hasCommentThread'](_0x189603))throw new _0x2c2a61('commentsrepository-missing-comment-thread',null,{'threadId':_0x189603});const _0x582798=this['getCommentThread'](_0x189603);if(!_0x582798['isResolved'])throw new _0x2c2a61('commentsrepository-reopen-comment-thread',null,{'threadId':_0x189603});if(_0x582798['resolvedBy']=null,_0x582798['resolvedAt']=null,_0x39a2e1||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x6eec0a=this['context']['plugins']['get']('PendingActions'),_0x2810d1=_0x6eec0a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x179156,'threadId':_0x189603})['then'](()=>_0x6eec0a['remove'](_0x2810d1))['catch'](_0x29207a=>{throw console['error'](_0x29207a),new _0x2c2a61('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x12f1e0,isFromAdapter:_0x37adb0}){const _0x4b52af=this['getCommentThread'](_0x12f1e0);if(!_0x4b52af)throw new _0x2c2a61('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x12f1e0),this['_threads']['delete'](_0x12f1e0),!_0x4b52af['isSubmitted']||_0x37adb0||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1d900a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4ff2e3}=_0x4b52af,_0x991ff=_0x1d900a['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x4ff2e3,'threadId':_0x12f1e0})['then'](()=>_0x1d900a['remove'](_0x991ff))['catch'](_0x255603=>{throw console['error'](_0x255603),new _0x2c2a61('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x15fbac,unlinkedAt:_0xf4f895,context:_0x49040f,attributes:_0x5e14ac,isFromAdapter:_0x2ea922}){if('string'!=typeof _0x15fbac)throw new _0x2c2a61('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x15fbac});if(!this['hasCommentThread'](_0x15fbac))throw new _0x2c2a61('commentsrepository-missing-comment-thread',null,{'threadId':_0x15fbac});const _0x309e31=this['getCommentThread'](_0x15fbac);let _0x4c51d3=!0x1;if(void 0x0!==_0x49040f&&_0x309e31['context']!==_0x49040f&&(_0x309e31['context']=_0x49040f,_0x4c51d3=!0x0),void 0x0!==_0xf4f895&&_0x309e31['unlinkedAt']!==_0xf4f895&&(_0x309e31['unlinkedAt']=_0xf4f895,_0x4c51d3=!0x0),_0x5e14ac&&!wt(_0x5e14ac,_0x309e31['attributes'])&&(_0x309e31['attributes']=_0x5e14ac,_0x4c51d3=!0x0),!_0x4c51d3)return Promise['resolve']();if(!_0x309e31['isSubmitted']||_0x2ea922||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x1c6e9e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4375ce}=_0x309e31,_0x328ddf=_0x1c6e9e['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4375ce,'threadId':_0x15fbac,'context':_0x49040f,'unlinkedAt':_0xf4f895,'attributes':_0x5e14ac})['then'](()=>_0x1c6e9e['remove'](_0x328ddf))['catch'](_0x3af005=>{throw console['error'](_0x3af005),new _0x2c2a61('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x3390b9){const _0x40a0b9=this['context']['plugins']['get'](N),_0x5761b8=this['getCommentThread'](_0x3390b9);if(_0x5761b8['_isAttached']=!0x1,this['_threadToController']['has'](_0x5761b8)){const _0x2a00cb=this['_threadToController']['get'](_0x5761b8),_0x36552e=_0x2a00cb['view'],_0x1de7c3=_0x40a0b9['getByInnerView'](_0x36552e);this['_threadToController']['delete'](_0x5761b8),this['_viewToController']['delete'](_0x36552e),_0x1de7c3&&_0x40a0b9['remove'](_0x1de7c3),_0x2a00cb['destroy'](),_0x36552e['destroy']()['then'](()=>{this['_unbindEditors'](_0x36552e);});}}['_updateActiveAnnotation']({threadId:_0x3c287e,resolvedAt:_0x3f9e1a}){const _0x4d9e0e=!!_0x3f9e1a,_0x20b94e=this['context']['plugins']['get'](N),_0x30b4ea=this['getCommentThread'](_0x3c287e);if(this['_threadToController']['has'](_0x30b4ea)){const _0x5a41ad=this['_threadToController']['get'](_0x30b4ea)['view'],_0x333ea6=_0x20b94e['getByInnerView'](_0x5a41ad);_0x333ea6&&(_0x4d9e0e&&_0x20b94e['_removeActiveAnnotation'](_0x333ea6),_0x333ea6['refreshVisibility']());}}['_getExternalAuthor'](_0x3232a0){const _0x12dddf=this['context']['plugins']['get'](it),_0x3af84b=pt('external:'+_0x3232a0),_0x3de16b=_0x12dddf['getUser'](_0x3af84b);return _0x3de16b||_0x12dddf['addUser']({'id':_0x3af84b,'name':_0x3232a0});}['_createNewComment']({threadId:_0x5de019,commentId:_0x2d241d=_0x3dd4f9(),content:_0x2c20e8,authorId:_0x251f5f,createdAt:_0x1640f3,attributes:_0x2bacae}){if('string'!=typeof _0x2d241d)throw new _0x2c2a61('commentsrepository-invalid-commentid');if('string'!=typeof _0x251f5f)throw new _0x2c2a61('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2c20e8||!_0x2c20e8['trim']())throw new _0x2c2a61('commentsrepository-invalid-comment-content');const _0x19936a=this['context']['plugins']['get'](it)['getUser'](_0x251f5f);if(!_0x19936a)throw new _0x2c2a61('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x251f5f});let _0x494ab2=null,_0x116531=_0x1640f3;return _0x2bacae&&_0x2bacae['@external']&&(_0x494ab2=this['_getExternalAuthor'](_0x2bacae['@external']['authorName']),_0x116531=new Date(_0x2bacae['@external']['createdAt'])),new re(this,{'threadId':_0x5de019,'id':_0x2d241d,'author':_0x494ab2||_0x19936a,'creator':_0x19936a,'content':_0x2c20e8,'createdAt':_0x1640f3,'authoredAt':_0x116531,'attributes':_0x2bacae});}['_addComment'](_0x4479aa){let {threadId:_0x2557c2,content:_0x5506c9,attributes:_0x1a826d,isFromAdapter:_0x5d59ac}=_0x4479aa;const _0xdfb2ce=this['getCommentThread'](_0x4479aa['threadId']);if(!_0xdfb2ce)throw new _0x2c2a61('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x2be9de=this['_createNewComment'](_0x4479aa),{id:_0x19d04b}=_0x2be9de;if(_0xdfb2ce['_add'](_0x2be9de),_0x5d59ac||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0xdfb2ce['isSubmitted'])return Promise['resolve']();const _0x2e2951=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5371d0}=_0xdfb2ce,_0x351123=_0x2e2951['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1a826d||(_0x1a826d={}),this['adapter']['addComment']({'channelId':_0x5371d0,'threadId':_0x2557c2,'commentId':_0x19d04b,'content':_0x5506c9,'attributes':_0x1a826d})['then'](_0x115d01=>{_0x2e2951['remove'](_0x351123),_0x115d01&&this['_updateComment']({'channelId':_0x5371d0,'threadId':_0x2557c2,'commentId':_0x19d04b,'createdAt':_0x115d01['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x3d1fd3=>{throw console['error'](_0x3d1fd3),new _0x2c2a61('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x28f681,commentId:_0x56bc1f,content:_0x23d4f7,createdAt:_0xe467c6,attributes:_0x4782af,isFromAdapter:_0x130489}){if(void 0x0!==_0x23d4f7&&('string'!=typeof _0x23d4f7||!_0x23d4f7['trim']()['length']))throw new _0x2c2a61('commentsrepository-update-comment-invalid-content');const _0x5d9ede=this['getCommentThread'](_0x28f681),_0x175b0f=_0x5d9ede['getComment'](_0x56bc1f);if(!_0x175b0f)throw new _0x2c2a61('commentsrepository-update-missing-comment',this);let _0x645b59=!0x1;if(_0x23d4f7&&_0x23d4f7!==_0x175b0f['content']&&(_0x175b0f['isEditable']||_0x130489)&&(_0x175b0f['content']=_0x23d4f7,_0x645b59=!0x0),_0xe467c6&&_0xe467c6!==_0x175b0f['createdAt']&&(_0x175b0f['createdAt']=_0xe467c6,_0x175b0f['attributes']&&_0x175b0f['attributes']['@external']||(_0x175b0f['authoredAt']=_0xe467c6),_0x645b59=!0x0),_0x4782af&&!wt(_0x4782af,_0x175b0f['attributes'])&&(_0x175b0f['attributes']=_0x4782af,_0x645b59=!0x0),!_0x645b59)return Promise['resolve']();if(_0x5d9ede['fire']('commentUpdated'),_0x130489||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x102839=this['context']['plugins']['get']('PendingActions'),{channelId:_0x61de96}=this['getCommentThread'](_0x175b0f['threadId']),_0x569a33=_0x102839['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x61de96,'threadId':_0x28f681,'commentId':_0x56bc1f,'content':_0x23d4f7,'attributes':_0x4782af})['then'](()=>_0x102839['remove'](_0x569a33))['catch'](_0x1dc493=>{throw console['error'](_0x1dc493),new _0x2c2a61('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x28983b,commentId:_0x337633,isFromAdapter:_0x185c4a}){const _0x454292=this['getCommentThread'](_0x28983b),_0x113596=_0x454292['getComment'](_0x337633);if(!_0x113596)throw new _0x2c2a61('commentsrepository-remove-missing-comment',this);if(_0x454292['_remove'](_0x113596),_0x185c4a||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4050cb=this['context']['plugins']['get']('PendingActions'),{channelId:_0x531d4c}=_0x454292,_0x138141=_0x4050cb['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x531d4c,'threadId':_0x28983b,'commentId':_0x337633})['then'](()=>_0x4050cb['remove'](_0x138141))['catch'](_0x54b95c=>{throw console['error'](_0x54b95c),new _0x2c2a61('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
- _0x11850d(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x2685af,_0x1f526e){super();const _0x577d07=_0x1f526e['isResolvable'];this['channelId']=_0x1f526e['channelId'],this['id']=_0x1f526e['id'],this['comments']=new _0x4f7a0b(),this['_repository']=_0x2685af,this['_isAttached']=!0x1,this['_isSubmitted']=_0x1f526e['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x2685af,'_permissions',_0x2685af,'_readOnlyChannels',()=>_0x2685af['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x2685af,'_permissions',()=>_0x2685af['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x2685af,'_permissions',()=>{const _0x512fee=_0x2685af['getPermissions'](this['channelId']);return _0x512fee['write']||_0x512fee['admin'];}),this['bind']('isResolvable')['to'](_0x2685af,'_permissions',()=>_0x577d07&&_0x2685af['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x1f526e['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x34465c,_0x574f3b)=>_0x34465c?_0x574f3b?_0x34465c<_0x574f3b?_0x34465c:_0x574f3b:_0x34465c:_0x574f3b),this['set']('unlinkedAt',_0x1f526e['unlinkedAt']||null),this['set']('resolvedAt',_0x1f526e['resolvedAt']||null),this['set']('resolvedBy',_0x1f526e['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x555799=>!!_0x555799),this['set']('attributes',_0x1f526e['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x2627fa,_0x40fbeb)=>_0x2627fa+_0x40fbeb['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x1b141c,id:_0x3c0cb6}=this;this['_repository']['fire'](bt('submitCommentThread',_0x1b141c),{'channelId':_0x1b141c,'threadId':_0x3c0cb6});}['setUnlinkedAt'](_0x40ba13){this['_update']({'unlinkedAt':_0x40ba13});}['resolve']({resolvedAt:_0x125f3c=new Date(),resolvedBy:_0x2dcd0c=null,isFromAdapter:_0xbb7a39=!0x1}={}){const _0x4d7c42=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x421ca9,id:_0x113c38}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x421ca9),{'channelId':_0x421ca9,'threadId':_0x113c38,'resolvedAt':_0x125f3c,'resolvedBy':_0x2dcd0c||_0x4d7c42['id'],'isFromAdapter':_0xbb7a39});}['reopen']({isFromAdapter:_0x4ae08c=!0x1}={}){const {channelId:_0x51d17b,id:_0x3e178d}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x51d17b),{'channelId':_0x51d17b,'threadId':_0x3e178d,'isFromAdapter':_0x4ae08c});}['setContext'](_0x51e258){this['context']||this['_update']({'context':_0x51e258});}['setAttribute'](_0x1449be,_0x50b421){const _0x2ca433=It(this['attributes']);At(_0x2ca433,_0x1449be,_0x50b421),this['_update']({'attributes':_0x2ca433});}['removeAttribute'](_0xdf7966){const _0x16921f=It(this['attributes']);yt(_0x16921f,_0xdf7966),this['_update']({'attributes':_0x16921f});}['remove']({isFromAdapter:_0x48324f=!0x1}={}){const {channelId:_0x3c197a,id:_0x3047aa}=this;this['_repository']['fire'](bt('removeCommentThread',_0x3c197a),{'channelId':_0x3c197a,'threadId':_0x3047aa,'isFromAdapter':_0x48324f});}['attachTo'](_0x1a7c18){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x1a7c18});}['addComment'](_0x25286c){const {channelId:_0x563b20,id:_0x5e2480}=this;this['_repository']['fire'](bt('addComment',_0x563b20,_0x5e2480),Object['assign']({'channelId':_0x563b20,'threadId':_0x5e2480},_0x25286c));}['getComment'](_0x4c7f21){if('string'!=typeof _0x4c7f21)throw new _0x2c2a61('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x4c7f21});return this['comments']['get'](_0x4c7f21);}['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'](_0x1358a3=>_0x1358a3['toJSON']()),'attributes':this['attributes']};}['_add'](_0x22f89a){return this['listenTo'](_0x22f89a,'change:authoredAt',()=>{const _0x2661f6=this['_findOptimalIndex'](_0x22f89a),_0xa5ae3=this['comments'];_0x2661f6-0x1!=_0xa5ae3['getIndex'](_0x22f89a)&&_0x2661f6+0x1!=_0xa5ae3['getIndex'](_0x22f89a)&&(this['_remove'](_0x22f89a),this['_add'](_0x22f89a));}),this['comments']['add'](_0x22f89a,this['_findOptimalIndex'](_0x22f89a));}['_update'](_0x5db9ee){const {channelId:_0x11bc07,id:_0x4b11bd}=this;this['_repository']['fire'](bt('updateCommentThread',_0x11bc07),{..._0x5db9ee,'channelId':_0x11bc07,'threadId':_0x4b11bd});}['_remove'](_0x1edb54){return this['stopListening'](_0x1edb54),_0x1edb54['destroy'](),this['comments']['remove'](_0x1edb54);}['_findOptimalIndex'](_0x28ffae){const _0x6d854=this['comments']['find'](_0x10d009=>new Date(_0x10d009['authoredAt'])['getTime']()>new Date(_0x28ffae['authoredAt'])['getTime']());return _0x6d854?this['comments']['getIndex'](_0x6d854):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
- _0x11850d(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0xc13674,_0x52aedc){super();const _0x4208ad=_0xc13674['context']['plugins']['get'](it)['me'],_0x2d7532=_0xc13674['getCommentThread'](_0x52aedc['threadId']),_0x8e66ed=0x0===_0x2d7532['comments']['length'],_0x4822a8=_0x4208ad===_0x52aedc['author'];this['id']=_0x52aedc['id'],this['threadId']=_0x52aedc['threadId'],this['author']=_0x52aedc['author'],this['creator']=_0x52aedc['creator'],this['isExternal']=Boolean(_0x52aedc['attributes']&&_0x52aedc['attributes']['@external']),this['set']('content',_0x52aedc['content']),this['createdAt']=_0x52aedc['createdAt']||new Date(),this['set']('authoredAt',_0x52aedc['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2d7532,'resolvedAt'),this['set']('attributes',_0x52aedc['attributes']||{}),this['bind']('isEditable')['to'](_0xc13674,'_permissions',()=>{const _0x4972c1=_0xc13674['getPermissions'](_0x2d7532['channelId'])['write'],_0x70ba32=_0xc13674['getPermissions'](_0x2d7532['channelId'])['modifyAll'];return _0x4822a8&&_0x4972c1||!_0x4822a8&&_0x70ba32;}),this['bind']('isRemovable')['to'](_0x2d7532,'isRemovable',_0xc13674,'_permissions',_0x395cb6=>{const _0x3c4053=_0xc13674['getPermissions'](_0x2d7532['channelId'])['write'],_0x5178ae=_0xc13674['getPermissions'](_0x2d7532['channelId'])['modifyAll'];return _0x4822a8&&_0x3c4053||_0x395cb6&&_0x8e66ed||!_0x4822a8&&_0x5178ae&&!_0x8e66ed;}),this['bind']('isReadOnly')['to'](_0x2d7532,'isReadOnly'),this['_repository']=_0xc13674;}get['weight'](){return Math['max'](function(_0xe7bfb9){const _0x2bf2d1=document['createElement']('div');return _0x2bf2d1['innerHTML']=_0xe7bfb9,_0x2bf2d1['textContent']['length'];}(this['content']),0xc8);}['update'](_0x563b21){const {threadId:_0x2f5669,id:_0x40a0d7}=this;if(!this['_repository']['hasCommentThread'](_0x2f5669))throw new _0x2c2a61('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x24710b}=this['_repository']['getCommentThread'](_0x2f5669);this['_repository']['fire'](bt('updateComment',_0x24710b,_0x2f5669),{'channelId':_0x24710b,'threadId':_0x2f5669,'commentId':_0x40a0d7,..._0x563b21});}['setAttribute'](_0x381ae8,_0x10b816){const _0x5628e3=It(this['attributes']);At(_0x5628e3,_0x381ae8,_0x10b816),this['update']({'attributes':_0x5628e3});}['removeAttribute'](_0x303e09){const _0xda45dc=It(this['attributes']);yt(_0xda45dc,_0x303e09),this['update']({'attributes':_0xda45dc});}['remove'](_0x3001d2={}){if(!_0x3001d2['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x41e1d2,id:_0xf66ca0}=this;if(!this['_repository']['hasCommentThread'](_0x41e1d2))throw new _0x2c2a61('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x53fb6d}=this['_repository']['getCommentThread'](_0x41e1d2);this['_repository']['fire'](bt('removeComment',_0x53fb6d,_0x41e1d2),{'channelId':_0x53fb6d,'threadId':_0x41e1d2,'commentId':_0xf66ca0,..._0x3001d2});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x50f363,..._0x2da698){for(const _0x1201e5 of _0x2da698)void 0x0!==_0x1201e5&&(_0x50f363+=':'+String(_0x1201e5));return _0x50f363;}class J extends _0x3805d3{['refresh'](){const _0x146ff0=this['editor']['model']['document']['selection'];for(const _0x11b860 of _0x146ff0['getRanges']())if(this['_hasContent'](_0x11b860))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x488ed8=_0x3dd4f9()}={}){const _0xf5959=this['editor']['model'],_0x12d5b9=[];for(const _0x56c308 of _0xf5959['document']['selection']['getRanges']())this['_hasContent'](_0x56c308)&&_0x12d5b9['push'](this['_trimToContent'](_0x56c308));_0xf5959['change'](_0xfd9d41=>{for(const _0x25198a of _0x12d5b9){const _0x5a312a=_0x3dd4f9()['substr'](0x1,0x5),_0x570525='comment:'+_0x488ed8+':'+_0x5a312a;_0xfd9d41['addMarker'](_0x570525,{'range':_0x25198a,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3e2c53){for(const _0x444c5e of _0x3e2c53['getItems']())if(this['_itemIsContent'](_0x444c5e))return!0x0;return!0x1;}['_itemIsContent'](_0x429c49){return _0x429c49['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x429c49)&&!_0x429c49['is']('element','tableCell');}['_trimToContent'](_0x2fe32a){const _0x97c9ef=_0x3e57b4=>!this['_itemIsContent'](_0x3e57b4['item']),_0x372685=_0x2fe32a['start']['getLastMatchingPosition'](_0x97c9ef),_0x54fb28=_0x2fe32a['end']['getLastMatchingPosition'](_0x97c9ef,{'direction':'backward'});return this['editor']['model']['createRange'](_0x372685,_0x54fb28);}}class P extends _0x5ed257{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1de517){super(_0x1de517),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3d2869=this['editor'],_0x54f119=_0x3d2869['model']['document']['selection'],_0xa20a95=_0x497022(()=>this['refreshSelectedViews'](),0xa);_0x54f119['on']('change:range',(_0x544943,_0x2f0929)=>{_0x2f0929['directChange']&&(_0xa20a95['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3d2869['editing']['view']['document'],'change:isFocused',(_0x39bcd1,_0x4cc156,_0x476fa5)=>{_0x476fa5&&_0xa20a95();}),this['listenTo'](_0x3d2869['ui']['focusTracker'],'change:isFocused',(_0x7c5c8d,_0x527aed,_0x3d0b27)=>{_0x3d0b27||_0x3d2869['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x2733e9=>this['_editorAnnotationsData']['has'](_0x2733e9['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0xe2abe6){if(this['_editorAnnotations']['has'](_0xe2abe6['view']))return;this['_editorAnnotations']['add'](_0xe2abe6['view']),this['editor']['ui']['focusTracker']['add'](_0xe2abe6['view']['element']);const _0x636fbd=this['editor']['plugins']['get'](N);this['listenTo'](_0x636fbd['collection'],'remove',(_0x23b12e,_0x806fee)=>{this['editor']['ui']['focusTracker']['remove'](_0x806fee['view']['element']),this['_editorAnnotations']['delete'](_0x806fee['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x310de0){if('function'!=typeof _0x310de0)throw new _0x2c2a61('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x310de0);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x383bed,annotations:_0x21524d}){const _0x200605=[],_0x69f0fa=this['editor']['model']['document']['selection'],_0x21fb1e=Array['from'](_0x69f0fa['getRanges']());for(const [_0x46d039,_0x590f57]of this['_editorAnnotationsData']){const _0x3fcfc1=_0x17f8c3(_0x590f57),_0x284ddf=_0x21524d['getByInnerView'](_0x46d039);_0x3fcfc1&&_0x284ddf&&_0x200605['push']({'annotation':_0x284ddf,'range':_0x3fcfc1});}function _0x17f8c3(_0x819ae7){for(const _0x43fc71 of _0x819ae7)for(const _0x22403a of _0x21fb1e)if(_0x43fc71['containsRange'](_0x22403a,!_0x69f0fa['isCollapsed']))return _0x43fc71;return null;}return _0x200605['sort']((_0x1a8115,_0x5b67aa)=>{const _0x4c93c7=_0x1a8115['range'],_0x230f77=_0x5b67aa['range'];if(!_0x4c93c7['isEqual'](_0x230f77)){if(_0x4c93c7['containsRange'](_0x230f77,!0x0))return 0x1;if(_0x230f77['containsRange'](_0x4c93c7,!0x0))return-0x1;}return _0x1a8115['annotation']==_0x383bed?-0x1:_0x5b67aa['annotation']==_0x383bed?0x1:0x0;})['map'](_0x2f7e3c=>_0x2f7e3c['annotation']);}get['_editorAnnotationsData'](){const _0x56c583=new Map();for(const _0x101ed3 of Array['from'](this['_dataCollectors']))for(const [_0x93c8c,_0x597593]of _0x101ed3())_0x56c583['set'](_0x93c8c,_0x597593);return _0x56c583;}}class st extends _0x5ed257{['afterInit'](){const _0x2610d2=this['editor'];if(!_0x2610d2['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2610d2['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x5ed257{constructor(_0x3c8289){super(_0x3c8289),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x4fecd8=this['editor'],_0x1b9555=_0x4fecd8['commands']['get']('importWord'),_0x31b1a7=_0x4fecd8['plugins']['get'](it);_0x1b9555&&(_0x1b9555['on']('execute',(_0x54959b,[,_0x341158])=>{_0x341158['collaboration_features']={'comments':!0x0,'user_id':_0x31b1a7['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x1b9555,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x398d8c,_0x327d14){const {comment_threads:_0x5c24d7}=_0x327d14;_0x5c24d7&&_0x5c24d7['forEach'](({thread_id:_0x3a42a3,comments:_0x515d2a,is_resolved:_0x2e6596})=>{const _0x449e56=new Date(),_0xbaae58=_0x515d2a['map'](({author:_0x42b5ea,content:_0x59861e,created_at:_0x12fa26})=>({'content':_0x59861e,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x449e56,'attributes':{'@external':{'authorName':_0x42b5ea,'createdAt':_0x12fa26?new Date(_0x12fa26):new Date(),'source':'importWord'}}})),_0x1fa03a=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x1fa03a,'threadId':_0x3a42a3,'comments':_0xbaae58,'resolvedAt':_0x2e6596?_0x449e56:null});});}}class at extends _0x5ed257{constructor(_0x14adb5){super(_0x14adb5),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x26aca0=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x26aca0,'contentInsertion',(_0x5e6818,_0x113cf0)=>this['_removeMarkersWithoutThreads'](_0x113cf0['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x50a369){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x50a369;const _0x47709a=this['editor']['plugins']['get']('CommentsRepository');for(const _0x132119 of _0x50a369['keys']()){const [_0x5df900,_0x289c57]=_0x132119['split'](':');'comment'!=_0x5df900||_0x47709a['hasCommentThread'](_0x289c57)||_0x50a369['delete'](_0x132119);}return _0x50a369;}['_registerMarkerInClipboardPipeline'](){const _0x25694e=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x489ad2=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x489ad2&&_0x25694e['_registerMarkerToCopy']('comment',_0x489ad2);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x5e6116){switch(_0x5e6116){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x5ed257{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x3045cd,_0x407150)=>{if(!_0x407150['options']['showCommentHighlights'])return null;if(_0x407150['options']['ignoreResolvedComments']){const {id:_0x59a3b2}=er(_0x3045cd['markerName']),_0x571789=this['editor']['plugins']['get'](o)['getCommentThread'](_0x59a3b2);if(_0x571789&&_0x571789['isResolved']&&_0x3045cd['item'])return _0x407150['consumable']['consume'](_0x3045cd['item'],'addMarker:'+_0x3045cd['markerName']),_0x407150['consumable']['consume'](_0x3045cd['item'],'removeMarker:'+_0x3045cd['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x23c5bd=>{_0x23c5bd['on']('addMarker:comment',(_0x5e685c,_0x5b235e,_0x40a9a9)=>{if(!_0x40a9a9['options']['showCommentHighlights'])return;const _0x89b4da=_0x5b235e['item'];if(!_0x89b4da)return;const _0x343d70=_0x40a9a9['mapper']['toViewElement'](_0x89b4da);this['editor']['model']['schema']['isObject'](_0x89b4da)&&_0x343d70&&!_0x343d70['getCustomProperty']('widget')&&_0x343d70['is']('containerElement')&&_0x578851(_0x343d70,_0x40a9a9['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2b106d,{writer:_0x246daf,options:_0x4dabab})=>{if(!_0x4dabab['showCommentHighlights'])return null;const _0xf3926e=_0x246daf['createContainerElement']('div'),_0x495606=_0x246daf['createEmptyElement']('hr');return _0x246daf['addClass']('ck-horizontal-line',_0xf3926e),_0x246daf['insert'](_0x246daf['createPositionAt'](_0xf3926e,0x0),_0x495606),_0xf3926e;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x329b08,{writer:_0x22915f,options:_0xa57eab})=>{if(!_0xa57eab['showCommentHighlights'])return null;const _0x4f90c0=_0x22915f['createContainerElement']('span'),_0x65ec98=_0x22915f['createEmptyElement']('img');return _0x22915f['addClass']('image-inline',_0x4f90c0),_0x22915f['insert'](_0x22915f['createPositionAt'](_0x4f90c0,0x0),_0x65ec98),_0x4f90c0;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x36b3c6,{writer:_0x31a3bd,options:_0x38e7c1})=>{if(_0x38e7c1['showCommentHighlights'])return _0x31a3bd['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4690ce,_0x361c0e,_0x4e63a5)=>{_0x4e63a5['options']['showCommentHighlights']&&_0x4690ce['stop']();},{'priority':'high'});}}class r extends _0x5ed257{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe40daa){super(_0xe40daa),this['set']('isThreadsLoadingPaused',!0x0),_0xe40daa['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x1a12ad,_0x4ba0b3,_0x36581c,_0x4e2f1c)=>{const _0x240da0=_0xe40daa['plugins']['get'](o),_0x42c585=_0x36581c?er(_0x36581c)['id']:null;_0xe40daa['model']['change'](()=>{if(_0x42c585){const _0x27a5b6=this['getAllMarkersForId'](_0x42c585);for(const _0x142749 of _0x27a5b6)_0xe40daa['editing']['reconvertMarker'](_0x142749);}if(_0x4e2f1c){const {id:_0x5d9073}=er(_0x4e2f1c),_0x477935=_0x240da0['getCommentThread'](_0x5d9073);if(_0x477935&&!_0x477935['isAttached'])return;const _0x3c1559=this['getAllMarkersForId'](_0x5d9073);for(const _0x1470f5 of _0x3c1559)_0xe40daa['editing']['reconvertMarker'](_0x1470f5);}}),_0x42c585&&this['scrollToThreadMarker'](_0x42c585);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2301e2=this['editor'],_0x1605cc=_0x2301e2['plugins']['get'](o),_0x2b915a=_0x2301e2['config']['get']('collaboration.channelId'),_0x309a12=_0x1605cc['getCommentThreads']()['filter'](_0x1e1f2e=>_0x1e1f2e['channelId']!==_0x2b915a);_0x2301e2['commands']['add']('addCommentThread',new J(_0x2301e2)),this['listenTo'](_0x2301e2,'change:isReadOnly',(_0x269be6,_0xe83721,_0x31961b)=>{_0x1605cc['switchReadOnly'](_0x31961b,_0x2301e2['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x1605cc,ft('addCommentThread',_0x2b915a),(_0x344fa5,{threadId:_0x48f360})=>{const _0x3d48de=this['editor']['plugins']['get'](o)['getCommentThread'](_0x48f360);_0x3d48de&&_0x3d48de['unlinkedAt']&&this['_attachArchivedThread'](_0x48f360);}),this['listenTo'](_0x1605cc,ft('removeCommentThread',_0x2b915a),(_0x392f41,{threadId:_0x560dd6})=>{_0x2301e2['model']['enqueueChange']({'isUndoable':!0x1},_0x5c7f90=>{const _0x339599=this['getAllMarkersForId'](_0x560dd6);for(const _0x5b3005 of _0x339599)_0x5c7f90['removeMarker'](_0x5b3005);});}),this['listenTo'](_0x1605cc,ft('resolveCommentThread',_0x2b915a),(_0x11b124,{threadId:_0x3a660d})=>{(this['_reconvertMarkers'](_0x3a660d),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x3a660d)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x1605cc,ft('reopenCommentThread',_0x2b915a),(_0x27841f,{threadId:_0xc7cf9b})=>{this['_reconvertMarkers'](_0xc7cf9b);},{'priority':'low'}),this['listenTo'](_0x1605cc,ft('addComment',_0x2b915a),(_0x389fa7,{threadId:_0x1c3eeb,isFromAdapter:_0x2e00d1})=>{const _0x23d18d=this['getAllMarkersForId'](_0x1c3eeb);if(_0x2e00d1||0x0==_0x23d18d['length']||!_0x1605cc['hasCommentThread'](_0x1c3eeb))return;0x1===_0x1605cc['getCommentThread'](_0x1c3eeb)['length']&&_0x2301e2['model']['enqueueChange']({'isUndoable':!0x1},_0x51d12d=>{for(const _0x512954 of _0x23d18d)_0x51d12d['updateMarker'](_0x512954,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x309a12);}['afterInit'](){!async function(_0xe4b49f){const _0x215598=_0x537503([0x52,0x53,0x37,0x56,0x6f,0x42,0x54,0x59,0x38,0x4e,0x45,0x70,0x71,0x69,0x57,0x4f,0x48,0x78,0x64,0x35,0x36,0x75,0x67,0x76,0x47,0x30,0x58,0x73,0x7a,0x46,0x43,0x74,0x63,0x4d,0x4c,0x5a,0x6c,0x79,0x55,0x61,0x62,0x41,0x51,0x6d,0x6e,0x4b,0x33,0x6a,0x39,0x50,0x44,0x6b,0x4a,0x49,0x34,0x72,0x66,0x32,0x31,0x65,0x68,0x77]),_0x34e68f=0x70d47dfb,_0x591af6=0x70d322b3^_0x34e68f,_0x3f9972=window[_0x537503([0x44,0x61,0x74,0x65])][_0x537503([0x6e,0x6f,0x77])](),_0x2b8fd1=_0xe4b49f[_0x537503([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2791bf=new window[(_0x537503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31da28=>{_0x2b8fd1[_0x537503([0x6f,0x6e,0x63,0x65])](_0x537503([0x72,0x65,0x61,0x64,0x79]),_0x31da28);}),_0x2b6c39={[_0x537503([0x6b,0x74,0x79])]:_0x537503([0x45,0x43]),[_0x537503([0x75,0x73,0x65])]:_0x537503([0x73,0x69,0x67]),[_0x537503([0x63,0x72,0x76])]:_0x537503([0x50,0x2d,0x32,0x35,0x36]),[_0x537503([0x78])]:_0x537503([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]),[_0x537503([0x79])]:_0x537503([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]),[_0x537503([0x61,0x6c,0x67])]:_0x537503([0x45,0x53,0x32,0x35,0x36])},_0x165440=_0x2b8fd1[_0x537503([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x537503([0x67,0x65,0x74])](_0x537503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x439c27(){let _0xcde654,_0x2a1f68=null,_0x1f7035=null;try{if(_0x165440==_0x537503([0x47,0x50,0x4c]))return _0x537503([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcde654=_0x58d823(),!_0xcde654)return _0x537503([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcde654[_0x537503([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f7035=_0x18deb5(_0xcde654[_0x537503([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcde654[_0x537503([0x6a,0x74,0x69])])),await _0x122414()?_0x10f735()?_0x1527d1()?_0x537503([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5728d6()?(_0xcde654[_0x537503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x537503([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a1f68=_0x224979(_0x537503([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xcde654[_0x537503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x537503([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a1f68=_0x224979(_0x537503([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e5baa()):_0x537503([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x537503([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x537503([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x419fbf){return _0x537503([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1527d1(){const _0x22e05b=[_0x537503([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x537503([0x74,0x72,0x69,0x61,0x6c])][_0x537503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcde654[_0x537503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f9972/0x3e8:0xe10*_0x591af6;return _0xcde654[_0x537503([0x65,0x78,0x70])]<_0x22e05b;}function _0x10f735(){const _0x1ff61f=_0xcde654[_0x537503([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1ff61f)return!0x1;if(_0x1ff61f[_0x537503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x537503([0x2a])))return!0x0;if(_0x1ff61f[_0x537503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x537503([0x43,0x4d,0x54])))return!0x0;if(_0x1ff61f[_0x537503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x537503([0x52,0x43,0x4d,0x54]))){if(_0x8bd6e6())return!0x0;if(_0x422a04()||_0xbc0190())return!0x0;}return!0x1;}function _0x5728d6(){const _0x3fd543=_0xcde654[_0x537503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3fd543||0x0==_0x3fd543[_0x537503([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35dfbe}=new URL(window[_0x537503([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3fd543[_0x537503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35dfbe))return!0x0;const _0xf3e8db=_0x35dfbe[_0x537503([0x73,0x70,0x6c,0x69,0x74])](_0x537503([0x2e]));return _0x3fd543[_0x537503([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x420ee8=>_0x420ee8[_0x537503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x537503([0x2a])))[_0x537503([0x6d,0x61,0x70])](_0x33e2e9=>_0x33e2e9[_0x537503([0x73,0x70,0x6c,0x69,0x74])](_0x537503([0x2e])))[_0x537503([0x73,0x6f,0x6d,0x65])](_0x253146=>_0xf3e8db[_0x537503([0x65,0x76,0x65,0x72,0x79])]((_0x2c20f0,_0x2ccc98)=>_0x253146[_0x2ccc98]===_0x2c20f0||_0x253146[_0x2ccc98]===_0x537503([0x2a])));}function _0x4e5baa(){return _0x2a1f68&&_0x1f7035?new window[(_0x537503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16646e,_0x24cff1)=>{_0x2a1f68[_0x537503([0x74,0x68,0x65,0x6e])](_0x16646e,_0x24cff1),_0x1f7035[_0x537503([0x74,0x68,0x65,0x6e])](_0x1d7367=>{_0x1d7367!=_0x537503([0x56,0x61,0x6c,0x69,0x64])&&_0x16646e(_0x1d7367);},_0x24cff1);}):_0x2a1f68||_0x1f7035||_0x537503([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18deb5(_0x38e1af,_0x49bdca){return new window[(_0x537503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb9c4ae=>{if(_0x5bb586())return _0xb9c4ae(_0x537503([0x56,0x61,0x6c,0x69,0x64]));_0x3c4e7c(),_0x2b8fd1[_0x537503([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x537503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d3b45=!0x1;const _0x4942f7=_0x3dd4f9();function _0x20b499(_0x3a04b4){return!!_0x3a04b4&&(typeof _0x3a04b4===_0x537503([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a04b4===_0x537503([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a04b4[_0x537503([0x74,0x68,0x65,0x6e])]===_0x537503([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a04b4[_0x537503([0x63,0x61,0x74,0x63,0x68])]===_0x537503([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12a194(_0x3bd3f7){_0x313475(_0x3bd3f7)[_0x537503([0x74,0x68,0x65,0x6e])](_0x3f87bf=>{if(!_0x3f87bf||_0x3f87bf[_0x537503([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x537503([0x6f,0x6b]))return _0x537503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x444bab(_0x41d9c9(_0x4942f7+_0x49bdca))!=_0x3f87bf[_0x537503([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x537503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x537503([0x56,0x61,0x6c,0x69,0x64]);})[_0x537503([0x74,0x68,0x65,0x6e])](_0x49dab7=>(_0x2e0dc2(),_0x49dab7),()=>{const _0x1cb9c2=_0x46c4ca();return null==_0x1cb9c2?(_0x2e0dc2(),_0x537503([0x56,0x61,0x6c,0x69,0x64])):_0x537503(_0x3f9972-_0x1cb9c2>(0x54d8f9fb^_0x34e68f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x537503([0x74,0x68,0x65,0x6e])](_0xb9c4ae)[_0x537503([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb9c4ae(_0x537503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4453e9=0x70e2937b^_0x34e68f;function _0x2e0dc2(){const _0x5b9999=_0x537503([0x6c,0x6c,0x63,0x74,0x2d])+_0x444bab(_0x41d9c9(_0x38e1af)),_0x5234ee=_0x260095(_0x444bab(window[_0x537503([0x4d,0x61,0x74,0x68])][_0x537503([0x63,0x65,0x69,0x6c])](_0x3f9972/_0x4453e9)));window[_0x537503([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x537503([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b9999,_0x5234ee);}function _0x46c4ca(){const _0x34cd2c=_0x537503([0x6c,0x6c,0x63,0x74,0x2d])+_0x444bab(_0x41d9c9(_0x38e1af)),_0x565ff8=window[_0x537503([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x537503([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34cd2c);return _0x565ff8?window[_0x537503([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x260095(_0x565ff8),0x10)*_0x4453e9:null;}function _0x313475(_0x270f2b){return new window[(_0x537503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x207606,_0x22fa77)=>{_0x270f2b[_0x537503([0x74,0x68,0x65,0x6e])](_0x207606,_0x22fa77),window[_0x537503([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22fa77,0x70d5a93b^_0x34e68f);});}}_0x2b8fd1[_0x537503([0x6f,0x6e])](_0x537503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x92d14b,_0x36ebe7)=>{if(_0x36ebe7[0x0]!=_0x38e1af)return _0xb9c4ae(_0x537503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36ebe7[0x1]={..._0x36ebe7[0x1],[_0x537503([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4942f7};},{[_0x537503([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x537503([0x68,0x69,0x67,0x68])}),_0x2b8fd1[_0x537503([0x6f,0x6e])](_0x537503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5837df=>{_0x20b499(_0x5837df[_0x537503([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d3b45=!0x0,_0x12a194(_0x5837df[_0x537503([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x537503([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x537503([0x6c,0x6f,0x77])}),_0x2791bf[_0x537503([0x74,0x68,0x65,0x6e])](()=>{_0x4d3b45||_0xb9c4ae(_0x537503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bb586(){return _0x2b8fd1[_0x537503([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x537503([0x76,0x69,0x65,0x77])][_0x537503([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x537503([0x61,0x75,0x74,0x6f]);}function _0x3c4e7c(){_0x2b8fd1[_0x537503([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x537503([0x76,0x69,0x65,0x77])][_0x537503([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x537503([0x61,0x75,0x74,0x6f]);}}function _0x224979(_0x4b1d54){const _0x160559=[new window[(_0x537503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3105bb=>setTimeout(_0x3105bb,0x70dd4337^_0x34e68f)),_0x2791bf[_0x537503([0x74,0x68,0x65,0x6e])](()=>new window[(_0x537503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19e4be=>{let _0x3ee447=0x0;_0x2b8fd1[_0x537503([0x6d,0x6f,0x64,0x65,0x6c])][_0x537503([0x6f,0x6e])](_0x537503([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15444c,_0x2e1051)=>{_0x2e1051[0x0][_0x537503([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3ee447++,_0x3ee447==(0x70d47c03^_0x34e68f)&&(_0x19e4be(),_0x15444c[_0x537503([0x6f,0x66,0x66])]());});}))];return window[_0x537503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x537503([0x72,0x61,0x63,0x65])](_0x160559)[_0x537503([0x74,0x68,0x65,0x6e])](()=>_0x4b1d54);}async function _0x32098d(){await _0x2791bf,_0x2b8fd1[_0x537503([0x6d,0x6f,0x64,0x65,0x6c])][_0x537503([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x255c4a,_0x2b8fd1[_0x537503([0x6d,0x6f,0x64,0x65,0x6c])][_0x537503([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x255c4a,_0x2b8fd1[_0x537503([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x537503([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8bd6e6(){return _0x4cf5a9(_0x537503([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xa5a18a(_0x537503([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x537503([0x73,0x74,0x61,0x74,0x65])]==_0x537503([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x422a04(){return _0x4cf5a9(_0x537503([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 _0xbc0190(){return _0x4cf5a9(_0x537503([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x23d2ba(_0x567d0c){const _0xd5475e=_0x347ea7();_0x2b8fd1[_0xd5475e]=_0x537503([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x567d0c,_0x567d0c!=_0x537503([0x56,0x61,0x6c,0x69,0x64])&&_0x32098d();}function _0x347ea7(){const _0x3b1466=window[_0x537503([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x537503([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x537503([0x6e,0x6f,0x77])]())[_0x537503([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x537503([0x2e]),'');let _0x34d3ce=_0x537503([0x52]);for(let _0x9c186d=0x0;_0x9c186d<_0x3b1466[_0x537503([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9c186d+=0x2){let _0x545fe2=window[_0x537503([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b1466[_0x537503([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9c186d,_0x9c186d+0x2));_0x545fe2>=_0x215598[_0x537503([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x545fe2-=_0x215598[_0x537503([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34d3ce+=_0x215598[_0x545fe2];}return _0x34d3ce;}function _0x58d823(){const _0x1c45cc=_0x165440[_0x537503([0x73,0x70,0x6c,0x69,0x74])](_0x537503([0x2e]));if(0x3!=_0x1c45cc[_0x537503([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45b93d(_0x1c45cc[0x1]);function _0x45b93d(_0x9aae48){const _0xb78296=_0x30a83a(_0x9aae48);return _0xb78296&&_0x25a25f()?_0xb78296:null;function _0x25a25f(){const _0xf4bea9=_0xb78296[_0x537503([0x6a,0x74,0x69])],_0x4973fd=window[_0x537503([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf4bea9[_0x537503([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf4bea9[_0x537503([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43e6c3={..._0xb78296,[_0x537503([0x6a,0x74,0x69])]:_0xf4bea9[_0x537503([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf4bea9[_0x537503([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43e6c3[_0x537503([0x76,0x63])],_0x41d9c9(_0x43e6c3)==_0x4973fd;}}}async function _0x122414(){let _0x47f361=!0x0;try{const _0x156a9a=_0x165440[_0x537503([0x73,0x70,0x6c,0x69,0x74])](_0x537503([0x2e])),[_0x1d93e2,_0x4fff5a,_0xbae2a6]=_0x156a9a;return _0x3f3417(_0x1d93e2),await _0x503867(_0x1d93e2,_0x4fff5a,_0xbae2a6),_0x47f361;}catch(_0x47806b){return!0x1;}function _0x3f3417(_0x4f99ce){const _0x3f8b1e=_0x30a83a(_0x4f99ce);_0x3f8b1e&&_0x3f8b1e[_0x537503([0x61,0x6c,0x67])]==_0x537503([0x45,0x53,0x32,0x35,0x36])||(_0x47f361=!0x1);}async function _0x503867(_0x1739f6,_0x5b708b,_0x202a5f){const _0x1de9e9=window[_0x537503([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x537503([0x66,0x72,0x6f,0x6d])](_0xd529f4(_0x202a5f),_0x26ec2a=>_0x26ec2a[_0x537503([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4bc5b8=new window[(_0x537503([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x537503([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1739f6+_0x537503([0x2e])+_0x5b708b),_0xe0ee7b=window[_0x537503([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x537503([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe0ee7b)return;const _0x5efbb8=await _0xe0ee7b[_0x537503([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x537503([0x6a,0x77,0x6b]),_0x2b6c39,{[_0x537503([0x6e,0x61,0x6d,0x65])]:_0x537503([0x45,0x43,0x44,0x53,0x41]),[_0x537503([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x537503([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x537503([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe0ee7b[_0x537503([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x537503([0x6e,0x61,0x6d,0x65])]:_0x537503([0x45,0x43,0x44,0x53,0x41]),[_0x537503([0x68,0x61,0x73,0x68])]:{[_0x537503([0x6e,0x61,0x6d,0x65])]:_0x537503([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5efbb8,_0x1de9e9,_0x4bc5b8)||(_0x47f361=!0x1);}}function _0x30a83a(_0x36fcfd){return _0x36fcfd[_0x537503([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x537503([0x65,0x79]))?JSON[_0x537503([0x70,0x61,0x72,0x73,0x65])](_0xd529f4(_0x36fcfd)):null;}function _0xd529f4(_0x1de061){return window[_0x537503([0x61,0x74,0x6f,0x62])](_0x1de061[_0x537503([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x537503([0x2b]))[_0x537503([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x537503([0x2f])));}function _0x41d9c9(_0x422f55){let _0x215dda=0x1505;function _0x586e39(_0x127f7e){for(let _0x4c9393=0x0;_0x4c9393<_0x127f7e[_0x537503([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c9393++){const _0x1090ce=_0x127f7e[_0x537503([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c9393);_0x215dda=(_0x215dda<<0x5)+_0x215dda+_0x1090ce,_0x215dda&=_0x215dda;}}function _0x2a62dc(_0x30b9e6){Array[_0x537503([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x30b9e6)?_0x30b9e6[_0x537503([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a62dc):_0x30b9e6&&typeof _0x30b9e6==_0x537503([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x537503([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x30b9e6)[_0x537503([0x73,0x6f,0x72,0x74])]()[_0x537503([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20f924,_0x5cd845])=>{_0x586e39(_0x20f924),_0x2a62dc(_0x5cd845);}):_0x586e39(window[_0x537503([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x30b9e6));}return _0x2a62dc(_0x422f55),_0x215dda>>>0x0;}function _0x444bab(_0x4d2500){return _0x4d2500[_0x537503([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x537503([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x537503([0x30]));}function _0x260095(_0x5ed293){return _0x5ed293[_0x537503([0x73,0x70,0x6c,0x69,0x74])]('')[_0x537503([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x537503([0x6a,0x6f,0x69,0x6e])]('');}function _0x4cf5a9(_0x14df7f){return _0x2b8fd1[_0x537503([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x537503([0x68,0x61,0x73])](_0x14df7f);}function _0xa5a18a(_0x488ae2){return _0x2b8fd1[_0x537503([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x537503([0x67,0x65,0x74])](_0x488ae2);}function _0x255c4a(){}function _0x537503(_0x1b237f){return _0x1b237f['map'](_0x12aa6e=>String['fromCharCode'](_0x12aa6e))['join']('');}_0x23d2ba(await _0x439c27());}(this);}['destroy'](){const _0x2c9c0c=this['editor']['plugins']['get'](o),_0x3e2bce=this['editor']['config']['get']('collaboration.channelId');for(const _0x52a225 of _0x2c9c0c['getCommentThreads']({'channelId':_0x3e2bce}))_0x2c9c0c['_detachCommentThread'](_0x52a225['id']),_0x2c9c0c['_threads']['delete'](_0x52a225['id']);super['destroy']();}['hasMarkerForId'](_0x50735d){return this['getAllMarkersForId'](_0x50735d)['length']>0x0;}['getAllMarkersForId'](_0x401b97){const _0x30a1f7=[];for(const _0x3f51c5 of this['editor']['model']['markers'])_0x3f51c5['name']['startsWith']('comment:'+_0x401b97)&&_0x30a1f7['push'](_0x3f51c5);return _0x30a1f7;}['scrollToThreadMarker'](_0x242054){const _0x54377c=this['_getTargetForId'](_0x242054);_0x54377c&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0x242054&&rt({'target':_0x54377c[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x568596){this['editor']['model']['change'](()=>{for(const _0x4609f5 of this['getAllMarkersForId'](_0x568596))this['editor']['editing']['reconvertMarker'](_0x4609f5);});}['_attachArchivedThread'](_0x4ecc1e){const _0x481cb4=this['editor']['plugins']['get'](o),_0x588a0b=this['editor']['plugins']['get'](P),_0x1ed0cd=_0x481cb4['getCommentThread'](_0x4ecc1e);if(!_0x1ed0cd['isAttached']){const _0x4d989a=_0x1ed0cd['attachTo'](()=>this['_getTargetForId'](_0x1ed0cd['id']));_0x588a0b['registerAnnotation'](_0x4d989a),_0x1ed0cd['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1e91ec=this['editor'],_0x2cd1fa=_0x1e91ec['plugins']['get'](it);_0x1e91ec['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1099f4,_0x1b31f6)=>{const {id:_0x3fde2d}=er(_0x1099f4['markerName']),_0x8edcf3=_0x1e91ec['plugins']['get'](o)['getCommentThread'](_0x3fde2d),_0x2389f5=this['activeMarker']&&er(this['activeMarker'])['id']===_0x3fde2d;let _0x4f64e0;if(_0x8edcf3&&_0x8edcf3['isResolved']&&!_0x2389f5&&_0x1099f4['item'])return _0x1b31f6['consumable']['consume'](_0x1099f4['item'],'addMarker:'+_0x1099f4['markerName']),_0x1b31f6['consumable']['consume'](_0x1099f4['item'],'removeMarker:'+_0x1099f4['markerName']),null;const _0x5641b3=['ck-comment-marker'];return _0x2389f5&&_0x5641b3['push']('ck-comment-marker--active'),_0x4f64e0=_0x8edcf3&&_0x8edcf3['length']?_0x8edcf3['comments']['first']['author']['id']:_0x2cd1fa['me']['id'],{'classes':_0x5641b3,'attributes':{'data-comment':_0x3fde2d,'data-author-id':_0x4f64e0}};}}),_0x1e91ec['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x296be0,{options:_0x5606fa})=>{if(_0x5606fa['showCommentHighlights'])return null;const _0x21e542=_0x1e91ec['plugins']['get'](o),_0x2ec31b=_0x1e91ec['model']['markers']['get'](_0x296be0),{id:_0x69d126,part:_0x29737a}=er(_0x296be0);if(_0x2ec31b&&!_0x2ec31b['affectsData'])return null;if(_0x5606fa['ignoreResolvedComments']){const _0x54ea27=_0x21e542['getCommentThread'](_0x69d126);if(_0x54ea27&&_0x54ea27['isResolved'])return null;}return{'group':'comment','name':_0x29737a?_0x69d126+':'+_0x29737a:_0x69d126};}}),_0x1e91ec['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x51310f,{writer:_0x3f4bf2})=>_0x3f4bf2['createElement']('$marker',{'data-name':'comment:'+_0x51310f['getAttribute']('id')})}),_0x1e91ec['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x5bc3ff=this['editor'],_0x59b626=_0x5bc3ff['plugins']['get'](o),_0x1f4623=new Set(),_0x17bf3f=new Set();_0x5bc3ff['model']['document']['registerPostFixer'](_0x111257=>{let _0x27d0c9=!0x1;for(const {name:_0x3c1640,data:_0x32c5d5}of _0x5bc3ff['model']['document']['differ']['getChangedMarkers']()){const {group:_0xb03f07,id:_0x214d78}=er(_0x3c1640);let _0x3f6547=_0x32c5d5['newRange'];if('comment'!==_0xb03f07||!_0x3f6547)continue;const _0xba682b='$graveyard'===_0x3f6547['root']['rootName'];_0xba682b||(_0x3f6547=dt(_0x3f6547,_0x5bc3ff['model']),!_0x3f6547||_0x3f6547['isCollapsed']||!_0x32c5d5['newRange']||_0x3f6547['isEqual'](_0x32c5d5['newRange']))?_0x5bc3ff['model']['hasContent'](_0x3f6547)&&!_0xba682b?this['isThreadsLoadingPaused']?_0x1f4623['add'](_0x3c1640):this['_handleThreadMarker'](_0x3c1640,_0x214d78):(_0x17bf3f['add'](_0x3c1640),_0x1f4623['delete'](_0x3c1640),_0x111257['removeMarker'](_0x3c1640),_0x27d0c9=!0x0):(_0x111257['updateMarker'](_0x3c1640,{'range':_0x3f6547}),_0x27d0c9=!0x0);}return _0x27d0c9;}),this['on']('change:isThreadsLoadingPaused',(_0x24424f,_0x3cbcf3,_0x3f8108)=>{if(!_0x3f8108&&_0x1f4623['size'])for(const _0x55ffb2 of _0x1f4623){const {id:_0x584d34}=er(_0x55ffb2);_0x1f4623['delete'](_0x55ffb2),_0x5bc3ff['model']['markers']['get'](_0x55ffb2)&&this['_handleThreadMarker'](_0x55ffb2,_0x584d34);}}),this['listenTo'](_0x5bc3ff['model']['document'],'change',()=>{for(const {name:_0x4aa7b7,data:{newRange:_0x12c3e1}}of _0x5bc3ff['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2176ed,id:_0x16bb40}=er(_0x4aa7b7);if('comment'!==_0x2176ed)continue;const _0x3d6bac=_0x59b626['getCommentThread'](_0x16bb40),_0x4cc619=this['hasMarkerForId'](_0x16bb40);_0x3d6bac&&(!_0x3d6bac['_hasTargetInContent']&&_0x12c3e1&&_0x5bc3ff['editing']['view']['once']('render',()=>{const _0x546dd6=_0x5bc3ff['plugins']['get'](N),_0x1b469a=_0x59b626['_threadToController']['get'](_0x3d6bac)['view'];_0x546dd6['getByInnerView'](_0x1b469a)['refreshVisibility']();},{'priority':'low'}),_0x3d6bac['_hasTargetInContent']=_0x4cc619||!!_0x12c3e1),_0x12c3e1||(_0x17bf3f['add'](_0x4aa7b7),_0x1f4623['delete'](_0x4aa7b7));}for(const _0x410c60 of _0x17bf3f){const {id:_0x5be4d3}=er(_0x410c60),_0x8d1541=_0x59b626['getCommentThread'](_0x5be4d3);if(_0x1f4623['delete'](_0x410c60),!_0x8d1541)continue;const _0x13b0d9=this['hasMarkerForId'](_0x5be4d3);_0x13b0d9||_0x8d1541['isSubmitted']?_0x13b0d9||_0x8d1541['unlinkedAt']||_0x8d1541['setUnlinkedAt'](new Date()):_0x8d1541['remove']();}_0x17bf3f['clear']();});}['_handleInitialThreads'](_0x21f0a4){_0x21f0a4['forEach'](_0x50ceee=>{_0x50ceee['unlinkedAt']&&this['_attachArchivedThread'](_0x50ceee['id']);});}['_getTargetForId'](_0x32ed41){const _0x1d48fc=this['editor'],_0x546406=this['getAllMarkersForId'](_0x32ed41);return et(_0x1d48fc['editing'],_0x546406);}['_getTextContext'](_0x339260){const _0xaaeb07=this['getAllMarkersForId'](_0x339260);let _0x3ee040='',_0x241dfb=!0x1;for(const _0x3fbf9a of _0xaaeb07){const _0x3c8c40=_0x3fbf9a['getRange']();for(const _0x230707 of Array['from'](_0x3c8c40['getItems']()))_0x230707['is']('$textProxy')?(_0x3ee040&&_0x241dfb&&(_0x3ee040+='\x20',_0x241dfb=!0x1),_0x3ee040+=_0x230707['data']):_0x241dfb=!0x0;_0x241dfb=!0x0;}return _0x3ee040['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x2df1c8,_0xfb34a2){const _0x4188b4=this['editor'],_0x15ae5e=_0x4188b4['plugins']['get'](o);let _0x1639c4=_0x15ae5e['getCommentThread'](_0xfb34a2);const _0x3b4ad2=_0x4188b4['config']['get']('collaboration.channelId'),_0x4cf1f2=_0x4188b4['plugins']['get'](P);if(_0x1639c4&&(_0x1639c4['unlinkedAt']&&_0x1639c4['setUnlinkedAt'](null),_0x1639c4['isAttached']))return _0x1639c4;return!this['getAllMarkersForId'](_0xfb34a2)[0x0]['managedUsingOperations']?_0x4188b4['editing']['view']['once']('render',()=>{if(_0x15ae5e['getCommentThread'](_0xfb34a2))return;const _0x5441d4=_0x4188b4['plugins']['get'](N);_0x1639c4=_0x15ae5e['openNewCommentThread']({'channelId':_0x3b4ad2,'threadId':_0xfb34a2,'target':()=>this['_getTargetForId'](_0xfb34a2),'context':{'type':'text','value':this['_getTextContext'](_0xfb34a2)}});const _0x3384c1=_0x15ae5e['_threadToController']['get'](_0x1639c4)['view'],_0x59a4e2=_0x5441d4['getByInnerView'](_0x3384c1);_0x59a4e2&&_0x4cf1f2['registerAnnotation'](_0x59a4e2);},{'priority':'low'}):_0x15ae5e['fetchCommentThread']({'channelId':_0x3b4ad2,'threadId':_0xfb34a2})['then'](_0x4fbe40=>{if('destroyed'!==_0x4188b4['state']){if(_0x1639c4=_0x4fbe40,_0x1639c4&&!_0x1639c4['isAttached']){const _0x3c6383=_0x1639c4['attachTo'](()=>this['_getTargetForId'](_0xfb34a2));_0x4cf1f2['registerAnnotation'](_0x3c6383),_0x1639c4['isResolved']&&this['_reconvertMarkers'](_0xfb34a2);}else{if(!_0x1639c4){const _0xbc072f=this['getAllMarkersForId'](_0xfb34a2);_0x4188b4['model']['change'](_0x5982f8=>{for(const _0x39d067 of _0xbc072f)_0x5982f8['removeMarker'](_0x39d067);});}}}}),_0x1639c4;}['_handleThreadMarker'](_0x58a195,_0x2da8ea){const _0x523dc8=this['_attachMarkerToThread'](_0x58a195,_0x2da8ea);_0x523dc8&&!_0x523dc8['context']&&_0x523dc8['setContext']({'type':'text','value':this['_getTextContext'](_0x2da8ea)});}['_initAriaMarkerChangeAnnouncements'](){const _0x7127c3=this['editor'];ot(_0x7127c3['model'],({left:_0x53ce71,entered:_0x3c137e})=>{for(const _0x333a08 of _0x53ce71)if(mt(_0x333a08)){_0x7127c3['ui']['ariaLiveAnnouncer']['announce'](S(_0x7127c3['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x13339d of _0x3c137e)if(mt(_0x13339d)){_0x7127c3['ui']['ariaLiveAnnouncer']['announce'](S(_0x7127c3['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x4407fb)));break;}});}}function ft(_0x56c390,_0x22647d){return _0x22647d?_0x56c390+':'+_0x22647d:_0x56c390;}function er(_0x50d767){const _0x286280=_0x50d767['split'](':');return{'group':_0x286280[0x0],'id':_0x286280[0x1],'part':_0x286280[0x2]};}function dt(_0x5409c3,_0xd60884){const _0x457149=_0xd60884['schema'],_0xd61ac9=_0xd60884['createRange'](_0x5409c3['start']);for(const _0x1c4852 of _0x5409c3['getWalker']()){const {type:_0x2e9971,item:_0x29aefb,nextPosition:_0xc1c8ad}=_0x1c4852;if('text'===_0x2e9971||_0x457149['isObject'](_0x29aefb)){const _0x5e5da5=_0xd60884['createPositionBefore'](_0x29aefb);_0xd61ac9['isCollapsed']&&(_0xd61ac9['start']=_0x5e5da5),_0xd61ac9['end']=_0xc1c8ad;}}return _0xd61ac9;}function mt(_0x631077){return'comment'===er(_0x631077['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x5ed257{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x4f784b=this['editor'],_0x3995c6=_0x4f784b['plugins']['get'](o),_0xb54d64=_0x4f784b['plugins']['get'](r),_0x1771bd=_0x4f784b['plugins']['get'](N),_0x345c6e=_0x4f784b['plugins']['get'](P);_0x4f784b['ui']['componentFactory']['add']('comment',()=>{const _0x58de41=this['_createUIButton'](_0x4231dd);return _0x58de41['tooltip']=!0x0,_0x58de41;}),_0x4f784b['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x479457)),_0x345c6e['addSourceCollector'](()=>{const _0x1524b1=[];for(const [_0x1d3aef,_0xed1d51]of _0x3995c6['_threadToController']){const _0x152a57=_0xb54d64['getAllMarkersForId'](_0x1d3aef['id']),_0x22a353=_0x152a57['map'](_0x139323=>_0x139323['getRange']());_0x152a57['length']>0x0&&_0x1524b1['push']([_0xed1d51['view'],_0x22a353]);}return _0x1524b1;}),this['listenTo'](_0x1771bd,'change:activeAnnotations',(_0x40aaa1,_0x1dd621,_0x14a4e1)=>{const _0x2f8e86=Array['from'](_0x14a4e1)['map'](_0x4dc036=>_0x4dc036['innerView'])['find'](_0x1fbdff=>_0x3995c6['_viewToController']['has'](_0x1fbdff));if(!_0x2f8e86)return void(_0xb54d64['activeMarker']=null);const _0x30c072=_0x3995c6['_viewToController']['get'](_0x2f8e86)['model']['id'],_0x161696='comment:'+_0x30c072;_0x30c072&&_0xb54d64['hasMarkerForId'](_0x30c072)?_0xb54d64['activeMarker']=_0x161696:_0xb54d64['activeMarker']&&(_0xb54d64['activeMarker']=null);}),this['listenTo'](_0x3995c6,'removeCommentThread',(_0x221723,{threadId:_0xfcdedd,isFromAdapter:_0x244c10})=>{!_0x244c10&&_0x4f784b['ui']['focusTracker']['isFocused']&&_0xb54d64['hasMarkerForId'](_0xfcdedd)&&_0x4f784b['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3995c6,'addComment',(_0x20ea72,{threadId:_0x2a3456,isFromAdapter:_0x10296b})=>{if(_0x10296b||!_0xb54d64['hasMarkerForId'](_0x2a3456)||!_0x3995c6['hasCommentThread'](_0x2a3456))return;0x1===_0x3995c6['getCommentThread'](_0x2a3456)['length']&&(_0x4f784b['editing']['view']['focus'](),_0x20ea72['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c24ed=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d8a06;for(const _0x39f83c in _0x5c24ed){const _0x38bad8=_0x39f83c,_0x3ef8e1=_0x5c24ed[_0x38bad8];if('commentsLicenseKeyValid'==_0x3ef8e1||'commentsLicenseKeyInvalid'==_0x3ef8e1||'commentsLicenseKeyExpired'==_0x3ef8e1||'commentsLicenseKeyDomainLimit'==_0x3ef8e1||'commentsLicenseKeyNotAllowed'==_0x3ef8e1||'commentsLicenseKeyEvaluationLimit'==_0x3ef8e1||'commentsLicenseKeyTrialLimit'==_0x3ef8e1||'commentsLicenseKeyUsageLimit'==_0x3ef8e1){delete _0x5c24ed[_0x38bad8],_0x4d8a06=_0x3ef8e1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4d8a06&&_0x5c24ed['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4d8a06&&_0x5c24ed['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4d8a06&&_0x5c24ed['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4d8a06&&_0x5c24ed['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4d8a06&&_0x5c24ed['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4d8a06&&_0x5c24ed['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x4d8a06&&_0x5c24ed['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x272a64){const _0x2ec32a=this['editor'],_0x402e7d=new _0x272a64(_0x2ec32a['locale']),_0x563abc=_0x2ec32a['commands']['get']('addCommentThread');return _0x402e7d['set']({'label':S(_0x2ec32a['locale'],'Comment'),'icon':xt}),_0x402e7d['bind']('isEnabled')['to'](_0x563abc),this['listenTo'](_0x402e7d,'execute',()=>{_0x2ec32a['editing']['view']['focus'](),_0x563abc['execute']();}),_0x402e7d;}}class s extends _0x5ed257{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x97e1ac){super(_0x97e1ac),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0xec8b4e,_0x138dd4,_0x5e632b)=>{_0x5e632b?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x5a3fc4,_0xf4315b]of this['editor']['commands'])_0xf4315b['affectsData']&&'addCommentThread'!==_0x5a3fc4&&_0xf4315b['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x29858b=this['editor']['editing']['view']['document'];this['listenTo'](_0x29858b,'cut',_0x29afab=>_0x29afab['stop'](),{'priority':'highest'}),this['listenTo'](_0x29858b,'clipboardInput',_0x28ccb7=>_0x28ccb7['stop'](),{'priority':'highest'}),this['listenTo'](_0x29858b,'delete',_0x188aaf=>_0x188aaf['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0xe506a4,_0x4df2d0]of this['editor']['commands'])_0x4df2d0['affectsData']&&'addCommentThread'!==_0xe506a4&&_0x4df2d0['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 M extends _0x990b8c{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x555a25){super(_0x555a25),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x52f249=this['context']['plugins']['get'](N);this['listenTo'](_0x52f249,'_activateAnnotation',(_0x39962e,_0x279847)=>{for(const _0x313da3 of this['activeUIs']){const _0x3c4a7e=this['_uis']['get'](_0x313da3);(0x0,this['_uisData']['get'](_0x313da3)['filter'])(_0x279847)&&_0x3c4a7e['setActiveAnnotation'](_0x279847);}}),this['listenTo'](_0x52f249,'_deactivateAllAnnotations',()=>{for(const _0xd0c980 of this['activeUIs']){this['_uis']['get'](_0xd0c980)['setActiveAnnotation'](null);}}),this['listenTo'](_0x52f249['_visibleAnnotations'],'add',(_0xfc201f,_0x154677)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x154677);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x41086d){return this['activeUIs']['has'](_0x41086d);}['activate'](_0x43a002,_0x17ac85=()=>!0x0){const _0x309047=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x43a002))throw new _0x2c2a61('annotationsuis-missing-ui',this,{'uiName':_0x43a002});this['isActive'](_0x43a002)&&this['deactivate'](_0x43a002),this['activeUIs']['add'](_0x43a002);const _0x352eb5=new x();!function({source:_0x4f3504,target:_0x3adcd8,filter:_0x5079c8}){for(const _0x2f7252 of _0x4f3504)_0x5079c8(_0x2f7252)&&_0x3adcd8['add'](_0x2f7252);_0x3adcd8['listenTo'](_0x4f3504,'add',(_0x1b4c09,_0x2292fd)=>{_0x5079c8(_0x2292fd)&&_0x3adcd8['add'](_0x2292fd);}),_0x3adcd8['listenTo'](_0x4f3504,'remove',(_0x1092be,_0x3fb70c)=>{_0x3adcd8['has'](_0x3fb70c)&&_0x3adcd8['remove'](_0x3fb70c);});}({'source':_0x309047['_visibleAnnotations'],'target':_0x352eb5,'filter':_0x17ac85}),this['_uisData']['set'](_0x43a002,{'collection':_0x352eb5,'filter':_0x17ac85});const _0x3f7ead=this['_uis']['get'](_0x43a002);_0x3f7ead['attach'](_0x352eb5),this['listenTo'](_0x3f7ead,'change:activeAnnotation',(_0x1fc3f9,_0x4d7b21,_0x3fb6e4,_0x22df11)=>{_0x22df11&&_0x309047['_removeActiveAnnotation'](_0x22df11),_0x3fb6e4&&_0x309047['_addActiveAnnotation'](_0x3fb6e4);});}['deactivate'](_0x5906d6){if(this['activeUIs']['delete'](_0x5906d6),!this['_uis']['has'](_0x5906d6))throw new _0x2c2a61('annotationsuis-missing-ui',this,{'uiName':_0x5906d6});const _0x2794b0=this['_uis']['get'](_0x5906d6);_0x2794b0['detach'](),this['stopListening'](_0x2794b0),this['_uisData']['get'](_0x5906d6)['collection']['destroy'](),this['_uisData']['delete'](_0x5906d6);}['switchTo'](_0x4d6aee){if(!this['_uis']['has'](_0x4d6aee))throw new _0x2c2a61('annotationsuis-missing-ui',this,{'uiName':_0x4d6aee});const _0x2d2a85=this['context']['plugins']['get'](N),_0x680782=Array['from'](_0x2d2a85['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4d6aee);const _0x4e5fd4=this['_uis']['get'](_0x4d6aee);_0x4e5fd4['setActiveAnnotation'](_0x680782),_0x4e5fd4['_setSelectedAnnotations']&&_0x680782&&_0x4e5fd4['_setSelectedAnnotations']([_0x680782]);}['deactivateAll'](){for(const _0x3faf13 of this['activeUIs'])this['deactivate'](_0x3faf13);}['register'](_0x143821,_0x38f70f){if(this['_uis']['has'](_0x143821))throw new _0x2c2a61('annotationsuis-register-already-registered');if('function'!=typeof _0x38f70f['attach']||'function'!=typeof _0x38f70f['detach']||'function'!=typeof _0x38f70f['setActiveAnnotation'])throw new _0x2c2a61('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x143821,_0x38f70f);}['refilterAnnotations'](){const _0x12abd3=this['context']['plugins']['get'](N)['collection'],_0x3a0e32=new Map(),_0x455f5c=Array['from'](this['activeUIs']);for(const _0xdb9d00 of this['activeUIs']){const _0x2ccc76=this['_uisData']['get'](_0xdb9d00)['collection'];for(const _0x1441d8 of _0x2ccc76)_0x3a0e32['set'](_0x1441d8,_0xdb9d00);}for(const _0x479f18 of _0x12abd3){const _0x445f8d=_0x3a0e32['get'](_0x479f18);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x479f18);const _0x33f8ca=_0x455f5c['find'](_0x56ab4d=>this['_uisData']['get'](_0x56ab4d)['filter'](_0x479f18));_0x445f8d!==_0x33f8ca&&(_0x445f8d&&this['_uisData']['get'](_0x445f8d)['collection']['remove'](_0x479f18),_0x33f8ca&&this['_uisData']['get'](_0x33f8ca)['collection']['add'](_0x479f18));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x58f197){const _0x229ce3=[];for(const _0x4c9f0e of this['activeUIs']){(0x0,this['_uisData']['get'](_0x4c9f0e)['filter'])(_0x58f197)&&_0x229ce3['push'](_0x4c9f0e);}if(_0x229ce3['length']>0x1)throw new _0x2c2a61('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x229ce3,'annotationType':_0x58f197['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x47a5e2){super(_0x47a5e2);const _0x574e5d=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 _0x3063bc(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x574e5d['to']('class')],'style':{'minHeight':_0x574e5d['to']('minHeight',_0x121fef=>'number'==typeof _0x121fef?he(_0x121fef+0xa):null)},'dir':_0x47a5e2['uiLanguageDirection'],'role':'application','aria-label':S(_0x47a5e2,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0x47a5e2,'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',_0x1e8295=>{this['_updateItemPositionInFocusables'](_0x1e8295['source']);}),this['list']['forEach'](_0x255734=>{this['focusTracker']['add'](_0x255734['element']),this['_updateItemPositionInFocusables'](_0x255734);}),this['list']['on']('change',(_0x70e9bd,_0x12340a)=>{for(const _0x30322b of _0x12340a['removed'])this['focusTracker']['remove'](_0x30322b['element']),this['focusables']['remove'](_0x30322b);for(const _0x15f173 of _0x12340a['added'])this['focusTracker']['add'](_0x15f173['element']),this['_updateItemPositionInFocusables'](_0x15f173);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x43cb33){const _0x3b02c=this['focusables']['getIndex'](_0x43cb33);let _0x2c9d35,_0x19e645;for(const _0x2da6fd of this['focusables'])if(_0x43cb33['top']<_0x2da6fd['top']){_0x2c9d35=_0x2da6fd;break;}if(_0x19e645=_0x2c9d35?this['focusables']['getIndex'](_0x2c9d35):this['focusables']['length'],-0x1!==_0x3b02c){if(_0x3b02c===_0x19e645-0x1)return;this['focusables']['remove'](_0x43cb33),_0x19e645=_0x2c9d35?this['focusables']['getIndex'](_0x2c9d35):this['focusables']['length'];}this['focusables']['add'](_0x43cb33,_0x19e645);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x599538){super(_0x599538),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x4b3230,_0x220f62)=>_0x4b3230+_0x220f62),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x405d1f=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x405d1f['to']('isAnimationDisabled',_0x27cfe5=>_0x27cfe5?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x405d1f['to']('top',_0x194499=>qt(_0x194499))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x212487=this['element']['clientHeight'];_0x212487&&(this['height']=_0x212487);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x990b8c{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcd6927){super(_0xcd6927),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 _0x519005=this['context']['config']['get']('sidebar.container');_0x519005&&this['setContainer'](_0x519005);}['setContainer'](_0x34057b){if(!y(_0x34057b))throw new _0x2c2a61('sidebar-setcontainer-invalid-element');this['container']=_0x34057b;}['_attachToContainer']({viewClass:_0x237189='',spaceBetweenItems:_0x124b3c=0x19}={}){if(!y(this['container']))throw new _0x2c2a61('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x237189,this['_spaceBetweenItems']=_0x124b3c;}['rearrange']({removedAnnotation:_0x233728,previousAnnotation:_0x36e5fc,nextAnnotation:_0x3bc722}){const _0x4c3350=this['getSidebarItemView'](_0x233728);this['view']['list']['remove'](_0x4c3350),this['_destroySidebarItemView'](_0x233728),_0x36e5fc&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x36e5fc)),_0x3bc722&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3bc722)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1c8a23,activatedAnnotation:_0x44d385,disableAnimationOnActivatedAnnotation:_0x4d85dd}){if(this['_activeAnnotation']=_0x44d385,_0x1c8a23){_0x1c8a23['isActive']=!0x1;const _0x5ac5e8=this['getSidebarItemView'](_0x1c8a23);_0x5ac5e8&&_0x4d85dd&&(_0x5ac5e8['isAnimationDisabled']=!0x1);}if(_0x44d385){const _0x173718=this['getSidebarItemView'](_0x44d385);_0x173718&&(_0x44d385['isActive']=!0x0,_0x4d85dd&&(_0x173718['isAnimationDisabled']=!0x0,_0x173718['top']+=0x1),this['_alignToTargetRect'](_0x173718));}}['_detachFromContainer'](_0x2d5eb7){if(this['view']['element']['remove'](),_0x2d5eb7){for(const _0x8f4570 of _0x2d5eb7)this['_destroySidebarItemView'](_0x8f4570);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x3e3122,_0x2cd1a0){_0x2cd1a0||(_0x2cd1a0=_0x3e3122['view']);const _0x12cf65=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x12cf65,_0x3e3122),this['_annotationToSidebarItemView']['set'](_0x3e3122,_0x12cf65),_0x12cf65['content']['add'](_0x2cd1a0),this['listenTo'](_0x3e3122['view'],'change:targetRect',(_0x542afb,_0x32d154,_0x390c28)=>{const _0x5e32b8=this['_getTargetTop'](_0x3e3122,_0x390c28);_0x12cf65['_targetTop']!=_0x5e32b8&&(_0x12cf65['_targetTop']=_0x5e32b8,this['_setItemTop'](_0x12cf65,_0x5e32b8));}),this['listenTo'](_0x12cf65,'change:top',()=>{this['_recalculate'](_0x12cf65,'top');}),this['listenTo'](_0x12cf65,'change:bottom',()=>{this['_recalculate'](_0x12cf65,'bottom');}),this['_alignToTargetRect'](_0x12cf65);const _0x3f7edd=this['_getItemBefore'](_0x12cf65);if(_0x3f7edd)this['_alignAfterItem'](_0x3f7edd,_0x12cf65)||this['_alignToTargetRect'](_0x12cf65);else this['_alignToTargetRect'](_0x12cf65);return this['_updateLastItem'](),this['view']['list']['add'](_0x12cf65),_0x12cf65;}['_alignForTopChange'](_0x88b0c){if(!_0x88b0c['content']['length'])return;const _0x52f5b6=this['_getItemBefore'](_0x88b0c);if(!_0x52f5b6)return;const _0x40a0cf=this['_sidebarItemViewToAnnotation']['get'](_0x52f5b6),_0x4dfe45=this['_activeAnnotation'];_0x4dfe45&&_0x4dfe45===_0x40a0cf?this['_alignAfterItem'](_0x52f5b6,_0x88b0c):this['_alignBeforeItem'](_0x88b0c,_0x52f5b6);}['_alignForBottomChange'](_0x3dd39f){if(!_0x3dd39f['content']['length'])return;const _0x440b53=this['_getItemAfter'](_0x3dd39f);if(!_0x440b53)return;const _0x29f15f=this['_sidebarItemViewToAnnotation']['get'](_0x440b53),_0x32ddec=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x52de94=this['_activeAnnotation'];_0x52de94&&_0x52de94===_0x29f15f&&_0x32ddec?(this['_alignBeforeItem'](_0x440b53,_0x3dd39f),this['_alignAfterItem'](_0x3dd39f,_0x440b53)):_0x52de94&&_0x52de94===_0x29f15f?this['_alignBeforeItem'](_0x440b53,_0x3dd39f):this['_alignAfterItem'](_0x3dd39f,_0x440b53);}['_recalculate'](_0x3648b4,_0x1b5d2f){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x4e0137,changedProp:_0x14f0f1}of this['_recalculateBuffer'])'top'===_0x14f0f1?this['_alignForTopChange'](_0x4e0137):this['_alignForBottomChange'](_0x4e0137);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x3648b4,'changedProp':_0x1b5d2f});}['getSidebarItemView'](_0xb81c09){return this['_annotationToSidebarItemView']['get'](_0xb81c09);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x5bc8f0){const _0x10c16e=this['getSidebarItemView'](_0x5bc8f0);this['stopListening'](_0x10c16e),this['stopListening'](_0x5bc8f0['view']),_0x10c16e['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x5bc8f0),this['_sidebarItemViewToAnnotation']['delete'](_0x10c16e);}['_createSidebarView'](){const _0x4920f6=new V(this['context']['locale']);return _0x4920f6['render'](),this['on']('change:_lastItem',(_0x4e6b5e,_0x428eac,_0x2f0086,_0x2263a4)=>{_0x2263a4&&_0x4920f6['unbind']('minHeight'),_0x2f0086?_0x4920f6['bind']('minHeight')['to'](_0x2f0086,'bottom'):_0x4920f6['minHeight']=null;}),_0x4920f6;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x441c4b){const _0x5186e2=this['_sidebarItemViewToAnnotation']['get'](_0x441c4b),_0x58f530=_0x5186e2&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5186e2)-0x1);return _0x58f530&&this['getSidebarItemView'](_0x58f530)||null;}['_getItemAfter'](_0xdfc1cd){const _0x186cb8=this['_sidebarItemViewToAnnotation']['get'](_0xdfc1cd),_0x1fcd72=_0x186cb8&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x186cb8)+0x1);return _0x1fcd72&&this['getSidebarItemView'](_0x1fcd72)||null;}['_alignBeforeItem'](_0x4fe065,_0x16e532){_0x4fe065['updateHeight']();const _0x545feb=R(_0x16e532['bottom']+this['_spaceBetweenItems'],_0x4fe065['top']);return!!_0x545feb&&(this['_setItemTop'](_0x16e532,_0x16e532['top']-_0x545feb),!0x0);}['_alignAfterItem'](_0x190c2c,_0x555aa3){_0x190c2c['updateHeight']();const _0x210402=R(_0x190c2c['bottom']+this['_spaceBetweenItems'],_0x555aa3['top']);return!!_0x210402&&(this['_setItemTop'](_0x555aa3,_0x555aa3['top']+_0x210402,!0x1),!0x0);}['_alignToTargetRect'](_0x189fab){const _0x57e292=this['_sidebarItemViewToAnnotation']['get'](_0x189fab);if(!_0x57e292||!_0x57e292['target']||!_0x57e292['targetRect'])return;const _0x86e94d=this['_getTargetTop'](_0x57e292,_0x57e292['targetRect']);this['_setItemTop'](_0x189fab,_0x86e94d);}['_getTargetTop'](_0x5267db,_0x3c2a49){if(null===_0x3c2a49)return 0x0;if(_0x5267db['target']instanceof _0x572963)return _0x3c2a49['top'];{const _0x546132=new _0x572963(this['view']['element'])['top'];return _0x3c2a49['top']-_0x546132;}}['_setItemTop'](_0x4d1a02,_0x4a8720,_0x147efb=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x147efb&&(_0x4a8720=Math['max'](_0x4a8720,this['_getMaxAvailableTop'](_0x4d1a02))),_0x4d1a02['top']=_0x4a8720;}['_getMaxAvailableTop'](_0x56c30f){let _0x3fc43d=this['_getItemBefore'](_0x56c30f),_0x90faed=0x0;for(;_0x3fc43d;)_0x3fc43d['updateHeight'](),_0x90faed+=this['_spaceBetweenItems']+_0x3fc43d['height'],_0x3fc43d=this['_getItemBefore'](_0x3fc43d);return _0x90faed;}}function R(_0x3ad8a1,_0x23a4aa){return Math['max'](_0x3ad8a1-_0x23a4aa,0x0);}function y(_0x79918e){return null!==_0x79918e&&'object'==typeof _0x79918e&&0x1===_0x79918e['nodeType'];}class e extends _0x990b8c{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17a00f){super(_0x17a00f),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x4f7a0b(),this['_refreshPositioningDebounced']=_0x497022(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0xce85bf=this['context']['plugins']['get'](M),_0x3de315=this['context']['plugins']['get'](z);_0xce85bf['register']('wideSidebar',this),_0x3de315['container']&&_0xce85bf['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x5e75ec){if(_0x5e75ec===this['activeAnnotation'])return;const _0x197c77=this['context']['plugins']['get'](z);_0x197c77['_activeAnnotation']=_0x5e75ec;const _0x103bae=this['activeAnnotation'];_0x197c77['refresh']({'blurredAnnotation':_0x103bae,'activatedAnnotation':_0x5e75ec}),this['activeAnnotation']=_0x5e75ec;}['attach'](_0x27fb9f){this['annotations']=_0x27fb9f;const _0x39fcc0=this['context']['plugins']['get'](z);if(_0x39fcc0['_annotations']=_0x27fb9f,this['isAttached'])throw new _0x2c2a61('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x39fcc0,'set:container',()=>{this['detach'](),this['listenTo'](_0x39fcc0,'change:container',_0x1da4c6=>{_0x1da4c6['off'](),this['attach'](_0x27fb9f);});}),_0x39fcc0['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x7cdd38=_0x448500=>{_0x448500['updateTargetRect'](),_0x39fcc0['addAnnotation'](_0x448500);};for(const _0x1f7545 of _0x27fb9f)_0x7cdd38(_0x1f7545);this['listenTo'](_0x27fb9f,'add',(_0x554861,_0x355741)=>{_0x7cdd38(_0x355741);}),this['listenTo'](_0x27fb9f,'remove',(_0x270fc9,_0x3e9f51,_0x4a1292)=>{_0x39fcc0['rearrange']({'removedAnnotation':_0x3e9f51,'previousAnnotation':_0x27fb9f['get'](_0x4a1292-0x1),'nextAnnotation':_0x27fb9f['get'](_0x4a1292+0x1)}),_0x3e9f51===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x27fb9f,'focus',(_0x20cd04,_0x49d83e)=>{this['setActiveAnnotation'](_0x49d83e);}),this['listenTo'](_0x27fb9f,'blur',()=>{this['setActiveAnnotation'](null);});const _0x110490=this['context']instanceof _0x37e3fb?this['context']['editors']:new _0x4f7a0b([this['context']]);for(const _0x2cb2aa of _0x110490)this['_integrateWithEditorAnnotations'](_0x2cb2aa);this['listenTo'](_0x110490,'add',(_0x5b3060,_0x47ebbb)=>{this['listenTo'](_0x47ebbb,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x47ebbb);});}),this['listenTo'](_0x110490,'remove',(_0x15a94b,_0x3f0a6c)=>{_0x3f0a6c['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3f0a6c['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2c2a61('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xd0a7db=this['context']['plugins']['get'](z);_0xd0a7db['_detachFromContainer'](this['annotations']),this['stopListening'](_0xd0a7db),this['stopListening'](this['annotations']),this['context']instanceof _0x37e3fb&&this['stopListening'](this['context']['editors']);for(const _0x3bd4dd of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3bd4dd);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x587ce5){if(!_0x587ce5['plugins']['has']('EditorAnnotations'))return;const _0x64fe2c=_0x587ce5['plugins']['get']('EditorAnnotations'),_0x59a128=()=>{const _0x278b56=_0x64fe2c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x278b56[0x0]||null);};this['listenTo'](_0x64fe2c,'refresh',_0x59a128),this['listenTo'](_0x64fe2c,'blur',(_0x502b8d,{isAnnotationTracked:_0x2529eb})=>{this['activeAnnotation']&&_0x2529eb(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x64fe2c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x31c940=>{_0x64fe2c['hasDomSelection']()&&(_0x59a128(),_0x31c940['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x64fe2c);}['_destroyEditorAnnotationsIntegration'](_0x355463){this['stopListening'](_0x355463),this['_editorAnnotations']['remove'](_0x355463);}}class D extends _0x4231dd{['counterView'];constructor(_0x39cc64){super(_0x39cc64);const _0x25f7f3=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x299b63,_0x134863)=>_0x299b63?'...':_0x134863['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x25f7f3['to']('annotationType',_0x3e8365=>'ck-annotation-counter__badge--'+_0x3e8365),_0x25f7f3['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x25f7f3['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x990b8c{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23b6ff){super(_0x23b6ff),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x45ec30),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x4f7a0b(),this['_refreshPositioningDebounced']=_0x497022(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x71b0c4(this['context']['locale']),this['balloonPanelView']=new _0x2a8ac2(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0xeacfa6){this['annotations']=_0xeacfa6;const _0x3ceae3=this['context']['plugins']['get'](z),_0x4906d4=this['balloonPanelView'];if(_0x3ceae3['_annotations']=_0xeacfa6,this['isAttached'])throw new _0x2c2a61('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x3ceae3,'set:container',()=>{this['detach'](),this['listenTo'](_0x3ceae3,'change:container',_0x1f4675=>{_0x1f4675['off'](),this['attach'](_0xeacfa6);});}),_0x3ceae3['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x59825f=_0x2d9c41=>{const _0x23abf7=new D(this['context']['locale']);_0x3ceae3['addAnnotation'](_0x2d9c41,_0x23abf7),this['_annotationToNarrowView']['set'](_0x2d9c41,_0x23abf7),_0x23abf7['bind']('isDirty','annotationType','number')['to'](_0x2d9c41['view'],'isDirty','type','length'),_0x23abf7['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4906d4['content']['first']!==_0x2d9c41['view']?(this['_showBalloon'](_0x2d9c41),_0x2d9c41['view']['element']['focus'](),this['setActiveAnnotation'](_0x2d9c41)):this['setActiveAnnotation'](null);});};for(const _0x226dac of _0xeacfa6)_0x59825f(_0x226dac);this['listenTo'](_0xeacfa6,'add',(_0xaec735,_0x495874)=>{_0x59825f(_0x495874);}),this['listenTo'](_0xeacfa6,'remove',(_0x3c91be,_0x4c91c2,_0x164356)=>{this['_annotationToNarrowView']['get'](_0x4c91c2)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4c91c2),_0x3ceae3['rearrange']({'removedAnnotation':_0x4c91c2,'previousAnnotation':_0xeacfa6['get'](_0x164356-0x1),'nextAnnotation':_0xeacfa6['get'](_0x164356+0x1)}),_0x4c91c2===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0xeacfa6,'focus',(_0x5e1a95,_0x567cd7)=>{this['setActiveAnnotation'](_0x567cd7);}),this['listenTo'](_0xeacfa6,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x27869c,_0x2939d8)=>{_0x2939d8['keyCode']===_0x27de6b['esc']&&_0x4906d4['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x4906d4['content']['first']),this['_hideBalloon'](),_0x2939d8['stopPropagation'](),_0x2939d8['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x39aed1,_0x5f57d9)=>{const _0x42dba5=_0x5f57d9['target'];_0x4906d4['isVisible']&&_0x4906d4['element']['contains'](_0x42dba5)||_0x3ceae3['view']['element']['contains'](_0x42dba5)||_0x39aed1['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x5a5643=>_0x5a5643['contains'](_0x42dba5))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1333fd=this['context']instanceof _0x37e3fb?this['context']['editors']:new _0x4f7a0b([this['context']]);for(const _0x3b63b3 of _0x1333fd)this['_integrateWithEditorAnnotations'](_0x3b63b3);this['listenTo'](_0x1333fd,'add',(_0x3693c6,_0x101733)=>{this['listenTo'](_0x101733,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x101733);});}),this['listenTo'](_0x1333fd,'remove',(_0x3d9cb1,_0xcae059)=>{_0xcae059['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xcae059['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0xe461eb){if(_0xe461eb===this['activeAnnotation'])return;const _0x169563=this['context']['plugins']['get'](z);if(_0x169563['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0xe461eb,'disableAnimationOnActivatedAnnotation':!0x0}),_0xe461eb)_0x169563['getSidebarItemView'](_0xe461eb)?this['_showBalloon'](_0xe461eb):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0xe461eb;}['detach'](){if(!this['isAttached'])throw new _0x2c2a61('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5752c1=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x1aa986=>_0x1aa986['destroy']()),this['_annotationToNarrowView']['clear'](),_0x5752c1['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x37e3fb&&this['stopListening'](this['context']['editors']);for(const _0x5b2e4e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5b2e4e);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'](_0x389cef){if(!_0x389cef['plugins']['has']('EditorAnnotations'))return;const _0x286617=_0x389cef['plugins']['get']('EditorAnnotations'),_0x463c59=this['context']['plugins']['get'](z),_0x7f616a=this['annotations'],_0x34c54c=this['balloonPanelView'],_0x15df45=()=>{const _0x1f210e=_0x286617['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1f210e),this['setActiveAnnotation'](_0x1f210e[0x0]||null);};this['listenTo'](_0x286617,'refresh',_0x15df45),this['listenTo'](_0x286617,'blur',(_0x5a5966,{isAnnotationTracked:_0x5d56e4})=>{this['activeAnnotation']&&_0x5d56e4(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x286617,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x7f616a,'blur',_0x34bba7=>{_0x286617['hasDomSelection']()&&_0x34bba7['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x52f0cf,_0x1cf873)=>{const _0x53a1d5=_0x1cf873['target'];_0x34c54c['isVisible']&&_0x34c54c['element']['contains'](_0x53a1d5)||_0x463c59['view']['element']['contains'](_0x53a1d5)||this['activeAnnotation']&&_0x286617['hasDomSelection']()&&(_0x15df45(),_0x52f0cf['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x286617);}['_destroyEditorAnnotationsIntegration'](_0x402a10){_0x402a10&&(this['stopListening'](_0x402a10),this['_editorAnnotations']['remove'](_0x402a10));}['_setSelectedAnnotations'](_0x50b9b8){for(const _0x439475 of this['_selectedAnnotations'])_0x50b9b8['includes'](_0x439475)||this['_manuallyClosedAnnotationViews']['delete'](_0x439475['view']);this['_selectedAnnotations']=_0x50b9b8;}['_refreshPositioning'](){const _0x3567c4=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x3567c4['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x119551){if(this['_manuallyClosedAnnotationViews']['has'](_0x119551['view']))return;const _0x5d21a7=this['balloonPanelView']['content']['first'];_0x5d21a7!==_0x119551['view']?(_0x5d21a7&&this['_detachListeners'](_0x5d21a7),this['_attachListeners'](_0x119551['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x119551['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x378010=this['balloonPanelView']['content']['first'],_0x20ae70=_0x378010&&this['annotations']['getByView'](_0x378010);if(!_0x20ae70||!this['_annotationToNarrowView']['has'](_0x20ae70))return;const _0x5c30d1=this['_annotationToNarrowView']['get'](_0x20ae70)['element'],_0x7ac312=(function(){const _0x379184=_0x2a8ac2['defaultPositions'];return[_0x379184['southArrowNorthEast'],_0x379184['northArrowSouthEast'],_0x379184['southArrowNorth'],_0x379184['northArrowSouth'],_0x379184['southArrowNorthWest'],_0x379184['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5c30d1,'positions':_0x7ac312});}['_hideBalloon'](){const _0x2dbc36=this['balloonPanelView'],_0x2b27f5=_0x2dbc36['content']['first'];_0x2b27f5&&(this['_detachListeners'](_0x2b27f5),_0x2dbc36['unpin'](),_0x2dbc36['content']['clear']());}['_attachListeners'](_0x270678){this['listenTo'](_0x270678,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x270678,'Esc',(_0x4f3b9c,_0x3a0a67)=>{this['_manuallyClosedAnnotationViews']['add'](_0x270678),this['_hideBalloon'](),_0x3a0a67();});}['_detachListeners'](_0x32855c){this['stopListening'](_0x32855c);}}class c extends _0x5ed257{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x35e8a1,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b2ae7){super(_0x4b2ae7),_0x4b2ae7['editing']['view']['addObserver'](_0x38a0a1),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x4b2ae7['plugins']['get'](_0x35e8a1),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x5c8594=this['editor']['plugins']['get'](M);_0x5c8594['context']===this['editor']&&(_0x5c8594['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xd68194,_0xbfa782)=>{const _0x1fe9df=this['_balloon'];if(this['isAttached']&&_0x1fe9df['visibleView']){const _0x5144ef=this['annotations']['getByView'](_0x1fe9df['visibleView']);_0x5144ef&&this['_closeAnnotation'](_0x5144ef),_0xbfa782();}}));}['afterInit'](){const _0x532877=this['editor']['plugins']['get'](M);_0x532877['context']===this['editor']&&(_0x532877['hasActive']()||_0x532877['switchTo']('inline'));}['setActiveAnnotation'](_0x12931b){_0x12931b!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x12931b&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x12931b)&&this['_addAnnotationToBalloon'](_0x12931b,!0x0),_0x12931b['isActive']=!0x0),_0x12931b||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x12931b);}['attach'](_0x59b89d){this['annotations']=_0x59b89d;const _0x4227ef=this['editor']['plugins']['get'](M),_0x263252=this['_balloon'];if(this['isAttached'])throw new _0x2c2a61('inlineannotations-attach-already-attached',this);if(_0x4227ef['context']!==this['editor'])throw new _0x2c2a61('inlineannotations-not-allowed-with-context',this);const _0x476b49=this['editor']['plugins']['get'](P);this['listenTo'](_0x476b49,'refresh',()=>{const _0xb84e51=_0x476b49['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x18ee50,_0x388658;!this['_forceRefresh']&&(_0x18ee50=_0xb84e51,_0x388658=this['_selectedAnnotations'],_0x18ee50['length']===_0x388658['length']&&_0x18ee50['every'](_0x70469=>_0x388658['includes'](_0x70469)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0xb84e51),this['setActiveAnnotation'](_0xb84e51[0x0]||null));}),this['listenTo'](_0x476b49,'blur',(_0x2b92b0,{isAnnotationTracked:_0x56348b})=>{this['activeAnnotation']&&_0x56348b(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x27efbe,_0x49d02f,_0x2026fe)=>{_0x2026fe||this['setActiveAnnotation'](null);}),this['listenTo'](_0x59b89d,'remove',(_0x2dc558,_0x315357)=>{this['_removeAnnotationFromBalloon'](_0x315357),_0x315357===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x263252,'change:visibleView',(_0x4e2f7d,_0x27fedd,_0x1c5cfa,_0x8f97d0)=>{_0x8f97d0&&this['stopListening'](_0x8f97d0);const _0xf094eb=_0x59b89d['getByView'](_0x1c5cfa);_0x1c5cfa&&_0xf094eb&&(this['listenTo'](_0x1c5cfa,'change:height',()=>{_0x263252['updatePosition']();}),this['listenTo'](_0x1c5cfa,'Esc',()=>{this['_closeAnnotation'](_0xf094eb),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xf094eb&&this['setActiveAnnotation'](_0xf094eb));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x263252['visibleView']&&(_0x59b89d['getByView'](_0x263252['visibleView'])&&_0x263252['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 _0x2c2a61('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x6d37a0 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x6d37a0);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x5e630){for(const _0x587698 of this['_selectedAnnotations'])_0x5e630['includes'](_0x587698)||this['_manuallyClosed']['delete'](_0x587698);for(const _0x3df038 of this['annotations'])_0x5e630['includes'](_0x3df038)||this['_removeAnnotationFromBalloon'](_0x3df038);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x14aa09 of _0x5e630)this['_addAnnotationToBalloon'](_0x14aa09);}this['_selectedAnnotations']=_0x5e630;}['_addAnnotationToBalloon'](_0x1df868,_0x28aa78=!0x1){this['_manuallyClosed']['has'](_0x1df868)||(this['_addedAnnotations']['has'](_0x1df868)||this['_balloon']['hasView'](_0x1df868['view'])||(this['_addedAnnotations']['add'](_0x1df868),this['_balloon']['add']({'stackId':_0x1df868['view']['id'],'view':_0x1df868['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x1df868)}})),_0x28aa78&&this['_balloon']['showStack'](_0x1df868['view']['id']));}['_getBalloonTargetForAnnotation'](_0x11af9e){const _0x41040a=_0x11af9e['target'],_0x2e3063=this['editor']['editing']['view'],_0x38eb7c=_0x2e3063['document']['selection']['getFirstRange'](),_0x59b43e=_0x2e3063['domConverter']['viewRangeToDom'](_0x38eb7c);if(_0x59b43e['collapse'](!0x0),_0x41040a){if(_0x41040a instanceof _0x572963)return _0x41040a;let _0x2af2d6=[];for(const _0x2a7312 of _0x41040a)_0x2af2d6['push'](...(_0x517820=_0x2a7312['getClientRects'](),Array['from'](_0x517820)['map'](DOMRect['fromRect'])));_0x2af2d6=function(_0x9f723f){const _0x3e4240=[];let _0x56cdc2=_0x9f723f[0x0];for(let _0x58c11b=0x1;_0x58c11b<_0x9f723f['length'];_0x58c11b++)b(_0x56cdc2,_0x9f723f[_0x58c11b])?_0x56cdc2['width']+=_0x9f723f[_0x58c11b]['width']:(_0x3e4240['push'](_0x56cdc2),_0x56cdc2=_0x9f723f[_0x58c11b]);return _0x3e4240['push'](_0x56cdc2),_0x3e4240;}(_0x2af2d6);const _0x13702b=_0x59b43e['getBoundingClientRect']();return _0x2af2d6['find'](_0x2ec4f7=>_0x2ec4f7['top']<=_0x13702b['top']&&_0x2ec4f7['bottom']>=_0x13702b['bottom']&&_0x2ec4f7['left']<=_0x13702b['left']&&_0x2ec4f7['right']>=_0x13702b['right'])||_0x2af2d6[0x0];}var _0x517820;return _0x11af9e['targetRect']||_0x59b43e;}['_removeAnnotationFromBalloon'](_0x118d50){this['_addedAnnotations']['has'](_0x118d50)&&this['_balloon']['hasView'](_0x118d50['view'])&&(this['_addedAnnotations']['delete'](_0x118d50),this['_balloon']['remove'](_0x118d50['view']));}['_closeAnnotation'](_0x38d7ca){this['_manuallyClosed']['add'](_0x38d7ca),this['_removeAnnotationFromBalloon'](_0x38d7ca);}}function b(_0xb85dc1,_0xc90b6a){return _0xb85dc1['top']===_0xc90b6a['top']&&_0xb85dc1['bottom']===_0xc90b6a['bottom']&&_0xb85dc1['right']===_0xc90b6a['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0xb5782a,_0xecd226){super(_0xb5782a),this['set']('isEmpty',!_0xecd226['length']),this['focusTracker']=new _0x3063bc(),this['_annotationViews']=_0xecd226,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0xecd226,'focusTracker':this['focusTracker']}),this['listenTo'](_0xecd226,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0xecd226,'remove',(_0x411945,_0x518473)=>{_0x518473['isActive']&&this['focus'](),_0xecd226['length']||(this['isEmpty']=!0x0);});const _0x4c7a0b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0xb5782a,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0xecd226},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4c7a0b['if']('isEmpty','ck-hidden',_0x24b5d7=>!_0x24b5d7)]},'children':[{'text':S(_0xb5782a,'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 _0x38f21e of this['_annotationViews'])this['focusTracker']['add'](_0x38f21e['element']);this['_annotationViews']['on']('change',(_0x23fe96,{added:_0x248c25,removed:_0xf300ae})=>{for(const _0x4dacd2 of _0x248c25)this['focusTracker']['add'](_0x4dacd2['element']);for(const _0x456d07 of _0xf300ae)this['focusTracker']['remove'](_0x456d07['element']);});}}class f extends _0x990b8c{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x3b7efb){super(_0x3b7efb),this['archivedThreads']=new _0x4f7a0b();}['init'](){const _0x3447dd=this['context'],_0x3f73bf=_0x3447dd['plugins']['get'](o),_0x2438b1=_0x3447dd['plugins']['get'](N);this['listenTo'](_0x3f73bf,'addCommentThread',(_0x371b8c,{threadId:_0x4b0bc5})=>{const _0x195aa7=_0x3f73bf['getCommentThread'](_0x4b0bc5);_0x195aa7['archivedAt']&&this['archivedThreads']['add'](_0x195aa7,this['_calculatePosition'](_0x195aa7['archivedAt'])),this['listenTo'](_0x195aa7,'change:archivedAt',(_0x51569e,_0x2a68d8,_0x30bf5b)=>{_0x30bf5b?this['archivedThreads']['has'](_0x195aa7)||this['archivedThreads']['add'](_0x195aa7,this['_calculatePosition'](_0x195aa7['archivedAt'])):this['archivedThreads']['has'](_0x195aa7)&&this['archivedThreads']['remove'](_0x195aa7);});}),this['listenTo'](_0x3f73bf,'removeCommentThread',(_0x30fe8a,{threadId:_0x4be937})=>{const _0x2429f6=_0x3f73bf['getCommentThread'](_0x4be937);this['stopListening'](_0x2429f6),this['archivedThreads']['has'](_0x2429f6)&&this['archivedThreads']['remove'](_0x2429f6);},{'priority':'highest'}),this['listenTo'](_0x2438b1['collection'],'focus',(_0x5860b2,_0xcca575)=>{_0xcca575['isVisible']||(_0xcca575['isActive']=!0x0,_0x2438b1['activate'](_0xcca575));});}['_calculatePosition'](_0x255a62){const _0x32680b=[...this['archivedThreads']]['findIndex'](_0x125611=>_0x125611['archivedAt']<_0x255a62);return _0x32680b>-0x1?_0x32680b:this['archivedThreads']['length'];}}class a extends _0x5ed257{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x572c38];}constructor(_0x3f6a90){super(_0x3f6a90),this['annotationViews']=new _0x42f832(),this['_pendingThreads']=[];}['init'](){const _0x79da75=this['editor'],_0x36eb2f=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x79da75['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x4231dd,!0x0)),_0x79da75['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x28601f=this['_createCommentsArchiveButton'](_0x479457);return _0x28601f['set']({'role':'menuitemcheckbox'}),_0x28601f;});const _0x1d8c33=_0x79da75['plugins']['get'](f),_0x7bd243=_0x79da75['plugins']['get']('Annotations'),_0x203ce5=_0x79da75['plugins']['get']('CommentsRepository');_0x1d8c33['archivedThreads']['forEach'](_0x3b1663=>{this['_handleNewThread'](_0x3b1663);}),this['listenTo'](_0x1d8c33['archivedThreads'],'add',(_0x330e70,_0x2b2bd5)=>{this['_handleNewThread'](_0x2b2bd5);}),this['listenTo'](_0x7bd243['collection'],'add',(_0x49676f,_0x54e22f)=>{const _0x29ea43=this['_pendingThreads']['find'](_0x55f381=>{const _0x3c0a36=_0x203ce5['_threadToController']['get'](_0x55f381);return _0x3c0a36&&_0x54e22f['innerView']===_0x3c0a36['view'];});if(_0x29ea43){const _0x30fafa=this['_calculatePosition'](_0x29ea43['archivedAt']);this['annotationViews']['add'](_0x54e22f['view'],_0x30fafa),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x29ea43),0x1);}}),this['listenTo'](_0x1d8c33['archivedThreads'],'remove',(_0x14a19c,_0x562c4d)=>{const _0x21b94a=_0x79da75['config']['get']('collaboration.channelId');if(!_0x21b94a||_0x562c4d['channelId']===_0x21b94a){const _0x4b371a=_0x203ce5['_threadToController']['get'](_0x562c4d),_0x551a84=_0x7bd243['getByInnerView'](_0x4b371a['view']);this['annotationViews']['remove'](_0x551a84['view']),this['stopListening'](_0x551a84['focusableElements']);}}),this['listenTo'](_0x7bd243['collection'],'add',(_0x19c545,_0x459aa9)=>{this['listenTo'](_0x459aa9,'escape',_0x36eb2f);}),this['listenTo'](_0x7bd243['collection'],'remove',(_0x249a78,_0x24f154)=>{this['stopListening'](_0x24f154,'escape',_0x36eb2f);});}['_handleNewThread'](_0x35c451){const _0x354e4d=this['editor']['plugins']['get']('CommentsRepository'),_0x36e2ec=this['editor']['plugins']['get']('Annotations'),_0x31b3c0=this['editor']['config']['get']('collaboration.channelId');if(!_0x31b3c0||_0x35c451['channelId']===_0x31b3c0){const _0x297f81=_0x354e4d['_threadToController']['get'](_0x35c451);if(!_0x297f81)return void this['_pendingThreads']['push'](_0x35c451);const _0x281102=this['_calculatePosition'](_0x35c451['archivedAt']),_0x1c4670=_0x36e2ec['getByInnerView'](_0x297f81['view']);_0x1c4670['isVisible']&&_0x36e2ec['_visibleAnnotations']['remove'](_0x1c4670),this['annotationViews']['add'](_0x1c4670['view'],_0x281102);}}['_calculatePosition'](_0x3c09c3){const _0x154347=this['editor']['config']['get']('collaboration.channelId'),_0x5bda53=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x4d3552=>_0x4d3552['channelId']===_0x154347)['findIndex'](_0xa82d65=>_0xa82d65['archivedAt']<_0x3c09c3);return _0x5bda53<0x0||_0x5bda53>this['annotationViews']['length']?this['annotationViews']['length']:_0x5bda53-0x1;}['_toggleDialog'](){const _0x5e55a7=this['editor'],_0x2c05d7=_0x5e55a7['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x5e55a7['locale'],this['annotationViews'])),'commentsArchive'===_0x2c05d7['id']?_0x2c05d7['hide']():_0x2c05d7['show']({'id':'commentsArchive','title':S(_0x5e55a7['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3905e1['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x516f38,_0x54dfca=!0x1){const _0x5ee0be=this['editor']['locale'],_0x3b1e03=this['editor']['plugins']['get']('Dialog'),_0x4719cd=new _0x516f38(_0x5ee0be);return _0x4719cd['bind']('isEnabled')['to'](this,'isEnabled'),_0x4719cd['bind']('isOn')['to'](_0x3b1e03,'id',_0x4bd9b3=>'commentsArchive'===_0x4bd9b3),_0x4719cd['set']({'label':S(_0x5ee0be,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x54dfca&&(_0x4719cd['tooltip']=!0x0),this['listenTo'](_0x4719cd,'execute',()=>this['_toggleDialog']()),_0x4719cd;}['_hideDialogOnAnnotationEscape']=_0x2492d5=>{const _0x3c918f=_0x2492d5['source'];if(!this['annotationViews']['has'](_0x3c918f['view']))return;const _0x264f4d=this['editor']['plugins']['get']('Dialog');_0x264f4d['isOpen']&&'commentsArchive'===_0x264f4d['id']&&(_0x264f4d['hide'](),_0x2492d5['stop']());};}class p extends _0x5ed257{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};
23
+ import{Editor as _0x2993f0,icons as _0x198d64,ContextPlugin as _0x5b032a,PendingActions as ht,Command as _0x5a6741,Plugin as _0x2fdcc6,Context as _0x859dd8}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x270d98,uid as _0x54e4c5,KeystrokeHandler as jt,FocusTracker as _0x50da7e,diff as _0x3335b2,Collection as _0x5251bb,Rect as _0x14b050,CKEditorError as _0x437ad0,first as _0x329f93,priorities as Wt,scrollViewportToShowTarget as rt,getEnvKeystrokeText as nt,toUnit as Ht,DomEmitterMixin as _0x6a71aa,keyCodes as _0x1d750d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1a337b,AriaDescriptionView as ts,setupThreadKeyboardNavigation as _0x5c339c,ConfirmMixin as ti,LateFocusButtonView as _0x5c3fb6,trimHtml as _0x4d9e9f,LateFocusDropdownButtonView as _0x591887,Users as it,getDateTimeFormatter as lt,hashObject as pt,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as ot,FOCUS_ANNOTATION_KEYSTROKE as _0x5d80a1}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as wt,cloneDeep as It,set as At,unset as yt,debounce as _0x48ce67}from'lodash-es';import{EditorUIView as Yt,InlineEditableUIView as $t,EditorUI as Vt,View as kt,FocusCycler as Ft,ButtonView as _0x9673,ViewCollection as _0x2b6628,createDropdown as _0x332e61,ListView as _0x12044b,focusChildOnDropdownOpen as _0x20b390,ListItemView as _0x4d5826,MenuBarMenuListItemButtonView as _0x3b46df,BodyCollection as _0x3cb767,BalloonPanelView as _0x15e0c6,ContextualBalloon as _0x3e4d90,Dialog as _0x314ef9,DialogViewPosition as _0x494ad}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disablePlaceholder as zt,enablePlaceholder as St,MouseObserver as _0x4ab319}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as Bt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Et,ShiftEnter as Gt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Jt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Kt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Nt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Qt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x31fc19}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x27d504}from'@ckeditor/ckeditor5-widget/dist/index.js';class Ct extends/* #__PURE__ -- @preserve */
24
+ _0x270d98(){['model'];['view'];constructor(_0x219288,_0x559f64){super(),this['model']=_0x219288,this['model']['_isAttached']=!0x0,this['view']=_0x559f64,this['listenTo'](_0x559f64,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x559f64,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x559f64,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x559f64,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x559f64,'addComment',(_0x49b812,_0x5087ee)=>this['addComment'](_0x5087ee)),this['listenTo'](_0x559f64,'updateComment',(_0x285ca2,_0x313a04,_0x142f27)=>this['updateComment'](_0x313a04,_0x142f27)),this['listenTo'](_0x559f64,'removeComment',(_0x3b6775,_0x3dcbf3)=>this['removeComment'](_0x3dcbf3));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x50aa31){this['model']['addComment']({'content':_0x50aa31,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x212c07,_0xe07458){this['model']['getComment'](_0x212c07)['update']({'content':_0xe07458});}['removeComment'](_0x15880f){this['model']['getComment'](_0x15880f)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function S(_0x410b44,_0x309152,_0x5f3074){const t=_0x410b44['t'];switch(_0x309152){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'},_0x5f3074);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'},_0x5f3074);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'},_0x5f3074);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'},_0x5f3074);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5f3074);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'},_0x5f3074);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'},_0x5f3074);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'},_0x5f3074);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 Xt extends Yt{['main'];['editable'];constructor(_0xdd846b,_0x239b35){super(_0xdd846b);const _0x24f879=_0x54e4c5();this['main']=this['createCollection'](),this['editable']=new $t(_0xdd846b,_0x239b35,void 0x0,{'label':()=>S(_0xdd846b,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0xdd846b['uiLanguageDirection'],'lang':_0xdd846b['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x24f879},'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 Ot extends Vt{['view'];constructor(_0x507df4){super(_0x507df4),this['view']=new Xt(_0x507df4['locale'],_0x507df4['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x1c0039=this['editor']['editing']['view'],_0x163362=this['view']['editable'],_0x411434=_0x1c0039['document']['getRoot']();_0x163362['name']=_0x411434['rootName'],this['view']['render']();const _0xe47f64=_0x163362['element'];this['setEditableElement'](_0x163362['name'],_0xe47f64),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1c0039['attachDomRoot'](_0xe47f64),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Rt=[Bt,Et,Gt,Jt,Kt,Nt,Qt];class Ut extends/* #__PURE__ -- @preserve */
25
+ _0x270d98(_0x2993f0){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
26
+ ((()=>Rt)());constructor(_0x40e17d={}){function _0x3fcbe3(_0x194c77){return _0x194c77['map'](_0x157baf=>String['fromCharCode'](_0x157baf))['join']('');}(_0x40e17d=Object['assign']({},_0x40e17d))['plugins']||(_0x40e17d['plugins']=Ut['defaultPlugins']),super(_0x40e17d),this['ui']=new Ot(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x3fcbe3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fcbe3([0x76,0x69,0x65,0x77])][_0x3fcbe3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fcbe3([0x61,0x75,0x74,0x6f]),this[_0x3fcbe3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3fcbe3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fcbe3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3fcbe3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3fcbe3([0x6f,0x6b])});}['create'](){const _0x3c7403=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x3c7403))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x484b7a=>{const _0x336a45=this['model']['document']['getRoot'](),_0x57bdbd=_0x336a45&&_0x336a45['getChild'](_0x336a45['childCount']-0x1);_0x484b7a['setSelection'](_0x57bdbd,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2aeb99=this['editing']['view'],_0x5c6546=_0x2aeb99['document']['getRoot'](),_0x58d74c=_0x5c6546['getChild'](0x0);_0x5c6546['childCount']>0x1||!_0x58d74c||'p'!=_0x58d74c['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(zt(_0x2aeb99,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x58d74c['placeholder']=this['placeholder']),St({'view':_0x2aeb99,'element':_0x58d74c,'keepOnFocus':!0x0}),this['placeholderElement']=_0x58d74c);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x580c34,_0xc28ead={}){super(_0x580c34),this['editor']=null,this['_editorConfig']=_0xc28ead,this['set']('value',_0xc28ead['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',S(_0x580c34,'Reply...')),this['set']('submitLabel',S(_0x580c34,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x50da7e(),this['focusCycler']=new Ft({'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',(_0x2b4ff3,_0x219a63)=>{this['cancelButtonView']['fire']('execute'),_0x219a63();}),this['keystrokes']['set']('Ctrl+Enter',(_0x1fea0d,_0x4c191e)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x4c191e());}),this['on']('submit',(_0x5e7323,_0x365dc6)=>{_0x365dc6['length']>0xfde8?(alert(S(_0x580c34,'TOO_LONG_COMMENT_ALERT',[_0x365dc6['length'],0xfde8])),_0x5e7323['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Ut(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x1c1ebc=this['editor'];this['element']['insertBefore'](_0x1c1ebc['ui']['element'],this['element']['firstChild']),_0x1c1ebc['model']['document']['on']('change',()=>this['value']=_0x1c1ebc['getData']()),_0x1c1ebc['bind']('placeholder')['to'](this),this['focusables']['add'](_0x1c1ebc['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2bc7ba){-0x1===_0x2bc7ba?(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:_0x500639}=this,_0xba71c2=new _0x9673(_0x500639);return _0xba71c2['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xba71c2['withText']=!0x0,_0xba71c2['bind']('label')['to'](this,'submitLabel'),_0xba71c2['on']('execute',()=>{this['fire']('submit',this['value']);}),_0xba71c2['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x1fef67,_0xd869ec)=>!_0xd869ec&&!!_0x1fef67['trim']()),_0xba71c2;}['_createCancelButton'](){const {locale:_0x289703}=this,_0x591001=new _0x9673(_0x289703);return _0x591001['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x591001['label']=S(_0x289703,'Cancel'),_0x591001['withText']=!0x0,_0x591001['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x591001;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x1a3327=>{this['focusTracker']['add'](_0x1a3327['element']);}),this['focusables']['on']('change',(_0x5d9282,_0x1bb016)=>{for(const _0xe9fc8c of Array['from'](_0x1bb016['added'])['reverse']())this['focusTracker']['add'](_0xe9fc8c['element']);});}}class ie extends kt{constructor(_0x38fe0a,_0x5860bb,_0x3f0e17){super(_0x38fe0a),this['commentInputView']=new os(_0x38fe0a,_0x3f0e17),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x259f7f,_0x5aa87d)=>_0x259f7f||!!_0x5aa87d),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 _0x1a337b(_0x38fe0a,_0x5860bb),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'](_0x1d35ee){this['commentInputView']['focus'](_0x1d35ee);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x483bd9,_0x2d2691)=>{const {submitButtonView:_0x4f78e9,cancelButtonView:_0x5c56be,editor:_0x4b6567}=this['commentInputView'];[_0x4f78e9['element'],_0x5c56be['element'],_0x4b6567?_0x4b6567['editing']['view']['getDomRoot']():null]['filter'](_0x51001a=>_0x51001a)['some'](_0x47e76d=>_0x47e76d['contains'](_0x2d2691['target']))||(this['focus'](),_0x2d2691['preventDefault']());});}}class cs extends kt{constructor(_0x273eb0){super(_0x273eb0);const _0xff031a=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0xff031a['to']('count',_0x18032c=>S(_0x273eb0,'NUMBER_OF_COMMENTS',_0x18032c))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x540d09,_0x3f8764,_0x1e582f){super(_0x540d09);const _0x926ca0=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x3f8764['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x3f8764,this['_config']=_0x1e582f,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x50da7e(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x11649c=>this['commentViews']['map'](_0x292bc8=>_0x292bc8['element'])['includes'](_0x11649c['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new cs(_0x540d09),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x44b540=>_0x44b540-this['_config']['maxCommentsWhenCollapsed']);for(const _0x43273c of _0x3f8764['comments'])this['_handleNewCommentModel'](_0x43273c);this['_handleInfoComment'](),this['listenTo'](_0x3f8764['comments'],'add',(_0x21be15,_0x3cce51)=>{const _0x1745cc=this['_calculatePosition'](_0x3cce51);this['length']++,this['_handleNewCommentModel'](_0x3cce51,_0x1745cc),this['refreshVisibleViews']();}),this['listenTo'](_0x3f8764['comments'],'remove',(_0x2a45fd,_0x196fe7)=>{this['length']--,this['_handleRemoveCommentModel'](_0x196fe7),this['refreshVisibleViews']();}),this['listenTo'](_0x3f8764,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x3f8764,'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',_0x926ca0['if']('length','ck-hidden',_0x5330c2=>!_0x5330c2)],'aria-label':S(_0x540d09,'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'](_0x2ceeaf){-0x1===_0x2ceeaf?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x444495 of this['commentViews'])_0x444495['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x331219,_0x8e9b20){const _0x46bba8=new this['_config']['CommentView'](this['locale'],_0x331219,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x46bba8['viewUid']=_0x331219['id'],_0x46bba8['delegate']('removeComment')['to'](this),_0x46bba8['delegate']('updateComment')['to'](this),_0x46bba8['delegate']('resolveCommentThread')['to'](this),_0x46bba8['delegate']('editorReady')['to'](this),_0x46bba8['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x46bba8,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x46bba8,_0x8e9b20);}['_calculatePosition'](_0xaa9c22){const _0x4cab03=this['_model']['_findOptimalIndex'](_0xaa9c22);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0xaa9c22['authoredAt']?_0x4cab03-0x1:_0x4cab03:_0x4cab03-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x16aa0d={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':S(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x16aa0d,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x16aa0d));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4c7178){const _0x2e420a=this['commentViews']['remove'](_0x4c7178['id']);this['stopListening'](_0x2e420a),_0x2e420a['isEditMode']&&this['_updateHasDirtyComment'](),_0x2e420a['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x488c5f=>_0x488c5f['isEditMode']);}['_rearrangeCollapse'](){const _0x58477f=function(_0x3a0269){const _0x20a0a0=new _0x5251bb();for(const _0x30ae75 of _0x3a0269)_0x20a0a0['add'](_0x30ae75);return _0x20a0a0;}(this['commentViews']),_0x46641e=this['_collapsedCommentsView']['count'];for(let _0x47c9ee=0x1;_0x47c9ee<=_0x46641e;_0x47c9ee++)_0x58477f['remove'](0x1);for(const _0xad42a of _0x58477f)_0xad42a['collapse']();_0x46641e>0x0&&_0x58477f['add'](this['_collapsedCommentsView'],0x1),as(_0x3335b2(Array['from'](this['visibleViews']),Array['from'](_0x58477f)),this['visibleViews'],_0x58477f);}['_rearrangeExpand'](){as(_0x3335b2(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1e5314 of this['visibleViews'])_0x1e5314['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x1ab8f8=>{this['focusTracker']['add'](_0x1ab8f8['element']),this['keystrokes']['listenTo'](_0x1ab8f8['element']);}),this['commentViews']['on']('change',(_0x315aef,_0x5005a1)=>{for(const _0x444d7a of _0x5005a1['removed'])this['focusTracker']['remove'](_0x444d7a['element']),this['keystrokes']['stopListening'](_0x444d7a['element']);for(const _0x57ac79 of Array['from'](_0x5005a1['added'])['reverse']())this['focusTracker']['add'](_0x57ac79['element']),this['keystrokes']['listenTo'](_0x57ac79['element']);});}}function as(_0x170592,_0x57729b,_0xd5725e){let _0x347452=0x0;for(const _0xddeff0 of _0x170592)switch(_0xddeff0){case'insert':_0x57729b['add'](_0xd5725e['get'](_0x347452),_0x347452),_0x347452++;break;case'delete':_0x57729b['remove'](_0x347452);break;case'equal':_0x347452++;}}class ls extends kt{constructor(_0x59f40a){super(_0x59f40a);const _0x567802=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x567802['to']('contextValue',_0xb573f7=>S(_0x59f40a,'THREAD_CONTEXT_LABEL',_0xb573f7)),'tabindex':-0x1},'children':[{'text':_0x567802['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Zt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x28c728,_0x42263e){super(_0x28c728);const _0x4c4d39=this['bindTemplate'];this['_model']=_0x42263e,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x50da7e(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x1613ad=>!!_0x1613ad),this['bind']('contextValue')['to'](this['_model'],'context',_0x7df989=>_0x7df989&&_0x7df989['value']?this['_trimContextValue'](_0x7df989['value']):S(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',_0x4c4d39['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 _0x56e075=new _0x9673(this['locale']);return _0x56e075['label']=S(this['locale'],'Reopen'),_0x56e075['tooltip']=S(this['locale'],'Reopen'),_0x56e075['icon']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22m5.042\x209.367\x202.189\x201.837a.75.75\x200\x200\x201-.965\x201.149l-3.788-3.18a.747.747\x200\x200\x201-.21-.284.75.75\x200\x200\x201\x20.17-.945L6.23\x204.762a.75.75\x200\x201\x201\x20.964\x201.15L4.863\x207.866h8.917A.75.75\x200\x200\x201\x2014\x207.9a4\x204\x200\x201\x201-1.477\x207.718l.344-1.489a2.5\x202.5\x200\x201\x200\x201.094-4.73l.008-.032H5.042z\x22/></svg>',_0x56e075['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x796c0a=>!_0x796c0a),_0x56e075['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0xc80b3d,_0x36d4e6)=>_0xc80b3d&&_0x36d4e6),_0x56e075['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x56e075;}['_trimContextValue'](_0x38b2fb){if(_0x38b2fb['length']<0x96)return _0x38b2fb;const _0x5b04be=_0x38b2fb['lastIndexOf']('\x20',0x93);return _0x38b2fb['substring'](0x0,_0x5b04be>-0x1?_0x5b04be:0x93)+'...';}['_attachContextActions'](){const _0x3b4264=this['element']['querySelector']('.ck-context'),_0x2432fc=_0x3b4264['querySelector']('.ck-context__value');this['listenTo'](_0x3b4264,'mouseenter',()=>{_0x2432fc['offsetWidth']<_0x2432fc['scrollWidth']&&_0x3b4264['classList']['add']('overlay');}),this['listenTo'](_0x3b4264,'mouseleave',()=>{_0x3b4264['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x21e246 of this['focusables'])this['focusTracker']['add'](_0x21e246['element']),this['keystrokes']['listenTo'](_0x21e246['element']);}['_createContextView'](){const _0x39c746=new ls(this['locale']);return _0x39c746['bind']('contextValue')['to'](this),_0x39c746;}}class is extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x2897ad,_0x38cf14,_0x10a2af,_0x59ad54){super(_0x2897ad),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x38cf14,this['_localUser']=_0x10a2af,this['_config']=_0x59ad54,this['commentThreadHeaderView']=new Zt(_0x2897ad,_0x38cf14),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new ts(_0x2897ad,S(_0x2897ad,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x2897ad,_0x38cf14,Object['assign']({'CommentView':this['_config']['CommentView']},_0x59ad54)),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',(_0x14f9ac,_0x456b86)=>_0x14f9ac||!!_0x456b86),this['bind']('isUnlinked')['to'](_0x38cf14,'unlinkedAt',_0x5bdf5d=>!!_0x5bdf5d),this['bind']('ariaLabel')['to'](this,'length',_0x3e4ae0=>{const _0x51687e=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return S(this['locale'],'COMMENT_THREAD_LABEL',[_0x3e4ae0,_0x51687e]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x50da7e(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x479563=>_0x479563['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),_0x5c339c(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x48b36f=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4380d5=_0x48b36f['commentInputView'];return _0x48b36f['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x4380d5,'value',(_0x3fff71,_0x353d47,_0x2827d3,_0xac1b76,_0x2fb5c3)=>!!_0x2fb5c3||!!_0xac1b76&&_0x2827d3&&!_0x353d47||_0x3fff71&&_0x2827d3&&!_0x353d47),_0x4380d5['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1ebeb9,_0x3d6e96,_0x2865ad)=>{let _0x2e4480;return _0x2e4480=_0x2865ad&&_0x3d6e96?'Reply\x20to\x20reopen\x20discussion...':_0x1ebeb9?'Reply...':'Write\x20a\x20comment...',S(this['locale'],_0x2e4480);}),_0x4380d5['bind']('submitLabel')['to'](this,'length',_0x564680=>S(this['locale'],_0x564680?'Reply':'Comment')),_0x4380d5['on']('submit',(_0x23bb39,_0x310660)=>{this['fire']('addComment',_0x310660),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x4380d5['on']('cancel',()=>{this['focus']();}),_0x4380d5['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x4380d5['on']('cancel',_0x47aa0e=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x47aa0e['stop']());}),this['on']('change:isActive',(_0x481c85,_0x41bfd9,_0xdf66e9)=>{_0xdf66e9||this['length']||_0x4380d5['value']||this['fire']('removeCommentThread');}),_0x48b36f;}}class vt extends/* #__PURE__ -- @preserve */
27
+ ti(is){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x3518de,_0x4baf5d,_0x19812d,_0x576809){super(_0x3518de,_0x4baf5d,_0x19812d,_0x576809),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x3518de,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x121777,_0x410b6a,_0x5474e6)=>{_0x5474e6||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4d889e,_0x1c61cf,_0xf49322)=>{_0xf49322&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x3104b0=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x3104b0['if']('isActive','ck-thread--active'),_0x3104b0['if']('isUnlinked','ck-thread--unlinked'),_0x3104b0['if']('isConfirm','ck-thread--remove-confirmation'),_0x3104b0['to']('actionIndicator',_0x4f2fa7=>_0x4f2fa7?'ck-thread--'+_0x4f2fa7:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3104b0['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 _0x436c18 of this['commentsListView']['commentViews'])_0x436c18['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x388ba2}=this,_0x24e499=this['commentsListView']['commentViews']['get'](0x0);_0x24e499===this['_boundFirstCommentView']||_0x24e499['isSystemComment']||(this['_boundFirstCommentView']=_0x24e499,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x24e499,'actionIndicator',_0x183ed4=>'remove'===_0x183ed4?'remove':null),_0x24e499['placeholder']=S(_0x388ba2,'Write\x20a\x20comment...'),_0x24e499['removeButton']['on']('execute',_0x2a2c34=>{_0x2a2c34['stop'](),this['showConfirm'](S(_0x388ba2,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x24e499['focus']();}),_0x24e499['actionBar']['add'](this['resolveButton'],0x0),_0x24e499['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x3c74a4=new _0x5c3fb6(this['locale']);return _0x3c74a4['label']=S(this['locale'],'Resolve'),_0x3c74a4['tooltip']=S(this['locale'],'Resolve'),_0x3c74a4['icon']=_0x198d64['check'],_0x3c74a4['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x3c74a4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4916c3=>!_0x4916c3),_0x3c74a4['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x38638f,_0x37b95b)=>_0x38638f&&!_0x37b95b),_0x3c74a4['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x3c74a4;}['_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 hs extends kt{constructor(_0x533596){super(_0x533596),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x15eb2f,_0x413538,_0x4365cb)=>{this['element']['innerHTML']=_0x4365cb;}),this['element']['innerHTML']=this['content'];}}class rs extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x491a23,_0x3055e8,_0x9aadcc){super(_0x491a23),this['_model']=_0x3055e8,this['_config']=_0x9aadcc,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x3055e8,'content',_0x3055e8,'authoredAt',(_0x1707e8,_0xc53079)=>S(_0x491a23,'COMMENT_ARIA_LABEL',[_0x3055e8['author']['name'],_0x9aadcc['formatDateTime'](_0xc53079),new DOMParser()['parseFromString'](_0x1707e8,'text/html')['body']['textContent'],_0x3055e8['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new ts(_0x491a23,S(_0x491a23,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x2b6628(),this['focusTracker']=new _0x50da7e(),this['keystrokes']=new jt(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xa7b564=>_0xa7b564['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']?S(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):S(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?S(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):S(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x20fd6b=new hs(this['locale']);return _0x20fd6b['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x4624fe,_0x12bd5e)=>_0x12bd5e?_0x4d9e9f(_0x4624fe,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x4624fe),_0x20fd6b;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x1bbaad=new os(this['locale'],this['_config']['editorConfig']);return _0x1bbaad['value']=this['_model']['content'],_0x1bbaad['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1bbaad['submitLabel']=S(this['locale'],'Save'),_0x1bbaad['on']('submit',(_0x5da3ea,_0x191324)=>{this['fire']('updateComment',this['_model']['id'],_0x191324),this['switchToDisplayMode'](),this['focus']();}),_0x1bbaad['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x1bbaad['once']('editorReady',()=>{_0x1bbaad['focus']();}),_0x1bbaad['createEditor'](),_0x1bbaad['delegate']('editorReady')['to'](this),_0x1bbaad['delegate']('editorDestroyed')['to'](this),_0x1bbaad;}['_setupKeyboardNavigation'](){const _0x5e2656=this['element'];this['keystrokes']['listenTo'](_0x5e2656);for(const _0x125af0 of this['focusables'])this['focusTracker']['add'](_0x125af0['element']),this['keystrokes']['listenTo'](_0x125af0['element']);this['focusables']['on']('change',(_0x513cf5,_0x1925f2)=>{for(const _0x402523 of _0x1925f2['removed'])this['focusTracker']['remove'](_0x402523['element']),this['keystrokes']['stopListening'](_0x402523['element']);for(const _0x45d0da of _0x1925f2['added'])this['focusTracker']['add'](_0x45d0da['element']),this['keystrokes']['listenTo'](_0x45d0da['element']);}),this['keystrokes']['set']('enter',(_0x1c1421,_0x24d24b)=>{_0x5e2656===_0x1c1421['target']&&(this['focusCycler']['focusFirst'](),_0x24d24b());}),this['keystrokes']['set']('esc',(_0x4db20e,_0x5772a5)=>{_0x5e2656!==_0x4db20e['target']&&(this['focus'](),_0x5772a5());});}}class gt extends/* #__PURE__ -- @preserve */
28
+ ti(rs){['actionBar'];['userView'];constructor(_0x493b35,_0x53e763,_0x46e68){super(_0x493b35,_0x53e763,_0x46e68),this['set']('actionIndicator',null),this['set']('placeholder',S(_0x493b35,'Reply...')),this['bind']('authoredAt')['to'](_0x53e763),this['bind']('resolvedAt')['to'](_0x53e763),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 _0x1a337b(_0x493b35,_0x53e763['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x53e763,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x543c66=this['bindTemplate'],_0x4fa367=[{'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':_0x543c66['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x543c66['to']('authoredAt',_0x58d740=>this['_config']['formatDateTime'](_0x58d740))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x543c66['if']('isEditMode','ck-comment__actions--hidden'),_0x543c66['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']&&_0x4fa367['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x543c66['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x543c66['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x543c66['if']('isEditMode','ck-comment--edit'),_0x543c66['if']('isSystemComment','ck-comment--info'),_0x543c66['to']('actionIndicator',_0x3ba69d=>_0x3ba69d?'ck-comment--'+_0x3ba69d:'')],'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':_0x4fa367}]}]};}['_createEditButton'](){const _0x594a6c=new _0x9673(this['locale']);return _0x594a6c['label']=S(this['locale'],'Edit'),_0x594a6c['icon']=_0x198d64['pencil'],_0x594a6c['withText']=!0x0,_0x594a6c['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x594a6c['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5c6869=>!_0x5c6869),_0x594a6c['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x594a6c['on']('execute',()=>this['switchToEditMode']()),_0x594a6c;}['_createRemoveButton'](){const _0x5df33e=new _0x9673(this['locale']);return _0x5df33e['label']=S(this['locale'],'Remove'),_0x5df33e['icon']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5.2\x207h9.2c.6\x200\x201\x20.4\x201\x201v9.9c0\x20.5-.4\x201-1\x201H5.2a1\x201\x200\x200\x201-1-1V8c0-.6.4-1\x201-1zm1\x201.5c-.3\x200-.5.2-.5.5v8c0\x20.3.2.5.5.5h.5c.2\x200\x20.5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5\x200c-.2\x200-.5.2-.5.5v8c0\x20.3.3.5.5.5h.5c.3\x200\x20.5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5\x203.6H3.8c-.5\x200-.7.3-.7.8s.2.7.7.7h12c.6\x200\x20.9-.2.9-.7\x200-.5-.3-.8-1-.8h-2.4l-1.8-2.2z\x22/></svg>\x0a',_0x5df33e['withText']=!0x0,_0x5df33e['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5df33e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x17c66b=>!_0x17c66b),_0x5df33e['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5df33e['on']('execute',()=>{this['showConfirm'](S(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5df33e;}['_createDropdown'](){const _0x34a1ad=_0x332e61(this['locale'],_0x591887),_0x1e8f55=_0x34a1ad['panelView']['children'],_0x622486=new _0x12044b(this['locale']),_0x508198=_0x34a1ad['bindTemplate'];_0x20b390(_0x34a1ad,()=>this['items']['find'](_0x4b3cef=>_0x4b3cef['isVisible'])),_0x34a1ad['extendTemplate']({'attributes':{'class':[_0x508198['if']('isVisible','ck-hidden',_0x1a0161=>!_0x1a0161)]}});const _0x361a21=(_0x2a5d0c,_0x2ab6a4=-0x1)=>{const _0x5992ea=new _0x4d5826(this['locale']);_0x5992ea['children']['add'](_0x2a5d0c);const _0x61f7e=_0x2ab6a4>-0x1?_0x2ab6a4:_0x622486['items']['length'];_0x622486['items']['add'](_0x5992ea,_0x61f7e);const _0x2aa8f5=Array['from'](this['items']);_0x34a1ad['unbind']('isEnabled','isVisible'),_0x34a1ad['bind']('isEnabled')['toMany'](_0x2aa8f5,'isEnabled',(..._0x19bcbe)=>_0x19bcbe['some'](_0x178670=>_0x178670)),_0x34a1ad['bind']('isVisible')['toMany'](_0x2aa8f5,'isVisible',(..._0xb1197b)=>_0xb1197b['some'](_0x499d65=>_0x499d65));};_0x34a1ad['panelPosition']='sw',_0x34a1ad['buttonView']['set']({'label':S(this['locale'],'Show\x20more\x20items'),'icon':_0x198d64['threeVerticalDots']});for(const _0x5d3f94 of this['items'])_0x361a21(_0x5d3f94);return _0x1e8f55['add'](_0x622486),_0x34a1ad['listenTo'](this['items'],'add',(_0x40bb5f,_0x2282f3,_0x4becf9)=>{_0x361a21(_0x2282f3,_0x4becf9);}),_0x34a1ad['listenTo'](this['items'],'remove',(_0x33b777,_0x13e283,_0x3b2748)=>{_0x622486['items']['remove'](_0x3b2748);}),_0x34a1ad;}['_attachActions'](_0x39f0f5,_0x332989){const _0x50ffb9=_0x39f0f5&&_0x39f0f5['element'];_0x50ffb9&&(this['listenTo'](_0x50ffb9,'mouseenter',()=>this['actionIndicator']=_0x332989),this['listenTo'](_0x50ffb9,'focus',()=>this['actionIndicator']=_0x332989),this['listenTo'](_0x50ffb9,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x50ffb9,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x3291f0=super['_createCommentInputView']();return _0x3291f0['bind']('placeholder')['to'](this),_0x3291f0;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function Lt(_0x23726b){const _0x39369d=Dt(_0x23726b,0x1e),_0x2c7ee1=new MutationObserver(_0x3af5d6=>{for(const _0x76acb5 of _0x3af5d6)('attributes'==_0x76acb5['type']&&'class'==_0x76acb5['attributeName']||'childList'==_0x76acb5['type']||'characterData'==_0x76acb5['type'])&&_0x39369d();});return{'attach'(_0x1904a2){_0x2c7ee1['observe'](_0x1904a2,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x2c7ee1['disconnect'](),_0x39369d['cancel']();}};}class T extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x391bda,_0xb15aa1){super(_0x391bda),this['id']=_0x54e4c5(),this['focusTracker']=new _0x50da7e(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x1d7c87,_0x2564d8)=>this['fire']('Esc',_0x2564d8)),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']=Lt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0xb15aa1),this['mainView']=_0xb15aa1;const _0x2e3935=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2e3935['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 _0x1ba079=this['element']['clientHeight'];_0x1ba079&&(this['height']=_0x1ba079);}}class d extends/* #__PURE__ -- @preserve */
29
+ _0x270d98(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x17a4a2,target:_0xa1d828,type:_0x1a8ca7,isVisible:_0x550670=!0x0}){super(),this['view']=_0x17a4a2,this['view']['element']||this['view']['render'](),this['_type']=_0x1a8ca7,this['_target']=_0xa1d828,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x5251bb([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x39653d,_0x1e7ee8)=>{this['view']['focusTracker']['add'](_0x1e7ee8);}),this['focusableElements']['on']('remove',(_0x321417,_0x35d917)=>{this['view']['focusTracker']['remove'](_0x35d917);}),this['set']('isVisible',_0x550670);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x491c93=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x491c93),_0x491c93;}get['targetRect'](){const _0x5a67b0=this['target'];if(null===_0x5a67b0)return null;if(_0x5a67b0 instanceof _0x14b050)return _0x5a67b0;const _0x23103f=_0x5a67b0['filter'](_0xb5190a=>function(_0x235e03){const _0x27b20a=_0x235e03['offsetParent'];if(_0x27b20a)return!0x0;const _0x5559e7=_0x235e03['getClientRects']()['item'](0x0);return!!_0x5559e7;}(_0xb5190a));return 0x0===_0x23103f['length']?null:new _0x14b050(_0x23103f[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x326fc1){this['view']['isActive']=_0x326fc1,this['view']['mainView']['isActive']=_0x326fc1;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xa71bb0){if(!(null===_0xa71bb0||_0xa71bb0 instanceof _0x14b050||Array['isArray'](_0xa71bb0)&&_0xa71bb0['every'](_0x578948=>ne(_0x578948))))throw new _0x437ad0('annotation-invalid-target',null,{'target':_0xa71bb0});}['_getNormalizedTarget'](){const _0x54a973='function'==typeof this['_target']?this['_target']():this['_target'];return ne(_0x54a973)?[_0x54a973]:_0x54a973;}}function ne(_0x53e0b9){return null!==_0x53e0b9&&'object'==typeof _0x53e0b9&&'nodeType'in _0x53e0b9&&0x1===_0x53e0b9['nodeType'];}class x extends _0x5251bb{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x140111=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x50da7e(),this['_focusTracker']['on']('change:isFocused',(_0x444e61,_0x26a194,_0x461cf1)=>{_0x461cf1||this['fire']('blur');});for(const _0x37268d of _0x140111)this['add'](_0x37268d);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x1935c2){if(this['has'](_0x1935c2))throw new _0x437ad0('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x1935c2['innerView'],_0x1935c2),this['_viewToAnnotation']['set'](_0x1935c2['view'],_0x1935c2);for(const _0x560e9d of _0x1935c2['focusableElements'])this['_focusTracker']['add'](_0x560e9d);this['listenTo'](_0x1935c2['focusableElements'],'add',(_0x57f498,_0x54af27)=>{this['_focusTracker']['add'](_0x54af27);}),this['listenTo'](_0x1935c2['focusableElements'],'remove',(_0x5e89c2,_0x54488b)=>{this['_focusTracker']['remove'](_0x54488b);}),this['listenTo'](_0x1935c2['view']['focusTracker'],'change:isFocused',(_0x27a3c6,_0x1e88fa,_0x1750a5)=>{_0x1750a5&&this['fire']('focus',_0x1935c2);}),_0x1935c2['updateTargetRect']();const _0x2536e2=this['_getOrderInContent'](_0x1935c2['view']['targetRect']);return super['add'](_0x1935c2,_0x2536e2);}['remove'](_0x4514ea){if(!this['has'](_0x4514ea))throw new _0x437ad0('annotationcollection-not-existing-item',null);this['stopListening'](_0x4514ea['view']['focusTracker']),this['stopListening'](_0x4514ea['focusableElements']);for(const _0x3d4798 of _0x4514ea['focusableElements'])this['_focusTracker']['remove'](_0x3d4798);return this['_viewToAnnotation']['delete'](_0x4514ea['view']),this['_innerViewToAnnotation']['delete'](_0x4514ea['innerView']),super['remove'](_0x4514ea);}['getByInnerView'](_0x1059aa){return this['_innerViewToAnnotation']['get'](_0x1059aa);}['getByView'](_0xb9b238){return this['_viewToAnnotation']['get'](_0xb9b238);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x130dcb of this)_0x130dcb['updateTargetRect']();this['_sort']();}['_sort'](){const _0x2788ed=Array['from'](this)['sort']((_0x1609e0,_0x5384be)=>v(_0x1609e0['view']['targetRect'],_0x5384be['view']['targetRect']));for(let _0x268360=_0x2788ed['length']-0x1;_0x268360>0x0;_0x268360--){const _0x160729=_0x2788ed[_0x268360];_0x268360!==this['getIndex'](_0x160729)&&(this['remove'](_0x160729),this['add'](_0x160729));}}['_getOrderInContent'](_0x30a127){let _0x30dc54=0x0;if(!_0x30a127)return this['length'];for(const _0x106517 of this){const _0x1625fb=_0x106517['view']['targetRect'];if(_0x1625fb){if(v(_0x30a127,_0x1625fb)<0x0)return _0x30dc54;_0x30dc54++;}}return _0x30dc54;}}function v(_0x19ecec,_0x39925f){if(null===_0x19ecec&&null===_0x39925f)return 0x0;if(null===_0x19ecec)return-0x1;if(null===_0x39925f)return 0x1;const _0x58c2e3=_0x19ecec['top']-_0x39925f['top'];return 0x0==_0x58c2e3?_0x19ecec['left']-_0x39925f['left']:_0x58c2e3;}class N extends _0x5b032a{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x75ec9e){if(super(_0x75ec9e),this['collection']=new x(),this['_visibleAnnotations']=new x(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x75ec9e instanceof _0x2993f0){const _0x295589=_0x75ec9e['locale'];_0x75ec9e['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':S(_0x295589,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':S(_0x295589,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':S(_0x295589,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':S(_0x295589,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':S(_0x295589,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':S(_0x295589,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':S(_0x295589,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x45ea0d){this['collection']['add'](_0x45ea0d);}['remove'](_0x56af5f){this['collection']['remove'](_0x56af5f),_0x56af5f['destroy']();}['refreshVisibility'](){for(const _0x1c3a48 of this['collection'])_0x1c3a48['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0xca142d){return this['collection']['getByInnerView'](_0xca142d);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x19f6f0 of this['collection'])_0x19f6f0['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x28d2a0){this['fire']('_activateAnnotation',_0x28d2a0);}['createAnnotation'](_0x3624ee){return new d(_0x3624ee);}['createAnnotationView'](_0x360d42,_0x63bd83){return new T(_0x360d42,_0x63bd83);}['_addActiveAnnotation'](_0x1f5708){const _0x3635d5=new Set(this['activeAnnotations']);_0x3635d5['add'](_0x1f5708),this['activeAnnotations']=_0x3635d5;}['_removeActiveAnnotation'](_0x2804ec){const _0x5a656d=new Set(this['activeAnnotations']);_0x5a656d['delete'](_0x2804ec),this['activeAnnotations']=_0x5a656d;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4a0f6e=this['collection'],_0x57634a=this['_visibleAnnotations'];function _0x48e48f(_0x433bce){const _0x325987=_0x433bce['source'];_0x325987['isVisible']&&!_0x57634a['has'](_0x325987)?_0x57634a['add'](_0x325987):!_0x325987['isVisible']&&_0x57634a['has'](_0x325987)&&_0x57634a['remove'](_0x325987),_0x325987['view']['focusTracker']['remove'](_0x325987['view']['element']),_0x325987['view']['focusTracker']['add'](_0x325987['view']['element']);}this['listenTo'](_0x4a0f6e,'add',(_0x4dd37d,_0x49d6d6)=>{_0x49d6d6['isVisible']&&_0x57634a['add'](_0x49d6d6),this['listenTo'](_0x49d6d6,'change:isVisible',_0x48e48f);}),this['listenTo'](_0x4a0f6e,'remove',(_0x13a707,_0x1ccf18)=>{_0x57634a['has'](_0x1ccf18)&&_0x57634a['remove'](_0x1ccf18),this['stopListening'](_0x1ccf18,'change:isVisible',_0x48e48f);});}['_setupEnterAnnotationKeystroke'](){const _0x1fa471=_0x4c786a=>{_0x4c786a['on']('ready',()=>{_0x4c786a['keystrokes']['set'](_0x31fc19,(_0x7696f6,_0x3b5ab0)=>{const _0xc4c755=_0x329f93(this['activeAnnotations']['values']());_0xc4c755&&(_0xc4c755['view']['focus'](),_0x3b5ab0());});});};this['context']instanceof _0x2993f0?_0x1fa471(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x5bf29f,_0x5ba018)=>{_0x1fa471(_0x5ba018);});}['_setupEscapeAnnotationHandling'](){const _0x302561=_0x2d9c89=>{const _0x14018c=_0x2d9c89['source'],_0x6356c0=[];let _0x1fe182;if(Array['isArray'](_0x14018c['target'])){_0x1fe182=_0x14018c['target'][0x0],this['context']instanceof _0x2993f0?_0x6356c0['push'](this['context']):this['context']['editors']&&_0x6356c0['push'](...this['context']['editors']);for(const _0x387080 of _0x6356c0)for(const _0x50d877 of _0x387080['editing']['view']['domRoots']['values']())if(_0x50d877['contains'](_0x1fe182))return void _0x387080['editing']['view']['focus']();_0x1fe182['focus']();}};this['listenTo'](this['collection'],'add',(_0xa2c482,_0x3f56cb)=>{this['listenTo'](_0x3f56cb,'escape',_0x302561,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x14115b,_0x2db2ad)=>{this['stopListening'](_0x2db2ad,'escape',_0x302561);});}}const Tt=Symbol('noChannel'),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x5b032a{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[N,ht,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cd542){super(_0x5cd542),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x38e5b8=this['context']['config'];_0x38e5b8['define']('comments.maxCommentsWhenCollapsed',0x2),_0x38e5b8['define']('comments.maxThreadTotalWeight',0x1f4),_0x38e5b8['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x38e5b8['define']('comments.CommentThreadView',vt),_0x38e5b8['define']('comments.CommentView',gt),_0x38e5b8['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x443fdb=this['context']['plugins']['get'](N);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x313df1,_0x247eb6)=>this['_addCommentThread'](_0x247eb6)),this['on']('submitCommentThread',(_0x1e0d59,_0x354da2)=>this['_submitCommentThread'](_0x354da2)),this['on']('resolveCommentThread',(_0x517ada,_0x5e37fb)=>this['_resolveCommentThread'](_0x5e37fb)),this['on']('resolveCommentThread',(_0x444642,_0xa3382f)=>this['_updateActiveAnnotation'](_0xa3382f),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x51f35f,_0x3a5763)=>this['_reopenCommentThread'](_0x3a5763)),this['on']('reopenCommentThread',(_0x121d66,_0x587114)=>this['_updateActiveAnnotation'](_0x587114),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x2d21ab,_0x4b869c)=>this['_removeCommentThread'](_0x4b869c)),this['on']('updateCommentThread',(_0x3ac8a7,_0x140ba0)=>this['_updateCommentThread'](_0x140ba0)),this['on']('updateCommentThread',(_0x2d3beb,_0xfba82)=>this['_updateActiveAnnotation'](_0xfba82),{'priority':'lowest'}),this['on']('addComment',(_0x4d06a5,_0x1d6aa9)=>this['_addComment'](_0x1d6aa9)),this['on']('updateComment',(_0x37bf79,_0x27175d)=>this['_updateComment'](_0x27175d)),this['on']('removeComment',(_0x4e7bdb,_0x20c956)=>this['_removeComment'](_0x20c956)),this['on']('addComment',(_0x1c6b6a,{threadId:_0x236e4e,isFromAdapter:_0x8e9b49})=>{if(_0x8e9b49)return;const _0x921ed5=this['getCommentThread'](_0x236e4e),_0x31d148=_0x921ed5&&this['_threadToController']['get'](_0x921ed5);_0x31d148&&_0x31d148['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x443fdb,'change:activeAnnotations',(_0x8e4931,_0x407eed,_0x315bd5)=>{const _0x504fc1=Array['from'](_0x315bd5)['map'](_0x2670b8=>this['_viewToController']['get'](_0x2670b8['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x504fc1?_0x504fc1['model']:null;});}set['adapter'](_0x1f6e8a){if(this['_adapter'])throw new _0x437ad0('commentsrepository-adapter-already-set');this['_adapter']=_0x1f6e8a;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4a864e=Tt,threadId:_0x818944=_0x54e4c5(),comments:_0xb6cf20=[],unlinkedAt:_0x1c6153=null,resolvedAt:_0x2889d5=null,resolvedBy:_0x1908af=null,target:_0x30bf8d=null,context:_0x262500=null,attributes:_0x1500ee={},isResolvable:_0x4859d=!0x0,isSubmitted:_0x97c88a=!0x1,isFromAdapter:_0x4872fe=!0x1}={}){return this['fire'](bt('addCommentThread',_0x4a864e),{'channelId':_0x4a864e,'threadId':_0x818944,'comments':_0xb6cf20,'unlinkedAt':_0x1c6153,'resolvedAt':_0x2889d5,'resolvedBy':_0x1908af,'target':_0x30bf8d,'context':_0x262500,'attributes':_0x1500ee,'isFromAdapter':_0x4872fe,'isResolvable':_0x4859d,'isSubmitted':_0x97c88a}),this['getCommentThread'](_0x818944);}['openNewCommentThread']({channelId:_0x483108=Tt,threadId:_0x52746e=_0x54e4c5(),target:_0x30eba7,context:_0xf6c0d1=null,isResolvable:_0x597680=!0x0}){if(this['_readOnlyChannels']['has'](_0x483108)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x30eba7)throw new _0x437ad0('commentsrepository-missing-target');const _0x1a393d=this['addCommentThread']({'channelId':_0x483108,'threadId':_0x52746e,'target':_0x30eba7,'context':_0xf6c0d1,'isResolvable':_0x597680});if(!_0x1a393d)return null;const _0x224de5=this['_threadToController']['get'](_0x1a393d),_0x372d10=_0x224de5['view']['commentThreadInputView']['commentInputView'],_0x30266f=this['context']['plugins']['get'](N),_0x3308e7=_0x30266f['getByInnerView'](_0x224de5['view']);return _0x30266f['activate'](_0x3308e7),_0x372d10['once']('editorReady',()=>_0x372d10['focus']()),_0x1a393d;}['hasCommentThread'](_0x2b6062){if('string'!=typeof _0x2b6062)throw new _0x437ad0('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2b6062);}['updateCommentThread']({channelId:_0x23c94e=Tt,threadId:_0x31aee6,context:_0x43183d,unlinkedAt:_0x2bfa67,attributes:_0x333795,isFromAdapter:_0x26153e=!0x1}){return this['fire'](bt('updateCommentThread',_0x23c94e),{'channelId':_0x23c94e,'threadId':_0x31aee6,'context':_0x43183d,'unlinkedAt':_0x2bfa67,'attributes':_0x333795,'isFromAdapter':_0x26153e}),this['getCommentThread'](_0x31aee6);}['getCommentThread'](_0x1ce9f2){if('string'!=typeof _0x1ce9f2)throw new _0x437ad0('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x1ce9f2);}['fetchCommentThread']({channelId:_0x880871,threadId:_0x5bee68}={}){const _0x3f7978=this['getCommentThread'](_0x5bee68);if(_0x3f7978)return Promise['resolve'](_0x3f7978);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x437ad0('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x880871,'threadId':_0x5bee68})['then'](_0x23b3bd=>this['hasCommentThread'](_0x5bee68)?this['getCommentThread'](_0x5bee68):_0x23b3bd?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x880871},_0x23b3bd)):void 0x0)['catch'](_0xe1c9c2=>{throw console['error'](_0xe1c9c2),new _0x437ad0('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0xacf6d3,skipNotAttached:_0x29a70f=!0x1,skipEmpty:_0x21b500=!0x1,toJSON:_0x3a2ddd=!0x1}={}){const _0x3aa9ce=[];for(const _0x209ad8 of this['_threads']['values']())_0xacf6d3&&_0x209ad8['channelId']!==_0xacf6d3||_0x29a70f&&!_0x209ad8['isAttached']||_0x21b500&&0x0===_0x209ad8['length']||_0x3aa9ce['push'](_0x209ad8);return _0x3a2ddd?_0x3aa9ce['map'](_0x1e5b42=>_0x1e5b42['toJSON']()):_0x3aa9ce;}['setActiveCommentThread'](_0x1acab1){const _0x597431=this['context']['plugins']['get'](N);if(!_0x1acab1)return void(this['activeCommentThread']&&_0x597431['deactivateAll']());const _0x12fdb6=this['getCommentThread'](_0x1acab1);if(!_0x12fdb6)throw new _0x437ad0('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x1acab1});if(!this['_threadToController']['has'](_0x12fdb6))throw new _0x437ad0('commentsrepository-active-not-attached',null,{'threadId':_0x1acab1});const _0x4be3f7=_0x597431['getByInnerView'](this['_threadToController']['get'](_0x12fdb6)['view']);_0x597431['activate'](_0x4be3f7);}['switchReadOnly'](_0x161698,_0xe9bcf3){_0x161698?this['_readOnlyChannels']['add'](_0xe9bcf3):this['_readOnlyChannels']['delete'](_0xe9bcf3),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x277c24){return this['_readOnlyChannels']['has'](_0x277c24)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x3b746c,_0x4ee77a){return new Ct(_0x3b746c,_0x4ee77a);}['setPermissions'](_0x1573ba,_0x54c43e=Tt){this['_permissions']['set'](_0x54c43e,_0x1573ba),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x376efe=Tt){return this['_permissions']['has'](_0x376efe)?this['_permissions']['get'](_0x376efe):_t;}['_addCommentThread']({channelId:_0x2c367e,threadId:_0x2138cc,comments:_0x334e26,unlinkedAt:_0x1d79d0,resolvedAt:_0x1e39ec,resolvedBy:_0x4609d8,target:_0x40fdae,context:_0xc6e06,attributes:_0x1b3365,isFromAdapter:_0x4d468d,isResolvable:_0x412372,isSubmitted:_0x44f2b3}){if('string'!=typeof _0x2138cc)throw new _0x437ad0('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2138cc});if(this['hasCommentThread'](_0x2138cc))throw new _0x437ad0('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x2138cc});const _0x196277=new oe(this,{'channelId':_0x2c367e,'id':_0x2138cc,'context':_0xc6e06,'attributes':_0x1b3365,'unlinkedAt':_0x1d79d0,'resolvedAt':_0x1e39ec,'resolvedBy':_0x4609d8?this['context']['plugins']['get'](it)['getUser'](_0x4609d8):null,'isResolvable':_0x412372,'isSubmitted':_0x44f2b3||_0x4d468d});this['_threads']['set'](_0x2138cc,_0x196277);for(const _0x1b802a of _0x334e26)_0x196277['_add'](this['_createNewComment']({'threadId':_0x2138cc,..._0x1b802a}));return _0x40fdae&&_0x196277['attachTo'](_0x40fdae),_0x4d468d||!_0x196277['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x2c367e,'threadId':_0x2138cc});}['_submitCommentThread']({channelId:_0x3039c8,threadId:_0x24808a}){if(!this['hasCommentThread'](_0x24808a))throw new _0x437ad0('commentsrepository-missing-comment-thread',this);const _0x4ed555=this['getCommentThread'](_0x24808a);if(_0x4ed555['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5d7485,comments:_0x337870,resolvedAt:_0xb81d58,resolvedBy:_0x4024fd,context:_0x25ee36,attributes:_0x17215c}=_0x4ed555,_0x3084c9=this['context']['plugins']['get']('PendingActions'),_0x2222bc=_0x3084c9['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x3039c8,'threadId':_0x5d7485,'comments':_0x337870['map'](_0x573f3b=>_0x573f3b['toJSON']()),'resolvedAt':_0xb81d58,'resolvedBy':_0x4024fd?_0x4024fd['id']:_0x4024fd,'context':_0x25ee36,'attributes':_0x17215c})['then'](({comments:_0x48fdf7})=>{_0x3084c9['remove'](_0x2222bc);for(const _0x10e362 of _0x48fdf7)this['_updateComment']({'channelId':_0x3039c8,'threadId':_0x24808a,'commentId':_0x10e362['commentId'],'createdAt':_0x10e362['createdAt'],'isFromAdapter':!0x0});})['catch'](_0xf14529=>{throw console['error'](_0xf14529),new _0x437ad0('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x3e297a,target:_0x57d7ac}){const _0x339b1b=this['getCommentThread'](_0x3e297a);if(!_0x339b1b)throw new _0x437ad0('commentsrepository-attach-missing-comment-thread',this);const _0x1dc8c9=this['context']['plugins']['get']('PendingActions'),_0x17ee98=this['context']['plugins']['get'](N),_0x365e21=this['_createCommentThreadView'](_0x339b1b),_0x42f37e=new Ct(_0x339b1b,_0x365e21);let _0x4ed621=null;_0x365e21['on']('change:isDirty',(_0x531766,_0x3253aa,_0x112f38)=>{_0x112f38?_0x4ed621=_0x1dc8c9['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4ed621&&(_0x1dc8c9['remove'](_0x4ed621),_0x4ed621=null);}),this['_threadToController']['set'](_0x339b1b,_0x42f37e),this['_viewToController']['set'](_0x365e21,_0x42f37e);const _0x5c945a=new T(this['context']['locale'],_0x365e21);_0x5c945a['bind']('length')['to'](_0x365e21),_0x5c945a['bind']('isDirty')['to'](_0x365e21,'isDirty',_0x365e21,'length',(_0x1fdb21,_0x2dae84)=>_0x1fdb21||!_0x2dae84),_0x5c945a['bind']('isActive')['to'](_0x365e21),_0x5c945a['type']='comment';const _0x43bc8f=new d({'view':_0x5c945a,'target':_0x57d7ac,'type':'comment','isVisible':!_0x339b1b['archivedAt']});return _0x365e21['on']('escape',()=>{_0x43bc8f['fire']('escape');}),this['_bindAnnotationToEditors'](_0x365e21,_0x43bc8f),_0x17ee98['add'](_0x43bc8f),_0x43bc8f;}['_bindAnnotationToEditors'](_0x16271f,_0x1ee597){this['listenTo'](_0x16271f,'editorReady',(_0x21ded7,_0xcbf2cd)=>{const _0x363321=_0xcbf2cd['ui']['view']['body']['bodyCollectionContainer'];_0x1ee597['focusableElements']['add'](_0x363321),this['context']instanceof _0x2993f0&&this['context']['ui']['focusTracker']['add'](_0x363321);},{'priority':'highest'}),this['listenTo'](_0x16271f,'editorDestroyed',(_0xad7c9c,_0x270fda)=>{const _0x4f9175=_0x270fda['ui']['view']['body']['bodyCollectionContainer'];_0x1ee597['focusableElements']['has'](_0x4f9175)&&_0x1ee597['focusableElements']['remove'](_0x4f9175),this['context']instanceof _0x2993f0&&this['context']['ui']['focusTracker']['remove'](_0x4f9175);});}['_unbindEditors'](_0x469b4c){this['stopListening'](_0x469b4c,'editorReady'),this['stopListening'](_0x469b4c,'editorDestroyed');}['_createCommentThreadView'](_0x435091){const _0x108d32=this['context']['plugins']['get'](it),{config:_0x29e19f,locale:_0x2b181d}=this['context'],_0x2c0c50=lt(_0x29e19f['get']('locale'));return new(0x0,(_0x29e19f['get']('comments'))['CommentThreadView'])(_0x2b181d,_0x435091,_0x108d32['me'],{'editorConfig':{..._0x29e19f['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x29e19f['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x29e19f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x29e19f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x29e19f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2c0c50,'CommentView':_0x29e19f['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x45eb2e,channelId:_0x2a446f,resolvedAt:_0x17ab6c,resolvedBy:_0x302e69,isFromAdapter:_0x15ac9a}){if(!this['hasCommentThread'](_0x45eb2e))throw new _0x437ad0('commentsrepository-missing-comment-thread',null,{'threadId':_0x45eb2e});const _0x1ccea2=this['getCommentThread'](_0x45eb2e);if(_0x1ccea2['isResolved'])throw new _0x437ad0('commentsrepository-resolved-comment-thread',null,{'threadId':_0x45eb2e});const _0x212db4=this['context']['plugins']['get'](it);if(_0x1ccea2['resolvedBy']=_0x212db4['getUser'](_0x302e69),_0x1ccea2['resolvedAt']=_0x17ab6c,_0x15ac9a||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x3c1c00=this['context']['plugins']['get']('PendingActions'),_0x22f605=_0x3c1c00['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x2a446f,'threadId':_0x45eb2e})['then'](({resolvedAt:_0x270fcd,resolvedBy:_0x5f0217})=>{_0x3c1c00['remove'](_0x22f605),_0x1ccea2['resolvedBy']['id']!==_0x5f0217&&(_0x1ccea2['resolvedBy']=_0x212db4['getUser'](_0x5f0217)),_0x1ccea2['resolvedAt']=_0x270fcd;})['catch'](_0x399cba=>{throw console['error'](_0x399cba),new _0x437ad0('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x17c94a,channelId:_0x507dfb,isFromAdapter:_0x210f03}){if(!this['hasCommentThread'](_0x17c94a))throw new _0x437ad0('commentsrepository-missing-comment-thread',null,{'threadId':_0x17c94a});const _0xfa77db=this['getCommentThread'](_0x17c94a);if(!_0xfa77db['isResolved'])throw new _0x437ad0('commentsrepository-reopen-comment-thread',null,{'threadId':_0x17c94a});if(_0xfa77db['resolvedBy']=null,_0xfa77db['resolvedAt']=null,_0x210f03||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2cd7b5=this['context']['plugins']['get']('PendingActions'),_0x2a00c4=_0x2cd7b5['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x507dfb,'threadId':_0x17c94a})['then'](()=>_0x2cd7b5['remove'](_0x2a00c4))['catch'](_0x20d597=>{throw console['error'](_0x20d597),new _0x437ad0('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x47276e,isFromAdapter:_0x51c5a0}){const _0x426712=this['getCommentThread'](_0x47276e);if(!_0x426712)throw new _0x437ad0('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x47276e),this['_threads']['delete'](_0x47276e),!_0x426712['isSubmitted']||_0x51c5a0||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0xbdd5f3=this['context']['plugins']['get']('PendingActions'),{channelId:_0x16f5e2}=_0x426712,_0x324d5c=_0xbdd5f3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x16f5e2,'threadId':_0x47276e})['then'](()=>_0xbdd5f3['remove'](_0x324d5c))['catch'](_0x2dc7bc=>{throw console['error'](_0x2dc7bc),new _0x437ad0('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3bdf66,unlinkedAt:_0x4cddad,context:_0x24a7c3,attributes:_0x229025,isFromAdapter:_0x57b3e8}){if('string'!=typeof _0x3bdf66)throw new _0x437ad0('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3bdf66});if(!this['hasCommentThread'](_0x3bdf66))throw new _0x437ad0('commentsrepository-missing-comment-thread',null,{'threadId':_0x3bdf66});const _0x3f66d9=this['getCommentThread'](_0x3bdf66);let _0x155b32=!0x1;if(void 0x0!==_0x24a7c3&&_0x3f66d9['context']!==_0x24a7c3&&(_0x3f66d9['context']=_0x24a7c3,_0x155b32=!0x0),void 0x0!==_0x4cddad&&_0x3f66d9['unlinkedAt']!==_0x4cddad&&(_0x3f66d9['unlinkedAt']=_0x4cddad,_0x155b32=!0x0),_0x229025&&!wt(_0x229025,_0x3f66d9['attributes'])&&(_0x3f66d9['attributes']=_0x229025,_0x155b32=!0x0),!_0x155b32)return Promise['resolve']();if(!_0x3f66d9['isSubmitted']||_0x57b3e8||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x53eb5d=this['context']['plugins']['get']('PendingActions'),{channelId:_0x281dbb}=_0x3f66d9,_0x561531=_0x53eb5d['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x281dbb,'threadId':_0x3bdf66,'context':_0x24a7c3,'unlinkedAt':_0x4cddad,'attributes':_0x229025})['then'](()=>_0x53eb5d['remove'](_0x561531))['catch'](_0xa2ade=>{throw console['error'](_0xa2ade),new _0x437ad0('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x5c600d){const _0x2ffaa8=this['context']['plugins']['get'](N),_0x16bb03=this['getCommentThread'](_0x5c600d);if(_0x16bb03['_isAttached']=!0x1,this['_threadToController']['has'](_0x16bb03)){const _0x517d05=this['_threadToController']['get'](_0x16bb03),_0x2289b7=_0x517d05['view'],_0xe99512=_0x2ffaa8['getByInnerView'](_0x2289b7);this['_threadToController']['delete'](_0x16bb03),this['_viewToController']['delete'](_0x2289b7),_0xe99512&&_0x2ffaa8['remove'](_0xe99512),_0x517d05['destroy'](),_0x2289b7['destroy']()['then'](()=>{this['_unbindEditors'](_0x2289b7);});}}['_updateActiveAnnotation']({threadId:_0x54077a,resolvedAt:_0x2dbcf3}){const _0x2ebca4=!!_0x2dbcf3,_0x2effb4=this['context']['plugins']['get'](N),_0x465133=this['getCommentThread'](_0x54077a);if(this['_threadToController']['has'](_0x465133)){const _0x51abba=this['_threadToController']['get'](_0x465133)['view'],_0x448105=_0x2effb4['getByInnerView'](_0x51abba);_0x448105&&(_0x2ebca4&&_0x2effb4['_removeActiveAnnotation'](_0x448105),_0x448105['refreshVisibility']());}}['_getExternalAuthor'](_0x4224db){const _0x4b4c8a=this['context']['plugins']['get'](it),_0x50e2c1=pt('external:'+_0x4224db),_0x42cee5=_0x4b4c8a['getUser'](_0x50e2c1);return _0x42cee5||_0x4b4c8a['addUser']({'id':_0x50e2c1,'name':_0x4224db});}['_createNewComment']({threadId:_0x162dcf,commentId:_0x13b62e=_0x54e4c5(),content:_0x1131db,authorId:_0x2612fb,createdAt:_0x9296e8,attributes:_0x49ee8b}){if('string'!=typeof _0x13b62e)throw new _0x437ad0('commentsrepository-invalid-commentid');if('string'!=typeof _0x2612fb)throw new _0x437ad0('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x1131db||!_0x1131db['trim']())throw new _0x437ad0('commentsrepository-invalid-comment-content');const _0x242199=this['context']['plugins']['get'](it)['getUser'](_0x2612fb);if(!_0x242199)throw new _0x437ad0('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x2612fb});let _0x3b494b=null,_0x2fa882=_0x9296e8;return _0x49ee8b&&_0x49ee8b['@external']&&(_0x3b494b=this['_getExternalAuthor'](_0x49ee8b['@external']['authorName']),_0x2fa882=new Date(_0x49ee8b['@external']['createdAt'])),new re(this,{'threadId':_0x162dcf,'id':_0x13b62e,'author':_0x3b494b||_0x242199,'creator':_0x242199,'content':_0x1131db,'createdAt':_0x9296e8,'authoredAt':_0x2fa882,'attributes':_0x49ee8b});}['_addComment'](_0x35ae5e){let {threadId:_0x53659a,content:_0x1a2904,attributes:_0x53004b,isFromAdapter:_0x3dc6a1}=_0x35ae5e;const _0x47309c=this['getCommentThread'](_0x35ae5e['threadId']);if(!_0x47309c)throw new _0x437ad0('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x320382=this['_createNewComment'](_0x35ae5e),{id:_0x161a47}=_0x320382;if(_0x47309c['_add'](_0x320382),_0x3dc6a1||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x47309c['isSubmitted'])return Promise['resolve']();const _0x1d9ebc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x478d01}=_0x47309c,_0x1f2397=_0x1d9ebc['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x53004b||(_0x53004b={}),this['adapter']['addComment']({'channelId':_0x478d01,'threadId':_0x53659a,'commentId':_0x161a47,'content':_0x1a2904,'attributes':_0x53004b})['then'](_0x2bdb74=>{_0x1d9ebc['remove'](_0x1f2397),_0x2bdb74&&this['_updateComment']({'channelId':_0x478d01,'threadId':_0x53659a,'commentId':_0x161a47,'createdAt':_0x2bdb74['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x405583=>{throw console['error'](_0x405583),new _0x437ad0('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x3546a5,commentId:_0xe705fa,content:_0x4b78fb,createdAt:_0x28a0fd,attributes:_0x5606bc,isFromAdapter:_0x28809f}){if(void 0x0!==_0x4b78fb&&('string'!=typeof _0x4b78fb||!_0x4b78fb['trim']()['length']))throw new _0x437ad0('commentsrepository-update-comment-invalid-content');const _0x53d94e=this['getCommentThread'](_0x3546a5),_0x479de5=_0x53d94e['getComment'](_0xe705fa);if(!_0x479de5)throw new _0x437ad0('commentsrepository-update-missing-comment',this);let _0x244f88=!0x1;if(_0x4b78fb&&_0x4b78fb!==_0x479de5['content']&&(_0x479de5['isEditable']||_0x28809f)&&(_0x479de5['content']=_0x4b78fb,_0x244f88=!0x0),_0x28a0fd&&_0x28a0fd!==_0x479de5['createdAt']&&(_0x479de5['createdAt']=_0x28a0fd,_0x479de5['attributes']&&_0x479de5['attributes']['@external']||(_0x479de5['authoredAt']=_0x28a0fd),_0x244f88=!0x0),_0x5606bc&&!wt(_0x5606bc,_0x479de5['attributes'])&&(_0x479de5['attributes']=_0x5606bc,_0x244f88=!0x0),!_0x244f88)return Promise['resolve']();if(_0x53d94e['fire']('commentUpdated'),_0x28809f||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x38b2d1=this['context']['plugins']['get']('PendingActions'),{channelId:_0x35fcd8}=this['getCommentThread'](_0x479de5['threadId']),_0x1e2a85=_0x38b2d1['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x35fcd8,'threadId':_0x3546a5,'commentId':_0xe705fa,'content':_0x4b78fb,'attributes':_0x5606bc})['then'](()=>_0x38b2d1['remove'](_0x1e2a85))['catch'](_0x52655d=>{throw console['error'](_0x52655d),new _0x437ad0('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x16f162,commentId:_0x53802a,isFromAdapter:_0xca5ce2}){const _0x20ec15=this['getCommentThread'](_0x16f162),_0x37d823=_0x20ec15['getComment'](_0x53802a);if(!_0x37d823)throw new _0x437ad0('commentsrepository-remove-missing-comment',this);if(_0x20ec15['_remove'](_0x37d823),_0xca5ce2||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0xd92bc3=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3d4d6f}=_0x20ec15,_0x11858a=_0xd92bc3['add'](S(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3d4d6f,'threadId':_0x16f162,'commentId':_0x53802a})['then'](()=>_0xd92bc3['remove'](_0x11858a))['catch'](_0x223818=>{throw console['error'](_0x223818),new _0x437ad0('commentsrepository-remove-comment-internal-error',this);});}}class oe extends/* #__PURE__ -- @preserve */
30
+ _0x270d98(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4843d0,_0x3435c7){super();const _0x2a8b1f=_0x3435c7['isResolvable'];this['channelId']=_0x3435c7['channelId'],this['id']=_0x3435c7['id'],this['comments']=new _0x5251bb(),this['_repository']=_0x4843d0,this['_isAttached']=!0x1,this['_isSubmitted']=_0x3435c7['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4843d0,'_permissions',_0x4843d0,'_readOnlyChannels',()=>_0x4843d0['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4843d0,'_permissions',()=>_0x4843d0['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4843d0,'_permissions',()=>{const _0x4485a2=_0x4843d0['getPermissions'](this['channelId']);return _0x4485a2['write']||_0x4485a2['admin'];}),this['bind']('isResolvable')['to'](_0x4843d0,'_permissions',()=>_0x2a8b1f&&_0x4843d0['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x3435c7['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x5e6b7e,_0x4cab17)=>_0x5e6b7e?_0x4cab17?_0x5e6b7e<_0x4cab17?_0x5e6b7e:_0x4cab17:_0x5e6b7e:_0x4cab17),this['set']('unlinkedAt',_0x3435c7['unlinkedAt']||null),this['set']('resolvedAt',_0x3435c7['resolvedAt']||null),this['set']('resolvedBy',_0x3435c7['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x253290=>!!_0x253290),this['set']('attributes',_0x3435c7['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x29e8d4,_0x3656d8)=>_0x29e8d4+_0x3656d8['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2ff382,id:_0x4b1a18}=this;this['_repository']['fire'](bt('submitCommentThread',_0x2ff382),{'channelId':_0x2ff382,'threadId':_0x4b1a18});}['setUnlinkedAt'](_0x1e9cbc){this['_update']({'unlinkedAt':_0x1e9cbc});}['resolve']({resolvedAt:_0x1aff6c=new Date(),resolvedBy:_0x469317=null,isFromAdapter:_0x1ed719=!0x1}={}){const _0x2bffcf=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x3b319b,id:_0x57d91e}=this;this['_repository']['fire'](bt('resolveCommentThread',_0x3b319b),{'channelId':_0x3b319b,'threadId':_0x57d91e,'resolvedAt':_0x1aff6c,'resolvedBy':_0x469317||_0x2bffcf['id'],'isFromAdapter':_0x1ed719});}['reopen']({isFromAdapter:_0xb13a36=!0x1}={}){const {channelId:_0x406e8a,id:_0xf459b4}=this;this['_repository']['fire'](bt('reopenCommentThread',_0x406e8a),{'channelId':_0x406e8a,'threadId':_0xf459b4,'isFromAdapter':_0xb13a36});}['setContext'](_0x4e700f){this['context']||this['_update']({'context':_0x4e700f});}['setAttribute'](_0x57f5e7,_0xefb9d9){const _0x3a7fe5=It(this['attributes']);At(_0x3a7fe5,_0x57f5e7,_0xefb9d9),this['_update']({'attributes':_0x3a7fe5});}['removeAttribute'](_0x38eb32){const _0x593458=It(this['attributes']);yt(_0x593458,_0x38eb32),this['_update']({'attributes':_0x593458});}['remove']({isFromAdapter:_0x5bdbe3=!0x1}={}){const {channelId:_0x3a8dbd,id:_0x2a95b3}=this;this['_repository']['fire'](bt('removeCommentThread',_0x3a8dbd),{'channelId':_0x3a8dbd,'threadId':_0x2a95b3,'isFromAdapter':_0x5bdbe3});}['attachTo'](_0x939b15){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x939b15});}['addComment'](_0x2f3414){const {channelId:_0x325b96,id:_0xf4d16f}=this;this['_repository']['fire'](bt('addComment',_0x325b96,_0xf4d16f),Object['assign']({'channelId':_0x325b96,'threadId':_0xf4d16f},_0x2f3414));}['getComment'](_0xa2dced){if('string'!=typeof _0xa2dced)throw new _0x437ad0('commentsrepository-get-comment-invalid-id',null,{'commentId':_0xa2dced});return this['comments']['get'](_0xa2dced);}['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'](_0x4108d1=>_0x4108d1['toJSON']()),'attributes':this['attributes']};}['_add'](_0x4e3538){return this['listenTo'](_0x4e3538,'change:authoredAt',()=>{const _0x1a44d3=this['_findOptimalIndex'](_0x4e3538),_0xdea63f=this['comments'];_0x1a44d3-0x1!=_0xdea63f['getIndex'](_0x4e3538)&&_0x1a44d3+0x1!=_0xdea63f['getIndex'](_0x4e3538)&&(this['_remove'](_0x4e3538),this['_add'](_0x4e3538));}),this['comments']['add'](_0x4e3538,this['_findOptimalIndex'](_0x4e3538));}['_update'](_0x4a54be){const {channelId:_0x47afc0,id:_0x5bd383}=this;this['_repository']['fire'](bt('updateCommentThread',_0x47afc0),{..._0x4a54be,'channelId':_0x47afc0,'threadId':_0x5bd383});}['_remove'](_0x2c1839){return this['stopListening'](_0x2c1839),_0x2c1839['destroy'](),this['comments']['remove'](_0x2c1839);}['_findOptimalIndex'](_0x21634f){const _0x5e96f7=this['comments']['find'](_0x10f725=>new Date(_0x10f725['authoredAt'])['getTime']()>new Date(_0x21634f['authoredAt'])['getTime']());return _0x5e96f7?this['comments']['getIndex'](_0x5e96f7):this['length'];}}class re extends/* #__PURE__ -- @preserve */
31
+ _0x270d98(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x2ed3a8,_0xdd2a03){super();const _0x2c7706=_0x2ed3a8['context']['plugins']['get'](it)['me'],_0x506c2b=_0x2ed3a8['getCommentThread'](_0xdd2a03['threadId']),_0x433fcb=0x0===_0x506c2b['comments']['length'],_0x420740=_0x2c7706===_0xdd2a03['author'];this['id']=_0xdd2a03['id'],this['threadId']=_0xdd2a03['threadId'],this['author']=_0xdd2a03['author'],this['creator']=_0xdd2a03['creator'],this['isExternal']=Boolean(_0xdd2a03['attributes']&&_0xdd2a03['attributes']['@external']),this['set']('content',_0xdd2a03['content']),this['createdAt']=_0xdd2a03['createdAt']||new Date(),this['set']('authoredAt',_0xdd2a03['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x506c2b,'resolvedAt'),this['set']('attributes',_0xdd2a03['attributes']||{}),this['bind']('isEditable')['to'](_0x2ed3a8,'_permissions',()=>{const _0x19310b=_0x2ed3a8['getPermissions'](_0x506c2b['channelId'])['write'],_0x306e10=_0x2ed3a8['getPermissions'](_0x506c2b['channelId'])['modifyAll'];return _0x420740&&_0x19310b||!_0x420740&&_0x306e10;}),this['bind']('isRemovable')['to'](_0x506c2b,'isRemovable',_0x2ed3a8,'_permissions',_0x350249=>{const _0x4714e0=_0x2ed3a8['getPermissions'](_0x506c2b['channelId'])['write'],_0x5d41db=_0x2ed3a8['getPermissions'](_0x506c2b['channelId'])['modifyAll'];return _0x420740&&_0x4714e0||_0x350249&&_0x433fcb||!_0x420740&&_0x5d41db&&!_0x433fcb;}),this['bind']('isReadOnly')['to'](_0x506c2b,'isReadOnly'),this['_repository']=_0x2ed3a8;}get['weight'](){return Math['max'](function(_0x468162){const _0x4a0d3d=document['createElement']('div');return _0x4a0d3d['innerHTML']=_0x468162,_0x4a0d3d['textContent']['length'];}(this['content']),0xc8);}['update'](_0x2bc54e){const {threadId:_0x2705aa,id:_0xb72581}=this;if(!this['_repository']['hasCommentThread'](_0x2705aa))throw new _0x437ad0('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x17683c}=this['_repository']['getCommentThread'](_0x2705aa);this['_repository']['fire'](bt('updateComment',_0x17683c,_0x2705aa),{'channelId':_0x17683c,'threadId':_0x2705aa,'commentId':_0xb72581,..._0x2bc54e});}['setAttribute'](_0x1decba,_0x14bc2c){const _0x2554c1=It(this['attributes']);At(_0x2554c1,_0x1decba,_0x14bc2c),this['update']({'attributes':_0x2554c1});}['removeAttribute'](_0x36b3dc){const _0x560e87=It(this['attributes']);yt(_0x560e87,_0x36b3dc),this['update']({'attributes':_0x560e87});}['remove'](_0x39bfd0={}){if(!_0x39bfd0['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x425d6d,id:_0x49b6e4}=this;if(!this['_repository']['hasCommentThread'](_0x425d6d))throw new _0x437ad0('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x24b2b5}=this['_repository']['getCommentThread'](_0x425d6d);this['_repository']['fire'](bt('removeComment',_0x24b2b5,_0x425d6d),{'channelId':_0x24b2b5,'threadId':_0x425d6d,'commentId':_0x49b6e4,..._0x39bfd0});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function bt(_0x323180,..._0x49cb1c){for(const _0x42cf26 of _0x49cb1c)void 0x0!==_0x42cf26&&(_0x323180+=':'+String(_0x42cf26));return _0x323180;}class J extends _0x5a6741{['refresh'](){const _0x47d049=this['editor']['model']['document']['selection'];for(const _0x164387 of _0x47d049['getRanges']())if(this['_hasContent'](_0x164387))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x5be55e=_0x54e4c5()}={}){const _0xcefb43=this['editor']['model'],_0x33a104=[];for(const _0x55e3bd of _0xcefb43['document']['selection']['getRanges']())this['_hasContent'](_0x55e3bd)&&_0x33a104['push'](this['_trimToContent'](_0x55e3bd));_0xcefb43['change'](_0x4b8cc9=>{for(const _0x253bb8 of _0x33a104){const _0x5b206c=_0x54e4c5()['substr'](0x1,0x5),_0x1a2598='comment:'+_0x5be55e+':'+_0x5b206c;_0x4b8cc9['addMarker'](_0x1a2598,{'range':_0x253bb8,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x13496f){for(const _0x317daf of _0x13496f['getItems']())if(this['_itemIsContent'](_0x317daf))return!0x0;return!0x1;}['_itemIsContent'](_0x437ef7){return _0x437ef7['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x437ef7)&&!_0x437ef7['is']('element','tableCell');}['_trimToContent'](_0x28fc5a){const _0x310953=_0x586ffb=>!this['_itemIsContent'](_0x586ffb['item']),_0x1c971d=_0x28fc5a['start']['getLastMatchingPosition'](_0x310953),_0x5bc96f=_0x28fc5a['end']['getLastMatchingPosition'](_0x310953,{'direction':'backward'});return this['editor']['model']['createRange'](_0x1c971d,_0x5bc96f);}}class P extends _0x2fdcc6{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[N];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c1982){super(_0x1c1982),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x490dde=this['editor'],_0x49454d=_0x490dde['model']['document']['selection'],_0x1ed622=_0x48ce67(()=>this['refreshSelectedViews'](),0xa);_0x49454d['on']('change:range',(_0x46d34a,_0x3a49b2)=>{_0x3a49b2['directChange']&&(_0x1ed622['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x490dde['editing']['view']['document'],'change:isFocused',(_0x30613e,_0x509ed4,_0x5a69cd)=>{_0x5a69cd&&_0x1ed622();}),this['listenTo'](_0x490dde['ui']['focusTracker'],'change:isFocused',(_0x356b4e,_0x193a39,_0x3df010)=>{_0x3df010||_0x490dde['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x12e8ec=>this['_editorAnnotationsData']['has'](_0x12e8ec['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4d37b){if(this['_editorAnnotations']['has'](_0x4d37b['view']))return;this['_editorAnnotations']['add'](_0x4d37b['view']),this['editor']['ui']['focusTracker']['add'](_0x4d37b['view']['element']);const _0x219b58=this['editor']['plugins']['get'](N);this['listenTo'](_0x219b58['collection'],'remove',(_0x275b61,_0x59d362)=>{this['editor']['ui']['focusTracker']['remove'](_0x59d362['view']['element']),this['_editorAnnotations']['delete'](_0x59d362['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x38f693){if('function'!=typeof _0x38f693)throw new _0x437ad0('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x38f693);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x58a72f,annotations:_0x40c7af}){const _0x3f671c=[],_0x203069=this['editor']['model']['document']['selection'],_0x4ec42e=Array['from'](_0x203069['getRanges']());for(const [_0x50f160,_0x4641c6]of this['_editorAnnotationsData']){const _0xc04c9f=_0x3307a5(_0x4641c6),_0x4af305=_0x40c7af['getByInnerView'](_0x50f160);_0xc04c9f&&_0x4af305&&_0x3f671c['push']({'annotation':_0x4af305,'range':_0xc04c9f});}function _0x3307a5(_0x59932f){for(const _0x23d309 of _0x59932f)for(const _0x44ea41 of _0x4ec42e)if(_0x23d309['containsRange'](_0x44ea41,!_0x203069['isCollapsed']))return _0x23d309;return null;}return _0x3f671c['sort']((_0x5a734a,_0x365c83)=>{const _0x39e00b=_0x5a734a['range'],_0x318b0b=_0x365c83['range'];if(!_0x39e00b['isEqual'](_0x318b0b)){if(_0x39e00b['containsRange'](_0x318b0b,!0x0))return 0x1;if(_0x318b0b['containsRange'](_0x39e00b,!0x0))return-0x1;}return _0x5a734a['annotation']==_0x58a72f?-0x1:_0x365c83['annotation']==_0x58a72f?0x1:0x0;})['map'](_0x3582e8=>_0x3582e8['annotation']);}get['_editorAnnotationsData'](){const _0x4a63e2=new Map();for(const _0x16dcc0 of Array['from'](this['_dataCollectors']))for(const [_0x3489bc,_0x5d243b]of _0x16dcc0())_0x4a63e2['set'](_0x3489bc,_0x5d243b);return _0x4a63e2;}}class st extends _0x2fdcc6{['afterInit'](){const _0x1ad25c=this['editor'];if(!_0x1ad25c['plugins']['has']('RestrictedEditingModeEditing'))return;_0x1ad25c['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x2fdcc6{constructor(_0x7546a){super(_0x7546a),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x43d623=this['editor'],_0x3bb410=_0x43d623['commands']['get']('importWord'),_0x4deb86=_0x43d623['plugins']['get'](it);_0x3bb410&&(_0x3bb410['on']('execute',(_0x1ffce3,[,_0x3d6a49])=>{_0x3d6a49['collaboration_features']={'comments':!0x0,'user_id':_0x4deb86['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x3bb410,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x2d3546,_0x2894fe){const {comment_threads:_0x157a2c}=_0x2894fe;_0x157a2c&&_0x157a2c['forEach'](({thread_id:_0x15f7b8,comments:_0x437019,is_resolved:_0x204cc1})=>{const _0x2b9f0a=new Date(),_0x321610=_0x437019['map'](({author:_0x59e444,content:_0x10d4c9,created_at:_0x4333ce})=>({'content':_0x10d4c9,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x2b9f0a,'attributes':{'@external':{'authorName':_0x59e444,'createdAt':_0x4333ce?new Date(_0x4333ce):new Date(),'source':'importWord'}}})),_0x57df71=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x57df71,'threadId':_0x15f7b8,'comments':_0x321610,'resolvedAt':_0x204cc1?_0x2b9f0a:null});});}}class at extends _0x2fdcc6{constructor(_0x313f3a){super(_0x313f3a),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x54c0c5=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x54c0c5,'contentInsertion',(_0x29d0ed,_0x36dc23)=>this['_removeMarkersWithoutThreads'](_0x36dc23['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x59674b){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x59674b;const _0xc3a304=this['editor']['plugins']['get']('CommentsRepository');for(const _0x3f2751 of _0x59674b['keys']()){const [_0x3776a1,_0x16cb0d]=_0x3f2751['split'](':');'comment'!=_0x3776a1||_0xc3a304['hasCommentThread'](_0x16cb0d)||_0x59674b['delete'](_0x3f2751);}return _0x59674b;}['_registerMarkerInClipboardPipeline'](){const _0x99b6dc=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x7fffdc=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x7fffdc&&_0x99b6dc['_registerMarkerToCopy']('comment',_0x7fffdc);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x5c712d){switch(_0x5c712d){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}class ut extends _0x2fdcc6{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x376cda,_0x5d68ef)=>{if(!_0x5d68ef['options']['showCommentHighlights'])return null;if(_0x5d68ef['options']['ignoreResolvedComments']){const {id:_0x5776ff}=er(_0x376cda['markerName']),_0x71f456=this['editor']['plugins']['get'](o)['getCommentThread'](_0x5776ff);if(_0x71f456&&_0x71f456['isResolved']&&_0x376cda['item'])return _0x5d68ef['consumable']['consume'](_0x376cda['item'],'addMarker:'+_0x376cda['markerName']),_0x5d68ef['consumable']['consume'](_0x376cda['item'],'removeMarker:'+_0x376cda['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3a6b21=>{_0x3a6b21['on']('addMarker:comment',(_0x5014b1,_0x2701b7,_0x12cdfb)=>{if(!_0x12cdfb['options']['showCommentHighlights'])return;const _0xa42522=_0x2701b7['item'];if(!_0xa42522)return;const _0x234e9b=_0x12cdfb['mapper']['toViewElement'](_0xa42522);this['editor']['model']['schema']['isObject'](_0xa42522)&&_0x234e9b&&!_0x234e9b['getCustomProperty']('widget')&&_0x234e9b['is']('containerElement')&&_0x27d504(_0x234e9b,_0x12cdfb['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x58e7d7,{writer:_0x46bb8c,options:_0x45763f})=>{if(!_0x45763f['showCommentHighlights'])return null;const _0x1af455=_0x46bb8c['createContainerElement']('div'),_0x1c91f4=_0x46bb8c['createEmptyElement']('hr');return _0x46bb8c['addClass']('ck-horizontal-line',_0x1af455),_0x46bb8c['insert'](_0x46bb8c['createPositionAt'](_0x1af455,0x0),_0x1c91f4),_0x1af455;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x50d729,{writer:_0x28e507,options:_0x37af0c})=>{if(!_0x37af0c['showCommentHighlights'])return null;const _0x1d46b8=_0x28e507['createContainerElement']('span'),_0x3e237d=_0x28e507['createEmptyElement']('img');return _0x28e507['addClass']('image-inline',_0x1d46b8),_0x28e507['insert'](_0x28e507['createPositionAt'](_0x1d46b8,0x0),_0x3e237d),_0x1d46b8;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x22b232,{writer:_0x50b148,options:_0x4c6c05})=>{if(_0x4c6c05['showCommentHighlights'])return _0x50b148['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x215e97,_0x153898,_0x3f8a3e)=>{_0x3f8a3e['options']['showCommentHighlights']&&_0x215e97['stop']();},{'priority':'high'});}}class r extends _0x2fdcc6{static get['requires'](){return[o,P,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5af3b4){super(_0x5af3b4),this['set']('isThreadsLoadingPaused',!0x0),_0x5af3b4['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2af3ad,_0xb6e4de,_0x59cf60,_0x5a5b89)=>{const _0xa502f7=_0x5af3b4['plugins']['get'](o),_0x4ceed3=_0x59cf60?er(_0x59cf60)['id']:null;_0x5af3b4['model']['change'](()=>{if(_0x4ceed3){const _0xad17e0=this['getAllMarkersForId'](_0x4ceed3);for(const _0x5a4b82 of _0xad17e0)_0x5af3b4['editing']['reconvertMarker'](_0x5a4b82);}if(_0x5a5b89){const {id:_0x163f79}=er(_0x5a5b89),_0x59aa29=_0xa502f7['getCommentThread'](_0x163f79);if(_0x59aa29&&!_0x59aa29['isAttached'])return;const _0x1ed1d9=this['getAllMarkersForId'](_0x163f79);for(const _0x4d3b3a of _0x1ed1d9)_0x5af3b4['editing']['reconvertMarker'](_0x4d3b3a);}}),_0x4ceed3&&this['scrollToThreadMarker'](_0x4ceed3);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x555372=this['editor'],_0x3461db=_0x555372['plugins']['get'](o),_0x1920ae=_0x555372['config']['get']('collaboration.channelId'),_0x28243c=_0x3461db['getCommentThreads']()['filter'](_0x23864=>_0x23864['channelId']!==_0x1920ae);_0x555372['commands']['add']('addCommentThread',new J(_0x555372)),this['listenTo'](_0x555372,'change:isReadOnly',(_0x12c8ed,_0x10268c,_0x9ed4b6)=>{_0x3461db['switchReadOnly'](_0x9ed4b6,_0x555372['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x3461db,ft('addCommentThread',_0x1920ae),(_0x3c4017,{threadId:_0x4faeea})=>{const _0x23ea43=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4faeea);_0x23ea43&&_0x23ea43['unlinkedAt']&&this['_attachArchivedThread'](_0x4faeea);}),this['listenTo'](_0x3461db,ft('removeCommentThread',_0x1920ae),(_0x3a847d,{threadId:_0x293865})=>{_0x555372['model']['enqueueChange']({'isUndoable':!0x1},_0x15d710=>{const _0x53451b=this['getAllMarkersForId'](_0x293865);for(const _0x482724 of _0x53451b)_0x15d710['removeMarker'](_0x482724);});}),this['listenTo'](_0x3461db,ft('resolveCommentThread',_0x1920ae),(_0x1de834,{threadId:_0x219325})=>{(this['_reconvertMarkers'](_0x219325),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x219325)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x3461db,ft('reopenCommentThread',_0x1920ae),(_0x29aa2b,{threadId:_0x3d16df})=>{this['_reconvertMarkers'](_0x3d16df);},{'priority':'low'}),this['listenTo'](_0x3461db,ft('addComment',_0x1920ae),(_0x40d234,{threadId:_0x581d2f,isFromAdapter:_0x3b0569})=>{const _0x33ea09=this['getAllMarkersForId'](_0x581d2f);if(_0x3b0569||0x0==_0x33ea09['length']||!_0x3461db['hasCommentThread'](_0x581d2f))return;0x1===_0x3461db['getCommentThread'](_0x581d2f)['length']&&_0x555372['model']['enqueueChange']({'isUndoable':!0x1},_0x3993d5=>{for(const _0x15c2a7 of _0x33ea09)_0x3993d5['updateMarker'](_0x15c2a7,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x28243c);}['afterInit'](){!async function(_0x4431a7){const _0x20a373=_0x2631f3([0x4b,0x70,0x53,0x77,0x68,0x79,0x35,0x61,0x74,0x6c,0x67,0x33,0x54,0x34,0x4c,0x30,0x43,0x48,0x69,0x4d,0x57,0x66,0x44,0x4a,0x49,0x63,0x55,0x36,0x39,0x7a,0x37,0x59,0x58,0x46,0x52,0x6b,0x5a,0x4f,0x31,0x65,0x75,0x6f,0x56,0x42,0x41,0x6d,0x47,0x6e,0x78,0x72,0x71,0x45,0x73,0x76,0x50,0x51,0x32,0x64,0x38,0x4e,0x62,0x6a]),_0x1de219=0x576ad4a4,_0x1fb44a=0x576d8a8c^_0x1de219,_0x47b9=window[_0x2631f3([0x44,0x61,0x74,0x65])][_0x2631f3([0x6e,0x6f,0x77])](),_0x597cca=_0x4431a7[_0x2631f3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31a0e1=new window[(_0x2631f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111f84=>{_0x597cca[_0x2631f3([0x6f,0x6e,0x63,0x65])](_0x2631f3([0x72,0x65,0x61,0x64,0x79]),_0x111f84);}),_0xa746c5={[_0x2631f3([0x6b,0x74,0x79])]:_0x2631f3([0x45,0x43]),[_0x2631f3([0x75,0x73,0x65])]:_0x2631f3([0x73,0x69,0x67]),[_0x2631f3([0x63,0x72,0x76])]:_0x2631f3([0x50,0x2d,0x32,0x35,0x36]),[_0x2631f3([0x78])]:_0x2631f3([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]),[_0x2631f3([0x79])]:_0x2631f3([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]),[_0x2631f3([0x61,0x6c,0x67])]:_0x2631f3([0x45,0x53,0x32,0x35,0x36])},_0x2833c0=_0x597cca[_0x2631f3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2631f3([0x67,0x65,0x74])](_0x2631f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22948f(){let _0x583548,_0x1b0fb6=null,_0x132b11=null;try{if(_0x2833c0==_0x2631f3([0x47,0x50,0x4c]))return _0x2631f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x583548=_0x2ca848(),!_0x583548)return _0x2631f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x583548[_0x2631f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x132b11=_0x239822(_0x583548[_0x2631f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x583548[_0x2631f3([0x6a,0x74,0x69])])),await _0x5cfa05()?_0x587454()?_0x46b4ba()?_0x2631f3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xeda8d5()?(_0x583548[_0x2631f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2631f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b0fb6=_0x1e5c9a(_0x2631f3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x583548[_0x2631f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2631f3([0x74,0x72,0x69,0x61,0x6c])&&(_0x1b0fb6=_0x1e5c9a(_0x2631f3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14e659()):_0x2631f3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2631f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2631f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46903c){return _0x2631f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46b4ba(){const _0x12ad96=[_0x2631f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2631f3([0x74,0x72,0x69,0x61,0x6c])][_0x2631f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x583548[_0x2631f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47b9/0x3e8:0xe10*_0x1fb44a;return _0x583548[_0x2631f3([0x65,0x78,0x70])]<_0x12ad96;}function _0x587454(){const _0x443b14=_0x583548[_0x2631f3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x443b14)return!0x1;if(_0x443b14[_0x2631f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2631f3([0x2a])))return!0x0;if(_0x443b14[_0x2631f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2631f3([0x43,0x4d,0x54])))return!0x0;if(_0x443b14[_0x2631f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2631f3([0x52,0x43,0x4d,0x54]))){if(_0x2336ad())return!0x0;if(_0x184798()||_0x32da71())return!0x0;}return!0x1;}function _0xeda8d5(){const _0x494477=_0x583548[_0x2631f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x494477||0x0==_0x494477[_0x2631f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a7fae}=new URL(window[_0x2631f3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x494477[_0x2631f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a7fae))return!0x0;const _0x570906=_0x4a7fae[_0x2631f3([0x73,0x70,0x6c,0x69,0x74])](_0x2631f3([0x2e]));return _0x494477[_0x2631f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x246dc8=>_0x246dc8[_0x2631f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2631f3([0x2a])))[_0x2631f3([0x6d,0x61,0x70])](_0x24570e=>_0x24570e[_0x2631f3([0x73,0x70,0x6c,0x69,0x74])](_0x2631f3([0x2e])))[_0x2631f3([0x73,0x6f,0x6d,0x65])](_0x4c91f5=>_0x570906[_0x2631f3([0x65,0x76,0x65,0x72,0x79])]((_0x3f6cff,_0x50c724)=>_0x4c91f5[_0x50c724]===_0x3f6cff||_0x4c91f5[_0x50c724]===_0x2631f3([0x2a])));}function _0x14e659(){return _0x1b0fb6&&_0x132b11?new window[(_0x2631f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42573c,_0x13da88)=>{_0x1b0fb6[_0x2631f3([0x74,0x68,0x65,0x6e])](_0x42573c,_0x13da88),_0x132b11[_0x2631f3([0x74,0x68,0x65,0x6e])](_0x47cd6a=>{_0x47cd6a!=_0x2631f3([0x56,0x61,0x6c,0x69,0x64])&&_0x42573c(_0x47cd6a);},_0x13da88);}):_0x1b0fb6||_0x132b11||_0x2631f3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x239822(_0x4f62b8,_0x5853dd){return new window[(_0x2631f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dadc1=>{if(_0x2ceb79())return _0x1dadc1(_0x2631f3([0x56,0x61,0x6c,0x69,0x64]));_0x24141e(),_0x597cca[_0x2631f3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2631f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51a093=!0x1;const _0x31c5ca=_0x54e4c5();function _0x28b4e7(_0x50f76b){return!!_0x50f76b&&(typeof _0x50f76b===_0x2631f3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x50f76b===_0x2631f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x50f76b[_0x2631f3([0x74,0x68,0x65,0x6e])]===_0x2631f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x50f76b[_0x2631f3([0x63,0x61,0x74,0x63,0x68])]===_0x2631f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bd252(_0x5461b5){_0x374180(_0x5461b5)[_0x2631f3([0x74,0x68,0x65,0x6e])](_0x204f74=>{if(!_0x204f74||_0x204f74[_0x2631f3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2631f3([0x6f,0x6b]))return _0x2631f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4288dd(_0x26fb49(_0x31c5ca+_0x5853dd))!=_0x204f74[_0x2631f3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2631f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2631f3([0x56,0x61,0x6c,0x69,0x64]);})[_0x2631f3([0x74,0x68,0x65,0x6e])](_0x4fe038=>(_0x17cc52(),_0x4fe038),()=>{const _0x1a8672=_0x55520f();return null==_0x1a8672?(_0x17cc52(),_0x2631f3([0x56,0x61,0x6c,0x69,0x64])):_0x2631f3(_0x47b9-_0x1a8672>(0x736650a4^_0x1de219)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2631f3([0x74,0x68,0x65,0x6e])](_0x1dadc1)[_0x2631f3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1dadc1(_0x2631f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a0011=0x575c3a24^_0x1de219;function _0x17cc52(){const _0x164e69=_0x2631f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4288dd(_0x26fb49(_0x4f62b8)),_0x56749a=_0x4e1763(_0x4288dd(window[_0x2631f3([0x4d,0x61,0x74,0x68])][_0x2631f3([0x63,0x65,0x69,0x6c])](_0x47b9/_0x3a0011)));window[_0x2631f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2631f3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x164e69,_0x56749a);}function _0x55520f(){const _0x34dc04=_0x2631f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4288dd(_0x26fb49(_0x4f62b8)),_0xbb2d8f=window[_0x2631f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2631f3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34dc04);return _0xbb2d8f?window[_0x2631f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e1763(_0xbb2d8f),0x10)*_0x3a0011:null;}function _0x374180(_0x5cdab8){return new window[(_0x2631f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c03ac,_0xd4a4d8)=>{_0x5cdab8[_0x2631f3([0x74,0x68,0x65,0x6e])](_0x2c03ac,_0xd4a4d8),window[_0x2631f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd4a4d8,0x576b0064^_0x1de219);});}}_0x597cca[_0x2631f3([0x6f,0x6e])](_0x2631f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17764a,_0x2b0bd2)=>{if(_0x2b0bd2[0x0]!=_0x4f62b8)return _0x1dadc1(_0x2631f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b0bd2[0x1]={..._0x2b0bd2[0x1],[_0x2631f3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31c5ca};},{[_0x2631f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2631f3([0x68,0x69,0x67,0x68])}),_0x597cca[_0x2631f3([0x6f,0x6e])](_0x2631f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x353b40=>{_0x28b4e7(_0x353b40[_0x2631f3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51a093=!0x0,_0x4bd252(_0x353b40[_0x2631f3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2631f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2631f3([0x6c,0x6f,0x77])}),_0x31a0e1[_0x2631f3([0x74,0x68,0x65,0x6e])](()=>{_0x51a093||_0x1dadc1(_0x2631f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ceb79(){return _0x597cca[_0x2631f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2631f3([0x76,0x69,0x65,0x77])][_0x2631f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2631f3([0x61,0x75,0x74,0x6f]);}function _0x24141e(){_0x597cca[_0x2631f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2631f3([0x76,0x69,0x65,0x77])][_0x2631f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2631f3([0x61,0x75,0x74,0x6f]);}}function _0x1e5c9a(_0x2290e6){const _0x4fcff0=[new window[(_0x2631f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1951a3=>setTimeout(_0x1951a3,0x5763ea68^_0x1de219)),_0x31a0e1[_0x2631f3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2631f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11f706=>{let _0x2b9d8e=0x0;_0x597cca[_0x2631f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2631f3([0x6f,0x6e])](_0x2631f3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x58219f,_0xf880b0)=>{_0xf880b0[0x0][_0x2631f3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b9d8e++,_0x2b9d8e==(0x576ad55c^_0x1de219)&&(_0x11f706(),_0x58219f[_0x2631f3([0x6f,0x66,0x66])]());});}))];return window[_0x2631f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2631f3([0x72,0x61,0x63,0x65])](_0x4fcff0)[_0x2631f3([0x74,0x68,0x65,0x6e])](()=>_0x2290e6);}async function _0x249e5d(){await _0x31a0e1,_0x597cca[_0x2631f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2631f3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b31f1,_0x597cca[_0x2631f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2631f3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b31f1,_0x597cca[_0x2631f3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2631f3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2336ad(){return _0x3149ba(_0x2631f3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xa21f3c(_0x2631f3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2631f3([0x73,0x74,0x61,0x74,0x65])]==_0x2631f3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x184798(){return _0x3149ba(_0x2631f3([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 _0x32da71(){return _0x3149ba(_0x2631f3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2adcc1(_0x2e567f){const _0x3b6651=_0x15ee54();_0x597cca[_0x3b6651]=_0x2631f3([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e567f,_0x2e567f!=_0x2631f3([0x56,0x61,0x6c,0x69,0x64])&&_0x249e5d();}function _0x15ee54(){const _0x183f8c=window[_0x2631f3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2631f3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2631f3([0x6e,0x6f,0x77])]())[_0x2631f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2631f3([0x2e]),'');let _0x4e2e8f=_0x2631f3([0x4b]);for(let _0x3c5042=0x0;_0x3c5042<_0x183f8c[_0x2631f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c5042+=0x2){let _0xb3f7de=window[_0x2631f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x183f8c[_0x2631f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c5042,_0x3c5042+0x2));_0xb3f7de>=_0x20a373[_0x2631f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb3f7de-=_0x20a373[_0x2631f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e2e8f+=_0x20a373[_0xb3f7de];}return _0x4e2e8f;}function _0x2ca848(){const _0x6ca79e=_0x2833c0[_0x2631f3([0x73,0x70,0x6c,0x69,0x74])](_0x2631f3([0x2e]));if(0x3!=_0x6ca79e[_0x2631f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e18c7(_0x6ca79e[0x1]);function _0x2e18c7(_0xb80d60){const _0x393317=_0x165233(_0xb80d60);return _0x393317&&_0x50e9c9()?_0x393317:null;function _0x50e9c9(){const _0x422e21=_0x393317[_0x2631f3([0x6a,0x74,0x69])],_0x41402c=window[_0x2631f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x422e21[_0x2631f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x422e21[_0x2631f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49d75a={..._0x393317,[_0x2631f3([0x6a,0x74,0x69])]:_0x422e21[_0x2631f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x422e21[_0x2631f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49d75a[_0x2631f3([0x76,0x63])],_0x26fb49(_0x49d75a)==_0x41402c;}}}async function _0x5cfa05(){let _0x51d4ba=!0x0;try{const _0x14658e=_0x2833c0[_0x2631f3([0x73,0x70,0x6c,0x69,0x74])](_0x2631f3([0x2e])),[_0x3553d4,_0x28eeb6,_0x1da4ad]=_0x14658e;return _0x4c5eaf(_0x3553d4),await _0x4e3c99(_0x3553d4,_0x28eeb6,_0x1da4ad),_0x51d4ba;}catch(_0x40f4b5){return!0x1;}function _0x4c5eaf(_0x2e50e4){const _0x1d61af=_0x165233(_0x2e50e4);_0x1d61af&&_0x1d61af[_0x2631f3([0x61,0x6c,0x67])]==_0x2631f3([0x45,0x53,0x32,0x35,0x36])||(_0x51d4ba=!0x1);}async function _0x4e3c99(_0x17d862,_0x473ce4,_0x1eef45){const _0x51e34d=window[_0x2631f3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2631f3([0x66,0x72,0x6f,0x6d])](_0x57a5cf(_0x1eef45),_0x493c2a=>_0x493c2a[_0x2631f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b43f4=new window[(_0x2631f3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2631f3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17d862+_0x2631f3([0x2e])+_0x473ce4),_0x38f108=window[_0x2631f3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2631f3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38f108)return;const _0x5bb552=await _0x38f108[_0x2631f3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2631f3([0x6a,0x77,0x6b]),_0xa746c5,{[_0x2631f3([0x6e,0x61,0x6d,0x65])]:_0x2631f3([0x45,0x43,0x44,0x53,0x41]),[_0x2631f3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2631f3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2631f3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38f108[_0x2631f3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2631f3([0x6e,0x61,0x6d,0x65])]:_0x2631f3([0x45,0x43,0x44,0x53,0x41]),[_0x2631f3([0x68,0x61,0x73,0x68])]:{[_0x2631f3([0x6e,0x61,0x6d,0x65])]:_0x2631f3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5bb552,_0x51e34d,_0x5b43f4)||(_0x51d4ba=!0x1);}}function _0x165233(_0x31f3e6){return _0x31f3e6[_0x2631f3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2631f3([0x65,0x79]))?JSON[_0x2631f3([0x70,0x61,0x72,0x73,0x65])](_0x57a5cf(_0x31f3e6)):null;}function _0x57a5cf(_0x260db9){return window[_0x2631f3([0x61,0x74,0x6f,0x62])](_0x260db9[_0x2631f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2631f3([0x2b]))[_0x2631f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2631f3([0x2f])));}function _0x26fb49(_0x3f6794){let _0x290a90=0x1505;function _0xd6daaa(_0x3aa97e){for(let _0x2cea11=0x0;_0x2cea11<_0x3aa97e[_0x2631f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cea11++){const _0xfa1717=_0x3aa97e[_0x2631f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2cea11);_0x290a90=(_0x290a90<<0x5)+_0x290a90+_0xfa1717,_0x290a90&=_0x290a90;}}function _0x19541d(_0x90621){Array[_0x2631f3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x90621)?_0x90621[_0x2631f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19541d):_0x90621&&typeof _0x90621==_0x2631f3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2631f3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x90621)[_0x2631f3([0x73,0x6f,0x72,0x74])]()[_0x2631f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x191c91,_0x19ad7e])=>{_0xd6daaa(_0x191c91),_0x19541d(_0x19ad7e);}):_0xd6daaa(window[_0x2631f3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x90621));}return _0x19541d(_0x3f6794),_0x290a90>>>0x0;}function _0x4288dd(_0x4ff053){return _0x4ff053[_0x2631f3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2631f3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2631f3([0x30]));}function _0x4e1763(_0x51ad89){return _0x51ad89[_0x2631f3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2631f3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2631f3([0x6a,0x6f,0x69,0x6e])]('');}function _0x3149ba(_0x157287){return _0x597cca[_0x2631f3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2631f3([0x68,0x61,0x73])](_0x157287);}function _0xa21f3c(_0x189c9e){return _0x597cca[_0x2631f3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2631f3([0x67,0x65,0x74])](_0x189c9e);}function _0x4b31f1(){}function _0x2631f3(_0x3e9f54){return _0x3e9f54['map'](_0x4fd447=>String['fromCharCode'](_0x4fd447))['join']('');}_0x2adcc1(await _0x22948f());}(this);}['destroy'](){const _0x54aea8=this['editor']['plugins']['get'](o),_0x68c61b=this['editor']['config']['get']('collaboration.channelId');for(const _0x667742 of _0x54aea8['getCommentThreads']({'channelId':_0x68c61b}))_0x54aea8['_detachCommentThread'](_0x667742['id']),_0x54aea8['_threads']['delete'](_0x667742['id']);super['destroy']();}['hasMarkerForId'](_0x4f1338){return this['getAllMarkersForId'](_0x4f1338)['length']>0x0;}['getAllMarkersForId'](_0x2d3845){const _0x2b6c5e=[];for(const _0x1ebde4 of this['editor']['model']['markers'])_0x1ebde4['name']['startsWith']('comment:'+_0x2d3845)&&_0x2b6c5e['push'](_0x1ebde4);return _0x2b6c5e;}['scrollToThreadMarker'](_0xb572bd){const _0x361bab=this['_getTargetForId'](_0xb572bd);_0x361bab&&setTimeout(()=>{this['activeMarker']&&er(this['activeMarker'])['id']===_0xb572bd&&rt({'target':_0x361bab[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x2a9218){this['editor']['model']['change'](()=>{for(const _0x53faee of this['getAllMarkersForId'](_0x2a9218))this['editor']['editing']['reconvertMarker'](_0x53faee);});}['_attachArchivedThread'](_0x5a8568){const _0x1dfe65=this['editor']['plugins']['get'](o),_0x48682e=this['editor']['plugins']['get'](P),_0x21aef5=_0x1dfe65['getCommentThread'](_0x5a8568);if(!_0x21aef5['isAttached']){const _0x2b2b04=_0x21aef5['attachTo'](()=>this['_getTargetForId'](_0x21aef5['id']));_0x48682e['registerAnnotation'](_0x2b2b04),_0x21aef5['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0xe758b8=this['editor'],_0x1a3d6c=_0xe758b8['plugins']['get'](it);_0xe758b8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x507d1e,_0x30e0ff)=>{const {id:_0x4eddba}=er(_0x507d1e['markerName']),_0x49c5eb=_0xe758b8['plugins']['get'](o)['getCommentThread'](_0x4eddba),_0x3320a7=this['activeMarker']&&er(this['activeMarker'])['id']===_0x4eddba;let _0x4bf7a7;if(_0x49c5eb&&_0x49c5eb['isResolved']&&!_0x3320a7&&_0x507d1e['item'])return _0x30e0ff['consumable']['consume'](_0x507d1e['item'],'addMarker:'+_0x507d1e['markerName']),_0x30e0ff['consumable']['consume'](_0x507d1e['item'],'removeMarker:'+_0x507d1e['markerName']),null;const _0x5cf5d4=['ck-comment-marker'];return _0x3320a7&&_0x5cf5d4['push']('ck-comment-marker--active'),_0x4bf7a7=_0x49c5eb&&_0x49c5eb['length']?_0x49c5eb['comments']['first']['author']['id']:_0x1a3d6c['me']['id'],{'classes':_0x5cf5d4,'attributes':{'data-comment':_0x4eddba,'data-author-id':_0x4bf7a7}};}}),_0xe758b8['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x56e72b,{options:_0x39768b})=>{if(_0x39768b['showCommentHighlights'])return null;const _0x2ab743=_0xe758b8['plugins']['get'](o),_0x165157=_0xe758b8['model']['markers']['get'](_0x56e72b),{id:_0x128698,part:_0x29c22e}=er(_0x56e72b);if(_0x165157&&!_0x165157['affectsData'])return null;if(_0x39768b['ignoreResolvedComments']){const _0x42e1f3=_0x2ab743['getCommentThread'](_0x128698);if(_0x42e1f3&&_0x42e1f3['isResolved'])return null;}return{'group':'comment','name':_0x29c22e?_0x128698+':'+_0x29c22e:_0x128698};}}),_0xe758b8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x1bcfa2,{writer:_0x4d2d68})=>_0x4d2d68['createElement']('$marker',{'data-name':'comment:'+_0x1bcfa2['getAttribute']('id')})}),_0xe758b8['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x5dfcd7=this['editor'],_0x46ea85=_0x5dfcd7['plugins']['get'](o),_0x1d0306=new Set(),_0x3cb0ae=new Set();_0x5dfcd7['model']['document']['registerPostFixer'](_0x3796d4=>{let _0x418802=!0x1;for(const {name:_0x433daf,data:_0x4b1f10}of _0x5dfcd7['model']['document']['differ']['getChangedMarkers']()){const {group:_0x576ff0,id:_0x4bb3fa}=er(_0x433daf);let _0x3d7a79=_0x4b1f10['newRange'];if('comment'!==_0x576ff0||!_0x3d7a79)continue;const _0x4aedcb='$graveyard'===_0x3d7a79['root']['rootName'];_0x4aedcb||(_0x3d7a79=dt(_0x3d7a79,_0x5dfcd7['model']),!_0x3d7a79||_0x3d7a79['isCollapsed']||!_0x4b1f10['newRange']||_0x3d7a79['isEqual'](_0x4b1f10['newRange']))?_0x5dfcd7['model']['hasContent'](_0x3d7a79)&&!_0x4aedcb?this['isThreadsLoadingPaused']?_0x1d0306['add'](_0x433daf):this['_handleThreadMarker'](_0x433daf,_0x4bb3fa):(_0x3cb0ae['add'](_0x433daf),_0x1d0306['delete'](_0x433daf),_0x3796d4['removeMarker'](_0x433daf),_0x418802=!0x0):(_0x3796d4['updateMarker'](_0x433daf,{'range':_0x3d7a79}),_0x418802=!0x0);}return _0x418802;}),this['on']('change:isThreadsLoadingPaused',(_0x521309,_0x265efb,_0x58b8eb)=>{if(!_0x58b8eb&&_0x1d0306['size'])for(const _0x4619f8 of _0x1d0306){const {id:_0x55d8b5}=er(_0x4619f8);_0x1d0306['delete'](_0x4619f8),_0x5dfcd7['model']['markers']['get'](_0x4619f8)&&this['_handleThreadMarker'](_0x4619f8,_0x55d8b5);}}),this['listenTo'](_0x5dfcd7['model']['document'],'change',()=>{for(const {name:_0x561014,data:{newRange:_0x3a2e34}}of _0x5dfcd7['model']['document']['differ']['getChangedMarkers']()){const {group:_0x38b2ee,id:_0x45940f}=er(_0x561014);if('comment'!==_0x38b2ee)continue;const _0x6c31cf=_0x46ea85['getCommentThread'](_0x45940f),_0x1b3818=this['hasMarkerForId'](_0x45940f);_0x6c31cf&&(!_0x6c31cf['_hasTargetInContent']&&_0x3a2e34&&_0x5dfcd7['editing']['view']['once']('render',()=>{const _0x26a971=_0x5dfcd7['plugins']['get'](N),_0x1592e4=_0x46ea85['_threadToController']['get'](_0x6c31cf)['view'];_0x26a971['getByInnerView'](_0x1592e4)['refreshVisibility']();},{'priority':'low'}),_0x6c31cf['_hasTargetInContent']=_0x1b3818||!!_0x3a2e34),_0x3a2e34||(_0x3cb0ae['add'](_0x561014),_0x1d0306['delete'](_0x561014));}for(const _0x4e9e36 of _0x3cb0ae){const {id:_0x40f68f}=er(_0x4e9e36),_0x20289f=_0x46ea85['getCommentThread'](_0x40f68f);if(_0x1d0306['delete'](_0x4e9e36),!_0x20289f)continue;const _0x2c0def=this['hasMarkerForId'](_0x40f68f);_0x2c0def||_0x20289f['isSubmitted']?_0x2c0def||_0x20289f['unlinkedAt']||_0x20289f['setUnlinkedAt'](new Date()):_0x20289f['remove']();}_0x3cb0ae['clear']();});}['_handleInitialThreads'](_0x5d46fa){_0x5d46fa['forEach'](_0x1d3265=>{_0x1d3265['unlinkedAt']&&this['_attachArchivedThread'](_0x1d3265['id']);});}['_getTargetForId'](_0x184f4f){const _0x2be4a8=this['editor'],_0x21828e=this['getAllMarkersForId'](_0x184f4f);return et(_0x2be4a8['editing'],_0x21828e);}['_getTextContext'](_0x5b586f){const _0x9735d2=this['getAllMarkersForId'](_0x5b586f);let _0x1e18f3='',_0x2c3be0=!0x1;for(const _0x2e0e9c of _0x9735d2){const _0x2c86e2=_0x2e0e9c['getRange']();for(const _0x2f6fc3 of Array['from'](_0x2c86e2['getItems']()))_0x2f6fc3['is']('$textProxy')?(_0x1e18f3&&_0x2c3be0&&(_0x1e18f3+='\x20',_0x2c3be0=!0x1),_0x1e18f3+=_0x2f6fc3['data']):_0x2c3be0=!0x0;_0x2c3be0=!0x0;}return _0x1e18f3['substring'](0x0,0x96);}['_attachMarkerToThread'](_0xdc9f14,_0x49001e){const _0x35b061=this['editor'],_0x7b9e31=_0x35b061['plugins']['get'](o);let _0x23fd3a=_0x7b9e31['getCommentThread'](_0x49001e);const _0x42d106=_0x35b061['config']['get']('collaboration.channelId'),_0x3eadd2=_0x35b061['plugins']['get'](P);if(_0x23fd3a&&(_0x23fd3a['unlinkedAt']&&_0x23fd3a['setUnlinkedAt'](null),_0x23fd3a['isAttached']))return _0x23fd3a;return!this['getAllMarkersForId'](_0x49001e)[0x0]['managedUsingOperations']?_0x35b061['editing']['view']['once']('render',()=>{if(_0x7b9e31['getCommentThread'](_0x49001e))return;const _0x4f8af4=_0x35b061['plugins']['get'](N);_0x23fd3a=_0x7b9e31['openNewCommentThread']({'channelId':_0x42d106,'threadId':_0x49001e,'target':()=>this['_getTargetForId'](_0x49001e),'context':{'type':'text','value':this['_getTextContext'](_0x49001e)}});const _0x23973b=_0x7b9e31['_threadToController']['get'](_0x23fd3a)['view'],_0x3241b5=_0x4f8af4['getByInnerView'](_0x23973b);_0x3241b5&&_0x3eadd2['registerAnnotation'](_0x3241b5);},{'priority':'low'}):_0x7b9e31['fetchCommentThread']({'channelId':_0x42d106,'threadId':_0x49001e})['then'](_0x2abf33=>{if('destroyed'!==_0x35b061['state']){if(_0x23fd3a=_0x2abf33,_0x23fd3a&&!_0x23fd3a['isAttached']){const _0x388334=_0x23fd3a['attachTo'](()=>this['_getTargetForId'](_0x49001e));_0x3eadd2['registerAnnotation'](_0x388334),_0x23fd3a['isResolved']&&this['_reconvertMarkers'](_0x49001e);}else{if(!_0x23fd3a){const _0x2c7716=this['getAllMarkersForId'](_0x49001e);_0x35b061['model']['change'](_0x3ca591=>{for(const _0x4581bb of _0x2c7716)_0x3ca591['removeMarker'](_0x4581bb);});}}}}),_0x23fd3a;}['_handleThreadMarker'](_0x53e54c,_0x210608){const _0x4eed5b=this['_attachMarkerToThread'](_0x53e54c,_0x210608);_0x4eed5b&&!_0x4eed5b['context']&&_0x4eed5b['setContext']({'type':'text','value':this['_getTextContext'](_0x210608)});}['_initAriaMarkerChangeAnnouncements'](){const _0x1efc8e=this['editor'];ot(_0x1efc8e['model'],({left:_0x52457d,entered:_0x25149a})=>{for(const _0x4ce6c4 of _0x52457d)if(mt(_0x4ce6c4)){_0x1efc8e['ui']['ariaLiveAnnouncer']['announce'](S(_0x1efc8e['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x5590df of _0x25149a)if(mt(_0x5590df)){_0x1efc8e['ui']['ariaLiveAnnouncer']['announce'](S(_0x1efc8e['locale'],'ENTER_COMMENT_ANNOUNCEMENT',nt(_0x5d80a1)));break;}});}}function ft(_0x4a2c43,_0x9418e8){return _0x9418e8?_0x4a2c43+':'+_0x9418e8:_0x4a2c43;}function er(_0x2c82f9){const _0x67b113=_0x2c82f9['split'](':');return{'group':_0x67b113[0x0],'id':_0x67b113[0x1],'part':_0x67b113[0x2]};}function dt(_0x127a68,_0x35f6cb){const _0x5a3e0f=_0x35f6cb['schema'],_0x9aea86=_0x35f6cb['createRange'](_0x127a68['start']);for(const _0x493bff of _0x127a68['getWalker']()){const {type:_0x2d2ca6,item:_0x1eed2a,nextPosition:_0x57a984}=_0x493bff;if('text'===_0x2d2ca6||_0x5a3e0f['isObject'](_0x1eed2a)){const _0x300fa9=_0x35f6cb['createPositionBefore'](_0x1eed2a);_0x9aea86['isCollapsed']&&(_0x9aea86['start']=_0x300fa9),_0x9aea86['end']=_0x57a984;}}return _0x9aea86;}function mt(_0x28fb58){return'comment'===er(_0x28fb58['name'])['group'];}var xt='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M4\x201.5h12A3.5\x203.5\x200\x200\x201\x2019.5\x205v8l-.005.192a3.5\x203.5\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.371-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.271-2.63l-.062-.07H4A3.5\x203.5\x200\x200\x201\x20.5\x2013V5A3.5\x203.5\x200\x200\x201\x204\x201.5ZM4\x203a2\x202\x200\x200\x200-2\x202v8a2\x202\x200\x200\x200\x202\x202h6.924a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L14.962\x2015H16a2\x202\x200\x200\x200\x202-2V5a2\x202\x200\x200\x200-2-2H4Z\x22/><path\x20d=\x22M9.75\x205a.75.75\x200\x200\x200-.75.75v2.5H6.5a.75.75\x200\x200\x200\x200\x201.5H9v2.5a.75.75\x200\x200\x200\x201.5\x200v-2.5H13a.75.75\x200\x200\x200\x200-1.5h-2.5v-2.5A.75.75\x200\x200\x200\x209.75\x205Z\x22/></svg>\x0a';class i extends _0x2fdcc6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,P,N];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x75066f=this['editor'],_0x416de0=_0x75066f['plugins']['get'](o),_0x1a333e=_0x75066f['plugins']['get'](r),_0x518205=_0x75066f['plugins']['get'](N),_0x43c9af=_0x75066f['plugins']['get'](P);_0x75066f['ui']['componentFactory']['add']('comment',()=>{const _0x753507=this['_createUIButton'](_0x9673);return _0x753507['tooltip']=!0x0,_0x753507;}),_0x75066f['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x3b46df)),_0x43c9af['addSourceCollector'](()=>{const _0x1ea4cb=[];for(const [_0xa8dff8,_0x8ebfba]of _0x416de0['_threadToController']){const _0x5c57aa=_0x1a333e['getAllMarkersForId'](_0xa8dff8['id']),_0x4d2e6a=_0x5c57aa['map'](_0x362b97=>_0x362b97['getRange']());_0x5c57aa['length']>0x0&&_0x1ea4cb['push']([_0x8ebfba['view'],_0x4d2e6a]);}return _0x1ea4cb;}),this['listenTo'](_0x518205,'change:activeAnnotations',(_0x2bd4fd,_0x7ba636,_0x224560)=>{const _0x4ac78a=Array['from'](_0x224560)['map'](_0x8df718=>_0x8df718['innerView'])['find'](_0x538e6e=>_0x416de0['_viewToController']['has'](_0x538e6e));if(!_0x4ac78a)return void(_0x1a333e['activeMarker']=null);const _0x2eff7d=_0x416de0['_viewToController']['get'](_0x4ac78a)['model']['id'],_0x4beb85='comment:'+_0x2eff7d;_0x2eff7d&&_0x1a333e['hasMarkerForId'](_0x2eff7d)?_0x1a333e['activeMarker']=_0x4beb85:_0x1a333e['activeMarker']&&(_0x1a333e['activeMarker']=null);}),this['listenTo'](_0x416de0,'removeCommentThread',(_0x55fea6,{threadId:_0x224654,isFromAdapter:_0x109d3a})=>{!_0x109d3a&&_0x75066f['ui']['focusTracker']['isFocused']&&_0x1a333e['hasMarkerForId'](_0x224654)&&_0x75066f['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x416de0,'addComment',(_0x57cf5a,{threadId:_0x3c30db,isFromAdapter:_0x4ca549})=>{if(_0x4ca549||!_0x1a333e['hasMarkerForId'](_0x3c30db)||!_0x416de0['hasCommentThread'](_0x3c30db))return;0x1===_0x416de0['getCommentThread'](_0x3c30db)['length']&&(_0x75066f['editing']['view']['focus'](),_0x57cf5a['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ee0a9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x290e80;for(const _0x1482f0 in _0x1ee0a9){const _0x5dbb6a=_0x1482f0,_0x264015=_0x1ee0a9[_0x5dbb6a];if('commentsLicenseKeyValid'==_0x264015||'commentsLicenseKeyInvalid'==_0x264015||'commentsLicenseKeyExpired'==_0x264015||'commentsLicenseKeyDomainLimit'==_0x264015||'commentsLicenseKeyNotAllowed'==_0x264015||'commentsLicenseKeyEvaluationLimit'==_0x264015||'commentsLicenseKeyTrialLimit'==_0x264015||'commentsLicenseKeyUsageLimit'==_0x264015){delete _0x1ee0a9[_0x5dbb6a],_0x290e80=_0x264015,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x290e80&&_0x1ee0a9['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x290e80&&_0x1ee0a9['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x290e80&&_0x1ee0a9['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x290e80&&_0x1ee0a9['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x290e80&&_0x1ee0a9['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x290e80&&_0x1ee0a9['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x290e80&&_0x1ee0a9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x8eb50b){const _0x2b22ce=this['editor'],_0x56ca8b=new _0x8eb50b(_0x2b22ce['locale']),_0x251f31=_0x2b22ce['commands']['get']('addCommentThread');return _0x56ca8b['set']({'label':S(_0x2b22ce['locale'],'Comment'),'icon':xt}),_0x56ca8b['bind']('isEnabled')['to'](_0x251f31),this['listenTo'](_0x56ca8b,'execute',()=>{_0x2b22ce['editing']['view']['focus'](),_0x251f31['execute']();}),_0x56ca8b;}}class s extends _0x2fdcc6{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x5f52e6){super(_0x5f52e6),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5233d3,_0x29321d,_0x47b2d3)=>{_0x47b2d3?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x459794,_0x34aa4e]of this['editor']['commands'])_0x34aa4e['affectsData']&&'addCommentThread'!==_0x459794&&_0x34aa4e['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x3b33f0=this['editor']['editing']['view']['document'];this['listenTo'](_0x3b33f0,'cut',_0x22ea45=>_0x22ea45['stop'](),{'priority':'highest'}),this['listenTo'](_0x3b33f0,'clipboardInput',_0xb0d4c4=>_0xb0d4c4['stop'](),{'priority':'highest'}),this['listenTo'](_0x3b33f0,'delete',_0x5536e6=>_0x5536e6['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x47558f,_0x3544c0]of this['editor']['commands'])_0x3544c0['affectsData']&&'addCommentThread'!==_0x47558f&&_0x3544c0['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 M extends _0x5b032a{['activeUIs'];['_uis'];['_uisData'];static get['requires'](){return[N];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x426e35){super(_0x426e35),this['activeUIs']=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}['init'](){const _0x45e5e1=this['context']['plugins']['get'](N);this['listenTo'](_0x45e5e1,'_activateAnnotation',(_0x224fa3,_0x23acac)=>{for(const _0x4a7418 of this['activeUIs']){const _0x4be890=this['_uis']['get'](_0x4a7418);(0x0,this['_uisData']['get'](_0x4a7418)['filter'])(_0x23acac)&&_0x4be890['setActiveAnnotation'](_0x23acac);}}),this['listenTo'](_0x45e5e1,'_deactivateAllAnnotations',()=>{for(const _0x33d5db of this['activeUIs']){this['_uis']['get'](_0x33d5db)['setActiveAnnotation'](null);}}),this['listenTo'](_0x45e5e1['_visibleAnnotations'],'add',(_0x524813,_0x283d56)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x283d56);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x355bc8){return this['activeUIs']['has'](_0x355bc8);}['activate'](_0x25a542,_0x4a8c58=()=>!0x0){const _0x4d1bae=this['context']['plugins']['get'](N);if(!this['_uis']['has'](_0x25a542))throw new _0x437ad0('annotationsuis-missing-ui',this,{'uiName':_0x25a542});this['isActive'](_0x25a542)&&this['deactivate'](_0x25a542),this['activeUIs']['add'](_0x25a542);const _0x204013=new x();!function({source:_0x2f542d,target:_0x24dfd4,filter:_0x38c059}){for(const _0x10b840 of _0x2f542d)_0x38c059(_0x10b840)&&_0x24dfd4['add'](_0x10b840);_0x24dfd4['listenTo'](_0x2f542d,'add',(_0x23d370,_0x463256)=>{_0x38c059(_0x463256)&&_0x24dfd4['add'](_0x463256);}),_0x24dfd4['listenTo'](_0x2f542d,'remove',(_0x5f59f5,_0x175480)=>{_0x24dfd4['has'](_0x175480)&&_0x24dfd4['remove'](_0x175480);});}({'source':_0x4d1bae['_visibleAnnotations'],'target':_0x204013,'filter':_0x4a8c58}),this['_uisData']['set'](_0x25a542,{'collection':_0x204013,'filter':_0x4a8c58});const _0x59f86a=this['_uis']['get'](_0x25a542);_0x59f86a['attach'](_0x204013),this['listenTo'](_0x59f86a,'change:activeAnnotation',(_0x7597ee,_0x4fbc48,_0xc008d8,_0x3c5d05)=>{_0x3c5d05&&_0x4d1bae['_removeActiveAnnotation'](_0x3c5d05),_0xc008d8&&_0x4d1bae['_addActiveAnnotation'](_0xc008d8);});}['deactivate'](_0xf044c0){if(this['activeUIs']['delete'](_0xf044c0),!this['_uis']['has'](_0xf044c0))throw new _0x437ad0('annotationsuis-missing-ui',this,{'uiName':_0xf044c0});const _0x5352d0=this['_uis']['get'](_0xf044c0);_0x5352d0['detach'](),this['stopListening'](_0x5352d0),this['_uisData']['get'](_0xf044c0)['collection']['destroy'](),this['_uisData']['delete'](_0xf044c0);}['switchTo'](_0x1b6708){if(!this['_uis']['has'](_0x1b6708))throw new _0x437ad0('annotationsuis-missing-ui',this,{'uiName':_0x1b6708});const _0x22f0fd=this['context']['plugins']['get'](N),_0xab95bd=Array['from'](_0x22f0fd['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x1b6708);const _0x3c36be=this['_uis']['get'](_0x1b6708);_0x3c36be['setActiveAnnotation'](_0xab95bd),_0x3c36be['_setSelectedAnnotations']&&_0xab95bd&&_0x3c36be['_setSelectedAnnotations']([_0xab95bd]);}['deactivateAll'](){for(const _0xd7e082 of this['activeUIs'])this['deactivate'](_0xd7e082);}['register'](_0x5baea0,_0x15502f){if(this['_uis']['has'](_0x5baea0))throw new _0x437ad0('annotationsuis-register-already-registered');if('function'!=typeof _0x15502f['attach']||'function'!=typeof _0x15502f['detach']||'function'!=typeof _0x15502f['setActiveAnnotation'])throw new _0x437ad0('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5baea0,_0x15502f);}['refilterAnnotations'](){const _0x16cf5e=this['context']['plugins']['get'](N)['collection'],_0x5a0f35=new Map(),_0x390276=Array['from'](this['activeUIs']);for(const _0x3c71f9 of this['activeUIs']){const _0x5b78ee=this['_uisData']['get'](_0x3c71f9)['collection'];for(const _0x3f87ae of _0x5b78ee)_0x5a0f35['set'](_0x3f87ae,_0x3c71f9);}for(const _0x417850 of _0x16cf5e){const _0x4fa261=_0x5a0f35['get'](_0x417850);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x417850);const _0xff873c=_0x390276['find'](_0xa15c83=>this['_uisData']['get'](_0xa15c83)['filter'](_0x417850));_0x4fa261!==_0xff873c&&(_0x4fa261&&this['_uisData']['get'](_0x4fa261)['collection']['remove'](_0x417850),_0xff873c&&this['_uisData']['get'](_0xff873c)['collection']['add'](_0x417850));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x17ada1){const _0x565f00=[];for(const _0x3f711a of this['activeUIs']){(0x0,this['_uisData']['get'](_0x3f711a)['filter'])(_0x17ada1)&&_0x565f00['push'](_0x3f711a);}if(_0x565f00['length']>0x1)throw new _0x437ad0('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x565f00,'annotationType':_0x17ada1['type']});}}const he=Ht('px');class V extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0xc45040){super(_0xc45040);const _0x447705=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 _0x50da7e(),this['focusCycler']=new Ft({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x447705['to']('class')],'style':{'minHeight':_0x447705['to']('minHeight',_0x1e0538=>'number'==typeof _0x1e0538?he(_0x1e0538+0xa):null)},'dir':_0xc45040['uiLanguageDirection'],'role':'application','aria-label':S(_0xc45040,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':S(_0xc45040,'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',_0x115ee9=>{this['_updateItemPositionInFocusables'](_0x115ee9['source']);}),this['list']['forEach'](_0x5282bd=>{this['focusTracker']['add'](_0x5282bd['element']),this['_updateItemPositionInFocusables'](_0x5282bd);}),this['list']['on']('change',(_0x575abc,_0x51298d)=>{for(const _0x5cf84e of _0x51298d['removed'])this['focusTracker']['remove'](_0x5cf84e['element']),this['focusables']['remove'](_0x5cf84e);for(const _0x1f62a7 of _0x51298d['added'])this['focusTracker']['add'](_0x1f62a7['element']),this['_updateItemPositionInFocusables'](_0x1f62a7);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x34c7ec){const _0x1572e2=this['focusables']['getIndex'](_0x34c7ec);let _0x102cab,_0x313e52;for(const _0x46fe90 of this['focusables'])if(_0x34c7ec['top']<_0x46fe90['top']){_0x102cab=_0x46fe90;break;}if(_0x313e52=_0x102cab?this['focusables']['getIndex'](_0x102cab):this['focusables']['length'],-0x1!==_0x1572e2){if(_0x1572e2===_0x313e52-0x1)return;this['focusables']['remove'](_0x34c7ec),_0x313e52=_0x102cab?this['focusables']['getIndex'](_0x102cab):this['focusables']['length'];}this['focusables']['add'](_0x34c7ec,_0x313e52);}}const qt=Ht('px');class H extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x4f36f1){super(_0x4f36f1),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x1380ca,_0x19ff84)=>_0x1380ca+_0x19ff84),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Lt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x431d0b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x431d0b['to']('isAnimationDisabled',_0x450423=>_0x450423?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x431d0b['to']('top',_0x527ce8=>qt(_0x527ce8))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x4020e2=this['element']['clientHeight'];_0x4020e2&&(this['height']=_0x4020e2);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x5b032a{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14d3ed){super(_0x14d3ed),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 _0x45f2f8=this['context']['config']['get']('sidebar.container');_0x45f2f8&&this['setContainer'](_0x45f2f8);}['setContainer'](_0x20041d){if(!y(_0x20041d))throw new _0x437ad0('sidebar-setcontainer-invalid-element');this['container']=_0x20041d;}['_attachToContainer']({viewClass:_0x6e8556='',spaceBetweenItems:_0x118c57=0x19}={}){if(!y(this['container']))throw new _0x437ad0('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x6e8556,this['_spaceBetweenItems']=_0x118c57;}['rearrange']({removedAnnotation:_0x4ab2ce,previousAnnotation:_0x4ba3a9,nextAnnotation:_0x866ef0}){const _0x1c701a=this['getSidebarItemView'](_0x4ab2ce);this['view']['list']['remove'](_0x1c701a),this['_destroySidebarItemView'](_0x4ab2ce),_0x4ba3a9&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4ba3a9)),_0x866ef0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x866ef0)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x4807aa,activatedAnnotation:_0x3df02a,disableAnimationOnActivatedAnnotation:_0x280893}){if(this['_activeAnnotation']=_0x3df02a,_0x4807aa){_0x4807aa['isActive']=!0x1;const _0x59f068=this['getSidebarItemView'](_0x4807aa);_0x59f068&&_0x280893&&(_0x59f068['isAnimationDisabled']=!0x1);}if(_0x3df02a){const _0x4a5f92=this['getSidebarItemView'](_0x3df02a);_0x4a5f92&&(_0x3df02a['isActive']=!0x0,_0x280893&&(_0x4a5f92['isAnimationDisabled']=!0x0,_0x4a5f92['top']+=0x1),this['_alignToTargetRect'](_0x4a5f92));}}['_detachFromContainer'](_0x26f779){if(this['view']['element']['remove'](),_0x26f779){for(const _0x5f23a5 of _0x26f779)this['_destroySidebarItemView'](_0x5f23a5);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2be437,_0x2bdde2){_0x2bdde2||(_0x2bdde2=_0x2be437['view']);const _0x1af7bc=new H(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x1af7bc,_0x2be437),this['_annotationToSidebarItemView']['set'](_0x2be437,_0x1af7bc),_0x1af7bc['content']['add'](_0x2bdde2),this['listenTo'](_0x2be437['view'],'change:targetRect',(_0x4f32f6,_0x2e46cb,_0x6124bc)=>{const _0x1cb394=this['_getTargetTop'](_0x2be437,_0x6124bc);_0x1af7bc['_targetTop']!=_0x1cb394&&(_0x1af7bc['_targetTop']=_0x1cb394,this['_setItemTop'](_0x1af7bc,_0x1cb394));}),this['listenTo'](_0x1af7bc,'change:top',()=>{this['_recalculate'](_0x1af7bc,'top');}),this['listenTo'](_0x1af7bc,'change:bottom',()=>{this['_recalculate'](_0x1af7bc,'bottom');}),this['_alignToTargetRect'](_0x1af7bc);const _0x46bf66=this['_getItemBefore'](_0x1af7bc);if(_0x46bf66)this['_alignAfterItem'](_0x46bf66,_0x1af7bc)||this['_alignToTargetRect'](_0x1af7bc);else this['_alignToTargetRect'](_0x1af7bc);return this['_updateLastItem'](),this['view']['list']['add'](_0x1af7bc),_0x1af7bc;}['_alignForTopChange'](_0x39c69d){if(!_0x39c69d['content']['length'])return;const _0x2282a3=this['_getItemBefore'](_0x39c69d);if(!_0x2282a3)return;const _0x3a9cc7=this['_sidebarItemViewToAnnotation']['get'](_0x2282a3),_0x5514cf=this['_activeAnnotation'];_0x5514cf&&_0x5514cf===_0x3a9cc7?this['_alignAfterItem'](_0x2282a3,_0x39c69d):this['_alignBeforeItem'](_0x39c69d,_0x2282a3);}['_alignForBottomChange'](_0x4ab3cb){if(!_0x4ab3cb['content']['length'])return;const _0x10748e=this['_getItemAfter'](_0x4ab3cb);if(!_0x10748e)return;const _0x2f2ad9=this['_sidebarItemViewToAnnotation']['get'](_0x10748e),_0x1cd7da=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x57093a=this['_activeAnnotation'];_0x57093a&&_0x57093a===_0x2f2ad9&&_0x1cd7da?(this['_alignBeforeItem'](_0x10748e,_0x4ab3cb),this['_alignAfterItem'](_0x4ab3cb,_0x10748e)):_0x57093a&&_0x57093a===_0x2f2ad9?this['_alignBeforeItem'](_0x10748e,_0x4ab3cb):this['_alignAfterItem'](_0x4ab3cb,_0x10748e);}['_recalculate'](_0x1e6a68,_0x289c95){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5d9211,changedProp:_0x4ba465}of this['_recalculateBuffer'])'top'===_0x4ba465?this['_alignForTopChange'](_0x5d9211):this['_alignForBottomChange'](_0x5d9211);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x1e6a68,'changedProp':_0x289c95});}['getSidebarItemView'](_0x1a5208){return this['_annotationToSidebarItemView']['get'](_0x1a5208);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x58131f){const _0x23ed70=this['getSidebarItemView'](_0x58131f);this['stopListening'](_0x23ed70),this['stopListening'](_0x58131f['view']),_0x23ed70['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x58131f),this['_sidebarItemViewToAnnotation']['delete'](_0x23ed70);}['_createSidebarView'](){const _0x217596=new V(this['context']['locale']);return _0x217596['render'](),this['on']('change:_lastItem',(_0x1d83e1,_0x3d88c8,_0x16a057,_0x2ff9e7)=>{_0x2ff9e7&&_0x217596['unbind']('minHeight'),_0x16a057?_0x217596['bind']('minHeight')['to'](_0x16a057,'bottom'):_0x217596['minHeight']=null;}),_0x217596;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x50dceb){const _0x36fa84=this['_sidebarItemViewToAnnotation']['get'](_0x50dceb),_0x5cfa84=_0x36fa84&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x36fa84)-0x1);return _0x5cfa84&&this['getSidebarItemView'](_0x5cfa84)||null;}['_getItemAfter'](_0x43c6e0){const _0x1cc9ce=this['_sidebarItemViewToAnnotation']['get'](_0x43c6e0),_0x4a5e70=_0x1cc9ce&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x1cc9ce)+0x1);return _0x4a5e70&&this['getSidebarItemView'](_0x4a5e70)||null;}['_alignBeforeItem'](_0xa2d8d,_0x2a1e1c){_0xa2d8d['updateHeight']();const _0x2399bb=R(_0x2a1e1c['bottom']+this['_spaceBetweenItems'],_0xa2d8d['top']);return!!_0x2399bb&&(this['_setItemTop'](_0x2a1e1c,_0x2a1e1c['top']-_0x2399bb),!0x0);}['_alignAfterItem'](_0x5d63db,_0x16563d){_0x5d63db['updateHeight']();const _0x40490c=R(_0x5d63db['bottom']+this['_spaceBetweenItems'],_0x16563d['top']);return!!_0x40490c&&(this['_setItemTop'](_0x16563d,_0x16563d['top']+_0x40490c,!0x1),!0x0);}['_alignToTargetRect'](_0x1e83ac){const _0x12f682=this['_sidebarItemViewToAnnotation']['get'](_0x1e83ac);if(!_0x12f682||!_0x12f682['target']||!_0x12f682['targetRect'])return;const _0x17495c=this['_getTargetTop'](_0x12f682,_0x12f682['targetRect']);this['_setItemTop'](_0x1e83ac,_0x17495c);}['_getTargetTop'](_0x2d8b3,_0x446964){if(null===_0x446964)return 0x0;if(_0x2d8b3['target']instanceof _0x14b050)return _0x446964['top'];{const _0x39fadd=new _0x14b050(this['view']['element'])['top'];return _0x446964['top']-_0x39fadd;}}['_setItemTop'](_0x51261b,_0x5038f3,_0x1803d5=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1803d5&&(_0x5038f3=Math['max'](_0x5038f3,this['_getMaxAvailableTop'](_0x51261b))),_0x51261b['top']=_0x5038f3;}['_getMaxAvailableTop'](_0x196ba1){let _0x2921bd=this['_getItemBefore'](_0x196ba1),_0x75ad77=0x0;for(;_0x2921bd;)_0x2921bd['updateHeight'](),_0x75ad77+=this['_spaceBetweenItems']+_0x2921bd['height'],_0x2921bd=this['_getItemBefore'](_0x2921bd);return _0x75ad77;}}function R(_0x1e143b,_0x46650c){return Math['max'](_0x1e143b-_0x46650c,0x0);}function y(_0x2e7762){return null!==_0x2e7762&&'object'==typeof _0x2e7762&&0x1===_0x2e7762['nodeType'];}class e extends _0x5b032a{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1340f0){super(_0x1340f0),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x5251bb(),this['_refreshPositioningDebounced']=_0x48ce67(()=>{this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x12a2ee=this['context']['plugins']['get'](M),_0x2126e7=this['context']['plugins']['get'](z);_0x12a2ee['register']('wideSidebar',this),_0x2126e7['container']&&_0x12a2ee['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x164b57){if(_0x164b57===this['activeAnnotation'])return;const _0x4398f5=this['context']['plugins']['get'](z);_0x4398f5['_activeAnnotation']=_0x164b57;const _0xf8b152=this['activeAnnotation'];_0x4398f5['refresh']({'blurredAnnotation':_0xf8b152,'activatedAnnotation':_0x164b57}),this['activeAnnotation']=_0x164b57;}['attach'](_0x2c2dc8){this['annotations']=_0x2c2dc8;const _0x488270=this['context']['plugins']['get'](z);if(_0x488270['_annotations']=_0x2c2dc8,this['isAttached'])throw new _0x437ad0('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x488270,'set:container',()=>{this['detach'](),this['listenTo'](_0x488270,'change:container',_0x356466=>{_0x356466['off'](),this['attach'](_0x2c2dc8);});}),_0x488270['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x485432=_0x522b27=>{_0x522b27['updateTargetRect'](),_0x488270['addAnnotation'](_0x522b27);};for(const _0x1568bc of _0x2c2dc8)_0x485432(_0x1568bc);this['listenTo'](_0x2c2dc8,'add',(_0x1ca92d,_0x19e007)=>{_0x485432(_0x19e007);}),this['listenTo'](_0x2c2dc8,'remove',(_0x310a19,_0x10fda2,_0x45e722)=>{_0x488270['rearrange']({'removedAnnotation':_0x10fda2,'previousAnnotation':_0x2c2dc8['get'](_0x45e722-0x1),'nextAnnotation':_0x2c2dc8['get'](_0x45e722+0x1)}),_0x10fda2===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x2c2dc8,'focus',(_0x117644,_0x260c2c)=>{this['setActiveAnnotation'](_0x260c2c);}),this['listenTo'](_0x2c2dc8,'blur',()=>{this['setActiveAnnotation'](null);});const _0x2889cb=this['context']instanceof _0x859dd8?this['context']['editors']:new _0x5251bb([this['context']]);for(const _0x20e118 of _0x2889cb)this['_integrateWithEditorAnnotations'](_0x20e118);this['listenTo'](_0x2889cb,'add',(_0x104ac2,_0x1e37d8)=>{this['listenTo'](_0x1e37d8,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1e37d8);});}),this['listenTo'](_0x2889cb,'remove',(_0x15f1a4,_0x3c401c)=>{_0x3c401c['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3c401c['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x437ad0('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x27b43b=this['context']['plugins']['get'](z);_0x27b43b['_detachFromContainer'](this['annotations']),this['stopListening'](_0x27b43b),this['stopListening'](this['annotations']),this['context']instanceof _0x859dd8&&this['stopListening'](this['context']['editors']);for(const _0xc04f27 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0xc04f27);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x4f8918){if(!_0x4f8918['plugins']['has']('EditorAnnotations'))return;const _0x4eebea=_0x4f8918['plugins']['get']('EditorAnnotations'),_0x471c08=()=>{const _0x3c4f01=_0x4eebea['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3c4f01[0x0]||null);};this['listenTo'](_0x4eebea,'refresh',_0x471c08),this['listenTo'](_0x4eebea,'blur',(_0x4a7451,{isAnnotationTracked:_0x4b9faf})=>{this['activeAnnotation']&&_0x4b9faf(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4eebea,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x17d05f=>{_0x4eebea['hasDomSelection']()&&(_0x471c08(),_0x17d05f['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4eebea);}['_destroyEditorAnnotationsIntegration'](_0x485343){this['stopListening'](_0x485343),this['_editorAnnotations']['remove'](_0x485343);}}class D extends _0x9673{['counterView'];constructor(_0x204237){super(_0x204237);const _0x138904=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x3833c9,_0x2cc896)=>_0x3833c9?'...':_0x2cc896['toString']()),this['set']('annotationType',''),this['icon']=xt,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x138904['to']('annotationType',_0x3d9068=>'ck-annotation-counter__badge--'+_0x3d9068),_0x138904['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x138904['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x5b032a{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,M];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d3ea4){super(_0x2d3ea4),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x6a71aa),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x5251bb(),this['_refreshPositioningDebounced']=_0x48ce67(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](M)['register']('narrowSidebar',this),this['bodyCollection']=new _0x3cb767(this['context']['locale']),this['balloonPanelView']=new _0x15e0c6(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x272f8a){this['annotations']=_0x272f8a;const _0x1ed915=this['context']['plugins']['get'](z),_0x1c4114=this['balloonPanelView'];if(_0x1ed915['_annotations']=_0x272f8a,this['isAttached'])throw new _0x437ad0('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1ed915,'set:container',()=>{this['detach'](),this['listenTo'](_0x1ed915,'change:container',_0x5e76a4=>{_0x5e76a4['off'](),this['attach'](_0x272f8a);});}),_0x1ed915['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2db91e=_0xe58b9e=>{const _0x21f36b=new D(this['context']['locale']);_0x1ed915['addAnnotation'](_0xe58b9e,_0x21f36b),this['_annotationToNarrowView']['set'](_0xe58b9e,_0x21f36b),_0x21f36b['bind']('isDirty','annotationType','number')['to'](_0xe58b9e['view'],'isDirty','type','length'),_0x21f36b['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x1c4114['content']['first']!==_0xe58b9e['view']?(this['_showBalloon'](_0xe58b9e),_0xe58b9e['view']['element']['focus'](),this['setActiveAnnotation'](_0xe58b9e)):this['setActiveAnnotation'](null);});};for(const _0xf8400e of _0x272f8a)_0x2db91e(_0xf8400e);this['listenTo'](_0x272f8a,'add',(_0x1c37d7,_0x3116eb)=>{_0x2db91e(_0x3116eb);}),this['listenTo'](_0x272f8a,'remove',(_0x308c1c,_0x1a3520,_0xb25ea7)=>{this['_annotationToNarrowView']['get'](_0x1a3520)['destroy'](),this['_annotationToNarrowView']['delete'](_0x1a3520),_0x1ed915['rearrange']({'removedAnnotation':_0x1a3520,'previousAnnotation':_0x272f8a['get'](_0xb25ea7-0x1),'nextAnnotation':_0x272f8a['get'](_0xb25ea7+0x1)}),_0x1a3520===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x272f8a,'focus',(_0xe7ad24,_0x33b625)=>{this['setActiveAnnotation'](_0x33b625);}),this['listenTo'](_0x272f8a,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5b6908,_0x25e0b0)=>{_0x25e0b0['keyCode']===_0x1d750d['esc']&&_0x1c4114['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x1c4114['content']['first']),this['_hideBalloon'](),_0x25e0b0['stopPropagation'](),_0x25e0b0['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3cbb4d,_0x5cf00a)=>{const _0x3bb839=_0x5cf00a['target'];_0x1c4114['isVisible']&&_0x1c4114['element']['contains'](_0x3bb839)||_0x1ed915['view']['element']['contains'](_0x3bb839)||_0x3cbb4d['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x54860c=>_0x54860c['contains'](_0x3bb839))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x129429=this['context']instanceof _0x859dd8?this['context']['editors']:new _0x5251bb([this['context']]);for(const _0x5668b3 of _0x129429)this['_integrateWithEditorAnnotations'](_0x5668b3);this['listenTo'](_0x129429,'add',(_0x40baf9,_0x5226ef)=>{this['listenTo'](_0x5226ef,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x5226ef);});}),this['listenTo'](_0x129429,'remove',(_0x3b7805,_0x5a89ce)=>{_0x5a89ce['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5a89ce['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x321de4){if(_0x321de4===this['activeAnnotation'])return;const _0x18a6e9=this['context']['plugins']['get'](z);if(_0x18a6e9['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x321de4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x321de4)_0x18a6e9['getSidebarItemView'](_0x321de4)?this['_showBalloon'](_0x321de4):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x321de4;}['detach'](){if(!this['isAttached'])throw new _0x437ad0('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x20d965=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x53e99d=>_0x53e99d['destroy']()),this['_annotationToNarrowView']['clear'](),_0x20d965['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x859dd8&&this['stopListening'](this['context']['editors']);for(const _0x317eb8 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x317eb8);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'](_0x5d6afa){if(!_0x5d6afa['plugins']['has']('EditorAnnotations'))return;const _0x282d82=_0x5d6afa['plugins']['get']('EditorAnnotations'),_0x263e25=this['context']['plugins']['get'](z),_0x5716ae=this['annotations'],_0x4fabde=this['balloonPanelView'],_0x1d504d=()=>{const _0x35ec0c=_0x282d82['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x35ec0c),this['setActiveAnnotation'](_0x35ec0c[0x0]||null);};this['listenTo'](_0x282d82,'refresh',_0x1d504d),this['listenTo'](_0x282d82,'blur',(_0x9959c6,{isAnnotationTracked:_0x45544c})=>{this['activeAnnotation']&&_0x45544c(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x282d82,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5716ae,'blur',_0x15c66a=>{_0x282d82['hasDomSelection']()&&_0x15c66a['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x30fcb2,_0x55eb27)=>{const _0x5a5802=_0x55eb27['target'];_0x4fabde['isVisible']&&_0x4fabde['element']['contains'](_0x5a5802)||_0x263e25['view']['element']['contains'](_0x5a5802)||this['activeAnnotation']&&_0x282d82['hasDomSelection']()&&(_0x1d504d(),_0x30fcb2['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x282d82);}['_destroyEditorAnnotationsIntegration'](_0x28bde1){_0x28bde1&&(this['stopListening'](_0x28bde1),this['_editorAnnotations']['remove'](_0x28bde1));}['_setSelectedAnnotations'](_0x4ee27b){for(const _0x3a33fa of this['_selectedAnnotations'])_0x4ee27b['includes'](_0x3a33fa)||this['_manuallyClosedAnnotationViews']['delete'](_0x3a33fa['view']);this['_selectedAnnotations']=_0x4ee27b;}['_refreshPositioning'](){const _0x4efa8b=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x4efa8b['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x5ca99e){if(this['_manuallyClosedAnnotationViews']['has'](_0x5ca99e['view']))return;const _0x26af0f=this['balloonPanelView']['content']['first'];_0x26af0f!==_0x5ca99e['view']?(_0x26af0f&&this['_detachListeners'](_0x26af0f),this['_attachListeners'](_0x5ca99e['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x5ca99e['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0xb00c65=this['balloonPanelView']['content']['first'],_0x55ee8a=_0xb00c65&&this['annotations']['getByView'](_0xb00c65);if(!_0x55ee8a||!this['_annotationToNarrowView']['has'](_0x55ee8a))return;const _0x30d7d9=this['_annotationToNarrowView']['get'](_0x55ee8a)['element'],_0x118ba2=(function(){const _0x3b960a=_0x15e0c6['defaultPositions'];return[_0x3b960a['southArrowNorthEast'],_0x3b960a['northArrowSouthEast'],_0x3b960a['southArrowNorth'],_0x3b960a['northArrowSouth'],_0x3b960a['southArrowNorthWest'],_0x3b960a['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x30d7d9,'positions':_0x118ba2});}['_hideBalloon'](){const _0xff424d=this['balloonPanelView'],_0x2e23c2=_0xff424d['content']['first'];_0x2e23c2&&(this['_detachListeners'](_0x2e23c2),_0xff424d['unpin'](),_0xff424d['content']['clear']());}['_attachListeners'](_0x4e0c98){this['listenTo'](_0x4e0c98,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4e0c98,'Esc',(_0x1f4b2e,_0x2fbac4)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4e0c98),this['_hideBalloon'](),_0x2fbac4();});}['_detachListeners'](_0x445b70){this['stopListening'](_0x445b70);}}class c extends _0x2fdcc6{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[P,_0x3e4d90,M];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x344a84){super(_0x344a84),_0x344a84['editing']['view']['addObserver'](_0x4ab319),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x344a84['plugins']['get'](_0x3e4d90),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x46e7cc=this['editor']['plugins']['get'](M);_0x46e7cc['context']===this['editor']&&(_0x46e7cc['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x3d0f11,_0x25da24)=>{const _0x2e48db=this['_balloon'];if(this['isAttached']&&_0x2e48db['visibleView']){const _0xf83406=this['annotations']['getByView'](_0x2e48db['visibleView']);_0xf83406&&this['_closeAnnotation'](_0xf83406),_0x25da24();}}));}['afterInit'](){const _0x414c7f=this['editor']['plugins']['get'](M);_0x414c7f['context']===this['editor']&&(_0x414c7f['hasActive']()||_0x414c7f['switchTo']('inline'));}['setActiveAnnotation'](_0x4f01c6){_0x4f01c6!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4f01c6&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4f01c6)&&this['_addAnnotationToBalloon'](_0x4f01c6,!0x0),_0x4f01c6['isActive']=!0x0),_0x4f01c6||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4f01c6);}['attach'](_0x4a6f32){this['annotations']=_0x4a6f32;const _0x59dc66=this['editor']['plugins']['get'](M),_0x545ed7=this['_balloon'];if(this['isAttached'])throw new _0x437ad0('inlineannotations-attach-already-attached',this);if(_0x59dc66['context']!==this['editor'])throw new _0x437ad0('inlineannotations-not-allowed-with-context',this);const _0x4cbc75=this['editor']['plugins']['get'](P);this['listenTo'](_0x4cbc75,'refresh',()=>{const _0x35e705=_0x4cbc75['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x10620b,_0x1624a3;!this['_forceRefresh']&&(_0x10620b=_0x35e705,_0x1624a3=this['_selectedAnnotations'],_0x10620b['length']===_0x1624a3['length']&&_0x10620b['every'](_0x33c249=>_0x1624a3['includes'](_0x33c249)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x35e705),this['setActiveAnnotation'](_0x35e705[0x0]||null));}),this['listenTo'](_0x4cbc75,'blur',(_0xbb3b0,{isAnnotationTracked:_0x457981})=>{this['activeAnnotation']&&_0x457981(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1ec5de,_0x2d024d,_0x488b5f)=>{_0x488b5f||this['setActiveAnnotation'](null);}),this['listenTo'](_0x4a6f32,'remove',(_0x5c896e,_0x1ccb45)=>{this['_removeAnnotationFromBalloon'](_0x1ccb45),_0x1ccb45===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x545ed7,'change:visibleView',(_0xf465a0,_0x34a004,_0x4d938,_0xabe85e)=>{_0xabe85e&&this['stopListening'](_0xabe85e);const _0x2816b0=_0x4a6f32['getByView'](_0x4d938);_0x4d938&&_0x2816b0&&(this['listenTo'](_0x4d938,'change:height',()=>{_0x545ed7['updatePosition']();}),this['listenTo'](_0x4d938,'Esc',()=>{this['_closeAnnotation'](_0x2816b0),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x2816b0&&this['setActiveAnnotation'](_0x2816b0));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x545ed7['visibleView']&&(_0x4a6f32['getByView'](_0x545ed7['visibleView'])&&_0x545ed7['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 _0x437ad0('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x508ca6 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x508ca6);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x15cfb5){for(const _0x25d74b of this['_selectedAnnotations'])_0x15cfb5['includes'](_0x25d74b)||this['_manuallyClosed']['delete'](_0x25d74b);for(const _0x17e5a2 of this['annotations'])_0x15cfb5['includes'](_0x17e5a2)||this['_removeAnnotationFromBalloon'](_0x17e5a2);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x24098b of _0x15cfb5)this['_addAnnotationToBalloon'](_0x24098b);}this['_selectedAnnotations']=_0x15cfb5;}['_addAnnotationToBalloon'](_0x27923f,_0x574d05=!0x1){this['_manuallyClosed']['has'](_0x27923f)||(this['_addedAnnotations']['has'](_0x27923f)||this['_balloon']['hasView'](_0x27923f['view'])||(this['_addedAnnotations']['add'](_0x27923f),this['_balloon']['add']({'stackId':_0x27923f['view']['id'],'view':_0x27923f['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x27923f)}})),_0x574d05&&this['_balloon']['showStack'](_0x27923f['view']['id']));}['_getBalloonTargetForAnnotation'](_0x2cc51c){const _0x580f2b=_0x2cc51c['target'],_0x3e5426=this['editor']['editing']['view'],_0x16ace4=_0x3e5426['document']['selection']['getFirstRange'](),_0x22cf9a=_0x3e5426['domConverter']['viewRangeToDom'](_0x16ace4);if(_0x22cf9a['collapse'](!0x0),_0x580f2b){if(_0x580f2b instanceof _0x14b050)return _0x580f2b;let _0x488229=[];for(const _0x378c29 of _0x580f2b)_0x488229['push'](...(_0x15a26a=_0x378c29['getClientRects'](),Array['from'](_0x15a26a)['map'](DOMRect['fromRect'])));_0x488229=function(_0x3acf30){const _0x5bccf0=[];let _0x2029bf=_0x3acf30[0x0];for(let _0x27bcf7=0x1;_0x27bcf7<_0x3acf30['length'];_0x27bcf7++)b(_0x2029bf,_0x3acf30[_0x27bcf7])?_0x2029bf['width']+=_0x3acf30[_0x27bcf7]['width']:(_0x5bccf0['push'](_0x2029bf),_0x2029bf=_0x3acf30[_0x27bcf7]);return _0x5bccf0['push'](_0x2029bf),_0x5bccf0;}(_0x488229);const _0x2bcf87=_0x22cf9a['getBoundingClientRect']();return _0x488229['find'](_0x30071b=>_0x30071b['top']<=_0x2bcf87['top']&&_0x30071b['bottom']>=_0x2bcf87['bottom']&&_0x30071b['left']<=_0x2bcf87['left']&&_0x30071b['right']>=_0x2bcf87['right'])||_0x488229[0x0];}var _0x15a26a;return _0x2cc51c['targetRect']||_0x22cf9a;}['_removeAnnotationFromBalloon'](_0x51f380){this['_addedAnnotations']['has'](_0x51f380)&&this['_balloon']['hasView'](_0x51f380['view'])&&(this['_addedAnnotations']['delete'](_0x51f380),this['_balloon']['remove'](_0x51f380['view']));}['_closeAnnotation'](_0x2b99c2){this['_manuallyClosed']['add'](_0x2b99c2),this['_removeAnnotationFromBalloon'](_0x2b99c2);}}function b(_0x5770a2,_0x258910){return _0x5770a2['top']===_0x258910['top']&&_0x5770a2['bottom']===_0x258910['bottom']&&_0x5770a2['right']===_0x258910['left'];}var Z='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M14\x203.5A3.5\x203.5\x200\x200\x201\x2017.5\x207v6l-.005.192a3.501\x203.501\x200\x200\x201-2.927\x203.262l-.062.008v1.813a1.5\x201.5\x200\x200\x201-2.193\x201.33l-.37-.193-.38-.212a13.452\x2013.452\x200\x200\x201-3.272-2.63l-.062-.07-4.729-.046a3.5\x203.5\x200\x200\x201-3.5-3.5v-6a3.5\x203.5\x200\x200\x201\x203.5-3.5L14\x203.5ZM3.5\x204.954a2\x202\x200\x200\x200-2\x202v6a2\x202\x200\x200\x200\x202\x202L8.924\x2015a11.917\x2011.917\x200\x200\x200\x203.71\x203.081l.372.194v-3.268L12.962\x2015H14a2\x202\x200\x200\x200\x202-2V7a2\x202\x200\x200\x200-2-2L3.5\x204.954Z\x22/><path\x20d=\x22M16.5.5h-10a3.5\x203.5\x200\x200\x200-3.162\x202h1.84A2\x202\x200\x200\x201\x206.5\x202h10a2\x202\x200\x200\x201\x202\x202v8.873a3.502\x203.502\x200\x200\x200\x201.495-2.681L20\x2010V4A3.5\x203.5\x200\x200\x200\x2016.5.5Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M12.013\x207.453a.75.75\x200\x200\x201\x20.034\x201.06l-3.75\x204a.75.75\x200\x200\x201-1.045.048l-2.25-2a.75.75\x200\x200\x201\x20.996-1.122l1.704\x201.515\x203.25-3.467a.75.75\x200\x200\x201\x201.061-.034Z\x22/></svg>\x0a';class tt extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x541274,_0x3a5cd8){super(_0x541274),this['set']('isEmpty',!_0x3a5cd8['length']),this['focusTracker']=new _0x50da7e(),this['_annotationViews']=_0x3a5cd8,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new Ft({'focusables':_0x3a5cd8,'focusTracker':this['focusTracker']}),this['listenTo'](_0x3a5cd8,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x3a5cd8,'remove',(_0x3a7bbf,_0x5555cc)=>{_0x5555cc['isActive']&&this['focus'](),_0x3a5cd8['length']||(this['isEmpty']=!0x0);});const _0x279975=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':S(_0x541274,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x3a5cd8},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x279975['if']('isEmpty','ck-hidden',_0x978899=>!_0x978899)]},'children':[{'text':S(_0x541274,'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 _0x594ab9 of this['_annotationViews'])this['focusTracker']['add'](_0x594ab9['element']);this['_annotationViews']['on']('change',(_0x511320,{added:_0x213e52,removed:_0x417ded})=>{for(const _0x3165e6 of _0x213e52)this['focusTracker']['add'](_0x3165e6['element']);for(const _0xb0c27f of _0x417ded)this['focusTracker']['remove'](_0xb0c27f['element']);});}}class f extends _0x5b032a{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,N];}constructor(_0x419adc){super(_0x419adc),this['archivedThreads']=new _0x5251bb();}['init'](){const _0x4f4bf9=this['context'],_0x4e158d=_0x4f4bf9['plugins']['get'](o),_0x5a9065=_0x4f4bf9['plugins']['get'](N);this['listenTo'](_0x4e158d,'addCommentThread',(_0x2a08ba,{threadId:_0x2f3658})=>{const _0x37bb01=_0x4e158d['getCommentThread'](_0x2f3658);_0x37bb01['archivedAt']&&this['archivedThreads']['add'](_0x37bb01,this['_calculatePosition'](_0x37bb01['archivedAt'])),this['listenTo'](_0x37bb01,'change:archivedAt',(_0x31cd2b,_0x1d8edf,_0x302dbe)=>{_0x302dbe?this['archivedThreads']['has'](_0x37bb01)||this['archivedThreads']['add'](_0x37bb01,this['_calculatePosition'](_0x37bb01['archivedAt'])):this['archivedThreads']['has'](_0x37bb01)&&this['archivedThreads']['remove'](_0x37bb01);});}),this['listenTo'](_0x4e158d,'removeCommentThread',(_0x5170d1,{threadId:_0x2769eb})=>{const _0x253a6e=_0x4e158d['getCommentThread'](_0x2769eb);this['stopListening'](_0x253a6e),this['archivedThreads']['has'](_0x253a6e)&&this['archivedThreads']['remove'](_0x253a6e);},{'priority':'highest'}),this['listenTo'](_0x5a9065['collection'],'focus',(_0x119176,_0x5bf03e)=>{_0x5bf03e['isVisible']||(_0x5bf03e['isActive']=!0x0,_0x5a9065['activate'](_0x5bf03e));});}['_calculatePosition'](_0x41ffa9){const _0x4a7b0a=[...this['archivedThreads']]['findIndex'](_0x4bfc65=>_0x4bfc65['archivedAt']<_0x41ffa9);return _0x4a7b0a>-0x1?_0x4a7b0a:this['archivedThreads']['length'];}}class a extends _0x2fdcc6{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[f,_0x314ef9];}constructor(_0x20edf5){super(_0x20edf5),this['annotationViews']=new _0x2b6628(),this['_pendingThreads']=[];}['init'](){const _0x152fe2=this['editor'],_0x3f9a98=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x152fe2['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x9673,!0x0)),_0x152fe2['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x1c0a36=this['_createCommentsArchiveButton'](_0x3b46df);return _0x1c0a36['set']({'role':'menuitemcheckbox'}),_0x1c0a36;});const _0x532fd6=_0x152fe2['plugins']['get'](f),_0x4a1091=_0x152fe2['plugins']['get']('Annotations'),_0x3e13ce=_0x152fe2['plugins']['get']('CommentsRepository');_0x532fd6['archivedThreads']['forEach'](_0x2c6e53=>{this['_handleNewThread'](_0x2c6e53);}),this['listenTo'](_0x532fd6['archivedThreads'],'add',(_0x150bf4,_0x299067)=>{this['_handleNewThread'](_0x299067);}),this['listenTo'](_0x4a1091['collection'],'add',(_0xa7a1c,_0x2a99b0)=>{const _0x211c80=this['_pendingThreads']['find'](_0x5940e6=>{const _0x503a4c=_0x3e13ce['_threadToController']['get'](_0x5940e6);return _0x503a4c&&_0x2a99b0['innerView']===_0x503a4c['view'];});if(_0x211c80){const _0xa6910b=this['_calculatePosition'](_0x211c80['archivedAt']);this['annotationViews']['add'](_0x2a99b0['view'],_0xa6910b),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x211c80),0x1);}}),this['listenTo'](_0x532fd6['archivedThreads'],'remove',(_0xd97104,_0x336d3f)=>{const _0x196fd0=_0x152fe2['config']['get']('collaboration.channelId');if(!_0x196fd0||_0x336d3f['channelId']===_0x196fd0){const _0x16a7c7=_0x3e13ce['_threadToController']['get'](_0x336d3f),_0x4dab2c=_0x4a1091['getByInnerView'](_0x16a7c7['view']);this['annotationViews']['remove'](_0x4dab2c['view']),this['stopListening'](_0x4dab2c['focusableElements']);}}),this['listenTo'](_0x4a1091['collection'],'add',(_0x149c48,_0x2f9050)=>{this['listenTo'](_0x2f9050,'escape',_0x3f9a98);}),this['listenTo'](_0x4a1091['collection'],'remove',(_0x405568,_0x387099)=>{this['stopListening'](_0x387099,'escape',_0x3f9a98);});}['_handleNewThread'](_0x42d219){const _0x2939df=this['editor']['plugins']['get']('CommentsRepository'),_0x12e755=this['editor']['plugins']['get']('Annotations'),_0x30dd9d=this['editor']['config']['get']('collaboration.channelId');if(!_0x30dd9d||_0x42d219['channelId']===_0x30dd9d){const _0x4d7ad1=_0x2939df['_threadToController']['get'](_0x42d219);if(!_0x4d7ad1)return void this['_pendingThreads']['push'](_0x42d219);const _0x40eee1=this['_calculatePosition'](_0x42d219['archivedAt']),_0x4c4e64=_0x12e755['getByInnerView'](_0x4d7ad1['view']);_0x4c4e64['isVisible']&&_0x12e755['_visibleAnnotations']['remove'](_0x4c4e64),this['annotationViews']['add'](_0x4c4e64['view'],_0x40eee1);}}['_calculatePosition'](_0x27c998){const _0x14aa89=this['editor']['config']['get']('collaboration.channelId'),_0x1224ee=[...this['editor']['plugins']['get'](f)['archivedThreads']]['filter'](_0x481fea=>_0x481fea['channelId']===_0x14aa89)['findIndex'](_0x2ba775=>_0x2ba775['archivedAt']<_0x27c998);return _0x1224ee<0x0||_0x1224ee>this['annotationViews']['length']?this['annotationViews']['length']:_0x1224ee-0x1;}['_toggleDialog'](){const _0x450a27=this['editor'],_0x1b1584=_0x450a27['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new tt(_0x450a27['locale'],this['annotationViews'])),'commentsArchive'===_0x1b1584['id']?_0x1b1584['hide']():_0x1b1584['show']({'id':'commentsArchive','title':S(_0x450a27['locale'],'COMMENTS_ARCHIVE'),'icon':Z,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x494ad['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x5e8688,_0x3fd97b=!0x1){const _0x2e1558=this['editor']['locale'],_0x2d88db=this['editor']['plugins']['get']('Dialog'),_0x215e09=new _0x5e8688(_0x2e1558);return _0x215e09['bind']('isEnabled')['to'](this,'isEnabled'),_0x215e09['bind']('isOn')['to'](_0x2d88db,'id',_0x4bb129=>'commentsArchive'===_0x4bb129),_0x215e09['set']({'label':S(_0x2e1558,'COMMENTS_ARCHIVE'),'icon':Z,'isToggleable':!0x0}),_0x3fd97b&&(_0x215e09['tooltip']=!0x0),this['listenTo'](_0x215e09,'execute',()=>this['_toggleDialog']()),_0x215e09;}['_hideDialogOnAnnotationEscape']=_0x592428=>{const _0x1bc82b=_0x592428['source'];if(!this['annotationViews']['has'](_0x1bc82b['view']))return;const _0xf01f76=this['editor']['plugins']['get']('Dialog');_0xf01f76['isOpen']&&'commentsArchive'===_0xf01f76['id']&&(_0xf01f76['hide'](),_0x592428['stop']());};}class p extends _0x2fdcc6{static get['requires'](){return[o,r,i,f,a,s,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{d as Annotation,x as AnnotationCollection,T as AnnotationView,N as Annotations,M as AnnotationsUIs,is as BaseCommentThreadView,rs as BaseCommentView,re as Comment,oe as CommentThread,Ct as CommentThreadController,ie as CommentThreadInputView,vt as CommentThreadView,gt as CommentView,p as Comments,f as CommentsArchive,a as CommentsArchiveUI,te as CommentsListView,s as CommentsOnly,o as CommentsRepository,i as CommentsUI,P as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,e as WideSidebar};